@esri/calcite-components 1.0.0-beta.84 → 1.0.0-beta.85
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.css +1 -1
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-1db25c99.system.entry.js → p-01bc4f23.system.entry.js} +2 -2
- package/dist/calcite/{p-82e24e64.system.js → p-0212da73.system.js} +1 -1
- package/dist/calcite/{p-8ae680a2.system.entry.js → p-0223a366.system.entry.js} +2 -2
- package/dist/calcite/{p-6a554714.entry.js → p-03ab89b3.entry.js} +2 -2
- package/dist/calcite/{p-dd5185d6.entry.js → p-03d40265.entry.js} +2 -2
- package/dist/calcite/{p-5d7f4169.js → p-03ef196e.js} +1 -1
- package/dist/calcite/{p-6a8f1936.system.js → p-072ba3d4.system.js} +2 -2
- package/dist/calcite/{p-a92ac42d.system.js → p-07d77019.system.js} +1 -1
- package/dist/calcite/{p-49488c34.entry.js → p-07fc31c0.entry.js} +2 -2
- package/dist/calcite/{p-ca1b7a2e.js → p-0913167b.js} +1 -1
- package/dist/calcite/{p-438d87b0.entry.js → p-0c5db9b8.entry.js} +2 -2
- package/dist/calcite/{p-f2384caf.entry.js → p-0e40d02c.entry.js} +2 -2
- package/dist/calcite/{p-ee60b60f.system.entry.js → p-0f792340.system.entry.js} +2 -2
- package/dist/calcite/p-1027d814.js +6 -0
- package/dist/calcite/{p-34e0b58b.js → p-119aebca.js} +2 -2
- package/dist/calcite/{p-7ede3d65.system.entry.js → p-1221c17a.system.entry.js} +2 -2
- package/dist/calcite/{p-7ec42769.js → p-149936bc.js} +1 -1
- package/dist/calcite/{p-25349c89.system.entry.js → p-167a2db7.system.entry.js} +2 -2
- package/dist/calcite/{p-7c7ad2d6.entry.js → p-16e47db7.entry.js} +2 -2
- package/dist/calcite/{p-6d1c91ee.entry.js → p-170967b2.entry.js} +2 -2
- package/dist/calcite/{p-14a22bfc.system.entry.js → p-181ee6d9.system.entry.js} +2 -2
- package/dist/calcite/{p-fb97a373.system.entry.js → p-1c5b17ca.system.entry.js} +2 -2
- package/dist/calcite/{p-fdc7032c.system.js → p-1c5c525b.system.js} +1 -1
- package/dist/calcite/{p-39bb68b3.system.js → p-1cea5244.system.js} +2 -2
- package/dist/calcite/{p-c2ed5f67.js → p-1e18dd8f.js} +1 -1
- package/dist/calcite/{p-fc6a158c.system.entry.js → p-1fd12e92.system.entry.js} +2 -2
- package/dist/calcite/{p-ce34288b.entry.js → p-202aa07d.entry.js} +2 -2
- package/dist/calcite/{p-f14e0497.system.entry.js → p-2070ab78.system.entry.js} +2 -2
- package/dist/calcite/{p-fbbfde67.system.js → p-20ccf33e.system.js} +2 -2
- package/dist/calcite/{p-f8cb1eeb.js → p-222220eb.js} +1 -1
- package/dist/calcite/{p-bbd8269c.js → p-2346e8b5.js} +1 -1
- package/dist/calcite/{p-51491e10.system.js → p-243cd9e3.system.js} +1 -1
- package/dist/calcite/{p-b48feb98.system.entry.js → p-24eaf308.system.entry.js} +2 -2
- package/dist/calcite/{p-f6760679.js → p-27434c28.js} +2 -2
- package/dist/calcite/p-27aa7d0a.entry.js +6 -0
- package/dist/calcite/p-2882a864.js +6 -0
- package/dist/calcite/{p-4d9c7cc9.system.js → p-2b0bc91f.system.js} +1 -1
- package/dist/calcite/{p-98a2aa34.entry.js → p-2b38a81c.entry.js} +2 -2
- package/dist/calcite/{p-0bfe5ca7.entry.js → p-2d888e2f.entry.js} +2 -2
- package/dist/calcite/{p-67a0e692.system.entry.js → p-2d906cf6.system.entry.js} +2 -2
- package/dist/calcite/{p-c9d73fce.system.entry.js → p-2ff5a1cc.system.entry.js} +2 -2
- package/dist/calcite/{p-fca56e68.system.entry.js → p-311ddd75.system.entry.js} +2 -2
- package/dist/calcite/{p-5bd80046.entry.js → p-315644dd.entry.js} +2 -2
- package/dist/calcite/{p-e956598c.system.entry.js → p-329709c2.system.entry.js} +2 -2
- package/dist/calcite/{p-74153f82.js → p-338228cd.js} +2 -2
- package/dist/calcite/{p-b3a4497d.entry.js → p-3510aea1.entry.js} +2 -2
- package/dist/calcite/{p-891e53dd.system.entry.js → p-35133da2.system.entry.js} +2 -2
- package/dist/calcite/{p-aaba2ea0.system.js → p-37e5be23.system.js} +1 -1
- package/dist/calcite/{p-549e267e.system.js → p-398535e1.system.js} +1 -1
- package/dist/calcite/{p-bc5a7fee.system.entry.js → p-3ab2d1ea.system.entry.js} +2 -2
- package/dist/calcite/{p-3d2eebab.system.entry.js → p-3b70be07.system.entry.js} +2 -2
- package/dist/calcite/{p-e69d3ca4.system.js → p-3c31971c.system.js} +1 -1
- package/dist/calcite/{p-4196e498.system.js → p-3ebbb37d.system.js} +2 -2
- package/dist/calcite/{p-4eb531c4.js → p-420a3057.js} +1 -1
- package/dist/calcite/{p-9c4aa033.entry.js → p-43aac0ac.entry.js} +2 -2
- package/dist/calcite/{p-4f1dbd36.system.entry.js → p-464affb7.system.entry.js} +2 -2
- package/dist/calcite/{p-fb0e5ae3.js → p-46696d61.js} +1 -1
- package/dist/calcite/{p-d6d814a6.system.js → p-467704c7.system.js} +1 -1
- package/dist/calcite/{p-236f1255.system.entry.js → p-47fced58.system.entry.js} +2 -2
- package/dist/calcite/{p-890cc5a8.system.entry.js → p-48f4e304.system.entry.js} +2 -2
- package/dist/calcite/{p-2ce10f9a.system.js → p-49ac0f0d.system.js} +1 -1
- package/dist/calcite/{p-ec8d9088.system.entry.js → p-4b72075a.system.entry.js} +2 -2
- package/dist/calcite/{p-9d158b37.system.js → p-4e9df5b8.system.js} +2 -2
- package/dist/calcite/{p-4908e3a5.system.js → p-51534de9.system.js} +1 -1
- package/dist/calcite/{p-dd1e12e4.system.entry.js → p-51f5e06e.system.entry.js} +3 -3
- package/dist/calcite/{p-41cbf505.system.entry.js → p-522b5e9b.system.entry.js} +2 -2
- package/dist/calcite/p-529c79b7.js +6 -0
- package/dist/calcite/{p-974b7008.system.entry.js → p-53f28012.system.entry.js} +2 -2
- package/dist/calcite/{p-cc041a12.system.js → p-584b85e0.system.js} +1 -1
- package/dist/calcite/{p-8133b2a5.entry.js → p-5a45c95e.entry.js} +2 -2
- package/dist/calcite/{p-aa9ce421.js → p-5d0e2da6.js} +1 -1
- package/dist/calcite/{p-a89fc6a1.system.entry.js → p-5e5cafb5.system.entry.js} +2 -2
- package/dist/calcite/{p-a0971f99.entry.js → p-5f2a1aeb.entry.js} +2 -2
- package/dist/calcite/p-5fc629fa.entry.js +6 -0
- package/dist/calcite/{p-99551007.system.entry.js → p-618bd95d.system.entry.js} +3 -3
- package/dist/calcite/p-6574a052.system.js +6 -0
- package/dist/calcite/{p-13d66ebf.entry.js → p-6b2b5764.entry.js} +2 -2
- package/dist/calcite/{p-114d44c3.entry.js → p-6da35717.entry.js} +2 -2
- package/dist/calcite/{p-1adea169.system.entry.js → p-6f11a56f.system.entry.js} +2 -2
- package/dist/calcite/{p-eccc820a.entry.js → p-70d26d8a.entry.js} +2 -2
- package/dist/calcite/{p-bce5ab4f.system.entry.js → p-729af11a.system.entry.js} +3 -3
- package/dist/calcite/{p-2e3ffd32.system.js → p-736cba68.system.js} +2 -2
- package/dist/calcite/{p-26757de8.entry.js → p-776fdea5.entry.js} +2 -2
- package/dist/calcite/{p-00247a8d.system.js → p-781a286e.system.js} +1 -1
- package/dist/calcite/p-791b3dac.entry.js +6 -0
- package/dist/calcite/{p-14f0920e.system.entry.js → p-79ac98fc.system.entry.js} +2 -2
- package/dist/calcite/{p-6e366971.system.entry.js → p-7c60287e.system.entry.js} +2 -2
- package/dist/calcite/p-7d570799.system.js +6 -0
- package/dist/calcite/{p-b31d3dad.system.entry.js → p-80d78601.system.entry.js} +2 -2
- package/dist/calcite/{p-df26aab6.js → p-850bd83f.js} +1 -1
- package/dist/calcite/{p-8c25b934.entry.js → p-86e69716.entry.js} +2 -2
- package/dist/calcite/{p-e45d0fed.system.js → p-872dd7ba.system.js} +1 -1
- package/dist/calcite/{p-24d52a72.entry.js → p-87f22854.entry.js} +2 -2
- package/dist/calcite/{p-ce28c259.js → p-887d734a.js} +2 -2
- package/dist/calcite/{p-6cff0a2a.entry.js → p-88c828b4.entry.js} +2 -2
- package/dist/calcite/{p-e9c9fb33.system.entry.js → p-8919c0b9.system.entry.js} +2 -2
- package/dist/calcite/{p-ce654c2c.system.entry.js → p-89967a2b.system.entry.js} +2 -2
- package/dist/calcite/{p-4b414b81.entry.js → p-8a0b728e.entry.js} +2 -2
- package/dist/calcite/{p-9f13e930.entry.js → p-8b11b14e.entry.js} +2 -2
- package/dist/calcite/{p-ebeb09f0.system.entry.js → p-8c0d62c7.system.entry.js} +2 -2
- package/dist/calcite/{p-d96573eb.system.entry.js → p-8e404843.system.entry.js} +2 -2
- package/dist/calcite/{p-e78d93ed.entry.js → p-90e91f3f.entry.js} +2 -2
- package/dist/calcite/p-9126f152.system.js +6 -0
- package/dist/calcite/{p-88d2d38a.entry.js → p-92b62b73.entry.js} +2 -2
- package/dist/calcite/{p-7168da40.entry.js → p-9440f9a1.entry.js} +2 -2
- package/dist/calcite/{p-3aefc333.entry.js → p-9487de4e.entry.js} +2 -2
- package/dist/calcite/{p-20d610fc.entry.js → p-95126dbe.entry.js} +2 -2
- package/dist/calcite/{p-f8695531.entry.js → p-9fc3c426.entry.js} +2 -2
- package/dist/calcite/{p-e7b4e5b8.system.entry.js → p-a0a60580.system.entry.js} +2 -2
- package/dist/calcite/{p-a1208386.entry.js → p-a1405997.entry.js} +2 -2
- package/dist/calcite/{p-6eadd519.entry.js → p-a22911bb.entry.js} +2 -2
- package/dist/calcite/p-a2fc3c01.system.entry.js +6 -0
- package/dist/calcite/{p-a1cc6421.entry.js → p-a34e342b.entry.js} +2 -2
- package/dist/calcite/{p-bb1711f3.js → p-a6e2dce3.js} +1 -1
- package/dist/calcite/{p-061aea88.entry.js → p-a8a2f8d8.entry.js} +2 -2
- package/dist/calcite/{p-8202ad8a.system.entry.js → p-abe6d548.system.entry.js} +2 -2
- package/dist/calcite/{p-d05f35e8.system.js → p-ac2ec96b.system.js} +2 -2
- package/dist/calcite/{p-dca64e20.js → p-ac5555ee.js} +2 -2
- package/dist/calcite/{p-e6578cf2.system.entry.js → p-ad663d3e.system.entry.js} +2 -2
- package/dist/calcite/{p-b2f27af5.entry.js → p-ade94686.entry.js} +2 -2
- package/dist/calcite/{p-2b531882.entry.js → p-af8c886d.entry.js} +2 -2
- package/dist/calcite/{p-74b7ff1f.entry.js → p-b0f41839.entry.js} +2 -2
- package/dist/calcite/{p-70e1d287.system.entry.js → p-b15645e3.system.entry.js} +2 -2
- package/dist/calcite/{p-dd5e585b.entry.js → p-b1c2d29e.entry.js} +2 -2
- package/dist/calcite/{p-8137bc05.entry.js → p-b765d1ce.entry.js} +2 -2
- package/dist/calcite/{p-ccf1e5d8.entry.js → p-b8ce9f3e.entry.js} +2 -2
- package/dist/calcite/{p-e2ccf473.entry.js → p-b95af5f3.entry.js} +2 -2
- package/dist/calcite/{p-9c5c3cb3.system.entry.js → p-bb6b70d0.system.entry.js} +2 -2
- package/dist/calcite/{p-3d8ab9d5.entry.js → p-bc80710e.entry.js} +2 -2
- package/dist/calcite/{p-77bc0e49.entry.js → p-bcde536d.entry.js} +2 -2
- package/dist/calcite/{p-82dec536.system.entry.js → p-c03ca50d.system.entry.js} +2 -2
- package/dist/calcite/{p-30256458.entry.js → p-c0612433.entry.js} +2 -2
- package/dist/calcite/p-c0c270bf.entry.js +6 -0
- package/dist/calcite/{p-16dbdef2.system.entry.js → p-c1131334.system.entry.js} +2 -2
- package/dist/calcite/{p-9e8d6e02.js → p-c2f04b4a.js} +2 -2
- package/dist/calcite/{p-204443b0.system.entry.js → p-c6995296.system.entry.js} +2 -2
- package/dist/calcite/{p-ebb71e37.system.entry.js → p-c711143b.system.entry.js} +2 -2
- package/dist/calcite/p-c9ee2385.entry.js +6 -0
- package/dist/calcite/{p-16888553.system.entry.js → p-cac75100.system.entry.js} +2 -2
- package/dist/calcite/p-cb2a162f.system.entry.js +6 -0
- package/dist/calcite/{p-90608473.entry.js → p-cbe9b8f3.entry.js} +2 -2
- package/dist/calcite/{p-e5381e40.system.entry.js → p-ce7d3daf.system.entry.js} +2 -2
- package/dist/calcite/p-d00a839f.system.entry.js +6 -0
- package/dist/calcite/{p-594f52ca.system.entry.js → p-d0f6c70f.system.entry.js} +2 -2
- package/dist/calcite/{p-1157ae2f.js → p-d15c1632.js} +1 -1
- package/dist/calcite/{p-98dfd14b.system.entry.js → p-d37ad67f.system.entry.js} +2 -2
- package/dist/calcite/{p-278c8372.entry.js → p-d49fdd77.entry.js} +2 -2
- package/dist/calcite/{p-45588eee.system.entry.js → p-d54960f3.system.entry.js} +2 -2
- package/dist/calcite/{p-ecd12a92.js → p-d67695ec.js} +1 -1
- package/dist/calcite/{p-e345449f.entry.js → p-de06d5a7.entry.js} +2 -2
- package/dist/calcite/p-e2788410.system.entry.js +6 -0
- package/dist/calcite/{p-02bb8194.entry.js → p-e2da9506.entry.js} +2 -2
- package/dist/calcite/{p-51ffb552.system.entry.js → p-e647dac1.system.entry.js} +2 -2
- package/dist/calcite/{p-9eaf38bc.js → p-e701122c.js} +2 -2
- package/dist/calcite/{p-a6e1e1e4.entry.js → p-ea95a1bc.entry.js} +2 -2
- package/dist/calcite/{p-6309de22.entry.js → p-eacbae9a.entry.js} +2 -2
- package/dist/calcite/{p-4f9ce175.js → p-ecdd5df4.js} +2 -2
- package/dist/calcite/{p-7cc3d924.system.entry.js → p-ed126b82.system.entry.js} +3 -3
- package/dist/calcite/p-ed372fd5.entry.js +6 -0
- package/dist/calcite/p-ee53e973.system.js +6 -0
- package/dist/calcite/{p-57b60838.entry.js → p-f1134ced.entry.js} +2 -2
- package/dist/calcite/p-f411ee83.entry.js +6 -0
- package/dist/calcite/{p-07c6e102.system.js → p-f4d89bbe.system.js} +2 -2
- package/dist/calcite/p-f80c1436.system.entry.js +6 -0
- package/dist/calcite/{p-352b94a1.system.entry.js → p-fb6c3b22.system.entry.js} +2 -2
- package/dist/calcite/p-fe273bab.system.entry.js +6 -0
- package/dist/cjs/{ExpandToggle-894fe6d0.js → ExpandToggle-cc8723f3.js} +5 -5
- package/dist/cjs/{Heading-9546b15c.js → Heading-5e52526c.js} +2 -2
- package/dist/cjs/{array-1c85be7d.js → array-57bcaf76.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action.cjs.entry.js +6 -6
- package/dist/cjs/calcite-alert.cjs.entry.js +5 -5
- package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-card.cjs.entry.js +6 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip.cjs.entry.js +6 -6
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +9 -9
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
- package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-handle.cjs.entry.js +4 -4
- package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +37 -21
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-number.cjs.entry.js +531 -0
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +27 -16
- package/dist/cjs/calcite-input.cjs.entry.js +11 -11
- package/dist/cjs/calcite-label.cjs.entry.js +5 -5
- package/dist/cjs/calcite-link.cjs.entry.js +5 -5
- package/dist/cjs/calcite-list_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
- package/dist/cjs/calcite-option_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-pagination.cjs.entry.js +5 -5
- package/dist/cjs/calcite-panel.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-popover_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +87 -22
- package/dist/cjs/calcite.cjs.js +4 -4
- package/dist/cjs/{conditionalSlot-ecb74d9a.js → conditionalSlot-e2c3d357.js} +3 -3
- package/dist/cjs/{debounce-a74a2080.js → debounce-e9a51e04.js} +1 -1
- package/dist/cjs/{dom-69c7e941.js → dom-1b4e0097.js} +2 -2
- package/dist/cjs/{forIn-efe39801.js → forIn-6f2f1821.js} +2 -2
- package/dist/cjs/{form-901b31de.js → form-09b0739e.js} +3 -3
- package/dist/cjs/{guid-263ed05b.js → guid-f166e155.js} +1 -1
- package/dist/cjs/{index-8fbe74dd.js → index-341e1ec4.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-b2df5d51.js → interactive-97aea507.js} +1 -1
- package/dist/cjs/{interfaces-a8a9ed80.js → interfaces-327e49ac.js} +1 -1
- package/dist/cjs/{key-0fe936c7.js → key-7a6d198d.js} +1 -1
- package/dist/cjs/{label-f1317d82.js → label-1b7bed3e.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-0becaa93.js → locale-075bf13d.js} +2 -2
- package/dist/cjs/{math-0877dd01.js → math-da40a7f2.js} +1 -1
- package/dist/cjs/{observers-8169781c.js → observers-dea97623.js} +1 -1
- package/dist/cjs/{popper-46476990.js → popper-ec16ae25.js} +2 -2
- package/dist/cjs/{resources-93a62cd3.js → resources-38083f60.js} +1 -1
- package/dist/cjs/{resources-80d6cd05.js → resources-7f821e18.js} +1 -1
- package/dist/cjs/{resources-192c00c3.js → resources-8e6a4847.js} +12 -6
- package/dist/cjs/{resources-6ac223e5.js → resources-f35c4b41.js} +3 -3
- package/dist/cjs/{sortable.esm-b7091c1d.js → sortable.esm-1d891a3c.js} +1 -1
- package/dist/cjs/{utils-b1d11545.js → utils-c2ab1f6b.js} +1 -1
- package/dist/collection/collection-manifest.json +7 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.css +1 -0
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.css +1 -0
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/interfaces.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/interfaces.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/interfaces.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/interfaces.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- package/dist/collection/components/combobox/interfaces.js +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/interfaces.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/interfaces.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/interfaces.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/interfaces.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/interfaces.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/interfaces.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +46 -11
- package/dist/collection/components/input-date-picker/resources.js +9 -0
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.css +509 -0
- package/dist/collection/components/input-number/input-number.js +1251 -0
- package/dist/collection/components/input-number/interfaces.js +5 -0
- package/dist/collection/components/input-number/resources.js +27 -0
- package/dist/collection/components/input-time-picker/input-time-picker.js +43 -9
- package/dist/collection/components/interfaces.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/interfaces.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +5 -1
- package/dist/collection/components/pick-list/shared-list-render.js +3 -2
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-group/interfaces.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/rating/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/interfaces.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/interfaces.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/interfaces.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/interfaces.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/interfaces.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/interfaces.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/interfaces.js +6 -0
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +49 -0
- package/dist/collection/components/value-list/value-list.js +101 -11
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +3 -3
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/popper.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +3 -3
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +2 -2
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +2 -2
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +2 -2
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +3 -3
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +2 -2
- package/dist/components/calcite-input-date-picker.js +33 -16
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.d.ts +11 -0
- package/dist/components/calcite-input-number.js +592 -0
- package/dist/components/calcite-input-time-picker.js +21 -9
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +2 -2
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +2 -2
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +2 -2
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +2 -2
- package/dist/components/calcite-rating.js +2 -2
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +2 -2
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +3 -3
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +2 -2
- package/dist/components/calcite-tree-item.js +2 -2
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +3 -3
- package/dist/components/calcite-value-list.js +81 -12
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +2 -2
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +2 -2
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +2 -2
- package/dist/components/dropdown.js +2 -2
- package/dist/components/filter.js +1 -1
- package/dist/components/forIn.js +1 -1
- package/dist/components/form.js +2 -2
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.d.ts +5 -90
- package/dist/components/index.js +1 -91
- package/dist/components/input.js +2 -2
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +112 -87
- package/dist/components/label2.js +87 -112
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +2 -2
- package/dist/components/popper.js +2 -2
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +8 -3
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +2 -2
- package/dist/components/tab-nav.js +2 -2
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +1019 -408
- package/dist/esm/{ExpandToggle-baf2c551.js → ExpandToggle-d1d9e1ba.js} +5 -5
- package/dist/esm/{Heading-1183c4d7.js → Heading-383fa71b.js} +2 -2
- package/dist/esm/{array-d7b2d2da.js → array-d410a39a.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +4 -4
- package/dist/esm/calcite-action-bar.entry.js +11 -11
- package/dist/esm/calcite-action-group.entry.js +8 -8
- package/dist/esm/calcite-action-menu.entry.js +8 -8
- package/dist/esm/calcite-action-pad.entry.js +10 -10
- package/dist/esm/calcite-action.entry.js +6 -6
- package/dist/esm/calcite-alert.entry.js +5 -5
- package/dist/esm/calcite-avatar.entry.js +5 -5
- package/dist/esm/calcite-block_2.entry.js +8 -8
- package/dist/esm/calcite-button.entry.js +8 -8
- package/dist/esm/calcite-card.entry.js +6 -6
- package/dist/esm/calcite-checkbox.entry.js +7 -7
- package/dist/esm/calcite-chip.entry.js +6 -6
- package/dist/esm/calcite-color-picker_3.entry.js +8 -8
- package/dist/esm/calcite-combobox_3.entry.js +12 -12
- package/dist/esm/calcite-date-picker_4.entry.js +9 -9
- package/dist/esm/calcite-dropdown_3.entry.js +7 -7
- package/dist/esm/calcite-fab.entry.js +5 -5
- package/dist/esm/calcite-filter.entry.js +7 -7
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +9 -9
- package/dist/esm/calcite-handle.entry.js +4 -4
- package/dist/esm/calcite-icon.entry.js +5 -5
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-date-picker.entry.js +39 -23
- package/dist/esm/calcite-input-message.entry.js +4 -4
- package/dist/esm/calcite-input-number.entry.js +527 -0
- package/dist/esm/calcite-input-time-picker_2.entry.js +27 -16
- package/dist/esm/calcite-input.entry.js +11 -11
- package/dist/esm/calcite-label.entry.js +5 -5
- package/dist/esm/calcite-link.entry.js +5 -5
- package/dist/esm/calcite-list_3.entry.js +8 -8
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +7 -7
- package/dist/esm/calcite-option_3.entry.js +8 -8
- package/dist/esm/calcite-pagination.entry.js +5 -5
- package/dist/esm/calcite-panel.entry.js +9 -9
- package/dist/esm/calcite-pick-list_3.entry.js +11 -11
- package/dist/esm/calcite-popover_2.entry.js +7 -7
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +8 -8
- package/dist/esm/calcite-radio-group_2.entry.js +7 -7
- package/dist/esm/calcite-rating.entry.js +8 -8
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +7 -7
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +5 -5
- package/dist/esm/calcite-switch.entry.js +7 -7
- package/dist/esm/calcite-tab_4.entry.js +6 -6
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-tip_3.entry.js +7 -7
- package/dist/esm/calcite-tooltip_2.entry.js +5 -5
- package/dist/esm/calcite-tree_2.entry.js +6 -6
- package/dist/esm/calcite-value-list_2.entry.js +87 -22
- package/dist/esm/calcite.js +4 -4
- package/dist/esm/{conditionalSlot-91141c10.js → conditionalSlot-ed64bd11.js} +3 -3
- package/dist/esm/{debounce-8620d992.js → debounce-8d38ec02.js} +1 -1
- package/dist/esm/{dom-0e5130f0.js → dom-56e9893d.js} +2 -2
- package/dist/esm/{forIn-908ce382.js → forIn-ef92de72.js} +2 -2
- package/dist/esm/{form-44145a77.js → form-47a9f6d7.js} +3 -3
- package/dist/esm/{guid-035850cf.js → guid-aa647a83.js} +1 -1
- package/dist/esm/{index-7daa7f57.js → index-b91be572.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-26697f71.js → interactive-44c800e7.js} +1 -1
- package/dist/esm/{interfaces-666dcdb6.js → interfaces-b0afabf7.js} +1 -1
- package/dist/esm/{key-5106532f.js → key-fc19c8e8.js} +1 -1
- package/dist/esm/{label-e58bd849.js → label-e9cd6c74.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{locale-bd54ff3b.js → locale-178bfaed.js} +2 -2
- package/dist/esm/{math-28a370c3.js → math-c93b8397.js} +1 -1
- package/dist/esm/{observers-5cd6c82a.js → observers-5d3efdea.js} +1 -1
- package/dist/esm/{popper-1df5bd76.js → popper-e4716ebb.js} +2 -2
- package/dist/esm/{resources-3498bd44.js → resources-0f20a53d.js} +3 -3
- package/dist/esm/{resources-b9270cdb.js → resources-3cebaf37.js} +1 -1
- package/dist/esm/{resources-d196b6c1.js → resources-5182df75.js} +12 -7
- package/dist/esm/{resources-daaebdea.js → resources-fca4a472.js} +1 -1
- package/dist/esm/{sortable.esm-ef18907c.js → sortable.esm-79d8d5b2.js} +1 -1
- package/dist/esm/{utils-cf3669f8.js → utils-24933089.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-baf2c551.js → ExpandToggle-d1d9e1ba.js} +2 -2
- package/dist/esm-es5/Heading-383fa71b.js +6 -0
- package/dist/esm-es5/{array-d7b2d2da.js → array-d410a39a.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +2 -2
- package/dist/esm-es5/calcite-avatar.entry.js +2 -2
- package/dist/esm-es5/calcite-block_2.entry.js +2 -2
- package/dist/esm-es5/calcite-button.entry.js +2 -2
- package/dist/esm-es5/calcite-card.entry.js +2 -2
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
- package/dist/esm-es5/calcite-input-message.entry.js +2 -2
- package/dist/esm-es5/calcite-input-number.entry.js +6 -0
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
- package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
- package/dist/esm-es5/calcite-split-button.entry.js +2 -2
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +2 -2
- package/dist/esm-es5/calcite-tip_3.entry.js +3 -3
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
- package/dist/esm-es5/calcite-value-list_2.entry.js +3 -3
- package/dist/esm-es5/calcite.js +2 -2
- package/dist/esm-es5/{conditionalSlot-91141c10.js → conditionalSlot-ed64bd11.js} +2 -2
- package/dist/esm-es5/{debounce-8620d992.js → debounce-8d38ec02.js} +1 -1
- package/dist/esm-es5/{dom-0e5130f0.js → dom-56e9893d.js} +2 -2
- package/dist/esm-es5/{forIn-908ce382.js → forIn-ef92de72.js} +2 -2
- package/dist/esm-es5/{form-44145a77.js → form-47a9f6d7.js} +2 -2
- package/dist/esm-es5/{guid-035850cf.js → guid-aa647a83.js} +1 -1
- package/dist/esm-es5/{index-7daa7f57.js → index-b91be572.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-26697f71.js → interactive-44c800e7.js} +1 -1
- package/dist/esm-es5/{interfaces-666dcdb6.js → interfaces-b0afabf7.js} +1 -1
- package/dist/esm-es5/{key-5106532f.js → key-fc19c8e8.js} +1 -1
- package/dist/esm-es5/{label-e58bd849.js → label-e9cd6c74.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-bd54ff3b.js → locale-178bfaed.js} +2 -2
- package/dist/esm-es5/{math-28a370c3.js → math-c93b8397.js} +1 -1
- package/dist/esm-es5/{observers-5cd6c82a.js → observers-5d3efdea.js} +1 -1
- package/dist/esm-es5/{popper-1df5bd76.js → popper-e4716ebb.js} +2 -2
- package/dist/esm-es5/{resources-3498bd44.js → resources-0f20a53d.js} +2 -2
- package/dist/esm-es5/{resources-b9270cdb.js → resources-3cebaf37.js} +1 -1
- package/dist/esm-es5/resources-5182df75.js +6 -0
- package/dist/esm-es5/{resources-daaebdea.js → resources-fca4a472.js} +1 -1
- package/dist/esm-es5/{sortable.esm-ef18907c.js → sortable.esm-79d8d5b2.js} +1 -1
- package/dist/esm-es5/{utils-cf3669f8.js → utils-24933089.js} +1 -1
- package/dist/extras/docs-json.json +824 -44
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +7 -1
- package/dist/types/components/input-date-picker/resources.d.ts +4 -0
- package/dist/types/components/input-number/input-number.d.ts +216 -0
- package/dist/types/components/input-number/interfaces.d.ts +1 -0
- package/dist/types/components/input-number/resources.d.ts +22 -0
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +7 -1
- package/dist/types/components/pick-list/shared-list-logic.d.ts +1 -0
- package/dist/types/components/pick-list/shared-list-render.d.ts +2 -0
- package/dist/types/components/value-list/interfaces.d.ts +1 -0
- package/dist/types/components/value-list/utils.d.ts +8 -0
- package/dist/types/components/value-list/value-list.d.ts +30 -0
- package/dist/types/components.d.ts +349 -0
- package/dist/types/preact.d.ts +7 -0
- package/hydrate/index.js +948 -423
- package/package.json +2 -2
- package/readme.md +2 -2
- package/dist/calcite/p-1363adcd.entry.js +0 -6
- package/dist/calcite/p-21a1034c.entry.js +0 -6
- package/dist/calcite/p-282106cb.system.js +0 -6
- package/dist/calcite/p-2bf5b9b6.js +0 -6
- package/dist/calcite/p-4185af29.entry.js +0 -6
- package/dist/calcite/p-448b3393.system.entry.js +0 -6
- package/dist/calcite/p-4cfef590.system.js +0 -6
- package/dist/calcite/p-56f93049.js +0 -6
- package/dist/calcite/p-6d96d61f.system.js +0 -6
- package/dist/calcite/p-8018d689.system.entry.js +0 -6
- package/dist/calcite/p-8c9e453c.js +0 -6
- package/dist/calcite/p-9c80707e.system.js +0 -6
- package/dist/calcite/p-c78d1678.system.entry.js +0 -6
- package/dist/calcite/p-d48cc6d2.entry.js +0 -6
- package/dist/calcite/p-d4f596f2.entry.js +0 -6
- package/dist/calcite/p-eceb3f95.system.entry.js +0 -6
- package/dist/calcite/p-f07627e7.system.entry.js +0 -6
- package/dist/calcite/p-f537a6a5.entry.js +0 -6
- package/dist/esm-es5/Heading-1183c4d7.js +0 -6
- package/dist/esm-es5/resources-d196b6c1.js +0 -6
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
+
* v1.0.0-beta.85
|
|
5
|
+
*/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
const index = require('./index-341e1ec4.js');
|
|
11
|
+
const dom = require('./dom-1b4e0097.js');
|
|
12
|
+
const label = require('./label-1b7bed3e.js');
|
|
13
|
+
const form = require('./form-09b0739e.js');
|
|
14
|
+
const locale = require('./locale-075bf13d.js');
|
|
15
|
+
const key = require('./key-7a6d198d.js');
|
|
16
|
+
const math = require('./math-da40a7f2.js');
|
|
17
|
+
const observers = require('./observers-dea97623.js');
|
|
18
|
+
const interactive = require('./interactive-97aea507.js');
|
|
19
|
+
require('./guid-f166e155.js');
|
|
20
|
+
|
|
21
|
+
const CSS = {
|
|
22
|
+
loader: "loader",
|
|
23
|
+
clearButton: "clear-button",
|
|
24
|
+
editingEnabled: "editing-enabled",
|
|
25
|
+
inlineChild: "inline-child",
|
|
26
|
+
inputIcon: "icon",
|
|
27
|
+
prefix: "prefix",
|
|
28
|
+
suffix: "suffix",
|
|
29
|
+
numberButtonWrapper: "number-button-wrapper",
|
|
30
|
+
buttonItemHorizontal: "number-button-item--horizontal",
|
|
31
|
+
wrapper: "element-wrapper",
|
|
32
|
+
inputWrapper: "wrapper",
|
|
33
|
+
actionWrapper: "action-wrapper",
|
|
34
|
+
resizeIconWrapper: "resize-icon-wrapper",
|
|
35
|
+
numberButtonItem: "number-button-item"
|
|
36
|
+
};
|
|
37
|
+
const SLOTS = {
|
|
38
|
+
action: "action"
|
|
39
|
+
};
|
|
40
|
+
const TEXT = {
|
|
41
|
+
clear: "Clear value"
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const inputNumberCss = "@-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}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{height:1.5rem;padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{height:1.5rem}:host([scale=s]) .clear-button{min-height:1.5rem;min-width:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{height:2rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{height:2rem}:host([scale=m]) .clear-button{min-height:2rem;min-width:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{height:2.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{height:2.75rem}:host([scale=l]) .clear-button{min-height:2.75rem;min-width:2.75rem}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host input{-webkit-transition:var(--calcite-animation-timing), height 0, outline-offset 0s;transition:var(--calcite-animation-timing), height 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;max-height:100%;width:100%;max-width:100%;-ms-flex:1 1 0%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}:host input:-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}:host input[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}:host input{outline-color:transparent}:host input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([status=invalid]) input{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{-webkit-padding-start:2rem;padding-inline-start:2rem}:host([icon][scale=m]) input{-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host([icon][scale=l]) input{-webkit-padding-start:3rem;padding-inline-start:3rem}.element-wrapper{position:relative;-ms-flex-order:3;order:3;display:-ms-inline-flexbox;display:inline-flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center}.icon{pointer-events:none;position:absolute;z-index:10;display:block;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button{pointer-events:initial;-ms-flex-order:4;order:4;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;min-height:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:stretch;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.loader{top:1px;left:1px;right:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{-ms-flex-order:7;order:7;display:-ms-flexbox;display:flex}.prefix,.suffix{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}.prefix{-ms-flex-order:2;order:2;border-inline-end-width:0px}.suffix{-ms-flex-order:5;order:5;border-inline-start-width:0px}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}.number-button-wrapper{pointer-events:none;-ms-flex-order:6;order:6;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([number-button-type=vertical]) .wrapper{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}:host([number-button-type=vertical]) input{-ms-flex-order:2;order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:1;order:1;max-height:100%;min-height:100%;-ms-flex-item-align:stretch;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:5;order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-top-width:0px}.number-button-item{max-height:50%;min-height:50%;pointer-events:initial;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px;padding-left:0.5rem;padding-right:0.5rem;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.number-button-item:focus{background-color:var(--calcite-ui-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item:active{background-color:var(--calcite-ui-foreground-3)}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.resize-icon-wrapper{bottom:2px;inset-inline-end:2px;pointer-events:none;position:absolute;z-index:10;height:0.75rem;width:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}.resize-icon-wrapper calcite-icon{bottom:0.25rem;inset-inline-end:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host(.no-bottom-border) input{border-bottom-width:0px}:host(.border-top-color-one) input{border-top-color:var(--calcite-ui-border-1)}:host .inline-child{background-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host .inline-child .editing-enabled{background-color:inherit}:host .inline-child:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}::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}";
|
|
45
|
+
|
|
46
|
+
const InputNumber = class {
|
|
47
|
+
constructor(hostRef) {
|
|
48
|
+
index.registerInstance(this, hostRef);
|
|
49
|
+
this.calciteInternalInputNumberFocus = index.createEvent(this, "calciteInternalInputNumberFocus", 7);
|
|
50
|
+
this.calciteInternalInputNumberBlur = index.createEvent(this, "calciteInternalInputNumberBlur", 7);
|
|
51
|
+
this.calciteInputNumberInput = index.createEvent(this, "calciteInputNumberInput", 7);
|
|
52
|
+
this.calciteInputNumberChange = index.createEvent(this, "calciteInputNumberChange", 7);
|
|
53
|
+
//--------------------------------------------------------------------------
|
|
54
|
+
//
|
|
55
|
+
// Properties
|
|
56
|
+
//
|
|
57
|
+
//--------------------------------------------------------------------------
|
|
58
|
+
/** Specifies the text alignment of the component's value. */
|
|
59
|
+
this.alignment = "start";
|
|
60
|
+
/**
|
|
61
|
+
* When true, the component is focused on page load.
|
|
62
|
+
*
|
|
63
|
+
* @mdn [autofocus](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)
|
|
64
|
+
*/
|
|
65
|
+
this.autofocus = false;
|
|
66
|
+
/**
|
|
67
|
+
* When true, a clear button is displayed when the component has a value.
|
|
68
|
+
*/
|
|
69
|
+
this.clearable = false;
|
|
70
|
+
/**
|
|
71
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
72
|
+
*
|
|
73
|
+
* @mdn [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
74
|
+
*/
|
|
75
|
+
this.disabled = false;
|
|
76
|
+
/**
|
|
77
|
+
* When true, number values are displayed with the locale's group separator.
|
|
78
|
+
*/
|
|
79
|
+
this.groupSeparator = false;
|
|
80
|
+
/**
|
|
81
|
+
* When true, the component will not be visible.
|
|
82
|
+
*
|
|
83
|
+
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
84
|
+
*/
|
|
85
|
+
this.hidden = false;
|
|
86
|
+
/**
|
|
87
|
+
* Accessible name that will appear while loading.
|
|
88
|
+
*
|
|
89
|
+
* @default "Loading"
|
|
90
|
+
*/
|
|
91
|
+
this.intlLoading = dom.TEXT.loading;
|
|
92
|
+
/** When true, the icon is flipped in RTL. */
|
|
93
|
+
this.iconFlipRtl = false;
|
|
94
|
+
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
95
|
+
this.loading = false;
|
|
96
|
+
/** Specifies the BCP 47 language tag for the desired language and country format. */
|
|
97
|
+
this.locale = document.documentElement.lang || "en";
|
|
98
|
+
/**
|
|
99
|
+
* Toggles locale formatting for numbers.
|
|
100
|
+
*
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
this.localeFormat = false;
|
|
104
|
+
/** Specifies the placement of the buttons. */
|
|
105
|
+
this.numberButtonType = "vertical";
|
|
106
|
+
/**
|
|
107
|
+
* When true, the value cannot be modified.
|
|
108
|
+
*
|
|
109
|
+
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
110
|
+
*/
|
|
111
|
+
this.readOnly = false;
|
|
112
|
+
/** When true, the component must have a value in order for the form to submit. */
|
|
113
|
+
this.required = false;
|
|
114
|
+
/** Specifies the size of the component. */
|
|
115
|
+
this.scale = "m";
|
|
116
|
+
/** Specifies the status of the input field, which determines message and icons. */
|
|
117
|
+
this.status = "idle";
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
this.editingEnabled = false;
|
|
122
|
+
/** The component's value. */
|
|
123
|
+
this.value = "";
|
|
124
|
+
this.previousValueOrigin = "initial";
|
|
125
|
+
this.mutationObserver = observers.createObserver("mutation", () => this.setDisabledAction());
|
|
126
|
+
this.userChangedValue = false;
|
|
127
|
+
//--------------------------------------------------------------------------
|
|
128
|
+
//
|
|
129
|
+
// Private Methods
|
|
130
|
+
//
|
|
131
|
+
//--------------------------------------------------------------------------
|
|
132
|
+
this.keyDownHandler = (event) => {
|
|
133
|
+
if (this.readOnly || this.disabled) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (this.isClearable && event.key === "Escape") {
|
|
137
|
+
this.clearInputValue(event);
|
|
138
|
+
event.preventDefault();
|
|
139
|
+
}
|
|
140
|
+
if (event.key === "Enter" && !event.defaultPrevented) {
|
|
141
|
+
form.submitForm(this);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
this.clearInputValue = (nativeEvent) => {
|
|
145
|
+
this.setNumberValue({
|
|
146
|
+
committing: true,
|
|
147
|
+
nativeEvent,
|
|
148
|
+
origin: "user",
|
|
149
|
+
value: ""
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
this.emitChangeIfUserModified = () => {
|
|
153
|
+
if (this.previousValueOrigin === "user" && this.value !== this.previousEmittedValue) {
|
|
154
|
+
this.calciteInputNumberChange.emit();
|
|
155
|
+
}
|
|
156
|
+
this.previousEmittedValue = this.value;
|
|
157
|
+
};
|
|
158
|
+
this.inputNumberBlurHandler = () => {
|
|
159
|
+
this.calciteInternalInputNumberBlur.emit({
|
|
160
|
+
element: this.childNumberEl,
|
|
161
|
+
value: this.value
|
|
162
|
+
});
|
|
163
|
+
this.emitChangeIfUserModified();
|
|
164
|
+
};
|
|
165
|
+
this.inputNumberFocusHandler = (event) => {
|
|
166
|
+
const slottedActionEl = dom.getSlotted(this.el, "action");
|
|
167
|
+
if (event.target !== slottedActionEl) {
|
|
168
|
+
this.setFocus();
|
|
169
|
+
}
|
|
170
|
+
this.calciteInternalInputNumberFocus.emit({
|
|
171
|
+
element: this.childNumberEl,
|
|
172
|
+
value: this.value
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
this.inputNumberInputHandler = (nativeEvent) => {
|
|
176
|
+
if (this.disabled || this.readOnly) {
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
const value = nativeEvent.target.value;
|
|
180
|
+
const delocalizedValue = locale.delocalizeNumberString(value, this.locale);
|
|
181
|
+
if (nativeEvent.inputType === "insertFromPaste") {
|
|
182
|
+
if (!locale.isValidNumber(delocalizedValue)) {
|
|
183
|
+
nativeEvent.preventDefault();
|
|
184
|
+
}
|
|
185
|
+
this.setNumberValue({
|
|
186
|
+
nativeEvent,
|
|
187
|
+
origin: "user",
|
|
188
|
+
value: locale.parseNumberString(delocalizedValue)
|
|
189
|
+
});
|
|
190
|
+
this.childNumberEl.value = this.localizedValue;
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
this.setNumberValue({
|
|
194
|
+
nativeEvent,
|
|
195
|
+
origin: "user",
|
|
196
|
+
value: delocalizedValue
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
this.inputNumberKeyDownHandler = (event) => {
|
|
201
|
+
if (this.disabled || this.readOnly) {
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
if (event.key === "ArrowUp") {
|
|
205
|
+
/* prevent default behavior of moving cursor to the beginning of the input when holding down ArrowUp */
|
|
206
|
+
event.preventDefault();
|
|
207
|
+
this.nudgeNumberValue("up", event);
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
if (event.key === "ArrowDown") {
|
|
211
|
+
this.nudgeNumberValue("down", event);
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
const supportedKeys = [
|
|
215
|
+
...key.numberKeys,
|
|
216
|
+
"ArrowLeft",
|
|
217
|
+
"ArrowRight",
|
|
218
|
+
"Backspace",
|
|
219
|
+
"Delete",
|
|
220
|
+
"Enter",
|
|
221
|
+
"Escape",
|
|
222
|
+
"Tab"
|
|
223
|
+
];
|
|
224
|
+
if (event.altKey || event.ctrlKey || event.metaKey) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
const isShiftTabEvent = event.shiftKey && event.key === "Tab";
|
|
228
|
+
if (supportedKeys.includes(event.key) && (!event.shiftKey || isShiftTabEvent)) {
|
|
229
|
+
if (event.key === "Enter") {
|
|
230
|
+
this.emitChangeIfUserModified();
|
|
231
|
+
}
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
const decimalSeparator = locale.getDecimalSeparator(this.locale);
|
|
235
|
+
if (event.key === decimalSeparator) {
|
|
236
|
+
if (!this.value && !this.childNumberEl.value) {
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
if (this.value && this.childNumberEl.value.indexOf(decimalSeparator) === -1) {
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
if (/[eE]/.test(event.key)) {
|
|
244
|
+
if (!this.value && !this.childNumberEl.value) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
if (this.value && !/[eE]/.test(this.childNumberEl.value)) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
if (event.key === "-") {
|
|
252
|
+
if (!this.value && !this.childNumberEl.value) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
if (this.value && this.childNumberEl.value.split("-").length <= 2) {
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
event.preventDefault();
|
|
260
|
+
};
|
|
261
|
+
this.nudgeNumberValue = (direction, nativeEvent) => {
|
|
262
|
+
if (nativeEvent instanceof KeyboardEvent && nativeEvent.repeat) {
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
const inputMax = this.maxString ? parseFloat(this.maxString) : null;
|
|
266
|
+
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
267
|
+
const valueNudgeDelayInMs = 100;
|
|
268
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
269
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
270
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
271
|
+
}
|
|
272
|
+
let firstValueNudge = true;
|
|
273
|
+
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
274
|
+
if (firstValueNudge) {
|
|
275
|
+
firstValueNudge = false;
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
279
|
+
}, valueNudgeDelayInMs);
|
|
280
|
+
};
|
|
281
|
+
this.nudgeButtonPointerUpAndOutHandler = () => {
|
|
282
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
283
|
+
};
|
|
284
|
+
this.nudgeButtonPointerDownHandler = (event) => {
|
|
285
|
+
event.preventDefault();
|
|
286
|
+
const direction = event.target.dataset.adjustment;
|
|
287
|
+
if (!this.disabled) {
|
|
288
|
+
this.nudgeNumberValue(direction, event);
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
this.setChildNumberElRef = (el) => {
|
|
292
|
+
this.childNumberEl = el;
|
|
293
|
+
};
|
|
294
|
+
this.setInputNumberValue = (newInputValue) => {
|
|
295
|
+
if (!this.childNumberEl) {
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
this.childNumberEl.value = newInputValue;
|
|
299
|
+
};
|
|
300
|
+
this.setPreviousEmittedNumberValue = (newPreviousEmittedValue) => {
|
|
301
|
+
this.previousEmittedValue = locale.isValidNumber(newPreviousEmittedValue)
|
|
302
|
+
? newPreviousEmittedValue
|
|
303
|
+
: "";
|
|
304
|
+
};
|
|
305
|
+
this.setPreviousNumberValue = (newPreviousValue) => {
|
|
306
|
+
this.previousValue = locale.isValidNumber(newPreviousValue) ? newPreviousValue : "";
|
|
307
|
+
};
|
|
308
|
+
this.setNumberValue = ({ committing = false, nativeEvent, origin, previousValue, value }) => {
|
|
309
|
+
const previousLocalizedValue = locale.localizeNumberString(this.previousValue, this.locale, this.groupSeparator, this.numberingSystem);
|
|
310
|
+
const sanitizedValue = locale.sanitizeNumberString(value);
|
|
311
|
+
const newValue = value && !sanitizedValue
|
|
312
|
+
? locale.isValidNumber(this.previousValue)
|
|
313
|
+
? this.previousValue
|
|
314
|
+
: ""
|
|
315
|
+
: sanitizedValue;
|
|
316
|
+
const newLocalizedValue = locale.localizeNumberString(newValue, this.locale, this.groupSeparator, this.numberingSystem);
|
|
317
|
+
this.setPreviousNumberValue(previousValue || this.value);
|
|
318
|
+
this.previousValueOrigin = origin;
|
|
319
|
+
this.userChangedValue = origin === "user" && this.value !== newValue;
|
|
320
|
+
this.value = newValue;
|
|
321
|
+
this.localizedValue = newLocalizedValue;
|
|
322
|
+
if (origin === "direct") {
|
|
323
|
+
this.setInputNumberValue(newLocalizedValue);
|
|
324
|
+
}
|
|
325
|
+
if (nativeEvent) {
|
|
326
|
+
const calciteInputNumberInputEvent = this.calciteInputNumberInput.emit({
|
|
327
|
+
element: this.childNumberEl,
|
|
328
|
+
nativeEvent,
|
|
329
|
+
value: this.value
|
|
330
|
+
});
|
|
331
|
+
if (calciteInputNumberInputEvent.defaultPrevented) {
|
|
332
|
+
this.value = this.previousValue;
|
|
333
|
+
this.localizedValue = previousLocalizedValue;
|
|
334
|
+
}
|
|
335
|
+
else if (committing) {
|
|
336
|
+
this.emitChangeIfUserModified();
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
this.inputNumberKeyUpHandler = () => {
|
|
341
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
disabledWatcher() {
|
|
345
|
+
this.setDisabledAction();
|
|
346
|
+
}
|
|
347
|
+
/** watcher to update number-to-string for max */
|
|
348
|
+
maxWatcher() {
|
|
349
|
+
var _a;
|
|
350
|
+
this.maxString = ((_a = this.max) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
351
|
+
}
|
|
352
|
+
/** watcher to update number-to-string for min */
|
|
353
|
+
minWatcher() {
|
|
354
|
+
var _a;
|
|
355
|
+
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
356
|
+
}
|
|
357
|
+
valueWatcher(newValue, previousValue) {
|
|
358
|
+
if (!this.userChangedValue) {
|
|
359
|
+
this.setNumberValue({
|
|
360
|
+
origin: "direct",
|
|
361
|
+
previousValue,
|
|
362
|
+
value: newValue == null || newValue == ""
|
|
363
|
+
? ""
|
|
364
|
+
: locale.isValidNumber(newValue)
|
|
365
|
+
? newValue
|
|
366
|
+
: this.previousValue || ""
|
|
367
|
+
});
|
|
368
|
+
this.warnAboutInvalidNumberValue(newValue);
|
|
369
|
+
}
|
|
370
|
+
this.userChangedValue = false;
|
|
371
|
+
}
|
|
372
|
+
updateRequestedIcon() {
|
|
373
|
+
this.requestedIcon = dom.setRequestedIcon({}, this.icon, "number");
|
|
374
|
+
}
|
|
375
|
+
get isClearable() {
|
|
376
|
+
return this.clearable && this.value.length > 0;
|
|
377
|
+
}
|
|
378
|
+
//--------------------------------------------------------------------------
|
|
379
|
+
//
|
|
380
|
+
// Lifecycle
|
|
381
|
+
//
|
|
382
|
+
//--------------------------------------------------------------------------
|
|
383
|
+
connectedCallback() {
|
|
384
|
+
var _a;
|
|
385
|
+
this.scale = dom.getElementProp(this.el, "scale", this.scale);
|
|
386
|
+
this.status = dom.getElementProp(this.el, "status", this.status);
|
|
387
|
+
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
388
|
+
if (this.inlineEditableEl) {
|
|
389
|
+
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
390
|
+
}
|
|
391
|
+
this.setPreviousEmittedNumberValue(this.value);
|
|
392
|
+
this.setPreviousNumberValue(this.value);
|
|
393
|
+
this.warnAboutInvalidNumberValue(this.value);
|
|
394
|
+
this.setNumberValue({
|
|
395
|
+
origin: "connected",
|
|
396
|
+
value: locale.isValidNumber(this.value) ? this.value : ""
|
|
397
|
+
});
|
|
398
|
+
label.connectLabel(this);
|
|
399
|
+
form.connectForm(this);
|
|
400
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
401
|
+
this.setDisabledAction();
|
|
402
|
+
}
|
|
403
|
+
disconnectedCallback() {
|
|
404
|
+
var _a;
|
|
405
|
+
label.disconnectLabel(this);
|
|
406
|
+
form.disconnectForm(this);
|
|
407
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
408
|
+
}
|
|
409
|
+
componentWillLoad() {
|
|
410
|
+
var _a, _b;
|
|
411
|
+
this.maxString = (_a = this.max) === null || _a === void 0 ? void 0 : _a.toString();
|
|
412
|
+
this.minString = (_b = this.min) === null || _b === void 0 ? void 0 : _b.toString();
|
|
413
|
+
this.requestedIcon = dom.setRequestedIcon({}, this.icon, "number");
|
|
414
|
+
}
|
|
415
|
+
componentShouldUpdate(newValue, oldValue, property) {
|
|
416
|
+
if (property === "value" && newValue && !locale.isValidNumber(newValue)) {
|
|
417
|
+
this.setNumberValue({
|
|
418
|
+
origin: "reset",
|
|
419
|
+
value: oldValue
|
|
420
|
+
});
|
|
421
|
+
return false;
|
|
422
|
+
}
|
|
423
|
+
return true;
|
|
424
|
+
}
|
|
425
|
+
componentDidRender() {
|
|
426
|
+
interactive.updateHostInteraction(this);
|
|
427
|
+
}
|
|
428
|
+
//--------------------------------------------------------------------------
|
|
429
|
+
//
|
|
430
|
+
// Public Methods
|
|
431
|
+
//
|
|
432
|
+
//--------------------------------------------------------------------------
|
|
433
|
+
/** Sets focus on the component. */
|
|
434
|
+
async setFocus() {
|
|
435
|
+
var _a;
|
|
436
|
+
(_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
437
|
+
}
|
|
438
|
+
/** Selects all text of the component's `value`. */
|
|
439
|
+
async selectText() {
|
|
440
|
+
var _a;
|
|
441
|
+
(_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.select();
|
|
442
|
+
}
|
|
443
|
+
onLabelClick() {
|
|
444
|
+
this.setFocus();
|
|
445
|
+
}
|
|
446
|
+
incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent) {
|
|
447
|
+
const { value } = this;
|
|
448
|
+
const inputStep = this.step === "any" ? 1 : Math.abs(this.step || 1);
|
|
449
|
+
const inputVal = value && value !== "" ? parseFloat(value) : 0;
|
|
450
|
+
const adjustment = direction === "up" ? 1 : -1;
|
|
451
|
+
const nudgedValue = inputVal + inputStep * adjustment;
|
|
452
|
+
const finalValue = (typeof inputMin === "number" && !isNaN(inputMin) && nudgedValue < inputMin) ||
|
|
453
|
+
(typeof inputMax === "number" && !isNaN(inputMax) && nudgedValue > inputMax)
|
|
454
|
+
? inputVal
|
|
455
|
+
: nudgedValue;
|
|
456
|
+
const inputValPlaces = math.decimalPlaces(inputVal);
|
|
457
|
+
const inputStepPlaces = math.decimalPlaces(inputStep);
|
|
458
|
+
this.setNumberValue({
|
|
459
|
+
committing: true,
|
|
460
|
+
nativeEvent,
|
|
461
|
+
origin: "user",
|
|
462
|
+
value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
onFormReset() {
|
|
466
|
+
this.setNumberValue({
|
|
467
|
+
origin: "reset",
|
|
468
|
+
value: this.defaultValue
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
syncHiddenFormInput(input) {
|
|
472
|
+
var _a, _b, _c, _d;
|
|
473
|
+
input.type = "number";
|
|
474
|
+
input.min = (_b = (_a = this.min) === null || _a === void 0 ? void 0 : _a.toString(10)) !== null && _b !== void 0 ? _b : "";
|
|
475
|
+
input.max = (_d = (_c = this.max) === null || _c === void 0 ? void 0 : _c.toString(10)) !== null && _d !== void 0 ? _d : "";
|
|
476
|
+
}
|
|
477
|
+
setDisabledAction() {
|
|
478
|
+
const slottedActionEl = dom.getSlotted(this.el, "action");
|
|
479
|
+
if (!slottedActionEl) {
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
this.disabled
|
|
483
|
+
? slottedActionEl.setAttribute("disabled", "")
|
|
484
|
+
: slottedActionEl.removeAttribute("disabled");
|
|
485
|
+
}
|
|
486
|
+
warnAboutInvalidNumberValue(value) {
|
|
487
|
+
if (value && !locale.isValidNumber(value)) {
|
|
488
|
+
console.warn(`The specified value "${value}" cannot be parsed, or is out of range.`);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
// --------------------------------------------------------------------------
|
|
492
|
+
//
|
|
493
|
+
// Render Methods
|
|
494
|
+
//
|
|
495
|
+
// --------------------------------------------------------------------------
|
|
496
|
+
render() {
|
|
497
|
+
const dir = dom.getElementDir(this.el);
|
|
498
|
+
const loader = (index.h("div", { class: CSS.loader }, index.h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
499
|
+
const inputClearButton = (index.h("button", { "aria-label": this.intlClear || TEXT.clear, class: CSS.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, index.h("calcite-icon", { icon: "x", scale: "s" })));
|
|
500
|
+
const iconEl = (index.h("calcite-icon", { class: CSS.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
501
|
+
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
502
|
+
const numberButtonsHorizontalUp = (index.h("button", { class: {
|
|
503
|
+
[CSS.numberButtonItem]: true,
|
|
504
|
+
[CSS.buttonItemHorizontal]: isHorizontalNumberButton
|
|
505
|
+
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, index.h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
506
|
+
const numberButtonsHorizontalDown = (index.h("button", { class: {
|
|
507
|
+
[CSS.numberButtonItem]: true,
|
|
508
|
+
[CSS.buttonItemHorizontal]: isHorizontalNumberButton
|
|
509
|
+
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, index.h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
510
|
+
const numberButtonsVertical = (index.h("div", { class: CSS.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
511
|
+
const prefixText = index.h("div", { class: CSS.prefix }, this.prefixText);
|
|
512
|
+
const suffixText = index.h("div", { class: CSS.suffix }, this.suffixText);
|
|
513
|
+
const childEl = (index.h("input", { "aria-label": label.getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputNumberBlurHandler, onFocus: this.inputNumberFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputNumberKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue }));
|
|
514
|
+
return (index.h(index.Host, { onClick: this.inputNumberFocusHandler, onKeyDown: this.keyDownHandler }, index.h("div", { class: { [CSS.inputWrapper]: true, [dom.CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
515
|
+
? numberButtonsHorizontalDown
|
|
516
|
+
: null, this.prefixText ? prefixText : null, index.h("div", { class: CSS.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), index.h("div", { class: CSS.actionWrapper }, index.h("slot", { name: SLOTS.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
517
|
+
? numberButtonsHorizontalUp
|
|
518
|
+
: null, index.h(form.HiddenFormInputSlot, { component: this }))));
|
|
519
|
+
}
|
|
520
|
+
get el() { return index.getElement(this); }
|
|
521
|
+
static get watchers() { return {
|
|
522
|
+
"disabled": ["disabledWatcher"],
|
|
523
|
+
"max": ["maxWatcher"],
|
|
524
|
+
"min": ["minWatcher"],
|
|
525
|
+
"value": ["valueWatcher"],
|
|
526
|
+
"icon": ["updateRequestedIcon"]
|
|
527
|
+
}; }
|
|
528
|
+
};
|
|
529
|
+
InputNumber.style = inputNumberCss;
|
|
530
|
+
|
|
531
|
+
exports.calcite_input_number = InputNumber;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-beta.
|
|
4
|
+
* v1.0.0-beta.85
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const guid = require('./guid-
|
|
12
|
-
const locale = require('./locale-
|
|
13
|
-
const label = require('./label-
|
|
14
|
-
const form = require('./form-
|
|
15
|
-
const interactive = require('./interactive-
|
|
16
|
-
const key = require('./key-
|
|
17
|
-
require('./dom-
|
|
10
|
+
const index = require('./index-341e1ec4.js');
|
|
11
|
+
const guid = require('./guid-f166e155.js');
|
|
12
|
+
const locale = require('./locale-075bf13d.js');
|
|
13
|
+
const label = require('./label-1b7bed3e.js');
|
|
14
|
+
const form = require('./form-09b0739e.js');
|
|
15
|
+
const interactive = require('./interactive-97aea507.js');
|
|
16
|
+
const key = require('./key-7a6d198d.js');
|
|
17
|
+
require('./dom-1b4e0097.js');
|
|
18
18
|
|
|
19
19
|
const maxTenthForMinuteAndSecond = 5;
|
|
20
20
|
function createLocaleDateTimeFormatter(locale, includeSeconds = true) {
|
|
@@ -207,6 +207,12 @@ const InputTimePicker = class {
|
|
|
207
207
|
this.active = false;
|
|
208
208
|
/** The disabled state of the time input */
|
|
209
209
|
this.disabled = false;
|
|
210
|
+
/**
|
|
211
|
+
* When true, still focusable but controls are gone and the value cannot be modified.
|
|
212
|
+
*
|
|
213
|
+
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
214
|
+
*/
|
|
215
|
+
this.readOnly = false;
|
|
210
216
|
/**
|
|
211
217
|
* BCP 47 language tag for desired language and country format
|
|
212
218
|
*
|
|
@@ -247,8 +253,10 @@ const InputTimePicker = class {
|
|
|
247
253
|
this.setInputValue(localizedInputValue || localizeTimeString(this.value, this.locale, shouldIncludeSeconds));
|
|
248
254
|
};
|
|
249
255
|
this.calciteInternalInputFocusHandler = (event) => {
|
|
250
|
-
this.
|
|
251
|
-
|
|
256
|
+
if (!this.readOnly) {
|
|
257
|
+
this.active = true;
|
|
258
|
+
event.stopPropagation();
|
|
259
|
+
}
|
|
252
260
|
};
|
|
253
261
|
this.calciteInputInputHandler = (event) => {
|
|
254
262
|
const target = event.target;
|
|
@@ -327,13 +335,13 @@ const InputTimePicker = class {
|
|
|
327
335
|
};
|
|
328
336
|
}
|
|
329
337
|
activeHandler() {
|
|
330
|
-
if (this.disabled) {
|
|
338
|
+
if (this.disabled || this.readOnly) {
|
|
331
339
|
this.active = false;
|
|
332
340
|
return;
|
|
333
341
|
}
|
|
334
342
|
this.reposition();
|
|
335
343
|
}
|
|
336
|
-
|
|
344
|
+
handleDisabledAndReadOnlyChange(value) {
|
|
337
345
|
if (!value) {
|
|
338
346
|
this.active = false;
|
|
339
347
|
}
|
|
@@ -366,7 +374,9 @@ const InputTimePicker = class {
|
|
|
366
374
|
timePickerFocusHandler(event) {
|
|
367
375
|
event.preventDefault();
|
|
368
376
|
event.stopPropagation();
|
|
369
|
-
this.
|
|
377
|
+
if (!this.readOnly) {
|
|
378
|
+
this.active = true;
|
|
379
|
+
}
|
|
370
380
|
}
|
|
371
381
|
// --------------------------------------------------------------------------
|
|
372
382
|
//
|
|
@@ -418,12 +428,13 @@ const InputTimePicker = class {
|
|
|
418
428
|
// --------------------------------------------------------------------------
|
|
419
429
|
render() {
|
|
420
430
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
421
|
-
return (index.h(index.Host, { onKeyDown: this.keyDownHandler }, index.h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, index.h("calcite-input", { disabled: this.disabled, icon: "clock", label: label.getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), index.h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId }, index.h("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), index.h(form.HiddenFormInputSlot, { component: this })));
|
|
431
|
+
return (index.h(index.Host, { onKeyDown: this.keyDownHandler }, index.h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, index.h("calcite-input", { disabled: this.disabled, icon: "clock", label: label.getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: this.readOnly, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), index.h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId, triggerDisabled: true }, index.h("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), index.h(form.HiddenFormInputSlot, { component: this })));
|
|
422
432
|
}
|
|
423
433
|
get el() { return index.getElement(this); }
|
|
424
434
|
static get watchers() { return {
|
|
425
435
|
"active": ["activeHandler"],
|
|
426
|
-
"disabled": ["
|
|
436
|
+
"disabled": ["handleDisabledAndReadOnlyChange"],
|
|
437
|
+
"readOnly": ["handleDisabledAndReadOnlyChange"],
|
|
427
438
|
"locale": ["localeWatcher"],
|
|
428
439
|
"value": ["valueWatcher"]
|
|
429
440
|
}; }
|