@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
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
11
|
-
const label = require('./label-
|
|
12
|
-
const form = require('./form-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
|
+
const label = require('./label-6b18ca08.js');
|
|
12
|
+
const form = require('./form-237cf392.js');
|
|
13
13
|
const locale = require('./locale-02462821.js');
|
|
14
14
|
const number = require('./number-e813e801.js');
|
|
15
15
|
const math = require('./math-145c80e2.js');
|
|
@@ -109,6 +109,8 @@ let CalciteInput = class {
|
|
|
109
109
|
this.value = "";
|
|
110
110
|
/** keep track of the rendered child type */
|
|
111
111
|
this.childElType = "input";
|
|
112
|
+
/** whether the value of the input was changed as a result of user typing or not */
|
|
113
|
+
this.internalValueChange = false;
|
|
112
114
|
//--------------------------------------------------------------------------
|
|
113
115
|
//
|
|
114
116
|
// Private Methods
|
|
@@ -128,11 +130,15 @@ let CalciteInput = class {
|
|
|
128
130
|
}
|
|
129
131
|
};
|
|
130
132
|
this.clearInputValue = (nativeEvent) => {
|
|
131
|
-
this.setValue(
|
|
133
|
+
this.setValue({
|
|
134
|
+
committing: true,
|
|
135
|
+
nativeEvent,
|
|
136
|
+
value: ""
|
|
137
|
+
});
|
|
132
138
|
};
|
|
133
139
|
this.inputBlurHandler = () => {
|
|
134
140
|
if (this.type === "number") {
|
|
135
|
-
this.
|
|
141
|
+
this.setValue({ value: this.value });
|
|
136
142
|
}
|
|
137
143
|
this.calciteInputBlur.emit({
|
|
138
144
|
element: this.childEl,
|
|
@@ -156,7 +162,10 @@ let CalciteInput = class {
|
|
|
156
162
|
if (this.disabled || this.readOnly) {
|
|
157
163
|
return;
|
|
158
164
|
}
|
|
159
|
-
this.setValue(
|
|
165
|
+
this.setValue({
|
|
166
|
+
nativeEvent,
|
|
167
|
+
value: nativeEvent.target.value
|
|
168
|
+
});
|
|
160
169
|
};
|
|
161
170
|
this.inputKeyDownHandler = (event) => {
|
|
162
171
|
if (this.disabled || this.readOnly) {
|
|
@@ -176,11 +185,17 @@ let CalciteInput = class {
|
|
|
176
185
|
if (!number.isValidNumber(delocalizedValue)) {
|
|
177
186
|
nativeEvent.preventDefault();
|
|
178
187
|
}
|
|
179
|
-
this.setValue(
|
|
188
|
+
this.setValue({
|
|
189
|
+
nativeEvent,
|
|
190
|
+
value: number.parseNumberString(delocalizedValue)
|
|
191
|
+
});
|
|
180
192
|
this.childNumberEl.value = this.localizedValue;
|
|
181
193
|
}
|
|
182
194
|
else {
|
|
183
|
-
this.setValue(
|
|
195
|
+
this.setValue({
|
|
196
|
+
nativeEvent,
|
|
197
|
+
value: locale.delocalizeNumberString(value, this.locale)
|
|
198
|
+
});
|
|
184
199
|
}
|
|
185
200
|
};
|
|
186
201
|
this.inputNumberKeyDownHandler = (event) => {
|
|
@@ -250,6 +265,9 @@ let CalciteInput = class {
|
|
|
250
265
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
251
266
|
const valueNudgeDelayInMs = 100;
|
|
252
267
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
268
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
269
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
270
|
+
}
|
|
253
271
|
let firstValueNudge = true;
|
|
254
272
|
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
255
273
|
if (firstValueNudge) {
|
|
@@ -273,18 +291,44 @@ let CalciteInput = class {
|
|
|
273
291
|
this.setChildNumberElRef = (el) => {
|
|
274
292
|
this.childNumberEl = el;
|
|
275
293
|
};
|
|
276
|
-
this.
|
|
277
|
-
this.
|
|
294
|
+
this.setInputValue = (newInputValue) => {
|
|
295
|
+
if (this.type === "text" && !this.childEl) {
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
if (this.type === "number" && !this.childNumberEl) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
this[`child${this.type === "number" ? "Number" : ""}El`].value = newInputValue;
|
|
302
|
+
};
|
|
303
|
+
this.setPreviousValue = (newPreviousValue) => {
|
|
304
|
+
this.previousValue =
|
|
305
|
+
this.type === "number"
|
|
306
|
+
? number.isValidNumber(newPreviousValue)
|
|
307
|
+
? newPreviousValue
|
|
308
|
+
: ""
|
|
309
|
+
: newPreviousValue;
|
|
278
310
|
};
|
|
279
|
-
this.setValue = (
|
|
280
|
-
const
|
|
311
|
+
this.setValue = ({ committing = false, nativeEvent, origin = "internal", value }) => {
|
|
312
|
+
const previousLocalizedValue = this.type === "number"
|
|
313
|
+
? locale.localizeNumberString(this.previousValue, this.locale, this.groupSeparator)
|
|
314
|
+
: "";
|
|
315
|
+
const sanitizedValue = this.type === "number" ? number.sanitizeNumberString(value) : value;
|
|
316
|
+
const newValue = this.type === "number" && value && !sanitizedValue
|
|
317
|
+
? number.isValidNumber(this.previousValue)
|
|
318
|
+
? this.previousValue
|
|
319
|
+
: ""
|
|
320
|
+
: sanitizedValue;
|
|
321
|
+
const newLocalizedValue = this.type === "number"
|
|
322
|
+
? locale.localizeNumberString(newValue, this.locale, this.groupSeparator)
|
|
323
|
+
: "";
|
|
324
|
+
this.internalValueChange = origin === "internal";
|
|
325
|
+
this.setPreviousValue(this.value);
|
|
326
|
+
this.value = newValue;
|
|
281
327
|
if (this.type === "number") {
|
|
282
|
-
|
|
283
|
-
this.value = sanitizedValue;
|
|
284
|
-
this.setLocalizedValue(sanitizedValue);
|
|
328
|
+
this.localizedValue = newLocalizedValue;
|
|
285
329
|
}
|
|
286
|
-
|
|
287
|
-
this.
|
|
330
|
+
if (origin === "external") {
|
|
331
|
+
this.setInputValue(this.type === "number" ? newLocalizedValue : newValue);
|
|
288
332
|
}
|
|
289
333
|
if (nativeEvent) {
|
|
290
334
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
@@ -293,8 +337,8 @@ let CalciteInput = class {
|
|
|
293
337
|
value: this.value
|
|
294
338
|
});
|
|
295
339
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
296
|
-
this.value = previousValue;
|
|
297
|
-
this.
|
|
340
|
+
this.value = this.previousValue;
|
|
341
|
+
this.localizedValue = previousLocalizedValue;
|
|
298
342
|
}
|
|
299
343
|
else if (committing) {
|
|
300
344
|
this.calciteInputChange.emit();
|
|
@@ -319,17 +363,20 @@ let CalciteInput = class {
|
|
|
319
363
|
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
320
364
|
}
|
|
321
365
|
valueWatcher(newValue) {
|
|
322
|
-
if (
|
|
323
|
-
this.
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
366
|
+
if (!this.internalValueChange) {
|
|
367
|
+
this.setValue({
|
|
368
|
+
origin: "external",
|
|
369
|
+
value: newValue == null
|
|
370
|
+
? ""
|
|
371
|
+
: this.type === "number"
|
|
372
|
+
? number.isValidNumber(newValue)
|
|
373
|
+
? newValue
|
|
374
|
+
: this.previousValue || ""
|
|
375
|
+
: newValue
|
|
376
|
+
});
|
|
377
|
+
this.warnAboutInvalidNumberValue(newValue);
|
|
332
378
|
}
|
|
379
|
+
this.internalValueChange = false;
|
|
333
380
|
}
|
|
334
381
|
updateRequestedIcon() {
|
|
335
382
|
this.requestedIcon = dom.setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
@@ -352,13 +399,13 @@ let CalciteInput = class {
|
|
|
352
399
|
if (this.inlineEditableEl) {
|
|
353
400
|
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
354
401
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
this.value
|
|
361
|
-
}
|
|
402
|
+
this.setPreviousValue(this.value);
|
|
403
|
+
if (this.type === "number") {
|
|
404
|
+
this.warnAboutInvalidNumberValue(this.value);
|
|
405
|
+
this.setValue({
|
|
406
|
+
origin: "loading",
|
|
407
|
+
value: number.isValidNumber(this.value) ? this.value : ""
|
|
408
|
+
});
|
|
362
409
|
}
|
|
363
410
|
label.connectLabel(this);
|
|
364
411
|
form.connectForm(this);
|
|
@@ -380,7 +427,9 @@ let CalciteInput = class {
|
|
|
380
427
|
}
|
|
381
428
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
382
429
|
if (this.type === "number" && property === "value" && newValue && !number.isValidNumber(newValue)) {
|
|
383
|
-
this.
|
|
430
|
+
this.setValue({
|
|
431
|
+
value: oldValue
|
|
432
|
+
});
|
|
384
433
|
return false;
|
|
385
434
|
}
|
|
386
435
|
return true;
|
|
@@ -415,10 +464,16 @@ let CalciteInput = class {
|
|
|
415
464
|
: nudgedValue;
|
|
416
465
|
const inputValPlaces = math.decimalPlaces(inputVal);
|
|
417
466
|
const inputStepPlaces = math.decimalPlaces(inputStep);
|
|
418
|
-
this.setValue(
|
|
467
|
+
this.setValue({
|
|
468
|
+
committing: true,
|
|
469
|
+
nativeEvent,
|
|
470
|
+
value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
|
|
471
|
+
});
|
|
419
472
|
}
|
|
420
473
|
onFormReset() {
|
|
421
|
-
this.setValue(
|
|
474
|
+
this.setValue({
|
|
475
|
+
value: this.defaultValue
|
|
476
|
+
});
|
|
422
477
|
}
|
|
423
478
|
syncHiddenFormInput(input) {
|
|
424
479
|
var _a, _b, _c, _d;
|
|
@@ -449,6 +504,11 @@ let CalciteInput = class {
|
|
|
449
504
|
? slottedActionEl.setAttribute("disabled", "")
|
|
450
505
|
: slottedActionEl.removeAttribute("disabled");
|
|
451
506
|
}
|
|
507
|
+
warnAboutInvalidNumberValue(value) {
|
|
508
|
+
if (this.type === "number" && value && !number.isValidNumber(value)) {
|
|
509
|
+
console.warn(`The specified value "${value}" cannot be parsed, or is out of range.`);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
452
512
|
// --------------------------------------------------------------------------
|
|
453
513
|
//
|
|
454
514
|
// Render Methods
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
require('./guid-b270f0db.js');
|
|
12
12
|
|
|
13
13
|
const calciteLinkCss = "@-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:inline}:host a,:host span{position:relative;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:0px;border-style:none;font-family:inherit;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;text-decoration:none;line-height:inherit;font-size:inherit;-webkit-appearance:none}:host a:hover,:host span:hover{text-decoration:none}:host a,:host span{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}:host a:focus,:host span:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-icon{width:1em;height:1em;min-width:unset;min-height:unset}.calcite-link--icon{vertical-align:text-top;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;margin-top:0.125rem}:host([disabled]){pointer-events:none}:host([disabled]) span,:host([disabled]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-link--icon.icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host .calcite-link--icon.icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host span,:host a{position:relative;display:inline;border-style:none;background-color:transparent;padding:0px;color:var(--calcite-ui-text-link);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;line-height:inherit;white-space:initial;background-image:-webkit-gradient(linear, left top, left bottom, from(currentColor), to(currentColor)), -webkit-gradient(linear, left top, left bottom, from(var(--calcite-link-blue-underline)), to(var(--calcite-link-blue-underline)));background-image:linear-gradient(currentColor, currentColor), linear-gradient(var(--calcite-link-blue-underline), var(--calcite-link-blue-underline));background-position:0% 100%, 100% 100%;background-repeat:no-repeat, no-repeat;background-size:0% 1px, 100% 1px}:host span:hover,:host span:focus,:host a:hover,:host a:focus{background-size:100% 1px, 100% 1px}:host span:active,:host a:active{background-size:100% 2px, 100% 2px}:host span.calcite--rtl,:host a.calcite--rtl{background-position:100% 100%, 100% 100%}";
|
|
@@ -22,6 +22,11 @@ let CalciteLink = class {
|
|
|
22
22
|
//--------------------------------------------------------------------------
|
|
23
23
|
/** is the link disabled */
|
|
24
24
|
this.disabled = false;
|
|
25
|
+
/** Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
|
|
26
|
+
* Without a value, the browser will suggest a filename/extension
|
|
27
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
|
|
28
|
+
*/
|
|
29
|
+
this.download = false;
|
|
25
30
|
/** the node type of the rendered child element */
|
|
26
31
|
this.childElType = "span";
|
|
27
32
|
//--------------------------------------------------------------------------
|
|
@@ -45,13 +50,19 @@ let CalciteLink = class {
|
|
|
45
50
|
this.childElType = this.href ? "a" : "span";
|
|
46
51
|
}
|
|
47
52
|
render() {
|
|
48
|
-
const
|
|
53
|
+
const { download, el } = this;
|
|
54
|
+
const dir = dom.getElementDir(el);
|
|
49
55
|
const iconStartEl = (index.h("calcite-icon", { class: "calcite-link--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
50
56
|
const iconEndEl = (index.h("calcite-icon", { class: "calcite-link--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
51
57
|
const Tag = this.childElType;
|
|
52
58
|
const role = this.childElType === "span" ? "link" : null;
|
|
53
59
|
const tabIndex = this.disabled ? -1 : this.childElType === "span" ? 0 : null;
|
|
54
|
-
return (index.h(index.Host, { role: "presentation" }, index.h(Tag, { class: { [dom.CSS_UTILITY.rtl]: dir === "rtl" },
|
|
60
|
+
return (index.h(index.Host, { role: "presentation" }, index.h(Tag, { class: { [dom.CSS_UTILITY.rtl]: dir === "rtl" },
|
|
61
|
+
/*
|
|
62
|
+
When the 'download' property of type 'boolean | string' is set to true, the value is "".
|
|
63
|
+
This works around that issue for now.
|
|
64
|
+
*/
|
|
65
|
+
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, index.h("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
55
66
|
}
|
|
56
67
|
//--------------------------------------------------------------------------
|
|
57
68
|
//
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
|
+
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
11
12
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
12
13
|
require('./guid-b270f0db.js');
|
|
14
|
+
require('./observers-79bfb8bc.js');
|
|
13
15
|
|
|
14
16
|
const CSS$2 = {
|
|
15
17
|
container: "container"
|
|
@@ -84,6 +86,17 @@ let CalciteListItem = class {
|
|
|
84
86
|
}
|
|
85
87
|
// --------------------------------------------------------------------------
|
|
86
88
|
//
|
|
89
|
+
// Lifecycle
|
|
90
|
+
//
|
|
91
|
+
// --------------------------------------------------------------------------
|
|
92
|
+
connectedCallback() {
|
|
93
|
+
conditionalSlot.connectConditionalSlotComponent(this);
|
|
94
|
+
}
|
|
95
|
+
disconnectedCallback() {
|
|
96
|
+
conditionalSlot.disconnectConditionalSlotComponent(this);
|
|
97
|
+
}
|
|
98
|
+
// --------------------------------------------------------------------------
|
|
99
|
+
//
|
|
87
100
|
// Public Methods
|
|
88
101
|
//
|
|
89
102
|
// --------------------------------------------------------------------------
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
11
|
-
const observers = require('./observers-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
|
+
const observers = require('./observers-79bfb8bc.js');
|
|
12
|
+
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
12
13
|
require('./guid-b270f0db.js');
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -244,11 +245,13 @@ let CalciteModal = class {
|
|
|
244
245
|
var _a;
|
|
245
246
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
246
247
|
this.updateFooterVisibility();
|
|
248
|
+
conditionalSlot.connectConditionalSlotComponent(this);
|
|
247
249
|
}
|
|
248
250
|
disconnectedCallback() {
|
|
249
251
|
var _a;
|
|
250
252
|
this.removeOverflowHiddenClass();
|
|
251
253
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
254
|
+
conditionalSlot.disconnectConditionalSlotComponent(this);
|
|
252
255
|
}
|
|
253
256
|
render() {
|
|
254
257
|
return (index.h(index.Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, index.h("calcite-scrim", { class: CSS.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), index.h("div", { class: "modal", onTransitionEnd: this.transitionEnd }, index.h("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), index.h("div", { class: CSS.header }, this.renderCloseButton(), index.h("header", { class: CSS.title }, index.h("slot", { name: CSS.header }))), index.h("div", { class: {
|
|
@@ -258,10 +261,10 @@ let CalciteModal = class {
|
|
|
258
261
|
}, ref: (el) => (this.modalContent = el) }, index.h("slot", { name: SLOTS.content })), this.renderFooter(), index.h("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
259
262
|
}
|
|
260
263
|
renderFooter() {
|
|
261
|
-
return this.hasFooter ? (index.h("div", { class: CSS.footer }, index.h("span", { class: CSS.back }, index.h("slot", { name: SLOTS.back })), index.h("span", { class: CSS.secondary }, index.h("slot", { name: SLOTS.secondary })), index.h("span", { class: CSS.primary }, index.h("slot", { name: SLOTS.primary })))) : null;
|
|
264
|
+
return this.hasFooter ? (index.h("div", { class: CSS.footer, key: "footer" }, index.h("span", { class: CSS.back }, index.h("slot", { name: SLOTS.back })), index.h("span", { class: CSS.secondary }, index.h("slot", { name: SLOTS.secondary })), index.h("span", { class: CSS.primary }, index.h("slot", { name: SLOTS.primary })))) : null;
|
|
262
265
|
}
|
|
263
266
|
renderCloseButton() {
|
|
264
|
-
return !this.disableCloseButton ? (index.h("button", { "aria-label": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, index.h("calcite-icon", { icon: ICONS.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
267
|
+
return !this.disableCloseButton ? (index.h("button", { "aria-label": this.intlClose, class: CSS.close, key: "button", onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, index.h("calcite-icon", { icon: ICONS.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
265
268
|
}
|
|
266
269
|
renderStyle() {
|
|
267
270
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -8,8 +8,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const interfaces = require('./interfaces-54651c1c.js');
|
|
11
|
-
const dom = require('./dom-
|
|
11
|
+
const dom = require('./dom-f3df220d.js');
|
|
12
|
+
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
12
13
|
require('./guid-b270f0db.js');
|
|
14
|
+
require('./observers-79bfb8bc.js');
|
|
13
15
|
|
|
14
16
|
const TEXT = {
|
|
15
17
|
close: "Close"
|
|
@@ -72,6 +74,12 @@ let CalciteNotice = class {
|
|
|
72
74
|
// Lifecycle
|
|
73
75
|
//
|
|
74
76
|
//--------------------------------------------------------------------------
|
|
77
|
+
connectedCallback() {
|
|
78
|
+
conditionalSlot.connectConditionalSlotComponent(this);
|
|
79
|
+
}
|
|
80
|
+
disconnectedCallback() {
|
|
81
|
+
conditionalSlot.disconnectConditionalSlotComponent(this);
|
|
82
|
+
}
|
|
75
83
|
componentWillLoad() {
|
|
76
84
|
this.requestedIcon = dom.setRequestedIcon(interfaces.StatusIcons, this.icon, this.color);
|
|
77
85
|
}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const observers = require('./observers-
|
|
11
|
-
const dom = require('./dom-
|
|
12
|
-
const label = require('./label-
|
|
13
|
-
const form = require('./form-
|
|
10
|
+
const observers = require('./observers-79bfb8bc.js');
|
|
11
|
+
const dom = require('./dom-f3df220d.js');
|
|
12
|
+
const label = require('./label-6b18ca08.js');
|
|
13
|
+
const form = require('./form-237cf392.js');
|
|
14
14
|
require('./guid-b270f0db.js');
|
|
15
15
|
|
|
16
16
|
const calciteOptionCss = "@-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}";
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
12
12
|
const resources = require('./resources-ffe563a2.js');
|
|
13
|
+
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
13
14
|
require('./guid-b270f0db.js');
|
|
15
|
+
require('./observers-79bfb8bc.js');
|
|
14
16
|
|
|
15
17
|
const CSS = {
|
|
16
18
|
backButton: "back-button",
|
|
@@ -126,6 +128,17 @@ let CalcitePanel = class {
|
|
|
126
128
|
}
|
|
127
129
|
// --------------------------------------------------------------------------
|
|
128
130
|
//
|
|
131
|
+
// Lifecycle
|
|
132
|
+
//
|
|
133
|
+
// --------------------------------------------------------------------------
|
|
134
|
+
connectedCallback() {
|
|
135
|
+
conditionalSlot.connectConditionalSlotComponent(this);
|
|
136
|
+
}
|
|
137
|
+
disconnectedCallback() {
|
|
138
|
+
conditionalSlot.disconnectConditionalSlotComponent(this);
|
|
139
|
+
}
|
|
140
|
+
// --------------------------------------------------------------------------
|
|
141
|
+
//
|
|
129
142
|
// Methods
|
|
130
143
|
//
|
|
131
144
|
// --------------------------------------------------------------------------
|
|
@@ -165,7 +178,7 @@ let CalcitePanel = class {
|
|
|
165
178
|
* Allows user to override the entire header-content node.
|
|
166
179
|
*/
|
|
167
180
|
renderHeaderSlottedContent() {
|
|
168
|
-
return (index.h("div", { class: CSS.headerContent, key: "header-content" }, index.h("slot", { name: SLOTS.headerContent })));
|
|
181
|
+
return (index.h("div", { class: CSS.headerContent, key: "slotted-header-content" }, index.h("slot", { name: SLOTS.headerContent })));
|
|
169
182
|
}
|
|
170
183
|
renderHeaderStartActions() {
|
|
171
184
|
const { el } = this;
|
|
@@ -183,7 +196,7 @@ let CalcitePanel = class {
|
|
|
183
196
|
renderMenu() {
|
|
184
197
|
const { el, intlOptions, menuOpen } = this;
|
|
185
198
|
const hasMenuItems = dom.getSlotted(el, SLOTS.headerMenuActions);
|
|
186
|
-
return hasMenuItems ? (index.h("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT.options, open: menuOpen, placement: "bottom-end" }, index.h("calcite-action", { icon: ICONS.menu, slot: resources.SLOTS.trigger, text: intlOptions || TEXT.options }), index.h("slot", { name: SLOTS.headerMenuActions }))) : null;
|
|
199
|
+
return hasMenuItems ? (index.h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT.options, open: menuOpen, placement: "bottom-end" }, index.h("calcite-action", { icon: ICONS.menu, slot: resources.SLOTS.trigger, text: intlOptions || TEXT.options }), index.h("slot", { name: SLOTS.headerMenuActions }))) : null;
|
|
187
200
|
}
|
|
188
201
|
renderHeaderNode() {
|
|
189
202
|
const { el, showBackButton } = this;
|
|
@@ -201,18 +214,11 @@ let CalcitePanel = class {
|
|
|
201
214
|
headerMenuNode ||
|
|
202
215
|
showBackButton ? (index.h("header", { class: CSS.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
203
216
|
}
|
|
204
|
-
|
|
205
|
-
* Allows user to override the entire footer node.
|
|
206
|
-
*/
|
|
207
|
-
renderFooterSlottedContent() {
|
|
217
|
+
renderFooterNode() {
|
|
208
218
|
const { el } = this;
|
|
209
219
|
const hasFooterSlottedContent = dom.getSlotted(el, SLOTS.footer);
|
|
210
|
-
return hasFooterSlottedContent ? (index.h("footer", { class: CSS.footer }, index.h("slot", { name: SLOTS.footer }))) : null;
|
|
211
|
-
}
|
|
212
|
-
renderFooterActions() {
|
|
213
|
-
const { el } = this;
|
|
214
220
|
const hasFooterActions = dom.getSlotted(el, SLOTS.footerActions);
|
|
215
|
-
return hasFooterActions ? (index.h("footer", { class: CSS.footer }, index.h("slot", { name: SLOTS.footerActions }))) : null;
|
|
221
|
+
return hasFooterSlottedContent || hasFooterActions ? (index.h("footer", { class: CSS.footer, key: "footer" }, hasFooterSlottedContent ? index.h("slot", { key: "footer-slot", name: SLOTS.footer }) : null, hasFooterActions ? index.h("slot", { key: "footer-actions-slot", name: SLOTS.footerActions }) : null)) : null;
|
|
216
222
|
}
|
|
217
223
|
renderContent() {
|
|
218
224
|
const { el } = this;
|
|
@@ -224,7 +230,7 @@ let CalcitePanel = class {
|
|
|
224
230
|
}
|
|
225
231
|
render() {
|
|
226
232
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
227
|
-
const panelNode = (index.h("article", { "aria-busy": loading.toString(), class: CSS.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.
|
|
233
|
+
const panelNode = (index.h("article", { "aria-busy": loading.toString(), class: CSS.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
228
234
|
return (index.h(index.Fragment, null, loading || disabled ? index.h("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
229
235
|
}
|
|
230
236
|
get el() { return index.getElement(this); }
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const resources = require('./resources-
|
|
11
|
-
const observers = require('./observers-
|
|
12
|
-
const dom = require('./dom-
|
|
10
|
+
const resources = require('./resources-95073e41.js');
|
|
11
|
+
const observers = require('./observers-79bfb8bc.js');
|
|
12
|
+
const dom = require('./dom-f3df220d.js');
|
|
13
13
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
14
|
+
const conditionalSlot = require('./conditionalSlot-92505fba.js');
|
|
14
15
|
require('./array-a5dedf5a.js');
|
|
15
16
|
require('./debounce-95979061.js');
|
|
16
17
|
require('./guid-b270f0db.js');
|
|
@@ -155,6 +156,17 @@ let CalcitePickListGroup = class {
|
|
|
155
156
|
}
|
|
156
157
|
// --------------------------------------------------------------------------
|
|
157
158
|
//
|
|
159
|
+
// Lifecycle
|
|
160
|
+
//
|
|
161
|
+
// --------------------------------------------------------------------------
|
|
162
|
+
connectedCallback() {
|
|
163
|
+
conditionalSlot.connectConditionalSlotComponent(this);
|
|
164
|
+
}
|
|
165
|
+
disconnectedCallback() {
|
|
166
|
+
conditionalSlot.disconnectConditionalSlotComponent(this);
|
|
167
|
+
}
|
|
168
|
+
// --------------------------------------------------------------------------
|
|
169
|
+
//
|
|
158
170
|
// Render Methods
|
|
159
171
|
//
|
|
160
172
|
// --------------------------------------------------------------------------
|
|
@@ -263,6 +275,17 @@ let CalcitePickListItem = class {
|
|
|
263
275
|
}
|
|
264
276
|
// --------------------------------------------------------------------------
|
|
265
277
|
//
|
|
278
|
+
// Lifecycle
|
|
279
|
+
//
|
|
280
|
+
// --------------------------------------------------------------------------
|
|
281
|
+
connectedCallback() {
|
|
282
|
+
conditionalSlot.connectConditionalSlotComponent(this);
|
|
283
|
+
}
|
|
284
|
+
disconnectedCallback() {
|
|
285
|
+
conditionalSlot.disconnectConditionalSlotComponent(this);
|
|
286
|
+
}
|
|
287
|
+
// --------------------------------------------------------------------------
|
|
288
|
+
//
|
|
266
289
|
// Public Methods
|
|
267
290
|
//
|
|
268
291
|
// --------------------------------------------------------------------------
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const popper = require('./popper-
|
|
10
|
+
const popper = require('./popper-13a2bb46.js');
|
|
11
11
|
const guid = require('./guid-b270f0db.js');
|
|
12
|
-
const dom = require('./dom-
|
|
12
|
+
const dom = require('./dom-f3df220d.js');
|
|
13
13
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
14
14
|
|
|
15
15
|
const CSS = {
|
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
|
-
const dom = require('./dom-
|
|
12
|
-
const label = require('./label-
|
|
13
|
-
const form = require('./form-
|
|
11
|
+
const dom = require('./dom-f3df220d.js');
|
|
12
|
+
const label = require('./label-6b18ca08.js');
|
|
13
|
+
const form = require('./form-237cf392.js');
|
|
14
14
|
const array = require('./array-a5dedf5a.js');
|
|
15
15
|
|
|
16
16
|
const CSS = {
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const dom = require('./dom-
|
|
11
|
-
const label = require('./label-
|
|
12
|
-
const form = require('./form-
|
|
10
|
+
const dom = require('./dom-f3df220d.js');
|
|
11
|
+
const label = require('./label-6b18ca08.js');
|
|
12
|
+
const form = require('./form-237cf392.js');
|
|
13
13
|
require('./guid-b270f0db.js');
|
|
14
14
|
|
|
15
15
|
const calciteRadioGroupCss = "@-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-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-item-align:start;align-self:flex-start}:host([width=full]){width:100%;min-width:-moz-fit-content;min-width:-webkit-fit-content;min-width:fit-content}:host([width=full]) ::slotted(calcite-radio-group-item){-ms-flex:1 1 auto;flex:1 1 auto}:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item){-ms-flex-pack:start;justify-content:flex-start}::slotted(calcite-radio-group-item[checked]),::slotted(calcite-radio-group-item:focus){z-index:0}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}::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}";
|
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const guid = require('./guid-b270f0db.js');
|
|
11
|
-
const label = require('./label-
|
|
12
|
-
const form = require('./form-
|
|
13
|
-
require('./dom-
|
|
11
|
+
const label = require('./label-6b18ca08.js');
|
|
12
|
+
const form = require('./form-237cf392.js');
|
|
13
|
+
require('./dom-f3df220d.js');
|
|
14
14
|
|
|
15
15
|
const TEXT = {
|
|
16
16
|
rating: "Rating",
|