@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
|
@@ -152,7 +152,7 @@ const CSS_UTILITY = {
|
|
|
152
152
|
lightTheme,
|
|
153
153
|
rtl: "calcite--rtl"
|
|
154
154
|
};
|
|
155
|
-
const TEXT$
|
|
155
|
+
const TEXT$r = {
|
|
156
156
|
loading: "Loading"
|
|
157
157
|
};
|
|
158
158
|
|
|
@@ -274,9 +274,9 @@ async function focusElement(el) {
|
|
|
274
274
|
}
|
|
275
275
|
return isCalciteFocusable(el) ? el.setFocus() : el.focus();
|
|
276
276
|
}
|
|
277
|
-
const defaultSlotSelector = "
|
|
277
|
+
const defaultSlotSelector = ":not([slot])";
|
|
278
278
|
function getSlotted(element, slotName, options) {
|
|
279
|
-
if (!Array.isArray(slotName) && typeof slotName !== "string") {
|
|
279
|
+
if (slotName && !Array.isArray(slotName) && typeof slotName !== "string") {
|
|
280
280
|
options = slotName;
|
|
281
281
|
slotName = null;
|
|
282
282
|
}
|
|
@@ -290,12 +290,15 @@ function getSlotted(element, slotName, options) {
|
|
|
290
290
|
}
|
|
291
291
|
return querySingle(element, slotSelector, options);
|
|
292
292
|
}
|
|
293
|
+
function getDirectChildren(el, selector) {
|
|
294
|
+
return el ? Array.from(el.children || []).filter((child) => child === null || child === void 0 ? void 0 : child.matches(selector)) : [];
|
|
295
|
+
}
|
|
293
296
|
function queryMultiple(element, slotSelector, options) {
|
|
294
|
-
let matches =
|
|
297
|
+
let matches = slotSelector === defaultSlotSelector
|
|
298
|
+
? getDirectChildren(element, defaultSlotSelector)
|
|
299
|
+
: Array.from(element.querySelectorAll(slotSelector));
|
|
295
300
|
matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);
|
|
296
|
-
|
|
297
|
-
matches = matches.filter((match) => match === null || match === void 0 ? void 0 : match.assignedSlot);
|
|
298
|
-
}
|
|
301
|
+
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;
|
|
299
302
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
300
303
|
return selector
|
|
301
304
|
? matches
|
|
@@ -305,11 +308,11 @@ function queryMultiple(element, slotSelector, options) {
|
|
|
305
308
|
: matches;
|
|
306
309
|
}
|
|
307
310
|
function querySingle(element, slotSelector, options) {
|
|
308
|
-
let match =
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
311
|
+
let match = slotSelector === defaultSlotSelector
|
|
312
|
+
? getDirectChildren(element, defaultSlotSelector)[0] || null
|
|
313
|
+
: element.querySelector(slotSelector);
|
|
312
314
|
match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;
|
|
315
|
+
match = (options === null || options === void 0 ? void 0 : options.matches) ? ((match === null || match === void 0 ? void 0 : match.matches(options.matches)) ? match : null) : match;
|
|
313
316
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
314
317
|
return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;
|
|
315
318
|
}
|
|
@@ -463,7 +466,7 @@ const CSS$P = {
|
|
|
463
466
|
textContainer: "text-container",
|
|
464
467
|
textContainerVisible: "text-container--visible"
|
|
465
468
|
};
|
|
466
|
-
const TEXT$
|
|
469
|
+
const TEXT$q = {
|
|
467
470
|
loading: "Loading"
|
|
468
471
|
};
|
|
469
472
|
|
|
@@ -479,10 +482,14 @@ function createObserver(type, callback, options) {
|
|
|
479
482
|
return Build.isBrowser ? new Observer(callback, options) : undefined;
|
|
480
483
|
}
|
|
481
484
|
function getObserver(type) {
|
|
482
|
-
return (type === "intersection"
|
|
485
|
+
return (type === "intersection"
|
|
486
|
+
? window.IntersectionObserver
|
|
487
|
+
: type === "mutation"
|
|
488
|
+
? window.MutationObserver
|
|
489
|
+
: window.ResizeObserver);
|
|
483
490
|
}
|
|
484
491
|
|
|
485
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}:host([disabled]){pointer-events:none}.button{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{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:1rem;min-height:1rem}.button .text-container{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{width:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{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{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{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{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:0px;padding-right:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-right:0px;color:var(--calcite-ui-text-3)}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;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{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
|
|
492
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}:host([disabled]){pointer-events:none}.button{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{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:1rem;min-height:1rem}.button .text-container{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{width:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{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{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{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{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:0px;padding-right:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-right:0px;color:var(--calcite-ui-text-3)}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;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{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
|
|
486
493
|
|
|
487
494
|
let CalciteAction$1 = class extends HTMLElement$1 {
|
|
488
495
|
constructor() {
|
|
@@ -516,7 +523,7 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
516
523
|
/** string to override English loading text
|
|
517
524
|
* @default "Loading"
|
|
518
525
|
*/
|
|
519
|
-
this.intlLoading = TEXT$
|
|
526
|
+
this.intlLoading = TEXT$q.loading;
|
|
520
527
|
/**
|
|
521
528
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
522
529
|
*/
|
|
@@ -620,7 +627,7 @@ const SLOTS$o = {
|
|
|
620
627
|
menuActions: "menu-actions",
|
|
621
628
|
menuTooltip: "menu-tooltip"
|
|
622
629
|
};
|
|
623
|
-
const TEXT$
|
|
630
|
+
const TEXT$p = {
|
|
624
631
|
more: "More"
|
|
625
632
|
};
|
|
626
633
|
const ICONS$e = {
|
|
@@ -711,7 +718,7 @@ const SLOTS$n = {
|
|
|
711
718
|
bottomActions: "bottom-actions",
|
|
712
719
|
expandTooltip: "expand-tooltip"
|
|
713
720
|
};
|
|
714
|
-
const TEXT$
|
|
721
|
+
const TEXT$o = {
|
|
715
722
|
expand: "Expand",
|
|
716
723
|
collapse: "Collapse"
|
|
717
724
|
};
|
|
@@ -1979,26 +1986,36 @@ function throttle$1(func, wait, options) {
|
|
|
1979
1986
|
});
|
|
1980
1987
|
}
|
|
1981
1988
|
|
|
1982
|
-
const
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
}
|
|
1986
|
-
const eventType = "slotchange";
|
|
1989
|
+
const observed = new Set();
|
|
1990
|
+
let mutationObserver;
|
|
1991
|
+
const observerOptions = { childList: true };
|
|
1987
1992
|
/**
|
|
1988
1993
|
* Helper to set up a conditional slot component on connectedCallback.
|
|
1989
1994
|
*/
|
|
1990
1995
|
function connectConditionalSlotComponent(component) {
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1996
|
+
if (!mutationObserver) {
|
|
1997
|
+
mutationObserver = createObserver("mutation", processMutations);
|
|
1998
|
+
}
|
|
1999
|
+
mutationObserver.observe(component.el, observerOptions);
|
|
1994
2000
|
}
|
|
1995
2001
|
/**
|
|
1996
2002
|
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
1997
2003
|
*/
|
|
1998
2004
|
function disconnectConditionalSlotComponent(component) {
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2005
|
+
observed.delete(component.el);
|
|
2006
|
+
// we explicitly process queued mutations and disconnect and reconnect
|
|
2007
|
+
// the observer until MutationObserver gets an `unobserve` method
|
|
2008
|
+
// see https://github.com/whatwg/dom/issues/126
|
|
2009
|
+
processMutations(mutationObserver.takeRecords());
|
|
2010
|
+
mutationObserver.disconnect();
|
|
2011
|
+
for (const [element] of observed.entries()) {
|
|
2012
|
+
mutationObserver.observe(element, observerOptions);
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
function processMutations(mutations) {
|
|
2016
|
+
mutations.forEach(({ target }) => {
|
|
2017
|
+
forceUpdate(target);
|
|
2018
|
+
});
|
|
2002
2019
|
}
|
|
2003
2020
|
|
|
2004
2021
|
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{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-y:auto}:host([expanded]){max-width:20vw}::slotted(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){border-bottom-width:0px}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}";
|
|
@@ -2162,8 +2179,8 @@ let CalciteActionBar$1 = class extends HTMLElement$1 {
|
|
|
2162
2179
|
renderBottomActionGroup() {
|
|
2163
2180
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
2164
2181
|
const tooltip = getSlotted(el, SLOTS$n.expandTooltip);
|
|
2165
|
-
const expandLabel = intlExpand || TEXT$
|
|
2166
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2182
|
+
const expandLabel = intlExpand || TEXT$o.expand;
|
|
2183
|
+
const collapseLabel = intlCollapse || TEXT$o.collapse;
|
|
2167
2184
|
const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2168
2185
|
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$n.bottomActions }), h("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
2169
2186
|
}
|
|
@@ -2217,6 +2234,17 @@ let CalciteActionGroup$1 = class extends HTMLElement$1 {
|
|
|
2217
2234
|
}
|
|
2218
2235
|
// --------------------------------------------------------------------------
|
|
2219
2236
|
//
|
|
2237
|
+
// Lifecycle
|
|
2238
|
+
//
|
|
2239
|
+
// --------------------------------------------------------------------------
|
|
2240
|
+
connectedCallback() {
|
|
2241
|
+
connectConditionalSlotComponent(this);
|
|
2242
|
+
}
|
|
2243
|
+
disconnectedCallback() {
|
|
2244
|
+
disconnectConditionalSlotComponent(this);
|
|
2245
|
+
}
|
|
2246
|
+
// --------------------------------------------------------------------------
|
|
2247
|
+
//
|
|
2220
2248
|
// Component Methods
|
|
2221
2249
|
//
|
|
2222
2250
|
// --------------------------------------------------------------------------
|
|
@@ -2228,7 +2256,7 @@ let CalciteActionGroup$1 = class extends HTMLElement$1 {
|
|
|
2228
2256
|
renderMenu() {
|
|
2229
2257
|
const { el, expanded, intlMore, menuOpen, scale } = this;
|
|
2230
2258
|
const hasMenuItems = getSlotted(el, SLOTS$o.menuActions);
|
|
2231
|
-
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
2259
|
+
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$p.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: "leading-start", scale: scale }, h("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$p.trigger, text: intlMore || TEXT$p.more, textEnabled: expanded }), h("slot", { name: SLOTS$o.menuActions }), this.renderTooltip())) : null;
|
|
2232
2260
|
}
|
|
2233
2261
|
render() {
|
|
2234
2262
|
return (h(Fragment, null, h("slot", null), this.renderMenu()));
|
|
@@ -2456,11 +2484,13 @@ let CalciteActionMenu$1 = class extends HTMLElement$1 {
|
|
|
2456
2484
|
var _a;
|
|
2457
2485
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
2458
2486
|
this.getActions();
|
|
2487
|
+
connectConditionalSlotComponent(this);
|
|
2459
2488
|
}
|
|
2460
2489
|
disconnectedCallback() {
|
|
2461
2490
|
var _a;
|
|
2462
2491
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
2463
2492
|
this.disconnectMenuButtonEl();
|
|
2493
|
+
disconnectConditionalSlotComponent(this);
|
|
2464
2494
|
}
|
|
2465
2495
|
expandedHandler() {
|
|
2466
2496
|
this.open = false;
|
|
@@ -2527,7 +2557,7 @@ const CSS$M = {
|
|
|
2527
2557
|
actionGroupBottom: "action-group--bottom",
|
|
2528
2558
|
container: "container"
|
|
2529
2559
|
};
|
|
2530
|
-
const TEXT$
|
|
2560
|
+
const TEXT$n = {
|
|
2531
2561
|
expand: "Expand",
|
|
2532
2562
|
collapse: "Collapse"
|
|
2533
2563
|
};
|
|
@@ -2598,6 +2628,12 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2598
2628
|
// Lifecycle
|
|
2599
2629
|
//
|
|
2600
2630
|
// --------------------------------------------------------------------------
|
|
2631
|
+
connectedCallback() {
|
|
2632
|
+
connectConditionalSlotComponent(this);
|
|
2633
|
+
}
|
|
2634
|
+
disconnectedCallback() {
|
|
2635
|
+
disconnectConditionalSlotComponent(this);
|
|
2636
|
+
}
|
|
2601
2637
|
componentWillLoad() {
|
|
2602
2638
|
const { el, expandDisabled, expanded } = this;
|
|
2603
2639
|
if (!expandDisabled) {
|
|
@@ -2625,8 +2661,8 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2625
2661
|
renderBottomActionGroup() {
|
|
2626
2662
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
2627
2663
|
const tooltip = getSlotted(el, SLOTS$m.expandTooltip);
|
|
2628
|
-
const expandLabel = intlExpand || TEXT$
|
|
2629
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2664
|
+
const expandLabel = intlExpand || TEXT$n.expand;
|
|
2665
|
+
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
2630
2666
|
const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2631
2667
|
return expandToggleNode ? (h("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
2632
2668
|
}
|
|
@@ -2641,7 +2677,7 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2641
2677
|
static get style() { return calciteActionPadCss; }
|
|
2642
2678
|
};
|
|
2643
2679
|
|
|
2644
|
-
const TEXT$
|
|
2680
|
+
const TEXT$m = {
|
|
2645
2681
|
intlClose: "Close"
|
|
2646
2682
|
};
|
|
2647
2683
|
const DURATIONS = {
|
|
@@ -2690,7 +2726,7 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2690
2726
|
/** string to override English close text
|
|
2691
2727
|
* @default "Close"
|
|
2692
2728
|
*/
|
|
2693
|
-
this.intlClose = TEXT$
|
|
2729
|
+
this.intlClose = TEXT$m.intlClose;
|
|
2694
2730
|
/** specify the placement of the alert */
|
|
2695
2731
|
this.placement = "bottom";
|
|
2696
2732
|
/** specify the scale of the alert, defaults to m */
|
|
@@ -2708,6 +2744,7 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2708
2744
|
this.queued = false;
|
|
2709
2745
|
this.autoDismissTimeoutId = null;
|
|
2710
2746
|
this.trackTimer = Date.now();
|
|
2747
|
+
this.activeTransitionProp = "opacity";
|
|
2711
2748
|
/** close and emit the closed alert and the queue */
|
|
2712
2749
|
this.closeAlert = () => {
|
|
2713
2750
|
this.autoDismissTimeoutId = null;
|
|
@@ -2716,10 +2753,19 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2716
2753
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
2717
2754
|
this.determineActiveAlert();
|
|
2718
2755
|
this.calciteAlertSync.emit({ queue: this.queue });
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2756
|
+
};
|
|
2757
|
+
this.transitionEnd = (event) => {
|
|
2758
|
+
if (event.propertyName === this.activeTransitionProp) {
|
|
2759
|
+
this.active
|
|
2760
|
+
? this.calciteAlertOpen.emit({
|
|
2761
|
+
el: this.el,
|
|
2762
|
+
queue: this.queue
|
|
2763
|
+
})
|
|
2764
|
+
: this.calciteAlertClose.emit({
|
|
2765
|
+
el: this.el,
|
|
2766
|
+
queue: this.queue
|
|
2767
|
+
});
|
|
2768
|
+
}
|
|
2723
2769
|
};
|
|
2724
2770
|
}
|
|
2725
2771
|
watchActive() {
|
|
@@ -2770,7 +2816,7 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2770
2816
|
container: true,
|
|
2771
2817
|
queued,
|
|
2772
2818
|
[placement]: true
|
|
2773
|
-
} }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$l.title }), h("slot", { name: SLOTS$l.message }), h("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
2819
|
+
}, onTransitionEnd: this.transitionEnd }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$l.title }), h("slot", { name: SLOTS$l.message }), h("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
2774
2820
|
}
|
|
2775
2821
|
// when an alert is opened or closed, update queue and determine active alert
|
|
2776
2822
|
alertSync(event) {
|
|
@@ -2829,10 +2875,6 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2829
2875
|
openAlert() {
|
|
2830
2876
|
window.clearTimeout(this.queueTimeout);
|
|
2831
2877
|
this.queueTimeout = window.setTimeout(() => (this.queued = false), 300);
|
|
2832
|
-
this.calciteAlertOpen.emit({
|
|
2833
|
-
el: this.el,
|
|
2834
|
-
queue: this.queue
|
|
2835
|
-
});
|
|
2836
2878
|
}
|
|
2837
2879
|
get el() { return this; }
|
|
2838
2880
|
static get watchers() { return {
|
|
@@ -3103,7 +3145,7 @@ const CSS$L = {
|
|
|
3103
3145
|
invalid: "invalid",
|
|
3104
3146
|
loading: "loading"
|
|
3105
3147
|
};
|
|
3106
|
-
const TEXT$
|
|
3148
|
+
const TEXT$l = {
|
|
3107
3149
|
collapse: "Collapse",
|
|
3108
3150
|
expand: "Expand",
|
|
3109
3151
|
loading: "Loading",
|
|
@@ -3160,11 +3202,11 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3160
3202
|
/** string to override English loading text
|
|
3161
3203
|
* @default "Loading"
|
|
3162
3204
|
*/
|
|
3163
|
-
this.intlLoading = TEXT$
|
|
3205
|
+
this.intlLoading = TEXT$l.loading;
|
|
3164
3206
|
/** Text string used for the actions menu
|
|
3165
3207
|
* @default "Options"
|
|
3166
3208
|
*/
|
|
3167
|
-
this.intlOptions = TEXT$
|
|
3209
|
+
this.intlOptions = TEXT$l.options;
|
|
3168
3210
|
/**
|
|
3169
3211
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
3170
3212
|
*/
|
|
@@ -3185,6 +3227,17 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3185
3227
|
}
|
|
3186
3228
|
// --------------------------------------------------------------------------
|
|
3187
3229
|
//
|
|
3230
|
+
// Lifecycle
|
|
3231
|
+
//
|
|
3232
|
+
// --------------------------------------------------------------------------
|
|
3233
|
+
connectedCallback() {
|
|
3234
|
+
connectConditionalSlotComponent(this);
|
|
3235
|
+
}
|
|
3236
|
+
disconnectedCallback() {
|
|
3237
|
+
disconnectConditionalSlotComponent(this);
|
|
3238
|
+
}
|
|
3239
|
+
// --------------------------------------------------------------------------
|
|
3240
|
+
//
|
|
3188
3241
|
// Render Methods
|
|
3189
3242
|
//
|
|
3190
3243
|
// --------------------------------------------------------------------------
|
|
@@ -3198,7 +3251,7 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3198
3251
|
const showingLoadingStatus = this.loading && !this.open;
|
|
3199
3252
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
3200
3253
|
const hasIcon = getSlotted(el, SLOTS$k.icon) || statusIcon;
|
|
3201
|
-
const iconEl = !statusIcon ? (h("slot", { name: SLOTS$k.icon })) : (h("calcite-icon", { class: {
|
|
3254
|
+
const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS$k.icon })) : (h("calcite-icon", { class: {
|
|
3202
3255
|
[CSS$L.statusIcon]: true,
|
|
3203
3256
|
[CSS$L.valid]: status == "valid",
|
|
3204
3257
|
[CSS$L.invalid]: status == "invalid",
|
|
@@ -3212,12 +3265,12 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3212
3265
|
}
|
|
3213
3266
|
render() {
|
|
3214
3267
|
const { collapsible, disabled, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
3215
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3268
|
+
const toggleLabel = open ? intlCollapse || TEXT$l.collapse : intlExpand || TEXT$l.expand;
|
|
3216
3269
|
const headerContent = (h("header", { class: CSS$L.header }, this.renderIcon(), this.renderTitle()));
|
|
3217
3270
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
3218
3271
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
3219
3272
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
3220
|
-
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$L.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$
|
|
3273
|
+
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$L.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$l.options }, h("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
3221
3274
|
return (h(Host, { tabIndex: disabled ? -1 : null }, h("article", { "aria-busy": loading.toString(), class: {
|
|
3222
3275
|
[CSS$L.article]: true
|
|
3223
3276
|
} }, headerNode, h("div", { class: CSS$L.content, hidden: !open }, this.renderScrim()))));
|
|
@@ -3238,7 +3291,7 @@ const CSS$K = {
|
|
|
3238
3291
|
statusIcon: "status-icon",
|
|
3239
3292
|
valid: "valid"
|
|
3240
3293
|
};
|
|
3241
|
-
const TEXT$
|
|
3294
|
+
const TEXT$k = {
|
|
3242
3295
|
collapse: "Collapse",
|
|
3243
3296
|
expand: "Expand"
|
|
3244
3297
|
};
|
|
@@ -3309,7 +3362,7 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3309
3362
|
: dir === "rtl"
|
|
3310
3363
|
? ICONS$b.menuClosedLeft
|
|
3311
3364
|
: ICONS$b.menuClosedRight;
|
|
3312
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3365
|
+
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
3313
3366
|
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-label": toggleLabel, class: {
|
|
3314
3367
|
[CSS$K.toggle]: true,
|
|
3315
3368
|
[CSS$K.toggleSwitch]: true
|
|
@@ -3363,7 +3416,7 @@ const CSS$J = {
|
|
|
3363
3416
|
iconStartEmpty: "icon-start-empty",
|
|
3364
3417
|
iconEndEmpty: "icon-end-empty"
|
|
3365
3418
|
};
|
|
3366
|
-
const TEXT$
|
|
3419
|
+
const TEXT$j = {
|
|
3367
3420
|
loading: "Loading"
|
|
3368
3421
|
};
|
|
3369
3422
|
|
|
@@ -3469,7 +3522,7 @@ let CalciteButton$1 = class extends HTMLElement$1 {
|
|
|
3469
3522
|
/** string to override English loading text
|
|
3470
3523
|
* @default "Loading"
|
|
3471
3524
|
*/
|
|
3472
|
-
this.intlLoading = TEXT$
|
|
3525
|
+
this.intlLoading = TEXT$j.loading;
|
|
3473
3526
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
3474
3527
|
this.loading = false;
|
|
3475
3528
|
/** optionally add a round style to the button */
|
|
@@ -3607,7 +3660,7 @@ const SLOTS$j = {
|
|
|
3607
3660
|
footerLeading: "footer-leading",
|
|
3608
3661
|
footerTrailing: "footer-trailing"
|
|
3609
3662
|
};
|
|
3610
|
-
const TEXT$
|
|
3663
|
+
const TEXT$i = {
|
|
3611
3664
|
select: "Select",
|
|
3612
3665
|
deselect: "Deselect",
|
|
3613
3666
|
loading: "Loading"
|
|
@@ -3635,15 +3688,15 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3635
3688
|
/** string to override English loading text
|
|
3636
3689
|
* @default "Loading"
|
|
3637
3690
|
*/
|
|
3638
|
-
this.intlLoading = TEXT$
|
|
3691
|
+
this.intlLoading = TEXT$i.loading;
|
|
3639
3692
|
/** string to override English select text for checkbox when selectable is true
|
|
3640
3693
|
* @default "Select"
|
|
3641
3694
|
*/
|
|
3642
|
-
this.intlSelect = TEXT$
|
|
3695
|
+
this.intlSelect = TEXT$i.select;
|
|
3643
3696
|
/** string to override English deselect text for checkbox when selectable is true
|
|
3644
3697
|
* @default "Deselect"
|
|
3645
3698
|
*/
|
|
3646
|
-
this.intlDeselect = TEXT$
|
|
3699
|
+
this.intlDeselect = TEXT$i.deselect;
|
|
3647
3700
|
//--------------------------------------------------------------------------
|
|
3648
3701
|
//
|
|
3649
3702
|
// Private State/Props
|
|
@@ -3672,6 +3725,12 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3672
3725
|
// Lifecycle
|
|
3673
3726
|
//
|
|
3674
3727
|
// --------------------------------------------------------------------------
|
|
3728
|
+
connectedCallback() {
|
|
3729
|
+
connectConditionalSlotComponent(this);
|
|
3730
|
+
}
|
|
3731
|
+
disonnectedCallback() {
|
|
3732
|
+
disconnectConditionalSlotComponent(this);
|
|
3733
|
+
}
|
|
3675
3734
|
render() {
|
|
3676
3735
|
return (h("div", { class: "calcite-card-container" }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, h("section", { "aria-busy": this.loading.toString(), class: { [CSS$I.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter())));
|
|
3677
3736
|
}
|
|
@@ -3680,22 +3739,23 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3680
3739
|
this.calciteCardSelect.emit();
|
|
3681
3740
|
}
|
|
3682
3741
|
renderThumbnail() {
|
|
3683
|
-
|
|
3684
|
-
return hasThumbnail ? (h("div", { class: CSS$I.thumbnailWrapper }, h("slot", { name: SLOTS$j.thumbnail }))) : null;
|
|
3742
|
+
return getSlotted(this.el, SLOTS$j.thumbnail) ? (h("div", { class: CSS$I.thumbnailWrapper, key: "thumbnail-wrapper" }, h("slot", { name: SLOTS$j.thumbnail }))) : null;
|
|
3685
3743
|
}
|
|
3686
3744
|
renderCheckbox() {
|
|
3687
3745
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
3688
3746
|
return (h("calcite-label", { class: CSS$I.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
3689
3747
|
}
|
|
3690
3748
|
renderHeader() {
|
|
3691
|
-
const
|
|
3692
|
-
const
|
|
3749
|
+
const { el } = this;
|
|
3750
|
+
const title = getSlotted(el, SLOTS$j.title);
|
|
3751
|
+
const subtitle = getSlotted(el, SLOTS$j.subtitle);
|
|
3693
3752
|
const hasHeader = title || subtitle;
|
|
3694
3753
|
return hasHeader ? (h("header", { class: CSS$I.header }, h("slot", { name: SLOTS$j.title }), h("slot", { name: SLOTS$j.subtitle }))) : null;
|
|
3695
3754
|
}
|
|
3696
3755
|
renderFooter() {
|
|
3697
|
-
const
|
|
3698
|
-
const
|
|
3756
|
+
const { el } = this;
|
|
3757
|
+
const leadingFooter = getSlotted(el, SLOTS$j.footerLeading);
|
|
3758
|
+
const trailingFooter = getSlotted(el, SLOTS$j.footerTrailing);
|
|
3699
3759
|
const hasFooter = leadingFooter || trailingFooter;
|
|
3700
3760
|
return hasFooter ? (h("footer", { class: CSS$I.footer }, h("slot", { name: SLOTS$j.footerLeading }), h("slot", { name: SLOTS$j.footerTrailing }))) : null;
|
|
3701
3761
|
}
|
|
@@ -3994,7 +4054,7 @@ const CSS$H = {
|
|
|
3994
4054
|
chipImageContainer: "chip-image-container",
|
|
3995
4055
|
calciteChipIcon: "calcite-chip--icon"
|
|
3996
4056
|
};
|
|
3997
|
-
const TEXT$
|
|
4057
|
+
const TEXT$h = {
|
|
3998
4058
|
close: "Close"
|
|
3999
4059
|
};
|
|
4000
4060
|
const SLOTS$i = {
|
|
@@ -4026,7 +4086,7 @@ let CalciteChip$1 = class extends HTMLElement$1 {
|
|
|
4026
4086
|
/** Aria label for the "x" button
|
|
4027
4087
|
* @default "Close"
|
|
4028
4088
|
*/
|
|
4029
|
-
this.dismissLabel = TEXT$
|
|
4089
|
+
this.dismissLabel = TEXT$h.close;
|
|
4030
4090
|
/** flip the icon in rtl */
|
|
4031
4091
|
this.iconFlipRtl = false;
|
|
4032
4092
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -4042,6 +4102,17 @@ let CalciteChip$1 = class extends HTMLElement$1 {
|
|
|
4042
4102
|
};
|
|
4043
4103
|
this.guid = guid();
|
|
4044
4104
|
}
|
|
4105
|
+
// --------------------------------------------------------------------------
|
|
4106
|
+
//
|
|
4107
|
+
// Lifecycle
|
|
4108
|
+
//
|
|
4109
|
+
// --------------------------------------------------------------------------
|
|
4110
|
+
connectedCallback() {
|
|
4111
|
+
connectConditionalSlotComponent(this);
|
|
4112
|
+
}
|
|
4113
|
+
disconnectedCallback() {
|
|
4114
|
+
disconnectConditionalSlotComponent(this);
|
|
4115
|
+
}
|
|
4045
4116
|
//--------------------------------------------------------------------------
|
|
4046
4117
|
//
|
|
4047
4118
|
// Public Methods
|
|
@@ -4060,7 +4131,7 @@ let CalciteChip$1 = class extends HTMLElement$1 {
|
|
|
4060
4131
|
renderChipImage() {
|
|
4061
4132
|
const { el } = this;
|
|
4062
4133
|
const hasChipImage = getSlotted(el, SLOTS$i.image);
|
|
4063
|
-
return hasChipImage ? (h("div", { class: CSS$H.chipImageContainer }, h("slot", { name: SLOTS$i.image }))) : null;
|
|
4134
|
+
return hasChipImage ? (h("div", { class: CSS$H.chipImageContainer, key: "image" }, h("slot", { name: SLOTS$i.image }))) : null;
|
|
4064
4135
|
}
|
|
4065
4136
|
render() {
|
|
4066
4137
|
const iconEl = (h("calcite-icon", { class: CSS$H.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
@@ -5942,6 +6013,21 @@ Color.prototype = {
|
|
|
5942
6013
|
return colorString.to.hex(this.rgb().round().color);
|
|
5943
6014
|
},
|
|
5944
6015
|
|
|
6016
|
+
hexa(value) {
|
|
6017
|
+
if (arguments.length > 0) {
|
|
6018
|
+
return new Color(value);
|
|
6019
|
+
}
|
|
6020
|
+
|
|
6021
|
+
const rgbArray = this.rgb().round().color;
|
|
6022
|
+
let alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();
|
|
6023
|
+
|
|
6024
|
+
if (alphaHex.length === 1) {
|
|
6025
|
+
alphaHex = '0' + alphaHex;
|
|
6026
|
+
}
|
|
6027
|
+
|
|
6028
|
+
return colorString.to.hex(rgbArray) + alphaHex;
|
|
6029
|
+
},
|
|
6030
|
+
|
|
5945
6031
|
rgbNumber() {
|
|
5946
6032
|
const rgb = this.rgb().color;
|
|
5947
6033
|
return (rgb[0] & 0xFF) << 16 | (rgb[1] & 0xFF) << 8 | rgb[2] & 0xFF;
|
|
@@ -6213,7 +6299,7 @@ const HSV_LIMITS = {
|
|
|
6213
6299
|
s: 100,
|
|
6214
6300
|
v: 100
|
|
6215
6301
|
};
|
|
6216
|
-
const TEXT$
|
|
6302
|
+
const TEXT$g = {
|
|
6217
6303
|
b: "B",
|
|
6218
6304
|
blue: "Blue",
|
|
6219
6305
|
deleteColor: "Delete color",
|
|
@@ -6336,80 +6422,80 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6336
6422
|
/** Label used for the blue channel
|
|
6337
6423
|
* @default "B"
|
|
6338
6424
|
*/
|
|
6339
|
-
this.intlB = TEXT$
|
|
6425
|
+
this.intlB = TEXT$g.b;
|
|
6340
6426
|
/** Label used for the blue channel description
|
|
6341
6427
|
* @default "Blue"
|
|
6342
6428
|
*/
|
|
6343
|
-
this.intlBlue = TEXT$
|
|
6429
|
+
this.intlBlue = TEXT$g.blue;
|
|
6344
6430
|
/** Label used for the delete color button.
|
|
6345
6431
|
* @default "Delete color"
|
|
6346
6432
|
*/
|
|
6347
|
-
this.intlDeleteColor = TEXT$
|
|
6433
|
+
this.intlDeleteColor = TEXT$g.deleteColor;
|
|
6348
6434
|
/** Label used for the green channel
|
|
6349
6435
|
* @default "G"
|
|
6350
6436
|
*/
|
|
6351
|
-
this.intlG = TEXT$
|
|
6437
|
+
this.intlG = TEXT$g.g;
|
|
6352
6438
|
/** Label used for the green channel description
|
|
6353
6439
|
* @default "Green"
|
|
6354
6440
|
*/
|
|
6355
|
-
this.intlGreen = TEXT$
|
|
6441
|
+
this.intlGreen = TEXT$g.green;
|
|
6356
6442
|
/** Label used for the hue channel
|
|
6357
6443
|
* @default "H"
|
|
6358
6444
|
*/
|
|
6359
|
-
this.intlH = TEXT$
|
|
6445
|
+
this.intlH = TEXT$g.h;
|
|
6360
6446
|
/** Label used for the HSV mode
|
|
6361
6447
|
* @default "HSV"
|
|
6362
6448
|
*/
|
|
6363
|
-
this.intlHsv = TEXT$
|
|
6449
|
+
this.intlHsv = TEXT$g.hsv;
|
|
6364
6450
|
/** Label used for the hex input
|
|
6365
6451
|
* @default "Hex"
|
|
6366
6452
|
*/
|
|
6367
|
-
this.intlHex = TEXT$
|
|
6453
|
+
this.intlHex = TEXT$g.hex;
|
|
6368
6454
|
/** Label used for the hue channel description
|
|
6369
6455
|
* @default "Hue"
|
|
6370
6456
|
*/
|
|
6371
|
-
this.intlHue = TEXT$
|
|
6457
|
+
this.intlHue = TEXT$g.hue;
|
|
6372
6458
|
/**
|
|
6373
6459
|
* Label used for the hex input when there is no color selected.
|
|
6374
6460
|
* @default "No color"
|
|
6375
6461
|
*/
|
|
6376
|
-
this.intlNoColor = TEXT$
|
|
6462
|
+
this.intlNoColor = TEXT$g.noColor;
|
|
6377
6463
|
/** Label used for the red channel
|
|
6378
6464
|
* @default "R"
|
|
6379
6465
|
*/
|
|
6380
|
-
this.intlR = TEXT$
|
|
6466
|
+
this.intlR = TEXT$g.r;
|
|
6381
6467
|
/** Label used for the red channel description
|
|
6382
6468
|
* @default "Red"
|
|
6383
6469
|
*/
|
|
6384
|
-
this.intlRed = TEXT$
|
|
6470
|
+
this.intlRed = TEXT$g.red;
|
|
6385
6471
|
/** Label used for the RGB mode
|
|
6386
6472
|
* @default "RGB"
|
|
6387
6473
|
*/
|
|
6388
|
-
this.intlRgb = TEXT$
|
|
6474
|
+
this.intlRgb = TEXT$g.rgb;
|
|
6389
6475
|
/** Label used for the saturation channel
|
|
6390
6476
|
* @default "S"
|
|
6391
6477
|
*/
|
|
6392
|
-
this.intlS = TEXT$
|
|
6478
|
+
this.intlS = TEXT$g.s;
|
|
6393
6479
|
/** Label used for the saturation channel description
|
|
6394
6480
|
* @default "Saturation"
|
|
6395
6481
|
*/
|
|
6396
|
-
this.intlSaturation = TEXT$
|
|
6482
|
+
this.intlSaturation = TEXT$g.saturation;
|
|
6397
6483
|
/** Label used for the save color button.
|
|
6398
6484
|
* @default "Save color"
|
|
6399
6485
|
*/
|
|
6400
|
-
this.intlSaveColor = TEXT$
|
|
6486
|
+
this.intlSaveColor = TEXT$g.saveColor;
|
|
6401
6487
|
/** Label used for the saved colors section
|
|
6402
6488
|
* @default "Saved"
|
|
6403
6489
|
*/
|
|
6404
|
-
this.intlSaved = TEXT$
|
|
6490
|
+
this.intlSaved = TEXT$g.saved;
|
|
6405
6491
|
/** Label used for the value channel
|
|
6406
6492
|
* @default "V"
|
|
6407
6493
|
*/
|
|
6408
|
-
this.intlV = TEXT$
|
|
6494
|
+
this.intlV = TEXT$g.v;
|
|
6409
6495
|
/** Label used for the
|
|
6410
6496
|
* @default "Value"
|
|
6411
6497
|
*/
|
|
6412
|
-
this.intlValue = TEXT$
|
|
6498
|
+
this.intlValue = TEXT$g.value;
|
|
6413
6499
|
/**
|
|
6414
6500
|
* The scale of the color picker.
|
|
6415
6501
|
*/
|
|
@@ -7085,12 +7171,12 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement$1 {
|
|
|
7085
7171
|
* Label used for the hex input.
|
|
7086
7172
|
* @default "Hex"
|
|
7087
7173
|
*/
|
|
7088
|
-
this.intlHex = TEXT$
|
|
7174
|
+
this.intlHex = TEXT$g.hex;
|
|
7089
7175
|
/**
|
|
7090
7176
|
* Label used for the hex input when there is no color selected.
|
|
7091
7177
|
* @default "No color"
|
|
7092
7178
|
*/
|
|
7093
|
-
this.intlNoColor = TEXT$
|
|
7179
|
+
this.intlNoColor = TEXT$g.noColor;
|
|
7094
7180
|
/**
|
|
7095
7181
|
* The component's scale.
|
|
7096
7182
|
*/
|
|
@@ -9165,6 +9251,9 @@ const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
|
9165
9251
|
const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
9166
9252
|
const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;
|
|
9167
9253
|
const ComboboxDefaultPlacement = "bottom-leading";
|
|
9254
|
+
const TEXT$f = {
|
|
9255
|
+
removeTag: "Remove tag"
|
|
9256
|
+
};
|
|
9168
9257
|
|
|
9169
9258
|
function getAncestors(element) {
|
|
9170
9259
|
var _a, _b;
|
|
@@ -9194,6 +9283,11 @@ function getDepth(element) {
|
|
|
9194
9283
|
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:block}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;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{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;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{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-bottom:0px;margin-top:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.label{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{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{display:-ms-flexbox;display:flex;width:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.popper-container{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{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{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.popper-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.popper-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.popper-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.popper-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.popper-container--active{pointer-events:initial;visibility:visible}.screen-readers-only{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{max-height:100vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{height:0px;overflow:hidden}.chip{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{background-color:var(--calcite-ui-foreground-3)}.chip:last-of-type{-webkit-margin-end:0;margin-inline-end:0}.item{display:block}::slotted(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}";
|
|
9195
9284
|
|
|
9196
9285
|
const isGroup = (el) => el.tagName === ComboboxItemGroup;
|
|
9286
|
+
const itemUidPrefix = "combobox-item-";
|
|
9287
|
+
const chipUidPrefix = "combobox-chip-";
|
|
9288
|
+
const labelUidPrefix = "combobox-label-";
|
|
9289
|
+
const listboxUidPrefix = "combobox-listbox-";
|
|
9290
|
+
const inputUidPrefix = "combobox-input-";
|
|
9197
9291
|
let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
9198
9292
|
constructor() {
|
|
9199
9293
|
super();
|
|
@@ -9234,6 +9328,10 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9234
9328
|
this.scale = "m";
|
|
9235
9329
|
/** The value(s) of the selectedItem(s) */
|
|
9236
9330
|
this.value = null;
|
|
9331
|
+
/** string to override the English "Remove tag" text for when an item is selected.
|
|
9332
|
+
* @default "Remove tag"
|
|
9333
|
+
*/
|
|
9334
|
+
this.intlRemoveTag = TEXT$f.removeTag;
|
|
9237
9335
|
//--------------------------------------------------------------------------
|
|
9238
9336
|
//
|
|
9239
9337
|
// Private State/Props
|
|
@@ -9743,7 +9841,6 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9743
9841
|
const item = document.createElement(ComboboxItem);
|
|
9744
9842
|
item.value = value;
|
|
9745
9843
|
item.textLabel = value;
|
|
9746
|
-
item.guid = guid();
|
|
9747
9844
|
item.selected = true;
|
|
9748
9845
|
this.el.appendChild(item);
|
|
9749
9846
|
this.resetText();
|
|
@@ -9793,7 +9890,9 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9793
9890
|
focusChip() {
|
|
9794
9891
|
var _a;
|
|
9795
9892
|
const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
|
|
9796
|
-
const chip =
|
|
9893
|
+
const chip = guid
|
|
9894
|
+
? this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`)
|
|
9895
|
+
: null;
|
|
9797
9896
|
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
|
9798
9897
|
}
|
|
9799
9898
|
shiftActiveItemIndex(delta) {
|
|
@@ -9839,7 +9938,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9839
9938
|
//
|
|
9840
9939
|
//--------------------------------------------------------------------------
|
|
9841
9940
|
renderChips() {
|
|
9842
|
-
const { activeChipIndex, scale, selectionMode } = this;
|
|
9941
|
+
const { activeChipIndex, scale, selectionMode, intlRemoveTag } = this;
|
|
9843
9942
|
return this.selectedItems.map((item, i) => {
|
|
9844
9943
|
const chipClasses = {
|
|
9845
9944
|
chip: true,
|
|
@@ -9848,11 +9947,11 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9848
9947
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
9849
9948
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
9850
9949
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
9851
|
-
return (h("calcite-chip", {
|
|
9950
|
+
return (h("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));
|
|
9852
9951
|
});
|
|
9853
9952
|
}
|
|
9854
9953
|
renderInput() {
|
|
9855
|
-
const { active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
9954
|
+
const { guid, active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
9856
9955
|
const single = selectionMode === "single";
|
|
9857
9956
|
const selectedItem = selectedItems[0];
|
|
9858
9957
|
const showLabel = !active && single && !!selectedItem;
|
|
@@ -9862,16 +9961,16 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9862
9961
|
} }, showLabel && (h("span", { class: {
|
|
9863
9962
|
label: true,
|
|
9864
9963
|
"label--spaced": needsIcon
|
|
9865
|
-
}, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)), h("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": guid
|
|
9964
|
+
}, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)), h("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-label": getLabelText(this), class: {
|
|
9866
9965
|
input: true,
|
|
9867
9966
|
"input--single": true,
|
|
9868
9967
|
"input--transparent": this.activeChipIndex > -1,
|
|
9869
9968
|
"input--hidden": showLabel,
|
|
9870
9969
|
"input--icon": single && needsIcon
|
|
9871
|
-
}, disabled: disabled, id: `${guid}
|
|
9970
|
+
}, 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" })));
|
|
9872
9971
|
}
|
|
9873
9972
|
renderListBoxOptions() {
|
|
9874
|
-
return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: item.guid, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
9973
|
+
return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: item.guid ? `${itemUidPrefix}${item.guid}` : null, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
9875
9974
|
}
|
|
9876
9975
|
renderPopperContainer() {
|
|
9877
9976
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
@@ -9897,12 +9996,11 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9897
9996
|
render() {
|
|
9898
9997
|
const { guid, open, label } = this;
|
|
9899
9998
|
const single = this.selectionMode === "single";
|
|
9900
|
-
|
|
9901
|
-
return (h(Host, { onKeyDown: this.keydownHandler }, h("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": labelId, "aria-owns": guid, class: {
|
|
9999
|
+
return (h(Host, { onKeyDown: this.keydownHandler }, h("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
9902
10000
|
wrapper: true,
|
|
9903
10001
|
"wrapper--single": single || !this.selectedItems.length,
|
|
9904
10002
|
"wrapper--active": open
|
|
9905
|
-
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, h("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), h("label", { class: "screen-readers-only", htmlFor: `${guid}
|
|
10003
|
+
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, h("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), h("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label), this.renderInput()), this.renderIconEnd()), h("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderPopperContainer(), h(HiddenFormInputSlot, { component: this })));
|
|
9906
10004
|
}
|
|
9907
10005
|
get el() { return this; }
|
|
9908
10006
|
static get watchers() { return {
|
|
@@ -9974,9 +10072,10 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
|
|
|
9974
10072
|
connectedCallback() {
|
|
9975
10073
|
this.ancestors = getAncestors(this.el);
|
|
9976
10074
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
10075
|
+
connectConditionalSlotComponent(this);
|
|
9977
10076
|
}
|
|
9978
|
-
|
|
9979
|
-
this
|
|
10077
|
+
disconnectedCallback() {
|
|
10078
|
+
disconnectConditionalSlotComponent(this);
|
|
9980
10079
|
}
|
|
9981
10080
|
// --------------------------------------------------------------------------
|
|
9982
10081
|
//
|
|
@@ -10016,10 +10115,10 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
|
|
|
10016
10115
|
}, icon: icon || iconPath, scale: "s" }));
|
|
10017
10116
|
}
|
|
10018
10117
|
renderChildren() {
|
|
10019
|
-
if (
|
|
10020
|
-
return null;
|
|
10118
|
+
if (getSlotted(this.el)) {
|
|
10119
|
+
return (h("ul", { key: "default-slot-container" }, h("slot", null)));
|
|
10021
10120
|
}
|
|
10022
|
-
return
|
|
10121
|
+
return null;
|
|
10023
10122
|
}
|
|
10024
10123
|
render() {
|
|
10025
10124
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
@@ -10274,10 +10373,11 @@ function getSupportedLocale(lang = "") {
|
|
|
10274
10373
|
if (locales.indexOf(lang) > -1) {
|
|
10275
10374
|
return lang;
|
|
10276
10375
|
}
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
|
|
10376
|
+
lang = lang.toLowerCase();
|
|
10377
|
+
if (lang.includes("-")) {
|
|
10378
|
+
lang = lang.replace(/(\w+)-(\w+)/, (_match, language, region) => `${language}-${region.toUpperCase()}`);
|
|
10280
10379
|
}
|
|
10380
|
+
return locales.includes(lang) ? lang : "en";
|
|
10281
10381
|
}
|
|
10282
10382
|
/**
|
|
10283
10383
|
* CLDR cache.
|
|
@@ -11338,7 +11438,7 @@ const SLOTS$h = {
|
|
|
11338
11438
|
dropdownTrigger: "dropdown-trigger"
|
|
11339
11439
|
};
|
|
11340
11440
|
|
|
11341
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{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{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{overflow-y:auto;background-color:var(--calcite-ui-foreground-1);
|
|
11441
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{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{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{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{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";
|
|
11342
11442
|
|
|
11343
11443
|
let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
11344
11444
|
constructor() {
|
|
@@ -11394,6 +11494,7 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11394
11494
|
this.items = [];
|
|
11395
11495
|
this.activeTransitionProp = "visibility";
|
|
11396
11496
|
this.mutationObserver = createObserver("mutation", () => this.updateItems());
|
|
11497
|
+
this.resizeObserver = createObserver("resize", () => this.setMaxScrollerHeight());
|
|
11397
11498
|
//--------------------------------------------------------------------------
|
|
11398
11499
|
//
|
|
11399
11500
|
// Private Methods
|
|
@@ -11406,13 +11507,15 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11406
11507
|
this.reposition();
|
|
11407
11508
|
};
|
|
11408
11509
|
this.setMaxScrollerHeight = () => {
|
|
11409
|
-
const { scrollerEl } = this;
|
|
11410
|
-
if (scrollerEl) {
|
|
11411
|
-
|
|
11412
|
-
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
11510
|
+
const { active, scrollerEl } = this;
|
|
11511
|
+
if (!scrollerEl || !active) {
|
|
11512
|
+
return;
|
|
11413
11513
|
}
|
|
11514
|
+
const maxScrollerHeight = this.getMaxScrollerHeight();
|
|
11515
|
+
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
11414
11516
|
};
|
|
11415
11517
|
this.setScrollerEl = (scrollerEl) => {
|
|
11518
|
+
this.resizeObserver.observe(scrollerEl);
|
|
11416
11519
|
this.scrollerEl = scrollerEl;
|
|
11417
11520
|
};
|
|
11418
11521
|
this.transitionEnd = (event) => {
|
|
@@ -11468,6 +11571,7 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11468
11571
|
}
|
|
11469
11572
|
maxItemsHandler() {
|
|
11470
11573
|
this.reposition();
|
|
11574
|
+
this.setMaxScrollerHeight();
|
|
11471
11575
|
}
|
|
11472
11576
|
placementHandler() {
|
|
11473
11577
|
this.reposition();
|
|
@@ -11487,8 +11591,9 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11487
11591
|
this.reposition();
|
|
11488
11592
|
}
|
|
11489
11593
|
disconnectedCallback() {
|
|
11490
|
-
var _a;
|
|
11594
|
+
var _a, _b;
|
|
11491
11595
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
11596
|
+
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
11492
11597
|
this.destroyPopper();
|
|
11493
11598
|
}
|
|
11494
11599
|
render() {
|
|
@@ -11497,7 +11602,7 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11497
11602
|
["calcite-dropdown-content"]: true,
|
|
11498
11603
|
[CSS$D.animation]: true,
|
|
11499
11604
|
[CSS$D.animationActive]: active
|
|
11500
|
-
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("slot", null)))));
|
|
11605
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("div", { hidden: !this.active }, h("slot", null))))));
|
|
11501
11606
|
}
|
|
11502
11607
|
//--------------------------------------------------------------------------
|
|
11503
11608
|
//
|
|
@@ -11507,7 +11612,6 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11507
11612
|
/** Updates the position of the component. */
|
|
11508
11613
|
async reposition() {
|
|
11509
11614
|
const { popper, menuEl, placement } = this;
|
|
11510
|
-
this.setMaxScrollerHeight();
|
|
11511
11615
|
const modifiers = this.getModifiers();
|
|
11512
11616
|
popper
|
|
11513
11617
|
? await updatePopper({
|
|
@@ -12313,7 +12417,7 @@ function area({ data, min, max, t }) {
|
|
|
12313
12417
|
return `${commands} ${end} L ${maxX},${minY} Z`;
|
|
12314
12418
|
}
|
|
12315
12419
|
|
|
12316
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.svg{fill:currentColor;stroke:transparent;margin:0px;display:block;
|
|
12420
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.svg{fill:currentColor;stroke:transparent;margin:0px;display:block;height:100%;width:100%;padding:0px}.svg .graph-path--highlight{fill:var(--calcite-ui-brand);opacity:0.5}";
|
|
12317
12421
|
|
|
12318
12422
|
let CalciteGraph$1 = class extends HTMLElement$1 {
|
|
12319
12423
|
constructor() {
|
|
@@ -12330,25 +12434,31 @@ let CalciteGraph$1 = class extends HTMLElement$1 {
|
|
|
12330
12434
|
* These data points should be sorted by x-axis value
|
|
12331
12435
|
*/
|
|
12332
12436
|
this.data = [];
|
|
12333
|
-
/** Width of graph in pixels*/
|
|
12334
|
-
this.width = 300;
|
|
12335
|
-
/** Width of graph in pixels*/
|
|
12336
|
-
this.height = 100;
|
|
12337
12437
|
//--------------------------------------------------------------------------
|
|
12338
12438
|
//
|
|
12339
12439
|
// Private State/Props
|
|
12340
12440
|
//
|
|
12341
12441
|
//--------------------------------------------------------------------------
|
|
12342
12442
|
this.graphId = `calcite-graph-${guid()}`;
|
|
12443
|
+
this.resizeObserver = createObserver("resize", () => forceUpdate(this));
|
|
12343
12444
|
}
|
|
12344
12445
|
//--------------------------------------------------------------------------
|
|
12345
12446
|
//
|
|
12346
12447
|
// Lifecycle
|
|
12347
12448
|
//
|
|
12348
12449
|
//--------------------------------------------------------------------------
|
|
12450
|
+
connectedCallback() {
|
|
12451
|
+
var _a;
|
|
12452
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
|
|
12453
|
+
}
|
|
12454
|
+
disconnectedCallback() {
|
|
12455
|
+
var _a;
|
|
12456
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
12457
|
+
}
|
|
12349
12458
|
render() {
|
|
12350
|
-
const { data, colorStops,
|
|
12459
|
+
const { data, colorStops, el, highlightMax, highlightMin, min, max } = this;
|
|
12351
12460
|
const id = this.graphId;
|
|
12461
|
+
const { clientHeight: height, clientWidth: width } = el;
|
|
12352
12462
|
// if we have no data, return empty svg
|
|
12353
12463
|
if (!data || data.length === 0) {
|
|
12354
12464
|
return (h("svg", { class: "svg", height: height, preserveAspectRatio: "none", viewBox: `0 0 ${width} ${height}`, width: width }));
|
|
@@ -12655,8 +12765,8 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12655
12765
|
super();
|
|
12656
12766
|
this.__registerHost();
|
|
12657
12767
|
this.__attachShadow();
|
|
12658
|
-
this.
|
|
12659
|
-
this.
|
|
12768
|
+
this.calciteInlineEditableEditCancel = createEvent(this, "calciteInlineEditableEditCancel", 7);
|
|
12769
|
+
this.calciteInlineEditableEditConfirm = createEvent(this, "calciteInlineEditableEditConfirm", 7);
|
|
12660
12770
|
this.calciteInlineEditableEnableEditingChange = createEvent(this, "calciteInlineEditableEnableEditingChange", 7);
|
|
12661
12771
|
//--------------------------------------------------------------------------
|
|
12662
12772
|
//
|
|
@@ -12683,9 +12793,9 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12683
12793
|
* @default "Save"
|
|
12684
12794
|
*/
|
|
12685
12795
|
this.intlConfirmChanges = TEXT$c.intlConfirmChanges;
|
|
12686
|
-
this.transitionEnd = (
|
|
12796
|
+
this.transitionEnd = () => {
|
|
12687
12797
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
12688
|
-
this.
|
|
12798
|
+
this.calciteInlineEditableEditCancel.emit();
|
|
12689
12799
|
}
|
|
12690
12800
|
};
|
|
12691
12801
|
this.enableEditing = () => {
|
|
@@ -12737,7 +12847,7 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12737
12847
|
this.confirmChangesHandler = async (e) => {
|
|
12738
12848
|
e.preventDefault();
|
|
12739
12849
|
e.stopPropagation();
|
|
12740
|
-
this.
|
|
12850
|
+
this.calciteInlineEditableEditConfirm.emit();
|
|
12741
12851
|
try {
|
|
12742
12852
|
if (this.afterConfirm) {
|
|
12743
12853
|
this.loading = true;
|
|
@@ -12894,7 +13004,7 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12894
13004
|
* string to override English loading text
|
|
12895
13005
|
* @default "Loading"
|
|
12896
13006
|
*/
|
|
12897
|
-
this.intlLoading = TEXT$
|
|
13007
|
+
this.intlLoading = TEXT$r.loading;
|
|
12898
13008
|
/** flip the icon in rtl */
|
|
12899
13009
|
this.iconFlipRtl = false;
|
|
12900
13010
|
/** specify if the input is in loading state */
|
|
@@ -12928,6 +13038,8 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12928
13038
|
this.value = "";
|
|
12929
13039
|
/** keep track of the rendered child type */
|
|
12930
13040
|
this.childElType = "input";
|
|
13041
|
+
/** whether the value of the input was changed as a result of user typing or not */
|
|
13042
|
+
this.internalValueChange = false;
|
|
12931
13043
|
//--------------------------------------------------------------------------
|
|
12932
13044
|
//
|
|
12933
13045
|
// Private Methods
|
|
@@ -12947,11 +13059,15 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12947
13059
|
}
|
|
12948
13060
|
};
|
|
12949
13061
|
this.clearInputValue = (nativeEvent) => {
|
|
12950
|
-
this.setValue(
|
|
13062
|
+
this.setValue({
|
|
13063
|
+
committing: true,
|
|
13064
|
+
nativeEvent,
|
|
13065
|
+
value: ""
|
|
13066
|
+
});
|
|
12951
13067
|
};
|
|
12952
13068
|
this.inputBlurHandler = () => {
|
|
12953
13069
|
if (this.type === "number") {
|
|
12954
|
-
this.
|
|
13070
|
+
this.setValue({ value: this.value });
|
|
12955
13071
|
}
|
|
12956
13072
|
this.calciteInputBlur.emit({
|
|
12957
13073
|
element: this.childEl,
|
|
@@ -12975,7 +13091,10 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12975
13091
|
if (this.disabled || this.readOnly) {
|
|
12976
13092
|
return;
|
|
12977
13093
|
}
|
|
12978
|
-
this.setValue(
|
|
13094
|
+
this.setValue({
|
|
13095
|
+
nativeEvent,
|
|
13096
|
+
value: nativeEvent.target.value
|
|
13097
|
+
});
|
|
12979
13098
|
};
|
|
12980
13099
|
this.inputKeyDownHandler = (event) => {
|
|
12981
13100
|
if (this.disabled || this.readOnly) {
|
|
@@ -12995,11 +13114,17 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12995
13114
|
if (!isValidNumber(delocalizedValue)) {
|
|
12996
13115
|
nativeEvent.preventDefault();
|
|
12997
13116
|
}
|
|
12998
|
-
this.setValue(
|
|
13117
|
+
this.setValue({
|
|
13118
|
+
nativeEvent,
|
|
13119
|
+
value: parseNumberString(delocalizedValue)
|
|
13120
|
+
});
|
|
12999
13121
|
this.childNumberEl.value = this.localizedValue;
|
|
13000
13122
|
}
|
|
13001
13123
|
else {
|
|
13002
|
-
this.setValue(
|
|
13124
|
+
this.setValue({
|
|
13125
|
+
nativeEvent,
|
|
13126
|
+
value: delocalizeNumberString(value, this.locale)
|
|
13127
|
+
});
|
|
13003
13128
|
}
|
|
13004
13129
|
};
|
|
13005
13130
|
this.inputNumberKeyDownHandler = (event) => {
|
|
@@ -13069,6 +13194,9 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13069
13194
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
13070
13195
|
const valueNudgeDelayInMs = 100;
|
|
13071
13196
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
13197
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
13198
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
13199
|
+
}
|
|
13072
13200
|
let firstValueNudge = true;
|
|
13073
13201
|
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
13074
13202
|
if (firstValueNudge) {
|
|
@@ -13092,18 +13220,44 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13092
13220
|
this.setChildNumberElRef = (el) => {
|
|
13093
13221
|
this.childNumberEl = el;
|
|
13094
13222
|
};
|
|
13095
|
-
this.
|
|
13096
|
-
this.
|
|
13097
|
-
|
|
13098
|
-
|
|
13099
|
-
|
|
13223
|
+
this.setInputValue = (newInputValue) => {
|
|
13224
|
+
if (this.type === "text" && !this.childEl) {
|
|
13225
|
+
return;
|
|
13226
|
+
}
|
|
13227
|
+
if (this.type === "number" && !this.childNumberEl) {
|
|
13228
|
+
return;
|
|
13229
|
+
}
|
|
13230
|
+
this[`child${this.type === "number" ? "Number" : ""}El`].value = newInputValue;
|
|
13231
|
+
};
|
|
13232
|
+
this.setPreviousValue = (newPreviousValue) => {
|
|
13233
|
+
this.previousValue =
|
|
13234
|
+
this.type === "number"
|
|
13235
|
+
? isValidNumber(newPreviousValue)
|
|
13236
|
+
? newPreviousValue
|
|
13237
|
+
: ""
|
|
13238
|
+
: newPreviousValue;
|
|
13239
|
+
};
|
|
13240
|
+
this.setValue = ({ committing = false, nativeEvent, origin = "internal", value }) => {
|
|
13241
|
+
const previousLocalizedValue = this.type === "number"
|
|
13242
|
+
? localizeNumberString(this.previousValue, this.locale, this.groupSeparator)
|
|
13243
|
+
: "";
|
|
13244
|
+
const sanitizedValue = this.type === "number" ? sanitizeNumberString(value) : value;
|
|
13245
|
+
const newValue = this.type === "number" && value && !sanitizedValue
|
|
13246
|
+
? isValidNumber(this.previousValue)
|
|
13247
|
+
? this.previousValue
|
|
13248
|
+
: ""
|
|
13249
|
+
: sanitizedValue;
|
|
13250
|
+
const newLocalizedValue = this.type === "number"
|
|
13251
|
+
? localizeNumberString(newValue, this.locale, this.groupSeparator)
|
|
13252
|
+
: "";
|
|
13253
|
+
this.internalValueChange = origin === "internal";
|
|
13254
|
+
this.setPreviousValue(this.value);
|
|
13255
|
+
this.value = newValue;
|
|
13100
13256
|
if (this.type === "number") {
|
|
13101
|
-
|
|
13102
|
-
this.value = sanitizedValue;
|
|
13103
|
-
this.setLocalizedValue(sanitizedValue);
|
|
13257
|
+
this.localizedValue = newLocalizedValue;
|
|
13104
13258
|
}
|
|
13105
|
-
|
|
13106
|
-
this.
|
|
13259
|
+
if (origin === "external") {
|
|
13260
|
+
this.setInputValue(this.type === "number" ? newLocalizedValue : newValue);
|
|
13107
13261
|
}
|
|
13108
13262
|
if (nativeEvent) {
|
|
13109
13263
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
@@ -13112,8 +13266,8 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13112
13266
|
value: this.value
|
|
13113
13267
|
});
|
|
13114
13268
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
13115
|
-
this.value = previousValue;
|
|
13116
|
-
this.
|
|
13269
|
+
this.value = this.previousValue;
|
|
13270
|
+
this.localizedValue = previousLocalizedValue;
|
|
13117
13271
|
}
|
|
13118
13272
|
else if (committing) {
|
|
13119
13273
|
this.calciteInputChange.emit();
|
|
@@ -13138,17 +13292,20 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13138
13292
|
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
13139
13293
|
}
|
|
13140
13294
|
valueWatcher(newValue) {
|
|
13141
|
-
if (
|
|
13142
|
-
this.
|
|
13143
|
-
|
|
13144
|
-
|
|
13145
|
-
|
|
13146
|
-
|
|
13147
|
-
|
|
13148
|
-
|
|
13149
|
-
|
|
13150
|
-
|
|
13295
|
+
if (!this.internalValueChange) {
|
|
13296
|
+
this.setValue({
|
|
13297
|
+
origin: "external",
|
|
13298
|
+
value: newValue == null
|
|
13299
|
+
? ""
|
|
13300
|
+
: this.type === "number"
|
|
13301
|
+
? isValidNumber(newValue)
|
|
13302
|
+
? newValue
|
|
13303
|
+
: this.previousValue || ""
|
|
13304
|
+
: newValue
|
|
13305
|
+
});
|
|
13306
|
+
this.warnAboutInvalidNumberValue(newValue);
|
|
13151
13307
|
}
|
|
13308
|
+
this.internalValueChange = false;
|
|
13152
13309
|
}
|
|
13153
13310
|
updateRequestedIcon() {
|
|
13154
13311
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
@@ -13171,13 +13328,13 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13171
13328
|
if (this.inlineEditableEl) {
|
|
13172
13329
|
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
13173
13330
|
}
|
|
13174
|
-
|
|
13175
|
-
|
|
13176
|
-
|
|
13177
|
-
|
|
13178
|
-
|
|
13179
|
-
this.value
|
|
13180
|
-
}
|
|
13331
|
+
this.setPreviousValue(this.value);
|
|
13332
|
+
if (this.type === "number") {
|
|
13333
|
+
this.warnAboutInvalidNumberValue(this.value);
|
|
13334
|
+
this.setValue({
|
|
13335
|
+
origin: "loading",
|
|
13336
|
+
value: isValidNumber(this.value) ? this.value : ""
|
|
13337
|
+
});
|
|
13181
13338
|
}
|
|
13182
13339
|
connectLabel(this);
|
|
13183
13340
|
connectForm(this);
|
|
@@ -13199,7 +13356,9 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13199
13356
|
}
|
|
13200
13357
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
13201
13358
|
if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
|
|
13202
|
-
this.
|
|
13359
|
+
this.setValue({
|
|
13360
|
+
value: oldValue
|
|
13361
|
+
});
|
|
13203
13362
|
return false;
|
|
13204
13363
|
}
|
|
13205
13364
|
return true;
|
|
@@ -13234,10 +13393,16 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13234
13393
|
: nudgedValue;
|
|
13235
13394
|
const inputValPlaces = decimalPlaces(inputVal);
|
|
13236
13395
|
const inputStepPlaces = decimalPlaces(inputStep);
|
|
13237
|
-
this.setValue(
|
|
13396
|
+
this.setValue({
|
|
13397
|
+
committing: true,
|
|
13398
|
+
nativeEvent,
|
|
13399
|
+
value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
|
|
13400
|
+
});
|
|
13238
13401
|
}
|
|
13239
13402
|
onFormReset() {
|
|
13240
|
-
this.setValue(
|
|
13403
|
+
this.setValue({
|
|
13404
|
+
value: this.defaultValue
|
|
13405
|
+
});
|
|
13241
13406
|
}
|
|
13242
13407
|
syncHiddenFormInput(input) {
|
|
13243
13408
|
var _a, _b, _c, _d;
|
|
@@ -13268,6 +13433,11 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13268
13433
|
? slottedActionEl.setAttribute("disabled", "")
|
|
13269
13434
|
: slottedActionEl.removeAttribute("disabled");
|
|
13270
13435
|
}
|
|
13436
|
+
warnAboutInvalidNumberValue(value) {
|
|
13437
|
+
if (this.type === "number" && value && !isValidNumber(value)) {
|
|
13438
|
+
console.warn(`The specified value "${value}" cannot be parsed, or is out of range.`);
|
|
13439
|
+
}
|
|
13440
|
+
}
|
|
13271
13441
|
// --------------------------------------------------------------------------
|
|
13272
13442
|
//
|
|
13273
13443
|
// Render Methods
|
|
@@ -14257,6 +14427,11 @@ let CalciteLink$1 = class extends HTMLElement$1 {
|
|
|
14257
14427
|
//--------------------------------------------------------------------------
|
|
14258
14428
|
/** is the link disabled */
|
|
14259
14429
|
this.disabled = false;
|
|
14430
|
+
/** Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
|
|
14431
|
+
* Without a value, the browser will suggest a filename/extension
|
|
14432
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
|
|
14433
|
+
*/
|
|
14434
|
+
this.download = false;
|
|
14260
14435
|
/** the node type of the rendered child element */
|
|
14261
14436
|
this.childElType = "span";
|
|
14262
14437
|
//--------------------------------------------------------------------------
|
|
@@ -14280,13 +14455,19 @@ let CalciteLink$1 = class extends HTMLElement$1 {
|
|
|
14280
14455
|
this.childElType = this.href ? "a" : "span";
|
|
14281
14456
|
}
|
|
14282
14457
|
render() {
|
|
14283
|
-
const
|
|
14458
|
+
const { download, el } = this;
|
|
14459
|
+
const dir = getElementDir(el);
|
|
14284
14460
|
const iconStartEl = (h("calcite-icon", { class: "calcite-link--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
14285
14461
|
const iconEndEl = (h("calcite-icon", { class: "calcite-link--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
14286
14462
|
const Tag = this.childElType;
|
|
14287
14463
|
const role = this.childElType === "span" ? "link" : null;
|
|
14288
14464
|
const tabIndex = this.disabled ? -1 : this.childElType === "span" ? 0 : null;
|
|
14289
|
-
return (h(Host, { role: "presentation" }, h(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
|
|
14465
|
+
return (h(Host, { role: "presentation" }, h(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
|
|
14466
|
+
/*
|
|
14467
|
+
When the 'download' property of type 'boolean | string' is set to true, the value is "".
|
|
14468
|
+
This works around that issue for now.
|
|
14469
|
+
*/
|
|
14470
|
+
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, h("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
14290
14471
|
}
|
|
14291
14472
|
//--------------------------------------------------------------------------
|
|
14292
14473
|
//
|
|
@@ -14381,6 +14562,17 @@ let CalciteListItem$1 = class extends HTMLElement$1 {
|
|
|
14381
14562
|
}
|
|
14382
14563
|
// --------------------------------------------------------------------------
|
|
14383
14564
|
//
|
|
14565
|
+
// Lifecycle
|
|
14566
|
+
//
|
|
14567
|
+
// --------------------------------------------------------------------------
|
|
14568
|
+
connectedCallback() {
|
|
14569
|
+
connectConditionalSlotComponent(this);
|
|
14570
|
+
}
|
|
14571
|
+
disconnectedCallback() {
|
|
14572
|
+
disconnectConditionalSlotComponent(this);
|
|
14573
|
+
}
|
|
14574
|
+
// --------------------------------------------------------------------------
|
|
14575
|
+
//
|
|
14384
14576
|
// Public Methods
|
|
14385
14577
|
//
|
|
14386
14578
|
// --------------------------------------------------------------------------
|
|
@@ -14770,11 +14962,13 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14770
14962
|
var _a;
|
|
14771
14963
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
14772
14964
|
this.updateFooterVisibility();
|
|
14965
|
+
connectConditionalSlotComponent(this);
|
|
14773
14966
|
}
|
|
14774
14967
|
disconnectedCallback() {
|
|
14775
14968
|
var _a;
|
|
14776
14969
|
this.removeOverflowHiddenClass();
|
|
14777
14970
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
14971
|
+
disconnectConditionalSlotComponent(this);
|
|
14778
14972
|
}
|
|
14779
14973
|
render() {
|
|
14780
14974
|
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS$n.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), h("div", { class: "modal", onTransitionEnd: this.transitionEnd }, h("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), h("div", { class: CSS$n.header }, this.renderCloseButton(), h("header", { class: CSS$n.title }, h("slot", { name: CSS$n.header }))), h("div", { class: {
|
|
@@ -14784,10 +14978,10 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14784
14978
|
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS$e.content })), this.renderFooter(), h("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
14785
14979
|
}
|
|
14786
14980
|
renderFooter() {
|
|
14787
|
-
return this.hasFooter ? (h("div", { class: CSS$n.footer }, h("span", { class: CSS$n.back }, h("slot", { name: SLOTS$e.back })), h("span", { class: CSS$n.secondary }, h("slot", { name: SLOTS$e.secondary })), h("span", { class: CSS$n.primary }, h("slot", { name: SLOTS$e.primary })))) : null;
|
|
14981
|
+
return this.hasFooter ? (h("div", { class: CSS$n.footer, key: "footer" }, h("span", { class: CSS$n.back }, h("slot", { name: SLOTS$e.back })), h("span", { class: CSS$n.secondary }, h("slot", { name: SLOTS$e.secondary })), h("span", { class: CSS$n.primary }, h("slot", { name: SLOTS$e.primary })))) : null;
|
|
14788
14982
|
}
|
|
14789
14983
|
renderCloseButton() {
|
|
14790
|
-
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$n.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
14984
|
+
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$n.close, key: "button", onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
14791
14985
|
}
|
|
14792
14986
|
renderStyle() {
|
|
14793
14987
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -14952,6 +15146,12 @@ let CalciteNotice$1 = class extends HTMLElement$1 {
|
|
|
14952
15146
|
// Lifecycle
|
|
14953
15147
|
//
|
|
14954
15148
|
//--------------------------------------------------------------------------
|
|
15149
|
+
connectedCallback() {
|
|
15150
|
+
connectConditionalSlotComponent(this);
|
|
15151
|
+
}
|
|
15152
|
+
disconnectedCallback() {
|
|
15153
|
+
disconnectConditionalSlotComponent(this);
|
|
15154
|
+
}
|
|
14955
15155
|
componentWillLoad() {
|
|
14956
15156
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
14957
15157
|
}
|
|
@@ -15390,6 +15590,17 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15390
15590
|
}
|
|
15391
15591
|
// --------------------------------------------------------------------------
|
|
15392
15592
|
//
|
|
15593
|
+
// Lifecycle
|
|
15594
|
+
//
|
|
15595
|
+
// --------------------------------------------------------------------------
|
|
15596
|
+
connectedCallback() {
|
|
15597
|
+
connectConditionalSlotComponent(this);
|
|
15598
|
+
}
|
|
15599
|
+
disconnectedCallback() {
|
|
15600
|
+
disconnectConditionalSlotComponent(this);
|
|
15601
|
+
}
|
|
15602
|
+
// --------------------------------------------------------------------------
|
|
15603
|
+
//
|
|
15393
15604
|
// Methods
|
|
15394
15605
|
//
|
|
15395
15606
|
// --------------------------------------------------------------------------
|
|
@@ -15429,7 +15640,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15429
15640
|
* Allows user to override the entire header-content node.
|
|
15430
15641
|
*/
|
|
15431
15642
|
renderHeaderSlottedContent() {
|
|
15432
|
-
return (h("div", { class: CSS$k.headerContent, key: "header-content" }, h("slot", { name: SLOTS$c.headerContent })));
|
|
15643
|
+
return (h("div", { class: CSS$k.headerContent, key: "slotted-header-content" }, h("slot", { name: SLOTS$c.headerContent })));
|
|
15433
15644
|
}
|
|
15434
15645
|
renderHeaderStartActions() {
|
|
15435
15646
|
const { el } = this;
|
|
@@ -15447,7 +15658,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15447
15658
|
renderMenu() {
|
|
15448
15659
|
const { el, intlOptions, menuOpen } = this;
|
|
15449
15660
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
15450
|
-
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$p.trigger, text: intlOptions || TEXT$8.options }), h("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
15661
|
+
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$p.trigger, text: intlOptions || TEXT$8.options }), h("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
15451
15662
|
}
|
|
15452
15663
|
renderHeaderNode() {
|
|
15453
15664
|
const { el, showBackButton } = this;
|
|
@@ -15465,18 +15676,11 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15465
15676
|
headerMenuNode ||
|
|
15466
15677
|
showBackButton ? (h("header", { class: CSS$k.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
15467
15678
|
}
|
|
15468
|
-
|
|
15469
|
-
* Allows user to override the entire footer node.
|
|
15470
|
-
*/
|
|
15471
|
-
renderFooterSlottedContent() {
|
|
15679
|
+
renderFooterNode() {
|
|
15472
15680
|
const { el } = this;
|
|
15473
15681
|
const hasFooterSlottedContent = getSlotted(el, SLOTS$c.footer);
|
|
15474
|
-
return hasFooterSlottedContent ? (h("footer", { class: CSS$k.footer }, h("slot", { name: SLOTS$c.footer }))) : null;
|
|
15475
|
-
}
|
|
15476
|
-
renderFooterActions() {
|
|
15477
|
-
const { el } = this;
|
|
15478
15682
|
const hasFooterActions = getSlotted(el, SLOTS$c.footerActions);
|
|
15479
|
-
return hasFooterActions ? (h("footer", { class: CSS$k.footer }, h("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
15683
|
+
return hasFooterSlottedContent || hasFooterActions ? (h("footer", { class: CSS$k.footer, key: "footer" }, hasFooterSlottedContent ? h("slot", { key: "footer-slot", name: SLOTS$c.footer }) : null, hasFooterActions ? h("slot", { key: "footer-actions-slot", name: SLOTS$c.footerActions }) : null)) : null;
|
|
15480
15684
|
}
|
|
15481
15685
|
renderContent() {
|
|
15482
15686
|
const { el } = this;
|
|
@@ -15488,7 +15692,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15488
15692
|
}
|
|
15489
15693
|
render() {
|
|
15490
15694
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
15491
|
-
const panelNode = (h("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.
|
|
15695
|
+
const panelNode = (h("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()));
|
|
15492
15696
|
return (h(Fragment, null, loading || disabled ? h("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
15493
15697
|
}
|
|
15494
15698
|
get el() { return this; }
|
|
@@ -15940,6 +16144,17 @@ let CalcitePickListGroup$1 = class extends HTMLElement$1 {
|
|
|
15940
16144
|
}
|
|
15941
16145
|
// --------------------------------------------------------------------------
|
|
15942
16146
|
//
|
|
16147
|
+
// Lifecycle
|
|
16148
|
+
//
|
|
16149
|
+
// --------------------------------------------------------------------------
|
|
16150
|
+
connectedCallback() {
|
|
16151
|
+
connectConditionalSlotComponent(this);
|
|
16152
|
+
}
|
|
16153
|
+
disconnectedCallback() {
|
|
16154
|
+
disconnectConditionalSlotComponent(this);
|
|
16155
|
+
}
|
|
16156
|
+
// --------------------------------------------------------------------------
|
|
16157
|
+
//
|
|
15943
16158
|
// Render Methods
|
|
15944
16159
|
//
|
|
15945
16160
|
// --------------------------------------------------------------------------
|
|
@@ -16077,6 +16292,17 @@ let CalcitePickListItem$1 = class extends HTMLElement$1 {
|
|
|
16077
16292
|
}
|
|
16078
16293
|
// --------------------------------------------------------------------------
|
|
16079
16294
|
//
|
|
16295
|
+
// Lifecycle
|
|
16296
|
+
//
|
|
16297
|
+
// --------------------------------------------------------------------------
|
|
16298
|
+
connectedCallback() {
|
|
16299
|
+
connectConditionalSlotComponent(this);
|
|
16300
|
+
}
|
|
16301
|
+
disconnectedCallback() {
|
|
16302
|
+
disconnectConditionalSlotComponent(this);
|
|
16303
|
+
}
|
|
16304
|
+
// --------------------------------------------------------------------------
|
|
16305
|
+
//
|
|
16080
16306
|
// Public Methods
|
|
16081
16307
|
//
|
|
16082
16308
|
// --------------------------------------------------------------------------
|
|
@@ -17509,12 +17735,23 @@ let CalciteShell$1 = class extends HTMLElement$1 {
|
|
|
17509
17735
|
}
|
|
17510
17736
|
// --------------------------------------------------------------------------
|
|
17511
17737
|
//
|
|
17738
|
+
// Lifecycle
|
|
17739
|
+
//
|
|
17740
|
+
// --------------------------------------------------------------------------
|
|
17741
|
+
connectedCallback() {
|
|
17742
|
+
connectConditionalSlotComponent(this);
|
|
17743
|
+
}
|
|
17744
|
+
disconnectedCallback() {
|
|
17745
|
+
disconnectConditionalSlotComponent(this);
|
|
17746
|
+
}
|
|
17747
|
+
// --------------------------------------------------------------------------
|
|
17748
|
+
//
|
|
17512
17749
|
// Render Methods
|
|
17513
17750
|
//
|
|
17514
17751
|
// --------------------------------------------------------------------------
|
|
17515
17752
|
renderHeader() {
|
|
17516
17753
|
const hasHeader = !!getSlotted(this.el, SLOTS$7.header);
|
|
17517
|
-
return hasHeader ? h("slot", { name: SLOTS$7.header }) : null;
|
|
17754
|
+
return hasHeader ? h("slot", { key: "header", name: SLOTS$7.header }) : null;
|
|
17518
17755
|
}
|
|
17519
17756
|
renderContent() {
|
|
17520
17757
|
const content = !!this.contentBehind
|
|
@@ -17532,7 +17769,7 @@ let CalciteShell$1 = class extends HTMLElement$1 {
|
|
|
17532
17769
|
}
|
|
17533
17770
|
renderFooter() {
|
|
17534
17771
|
const hasFooter = !!getSlotted(this.el, SLOTS$7.footer);
|
|
17535
|
-
return hasFooter ? (h("div", { class: CSS$b.footer }, h("slot", { name: SLOTS$7.footer }))) : null;
|
|
17772
|
+
return hasFooter ? (h("div", { class: CSS$b.footer, key: "footer" }, h("slot", { name: SLOTS$7.footer }))) : null;
|
|
17536
17773
|
}
|
|
17537
17774
|
renderMain() {
|
|
17538
17775
|
const primaryPanel = getSlotted(this.el, SLOTS$7.primaryPanel);
|
|
@@ -17584,6 +17821,17 @@ let CalciteShellCenterRow$1 = class extends HTMLElement$1 {
|
|
|
17584
17821
|
}
|
|
17585
17822
|
// --------------------------------------------------------------------------
|
|
17586
17823
|
//
|
|
17824
|
+
// Lifecycle
|
|
17825
|
+
//
|
|
17826
|
+
// --------------------------------------------------------------------------
|
|
17827
|
+
connectedCallback() {
|
|
17828
|
+
connectConditionalSlotComponent(this);
|
|
17829
|
+
}
|
|
17830
|
+
disconnectedCallback() {
|
|
17831
|
+
disconnectConditionalSlotComponent(this);
|
|
17832
|
+
}
|
|
17833
|
+
// --------------------------------------------------------------------------
|
|
17834
|
+
//
|
|
17587
17835
|
// Render Methods
|
|
17588
17836
|
//
|
|
17589
17837
|
// --------------------------------------------------------------------------
|
|
@@ -17591,7 +17839,7 @@ let CalciteShellCenterRow$1 = class extends HTMLElement$1 {
|
|
|
17591
17839
|
const { el } = this;
|
|
17592
17840
|
const contentNode = (h("div", { class: CSS$a.content }, h("slot", null)));
|
|
17593
17841
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
17594
|
-
const actionBarNode = actionBar ? (h("div", { class: CSS$a.actionBarContainer }, h("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
17842
|
+
const actionBarNode = actionBar ? (h("div", { class: CSS$a.actionBarContainer, key: "action-bar" }, h("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
17595
17843
|
const children = [actionBarNode, contentNode];
|
|
17596
17844
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
17597
17845
|
children.reverse();
|
|
@@ -17765,7 +18013,11 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17765
18013
|
// Lifecycle
|
|
17766
18014
|
//
|
|
17767
18015
|
//--------------------------------------------------------------------------
|
|
18016
|
+
connectedCallback() {
|
|
18017
|
+
connectConditionalSlotComponent(this);
|
|
18018
|
+
}
|
|
17768
18019
|
disconnectedCallback() {
|
|
18020
|
+
disconnectConditionalSlotComponent(this);
|
|
17769
18021
|
this.disconnectSeparator();
|
|
17770
18022
|
}
|
|
17771
18023
|
componentDidLoad() {
|
|
@@ -17779,14 +18031,14 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17779
18031
|
renderHeader() {
|
|
17780
18032
|
const { el } = this;
|
|
17781
18033
|
const hasHeader = getSlotted(el, SLOTS$5.header);
|
|
17782
|
-
return hasHeader ? (h("div", { class: CSS$9.contentHeader }, h("slot", { name: SLOTS$5.header }))) : null;
|
|
18034
|
+
return hasHeader ? (h("div", { class: CSS$9.contentHeader, key: "header" }, h("slot", { name: SLOTS$5.header }))) : null;
|
|
17783
18035
|
}
|
|
17784
18036
|
render() {
|
|
17785
18037
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
17786
18038
|
const allowResizing = !detached && resizable;
|
|
17787
|
-
const contentNode = (h("div", { class: { [CSS$9.content]: true, [CSS$9.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS$9.contentBody }, h("slot", null))));
|
|
17788
|
-
const separatorNode = allowResizing ? (h("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;
|
|
17789
|
-
const actionBarNode = h("slot", { name: SLOTS$5.actionBar });
|
|
18039
|
+
const contentNode = (h("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(), h("div", { class: CSS$9.contentBody }, h("slot", null))));
|
|
18040
|
+
const separatorNode = allowResizing ? (h("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;
|
|
18041
|
+
const actionBarNode = h("slot", { key: "action-bar", name: SLOTS$5.actionBar });
|
|
17790
18042
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
17791
18043
|
if (position === "end") {
|
|
17792
18044
|
mainNodes.reverse();
|
|
@@ -17833,7 +18085,7 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17833
18085
|
static get style() { return calciteShellPanelCss; }
|
|
17834
18086
|
};
|
|
17835
18087
|
|
|
17836
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{--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{line-height:.75rem}.scale--m{--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{line-height:1rem}.scale--l{--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{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{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]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-width:100%}.thumb{--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{position:absolute;top:0px;bottom:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle{-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{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-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{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-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{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{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{background-color:var(--calcite-ui-brand)}.track{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{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range: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{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{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-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{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3)}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{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{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(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}";
|
|
18088
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{--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{line-height:.75rem}.scale--m{--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{line-height:1rem}.scale--l{--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{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{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]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-width:100%}.thumb{--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{position:absolute;top:0px;bottom:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle__label.hyphen--wrap{display:-ms-flexbox;display:flex}.thumb .handle{-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{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-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{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-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{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{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{background-color:var(--calcite-ui-brand)}.track{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{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range: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{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{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-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{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3);height:48px}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{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{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(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}";
|
|
17837
18089
|
|
|
17838
18090
|
let CalciteSlider$1 = class extends HTMLElement$1 {
|
|
17839
18091
|
constructor() {
|
|
@@ -18090,7 +18342,7 @@ let CalciteSlider$1 = class extends HTMLElement$1 {
|
|
|
18090
18342
|
histogramLabeledPreciseHandle, h(HiddenFormInputSlot, { component: this })))));
|
|
18091
18343
|
}
|
|
18092
18344
|
renderGraph() {
|
|
18093
|
-
return this.histogram ? (h("
|
|
18345
|
+
return this.histogram ? (h("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;
|
|
18094
18346
|
}
|
|
18095
18347
|
renderTickLabel(tick) {
|
|
18096
18348
|
const isMinTickLabel = tick === this.min;
|
|
@@ -18397,7 +18649,7 @@ let CalciteSlider$1 = class extends HTMLElement$1 {
|
|
|
18397
18649
|
const hyphenLabel = leftValueLabel;
|
|
18398
18650
|
const labelOffset = labelFontSize / 2;
|
|
18399
18651
|
if (labelTransformedOverlap > 0) {
|
|
18400
|
-
hyphenLabel.classList.add("hyphen");
|
|
18652
|
+
hyphenLabel.classList.add("hyphen", "hyphen--wrap");
|
|
18401
18653
|
if (rightValueLabelStaticHostOffset === 0 && leftValueLabelStaticHostOffset === 0) {
|
|
18402
18654
|
// Neither handle overlaps the host boundary
|
|
18403
18655
|
let leftValueLabelTranslate = labelTransformedOverlap / 2 - labelOffset;
|
|
@@ -18443,7 +18695,7 @@ let CalciteSlider$1 = class extends HTMLElement$1 {
|
|
|
18443
18695
|
}
|
|
18444
18696
|
}
|
|
18445
18697
|
else {
|
|
18446
|
-
hyphenLabel.classList.remove("hyphen");
|
|
18698
|
+
hyphenLabel.classList.remove("hyphen", "hyphen--wrap");
|
|
18447
18699
|
leftValueLabel.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
|
|
18448
18700
|
leftValueLabelTransformed.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
|
|
18449
18701
|
rightValueLabel.style.transform = `translateX(${rightValueLabelStaticHostOffset}px)`;
|
|
@@ -22898,6 +23150,17 @@ let CalciteTile$1 = class extends HTMLElement$1 {
|
|
|
22898
23150
|
}
|
|
22899
23151
|
// --------------------------------------------------------------------------
|
|
22900
23152
|
//
|
|
23153
|
+
// Lifecycle
|
|
23154
|
+
//
|
|
23155
|
+
// --------------------------------------------------------------------------
|
|
23156
|
+
connectedCallback() {
|
|
23157
|
+
connectConditionalSlotComponent(this);
|
|
23158
|
+
}
|
|
23159
|
+
disconnectedCallback() {
|
|
23160
|
+
disconnectConditionalSlotComponent(this);
|
|
23161
|
+
}
|
|
23162
|
+
// --------------------------------------------------------------------------
|
|
23163
|
+
//
|
|
22901
23164
|
// Render Methods
|
|
22902
23165
|
//
|
|
22903
23166
|
// --------------------------------------------------------------------------
|
|
@@ -23836,6 +24099,17 @@ let CalciteTip$1 = class extends HTMLElement$1 {
|
|
|
23836
24099
|
}
|
|
23837
24100
|
// --------------------------------------------------------------------------
|
|
23838
24101
|
//
|
|
24102
|
+
// Lifecycle
|
|
24103
|
+
//
|
|
24104
|
+
// --------------------------------------------------------------------------
|
|
24105
|
+
connectedCallback() {
|
|
24106
|
+
connectConditionalSlotComponent(this);
|
|
24107
|
+
}
|
|
24108
|
+
disconnectedCallback() {
|
|
24109
|
+
disconnectConditionalSlotComponent(this);
|
|
24110
|
+
}
|
|
24111
|
+
// --------------------------------------------------------------------------
|
|
24112
|
+
//
|
|
23839
24113
|
// Render Methods
|
|
23840
24114
|
//
|
|
23841
24115
|
// --------------------------------------------------------------------------
|
|
@@ -23854,7 +24128,7 @@ let CalciteTip$1 = class extends HTMLElement$1 {
|
|
|
23854
24128
|
}
|
|
23855
24129
|
renderImageFrame() {
|
|
23856
24130
|
const { el } = this;
|
|
23857
|
-
return getSlotted(el, SLOTS$2.thumbnail) ? (h("div", { class: CSS$3.imageFrame }, h("slot", { name: SLOTS$2.thumbnail }))) : null;
|
|
24131
|
+
return getSlotted(el, SLOTS$2.thumbnail) ? (h("div", { class: CSS$3.imageFrame, key: "thumbnail" }, h("slot", { name: SLOTS$2.thumbnail }))) : null;
|
|
23858
24132
|
}
|
|
23859
24133
|
renderInfoNode() {
|
|
23860
24134
|
return (h("div", { class: CSS$3.info }, h("slot", null)));
|
|
@@ -24449,7 +24723,8 @@ let CalciteTree$1 = class extends HTMLElement$1 {
|
|
|
24449
24723
|
onFocusIn(event) {
|
|
24450
24724
|
const focusedFromRootOrOutsideTree = event.relatedTarget === this.el || !this.el.contains(event.relatedTarget);
|
|
24451
24725
|
if (focusedFromRootOrOutsideTree) {
|
|
24452
|
-
|
|
24726
|
+
// gives user the ability to tab into external elements (modifying tabindex property will not work in firefox)
|
|
24727
|
+
this.el.removeAttribute("tabindex");
|
|
24453
24728
|
}
|
|
24454
24729
|
}
|
|
24455
24730
|
onFocusOut(event) {
|
|
@@ -24668,6 +24943,10 @@ let CalciteTreeItem$1 = class extends HTMLElement$1 {
|
|
|
24668
24943
|
const { expanded } = this.parentTreeItem;
|
|
24669
24944
|
this.updateParentIsExpanded(this.parentTreeItem, expanded);
|
|
24670
24945
|
}
|
|
24946
|
+
connectConditionalSlotComponent(this);
|
|
24947
|
+
}
|
|
24948
|
+
disconnectedCallback() {
|
|
24949
|
+
disconnectConditionalSlotComponent(this);
|
|
24671
24950
|
}
|
|
24672
24951
|
componentWillRender() {
|
|
24673
24952
|
this.hasChildren = !!this.el.querySelector("calcite-tree");
|
|
@@ -25108,6 +25387,17 @@ let CalciteValueListItem$1 = class extends HTMLElement$1 {
|
|
|
25108
25387
|
}
|
|
25109
25388
|
// --------------------------------------------------------------------------
|
|
25110
25389
|
//
|
|
25390
|
+
// Lifecycle
|
|
25391
|
+
//
|
|
25392
|
+
// --------------------------------------------------------------------------
|
|
25393
|
+
connectedCallback() {
|
|
25394
|
+
connectConditionalSlotComponent(this);
|
|
25395
|
+
}
|
|
25396
|
+
disconnectedCallback() {
|
|
25397
|
+
disconnectConditionalSlotComponent(this);
|
|
25398
|
+
}
|
|
25399
|
+
// --------------------------------------------------------------------------
|
|
25400
|
+
//
|
|
25111
25401
|
// Public Methods
|
|
25112
25402
|
//
|
|
25113
25403
|
// --------------------------------------------------------------------------
|
|
@@ -25176,7 +25466,7 @@ const CalciteChip = /*@__PURE__*/proxyCustomElement(CalciteChip$1, [1,"calcite-c
|
|
|
25176
25466
|
const CalciteColorPicker = /*@__PURE__*/proxyCustomElement(CalciteColorPicker$1, [1,"calcite-color-picker",{"allowEmpty":[4,"allow-empty"],"appearance":[513],"color":[1040],"format":[1],"hideHex":[4,"hide-hex"],"hideChannels":[4,"hide-channels"],"hideSaved":[4,"hide-saved"],"intlB":[1,"intl-b"],"intlBlue":[1,"intl-blue"],"intlDeleteColor":[1,"intl-delete-color"],"intlG":[1,"intl-g"],"intlGreen":[1,"intl-green"],"intlH":[1,"intl-h"],"intlHsv":[1,"intl-hsv"],"intlHex":[1,"intl-hex"],"intlHue":[1,"intl-hue"],"intlNoColor":[1,"intl-no-color"],"intlR":[1,"intl-r"],"intlRed":[1,"intl-red"],"intlRgb":[1,"intl-rgb"],"intlS":[1,"intl-s"],"intlSaturation":[1,"intl-saturation"],"intlSaveColor":[1,"intl-save-color"],"intlSaved":[1,"intl-saved"],"intlV":[1,"intl-v"],"intlValue":[1,"intl-value"],"scale":[513],"storageId":[1,"storage-id"],"value":[1025],"colorFieldAndSliderInteractive":[32],"channelMode":[32],"channels":[32],"dimensions":[32],"savedColors":[32],"colorFieldScopeTop":[32],"colorFieldScopeLeft":[32],"scopeOrientation":[32],"hueScopeLeft":[32],"hueScopeTop":[32]},[[2,"keydown","handleChannelKeyUpOrDown"],[2,"keyup","handleChannelKeyUpOrDown"]]]);
|
|
25177
25467
|
const CalciteColorPickerHexInput = /*@__PURE__*/proxyCustomElement(CalciteColorPickerHexInput$1, [1,"calcite-color-picker-hex-input",{"allowEmpty":[4,"allow-empty"],"intlHex":[1,"intl-hex"],"intlNoColor":[1,"intl-no-color"],"scale":[513],"value":[1537],"internalColor":[32]},[[2,"keydown","onInputKeyDown"]]]);
|
|
25178
25468
|
const CalciteColorPickerSwatch = /*@__PURE__*/proxyCustomElement(CalciteColorPickerSwatch$1, [1,"calcite-color-picker-swatch",{"active":[516],"color":[1],"scale":[513]}]);
|
|
25179
|
-
const CalciteCombobox = /*@__PURE__*/proxyCustomElement(CalciteCombobox$1, [1,"calcite-combobox",{"active":[1540],"disabled":[516],"label":[1],"placeholder":[1],"maxItems":[2,"max-items"],"name":[513],"allowCustomValues":[4,"allow-custom-values"],"overlayPositioning":[1,"overlay-positioning"],"required":[4],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"items":[32],"groupItems":[32],"selectedItems":[32],"visibleItems":[32],"needsIcon":[32],"hideList":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32],"open":[32],"maxScrollerHeight":[32]},[[4,"click","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]]);
|
|
25469
|
+
const CalciteCombobox = /*@__PURE__*/proxyCustomElement(CalciteCombobox$1, [1,"calcite-combobox",{"active":[1540],"disabled":[516],"label":[1],"placeholder":[1],"maxItems":[2,"max-items"],"name":[513],"allowCustomValues":[4,"allow-custom-values"],"overlayPositioning":[1,"overlay-positioning"],"required":[4],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"intlRemoveTag":[1,"intl-remove-tag"],"items":[32],"groupItems":[32],"selectedItems":[32],"visibleItems":[32],"needsIcon":[32],"hideList":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32],"open":[32],"maxScrollerHeight":[32]},[[4,"click","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]]);
|
|
25180
25470
|
const CalciteComboboxItem = /*@__PURE__*/proxyCustomElement(CalciteComboboxItem$1, [1,"calcite-combobox-item",{"disabled":[516],"selected":[1540],"active":[4],"ancestors":[1040],"guid":[1],"icon":[1],"textLabel":[513,"text-label"],"value":[8],"constant":[516]}]);
|
|
25181
25471
|
const CalciteComboboxItemGroup = /*@__PURE__*/proxyCustomElement(CalciteComboboxItemGroup$1, [1,"calcite-combobox-item-group",{"ancestors":[1040],"label":[1]}]);
|
|
25182
25472
|
const CalciteDatePicker = /*@__PURE__*/proxyCustomElement(CalciteDatePicker$1, [1,"calcite-date-picker",{"activeRange":[1,"active-range"],"value":[1025],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"range":[516],"start":[1025],"end":[1025],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"activeDate":[32],"activeStartDate":[32],"activeEndDate":[32],"localeData":[32],"hoverRange":[32]}]);
|
|
@@ -25189,7 +25479,7 @@ const CalciteDropdownItem = /*@__PURE__*/proxyCustomElement(CalciteDropdownItem$
|
|
|
25189
25479
|
const CalciteFab = /*@__PURE__*/proxyCustomElement(CalciteFab$1, [1,"calcite-fab",{"appearance":[513],"color":[513],"disabled":[516],"icon":[1],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"]}]);
|
|
25190
25480
|
const CalciteFilter = /*@__PURE__*/proxyCustomElement(CalciteFilter$1, [1,"calcite-filter",{"items":[1040],"disabled":[516],"filteredItems":[1040],"intlClear":[1,"intl-clear"],"intlLabel":[1,"intl-label"],"placeholder":[1],"value":[1025]}]);
|
|
25191
25481
|
const CalciteFlow = /*@__PURE__*/proxyCustomElement(CalciteFlow$1, [1,"calcite-flow",{"panelCount":[32],"flowDirection":[32],"panels":[32]},[[0,"calcitePanelBackClick","handleCalcitePanelBackClick"]]]);
|
|
25192
|
-
const CalciteGraph = /*@__PURE__*/proxyCustomElement(CalciteGraph$1, [1,"calcite-graph",{"data":[16],"colorStops":[16],"
|
|
25482
|
+
const CalciteGraph = /*@__PURE__*/proxyCustomElement(CalciteGraph$1, [1,"calcite-graph",{"data":[16],"colorStops":[16],"highlightMin":[2,"highlight-min"],"highlightMax":[2,"highlight-max"],"min":[2],"max":[2]}]);
|
|
25193
25483
|
const CalciteHandle = /*@__PURE__*/proxyCustomElement(CalciteHandle$1, [1,"calcite-handle",{"activated":[1540],"textTitle":[513,"text-title"]}]);
|
|
25194
25484
|
const CalciteIcon = /*@__PURE__*/proxyCustomElement(CalciteIcon$1, [1,"calcite-icon",{"icon":[513],"flipRtl":[516,"flip-rtl"],"scale":[513],"textLabel":[1,"text-label"],"pathData":[32],"visible":[32]}]);
|
|
25195
25485
|
const CalciteInlineEditable = /*@__PURE__*/proxyCustomElement(CalciteInlineEditable$1, [1,"calcite-inline-editable",{"disabled":[516],"editingEnabled":[1540,"editing-enabled"],"loading":[1540],"controls":[516],"intlEnableEditing":[513,"intl-enable-editing"],"intlCancelEditing":[513,"intl-cancel-editing"],"intlConfirmChanges":[513,"intl-confirm-changes"],"scale":[1537],"afterConfirm":[16]},[[0,"calciteInputBlur","blurHandler"]]]);
|
|
@@ -25198,7 +25488,7 @@ const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(CalciteInputDateP
|
|
|
25198
25488
|
const CalciteInputMessage = /*@__PURE__*/proxyCustomElement(CalciteInputMessage$1, [1,"calcite-input-message",{"active":[516],"icon":[520],"scale":[1537],"status":[1537],"type":[513]}]);
|
|
25199
25489
|
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(CalciteInputTimePicker$1, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"keyup","keyUpHandler"],[0,"calciteTimePickerBlur","timePickerBlurHandler"],[0,"calciteTimePickerFocus","timePickerFocusHandler"]]]);
|
|
25200
25490
|
const CalciteLabel = /*@__PURE__*/proxyCustomElement(CalciteLabel$1, [1,"calcite-label",{"alignment":[513],"status":[513],"for":[513],"scale":[513],"layout":[513],"disableSpacing":[4,"disable-spacing"],"disabled":[516]}]);
|
|
25201
|
-
const CalciteLink = /*@__PURE__*/proxyCustomElement(CalciteLink$1, [1,"calcite-link",{"disabled":[516],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1],"childElType":[32]}]);
|
|
25491
|
+
const CalciteLink = /*@__PURE__*/proxyCustomElement(CalciteLink$1, [1,"calcite-link",{"disabled":[516],"download":[520],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1],"childElType":[32]}]);
|
|
25202
25492
|
const CalciteList = /*@__PURE__*/proxyCustomElement(CalciteList$1, [1,"calcite-list",{"headingLevel":[2,"heading-level"]}]);
|
|
25203
25493
|
const CalciteListItem = /*@__PURE__*/proxyCustomElement(CalciteListItem$1, [1,"calcite-list-item",{"nonInteractive":[516,"non-interactive"],"description":[1],"disabled":[516],"label":[1]}]);
|
|
25204
25494
|
const CalciteListItemGroup = /*@__PURE__*/proxyCustomElement(CalciteListItemGroup$1, [1,"calcite-list-item-group",{"heading":[513],"headingLevel":[2,"heading-level"]}]);
|