@esri/calcite-components 1.0.0-beta.71 → 1.0.0-beta.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/assets/calcite-icon/centerAlign16.json +1 -0
- package/dist/calcite/assets/calcite-icon/centerAlign24.json +1 -0
- package/dist/calcite/assets/calcite-icon/centerAlign32.json +1 -0
- package/dist/calcite/assets/calcite-icon/convert16.json +1 -0
- package/dist/calcite/assets/calcite-icon/convert24.json +1 -0
- package/dist/calcite/assets/calcite-icon/convert32.json +1 -0
- package/dist/calcite/assets/calcite-icon/formDropdown16.json +1 -0
- package/dist/calcite/assets/calcite-icon/formDropdown24.json +1 -0
- package/dist/calcite/assets/calcite-icon/formDropdown32.json +1 -0
- package/dist/calcite/assets/calcite-icon/language16.json +1 -0
- package/dist/calcite/assets/calcite-icon/language24.json +1 -0
- package/dist/calcite/assets/calcite-icon/language32.json +1 -0
- package/dist/calcite/assets/calcite-icon/languageTranslate16.json +1 -0
- package/dist/calcite/assets/calcite-icon/languageTranslate24.json +1 -0
- package/dist/calcite/assets/calcite-icon/languageTranslate32.json +1 -0
- package/dist/calcite/assets/calcite-icon/leftAlign16.json +1 -0
- package/dist/calcite/assets/calcite-icon/leftAlign24.json +1 -0
- package/dist/calcite/assets/calcite-icon/leftAlign32.json +1 -0
- package/dist/calcite/assets/calcite-icon/terminal16.json +1 -0
- package/dist/calcite/assets/calcite-icon/terminal24.json +1 -0
- package/dist/calcite/assets/calcite-icon/terminal32.json +1 -0
- package/dist/calcite/assets/calcite-icon/touch16.json +1 -0
- package/dist/calcite/assets/calcite-icon/touch24.json +1 -0
- package/dist/calcite/assets/calcite-icon/touch32.json +1 -0
- package/dist/calcite/calcite.css +1 -1
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/{p-b6b6ec04.js → p-0229a408.js} +1 -1
- package/dist/calcite/p-04cc8259.entry.js +5 -0
- package/dist/calcite/p-057197f8.entry.js +5 -0
- package/dist/calcite/p-05c10c53.entry.js +5 -0
- package/dist/calcite/p-05edaadf.system.entry.js +5 -0
- package/dist/calcite/p-06ddf228.entry.js +5 -0
- package/dist/calcite/p-0b45733b.entry.js +5 -0
- package/dist/calcite/p-0f2b51bf.system.js +5 -0
- package/dist/calcite/p-112f20e6.system.entry.js +5 -0
- package/dist/calcite/p-11f01c0a.entry.js +5 -0
- package/dist/calcite/p-18d9a261.system.js +5 -0
- package/dist/calcite/p-1942876c.js +5 -0
- package/dist/calcite/{p-fba77b86.entry.js → p-2151c991.entry.js} +1 -1
- package/dist/calcite/{p-7bb94bfa.entry.js → p-27d9be53.entry.js} +1 -1
- package/dist/calcite/p-288899b9.entry.js +5 -0
- package/dist/calcite/p-2b294f8e.system.entry.js +5 -0
- package/dist/calcite/{p-2c66fb61.entry.js → p-2be1e8ee.entry.js} +1 -1
- package/dist/calcite/p-2d939f9e.system.entry.js +5 -0
- package/dist/calcite/p-2fbd50f3.system.entry.js +5 -0
- package/dist/calcite/p-30036f23.system.entry.js +5 -0
- package/dist/calcite/{p-d07ff1ee.system.js → p-35a5c74c.system.js} +1 -1
- package/dist/calcite/p-3739338a.system.entry.js +5 -0
- package/dist/calcite/p-3c25cb72.system.entry.js +5 -0
- package/dist/calcite/p-3d8ee39d.system.entry.js +5 -0
- package/dist/calcite/p-3dae9da3.js +5 -0
- package/dist/calcite/p-3e9c6068.entry.js +5 -0
- package/dist/calcite/p-3f8527a3.entry.js +5 -0
- package/dist/calcite/p-40991717.entry.js +5 -0
- package/dist/calcite/p-40e16f41.entry.js +5 -0
- package/dist/calcite/p-4278fb57.entry.js +5 -0
- package/dist/calcite/p-444ecda9.entry.js +5 -0
- package/dist/calcite/p-44cce7a3.system.entry.js +5 -0
- package/dist/calcite/p-4d02c6c0.system.entry.js +5 -0
- package/dist/calcite/{p-4035444d.system.js → p-4e9d072a.system.js} +1 -1
- package/dist/calcite/p-4f1f716a.system.entry.js +5 -0
- package/dist/calcite/p-4f7ebefc.system.js +5 -0
- package/dist/calcite/{p-71cdeee3.system.js → p-523bc291.system.js} +1 -1
- package/dist/calcite/p-52cc870b.js +5 -0
- package/dist/calcite/p-55f68e28.entry.js +5 -0
- package/dist/calcite/p-57169a74.entry.js +5 -0
- package/dist/calcite/p-5c9d89ce.system.entry.js +5 -0
- package/dist/calcite/p-62f3d4df.system.js +5 -0
- package/dist/calcite/p-63b9f804.entry.js +5 -0
- package/dist/calcite/p-66fda99e.entry.js +5 -0
- package/dist/calcite/p-689790cb.system.entry.js +5 -0
- package/dist/calcite/p-69bd1f5f.system.entry.js +5 -0
- package/dist/calcite/p-6a87d7b2.entry.js +5 -0
- package/dist/calcite/p-6cc23c39.system.js +5 -0
- package/dist/calcite/p-6faaa8af.system.entry.js +5 -0
- package/dist/calcite/p-6fb63fc1.entry.js +5 -0
- package/dist/calcite/p-72a60528.system.entry.js +5 -0
- package/dist/calcite/p-763479d6.system.entry.js +5 -0
- package/dist/calcite/p-768018df.entry.js +5 -0
- package/dist/calcite/p-76eda40b.entry.js +5 -0
- package/dist/calcite/p-7ac9f860.entry.js +5 -0
- package/dist/calcite/p-7ff5e336.entry.js +5 -0
- package/dist/calcite/p-83744979.system.js +5 -0
- package/dist/calcite/p-87327c2f.system.entry.js +5 -0
- package/dist/calcite/p-88296be9.system.entry.js +5 -0
- package/dist/calcite/p-88b31760.system.entry.js +5 -0
- package/dist/calcite/p-8a8982ab.system.entry.js +5 -0
- package/dist/calcite/p-8c4b6059.system.entry.js +5 -0
- package/dist/calcite/p-8ebc2d51.entry.js +5 -0
- package/dist/calcite/p-9180be05.system.entry.js +5 -0
- package/dist/calcite/p-93a189be.entry.js +5 -0
- package/dist/calcite/p-97117a5d.entry.js +5 -0
- package/dist/calcite/p-97efd284.system.entry.js +5 -0
- package/dist/calcite/p-998829cb.system.entry.js +5 -0
- package/dist/calcite/p-9a1ffbad.system.entry.js +5 -0
- package/dist/calcite/p-9a8f3883.entry.js +5 -0
- package/dist/calcite/p-9b979692.entry.js +5 -0
- package/dist/calcite/p-9fc14d49.entry.js +5 -0
- package/dist/calcite/p-9feb0f5a.system.entry.js +5 -0
- package/dist/calcite/p-a2a22cbc.entry.js +5 -0
- package/dist/calcite/p-a3c498de.entry.js +5 -0
- package/dist/calcite/p-a4784cf3.system.entry.js +5 -0
- package/dist/calcite/p-a4a12ffb.system.entry.js +5 -0
- package/dist/calcite/p-a6f99f79.entry.js +5 -0
- package/dist/calcite/p-a98344e2.system.entry.js +5 -0
- package/dist/calcite/p-a9f596be.system.entry.js +5 -0
- package/dist/calcite/p-adf4699d.system.entry.js +5 -0
- package/dist/calcite/p-b180d943.system.entry.js +5 -0
- package/dist/calcite/p-b2f0596f.entry.js +5 -0
- package/dist/calcite/p-b437a8eb.system.entry.js +5 -0
- package/dist/calcite/p-b43e699c.system.entry.js +5 -0
- package/dist/calcite/p-ba7c0f01.system.entry.js +5 -0
- package/dist/calcite/p-bca0b34f.entry.js +5 -0
- package/dist/calcite/p-bd091b49.system.entry.js +5 -0
- package/dist/calcite/p-bdca5372.entry.js +5 -0
- package/dist/calcite/p-bfa6bd72.entry.js +5 -0
- package/dist/calcite/p-c00b1d26.js +5 -0
- package/dist/calcite/p-c2bfd7f9.system.entry.js +5 -0
- package/dist/calcite/p-c2fcf603.system.entry.js +5 -0
- package/dist/calcite/{p-47f55191.system.js → p-c34c4414.system.js} +1 -1
- package/dist/calcite/p-c70bacc8.system.entry.js +5 -0
- package/dist/calcite/p-c8c6323c.entry.js +5 -0
- package/dist/calcite/p-cb660e54.entry.js +5 -0
- package/dist/calcite/p-cd5d5756.system.entry.js +5 -0
- package/dist/calcite/p-ce704ece.js +5 -0
- package/dist/calcite/p-cf499949.entry.js +5 -0
- package/dist/calcite/p-d17cfab3.entry.js +5 -0
- package/dist/calcite/{p-e956e279.js → p-d3bd900e.js} +1 -1
- package/dist/calcite/p-d3db2b58.system.entry.js +5 -0
- package/dist/calcite/p-d4d5665a.system.entry.js +5 -0
- package/dist/calcite/p-d8039e8a.system.entry.js +5 -0
- package/dist/calcite/p-d9414082.system.entry.js +5 -0
- package/dist/calcite/p-dc7124e9.entry.js +5 -0
- package/dist/calcite/p-dc777403.system.entry.js +5 -0
- package/dist/calcite/p-dda22c7e.system.entry.js +5 -0
- package/dist/calcite/p-de67ba93.system.entry.js +5 -0
- package/dist/calcite/p-e09bac0d.system.entry.js +5 -0
- package/dist/calcite/p-e0b1e90c.entry.js +5 -0
- package/dist/calcite/p-e35b29f5.system.entry.js +5 -0
- package/dist/calcite/p-e54784a8.system.entry.js +5 -0
- package/dist/calcite/p-e63c6a55.system.entry.js +5 -0
- package/dist/calcite/p-e697ab57.system.entry.js +5 -0
- package/dist/calcite/{p-23bc2d32.entry.js → p-e7801f1d.entry.js} +1 -1
- package/dist/calcite/{p-f07d3627.js → p-e7f7b0f8.js} +1 -1
- package/dist/calcite/p-eebd2bb0.entry.js +5 -0
- package/dist/calcite/p-f1f65708.entry.js +5 -0
- package/dist/calcite/p-f2340d02.system.entry.js +5 -0
- package/dist/calcite/p-f25f139a.entry.js +5 -0
- package/dist/calcite/p-f28d8e9e.system.entry.js +5 -0
- package/dist/calcite/p-f2f2ad57.entry.js +5 -0
- package/dist/calcite/p-f39dc5fd.entry.js +5 -0
- package/dist/calcite/p-f4a7fa43.entry.js +5 -0
- package/dist/calcite/p-f595d924.js +5 -0
- package/dist/calcite/{p-714ae4f6.entry.js → p-f72c037c.entry.js} +1 -1
- package/dist/calcite/p-f9e7371d.entry.js +5 -0
- package/dist/calcite/p-fc265aaf.entry.js +5 -0
- package/dist/calcite/p-fc9025a2.entry.js +5 -0
- package/dist/calcite/p-fd255a24.entry.js +5 -0
- package/dist/calcite/p-fd94e88d.system.entry.js +5 -0
- package/dist/cjs/{CalciteExpandToggle-ca629f39.js → CalciteExpandToggle-d654421a.js} +3 -3
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +6 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +27 -3
- package/dist/cjs/calcite-action-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-menu.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +4 -9
- package/dist/cjs/calcite-action.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert.cjs.entry.js +3 -5
- package/dist/cjs/calcite-avatar.cjs.entry.js +4 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +11 -7
- package/dist/cjs/calcite-button.cjs.entry.js +12 -7
- package/dist/cjs/calcite-card.cjs.entry.js +3 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/calcite-chip.cjs.entry.js +4 -5
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +30 -34
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +16 -19
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +44 -34
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +14 -19
- package/dist/cjs/calcite-fab.cjs.entry.js +4 -5
- package/dist/cjs/calcite-filter.cjs.entry.js +4 -19
- package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +35 -23
- package/dist/cjs/calcite-handle.cjs.entry.js +1 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +25 -13
- package/dist/cjs/calcite-input-message.cjs.entry.js +3 -4
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +376 -251
- package/dist/cjs/calcite-input.cjs.entry.js +12 -15
- package/dist/cjs/calcite-label.cjs.entry.js +2 -5
- package/dist/cjs/calcite-link.cjs.entry.js +3 -3
- package/dist/cjs/calcite-list_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
- package/dist/cjs/calcite-modal.cjs.entry.js +4 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +3 -4
- package/dist/cjs/calcite-option_3.cjs.entry.js +12 -11
- package/dist/cjs/calcite-pagination.cjs.entry.js +3 -6
- package/dist/cjs/calcite-panel.cjs.entry.js +6 -10
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +6 -8
- package/dist/cjs/calcite-popover_2.cjs.entry.js +5 -7
- package/dist/cjs/calcite-progress.cjs.entry.js +1 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/{calcite-radio_2.cjs.entry.js → calcite-radio-button.cjs.entry.js} +12 -54
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +14 -22
- package/dist/cjs/calcite-rating.cjs.entry.js +5 -6
- package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -9
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js +2 -5
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +6 -8
- package/dist/cjs/calcite-switch.cjs.entry.js +7 -9
- package/dist/cjs/calcite-tab_4.cjs.entry.js +13 -16
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +3 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tip_3.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +5 -6
- package/dist/cjs/calcite-tree_2.cjs.entry.js +4 -5
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite.cjs.js +2 -2
- package/dist/cjs/{dom-41ce6029.js → dom-19822169.js} +0 -7
- package/dist/cjs/{form-7f276aa5.js → form-a5b44a1f.js} +1 -1
- package/dist/cjs/{label-98a31f7d.js → label-8e3552b2.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{locale-69dc9583.js → locale-33c458dc.js} +1 -1
- package/dist/cjs/{number-e6448e15.js → number-73f7b474.js} +17 -4
- package/dist/cjs/{popper-4c24a334.js → popper-a7580aca.js} +1 -1
- package/dist/cjs/{resources-3f7b51c8.js → resources-16974e48.js} +3 -2
- package/dist/cjs/{resources-1177e39b.js → resources-6c4b32ef.js} +5 -5
- package/dist/collection/collection-manifest.json +9 -11
- package/dist/collection/components/calcite-accordion/calcite-accordion.css +5 -1
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +1 -2
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +10 -23
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +1 -2
- package/dist/collection/components/calcite-action/calcite-action.css +5 -1
- package/dist/collection/components/calcite-action-bar/calcite-action-bar.css +5 -1
- package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +3 -0
- package/dist/collection/components/calcite-action-group/calcite-action-group.css +5 -1
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.css +5 -1
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.css +7 -8
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +2 -8
- package/dist/collection/components/calcite-alert/calcite-alert.css +29 -40
- package/dist/collection/components/calcite-alert/calcite-alert.js +2 -5
- package/dist/collection/components/calcite-avatar/calcite-avatar.css +5 -1
- package/dist/collection/components/calcite-avatar/calcite-avatar.js +2 -4
- package/dist/collection/components/calcite-block/calcite-block.css +13 -16
- package/dist/collection/components/calcite-block/calcite-block.js +8 -4
- package/dist/collection/components/calcite-block-section/calcite-block-section.css +7 -13
- package/dist/collection/components/calcite-block-section/calcite-block-section.js +3 -4
- package/dist/collection/components/calcite-button/calcite-button.css +24 -58
- package/dist/collection/components/calcite-button/calcite-button.js +9 -6
- package/dist/collection/components/calcite-button/resources.js +3 -1
- package/dist/collection/components/calcite-card/calcite-card.css +6 -7
- package/dist/collection/components/calcite-card/calcite-card.js +2 -6
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +5 -1
- package/dist/collection/components/calcite-chip/calcite-chip.css +18 -39
- package/dist/collection/components/calcite-chip/calcite-chip.js +3 -5
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.css +7 -8
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +8 -12
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.css +5 -1
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +4 -6
- package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.css +5 -1
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +9 -13
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +10 -11
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +7 -14
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +2 -5
- package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.css +7 -19
- package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +3 -5
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.css +5 -1
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +46 -10
- package/dist/collection/components/calcite-date-picker/resources.js +2 -1
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +27 -9
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +1 -2
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +5 -1
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +6 -9
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +5 -1
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +25 -11
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +5 -28
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +5 -8
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.css +5 -1
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +2 -3
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +41 -124
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +4 -8
- package/dist/collection/components/calcite-fab/calcite-fab.css +5 -1
- package/dist/collection/components/calcite-fab/calcite-fab.js +3 -4
- package/dist/collection/components/calcite-filter/calcite-filter.css +8 -22
- package/dist/collection/components/calcite-filter/calcite-filter.js +7 -43
- package/dist/collection/components/calcite-flow/calcite-flow.css +5 -1
- package/dist/collection/components/calcite-flow/calcite-flow.js +1 -1
- package/dist/collection/components/calcite-graph/calcite-graph.css +5 -1
- package/dist/collection/components/calcite-handle/calcite-handle.css +5 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/convert16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/convert24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/convert32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/language16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/language24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/language32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/touch16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/touch24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/touch32.json +1 -0
- package/dist/collection/components/calcite-icon/calcite-icon.css +5 -1
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +6 -2
- package/dist/collection/components/calcite-input/calcite-input.css +29 -117
- package/dist/collection/components/calcite-input/calcite-input.js +5 -8
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +5 -1
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +44 -8
- package/dist/collection/components/calcite-input-message/calcite-input-message.css +9 -10
- package/dist/collection/components/calcite-input-message/calcite-input-message.js +2 -4
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +5 -1
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +82 -78
- package/dist/collection/components/calcite-label/calcite-label.css +9 -8
- package/dist/collection/components/calcite-label/calcite-label.js +1 -4
- package/dist/collection/components/calcite-link/calcite-link.css +15 -18
- package/dist/collection/components/calcite-link/calcite-link.js +1 -1
- package/dist/collection/components/calcite-list/calcite-list.css +5 -1
- package/dist/collection/components/calcite-list-item/calcite-list-item.css +5 -1
- package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.css +5 -1
- package/dist/collection/components/calcite-loader/calcite-loader.css +10 -11
- package/dist/collection/components/calcite-modal/calcite-modal.css +16 -26
- package/dist/collection/components/calcite-modal/calcite-modal.js +3 -6
- package/dist/collection/components/calcite-notice/calcite-notice.css +23 -33
- package/dist/collection/components/calcite-notice/calcite-notice.js +2 -4
- package/dist/collection/components/calcite-option/calcite-option.css +5 -1
- package/dist/collection/components/calcite-option/calcite-option.js +3 -1
- package/dist/collection/components/calcite-option-group/calcite-option-group.css +5 -1
- package/dist/collection/components/calcite-pagination/calcite-pagination.css +6 -2
- package/dist/collection/components/calcite-pagination/calcite-pagination.js +2 -4
- package/dist/collection/components/calcite-panel/calcite-panel.css +11 -32
- package/dist/collection/components/calcite-panel/calcite-panel.js +5 -10
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.css +5 -1
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +1 -1
- package/dist/collection/components/calcite-pick-list/shared-list-logic.js +2 -2
- package/dist/collection/components/calcite-pick-list/shared-list-render.js +2 -3
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.css +6 -7
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +2 -5
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.css +6 -7
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +1 -1
- package/dist/collection/components/calcite-popover/calcite-popover.css +6 -5
- package/dist/collection/components/calcite-popover/calcite-popover.js +2 -5
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.css +5 -1
- package/dist/collection/components/calcite-progress/calcite-progress.css +5 -1
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +74 -1
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +4 -5
- package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.css +5 -1
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +5 -1
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +8 -7
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +7 -3
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +5 -15
- package/dist/collection/components/calcite-rating/calcite-rating.css +8 -19
- package/dist/collection/components/calcite-rating/calcite-rating.js +2 -5
- package/dist/collection/components/calcite-scrim/calcite-scrim.css +6 -2
- package/dist/collection/components/calcite-select/calcite-select.css +12 -25
- package/dist/collection/components/calcite-select/calcite-select.js +10 -10
- package/dist/collection/components/calcite-shell/calcite-shell.css +6 -2
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.css +8 -25
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +3 -5
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +6 -2
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +3 -3
- package/dist/collection/components/calcite-slider/calcite-slider.css +148 -165
- package/dist/collection/components/calcite-slider/calcite-slider.js +65 -29
- package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css +5 -1
- package/dist/collection/components/calcite-split-button/calcite-split-button.css +9 -2
- package/dist/collection/components/calcite-split-button/calcite-split-button.js +4 -6
- package/dist/collection/components/calcite-stepper/calcite-stepper.css +5 -1
- package/dist/collection/components/calcite-stepper/calcite-stepper.js +1 -2
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.css +19 -73
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +3 -6
- package/dist/collection/components/calcite-switch/calcite-switch.css +9 -23
- package/dist/collection/components/calcite-switch/calcite-switch.js +3 -6
- package/dist/collection/components/calcite-tab/calcite-tab.css +5 -2
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +5 -3
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +3 -3
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.css +16 -23
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +7 -11
- package/dist/collection/components/calcite-tabs/calcite-tabs.css +5 -1
- package/dist/collection/components/calcite-tile/calcite-tile.css +5 -1
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +7 -15
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +1 -4
- package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.css +5 -1
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.css +61 -92
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +261 -296
- package/dist/collection/components/calcite-time-picker/resources.js +15 -9
- package/dist/collection/components/calcite-tip/calcite-tip.css +5 -1
- package/dist/collection/components/calcite-tip-group/calcite-tip-group.css +5 -1
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.css +8 -13
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +2 -2
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.css +5 -1
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.css +5 -1
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +1 -2
- package/dist/collection/components/calcite-tree/calcite-tree.css +5 -1
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +9 -5
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +1 -2
- package/dist/collection/components/calcite-value-list/calcite-value-list.css +5 -1
- package/dist/collection/components/calcite-value-list/calcite-value-list.js +1 -1
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.css +5 -1
- package/dist/collection/components/functional/CalciteExpandToggle.js +3 -3
- package/dist/collection/utils/conditionalSlot.js +26 -0
- package/dist/collection/utils/dom.js +0 -6
- package/dist/collection/utils/key.js +0 -23
- package/dist/collection/utils/number.js +9 -1
- package/dist/collection/utils/time.js +144 -36
- package/dist/components/CalciteExpandToggle.js +3 -3
- package/dist/components/calcite-accordion-item.js +2 -3
- package/dist/components/calcite-accordion.js +2 -3
- package/dist/components/calcite-action-bar.js +26 -2
- package/dist/components/calcite-action-group2.js +1 -1
- package/dist/components/calcite-action-menu2.js +1 -1
- package/dist/components/calcite-action-pad.js +3 -8
- package/dist/components/calcite-action2.js +1 -1
- package/dist/components/calcite-alert.js +3 -5
- package/dist/components/calcite-avatar.js +4 -5
- package/dist/components/calcite-block-section.js +4 -4
- package/dist/components/calcite-block.js +7 -3
- package/dist/components/calcite-button2.js +11 -6
- package/dist/components/calcite-card.js +3 -6
- package/dist/components/calcite-checkbox2.js +1 -1
- package/dist/components/calcite-chip2.js +4 -5
- package/dist/components/calcite-color-picker-hex-input2.js +5 -7
- package/dist/components/calcite-color-picker-swatch2.js +5 -5
- package/dist/components/calcite-color-picker.js +9 -12
- package/dist/components/calcite-combobox-item-group.js +3 -4
- package/dist/components/calcite-combobox-item.js +2 -4
- package/dist/components/calcite-combobox.js +8 -9
- package/dist/components/calcite-date-picker-day2.js +2 -3
- package/dist/components/calcite-date-picker-month-header2.js +9 -11
- package/dist/components/calcite-date-picker-month2.js +7 -10
- package/dist/components/calcite-date-picker2.js +25 -12
- package/dist/components/calcite-dropdown-group.js +3 -4
- package/dist/components/calcite-dropdown-item.js +5 -8
- package/dist/components/calcite-dropdown2.js +5 -7
- package/dist/components/calcite-fab.js +4 -5
- package/dist/components/calcite-filter2.js +4 -20
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph2.js +1 -1
- package/dist/components/calcite-handle2.js +1 -1
- package/dist/components/calcite-icon2.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +21 -9
- package/dist/components/calcite-input-message.js +3 -4
- package/dist/components/calcite-input-time-picker.js +53 -51
- package/dist/components/calcite-input2.js +7 -10
- package/dist/components/calcite-label2.js +2 -4
- package/dist/components/calcite-link2.js +2 -2
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader2.js +1 -1
- package/dist/components/calcite-modal.js +4 -6
- package/dist/components/calcite-notice.js +3 -4
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +4 -2
- package/dist/components/calcite-pagination.js +3 -5
- package/dist/components/calcite-panel.js +6 -10
- package/dist/components/calcite-pick-list-group.js +3 -5
- package/dist/components/calcite-pick-list-item2.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover-manager.js +2 -2
- package/dist/components/calcite-popover2.js +3 -5
- package/dist/components/calcite-progress2.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +6 -13
- package/dist/components/calcite-radio-group-item.js +6 -14
- package/dist/components/calcite-radio-group.js +5 -6
- package/dist/components/calcite-rating.js +2 -4
- package/dist/components/calcite-scrim2.js +1 -1
- package/dist/components/calcite-select.js +6 -7
- package/dist/components/calcite-shell-center-row.js +4 -5
- package/dist/components/calcite-shell-panel.js +4 -4
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +25 -12
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +2 -4
- package/dist/components/calcite-stepper-item.js +4 -6
- package/dist/components/calcite-stepper.js +2 -3
- package/dist/components/calcite-switch2.js +4 -6
- package/dist/components/calcite-tab-nav2.js +4 -4
- package/dist/components/calcite-tab-title2.js +8 -11
- package/dist/components/calcite-tab2.js +1 -1
- package/dist/components/calcite-tabs2.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +2 -4
- package/dist/components/calcite-tile2.js +1 -1
- package/dist/components/calcite-time-picker2.js +327 -195
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +3 -3
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager2.js +2 -3
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +3 -4
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/dom.js +1 -7
- package/dist/components/form.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/number.js +14 -3
- package/dist/components/shared-list-render.js +5 -5
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +688 -620
- package/dist/esm/{CalciteExpandToggle-4b38a7d1.js → CalciteExpandToggle-c33bd6fd.js} +3 -3
- package/dist/esm/calcite-accordion_2.entry.js +5 -6
- package/dist/esm/calcite-action-bar.entry.js +28 -4
- package/dist/esm/calcite-action-group.entry.js +2 -2
- package/dist/esm/calcite-action-menu.entry.js +2 -2
- package/dist/esm/calcite-action-pad.entry.js +4 -9
- package/dist/esm/calcite-action.entry.js +1 -1
- package/dist/esm/calcite-alert.entry.js +3 -5
- package/dist/esm/calcite-avatar.entry.js +4 -5
- package/dist/esm/calcite-block_2.entry.js +11 -7
- package/dist/esm/calcite-button.entry.js +12 -7
- package/dist/esm/calcite-card.entry.js +3 -7
- package/dist/esm/calcite-checkbox.entry.js +4 -4
- package/dist/esm/calcite-chip.entry.js +4 -5
- package/dist/esm/calcite-color-picker_3.entry.js +17 -21
- package/dist/esm/calcite-combobox_3.entry.js +15 -18
- package/dist/esm/calcite-date-picker_4.entry.js +41 -31
- package/dist/esm/calcite-dropdown_3.entry.js +12 -17
- package/dist/esm/calcite-fab.entry.js +4 -5
- package/dist/esm/calcite-filter.entry.js +4 -19
- package/dist/esm/calcite-flow.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +27 -15
- package/dist/esm/calcite-handle.entry.js +1 -1
- package/dist/esm/calcite-icon.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +3 -3
- package/dist/esm/calcite-input-date-picker.entry.js +25 -13
- package/dist/esm/calcite-input-message.entry.js +3 -4
- package/dist/esm/calcite-input-time-picker_2.entry.js +361 -236
- package/dist/esm/calcite-input.entry.js +11 -14
- package/dist/esm/calcite-label.entry.js +2 -5
- package/dist/esm/calcite-link.entry.js +3 -3
- package/dist/esm/calcite-list_3.entry.js +4 -4
- package/dist/esm/calcite-loader.entry.js +1 -1
- package/dist/esm/calcite-modal.entry.js +4 -6
- package/dist/esm/calcite-notice.entry.js +3 -4
- package/dist/esm/calcite-option_3.entry.js +12 -11
- package/dist/esm/calcite-pagination.entry.js +3 -6
- package/dist/esm/calcite-panel.entry.js +6 -10
- package/dist/esm/calcite-pick-list_3.entry.js +6 -8
- package/dist/esm/calcite-popover_2.entry.js +5 -7
- package/dist/esm/calcite-progress.entry.js +1 -1
- package/dist/esm/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm/{calcite-radio_2.entry.js → calcite-radio-button.entry.js} +9 -50
- package/dist/esm/calcite-radio-group_2.entry.js +10 -18
- package/dist/esm/calcite-rating.entry.js +5 -6
- package/dist/esm/calcite-scrim.entry.js +1 -1
- package/dist/esm/calcite-shell_3.entry.js +8 -9
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-split-button.entry.js +2 -5
- package/dist/esm/calcite-stepper_2.entry.js +6 -8
- package/dist/esm/calcite-switch.entry.js +6 -8
- package/dist/esm/calcite-tab_4.entry.js +13 -16
- package/dist/esm/calcite-tile-select_2.entry.js +3 -5
- package/dist/esm/calcite-tile.entry.js +2 -2
- package/dist/esm/calcite-tip_3.entry.js +5 -5
- package/dist/esm/calcite-tooltip_2.entry.js +5 -6
- package/dist/esm/calcite-tree_2.entry.js +4 -5
- package/dist/esm/calcite-value-list_2.entry.js +4 -4
- package/dist/esm/calcite.js +2 -2
- package/dist/esm/{dom-dc012a45.js → dom-f24e866c.js} +1 -7
- package/dist/esm/{form-6b717ce8.js → form-160b0fb5.js} +1 -1
- package/dist/esm/{label-0d804a87.js → label-5559055d.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{locale-6c1b85c7.js → locale-4c38cf6d.js} +1 -1
- package/dist/esm/{number-e7393766.js → number-06e8500e.js} +14 -3
- package/dist/esm/{popper-ed1eefa6.js → popper-f5caedc4.js} +1 -1
- package/dist/esm/{resources-eafda211.js → resources-35c1823f.js} +5 -5
- package/dist/esm/{resources-bece7a88.js → resources-b4eee1d4.js} +3 -2
- package/dist/esm-es5/CalciteExpandToggle-c33bd6fd.js +5 -0
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- 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 +1 -1
- package/dist/esm-es5/calcite-action.entry.js +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +2 -2
- 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 +1 -1
- 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 +2 -2
- package/dist/esm-es5/calcite-fab.entry.js +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- package/dist/esm-es5/calcite-icon.entry.js +2 -2
- package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +1 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-progress.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button.entry.js +5 -0
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-scrim.entry.js +1 -1
- 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-split-button.entry.js +1 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/dom-f24e866c.js +5 -0
- package/dist/esm-es5/{form-6b717ce8.js → form-160b0fb5.js} +1 -1
- package/dist/esm-es5/{label-0d804a87.js → label-5559055d.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{locale-6c1b85c7.js → locale-4c38cf6d.js} +1 -1
- package/dist/esm-es5/number-06e8500e.js +5 -0
- package/dist/esm-es5/{popper-ed1eefa6.js → popper-f5caedc4.js} +1 -1
- package/dist/esm-es5/resources-35c1823f.js +5 -0
- package/dist/esm-es5/{resources-bece7a88.js → resources-b4eee1d4.js} +1 -1
- package/dist/extras/docs-json.json +136 -256
- package/dist/types/components/calcite-button/resources.d.ts +2 -0
- package/dist/types/components/calcite-date-picker/resources.d.ts +1 -0
- package/dist/types/components/calcite-time-picker/resources.d.ts +14 -8
- package/dist/types/components.d.ts +54 -105
- package/dist/types/preact.d.ts +0 -2
- package/dist/types/utils/conditionalSlot.d.ts +17 -0
- package/dist/types/utils/dom.d.ts +0 -4
- package/dist/types/utils/key.d.ts +0 -4
- package/dist/types/utils/number.d.ts +2 -0
- package/dist/types/utils/time.d.ts +18 -5
- package/hydrate/index.js +713 -642
- package/package.json +20 -20
- package/readme.md +2 -2
- package/dist/calcite/p-04a2538a.entry.js +0 -5
- package/dist/calcite/p-051cc8c6.entry.js +0 -5
- package/dist/calcite/p-058ee7b0.entry.js +0 -5
- package/dist/calcite/p-0c827dec.entry.js +0 -5
- package/dist/calcite/p-0f33798d.system.entry.js +0 -5
- package/dist/calcite/p-0f9f1f89.system.entry.js +0 -5
- package/dist/calcite/p-1161e56f.js +0 -5
- package/dist/calcite/p-18fbf2af.system.entry.js +0 -5
- package/dist/calcite/p-198902ca.entry.js +0 -5
- package/dist/calcite/p-1ad123f9.entry.js +0 -5
- package/dist/calcite/p-1eb04aad.system.entry.js +0 -5
- package/dist/calcite/p-1f809e6c.system.entry.js +0 -5
- package/dist/calcite/p-2033f545.system.entry.js +0 -5
- package/dist/calcite/p-20f91a4e.system.entry.js +0 -5
- package/dist/calcite/p-227bc238.system.entry.js +0 -5
- package/dist/calcite/p-239b44dd.system.entry.js +0 -5
- package/dist/calcite/p-266ee9db.entry.js +0 -5
- package/dist/calcite/p-33802886.entry.js +0 -5
- package/dist/calcite/p-343cd887.entry.js +0 -5
- package/dist/calcite/p-3d69fba9.entry.js +0 -5
- package/dist/calcite/p-3ec67fae.entry.js +0 -5
- package/dist/calcite/p-42091a1f.system.entry.js +0 -5
- package/dist/calcite/p-42c7e2f0.system.entry.js +0 -5
- package/dist/calcite/p-43020fb5.js +0 -5
- package/dist/calcite/p-44a07313.system.entry.js +0 -5
- package/dist/calcite/p-4a8b3cf3.system.entry.js +0 -5
- package/dist/calcite/p-4cc182af.system.entry.js +0 -5
- package/dist/calcite/p-4ee2f6cf.system.entry.js +0 -5
- package/dist/calcite/p-50273eed.entry.js +0 -5
- package/dist/calcite/p-5035488d.entry.js +0 -5
- package/dist/calcite/p-52578054.js +0 -5
- package/dist/calcite/p-538e542a.system.entry.js +0 -5
- package/dist/calcite/p-55bfe4fc.entry.js +0 -5
- package/dist/calcite/p-56b352bf.system.js +0 -5
- package/dist/calcite/p-57e9b7cb.system.entry.js +0 -5
- package/dist/calcite/p-659898bf.entry.js +0 -5
- package/dist/calcite/p-6c5b849f.system.entry.js +0 -5
- package/dist/calcite/p-6ca051ef.entry.js +0 -5
- package/dist/calcite/p-702140ce.entry.js +0 -5
- package/dist/calcite/p-71e299a6.system.js +0 -5
- package/dist/calcite/p-72563742.js +0 -5
- package/dist/calcite/p-730b8963.system.entry.js +0 -5
- package/dist/calcite/p-7325e7fc.system.entry.js +0 -5
- package/dist/calcite/p-784e4e32.system.entry.js +0 -5
- package/dist/calcite/p-80a527ef.entry.js +0 -5
- package/dist/calcite/p-82c6cd9a.entry.js +0 -5
- package/dist/calcite/p-832affcb.system.entry.js +0 -5
- package/dist/calcite/p-837f9bb4.system.entry.js +0 -5
- package/dist/calcite/p-83fca16e.system.entry.js +0 -5
- package/dist/calcite/p-84d6696b.entry.js +0 -5
- package/dist/calcite/p-87f1831b.entry.js +0 -5
- package/dist/calcite/p-88b4f504.entry.js +0 -5
- package/dist/calcite/p-89987575.entry.js +0 -5
- package/dist/calcite/p-8b2d4eac.system.entry.js +0 -5
- package/dist/calcite/p-8b2ead09.system.entry.js +0 -5
- package/dist/calcite/p-8da7ad4b.entry.js +0 -5
- package/dist/calcite/p-8e252799.system.js +0 -5
- package/dist/calcite/p-8fef13ca.system.entry.js +0 -5
- package/dist/calcite/p-91645bf7.system.js +0 -5
- package/dist/calcite/p-9470d123.system.entry.js +0 -5
- package/dist/calcite/p-95b9a0f2.system.entry.js +0 -5
- package/dist/calcite/p-99de28b4.system.entry.js +0 -5
- package/dist/calcite/p-99e52ea7.system.entry.js +0 -5
- package/dist/calcite/p-9abbbcbd.system.entry.js +0 -5
- package/dist/calcite/p-9be50494.entry.js +0 -5
- package/dist/calcite/p-a821e9b3.system.entry.js +0 -5
- package/dist/calcite/p-a98e5444.system.entry.js +0 -5
- package/dist/calcite/p-ab9c6a18.entry.js +0 -5
- package/dist/calcite/p-abdc7a4b.system.entry.js +0 -5
- package/dist/calcite/p-ac38b743.system.entry.js +0 -5
- package/dist/calcite/p-aced5f01.entry.js +0 -5
- package/dist/calcite/p-b0b6baf4.system.entry.js +0 -5
- package/dist/calcite/p-b16b831d.entry.js +0 -5
- package/dist/calcite/p-b174f9ac.entry.js +0 -5
- package/dist/calcite/p-b2ab0485.js +0 -5
- package/dist/calcite/p-b37b7b9e.system.entry.js +0 -5
- package/dist/calcite/p-b3e418f0.entry.js +0 -5
- package/dist/calcite/p-b4b1081f.system.entry.js +0 -5
- package/dist/calcite/p-b5d21a5d.system.entry.js +0 -5
- package/dist/calcite/p-b5f412fb.entry.js +0 -5
- package/dist/calcite/p-b7518275.system.entry.js +0 -5
- package/dist/calcite/p-b75ffebb.system.entry.js +0 -5
- package/dist/calcite/p-bef1f0d9.entry.js +0 -5
- package/dist/calcite/p-c0690971.entry.js +0 -5
- package/dist/calcite/p-c12e88cd.entry.js +0 -5
- package/dist/calcite/p-c1794615.entry.js +0 -5
- package/dist/calcite/p-c3ba61ea.entry.js +0 -5
- package/dist/calcite/p-c937f25f.system.js +0 -5
- package/dist/calcite/p-c9551366.entry.js +0 -5
- package/dist/calcite/p-ca5c0679.entry.js +0 -5
- package/dist/calcite/p-cbe9f1a2.system.entry.js +0 -5
- package/dist/calcite/p-cd1cdf3c.entry.js +0 -5
- package/dist/calcite/p-d102e280.system.entry.js +0 -5
- package/dist/calcite/p-d830efad.entry.js +0 -5
- package/dist/calcite/p-dacd3cf8.entry.js +0 -5
- package/dist/calcite/p-dcc6b40f.entry.js +0 -5
- package/dist/calcite/p-dccb5ffd.entry.js +0 -5
- package/dist/calcite/p-dff7dc90.system.js +0 -5
- package/dist/calcite/p-e2d18d39.system.entry.js +0 -5
- package/dist/calcite/p-e5305b02.js +0 -5
- package/dist/calcite/p-e6a47d34.system.entry.js +0 -5
- package/dist/calcite/p-e78e743b.entry.js +0 -5
- package/dist/calcite/p-ea3fee96.entry.js +0 -5
- package/dist/calcite/p-eada9cef.entry.js +0 -5
- package/dist/calcite/p-eb0f1e0f.system.entry.js +0 -5
- package/dist/calcite/p-ed3f000d.system.entry.js +0 -5
- package/dist/calcite/p-ee40deba.system.entry.js +0 -5
- package/dist/calcite/p-ee45cff5.system.entry.js +0 -5
- package/dist/calcite/p-eeb8dfe5.system.entry.js +0 -5
- package/dist/calcite/p-f0338acf.system.entry.js +0 -5
- package/dist/calcite/p-f05b5dc9.system.entry.js +0 -5
- package/dist/calcite/p-f1832595.system.entry.js +0 -5
- package/dist/calcite/p-f2620bc3.js +0 -5
- package/dist/calcite/p-f333e31b.entry.js +0 -5
- package/dist/calcite/p-f6323ffa.system.entry.js +0 -5
- package/dist/calcite/p-f87ba8eb.system.js +0 -5
- package/dist/calcite/p-f97e1a2d.entry.js +0 -5
- package/dist/calcite/p-fb817417.entry.js +0 -5
- package/dist/calcite/p-fb8b2c96.entry.js +0 -5
- package/dist/calcite/p-fc32b022.entry.js +0 -5
- package/dist/calcite/p-fc47547f.system.entry.js +0 -5
- package/dist/calcite/p-fccc1605.entry.js +0 -5
- package/dist/calcite/p-fd1ddcd2.system.entry.js +0 -5
- package/dist/cjs/key-8bfb93ec.js +0 -37
- package/dist/collection/components/calcite-radio/calcite-radio.css +0 -162
- package/dist/collection/components/calcite-radio/calcite-radio.js +0 -169
- package/dist/components/calcite-radio.d.ts +0 -11
- package/dist/components/calcite-radio.js +0 -10
- package/dist/components/calcite-radio2.js +0 -71
- package/dist/components/key.js +0 -33
- package/dist/esm/key-69001a68.js +0 -33
- package/dist/esm-es5/CalciteExpandToggle-4b38a7d1.js +0 -5
- package/dist/esm-es5/calcite-radio_2.entry.js +0 -5
- package/dist/esm-es5/dom-dc012a45.js +0 -5
- package/dist/esm-es5/key-69001a68.js +0 -5
- package/dist/esm-es5/number-e7393766.js +0 -5
- package/dist/esm-es5/resources-eafda211.js +0 -5
- package/dist/types/components/calcite-accordion/calcite-accordion.d.ts +0 -42
- package/dist/types/components/calcite-accordion-item/calcite-accordion-item.d.ts +0 -53
- package/dist/types/components/calcite-action/calcite-action.d.ts +0 -73
- package/dist/types/components/calcite-action-bar/calcite-action-bar.d.ts +0 -68
- package/dist/types/components/calcite-action-group/calcite-action-group.d.ts +0 -39
- package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +0 -82
- package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +0 -52
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +0 -82
- package/dist/types/components/calcite-avatar/calcite-avatar.d.ts +0 -26
- package/dist/types/components/calcite-block/calcite-block.d.ts +0 -72
- package/dist/types/components/calcite-block-section/calcite-block-section.d.ts +0 -43
- package/dist/types/components/calcite-button/calcite-button.d.ts +0 -81
- package/dist/types/components/calcite-card/calcite-card.d.ts +0 -43
- package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +0 -73
- package/dist/types/components/calcite-chip/calcite-chip.d.ts +0 -37
- package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +0 -224
- package/dist/types/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.d.ts +0 -51
- package/dist/types/components/calcite-color-picker-swatch/calcite-color-picker-swatch.d.ts +0 -23
- package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +0 -177
- package/dist/types/components/calcite-combobox/interfaces.d.ts +0 -6
- package/dist/types/components/calcite-combobox/utils.d.ts +0 -6
- package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +0 -46
- package/dist/types/components/calcite-combobox-item-group/calcite-combobox-item-group.d.ts +0 -17
- package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +0 -126
- package/dist/types/components/calcite-date-picker-day/calcite-date-picker-day.d.ts +0 -45
- package/dist/types/components/calcite-date-picker-month/calcite-date-picker-month.d.ts +0 -97
- package/dist/types/components/calcite-date-picker-month-header/calcite-date-picker-month-header.d.ts +0 -55
- package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +0 -98
- package/dist/types/components/calcite-dropdown-group/calcite-dropdown-group.d.ts +0 -32
- package/dist/types/components/calcite-dropdown-item/calcite-dropdown-item.d.ts +0 -52
- package/dist/types/components/calcite-fab/calcite-fab.d.ts +0 -47
- package/dist/types/components/calcite-filter/calcite-filter.d.ts +0 -62
- package/dist/types/components/calcite-flow/calcite-flow.d.ts +0 -22
- package/dist/types/components/calcite-graph/calcite-graph.d.ts +0 -29
- package/dist/types/components/calcite-handle/calcite-handle.d.ts +0 -22
- package/dist/types/components/calcite-icon/calcite-icon.d.ts +0 -32
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +0 -69
- package/dist/types/components/calcite-input/calcite-input.d.ts +0 -166
- package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +0 -164
- package/dist/types/components/calcite-input-message/calcite-input-message.d.ts +0 -27
- package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +0 -82
- package/dist/types/components/calcite-label/calcite-label.d.ts +0 -30
- package/dist/types/components/calcite-link/calcite-link.d.ts +0 -33
- package/dist/types/components/calcite-list/calcite-list.d.ts +0 -16
- package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +0 -37
- package/dist/types/components/calcite-list-item-group/calcite-list-item-group.d.ts +0 -18
- package/dist/types/components/calcite-loader/calcite-loader.d.ts +0 -27
- package/dist/types/components/calcite-modal/calcite-modal.d.ts +0 -88
- package/dist/types/components/calcite-notice/calcite-notice.d.ts +0 -51
- package/dist/types/components/calcite-pagination/calcite-pagination.d.ts +0 -51
- package/dist/types/components/calcite-panel/calcite-panel.d.ts +0 -119
- package/dist/types/components/calcite-pick-list/calcite-pick-list.d.ts +0 -74
- package/dist/types/components/calcite-pick-list/shared-list-logic.d.ts +0 -30
- package/dist/types/components/calcite-pick-list/shared-list-render.d.ts +0 -18
- package/dist/types/components/calcite-pick-list-group/calcite-pick-list-group.d.ts +0 -18
- package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +0 -103
- package/dist/types/components/calcite-popover/calcite-popover.d.ts +0 -107
- package/dist/types/components/calcite-popover-manager/calcite-popover-manager.d.ts +0 -19
- package/dist/types/components/calcite-progress/calcite-progress.d.ts +0 -15
- package/dist/types/components/calcite-radio/calcite-radio.d.ts +0 -22
- package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +0 -91
- package/dist/types/components/calcite-radio-button-group/calcite-radio-button-group.d.ts +0 -32
- package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +0 -56
- package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +0 -32
- package/dist/types/components/calcite-rating/calcite-rating.d.ts +0 -60
- package/dist/types/components/calcite-scrim/calcite-scrim.d.ts +0 -17
- package/dist/types/components/calcite-select/calcite-select.d.ts +0 -76
- package/dist/types/components/calcite-shell/calcite-shell.d.ts +0 -21
- package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +0 -22
- package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +0 -67
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +0 -187
- package/dist/types/components/calcite-sortable-list/calcite-sortable-list.d.ts +0 -50
- package/dist/types/components/calcite-split-button/calcite-split-button.d.ts +0 -52
- package/dist/types/components/calcite-stepper/calcite-stepper.d.ts +0 -58
- package/dist/types/components/calcite-stepper-item/calcite-stepper-item.d.ts +0 -65
- package/dist/types/components/calcite-switch/calcite-switch.d.ts +0 -46
- package/dist/types/components/calcite-tab/calcite-tab.d.ts +0 -42
- package/dist/types/components/calcite-tab-nav/calcite-tab-nav.d.ts +0 -74
- package/dist/types/components/calcite-tab-title/calcite-tab-title.d.ts +0 -92
- package/dist/types/components/calcite-tabs/calcite-tabs.d.ts +0 -65
- package/dist/types/components/calcite-tile/calcite-tile.d.ts +0 -33
- package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +0 -57
- package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +0 -123
- package/dist/types/components/calcite-tip/calcite-tip.d.ts +0 -44
- package/dist/types/components/calcite-tip-manager/calcite-tip-manager.d.ts +0 -65
- package/dist/types/components/calcite-tooltip/calcite-tooltip.d.ts +0 -60
- package/dist/types/components/calcite-tooltip-manager/calcite-tooltip-manager.d.ts +0 -41
- package/dist/types/components/calcite-tree/calcite-tree.d.ts +0 -38
- package/dist/types/components/calcite-tree/interfaces.d.ts +0 -10
- package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +0 -56
- package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +0 -87
- package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +0 -76
- package/dist/types/components/functional/CalciteExpandToggle.d.ts +0 -19
- package/dist/types/utils/label.d.ts +0 -35
|
@@ -5,12 +5,10 @@
|
|
|
5
5
|
import { Component, Element, Event, h, Listen, Method, Prop, State, Watch } from "@stencil/core";
|
|
6
6
|
import Color from "color";
|
|
7
7
|
import { CSS, DEFAULT_COLOR, DEFAULT_STORAGE_KEY_PREFIX, DIMENSIONS, HSV_LIMITS, RGB_LIMITS, TEXT } from "./resources";
|
|
8
|
-
import { focusElement
|
|
8
|
+
import { focusElement } from "../../utils/dom";
|
|
9
9
|
import { colorEqual, CSSColorMode, normalizeHex, parseMode } from "./utils";
|
|
10
10
|
import { throttle } from "lodash-es";
|
|
11
|
-
import { getKey } from "../../utils/key";
|
|
12
11
|
import { clamp } from "../../utils/math";
|
|
13
|
-
import { CSS_UTILITY } from "../../utils/resources";
|
|
14
12
|
const throttleFor60FpsInMs = 16;
|
|
15
13
|
const defaultValue = normalizeHex(DEFAULT_COLOR.hex());
|
|
16
14
|
const defaultFormat = "auto";
|
|
@@ -156,7 +154,7 @@ export class CalciteColorPicker {
|
|
|
156
154
|
this.updateChannelsFromColor(this.color);
|
|
157
155
|
};
|
|
158
156
|
this.handleColorFieldScopeKeyDown = (event) => {
|
|
159
|
-
const key =
|
|
157
|
+
const key = event.key;
|
|
160
158
|
const arrowKeyToXYOffset = {
|
|
161
159
|
ArrowUp: { x: 0, y: -10 },
|
|
162
160
|
ArrowRight: { x: 10, y: 0 },
|
|
@@ -171,7 +169,7 @@ export class CalciteColorPicker {
|
|
|
171
169
|
};
|
|
172
170
|
this.handleHueScopeKeyDown = (event) => {
|
|
173
171
|
const modifier = event.shiftKey ? 10 : 1;
|
|
174
|
-
const key =
|
|
172
|
+
const key = event.key;
|
|
175
173
|
const arrowKeyToXOffset = {
|
|
176
174
|
ArrowUp: 1,
|
|
177
175
|
ArrowRight: 1,
|
|
@@ -510,7 +508,7 @@ export class CalciteColorPicker {
|
|
|
510
508
|
// using @Listen as a workaround for VDOM listener not firing
|
|
511
509
|
handleChannelKeyUpOrDown(event) {
|
|
512
510
|
this.shiftKeyChannelAdjustment = 0;
|
|
513
|
-
const key =
|
|
511
|
+
const key = event.key;
|
|
514
512
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
515
513
|
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS.channel); })) {
|
|
516
514
|
return;
|
|
@@ -572,13 +570,12 @@ export class CalciteColorPicker {
|
|
|
572
570
|
//
|
|
573
571
|
//--------------------------------------------------------------------------
|
|
574
572
|
render() {
|
|
575
|
-
const { allowEmpty, color, intlDeleteColor,
|
|
573
|
+
const { allowEmpty, color, intlDeleteColor, hideHex, hideChannels, hideSaved, intlHex, intlSaved, intlSaveColor, savedColors, scale } = this;
|
|
576
574
|
const selectedColorInHex = color ? color.hex() : null;
|
|
577
575
|
const hexInputScale = scale === "l" ? "m" : "s";
|
|
578
576
|
const { colorFieldAndSliderInteractive, colorFieldScopeTop, colorFieldScopeLeft, hueScopeLeft, hueScopeTop, scopeOrientation, dimensions: { colorField: { height: colorFieldHeight, width: colorFieldWidth }, slider: { height: sliderHeight } } } = this;
|
|
579
577
|
const hueTop = hueScopeTop !== null && hueScopeTop !== void 0 ? hueScopeTop : sliderHeight / 2 + colorFieldHeight;
|
|
580
578
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR.hue()) / HSV_LIMITS.h;
|
|
581
|
-
const elementDir = getElementDir(el);
|
|
582
579
|
const noColor = color === null;
|
|
583
580
|
const vertical = scopeOrientation === "vertical";
|
|
584
581
|
return (h("div", { class: CSS.container },
|
|
@@ -591,19 +588,18 @@ export class CalciteColorPicker {
|
|
|
591
588
|
h("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR.round().hue(), class: { [CSS.scope]: true, [CSS.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })),
|
|
592
589
|
hideHex && hideChannels ? null : (h("div", { class: {
|
|
593
590
|
[CSS.controlSection]: true,
|
|
594
|
-
[CSS.section]: true
|
|
595
|
-
[CSS_UTILITY.rtl]: elementDir === "rtl"
|
|
591
|
+
[CSS.section]: true
|
|
596
592
|
} },
|
|
597
593
|
hideHex ? null : (h("div", { class: CSS.hexOptions },
|
|
598
594
|
h("span", { class: {
|
|
599
595
|
[CSS.header]: true,
|
|
600
596
|
[CSS.headerHex]: true
|
|
601
597
|
} }, intlHex),
|
|
602
|
-
h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS.control,
|
|
598
|
+
h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS.control, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))),
|
|
603
599
|
hideChannels ? null : (h("calcite-tabs", { class: {
|
|
604
600
|
[CSS.colorModeContainer]: true,
|
|
605
601
|
[CSS.splitSection]: true
|
|
606
|
-
},
|
|
602
|
+
}, scale: hexInputScale },
|
|
607
603
|
h("calcite-tab-nav", { slot: "tab-nav" },
|
|
608
604
|
this.renderChannelsTabTitle("rgb"),
|
|
609
605
|
this.renderChannelsTabTitle("hsv")),
|
package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.css
CHANGED
|
@@ -47,7 +47,11 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
:root {
|
|
50
|
-
--calcite-animation-timing:
|
|
50
|
+
--calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));
|
|
51
|
+
--calcite-internal-duration-factor: var(--calcite-duration-factor, 1);
|
|
52
|
+
--calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));
|
|
53
|
+
--calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));
|
|
54
|
+
--calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
.calcite-animate {
|
package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js
CHANGED
|
@@ -6,9 +6,8 @@ import { Component, Element, Event, h, Listen, Method, Prop, State, Watch } from
|
|
|
6
6
|
import { hexChar, hexToRGB, isLonghandHex, isValidHex, normalizeHex, rgbToHex } from "../calcite-color-picker/utils";
|
|
7
7
|
import Color from "color";
|
|
8
8
|
import { CSS } from "./resources";
|
|
9
|
-
import { focusElement
|
|
9
|
+
import { focusElement } from "../../utils/dom";
|
|
10
10
|
import { TEXT } from "../calcite-color-picker/resources";
|
|
11
|
-
import { getKey } from "../../utils/key";
|
|
12
11
|
const DEFAULT_COLOR = Color();
|
|
13
12
|
export class CalciteColorPickerHexInput {
|
|
14
13
|
constructor() {
|
|
@@ -133,7 +132,7 @@ export class CalciteColorPickerHexInput {
|
|
|
133
132
|
onInputKeyDown(event) {
|
|
134
133
|
const { altKey, ctrlKey, metaKey, shiftKey } = event;
|
|
135
134
|
const { internalColor, value } = this;
|
|
136
|
-
const key =
|
|
135
|
+
const key = event.key;
|
|
137
136
|
if (key === "Tab" || key === "Enter") {
|
|
138
137
|
this.onInputChange();
|
|
139
138
|
return;
|
|
@@ -164,11 +163,10 @@ export class CalciteColorPickerHexInput {
|
|
|
164
163
|
//
|
|
165
164
|
//--------------------------------------------------------------------------
|
|
166
165
|
render() {
|
|
167
|
-
const {
|
|
166
|
+
const { intlHex, value } = this;
|
|
168
167
|
const hexInputValue = this.formatForInternalInput(value);
|
|
169
|
-
const elementDir = getElementDir(el);
|
|
170
168
|
return (h("div", { class: CSS.container },
|
|
171
|
-
h("calcite-input", { class: CSS.input,
|
|
169
|
+
h("calcite-input", { class: CSS.input, label: intlHex, maxLength: 6, onCalciteInputBlur: this.onCalciteInputBlur, onCalciteInputChange: this.onInputChange, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }),
|
|
172
170
|
hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
173
171
|
}
|
|
174
172
|
//--------------------------------------------------------------------------
|
package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.css
CHANGED
|
@@ -47,7 +47,11 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
:root {
|
|
50
|
-
--calcite-animation-timing:
|
|
50
|
+
--calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));
|
|
51
|
+
--calcite-internal-duration-factor: var(--calcite-duration-factor, 1);
|
|
52
|
+
--calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));
|
|
53
|
+
--calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));
|
|
54
|
+
--calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
.calcite-animate {
|
|
@@ -47,7 +47,11 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
:root {
|
|
50
|
-
--calcite-animation-timing:
|
|
50
|
+
--calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));
|
|
51
|
+
--calcite-internal-duration-factor: var(--calcite-duration-factor, 1);
|
|
52
|
+
--calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));
|
|
53
|
+
--calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));
|
|
54
|
+
--calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
.calcite-animate {
|
|
@@ -327,7 +331,8 @@
|
|
|
327
331
|
}
|
|
328
332
|
|
|
329
333
|
.chip {
|
|
330
|
-
margin: calc(var(--calcite-combobox-item-spacing-unit-s) / 2)
|
|
334
|
+
margin-block: calc(var(--calcite-combobox-item-spacing-unit-s) / 2) 0;
|
|
335
|
+
margin-inline: 0 var(--calcite-combobox-item-spacing-unit-s);
|
|
331
336
|
max-width: 100%;
|
|
332
337
|
}
|
|
333
338
|
|
|
@@ -335,17 +340,8 @@
|
|
|
335
340
|
background-color: var(--calcite-ui-foreground-3);
|
|
336
341
|
}
|
|
337
342
|
|
|
338
|
-
.chip:last-
|
|
339
|
-
margin-
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.chip--rtl {
|
|
343
|
-
margin-right: unset;
|
|
344
|
-
margin-left: var(--calcite-combobox-item-spacing-unit-l);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
.chip--rtl:last-child {
|
|
348
|
-
margin-left: 0;
|
|
343
|
+
.chip:last-of-type {
|
|
344
|
+
margin-inline-end: 0;
|
|
349
345
|
}
|
|
350
346
|
|
|
351
347
|
.item {
|
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, h, Prop, State, Listen, Event, Element, Method, Watch, Host } from "@stencil/core";
|
|
6
6
|
import { filter } from "../../utils/filter";
|
|
7
|
-
import { getElementDir, getElementStyleDir } from "../../utils/dom";
|
|
8
7
|
import { debounce } from "lodash-es";
|
|
9
|
-
import { getKey } from "../../utils/key";
|
|
10
8
|
import { createPopper, updatePopper, CSS as PopperCSS } from "../../utils/popper";
|
|
11
9
|
import { guid } from "../../utils/guid";
|
|
12
10
|
import { ComboboxChildSelector, ComboboxItem, ComboboxItemGroup, ComboboxDefaultPlacement } from "./resources";
|
|
@@ -86,7 +84,7 @@ export class CalciteCombobox {
|
|
|
86
84
|
this.setFocus();
|
|
87
85
|
};
|
|
88
86
|
this.keydownHandler = (event) => {
|
|
89
|
-
const key =
|
|
87
|
+
const { key } = event;
|
|
90
88
|
switch (key) {
|
|
91
89
|
case "Tab":
|
|
92
90
|
this.activeChipIndex = -1;
|
|
@@ -187,7 +185,9 @@ export class CalciteCombobox {
|
|
|
187
185
|
};
|
|
188
186
|
this.setInactiveIfNotContained = (event) => {
|
|
189
187
|
const composedPath = event.composedPath();
|
|
190
|
-
if (!this.active
|
|
188
|
+
if ((!this.active && !this.open) ||
|
|
189
|
+
composedPath.includes(this.el) ||
|
|
190
|
+
composedPath.includes(this.referenceEl)) {
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
193
|
if (this.allowCustomValues && this.text) {
|
|
@@ -202,6 +202,7 @@ export class CalciteCombobox {
|
|
|
202
202
|
this.updateActiveItemIndex(-1);
|
|
203
203
|
}
|
|
204
204
|
this.active = false;
|
|
205
|
+
this.open = false;
|
|
205
206
|
};
|
|
206
207
|
this.setMenuEl = (el) => {
|
|
207
208
|
this.menuEl = el;
|
|
@@ -651,13 +652,11 @@ export class CalciteCombobox {
|
|
|
651
652
|
//
|
|
652
653
|
//--------------------------------------------------------------------------
|
|
653
654
|
renderChips() {
|
|
654
|
-
const { activeChipIndex, scale, selectionMode
|
|
655
|
-
const dir = getElementDir(el);
|
|
655
|
+
const { activeChipIndex, scale, selectionMode } = this;
|
|
656
656
|
return this.selectedItems.map((item, i) => {
|
|
657
657
|
const chipClasses = {
|
|
658
658
|
chip: true,
|
|
659
|
-
"chip--active": activeChipIndex === i
|
|
660
|
-
"chip--rtl": dir === "rtl"
|
|
659
|
+
"chip--active": activeChipIndex === i
|
|
661
660
|
};
|
|
662
661
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
663
662
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
@@ -1003,7 +1002,7 @@ export class CalciteCombobox {
|
|
|
1003
1002
|
},
|
|
1004
1003
|
"complexType": {
|
|
1005
1004
|
"original": "HTMLCalciteComboboxItemElement[]",
|
|
1006
|
-
"resolved": "
|
|
1005
|
+
"resolved": "any[]",
|
|
1007
1006
|
"references": {
|
|
1008
1007
|
"HTMLCalciteComboboxItemElement": {
|
|
1009
1008
|
"location": "global"
|
|
@@ -1022,7 +1021,7 @@ export class CalciteCombobox {
|
|
|
1022
1021
|
},
|
|
1023
1022
|
"complexType": {
|
|
1024
1023
|
"original": "{ selectedItems: HTMLCalciteComboboxItemElement[] }",
|
|
1025
|
-
"resolved": "{ selectedItems:
|
|
1024
|
+
"resolved": "{ selectedItems: any[]; }",
|
|
1026
1025
|
"references": {
|
|
1027
1026
|
"HTMLCalciteComboboxItemElement": {
|
|
1028
1027
|
"location": "global"
|
|
@@ -1041,7 +1040,7 @@ export class CalciteCombobox {
|
|
|
1041
1040
|
},
|
|
1042
1041
|
"complexType": {
|
|
1043
1042
|
"original": "{\n visibleItems: HTMLCalciteComboboxItemElement[];\n text: string;\n }",
|
|
1044
|
-
"resolved": "{ visibleItems:
|
|
1043
|
+
"resolved": "{ visibleItems: any[]; text: string; }",
|
|
1045
1044
|
"references": {
|
|
1046
1045
|
"HTMLCalciteComboboxItemElement": {
|
|
1047
1046
|
"location": "global"
|
|
@@ -49,7 +49,11 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
:root {
|
|
52
|
-
--calcite-animation-timing:
|
|
52
|
+
--calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));
|
|
53
|
+
--calcite-internal-duration-factor: var(--calcite-duration-factor, 1);
|
|
54
|
+
--calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));
|
|
55
|
+
--calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));
|
|
56
|
+
--calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
.calcite-animate {
|
|
@@ -114,13 +118,6 @@
|
|
|
114
118
|
--calcite-combobox-item-indent-value: calc(
|
|
115
119
|
var(--calcite-combobox-item-spacing-indent) * var(--calcite-combobox-item-spacing-indent-multiplier)
|
|
116
120
|
);
|
|
117
|
-
--calcite-combobox-item-indent-start: var(--calcite-combobox-item-indent-value);
|
|
118
|
-
--calcite-combobox-item-indent-end: unset;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.calcite--rtl {
|
|
122
|
-
--calcite-combobox-item-indent-start: unset;
|
|
123
|
-
--calcite-combobox-item-indent-end: var(--calcite-combobox-item-indent-value);
|
|
124
121
|
}
|
|
125
122
|
|
|
126
123
|
:host(:focus) {
|
|
@@ -190,8 +187,7 @@ ul {
|
|
|
190
187
|
}
|
|
191
188
|
|
|
192
189
|
.icon--indent {
|
|
193
|
-
padding-
|
|
194
|
-
padding-right: var(--calcite-combobox-item-indent-end);
|
|
190
|
+
padding-inline-start: var(--calcite-combobox-item-indent-value);
|
|
195
191
|
}
|
|
196
192
|
|
|
197
193
|
.icon--custom {
|
|
@@ -210,13 +206,10 @@ ul {
|
|
|
210
206
|
}
|
|
211
207
|
|
|
212
208
|
.icon--dot:before {
|
|
209
|
+
text-align: start;
|
|
213
210
|
content: "•";
|
|
214
211
|
}
|
|
215
212
|
|
|
216
|
-
.calcite--rtl .icon--dot:before {
|
|
217
|
-
text-align: right;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
213
|
.label--active .icon {
|
|
221
214
|
opacity: 1;
|
|
222
215
|
}
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, Host, Method, Prop, h, Watch } from "@stencil/core";
|
|
6
|
-
import {
|
|
6
|
+
import { getElementProp } from "../../utils/dom";
|
|
7
7
|
import { CSS } from "./resources";
|
|
8
8
|
import { guid } from "../../utils/guid";
|
|
9
9
|
import { getAncestors, getDepth } from "../calcite-combobox/utils";
|
|
10
|
-
import { CSS_UTILITY } from "../../utils/resources";
|
|
11
10
|
/**
|
|
12
11
|
* @slot - A slot for adding nested `calcite-combobox-item`s.
|
|
13
12
|
*/
|
|
@@ -101,9 +100,7 @@ export class CalciteComboboxItem {
|
|
|
101
100
|
}
|
|
102
101
|
render() {
|
|
103
102
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
104
|
-
const dir = getElementDir(this.el);
|
|
105
103
|
const classes = {
|
|
106
|
-
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
107
104
|
[CSS.label]: true,
|
|
108
105
|
[CSS.selected]: this.selected,
|
|
109
106
|
[CSS.active]: this.active,
|
|
@@ -185,7 +182,7 @@ export class CalciteComboboxItem {
|
|
|
185
182
|
"mutable": true,
|
|
186
183
|
"complexType": {
|
|
187
184
|
"original": "ComboboxChildElement[]",
|
|
188
|
-
"resolved": "
|
|
185
|
+
"resolved": "any[]",
|
|
189
186
|
"references": {
|
|
190
187
|
"ComboboxChildElement": {
|
|
191
188
|
"location": "import",
|
package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.css
CHANGED
|
@@ -47,7 +47,11 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
:root {
|
|
50
|
-
--calcite-animation-timing:
|
|
50
|
+
--calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));
|
|
51
|
+
--calcite-internal-duration-factor: var(--calcite-duration-factor, 1);
|
|
52
|
+
--calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));
|
|
53
|
+
--calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));
|
|
54
|
+
--calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
.calcite-animate {
|
|
@@ -84,13 +88,6 @@
|
|
|
84
88
|
display: none;
|
|
85
89
|
}
|
|
86
90
|
|
|
87
|
-
:host {
|
|
88
|
-
--calcite-combobox-item-indent-start-1: var(--calcite-combobox-item-spacing-indent-1);
|
|
89
|
-
--calcite-combobox-item-indent-end-1: unset;
|
|
90
|
-
--calcite-combobox-item-indent-start-2: var(--calcite-combobox-item-spacing-indent-2);
|
|
91
|
-
--calcite-combobox-item-indent-end-2: unset;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
91
|
.scale--s {
|
|
95
92
|
font-size: var(--calcite-font-size--2);
|
|
96
93
|
line-height: 1rem;
|
|
@@ -118,13 +115,6 @@
|
|
|
118
115
|
--calcite-combobox-item-spacing-indent-2: 2rem;
|
|
119
116
|
}
|
|
120
117
|
|
|
121
|
-
.calcite--rtl {
|
|
122
|
-
--calcite-combobox-item-indent-start-1: unset;
|
|
123
|
-
--calcite-combobox-item-indent-end-1: var(--calcite-combobox-item-spacing-indent-1);
|
|
124
|
-
--calcite-combobox-item-indent-start-2: unset;
|
|
125
|
-
--calcite-combobox-item-indent-end-2: var(--calcite-combobox-item-spacing-indent-2);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
118
|
:host,
|
|
129
119
|
.list {
|
|
130
120
|
display: flex;
|
|
@@ -145,13 +135,11 @@
|
|
|
145
135
|
}
|
|
146
136
|
|
|
147
137
|
.label--indent-1 {
|
|
148
|
-
padding-
|
|
149
|
-
padding-right: var(--calcite-combobox-item-indent-end-1);
|
|
138
|
+
padding-inline-start: var(--calcite-combobox-item-spacing-indent-1);
|
|
150
139
|
}
|
|
151
140
|
|
|
152
141
|
.label--indent-2 {
|
|
153
|
-
padding-
|
|
154
|
-
padding-right: var(--calcite-combobox-item-indent-end-2);
|
|
142
|
+
padding-inline-start: var(--calcite-combobox-item-spacing-indent-2);
|
|
155
143
|
}
|
|
156
144
|
|
|
157
145
|
.title {
|
package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js
CHANGED
|
@@ -6,8 +6,7 @@ import { Component, Prop, h, Element } from "@stencil/core";
|
|
|
6
6
|
import { CSS } from "./resources";
|
|
7
7
|
import { getAncestors, getDepth } from "../calcite-combobox/utils";
|
|
8
8
|
import { guid } from "../../utils/guid";
|
|
9
|
-
import {
|
|
10
|
-
import { CSS_UTILITY } from "../../utils/resources";
|
|
9
|
+
import { getElementProp } from "../../utils/dom";
|
|
11
10
|
/**
|
|
12
11
|
* @slot - A slot for adding `calcite-combobox-item`s.
|
|
13
12
|
*/
|
|
@@ -32,9 +31,8 @@ export class CalciteComboboxItemGroup {
|
|
|
32
31
|
// --------------------------------------------------------------------------
|
|
33
32
|
render() {
|
|
34
33
|
const { el, scale } = this;
|
|
35
|
-
const dir = getElementDir(el);
|
|
36
34
|
const indent = `${CSS.label}--indent-${getDepth(el)}`;
|
|
37
|
-
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS.list]: true, [
|
|
35
|
+
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS.list]: true, [`scale--${scale}`]: true }, role: "group" },
|
|
38
36
|
h("li", { class: { [CSS.label]: true, [indent]: true }, id: this.guid, role: "presentation" },
|
|
39
37
|
h("span", { class: CSS.title }, this.label)),
|
|
40
38
|
h("slot", null)));
|
|
@@ -53,7 +51,7 @@ export class CalciteComboboxItemGroup {
|
|
|
53
51
|
"mutable": true,
|
|
54
52
|
"complexType": {
|
|
55
53
|
"original": "ComboboxChildElement[]",
|
|
56
|
-
"resolved": "
|
|
54
|
+
"resolved": "any[]",
|
|
57
55
|
"references": {
|
|
58
56
|
"ComboboxChildElement": {
|
|
59
57
|
"location": "import",
|
|
@@ -47,7 +47,11 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
:root {
|
|
50
|
-
--calcite-animation-timing:
|
|
50
|
+
--calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));
|
|
51
|
+
--calcite-internal-duration-factor: var(--calcite-duration-factor, 1);
|
|
52
|
+
--calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));
|
|
53
|
+
--calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));
|
|
54
|
+
--calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
.calcite-animate {
|
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component, h, Prop, Event, Element, Host, State, Watch, Build } from "@stencil/core";
|
|
6
6
|
import { getLocaleData } from "./utils";
|
|
7
|
-
import { getElementDir } from "../../utils/dom";
|
|
8
7
|
import { dateFromRange, dateFromISO, dateToISO, getDaysDiff } from "../../utils/date";
|
|
9
|
-
import { getKey } from "../../utils/key";
|
|
10
8
|
import { HEADING_LEVEL, TEXT } from "./resources";
|
|
11
9
|
export class CalciteDatePicker {
|
|
12
10
|
constructor() {
|
|
@@ -18,6 +16,10 @@ export class CalciteDatePicker {
|
|
|
18
16
|
* @default "Next month"
|
|
19
17
|
*/
|
|
20
18
|
this.intlNextMonth = TEXT.nextMonth;
|
|
19
|
+
/** Localized string for "year" (used for aria label)
|
|
20
|
+
* @default "Year"
|
|
21
|
+
*/
|
|
22
|
+
this.intlYear = TEXT.year;
|
|
21
23
|
/** BCP 47 language tag for desired language and country format */
|
|
22
24
|
this.locale = document.documentElement.lang || "en";
|
|
23
25
|
/** specify the scale of the date picker */
|
|
@@ -32,7 +34,7 @@ export class CalciteDatePicker {
|
|
|
32
34
|
//
|
|
33
35
|
//--------------------------------------------------------------------------
|
|
34
36
|
this.keyUpHandler = (e) => {
|
|
35
|
-
if (
|
|
37
|
+
if (e.key === "Escape") {
|
|
36
38
|
this.reset();
|
|
37
39
|
}
|
|
38
40
|
};
|
|
@@ -222,6 +224,12 @@ export class CalciteDatePicker {
|
|
|
222
224
|
this.activeEndDate = endDate;
|
|
223
225
|
this.activeStartDate = startDate;
|
|
224
226
|
}
|
|
227
|
+
onMinChanged(min) {
|
|
228
|
+
this.minAsDate = dateFromISO(min);
|
|
229
|
+
}
|
|
230
|
+
onMaxChanged(max) {
|
|
231
|
+
this.maxAsDate = dateFromISO(max);
|
|
232
|
+
}
|
|
225
233
|
// --------------------------------------------------------------------------
|
|
226
234
|
//
|
|
227
235
|
// Lifecycle
|
|
@@ -251,6 +259,8 @@ export class CalciteDatePicker {
|
|
|
251
259
|
}
|
|
252
260
|
async componentWillLoad() {
|
|
253
261
|
await this.loadLocaleData();
|
|
262
|
+
this.onMinChanged(this.min);
|
|
263
|
+
this.onMaxChanged(this.max);
|
|
254
264
|
}
|
|
255
265
|
render() {
|
|
256
266
|
var _a;
|
|
@@ -281,8 +291,7 @@ export class CalciteDatePicker {
|
|
|
281
291
|
? endDate || this.maxAsDate
|
|
282
292
|
: this.maxAsDate
|
|
283
293
|
: this.maxAsDate;
|
|
284
|
-
|
|
285
|
-
return (h(Host, { onBlur: this.reset, onKeyUp: this.keyUpHandler, role: "application" }, this.renderCalendar(activeDate, dir, maxDate, minDate, date, endDate)));
|
|
294
|
+
return (h(Host, { onBlur: this.reset, onKeyUp: this.keyUpHandler, role: "application" }, this.renderCalendar(activeDate, maxDate, minDate, date, endDate)));
|
|
286
295
|
}
|
|
287
296
|
valueHandler(value) {
|
|
288
297
|
if (Array.isArray(value)) {
|
|
@@ -312,10 +321,10 @@ export class CalciteDatePicker {
|
|
|
312
321
|
/**
|
|
313
322
|
* Render calcite-date-picker-month-header and calcite-date-picker-month
|
|
314
323
|
*/
|
|
315
|
-
renderCalendar(activeDate,
|
|
324
|
+
renderCalendar(activeDate, maxDate, minDate, date, endDate) {
|
|
316
325
|
return (this.localeData && [
|
|
317
|
-
h("calcite-date-picker-month-header", { activeDate: activeDate,
|
|
318
|
-
h("calcite-date-picker-month", { activeDate: activeDate,
|
|
326
|
+
h("calcite-date-picker-month-header", { activeDate: activeDate, headingLevel: this.headingLevel || HEADING_LEVEL, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerSelect: this.monthHeaderSelectChange, scale: this.scale, selectedDate: this.activeRange === "end" ? endDate : date || new Date() }),
|
|
327
|
+
h("calcite-date-picker-month", { activeDate: activeDate, endDate: this.range ? endDate : undefined, hoverRange: this.hoverRange, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerActiveDateChange: this.monthActiveDateChange, onCalciteDatePickerHover: this.monthHoverChange, onCalciteDatePickerMouseOut: this.monthMouseOutChange, onCalciteDatePickerSelect: this.monthDateChange, scale: this.scale, selectedDate: this.activeRange === "end" ? endDate : date, startDate: this.range ? date : undefined })
|
|
319
328
|
]);
|
|
320
329
|
}
|
|
321
330
|
/**
|
|
@@ -535,7 +544,7 @@ export class CalciteDatePicker {
|
|
|
535
544
|
},
|
|
536
545
|
"min": {
|
|
537
546
|
"type": "string",
|
|
538
|
-
"mutable":
|
|
547
|
+
"mutable": true,
|
|
539
548
|
"complexType": {
|
|
540
549
|
"original": "string",
|
|
541
550
|
"resolved": "string",
|
|
@@ -552,7 +561,7 @@ export class CalciteDatePicker {
|
|
|
552
561
|
},
|
|
553
562
|
"max": {
|
|
554
563
|
"type": "string",
|
|
555
|
-
"mutable":
|
|
564
|
+
"mutable": true,
|
|
556
565
|
"complexType": {
|
|
557
566
|
"original": "string",
|
|
558
567
|
"resolved": "string",
|
|
@@ -609,6 +618,27 @@ export class CalciteDatePicker {
|
|
|
609
618
|
"reflect": false,
|
|
610
619
|
"defaultValue": "TEXT.nextMonth"
|
|
611
620
|
},
|
|
621
|
+
"intlYear": {
|
|
622
|
+
"type": "string",
|
|
623
|
+
"mutable": false,
|
|
624
|
+
"complexType": {
|
|
625
|
+
"original": "string",
|
|
626
|
+
"resolved": "string",
|
|
627
|
+
"references": {}
|
|
628
|
+
},
|
|
629
|
+
"required": false,
|
|
630
|
+
"optional": true,
|
|
631
|
+
"docs": {
|
|
632
|
+
"tags": [{
|
|
633
|
+
"name": "default",
|
|
634
|
+
"text": "\"Year\""
|
|
635
|
+
}],
|
|
636
|
+
"text": "Localized string for \"year\" (used for aria label)"
|
|
637
|
+
},
|
|
638
|
+
"attribute": "intl-year",
|
|
639
|
+
"reflect": false,
|
|
640
|
+
"defaultValue": "TEXT.year"
|
|
641
|
+
},
|
|
612
642
|
"locale": {
|
|
613
643
|
"type": "string",
|
|
614
644
|
"mutable": false,
|
|
@@ -782,6 +812,12 @@ export class CalciteDatePicker {
|
|
|
782
812
|
}, {
|
|
783
813
|
"propName": "endAsDate",
|
|
784
814
|
"methodName": "handleRangeChange"
|
|
815
|
+
}, {
|
|
816
|
+
"propName": "min",
|
|
817
|
+
"methodName": "onMinChanged"
|
|
818
|
+
}, {
|
|
819
|
+
"propName": "max",
|
|
820
|
+
"methodName": "onMaxChanged"
|
|
785
821
|
}, {
|
|
786
822
|
"propName": "value",
|
|
787
823
|
"methodName": "valueHandler"
|
|
@@ -47,7 +47,11 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
:root {
|
|
50
|
-
--calcite-animation-timing:
|
|
50
|
+
--calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));
|
|
51
|
+
--calcite-internal-duration-factor: var(--calcite-duration-factor, 1);
|
|
52
|
+
--calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));
|
|
53
|
+
--calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));
|
|
54
|
+
--calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
.calcite-animate {
|
|
@@ -209,10 +213,18 @@
|
|
|
209
213
|
background-color: var(--calcite-ui-foreground-current);
|
|
210
214
|
}
|
|
211
215
|
|
|
216
|
+
:host([start-of-range]) .day-wrapper {
|
|
217
|
+
border-start-start-radius: 40%;
|
|
218
|
+
border-end-start-radius: 40%;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:host([end-of-range]) .day-wrapper {
|
|
222
|
+
border-start-end-radius: 40%;
|
|
223
|
+
border-end-end-radius: 40%;
|
|
224
|
+
}
|
|
225
|
+
|
|
212
226
|
:host([start-of-range]) :not(.calcite--rtl) .day-wrapper,
|
|
213
227
|
:host([end-of-range]) .calcite--rtl .day-wrapper {
|
|
214
|
-
border-top-left-radius: 40%;
|
|
215
|
-
border-bottom-left-radius: 40%;
|
|
216
228
|
box-shadow: inset 4px 0 var(--calcite-ui-foreground-1);
|
|
217
229
|
}
|
|
218
230
|
|
|
@@ -228,8 +240,6 @@
|
|
|
228
240
|
|
|
229
241
|
:host([end-of-range]) :not(.calcite--rtl) .day-wrapper,
|
|
230
242
|
:host([start-of-range]) .calcite--rtl .day-wrapper {
|
|
231
|
-
border-top-right-radius: 40%;
|
|
232
|
-
border-bottom-right-radius: 40%;
|
|
233
243
|
box-shadow: inset -4px 0 var(--calcite-ui-foreground-1);
|
|
234
244
|
}
|
|
235
245
|
|
|
@@ -364,8 +374,6 @@
|
|
|
364
374
|
:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,
|
|
365
375
|
:host([highlighted]:first-child) .calcite--rtl .day-wrapper,
|
|
366
376
|
:host([range-hover]:first-child) .calcite--rtl .day-wrapper {
|
|
367
|
-
border-top-right-radius: 45%;
|
|
368
|
-
border-bottom-right-radius: 45%;
|
|
369
377
|
box-shadow: inset -4px 0px 0px 0px var(--calcite-ui-foreground-1);
|
|
370
378
|
}
|
|
371
379
|
|
|
@@ -373,8 +381,6 @@
|
|
|
373
381
|
:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,
|
|
374
382
|
:host([highlighted]:last-child) .calcite--rtl .day-wrapper,
|
|
375
383
|
:host([range-hover]:last-child) .calcite--rtl .day-wrapper {
|
|
376
|
-
border-top-left-radius: 45%;
|
|
377
|
-
border-bottom-left-radius: 45%;
|
|
378
384
|
box-shadow: inset 4px 0px 0px 0px var(--calcite-ui-foreground-1);
|
|
379
385
|
}
|
|
380
386
|
|
|
@@ -399,6 +405,18 @@
|
|
|
399
405
|
box-shadow: inset 6px 0px 0px 0px var(--calcite-ui-foreground-1);
|
|
400
406
|
}
|
|
401
407
|
|
|
408
|
+
:host([highlighted]:first-child) .day-wrapper,
|
|
409
|
+
:host([range-hover]:first-child) .day-wrapper {
|
|
410
|
+
border-start-start-radius: 45%;
|
|
411
|
+
border-end-start-radius: 45%;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
:host([highlighted]:last-child) .day-wrapper,
|
|
415
|
+
:host([range-hover]:last-child) .day-wrapper {
|
|
416
|
+
border-start-end-radius: 45%;
|
|
417
|
+
border-end-end-radius: 45%;
|
|
418
|
+
}
|
|
419
|
+
|
|
402
420
|
:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,
|
|
403
421
|
:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,
|
|
404
422
|
:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,
|