@esri/calcite-components 1.0.0-beta.83 → 1.0.0-beta.84
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/date-picker/nls/th.json +1 -1
- package/dist/calcite/assets/icon/changeDetection16.json +1 -0
- package/dist/calcite/assets/icon/changeDetection24.json +1 -0
- package/dist/calcite/assets/icon/changeDetection32.json +1 -0
- package/dist/calcite/assets/icon/imageDisplayOrder16.json +1 -0
- package/dist/calcite/assets/icon/imageDisplayOrder24.json +1 -0
- package/dist/calcite/assets/icon/imageDisplayOrder32.json +1 -0
- package/dist/calcite/assets/icon/numberCircle416.json +1 -0
- package/dist/calcite/assets/icon/numberCircle424.json +1 -0
- package/dist/calcite/assets/icon/numberCircle432.json +1 -0
- package/dist/calcite/assets/icon/numberCircle516.json +1 -0
- package/dist/calcite/assets/icon/numberCircle524.json +1 -0
- package/dist/calcite/assets/icon/numberCircle532.json +1 -0
- package/dist/calcite/assets/icon/numberCircle616.json +1 -0
- package/dist/calcite/assets/icon/numberCircle624.json +1 -0
- package/dist/calcite/assets/icon/numberCircle632.json +1 -0
- package/dist/calcite/assets/icon/numberCircle716.json +1 -0
- package/dist/calcite/assets/icon/numberCircle724.json +1 -0
- package/dist/calcite/assets/icon/numberCircle732.json +1 -0
- package/dist/calcite/assets/icon/numberCircle816.json +1 -0
- package/dist/calcite/assets/icon/numberCircle824.json +1 -0
- package/dist/calcite/assets/icon/numberCircle832.json +1 -0
- package/dist/calcite/assets/icon/numberCircle916.json +1 -0
- package/dist/calcite/assets/icon/numberCircle924.json +1 -0
- package/dist/calcite/assets/icon/numberCircle932.json +1 -0
- package/dist/calcite/assets/icon/showMultipleLayersAtATime16.json +1 -0
- package/dist/calcite/assets/icon/showMultipleLayersAtATime24.json +1 -0
- package/dist/calcite/assets/icon/showMultipleLayersAtATime32.json +1 -0
- package/dist/calcite/assets/icon/showOneLayerAtATime16.json +1 -0
- package/dist/calcite/assets/icon/showOneLayerAtATime24.json +1 -0
- package/dist/calcite/assets/icon/showOneLayerAtATime32.json +1 -0
- package/dist/calcite/calcite.css +1 -1
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/p-00247a8d.system.js +7 -0
- package/dist/calcite/p-02bb8194.entry.js +6 -0
- package/dist/calcite/p-061aea88.entry.js +6 -0
- package/dist/calcite/{p-1a07da7e.system.js → p-07c6e102.system.js} +2 -2
- package/dist/calcite/{p-98dc9493.entry.js → p-0bfe5ca7.entry.js} +2 -2
- package/dist/calcite/{p-0cbdfc7e.entry.js → p-114d44c3.entry.js} +2 -2
- package/dist/calcite/{p-ccb5a784.js → p-1157ae2f.js} +1 -1
- package/dist/calcite/p-1363adcd.entry.js +6 -0
- package/dist/calcite/p-13d66ebf.entry.js +6 -0
- package/dist/calcite/p-14a22bfc.system.entry.js +6 -0
- package/dist/calcite/{p-9c85d763.system.entry.js → p-14f0920e.system.entry.js} +2 -2
- package/dist/calcite/p-16888553.system.entry.js +6 -0
- package/dist/calcite/p-16dbdef2.system.entry.js +6 -0
- package/dist/calcite/{p-9d3f8b0c.system.entry.js → p-1adea169.system.entry.js} +2 -2
- package/dist/calcite/{p-07587a94.system.entry.js → p-1db25c99.system.entry.js} +2 -2
- package/dist/calcite/{p-85a769d3.system.entry.js → p-204443b0.system.entry.js} +2 -2
- package/dist/calcite/p-20d610fc.entry.js +6 -0
- package/dist/calcite/{p-799f79af.entry.js → p-21a1034c.entry.js} +2 -2
- package/dist/calcite/p-236f1255.system.entry.js +6 -0
- package/dist/calcite/{p-c5eec108.entry.js → p-24d52a72.entry.js} +2 -2
- package/dist/calcite/{p-6d41e372.system.entry.js → p-25349c89.system.entry.js} +2 -2
- package/dist/calcite/{p-df419c8b.entry.js → p-26757de8.entry.js} +2 -2
- package/dist/calcite/p-278c8372.entry.js +6 -0
- package/dist/calcite/p-282106cb.system.js +6 -0
- package/dist/calcite/p-2b531882.entry.js +6 -0
- package/dist/calcite/p-2bf5b9b6.js +6 -0
- package/dist/calcite/p-2ce10f9a.system.js +6 -0
- package/dist/calcite/p-2e3ffd32.system.js +6 -0
- package/dist/calcite/p-30256458.entry.js +6 -0
- package/dist/calcite/{p-8dfe7af3.js → p-34e0b58b.js} +2 -2
- package/dist/calcite/p-352b94a1.system.entry.js +6 -0
- package/dist/calcite/p-39bb68b3.system.js +6 -0
- package/dist/calcite/p-3aefc333.entry.js +6 -0
- package/dist/calcite/{p-7e576c74.system.entry.js → p-3d2eebab.system.entry.js} +2 -2
- package/dist/calcite/{p-2778cb53.entry.js → p-3d8ab9d5.entry.js} +2 -2
- package/dist/calcite/{p-6a966c2f.entry.js → p-4185af29.entry.js} +2 -2
- package/dist/calcite/{p-2785ecb9.system.js → p-4196e498.system.js} +2 -2
- package/dist/calcite/{p-4f82d10a.system.entry.js → p-41cbf505.system.entry.js} +2 -2
- package/dist/calcite/{p-9634f60d.entry.js → p-438d87b0.entry.js} +2 -2
- package/dist/calcite/p-448b3393.system.entry.js +6 -0
- package/dist/calcite/{p-7bbfe1a2.system.entry.js → p-45588eee.system.entry.js} +2 -2
- package/dist/calcite/{p-2f82a677.system.js → p-4908e3a5.system.js} +1 -1
- package/dist/calcite/p-49488c34.entry.js +6 -0
- package/dist/calcite/{p-c86b91ca.entry.js → p-4b414b81.entry.js} +2 -2
- package/dist/calcite/{p-e3076302.system.js → p-4cfef590.system.js} +3 -3
- package/dist/calcite/{p-acafe8ca.system.js → p-4d9c7cc9.system.js} +1 -1
- package/dist/calcite/p-4eb531c4.js +7 -0
- package/dist/calcite/p-4f1dbd36.system.entry.js +6 -0
- package/dist/calcite/p-4f9ce175.js +6 -0
- package/dist/calcite/{p-f7546789.system.js → p-51491e10.system.js} +1 -1
- package/dist/calcite/p-51ffb552.system.entry.js +6 -0
- package/dist/calcite/{p-77762ff3.system.js → p-549e267e.system.js} +1 -1
- package/dist/calcite/p-56f93049.js +6 -0
- package/dist/calcite/{p-f1935a52.entry.js → p-57b60838.entry.js} +2 -2
- package/dist/calcite/{p-5e07a875.system.entry.js → p-594f52ca.system.entry.js} +2 -2
- package/dist/calcite/{p-1a5fc48b.entry.js → p-5bd80046.entry.js} +2 -2
- package/dist/calcite/{p-ae6f5622.js → p-5d7f4169.js} +1 -1
- package/dist/calcite/p-6309de22.entry.js +6 -0
- package/dist/calcite/{p-7d8fe7b3.system.entry.js → p-67a0e692.system.entry.js} +2 -2
- package/dist/calcite/{p-45b6d321.entry.js → p-6a554714.entry.js} +2 -2
- package/dist/calcite/{p-191d0802.system.js → p-6a8f1936.system.js} +2 -2
- package/dist/calcite/p-6cff0a2a.entry.js +6 -0
- package/dist/calcite/{p-4620ae05.entry.js → p-6d1c91ee.entry.js} +2 -2
- package/dist/calcite/p-6d96d61f.system.js +6 -0
- package/dist/calcite/{p-773b540e.system.entry.js → p-6e366971.system.entry.js} +2 -2
- package/dist/calcite/{p-fd70b6c1.entry.js → p-6eadd519.entry.js} +2 -2
- package/dist/calcite/{p-940ac25d.system.entry.js → p-70e1d287.system.entry.js} +2 -2
- package/dist/calcite/{p-59122590.entry.js → p-7168da40.entry.js} +2 -2
- package/dist/calcite/p-74153f82.js +6 -0
- package/dist/calcite/{p-2fd30fee.entry.js → p-74b7ff1f.entry.js} +2 -2
- package/dist/calcite/p-77bc0e49.entry.js +6 -0
- package/dist/calcite/p-7c7ad2d6.entry.js +6 -0
- package/dist/calcite/p-7cc3d924.system.entry.js +6 -0
- package/dist/calcite/{p-292c567d.js → p-7ec42769.js} +1 -1
- package/dist/calcite/{p-4a88016c.system.entry.js → p-7ede3d65.system.entry.js} +2 -2
- package/dist/calcite/{p-912c9e61.system.entry.js → p-8018d689.system.entry.js} +2 -2
- package/dist/calcite/p-8133b2a5.entry.js +6 -0
- package/dist/calcite/{p-2e57803f.entry.js → p-8137bc05.entry.js} +2 -2
- package/dist/calcite/p-8202ad8a.system.entry.js +6 -0
- package/dist/calcite/{p-63d2bcec.system.entry.js → p-82dec536.system.entry.js} +2 -2
- package/dist/calcite/{p-1bc2d58d.system.js → p-82e24e64.system.js} +1 -1
- package/dist/calcite/p-88d2d38a.entry.js +6 -0
- package/dist/calcite/{p-ee47a382.system.entry.js → p-890cc5a8.system.entry.js} +2 -2
- package/dist/calcite/{p-ed0608ea.system.entry.js → p-891e53dd.system.entry.js} +2 -2
- package/dist/calcite/{p-834f407d.system.entry.js → p-8ae680a2.system.entry.js} +2 -2
- package/dist/calcite/{p-d1d05643.entry.js → p-8c25b934.entry.js} +2 -2
- package/dist/calcite/p-8c9e453c.js +6 -0
- package/dist/calcite/{p-eda11878.entry.js → p-90608473.entry.js} +2 -2
- package/dist/calcite/{p-9ba769e3.system.entry.js → p-974b7008.system.entry.js} +2 -2
- package/dist/calcite/p-98a2aa34.entry.js +6 -0
- package/dist/calcite/{p-0e1c259f.system.entry.js → p-98dfd14b.system.entry.js} +2 -2
- package/dist/calcite/p-99551007.system.entry.js +6 -0
- package/dist/calcite/{p-1eb6cfb5.entry.js → p-9c4aa033.entry.js} +2 -2
- package/dist/calcite/p-9c5c3cb3.system.entry.js +6 -0
- package/dist/calcite/p-9c80707e.system.js +6 -0
- package/dist/calcite/{p-fba2fa9f.system.js → p-9d158b37.system.js} +2 -2
- package/dist/calcite/{p-edf3436f.js → p-9e8d6e02.js} +2 -2
- package/dist/calcite/p-9eaf38bc.js +6 -0
- package/dist/calcite/p-9f13e930.entry.js +6 -0
- package/dist/calcite/{p-ef4ca55d.entry.js → p-a0971f99.entry.js} +2 -2
- package/dist/calcite/p-a1208386.entry.js +6 -0
- package/dist/calcite/{p-a1118db1.entry.js → p-a1cc6421.entry.js} +2 -2
- package/dist/calcite/{p-5904a047.entry.js → p-a6e1e1e4.entry.js} +2 -2
- package/dist/calcite/{p-6bcb5a71.system.entry.js → p-a89fc6a1.system.entry.js} +2 -2
- package/dist/calcite/{p-d901c470.system.js → p-a92ac42d.system.js} +1 -1
- package/dist/calcite/{p-2c974b60.js → p-aa9ce421.js} +1 -1
- package/dist/calcite/{p-46d30c39.system.js → p-aaba2ea0.system.js} +1 -1
- package/dist/calcite/{p-476e276f.entry.js → p-b2f27af5.entry.js} +2 -2
- package/dist/calcite/{p-132b60fd.system.entry.js → p-b31d3dad.system.entry.js} +2 -2
- package/dist/calcite/{p-c84f0dec.entry.js → p-b3a4497d.entry.js} +2 -2
- package/dist/calcite/{p-f39d0565.system.entry.js → p-b48feb98.system.entry.js} +2 -2
- package/dist/calcite/p-bb1711f3.js +6 -0
- package/dist/calcite/{p-7a8cddad.js → p-bbd8269c.js} +1 -1
- package/dist/calcite/{p-3b54c4a0.system.entry.js → p-bc5a7fee.system.entry.js} +2 -2
- package/dist/calcite/{p-3f80afb9.system.entry.js → p-bce5ab4f.system.entry.js} +3 -3
- package/dist/calcite/{p-3981a495.js → p-c2ed5f67.js} +1 -1
- package/dist/calcite/p-c78d1678.system.entry.js +6 -0
- package/dist/calcite/p-c9d73fce.system.entry.js +6 -0
- package/dist/calcite/{p-4effc6db.js → p-ca1b7a2e.js} +1 -1
- package/dist/calcite/{p-1ba93966.system.js → p-cc041a12.system.js} +1 -1
- package/dist/calcite/p-ccf1e5d8.entry.js +6 -0
- package/dist/calcite/{p-5afb0fbb.js → p-ce28c259.js} +2 -2
- package/dist/calcite/{p-e9e34c7f.system.entry.js → p-ce34288b.entry.js} +2 -2
- package/dist/calcite/{p-358cba5a.system.entry.js → p-ce654c2c.system.entry.js} +2 -2
- package/dist/calcite/p-d05f35e8.system.js +6 -0
- package/dist/calcite/p-d48cc6d2.entry.js +6 -0
- package/dist/calcite/p-d4f596f2.entry.js +6 -0
- package/dist/calcite/{p-f9687b03.system.js → p-d6d814a6.system.js} +1 -1
- package/dist/calcite/{p-feb71776.system.entry.js → p-d96573eb.system.entry.js} +2 -2
- package/dist/calcite/{p-900fd30e.js → p-dca64e20.js} +2 -2
- package/dist/calcite/{p-0804ce36.system.entry.js → p-dd1e12e4.system.entry.js} +3 -3
- package/dist/calcite/{p-1755cd6f.entry.js → p-dd5185d6.entry.js} +2 -2
- package/dist/calcite/p-dd5e585b.entry.js +6 -0
- package/dist/calcite/{p-f54288ad.js → p-df26aab6.js} +1 -1
- package/dist/calcite/{p-78f2801c.entry.js → p-e2ccf473.entry.js} +2 -2
- package/dist/calcite/p-e345449f.entry.js +6 -0
- package/dist/calcite/{p-ba349f22.system.js → p-e45d0fed.system.js} +1 -1
- package/dist/calcite/{p-2fcac2cf.system.entry.js → p-e5381e40.system.entry.js} +2 -2
- package/dist/calcite/{p-515e5f7e.system.entry.js → p-e6578cf2.system.entry.js} +2 -2
- package/dist/calcite/{p-a75ad7cb.system.js → p-e69d3ca4.system.js} +1 -1
- package/dist/calcite/{p-a3e19cec.entry.js → p-e78d93ed.entry.js} +2 -2
- package/dist/calcite/{p-3962123d.system.entry.js → p-e7b4e5b8.system.entry.js} +2 -2
- package/dist/calcite/{p-e117fad1.system.entry.js → p-e956598c.system.entry.js} +2 -2
- package/dist/calcite/{p-636e43ac.system.entry.js → p-e9c9fb33.system.entry.js} +2 -2
- package/dist/calcite/{p-462cefe9.system.entry.js → p-ebb71e37.system.entry.js} +2 -2
- package/dist/calcite/{p-8e2129c6.system.entry.js → p-ebeb09f0.system.entry.js} +2 -2
- package/dist/calcite/{p-26526a6d.system.entry.js → p-ec8d9088.system.entry.js} +2 -2
- package/dist/calcite/p-eccc820a.entry.js +6 -0
- package/dist/calcite/{p-a73419ab.js → p-ecd12a92.js} +1 -1
- package/dist/calcite/{p-1571ede3.system.entry.js → p-eceb3f95.system.entry.js} +2 -2
- package/dist/calcite/p-ee60b60f.system.entry.js +6 -0
- package/dist/calcite/{p-5ae3ce21.system.entry.js → p-f07627e7.system.entry.js} +3 -3
- package/dist/calcite/p-f14e0497.system.entry.js +6 -0
- package/dist/calcite/p-f2384caf.entry.js +6 -0
- package/dist/calcite/p-f537a6a5.entry.js +6 -0
- package/dist/calcite/{p-c1548c19.js → p-f6760679.js} +2 -2
- package/dist/calcite/{p-fd5a2277.entry.js → p-f8695531.entry.js} +2 -2
- package/dist/calcite/{p-e321018b.js → p-f8cb1eeb.js} +1 -1
- package/dist/calcite/{p-f46cf640.js → p-fb0e5ae3.js} +1 -1
- package/dist/calcite/{p-5b60d64c.system.entry.js → p-fb97a373.system.entry.js} +2 -2
- package/dist/calcite/p-fbbfde67.system.js +6 -0
- package/dist/calcite/{p-0d37d621.system.entry.js → p-fc6a158c.system.entry.js} +2 -2
- package/dist/calcite/p-fca56e68.system.entry.js +6 -0
- package/dist/calcite/{p-57ccba45.system.js → p-fdc7032c.system.js} +1 -1
- package/dist/cjs/{ExpandToggle-988c63cd.js → ExpandToggle-894fe6d0.js} +5 -5
- package/dist/cjs/{Heading-19d7669b.js → Heading-9546b15c.js} +3 -3
- package/dist/cjs/{array-d5bca414.js → array-1c85be7d.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +25 -16
- package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -14
- package/dist/cjs/calcite-action-group.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action-menu.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -13
- package/dist/cjs/calcite-action.cjs.entry.js +17 -16
- package/dist/cjs/calcite-alert.cjs.entry.js +49 -25
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +18 -12
- package/dist/cjs/calcite-button.cjs.entry.js +10 -9
- package/dist/cjs/calcite-card.cjs.entry.js +6 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip.cjs.entry.js +10 -7
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +41 -32
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +92 -41
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +34 -15
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +62 -21
- package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
- package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +18 -11
- package/dist/cjs/calcite-graph_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-handle.cjs.entry.js +6 -5
- package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +41 -39
- package/dist/cjs/calcite-input.cjs.entry.js +76 -48
- package/dist/cjs/calcite-label.cjs.entry.js +12 -8
- package/dist/cjs/calcite-link.cjs.entry.js +5 -5
- package/dist/cjs/calcite-list_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-loader.cjs.entry.js +9 -9
- package/dist/cjs/calcite-modal.cjs.entry.js +31 -22
- package/dist/cjs/calcite-notice.cjs.entry.js +14 -14
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +13 -13
- package/dist/cjs/calcite-panel.cjs.entry.js +21 -20
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +25 -25
- package/dist/cjs/calcite-popover_2.cjs.entry.js +23 -23
- package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +12 -9
- package/dist/cjs/calcite-rating.cjs.entry.js +26 -12
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +50 -17
- package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tab_4.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tree_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +24 -24
- package/dist/cjs/calcite.cjs.js +4 -4
- package/dist/cjs/{conditionalSlot-462ae1f4.js → conditionalSlot-ecb74d9a.js} +3 -3
- package/dist/cjs/{debounce-5127bc67.js → debounce-a74a2080.js} +1 -1
- package/dist/cjs/{dom-b0904219.js → dom-69c7e941.js} +3 -30
- package/dist/cjs/{forIn-265c8eb3.js → forIn-efe39801.js} +2 -2
- package/dist/cjs/{form-4c32a5c7.js → form-901b31de.js} +8 -5
- package/dist/cjs/{guid-8af0f93c.js → guid-263ed05b.js} +1 -1
- package/dist/cjs/{index-82ee13f7.js → index-8fbe74dd.js} +1 -12
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-15f9fd28.js → interactive-b2df5d51.js} +1 -1
- package/dist/cjs/{interfaces-86334104.js → interfaces-a8a9ed80.js} +1 -1
- package/dist/cjs/key-0fe936c7.js +14 -0
- package/dist/cjs/{label-131d9cce.js → label-f1317d82.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/locale-0becaa93.js +262 -0
- package/dist/cjs/{math-2f83830f.js → math-0877dd01.js} +1 -1
- package/dist/cjs/{observers-f672f664.js → observers-8169781c.js} +1 -1
- package/dist/cjs/{popper-5ca144d4.js → popper-46476990.js} +2 -2
- package/dist/cjs/{resources-0de59f13.js → resources-192c00c3.js} +7 -19
- package/dist/cjs/{resources-24a7ca1a.js → resources-6ac223e5.js} +3 -3
- package/dist/cjs/{resources-06f33bd4.js → resources-80d6cd05.js} +1 -1
- package/dist/cjs/{resources-08dc0a5e.js → resources-93a62cd3.js} +1 -1
- package/dist/cjs/{sortable.esm-8e944897.js → sortable.esm-b7091c1d.js} +1 -1
- package/dist/cjs/{utils-f3a37c0a.js → utils-b1d11545.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.js +14 -14
- package/dist/collection/components/accordion/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.css +38 -16
- package/dist/collection/components/accordion-item/accordion-item.js +84 -14
- package/dist/collection/components/action/action.css +37 -11
- package/dist/collection/components/action/action.js +24 -23
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +14 -13
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.css +1 -1
- package/dist/collection/components/action-group/action-group.js +11 -11
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.css +2 -1
- package/dist/collection/components/action-menu/action-menu.js +12 -12
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +16 -15
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.css +26 -14
- package/dist/collection/components/alert/alert.js +111 -43
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +4 -1
- package/dist/collection/components/avatar/avatar.js +7 -7
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.css +6 -2
- package/dist/collection/components/block/block.js +49 -6
- package/dist/collection/components/block/resources.js +2 -1
- package/dist/collection/components/block-section/block-section.css +6 -3
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/interfaces.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.css +115 -54
- package/dist/collection/components/button/button.js +3 -2
- package/dist/collection/components/button/interfaces.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.css +14 -7
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.css +3 -2
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.css +4 -0
- package/dist/collection/components/chip/chip.js +22 -1
- package/dist/collection/components/chip/interfaces.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.css +1 -0
- package/dist/collection/components/color-picker/color-picker.js +49 -23
- package/dist/collection/components/color-picker/interfaces.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +19 -2
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.css +4 -2
- package/dist/collection/components/combobox/combobox.js +178 -48
- package/dist/collection/components/combobox/interfaces.js +1 -1
- package/dist/collection/components/combobox/resources.js +3 -2
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.css +4 -2
- package/dist/collection/components/combobox-item/combobox-item.js +22 -2
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.css +2 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/th.json +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/interfaces.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.css +18 -9
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +4 -2
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +25 -7
- package/dist/collection/components/date-picker-month-header/resources.js +6 -0
- package/dist/collection/components/dropdown/dropdown.css +3 -1
- package/dist/collection/components/dropdown/dropdown.js +130 -23
- package/dist/collection/components/dropdown/interfaces.js +1 -1
- package/dist/collection/components/dropdown/resources.js +4 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/interfaces.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.css +15 -7
- package/dist/collection/components/dropdown-item/dropdown-item.js +3 -2
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.css +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +17 -10
- package/dist/collection/components/flow/interfaces.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +2 -2
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/interfaces.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +3 -2
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/assets/icon/changeDetection16.json +1 -0
- package/dist/collection/components/icon/assets/icon/changeDetection24.json +1 -0
- package/dist/collection/components/icon/assets/icon/changeDetection32.json +1 -0
- package/dist/collection/components/icon/assets/icon/imageDisplayOrder16.json +1 -0
- package/dist/collection/components/icon/assets/icon/imageDisplayOrder24.json +1 -0
- package/dist/collection/components/icon/assets/icon/imageDisplayOrder32.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle416.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle424.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle432.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle516.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle524.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle532.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle616.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle624.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle632.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle716.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle724.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle732.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle816.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle824.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle832.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle916.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle924.json +1 -0
- package/dist/collection/components/icon/assets/icon/numberCircle932.json +1 -0
- package/dist/collection/components/icon/assets/icon/showMultipleLayersAtATime16.json +1 -0
- package/dist/collection/components/icon/assets/icon/showMultipleLayersAtATime24.json +1 -0
- package/dist/collection/components/icon/assets/icon/showMultipleLayersAtATime32.json +1 -0
- package/dist/collection/components/icon/assets/icon/showOneLayerAtATime16.json +1 -0
- package/dist/collection/components/icon/assets/icon/showOneLayerAtATime24.json +1 -0
- package/dist/collection/components/icon/assets/icon/showOneLayerAtATime32.json +1 -0
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.css +33 -20
- package/dist/collection/components/input/input.js +151 -71
- package/dist/collection/components/input/interfaces.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/interfaces.js +1 -0
- package/dist/collection/components/input-time-picker/input-time-picker.js +3 -2
- package/dist/collection/components/interfaces.js +1 -1
- package/dist/collection/components/label/label.css +26 -6
- package/dist/collection/components/label/label.js +20 -13
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.css +8 -4
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +5 -4
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.css +20 -9
- package/dist/collection/components/list-item/list-item.js +12 -12
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +3 -3
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.css +1 -1
- package/dist/collection/components/loader/loader.js +17 -17
- package/dist/collection/components/modal/interfaces.js +1 -1
- package/dist/collection/components/modal/modal.css +28 -17
- package/dist/collection/components/modal/modal.js +62 -30
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.css +18 -10
- package/dist/collection/components/notice/notice.js +21 -21
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +6 -6
- package/dist/collection/components/option-group/option-group.js +4 -4
- package/dist/collection/components/pagination/pagination.css +24 -13
- package/dist/collection/components/pagination/pagination.js +20 -20
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.css +10 -7
- package/dist/collection/components/panel/panel.js +54 -34
- package/dist/collection/components/panel/resources.js +2 -1
- package/dist/collection/components/pick-list/pick-list.js +18 -18
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +3 -15
- package/dist/collection/components/pick-list-group/pick-list-group.css +2 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +3 -3
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.css +2 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +23 -23
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +3 -4
- package/dist/collection/components/popover/popover.css +2 -1
- package/dist/collection/components/popover/popover.js +34 -34
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +1 -1
- package/dist/collection/components/progress/progress.css +2 -1
- package/dist/collection/components/progress/progress.js +9 -9
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-group/interfaces.js +1 -1
- package/dist/collection/components/radio-group/radio-group.css +2 -1
- package/dist/collection/components/radio-group/radio-group.js +10 -4
- package/dist/collection/components/radio-group-item/radio-group-item.css +14 -0
- package/dist/collection/components/radio-group-item/radio-group-item.js +2 -2
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +20 -6
- package/dist/collection/components/rating/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.css +7 -3
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.css +11 -4
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/slider.css +18 -8
- package/dist/collection/components/slider/slider.js +2 -2
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/interfaces.js +1 -1
- package/dist/collection/components/stepper/stepper.js +48 -9
- package/dist/collection/components/stepper-item/stepper-item.css +23 -15
- package/dist/collection/components/stepper-item/stepper-item.js +107 -12
- package/dist/collection/components/switch/switch.css +2 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/interfaces.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.css +15 -4
- package/dist/collection/components/tab-nav/tab-nav.js +6 -6
- package/dist/collection/components/tab-title/tab-title.css +49 -13
- package/dist/collection/components/tab-title/tab-title.js +3 -4
- package/dist/collection/components/tabs/interfaces.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.css +28 -0
- package/dist/collection/components/tabs/tabs.js +7 -6
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.css +4 -2
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/interfaces.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.css +2 -1
- package/dist/collection/components/tile-select/tile-select.js +3 -2
- package/dist/collection/components/tile-select-group/interfaces.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.css +8 -5
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.css +4 -2
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.css +2 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +2 -2
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +12 -12
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +8 -8
- package/dist/collection/components/tree-item/interfaces.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.css +16 -5
- package/dist/collection/components/tree-item/tree-item.js +8 -8
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/value-list.js +17 -17
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.css +2 -1
- package/dist/collection/components/value-list-item/value-list-item.js +16 -16
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +2 -28
- package/dist/collection/utils/filter.js +3 -3
- package/dist/collection/utils/form.js +6 -3
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/locale.js +8 -9
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +71 -8
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +6 -0
- package/dist/collection/utils/popper.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +2 -2
- package/dist/components/action-group.js +4 -4
- package/dist/components/action-menu.js +5 -5
- package/dist/components/action.js +12 -11
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +5 -4
- package/dist/components/calcite-accordion-item.js +19 -7
- package/dist/components/calcite-accordion.js +8 -8
- package/dist/components/calcite-action-bar.js +6 -5
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +6 -5
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +45 -21
- package/dist/components/calcite-avatar.js +3 -3
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +14 -6
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +2 -2
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +34 -24
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +2 -1
- package/dist/components/calcite-combobox.js +85 -32
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +3 -2
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow.js +17 -10
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +2 -2
- package/dist/components/calcite-input-date-picker.js +4 -4
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-time-picker.js +4 -3
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +2 -2
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +3 -3
- package/dist/components/calcite-list.js +2 -2
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +28 -18
- package/dist/components/calcite-notice.js +8 -8
- package/dist/components/calcite-option-group.js +2 -2
- package/dist/components/calcite-option.js +2 -2
- package/dist/components/calcite-pagination.js +9 -9
- package/dist/components/calcite-panel.js +14 -12
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +9 -9
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +2 -2
- package/dist/components/calcite-radio-group-item.js +3 -3
- package/dist/components/calcite-radio-group.js +6 -3
- package/dist/components/calcite-rating.js +21 -7
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +2 -2
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +4 -4
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +31 -7
- package/dist/components/calcite-stepper.js +19 -8
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +3 -2
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +9 -9
- package/dist/components/calcite-tree-item.js +5 -5
- package/dist/components/calcite-tree.js +4 -4
- package/dist/components/calcite-value-list-item.js +5 -5
- package/dist/components/calcite-value-list.js +10 -10
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip.js +6 -2
- package/dist/components/color-picker-hex-input.js +3 -2
- package/dist/components/color-picker-swatch.js +2 -2
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +27 -8
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +2 -2
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +3 -29
- package/dist/components/dropdown.js +56 -15
- package/dist/components/filter.js +1 -1
- package/dist/components/forIn.js +1 -1
- package/dist/components/form.js +7 -4
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +3 -2
- package/dist/components/icon.js +1 -1
- package/dist/components/index.d.ts +90 -5
- package/dist/components/index.js +91 -1
- package/dist/components/input.js +60 -31
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/key.js +11 -0
- package/dist/components/label.js +87 -112
- package/dist/components/label2.js +112 -83
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +7 -7
- package/dist/components/locale.js +136 -8
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/pick-list-item.js +7 -7
- package/dist/components/popover.js +19 -19
- package/dist/components/popper.js +2 -2
- package/dist/components/progress.js +4 -4
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +3 -15
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +2 -2
- package/dist/components/tab-nav.js +5 -5
- package/dist/components/tab-title.js +3 -4
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +5 -4
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +3 -2
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.js +683 -390
- package/dist/esm/{ExpandToggle-ce794961.js → ExpandToggle-baf2c551.js} +5 -5
- package/dist/esm/{Heading-9ccb3452.js → Heading-1183c4d7.js} +3 -3
- package/dist/esm/{array-7a76d321.js → array-d7b2d2da.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +25 -16
- package/dist/esm/calcite-action-bar.entry.js +15 -14
- package/dist/esm/calcite-action-group.entry.js +11 -11
- package/dist/esm/calcite-action-menu.entry.js +12 -12
- package/dist/esm/calcite-action-pad.entry.js +14 -13
- package/dist/esm/calcite-action.entry.js +17 -16
- package/dist/esm/calcite-alert.entry.js +49 -25
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +18 -12
- package/dist/esm/calcite-button.entry.js +10 -9
- package/dist/esm/calcite-card.entry.js +6 -6
- package/dist/esm/calcite-checkbox.entry.js +7 -7
- package/dist/esm/calcite-chip.entry.js +10 -7
- package/dist/esm/calcite-color-picker_3.entry.js +41 -32
- package/dist/esm/calcite-combobox_3.entry.js +92 -41
- package/dist/esm/calcite-date-picker_4.entry.js +34 -15
- package/dist/esm/calcite-dropdown_3.entry.js +62 -21
- package/dist/esm/calcite-fab.entry.js +5 -5
- package/dist/esm/calcite-filter.entry.js +7 -7
- package/dist/esm/calcite-flow.entry.js +18 -11
- package/dist/esm/calcite-graph_2.entry.js +10 -10
- package/dist/esm/calcite-handle.entry.js +6 -5
- package/dist/esm/calcite-icon.entry.js +5 -5
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-date-picker.entry.js +11 -11
- package/dist/esm/calcite-input-message.entry.js +4 -4
- package/dist/esm/calcite-input-time-picker_2.entry.js +11 -9
- package/dist/esm/calcite-input.entry.js +65 -37
- package/dist/esm/calcite-label.entry.js +12 -8
- package/dist/esm/calcite-link.entry.js +5 -5
- package/dist/esm/calcite-list_3.entry.js +11 -11
- package/dist/esm/calcite-loader.entry.js +9 -9
- package/dist/esm/calcite-modal.entry.js +31 -22
- package/dist/esm/calcite-notice.entry.js +14 -14
- package/dist/esm/calcite-option_3.entry.js +10 -10
- package/dist/esm/calcite-pagination.entry.js +13 -13
- package/dist/esm/calcite-panel.entry.js +21 -20
- package/dist/esm/calcite-pick-list_3.entry.js +25 -25
- package/dist/esm/calcite-popover_2.entry.js +23 -23
- package/dist/esm/calcite-progress.entry.js +5 -5
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +8 -8
- package/dist/esm/calcite-radio-group_2.entry.js +12 -9
- package/dist/esm/calcite-rating.entry.js +26 -12
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +7 -7
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +50 -17
- package/dist/esm/calcite-switch.entry.js +7 -7
- package/dist/esm/calcite-tab_4.entry.js +16 -16
- package/dist/esm/calcite-tile-select_2.entry.js +6 -5
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-tip_3.entry.js +7 -7
- package/dist/esm/calcite-tooltip_2.entry.js +11 -11
- package/dist/esm/calcite-tree_2.entry.js +13 -13
- package/dist/esm/calcite-value-list_2.entry.js +24 -24
- package/dist/esm/calcite.js +4 -4
- package/dist/esm/{conditionalSlot-6be8f3bd.js → conditionalSlot-91141c10.js} +3 -3
- package/dist/esm/{debounce-9626aac0.js → debounce-8620d992.js} +1 -1
- package/dist/esm/{dom-4caa79e4.js → dom-0e5130f0.js} +4 -30
- package/dist/esm/{forIn-091a9d50.js → forIn-908ce382.js} +2 -2
- package/dist/esm/{form-7c2e444b.js → form-44145a77.js} +8 -5
- package/dist/esm/{guid-27925469.js → guid-035850cf.js} +1 -1
- package/dist/esm/{index-1e02e91b.js → index-7daa7f57.js} +1 -12
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-32803ed8.js → interactive-26697f71.js} +1 -1
- package/dist/esm/{interfaces-64ad1cde.js → interfaces-666dcdb6.js} +1 -1
- package/dist/esm/key-5106532f.js +11 -0
- package/dist/esm/{label-ccf07634.js → label-e58bd849.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/locale-bd54ff3b.js +254 -0
- package/dist/esm/{math-351ff0de.js → math-28a370c3.js} +1 -1
- package/dist/esm/{observers-c18e9524.js → observers-5cd6c82a.js} +1 -1
- package/dist/esm/{popper-44b3ba83.js → popper-1df5bd76.js} +2 -2
- package/dist/esm/{resources-0aacb21d.js → resources-3498bd44.js} +3 -3
- package/dist/esm/{resources-a2cad43d.js → resources-b9270cdb.js} +1 -1
- package/dist/esm/{resources-529884cb.js → resources-d196b6c1.js} +7 -19
- package/dist/esm/{resources-a32d1180.js → resources-daaebdea.js} +1 -1
- package/dist/esm/{sortable.esm-4e7d5c7b.js → sortable.esm-ef18907c.js} +1 -1
- package/dist/esm/{utils-2f763d44.js → utils-cf3669f8.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-ce794961.js → ExpandToggle-baf2c551.js} +2 -2
- package/dist/esm-es5/Heading-1183c4d7.js +6 -0
- package/dist/esm-es5/{array-7a76d321.js → array-d7b2d2da.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +2 -2
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +3 -3
- package/dist/esm-es5/calcite-action.entry.js +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +2 -2
- package/dist/esm-es5/calcite-avatar.entry.js +2 -2
- package/dist/esm-es5/calcite-block_2.entry.js +2 -2
- package/dist/esm-es5/calcite-button.entry.js +2 -2
- package/dist/esm-es5/calcite-card.entry.js +2 -2
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +3 -3
- package/dist/esm-es5/calcite-fab.entry.js +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +3 -3
- package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- package/dist/esm-es5/calcite-icon.entry.js +2 -2
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +3 -3
- package/dist/esm-es5/calcite-input-message.entry.js +2 -2
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +2 -2
- package/dist/esm-es5/calcite-link.entry.js +3 -3
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +3 -3
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-progress.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-group_2.entry.js +3 -3
- package/dist/esm-es5/calcite-rating.entry.js +3 -3
- package/dist/esm-es5/calcite-scrim.entry.js +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
- package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
- package/dist/esm-es5/calcite-split-button.entry.js +2 -2
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +3 -3
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +2 -2
- package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +2 -2
- package/dist/esm-es5/{conditionalSlot-6be8f3bd.js → conditionalSlot-91141c10.js} +2 -2
- package/dist/esm-es5/{debounce-9626aac0.js → debounce-8620d992.js} +1 -1
- package/dist/esm-es5/dom-0e5130f0.js +6 -0
- package/dist/esm-es5/{forIn-091a9d50.js → forIn-908ce382.js} +2 -2
- package/dist/esm-es5/form-44145a77.js +6 -0
- package/dist/esm-es5/{guid-27925469.js → guid-035850cf.js} +1 -1
- package/dist/esm-es5/index-7daa7f57.js +7 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-32803ed8.js → interactive-26697f71.js} +1 -1
- package/dist/esm-es5/{interfaces-64ad1cde.js → interfaces-666dcdb6.js} +1 -1
- package/dist/esm-es5/key-5106532f.js +6 -0
- package/dist/esm-es5/{label-ccf07634.js → label-e58bd849.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/locale-bd54ff3b.js +6 -0
- package/dist/esm-es5/{math-351ff0de.js → math-28a370c3.js} +1 -1
- package/dist/esm-es5/{observers-c18e9524.js → observers-5cd6c82a.js} +1 -1
- package/dist/esm-es5/{popper-44b3ba83.js → popper-1df5bd76.js} +2 -2
- package/dist/esm-es5/{resources-0aacb21d.js → resources-3498bd44.js} +2 -2
- package/dist/esm-es5/{resources-a2cad43d.js → resources-b9270cdb.js} +1 -1
- package/dist/esm-es5/{resources-529884cb.js → resources-d196b6c1.js} +3 -3
- package/dist/esm-es5/{resources-a32d1180.js → resources-daaebdea.js} +1 -1
- package/dist/esm-es5/{sortable.esm-4e7d5c7b.js → sortable.esm-ef18907c.js} +1 -1
- package/dist/esm-es5/{utils-2f763d44.js → utils-cf3669f8.js} +1 -1
- package/dist/extras/docs-json.json +870 -358
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/accordion/accordion.d.ts +7 -7
- package/dist/types/components/accordion-item/accordion-item.d.ts +22 -4
- package/dist/types/components/action/action.d.ts +13 -15
- package/dist/types/components/action-bar/action-bar.d.ts +8 -8
- package/dist/types/components/action-group/action-group.d.ts +7 -7
- package/dist/types/components/action-menu/action-menu.d.ts +7 -7
- package/dist/types/components/action-pad/action-pad.d.ts +10 -10
- package/dist/types/components/alert/alert.d.ts +37 -21
- package/dist/types/components/alert/resources.d.ts +3 -0
- package/dist/types/components/avatar/avatar.d.ts +5 -5
- package/dist/types/components/block/block.d.ts +6 -0
- package/dist/types/components/block/resources.d.ts +1 -0
- package/dist/types/components/checkbox/checkbox.d.ts +1 -0
- package/dist/types/components/chip/chip.d.ts +2 -0
- package/dist/types/components/color-picker/color-picker.d.ts +8 -5
- package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +2 -0
- package/dist/types/components/combobox/combobox.d.ts +29 -15
- package/dist/types/components/combobox/resources.d.ts +1 -0
- package/dist/types/components/combobox-item/combobox-item.d.ts +9 -1
- package/dist/types/components/date-picker/utils.d.ts +1 -1
- package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +2 -0
- package/dist/types/components/date-picker-month-header/resources.d.ts +1 -0
- package/dist/types/components/dropdown/dropdown.d.ts +21 -5
- package/dist/types/components/dropdown/resources.d.ts +3 -0
- package/dist/types/components/flow/flow.d.ts +4 -1
- package/dist/types/components/input/input.d.ts +86 -40
- package/dist/types/components/label/label.d.ts +6 -2
- package/dist/types/components/list/list.d.ts +3 -2
- package/dist/types/components/list-item/list-item.d.ts +9 -9
- package/dist/types/components/list-item-group/list-item-group.d.ts +2 -2
- package/dist/types/components/loader/loader.d.ts +6 -6
- package/dist/types/components/modal/modal.d.ts +22 -16
- package/dist/types/components/notice/notice.d.ts +13 -16
- package/dist/types/components/option/option.d.ts +4 -4
- package/dist/types/components/option-group/option-group.d.ts +2 -2
- package/dist/types/components/pagination/pagination.d.ts +11 -11
- package/dist/types/components/panel/panel.d.ts +25 -21
- package/dist/types/components/panel/resources.d.ts +1 -0
- package/dist/types/components/pick-list/pick-list.d.ts +12 -12
- package/dist/types/components/pick-list-group/pick-list-group.d.ts +2 -2
- package/dist/types/components/pick-list-item/pick-list-item.d.ts +16 -16
- package/dist/types/components/popover/popover.d.ts +19 -19
- package/dist/types/components/progress/progress.d.ts +5 -5
- package/dist/types/components/radio-button/radio-button.d.ts +1 -0
- package/dist/types/components/radio-group/radio-group.d.ts +3 -0
- package/dist/types/components/rating/rating.d.ts +2 -0
- package/dist/types/components/stepper/stepper.d.ts +7 -1
- package/dist/types/components/stepper-item/stepper-item.d.ts +22 -4
- package/dist/types/components/tabs/interfaces.d.ts +1 -1
- package/dist/types/components/tabs/tabs.d.ts +2 -1
- package/dist/types/components/tooltip/tooltip.d.ts +6 -6
- package/dist/types/components/tree/tree.d.ts +4 -4
- package/dist/types/components/tree-item/tree-item.d.ts +3 -3
- package/dist/types/components/value-list/value-list.d.ts +9 -9
- package/dist/types/components/value-list-item/value-list-item.d.ts +11 -11
- package/dist/types/components.d.ts +666 -472
- package/dist/types/preact.d.ts +14 -6
- package/dist/types/utils/dom.d.ts +0 -8
- package/dist/types/utils/form.d.ts +1 -3
- package/dist/types/utils/locale.d.ts +1 -0
- package/dist/types/utils/number.d.ts +16 -0
- package/dist/types/utils/openCloseComponent.d.ts +26 -0
- package/hydrate/index.js +904 -456
- package/package.json +32 -32
- package/readme.md +10 -2
- package/dist/calcite/p-004e3dc9.js +0 -6
- package/dist/calcite/p-08b6213a.system.js +0 -6
- package/dist/calcite/p-0f41fb58.entry.js +0 -6
- package/dist/calcite/p-0fc84480.js +0 -6
- package/dist/calcite/p-1f94715e.entry.js +0 -6
- package/dist/calcite/p-2111668f.system.entry.js +0 -6
- package/dist/calcite/p-23188966.entry.js +0 -6
- package/dist/calcite/p-24edad61.entry.js +0 -6
- package/dist/calcite/p-25fd5141.entry.js +0 -6
- package/dist/calcite/p-2609d345.system.entry.js +0 -6
- package/dist/calcite/p-37c23e83.system.entry.js +0 -6
- package/dist/calcite/p-3a256056.entry.js +0 -6
- package/dist/calcite/p-3d4548a9.js +0 -6
- package/dist/calcite/p-3f00dc7c.entry.js +0 -6
- package/dist/calcite/p-41b0a2a1.system.js +0 -6
- package/dist/calcite/p-4214c119.system.entry.js +0 -6
- package/dist/calcite/p-47bf0f7d.entry.js +0 -6
- package/dist/calcite/p-47dd3632.entry.js +0 -6
- package/dist/calcite/p-4f71c68d.js +0 -6
- package/dist/calcite/p-506f5631.system.entry.js +0 -6
- package/dist/calcite/p-5207385b.system.entry.js +0 -6
- package/dist/calcite/p-53b147dc.system.entry.js +0 -6
- package/dist/calcite/p-59aae748.entry.js +0 -6
- package/dist/calcite/p-5df0640c.system.entry.js +0 -6
- package/dist/calcite/p-5eb016b6.system.entry.js +0 -6
- package/dist/calcite/p-61483431.system.entry.js +0 -6
- package/dist/calcite/p-623f6224.entry.js +0 -6
- package/dist/calcite/p-64384786.entry.js +0 -6
- package/dist/calcite/p-6531fb85.entry.js +0 -6
- package/dist/calcite/p-67af4998.entry.js +0 -6
- package/dist/calcite/p-67ef236d.entry.js +0 -6
- package/dist/calcite/p-68e3013f.system.js +0 -6
- package/dist/calcite/p-717fac51.entry.js +0 -6
- package/dist/calcite/p-7a95bbeb.entry.js +0 -6
- package/dist/calcite/p-800a9250.entry.js +0 -6
- package/dist/calcite/p-878d7c09.system.js +0 -6
- package/dist/calcite/p-994d99ff.system.js +0 -7
- package/dist/calcite/p-9ea395ee.js +0 -6
- package/dist/calcite/p-a1176eac.system.entry.js +0 -6
- package/dist/calcite/p-a5fd7a87.system.entry.js +0 -6
- package/dist/calcite/p-a81ad35a.entry.js +0 -6
- package/dist/calcite/p-a945b681.system.js +0 -6
- package/dist/calcite/p-adc2b773.entry.js +0 -6
- package/dist/calcite/p-c470cecf.entry.js +0 -6
- package/dist/calcite/p-c96917cb.system.js +0 -6
- package/dist/calcite/p-caea0782.js +0 -7
- package/dist/calcite/p-cbe3c2c0.entry.js +0 -6
- package/dist/calcite/p-ccb27d44.system.entry.js +0 -6
- package/dist/calcite/p-db63dc35.system.entry.js +0 -6
- package/dist/calcite/p-dc10e8bb.system.entry.js +0 -6
- package/dist/calcite/p-ddb96773.system.js +0 -6
- package/dist/calcite/p-e0ff045a.js +0 -6
- package/dist/calcite/p-e6ef10e2.js +0 -6
- package/dist/calcite/p-e7336cab.entry.js +0 -6
- package/dist/calcite/p-ee8f8d7e.entry.js +0 -6
- package/dist/calcite/p-f313806e.entry.js +0 -6
- package/dist/calcite/p-f828bc9b.entry.js +0 -6
- package/dist/calcite/p-f850e63f.system.js +0 -6
- package/dist/calcite/p-f91e835d.entry.js +0 -6
- package/dist/calcite/p-f96d2623.system.entry.js +0 -6
- package/dist/calcite/p-faaa959a.entry.js +0 -6
- package/dist/cjs/locale-6c28abd8.js +0 -131
- package/dist/cjs/number-6f1151e7.js +0 -85
- package/dist/collection/demos/_assets/demo-spacer.js +0 -17
- package/dist/collection/demos/_assets/demo-template.js +0 -13
- package/dist/collection/demos/_assets/head.js +0 -45
- package/dist/collection/demos/_assets/locales.js +0 -223
- package/dist/components/number.js +0 -77
- package/dist/esm/locale-705ed382.js +0 -126
- package/dist/esm/number-bb265f44.js +0 -77
- package/dist/esm-es5/Heading-9ccb3452.js +0 -6
- package/dist/esm-es5/dom-4caa79e4.js +0 -6
- package/dist/esm-es5/form-7c2e444b.js +0 -6
- package/dist/esm-es5/index-1e02e91b.js +0 -7
- package/dist/esm-es5/locale-705ed382.js +0 -6
- package/dist/esm-es5/number-bb265f44.js +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-beta.
|
|
4
|
+
* v1.0.0-beta.84
|
|
5
5
|
*/
|
|
6
6
|
import { HTMLElement as HTMLElement$1, createEvent, h, Host, Build, forceUpdate, Fragment, getAssetPath, proxyCustomElement } from '@stencil/core/internal/client';
|
|
7
7
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -19,17 +19,17 @@ const Accordion = class extends HTMLElement$1 {
|
|
|
19
19
|
// Public Properties
|
|
20
20
|
//
|
|
21
21
|
//--------------------------------------------------------------------------
|
|
22
|
-
/**
|
|
22
|
+
/** Specifies the appearance of the component. */
|
|
23
23
|
this.appearance = "default";
|
|
24
|
-
/**
|
|
24
|
+
/** Specifies the placement of the icon in the header. */
|
|
25
25
|
this.iconPosition = "end";
|
|
26
|
-
/**
|
|
26
|
+
/** Specifies the type of the icon in the header. */
|
|
27
27
|
this.iconType = "chevron";
|
|
28
|
-
/**
|
|
28
|
+
/** Specifies the size of the component. */
|
|
29
29
|
this.scale = "m";
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* or single-persist (allow and require one open item)
|
|
31
|
+
* Specifies the selection mode - "multi" (allow any number of open items), "single" (allow one open item),
|
|
32
|
+
* or "single-persist" (allow and require one open item).
|
|
33
33
|
*/
|
|
34
34
|
this.selectionMode = "multi";
|
|
35
35
|
//--------------------------------------------------------------------------
|
|
@@ -147,7 +147,7 @@ const Accordion = class extends HTMLElement$1 {
|
|
|
147
147
|
}
|
|
148
148
|
focusElement(item) {
|
|
149
149
|
const target = item;
|
|
150
|
-
target.focus();
|
|
150
|
+
target === null || target === void 0 ? void 0 : target.focus();
|
|
151
151
|
}
|
|
152
152
|
get el() { return this; }
|
|
153
153
|
static get style() { return accordionCss; }
|
|
@@ -217,32 +217,6 @@ function getRootNode(el) {
|
|
|
217
217
|
function getHost(root) {
|
|
218
218
|
return root.host || null;
|
|
219
219
|
}
|
|
220
|
-
/**
|
|
221
|
-
* This helper queries an element's rootNodes and any ancestor rootNodes.
|
|
222
|
-
*
|
|
223
|
-
* @param element
|
|
224
|
-
* @param selector
|
|
225
|
-
* @returns {Element[]} The elements.
|
|
226
|
-
*/
|
|
227
|
-
function queryElementsRoots(element, selector) {
|
|
228
|
-
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
229
|
-
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
230
|
-
function queryFromAll(el, allResults) {
|
|
231
|
-
if (!el) {
|
|
232
|
-
return allResults;
|
|
233
|
-
}
|
|
234
|
-
if (el.assignedSlot) {
|
|
235
|
-
el = el.assignedSlot;
|
|
236
|
-
}
|
|
237
|
-
const rootNode = getRootNode(el);
|
|
238
|
-
const results = Array.from(rootNode.querySelectorAll(selector));
|
|
239
|
-
const uniqueResults = results.filter((result) => !allResults.includes(result));
|
|
240
|
-
allResults = [...allResults, ...uniqueResults];
|
|
241
|
-
const host = getHost(rootNode);
|
|
242
|
-
return host ? queryFromAll(host, allResults) : allResults;
|
|
243
|
-
}
|
|
244
|
-
return queryFromAll(element, []);
|
|
245
|
-
}
|
|
246
220
|
/**
|
|
247
221
|
* This helper queries an element's rootNode and any ancestor rootNodes.
|
|
248
222
|
*
|
|
@@ -366,10 +340,10 @@ function intersects(rect1, rect2) {
|
|
|
366
340
|
* @returns {string} The string conversion of a boolean value ("true" | "false").
|
|
367
341
|
*/
|
|
368
342
|
function toAriaBoolean(value) {
|
|
369
|
-
return (
|
|
343
|
+
return Boolean(value).toString();
|
|
370
344
|
}
|
|
371
345
|
|
|
372
|
-
const accordionItemCss = "@-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}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .accordion-item-header{outline-color:transparent}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;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);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .accordion-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-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 .accordion-item-content{display:none;padding-top:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([active]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{margin-top:0px;margin-bottom:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-top:0px;padding-bottom:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .accordion-item-
|
|
346
|
+
const accordionItemCss = "@-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}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .accordion-item-header{outline-color:transparent}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]),:host([expanded]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content,:host([expanded]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header,:host([expanded]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;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);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .accordion-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-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 .accordion-item-content{display:none;padding-top:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-expand-icon,:host([expanded]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([active]) .calcite--rtl .accordion-item-expand-icon,:host([expanded]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{margin-top:0px;margin-bottom:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-top:0px;padding-bottom:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .accordion-item-heading,:host .accordion-item-description{display:-ms-flexbox;display:flex;width:100%}:host .accordion-item-heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .accordion-item-description{margin-top:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .accordion-item-heading,:host(:hover) .accordion-item-heading{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:hover) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:hover) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-description,:host(:hover) .accordion-item-description{color:var(--calcite-ui-text-2)}:host(:focus) .accordion-item-heading,:host(:active) .accordion-item-heading,:host([active]) .accordion-item-heading,:host([expanded]) .accordion-item-heading{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:active) .accordion-item-icon,:host([active]) .accordion-item-icon,:host([expanded]) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:active) .accordion-item-expand-icon,:host([active]) .accordion-item-expand-icon,:host([expanded]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-description,:host(:active) .accordion-item-description,:host([active]) .accordion-item-description,:host([expanded]) .accordion-item-description{color:var(--calcite-ui-text-2)}";
|
|
373
347
|
|
|
374
348
|
const AccordionItem = class extends HTMLElement$1 {
|
|
375
349
|
constructor() {
|
|
@@ -385,8 +359,14 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
385
359
|
// Public Properties
|
|
386
360
|
//
|
|
387
361
|
//--------------------------------------------------------------------------
|
|
388
|
-
/**
|
|
362
|
+
/**
|
|
363
|
+
* When true, the component is active.
|
|
364
|
+
*
|
|
365
|
+
* @deprecated use expanded instead
|
|
366
|
+
*/
|
|
389
367
|
this.active = false;
|
|
368
|
+
/** When true, item is expanded */
|
|
369
|
+
this.expanded = false;
|
|
390
370
|
//--------------------------------------------------------------------------
|
|
391
371
|
//
|
|
392
372
|
// Private State/Props
|
|
@@ -425,13 +405,13 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
425
405
|
return (h(Host, { tabindex: "0" }, h("div", { class: {
|
|
426
406
|
[`icon-position--${this.iconPosition}`]: true,
|
|
427
407
|
[`icon-type--${this.iconType}`]: true
|
|
428
|
-
} }, h("div", { "aria-controls": regionId, class: { "accordion-item-header": true, [CSS_UTILITY.rtl]: dir === "rtl" }, id: buttonId, onClick: this.itemHeaderClickHandler, role: "button" }, this.icon ? iconEl : null, h("div", { class: "accordion-item-header-text" }, h("span", { class: "accordion-item-
|
|
408
|
+
} }, h("div", { "aria-controls": regionId, "aria-expanded": toAriaBoolean(this.active), class: { "accordion-item-header": true, [CSS_UTILITY.rtl]: dir === "rtl" }, id: buttonId, onClick: this.itemHeaderClickHandler, role: "button" }, this.icon ? iconEl : null, h("div", { class: "accordion-item-header-text" }, h("span", { class: "accordion-item-heading" }, this.heading || this.itemTitle), this.itemSubtitle ? (h("span", { class: "accordion-item-description" }, this.description || this.itemSubtitle)) : null), h("calcite-icon", { class: "accordion-item-expand-icon", icon: this.iconType === "chevron"
|
|
429
409
|
? "chevronDown"
|
|
430
410
|
: this.iconType === "caret"
|
|
431
411
|
? "caretDown"
|
|
432
|
-
: this.active
|
|
412
|
+
: this.expanded || this.active
|
|
433
413
|
? "minus"
|
|
434
|
-
: "plus", scale: "s" })), h("div", { "aria-expanded": toAriaBoolean(this.active), "aria-labelledby": buttonId, class: "accordion-item-content", id: regionId, role: "region" }, h("slot", null)))));
|
|
414
|
+
: "plus", scale: "s" })), h("div", { "aria-expanded": toAriaBoolean(this.expanded || this.active), "aria-labelledby": buttonId, class: "accordion-item-content", id: regionId, role: "region" }, h("slot", null)))));
|
|
435
415
|
}
|
|
436
416
|
//--------------------------------------------------------------------------
|
|
437
417
|
//
|
|
@@ -478,13 +458,16 @@ const AccordionItem = class extends HTMLElement$1 {
|
|
|
478
458
|
case "multi":
|
|
479
459
|
if (this.el === this.requestedAccordionItem) {
|
|
480
460
|
this.active = !this.active;
|
|
461
|
+
this.expanded = !this.expanded;
|
|
481
462
|
}
|
|
482
463
|
break;
|
|
483
464
|
case "single":
|
|
484
465
|
this.active = this.el === this.requestedAccordionItem ? !this.active : false;
|
|
466
|
+
this.expanded = this.el === this.requestedAccordionItem ? !this.expanded : false;
|
|
485
467
|
break;
|
|
486
468
|
case "single-persist":
|
|
487
469
|
this.active = this.el === this.requestedAccordionItem;
|
|
470
|
+
this.expanded = this.el === this.requestedAccordionItem;
|
|
488
471
|
break;
|
|
489
472
|
}
|
|
490
473
|
}
|
|
@@ -573,7 +556,7 @@ function updateHostInteraction(component, hostIsTabbable = false) {
|
|
|
573
556
|
component.el.removeAttribute("aria-disabled");
|
|
574
557
|
}
|
|
575
558
|
|
|
576
|
-
const actionCss = "@-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;background-color:transparent}: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}.button{position:relative;margin:0px;display:-ms-flexbox;display:flex;width:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;-ms-flex:1 0 auto;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:1rem;min-height:1rem}.button .text-container{margin:0px;width:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1rem;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-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);-webkit-transition-property:margin;transition-property:margin;-webkit-transition-property:width;transition-property:width}.button .text-container--visible{width:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:0px;padding-right:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-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([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);-webkit-margin-end:0px;margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;z-index:10;height:0.5rem;width:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-
|
|
559
|
+
const actionCss = "@-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;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}: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}.button{position:relative;margin:0px;display:-ms-flexbox;display:flex;width:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;-ms-flex:1 0 auto;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:1rem;min-height:1rem}.button .text-container{margin:0px;width:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1rem;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-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);-webkit-transition-property:margin;transition-property:margin;-webkit-transition-property:width;transition-property:width}.button .text-container--visible{width:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:0px;padding-right:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-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([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);-webkit-margin-end:0px;margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;z-index:10;height:0.5rem;width:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
|
|
577
560
|
|
|
578
561
|
const Action = class extends HTMLElement$1 {
|
|
579
562
|
constructor() {
|
|
@@ -587,35 +570,35 @@ const Action = class extends HTMLElement$1 {
|
|
|
587
570
|
//
|
|
588
571
|
// --------------------------------------------------------------------------
|
|
589
572
|
/**
|
|
590
|
-
*
|
|
573
|
+
* When true, the component is highlighted.
|
|
591
574
|
*/
|
|
592
575
|
this.active = false;
|
|
593
|
-
/**
|
|
576
|
+
/** Specifies the appearance of the component. */
|
|
594
577
|
this.appearance = "solid";
|
|
595
578
|
/**
|
|
596
|
-
* Compact mode is used internally by components
|
|
579
|
+
* When true, the side padding of the component is reduced. Compact mode is used internally by components, e.g. `calcite-block-section`.
|
|
597
580
|
*/
|
|
598
581
|
this.compact = false;
|
|
599
582
|
/**
|
|
600
|
-
* When true,
|
|
583
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
601
584
|
*/
|
|
602
585
|
this.disabled = false;
|
|
603
586
|
/**
|
|
604
|
-
*
|
|
587
|
+
* When true, indicates unread changes.
|
|
605
588
|
*/
|
|
606
589
|
this.indicator = false;
|
|
607
590
|
/**
|
|
608
|
-
*
|
|
591
|
+
* Specifies the text label to display while loading.
|
|
609
592
|
*
|
|
610
593
|
* @default "Loading"
|
|
611
594
|
*/
|
|
612
595
|
this.intlLoading = TEXT$r.loading;
|
|
613
596
|
/**
|
|
614
|
-
* When true,
|
|
597
|
+
* When true, a busy indicator is displayed.
|
|
615
598
|
*/
|
|
616
599
|
this.loading = false;
|
|
617
600
|
/**
|
|
618
|
-
* Specifies the size of the
|
|
601
|
+
* Specifies the size of the component.
|
|
619
602
|
*/
|
|
620
603
|
this.scale = "m";
|
|
621
604
|
/**
|
|
@@ -657,7 +640,8 @@ const Action = class extends HTMLElement$1 {
|
|
|
657
640
|
// --------------------------------------------------------------------------
|
|
658
641
|
/** Sets focus on the component. */
|
|
659
642
|
async setFocus() {
|
|
660
|
-
|
|
643
|
+
var _a;
|
|
644
|
+
(_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
661
645
|
}
|
|
662
646
|
// --------------------------------------------------------------------------
|
|
663
647
|
//
|
|
@@ -2128,15 +2112,15 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2128
2112
|
//
|
|
2129
2113
|
// --------------------------------------------------------------------------
|
|
2130
2114
|
/**
|
|
2131
|
-
* When
|
|
2115
|
+
* When true, the expand-toggling behavior is disabled.
|
|
2132
2116
|
*/
|
|
2133
2117
|
this.expandDisabled = false;
|
|
2134
2118
|
/**
|
|
2135
|
-
*
|
|
2119
|
+
* When true, the component is expanded.
|
|
2136
2120
|
*/
|
|
2137
2121
|
this.expanded = false;
|
|
2138
2122
|
/**
|
|
2139
|
-
* Disables automatically overflowing
|
|
2123
|
+
* Disables automatically overflowing `calcite-action`s that won't fit into menus.
|
|
2140
2124
|
*/
|
|
2141
2125
|
this.overflowActionsDisabled = false;
|
|
2142
2126
|
this.mutationObserver = createObserver("mutation", () => {
|
|
@@ -2259,11 +2243,12 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2259
2243
|
* @param focusId
|
|
2260
2244
|
*/
|
|
2261
2245
|
async setFocus(focusId) {
|
|
2246
|
+
var _a;
|
|
2262
2247
|
if (focusId === "expand-toggle") {
|
|
2263
2248
|
await focusElement(this.expandToggleEl);
|
|
2264
2249
|
return;
|
|
2265
2250
|
}
|
|
2266
|
-
this.el.focus();
|
|
2251
|
+
(_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
|
|
2267
2252
|
}
|
|
2268
2253
|
// --------------------------------------------------------------------------
|
|
2269
2254
|
//
|
|
@@ -2303,15 +2288,15 @@ const ActionGroup = class extends HTMLElement$1 {
|
|
|
2303
2288
|
//
|
|
2304
2289
|
// --------------------------------------------------------------------------
|
|
2305
2290
|
/**
|
|
2306
|
-
*
|
|
2291
|
+
* When true, the component is expanded.
|
|
2307
2292
|
*/
|
|
2308
2293
|
this.expanded = false;
|
|
2309
2294
|
/**
|
|
2310
|
-
* Indicates the
|
|
2295
|
+
* Indicates the layout of the component.
|
|
2311
2296
|
*/
|
|
2312
2297
|
this.layout = "vertical";
|
|
2313
2298
|
/**
|
|
2314
|
-
*
|
|
2299
|
+
* When true, the `calcite-action-menu` is open.
|
|
2315
2300
|
*/
|
|
2316
2301
|
this.menuOpen = false;
|
|
2317
2302
|
// --------------------------------------------------------------------------
|
|
@@ -2382,17 +2367,17 @@ const ActionMenu = class extends HTMLElement$1 {
|
|
|
2382
2367
|
//
|
|
2383
2368
|
// --------------------------------------------------------------------------
|
|
2384
2369
|
/**
|
|
2385
|
-
*
|
|
2370
|
+
* When true, the component is expanded.
|
|
2386
2371
|
*/
|
|
2387
2372
|
this.expanded = false;
|
|
2388
2373
|
/**
|
|
2389
|
-
*
|
|
2374
|
+
* When true, the component is open.
|
|
2390
2375
|
*/
|
|
2391
2376
|
this.open = false;
|
|
2392
|
-
/**
|
|
2377
|
+
/** Determines the type of positioning to use for the overlaid content. If your element is in a fixed container, use the "fixed" value. */
|
|
2393
2378
|
this.overlayPositioning = "absolute";
|
|
2394
2379
|
/**
|
|
2395
|
-
* Determines where the component will be positioned relative to the referenceElement
|
|
2380
|
+
* Determines where the component will be positioned relative to the `referenceElement`.
|
|
2396
2381
|
*
|
|
2397
2382
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
2398
2383
|
*/
|
|
@@ -2674,15 +2659,15 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2674
2659
|
//
|
|
2675
2660
|
// --------------------------------------------------------------------------
|
|
2676
2661
|
/**
|
|
2677
|
-
* When
|
|
2662
|
+
* When true, the expand-toggling behavior is disabled.
|
|
2678
2663
|
*/
|
|
2679
2664
|
this.expandDisabled = false;
|
|
2680
2665
|
/**
|
|
2681
|
-
*
|
|
2666
|
+
* When true, the component is expanded.
|
|
2682
2667
|
*/
|
|
2683
2668
|
this.expanded = false;
|
|
2684
2669
|
/**
|
|
2685
|
-
* Indicates the
|
|
2670
|
+
* Indicates the layout of the component.
|
|
2686
2671
|
*/
|
|
2687
2672
|
this.layout = "vertical";
|
|
2688
2673
|
// --------------------------------------------------------------------------
|
|
@@ -2737,11 +2722,12 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2737
2722
|
* @param focusId
|
|
2738
2723
|
*/
|
|
2739
2724
|
async setFocus(focusId) {
|
|
2725
|
+
var _a;
|
|
2740
2726
|
if (focusId === "expand-toggle") {
|
|
2741
2727
|
await focusElement(this.expandToggleEl);
|
|
2742
2728
|
return;
|
|
2743
2729
|
}
|
|
2744
|
-
this.el.focus();
|
|
2730
|
+
(_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
|
|
2745
2731
|
}
|
|
2746
2732
|
// --------------------------------------------------------------------------
|
|
2747
2733
|
//
|
|
@@ -2795,7 +2781,9 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2795
2781
|
super();
|
|
2796
2782
|
this.__registerHost();
|
|
2797
2783
|
this.__attachShadow();
|
|
2784
|
+
this.calciteAlertBeforeClose = createEvent(this, "calciteAlertBeforeClose", 7);
|
|
2798
2785
|
this.calciteAlertClose = createEvent(this, "calciteAlertClose", 7);
|
|
2786
|
+
this.calciteAlertBeforeOpen = createEvent(this, "calciteAlertBeforeOpen", 7);
|
|
2799
2787
|
this.calciteAlertOpen = createEvent(this, "calciteAlertOpen", 7);
|
|
2800
2788
|
this.calciteInternalAlertSync = createEvent(this, "calciteInternalAlertSync", 7);
|
|
2801
2789
|
this.calciteInternalAlertRegister = createEvent(this, "calciteInternalAlertRegister", 7);
|
|
@@ -2804,23 +2792,23 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2804
2792
|
// Properties
|
|
2805
2793
|
//
|
|
2806
2794
|
//---------------------------------------------------------------------------
|
|
2807
|
-
/**
|
|
2795
|
+
/** When true, the component is active. */
|
|
2808
2796
|
this.active = false;
|
|
2809
|
-
/**
|
|
2797
|
+
/** When true, the component closes automatically (recommended for passive, non-blocking alerts). */
|
|
2810
2798
|
this.autoDismiss = false;
|
|
2811
|
-
/**
|
|
2799
|
+
/** Specifies the duration before the component automatically closes (only use with `autoDismiss`). */
|
|
2812
2800
|
this.autoDismissDuration = this.autoDismiss ? "medium" : null;
|
|
2813
|
-
/**
|
|
2801
|
+
/** Specifies the color for the component (will apply to top border and icon). */
|
|
2814
2802
|
this.color = "blue";
|
|
2815
2803
|
/**
|
|
2816
|
-
*
|
|
2804
|
+
* Specifies the text label for the close button.
|
|
2817
2805
|
*
|
|
2818
2806
|
* @default "Close"
|
|
2819
2807
|
*/
|
|
2820
2808
|
this.intlClose = TEXT$n.intlClose;
|
|
2821
|
-
/**
|
|
2809
|
+
/** Specifies the placement of the component */
|
|
2822
2810
|
this.placement = "bottom";
|
|
2823
|
-
/**
|
|
2811
|
+
/** Specifies the size of the component. */
|
|
2824
2812
|
this.scale = "m";
|
|
2825
2813
|
//--------------------------------------------------------------------------
|
|
2826
2814
|
//
|
|
@@ -2833,10 +2821,14 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2833
2821
|
this.queueLength = 0;
|
|
2834
2822
|
/** is the alert queued */
|
|
2835
2823
|
this.queued = false;
|
|
2824
|
+
this.setContainerDiv = (el) => {
|
|
2825
|
+
this.containerDiv = el;
|
|
2826
|
+
this.containerDiv.addEventListener("transitionrun", this.transitionRunHandler);
|
|
2827
|
+
};
|
|
2836
2828
|
this.autoDismissTimeoutId = null;
|
|
2837
2829
|
this.trackTimer = Date.now();
|
|
2838
2830
|
this.activeTransitionProp = "opacity";
|
|
2839
|
-
/** close and emit
|
|
2831
|
+
/** close and emit calciteInternalAlertSync event with the updated queue payload */
|
|
2840
2832
|
this.closeAlert = () => {
|
|
2841
2833
|
this.autoDismissTimeoutId = null;
|
|
2842
2834
|
this.queued = false;
|
|
@@ -2845,17 +2837,18 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2845
2837
|
this.determineActiveAlert();
|
|
2846
2838
|
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
2847
2839
|
};
|
|
2840
|
+
/* *
|
|
2841
|
+
- `transitionrun` fires when the transition is created at the start of any delay and is not cancellable once started.
|
|
2842
|
+
- if there is no transition delay, both `transitionrun` and `transitionstart` are fired at the same time.
|
|
2843
|
+
*/
|
|
2844
|
+
this.transitionRunHandler = (event) => {
|
|
2845
|
+
if (event.propertyName === this.activeTransitionProp) {
|
|
2846
|
+
this.active ? this.emitOpenCloseEvent("beforeOpen") : this.emitOpenCloseEvent("beforeClose");
|
|
2847
|
+
}
|
|
2848
|
+
};
|
|
2848
2849
|
this.transitionEnd = (event) => {
|
|
2849
2850
|
if (event.propertyName === this.activeTransitionProp) {
|
|
2850
|
-
this.active
|
|
2851
|
-
? this.calciteAlertOpen.emit({
|
|
2852
|
-
el: this.el,
|
|
2853
|
-
queue: this.queue
|
|
2854
|
-
})
|
|
2855
|
-
: this.calciteAlertClose.emit({
|
|
2856
|
-
el: this.el,
|
|
2857
|
-
queue: this.queue
|
|
2858
|
-
});
|
|
2851
|
+
this.active ? this.emitOpenCloseEvent("open") : this.emitOpenCloseEvent("close");
|
|
2859
2852
|
}
|
|
2860
2853
|
};
|
|
2861
2854
|
}
|
|
@@ -2892,6 +2885,9 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2892
2885
|
}
|
|
2893
2886
|
disconnectedCallback() {
|
|
2894
2887
|
window.clearTimeout(this.autoDismissTimeoutId);
|
|
2888
|
+
if (this.containerDiv) {
|
|
2889
|
+
this.containerDiv.removeEventListener("transitionrun", this.transitionRunHandler);
|
|
2890
|
+
}
|
|
2895
2891
|
}
|
|
2896
2892
|
render() {
|
|
2897
2893
|
const closeButton = (h("button", { "aria-label": this.intlClose, class: "alert-close", onClick: this.closeAlert, ref: (el) => (this.closeButton = el), type: "button" }, h("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
@@ -2904,7 +2900,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2904
2900
|
container: true,
|
|
2905
2901
|
queued,
|
|
2906
2902
|
[placement]: true
|
|
2907
|
-
}, onTransitionEnd: this.transitionEnd }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$l.title }), h("slot", { name: SLOTS$l.message }), h("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
2903
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setContainerDiv }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$l.title }), h("slot", { name: SLOTS$l.message }), h("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
2908
2904
|
}
|
|
2909
2905
|
// when an alert is opened or closed, update queue and determine active alert
|
|
2910
2906
|
alertSync(event) {
|
|
@@ -2915,7 +2911,7 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2915
2911
|
this.determineActiveAlert();
|
|
2916
2912
|
event.stopPropagation();
|
|
2917
2913
|
}
|
|
2918
|
-
// when an alert is first registered, trigger a queue sync
|
|
2914
|
+
// when an alert is first registered, trigger a queue sync
|
|
2919
2915
|
alertRegister() {
|
|
2920
2916
|
if (this.active && !this.queue.includes(this.el)) {
|
|
2921
2917
|
this.queued = true;
|
|
@@ -2961,11 +2957,25 @@ const Alert = class extends HTMLElement$1 {
|
|
|
2961
2957
|
return;
|
|
2962
2958
|
}
|
|
2963
2959
|
}
|
|
2964
|
-
/**
|
|
2960
|
+
/** remove queued class after animation completes */
|
|
2965
2961
|
openAlert() {
|
|
2966
2962
|
window.clearTimeout(this.queueTimeout);
|
|
2967
2963
|
this.queueTimeout = window.setTimeout(() => (this.queued = false), 300);
|
|
2968
2964
|
}
|
|
2965
|
+
emitOpenCloseEvent(componentVisibilityState) {
|
|
2966
|
+
const payload = {
|
|
2967
|
+
el: this.el,
|
|
2968
|
+
queue: this.queue
|
|
2969
|
+
};
|
|
2970
|
+
const emitComponentState = {
|
|
2971
|
+
beforeOpen: () => this.calciteAlertBeforeOpen.emit(payload),
|
|
2972
|
+
open: () => this.calciteAlertOpen.emit(payload),
|
|
2973
|
+
beforeClose: () => this.calciteAlertBeforeClose.emit(payload),
|
|
2974
|
+
close: () => this.calciteAlertClose.emit(payload)
|
|
2975
|
+
};
|
|
2976
|
+
(emitComponentState[componentVisibilityState] ||
|
|
2977
|
+
emitComponentState["The component state is unknown."])();
|
|
2978
|
+
}
|
|
2969
2979
|
get el() { return this; }
|
|
2970
2980
|
static get watchers() { return {
|
|
2971
2981
|
"active": ["watchActive"],
|
|
@@ -3153,7 +3163,7 @@ const Avatar = class extends HTMLElement$1 {
|
|
|
3153
3163
|
// Properties
|
|
3154
3164
|
//
|
|
3155
3165
|
//--------------------------------------------------------------------------
|
|
3156
|
-
/**
|
|
3166
|
+
/** Specifies the size of the component. */
|
|
3157
3167
|
this.scale = "m";
|
|
3158
3168
|
//--------------------------------------------------------------------------
|
|
3159
3169
|
//
|
|
@@ -3235,6 +3245,7 @@ const CSS$L = {
|
|
|
3235
3245
|
header: "header",
|
|
3236
3246
|
button: "button",
|
|
3237
3247
|
summary: "summary",
|
|
3248
|
+
description: "description",
|
|
3238
3249
|
controlContainer: "control-container",
|
|
3239
3250
|
valid: "valid",
|
|
3240
3251
|
invalid: "invalid",
|
|
@@ -3266,10 +3277,10 @@ function constrainHeadingLevel(level) {
|
|
|
3266
3277
|
const Heading = (props, children) => {
|
|
3267
3278
|
const HeadingTag = `h${props.level}`;
|
|
3268
3279
|
delete props.level;
|
|
3269
|
-
return h(HeadingTag,
|
|
3280
|
+
return h(HeadingTag, { ...props }, children);
|
|
3270
3281
|
};
|
|
3271
3282
|
|
|
3272
|
-
const blockCss = "@-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}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-direction:column;flex-direction:column;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding:0px;-webkit-transition-property:margin;transition-property:margin;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);-ms-flex-preferred-size:auto;flex-basis:auto}: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}.header{-ms-flex-pack:start;justify-content:flex-start;padding:0px}.header,.toggle{grid-area:header}.header-container{display:grid;-ms-flex-align:stretch;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:\"handle header control menu\";grid-column:header-start/menu-end;grid-row:1/2}.toggle{margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;border-style:none;padding:0px;font-family:inherit;outline-color:transparent;text-align:initial;background-color:transparent}.toggle:hover{background-color:var(--calcite-ui-foreground-2)}.toggle:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-loader[inline]{grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0px;padding:0.75rem}.header .title .heading{padding:0px;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-2);-webkit-transition-property:color;transition-property:color;-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);word-wrap:break-word;word-break:break-word}.
|
|
3283
|
+
const blockCss = "@-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}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-direction:column;flex-direction:column;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding:0px;-webkit-transition-property:margin;transition-property:margin;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);-ms-flex-preferred-size:auto;flex-basis:auto}: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}.header{-ms-flex-pack:start;justify-content:flex-start;padding:0px}.header,.toggle{grid-area:header}.header-container{display:grid;-ms-flex-align:stretch;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:\"handle header control menu\";grid-column:header-start/menu-end;grid-row:1/2}.toggle{margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;border-style:none;padding:0px;font-family:inherit;outline-color:transparent;text-align:initial;background-color:transparent}.toggle:hover{background-color:var(--calcite-ui-foreground-2)}.toggle:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-loader[inline]{grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0px;padding:0.75rem}.header .title .heading{padding:0px;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-2);-webkit-transition-property:color;transition-property:color;-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);word-wrap:break-word;word-break:break-word}.description{margin-top:0.125rem;padding:0px;font-size:var(--calcite-font-size--2);color:var(--calcite-ui-text-3);word-wrap:break-word;word-break:break-word}.icon{-webkit-margin-start:0.75rem;margin-inline-start:0.75rem;-webkit-margin-end:0px;margin-inline-end:0px;margin-block:0.75rem}.status-icon.valid{color:var(--calcite-ui-success)}.status-icon.invalid{color:var(--calcite-ui-danger)}.status-icon.loading{-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.toggle-icon{margin-top:0.75rem;margin-bottom:0.75rem;-ms-flex-item-align:center;align-self:center;justify-self:end;color:var(--calcite-ui-text-3);-webkit-transition-property:color;transition-property:color;-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);-webkit-margin-end:1rem;margin-inline-end:1rem;-webkit-margin-start:auto;margin-inline-start:auto}.toggle:hover .toggle-icon{color:var(--calcite-ui-text-1)}.content{position:relative}@keyframes in{0%{opacity:0}100%{opacity:1}}.content{-webkit-animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;animation:in var(--calcite-internal-animation-timing-slow) ease-in-out}.content--spaced{padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem}.control-container{margin:0px;display:-ms-flexbox;display:flex;grid-area:control}calcite-action-menu{grid-area:menu}:host([open]){margin-top:0.5rem;margin-bottom:0.5rem}:host([open]) .header .title .heading{color:var(--calcite-ui-text-1)}";
|
|
3273
3284
|
|
|
3274
3285
|
const Block = class extends HTMLElement$1 {
|
|
3275
3286
|
constructor() {
|
|
@@ -3326,6 +3337,8 @@ const Block = class extends HTMLElement$1 {
|
|
|
3326
3337
|
* When true, the block's content will be displayed.
|
|
3327
3338
|
*/
|
|
3328
3339
|
this.open = false;
|
|
3340
|
+
/** When true, removes padding for the slotted content */
|
|
3341
|
+
this.disablePadding = false;
|
|
3329
3342
|
this.guid = guid();
|
|
3330
3343
|
// --------------------------------------------------------------------------
|
|
3331
3344
|
//
|
|
@@ -3380,8 +3393,8 @@ const Block = class extends HTMLElement$1 {
|
|
|
3380
3393
|
return hasIcon ? h("div", { class: CSS$L.icon }, iconEl) : null;
|
|
3381
3394
|
}
|
|
3382
3395
|
renderTitle() {
|
|
3383
|
-
const { heading, headingLevel, summary } = this;
|
|
3384
|
-
return heading || summary ? (h("div", { class: CSS$L.title }, h(Heading, { class: CSS$L.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary ? h("div", { class: CSS$L.
|
|
3396
|
+
const { heading, headingLevel, summary, description } = this;
|
|
3397
|
+
return heading || summary || description ? (h("div", { class: CSS$L.title }, h(Heading, { class: CSS$L.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary || description ? (h("div", { class: CSS$L.description }, summary || description)) : null)) : null;
|
|
3385
3398
|
}
|
|
3386
3399
|
render() {
|
|
3387
3400
|
const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
@@ -3396,7 +3409,10 @@ const Block = class extends HTMLElement$1 {
|
|
|
3396
3409
|
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$L.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$L.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$m.options }, h("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
3397
3410
|
return (h(Host, null, h("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
3398
3411
|
[CSS$L.article]: true
|
|
3399
|
-
} }, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class:
|
|
3412
|
+
} }, headerNode, h("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: {
|
|
3413
|
+
content: true,
|
|
3414
|
+
"content--spaced": !this.disablePadding
|
|
3415
|
+
}, hidden: !open, id: regionId }, this.renderScrim()))));
|
|
3400
3416
|
}
|
|
3401
3417
|
get el() { return this; }
|
|
3402
3418
|
static get style() { return blockCss; }
|
|
@@ -3696,8 +3712,11 @@ function hasRegisteredFormComponentParent(form, formComponentEl) {
|
|
|
3696
3712
|
* @param component
|
|
3697
3713
|
*/
|
|
3698
3714
|
function submitForm(component) {
|
|
3699
|
-
|
|
3700
|
-
(
|
|
3715
|
+
const { formEl } = component;
|
|
3716
|
+
if (!formEl) {
|
|
3717
|
+
return;
|
|
3718
|
+
}
|
|
3719
|
+
"requestSubmit" in formEl ? formEl.requestSubmit() : formEl.submit();
|
|
3701
3720
|
}
|
|
3702
3721
|
/**
|
|
3703
3722
|
* Helper to reset a form.
|
|
@@ -3976,7 +3995,8 @@ const Button = class extends HTMLElement$1 {
|
|
|
3976
3995
|
//--------------------------------------------------------------------------
|
|
3977
3996
|
/** Sets focus on the component. */
|
|
3978
3997
|
async setFocus() {
|
|
3979
|
-
|
|
3998
|
+
var _a;
|
|
3999
|
+
(_a = this.childEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
3980
4000
|
}
|
|
3981
4001
|
updateHasContent() {
|
|
3982
4002
|
var _a, _b;
|
|
@@ -4274,7 +4294,7 @@ const ICONS$a = {
|
|
|
4274
4294
|
close: "x"
|
|
4275
4295
|
};
|
|
4276
4296
|
|
|
4277
|
-
const chipCss = "@-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([scale=s]){height:1.5rem;font-size:var(--calcite-font-size--2);--calcite-chip-spacing-unit-l:0.5rem;--calcite-chip-spacing-unit-s:0.25rem}:host([scale=s]) .image-container{height:1.25rem;width:1.25rem}:host([scale=m]){height:2rem;font-size:var(--calcite-font-size--1);--calcite-chip-spacing-unit-l:0.75rem;--calcite-chip-spacing-unit-s:6px}:host([scale=m]) .image-container{height:1.5rem;width:1.5rem;-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host([scale=l]){height:2.75rem;font-size:var(--calcite-font-size-0);--calcite-chip-spacing-unit-l:1rem;--calcite-chip-spacing-unit-s:0.5rem}:host([scale=l]) .image-container{height:2rem;width:2rem;-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;cursor:default;-ms-flex-align:center;align-items:center;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.container{display:-ms-inline-flexbox;display:inline-flex;height:100%;max-width:100%;-ms-flex-align:center;align-items:center}.title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host span{padding:0 var(--calcite-chip-spacing-unit-l)}:host([dismissible]) span{padding-inline:var(--calcite-chip-spacing-unit-l) var(--calcite-chip-spacing-unit-s)}:host([icon]:not([dismissible])) span{padding:0 var(--calcite-chip-spacing-unit-l)}:host button{margin:0px;display:-ms-inline-flexbox;display:inline-flex;max-height:100%;min-height:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-ui-text-1);outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;-webkit-appearance:none;border-start-start-radius:0;border-start-end-radius:50px;border-end-end-radius:50px;border-end-start-radius:0;padding:0 var(--calcite-chip-spacing-unit-s);color:inherit;--calcite-chip-transparent-hover:var(--calcite-button-transparent-hover);--calcite-chip-transparent-press:var(--calcite-button-transparent-press)}:host button:hover{background-color:var(--calcite-chip-transparent-hover)}:host button:focus{background-color:var(--calcite-chip-transparent-hover);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host button:active{background-color:var(--calcite-chip-transparent-press)}.image-container{display:-ms-inline-flexbox;display:inline-flex;overflow:hidden;border-radius:50%}:host slot[name=image]::slotted(*){display:-ms-flexbox;display:flex;height:100%;width:100%;overflow:hidden;border-radius:50%}.chip-icon{position:relative;margin-top:0px;margin-bottom:0px;display:-ms-inline-flexbox;display:inline-flex;-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);-webkit-margin-end:0;margin-inline-end:0;-webkit-margin-start:var(--calcite-chip-spacing-unit-l);margin-inline-start:var(--calcite-chip-spacing-unit-l);border-start-start-radius:0;border-start-end-radius:50px;border-end-end-radius:50px;border-end-start-radius:0}:host([color=blue][appearance=solid]){border-color:transparent;background-color:var(--calcite-ui-info);color:var(--calcite-ui-text-inverse)}:host([color=red][appearance=solid]){border-color:transparent;background-color:var(--calcite-ui-danger);color:var(--calcite-ui-text-inverse)}:host([color=yellow][appearance=solid]){border-color:transparent;background-color:var(--calcite-ui-warning);color:#151515}:host([color=green][appearance=solid]){border-color:transparent;background-color:var(--calcite-ui-success);color:#151515}:host([color=grey][appearance=solid]){border-color:transparent;background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host([color=grey][appearance=solid]) button,:host([color=grey][appearance=solid]) .close-icon{color:var(--calcite-ui-text-3)}:host([color=grey][appearance=solid]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-text-3))}:host([color=blue][appearance=clear]){border-color:var(--calcite-ui-info)}:host([color=blue][appearance=clear]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-info))}:host([color=red][appearance=clear]){border-color:var(--calcite-ui-danger)}:host([color=red][appearance=clear]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-danger))}:host([color=yellow][appearance=clear]){border-color:var(--calcite-ui-warning)}:host([color=yellow][appearance=clear]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-warning))}:host([color=green][appearance=clear]){border-color:var(--calcite-ui-success)}:host([color=green][appearance=clear]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-success))}:host([color=grey][appearance=clear]){border-color:var(--calcite-ui-border-1)}:host([color=grey][appearance=clear]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-text-3))}";
|
|
4297
|
+
const chipCss = "@-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([scale=s]){height:1.5rem;font-size:var(--calcite-font-size--2);--calcite-chip-spacing-unit-l:0.5rem;--calcite-chip-spacing-unit-s:0.25rem}:host([scale=s]) .image-container{height:1.25rem;width:1.25rem}:host([scale=m]){height:2rem;font-size:var(--calcite-font-size--1);--calcite-chip-spacing-unit-l:0.75rem;--calcite-chip-spacing-unit-s:6px}:host([scale=m]) .image-container{height:1.5rem;width:1.5rem;-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host([scale=l]){height:2.75rem;font-size:var(--calcite-font-size-0);--calcite-chip-spacing-unit-l:1rem;--calcite-chip-spacing-unit-s:0.5rem}:host([scale=l]) .image-container{height:2rem;width:2rem;-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;cursor:default;-ms-flex-align:center;align-items:center;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.container{display:-ms-inline-flexbox;display:inline-flex;height:100%;max-width:100%;-ms-flex-align:center;align-items:center}.title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host span{padding:0 var(--calcite-chip-spacing-unit-l)}:host([dismissible]) span{padding-inline:var(--calcite-chip-spacing-unit-l) var(--calcite-chip-spacing-unit-s)}:host([icon]:not([dismissible])) span{padding:0 var(--calcite-chip-spacing-unit-l)}:host button{margin:0px;display:-ms-inline-flexbox;display:inline-flex;max-height:100%;min-height:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-ui-text-1);outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;-webkit-appearance:none;border-start-start-radius:0;border-start-end-radius:50px;border-end-end-radius:50px;border-end-start-radius:0;padding:0 var(--calcite-chip-spacing-unit-s);color:inherit;--calcite-chip-transparent-hover:var(--calcite-button-transparent-hover);--calcite-chip-transparent-press:var(--calcite-button-transparent-press)}:host button:hover{background-color:var(--calcite-chip-transparent-hover)}:host button:focus{background-color:var(--calcite-chip-transparent-hover);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host button:active{background-color:var(--calcite-chip-transparent-press)}.image-container{display:-ms-inline-flexbox;display:inline-flex;overflow:hidden;border-radius:50%}:host slot[name=image]::slotted(*){display:-ms-flexbox;display:flex;height:100%;width:100%;overflow:hidden;border-radius:50%}.chip-icon{position:relative;margin-top:0px;margin-bottom:0px;display:-ms-inline-flexbox;display:inline-flex;-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);-webkit-margin-end:0;margin-inline-end:0;-webkit-margin-start:var(--calcite-chip-spacing-unit-l);margin-inline-start:var(--calcite-chip-spacing-unit-l);border-start-start-radius:0;border-start-end-radius:50px;border-end-end-radius:50px;border-end-start-radius:0}:host([color=blue][appearance=solid]){border-color:transparent;background-color:var(--calcite-ui-info);color:var(--calcite-ui-text-inverse)}:host([color=red][appearance=solid]){border-color:transparent;background-color:var(--calcite-ui-danger);color:var(--calcite-ui-text-inverse)}:host([color=yellow][appearance=solid]){border-color:transparent;background-color:var(--calcite-ui-warning);color:#151515}:host([color=green][appearance=solid]){border-color:transparent;background-color:var(--calcite-ui-success);color:#151515}:host([color=grey][appearance=solid]){border-color:transparent;background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host([color=grey][appearance=solid]) button,:host([color=grey][appearance=solid]) .close-icon{color:var(--calcite-ui-text-3)}:host([color=grey][appearance=solid]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-text-3))}:host([color=blue][appearance=clear]){border-color:var(--calcite-ui-info)}:host([color=blue][appearance=clear]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-info))}:host([color=red][appearance=clear]){border-color:var(--calcite-ui-danger)}:host([color=red][appearance=clear]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-danger))}:host([color=yellow][appearance=clear]){border-color:var(--calcite-ui-warning)}:host([color=yellow][appearance=clear]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-warning))}:host([color=green][appearance=clear]){border-color:var(--calcite-ui-success)}:host([color=green][appearance=clear]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-success))}:host([color=grey][appearance=clear]){border-color:var(--calcite-ui-border-1)}:host([color=grey][appearance=clear]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-text-3))}:host([closed]){display:none}";
|
|
4278
4298
|
|
|
4279
4299
|
const Chip = class extends HTMLElement$1 {
|
|
4280
4300
|
constructor() {
|
|
@@ -4303,6 +4323,8 @@ const Chip = class extends HTMLElement$1 {
|
|
|
4303
4323
|
this.iconFlipRtl = false;
|
|
4304
4324
|
/** specify the scale of the chip, defaults to m */
|
|
4305
4325
|
this.scale = "m";
|
|
4326
|
+
/** When true, hides the chip */
|
|
4327
|
+
this.closed = false;
|
|
4306
4328
|
// --------------------------------------------------------------------------
|
|
4307
4329
|
//
|
|
4308
4330
|
// Private Methods
|
|
@@ -4311,6 +4333,7 @@ const Chip = class extends HTMLElement$1 {
|
|
|
4311
4333
|
this.closeClickHandler = (event) => {
|
|
4312
4334
|
event.preventDefault();
|
|
4313
4335
|
this.calciteChipDismiss.emit(this.el);
|
|
4336
|
+
this.closed = true;
|
|
4314
4337
|
};
|
|
4315
4338
|
this.guid = guid();
|
|
4316
4339
|
}
|
|
@@ -6578,7 +6601,7 @@ const decimalPlaces = (value) => {
|
|
|
6578
6601
|
(match[2] ? +match[2] : 0));
|
|
6579
6602
|
};
|
|
6580
6603
|
|
|
6581
|
-
const colorPickerCss = "@-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:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}: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([scale=s]) .container{width:160px}:host([scale=s]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(20px, 1fr))}:host([scale=s]) .channels{-ms-flex-direction:column;flex-direction:column}:host([scale=s]) .channel{width:100%;margin-bottom:4px}:host([scale=s]) .channel:last-child{margin-bottom:0}:host([scale=m]) .container{width:272px}:host([scale=l]) .header{padding-bottom:0px}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{width:464px}:host([scale=l]) .color-field-and-slider{margin-bottom:-20px}:host([scale=l]) .section{padding:0 16px 16px}:host([scale=l]) .section:first-of-type{padding-top:16px}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(28px, 1fr));grid-gap:12px;padding-top:16px}:host([scale=l]) .control-section{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:baseline;align-items:baseline}:host([scale=l]) .control-section>:nth-child(2){-webkit-margin-start:12px;margin-inline-start:12px}:host([scale=l]) .color-hex-options{display:-ms-flexbox;display:flex;-ms-flex-negative:1;flex-shrink:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around;min-height:98px;width:160px}:host([scale=l]) .color-mode-container{-ms-flex-negative:3;flex-shrink:3}:host([appearance=minimal]) .container{border:none}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.color-field-and-slider-wrap{position:relative}.scope{pointer-events:none;position:absolute;font-size:var(--calcite-font-size--1);outline-color:transparent;outline-offset:14px}.scope:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:16px}.color-field-and-slider{margin-bottom:-16px}.color-field-and-slider--interactive{cursor:pointer}.control-section{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.section{padding:0 12px 12px}.section:first-of-type{padding-top:12px}.color-hex-options,.section--split{-ms-flex-positive:1;flex-grow:1}.header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding-bottom:0.25rem;color:var(--calcite-ui-text-1)}.header--hex,.color-mode-container{padding-top:12px}.channels{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.channel{width:31%}.saved-colors{padding-top:12px;display:grid;grid-template-columns:repeat(auto-fill, minmax(24px, 1fr));grid-gap:8px;width:100%}.saved-colors-buttons{display:-ms-flexbox;display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{-webkit-transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}";
|
|
6604
|
+
const colorPickerCss = "@-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:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}: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([scale=s]) .container{width:160px}:host([scale=s]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(20px, 1fr))}:host([scale=s]) .channels{-ms-flex-direction:column;flex-direction:column}:host([scale=s]) .channel{width:100%;margin-bottom:4px}:host([scale=s]) .channel:last-child{margin-bottom:0}:host([scale=m]) .container{width:272px}:host([scale=l]) .header{padding-bottom:0px}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{width:464px}:host([scale=l]) .color-field-and-slider{margin-bottom:-20px}:host([scale=l]) .section{padding:0 16px 16px}:host([scale=l]) .section:first-of-type{padding-top:16px}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(28px, 1fr));grid-gap:12px;padding-top:16px}:host([scale=l]) .control-section{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:baseline;align-items:baseline}:host([scale=l]) .control-section>:nth-child(2){-webkit-margin-start:12px;margin-inline-start:12px}:host([scale=l]) .color-hex-options{display:-ms-flexbox;display:flex;-ms-flex-negative:1;flex-shrink:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around;min-height:98px;width:160px}:host([scale=l]) .color-mode-container{-ms-flex-negative:3;flex-shrink:3}:host([appearance=minimal]) .container{border:none}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.color-field-and-slider-wrap{position:relative}.scope{pointer-events:none;position:absolute;font-size:var(--calcite-font-size--1);outline-color:transparent;outline-offset:14px}.scope:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:16px}.color-field-and-slider{margin-bottom:-16px;-ms-touch-action:none;touch-action:none}.color-field-and-slider--interactive{cursor:pointer}.control-section{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.section{padding:0 12px 12px}.section:first-of-type{padding-top:12px}.color-hex-options,.section--split{-ms-flex-positive:1;flex-grow:1}.header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding-bottom:0.25rem;color:var(--calcite-ui-text-1)}.header--hex,.color-mode-container{padding-top:12px}.channels{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.channel{width:31%}.saved-colors{padding-top:12px;display:grid;grid-template-columns:repeat(auto-fill, minmax(24px, 1fr));grid-gap:8px;width:100%}.saved-colors-buttons{display:-ms-flexbox;display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{-webkit-transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}";
|
|
6582
6605
|
|
|
6583
6606
|
const throttleFor60FpsInMs = 16;
|
|
6584
6607
|
const defaultValue = normalizeHex(DEFAULT_COLOR$1.hex());
|
|
@@ -6860,7 +6883,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6860
6883
|
this.handleSavedColorSelect(event);
|
|
6861
6884
|
}
|
|
6862
6885
|
};
|
|
6863
|
-
this.
|
|
6886
|
+
this.handleColorFieldAndSliderPointerLeave = () => {
|
|
6864
6887
|
this.colorFieldAndSliderInteractive = false;
|
|
6865
6888
|
this.colorFieldAndSliderHovered = false;
|
|
6866
6889
|
if (this.sliderThumbState !== "drag" && this.hueThumbState !== "drag") {
|
|
@@ -6869,27 +6892,28 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6869
6892
|
this.drawColorFieldAndSlider();
|
|
6870
6893
|
}
|
|
6871
6894
|
};
|
|
6872
|
-
this.
|
|
6895
|
+
this.handleColorFieldAndSliderPointerDown = (event) => {
|
|
6896
|
+
var _a, _b;
|
|
6873
6897
|
const { offsetX, offsetY } = event;
|
|
6874
6898
|
const region = this.getCanvasRegion(offsetY);
|
|
6875
6899
|
if (region === "color-field") {
|
|
6876
6900
|
this.hueThumbState = "drag";
|
|
6877
6901
|
this.captureColorFieldColor(offsetX, offsetY);
|
|
6878
|
-
this.colorFieldScopeNode.focus();
|
|
6902
|
+
(_a = this.colorFieldScopeNode) === null || _a === void 0 ? void 0 : _a.focus();
|
|
6879
6903
|
}
|
|
6880
6904
|
else if (region === "slider") {
|
|
6881
6905
|
this.sliderThumbState = "drag";
|
|
6882
6906
|
this.captureHueSliderColor(offsetX);
|
|
6883
|
-
this.hueScopeNode.focus();
|
|
6907
|
+
(_b = this.hueScopeNode) === null || _b === void 0 ? void 0 : _b.focus();
|
|
6884
6908
|
}
|
|
6885
6909
|
// prevent text selection outside of color field & slider area
|
|
6886
6910
|
event.preventDefault();
|
|
6887
|
-
document.addEventListener("
|
|
6888
|
-
document.addEventListener("
|
|
6911
|
+
document.addEventListener("pointermove", this.globalPointerMoveHandler);
|
|
6912
|
+
document.addEventListener("pointerup", this.globalPointerUpHandler, { once: true });
|
|
6889
6913
|
this.activeColorFieldAndSliderRect =
|
|
6890
6914
|
this.fieldAndSliderRenderingContext.canvas.getBoundingClientRect();
|
|
6891
6915
|
};
|
|
6892
|
-
this.
|
|
6916
|
+
this.globalPointerUpHandler = () => {
|
|
6893
6917
|
const previouslyDragging = this.sliderThumbState === "drag" || this.hueThumbState === "drag";
|
|
6894
6918
|
this.hueThumbState = "idle";
|
|
6895
6919
|
this.sliderThumbState = "idle";
|
|
@@ -6899,7 +6923,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6899
6923
|
this.calciteColorPickerChange.emit();
|
|
6900
6924
|
}
|
|
6901
6925
|
};
|
|
6902
|
-
this.
|
|
6926
|
+
this.globalPointerMoveHandler = (event) => {
|
|
6903
6927
|
const { el, dimensions } = this;
|
|
6904
6928
|
const sliderThumbDragging = this.sliderThumbState === "drag";
|
|
6905
6929
|
const hueThumbDragging = this.hueThumbState === "drag";
|
|
@@ -6926,7 +6950,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6926
6950
|
samplingX = 0;
|
|
6927
6951
|
}
|
|
6928
6952
|
else {
|
|
6929
|
-
samplingX = colorFieldWidth;
|
|
6953
|
+
samplingX = colorFieldWidth - 1;
|
|
6930
6954
|
}
|
|
6931
6955
|
if (clientY < colorFieldAndSliderRect.y + colorFieldHeight + hueSliderHeight &&
|
|
6932
6956
|
clientY > colorFieldAndSliderRect.y) {
|
|
@@ -6946,7 +6970,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
6946
6970
|
this.captureHueSliderColor(samplingX);
|
|
6947
6971
|
}
|
|
6948
6972
|
};
|
|
6949
|
-
this.
|
|
6973
|
+
this.handleColorFieldAndSliderPointerEnterOrMove = ({ offsetX, offsetY }) => {
|
|
6950
6974
|
const { dimensions: { colorField, slider, thumb } } = this;
|
|
6951
6975
|
this.colorFieldAndSliderInteractive = offsetY <= colorField.height + slider.height;
|
|
6952
6976
|
this.colorFieldAndSliderHovered = true;
|
|
@@ -7021,7 +7045,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7021
7045
|
/* the channel container is ltr, so we apply the host's direction */
|
|
7022
7046
|
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
7023
7047
|
};
|
|
7024
|
-
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, onKeyDown: this.handleKeyDown, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
7048
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (h("calcite-input", { class: CSS$G.channel, "data-channel-index": index, dir: direction, label: ariaLabel, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
7025
7049
|
this.deleteColor = () => {
|
|
7026
7050
|
const colorToDelete = this.color.hex();
|
|
7027
7051
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -7063,13 +7087,7 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7063
7087
|
};
|
|
7064
7088
|
this.initColorFieldAndSlider = (canvas) => {
|
|
7065
7089
|
this.fieldAndSliderRenderingContext = canvas.getContext("2d");
|
|
7066
|
-
this.
|
|
7067
|
-
width: this.dimensions.colorField.width,
|
|
7068
|
-
height: this.dimensions.colorField.height +
|
|
7069
|
-
this.dimensions.slider.height +
|
|
7070
|
-
this.getSliderCapSpacing() * 2
|
|
7071
|
-
});
|
|
7072
|
-
this.drawColorFieldAndSlider();
|
|
7090
|
+
this.updateCanvasSize(canvas);
|
|
7073
7091
|
};
|
|
7074
7092
|
}
|
|
7075
7093
|
handleColorChange(color, oldColor) {
|
|
@@ -7082,7 +7100,9 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7082
7100
|
this.internalColorSet(this.color, false, "internal");
|
|
7083
7101
|
}
|
|
7084
7102
|
handleScaleChange(scale = "m") {
|
|
7103
|
+
var _a;
|
|
7085
7104
|
this.updateDimensions(scale);
|
|
7105
|
+
this.updateCanvasSize((_a = this.fieldAndSliderRenderingContext) === null || _a === void 0 ? void 0 : _a.canvas);
|
|
7086
7106
|
}
|
|
7087
7107
|
handleValueChange(value, oldValue) {
|
|
7088
7108
|
const { allowEmpty, format } = this;
|
|
@@ -7179,8 +7199,8 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7179
7199
|
}
|
|
7180
7200
|
}
|
|
7181
7201
|
disconnectedCallback() {
|
|
7182
|
-
document.removeEventListener("
|
|
7183
|
-
document.removeEventListener("
|
|
7202
|
+
document.removeEventListener("pointermove", this.globalPointerMoveHandler);
|
|
7203
|
+
document.removeEventListener("pointerup", this.globalPointerUpHandler);
|
|
7184
7204
|
}
|
|
7185
7205
|
componentDidRender() {
|
|
7186
7206
|
updateHostInteraction(this);
|
|
@@ -7202,13 +7222,13 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7202
7222
|
return (h("div", { class: CSS$G.container }, h("div", { class: CSS$G.colorFieldAndSliderWrap }, h("canvas", { class: {
|
|
7203
7223
|
[CSS$G.colorFieldAndSlider]: true,
|
|
7204
7224
|
[CSS$G.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
7205
|
-
},
|
|
7225
|
+
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$G.scope]: true, [CSS$G.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), h("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR$1.round().hue(), class: { [CSS$G.scope]: true, [CSS$G.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, ref: this.storeHueScope, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (h("div", { class: {
|
|
7206
7226
|
[CSS$G.controlSection]: true,
|
|
7207
7227
|
[CSS$G.section]: true
|
|
7208
7228
|
} }, hideHex ? null : (h("div", { class: CSS$G.hexOptions }, h("span", { class: {
|
|
7209
7229
|
[CSS$G.header]: true,
|
|
7210
7230
|
[CSS$G.headerHex]: true
|
|
7211
|
-
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$G.control, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (h("calcite-tabs", { class: {
|
|
7231
|
+
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$G.control, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (h("calcite-tabs", { class: {
|
|
7212
7232
|
[CSS$G.colorModeContainer]: true,
|
|
7213
7233
|
[CSS$G.splitSection]: true
|
|
7214
7234
|
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$G.savedColorsSection]: true, [CSS$G.section]: true } }, h("div", { class: CSS$G.header }, h("label", null, intlSaved), h("div", { class: CSS$G.savedColorsButtons }, h("calcite-button", { appearance: "transparent", class: CSS$G.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), h("calcite-button", { appearance: "transparent", class: CSS$G.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (h("div", { class: CSS$G.savedColors }, [
|
|
@@ -7307,6 +7327,18 @@ const ColorPicker = class extends HTMLElement$1 {
|
|
|
7307
7327
|
const context = canvas.getContext("2d");
|
|
7308
7328
|
context.scale(devicePixelRatio, devicePixelRatio);
|
|
7309
7329
|
}
|
|
7330
|
+
updateCanvasSize(canvas) {
|
|
7331
|
+
if (!canvas) {
|
|
7332
|
+
return;
|
|
7333
|
+
}
|
|
7334
|
+
this.setCanvasContextSize(canvas, {
|
|
7335
|
+
width: this.dimensions.colorField.width,
|
|
7336
|
+
height: this.dimensions.colorField.height +
|
|
7337
|
+
this.dimensions.slider.height +
|
|
7338
|
+
this.getSliderCapSpacing() * 2
|
|
7339
|
+
});
|
|
7340
|
+
this.drawColorFieldAndSlider();
|
|
7341
|
+
}
|
|
7310
7342
|
containsPoint(testPointX, testPointY, boundsX, boundsY, boundsRadius) {
|
|
7311
7343
|
return (Math.pow(testPointX - boundsX, 2) + Math.pow(testPointY - boundsY, 2) <=
|
|
7312
7344
|
Math.pow(boundsRadius, 2));
|
|
@@ -7526,7 +7558,7 @@ const ColorPickerHexInput = class extends HTMLElement$1 {
|
|
|
7526
7558
|
render() {
|
|
7527
7559
|
const { intlHex, value } = this;
|
|
7528
7560
|
const hexInputValue = this.formatForInternalInput(value);
|
|
7529
|
-
return (h("div", { class: CSS$F.container }, h("calcite-input", { class: CSS$F.input, label: intlHex, maxLength: 6, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7561
|
+
return (h("div", { class: CSS$F.container }, h("calcite-input", { class: CSS$F.input, label: intlHex, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7530
7562
|
}
|
|
7531
7563
|
//--------------------------------------------------------------------------
|
|
7532
7564
|
//
|
|
@@ -7649,8 +7681,8 @@ const filter = (data, value) => {
|
|
|
7649
7681
|
The data argument should be an array of objects`);
|
|
7650
7682
|
}
|
|
7651
7683
|
const find = (input, RE) => {
|
|
7652
|
-
var _a;
|
|
7653
|
-
if ((_a = input) === null || _a === void 0 ? void 0 : _a.constant) {
|
|
7684
|
+
var _a, _b;
|
|
7685
|
+
if (((_a = input) === null || _a === void 0 ? void 0 : _a.constant) || ((_b = input) === null || _b === void 0 ? void 0 : _b.filterDisabled)) {
|
|
7654
7686
|
return true;
|
|
7655
7687
|
}
|
|
7656
7688
|
let found = false;
|
|
@@ -9584,15 +9616,23 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9584
9616
|
this.calciteComboboxChange = createEvent(this, "calciteComboboxChange", 7);
|
|
9585
9617
|
this.calciteComboboxFilterChange = createEvent(this, "calciteComboboxFilterChange", 7);
|
|
9586
9618
|
this.calciteComboboxChipDismiss = createEvent(this, "calciteComboboxChipDismiss", 7);
|
|
9587
|
-
this.
|
|
9619
|
+
this.calciteComboboxBeforeClose = createEvent(this, "calciteComboboxBeforeClose", 7);
|
|
9588
9620
|
this.calciteComboboxClose = createEvent(this, "calciteComboboxClose", 7);
|
|
9621
|
+
this.calciteComboboxBeforeOpen = createEvent(this, "calciteComboboxBeforeOpen", 7);
|
|
9622
|
+
this.calciteComboboxOpen = createEvent(this, "calciteComboboxOpen", 7);
|
|
9589
9623
|
//--------------------------------------------------------------------------
|
|
9590
9624
|
//
|
|
9591
9625
|
// Public Properties
|
|
9592
9626
|
//
|
|
9593
9627
|
//--------------------------------------------------------------------------
|
|
9594
|
-
/**
|
|
9628
|
+
/**
|
|
9629
|
+
* When true, opens the combobox
|
|
9630
|
+
*
|
|
9631
|
+
* @deprecated use open instead
|
|
9632
|
+
*/
|
|
9595
9633
|
this.active = false;
|
|
9634
|
+
/**When true, opens the combobox */
|
|
9635
|
+
this.open = false;
|
|
9596
9636
|
/** Disable combobox input */
|
|
9597
9637
|
this.disabled = false;
|
|
9598
9638
|
/** Specify the maximum number of combobox items (including nested children) to display before showing the scroller */
|
|
@@ -9666,8 +9706,9 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9666
9706
|
this.addCustomChip(this.text, true);
|
|
9667
9707
|
event.preventDefault();
|
|
9668
9708
|
}
|
|
9669
|
-
else if (this.active) {
|
|
9709
|
+
else if (this.open || this.active) {
|
|
9670
9710
|
this.active = false;
|
|
9711
|
+
this.open = false;
|
|
9671
9712
|
event.preventDefault();
|
|
9672
9713
|
}
|
|
9673
9714
|
break;
|
|
@@ -9684,9 +9725,10 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9684
9725
|
}
|
|
9685
9726
|
break;
|
|
9686
9727
|
case "ArrowDown":
|
|
9687
|
-
if (!this.active) {
|
|
9728
|
+
if (!(this.open || this.active)) {
|
|
9688
9729
|
event.preventDefault();
|
|
9689
9730
|
this.active = true;
|
|
9731
|
+
this.open = true;
|
|
9690
9732
|
}
|
|
9691
9733
|
this.shiftActiveItemIndex(1);
|
|
9692
9734
|
if (!this.comboboxInViewport()) {
|
|
@@ -9697,11 +9739,12 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9697
9739
|
if (!this.textInput.value) {
|
|
9698
9740
|
event.preventDefault();
|
|
9699
9741
|
this.active = true;
|
|
9742
|
+
this.open = true;
|
|
9700
9743
|
this.shiftActiveItemIndex(1);
|
|
9701
9744
|
}
|
|
9702
9745
|
break;
|
|
9703
9746
|
case "Home":
|
|
9704
|
-
if (this.active) {
|
|
9747
|
+
if (this.open || this.active) {
|
|
9705
9748
|
event.preventDefault();
|
|
9706
9749
|
}
|
|
9707
9750
|
this.updateActiveItemIndex(0);
|
|
@@ -9711,7 +9754,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9711
9754
|
}
|
|
9712
9755
|
break;
|
|
9713
9756
|
case "End":
|
|
9714
|
-
if (this.active) {
|
|
9757
|
+
if (this.open || this.active) {
|
|
9715
9758
|
event.preventDefault();
|
|
9716
9759
|
}
|
|
9717
9760
|
this.updateActiveItemIndex(this.visibleItems.length - 1);
|
|
@@ -9722,6 +9765,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9722
9765
|
break;
|
|
9723
9766
|
case "Escape":
|
|
9724
9767
|
this.active = false;
|
|
9768
|
+
this.open = false;
|
|
9725
9769
|
break;
|
|
9726
9770
|
case "Enter":
|
|
9727
9771
|
if (this.activeItemIndex > -1) {
|
|
@@ -9750,29 +9794,42 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9750
9794
|
};
|
|
9751
9795
|
this.toggleCloseEnd = () => {
|
|
9752
9796
|
this.active = false;
|
|
9797
|
+
this.open = false;
|
|
9753
9798
|
this.el.removeEventListener("calciteComboboxClose", this.toggleCloseEnd);
|
|
9754
9799
|
};
|
|
9755
9800
|
this.toggleOpenEnd = () => {
|
|
9756
9801
|
this.active = true;
|
|
9802
|
+
this.open = false;
|
|
9757
9803
|
this.el.removeEventListener("calciteComboboxOpen", this.toggleOpenEnd);
|
|
9758
9804
|
};
|
|
9759
9805
|
this.transitionEnd = (event) => {
|
|
9760
9806
|
if (event.propertyName === this.activeTransitionProp) {
|
|
9761
|
-
this.active ? this.
|
|
9807
|
+
this.open || this.active ? this.onOpen() : this.onClose();
|
|
9762
9808
|
}
|
|
9763
9809
|
};
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9810
|
+
/* *
|
|
9811
|
+
- `transitionrun` fires when the transition is created at the start of any delay and is not cancellable once started.
|
|
9812
|
+
- if there is no transition delay, both `transitionrun` and `transitionstart` are fired at the same time.
|
|
9813
|
+
*/
|
|
9814
|
+
this.transitionRunHandler = (event) => {
|
|
9815
|
+
if (event.propertyName === this.activeTransitionProp) {
|
|
9816
|
+
this.open || this.active ? this.onBeforeOpen() : this.onBeforeClose();
|
|
9817
|
+
}
|
|
9818
|
+
};
|
|
9819
|
+
this.setMaxScrollerHeight = async () => {
|
|
9820
|
+
const { active, listContainerEl, open } = this;
|
|
9821
|
+
const isOpen = !(active || open);
|
|
9822
|
+
if (!listContainerEl || isOpen) {
|
|
9767
9823
|
return;
|
|
9768
9824
|
}
|
|
9769
|
-
this.reposition();
|
|
9825
|
+
await this.reposition();
|
|
9770
9826
|
const maxScrollerHeight = this.getMaxScrollerHeight();
|
|
9771
9827
|
listContainerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
9772
|
-
this.reposition();
|
|
9828
|
+
await this.reposition();
|
|
9773
9829
|
};
|
|
9774
9830
|
this.calciteChipDismissHandler = (event, comboboxItem) => {
|
|
9775
9831
|
this.active = false;
|
|
9832
|
+
this.open = false;
|
|
9776
9833
|
const selection = this.items.find((item) => item === comboboxItem);
|
|
9777
9834
|
if (selection) {
|
|
9778
9835
|
this.toggleSelection(selection, false);
|
|
@@ -9784,12 +9841,14 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9784
9841
|
return;
|
|
9785
9842
|
}
|
|
9786
9843
|
this.active = !this.active;
|
|
9844
|
+
this.open = !this.open;
|
|
9787
9845
|
this.updateActiveItemIndex(0);
|
|
9788
9846
|
this.setFocus();
|
|
9789
9847
|
};
|
|
9790
9848
|
this.setInactiveIfNotContained = (event) => {
|
|
9791
9849
|
const composedPath = event.composedPath();
|
|
9792
|
-
|
|
9850
|
+
const isOpen = !(this.open || this.active);
|
|
9851
|
+
if (isOpen || composedPath.includes(this.el) || composedPath.includes(this.referenceEl)) {
|
|
9793
9852
|
return;
|
|
9794
9853
|
}
|
|
9795
9854
|
if (this.allowCustomValues && this.text.trim().length) {
|
|
@@ -9804,6 +9863,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9804
9863
|
this.updateActiveItemIndex(-1);
|
|
9805
9864
|
}
|
|
9806
9865
|
this.active = false;
|
|
9866
|
+
this.open = false;
|
|
9807
9867
|
};
|
|
9808
9868
|
this.setMenuEl = (el) => {
|
|
9809
9869
|
this.menuEl = el;
|
|
@@ -9811,6 +9871,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9811
9871
|
this.setListContainerEl = (el) => {
|
|
9812
9872
|
this.resizeObserver.observe(el);
|
|
9813
9873
|
this.listContainerEl = el;
|
|
9874
|
+
this.listContainerEl.addEventListener("transitionrun", this.transitionRunHandler);
|
|
9814
9875
|
};
|
|
9815
9876
|
this.setReferenceEl = (el) => {
|
|
9816
9877
|
this.referenceEl = el;
|
|
@@ -9894,13 +9955,15 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
9894
9955
|
activeHandler() {
|
|
9895
9956
|
if (this.disabled) {
|
|
9896
9957
|
this.active = false;
|
|
9958
|
+
this.open = false;
|
|
9897
9959
|
return;
|
|
9898
9960
|
}
|
|
9899
|
-
this.
|
|
9961
|
+
this.setMaxScrollerHeight();
|
|
9900
9962
|
}
|
|
9901
9963
|
handleDisabledChange(value) {
|
|
9902
9964
|
if (!value) {
|
|
9903
9965
|
this.active = false;
|
|
9966
|
+
this.open = false;
|
|
9904
9967
|
}
|
|
9905
9968
|
}
|
|
9906
9969
|
maxItemsHandler() {
|
|
@@ -10002,6 +10065,9 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10002
10065
|
this.destroyPopper();
|
|
10003
10066
|
disconnectLabel(this);
|
|
10004
10067
|
disconnectForm(this);
|
|
10068
|
+
if (this.listContainerEl) {
|
|
10069
|
+
this.listContainerEl.removeEventListener("transitionrun", this.transitionRunHandler);
|
|
10070
|
+
}
|
|
10005
10071
|
}
|
|
10006
10072
|
selectedItemsHandler() {
|
|
10007
10073
|
this.internalValueChangeFlag = true;
|
|
@@ -10019,6 +10085,18 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10019
10085
|
bounding.right <= (window.innerWidth || document.documentElement.clientWidth) &&
|
|
10020
10086
|
bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight));
|
|
10021
10087
|
}
|
|
10088
|
+
onBeforeOpen() {
|
|
10089
|
+
this.calciteComboboxBeforeOpen.emit();
|
|
10090
|
+
}
|
|
10091
|
+
onOpen() {
|
|
10092
|
+
this.calciteComboboxOpen.emit();
|
|
10093
|
+
}
|
|
10094
|
+
onBeforeClose() {
|
|
10095
|
+
this.calciteComboboxBeforeClose.emit();
|
|
10096
|
+
}
|
|
10097
|
+
onClose() {
|
|
10098
|
+
this.calciteComboboxClose.emit();
|
|
10099
|
+
}
|
|
10022
10100
|
getModifiers() {
|
|
10023
10101
|
const flipModifier = {
|
|
10024
10102
|
name: "flip",
|
|
@@ -10029,7 +10107,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10029
10107
|
};
|
|
10030
10108
|
const eventListenerModifier = {
|
|
10031
10109
|
name: "eventListeners",
|
|
10032
|
-
enabled: this.active
|
|
10110
|
+
enabled: this.open || this.active
|
|
10033
10111
|
};
|
|
10034
10112
|
return [flipModifier, eventListenerModifier];
|
|
10035
10113
|
}
|
|
@@ -10107,6 +10185,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10107
10185
|
this.textInput.value = item.textLabel;
|
|
10108
10186
|
}
|
|
10109
10187
|
this.active = false;
|
|
10188
|
+
this.open = false;
|
|
10110
10189
|
this.updateActiveItemIndex(-1);
|
|
10111
10190
|
this.resetText();
|
|
10112
10191
|
this.filterItems("");
|
|
@@ -10155,6 +10234,7 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10155
10234
|
getData() {
|
|
10156
10235
|
return this.items.map((item) => ({
|
|
10157
10236
|
constant: item.constant,
|
|
10237
|
+
filterDisabled: item.filterDisabled,
|
|
10158
10238
|
value: item.value,
|
|
10159
10239
|
label: item.textLabel
|
|
10160
10240
|
}));
|
|
@@ -10288,10 +10368,10 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10288
10368
|
});
|
|
10289
10369
|
}
|
|
10290
10370
|
renderInput() {
|
|
10291
|
-
const { guid, active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
10371
|
+
const { guid, active, disabled, placeholder, selectionMode, needsIcon, selectedItems, open } = this;
|
|
10292
10372
|
const single = selectionMode === "single";
|
|
10293
10373
|
const selectedItem = selectedItems[0];
|
|
10294
|
-
const showLabel = !active && single && !!selectedItem;
|
|
10374
|
+
const showLabel = !(open || active) && single && !!selectedItem;
|
|
10295
10375
|
return (h("span", { class: {
|
|
10296
10376
|
"input-wrap": true,
|
|
10297
10377
|
"input-wrap--single": single
|
|
@@ -10310,36 +10390,39 @@ const Combobox = class extends HTMLElement$1 {
|
|
|
10310
10390
|
return this.visibleItems.map((item) => (h("li", { "aria-selected": toAriaBoolean(item.selected), id: item.guid ? `${itemUidPrefix}${item.guid}` : null, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
10311
10391
|
}
|
|
10312
10392
|
renderPopperContainer() {
|
|
10313
|
-
const { active, setMenuEl, setListContainerEl } = this;
|
|
10393
|
+
const { active, setMenuEl, setListContainerEl, open } = this;
|
|
10314
10394
|
const classes = {
|
|
10315
10395
|
"list-container": true,
|
|
10316
10396
|
[CSS$D.animation]: true,
|
|
10317
|
-
[CSS$D.animationActive]: active
|
|
10397
|
+
[CSS$D.animationActive]: open || active
|
|
10318
10398
|
};
|
|
10319
|
-
return (h("div", { "aria-hidden": "true", class: { "popper-container": true, "popper-container--active": active }, ref: setMenuEl }, h("div", { class: classes, onTransitionEnd: this.transitionEnd, ref: setListContainerEl }, h("ul", { class: { list: true, "list--hide": !active } }, h("slot", null)))));
|
|
10399
|
+
return (h("div", { "aria-hidden": "true", class: { "popper-container": true, "popper-container--active": open || active }, ref: setMenuEl }, h("div", { class: classes, onTransitionEnd: this.transitionEnd, ref: setListContainerEl }, h("ul", { class: { list: true, "list--hide": !(open || active) } }, h("slot", null)))));
|
|
10320
10400
|
}
|
|
10321
10401
|
renderIconStart() {
|
|
10322
|
-
|
|
10402
|
+
var _a;
|
|
10403
|
+
const { selectionMode, needsIcon, selectedItems, placeholderIcon } = this;
|
|
10323
10404
|
const selectedItem = selectedItems[0];
|
|
10324
10405
|
return (selectionMode === "single" &&
|
|
10325
|
-
needsIcon &&
|
|
10406
|
+
needsIcon &&
|
|
10407
|
+
((selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon) || placeholderIcon) && (h("span", { class: "icon-start" }, h("calcite-icon", { class: "selected-icon", icon: (_a = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon) !== null && _a !== void 0 ? _a : placeholderIcon, scale: "s" }))));
|
|
10326
10408
|
}
|
|
10327
10409
|
renderIconEnd() {
|
|
10328
|
-
const { active } = this;
|
|
10329
|
-
return (h("span", { class: "icon-end" }, h("calcite-icon", { icon: active ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
10410
|
+
const { active, open } = this;
|
|
10411
|
+
return (h("span", { class: "icon-end" }, h("calcite-icon", { icon: active || open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
10330
10412
|
}
|
|
10331
10413
|
render() {
|
|
10332
|
-
const { active, guid, label } = this;
|
|
10414
|
+
const { active, guid, label, open } = this;
|
|
10333
10415
|
const single = this.selectionMode === "single";
|
|
10334
|
-
return (h(Host, { onKeyDown: this.keydownHandler }, h("div", { "aria-autocomplete": "list", "aria-expanded": toAriaBoolean(active), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
10416
|
+
return (h(Host, { onKeyDown: this.keydownHandler }, h("div", { "aria-autocomplete": "list", "aria-expanded": toAriaBoolean(open || active), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
10335
10417
|
wrapper: true,
|
|
10336
10418
|
"wrapper--single": single || !this.selectedItems.length,
|
|
10337
|
-
"wrapper--active": active
|
|
10419
|
+
"wrapper--active": open || active
|
|
10338
10420
|
}, 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 })));
|
|
10339
10421
|
}
|
|
10340
10422
|
get el() { return this; }
|
|
10341
10423
|
static get watchers() { return {
|
|
10342
10424
|
"active": ["activeHandler"],
|
|
10425
|
+
"open": ["activeHandler"],
|
|
10343
10426
|
"disabled": ["handleDisabledChange"],
|
|
10344
10427
|
"maxItems": ["maxItemsHandler"],
|
|
10345
10428
|
"value": ["valueHandler"],
|
|
@@ -10524,6 +10607,72 @@ function isActivationKey(key) {
|
|
|
10524
10607
|
}
|
|
10525
10608
|
const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
10526
10609
|
|
|
10610
|
+
// regex for number sanitization
|
|
10611
|
+
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
10612
|
+
const decimalOnlyAtEndOfString = /(?!^\.)\.$/;
|
|
10613
|
+
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
10614
|
+
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
10615
|
+
// adopted from https://stackoverflow.com/a/66939244
|
|
10616
|
+
class BigDecimal {
|
|
10617
|
+
constructor(input) {
|
|
10618
|
+
if (input instanceof BigDecimal) {
|
|
10619
|
+
return input;
|
|
10620
|
+
}
|
|
10621
|
+
const [integers, decimals] = String(input).split(".").concat("");
|
|
10622
|
+
this.value =
|
|
10623
|
+
BigInt(integers + decimals.padEnd(BigDecimal.DECIMALS, "0").slice(0, BigDecimal.DECIMALS)) +
|
|
10624
|
+
BigInt(BigDecimal.ROUNDED && decimals[BigDecimal.DECIMALS] >= "5");
|
|
10625
|
+
this.isNegative = input.charAt(0) === "-";
|
|
10626
|
+
}
|
|
10627
|
+
static _divRound(dividend, divisor) {
|
|
10628
|
+
return BigDecimal.fromBigInt(dividend / divisor + (BigDecimal.ROUNDED ? ((dividend * BigInt(2)) / divisor) % BigInt(2) : BigInt(0)));
|
|
10629
|
+
}
|
|
10630
|
+
static fromBigInt(bigint) {
|
|
10631
|
+
return Object.assign(Object.create(BigDecimal.prototype), { value: bigint });
|
|
10632
|
+
}
|
|
10633
|
+
toString() {
|
|
10634
|
+
const s = this.value
|
|
10635
|
+
.toString()
|
|
10636
|
+
.replace(new RegExp("-", "g"), "")
|
|
10637
|
+
.padStart(BigDecimal.DECIMALS + 1, "0");
|
|
10638
|
+
const i = s.slice(0, -BigDecimal.DECIMALS);
|
|
10639
|
+
const d = s.slice(-BigDecimal.DECIMALS).replace(/\.?0+$/, "");
|
|
10640
|
+
const value = i.concat(d.length ? "." + d : "");
|
|
10641
|
+
return (this.isNegative ? "-" : "").concat(value);
|
|
10642
|
+
}
|
|
10643
|
+
formatToParts(locale, numberingSystem) {
|
|
10644
|
+
const formatter = createLocaleNumberFormatter(locale, numberingSystem);
|
|
10645
|
+
const s = this.value
|
|
10646
|
+
.toString()
|
|
10647
|
+
.replace(new RegExp("-", "g"), "")
|
|
10648
|
+
.padStart(BigDecimal.DECIMALS + 1, "0");
|
|
10649
|
+
const i = s.slice(0, -BigDecimal.DECIMALS);
|
|
10650
|
+
const d = s.slice(-BigDecimal.DECIMALS).replace(/\.?0+$/, "");
|
|
10651
|
+
const parts = formatter.formatToParts(BigInt(i));
|
|
10652
|
+
this.isNegative && parts.unshift({ type: "minusSign", value: getMinusSign(locale) });
|
|
10653
|
+
if (d.length) {
|
|
10654
|
+
parts.push({ type: "decimal", value: getDecimalSeparator(locale) });
|
|
10655
|
+
d.split("").forEach((char) => parts.push({ type: "fraction", value: char }));
|
|
10656
|
+
}
|
|
10657
|
+
return parts;
|
|
10658
|
+
}
|
|
10659
|
+
add(num) {
|
|
10660
|
+
return BigDecimal.fromBigInt(this.value + new BigDecimal(num).value);
|
|
10661
|
+
}
|
|
10662
|
+
subtract(num) {
|
|
10663
|
+
return BigDecimal.fromBigInt(this.value - new BigDecimal(num).value);
|
|
10664
|
+
}
|
|
10665
|
+
multiply(num) {
|
|
10666
|
+
return BigDecimal._divRound(this.value * new BigDecimal(num).value, BigDecimal.SHIFT);
|
|
10667
|
+
}
|
|
10668
|
+
divide(num) {
|
|
10669
|
+
return BigDecimal._divRound(this.value * BigDecimal.SHIFT, new BigDecimal(num).value);
|
|
10670
|
+
}
|
|
10671
|
+
}
|
|
10672
|
+
// Configuration: constants
|
|
10673
|
+
BigDecimal.DECIMALS = 100; // number of decimals on all instances
|
|
10674
|
+
BigDecimal.ROUNDED = true; // numbers are truncated (false) or rounded (true)
|
|
10675
|
+
BigDecimal.SHIFT = BigInt("1" + "0".repeat(BigDecimal.DECIMALS)); // derived constant
|
|
10527
10676
|
function isValidNumber(numberString) {
|
|
10528
10677
|
return !(!numberString || isNaN(Number(numberString)));
|
|
10529
10678
|
}
|
|
@@ -10546,29 +10695,25 @@ function parseNumberString(numberString) {
|
|
|
10546
10695
|
return numberKeys.includes(value);
|
|
10547
10696
|
})
|
|
10548
10697
|
.reduce((string, part) => string + part);
|
|
10549
|
-
return isValidNumber(result) ?
|
|
10698
|
+
return isValidNumber(result) ? new BigDecimal(result).toString() : "";
|
|
10550
10699
|
});
|
|
10551
10700
|
}
|
|
10552
10701
|
function sanitizeDecimalString(decimalString) {
|
|
10553
|
-
|
|
10554
|
-
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
10702
|
+
return decimalString.replace(decimalOnlyAtEndOfString, "");
|
|
10555
10703
|
}
|
|
10556
10704
|
function sanitizeNegativeString(negativeString) {
|
|
10557
|
-
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
10558
10705
|
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
10559
10706
|
}
|
|
10560
10707
|
function sanitizeLeadingZeroString(zeroString) {
|
|
10561
|
-
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
10562
10708
|
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
10563
10709
|
}
|
|
10564
10710
|
function sanitizeNumberString(numberString) {
|
|
10565
10711
|
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
10566
10712
|
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(nonExpoNumString)));
|
|
10567
|
-
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
10568
10713
|
return isValidNumber(sanitizedValue)
|
|
10569
10714
|
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
10570
10715
|
? sanitizedValue
|
|
10571
|
-
:
|
|
10716
|
+
: new BigDecimal(sanitizedValue).toString()
|
|
10572
10717
|
: nonExpoNumString;
|
|
10573
10718
|
});
|
|
10574
10719
|
}
|
|
@@ -10644,7 +10789,8 @@ const locales = [
|
|
|
10644
10789
|
const allDecimalsExceptLast = new RegExp(`[.](?=.*[.])`, "g");
|
|
10645
10790
|
const everythingExceptNumbersDecimalsAndMinusSigns = new RegExp("[^0-9-.]", "g");
|
|
10646
10791
|
const defaultGroupSeparator = new RegExp(",", "g");
|
|
10647
|
-
const
|
|
10792
|
+
const browserNumberingSystem = new Intl.NumberFormat().resolvedOptions().numberingSystem;
|
|
10793
|
+
const defaultNumberingSystem = browserNumberingSystem === "arab" ? "latn" : browserNumberingSystem;
|
|
10648
10794
|
function createLocaleNumberFormatter(locale, numberingSystem = defaultNumberingSystem) {
|
|
10649
10795
|
return new Intl.NumberFormat(locale, {
|
|
10650
10796
|
minimumFractionDigits: 0,
|
|
@@ -10683,10 +10829,9 @@ function getMinusSign(locale) {
|
|
|
10683
10829
|
function localizeNumberString(numberString, locale, displayGroupSeparator = false, numberingSystem) {
|
|
10684
10830
|
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
10685
10831
|
if (nonExpoNumString) {
|
|
10686
|
-
const
|
|
10687
|
-
if (
|
|
10688
|
-
const
|
|
10689
|
-
const parts = formatter.formatToParts(number);
|
|
10832
|
+
const sanitizedNumberString = sanitizeDecimalString(nonExpoNumString.replace(defaultGroupSeparator, ""));
|
|
10833
|
+
if (isValidNumber(sanitizedNumberString)) {
|
|
10834
|
+
const parts = new BigDecimal(sanitizedNumberString).formatToParts(locale, numberingSystem);
|
|
10690
10835
|
const localizedNumberString = parts
|
|
10691
10836
|
.map(({ type, value }) => {
|
|
10692
10837
|
switch (type) {
|
|
@@ -11757,6 +11902,8 @@ const DatePickerMonth = class extends HTMLElement$1 {
|
|
|
11757
11902
|
static get style() { return datePickerMonthCss; }
|
|
11758
11903
|
};
|
|
11759
11904
|
|
|
11905
|
+
const BUDDHIST_CALENDAR_YEAR_OFFSET = 543;
|
|
11906
|
+
|
|
11760
11907
|
const datePickerMonthHeaderCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}:host([scale=s]) .text{margin-top:0.5rem;margin-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{height:2.25rem}:host([scale=m]) .text{margin-top:0.75rem;margin-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{height:3rem}:host([scale=l]) .text{margin-top:1rem;margin-bottom:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{height:3.5rem}.chevron{margin-left:-0.25rem;margin-right:-0.25rem;-webkit-box-sizing:content-box;box-sizing:content-box;display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-left:0.25rem;padding-right:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;width:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.chevron:hover,.chevron:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{margin-top:auto;margin-bottom:auto;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-align:center;line-height:1}.text-nreverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.month,.year,.suffix{margin-left:0.25rem;margin-right:0.25rem;margin-top:auto;margin-bottom:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}.year{position:relative;width:3rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent;z-index:2}.year:hover{-webkit-transition-duration:100ms;transition-duration:100ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:outline-color;transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.year--suffix{width:4rem;text-align:left}.year-wrap{position:relative}.suffix{position:absolute;top:0px;left:0px;width:4rem;white-space:nowrap;text-align:left}.suffix__invisible{visibility:hidden}";
|
|
11761
11908
|
|
|
11762
11909
|
const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
@@ -11776,7 +11923,7 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
11776
11923
|
* @param e
|
|
11777
11924
|
*/
|
|
11778
11925
|
this.onYearKey = (e) => {
|
|
11779
|
-
const localizedYear = e.target.value;
|
|
11926
|
+
const localizedYear = this.parseCalendarYear(e.target.value);
|
|
11780
11927
|
switch (e.key) {
|
|
11781
11928
|
case "ArrowDown":
|
|
11782
11929
|
e.preventDefault();
|
|
@@ -11789,10 +11936,15 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
11789
11936
|
}
|
|
11790
11937
|
};
|
|
11791
11938
|
this.onYearChange = (event) => {
|
|
11792
|
-
this.setYear({
|
|
11939
|
+
this.setYear({
|
|
11940
|
+
localizedYear: this.parseCalendarYear(event.target.value)
|
|
11941
|
+
});
|
|
11793
11942
|
};
|
|
11794
11943
|
this.onYearInput = (event) => {
|
|
11795
|
-
this.setYear({
|
|
11944
|
+
this.setYear({
|
|
11945
|
+
localizedYear: this.parseCalendarYear(event.target.value),
|
|
11946
|
+
commit: false
|
|
11947
|
+
});
|
|
11796
11948
|
};
|
|
11797
11949
|
this.prevMonthClick = (e) => {
|
|
11798
11950
|
this.handleArrowClick(e, this.prevMonthDate);
|
|
@@ -11840,7 +11992,7 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
11840
11992
|
const activeMonth = this.activeDate.getMonth();
|
|
11841
11993
|
const { months, unitOrder } = this.localeData;
|
|
11842
11994
|
const localizedMonth = (months.wide || months.narrow || months.abbreviated)[activeMonth];
|
|
11843
|
-
const localizedYear =
|
|
11995
|
+
const localizedYear = this.formatCalendarYear(this.activeDate.getFullYear().toString());
|
|
11844
11996
|
const iconScale = this.scale === "l" ? "m" : "s";
|
|
11845
11997
|
const order = getOrder(unitOrder);
|
|
11846
11998
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
@@ -11857,6 +12009,18 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
11857
12009
|
this.nextMonthDate = dateFromRange(nextMonth(this.activeDate), this.min, this.max);
|
|
11858
12010
|
this.prevMonthDate = dateFromRange(prevMonth(this.activeDate), this.min, this.max);
|
|
11859
12011
|
}
|
|
12012
|
+
formatCalendarYear(year) {
|
|
12013
|
+
const { localeData } = this;
|
|
12014
|
+
const buddhistCalendar = localeData["default-calendar"] === "buddhist";
|
|
12015
|
+
const yearOffset = buddhistCalendar ? BUDDHIST_CALENDAR_YEAR_OFFSET : 0;
|
|
12016
|
+
return localizeNumber(parseNumber(year, localeData) + yearOffset, localeData);
|
|
12017
|
+
}
|
|
12018
|
+
parseCalendarYear(year) {
|
|
12019
|
+
const { localeData } = this;
|
|
12020
|
+
const buddhistCalendar = localeData["default-calendar"] === "buddhist";
|
|
12021
|
+
const yearOffset = buddhistCalendar ? BUDDHIST_CALENDAR_YEAR_OFFSET : 0;
|
|
12022
|
+
return localizeNumber(parseNumber(year, localeData) - yearOffset, localeData);
|
|
12023
|
+
}
|
|
11860
12024
|
getInRangeDate({ localizedYear, offset = 0 }) {
|
|
11861
12025
|
const { min, max, activeDate, localeData } = this;
|
|
11862
12026
|
const parsedYear = parseNumber(localizedYear, localeData);
|
|
@@ -11880,14 +12044,14 @@ const DatePickerMonthHeader = class extends HTMLElement$1 {
|
|
|
11880
12044
|
* @param root0.offset
|
|
11881
12045
|
*/
|
|
11882
12046
|
setYear({ localizedYear, commit = true, offset = 0 }) {
|
|
11883
|
-
const { yearInput, activeDate
|
|
12047
|
+
const { yearInput, activeDate } = this;
|
|
11884
12048
|
const inRangeDate = this.getInRangeDate({ localizedYear, offset });
|
|
11885
12049
|
// if you've supplied a year and it's in range, update active date
|
|
11886
12050
|
if (inRangeDate) {
|
|
11887
12051
|
this.calciteDatePickerSelect.emit(inRangeDate);
|
|
11888
12052
|
}
|
|
11889
12053
|
if (commit) {
|
|
11890
|
-
yearInput.value =
|
|
12054
|
+
yearInput.value = this.formatCalendarYear((inRangeDate || activeDate).getFullYear().toString());
|
|
11891
12055
|
}
|
|
11892
12056
|
}
|
|
11893
12057
|
get el() { return this; }
|
|
@@ -11903,7 +12067,7 @@ const SLOTS$h = {
|
|
|
11903
12067
|
dropdownTrigger: "dropdown-trigger"
|
|
11904
12068
|
};
|
|
11905
12069
|
|
|
11906
|
-
const dropdownCss = "@-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-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}: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 .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{width:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);max-height:90vh;width:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:-ms-flexbox;display:flex}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";
|
|
12070
|
+
const dropdownCss = "@-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-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}: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 .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper,:host([open]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{width:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);max-height:90vh;width:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";
|
|
11907
12071
|
|
|
11908
12072
|
const Dropdown = class extends HTMLElement$1 {
|
|
11909
12073
|
constructor() {
|
|
@@ -11911,15 +12075,23 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11911
12075
|
this.__registerHost();
|
|
11912
12076
|
this.__attachShadow();
|
|
11913
12077
|
this.calciteDropdownSelect = createEvent(this, "calciteDropdownSelect", 7);
|
|
12078
|
+
this.calciteDropdownBeforeOpen = createEvent(this, "calciteDropdownBeforeOpen", 7);
|
|
11914
12079
|
this.calciteDropdownOpen = createEvent(this, "calciteDropdownOpen", 7);
|
|
12080
|
+
this.calciteDropdownBeforeClose = createEvent(this, "calciteDropdownBeforeClose", 7);
|
|
11915
12081
|
this.calciteDropdownClose = createEvent(this, "calciteDropdownClose", 7);
|
|
11916
12082
|
//--------------------------------------------------------------------------
|
|
11917
12083
|
//
|
|
11918
12084
|
// Public Properties
|
|
11919
12085
|
//
|
|
11920
12086
|
//--------------------------------------------------------------------------
|
|
11921
|
-
/**
|
|
12087
|
+
/**
|
|
12088
|
+
* Opens or closes the dropdown
|
|
12089
|
+
*
|
|
12090
|
+
* @deprecated use open instead.
|
|
12091
|
+
*/
|
|
11922
12092
|
this.active = false;
|
|
12093
|
+
/** When true, opens the dropdown */
|
|
12094
|
+
this.open = false;
|
|
11923
12095
|
/**
|
|
11924
12096
|
allow the dropdown to remain open after a selection is made
|
|
11925
12097
|
if the selection-mode of the selected item's containing group is "none", the dropdown will always close
|
|
@@ -12006,8 +12178,9 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12006
12178
|
scrollerEl.style.minWidth = `${referenceElWidth}px`;
|
|
12007
12179
|
};
|
|
12008
12180
|
this.setMaxScrollerHeight = () => {
|
|
12009
|
-
const { active, scrollerEl } = this;
|
|
12010
|
-
|
|
12181
|
+
const { active, scrollerEl, open } = this;
|
|
12182
|
+
const isOpen = !(active || open);
|
|
12183
|
+
if (!scrollerEl || isOpen) {
|
|
12011
12184
|
return;
|
|
12012
12185
|
}
|
|
12013
12186
|
this.reposition();
|
|
@@ -12018,10 +12191,18 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12018
12191
|
this.setScrollerEl = (scrollerEl) => {
|
|
12019
12192
|
this.resizeObserver.observe(scrollerEl);
|
|
12020
12193
|
this.scrollerEl = scrollerEl;
|
|
12194
|
+
this.scrollerEl.addEventListener("transitionrun", this.transitionRunHandler);
|
|
12021
12195
|
};
|
|
12022
12196
|
this.transitionEnd = (event) => {
|
|
12023
12197
|
if (event.propertyName === this.activeTransitionProp) {
|
|
12024
|
-
this.active ? this.
|
|
12198
|
+
this.open || this.active ? this.emitOpenCloseEvent("open") : this.emitOpenCloseEvent("close");
|
|
12199
|
+
}
|
|
12200
|
+
};
|
|
12201
|
+
this.transitionRunHandler = (event) => {
|
|
12202
|
+
if (event.propertyName === this.activeTransitionProp) {
|
|
12203
|
+
this.active || this.open
|
|
12204
|
+
? this.emitOpenCloseEvent("beforeOpen")
|
|
12205
|
+
: this.emitOpenCloseEvent("beforeClose");
|
|
12025
12206
|
}
|
|
12026
12207
|
};
|
|
12027
12208
|
this.setReferenceEl = (el) => {
|
|
@@ -12037,7 +12218,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12037
12218
|
return;
|
|
12038
12219
|
}
|
|
12039
12220
|
const key = e.key;
|
|
12040
|
-
if (this.active && (key === "Escape" || (e.shiftKey && key === "Tab"))) {
|
|
12221
|
+
if ((this.open || this.active) && (key === "Escape" || (e.shiftKey && key === "Tab"))) {
|
|
12041
12222
|
this.closeCalciteDropdown();
|
|
12042
12223
|
return;
|
|
12043
12224
|
}
|
|
@@ -12060,7 +12241,8 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12060
12241
|
};
|
|
12061
12242
|
this.openCalciteDropdown = () => {
|
|
12062
12243
|
this.active = !this.active;
|
|
12063
|
-
|
|
12244
|
+
this.open = !this.open;
|
|
12245
|
+
if (this.active || this.open) {
|
|
12064
12246
|
this.el.addEventListener("calciteDropdownOpen", this.toggleOpenEnd);
|
|
12065
12247
|
}
|
|
12066
12248
|
};
|
|
@@ -12071,10 +12253,12 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12071
12253
|
return;
|
|
12072
12254
|
}
|
|
12073
12255
|
this.active = false;
|
|
12256
|
+
this.open = false;
|
|
12074
12257
|
}
|
|
12075
12258
|
handleDisabledChange(value) {
|
|
12076
12259
|
if (!value) {
|
|
12077
12260
|
this.active = false;
|
|
12261
|
+
this.open = false;
|
|
12078
12262
|
}
|
|
12079
12263
|
}
|
|
12080
12264
|
flipPlacementsHandler() {
|
|
@@ -12108,14 +12292,17 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12108
12292
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
12109
12293
|
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
12110
12294
|
this.destroyPopper();
|
|
12295
|
+
if (this.scrollerEl) {
|
|
12296
|
+
this.scrollerEl.removeEventListener("transitionrun", this.transitionRunHandler);
|
|
12297
|
+
}
|
|
12111
12298
|
}
|
|
12112
12299
|
render() {
|
|
12113
|
-
const { active } = this;
|
|
12114
|
-
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-expanded": toAriaBoolean(active), "aria-haspopup": "true", name: SLOTS$h.dropdownTrigger, onSlotchange: this.updateTriggers })), h("div", { "aria-hidden": toAriaBoolean(!active), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, h("div", { class: {
|
|
12300
|
+
const { active, open } = this;
|
|
12301
|
+
return (h(Host, null, h("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-expanded": toAriaBoolean(active || open), "aria-haspopup": "true", name: SLOTS$h.dropdownTrigger, onSlotchange: this.updateTriggers })), h("div", { "aria-hidden": toAriaBoolean(!(active || open)), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, h("div", { class: {
|
|
12115
12302
|
["calcite-dropdown-content"]: true,
|
|
12116
12303
|
[CSS$D.animation]: true,
|
|
12117
|
-
[CSS$D.animationActive]: active
|
|
12118
|
-
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("div", { hidden: !
|
|
12304
|
+
[CSS$D.animationActive]: active || open
|
|
12305
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("div", { hidden: !(open || active) }, h("slot", { onSlotchange: this.updateGroups }))))));
|
|
12119
12306
|
}
|
|
12120
12307
|
//--------------------------------------------------------------------------
|
|
12121
12308
|
//
|
|
@@ -12136,7 +12323,8 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12136
12323
|
: this.createPopper();
|
|
12137
12324
|
}
|
|
12138
12325
|
closeCalciteDropdownOnClick(e) {
|
|
12139
|
-
|
|
12326
|
+
const isOpen = !(this.open || this.active);
|
|
12327
|
+
if (isOpen || e.composedPath().includes(this.el)) {
|
|
12140
12328
|
return;
|
|
12141
12329
|
}
|
|
12142
12330
|
this.closeCalciteDropdown(false);
|
|
@@ -12150,6 +12338,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12150
12338
|
return;
|
|
12151
12339
|
}
|
|
12152
12340
|
this.active = false;
|
|
12341
|
+
this.open = false;
|
|
12153
12342
|
}
|
|
12154
12343
|
mouseEnterHandler() {
|
|
12155
12344
|
if (this.type === "hover") {
|
|
@@ -12208,6 +12397,19 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12208
12397
|
}
|
|
12209
12398
|
event.stopPropagation();
|
|
12210
12399
|
}
|
|
12400
|
+
emitOpenCloseEvent(componentVisibilityState) {
|
|
12401
|
+
const payload = {
|
|
12402
|
+
el: this.el
|
|
12403
|
+
};
|
|
12404
|
+
const emitComponentState = {
|
|
12405
|
+
beforeOpen: () => this.calciteDropdownBeforeOpen.emit(payload),
|
|
12406
|
+
open: () => this.calciteDropdownOpen.emit(payload),
|
|
12407
|
+
beforeClose: () => this.calciteDropdownBeforeClose.emit(payload),
|
|
12408
|
+
close: () => this.calciteDropdownClose.emit(payload)
|
|
12409
|
+
};
|
|
12410
|
+
(emitComponentState[componentVisibilityState] ||
|
|
12411
|
+
emitComponentState["The component state is unknown."])();
|
|
12412
|
+
}
|
|
12211
12413
|
getModifiers() {
|
|
12212
12414
|
const flipModifier = {
|
|
12213
12415
|
name: "flip",
|
|
@@ -12218,7 +12420,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12218
12420
|
};
|
|
12219
12421
|
const eventListenerModifier = {
|
|
12220
12422
|
name: "eventListeners",
|
|
12221
|
-
enabled: this.active
|
|
12423
|
+
enabled: this.open || this.active
|
|
12222
12424
|
};
|
|
12223
12425
|
return [flipModifier, eventListenerModifier];
|
|
12224
12426
|
}
|
|
@@ -12269,6 +12471,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12269
12471
|
}
|
|
12270
12472
|
closeCalciteDropdown(focusTrigger = true) {
|
|
12271
12473
|
this.active = false;
|
|
12474
|
+
this.open = false;
|
|
12272
12475
|
if (focusTrigger) {
|
|
12273
12476
|
focusElement(this.triggers[0]);
|
|
12274
12477
|
}
|
|
@@ -12306,6 +12509,7 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
12306
12509
|
get el() { return this; }
|
|
12307
12510
|
static get watchers() { return {
|
|
12308
12511
|
"active": ["activeHandler"],
|
|
12512
|
+
"open": ["activeHandler"],
|
|
12309
12513
|
"disabled": ["handleDisabledChange"],
|
|
12310
12514
|
"flipPlacements": ["flipPlacementsHandler"],
|
|
12311
12515
|
"maxItems": ["maxItemsHandler"],
|
|
@@ -12413,7 +12617,8 @@ const DropdownItem = class extends HTMLElement$1 {
|
|
|
12413
12617
|
//--------------------------------------------------------------------------
|
|
12414
12618
|
/** Sets focus on the component. */
|
|
12415
12619
|
async setFocus() {
|
|
12416
|
-
|
|
12620
|
+
var _a;
|
|
12621
|
+
(_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
|
|
12417
12622
|
}
|
|
12418
12623
|
//--------------------------------------------------------------------------
|
|
12419
12624
|
//
|
|
@@ -12801,6 +13006,7 @@ const Flow = class extends HTMLElement$1 {
|
|
|
12801
13006
|
this.panelCount = 0;
|
|
12802
13007
|
this.flowDirection = null;
|
|
12803
13008
|
this.panels = [];
|
|
13009
|
+
this.panelItemMutationObserver = createObserver("mutation", () => this.updateFlowProps());
|
|
12804
13010
|
this.getFlowDirection = (oldPanelCount, newPanelCount) => {
|
|
12805
13011
|
const allowRetreatingDirection = oldPanelCount > 1;
|
|
12806
13012
|
const allowAdvancingDirection = oldPanelCount && newPanelCount > 1;
|
|
@@ -12809,20 +13015,16 @@ const Flow = class extends HTMLElement$1 {
|
|
|
12809
13015
|
}
|
|
12810
13016
|
return newPanelCount < oldPanelCount ? "retreating" : "advancing";
|
|
12811
13017
|
};
|
|
12812
|
-
this.updateFlowProps = (
|
|
12813
|
-
const { panels } = this;
|
|
12814
|
-
const newPanels =
|
|
12815
|
-
.assignedElements({
|
|
12816
|
-
flatten: true
|
|
12817
|
-
})
|
|
12818
|
-
.filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-panel"));
|
|
13018
|
+
this.updateFlowProps = () => {
|
|
13019
|
+
const { el, panels } = this;
|
|
13020
|
+
const newPanels = Array.from(el.querySelectorAll("calcite-panel")).filter((panel) => !panel.matches("calcite-panel calcite-panel"));
|
|
12819
13021
|
const oldPanelCount = panels.length;
|
|
12820
13022
|
const newPanelCount = newPanels.length;
|
|
12821
13023
|
const activePanel = newPanels[newPanelCount - 1];
|
|
12822
13024
|
const previousPanel = newPanels[newPanelCount - 2];
|
|
12823
13025
|
if (newPanelCount && activePanel) {
|
|
12824
13026
|
newPanels.forEach((panelNode) => {
|
|
12825
|
-
panelNode.showBackButton = newPanelCount > 1;
|
|
13027
|
+
panelNode.showBackButton = panelNode === activePanel && newPanelCount > 1;
|
|
12826
13028
|
panelNode.hidden = panelNode !== activePanel;
|
|
12827
13029
|
});
|
|
12828
13030
|
}
|
|
@@ -12864,6 +13066,15 @@ const Flow = class extends HTMLElement$1 {
|
|
|
12864
13066
|
// Lifecycle
|
|
12865
13067
|
//
|
|
12866
13068
|
// --------------------------------------------------------------------------
|
|
13069
|
+
connectedCallback() {
|
|
13070
|
+
var _a;
|
|
13071
|
+
(_a = this.panelItemMutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
13072
|
+
this.updateFlowProps();
|
|
13073
|
+
}
|
|
13074
|
+
disconnectedCallback() {
|
|
13075
|
+
var _a;
|
|
13076
|
+
(_a = this.panelItemMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
13077
|
+
}
|
|
12867
13078
|
// --------------------------------------------------------------------------
|
|
12868
13079
|
//
|
|
12869
13080
|
// Private Methods
|
|
@@ -12884,7 +13095,7 @@ const Flow = class extends HTMLElement$1 {
|
|
|
12884
13095
|
[CSS$w.frameAdvancing]: flowDirection === "advancing",
|
|
12885
13096
|
[CSS$w.frameRetreating]: flowDirection === "retreating"
|
|
12886
13097
|
};
|
|
12887
|
-
return (h("div", { class: frameDirectionClasses }, h("slot",
|
|
13098
|
+
return (h("div", { class: frameDirectionClasses }, h("slot", null)));
|
|
12888
13099
|
}
|
|
12889
13100
|
get el() { return this; }
|
|
12890
13101
|
static get style() { return flowCss; }
|
|
@@ -13168,7 +13379,8 @@ const Handle = class extends HTMLElement$1 {
|
|
|
13168
13379
|
// --------------------------------------------------------------------------
|
|
13169
13380
|
/** Sets focus on the component. */
|
|
13170
13381
|
async setFocus() {
|
|
13171
|
-
|
|
13382
|
+
var _a;
|
|
13383
|
+
(_a = this.handleButton) === null || _a === void 0 ? void 0 : _a.focus();
|
|
13172
13384
|
}
|
|
13173
13385
|
// --------------------------------------------------------------------------
|
|
13174
13386
|
//
|
|
@@ -13606,7 +13818,7 @@ const TEXT$c = {
|
|
|
13606
13818
|
clear: "Clear value"
|
|
13607
13819
|
};
|
|
13608
13820
|
|
|
13609
|
-
const inputCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{height:1.5rem;padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) textarea{height:1.5rem;min-height:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{height:1.5rem}:host([scale=s]) input[type=file]{height:1.5rem}:host([scale=s]) .clear-button{min-height:1.5rem;min-width:1.5rem}:host([scale=s]) textarea{height:auto;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{height:2rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea{min-height:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{height:2rem}:host([scale=m]) input[type=file]{height:2rem}:host([scale=m]) .clear-button{min-height:2rem;min-width:2rem}:host([scale=m]) textarea{height:auto;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{height:2.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea{min-height:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{height:2.75rem}:host([scale=l]) input[type=file]{height:2.75rem}:host([scale=l]) .clear-button{min-height:2.75rem;min-width:2.75rem}:host([scale=l]) textarea{height:auto;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}: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]) textarea{resize:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host textarea,:host input{-webkit-transition:var(--calcite-animation-timing), height 0, outline-offset 0s;transition:var(--calcite-animation-timing), height 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;max-height:100%;width:100%;max-width:100%;-ms-flex:1 1 0%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}:host input[type=search]::-webkit-search-decoration{-webkit-appearance:none}:host input,:host textarea{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}:host input:-ms-input-placeholder,:host textarea:-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::-ms-input-placeholder,:host textarea::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder,:host textarea::placeholder,:host textarea:-ms-input-placeholder,:host textarea::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input:focus,:host textarea:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly],:host textarea[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}:host input[readonly]:focus,:host textarea[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}:host textarea,:host input{outline-color:transparent}:host textarea:focus,:host input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{-webkit-padding-start:2rem;padding-inline-start:2rem}:host([icon][scale=m]) input{-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host([icon][scale=l]) input{-webkit-padding-start:3rem;padding-inline-start:3rem}.element-wrapper{position:relative;-ms-flex-order:3;order:3;display:-ms-inline-flexbox;display:inline-flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center}.icon{pointer-events:none;position:absolute;z-index:10;display:block;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;height:0px;width:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;-ms-flex-order:4;order:4;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;min-height:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:stretch;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.loader{top:1px;left:1px;right:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{-ms-flex-order:7;order:7;display:-ms-flexbox;display:flex}.prefix,.suffix{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}.prefix{-ms-flex-order:2;order:2;border-inline-end-width:0px}.suffix{-ms-flex-order:5;order:5;border-inline-start-width:0px}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}:host input[type=number]{-moz-appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0px}.number-button-wrapper{pointer-events:none;-ms-flex-order:6;order:6;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([number-button-type=vertical]) .wrapper{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{-ms-flex-order:2;order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:1;order:1;max-height:100%;min-height:100%;-ms-flex-item-align:stretch;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:5;order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-top-width:0px}.number-button-item{max-height:50%;min-height:50%;pointer-events:initial;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px;padding-left:0.5rem;padding-right:0.5rem;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.number-button-item:focus{background-color:var(--calcite-ui-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item:active{background-color:var(--calcite-ui-foreground-3)}.wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}:host input::-webkit-calendar-picker-indicator{display:none}:host input[type=date]::-webkit-input-placeholder{visibility:hidden !important}:host textarea::-webkit-resizer{position:absolute;bottom:0px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem;inset-inline-end:0}.resize-icon-wrapper{bottom:2px;inset-inline-end:2px;pointer-events:none;position:absolute;z-index:10;height:0.75rem;width:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}.resize-icon-wrapper calcite-icon{bottom:0.25rem;inset-inline-end:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host([type=color]) input{padding:0.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);text-align:center}:host([type=file][scale=s]) input{padding-top:1px;padding-bottom:1px;padding-left:0.5rem;padding-right:0.5rem}:host([type=file][scale=m]) input{padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem}:host([type=file][scale=l]) input{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}:host(.no-bottom-border) input{border-bottom-width:0px}:host(.border-top-color-one) input{border-top-color:var(--calcite-ui-border-1)}:host .inline-child{background-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host .inline-child .editing-enabled{background-color:inherit}:host .inline-child:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
13821
|
+
const inputCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{height:1.5rem;padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) textarea{height:1.5rem;min-height:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{height:1.5rem}:host([scale=s]) input[type=file]{height:1.5rem}:host([scale=s]) .clear-button{min-height:1.5rem;min-width:1.5rem}:host([scale=s]) textarea{height:auto;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{height:2rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea{min-height:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{height:2rem}:host([scale=m]) input[type=file]{height:2rem}:host([scale=m]) .clear-button{min-height:2rem;min-width:2rem}:host([scale=m]) textarea{height:auto;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{height:2.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea{min-height:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{height:2.75rem}:host([scale=l]) input[type=file]{height:2.75rem}:host([scale=l]) .clear-button{min-height:2.75rem;min-width:2.75rem}:host([scale=l]) textarea{height:auto;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}: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]) textarea{resize:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host textarea,:host input{-webkit-transition:var(--calcite-animation-timing), height 0, outline-offset 0s;transition:var(--calcite-animation-timing), height 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;max-height:100%;width:100%;max-width:100%;-ms-flex:1 1 0%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}:host input[type=search]::-webkit-search-decoration{-webkit-appearance:none}:host input,:host textarea{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}:host input:-ms-input-placeholder,:host textarea:-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::-ms-input-placeholder,:host textarea::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder,:host textarea::placeholder,:host textarea:-ms-input-placeholder,:host textarea::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input:focus,:host textarea:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly],:host textarea[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}:host input[readonly]:focus,:host textarea[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}:host textarea,:host input{outline-color:transparent}:host textarea:focus,:host input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{-webkit-padding-start:2rem;padding-inline-start:2rem}:host([icon][scale=m]) input{-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host([icon][scale=l]) input{-webkit-padding-start:3rem;padding-inline-start:3rem}.element-wrapper{position:relative;-ms-flex-order:3;order:3;display:-ms-inline-flexbox;display:inline-flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center}.icon{pointer-events:none;position:absolute;z-index:10;display:block;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;height:0px;width:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;-ms-flex-order:4;order:4;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;min-height:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:stretch;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.loader{top:1px;left:1px;right:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{-ms-flex-order:7;order:7;display:-ms-flexbox;display:flex}.prefix,.suffix{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}.prefix{-ms-flex-order:2;order:2;border-inline-end-width:0px}.suffix{-ms-flex-order:5;order:5;border-inline-start-width:0px}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}:host input[type=number]{-moz-appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0px}.number-button-wrapper{pointer-events:none;-ms-flex-order:6;order:6;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([number-button-type=vertical]) .wrapper{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{-ms-flex-order:2;order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:1;order:1;max-height:100%;min-height:100%;-ms-flex-item-align:stretch;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:5;order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-top-width:0px}.number-button-item{max-height:50%;min-height:50%;pointer-events:initial;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px;padding-left:0.5rem;padding-right:0.5rem;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.number-button-item:focus{background-color:var(--calcite-ui-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item:active{background-color:var(--calcite-ui-foreground-3)}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}:host input::-webkit-calendar-picker-indicator{display:none}:host input[type=date]::-webkit-input-placeholder{visibility:hidden !important}:host textarea::-webkit-resizer{position:absolute;bottom:0px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem;inset-inline-end:0}.resize-icon-wrapper{bottom:2px;inset-inline-end:2px;pointer-events:none;position:absolute;z-index:10;height:0.75rem;width:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}.resize-icon-wrapper calcite-icon{bottom:0.25rem;inset-inline-end:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host([type=color]) input{padding:0.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);text-align:center}:host([type=file][scale=s]) input{padding-top:1px;padding-bottom:1px;padding-left:0.5rem;padding-right:0.5rem}:host([type=file][scale=m]) input{padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem}:host([type=file][scale=l]) input{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}:host(.no-bottom-border) input{border-bottom-width:0px}:host(.border-top-color-one) input{border-top-color:var(--calcite-ui-border-1)}:host .inline-child{background-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host .inline-child .editing-enabled{background-color:inherit}:host .inline-child:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
13610
13822
|
|
|
13611
13823
|
const Input = class extends HTMLElement$1 {
|
|
13612
13824
|
constructor() {
|
|
@@ -13622,33 +13834,45 @@ const Input = class extends HTMLElement$1 {
|
|
|
13622
13834
|
// Properties
|
|
13623
13835
|
//
|
|
13624
13836
|
//--------------------------------------------------------------------------
|
|
13625
|
-
/**
|
|
13837
|
+
/** Specifies the text alignment of the component's value. */
|
|
13626
13838
|
this.alignment = "start";
|
|
13627
|
-
/**
|
|
13839
|
+
/**
|
|
13840
|
+
* When true, the component is focused on page load.
|
|
13841
|
+
*
|
|
13842
|
+
* @mdn [autofocus](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)
|
|
13843
|
+
*/
|
|
13628
13844
|
this.autofocus = false;
|
|
13629
13845
|
/**
|
|
13630
|
-
*
|
|
13631
|
-
* shows by default for search, time, date
|
|
13632
|
-
* will not display for type="textarea"
|
|
13846
|
+
* When true, a clear button is displayed when the component has a value. The clear button shows by default for "search", "time", and "date" types, and will not display for the "textarea" type.
|
|
13633
13847
|
*/
|
|
13634
13848
|
this.clearable = false;
|
|
13635
|
-
/**
|
|
13849
|
+
/**
|
|
13850
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
13851
|
+
*
|
|
13852
|
+
* @mdn [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
13853
|
+
*/
|
|
13636
13854
|
this.disabled = false;
|
|
13637
|
-
/**
|
|
13855
|
+
/**
|
|
13856
|
+
* When true, number values are displayed with the locale's group separator.
|
|
13857
|
+
*/
|
|
13638
13858
|
this.groupSeparator = false;
|
|
13639
|
-
/**
|
|
13859
|
+
/**
|
|
13860
|
+
* When true, the component will not be visible.
|
|
13861
|
+
*
|
|
13862
|
+
* @mdn [hidden](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)
|
|
13863
|
+
*/
|
|
13640
13864
|
this.hidden = false;
|
|
13641
13865
|
/**
|
|
13642
|
-
*
|
|
13866
|
+
* Accessible name that will appear while loading.
|
|
13643
13867
|
*
|
|
13644
13868
|
* @default "Loading"
|
|
13645
13869
|
*/
|
|
13646
13870
|
this.intlLoading = TEXT$s.loading;
|
|
13647
|
-
/**
|
|
13871
|
+
/** When true, the icon is flipped in RTL. */
|
|
13648
13872
|
this.iconFlipRtl = false;
|
|
13649
|
-
/**
|
|
13873
|
+
/** When true, the component is in the loading state and `calcite-progress` is displayed. */
|
|
13650
13874
|
this.loading = false;
|
|
13651
|
-
/** BCP 47 language tag for desired language and country format */
|
|
13875
|
+
/** Specifies the BCP 47 language tag for the desired language and country format. */
|
|
13652
13876
|
this.locale = document.documentElement.lang || "en";
|
|
13653
13877
|
/**
|
|
13654
13878
|
* Toggles locale formatting for numbers.
|
|
@@ -13656,27 +13880,31 @@ const Input = class extends HTMLElement$1 {
|
|
|
13656
13880
|
* @internal
|
|
13657
13881
|
*/
|
|
13658
13882
|
this.localeFormat = false;
|
|
13659
|
-
/**
|
|
13883
|
+
/** Specifies the placement of the buttons for type "number". */
|
|
13660
13884
|
this.numberButtonType = "vertical";
|
|
13661
|
-
/**
|
|
13885
|
+
/**
|
|
13886
|
+
* When true, the value cannot be modified.
|
|
13887
|
+
*
|
|
13888
|
+
* @mdn [readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
13889
|
+
*/
|
|
13662
13890
|
this.readOnly = false;
|
|
13663
|
-
/**
|
|
13891
|
+
/** When true, the component must have a value in order for the form to submit. */
|
|
13664
13892
|
this.required = false;
|
|
13665
|
-
/**
|
|
13893
|
+
/** Specifies the size of the component. */
|
|
13666
13894
|
this.scale = "m";
|
|
13667
|
-
/**
|
|
13895
|
+
/** Specifies the status of the input field, which determines message and icons. */
|
|
13668
13896
|
this.status = "idle";
|
|
13669
13897
|
/**
|
|
13670
13898
|
* @internal
|
|
13671
13899
|
*/
|
|
13672
13900
|
this.editingEnabled = false;
|
|
13673
13901
|
/**
|
|
13674
|
-
*
|
|
13902
|
+
* Specifies the component type.
|
|
13675
13903
|
*
|
|
13676
|
-
* Note that the following types add type-specific icons by default:
|
|
13904
|
+
* Note that the following types add type-specific icons by default: "date", "email", "password", "search", "tel", "time".
|
|
13677
13905
|
*/
|
|
13678
13906
|
this.type = "text";
|
|
13679
|
-
/**
|
|
13907
|
+
/** The component's value. */
|
|
13680
13908
|
this.value = "";
|
|
13681
13909
|
/** keep track of the rendered child type */
|
|
13682
13910
|
this.childElType = "input";
|
|
@@ -13855,13 +14083,15 @@ const Input = class extends HTMLElement$1 {
|
|
|
13855
14083
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
13856
14084
|
}, valueNudgeDelayInMs);
|
|
13857
14085
|
};
|
|
13858
|
-
this.
|
|
14086
|
+
this.numberButtonPointerUpAndOutHandler = () => {
|
|
13859
14087
|
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
13860
14088
|
};
|
|
13861
|
-
this.
|
|
14089
|
+
this.numberButtonPointerDownHandler = (event) => {
|
|
13862
14090
|
event.preventDefault();
|
|
13863
14091
|
const direction = event.target.dataset.adjustment;
|
|
13864
|
-
this.
|
|
14092
|
+
if (!this.disabled) {
|
|
14093
|
+
this.nudgeNumberValue(direction, event);
|
|
14094
|
+
}
|
|
13865
14095
|
};
|
|
13866
14096
|
this.setChildElRef = (el) => {
|
|
13867
14097
|
this.childEl = el;
|
|
@@ -14043,6 +14273,16 @@ const Input = class extends HTMLElement$1 {
|
|
|
14043
14273
|
(_b = this.childEl) === null || _b === void 0 ? void 0 : _b.focus();
|
|
14044
14274
|
}
|
|
14045
14275
|
}
|
|
14276
|
+
/** Selects all text of the component's `value`. */
|
|
14277
|
+
async selectText() {
|
|
14278
|
+
var _a, _b;
|
|
14279
|
+
if (this.type === "number") {
|
|
14280
|
+
(_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.select();
|
|
14281
|
+
}
|
|
14282
|
+
else {
|
|
14283
|
+
(_b = this.childEl) === null || _b === void 0 ? void 0 : _b.select();
|
|
14284
|
+
}
|
|
14285
|
+
}
|
|
14046
14286
|
onLabelClick() {
|
|
14047
14287
|
this.setFocus();
|
|
14048
14288
|
}
|
|
@@ -14119,11 +14359,11 @@ const Input = class extends HTMLElement$1 {
|
|
|
14119
14359
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
14120
14360
|
[CSS$s.numberButtonItem]: true,
|
|
14121
14361
|
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
14122
|
-
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly,
|
|
14362
|
+
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
14123
14363
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
14124
14364
|
[CSS$s.numberButtonItem]: true,
|
|
14125
14365
|
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
14126
|
-
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly,
|
|
14366
|
+
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
14127
14367
|
const numberButtonsVertical = (h("div", { class: CSS$s.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
14128
14368
|
const prefixText = h("div", { class: CSS$s.prefix }, this.prefixText);
|
|
14129
14369
|
const suffixText = h("div", { class: CSS$s.suffix }, this.suffixText);
|
|
@@ -15094,7 +15334,8 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
15094
15334
|
// --------------------------------------------------------------------------
|
|
15095
15335
|
/** Sets focus on the component. */
|
|
15096
15336
|
async setFocus() {
|
|
15097
|
-
|
|
15337
|
+
var _a;
|
|
15338
|
+
(_a = this.calciteInputEl) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
15098
15339
|
}
|
|
15099
15340
|
/** Updates the position of the component. */
|
|
15100
15341
|
async reposition() {
|
|
@@ -15152,7 +15393,7 @@ const CSS$r = {
|
|
|
15152
15393
|
container: "container"
|
|
15153
15394
|
};
|
|
15154
15395
|
|
|
15155
|
-
const labelCss = "@-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:inline}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{
|
|
15396
|
+
const labelCss = "@-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:inline}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host(:not([disable-spacing])[scale=s]) .container{margin-bottom:var(--calcite-label-margin-bottom, 0.5rem)}:host([scale=m]) .container{gap:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host(:not([disable-spacing])[scale=m]) .container{margin-bottom:var(--calcite-label-margin-bottom, 0.75rem)}:host([scale=l]) .container{gap:0.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:not([disable-spacing])[scale=l]) .container{margin-bottom:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-left:0px;margin-right:0px;margin-top:0px;width:100%;line-height:1.375;color:var(--calcite-ui-text-1)}:host([layout=default]) .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;gap:0.5rem}:host([layout=inline][scale=l]) .container{gap:0.75rem}:host([layout=inline-space-between]) .container{-ms-flex-pack:justify;justify-content:space-between}: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])>.container{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted(*){pointer-events:none}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity:1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity:0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([disable-spacing]) .container{margin:0px;gap:0px}";
|
|
15156
15397
|
|
|
15157
15398
|
const Label = class extends HTMLElement$1 {
|
|
15158
15399
|
constructor() {
|
|
@@ -15177,14 +15418,18 @@ const Label = class extends HTMLElement$1 {
|
|
|
15177
15418
|
this.scale = "m";
|
|
15178
15419
|
/** is the wrapped element positioned inline with the label slotted text */
|
|
15179
15420
|
this.layout = "default";
|
|
15180
|
-
/** eliminates any space around the label */
|
|
15181
|
-
this.disableSpacing = false;
|
|
15182
15421
|
/**
|
|
15183
15422
|
* is the label disabled
|
|
15184
15423
|
*
|
|
15185
15424
|
* @deprecated use the `disabled` property on the interactive components instead
|
|
15186
15425
|
*/
|
|
15187
15426
|
this.disabled = false;
|
|
15427
|
+
/**
|
|
15428
|
+
* eliminates any space around the label
|
|
15429
|
+
*
|
|
15430
|
+
* @deprecated set the --calcite-label-margin-bottom css variable to 0 instead
|
|
15431
|
+
*/
|
|
15432
|
+
this.disableSpacing = false;
|
|
15188
15433
|
//--------------------------------------------------------------------------
|
|
15189
15434
|
//
|
|
15190
15435
|
// Private Methods
|
|
@@ -15297,7 +15542,7 @@ const List$1 = class extends HTMLElement$1 {
|
|
|
15297
15542
|
//
|
|
15298
15543
|
// --------------------------------------------------------------------------
|
|
15299
15544
|
/**
|
|
15300
|
-
* When true,
|
|
15545
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
15301
15546
|
*/
|
|
15302
15547
|
this.disabled = false;
|
|
15303
15548
|
}
|
|
@@ -15365,11 +15610,11 @@ const ListItem = class extends HTMLElement$1 {
|
|
|
15365
15610
|
//
|
|
15366
15611
|
// --------------------------------------------------------------------------
|
|
15367
15612
|
/**
|
|
15368
|
-
* When true, prevents the content of the
|
|
15613
|
+
* When true, prevents the content of the component from user interaction.
|
|
15369
15614
|
*/
|
|
15370
15615
|
this.nonInteractive = false;
|
|
15371
15616
|
/**
|
|
15372
|
-
* When true,
|
|
15617
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
15373
15618
|
*/
|
|
15374
15619
|
this.disabled = false;
|
|
15375
15620
|
}
|
|
@@ -15487,17 +15732,17 @@ const Loader = class extends HTMLElement$1 {
|
|
|
15487
15732
|
// Properties
|
|
15488
15733
|
//
|
|
15489
15734
|
//--------------------------------------------------------------------------
|
|
15490
|
-
/** When true, the
|
|
15735
|
+
/** When true, the component is active. */
|
|
15491
15736
|
this.active = false;
|
|
15492
15737
|
/** When true, displays smaller and appears to the left of the text. */
|
|
15493
15738
|
this.inline = false;
|
|
15494
|
-
/**
|
|
15739
|
+
/** Specifies the size of the component. */
|
|
15495
15740
|
this.scale = "m";
|
|
15496
|
-
/** Valid only for determinate indicators. Percent complete of 100. */
|
|
15741
|
+
/** The component's value. Valid only for determinate indicators. Percent complete of 100. */
|
|
15497
15742
|
this.value = 0;
|
|
15498
|
-
/** Text that displays under the
|
|
15743
|
+
/** Text that displays under the component's indicator. */
|
|
15499
15744
|
this.text = "";
|
|
15500
|
-
/** Disables spacing around the
|
|
15745
|
+
/** Disables spacing around the component. */
|
|
15501
15746
|
this.noPadding = false;
|
|
15502
15747
|
}
|
|
15503
15748
|
//--------------------------------------------------------------------------
|
|
@@ -15525,7 +15770,7 @@ const Loader = class extends HTMLElement$1 {
|
|
|
15525
15770
|
};
|
|
15526
15771
|
const svgAttributes = { r: radius, cx: size / 2, cy: size / 2 };
|
|
15527
15772
|
const determinateStyle = { "stroke-dasharray": `${progress} ${remaining}` };
|
|
15528
|
-
return (h(Host,
|
|
15773
|
+
return (h(Host, { "aria-label": label, id: id, role: "progressbar", ...(isDeterminate ? hostAttributes : {}) }, h("div", { class: "loader__svgs" }, h("svg", { class: "loader__svg loader__svg--1", viewBox: viewbox }, h("circle", { ...svgAttributes })), h("svg", { class: "loader__svg loader__svg--2", viewBox: viewbox }, h("circle", { ...svgAttributes })), h("svg", { class: "loader__svg loader__svg--3", viewBox: viewbox, ...(isDeterminate ? { style: determinateStyle } : {}) }, h("circle", { ...svgAttributes }))), text && h("div", { class: "loader__text" }, text), isDeterminate && h("div", { class: "loader__percentage" }, value)));
|
|
15529
15774
|
}
|
|
15530
15775
|
//--------------------------------------------------------------------------
|
|
15531
15776
|
//
|
|
@@ -15683,7 +15928,7 @@ const TEXT$b = {
|
|
|
15683
15928
|
close: "Close"
|
|
15684
15929
|
};
|
|
15685
15930
|
|
|
15686
|
-
const modalCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;-webkit-transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);z-index:101}:host([scale=s]){--calcite-modal-padding:0.75rem;--calcite-modal-padding-large:1rem;--calcite-modal-title-text:var(--calcite-font-size-1);--calcite-modal-content-text:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding:1rem;--calcite-modal-padding-large:1.25rem;--calcite-modal-title-text:var(--calcite-font-size-2);--calcite-modal-content-text:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding:1.25rem;--calcite-modal-padding-large:1.5rem;--calcite-modal-title-text:var(--calcite-font-size-3);--calcite-modal-content-text:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;overflow-y:hidden}.modal{pointer-events:none;float:none;margin:1.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);z-index:102;-webkit-overflow-scrolling:touch;visibility:hidden;-webkit-transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);-webkit-transform:translate3d(0, 20px, 0);transform:translate3d(0, 20px, 0)}:host([active]){opacity:1;visibility:visible !important;-webkit-transition-delay:0ms;transition-delay:0ms}:host([active]) .modal{pointer-events:auto;visibility:visible;opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);-webkit-transition-delay:0ms;transition-delay:0ms}.header{display:-ms-flexbox;display:flex;min-width:0px;max-width:100%;border-top-left-radius:0.25rem;border-top-right-radius:0.25rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);-ms-flex:0 0 auto;flex:0 0 auto;z-index:2}.close{-ms-flex-order:2;order:2;margin:0px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-start-end-radius:0.25rem;padding:var(--calcite-modal-padding);-ms-flex:0 0 auto;flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.title{-ms-flex-order:1;order:1;display:-ms-flexbox;display:flex;min-width:0px;-ms-flex-align:center;align-items:center;-ms-flex:1 1 auto;flex:1 1 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text)}.content{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;height:100%;overflow:auto;background-color:var(--calcite-ui-foreground-1);padding:0px;max-height:calc(100vh - 12rem);z-index:1}.content--spaced{padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}.content--no-footer{border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-content-text)}:host([background-color=grey]) .content{background-color:var(--calcite-ui-background)}.footer{margin-top:auto;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem;border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);-ms-flex:0 0 auto;flex:0 0 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large);z-index:2}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;-webkit-margin-end:auto;margin-inline-end:auto}.secondary{margin-left:0.25rem;margin-right:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{width:auto}:host([width=s]) .modal{max-width:32rem}@media screen and (max-width: 35rem){:host([width=s]) .modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}:host([width=s]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}:host([width=s][docked]){-ms-flex-align:end;align-items:flex-end}}:host([width=m]) .modal{max-width:48rem}@media screen and (max-width: 51rem){:host([width=m]) .modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}:host([width=m]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}:host([width=m][docked]){-ms-flex-align:end;align-items:flex-end}}:host([width=l]) .modal{max-width:94rem}@media screen and (max-width: 97rem){:host([width=l]) .modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}:host([width=l]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}:host([width=l][docked]){-ms-flex-align:end;align-items:flex-end}}:host([fullscreen]){background-color:transparent}:host([fullscreen]) .modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;-webkit-transform:translate3D(0, 20px, 0) scale(0.95);transform:translate3D(0, 20px, 0) scale(0.95)}:host([fullscreen]) .content{max-height:100%;-ms-flex:1 1 auto;flex:1 1 auto}:host([active][fullscreen]) .modal{-webkit-transform:translate3D(0, 0, 0) scale(1);transform:translate3D(0, 0, 0) scale(1)}:host([active][fullscreen]) .header{border-radius:0}:host([active][fullscreen]) .footer{border-radius:0}:host([docked]) .modal{height:auto}:host([docked]) .content{height:auto;-ms-flex:1 1 auto;flex:1 1 auto}@media screen and (max-width: 860px){:host([docked]) .modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}:host([docked]) .close{border-start-end-radius:var(--calcite-border-radius)}}:host([color=red]) .modal{border-color:var(--calcite-ui-danger)}:host([color=blue]) .modal{border-color:var(--calcite-ui-info)}:host([color=red]) .modal,:host([color=blue]) .modal{border-width:0px;border-top-width:4px;border-style:solid}:host([color=red]) .header,:host([color=blue]) .header{border-radius:0.25rem;border-bottom-right-radius:0px;border-bottom-left-radius:0px}@media screen and (max-width: 860px){slot[name=header]::slotted(*),*::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer{position:-webkit-sticky;position:sticky;bottom:0px}}@media screen and (max-width: 480px){.footer{-ms-flex-direction:column;flex-direction:column}.back,.secondary{margin:0px;margin-bottom:0.25rem}}";
|
|
15931
|
+
const modalCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;-webkit-transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);z-index:101}:host([scale=s]){--calcite-modal-padding:0.75rem;--calcite-modal-padding-large:1rem;--calcite-modal-title-text:var(--calcite-font-size-1);--calcite-modal-content-text:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding:1rem;--calcite-modal-padding-large:1.25rem;--calcite-modal-title-text:var(--calcite-font-size-2);--calcite-modal-content-text:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding:1.25rem;--calcite-modal-padding-large:1.5rem;--calcite-modal-title-text:var(--calcite-font-size-3);--calcite-modal-content-text:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;overflow-y:hidden}.modal{pointer-events:none;float:none;margin:1.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);z-index:102;-webkit-overflow-scrolling:touch;visibility:hidden;-webkit-transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);-webkit-transform:translate3d(0, 20px, 0);transform:translate3d(0, 20px, 0)}:host([active]),:host([open]){opacity:1;visibility:visible !important;-webkit-transition-delay:0ms;transition-delay:0ms}:host([active]) .modal,:host([open]) .modal{pointer-events:auto;visibility:visible;opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);-webkit-transition-delay:0ms;transition-delay:0ms}.header{display:-ms-flexbox;display:flex;min-width:0px;max-width:100%;border-top-left-radius:0.25rem;border-top-right-radius:0.25rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);-ms-flex:0 0 auto;flex:0 0 auto;z-index:2}.close{-ms-flex-order:2;order:2;margin:0px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-start-end-radius:0.25rem;padding:var(--calcite-modal-padding);-ms-flex:0 0 auto;flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.title{-ms-flex-order:1;order:1;display:-ms-flexbox;display:flex;min-width:0px;-ms-flex-align:center;align-items:center;-ms-flex:1 1 auto;flex:1 1 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text)}.content{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;height:100%;overflow:auto;background-color:var(--calcite-ui-foreground-1);padding:0px;max-height:calc(100vh - 12rem);z-index:1}.content--spaced{padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}.content--no-footer{border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-content-text)}:host([background-color=grey]) .content{background-color:var(--calcite-ui-background)}.footer{margin-top:auto;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem;border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);-ms-flex:0 0 auto;flex:0 0 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large);z-index:2}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;-webkit-margin-end:auto;margin-inline-end:auto}.secondary{margin-left:0.25rem;margin-right:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{width:auto}:host([width=s]) .modal{max-width:32rem}@media screen and (max-width: 35rem){:host([width=s]) .modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}:host([width=s]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}:host([width=s][docked]){-ms-flex-align:end;align-items:flex-end}}:host([width=m]) .modal{max-width:48rem}@media screen and (max-width: 51rem){:host([width=m]) .modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}:host([width=m]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}:host([width=m][docked]){-ms-flex-align:end;align-items:flex-end}}:host([width=l]) .modal{max-width:94rem}@media screen and (max-width: 97rem){:host([width=l]) .modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}:host([width=l]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}:host([width=l][docked]){-ms-flex-align:end;align-items:flex-end}}:host([fullscreen]){background-color:transparent}:host([fullscreen]) .modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;-webkit-transform:translate3D(0, 20px, 0) scale(0.95);transform:translate3D(0, 20px, 0) scale(0.95)}:host([fullscreen]) .content{max-height:100%;-ms-flex:1 1 auto;flex:1 1 auto}:host([active][fullscreen]) .modal,:host([open][fullscreen]) .modal{-webkit-transform:translate3D(0, 0, 0) scale(1);transform:translate3D(0, 0, 0) scale(1)}:host([active][fullscreen]) .header,:host([open][fullscreen]) .header{border-radius:0}:host([active][fullscreen]) .footer,:host([open][fullscreen]) .footer{border-radius:0}:host([docked]) .modal{height:auto}:host([docked]) .content{height:auto;-ms-flex:1 1 auto;flex:1 1 auto}@media screen and (max-width: 860px){:host([docked]) .modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}:host([docked]) .close{border-start-end-radius:var(--calcite-border-radius)}}:host([color=red]) .modal{border-color:var(--calcite-ui-danger)}:host([color=blue]) .modal{border-color:var(--calcite-ui-info)}:host([color=red]) .modal,:host([color=blue]) .modal{border-width:0px;border-top-width:4px;border-style:solid}:host([color=red]) .header,:host([color=blue]) .header{border-radius:0.25rem;border-bottom-right-radius:0px;border-bottom-left-radius:0px}@media screen and (max-width: 860px){slot[name=header]::slotted(*),*::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer{position:-webkit-sticky;position:sticky;bottom:0px}}@media screen and (max-width: 480px){.footer{-ms-flex-direction:column;flex-direction:column}.back,.secondary{margin:0px;margin-bottom:0.25rem}}";
|
|
15687
15932
|
|
|
15688
15933
|
const isFocusableExtended = (el) => {
|
|
15689
15934
|
return isCalciteFocusable(el) || isFocusable(el);
|
|
@@ -15703,23 +15948,29 @@ const Modal = class extends HTMLElement$1 {
|
|
|
15703
15948
|
// Properties
|
|
15704
15949
|
//
|
|
15705
15950
|
//--------------------------------------------------------------------------
|
|
15706
|
-
/**
|
|
15951
|
+
/**
|
|
15952
|
+
* When true, the `calcite-modal` is active.
|
|
15953
|
+
*
|
|
15954
|
+
* @deprecated use open instead
|
|
15955
|
+
*/
|
|
15707
15956
|
this.active = false;
|
|
15957
|
+
/** When true,`calcite-modal` opens */
|
|
15958
|
+
this.open = false;
|
|
15708
15959
|
/** Passes a function to run before the `calcite-modal` closes. */
|
|
15709
15960
|
this.beforeClose = () => Promise.resolve();
|
|
15710
|
-
/** When true, disables the close button
|
|
15961
|
+
/** When true, disables the component's close button. */
|
|
15711
15962
|
this.disableCloseButton = false;
|
|
15712
|
-
/** When true, disables the closing of the
|
|
15963
|
+
/** When true, disables the closing of the component when clicked outside. */
|
|
15713
15964
|
this.disableOutsideClose = false;
|
|
15714
|
-
/** Accessible
|
|
15965
|
+
/** Accessible name for the component's close button. */
|
|
15715
15966
|
this.intlClose = TEXT$b.close;
|
|
15716
15967
|
/** When true, disables the default close on escape behavior. */
|
|
15717
15968
|
this.disableEscape = false;
|
|
15718
|
-
/**
|
|
15969
|
+
/** Specifies the size of the component. */
|
|
15719
15970
|
this.scale = "m";
|
|
15720
|
-
/**
|
|
15971
|
+
/** Specifies the width of the component. Can use scale sizes or pass a number (displays in pixels). */
|
|
15721
15972
|
this.width = "m";
|
|
15722
|
-
/** Sets the background color of
|
|
15973
|
+
/** Sets the background color of the component's content. */
|
|
15723
15974
|
this.backgroundColor = "white";
|
|
15724
15975
|
/** When true, disables spacing to the content area slot. */
|
|
15725
15976
|
this.noPadding = false;
|
|
@@ -15738,7 +15989,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
15738
15989
|
//--------------------------------------------------------------------------
|
|
15739
15990
|
this.transitionEnd = (event) => {
|
|
15740
15991
|
if (event.propertyName === this.activeTransitionProp) {
|
|
15741
|
-
this.active ? this.calciteModalOpen.emit() : this.calciteModalClose.emit();
|
|
15992
|
+
this.open || this.active ? this.calciteModalOpen.emit() : this.calciteModalClose.emit();
|
|
15742
15993
|
}
|
|
15743
15994
|
};
|
|
15744
15995
|
this.openEnd = () => {
|
|
@@ -15755,6 +16006,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
15755
16006
|
this.close = () => {
|
|
15756
16007
|
return this.beforeClose(this.el).then(() => {
|
|
15757
16008
|
this.active = false;
|
|
16009
|
+
this.open = false;
|
|
15758
16010
|
focusElement(this.previousActiveElement);
|
|
15759
16011
|
this.removeOverflowHiddenClass();
|
|
15760
16012
|
});
|
|
@@ -15782,8 +16034,8 @@ const Modal = class extends HTMLElement$1 {
|
|
|
15782
16034
|
//--------------------------------------------------------------------------
|
|
15783
16035
|
componentWillLoad() {
|
|
15784
16036
|
// when modal initially renders, if active was set we need to open as watcher doesn't fire
|
|
15785
|
-
if (this.active) {
|
|
15786
|
-
this.
|
|
16037
|
+
if (this.open || this.active) {
|
|
16038
|
+
this.openModal();
|
|
15787
16039
|
}
|
|
15788
16040
|
}
|
|
15789
16041
|
connectedCallback() {
|
|
@@ -15839,7 +16091,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
15839
16091
|
//
|
|
15840
16092
|
//--------------------------------------------------------------------------
|
|
15841
16093
|
handleEscape(e) {
|
|
15842
|
-
if (this.active && !this.disableEscape && e.key === "Escape") {
|
|
16094
|
+
if ((this.open || this.active) && !this.disableEscape && e.key === "Escape") {
|
|
15843
16095
|
this.close();
|
|
15844
16096
|
}
|
|
15845
16097
|
}
|
|
@@ -15873,7 +16125,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
15873
16125
|
return focusElement(focusId === "close-button" ? closeButton : getFocusableElements(this.el)[0] || closeButton);
|
|
15874
16126
|
}
|
|
15875
16127
|
/**
|
|
15876
|
-
*
|
|
16128
|
+
* Sets the scroll top of the component's content.
|
|
15877
16129
|
*
|
|
15878
16130
|
* @param top
|
|
15879
16131
|
* @param left
|
|
@@ -15892,7 +16144,7 @@ const Modal = class extends HTMLElement$1 {
|
|
|
15892
16144
|
async toggleModal(value, oldValue) {
|
|
15893
16145
|
if (value !== oldValue) {
|
|
15894
16146
|
if (value) {
|
|
15895
|
-
this.
|
|
16147
|
+
this.openModal();
|
|
15896
16148
|
}
|
|
15897
16149
|
else if (!value) {
|
|
15898
16150
|
this.close();
|
|
@@ -15900,10 +16152,11 @@ const Modal = class extends HTMLElement$1 {
|
|
|
15900
16152
|
}
|
|
15901
16153
|
}
|
|
15902
16154
|
/** Open the modal */
|
|
15903
|
-
|
|
16155
|
+
openModal() {
|
|
15904
16156
|
this.previousActiveElement = document.activeElement;
|
|
15905
16157
|
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
|
15906
16158
|
this.active = true;
|
|
16159
|
+
this.open = true;
|
|
15907
16160
|
const titleEl = getSlotted(this.el, SLOTS$e.header);
|
|
15908
16161
|
const contentEl = getSlotted(this.el, SLOTS$e.content);
|
|
15909
16162
|
this.titleId = ensureId(titleEl);
|
|
@@ -15915,7 +16168,8 @@ const Modal = class extends HTMLElement$1 {
|
|
|
15915
16168
|
}
|
|
15916
16169
|
get el() { return this; }
|
|
15917
16170
|
static get watchers() { return {
|
|
15918
|
-
"active": ["toggleModal"]
|
|
16171
|
+
"active": ["toggleModal"],
|
|
16172
|
+
"open": ["toggleModal"]
|
|
15919
16173
|
}; }
|
|
15920
16174
|
static get style() { return modalCss; }
|
|
15921
16175
|
};
|
|
@@ -15951,21 +16205,21 @@ const Notice = class extends HTMLElement$1 {
|
|
|
15951
16205
|
// Properties
|
|
15952
16206
|
//
|
|
15953
16207
|
//---------------------------------------------------------------------------
|
|
15954
|
-
/** When true, the
|
|
16208
|
+
/** When true, the component is active. */
|
|
15955
16209
|
this.active = false;
|
|
15956
|
-
/** The color for the
|
|
16210
|
+
/** The color for the component's top border and icon. */
|
|
15957
16211
|
this.color = "blue";
|
|
15958
|
-
/**
|
|
16212
|
+
/** When true, a close button is added to the component. */
|
|
15959
16213
|
this.dismissible = false;
|
|
15960
16214
|
/**
|
|
15961
|
-
* Accessible
|
|
16215
|
+
* Accessible name for the close button.
|
|
15962
16216
|
*
|
|
15963
16217
|
* @default "Close"
|
|
15964
16218
|
*/
|
|
15965
16219
|
this.intlClose = TEXT$a.close;
|
|
15966
|
-
/**
|
|
16220
|
+
/** Specifies the size of the component. */
|
|
15967
16221
|
this.scale = "m";
|
|
15968
|
-
/**
|
|
16222
|
+
/** Specifies the width of the component. */
|
|
15969
16223
|
this.width = "auto";
|
|
15970
16224
|
//--------------------------------------------------------------------------
|
|
15971
16225
|
//
|
|
@@ -16005,7 +16259,7 @@ const Notice = class extends HTMLElement$1 {
|
|
|
16005
16259
|
// Public Methods
|
|
16006
16260
|
//
|
|
16007
16261
|
//--------------------------------------------------------------------------
|
|
16008
|
-
/** Sets focus on the
|
|
16262
|
+
/** Sets focus on the component. */
|
|
16009
16263
|
async setFocus() {
|
|
16010
16264
|
const noticeLinkEl = this.el.querySelector("calcite-link");
|
|
16011
16265
|
if (!this.closeButton && !noticeLinkEl) {
|
|
@@ -16040,7 +16294,7 @@ const Option = class extends HTMLElement$1 {
|
|
|
16040
16294
|
//
|
|
16041
16295
|
//--------------------------------------------------------------------------
|
|
16042
16296
|
/**
|
|
16043
|
-
* When true,
|
|
16297
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
16044
16298
|
*/
|
|
16045
16299
|
this.disabled = false;
|
|
16046
16300
|
this.mutationObserver = createObserver("mutation", () => {
|
|
@@ -16121,7 +16375,7 @@ const OptionGroup = class extends HTMLElement$1 {
|
|
|
16121
16375
|
//
|
|
16122
16376
|
//--------------------------------------------------------------------------
|
|
16123
16377
|
/**
|
|
16124
|
-
* When true,
|
|
16378
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
16125
16379
|
*/
|
|
16126
16380
|
this.disabled = false;
|
|
16127
16381
|
}
|
|
@@ -16233,25 +16487,25 @@ const Pagination = class extends HTMLElement$1 {
|
|
|
16233
16487
|
// Public Properties
|
|
16234
16488
|
//
|
|
16235
16489
|
//--------------------------------------------------------------------------
|
|
16236
|
-
/** number of items per page */
|
|
16490
|
+
/** Specifies the number of items per page. */
|
|
16237
16491
|
this.num = 20;
|
|
16238
|
-
/**
|
|
16492
|
+
/** Specifies the starting item number. */
|
|
16239
16493
|
this.start = 1;
|
|
16240
|
-
/** total number of items */
|
|
16494
|
+
/** Specifies the total number of items. */
|
|
16241
16495
|
this.total = 0;
|
|
16242
16496
|
/**
|
|
16243
|
-
*
|
|
16497
|
+
* Accessible name for the component's next button.
|
|
16244
16498
|
*
|
|
16245
16499
|
* @default "Next"
|
|
16246
16500
|
*/
|
|
16247
16501
|
this.textLabelNext = TEXT$9.nextLabel;
|
|
16248
16502
|
/**
|
|
16249
|
-
*
|
|
16503
|
+
* Accessible name for the component's previous button.
|
|
16250
16504
|
*
|
|
16251
16505
|
* @default "Previous"
|
|
16252
16506
|
*/
|
|
16253
16507
|
this.textLabelPrevious = TEXT$9.previousLabel;
|
|
16254
|
-
/**
|
|
16508
|
+
/** Specifies the size of the component. */
|
|
16255
16509
|
this.scale = "m";
|
|
16256
16510
|
//--------------------------------------------------------------------------
|
|
16257
16511
|
//
|
|
@@ -16284,11 +16538,11 @@ const Pagination = class extends HTMLElement$1 {
|
|
|
16284
16538
|
// Public Methods
|
|
16285
16539
|
//
|
|
16286
16540
|
// --------------------------------------------------------------------------
|
|
16287
|
-
/** Go to the next page of results */
|
|
16541
|
+
/** Go to the next page of results. */
|
|
16288
16542
|
async nextPage() {
|
|
16289
16543
|
this.start = Math.min(this.getLastStart(), this.start + this.num);
|
|
16290
16544
|
}
|
|
16291
|
-
/** Go to the previous page of results */
|
|
16545
|
+
/** Go to the previous page of results. */
|
|
16292
16546
|
async previousPage() {
|
|
16293
16547
|
this.start = Math.max(1, this.start - this.num);
|
|
16294
16548
|
}
|
|
@@ -16399,6 +16653,7 @@ const CSS$k = {
|
|
|
16399
16653
|
header: "header",
|
|
16400
16654
|
heading: "heading",
|
|
16401
16655
|
summary: "summary",
|
|
16656
|
+
description: "description",
|
|
16402
16657
|
headerContent: "header-content",
|
|
16403
16658
|
headerActions: "header-actions",
|
|
16404
16659
|
headerActionsEnd: "header-actions--end",
|
|
@@ -16436,7 +16691,7 @@ const TEXT$8 = {
|
|
|
16436
16691
|
};
|
|
16437
16692
|
const HEADING_LEVEL$4 = 3;
|
|
16438
16693
|
|
|
16439
|
-
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;z-index:1}.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;z-index:2}.header-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.875rem;padding-bottom:0.875rem;-webkit-margin-end:auto;margin-inline-end:auto}.header-content .heading,.header-content .
|
|
16694
|
+
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;z-index:1}.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;z-index:2}.header-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.875rem;padding-bottom:0.875rem;-webkit-margin-end:auto;margin-inline-end:auto}.header-content .heading,.header-content .description{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 .description{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);z-index:1}.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;z-index:1}";
|
|
16440
16695
|
|
|
16441
16696
|
const Panel = class extends HTMLElement$1 {
|
|
16442
16697
|
constructor() {
|
|
@@ -16453,27 +16708,27 @@ const Panel = class extends HTMLElement$1 {
|
|
|
16453
16708
|
//
|
|
16454
16709
|
// --------------------------------------------------------------------------
|
|
16455
16710
|
/**
|
|
16456
|
-
*
|
|
16711
|
+
* When true, hides the component.
|
|
16457
16712
|
*/
|
|
16458
16713
|
this.dismissed = false;
|
|
16459
16714
|
/**
|
|
16460
|
-
*
|
|
16715
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
16461
16716
|
*/
|
|
16462
16717
|
this.disabled = false;
|
|
16463
16718
|
/**
|
|
16464
|
-
*
|
|
16719
|
+
* When true, a close button is added to the component.
|
|
16465
16720
|
*/
|
|
16466
16721
|
this.dismissible = false;
|
|
16467
16722
|
/**
|
|
16468
|
-
*
|
|
16723
|
+
* When true, displays a back button in the header.
|
|
16469
16724
|
*/
|
|
16470
16725
|
this.showBackButton = false;
|
|
16471
16726
|
/**
|
|
16472
|
-
* When true,
|
|
16727
|
+
* When true, a busy indicator is displayed.
|
|
16473
16728
|
*/
|
|
16474
16729
|
this.loading = false;
|
|
16475
16730
|
/**
|
|
16476
|
-
*
|
|
16731
|
+
* When true, the action menu items in the `header-menu-actions` slot are open.
|
|
16477
16732
|
*/
|
|
16478
16733
|
this.menuOpen = false;
|
|
16479
16734
|
this.resizeObserver = createObserver("resize", () => this.resizeHandler());
|
|
@@ -16572,7 +16827,7 @@ const Panel = class extends HTMLElement$1 {
|
|
|
16572
16827
|
(_c = this.containerEl) === null || _c === void 0 ? void 0 : _c.focus();
|
|
16573
16828
|
}
|
|
16574
16829
|
/**
|
|
16575
|
-
* Scrolls
|
|
16830
|
+
* Scrolls the component's content to a specified set of coordinates.
|
|
16576
16831
|
*
|
|
16577
16832
|
* ```
|
|
16578
16833
|
* myCalcitePanel.scrollContentTo({
|
|
@@ -16602,10 +16857,10 @@ const Panel = class extends HTMLElement$1 {
|
|
|
16602
16857
|
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$k.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS$c.headerActionsStart, text: label })) : null;
|
|
16603
16858
|
}
|
|
16604
16859
|
renderHeaderContent() {
|
|
16605
|
-
const { heading, headingLevel, summary } = this;
|
|
16860
|
+
const { heading, headingLevel, summary, description } = this;
|
|
16606
16861
|
const headingNode = heading ? (h(Heading, { class: CSS$k.heading, level: headingLevel || HEADING_LEVEL$4 }, heading)) : null;
|
|
16607
|
-
const
|
|
16608
|
-
return headingNode ||
|
|
16862
|
+
const descriptionNode = description || summary ? h("span", { class: CSS$k.description }, description || summary) : null;
|
|
16863
|
+
return headingNode || descriptionNode ? (h("div", { class: CSS$k.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
|
16609
16864
|
}
|
|
16610
16865
|
/**
|
|
16611
16866
|
* Allows user to override the entire header-content node.
|
|
@@ -16985,21 +17240,9 @@ function getItemData() {
|
|
|
16985
17240
|
}));
|
|
16986
17241
|
}
|
|
16987
17242
|
|
|
16988
|
-
|
|
16989
|
-
var t = {};
|
|
16990
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16991
|
-
t[p] = s[p];
|
|
16992
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16993
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16994
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
16995
|
-
t[p[i]] = s[p[i]];
|
|
16996
|
-
}
|
|
16997
|
-
return t;
|
|
16998
|
-
};
|
|
16999
|
-
const List = (_a) => {
|
|
17000
|
-
var { props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, setFilterEl } } = _a, rest = __rest(_a, ["props"]);
|
|
17243
|
+
const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, setFilterEl }, ...rest }) => {
|
|
17001
17244
|
const defaultSlot = h("slot", null);
|
|
17002
|
-
return (h(Host,
|
|
17245
|
+
return (h(Host, { "aria-busy": toAriaBoolean(loading), role: "menu", ...rest },
|
|
17003
17246
|
h("section", null,
|
|
17004
17247
|
h("header", { class: { [CSS$j.sticky]: true } },
|
|
17005
17248
|
filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
|
|
@@ -17022,7 +17265,7 @@ const PickList = class extends HTMLElement$1 {
|
|
|
17022
17265
|
//
|
|
17023
17266
|
// --------------------------------------------------------------------------
|
|
17024
17267
|
/**
|
|
17025
|
-
* When true,
|
|
17268
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
17026
17269
|
*/
|
|
17027
17270
|
this.disabled = false;
|
|
17028
17271
|
/**
|
|
@@ -17030,18 +17273,18 @@ const PickList = class extends HTMLElement$1 {
|
|
|
17030
17273
|
*/
|
|
17031
17274
|
this.filterEnabled = false;
|
|
17032
17275
|
/**
|
|
17033
|
-
* When true,
|
|
17276
|
+
* When true, a busy indicator is displayed.
|
|
17034
17277
|
*/
|
|
17035
17278
|
this.loading = false;
|
|
17036
17279
|
/**
|
|
17037
|
-
*
|
|
17038
|
-
* When true, a user can select multiple
|
|
17039
|
-
* When false, only a single item can be selected at a time
|
|
17040
|
-
* and
|
|
17280
|
+
* Similar to standard radio buttons and checkboxes.
|
|
17281
|
+
* When true, a user can select multiple `calcite-pick-list-item`s at a time.
|
|
17282
|
+
* When false, only a single `calcite-pick-list-item` can be selected at a time,
|
|
17283
|
+
* and a new selection will deselect previous selections.
|
|
17041
17284
|
*/
|
|
17042
17285
|
this.multiple = false;
|
|
17043
17286
|
/**
|
|
17044
|
-
* When true and single-selection is enabled, the selection
|
|
17287
|
+
* When true and single-selection is enabled, the selection changes when navigating `calcite-pick-list-item`s via keyboard.
|
|
17045
17288
|
*/
|
|
17046
17289
|
this.selectionFollowsFocus = false;
|
|
17047
17290
|
// --------------------------------------------------------------------------
|
|
@@ -17113,7 +17356,7 @@ const PickList = class extends HTMLElement$1 {
|
|
|
17113
17356
|
// Public Methods
|
|
17114
17357
|
//
|
|
17115
17358
|
// --------------------------------------------------------------------------
|
|
17116
|
-
/** Returns the
|
|
17359
|
+
/** Returns the component's selected `calcite-pick-list-item`s. */
|
|
17117
17360
|
async getSelectedItems() {
|
|
17118
17361
|
return this.selectedValues;
|
|
17119
17362
|
}
|
|
@@ -17221,11 +17464,11 @@ const PickListItem = class extends HTMLElement$1 {
|
|
|
17221
17464
|
this.calciteInternalListItemPropsChange = createEvent(this, "calciteInternalListItemPropsChange", 7);
|
|
17222
17465
|
this.calciteInternalListItemValueChange = createEvent(this, "calciteInternalListItemValueChange", 7);
|
|
17223
17466
|
/**
|
|
17224
|
-
* When true,
|
|
17467
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
17225
17468
|
*/
|
|
17226
17469
|
this.disabled = false;
|
|
17227
17470
|
/**
|
|
17228
|
-
* When false, the
|
|
17471
|
+
* When false, the component cannot be deselected by user interaction.
|
|
17229
17472
|
*/
|
|
17230
17473
|
this.disableDeselect = false;
|
|
17231
17474
|
/**
|
|
@@ -17239,15 +17482,15 @@ const PickListItem = class extends HTMLElement$1 {
|
|
|
17239
17482
|
*/
|
|
17240
17483
|
this.icon = null;
|
|
17241
17484
|
/**
|
|
17242
|
-
*
|
|
17485
|
+
* When true, displays a remove action that removes the item from the list.
|
|
17243
17486
|
*/
|
|
17244
17487
|
this.removable = false;
|
|
17245
17488
|
/**
|
|
17246
|
-
*
|
|
17489
|
+
* When true, selects an item. Toggles when an item is checked/unchecked.
|
|
17247
17490
|
*/
|
|
17248
17491
|
this.selected = false;
|
|
17249
17492
|
/**
|
|
17250
|
-
*
|
|
17493
|
+
* Accessible name for the component's remove button. Only applicable if removable is "true".
|
|
17251
17494
|
*
|
|
17252
17495
|
* @default "Remove"
|
|
17253
17496
|
*/
|
|
@@ -17318,7 +17561,7 @@ const PickListItem = class extends HTMLElement$1 {
|
|
|
17318
17561
|
//
|
|
17319
17562
|
// --------------------------------------------------------------------------
|
|
17320
17563
|
/**
|
|
17321
|
-
*
|
|
17564
|
+
* Toggles the selection state. By default this won't trigger an event.
|
|
17322
17565
|
* The first argument allows the value to be coerced, rather than swapping values.
|
|
17323
17566
|
*
|
|
17324
17567
|
* @param coerce
|
|
@@ -17401,7 +17644,7 @@ class PopoverManager$1 {
|
|
|
17401
17644
|
// Private Properties
|
|
17402
17645
|
//
|
|
17403
17646
|
// --------------------------------------------------------------------------
|
|
17404
|
-
this.registeredElements = new
|
|
17647
|
+
this.registeredElements = new Map();
|
|
17405
17648
|
this.registeredElementCount = 0;
|
|
17406
17649
|
// --------------------------------------------------------------------------
|
|
17407
17650
|
//
|
|
@@ -17420,7 +17663,7 @@ class PopoverManager$1 {
|
|
|
17420
17663
|
popover.toggle();
|
|
17421
17664
|
return;
|
|
17422
17665
|
}
|
|
17423
|
-
|
|
17666
|
+
Array.from(this.registeredElements.values())
|
|
17424
17667
|
.filter((popover) => popover.autoClose && popover.open && !composedPath.includes(popover))
|
|
17425
17668
|
.forEach((popover) => popover.toggle(false));
|
|
17426
17669
|
};
|
|
@@ -17480,55 +17723,55 @@ const Popover = class extends HTMLElement$1 {
|
|
|
17480
17723
|
//
|
|
17481
17724
|
// --------------------------------------------------------------------------
|
|
17482
17725
|
/**
|
|
17483
|
-
*
|
|
17726
|
+
* When true and clicking outside of the component, automatically closes open `calcite-popover`s.
|
|
17484
17727
|
*/
|
|
17485
17728
|
this.autoClose = false;
|
|
17486
17729
|
/**
|
|
17487
|
-
*
|
|
17730
|
+
* When true, a close button is added to the component.
|
|
17488
17731
|
*
|
|
17489
17732
|
* @deprecated use dismissible instead.
|
|
17490
17733
|
*/
|
|
17491
17734
|
this.closeButton = false;
|
|
17492
17735
|
/**
|
|
17493
|
-
*
|
|
17736
|
+
* When true, a close button is added to the component.
|
|
17494
17737
|
*/
|
|
17495
17738
|
this.dismissible = false;
|
|
17496
17739
|
/**
|
|
17497
|
-
*
|
|
17740
|
+
* When true, prevents flipping the component's placement when overlapping its `referenceElement`.
|
|
17498
17741
|
*/
|
|
17499
17742
|
this.disableFlip = false;
|
|
17500
17743
|
/**
|
|
17501
|
-
*
|
|
17744
|
+
* When true, removes the caret pointer.
|
|
17502
17745
|
*/
|
|
17503
17746
|
this.disablePointer = false;
|
|
17504
17747
|
/**
|
|
17505
|
-
*
|
|
17748
|
+
* Offsets the position of the popover away from the `referenceElement`.
|
|
17506
17749
|
*
|
|
17507
17750
|
* @default 6
|
|
17508
17751
|
*/
|
|
17509
17752
|
this.offsetDistance = defaultOffsetDistance;
|
|
17510
17753
|
/**
|
|
17511
|
-
*
|
|
17754
|
+
* Offsets the position of the popover along the `referenceElement`.
|
|
17512
17755
|
*/
|
|
17513
17756
|
this.offsetSkidding = 0;
|
|
17514
17757
|
/**
|
|
17515
|
-
*
|
|
17758
|
+
* When true, displays and positions the component.
|
|
17516
17759
|
*/
|
|
17517
17760
|
this.open = false;
|
|
17518
|
-
/** Describes the type
|
|
17761
|
+
/** Describes the positioning type to use for the overlaid content. If the element is in a fixed container, use the "fixed" value. */
|
|
17519
17762
|
this.overlayPositioning = "absolute";
|
|
17520
17763
|
/**
|
|
17521
|
-
* Determines where the component will be positioned relative to the referenceElement
|
|
17764
|
+
* Determines where the component will be positioned relative to the `referenceElement`.
|
|
17522
17765
|
*
|
|
17523
17766
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
17524
17767
|
*/
|
|
17525
17768
|
this.placement = defaultPopoverPlacement;
|
|
17526
17769
|
/**
|
|
17527
|
-
*
|
|
17770
|
+
* When true, disables automatically toggling the component when its `referenceElement` has been triggered. This property can be set to "true" to manage when a popover is open.
|
|
17528
17771
|
*/
|
|
17529
17772
|
this.triggerDisabled = false;
|
|
17530
17773
|
/**
|
|
17531
|
-
*
|
|
17774
|
+
* Accessible name for the component's close button.
|
|
17532
17775
|
*
|
|
17533
17776
|
* @default "Close"
|
|
17534
17777
|
*/
|
|
@@ -17673,7 +17916,7 @@ const Popover = class extends HTMLElement$1 {
|
|
|
17673
17916
|
(_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
|
|
17674
17917
|
}
|
|
17675
17918
|
/**
|
|
17676
|
-
* Toggles the
|
|
17919
|
+
* Toggles the component's open property.
|
|
17677
17920
|
*
|
|
17678
17921
|
* @param value
|
|
17679
17922
|
*/
|
|
@@ -17757,7 +18000,7 @@ const Popover = class extends HTMLElement$1 {
|
|
|
17757
18000
|
const displayed = effectiveReferenceElement && open;
|
|
17758
18001
|
const hidden = !displayed;
|
|
17759
18002
|
const arrowNode = !disablePointer ? (h("div", { class: CSS$g.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) })) : null;
|
|
17760
|
-
return (h(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, h("div", { class: {
|
|
18003
|
+
return (h(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, h("div", { class: {
|
|
17761
18004
|
[CSS$D.animation]: true,
|
|
17762
18005
|
[CSS$D.animationActive]: displayed
|
|
17763
18006
|
}, onTransitionEnd: this.transitionEnd }, arrowNode, h("div", { class: {
|
|
@@ -17849,11 +18092,11 @@ const Progress = class extends HTMLElement$1 {
|
|
|
17849
18092
|
super();
|
|
17850
18093
|
this.__registerHost();
|
|
17851
18094
|
this.__attachShadow();
|
|
17852
|
-
/** Use indeterminate if finding actual progress value is impossible */
|
|
18095
|
+
/** Use indeterminate if finding actual progress value is impossible. */
|
|
17853
18096
|
this.type = "determinate";
|
|
17854
|
-
/**
|
|
18097
|
+
/** The component's progress value, with a range of 0.0 - 1.0. */
|
|
17855
18098
|
this.value = 0;
|
|
17856
|
-
/**
|
|
18099
|
+
/** When true and for indeterminate progress bars, reverses the animation direction. */
|
|
17857
18100
|
this.reversed = false;
|
|
17858
18101
|
}
|
|
17859
18102
|
render() {
|
|
@@ -18306,6 +18549,9 @@ const RadioGroup = class extends HTMLElement$1 {
|
|
|
18306
18549
|
items[0].tabIndex = 0;
|
|
18307
18550
|
}
|
|
18308
18551
|
}
|
|
18552
|
+
componentDidLoad() {
|
|
18553
|
+
afterConnectDefaultValueSet(this, this.value);
|
|
18554
|
+
}
|
|
18309
18555
|
connectedCallback() {
|
|
18310
18556
|
connectLabel(this);
|
|
18311
18557
|
connectForm(this);
|
|
@@ -18429,7 +18675,7 @@ const CSS$e = {
|
|
|
18429
18675
|
radioGroupItemIcon: "radio-group-item-icon"
|
|
18430
18676
|
};
|
|
18431
18677
|
|
|
18432
|
-
const radioGroupItemCss = "@-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;cursor:pointer;-ms-flex-item-align:stretch;align-self:stretch;font-weight:var(--calcite-font-weight-normal);-webkit-transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out;transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:0.125rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out;transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{-ms-flex-pack:center;justify-content:center}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}.label--scale-s{padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.125rem;padding-bottom:0.125rem}.label--scale-m{padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.375rem;padding-bottom:0.375rem}.label--scale-l{padding-left:1rem;padding-right:1rem;padding-top:0.625rem;padding-bottom:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:active) label{background-color:var(--calcite-ui-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}:host([checked]) .label--outline{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}::slotted(input){display:none}.radio-group-item-icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;line-height:inherit}:host([icon-position=start]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([icon-position=end]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-position=start]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([icon-position=end]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}:host([icon-position=start]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([icon-position=end]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:1rem;margin-inline-start:1rem}";
|
|
18678
|
+
const radioGroupItemCss = "@-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;cursor:pointer;-ms-flex-item-align:stretch;align-self:stretch;font-weight:var(--calcite-font-weight-normal);-webkit-transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out;transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:0.125rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out;transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{-ms-flex-pack:center;justify-content:center}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}.label--scale-s{padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.125rem;padding-bottom:0.125rem}.label--scale-m{padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.375rem;padding-bottom:0.375rem}.label--scale-l{padding-left:1rem;padding-right:1rem;padding-top:0.625rem;padding-bottom:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:active) label{background-color:var(--calcite-ui-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}:host([checked]) .label--outline{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}::slotted(input){display:none}@media (forced-colors: active){:host([checked]) label{background-color:highlight}:host([checked]) .label--outline{outline:2px solid transparent;outline-offset:2px}:host([checked]) label:not([class~=label--outline]) .radio-group-item-icon{color:highlightText}}.radio-group-item-icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;line-height:inherit}:host([icon-position=start]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([icon-position=end]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-position=start]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([icon-position=end]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}:host([icon-position=start]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([icon-position=end]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:1rem;margin-inline-start:1rem}";
|
|
18433
18679
|
|
|
18434
18680
|
const RadioGroupItem = class extends HTMLElement$1 {
|
|
18435
18681
|
constructor() {
|
|
@@ -18458,7 +18704,7 @@ const RadioGroupItem = class extends HTMLElement$1 {
|
|
|
18458
18704
|
const appearance = getElementProp(this.el, "appearance", "solid");
|
|
18459
18705
|
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
18460
18706
|
const iconEl = (h("calcite-icon", { class: CSS$e.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
18461
|
-
return (h(Host, { "aria-checked": toAriaBoolean(checked), role: "radio" }, h("label", { class: {
|
|
18707
|
+
return (h(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, h("label", { class: {
|
|
18462
18708
|
"label--scale-s": scale === "s",
|
|
18463
18709
|
"label--scale-m": scale === "m",
|
|
18464
18710
|
"label--scale-l": scale === "l",
|
|
@@ -18519,6 +18765,21 @@ const Rating = class extends HTMLElement$1 {
|
|
|
18519
18765
|
* @internal
|
|
18520
18766
|
*/
|
|
18521
18767
|
this.required = false;
|
|
18768
|
+
this.onKeyboardPressed = (event) => {
|
|
18769
|
+
if (!this.required && isActivationKey(event.key)) {
|
|
18770
|
+
event.preventDefault();
|
|
18771
|
+
this.updateValue(0);
|
|
18772
|
+
}
|
|
18773
|
+
};
|
|
18774
|
+
this.onFocusChange = (selectedRatingValue) => {
|
|
18775
|
+
this.hasFocus = true;
|
|
18776
|
+
if (!this.required && this.focusValue === selectedRatingValue) {
|
|
18777
|
+
this.updateValue(0);
|
|
18778
|
+
}
|
|
18779
|
+
else {
|
|
18780
|
+
this.focusValue = selectedRatingValue;
|
|
18781
|
+
}
|
|
18782
|
+
};
|
|
18522
18783
|
this.guid = `calcite-ratings-${guid()}`;
|
|
18523
18784
|
}
|
|
18524
18785
|
//--------------------------------------------------------------------------
|
|
@@ -18562,10 +18823,7 @@ const Rating = class extends HTMLElement$1 {
|
|
|
18562
18823
|
this.hoverValue = i;
|
|
18563
18824
|
} }, h("calcite-icon", { "aria-hidden": "true", class: "icon", icon: selected || average || this.readOnly ? "star-f" : "star", scale: this.scale }), partial && (h("div", { class: "fraction", style: { width: `${fraction * 100}%` } }, h("calcite-icon", { icon: "star-f", scale: this.scale }))), h("span", { class: "visually-hidden" }, this.intlStars.replace("${num}", `${i}`))), h("input", { checked: i === this.value, class: "visually-hidden", disabled: this.disabled || this.readOnly, id: `${this.guid}-${i}`, name: this.guid, onChange: () => this.updateValue(i), onClick: (event) =>
|
|
18564
18825
|
// click is fired from the the component's label, so we treat this as an internal event
|
|
18565
|
-
event.stopPropagation(), onFocus: () =>
|
|
18566
|
-
this.hasFocus = true;
|
|
18567
|
-
this.focusValue = i;
|
|
18568
|
-
}, ref: (el) => (i === 1 || i === this.value) && (this.inputFocusRef = el), type: "radio", value: i })));
|
|
18826
|
+
event.stopPropagation(), onFocus: () => this.onFocusChange(i), onKeyDown: this.onKeyboardPressed, ref: (el) => (i === 1 || i === this.value) && (this.inputFocusRef = el), type: "radio", value: i })));
|
|
18569
18827
|
});
|
|
18570
18828
|
}
|
|
18571
18829
|
render() {
|
|
@@ -18592,7 +18850,8 @@ const Rating = class extends HTMLElement$1 {
|
|
|
18592
18850
|
//--------------------------------------------------------------------------
|
|
18593
18851
|
/** Sets focus on the component. */
|
|
18594
18852
|
async setFocus() {
|
|
18595
|
-
|
|
18853
|
+
var _a;
|
|
18854
|
+
(_a = this.inputFocusRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
18596
18855
|
}
|
|
18597
18856
|
get el() { return this; }
|
|
18598
18857
|
static get style() { return ratingCss; }
|
|
@@ -19657,7 +19916,7 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19657
19916
|
/** Sets focus on the component. */
|
|
19658
19917
|
async setFocus() {
|
|
19659
19918
|
const handle = this.minHandle ? this.minHandle : this.maxHandle;
|
|
19660
|
-
handle.focus();
|
|
19919
|
+
handle === null || handle === void 0 ? void 0 : handle.focus();
|
|
19661
19920
|
}
|
|
19662
19921
|
//--------------------------------------------------------------------------
|
|
19663
19922
|
//
|
|
@@ -23290,6 +23549,7 @@ const Stepper = class extends HTMLElement$1 {
|
|
|
23290
23549
|
super();
|
|
23291
23550
|
this.__registerHost();
|
|
23292
23551
|
this.__attachShadow();
|
|
23552
|
+
this.calciteStepperItemChange = createEvent(this, "calciteStepperItemChange", 7);
|
|
23293
23553
|
this.calciteInternalStepperItemChange = createEvent(this, "calciteInternalStepperItemChange", 7);
|
|
23294
23554
|
//--------------------------------------------------------------------------
|
|
23295
23555
|
//
|
|
@@ -23331,7 +23591,7 @@ const Stepper = class extends HTMLElement$1 {
|
|
|
23331
23591
|
//--------------------------------------------------------------------------
|
|
23332
23592
|
componentDidLoad() {
|
|
23333
23593
|
// if no stepper items are set as active, default to the first one
|
|
23334
|
-
if (
|
|
23594
|
+
if (typeof this.currentPosition !== "number") {
|
|
23335
23595
|
this.calciteInternalStepperItemChange.emit({
|
|
23336
23596
|
position: 0
|
|
23337
23597
|
});
|
|
@@ -23395,12 +23655,22 @@ const Stepper = class extends HTMLElement$1 {
|
|
|
23395
23655
|
event.stopPropagation();
|
|
23396
23656
|
}
|
|
23397
23657
|
updateItem(event) {
|
|
23398
|
-
|
|
23399
|
-
|
|
23658
|
+
const { content, position } = event.detail;
|
|
23659
|
+
if (content) {
|
|
23660
|
+
this.requestedContent = content;
|
|
23661
|
+
}
|
|
23662
|
+
if (typeof position === "number") {
|
|
23663
|
+
this.currentPosition = position;
|
|
23400
23664
|
}
|
|
23401
|
-
this.currentPosition = event.detail.position;
|
|
23402
23665
|
this.calciteInternalStepperItemChange.emit({
|
|
23403
|
-
position
|
|
23666
|
+
position
|
|
23667
|
+
});
|
|
23668
|
+
event.stopPropagation();
|
|
23669
|
+
}
|
|
23670
|
+
handleUserRequestedStepperItemSelect(event) {
|
|
23671
|
+
const { position } = event.detail;
|
|
23672
|
+
this.calciteStepperItemChange.emit({
|
|
23673
|
+
position
|
|
23404
23674
|
});
|
|
23405
23675
|
event.stopPropagation();
|
|
23406
23676
|
}
|
|
@@ -23507,7 +23777,7 @@ const Stepper = class extends HTMLElement$1 {
|
|
|
23507
23777
|
return this.enabledItems.indexOf(e);
|
|
23508
23778
|
}
|
|
23509
23779
|
focusElement(item) {
|
|
23510
|
-
item.focus();
|
|
23780
|
+
item === null || item === void 0 ? void 0 : item.focus();
|
|
23511
23781
|
}
|
|
23512
23782
|
sortItems() {
|
|
23513
23783
|
const { itemMap } = this;
|
|
@@ -23527,7 +23797,7 @@ const Stepper = class extends HTMLElement$1 {
|
|
|
23527
23797
|
static get style() { return stepperCss; }
|
|
23528
23798
|
};
|
|
23529
23799
|
|
|
23530
|
-
const stepperItemCss = "@-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([scale=s]){--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-margin-end:0.25rem;margin-inline-end:0.25rem}:host([scale=s]) .stepper-item-subtitle{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .stepper-item-subtitle{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .stepper-item-subtitle{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:start;align-self:flex-start;margin-bottom:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;cursor:pointer;-ms-flex-direction:column;flex-direction:column;border-width:0px;border-top-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;-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{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host .stepper-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:start;align-items:flex-start}:host .stepper-item-content,:host .stepper-item-header{-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);padding-block:var(--calcite-stepper-item-spacing-unit-l);-webkit-padding-end:var(--calcite-stepper-item-spacing-unit-m);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-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 .stepper-item-content{display:none;width:100%;-ms-flex-direction:column;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-top:1px;display:-ms-inline-flexbox;display:inline-flex;height:0.75rem;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);-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 .stepper-item-header-text{-ms-flex-direction:column;flex-direction:column;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .stepper-item-title,:host .stepper-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .stepper-item-title{margin-bottom:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .stepper-item-subtitle{color:var(--calcite-ui-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);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);-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}: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([complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([complete]) .container .stepper-item-icon{color:var(--calcite-ui-brand)}:host([error]) .container{border-top-color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-ui-danger)}:host(:hover:not([disabled]):not([active])) .container,:host(:focus:not([disabled]):not([active])) .container{border-top-color:var(--calcite-ui-brand)}:host(:hover:not([disabled]):not([active])) .container .stepper-item-title,:host(:focus:not([disabled]):not([active])) .container .stepper-item-title{color:var(--calcite-ui-text-1)}:host(:hover:not([disabled]):not([active])) .container .stepper-item-subtitle,:host(:focus:not([disabled]):not([active])) .container .stepper-item-subtitle{color:var(--calcite-ui-text-2)}:host([error]:hover:not([disabled]):not([active])) .container,:host([error]:focus:not([disabled]):not([active])) .container{border-top-color:var(--calcite-ui-danger-hover)}:host([active]) .container{border-top-color:var(--calcite-ui-brand)}:host([active]) .container .stepper-item-title{color:var(--calcite-ui-text-1)}:host([active]) .container .stepper-item-subtitle{color:var(--calcite-ui-text-2)}:host([active]) .container .stepper-item-number{color:var(--calcite-ui-brand)}:host([active]) .container .stepper-item-icon{color:var(--calcite-ui-brand);opacity:1}:host([layout=vertical]) .container{margin-left:0px;margin-right:0px;margin-top:0px;-ms-flex:1 1 auto;flex:1 1 auto;border-top-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-top:0px;padding-bottom:0px;border-inline-start-width:2px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-l);padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{-ms-flex-order:3;order:3;margin-top:1px;margin-bottom:0px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-s);padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);-webkit-margin-start:auto;margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{-webkit-padding-end:0px;padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0px}:host([layout=vertical][active]) .container .stepper-item-content{display:-ms-flexbox;display:flex}:host([layout=vertical][active]) .container .stepper-item-content ::slotted(:last-child){margin-bottom:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical][complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][complete]:hover:not([disabled]):not([active])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([active])) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-ui-danger)}:host([layout=vertical][active]) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical]:hover:not([disabled]):not([active])) .container,:host([layout=vertical]:focus:not([disabled]):not([active])) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][error]:hover:not([disabled]):not([active])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([active])) .container{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([active]) .container{border-top-color:highlight}:host([active]) .container .stepper-item-number{color:highlight}:host([active]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][active]) .container{border-color:highlight}}";
|
|
23800
|
+
const stepperItemCss = "@-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([scale=s]){--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-margin-end:0.25rem;margin-inline-end:0.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:start;align-self:flex-start;margin-bottom:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;cursor:pointer;-ms-flex-direction:column;flex-direction:column;border-width:0px;border-top-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;-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{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host .stepper-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:start;align-items:flex-start}:host .stepper-item-content,:host .stepper-item-header{-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);padding-block:var(--calcite-stepper-item-spacing-unit-l);-webkit-padding-end:var(--calcite-stepper-item-spacing-unit-m);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-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 .stepper-item-content{display:none;width:100%;-ms-flex-direction:column;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-top:1px;display:-ms-inline-flexbox;display:inline-flex;height:0.75rem;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);-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 .stepper-item-header-text{-ms-flex-direction:column;flex-direction:column;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:-ms-flexbox;display:flex;width:100%}:host .stepper-item-heading{margin-bottom:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .stepper-item-description{color:var(--calcite-ui-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);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);-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}: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([complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([complete]) .container .stepper-item-icon{color:var(--calcite-ui-brand)}:host([error]) .container{border-top-color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-ui-danger)}:host(:hover:not([disabled]):not([active])) .container,:host(:focus:not([disabled]):not([active])) .container{border-top-color:var(--calcite-ui-brand)}:host(:hover:not([disabled]):not([active])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([active])) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host(:hover:not([disabled]):not([active])) .container .stepper-item-description,:host(:focus:not([disabled]):not([active])) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([error]:hover:not([disabled]):not([active])) .container,:host([error]:focus:not([disabled]):not([active])) .container{border-top-color:var(--calcite-ui-danger-hover)}:host([active]) .container{border-top-color:var(--calcite-ui-brand)}:host([active]) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host([active]) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([active]) .container .stepper-item-number{color:var(--calcite-ui-brand)}:host([active]) .container .stepper-item-icon{color:var(--calcite-ui-brand);opacity:1}:host([layout=vertical]) .container{margin-left:0px;margin-right:0px;margin-top:0px;-ms-flex:1 1 auto;flex:1 1 auto;border-top-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-top:0px;padding-bottom:0px;border-inline-start-width:2px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-l);padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{-ms-flex-order:3;order:3;margin-top:1px;margin-bottom:0px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-s);padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);-webkit-margin-start:auto;margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{-webkit-padding-end:0px;padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0px}:host([layout=vertical][active]) .container .stepper-item-content{display:-ms-flexbox;display:flex}:host([layout=vertical][active]) .container .stepper-item-content ::slotted(:last-child){margin-bottom:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical][complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][complete]:hover:not([disabled]):not([active])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([active])) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-ui-danger)}:host([layout=vertical][active]) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical]:hover:not([disabled]):not([active])) .container,:host([layout=vertical]:focus:not([disabled]):not([active])) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][error]:hover:not([disabled]):not([active])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([active])) .container{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([active]) .container{border-top-color:highlight}:host([active]) .container .stepper-item-number{color:highlight}:host([active]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][active]) .container{border-color:highlight}}";
|
|
23531
23801
|
|
|
23532
23802
|
const StepperItem = class extends HTMLElement$1 {
|
|
23533
23803
|
constructor() {
|
|
@@ -23536,6 +23806,7 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
23536
23806
|
this.__attachShadow();
|
|
23537
23807
|
this.calciteInternalStepperItemKeyEvent = createEvent(this, "calciteInternalStepperItemKeyEvent", 7);
|
|
23538
23808
|
this.calciteInternalStepperItemSelect = createEvent(this, "calciteInternalStepperItemSelect", 7);
|
|
23809
|
+
this.calciteInternalUserRequestedStepperItemSelect = createEvent(this, "calciteInternalUserRequestedStepperItemSelect", 7);
|
|
23539
23810
|
this.calciteInternalStepperItemRegister = createEvent(this, "calciteInternalStepperItemRegister", 7);
|
|
23540
23811
|
//--------------------------------------------------------------------------
|
|
23541
23812
|
//
|
|
@@ -23550,6 +23821,10 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
23550
23821
|
this.error = false;
|
|
23551
23822
|
/** is the step disabled and not navigable to by a user */
|
|
23552
23823
|
this.disabled = false;
|
|
23824
|
+
// internal props inherited from wrapping calcite-stepper
|
|
23825
|
+
/** pass a title for the stepper item */
|
|
23826
|
+
/** @internal */
|
|
23827
|
+
this.layout = "horizontal";
|
|
23553
23828
|
/** should the items display an icon based on status */
|
|
23554
23829
|
/** @internal */
|
|
23555
23830
|
this.icon = false;
|
|
@@ -23569,7 +23844,7 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
23569
23844
|
switch (e.key) {
|
|
23570
23845
|
case " ":
|
|
23571
23846
|
case "Enter":
|
|
23572
|
-
this.
|
|
23847
|
+
this.emitUserRequestedItem();
|
|
23573
23848
|
e.preventDefault();
|
|
23574
23849
|
break;
|
|
23575
23850
|
case "ArrowUp":
|
|
@@ -23584,11 +23859,22 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
23584
23859
|
}
|
|
23585
23860
|
}
|
|
23586
23861
|
};
|
|
23862
|
+
this.emitUserRequestedItem = () => {
|
|
23863
|
+
this.emitRequestedItem();
|
|
23864
|
+
if (!this.disabled) {
|
|
23865
|
+
const position = this.itemPosition;
|
|
23866
|
+
this.calciteInternalUserRequestedStepperItemSelect.emit({
|
|
23867
|
+
position
|
|
23868
|
+
});
|
|
23869
|
+
}
|
|
23870
|
+
};
|
|
23587
23871
|
this.emitRequestedItem = () => {
|
|
23588
23872
|
if (!this.disabled) {
|
|
23873
|
+
const position = this.itemPosition;
|
|
23874
|
+
const content = this.itemContent;
|
|
23589
23875
|
this.calciteInternalStepperItemSelect.emit({
|
|
23590
|
-
position
|
|
23591
|
-
content
|
|
23876
|
+
position,
|
|
23877
|
+
content
|
|
23592
23878
|
});
|
|
23593
23879
|
}
|
|
23594
23880
|
};
|
|
@@ -23608,6 +23894,11 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
23608
23894
|
disabledWatcher() {
|
|
23609
23895
|
this.registerStepperItem();
|
|
23610
23896
|
}
|
|
23897
|
+
activeWatcher(active) {
|
|
23898
|
+
if (active) {
|
|
23899
|
+
this.emitRequestedItem();
|
|
23900
|
+
}
|
|
23901
|
+
}
|
|
23611
23902
|
//--------------------------------------------------------------------------
|
|
23612
23903
|
//
|
|
23613
23904
|
// Lifecycle
|
|
@@ -23624,7 +23915,7 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
23624
23915
|
updateHostInteraction(this, true);
|
|
23625
23916
|
}
|
|
23626
23917
|
render() {
|
|
23627
|
-
return (h(Host, { "aria-expanded": toAriaBoolean(this.active), onClick: this.
|
|
23918
|
+
return (h(Host, { "aria-expanded": toAriaBoolean(this.active), onClick: this.emitUserRequestedItem, onKeyDown: this.keyDownHandler }, h("div", { class: "container" }, h("div", { class: "stepper-item-header" }, this.icon ? this.renderIcon() : null, this.numbered ? (h("div", { class: "stepper-item-number" }, this.getItemPosition() + 1, ".")) : null, h("div", { class: "stepper-item-header-text" }, h("span", { class: "stepper-item-heading" }, this.heading || this.itemTitle), h("span", { class: "stepper-item-description" }, this.description || this.itemSubtitle))), h("div", { class: "stepper-item-content" }, h("slot", { onSlotchange: this.setItemContent })))));
|
|
23628
23919
|
}
|
|
23629
23920
|
//--------------------------------------------------------------------------
|
|
23630
23921
|
//
|
|
@@ -23663,7 +23954,8 @@ const StepperItem = class extends HTMLElement$1 {
|
|
|
23663
23954
|
}
|
|
23664
23955
|
get el() { return this; }
|
|
23665
23956
|
static get watchers() { return {
|
|
23666
|
-
"disabled": ["disabledWatcher"]
|
|
23957
|
+
"disabled": ["disabledWatcher"],
|
|
23958
|
+
"active": ["activeWatcher"]
|
|
23667
23959
|
}; }
|
|
23668
23960
|
static get style() { return stepperItemCss; }
|
|
23669
23961
|
};
|
|
@@ -23871,7 +24163,7 @@ const Tab = class extends HTMLElement$1 {
|
|
|
23871
24163
|
static get style() { return tabCss; }
|
|
23872
24164
|
};
|
|
23873
24165
|
|
|
23874
|
-
const tabNavCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex}:host([scale=s]){min-height:1.5rem}:host([scale=m]){min-height:2rem}:host([scale=l]){min-height:2.75rem}.tab-nav{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:start;justify-content:flex-start;overflow:auto}
|
|
24166
|
+
const tabNavCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex}:host([scale=s]){min-height:1.5rem}:host([scale=m]){min-height:2rem}:host([scale=l]){min-height:2.75rem}.tab-nav{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:start;justify-content:flex-start;overflow:auto}.tab-nav-active-indicator-container{position:absolute;left:0px;right:0px;bottom:0px;height:0.125rem;width:100%;overflow:hidden}.tab-nav-active-indicator{position:absolute;bottom:0px;display:block;height:0.125rem;background-color:var(--calcite-ui-brand);-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host([position=below]) .tab-nav-active-indicator{bottom:unset;top:0px}:host([position=bottom]) .tab-nav-active-indicator{bottom:unset;top:0px}:host([position=below]) .tab-nav-active-indicator-container{bottom:unset;top:0px}:host([position=bottom]) .tab-nav-active-indicator-container{bottom:unset;top:0px}:host([bordered]) .tab-nav-active-indicator-container{bottom:unset}:host([bordered][position=below]) .tab-nav-active-indicator-container{bottom:0;top:unset}:host([bordered][position=bottom]) .tab-nav-active-indicator-container{bottom:0;top:unset}@media (forced-colors: active){.tab-nav-active-indicator{background-color:highlight}}";
|
|
23875
24167
|
|
|
23876
24168
|
const TabNav = class extends HTMLElement$1 {
|
|
23877
24169
|
constructor() {
|
|
@@ -23891,7 +24183,7 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23891
24183
|
/**
|
|
23892
24184
|
* @internal
|
|
23893
24185
|
*/
|
|
23894
|
-
this.position = "
|
|
24186
|
+
this.position = "bottom";
|
|
23895
24187
|
/**
|
|
23896
24188
|
* @internal
|
|
23897
24189
|
*/
|
|
@@ -23992,14 +24284,14 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
23992
24284
|
const currentIndex = this.getIndexOfTabTitle(e.target, this.enabledTabTitles);
|
|
23993
24285
|
const previousTab = this.enabledTabTitles[currentIndex - 1] ||
|
|
23994
24286
|
this.enabledTabTitles[this.enabledTabTitles.length - 1];
|
|
23995
|
-
previousTab.focus();
|
|
24287
|
+
previousTab === null || previousTab === void 0 ? void 0 : previousTab.focus();
|
|
23996
24288
|
e.stopPropagation();
|
|
23997
24289
|
e.preventDefault();
|
|
23998
24290
|
}
|
|
23999
24291
|
focusNextTabHandler(e) {
|
|
24000
24292
|
const currentIndex = this.getIndexOfTabTitle(e.target, this.enabledTabTitles);
|
|
24001
24293
|
const nextTab = this.enabledTabTitles[currentIndex + 1] || this.enabledTabTitles[0];
|
|
24002
|
-
nextTab.focus();
|
|
24294
|
+
nextTab === null || nextTab === void 0 ? void 0 : nextTab.focus();
|
|
24003
24295
|
e.stopPropagation();
|
|
24004
24296
|
e.preventDefault();
|
|
24005
24297
|
}
|
|
@@ -24075,7 +24367,7 @@ const TabNav = class extends HTMLElement$1 {
|
|
|
24075
24367
|
static get style() { return tabNavCss; }
|
|
24076
24368
|
};
|
|
24077
24369
|
|
|
24078
|
-
const tabTitleCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;-ms-flex:0 1 auto;flex:0 1 auto;outline:2px solid transparent;outline-offset:2px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:1.25rem;margin-inline-end:1.25rem}:host([layout=center]){margin-top:0px;margin-bottom:0px;margin-left:1.25rem;margin-right:1.25rem;text-align:center;-ms-flex-preferred-size:12rem;flex-basis:12rem}:host([position=below]) a{border-bottom-width:0px;border-top-width:2px;border-top-color:transparent;border-top-style:solid}:host a{outline-color:transparent}:host(:focus) a{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host([active]) a{border-color:transparent;color:var(--calcite-ui-text-1)}: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]) span,:host([disabled]) a{pointer-events:none;opacity:0.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){-webkit-margin-end:1rem;margin-inline-end:1rem}:host([scale=s]) a,:host([scale=s]) span{padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) a,:host([scale=m]) span{padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){-webkit-margin-end:1.5rem;margin-inline-end:1.5rem}:host([scale=l]) a,:host([scale=l]) span{padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}a,span{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:100%;width:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-pack:center;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom-width:2px;padding-left:0px;padding-right:0px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-3);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-bottom-color:transparent;border-bottom-style:solid}span{cursor:default}.calcite-tab-title--icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-item-align:center;align-self:center}.calcite-tab-title--icon svg{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.container--has-text{padding:0.25rem}.container--has-text .calcite-tab-title--icon.icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}.container--has-text .calcite-tab-title--icon.icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([bordered]){-webkit-margin-end:0;margin-inline-end:0}:host([bordered][active]){-webkit-box-shadow:inset 0px -2px var(--calcite-ui-foreground-1);box-shadow:inset 0px -2px var(--calcite-ui-foreground-1)}:host([bordered][active][position=below]){-webkit-box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1);box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}:host([bordered]:hover) a,:host([bordered]:focus) a,:host([bordered]:active) a{position:relative}:host([bordered]:hover) a{background-color:var(--calcite-button-transparent-hover)
|
|
24370
|
+
const tabTitleCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;-ms-flex:0 1 auto;flex:0 1 auto;outline:2px solid transparent;outline-offset:2px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:1.25rem;margin-inline-end:1.25rem}:host([layout=center]){margin-top:0px;margin-bottom:0px;margin-left:1.25rem;margin-right:1.25rem;text-align:center;-ms-flex-preferred-size:12rem;flex-basis:12rem}:host([position=below]) a{border-bottom-width:0px;border-top-width:2px;border-top-color:transparent;border-top-style:solid}:host([position=bottom]) a{border-bottom-width:0px;border-top-width:2px;border-top-color:transparent;border-top-style:solid}:host a{outline-color:transparent}:host(:focus) a{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host([active]) a{border-color:transparent;color:var(--calcite-ui-text-1)}: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]) span,:host([disabled]) a{pointer-events:none;opacity:0.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){-webkit-margin-end:1rem;margin-inline-end:1rem}:host([scale=s]) a,:host([scale=s]) span{padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) a,:host([scale=m]) span{padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){-webkit-margin-end:1.5rem;margin-inline-end:1.5rem}:host([scale=l]) a,:host([scale=l]) span{padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}a,span{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:100%;width:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-pack:center;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom-width:2px;padding-left:0px;padding-right:0px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-3);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-bottom-color:transparent;border-bottom-style:solid}span{cursor:default}.calcite-tab-title--icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-item-align:center;align-self:center}.calcite-tab-title--icon svg{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.container--has-text{padding:0.25rem}.container--has-text .calcite-tab-title--icon.icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}.container--has-text .calcite-tab-title--icon.icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([bordered]){-webkit-margin-end:0;margin-inline-end:0}:host([bordered][active]){-webkit-box-shadow:inset 0px -2px var(--calcite-ui-foreground-1);box-shadow:inset 0px -2px var(--calcite-ui-foreground-1)}:host([bordered][active][position=below]){-webkit-box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1);box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}:host([bordered][active][position=bottom]){-webkit-box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1);box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}:host([bordered]:hover) a,:host([bordered]:focus) a,:host([bordered]:active) a{position:relative}:host([bordered]:hover) a{background-color:var(--calcite-button-transparent-hover)}:host([bordered]) a{border-bottom-style:unset;-webkit-border-start:1px solid transparent;border-inline-start:1px solid transparent;-webkit-border-end:1px solid transparent;border-inline-end:1px solid transparent}:host([bordered][position=below]) a{border-top-style:unset}:host([bordered][position=bottom]) a{border-top-style:unset}:host([active][bordered]) a{border-inline-start-color:var(--calcite-ui-border-1);border-inline-end-color:var(--calcite-ui-border-1)}:host([bordered]) a,:host([bordered]) span{padding-left:0.75rem;padding-right:0.75rem}:host([bordered][scale=s]) a,:host([bordered][scale=s]) span{padding-left:0.5rem;padding-right:0.5rem}:host([bordered][scale=l]) a,:host([bordered][scale=l]) span{padding-left:1rem;padding-right:1rem}@media (forced-colors: active){:host{outline-width:0;outline-offset:0}:host(:focus) a{outline-color:highlight}:host([bordered]) a{border-bottom-style:solid}:host([bordered][position=below]) a{border-top-style:solid}:host([bordered][position=bottom]) a{border-top-style:solid}:host([bordered][active]) a{border-bottom-style:none}:host([bordered][position=below][active]) a{border-top-style:none}:host([bordered][position=bottom][active]) a{border-top-style:none}}";
|
|
24079
24371
|
|
|
24080
24372
|
const TabTitle = class extends HTMLElement$1 {
|
|
24081
24373
|
constructor() {
|
|
@@ -24157,13 +24449,12 @@ const TabTitle = class extends HTMLElement$1 {
|
|
|
24157
24449
|
}
|
|
24158
24450
|
render() {
|
|
24159
24451
|
const id = this.el.id || this.guid;
|
|
24160
|
-
const showSideBorders = this.bordered && !this.disabled && this.layout !== "center";
|
|
24161
24452
|
const iconStartEl = (h("calcite-icon", { class: "calcite-tab-title--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
24162
24453
|
const iconEndEl = (h("calcite-icon", { class: "calcite-tab-title--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
24163
24454
|
return (h(Host, { "aria-controls": this.controls, "aria-expanded": toAriaBoolean(this.active), id: id, role: "tab" }, h("a", { class: {
|
|
24164
24455
|
container: true,
|
|
24165
24456
|
"container--has-text": this.hasText
|
|
24166
|
-
}
|
|
24457
|
+
} }, this.iconStart ? iconStartEl : null, h("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
24167
24458
|
}
|
|
24168
24459
|
async componentDidLoad() {
|
|
24169
24460
|
this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier());
|
|
@@ -24274,7 +24565,7 @@ const SLOTS$4 = {
|
|
|
24274
24565
|
tabNav: "tab-nav"
|
|
24275
24566
|
};
|
|
24276
24567
|
|
|
24277
|
-
const tabsCss = "@-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([bordered]){-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1)}:host([bordered]:not([position=below])) ::slotted(calcite-tab-nav){margin-bottom:-1px}:host([bordered][position=below]) ::slotted(calcite-tab-nav){margin-top:-1px}:host([bordered][position=below]){-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}:host([bordered]) section{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}:host([bordered][scale=s]) section{padding:0.75rem}:host([bordered][scale=m]) section{padding:0.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=below]){-ms-flex-direction:column-reverse;flex-direction:column-reverse}section{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;overflow:hidden;border-top-width:1px;border-top-color:var(--calcite-ui-border-1);border-top-style:solid}:host([position=below]) section{-ms-flex-direction:column-reverse;flex-direction:column-reverse;border-top-width:0px;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-1)}:host([position=below]:not([bordered])) section{border-bottom-style:solid}@media (forced-colors: active){:host([bordered]) section{border-top-width:0px;border-bottom-width:1px}:host([position=below][bordered]) section{border-top-width:1px;border-bottom-width:0px}}";
|
|
24568
|
+
const tabsCss = "@-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([bordered]){-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1)}:host([bordered]:not([position=below])) ::slotted(calcite-tab-nav){margin-bottom:-1px}:host([bordered]:not([position=bottom])) ::slotted(calcite-tab-nav){margin-bottom:-1px}:host([bordered][position=below]) ::slotted(calcite-tab-nav){margin-top:-1px}:host([bordered][position=below]){-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}:host([bordered][position=bottom]){-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}:host([bordered]) section{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}:host([bordered][scale=s]) section{padding:0.75rem}:host([bordered][scale=m]) section{padding:0.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=below]){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host([position=bottom]){-ms-flex-direction:column-reverse;flex-direction:column-reverse}section{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;overflow:hidden;border-top-width:1px;border-top-color:var(--calcite-ui-border-1);border-top-style:solid}:host([position=below]) section{-ms-flex-direction:column-reverse;flex-direction:column-reverse;border-top-width:0px;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-1)}:host([position=bottom]) section{-ms-flex-direction:column-reverse;flex-direction:column-reverse;border-top-width:0px;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-1)}:host([position=below]:not([bordered])) section{border-bottom-style:solid}:host([position=bottom]:not([bordered])) section{border-bottom-style:solid}@media (forced-colors: active){:host([bordered]) section{border-top-width:0px;border-bottom-width:1px}:host([position=below][bordered]) section{border-top-width:1px;border-bottom-width:0px}:host([position=bottom][bordered]) section{border-top-width:1px;border-bottom-width:0px}}";
|
|
24278
24569
|
|
|
24279
24570
|
const Tabs = class extends HTMLElement$1 {
|
|
24280
24571
|
constructor() {
|
|
@@ -24291,9 +24582,10 @@ const Tabs = class extends HTMLElement$1 {
|
|
|
24291
24582
|
*/
|
|
24292
24583
|
this.layout = "inline";
|
|
24293
24584
|
/**
|
|
24294
|
-
* Display the tabs
|
|
24585
|
+
* Display the tabs top (default) or bottom of the tab content. above and below are deprecated.
|
|
24586
|
+
*
|
|
24295
24587
|
*/
|
|
24296
|
-
this.position = "
|
|
24588
|
+
this.position = "top";
|
|
24297
24589
|
/**
|
|
24298
24590
|
* Specify the scale of the tabs component, defaults to m
|
|
24299
24591
|
*/
|
|
@@ -24565,7 +24857,8 @@ const TileSelect = class extends HTMLElement$1 {
|
|
|
24565
24857
|
//--------------------------------------------------------------------------
|
|
24566
24858
|
/** Sets focus on the component. */
|
|
24567
24859
|
async setFocus() {
|
|
24568
|
-
|
|
24860
|
+
var _a;
|
|
24861
|
+
(_a = this.input) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
24569
24862
|
}
|
|
24570
24863
|
//--------------------------------------------------------------------------
|
|
24571
24864
|
//
|
|
@@ -25777,7 +26070,7 @@ class TooltipManager$1 {
|
|
|
25777
26070
|
document.addEventListener("mouseover", this.mouseEnterShow, { capture: true });
|
|
25778
26071
|
document.addEventListener("mouseout", this.mouseLeaveHide, { capture: true });
|
|
25779
26072
|
document.addEventListener("pointerdown", this.clickHandler, { capture: true });
|
|
25780
|
-
document.addEventListener("focusin", this.focusShow
|
|
26073
|
+
document.addEventListener("focusin", this.focusShow, { capture: true });
|
|
25781
26074
|
document.addEventListener("focusout", this.blurHide, { capture: true });
|
|
25782
26075
|
}
|
|
25783
26076
|
removeListeners() {
|
|
@@ -25864,20 +26157,20 @@ const Tooltip = class extends HTMLElement$1 {
|
|
|
25864
26157
|
// Properties
|
|
25865
26158
|
//
|
|
25866
26159
|
// --------------------------------------------------------------------------
|
|
25867
|
-
/** Closes the
|
|
26160
|
+
/** Closes the component when the `referenceElement` is clicked. */
|
|
25868
26161
|
this.closeOnClick = false;
|
|
25869
26162
|
/**
|
|
25870
|
-
* Offset the position of the
|
|
26163
|
+
* Offset the position of the component away from the `referenceElement`.
|
|
25871
26164
|
*
|
|
25872
26165
|
* @default 6
|
|
25873
26166
|
*/
|
|
25874
26167
|
this.offsetDistance = defaultOffsetDistance;
|
|
25875
26168
|
/**
|
|
25876
|
-
* Offset the position of the
|
|
26169
|
+
* Offset the position of the component along the `referenceElement`.
|
|
25877
26170
|
*/
|
|
25878
26171
|
this.offsetSkidding = 0;
|
|
25879
26172
|
/**
|
|
25880
|
-
* When true, the
|
|
26173
|
+
* When true, the component is open.
|
|
25881
26174
|
*/
|
|
25882
26175
|
this.open = false;
|
|
25883
26176
|
/** Describes the positioning type to use for the overlaid content. If the `referenceElement` is in a fixed container, use the "fixed" value. */
|
|
@@ -26035,7 +26328,7 @@ const Tooltip = class extends HTMLElement$1 {
|
|
|
26035
26328
|
const { effectiveReferenceElement, label, open } = this;
|
|
26036
26329
|
const displayed = effectiveReferenceElement && open;
|
|
26037
26330
|
const hidden = !displayed;
|
|
26038
|
-
return (h(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, h("div", { class: {
|
|
26331
|
+
return (h(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, h("div", { class: {
|
|
26039
26332
|
[CSS$D.animation]: true,
|
|
26040
26333
|
[CSS$D.animationActive]: displayed
|
|
26041
26334
|
} }, h("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), h("div", { class: CSS$2.container }, h("slot", null)))));
|
|
@@ -26103,7 +26396,7 @@ const Tree = class extends HTMLElement$1 {
|
|
|
26103
26396
|
// Properties
|
|
26104
26397
|
//
|
|
26105
26398
|
//--------------------------------------------------------------------------
|
|
26106
|
-
/**
|
|
26399
|
+
/** Displays indentation guide lines. */
|
|
26107
26400
|
this.lines = false;
|
|
26108
26401
|
/**
|
|
26109
26402
|
* Display input
|
|
@@ -26111,10 +26404,10 @@ const Tree = class extends HTMLElement$1 {
|
|
|
26111
26404
|
* @deprecated Use "ancestors" selection-mode for checkbox input.
|
|
26112
26405
|
*/
|
|
26113
26406
|
this.inputEnabled = false;
|
|
26114
|
-
/**
|
|
26407
|
+
/** Specifies the size of the component. */
|
|
26115
26408
|
this.scale = "m";
|
|
26116
26409
|
/**
|
|
26117
|
-
* Customize how
|
|
26410
|
+
* Customize how the component's selection works.
|
|
26118
26411
|
*
|
|
26119
26412
|
* @default "single"
|
|
26120
26413
|
* @see [TreeSelectionMode](https://github.com/Esri/calcite-components/blob/master/src/components/tree/interfaces.ts#L5)
|
|
@@ -26370,9 +26663,9 @@ const TreeItem = class extends HTMLElement$1 {
|
|
|
26370
26663
|
// Properties
|
|
26371
26664
|
//
|
|
26372
26665
|
//--------------------------------------------------------------------------
|
|
26373
|
-
/**
|
|
26666
|
+
/** When true, the component is selected. */
|
|
26374
26667
|
this.selected = false;
|
|
26375
|
-
/**
|
|
26668
|
+
/** When true, the component is expanded. */
|
|
26376
26669
|
this.expanded = false;
|
|
26377
26670
|
/**
|
|
26378
26671
|
* @internal
|
|
@@ -26542,7 +26835,7 @@ const TreeItem = class extends HTMLElement$1 {
|
|
|
26542
26835
|
case "Home":
|
|
26543
26836
|
root = this.el.closest("calcite-tree:not([child])");
|
|
26544
26837
|
const firstNode = root.querySelector("calcite-tree-item");
|
|
26545
|
-
firstNode.focus();
|
|
26838
|
+
firstNode === null || firstNode === void 0 ? void 0 : firstNode.focus();
|
|
26546
26839
|
break;
|
|
26547
26840
|
case "End":
|
|
26548
26841
|
root = this.el.closest("calcite-tree:not([child])");
|
|
@@ -26552,7 +26845,7 @@ const TreeItem = class extends HTMLElement$1 {
|
|
|
26552
26845
|
currentNode = currentTree.children[root.children.length - 1];
|
|
26553
26846
|
currentTree = nodeListToArray(currentNode.children).find((e) => e.matches("calcite-tree"));
|
|
26554
26847
|
}
|
|
26555
|
-
currentNode.focus();
|
|
26848
|
+
currentNode === null || currentNode === void 0 ? void 0 : currentNode.focus();
|
|
26556
26849
|
break;
|
|
26557
26850
|
}
|
|
26558
26851
|
}
|
|
@@ -26588,30 +26881,30 @@ const ValueList = class extends HTMLElement$1 {
|
|
|
26588
26881
|
//
|
|
26589
26882
|
// --------------------------------------------------------------------------
|
|
26590
26883
|
/**
|
|
26591
|
-
* When true,
|
|
26884
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
26592
26885
|
*/
|
|
26593
26886
|
this.disabled = false;
|
|
26594
26887
|
/**
|
|
26595
|
-
* When true, list
|
|
26888
|
+
* When true, `calcite-value-list-item`s are sortable via a draggable button.
|
|
26596
26889
|
*/
|
|
26597
26890
|
this.dragEnabled = false;
|
|
26598
26891
|
/**
|
|
26599
|
-
* When true, an input appears at the top of the
|
|
26892
|
+
* When true, an input appears at the top of the component that can be used by end users to filter list items.
|
|
26600
26893
|
*/
|
|
26601
26894
|
this.filterEnabled = false;
|
|
26602
26895
|
/**
|
|
26603
|
-
* When true,
|
|
26896
|
+
* When true, a busy indicator is displayed.
|
|
26604
26897
|
*/
|
|
26605
26898
|
this.loading = false;
|
|
26606
26899
|
/**
|
|
26607
26900
|
* Similar to standard radio buttons and checkboxes.
|
|
26608
|
-
* When true, a user can select multiple list
|
|
26609
|
-
* When false, only a single list
|
|
26610
|
-
* and
|
|
26901
|
+
* When true, a user can select multiple `calcite-value-list-item`s at a time.
|
|
26902
|
+
* When false, only a single `calcite-value-list-item` can be selected at a time,
|
|
26903
|
+
* and a new selection will deselect previous selections.
|
|
26611
26904
|
*/
|
|
26612
26905
|
this.multiple = false;
|
|
26613
26906
|
/**
|
|
26614
|
-
* When true and single-selection is enabled, the selection changes when navigating list
|
|
26907
|
+
* When true and single-selection is enabled, the selection changes when navigating `calcite-value-list-item`s via keyboard.
|
|
26615
26908
|
*/
|
|
26616
26909
|
this.selectionFollowsFocus = false;
|
|
26617
26910
|
// --------------------------------------------------------------------------
|
|
@@ -26662,7 +26955,7 @@ const ValueList = class extends HTMLElement$1 {
|
|
|
26662
26955
|
}
|
|
26663
26956
|
this.items = this.getItems();
|
|
26664
26957
|
this.calciteListOrderChange.emit(this.items.map(({ value }) => value));
|
|
26665
|
-
requestAnimationFrame(() => handleElement.focus());
|
|
26958
|
+
requestAnimationFrame(() => handleElement === null || handleElement === void 0 ? void 0 : handleElement.focus());
|
|
26666
26959
|
item.handleActivated = true;
|
|
26667
26960
|
};
|
|
26668
26961
|
}
|
|
@@ -26793,7 +27086,7 @@ const ValueListItem = class extends HTMLElement$1 {
|
|
|
26793
27086
|
this.__attachShadow();
|
|
26794
27087
|
this.calciteListItemRemove = createEvent(this, "calciteListItemRemove", 7);
|
|
26795
27088
|
/**
|
|
26796
|
-
* When true,
|
|
27089
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
26797
27090
|
*/
|
|
26798
27091
|
this.disabled = false;
|
|
26799
27092
|
/**
|
|
@@ -26801,7 +27094,7 @@ const ValueListItem = class extends HTMLElement$1 {
|
|
|
26801
27094
|
*/
|
|
26802
27095
|
this.disableDeselect = false;
|
|
26803
27096
|
/**
|
|
26804
|
-
* When true, prevents the content of the
|
|
27097
|
+
* When true, prevents the content of the component from user interaction.
|
|
26805
27098
|
*/
|
|
26806
27099
|
this.nonInteractive = false;
|
|
26807
27100
|
/**
|
|
@@ -26815,11 +27108,11 @@ const ValueListItem = class extends HTMLElement$1 {
|
|
|
26815
27108
|
*/
|
|
26816
27109
|
this.icon = null;
|
|
26817
27110
|
/**
|
|
26818
|
-
* When true, adds an action to remove the
|
|
27111
|
+
* When true, adds an action to remove the component.
|
|
26819
27112
|
*/
|
|
26820
27113
|
this.removable = false;
|
|
26821
27114
|
/**
|
|
26822
|
-
* When true,
|
|
27115
|
+
* When true, the component is selected.
|
|
26823
27116
|
*/
|
|
26824
27117
|
this.selected = false;
|
|
26825
27118
|
this.pickListItem = null;
|
|
@@ -26911,7 +27204,7 @@ const ValueListItem = class extends HTMLElement$1 {
|
|
|
26911
27204
|
};
|
|
26912
27205
|
|
|
26913
27206
|
const CalciteAccordion = /*@__PURE__*/proxyCustomElement(Accordion, [1,"calcite-accordion",{"appearance":[513],"iconPosition":[513,"icon-position"],"iconType":[513,"icon-type"],"scale":[513],"selectionMode":[513,"selection-mode"]},[[0,"calciteInternalAccordionItemKeyEvent","calciteInternalAccordionItemKeyEvent"],[0,"calciteInternalAccordionItemRegister","registerCalciteAccordionItem"],[0,"calciteInternalAccordionItemSelect","updateActiveItemOnChange"]]]);
|
|
26914
|
-
const CalciteAccordionItem = /*@__PURE__*/proxyCustomElement(AccordionItem, [1,"calcite-accordion-item",{"active":[1540],"itemTitle":[1,"item-title"],"itemSubtitle":[1,"item-subtitle"],"icon":[513]},[[0,"keydown","keyDownHandler"],[16,"calciteInternalAccordionChange","updateActiveItemOnChange"]]]);
|
|
27207
|
+
const CalciteAccordionItem = /*@__PURE__*/proxyCustomElement(AccordionItem, [1,"calcite-accordion-item",{"active":[1540],"expanded":[1540],"itemTitle":[1,"item-title"],"itemSubtitle":[1,"item-subtitle"],"heading":[1],"description":[1],"icon":[513]},[[0,"keydown","keyDownHandler"],[16,"calciteInternalAccordionChange","updateActiveItemOnChange"]]]);
|
|
26915
27208
|
const CalciteAction = /*@__PURE__*/proxyCustomElement(Action, [1,"calcite-action",{"active":[516],"alignment":[513],"appearance":[513],"compact":[516],"disabled":[516],"icon":[1],"indicator":[516],"intlLoading":[1,"intl-loading"],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"]}]);
|
|
26916
27209
|
const CalciteActionBar = /*@__PURE__*/proxyCustomElement(ActionBar, [1,"calcite-action-bar",{"expandDisabled":[516,"expand-disabled"],"expanded":[1540],"intlExpand":[1,"intl-expand"],"intlCollapse":[1,"intl-collapse"],"overflowActionsDisabled":[4,"overflow-actions-disabled"],"position":[513],"scale":[513]}]);
|
|
26917
27210
|
const CalciteActionGroup = /*@__PURE__*/proxyCustomElement(ActionGroup, [1,"calcite-action-group",{"expanded":[516],"layout":[513],"columns":[514],"intlMore":[1,"intl-more"],"menuOpen":[1540,"menu-open"],"scale":[513]}]);
|
|
@@ -26919,23 +27212,23 @@ const CalciteActionMenu = /*@__PURE__*/proxyCustomElement(ActionMenu, [1,"calcit
|
|
|
26919
27212
|
const CalciteActionPad = /*@__PURE__*/proxyCustomElement(ActionPad, [1,"calcite-action-pad",{"expandDisabled":[516,"expand-disabled"],"expanded":[1540],"layout":[513],"intlExpand":[1,"intl-expand"],"intlCollapse":[1,"intl-collapse"],"position":[513],"scale":[513]}]);
|
|
26920
27213
|
const CalciteAlert = /*@__PURE__*/proxyCustomElement(Alert, [1,"calcite-alert",{"active":[1540],"autoDismiss":[4,"auto-dismiss"],"autoDismissDuration":[513,"auto-dismiss-duration"],"color":[513],"icon":[520],"intlClose":[1,"intl-close"],"label":[1],"placement":[1],"scale":[513],"queue":[32],"queueLength":[32],"queued":[32],"requestedIcon":[32]},[[8,"calciteInternalAlertSync","alertSync"],[8,"calciteInternalAlertRegister","alertRegister"]]]);
|
|
26921
27214
|
const CalciteAvatar = /*@__PURE__*/proxyCustomElement(Avatar, [1,"calcite-avatar",{"scale":[513],"thumbnail":[1],"fullName":[1,"full-name"],"username":[1],"userId":[1,"user-id"],"error":[32]}]);
|
|
26922
|
-
const CalciteBlock = /*@__PURE__*/proxyCustomElement(Block, [1,"calcite-block",{"collapsible":[4],"disabled":[516],"dragHandle":[516,"drag-handle"],"heading":[1],"headingLevel":[2,"heading-level"],"intlCollapse":[1,"intl-collapse"],"intlExpand":[1,"intl-expand"],"intlLoading":[1,"intl-loading"],"intlOptions":[1,"intl-options"],"loading":[516],"open":[1540],"status":[513],"summary":[1]}]);
|
|
27215
|
+
const CalciteBlock = /*@__PURE__*/proxyCustomElement(Block, [1,"calcite-block",{"collapsible":[4],"disabled":[516],"dragHandle":[516,"drag-handle"],"heading":[1],"headingLevel":[2,"heading-level"],"intlCollapse":[1,"intl-collapse"],"intlExpand":[1,"intl-expand"],"intlLoading":[1,"intl-loading"],"intlOptions":[1,"intl-options"],"loading":[516],"open":[1540],"status":[513],"summary":[1],"description":[1],"disablePadding":[4,"disable-padding"]}]);
|
|
26923
27216
|
const CalciteBlockSection = /*@__PURE__*/proxyCustomElement(BlockSection, [1,"calcite-block-section",{"intlCollapse":[1,"intl-collapse"],"intlExpand":[1,"intl-expand"],"open":[1540],"status":[513],"text":[1],"toggleDisplay":[513,"toggle-display"]}]);
|
|
26924
27217
|
const CalciteButton = /*@__PURE__*/proxyCustomElement(Button, [1,"calcite-button",{"alignment":[513],"appearance":[513],"label":[1],"color":[513],"disabled":[516],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"intlLoading":[1,"intl-loading"],"loading":[516],"name":[1],"rel":[1],"form":[1],"round":[516],"scale":[513],"splitChild":[520,"split-child"],"target":[1],"type":[1025],"width":[513],"hasContent":[32],"hasLoader":[32]}]);
|
|
26925
27218
|
const CalciteCard = /*@__PURE__*/proxyCustomElement(Card, [1,"calcite-card",{"loading":[516],"selected":[1540],"selectable":[516],"intlLoading":[1,"intl-loading"],"intlSelect":[1,"intl-select"],"intlDeselect":[1,"intl-deselect"],"thumbnailPosition":[1,"thumbnail-position"]}]);
|
|
26926
27219
|
const CalciteCheckbox = /*@__PURE__*/proxyCustomElement(Checkbox, [1,"calcite-checkbox",{"checked":[1540],"disabled":[516],"guid":[1537],"hovered":[1540],"indeterminate":[1540],"label":[1],"name":[520],"required":[516],"scale":[513],"value":[8]}]);
|
|
26927
|
-
const CalciteChip = /*@__PURE__*/proxyCustomElement(Chip, [1,"calcite-chip",{"appearance":[513],"color":[513],"dismissible":[516],"dismissLabel":[1,"dismiss-label"],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"scale":[513],"value":[8]}]);
|
|
26928
|
-
const CalciteColorPicker = /*@__PURE__*/proxyCustomElement(ColorPicker, [1,"calcite-color-picker",{"allowEmpty":[4,"allow-empty"],"appearance":[513],"color":[1040],"disabled":[516],"format":[1],"hideHex":[4,"hide-hex"],"hideChannels":[4,"hide-channels"],"hideSaved":[4,"hide-saved"],"intlB":[1,"intl-b"],"intlBlue":[1,"intl-blue"],"intlDeleteColor":[1,"intl-delete-color"],"intlG":[1,"intl-g"],"intlGreen":[1,"intl-green"],"intlH":[1,"intl-h"],"intlHsv":[1,"intl-hsv"],"intlHex":[1,"intl-hex"],"intlHue":[1,"intl-hue"],"intlNoColor":[1,"intl-no-color"],"intlR":[1,"intl-r"],"intlRed":[1,"intl-red"],"intlRgb":[1,"intl-rgb"],"intlS":[1,"intl-s"],"intlSaturation":[1,"intl-saturation"],"intlSaveColor":[1,"intl-save-color"],"intlSaved":[1,"intl-saved"],"intlV":[1,"intl-v"],"intlValue":[1,"intl-value"],"scale":[513],"storageId":[1,"storage-id"],"value":[1025],"colorFieldAndSliderInteractive":[32],"channelMode":[32],"channels":[32],"dimensions":[32],"savedColors":[32],"colorFieldScopeTop":[32],"colorFieldScopeLeft":[32],"scopeOrientation":[32],"hueScopeLeft":[32],"hueScopeTop":[32]},[[2,"keydown","handleChannelKeyUpOrDown"],[2,"keyup","handleChannelKeyUpOrDown"]]]);
|
|
26929
|
-
const CalciteColorPickerHexInput = /*@__PURE__*/proxyCustomElement(ColorPickerHexInput, [1,"calcite-color-picker-hex-input",{"allowEmpty":[4,"allow-empty"],"intlHex":[1,"intl-hex"],"intlNoColor":[1,"intl-no-color"],"scale":[513],"value":[1537],"internalColor":[32]},[[2,"keydown","onInputKeyDown"]]]);
|
|
27220
|
+
const CalciteChip = /*@__PURE__*/proxyCustomElement(Chip, [1,"calcite-chip",{"appearance":[513],"color":[513],"dismissible":[516],"dismissLabel":[1,"dismiss-label"],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"scale":[513],"value":[8],"closed":[1540]}]);
|
|
27221
|
+
const CalciteColorPicker = /*@__PURE__*/proxyCustomElement(ColorPicker, [1,"calcite-color-picker",{"allowEmpty":[4,"allow-empty"],"appearance":[513],"color":[1040],"disabled":[516],"format":[1],"hideHex":[4,"hide-hex"],"hideChannels":[4,"hide-channels"],"hideSaved":[4,"hide-saved"],"intlB":[1,"intl-b"],"intlBlue":[1,"intl-blue"],"intlDeleteColor":[1,"intl-delete-color"],"intlG":[1,"intl-g"],"intlGreen":[1,"intl-green"],"intlH":[1,"intl-h"],"intlHsv":[1,"intl-hsv"],"intlHex":[1,"intl-hex"],"intlHue":[1,"intl-hue"],"intlNoColor":[1,"intl-no-color"],"intlR":[1,"intl-r"],"intlRed":[1,"intl-red"],"intlRgb":[1,"intl-rgb"],"intlS":[1,"intl-s"],"intlSaturation":[1,"intl-saturation"],"intlSaveColor":[1,"intl-save-color"],"intlSaved":[1,"intl-saved"],"intlV":[1,"intl-v"],"intlValue":[1,"intl-value"],"scale":[513],"storageId":[1,"storage-id"],"numberingSystem":[1,"numbering-system"],"value":[1025],"colorFieldAndSliderInteractive":[32],"channelMode":[32],"channels":[32],"dimensions":[32],"savedColors":[32],"colorFieldScopeTop":[32],"colorFieldScopeLeft":[32],"scopeOrientation":[32],"hueScopeLeft":[32],"hueScopeTop":[32]},[[2,"keydown","handleChannelKeyUpOrDown"],[2,"keyup","handleChannelKeyUpOrDown"]]]);
|
|
27222
|
+
const CalciteColorPickerHexInput = /*@__PURE__*/proxyCustomElement(ColorPickerHexInput, [1,"calcite-color-picker-hex-input",{"allowEmpty":[4,"allow-empty"],"intlHex":[1,"intl-hex"],"intlNoColor":[1,"intl-no-color"],"scale":[513],"value":[1537],"numberingSystem":[1,"numbering-system"],"internalColor":[32]},[[2,"keydown","onInputKeyDown"]]]);
|
|
26930
27223
|
const CalciteColorPickerSwatch = /*@__PURE__*/proxyCustomElement(ColorPickerSwatch, [1,"calcite-color-picker-swatch",{"active":[516],"color":[1],"scale":[513]}]);
|
|
26931
|
-
const CalciteCombobox = /*@__PURE__*/proxyCustomElement(Combobox, [1,"calcite-combobox",{"active":[1540],"disabled":[516],"label":[1],"placeholder":[1],"maxItems":[2,"max-items"],"name":[513],"allowCustomValues":[4,"allow-custom-values"],"overlayPositioning":[1,"overlay-positioning"],"required":[4],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"intlRemoveTag":[1,"intl-remove-tag"],"flipPlacements":[16],"items":[32],"groupItems":[32],"selectedItems":[32],"visibleItems":[32],"needsIcon":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32]},[[4,"click","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]]);
|
|
26932
|
-
const CalciteComboboxItem = /*@__PURE__*/proxyCustomElement(ComboboxItem, [1,"calcite-combobox-item",{"disabled":[516],"selected":[1540],"active":[4],"ancestors":[1040],"guid":[1],"icon":[1],"textLabel":[513,"text-label"],"value":[8],"constant":[516]}]);
|
|
27224
|
+
const CalciteCombobox = /*@__PURE__*/proxyCustomElement(Combobox, [1,"calcite-combobox",{"active":[1540],"open":[1540],"disabled":[516],"label":[1],"placeholder":[1],"placeholderIcon":[1,"placeholder-icon"],"maxItems":[2,"max-items"],"name":[513],"allowCustomValues":[4,"allow-custom-values"],"overlayPositioning":[1,"overlay-positioning"],"required":[4],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"intlRemoveTag":[1,"intl-remove-tag"],"flipPlacements":[16],"items":[32],"groupItems":[32],"selectedItems":[32],"visibleItems":[32],"needsIcon":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32]},[[4,"click","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]]);
|
|
27225
|
+
const CalciteComboboxItem = /*@__PURE__*/proxyCustomElement(ComboboxItem, [1,"calcite-combobox-item",{"disabled":[516],"selected":[1540],"active":[4],"ancestors":[1040],"guid":[1],"icon":[1],"textLabel":[513,"text-label"],"value":[8],"constant":[516],"filterDisabled":[4,"filter-disabled"]}]);
|
|
26933
27226
|
const CalciteComboboxItemGroup = /*@__PURE__*/proxyCustomElement(ComboboxItemGroup, [1,"calcite-combobox-item-group",{"ancestors":[1040],"label":[1]}]);
|
|
26934
27227
|
const CalciteDatePicker = /*@__PURE__*/proxyCustomElement(DatePicker, [1,"calcite-date-picker",{"activeRange":[1,"active-range"],"value":[1025],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"range":[516],"start":[1025],"end":[1025],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"activeDate":[32],"activeStartDate":[32],"activeEndDate":[32],"localeData":[32],"hoverRange":[32]}]);
|
|
26935
27228
|
const CalciteDatePickerDay = /*@__PURE__*/proxyCustomElement(DatePickerDay, [1,"calcite-date-picker-day",{"day":[2],"disabled":[516],"currentMonth":[516,"current-month"],"selected":[516],"highlighted":[516],"range":[516],"startOfRange":[516,"start-of-range"],"endOfRange":[516,"end-of-range"],"rangeHover":[516,"range-hover"],"active":[516],"localeData":[16],"scale":[513],"value":[16]},[[1,"mouseover","mouseoverHandler"]]]);
|
|
26936
27229
|
const CalciteDatePickerMonth = /*@__PURE__*/proxyCustomElement(DatePickerMonth, [1,"calcite-date-picker-month",{"selectedDate":[16],"activeDate":[16],"startDate":[16],"endDate":[16],"min":[16],"max":[16],"scale":[513],"localeData":[16],"hoverRange":[16]},[[1,"mouseout","mouseoutHandler"]]]);
|
|
26937
27230
|
const CalciteDatePickerMonthHeader = /*@__PURE__*/proxyCustomElement(DatePickerMonthHeader, [1,"calcite-date-picker-month-header",{"selectedDate":[16],"activeDate":[16],"headingLevel":[2,"heading-level"],"min":[16],"max":[16],"locale":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"scale":[513],"localeData":[16],"nextMonthDate":[32],"prevMonthDate":[32]}]);
|
|
26938
|
-
const CalciteDropdown = /*@__PURE__*/proxyCustomElement(Dropdown, [1,"calcite-dropdown",{"active":[1540],"disableCloseOnSelect":[516,"disable-close-on-select"],"disabled":[516],"flipPlacements":[16],"maxItems":[2,"max-items"],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"scale":[513],"selectedItems":[1040],"type":[513],"width":[513]},[[8,"click","closeCalciteDropdownOnClick"],[0,"calciteInternalDropdownCloseRequest","closeCalciteDropdownOnEvent"],[8,"calciteDropdownOpen","closeCalciteDropdownOnOpenEvent"],[1,"mouseenter","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"calciteInternalDropdownItemKeyEvent","calciteInternalDropdownItemKeyEvent"],[0,"calciteInternalDropdownItemSelect","handleItemSelect"]]]);
|
|
27231
|
+
const CalciteDropdown = /*@__PURE__*/proxyCustomElement(Dropdown, [1,"calcite-dropdown",{"active":[1540],"open":[1540],"disableCloseOnSelect":[516,"disable-close-on-select"],"disabled":[516],"flipPlacements":[16],"maxItems":[2,"max-items"],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"scale":[513],"selectedItems":[1040],"type":[513],"width":[513]},[[8,"click","closeCalciteDropdownOnClick"],[0,"calciteInternalDropdownCloseRequest","closeCalciteDropdownOnEvent"],[8,"calciteDropdownOpen","closeCalciteDropdownOnOpenEvent"],[1,"mouseenter","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"calciteInternalDropdownItemKeyEvent","calciteInternalDropdownItemKeyEvent"],[0,"calciteInternalDropdownItemSelect","handleItemSelect"]]]);
|
|
26939
27232
|
const CalciteDropdownGroup = /*@__PURE__*/proxyCustomElement(DropdownGroup, [1,"calcite-dropdown-group",{"groupTitle":[513,"group-title"],"selectionMode":[513,"selection-mode"],"scale":[513]},[[0,"calciteInternalDropdownItemSelect","updateActiveItemOnChange"]]]);
|
|
26940
27233
|
const CalciteDropdownItem = /*@__PURE__*/proxyCustomElement(DropdownItem, [1,"calcite-dropdown-item",{"active":[1540],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"href":[513],"label":[1],"rel":[1],"target":[1]},[[0,"click","onClick"],[0,"keydown","keyDownHandler"],[16,"calciteInternalDropdownItemChange","updateActiveItemOnChange"]]]);
|
|
26941
27234
|
const CalciteFab = /*@__PURE__*/proxyCustomElement(Fab, [1,"calcite-fab",{"appearance":[513],"color":[513],"disabled":[516],"icon":[1],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"]}]);
|
|
@@ -26949,18 +27242,18 @@ const CalciteInput = /*@__PURE__*/proxyCustomElement(Input, [1,"calcite-input",{
|
|
|
26949
27242
|
const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(InputDatePicker, [1,"calcite-input-date-picker",{"disabled":[516],"value":[1025],"flipPlacements":[16],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"active":[1540],"name":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"placement":[513],"range":[516],"required":[516],"start":[1025],"end":[1025],"overlayPositioning":[1,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"focusedInput":[32],"localeData":[32]},[[0,"calciteDatePickerChange","handleDateOrRangeChange"],[0,"calciteDatePickerRangeChange","handleDateOrRangeChange"],[0,"calciteDaySelect","calciteDaySelectHandler"]]]);
|
|
26950
27243
|
const CalciteInputMessage = /*@__PURE__*/proxyCustomElement(InputMessage, [1,"calcite-input-message",{"active":[516],"icon":[520],"scale":[1537],"status":[1537],"type":[513]}]);
|
|
26951
27244
|
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,"calciteInternalTimePickerBlur","timePickerBlurHandler"],[0,"calciteInternalTimePickerFocus","timePickerFocusHandler"]]]);
|
|
26952
|
-
const CalciteLabel = /*@__PURE__*/proxyCustomElement(Label, [1,"calcite-label",{"alignment":[513],"status":[513],"for":[513],"scale":[513],"layout":[513],"disableSpacing":[4,"disable-spacing"]
|
|
27245
|
+
const CalciteLabel = /*@__PURE__*/proxyCustomElement(Label, [1,"calcite-label",{"alignment":[513],"status":[513],"for":[513],"scale":[513],"layout":[513],"disabled":[516],"disableSpacing":[4,"disable-spacing"]}]);
|
|
26953
27246
|
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]}]);
|
|
26954
27247
|
const CalciteList = /*@__PURE__*/proxyCustomElement(List$1, [1,"calcite-list",{"disabled":[516],"headingLevel":[2,"heading-level"]}]);
|
|
26955
27248
|
const CalciteListItem = /*@__PURE__*/proxyCustomElement(ListItem, [1,"calcite-list-item",{"nonInteractive":[516,"non-interactive"],"description":[1],"disabled":[516],"label":[1]}]);
|
|
26956
27249
|
const CalciteListItemGroup = /*@__PURE__*/proxyCustomElement(ListItemGroup, [1,"calcite-list-item-group",{"heading":[513],"headingLevel":[2,"heading-level"]}]);
|
|
26957
27250
|
const CalciteLoader = /*@__PURE__*/proxyCustomElement(Loader, [1,"calcite-loader",{"active":[516],"inline":[516],"label":[1],"scale":[513],"type":[513],"value":[2],"text":[1],"noPadding":[4,"no-padding"]}]);
|
|
26958
|
-
const CalciteModal = /*@__PURE__*/proxyCustomElement(Modal, [1,"calcite-modal",{"active":[1540],"beforeClose":[16],"disableCloseButton":[4,"disable-close-button"],"disableOutsideClose":[4,"disable-outside-close"],"intlClose":[1,"intl-close"],"docked":[516],"disableEscape":[4,"disable-escape"],"scale":[513],"width":[520],"fullscreen":[516],"color":[513],"backgroundColor":[513,"background-color"],"noPadding":[4,"no-padding"],"hasFooter":[32]},[[8,"keyup","handleEscape"]]]);
|
|
27251
|
+
const CalciteModal = /*@__PURE__*/proxyCustomElement(Modal, [1,"calcite-modal",{"active":[1540],"open":[1540],"beforeClose":[16],"disableCloseButton":[4,"disable-close-button"],"disableOutsideClose":[4,"disable-outside-close"],"intlClose":[1,"intl-close"],"docked":[516],"disableEscape":[4,"disable-escape"],"scale":[513],"width":[520],"fullscreen":[516],"color":[513],"backgroundColor":[513,"background-color"],"noPadding":[4,"no-padding"],"hasFooter":[32]},[[8,"keyup","handleEscape"]]]);
|
|
26959
27252
|
const CalciteNotice = /*@__PURE__*/proxyCustomElement(Notice, [1,"calcite-notice",{"active":[1540],"color":[513],"dismissible":[516],"icon":[520],"intlClose":[1,"intl-close"],"scale":[513],"width":[513]}]);
|
|
26960
27253
|
const CalciteOption = /*@__PURE__*/proxyCustomElement(Option, [1,"calcite-option",{"disabled":[516],"label":[1025],"selected":[516],"value":[1032]}]);
|
|
26961
27254
|
const CalciteOptionGroup = /*@__PURE__*/proxyCustomElement(OptionGroup, [1,"calcite-option-group",{"disabled":[516],"label":[1]}]);
|
|
26962
27255
|
const CalcitePagination = /*@__PURE__*/proxyCustomElement(Pagination, [1,"calcite-pagination",{"num":[2],"start":[1026],"total":[2],"textLabelNext":[1,"text-label-next"],"textLabelPrevious":[1,"text-label-previous"],"scale":[513],"globalAttributes":[32]}]);
|
|
26963
|
-
const CalcitePanel = /*@__PURE__*/proxyCustomElement(Panel, [1,"calcite-panel",{"dismissed":[1540],"beforeBack":[16],"disabled":[516],"dismissible":[516],"headingLevel":[2,"heading-level"],"showBackButton":[516,"show-back-button"],"intlBack":[1,"intl-back"],"heightScale":[513,"height-scale"],"widthScale":[513,"width-scale"],"loading":[516],"intlClose":[1,"intl-close"],"intlOptions":[1,"intl-options"],"heading":[1],"summary":[1],"menuOpen":[516,"menu-open"]}]);
|
|
27256
|
+
const CalcitePanel = /*@__PURE__*/proxyCustomElement(Panel, [1,"calcite-panel",{"dismissed":[1540],"beforeBack":[16],"disabled":[516],"dismissible":[516],"headingLevel":[2,"heading-level"],"showBackButton":[516,"show-back-button"],"intlBack":[1,"intl-back"],"heightScale":[513,"height-scale"],"widthScale":[513,"width-scale"],"loading":[516],"intlClose":[1,"intl-close"],"intlOptions":[1,"intl-options"],"heading":[1],"summary":[1],"description":[1],"menuOpen":[516,"menu-open"]}]);
|
|
26964
27257
|
const CalcitePickList = /*@__PURE__*/proxyCustomElement(PickList, [1,"calcite-pick-list",{"disabled":[516],"filterEnabled":[516,"filter-enabled"],"filterPlaceholder":[513,"filter-placeholder"],"headingLevel":[2,"heading-level"],"loading":[516],"multiple":[516],"selectionFollowsFocus":[4,"selection-follows-focus"],"selectedValues":[32],"dataForFilter":[32]},[[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteInternalListItemPropsChange","calciteInternalListItemPropsChangeHandler"],[0,"calciteInternalListItemValueChange","calciteInternalListItemValueChangeHandler"],[0,"focusout","calciteListFocusOutHandler"]]]);
|
|
26965
27258
|
const CalcitePickListGroup = /*@__PURE__*/proxyCustomElement(PickListGroup, [1,"calcite-pick-list-group",{"groupTitle":[513,"group-title"],"headingLevel":[2,"heading-level"]}]);
|
|
26966
27259
|
const CalcitePickListItem = /*@__PURE__*/proxyCustomElement(PickListItem, [1,"calcite-pick-list-item",{"description":[513],"disabled":[516],"disableDeselect":[4,"disable-deselect"],"nonInteractive":[516,"non-interactive"],"icon":[513],"label":[513],"metadata":[16],"removable":[516],"selected":[1540],"intlRemove":[513,"intl-remove"],"value":[8]}]);
|
|
@@ -26980,8 +27273,8 @@ const CalciteShellPanel = /*@__PURE__*/proxyCustomElement(ShellPanel, [1,"calcit
|
|
|
26980
27273
|
const CalciteSlider = /*@__PURE__*/proxyCustomElement(Slider, [1,"calcite-slider",{"disabled":[516],"hasHistogram":[1540,"has-histogram"],"histogram":[16],"histogramStops":[16],"labelHandles":[516,"label-handles"],"labelTicks":[516,"label-ticks"],"max":[514],"maxLabel":[1,"max-label"],"maxValue":[1026,"max-value"],"min":[514],"minLabel":[1,"min-label"],"minValue":[1026,"min-value"],"mirrored":[516],"name":[513],"pageStep":[2,"page-step"],"precise":[4],"required":[516],"snap":[4],"step":[2],"ticks":[2],"value":[1538],"scale":[1],"activeProp":[32],"minMaxValueRange":[32],"minValueDragRange":[32],"maxValueDragRange":[32],"tickValues":[32]},[[0,"keydown","keyDownHandler"],[0,"click","clickHandler"],[1,"pointerdown","pointerDownHandler"]]]);
|
|
26981
27274
|
const CalciteSortableList = /*@__PURE__*/proxyCustomElement(SortableList, [1,"calcite-sortable-list",{"dragSelector":[1,"drag-selector"],"group":[1],"handleSelector":[1,"handle-selector"],"layout":[1],"disabled":[516],"loading":[516],"handleActivated":[32]},[[0,"calciteHandleNudge","calciteHandleNudgeHandler"]]]);
|
|
26982
27275
|
const CalciteSplitButton = /*@__PURE__*/proxyCustomElement(SplitButton, [1,"calcite-split-button",{"appearance":[513],"color":[513],"disabled":[516],"active":[1540],"dropdownIconType":[513,"dropdown-icon-type"],"dropdownLabel":[513,"dropdown-label"],"loading":[516],"overlayPositioning":[1,"overlay-positioning"],"primaryIconEnd":[513,"primary-icon-end"],"primaryIconFlipRtl":[513,"primary-icon-flip-rtl"],"primaryIconStart":[513,"primary-icon-start"],"primaryLabel":[513,"primary-label"],"primaryText":[513,"primary-text"],"scale":[513],"width":[513]}]);
|
|
26983
|
-
const CalciteStepper = /*@__PURE__*/proxyCustomElement(Stepper, [1,"calcite-stepper",{"icon":[516],"layout":[513],"numbered":[516],"scale":[513],"requestedContent":[1040]},[[0,"calciteInternalStepperItemKeyEvent","calciteInternalStepperItemKeyEvent"],[0,"calciteInternalStepperItemRegister","registerItem"],[0,"calciteInternalStepperItemSelect","updateItem"]]]);
|
|
26984
|
-
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]},[[16,"calciteInternalStepperItemChange","updateActiveItemOnChange"]]]);
|
|
27276
|
+
const CalciteStepper = /*@__PURE__*/proxyCustomElement(Stepper, [1,"calcite-stepper",{"icon":[516],"layout":[513],"numbered":[516],"scale":[513],"requestedContent":[1040]},[[0,"calciteInternalStepperItemKeyEvent","calciteInternalStepperItemKeyEvent"],[0,"calciteInternalStepperItemRegister","registerItem"],[0,"calciteInternalStepperItemSelect","updateItem"],[0,"calciteInternalUserRequestedStepperItemSelect","handleUserRequestedStepperItemSelect"]]]);
|
|
27277
|
+
const CalciteStepperItem = /*@__PURE__*/proxyCustomElement(StepperItem, [1,"calcite-stepper-item",{"active":[1540],"complete":[516],"error":[4],"disabled":[516],"itemTitle":[1,"item-title"],"heading":[1],"itemSubtitle":[1,"item-subtitle"],"description":[1],"layout":[1537],"icon":[1028],"numbered":[1028],"scale":[1537]},[[16,"calciteInternalStepperItemChange","updateActiveItemOnChange"]]]);
|
|
26985
27278
|
const CalciteSwitch = /*@__PURE__*/proxyCustomElement(Switch, [1,"calcite-switch",{"disabled":[516],"label":[1],"name":[513],"scale":[513],"switched":[1028],"checked":[1540],"value":[8]}]);
|
|
26986
27279
|
const CalciteTab = /*@__PURE__*/proxyCustomElement(Tab, [1,"calcite-tab",{"tab":[513],"active":[1540],"scale":[1537],"labeledBy":[32]},[[16,"calciteInternalTabChange","internalTabChangeHandler"]]]);
|
|
26987
27280
|
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,"calciteInternalTabsFocusPrevious","focusPreviousTabHandler"],[0,"calciteInternalTabsFocusNext","focusNextTabHandler"],[0,"calciteInternalTabsActivate","internalActivateTabHandler"],[0,"calciteTabsActivate","activateTabHandler"],[0,"calciteInternalTabTitleRegister","updateTabTitles"],[16,"calciteInternalTabChange","globalInternalTabChangeHandler"]]]);
|