@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
|
@@ -1,7 +1,7 @@
|
|
|
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
|
import { HTMLElement as HTMLElement$1, createEvent, h, Host, Build, forceUpdate, Fragment, getAssetPath, proxyCustomElement } from '@stencil/core/internal/client';
|
|
7
7
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -162,7 +162,7 @@ const CSS_UTILITY = {
|
|
|
162
162
|
lightTheme,
|
|
163
163
|
rtl: "calcite--rtl"
|
|
164
164
|
};
|
|
165
|
-
const TEXT$
|
|
165
|
+
const TEXT$t = {
|
|
166
166
|
loading: "Loading"
|
|
167
167
|
};
|
|
168
168
|
|
|
@@ -483,7 +483,7 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
483
483
|
static get style() { return accordionItemCss; }
|
|
484
484
|
};
|
|
485
485
|
|
|
486
|
-
const CSS$
|
|
486
|
+
const CSS$R = {
|
|
487
487
|
button: "button",
|
|
488
488
|
buttonTextVisible: "button--text-visible",
|
|
489
489
|
buttonCompact: "button--compact",
|
|
@@ -493,7 +493,7 @@ const CSS$P = {
|
|
|
493
493
|
textContainer: "text-container",
|
|
494
494
|
textContainerVisible: "text-container--visible"
|
|
495
495
|
};
|
|
496
|
-
const TEXT$
|
|
496
|
+
const TEXT$s = {
|
|
497
497
|
loading: "Loading"
|
|
498
498
|
};
|
|
499
499
|
|
|
@@ -592,7 +592,7 @@ const Action = class extends HTMLElement$1 {
|
|
|
592
592
|
*
|
|
593
593
|
* @default "Loading"
|
|
594
594
|
*/
|
|
595
|
-
this.intlLoading = TEXT$
|
|
595
|
+
this.intlLoading = TEXT$s.loading;
|
|
596
596
|
/**
|
|
597
597
|
* When true, a busy indicator is displayed.
|
|
598
598
|
*/
|
|
@@ -651,8 +651,8 @@ const Action = class extends HTMLElement$1 {
|
|
|
651
651
|
renderTextContainer() {
|
|
652
652
|
const { text, textEnabled } = this;
|
|
653
653
|
const textContainerClasses = {
|
|
654
|
-
[CSS$
|
|
655
|
-
[CSS$
|
|
654
|
+
[CSS$R.textContainer]: true,
|
|
655
|
+
[CSS$R.textContainerVisible]: textEnabled
|
|
656
656
|
};
|
|
657
657
|
return text ? (h("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
658
658
|
}
|
|
@@ -666,18 +666,18 @@ const Action = class extends HTMLElement$1 {
|
|
|
666
666
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
667
667
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
668
668
|
const slotContainerNode = (h("div", { class: {
|
|
669
|
-
[CSS$
|
|
670
|
-
[CSS$
|
|
669
|
+
[CSS$R.slotContainer]: true,
|
|
670
|
+
[CSS$R.slotContainerHidden]: loading
|
|
671
671
|
} }, h("slot", null)));
|
|
672
|
-
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$
|
|
672
|
+
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$R.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
673
673
|
}
|
|
674
674
|
render() {
|
|
675
675
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
676
676
|
const ariaLabel = label || text;
|
|
677
677
|
const buttonClasses = {
|
|
678
|
-
[CSS$
|
|
679
|
-
[CSS$
|
|
680
|
-
[CSS$
|
|
678
|
+
[CSS$R.button]: true,
|
|
679
|
+
[CSS$R.buttonTextVisible]: textEnabled,
|
|
680
|
+
[CSS$R.buttonCompact]: compact
|
|
681
681
|
};
|
|
682
682
|
return (h(Host, { onClick: this.calciteActionClickHandler }, h("button", { "aria-busy": toAriaBoolean(loading), "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer())));
|
|
683
683
|
}
|
|
@@ -685,11 +685,11 @@ const Action = class extends HTMLElement$1 {
|
|
|
685
685
|
static get style() { return actionCss; }
|
|
686
686
|
};
|
|
687
687
|
|
|
688
|
-
const CSS$
|
|
688
|
+
const CSS$Q = {
|
|
689
689
|
menu: "menu",
|
|
690
690
|
defaultTrigger: "default-trigger"
|
|
691
691
|
};
|
|
692
|
-
const SLOTS$
|
|
692
|
+
const SLOTS$q = {
|
|
693
693
|
tooltip: "tooltip",
|
|
694
694
|
trigger: "trigger"
|
|
695
695
|
};
|
|
@@ -697,11 +697,11 @@ const ICONS$f = {
|
|
|
697
697
|
menu: "ellipsis"
|
|
698
698
|
};
|
|
699
699
|
|
|
700
|
-
const SLOTS$
|
|
700
|
+
const SLOTS$p = {
|
|
701
701
|
menuActions: "menu-actions",
|
|
702
702
|
menuTooltip: "menu-tooltip"
|
|
703
703
|
};
|
|
704
|
-
const TEXT$
|
|
704
|
+
const TEXT$r = {
|
|
705
705
|
more: "More"
|
|
706
706
|
};
|
|
707
707
|
const ICONS$e = {
|
|
@@ -717,7 +717,7 @@ const getOverflowCount = ({ actionCount, actionHeight, height, groupCount }) =>
|
|
|
717
717
|
return Math.max(actionCount - getMaxActionCount({ height, actionHeight, groupCount }), 0);
|
|
718
718
|
};
|
|
719
719
|
const queryActions = (el) => {
|
|
720
|
-
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$
|
|
720
|
+
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$q.trigger : true);
|
|
721
721
|
};
|
|
722
722
|
const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
723
723
|
let needToSlotCount = overflowCount;
|
|
@@ -725,7 +725,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
725
725
|
let slottedWithinGroupCount = 0;
|
|
726
726
|
const groupActions = queryActions(group).reverse();
|
|
727
727
|
groupActions.forEach((groupAction) => {
|
|
728
|
-
if (groupAction.slot === SLOTS$
|
|
728
|
+
if (groupAction.slot === SLOTS$p.menuActions) {
|
|
729
729
|
groupAction.removeAttribute("slot");
|
|
730
730
|
groupAction.textEnabled = expanded;
|
|
731
731
|
}
|
|
@@ -735,7 +735,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
735
735
|
const unslottedActions = groupActions.filter((action) => !action.slot);
|
|
736
736
|
if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest("calcite-action-menu")) {
|
|
737
737
|
groupAction.textEnabled = true;
|
|
738
|
-
groupAction.setAttribute("slot", SLOTS$
|
|
738
|
+
groupAction.setAttribute("slot", SLOTS$p.menuActions);
|
|
739
739
|
slottedWithinGroupCount++;
|
|
740
740
|
if (slottedWithinGroupCount > 1) {
|
|
741
741
|
needToSlotCount--;
|
|
@@ -758,7 +758,7 @@ function getCalcitePosition(position, el) {
|
|
|
758
758
|
}
|
|
759
759
|
function toggleChildActionText({ parent, expanded }) {
|
|
760
760
|
queryActions(parent)
|
|
761
|
-
.filter((el) => el.slot !== SLOTS$
|
|
761
|
+
.filter((el) => el.slot !== SLOTS$p.menuActions)
|
|
762
762
|
.forEach((action) => (action.textEnabled = expanded));
|
|
763
763
|
parent
|
|
764
764
|
.querySelectorAll("calcite-action-group, calcite-action-menu")
|
|
@@ -787,14 +787,14 @@ const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position
|
|
|
787
787
|
return actionNode;
|
|
788
788
|
};
|
|
789
789
|
|
|
790
|
-
const CSS$
|
|
790
|
+
const CSS$P = {
|
|
791
791
|
actionGroupBottom: "action-group--bottom"
|
|
792
792
|
};
|
|
793
|
-
const SLOTS$
|
|
793
|
+
const SLOTS$o = {
|
|
794
794
|
bottomActions: "bottom-actions",
|
|
795
795
|
expandTooltip: "expand-tooltip"
|
|
796
796
|
};
|
|
797
|
-
const TEXT$
|
|
797
|
+
const TEXT$q = {
|
|
798
798
|
expand: "Expand",
|
|
799
799
|
collapse: "Collapse"
|
|
800
800
|
};
|
|
@@ -2098,7 +2098,7 @@ function processMutations$1(mutations) {
|
|
|
2098
2098
|
});
|
|
2099
2099
|
}
|
|
2100
2100
|
|
|
2101
|
-
const actionBarCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{pointer-events:auto;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:stretch;align-self:stretch;max-width:15vw}:host([overflow-actions-disabled]){overflow-y:auto}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}::slotted(calcite-action-group:last-child){border-bottom-width:0px}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}";
|
|
2101
|
+
const actionBarCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{pointer-events:auto;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:stretch;align-self:stretch;max-width:15vw;background:transparent}:host([overflow-actions-disabled]){overflow-y:auto}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}::slotted(calcite-action-group:last-child){border-bottom-width:0px}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}";
|
|
2102
2102
|
|
|
2103
2103
|
const ActionBar = class extends HTMLElement$1 {
|
|
2104
2104
|
constructor() {
|
|
@@ -2160,7 +2160,7 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2160
2160
|
const actions = queryActions(el);
|
|
2161
2161
|
const actionCount = expandDisabled ? actions.length : actions.length + 1;
|
|
2162
2162
|
const actionGroups = Array.from(el.querySelectorAll("calcite-action-group"));
|
|
2163
|
-
const groupCount = getSlotted(el, SLOTS$
|
|
2163
|
+
const groupCount = getSlotted(el, SLOTS$o.bottomActions) || !expandDisabled
|
|
2164
2164
|
? actionGroups.length + 1
|
|
2165
2165
|
: actionGroups.length;
|
|
2166
2166
|
const overflowCount = getOverflowCount({
|
|
@@ -2257,11 +2257,11 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2257
2257
|
// --------------------------------------------------------------------------
|
|
2258
2258
|
renderBottomActionGroup() {
|
|
2259
2259
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
2260
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
2261
|
-
const expandLabel = intlExpand || TEXT$
|
|
2262
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2260
|
+
const tooltip = getSlotted(el, SLOTS$o.expandTooltip);
|
|
2261
|
+
const expandLabel = intlExpand || TEXT$q.expand;
|
|
2262
|
+
const collapseLabel = intlCollapse || TEXT$q.collapse;
|
|
2263
2263
|
const expandToggleNode = !expandDisabled ? (h(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2264
|
-
return getSlotted(el, SLOTS$
|
|
2264
|
+
return getSlotted(el, SLOTS$o.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$P.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$o.bottomActions }), h("slot", { name: SLOTS$o.expandTooltip }), expandToggleNode)) : null;
|
|
2265
2265
|
}
|
|
2266
2266
|
render() {
|
|
2267
2267
|
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("slot", null), this.renderBottomActionGroup()));
|
|
@@ -2329,13 +2329,13 @@ const ActionGroup = class extends HTMLElement$1 {
|
|
|
2329
2329
|
// --------------------------------------------------------------------------
|
|
2330
2330
|
renderTooltip() {
|
|
2331
2331
|
const { el } = this;
|
|
2332
|
-
const hasTooltip = getSlotted(el, SLOTS$
|
|
2333
|
-
return hasTooltip ? h("slot", { name: SLOTS$
|
|
2332
|
+
const hasTooltip = getSlotted(el, SLOTS$p.menuTooltip);
|
|
2333
|
+
return hasTooltip ? h("slot", { name: SLOTS$p.menuTooltip, slot: SLOTS$q.tooltip }) : null;
|
|
2334
2334
|
}
|
|
2335
2335
|
renderMenu() {
|
|
2336
2336
|
const { el, expanded, intlMore, menuOpen, scale } = this;
|
|
2337
|
-
const hasMenuItems = getSlotted(el, SLOTS$
|
|
2338
|
-
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
2337
|
+
const hasMenuItems = getSlotted(el, SLOTS$p.menuActions);
|
|
2338
|
+
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$r.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: "leading-start", scale: scale }, h("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$q.trigger, text: intlMore || TEXT$r.more, textEnabled: expanded }), h("slot", { name: SLOTS$p.menuActions }), this.renderTooltip())) : null;
|
|
2339
2339
|
}
|
|
2340
2340
|
render() {
|
|
2341
2341
|
return (h(Fragment, null, h("slot", null), this.renderMenu()));
|
|
@@ -2395,7 +2395,7 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2395
2395
|
// --------------------------------------------------------------------------
|
|
2396
2396
|
this.connectMenuButtonEl = () => {
|
|
2397
2397
|
const { el, menuButtonId, menuId, open, label } = this;
|
|
2398
|
-
const menuButtonEl = getSlotted(el, SLOTS$
|
|
2398
|
+
const menuButtonEl = getSlotted(el, SLOTS$q.trigger) || this.defaultMenuButtonEl;
|
|
2399
2399
|
if (this.menuButtonEl === menuButtonEl) {
|
|
2400
2400
|
return;
|
|
2401
2401
|
}
|
|
@@ -2609,17 +2609,17 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2609
2609
|
}
|
|
2610
2610
|
renderMenuButton() {
|
|
2611
2611
|
const { label, scale, expanded } = this;
|
|
2612
|
-
const menuButtonSlot = (h("slot", { name: SLOTS$
|
|
2612
|
+
const menuButtonSlot = (h("slot", { name: SLOTS$q.trigger }, h("calcite-action", { class: CSS$Q.defaultTrigger, icon: ICONS$f.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
|
|
2613
2613
|
return menuButtonSlot;
|
|
2614
2614
|
}
|
|
2615
2615
|
renderMenuItems() {
|
|
2616
2616
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
2617
2617
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
2618
2618
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
2619
|
-
return (h("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
2619
|
+
return (h("calcite-popover", { disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$Q.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, onKeyUp: this.menuActionsContainerKeyUp, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 }, h("slot", null))));
|
|
2620
2620
|
}
|
|
2621
2621
|
render() {
|
|
2622
|
-
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS$
|
|
2622
|
+
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS$q.tooltip, onSlotchange: this.updateTooltip })));
|
|
2623
2623
|
}
|
|
2624
2624
|
isValidKey(key, supportedKeys) {
|
|
2625
2625
|
return !!supportedKeys.find((k) => k === key);
|
|
@@ -2633,19 +2633,19 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2633
2633
|
static get style() { return actionMenuCss; }
|
|
2634
2634
|
};
|
|
2635
2635
|
|
|
2636
|
-
const CSS$
|
|
2636
|
+
const CSS$O = {
|
|
2637
2637
|
actionGroupBottom: "action-group--bottom",
|
|
2638
2638
|
container: "container"
|
|
2639
2639
|
};
|
|
2640
|
-
const TEXT$
|
|
2640
|
+
const TEXT$p = {
|
|
2641
2641
|
expand: "Expand",
|
|
2642
2642
|
collapse: "Collapse"
|
|
2643
2643
|
};
|
|
2644
|
-
const SLOTS$
|
|
2644
|
+
const SLOTS$n = {
|
|
2645
2645
|
expandTooltip: "expand-tooltip"
|
|
2646
2646
|
};
|
|
2647
2647
|
|
|
2648
|
-
const actionPadCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}@keyframes in{0%{opacity:0}100%{opacity:1}}:host{-webkit-animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.125rem}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-bottom:0px;padding-top:0px}.container{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;overflow-y:auto;border-radius:0.25rem;background-color:var(--calcite-ui-background);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);max-width:15vw}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}:host([layout=horizontal]) .container{-ms-flex-direction:row;flex-direction:row;max-width:unset}:host([layout=horizontal]) .container .action-group--bottom{padding:0px}:host([layout=horizontal]) .container ::slotted(calcite-action-group){border-width:0px;padding:0px;border-inline-end-width:1px}::slotted(calcite-action-group:last-child){border-bottom-width:0px}";
|
|
2648
|
+
const actionPadCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}@keyframes in{0%{opacity:0}100%{opacity:1}}:host{-webkit-animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.125rem}:host([expanded]){max-width:20vw;background:transparent}::slotted(calcite-action-group){border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-bottom:0px;padding-top:0px}.container{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;overflow-y:auto;border-radius:0.25rem;background-color:var(--calcite-ui-background);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);max-width:15vw}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}:host([layout=horizontal]) .container{-ms-flex-direction:row;flex-direction:row;max-width:unset}:host([layout=horizontal]) .container .action-group--bottom{padding:0px}:host([layout=horizontal]) .container ::slotted(calcite-action-group){border-width:0px;padding:0px;border-inline-end-width:1px}::slotted(calcite-action-group:last-child){border-bottom-width:0px}";
|
|
2649
2649
|
|
|
2650
2650
|
const ActionPad = class extends HTMLElement$1 {
|
|
2651
2651
|
constructor() {
|
|
@@ -2736,14 +2736,14 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2736
2736
|
// --------------------------------------------------------------------------
|
|
2737
2737
|
renderBottomActionGroup() {
|
|
2738
2738
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
2739
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
2740
|
-
const expandLabel = intlExpand || TEXT$
|
|
2741
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2739
|
+
const tooltip = getSlotted(el, SLOTS$n.expandTooltip);
|
|
2740
|
+
const expandLabel = intlExpand || TEXT$p.expand;
|
|
2741
|
+
const collapseLabel = intlCollapse || TEXT$p.collapse;
|
|
2742
2742
|
const expandToggleNode = !expandDisabled ? (h(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2743
|
-
return expandToggleNode ? (h("calcite-action-group", { class: CSS$
|
|
2743
|
+
return expandToggleNode ? (h("calcite-action-group", { class: CSS$O.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
2744
2744
|
}
|
|
2745
2745
|
render() {
|
|
2746
|
-
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$
|
|
2746
|
+
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$O.container }, h("slot", null), this.renderBottomActionGroup())));
|
|
2747
2747
|
}
|
|
2748
2748
|
get el() { return this; }
|
|
2749
2749
|
static get watchers() { return {
|
|
@@ -2752,7 +2752,7 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2752
2752
|
static get style() { return actionPadCss; }
|
|
2753
2753
|
};
|
|
2754
2754
|
|
|
2755
|
-
const TEXT$
|
|
2755
|
+
const TEXT$o = {
|
|
2756
2756
|
intlClose: "Close"
|
|
2757
2757
|
};
|
|
2758
2758
|
const DURATIONS = {
|
|
@@ -2760,7 +2760,7 @@ const DURATIONS = {
|
|
|
2760
2760
|
medium: 10000,
|
|
2761
2761
|
fast: 6000
|
|
2762
2762
|
};
|
|
2763
|
-
const SLOTS$
|
|
2763
|
+
const SLOTS$m = {
|
|
2764
2764
|
title: "title",
|
|
2765
2765
|
message: "message",
|
|
2766
2766
|
link: "link"
|
|
@@ -2805,7 +2805,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2805
2805
|
*
|
|
2806
2806
|
* @default "Close"
|
|
2807
2807
|
*/
|
|
2808
|
-
this.intlClose = TEXT$
|
|
2808
|
+
this.intlClose = TEXT$o.intlClose;
|
|
2809
2809
|
/** Specifies the placement of the component */
|
|
2810
2810
|
this.placement = "bottom";
|
|
2811
2811
|
/** Specifies the size of the component. */
|
|
@@ -2900,7 +2900,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2900
2900
|
container: true,
|
|
2901
2901
|
queued,
|
|
2902
2902
|
[placement]: true
|
|
2903
|
-
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerDiv }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$
|
|
2903
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerDiv }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$m.title }), h("slot", { name: SLOTS$m.message }), h("slot", { name: SLOTS$m.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
2904
2904
|
}
|
|
2905
2905
|
// when an alert is opened or closed, update queue and determine active alert
|
|
2906
2906
|
alertSync(event) {
|
|
@@ -3232,7 +3232,7 @@ const Avatar = class extends HTMLElement$1 {
|
|
|
3232
3232
|
static get style() { return avatarCss; }
|
|
3233
3233
|
};
|
|
3234
3234
|
|
|
3235
|
-
const CSS$
|
|
3235
|
+
const CSS$N = {
|
|
3236
3236
|
article: "article",
|
|
3237
3237
|
content: "content",
|
|
3238
3238
|
headerContainer: "header-container",
|
|
@@ -3251,13 +3251,13 @@ const CSS$L = {
|
|
|
3251
3251
|
invalid: "invalid",
|
|
3252
3252
|
loading: "loading"
|
|
3253
3253
|
};
|
|
3254
|
-
const TEXT$
|
|
3254
|
+
const TEXT$n = {
|
|
3255
3255
|
collapse: "Collapse",
|
|
3256
3256
|
expand: "Expand",
|
|
3257
3257
|
loading: "Loading",
|
|
3258
3258
|
options: "Options"
|
|
3259
3259
|
};
|
|
3260
|
-
const SLOTS$
|
|
3260
|
+
const SLOTS$l = {
|
|
3261
3261
|
icon: "icon",
|
|
3262
3262
|
control: "control",
|
|
3263
3263
|
headerMenuActions: "header-menu-actions"
|
|
@@ -3310,25 +3310,25 @@ const Block = class extends HTMLElement$1 {
|
|
|
3310
3310
|
*
|
|
3311
3311
|
* @default "Collapse"
|
|
3312
3312
|
*/
|
|
3313
|
-
this.intlCollapse = TEXT$
|
|
3313
|
+
this.intlCollapse = TEXT$n.collapse;
|
|
3314
3314
|
/**
|
|
3315
3315
|
* Aria-label for expanding the toggle and tooltip used for the toggle when collapsed.
|
|
3316
3316
|
*
|
|
3317
3317
|
* @default "Expand"
|
|
3318
3318
|
*/
|
|
3319
|
-
this.intlExpand = TEXT$
|
|
3319
|
+
this.intlExpand = TEXT$n.expand;
|
|
3320
3320
|
/**
|
|
3321
3321
|
* string to override English loading text
|
|
3322
3322
|
*
|
|
3323
3323
|
* @default "Loading"
|
|
3324
3324
|
*/
|
|
3325
|
-
this.intlLoading = TEXT$
|
|
3325
|
+
this.intlLoading = TEXT$n.loading;
|
|
3326
3326
|
/**
|
|
3327
3327
|
* Text string used for the actions menu
|
|
3328
3328
|
*
|
|
3329
3329
|
* @default "Options"
|
|
3330
3330
|
*/
|
|
3331
|
-
this.intlOptions = TEXT$
|
|
3331
|
+
this.intlOptions = TEXT$n.options;
|
|
3332
3332
|
/**
|
|
3333
3333
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
3334
3334
|
*/
|
|
@@ -3383,32 +3383,32 @@ const Block = class extends HTMLElement$1 {
|
|
|
3383
3383
|
const { el, status } = this;
|
|
3384
3384
|
const showingLoadingStatus = this.loading && !this.open;
|
|
3385
3385
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
3386
|
-
const hasIcon = getSlotted(el, SLOTS$
|
|
3387
|
-
const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS$
|
|
3388
|
-
[CSS$
|
|
3389
|
-
[CSS$
|
|
3390
|
-
[CSS$
|
|
3391
|
-
[CSS$
|
|
3386
|
+
const hasIcon = getSlotted(el, SLOTS$l.icon) || statusIcon;
|
|
3387
|
+
const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS$l.icon })) : (h("calcite-icon", { class: {
|
|
3388
|
+
[CSS$N.statusIcon]: true,
|
|
3389
|
+
[CSS$N.valid]: status == "valid",
|
|
3390
|
+
[CSS$N.invalid]: status == "invalid",
|
|
3391
|
+
[CSS$N.loading]: showingLoadingStatus
|
|
3392
3392
|
}, icon: statusIcon, scale: "m" }));
|
|
3393
|
-
return hasIcon ? h("div", { class: CSS$
|
|
3393
|
+
return hasIcon ? h("div", { class: CSS$N.icon }, iconEl) : null;
|
|
3394
3394
|
}
|
|
3395
3395
|
renderTitle() {
|
|
3396
3396
|
const { heading, headingLevel, summary, description } = this;
|
|
3397
|
-
return heading || summary || description ? (h("div", { class: CSS$
|
|
3397
|
+
return heading || summary || description ? (h("div", { class: CSS$N.title }, h(Heading, { class: CSS$N.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary || description ? (h("div", { class: CSS$N.description }, summary || description)) : null)) : null;
|
|
3398
3398
|
}
|
|
3399
3399
|
render() {
|
|
3400
3400
|
const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
3401
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3402
|
-
const headerContent = (h("header", { class: CSS$
|
|
3403
|
-
const hasControl = !!getSlotted(el, SLOTS$
|
|
3404
|
-
const hasMenuActions = !!getSlotted(el, SLOTS$
|
|
3401
|
+
const toggleLabel = open ? intlCollapse || TEXT$n.collapse : intlExpand || TEXT$n.expand;
|
|
3402
|
+
const headerContent = (h("header", { class: CSS$N.header }, this.renderIcon(), this.renderTitle()));
|
|
3403
|
+
const hasControl = !!getSlotted(el, SLOTS$l.control);
|
|
3404
|
+
const hasMenuActions = !!getSlotted(el, SLOTS$l.headerMenuActions);
|
|
3405
3405
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
3406
3406
|
const { guid } = this;
|
|
3407
3407
|
const regionId = `${guid}-region`;
|
|
3408
3408
|
const buttonId = `${guid}-button`;
|
|
3409
|
-
const headerNode = (h("div", { class: CSS$
|
|
3409
|
+
const headerNode = (h("div", { class: CSS$N.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$N.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$N.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$N.controlContainer }, h("slot", { name: SLOTS$l.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$n.options }, h("slot", { name: SLOTS$l.headerMenuActions }))) : null));
|
|
3410
3410
|
return (h(Host, null, h("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
3411
|
-
[CSS$
|
|
3411
|
+
[CSS$N.article]: true
|
|
3412
3412
|
} }, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: {
|
|
3413
3413
|
content: true,
|
|
3414
3414
|
"content--spaced": !this.disablePadding
|
|
@@ -3418,7 +3418,7 @@ const Block = class extends HTMLElement$1 {
|
|
|
3418
3418
|
static get style() { return blockCss; }
|
|
3419
3419
|
};
|
|
3420
3420
|
|
|
3421
|
-
const CSS$
|
|
3421
|
+
const CSS$M = {
|
|
3422
3422
|
content: "content",
|
|
3423
3423
|
invalid: "invalid",
|
|
3424
3424
|
toggle: "toggle",
|
|
@@ -3430,7 +3430,7 @@ const CSS$K = {
|
|
|
3430
3430
|
statusIcon: "status-icon",
|
|
3431
3431
|
valid: "valid"
|
|
3432
3432
|
};
|
|
3433
|
-
const TEXT$
|
|
3433
|
+
const TEXT$m = {
|
|
3434
3434
|
collapse: "Collapse",
|
|
3435
3435
|
expand: "Expand"
|
|
3436
3436
|
};
|
|
@@ -3488,9 +3488,9 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3488
3488
|
const { status } = this;
|
|
3489
3489
|
const statusIcon = (_a = ICONS$b[status]) !== null && _a !== void 0 ? _a : false;
|
|
3490
3490
|
const statusIconClasses = {
|
|
3491
|
-
[CSS$
|
|
3492
|
-
[CSS$
|
|
3493
|
-
[CSS$
|
|
3491
|
+
[CSS$M.statusIcon]: true,
|
|
3492
|
+
[CSS$M.valid]: status == "valid",
|
|
3493
|
+
[CSS$M.invalid]: status == "invalid"
|
|
3494
3494
|
};
|
|
3495
3495
|
return !!statusIcon ? (h("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
3496
3496
|
}
|
|
@@ -3502,18 +3502,18 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3502
3502
|
: dir === "rtl"
|
|
3503
3503
|
? ICONS$b.menuClosedLeft
|
|
3504
3504
|
: ICONS$b.menuClosedRight;
|
|
3505
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3505
|
+
const toggleLabel = open ? intlCollapse || TEXT$m.collapse : intlExpand || TEXT$m.expand;
|
|
3506
3506
|
const { guid } = this;
|
|
3507
3507
|
const regionId = `${guid}-region`;
|
|
3508
3508
|
const buttonId = `${guid}-button`;
|
|
3509
3509
|
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
3510
|
-
[CSS$
|
|
3511
|
-
[CSS$
|
|
3512
|
-
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$
|
|
3513
|
-
[CSS$
|
|
3514
|
-
[CSS$
|
|
3515
|
-
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$
|
|
3516
|
-
return (h(Host, null, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
3510
|
+
[CSS$M.toggle]: true,
|
|
3511
|
+
[CSS$M.toggleSwitch]: true
|
|
3512
|
+
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$M.toggleSwitchContent }, h("span", { class: CSS$M.toggleSwitchText }, text)), h("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (h("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
3513
|
+
[CSS$M.sectionHeader]: true,
|
|
3514
|
+
[CSS$M.toggle]: true
|
|
3515
|
+
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$M.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
3516
|
+
return (h(Host, null, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$M.content, hidden: !open, id: regionId }, h("slot", null))));
|
|
3517
3517
|
}
|
|
3518
3518
|
get el() { return this; }
|
|
3519
3519
|
static get style() { return blockSectionCss; }
|
|
@@ -3547,7 +3547,7 @@ const BlockSection = class extends HTMLElement$1 {
|
|
|
3547
3547
|
}
|
|
3548
3548
|
})(HTMLFormElement.prototype);
|
|
3549
3549
|
|
|
3550
|
-
const CSS$
|
|
3550
|
+
const CSS$L = {
|
|
3551
3551
|
buttonLoader: "calcite-button--loader",
|
|
3552
3552
|
content: "content",
|
|
3553
3553
|
contentSlotted: "content--slotted",
|
|
@@ -3559,7 +3559,7 @@ const CSS$J = {
|
|
|
3559
3559
|
iconStartEmpty: "icon-start-empty",
|
|
3560
3560
|
iconEndEmpty: "icon-end-empty"
|
|
3561
3561
|
};
|
|
3562
|
-
const TEXT$
|
|
3562
|
+
const TEXT$l = {
|
|
3563
3563
|
loading: "Loading"
|
|
3564
3564
|
};
|
|
3565
3565
|
|
|
@@ -3906,7 +3906,7 @@ const Button = class extends HTMLElement$1 {
|
|
|
3906
3906
|
*
|
|
3907
3907
|
* @default "Loading"
|
|
3908
3908
|
*/
|
|
3909
|
-
this.intlLoading = TEXT$
|
|
3909
|
+
this.intlLoading = TEXT$l.loading;
|
|
3910
3910
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
3911
3911
|
this.loading = false;
|
|
3912
3912
|
/** optionally add a round style to the button */
|
|
@@ -3978,14 +3978,14 @@ const Button = class extends HTMLElement$1 {
|
|
|
3978
3978
|
render() {
|
|
3979
3979
|
const childElType = this.href ? "a" : "button";
|
|
3980
3980
|
const Tag = childElType;
|
|
3981
|
-
const loaderNode = this.hasLoader ? (h("div", { class: CSS$
|
|
3982
|
-
const iconStartEl = (h("calcite-icon", { class: { [CSS$
|
|
3983
|
-
const iconEndEl = (h("calcite-icon", { class: { [CSS$
|
|
3984
|
-
const contentEl = (h("span", { class: CSS$
|
|
3981
|
+
const loaderNode = this.hasLoader ? (h("div", { class: CSS$L.buttonLoader }, h("calcite-loader", { active: true, class: this.loading ? CSS$L.loadingIn : CSS$L.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
3982
|
+
const iconStartEl = (h("calcite-icon", { class: { [CSS$L.icon]: true, [CSS$L.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
3983
|
+
const iconEndEl = (h("calcite-icon", { class: { [CSS$L.icon]: true, [CSS$L.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
3984
|
+
const contentEl = (h("span", { class: CSS$L.content }, h("slot", null)));
|
|
3985
3985
|
return (h(Tag, { "aria-label": getLabelText(this), class: {
|
|
3986
|
-
[CSS$
|
|
3987
|
-
[CSS$
|
|
3988
|
-
[CSS$
|
|
3986
|
+
[CSS$L.contentSlotted]: this.hasContent,
|
|
3987
|
+
[CSS$L.iconStartEmpty]: !this.iconStart,
|
|
3988
|
+
[CSS$L.iconEndEmpty]: !this.iconEnd
|
|
3989
3989
|
}, disabled: this.disabled || this.loading, href: childElType === "a" && this.href, name: childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: childElType === "a" && this.target, type: childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
3990
3990
|
}
|
|
3991
3991
|
//--------------------------------------------------------------------------
|
|
@@ -4026,7 +4026,7 @@ const Button = class extends HTMLElement$1 {
|
|
|
4026
4026
|
static get style() { return buttonCss; }
|
|
4027
4027
|
};
|
|
4028
4028
|
|
|
4029
|
-
const CSS$
|
|
4029
|
+
const CSS$K = {
|
|
4030
4030
|
container: "container",
|
|
4031
4031
|
header: "header",
|
|
4032
4032
|
footer: "footer",
|
|
@@ -4035,14 +4035,14 @@ const CSS$I = {
|
|
|
4035
4035
|
checkboxWrapper: "checkbox-wrapper",
|
|
4036
4036
|
thumbnailWrapper: "thumbnail-wrapper"
|
|
4037
4037
|
};
|
|
4038
|
-
const SLOTS$
|
|
4038
|
+
const SLOTS$k = {
|
|
4039
4039
|
thumbnail: "thumbnail",
|
|
4040
4040
|
title: "title",
|
|
4041
4041
|
subtitle: "subtitle",
|
|
4042
4042
|
footerLeading: "footer-leading",
|
|
4043
4043
|
footerTrailing: "footer-trailing"
|
|
4044
4044
|
};
|
|
4045
|
-
const TEXT$
|
|
4045
|
+
const TEXT$k = {
|
|
4046
4046
|
select: "Select",
|
|
4047
4047
|
deselect: "Deselect",
|
|
4048
4048
|
loading: "Loading"
|
|
@@ -4072,19 +4072,19 @@ const Card = class extends HTMLElement$1 {
|
|
|
4072
4072
|
*
|
|
4073
4073
|
* @default "Loading"
|
|
4074
4074
|
*/
|
|
4075
|
-
this.intlLoading = TEXT$
|
|
4075
|
+
this.intlLoading = TEXT$k.loading;
|
|
4076
4076
|
/**
|
|
4077
4077
|
* string to override English select text for checkbox when selectable is true
|
|
4078
4078
|
*
|
|
4079
4079
|
* @default "Select"
|
|
4080
4080
|
*/
|
|
4081
|
-
this.intlSelect = TEXT$
|
|
4081
|
+
this.intlSelect = TEXT$k.select;
|
|
4082
4082
|
/**
|
|
4083
4083
|
* string to override English deselect text for checkbox when selectable is true
|
|
4084
4084
|
*
|
|
4085
4085
|
* @default "Deselect"
|
|
4086
4086
|
*/
|
|
4087
|
-
this.intlDeselect = TEXT$
|
|
4087
|
+
this.intlDeselect = TEXT$k.deselect;
|
|
4088
4088
|
this.thumbnailPosition = "block-start";
|
|
4089
4089
|
//--------------------------------------------------------------------------
|
|
4090
4090
|
//
|
|
@@ -4123,32 +4123,32 @@ const Card = class extends HTMLElement$1 {
|
|
|
4123
4123
|
render() {
|
|
4124
4124
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
4125
4125
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
4126
|
-
return (h("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), h("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$
|
|
4126
|
+
return (h("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), h("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$K.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
4127
4127
|
}
|
|
4128
4128
|
selectCard() {
|
|
4129
4129
|
this.selected = !this.selected;
|
|
4130
4130
|
this.calciteCardSelect.emit();
|
|
4131
4131
|
}
|
|
4132
4132
|
renderThumbnail() {
|
|
4133
|
-
return getSlotted(this.el, SLOTS$
|
|
4133
|
+
return getSlotted(this.el, SLOTS$k.thumbnail) ? (h("section", { class: CSS$K.thumbnailWrapper }, h("slot", { name: SLOTS$k.thumbnail }))) : null;
|
|
4134
4134
|
}
|
|
4135
4135
|
renderCheckbox() {
|
|
4136
4136
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
4137
|
-
return (h("calcite-label", { class: CSS$
|
|
4137
|
+
return (h("calcite-label", { class: CSS$K.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
4138
4138
|
}
|
|
4139
4139
|
renderHeader() {
|
|
4140
4140
|
const { el } = this;
|
|
4141
|
-
const title = getSlotted(el, SLOTS$
|
|
4142
|
-
const subtitle = getSlotted(el, SLOTS$
|
|
4141
|
+
const title = getSlotted(el, SLOTS$k.title);
|
|
4142
|
+
const subtitle = getSlotted(el, SLOTS$k.subtitle);
|
|
4143
4143
|
const hasHeader = title || subtitle;
|
|
4144
|
-
return hasHeader ? (h("header", { class: CSS$
|
|
4144
|
+
return hasHeader ? (h("header", { class: CSS$K.header }, h("slot", { name: SLOTS$k.title }), h("slot", { name: SLOTS$k.subtitle }))) : null;
|
|
4145
4145
|
}
|
|
4146
4146
|
renderFooter() {
|
|
4147
4147
|
const { el } = this;
|
|
4148
|
-
const leadingFooter = getSlotted(el, SLOTS$
|
|
4149
|
-
const trailingFooter = getSlotted(el, SLOTS$
|
|
4148
|
+
const leadingFooter = getSlotted(el, SLOTS$k.footerLeading);
|
|
4149
|
+
const trailingFooter = getSlotted(el, SLOTS$k.footerTrailing);
|
|
4150
4150
|
const hasFooter = leadingFooter || trailingFooter;
|
|
4151
|
-
return hasFooter ? (h("footer", { class: CSS$
|
|
4151
|
+
return hasFooter ? (h("footer", { class: CSS$K.footer }, h("slot", { name: SLOTS$k.footerLeading }), h("slot", { name: SLOTS$k.footerTrailing }))) : null;
|
|
4152
4152
|
}
|
|
4153
4153
|
get el() { return this; }
|
|
4154
4154
|
static get style() { return cardCss; }
|
|
@@ -4277,17 +4277,17 @@ const Checkbox = class extends HTMLElement$1 {
|
|
|
4277
4277
|
static get style() { return checkboxCss; }
|
|
4278
4278
|
};
|
|
4279
4279
|
|
|
4280
|
-
const CSS$
|
|
4280
|
+
const CSS$J = {
|
|
4281
4281
|
title: "title",
|
|
4282
4282
|
close: "close",
|
|
4283
4283
|
imageContainer: "image-container",
|
|
4284
4284
|
chipIcon: "chip-icon",
|
|
4285
4285
|
closeIcon: "close-icon"
|
|
4286
4286
|
};
|
|
4287
|
-
const TEXT$
|
|
4287
|
+
const TEXT$j = {
|
|
4288
4288
|
close: "Close"
|
|
4289
4289
|
};
|
|
4290
|
-
const SLOTS$
|
|
4290
|
+
const SLOTS$j = {
|
|
4291
4291
|
image: "image"
|
|
4292
4292
|
};
|
|
4293
4293
|
const ICONS$a = {
|
|
@@ -4318,7 +4318,7 @@ const Chip = class extends HTMLElement$1 {
|
|
|
4318
4318
|
*
|
|
4319
4319
|
* @default "Close"
|
|
4320
4320
|
*/
|
|
4321
|
-
this.dismissLabel = TEXT$
|
|
4321
|
+
this.dismissLabel = TEXT$j.close;
|
|
4322
4322
|
/** flip the icon in rtl */
|
|
4323
4323
|
this.iconFlipRtl = false;
|
|
4324
4324
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -4365,13 +4365,13 @@ const Chip = class extends HTMLElement$1 {
|
|
|
4365
4365
|
//--------------------------------------------------------------------------
|
|
4366
4366
|
renderChipImage() {
|
|
4367
4367
|
const { el } = this;
|
|
4368
|
-
const hasChipImage = getSlotted(el, SLOTS$
|
|
4369
|
-
return hasChipImage ? (h("div", { class: CSS$
|
|
4368
|
+
const hasChipImage = getSlotted(el, SLOTS$j.image);
|
|
4369
|
+
return hasChipImage ? (h("div", { class: CSS$J.imageContainer, key: "image" }, h("slot", { name: SLOTS$j.image }))) : null;
|
|
4370
4370
|
}
|
|
4371
4371
|
render() {
|
|
4372
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
4373
|
-
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
4374
|
-
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$
|
|
4372
|
+
const iconEl = (h("calcite-icon", { class: CSS$J.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
4373
|
+
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$J.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { class: CSS$J.closeIcon, icon: ICONS$a.close, scale: "s" })));
|
|
4374
|
+
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$J.title, id: this.guid }, h("slot", null)), this.dismissible ? closeButton : null));
|
|
4375
4375
|
}
|
|
4376
4376
|
get el() { return this; }
|
|
4377
4377
|
static get style() { return chipCss; }
|
|
@@ -6487,7 +6487,7 @@ function zeroArray(array, length) {
|
|
|
6487
6487
|
|
|
6488
6488
|
var color = Color;
|
|
6489
6489
|
|
|
6490
|
-
const CSS$
|
|
6490
|
+
const CSS$I = {
|
|
6491
6491
|
container: "container",
|
|
6492
6492
|
controlSection: "control-section",
|
|
6493
6493
|
hexOptions: "color-hex-options",
|
|
@@ -6525,7 +6525,7 @@ const HSV_LIMITS = {
|
|
|
6525
6525
|
s: 100,
|
|
6526
6526
|
v: 100
|
|
6527
6527
|
};
|
|
6528
|
-
const TEXT$
|
|
6528
|
+
const TEXT$i = {
|
|
6529
6529
|
b: "B",
|
|
6530
6530
|
blue: "Blue",
|
|
6531
6531
|
deleteColor: "Delete color",
|
|
@@ -6655,115 +6655,115 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6655
6655
|
*
|
|
6656
6656
|
* @default "B"
|
|
6657
6657
|
*/
|
|
6658
|
-
this.intlB = TEXT$
|
|
6658
|
+
this.intlB = TEXT$i.b;
|
|
6659
6659
|
/**
|
|
6660
6660
|
* Label used for the blue channel description
|
|
6661
6661
|
*
|
|
6662
6662
|
* @default "Blue"
|
|
6663
6663
|
*/
|
|
6664
|
-
this.intlBlue = TEXT$
|
|
6664
|
+
this.intlBlue = TEXT$i.blue;
|
|
6665
6665
|
/**
|
|
6666
6666
|
* Label used for the delete color button.
|
|
6667
6667
|
*
|
|
6668
6668
|
* @default "Delete color"
|
|
6669
6669
|
*/
|
|
6670
|
-
this.intlDeleteColor = TEXT$
|
|
6670
|
+
this.intlDeleteColor = TEXT$i.deleteColor;
|
|
6671
6671
|
/**
|
|
6672
6672
|
* Label used for the green channel
|
|
6673
6673
|
*
|
|
6674
6674
|
* @default "G"
|
|
6675
6675
|
*/
|
|
6676
|
-
this.intlG = TEXT$
|
|
6676
|
+
this.intlG = TEXT$i.g;
|
|
6677
6677
|
/**
|
|
6678
6678
|
* Label used for the green channel description
|
|
6679
6679
|
*
|
|
6680
6680
|
* @default "Green"
|
|
6681
6681
|
*/
|
|
6682
|
-
this.intlGreen = TEXT$
|
|
6682
|
+
this.intlGreen = TEXT$i.green;
|
|
6683
6683
|
/**
|
|
6684
6684
|
* Label used for the hue channel
|
|
6685
6685
|
*
|
|
6686
6686
|
* @default "H"
|
|
6687
6687
|
*/
|
|
6688
|
-
this.intlH = TEXT$
|
|
6688
|
+
this.intlH = TEXT$i.h;
|
|
6689
6689
|
/**
|
|
6690
6690
|
* Label used for the HSV mode
|
|
6691
6691
|
*
|
|
6692
6692
|
* @default "HSV"
|
|
6693
6693
|
*/
|
|
6694
|
-
this.intlHsv = TEXT$
|
|
6694
|
+
this.intlHsv = TEXT$i.hsv;
|
|
6695
6695
|
/**
|
|
6696
6696
|
* Label used for the hex input
|
|
6697
6697
|
*
|
|
6698
6698
|
* @default "Hex"
|
|
6699
6699
|
*/
|
|
6700
|
-
this.intlHex = TEXT$
|
|
6700
|
+
this.intlHex = TEXT$i.hex;
|
|
6701
6701
|
/**
|
|
6702
6702
|
* Label used for the hue channel description
|
|
6703
6703
|
*
|
|
6704
6704
|
* @default "Hue"
|
|
6705
6705
|
*/
|
|
6706
|
-
this.intlHue = TEXT$
|
|
6706
|
+
this.intlHue = TEXT$i.hue;
|
|
6707
6707
|
/**
|
|
6708
6708
|
* Label used for the hex input when there is no color selected.
|
|
6709
6709
|
*
|
|
6710
6710
|
* @default "No color"
|
|
6711
6711
|
*/
|
|
6712
|
-
this.intlNoColor = TEXT$
|
|
6712
|
+
this.intlNoColor = TEXT$i.noColor;
|
|
6713
6713
|
/**
|
|
6714
6714
|
* Label used for the red channel
|
|
6715
6715
|
*
|
|
6716
6716
|
* @default "R"
|
|
6717
6717
|
*/
|
|
6718
|
-
this.intlR = TEXT$
|
|
6718
|
+
this.intlR = TEXT$i.r;
|
|
6719
6719
|
/**
|
|
6720
6720
|
* Label used for the red channel description
|
|
6721
6721
|
*
|
|
6722
6722
|
* @default "Red"
|
|
6723
6723
|
*/
|
|
6724
|
-
this.intlRed = TEXT$
|
|
6724
|
+
this.intlRed = TEXT$i.red;
|
|
6725
6725
|
/**
|
|
6726
6726
|
* Label used for the RGB mode
|
|
6727
6727
|
*
|
|
6728
6728
|
* @default "RGB"
|
|
6729
6729
|
*/
|
|
6730
|
-
this.intlRgb = TEXT$
|
|
6730
|
+
this.intlRgb = TEXT$i.rgb;
|
|
6731
6731
|
/**
|
|
6732
6732
|
* Label used for the saturation channel
|
|
6733
6733
|
*
|
|
6734
6734
|
* @default "S"
|
|
6735
6735
|
*/
|
|
6736
|
-
this.intlS = TEXT$
|
|
6736
|
+
this.intlS = TEXT$i.s;
|
|
6737
6737
|
/**
|
|
6738
6738
|
* Label used for the saturation channel description
|
|
6739
6739
|
*
|
|
6740
6740
|
* @default "Saturation"
|
|
6741
6741
|
*/
|
|
6742
|
-
this.intlSaturation = TEXT$
|
|
6742
|
+
this.intlSaturation = TEXT$i.saturation;
|
|
6743
6743
|
/**
|
|
6744
6744
|
* Label used for the save color button.
|
|
6745
6745
|
*
|
|
6746
6746
|
* @default "Save color"
|
|
6747
6747
|
*/
|
|
6748
|
-
this.intlSaveColor = TEXT$
|
|
6748
|
+
this.intlSaveColor = TEXT$i.saveColor;
|
|
6749
6749
|
/**
|
|
6750
6750
|
* Label used for the saved colors section
|
|
6751
6751
|
*
|
|
6752
6752
|
* @default "Saved"
|
|
6753
6753
|
*/
|
|
6754
|
-
this.intlSaved = TEXT$
|
|
6754
|
+
this.intlSaved = TEXT$i.saved;
|
|
6755
6755
|
/**
|
|
6756
6756
|
* Label used for the value channel
|
|
6757
6757
|
*
|
|
6758
6758
|
* @default "V"
|
|
6759
6759
|
*/
|
|
6760
|
-
this.intlV = TEXT$
|
|
6760
|
+
this.intlV = TEXT$i.v;
|
|
6761
6761
|
/**
|
|
6762
6762
|
* Label used for the
|
|
6763
6763
|
*
|
|
6764
6764
|
* @default "Value"
|
|
6765
6765
|
*/
|
|
6766
|
-
this.intlValue = TEXT$
|
|
6766
|
+
this.intlValue = TEXT$i.value;
|
|
6767
6767
|
/**
|
|
6768
6768
|
* The scale of the color picker.
|
|
6769
6769
|
*/
|
|
@@ -7030,7 +7030,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7030
7030
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
7031
7031
|
const active = channelMode === activeChannelMode;
|
|
7032
7032
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
7033
|
-
return (h("calcite-tab-title", { active: active, class: CSS$
|
|
7033
|
+
return (h("calcite-tab-title", { active: active, class: CSS$I.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
7034
7034
|
};
|
|
7035
7035
|
this.renderChannelsTab = (channelMode) => {
|
|
7036
7036
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -7041,11 +7041,11 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7041
7041
|
? [intlRed, intlGreen, intlBlue]
|
|
7042
7042
|
: [intlHue, intlSaturation, intlValue];
|
|
7043
7043
|
const direction = getElementDir(this.el);
|
|
7044
|
-
return (h("calcite-tab", { active: active, class: CSS$
|
|
7044
|
+
return (h("calcite-tab", { active: active, class: CSS$I.control, key: channelMode }, h("div", { class: CSS$I.channels, dir: "ltr" }, channels.map((channel, index) =>
|
|
7045
7045
|
/* the channel container is ltr, so we apply the host's direction */
|
|
7046
7046
|
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
7047
7047
|
};
|
|
7048
|
-
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("calcite-input", { class: CSS$
|
|
7048
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("calcite-input", { class: CSS$I.channel, "data-channel-index": index, dir: direction, label: ariaLabel, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
7049
7049
|
this.deleteColor = () => {
|
|
7050
7050
|
const colorToDelete = this.color.hex();
|
|
7051
7051
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -7148,7 +7148,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7148
7148
|
this.shiftKeyChannelAdjustment = 0;
|
|
7149
7149
|
const key = event.key;
|
|
7150
7150
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
7151
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
7151
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$I.channel); })) {
|
|
7152
7152
|
return;
|
|
7153
7153
|
}
|
|
7154
7154
|
const { shiftKey } = event;
|
|
@@ -7219,20 +7219,20 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7219
7219
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
7220
7220
|
const noColor = color === null;
|
|
7221
7221
|
const vertical = scopeOrientation === "vertical";
|
|
7222
|
-
return (h("div", { class: CSS$
|
|
7223
|
-
[CSS$
|
|
7224
|
-
[CSS$
|
|
7225
|
-
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$
|
|
7226
|
-
[CSS$
|
|
7227
|
-
[CSS$
|
|
7228
|
-
} }, hideHex ? null : (h("div", { class: CSS$
|
|
7229
|
-
[CSS$
|
|
7230
|
-
[CSS$
|
|
7231
|
-
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
7232
|
-
[CSS$
|
|
7233
|
-
[CSS$
|
|
7234
|
-
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$
|
|
7235
|
-
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
7222
|
+
return (h("div", { class: CSS$I.container }, h("div", { class: CSS$I.colorFieldAndSliderWrap }, h("canvas", { class: {
|
|
7223
|
+
[CSS$I.colorFieldAndSlider]: true,
|
|
7224
|
+
[CSS$I.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
7225
|
+
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$I.scope]: true, [CSS$I.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), h("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR$1.round().hue(), class: { [CSS$I.scope]: true, [CSS$I.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, ref: this.storeHueScope, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (h("div", { class: {
|
|
7226
|
+
[CSS$I.controlSection]: true,
|
|
7227
|
+
[CSS$I.section]: true
|
|
7228
|
+
} }, hideHex ? null : (h("div", { class: CSS$I.hexOptions }, h("span", { class: {
|
|
7229
|
+
[CSS$I.header]: true,
|
|
7230
|
+
[CSS$I.headerHex]: true
|
|
7231
|
+
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$I.control, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (h("calcite-tabs", { class: {
|
|
7232
|
+
[CSS$I.colorModeContainer]: true,
|
|
7233
|
+
[CSS$I.splitSection]: true
|
|
7234
|
+
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$I.savedColorsSection]: true, [CSS$I.section]: true } }, h("div", { class: CSS$I.header }, h("label", null, intlSaved), h("div", { class: CSS$I.savedColorsButtons }, h("calcite-button", { appearance: "transparent", class: CSS$I.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), h("calcite-button", { appearance: "transparent", class: CSS$I.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (h("div", { class: CSS$I.savedColors }, [
|
|
7235
|
+
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$I.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
7236
7236
|
])) : null))));
|
|
7237
7237
|
}
|
|
7238
7238
|
// --------------------------------------------------------------------------
|
|
@@ -7427,7 +7427,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7427
7427
|
static get style() { return colorPickerCss; }
|
|
7428
7428
|
};
|
|
7429
7429
|
|
|
7430
|
-
const CSS$
|
|
7430
|
+
const CSS$H = {
|
|
7431
7431
|
container: "container",
|
|
7432
7432
|
preview: "preview",
|
|
7433
7433
|
input: "input"
|
|
@@ -7458,13 +7458,13 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7458
7458
|
*
|
|
7459
7459
|
* @default "Hex"
|
|
7460
7460
|
*/
|
|
7461
|
-
this.intlHex = TEXT$
|
|
7461
|
+
this.intlHex = TEXT$i.hex;
|
|
7462
7462
|
/**
|
|
7463
7463
|
* Label used for the hex input when there is no color selected.
|
|
7464
7464
|
*
|
|
7465
7465
|
* @default "No color"
|
|
7466
7466
|
*/
|
|
7467
|
-
this.intlNoColor = TEXT$
|
|
7467
|
+
this.intlNoColor = TEXT$i.noColor;
|
|
7468
7468
|
/**
|
|
7469
7469
|
* The component's scale.
|
|
7470
7470
|
*/
|
|
@@ -7558,7 +7558,7 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7558
7558
|
render() {
|
|
7559
7559
|
const { intlHex, value } = this;
|
|
7560
7560
|
const hexInputValue = this.formatForInternalInput(value);
|
|
7561
|
-
return (h("div", { class: CSS$
|
|
7561
|
+
return (h("div", { class: CSS$H.container }, h("calcite-input", { class: CSS$H.input, label: intlHex, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS$H.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7562
7562
|
}
|
|
7563
7563
|
//--------------------------------------------------------------------------
|
|
7564
7564
|
//
|
|
@@ -7617,7 +7617,7 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7617
7617
|
static get style() { return colorPickerHexInputCss; }
|
|
7618
7618
|
};
|
|
7619
7619
|
|
|
7620
|
-
const CSS$
|
|
7620
|
+
const CSS$G = {
|
|
7621
7621
|
swatch: "swatch",
|
|
7622
7622
|
noColorIcon: "no-color-icon"
|
|
7623
7623
|
};
|
|
@@ -7664,7 +7664,7 @@ const ColorPickerSwatch = class extends HTMLElement$1 {
|
|
|
7664
7664
|
const hex = internalColor.hex();
|
|
7665
7665
|
const theme = getThemeName(el);
|
|
7666
7666
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
7667
|
-
return (h("svg", { class: CSS$
|
|
7667
|
+
return (h("svg", { class: CSS$G.swatch, xmlns: "http://www.w3.org/2000/svg" }, h("title", null, hex), h("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
7668
7668
|
}
|
|
7669
7669
|
get el() { return this; }
|
|
7670
7670
|
static get watchers() { return {
|
|
@@ -9517,7 +9517,7 @@ const popperMenuComputedPlacements = [
|
|
|
9517
9517
|
"bottom",
|
|
9518
9518
|
"bottom-end"
|
|
9519
9519
|
];
|
|
9520
|
-
const CSS$
|
|
9520
|
+
const CSS$F = {
|
|
9521
9521
|
animation: "calcite-popper-anim",
|
|
9522
9522
|
animationActive: "calcite-popper-anim--active"
|
|
9523
9523
|
};
|
|
@@ -9570,7 +9570,7 @@ const defaultOffsetDistance = Math.ceil(hypotenuse(visiblePointerSize, visiblePo
|
|
|
9570
9570
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
9571
9571
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
9572
9572
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
9573
|
-
const TEXT$
|
|
9573
|
+
const TEXT$h = {
|
|
9574
9574
|
removeTag: "Remove tag"
|
|
9575
9575
|
};
|
|
9576
9576
|
|
|
@@ -9661,7 +9661,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9661
9661
|
*
|
|
9662
9662
|
* @default "Remove tag"
|
|
9663
9663
|
*/
|
|
9664
|
-
this.intlRemoveTag = TEXT$
|
|
9664
|
+
this.intlRemoveTag = TEXT$h.removeTag;
|
|
9665
9665
|
this.internalValueChangeFlag = false;
|
|
9666
9666
|
this.items = [];
|
|
9667
9667
|
this.groupItems = [];
|
|
@@ -10393,8 +10393,8 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10393
10393
|
const { active, setMenuEl, setListContainerEl, open } = this;
|
|
10394
10394
|
const classes = {
|
|
10395
10395
|
"list-container": true,
|
|
10396
|
-
[CSS$
|
|
10397
|
-
[CSS$
|
|
10396
|
+
[CSS$F.animation]: true,
|
|
10397
|
+
[CSS$F.animationActive]: open || active
|
|
10398
10398
|
};
|
|
10399
10399
|
return (h("div", { "aria-hidden": "true", class: { "popper-container": true, "popper-container--active": open || active }, ref: setMenuEl }, h("div", { class: classes, onTransitionEnd: this.transitionEnd, ref: setListContainerEl }, h("ul", { class: { list: true, "list--hide": !(open || active) } }, h("slot", null)))));
|
|
10400
10400
|
}
|
|
@@ -10433,7 +10433,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10433
10433
|
static get style() { return comboboxCss; }
|
|
10434
10434
|
};
|
|
10435
10435
|
|
|
10436
|
-
const CSS$
|
|
10436
|
+
const CSS$E = {
|
|
10437
10437
|
icon: "icon",
|
|
10438
10438
|
iconActive: "icon--active",
|
|
10439
10439
|
custom: "icon--custom",
|
|
@@ -10524,18 +10524,18 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10524
10524
|
// --------------------------------------------------------------------------
|
|
10525
10525
|
renderIcon(isSingle) {
|
|
10526
10526
|
const { icon, disabled, selected } = this;
|
|
10527
|
-
const level = `${CSS$
|
|
10527
|
+
const level = `${CSS$E.icon}--indent`;
|
|
10528
10528
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
10529
10529
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
10530
10530
|
const showDot = isSingle && !icon && !disabled;
|
|
10531
10531
|
return showDot ? (h("span", { class: {
|
|
10532
|
-
[CSS$
|
|
10533
|
-
[CSS$
|
|
10532
|
+
[CSS$E.icon]: true,
|
|
10533
|
+
[CSS$E.dot]: true,
|
|
10534
10534
|
[level]: true
|
|
10535
10535
|
} })) : (h("calcite-icon", { class: {
|
|
10536
|
-
[CSS$
|
|
10537
|
-
[CSS$
|
|
10538
|
-
[CSS$
|
|
10536
|
+
[CSS$E.icon]: !icon,
|
|
10537
|
+
[CSS$E.custom]: !!icon,
|
|
10538
|
+
[CSS$E.iconActive]: icon && selected,
|
|
10539
10539
|
[level]: true
|
|
10540
10540
|
}, icon: icon || iconPath, scale: "s" }));
|
|
10541
10541
|
}
|
|
@@ -10548,13 +10548,13 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10548
10548
|
render() {
|
|
10549
10549
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
10550
10550
|
const classes = {
|
|
10551
|
-
[CSS$
|
|
10552
|
-
[CSS$
|
|
10553
|
-
[CSS$
|
|
10554
|
-
[CSS$
|
|
10551
|
+
[CSS$E.label]: true,
|
|
10552
|
+
[CSS$E.selected]: this.selected,
|
|
10553
|
+
[CSS$E.active]: this.active,
|
|
10554
|
+
[CSS$E.single]: isSingleSelect
|
|
10555
10555
|
};
|
|
10556
10556
|
const depth = getDepth(this.el);
|
|
10557
|
-
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$
|
|
10557
|
+
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$E.title }, this.textLabel)), this.renderChildren())));
|
|
10558
10558
|
}
|
|
10559
10559
|
get el() { return this; }
|
|
10560
10560
|
static get watchers() { return {
|
|
@@ -10563,7 +10563,7 @@ const ComboboxItem = class extends HTMLElement$1 {
|
|
|
10563
10563
|
static get style() { return comboboxItemCss; }
|
|
10564
10564
|
};
|
|
10565
10565
|
|
|
10566
|
-
const CSS$
|
|
10566
|
+
const CSS$D = {
|
|
10567
10567
|
list: "list",
|
|
10568
10568
|
label: "label",
|
|
10569
10569
|
title: "title"
|
|
@@ -10595,8 +10595,8 @@ const ComboboxItemGroup = class extends HTMLElement$1 {
|
|
|
10595
10595
|
// --------------------------------------------------------------------------
|
|
10596
10596
|
render() {
|
|
10597
10597
|
const { el, scale } = this;
|
|
10598
|
-
const indent = `${CSS$
|
|
10599
|
-
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
10598
|
+
const indent = `${CSS$D.label}--indent-${getDepth(el)}`;
|
|
10599
|
+
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$D.list]: true, [`scale--${scale}`]: true }, role: "group" }, h("li", { class: { [CSS$D.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, h("span", { class: CSS$D.title }, this.label)), h("slot", null)));
|
|
10600
10600
|
}
|
|
10601
10601
|
get el() { return this; }
|
|
10602
10602
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -11101,7 +11101,7 @@ function getDaysDiff(date1, date2) {
|
|
|
11101
11101
|
}
|
|
11102
11102
|
|
|
11103
11103
|
const HEADING_LEVEL$6 = 2;
|
|
11104
|
-
const TEXT$
|
|
11104
|
+
const TEXT$g = {
|
|
11105
11105
|
nextMonth: "Next month",
|
|
11106
11106
|
prevMonth: "Previous month",
|
|
11107
11107
|
year: "Year"
|
|
@@ -11121,19 +11121,19 @@ const DatePicker = class extends HTMLElement$1 {
|
|
|
11121
11121
|
*
|
|
11122
11122
|
* @default "Previous month"
|
|
11123
11123
|
*/
|
|
11124
|
-
this.intlPrevMonth = TEXT$
|
|
11124
|
+
this.intlPrevMonth = TEXT$g.prevMonth;
|
|
11125
11125
|
/**
|
|
11126
11126
|
* Localized string for "next month" (used for aria label)
|
|
11127
11127
|
*
|
|
11128
11128
|
* @default "Next month"
|
|
11129
11129
|
*/
|
|
11130
|
-
this.intlNextMonth = TEXT$
|
|
11130
|
+
this.intlNextMonth = TEXT$g.nextMonth;
|
|
11131
11131
|
/**
|
|
11132
11132
|
* Localized string for "year" (used for aria label)
|
|
11133
11133
|
*
|
|
11134
11134
|
* @default "Year"
|
|
11135
11135
|
*/
|
|
11136
|
-
this.intlYear = TEXT$
|
|
11136
|
+
this.intlYear = TEXT$g.year;
|
|
11137
11137
|
/** BCP 47 language tag for desired language and country format */
|
|
11138
11138
|
this.locale = document.documentElement.lang || "en";
|
|
11139
11139
|
/** specify the scale of the date picker */
|
|
@@ -12063,7 +12063,7 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
12063
12063
|
static get style() { return datePickerMonthHeaderCss; }
|
|
12064
12064
|
};
|
|
12065
12065
|
|
|
12066
|
-
const SLOTS$
|
|
12066
|
+
const SLOTS$i = {
|
|
12067
12067
|
dropdownTrigger: "dropdown-trigger"
|
|
12068
12068
|
};
|
|
12069
12069
|
|
|
@@ -12298,10 +12298,10 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12298
12298
|
}
|
|
12299
12299
|
render() {
|
|
12300
12300
|
const { active, open } = this;
|
|
12301
|
-
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-expanded": toAriaBoolean(active || open), "aria-haspopup": "true", name: SLOTS$
|
|
12301
|
+
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-expanded": toAriaBoolean(active || open), "aria-haspopup": "true", name: SLOTS$i.dropdownTrigger, onSlotchange: this.updateTriggers })), h("div", { "aria-hidden": toAriaBoolean(!(active || open)), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, h("div", { class: {
|
|
12302
12302
|
["calcite-dropdown-content"]: true,
|
|
12303
|
-
[CSS$
|
|
12304
|
-
[CSS$
|
|
12303
|
+
[CSS$F.animation]: true,
|
|
12304
|
+
[CSS$F.animationActive]: active || open
|
|
12305
12305
|
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("div", { hidden: !(open || active) }, h("slot", { onSlotchange: this.updateGroups }))))));
|
|
12306
12306
|
}
|
|
12307
12307
|
//--------------------------------------------------------------------------
|
|
@@ -12518,7 +12518,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12518
12518
|
static get style() { return dropdownCss; }
|
|
12519
12519
|
};
|
|
12520
12520
|
|
|
12521
|
-
const CSS$
|
|
12521
|
+
const CSS$C = {
|
|
12522
12522
|
containerSmall: "container--s",
|
|
12523
12523
|
containerMedium: "container--m",
|
|
12524
12524
|
containerLarge: "container--l"
|
|
@@ -12552,9 +12552,9 @@ const DropdownGroup = class extends HTMLElement$1 {
|
|
|
12552
12552
|
const dropdownSeparator = this.groupPosition > 0 ? h("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
12553
12553
|
return (h(Host, { role: "menu" }, h("div", { class: {
|
|
12554
12554
|
container: true,
|
|
12555
|
-
[CSS$
|
|
12556
|
-
[CSS$
|
|
12557
|
-
[CSS$
|
|
12555
|
+
[CSS$C.containerSmall]: scale === "s",
|
|
12556
|
+
[CSS$C.containerMedium]: scale === "m",
|
|
12557
|
+
[CSS$C.containerLarge]: scale === "l"
|
|
12558
12558
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, h("slot", null))));
|
|
12559
12559
|
}
|
|
12560
12560
|
//--------------------------------------------------------------------------
|
|
@@ -12582,7 +12582,7 @@ const DropdownGroup = class extends HTMLElement$1 {
|
|
|
12582
12582
|
static get style() { return dropdownGroupCss; }
|
|
12583
12583
|
};
|
|
12584
12584
|
|
|
12585
|
-
const CSS$
|
|
12585
|
+
const CSS$B = {
|
|
12586
12586
|
containerLink: "container--link",
|
|
12587
12587
|
containerSmall: "container--s",
|
|
12588
12588
|
containerMedium: "container--m",
|
|
@@ -12654,13 +12654,13 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12654
12654
|
const itemAria = this.selectionMode !== "none" ? toAriaBoolean(this.active) : null;
|
|
12655
12655
|
return (h(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, h("div", { class: {
|
|
12656
12656
|
container: true,
|
|
12657
|
-
[CSS$
|
|
12658
|
-
[CSS$
|
|
12659
|
-
[CSS$
|
|
12660
|
-
[CSS$
|
|
12661
|
-
[CSS$
|
|
12662
|
-
[CSS$
|
|
12663
|
-
[CSS$
|
|
12657
|
+
[CSS$B.containerLink]: !!this.href,
|
|
12658
|
+
[CSS$B.containerSmall]: scale === "s",
|
|
12659
|
+
[CSS$B.containerMedium]: scale === "m",
|
|
12660
|
+
[CSS$B.containerLarge]: scale === "l",
|
|
12661
|
+
[CSS$B.containerMulti]: this.selectionMode === "multi",
|
|
12662
|
+
[CSS$B.containerSingle]: this.selectionMode === "single",
|
|
12663
|
+
[CSS$B.containerNone]: this.selectionMode === "none"
|
|
12664
12664
|
} }, this.selectionMode !== "none" ? (h("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
12665
12665
|
}
|
|
12666
12666
|
//--------------------------------------------------------------------------
|
|
@@ -12748,7 +12748,7 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12748
12748
|
static get style() { return dropdownItemCss; }
|
|
12749
12749
|
};
|
|
12750
12750
|
|
|
12751
|
-
const CSS$
|
|
12751
|
+
const CSS$A = {
|
|
12752
12752
|
button: "button"
|
|
12753
12753
|
};
|
|
12754
12754
|
const ICONS$9 = {
|
|
@@ -12823,7 +12823,7 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12823
12823
|
render() {
|
|
12824
12824
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
12825
12825
|
const title = !textEnabled ? label || text || null : null;
|
|
12826
|
-
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
12826
|
+
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$A.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
12827
12827
|
this.buttonEl = buttonEl;
|
|
12828
12828
|
}, round: true, scale: scale, title: title, type: "button", width: "auto" }, this.textEnabled ? this.text : null));
|
|
12829
12829
|
}
|
|
@@ -12831,11 +12831,11 @@ const Fab = class extends HTMLElement$1 {
|
|
|
12831
12831
|
static get style() { return fabCss; }
|
|
12832
12832
|
};
|
|
12833
12833
|
|
|
12834
|
-
const CSS$
|
|
12834
|
+
const CSS$z = {
|
|
12835
12835
|
container: "container",
|
|
12836
12836
|
searchIcon: "search-icon"
|
|
12837
12837
|
};
|
|
12838
|
-
const TEXT$
|
|
12838
|
+
const TEXT$f = {
|
|
12839
12839
|
filterLabel: "Filter",
|
|
12840
12840
|
clear: "Clear filter"
|
|
12841
12841
|
};
|
|
@@ -12978,7 +12978,7 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12978
12978
|
// --------------------------------------------------------------------------
|
|
12979
12979
|
render() {
|
|
12980
12980
|
const { disabled, scale } = this;
|
|
12981
|
-
return (h(Fragment, null, h("div", { class: CSS$
|
|
12981
|
+
return (h(Fragment, null, h("div", { class: CSS$z.container }, h("label", null, h("calcite-input", { "aria-label": this.intlLabel || TEXT$f.filterLabel, clearable: true, disabled: disabled, icon: ICONS$8.search, intlClear: this.intlClear || TEXT$f.clear, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
12982
12982
|
this.textInput = el;
|
|
12983
12983
|
}, scale: scale, type: "text", value: this.value })))));
|
|
12984
12984
|
}
|
|
@@ -12990,7 +12990,7 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12990
12990
|
static get style() { return filterCss; }
|
|
12991
12991
|
};
|
|
12992
12992
|
|
|
12993
|
-
const CSS$
|
|
12993
|
+
const CSS$y = {
|
|
12994
12994
|
frame: "frame",
|
|
12995
12995
|
frameAdvancing: "frame--advancing",
|
|
12996
12996
|
frameRetreating: "frame--retreating"
|
|
@@ -13091,9 +13091,9 @@ const Flow = class extends HTMLElement$1 {
|
|
|
13091
13091
|
render() {
|
|
13092
13092
|
const { flowDirection } = this;
|
|
13093
13093
|
const frameDirectionClasses = {
|
|
13094
|
-
[CSS$
|
|
13095
|
-
[CSS$
|
|
13096
|
-
[CSS$
|
|
13094
|
+
[CSS$y.frame]: true,
|
|
13095
|
+
[CSS$y.frameAdvancing]: flowDirection === "advancing",
|
|
13096
|
+
[CSS$y.frameRetreating]: flowDirection === "retreating"
|
|
13097
13097
|
};
|
|
13098
13098
|
return (h("div", { class: frameDirectionClasses }, h("slot", null)));
|
|
13099
13099
|
}
|
|
@@ -13319,7 +13319,7 @@ const Graph = class extends HTMLElement$1 {
|
|
|
13319
13319
|
static get style() { return graphCss; }
|
|
13320
13320
|
};
|
|
13321
13321
|
|
|
13322
|
-
const CSS$
|
|
13322
|
+
const CSS$x = {
|
|
13323
13323
|
handle: "handle",
|
|
13324
13324
|
handleActivated: "handle--activated"
|
|
13325
13325
|
};
|
|
@@ -13390,7 +13390,7 @@ const Handle = class extends HTMLElement$1 {
|
|
|
13390
13390
|
render() {
|
|
13391
13391
|
return (
|
|
13392
13392
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
13393
|
-
h("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
13393
|
+
h("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$x.handle]: true, [CSS$x.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
13394
13394
|
this.handleButton = el;
|
|
13395
13395
|
}, role: "button", tabindex: "0", title: this.textTitle }, h("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
13396
13396
|
}
|
|
@@ -13398,7 +13398,7 @@ const Handle = class extends HTMLElement$1 {
|
|
|
13398
13398
|
static get style() { return handleCss; }
|
|
13399
13399
|
};
|
|
13400
13400
|
|
|
13401
|
-
const CSS$
|
|
13401
|
+
const CSS$w = {
|
|
13402
13402
|
icon: "icon",
|
|
13403
13403
|
flipRtl: "flip-rtl"
|
|
13404
13404
|
};
|
|
@@ -13518,7 +13518,7 @@ const Icon = class extends HTMLElement$1 {
|
|
|
13518
13518
|
const semantic = !!textLabel;
|
|
13519
13519
|
const paths = [].concat(pathData || "");
|
|
13520
13520
|
return (h(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, h("svg", { class: {
|
|
13521
|
-
[CSS$
|
|
13521
|
+
[CSS$w.flipRtl]: dir === "rtl" && flipRtl,
|
|
13522
13522
|
svg: true
|
|
13523
13523
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (h("path", { d: path })) : (h("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
13524
13524
|
}
|
|
@@ -13559,7 +13559,7 @@ const Icon = class extends HTMLElement$1 {
|
|
|
13559
13559
|
static get style() { return iconCss; }
|
|
13560
13560
|
};
|
|
13561
13561
|
|
|
13562
|
-
const CSS$
|
|
13562
|
+
const CSS$v = {
|
|
13563
13563
|
wrapper: "wrapper",
|
|
13564
13564
|
confirmChangesButton: "confirm-changes-button",
|
|
13565
13565
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -13568,7 +13568,7 @@ const CSS$t = {
|
|
|
13568
13568
|
enableEditingButton: "enable-editing-button",
|
|
13569
13569
|
controlsWrapper: "controls-wrapper"
|
|
13570
13570
|
};
|
|
13571
|
-
const TEXT$
|
|
13571
|
+
const TEXT$e = {
|
|
13572
13572
|
intlEnablingEditing: "Click to edit",
|
|
13573
13573
|
intlCancelEditing: "Cancel",
|
|
13574
13574
|
intlConfirmChanges: "Save"
|
|
@@ -13602,19 +13602,19 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13602
13602
|
*
|
|
13603
13603
|
* @default "Click to edit"
|
|
13604
13604
|
*/
|
|
13605
|
-
this.intlEnableEditing = TEXT$
|
|
13605
|
+
this.intlEnableEditing = TEXT$e.intlEnablingEditing;
|
|
13606
13606
|
/**
|
|
13607
13607
|
* specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
13608
13608
|
*
|
|
13609
13609
|
* @default "Cancel"
|
|
13610
13610
|
*/
|
|
13611
|
-
this.intlCancelEditing = TEXT$
|
|
13611
|
+
this.intlCancelEditing = TEXT$e.intlCancelEditing;
|
|
13612
13612
|
/**
|
|
13613
13613
|
* specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
13614
13614
|
*
|
|
13615
13615
|
* @default "Save"
|
|
13616
13616
|
*/
|
|
13617
|
-
this.intlConfirmChanges = TEXT$
|
|
13617
|
+
this.intlConfirmChanges = TEXT$e.intlConfirmChanges;
|
|
13618
13618
|
this.mutationObserver = createObserver("mutation", () => this.mutationObserverCallback());
|
|
13619
13619
|
this.enableEditing = () => {
|
|
13620
13620
|
var _a, _b;
|
|
@@ -13719,12 +13719,12 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13719
13719
|
updateHostInteraction(this);
|
|
13720
13720
|
}
|
|
13721
13721
|
render() {
|
|
13722
|
-
return (h("div", { class: CSS$
|
|
13722
|
+
return (h("div", { class: CSS$v.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, h("div", { class: CSS$v.inputWrapper }, h("slot", null)), h("div", { class: CSS$v.controlsWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$v.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
13723
13723
|
opacity: this.editingEnabled ? "0" : "1",
|
|
13724
13724
|
width: this.editingEnabled ? "0" : "inherit"
|
|
13725
13725
|
}, type: "button" }), this.shouldShowControls && [
|
|
13726
|
-
h("div", { class: CSS$
|
|
13727
|
-
h("calcite-button", { appearance: "solid", class: CSS$
|
|
13726
|
+
h("div", { class: CSS$v.cancelEditingButtonWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$v.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale, type: "button" })),
|
|
13727
|
+
h("calcite-button", { appearance: "solid", class: CSS$v.confirmChangesButton, color: "blue", disabled: this.disabled, iconStart: "check", label: this.intlConfirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, ref: (el) => (this.confirmEditingButton = el), scale: this.scale, type: "button" })
|
|
13728
13728
|
])));
|
|
13729
13729
|
}
|
|
13730
13730
|
//--------------------------------------------------------------------------
|
|
@@ -13787,7 +13787,7 @@ const InlineEditable = class extends HTMLElement$1 {
|
|
|
13787
13787
|
static get style() { return inlineEditableCss; }
|
|
13788
13788
|
};
|
|
13789
13789
|
|
|
13790
|
-
const CSS$
|
|
13790
|
+
const CSS$u = {
|
|
13791
13791
|
loader: "loader",
|
|
13792
13792
|
clearButton: "clear-button",
|
|
13793
13793
|
editingEnabled: "editing-enabled",
|
|
@@ -13811,10 +13811,10 @@ const INPUT_TYPE_ICONS = {
|
|
|
13811
13811
|
time: "clock",
|
|
13812
13812
|
search: "search"
|
|
13813
13813
|
};
|
|
13814
|
-
const SLOTS$
|
|
13814
|
+
const SLOTS$h = {
|
|
13815
13815
|
action: "action"
|
|
13816
13816
|
};
|
|
13817
|
-
const TEXT$
|
|
13817
|
+
const TEXT$d = {
|
|
13818
13818
|
clear: "Clear value"
|
|
13819
13819
|
};
|
|
13820
13820
|
|
|
@@ -13867,7 +13867,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13867
13867
|
*
|
|
13868
13868
|
* @default "Loading"
|
|
13869
13869
|
*/
|
|
13870
|
-
this.intlLoading = TEXT$
|
|
13870
|
+
this.intlLoading = TEXT$t.loading;
|
|
13871
13871
|
/** When true, the icon is flipped in RTL. */
|
|
13872
13872
|
this.iconFlipRtl = false;
|
|
13873
13873
|
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
@@ -14352,34 +14352,34 @@ const Input = class extends HTMLElement$1 {
|
|
|
14352
14352
|
// --------------------------------------------------------------------------
|
|
14353
14353
|
render() {
|
|
14354
14354
|
const dir = getElementDir(this.el);
|
|
14355
|
-
const loader = (h("div", { class: CSS$
|
|
14356
|
-
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$
|
|
14357
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
14355
|
+
const loader = (h("div", { class: CSS$u.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
14356
|
+
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$u.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
14357
|
+
const iconEl = (h("calcite-icon", { class: CSS$u.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
14358
14358
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
14359
14359
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
14360
|
-
[CSS$
|
|
14361
|
-
[CSS$
|
|
14360
|
+
[CSS$u.numberButtonItem]: true,
|
|
14361
|
+
[CSS$u.buttonItemHorizontal]: isHorizontalNumberButton
|
|
14362
14362
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
14363
14363
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
14364
|
-
[CSS$
|
|
14365
|
-
[CSS$
|
|
14364
|
+
[CSS$u.numberButtonItem]: true,
|
|
14365
|
+
[CSS$u.buttonItemHorizontal]: isHorizontalNumberButton
|
|
14366
14366
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
14367
|
-
const numberButtonsVertical = (h("div", { class: CSS$
|
|
14368
|
-
const prefixText = h("div", { class: CSS$
|
|
14369
|
-
const suffixText = h("div", { class: CSS$
|
|
14367
|
+
const numberButtonsVertical = (h("div", { class: CSS$u.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
14368
|
+
const prefixText = h("div", { class: CSS$u.prefix }, this.prefixText);
|
|
14369
|
+
const suffixText = h("div", { class: CSS$u.suffix }, this.suffixText);
|
|
14370
14370
|
const localeNumberInput = this.type === "number" ? (h("input", { "aria-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.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue })) : null;
|
|
14371
14371
|
const childEl = this.type !== "number"
|
|
14372
14372
|
? [
|
|
14373
14373
|
h(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
14374
|
-
[CSS$
|
|
14375
|
-
[CSS$
|
|
14374
|
+
[CSS$u.editingEnabled]: this.editingEnabled,
|
|
14375
|
+
[CSS$u.inlineChild]: !!this.inlineEditableEl
|
|
14376
14376
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, max: this.maxString, maxLength: this.maxLength, min: this.minString, minLength: this.minLength, name: this.name, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, step: this.step, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: this.type, value: this.value }),
|
|
14377
|
-
this.isTextarea ? (h("div", { class: CSS$
|
|
14377
|
+
this.isTextarea ? (h("div", { class: CSS$u.resizeIconWrapper }, h("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
14378
14378
|
]
|
|
14379
14379
|
: null;
|
|
14380
|
-
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$
|
|
14380
|
+
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$u.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
14381
14381
|
? numberButtonsHorizontalDown
|
|
14382
|
-
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$
|
|
14382
|
+
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$u.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$u.actionWrapper }, h("slot", { name: SLOTS$h.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
14383
14383
|
? numberButtonsVertical
|
|
14384
14384
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
14385
14385
|
? numberButtonsHorizontalUp
|
|
@@ -14397,6 +14397,11 @@ const Input = class extends HTMLElement$1 {
|
|
|
14397
14397
|
static get style() { return inputCss; }
|
|
14398
14398
|
};
|
|
14399
14399
|
|
|
14400
|
+
const CSS$t = {
|
|
14401
|
+
menu: "menu-container",
|
|
14402
|
+
menuActive: "menu-container--active"
|
|
14403
|
+
};
|
|
14404
|
+
|
|
14400
14405
|
const inputDatePickerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;width:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}: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}.calendar-picker-wrapper{position:static;width:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{top:1.5rem;position:absolute;left:0px;z-index:10;margin-left:1px;margin-right:1px;background-color:var(--calcite-ui-foreground-1);padding-left:0.625rem;padding-right:0.625rem}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{width:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{width:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{width:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.menu-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .menu-container{pointer-events:initial;visibility:visible}.menu-container--active .menu-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.menu-container--active .menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.menu-container--active .menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.menu-container--active .menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.menu-container--active .menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.menu-container--active .menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.input .calcite-input__wrapper{margin-top:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{top:1.5rem;-webkit-padding-start:0.75rem;padding-inline-start:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{height:0.75rem;width:0.75rem;min-width:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{top:2.25rem;padding-left:0.875rem;padding-right:0.875rem}:host([range][layout=vertical][active]) .vertical-arrow-container{display:none}::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}";
|
|
14401
14406
|
|
|
14402
14407
|
const InputDatePicker = class extends HTMLElement$1 {
|
|
@@ -14418,6 +14423,12 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14418
14423
|
* When false, the component won't be interactive.
|
|
14419
14424
|
*/
|
|
14420
14425
|
this.disabled = false;
|
|
14426
|
+
/**
|
|
14427
|
+
* When true, still focusable but controls are gone and the value cannot be modified.
|
|
14428
|
+
*
|
|
14429
|
+
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
14430
|
+
*/
|
|
14431
|
+
this.readOnly = false;
|
|
14421
14432
|
/** Expand or collapse when calendar does not have input */
|
|
14422
14433
|
this.active = false;
|
|
14423
14434
|
/**
|
|
@@ -14425,19 +14436,19 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14425
14436
|
*
|
|
14426
14437
|
* @default "Previous month"
|
|
14427
14438
|
*/
|
|
14428
|
-
this.intlPrevMonth = TEXT$
|
|
14439
|
+
this.intlPrevMonth = TEXT$g.prevMonth;
|
|
14429
14440
|
/**
|
|
14430
14441
|
* Localized string for "next month" (used for aria label)
|
|
14431
14442
|
*
|
|
14432
14443
|
* @default "Next month"
|
|
14433
14444
|
*/
|
|
14434
|
-
this.intlNextMonth = TEXT$
|
|
14445
|
+
this.intlNextMonth = TEXT$g.nextMonth;
|
|
14435
14446
|
/**
|
|
14436
14447
|
* Localized string for "year" (used for aria label)
|
|
14437
14448
|
*
|
|
14438
14449
|
* @default "Year"
|
|
14439
14450
|
*/
|
|
14440
|
-
this.intlYear = TEXT$
|
|
14451
|
+
this.intlYear = TEXT$g.year;
|
|
14441
14452
|
/** BCP 47 language tag for desired language and country format */
|
|
14442
14453
|
this.locale = document.documentElement.lang || "en";
|
|
14443
14454
|
/** specify the scale of the date picker */
|
|
@@ -14505,11 +14516,15 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14505
14516
|
this.blur(e.detail);
|
|
14506
14517
|
};
|
|
14507
14518
|
this.startInputFocus = () => {
|
|
14508
|
-
this.
|
|
14519
|
+
if (!this.readOnly) {
|
|
14520
|
+
this.active = true;
|
|
14521
|
+
}
|
|
14509
14522
|
this.focusedInput = "start";
|
|
14510
14523
|
};
|
|
14511
14524
|
this.endInputFocus = () => {
|
|
14512
|
-
this.
|
|
14525
|
+
if (!this.readOnly) {
|
|
14526
|
+
this.active = true;
|
|
14527
|
+
}
|
|
14513
14528
|
this.focusedInput = "end";
|
|
14514
14529
|
};
|
|
14515
14530
|
this.inputInput = (e) => {
|
|
@@ -14557,7 +14572,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14557
14572
|
}
|
|
14558
14573
|
};
|
|
14559
14574
|
}
|
|
14560
|
-
|
|
14575
|
+
handleDisabledAndReadOnlyChange(value) {
|
|
14561
14576
|
if (!value) {
|
|
14562
14577
|
this.active = false;
|
|
14563
14578
|
}
|
|
@@ -14593,7 +14608,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14593
14608
|
}
|
|
14594
14609
|
}
|
|
14595
14610
|
activeHandler() {
|
|
14596
|
-
if (!this.disabled) {
|
|
14611
|
+
if (!this.disabled || !this.readOnly) {
|
|
14597
14612
|
this.reposition();
|
|
14598
14613
|
return;
|
|
14599
14614
|
}
|
|
@@ -14684,25 +14699,25 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14684
14699
|
}
|
|
14685
14700
|
render() {
|
|
14686
14701
|
var _a, _b;
|
|
14687
|
-
const { disabled } = this;
|
|
14702
|
+
const { disabled, readOnly } = this;
|
|
14688
14703
|
const date = dateFromRange(this.range ? this.startAsDate : this.valueAsDate, this.minAsDate, this.maxAsDate);
|
|
14689
14704
|
const endDate = this.range
|
|
14690
14705
|
? dateFromRange(this.endAsDate, this.minAsDate, this.maxAsDate)
|
|
14691
14706
|
: null;
|
|
14692
14707
|
const formattedEndDate = endDate ? endDate.toLocaleDateString(this.locale) : "";
|
|
14693
14708
|
const formattedDate = date ? date.toLocaleDateString(this.locale) : "";
|
|
14694
|
-
return (h(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": toAriaBoolean(this.active), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputInput: this.inputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.startInputFocus, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": toAriaBoolean(!this.active), class: {
|
|
14695
|
-
|
|
14696
|
-
|
|
14709
|
+
return (h(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": toAriaBoolean(this.active), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputInput: this.inputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.startInputFocus, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, readOnly: readOnly, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": toAriaBoolean(!this.active), class: {
|
|
14710
|
+
[CSS$t.menu]: true,
|
|
14711
|
+
[CSS$t.menuActive]: this.active
|
|
14697
14712
|
}, ref: this.setMenuEl }, h("div", { class: {
|
|
14698
14713
|
["calendar-picker-wrapper"]: true,
|
|
14699
14714
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
14700
|
-
[CSS$
|
|
14701
|
-
[CSS$
|
|
14715
|
+
[CSS$F.animation]: true,
|
|
14716
|
+
[CSS$F.animationActive]: this.active
|
|
14702
14717
|
}, onTransitionEnd: this.transitionEnd }, h("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, locale: this.locale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (h("div", { class: "horizontal-arrow-container" }, h("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (h("div", { class: "vertical-arrow-container" }, h("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (h("div", { class: "input-wrapper", ref: this.setEndWrapper }, h("calcite-input", { class: {
|
|
14703
14718
|
input: true,
|
|
14704
14719
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
14705
|
-
}, disabled: disabled, icon: "calendar", "number-button-type": "none", onCalciteInputInput: this.inputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.endInputFocus, placeholder: (_b = this.localeData) === null || _b === void 0 ? void 0 : _b.placeholder, ref: this.setEndInput, scale: this.scale, type: "text", value: formattedEndDate }))))), h(HiddenFormInputSlot, { component: this })));
|
|
14720
|
+
}, disabled: disabled, icon: "calendar", "number-button-type": "none", onCalciteInputInput: this.inputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.endInputFocus, placeholder: (_b = this.localeData) === null || _b === void 0 ? void 0 : _b.placeholder, readOnly: readOnly, ref: this.setEndInput, scale: this.scale, type: "text", value: formattedEndDate }))))), h(HiddenFormInputSlot, { component: this })));
|
|
14706
14721
|
}
|
|
14707
14722
|
setReferenceEl() {
|
|
14708
14723
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -14897,7 +14912,8 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14897
14912
|
}
|
|
14898
14913
|
get el() { return this; }
|
|
14899
14914
|
static get watchers() { return {
|
|
14900
|
-
"disabled": ["
|
|
14915
|
+
"disabled": ["handleDisabledAndReadOnlyChange"],
|
|
14916
|
+
"readOnly": ["handleDisabledAndReadOnlyChange"],
|
|
14901
14917
|
"value": ["valueHandler"],
|
|
14902
14918
|
"flipPlacements": ["flipPlacementsHandler"],
|
|
14903
14919
|
"min": ["onMinChanged"],
|
|
@@ -14973,127 +14989,639 @@ const InputMessage = class extends HTMLElement$1 {
|
|
|
14973
14989
|
static get style() { return inputMessageCss; }
|
|
14974
14990
|
};
|
|
14975
14991
|
|
|
14976
|
-
const
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
-
|
|
14980
|
-
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
|
|
14989
|
-
|
|
14990
|
-
|
|
14991
|
-
|
|
14992
|
-
|
|
14993
|
-
|
|
14994
|
-
|
|
14995
|
-
|
|
14996
|
-
|
|
14997
|
-
|
|
14998
|
-
|
|
14999
|
-
return null;
|
|
15000
|
-
|
|
15001
|
-
|
|
15002
|
-
|
|
15003
|
-
|
|
15004
|
-
|
|
15005
|
-
|
|
15006
|
-
|
|
15007
|
-
|
|
15008
|
-
|
|
15009
|
-
|
|
15010
|
-
|
|
15011
|
-
|
|
15012
|
-
|
|
15013
|
-
|
|
15014
|
-
|
|
15015
|
-
|
|
15016
|
-
|
|
15017
|
-
|
|
15018
|
-
|
|
15019
|
-
|
|
15020
|
-
|
|
15021
|
-
|
|
15022
|
-
|
|
15023
|
-
|
|
15024
|
-
|
|
15025
|
-
|
|
15026
|
-
|
|
15027
|
-
|
|
15028
|
-
|
|
15029
|
-
|
|
15030
|
-
|
|
15031
|
-
|
|
15032
|
-
|
|
15033
|
-
|
|
15034
|
-
|
|
15035
|
-
|
|
15036
|
-
|
|
15037
|
-
|
|
15038
|
-
|
|
15039
|
-
|
|
15040
|
-
|
|
15041
|
-
|
|
15042
|
-
|
|
15043
|
-
|
|
15044
|
-
|
|
15045
|
-
|
|
15046
|
-
|
|
15047
|
-
|
|
15048
|
-
|
|
15049
|
-
|
|
15050
|
-
|
|
15051
|
-
|
|
15052
|
-
|
|
15053
|
-
|
|
15054
|
-
|
|
15055
|
-
|
|
15056
|
-
|
|
15057
|
-
|
|
15058
|
-
|
|
15059
|
-
|
|
15060
|
-
|
|
15061
|
-
|
|
15062
|
-
|
|
15063
|
-
|
|
15064
|
-
|
|
15065
|
-
|
|
15066
|
-
|
|
15067
|
-
|
|
15068
|
-
|
|
15069
|
-
|
|
15070
|
-
|
|
15071
|
-
|
|
15072
|
-
|
|
15073
|
-
|
|
15074
|
-
|
|
15075
|
-
|
|
15076
|
-
|
|
15077
|
-
|
|
15078
|
-
|
|
15079
|
-
|
|
15080
|
-
|
|
15081
|
-
|
|
15082
|
-
|
|
15083
|
-
|
|
15084
|
-
|
|
15085
|
-
|
|
15086
|
-
|
|
15087
|
-
|
|
15088
|
-
|
|
15089
|
-
|
|
15090
|
-
|
|
15091
|
-
|
|
15092
|
-
}
|
|
15093
|
-
|
|
15094
|
-
|
|
15095
|
-
|
|
15096
|
-
|
|
14992
|
+
const CSS$s = {
|
|
14993
|
+
loader: "loader",
|
|
14994
|
+
clearButton: "clear-button",
|
|
14995
|
+
editingEnabled: "editing-enabled",
|
|
14996
|
+
inlineChild: "inline-child",
|
|
14997
|
+
inputIcon: "icon",
|
|
14998
|
+
prefix: "prefix",
|
|
14999
|
+
suffix: "suffix",
|
|
15000
|
+
numberButtonWrapper: "number-button-wrapper",
|
|
15001
|
+
buttonItemHorizontal: "number-button-item--horizontal",
|
|
15002
|
+
wrapper: "element-wrapper",
|
|
15003
|
+
inputWrapper: "wrapper",
|
|
15004
|
+
actionWrapper: "action-wrapper",
|
|
15005
|
+
resizeIconWrapper: "resize-icon-wrapper",
|
|
15006
|
+
numberButtonItem: "number-button-item"
|
|
15007
|
+
};
|
|
15008
|
+
const SLOTS$g = {
|
|
15009
|
+
action: "action"
|
|
15010
|
+
};
|
|
15011
|
+
const TEXT$c = {
|
|
15012
|
+
clear: "Clear value"
|
|
15013
|
+
};
|
|
15014
|
+
|
|
15015
|
+
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}";
|
|
15016
|
+
|
|
15017
|
+
const InputNumber = class extends HTMLElement$1 {
|
|
15018
|
+
constructor() {
|
|
15019
|
+
super();
|
|
15020
|
+
this.__registerHost();
|
|
15021
|
+
this.__attachShadow();
|
|
15022
|
+
this.calciteInternalInputNumberFocus = createEvent(this, "calciteInternalInputNumberFocus", 7);
|
|
15023
|
+
this.calciteInternalInputNumberBlur = createEvent(this, "calciteInternalInputNumberBlur", 7);
|
|
15024
|
+
this.calciteInputNumberInput = createEvent(this, "calciteInputNumberInput", 7);
|
|
15025
|
+
this.calciteInputNumberChange = createEvent(this, "calciteInputNumberChange", 7);
|
|
15026
|
+
//--------------------------------------------------------------------------
|
|
15027
|
+
//
|
|
15028
|
+
// Properties
|
|
15029
|
+
//
|
|
15030
|
+
//--------------------------------------------------------------------------
|
|
15031
|
+
/** Specifies the text alignment of the component's value. */
|
|
15032
|
+
this.alignment = "start";
|
|
15033
|
+
/**
|
|
15034
|
+
* When true, the component is focused on page load.
|
|
15035
|
+
*
|
|
15036
|
+
* @mdn [autofocus](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)
|
|
15037
|
+
*/
|
|
15038
|
+
this.autofocus = false;
|
|
15039
|
+
/**
|
|
15040
|
+
* When true, a clear button is displayed when the component has a value.
|
|
15041
|
+
*/
|
|
15042
|
+
this.clearable = false;
|
|
15043
|
+
/**
|
|
15044
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
15045
|
+
*
|
|
15046
|
+
* @mdn [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
15047
|
+
*/
|
|
15048
|
+
this.disabled = false;
|
|
15049
|
+
/**
|
|
15050
|
+
* When true, number values are displayed with the locale's group separator.
|
|
15051
|
+
*/
|
|
15052
|
+
this.groupSeparator = false;
|
|
15053
|
+
/**
|
|
15054
|
+
* When true, the component will not be visible.
|
|
15055
|
+
*
|
|
15056
|
+
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
15057
|
+
*/
|
|
15058
|
+
this.hidden = false;
|
|
15059
|
+
/**
|
|
15060
|
+
* Accessible name that will appear while loading.
|
|
15061
|
+
*
|
|
15062
|
+
* @default "Loading"
|
|
15063
|
+
*/
|
|
15064
|
+
this.intlLoading = TEXT$t.loading;
|
|
15065
|
+
/** When true, the icon is flipped in RTL. */
|
|
15066
|
+
this.iconFlipRtl = false;
|
|
15067
|
+
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
15068
|
+
this.loading = false;
|
|
15069
|
+
/** Specifies the BCP 47 language tag for the desired language and country format. */
|
|
15070
|
+
this.locale = document.documentElement.lang || "en";
|
|
15071
|
+
/**
|
|
15072
|
+
* Toggles locale formatting for numbers.
|
|
15073
|
+
*
|
|
15074
|
+
* @internal
|
|
15075
|
+
*/
|
|
15076
|
+
this.localeFormat = false;
|
|
15077
|
+
/** Specifies the placement of the buttons. */
|
|
15078
|
+
this.numberButtonType = "vertical";
|
|
15079
|
+
/**
|
|
15080
|
+
* When true, the value cannot be modified.
|
|
15081
|
+
*
|
|
15082
|
+
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
15083
|
+
*/
|
|
15084
|
+
this.readOnly = false;
|
|
15085
|
+
/** When true, the component must have a value in order for the form to submit. */
|
|
15086
|
+
this.required = false;
|
|
15087
|
+
/** Specifies the size of the component. */
|
|
15088
|
+
this.scale = "m";
|
|
15089
|
+
/** Specifies the status of the input field, which determines message and icons. */
|
|
15090
|
+
this.status = "idle";
|
|
15091
|
+
/**
|
|
15092
|
+
* @internal
|
|
15093
|
+
*/
|
|
15094
|
+
this.editingEnabled = false;
|
|
15095
|
+
/** The component's value. */
|
|
15096
|
+
this.value = "";
|
|
15097
|
+
this.previousValueOrigin = "initial";
|
|
15098
|
+
this.mutationObserver = createObserver("mutation", () => this.setDisabledAction());
|
|
15099
|
+
this.userChangedValue = false;
|
|
15100
|
+
//--------------------------------------------------------------------------
|
|
15101
|
+
//
|
|
15102
|
+
// Private Methods
|
|
15103
|
+
//
|
|
15104
|
+
//--------------------------------------------------------------------------
|
|
15105
|
+
this.keyDownHandler = (event) => {
|
|
15106
|
+
if (this.readOnly || this.disabled) {
|
|
15107
|
+
return;
|
|
15108
|
+
}
|
|
15109
|
+
if (this.isClearable && event.key === "Escape") {
|
|
15110
|
+
this.clearInputValue(event);
|
|
15111
|
+
event.preventDefault();
|
|
15112
|
+
}
|
|
15113
|
+
if (event.key === "Enter" && !event.defaultPrevented) {
|
|
15114
|
+
submitForm(this);
|
|
15115
|
+
}
|
|
15116
|
+
};
|
|
15117
|
+
this.clearInputValue = (nativeEvent) => {
|
|
15118
|
+
this.setNumberValue({
|
|
15119
|
+
committing: true,
|
|
15120
|
+
nativeEvent,
|
|
15121
|
+
origin: "user",
|
|
15122
|
+
value: ""
|
|
15123
|
+
});
|
|
15124
|
+
};
|
|
15125
|
+
this.emitChangeIfUserModified = () => {
|
|
15126
|
+
if (this.previousValueOrigin === "user" && this.value !== this.previousEmittedValue) {
|
|
15127
|
+
this.calciteInputNumberChange.emit();
|
|
15128
|
+
}
|
|
15129
|
+
this.previousEmittedValue = this.value;
|
|
15130
|
+
};
|
|
15131
|
+
this.inputNumberBlurHandler = () => {
|
|
15132
|
+
this.calciteInternalInputNumberBlur.emit({
|
|
15133
|
+
element: this.childNumberEl,
|
|
15134
|
+
value: this.value
|
|
15135
|
+
});
|
|
15136
|
+
this.emitChangeIfUserModified();
|
|
15137
|
+
};
|
|
15138
|
+
this.inputNumberFocusHandler = (event) => {
|
|
15139
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
15140
|
+
if (event.target !== slottedActionEl) {
|
|
15141
|
+
this.setFocus();
|
|
15142
|
+
}
|
|
15143
|
+
this.calciteInternalInputNumberFocus.emit({
|
|
15144
|
+
element: this.childNumberEl,
|
|
15145
|
+
value: this.value
|
|
15146
|
+
});
|
|
15147
|
+
};
|
|
15148
|
+
this.inputNumberInputHandler = (nativeEvent) => {
|
|
15149
|
+
if (this.disabled || this.readOnly) {
|
|
15150
|
+
return;
|
|
15151
|
+
}
|
|
15152
|
+
const value = nativeEvent.target.value;
|
|
15153
|
+
const delocalizedValue = delocalizeNumberString(value, this.locale);
|
|
15154
|
+
if (nativeEvent.inputType === "insertFromPaste") {
|
|
15155
|
+
if (!isValidNumber(delocalizedValue)) {
|
|
15156
|
+
nativeEvent.preventDefault();
|
|
15157
|
+
}
|
|
15158
|
+
this.setNumberValue({
|
|
15159
|
+
nativeEvent,
|
|
15160
|
+
origin: "user",
|
|
15161
|
+
value: parseNumberString(delocalizedValue)
|
|
15162
|
+
});
|
|
15163
|
+
this.childNumberEl.value = this.localizedValue;
|
|
15164
|
+
}
|
|
15165
|
+
else {
|
|
15166
|
+
this.setNumberValue({
|
|
15167
|
+
nativeEvent,
|
|
15168
|
+
origin: "user",
|
|
15169
|
+
value: delocalizedValue
|
|
15170
|
+
});
|
|
15171
|
+
}
|
|
15172
|
+
};
|
|
15173
|
+
this.inputNumberKeyDownHandler = (event) => {
|
|
15174
|
+
if (this.disabled || this.readOnly) {
|
|
15175
|
+
return;
|
|
15176
|
+
}
|
|
15177
|
+
if (event.key === "ArrowUp") {
|
|
15178
|
+
/* prevent default behavior of moving cursor to the beginning of the input when holding down ArrowUp */
|
|
15179
|
+
event.preventDefault();
|
|
15180
|
+
this.nudgeNumberValue("up", event);
|
|
15181
|
+
return;
|
|
15182
|
+
}
|
|
15183
|
+
if (event.key === "ArrowDown") {
|
|
15184
|
+
this.nudgeNumberValue("down", event);
|
|
15185
|
+
return;
|
|
15186
|
+
}
|
|
15187
|
+
const supportedKeys = [
|
|
15188
|
+
...numberKeys,
|
|
15189
|
+
"ArrowLeft",
|
|
15190
|
+
"ArrowRight",
|
|
15191
|
+
"Backspace",
|
|
15192
|
+
"Delete",
|
|
15193
|
+
"Enter",
|
|
15194
|
+
"Escape",
|
|
15195
|
+
"Tab"
|
|
15196
|
+
];
|
|
15197
|
+
if (event.altKey || event.ctrlKey || event.metaKey) {
|
|
15198
|
+
return;
|
|
15199
|
+
}
|
|
15200
|
+
const isShiftTabEvent = event.shiftKey && event.key === "Tab";
|
|
15201
|
+
if (supportedKeys.includes(event.key) && (!event.shiftKey || isShiftTabEvent)) {
|
|
15202
|
+
if (event.key === "Enter") {
|
|
15203
|
+
this.emitChangeIfUserModified();
|
|
15204
|
+
}
|
|
15205
|
+
return;
|
|
15206
|
+
}
|
|
15207
|
+
const decimalSeparator = getDecimalSeparator(this.locale);
|
|
15208
|
+
if (event.key === decimalSeparator) {
|
|
15209
|
+
if (!this.value && !this.childNumberEl.value) {
|
|
15210
|
+
return;
|
|
15211
|
+
}
|
|
15212
|
+
if (this.value && this.childNumberEl.value.indexOf(decimalSeparator) === -1) {
|
|
15213
|
+
return;
|
|
15214
|
+
}
|
|
15215
|
+
}
|
|
15216
|
+
if (/[eE]/.test(event.key)) {
|
|
15217
|
+
if (!this.value && !this.childNumberEl.value) {
|
|
15218
|
+
return;
|
|
15219
|
+
}
|
|
15220
|
+
if (this.value && !/[eE]/.test(this.childNumberEl.value)) {
|
|
15221
|
+
return;
|
|
15222
|
+
}
|
|
15223
|
+
}
|
|
15224
|
+
if (event.key === "-") {
|
|
15225
|
+
if (!this.value && !this.childNumberEl.value) {
|
|
15226
|
+
return;
|
|
15227
|
+
}
|
|
15228
|
+
if (this.value && this.childNumberEl.value.split("-").length <= 2) {
|
|
15229
|
+
return;
|
|
15230
|
+
}
|
|
15231
|
+
}
|
|
15232
|
+
event.preventDefault();
|
|
15233
|
+
};
|
|
15234
|
+
this.nudgeNumberValue = (direction, nativeEvent) => {
|
|
15235
|
+
if (nativeEvent instanceof KeyboardEvent && nativeEvent.repeat) {
|
|
15236
|
+
return;
|
|
15237
|
+
}
|
|
15238
|
+
const inputMax = this.maxString ? parseFloat(this.maxString) : null;
|
|
15239
|
+
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
15240
|
+
const valueNudgeDelayInMs = 100;
|
|
15241
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
15242
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
15243
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
15244
|
+
}
|
|
15245
|
+
let firstValueNudge = true;
|
|
15246
|
+
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
15247
|
+
if (firstValueNudge) {
|
|
15248
|
+
firstValueNudge = false;
|
|
15249
|
+
return;
|
|
15250
|
+
}
|
|
15251
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
15252
|
+
}, valueNudgeDelayInMs);
|
|
15253
|
+
};
|
|
15254
|
+
this.nudgeButtonPointerUpAndOutHandler = () => {
|
|
15255
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
15256
|
+
};
|
|
15257
|
+
this.nudgeButtonPointerDownHandler = (event) => {
|
|
15258
|
+
event.preventDefault();
|
|
15259
|
+
const direction = event.target.dataset.adjustment;
|
|
15260
|
+
if (!this.disabled) {
|
|
15261
|
+
this.nudgeNumberValue(direction, event);
|
|
15262
|
+
}
|
|
15263
|
+
};
|
|
15264
|
+
this.setChildNumberElRef = (el) => {
|
|
15265
|
+
this.childNumberEl = el;
|
|
15266
|
+
};
|
|
15267
|
+
this.setInputNumberValue = (newInputValue) => {
|
|
15268
|
+
if (!this.childNumberEl) {
|
|
15269
|
+
return;
|
|
15270
|
+
}
|
|
15271
|
+
this.childNumberEl.value = newInputValue;
|
|
15272
|
+
};
|
|
15273
|
+
this.setPreviousEmittedNumberValue = (newPreviousEmittedValue) => {
|
|
15274
|
+
this.previousEmittedValue = isValidNumber(newPreviousEmittedValue)
|
|
15275
|
+
? newPreviousEmittedValue
|
|
15276
|
+
: "";
|
|
15277
|
+
};
|
|
15278
|
+
this.setPreviousNumberValue = (newPreviousValue) => {
|
|
15279
|
+
this.previousValue = isValidNumber(newPreviousValue) ? newPreviousValue : "";
|
|
15280
|
+
};
|
|
15281
|
+
this.setNumberValue = ({ committing = false, nativeEvent, origin, previousValue, value }) => {
|
|
15282
|
+
const previousLocalizedValue = localizeNumberString(this.previousValue, this.locale, this.groupSeparator, this.numberingSystem);
|
|
15283
|
+
const sanitizedValue = sanitizeNumberString(value);
|
|
15284
|
+
const newValue = value && !sanitizedValue
|
|
15285
|
+
? isValidNumber(this.previousValue)
|
|
15286
|
+
? this.previousValue
|
|
15287
|
+
: ""
|
|
15288
|
+
: sanitizedValue;
|
|
15289
|
+
const newLocalizedValue = localizeNumberString(newValue, this.locale, this.groupSeparator, this.numberingSystem);
|
|
15290
|
+
this.setPreviousNumberValue(previousValue || this.value);
|
|
15291
|
+
this.previousValueOrigin = origin;
|
|
15292
|
+
this.userChangedValue = origin === "user" && this.value !== newValue;
|
|
15293
|
+
this.value = newValue;
|
|
15294
|
+
this.localizedValue = newLocalizedValue;
|
|
15295
|
+
if (origin === "direct") {
|
|
15296
|
+
this.setInputNumberValue(newLocalizedValue);
|
|
15297
|
+
}
|
|
15298
|
+
if (nativeEvent) {
|
|
15299
|
+
const calciteInputNumberInputEvent = this.calciteInputNumberInput.emit({
|
|
15300
|
+
element: this.childNumberEl,
|
|
15301
|
+
nativeEvent,
|
|
15302
|
+
value: this.value
|
|
15303
|
+
});
|
|
15304
|
+
if (calciteInputNumberInputEvent.defaultPrevented) {
|
|
15305
|
+
this.value = this.previousValue;
|
|
15306
|
+
this.localizedValue = previousLocalizedValue;
|
|
15307
|
+
}
|
|
15308
|
+
else if (committing) {
|
|
15309
|
+
this.emitChangeIfUserModified();
|
|
15310
|
+
}
|
|
15311
|
+
}
|
|
15312
|
+
};
|
|
15313
|
+
this.inputNumberKeyUpHandler = () => {
|
|
15314
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
15315
|
+
};
|
|
15316
|
+
}
|
|
15317
|
+
disabledWatcher() {
|
|
15318
|
+
this.setDisabledAction();
|
|
15319
|
+
}
|
|
15320
|
+
/** watcher to update number-to-string for max */
|
|
15321
|
+
maxWatcher() {
|
|
15322
|
+
var _a;
|
|
15323
|
+
this.maxString = ((_a = this.max) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
15324
|
+
}
|
|
15325
|
+
/** watcher to update number-to-string for min */
|
|
15326
|
+
minWatcher() {
|
|
15327
|
+
var _a;
|
|
15328
|
+
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
15329
|
+
}
|
|
15330
|
+
valueWatcher(newValue, previousValue) {
|
|
15331
|
+
if (!this.userChangedValue) {
|
|
15332
|
+
this.setNumberValue({
|
|
15333
|
+
origin: "direct",
|
|
15334
|
+
previousValue,
|
|
15335
|
+
value: newValue == null || newValue == ""
|
|
15336
|
+
? ""
|
|
15337
|
+
: isValidNumber(newValue)
|
|
15338
|
+
? newValue
|
|
15339
|
+
: this.previousValue || ""
|
|
15340
|
+
});
|
|
15341
|
+
this.warnAboutInvalidNumberValue(newValue);
|
|
15342
|
+
}
|
|
15343
|
+
this.userChangedValue = false;
|
|
15344
|
+
}
|
|
15345
|
+
updateRequestedIcon() {
|
|
15346
|
+
this.requestedIcon = setRequestedIcon({}, this.icon, "number");
|
|
15347
|
+
}
|
|
15348
|
+
get isClearable() {
|
|
15349
|
+
return this.clearable && this.value.length > 0;
|
|
15350
|
+
}
|
|
15351
|
+
//--------------------------------------------------------------------------
|
|
15352
|
+
//
|
|
15353
|
+
// Lifecycle
|
|
15354
|
+
//
|
|
15355
|
+
//--------------------------------------------------------------------------
|
|
15356
|
+
connectedCallback() {
|
|
15357
|
+
var _a;
|
|
15358
|
+
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
15359
|
+
this.status = getElementProp(this.el, "status", this.status);
|
|
15360
|
+
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
15361
|
+
if (this.inlineEditableEl) {
|
|
15362
|
+
this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
|
|
15363
|
+
}
|
|
15364
|
+
this.setPreviousEmittedNumberValue(this.value);
|
|
15365
|
+
this.setPreviousNumberValue(this.value);
|
|
15366
|
+
this.warnAboutInvalidNumberValue(this.value);
|
|
15367
|
+
this.setNumberValue({
|
|
15368
|
+
origin: "connected",
|
|
15369
|
+
value: isValidNumber(this.value) ? this.value : ""
|
|
15370
|
+
});
|
|
15371
|
+
connectLabel(this);
|
|
15372
|
+
connectForm(this);
|
|
15373
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
15374
|
+
this.setDisabledAction();
|
|
15375
|
+
}
|
|
15376
|
+
disconnectedCallback() {
|
|
15377
|
+
var _a;
|
|
15378
|
+
disconnectLabel(this);
|
|
15379
|
+
disconnectForm(this);
|
|
15380
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
15381
|
+
}
|
|
15382
|
+
componentWillLoad() {
|
|
15383
|
+
var _a, _b;
|
|
15384
|
+
this.maxString = (_a = this.max) === null || _a === void 0 ? void 0 : _a.toString();
|
|
15385
|
+
this.minString = (_b = this.min) === null || _b === void 0 ? void 0 : _b.toString();
|
|
15386
|
+
this.requestedIcon = setRequestedIcon({}, this.icon, "number");
|
|
15387
|
+
}
|
|
15388
|
+
componentShouldUpdate(newValue, oldValue, property) {
|
|
15389
|
+
if (property === "value" && newValue && !isValidNumber(newValue)) {
|
|
15390
|
+
this.setNumberValue({
|
|
15391
|
+
origin: "reset",
|
|
15392
|
+
value: oldValue
|
|
15393
|
+
});
|
|
15394
|
+
return false;
|
|
15395
|
+
}
|
|
15396
|
+
return true;
|
|
15397
|
+
}
|
|
15398
|
+
componentDidRender() {
|
|
15399
|
+
updateHostInteraction(this);
|
|
15400
|
+
}
|
|
15401
|
+
//--------------------------------------------------------------------------
|
|
15402
|
+
//
|
|
15403
|
+
// Public Methods
|
|
15404
|
+
//
|
|
15405
|
+
//--------------------------------------------------------------------------
|
|
15406
|
+
/** Sets focus on the component. */
|
|
15407
|
+
async setFocus() {
|
|
15408
|
+
var _a;
|
|
15409
|
+
(_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
15410
|
+
}
|
|
15411
|
+
/** Selects all text of the component's `value`. */
|
|
15412
|
+
async selectText() {
|
|
15413
|
+
var _a;
|
|
15414
|
+
(_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.select();
|
|
15415
|
+
}
|
|
15416
|
+
onLabelClick() {
|
|
15417
|
+
this.setFocus();
|
|
15418
|
+
}
|
|
15419
|
+
incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent) {
|
|
15420
|
+
const { value } = this;
|
|
15421
|
+
const inputStep = this.step === "any" ? 1 : Math.abs(this.step || 1);
|
|
15422
|
+
const inputVal = value && value !== "" ? parseFloat(value) : 0;
|
|
15423
|
+
const adjustment = direction === "up" ? 1 : -1;
|
|
15424
|
+
const nudgedValue = inputVal + inputStep * adjustment;
|
|
15425
|
+
const finalValue = (typeof inputMin === "number" && !isNaN(inputMin) && nudgedValue < inputMin) ||
|
|
15426
|
+
(typeof inputMax === "number" && !isNaN(inputMax) && nudgedValue > inputMax)
|
|
15427
|
+
? inputVal
|
|
15428
|
+
: nudgedValue;
|
|
15429
|
+
const inputValPlaces = decimalPlaces(inputVal);
|
|
15430
|
+
const inputStepPlaces = decimalPlaces(inputStep);
|
|
15431
|
+
this.setNumberValue({
|
|
15432
|
+
committing: true,
|
|
15433
|
+
nativeEvent,
|
|
15434
|
+
origin: "user",
|
|
15435
|
+
value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
|
|
15436
|
+
});
|
|
15437
|
+
}
|
|
15438
|
+
onFormReset() {
|
|
15439
|
+
this.setNumberValue({
|
|
15440
|
+
origin: "reset",
|
|
15441
|
+
value: this.defaultValue
|
|
15442
|
+
});
|
|
15443
|
+
}
|
|
15444
|
+
syncHiddenFormInput(input) {
|
|
15445
|
+
var _a, _b, _c, _d;
|
|
15446
|
+
input.type = "number";
|
|
15447
|
+
input.min = (_b = (_a = this.min) === null || _a === void 0 ? void 0 : _a.toString(10)) !== null && _b !== void 0 ? _b : "";
|
|
15448
|
+
input.max = (_d = (_c = this.max) === null || _c === void 0 ? void 0 : _c.toString(10)) !== null && _d !== void 0 ? _d : "";
|
|
15449
|
+
}
|
|
15450
|
+
setDisabledAction() {
|
|
15451
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
15452
|
+
if (!slottedActionEl) {
|
|
15453
|
+
return;
|
|
15454
|
+
}
|
|
15455
|
+
this.disabled
|
|
15456
|
+
? slottedActionEl.setAttribute("disabled", "")
|
|
15457
|
+
: slottedActionEl.removeAttribute("disabled");
|
|
15458
|
+
}
|
|
15459
|
+
warnAboutInvalidNumberValue(value) {
|
|
15460
|
+
if (value && !isValidNumber(value)) {
|
|
15461
|
+
console.warn(`The specified value "${value}" cannot be parsed, or is out of range.`);
|
|
15462
|
+
}
|
|
15463
|
+
}
|
|
15464
|
+
// --------------------------------------------------------------------------
|
|
15465
|
+
//
|
|
15466
|
+
// Render Methods
|
|
15467
|
+
//
|
|
15468
|
+
// --------------------------------------------------------------------------
|
|
15469
|
+
render() {
|
|
15470
|
+
const dir = getElementDir(this.el);
|
|
15471
|
+
const loader = (h("div", { class: CSS$s.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
15472
|
+
const inputClearButton = (h("button", { "aria-label": this.intlClear || TEXT$c.clear, class: CSS$s.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
15473
|
+
const iconEl = (h("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
15474
|
+
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
15475
|
+
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
15476
|
+
[CSS$s.numberButtonItem]: true,
|
|
15477
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
15478
|
+
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
15479
|
+
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
15480
|
+
[CSS$s.numberButtonItem]: true,
|
|
15481
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
15482
|
+
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
15483
|
+
const numberButtonsVertical = (h("div", { class: CSS$s.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
15484
|
+
const prefixText = h("div", { class: CSS$s.prefix }, this.prefixText);
|
|
15485
|
+
const suffixText = h("div", { class: CSS$s.suffix }, this.suffixText);
|
|
15486
|
+
const childEl = (h("input", { "aria-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 }));
|
|
15487
|
+
return (h(Host, { onClick: this.inputNumberFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
15488
|
+
? numberButtonsHorizontalDown
|
|
15489
|
+
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$s.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$s.actionWrapper }, h("slot", { name: SLOTS$g.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
15490
|
+
? numberButtonsHorizontalUp
|
|
15491
|
+
: null, h(HiddenFormInputSlot, { component: this }))));
|
|
15492
|
+
}
|
|
15493
|
+
get el() { return this; }
|
|
15494
|
+
static get watchers() { return {
|
|
15495
|
+
"disabled": ["disabledWatcher"],
|
|
15496
|
+
"max": ["maxWatcher"],
|
|
15497
|
+
"min": ["minWatcher"],
|
|
15498
|
+
"value": ["valueWatcher"],
|
|
15499
|
+
"icon": ["updateRequestedIcon"]
|
|
15500
|
+
}; }
|
|
15501
|
+
static get style() { return inputNumberCss; }
|
|
15502
|
+
};
|
|
15503
|
+
|
|
15504
|
+
const maxTenthForMinuteAndSecond = 5;
|
|
15505
|
+
function createLocaleDateTimeFormatter(locale, includeSeconds = true) {
|
|
15506
|
+
try {
|
|
15507
|
+
const options = {
|
|
15508
|
+
hour: "2-digit",
|
|
15509
|
+
minute: "2-digit",
|
|
15510
|
+
timeZone: "UTC"
|
|
15511
|
+
};
|
|
15512
|
+
if (includeSeconds) {
|
|
15513
|
+
options.second = "2-digit";
|
|
15514
|
+
}
|
|
15515
|
+
return new Intl.DateTimeFormat(locale, options);
|
|
15516
|
+
}
|
|
15517
|
+
catch (e) {
|
|
15518
|
+
throw new Error(`Invalid locale supplied while attempting to create a DateTime formatter: ${locale}`);
|
|
15519
|
+
}
|
|
15520
|
+
}
|
|
15521
|
+
function formatTimePart(number) {
|
|
15522
|
+
const numberAsString = number.toString();
|
|
15523
|
+
return number >= 0 && number <= 9 ? numberAsString.padStart(2, "0") : numberAsString;
|
|
15524
|
+
}
|
|
15525
|
+
function formatTimeString(value) {
|
|
15526
|
+
if (!isValidTime(value)) {
|
|
15527
|
+
return null;
|
|
15528
|
+
}
|
|
15529
|
+
const [hourString, minuteString, secondString] = value.split(":");
|
|
15530
|
+
const hour = formatTimePart(parseInt(hourString));
|
|
15531
|
+
const minute = formatTimePart(parseInt(minuteString));
|
|
15532
|
+
if (secondString) {
|
|
15533
|
+
const second = formatTimePart(parseInt(secondString));
|
|
15534
|
+
return `${hour}:${minute}:${second}`;
|
|
15535
|
+
}
|
|
15536
|
+
return `${hour}:${minute}`;
|
|
15537
|
+
}
|
|
15538
|
+
function getLocaleHourCycle(locale) {
|
|
15539
|
+
const formatter = createLocaleDateTimeFormatter(locale);
|
|
15540
|
+
const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
|
|
15541
|
+
return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
|
|
15542
|
+
}
|
|
15543
|
+
function getLocalizedTimePart(part, parts) {
|
|
15544
|
+
var _a, _b, _c, _d;
|
|
15545
|
+
if (!part || !parts) {
|
|
15546
|
+
return null;
|
|
15547
|
+
}
|
|
15548
|
+
if (part === "hourSuffix") {
|
|
15549
|
+
const hourIndex = parts.indexOf(parts.find(({ type }) => type === "hour"));
|
|
15550
|
+
const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
|
|
15551
|
+
const hourSuffix = parts[hourIndex + 1];
|
|
15552
|
+
return hourSuffix && hourSuffix.type === "literal" && minuteIndex - hourIndex === 2
|
|
15553
|
+
? ((_a = hourSuffix.value) === null || _a === void 0 ? void 0 : _a.trim()) || null
|
|
15554
|
+
: null;
|
|
15555
|
+
}
|
|
15556
|
+
if (part === "minuteSuffix") {
|
|
15557
|
+
const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
|
|
15558
|
+
const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
|
|
15559
|
+
const minuteSuffix = parts[minuteIndex + 1];
|
|
15560
|
+
return minuteSuffix && minuteSuffix.type === "literal" && secondIndex - minuteIndex === 2
|
|
15561
|
+
? ((_b = minuteSuffix.value) === null || _b === void 0 ? void 0 : _b.trim()) || null
|
|
15562
|
+
: null;
|
|
15563
|
+
}
|
|
15564
|
+
if (part === "secondSuffix") {
|
|
15565
|
+
const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
|
|
15566
|
+
const secondSuffix = parts[secondIndex + 1];
|
|
15567
|
+
return secondSuffix && secondSuffix.type === "literal" ? ((_c = secondSuffix.value) === null || _c === void 0 ? void 0 : _c.trim()) || null : null;
|
|
15568
|
+
}
|
|
15569
|
+
return ((_d = parts.find(({ type }) => (part == "meridiem" ? type === "dayPeriod" : type === part))) === null || _d === void 0 ? void 0 : _d.value) || null;
|
|
15570
|
+
}
|
|
15571
|
+
function getMeridiem(hour) {
|
|
15572
|
+
if (!isValidNumber(hour)) {
|
|
15573
|
+
return null;
|
|
15574
|
+
}
|
|
15575
|
+
const hourAsNumber = parseInt(hour);
|
|
15576
|
+
return hourAsNumber >= 0 && hourAsNumber <= 11 ? "AM" : "PM";
|
|
15577
|
+
}
|
|
15578
|
+
function isValidTime(value) {
|
|
15579
|
+
if (!value || value.startsWith(":") || value.endsWith(":")) {
|
|
15580
|
+
return false;
|
|
15581
|
+
}
|
|
15582
|
+
const splitValue = value.split(":");
|
|
15583
|
+
const validLength = splitValue.length > 1 && splitValue.length < 4;
|
|
15584
|
+
if (!validLength) {
|
|
15585
|
+
return false;
|
|
15586
|
+
}
|
|
15587
|
+
const [hour, minute, second] = splitValue;
|
|
15588
|
+
const hourAsNumber = parseInt(splitValue[0]);
|
|
15589
|
+
const minuteAsNumber = parseInt(splitValue[1]);
|
|
15590
|
+
const secondAsNumber = parseInt(splitValue[2]);
|
|
15591
|
+
const hourValid = isValidNumber(hour) && hourAsNumber >= 0 && hourAsNumber < 24;
|
|
15592
|
+
const minuteValid = isValidNumber(minute) && minuteAsNumber >= 0 && minuteAsNumber < 60;
|
|
15593
|
+
const secondValid = isValidNumber(second) && secondAsNumber >= 0 && secondAsNumber < 60;
|
|
15594
|
+
if ((hourValid && minuteValid && !second) || (hourValid && minuteValid && secondValid)) {
|
|
15595
|
+
return true;
|
|
15596
|
+
}
|
|
15597
|
+
}
|
|
15598
|
+
function isValidTimePart(value, part) {
|
|
15599
|
+
if (part === "meridiem") {
|
|
15600
|
+
return value === "AM" || value === "PM";
|
|
15601
|
+
}
|
|
15602
|
+
if (!isValidNumber(value)) {
|
|
15603
|
+
return false;
|
|
15604
|
+
}
|
|
15605
|
+
const valueAsNumber = Number(value);
|
|
15606
|
+
return part === "hour" ? valueAsNumber >= 0 && valueAsNumber < 24 : valueAsNumber >= 0 && valueAsNumber < 60;
|
|
15607
|
+
}
|
|
15608
|
+
function localizeTimePart(value, part, locale) {
|
|
15609
|
+
if (!isValidTimePart(value, part)) {
|
|
15610
|
+
return;
|
|
15611
|
+
}
|
|
15612
|
+
const valueAsNumber = parseInt(value);
|
|
15613
|
+
const date = new Date(Date.UTC(0, 0, 0, part === "hour" ? valueAsNumber : part === "meridiem" ? (value === "AM" ? 0 : 12) : 0, part === "minute" ? valueAsNumber : 0, part === "second" ? valueAsNumber : 0));
|
|
15614
|
+
if (!date) {
|
|
15615
|
+
return;
|
|
15616
|
+
}
|
|
15617
|
+
const formatter = createLocaleDateTimeFormatter(locale);
|
|
15618
|
+
const parts = formatter.formatToParts(date);
|
|
15619
|
+
return getLocalizedTimePart(part, parts);
|
|
15620
|
+
}
|
|
15621
|
+
function localizeTimeString(value, locale = "en", includeSeconds = true) {
|
|
15622
|
+
if (!isValidTime(value)) {
|
|
15623
|
+
return null;
|
|
15624
|
+
}
|
|
15097
15625
|
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
15098
15626
|
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
15099
15627
|
const formatter = createLocaleDateTimeFormatter(locale, includeSeconds);
|
|
@@ -15166,6 +15694,12 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
15166
15694
|
this.active = false;
|
|
15167
15695
|
/** The disabled state of the time input */
|
|
15168
15696
|
this.disabled = false;
|
|
15697
|
+
/**
|
|
15698
|
+
* When true, still focusable but controls are gone and the value cannot be modified.
|
|
15699
|
+
*
|
|
15700
|
+
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
15701
|
+
*/
|
|
15702
|
+
this.readOnly = false;
|
|
15169
15703
|
/**
|
|
15170
15704
|
* BCP 47 language tag for desired language and country format
|
|
15171
15705
|
*
|
|
@@ -15206,8 +15740,10 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
15206
15740
|
this.setInputValue(localizedInputValue || localizeTimeString(this.value, this.locale, shouldIncludeSeconds));
|
|
15207
15741
|
};
|
|
15208
15742
|
this.calciteInternalInputFocusHandler = (event) => {
|
|
15209
|
-
this.
|
|
15210
|
-
|
|
15743
|
+
if (!this.readOnly) {
|
|
15744
|
+
this.active = true;
|
|
15745
|
+
event.stopPropagation();
|
|
15746
|
+
}
|
|
15211
15747
|
};
|
|
15212
15748
|
this.calciteInputInputHandler = (event) => {
|
|
15213
15749
|
const target = event.target;
|
|
@@ -15286,13 +15822,13 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
15286
15822
|
};
|
|
15287
15823
|
}
|
|
15288
15824
|
activeHandler() {
|
|
15289
|
-
if (this.disabled) {
|
|
15825
|
+
if (this.disabled || this.readOnly) {
|
|
15290
15826
|
this.active = false;
|
|
15291
15827
|
return;
|
|
15292
15828
|
}
|
|
15293
15829
|
this.reposition();
|
|
15294
15830
|
}
|
|
15295
|
-
|
|
15831
|
+
handleDisabledAndReadOnlyChange(value) {
|
|
15296
15832
|
if (!value) {
|
|
15297
15833
|
this.active = false;
|
|
15298
15834
|
}
|
|
@@ -15325,7 +15861,9 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
15325
15861
|
timePickerFocusHandler(event) {
|
|
15326
15862
|
event.preventDefault();
|
|
15327
15863
|
event.stopPropagation();
|
|
15328
|
-
this.
|
|
15864
|
+
if (!this.readOnly) {
|
|
15865
|
+
this.active = true;
|
|
15866
|
+
}
|
|
15329
15867
|
}
|
|
15330
15868
|
// --------------------------------------------------------------------------
|
|
15331
15869
|
//
|
|
@@ -15377,12 +15915,13 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
15377
15915
|
// --------------------------------------------------------------------------
|
|
15378
15916
|
render() {
|
|
15379
15917
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
15380
|
-
return (h(Host, { onKeyDown: this.keyDownHandler }, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId }, 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 })), h(HiddenFormInputSlot, { component: this })));
|
|
15918
|
+
return (h(Host, { onKeyDown: this.keyDownHandler }, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: this.readOnly, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId, triggerDisabled: true }, 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 })), h(HiddenFormInputSlot, { component: this })));
|
|
15381
15919
|
}
|
|
15382
15920
|
get el() { return this; }
|
|
15383
15921
|
static get watchers() { return {
|
|
15384
15922
|
"active": ["activeHandler"],
|
|
15385
|
-
"disabled": ["
|
|
15923
|
+
"disabled": ["handleDisabledAndReadOnlyChange"],
|
|
15924
|
+
"readOnly": ["handleDisabledAndReadOnlyChange"],
|
|
15386
15925
|
"locale": ["localeWatcher"],
|
|
15387
15926
|
"value": ["valueWatcher"]
|
|
15388
15927
|
}; }
|
|
@@ -16884,7 +17423,7 @@ const Panel = class extends HTMLElement$1 {
|
|
|
16884
17423
|
renderMenu() {
|
|
16885
17424
|
const { el, intlOptions, menuOpen } = this;
|
|
16886
17425
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
16887
|
-
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$
|
|
17426
|
+
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$q.trigger, text: intlOptions || TEXT$8.options }), h("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
16888
17427
|
}
|
|
16889
17428
|
renderHeaderNode() {
|
|
16890
17429
|
const { el, showBackButton } = this;
|
|
@@ -17076,6 +17615,10 @@ function moveItemIndex(list, item, direction) {
|
|
|
17076
17615
|
}
|
|
17077
17616
|
return index;
|
|
17078
17617
|
}
|
|
17618
|
+
function getItemIndex(list, item) {
|
|
17619
|
+
const { items } = list;
|
|
17620
|
+
return items.indexOf(item);
|
|
17621
|
+
}
|
|
17079
17622
|
function filterOutDisabled(items) {
|
|
17080
17623
|
return items.filter((item) => !item.disabled);
|
|
17081
17624
|
}
|
|
@@ -17240,10 +17783,11 @@ function getItemData() {
|
|
|
17240
17783
|
}));
|
|
17241
17784
|
}
|
|
17242
17785
|
|
|
17243
|
-
const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, setFilterEl }, ...rest }) => {
|
|
17786
|
+
const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, setFilterEl, dragEnabled, storeAssistiveEl }, ...rest }) => {
|
|
17244
17787
|
const defaultSlot = h("slot", null);
|
|
17245
17788
|
return (h(Host, { "aria-busy": toAriaBoolean(loading), role: "menu", ...rest },
|
|
17246
17789
|
h("section", null,
|
|
17790
|
+
dragEnabled ? (h("span", { "aria-live": "assertive", class: "assistive-text", ref: storeAssistiveEl })) : null,
|
|
17247
17791
|
h("header", { class: { [CSS$j.sticky]: true } },
|
|
17248
17792
|
filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
|
|
17249
17793
|
h("slot", { name: SLOTS$b.menuActions })),
|
|
@@ -18001,8 +18545,8 @@ const Popover = class extends HTMLElement$1 {
|
|
|
18001
18545
|
const hidden = !displayed;
|
|
18002
18546
|
const arrowNode = !disablePointer ? (h("div", { class: CSS$g.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) })) : null;
|
|
18003
18547
|
return (h(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, h("div", { class: {
|
|
18004
|
-
[CSS$
|
|
18005
|
-
[CSS$
|
|
18548
|
+
[CSS$F.animation]: true,
|
|
18549
|
+
[CSS$F.animationActive]: displayed
|
|
18006
18550
|
}, onTransitionEnd: this.transitionEnd }, arrowNode, h("div", { class: {
|
|
18007
18551
|
[CSS$g.hasHeader]: !!heading,
|
|
18008
18552
|
[CSS$g.container]: true
|
|
@@ -26329,8 +26873,8 @@ const Tooltip = class extends HTMLElement$1 {
|
|
|
26329
26873
|
const displayed = effectiveReferenceElement && open;
|
|
26330
26874
|
const hidden = !displayed;
|
|
26331
26875
|
return (h(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, h("div", { class: {
|
|
26332
|
-
[CSS$
|
|
26333
|
-
[CSS$
|
|
26876
|
+
[CSS$F.animation]: true,
|
|
26877
|
+
[CSS$F.animationActive]: displayed
|
|
26334
26878
|
} }, h("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), h("div", { class: CSS$2.container }, h("slot", null)))));
|
|
26335
26879
|
}
|
|
26336
26880
|
get el() { return this; }
|
|
@@ -26866,6 +27410,50 @@ var ICON_TYPES;
|
|
|
26866
27410
|
ICON_TYPES["grip"] = "grip";
|
|
26867
27411
|
})(ICON_TYPES || (ICON_TYPES = {}));
|
|
26868
27412
|
|
|
27413
|
+
function getScreenReaderText(item, status, valueList) {
|
|
27414
|
+
const { items, intlDragHandleIdle, intlDragHandleActive, intlDragHandleChange, intlDragHandleCommit } = valueList;
|
|
27415
|
+
const total = items.length;
|
|
27416
|
+
const position = getItemIndex(valueList, item) + 1;
|
|
27417
|
+
if (status === "idle") {
|
|
27418
|
+
const idleText = intlDragHandleIdle
|
|
27419
|
+
? replacePlaceholders(intlDragHandleIdle, item.label, position, total)
|
|
27420
|
+
: `${item.label}, press space and use arrow keys to reorder content. Current position ${position} of ${total}.`;
|
|
27421
|
+
return idleText;
|
|
27422
|
+
}
|
|
27423
|
+
else if (status === "active") {
|
|
27424
|
+
const activeText = intlDragHandleActive
|
|
27425
|
+
? replacePlaceholders(intlDragHandleActive, item.label, position, total)
|
|
27426
|
+
: `Reordering ${item.label}, current position ${position} of ${total}.`;
|
|
27427
|
+
return activeText;
|
|
27428
|
+
}
|
|
27429
|
+
else if (status === "change") {
|
|
27430
|
+
const changeText = intlDragHandleChange
|
|
27431
|
+
? replacePlaceholders(intlDragHandleChange, item.label, position, total)
|
|
27432
|
+
: `${item.label}, new position ${position} of ${total}. Press space to confirm.`;
|
|
27433
|
+
return changeText;
|
|
27434
|
+
}
|
|
27435
|
+
else {
|
|
27436
|
+
const commitText = intlDragHandleCommit
|
|
27437
|
+
? replacePlaceholders(intlDragHandleCommit, item.label, position, total)
|
|
27438
|
+
: `${item.label}, current position ${position} of ${total}.`;
|
|
27439
|
+
return commitText;
|
|
27440
|
+
}
|
|
27441
|
+
}
|
|
27442
|
+
function getHandleAndItemElement(event) {
|
|
27443
|
+
const handle = event
|
|
27444
|
+
.composedPath()
|
|
27445
|
+
.find((item) => { var _a; return ((_a = item.dataset) === null || _a === void 0 ? void 0 : _a.jsHandle) !== undefined; });
|
|
27446
|
+
const item = event
|
|
27447
|
+
.composedPath()
|
|
27448
|
+
.find((item) => { var _a; return ((_a = item.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "calcite-value-list-item"; });
|
|
27449
|
+
return { handle, item };
|
|
27450
|
+
}
|
|
27451
|
+
function replacePlaceholders(text, label, position, total) {
|
|
27452
|
+
const replacePosition = text.replace("${position}", position.toString());
|
|
27453
|
+
const replaceLabel = replacePosition.replace("${item.label}", label);
|
|
27454
|
+
return replaceLabel.replace("${total}", total.toString());
|
|
27455
|
+
}
|
|
27456
|
+
|
|
26869
27457
|
const valueListCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}: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}calcite-value-list-item:last-of-type{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header{margin-bottom:0.25rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;background-color:var(--calcite-ui-foreground-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header.sticky-pos{position:-webkit-sticky;position:sticky;top:0px;z-index:10}calcite-filter{margin-bottom:1px}";
|
|
26870
27458
|
|
|
26871
27459
|
const ValueList = class extends HTMLElement$1 {
|
|
@@ -26925,18 +27513,18 @@ const ValueList = class extends HTMLElement$1 {
|
|
|
26925
27513
|
this.handleFilter = handleFilter.bind(this);
|
|
26926
27514
|
this.getItemData = getItemData.bind(this);
|
|
26927
27515
|
this.keyDownHandler = (event) => {
|
|
26928
|
-
const
|
|
26929
|
-
|
|
26930
|
-
.
|
|
26931
|
-
|
|
26932
|
-
|
|
26933
|
-
.find((item) => { var _a; return ((_a = item.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "calcite-value-list-item"; });
|
|
26934
|
-
// Only trigger keyboard sorting when the internal drag handle is focused and activated
|
|
26935
|
-
if (!handleElement || !item.handleActivated) {
|
|
27516
|
+
const { handle, item } = getHandleAndItemElement(event);
|
|
27517
|
+
if (handle && !item.handleActivated && event.key === " ") {
|
|
27518
|
+
this.updateScreenReaderText(getScreenReaderText(item, "commit", this));
|
|
27519
|
+
}
|
|
27520
|
+
if (!handle || !item.handleActivated) {
|
|
26936
27521
|
keyDownHandler.call(this, event);
|
|
26937
27522
|
return;
|
|
26938
27523
|
}
|
|
26939
27524
|
const { items } = this;
|
|
27525
|
+
if (event.key === " ") {
|
|
27526
|
+
this.updateScreenReaderText(getScreenReaderText(item, "active", this));
|
|
27527
|
+
}
|
|
26940
27528
|
if ((event.key !== "ArrowUp" && event.key !== "ArrowDown") || items.length <= 1) {
|
|
26941
27529
|
return;
|
|
26942
27530
|
}
|
|
@@ -26955,8 +27543,18 @@ const ValueList = class extends HTMLElement$1 {
|
|
|
26955
27543
|
}
|
|
26956
27544
|
this.items = this.getItems();
|
|
26957
27545
|
this.calciteListOrderChange.emit(this.items.map(({ value }) => value));
|
|
26958
|
-
requestAnimationFrame(() =>
|
|
27546
|
+
requestAnimationFrame(() => handle === null || handle === void 0 ? void 0 : handle.focus());
|
|
26959
27547
|
item.handleActivated = true;
|
|
27548
|
+
this.updateHandleAriaLabel(handle, getScreenReaderText(item, "change", this));
|
|
27549
|
+
};
|
|
27550
|
+
this.storeAssistiveEl = (el) => {
|
|
27551
|
+
this.assistiveTextEl = el;
|
|
27552
|
+
};
|
|
27553
|
+
this.handleFocusIn = (event) => {
|
|
27554
|
+
const { handle, item } = getHandleAndItemElement(event);
|
|
27555
|
+
if (!(item === null || item === void 0 ? void 0 : item.handleActivated) && item && handle) {
|
|
27556
|
+
this.updateHandleAriaLabel(handle, getScreenReaderText(item, "idle", this));
|
|
27557
|
+
}
|
|
26960
27558
|
};
|
|
26961
27559
|
}
|
|
26962
27560
|
// --------------------------------------------------------------------------
|
|
@@ -27033,6 +27631,11 @@ const ValueList = class extends HTMLElement$1 {
|
|
|
27033
27631
|
(_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
27034
27632
|
this.sortable = null;
|
|
27035
27633
|
}
|
|
27634
|
+
handleBlur() {
|
|
27635
|
+
if (this.dragEnabled) {
|
|
27636
|
+
this.updateScreenReaderText("");
|
|
27637
|
+
}
|
|
27638
|
+
}
|
|
27036
27639
|
// --------------------------------------------------------------------------
|
|
27037
27640
|
//
|
|
27038
27641
|
// Public Methods
|
|
@@ -27062,8 +27665,14 @@ const ValueList = class extends HTMLElement$1 {
|
|
|
27062
27665
|
}
|
|
27063
27666
|
return type;
|
|
27064
27667
|
}
|
|
27668
|
+
updateScreenReaderText(text) {
|
|
27669
|
+
this.assistiveTextEl.textContent = text;
|
|
27670
|
+
}
|
|
27671
|
+
updateHandleAriaLabel(handleElement, text) {
|
|
27672
|
+
handleElement.ariaLabel = text;
|
|
27673
|
+
}
|
|
27065
27674
|
render() {
|
|
27066
|
-
return h(List, { onKeyDown: this.keyDownHandler, props: this });
|
|
27675
|
+
return (h(List, { onBlur: this.handleBlur, onFocusin: this.handleFocusIn, onKeyDown: this.keyDownHandler, props: this }));
|
|
27067
27676
|
}
|
|
27068
27677
|
get el() { return this; }
|
|
27069
27678
|
static get style() { return valueListCss; }
|
|
@@ -27190,7 +27799,7 @@ const ValueListItem = class extends HTMLElement$1 {
|
|
|
27190
27799
|
renderHandle() {
|
|
27191
27800
|
const { icon } = this;
|
|
27192
27801
|
if (icon === ICON_TYPES$1.grip) {
|
|
27193
|
-
return (h("span", {
|
|
27802
|
+
return (h("span", { class: {
|
|
27194
27803
|
[CSS$h.handle]: true,
|
|
27195
27804
|
[CSS$h.handleActivated]: this.handleActivated
|
|
27196
27805
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0" }, h("calcite-icon", { icon: ICONS.drag, scale: "s" })));
|
|
@@ -27239,9 +27848,10 @@ const CalciteHandle = /*@__PURE__*/proxyCustomElement(Handle, [1,"calcite-handle
|
|
|
27239
27848
|
const CalciteIcon = /*@__PURE__*/proxyCustomElement(Icon, [1,"calcite-icon",{"icon":[513],"flipRtl":[516,"flip-rtl"],"scale":[513],"textLabel":[1,"text-label"],"pathData":[32],"visible":[32]}]);
|
|
27240
27849
|
const CalciteInlineEditable = /*@__PURE__*/proxyCustomElement(InlineEditable, [1,"calcite-inline-editable",{"disabled":[516],"editingEnabled":[1540,"editing-enabled"],"loading":[1540],"controls":[516],"intlEnableEditing":[513,"intl-enable-editing"],"intlCancelEditing":[513,"intl-cancel-editing"],"intlConfirmChanges":[513,"intl-confirm-changes"],"scale":[1537],"afterConfirm":[16]},[[0,"calciteInternalInputBlur","blurHandler"]]]);
|
|
27241
27850
|
const CalciteInput = /*@__PURE__*/proxyCustomElement(Input, [1,"calcite-input",{"alignment":[513],"autofocus":[4],"clearable":[516],"disabled":[516],"groupSeparator":[4,"group-separator"],"hidden":[4],"icon":[520],"intlClear":[1,"intl-clear"],"intlLoading":[1,"intl-loading"],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"locale":[1],"numberingSystem":[1,"numbering-system"],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxlength":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[4,"read-only"],"required":[4],"scale":[1537],"status":[1537],"step":[520],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"type":[513],"value":[1025],"localizedValue":[32]}]);
|
|
27242
|
-
const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(InputDatePicker, [1,"calcite-input-date-picker",{"disabled":[516],"value":[1025],"flipPlacements":[16],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"active":[1540],"name":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"placement":[513],"range":[516],"required":[516],"start":[1025],"end":[1025],"overlayPositioning":[1,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"focusedInput":[32],"localeData":[32]},[[0,"calciteDatePickerChange","handleDateOrRangeChange"],[0,"calciteDatePickerRangeChange","handleDateOrRangeChange"],[0,"calciteDaySelect","calciteDaySelectHandler"]]]);
|
|
27851
|
+
const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(InputDatePicker, [1,"calcite-input-date-picker",{"disabled":[516],"readOnly":[4,"read-only"],"value":[1025],"flipPlacements":[16],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"active":[1540],"name":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"placement":[513],"range":[516],"required":[516],"start":[1025],"end":[1025],"overlayPositioning":[1,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"focusedInput":[32],"localeData":[32]},[[0,"calciteDatePickerChange","handleDateOrRangeChange"],[0,"calciteDatePickerRangeChange","handleDateOrRangeChange"],[0,"calciteDaySelect","calciteDaySelectHandler"]]]);
|
|
27243
27852
|
const CalciteInputMessage = /*@__PURE__*/proxyCustomElement(InputMessage, [1,"calcite-input-message",{"active":[516],"icon":[520],"scale":[1537],"status":[1537],"type":[513]}]);
|
|
27244
|
-
const
|
|
27853
|
+
const CalciteInputNumber = /*@__PURE__*/proxyCustomElement(InputNumber, [1,"calcite-input-number",{"alignment":[513],"autofocus":[4],"clearable":[516],"disabled":[516],"groupSeparator":[4,"group-separator"],"hidden":[4],"icon":[520],"intlClear":[1,"intl-clear"],"intlLoading":[1,"intl-loading"],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"locale":[1],"numberingSystem":[1,"numbering-system"],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[4,"read-only"],"required":[4],"scale":[1537],"status":[1537],"step":[520],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"value":[1025],"localizedValue":[32]}]);
|
|
27854
|
+
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(InputTimePicker, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"readOnly":[4,"read-only"],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"placement":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"keyup","keyUpHandler"],[0,"calciteInternalTimePickerBlur","timePickerBlurHandler"],[0,"calciteInternalTimePickerFocus","timePickerFocusHandler"]]]);
|
|
27245
27855
|
const CalciteLabel = /*@__PURE__*/proxyCustomElement(Label, [1,"calcite-label",{"alignment":[513],"status":[513],"for":[513],"scale":[513],"layout":[513],"disabled":[516],"disableSpacing":[4,"disable-spacing"]}]);
|
|
27246
27856
|
const CalciteLink = /*@__PURE__*/proxyCustomElement(Link, [1,"calcite-link",{"disabled":[516],"download":[520],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1]}]);
|
|
27247
27857
|
const CalciteList = /*@__PURE__*/proxyCustomElement(List$1, [1,"calcite-list",{"disabled":[516],"headingLevel":[2,"heading-level"]}]);
|
|
@@ -27291,7 +27901,7 @@ const CalciteTooltip = /*@__PURE__*/proxyCustomElement(Tooltip, [1,"calcite-tool
|
|
|
27291
27901
|
const CalciteTooltipManager = /*@__PURE__*/proxyCustomElement(TooltipManager, [1,"calcite-tooltip-manager",{"selector":[1]}]);
|
|
27292
27902
|
const CalciteTree = /*@__PURE__*/proxyCustomElement(Tree, [1,"calcite-tree",{"lines":[1540],"inputEnabled":[4,"input-enabled"],"child":[1540],"scale":[1537],"selectionMode":[1537,"selection-mode"]},[[0,"focus","onFocus"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"],[0,"calciteInternalTreeItemSelect","onClick"],[0,"keydown","keyDownHandler"]]]);
|
|
27293
27903
|
const CalciteTreeItem = /*@__PURE__*/proxyCustomElement(TreeItem, [1,"calcite-tree-item",{"selected":[1540],"expanded":[1540],"parentExpanded":[4,"parent-expanded"],"depth":[1538],"hasChildren":[1540,"has-children"],"lines":[1540],"inputEnabled":[4,"input-enabled"],"scale":[1537],"indeterminate":[516],"selectionMode":[1025,"selection-mode"]},[[0,"click","onClick"],[0,"keydown","keyDownHandler"]]]);
|
|
27294
|
-
const CalciteValueList = /*@__PURE__*/proxyCustomElement(ValueList, [1,"calcite-value-list",{"disabled":[516],"dragEnabled":[516,"drag-enabled"],"filterEnabled":[516,"filter-enabled"],"filterPlaceholder":[513,"filter-placeholder"],"group":[1],"loading":[516],"multiple":[516],"selectionFollowsFocus":[4,"selection-follows-focus"],"selectedValues":[32],"dataForFilter":[32]},[[0,"focusout","calciteListFocusOutHandler"],[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteInternalListItemPropsChange","calciteInternalListItemPropsChangeHandler"],[0,"calciteInternalListItemValueChange","calciteInternalListItemValueChangeHandler"]]]);
|
|
27904
|
+
const CalciteValueList = /*@__PURE__*/proxyCustomElement(ValueList, [1,"calcite-value-list",{"disabled":[516],"dragEnabled":[516,"drag-enabled"],"filterEnabled":[516,"filter-enabled"],"filterPlaceholder":[513,"filter-placeholder"],"group":[1],"loading":[516],"multiple":[516],"selectionFollowsFocus":[4,"selection-follows-focus"],"intlDragHandleIdle":[1,"intl-drag-handle-idle"],"intlDragHandleActive":[1,"intl-drag-handle-active"],"intlDragHandleChange":[1,"intl-drag-handle-change"],"intlDragHandleCommit":[1,"intl-drag-handle-commit"],"selectedValues":[32],"dataForFilter":[32]},[[0,"focusout","calciteListFocusOutHandler"],[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteInternalListItemPropsChange","calciteInternalListItemPropsChangeHandler"],[0,"calciteInternalListItemValueChange","calciteInternalListItemValueChangeHandler"]]]);
|
|
27295
27905
|
const CalciteValueListItem = /*@__PURE__*/proxyCustomElement(ValueListItem, [1,"calcite-value-list-item",{"description":[513],"disabled":[516],"disableDeselect":[4,"disable-deselect"],"nonInteractive":[516,"non-interactive"],"handleActivated":[1028,"handle-activated"],"icon":[513],"label":[513],"metadata":[16],"removable":[516],"selected":[1540],"value":[8]},[[0,"calciteListItemChange","calciteListItemChangeHandler"]]]);
|
|
27296
27906
|
const defineCustomElements = (opts) => {
|
|
27297
27907
|
if (typeof customElements !== 'undefined') {
|
|
@@ -27334,6 +27944,7 @@ const defineCustomElements = (opts) => {
|
|
|
27334
27944
|
CalciteInput,
|
|
27335
27945
|
CalciteInputDatePicker,
|
|
27336
27946
|
CalciteInputMessage,
|
|
27947
|
+
CalciteInputNumber,
|
|
27337
27948
|
CalciteInputTimePicker,
|
|
27338
27949
|
CalciteLabel,
|
|
27339
27950
|
CalciteLink,
|
|
@@ -27394,4 +28005,4 @@ const defineCustomElements = (opts) => {
|
|
|
27394
28005
|
}
|
|
27395
28006
|
};
|
|
27396
28007
|
|
|
27397
|
-
export { CalciteAccordion, CalciteAccordionItem, CalciteAction, CalciteActionBar, CalciteActionGroup, CalciteActionMenu, CalciteActionPad, CalciteAlert, CalciteAvatar, CalciteBlock, CalciteBlockSection, CalciteButton, CalciteCard, CalciteCheckbox, CalciteChip, CalciteColorPicker, CalciteColorPickerHexInput, CalciteColorPickerSwatch, CalciteCombobox, CalciteComboboxItem, CalciteComboboxItemGroup, CalciteDatePicker, CalciteDatePickerDay, CalciteDatePickerMonth, CalciteDatePickerMonthHeader, CalciteDropdown, CalciteDropdownGroup, CalciteDropdownItem, CalciteFab, CalciteFilter, CalciteFlow, CalciteGraph, CalciteHandle, CalciteIcon, CalciteInlineEditable, CalciteInput, CalciteInputDatePicker, CalciteInputMessage, CalciteInputTimePicker, CalciteLabel, CalciteLink, CalciteList, CalciteListItem, CalciteListItemGroup, CalciteLoader, CalciteModal, CalciteNotice, CalciteOption, CalciteOptionGroup, CalcitePagination, CalcitePanel, CalcitePickList, CalcitePickListGroup, CalcitePickListItem, CalcitePopover, CalcitePopoverManager, CalciteProgress, CalciteRadioButton, CalciteRadioButtonGroup, CalciteRadioGroup, CalciteRadioGroupItem, CalciteRating, CalciteScrim, CalciteSelect, CalciteShell, CalciteShellCenterRow, CalciteShellPanel, CalciteSlider, CalciteSortableList, CalciteSplitButton, CalciteStepper, CalciteStepperItem, CalciteSwitch, CalciteTab, CalciteTabNav, CalciteTabTitle, CalciteTabs, CalciteTile, CalciteTileSelect, CalciteTileSelectGroup, CalciteTimePicker, CalciteTip, CalciteTipGroup, CalciteTipManager, CalciteTooltip, CalciteTooltipManager, CalciteTree, CalciteTreeItem, CalciteValueList, CalciteValueListItem, defineCustomElements };
|
|
28008
|
+
export { CalciteAccordion, CalciteAccordionItem, CalciteAction, CalciteActionBar, CalciteActionGroup, CalciteActionMenu, CalciteActionPad, CalciteAlert, CalciteAvatar, CalciteBlock, CalciteBlockSection, CalciteButton, CalciteCard, CalciteCheckbox, CalciteChip, CalciteColorPicker, CalciteColorPickerHexInput, CalciteColorPickerSwatch, CalciteCombobox, CalciteComboboxItem, CalciteComboboxItemGroup, CalciteDatePicker, CalciteDatePickerDay, CalciteDatePickerMonth, CalciteDatePickerMonthHeader, CalciteDropdown, CalciteDropdownGroup, CalciteDropdownItem, CalciteFab, CalciteFilter, CalciteFlow, CalciteGraph, CalciteHandle, CalciteIcon, CalciteInlineEditable, CalciteInput, CalciteInputDatePicker, CalciteInputMessage, CalciteInputNumber, CalciteInputTimePicker, CalciteLabel, CalciteLink, CalciteList, CalciteListItem, CalciteListItemGroup, CalciteLoader, CalciteModal, CalciteNotice, CalciteOption, CalciteOptionGroup, CalcitePagination, CalcitePanel, CalcitePickList, CalcitePickListGroup, CalcitePickListItem, CalcitePopover, CalcitePopoverManager, CalciteProgress, CalciteRadioButton, CalciteRadioButtonGroup, CalciteRadioGroup, CalciteRadioGroupItem, CalciteRating, CalciteScrim, CalciteSelect, CalciteShell, CalciteShellCenterRow, CalciteShellPanel, CalciteSlider, CalciteSortableList, CalciteSplitButton, CalciteStepper, CalciteStepperItem, CalciteSwitch, CalciteTab, CalciteTabNav, CalciteTabTitle, CalciteTabs, CalciteTile, CalciteTileSelect, CalciteTileSelectGroup, CalciteTimePicker, CalciteTip, CalciteTipGroup, CalciteTipManager, CalciteTooltip, CalciteTooltipManager, CalciteTree, CalciteTreeItem, CalciteValueList, CalciteValueListItem, defineCustomElements };
|