@esri/calcite-components 1.0.0-beta.80 → 1.0.0-beta.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/assets/icon/fileEcd16.json +1 -0
- package/dist/calcite/assets/icon/fileEcd24.json +1 -0
- package/dist/calcite/assets/icon/fileEcd32.json +1 -0
- package/dist/calcite/calcite.esm.js +2 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +1 -0
- package/dist/calcite/{p-c228a1da.system.entry.js → p-023a27d2.system.entry.js} +2 -1
- package/dist/calcite/{p-cafd98e8.entry.js → p-045f28b2.entry.js} +2 -1
- package/dist/calcite/p-0a6b6898.system.entry.js +6 -0
- package/dist/calcite/{p-f68725d7.entry.js → p-0ba791df.entry.js} +2 -1
- package/dist/calcite/{p-dcf33bb2.js → p-0ee86cc3.js} +2 -1
- package/dist/calcite/{p-97904e9a.entry.js → p-0f0713c7.entry.js} +2 -1
- package/dist/calcite/{p-afe59546.entry.js → p-0f8c3ea0.entry.js} +2 -1
- package/dist/calcite/{p-5a8829cd.entry.js → p-1084cd40.entry.js} +2 -1
- package/dist/calcite/{p-569150ab.system.entry.js → p-117836c2.system.entry.js} +2 -1
- package/dist/calcite/{p-2dd22e8c.system.entry.js → p-14be4304.system.entry.js} +2 -1
- package/dist/calcite/{p-a7770d75.entry.js → p-14ca50d9.entry.js} +2 -1
- package/dist/calcite/p-181bd093.entry.js +6 -0
- package/dist/calcite/{p-5394666a.entry.js → p-1866c3d6.entry.js} +2 -1
- package/dist/calcite/{p-cd9226a1.system.entry.js → p-19987cfa.system.entry.js} +3 -2
- package/dist/calcite/{p-05bf835f.js → p-1b7e43a7.js} +2 -1
- package/dist/calcite/{p-55e1a3a0.system.entry.js → p-1d0db848.system.entry.js} +2 -1
- package/dist/calcite/{p-963e9aec.system.entry.js → p-1d3ba736.system.entry.js} +2 -1
- package/dist/calcite/{p-34730e94.entry.js → p-21461822.entry.js} +2 -1
- package/dist/calcite/{p-765c9bef.entry.js → p-22e1813c.entry.js} +2 -1
- package/dist/calcite/{p-b9a38a28.system.entry.js → p-2363fc48.system.entry.js} +3 -2
- package/dist/calcite/p-23c9c6f9.js +12 -0
- package/dist/calcite/{p-a117af56.system.js → p-24db2b0a.system.js} +1 -0
- package/dist/calcite/{p-65dbbfb5.system.js → p-26fc61bb.system.js} +1 -0
- package/dist/calcite/p-2789e3e2.system.js +6 -0
- package/dist/calcite/{p-69d2d9cf.system.entry.js → p-2a4bbfa2.system.entry.js} +2 -1
- package/dist/calcite/p-2bcf0f54.js +6 -0
- package/dist/calcite/{p-824da4be.entry.js → p-2c0fdd49.entry.js} +2 -1
- package/dist/calcite/{p-7ed4c551.system.js → p-2f07bcb4.system.js} +1 -0
- package/dist/calcite/{p-9ad8c7c5.system.entry.js → p-2f42b00e.system.entry.js} +2 -1
- package/dist/calcite/{p-6e0103f5.system.entry.js → p-300c0203.system.entry.js} +2 -1
- package/dist/calcite/{p-0a5d059d.js → p-3113528a.js} +1 -0
- package/dist/calcite/{p-3b4662a5.entry.js → p-3119474f.entry.js} +2 -1
- package/dist/calcite/{p-8e0dd0af.system.entry.js → p-329ade24.system.entry.js} +2 -1
- package/dist/calcite/{p-9c913e3a.entry.js → p-33391f44.entry.js} +2 -1
- package/dist/calcite/{p-6a541e77.system.js → p-3412c57d.system.js} +2 -1
- package/dist/calcite/{p-3e149640.system.entry.js → p-34a92432.system.entry.js} +2 -1
- package/dist/calcite/{p-31c58f25.entry.js → p-34cf7a42.entry.js} +2 -1
- package/dist/calcite/{p-c2caeb2a.system.entry.js → p-3b38f3f5.system.entry.js} +2 -1
- package/dist/calcite/{p-28c333d0.entry.js → p-3b6e600a.entry.js} +2 -1
- package/dist/calcite/p-3c732519.entry.js +6 -0
- package/dist/calcite/{p-8ab345f2.js → p-3ceba891.js} +2 -1
- package/dist/calcite/p-3e5f8e93.system.entry.js +6 -0
- package/dist/calcite/{p-c9fc13b9.system.entry.js → p-3ebff946.system.entry.js} +2 -1
- package/dist/calcite/p-40334853.system.js +6 -0
- package/dist/calcite/{p-1aded388.system.entry.js → p-40a15f4a.system.entry.js} +2 -1
- package/dist/calcite/p-4275a429.system.js +6 -0
- package/dist/calcite/{p-e66a8ca1.system.entry.js → p-44f00a2a.system.entry.js} +2 -1
- package/dist/calcite/p-469490f8.js +6 -0
- package/dist/calcite/{p-7432e5ef.system.entry.js → p-47913e44.system.entry.js} +2 -1
- package/dist/calcite/p-482956de.entry.js +6 -0
- package/dist/calcite/{p-e43605c5.entry.js → p-48aa73e5.entry.js} +2 -1
- package/dist/calcite/p-4a543a6e.entry.js +6 -0
- package/dist/calcite/{p-1263bcc0.entry.js → p-4b6a7167.entry.js} +2 -1
- package/dist/calcite/p-4f04264f.system.entry.js +6 -0
- package/dist/calcite/{p-6ed27595.system.entry.js → p-4f443e21.system.entry.js} +2 -1
- package/dist/calcite/{p-cc6e7726.entry.js → p-4ff2f38c.entry.js} +2 -1
- package/dist/calcite/{p-4afb5a1b.system.entry.js → p-50f49b13.system.entry.js} +2 -1
- package/dist/calcite/p-52c9824d.system.entry.js +6 -0
- package/dist/calcite/{p-2fae8516.system.entry.js → p-55d64bae.system.entry.js} +2 -1
- package/dist/calcite/{p-aad14a5d.system.entry.js → p-5857c533.system.entry.js} +2 -1
- package/dist/calcite/{p-7fc69a9d.js → p-5a3414c7.js} +1 -0
- package/dist/calcite/{p-e095517f.system.js → p-5dd1e943.system.js} +1 -0
- package/dist/calcite/{p-2d09cc25.js → p-5ed8397b.js} +1 -0
- package/dist/calcite/{p-cd5f5c8f.js → p-608aaf1d.js} +2 -1
- package/dist/calcite/{p-03c92ad2.entry.js → p-609f05ef.entry.js} +2 -1
- package/dist/calcite/{p-ee522afa.system.entry.js → p-60f78917.system.entry.js} +2 -1
- package/dist/calcite/{p-e020662f.system.js → p-61021069.system.js} +1 -0
- package/dist/calcite/p-6294787b.system.js +6 -0
- package/dist/calcite/{p-162604a0.entry.js → p-62a93131.entry.js} +2 -1
- package/dist/calcite/{p-a9ea7f4f.entry.js → p-6750e68e.entry.js} +2 -1
- package/dist/calcite/p-678e83fe.entry.js +6 -0
- package/dist/calcite/p-693cc0cd.system.entry.js +6 -0
- package/dist/calcite/p-69fdc534.entry.js +6 -0
- package/dist/calcite/{p-7260c869.system.entry.js → p-6c9ab1d6.system.entry.js} +2 -1
- package/dist/calcite/{p-46071f17.entry.js → p-6ebbdae4.entry.js} +2 -1
- package/dist/calcite/{p-6b7b23d0.js → p-7225f4ed.js} +1 -0
- package/dist/calcite/{p-3e9d96c6.system.entry.js → p-72ab20ed.system.entry.js} +2 -1
- package/dist/calcite/{p-6ab3e489.entry.js → p-7463e93d.entry.js} +2 -1
- package/dist/calcite/p-7549f33d.entry.js +6 -0
- package/dist/calcite/{p-b2493735.entry.js → p-769054e6.entry.js} +2 -1
- package/dist/calcite/{p-78bc502f.entry.js → p-7c32da09.entry.js} +2 -1
- package/dist/calcite/{p-02d7cf64.system.entry.js → p-7e9cac29.system.entry.js} +2 -1
- package/dist/calcite/{p-3119ffce.system.js → p-7ebc956d.system.js} +1 -0
- package/dist/calcite/{p-3c34f20d.system.js → p-8117e07b.system.js} +2 -1
- package/dist/calcite/{p-4570cf6c.js → p-82c05795.js} +2 -1
- package/dist/calcite/{p-c2adeae4.entry.js → p-8729fefb.entry.js} +2 -1
- package/dist/calcite/p-88f476f3.system.entry.js +6 -0
- package/dist/calcite/{p-18be4438.entry.js → p-89146101.entry.js} +2 -1
- package/dist/calcite/p-8d372581.entry.js +6 -0
- package/dist/calcite/{p-496e907a.system.entry.js → p-8d9d8984.system.entry.js} +2 -1
- package/dist/calcite/{p-bd38ff21.js → p-90660203.js} +1 -0
- package/dist/calcite/{p-614d8925.js → p-941b8b06.js} +2 -1
- package/dist/calcite/{p-48637359.system.entry.js → p-948a5bba.system.entry.js} +2 -1
- package/dist/calcite/{p-079a3322.js → p-99520e50.js} +1 -0
- package/dist/calcite/{p-5958acc8.system.js → p-99bd5049.system.js} +1 -0
- package/dist/calcite/p-9b7b6b30.entry.js +6 -0
- package/dist/calcite/{p-364db271.entry.js → p-9d488536.entry.js} +2 -1
- package/dist/calcite/{p-fa922721.system.js → p-9da64897.system.js} +2 -1
- package/dist/calcite/{p-8a7596e3.entry.js → p-a2b46564.entry.js} +2 -1
- package/dist/calcite/{p-accdb0ce.js → p-a3478523.js} +1 -0
- package/dist/calcite/{p-07f1f162.system.entry.js → p-a4b72090.system.entry.js} +2 -1
- package/dist/calcite/{p-63624a01.js → p-a9630b98.js} +1 -0
- package/dist/calcite/{p-cb57638c.system.js → p-aad21300.system.js} +2 -1
- package/dist/calcite/{p-588bfa74.system.js → p-ae4a167e.system.js} +2 -1
- package/dist/calcite/p-af100a3b.entry.js +6 -0
- package/dist/calcite/p-b15cde3f.js +6 -0
- package/dist/calcite/{p-e55c5bb4.entry.js → p-b3d74df1.entry.js} +2 -1
- package/dist/calcite/p-b50b0f92.system.entry.js +6 -0
- package/dist/calcite/{p-6fba3e1b.system.entry.js → p-b6dad672.system.entry.js} +2 -1
- package/dist/calcite/{p-32d6b962.entry.js → p-bae3c0b1.entry.js} +2 -1
- package/dist/calcite/{p-daf5f04c.system.js → p-bc873e26.system.js} +2 -1
- package/dist/calcite/{p-052ba882.system.entry.js → p-bddde234.system.entry.js} +2 -1
- package/dist/calcite/{p-7b8707b2.system.js → p-be0551f8.system.js} +1 -0
- package/dist/calcite/{p-f78023f1.system.js → p-bef4c06f.system.js} +1 -0
- package/dist/calcite/{p-e3280a36.system.entry.js → p-c0ab6c20.system.entry.js} +2 -1
- package/dist/calcite/{p-b47dc903.system.entry.js → p-c22bd1df.system.entry.js} +2 -1
- package/dist/calcite/{p-b2b6f712.js → p-c2770291.js} +2 -1
- package/dist/calcite/{p-482885ae.system.entry.js → p-c477a6ac.system.entry.js} +2 -1
- package/dist/calcite/{p-bdcb43b1.system.entry.js → p-c62291e6.system.entry.js} +2 -1
- package/dist/calcite/p-c66cce4a.js +6 -0
- package/dist/calcite/p-c76d5a12.entry.js +6 -0
- package/dist/calcite/{p-f344e163.entry.js → p-c82c3a08.entry.js} +2 -1
- package/dist/calcite/{p-b0827b8c.system.entry.js → p-c91e5ce6.system.entry.js} +2 -1
- package/dist/calcite/{p-ef17447d.system.entry.js → p-cb3633ce.system.entry.js} +2 -1
- package/dist/calcite/{p-42227a04.entry.js → p-cc881354.entry.js} +2 -1
- package/dist/calcite/{p-a11ee541.system.entry.js → p-ceae054a.system.entry.js} +2 -1
- package/dist/calcite/{p-ea4119b1.system.entry.js → p-cec925c5.system.entry.js} +2 -1
- package/dist/calcite/{p-32efc4cd.system.entry.js → p-d0ae73bc.system.entry.js} +2 -1
- package/dist/calcite/p-d2aad5f9.system.entry.js +6 -0
- package/dist/calcite/{p-9385e4b4.system.js → p-d441a36b.system.js} +2 -1
- package/dist/calcite/{p-47d38839.entry.js → p-d668cc57.entry.js} +2 -1
- package/dist/calcite/p-d7f31cff.system.js +12 -0
- package/dist/calcite/{p-b765d197.system.js → p-d8c1d1bb.system.js} +2 -1
- package/dist/calcite/p-d9669187.entry.js +6 -0
- package/dist/calcite/{p-6c4a7041.system.entry.js → p-da5a9916.system.entry.js} +2 -1
- package/dist/calcite/{p-5bb4d012.entry.js → p-daf452fa.entry.js} +2 -1
- package/dist/calcite/{p-6b5776af.js → p-db2360e6.js} +1 -0
- package/dist/calcite/p-ddc498f5.entry.js +6 -0
- package/dist/calcite/{p-4eae61c5.entry.js → p-de040bc0.entry.js} +2 -1
- package/dist/calcite/{p-8a63221d.js → p-dfd0c1ce.js} +1 -0
- package/dist/calcite/{p-1fc943d5.system.entry.js → p-e131dae7.system.entry.js} +2 -1
- package/dist/calcite/{p-a9b3ef39.js → p-e21b549b.js} +2 -1
- package/dist/calcite/{p-eb3c084f.system.entry.js → p-e3f1b697.system.entry.js} +2 -1
- package/dist/calcite/{p-7bee4942.system.entry.js → p-e4a047e7.system.entry.js} +2 -1
- package/dist/calcite/p-e6034e51.entry.js +6 -0
- package/dist/calcite/{p-5802a565.entry.js → p-e64fc8d7.entry.js} +2 -1
- package/dist/calcite/p-e6b83b93.entry.js +6 -0
- package/dist/calcite/{p-4de6f4fd.system.js → p-e837987d.system.js} +1 -0
- package/dist/calcite/p-e8698d9f.system.entry.js +6 -0
- package/dist/calcite/{p-9940b82a.system.entry.js → p-ea09f02f.system.entry.js} +2 -1
- package/dist/calcite/p-eaf8f62d.entry.js +6 -0
- package/dist/calcite/{p-edf1e815.system.entry.js → p-ec6942a8.system.entry.js} +2 -1
- package/dist/calcite/{p-1d6404b5.system.js → p-ed535fb3.system.js} +1 -0
- package/dist/calcite/{p-426f011a.entry.js → p-ef8bcab3.entry.js} +2 -1
- package/dist/calcite/p-f3ba8a0a.entry.js +6 -0
- package/dist/calcite/{p-cbc6fee6.entry.js → p-f5a00782.entry.js} +2 -1
- package/dist/calcite/{p-54c49493.entry.js → p-f753e964.entry.js} +2 -1
- package/dist/calcite/{p-c51699d3.system.js → p-f839293b.system.js} +3 -2
- package/dist/calcite/{p-7247b667.system.entry.js → p-f89876d3.system.entry.js} +2 -1
- package/dist/calcite/{p-b06207bb.js → p-f8d2efa3.js} +1 -0
- package/dist/calcite/{p-ac4aec20.system.js → p-fb726bdd.system.js} +1 -0
- package/dist/calcite/p-fc2aa57a.system.entry.js +6 -0
- package/dist/calcite/{p-9ac86d6a.entry.js → p-ffc13e2d.entry.js} +2 -1
- package/dist/calcite/{p-aaa21a84.system.entry.js → p-ffeda3eb.system.entry.js} +2 -1
- package/dist/cjs/{ExpandToggle-f7682a15.js → ExpandToggle-e3bd3e9d.js} +5 -4
- package/dist/cjs/{Heading-ec707493.js → Heading-b864aca1.js} +2 -1
- package/dist/cjs/{array-a5dedf5a.js → array-00db7b4e.js} +1 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +4 -3
- package/dist/cjs/calcite-action-bar.cjs.entry.js +10 -9
- package/dist/cjs/calcite-action-group.cjs.entry.js +8 -7
- package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -7
- package/dist/cjs/calcite-action-pad.cjs.entry.js +9 -8
- package/dist/cjs/calcite-action.cjs.entry.js +4 -3
- package/dist/cjs/calcite-alert.cjs.entry.js +5 -4
- package/dist/cjs/calcite-avatar.cjs.entry.js +5 -4
- package/dist/cjs/calcite-block_2.cjs.entry.js +8 -7
- package/dist/cjs/calcite-button.cjs.entry.js +17 -16
- package/dist/cjs/calcite-card.cjs.entry.js +6 -5
- package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -6
- package/dist/cjs/calcite-chip.cjs.entry.js +6 -5
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +96 -103
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +86 -48
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +36 -27
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +19 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +5 -4
- package/dist/cjs/calcite-filter.cjs.entry.js +18 -13
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -2
- package/dist/cjs/calcite-graph_2.cjs.entry.js +76 -46
- package/dist/cjs/calcite-handle.cjs.entry.js +2 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +5 -4
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -6
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +37 -20
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -3
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-input.cjs.entry.js +12 -11
- package/dist/cjs/calcite-label.cjs.entry.js +5 -4
- package/dist/cjs/calcite-link.cjs.entry.js +5 -4
- package/dist/cjs/calcite-list_3.cjs.entry.js +18 -11
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +7 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +7 -6
- package/dist/cjs/calcite-option_3.cjs.entry.js +8 -7
- package/dist/cjs/calcite-pagination.cjs.entry.js +2 -1
- package/dist/cjs/calcite-panel.cjs.entry.js +10 -9
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +11 -10
- package/dist/cjs/calcite-popover_2.cjs.entry.js +22 -8
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -7
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +7 -6
- package/dist/cjs/calcite-rating.cjs.entry.js +7 -6
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -6
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -4
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -2
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +7 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +9 -7
- package/dist/cjs/calcite-tab_4.cjs.entry.js +76 -59
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -3
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -7
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +6 -9
- package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -5
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +11 -10
- package/dist/cjs/calcite.cjs.js +4 -3
- package/dist/cjs/{conditionalSlot-64f9bfd3.js → conditionalSlot-8468d1b6.js} +3 -2
- package/dist/cjs/{debounce-95979061.js → debounce-a29e2f71.js} +1 -0
- package/dist/cjs/{dom-f3df220d.js → dom-66c5cb56.js} +9 -2
- package/dist/cjs/{forIn-a5d553af.js → forIn-d4941a7b.js} +2 -1
- package/dist/cjs/{form-0ef859c8.js → form-cfcc3b12.js} +3 -2
- package/dist/cjs/{guid-b270f0db.js → guid-364777e6.js} +1 -0
- package/dist/cjs/{index-1af0efd3.js → index-ab066772.js} +1 -0
- package/dist/cjs/index.cjs.js +1 -0
- package/dist/cjs/{interactive-87406231.js → interactive-3808ad50.js} +1 -0
- package/dist/cjs/{interfaces-7216af30.js → interfaces-597482d7.js} +1 -0
- package/dist/cjs/{label-980508de.js → label-e53e11ab.js} +2 -1
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{locale-02462821.js → locale-2f9c939d.js} +11 -2
- package/dist/cjs/{math-145c80e2.js → math-b81c3249.js} +1 -0
- package/dist/cjs/{number-e813e801.js → number-99949cb0.js} +2 -1
- package/dist/cjs/{observers-79bfb8bc.js → observers-2dc895e1.js} +1 -0
- package/dist/cjs/{popper-64d89ef7.js → popper-5aeab272.js} +29 -3
- package/dist/cjs/{resources-7d5449fb.js → resources-39df6d9b.js} +1 -0
- package/dist/cjs/{resources-7811eb2c.js → resources-7b0c6b5a.js} +3 -2
- package/dist/cjs/{resources-e43fc9f3.js → resources-9baed1da.js} +5 -4
- package/dist/cjs/{resources-ac80e82c.js → resources-ff2cae6a.js} +1 -0
- package/dist/cjs/{sortable.esm-d7a4560b.js → sortable.esm-6d0d59e8.js} +63 -54
- package/dist/cjs/{utils-6579522f.js → utils-9f674b6a.js} +1 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -0
- package/dist/collection/components/accordion/interfaces.js +1 -0
- package/dist/collection/components/accordion-item/accordion-item.js +1 -0
- package/dist/collection/components/action/action.js +1 -0
- package/dist/collection/components/action/resources.js +1 -0
- package/dist/collection/components/action-bar/action-bar.js +1 -0
- package/dist/collection/components/action-bar/resources.js +1 -0
- package/dist/collection/components/action-bar/utils.js +1 -0
- package/dist/collection/components/action-group/action-group.js +1 -0
- package/dist/collection/components/action-group/resources.js +1 -0
- package/dist/collection/components/action-menu/action-menu.js +1 -0
- package/dist/collection/components/action-menu/resources.js +1 -0
- package/dist/collection/components/action-pad/action-pad.js +1 -0
- package/dist/collection/components/action-pad/resources.js +1 -0
- package/dist/collection/components/alert/alert.js +1 -0
- package/dist/collection/components/alert/interfaces.js +1 -0
- package/dist/collection/components/alert/resources.js +1 -0
- package/dist/collection/components/avatar/avatar.js +1 -0
- package/dist/collection/components/avatar/utils.js +1 -0
- package/dist/collection/components/block/block.js +1 -0
- package/dist/collection/components/block/resources.js +1 -0
- package/dist/collection/components/block-section/block-section.js +1 -0
- package/dist/collection/components/block-section/interfaces.js +1 -0
- package/dist/collection/components/block-section/resources.js +1 -0
- package/dist/collection/components/button/button.js +14 -12
- package/dist/collection/components/button/interfaces.js +1 -0
- package/dist/collection/components/button/resources.js +1 -0
- package/dist/collection/components/card/card.js +1 -0
- package/dist/collection/components/card/resources.js +1 -0
- package/dist/collection/components/checkbox/checkbox.js +1 -0
- package/dist/collection/components/chip/chip.js +1 -0
- package/dist/collection/components/chip/interfaces.js +1 -0
- package/dist/collection/components/chip/resources.js +1 -0
- package/dist/collection/components/color-picker/color-picker.js +14 -18
- package/dist/collection/components/color-picker/interfaces.js +1 -0
- package/dist/collection/components/color-picker/resources.js +1 -0
- package/dist/collection/components/color-picker/utils.js +1 -0
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +39 -48
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -0
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -0
- package/dist/collection/components/color-picker-swatch/resources.js +1 -0
- package/dist/collection/components/combobox/combobox.js +77 -37
- package/dist/collection/components/combobox/interfaces.js +1 -0
- package/dist/collection/components/combobox/resources.js +1 -0
- package/dist/collection/components/combobox/utils.js +1 -0
- package/dist/collection/components/combobox-item/combobox-item.css +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -0
- package/dist/collection/components/combobox-item/resources.js +1 -0
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -0
- package/dist/collection/components/combobox-item-group/resources.js +1 -0
- package/dist/collection/components/date-picker/date-picker.js +1 -0
- package/dist/collection/components/date-picker/interfaces.js +1 -0
- package/dist/collection/components/date-picker/resources.js +1 -0
- package/dist/collection/components/date-picker/utils.js +1 -0
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -0
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -0
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +28 -19
- package/dist/collection/components/dropdown/dropdown.js +16 -7
- package/dist/collection/components/dropdown/interfaces.js +1 -0
- package/dist/collection/components/dropdown/resources.js +1 -0
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -0
- package/dist/collection/components/dropdown-group/interfaces.js +1 -0
- package/dist/collection/components/dropdown-group/resources.js +1 -0
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -0
- package/dist/collection/components/dropdown-item/resources.js +1 -0
- package/dist/collection/components/fab/fab.js +1 -0
- package/dist/collection/components/fab/resources.js +1 -0
- package/dist/collection/components/filter/filter.js +12 -8
- package/dist/collection/components/filter/resources.js +2 -0
- package/dist/collection/components/flow/flow.js +1 -0
- package/dist/collection/components/flow/interfaces.js +1 -0
- package/dist/collection/components/flow/resources.js +1 -0
- package/dist/collection/components/functional/ExpandToggle.js +1 -0
- package/dist/collection/components/functional/Heading.js +1 -0
- package/dist/collection/components/graph/graph.js +1 -0
- package/dist/collection/components/graph/interfaces.js +1 -0
- package/dist/collection/components/graph/util.js +1 -0
- package/dist/collection/components/handle/handle.js +1 -0
- package/dist/collection/components/handle/resources.js +1 -0
- package/dist/collection/components/icon/assets/icon/fileEcd16.json +1 -0
- package/dist/collection/components/icon/assets/icon/fileEcd24.json +1 -0
- package/dist/collection/components/icon/assets/icon/fileEcd32.json +1 -0
- package/dist/collection/components/icon/icon.js +1 -0
- package/dist/collection/components/icon/resources.js +1 -0
- package/dist/collection/components/icon/utils.js +1 -0
- package/dist/collection/components/inline-editable/inline-editable.js +1 -0
- package/dist/collection/components/inline-editable/resources.js +1 -0
- package/dist/collection/components/input/input.js +2 -1
- package/dist/collection/components/input/interfaces.js +1 -0
- package/dist/collection/components/input/resources.js +1 -0
- package/dist/collection/components/input-date-picker/input-date-picker.js +56 -11
- package/dist/collection/components/input-message/input-message.js +1 -0
- package/dist/collection/components/input-message/interfaces.js +1 -0
- package/dist/collection/components/input-time-picker/input-time-picker.js +33 -1
- package/dist/collection/components/interfaces.js +1 -0
- package/dist/collection/components/label/label.js +1 -0
- package/dist/collection/components/label/resources.js +1 -0
- package/dist/collection/components/link/link.js +1 -0
- package/dist/collection/components/list/list.js +1 -0
- package/dist/collection/components/list/resources.js +1 -0
- package/dist/collection/components/list-item/list-item.css +17 -1
- package/dist/collection/components/list-item/list-item.js +8 -2
- package/dist/collection/components/list-item/resources.js +3 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -0
- package/dist/collection/components/list-item-group/resources.js +1 -0
- package/dist/collection/components/loader/loader.js +1 -0
- package/dist/collection/components/modal/interfaces.js +1 -0
- package/dist/collection/components/modal/modal.js +2 -1
- package/dist/collection/components/modal/resources.js +1 -0
- package/dist/collection/components/notice/notice.js +1 -0
- package/dist/collection/components/notice/resources.js +1 -0
- package/dist/collection/components/option/option.js +1 -0
- package/dist/collection/components/option-group/option-group.js +1 -0
- package/dist/collection/components/pagination/pagination.js +1 -0
- package/dist/collection/components/pagination/resources.js +1 -0
- package/dist/collection/components/panel/panel.css +0 -3
- package/dist/collection/components/panel/panel.js +1 -0
- package/dist/collection/components/panel/resources.js +1 -0
- package/dist/collection/components/pick-list/pick-list.js +1 -0
- package/dist/collection/components/pick-list/resources.js +1 -0
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -0
- package/dist/collection/components/pick-list/shared-list-render.js +1 -0
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -0
- package/dist/collection/components/pick-list-group/resources.js +1 -0
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -0
- package/dist/collection/components/pick-list-item/resources.js +1 -0
- package/dist/collection/components/popover/popover.js +20 -4
- package/dist/collection/components/popover/resources.js +1 -0
- package/dist/collection/components/popover-manager/popover-manager.js +1 -0
- package/dist/collection/components/progress/progress.js +1 -0
- package/dist/collection/components/radio-button/radio-button.js +1 -0
- package/dist/collection/components/radio-button/resources.js +1 -0
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -0
- package/dist/collection/components/radio-group/interfaces.js +1 -0
- package/dist/collection/components/radio-group/radio-group.js +1 -0
- package/dist/collection/components/radio-group-item/radio-group-item.js +1 -0
- package/dist/collection/components/radio-group-item/resources.js +1 -0
- package/dist/collection/components/rating/rating.js +1 -0
- package/dist/collection/components/rating/resources.js +1 -0
- package/dist/collection/components/scrim/resources.js +1 -0
- package/dist/collection/components/scrim/scrim.js +1 -0
- package/dist/collection/components/select/resources.js +1 -0
- package/dist/collection/components/select/select.js +1 -0
- package/dist/collection/components/shell/resources.js +1 -0
- package/dist/collection/components/shell/shell.js +1 -0
- package/dist/collection/components/shell-center-row/resources.js +1 -0
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -0
- package/dist/collection/components/shell-panel/resources.js +1 -0
- package/dist/collection/components/shell-panel/shell-panel.js +1 -0
- package/dist/collection/components/slider/slider.js +77 -41
- package/dist/collection/components/sortable-list/resources.js +1 -0
- package/dist/collection/components/sortable-list/sortable-list.js +1 -0
- package/dist/collection/components/split-button/resources.js +1 -0
- package/dist/collection/components/split-button/split-button.js +1 -0
- package/dist/collection/components/stepper/stepper.js +1 -0
- package/dist/collection/components/stepper-item/stepper-item.js +3 -1
- package/dist/collection/components/switch/switch.js +4 -2
- package/dist/collection/components/tab/interfaces.js +1 -0
- package/dist/collection/components/tab/tab.js +14 -15
- package/dist/collection/components/tab-nav/tab-nav.js +65 -26
- package/dist/collection/components/tab-title/tab-title.js +56 -24
- package/dist/collection/components/tabs/interfaces.js +1 -0
- package/dist/collection/components/tabs/resources.js +1 -0
- package/dist/collection/components/tabs/tabs.js +1 -3
- package/dist/collection/components/tile/resources.js +1 -0
- package/dist/collection/components/tile/tile.css +2 -2
- package/dist/collection/components/tile/tile.js +1 -0
- package/dist/collection/components/tile-select/interfaces.js +1 -0
- package/dist/collection/components/tile-select/resources.js +1 -0
- package/dist/collection/components/tile-select/tile-select.js +1 -0
- package/dist/collection/components/tile-select-group/interfaces.js +1 -0
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -0
- package/dist/collection/components/time-picker/resources.js +1 -0
- package/dist/collection/components/time-picker/time-picker.js +1 -8
- package/dist/collection/components/tip/resources.js +1 -0
- package/dist/collection/components/tip/tip.js +1 -0
- package/dist/collection/components/tip-group/tip-group.js +1 -0
- package/dist/collection/components/tip-manager/resources.js +1 -0
- package/dist/collection/components/tip-manager/tip-manager.js +3 -2
- package/dist/collection/components/tooltip/resources.js +1 -0
- package/dist/collection/components/tooltip/tooltip.js +1 -0
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +2 -5
- package/dist/collection/components/tree/interfaces.js +1 -0
- package/dist/collection/components/tree/tree.js +1 -0
- package/dist/collection/components/tree-item/interfaces.js +1 -0
- package/dist/collection/components/tree-item/resources.js +1 -0
- package/dist/collection/components/tree-item/tree-item.js +1 -0
- package/dist/collection/components/value-list/resources.js +1 -0
- package/dist/collection/components/value-list/value-list.js +1 -0
- package/dist/collection/components/value-list-item/resources.js +1 -0
- package/dist/collection/components/value-list-item/value-list-item.js +1 -0
- package/dist/collection/utils/array.js +1 -0
- package/dist/collection/utils/conditionalSlot.js +1 -0
- package/dist/collection/utils/date.js +1 -0
- package/dist/collection/utils/dom.js +8 -1
- package/dist/collection/utils/filter.js +1 -0
- package/dist/collection/utils/form.js +1 -0
- package/dist/collection/utils/globalAttributes.js +1 -0
- package/dist/collection/utils/guid.js +1 -0
- package/dist/collection/utils/interactive.js +1 -0
- package/dist/collection/utils/key.js +1 -0
- package/dist/collection/utils/label.js +1 -0
- package/dist/collection/utils/locale.js +10 -1
- package/dist/collection/utils/math.js +1 -0
- package/dist/collection/utils/number.js +2 -1
- package/dist/collection/utils/observers.js +1 -0
- package/dist/collection/utils/popper.js +17 -2
- package/dist/collection/utils/resources.js +1 -0
- package/dist/collection/utils/time.js +1 -0
- package/dist/components/ExpandToggle.js +1 -0
- package/dist/components/Heading.js +1 -0
- package/dist/components/action-group.js +1 -0
- package/dist/components/action-menu.js +1 -0
- package/dist/components/action.js +1 -0
- package/dist/components/array.js +1 -0
- package/dist/components/button.js +11 -10
- package/dist/components/calcite-accordion-item.js +1 -0
- package/dist/components/calcite-accordion.js +1 -0
- package/dist/components/calcite-action-bar.js +1 -0
- package/dist/components/calcite-action-group.js +1 -0
- package/dist/components/calcite-action-menu.js +1 -0
- package/dist/components/calcite-action-pad.js +1 -0
- package/dist/components/calcite-action.js +1 -0
- package/dist/components/calcite-alert.js +1 -0
- package/dist/components/calcite-avatar.js +1 -0
- package/dist/components/calcite-block-section.js +1 -0
- package/dist/components/calcite-block.js +1 -0
- package/dist/components/calcite-button.js +1 -0
- package/dist/components/calcite-card.js +1 -0
- package/dist/components/calcite-checkbox.js +1 -0
- package/dist/components/calcite-chip.js +1 -0
- package/dist/components/calcite-color-picker-hex-input.js +1 -0
- package/dist/components/calcite-color-picker-swatch.js +1 -0
- package/dist/components/calcite-color-picker.js +14 -18
- package/dist/components/calcite-combobox-item-group.js +1 -0
- package/dist/components/calcite-combobox-item.js +2 -1
- package/dist/components/calcite-combobox.js +75 -37
- package/dist/components/calcite-date-picker-day.js +1 -0
- package/dist/components/calcite-date-picker-month-header.js +1 -0
- package/dist/components/calcite-date-picker-month.js +1 -0
- package/dist/components/calcite-date-picker.js +1 -0
- package/dist/components/calcite-dropdown-group.js +1 -0
- package/dist/components/calcite-dropdown-item.js +1 -0
- package/dist/components/calcite-dropdown.js +1 -0
- package/dist/components/calcite-fab.js +1 -0
- package/dist/components/calcite-filter.js +1 -0
- package/dist/components/calcite-flow.js +1 -0
- package/dist/components/calcite-graph.js +1 -0
- package/dist/components/calcite-handle.js +1 -0
- package/dist/components/calcite-icon.js +1 -0
- package/dist/components/calcite-inline-editable.js +1 -0
- package/dist/components/calcite-input-date-picker.js +29 -11
- package/dist/components/calcite-input-message.js +1 -0
- package/dist/components/calcite-input-time-picker.js +8 -1
- package/dist/components/calcite-input.js +1 -0
- package/dist/components/calcite-label.js +1 -0
- package/dist/components/calcite-link.js +1 -0
- package/dist/components/calcite-list-item-group.js +1 -0
- package/dist/components/calcite-list-item.js +11 -4
- package/dist/components/calcite-list.js +1 -0
- package/dist/components/calcite-loader.js +1 -0
- package/dist/components/calcite-modal.js +2 -1
- package/dist/components/calcite-notice.js +1 -0
- package/dist/components/calcite-option-group.js +1 -0
- package/dist/components/calcite-option.js +1 -0
- package/dist/components/calcite-pagination.js +1 -0
- package/dist/components/calcite-panel.js +2 -1
- package/dist/components/calcite-pick-list-group.js +1 -0
- package/dist/components/calcite-pick-list-item.js +1 -0
- package/dist/components/calcite-pick-list.js +1 -0
- package/dist/components/calcite-popover-manager.js +1 -0
- package/dist/components/calcite-popover.js +1 -0
- package/dist/components/calcite-progress.js +1 -0
- package/dist/components/calcite-radio-button-group.js +1 -0
- package/dist/components/calcite-radio-button.js +1 -0
- package/dist/components/calcite-radio-group-item.js +1 -0
- package/dist/components/calcite-radio-group.js +1 -0
- package/dist/components/calcite-rating.js +1 -0
- package/dist/components/calcite-scrim.js +1 -0
- package/dist/components/calcite-select.js +1 -0
- package/dist/components/calcite-shell-center-row.js +1 -0
- package/dist/components/calcite-shell-panel.js +1 -0
- package/dist/components/calcite-shell.js +1 -0
- package/dist/components/calcite-slider.js +68 -38
- package/dist/components/calcite-sortable-list.js +1 -0
- package/dist/components/calcite-split-button.js +1 -0
- package/dist/components/calcite-stepper-item.js +3 -1
- package/dist/components/calcite-stepper.js +1 -0
- package/dist/components/calcite-switch.js +1 -0
- package/dist/components/calcite-tab-nav.js +1 -0
- package/dist/components/calcite-tab-title.js +1 -0
- package/dist/components/calcite-tab.js +1 -0
- package/dist/components/calcite-tabs.js +1 -0
- package/dist/components/calcite-tile-select-group.js +1 -0
- package/dist/components/calcite-tile-select.js +1 -0
- package/dist/components/calcite-tile.js +1 -0
- package/dist/components/calcite-time-picker.js +1 -0
- package/dist/components/calcite-tip-group.js +1 -0
- package/dist/components/calcite-tip-manager.js +2 -1
- package/dist/components/calcite-tip.js +1 -0
- package/dist/components/calcite-tooltip-manager.js +1 -0
- package/dist/components/calcite-tooltip.js +1 -0
- package/dist/components/calcite-tree-item.js +1 -0
- package/dist/components/calcite-tree.js +1 -0
- package/dist/components/calcite-value-list-item.js +1 -0
- package/dist/components/calcite-value-list.js +1 -0
- package/dist/components/checkbox.js +1 -0
- package/dist/components/chip.js +1 -0
- package/dist/components/color-picker-hex-input.js +39 -48
- package/dist/components/color-picker-swatch.js +40 -32
- package/dist/components/conditionalSlot.js +1 -0
- package/dist/components/date-picker-day.js +1 -0
- package/dist/components/date-picker-month-header.js +28 -19
- package/dist/components/date-picker-month.js +1 -0
- package/dist/components/date-picker.js +1 -0
- package/dist/components/date.js +1 -0
- package/dist/components/debounce.js +1 -0
- package/dist/components/dom.js +8 -1
- package/dist/components/dropdown.js +14 -7
- package/dist/components/filter.js +12 -7
- package/dist/components/forIn.js +1 -0
- package/dist/components/form.js +1 -0
- package/dist/components/graph.js +1 -0
- package/dist/components/guid.js +1 -0
- package/dist/components/handle.js +1 -0
- package/dist/components/icon.js +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/input.js +2 -1
- package/dist/components/interactive.js +1 -0
- package/dist/components/interfaces.js +1 -0
- package/dist/components/interfaces2.js +1 -0
- package/dist/components/label.js +1 -0
- package/dist/components/label2.js +1 -0
- package/dist/components/link.js +1 -0
- package/dist/components/loader.js +1 -0
- package/dist/components/locale.js +10 -1
- package/dist/components/math.js +1 -0
- package/dist/components/number.js +2 -1
- package/dist/components/observers.js +1 -0
- package/dist/components/pick-list-item.js +1 -0
- package/dist/components/popover.js +18 -4
- package/dist/components/popper.js +27 -2
- package/dist/components/progress.js +1 -0
- package/dist/components/resources.js +1 -0
- package/dist/components/resources2.js +1 -0
- package/dist/components/resources3.js +1 -0
- package/dist/components/resources4.js +1 -0
- package/dist/components/resources5.js +1 -0
- package/dist/components/scrim.js +1 -0
- package/dist/components/shared-list-render.js +1 -0
- package/dist/components/sortable.esm.js +63 -54
- package/dist/components/switch.js +3 -1
- package/dist/components/tab-nav.js +36 -19
- package/dist/components/tab-title.js +28 -21
- package/dist/components/tab.js +13 -14
- package/dist/components/tabs.js +1 -3
- package/dist/components/tile.js +2 -1
- package/dist/components/time-picker.js +2 -7
- package/dist/components/tooltip-manager.js +2 -5
- package/dist/components/utils.js +1 -0
- package/dist/components/utils2.js +1 -0
- package/dist/custom-elements/index.js +538 -367
- package/dist/esm/{ExpandToggle-af224c1e.js → ExpandToggle-847b61ba.js} +5 -4
- package/dist/esm/{Heading-d5f1710a.js → Heading-f4ee0499.js} +2 -1
- package/dist/esm/{array-91a648e2.js → array-328a8961.js} +1 -0
- package/dist/esm/calcite-accordion_2.entry.js +4 -3
- package/dist/esm/calcite-action-bar.entry.js +10 -9
- package/dist/esm/calcite-action-group.entry.js +8 -7
- package/dist/esm/calcite-action-menu.entry.js +8 -7
- package/dist/esm/calcite-action-pad.entry.js +9 -8
- package/dist/esm/calcite-action.entry.js +4 -3
- package/dist/esm/calcite-alert.entry.js +5 -4
- package/dist/esm/calcite-avatar.entry.js +5 -4
- package/dist/esm/calcite-block_2.entry.js +8 -7
- package/dist/esm/calcite-button.entry.js +17 -16
- package/dist/esm/calcite-card.entry.js +6 -5
- package/dist/esm/calcite-checkbox.entry.js +7 -6
- package/dist/esm/calcite-chip.entry.js +6 -5
- package/dist/esm/calcite-color-picker_3.entry.js +96 -103
- package/dist/esm/calcite-combobox_3.entry.js +86 -48
- package/dist/esm/calcite-date-picker_4.entry.js +36 -27
- package/dist/esm/calcite-dropdown_3.entry.js +19 -12
- package/dist/esm/calcite-fab.entry.js +5 -4
- package/dist/esm/calcite-filter.entry.js +18 -13
- package/dist/esm/calcite-flow.entry.js +3 -2
- package/dist/esm/calcite-graph_2.entry.js +76 -46
- package/dist/esm/calcite-handle.entry.js +2 -1
- package/dist/esm/calcite-icon.entry.js +5 -4
- package/dist/esm/calcite-inline-editable.entry.js +7 -6
- package/dist/esm/calcite-input-date-picker.entry.js +37 -20
- package/dist/esm/calcite-input-message.entry.js +4 -3
- package/dist/esm/calcite-input-time-picker_2.entry.js +15 -15
- package/dist/esm/calcite-input.entry.js +12 -11
- package/dist/esm/calcite-label.entry.js +5 -4
- package/dist/esm/calcite-link.entry.js +5 -4
- package/dist/esm/calcite-list_3.entry.js +18 -11
- package/dist/esm/calcite-loader.entry.js +3 -2
- package/dist/esm/calcite-modal.entry.js +7 -6
- package/dist/esm/calcite-notice.entry.js +7 -6
- package/dist/esm/calcite-option_3.entry.js +8 -7
- package/dist/esm/calcite-pagination.entry.js +2 -1
- package/dist/esm/calcite-panel.entry.js +10 -9
- package/dist/esm/calcite-pick-list_3.entry.js +11 -10
- package/dist/esm/calcite-popover_2.entry.js +22 -8
- package/dist/esm/calcite-progress.entry.js +2 -1
- package/dist/esm/calcite-radio-button-group.entry.js +3 -2
- package/dist/esm/calcite-radio-button.entry.js +8 -7
- package/dist/esm/calcite-radio-group_2.entry.js +7 -6
- package/dist/esm/calcite-rating.entry.js +7 -6
- package/dist/esm/calcite-scrim.entry.js +2 -1
- package/dist/esm/calcite-shell_3.entry.js +7 -6
- package/dist/esm/calcite-sortable-list.entry.js +5 -4
- package/dist/esm/calcite-split-button.entry.js +3 -2
- package/dist/esm/calcite-stepper_2.entry.js +7 -5
- package/dist/esm/calcite-switch.entry.js +9 -7
- package/dist/esm/calcite-tab_4.entry.js +76 -59
- package/dist/esm/calcite-tile-select_2.entry.js +4 -3
- package/dist/esm/calcite-tile.entry.js +8 -7
- package/dist/esm/calcite-tip_3.entry.js +8 -7
- package/dist/esm/calcite-tooltip_2.entry.js +6 -9
- package/dist/esm/calcite-tree_2.entry.js +6 -5
- package/dist/esm/calcite-value-list_2.entry.js +11 -10
- package/dist/esm/calcite.js +4 -3
- package/dist/esm/{conditionalSlot-67f579ff.js → conditionalSlot-a8a2c2f8.js} +3 -2
- package/dist/esm/{debounce-79648d42.js → debounce-f689f579.js} +1 -0
- package/dist/esm/{dom-e7fa77b9.js → dom-0dcd3a1e.js} +9 -2
- package/dist/esm/{forIn-48d8fb84.js → forIn-8f588c7b.js} +2 -1
- package/dist/esm/{form-5e4609eb.js → form-2b88b33a.js} +3 -2
- package/dist/esm/{guid-196bd5ea.js → guid-174508ff.js} +1 -0
- package/dist/esm/{index-bd94948c.js → index-221092de.js} +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/{interactive-48b5cc0f.js → interactive-b11a6c05.js} +1 -0
- package/dist/esm/{interfaces-0e5b954c.js → interfaces-2bc002ac.js} +1 -0
- package/dist/esm/{label-68f22660.js → label-2dac3c62.js} +2 -1
- package/dist/esm/loader.js +4 -3
- package/dist/esm/{locale-fc850b7c.js → locale-9c18bf7f.js} +11 -2
- package/dist/esm/{math-456207f5.js → math-4cd9449e.js} +1 -0
- package/dist/esm/{number-8779395f.js → number-a39356c7.js} +2 -1
- package/dist/esm/{observers-46118290.js → observers-232c6ed6.js} +1 -0
- package/dist/esm/{popper-da45ec93.js → popper-66bcddc6.js} +28 -3
- package/dist/esm/{resources-b5c3d9a7.js → resources-762aa55a.js} +5 -4
- package/dist/esm/{resources-73dac782.js → resources-886efb7e.js} +3 -2
- package/dist/esm/{resources-027bd8f9.js → resources-8ade5fae.js} +1 -0
- package/dist/esm/{resources-34334875.js → resources-df870d40.js} +1 -0
- package/dist/esm/{sortable.esm-04824d33.js → sortable.esm-0891f88f.js} +63 -54
- package/dist/esm/{utils-e84055a3.js → utils-79203b5b.js} +1 -0
- package/dist/esm-es5/{ExpandToggle-af224c1e.js → ExpandToggle-847b61ba.js} +2 -1
- package/dist/esm-es5/{Heading-d5f1710a.js → Heading-f4ee0499.js} +2 -1
- package/dist/esm-es5/{array-91a648e2.js → array-328a8961.js} +1 -0
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -1
- package/dist/esm-es5/calcite-action-group.entry.js +2 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +3 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -1
- package/dist/esm-es5/calcite-action.entry.js +2 -1
- package/dist/esm-es5/calcite-alert.entry.js +2 -1
- package/dist/esm-es5/calcite-avatar.entry.js +2 -1
- package/dist/esm-es5/calcite-block_2.entry.js +2 -1
- package/dist/esm-es5/calcite-button.entry.js +2 -1
- package/dist/esm-es5/calcite-card.entry.js +2 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -1
- package/dist/esm-es5/calcite-chip.entry.js +2 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -1
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -1
- package/dist/esm-es5/calcite-fab.entry.js +2 -1
- package/dist/esm-es5/calcite-filter.entry.js +2 -1
- package/dist/esm-es5/calcite-flow.entry.js +2 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +2 -1
- package/dist/esm-es5/calcite-handle.entry.js +2 -1
- package/dist/esm-es5/calcite-icon.entry.js +2 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -1
- package/dist/esm-es5/calcite-input-message.entry.js +2 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -1
- package/dist/esm-es5/calcite-input.entry.js +2 -1
- package/dist/esm-es5/calcite-label.entry.js +2 -1
- package/dist/esm-es5/calcite-link.entry.js +2 -1
- package/dist/esm-es5/calcite-list_3.entry.js +3 -2
- package/dist/esm-es5/calcite-loader.entry.js +2 -1
- package/dist/esm-es5/calcite-modal.entry.js +2 -1
- package/dist/esm-es5/calcite-notice.entry.js +3 -2
- package/dist/esm-es5/calcite-option_3.entry.js +2 -1
- package/dist/esm-es5/calcite-pagination.entry.js +2 -1
- package/dist/esm-es5/calcite-panel.entry.js +2 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +3 -2
- package/dist/esm-es5/calcite-progress.entry.js +2 -1
- package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -1
- package/dist/esm-es5/calcite-radio-button.entry.js +2 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -1
- package/dist/esm-es5/calcite-rating.entry.js +2 -1
- package/dist/esm-es5/calcite-scrim.entry.js +2 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +2 -1
- package/dist/esm-es5/calcite-sortable-list.entry.js +2 -1
- package/dist/esm-es5/calcite-split-button.entry.js +2 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -1
- package/dist/esm-es5/calcite-switch.entry.js +2 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +2 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -1
- package/dist/esm-es5/calcite-tile.entry.js +2 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +2 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +2 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -1
- package/dist/esm-es5/calcite.js +2 -1
- package/dist/esm-es5/{conditionalSlot-67f579ff.js → conditionalSlot-a8a2c2f8.js} +2 -1
- package/dist/esm-es5/{debounce-79648d42.js → debounce-f689f579.js} +1 -0
- package/dist/esm-es5/{dom-e7fa77b9.js → dom-0dcd3a1e.js} +2 -1
- package/dist/esm-es5/{forIn-48d8fb84.js → forIn-8f588c7b.js} +2 -1
- package/dist/esm-es5/{form-5e4609eb.js → form-2b88b33a.js} +2 -1
- package/dist/esm-es5/{guid-196bd5ea.js → guid-174508ff.js} +1 -0
- package/dist/esm-es5/{index-bd94948c.js → index-221092de.js} +1 -0
- package/dist/esm-es5/index.js +1 -0
- package/dist/esm-es5/{interactive-48b5cc0f.js → interactive-b11a6c05.js} +1 -0
- package/dist/esm-es5/{interfaces-0e5b954c.js → interfaces-2bc002ac.js} +1 -0
- package/dist/esm-es5/{label-68f22660.js → label-2dac3c62.js} +2 -1
- package/dist/esm-es5/loader.js +2 -1
- package/dist/esm-es5/locale-9c18bf7f.js +6 -0
- package/dist/esm-es5/{math-456207f5.js → math-4cd9449e.js} +1 -0
- package/dist/esm-es5/number-a39356c7.js +6 -0
- package/dist/esm-es5/{observers-46118290.js → observers-232c6ed6.js} +1 -0
- package/dist/esm-es5/{popper-da45ec93.js → popper-66bcddc6.js} +2 -1
- package/dist/esm-es5/{resources-b5c3d9a7.js → resources-762aa55a.js} +2 -1
- package/dist/esm-es5/{resources-73dac782.js → resources-886efb7e.js} +3 -2
- package/dist/esm-es5/{resources-027bd8f9.js → resources-8ade5fae.js} +1 -0
- package/dist/esm-es5/{resources-34334875.js → resources-df870d40.js} +1 -0
- package/dist/esm-es5/sortable.esm-0891f88f.js +12 -0
- package/dist/esm-es5/{utils-e84055a3.js → utils-79203b5b.js} +1 -0
- package/dist/extras/docs-json.json +104 -14
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +1 -0
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +1 -0
- package/dist/types/components/combobox/combobox.d.ts +6 -1
- package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +3 -1
- package/dist/types/components/dropdown/dropdown.d.ts +3 -0
- package/dist/types/components/filter/filter.d.ts +2 -2
- package/dist/types/components/filter/resources.d.ts +1 -0
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +9 -1
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +6 -0
- package/dist/types/components/list-item/resources.d.ts +1 -0
- package/dist/types/components/popover/popover.d.ts +4 -0
- package/dist/types/components/slider/slider.d.ts +5 -2
- package/dist/types/components/tab/tab.d.ts +5 -6
- package/dist/types/components/tab-nav/tab-nav.d.ts +23 -21
- package/dist/types/components/tab-title/tab-title.d.ts +16 -19
- package/dist/types/components/tabs/tabs.d.ts +1 -4
- package/dist/types/components/time-picker/time-picker.d.ts +0 -1
- package/dist/types/components/tip-manager/tip-manager.d.ts +1 -1
- package/dist/types/components.d.ts +25 -5
- package/dist/types/preact.d.ts +4 -2
- package/dist/types/utils/dom.d.ts +2 -2
- package/dist/types/utils/locale.d.ts +1 -0
- package/dist/types/utils/popper.d.ts +3 -2
- package/hydrate/index.d.ts +1 -1
- package/hydrate/index.js +536 -365
- package/package.json +36 -36
- package/readme.md +2 -3
- package/dist/calcite/p-193749c1.entry.js +0 -5
- package/dist/calcite/p-1aeca42a.system.entry.js +0 -5
- package/dist/calcite/p-23145377.entry.js +0 -5
- package/dist/calcite/p-2bcaed33.entry.js +0 -5
- package/dist/calcite/p-364f0abe.system.entry.js +0 -5
- package/dist/calcite/p-3915705c.entry.js +0 -5
- package/dist/calcite/p-4905189e.system.entry.js +0 -5
- package/dist/calcite/p-4aecbaef.entry.js +0 -5
- package/dist/calcite/p-5c637131.entry.js +0 -5
- package/dist/calcite/p-5f6e35f3.entry.js +0 -5
- package/dist/calcite/p-6261469d.entry.js +0 -5
- package/dist/calcite/p-653bd7bf.entry.js +0 -5
- package/dist/calcite/p-7c88d545.js +0 -5
- package/dist/calcite/p-867f7b7a.system.entry.js +0 -5
- package/dist/calcite/p-872e82a6.system.entry.js +0 -5
- package/dist/calcite/p-87888359.entry.js +0 -5
- package/dist/calcite/p-895d22f3.entry.js +0 -5
- package/dist/calcite/p-8b982f91.entry.js +0 -5
- package/dist/calcite/p-8f3a3e4e.js +0 -5
- package/dist/calcite/p-9e61d89d.entry.js +0 -5
- package/dist/calcite/p-ac9607f2.system.js +0 -11
- package/dist/calcite/p-b10af2b4.entry.js +0 -5
- package/dist/calcite/p-b3c5247b.system.entry.js +0 -5
- package/dist/calcite/p-bb401f25.system.js +0 -5
- package/dist/calcite/p-bccbf58a.entry.js +0 -5
- package/dist/calcite/p-bffb4da3.system.entry.js +0 -5
- package/dist/calcite/p-c4cb35ba.system.entry.js +0 -5
- package/dist/calcite/p-c5ec8d74.js +0 -11
- package/dist/calcite/p-cb847074.entry.js +0 -5
- package/dist/calcite/p-dd9f2e61.js +0 -5
- package/dist/calcite/p-e22ab8fa.entry.js +0 -5
- package/dist/calcite/p-e4d1651b.system.entry.js +0 -5
- package/dist/calcite/p-ec9bab33.system.js +0 -5
- package/dist/calcite/p-ecc31b40.system.entry.js +0 -5
- package/dist/calcite/p-ef6b4184.js +0 -5
- package/dist/calcite/p-f09e27b0.system.js +0 -5
- package/dist/calcite/p-fe9380a0.system.js +0 -5
- package/dist/esm-es5/locale-fc850b7c.js +0 -5
- package/dist/esm-es5/number-8779395f.js +0 -5
- package/dist/esm-es5/sortable.esm-04824d33.js +0 -11
package/hydrate/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
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.81
|
|
4
5
|
*/
|
|
5
6
|
'use strict';
|
|
6
7
|
|
|
7
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
9
|
|
|
9
10
|
/*!
|
|
10
|
-
Stencil Mock Doc v2.
|
|
11
|
+
Stencil Mock Doc v2.15.0 | MIT Licensed | https://stenciljs.com
|
|
11
12
|
*/
|
|
12
13
|
const CONTENT_REF_ID = 'r';
|
|
13
14
|
const ORG_LOCATION_ID = 'o';
|
|
@@ -5806,7 +5807,13 @@ function queryElementRoots(element, { selector, id }) {
|
|
|
5806
5807
|
}
|
|
5807
5808
|
const rootNode = getRootNode(el);
|
|
5808
5809
|
const found = id
|
|
5809
|
-
? rootNode
|
|
5810
|
+
? "getElementById" in rootNode
|
|
5811
|
+
? /*
|
|
5812
|
+
Check to make sure 'getElementById' exists in cases where element is no longer connected to the DOM and getRootNode() returns the element.
|
|
5813
|
+
https://github.com/Esri/calcite-components/pull/4280
|
|
5814
|
+
*/
|
|
5815
|
+
rootNode.getElementById(id)
|
|
5816
|
+
: null
|
|
5810
5817
|
: selector
|
|
5811
5818
|
? rootNode.querySelector(selector)
|
|
5812
5819
|
: null;
|
|
@@ -9354,6 +9361,8 @@ class Button {
|
|
|
9354
9361
|
this.scale = "m";
|
|
9355
9362
|
/** is the button a child of a calcite-split-button */
|
|
9356
9363
|
this.splitChild = false;
|
|
9364
|
+
/** The type attribute to apply to the button */
|
|
9365
|
+
this.type = "button";
|
|
9357
9366
|
/** specify the width of the button, defaults to auto */
|
|
9358
9367
|
this.width = "auto";
|
|
9359
9368
|
/** watches for changing text content **/
|
|
@@ -9365,14 +9374,15 @@ class Button {
|
|
|
9365
9374
|
// act on a requested or nearby form based on type
|
|
9366
9375
|
this.handleClick = () => {
|
|
9367
9376
|
const { formEl, type } = this;
|
|
9377
|
+
if (this.href) {
|
|
9378
|
+
return;
|
|
9379
|
+
}
|
|
9368
9380
|
// this.type refers to type attribute, not child element type
|
|
9369
|
-
if (
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
formEl === null || formEl === void 0 ? void 0 : formEl.reset();
|
|
9375
|
-
}
|
|
9381
|
+
if (type === "submit") {
|
|
9382
|
+
formEl === null || formEl === void 0 ? void 0 : formEl.requestSubmit();
|
|
9383
|
+
}
|
|
9384
|
+
else if (type === "reset") {
|
|
9385
|
+
formEl === null || formEl === void 0 ? void 0 : formEl.reset();
|
|
9376
9386
|
}
|
|
9377
9387
|
};
|
|
9378
9388
|
}
|
|
@@ -11695,7 +11705,6 @@ models.forEach(fromModel => {
|
|
|
11695
11705
|
});
|
|
11696
11706
|
var colorConvert = convert;
|
|
11697
11707
|
|
|
11698
|
-
const _slice = [].slice;
|
|
11699
11708
|
const skippedModels = [// To be honest, I don't really feel like keyword belongs in color convert, but eh.
|
|
11700
11709
|
'keyword', // Gray conflicts with some method names, and has its own method defined.
|
|
11701
11710
|
'gray', // Shouldn't really be in color-convert either...
|
|
@@ -11703,7 +11712,7 @@ const skippedModels = [// To be honest, I don't really feel like keyword belongs
|
|
|
11703
11712
|
const hashedModelKeys = {};
|
|
11704
11713
|
|
|
11705
11714
|
for (const model of Object.keys(colorConvert)) {
|
|
11706
|
-
hashedModelKeys[
|
|
11715
|
+
hashedModelKeys[[...colorConvert[model].labels].sort().join('')] = model;
|
|
11707
11716
|
}
|
|
11708
11717
|
|
|
11709
11718
|
const limiters = {};
|
|
@@ -11731,7 +11740,7 @@ function Color(object, model) {
|
|
|
11731
11740
|
this.valpha = 1;
|
|
11732
11741
|
} else if (object instanceof Color) {
|
|
11733
11742
|
this.model = object.model;
|
|
11734
|
-
this.color = object.color
|
|
11743
|
+
this.color = [...object.color];
|
|
11735
11744
|
this.valpha = object.valpha;
|
|
11736
11745
|
} else if (typeof object === 'string') {
|
|
11737
11746
|
const result = colorString.get(object);
|
|
@@ -11747,9 +11756,7 @@ function Color(object, model) {
|
|
|
11747
11756
|
} else if (object.length > 0) {
|
|
11748
11757
|
this.model = model || 'rgb';
|
|
11749
11758
|
channels = colorConvert[this.model].channels;
|
|
11750
|
-
|
|
11751
|
-
const newArray = _slice.call(object, 0, channels);
|
|
11752
|
-
|
|
11759
|
+
const newArray = Array.prototype.slice.call(object, 0, channels);
|
|
11753
11760
|
this.color = zeroArray(newArray, channels);
|
|
11754
11761
|
this.valpha = typeof object[channels] === 'number' ? object[channels] : 1;
|
|
11755
11762
|
} else if (typeof object === 'number') {
|
|
@@ -11773,7 +11780,9 @@ function Color(object, model) {
|
|
|
11773
11780
|
}
|
|
11774
11781
|
|
|
11775
11782
|
this.model = hashedModelKeys[hashedKeys];
|
|
11776
|
-
const
|
|
11783
|
+
const {
|
|
11784
|
+
labels
|
|
11785
|
+
} = colorConvert[this.model];
|
|
11777
11786
|
const color = [];
|
|
11778
11787
|
|
|
11779
11788
|
for (i = 0; i < labels.length; i++) {
|
|
@@ -11815,24 +11824,28 @@ Color.prototype = {
|
|
|
11815
11824
|
string(places) {
|
|
11816
11825
|
let self = this.model in colorString.to ? this : this.rgb();
|
|
11817
11826
|
self = self.round(typeof places === 'number' ? places : 1);
|
|
11818
|
-
const args = self.valpha === 1 ? self.color : self.color
|
|
11827
|
+
const args = self.valpha === 1 ? self.color : [...self.color, this.valpha];
|
|
11819
11828
|
return colorString.to[self.model](args);
|
|
11820
11829
|
},
|
|
11821
11830
|
|
|
11822
11831
|
percentString(places) {
|
|
11823
11832
|
const self = this.rgb().round(typeof places === 'number' ? places : 1);
|
|
11824
|
-
const args = self.valpha === 1 ? self.color : self.color
|
|
11833
|
+
const args = self.valpha === 1 ? self.color : [...self.color, this.valpha];
|
|
11825
11834
|
return colorString.to.rgb.percent(args);
|
|
11826
11835
|
},
|
|
11827
11836
|
|
|
11828
11837
|
array() {
|
|
11829
|
-
return this.valpha === 1 ? this.color
|
|
11838
|
+
return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
|
|
11830
11839
|
},
|
|
11831
11840
|
|
|
11832
11841
|
object() {
|
|
11833
11842
|
const result = {};
|
|
11834
|
-
const
|
|
11835
|
-
|
|
11843
|
+
const {
|
|
11844
|
+
channels
|
|
11845
|
+
} = colorConvert[this.model];
|
|
11846
|
+
const {
|
|
11847
|
+
labels
|
|
11848
|
+
} = colorConvert[this.model];
|
|
11836
11849
|
|
|
11837
11850
|
for (let i = 0; i < channels; i++) {
|
|
11838
11851
|
result[labels[i]] = this.color[i];
|
|
@@ -11873,12 +11886,12 @@ Color.prototype = {
|
|
|
11873
11886
|
|
|
11874
11887
|
round(places) {
|
|
11875
11888
|
places = Math.max(places || 0, 0);
|
|
11876
|
-
return new Color(this.color.map(roundToPlace(places))
|
|
11889
|
+
return new Color([...this.color.map(roundToPlace(places)), this.valpha], this.model);
|
|
11877
11890
|
},
|
|
11878
11891
|
|
|
11879
11892
|
alpha(value) {
|
|
11880
|
-
if (
|
|
11881
|
-
return new Color(this.color
|
|
11893
|
+
if (value !== undefined) {
|
|
11894
|
+
return new Color([...this.color, Math.max(0, Math.min(1, value))], this.model);
|
|
11882
11895
|
}
|
|
11883
11896
|
|
|
11884
11897
|
return this.valpha;
|
|
@@ -11901,15 +11914,15 @@ Color.prototype = {
|
|
|
11901
11914
|
magenta: getset('cmyk', 1, maxfn(100)),
|
|
11902
11915
|
yellow: getset('cmyk', 2, maxfn(100)),
|
|
11903
11916
|
black: getset('cmyk', 3, maxfn(100)),
|
|
11904
|
-
x: getset('xyz', 0, maxfn(
|
|
11917
|
+
x: getset('xyz', 0, maxfn(95.047)),
|
|
11905
11918
|
y: getset('xyz', 1, maxfn(100)),
|
|
11906
|
-
z: getset('xyz', 2, maxfn(
|
|
11919
|
+
z: getset('xyz', 2, maxfn(108.833)),
|
|
11907
11920
|
l: getset('lab', 0, maxfn(100)),
|
|
11908
11921
|
a: getset('lab', 1),
|
|
11909
11922
|
b: getset('lab', 2),
|
|
11910
11923
|
|
|
11911
11924
|
keyword(value) {
|
|
11912
|
-
if (
|
|
11925
|
+
if (value !== undefined) {
|
|
11913
11926
|
return new Color(value);
|
|
11914
11927
|
}
|
|
11915
11928
|
|
|
@@ -11917,7 +11930,7 @@ Color.prototype = {
|
|
|
11917
11930
|
},
|
|
11918
11931
|
|
|
11919
11932
|
hex(value) {
|
|
11920
|
-
if (
|
|
11933
|
+
if (value !== undefined) {
|
|
11921
11934
|
return new Color(value);
|
|
11922
11935
|
}
|
|
11923
11936
|
|
|
@@ -11925,7 +11938,7 @@ Color.prototype = {
|
|
|
11925
11938
|
},
|
|
11926
11939
|
|
|
11927
11940
|
hexa(value) {
|
|
11928
|
-
if (
|
|
11941
|
+
if (value !== undefined) {
|
|
11929
11942
|
return new Color(value);
|
|
11930
11943
|
}
|
|
11931
11944
|
|
|
@@ -11951,7 +11964,7 @@ Color.prototype = {
|
|
|
11951
11964
|
|
|
11952
11965
|
for (const [i, element] of rgb.entries()) {
|
|
11953
11966
|
const chan = element / 255;
|
|
11954
|
-
lum[i] = chan <= 0.
|
|
11967
|
+
lum[i] = chan <= 0.04045 ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;
|
|
11955
11968
|
}
|
|
11956
11969
|
|
|
11957
11970
|
return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];
|
|
@@ -11970,9 +11983,10 @@ Color.prototype = {
|
|
|
11970
11983
|
},
|
|
11971
11984
|
|
|
11972
11985
|
level(color2) {
|
|
11986
|
+
// https://www.w3.org/TR/WCAG/#contrast-enhanced
|
|
11973
11987
|
const contrastRatio = this.contrast(color2);
|
|
11974
11988
|
|
|
11975
|
-
if (contrastRatio >= 7
|
|
11989
|
+
if (contrastRatio >= 7) {
|
|
11976
11990
|
return 'AAA';
|
|
11977
11991
|
}
|
|
11978
11992
|
|
|
@@ -11982,7 +11996,7 @@ Color.prototype = {
|
|
|
11982
11996
|
isDark() {
|
|
11983
11997
|
// YIQ equation from http://24ways.org/2010/calculating-color-contrast
|
|
11984
11998
|
const rgb = this.rgb().color;
|
|
11985
|
-
const yiq = (rgb[0] *
|
|
11999
|
+
const yiq = (rgb[0] * 2126 + rgb[1] * 7152 + rgb[2] * 722) / 10000;
|
|
11986
12000
|
return yiq < 128;
|
|
11987
12001
|
},
|
|
11988
12002
|
|
|
@@ -12084,25 +12098,28 @@ for (const model of Object.keys(colorConvert)) {
|
|
|
12084
12098
|
continue;
|
|
12085
12099
|
}
|
|
12086
12100
|
|
|
12087
|
-
const
|
|
12101
|
+
const {
|
|
12102
|
+
channels
|
|
12103
|
+
} = colorConvert[model]; // Conversion methods
|
|
12088
12104
|
|
|
12089
|
-
Color.prototype[model] = function () {
|
|
12105
|
+
Color.prototype[model] = function (...args) {
|
|
12090
12106
|
if (this.model === model) {
|
|
12091
12107
|
return new Color(this);
|
|
12092
12108
|
}
|
|
12093
12109
|
|
|
12094
|
-
if (
|
|
12095
|
-
return new Color(
|
|
12110
|
+
if (args.length > 0) {
|
|
12111
|
+
return new Color(args, model);
|
|
12096
12112
|
}
|
|
12097
12113
|
|
|
12098
|
-
|
|
12099
|
-
return new Color(assertArray(colorConvert[this.model][model].raw(this.color)).concat(newAlpha), model);
|
|
12114
|
+
return new Color([...assertArray(colorConvert[this.model][model].raw(this.color)), this.valpha], model);
|
|
12100
12115
|
}; // 'static' construction methods
|
|
12101
12116
|
|
|
12102
12117
|
|
|
12103
|
-
Color[model] = function (
|
|
12118
|
+
Color[model] = function (...args) {
|
|
12119
|
+
let color = args[0];
|
|
12120
|
+
|
|
12104
12121
|
if (typeof color === 'number') {
|
|
12105
|
-
color = zeroArray(
|
|
12122
|
+
color = zeroArray(args, channels);
|
|
12106
12123
|
}
|
|
12107
12124
|
|
|
12108
12125
|
return new Color(color, model);
|
|
@@ -12130,7 +12147,7 @@ function getset(model, channel, modifier) {
|
|
|
12130
12147
|
return function (value) {
|
|
12131
12148
|
let result;
|
|
12132
12149
|
|
|
12133
|
-
if (
|
|
12150
|
+
if (value !== undefined) {
|
|
12134
12151
|
if (modifier) {
|
|
12135
12152
|
value = modifier(value);
|
|
12136
12153
|
}
|
|
@@ -12683,9 +12700,12 @@ class ColorPicker {
|
|
|
12683
12700
|
const channelAriaLabels = isRgb
|
|
12684
12701
|
? [intlRed, intlGreen, intlBlue]
|
|
12685
12702
|
: [intlHue, intlSaturation, intlValue];
|
|
12686
|
-
|
|
12703
|
+
const direction = getElementDir(this.el);
|
|
12704
|
+
return (hAsync("calcite-tab", { active: active, class: CSS$G.control, key: channelMode }, hAsync("div", { class: CSS$G.channels, dir: "ltr" }, channels.map((channel, index) =>
|
|
12705
|
+
/* the channel container is ltr, so we apply the host's direction */
|
|
12706
|
+
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
12687
12707
|
};
|
|
12688
|
-
this.renderChannel = (value, index, label, ariaLabel) => (hAsync("calcite-input", { class: CSS$G.channel, "data-channel-index": index, label: ariaLabel, numberButtonType: "none", onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
12708
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$G.channel, "data-channel-index": index, dir: direction, label: ariaLabel, numberButtonType: "none", onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
12689
12709
|
this.deleteColor = () => {
|
|
12690
12710
|
const colorToDelete = this.color.hex();
|
|
12691
12711
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -12740,14 +12760,10 @@ class ColorPicker {
|
|
|
12740
12760
|
this.drawColorFieldAndSlider();
|
|
12741
12761
|
this.updateChannelsFromColor(color);
|
|
12742
12762
|
this.previousColor = oldColor;
|
|
12743
|
-
if (this.internalColorUpdateContext) {
|
|
12744
|
-
return;
|
|
12745
|
-
}
|
|
12746
|
-
this.value = this.toValue(color);
|
|
12747
12763
|
}
|
|
12748
12764
|
handleFormatChange(format) {
|
|
12749
12765
|
this.setMode(format);
|
|
12750
|
-
this.
|
|
12766
|
+
this.internalColorSet(this.color, false, "internal");
|
|
12751
12767
|
}
|
|
12752
12768
|
handleScaleChange(scale = "m") {
|
|
12753
12769
|
this.updateDimensions(scale);
|
|
@@ -12767,10 +12783,10 @@ class ColorPicker {
|
|
|
12767
12783
|
this.setMode(nextMode);
|
|
12768
12784
|
}
|
|
12769
12785
|
const dragging = this.sliderThumbState === "drag" || this.hueThumbState === "drag";
|
|
12770
|
-
if (this.internalColorUpdateContext) {
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
|
|
12786
|
+
if (this.internalColorUpdateContext === "initial") {
|
|
12787
|
+
return;
|
|
12788
|
+
}
|
|
12789
|
+
if (this.internalColorUpdateContext === "user-interaction") {
|
|
12774
12790
|
this.calciteColorPickerInput.emit();
|
|
12775
12791
|
if (!dragging) {
|
|
12776
12792
|
this.calciteColorPickerChange.emit();
|
|
@@ -12780,11 +12796,7 @@ class ColorPicker {
|
|
|
12780
12796
|
const color$1 = allowEmpty && !value ? null : color(value);
|
|
12781
12797
|
const colorChanged = !colorEqual(color$1, this.color);
|
|
12782
12798
|
if (modeChanged || colorChanged) {
|
|
12783
|
-
this.color
|
|
12784
|
-
this.calciteColorPickerInput.emit();
|
|
12785
|
-
if (!dragging) {
|
|
12786
|
-
this.calciteColorPickerChange.emit();
|
|
12787
|
-
}
|
|
12799
|
+
this.internalColorSet(color$1, true, "internal");
|
|
12788
12800
|
}
|
|
12789
12801
|
}
|
|
12790
12802
|
//--------------------------------------------------------------------------
|
|
@@ -12913,7 +12925,7 @@ class ColorPicker {
|
|
|
12913
12925
|
}
|
|
12914
12926
|
return "none";
|
|
12915
12927
|
}
|
|
12916
|
-
internalColorSet(color, skipEqual = true, context = "
|
|
12928
|
+
internalColorSet(color, skipEqual = true, context = "user-interaction") {
|
|
12917
12929
|
if (skipEqual && colorEqual(color, this.color)) {
|
|
12918
12930
|
return;
|
|
12919
12931
|
}
|
|
@@ -13169,32 +13181,13 @@ class ColorPickerHexInput {
|
|
|
13169
13181
|
: this.formatForInternalInput(rgbToHex(this.internalColor.object()));
|
|
13170
13182
|
};
|
|
13171
13183
|
this.onInputChange = () => {
|
|
13172
|
-
|
|
13173
|
-
let value;
|
|
13174
|
-
if (inputValue) {
|
|
13175
|
-
const hex = inputValue;
|
|
13176
|
-
const color = hexToRGB(`#${hex}`);
|
|
13177
|
-
if (!color) {
|
|
13178
|
-
return;
|
|
13179
|
-
}
|
|
13180
|
-
value = normalizeHex(hex);
|
|
13181
|
-
}
|
|
13182
|
-
else if (this.allowEmpty) {
|
|
13183
|
-
value = null;
|
|
13184
|
-
}
|
|
13185
|
-
this.value = value;
|
|
13186
|
-
this.calciteColorPickerHexInputChange.emit();
|
|
13184
|
+
this.internalSetValue(this.inputNode.value, this.value);
|
|
13187
13185
|
};
|
|
13188
13186
|
/**
|
|
13189
13187
|
* The last valid/selected color. Used as a fallback if an invalid hex code is entered.
|
|
13190
13188
|
*/
|
|
13191
13189
|
this.internalColor = DEFAULT_COLOR;
|
|
13192
13190
|
this.previousNonNullValue = this.value;
|
|
13193
|
-
//--------------------------------------------------------------------------
|
|
13194
|
-
//
|
|
13195
|
-
// Private Methods
|
|
13196
|
-
//
|
|
13197
|
-
//--------------------------------------------------------------------------
|
|
13198
13191
|
this.storeInputRef = (node) => {
|
|
13199
13192
|
this.inputNode = node;
|
|
13200
13193
|
};
|
|
@@ -13209,38 +13202,16 @@ class ColorPickerHexInput {
|
|
|
13209
13202
|
if (value) {
|
|
13210
13203
|
const normalized = normalizeHex(value);
|
|
13211
13204
|
if (isValidHex(normalized)) {
|
|
13212
|
-
this.
|
|
13213
|
-
this.value = normalized;
|
|
13205
|
+
this.internalSetValue(normalized, normalized, false);
|
|
13214
13206
|
}
|
|
13215
13207
|
return;
|
|
13216
13208
|
}
|
|
13217
13209
|
if (allowEmpty) {
|
|
13218
|
-
this.
|
|
13219
|
-
this.value = null;
|
|
13210
|
+
this.internalSetValue(null, null, false);
|
|
13220
13211
|
}
|
|
13221
13212
|
}
|
|
13222
13213
|
handleValueChange(value, oldValue) {
|
|
13223
|
-
|
|
13224
|
-
const normalized = normalizeHex(value);
|
|
13225
|
-
if (isValidHex(normalized)) {
|
|
13226
|
-
const { internalColor } = this;
|
|
13227
|
-
const changed = !internalColor || normalized !== normalizeHex(internalColor.hex());
|
|
13228
|
-
this.internalColor = color(normalized);
|
|
13229
|
-
this.previousNonNullValue = normalized;
|
|
13230
|
-
this.value = normalized;
|
|
13231
|
-
if (changed) {
|
|
13232
|
-
this.calciteColorPickerHexInputChange.emit();
|
|
13233
|
-
}
|
|
13234
|
-
return;
|
|
13235
|
-
}
|
|
13236
|
-
}
|
|
13237
|
-
else if (this.allowEmpty) {
|
|
13238
|
-
this.internalColor = null;
|
|
13239
|
-
this.value = null;
|
|
13240
|
-
this.calciteColorPickerHexInputChange.emit();
|
|
13241
|
-
return;
|
|
13242
|
-
}
|
|
13243
|
-
this.value = oldValue;
|
|
13214
|
+
this.internalSetValue(value, oldValue, false);
|
|
13244
13215
|
}
|
|
13245
13216
|
// using @Listen as a workaround for VDOM listener not firing
|
|
13246
13217
|
onInputKeyDown(event) {
|
|
@@ -13252,15 +13223,16 @@ class ColorPickerHexInput {
|
|
|
13252
13223
|
return;
|
|
13253
13224
|
}
|
|
13254
13225
|
const isNudgeKey = key === "ArrowDown" || key === "ArrowUp";
|
|
13226
|
+
const oldValue = this.value;
|
|
13255
13227
|
if (isNudgeKey) {
|
|
13256
13228
|
if (!value) {
|
|
13257
|
-
this.
|
|
13229
|
+
this.internalSetValue(this.previousNonNullValue, oldValue);
|
|
13258
13230
|
event.preventDefault();
|
|
13259
13231
|
return;
|
|
13260
13232
|
}
|
|
13261
13233
|
const direction = key === "ArrowUp" ? 1 : -1;
|
|
13262
13234
|
const bump = shiftKey ? 10 : 1;
|
|
13263
|
-
this.
|
|
13235
|
+
this.internalSetValue(normalizeHex(this.nudgeRGBChannels(internalColor, bump * direction).hex()), oldValue);
|
|
13264
13236
|
event.preventDefault();
|
|
13265
13237
|
return;
|
|
13266
13238
|
}
|
|
@@ -13290,6 +13262,36 @@ class ColorPickerHexInput {
|
|
|
13290
13262
|
async setFocus() {
|
|
13291
13263
|
focusElement(this.inputNode);
|
|
13292
13264
|
}
|
|
13265
|
+
//--------------------------------------------------------------------------
|
|
13266
|
+
//
|
|
13267
|
+
// Private Methods
|
|
13268
|
+
//
|
|
13269
|
+
//--------------------------------------------------------------------------
|
|
13270
|
+
internalSetValue(value, oldValue, emit = true) {
|
|
13271
|
+
if (value) {
|
|
13272
|
+
const normalized = normalizeHex(value);
|
|
13273
|
+
if (isValidHex(normalized)) {
|
|
13274
|
+
const { internalColor } = this;
|
|
13275
|
+
const changed = !internalColor || normalized !== normalizeHex(internalColor.hex());
|
|
13276
|
+
this.internalColor = color(normalized);
|
|
13277
|
+
this.previousNonNullValue = normalized;
|
|
13278
|
+
this.value = normalized;
|
|
13279
|
+
if (changed && emit) {
|
|
13280
|
+
this.calciteColorPickerHexInputChange.emit();
|
|
13281
|
+
}
|
|
13282
|
+
return;
|
|
13283
|
+
}
|
|
13284
|
+
}
|
|
13285
|
+
else if (this.allowEmpty) {
|
|
13286
|
+
this.internalColor = null;
|
|
13287
|
+
this.value = null;
|
|
13288
|
+
if (emit) {
|
|
13289
|
+
this.calciteColorPickerHexInputChange.emit();
|
|
13290
|
+
}
|
|
13291
|
+
return;
|
|
13292
|
+
}
|
|
13293
|
+
this.value = oldValue;
|
|
13294
|
+
}
|
|
13293
13295
|
formatForInternalInput(hex) {
|
|
13294
13296
|
return hex ? hex.replace("#", "") : "";
|
|
13295
13297
|
}
|
|
@@ -15206,8 +15208,22 @@ var createPopper$1 = /*#__PURE__*/popperGenerator({
|
|
|
15206
15208
|
defaultModifiers: defaultModifiers
|
|
15207
15209
|
}); // eslint-disable-next-line import/no-unused-modules
|
|
15208
15210
|
|
|
15211
|
+
const popperComputedPlacements = [
|
|
15212
|
+
"top",
|
|
15213
|
+
"bottom",
|
|
15214
|
+
"right",
|
|
15215
|
+
"left",
|
|
15216
|
+
"top-start",
|
|
15217
|
+
"top-end",
|
|
15218
|
+
"bottom-start",
|
|
15219
|
+
"bottom-end",
|
|
15220
|
+
"right-start",
|
|
15221
|
+
"right-end",
|
|
15222
|
+
"left-start",
|
|
15223
|
+
"left-end"
|
|
15224
|
+
];
|
|
15209
15225
|
const defaultMenuPlacement = "bottom-leading";
|
|
15210
|
-
const
|
|
15226
|
+
const popperMenuComputedPlacements = [
|
|
15211
15227
|
"top-start",
|
|
15212
15228
|
"top",
|
|
15213
15229
|
"top-end",
|
|
@@ -15219,6 +15235,16 @@ const CSS$D = {
|
|
|
15219
15235
|
animation: "calcite-popper-anim",
|
|
15220
15236
|
animationActive: "calcite-popper-anim--active"
|
|
15221
15237
|
};
|
|
15238
|
+
function filterComputedPlacements(placements, el) {
|
|
15239
|
+
const filteredPlacements = placements.filter((placement) => popperComputedPlacements.includes(placement));
|
|
15240
|
+
if (filteredPlacements.length !== placements.length) {
|
|
15241
|
+
console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${popperComputedPlacements
|
|
15242
|
+
.map((placement) => `"${placement}"`)
|
|
15243
|
+
.join(", ")
|
|
15244
|
+
.trim()}`, { el });
|
|
15245
|
+
}
|
|
15246
|
+
return filteredPlacements;
|
|
15247
|
+
}
|
|
15222
15248
|
function getPlacement(el, placement) {
|
|
15223
15249
|
const placements = ["left", "right"];
|
|
15224
15250
|
const variations = ["start", "end"];
|
|
@@ -15338,11 +15364,6 @@ class Combobox {
|
|
|
15338
15364
|
* @default "Remove tag"
|
|
15339
15365
|
*/
|
|
15340
15366
|
this.intlRemoveTag = TEXT$f.removeTag;
|
|
15341
|
-
//--------------------------------------------------------------------------
|
|
15342
|
-
//
|
|
15343
|
-
// Private State/Props
|
|
15344
|
-
//
|
|
15345
|
-
//--------------------------------------------------------------------------
|
|
15346
15367
|
this.internalValueChangeFlag = false;
|
|
15347
15368
|
this.items = [];
|
|
15348
15369
|
this.groupItems = [];
|
|
@@ -15364,6 +15385,12 @@ class Combobox {
|
|
|
15364
15385
|
// Private Methods
|
|
15365
15386
|
//
|
|
15366
15387
|
// --------------------------------------------------------------------------
|
|
15388
|
+
this.setFilteredPlacements = () => {
|
|
15389
|
+
const { el, flipPlacements } = this;
|
|
15390
|
+
this.filteredFlipPlacements = flipPlacements
|
|
15391
|
+
? filterComputedPlacements(flipPlacements, el)
|
|
15392
|
+
: null;
|
|
15393
|
+
};
|
|
15367
15394
|
this.getValue = () => {
|
|
15368
15395
|
const items = this.selectedItems.map((item) => item === null || item === void 0 ? void 0 : item.value.toString());
|
|
15369
15396
|
return (items === null || items === void 0 ? void 0 : items.length) ? (items.length > 1 ? items : items[0]) : "";
|
|
@@ -15381,8 +15408,9 @@ class Combobox {
|
|
|
15381
15408
|
this.addCustomChip(this.text, true);
|
|
15382
15409
|
event.preventDefault();
|
|
15383
15410
|
}
|
|
15384
|
-
else {
|
|
15411
|
+
else if (this.active) {
|
|
15385
15412
|
this.active = false;
|
|
15413
|
+
event.preventDefault();
|
|
15386
15414
|
}
|
|
15387
15415
|
break;
|
|
15388
15416
|
case "ArrowLeft":
|
|
@@ -15392,22 +15420,47 @@ class Combobox {
|
|
|
15392
15420
|
this.nextChip();
|
|
15393
15421
|
break;
|
|
15394
15422
|
case "ArrowUp":
|
|
15395
|
-
event.preventDefault();
|
|
15396
|
-
this.active = true;
|
|
15397
15423
|
this.shiftActiveItemIndex(-1);
|
|
15424
|
+
if (!this.comboboxInViewport()) {
|
|
15425
|
+
this.el.scrollIntoView();
|
|
15426
|
+
}
|
|
15398
15427
|
break;
|
|
15399
15428
|
case "ArrowDown":
|
|
15400
|
-
|
|
15401
|
-
|
|
15429
|
+
if (!this.active) {
|
|
15430
|
+
event.preventDefault();
|
|
15431
|
+
this.active = true;
|
|
15432
|
+
}
|
|
15402
15433
|
this.shiftActiveItemIndex(1);
|
|
15434
|
+
if (!this.comboboxInViewport()) {
|
|
15435
|
+
this.el.scrollIntoView();
|
|
15436
|
+
}
|
|
15437
|
+
break;
|
|
15438
|
+
case " ":
|
|
15439
|
+
if (!this.textInput.value) {
|
|
15440
|
+
event.preventDefault();
|
|
15441
|
+
this.active = true;
|
|
15442
|
+
this.shiftActiveItemIndex(1);
|
|
15443
|
+
}
|
|
15403
15444
|
break;
|
|
15404
15445
|
case "Home":
|
|
15405
|
-
this.active
|
|
15446
|
+
if (this.active) {
|
|
15447
|
+
event.preventDefault();
|
|
15448
|
+
}
|
|
15406
15449
|
this.updateActiveItemIndex(0);
|
|
15450
|
+
this.scrollToActiveItem();
|
|
15451
|
+
if (!this.comboboxInViewport()) {
|
|
15452
|
+
this.el.scrollIntoView();
|
|
15453
|
+
}
|
|
15407
15454
|
break;
|
|
15408
15455
|
case "End":
|
|
15409
|
-
this.active
|
|
15456
|
+
if (this.active) {
|
|
15457
|
+
event.preventDefault();
|
|
15458
|
+
}
|
|
15410
15459
|
this.updateActiveItemIndex(this.visibleItems.length - 1);
|
|
15460
|
+
this.scrollToActiveItem();
|
|
15461
|
+
if (!this.comboboxInViewport()) {
|
|
15462
|
+
this.el.scrollIntoView();
|
|
15463
|
+
}
|
|
15411
15464
|
break;
|
|
15412
15465
|
case "Escape":
|
|
15413
15466
|
this.active = false;
|
|
@@ -15432,11 +15485,6 @@ class Combobox {
|
|
|
15432
15485
|
this.removeLastChip();
|
|
15433
15486
|
}
|
|
15434
15487
|
break;
|
|
15435
|
-
default:
|
|
15436
|
-
if (!this.active) {
|
|
15437
|
-
this.setFocus();
|
|
15438
|
-
}
|
|
15439
|
-
break;
|
|
15440
15488
|
}
|
|
15441
15489
|
};
|
|
15442
15490
|
this.toggleCloseEnd = () => {
|
|
@@ -15470,10 +15518,12 @@ class Combobox {
|
|
|
15470
15518
|
}
|
|
15471
15519
|
this.calciteComboboxChipDismiss.emit(event.detail);
|
|
15472
15520
|
};
|
|
15473
|
-
this.
|
|
15521
|
+
this.clickHandler = (event) => {
|
|
15474
15522
|
if (event.composedPath().some((node) => node.tagName === "CALCITE-CHIP")) {
|
|
15475
15523
|
return;
|
|
15476
15524
|
}
|
|
15525
|
+
this.active = !this.active;
|
|
15526
|
+
this.updateActiveItemIndex(0);
|
|
15477
15527
|
this.setFocus();
|
|
15478
15528
|
};
|
|
15479
15529
|
this.setInactiveIfNotContained = (event) => {
|
|
@@ -15481,7 +15531,7 @@ class Combobox {
|
|
|
15481
15531
|
if (!this.active || composedPath.includes(this.el) || composedPath.includes(this.referenceEl)) {
|
|
15482
15532
|
return;
|
|
15483
15533
|
}
|
|
15484
|
-
if (this.allowCustomValues && this.text) {
|
|
15534
|
+
if (this.allowCustomValues && this.text.trim().length) {
|
|
15485
15535
|
this.addCustomChip(this.text);
|
|
15486
15536
|
}
|
|
15487
15537
|
if (this.selectionMode === "single") {
|
|
@@ -15561,9 +15611,19 @@ class Combobox {
|
|
|
15561
15611
|
this.setMaxScrollerHeight();
|
|
15562
15612
|
}
|
|
15563
15613
|
};
|
|
15614
|
+
this.scrollToActiveItem = () => {
|
|
15615
|
+
const activeItem = this.visibleItems[this.activeItemIndex];
|
|
15616
|
+
const height = this.calculateSingleItemHeight(activeItem);
|
|
15617
|
+
const { offsetHeight, scrollTop } = this.listContainerEl;
|
|
15618
|
+
if (offsetHeight + scrollTop < activeItem.offsetTop + height) {
|
|
15619
|
+
this.listContainerEl.scrollTop = activeItem.offsetTop - offsetHeight + height;
|
|
15620
|
+
}
|
|
15621
|
+
else if (activeItem.offsetTop < scrollTop) {
|
|
15622
|
+
this.listContainerEl.scrollTop = activeItem.offsetTop;
|
|
15623
|
+
}
|
|
15624
|
+
};
|
|
15564
15625
|
this.comboboxFocusHandler = () => {
|
|
15565
15626
|
var _a;
|
|
15566
|
-
this.active = true;
|
|
15567
15627
|
(_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
15568
15628
|
};
|
|
15569
15629
|
this.comboboxBlurHandler = (event) => {
|
|
@@ -15600,6 +15660,9 @@ class Combobox {
|
|
|
15600
15660
|
this.updateItems();
|
|
15601
15661
|
}
|
|
15602
15662
|
}
|
|
15663
|
+
flipPlacementsHandler() {
|
|
15664
|
+
this.setFilteredPlacements();
|
|
15665
|
+
}
|
|
15603
15666
|
//--------------------------------------------------------------------------
|
|
15604
15667
|
//
|
|
15605
15668
|
// Event Listeners
|
|
@@ -15636,7 +15699,6 @@ class Combobox {
|
|
|
15636
15699
|
/** Sets focus on the component. */
|
|
15637
15700
|
async setFocus() {
|
|
15638
15701
|
var _a;
|
|
15639
|
-
this.active = true;
|
|
15640
15702
|
(_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
15641
15703
|
this.activeChipIndex = -1;
|
|
15642
15704
|
this.activeItemIndex = -1;
|
|
@@ -15655,6 +15717,7 @@ class Combobox {
|
|
|
15655
15717
|
this.createPopper();
|
|
15656
15718
|
connectLabel(this);
|
|
15657
15719
|
connectForm(this);
|
|
15720
|
+
this.setFilteredPlacements();
|
|
15658
15721
|
}
|
|
15659
15722
|
componentWillLoad() {
|
|
15660
15723
|
this.updateItems();
|
|
@@ -15686,13 +15749,20 @@ class Combobox {
|
|
|
15686
15749
|
textHandler() {
|
|
15687
15750
|
this.updateActiveItemIndex(-1);
|
|
15688
15751
|
}
|
|
15752
|
+
comboboxInViewport() {
|
|
15753
|
+
const bounding = this.el.getBoundingClientRect();
|
|
15754
|
+
return (bounding.top >= 0 &&
|
|
15755
|
+
bounding.left >= 0 &&
|
|
15756
|
+
bounding.right <= (window.innerWidth || document.documentElement.clientWidth) &&
|
|
15757
|
+
bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight));
|
|
15758
|
+
}
|
|
15689
15759
|
getModifiers() {
|
|
15690
15760
|
const flipModifier = {
|
|
15691
15761
|
name: "flip",
|
|
15692
15762
|
enabled: true
|
|
15693
15763
|
};
|
|
15694
15764
|
flipModifier.options = {
|
|
15695
|
-
fallbackPlacements: this.
|
|
15765
|
+
fallbackPlacements: this.filteredFlipPlacements || popperMenuComputedPlacements
|
|
15696
15766
|
};
|
|
15697
15767
|
const eventListenerModifier = {
|
|
15698
15768
|
name: "eventListeners",
|
|
@@ -15910,19 +15980,10 @@ class Combobox {
|
|
|
15910
15980
|
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
|
15911
15981
|
}
|
|
15912
15982
|
shiftActiveItemIndex(delta) {
|
|
15913
|
-
const length = this.visibleItems
|
|
15983
|
+
const { length } = this.visibleItems;
|
|
15914
15984
|
const newIndex = (this.activeItemIndex + length + delta) % length;
|
|
15915
15985
|
this.updateActiveItemIndex(newIndex);
|
|
15916
|
-
|
|
15917
|
-
const activeItem = this.visibleItems[this.activeItemIndex];
|
|
15918
|
-
const height = this.calculateSingleItemHeight(activeItem);
|
|
15919
|
-
const { offsetHeight, scrollTop } = this.listContainerEl;
|
|
15920
|
-
if (offsetHeight + scrollTop < activeItem.offsetTop + height) {
|
|
15921
|
-
this.listContainerEl.scrollTop = activeItem.offsetTop - offsetHeight + height;
|
|
15922
|
-
}
|
|
15923
|
-
else if (activeItem.offsetTop < scrollTop) {
|
|
15924
|
-
this.listContainerEl.scrollTop = activeItem.offsetTop;
|
|
15925
|
-
}
|
|
15986
|
+
this.scrollToActiveItem();
|
|
15926
15987
|
}
|
|
15927
15988
|
updateActiveItemIndex(index) {
|
|
15928
15989
|
var _a;
|
|
@@ -15975,7 +16036,7 @@ class Combobox {
|
|
|
15975
16036
|
} }, showLabel && (hAsync("span", { class: {
|
|
15976
16037
|
label: true,
|
|
15977
16038
|
"label--spaced": needsIcon
|
|
15978
|
-
}, key: "label"
|
|
16039
|
+
}, key: "label" }, selectedItem.textLabel)), hAsync("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-label": getLabelText(this), class: {
|
|
15979
16040
|
input: true,
|
|
15980
16041
|
"input--single": true,
|
|
15981
16042
|
"input--transparent": this.activeChipIndex > -1,
|
|
@@ -16002,7 +16063,8 @@ class Combobox {
|
|
|
16002
16063
|
needsIcon && (hAsync("span", { class: "icon-start" }, (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon) && (hAsync("calcite-icon", { class: "selected-icon", icon: selectedItem.icon, scale: "s" })))));
|
|
16003
16064
|
}
|
|
16004
16065
|
renderIconEnd() {
|
|
16005
|
-
|
|
16066
|
+
const { active } = this;
|
|
16067
|
+
return (hAsync("span", { class: "icon-end" }, hAsync("calcite-icon", { icon: active ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
16006
16068
|
}
|
|
16007
16069
|
render() {
|
|
16008
16070
|
const { active, guid, label } = this;
|
|
@@ -16011,7 +16073,7 @@ class Combobox {
|
|
|
16011
16073
|
wrapper: true,
|
|
16012
16074
|
"wrapper--single": single || !this.selectedItems.length,
|
|
16013
16075
|
"wrapper--active": active
|
|
16014
|
-
}, onClick: this.
|
|
16076
|
+
}, onClick: this.clickHandler, ref: this.setReferenceEl, role: "combobox" }, hAsync("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), hAsync("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label), this.renderInput()), this.renderIconEnd()), hAsync("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderPopperContainer(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
16015
16077
|
}
|
|
16016
16078
|
get el() { return getElement(this); }
|
|
16017
16079
|
static get watchers() { return {
|
|
@@ -16019,6 +16081,7 @@ class Combobox {
|
|
|
16019
16081
|
"disabled": ["handleDisabledChange"],
|
|
16020
16082
|
"maxItems": ["maxItemsHandler"],
|
|
16021
16083
|
"value": ["valueHandler"],
|
|
16084
|
+
"flipPlacements": ["flipPlacementsHandler"],
|
|
16022
16085
|
"selectedItems": ["selectedItemsHandler"],
|
|
16023
16086
|
"text": ["textHandler"]
|
|
16024
16087
|
}; }
|
|
@@ -16072,7 +16135,7 @@ const CSS$C = {
|
|
|
16072
16135
|
textContainer: "text-container"
|
|
16073
16136
|
};
|
|
16074
16137
|
|
|
16075
|
-
const comboboxItemCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-combobox-item: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*/.calcite-animate.sc-calcite-combobox-item{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*/.calcite-animate__in.sc-calcite-combobox-item{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-combobox-item{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-combobox-item{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-combobox-item{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-combobox-item:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-combobox-item-h{display:none}/*!@.scale--s*/.scale--s.sc-calcite-combobox-item{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent:0.5rem}/*!@.scale--m*/.scale--m.sc-calcite-combobox-item{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent:0.75rem}/*!@.scale--l*/.scale--l.sc-calcite-combobox-item{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-item-spacing-indent:1rem}/*!@.container*/.container.sc-calcite-combobox-item{--calcite-combobox-item-indent-value:calc(\n var(--calcite-combobox-item-spacing-indent) * var(--calcite-combobox-item-spacing-indent-multiplier)\n )}/*!@:host(:focus)*/.sc-calcite-combobox-item-h:focus{--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])*/[disabled].sc-calcite-combobox-item-h{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]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-combobox-item-h[disabled] .sc-calcite-combobox-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-combobox-item-h [calcite-hydrated][disabled].sc-calcite-combobox-item{opacity:1}/*!@:host, ul*/.sc-calcite-combobox-item-h,ul.sc-calcite-combobox-item{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0px;outline:2px solid transparent;outline-offset:2px}/*!@.label*/.label.sc-calcite-combobox-item{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;min-width:100%;cursor:pointer;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;padding:var(--calcite-combobox-item-spacing-unit-s) var(--calcite-combobox-item-spacing-unit-l)}/*!@:host([disabled]) .label*/[disabled].sc-calcite-combobox-item-h .label.sc-calcite-combobox-item{cursor:default}/*!@.label--selected*/.label--selected.sc-calcite-combobox-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@.label--active*/.label--active.sc-calcite-combobox-item{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.label:hover, .label:active*/.label.sc-calcite-combobox-item:hover,.label.sc-calcite-combobox-item:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none;--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)}/*!@.title*/.title.sc-calcite-combobox-item{padding:0 var(--calcite-combobox-item-spacing-unit-l)}/*!@.icon*/.icon.sc-calcite-combobox-item{display:-ms-inline-flexbox;display:inline-flex;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);color:var(--calcite-ui-border-1)}/*!@.icon--indent*/.icon--indent.sc-calcite-combobox-item{-webkit-padding-start:var(--calcite-combobox-item-indent-value);padding-inline-start:var(--calcite-combobox-item-indent-value)}/*!@.icon--custom*/.icon--custom.sc-calcite-combobox-item{margin-top:-1px;color:var(--calcite-ui-text-3)}/*!@.icon--active*/.icon--active.sc-calcite-combobox-item{color:var(--calcite-ui-text-1)}/*!@.icon--dot*/.icon--dot.sc-calcite-combobox-item{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;width:var(--calcite-combobox-item-spacing-unit-l)}/*!@.icon--dot:before*/.icon--dot.sc-calcite-combobox-item:before{text-align:start;content:\"•\"}/*!@.label--active .icon*/.label--active.sc-calcite-combobox-item .icon.sc-calcite-combobox-item{opacity:1}/*!@.label--selected .icon*/.label--selected.sc-calcite-combobox-item .icon.sc-calcite-combobox-item{opacity:1;color:var(--calcite-ui-brand)}/*!@:host(:hover[disabled]) .icon*/.sc-calcite-combobox-item-h:hover[disabled] .icon.sc-calcite-combobox-item{opacity:1}";
|
|
16138
|
+
const comboboxItemCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-combobox-item: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*/.calcite-animate.sc-calcite-combobox-item{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*/.calcite-animate__in.sc-calcite-combobox-item{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-combobox-item{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-combobox-item{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-combobox-item{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-combobox-item:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-combobox-item-h{display:none}/*!@.scale--s*/.scale--s.sc-calcite-combobox-item{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent:0.5rem}/*!@.scale--m*/.scale--m.sc-calcite-combobox-item{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent:0.75rem}/*!@.scale--l*/.scale--l.sc-calcite-combobox-item{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-item-spacing-indent:1rem}/*!@.container*/.container.sc-calcite-combobox-item{--calcite-combobox-item-indent-value:calc(\n var(--calcite-combobox-item-spacing-indent) * var(--calcite-combobox-item-spacing-indent-multiplier)\n )}/*!@:host(:focus)*/.sc-calcite-combobox-item-h:focus{--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])*/[disabled].sc-calcite-combobox-item-h{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]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-combobox-item-h[disabled] .sc-calcite-combobox-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-combobox-item-h [calcite-hydrated][disabled].sc-calcite-combobox-item{opacity:1}/*!@:host, ul*/.sc-calcite-combobox-item-h,ul.sc-calcite-combobox-item{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0px;outline:2px solid transparent;outline-offset:2px}/*!@.label*/.label.sc-calcite-combobox-item{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;min-width:100%;cursor:pointer;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;padding:var(--calcite-combobox-item-spacing-unit-s) var(--calcite-combobox-item-spacing-unit-l)}/*!@:host([disabled]) .label*/[disabled].sc-calcite-combobox-item-h .label.sc-calcite-combobox-item{cursor:default}/*!@.label--selected*/.label--selected.sc-calcite-combobox-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@.label--active*/.label--active.sc-calcite-combobox-item{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.label:hover, .label:active*/.label.sc-calcite-combobox-item:hover,.label.sc-calcite-combobox-item:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none;--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)}/*!@.title*/.title.sc-calcite-combobox-item{padding:0 var(--calcite-combobox-item-spacing-unit-l)}/*!@.icon*/.icon.sc-calcite-combobox-item{display:-ms-inline-flexbox;display:inline-flex;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);color:var(--calcite-ui-border-1)}/*!@.icon--indent*/.icon--indent.sc-calcite-combobox-item{-webkit-padding-start:var(--calcite-combobox-item-indent-value);padding-inline-start:var(--calcite-combobox-item-indent-value)}/*!@.icon--custom*/.icon--custom.sc-calcite-combobox-item{margin-top:-1px;color:var(--calcite-ui-text-3)}/*!@.icon--active*/.icon--active.sc-calcite-combobox-item{color:var(--calcite-ui-text-1)}/*!@.icon--dot*/.icon--dot.sc-calcite-combobox-item{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;min-width:var(--calcite-combobox-item-spacing-unit-l)}/*!@.icon--dot:before*/.icon--dot.sc-calcite-combobox-item:before{text-align:start;content:\"•\"}/*!@.label--active .icon*/.label--active.sc-calcite-combobox-item .icon.sc-calcite-combobox-item{opacity:1}/*!@.label--selected .icon*/.label--selected.sc-calcite-combobox-item .icon.sc-calcite-combobox-item{opacity:1;color:var(--calcite-ui-brand)}/*!@:host(:hover[disabled]) .icon*/.sc-calcite-combobox-item-h:hover[disabled] .icon.sc-calcite-combobox-item{opacity:1}";
|
|
16076
16139
|
|
|
16077
16140
|
/**
|
|
16078
16141
|
* @slot - A slot for adding nested `calcite-combobox-item`s.
|
|
@@ -16285,7 +16348,7 @@ function parseNumberString(numberString) {
|
|
|
16285
16348
|
return numberKeys.includes(value);
|
|
16286
16349
|
})
|
|
16287
16350
|
.reduce((string, part) => string + part);
|
|
16288
|
-
return isValidNumber(result) ? Number(result).toString() :
|
|
16351
|
+
return isValidNumber(result) ? Number(result).toString() : "";
|
|
16289
16352
|
});
|
|
16290
16353
|
}
|
|
16291
16354
|
function sanitizeDecimalString(decimalString) {
|
|
@@ -16340,6 +16403,7 @@ function delocalizeNumberString(numberString, locale) {
|
|
|
16340
16403
|
if (nonExpoNumString) {
|
|
16341
16404
|
const groupSeparator = getGroupSeparator(locale);
|
|
16342
16405
|
const decimalSeparator = getDecimalSeparator(locale);
|
|
16406
|
+
const minusSign = getMinusSign(locale);
|
|
16343
16407
|
const splitNumberString = nonExpoNumString.split("");
|
|
16344
16408
|
const decimalIndex = splitNumberString.lastIndexOf(decimalSeparator);
|
|
16345
16409
|
const delocalizedNumberString = splitNumberString
|
|
@@ -16350,7 +16414,8 @@ function delocalizeNumberString(numberString, locale) {
|
|
|
16350
16414
|
return value;
|
|
16351
16415
|
})
|
|
16352
16416
|
.reduce((string, part) => string + part)
|
|
16353
|
-
.replace(decimalSeparator, ".")
|
|
16417
|
+
.replace(decimalSeparator, ".")
|
|
16418
|
+
.replace(minusSign, "-");
|
|
16354
16419
|
return isNaN(Number(delocalizedNumberString)) ? nonExpoNumString : delocalizedNumberString;
|
|
16355
16420
|
}
|
|
16356
16421
|
return nonExpoNumString;
|
|
@@ -16368,6 +16433,12 @@ function getDecimalSeparator(locale) {
|
|
|
16368
16433
|
const value = parts.find((part) => part.type === "decimal").value;
|
|
16369
16434
|
return value.trim().length === 0 ? " " : value;
|
|
16370
16435
|
}
|
|
16436
|
+
function getMinusSign(locale) {
|
|
16437
|
+
const formatter = createLocaleNumberFormatter(locale);
|
|
16438
|
+
const parts = formatter.formatToParts(-1234567.8);
|
|
16439
|
+
const value = parts.find((part) => part.type === "minusSign").value;
|
|
16440
|
+
return value.trim().length === 0 ? "-" : value;
|
|
16441
|
+
}
|
|
16371
16442
|
function localizeNumberString(numberString, locale, displayGroupSeparator = false) {
|
|
16372
16443
|
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
16373
16444
|
if (nonExpoNumString) {
|
|
@@ -17373,20 +17444,23 @@ class DatePickerMonthHeader {
|
|
|
17373
17444
|
* Increment year on UP/DOWN keys
|
|
17374
17445
|
*/
|
|
17375
17446
|
this.onYearKey = (e) => {
|
|
17376
|
-
const
|
|
17447
|
+
const localizedYear = e.target.value;
|
|
17377
17448
|
switch (e.key) {
|
|
17378
17449
|
case "ArrowDown":
|
|
17379
17450
|
e.preventDefault();
|
|
17380
|
-
this.setYear(
|
|
17451
|
+
this.setYear({ localizedYear, offset: -1 });
|
|
17381
17452
|
break;
|
|
17382
17453
|
case "ArrowUp":
|
|
17383
17454
|
e.preventDefault();
|
|
17384
|
-
this.setYear(
|
|
17455
|
+
this.setYear({ localizedYear, offset: 1 });
|
|
17385
17456
|
break;
|
|
17386
17457
|
}
|
|
17387
17458
|
};
|
|
17388
|
-
this.
|
|
17389
|
-
this.setYear(event.target.value);
|
|
17459
|
+
this.onYearChange = (event) => {
|
|
17460
|
+
this.setYear({ localizedYear: event.target.value });
|
|
17461
|
+
};
|
|
17462
|
+
this.onYearInput = (event) => {
|
|
17463
|
+
this.setYear({ localizedYear: event.target.value, commit: false });
|
|
17390
17464
|
};
|
|
17391
17465
|
this.prevMonthClick = (e) => {
|
|
17392
17466
|
this.handleArrowClick(e, this.prevMonthDate);
|
|
@@ -17442,7 +17516,7 @@ class DatePickerMonthHeader {
|
|
|
17442
17516
|
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": (this.prevMonthDate.getMonth() === activeMonth).toString(), "aria-label": this.intlPrevMonth, class: "chevron", href: "#", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: "button", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: "chevron-left", scale: iconScale })), hAsync("div", { class: { text: true, "text--reverse": reverse } }, hAsync(Heading, { class: "month", level: this.headingLevel }, localizedMonth), hAsync("span", { class: "year-wrap" }, hAsync("input", { "aria-label": this.intlYear, class: {
|
|
17443
17517
|
year: true,
|
|
17444
17518
|
"year--suffix": !!suffix
|
|
17445
|
-
}, inputmode: "numeric", maxlength: "4", minlength: "1", onInput: this.
|
|
17519
|
+
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", ref: (el) => (this.yearInput = el), type: "text", value: localizedYear }), suffix && (hAsync("span", { class: "suffix" }, hAsync("span", { "aria-hidden": "true", class: "suffix__invisible" }, localizedYear), " " + suffix)))), hAsync("a", { "aria-disabled": (this.nextMonthDate.getMonth() === activeMonth).toString(), "aria-label": this.intlNextMonth, class: "chevron", href: "#", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: "button", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: "chevron-right", scale: iconScale }))));
|
|
17446
17520
|
}
|
|
17447
17521
|
setNextPrevMonthDates() {
|
|
17448
17522
|
if (!this.activeDate) {
|
|
@@ -17451,27 +17525,32 @@ class DatePickerMonthHeader {
|
|
|
17451
17525
|
this.nextMonthDate = dateFromRange(nextMonth(this.activeDate), this.min, this.max);
|
|
17452
17526
|
this.prevMonthDate = dateFromRange(prevMonth(this.activeDate), this.min, this.max);
|
|
17453
17527
|
}
|
|
17454
|
-
|
|
17455
|
-
|
|
17456
|
-
* set to active if in range
|
|
17457
|
-
*/
|
|
17458
|
-
setYear(localizedYear, increment = 0) {
|
|
17459
|
-
const { min, max, activeDate, localeData, yearInput } = this;
|
|
17528
|
+
getInRangeDate({ localizedYear, offset = 0 }) {
|
|
17529
|
+
const { min, max, activeDate, localeData } = this;
|
|
17460
17530
|
const parsedYear = parseNumber(localizedYear, localeData);
|
|
17461
17531
|
const length = parsedYear.toString().length;
|
|
17462
|
-
const year = isNaN(parsedYear) ? false : parsedYear +
|
|
17532
|
+
const year = isNaN(parsedYear) ? false : parsedYear + offset;
|
|
17463
17533
|
const inRange = year && (!min || min.getFullYear() <= year) && (!max || max.getFullYear() >= year);
|
|
17464
|
-
// if you've supplied a year and it's in range
|
|
17534
|
+
// if you've supplied a year and it's in range
|
|
17465
17535
|
if (year && inRange && length === localizedYear.length) {
|
|
17466
17536
|
const nextDate = new Date(activeDate);
|
|
17467
17537
|
nextDate.setFullYear(year);
|
|
17468
|
-
|
|
17538
|
+
return dateFromRange(nextDate, min, max);
|
|
17539
|
+
}
|
|
17540
|
+
}
|
|
17541
|
+
/**
|
|
17542
|
+
* Parse localized year string from input,
|
|
17543
|
+
* set to active if in range
|
|
17544
|
+
*/
|
|
17545
|
+
setYear({ localizedYear, commit = true, offset = 0 }) {
|
|
17546
|
+
const { yearInput, activeDate, localeData } = this;
|
|
17547
|
+
const inRangeDate = this.getInRangeDate({ localizedYear, offset });
|
|
17548
|
+
// if you've supplied a year and it's in range, update active date
|
|
17549
|
+
if (inRangeDate) {
|
|
17469
17550
|
this.calciteDatePickerSelect.emit(inRangeDate);
|
|
17470
|
-
yearInput.value = localizeNumber(inRangeDate.getFullYear(), localeData);
|
|
17471
17551
|
}
|
|
17472
|
-
|
|
17473
|
-
|
|
17474
|
-
yearInput.value = localizeNumber(activeDate.getFullYear(), localeData);
|
|
17552
|
+
if (commit) {
|
|
17553
|
+
yearInput.value = localizeNumber((inRangeDate || activeDate).getFullYear(), localeData);
|
|
17475
17554
|
}
|
|
17476
17555
|
}
|
|
17477
17556
|
get el() { return getElement(this); }
|
|
@@ -17559,11 +17638,6 @@ class Dropdown {
|
|
|
17559
17638
|
this.type = "click";
|
|
17560
17639
|
/** specify the width of dropdown, defaults to m */
|
|
17561
17640
|
this.width = "m";
|
|
17562
|
-
//--------------------------------------------------------------------------
|
|
17563
|
-
//
|
|
17564
|
-
// Private State/Props
|
|
17565
|
-
//
|
|
17566
|
-
//--------------------------------------------------------------------------
|
|
17567
17641
|
this.items = [];
|
|
17568
17642
|
this.activeTransitionProp = "visibility";
|
|
17569
17643
|
this.mutationObserver = createObserver();
|
|
@@ -17573,6 +17647,12 @@ class Dropdown {
|
|
|
17573
17647
|
// Private Methods
|
|
17574
17648
|
//
|
|
17575
17649
|
//--------------------------------------------------------------------------
|
|
17650
|
+
this.setFilteredPlacements = () => {
|
|
17651
|
+
const { el, flipPlacements } = this;
|
|
17652
|
+
this.filteredFlipPlacements = flipPlacements
|
|
17653
|
+
? filterComputedPlacements(flipPlacements, el)
|
|
17654
|
+
: null;
|
|
17655
|
+
};
|
|
17576
17656
|
this.updateItems = () => {
|
|
17577
17657
|
this.updateSelectedItems();
|
|
17578
17658
|
this.triggers = getSlotted(this.el, "dropdown-trigger", { all: true });
|
|
@@ -17650,6 +17730,9 @@ class Dropdown {
|
|
|
17650
17730
|
this.active = false;
|
|
17651
17731
|
}
|
|
17652
17732
|
}
|
|
17733
|
+
flipPlacementsHandler() {
|
|
17734
|
+
this.setFilteredPlacements();
|
|
17735
|
+
}
|
|
17653
17736
|
maxItemsHandler() {
|
|
17654
17737
|
this.setMaxScrollerHeight();
|
|
17655
17738
|
}
|
|
@@ -17666,6 +17749,7 @@ class Dropdown {
|
|
|
17666
17749
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
17667
17750
|
this.createPopper();
|
|
17668
17751
|
this.updateItems();
|
|
17752
|
+
this.setFilteredPlacements();
|
|
17669
17753
|
}
|
|
17670
17754
|
componentDidLoad() {
|
|
17671
17755
|
this.reposition();
|
|
@@ -17782,7 +17866,7 @@ class Dropdown {
|
|
|
17782
17866
|
enabled: true
|
|
17783
17867
|
};
|
|
17784
17868
|
flipModifier.options = {
|
|
17785
|
-
fallbackPlacements: this.
|
|
17869
|
+
fallbackPlacements: this.filteredFlipPlacements || popperMenuComputedPlacements
|
|
17786
17870
|
};
|
|
17787
17871
|
const eventListenerModifier = {
|
|
17788
17872
|
name: "eventListeners",
|
|
@@ -17877,6 +17961,7 @@ class Dropdown {
|
|
|
17877
17961
|
static get watchers() { return {
|
|
17878
17962
|
"active": ["activeHandler"],
|
|
17879
17963
|
"disabled": ["handleDisabledChange"],
|
|
17964
|
+
"flipPlacements": ["flipPlacementsHandler"],
|
|
17880
17965
|
"maxItems": ["maxItemsHandler"],
|
|
17881
17966
|
"placement": ["placementHandler"]
|
|
17882
17967
|
}; }
|
|
@@ -18276,10 +18361,10 @@ const ICONS$8 = {
|
|
|
18276
18361
|
search: "search",
|
|
18277
18362
|
close: "x"
|
|
18278
18363
|
};
|
|
18364
|
+
const DEBOUNCE_TIMEOUT = 250;
|
|
18279
18365
|
|
|
18280
18366
|
const filterCss = "@-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*/.sc-calcite-filter: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*/.calcite-animate.sc-calcite-filter{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*/.calcite-animate__in.sc-calcite-filter{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-filter{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-filter{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-filter{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-filter-h{-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 **/.sc-calcite-filter-h *.sc-calcite-filter{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-filter:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-filter-h{display:none}/*!@:host*/.sc-calcite-filter-h{display:-ms-flexbox;display:flex;width:100%}/*!@:host([disabled])*/[disabled].sc-calcite-filter-h{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]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-filter-h[disabled] .sc-calcite-filter-s>[calcite-hydrated][disabled],[disabled].sc-calcite-filter-h [calcite-hydrated][disabled].sc-calcite-filter{opacity:1}/*!@.container*/.container.sc-calcite-filter{display:-ms-flexbox;display:flex;width:100%;padding:0.5rem}/*!@label*/label.sc-calcite-filter{position:relative;margin-left:0.25rem;margin-right:0.25rem;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;overflow:hidden}/*!@input[type=text]*/input[type=text].sc-calcite-filter{margin-bottom:0.25rem;width:100%;border-style:none;background-color:transparent;padding-top:0.25rem;padding-bottom:0.25rem;padding-right:0.25rem;padding-left:1.5rem;font-family:inherit;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);-webkit-transition:padding var(--calcite-animation-timing), -webkit-box-shadow var(--calcite-animation-timing);transition:padding var(--calcite-animation-timing), -webkit-box-shadow var(--calcite-animation-timing);transition:padding var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing);transition:padding var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing), -webkit-box-shadow var(--calcite-animation-timing)}/*!@input[type=text]::-ms-clear*/input[type=text].sc-calcite-filter::-ms-clear{display:none}/*!@calcite-input*/calcite-input.sc-calcite-filter{width:100%}/*!@.search-icon*/.search-icon.sc-calcite-filter{position:absolute;display:-ms-flexbox;display:flex;color:var(--calcite-ui-text-2);inset-inline-start:0;-webkit-transition:left var(--calcite-animation-timing), right var(--calcite-animation-timing), opacity var(--calcite-animation-timing);transition:left var(--calcite-animation-timing), right var(--calcite-animation-timing), opacity var(--calcite-animation-timing)}/*!@input[type=text]:focus*/input[type=text].sc-calcite-filter:focus{border-color:var(--calcite-ui-brand);outline:2px solid transparent;outline-offset:2px;padding-inline:0.25rem}/*!@input[type=text]:focus ~ .search-icon*/input[type=text].sc-calcite-filter:focus~.search-icon.sc-calcite-filter{inset-inline-start:calc(1rem * -1);opacity:0}/*!@.clear-button*/.clear-button.sc-calcite-filter{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;border-width:0px;background-color:transparent;color:var(--calcite-ui-text-2)}/*!@.clear-button:hover, .clear-button:focus*/.clear-button.sc-calcite-filter:hover,.clear-button.sc-calcite-filter:focus{color:var(--calcite-ui-text-1)}";
|
|
18281
18367
|
|
|
18282
|
-
const filterDebounceInMs = 250;
|
|
18283
18368
|
class Filter {
|
|
18284
18369
|
constructor(hostRef) {
|
|
18285
18370
|
registerInstance(this, hostRef);
|
|
@@ -18317,10 +18402,10 @@ class Filter {
|
|
|
18317
18402
|
// Private Methods
|
|
18318
18403
|
//
|
|
18319
18404
|
// --------------------------------------------------------------------------
|
|
18320
|
-
this.filter = debounce$1((value) => {
|
|
18405
|
+
this.filter = debounce$1((value, emit = false) => {
|
|
18321
18406
|
const regex = new RegExp(value, "i");
|
|
18322
18407
|
if (this.items.length === 0) {
|
|
18323
|
-
this.updateFiltered([]);
|
|
18408
|
+
this.updateFiltered([], emit);
|
|
18324
18409
|
return;
|
|
18325
18410
|
}
|
|
18326
18411
|
const find = (input, RE) => {
|
|
@@ -18343,11 +18428,12 @@ class Filter {
|
|
|
18343
18428
|
const result = this.items.filter((item) => {
|
|
18344
18429
|
return find(item, regex);
|
|
18345
18430
|
});
|
|
18346
|
-
this.updateFiltered(result);
|
|
18347
|
-
},
|
|
18431
|
+
this.updateFiltered(result, emit);
|
|
18432
|
+
}, DEBOUNCE_TIMEOUT);
|
|
18348
18433
|
this.inputHandler = (event) => {
|
|
18349
18434
|
const target = event.target;
|
|
18350
18435
|
this.value = target.value;
|
|
18436
|
+
this.filter(target.value, true);
|
|
18351
18437
|
};
|
|
18352
18438
|
this.keyDownHandler = ({ key }) => {
|
|
18353
18439
|
if (key === "Escape") {
|
|
@@ -18356,6 +18442,7 @@ class Filter {
|
|
|
18356
18442
|
};
|
|
18357
18443
|
this.clear = () => {
|
|
18358
18444
|
this.value = "";
|
|
18445
|
+
this.filter("", true);
|
|
18359
18446
|
this.setFocus();
|
|
18360
18447
|
};
|
|
18361
18448
|
}
|
|
@@ -18390,10 +18477,12 @@ class Filter {
|
|
|
18390
18477
|
async setFocus() {
|
|
18391
18478
|
focusElement(this.textInput);
|
|
18392
18479
|
}
|
|
18393
|
-
updateFiltered(filtered) {
|
|
18480
|
+
updateFiltered(filtered, emit = false) {
|
|
18394
18481
|
this.filteredItems.length = 0;
|
|
18395
18482
|
this.filteredItems = this.filteredItems.concat(filtered);
|
|
18396
|
-
|
|
18483
|
+
if (emit) {
|
|
18484
|
+
this.calciteFilterChange.emit();
|
|
18485
|
+
}
|
|
18397
18486
|
}
|
|
18398
18487
|
// --------------------------------------------------------------------------
|
|
18399
18488
|
//
|
|
@@ -19382,7 +19471,7 @@ class Input {
|
|
|
19382
19471
|
else {
|
|
19383
19472
|
this.setValue({
|
|
19384
19473
|
nativeEvent,
|
|
19385
|
-
value:
|
|
19474
|
+
value: delocalizedValue
|
|
19386
19475
|
});
|
|
19387
19476
|
}
|
|
19388
19477
|
};
|
|
@@ -19832,6 +19921,11 @@ class InputDatePicker {
|
|
|
19832
19921
|
this.locale = document.documentElement.lang || "en";
|
|
19833
19922
|
/** specify the scale of the date picker */
|
|
19834
19923
|
this.scale = "m";
|
|
19924
|
+
/**
|
|
19925
|
+
* Determines where the date-picker component will be positioned relative to the input.
|
|
19926
|
+
* @default "bottom-leading"
|
|
19927
|
+
*/
|
|
19928
|
+
this.placement = defaultMenuPlacement;
|
|
19835
19929
|
/** Range mode activation */
|
|
19836
19930
|
this.range = false;
|
|
19837
19931
|
/**
|
|
@@ -19848,6 +19942,17 @@ class InputDatePicker {
|
|
|
19848
19942
|
this.layout = "horizontal";
|
|
19849
19943
|
this.focusedInput = "start";
|
|
19850
19944
|
this.activeTransitionProp = "opacity";
|
|
19945
|
+
//--------------------------------------------------------------------------
|
|
19946
|
+
//
|
|
19947
|
+
// Private Methods
|
|
19948
|
+
//
|
|
19949
|
+
//--------------------------------------------------------------------------
|
|
19950
|
+
this.setFilteredPlacements = () => {
|
|
19951
|
+
const { el, flipPlacements } = this;
|
|
19952
|
+
this.filteredFlipPlacements = flipPlacements
|
|
19953
|
+
? filterComputedPlacements(flipPlacements, el)
|
|
19954
|
+
: null;
|
|
19955
|
+
};
|
|
19851
19956
|
this.transitionEnd = (event) => {
|
|
19852
19957
|
if (event.propertyName === this.activeTransitionProp) {
|
|
19853
19958
|
this.active
|
|
@@ -19945,6 +20050,9 @@ class InputDatePicker {
|
|
|
19945
20050
|
this.end = undefined;
|
|
19946
20051
|
}
|
|
19947
20052
|
}
|
|
20053
|
+
flipPlacementsHandler() {
|
|
20054
|
+
this.setFilteredPlacements();
|
|
20055
|
+
}
|
|
19948
20056
|
onMinChanged(min) {
|
|
19949
20057
|
this.minAsDate = dateFromISO(min);
|
|
19950
20058
|
}
|
|
@@ -19984,13 +20092,13 @@ class InputDatePicker {
|
|
|
19984
20092
|
}
|
|
19985
20093
|
/** Updates the position of the component. */
|
|
19986
20094
|
async reposition() {
|
|
19987
|
-
const { popper, menuEl } = this;
|
|
20095
|
+
const { placement, popper, menuEl } = this;
|
|
19988
20096
|
const modifiers = this.getModifiers();
|
|
19989
20097
|
popper
|
|
19990
20098
|
? await updatePopper({
|
|
19991
20099
|
el: menuEl,
|
|
19992
20100
|
modifiers,
|
|
19993
|
-
placement
|
|
20101
|
+
placement,
|
|
19994
20102
|
popper
|
|
19995
20103
|
})
|
|
19996
20104
|
: this.createPopper();
|
|
@@ -20026,6 +20134,7 @@ class InputDatePicker {
|
|
|
20026
20134
|
this.createPopper();
|
|
20027
20135
|
connectLabel(this);
|
|
20028
20136
|
connectForm(this);
|
|
20137
|
+
this.setFilteredPlacements();
|
|
20029
20138
|
}
|
|
20030
20139
|
async componentWillLoad() {
|
|
20031
20140
|
await this.loadLocaleData();
|
|
@@ -20070,11 +20179,6 @@ class InputDatePicker {
|
|
|
20070
20179
|
: startWrapper || endWrapper;
|
|
20071
20180
|
this.createPopper();
|
|
20072
20181
|
}
|
|
20073
|
-
//--------------------------------------------------------------------------
|
|
20074
|
-
//
|
|
20075
|
-
// Private Methods
|
|
20076
|
-
//
|
|
20077
|
-
//--------------------------------------------------------------------------
|
|
20078
20182
|
onLabelClick() {
|
|
20079
20183
|
this.setFocus();
|
|
20080
20184
|
}
|
|
@@ -20084,7 +20188,7 @@ class InputDatePicker {
|
|
|
20084
20188
|
enabled: true
|
|
20085
20189
|
};
|
|
20086
20190
|
flipModifier.options = {
|
|
20087
|
-
fallbackPlacements: this.
|
|
20191
|
+
fallbackPlacements: this.filteredFlipPlacements || popperMenuComputedPlacements
|
|
20088
20192
|
};
|
|
20089
20193
|
const eventListenerModifier = {
|
|
20090
20194
|
name: "eventListeners",
|
|
@@ -20094,7 +20198,7 @@ class InputDatePicker {
|
|
|
20094
20198
|
}
|
|
20095
20199
|
createPopper() {
|
|
20096
20200
|
this.destroyPopper();
|
|
20097
|
-
const { menuEl, referenceEl, overlayPositioning } = this;
|
|
20201
|
+
const { menuEl, placement, referenceEl, overlayPositioning } = this;
|
|
20098
20202
|
if (!menuEl || !referenceEl) {
|
|
20099
20203
|
return;
|
|
20100
20204
|
}
|
|
@@ -20103,7 +20207,7 @@ class InputDatePicker {
|
|
|
20103
20207
|
el: menuEl,
|
|
20104
20208
|
modifiers,
|
|
20105
20209
|
overlayPositioning,
|
|
20106
|
-
placement
|
|
20210
|
+
placement,
|
|
20107
20211
|
referenceEl
|
|
20108
20212
|
});
|
|
20109
20213
|
}
|
|
@@ -20245,6 +20349,7 @@ class InputDatePicker {
|
|
|
20245
20349
|
static get watchers() { return {
|
|
20246
20350
|
"disabled": ["handleDisabledChange"],
|
|
20247
20351
|
"value": ["valueHandler"],
|
|
20352
|
+
"flipPlacements": ["flipPlacementsHandler"],
|
|
20248
20353
|
"min": ["onMinChanged"],
|
|
20249
20354
|
"max": ["onMaxChanged"],
|
|
20250
20355
|
"active": ["activeHandler"],
|
|
@@ -20277,6 +20382,7 @@ class InputDatePicker {
|
|
|
20277
20382
|
"intlYear": [1, "intl-year"],
|
|
20278
20383
|
"locale": [1],
|
|
20279
20384
|
"scale": [513],
|
|
20385
|
+
"placement": [513],
|
|
20280
20386
|
"range": [516],
|
|
20281
20387
|
"required": [516],
|
|
20282
20388
|
"start": [1025],
|
|
@@ -20291,7 +20397,7 @@ class InputDatePicker {
|
|
|
20291
20397
|
},
|
|
20292
20398
|
"$listeners$": [[0, "calciteDatePickerChange", "handleDateOrRangeChange"], [0, "calciteDatePickerRangeChange", "handleDateOrRangeChange"], [0, "calciteDaySelect", "calciteDaySelectHandler"]],
|
|
20293
20399
|
"$lazyBundleId$": "-",
|
|
20294
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["active", "active"], ["scale", "scale"], ["range", "range"], ["required", "required"], ["layout", "layout"]]
|
|
20400
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["active", "active"], ["scale", "scale"], ["placement", "placement"], ["range", "range"], ["required", "required"], ["layout", "layout"]]
|
|
20295
20401
|
}; }
|
|
20296
20402
|
}
|
|
20297
20403
|
|
|
@@ -20575,6 +20681,11 @@ class InputTimePicker {
|
|
|
20575
20681
|
this.required = false;
|
|
20576
20682
|
/** The scale (size) of the time input */
|
|
20577
20683
|
this.scale = "m";
|
|
20684
|
+
/**
|
|
20685
|
+
* Determines where the popover will be positioned relative to the input.
|
|
20686
|
+
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
20687
|
+
*/
|
|
20688
|
+
this.placement = "auto";
|
|
20578
20689
|
/** number (seconds) that specifies the granularity that the value must adhere to */
|
|
20579
20690
|
this.step = 60;
|
|
20580
20691
|
/** The selected time in UTC (always 24-hour format) */
|
|
@@ -20748,7 +20859,7 @@ class InputTimePicker {
|
|
|
20748
20859
|
// --------------------------------------------------------------------------
|
|
20749
20860
|
render() {
|
|
20750
20861
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
20751
|
-
return (hAsync(Host, null, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputBlur: this.calciteInputBlurHandler, onCalciteInputFocus: this.calciteInputFocusHandler, onCalciteInputInput: this.calciteInputInputHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), hAsync("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, referenceElement: this.referenceElementId }, hAsync("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, onCalciteTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
20862
|
+
return (hAsync(Host, null, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputBlur: this.calciteInputBlurHandler, onCalciteInputFocus: this.calciteInputFocusHandler, onCalciteInputInput: this.calciteInputInputHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), hAsync("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, placement: this.placement, referenceElement: this.referenceElementId }, hAsync("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, onCalciteTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
20752
20863
|
}
|
|
20753
20864
|
get el() { return getElement(this); }
|
|
20754
20865
|
static get watchers() { return {
|
|
@@ -20780,6 +20891,7 @@ class InputTimePicker {
|
|
|
20780
20891
|
"name": [1],
|
|
20781
20892
|
"required": [516],
|
|
20782
20893
|
"scale": [513],
|
|
20894
|
+
"placement": [513],
|
|
20783
20895
|
"step": [2],
|
|
20784
20896
|
"value": [1025],
|
|
20785
20897
|
"localizedValue": [32],
|
|
@@ -20787,7 +20899,7 @@ class InputTimePicker {
|
|
|
20787
20899
|
},
|
|
20788
20900
|
"$listeners$": [[0, "click", "clickHandler"], [0, "keyup", "keyUpHandler"], [0, "calciteTimePickerBlur", "timePickerBlurHandler"], [0, "calciteTimePickerFocus", "timePickerFocusHandler"]],
|
|
20789
20901
|
"$lazyBundleId$": "-",
|
|
20790
|
-
"$attrsToReflect$": [["active", "active"], ["disabled", "disabled"], ["required", "required"], ["scale", "scale"]]
|
|
20902
|
+
"$attrsToReflect$": [["active", "active"], ["disabled", "disabled"], ["required", "required"], ["scale", "scale"], ["placement", "placement"]]
|
|
20791
20903
|
}; }
|
|
20792
20904
|
}
|
|
20793
20905
|
|
|
@@ -21034,7 +21146,8 @@ const CSS$p = {
|
|
|
21034
21146
|
label: "label",
|
|
21035
21147
|
description: "description",
|
|
21036
21148
|
contentEnd: "content-end",
|
|
21037
|
-
actionsEnd: "actions-end"
|
|
21149
|
+
actionsEnd: "actions-end",
|
|
21150
|
+
hasCenterContent: "has-center-content"
|
|
21038
21151
|
};
|
|
21039
21152
|
const SLOTS$f = {
|
|
21040
21153
|
actionsStart: "actions-start",
|
|
@@ -21043,7 +21156,7 @@ const SLOTS$f = {
|
|
|
21043
21156
|
actionsEnd: "actions-end"
|
|
21044
21157
|
};
|
|
21045
21158
|
|
|
21046
|
-
const listItemCss = "@-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*/.sc-calcite-list-item: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*/.calcite-animate.sc-calcite-list-item{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*/.calcite-animate__in.sc-calcite-list-item{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-list-item{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-list-item{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-list-item{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-list-item:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-list-item-h{display:none}/*!@:host*/.sc-calcite-list-item-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}/*!@:host([disabled])*/[disabled].sc-calcite-list-item-h{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]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-item-h[disabled] .sc-calcite-list-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-item-h [calcite-hydrated][disabled].sc-calcite-list-item{opacity:1}/*!@.container*/.container.sc-calcite-list-item{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family)}/*!@.container **/.container.sc-calcite-list-item *.sc-calcite-list-item{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@.nested-container*/.nested-container.sc-calcite-list-item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}/*!@.content-container*/.content-container.sc-calcite-list-item{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;color:var(--calcite-ui-text-2);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@.content-container--button*/.content-container--button.sc-calcite-list-item{cursor:pointer;border-style:none;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;text-align:initial}/*!@.content-container--button:hover*/.content-container--button.sc-calcite-list-item:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.content-container--button:hover .label, .content-container--button:hover .description*/.content-container--button.sc-calcite-list-item:hover .label.sc-calcite-list-item,.content-container--button.sc-calcite-list-item:hover .description.sc-calcite-list-item{color:var(--calcite-ui-text-1)}/*!@.content-container--button:focus*/.content-container--button.sc-calcite-list-item:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.content*/.content.sc-calcite-list-item{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@.label, .description*/.label.sc-calcite-list-item,.description.sc-calcite-list-item{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}/*!@.label:only-child, .description:only-child*/.label.sc-calcite-list-item:only-child,.description.sc-calcite-list-item:only-child{margin:0px;padding-top:0.25rem;padding-bottom:0.25rem}/*!@.label*/.label.sc-calcite-list-item{color:var(--calcite-ui-text-1)}/*!@.description*/.description.sc-calcite-list-item{margin-top:0.125rem;color:var(--calcite-ui-text-3)}/*!@.content-start, .content-end*/.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item{
|
|
21159
|
+
const listItemCss = "@-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*/.sc-calcite-list-item: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*/.calcite-animate.sc-calcite-list-item{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*/.calcite-animate__in.sc-calcite-list-item{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-list-item{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-list-item{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-list-item{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-list-item:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-list-item-h{display:none}/*!@:host*/.sc-calcite-list-item-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}/*!@:host([disabled])*/[disabled].sc-calcite-list-item-h{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]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-item-h[disabled] .sc-calcite-list-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-item-h [calcite-hydrated][disabled].sc-calcite-list-item{opacity:1}/*!@.container*/.container.sc-calcite-list-item{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family)}/*!@.container **/.container.sc-calcite-list-item *.sc-calcite-list-item{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@.nested-container*/.nested-container.sc-calcite-list-item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}/*!@.content-container*/.content-container.sc-calcite-list-item{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@.content-container--button*/.content-container--button.sc-calcite-list-item{cursor:pointer;border-style:none;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;text-align:initial}/*!@.content-container--button:hover*/.content-container--button.sc-calcite-list-item:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.content-container--button:hover .label, .content-container--button:hover .description*/.content-container--button.sc-calcite-list-item:hover .label.sc-calcite-list-item,.content-container--button.sc-calcite-list-item:hover .description.sc-calcite-list-item{color:var(--calcite-ui-text-1)}/*!@.content-container--button:focus*/.content-container--button.sc-calcite-list-item:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.content-container--button .content-start, .content-container--button .content-end*/.content-container--button.sc-calcite-list-item .content-start.sc-calcite-list-item,.content-container--button.sc-calcite-list-item .content-end.sc-calcite-list-item{pointer-events:none}/*!@.content*/.content.sc-calcite-list-item{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@.label, .description*/.label.sc-calcite-list-item,.description.sc-calcite-list-item{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}/*!@.label:only-child, .description:only-child*/.label.sc-calcite-list-item:only-child,.description.sc-calcite-list-item:only-child{margin:0px;padding-top:0.25rem;padding-bottom:0.25rem}/*!@.label*/.label.sc-calcite-list-item{color:var(--calcite-ui-text-1)}/*!@.description*/.description.sc-calcite-list-item{margin-top:0.125rem;color:var(--calcite-ui-text-3)}/*!@.content-start*/.content-start.sc-calcite-list-item{-ms-flex-pack:start;justify-content:flex-start}/*!@.content-end*/.content-end.sc-calcite-list-item{-ms-flex-pack:end;justify-content:flex-end}/*!@.content-start, .content-end*/.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item{-ms-flex:1 1 auto;flex:1 1 auto}/*!@.has-center-content .content-start, .has-center-content .content-end*/.has-center-content.sc-calcite-list-item .content-start.sc-calcite-list-item,.has-center-content.sc-calcite-list-item .content-end.sc-calcite-list-item{-ms-flex:0 1 auto;flex:0 1 auto}/*!@.actions-start, .actions-end, .content-start, .content-end*/.actions-start.sc-calcite-list-item,.actions-end.sc-calcite-list-item,.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}/*!@.content-start ::slotted(calcite-icon), .content-end ::slotted(calcite-icon)*/.content-start .sc-calcite-list-item-s>calcite-icon,.content-end.sc-calcite-list-item-s>calcite-icon,.content-end .sc-calcite-list-item-s>calcite-icon{-ms-flex-item-align:center;align-self:center;padding-left:0.75rem;padding-right:0.75rem}/*!@.actions-start ::slotted(calcite-action), .actions-end ::slotted(calcite-action)*/.actions-start .sc-calcite-list-item-s>calcite-action,.actions-end.sc-calcite-list-item-s>calcite-action,.actions-end .sc-calcite-list-item-s>calcite-action{-ms-flex-item-align:stretch;align-self:stretch;color:inherit}/*!@::slotted(calcite-list-item-group), ::slotted(calcite-list-item)*/.sc-calcite-list-item-s>calcite-list-item-group,.sc-calcite-list-item-s>calcite-list-item{padding-left:0.5rem}";
|
|
21047
21160
|
|
|
21048
21161
|
/**
|
|
21049
21162
|
* @slot - A slot for adding `calcite-list-item` and `calcite-list-item-group` elements.
|
|
@@ -21124,9 +21237,14 @@ class ListItem {
|
|
|
21124
21237
|
return !!label || !!description ? (hAsync("div", { class: CSS$p.content }, label ? hAsync("div", { class: CSS$p.label }, label) : null, description ? hAsync("div", { class: CSS$p.description }, description) : null)) : null;
|
|
21125
21238
|
}
|
|
21126
21239
|
renderContentContainer() {
|
|
21127
|
-
const { disabled, nonInteractive } = this;
|
|
21240
|
+
const { description, disabled, label, nonInteractive } = this;
|
|
21241
|
+
const hasCenterContent = !!label || !!description;
|
|
21128
21242
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
21129
|
-
return !nonInteractive ? (hAsync("button", { class: {
|
|
21243
|
+
return !nonInteractive ? (hAsync("button", { class: {
|
|
21244
|
+
[CSS$p.contentContainer]: true,
|
|
21245
|
+
[CSS$p.contentContainerButton]: true,
|
|
21246
|
+
[CSS$p.hasCenterContent]: hasCenterContent
|
|
21247
|
+
}, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (hAsync("div", { class: { [CSS$p.contentContainer]: true, [CSS$p.hasCenterContent]: hasCenterContent }, ref: () => (this.focusEl = null) }, content));
|
|
21130
21248
|
}
|
|
21131
21249
|
render() {
|
|
21132
21250
|
return (hAsync(Host, { role: "listitem" }, hAsync("div", { class: CSS$p.container }, this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), hAsync("div", { class: CSS$p.nestedContainer }, hAsync("slot", null))));
|
|
@@ -21495,7 +21613,7 @@ class Modal {
|
|
|
21495
21613
|
});
|
|
21496
21614
|
};
|
|
21497
21615
|
this.focusFirstElement = () => {
|
|
21498
|
-
focusElement(this.closeButtonEl);
|
|
21616
|
+
focusElement(this.disableCloseButton ? getFocusableElements(this.el)[0] : this.closeButtonEl);
|
|
21499
21617
|
};
|
|
21500
21618
|
this.focusLastElement = () => {
|
|
21501
21619
|
const focusableElements = getFocusableElements(this.el).filter((el) => !el.getAttribute("data-focus-fence"));
|
|
@@ -22166,7 +22284,7 @@ const TEXT$8 = {
|
|
|
22166
22284
|
};
|
|
22167
22285
|
const HEADING_LEVEL$4 = 3;
|
|
22168
22286
|
|
|
22169
|
-
const panelCss = "@-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*/.sc-calcite-panel: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*/.calcite-animate.sc-calcite-panel{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*/.calcite-animate__in.sc-calcite-panel{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-panel{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-panel{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-panel{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-panel-h{-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 **/.sc-calcite-panel-h *.sc-calcite-panel{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-panel:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-panel-h{display:none}/*!@:host*/.sc-calcite-panel-h{position:relative;display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}/*!@:host([disabled])*/[disabled].sc-calcite-panel-h{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]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-panel-h[disabled] .sc-calcite-panel-s>[calcite-hydrated][disabled],[disabled].sc-calcite-panel-h [calcite-hydrated][disabled].sc-calcite-panel{opacity:1}/*!@.header*/.header.sc-calcite-panel{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-panel{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}/*!@.header .heading*/.header.sc-calcite-panel .heading.sc-calcite-panel{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}/*!@h1.heading*/h1.heading.sc-calcite-panel{font-size:var(--calcite-font-size-2);line-height:1.5rem}/*!@h2.heading*/h2.heading.sc-calcite-panel{font-size:var(--calcite-font-size-1);line-height:1.5rem}/*!@h3.heading*/h3.heading.sc-calcite-panel{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@h4.heading, h5.heading*/h4.heading.sc-calcite-panel,h5.heading.sc-calcite-panel{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.container*/.container.sc-calcite-panel{margin:0px;display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;max-height:var(--calcite-panel-max-height);width:var(--calcite-panel-width);max-width:var(--calcite-panel-max-width);min-width:var(--calcite-panel-min-width);-webkit-transition:max-height var(--calcite-animation-timing), width var(--calcite-animation-timing);transition:max-height var(--calcite-animation-timing), width var(--calcite-animation-timing)}/*!@:host([height-scale=s])*/[height-scale=s].sc-calcite-panel-h{--calcite-panel-max-height:40vh}/*!@:host([height-scale=m])*/[height-scale=m].sc-calcite-panel-h{--calcite-panel-max-height:60vh}/*!@:host([height-scale=l])*/[height-scale=l].sc-calcite-panel-h{--calcite-panel-max-height:80vh}/*!@:host([width-scale=s])*/[width-scale=s].sc-calcite-panel-h{--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}/*!@:host([width-scale=m])*/[width-scale=m].sc-calcite-panel-h{--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}/*!@:host([width-scale=l])*/[width-scale=l].sc-calcite-panel-h{--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}/*!@.container[hidden]*/.container[hidden].sc-calcite-panel{display:none}/*!@:host([loading]) .container, :host([disabled]) .container*/[loading].sc-calcite-panel-h .container.sc-calcite-panel,[disabled].sc-calcite-panel-h .container.sc-calcite-panel{position:relative;z-index:1}/*!@.header*/.header.sc-calcite-panel{border-bottom:1px solid;position:-webkit-sticky;position:sticky;top:0px;width:100%;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:start;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-bottom-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto;z-index:2}/*!@.header-content*/.header-content.sc-calcite-panel{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.875rem;padding-bottom:0.875rem;overflow:hidden;-webkit-margin-end:auto;margin-inline-end:auto}/*!@.header-content .heading, .header-content .summary*/.header-content.sc-calcite-panel .heading.sc-calcite-panel,.header-content.sc-calcite-panel .summary.sc-calcite-panel{display:block;overflow-wrap:break-word;padding:0px}/*!@.header-content .heading*/.header-content.sc-calcite-panel .heading.sc-calcite-panel{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}/*!@.header-content .heading:only-child*/.header-content.sc-calcite-panel .heading.sc-calcite-panel:only-child{margin-bottom:0px}/*!@.header-content .summary*/.header-content.sc-calcite-panel .summary.sc-calcite-panel{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}/*!@.back-button*/.back-button.sc-calcite-panel{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}/*!@.header-actions*/.header-actions.sc-calcite-panel{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}/*!@.header-actions--end,\n.menu-container:only-child*/.header-actions--end.sc-calcite-panel,.menu-container.sc-calcite-panel:only-child{-webkit-margin-start:auto;margin-inline-start:auto}/*!@.menu-button*/.menu-button.sc-calcite-panel{position:relative;height:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}/*!@.menu*/.menu.sc-calcite-panel{min-width:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}/*!@.content-wrapper*/.content-wrapper.sc-calcite-panel{overflow:auto}/*!@.content-height*/.content-height.sc-calcite-panel{height:100%}/*!@.content-container*/.content-container.sc-calcite-panel{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background)}/*!@.footer*/.footer.sc-calcite-panel{border-top:1px solid;position:-webkit-sticky;position:sticky;bottom:0px;display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-top-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;padding:0.5rem}/*!@.fab-container*/.fab-container.sc-calcite-panel{position:-webkit-sticky;position:sticky;bottom:0px;left:0px;right:0px;margin-top:0px;margin-bottom:0px;margin-left:auto;margin-right:auto;display:block;padding:0.5rem;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;z-index:1}";
|
|
22287
|
+
const panelCss = "@-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*/.sc-calcite-panel: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*/.calcite-animate.sc-calcite-panel{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*/.calcite-animate__in.sc-calcite-panel{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-panel{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-panel{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-panel{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-panel-h{-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 **/.sc-calcite-panel-h *.sc-calcite-panel{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-panel:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-panel-h{display:none}/*!@:host*/.sc-calcite-panel-h{position:relative;display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}/*!@:host([disabled])*/[disabled].sc-calcite-panel-h{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]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-panel-h[disabled] .sc-calcite-panel-s>[calcite-hydrated][disabled],[disabled].sc-calcite-panel-h [calcite-hydrated][disabled].sc-calcite-panel{opacity:1}/*!@.header*/.header.sc-calcite-panel{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-panel{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}/*!@.header .heading*/.header.sc-calcite-panel .heading.sc-calcite-panel{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}/*!@h1.heading*/h1.heading.sc-calcite-panel{font-size:var(--calcite-font-size-2);line-height:1.5rem}/*!@h2.heading*/h2.heading.sc-calcite-panel{font-size:var(--calcite-font-size-1);line-height:1.5rem}/*!@h3.heading*/h3.heading.sc-calcite-panel{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@h4.heading, h5.heading*/h4.heading.sc-calcite-panel,h5.heading.sc-calcite-panel{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.container*/.container.sc-calcite-panel{margin:0px;display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;max-height:var(--calcite-panel-max-height);width:var(--calcite-panel-width);max-width:var(--calcite-panel-max-width);min-width:var(--calcite-panel-min-width);-webkit-transition:max-height var(--calcite-animation-timing), width var(--calcite-animation-timing);transition:max-height var(--calcite-animation-timing), width var(--calcite-animation-timing)}/*!@:host([height-scale=s])*/[height-scale=s].sc-calcite-panel-h{--calcite-panel-max-height:40vh}/*!@:host([height-scale=m])*/[height-scale=m].sc-calcite-panel-h{--calcite-panel-max-height:60vh}/*!@:host([height-scale=l])*/[height-scale=l].sc-calcite-panel-h{--calcite-panel-max-height:80vh}/*!@:host([width-scale=s])*/[width-scale=s].sc-calcite-panel-h{--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}/*!@:host([width-scale=m])*/[width-scale=m].sc-calcite-panel-h{--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}/*!@:host([width-scale=l])*/[width-scale=l].sc-calcite-panel-h{--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}/*!@.container[hidden]*/.container[hidden].sc-calcite-panel{display:none}/*!@:host([loading]) .container, :host([disabled]) .container*/[loading].sc-calcite-panel-h .container.sc-calcite-panel,[disabled].sc-calcite-panel-h .container.sc-calcite-panel{position:relative}/*!@.header*/.header.sc-calcite-panel{border-bottom:1px solid;position:-webkit-sticky;position:sticky;top:0px;width:100%;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:start;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-bottom-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto}/*!@.header-content*/.header-content.sc-calcite-panel{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.875rem;padding-bottom:0.875rem;overflow:hidden;-webkit-margin-end:auto;margin-inline-end:auto}/*!@.header-content .heading, .header-content .summary*/.header-content.sc-calcite-panel .heading.sc-calcite-panel,.header-content.sc-calcite-panel .summary.sc-calcite-panel{display:block;overflow-wrap:break-word;padding:0px}/*!@.header-content .heading*/.header-content.sc-calcite-panel .heading.sc-calcite-panel{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}/*!@.header-content .heading:only-child*/.header-content.sc-calcite-panel .heading.sc-calcite-panel:only-child{margin-bottom:0px}/*!@.header-content .summary*/.header-content.sc-calcite-panel .summary.sc-calcite-panel{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}/*!@.back-button*/.back-button.sc-calcite-panel{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}/*!@.header-actions*/.header-actions.sc-calcite-panel{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}/*!@.header-actions--end,\n.menu-container:only-child*/.header-actions--end.sc-calcite-panel,.menu-container.sc-calcite-panel:only-child{-webkit-margin-start:auto;margin-inline-start:auto}/*!@.menu-button*/.menu-button.sc-calcite-panel{position:relative;height:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}/*!@.menu*/.menu.sc-calcite-panel{min-width:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}/*!@.content-wrapper*/.content-wrapper.sc-calcite-panel{overflow:auto}/*!@.content-height*/.content-height.sc-calcite-panel{height:100%}/*!@.content-container*/.content-container.sc-calcite-panel{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background)}/*!@.footer*/.footer.sc-calcite-panel{border-top:1px solid;position:-webkit-sticky;position:sticky;bottom:0px;display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-top-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;padding:0.5rem}/*!@.fab-container*/.fab-container.sc-calcite-panel{position:-webkit-sticky;position:sticky;bottom:0px;left:0px;right:0px;margin-top:0px;margin-bottom:0px;margin-left:auto;margin-right:auto;display:block;padding:0.5rem;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content}";
|
|
22170
22288
|
|
|
22171
22289
|
/**
|
|
22172
22290
|
* @slot - A slot for adding custom content.
|
|
@@ -23241,6 +23359,12 @@ class Popover {
|
|
|
23241
23359
|
// Private Methods
|
|
23242
23360
|
//
|
|
23243
23361
|
// --------------------------------------------------------------------------
|
|
23362
|
+
this.setFilteredPlacements = () => {
|
|
23363
|
+
const { el, flipPlacements } = this;
|
|
23364
|
+
this.filteredFlipPlacements = flipPlacements
|
|
23365
|
+
? filterComputedPlacements(flipPlacements, el)
|
|
23366
|
+
: null;
|
|
23367
|
+
};
|
|
23244
23368
|
this.setUpReferenceElement = () => {
|
|
23245
23369
|
this.removeReferences();
|
|
23246
23370
|
this.effectiveReferenceElement = this.getReferenceElement();
|
|
@@ -23291,6 +23415,9 @@ class Popover {
|
|
|
23291
23415
|
}
|
|
23292
23416
|
};
|
|
23293
23417
|
}
|
|
23418
|
+
flipPlacementsHandler() {
|
|
23419
|
+
this.setFilteredPlacements();
|
|
23420
|
+
}
|
|
23294
23421
|
offsetDistanceOffsetHandler() {
|
|
23295
23422
|
this.reposition();
|
|
23296
23423
|
}
|
|
@@ -23312,6 +23439,9 @@ class Popover {
|
|
|
23312
23439
|
// Lifecycle
|
|
23313
23440
|
//
|
|
23314
23441
|
// --------------------------------------------------------------------------
|
|
23442
|
+
connectedCallback() {
|
|
23443
|
+
this.setFilteredPlacements();
|
|
23444
|
+
}
|
|
23315
23445
|
componentWillLoad() {
|
|
23316
23446
|
this.setUpReferenceElement();
|
|
23317
23447
|
}
|
|
@@ -23362,14 +23492,14 @@ class Popover {
|
|
|
23362
23492
|
: referenceElement) || null);
|
|
23363
23493
|
}
|
|
23364
23494
|
getModifiers() {
|
|
23365
|
-
const { arrowEl,
|
|
23495
|
+
const { arrowEl, disableFlip, disablePointer, offsetDistance, offsetSkidding, filteredFlipPlacements } = this;
|
|
23366
23496
|
const flipModifier = {
|
|
23367
23497
|
name: "flip",
|
|
23368
23498
|
enabled: !disableFlip
|
|
23369
23499
|
};
|
|
23370
|
-
if (
|
|
23500
|
+
if (filteredFlipPlacements) {
|
|
23371
23501
|
flipModifier.options = {
|
|
23372
|
-
fallbackPlacements:
|
|
23502
|
+
fallbackPlacements: filteredFlipPlacements
|
|
23373
23503
|
};
|
|
23374
23504
|
}
|
|
23375
23505
|
const arrowModifier = {
|
|
@@ -23442,6 +23572,7 @@ class Popover {
|
|
|
23442
23572
|
}
|
|
23443
23573
|
get el() { return getElement(this); }
|
|
23444
23574
|
static get watchers() { return {
|
|
23575
|
+
"flipPlacements": ["flipPlacementsHandler"],
|
|
23445
23576
|
"offsetDistance": ["offsetDistanceOffsetHandler"],
|
|
23446
23577
|
"offsetSkidding": ["offsetSkiddingHandler"],
|
|
23447
23578
|
"open": ["openHandler"],
|
|
@@ -25136,6 +25267,9 @@ class ShellPanel {
|
|
|
25136
25267
|
|
|
25137
25268
|
const sliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-slider: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*/.calcite-animate.sc-calcite-slider{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*/.calcite-animate__in.sc-calcite-slider{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-slider{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-slider{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-slider{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-slider:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-slider-h{display:none}/*!@.scale--s*/.scale--s.sc-calcite-slider{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}/*!@.scale--s .handle__label, .scale--s .tick__label*/.scale--s.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--s.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:.75rem}/*!@.scale--m*/.scale--m.sc-calcite-slider{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}/*!@.scale--m .handle__label, .scale--m .tick__label*/.scale--m.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--m.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:1rem}/*!@.scale--l*/.scale--l.sc-calcite-slider{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}/*!@.scale--l .handle__label, .scale--l .tick__label*/.scale--l.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--l.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:1rem}/*!@.handle__label, .tick__label*/.handle__label.sc-calcite-slider,.tick__label.sc-calcite-slider{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}/*!@:host*/.sc-calcite-slider-h{display:block}/*!@.container*/.container.sc-calcite-slider{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}/*!@:host([disabled])*/[disabled].sc-calcite-slider-h{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]) .track__range,\n:host([disabled]) .tick--active*/[disabled].sc-calcite-slider-h .track__range.sc-calcite-slider,[disabled].sc-calcite-slider-h .tick--active.sc-calcite-slider{background-color:var(--calcite-ui-text-3)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-slider-h[disabled] .sc-calcite-slider-s>[calcite-hydrated][disabled],[disabled].sc-calcite-slider-h [calcite-hydrated][disabled].sc-calcite-slider{opacity:1}/*!@.scale--s .thumb:not(.thumb--precise)*/.scale--s.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}/*!@.scale--m .thumb:not(.thumb--precise)*/.scale--m.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}/*!@.scale--l .thumb:not(.thumb--precise)*/.scale--l.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}/*!@:host([precise]:not([has-histogram])) .container .thumb--value*/[precise].sc-calcite-slider-h:not([has-histogram]) .container.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}/*!@.thumb-container*/.thumb-container.sc-calcite-slider{position:relative;max-width:100%}/*!@.thumb*/.thumb.sc-calcite-slider{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}/*!@.thumb .handle__label.static, .thumb .handle__label.transformed*/.thumb.sc-calcite-slider .handle__label.static.sc-calcite-slider,.thumb.sc-calcite-slider .handle__label.transformed.sc-calcite-slider{position:absolute;top:0px;bottom:0px;opacity:0}/*!@.thumb .handle__label.hyphen::after*/.thumb.sc-calcite-slider .handle__label.hyphen.sc-calcite-slider::after{content:\"—\";display:inline-block;width:1em}/*!@.thumb .handle__label.hyphen--wrap*/.thumb.sc-calcite-slider .handle__label.hyphen--wrap.sc-calcite-slider{display:-ms-flexbox;display:flex}/*!@.thumb .handle*/.thumb.sc-calcite-slider .handle.sc-calcite-slider{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}/*!@.thumb .handle-extension*/.thumb.sc-calcite-slider .handle-extension.sc-calcite-slider{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}/*!@.thumb:hover .handle*/.thumb.sc-calcite-slider:hover .handle.sc-calcite-slider{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}/*!@.thumb:hover .handle-extension*/.thumb.sc-calcite-slider:hover .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb:focus .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}/*!@.thumb:focus .handle-extension*/.thumb.sc-calcite-slider:focus .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb.thumb--minValue*/.thumb.thumb--minValue.sc-calcite-slider{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}/*!@.thumb.thumb--precise*/.thumb.thumb--precise.sc-calcite-slider{--calcite-slider-thumb-y-offset:-2px}/*!@:host([label-handles]) .thumb*/[label-handles].sc-calcite-slider-h .thumb.sc-calcite-slider{--calcite-slider-thumb-x-offset:50%}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--s.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--m.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--l.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}/*!@:host([has-histogram][label-handles]) .handle__label,\n:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label*/[has-histogram][label-handles].sc-calcite-slider-h .handle__label.sc-calcite-slider,[label-handles].sc-calcite-slider-h:not([has-histogram]) .thumb--minValue.thumb--precise.sc-calcite-slider .handle__label.sc-calcite-slider{margin-top:0.5em}/*!@:host(:not([has-histogram]):not([precise])) .handle__label,\n:host([label-handles]:not([has-histogram])) .thumb--value .handle__label*/.sc-calcite-slider-h:not([has-histogram]):not([precise]) .handle__label.sc-calcite-slider,[label-handles].sc-calcite-slider-h:not([has-histogram]) .thumb--value.sc-calcite-slider .handle__label.sc-calcite-slider{margin-bottom:0.5em}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--s.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-33px}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--m.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-44px}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--l.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-49px}/*!@.thumb:focus .handle, .thumb--active .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider,.thumb--active.sc-calcite-slider .handle.sc-calcite-slider{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}/*!@.thumb:hover.thumb--precise:after, .thumb:focus.thumb--precise:after, .thumb--active.thumb--precise:after*/.thumb.sc-calcite-slider:hover.thumb--precise:after,.thumb.sc-calcite-slider:focus.thumb--precise:after,.thumb--active.thumb--precise.sc-calcite-slider:after{background-color:var(--calcite-ui-brand)}/*!@.track*/.track.sc-calcite-slider{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}/*!@.track__range*/.track__range.sc-calcite-slider{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}/*!@.container--range .track__range:hover*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:hover{cursor:ew-resize}/*!@.container--range .track__range:after*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}/*!@.tick*/.tick.sc-calcite-slider{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}/*!@.tick--active*/.tick--active.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.tick__label*/.tick__label.sc-calcite-slider{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}/*!@.tick__label--min*/.tick__label--min.sc-calcite-slider{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}/*!@.tick__label--max*/.tick__label--max.sc-calcite-slider{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}/*!@:host([has-histogram][label-handles]) .tick__label--min, :host([has-histogram][label-handles]) .tick__label--max, :host([has-histogram][precise]) .tick__label--min, :host([has-histogram][precise]) .tick__label--max*/[has-histogram][label-handles].sc-calcite-slider-h .tick__label--min.sc-calcite-slider,[has-histogram][label-handles].sc-calcite-slider-h .tick__label--max.sc-calcite-slider,[has-histogram][precise].sc-calcite-slider-h .tick__label--min.sc-calcite-slider,[has-histogram][precise].sc-calcite-slider-h .tick__label--max.sc-calcite-slider{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@.graph*/.graph.sc-calcite-slider{color:var(--calcite-ui-foreground-3);height:48px}/*!@:host([label-ticks][ticks]) .container*/[label-ticks][ticks].sc-calcite-slider-h .container.sc-calcite-slider{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}/*!@:host([has-histogram]):host([precise][label-handles]) .container*/[has-histogram].sc-calcite-slider-h([precise][label-handles]).sc-calcite-slider-h .container.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}/*!@:host([has-histogram]):host([label-handles]:not([precise])) .container*/[has-histogram].sc-calcite-slider-h([label-handles].sc-calcite-slider-h:not([precise])) .container.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}/*!@:host([has-histogram]):host([precise]:not([label-handles])) .container*/[has-histogram].sc-calcite-slider-h([precise].sc-calcite-slider-h:not([label-handles])) .container.sc-calcite-slider{padding-bottom:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([precise]:not([label-handles])) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([precise]:not([label-handles])) .container.sc-calcite-slider{padding-top:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([precise]:not([label-handles])) .container--range.sc-calcite-slider{padding-bottom:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([label-handles]:not([precise])) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles]:not([precise])) .container.sc-calcite-slider{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}/*!@:host(:not([has-histogram])):host([label-handles][precise]) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles][precise]) .container.sc-calcite-slider{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}/*!@:host(:not([has-histogram])):host([label-handles][precise]) .container--range*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles][precise]) .container--range.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-slider-s>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}";
|
|
25138
25269
|
|
|
25270
|
+
function isRange(value) {
|
|
25271
|
+
return Array.isArray(value);
|
|
25272
|
+
}
|
|
25139
25273
|
class Slider {
|
|
25140
25274
|
constructor(hostRef) {
|
|
25141
25275
|
registerInstance(this, hostRef);
|
|
@@ -25176,13 +25310,12 @@ class Slider {
|
|
|
25176
25310
|
/** Interval to move on up/down keys */
|
|
25177
25311
|
this.step = 1;
|
|
25178
25312
|
/** Currently selected number (if single select) */
|
|
25179
|
-
this.value =
|
|
25313
|
+
this.value = 0;
|
|
25180
25314
|
/**
|
|
25181
25315
|
* Specify the scale of the slider, defaults to m
|
|
25182
25316
|
*/
|
|
25183
25317
|
this.scale = "m";
|
|
25184
25318
|
this.guid = `calcite-slider-${guid()}`;
|
|
25185
|
-
this.isRange = false;
|
|
25186
25319
|
this.activeProp = "value";
|
|
25187
25320
|
this.minMaxValueRange = null;
|
|
25188
25321
|
this.minValueDragRange = null;
|
|
@@ -25192,7 +25325,7 @@ class Slider {
|
|
|
25192
25325
|
event.preventDefault();
|
|
25193
25326
|
if (this.dragProp) {
|
|
25194
25327
|
const value = this.translate(event.clientX || event.pageX);
|
|
25195
|
-
if (this.
|
|
25328
|
+
if (isRange(this.value) && this.dragProp === "minMaxValue") {
|
|
25196
25329
|
if (this.minValueDragRange && this.maxValueDragRange && this.minMaxValueRange) {
|
|
25197
25330
|
const newMinValue = value - this.minValueDragRange;
|
|
25198
25331
|
const newMaxValue = value + this.maxValueDragRange;
|
|
@@ -25238,12 +25371,20 @@ class Slider {
|
|
|
25238
25371
|
histogramWatcher(newHistogram) {
|
|
25239
25372
|
this.hasHistogram = !!newHistogram;
|
|
25240
25373
|
}
|
|
25374
|
+
valueHandler() {
|
|
25375
|
+
this.setMinMaxFromValue();
|
|
25376
|
+
}
|
|
25377
|
+
minMaxValueHandler() {
|
|
25378
|
+
this.setValueFromMinMax();
|
|
25379
|
+
}
|
|
25241
25380
|
//--------------------------------------------------------------------------
|
|
25242
25381
|
//
|
|
25243
25382
|
// Lifecycle
|
|
25244
25383
|
//
|
|
25245
25384
|
//--------------------------------------------------------------------------
|
|
25246
25385
|
connectedCallback() {
|
|
25386
|
+
this.setMinMaxFromValue();
|
|
25387
|
+
this.setValueFromMinMax();
|
|
25247
25388
|
connectLabel(this);
|
|
25248
25389
|
connectForm(this);
|
|
25249
25390
|
}
|
|
@@ -25253,11 +25394,12 @@ class Slider {
|
|
|
25253
25394
|
this.removeDragListeners();
|
|
25254
25395
|
}
|
|
25255
25396
|
componentWillLoad() {
|
|
25256
|
-
this.isRange = !!(this.maxValue || this.maxValue === 0);
|
|
25257
25397
|
this.tickValues = this.generateTickValues();
|
|
25258
|
-
|
|
25398
|
+
if (!isRange(this.value)) {
|
|
25399
|
+
this.value = this.clamp(this.value);
|
|
25400
|
+
}
|
|
25259
25401
|
afterConnectDefaultValueSet(this, this.value);
|
|
25260
|
-
if (this.snap) {
|
|
25402
|
+
if (this.snap && !isRange(this.value)) {
|
|
25261
25403
|
this.value = this.getClosestStep(this.value);
|
|
25262
25404
|
}
|
|
25263
25405
|
if (this.histogram) {
|
|
@@ -25267,9 +25409,9 @@ class Slider {
|
|
|
25267
25409
|
componentDidRender() {
|
|
25268
25410
|
if (this.labelHandles) {
|
|
25269
25411
|
this.adjustHostObscuredHandleLabel("value");
|
|
25270
|
-
if (this.
|
|
25412
|
+
if (isRange(this.value)) {
|
|
25271
25413
|
this.adjustHostObscuredHandleLabel("minValue");
|
|
25272
|
-
if (!(this.precise &&
|
|
25414
|
+
if (!(this.precise && !this.hasHistogram)) {
|
|
25273
25415
|
this.hyphenateCollidingRangeHandleLabels();
|
|
25274
25416
|
}
|
|
25275
25417
|
}
|
|
@@ -25279,50 +25421,50 @@ class Slider {
|
|
|
25279
25421
|
}
|
|
25280
25422
|
render() {
|
|
25281
25423
|
const id = this.el.id || this.guid;
|
|
25424
|
+
const maxProp = isRange(this.value) ? "maxValue" : "value";
|
|
25425
|
+
const value = isRange(this.value) ? this.maxValue : this.value;
|
|
25282
25426
|
const min = this.minValue || this.min;
|
|
25283
|
-
const max = this.maxValue || this.value;
|
|
25284
|
-
const maxProp = this.isRange ? "maxValue" : "value";
|
|
25285
|
-
const value = this[maxProp];
|
|
25286
25427
|
const useMinValue = this.shouldUseMinValue();
|
|
25287
25428
|
const minInterval = this.getUnitInterval(useMinValue ? this.minValue : min) * 100;
|
|
25288
|
-
const maxInterval = this.getUnitInterval(
|
|
25429
|
+
const maxInterval = this.getUnitInterval(value) * 100;
|
|
25289
25430
|
const mirror = this.shouldMirror();
|
|
25290
25431
|
const leftThumbOffset = `${mirror ? 100 - minInterval : minInterval}%`;
|
|
25291
25432
|
const rightThumbOffset = `${mirror ? maxInterval : 100 - maxInterval}%`;
|
|
25292
|
-
const
|
|
25433
|
+
const valueIsRange = isRange(this.value);
|
|
25434
|
+
const handle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
25293
25435
|
thumb: true,
|
|
25294
25436
|
"thumb--value": true,
|
|
25295
25437
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
|
25296
25438
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle" })));
|
|
25297
|
-
const labeledHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label":
|
|
25439
|
+
const labeledHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
25298
25440
|
thumb: true,
|
|
25299
25441
|
"thumb--value": true,
|
|
25300
25442
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
|
25301
25443
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("span", { "aria-hidden": "true", class: "handle__label handle__label--value" }, value ? value.toLocaleString() : value), hAsync("span", { "aria-hidden": "true", class: "handle__label handle__label--value static" }, value ? value.toLocaleString() : value), hAsync("span", { "aria-hidden": "true", class: "handle__label handle__label--value transformed" }, value ? value.toLocaleString() : value), hAsync("div", { class: "handle" })));
|
|
25302
|
-
const histogramLabeledHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label":
|
|
25444
|
+
const histogramLabeledHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
25303
25445
|
thumb: true,
|
|
25304
25446
|
"thumb--value": true,
|
|
25305
25447
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
|
25306
25448
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: "handle__label handle__label--value" }, value ? value.toLocaleString() : value), hAsync("span", { "aria-hidden": "true", class: "handle__label handle__label--value static" }, value ? value.toLocaleString() : value), hAsync("span", { "aria-hidden": "true", class: "handle__label handle__label--value transformed" }, value ? value.toLocaleString() : value)));
|
|
25307
|
-
const preciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label":
|
|
25449
|
+
const preciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
25308
25450
|
thumb: true,
|
|
25309
25451
|
"thumb--value": true,
|
|
25310
25452
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
25311
25453
|
"thumb--precise": true
|
|
25312
25454
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle" }), hAsync("div", { class: "handle-extension" })));
|
|
25313
|
-
const histogramPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label":
|
|
25455
|
+
const histogramPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
25314
25456
|
thumb: true,
|
|
25315
25457
|
"thumb--value": true,
|
|
25316
25458
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
25317
25459
|
"thumb--precise": true
|
|
25318
25460
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" })));
|
|
25319
|
-
const labeledPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label":
|
|
25461
|
+
const labeledPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
25320
25462
|
thumb: true,
|
|
25321
25463
|
"thumb--value": true,
|
|
25322
25464
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
25323
25465
|
"thumb--precise": true
|
|
25324
25466
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("span", { "aria-hidden": "true", class: "handle__label handle__label--value" }, value ? value.toLocaleString() : value), hAsync("span", { "aria-hidden": "true", class: "handle__label handle__label--value static" }, value ? value.toLocaleString() : value), hAsync("span", { "aria-hidden": "true", class: "handle__label handle__label--value transformed" }, value ? value.toLocaleString() : value), hAsync("div", { class: "handle" }), hAsync("div", { class: "handle-extension" })));
|
|
25325
|
-
const histogramLabeledPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label":
|
|
25467
|
+
const histogramLabeledPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
25326
25468
|
thumb: true,
|
|
25327
25469
|
"thumb--value": true,
|
|
25328
25470
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
@@ -25357,14 +25499,14 @@ class Slider {
|
|
|
25357
25499
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: () => this.dragStart("minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: "handle__label handle__label--minValue" }, this.minValue && this.minValue.toLocaleString()), hAsync("span", { "aria-hidden": "true", class: "handle__label handle__label--minValue static" }, this.minValue && this.minValue.toLocaleString()), hAsync("span", { "aria-hidden": "true", class: "handle__label handle__label--minValue transformed" }, this.minValue && this.minValue.toLocaleString())));
|
|
25358
25500
|
return (hAsync(Host, { id: id, onTouchStart: this.handleTouchStart }, hAsync("div", { class: {
|
|
25359
25501
|
["container"]: true,
|
|
25360
|
-
["container--range"]:
|
|
25502
|
+
["container--range"]: valueIsRange,
|
|
25361
25503
|
[`scale--${this.scale}`]: true
|
|
25362
25504
|
} }, this.renderGraph(), hAsync("div", { class: "track", ref: this.storeTrackRef }, hAsync("div", { class: "track__range", onPointerDown: () => this.dragStart("minMaxValue"), style: {
|
|
25363
25505
|
left: `${mirror ? 100 - maxInterval : minInterval}%`,
|
|
25364
25506
|
right: `${mirror ? minInterval : 100 - maxInterval}%`
|
|
25365
25507
|
} }), hAsync("div", { class: "ticks" }, this.tickValues.map((tick) => {
|
|
25366
25508
|
const tickOffset = `${this.getUnitInterval(tick) * 100}%`;
|
|
25367
|
-
let activeTicks = tick >= min && tick <=
|
|
25509
|
+
let activeTicks = tick >= min && tick <= value;
|
|
25368
25510
|
if (useMinValue) {
|
|
25369
25511
|
activeTicks = tick >= this.minValue && tick <= this.maxValue;
|
|
25370
25512
|
}
|
|
@@ -25375,23 +25517,24 @@ class Slider {
|
|
|
25375
25517
|
left: mirror ? "" : tickOffset,
|
|
25376
25518
|
right: mirror ? tickOffset : ""
|
|
25377
25519
|
} }, this.renderTickLabel(tick)));
|
|
25378
|
-
}))), hAsync("div", { class: "thumb-container" }, !this.precise && !this.labelHandles &&
|
|
25520
|
+
}))), hAsync("div", { class: "thumb-container" }, !this.precise && !this.labelHandles && valueIsRange && minHandle, !this.hasHistogram &&
|
|
25379
25521
|
!this.precise &&
|
|
25380
25522
|
this.labelHandles &&
|
|
25381
|
-
|
|
25382
|
-
minLabeledHandle, this.precise && !this.labelHandles &&
|
|
25523
|
+
valueIsRange &&
|
|
25524
|
+
minLabeledHandle, this.precise && !this.labelHandles && valueIsRange && minPreciseHandle, this.precise && this.labelHandles && valueIsRange && minLabeledPreciseHandle, this.hasHistogram &&
|
|
25383
25525
|
!this.precise &&
|
|
25384
25526
|
this.labelHandles &&
|
|
25385
|
-
|
|
25527
|
+
valueIsRange &&
|
|
25386
25528
|
minHistogramLabeledHandle, !this.precise && !this.labelHandles && handle, !this.hasHistogram && !this.precise && this.labelHandles && labeledHandle, !this.hasHistogram && this.precise && !this.labelHandles && preciseHandle, this.hasHistogram && this.precise && !this.labelHandles && histogramPreciseHandle, !this.hasHistogram && this.precise && this.labelHandles && labeledPreciseHandle, this.hasHistogram && !this.precise && this.labelHandles && histogramLabeledHandle, this.hasHistogram &&
|
|
25387
25529
|
this.precise &&
|
|
25388
25530
|
this.labelHandles &&
|
|
25389
25531
|
histogramLabeledPreciseHandle, hAsync(HiddenFormInputSlot, { component: this })))));
|
|
25390
25532
|
}
|
|
25391
25533
|
renderGraph() {
|
|
25392
|
-
return this.histogram ? (hAsync("calcite-graph", { class: "graph", colorStops: this.histogramStops, data: this.histogram, highlightMax: this.
|
|
25534
|
+
return this.histogram ? (hAsync("calcite-graph", { class: "graph", colorStops: this.histogramStops, data: this.histogram, highlightMax: isRange(this.value) ? this.maxValue : this.value, highlightMin: isRange(this.value) ? this.minValue : this.min, max: this.max, min: this.min })) : null;
|
|
25393
25535
|
}
|
|
25394
25536
|
renderTickLabel(tick) {
|
|
25537
|
+
const valueIsRange = isRange(this.value);
|
|
25395
25538
|
const isMinTickLabel = tick === this.min;
|
|
25396
25539
|
const isMaxTickLabel = tick === this.max;
|
|
25397
25540
|
const tickLabel = (hAsync("span", { class: {
|
|
@@ -25399,26 +25542,26 @@ class Slider {
|
|
|
25399
25542
|
"tick__label--min": isMinTickLabel,
|
|
25400
25543
|
"tick__label--max": isMaxTickLabel
|
|
25401
25544
|
} }, tick.toLocaleString()));
|
|
25402
|
-
if (this.labelTicks && !this.hasHistogram && !
|
|
25545
|
+
if (this.labelTicks && !this.hasHistogram && !valueIsRange) {
|
|
25403
25546
|
return tickLabel;
|
|
25404
25547
|
}
|
|
25405
25548
|
if (this.labelTicks &&
|
|
25406
25549
|
!this.hasHistogram &&
|
|
25407
|
-
|
|
25550
|
+
valueIsRange &&
|
|
25408
25551
|
!this.precise &&
|
|
25409
25552
|
!this.labelHandles) {
|
|
25410
25553
|
return tickLabel;
|
|
25411
25554
|
}
|
|
25412
25555
|
if (this.labelTicks &&
|
|
25413
25556
|
!this.hasHistogram &&
|
|
25414
|
-
|
|
25557
|
+
valueIsRange &&
|
|
25415
25558
|
!this.precise &&
|
|
25416
25559
|
this.labelHandles) {
|
|
25417
25560
|
return tickLabel;
|
|
25418
25561
|
}
|
|
25419
25562
|
if (this.labelTicks &&
|
|
25420
25563
|
!this.hasHistogram &&
|
|
25421
|
-
|
|
25564
|
+
valueIsRange &&
|
|
25422
25565
|
this.precise &&
|
|
25423
25566
|
(isMinTickLabel || isMaxTickLabel)) {
|
|
25424
25567
|
return tickLabel;
|
|
@@ -25502,7 +25645,7 @@ class Slider {
|
|
|
25502
25645
|
const x = event.clientX || event.pageX;
|
|
25503
25646
|
const position = this.translate(x);
|
|
25504
25647
|
let prop = "value";
|
|
25505
|
-
if (this.
|
|
25648
|
+
if (isRange(this.value)) {
|
|
25506
25649
|
const inRange = position >= this.minValue && position <= this.maxValue;
|
|
25507
25650
|
if (inRange && this.lastDragProp === "minMaxValue") {
|
|
25508
25651
|
prop = "minMaxValue";
|
|
@@ -25538,6 +25681,19 @@ class Slider {
|
|
|
25538
25681
|
// Private Methods
|
|
25539
25682
|
//
|
|
25540
25683
|
//--------------------------------------------------------------------------
|
|
25684
|
+
setValueFromMinMax() {
|
|
25685
|
+
const { minValue, maxValue } = this;
|
|
25686
|
+
if (typeof minValue === "number" && typeof maxValue === "number") {
|
|
25687
|
+
this.value = [minValue, maxValue];
|
|
25688
|
+
}
|
|
25689
|
+
}
|
|
25690
|
+
setMinMaxFromValue() {
|
|
25691
|
+
const { value } = this;
|
|
25692
|
+
if (isRange(value)) {
|
|
25693
|
+
this.minValue = value[0];
|
|
25694
|
+
this.maxValue = value[1];
|
|
25695
|
+
}
|
|
25696
|
+
}
|
|
25541
25697
|
onLabelClick() {
|
|
25542
25698
|
this.setFocus();
|
|
25543
25699
|
}
|
|
@@ -25545,7 +25701,7 @@ class Slider {
|
|
|
25545
25701
|
return this.mirrored && !this.hasHistogram;
|
|
25546
25702
|
}
|
|
25547
25703
|
shouldUseMinValue() {
|
|
25548
|
-
if (!this.
|
|
25704
|
+
if (!isRange(this.value)) {
|
|
25549
25705
|
return false;
|
|
25550
25706
|
}
|
|
25551
25707
|
return ((this.hasHistogram && this.maxValue === 0) || (!this.hasHistogram && this.minValue === 0));
|
|
@@ -25758,19 +25914,20 @@ class Slider {
|
|
|
25758
25914
|
* Hides bounding tick labels that are obscured by either handle.
|
|
25759
25915
|
*/
|
|
25760
25916
|
hideObscuredBoundingTickLabels() {
|
|
25761
|
-
|
|
25917
|
+
const valueIsRange = isRange(this.value);
|
|
25918
|
+
if (!this.hasHistogram && !valueIsRange && !this.labelHandles && !this.precise) {
|
|
25762
25919
|
return;
|
|
25763
25920
|
}
|
|
25764
|
-
if (!this.hasHistogram && !
|
|
25921
|
+
if (!this.hasHistogram && !valueIsRange && this.labelHandles && !this.precise) {
|
|
25765
25922
|
return;
|
|
25766
25923
|
}
|
|
25767
|
-
if (!this.hasHistogram && !
|
|
25924
|
+
if (!this.hasHistogram && !valueIsRange && !this.labelHandles && this.precise) {
|
|
25768
25925
|
return;
|
|
25769
25926
|
}
|
|
25770
|
-
if (!this.hasHistogram && !
|
|
25927
|
+
if (!this.hasHistogram && !valueIsRange && this.labelHandles && this.precise) {
|
|
25771
25928
|
return;
|
|
25772
25929
|
}
|
|
25773
|
-
if (!this.hasHistogram &&
|
|
25930
|
+
if (!this.hasHistogram && valueIsRange && !this.precise) {
|
|
25774
25931
|
return;
|
|
25775
25932
|
}
|
|
25776
25933
|
if (this.hasHistogram && !this.precise && !this.labelHandles) {
|
|
@@ -25847,7 +26004,10 @@ class Slider {
|
|
|
25847
26004
|
}
|
|
25848
26005
|
get el() { return getElement(this); }
|
|
25849
26006
|
static get watchers() { return {
|
|
25850
|
-
"histogram": ["histogramWatcher"]
|
|
26007
|
+
"histogram": ["histogramWatcher"],
|
|
26008
|
+
"value": ["valueHandler"],
|
|
26009
|
+
"minValue": ["minMaxValueHandler"],
|
|
26010
|
+
"maxValue": ["minMaxValueHandler"]
|
|
25851
26011
|
}; }
|
|
25852
26012
|
static get style() { return sliderCss; }
|
|
25853
26013
|
static get cmpMeta() { return {
|
|
@@ -25890,7 +26050,7 @@ class Slider {
|
|
|
25890
26050
|
}
|
|
25891
26051
|
|
|
25892
26052
|
/**!
|
|
25893
|
-
* Sortable 1.
|
|
26053
|
+
* Sortable 1.15.0
|
|
25894
26054
|
* @author RubaXa <trash@rubaxa.org>
|
|
25895
26055
|
* @author owenm <owen23355@gmail.com>
|
|
25896
26056
|
* @license MIT
|
|
@@ -26018,7 +26178,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
26018
26178
|
return target;
|
|
26019
26179
|
}
|
|
26020
26180
|
|
|
26021
|
-
var version = "1.
|
|
26181
|
+
var version = "1.15.0";
|
|
26022
26182
|
|
|
26023
26183
|
function userAgent(pattern) {
|
|
26024
26184
|
if (typeof window !== 'undefined' && window.navigator) {
|
|
@@ -26939,11 +27099,11 @@ supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in
|
|
|
26939
27099
|
return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
|
|
26940
27100
|
},
|
|
26941
27101
|
|
|
26942
|
-
/**
|
|
26943
|
-
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
|
26944
|
-
* @param {Number} x X position
|
|
26945
|
-
* @param {Number} y Y position
|
|
26946
|
-
* @return {HTMLElement} Element of the first found nearest Sortable
|
|
27102
|
+
/**
|
|
27103
|
+
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
|
27104
|
+
* @param {Number} x X position
|
|
27105
|
+
* @param {Number} y Y position
|
|
27106
|
+
* @return {HTMLElement} Element of the first found nearest Sortable
|
|
26947
27107
|
*/
|
|
26948
27108
|
_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
|
26949
27109
|
var ret;
|
|
@@ -27009,7 +27169,7 @@ _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
|
|
27009
27169
|
}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position
|
|
27010
27170
|
|
|
27011
27171
|
|
|
27012
|
-
if (documentExists) {
|
|
27172
|
+
if (documentExists && !ChromeForAndroid) {
|
|
27013
27173
|
document.addEventListener('click', function (evt) {
|
|
27014
27174
|
if (ignoreNextClick) {
|
|
27015
27175
|
evt.preventDefault();
|
|
@@ -27051,10 +27211,10 @@ var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
|
|
|
27051
27211
|
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
|
27052
27212
|
}
|
|
27053
27213
|
};
|
|
27054
|
-
/**
|
|
27055
|
-
* @class Sortable
|
|
27056
|
-
* @param {HTMLElement} el
|
|
27057
|
-
* @param {Object} [options]
|
|
27214
|
+
/**
|
|
27215
|
+
* @class Sortable
|
|
27216
|
+
* @param {HTMLElement} el
|
|
27217
|
+
* @param {Object} [options]
|
|
27058
27218
|
*/
|
|
27059
27219
|
|
|
27060
27220
|
|
|
@@ -27628,6 +27788,7 @@ Sortable.prototype =
|
|
|
27628
27788
|
|
|
27629
27789
|
if (!Sortable.eventCanceled) {
|
|
27630
27790
|
cloneEl = clone(dragEl);
|
|
27791
|
+
cloneEl.removeAttribute("id");
|
|
27631
27792
|
cloneEl.draggable = false;
|
|
27632
27793
|
cloneEl.style['will-change'] = '';
|
|
27633
27794
|
|
|
@@ -27869,7 +28030,14 @@ Sortable.prototype =
|
|
|
27869
28030
|
|
|
27870
28031
|
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
|
|
27871
28032
|
capture();
|
|
27872
|
-
|
|
28033
|
+
|
|
28034
|
+
if (elLastChild && elLastChild.nextSibling) {
|
|
28035
|
+
// the last draggable element is not the last node
|
|
28036
|
+
el.insertBefore(dragEl, elLastChild.nextSibling);
|
|
28037
|
+
} else {
|
|
28038
|
+
el.appendChild(dragEl);
|
|
28039
|
+
}
|
|
28040
|
+
|
|
27873
28041
|
parentEl = el; // actualization
|
|
27874
28042
|
|
|
27875
28043
|
changed();
|
|
@@ -28192,9 +28360,9 @@ Sortable.prototype =
|
|
|
28192
28360
|
}
|
|
28193
28361
|
},
|
|
28194
28362
|
|
|
28195
|
-
/**
|
|
28196
|
-
* Serializes the item into an array of string.
|
|
28197
|
-
* @returns {String[]}
|
|
28363
|
+
/**
|
|
28364
|
+
* Serializes the item into an array of string.
|
|
28365
|
+
* @returns {String[]}
|
|
28198
28366
|
*/
|
|
28199
28367
|
toArray: function toArray() {
|
|
28200
28368
|
var order = [],
|
|
@@ -28215,9 +28383,9 @@ Sortable.prototype =
|
|
|
28215
28383
|
return order;
|
|
28216
28384
|
},
|
|
28217
28385
|
|
|
28218
|
-
/**
|
|
28219
|
-
* Sorts the elements according to the array.
|
|
28220
|
-
* @param {String[]} order order of the items
|
|
28386
|
+
/**
|
|
28387
|
+
* Sorts the elements according to the array.
|
|
28388
|
+
* @param {String[]} order order of the items
|
|
28221
28389
|
*/
|
|
28222
28390
|
sort: function sort(order, useAnimation) {
|
|
28223
28391
|
var items = {},
|
|
@@ -28239,29 +28407,29 @@ Sortable.prototype =
|
|
|
28239
28407
|
useAnimation && this.animateAll();
|
|
28240
28408
|
},
|
|
28241
28409
|
|
|
28242
|
-
/**
|
|
28243
|
-
* Save the current sorting
|
|
28410
|
+
/**
|
|
28411
|
+
* Save the current sorting
|
|
28244
28412
|
*/
|
|
28245
28413
|
save: function save() {
|
|
28246
28414
|
var store = this.options.store;
|
|
28247
28415
|
store && store.set && store.set(this);
|
|
28248
28416
|
},
|
|
28249
28417
|
|
|
28250
|
-
/**
|
|
28251
|
-
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
28252
|
-
* @param {HTMLElement} el
|
|
28253
|
-
* @param {String} [selector] default: `options.draggable`
|
|
28254
|
-
* @returns {HTMLElement|null}
|
|
28418
|
+
/**
|
|
28419
|
+
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
28420
|
+
* @param {HTMLElement} el
|
|
28421
|
+
* @param {String} [selector] default: `options.draggable`
|
|
28422
|
+
* @returns {HTMLElement|null}
|
|
28255
28423
|
*/
|
|
28256
28424
|
closest: function closest$1(el, selector) {
|
|
28257
28425
|
return closest(el, selector || this.options.draggable, this.el, false);
|
|
28258
28426
|
},
|
|
28259
28427
|
|
|
28260
|
-
/**
|
|
28261
|
-
* Set/get option
|
|
28262
|
-
* @param {string} name
|
|
28263
|
-
* @param {*} [value]
|
|
28264
|
-
* @returns {*}
|
|
28428
|
+
/**
|
|
28429
|
+
* Set/get option
|
|
28430
|
+
* @param {string} name
|
|
28431
|
+
* @param {*} [value]
|
|
28432
|
+
* @returns {*}
|
|
28265
28433
|
*/
|
|
28266
28434
|
option: function option(name, value) {
|
|
28267
28435
|
var options = this.options;
|
|
@@ -28283,8 +28451,8 @@ Sortable.prototype =
|
|
|
28283
28451
|
}
|
|
28284
28452
|
},
|
|
28285
28453
|
|
|
28286
|
-
/**
|
|
28287
|
-
* Destroy
|
|
28454
|
+
/**
|
|
28455
|
+
* Destroy
|
|
28288
28456
|
*/
|
|
28289
28457
|
destroy: function destroy() {
|
|
28290
28458
|
pluginEvent('destroy', this);
|
|
@@ -28461,11 +28629,11 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
|
|
|
28461
28629
|
|
|
28462
28630
|
return 0;
|
|
28463
28631
|
}
|
|
28464
|
-
/**
|
|
28465
|
-
* Gets the direction dragEl must be swapped relative to target in order to make it
|
|
28466
|
-
* seem that dragEl has been "inserted" into that element's position
|
|
28467
|
-
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
|
28468
|
-
* @return {Number} Direction dragEl must be swapped
|
|
28632
|
+
/**
|
|
28633
|
+
* Gets the direction dragEl must be swapped relative to target in order to make it
|
|
28634
|
+
* seem that dragEl has been "inserted" into that element's position
|
|
28635
|
+
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
|
28636
|
+
* @return {Number} Direction dragEl must be swapped
|
|
28469
28637
|
*/
|
|
28470
28638
|
|
|
28471
28639
|
|
|
@@ -28476,11 +28644,11 @@ function _getInsertDirection(target) {
|
|
|
28476
28644
|
return -1;
|
|
28477
28645
|
}
|
|
28478
28646
|
}
|
|
28479
|
-
/**
|
|
28480
|
-
* Generate id
|
|
28481
|
-
* @param {HTMLElement} el
|
|
28482
|
-
* @returns {String}
|
|
28483
|
-
* @private
|
|
28647
|
+
/**
|
|
28648
|
+
* Generate id
|
|
28649
|
+
* @param {HTMLElement} el
|
|
28650
|
+
* @returns {String}
|
|
28651
|
+
* @private
|
|
28484
28652
|
*/
|
|
28485
28653
|
|
|
28486
28654
|
|
|
@@ -28544,18 +28712,18 @@ Sortable.utils = {
|
|
|
28544
28712
|
detectDirection: _detectDirection,
|
|
28545
28713
|
getChild: getChild
|
|
28546
28714
|
};
|
|
28547
|
-
/**
|
|
28548
|
-
* Get the Sortable instance of an element
|
|
28549
|
-
* @param {HTMLElement} element The element
|
|
28550
|
-
* @return {Sortable|undefined} The instance of Sortable
|
|
28715
|
+
/**
|
|
28716
|
+
* Get the Sortable instance of an element
|
|
28717
|
+
* @param {HTMLElement} element The element
|
|
28718
|
+
* @return {Sortable|undefined} The instance of Sortable
|
|
28551
28719
|
*/
|
|
28552
28720
|
|
|
28553
28721
|
Sortable.get = function (element) {
|
|
28554
28722
|
return element[expando];
|
|
28555
28723
|
};
|
|
28556
|
-
/**
|
|
28557
|
-
* Mount a plugin to Sortable
|
|
28558
|
-
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
|
28724
|
+
/**
|
|
28725
|
+
* Mount a plugin to Sortable
|
|
28726
|
+
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
|
28559
28727
|
*/
|
|
28560
28728
|
|
|
28561
28729
|
|
|
@@ -28574,10 +28742,10 @@ Sortable.mount = function () {
|
|
|
28574
28742
|
PluginManager.mount(plugin);
|
|
28575
28743
|
});
|
|
28576
28744
|
};
|
|
28577
|
-
/**
|
|
28578
|
-
* Create sortable instance
|
|
28579
|
-
* @param {HTMLElement} el
|
|
28580
|
-
* @param {Object} [options]
|
|
28745
|
+
/**
|
|
28746
|
+
* Create sortable instance
|
|
28747
|
+
* @param {HTMLElement} el
|
|
28748
|
+
* @param {Object} [options]
|
|
28581
28749
|
*/
|
|
28582
28750
|
|
|
28583
28751
|
|
|
@@ -29516,7 +29684,8 @@ class StepperItem {
|
|
|
29516
29684
|
}
|
|
29517
29685
|
}
|
|
29518
29686
|
updateActiveItemOnChange(event) {
|
|
29519
|
-
if (event.target === this.parentStepperEl
|
|
29687
|
+
if (event.target === this.parentStepperEl ||
|
|
29688
|
+
event.composedPath().includes(this.parentStepperEl)) {
|
|
29520
29689
|
this.activePosition = event.detail.position;
|
|
29521
29690
|
this.determineActiveItem();
|
|
29522
29691
|
}
|
|
@@ -29621,6 +29790,7 @@ class Switch {
|
|
|
29621
29790
|
const key = e.key;
|
|
29622
29791
|
if (!this.disabled && (key === " " || key === "Enter")) {
|
|
29623
29792
|
this.toggle();
|
|
29793
|
+
e.preventDefault();
|
|
29624
29794
|
}
|
|
29625
29795
|
};
|
|
29626
29796
|
this.clickHandler = () => {
|
|
@@ -29683,7 +29853,7 @@ class Switch {
|
|
|
29683
29853
|
//
|
|
29684
29854
|
// --------------------------------------------------------------------------
|
|
29685
29855
|
render() {
|
|
29686
|
-
return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: "container",
|
|
29856
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: "container", ref: this.setSwitchEl, role: "switch", tabIndex: 0 }, hAsync("div", { class: "track" }, hAsync("div", { class: "handle" })), hAsync(HiddenFormInputSlot, { component: this }))));
|
|
29687
29857
|
}
|
|
29688
29858
|
get el() { return getElement(this); }
|
|
29689
29859
|
static get watchers() { return {
|
|
@@ -29724,14 +29894,6 @@ class Tab {
|
|
|
29724
29894
|
this.active = false;
|
|
29725
29895
|
/** @internal Parent tabs component scale value */
|
|
29726
29896
|
this.scale = "m";
|
|
29727
|
-
//--------------------------------------------------------------------------
|
|
29728
|
-
//
|
|
29729
|
-
// Private State/Props
|
|
29730
|
-
//
|
|
29731
|
-
//--------------------------------------------------------------------------
|
|
29732
|
-
/**
|
|
29733
|
-
* @internal
|
|
29734
|
-
*/
|
|
29735
29897
|
this.guid = `calcite-tab-title-${guid()}`;
|
|
29736
29898
|
}
|
|
29737
29899
|
//--------------------------------------------------------------------------
|
|
@@ -29743,12 +29905,15 @@ class Tab {
|
|
|
29743
29905
|
const id = this.el.id || this.guid;
|
|
29744
29906
|
return (hAsync(Host, { "aria-expanded": this.active.toString(), "aria-labelledby": this.labeledBy, id: id, role: "tabpanel" }, hAsync("section", null, hAsync("slot", null))));
|
|
29745
29907
|
}
|
|
29908
|
+
connectedCallback() {
|
|
29909
|
+
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
29910
|
+
}
|
|
29746
29911
|
componentDidLoad() {
|
|
29747
29912
|
this.calciteTabRegister.emit();
|
|
29748
29913
|
}
|
|
29749
29914
|
componentWillRender() {
|
|
29750
29915
|
var _a;
|
|
29751
|
-
this.scale = (_a = this.
|
|
29916
|
+
this.scale = (_a = this.parentTabsEl) === null || _a === void 0 ? void 0 : _a.scale;
|
|
29752
29917
|
}
|
|
29753
29918
|
disconnectedCallback() {
|
|
29754
29919
|
var _a;
|
|
@@ -29762,11 +29927,14 @@ class Tab {
|
|
|
29762
29927
|
// Event Listeners
|
|
29763
29928
|
//
|
|
29764
29929
|
//--------------------------------------------------------------------------
|
|
29765
|
-
|
|
29930
|
+
internalTabChangeHandler(event) {
|
|
29931
|
+
const targetTabsEl = event
|
|
29932
|
+
.composedPath()
|
|
29933
|
+
.find((el) => el.tagName === "CALCITE-TABS");
|
|
29766
29934
|
// to allow `<calcite-tabs>` to be nested we need to make sure this
|
|
29767
|
-
// `calciteTabChange` event was actually fired from a
|
|
29768
|
-
//
|
|
29769
|
-
if (
|
|
29935
|
+
// `calciteTabChange` event was actually fired from a within the same
|
|
29936
|
+
// `<calcite-tabs>` that is the a parent of this tab.
|
|
29937
|
+
if (targetTabsEl !== this.parentTabsEl) {
|
|
29770
29938
|
return;
|
|
29771
29939
|
}
|
|
29772
29940
|
if (this.tab) {
|
|
@@ -29813,7 +29981,7 @@ class Tab {
|
|
|
29813
29981
|
"getTabIndex": [64],
|
|
29814
29982
|
"updateAriaInfo": [64]
|
|
29815
29983
|
},
|
|
29816
|
-
"$listeners$": [[16, "
|
|
29984
|
+
"$listeners$": [[16, "calciteInternalTabChange", "internalTabChangeHandler"]],
|
|
29817
29985
|
"$lazyBundleId$": "-",
|
|
29818
29986
|
"$attrsToReflect$": [["tab", "tab"], ["active", "active"], ["scale", "scale"]]
|
|
29819
29987
|
}; }
|
|
@@ -29828,6 +29996,7 @@ class TabNav {
|
|
|
29828
29996
|
constructor(hostRef) {
|
|
29829
29997
|
registerInstance(this, hostRef);
|
|
29830
29998
|
this.calciteTabChange = createEvent(this, "calciteTabChange", 7);
|
|
29999
|
+
this.calciteInternalTabChange = createEvent(this, "calciteInternalTabChange", 7);
|
|
29831
30000
|
/** @internal Parent tabs component scale value */
|
|
29832
30001
|
this.scale = "m";
|
|
29833
30002
|
/** @internal Parent tabs component layout value */
|
|
@@ -29837,6 +30006,7 @@ class TabNav {
|
|
|
29837
30006
|
/** @internal Parent tabs component bordered value when layout is "inline" */
|
|
29838
30007
|
this.bordered = false;
|
|
29839
30008
|
this.animationActiveDuration = 0.3;
|
|
30009
|
+
this.resizeObserver = createObserver();
|
|
29840
30010
|
//--------------------------------------------------------------------------
|
|
29841
30011
|
//
|
|
29842
30012
|
// Private Methods
|
|
@@ -29855,7 +30025,7 @@ class TabNav {
|
|
|
29855
30025
|
this.selectedTab !== null) {
|
|
29856
30026
|
localStorage.setItem(`calcite-tab-nav-${this.storageId}`, JSON.stringify(this.selectedTab));
|
|
29857
30027
|
}
|
|
29858
|
-
this.
|
|
30028
|
+
this.calciteInternalTabChange.emit({
|
|
29859
30029
|
tab: this.selectedTab
|
|
29860
30030
|
});
|
|
29861
30031
|
this.selectedTabEl = await this.getTabTitleById(this.selectedTab);
|
|
@@ -29871,22 +30041,28 @@ class TabNav {
|
|
|
29871
30041
|
// Lifecycle
|
|
29872
30042
|
//
|
|
29873
30043
|
//--------------------------------------------------------------------------
|
|
30044
|
+
connectedCallback() {
|
|
30045
|
+
var _a;
|
|
30046
|
+
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
30047
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
|
|
30048
|
+
}
|
|
30049
|
+
disconnectedCallback() {
|
|
30050
|
+
var _a;
|
|
30051
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
30052
|
+
}
|
|
29874
30053
|
componentWillLoad() {
|
|
29875
30054
|
const storageKey = `calcite-tab-nav-${this.storageId}`;
|
|
29876
30055
|
if (localStorage && this.storageId && localStorage.getItem(storageKey)) {
|
|
29877
30056
|
const storedTab = JSON.parse(localStorage.getItem(storageKey));
|
|
29878
30057
|
this.selectedTab = storedTab;
|
|
29879
|
-
this.calciteTabChange.emit({
|
|
29880
|
-
tab: this.selectedTab
|
|
29881
|
-
});
|
|
29882
30058
|
}
|
|
29883
30059
|
}
|
|
29884
30060
|
componentWillRender() {
|
|
29885
|
-
|
|
29886
|
-
this.layout =
|
|
29887
|
-
this.position =
|
|
29888
|
-
this.scale =
|
|
29889
|
-
this.bordered =
|
|
30061
|
+
const { parentTabsEl } = this;
|
|
30062
|
+
this.layout = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.layout;
|
|
30063
|
+
this.position = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.position;
|
|
30064
|
+
this.scale = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.scale;
|
|
30065
|
+
this.bordered = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.bordered;
|
|
29890
30066
|
// fix issue with active tab-title not lining up with blue indicator
|
|
29891
30067
|
if (this.selectedTabEl) {
|
|
29892
30068
|
this.updateOffsetPosition();
|
|
@@ -29898,7 +30074,7 @@ class TabNav {
|
|
|
29898
30074
|
this.tabTitles.every((title) => !title.active) &&
|
|
29899
30075
|
!this.selectedTab) {
|
|
29900
30076
|
this.tabTitles[0].getTabIdentifier().then((tab) => {
|
|
29901
|
-
this.
|
|
30077
|
+
this.calciteInternalTabChange.emit({
|
|
29902
30078
|
tab
|
|
29903
30079
|
});
|
|
29904
30080
|
});
|
|
@@ -29916,12 +30092,6 @@ class TabNav {
|
|
|
29916
30092
|
// Event Listeners
|
|
29917
30093
|
//
|
|
29918
30094
|
//--------------------------------------------------------------------------
|
|
29919
|
-
resizeHandler() {
|
|
29920
|
-
// remove active indicator transition duration during resize to prevent wobble
|
|
29921
|
-
this.activeIndicatorEl.style.transitionDuration = "0s";
|
|
29922
|
-
this.updateActiveWidth();
|
|
29923
|
-
this.updateOffsetPosition();
|
|
29924
|
-
}
|
|
29925
30095
|
focusPreviousTabHandler(e) {
|
|
29926
30096
|
const currentIndex = this.getIndexOfTabTitle(e.target, this.enabledTabTitles);
|
|
29927
30097
|
const previousTab = this.enabledTabTitles[currentIndex - 1] ||
|
|
@@ -29937,13 +30107,20 @@ class TabNav {
|
|
|
29937
30107
|
e.stopPropagation();
|
|
29938
30108
|
e.preventDefault();
|
|
29939
30109
|
}
|
|
29940
|
-
|
|
30110
|
+
internalActivateTabHandler(e) {
|
|
29941
30111
|
this.selectedTab = e.detail.tab
|
|
29942
30112
|
? e.detail.tab
|
|
29943
30113
|
: this.getIndexOfTabTitle(e.target);
|
|
29944
30114
|
e.stopPropagation();
|
|
29945
30115
|
e.preventDefault();
|
|
29946
30116
|
}
|
|
30117
|
+
activateTabHandler(e) {
|
|
30118
|
+
this.calciteTabChange.emit({
|
|
30119
|
+
tab: this.selectedTab
|
|
30120
|
+
});
|
|
30121
|
+
e.stopPropagation();
|
|
30122
|
+
e.preventDefault();
|
|
30123
|
+
}
|
|
29947
30124
|
/**
|
|
29948
30125
|
* Check for active tabs on register and update selected
|
|
29949
30126
|
*/
|
|
@@ -29952,12 +30129,13 @@ class TabNav {
|
|
|
29952
30129
|
this.selectedTab = e.detail;
|
|
29953
30130
|
}
|
|
29954
30131
|
}
|
|
29955
|
-
|
|
30132
|
+
globalInternalTabChangeHandler(e) {
|
|
29956
30133
|
if (this.syncId &&
|
|
29957
30134
|
e.target !== this.el &&
|
|
29958
30135
|
e.target.syncId === this.syncId &&
|
|
29959
30136
|
this.selectedTab !== e.detail.tab) {
|
|
29960
30137
|
this.selectedTab = e.detail.tab;
|
|
30138
|
+
e.stopPropagation();
|
|
29961
30139
|
}
|
|
29962
30140
|
}
|
|
29963
30141
|
updateOffsetPosition() {
|
|
@@ -30011,7 +30189,7 @@ class TabNav {
|
|
|
30011
30189
|
"selectedTab": [32],
|
|
30012
30190
|
"selectedTabEl": [32]
|
|
30013
30191
|
},
|
|
30014
|
-
"$listeners$": [[
|
|
30192
|
+
"$listeners$": [[0, "calciteTabsFocusPrevious", "focusPreviousTabHandler"], [0, "calciteTabsFocusNext", "focusNextTabHandler"], [0, "calciteInternalTabsActivate", "internalActivateTabHandler"], [0, "calciteTabsActivate", "activateTabHandler"], [0, "calciteTabTitleRegister", "updateTabTitles"], [16, "calciteInternalTabChange", "globalInternalTabChangeHandler"]],
|
|
30015
30193
|
"$lazyBundleId$": "-",
|
|
30016
30194
|
"$attrsToReflect$": [["scale", "scale"], ["layout", "layout"], ["position", "position"], ["bordered", "bordered"]]
|
|
30017
30195
|
}; }
|
|
@@ -30026,6 +30204,7 @@ class TabTitle {
|
|
|
30026
30204
|
constructor(hostRef) {
|
|
30027
30205
|
registerInstance(this, hostRef);
|
|
30028
30206
|
this.calciteTabsActivate = createEvent(this, "calciteTabsActivate", 7);
|
|
30207
|
+
this.calciteInternalTabsActivate = createEvent(this, "calciteInternalTabsActivate", 7);
|
|
30029
30208
|
this.calciteTabsFocusNext = createEvent(this, "calciteTabsFocusNext", 7);
|
|
30030
30209
|
this.calciteTabsFocusPrevious = createEvent(this, "calciteTabsFocusPrevious", 7);
|
|
30031
30210
|
this.calciteTabTitleRegister = createEvent(this, "calciteTabTitleRegister", 7);
|
|
@@ -30049,14 +30228,11 @@ class TabTitle {
|
|
|
30049
30228
|
this.mutationObserver = createObserver();
|
|
30050
30229
|
/** determine if there is slotted text for styling purposes */
|
|
30051
30230
|
this.hasText = false;
|
|
30052
|
-
/**
|
|
30053
|
-
* @internal
|
|
30054
|
-
*/
|
|
30055
30231
|
this.guid = `calcite-tab-title-${guid()}`;
|
|
30056
30232
|
}
|
|
30057
30233
|
activeTabChanged() {
|
|
30058
30234
|
if (this.active) {
|
|
30059
|
-
this.emitActiveTab();
|
|
30235
|
+
this.emitActiveTab(false);
|
|
30060
30236
|
}
|
|
30061
30237
|
}
|
|
30062
30238
|
//--------------------------------------------------------------------------
|
|
@@ -30079,7 +30255,7 @@ class TabTitle {
|
|
|
30079
30255
|
}
|
|
30080
30256
|
componentWillLoad() {
|
|
30081
30257
|
if (this.tab && this.active) {
|
|
30082
|
-
this.emitActiveTab();
|
|
30258
|
+
this.emitActiveTab(false);
|
|
30083
30259
|
}
|
|
30084
30260
|
}
|
|
30085
30261
|
componentWillRender() {
|
|
@@ -30116,17 +30292,22 @@ class TabTitle {
|
|
|
30116
30292
|
// Event Listeners
|
|
30117
30293
|
//
|
|
30118
30294
|
//--------------------------------------------------------------------------
|
|
30119
|
-
|
|
30120
|
-
|
|
30121
|
-
|
|
30122
|
-
|
|
30123
|
-
|
|
30124
|
-
|
|
30125
|
-
|
|
30126
|
-
|
|
30127
|
-
|
|
30128
|
-
|
|
30295
|
+
internalTabChangeHandler(event) {
|
|
30296
|
+
const targetTabsEl = event
|
|
30297
|
+
.composedPath()
|
|
30298
|
+
.find((el) => el.tagName === "CALCITE-TABS");
|
|
30299
|
+
if (targetTabsEl !== this.parentTabsEl) {
|
|
30300
|
+
return;
|
|
30301
|
+
}
|
|
30302
|
+
if (this.tab) {
|
|
30303
|
+
this.active = this.tab === event.detail.tab;
|
|
30304
|
+
}
|
|
30305
|
+
else {
|
|
30306
|
+
this.getTabIndex().then((index) => {
|
|
30307
|
+
this.active = index === event.detail.tab;
|
|
30308
|
+
});
|
|
30129
30309
|
}
|
|
30310
|
+
event.stopPropagation();
|
|
30130
30311
|
}
|
|
30131
30312
|
onClick() {
|
|
30132
30313
|
this.emitActiveTab();
|
|
@@ -30186,11 +30367,14 @@ class TabTitle {
|
|
|
30186
30367
|
var _a;
|
|
30187
30368
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
30188
30369
|
}
|
|
30189
|
-
emitActiveTab() {
|
|
30190
|
-
if (
|
|
30191
|
-
|
|
30192
|
-
|
|
30193
|
-
|
|
30370
|
+
emitActiveTab(userTriggered = true) {
|
|
30371
|
+
if (this.disabled) {
|
|
30372
|
+
return;
|
|
30373
|
+
}
|
|
30374
|
+
const payload = { tab: this.tab };
|
|
30375
|
+
this.calciteInternalTabsActivate.emit(payload);
|
|
30376
|
+
if (userTriggered) {
|
|
30377
|
+
this.calciteTabsActivate.emit(payload);
|
|
30194
30378
|
}
|
|
30195
30379
|
}
|
|
30196
30380
|
get el() { return getElement(this); }
|
|
@@ -30218,7 +30402,7 @@ class TabTitle {
|
|
|
30218
30402
|
"getTabIdentifier": [64],
|
|
30219
30403
|
"updateAriaInfo": [64]
|
|
30220
30404
|
},
|
|
30221
|
-
"$listeners$": [[16, "
|
|
30405
|
+
"$listeners$": [[16, "calciteInternalTabChange", "internalTabChangeHandler"], [0, "click", "onClick"], [0, "keydown", "keyDownHandler"]],
|
|
30222
30406
|
"$lazyBundleId$": "-",
|
|
30223
30407
|
"$attrsToReflect$": [["active", "active"], ["disabled", "disabled"], ["iconEnd", "icon-end"], ["iconFlipRtl", "icon-flip-rtl"], ["iconStart", "icon-start"], ["layout", "layout"], ["position", "position"], ["scale", "scale"], ["bordered", "bordered"], ["tab", "tab"]]
|
|
30224
30408
|
}; }
|
|
@@ -30269,14 +30453,12 @@ class Tabs {
|
|
|
30269
30453
|
//
|
|
30270
30454
|
//--------------------------------------------------------------------------
|
|
30271
30455
|
/**
|
|
30272
|
-
* @internal
|
|
30273
30456
|
*
|
|
30274
30457
|
* Stores an array of ids of `<calcite-tab-titles>`s to match up ARIA
|
|
30275
30458
|
* attributes.
|
|
30276
30459
|
*/
|
|
30277
30460
|
this.titles = [];
|
|
30278
30461
|
/**
|
|
30279
|
-
* @internal
|
|
30280
30462
|
*
|
|
30281
30463
|
* Stores an array of ids of `<calcite-tab>`s to match up ARIA attributes.
|
|
30282
30464
|
*/
|
|
@@ -30338,7 +30520,6 @@ class Tabs {
|
|
|
30338
30520
|
//
|
|
30339
30521
|
//--------------------------------------------------------------------------
|
|
30340
30522
|
/**
|
|
30341
|
-
* @internal
|
|
30342
30523
|
*
|
|
30343
30524
|
* Matches up elements from the internal `tabs` and `titles` to automatically
|
|
30344
30525
|
* update the ARIA attributes and link `<calcite-tab>` and
|
|
@@ -30403,7 +30584,7 @@ const SLOTS$3 = {
|
|
|
30403
30584
|
contentEnd: "content-end"
|
|
30404
30585
|
};
|
|
30405
30586
|
|
|
30406
|
-
const tileCss = "@-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*/.sc-calcite-tile: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*/.calcite-animate.sc-calcite-tile{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*/.calcite-animate__in.sc-calcite-tile{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tile{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tile{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tile{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tile:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tile-h{display:none}/*!@:host*/.sc-calcite-tile-h{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .container*/.sc-calcite-tile-h .container.sc-calcite-tile{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}/*!@:host .content*/.sc-calcite-tile-h .content.sc-calcite-tile{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;gap:0.5rem;width:10%}/*!@:host .content-container*/.sc-calcite-tile-h .content-container.sc-calcite-tile{display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;color:var(--calcite-ui-text-2);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@:host .content-slot-container*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1)}/*!@:host .content-slot-container:first-child*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile:first-child{padding-
|
|
30587
|
+
const tileCss = "@-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*/.sc-calcite-tile: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*/.calcite-animate.sc-calcite-tile{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*/.calcite-animate__in.sc-calcite-tile{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tile{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tile{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tile{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tile:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-tile-h{display:none}/*!@:host*/.sc-calcite-tile-h{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .container*/.sc-calcite-tile-h .container.sc-calcite-tile{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}/*!@:host .content*/.sc-calcite-tile-h .content.sc-calcite-tile{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;gap:0.5rem;width:10%}/*!@:host .content-container*/.sc-calcite-tile-h .content-container.sc-calcite-tile{display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;color:var(--calcite-ui-text-2);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@:host .content-slot-container*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1)}/*!@:host .content-slot-container:first-child*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile:first-child{padding-inline:0 0.75rem}/*!@:host .content-slot-container:last-child*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile:last-child{padding-inline:0.75rem 0}/*!@:host .heading*/.sc-calcite-tile-h .heading.sc-calcite-tile{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .large-visual*/.sc-calcite-tile-h .large-visual.sc-calcite-tile{-ms-flex-align:center;align-items:center;text-align:center;min-height:12rem}/*!@:host .large-visual .icon*/.sc-calcite-tile-h .large-visual.sc-calcite-tile .icon.sc-calcite-tile{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:end;align-self:flex-end}/*!@:host .large-visual .content-container*/.sc-calcite-tile-h .large-visual.sc-calcite-tile .content-container.sc-calcite-tile{-ms-flex-item-align:center;align-self:center}/*!@:host .description*/.sc-calcite-tile-h .description.sc-calcite-tile{pointer-events:none;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host(:not([embed]))*/.sc-calcite-tile-h:not([embed]){padding:0.75rem;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2)}/*!@:host(:not([embed])[href]:hover)*/.sc-calcite-tile-h:not([embed])[href]:hover{cursor:pointer;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-brand)}/*!@:host(:not([embed])[href]:active)*/.sc-calcite-tile-h:not([embed])[href]:active{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand);box-shadow:0 0 0 3px var(--calcite-ui-brand)}/*!@:host([icon][heading]:not([description]):not([embed]))*/[icon][heading].sc-calcite-tile-h:not([description]):not([embed]){padding:0px}/*!@:host([icon][heading]:not([description])) .icon*/[icon][heading].sc-calcite-tile-h:not([description]) .icon.sc-calcite-tile{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}/*!@:host([icon][heading]:not([description])) .large-visual*/[icon][heading].sc-calcite-tile-h:not([description]) .large-visual.sc-calcite-tile{text-align:center}/*!@:host([disabled])*/[disabled].sc-calcite-tile-h{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]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-tile-h[disabled] .sc-calcite-tile-s>[calcite-hydrated][disabled],[disabled].sc-calcite-tile-h [calcite-hydrated][disabled].sc-calcite-tile{opacity:1}/*!@:host(:hover) .heading, :host([active]) .heading*/.sc-calcite-tile-h:hover .heading.sc-calcite-tile,[active].sc-calcite-tile-h .heading.sc-calcite-tile{color:var(--calcite-ui-text-1)}/*!@:host(:hover) .description, :host([active]) .description*/.sc-calcite-tile-h:hover .description.sc-calcite-tile,[active].sc-calcite-tile-h .description.sc-calcite-tile{color:var(--calcite-ui-text-2)}";
|
|
30407
30588
|
|
|
30408
30589
|
/**
|
|
30409
30590
|
* @slot content-start - A slot for adding non-actionable elements before the tile content.
|
|
@@ -31209,11 +31390,6 @@ class TimePicker {
|
|
|
31209
31390
|
valueWatcher(newValue) {
|
|
31210
31391
|
this.setValue(newValue, false);
|
|
31211
31392
|
}
|
|
31212
|
-
hourChanged(newHour) {
|
|
31213
|
-
if (this.meridiem && isValidNumber(newHour)) {
|
|
31214
|
-
this.setValuePart("meridiem", getMeridiem(newHour));
|
|
31215
|
-
}
|
|
31216
|
-
}
|
|
31217
31393
|
//--------------------------------------------------------------------------
|
|
31218
31394
|
//
|
|
31219
31395
|
// Event Listeners
|
|
@@ -31379,8 +31555,7 @@ class TimePicker {
|
|
|
31379
31555
|
get el() { return getElement(this); }
|
|
31380
31556
|
static get watchers() { return {
|
|
31381
31557
|
"locale": ["localeWatcher"],
|
|
31382
|
-
"value": ["valueWatcher"]
|
|
31383
|
-
"hour": ["hourChanged"]
|
|
31558
|
+
"value": ["valueWatcher"]
|
|
31384
31559
|
}; }
|
|
31385
31560
|
static get style() { return timePickerCss; }
|
|
31386
31561
|
static get cmpMeta() { return {
|
|
@@ -31609,7 +31784,7 @@ class TipManager {
|
|
|
31609
31784
|
//
|
|
31610
31785
|
// --------------------------------------------------------------------------
|
|
31611
31786
|
/**
|
|
31612
|
-
*
|
|
31787
|
+
* Closed state of the `calcite-tip-manager`.
|
|
31613
31788
|
*/
|
|
31614
31789
|
this.closed = false;
|
|
31615
31790
|
this.mutationObserver = createObserver();
|
|
@@ -32131,11 +32306,7 @@ class TooltipManager {
|
|
|
32131
32306
|
this.hoverEvent(event, false);
|
|
32132
32307
|
}
|
|
32133
32308
|
clickHandler(event) {
|
|
32134
|
-
|
|
32135
|
-
this.clickedTooltip = clickedTooltip;
|
|
32136
|
-
if (clickedTooltip) {
|
|
32137
|
-
this.toggleTooltip(clickedTooltip, false);
|
|
32138
|
-
}
|
|
32309
|
+
this.clickedTooltip = this.queryTooltip(event.composedPath());
|
|
32139
32310
|
}
|
|
32140
32311
|
focusShow(event) {
|
|
32141
32312
|
this.focusEvent(event, true);
|