@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
+
* v1.0.0-beta.81
|
|
4
5
|
*/
|
|
5
6
|
import { HTMLElement as HTMLElement$1, createEvent, h, Host, Build, forceUpdate, Fragment, getAssetPath, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
7
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -253,7 +254,13 @@ function queryElementRoots(element, { selector, id }) {
|
|
|
253
254
|
}
|
|
254
255
|
const rootNode = getRootNode(el);
|
|
255
256
|
const found = id
|
|
256
|
-
? rootNode
|
|
257
|
+
? "getElementById" in rootNode
|
|
258
|
+
? /*
|
|
259
|
+
Check to make sure 'getElementById' exists in cases where element is no longer connected to the DOM and getRootNode() returns the element.
|
|
260
|
+
https://github.com/Esri/calcite-components/pull/4280
|
|
261
|
+
*/
|
|
262
|
+
rootNode.getElementById(id)
|
|
263
|
+
: null
|
|
257
264
|
: selector
|
|
258
265
|
? rootNode.querySelector(selector)
|
|
259
266
|
: null;
|
|
@@ -3611,6 +3618,8 @@ const Button = class extends HTMLElement$1 {
|
|
|
3611
3618
|
this.scale = "m";
|
|
3612
3619
|
/** is the button a child of a calcite-split-button */
|
|
3613
3620
|
this.splitChild = false;
|
|
3621
|
+
/** The type attribute to apply to the button */
|
|
3622
|
+
this.type = "button";
|
|
3614
3623
|
/** specify the width of the button, defaults to auto */
|
|
3615
3624
|
this.width = "auto";
|
|
3616
3625
|
/** watches for changing text content **/
|
|
@@ -3622,14 +3631,15 @@ const Button = class extends HTMLElement$1 {
|
|
|
3622
3631
|
// act on a requested or nearby form based on type
|
|
3623
3632
|
this.handleClick = () => {
|
|
3624
3633
|
const { formEl, type } = this;
|
|
3634
|
+
if (this.href) {
|
|
3635
|
+
return;
|
|
3636
|
+
}
|
|
3625
3637
|
// this.type refers to type attribute, not child element type
|
|
3626
|
-
if (
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
formEl === null || formEl === void 0 ? void 0 : formEl.reset();
|
|
3632
|
-
}
|
|
3638
|
+
if (type === "submit") {
|
|
3639
|
+
formEl === null || formEl === void 0 ? void 0 : formEl.requestSubmit();
|
|
3640
|
+
}
|
|
3641
|
+
else if (type === "reset") {
|
|
3642
|
+
formEl === null || formEl === void 0 ? void 0 : formEl.reset();
|
|
3633
3643
|
}
|
|
3634
3644
|
};
|
|
3635
3645
|
}
|
|
@@ -3663,9 +3673,6 @@ const Button = class extends HTMLElement$1 {
|
|
|
3663
3673
|
componentWillLoad() {
|
|
3664
3674
|
if (Build.isBrowser) {
|
|
3665
3675
|
this.updateHasContent();
|
|
3666
|
-
if (!this.href && !this.type) {
|
|
3667
|
-
this.type = "submit";
|
|
3668
|
-
}
|
|
3669
3676
|
}
|
|
3670
3677
|
}
|
|
3671
3678
|
componentDidRender() {
|
|
@@ -5864,7 +5871,6 @@ models.forEach(fromModel => {
|
|
|
5864
5871
|
});
|
|
5865
5872
|
var colorConvert = convert;
|
|
5866
5873
|
|
|
5867
|
-
const _slice = [].slice;
|
|
5868
5874
|
const skippedModels = [// To be honest, I don't really feel like keyword belongs in color convert, but eh.
|
|
5869
5875
|
'keyword', // Gray conflicts with some method names, and has its own method defined.
|
|
5870
5876
|
'gray', // Shouldn't really be in color-convert either...
|
|
@@ -5872,7 +5878,7 @@ const skippedModels = [// To be honest, I don't really feel like keyword belongs
|
|
|
5872
5878
|
const hashedModelKeys = {};
|
|
5873
5879
|
|
|
5874
5880
|
for (const model of Object.keys(colorConvert)) {
|
|
5875
|
-
hashedModelKeys[
|
|
5881
|
+
hashedModelKeys[[...colorConvert[model].labels].sort().join('')] = model;
|
|
5876
5882
|
}
|
|
5877
5883
|
|
|
5878
5884
|
const limiters = {};
|
|
@@ -5900,7 +5906,7 @@ function Color(object, model) {
|
|
|
5900
5906
|
this.valpha = 1;
|
|
5901
5907
|
} else if (object instanceof Color) {
|
|
5902
5908
|
this.model = object.model;
|
|
5903
|
-
this.color = object.color
|
|
5909
|
+
this.color = [...object.color];
|
|
5904
5910
|
this.valpha = object.valpha;
|
|
5905
5911
|
} else if (typeof object === 'string') {
|
|
5906
5912
|
const result = colorString.get(object);
|
|
@@ -5916,9 +5922,7 @@ function Color(object, model) {
|
|
|
5916
5922
|
} else if (object.length > 0) {
|
|
5917
5923
|
this.model = model || 'rgb';
|
|
5918
5924
|
channels = colorConvert[this.model].channels;
|
|
5919
|
-
|
|
5920
|
-
const newArray = _slice.call(object, 0, channels);
|
|
5921
|
-
|
|
5925
|
+
const newArray = Array.prototype.slice.call(object, 0, channels);
|
|
5922
5926
|
this.color = zeroArray(newArray, channels);
|
|
5923
5927
|
this.valpha = typeof object[channels] === 'number' ? object[channels] : 1;
|
|
5924
5928
|
} else if (typeof object === 'number') {
|
|
@@ -5942,7 +5946,9 @@ function Color(object, model) {
|
|
|
5942
5946
|
}
|
|
5943
5947
|
|
|
5944
5948
|
this.model = hashedModelKeys[hashedKeys];
|
|
5945
|
-
const
|
|
5949
|
+
const {
|
|
5950
|
+
labels
|
|
5951
|
+
} = colorConvert[this.model];
|
|
5946
5952
|
const color = [];
|
|
5947
5953
|
|
|
5948
5954
|
for (i = 0; i < labels.length; i++) {
|
|
@@ -5984,24 +5990,28 @@ Color.prototype = {
|
|
|
5984
5990
|
string(places) {
|
|
5985
5991
|
let self = this.model in colorString.to ? this : this.rgb();
|
|
5986
5992
|
self = self.round(typeof places === 'number' ? places : 1);
|
|
5987
|
-
const args = self.valpha === 1 ? self.color : self.color
|
|
5993
|
+
const args = self.valpha === 1 ? self.color : [...self.color, this.valpha];
|
|
5988
5994
|
return colorString.to[self.model](args);
|
|
5989
5995
|
},
|
|
5990
5996
|
|
|
5991
5997
|
percentString(places) {
|
|
5992
5998
|
const self = this.rgb().round(typeof places === 'number' ? places : 1);
|
|
5993
|
-
const args = self.valpha === 1 ? self.color : self.color
|
|
5999
|
+
const args = self.valpha === 1 ? self.color : [...self.color, this.valpha];
|
|
5994
6000
|
return colorString.to.rgb.percent(args);
|
|
5995
6001
|
},
|
|
5996
6002
|
|
|
5997
6003
|
array() {
|
|
5998
|
-
return this.valpha === 1 ? this.color
|
|
6004
|
+
return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
|
|
5999
6005
|
},
|
|
6000
6006
|
|
|
6001
6007
|
object() {
|
|
6002
6008
|
const result = {};
|
|
6003
|
-
const
|
|
6004
|
-
|
|
6009
|
+
const {
|
|
6010
|
+
channels
|
|
6011
|
+
} = colorConvert[this.model];
|
|
6012
|
+
const {
|
|
6013
|
+
labels
|
|
6014
|
+
} = colorConvert[this.model];
|
|
6005
6015
|
|
|
6006
6016
|
for (let i = 0; i < channels; i++) {
|
|
6007
6017
|
result[labels[i]] = this.color[i];
|
|
@@ -6042,12 +6052,12 @@ Color.prototype = {
|
|
|
6042
6052
|
|
|
6043
6053
|
round(places) {
|
|
6044
6054
|
places = Math.max(places || 0, 0);
|
|
6045
|
-
return new Color(this.color.map(roundToPlace(places))
|
|
6055
|
+
return new Color([...this.color.map(roundToPlace(places)), this.valpha], this.model);
|
|
6046
6056
|
},
|
|
6047
6057
|
|
|
6048
6058
|
alpha(value) {
|
|
6049
|
-
if (
|
|
6050
|
-
return new Color(this.color
|
|
6059
|
+
if (value !== undefined) {
|
|
6060
|
+
return new Color([...this.color, Math.max(0, Math.min(1, value))], this.model);
|
|
6051
6061
|
}
|
|
6052
6062
|
|
|
6053
6063
|
return this.valpha;
|
|
@@ -6070,15 +6080,15 @@ Color.prototype = {
|
|
|
6070
6080
|
magenta: getset('cmyk', 1, maxfn(100)),
|
|
6071
6081
|
yellow: getset('cmyk', 2, maxfn(100)),
|
|
6072
6082
|
black: getset('cmyk', 3, maxfn(100)),
|
|
6073
|
-
x: getset('xyz', 0, maxfn(
|
|
6083
|
+
x: getset('xyz', 0, maxfn(95.047)),
|
|
6074
6084
|
y: getset('xyz', 1, maxfn(100)),
|
|
6075
|
-
z: getset('xyz', 2, maxfn(
|
|
6085
|
+
z: getset('xyz', 2, maxfn(108.833)),
|
|
6076
6086
|
l: getset('lab', 0, maxfn(100)),
|
|
6077
6087
|
a: getset('lab', 1),
|
|
6078
6088
|
b: getset('lab', 2),
|
|
6079
6089
|
|
|
6080
6090
|
keyword(value) {
|
|
6081
|
-
if (
|
|
6091
|
+
if (value !== undefined) {
|
|
6082
6092
|
return new Color(value);
|
|
6083
6093
|
}
|
|
6084
6094
|
|
|
@@ -6086,7 +6096,7 @@ Color.prototype = {
|
|
|
6086
6096
|
},
|
|
6087
6097
|
|
|
6088
6098
|
hex(value) {
|
|
6089
|
-
if (
|
|
6099
|
+
if (value !== undefined) {
|
|
6090
6100
|
return new Color(value);
|
|
6091
6101
|
}
|
|
6092
6102
|
|
|
@@ -6094,7 +6104,7 @@ Color.prototype = {
|
|
|
6094
6104
|
},
|
|
6095
6105
|
|
|
6096
6106
|
hexa(value) {
|
|
6097
|
-
if (
|
|
6107
|
+
if (value !== undefined) {
|
|
6098
6108
|
return new Color(value);
|
|
6099
6109
|
}
|
|
6100
6110
|
|
|
@@ -6120,7 +6130,7 @@ Color.prototype = {
|
|
|
6120
6130
|
|
|
6121
6131
|
for (const [i, element] of rgb.entries()) {
|
|
6122
6132
|
const chan = element / 255;
|
|
6123
|
-
lum[i] = chan <= 0.
|
|
6133
|
+
lum[i] = chan <= 0.04045 ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;
|
|
6124
6134
|
}
|
|
6125
6135
|
|
|
6126
6136
|
return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];
|
|
@@ -6139,9 +6149,10 @@ Color.prototype = {
|
|
|
6139
6149
|
},
|
|
6140
6150
|
|
|
6141
6151
|
level(color2) {
|
|
6152
|
+
// https://www.w3.org/TR/WCAG/#contrast-enhanced
|
|
6142
6153
|
const contrastRatio = this.contrast(color2);
|
|
6143
6154
|
|
|
6144
|
-
if (contrastRatio >= 7
|
|
6155
|
+
if (contrastRatio >= 7) {
|
|
6145
6156
|
return 'AAA';
|
|
6146
6157
|
}
|
|
6147
6158
|
|
|
@@ -6151,7 +6162,7 @@ Color.prototype = {
|
|
|
6151
6162
|
isDark() {
|
|
6152
6163
|
// YIQ equation from http://24ways.org/2010/calculating-color-contrast
|
|
6153
6164
|
const rgb = this.rgb().color;
|
|
6154
|
-
const yiq = (rgb[0] *
|
|
6165
|
+
const yiq = (rgb[0] * 2126 + rgb[1] * 7152 + rgb[2] * 722) / 10000;
|
|
6155
6166
|
return yiq < 128;
|
|
6156
6167
|
},
|
|
6157
6168
|
|
|
@@ -6253,25 +6264,28 @@ for (const model of Object.keys(colorConvert)) {
|
|
|
6253
6264
|
continue;
|
|
6254
6265
|
}
|
|
6255
6266
|
|
|
6256
|
-
const
|
|
6267
|
+
const {
|
|
6268
|
+
channels
|
|
6269
|
+
} = colorConvert[model]; // Conversion methods
|
|
6257
6270
|
|
|
6258
|
-
Color.prototype[model] = function () {
|
|
6271
|
+
Color.prototype[model] = function (...args) {
|
|
6259
6272
|
if (this.model === model) {
|
|
6260
6273
|
return new Color(this);
|
|
6261
6274
|
}
|
|
6262
6275
|
|
|
6263
|
-
if (
|
|
6264
|
-
return new Color(
|
|
6276
|
+
if (args.length > 0) {
|
|
6277
|
+
return new Color(args, model);
|
|
6265
6278
|
}
|
|
6266
6279
|
|
|
6267
|
-
|
|
6268
|
-
return new Color(assertArray(colorConvert[this.model][model].raw(this.color)).concat(newAlpha), model);
|
|
6280
|
+
return new Color([...assertArray(colorConvert[this.model][model].raw(this.color)), this.valpha], model);
|
|
6269
6281
|
}; // 'static' construction methods
|
|
6270
6282
|
|
|
6271
6283
|
|
|
6272
|
-
Color[model] = function (
|
|
6284
|
+
Color[model] = function (...args) {
|
|
6285
|
+
let color = args[0];
|
|
6286
|
+
|
|
6273
6287
|
if (typeof color === 'number') {
|
|
6274
|
-
color = zeroArray(
|
|
6288
|
+
color = zeroArray(args, channels);
|
|
6275
6289
|
}
|
|
6276
6290
|
|
|
6277
6291
|
return new Color(color, model);
|
|
@@ -6299,7 +6313,7 @@ function getset(model, channel, modifier) {
|
|
|
6299
6313
|
return function (value) {
|
|
6300
6314
|
let result;
|
|
6301
6315
|
|
|
6302
|
-
if (
|
|
6316
|
+
if (value !== undefined) {
|
|
6303
6317
|
if (modifier) {
|
|
6304
6318
|
value = modifier(value);
|
|
6305
6319
|
}
|
|
@@ -6854,9 +6868,12 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6854
6868
|
const channelAriaLabels = isRgb
|
|
6855
6869
|
? [intlRed, intlGreen, intlBlue]
|
|
6856
6870
|
: [intlHue, intlSaturation, intlValue];
|
|
6857
|
-
|
|
6871
|
+
const direction = getElementDir(this.el);
|
|
6872
|
+
return (h("calcite-tab", { active: active, class: CSS$G.control, key: channelMode }, h("div", { class: CSS$G.channels, dir: "ltr" }, channels.map((channel, index) =>
|
|
6873
|
+
/* the channel container is ltr, so we apply the host's direction */
|
|
6874
|
+
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
6858
6875
|
};
|
|
6859
|
-
this.renderChannel = (value, index, label, ariaLabel) => (h("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() }));
|
|
6876
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("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() }));
|
|
6860
6877
|
this.deleteColor = () => {
|
|
6861
6878
|
const colorToDelete = this.color.hex();
|
|
6862
6879
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -6911,14 +6928,10 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6911
6928
|
this.drawColorFieldAndSlider();
|
|
6912
6929
|
this.updateChannelsFromColor(color);
|
|
6913
6930
|
this.previousColor = oldColor;
|
|
6914
|
-
if (this.internalColorUpdateContext) {
|
|
6915
|
-
return;
|
|
6916
|
-
}
|
|
6917
|
-
this.value = this.toValue(color);
|
|
6918
6931
|
}
|
|
6919
6932
|
handleFormatChange(format) {
|
|
6920
6933
|
this.setMode(format);
|
|
6921
|
-
this.
|
|
6934
|
+
this.internalColorSet(this.color, false, "internal");
|
|
6922
6935
|
}
|
|
6923
6936
|
handleScaleChange(scale = "m") {
|
|
6924
6937
|
this.updateDimensions(scale);
|
|
@@ -6938,10 +6951,10 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6938
6951
|
this.setMode(nextMode);
|
|
6939
6952
|
}
|
|
6940
6953
|
const dragging = this.sliderThumbState === "drag" || this.hueThumbState === "drag";
|
|
6941
|
-
if (this.internalColorUpdateContext) {
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6954
|
+
if (this.internalColorUpdateContext === "initial") {
|
|
6955
|
+
return;
|
|
6956
|
+
}
|
|
6957
|
+
if (this.internalColorUpdateContext === "user-interaction") {
|
|
6945
6958
|
this.calciteColorPickerInput.emit();
|
|
6946
6959
|
if (!dragging) {
|
|
6947
6960
|
this.calciteColorPickerChange.emit();
|
|
@@ -6951,11 +6964,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6951
6964
|
const color$1 = allowEmpty && !value ? null : color(value);
|
|
6952
6965
|
const colorChanged = !colorEqual(color$1, this.color);
|
|
6953
6966
|
if (modeChanged || colorChanged) {
|
|
6954
|
-
this.color
|
|
6955
|
-
this.calciteColorPickerInput.emit();
|
|
6956
|
-
if (!dragging) {
|
|
6957
|
-
this.calciteColorPickerChange.emit();
|
|
6958
|
-
}
|
|
6967
|
+
this.internalColorSet(color$1, true, "internal");
|
|
6959
6968
|
}
|
|
6960
6969
|
}
|
|
6961
6970
|
//--------------------------------------------------------------------------
|
|
@@ -7084,7 +7093,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7084
7093
|
}
|
|
7085
7094
|
return "none";
|
|
7086
7095
|
}
|
|
7087
|
-
internalColorSet(color, skipEqual = true, context = "
|
|
7096
|
+
internalColorSet(color, skipEqual = true, context = "user-interaction") {
|
|
7088
7097
|
if (skipEqual && colorEqual(color, this.color)) {
|
|
7089
7098
|
return;
|
|
7090
7099
|
}
|
|
@@ -7292,32 +7301,13 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7292
7301
|
: this.formatForInternalInput(rgbToHex(this.internalColor.object()));
|
|
7293
7302
|
};
|
|
7294
7303
|
this.onInputChange = () => {
|
|
7295
|
-
|
|
7296
|
-
let value;
|
|
7297
|
-
if (inputValue) {
|
|
7298
|
-
const hex = inputValue;
|
|
7299
|
-
const color = hexToRGB(`#${hex}`);
|
|
7300
|
-
if (!color) {
|
|
7301
|
-
return;
|
|
7302
|
-
}
|
|
7303
|
-
value = normalizeHex(hex);
|
|
7304
|
-
}
|
|
7305
|
-
else if (this.allowEmpty) {
|
|
7306
|
-
value = null;
|
|
7307
|
-
}
|
|
7308
|
-
this.value = value;
|
|
7309
|
-
this.calciteColorPickerHexInputChange.emit();
|
|
7304
|
+
this.internalSetValue(this.inputNode.value, this.value);
|
|
7310
7305
|
};
|
|
7311
7306
|
/**
|
|
7312
7307
|
* The last valid/selected color. Used as a fallback if an invalid hex code is entered.
|
|
7313
7308
|
*/
|
|
7314
7309
|
this.internalColor = DEFAULT_COLOR;
|
|
7315
7310
|
this.previousNonNullValue = this.value;
|
|
7316
|
-
//--------------------------------------------------------------------------
|
|
7317
|
-
//
|
|
7318
|
-
// Private Methods
|
|
7319
|
-
//
|
|
7320
|
-
//--------------------------------------------------------------------------
|
|
7321
7311
|
this.storeInputRef = (node) => {
|
|
7322
7312
|
this.inputNode = node;
|
|
7323
7313
|
};
|
|
@@ -7332,38 +7322,16 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7332
7322
|
if (value) {
|
|
7333
7323
|
const normalized = normalizeHex(value);
|
|
7334
7324
|
if (isValidHex(normalized)) {
|
|
7335
|
-
this.
|
|
7336
|
-
this.value = normalized;
|
|
7325
|
+
this.internalSetValue(normalized, normalized, false);
|
|
7337
7326
|
}
|
|
7338
7327
|
return;
|
|
7339
7328
|
}
|
|
7340
7329
|
if (allowEmpty) {
|
|
7341
|
-
this.
|
|
7342
|
-
this.value = null;
|
|
7330
|
+
this.internalSetValue(null, null, false);
|
|
7343
7331
|
}
|
|
7344
7332
|
}
|
|
7345
7333
|
handleValueChange(value, oldValue) {
|
|
7346
|
-
|
|
7347
|
-
const normalized = normalizeHex(value);
|
|
7348
|
-
if (isValidHex(normalized)) {
|
|
7349
|
-
const { internalColor } = this;
|
|
7350
|
-
const changed = !internalColor || normalized !== normalizeHex(internalColor.hex());
|
|
7351
|
-
this.internalColor = color(normalized);
|
|
7352
|
-
this.previousNonNullValue = normalized;
|
|
7353
|
-
this.value = normalized;
|
|
7354
|
-
if (changed) {
|
|
7355
|
-
this.calciteColorPickerHexInputChange.emit();
|
|
7356
|
-
}
|
|
7357
|
-
return;
|
|
7358
|
-
}
|
|
7359
|
-
}
|
|
7360
|
-
else if (this.allowEmpty) {
|
|
7361
|
-
this.internalColor = null;
|
|
7362
|
-
this.value = null;
|
|
7363
|
-
this.calciteColorPickerHexInputChange.emit();
|
|
7364
|
-
return;
|
|
7365
|
-
}
|
|
7366
|
-
this.value = oldValue;
|
|
7334
|
+
this.internalSetValue(value, oldValue, false);
|
|
7367
7335
|
}
|
|
7368
7336
|
// using @Listen as a workaround for VDOM listener not firing
|
|
7369
7337
|
onInputKeyDown(event) {
|
|
@@ -7375,15 +7343,16 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7375
7343
|
return;
|
|
7376
7344
|
}
|
|
7377
7345
|
const isNudgeKey = key === "ArrowDown" || key === "ArrowUp";
|
|
7346
|
+
const oldValue = this.value;
|
|
7378
7347
|
if (isNudgeKey) {
|
|
7379
7348
|
if (!value) {
|
|
7380
|
-
this.
|
|
7349
|
+
this.internalSetValue(this.previousNonNullValue, oldValue);
|
|
7381
7350
|
event.preventDefault();
|
|
7382
7351
|
return;
|
|
7383
7352
|
}
|
|
7384
7353
|
const direction = key === "ArrowUp" ? 1 : -1;
|
|
7385
7354
|
const bump = shiftKey ? 10 : 1;
|
|
7386
|
-
this.
|
|
7355
|
+
this.internalSetValue(normalizeHex(this.nudgeRGBChannels(internalColor, bump * direction).hex()), oldValue);
|
|
7387
7356
|
event.preventDefault();
|
|
7388
7357
|
return;
|
|
7389
7358
|
}
|
|
@@ -7413,6 +7382,36 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7413
7382
|
async setFocus() {
|
|
7414
7383
|
focusElement(this.inputNode);
|
|
7415
7384
|
}
|
|
7385
|
+
//--------------------------------------------------------------------------
|
|
7386
|
+
//
|
|
7387
|
+
// Private Methods
|
|
7388
|
+
//
|
|
7389
|
+
//--------------------------------------------------------------------------
|
|
7390
|
+
internalSetValue(value, oldValue, emit = true) {
|
|
7391
|
+
if (value) {
|
|
7392
|
+
const normalized = normalizeHex(value);
|
|
7393
|
+
if (isValidHex(normalized)) {
|
|
7394
|
+
const { internalColor } = this;
|
|
7395
|
+
const changed = !internalColor || normalized !== normalizeHex(internalColor.hex());
|
|
7396
|
+
this.internalColor = color(normalized);
|
|
7397
|
+
this.previousNonNullValue = normalized;
|
|
7398
|
+
this.value = normalized;
|
|
7399
|
+
if (changed && emit) {
|
|
7400
|
+
this.calciteColorPickerHexInputChange.emit();
|
|
7401
|
+
}
|
|
7402
|
+
return;
|
|
7403
|
+
}
|
|
7404
|
+
}
|
|
7405
|
+
else if (this.allowEmpty) {
|
|
7406
|
+
this.internalColor = null;
|
|
7407
|
+
this.value = null;
|
|
7408
|
+
if (emit) {
|
|
7409
|
+
this.calciteColorPickerHexInputChange.emit();
|
|
7410
|
+
}
|
|
7411
|
+
return;
|
|
7412
|
+
}
|
|
7413
|
+
this.value = oldValue;
|
|
7414
|
+
}
|
|
7416
7415
|
formatForInternalInput(hex) {
|
|
7417
7416
|
return hex ? hex.replace("#", "") : "";
|
|
7418
7417
|
}
|
|
@@ -9303,8 +9302,22 @@ var createPopper$1 = /*#__PURE__*/popperGenerator({
|
|
|
9303
9302
|
defaultModifiers: defaultModifiers
|
|
9304
9303
|
}); // eslint-disable-next-line import/no-unused-modules
|
|
9305
9304
|
|
|
9305
|
+
const popperComputedPlacements = [
|
|
9306
|
+
"top",
|
|
9307
|
+
"bottom",
|
|
9308
|
+
"right",
|
|
9309
|
+
"left",
|
|
9310
|
+
"top-start",
|
|
9311
|
+
"top-end",
|
|
9312
|
+
"bottom-start",
|
|
9313
|
+
"bottom-end",
|
|
9314
|
+
"right-start",
|
|
9315
|
+
"right-end",
|
|
9316
|
+
"left-start",
|
|
9317
|
+
"left-end"
|
|
9318
|
+
];
|
|
9306
9319
|
const defaultMenuPlacement = "bottom-leading";
|
|
9307
|
-
const
|
|
9320
|
+
const popperMenuComputedPlacements = [
|
|
9308
9321
|
"top-start",
|
|
9309
9322
|
"top",
|
|
9310
9323
|
"top-end",
|
|
@@ -9316,6 +9329,16 @@ const CSS$D = {
|
|
|
9316
9329
|
animation: "calcite-popper-anim",
|
|
9317
9330
|
animationActive: "calcite-popper-anim--active"
|
|
9318
9331
|
};
|
|
9332
|
+
function filterComputedPlacements(placements, el) {
|
|
9333
|
+
const filteredPlacements = placements.filter((placement) => popperComputedPlacements.includes(placement));
|
|
9334
|
+
if (filteredPlacements.length !== placements.length) {
|
|
9335
|
+
console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${popperComputedPlacements
|
|
9336
|
+
.map((placement) => `"${placement}"`)
|
|
9337
|
+
.join(", ")
|
|
9338
|
+
.trim()}`, { el });
|
|
9339
|
+
}
|
|
9340
|
+
return filteredPlacements;
|
|
9341
|
+
}
|
|
9319
9342
|
function getPlacement(el, placement) {
|
|
9320
9343
|
const placements = ["left", "right"];
|
|
9321
9344
|
const variations = ["start", "end"];
|
|
@@ -9436,11 +9459,6 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9436
9459
|
* @default "Remove tag"
|
|
9437
9460
|
*/
|
|
9438
9461
|
this.intlRemoveTag = TEXT$f.removeTag;
|
|
9439
|
-
//--------------------------------------------------------------------------
|
|
9440
|
-
//
|
|
9441
|
-
// Private State/Props
|
|
9442
|
-
//
|
|
9443
|
-
//--------------------------------------------------------------------------
|
|
9444
9462
|
this.internalValueChangeFlag = false;
|
|
9445
9463
|
this.items = [];
|
|
9446
9464
|
this.groupItems = [];
|
|
@@ -9462,6 +9480,12 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9462
9480
|
// Private Methods
|
|
9463
9481
|
//
|
|
9464
9482
|
// --------------------------------------------------------------------------
|
|
9483
|
+
this.setFilteredPlacements = () => {
|
|
9484
|
+
const { el, flipPlacements } = this;
|
|
9485
|
+
this.filteredFlipPlacements = flipPlacements
|
|
9486
|
+
? filterComputedPlacements(flipPlacements, el)
|
|
9487
|
+
: null;
|
|
9488
|
+
};
|
|
9465
9489
|
this.getValue = () => {
|
|
9466
9490
|
const items = this.selectedItems.map((item) => item === null || item === void 0 ? void 0 : item.value.toString());
|
|
9467
9491
|
return (items === null || items === void 0 ? void 0 : items.length) ? (items.length > 1 ? items : items[0]) : "";
|
|
@@ -9479,8 +9503,9 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9479
9503
|
this.addCustomChip(this.text, true);
|
|
9480
9504
|
event.preventDefault();
|
|
9481
9505
|
}
|
|
9482
|
-
else {
|
|
9506
|
+
else if (this.active) {
|
|
9483
9507
|
this.active = false;
|
|
9508
|
+
event.preventDefault();
|
|
9484
9509
|
}
|
|
9485
9510
|
break;
|
|
9486
9511
|
case "ArrowLeft":
|
|
@@ -9490,22 +9515,47 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9490
9515
|
this.nextChip();
|
|
9491
9516
|
break;
|
|
9492
9517
|
case "ArrowUp":
|
|
9493
|
-
event.preventDefault();
|
|
9494
|
-
this.active = true;
|
|
9495
9518
|
this.shiftActiveItemIndex(-1);
|
|
9519
|
+
if (!this.comboboxInViewport()) {
|
|
9520
|
+
this.el.scrollIntoView();
|
|
9521
|
+
}
|
|
9496
9522
|
break;
|
|
9497
9523
|
case "ArrowDown":
|
|
9498
|
-
|
|
9499
|
-
|
|
9524
|
+
if (!this.active) {
|
|
9525
|
+
event.preventDefault();
|
|
9526
|
+
this.active = true;
|
|
9527
|
+
}
|
|
9500
9528
|
this.shiftActiveItemIndex(1);
|
|
9529
|
+
if (!this.comboboxInViewport()) {
|
|
9530
|
+
this.el.scrollIntoView();
|
|
9531
|
+
}
|
|
9532
|
+
break;
|
|
9533
|
+
case " ":
|
|
9534
|
+
if (!this.textInput.value) {
|
|
9535
|
+
event.preventDefault();
|
|
9536
|
+
this.active = true;
|
|
9537
|
+
this.shiftActiveItemIndex(1);
|
|
9538
|
+
}
|
|
9501
9539
|
break;
|
|
9502
9540
|
case "Home":
|
|
9503
|
-
this.active
|
|
9541
|
+
if (this.active) {
|
|
9542
|
+
event.preventDefault();
|
|
9543
|
+
}
|
|
9504
9544
|
this.updateActiveItemIndex(0);
|
|
9545
|
+
this.scrollToActiveItem();
|
|
9546
|
+
if (!this.comboboxInViewport()) {
|
|
9547
|
+
this.el.scrollIntoView();
|
|
9548
|
+
}
|
|
9505
9549
|
break;
|
|
9506
9550
|
case "End":
|
|
9507
|
-
this.active
|
|
9551
|
+
if (this.active) {
|
|
9552
|
+
event.preventDefault();
|
|
9553
|
+
}
|
|
9508
9554
|
this.updateActiveItemIndex(this.visibleItems.length - 1);
|
|
9555
|
+
this.scrollToActiveItem();
|
|
9556
|
+
if (!this.comboboxInViewport()) {
|
|
9557
|
+
this.el.scrollIntoView();
|
|
9558
|
+
}
|
|
9509
9559
|
break;
|
|
9510
9560
|
case "Escape":
|
|
9511
9561
|
this.active = false;
|
|
@@ -9530,11 +9580,6 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9530
9580
|
this.removeLastChip();
|
|
9531
9581
|
}
|
|
9532
9582
|
break;
|
|
9533
|
-
default:
|
|
9534
|
-
if (!this.active) {
|
|
9535
|
-
this.setFocus();
|
|
9536
|
-
}
|
|
9537
|
-
break;
|
|
9538
9583
|
}
|
|
9539
9584
|
};
|
|
9540
9585
|
this.toggleCloseEnd = () => {
|
|
@@ -9568,10 +9613,12 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9568
9613
|
}
|
|
9569
9614
|
this.calciteComboboxChipDismiss.emit(event.detail);
|
|
9570
9615
|
};
|
|
9571
|
-
this.
|
|
9616
|
+
this.clickHandler = (event) => {
|
|
9572
9617
|
if (event.composedPath().some((node) => node.tagName === "CALCITE-CHIP")) {
|
|
9573
9618
|
return;
|
|
9574
9619
|
}
|
|
9620
|
+
this.active = !this.active;
|
|
9621
|
+
this.updateActiveItemIndex(0);
|
|
9575
9622
|
this.setFocus();
|
|
9576
9623
|
};
|
|
9577
9624
|
this.setInactiveIfNotContained = (event) => {
|
|
@@ -9579,7 +9626,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9579
9626
|
if (!this.active || composedPath.includes(this.el) || composedPath.includes(this.referenceEl)) {
|
|
9580
9627
|
return;
|
|
9581
9628
|
}
|
|
9582
|
-
if (this.allowCustomValues && this.text) {
|
|
9629
|
+
if (this.allowCustomValues && this.text.trim().length) {
|
|
9583
9630
|
this.addCustomChip(this.text);
|
|
9584
9631
|
}
|
|
9585
9632
|
if (this.selectionMode === "single") {
|
|
@@ -9659,9 +9706,19 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9659
9706
|
this.setMaxScrollerHeight();
|
|
9660
9707
|
}
|
|
9661
9708
|
};
|
|
9709
|
+
this.scrollToActiveItem = () => {
|
|
9710
|
+
const activeItem = this.visibleItems[this.activeItemIndex];
|
|
9711
|
+
const height = this.calculateSingleItemHeight(activeItem);
|
|
9712
|
+
const { offsetHeight, scrollTop } = this.listContainerEl;
|
|
9713
|
+
if (offsetHeight + scrollTop < activeItem.offsetTop + height) {
|
|
9714
|
+
this.listContainerEl.scrollTop = activeItem.offsetTop - offsetHeight + height;
|
|
9715
|
+
}
|
|
9716
|
+
else if (activeItem.offsetTop < scrollTop) {
|
|
9717
|
+
this.listContainerEl.scrollTop = activeItem.offsetTop;
|
|
9718
|
+
}
|
|
9719
|
+
};
|
|
9662
9720
|
this.comboboxFocusHandler = () => {
|
|
9663
9721
|
var _a;
|
|
9664
|
-
this.active = true;
|
|
9665
9722
|
(_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
9666
9723
|
};
|
|
9667
9724
|
this.comboboxBlurHandler = (event) => {
|
|
@@ -9698,6 +9755,9 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9698
9755
|
this.updateItems();
|
|
9699
9756
|
}
|
|
9700
9757
|
}
|
|
9758
|
+
flipPlacementsHandler() {
|
|
9759
|
+
this.setFilteredPlacements();
|
|
9760
|
+
}
|
|
9701
9761
|
//--------------------------------------------------------------------------
|
|
9702
9762
|
//
|
|
9703
9763
|
// Event Listeners
|
|
@@ -9734,7 +9794,6 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9734
9794
|
/** Sets focus on the component. */
|
|
9735
9795
|
async setFocus() {
|
|
9736
9796
|
var _a;
|
|
9737
|
-
this.active = true;
|
|
9738
9797
|
(_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
9739
9798
|
this.activeChipIndex = -1;
|
|
9740
9799
|
this.activeItemIndex = -1;
|
|
@@ -9753,6 +9812,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9753
9812
|
this.createPopper();
|
|
9754
9813
|
connectLabel(this);
|
|
9755
9814
|
connectForm(this);
|
|
9815
|
+
this.setFilteredPlacements();
|
|
9756
9816
|
}
|
|
9757
9817
|
componentWillLoad() {
|
|
9758
9818
|
this.updateItems();
|
|
@@ -9784,13 +9844,20 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9784
9844
|
textHandler() {
|
|
9785
9845
|
this.updateActiveItemIndex(-1);
|
|
9786
9846
|
}
|
|
9847
|
+
comboboxInViewport() {
|
|
9848
|
+
const bounding = this.el.getBoundingClientRect();
|
|
9849
|
+
return (bounding.top >= 0 &&
|
|
9850
|
+
bounding.left >= 0 &&
|
|
9851
|
+
bounding.right <= (window.innerWidth || document.documentElement.clientWidth) &&
|
|
9852
|
+
bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight));
|
|
9853
|
+
}
|
|
9787
9854
|
getModifiers() {
|
|
9788
9855
|
const flipModifier = {
|
|
9789
9856
|
name: "flip",
|
|
9790
9857
|
enabled: true
|
|
9791
9858
|
};
|
|
9792
9859
|
flipModifier.options = {
|
|
9793
|
-
fallbackPlacements: this.
|
|
9860
|
+
fallbackPlacements: this.filteredFlipPlacements || popperMenuComputedPlacements
|
|
9794
9861
|
};
|
|
9795
9862
|
const eventListenerModifier = {
|
|
9796
9863
|
name: "eventListeners",
|
|
@@ -10008,19 +10075,10 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10008
10075
|
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
|
10009
10076
|
}
|
|
10010
10077
|
shiftActiveItemIndex(delta) {
|
|
10011
|
-
const length = this.visibleItems
|
|
10078
|
+
const { length } = this.visibleItems;
|
|
10012
10079
|
const newIndex = (this.activeItemIndex + length + delta) % length;
|
|
10013
10080
|
this.updateActiveItemIndex(newIndex);
|
|
10014
|
-
|
|
10015
|
-
const activeItem = this.visibleItems[this.activeItemIndex];
|
|
10016
|
-
const height = this.calculateSingleItemHeight(activeItem);
|
|
10017
|
-
const { offsetHeight, scrollTop } = this.listContainerEl;
|
|
10018
|
-
if (offsetHeight + scrollTop < activeItem.offsetTop + height) {
|
|
10019
|
-
this.listContainerEl.scrollTop = activeItem.offsetTop - offsetHeight + height;
|
|
10020
|
-
}
|
|
10021
|
-
else if (activeItem.offsetTop < scrollTop) {
|
|
10022
|
-
this.listContainerEl.scrollTop = activeItem.offsetTop;
|
|
10023
|
-
}
|
|
10081
|
+
this.scrollToActiveItem();
|
|
10024
10082
|
}
|
|
10025
10083
|
updateActiveItemIndex(index) {
|
|
10026
10084
|
var _a;
|
|
@@ -10073,7 +10131,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10073
10131
|
} }, showLabel && (h("span", { class: {
|
|
10074
10132
|
label: true,
|
|
10075
10133
|
"label--spaced": needsIcon
|
|
10076
|
-
}, key: "label"
|
|
10134
|
+
}, key: "label" }, selectedItem.textLabel)), h("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-label": getLabelText(this), class: {
|
|
10077
10135
|
input: true,
|
|
10078
10136
|
"input--single": true,
|
|
10079
10137
|
"input--transparent": this.activeChipIndex > -1,
|
|
@@ -10100,7 +10158,8 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10100
10158
|
needsIcon && (h("span", { class: "icon-start" }, (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon) && (h("calcite-icon", { class: "selected-icon", icon: selectedItem.icon, scale: "s" })))));
|
|
10101
10159
|
}
|
|
10102
10160
|
renderIconEnd() {
|
|
10103
|
-
|
|
10161
|
+
const { active } = this;
|
|
10162
|
+
return (h("span", { class: "icon-end" }, h("calcite-icon", { icon: active ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
10104
10163
|
}
|
|
10105
10164
|
render() {
|
|
10106
10165
|
const { active, guid, label } = this;
|
|
@@ -10109,7 +10168,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10109
10168
|
wrapper: true,
|
|
10110
10169
|
"wrapper--single": single || !this.selectedItems.length,
|
|
10111
10170
|
"wrapper--active": active
|
|
10112
|
-
}, onClick: this.
|
|
10171
|
+
}, onClick: this.clickHandler, ref: this.setReferenceEl, role: "combobox" }, h("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), h("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label), this.renderInput()), this.renderIconEnd()), h("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderPopperContainer(), h(HiddenFormInputSlot, { component: this })));
|
|
10113
10172
|
}
|
|
10114
10173
|
get el() { return this; }
|
|
10115
10174
|
static get watchers() { return {
|
|
@@ -10117,6 +10176,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10117
10176
|
"disabled": ["handleDisabledChange"],
|
|
10118
10177
|
"maxItems": ["maxItemsHandler"],
|
|
10119
10178
|
"value": ["valueHandler"],
|
|
10179
|
+
"flipPlacements": ["flipPlacementsHandler"],
|
|
10120
10180
|
"selectedItems": ["selectedItemsHandler"],
|
|
10121
10181
|
"text": ["textHandler"]
|
|
10122
10182
|
}; }
|
|
@@ -10136,7 +10196,7 @@ const CSS$C = {
|
|
|
10136
10196
|
textContainer: "text-container"
|
|
10137
10197
|
};
|
|
10138
10198
|
|
|
10139
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{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{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{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{--calcite-combobox-item-indent-value:calc(\n var(--calcite-combobox-item-spacing-indent) * var(--calcite-combobox-item-spacing-indent-multiplier)\n )}:host(: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]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host,ul{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0px;outline:2px solid transparent;outline-offset:2px}.label{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{cursor:default}.label--selected{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.label--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.label:hover,.label: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{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.icon{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{-webkit-padding-start:var(--calcite-combobox-item-indent-value);padding-inline-start:var(--calcite-combobox-item-indent-value)}.icon--custom{margin-top:-1px;color:var(--calcite-ui-text-3)}.icon--active{color:var(--calcite-ui-text-1)}.icon--dot{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;width:var(--calcite-combobox-item-spacing-unit-l)}.icon--dot:before{text-align:start;content:\"•\"}.label--active .icon{opacity:1}.label--selected .icon{opacity:1;color:var(--calcite-ui-brand)}:host(:hover[disabled]) .icon{opacity:1}";
|
|
10199
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{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{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{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{--calcite-combobox-item-indent-value:calc(\n var(--calcite-combobox-item-spacing-indent) * var(--calcite-combobox-item-spacing-indent-multiplier)\n )}:host(: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]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host,ul{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0px;outline:2px solid transparent;outline-offset:2px}.label{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{cursor:default}.label--selected{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.label--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.label:hover,.label: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{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.icon{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{-webkit-padding-start:var(--calcite-combobox-item-indent-value);padding-inline-start:var(--calcite-combobox-item-indent-value)}.icon--custom{margin-top:-1px;color:var(--calcite-ui-text-3)}.icon--active{color:var(--calcite-ui-text-1)}.icon--dot{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{text-align:start;content:\"•\"}.label--active .icon{opacity:1}.label--selected .icon{opacity:1;color:var(--calcite-ui-brand)}:host(:hover[disabled]) .icon{opacity:1}";
|
|
10140
10200
|
|
|
10141
10201
|
const ComboboxItem = class extends HTMLElement$1 {
|
|
10142
10202
|
constructor() {
|
|
@@ -10317,7 +10377,7 @@ function parseNumberString(numberString) {
|
|
|
10317
10377
|
return numberKeys.includes(value);
|
|
10318
10378
|
})
|
|
10319
10379
|
.reduce((string, part) => string + part);
|
|
10320
|
-
return isValidNumber(result) ? Number(result).toString() :
|
|
10380
|
+
return isValidNumber(result) ? Number(result).toString() : "";
|
|
10321
10381
|
});
|
|
10322
10382
|
}
|
|
10323
10383
|
function sanitizeDecimalString(decimalString) {
|
|
@@ -10423,6 +10483,7 @@ function delocalizeNumberString(numberString, locale) {
|
|
|
10423
10483
|
if (nonExpoNumString) {
|
|
10424
10484
|
const groupSeparator = getGroupSeparator(locale);
|
|
10425
10485
|
const decimalSeparator = getDecimalSeparator(locale);
|
|
10486
|
+
const minusSign = getMinusSign(locale);
|
|
10426
10487
|
const splitNumberString = nonExpoNumString.split("");
|
|
10427
10488
|
const decimalIndex = splitNumberString.lastIndexOf(decimalSeparator);
|
|
10428
10489
|
const delocalizedNumberString = splitNumberString
|
|
@@ -10433,7 +10494,8 @@ function delocalizeNumberString(numberString, locale) {
|
|
|
10433
10494
|
return value;
|
|
10434
10495
|
})
|
|
10435
10496
|
.reduce((string, part) => string + part)
|
|
10436
|
-
.replace(decimalSeparator, ".")
|
|
10497
|
+
.replace(decimalSeparator, ".")
|
|
10498
|
+
.replace(minusSign, "-");
|
|
10437
10499
|
return isNaN(Number(delocalizedNumberString)) ? nonExpoNumString : delocalizedNumberString;
|
|
10438
10500
|
}
|
|
10439
10501
|
return nonExpoNumString;
|
|
@@ -10451,6 +10513,12 @@ function getDecimalSeparator(locale) {
|
|
|
10451
10513
|
const value = parts.find((part) => part.type === "decimal").value;
|
|
10452
10514
|
return value.trim().length === 0 ? " " : value;
|
|
10453
10515
|
}
|
|
10516
|
+
function getMinusSign(locale) {
|
|
10517
|
+
const formatter = createLocaleNumberFormatter(locale);
|
|
10518
|
+
const parts = formatter.formatToParts(-1234567.8);
|
|
10519
|
+
const value = parts.find((part) => part.type === "minusSign").value;
|
|
10520
|
+
return value.trim().length === 0 ? "-" : value;
|
|
10521
|
+
}
|
|
10454
10522
|
function localizeNumberString(numberString, locale, displayGroupSeparator = false) {
|
|
10455
10523
|
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
10456
10524
|
if (nonExpoNumString) {
|
|
@@ -11445,20 +11513,23 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
11445
11513
|
* Increment year on UP/DOWN keys
|
|
11446
11514
|
*/
|
|
11447
11515
|
this.onYearKey = (e) => {
|
|
11448
|
-
const
|
|
11516
|
+
const localizedYear = e.target.value;
|
|
11449
11517
|
switch (e.key) {
|
|
11450
11518
|
case "ArrowDown":
|
|
11451
11519
|
e.preventDefault();
|
|
11452
|
-
this.setYear(
|
|
11520
|
+
this.setYear({ localizedYear, offset: -1 });
|
|
11453
11521
|
break;
|
|
11454
11522
|
case "ArrowUp":
|
|
11455
11523
|
e.preventDefault();
|
|
11456
|
-
this.setYear(
|
|
11524
|
+
this.setYear({ localizedYear, offset: 1 });
|
|
11457
11525
|
break;
|
|
11458
11526
|
}
|
|
11459
11527
|
};
|
|
11460
|
-
this.
|
|
11461
|
-
this.setYear(event.target.value);
|
|
11528
|
+
this.onYearChange = (event) => {
|
|
11529
|
+
this.setYear({ localizedYear: event.target.value });
|
|
11530
|
+
};
|
|
11531
|
+
this.onYearInput = (event) => {
|
|
11532
|
+
this.setYear({ localizedYear: event.target.value, commit: false });
|
|
11462
11533
|
};
|
|
11463
11534
|
this.prevMonthClick = (e) => {
|
|
11464
11535
|
this.handleArrowClick(e, this.prevMonthDate);
|
|
@@ -11514,7 +11585,7 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
11514
11585
|
return (h(Fragment, null, h("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 }, h("calcite-icon", { "flip-rtl": true, icon: "chevron-left", scale: iconScale })), h("div", { class: { text: true, "text--reverse": reverse } }, h(Heading, { class: "month", level: this.headingLevel }, localizedMonth), h("span", { class: "year-wrap" }, h("input", { "aria-label": this.intlYear, class: {
|
|
11515
11586
|
year: true,
|
|
11516
11587
|
"year--suffix": !!suffix
|
|
11517
|
-
}, inputmode: "numeric", maxlength: "4", minlength: "1", onInput: this.
|
|
11588
|
+
}, 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 && (h("span", { class: "suffix" }, h("span", { "aria-hidden": "true", class: "suffix__invisible" }, localizedYear), " " + suffix)))), h("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 }, h("calcite-icon", { "flip-rtl": true, icon: "chevron-right", scale: iconScale }))));
|
|
11518
11589
|
}
|
|
11519
11590
|
setNextPrevMonthDates() {
|
|
11520
11591
|
if (!this.activeDate) {
|
|
@@ -11523,27 +11594,32 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
11523
11594
|
this.nextMonthDate = dateFromRange(nextMonth(this.activeDate), this.min, this.max);
|
|
11524
11595
|
this.prevMonthDate = dateFromRange(prevMonth(this.activeDate), this.min, this.max);
|
|
11525
11596
|
}
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
* set to active if in range
|
|
11529
|
-
*/
|
|
11530
|
-
setYear(localizedYear, increment = 0) {
|
|
11531
|
-
const { min, max, activeDate, localeData, yearInput } = this;
|
|
11597
|
+
getInRangeDate({ localizedYear, offset = 0 }) {
|
|
11598
|
+
const { min, max, activeDate, localeData } = this;
|
|
11532
11599
|
const parsedYear = parseNumber(localizedYear, localeData);
|
|
11533
11600
|
const length = parsedYear.toString().length;
|
|
11534
|
-
const year = isNaN(parsedYear) ? false : parsedYear +
|
|
11601
|
+
const year = isNaN(parsedYear) ? false : parsedYear + offset;
|
|
11535
11602
|
const inRange = year && (!min || min.getFullYear() <= year) && (!max || max.getFullYear() >= year);
|
|
11536
|
-
// if you've supplied a year and it's in range
|
|
11603
|
+
// if you've supplied a year and it's in range
|
|
11537
11604
|
if (year && inRange && length === localizedYear.length) {
|
|
11538
11605
|
const nextDate = new Date(activeDate);
|
|
11539
11606
|
nextDate.setFullYear(year);
|
|
11540
|
-
|
|
11607
|
+
return dateFromRange(nextDate, min, max);
|
|
11608
|
+
}
|
|
11609
|
+
}
|
|
11610
|
+
/**
|
|
11611
|
+
* Parse localized year string from input,
|
|
11612
|
+
* set to active if in range
|
|
11613
|
+
*/
|
|
11614
|
+
setYear({ localizedYear, commit = true, offset = 0 }) {
|
|
11615
|
+
const { yearInput, activeDate, localeData } = this;
|
|
11616
|
+
const inRangeDate = this.getInRangeDate({ localizedYear, offset });
|
|
11617
|
+
// if you've supplied a year and it's in range, update active date
|
|
11618
|
+
if (inRangeDate) {
|
|
11541
11619
|
this.calciteDatePickerSelect.emit(inRangeDate);
|
|
11542
|
-
yearInput.value = localizeNumber(inRangeDate.getFullYear(), localeData);
|
|
11543
11620
|
}
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
yearInput.value = localizeNumber(activeDate.getFullYear(), localeData);
|
|
11621
|
+
if (commit) {
|
|
11622
|
+
yearInput.value = localizeNumber((inRangeDate || activeDate).getFullYear(), localeData);
|
|
11547
11623
|
}
|
|
11548
11624
|
}
|
|
11549
11625
|
get el() { return this; }
|
|
@@ -11607,11 +11683,6 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11607
11683
|
this.type = "click";
|
|
11608
11684
|
/** specify the width of dropdown, defaults to m */
|
|
11609
11685
|
this.width = "m";
|
|
11610
|
-
//--------------------------------------------------------------------------
|
|
11611
|
-
//
|
|
11612
|
-
// Private State/Props
|
|
11613
|
-
//
|
|
11614
|
-
//--------------------------------------------------------------------------
|
|
11615
11686
|
this.items = [];
|
|
11616
11687
|
this.activeTransitionProp = "visibility";
|
|
11617
11688
|
this.mutationObserver = createObserver("mutation", () => this.updateItems());
|
|
@@ -11621,6 +11692,12 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11621
11692
|
// Private Methods
|
|
11622
11693
|
//
|
|
11623
11694
|
//--------------------------------------------------------------------------
|
|
11695
|
+
this.setFilteredPlacements = () => {
|
|
11696
|
+
const { el, flipPlacements } = this;
|
|
11697
|
+
this.filteredFlipPlacements = flipPlacements
|
|
11698
|
+
? filterComputedPlacements(flipPlacements, el)
|
|
11699
|
+
: null;
|
|
11700
|
+
};
|
|
11624
11701
|
this.updateItems = () => {
|
|
11625
11702
|
this.updateSelectedItems();
|
|
11626
11703
|
this.triggers = getSlotted(this.el, "dropdown-trigger", { all: true });
|
|
@@ -11698,6 +11775,9 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11698
11775
|
this.active = false;
|
|
11699
11776
|
}
|
|
11700
11777
|
}
|
|
11778
|
+
flipPlacementsHandler() {
|
|
11779
|
+
this.setFilteredPlacements();
|
|
11780
|
+
}
|
|
11701
11781
|
maxItemsHandler() {
|
|
11702
11782
|
this.setMaxScrollerHeight();
|
|
11703
11783
|
}
|
|
@@ -11714,6 +11794,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11714
11794
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
11715
11795
|
this.createPopper();
|
|
11716
11796
|
this.updateItems();
|
|
11797
|
+
this.setFilteredPlacements();
|
|
11717
11798
|
}
|
|
11718
11799
|
componentDidLoad() {
|
|
11719
11800
|
this.reposition();
|
|
@@ -11830,7 +11911,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11830
11911
|
enabled: true
|
|
11831
11912
|
};
|
|
11832
11913
|
flipModifier.options = {
|
|
11833
|
-
fallbackPlacements: this.
|
|
11914
|
+
fallbackPlacements: this.filteredFlipPlacements || popperMenuComputedPlacements
|
|
11834
11915
|
};
|
|
11835
11916
|
const eventListenerModifier = {
|
|
11836
11917
|
name: "eventListeners",
|
|
@@ -11925,6 +12006,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11925
12006
|
static get watchers() { return {
|
|
11926
12007
|
"active": ["activeHandler"],
|
|
11927
12008
|
"disabled": ["handleDisabledChange"],
|
|
12009
|
+
"flipPlacements": ["flipPlacementsHandler"],
|
|
11928
12010
|
"maxItems": ["maxItemsHandler"],
|
|
11929
12011
|
"placement": ["placementHandler"]
|
|
11930
12012
|
}; }
|
|
@@ -12254,10 +12336,10 @@ const ICONS$8 = {
|
|
|
12254
12336
|
search: "search",
|
|
12255
12337
|
close: "x"
|
|
12256
12338
|
};
|
|
12339
|
+
const DEBOUNCE_TIMEOUT = 250;
|
|
12257
12340
|
|
|
12258
12341
|
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;width:100%}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{display:-ms-flexbox;display:flex;width:100%;padding:0.5rem}label{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]{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{display:none}calcite-input{width:100%}.search-icon{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{border-color:var(--calcite-ui-brand);outline:2px solid transparent;outline-offset:2px;padding-inline:0.25rem}input[type=text]:focus~.search-icon{inset-inline-start:calc(1rem * -1);opacity:0}.clear-button{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{color:var(--calcite-ui-text-1)}";
|
|
12259
12342
|
|
|
12260
|
-
const filterDebounceInMs = 250;
|
|
12261
12343
|
const Filter = class extends HTMLElement$1 {
|
|
12262
12344
|
constructor() {
|
|
12263
12345
|
super();
|
|
@@ -12297,10 +12379,10 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12297
12379
|
// Private Methods
|
|
12298
12380
|
//
|
|
12299
12381
|
// --------------------------------------------------------------------------
|
|
12300
|
-
this.filter = debounce$1((value) => {
|
|
12382
|
+
this.filter = debounce$1((value, emit = false) => {
|
|
12301
12383
|
const regex = new RegExp(value, "i");
|
|
12302
12384
|
if (this.items.length === 0) {
|
|
12303
|
-
this.updateFiltered([]);
|
|
12385
|
+
this.updateFiltered([], emit);
|
|
12304
12386
|
return;
|
|
12305
12387
|
}
|
|
12306
12388
|
const find = (input, RE) => {
|
|
@@ -12323,11 +12405,12 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12323
12405
|
const result = this.items.filter((item) => {
|
|
12324
12406
|
return find(item, regex);
|
|
12325
12407
|
});
|
|
12326
|
-
this.updateFiltered(result);
|
|
12327
|
-
},
|
|
12408
|
+
this.updateFiltered(result, emit);
|
|
12409
|
+
}, DEBOUNCE_TIMEOUT);
|
|
12328
12410
|
this.inputHandler = (event) => {
|
|
12329
12411
|
const target = event.target;
|
|
12330
12412
|
this.value = target.value;
|
|
12413
|
+
this.filter(target.value, true);
|
|
12331
12414
|
};
|
|
12332
12415
|
this.keyDownHandler = ({ key }) => {
|
|
12333
12416
|
if (key === "Escape") {
|
|
@@ -12336,6 +12419,7 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12336
12419
|
};
|
|
12337
12420
|
this.clear = () => {
|
|
12338
12421
|
this.value = "";
|
|
12422
|
+
this.filter("", true);
|
|
12339
12423
|
this.setFocus();
|
|
12340
12424
|
};
|
|
12341
12425
|
}
|
|
@@ -12370,10 +12454,12 @@ const Filter = class extends HTMLElement$1 {
|
|
|
12370
12454
|
async setFocus() {
|
|
12371
12455
|
focusElement(this.textInput);
|
|
12372
12456
|
}
|
|
12373
|
-
updateFiltered(filtered) {
|
|
12457
|
+
updateFiltered(filtered, emit = false) {
|
|
12374
12458
|
this.filteredItems.length = 0;
|
|
12375
12459
|
this.filteredItems = this.filteredItems.concat(filtered);
|
|
12376
|
-
|
|
12460
|
+
if (emit) {
|
|
12461
|
+
this.calciteFilterChange.emit();
|
|
12462
|
+
}
|
|
12377
12463
|
}
|
|
12378
12464
|
// --------------------------------------------------------------------------
|
|
12379
12465
|
//
|
|
@@ -13336,7 +13422,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13336
13422
|
else {
|
|
13337
13423
|
this.setValue({
|
|
13338
13424
|
nativeEvent,
|
|
13339
|
-
value:
|
|
13425
|
+
value: delocalizedValue
|
|
13340
13426
|
});
|
|
13341
13427
|
}
|
|
13342
13428
|
};
|
|
@@ -13746,6 +13832,11 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13746
13832
|
this.locale = document.documentElement.lang || "en";
|
|
13747
13833
|
/** specify the scale of the date picker */
|
|
13748
13834
|
this.scale = "m";
|
|
13835
|
+
/**
|
|
13836
|
+
* Determines where the date-picker component will be positioned relative to the input.
|
|
13837
|
+
* @default "bottom-leading"
|
|
13838
|
+
*/
|
|
13839
|
+
this.placement = defaultMenuPlacement;
|
|
13749
13840
|
/** Range mode activation */
|
|
13750
13841
|
this.range = false;
|
|
13751
13842
|
/**
|
|
@@ -13762,6 +13853,17 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13762
13853
|
this.layout = "horizontal";
|
|
13763
13854
|
this.focusedInput = "start";
|
|
13764
13855
|
this.activeTransitionProp = "opacity";
|
|
13856
|
+
//--------------------------------------------------------------------------
|
|
13857
|
+
//
|
|
13858
|
+
// Private Methods
|
|
13859
|
+
//
|
|
13860
|
+
//--------------------------------------------------------------------------
|
|
13861
|
+
this.setFilteredPlacements = () => {
|
|
13862
|
+
const { el, flipPlacements } = this;
|
|
13863
|
+
this.filteredFlipPlacements = flipPlacements
|
|
13864
|
+
? filterComputedPlacements(flipPlacements, el)
|
|
13865
|
+
: null;
|
|
13866
|
+
};
|
|
13765
13867
|
this.transitionEnd = (event) => {
|
|
13766
13868
|
if (event.propertyName === this.activeTransitionProp) {
|
|
13767
13869
|
this.active
|
|
@@ -13859,6 +13961,9 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13859
13961
|
this.end = undefined;
|
|
13860
13962
|
}
|
|
13861
13963
|
}
|
|
13964
|
+
flipPlacementsHandler() {
|
|
13965
|
+
this.setFilteredPlacements();
|
|
13966
|
+
}
|
|
13862
13967
|
onMinChanged(min) {
|
|
13863
13968
|
this.minAsDate = dateFromISO(min);
|
|
13864
13969
|
}
|
|
@@ -13898,13 +14003,13 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13898
14003
|
}
|
|
13899
14004
|
/** Updates the position of the component. */
|
|
13900
14005
|
async reposition() {
|
|
13901
|
-
const { popper, menuEl } = this;
|
|
14006
|
+
const { placement, popper, menuEl } = this;
|
|
13902
14007
|
const modifiers = this.getModifiers();
|
|
13903
14008
|
popper
|
|
13904
14009
|
? await updatePopper({
|
|
13905
14010
|
el: menuEl,
|
|
13906
14011
|
modifiers,
|
|
13907
|
-
placement
|
|
14012
|
+
placement,
|
|
13908
14013
|
popper
|
|
13909
14014
|
})
|
|
13910
14015
|
: this.createPopper();
|
|
@@ -13940,6 +14045,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13940
14045
|
this.createPopper();
|
|
13941
14046
|
connectLabel(this);
|
|
13942
14047
|
connectForm(this);
|
|
14048
|
+
this.setFilteredPlacements();
|
|
13943
14049
|
}
|
|
13944
14050
|
async componentWillLoad() {
|
|
13945
14051
|
await this.loadLocaleData();
|
|
@@ -13984,11 +14090,6 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13984
14090
|
: startWrapper || endWrapper;
|
|
13985
14091
|
this.createPopper();
|
|
13986
14092
|
}
|
|
13987
|
-
//--------------------------------------------------------------------------
|
|
13988
|
-
//
|
|
13989
|
-
// Private Methods
|
|
13990
|
-
//
|
|
13991
|
-
//--------------------------------------------------------------------------
|
|
13992
14093
|
onLabelClick() {
|
|
13993
14094
|
this.setFocus();
|
|
13994
14095
|
}
|
|
@@ -13998,7 +14099,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13998
14099
|
enabled: true
|
|
13999
14100
|
};
|
|
14000
14101
|
flipModifier.options = {
|
|
14001
|
-
fallbackPlacements: this.
|
|
14102
|
+
fallbackPlacements: this.filteredFlipPlacements || popperMenuComputedPlacements
|
|
14002
14103
|
};
|
|
14003
14104
|
const eventListenerModifier = {
|
|
14004
14105
|
name: "eventListeners",
|
|
@@ -14008,7 +14109,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14008
14109
|
}
|
|
14009
14110
|
createPopper() {
|
|
14010
14111
|
this.destroyPopper();
|
|
14011
|
-
const { menuEl, referenceEl, overlayPositioning } = this;
|
|
14112
|
+
const { menuEl, placement, referenceEl, overlayPositioning } = this;
|
|
14012
14113
|
if (!menuEl || !referenceEl) {
|
|
14013
14114
|
return;
|
|
14014
14115
|
}
|
|
@@ -14017,7 +14118,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14017
14118
|
el: menuEl,
|
|
14018
14119
|
modifiers,
|
|
14019
14120
|
overlayPositioning,
|
|
14020
|
-
placement
|
|
14121
|
+
placement,
|
|
14021
14122
|
referenceEl
|
|
14022
14123
|
});
|
|
14023
14124
|
}
|
|
@@ -14161,6 +14262,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14161
14262
|
static get watchers() { return {
|
|
14162
14263
|
"disabled": ["handleDisabledChange"],
|
|
14163
14264
|
"value": ["valueHandler"],
|
|
14265
|
+
"flipPlacements": ["flipPlacementsHandler"],
|
|
14164
14266
|
"min": ["onMinChanged"],
|
|
14165
14267
|
"max": ["onMaxChanged"],
|
|
14166
14268
|
"active": ["activeHandler"],
|
|
@@ -14440,6 +14542,11 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
14440
14542
|
this.required = false;
|
|
14441
14543
|
/** The scale (size) of the time input */
|
|
14442
14544
|
this.scale = "m";
|
|
14545
|
+
/**
|
|
14546
|
+
* Determines where the popover will be positioned relative to the input.
|
|
14547
|
+
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
14548
|
+
*/
|
|
14549
|
+
this.placement = "auto";
|
|
14443
14550
|
/** number (seconds) that specifies the granularity that the value must adhere to */
|
|
14444
14551
|
this.step = 60;
|
|
14445
14552
|
/** The selected time in UTC (always 24-hour format) */
|
|
@@ -14613,7 +14720,7 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
14613
14720
|
// --------------------------------------------------------------------------
|
|
14614
14721
|
render() {
|
|
14615
14722
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
14616
|
-
return (h(Host, null, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputBlur: this.calciteInputBlurHandler, onCalciteInputFocus: this.calciteInputFocusHandler, onCalciteInputInput: this.calciteInputInputHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, referenceElement: this.referenceElementId }, h("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), h(HiddenFormInputSlot, { component: this })));
|
|
14723
|
+
return (h(Host, null, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputBlur: this.calciteInputBlurHandler, onCalciteInputFocus: this.calciteInputFocusHandler, onCalciteInputInput: this.calciteInputInputHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, placement: this.placement, referenceElement: this.referenceElementId }, h("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), h(HiddenFormInputSlot, { component: this })));
|
|
14617
14724
|
}
|
|
14618
14725
|
get el() { return this; }
|
|
14619
14726
|
static get watchers() { return {
|
|
@@ -14817,7 +14924,8 @@ const CSS$p = {
|
|
|
14817
14924
|
label: "label",
|
|
14818
14925
|
description: "description",
|
|
14819
14926
|
contentEnd: "content-end",
|
|
14820
|
-
actionsEnd: "actions-end"
|
|
14927
|
+
actionsEnd: "actions-end",
|
|
14928
|
+
hasCenterContent: "has-center-content"
|
|
14821
14929
|
};
|
|
14822
14930
|
const SLOTS$f = {
|
|
14823
14931
|
actionsStart: "actions-start",
|
|
@@ -14826,7 +14934,7 @@ const SLOTS$f = {
|
|
|
14826
14934
|
actionsEnd: "actions-end"
|
|
14827
14935
|
};
|
|
14828
14936
|
|
|
14829
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{-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 *{-webkit-box-sizing:border-box;box-sizing:border-box}.nested-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.content-container{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{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{background-color:var(--calcite-ui-foreground-2)}.content-container--button:hover .label,.content-container--button:hover .description{color:var(--calcite-ui-text-1)}.content-container--button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.content{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{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{margin:0px;padding-top:0.25rem;padding-bottom:0.25rem}.label{color:var(--calcite-ui-text-1)}.description{margin-top:0.125rem;color:var(--calcite-ui-text-3)}.content-start,.content-end{
|
|
14937
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{-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 *{-webkit-box-sizing:border-box;box-sizing:border-box}.nested-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.content-container{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{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{background-color:var(--calcite-ui-foreground-2)}.content-container--button:hover .label,.content-container--button:hover .description{color:var(--calcite-ui-text-1)}.content-container--button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.content-container--button .content-start,.content-container--button .content-end{pointer-events:none}.content{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{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{margin:0px;padding-top:0.25rem;padding-bottom:0.25rem}.label{color:var(--calcite-ui-text-1)}.description{margin-top:0.125rem;color:var(--calcite-ui-text-3)}.content-start{-ms-flex-pack:start;justify-content:flex-start}.content-end{-ms-flex-pack:end;justify-content:flex-end}.content-start,.content-end{-ms-flex:1 1 auto;flex:1 1 auto}.has-center-content .content-start,.has-center-content .content-end{-ms-flex:0 1 auto;flex:0 1 auto}.actions-start,.actions-end,.content-start,.content-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.content-start ::slotted(calcite-icon),.content-end ::slotted(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){-ms-flex-item-align:stretch;align-self:stretch;color:inherit}::slotted(calcite-list-item-group),::slotted(calcite-list-item){padding-left:0.5rem}";
|
|
14830
14938
|
|
|
14831
14939
|
const ListItem = class extends HTMLElement$1 {
|
|
14832
14940
|
constructor() {
|
|
@@ -14902,9 +15010,14 @@ const ListItem = class extends HTMLElement$1 {
|
|
|
14902
15010
|
return !!label || !!description ? (h("div", { class: CSS$p.content }, label ? h("div", { class: CSS$p.label }, label) : null, description ? h("div", { class: CSS$p.description }, description) : null)) : null;
|
|
14903
15011
|
}
|
|
14904
15012
|
renderContentContainer() {
|
|
14905
|
-
const { disabled, nonInteractive } = this;
|
|
15013
|
+
const { description, disabled, label, nonInteractive } = this;
|
|
15014
|
+
const hasCenterContent = !!label || !!description;
|
|
14906
15015
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
14907
|
-
return !nonInteractive ? (h("button", { class: {
|
|
15016
|
+
return !nonInteractive ? (h("button", { class: {
|
|
15017
|
+
[CSS$p.contentContainer]: true,
|
|
15018
|
+
[CSS$p.contentContainerButton]: true,
|
|
15019
|
+
[CSS$p.hasCenterContent]: hasCenterContent
|
|
15020
|
+
}, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (h("div", { class: { [CSS$p.contentContainer]: true, [CSS$p.hasCenterContent]: hasCenterContent }, ref: () => (this.focusEl = null) }, content));
|
|
14908
15021
|
}
|
|
14909
15022
|
render() {
|
|
14910
15023
|
return (h(Host, { role: "listitem" }, h("div", { class: CSS$p.container }, this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), h("div", { class: CSS$p.nestedContainer }, h("slot", null))));
|
|
@@ -15227,7 +15340,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
15227
15340
|
});
|
|
15228
15341
|
};
|
|
15229
15342
|
this.focusFirstElement = () => {
|
|
15230
|
-
focusElement(this.closeButtonEl);
|
|
15343
|
+
focusElement(this.disableCloseButton ? getFocusableElements(this.el)[0] : this.closeButtonEl);
|
|
15231
15344
|
};
|
|
15232
15345
|
this.focusLastElement = () => {
|
|
15233
15346
|
const focusableElements = getFocusableElements(this.el).filter((el) => !el.getAttribute("data-focus-fence"));
|
|
@@ -15810,7 +15923,7 @@ const TEXT$8 = {
|
|
|
15810
15923
|
};
|
|
15811
15924
|
const HEADING_LEVEL$4 = 3;
|
|
15812
15925
|
|
|
15813
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{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]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{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{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.container{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]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--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]){--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]){--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]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative
|
|
15926
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{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]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{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{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.container{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]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--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]){--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]){--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]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative}.header{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{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{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{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{margin-bottom:0px}.header-content .summary{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}.header-actions{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,.menu-container:only-child{-webkit-margin-start:auto;margin-inline-start:auto}.menu-button{position:relative;height:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}.menu{min-width:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.content-wrapper{overflow:auto}.content-height{height:100%}.content-container{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{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{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}";
|
|
15814
15927
|
|
|
15815
15928
|
const Panel = class extends HTMLElement$1 {
|
|
15816
15929
|
constructor() {
|
|
@@ -16792,6 +16905,12 @@ const Popover = class extends HTMLElement$1 {
|
|
|
16792
16905
|
// Private Methods
|
|
16793
16906
|
//
|
|
16794
16907
|
// --------------------------------------------------------------------------
|
|
16908
|
+
this.setFilteredPlacements = () => {
|
|
16909
|
+
const { el, flipPlacements } = this;
|
|
16910
|
+
this.filteredFlipPlacements = flipPlacements
|
|
16911
|
+
? filterComputedPlacements(flipPlacements, el)
|
|
16912
|
+
: null;
|
|
16913
|
+
};
|
|
16795
16914
|
this.setUpReferenceElement = () => {
|
|
16796
16915
|
this.removeReferences();
|
|
16797
16916
|
this.effectiveReferenceElement = this.getReferenceElement();
|
|
@@ -16842,6 +16961,9 @@ const Popover = class extends HTMLElement$1 {
|
|
|
16842
16961
|
}
|
|
16843
16962
|
};
|
|
16844
16963
|
}
|
|
16964
|
+
flipPlacementsHandler() {
|
|
16965
|
+
this.setFilteredPlacements();
|
|
16966
|
+
}
|
|
16845
16967
|
offsetDistanceOffsetHandler() {
|
|
16846
16968
|
this.reposition();
|
|
16847
16969
|
}
|
|
@@ -16863,6 +16985,9 @@ const Popover = class extends HTMLElement$1 {
|
|
|
16863
16985
|
// Lifecycle
|
|
16864
16986
|
//
|
|
16865
16987
|
// --------------------------------------------------------------------------
|
|
16988
|
+
connectedCallback() {
|
|
16989
|
+
this.setFilteredPlacements();
|
|
16990
|
+
}
|
|
16866
16991
|
componentWillLoad() {
|
|
16867
16992
|
this.setUpReferenceElement();
|
|
16868
16993
|
}
|
|
@@ -16913,14 +17038,14 @@ const Popover = class extends HTMLElement$1 {
|
|
|
16913
17038
|
: referenceElement) || null);
|
|
16914
17039
|
}
|
|
16915
17040
|
getModifiers() {
|
|
16916
|
-
const { arrowEl,
|
|
17041
|
+
const { arrowEl, disableFlip, disablePointer, offsetDistance, offsetSkidding, filteredFlipPlacements } = this;
|
|
16917
17042
|
const flipModifier = {
|
|
16918
17043
|
name: "flip",
|
|
16919
17044
|
enabled: !disableFlip
|
|
16920
17045
|
};
|
|
16921
|
-
if (
|
|
17046
|
+
if (filteredFlipPlacements) {
|
|
16922
17047
|
flipModifier.options = {
|
|
16923
|
-
fallbackPlacements:
|
|
17048
|
+
fallbackPlacements: filteredFlipPlacements
|
|
16924
17049
|
};
|
|
16925
17050
|
}
|
|
16926
17051
|
const arrowModifier = {
|
|
@@ -16993,6 +17118,7 @@ const Popover = class extends HTMLElement$1 {
|
|
|
16993
17118
|
}
|
|
16994
17119
|
get el() { return this; }
|
|
16995
17120
|
static get watchers() { return {
|
|
17121
|
+
"flipPlacements": ["flipPlacementsHandler"],
|
|
16996
17122
|
"offsetDistance": ["offsetDistanceOffsetHandler"],
|
|
16997
17123
|
"offsetSkidding": ["offsetSkiddingHandler"],
|
|
16998
17124
|
"open": ["openHandler"],
|
|
@@ -18468,6 +18594,9 @@ const ShellPanel = class extends HTMLElement$1 {
|
|
|
18468
18594
|
|
|
18469
18595
|
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{--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{line-height:.75rem}.scale--m{--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{line-height:1rem}.scale--l{--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{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{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]){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,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-width:100%}.thumb{--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{position:absolute;top:0px;bottom:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle__label.hyphen--wrap{display:-ms-flexbox;display:flex}.thumb .handle{-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{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-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{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-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{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{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{background-color:var(--calcite-ui-brand)}.track{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{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range: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{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{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-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{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3);height:48px}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{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{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
18470
18596
|
|
|
18597
|
+
function isRange(value) {
|
|
18598
|
+
return Array.isArray(value);
|
|
18599
|
+
}
|
|
18471
18600
|
const Slider = class extends HTMLElement$1 {
|
|
18472
18601
|
constructor() {
|
|
18473
18602
|
super();
|
|
@@ -18510,13 +18639,12 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18510
18639
|
/** Interval to move on up/down keys */
|
|
18511
18640
|
this.step = 1;
|
|
18512
18641
|
/** Currently selected number (if single select) */
|
|
18513
|
-
this.value =
|
|
18642
|
+
this.value = 0;
|
|
18514
18643
|
/**
|
|
18515
18644
|
* Specify the scale of the slider, defaults to m
|
|
18516
18645
|
*/
|
|
18517
18646
|
this.scale = "m";
|
|
18518
18647
|
this.guid = `calcite-slider-${guid()}`;
|
|
18519
|
-
this.isRange = false;
|
|
18520
18648
|
this.activeProp = "value";
|
|
18521
18649
|
this.minMaxValueRange = null;
|
|
18522
18650
|
this.minValueDragRange = null;
|
|
@@ -18526,7 +18654,7 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18526
18654
|
event.preventDefault();
|
|
18527
18655
|
if (this.dragProp) {
|
|
18528
18656
|
const value = this.translate(event.clientX || event.pageX);
|
|
18529
|
-
if (this.
|
|
18657
|
+
if (isRange(this.value) && this.dragProp === "minMaxValue") {
|
|
18530
18658
|
if (this.minValueDragRange && this.maxValueDragRange && this.minMaxValueRange) {
|
|
18531
18659
|
const newMinValue = value - this.minValueDragRange;
|
|
18532
18660
|
const newMaxValue = value + this.maxValueDragRange;
|
|
@@ -18572,12 +18700,20 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18572
18700
|
histogramWatcher(newHistogram) {
|
|
18573
18701
|
this.hasHistogram = !!newHistogram;
|
|
18574
18702
|
}
|
|
18703
|
+
valueHandler() {
|
|
18704
|
+
this.setMinMaxFromValue();
|
|
18705
|
+
}
|
|
18706
|
+
minMaxValueHandler() {
|
|
18707
|
+
this.setValueFromMinMax();
|
|
18708
|
+
}
|
|
18575
18709
|
//--------------------------------------------------------------------------
|
|
18576
18710
|
//
|
|
18577
18711
|
// Lifecycle
|
|
18578
18712
|
//
|
|
18579
18713
|
//--------------------------------------------------------------------------
|
|
18580
18714
|
connectedCallback() {
|
|
18715
|
+
this.setMinMaxFromValue();
|
|
18716
|
+
this.setValueFromMinMax();
|
|
18581
18717
|
connectLabel(this);
|
|
18582
18718
|
connectForm(this);
|
|
18583
18719
|
}
|
|
@@ -18587,11 +18723,12 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18587
18723
|
this.removeDragListeners();
|
|
18588
18724
|
}
|
|
18589
18725
|
componentWillLoad() {
|
|
18590
|
-
this.isRange = !!(this.maxValue || this.maxValue === 0);
|
|
18591
18726
|
this.tickValues = this.generateTickValues();
|
|
18592
|
-
|
|
18727
|
+
if (!isRange(this.value)) {
|
|
18728
|
+
this.value = this.clamp(this.value);
|
|
18729
|
+
}
|
|
18593
18730
|
afterConnectDefaultValueSet(this, this.value);
|
|
18594
|
-
if (this.snap) {
|
|
18731
|
+
if (this.snap && !isRange(this.value)) {
|
|
18595
18732
|
this.value = this.getClosestStep(this.value);
|
|
18596
18733
|
}
|
|
18597
18734
|
if (this.histogram) {
|
|
@@ -18601,9 +18738,9 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18601
18738
|
componentDidRender() {
|
|
18602
18739
|
if (this.labelHandles) {
|
|
18603
18740
|
this.adjustHostObscuredHandleLabel("value");
|
|
18604
|
-
if (this.
|
|
18741
|
+
if (isRange(this.value)) {
|
|
18605
18742
|
this.adjustHostObscuredHandleLabel("minValue");
|
|
18606
|
-
if (!(this.precise &&
|
|
18743
|
+
if (!(this.precise && !this.hasHistogram)) {
|
|
18607
18744
|
this.hyphenateCollidingRangeHandleLabels();
|
|
18608
18745
|
}
|
|
18609
18746
|
}
|
|
@@ -18613,50 +18750,50 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18613
18750
|
}
|
|
18614
18751
|
render() {
|
|
18615
18752
|
const id = this.el.id || this.guid;
|
|
18753
|
+
const maxProp = isRange(this.value) ? "maxValue" : "value";
|
|
18754
|
+
const value = isRange(this.value) ? this.maxValue : this.value;
|
|
18616
18755
|
const min = this.minValue || this.min;
|
|
18617
|
-
const max = this.maxValue || this.value;
|
|
18618
|
-
const maxProp = this.isRange ? "maxValue" : "value";
|
|
18619
|
-
const value = this[maxProp];
|
|
18620
18756
|
const useMinValue = this.shouldUseMinValue();
|
|
18621
18757
|
const minInterval = this.getUnitInterval(useMinValue ? this.minValue : min) * 100;
|
|
18622
|
-
const maxInterval = this.getUnitInterval(
|
|
18758
|
+
const maxInterval = this.getUnitInterval(value) * 100;
|
|
18623
18759
|
const mirror = this.shouldMirror();
|
|
18624
18760
|
const leftThumbOffset = `${mirror ? 100 - minInterval : minInterval}%`;
|
|
18625
18761
|
const rightThumbOffset = `${mirror ? maxInterval : 100 - maxInterval}%`;
|
|
18626
|
-
const
|
|
18762
|
+
const valueIsRange = isRange(this.value);
|
|
18763
|
+
const handle = (h("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: {
|
|
18627
18764
|
thumb: true,
|
|
18628
18765
|
"thumb--value": true,
|
|
18629
18766
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
|
18630
18767
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle" })));
|
|
18631
|
-
const labeledHandle = (h("div", { "aria-disabled": this.disabled, "aria-label":
|
|
18768
|
+
const labeledHandle = (h("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: {
|
|
18632
18769
|
thumb: true,
|
|
18633
18770
|
"thumb--value": true,
|
|
18634
18771
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
|
18635
18772
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("span", { "aria-hidden": "true", class: "handle__label handle__label--value" }, value ? value.toLocaleString() : value), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value static" }, value ? value.toLocaleString() : value), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value transformed" }, value ? value.toLocaleString() : value), h("div", { class: "handle" })));
|
|
18636
|
-
const histogramLabeledHandle = (h("div", { "aria-disabled": this.disabled, "aria-label":
|
|
18773
|
+
const histogramLabeledHandle = (h("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: {
|
|
18637
18774
|
thumb: true,
|
|
18638
18775
|
"thumb--value": true,
|
|
18639
18776
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
|
18640
18777
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle" }), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value" }, value ? value.toLocaleString() : value), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value static" }, value ? value.toLocaleString() : value), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value transformed" }, value ? value.toLocaleString() : value)));
|
|
18641
|
-
const preciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label":
|
|
18778
|
+
const preciseHandle = (h("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: {
|
|
18642
18779
|
thumb: true,
|
|
18643
18780
|
"thumb--value": true,
|
|
18644
18781
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
18645
18782
|
"thumb--precise": true
|
|
18646
18783
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle" }), h("div", { class: "handle-extension" })));
|
|
18647
|
-
const histogramPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label":
|
|
18784
|
+
const histogramPreciseHandle = (h("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: {
|
|
18648
18785
|
thumb: true,
|
|
18649
18786
|
"thumb--value": true,
|
|
18650
18787
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
18651
18788
|
"thumb--precise": true
|
|
18652
18789
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle-extension" }), h("div", { class: "handle" })));
|
|
18653
|
-
const labeledPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label":
|
|
18790
|
+
const labeledPreciseHandle = (h("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: {
|
|
18654
18791
|
thumb: true,
|
|
18655
18792
|
"thumb--value": true,
|
|
18656
18793
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
18657
18794
|
"thumb--precise": true
|
|
18658
18795
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("span", { "aria-hidden": "true", class: "handle__label handle__label--value" }, value ? value.toLocaleString() : value), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value static" }, value ? value.toLocaleString() : value), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value transformed" }, value ? value.toLocaleString() : value), h("div", { class: "handle" }), h("div", { class: "handle-extension" })));
|
|
18659
|
-
const histogramLabeledPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label":
|
|
18796
|
+
const histogramLabeledPreciseHandle = (h("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: {
|
|
18660
18797
|
thumb: true,
|
|
18661
18798
|
"thumb--value": true,
|
|
18662
18799
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
@@ -18691,14 +18828,14 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18691
18828
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: () => this.dragStart("minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, h("div", { class: "handle-extension" }), h("div", { class: "handle" }), h("span", { "aria-hidden": "true", class: "handle__label handle__label--minValue" }, this.minValue && this.minValue.toLocaleString()), h("span", { "aria-hidden": "true", class: "handle__label handle__label--minValue static" }, this.minValue && this.minValue.toLocaleString()), h("span", { "aria-hidden": "true", class: "handle__label handle__label--minValue transformed" }, this.minValue && this.minValue.toLocaleString())));
|
|
18692
18829
|
return (h(Host, { id: id, onTouchStart: this.handleTouchStart }, h("div", { class: {
|
|
18693
18830
|
["container"]: true,
|
|
18694
|
-
["container--range"]:
|
|
18831
|
+
["container--range"]: valueIsRange,
|
|
18695
18832
|
[`scale--${this.scale}`]: true
|
|
18696
18833
|
} }, this.renderGraph(), h("div", { class: "track", ref: this.storeTrackRef }, h("div", { class: "track__range", onPointerDown: () => this.dragStart("minMaxValue"), style: {
|
|
18697
18834
|
left: `${mirror ? 100 - maxInterval : minInterval}%`,
|
|
18698
18835
|
right: `${mirror ? minInterval : 100 - maxInterval}%`
|
|
18699
18836
|
} }), h("div", { class: "ticks" }, this.tickValues.map((tick) => {
|
|
18700
18837
|
const tickOffset = `${this.getUnitInterval(tick) * 100}%`;
|
|
18701
|
-
let activeTicks = tick >= min && tick <=
|
|
18838
|
+
let activeTicks = tick >= min && tick <= value;
|
|
18702
18839
|
if (useMinValue) {
|
|
18703
18840
|
activeTicks = tick >= this.minValue && tick <= this.maxValue;
|
|
18704
18841
|
}
|
|
@@ -18709,23 +18846,24 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18709
18846
|
left: mirror ? "" : tickOffset,
|
|
18710
18847
|
right: mirror ? tickOffset : ""
|
|
18711
18848
|
} }, this.renderTickLabel(tick)));
|
|
18712
|
-
}))), h("div", { class: "thumb-container" }, !this.precise && !this.labelHandles &&
|
|
18849
|
+
}))), h("div", { class: "thumb-container" }, !this.precise && !this.labelHandles && valueIsRange && minHandle, !this.hasHistogram &&
|
|
18713
18850
|
!this.precise &&
|
|
18714
18851
|
this.labelHandles &&
|
|
18715
|
-
|
|
18716
|
-
minLabeledHandle, this.precise && !this.labelHandles &&
|
|
18852
|
+
valueIsRange &&
|
|
18853
|
+
minLabeledHandle, this.precise && !this.labelHandles && valueIsRange && minPreciseHandle, this.precise && this.labelHandles && valueIsRange && minLabeledPreciseHandle, this.hasHistogram &&
|
|
18717
18854
|
!this.precise &&
|
|
18718
18855
|
this.labelHandles &&
|
|
18719
|
-
|
|
18856
|
+
valueIsRange &&
|
|
18720
18857
|
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 &&
|
|
18721
18858
|
this.precise &&
|
|
18722
18859
|
this.labelHandles &&
|
|
18723
18860
|
histogramLabeledPreciseHandle, h(HiddenFormInputSlot, { component: this })))));
|
|
18724
18861
|
}
|
|
18725
18862
|
renderGraph() {
|
|
18726
|
-
return this.histogram ? (h("calcite-graph", { class: "graph", colorStops: this.histogramStops, data: this.histogram, highlightMax: this.
|
|
18863
|
+
return this.histogram ? (h("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;
|
|
18727
18864
|
}
|
|
18728
18865
|
renderTickLabel(tick) {
|
|
18866
|
+
const valueIsRange = isRange(this.value);
|
|
18729
18867
|
const isMinTickLabel = tick === this.min;
|
|
18730
18868
|
const isMaxTickLabel = tick === this.max;
|
|
18731
18869
|
const tickLabel = (h("span", { class: {
|
|
@@ -18733,26 +18871,26 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18733
18871
|
"tick__label--min": isMinTickLabel,
|
|
18734
18872
|
"tick__label--max": isMaxTickLabel
|
|
18735
18873
|
} }, tick.toLocaleString()));
|
|
18736
|
-
if (this.labelTicks && !this.hasHistogram && !
|
|
18874
|
+
if (this.labelTicks && !this.hasHistogram && !valueIsRange) {
|
|
18737
18875
|
return tickLabel;
|
|
18738
18876
|
}
|
|
18739
18877
|
if (this.labelTicks &&
|
|
18740
18878
|
!this.hasHistogram &&
|
|
18741
|
-
|
|
18879
|
+
valueIsRange &&
|
|
18742
18880
|
!this.precise &&
|
|
18743
18881
|
!this.labelHandles) {
|
|
18744
18882
|
return tickLabel;
|
|
18745
18883
|
}
|
|
18746
18884
|
if (this.labelTicks &&
|
|
18747
18885
|
!this.hasHistogram &&
|
|
18748
|
-
|
|
18886
|
+
valueIsRange &&
|
|
18749
18887
|
!this.precise &&
|
|
18750
18888
|
this.labelHandles) {
|
|
18751
18889
|
return tickLabel;
|
|
18752
18890
|
}
|
|
18753
18891
|
if (this.labelTicks &&
|
|
18754
18892
|
!this.hasHistogram &&
|
|
18755
|
-
|
|
18893
|
+
valueIsRange &&
|
|
18756
18894
|
this.precise &&
|
|
18757
18895
|
(isMinTickLabel || isMaxTickLabel)) {
|
|
18758
18896
|
return tickLabel;
|
|
@@ -18836,7 +18974,7 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18836
18974
|
const x = event.clientX || event.pageX;
|
|
18837
18975
|
const position = this.translate(x);
|
|
18838
18976
|
let prop = "value";
|
|
18839
|
-
if (this.
|
|
18977
|
+
if (isRange(this.value)) {
|
|
18840
18978
|
const inRange = position >= this.minValue && position <= this.maxValue;
|
|
18841
18979
|
if (inRange && this.lastDragProp === "minMaxValue") {
|
|
18842
18980
|
prop = "minMaxValue";
|
|
@@ -18872,6 +19010,19 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18872
19010
|
// Private Methods
|
|
18873
19011
|
//
|
|
18874
19012
|
//--------------------------------------------------------------------------
|
|
19013
|
+
setValueFromMinMax() {
|
|
19014
|
+
const { minValue, maxValue } = this;
|
|
19015
|
+
if (typeof minValue === "number" && typeof maxValue === "number") {
|
|
19016
|
+
this.value = [minValue, maxValue];
|
|
19017
|
+
}
|
|
19018
|
+
}
|
|
19019
|
+
setMinMaxFromValue() {
|
|
19020
|
+
const { value } = this;
|
|
19021
|
+
if (isRange(value)) {
|
|
19022
|
+
this.minValue = value[0];
|
|
19023
|
+
this.maxValue = value[1];
|
|
19024
|
+
}
|
|
19025
|
+
}
|
|
18875
19026
|
onLabelClick() {
|
|
18876
19027
|
this.setFocus();
|
|
18877
19028
|
}
|
|
@@ -18879,7 +19030,7 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18879
19030
|
return this.mirrored && !this.hasHistogram;
|
|
18880
19031
|
}
|
|
18881
19032
|
shouldUseMinValue() {
|
|
18882
|
-
if (!this.
|
|
19033
|
+
if (!isRange(this.value)) {
|
|
18883
19034
|
return false;
|
|
18884
19035
|
}
|
|
18885
19036
|
return ((this.hasHistogram && this.maxValue === 0) || (!this.hasHistogram && this.minValue === 0));
|
|
@@ -19092,19 +19243,20 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19092
19243
|
* Hides bounding tick labels that are obscured by either handle.
|
|
19093
19244
|
*/
|
|
19094
19245
|
hideObscuredBoundingTickLabels() {
|
|
19095
|
-
|
|
19246
|
+
const valueIsRange = isRange(this.value);
|
|
19247
|
+
if (!this.hasHistogram && !valueIsRange && !this.labelHandles && !this.precise) {
|
|
19096
19248
|
return;
|
|
19097
19249
|
}
|
|
19098
|
-
if (!this.hasHistogram && !
|
|
19250
|
+
if (!this.hasHistogram && !valueIsRange && this.labelHandles && !this.precise) {
|
|
19099
19251
|
return;
|
|
19100
19252
|
}
|
|
19101
|
-
if (!this.hasHistogram && !
|
|
19253
|
+
if (!this.hasHistogram && !valueIsRange && !this.labelHandles && this.precise) {
|
|
19102
19254
|
return;
|
|
19103
19255
|
}
|
|
19104
|
-
if (!this.hasHistogram && !
|
|
19256
|
+
if (!this.hasHistogram && !valueIsRange && this.labelHandles && this.precise) {
|
|
19105
19257
|
return;
|
|
19106
19258
|
}
|
|
19107
|
-
if (!this.hasHistogram &&
|
|
19259
|
+
if (!this.hasHistogram && valueIsRange && !this.precise) {
|
|
19108
19260
|
return;
|
|
19109
19261
|
}
|
|
19110
19262
|
if (this.hasHistogram && !this.precise && !this.labelHandles) {
|
|
@@ -19181,13 +19333,16 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19181
19333
|
}
|
|
19182
19334
|
get el() { return this; }
|
|
19183
19335
|
static get watchers() { return {
|
|
19184
|
-
"histogram": ["histogramWatcher"]
|
|
19336
|
+
"histogram": ["histogramWatcher"],
|
|
19337
|
+
"value": ["valueHandler"],
|
|
19338
|
+
"minValue": ["minMaxValueHandler"],
|
|
19339
|
+
"maxValue": ["minMaxValueHandler"]
|
|
19185
19340
|
}; }
|
|
19186
19341
|
static get style() { return sliderCss; }
|
|
19187
19342
|
};
|
|
19188
19343
|
|
|
19189
19344
|
/**!
|
|
19190
|
-
* Sortable 1.
|
|
19345
|
+
* Sortable 1.15.0
|
|
19191
19346
|
* @author RubaXa <trash@rubaxa.org>
|
|
19192
19347
|
* @author owenm <owen23355@gmail.com>
|
|
19193
19348
|
* @license MIT
|
|
@@ -19315,7 +19470,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
19315
19470
|
return target;
|
|
19316
19471
|
}
|
|
19317
19472
|
|
|
19318
|
-
var version = "1.
|
|
19473
|
+
var version = "1.15.0";
|
|
19319
19474
|
|
|
19320
19475
|
function userAgent(pattern) {
|
|
19321
19476
|
if (typeof window !== 'undefined' && window.navigator) {
|
|
@@ -20236,11 +20391,11 @@ supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in
|
|
|
20236
20391
|
return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
|
|
20237
20392
|
},
|
|
20238
20393
|
|
|
20239
|
-
/**
|
|
20240
|
-
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
|
20241
|
-
* @param {Number} x X position
|
|
20242
|
-
* @param {Number} y Y position
|
|
20243
|
-
* @return {HTMLElement} Element of the first found nearest Sortable
|
|
20394
|
+
/**
|
|
20395
|
+
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
|
20396
|
+
* @param {Number} x X position
|
|
20397
|
+
* @param {Number} y Y position
|
|
20398
|
+
* @return {HTMLElement} Element of the first found nearest Sortable
|
|
20244
20399
|
*/
|
|
20245
20400
|
_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
|
20246
20401
|
var ret;
|
|
@@ -20306,7 +20461,7 @@ _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
|
|
20306
20461
|
}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position
|
|
20307
20462
|
|
|
20308
20463
|
|
|
20309
|
-
if (documentExists) {
|
|
20464
|
+
if (documentExists && !ChromeForAndroid) {
|
|
20310
20465
|
document.addEventListener('click', function (evt) {
|
|
20311
20466
|
if (ignoreNextClick) {
|
|
20312
20467
|
evt.preventDefault();
|
|
@@ -20348,10 +20503,10 @@ var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
|
|
|
20348
20503
|
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
|
20349
20504
|
}
|
|
20350
20505
|
};
|
|
20351
|
-
/**
|
|
20352
|
-
* @class Sortable
|
|
20353
|
-
* @param {HTMLElement} el
|
|
20354
|
-
* @param {Object} [options]
|
|
20506
|
+
/**
|
|
20507
|
+
* @class Sortable
|
|
20508
|
+
* @param {HTMLElement} el
|
|
20509
|
+
* @param {Object} [options]
|
|
20355
20510
|
*/
|
|
20356
20511
|
|
|
20357
20512
|
|
|
@@ -20925,6 +21080,7 @@ Sortable.prototype =
|
|
|
20925
21080
|
|
|
20926
21081
|
if (!Sortable.eventCanceled) {
|
|
20927
21082
|
cloneEl = clone(dragEl);
|
|
21083
|
+
cloneEl.removeAttribute("id");
|
|
20928
21084
|
cloneEl.draggable = false;
|
|
20929
21085
|
cloneEl.style['will-change'] = '';
|
|
20930
21086
|
|
|
@@ -21166,7 +21322,14 @@ Sortable.prototype =
|
|
|
21166
21322
|
|
|
21167
21323
|
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
|
|
21168
21324
|
capture();
|
|
21169
|
-
|
|
21325
|
+
|
|
21326
|
+
if (elLastChild && elLastChild.nextSibling) {
|
|
21327
|
+
// the last draggable element is not the last node
|
|
21328
|
+
el.insertBefore(dragEl, elLastChild.nextSibling);
|
|
21329
|
+
} else {
|
|
21330
|
+
el.appendChild(dragEl);
|
|
21331
|
+
}
|
|
21332
|
+
|
|
21170
21333
|
parentEl = el; // actualization
|
|
21171
21334
|
|
|
21172
21335
|
changed();
|
|
@@ -21489,9 +21652,9 @@ Sortable.prototype =
|
|
|
21489
21652
|
}
|
|
21490
21653
|
},
|
|
21491
21654
|
|
|
21492
|
-
/**
|
|
21493
|
-
* Serializes the item into an array of string.
|
|
21494
|
-
* @returns {String[]}
|
|
21655
|
+
/**
|
|
21656
|
+
* Serializes the item into an array of string.
|
|
21657
|
+
* @returns {String[]}
|
|
21495
21658
|
*/
|
|
21496
21659
|
toArray: function toArray() {
|
|
21497
21660
|
var order = [],
|
|
@@ -21512,9 +21675,9 @@ Sortable.prototype =
|
|
|
21512
21675
|
return order;
|
|
21513
21676
|
},
|
|
21514
21677
|
|
|
21515
|
-
/**
|
|
21516
|
-
* Sorts the elements according to the array.
|
|
21517
|
-
* @param {String[]} order order of the items
|
|
21678
|
+
/**
|
|
21679
|
+
* Sorts the elements according to the array.
|
|
21680
|
+
* @param {String[]} order order of the items
|
|
21518
21681
|
*/
|
|
21519
21682
|
sort: function sort(order, useAnimation) {
|
|
21520
21683
|
var items = {},
|
|
@@ -21536,29 +21699,29 @@ Sortable.prototype =
|
|
|
21536
21699
|
useAnimation && this.animateAll();
|
|
21537
21700
|
},
|
|
21538
21701
|
|
|
21539
|
-
/**
|
|
21540
|
-
* Save the current sorting
|
|
21702
|
+
/**
|
|
21703
|
+
* Save the current sorting
|
|
21541
21704
|
*/
|
|
21542
21705
|
save: function save() {
|
|
21543
21706
|
var store = this.options.store;
|
|
21544
21707
|
store && store.set && store.set(this);
|
|
21545
21708
|
},
|
|
21546
21709
|
|
|
21547
|
-
/**
|
|
21548
|
-
* 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.
|
|
21549
|
-
* @param {HTMLElement} el
|
|
21550
|
-
* @param {String} [selector] default: `options.draggable`
|
|
21551
|
-
* @returns {HTMLElement|null}
|
|
21710
|
+
/**
|
|
21711
|
+
* 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.
|
|
21712
|
+
* @param {HTMLElement} el
|
|
21713
|
+
* @param {String} [selector] default: `options.draggable`
|
|
21714
|
+
* @returns {HTMLElement|null}
|
|
21552
21715
|
*/
|
|
21553
21716
|
closest: function closest$1(el, selector) {
|
|
21554
21717
|
return closest(el, selector || this.options.draggable, this.el, false);
|
|
21555
21718
|
},
|
|
21556
21719
|
|
|
21557
|
-
/**
|
|
21558
|
-
* Set/get option
|
|
21559
|
-
* @param {string} name
|
|
21560
|
-
* @param {*} [value]
|
|
21561
|
-
* @returns {*}
|
|
21720
|
+
/**
|
|
21721
|
+
* Set/get option
|
|
21722
|
+
* @param {string} name
|
|
21723
|
+
* @param {*} [value]
|
|
21724
|
+
* @returns {*}
|
|
21562
21725
|
*/
|
|
21563
21726
|
option: function option(name, value) {
|
|
21564
21727
|
var options = this.options;
|
|
@@ -21580,8 +21743,8 @@ Sortable.prototype =
|
|
|
21580
21743
|
}
|
|
21581
21744
|
},
|
|
21582
21745
|
|
|
21583
|
-
/**
|
|
21584
|
-
* Destroy
|
|
21746
|
+
/**
|
|
21747
|
+
* Destroy
|
|
21585
21748
|
*/
|
|
21586
21749
|
destroy: function destroy() {
|
|
21587
21750
|
pluginEvent('destroy', this);
|
|
@@ -21758,11 +21921,11 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
|
|
|
21758
21921
|
|
|
21759
21922
|
return 0;
|
|
21760
21923
|
}
|
|
21761
|
-
/**
|
|
21762
|
-
* Gets the direction dragEl must be swapped relative to target in order to make it
|
|
21763
|
-
* seem that dragEl has been "inserted" into that element's position
|
|
21764
|
-
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
|
21765
|
-
* @return {Number} Direction dragEl must be swapped
|
|
21924
|
+
/**
|
|
21925
|
+
* Gets the direction dragEl must be swapped relative to target in order to make it
|
|
21926
|
+
* seem that dragEl has been "inserted" into that element's position
|
|
21927
|
+
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
|
21928
|
+
* @return {Number} Direction dragEl must be swapped
|
|
21766
21929
|
*/
|
|
21767
21930
|
|
|
21768
21931
|
|
|
@@ -21773,11 +21936,11 @@ function _getInsertDirection(target) {
|
|
|
21773
21936
|
return -1;
|
|
21774
21937
|
}
|
|
21775
21938
|
}
|
|
21776
|
-
/**
|
|
21777
|
-
* Generate id
|
|
21778
|
-
* @param {HTMLElement} el
|
|
21779
|
-
* @returns {String}
|
|
21780
|
-
* @private
|
|
21939
|
+
/**
|
|
21940
|
+
* Generate id
|
|
21941
|
+
* @param {HTMLElement} el
|
|
21942
|
+
* @returns {String}
|
|
21943
|
+
* @private
|
|
21781
21944
|
*/
|
|
21782
21945
|
|
|
21783
21946
|
|
|
@@ -21841,18 +22004,18 @@ Sortable.utils = {
|
|
|
21841
22004
|
detectDirection: _detectDirection,
|
|
21842
22005
|
getChild: getChild
|
|
21843
22006
|
};
|
|
21844
|
-
/**
|
|
21845
|
-
* Get the Sortable instance of an element
|
|
21846
|
-
* @param {HTMLElement} element The element
|
|
21847
|
-
* @return {Sortable|undefined} The instance of Sortable
|
|
22007
|
+
/**
|
|
22008
|
+
* Get the Sortable instance of an element
|
|
22009
|
+
* @param {HTMLElement} element The element
|
|
22010
|
+
* @return {Sortable|undefined} The instance of Sortable
|
|
21848
22011
|
*/
|
|
21849
22012
|
|
|
21850
22013
|
Sortable.get = function (element) {
|
|
21851
22014
|
return element[expando];
|
|
21852
22015
|
};
|
|
21853
|
-
/**
|
|
21854
|
-
* Mount a plugin to Sortable
|
|
21855
|
-
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
|
22016
|
+
/**
|
|
22017
|
+
* Mount a plugin to Sortable
|
|
22018
|
+
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
|
21856
22019
|
*/
|
|
21857
22020
|
|
|
21858
22021
|
|
|
@@ -21871,10 +22034,10 @@ Sortable.mount = function () {
|
|
|
21871
22034
|
PluginManager.mount(plugin);
|
|
21872
22035
|
});
|
|
21873
22036
|
};
|
|
21874
|
-
/**
|
|
21875
|
-
* Create sortable instance
|
|
21876
|
-
* @param {HTMLElement} el
|
|
21877
|
-
* @param {Object} [options]
|
|
22037
|
+
/**
|
|
22038
|
+
* Create sortable instance
|
|
22039
|
+
* @param {HTMLElement} el
|
|
22040
|
+
* @param {Object} [options]
|
|
21878
22041
|
*/
|
|
21879
22042
|
|
|
21880
22043
|
|
|
@@ -22754,7 +22917,8 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
22754
22917
|
}
|
|
22755
22918
|
}
|
|
22756
22919
|
updateActiveItemOnChange(event) {
|
|
22757
|
-
if (event.target === this.parentStepperEl
|
|
22920
|
+
if (event.target === this.parentStepperEl ||
|
|
22921
|
+
event.composedPath().includes(this.parentStepperEl)) {
|
|
22758
22922
|
this.activePosition = event.detail.position;
|
|
22759
22923
|
this.determineActiveItem();
|
|
22760
22924
|
}
|
|
@@ -22842,6 +23006,7 @@ const Switch = class extends HTMLElement$1 {
|
|
|
22842
23006
|
const key = e.key;
|
|
22843
23007
|
if (!this.disabled && (key === " " || key === "Enter")) {
|
|
22844
23008
|
this.toggle();
|
|
23009
|
+
e.preventDefault();
|
|
22845
23010
|
}
|
|
22846
23011
|
};
|
|
22847
23012
|
this.clickHandler = () => {
|
|
@@ -22904,7 +23069,7 @@ const Switch = class extends HTMLElement$1 {
|
|
|
22904
23069
|
//
|
|
22905
23070
|
// --------------------------------------------------------------------------
|
|
22906
23071
|
render() {
|
|
22907
|
-
return (h(Host, { onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: "container",
|
|
23072
|
+
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: "container", ref: this.setSwitchEl, role: "switch", tabIndex: 0 }, h("div", { class: "track" }, h("div", { class: "handle" })), h(HiddenFormInputSlot, { component: this }))));
|
|
22908
23073
|
}
|
|
22909
23074
|
get el() { return this; }
|
|
22910
23075
|
static get watchers() { return {
|
|
@@ -22927,14 +23092,6 @@ const Tab = class extends HTMLElement$1 {
|
|
|
22927
23092
|
this.active = false;
|
|
22928
23093
|
/** @internal Parent tabs component scale value */
|
|
22929
23094
|
this.scale = "m";
|
|
22930
|
-
//--------------------------------------------------------------------------
|
|
22931
|
-
//
|
|
22932
|
-
// Private State/Props
|
|
22933
|
-
//
|
|
22934
|
-
//--------------------------------------------------------------------------
|
|
22935
|
-
/**
|
|
22936
|
-
* @internal
|
|
22937
|
-
*/
|
|
22938
23095
|
this.guid = `calcite-tab-title-${guid()}`;
|
|
22939
23096
|
}
|
|
22940
23097
|
//--------------------------------------------------------------------------
|
|
@@ -22946,12 +23103,15 @@ const Tab = class extends HTMLElement$1 {
|
|
|
22946
23103
|
const id = this.el.id || this.guid;
|
|
22947
23104
|
return (h(Host, { "aria-expanded": this.active.toString(), "aria-labelledby": this.labeledBy, id: id, role: "tabpanel" }, h("section", null, h("slot", null))));
|
|
22948
23105
|
}
|
|
23106
|
+
connectedCallback() {
|
|
23107
|
+
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
23108
|
+
}
|
|
22949
23109
|
componentDidLoad() {
|
|
22950
23110
|
this.calciteTabRegister.emit();
|
|
22951
23111
|
}
|
|
22952
23112
|
componentWillRender() {
|
|
22953
23113
|
var _a;
|
|
22954
|
-
this.scale = (_a = this.
|
|
23114
|
+
this.scale = (_a = this.parentTabsEl) === null || _a === void 0 ? void 0 : _a.scale;
|
|
22955
23115
|
}
|
|
22956
23116
|
disconnectedCallback() {
|
|
22957
23117
|
var _a;
|
|
@@ -22965,11 +23125,14 @@ const Tab = class extends HTMLElement$1 {
|
|
|
22965
23125
|
// Event Listeners
|
|
22966
23126
|
//
|
|
22967
23127
|
//--------------------------------------------------------------------------
|
|
22968
|
-
|
|
23128
|
+
internalTabChangeHandler(event) {
|
|
23129
|
+
const targetTabsEl = event
|
|
23130
|
+
.composedPath()
|
|
23131
|
+
.find((el) => el.tagName === "CALCITE-TABS");
|
|
22969
23132
|
// to allow `<calcite-tabs>` to be nested we need to make sure this
|
|
22970
|
-
// `calciteTabChange` event was actually fired from a
|
|
22971
|
-
//
|
|
22972
|
-
if (
|
|
23133
|
+
// `calciteTabChange` event was actually fired from a within the same
|
|
23134
|
+
// `<calcite-tabs>` that is the a parent of this tab.
|
|
23135
|
+
if (targetTabsEl !== this.parentTabsEl) {
|
|
22973
23136
|
return;
|
|
22974
23137
|
}
|
|
22975
23138
|
if (this.tab) {
|
|
@@ -23015,6 +23178,7 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23015
23178
|
this.__registerHost();
|
|
23016
23179
|
this.__attachShadow();
|
|
23017
23180
|
this.calciteTabChange = createEvent(this, "calciteTabChange", 7);
|
|
23181
|
+
this.calciteInternalTabChange = createEvent(this, "calciteInternalTabChange", 7);
|
|
23018
23182
|
/** @internal Parent tabs component scale value */
|
|
23019
23183
|
this.scale = "m";
|
|
23020
23184
|
/** @internal Parent tabs component layout value */
|
|
@@ -23024,6 +23188,12 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23024
23188
|
/** @internal Parent tabs component bordered value when layout is "inline" */
|
|
23025
23189
|
this.bordered = false;
|
|
23026
23190
|
this.animationActiveDuration = 0.3;
|
|
23191
|
+
this.resizeObserver = createObserver("resize", () => {
|
|
23192
|
+
// remove active indicator transition duration during resize to prevent wobble
|
|
23193
|
+
this.activeIndicatorEl.style.transitionDuration = "0s";
|
|
23194
|
+
this.updateActiveWidth();
|
|
23195
|
+
this.updateOffsetPosition();
|
|
23196
|
+
});
|
|
23027
23197
|
//--------------------------------------------------------------------------
|
|
23028
23198
|
//
|
|
23029
23199
|
// Private Methods
|
|
@@ -23042,7 +23212,7 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23042
23212
|
this.selectedTab !== null) {
|
|
23043
23213
|
localStorage.setItem(`calcite-tab-nav-${this.storageId}`, JSON.stringify(this.selectedTab));
|
|
23044
23214
|
}
|
|
23045
|
-
this.
|
|
23215
|
+
this.calciteInternalTabChange.emit({
|
|
23046
23216
|
tab: this.selectedTab
|
|
23047
23217
|
});
|
|
23048
23218
|
this.selectedTabEl = await this.getTabTitleById(this.selectedTab);
|
|
@@ -23058,22 +23228,28 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23058
23228
|
// Lifecycle
|
|
23059
23229
|
//
|
|
23060
23230
|
//--------------------------------------------------------------------------
|
|
23231
|
+
connectedCallback() {
|
|
23232
|
+
var _a;
|
|
23233
|
+
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
23234
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
|
|
23235
|
+
}
|
|
23236
|
+
disconnectedCallback() {
|
|
23237
|
+
var _a;
|
|
23238
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
23239
|
+
}
|
|
23061
23240
|
componentWillLoad() {
|
|
23062
23241
|
const storageKey = `calcite-tab-nav-${this.storageId}`;
|
|
23063
23242
|
if (localStorage && this.storageId && localStorage.getItem(storageKey)) {
|
|
23064
23243
|
const storedTab = JSON.parse(localStorage.getItem(storageKey));
|
|
23065
23244
|
this.selectedTab = storedTab;
|
|
23066
|
-
this.calciteTabChange.emit({
|
|
23067
|
-
tab: this.selectedTab
|
|
23068
|
-
});
|
|
23069
23245
|
}
|
|
23070
23246
|
}
|
|
23071
23247
|
componentWillRender() {
|
|
23072
|
-
|
|
23073
|
-
this.layout =
|
|
23074
|
-
this.position =
|
|
23075
|
-
this.scale =
|
|
23076
|
-
this.bordered =
|
|
23248
|
+
const { parentTabsEl } = this;
|
|
23249
|
+
this.layout = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.layout;
|
|
23250
|
+
this.position = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.position;
|
|
23251
|
+
this.scale = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.scale;
|
|
23252
|
+
this.bordered = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.bordered;
|
|
23077
23253
|
// fix issue with active tab-title not lining up with blue indicator
|
|
23078
23254
|
if (this.selectedTabEl) {
|
|
23079
23255
|
this.updateOffsetPosition();
|
|
@@ -23085,7 +23261,7 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23085
23261
|
this.tabTitles.every((title) => !title.active) &&
|
|
23086
23262
|
!this.selectedTab) {
|
|
23087
23263
|
this.tabTitles[0].getTabIdentifier().then((tab) => {
|
|
23088
|
-
this.
|
|
23264
|
+
this.calciteInternalTabChange.emit({
|
|
23089
23265
|
tab
|
|
23090
23266
|
});
|
|
23091
23267
|
});
|
|
@@ -23103,12 +23279,6 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23103
23279
|
// Event Listeners
|
|
23104
23280
|
//
|
|
23105
23281
|
//--------------------------------------------------------------------------
|
|
23106
|
-
resizeHandler() {
|
|
23107
|
-
// remove active indicator transition duration during resize to prevent wobble
|
|
23108
|
-
this.activeIndicatorEl.style.transitionDuration = "0s";
|
|
23109
|
-
this.updateActiveWidth();
|
|
23110
|
-
this.updateOffsetPosition();
|
|
23111
|
-
}
|
|
23112
23282
|
focusPreviousTabHandler(e) {
|
|
23113
23283
|
const currentIndex = this.getIndexOfTabTitle(e.target, this.enabledTabTitles);
|
|
23114
23284
|
const previousTab = this.enabledTabTitles[currentIndex - 1] ||
|
|
@@ -23124,13 +23294,20 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23124
23294
|
e.stopPropagation();
|
|
23125
23295
|
e.preventDefault();
|
|
23126
23296
|
}
|
|
23127
|
-
|
|
23297
|
+
internalActivateTabHandler(e) {
|
|
23128
23298
|
this.selectedTab = e.detail.tab
|
|
23129
23299
|
? e.detail.tab
|
|
23130
23300
|
: this.getIndexOfTabTitle(e.target);
|
|
23131
23301
|
e.stopPropagation();
|
|
23132
23302
|
e.preventDefault();
|
|
23133
23303
|
}
|
|
23304
|
+
activateTabHandler(e) {
|
|
23305
|
+
this.calciteTabChange.emit({
|
|
23306
|
+
tab: this.selectedTab
|
|
23307
|
+
});
|
|
23308
|
+
e.stopPropagation();
|
|
23309
|
+
e.preventDefault();
|
|
23310
|
+
}
|
|
23134
23311
|
/**
|
|
23135
23312
|
* Check for active tabs on register and update selected
|
|
23136
23313
|
*/
|
|
@@ -23139,12 +23316,13 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23139
23316
|
this.selectedTab = e.detail;
|
|
23140
23317
|
}
|
|
23141
23318
|
}
|
|
23142
|
-
|
|
23319
|
+
globalInternalTabChangeHandler(e) {
|
|
23143
23320
|
if (this.syncId &&
|
|
23144
23321
|
e.target !== this.el &&
|
|
23145
23322
|
e.target.syncId === this.syncId &&
|
|
23146
23323
|
this.selectedTab !== e.detail.tab) {
|
|
23147
23324
|
this.selectedTab = e.detail.tab;
|
|
23325
|
+
e.stopPropagation();
|
|
23148
23326
|
}
|
|
23149
23327
|
}
|
|
23150
23328
|
updateOffsetPosition() {
|
|
@@ -23193,6 +23371,7 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
23193
23371
|
this.__registerHost();
|
|
23194
23372
|
this.__attachShadow();
|
|
23195
23373
|
this.calciteTabsActivate = createEvent(this, "calciteTabsActivate", 7);
|
|
23374
|
+
this.calciteInternalTabsActivate = createEvent(this, "calciteInternalTabsActivate", 7);
|
|
23196
23375
|
this.calciteTabsFocusNext = createEvent(this, "calciteTabsFocusNext", 7);
|
|
23197
23376
|
this.calciteTabsFocusPrevious = createEvent(this, "calciteTabsFocusPrevious", 7);
|
|
23198
23377
|
this.calciteTabTitleRegister = createEvent(this, "calciteTabTitleRegister", 7);
|
|
@@ -23216,14 +23395,11 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
23216
23395
|
this.mutationObserver = createObserver("mutation", () => this.updateHasText());
|
|
23217
23396
|
/** determine if there is slotted text for styling purposes */
|
|
23218
23397
|
this.hasText = false;
|
|
23219
|
-
/**
|
|
23220
|
-
* @internal
|
|
23221
|
-
*/
|
|
23222
23398
|
this.guid = `calcite-tab-title-${guid()}`;
|
|
23223
23399
|
}
|
|
23224
23400
|
activeTabChanged() {
|
|
23225
23401
|
if (this.active) {
|
|
23226
|
-
this.emitActiveTab();
|
|
23402
|
+
this.emitActiveTab(false);
|
|
23227
23403
|
}
|
|
23228
23404
|
}
|
|
23229
23405
|
//--------------------------------------------------------------------------
|
|
@@ -23249,7 +23425,7 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
23249
23425
|
this.updateHasText();
|
|
23250
23426
|
}
|
|
23251
23427
|
if (this.tab && this.active) {
|
|
23252
|
-
this.emitActiveTab();
|
|
23428
|
+
this.emitActiveTab(false);
|
|
23253
23429
|
}
|
|
23254
23430
|
}
|
|
23255
23431
|
componentWillRender() {
|
|
@@ -23286,17 +23462,22 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
23286
23462
|
// Event Listeners
|
|
23287
23463
|
//
|
|
23288
23464
|
//--------------------------------------------------------------------------
|
|
23289
|
-
|
|
23290
|
-
|
|
23291
|
-
|
|
23292
|
-
|
|
23293
|
-
|
|
23294
|
-
|
|
23295
|
-
this.getTabIndex().then((index) => {
|
|
23296
|
-
this.active = index === event.detail.tab;
|
|
23297
|
-
});
|
|
23298
|
-
}
|
|
23465
|
+
internalTabChangeHandler(event) {
|
|
23466
|
+
const targetTabsEl = event
|
|
23467
|
+
.composedPath()
|
|
23468
|
+
.find((el) => el.tagName === "CALCITE-TABS");
|
|
23469
|
+
if (targetTabsEl !== this.parentTabsEl) {
|
|
23470
|
+
return;
|
|
23299
23471
|
}
|
|
23472
|
+
if (this.tab) {
|
|
23473
|
+
this.active = this.tab === event.detail.tab;
|
|
23474
|
+
}
|
|
23475
|
+
else {
|
|
23476
|
+
this.getTabIndex().then((index) => {
|
|
23477
|
+
this.active = index === event.detail.tab;
|
|
23478
|
+
});
|
|
23479
|
+
}
|
|
23480
|
+
event.stopPropagation();
|
|
23300
23481
|
}
|
|
23301
23482
|
onClick() {
|
|
23302
23483
|
this.emitActiveTab();
|
|
@@ -23356,11 +23537,14 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
23356
23537
|
var _a;
|
|
23357
23538
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
23358
23539
|
}
|
|
23359
|
-
emitActiveTab() {
|
|
23360
|
-
if (
|
|
23361
|
-
|
|
23362
|
-
|
|
23363
|
-
|
|
23540
|
+
emitActiveTab(userTriggered = true) {
|
|
23541
|
+
if (this.disabled) {
|
|
23542
|
+
return;
|
|
23543
|
+
}
|
|
23544
|
+
const payload = { tab: this.tab };
|
|
23545
|
+
this.calciteInternalTabsActivate.emit(payload);
|
|
23546
|
+
if (userTriggered) {
|
|
23547
|
+
this.calciteTabsActivate.emit(payload);
|
|
23364
23548
|
}
|
|
23365
23549
|
}
|
|
23366
23550
|
get el() { return this; }
|
|
@@ -23413,14 +23597,12 @@ const Tabs = class extends HTMLElement$1 {
|
|
|
23413
23597
|
//
|
|
23414
23598
|
//--------------------------------------------------------------------------
|
|
23415
23599
|
/**
|
|
23416
|
-
* @internal
|
|
23417
23600
|
*
|
|
23418
23601
|
* Stores an array of ids of `<calcite-tab-titles>`s to match up ARIA
|
|
23419
23602
|
* attributes.
|
|
23420
23603
|
*/
|
|
23421
23604
|
this.titles = [];
|
|
23422
23605
|
/**
|
|
23423
|
-
* @internal
|
|
23424
23606
|
*
|
|
23425
23607
|
* Stores an array of ids of `<calcite-tab>`s to match up ARIA attributes.
|
|
23426
23608
|
*/
|
|
@@ -23482,7 +23664,6 @@ const Tabs = class extends HTMLElement$1 {
|
|
|
23482
23664
|
//
|
|
23483
23665
|
//--------------------------------------------------------------------------
|
|
23484
23666
|
/**
|
|
23485
|
-
* @internal
|
|
23486
23667
|
*
|
|
23487
23668
|
* Matches up elements from the internal `tabs` and `titles` to automatically
|
|
23488
23669
|
* update the ARIA attributes and link `<calcite-tab>` and
|
|
@@ -23532,7 +23713,7 @@ const SLOTS$3 = {
|
|
|
23532
23713
|
contentEnd: "content-end"
|
|
23533
23714
|
};
|
|
23534
23715
|
|
|
23535
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{-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{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}:host .content{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{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{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{padding-
|
|
23716
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{-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{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}:host .content{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{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{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{padding-inline:0 0.75rem}:host .content-slot-container:last-child{padding-inline:0.75rem 0}:host .heading{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{-ms-flex-align:center;align-items:center;text-align:center;min-height:12rem}:host .large-visual .icon{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{-ms-flex-item-align:center;align-self:center}:host .description{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])){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){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){-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])){padding:0px}:host([icon][heading]:not([description])) .icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host([icon][heading]:not([description])) .large-visual{text-align:center}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host(:hover) .heading,:host([active]) .heading{color:var(--calcite-ui-text-1)}:host(:hover) .description,:host([active]) .description{color:var(--calcite-ui-text-2)}";
|
|
23536
23717
|
|
|
23537
23718
|
const Tile = class extends HTMLElement$1 {
|
|
23538
23719
|
constructor() {
|
|
@@ -24284,11 +24465,6 @@ const TimePicker = class extends HTMLElement$1 {
|
|
|
24284
24465
|
valueWatcher(newValue) {
|
|
24285
24466
|
this.setValue(newValue, false);
|
|
24286
24467
|
}
|
|
24287
|
-
hourChanged(newHour) {
|
|
24288
|
-
if (this.meridiem && isValidNumber(newHour)) {
|
|
24289
|
-
this.setValuePart("meridiem", getMeridiem(newHour));
|
|
24290
|
-
}
|
|
24291
|
-
}
|
|
24292
24468
|
//--------------------------------------------------------------------------
|
|
24293
24469
|
//
|
|
24294
24470
|
// Event Listeners
|
|
@@ -24454,8 +24630,7 @@ const TimePicker = class extends HTMLElement$1 {
|
|
|
24454
24630
|
get el() { return this; }
|
|
24455
24631
|
static get watchers() { return {
|
|
24456
24632
|
"locale": ["localeWatcher"],
|
|
24457
|
-
"value": ["valueWatcher"]
|
|
24458
|
-
"hour": ["hourChanged"]
|
|
24633
|
+
"value": ["valueWatcher"]
|
|
24459
24634
|
}; }
|
|
24460
24635
|
static get style() { return timePickerCss; }
|
|
24461
24636
|
};
|
|
@@ -24616,7 +24791,7 @@ const TipManager = class extends HTMLElement$1 {
|
|
|
24616
24791
|
//
|
|
24617
24792
|
// --------------------------------------------------------------------------
|
|
24618
24793
|
/**
|
|
24619
|
-
*
|
|
24794
|
+
* Closed state of the `calcite-tip-manager`.
|
|
24620
24795
|
*/
|
|
24621
24796
|
this.closed = false;
|
|
24622
24797
|
this.mutationObserver = createObserver("mutation", () => this.setUpTips());
|
|
@@ -25095,11 +25270,7 @@ const TooltipManager = class extends HTMLElement$1 {
|
|
|
25095
25270
|
this.hoverEvent(event, false);
|
|
25096
25271
|
}
|
|
25097
25272
|
clickHandler(event) {
|
|
25098
|
-
|
|
25099
|
-
this.clickedTooltip = clickedTooltip;
|
|
25100
|
-
if (clickedTooltip) {
|
|
25101
|
-
this.toggleTooltip(clickedTooltip, false);
|
|
25102
|
-
}
|
|
25273
|
+
this.clickedTooltip = this.queryTooltip(event.composedPath());
|
|
25103
25274
|
}
|
|
25104
25275
|
focusShow(event) {
|
|
25105
25276
|
this.focusEvent(event, true);
|
|
@@ -25957,9 +26128,9 @@ const CalciteHandle = /*@__PURE__*/proxyCustomElement(Handle, [1,"calcite-handle
|
|
|
25957
26128
|
const CalciteIcon = /*@__PURE__*/proxyCustomElement(Icon, [1,"calcite-icon",{"icon":[513],"flipRtl":[516,"flip-rtl"],"scale":[513],"textLabel":[1,"text-label"],"pathData":[32],"visible":[32]}]);
|
|
25958
26129
|
const CalciteInlineEditable = /*@__PURE__*/proxyCustomElement(InlineEditable, [1,"calcite-inline-editable",{"disabled":[516],"editingEnabled":[1540,"editing-enabled"],"loading":[1540],"controls":[516],"intlEnableEditing":[513,"intl-enable-editing"],"intlCancelEditing":[513,"intl-cancel-editing"],"intlConfirmChanges":[513,"intl-confirm-changes"],"scale":[1537],"afterConfirm":[16]},[[0,"calciteInputBlur","blurHandler"]]]);
|
|
25959
26130
|
const CalciteInput = /*@__PURE__*/proxyCustomElement(Input, [1,"calcite-input",{"alignment":[513],"autofocus":[4],"clearable":[516],"disabled":[516],"groupSeparator":[4,"group-separator"],"hidden":[4],"icon":[520],"intlLoading":[1,"intl-loading"],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"locale":[1],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxlength":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[4,"read-only"],"required":[4],"scale":[1537],"status":[1537],"step":[520],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"type":[513],"value":[1025],"localizedValue":[32]}]);
|
|
25960
|
-
const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(InputDatePicker, [1,"calcite-input-date-picker",{"disabled":[516],"value":[1025],"flipPlacements":[16],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"active":[1540],"name":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"range":[516],"required":[516],"start":[1025],"end":[1025],"overlayPositioning":[1,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"focusedInput":[32],"localeData":[32]},[[0,"calciteDatePickerChange","handleDateOrRangeChange"],[0,"calciteDatePickerRangeChange","handleDateOrRangeChange"],[0,"calciteDaySelect","calciteDaySelectHandler"]]]);
|
|
26131
|
+
const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(InputDatePicker, [1,"calcite-input-date-picker",{"disabled":[516],"value":[1025],"flipPlacements":[16],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"active":[1540],"name":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"placement":[513],"range":[516],"required":[516],"start":[1025],"end":[1025],"overlayPositioning":[1,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"focusedInput":[32],"localeData":[32]},[[0,"calciteDatePickerChange","handleDateOrRangeChange"],[0,"calciteDatePickerRangeChange","handleDateOrRangeChange"],[0,"calciteDaySelect","calciteDaySelectHandler"]]]);
|
|
25961
26132
|
const CalciteInputMessage = /*@__PURE__*/proxyCustomElement(InputMessage, [1,"calcite-input-message",{"active":[516],"icon":[520],"scale":[1537],"status":[1537],"type":[513]}]);
|
|
25962
|
-
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(InputTimePicker, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"keyup","keyUpHandler"],[0,"calciteTimePickerBlur","timePickerBlurHandler"],[0,"calciteTimePickerFocus","timePickerFocusHandler"]]]);
|
|
26133
|
+
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(InputTimePicker, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"placement":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"keyup","keyUpHandler"],[0,"calciteTimePickerBlur","timePickerBlurHandler"],[0,"calciteTimePickerFocus","timePickerFocusHandler"]]]);
|
|
25963
26134
|
const CalciteLabel = /*@__PURE__*/proxyCustomElement(Label, [1,"calcite-label",{"alignment":[513],"status":[513],"for":[513],"scale":[513],"layout":[513],"disableSpacing":[4,"disable-spacing"],"disabled":[516]}]);
|
|
25964
26135
|
const CalciteLink = /*@__PURE__*/proxyCustomElement(Link, [1,"calcite-link",{"disabled":[516],"download":[520],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1]}]);
|
|
25965
26136
|
const CalciteList = /*@__PURE__*/proxyCustomElement(List$1, [1,"calcite-list",{"disabled":[516],"headingLevel":[2,"heading-level"]}]);
|
|
@@ -25994,9 +26165,9 @@ const CalciteSplitButton = /*@__PURE__*/proxyCustomElement(SplitButton, [1,"calc
|
|
|
25994
26165
|
const CalciteStepper = /*@__PURE__*/proxyCustomElement(Stepper, [1,"calcite-stepper",{"icon":[516],"layout":[513],"numbered":[516],"scale":[513],"requestedContent":[1040]},[[0,"calciteStepperItemKeyEvent","calciteStepperItemKeyEvent"],[0,"calciteStepperItemRegister","registerItem"],[0,"calciteStepperItemSelect","updateItem"]]]);
|
|
25995
26166
|
const CalciteStepperItem = /*@__PURE__*/proxyCustomElement(StepperItem, [1,"calcite-stepper-item",{"active":[1540],"complete":[516],"error":[4],"disabled":[516],"itemTitle":[1,"item-title"],"itemSubtitle":[1,"item-subtitle"],"layout":[1537],"icon":[1028],"numbered":[1028],"scale":[1537]},[[0,"keydown","keyDownHandler"],[16,"calciteStepperItemChange","updateActiveItemOnChange"]]]);
|
|
25996
26167
|
const CalciteSwitch = /*@__PURE__*/proxyCustomElement(Switch, [1,"calcite-switch",{"disabled":[516],"label":[1],"name":[513],"scale":[513],"switched":[1028],"checked":[1540],"value":[8]}]);
|
|
25997
|
-
const CalciteTab = /*@__PURE__*/proxyCustomElement(Tab, [1,"calcite-tab",{"tab":[513],"active":[1540],"scale":[1537],"labeledBy":[32]},[[16,"
|
|
25998
|
-
const CalciteTabNav = /*@__PURE__*/proxyCustomElement(TabNav, [1,"calcite-tab-nav",{"storageId":[1,"storage-id"],"syncId":[1,"sync-id"],"scale":[1537],"layout":[1537],"position":[1537],"bordered":[1540],"indicatorOffset":[1026,"indicator-offset"],"indicatorWidth":[1026,"indicator-width"],"selectedTab":[32],"selectedTabEl":[32]},[[
|
|
25999
|
-
const CalciteTabTitle = /*@__PURE__*/proxyCustomElement(TabTitle, [1,"calcite-tab-title",{"active":[1540],"disabled":[516],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"layout":[1537],"position":[1537],"scale":[1537],"bordered":[1540],"tab":[513],"controls":[32],"hasText":[32]},[[16,"
|
|
26168
|
+
const CalciteTab = /*@__PURE__*/proxyCustomElement(Tab, [1,"calcite-tab",{"tab":[513],"active":[1540],"scale":[1537],"labeledBy":[32]},[[16,"calciteInternalTabChange","internalTabChangeHandler"]]]);
|
|
26169
|
+
const CalciteTabNav = /*@__PURE__*/proxyCustomElement(TabNav, [1,"calcite-tab-nav",{"storageId":[1,"storage-id"],"syncId":[1,"sync-id"],"scale":[1537],"layout":[1537],"position":[1537],"bordered":[1540],"indicatorOffset":[1026,"indicator-offset"],"indicatorWidth":[1026,"indicator-width"],"selectedTab":[32],"selectedTabEl":[32]},[[0,"calciteTabsFocusPrevious","focusPreviousTabHandler"],[0,"calciteTabsFocusNext","focusNextTabHandler"],[0,"calciteInternalTabsActivate","internalActivateTabHandler"],[0,"calciteTabsActivate","activateTabHandler"],[0,"calciteTabTitleRegister","updateTabTitles"],[16,"calciteInternalTabChange","globalInternalTabChangeHandler"]]]);
|
|
26170
|
+
const CalciteTabTitle = /*@__PURE__*/proxyCustomElement(TabTitle, [1,"calcite-tab-title",{"active":[1540],"disabled":[516],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"layout":[1537],"position":[1537],"scale":[1537],"bordered":[1540],"tab":[513],"controls":[32],"hasText":[32]},[[16,"calciteInternalTabChange","internalTabChangeHandler"],[0,"click","onClick"],[0,"keydown","keyDownHandler"]]]);
|
|
26000
26171
|
const CalciteTabs = /*@__PURE__*/proxyCustomElement(Tabs, [1,"calcite-tabs",{"layout":[513],"position":[513],"scale":[513],"bordered":[1540],"titles":[32],"tabs":[32]},[[0,"calciteTabTitleRegister","calciteTabTitleRegister"],[16,"calciteTabTitleUnregister","calciteTabTitleUnregister"],[0,"calciteTabRegister","calciteTabRegister"],[16,"calciteTabUnregister","calciteTabUnregister"]]]);
|
|
26001
26172
|
const CalciteTile = /*@__PURE__*/proxyCustomElement(Tile, [1,"calcite-tile",{"active":[516],"description":[513],"disabled":[516],"embed":[516],"focused":[516],"heading":[513],"hidden":[516],"href":[513],"icon":[513]}]);
|
|
26002
26173
|
const CalciteTileSelect = /*@__PURE__*/proxyCustomElement(TileSelect, [1,"calcite-tile-select",{"checked":[1540],"description":[513],"disabled":[516],"heading":[513],"hidden":[516],"icon":[513],"name":[520],"inputEnabled":[516,"input-enabled"],"inputAlignment":[513,"input-alignment"],"type":[513],"value":[8],"width":[513],"focused":[32]},[[0,"calciteCheckboxChange","checkboxChangeHandler"],[0,"calciteInternalCheckboxFocus","checkboxFocusBlurHandler"],[0,"calciteInternalCheckboxBlur","checkboxFocusBlurHandler"],[0,"calciteRadioButtonChange","radioButtonChangeHandler"],[0,"calciteInternalRadioButtonCheckedChange","radioButtonCheckedChangeHandler"],[0,"calciteInternalRadioButtonFocus","radioButtonFocusBlurHandler"],[0,"calciteInternalRadioButtonBlur","radioButtonFocusBlurHandler"],[0,"click","click"],[1,"mouseenter","mouseenter"],[1,"mouseleave","mouseleave"]]]);
|