@esri/calcite-components 1.0.0-next.465 → 1.0.0-next.468
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/ru.json +4 -4
- 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-03870589.js +6 -0
- package/dist/calcite/{p-8758fd74.entry.js → p-076c9c2c.entry.js} +2 -2
- package/dist/calcite/{p-0a88616f.system.entry.js → p-07c3a925.system.entry.js} +2 -2
- package/dist/calcite/p-099dd5c7.system.js +6 -0
- package/dist/calcite/{p-22af487d.system.entry.js → p-09ce4dbb.system.entry.js} +2 -2
- package/dist/calcite/p-0a27411a.system.entry.js +6 -0
- package/dist/calcite/{p-7eb90aba.entry.js → p-0b8265c4.entry.js} +2 -2
- package/dist/calcite/{p-095b7411.system.entry.js → p-0c76f714.system.entry.js} +2 -2
- package/dist/calcite/{p-c5e02739.js → p-0c89f05f.js} +1 -1
- package/dist/calcite/{p-e94eaab8.system.entry.js → p-0db96d2b.system.entry.js} +2 -2
- package/dist/calcite/{p-3bc32fb0.system.entry.js → p-100640cd.system.entry.js} +2 -2
- package/dist/calcite/{p-67b63c0b.js → p-102b243d.js} +2 -2
- package/dist/calcite/{p-1f041991.system.entry.js → p-10b46362.system.entry.js} +2 -2
- package/dist/calcite/{p-a1b59b76.entry.js → p-1479549c.entry.js} +2 -2
- package/dist/calcite/{p-24f812a1.entry.js → p-1509b092.entry.js} +2 -2
- package/dist/calcite/{p-7618c855.js → p-1b64d694.js} +1 -1
- package/dist/calcite/p-1f57aa54.entry.js +6 -0
- package/dist/calcite/{p-10971739.js → p-1f78e980.js} +2 -2
- package/dist/calcite/p-2121978a.entry.js +6 -0
- package/dist/calcite/{p-80e073e7.system.js → p-23c1fc3b.system.js} +1 -1
- package/dist/calcite/{p-55bb569b.entry.js → p-24782286.entry.js} +2 -2
- package/dist/calcite/{p-a3e2fe17.system.entry.js → p-271d1740.system.entry.js} +2 -2
- package/dist/calcite/{p-5885f823.system.entry.js → p-28435e61.system.entry.js} +2 -2
- package/dist/calcite/{p-34e746d1.system.entry.js → p-2b385a1f.system.entry.js} +2 -2
- package/dist/calcite/{p-69d99b7d.system.js → p-2b49459e.system.js} +1 -1
- package/dist/calcite/{p-c26c3b31.system.entry.js → p-2bf778a8.system.entry.js} +2 -2
- package/dist/calcite/{p-bbe6c550.js → p-2d0058c9.js} +1 -1
- package/dist/calcite/{p-6ff05b6e.system.js → p-2db37adf.system.js} +1 -1
- package/dist/calcite/{p-dd08a3be.entry.js → p-2e19eb1f.entry.js} +2 -2
- package/dist/calcite/{p-773f0fa9.js → p-2f6b6ee7.js} +2 -2
- package/dist/calcite/p-32011be0.entry.js +6 -0
- package/dist/calcite/{p-38f1e8cd.system.entry.js → p-32a14a91.system.entry.js} +2 -2
- package/dist/calcite/{p-c5099a83.entry.js → p-34b93b9a.entry.js} +2 -2
- package/dist/calcite/{p-9d573fcd.js → p-356ae0f0.js} +1 -1
- package/dist/calcite/p-36808749.system.entry.js +6 -0
- package/dist/calcite/p-369ec28a.entry.js +6 -0
- package/dist/calcite/{p-f38e6bb7.system.entry.js → p-37fda91a.system.entry.js} +2 -2
- package/dist/calcite/{p-f52e9e28.entry.js → p-381e9a7d.entry.js} +2 -2
- package/dist/calcite/{p-9906949a.system.entry.js → p-3c7f86d9.system.entry.js} +2 -2
- package/dist/calcite/{p-418362cb.entry.js → p-4264d2b9.entry.js} +2 -2
- package/dist/calcite/{p-7dd02d66.system.entry.js → p-452226a6.system.entry.js} +2 -2
- package/dist/calcite/{p-3b5e1f41.entry.js → p-4539bc42.entry.js} +2 -2
- package/dist/calcite/p-478d2ee4.entry.js +6 -0
- package/dist/calcite/{p-7ed43611.system.entry.js → p-47c4e1a8.system.entry.js} +3 -3
- package/dist/calcite/{p-641b140f.system.entry.js → p-48b48390.system.entry.js} +2 -2
- package/dist/calcite/p-4bb53417.entry.js +6 -0
- package/dist/calcite/{p-9471970d.system.js → p-4d2a4ae1.system.js} +2 -2
- package/dist/calcite/{p-c2401107.js → p-4f952ec3.js} +1 -1
- package/dist/calcite/p-4f9c75db.system.js +6 -0
- package/dist/calcite/{p-f9acdc7d.system.js → p-5588fec1.system.js} +2 -2
- package/dist/calcite/{p-f558e82a.entry.js → p-56adda75.entry.js} +2 -2
- package/dist/calcite/p-5882783f.entry.js +6 -0
- package/dist/calcite/{p-611ada47.js → p-5ac779f8.js} +1 -1
- package/dist/calcite/{p-d56fe7f5.js → p-5dd4629c.js} +1 -1
- package/dist/calcite/{p-8c3d26c9.system.entry.js → p-5e586c2d.system.entry.js} +2 -2
- package/dist/calcite/{p-2cd279fc.system.js → p-5ed85c57.system.js} +1 -1
- package/dist/calcite/{p-97358c18.entry.js → p-61293c60.entry.js} +2 -2
- package/dist/calcite/{p-ab6e6691.system.entry.js → p-6223f943.system.entry.js} +3 -3
- package/dist/calcite/{p-9acb780f.js → p-642f58ba.js} +1 -1
- package/dist/calcite/{p-687af5cc.system.js → p-64d06f97.system.js} +1 -1
- package/dist/calcite/{p-84fdbfca.system.entry.js → p-66dbd347.system.entry.js} +2 -2
- package/dist/calcite/{p-013a9bb6.system.js → p-671695ca.system.js} +2 -2
- package/dist/calcite/{p-bad030fb.js → p-67a3fb38.js} +1 -1
- package/dist/calcite/{p-bb76a912.system.js → p-6e0b2fd9.system.js} +1 -1
- package/dist/calcite/p-6e6679bf.system.entry.js +6 -0
- package/dist/calcite/{p-1b65e7bb.system.entry.js → p-6ea7f273.system.entry.js} +2 -2
- package/dist/calcite/p-6f24480f.system.entry.js +6 -0
- package/dist/calcite/{p-75163b6d.entry.js → p-6f263d2e.entry.js} +2 -2
- package/dist/calcite/{p-d3f49cfd.entry.js → p-6f75c19f.entry.js} +2 -2
- package/dist/calcite/p-718c81ee.system.entry.js +6 -0
- package/dist/calcite/{p-d82b09df.system.entry.js → p-718f0fbd.system.entry.js} +2 -2
- package/dist/calcite/{p-81fae2c0.system.entry.js → p-72842fca.system.entry.js} +2 -2
- package/dist/calcite/{p-0d6e1594.system.js → p-76d71253.system.js} +1 -1
- package/dist/calcite/p-789558b9.entry.js +6 -0
- package/dist/calcite/{p-62203382.js → p-79d7bcf2.js} +2 -2
- package/dist/calcite/{p-8007bf8f.entry.js → p-7a8b542f.entry.js} +2 -2
- package/dist/calcite/{p-cb08938f.entry.js → p-7b4314dc.entry.js} +2 -2
- package/dist/calcite/{p-7950afa7.entry.js → p-7d8d51b3.entry.js} +2 -2
- package/dist/calcite/p-7eb95628.system.js +6 -0
- package/dist/calcite/{p-a7c194ba.system.js → p-7fe88621.system.js} +1 -1
- package/dist/calcite/{p-f6bb938b.entry.js → p-80c5db63.entry.js} +2 -2
- package/dist/calcite/p-80da274f.system.entry.js +6 -0
- package/dist/calcite/{p-b29782c1.entry.js → p-81a63889.entry.js} +2 -2
- package/dist/calcite/{p-6e5b906c.js → p-826482d7.js} +2 -2
- package/dist/calcite/p-829c392c.system.entry.js +6 -0
- package/dist/calcite/p-86d875ad.entry.js +6 -0
- package/dist/calcite/{p-2edf9b74.system.entry.js → p-896c966d.system.entry.js} +2 -2
- package/dist/calcite/p-8a3c111a.entry.js +6 -0
- package/dist/calcite/p-8de1cd6f.entry.js +6 -0
- package/dist/calcite/p-8ecaf1fb.entry.js +6 -0
- package/dist/calcite/{p-756677a6.entry.js → p-90c45893.entry.js} +2 -2
- package/dist/calcite/{p-e5b107e0.system.entry.js → p-918c3056.system.entry.js} +2 -2
- package/dist/calcite/{p-c60c4413.system.entry.js → p-91f007e9.system.entry.js} +3 -3
- package/dist/calcite/{p-10a6b365.system.entry.js → p-93a2e728.system.entry.js} +2 -2
- package/dist/calcite/{p-adf713a1.system.entry.js → p-9790a6ed.system.entry.js} +2 -2
- package/dist/calcite/{p-39446ad6.entry.js → p-97eaca72.entry.js} +2 -2
- package/dist/calcite/{p-9f8403f2.js → p-980fa1a3.js} +2 -2
- package/dist/calcite/{p-180c13cf.system.entry.js → p-9c15cf9b.system.entry.js} +2 -2
- package/dist/calcite/p-9c585873.system.entry.js +6 -0
- package/dist/calcite/{p-66ff4d5f.system.js → p-9cf73ace.system.js} +2 -2
- package/dist/calcite/{p-08643936.entry.js → p-9d01aa88.entry.js} +2 -2
- package/dist/calcite/p-9dbe912b.system.entry.js +6 -0
- package/dist/calcite/{p-58b008ac.entry.js → p-9e2b419c.entry.js} +2 -2
- package/dist/calcite/{p-273f2078.entry.js → p-a0bda50f.entry.js} +2 -2
- package/dist/calcite/p-a1e1f584.system.entry.js +6 -0
- package/dist/calcite/{p-57d2f345.system.entry.js → p-a1f9ed7a.system.entry.js} +2 -2
- package/dist/calcite/{p-d39937bb.entry.js → p-a556a3bb.entry.js} +2 -2
- package/dist/calcite/p-a69001f0.system.entry.js +6 -0
- package/dist/calcite/p-a95601db.entry.js +6 -0
- package/dist/calcite/{p-136bc12b.system.entry.js → p-a97d6205.system.entry.js} +2 -2
- package/dist/calcite/{p-dd7add1c.js → p-ac01200f.js} +1 -1
- package/dist/calcite/{p-e987af61.system.entry.js → p-acbcc93d.system.entry.js} +2 -2
- package/dist/calcite/{p-bfca7ecd.entry.js → p-af2c1f7b.entry.js} +2 -2
- package/dist/calcite/{p-7ed1cbf7.js → p-b3298659.js} +2 -2
- package/dist/calcite/{p-026092af.entry.js → p-b5438769.entry.js} +2 -2
- package/dist/calcite/{p-e7116907.system.entry.js → p-b6e9465d.system.entry.js} +2 -2
- package/dist/calcite/{p-2c5cb121.system.js → p-b7c6c7b2.system.js} +1 -1
- package/dist/calcite/{p-b144eaab.system.entry.js → p-b9b7f37d.system.entry.js} +3 -3
- package/dist/calcite/p-b9c89b12.system.entry.js +6 -0
- package/dist/calcite/{p-78aac253.js → p-b9d53692.js} +1 -1
- package/dist/calcite/{p-e7f8d163.js → p-bfd24607.js} +2 -2
- package/dist/calcite/{p-fdcbf514.entry.js → p-c223a445.entry.js} +2 -2
- package/dist/calcite/{p-358bd5f7.entry.js → p-c27e0b7e.entry.js} +2 -2
- package/dist/calcite/{p-af661b67.entry.js → p-c69933c0.entry.js} +2 -2
- package/dist/calcite/{p-1a38dc47.system.entry.js → p-c6d02c31.system.entry.js} +2 -2
- package/dist/calcite/{p-5c966a54.entry.js → p-c886ee3c.entry.js} +2 -2
- package/dist/calcite/{p-23ed4d17.system.js → p-cad27227.system.js} +1 -1
- package/dist/calcite/{p-b59dda50.system.entry.js → p-cb0ed952.system.entry.js} +2 -2
- package/dist/calcite/{p-b183b9f0.system.entry.js → p-cb18b9c4.system.entry.js} +2 -2
- package/dist/calcite/{p-4acd2fc1.system.js → p-ce87fe85.system.js} +1 -1
- package/dist/calcite/{p-7106d888.entry.js → p-cf0506f8.entry.js} +2 -2
- package/dist/calcite/{p-9d984bea.entry.js → p-cf2dd402.entry.js} +2 -2
- package/dist/calcite/{p-41ab4215.js → p-d121dd69.js} +1 -1
- package/dist/calcite/p-d1dcd357.js +6 -0
- package/dist/calcite/p-d45e21e1.entry.js +6 -0
- package/dist/calcite/{p-a5c94739.js → p-d5bb1f97.js} +2 -2
- package/dist/calcite/p-d6e7415e.entry.js +6 -0
- package/dist/calcite/{p-e14da808.system.entry.js → p-d7933406.system.entry.js} +3 -3
- package/dist/calcite/{p-ea419893.system.js → p-d8b9b21d.system.js} +1 -1
- package/dist/calcite/{p-3068cce5.entry.js → p-dae3b393.entry.js} +2 -2
- package/dist/calcite/{p-36693016.system.js → p-dbb14aaf.system.js} +3 -3
- package/dist/calcite/p-dfb9a870.entry.js +6 -0
- package/dist/calcite/{p-83fb7247.system.entry.js → p-dfc87de6.system.entry.js} +2 -2
- package/dist/calcite/{p-1bd369b4.system.js → p-e3f0067a.system.js} +1 -1
- package/dist/calcite/{p-154ca80f.system.entry.js → p-e4844c9d.system.entry.js} +2 -2
- package/dist/calcite/{p-34c7942b.system.entry.js → p-e6aa9e3d.system.entry.js} +2 -2
- package/dist/calcite/{p-48cae39f.system.entry.js → p-e8234b1d.system.entry.js} +2 -2
- package/dist/calcite/{p-696347a5.entry.js → p-ec34d0c2.entry.js} +2 -2
- package/dist/calcite/{p-7ab69126.entry.js → p-ecb171f2.entry.js} +2 -2
- package/dist/calcite/{p-8d22cf0f.entry.js → p-edc13b97.entry.js} +2 -2
- package/dist/calcite/{p-9d7bdb96.js → p-f1e06d56.js} +1 -1
- package/dist/calcite/p-f39b4934.entry.js +6 -0
- package/dist/calcite/{p-c5367b82.entry.js → p-f3a12f7d.entry.js} +2 -2
- package/dist/calcite/p-f4322b19.system.entry.js +6 -0
- package/dist/calcite/{p-27793c41.system.js → p-f47c57dd.system.js} +1 -1
- package/dist/calcite/{p-739af289.entry.js → p-f5c27b2c.entry.js} +2 -2
- package/dist/calcite/{p-c6afec54.system.js → p-f64afb0b.system.js} +2 -2
- package/dist/calcite/{p-2d751b58.system.entry.js → p-f6ed40ab.system.entry.js} +2 -2
- package/dist/calcite/{p-b9fd4e39.system.js → p-f8aec10d.system.js} +2 -2
- package/dist/calcite/{p-62226b55.entry.js → p-f8d6593f.entry.js} +2 -2
- package/dist/calcite/{p-618e0238.system.entry.js → p-fa7441b2.system.entry.js} +2 -2
- package/dist/calcite/{p-264730d4.system.js → p-fbc940f5.system.js} +2 -2
- package/dist/calcite/{p-c3d0edb7.system.js → p-fda19f01.system.js} +2 -2
- package/dist/calcite/{p-baffdab8.system.entry.js → p-fe233cb4.system.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-073a9938.js → ExpandToggle-519d8c04.js} +5 -5
- package/dist/cjs/{Heading-a01d7704.js → Heading-de153f82.js} +2 -2
- package/dist/cjs/{array-19031542.js → array-8afd2ce5.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +22 -16
- package/dist/cjs/calcite-action-bar.cjs.entry.js +16 -11
- package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -10
- package/dist/cjs/calcite-action.cjs.entry.js +9 -7
- package/dist/cjs/calcite-alert.cjs.entry.js +16 -13
- package/dist/cjs/calcite-avatar.cjs.entry.js +10 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +18 -10
- package/dist/cjs/calcite-button.cjs.entry.js +12 -10
- package/dist/cjs/calcite-card.cjs.entry.js +15 -9
- package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -8
- package/dist/cjs/calcite-chip.cjs.entry.js +9 -7
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +69 -28
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +19 -14
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +81 -21
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +26 -20
- package/dist/cjs/calcite-fab.cjs.entry.js +6 -5
- package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +55 -10
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
- package/dist/cjs/calcite-icon.cjs.entry.js +9 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +18 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +35 -20
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +64 -31
- package/dist/cjs/calcite-input.cjs.entry.js +24 -18
- package/dist/cjs/calcite-label.cjs.entry.js +6 -5
- package/dist/cjs/calcite-link.cjs.entry.js +7 -6
- package/dist/cjs/calcite-list_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-loader.cjs.entry.js +11 -9
- package/dist/cjs/calcite-modal.cjs.entry.js +16 -7
- package/dist/cjs/calcite-notice.cjs.entry.js +10 -8
- package/dist/cjs/calcite-option_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-pagination.cjs.entry.js +8 -4
- package/dist/cjs/calcite-panel.cjs.entry.js +18 -11
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +31 -22
- package/dist/cjs/calcite-popover_2.cjs.entry.js +41 -12
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -8
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -9
- package/dist/cjs/calcite-scrim.cjs.entry.js +5 -3
- package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -7
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +8 -5
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +25 -17
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -8
- package/dist/cjs/calcite-tab_4.cjs.entry.js +49 -25
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +8 -5
- package/dist/cjs/calcite-tree_2.cjs.entry.js +26 -15
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +25 -17
- package/dist/cjs/calcite.cjs.js +3 -3
- package/dist/cjs/{conditionalSlot-9318f4d5.js → conditionalSlot-2b7b0c9a.js} +7 -3
- package/dist/cjs/{debounce-01e67947.js → debounce-020f9f3a.js} +1 -1
- package/dist/cjs/{dom-b1c46fde.js → dom-cf0fae95.js} +10 -2
- package/dist/cjs/{forIn-d86e5943.js → forIn-084e5a21.js} +2 -2
- package/dist/cjs/{form-b40e8c51.js → form-4a76a449.js} +19 -3
- package/dist/cjs/{guid-9341ece5.js → guid-e3e2f3c9.js} +1 -1
- package/dist/cjs/{index-83432d46.js → index-7a67b910.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-c6a6fae3.js → interactive-0190c630.js} +7 -4
- package/dist/cjs/{interfaces-06edeb9f.js → interfaces-6c1f00fa.js} +1 -1
- package/dist/cjs/{label-a0f9b578.js → label-97b3b425.js} +9 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{locale-04f22f4a.js → locale-5c38bb9a.js} +2 -2
- package/dist/cjs/{math-4087a063.js → math-8a8bed36.js} +1 -1
- package/dist/cjs/{number-14cbb8cb.js → number-225a74ee.js} +1 -1
- package/dist/cjs/{observers-5677956e.js → observers-39a8d31f.js} +1 -1
- package/dist/cjs/{popper-161f39a2.js → popper-545c980c.js} +2 -2
- package/dist/cjs/{resources-bc9cdcac.js → resources-575d75a6.js} +8 -8
- package/dist/cjs/{resources-57e496b6.js → resources-ac0e7e9c.js} +1 -1
- package/dist/cjs/{resources-a253a5a9.js → resources-c85a6701.js} +44 -3
- package/dist/cjs/{resources-062d326d.js → resources-cc86f452.js} +1 -1
- package/dist/cjs/{sortable.esm-6d7abbbc.js → sortable.esm-64873d3c.js} +1 -1
- package/dist/cjs/{utils-a51bb08e.js → utils-15472b29.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +16 -11
- package/dist/collection/components/accordion/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +14 -13
- package/dist/collection/components/action/action.js +4 -2
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +15 -4
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +2 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +14 -4
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +18 -14
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +6 -1
- package/dist/collection/components/block/block.js +19 -5
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/interfaces.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +5 -3
- package/dist/collection/components/button/interfaces.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +12 -5
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +3 -2
- package/dist/collection/components/chip/chip.js +4 -2
- package/dist/collection/components/chip/interfaces.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +58 -19
- 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 +5 -3
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +7 -4
- package/dist/collection/components/combobox/interfaces.js +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +11 -3
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/ru.json +4 -4
- package/dist/collection/components/date-picker/date-picker.js +30 -5
- 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 +7 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +4 -4
- package/dist/collection/components/date-picker-month/date-picker-month.js +37 -9
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +8 -1
- package/dist/collection/components/dropdown/dropdown.js +14 -11
- package/dist/collection/components/dropdown/interfaces.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +9 -7
- package/dist/collection/components/dropdown-group/interfaces.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +12 -11
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +2 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/interfaces.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.css +1 -0
- 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 +29 -1
- package/dist/collection/components/handle/handle.js +3 -3
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +5 -1
- package/dist/collection/components/inline-editable/inline-editable.js +14 -8
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +18 -12
- 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 +27 -12
- 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-time-picker/input-time-picker.js +13 -7
- package/dist/collection/components/interfaces.js +1 -1
- package/dist/collection/components/label/label.js +2 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +3 -2
- package/dist/collection/components/list/list.js +6 -5
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +8 -8
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +4 -4
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.css +3 -3
- package/dist/collection/components/loader/loader.js +18 -16
- package/dist/collection/components/modal/interfaces.js +1 -1
- package/dist/collection/components/modal/modal.js +41 -8
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +6 -3
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +5 -5
- package/dist/collection/components/option-group/option-group.js +4 -4
- package/dist/collection/components/pagination/pagination.js +7 -3
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +27 -8
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +23 -12
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +3 -3
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +23 -13
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +14 -3
- package/dist/collection/components/popover/popover.js +55 -8
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +2 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +3 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-group/interfaces.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +3 -3
- package/dist/collection/components/radio-group-item/radio-group-item.js +4 -4
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +7 -3
- 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 +4 -2
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +3 -3
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +2 -1
- package/dist/collection/components/slider/slider.js +18 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +6 -3
- package/dist/collection/components/stepper/interfaces.js +1 -1
- package/dist/collection/components/stepper/stepper.js +27 -14
- package/dist/collection/components/stepper-item/stepper-item.js +12 -11
- package/dist/collection/components/switch/switch.js +4 -2
- package/dist/collection/components/tab/interfaces.js +1 -1
- package/dist/collection/components/tab/tab.js +25 -8
- package/dist/collection/components/tab-nav/tab-nav.js +23 -12
- package/dist/collection/components/tab-title/tab-title.js +36 -20
- package/dist/collection/components/tabs/interfaces.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +11 -7
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +2 -1
- package/dist/collection/components/tile-select/interfaces.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/interfaces.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +61 -26
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +3 -1
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +2 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +10 -5
- package/dist/collection/components/tree-item/interfaces.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +23 -17
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/value-list.js +23 -12
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +16 -7
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +5 -1
- package/dist/collection/utils/date.js +36 -1
- package/dist/collection/utils/dom.js +9 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/form.js +17 -1
- package/dist/collection/utils/globalAttributes.js +6 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +7 -4
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +8 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/popper.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +2 -1
- package/dist/components/action.js +4 -2
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +5 -3
- package/dist/components/calcite-accordion-item.js +10 -9
- package/dist/components/calcite-accordion.js +12 -7
- package/dist/components/calcite-action-bar.js +7 -2
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +6 -2
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +13 -10
- package/dist/components/calcite-avatar.js +6 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +11 -3
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +10 -4
- 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 +58 -19
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +3 -1
- package/dist/components/calcite-combobox.js +6 -3
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +8 -6
- package/dist/components/calcite-dropdown-item.js +9 -8
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +2 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +13 -7
- package/dist/components/calcite-input-date-picker.js +25 -10
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-time-picker.js +9 -5
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- 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 +2 -2
- package/dist/components/calcite-list.js +2 -2
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +11 -2
- package/dist/components/calcite-notice.js +4 -2
- package/dist/components/calcite-option-group.js +3 -3
- package/dist/components/calcite-option.js +4 -4
- package/dist/components/calcite-pagination.js +7 -3
- package/dist/components/calcite-panel.js +10 -3
- 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 +12 -7
- package/dist/components/calcite-popover-manager.js +2 -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 +3 -1
- package/dist/components/calcite-radio-group-item.js +3 -3
- package/dist/components/calcite-radio-group.js +3 -3
- package/dist/components/calcite-rating.js +7 -3
- 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 +2 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +18 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +6 -3
- package/dist/components/calcite-stepper-item.js +9 -8
- package/dist/components/calcite-stepper.js +15 -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 +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager.js +2 -1
- package/dist/components/calcite-tooltip.js +3 -1
- package/dist/components/calcite-tree-item.js +14 -8
- package/dist/components/calcite-tree.js +9 -4
- package/dist/components/calcite-value-list-item.js +6 -3
- package/dist/components/calcite-value-list.js +12 -7
- package/dist/components/checkbox.js +3 -2
- package/dist/components/chip.js +4 -2
- package/dist/components/color-picker-hex-input.js +5 -3
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +5 -1
- package/dist/components/date-picker-day.js +3 -3
- package/dist/components/date-picker-month-header.js +8 -1
- package/dist/components/date-picker-month.js +35 -7
- package/dist/components/date-picker.js +36 -5
- package/dist/components/date.js +36 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +9 -1
- package/dist/components/dropdown.js +8 -5
- package/dist/components/filter.js +1 -1
- package/dist/components/forIn.js +1 -1
- package/dist/components/form.js +17 -1
- package/dist/components/graph.js +30 -2
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +2 -2
- package/dist/components/icon.js +5 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +14 -8
- package/dist/components/interactive.js +7 -4
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/label.js +8 -1
- package/dist/components/label2.js +2 -1
- package/dist/components/link.js +3 -2
- package/dist/components/loader.js +9 -7
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/number.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/pick-list-item.js +12 -8
- package/dist/components/popover.js +35 -6
- package/dist/components/popper.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +4 -2
- package/dist/components/shared-list-render.js +4 -4
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +4 -2
- package/dist/components/tab-nav.js +17 -6
- package/dist/components/tab-title.js +15 -11
- package/dist/components/tab.js +9 -4
- package/dist/components/tabs.js +8 -4
- package/dist/components/tile.js +2 -1
- package/dist/components/time-picker.js +50 -21
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.js +719 -240
- package/dist/esm/{ExpandToggle-c7f6d10a.js → ExpandToggle-37cf84b0.js} +5 -5
- package/dist/esm/{Heading-905e0fd2.js → Heading-8c939cf8.js} +2 -2
- package/dist/esm/{array-8cb83acf.js → array-b87220fc.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +22 -16
- package/dist/esm/calcite-action-bar.entry.js +16 -11
- package/dist/esm/calcite-action-group.entry.js +8 -8
- package/dist/esm/calcite-action-menu.entry.js +9 -8
- package/dist/esm/calcite-action-pad.entry.js +14 -10
- package/dist/esm/calcite-action.entry.js +9 -7
- package/dist/esm/calcite-alert.entry.js +16 -13
- package/dist/esm/calcite-avatar.entry.js +10 -5
- package/dist/esm/calcite-block_2.entry.js +18 -10
- package/dist/esm/calcite-button.entry.js +12 -10
- package/dist/esm/calcite-card.entry.js +15 -9
- package/dist/esm/calcite-checkbox.entry.js +9 -8
- package/dist/esm/calcite-chip.entry.js +9 -7
- package/dist/esm/calcite-color-picker_3.entry.js +69 -28
- package/dist/esm/calcite-combobox_3.entry.js +19 -14
- package/dist/esm/calcite-date-picker_4.entry.js +81 -21
- package/dist/esm/calcite-dropdown_3.entry.js +26 -20
- package/dist/esm/calcite-fab.entry.js +6 -5
- package/dist/esm/calcite-filter.entry.js +7 -7
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +55 -10
- package/dist/esm/calcite-handle.entry.js +5 -5
- package/dist/esm/calcite-icon.entry.js +9 -5
- package/dist/esm/calcite-inline-editable.entry.js +18 -12
- package/dist/esm/calcite-input-date-picker.entry.js +35 -20
- package/dist/esm/calcite-input-message.entry.js +4 -4
- package/dist/esm/calcite-input-time-picker_2.entry.js +64 -31
- package/dist/esm/calcite-input.entry.js +24 -18
- package/dist/esm/calcite-label.entry.js +6 -5
- package/dist/esm/calcite-link.entry.js +7 -6
- package/dist/esm/calcite-list_3.entry.js +10 -10
- package/dist/esm/calcite-loader.entry.js +11 -9
- package/dist/esm/calcite-modal.entry.js +16 -7
- package/dist/esm/calcite-notice.entry.js +10 -8
- package/dist/esm/calcite-option_3.entry.js +13 -13
- package/dist/esm/calcite-pagination.entry.js +8 -4
- package/dist/esm/calcite-panel.entry.js +18 -11
- package/dist/esm/calcite-pick-list_3.entry.js +31 -22
- package/dist/esm/calcite-popover_2.entry.js +41 -12
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +10 -8
- package/dist/esm/calcite-radio-group_2.entry.js +10 -10
- package/dist/esm/calcite-rating.entry.js +13 -9
- package/dist/esm/calcite-scrim.entry.js +5 -3
- package/dist/esm/calcite-shell_3.entry.js +8 -7
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +8 -5
- package/dist/esm/calcite-stepper_2.entry.js +25 -17
- package/dist/esm/calcite-switch.entry.js +10 -8
- package/dist/esm/calcite-tab_4.entry.js +49 -25
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +8 -7
- package/dist/esm/calcite-tip_3.entry.js +7 -7
- package/dist/esm/calcite-tooltip_2.entry.js +8 -5
- package/dist/esm/calcite-tree_2.entry.js +26 -15
- package/dist/esm/calcite-value-list_2.entry.js +25 -17
- package/dist/esm/calcite.js +3 -3
- package/dist/esm/{conditionalSlot-5e4d7066.js → conditionalSlot-d5dd9287.js} +7 -3
- package/dist/esm/{debounce-02a8246a.js → debounce-118a7bf3.js} +1 -1
- package/dist/esm/{dom-39745d1e.js → dom-f17bf906.js} +10 -2
- package/dist/esm/{forIn-4f086e25.js → forIn-7ef86518.js} +2 -2
- package/dist/esm/{form-0b706a52.js → form-bd644390.js} +19 -3
- package/dist/esm/{guid-e25185c4.js → guid-0eff0c36.js} +1 -1
- package/dist/esm/{index-21e41d50.js → index-95d4d018.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-0c69d445.js → interactive-42b3a77d.js} +7 -4
- package/dist/esm/{interfaces-63795e7e.js → interfaces-fadf36e0.js} +1 -1
- package/dist/esm/{label-fea1699c.js → label-73c005f6.js} +9 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-91fb3bd7.js → locale-19a742f1.js} +2 -2
- package/dist/esm/{math-aadca2c7.js → math-5be6997d.js} +1 -1
- package/dist/esm/{number-170ff580.js → number-3cab3da6.js} +1 -1
- package/dist/esm/{observers-7d3eceb3.js → observers-2d32784c.js} +1 -1
- package/dist/esm/{popper-bb7c74f6.js → popper-f33d2a32.js} +2 -2
- package/dist/esm/{resources-fcd49233.js → resources-1da3e5aa.js} +44 -3
- package/dist/esm/{resources-f5b43a1c.js → resources-48dd3f7d.js} +1 -1
- package/dist/esm/{resources-69a0658b.js → resources-540f6a49.js} +8 -8
- package/dist/esm/{resources-2f3e9e6e.js → resources-a70eca0d.js} +1 -1
- package/dist/esm/{sortable.esm-89d13b54.js → sortable.esm-5d354dd9.js} +1 -1
- package/dist/esm/{utils-0327f48e.js → utils-b445b7ed.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-c7f6d10a.js → ExpandToggle-37cf84b0.js} +2 -2
- package/dist/esm-es5/{Heading-905e0fd2.js → Heading-8c939cf8.js} +2 -2
- package/dist/esm-es5/{array-8cb83acf.js → array-b87220fc.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 +2 -2
- package/dist/esm-es5/calcite-fab.entry.js +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- package/dist/esm-es5/calcite-icon.entry.js +2 -2
- package/dist/esm-es5/calcite-inline-editable.entry.js +3 -3
- 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 +3 -3
- 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 +2 -2
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-option_3.entry.js +3 -3
- package/dist/esm-es5/calcite-pagination.entry.js +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-progress.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-scrim.entry.js +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
- package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
- package/dist/esm-es5/calcite-split-button.entry.js +2 -2
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +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-5e4d7066.js → conditionalSlot-d5dd9287.js} +2 -2
- package/dist/esm-es5/{debounce-02a8246a.js → debounce-118a7bf3.js} +1 -1
- package/dist/esm-es5/{dom-39745d1e.js → dom-f17bf906.js} +2 -2
- package/dist/esm-es5/{forIn-4f086e25.js → forIn-7ef86518.js} +2 -2
- package/dist/esm-es5/{form-0b706a52.js → form-bd644390.js} +2 -2
- package/dist/esm-es5/{guid-e25185c4.js → guid-0eff0c36.js} +1 -1
- package/dist/esm-es5/{index-21e41d50.js → index-95d4d018.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-0c69d445.js → interactive-42b3a77d.js} +1 -1
- package/dist/esm-es5/{interfaces-63795e7e.js → interfaces-fadf36e0.js} +1 -1
- package/dist/esm-es5/{label-fea1699c.js → label-73c005f6.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-91fb3bd7.js → locale-19a742f1.js} +2 -2
- package/dist/esm-es5/{math-aadca2c7.js → math-5be6997d.js} +1 -1
- package/dist/esm-es5/{number-170ff580.js → number-3cab3da6.js} +1 -1
- package/dist/esm-es5/{observers-7d3eceb3.js → observers-2d32784c.js} +1 -1
- package/dist/esm-es5/{popper-bb7c74f6.js → popper-f33d2a32.js} +2 -2
- package/dist/esm-es5/{resources-fcd49233.js → resources-1da3e5aa.js} +2 -2
- package/dist/esm-es5/{resources-f5b43a1c.js → resources-48dd3f7d.js} +1 -1
- package/dist/esm-es5/resources-540f6a49.js +6 -0
- package/dist/esm-es5/{resources-2f3e9e6e.js → resources-a70eca0d.js} +1 -1
- package/dist/esm-es5/{sortable.esm-89d13b54.js → sortable.esm-5d354dd9.js} +1 -1
- package/dist/esm-es5/{utils-0327f48e.js → utils-b445b7ed.js} +1 -1
- package/dist/extras/docs-json.json +194 -84
- 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 +6 -4
- package/dist/types/components/accordion-item/accordion-item.d.ts +4 -4
- package/dist/types/components/action/action.d.ts +4 -1
- package/dist/types/components/action-bar/action-bar.d.ts +6 -1
- package/dist/types/components/action-menu/action-menu.d.ts +1 -0
- package/dist/types/components/action-pad/action-pad.d.ts +5 -1
- package/dist/types/components/alert/alert.d.ts +11 -6
- package/dist/types/components/avatar/utils.d.ts +5 -0
- package/dist/types/components/block/block.d.ts +10 -2
- package/dist/types/components/button/button.d.ts +4 -2
- package/dist/types/components/card/card.d.ts +11 -4
- package/dist/types/components/checkbox/checkbox.d.ts +3 -1
- package/dist/types/components/chip/chip.d.ts +3 -1
- package/dist/types/components/color-picker/color-picker.d.ts +57 -18
- package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +3 -1
- package/dist/types/components/combobox/combobox.d.ts +9 -3
- package/dist/types/components/combobox-item/combobox-item.d.ts +2 -0
- package/dist/types/components/date-picker/date-picker.d.ts +32 -3
- package/dist/types/components/date-picker/utils.d.ts +5 -0
- package/dist/types/components/date-picker-day/date-picker-day.d.ts +2 -1
- package/dist/types/components/date-picker-month/date-picker-month.d.ts +30 -2
- package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +7 -0
- package/dist/types/components/dropdown/dropdown.d.ts +7 -6
- package/dist/types/components/dropdown-group/dropdown-group.d.ts +5 -3
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +3 -3
- package/dist/types/components/fab/fab.d.ts +1 -0
- package/dist/types/components/graph/util.d.ts +14 -0
- package/dist/types/components/handle/handle.d.ts +1 -1
- package/dist/types/components/icon/utils.d.ts +4 -0
- package/dist/types/components/inline-editable/inline-editable.d.ts +10 -4
- package/dist/types/components/input/input.d.ts +17 -8
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +25 -6
- package/dist/types/components/input-message/input-message.d.ts +7 -3
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +4 -2
- package/dist/types/components/label/label.d.ts +1 -0
- package/dist/types/components/link/link.d.ts +2 -1
- package/dist/types/components/list/list.d.ts +4 -3
- package/dist/types/components/list-item/list-item.d.ts +6 -6
- package/dist/types/components/list-item-group/list-item-group.d.ts +3 -3
- package/dist/types/components/loader/loader.d.ts +11 -9
- package/dist/types/components/modal/modal.d.ts +14 -3
- package/dist/types/components/notice/notice.d.ts +9 -4
- package/dist/types/components/option/option.d.ts +1 -1
- package/dist/types/components/option-group/option-group.d.ts +1 -1
- package/dist/types/components/pagination/pagination.d.ts +8 -2
- package/dist/types/components/panel/panel.d.ts +10 -2
- package/dist/types/components/pick-list/pick-list.d.ts +7 -3
- package/dist/types/components/pick-list/shared-list-logic.d.ts +1 -1
- package/dist/types/components/pick-list-item/pick-list-item.d.ts +9 -3
- package/dist/types/components/popover/PopoverManager.d.ts +2 -0
- package/dist/types/components/popover/popover.d.ts +20 -3
- package/dist/types/components/popover-manager/popover-manager.d.ts +1 -0
- package/dist/types/components/radio-button/radio-button.d.ts +6 -0
- package/dist/types/components/radio-group-item/radio-group-item.d.ts +2 -1
- package/dist/types/components/rating/rating.d.ts +6 -2
- package/dist/types/components/scrim/scrim.d.ts +3 -1
- package/dist/types/components/shell-panel/shell-panel.d.ts +2 -0
- package/dist/types/components/slider/slider.d.ts +19 -0
- package/dist/types/components/split-button/split-button.d.ts +5 -2
- package/dist/types/components/stepper/stepper.d.ts +8 -3
- package/dist/types/components/stepper-item/stepper-item.d.ts +3 -3
- package/dist/types/components/switch/switch.d.ts +3 -1
- package/dist/types/components/tab/tab.d.ts +6 -2
- package/dist/types/components/tab-nav/tab-nav.d.ts +15 -4
- package/dist/types/components/tab-title/tab-title.d.ts +20 -8
- package/dist/types/components/tabs/tabs.d.ts +6 -2
- package/dist/types/components/tile/tile.d.ts +1 -0
- package/dist/types/components/time-picker/time-picker.d.ts +45 -16
- package/dist/types/components/tip-manager/tip-manager.d.ts +1 -0
- package/dist/types/components/tooltip/tooltip.d.ts +2 -0
- package/dist/types/components/tooltip-manager/tooltip-manager.d.ts +1 -0
- package/dist/types/components/tree/tree.d.ts +10 -3
- package/dist/types/components/tree-item/tree-item.d.ts +25 -11
- package/dist/types/components/value-list/value-list.d.ts +7 -3
- package/dist/types/components/value-list-item/value-list-item.d.ts +5 -2
- package/dist/types/components.d.ts +78 -38
- package/dist/types/preact.d.ts +56 -56
- package/dist/types/utils/conditionalSlot.d.ts +4 -0
- package/dist/types/utils/date.d.ts +35 -0
- package/dist/types/utils/dom.d.ts +8 -0
- package/dist/types/utils/form.d.ts +14 -0
- package/dist/types/utils/globalAttributes.d.ts +5 -0
- package/dist/types/utils/interactive.d.ts +7 -4
- package/dist/types/utils/label.d.ts +7 -0
- package/hydrate/index.js +721 -247
- package/package.json +4 -3
- package/dist/calcite/p-1728129d.entry.js +0 -6
- package/dist/calcite/p-23e8aba2.entry.js +0 -6
- package/dist/calcite/p-2e7caf39.entry.js +0 -6
- package/dist/calcite/p-30cc583e.js +0 -6
- package/dist/calcite/p-32f619f3.entry.js +0 -6
- package/dist/calcite/p-34838f6d.entry.js +0 -6
- package/dist/calcite/p-3741c37a.system.entry.js +0 -6
- package/dist/calcite/p-40cc3d56.system.entry.js +0 -6
- package/dist/calcite/p-440feb8c.system.entry.js +0 -6
- package/dist/calcite/p-442cfcfb.system.entry.js +0 -6
- package/dist/calcite/p-4722a96b.system.js +0 -6
- package/dist/calcite/p-4869095a.system.entry.js +0 -6
- package/dist/calcite/p-5b82ce31.system.js +0 -6
- package/dist/calcite/p-5bda28e0.entry.js +0 -6
- package/dist/calcite/p-672fdc47.entry.js +0 -6
- package/dist/calcite/p-6e1549e2.system.entry.js +0 -6
- package/dist/calcite/p-7130689a.entry.js +0 -6
- package/dist/calcite/p-7762e70d.entry.js +0 -6
- package/dist/calcite/p-7a7c20dc.system.entry.js +0 -6
- package/dist/calcite/p-84f5209e.entry.js +0 -6
- package/dist/calcite/p-874ae5d9.system.entry.js +0 -6
- package/dist/calcite/p-93ae7e25.entry.js +0 -6
- package/dist/calcite/p-940fbfca.entry.js +0 -6
- package/dist/calcite/p-9e575a26.entry.js +0 -6
- package/dist/calcite/p-a0ae1982.entry.js +0 -6
- package/dist/calcite/p-bc96267f.system.entry.js +0 -6
- package/dist/calcite/p-c321e625.system.entry.js +0 -6
- package/dist/calcite/p-c5a9e62e.system.entry.js +0 -6
- package/dist/calcite/p-c6df1a3b.system.entry.js +0 -6
- package/dist/calcite/p-d02c004e.system.js +0 -6
- package/dist/calcite/p-d738bd79.js +0 -6
- package/dist/calcite/p-e439fe76.system.entry.js +0 -6
- package/dist/calcite/p-eede725f.entry.js +0 -6
- package/dist/calcite/p-f3bbd6f9.entry.js +0 -6
- package/dist/calcite/p-f750aa5b.entry.js +0 -6
- package/dist/esm-es5/resources-69a0658b.js +0 -6
package/hydrate/index.js
CHANGED
|
@@ -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-next.
|
|
4
|
+
* v1.0.0-next.468
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -5561,7 +5561,7 @@ const accordionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyfra
|
|
|
5561
5561
|
class Accordion {
|
|
5562
5562
|
constructor(hostRef) {
|
|
5563
5563
|
registerInstance(this, hostRef);
|
|
5564
|
-
this.
|
|
5564
|
+
this.calciteInternalAccordionChange = createEvent(this, "calciteInternalAccordionChange", 7);
|
|
5565
5565
|
//--------------------------------------------------------------------------
|
|
5566
5566
|
//
|
|
5567
5567
|
// Public Properties
|
|
@@ -5575,8 +5575,10 @@ class Accordion {
|
|
|
5575
5575
|
this.iconType = "chevron";
|
|
5576
5576
|
/** specify the scale of accordion, defaults to m */
|
|
5577
5577
|
this.scale = "m";
|
|
5578
|
-
/**
|
|
5579
|
-
*
|
|
5578
|
+
/**
|
|
5579
|
+
* specify the selection mode - multi (allow any number of open items), single (allow one open item),
|
|
5580
|
+
* or single-persist (allow and require one open item), defaults to multi
|
|
5581
|
+
*/
|
|
5580
5582
|
this.selectionMode = "multi";
|
|
5581
5583
|
//--------------------------------------------------------------------------
|
|
5582
5584
|
//
|
|
@@ -5612,7 +5614,7 @@ class Accordion {
|
|
|
5612
5614
|
// Event Listeners
|
|
5613
5615
|
//
|
|
5614
5616
|
//--------------------------------------------------------------------------
|
|
5615
|
-
|
|
5617
|
+
calciteInternalAccordionItemKeyEvent(e) {
|
|
5616
5618
|
const item = e.detail.item;
|
|
5617
5619
|
const parent = e.detail.parent;
|
|
5618
5620
|
if (this.el === parent) {
|
|
@@ -5645,6 +5647,7 @@ class Accordion {
|
|
|
5645
5647
|
break;
|
|
5646
5648
|
}
|
|
5647
5649
|
}
|
|
5650
|
+
e.stopPropagation();
|
|
5648
5651
|
}
|
|
5649
5652
|
registerCalciteAccordionItem(e) {
|
|
5650
5653
|
const item = {
|
|
@@ -5655,12 +5658,14 @@ class Accordion {
|
|
|
5655
5658
|
if (this.el === item.parent) {
|
|
5656
5659
|
this.items.push(item);
|
|
5657
5660
|
}
|
|
5661
|
+
e.stopPropagation();
|
|
5658
5662
|
}
|
|
5659
5663
|
updateActiveItemOnChange(event) {
|
|
5660
5664
|
this.requestedAccordionItem = event.detail.requestedAccordionItem;
|
|
5661
|
-
this.
|
|
5665
|
+
this.calciteInternalAccordionChange.emit({
|
|
5662
5666
|
requestedAccordionItem: this.requestedAccordionItem
|
|
5663
5667
|
});
|
|
5668
|
+
event.stopPropagation();
|
|
5664
5669
|
}
|
|
5665
5670
|
//--------------------------------------------------------------------------
|
|
5666
5671
|
//
|
|
@@ -5704,7 +5709,7 @@ class Accordion {
|
|
|
5704
5709
|
"scale": [513],
|
|
5705
5710
|
"selectionMode": [513, "selection-mode"]
|
|
5706
5711
|
},
|
|
5707
|
-
"$listeners$": [[0, "
|
|
5712
|
+
"$listeners$": [[0, "calciteInternalAccordionItemKeyEvent", "calciteInternalAccordionItemKeyEvent"], [0, "calciteInternalAccordionItemRegister", "registerCalciteAccordionItem"], [0, "calciteInternalAccordionItemSelect", "updateActiveItemOnChange"]],
|
|
5708
5713
|
"$lazyBundleId$": "-",
|
|
5709
5714
|
"$attrsToReflect$": [["appearance", "appearance"], ["iconPosition", "icon-position"], ["iconType", "icon-type"], ["scale", "scale"], ["selectionMode", "selection-mode"]]
|
|
5710
5715
|
}; }
|
|
@@ -5741,6 +5746,7 @@ const guid = () => gen([2, 1, 1, 1, 3]);
|
|
|
5741
5746
|
*
|
|
5742
5747
|
* If it already has an ID, it will be preserved, otherwise a unique one will be generated and assigned.
|
|
5743
5748
|
*
|
|
5749
|
+
* @param el
|
|
5744
5750
|
* @returns {string} The element's ID.
|
|
5745
5751
|
*/
|
|
5746
5752
|
function ensureId(el) {
|
|
@@ -5776,6 +5782,8 @@ function getHost(root) {
|
|
|
5776
5782
|
/**
|
|
5777
5783
|
* This helper queries an element's rootNodes and any ancestor rootNodes.
|
|
5778
5784
|
*
|
|
5785
|
+
* @param element
|
|
5786
|
+
* @param selector
|
|
5779
5787
|
* @returns {Element[]} The elements.
|
|
5780
5788
|
*/
|
|
5781
5789
|
function queryElementsRoots(element, selector) {
|
|
@@ -5802,6 +5810,10 @@ function queryElementsRoots(element, selector) {
|
|
|
5802
5810
|
*
|
|
5803
5811
|
* If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.
|
|
5804
5812
|
*
|
|
5813
|
+
* @param element
|
|
5814
|
+
* @param root0
|
|
5815
|
+
* @param root0.selector
|
|
5816
|
+
* @param root0.id
|
|
5805
5817
|
* @returns {Element} The element.
|
|
5806
5818
|
*/
|
|
5807
5819
|
function queryElementRoots(element, { selector, id }) {
|
|
@@ -5912,6 +5924,7 @@ function intersects(rect1, rect2) {
|
|
|
5912
5924
|
*
|
|
5913
5925
|
* It should only be used for aria attributes that require a string value of "true" or "false".
|
|
5914
5926
|
*
|
|
5927
|
+
* @param value
|
|
5915
5928
|
* @returns {string} The string conversion of a boolean value ("true" | "false").
|
|
5916
5929
|
*/
|
|
5917
5930
|
function toAriaBoolean(value) {
|
|
@@ -5926,10 +5939,10 @@ const accordionItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@ke
|
|
|
5926
5939
|
class AccordionItem {
|
|
5927
5940
|
constructor(hostRef) {
|
|
5928
5941
|
registerInstance(this, hostRef);
|
|
5929
|
-
this.
|
|
5930
|
-
this.
|
|
5931
|
-
this.
|
|
5932
|
-
this.
|
|
5942
|
+
this.calciteInternalAccordionItemKeyEvent = createEvent(this, "calciteInternalAccordionItemKeyEvent", 7);
|
|
5943
|
+
this.calciteInternalAccordionItemSelect = createEvent(this, "calciteInternalAccordionItemSelect", 7);
|
|
5944
|
+
this.calciteInternalAccordionItemClose = createEvent(this, "calciteInternalAccordionItemClose", 7);
|
|
5945
|
+
this.calciteInternalAccordionItemRegister = createEvent(this, "calciteInternalAccordionItemRegister", 7);
|
|
5933
5946
|
//--------------------------------------------------------------------------
|
|
5934
5947
|
//
|
|
5935
5948
|
// Public Properties
|
|
@@ -5961,7 +5974,7 @@ class AccordionItem {
|
|
|
5961
5974
|
}
|
|
5962
5975
|
componentDidLoad() {
|
|
5963
5976
|
this.itemPosition = this.getItemPosition();
|
|
5964
|
-
this.
|
|
5977
|
+
this.calciteInternalAccordionItemRegister.emit({
|
|
5965
5978
|
parent: this.parent,
|
|
5966
5979
|
position: this.itemPosition
|
|
5967
5980
|
});
|
|
@@ -6000,7 +6013,7 @@ class AccordionItem {
|
|
|
6000
6013
|
case "ArrowDown":
|
|
6001
6014
|
case "Home":
|
|
6002
6015
|
case "End":
|
|
6003
|
-
this.
|
|
6016
|
+
this.calciteInternalAccordionItemKeyEvent.emit({
|
|
6004
6017
|
parent: this.parent,
|
|
6005
6018
|
item: e
|
|
6006
6019
|
});
|
|
@@ -6016,6 +6029,7 @@ class AccordionItem {
|
|
|
6016
6029
|
return;
|
|
6017
6030
|
}
|
|
6018
6031
|
this.determineActiveItem();
|
|
6032
|
+
event.stopPropagation();
|
|
6019
6033
|
}
|
|
6020
6034
|
//--------------------------------------------------------------------------
|
|
6021
6035
|
//
|
|
@@ -6038,7 +6052,7 @@ class AccordionItem {
|
|
|
6038
6052
|
}
|
|
6039
6053
|
}
|
|
6040
6054
|
emitRequestedItem() {
|
|
6041
|
-
this.
|
|
6055
|
+
this.calciteInternalAccordionItemSelect.emit({
|
|
6042
6056
|
requestedAccordionItem: this.el
|
|
6043
6057
|
});
|
|
6044
6058
|
}
|
|
@@ -6056,7 +6070,7 @@ class AccordionItem {
|
|
|
6056
6070
|
"itemSubtitle": [1, "item-subtitle"],
|
|
6057
6071
|
"icon": [513]
|
|
6058
6072
|
},
|
|
6059
|
-
"$listeners$": [[0, "keydown", "keyDownHandler"], [16, "
|
|
6073
|
+
"$listeners$": [[0, "keydown", "keyDownHandler"], [16, "calciteInternalAccordionChange", "updateActiveItemOnChange"]],
|
|
6060
6074
|
"$lazyBundleId$": "-",
|
|
6061
6075
|
"$attrsToReflect$": [["active", "active"], ["icon", "icon"]]
|
|
6062
6076
|
}; }
|
|
@@ -6088,7 +6102,7 @@ function createObserver(type, callback, options) {
|
|
|
6088
6102
|
}
|
|
6089
6103
|
|
|
6090
6104
|
function noopClick() {
|
|
6091
|
-
/** noop
|
|
6105
|
+
/** noop */
|
|
6092
6106
|
}
|
|
6093
6107
|
/**
|
|
6094
6108
|
* This helper updates the host element to prevent keyboard interaction on its subtree and sets the appropriate aria attribute for accessibility.
|
|
@@ -6097,8 +6111,11 @@ function noopClick() {
|
|
|
6097
6111
|
*
|
|
6098
6112
|
* **Notes**
|
|
6099
6113
|
*
|
|
6100
|
-
*
|
|
6101
|
-
*
|
|
6114
|
+
* this util is not needed for simple components whose root element or elements are an interactive component (custom element or native control). For those cases, set the `disabled` props on the root components instead.
|
|
6115
|
+
* technically, users can override `tabindex` and restore keyboard navigation, but this will be considered user error
|
|
6116
|
+
*
|
|
6117
|
+
* @param component
|
|
6118
|
+
* @param hostIsTabbable
|
|
6102
6119
|
*/
|
|
6103
6120
|
function updateHostInteraction(component, hostIsTabbable = false) {
|
|
6104
6121
|
if (component.disabled) {
|
|
@@ -6156,7 +6173,9 @@ class Action {
|
|
|
6156
6173
|
* Indicates unread changes.
|
|
6157
6174
|
*/
|
|
6158
6175
|
this.indicator = false;
|
|
6159
|
-
/**
|
|
6176
|
+
/**
|
|
6177
|
+
* string to override English loading text
|
|
6178
|
+
*
|
|
6160
6179
|
* @default "Loading"
|
|
6161
6180
|
*/
|
|
6162
6181
|
this.intlLoading = TEXT$r.loading;
|
|
@@ -7654,6 +7673,8 @@ let mutationObserver;
|
|
|
7654
7673
|
const observerOptions = { childList: true };
|
|
7655
7674
|
/**
|
|
7656
7675
|
* Helper to set up a conditional slot component on connectedCallback.
|
|
7676
|
+
*
|
|
7677
|
+
* @param component
|
|
7657
7678
|
*/
|
|
7658
7679
|
function connectConditionalSlotComponent(component) {
|
|
7659
7680
|
if (!mutationObserver) {
|
|
@@ -7663,6 +7684,8 @@ function connectConditionalSlotComponent(component) {
|
|
|
7663
7684
|
}
|
|
7664
7685
|
/**
|
|
7665
7686
|
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
7687
|
+
*
|
|
7688
|
+
* @param component
|
|
7666
7689
|
*/
|
|
7667
7690
|
function disconnectConditionalSlotComponent(component) {
|
|
7668
7691
|
observed.delete(component.el);
|
|
@@ -7813,12 +7836,17 @@ class ActionBar {
|
|
|
7813
7836
|
// --------------------------------------------------------------------------
|
|
7814
7837
|
/**
|
|
7815
7838
|
* Overflows actions that won't fit into menus.
|
|
7839
|
+
*
|
|
7816
7840
|
* @internal
|
|
7817
7841
|
*/
|
|
7818
7842
|
async overflowActions() {
|
|
7819
7843
|
this.resize(this.el.clientHeight);
|
|
7820
7844
|
}
|
|
7821
|
-
/**
|
|
7845
|
+
/**
|
|
7846
|
+
* Sets focus on the component.
|
|
7847
|
+
*
|
|
7848
|
+
* @param focusId
|
|
7849
|
+
*/
|
|
7822
7850
|
async setFocus(focusId) {
|
|
7823
7851
|
if (focusId === "expand-toggle") {
|
|
7824
7852
|
await focusElement(this.expandToggleEl);
|
|
@@ -7993,6 +8021,7 @@ class ActionMenu {
|
|
|
7993
8021
|
this.overlayPositioning = "absolute";
|
|
7994
8022
|
/**
|
|
7995
8023
|
* Determines where the component will be positioned relative to the referenceElement.
|
|
8024
|
+
*
|
|
7996
8025
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
7997
8026
|
*/
|
|
7998
8027
|
this.placement = "auto";
|
|
@@ -8349,7 +8378,11 @@ class ActionPad {
|
|
|
8349
8378
|
// Methods
|
|
8350
8379
|
//
|
|
8351
8380
|
// --------------------------------------------------------------------------
|
|
8352
|
-
/**
|
|
8381
|
+
/**
|
|
8382
|
+
* Sets focus on the component.
|
|
8383
|
+
*
|
|
8384
|
+
* @param focusId
|
|
8385
|
+
*/
|
|
8353
8386
|
async setFocus(focusId) {
|
|
8354
8387
|
if (focusId === "expand-toggle") {
|
|
8355
8388
|
await focusElement(this.expandToggleEl);
|
|
@@ -8421,7 +8454,8 @@ var StatusIcons;
|
|
|
8421
8454
|
|
|
8422
8455
|
const alertCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-alert:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-alert{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-alert{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-alert{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-alert{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-alert{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-alert:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-alert-h{display:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-alert-h{--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}/*!@:host([scale=s]) slot[name=title]::slotted(*), :host([scale=s]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=s] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=s]) slot[name=message]::slotted(*), :host([scale=s]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=s] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) slot[name=link]::slotted(*), :host([scale=s]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=s] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) .alert-queue-count*/[scale=s].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-left:0.5rem;margin-right:0.5rem}/*!@:host([scale=s]) .container*/[scale=s].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:3.5rem}/*!@:host([scale=s]) .alert-close*/[scale=s].sc-calcite-alert-h .alert-close.sc-calcite-alert{padding:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-alert-h{--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}/*!@:host([scale=m]) slot[name=title]::slotted(*), :host([scale=m]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=m] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=m]) slot[name=message]::slotted(*), :host([scale=m]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=m] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) slot[name=link]::slotted(*), :host([scale=m]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=m] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) .alert-queue-count*/[scale=m].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-left:0.75rem;margin-right:0.75rem}/*!@:host([scale=m]) .container*/[scale=m].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:4.1875rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-alert-h{--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}/*!@:host([scale=l]) slot[name=title]::slotted(*), :host([scale=l]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=l] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=title]{margin-bottom:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}/*!@:host([scale=l]) slot[name=message]::slotted(*), :host([scale=l]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=l] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) slot[name=link]::slotted(*), :host([scale=l]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=l] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) .alert-queue-count*/[scale=l].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-left:1rem;margin-right:1rem}/*!@:host([scale=l]) .container*/[scale=l].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:5.625rem}/*!@:host*/.sc-calcite-alert-h{--calcite-alert-edge-distance:2rem;display:block}/*!@:host .container*/.sc-calcite-alert-h .container.sc-calcite-alert{pointer-events:none;position:fixed;margin-top:0px;margin-bottom:0px;margin-left:auto;margin-right:auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius);border-top:0px solid transparent;border-left:1px solid var(--calcite-ui-border-3);border-right:1px solid var(--calcite-ui-border-3);border-bottom:1px solid var(--calcite-ui-border-3);min-height:var(--calcite-alert-min-height);width:var(--calcite-alert-width);max-width:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-height:0;z-index:101;-webkit-transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}/*!@:host .container.bottom, :host .container.top*/.sc-calcite-alert-h .container.bottom.sc-calcite-alert,.sc-calcite-alert-h .container.top.sc-calcite-alert{inset-inline-end:0;inset-inline-start:0}/*!@:host .container[class*=bottom]*/.sc-calcite-alert-h .container[class*=bottom].sc-calcite-alert{-webkit-transform:translate3d(0, var(--calcite-alert-edge-distance), 0);transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}/*!@:host .container[class*=top]*/.sc-calcite-alert-h .container[class*=top].sc-calcite-alert{-webkit-transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}/*!@:host .container[class*=-start]*/.sc-calcite-alert-h .container[class*=-start].sc-calcite-alert{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}/*!@:host .container[class*=-end]*/.sc-calcite-alert-h .container[class*=-end].sc-calcite-alert{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}/*!@.container*/.container.sc-calcite-alert{display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}/*!@.alert-close*/.alert-close.sc-calcite-alert{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@.alert-close:focus*/.alert-close.sc-calcite-alert:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([active]) .container:not(.queued)*/[active].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued){max-height:100%;border-top-width:2px;opacity:1;pointer-events:initial}/*!@:host([active]) .container:not(.queued)[class*=bottom]*/[active].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued)[class*=bottom]{-webkit-transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit);transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}/*!@:host([active]) .container:not(.queued)[class*=top]*/[active].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued)[class*=top]{-webkit-transform:translate3d(0, var(--calcite-alert-edge-distance), inherit);transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}/*!@slot[name=title]::slotted(*), *::slotted([slot=title])*/slot[name=title].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@slot[name=message]::slotted(*), *::slotted([slot=message])*/slot[name=message].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=message]{margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}/*!@slot[name=link]::slotted(*), *::slotted([slot=link])*/slot[name=link].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=link]{display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-link)}/*!@.alert-content*/.alert-content.sc-calcite-alert{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);-ms-flex:1 1 auto;flex:1 1 auto;min-width:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-bottom-left-radius:var(--calcite-border-radius);border-bottom-right-radius:var(--calcite-border-radius)}/*!@.alert-content:first-of-type:not(:only-child)*/.alert-content.sc-calcite-alert:first-of-type:not(:only-child){-webkit-padding-start:var(--calcite-alert-spacing-token-large);padding-inline-start:var(--calcite-alert-spacing-token-large)}/*!@.alert-content:only-child*/.alert-content.sc-calcite-alert:only-child{padding:var(--calcite-alert-spacing-token-small)}/*!@.alert-icon*/.alert-icon.sc-calcite-alert{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px}/*!@.alert-close*/.alert-close.sc-calcite-alert{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;cursor:pointer;-ms-flex-item-align:stretch;align-self:stretch;overflow:hidden;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;border-end-end-radius:var(--calcite-border-radius)}/*!@.alert-close:hover, .alert-close:focus*/.alert-close.sc-calcite-alert:hover,.alert-close.sc-calcite-alert:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.alert-close:active*/.alert-close.sc-calcite-alert:active{background-color:var(--calcite-ui-foreground-3)}/*!@.alert-queue-count*/.alert-queue-count.sc-calcite-alert{visibility:hidden;display:-ms-flexbox;display:flex;cursor:default;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around;-ms-flex-item-align:stretch;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;border-left:0px solid transparent;border-right:0px solid transparent;border-top-right-radius:0}/*!@.alert-queue-count.active*/.alert-queue-count.active.sc-calcite-alert{visibility:visible;opacity:1}/*!@:host([auto-dismiss]) > .alert-queue-count*/[auto-dismiss].sc-calcite-alert-h>.alert-queue-count.sc-calcite-alert{-webkit-border-end:0px solid transparent;border-inline-end:0px solid transparent}/*!@.alert-dismiss-progress*/.alert-dismiss-progress.sc-calcite-alert{position:absolute;left:0px;right:0px;display:block;width:100%;overflow:hidden;top:-2px;height:2px;z-index:103;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}/*!@.alert-dismiss-progress:after*/.alert-dismiss-progress.sc-calcite-alert:after{position:absolute;top:0px;display:block;height:2px;content:\"\";background-color:var(--calcite-alert-dismiss-progress-background);z-index:104;inset-inline-end:0}/*!@:host([color=blue]) .container*/[color=blue].sc-calcite-alert-h .container.sc-calcite-alert{border-top-color:var(--calcite-ui-info)}/*!@:host([color=blue]) .container .alert-icon*/[color=blue].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-info)}/*!@:host([color=red]) .container*/[color=red].sc-calcite-alert-h .container.sc-calcite-alert{border-top-color:var(--calcite-ui-danger)}/*!@:host([color=red]) .container .alert-icon*/[color=red].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-danger)}/*!@:host([color=yellow]) .container*/[color=yellow].sc-calcite-alert-h .container.sc-calcite-alert{border-top-color:var(--calcite-ui-warning)}/*!@:host([color=yellow]) .container .alert-icon*/[color=yellow].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-warning)}/*!@:host([color=green]) .container*/[color=green].sc-calcite-alert-h .container.sc-calcite-alert{border-top-color:var(--calcite-ui-success)}/*!@:host([color=green]) .container .alert-icon*/[color=green].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-success)}/*!@:host([auto-dismiss-duration=fast]) .alert-dismiss-progress:after*/[auto-dismiss-duration=fast].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{-webkit-animation:dismissProgress 6000ms ease-out;animation:dismissProgress 6000ms ease-out}/*!@:host([auto-dismiss-duration=medium]) .alert-dismiss-progress:after*/[auto-dismiss-duration=medium].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{-webkit-animation:dismissProgress 10000ms ease-out;animation:dismissProgress 10000ms ease-out}/*!@:host([auto-dismiss-duration=slow]) .alert-dismiss-progress:after*/[auto-dismiss-duration=slow].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{-webkit-animation:dismissProgress 14000ms ease-out;animation:dismissProgress 14000ms ease-out}@-webkit-keyframes dismissProgress{0%{width:0px;opacity:0.75}100%{width:100%;opacity:1}}@keyframes dismissProgress{0%{width:0px;opacity:0.75}100%{width:100%;opacity:1}}";
|
|
8423
8456
|
|
|
8424
|
-
/**
|
|
8457
|
+
/**
|
|
8458
|
+
* Alerts are meant to provide a way to communicate urgent or important information to users, frequently as a result of an action they took in your app. Alerts are positioned
|
|
8425
8459
|
* at the bottom of the page. Multiple opened alerts will be added to a queue, allowing users to dismiss them in the order they are provided.
|
|
8426
8460
|
*/
|
|
8427
8461
|
/**
|
|
@@ -8434,8 +8468,8 @@ class Alert {
|
|
|
8434
8468
|
registerInstance(this, hostRef);
|
|
8435
8469
|
this.calciteAlertClose = createEvent(this, "calciteAlertClose", 7);
|
|
8436
8470
|
this.calciteAlertOpen = createEvent(this, "calciteAlertOpen", 7);
|
|
8437
|
-
this.
|
|
8438
|
-
this.
|
|
8471
|
+
this.calciteInternalAlertSync = createEvent(this, "calciteInternalAlertSync", 7);
|
|
8472
|
+
this.calciteInternalAlertRegister = createEvent(this, "calciteInternalAlertRegister", 7);
|
|
8439
8473
|
//--------------------------------------------------------------------------
|
|
8440
8474
|
//
|
|
8441
8475
|
// Properties
|
|
@@ -8449,7 +8483,9 @@ class Alert {
|
|
|
8449
8483
|
this.autoDismissDuration = this.autoDismiss ? "medium" : null;
|
|
8450
8484
|
/** Color for the alert (will apply to top border and icon) */
|
|
8451
8485
|
this.color = "blue";
|
|
8452
|
-
/**
|
|
8486
|
+
/**
|
|
8487
|
+
* string to override English close text
|
|
8488
|
+
*
|
|
8453
8489
|
* @default "Close"
|
|
8454
8490
|
*/
|
|
8455
8491
|
this.intlClose = TEXT$n.intlClose;
|
|
@@ -8478,7 +8514,7 @@ class Alert {
|
|
|
8478
8514
|
this.active = false;
|
|
8479
8515
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
8480
8516
|
this.determineActiveAlert();
|
|
8481
|
-
this.
|
|
8517
|
+
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
8482
8518
|
};
|
|
8483
8519
|
this.transitionEnd = (event) => {
|
|
8484
8520
|
if (event.propertyName === this.activeTransitionProp) {
|
|
@@ -8496,11 +8532,11 @@ class Alert {
|
|
|
8496
8532
|
}
|
|
8497
8533
|
watchActive() {
|
|
8498
8534
|
if (this.active && !this.queued) {
|
|
8499
|
-
this.
|
|
8535
|
+
this.calciteInternalAlertRegister.emit();
|
|
8500
8536
|
}
|
|
8501
8537
|
if (!this.active) {
|
|
8502
8538
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
8503
|
-
this.
|
|
8539
|
+
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
8504
8540
|
}
|
|
8505
8541
|
}
|
|
8506
8542
|
updateRequestedIcon() {
|
|
@@ -8519,7 +8555,7 @@ class Alert {
|
|
|
8519
8555
|
//--------------------------------------------------------------------------
|
|
8520
8556
|
connectedCallback() {
|
|
8521
8557
|
if (this.active && !this.queued) {
|
|
8522
|
-
this.
|
|
8558
|
+
this.calciteInternalAlertRegister.emit();
|
|
8523
8559
|
}
|
|
8524
8560
|
}
|
|
8525
8561
|
componentWillLoad() {
|
|
@@ -8548,6 +8584,7 @@ class Alert {
|
|
|
8548
8584
|
}
|
|
8549
8585
|
this.queueLength = this.queue.length;
|
|
8550
8586
|
this.determineActiveAlert();
|
|
8587
|
+
event.stopPropagation();
|
|
8551
8588
|
}
|
|
8552
8589
|
// when an alert is first registered, trigger a queue sync to get queue
|
|
8553
8590
|
alertRegister() {
|
|
@@ -8555,7 +8592,7 @@ class Alert {
|
|
|
8555
8592
|
this.queued = true;
|
|
8556
8593
|
this.queue.push(this.el);
|
|
8557
8594
|
}
|
|
8558
|
-
this.
|
|
8595
|
+
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
8559
8596
|
this.determineActiveAlert();
|
|
8560
8597
|
}
|
|
8561
8598
|
//--------------------------------------------------------------------------
|
|
@@ -8627,7 +8664,7 @@ class Alert {
|
|
|
8627
8664
|
"requestedIcon": [32],
|
|
8628
8665
|
"setFocus": [64]
|
|
8629
8666
|
},
|
|
8630
|
-
"$listeners$": [[8, "
|
|
8667
|
+
"$listeners$": [[8, "calciteInternalAlertSync", "alertSync"], [8, "calciteInternalAlertRegister", "alertRegister"]],
|
|
8631
8668
|
"$lazyBundleId$": "-",
|
|
8632
8669
|
"$attrsToReflect$": [["active", "active"], ["autoDismissDuration", "auto-dismiss-duration"], ["color", "color"], ["icon", "icon"], ["scale", "scale"]]
|
|
8633
8670
|
}; }
|
|
@@ -8744,6 +8781,8 @@ function colorEqual(value1, value2) {
|
|
|
8744
8781
|
/**
|
|
8745
8782
|
* Convert a string to a valid hex by hashing its contents
|
|
8746
8783
|
* and using the hash as a seed for three distinct color values
|
|
8784
|
+
*
|
|
8785
|
+
* @param str
|
|
8747
8786
|
*/
|
|
8748
8787
|
function stringToHex(str) {
|
|
8749
8788
|
let hash = 0;
|
|
@@ -8759,6 +8798,8 @@ function stringToHex(str) {
|
|
|
8759
8798
|
}
|
|
8760
8799
|
/**
|
|
8761
8800
|
* Find the hue of a color given the separate RGB color channels
|
|
8801
|
+
*
|
|
8802
|
+
* @param rgb
|
|
8762
8803
|
*/
|
|
8763
8804
|
function rgbToHue(rgb) {
|
|
8764
8805
|
let { r, g, b } = rgb;
|
|
@@ -8787,6 +8828,7 @@ function rgbToHue(rgb) {
|
|
|
8787
8828
|
}
|
|
8788
8829
|
/**
|
|
8789
8830
|
* For a hex color, find the hue
|
|
8831
|
+
*
|
|
8790
8832
|
* @param hex {string} - form of "#------"
|
|
8791
8833
|
*/
|
|
8792
8834
|
function hexToHue(hex) {
|
|
@@ -8965,17 +9007,25 @@ class Block {
|
|
|
8965
9007
|
this.dragHandle = false;
|
|
8966
9008
|
/**
|
|
8967
9009
|
* Aria-label for collapsing the toggle and tooltip used for the toggle when expanded.
|
|
9010
|
+
*
|
|
9011
|
+
* @default "Collapse"
|
|
8968
9012
|
*/
|
|
8969
9013
|
this.intlCollapse = TEXT$m.collapse;
|
|
8970
9014
|
/**
|
|
8971
9015
|
* Aria-label for expanding the toggle and tooltip used for the toggle when collapsed.
|
|
9016
|
+
*
|
|
9017
|
+
* @default "Expand"
|
|
8972
9018
|
*/
|
|
8973
9019
|
this.intlExpand = TEXT$m.expand;
|
|
8974
|
-
/**
|
|
9020
|
+
/**
|
|
9021
|
+
* string to override English loading text
|
|
9022
|
+
*
|
|
8975
9023
|
* @default "Loading"
|
|
8976
9024
|
*/
|
|
8977
9025
|
this.intlLoading = TEXT$m.loading;
|
|
8978
|
-
/**
|
|
9026
|
+
/**
|
|
9027
|
+
* Text string used for the actions menu
|
|
9028
|
+
*
|
|
8979
9029
|
* @default "Options"
|
|
8980
9030
|
*/
|
|
8981
9031
|
this.intlOptions = TEXT$m.options;
|
|
@@ -9248,6 +9298,7 @@ const TEXT$k = {
|
|
|
9248
9298
|
|
|
9249
9299
|
/**
|
|
9250
9300
|
* Exported for testing purposes only
|
|
9301
|
+
*
|
|
9251
9302
|
* @internal
|
|
9252
9303
|
*/
|
|
9253
9304
|
const labelClickEvent = "calciteInternalLabelClick";
|
|
@@ -9290,6 +9341,8 @@ function hasAncestorCustomElements(label, componentEl) {
|
|
|
9290
9341
|
}
|
|
9291
9342
|
/**
|
|
9292
9343
|
* Helper to set up label interactions on connectedCallback.
|
|
9344
|
+
*
|
|
9345
|
+
* @param component
|
|
9293
9346
|
*/
|
|
9294
9347
|
function connectLabel(component) {
|
|
9295
9348
|
const labelEl = findLabelForComponent(component.el);
|
|
@@ -9314,6 +9367,8 @@ function connectLabel(component) {
|
|
|
9314
9367
|
}
|
|
9315
9368
|
/**
|
|
9316
9369
|
* Helper to tear down label interactions on disconnectedCallback on labelable components.
|
|
9370
|
+
*
|
|
9371
|
+
* @param component
|
|
9317
9372
|
*/
|
|
9318
9373
|
function disconnectLabel(component) {
|
|
9319
9374
|
unlabeledComponents.delete(component);
|
|
@@ -9330,6 +9385,8 @@ function disconnectLabel(component) {
|
|
|
9330
9385
|
}
|
|
9331
9386
|
/**
|
|
9332
9387
|
* Helper to get the label text from a component.
|
|
9388
|
+
*
|
|
9389
|
+
* @param component
|
|
9333
9390
|
*/
|
|
9334
9391
|
function getLabelText(component) {
|
|
9335
9392
|
var _a, _b;
|
|
@@ -9384,6 +9441,8 @@ function hasRegisteredFormComponentParent(form, formComponentEl) {
|
|
|
9384
9441
|
}
|
|
9385
9442
|
/**
|
|
9386
9443
|
* Helper to submit a form.
|
|
9444
|
+
*
|
|
9445
|
+
* @param component
|
|
9387
9446
|
*/
|
|
9388
9447
|
function submitForm(component) {
|
|
9389
9448
|
var _a;
|
|
@@ -9391,6 +9450,8 @@ function submitForm(component) {
|
|
|
9391
9450
|
}
|
|
9392
9451
|
/**
|
|
9393
9452
|
* Helper to reset a form.
|
|
9453
|
+
*
|
|
9454
|
+
* @param component
|
|
9394
9455
|
*/
|
|
9395
9456
|
function resetForm(component) {
|
|
9396
9457
|
var _a;
|
|
@@ -9398,6 +9459,8 @@ function resetForm(component) {
|
|
|
9398
9459
|
}
|
|
9399
9460
|
/**
|
|
9400
9461
|
* Helper to set up form interactions on connectedCallback.
|
|
9462
|
+
*
|
|
9463
|
+
* @param component
|
|
9401
9464
|
*/
|
|
9402
9465
|
function connectForm(component) {
|
|
9403
9466
|
const { el, value } = component;
|
|
@@ -9424,6 +9487,8 @@ function onFormReset() {
|
|
|
9424
9487
|
}
|
|
9425
9488
|
/**
|
|
9426
9489
|
* Helper to tear down form interactions on disconnectedCallback.
|
|
9490
|
+
*
|
|
9491
|
+
* @param component
|
|
9427
9492
|
*/
|
|
9428
9493
|
function disconnectForm(component) {
|
|
9429
9494
|
const { el, formEl } = component;
|
|
@@ -9440,6 +9505,9 @@ function disconnectForm(component) {
|
|
|
9440
9505
|
* Helper for setting the default value on initialization after connectedCallback.
|
|
9441
9506
|
*
|
|
9442
9507
|
* Note that this is only needed if the default value cannot be determined on connectedCallback.
|
|
9508
|
+
*
|
|
9509
|
+
* @param component
|
|
9510
|
+
* @param value
|
|
9443
9511
|
*/
|
|
9444
9512
|
function afterConnectDefaultValueSet(component, value) {
|
|
9445
9513
|
component.defaultValue = value;
|
|
@@ -9448,6 +9516,8 @@ function afterConnectDefaultValueSet(component, value) {
|
|
|
9448
9516
|
* Helper for maintaining a form-associated's hidden input in sync with the component.
|
|
9449
9517
|
*
|
|
9450
9518
|
* Based on Ionic's approach: https://github.com/ionic-team/ionic-framework/blob/e4bf052794af9aac07f887013b9250d2a045eba3/core/src/utils/helpers.ts#L198
|
|
9519
|
+
*
|
|
9520
|
+
* @param component
|
|
9451
9521
|
*/
|
|
9452
9522
|
function syncHiddenFormInput(component) {
|
|
9453
9523
|
const { el, formEl, name, value } = component;
|
|
@@ -9532,6 +9602,9 @@ function defaultSyncHiddenFormInput(component, input, value) {
|
|
|
9532
9602
|
* }
|
|
9533
9603
|
*
|
|
9534
9604
|
* Note that the hidden-form-input Sass mixin must be added to the component's style to apply specific styles.
|
|
9605
|
+
*
|
|
9606
|
+
* @param root0
|
|
9607
|
+
* @param root0.component
|
|
9535
9608
|
*/
|
|
9536
9609
|
const HiddenFormInputSlot = ({ component }) => {
|
|
9537
9610
|
syncHiddenFormInput(component);
|
|
@@ -9559,7 +9632,9 @@ class Button {
|
|
|
9559
9632
|
this.color = "blue";
|
|
9560
9633
|
/** is the button disabled */
|
|
9561
9634
|
this.disabled = false;
|
|
9562
|
-
/**
|
|
9635
|
+
/**
|
|
9636
|
+
* string to override English loading text
|
|
9637
|
+
*
|
|
9563
9638
|
* @default "Loading"
|
|
9564
9639
|
*/
|
|
9565
9640
|
this.intlLoading = TEXT$k.loading;
|
|
@@ -9575,7 +9650,7 @@ class Button {
|
|
|
9575
9650
|
this.type = "button";
|
|
9576
9651
|
/** specify the width of the button, defaults to auto */
|
|
9577
9652
|
this.width = "auto";
|
|
9578
|
-
/** watches for changing text content
|
|
9653
|
+
/** watches for changing text content */
|
|
9579
9654
|
this.mutationObserver = createObserver();
|
|
9580
9655
|
/** determine if there is slotted content for styling purposes */
|
|
9581
9656
|
this.hasContent = false;
|
|
@@ -9734,7 +9809,8 @@ const TEXT$j = {
|
|
|
9734
9809
|
|
|
9735
9810
|
const cardCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-card:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-card{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-card{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-card{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-card{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-card{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-card:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-card-h{display:none}/*!@:host*/.sc-calcite-card-h{display:block;max-width:100%}/*!@:host .calcite-card-container*/.sc-calcite-card-h .calcite-card-container.sc-calcite-card{position:relative;display:-ms-flexbox;display:flex;height:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-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);border-radius:var(--calcite-border-radius-base)}/*!@:host .calcite-card-container:hover*/.sc-calcite-card-h .calcite-card-container.sc-calcite-card:hover{--tw-shadow:0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 16px 0 var(--tw-shadow-color), 0 2px 8px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);z-index:1}/*!@:host .calcite-card-container:active*/.sc-calcite-card-h .calcite-card-container.sc-calcite-card:active{--tw-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 1px 6px -1px var(--tw-shadow-color), 0 1px 2px -1px 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);-webkit-transition-duration:75ms;transition-duration:75ms;z-index:1}/*!@.container*/.container.sc-calcite-card{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column}/*!@:host([loading]) .calcite-card-container *:not(calcite-loader):not(.calcite-card-loader-container)*/[loading].sc-calcite-card-h .calcite-card-container.sc-calcite-card *.sc-calcite-card:not(calcite-loader):not(.calcite-card-loader-container){pointer-events:none;opacity:0}/*!@:host([loading]) .calcite-card-loader-container*/[loading].sc-calcite-card-h .calcite-card-loader-container.sc-calcite-card{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}/*!@.header, .footer*/.header.sc-calcite-card,.footer.sc-calcite-card{display:-ms-flexbox;display:flex;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.75rem;padding-bottom:0.25rem}/*!@.header*/.header.sc-calcite-card{-ms-flex-direction:column;flex-direction:column}/*!@.footer*/.footer.sc-calcite-card{margin-top:auto;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.25rem;padding-bottom:0.75rem}/*!@.card-content*/.card-content.sc-calcite-card{padding:0.75rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3)}/*!@:host([selectable]) .calcite-card-container:active*/[selectable].sc-calcite-card-h .calcite-card-container.sc-calcite-card:active{--tw-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 1px 6px -1px var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@:host([selected]) .calcite-card-container*/[selected].sc-calcite-card-h .calcite-card-container.sc-calcite-card{border-color:var(--calcite-ui-brand)}/*!@slot[name=title]::slotted(*), *::slotted([slot=title])*/slot[name=title].sc-calcite-card-s>*,*.sc-calcite-card-s>[slot=title]{margin:0px;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@slot[name=subtitle]::slotted(*), *::slotted([slot=subtitle])*/slot[name=subtitle].sc-calcite-card-s>*,*.sc-calcite-card-s>[slot=subtitle]{margin:0px;margin-top:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}/*!@slot[name=thumbnail]::slotted(img), img::slotted([slot=thumbnail])*/slot[name=thumbnail].sc-calcite-card-s>img,img.sc-calcite-card-s>[slot=thumbnail]{min-width:100%;max-width:100%}/*!@slot[name=footer-leading]::slotted(*), *::slotted([slot=footer-leading])*/slot[name=footer-leading].sc-calcite-card-s>*,*.sc-calcite-card-s>[slot=footer-leading]{-ms-flex-item-align:center;align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;-webkit-margin-end:auto;margin-inline-end:auto}/*!@slot[name=footer-trailing]::slotted(*), *::slotted([slot=footer-trailing])*/slot[name=footer-trailing].sc-calcite-card-s>*,*.sc-calcite-card-s>[slot=footer-trailing]{-ms-flex-item-align:center;align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@.thumbnail-wrapper*/.thumbnail-wrapper.sc-calcite-card{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@.checkbox-wrapper*/.checkbox-wrapper.sc-calcite-card{position:absolute;margin:0px;padding:0px;top:0.5rem;inset-inline-end:0.5rem}";
|
|
9736
9811
|
|
|
9737
|
-
/**
|
|
9812
|
+
/**
|
|
9813
|
+
* Cards do not include a grid or bounding container
|
|
9738
9814
|
* - cards will expand to fit the width of their container
|
|
9739
9815
|
*/
|
|
9740
9816
|
/**
|
|
@@ -9760,15 +9836,21 @@ class Card {
|
|
|
9760
9836
|
this.selected = false;
|
|
9761
9837
|
/** Indicates whether the card is selectable. */
|
|
9762
9838
|
this.selectable = false;
|
|
9763
|
-
/**
|
|
9839
|
+
/**
|
|
9840
|
+
* string to override English loading text
|
|
9841
|
+
*
|
|
9764
9842
|
* @default "Loading"
|
|
9765
9843
|
*/
|
|
9766
9844
|
this.intlLoading = TEXT$j.loading;
|
|
9767
|
-
/**
|
|
9845
|
+
/**
|
|
9846
|
+
* string to override English select text for checkbox when selectable is true
|
|
9847
|
+
*
|
|
9768
9848
|
* @default "Select"
|
|
9769
9849
|
*/
|
|
9770
9850
|
this.intlSelect = TEXT$j.select;
|
|
9771
|
-
/**
|
|
9851
|
+
/**
|
|
9852
|
+
* string to override English deselect text for checkbox when selectable is true
|
|
9853
|
+
*
|
|
9772
9854
|
* @default "Deselect"
|
|
9773
9855
|
*/
|
|
9774
9856
|
this.intlDeselect = TEXT$j.deselect;
|
|
@@ -9872,6 +9954,7 @@ class Checkbox {
|
|
|
9872
9954
|
this.disabled = false;
|
|
9873
9955
|
/**
|
|
9874
9956
|
* The hovered state of the checkbox.
|
|
9957
|
+
*
|
|
9875
9958
|
* @internal
|
|
9876
9959
|
*/
|
|
9877
9960
|
this.hovered = false;
|
|
@@ -9879,7 +9962,7 @@ class Checkbox {
|
|
|
9879
9962
|
* True if the checkbox is initially indeterminate,
|
|
9880
9963
|
* which is independent from its checked state
|
|
9881
9964
|
* https://css-tricks.com/indeterminate-checkboxes/
|
|
9882
|
-
|
|
9965
|
+
*/
|
|
9883
9966
|
this.indeterminate = false;
|
|
9884
9967
|
/**
|
|
9885
9968
|
* When true, makes the component required for form-submission.
|
|
@@ -10031,7 +10114,9 @@ class Chip {
|
|
|
10031
10114
|
this.color = "grey";
|
|
10032
10115
|
/** Optionally show a button the user can click to dismiss the chip */
|
|
10033
10116
|
this.dismissible = false;
|
|
10034
|
-
/**
|
|
10117
|
+
/**
|
|
10118
|
+
* Aria label for the "x" button
|
|
10119
|
+
*
|
|
10035
10120
|
* @default "Close"
|
|
10036
10121
|
*/
|
|
10037
10122
|
this.dismissLabel = TEXT$i.close;
|
|
@@ -12369,6 +12454,7 @@ class ColorPicker {
|
|
|
12369
12454
|
* The format of the value property.
|
|
12370
12455
|
*
|
|
12371
12456
|
* When "auto", the format will be inferred from `value` when set.
|
|
12457
|
+
*
|
|
12372
12458
|
* @default "auto"
|
|
12373
12459
|
*/
|
|
12374
12460
|
this.format = defaultFormat;
|
|
@@ -12378,80 +12464,117 @@ class ColorPicker {
|
|
|
12378
12464
|
this.hideChannels = false;
|
|
12379
12465
|
/** When true, hides the saved colors section */
|
|
12380
12466
|
this.hideSaved = false;
|
|
12381
|
-
/**
|
|
12467
|
+
/**
|
|
12468
|
+
* Label used for the blue channel
|
|
12469
|
+
*
|
|
12382
12470
|
* @default "B"
|
|
12383
12471
|
*/
|
|
12384
12472
|
this.intlB = TEXT$h.b;
|
|
12385
|
-
/**
|
|
12473
|
+
/**
|
|
12474
|
+
* Label used for the blue channel description
|
|
12475
|
+
*
|
|
12386
12476
|
* @default "Blue"
|
|
12387
12477
|
*/
|
|
12388
12478
|
this.intlBlue = TEXT$h.blue;
|
|
12389
|
-
/**
|
|
12479
|
+
/**
|
|
12480
|
+
* Label used for the delete color button.
|
|
12481
|
+
*
|
|
12390
12482
|
* @default "Delete color"
|
|
12391
12483
|
*/
|
|
12392
12484
|
this.intlDeleteColor = TEXT$h.deleteColor;
|
|
12393
|
-
/**
|
|
12485
|
+
/**
|
|
12486
|
+
* Label used for the green channel
|
|
12487
|
+
*
|
|
12394
12488
|
* @default "G"
|
|
12395
12489
|
*/
|
|
12396
12490
|
this.intlG = TEXT$h.g;
|
|
12397
|
-
/**
|
|
12491
|
+
/**
|
|
12492
|
+
* Label used for the green channel description
|
|
12493
|
+
*
|
|
12398
12494
|
* @default "Green"
|
|
12399
12495
|
*/
|
|
12400
12496
|
this.intlGreen = TEXT$h.green;
|
|
12401
|
-
/**
|
|
12497
|
+
/**
|
|
12498
|
+
* Label used for the hue channel
|
|
12499
|
+
*
|
|
12402
12500
|
* @default "H"
|
|
12403
12501
|
*/
|
|
12404
12502
|
this.intlH = TEXT$h.h;
|
|
12405
|
-
/**
|
|
12503
|
+
/**
|
|
12504
|
+
* Label used for the HSV mode
|
|
12505
|
+
*
|
|
12406
12506
|
* @default "HSV"
|
|
12407
12507
|
*/
|
|
12408
12508
|
this.intlHsv = TEXT$h.hsv;
|
|
12409
|
-
/**
|
|
12509
|
+
/**
|
|
12510
|
+
* Label used for the hex input
|
|
12511
|
+
*
|
|
12410
12512
|
* @default "Hex"
|
|
12411
12513
|
*/
|
|
12412
12514
|
this.intlHex = TEXT$h.hex;
|
|
12413
|
-
/**
|
|
12515
|
+
/**
|
|
12516
|
+
* Label used for the hue channel description
|
|
12517
|
+
*
|
|
12414
12518
|
* @default "Hue"
|
|
12415
12519
|
*/
|
|
12416
12520
|
this.intlHue = TEXT$h.hue;
|
|
12417
12521
|
/**
|
|
12418
12522
|
* Label used for the hex input when there is no color selected.
|
|
12523
|
+
*
|
|
12419
12524
|
* @default "No color"
|
|
12420
12525
|
*/
|
|
12421
12526
|
this.intlNoColor = TEXT$h.noColor;
|
|
12422
|
-
/**
|
|
12527
|
+
/**
|
|
12528
|
+
* Label used for the red channel
|
|
12529
|
+
*
|
|
12423
12530
|
* @default "R"
|
|
12424
12531
|
*/
|
|
12425
12532
|
this.intlR = TEXT$h.r;
|
|
12426
|
-
/**
|
|
12533
|
+
/**
|
|
12534
|
+
* Label used for the red channel description
|
|
12535
|
+
*
|
|
12427
12536
|
* @default "Red"
|
|
12428
12537
|
*/
|
|
12429
12538
|
this.intlRed = TEXT$h.red;
|
|
12430
|
-
/**
|
|
12539
|
+
/**
|
|
12540
|
+
* Label used for the RGB mode
|
|
12541
|
+
*
|
|
12431
12542
|
* @default "RGB"
|
|
12432
12543
|
*/
|
|
12433
12544
|
this.intlRgb = TEXT$h.rgb;
|
|
12434
|
-
/**
|
|
12545
|
+
/**
|
|
12546
|
+
* Label used for the saturation channel
|
|
12547
|
+
*
|
|
12435
12548
|
* @default "S"
|
|
12436
12549
|
*/
|
|
12437
12550
|
this.intlS = TEXT$h.s;
|
|
12438
|
-
/**
|
|
12551
|
+
/**
|
|
12552
|
+
* Label used for the saturation channel description
|
|
12553
|
+
*
|
|
12439
12554
|
* @default "Saturation"
|
|
12440
12555
|
*/
|
|
12441
12556
|
this.intlSaturation = TEXT$h.saturation;
|
|
12442
|
-
/**
|
|
12557
|
+
/**
|
|
12558
|
+
* Label used for the save color button.
|
|
12559
|
+
*
|
|
12443
12560
|
* @default "Save color"
|
|
12444
12561
|
*/
|
|
12445
12562
|
this.intlSaveColor = TEXT$h.saveColor;
|
|
12446
|
-
/**
|
|
12563
|
+
/**
|
|
12564
|
+
* Label used for the saved colors section
|
|
12565
|
+
*
|
|
12447
12566
|
* @default "Saved"
|
|
12448
12567
|
*/
|
|
12449
12568
|
this.intlSaved = TEXT$h.saved;
|
|
12450
|
-
/**
|
|
12569
|
+
/**
|
|
12570
|
+
* Label used for the value channel
|
|
12571
|
+
*
|
|
12451
12572
|
* @default "V"
|
|
12452
12573
|
*/
|
|
12453
12574
|
this.intlV = TEXT$h.v;
|
|
12454
|
-
/**
|
|
12575
|
+
/**
|
|
12576
|
+
* Label used for the
|
|
12577
|
+
*
|
|
12455
12578
|
* @default "Value"
|
|
12456
12579
|
*/
|
|
12457
12580
|
this.intlValue = TEXT$h.value;
|
|
@@ -12466,6 +12589,7 @@ class ColorPicker {
|
|
|
12466
12589
|
* a RGB, HSL or HSV object.
|
|
12467
12590
|
*
|
|
12468
12591
|
* The type will be preserved as the color is updated.
|
|
12592
|
+
*
|
|
12469
12593
|
* @default "#007ac2"
|
|
12470
12594
|
* @see [ColorValue](https://github.com/Esri/calcite-components/blob/master/src/components/color-picker/interfaces.ts#L10)
|
|
12471
12595
|
*/
|
|
@@ -13184,11 +13308,13 @@ class ColorPickerHexInput {
|
|
|
13184
13308
|
this.allowEmpty = false;
|
|
13185
13309
|
/**
|
|
13186
13310
|
* Label used for the hex input.
|
|
13311
|
+
*
|
|
13187
13312
|
* @default "Hex"
|
|
13188
13313
|
*/
|
|
13189
13314
|
this.intlHex = TEXT$h.hex;
|
|
13190
13315
|
/**
|
|
13191
13316
|
* Label used for the hex input when there is no color selected.
|
|
13317
|
+
*
|
|
13192
13318
|
* @default "No color"
|
|
13193
13319
|
*/
|
|
13194
13320
|
this.intlNoColor = TEXT$h.noColor;
|
|
@@ -13200,7 +13326,7 @@ class ColorPickerHexInput {
|
|
|
13200
13326
|
* The hex value.
|
|
13201
13327
|
*/
|
|
13202
13328
|
this.value = normalizeHex(DEFAULT_COLOR.hex());
|
|
13203
|
-
this.
|
|
13329
|
+
this.onCalciteInternalInputBlur = () => {
|
|
13204
13330
|
const node = this.inputNode;
|
|
13205
13331
|
const inputValue = node.value;
|
|
13206
13332
|
const hex = `#${inputValue}`;
|
|
@@ -13285,7 +13411,7 @@ class ColorPickerHexInput {
|
|
|
13285
13411
|
render() {
|
|
13286
13412
|
const { intlHex, value } = this;
|
|
13287
13413
|
const hexInputValue = this.formatForInternalInput(value);
|
|
13288
|
-
return (hAsync("div", { class: CSS$F.container }, hAsync("calcite-input", { class: CSS$F.input, label: intlHex, maxLength: 6,
|
|
13414
|
+
return (hAsync("div", { class: CSS$F.container }, hAsync("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 ? (hAsync("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
13289
13415
|
}
|
|
13290
13416
|
//--------------------------------------------------------------------------
|
|
13291
13417
|
//
|
|
@@ -15389,7 +15515,8 @@ class Combobox {
|
|
|
15389
15515
|
* @internal
|
|
15390
15516
|
*/
|
|
15391
15517
|
this.required = false;
|
|
15392
|
-
/**
|
|
15518
|
+
/**
|
|
15519
|
+
* specify the selection mode
|
|
15393
15520
|
* - multi: allow any number of selected items (default)
|
|
15394
15521
|
* - single: only one selection)
|
|
15395
15522
|
* - ancestors: like multi, but show ancestors of selected items as selected, only deepest children shown in chips
|
|
@@ -15399,7 +15526,9 @@ class Combobox {
|
|
|
15399
15526
|
this.scale = "m";
|
|
15400
15527
|
/** The value(s) of the selectedItem(s) */
|
|
15401
15528
|
this.value = null;
|
|
15402
|
-
/**
|
|
15529
|
+
/**
|
|
15530
|
+
* string to override the English "Remove tag" text for when an item is selected.
|
|
15531
|
+
*
|
|
15403
15532
|
* @default "Remove tag"
|
|
15404
15533
|
*/
|
|
15405
15534
|
this.intlRemoveTag = TEXT$g.removeTag;
|
|
@@ -16241,6 +16370,8 @@ class ComboboxItem {
|
|
|
16241
16370
|
/**
|
|
16242
16371
|
* Used to toggle the selection state. By default this won't trigger an event.
|
|
16243
16372
|
* The first argument allows the value to be coerced, rather than swapping values.
|
|
16373
|
+
*
|
|
16374
|
+
* @param coerce
|
|
16244
16375
|
*/
|
|
16245
16376
|
async toggleSelected(coerce) {
|
|
16246
16377
|
if (this.disabled) {
|
|
@@ -16502,6 +16633,10 @@ function localizeNumberString(numberString, locale, displayGroupSeparator = fals
|
|
|
16502
16633
|
|
|
16503
16634
|
/**
|
|
16504
16635
|
* Check if date is within a min and max
|
|
16636
|
+
*
|
|
16637
|
+
* @param date
|
|
16638
|
+
* @param min
|
|
16639
|
+
* @param max
|
|
16505
16640
|
*/
|
|
16506
16641
|
function inRange(date, min, max) {
|
|
16507
16642
|
const time = date.getTime();
|
|
@@ -16512,6 +16647,10 @@ function inRange(date, min, max) {
|
|
|
16512
16647
|
/**
|
|
16513
16648
|
* Ensures date is within range,
|
|
16514
16649
|
* returns min or max if out of bounds
|
|
16650
|
+
*
|
|
16651
|
+
* @param date
|
|
16652
|
+
* @param min
|
|
16653
|
+
* @param max
|
|
16515
16654
|
*/
|
|
16516
16655
|
function dateFromRange(date, min, max) {
|
|
16517
16656
|
if (!(date instanceof Date)) {
|
|
@@ -16531,6 +16670,8 @@ function dateFromRange(date, min, max) {
|
|
|
16531
16670
|
/**
|
|
16532
16671
|
* Parse an iso8601 string (YYYY-mm-dd) into a valid date.
|
|
16533
16672
|
* TODO: handle time when time of day UI is added
|
|
16673
|
+
*
|
|
16674
|
+
* @param iso8601
|
|
16534
16675
|
*/
|
|
16535
16676
|
function dateFromISO(iso8601) {
|
|
16536
16677
|
if (iso8601 instanceof Date) {
|
|
@@ -16549,6 +16690,8 @@ function dateFromISO(iso8601) {
|
|
|
16549
16690
|
}
|
|
16550
16691
|
/**
|
|
16551
16692
|
* Return first portion of ISO string (YYYY-mm-dd)
|
|
16693
|
+
*
|
|
16694
|
+
* @param date
|
|
16552
16695
|
*/
|
|
16553
16696
|
function dateToISO(date) {
|
|
16554
16697
|
if (typeof date === "string") {
|
|
@@ -16561,6 +16704,9 @@ function dateToISO(date) {
|
|
|
16561
16704
|
}
|
|
16562
16705
|
/**
|
|
16563
16706
|
* Check if two dates are the same day, month, year
|
|
16707
|
+
*
|
|
16708
|
+
* @param d1
|
|
16709
|
+
* @param d2
|
|
16564
16710
|
*/
|
|
16565
16711
|
function sameDate(d1, d2) {
|
|
16566
16712
|
return (d1 instanceof Date &&
|
|
@@ -16571,6 +16717,8 @@ function sameDate(d1, d2) {
|
|
|
16571
16717
|
}
|
|
16572
16718
|
/**
|
|
16573
16719
|
* Get a date one month in the past
|
|
16720
|
+
*
|
|
16721
|
+
* @param date
|
|
16574
16722
|
*/
|
|
16575
16723
|
function prevMonth(date) {
|
|
16576
16724
|
const month = date.getMonth();
|
|
@@ -16584,6 +16732,8 @@ function prevMonth(date) {
|
|
|
16584
16732
|
}
|
|
16585
16733
|
/**
|
|
16586
16734
|
* Get a date one month in the future
|
|
16735
|
+
*
|
|
16736
|
+
* @param date
|
|
16587
16737
|
*/
|
|
16588
16738
|
function nextMonth(date) {
|
|
16589
16739
|
const month = date.getMonth();
|
|
@@ -16597,6 +16747,9 @@ function nextMonth(date) {
|
|
|
16597
16747
|
}
|
|
16598
16748
|
/**
|
|
16599
16749
|
* Translate a number into a given locals numeral system
|
|
16750
|
+
*
|
|
16751
|
+
* @param num
|
|
16752
|
+
* @param localeData
|
|
16600
16753
|
*/
|
|
16601
16754
|
function localizeNumber(num, localeData) {
|
|
16602
16755
|
return String(num)
|
|
@@ -16606,6 +16759,9 @@ function localizeNumber(num, localeData) {
|
|
|
16606
16759
|
}
|
|
16607
16760
|
/**
|
|
16608
16761
|
* Calculate actual number from localized string
|
|
16762
|
+
*
|
|
16763
|
+
* @param str
|
|
16764
|
+
* @param localeData
|
|
16609
16765
|
*/
|
|
16610
16766
|
function parseNumber(str, localeData) {
|
|
16611
16767
|
const numerals = "0123456789";
|
|
@@ -16618,6 +16774,9 @@ function parseNumber(str, localeData) {
|
|
|
16618
16774
|
/**
|
|
16619
16775
|
* Parse numeric units for day, month, and year from a localized string
|
|
16620
16776
|
* month starts at 0 (can pass to date constructor)
|
|
16777
|
+
*
|
|
16778
|
+
* @param str
|
|
16779
|
+
* @param localeData
|
|
16621
16780
|
*/
|
|
16622
16781
|
function parseDateString(str, localeData) {
|
|
16623
16782
|
const { separator, unitOrder } = localeData;
|
|
@@ -16631,6 +16790,8 @@ function parseDateString(str, localeData) {
|
|
|
16631
16790
|
}
|
|
16632
16791
|
/**
|
|
16633
16792
|
* Convert eastern arbic numerals
|
|
16793
|
+
*
|
|
16794
|
+
* @param str
|
|
16634
16795
|
*/
|
|
16635
16796
|
function replaceArabicNumerals(str = "") {
|
|
16636
16797
|
return str
|
|
@@ -16639,6 +16800,8 @@ function replaceArabicNumerals(str = "") {
|
|
|
16639
16800
|
}
|
|
16640
16801
|
/**
|
|
16641
16802
|
* Based on the unitOrder string, find order of month, day, and year for locale
|
|
16803
|
+
*
|
|
16804
|
+
* @param unitOrder
|
|
16642
16805
|
*/
|
|
16643
16806
|
function getOrder(unitOrder) {
|
|
16644
16807
|
const signifiers = ["d", "m", "y"];
|
|
@@ -16647,6 +16810,9 @@ function getOrder(unitOrder) {
|
|
|
16647
16810
|
}
|
|
16648
16811
|
/**
|
|
16649
16812
|
* Get number of days between two dates
|
|
16813
|
+
*
|
|
16814
|
+
* @param date1
|
|
16815
|
+
* @param date2
|
|
16650
16816
|
*/
|
|
16651
16817
|
function getDaysDiff(date1, date2) {
|
|
16652
16818
|
const ts1 = date1.getTime();
|
|
@@ -16668,15 +16834,21 @@ class DatePicker {
|
|
|
16668
16834
|
registerInstance(this, hostRef);
|
|
16669
16835
|
this.calciteDatePickerChange = createEvent(this, "calciteDatePickerChange", 7);
|
|
16670
16836
|
this.calciteDatePickerRangeChange = createEvent(this, "calciteDatePickerRangeChange", 7);
|
|
16671
|
-
/**
|
|
16837
|
+
/**
|
|
16838
|
+
* Localized string for "previous month" (used for aria label)
|
|
16839
|
+
*
|
|
16672
16840
|
* @default "Previous month"
|
|
16673
16841
|
*/
|
|
16674
16842
|
this.intlPrevMonth = TEXT$f.prevMonth;
|
|
16675
|
-
/**
|
|
16843
|
+
/**
|
|
16844
|
+
* Localized string for "next month" (used for aria label)
|
|
16845
|
+
*
|
|
16676
16846
|
* @default "Next month"
|
|
16677
16847
|
*/
|
|
16678
16848
|
this.intlNextMonth = TEXT$f.nextMonth;
|
|
16679
|
-
/**
|
|
16849
|
+
/**
|
|
16850
|
+
* Localized string for "year" (used for aria label)
|
|
16851
|
+
*
|
|
16680
16852
|
* @default "Year"
|
|
16681
16853
|
*/
|
|
16682
16854
|
this.intlYear = TEXT$f.year;
|
|
@@ -16792,6 +16964,7 @@ class DatePicker {
|
|
|
16792
16964
|
this.hoverRange = undefined;
|
|
16793
16965
|
}
|
|
16794
16966
|
}
|
|
16967
|
+
e.stopPropagation();
|
|
16795
16968
|
};
|
|
16796
16969
|
this.monthMouseOutChange = () => {
|
|
16797
16970
|
if (this.hoverRange) {
|
|
@@ -16817,6 +16990,8 @@ class DatePicker {
|
|
|
16817
16990
|
};
|
|
16818
16991
|
/**
|
|
16819
16992
|
* Event handler for when the selected date changes
|
|
16993
|
+
*
|
|
16994
|
+
* @param e
|
|
16820
16995
|
*/
|
|
16821
16996
|
this.monthDateChange = (e) => {
|
|
16822
16997
|
const date = new Date(e.detail);
|
|
@@ -16984,15 +17159,24 @@ class DatePicker {
|
|
|
16984
17159
|
}
|
|
16985
17160
|
/**
|
|
16986
17161
|
* Render calcite-date-picker-month-header and calcite-date-picker-month
|
|
17162
|
+
*
|
|
17163
|
+
* @param activeDate
|
|
17164
|
+
* @param maxDate
|
|
17165
|
+
* @param minDate
|
|
17166
|
+
* @param date
|
|
17167
|
+
* @param endDate
|
|
16987
17168
|
*/
|
|
16988
17169
|
renderCalendar(activeDate, maxDate, minDate, date, endDate) {
|
|
16989
17170
|
return (this.localeData && [
|
|
16990
17171
|
hAsync("calcite-date-picker-month-header", { activeDate: activeDate, headingLevel: this.headingLevel || HEADING_LEVEL$6, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerSelect: this.monthHeaderSelectChange, scale: this.scale, selectedDate: this.activeRange === "end" ? endDate : date || new Date() }),
|
|
16991
|
-
hAsync("calcite-date-picker-month", { activeDate: activeDate, endDate: this.range ? endDate : undefined, hoverRange: this.hoverRange, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerActiveDateChange: this.monthActiveDateChange,
|
|
17172
|
+
hAsync("calcite-date-picker-month", { activeDate: activeDate, endDate: this.range ? endDate : undefined, hoverRange: this.hoverRange, localeData: this.localeData, max: maxDate, min: minDate, onCalciteDatePickerActiveDateChange: this.monthActiveDateChange, onCalciteDatePickerSelect: this.monthDateChange, onCalciteInternalDatePickerHover: this.monthHoverChange, onCalciteInternalDatePickerMouseOut: this.monthMouseOutChange, scale: this.scale, selectedDate: this.activeRange === "end" ? endDate : date, startDate: this.range ? date : undefined })
|
|
16992
17173
|
]);
|
|
16993
17174
|
}
|
|
16994
17175
|
/**
|
|
16995
17176
|
* Update date instance of start if valid
|
|
17177
|
+
*
|
|
17178
|
+
* @param startDate
|
|
17179
|
+
* @param emit
|
|
16996
17180
|
*/
|
|
16997
17181
|
setStartAsDate(startDate, emit) {
|
|
16998
17182
|
this.startAsDate = startDate;
|
|
@@ -17006,6 +17190,9 @@ class DatePicker {
|
|
|
17006
17190
|
}
|
|
17007
17191
|
/**
|
|
17008
17192
|
* Update date instance of end if valid
|
|
17193
|
+
*
|
|
17194
|
+
* @param endDate
|
|
17195
|
+
* @param emit
|
|
17009
17196
|
*/
|
|
17010
17197
|
setEndAsDate(endDate, emit) {
|
|
17011
17198
|
this.endAsDate = endDate;
|
|
@@ -17029,6 +17216,10 @@ class DatePicker {
|
|
|
17029
17216
|
}
|
|
17030
17217
|
/**
|
|
17031
17218
|
* Get an active date using the value, or current date as default
|
|
17219
|
+
*
|
|
17220
|
+
* @param value
|
|
17221
|
+
* @param min
|
|
17222
|
+
* @param max
|
|
17032
17223
|
*/
|
|
17033
17224
|
getActiveDate(value, min, max) {
|
|
17034
17225
|
return dateFromRange(this.activeDate, min, max) || value || dateFromRange(new Date(), min, max);
|
|
@@ -17094,7 +17285,7 @@ class DatePickerDay {
|
|
|
17094
17285
|
constructor(hostRef) {
|
|
17095
17286
|
registerInstance(this, hostRef);
|
|
17096
17287
|
this.calciteDaySelect = createEvent(this, "calciteDaySelect", 7);
|
|
17097
|
-
this.
|
|
17288
|
+
this.calciteInternalDayHover = createEvent(this, "calciteInternalDayHover", 7);
|
|
17098
17289
|
/** Date is outside of range and can't be selected */
|
|
17099
17290
|
this.disabled = false;
|
|
17100
17291
|
/** Date is in the current month. */
|
|
@@ -17129,7 +17320,7 @@ class DatePickerDay {
|
|
|
17129
17320
|
};
|
|
17130
17321
|
}
|
|
17131
17322
|
mouseoverHandler() {
|
|
17132
|
-
this.
|
|
17323
|
+
this.calciteInternalDayHover.emit({
|
|
17133
17324
|
disabled: this.disabled
|
|
17134
17325
|
});
|
|
17135
17326
|
}
|
|
@@ -17184,9 +17375,9 @@ class DatePickerMonth {
|
|
|
17184
17375
|
constructor(hostRef) {
|
|
17185
17376
|
registerInstance(this, hostRef);
|
|
17186
17377
|
this.calciteDatePickerSelect = createEvent(this, "calciteDatePickerSelect", 7);
|
|
17187
|
-
this.
|
|
17378
|
+
this.calciteInternalDatePickerHover = createEvent(this, "calciteInternalDatePickerHover", 7);
|
|
17188
17379
|
this.calciteDatePickerActiveDateChange = createEvent(this, "calciteDatePickerActiveDateChange", 7);
|
|
17189
|
-
this.
|
|
17380
|
+
this.calciteInternalDatePickerMouseOut = createEvent(this, "calciteInternalDatePickerMouseOut", 7);
|
|
17190
17381
|
/** Date currently active.*/
|
|
17191
17382
|
this.activeDate = new Date();
|
|
17192
17383
|
//--------------------------------------------------------------------------
|
|
@@ -17249,11 +17440,12 @@ class DatePickerMonth {
|
|
|
17249
17440
|
this.dayHover = (e) => {
|
|
17250
17441
|
const target = e.target;
|
|
17251
17442
|
if (e.detail.disabled) {
|
|
17252
|
-
this.
|
|
17443
|
+
this.calciteInternalDatePickerMouseOut.emit();
|
|
17253
17444
|
}
|
|
17254
17445
|
else {
|
|
17255
|
-
this.
|
|
17446
|
+
this.calciteInternalDatePickerHover.emit(target.value);
|
|
17256
17447
|
}
|
|
17448
|
+
e.stopPropagation();
|
|
17257
17449
|
};
|
|
17258
17450
|
this.daySelect = (e) => {
|
|
17259
17451
|
const target = e.target;
|
|
@@ -17261,7 +17453,7 @@ class DatePickerMonth {
|
|
|
17261
17453
|
};
|
|
17262
17454
|
}
|
|
17263
17455
|
mouseoutHandler() {
|
|
17264
|
-
this.
|
|
17456
|
+
this.calciteInternalDatePickerMouseOut.emit();
|
|
17265
17457
|
}
|
|
17266
17458
|
//--------------------------------------------------------------------------
|
|
17267
17459
|
//
|
|
@@ -17306,6 +17498,8 @@ class DatePickerMonth {
|
|
|
17306
17498
|
//--------------------------------------------------------------------------
|
|
17307
17499
|
/**
|
|
17308
17500
|
* Add n months to the current month
|
|
17501
|
+
*
|
|
17502
|
+
* @param step
|
|
17309
17503
|
*/
|
|
17310
17504
|
addMonths(step) {
|
|
17311
17505
|
const nextDate = new Date(this.activeDate);
|
|
@@ -17315,6 +17509,8 @@ class DatePickerMonth {
|
|
|
17315
17509
|
}
|
|
17316
17510
|
/**
|
|
17317
17511
|
* Add n days to the current date
|
|
17512
|
+
*
|
|
17513
|
+
* @param step
|
|
17318
17514
|
*/
|
|
17319
17515
|
addDays(step = 0) {
|
|
17320
17516
|
const nextDate = new Date(this.activeDate);
|
|
@@ -17324,6 +17520,10 @@ class DatePickerMonth {
|
|
|
17324
17520
|
}
|
|
17325
17521
|
/**
|
|
17326
17522
|
* Get dates for last days of the previous month
|
|
17523
|
+
*
|
|
17524
|
+
* @param month
|
|
17525
|
+
* @param year
|
|
17526
|
+
* @param startOfWeek
|
|
17327
17527
|
*/
|
|
17328
17528
|
getPrevMonthdays(month, year, startOfWeek) {
|
|
17329
17529
|
const lastDate = new Date(year, month, 0);
|
|
@@ -17340,6 +17540,9 @@ class DatePickerMonth {
|
|
|
17340
17540
|
}
|
|
17341
17541
|
/**
|
|
17342
17542
|
* Get dates for the current month
|
|
17543
|
+
*
|
|
17544
|
+
* @param month
|
|
17545
|
+
* @param year
|
|
17343
17546
|
*/
|
|
17344
17547
|
getCurrentMonthDays(month, year) {
|
|
17345
17548
|
const num = new Date(year, month + 1, 0).getDate();
|
|
@@ -17351,6 +17554,10 @@ class DatePickerMonth {
|
|
|
17351
17554
|
}
|
|
17352
17555
|
/**
|
|
17353
17556
|
* Get dates for first days of the next month
|
|
17557
|
+
*
|
|
17558
|
+
* @param month
|
|
17559
|
+
* @param year
|
|
17560
|
+
* @param startOfWeek
|
|
17354
17561
|
*/
|
|
17355
17562
|
getNextMonthDays(month, year, startOfWeek) {
|
|
17356
17563
|
const endDay = new Date(year, month + 1, 0).getDay();
|
|
@@ -17365,6 +17572,8 @@ class DatePickerMonth {
|
|
|
17365
17572
|
}
|
|
17366
17573
|
/**
|
|
17367
17574
|
* Determine if the date is in between the start and end dates
|
|
17575
|
+
*
|
|
17576
|
+
* @param date
|
|
17368
17577
|
*/
|
|
17369
17578
|
betweenSelectedRange(date) {
|
|
17370
17579
|
return !!(this.startDate &&
|
|
@@ -17375,6 +17584,8 @@ class DatePickerMonth {
|
|
|
17375
17584
|
}
|
|
17376
17585
|
/**
|
|
17377
17586
|
* Determine if the date should be in selected state
|
|
17587
|
+
*
|
|
17588
|
+
* @param date
|
|
17378
17589
|
*/
|
|
17379
17590
|
isSelected(date) {
|
|
17380
17591
|
return !!(sameDate(date, this.selectedDate) ||
|
|
@@ -17383,6 +17594,8 @@ class DatePickerMonth {
|
|
|
17383
17594
|
}
|
|
17384
17595
|
/**
|
|
17385
17596
|
* Determine if the date is the start of the date range
|
|
17597
|
+
*
|
|
17598
|
+
* @param date
|
|
17386
17599
|
*/
|
|
17387
17600
|
isStartOfRange(date) {
|
|
17388
17601
|
return !!(this.startDate &&
|
|
@@ -17399,6 +17612,12 @@ class DatePickerMonth {
|
|
|
17399
17612
|
}
|
|
17400
17613
|
/**
|
|
17401
17614
|
* Render calcite-date-picker-day
|
|
17615
|
+
*
|
|
17616
|
+
* @param active
|
|
17617
|
+
* @param day
|
|
17618
|
+
* @param date
|
|
17619
|
+
* @param currentMonth
|
|
17620
|
+
* @param ref
|
|
17402
17621
|
*/
|
|
17403
17622
|
renderDateDay(active, day, date, currentMonth, ref) {
|
|
17404
17623
|
var _a;
|
|
@@ -17410,7 +17629,7 @@ class DatePickerMonth {
|
|
|
17410
17629
|
"hover--outside-range": this.startDate && !isHoverInRange,
|
|
17411
17630
|
"focused--start": isFocusedOnStart,
|
|
17412
17631
|
"focused--end": !isFocusedOnStart
|
|
17413
|
-
}, currentMonth: currentMonth, day: day, disabled: !inRange(date, this.min, this.max), endOfRange: this.isEndOfRange(date), highlighted: this.betweenSelectedRange(date), key: date.toDateString(), localeData: this.localeData,
|
|
17632
|
+
}, currentMonth: currentMonth, day: day, disabled: !inRange(date, this.min, this.max), endOfRange: this.isEndOfRange(date), highlighted: this.betweenSelectedRange(date), key: date.toDateString(), localeData: this.localeData, onCalciteDaySelect: this.daySelect, onCalciteInternalDayHover: this.dayHover, range: !!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate), rangeHover: this.isRangeHover(date), ref: (el) => {
|
|
17414
17633
|
// when moving via keyboard, focus must be updated on active date
|
|
17415
17634
|
if (ref && active && this.activeFocus) {
|
|
17416
17635
|
el === null || el === void 0 ? void 0 : el.focus();
|
|
@@ -17481,6 +17700,8 @@ class DatePickerMonthHeader {
|
|
|
17481
17700
|
//--------------------------------------------------------------------------
|
|
17482
17701
|
/**
|
|
17483
17702
|
* Increment year on UP/DOWN keys
|
|
17703
|
+
*
|
|
17704
|
+
* @param e
|
|
17484
17705
|
*/
|
|
17485
17706
|
this.onYearKey = (e) => {
|
|
17486
17707
|
const localizedYear = e.target.value;
|
|
@@ -17580,6 +17801,11 @@ class DatePickerMonthHeader {
|
|
|
17580
17801
|
/**
|
|
17581
17802
|
* Parse localized year string from input,
|
|
17582
17803
|
* set to active if in range
|
|
17804
|
+
*
|
|
17805
|
+
* @param root0
|
|
17806
|
+
* @param root0.localizedYear
|
|
17807
|
+
* @param root0.commit
|
|
17808
|
+
* @param root0.offset
|
|
17583
17809
|
*/
|
|
17584
17810
|
setYear({ localizedYear, commit = true, offset = 0 }) {
|
|
17585
17811
|
const { yearInput, activeDate, localeData } = this;
|
|
@@ -17656,12 +17882,13 @@ class Dropdown {
|
|
|
17656
17882
|
/**
|
|
17657
17883
|
specify the maximum number of calcite-dropdown-items to display before showing the scroller, must be greater than 0 -
|
|
17658
17884
|
this value does not include groupTitles passed to calcite-dropdown-group
|
|
17659
|
-
|
|
17885
|
+
*/
|
|
17660
17886
|
this.maxItems = 0;
|
|
17661
17887
|
/** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */
|
|
17662
17888
|
this.overlayPositioning = "absolute";
|
|
17663
17889
|
/**
|
|
17664
17890
|
* Determines where the dropdown will be positioned relative to the button.
|
|
17891
|
+
*
|
|
17665
17892
|
* @default "bottom-leading"
|
|
17666
17893
|
*/
|
|
17667
17894
|
this.placement = defaultMenuPlacement;
|
|
@@ -17848,8 +18075,9 @@ class Dropdown {
|
|
|
17848
18075
|
}
|
|
17849
18076
|
this.closeCalciteDropdown(false);
|
|
17850
18077
|
}
|
|
17851
|
-
closeCalciteDropdownOnEvent() {
|
|
18078
|
+
closeCalciteDropdownOnEvent(e) {
|
|
17852
18079
|
this.closeCalciteDropdown();
|
|
18080
|
+
e.stopPropagation();
|
|
17853
18081
|
}
|
|
17854
18082
|
closeCalciteDropdownOnOpenEvent(e) {
|
|
17855
18083
|
if (e.composedPath().includes(this.el)) {
|
|
@@ -17867,7 +18095,7 @@ class Dropdown {
|
|
|
17867
18095
|
this.closeCalciteDropdown();
|
|
17868
18096
|
}
|
|
17869
18097
|
}
|
|
17870
|
-
|
|
18098
|
+
calciteInternalDropdownItemKeyEvent(e) {
|
|
17871
18099
|
const { keyboardEvent } = e.detail;
|
|
17872
18100
|
// handle edge
|
|
17873
18101
|
const target = keyboardEvent.target;
|
|
@@ -17912,6 +18140,7 @@ class Dropdown {
|
|
|
17912
18140
|
event.detail.requestedDropdownGroup.selectionMode === "none") {
|
|
17913
18141
|
this.closeCalciteDropdown();
|
|
17914
18142
|
}
|
|
18143
|
+
event.stopPropagation();
|
|
17915
18144
|
}
|
|
17916
18145
|
getModifiers() {
|
|
17917
18146
|
const flipModifier = {
|
|
@@ -18034,7 +18263,7 @@ class Dropdown {
|
|
|
18034
18263
|
"width": [513],
|
|
18035
18264
|
"reposition": [64]
|
|
18036
18265
|
},
|
|
18037
|
-
"$listeners$": [[8, "click", "closeCalciteDropdownOnClick"], [0, "
|
|
18266
|
+
"$listeners$": [[8, "click", "closeCalciteDropdownOnClick"], [0, "calciteInternalDropdownCloseRequest", "closeCalciteDropdownOnEvent"], [8, "calciteDropdownOpen", "closeCalciteDropdownOnOpenEvent"], [1, "mouseenter", "mouseEnterHandler"], [1, "mouseleave", "mouseLeaveHandler"], [0, "calciteInternalDropdownItemKeyEvent", "calciteInternalDropdownItemKeyEvent"], [0, "calciteInternalDropdownItemSelect", "handleItemSelect"]],
|
|
18038
18267
|
"$lazyBundleId$": "-",
|
|
18039
18268
|
"$attrsToReflect$": [["active", "active"], ["disableCloseOnSelect", "disable-close-on-select"], ["disabled", "disabled"], ["placement", "placement"], ["scale", "scale"], ["type", "type"], ["width", "width"]]
|
|
18040
18269
|
}; }
|
|
@@ -18054,9 +18283,11 @@ const dropdownGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@ke
|
|
|
18054
18283
|
class DropdownGroup {
|
|
18055
18284
|
constructor(hostRef) {
|
|
18056
18285
|
registerInstance(this, hostRef);
|
|
18057
|
-
this.
|
|
18058
|
-
/**
|
|
18059
|
-
|
|
18286
|
+
this.calciteInternalDropdownItemChange = createEvent(this, "calciteInternalDropdownItemChange", 7);
|
|
18287
|
+
/**
|
|
18288
|
+
specify the selection mode - multi (allow any number of (or no) active items), single (allow and require one active item),
|
|
18289
|
+
none (no active items), defaults to single
|
|
18290
|
+
*/
|
|
18060
18291
|
this.selectionMode = "single";
|
|
18061
18292
|
}
|
|
18062
18293
|
//--------------------------------------------------------------------------
|
|
@@ -18086,7 +18317,7 @@ class DropdownGroup {
|
|
|
18086
18317
|
updateActiveItemOnChange(event) {
|
|
18087
18318
|
this.requestedDropdownGroup = event.detail.requestedDropdownGroup;
|
|
18088
18319
|
this.requestedDropdownItem = event.detail.requestedDropdownItem;
|
|
18089
|
-
this.
|
|
18320
|
+
this.calciteInternalDropdownItemChange.emit({
|
|
18090
18321
|
requestedDropdownGroup: this.requestedDropdownGroup,
|
|
18091
18322
|
requestedDropdownItem: this.requestedDropdownItem
|
|
18092
18323
|
});
|
|
@@ -18109,7 +18340,7 @@ class DropdownGroup {
|
|
|
18109
18340
|
"selectionMode": [513, "selection-mode"],
|
|
18110
18341
|
"scale": [513]
|
|
18111
18342
|
},
|
|
18112
|
-
"$listeners$": [[0, "
|
|
18343
|
+
"$listeners$": [[0, "calciteInternalDropdownItemSelect", "updateActiveItemOnChange"]],
|
|
18113
18344
|
"$lazyBundleId$": "-",
|
|
18114
18345
|
"$attrsToReflect$": [["groupTitle", "group-title"], ["selectionMode", "selection-mode"], ["scale", "scale"]]
|
|
18115
18346
|
}; }
|
|
@@ -18133,9 +18364,9 @@ const dropdownItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@key
|
|
|
18133
18364
|
class DropdownItem {
|
|
18134
18365
|
constructor(hostRef) {
|
|
18135
18366
|
registerInstance(this, hostRef);
|
|
18136
|
-
this.
|
|
18137
|
-
this.
|
|
18138
|
-
this.
|
|
18367
|
+
this.calciteInternalDropdownItemSelect = createEvent(this, "calciteInternalDropdownItemSelect", 7);
|
|
18368
|
+
this.calciteInternalDropdownItemKeyEvent = createEvent(this, "calciteInternalDropdownItemKeyEvent", 7);
|
|
18369
|
+
this.calciteInternalDropdownCloseRequest = createEvent(this, "calciteInternalDropdownCloseRequest", 7);
|
|
18139
18370
|
//--------------------------------------------------------------------------
|
|
18140
18371
|
//
|
|
18141
18372
|
// Public Properties
|
|
@@ -18220,14 +18451,14 @@ class DropdownItem {
|
|
|
18220
18451
|
}
|
|
18221
18452
|
break;
|
|
18222
18453
|
case "Escape":
|
|
18223
|
-
this.
|
|
18454
|
+
this.calciteInternalDropdownCloseRequest.emit();
|
|
18224
18455
|
break;
|
|
18225
18456
|
case "Tab":
|
|
18226
18457
|
case "ArrowUp":
|
|
18227
18458
|
case "ArrowDown":
|
|
18228
18459
|
case "Home":
|
|
18229
18460
|
case "End":
|
|
18230
|
-
this.
|
|
18461
|
+
this.calciteInternalDropdownItemKeyEvent.emit({ keyboardEvent: e });
|
|
18231
18462
|
break;
|
|
18232
18463
|
}
|
|
18233
18464
|
e.preventDefault();
|
|
@@ -18239,6 +18470,7 @@ class DropdownItem {
|
|
|
18239
18470
|
this.requestedDropdownItem = event.detail.requestedDropdownItem;
|
|
18240
18471
|
this.determineActiveItem();
|
|
18241
18472
|
}
|
|
18473
|
+
event.stopPropagation();
|
|
18242
18474
|
}
|
|
18243
18475
|
//--------------------------------------------------------------------------
|
|
18244
18476
|
//
|
|
@@ -18273,7 +18505,7 @@ class DropdownItem {
|
|
|
18273
18505
|
}
|
|
18274
18506
|
}
|
|
18275
18507
|
emitRequestedItem() {
|
|
18276
|
-
this.
|
|
18508
|
+
this.calciteInternalDropdownItemSelect.emit({
|
|
18277
18509
|
requestedDropdownItem: this.el,
|
|
18278
18510
|
requestedDropdownGroup: this.parentDropdownGroupEl
|
|
18279
18511
|
});
|
|
@@ -18294,7 +18526,7 @@ class DropdownItem {
|
|
|
18294
18526
|
"target": [1],
|
|
18295
18527
|
"setFocus": [64]
|
|
18296
18528
|
},
|
|
18297
|
-
"$listeners$": [[0, "click", "onClick"], [0, "keydown", "keyDownHandler"], [16, "
|
|
18529
|
+
"$listeners$": [[0, "click", "onClick"], [0, "keydown", "keyDownHandler"], [16, "calciteInternalDropdownItemChange", "updateActiveItemOnChange"]],
|
|
18298
18530
|
"$lazyBundleId$": "-",
|
|
18299
18531
|
"$attrsToReflect$": [["active", "active"], ["iconFlipRtl", "icon-flip-rtl"], ["iconStart", "icon-start"], ["iconEnd", "icon-end"], ["href", "href"]]
|
|
18300
18532
|
}; }
|
|
@@ -18331,6 +18563,7 @@ class Fab {
|
|
|
18331
18563
|
this.disabled = false;
|
|
18332
18564
|
/**
|
|
18333
18565
|
* The name of the icon to display. The value of this property must match the icon name from https://esri.github.io/calcite-ui-icons/.
|
|
18566
|
+
*
|
|
18334
18567
|
* @default "plus"
|
|
18335
18568
|
*/
|
|
18336
18569
|
this.icon = ICONS$9.plus;
|
|
@@ -18702,6 +18935,10 @@ class Flow {
|
|
|
18702
18935
|
* Calculate slope of the tangents
|
|
18703
18936
|
* uses Steffen interpolation as it's monotonic
|
|
18704
18937
|
* http://jrwalsh1.github.io/posts/interpolations/
|
|
18938
|
+
*
|
|
18939
|
+
* @param p0
|
|
18940
|
+
* @param p1
|
|
18941
|
+
* @param p2
|
|
18705
18942
|
*/
|
|
18706
18943
|
function slope(p0, p1, p2) {
|
|
18707
18944
|
const dx = p1[0] - p0[0];
|
|
@@ -18715,6 +18952,10 @@ function slope(p0, p1, p2) {
|
|
|
18715
18952
|
}
|
|
18716
18953
|
/**
|
|
18717
18954
|
* Calculate slope for just one tangent (single-sided)
|
|
18955
|
+
*
|
|
18956
|
+
* @param p0
|
|
18957
|
+
* @param p1
|
|
18958
|
+
* @param m
|
|
18718
18959
|
*/
|
|
18719
18960
|
function slopeSingle(p0, p1, m) {
|
|
18720
18961
|
const dx = p1[0] - p0[0];
|
|
@@ -18727,6 +18968,12 @@ function slopeSingle(p0, p1, m) {
|
|
|
18727
18968
|
*
|
|
18728
18969
|
* Translates Hermite Spline to Beziér curve:
|
|
18729
18970
|
* stackoverflow.com/questions/42574940/
|
|
18971
|
+
*
|
|
18972
|
+
* @param p0
|
|
18973
|
+
* @param p1
|
|
18974
|
+
* @param m0
|
|
18975
|
+
* @param m1
|
|
18976
|
+
* @param t
|
|
18730
18977
|
*/
|
|
18731
18978
|
function bezier(p0, p1, m0, m1, t) {
|
|
18732
18979
|
const [x0, y0] = p0;
|
|
@@ -18740,6 +18987,12 @@ function bezier(p0, p1, m0, m1, t) {
|
|
|
18740
18987
|
/**
|
|
18741
18988
|
* Generate a function which will translate a point
|
|
18742
18989
|
* from the data coordinate space to svg viewbox oriented pixels
|
|
18990
|
+
*
|
|
18991
|
+
* @param root0
|
|
18992
|
+
* @param root0.width
|
|
18993
|
+
* @param root0.height
|
|
18994
|
+
* @param root0.min
|
|
18995
|
+
* @param root0.max
|
|
18743
18996
|
*/
|
|
18744
18997
|
function translate({ width, height, min, max }) {
|
|
18745
18998
|
const rangeX = max[0] - min[0];
|
|
@@ -18752,6 +19005,8 @@ function translate({ width, height, min, max }) {
|
|
|
18752
19005
|
}
|
|
18753
19006
|
/**
|
|
18754
19007
|
* Get the min and max values from the dataset
|
|
19008
|
+
*
|
|
19009
|
+
* @param data
|
|
18755
19010
|
*/
|
|
18756
19011
|
function range(data) {
|
|
18757
19012
|
const [startX, startY] = data[0];
|
|
@@ -18765,6 +19020,12 @@ function range(data) {
|
|
|
18765
19020
|
/**
|
|
18766
19021
|
* Generate drawing commands for an area graph
|
|
18767
19022
|
* returns a string can can be passed directly to a path element's `d` attribute
|
|
19023
|
+
*
|
|
19024
|
+
* @param root0
|
|
19025
|
+
* @param root0.data
|
|
19026
|
+
* @param root0.min
|
|
19027
|
+
* @param root0.max
|
|
19028
|
+
* @param root0.t
|
|
18768
19029
|
*/
|
|
18769
19030
|
function area({ data, min, max, t }) {
|
|
18770
19031
|
if (data.length === 0) {
|
|
@@ -18797,7 +19058,7 @@ function area({ data, min, max, t }) {
|
|
|
18797
19058
|
return `${commands} ${end} L ${maxX},${minY} Z`;
|
|
18798
19059
|
}
|
|
18799
19060
|
|
|
18800
|
-
const graphCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-graph:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-graph{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-graph{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-graph{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-graph{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-graph{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-graph:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-graph-h{display:none}/*!@:host*/.sc-calcite-graph-h{display:block}/*!@.svg*/.svg.sc-calcite-graph{fill:currentColor;stroke:transparent;margin:0px;display:block;height:100%;width:100%;padding:0px}/*!@.svg .graph-path--highlight*/.svg.sc-calcite-graph .graph-path--highlight.sc-calcite-graph{fill:var(--calcite-ui-brand);opacity:0.5}";
|
|
19061
|
+
const graphCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-graph:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-graph{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-graph{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-graph{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-graph{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-graph{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-graph:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-graph-h{display:none}/*!@:host*/.sc-calcite-graph-h{display:block;height:100%}/*!@.svg*/.svg.sc-calcite-graph{fill:currentColor;stroke:transparent;margin:0px;display:block;height:100%;width:100%;padding:0px}/*!@.svg .graph-path--highlight*/.svg.sc-calcite-graph .graph-path--highlight.sc-calcite-graph{fill:var(--calcite-ui-brand);opacity:0.5}";
|
|
18801
19062
|
|
|
18802
19063
|
class Graph {
|
|
18803
19064
|
constructor(hostRef) {
|
|
@@ -18921,7 +19182,7 @@ class Handle {
|
|
|
18921
19182
|
//
|
|
18922
19183
|
// --------------------------------------------------------------------------
|
|
18923
19184
|
/**
|
|
18924
|
-
* @internal
|
|
19185
|
+
* @internal
|
|
18925
19186
|
*/
|
|
18926
19187
|
this.activated = false;
|
|
18927
19188
|
/**
|
|
@@ -19121,7 +19382,7 @@ class InlineEditable {
|
|
|
19121
19382
|
registerInstance(this, hostRef);
|
|
19122
19383
|
this.calciteInlineEditableEditCancel = createEvent(this, "calciteInlineEditableEditCancel", 7);
|
|
19123
19384
|
this.calciteInlineEditableEditConfirm = createEvent(this, "calciteInlineEditableEditConfirm", 7);
|
|
19124
|
-
this.
|
|
19385
|
+
this.calciteInternalInlineEditableEnableEditingChange = createEvent(this, "calciteInternalInlineEditableEnableEditingChange", 7);
|
|
19125
19386
|
//--------------------------------------------------------------------------
|
|
19126
19387
|
//
|
|
19127
19388
|
// Props
|
|
@@ -19135,15 +19396,21 @@ class InlineEditable {
|
|
|
19135
19396
|
this.loading = false;
|
|
19136
19397
|
/** specify whether save/cancel controls should be displayed when editingEnabled is true, defaults to false */
|
|
19137
19398
|
this.controls = false;
|
|
19138
|
-
/**
|
|
19399
|
+
/**
|
|
19400
|
+
* specify text to be user for the enable editing button's aria-label, defaults to `Click to edit`
|
|
19401
|
+
*
|
|
19139
19402
|
* @default "Click to edit"
|
|
19140
19403
|
*/
|
|
19141
19404
|
this.intlEnableEditing = TEXT$d.intlEnablingEditing;
|
|
19142
|
-
/**
|
|
19405
|
+
/**
|
|
19406
|
+
* specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
19407
|
+
*
|
|
19143
19408
|
* @default "Cancel"
|
|
19144
19409
|
*/
|
|
19145
19410
|
this.intlCancelEditing = TEXT$d.intlCancelEditing;
|
|
19146
|
-
/**
|
|
19411
|
+
/**
|
|
19412
|
+
* specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
19413
|
+
*
|
|
19147
19414
|
* @default "Save"
|
|
19148
19415
|
*/
|
|
19149
19416
|
this.intlConfirmChanges = TEXT$d.intlConfirmChanges;
|
|
@@ -19153,7 +19420,7 @@ class InlineEditable {
|
|
|
19153
19420
|
this.valuePriorToEditing = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value;
|
|
19154
19421
|
this.editingEnabled = true;
|
|
19155
19422
|
(_b = this.inputElement) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
19156
|
-
this.
|
|
19423
|
+
this.calciteInternalInlineEditableEnableEditingChange.emit();
|
|
19157
19424
|
};
|
|
19158
19425
|
this.disableEditing = () => {
|
|
19159
19426
|
this.editingEnabled = false;
|
|
@@ -19332,7 +19599,7 @@ class InlineEditable {
|
|
|
19332
19599
|
"afterConfirm": [16],
|
|
19333
19600
|
"setFocus": [64]
|
|
19334
19601
|
},
|
|
19335
|
-
"$listeners$": [[0, "
|
|
19602
|
+
"$listeners$": [[0, "calciteInternalInputBlur", "blurHandler"]],
|
|
19336
19603
|
"$lazyBundleId$": "-",
|
|
19337
19604
|
"$attrsToReflect$": [["disabled", "disabled"], ["editingEnabled", "editing-enabled"], ["loading", "loading"], ["controls", "controls"], ["intlEnableEditing", "intl-enable-editing"], ["intlCancelEditing", "intl-cancel-editing"], ["intlConfirmChanges", "intl-confirm-changes"], ["scale", "scale"]]
|
|
19338
19605
|
}; }
|
|
@@ -19377,8 +19644,8 @@ const inputCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes
|
|
|
19377
19644
|
class Input {
|
|
19378
19645
|
constructor(hostRef) {
|
|
19379
19646
|
registerInstance(this, hostRef);
|
|
19380
|
-
this.
|
|
19381
|
-
this.
|
|
19647
|
+
this.calciteInternalInputFocus = createEvent(this, "calciteInternalInputFocus", 7);
|
|
19648
|
+
this.calciteInternalInputBlur = createEvent(this, "calciteInternalInputBlur", 7);
|
|
19382
19649
|
this.calciteInputInput = createEvent(this, "calciteInputInput", 7);
|
|
19383
19650
|
this.calciteInputChange = createEvent(this, "calciteInputChange", 7);
|
|
19384
19651
|
//--------------------------------------------------------------------------
|
|
@@ -19390,9 +19657,11 @@ class Input {
|
|
|
19390
19657
|
this.alignment = "start";
|
|
19391
19658
|
/** should the input autofocus */
|
|
19392
19659
|
this.autofocus = false;
|
|
19393
|
-
/**
|
|
19660
|
+
/**
|
|
19661
|
+
* optionally display a clear button that displays when field has a value
|
|
19394
19662
|
* shows by default for search, time, date
|
|
19395
|
-
* will not display for type="textarea"
|
|
19663
|
+
* will not display for type="textarea"
|
|
19664
|
+
*/
|
|
19396
19665
|
this.clearable = false;
|
|
19397
19666
|
/** is the input disabled */
|
|
19398
19667
|
this.disabled = false;
|
|
@@ -19402,6 +19671,7 @@ class Input {
|
|
|
19402
19671
|
this.hidden = false;
|
|
19403
19672
|
/**
|
|
19404
19673
|
* string to override English loading text
|
|
19674
|
+
*
|
|
19405
19675
|
* @default "Loading"
|
|
19406
19676
|
*/
|
|
19407
19677
|
this.intlLoading = TEXT$s.loading;
|
|
@@ -19413,6 +19683,7 @@ class Input {
|
|
|
19413
19683
|
this.locale = document.documentElement.lang || "en";
|
|
19414
19684
|
/**
|
|
19415
19685
|
* Toggles locale formatting for numbers.
|
|
19686
|
+
*
|
|
19416
19687
|
* @internal
|
|
19417
19688
|
*/
|
|
19418
19689
|
this.localeFormat = false;
|
|
@@ -19426,7 +19697,9 @@ class Input {
|
|
|
19426
19697
|
this.scale = "m";
|
|
19427
19698
|
/** specify the status of the input field, determines message and icons */
|
|
19428
19699
|
this.status = "idle";
|
|
19429
|
-
/**
|
|
19700
|
+
/**
|
|
19701
|
+
* @internal
|
|
19702
|
+
*/
|
|
19430
19703
|
this.editingEnabled = false;
|
|
19431
19704
|
/**
|
|
19432
19705
|
* specify the input type
|
|
@@ -19473,7 +19746,7 @@ class Input {
|
|
|
19473
19746
|
this.previousEmittedValue = this.value;
|
|
19474
19747
|
};
|
|
19475
19748
|
this.inputBlurHandler = () => {
|
|
19476
|
-
this.
|
|
19749
|
+
this.calciteInternalInputBlur.emit({
|
|
19477
19750
|
element: this.childEl,
|
|
19478
19751
|
value: this.value
|
|
19479
19752
|
});
|
|
@@ -19484,7 +19757,7 @@ class Input {
|
|
|
19484
19757
|
if (event.target !== slottedActionEl) {
|
|
19485
19758
|
this.setFocus();
|
|
19486
19759
|
}
|
|
19487
|
-
this.
|
|
19760
|
+
this.calciteInternalInputFocus.emit({
|
|
19488
19761
|
element: this.childEl,
|
|
19489
19762
|
value: this.value
|
|
19490
19763
|
});
|
|
@@ -19966,8 +20239,8 @@ class InputDatePicker {
|
|
|
19966
20239
|
this.calciteDatePickerChange = createEvent(this, "calciteDatePickerChange", 7);
|
|
19967
20240
|
this.calciteDatePickerRangeChange = createEvent(this, "calciteDatePickerRangeChange", 7);
|
|
19968
20241
|
this.calciteInputDatePickerChange = createEvent(this, "calciteInputDatePickerChange", 7);
|
|
19969
|
-
this.
|
|
19970
|
-
this.
|
|
20242
|
+
this.calciteInternalInputDatePickerOpen = createEvent(this, "calciteInternalInputDatePickerOpen", 7);
|
|
20243
|
+
this.calciteInternalInputDatePickerClose = createEvent(this, "calciteInternalInputDatePickerClose", 7);
|
|
19971
20244
|
//--------------------------------------------------------------------------
|
|
19972
20245
|
//
|
|
19973
20246
|
// Public Properties
|
|
@@ -19979,15 +20252,21 @@ class InputDatePicker {
|
|
|
19979
20252
|
this.disabled = false;
|
|
19980
20253
|
/** Expand or collapse when calendar does not have input */
|
|
19981
20254
|
this.active = false;
|
|
19982
|
-
/**
|
|
20255
|
+
/**
|
|
20256
|
+
* Localized string for "previous month" (used for aria label)
|
|
20257
|
+
*
|
|
19983
20258
|
* @default "Previous month"
|
|
19984
20259
|
*/
|
|
19985
20260
|
this.intlPrevMonth = TEXT$f.prevMonth;
|
|
19986
|
-
/**
|
|
20261
|
+
/**
|
|
20262
|
+
* Localized string for "next month" (used for aria label)
|
|
20263
|
+
*
|
|
19987
20264
|
* @default "Next month"
|
|
19988
20265
|
*/
|
|
19989
20266
|
this.intlNextMonth = TEXT$f.nextMonth;
|
|
19990
|
-
/**
|
|
20267
|
+
/**
|
|
20268
|
+
* Localized string for "year" (used for aria label)
|
|
20269
|
+
*
|
|
19991
20270
|
* @default "Year"
|
|
19992
20271
|
*/
|
|
19993
20272
|
this.intlYear = TEXT$f.year;
|
|
@@ -19997,6 +20276,7 @@ class InputDatePicker {
|
|
|
19997
20276
|
this.scale = "m";
|
|
19998
20277
|
/**
|
|
19999
20278
|
* Determines where the date-picker component will be positioned relative to the input.
|
|
20279
|
+
*
|
|
20000
20280
|
* @default "bottom-leading"
|
|
20001
20281
|
*/
|
|
20002
20282
|
this.placement = defaultMenuPlacement;
|
|
@@ -20030,8 +20310,8 @@ class InputDatePicker {
|
|
|
20030
20310
|
this.transitionEnd = (event) => {
|
|
20031
20311
|
if (event.propertyName === this.activeTransitionProp) {
|
|
20032
20312
|
this.active
|
|
20033
|
-
? this.
|
|
20034
|
-
: this.
|
|
20313
|
+
? this.calciteInternalInputDatePickerOpen.emit()
|
|
20314
|
+
: this.calciteInternalInputDatePickerClose.emit();
|
|
20035
20315
|
}
|
|
20036
20316
|
};
|
|
20037
20317
|
this.setStartInput = (el) => {
|
|
@@ -20083,6 +20363,8 @@ class InputDatePicker {
|
|
|
20083
20363
|
};
|
|
20084
20364
|
/**
|
|
20085
20365
|
* Event handler for when the selected date changes
|
|
20366
|
+
*
|
|
20367
|
+
* @param event
|
|
20086
20368
|
*/
|
|
20087
20369
|
this.handleDateChange = (event) => {
|
|
20088
20370
|
if (this.range) {
|
|
@@ -20241,7 +20523,7 @@ class InputDatePicker {
|
|
|
20241
20523
|
: null;
|
|
20242
20524
|
const formattedEndDate = endDate ? endDate.toLocaleDateString(this.locale) : "";
|
|
20243
20525
|
const formattedDate = date ? date.toLocaleDateString(this.locale) : "";
|
|
20244
|
-
return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": toAriaBoolean(this.active), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none",
|
|
20526
|
+
return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": toAriaBoolean(this.active), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputInput: this.inputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.startInputFocus, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), hAsync("div", { "aria-hidden": toAriaBoolean(!this.active), class: {
|
|
20245
20527
|
"menu-container": true,
|
|
20246
20528
|
"menu-container--active": this.active
|
|
20247
20529
|
}, ref: this.setMenuEl }, hAsync("div", { class: {
|
|
@@ -20252,7 +20534,7 @@ class InputDatePicker {
|
|
|
20252
20534
|
}, onTransitionEnd: this.transitionEnd }, hAsync("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, locale: this.locale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (hAsync("div", { class: "input-wrapper", ref: this.setEndWrapper }, hAsync("calcite-input", { class: {
|
|
20253
20535
|
input: true,
|
|
20254
20536
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
20255
|
-
}, disabled: disabled, icon: "calendar", "number-button-type": "none",
|
|
20537
|
+
}, disabled: disabled, icon: "calendar", "number-button-type": "none", onCalciteInputInput: this.inputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.endInputFocus, placeholder: (_b = this.localeData) === null || _b === void 0 ? void 0 : _b.placeholder, ref: this.setEndInput, scale: this.scale, type: "text", value: formattedEndDate }))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
20256
20538
|
}
|
|
20257
20539
|
setReferenceEl() {
|
|
20258
20540
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -20338,6 +20620,8 @@ class InputDatePicker {
|
|
|
20338
20620
|
}
|
|
20339
20621
|
/**
|
|
20340
20622
|
* If inputted string is a valid date, update value/active
|
|
20623
|
+
*
|
|
20624
|
+
* @param value
|
|
20341
20625
|
*/
|
|
20342
20626
|
input(value) {
|
|
20343
20627
|
const date = this.getDateFromInput(value);
|
|
@@ -20380,6 +20664,8 @@ class InputDatePicker {
|
|
|
20380
20664
|
}
|
|
20381
20665
|
/**
|
|
20382
20666
|
* Clean up invalid date from input on blur
|
|
20667
|
+
*
|
|
20668
|
+
* @param target
|
|
20383
20669
|
*/
|
|
20384
20670
|
blur(target) {
|
|
20385
20671
|
const { locale, focusedInput, endAsDate, range, startAsDate, valueAsDate } = this;
|
|
@@ -20413,6 +20699,8 @@ class InputDatePicker {
|
|
|
20413
20699
|
/**
|
|
20414
20700
|
* Find a date from input string
|
|
20415
20701
|
* return false if date is invalid, or out of range
|
|
20702
|
+
*
|
|
20703
|
+
* @param value
|
|
20416
20704
|
*/
|
|
20417
20705
|
getDateFromInput(value) {
|
|
20418
20706
|
if (!this.localeData) {
|
|
@@ -20762,6 +21050,7 @@ class InputTimePicker {
|
|
|
20762
21050
|
this.disabled = false;
|
|
20763
21051
|
/**
|
|
20764
21052
|
* BCP 47 language tag for desired language and country format
|
|
21053
|
+
*
|
|
20765
21054
|
* @internal
|
|
20766
21055
|
*/
|
|
20767
21056
|
this.locale = document.documentElement.lang || navigator.language || "en";
|
|
@@ -20775,6 +21064,7 @@ class InputTimePicker {
|
|
|
20775
21064
|
this.scale = "m";
|
|
20776
21065
|
/**
|
|
20777
21066
|
* Determines where the popover will be positioned relative to the input.
|
|
21067
|
+
*
|
|
20778
21068
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
20779
21069
|
*/
|
|
20780
21070
|
this.placement = "auto";
|
|
@@ -20791,14 +21081,15 @@ class InputTimePicker {
|
|
|
20791
21081
|
// Event Listeners
|
|
20792
21082
|
//
|
|
20793
21083
|
//--------------------------------------------------------------------------
|
|
20794
|
-
this.
|
|
21084
|
+
this.calciteInternalInputBlurHandler = () => {
|
|
20795
21085
|
this.active = false;
|
|
20796
21086
|
const shouldIncludeSeconds = this.shouldIncludeSeconds();
|
|
20797
21087
|
const localizedInputValue = localizeTimeString(this.calciteInputEl.value, this.locale, shouldIncludeSeconds);
|
|
20798
21088
|
this.setInputValue(localizedInputValue || localizeTimeString(this.value, this.locale, shouldIncludeSeconds));
|
|
20799
21089
|
};
|
|
20800
|
-
this.
|
|
21090
|
+
this.calciteInternalInputFocusHandler = (event) => {
|
|
20801
21091
|
this.active = true;
|
|
21092
|
+
event.stopPropagation();
|
|
20802
21093
|
};
|
|
20803
21094
|
this.calciteInputInputHandler = (event) => {
|
|
20804
21095
|
const target = event.target;
|
|
@@ -20809,6 +21100,7 @@ class InputTimePicker {
|
|
|
20809
21100
|
const target = event.target;
|
|
20810
21101
|
const value = target.value;
|
|
20811
21102
|
this.setValue({ value, origin: "time-picker" });
|
|
21103
|
+
event.stopPropagation();
|
|
20812
21104
|
};
|
|
20813
21105
|
// --------------------------------------------------------------------------
|
|
20814
21106
|
//
|
|
@@ -20966,7 +21258,7 @@ class InputTimePicker {
|
|
|
20966
21258
|
// --------------------------------------------------------------------------
|
|
20967
21259
|
render() {
|
|
20968
21260
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
20969
|
-
return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this),
|
|
21261
|
+
return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), hAsync("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId }, hAsync("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
20970
21262
|
}
|
|
20971
21263
|
get el() { return getElement(this); }
|
|
20972
21264
|
static get watchers() { return {
|
|
@@ -21005,7 +21297,7 @@ class InputTimePicker {
|
|
|
21005
21297
|
"setFocus": [64],
|
|
21006
21298
|
"reposition": [64]
|
|
21007
21299
|
},
|
|
21008
|
-
"$listeners$": [[0, "click", "clickHandler"], [0, "keyup", "keyUpHandler"], [0, "
|
|
21300
|
+
"$listeners$": [[0, "click", "clickHandler"], [0, "keyup", "keyUpHandler"], [0, "calciteInternalTimePickerBlur", "timePickerBlurHandler"], [0, "calciteInternalTimePickerFocus", "timePickerFocusHandler"]],
|
|
21009
21301
|
"$lazyBundleId$": "-",
|
|
21010
21302
|
"$attrsToReflect$": [["active", "active"], ["disabled", "disabled"], ["required", "required"], ["scale", "scale"], ["placement", "placement"]]
|
|
21011
21303
|
}; }
|
|
@@ -21033,6 +21325,7 @@ class Label {
|
|
|
21033
21325
|
this.alignment = "start";
|
|
21034
21326
|
/**
|
|
21035
21327
|
* specify the status of the label and any child input / input messages
|
|
21328
|
+
*
|
|
21036
21329
|
* @deprecated set directly on child element instead
|
|
21037
21330
|
*/
|
|
21038
21331
|
this.status = "idle";
|
|
@@ -21109,7 +21402,8 @@ class Link {
|
|
|
21109
21402
|
//--------------------------------------------------------------------------
|
|
21110
21403
|
/** is the link disabled */
|
|
21111
21404
|
this.disabled = false;
|
|
21112
|
-
/**
|
|
21405
|
+
/**
|
|
21406
|
+
* Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
|
|
21113
21407
|
* Without a value, the browser will suggest a filename/extension
|
|
21114
21408
|
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
|
|
21115
21409
|
*/
|
|
@@ -21186,7 +21480,8 @@ const listCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes i
|
|
|
21186
21480
|
|
|
21187
21481
|
/**
|
|
21188
21482
|
* A general purpose list that enables users to construct list items that conform to Calcite styling.
|
|
21189
|
-
*
|
|
21483
|
+
*
|
|
21484
|
+
* @slot - A slot for adding calcite-list-item elements.
|
|
21190
21485
|
*/
|
|
21191
21486
|
class List$1 {
|
|
21192
21487
|
constructor(hostRef) {
|
|
@@ -21197,7 +21492,7 @@ class List$1 {
|
|
|
21197
21492
|
//
|
|
21198
21493
|
// --------------------------------------------------------------------------
|
|
21199
21494
|
/**
|
|
21200
|
-
* When true,
|
|
21495
|
+
* When true, prevents user interaction.
|
|
21201
21496
|
*/
|
|
21202
21497
|
this.disabled = false;
|
|
21203
21498
|
}
|
|
@@ -21267,11 +21562,11 @@ const SLOTS$f = {
|
|
|
21267
21562
|
const listItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-list-item:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-list-item{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-list-item{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-list-item{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-list-item{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-list-item{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-list-item:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-list-item-h{display:none}/*!@:host*/.sc-calcite-list-item-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}/*!@:host([disabled])*/[disabled].sc-calcite-list-item-h{pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-item-h[disabled] .sc-calcite-list-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-item-h [calcite-hydrated][disabled].sc-calcite-list-item{opacity:1}/*!@.container*/.container.sc-calcite-list-item{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family)}/*!@.container **/.container.sc-calcite-list-item *.sc-calcite-list-item{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@.nested-container*/.nested-container.sc-calcite-list-item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}/*!@.content-container*/.content-container.sc-calcite-list-item{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@.content-container--button*/.content-container--button.sc-calcite-list-item{cursor:pointer;border-style:none;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;text-align:initial}/*!@.content-container--button:hover*/.content-container--button.sc-calcite-list-item:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.content-container--button:hover .label, .content-container--button:hover .description*/.content-container--button.sc-calcite-list-item:hover .label.sc-calcite-list-item,.content-container--button.sc-calcite-list-item:hover .description.sc-calcite-list-item{color:var(--calcite-ui-text-1)}/*!@.content-container--button:focus*/.content-container--button.sc-calcite-list-item:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.content-container--button .content-start, .content-container--button .content-end*/.content-container--button.sc-calcite-list-item .content-start.sc-calcite-list-item,.content-container--button.sc-calcite-list-item .content-end.sc-calcite-list-item{pointer-events:none}/*!@.content*/.content.sc-calcite-list-item{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@.label, .description*/.label.sc-calcite-list-item,.description.sc-calcite-list-item{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}/*!@.label:only-child, .description:only-child*/.label.sc-calcite-list-item:only-child,.description.sc-calcite-list-item:only-child{margin:0px;padding-top:0.25rem;padding-bottom:0.25rem}/*!@.label*/.label.sc-calcite-list-item{color:var(--calcite-ui-text-1)}/*!@.description*/.description.sc-calcite-list-item{margin-top:0.125rem;color:var(--calcite-ui-text-3)}/*!@.content-start*/.content-start.sc-calcite-list-item{-ms-flex-pack:start;justify-content:flex-start}/*!@.content-end*/.content-end.sc-calcite-list-item{-ms-flex-pack:end;justify-content:flex-end}/*!@.content-start, .content-end*/.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item{-ms-flex:1 1 auto;flex:1 1 auto}/*!@.has-center-content .content-start, .has-center-content .content-end*/.has-center-content.sc-calcite-list-item .content-start.sc-calcite-list-item,.has-center-content.sc-calcite-list-item .content-end.sc-calcite-list-item{-ms-flex:0 1 auto;flex:0 1 auto}/*!@.actions-start, .actions-end, .content-start, .content-end*/.actions-start.sc-calcite-list-item,.actions-end.sc-calcite-list-item,.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}/*!@.content-start ::slotted(calcite-icon), .content-end ::slotted(calcite-icon)*/.content-start .sc-calcite-list-item-s>calcite-icon,.content-end.sc-calcite-list-item-s>calcite-icon,.content-end .sc-calcite-list-item-s>calcite-icon{-ms-flex-item-align:center;align-self:center;padding-left:0.75rem;padding-right:0.75rem}/*!@.actions-start ::slotted(calcite-action), .actions-end ::slotted(calcite-action)*/.actions-start .sc-calcite-list-item-s>calcite-action,.actions-end.sc-calcite-list-item-s>calcite-action,.actions-end .sc-calcite-list-item-s>calcite-action{-ms-flex-item-align:stretch;align-self:stretch;color:inherit}/*!@::slotted(calcite-list-item-group), ::slotted(calcite-list-item)*/.sc-calcite-list-item-s>calcite-list-item-group,.sc-calcite-list-item-s>calcite-list-item{padding-left:0.5rem}";
|
|
21268
21563
|
|
|
21269
21564
|
/**
|
|
21270
|
-
* @slot - A slot for adding
|
|
21271
|
-
* @slot actions-start - A slot for adding actionable
|
|
21565
|
+
* @slot - A slot for adding calcite-list-item and calcite-list-item-group elements.
|
|
21566
|
+
* @slot actions-start - A slot for adding actionable calcite-action elements before the content of the list item.
|
|
21272
21567
|
* @slot content-start - A slot for adding non-actionable elements before the label and description of the list item.
|
|
21273
21568
|
* @slot content-end - A slot for adding non-actionable elements after the label and description of the list item.
|
|
21274
|
-
* @slot actions-end - A slot for adding actionable
|
|
21569
|
+
* @slot actions-end - A slot for adding actionable calcite-action elements after the content of the list item.
|
|
21275
21570
|
*/
|
|
21276
21571
|
class ListItem {
|
|
21277
21572
|
constructor(hostRef) {
|
|
@@ -21286,7 +21581,7 @@ class ListItem {
|
|
|
21286
21581
|
*/
|
|
21287
21582
|
this.nonInteractive = false;
|
|
21288
21583
|
/**
|
|
21289
|
-
* When true,
|
|
21584
|
+
* When true, prevents user interaction.
|
|
21290
21585
|
*/
|
|
21291
21586
|
this.disabled = false;
|
|
21292
21587
|
}
|
|
@@ -21384,7 +21679,7 @@ const HEADING_LEVEL$5 = 3;
|
|
|
21384
21679
|
const listItemGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-list-item-group:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-list-item-group{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-list-item-group{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-list-item-group{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-list-item-group{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-list-item-group{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-list-item-group:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-list-item-group-h{display:none}/*!@:host*/.sc-calcite-list-item-group-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}/*!@.heading*/.heading.sc-calcite-list-item-group{margin:0px;display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;background-color:var(--calcite-ui-foreground-2);padding:0.75rem;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}/*!@.container*/.container.sc-calcite-list-item-group{display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}/*!@::slotted(calcite-list-item-group)*/.sc-calcite-list-item-group-s>calcite-list-item-group{padding-left:0.5rem}";
|
|
21385
21680
|
|
|
21386
21681
|
/**
|
|
21387
|
-
* @slot - A slot for adding
|
|
21682
|
+
* @slot - A slot for adding calcite-list-item and calcite-list-item-group elements.
|
|
21388
21683
|
*/
|
|
21389
21684
|
class ListItemGroup {
|
|
21390
21685
|
constructor(hostRef) {
|
|
@@ -21428,17 +21723,17 @@ class Loader {
|
|
|
21428
21723
|
// Properties
|
|
21429
21724
|
//
|
|
21430
21725
|
//--------------------------------------------------------------------------
|
|
21431
|
-
/**
|
|
21726
|
+
/** When true, the loader is active. */
|
|
21432
21727
|
this.active = false;
|
|
21433
|
-
/**
|
|
21728
|
+
/** When true, displays smaller and appears to the left of the text. */
|
|
21434
21729
|
this.inline = false;
|
|
21435
|
-
/**
|
|
21730
|
+
/** Specify the scale of the loader. */
|
|
21436
21731
|
this.scale = "m";
|
|
21437
|
-
/**
|
|
21732
|
+
/** Valid only for determinate indicators. Percent complete of 100. */
|
|
21438
21733
|
this.value = 0;
|
|
21439
|
-
/** Text
|
|
21734
|
+
/** Text that displays under the loading indicator. */
|
|
21440
21735
|
this.text = "";
|
|
21441
|
-
/**
|
|
21736
|
+
/** Disables spacing around the loader. */
|
|
21442
21737
|
this.noPadding = false;
|
|
21443
21738
|
}
|
|
21444
21739
|
//--------------------------------------------------------------------------
|
|
@@ -21475,6 +21770,8 @@ class Loader {
|
|
|
21475
21770
|
//--------------------------------------------------------------------------
|
|
21476
21771
|
/**
|
|
21477
21772
|
* Return the proper sizes based on the scale property
|
|
21773
|
+
*
|
|
21774
|
+
* @param scale
|
|
21478
21775
|
*/
|
|
21479
21776
|
getSize(scale) {
|
|
21480
21777
|
return {
|
|
@@ -21811,6 +22108,8 @@ class Modal {
|
|
|
21811
22108
|
//--------------------------------------------------------------------------
|
|
21812
22109
|
/**
|
|
21813
22110
|
* Focus first interactive element
|
|
22111
|
+
*
|
|
22112
|
+
* @param el
|
|
21814
22113
|
* @deprecated use `setFocus` instead.
|
|
21815
22114
|
*/
|
|
21816
22115
|
async focusElement(el) {
|
|
@@ -21824,12 +22123,19 @@ class Modal {
|
|
|
21824
22123
|
*
|
|
21825
22124
|
* By default, will try to focus on any focusable content. If there is none, it will focus on the close button.
|
|
21826
22125
|
* If you want to focus on the close button, you can use the `close-button` focus ID.
|
|
22126
|
+
*
|
|
22127
|
+
* @param focusId
|
|
21827
22128
|
*/
|
|
21828
22129
|
async setFocus(focusId) {
|
|
21829
22130
|
const closeButton = this.closeButtonEl;
|
|
21830
22131
|
return focusElement(focusId === "close-button" ? closeButton : getFocusableElements(this.el)[0] || closeButton);
|
|
21831
22132
|
}
|
|
21832
|
-
/**
|
|
22133
|
+
/**
|
|
22134
|
+
* Set the scroll top of the modal content
|
|
22135
|
+
*
|
|
22136
|
+
* @param top
|
|
22137
|
+
* @param left
|
|
22138
|
+
*/
|
|
21833
22139
|
async scrollContent(top = 0, left = 0) {
|
|
21834
22140
|
if (this.modalContent) {
|
|
21835
22141
|
if (this.modalContent.scrollTo) {
|
|
@@ -21918,7 +22224,8 @@ const CSS$m = {
|
|
|
21918
22224
|
|
|
21919
22225
|
const noticeCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-notice:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-notice{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-notice{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-notice{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-notice{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-notice{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-notice:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-notice-h{display:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-notice-h{--calcite-notice-spacing-token-small:0.5rem;--calcite-notice-spacing-token-large:0.75rem}/*!@:host([scale=s]) .container slot[name=title]::slotted(*), :host([scale=s]) .container *::slotted([slot=title])*/.sc-calcite-notice-h[scale=s] .container slot[name=title].sc-calcite-notice-s>*,.sc-calcite-notice-h[scale=s] .container *.sc-calcite-notice-s>[slot=title]{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=s]) .container slot[name=message]::slotted(*), :host([scale=s]) .container *::slotted([slot=message])*/.sc-calcite-notice-h[scale=s] .container slot[name=message].sc-calcite-notice-s>*,.sc-calcite-notice-h[scale=s] .container *.sc-calcite-notice-s>[slot=message]{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) ::slotted(calcite-link)*/.sc-calcite-notice-h[scale=s] .sc-calcite-notice-s>calcite-link{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) .notice-close*/[scale=s].sc-calcite-notice-h .notice-close.sc-calcite-notice{padding:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-notice-h{--calcite-notice-spacing-token-small:0.75rem;--calcite-notice-spacing-token-large:1rem}/*!@:host([scale=m]) .container slot[name=title]::slotted(*), :host([scale=m]) .container *::slotted([slot=title])*/.sc-calcite-notice-h[scale=m] .container slot[name=title].sc-calcite-notice-s>*,.sc-calcite-notice-h[scale=m] .container *.sc-calcite-notice-s>[slot=title]{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=m]) .container slot[name=message]::slotted(*), :host([scale=m]) .container *::slotted([slot=message])*/.sc-calcite-notice-h[scale=m] .container slot[name=message].sc-calcite-notice-s>*,.sc-calcite-notice-h[scale=m] .container *.sc-calcite-notice-s>[slot=message]{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) ::slotted(calcite-link)*/.sc-calcite-notice-h[scale=m] .sc-calcite-notice-s>calcite-link{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=l])*/[scale=l].sc-calcite-notice-h{--calcite-notice-spacing-token-small:1rem;--calcite-notice-spacing-token-large:1.25rem}/*!@:host([scale=l]) .container slot[name=title]::slotted(*), :host([scale=l]) .container *::slotted([slot=title])*/.sc-calcite-notice-h[scale=l] .container slot[name=title].sc-calcite-notice-s>*,.sc-calcite-notice-h[scale=l] .container *.sc-calcite-notice-s>[slot=title]{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}/*!@:host([scale=l]) .container slot[name=message]::slotted(*), :host([scale=l]) .container *::slotted([slot=message])*/.sc-calcite-notice-h[scale=l] .container slot[name=message].sc-calcite-notice-s>*,.sc-calcite-notice-h[scale=l] .container *.sc-calcite-notice-s>[slot=message]{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) ::slotted(calcite-link)*/.sc-calcite-notice-h[scale=l] .sc-calcite-notice-s>calcite-link{margin-top:0.125rem;margin-bottom:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([width=auto])*/[width=auto].sc-calcite-notice-h{--calcite-notice-width:auto}/*!@:host([width=half])*/[width=half].sc-calcite-notice-h{--calcite-notice-width:50%}/*!@:host([width=full])*/[width=full].sc-calcite-notice-h{--calcite-notice-width:100%}/*!@:host*/.sc-calcite-notice-h{margin-left:auto;margin-right:auto;display:none;max-width:100%;-ms-flex-align:center;align-items:center;width:var(--calcite-notice-width)}/*!@.container*/.container.sc-calcite-notice{pointer-events:none;margin-top:0px;margin-bottom:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:none;width:100%;background-color:var(--calcite-ui-foreground-1);opacity:0;max-height:0;text-align:start;-webkit-transition:var(--calcite-animation-timing);transition:var(--calcite-animation-timing);-webkit-border-start:0px solid;border-inline-start:0px solid;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent}/*!@.notice-close*/.notice-close.sc-calcite-notice{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}/*!@.notice-close:focus*/.notice-close.sc-calcite-notice:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host*/.sc-calcite-notice-h{display:-ms-flexbox;display:flex}/*!@:host([active]) .container*/[active].sc-calcite-notice-h .container.sc-calcite-notice{pointer-events:auto;display:-ms-flexbox;display:flex;max-height:100%;-ms-flex-align:center;align-items:center;border-width:2px;opacity:1;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px 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)}/*!@.container slot[name=title]::slotted(*), .container *::slotted([slot=title])*/.container slot[name=title].sc-calcite-notice-s>*,.container *.sc-calcite-notice-s>[slot=title]{margin:0px;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@.container slot[name=message]::slotted(*), .container *::slotted([slot=message])*/.container slot[name=message].sc-calcite-notice-s>*,.container *.sc-calcite-notice-s>[slot=message]{margin:0px;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);-webkit-margin-end:var(--calcite-notice-spacing-token-small);margin-inline-end:var(--calcite-notice-spacing-token-small)}/*!@.notice-content*/.notice-content.sc-calcite-notice{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;display:-ms-flexbox;display:flex;min-width:0px;-ms-flex-direction:column;flex-direction:column;overflow-wrap:break-word;-ms-flex:1 1 0px;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}/*!@.notice-content:first-of-type:not(:only-child)*/.notice-content.sc-calcite-notice:first-of-type:not(:only-child){-webkit-padding-start:var(--calcite-notice-spacing-token-large);padding-inline-start:var(--calcite-notice-spacing-token-large)}/*!@.notice-content:only-of-type*/.notice-content.sc-calcite-notice:only-of-type{padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large)}/*!@.notice-icon*/.notice-icon.sc-calcite-notice{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto}/*!@.notice-close*/.notice-close.sc-calcite-notice{display:-ms-flexbox;display:flex;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-3);outline:2px solid transparent;outline-offset:2px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding:var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;-webkit-appearance:none}/*!@.notice-close:hover, .notice-close:focus*/.notice-close.sc-calcite-notice:hover,.notice-close.sc-calcite-notice:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.notice-close:active*/.notice-close.sc-calcite-notice:active{background-color:var(--calcite-ui-foreground-3)}/*!@.actions-end*/.actions-end.sc-calcite-notice{display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch}/*!@:host([color=blue]) .container*/[color=blue].sc-calcite-notice-h .container.sc-calcite-notice{border-color:var(--calcite-ui-brand)}/*!@:host([color=blue]) .container .notice-icon*/[color=blue].sc-calcite-notice-h .container.sc-calcite-notice .notice-icon.sc-calcite-notice{color:var(--calcite-ui-brand)}/*!@:host([color=red]) .container*/[color=red].sc-calcite-notice-h .container.sc-calcite-notice{border-color:var(--calcite-ui-danger)}/*!@:host([color=red]) .container .notice-icon*/[color=red].sc-calcite-notice-h .container.sc-calcite-notice .notice-icon.sc-calcite-notice{color:var(--calcite-ui-danger)}/*!@:host([color=yellow]) .container*/[color=yellow].sc-calcite-notice-h .container.sc-calcite-notice{border-color:var(--calcite-ui-warning)}/*!@:host([color=yellow]) .container .notice-icon*/[color=yellow].sc-calcite-notice-h .container.sc-calcite-notice .notice-icon.sc-calcite-notice{color:var(--calcite-ui-warning)}/*!@:host([color=green]) .container*/[color=green].sc-calcite-notice-h .container.sc-calcite-notice{border-color:var(--calcite-ui-success)}/*!@:host([color=green]) .container .notice-icon*/[color=green].sc-calcite-notice-h .container.sc-calcite-notice .notice-icon.sc-calcite-notice{color:var(--calcite-ui-success)}";
|
|
21920
22226
|
|
|
21921
|
-
/**
|
|
22227
|
+
/**
|
|
22228
|
+
* Notices are intended to be used to present users with important-but-not-crucial contextual tips or copy. Because
|
|
21922
22229
|
* notices are displayed inline, a common use case is displaying them on page-load to present users with short hints or contextual copy.
|
|
21923
22230
|
* They are optionally dismissible - useful for keeping track of whether or not a user has dismissed the notice. You can also choose not
|
|
21924
22231
|
* to display a notice on page load and set the "active" attribute as needed to contextually provide inline messaging to users.
|
|
@@ -21945,7 +22252,9 @@ class Notice {
|
|
|
21945
22252
|
this.color = "blue";
|
|
21946
22253
|
/** Optionally show a button the user can click to dismiss the notice */
|
|
21947
22254
|
this.dismissible = false;
|
|
21948
|
-
/**
|
|
22255
|
+
/**
|
|
22256
|
+
* String for the close button.
|
|
22257
|
+
*
|
|
21949
22258
|
* @default "Close"
|
|
21950
22259
|
*/
|
|
21951
22260
|
this.intlClose = TEXT$a.close;
|
|
@@ -22034,7 +22343,7 @@ const optionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes
|
|
|
22034
22343
|
class Option {
|
|
22035
22344
|
constructor(hostRef) {
|
|
22036
22345
|
registerInstance(this, hostRef);
|
|
22037
|
-
this.
|
|
22346
|
+
this.calciteInternalOptionChange = createEvent(this, "calciteInternalOptionChange", 7);
|
|
22038
22347
|
//--------------------------------------------------------------------------
|
|
22039
22348
|
//
|
|
22040
22349
|
// Properties
|
|
@@ -22050,7 +22359,7 @@ class Option {
|
|
|
22050
22359
|
if (propName === "label" || propName === "value") {
|
|
22051
22360
|
this.ensureTextContentDependentProps();
|
|
22052
22361
|
}
|
|
22053
|
-
this.
|
|
22362
|
+
this.calciteInternalOptionChange.emit();
|
|
22054
22363
|
}
|
|
22055
22364
|
//--------------------------------------------------------------------------
|
|
22056
22365
|
//
|
|
@@ -22126,7 +22435,7 @@ const optionGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyf
|
|
|
22126
22435
|
class OptionGroup {
|
|
22127
22436
|
constructor(hostRef) {
|
|
22128
22437
|
registerInstance(this, hostRef);
|
|
22129
|
-
this.
|
|
22438
|
+
this.calciteInternalOptionGroupChange = createEvent(this, "calciteInternalOptionGroupChange", 7);
|
|
22130
22439
|
//--------------------------------------------------------------------------
|
|
22131
22440
|
//
|
|
22132
22441
|
// Properties
|
|
@@ -22138,7 +22447,7 @@ class OptionGroup {
|
|
|
22138
22447
|
this.disabled = false;
|
|
22139
22448
|
}
|
|
22140
22449
|
handlePropChange() {
|
|
22141
|
-
this.
|
|
22450
|
+
this.calciteInternalOptionGroupChange.emit();
|
|
22142
22451
|
}
|
|
22143
22452
|
//--------------------------------------------------------------------------
|
|
22144
22453
|
//
|
|
@@ -22200,11 +22509,15 @@ class Pagination {
|
|
|
22200
22509
|
this.start = 1;
|
|
22201
22510
|
/** total number of items */
|
|
22202
22511
|
this.total = 0;
|
|
22203
|
-
/**
|
|
22512
|
+
/**
|
|
22513
|
+
* Used as an accessible label (aria-label) for the next button
|
|
22514
|
+
*
|
|
22204
22515
|
* @default "Next"
|
|
22205
22516
|
*/
|
|
22206
22517
|
this.textLabelNext = TEXT$9.nextLabel;
|
|
22207
|
-
/**
|
|
22518
|
+
/**
|
|
22519
|
+
* Used as an accessible label (aria-label) of the previous button
|
|
22520
|
+
*
|
|
22208
22521
|
* @default "Previous"
|
|
22209
22522
|
*/
|
|
22210
22523
|
this.textLabelPrevious = TEXT$9.previousLabel;
|
|
@@ -22518,7 +22831,11 @@ class Panel {
|
|
|
22518
22831
|
// Methods
|
|
22519
22832
|
//
|
|
22520
22833
|
// --------------------------------------------------------------------------
|
|
22521
|
-
/**
|
|
22834
|
+
/**
|
|
22835
|
+
* Sets focus on the component.
|
|
22836
|
+
*
|
|
22837
|
+
* @param focusId
|
|
22838
|
+
*/
|
|
22522
22839
|
async setFocus(focusId) {
|
|
22523
22840
|
var _a, _b, _c;
|
|
22524
22841
|
if (focusId === "dismiss-button") {
|
|
@@ -22531,7 +22848,8 @@ class Panel {
|
|
|
22531
22848
|
}
|
|
22532
22849
|
(_c = this.containerEl) === null || _c === void 0 ? void 0 : _c.focus();
|
|
22533
22850
|
}
|
|
22534
|
-
/**
|
|
22851
|
+
/**
|
|
22852
|
+
* Scrolls panel content to a particular set of coordinates.
|
|
22535
22853
|
*
|
|
22536
22854
|
* ```
|
|
22537
22855
|
* myCalcitePanel.scrollContentTo({
|
|
@@ -22540,6 +22858,8 @@ class Panel {
|
|
|
22540
22858
|
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
22541
22859
|
* });
|
|
22542
22860
|
* ```
|
|
22861
|
+
*
|
|
22862
|
+
* @param options
|
|
22543
22863
|
*/
|
|
22544
22864
|
async scrollContentTo(options) {
|
|
22545
22865
|
var _a;
|
|
@@ -22737,8 +23057,7 @@ function calciteListItemChangeHandler(event) {
|
|
|
22737
23057
|
this.lastSelectedItem = item;
|
|
22738
23058
|
this.emitCalciteListChange();
|
|
22739
23059
|
}
|
|
22740
|
-
function
|
|
22741
|
-
event.stopPropagation();
|
|
23060
|
+
function calciteInternalListItemValueChangeHandler(event) {
|
|
22742
23061
|
const oldValue = event.detail.oldValue;
|
|
22743
23062
|
const selectedValues = this.selectedValues;
|
|
22744
23063
|
if (selectedValues.has(oldValue)) {
|
|
@@ -22746,6 +23065,7 @@ function calciteListItemValueChangeHandler(event) {
|
|
|
22746
23065
|
selectedValues.delete(oldValue);
|
|
22747
23066
|
selectedValues.set(event.detail.newValue, item);
|
|
22748
23067
|
}
|
|
23068
|
+
event.stopPropagation();
|
|
22749
23069
|
}
|
|
22750
23070
|
// --------------------------------------------------------------------------
|
|
22751
23071
|
//
|
|
@@ -23069,12 +23389,13 @@ class PickList {
|
|
|
23069
23389
|
calciteListItemChangeHandler(event) {
|
|
23070
23390
|
calciteListItemChangeHandler.call(this, event);
|
|
23071
23391
|
}
|
|
23072
|
-
|
|
23392
|
+
calciteInternalListItemPropsChangeHandler(event) {
|
|
23073
23393
|
event.stopPropagation();
|
|
23074
23394
|
this.setUpFilter();
|
|
23075
23395
|
}
|
|
23076
|
-
|
|
23077
|
-
|
|
23396
|
+
calciteInternalListItemValueChangeHandler(event) {
|
|
23397
|
+
calciteInternalListItemValueChangeHandler.call(this, event);
|
|
23398
|
+
event.stopPropagation();
|
|
23078
23399
|
}
|
|
23079
23400
|
calciteListFocusOutHandler(event) {
|
|
23080
23401
|
calciteListFocusOutHandler.call(this, event);
|
|
@@ -23101,7 +23422,11 @@ class PickList {
|
|
|
23101
23422
|
async getSelectedItems() {
|
|
23102
23423
|
return this.selectedValues;
|
|
23103
23424
|
}
|
|
23104
|
-
/**
|
|
23425
|
+
/**
|
|
23426
|
+
* Sets focus on the component.
|
|
23427
|
+
*
|
|
23428
|
+
* @param focusId
|
|
23429
|
+
*/
|
|
23105
23430
|
async setFocus(focusId) {
|
|
23106
23431
|
return setFocus.call(this, focusId);
|
|
23107
23432
|
}
|
|
@@ -23134,7 +23459,7 @@ class PickList {
|
|
|
23134
23459
|
"getSelectedItems": [64],
|
|
23135
23460
|
"setFocus": [64]
|
|
23136
23461
|
},
|
|
23137
|
-
"$listeners$": [[0, "calciteListItemRemove", "calciteListItemRemoveHandler"], [0, "calciteListItemChange", "calciteListItemChangeHandler"], [0, "
|
|
23462
|
+
"$listeners$": [[0, "calciteListItemRemove", "calciteListItemRemoveHandler"], [0, "calciteListItemChange", "calciteListItemChangeHandler"], [0, "calciteInternalListItemPropsChange", "calciteInternalListItemPropsChangeHandler"], [0, "calciteInternalListItemValueChange", "calciteInternalListItemValueChangeHandler"], [0, "focusout", "calciteListFocusOutHandler"]],
|
|
23138
23463
|
"$lazyBundleId$": "-",
|
|
23139
23464
|
"$attrsToReflect$": [["disabled", "disabled"], ["filterEnabled", "filter-enabled"], ["filterPlaceholder", "filter-placeholder"], ["loading", "loading"], ["multiple", "multiple"]]
|
|
23140
23465
|
}; }
|
|
@@ -23232,8 +23557,8 @@ class PickListItem {
|
|
|
23232
23557
|
registerInstance(this, hostRef);
|
|
23233
23558
|
this.calciteListItemChange = createEvent(this, "calciteListItemChange", 7);
|
|
23234
23559
|
this.calciteListItemRemove = createEvent(this, "calciteListItemRemove", 7);
|
|
23235
|
-
this.
|
|
23236
|
-
this.
|
|
23560
|
+
this.calciteInternalListItemPropsChange = createEvent(this, "calciteInternalListItemPropsChange", 7);
|
|
23561
|
+
this.calciteInternalListItemValueChange = createEvent(this, "calciteInternalListItemValueChange", 7);
|
|
23237
23562
|
/**
|
|
23238
23563
|
* When true, the item cannot be clicked and is visually muted.
|
|
23239
23564
|
*/
|
|
@@ -23243,11 +23568,12 @@ class PickListItem {
|
|
|
23243
23568
|
*/
|
|
23244
23569
|
this.disableDeselect = false;
|
|
23245
23570
|
/**
|
|
23246
|
-
* @internal
|
|
23571
|
+
* @internal
|
|
23247
23572
|
*/
|
|
23248
23573
|
this.nonInteractive = false;
|
|
23249
23574
|
/**
|
|
23250
23575
|
* Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.
|
|
23576
|
+
*
|
|
23251
23577
|
* @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/pick-list/resources.ts#L5)
|
|
23252
23578
|
*/
|
|
23253
23579
|
this.icon = null;
|
|
@@ -23261,6 +23587,7 @@ class PickListItem {
|
|
|
23261
23587
|
this.selected = false;
|
|
23262
23588
|
/**
|
|
23263
23589
|
* Used as an accessible label (aria-label) for the "remove item" action. Only applicable if removable is true.
|
|
23590
|
+
*
|
|
23264
23591
|
* @default "Remove"
|
|
23265
23592
|
*/
|
|
23266
23593
|
this.intlRemove = TEXT$7.remove;
|
|
@@ -23290,13 +23617,13 @@ class PickListItem {
|
|
|
23290
23617
|
};
|
|
23291
23618
|
}
|
|
23292
23619
|
descriptionWatchHandler() {
|
|
23293
|
-
this.
|
|
23620
|
+
this.calciteInternalListItemPropsChange.emit();
|
|
23294
23621
|
}
|
|
23295
23622
|
labelWatchHandler() {
|
|
23296
|
-
this.
|
|
23623
|
+
this.calciteInternalListItemPropsChange.emit();
|
|
23297
23624
|
}
|
|
23298
23625
|
metadataWatchHandler() {
|
|
23299
|
-
this.
|
|
23626
|
+
this.calciteInternalListItemPropsChange.emit();
|
|
23300
23627
|
}
|
|
23301
23628
|
selectedWatchHandler() {
|
|
23302
23629
|
this.calciteListItemChange.emit({
|
|
@@ -23308,7 +23635,7 @@ class PickListItem {
|
|
|
23308
23635
|
this.shiftPressed = false;
|
|
23309
23636
|
}
|
|
23310
23637
|
valueWatchHandler(newValue, oldValue) {
|
|
23311
|
-
this.
|
|
23638
|
+
this.calciteInternalListItemValueChange.emit({ oldValue, newValue });
|
|
23312
23639
|
}
|
|
23313
23640
|
// --------------------------------------------------------------------------
|
|
23314
23641
|
//
|
|
@@ -23332,6 +23659,8 @@ class PickListItem {
|
|
|
23332
23659
|
/**
|
|
23333
23660
|
* Used to toggle the selection state. By default this won't trigger an event.
|
|
23334
23661
|
* The first argument allows the value to be coerced, rather than swapping values.
|
|
23662
|
+
*
|
|
23663
|
+
* @param coerce
|
|
23335
23664
|
*/
|
|
23336
23665
|
async toggleSelected(coerce) {
|
|
23337
23666
|
this.selected = typeof coerce === "boolean" ? coerce : !this.selected;
|
|
@@ -23445,10 +23774,10 @@ class PopoverManager$1 {
|
|
|
23445
23774
|
const registeredElement = composedPath.find((pathEl) => registeredElements.has(pathEl));
|
|
23446
23775
|
return registeredElements.get(registeredElement);
|
|
23447
23776
|
};
|
|
23448
|
-
this.
|
|
23777
|
+
this.togglePopovers = (event) => {
|
|
23449
23778
|
const composedPath = event.composedPath();
|
|
23450
23779
|
const popover = this.queryPopover(composedPath);
|
|
23451
|
-
if (popover) {
|
|
23780
|
+
if (popover && !popover.triggerDisabled) {
|
|
23452
23781
|
popover.toggle();
|
|
23453
23782
|
return;
|
|
23454
23783
|
}
|
|
@@ -23456,6 +23785,15 @@ class PopoverManager$1 {
|
|
|
23456
23785
|
.filter((popover) => popover.autoClose && popover.open && !composedPath.includes(popover))
|
|
23457
23786
|
.forEach((popover) => popover.toggle(false));
|
|
23458
23787
|
};
|
|
23788
|
+
this.keyHandler = (event) => {
|
|
23789
|
+
if (event.key !== "Enter" && event.key !== " ") {
|
|
23790
|
+
return;
|
|
23791
|
+
}
|
|
23792
|
+
this.togglePopovers(event);
|
|
23793
|
+
};
|
|
23794
|
+
this.clickHandler = (event) => {
|
|
23795
|
+
this.togglePopovers(event);
|
|
23796
|
+
};
|
|
23459
23797
|
}
|
|
23460
23798
|
// --------------------------------------------------------------------------
|
|
23461
23799
|
//
|
|
@@ -23479,9 +23817,11 @@ class PopoverManager$1 {
|
|
|
23479
23817
|
}
|
|
23480
23818
|
addListeners() {
|
|
23481
23819
|
document.addEventListener("pointerdown", this.clickHandler, { capture: true });
|
|
23820
|
+
document.addEventListener("keydown", this.keyHandler, { capture: true });
|
|
23482
23821
|
}
|
|
23483
23822
|
removeListeners() {
|
|
23484
23823
|
document.removeEventListener("pointerdown", this.clickHandler, { capture: true });
|
|
23824
|
+
document.removeEventListener("keydown", this.keyHandler, { capture: true });
|
|
23485
23825
|
}
|
|
23486
23826
|
}
|
|
23487
23827
|
|
|
@@ -23507,6 +23847,7 @@ class Popover {
|
|
|
23507
23847
|
this.autoClose = false;
|
|
23508
23848
|
/**
|
|
23509
23849
|
* Display a close button within the Popover.
|
|
23850
|
+
*
|
|
23510
23851
|
* @deprecated use dismissible instead.
|
|
23511
23852
|
*/
|
|
23512
23853
|
this.closeButton = false;
|
|
@@ -23524,6 +23865,7 @@ class Popover {
|
|
|
23524
23865
|
this.disablePointer = false;
|
|
23525
23866
|
/**
|
|
23526
23867
|
* Offset the position of the popover away from the reference element.
|
|
23868
|
+
*
|
|
23527
23869
|
* @default 6
|
|
23528
23870
|
*/
|
|
23529
23871
|
this.offsetDistance = defaultOffsetDistance;
|
|
@@ -23539,10 +23881,17 @@ class Popover {
|
|
|
23539
23881
|
this.overlayPositioning = "absolute";
|
|
23540
23882
|
/**
|
|
23541
23883
|
* Determines where the component will be positioned relative to the referenceElement.
|
|
23884
|
+
*
|
|
23542
23885
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
23543
23886
|
*/
|
|
23544
23887
|
this.placement = defaultPopoverPlacement;
|
|
23545
|
-
/**
|
|
23888
|
+
/**
|
|
23889
|
+
* Disables automatically toggling a popover when its referenceElement has been triggered. This property can be set to true to manage when a popover is open.
|
|
23890
|
+
*/
|
|
23891
|
+
this.triggerDisabled = false;
|
|
23892
|
+
/**
|
|
23893
|
+
* Text for close button.
|
|
23894
|
+
*
|
|
23546
23895
|
* @default "Close"
|
|
23547
23896
|
*/
|
|
23548
23897
|
this.intlClose = TEXT$6.close;
|
|
@@ -23664,7 +24013,11 @@ class Popover {
|
|
|
23664
24013
|
})
|
|
23665
24014
|
: this.createPopper();
|
|
23666
24015
|
}
|
|
23667
|
-
/**
|
|
24016
|
+
/**
|
|
24017
|
+
* Sets focus on the component.
|
|
24018
|
+
*
|
|
24019
|
+
* @param focusId
|
|
24020
|
+
*/
|
|
23668
24021
|
async setFocus(focusId) {
|
|
23669
24022
|
var _a;
|
|
23670
24023
|
const { closeButtonEl } = this;
|
|
@@ -23675,7 +24028,11 @@ class Popover {
|
|
|
23675
24028
|
}
|
|
23676
24029
|
(_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23677
24030
|
}
|
|
23678
|
-
/**
|
|
24031
|
+
/**
|
|
24032
|
+
* Toggles the popover's open property.
|
|
24033
|
+
*
|
|
24034
|
+
* @param value
|
|
24035
|
+
*/
|
|
23679
24036
|
async toggle(value = !this.open) {
|
|
23680
24037
|
this.open = value;
|
|
23681
24038
|
}
|
|
@@ -23793,6 +24150,7 @@ class Popover {
|
|
|
23793
24150
|
"overlayPositioning": [1, "overlay-positioning"],
|
|
23794
24151
|
"placement": [513],
|
|
23795
24152
|
"referenceElement": [1, "reference-element"],
|
|
24153
|
+
"triggerDisabled": [516, "trigger-disabled"],
|
|
23796
24154
|
"intlClose": [1, "intl-close"],
|
|
23797
24155
|
"effectiveReferenceElement": [32],
|
|
23798
24156
|
"reposition": [64],
|
|
@@ -23801,7 +24159,7 @@ class Popover {
|
|
|
23801
24159
|
},
|
|
23802
24160
|
"$listeners$": undefined,
|
|
23803
24161
|
"$lazyBundleId$": "-",
|
|
23804
|
-
"$attrsToReflect$": [["autoClose", "auto-close"], ["closeButton", "close-button"], ["dismissible", "dismissible"], ["disableFlip", "disable-flip"], ["disablePointer", "disable-pointer"], ["offsetDistance", "offset-distance"], ["offsetSkidding", "offset-skidding"], ["open", "open"], ["placement", "placement"]]
|
|
24162
|
+
"$attrsToReflect$": [["autoClose", "auto-close"], ["closeButton", "close-button"], ["dismissible", "dismissible"], ["disableFlip", "disable-flip"], ["disablePointer", "disable-pointer"], ["offsetDistance", "offset-distance"], ["offsetSkidding", "offset-skidding"], ["open", "open"], ["placement", "placement"], ["triggerDisabled", "trigger-disabled"]]
|
|
23805
24163
|
}; }
|
|
23806
24164
|
}
|
|
23807
24165
|
|
|
@@ -23822,6 +24180,7 @@ class PopoverManager {
|
|
|
23822
24180
|
// --------------------------------------------------------------------------
|
|
23823
24181
|
/**
|
|
23824
24182
|
* CSS Selector to match reference elements for popovers. Reference elements will be identified by this selector in order to open their associated popover.
|
|
24183
|
+
*
|
|
23825
24184
|
* @default `[data-calcite-popover-reference]`
|
|
23826
24185
|
*/
|
|
23827
24186
|
this.selector = "[data-calcite-popover-reference]";
|
|
@@ -23945,6 +24304,7 @@ class RadioButton {
|
|
|
23945
24304
|
this.disabled = false;
|
|
23946
24305
|
/**
|
|
23947
24306
|
* The focused state of the radio button.
|
|
24307
|
+
*
|
|
23948
24308
|
* @internal
|
|
23949
24309
|
*/
|
|
23950
24310
|
this.focused = false;
|
|
@@ -23952,6 +24312,7 @@ class RadioButton {
|
|
|
23952
24312
|
this.hidden = false;
|
|
23953
24313
|
/**
|
|
23954
24314
|
* The hovered state of the radio button.
|
|
24315
|
+
*
|
|
23955
24316
|
* @internal
|
|
23956
24317
|
*/
|
|
23957
24318
|
this.hovered = false;
|
|
@@ -24407,9 +24768,9 @@ class RadioGroup {
|
|
|
24407
24768
|
return (hAsync(Host, { onClick: this.handleClick, role: "radiogroup" }, hAsync("slot", null), hAsync(HiddenFormInputSlot, { component: this })));
|
|
24408
24769
|
}
|
|
24409
24770
|
handleSelected(event) {
|
|
24410
|
-
event.stopPropagation();
|
|
24411
24771
|
event.preventDefault();
|
|
24412
24772
|
this.selectItem(event.target);
|
|
24773
|
+
event.stopPropagation();
|
|
24413
24774
|
}
|
|
24414
24775
|
handleKeyDown(event) {
|
|
24415
24776
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
@@ -24518,7 +24879,7 @@ class RadioGroup {
|
|
|
24518
24879
|
"width": [513],
|
|
24519
24880
|
"setFocus": [64]
|
|
24520
24881
|
},
|
|
24521
|
-
"$listeners$": [[0, "
|
|
24882
|
+
"$listeners$": [[0, "calciteInternalRadioGroupItemChange", "handleSelected"], [0, "keydown", "handleKeyDown"]],
|
|
24522
24883
|
"$lazyBundleId$": "-",
|
|
24523
24884
|
"$attrsToReflect$": [["appearance", "appearance"], ["disabled", "disabled"], ["required", "required"], ["layout", "layout"], ["scale", "scale"], ["width", "width"]]
|
|
24524
24885
|
}; }
|
|
@@ -24536,7 +24897,7 @@ const radioGroupItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@k
|
|
|
24536
24897
|
class RadioGroupItem {
|
|
24537
24898
|
constructor(hostRef) {
|
|
24538
24899
|
registerInstance(this, hostRef);
|
|
24539
|
-
this.
|
|
24900
|
+
this.calciteInternalRadioGroupItemChange = createEvent(this, "calciteInternalRadioGroupItemChange", 7);
|
|
24540
24901
|
//--------------------------------------------------------------------------
|
|
24541
24902
|
//
|
|
24542
24903
|
// Properties
|
|
@@ -24550,7 +24911,7 @@ class RadioGroupItem {
|
|
|
24550
24911
|
this.iconPosition = "start";
|
|
24551
24912
|
}
|
|
24552
24913
|
handleCheckedChange() {
|
|
24553
|
-
this.
|
|
24914
|
+
this.calciteInternalRadioGroupItemChange.emit();
|
|
24554
24915
|
}
|
|
24555
24916
|
render() {
|
|
24556
24917
|
const { checked, value } = this;
|
|
@@ -24613,11 +24974,15 @@ class Rating {
|
|
|
24613
24974
|
this.disabled = false;
|
|
24614
24975
|
/** Show average and count data summary chip (if available) */
|
|
24615
24976
|
this.showChip = false;
|
|
24616
|
-
/**
|
|
24977
|
+
/**
|
|
24978
|
+
* Localized string for "Rating" (used for aria label)
|
|
24979
|
+
*
|
|
24617
24980
|
* @default "Rating"
|
|
24618
24981
|
*/
|
|
24619
24982
|
this.intlRating = TEXT$5.rating;
|
|
24620
|
-
/**
|
|
24983
|
+
/**
|
|
24984
|
+
* Localized string for labelling each star, `${num}` in the string will be replaced by the number
|
|
24985
|
+
*
|
|
24621
24986
|
* @default "Stars: ${num}"
|
|
24622
24987
|
*/
|
|
24623
24988
|
this.intlStars = TEXT$5.stars;
|
|
@@ -24751,7 +25116,9 @@ class Scrim {
|
|
|
24751
25116
|
// Properties
|
|
24752
25117
|
//
|
|
24753
25118
|
// --------------------------------------------------------------------------
|
|
24754
|
-
/**
|
|
25119
|
+
/**
|
|
25120
|
+
* string to override English loading text
|
|
25121
|
+
*
|
|
24755
25122
|
* @default "Loading"
|
|
24756
25123
|
*/
|
|
24757
25124
|
this.intlLoading = TEXT$4.loading;
|
|
@@ -25012,7 +25379,7 @@ class Select {
|
|
|
25012
25379
|
"width": [513],
|
|
25013
25380
|
"setFocus": [64]
|
|
25014
25381
|
},
|
|
25015
|
-
"$listeners$": [[0, "
|
|
25382
|
+
"$listeners$": [[0, "calciteInternalOptionChange", "handleOptionOrGroupChange"], [0, "calciteInternalOptionGroupChange", "handleOptionOrGroupChange"]],
|
|
25016
25383
|
"$lazyBundleId$": "-",
|
|
25017
25384
|
"$attrsToReflect$": [["disabled", "disabled"], ["required", "required"], ["scale", "scale"], ["width", "width"]]
|
|
25018
25385
|
}; }
|
|
@@ -25249,6 +25616,7 @@ class ShellPanel {
|
|
|
25249
25616
|
this.widthScale = "m";
|
|
25250
25617
|
/**
|
|
25251
25618
|
* Accessible label for resize separator.
|
|
25619
|
+
*
|
|
25252
25620
|
* @default "Resize"
|
|
25253
25621
|
*/
|
|
25254
25622
|
this.intlResize = TEXT$3.resize;
|
|
@@ -25550,6 +25918,7 @@ class Slider {
|
|
|
25550
25918
|
};
|
|
25551
25919
|
/**
|
|
25552
25920
|
* Set the reference of the track Element
|
|
25921
|
+
*
|
|
25553
25922
|
* @internal
|
|
25554
25923
|
* @param node
|
|
25555
25924
|
*/
|
|
@@ -25939,6 +26308,7 @@ class Slider {
|
|
|
25939
26308
|
}
|
|
25940
26309
|
/**
|
|
25941
26310
|
* Set the prop value if changed at the component level
|
|
26311
|
+
*
|
|
25942
26312
|
* @param valueProp
|
|
25943
26313
|
* @param value
|
|
25944
26314
|
*/
|
|
@@ -25957,6 +26327,9 @@ class Slider {
|
|
|
25957
26327
|
}
|
|
25958
26328
|
/**
|
|
25959
26329
|
* If number is outside range, constrain to min or max
|
|
26330
|
+
*
|
|
26331
|
+
* @param value
|
|
26332
|
+
* @param prop
|
|
25960
26333
|
* @internal
|
|
25961
26334
|
*/
|
|
25962
26335
|
clamp(value, prop) {
|
|
@@ -25972,6 +26345,8 @@ class Slider {
|
|
|
25972
26345
|
}
|
|
25973
26346
|
/**
|
|
25974
26347
|
* Translate a pixel position to value along the range
|
|
26348
|
+
*
|
|
26349
|
+
* @param x
|
|
25975
26350
|
* @internal
|
|
25976
26351
|
*/
|
|
25977
26352
|
translate(x) {
|
|
@@ -25988,6 +26363,8 @@ class Slider {
|
|
|
25988
26363
|
}
|
|
25989
26364
|
/**
|
|
25990
26365
|
* Get closest allowed value along stepped values
|
|
26366
|
+
*
|
|
26367
|
+
* @param num
|
|
25991
26368
|
* @internal
|
|
25992
26369
|
*/
|
|
25993
26370
|
getClosestStep(num) {
|
|
@@ -26011,6 +26388,8 @@ class Slider {
|
|
|
26011
26388
|
}
|
|
26012
26389
|
/**
|
|
26013
26390
|
* Get position of value along range as fractional value
|
|
26391
|
+
*
|
|
26392
|
+
* @param num
|
|
26014
26393
|
* @return {number} number in the unit interval [0,1]
|
|
26015
26394
|
* @internal
|
|
26016
26395
|
*/
|
|
@@ -26145,6 +26524,9 @@ class Slider {
|
|
|
26145
26524
|
}
|
|
26146
26525
|
/**
|
|
26147
26526
|
* Returns an integer representing the number of pixels to offset on the left or right side based on desired position behavior.
|
|
26527
|
+
*
|
|
26528
|
+
* @param leftBounds
|
|
26529
|
+
* @param rightBounds
|
|
26148
26530
|
* @internal
|
|
26149
26531
|
*/
|
|
26150
26532
|
getHostOffset(leftBounds, rightBounds) {
|
|
@@ -26161,6 +26543,7 @@ class Slider {
|
|
|
26161
26543
|
/**
|
|
26162
26544
|
* Returns an integer representing the number of pixels that the two given span elements are overlapping, taking into account
|
|
26163
26545
|
* a space in between the two spans equal to the font-size set on them to account for the space needed to render a hyphen.
|
|
26546
|
+
*
|
|
26164
26547
|
* @param leftLabel
|
|
26165
26548
|
* @param rightLabel
|
|
26166
26549
|
*/
|
|
@@ -26173,6 +26556,7 @@ class Slider {
|
|
|
26173
26556
|
}
|
|
26174
26557
|
/**
|
|
26175
26558
|
* Returns a boolean value representing if the minLabel span element is obscured (being overlapped) by the given handle div element.
|
|
26559
|
+
*
|
|
26176
26560
|
* @param minLabel
|
|
26177
26561
|
* @param handle
|
|
26178
26562
|
*/
|
|
@@ -26183,6 +26567,7 @@ class Slider {
|
|
|
26183
26567
|
}
|
|
26184
26568
|
/**
|
|
26185
26569
|
* Returns a boolean value representing if the maxLabel span element is obscured (being overlapped) by the given handle div element.
|
|
26570
|
+
*
|
|
26186
26571
|
* @param maxLabel
|
|
26187
26572
|
* @param handle
|
|
26188
26573
|
*/
|
|
@@ -29459,13 +29844,16 @@ class SplitButton {
|
|
|
29459
29844
|
this.disabled = false;
|
|
29460
29845
|
/**
|
|
29461
29846
|
* Is the dropdown currently active or not
|
|
29847
|
+
*
|
|
29462
29848
|
* @internal
|
|
29463
29849
|
*/
|
|
29464
29850
|
this.active = false;
|
|
29465
29851
|
/** specify the icon used for the dropdown menu, defaults to chevron */
|
|
29466
29852
|
this.dropdownIconType = "chevron";
|
|
29467
|
-
/**
|
|
29468
|
-
|
|
29853
|
+
/**
|
|
29854
|
+
optionally add a calcite-loader component to the control,
|
|
29855
|
+
disabling interaction. with the primary button
|
|
29856
|
+
*/
|
|
29469
29857
|
this.loading = false;
|
|
29470
29858
|
/** Describes the type of positioning to use for the dropdown. If your element is in a fixed container, use the 'fixed' value. */
|
|
29471
29859
|
this.overlayPositioning = "absolute";
|
|
@@ -29553,7 +29941,7 @@ const stepperCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframe
|
|
|
29553
29941
|
class Stepper {
|
|
29554
29942
|
constructor(hostRef) {
|
|
29555
29943
|
registerInstance(this, hostRef);
|
|
29556
|
-
this.
|
|
29944
|
+
this.calciteInternalStepperItemChange = createEvent(this, "calciteInternalStepperItemChange", 7);
|
|
29557
29945
|
//--------------------------------------------------------------------------
|
|
29558
29946
|
//
|
|
29559
29947
|
// Public Properties
|
|
@@ -29595,7 +29983,7 @@ class Stepper {
|
|
|
29595
29983
|
componentDidLoad() {
|
|
29596
29984
|
// if no stepper items are set as active, default to the first one
|
|
29597
29985
|
if (!this.currentPosition) {
|
|
29598
|
-
this.
|
|
29986
|
+
this.calciteInternalStepperItemChange.emit({
|
|
29599
29987
|
position: 0
|
|
29600
29988
|
});
|
|
29601
29989
|
}
|
|
@@ -29613,7 +30001,7 @@ class Stepper {
|
|
|
29613
30001
|
// Event Listeners
|
|
29614
30002
|
//
|
|
29615
30003
|
//--------------------------------------------------------------------------
|
|
29616
|
-
|
|
30004
|
+
calciteInternalStepperItemKeyEvent(e) {
|
|
29617
30005
|
const item = e.detail.item;
|
|
29618
30006
|
const itemToFocus = e.target;
|
|
29619
30007
|
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
|
@@ -29644,6 +30032,7 @@ class Stepper {
|
|
|
29644
30032
|
this.focusLastItem();
|
|
29645
30033
|
break;
|
|
29646
30034
|
}
|
|
30035
|
+
e.stopPropagation();
|
|
29647
30036
|
}
|
|
29648
30037
|
registerItem(event) {
|
|
29649
30038
|
const item = event.target;
|
|
@@ -29654,15 +30043,17 @@ class Stepper {
|
|
|
29654
30043
|
this.itemMap.set(item, position);
|
|
29655
30044
|
this.items = this.sortItems();
|
|
29656
30045
|
this.enabledItems = this.filterItems();
|
|
30046
|
+
event.stopPropagation();
|
|
29657
30047
|
}
|
|
29658
30048
|
updateItem(event) {
|
|
29659
30049
|
if (event.detail.content) {
|
|
29660
30050
|
this.requestedContent = event.detail.content;
|
|
29661
30051
|
}
|
|
29662
30052
|
this.currentPosition = event.detail.position;
|
|
29663
|
-
this.
|
|
30053
|
+
this.calciteInternalStepperItemChange.emit({
|
|
29664
30054
|
position: this.currentPosition
|
|
29665
30055
|
});
|
|
30056
|
+
event.stopPropagation();
|
|
29666
30057
|
}
|
|
29667
30058
|
//--------------------------------------------------------------------------
|
|
29668
30059
|
//
|
|
@@ -29685,7 +30076,11 @@ class Stepper {
|
|
|
29685
30076
|
}
|
|
29686
30077
|
this.emitChangedItem(enabledStepIndex);
|
|
29687
30078
|
}
|
|
29688
|
-
/**
|
|
30079
|
+
/**
|
|
30080
|
+
* set the requested step as active
|
|
30081
|
+
*
|
|
30082
|
+
* @param step
|
|
30083
|
+
*/
|
|
29689
30084
|
async goToStep(step) {
|
|
29690
30085
|
const position = step - 1;
|
|
29691
30086
|
if (this.currentPosition !== position) {
|
|
@@ -29731,7 +30126,7 @@ class Stepper {
|
|
|
29731
30126
|
}
|
|
29732
30127
|
emitChangedItem(position) {
|
|
29733
30128
|
this.currentPosition = position;
|
|
29734
|
-
this.
|
|
30129
|
+
this.calciteInternalStepperItemChange.emit({
|
|
29735
30130
|
position
|
|
29736
30131
|
});
|
|
29737
30132
|
}
|
|
@@ -29790,7 +30185,7 @@ class Stepper {
|
|
|
29790
30185
|
"startStep": [64],
|
|
29791
30186
|
"endStep": [64]
|
|
29792
30187
|
},
|
|
29793
|
-
"$listeners$": [[0, "
|
|
30188
|
+
"$listeners$": [[0, "calciteInternalStepperItemKeyEvent", "calciteInternalStepperItemKeyEvent"], [0, "calciteInternalStepperItemRegister", "registerItem"], [0, "calciteInternalStepperItemSelect", "updateItem"]],
|
|
29794
30189
|
"$lazyBundleId$": "-",
|
|
29795
30190
|
"$attrsToReflect$": [["icon", "icon"], ["layout", "layout"], ["numbered", "numbered"], ["scale", "scale"]]
|
|
29796
30191
|
}; }
|
|
@@ -29804,9 +30199,9 @@ const stepperItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyf
|
|
|
29804
30199
|
class StepperItem {
|
|
29805
30200
|
constructor(hostRef) {
|
|
29806
30201
|
registerInstance(this, hostRef);
|
|
29807
|
-
this.
|
|
29808
|
-
this.
|
|
29809
|
-
this.
|
|
30202
|
+
this.calciteInternalStepperItemKeyEvent = createEvent(this, "calciteInternalStepperItemKeyEvent", 7);
|
|
30203
|
+
this.calciteInternalStepperItemSelect = createEvent(this, "calciteInternalStepperItemSelect", 7);
|
|
30204
|
+
this.calciteInternalStepperItemRegister = createEvent(this, "calciteInternalStepperItemRegister", 7);
|
|
29810
30205
|
//--------------------------------------------------------------------------
|
|
29811
30206
|
//
|
|
29812
30207
|
// Public Properties
|
|
@@ -29848,7 +30243,7 @@ class StepperItem {
|
|
|
29848
30243
|
case "ArrowRight":
|
|
29849
30244
|
case "Home":
|
|
29850
30245
|
case "End":
|
|
29851
|
-
this.
|
|
30246
|
+
this.calciteInternalStepperItemKeyEvent.emit({ item: e });
|
|
29852
30247
|
e.preventDefault();
|
|
29853
30248
|
break;
|
|
29854
30249
|
}
|
|
@@ -29856,7 +30251,7 @@ class StepperItem {
|
|
|
29856
30251
|
};
|
|
29857
30252
|
this.emitRequestedItem = () => {
|
|
29858
30253
|
if (!this.disabled) {
|
|
29859
|
-
this.
|
|
30254
|
+
this.calciteInternalStepperItemSelect.emit({
|
|
29860
30255
|
position: this.itemPosition,
|
|
29861
30256
|
content: this.itemContent
|
|
29862
30257
|
});
|
|
@@ -29907,6 +30302,7 @@ class StepperItem {
|
|
|
29907
30302
|
this.activePosition = event.detail.position;
|
|
29908
30303
|
this.determineActiveItem();
|
|
29909
30304
|
}
|
|
30305
|
+
event.stopPropagation();
|
|
29910
30306
|
}
|
|
29911
30307
|
renderIcon() {
|
|
29912
30308
|
const path = this.active
|
|
@@ -29922,7 +30318,7 @@ class StepperItem {
|
|
|
29922
30318
|
this.active = !this.disabled && this.itemPosition === this.activePosition;
|
|
29923
30319
|
}
|
|
29924
30320
|
registerStepperItem() {
|
|
29925
|
-
this.
|
|
30321
|
+
this.calciteInternalStepperItemRegister.emit({
|
|
29926
30322
|
position: this.itemPosition,
|
|
29927
30323
|
content: this.itemContent
|
|
29928
30324
|
});
|
|
@@ -29950,7 +30346,7 @@ class StepperItem {
|
|
|
29950
30346
|
"numbered": [1028],
|
|
29951
30347
|
"scale": [1537]
|
|
29952
30348
|
},
|
|
29953
|
-
"$listeners$": [[16, "
|
|
30349
|
+
"$listeners$": [[16, "calciteInternalStepperItemChange", "updateActiveItemOnChange"]],
|
|
29954
30350
|
"$lazyBundleId$": "-",
|
|
29955
30351
|
"$attrsToReflect$": [["active", "active"], ["complete", "complete"], ["disabled", "disabled"], ["layout", "layout"], ["scale", "scale"]]
|
|
29956
30352
|
}; }
|
|
@@ -29971,7 +30367,9 @@ class Switch {
|
|
|
29971
30367
|
this.disabled = false;
|
|
29972
30368
|
/** The scale of the switch */
|
|
29973
30369
|
this.scale = "m";
|
|
29974
|
-
/**
|
|
30370
|
+
/**
|
|
30371
|
+
* True if the switch is initially on
|
|
30372
|
+
*
|
|
29975
30373
|
* @deprecated use 'checked' instead.
|
|
29976
30374
|
*/
|
|
29977
30375
|
this.switched = false;
|
|
@@ -30083,12 +30481,14 @@ const tabCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in
|
|
|
30083
30481
|
class Tab {
|
|
30084
30482
|
constructor(hostRef) {
|
|
30085
30483
|
registerInstance(this, hostRef);
|
|
30086
|
-
this.
|
|
30484
|
+
this.calciteInternalTabRegister = createEvent(this, "calciteInternalTabRegister", 7);
|
|
30087
30485
|
/**
|
|
30088
30486
|
* Show this tab
|
|
30089
30487
|
*/
|
|
30090
30488
|
this.active = false;
|
|
30091
|
-
/**
|
|
30489
|
+
/**
|
|
30490
|
+
* @internal
|
|
30491
|
+
*/
|
|
30092
30492
|
this.scale = "m";
|
|
30093
30493
|
this.guid = `calcite-tab-title-${guid()}`;
|
|
30094
30494
|
}
|
|
@@ -30105,7 +30505,7 @@ class Tab {
|
|
|
30105
30505
|
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
30106
30506
|
}
|
|
30107
30507
|
componentDidLoad() {
|
|
30108
|
-
this.
|
|
30508
|
+
this.calciteInternalTabRegister.emit();
|
|
30109
30509
|
}
|
|
30110
30510
|
componentWillRender() {
|
|
30111
30511
|
var _a;
|
|
@@ -30141,6 +30541,7 @@ class Tab {
|
|
|
30141
30541
|
this.active = index === event.detail.tab;
|
|
30142
30542
|
});
|
|
30143
30543
|
}
|
|
30544
|
+
event.stopPropagation();
|
|
30144
30545
|
}
|
|
30145
30546
|
//--------------------------------------------------------------------------
|
|
30146
30547
|
//
|
|
@@ -30159,6 +30560,8 @@ class Tab {
|
|
|
30159
30560
|
//
|
|
30160
30561
|
//--------------------------------------------------------------------------
|
|
30161
30562
|
/**
|
|
30563
|
+
* @param tabIds
|
|
30564
|
+
* @param titleIds
|
|
30162
30565
|
* @internal
|
|
30163
30566
|
*/
|
|
30164
30567
|
async updateAriaInfo(tabIds = [], titleIds = []) {
|
|
@@ -30193,13 +30596,21 @@ class TabNav {
|
|
|
30193
30596
|
registerInstance(this, hostRef);
|
|
30194
30597
|
this.calciteTabChange = createEvent(this, "calciteTabChange", 7);
|
|
30195
30598
|
this.calciteInternalTabChange = createEvent(this, "calciteInternalTabChange", 7);
|
|
30196
|
-
/**
|
|
30599
|
+
/**
|
|
30600
|
+
* @internal
|
|
30601
|
+
*/
|
|
30197
30602
|
this.scale = "m";
|
|
30198
|
-
/**
|
|
30603
|
+
/**
|
|
30604
|
+
* @internal
|
|
30605
|
+
*/
|
|
30199
30606
|
this.layout = "inline";
|
|
30200
|
-
/**
|
|
30607
|
+
/**
|
|
30608
|
+
* @internal
|
|
30609
|
+
*/
|
|
30201
30610
|
this.position = "below";
|
|
30202
|
-
/**
|
|
30611
|
+
/**
|
|
30612
|
+
* @internal
|
|
30613
|
+
*/
|
|
30203
30614
|
this.bordered = false;
|
|
30204
30615
|
this.animationActiveDuration = 0.3;
|
|
30205
30616
|
this.resizeObserver = createObserver();
|
|
@@ -30319,6 +30730,8 @@ class TabNav {
|
|
|
30319
30730
|
}
|
|
30320
30731
|
/**
|
|
30321
30732
|
* Check for active tabs on register and update selected
|
|
30733
|
+
*
|
|
30734
|
+
* @param e
|
|
30322
30735
|
*/
|
|
30323
30736
|
updateTabTitles(e) {
|
|
30324
30737
|
if (e.target.active) {
|
|
@@ -30333,6 +30746,7 @@ class TabNav {
|
|
|
30333
30746
|
this.selectedTab = e.detail.tab;
|
|
30334
30747
|
e.stopPropagation();
|
|
30335
30748
|
}
|
|
30749
|
+
e.stopPropagation();
|
|
30336
30750
|
}
|
|
30337
30751
|
updateOffsetPosition() {
|
|
30338
30752
|
var _a, _b, _c, _d, _e;
|
|
@@ -30385,7 +30799,7 @@ class TabNav {
|
|
|
30385
30799
|
"selectedTab": [32],
|
|
30386
30800
|
"selectedTabEl": [32]
|
|
30387
30801
|
},
|
|
30388
|
-
"$listeners$": [[0, "
|
|
30802
|
+
"$listeners$": [[0, "calciteInternalTabsFocusPrevious", "focusPreviousTabHandler"], [0, "calciteInternalTabsFocusNext", "focusNextTabHandler"], [0, "calciteInternalTabsActivate", "internalActivateTabHandler"], [0, "calciteTabsActivate", "activateTabHandler"], [0, "calciteInternalTabTitleRegister", "updateTabTitles"], [16, "calciteInternalTabChange", "globalInternalTabChangeHandler"]],
|
|
30389
30803
|
"$lazyBundleId$": "-",
|
|
30390
30804
|
"$attrsToReflect$": [["scale", "scale"], ["layout", "layout"], ["position", "position"], ["bordered", "bordered"]]
|
|
30391
30805
|
}; }
|
|
@@ -30401,9 +30815,9 @@ class TabTitle {
|
|
|
30401
30815
|
registerInstance(this, hostRef);
|
|
30402
30816
|
this.calciteTabsActivate = createEvent(this, "calciteTabsActivate", 7);
|
|
30403
30817
|
this.calciteInternalTabsActivate = createEvent(this, "calciteInternalTabsActivate", 7);
|
|
30404
|
-
this.
|
|
30405
|
-
this.
|
|
30406
|
-
this.
|
|
30818
|
+
this.calciteInternalTabsFocusNext = createEvent(this, "calciteInternalTabsFocusNext", 7);
|
|
30819
|
+
this.calciteInternalTabsFocusPrevious = createEvent(this, "calciteInternalTabsFocusPrevious", 7);
|
|
30820
|
+
this.calciteInternalTabTitleRegister = createEvent(this, "calciteInternalTabTitleRegister", 7);
|
|
30407
30821
|
//--------------------------------------------------------------------------
|
|
30408
30822
|
//
|
|
30409
30823
|
// Properties
|
|
@@ -30413,14 +30827,16 @@ class TabTitle {
|
|
|
30413
30827
|
this.active = false;
|
|
30414
30828
|
/** Disable this tab title */
|
|
30415
30829
|
this.disabled = false;
|
|
30416
|
-
/**
|
|
30830
|
+
/**
|
|
30831
|
+
* @internal
|
|
30832
|
+
*/
|
|
30417
30833
|
this.bordered = false;
|
|
30418
30834
|
//--------------------------------------------------------------------------
|
|
30419
30835
|
//
|
|
30420
30836
|
// Private State/Props
|
|
30421
30837
|
//
|
|
30422
30838
|
//--------------------------------------------------------------------------
|
|
30423
|
-
/** watches for changing text content
|
|
30839
|
+
/** watches for changing text content */
|
|
30424
30840
|
this.mutationObserver = createObserver();
|
|
30425
30841
|
/** determine if there is slotted text for styling purposes */
|
|
30426
30842
|
this.hasText = false;
|
|
@@ -30478,7 +30894,7 @@ class TabTitle {
|
|
|
30478
30894
|
}, style: showSideBorders && { width: `${this.parentTabNavEl.indicatorWidth}px` } }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
30479
30895
|
}
|
|
30480
30896
|
async componentDidLoad() {
|
|
30481
|
-
this.
|
|
30897
|
+
this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier());
|
|
30482
30898
|
}
|
|
30483
30899
|
componentDidRender() {
|
|
30484
30900
|
updateHostInteraction(this, true);
|
|
@@ -30517,18 +30933,18 @@ class TabTitle {
|
|
|
30517
30933
|
break;
|
|
30518
30934
|
case "ArrowRight":
|
|
30519
30935
|
if (getElementDir(this.el) === "ltr") {
|
|
30520
|
-
this.
|
|
30936
|
+
this.calciteInternalTabsFocusNext.emit();
|
|
30521
30937
|
}
|
|
30522
30938
|
else {
|
|
30523
|
-
this.
|
|
30939
|
+
this.calciteInternalTabsFocusPrevious.emit();
|
|
30524
30940
|
}
|
|
30525
30941
|
break;
|
|
30526
30942
|
case "ArrowLeft":
|
|
30527
30943
|
if (getElementDir(this.el) === "ltr") {
|
|
30528
|
-
this.
|
|
30944
|
+
this.calciteInternalTabsFocusPrevious.emit();
|
|
30529
30945
|
}
|
|
30530
30946
|
else {
|
|
30531
|
-
this.
|
|
30947
|
+
this.calciteInternalTabsFocusNext.emit();
|
|
30532
30948
|
}
|
|
30533
30949
|
break;
|
|
30534
30950
|
}
|
|
@@ -30551,6 +30967,8 @@ class TabTitle {
|
|
|
30551
30967
|
return this.tab ? this.tab : this.getTabIndex();
|
|
30552
30968
|
}
|
|
30553
30969
|
/**
|
|
30970
|
+
* @param tabIds
|
|
30971
|
+
* @param titleIds
|
|
30554
30972
|
* @internal
|
|
30555
30973
|
*/
|
|
30556
30974
|
async updateAriaInfo(tabIds = [], titleIds = []) {
|
|
@@ -30679,14 +31097,16 @@ class Tabs {
|
|
|
30679
31097
|
//
|
|
30680
31098
|
//--------------------------------------------------------------------------
|
|
30681
31099
|
/**
|
|
31100
|
+
* @param e
|
|
30682
31101
|
* @internal
|
|
30683
31102
|
*/
|
|
30684
|
-
|
|
31103
|
+
calciteInternalTabTitleRegister(e) {
|
|
30685
31104
|
this.titles = [...this.titles, e.target];
|
|
30686
31105
|
this.registryHandler();
|
|
30687
31106
|
e.stopPropagation();
|
|
30688
31107
|
}
|
|
30689
31108
|
/**
|
|
31109
|
+
* @param e
|
|
30690
31110
|
* @internal
|
|
30691
31111
|
*/
|
|
30692
31112
|
calciteTabTitleUnregister(e) {
|
|
@@ -30695,14 +31115,16 @@ class Tabs {
|
|
|
30695
31115
|
e.stopPropagation();
|
|
30696
31116
|
}
|
|
30697
31117
|
/**
|
|
31118
|
+
* @param e
|
|
30698
31119
|
* @internal
|
|
30699
31120
|
*/
|
|
30700
|
-
|
|
31121
|
+
calciteInternalTabRegister(e) {
|
|
30701
31122
|
this.tabs = [...this.tabs, e.target];
|
|
30702
31123
|
this.registryHandler();
|
|
30703
31124
|
e.stopPropagation();
|
|
30704
31125
|
}
|
|
30705
31126
|
/**
|
|
31127
|
+
* @param e
|
|
30706
31128
|
* @internal
|
|
30707
31129
|
*/
|
|
30708
31130
|
calciteTabUnregister(e) {
|
|
@@ -30769,7 +31191,7 @@ class Tabs {
|
|
|
30769
31191
|
"titles": [32],
|
|
30770
31192
|
"tabs": [32]
|
|
30771
31193
|
},
|
|
30772
|
-
"$listeners$": [[0, "
|
|
31194
|
+
"$listeners$": [[0, "calciteInternalTabTitleRegister", "calciteInternalTabTitleRegister"], [16, "calciteTabTitleUnregister", "calciteTabTitleUnregister"], [0, "calciteInternalTabRegister", "calciteInternalTabRegister"], [16, "calciteTabUnregister", "calciteTabUnregister"]],
|
|
30773
31195
|
"$lazyBundleId$": "-",
|
|
30774
31196
|
"$attrsToReflect$": [["layout", "layout"], ["position", "position"], ["scale", "scale"], ["bordered", "bordered"]]
|
|
30775
31197
|
}; }
|
|
@@ -30804,6 +31226,7 @@ class Tile {
|
|
|
30804
31226
|
this.embed = false;
|
|
30805
31227
|
/**
|
|
30806
31228
|
* The focused state of the tile.
|
|
31229
|
+
*
|
|
30807
31230
|
* @internal
|
|
30808
31231
|
*/
|
|
30809
31232
|
this.focused = false;
|
|
@@ -31181,64 +31604,89 @@ function capitalize(str) {
|
|
|
31181
31604
|
class TimePicker {
|
|
31182
31605
|
constructor(hostRef) {
|
|
31183
31606
|
registerInstance(this, hostRef);
|
|
31184
|
-
this.
|
|
31185
|
-
this.
|
|
31186
|
-
this.
|
|
31607
|
+
this.calciteInternalTimePickerBlur = createEvent(this, "calciteInternalTimePickerBlur", 7);
|
|
31608
|
+
this.calciteInternalTimePickerChange = createEvent(this, "calciteInternalTimePickerChange", 7);
|
|
31609
|
+
this.calciteInternalTimePickerFocus = createEvent(this, "calciteInternalTimePickerFocus", 7);
|
|
31187
31610
|
//--------------------------------------------------------------------------
|
|
31188
31611
|
//
|
|
31189
31612
|
// Properties
|
|
31190
31613
|
//
|
|
31191
31614
|
//--------------------------------------------------------------------------
|
|
31192
|
-
/**
|
|
31615
|
+
/**
|
|
31616
|
+
* aria-label for the hour input
|
|
31617
|
+
*
|
|
31193
31618
|
* @default "Hour"
|
|
31194
31619
|
*/
|
|
31195
31620
|
this.intlHour = TEXT$2.hour;
|
|
31196
|
-
/**
|
|
31621
|
+
/**
|
|
31622
|
+
* aria-label for the hour down button
|
|
31623
|
+
*
|
|
31197
31624
|
* @default "Decrease hour"
|
|
31198
31625
|
*/
|
|
31199
31626
|
this.intlHourDown = TEXT$2.hourDown;
|
|
31200
|
-
/**
|
|
31627
|
+
/**
|
|
31628
|
+
* aria-label for the hour up button
|
|
31629
|
+
*
|
|
31201
31630
|
* @default "Increase hour"
|
|
31202
31631
|
*/
|
|
31203
31632
|
this.intlHourUp = TEXT$2.hourUp;
|
|
31204
|
-
/**
|
|
31633
|
+
/**
|
|
31634
|
+
* aria-label for the meridiem (am/pm) input
|
|
31635
|
+
*
|
|
31205
31636
|
* @default "AM/PM"
|
|
31206
31637
|
*/
|
|
31207
31638
|
this.intlMeridiem = TEXT$2.meridiem;
|
|
31208
|
-
/**
|
|
31639
|
+
/**
|
|
31640
|
+
* aria-label for the meridiem (am/pm) down button
|
|
31641
|
+
*
|
|
31209
31642
|
* @default "Decrease AM/PM"
|
|
31210
31643
|
*/
|
|
31211
31644
|
this.intlMeridiemDown = TEXT$2.meridiemDown;
|
|
31212
|
-
/**
|
|
31645
|
+
/**
|
|
31646
|
+
* aria-label for the meridiem (am/pm) up button
|
|
31647
|
+
*
|
|
31213
31648
|
* @default "Increase AM/PM"
|
|
31214
31649
|
*/
|
|
31215
31650
|
this.intlMeridiemUp = TEXT$2.meridiemUp;
|
|
31216
|
-
/**
|
|
31651
|
+
/**
|
|
31652
|
+
* aria-label for the minute input
|
|
31653
|
+
*
|
|
31217
31654
|
* @default "Minute"
|
|
31218
31655
|
*/
|
|
31219
31656
|
this.intlMinute = TEXT$2.minute;
|
|
31220
|
-
/**
|
|
31657
|
+
/**
|
|
31658
|
+
* aria-label for the minute down button
|
|
31659
|
+
*
|
|
31221
31660
|
* @default "Decrease minute"
|
|
31222
31661
|
*/
|
|
31223
31662
|
this.intlMinuteDown = TEXT$2.minuteDown;
|
|
31224
|
-
/**
|
|
31663
|
+
/**
|
|
31664
|
+
* aria-label for the minute up button
|
|
31665
|
+
*
|
|
31225
31666
|
* @default "Increase minute"
|
|
31226
31667
|
*/
|
|
31227
31668
|
this.intlMinuteUp = TEXT$2.minuteUp;
|
|
31228
|
-
/**
|
|
31669
|
+
/**
|
|
31670
|
+
* aria-label for the second input
|
|
31671
|
+
*
|
|
31229
31672
|
* @default "Second"
|
|
31230
31673
|
*/
|
|
31231
31674
|
this.intlSecond = TEXT$2.second;
|
|
31232
|
-
/**
|
|
31675
|
+
/**
|
|
31676
|
+
* aria-label for the second down button
|
|
31677
|
+
*
|
|
31233
31678
|
* @default "Decrease second"
|
|
31234
31679
|
*/
|
|
31235
31680
|
this.intlSecondDown = TEXT$2.secondDown;
|
|
31236
|
-
/**
|
|
31681
|
+
/**
|
|
31682
|
+
* aria-label for the second up button
|
|
31683
|
+
*
|
|
31237
31684
|
* @default "Increase second"
|
|
31238
31685
|
*/
|
|
31239
31686
|
this.intlSecondUp = TEXT$2.secondUp;
|
|
31240
31687
|
/**
|
|
31241
31688
|
* BCP 47 language tag for desired language and country format
|
|
31689
|
+
*
|
|
31242
31690
|
* @internal
|
|
31243
31691
|
*/
|
|
31244
31692
|
this.locale = document.documentElement.lang || navigator.language || "en";
|
|
@@ -31536,7 +31984,7 @@ class TimePicker {
|
|
|
31536
31984
|
this.value = null;
|
|
31537
31985
|
}
|
|
31538
31986
|
if (emit) {
|
|
31539
|
-
this.
|
|
31987
|
+
this.calciteInternalTimePickerChange.emit();
|
|
31540
31988
|
}
|
|
31541
31989
|
};
|
|
31542
31990
|
this.setValuePart = (key, value, emit = true) => {
|
|
@@ -31575,7 +32023,7 @@ class TimePicker {
|
|
|
31575
32023
|
? ((_a = localizeTimeStringToParts(this.value, this.locale)) === null || _a === void 0 ? void 0 : _a.localizedMeridiem) || null
|
|
31576
32024
|
: localizeTimePart(this.meridiem, "meridiem", this.locale);
|
|
31577
32025
|
if (emit) {
|
|
31578
|
-
this.
|
|
32026
|
+
this.calciteInternalTimePickerChange.emit();
|
|
31579
32027
|
}
|
|
31580
32028
|
};
|
|
31581
32029
|
}
|
|
@@ -31592,10 +32040,10 @@ class TimePicker {
|
|
|
31592
32040
|
//
|
|
31593
32041
|
//--------------------------------------------------------------------------
|
|
31594
32042
|
hostBlurHandler() {
|
|
31595
|
-
this.
|
|
32043
|
+
this.calciteInternalTimePickerBlur.emit();
|
|
31596
32044
|
}
|
|
31597
32045
|
hostFocusHandler() {
|
|
31598
|
-
this.
|
|
32046
|
+
this.calciteInternalTimePickerFocus.emit();
|
|
31599
32047
|
}
|
|
31600
32048
|
keyDownHandler(event) {
|
|
31601
32049
|
const key = event.key;
|
|
@@ -31651,7 +32099,11 @@ class TimePicker {
|
|
|
31651
32099
|
// Public Methods
|
|
31652
32100
|
//
|
|
31653
32101
|
//--------------------------------------------------------------------------
|
|
31654
|
-
/**
|
|
32102
|
+
/**
|
|
32103
|
+
* Sets focus on the component.
|
|
32104
|
+
*
|
|
32105
|
+
* @param target
|
|
32106
|
+
*/
|
|
31655
32107
|
async setFocus(target) {
|
|
31656
32108
|
var _a;
|
|
31657
32109
|
(_a = this[`${target || "hour"}El`]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -32320,6 +32772,7 @@ class Tooltip {
|
|
|
32320
32772
|
registerInstance(this, hostRef);
|
|
32321
32773
|
/**
|
|
32322
32774
|
* Offset the position of the tooltip away from the reference element.
|
|
32775
|
+
*
|
|
32323
32776
|
* @default 6
|
|
32324
32777
|
*/
|
|
32325
32778
|
this.offsetDistance = defaultOffsetDistance;
|
|
@@ -32335,6 +32788,7 @@ class Tooltip {
|
|
|
32335
32788
|
this.overlayPositioning = "absolute";
|
|
32336
32789
|
/**
|
|
32337
32790
|
* Determines where the component will be positioned relative to the referenceElement.
|
|
32791
|
+
*
|
|
32338
32792
|
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
32339
32793
|
*/
|
|
32340
32794
|
this.placement = "auto";
|
|
@@ -32531,6 +32985,7 @@ class TooltipManager {
|
|
|
32531
32985
|
// --------------------------------------------------------------------------
|
|
32532
32986
|
/**
|
|
32533
32987
|
* CSS Selector to match reference elements for tooltips. Reference elements will be identified by this selector in order to open their associated tooltip.
|
|
32988
|
+
*
|
|
32534
32989
|
* @default `[data-calcite-tooltip-reference]`
|
|
32535
32990
|
*/
|
|
32536
32991
|
this.selector = "[data-calcite-tooltip-reference]";
|
|
@@ -32581,13 +33036,17 @@ class Tree {
|
|
|
32581
33036
|
//--------------------------------------------------------------------------
|
|
32582
33037
|
/** Display indentation guide lines. */
|
|
32583
33038
|
this.lines = false;
|
|
32584
|
-
/**
|
|
33039
|
+
/**
|
|
33040
|
+
* Display input
|
|
33041
|
+
*
|
|
32585
33042
|
* @deprecated Use "ancestors" selection-mode for checkbox input.
|
|
32586
33043
|
*/
|
|
32587
33044
|
this.inputEnabled = false;
|
|
32588
33045
|
/** Specify the scale of the tree. */
|
|
32589
33046
|
this.scale = "m";
|
|
32590
|
-
/**
|
|
33047
|
+
/**
|
|
33048
|
+
* Customize how tree selection works.
|
|
33049
|
+
*
|
|
32591
33050
|
* @default "single"
|
|
32592
33051
|
* @see [TreeSelectionMode](https://github.com/Esri/calcite-components/blob/master/src/components/tree/interfaces.ts#L5)
|
|
32593
33052
|
*/
|
|
@@ -32707,6 +33166,7 @@ class Tree {
|
|
|
32707
33166
|
this.calciteTreeSelect.emit({
|
|
32708
33167
|
selected: nodeListToArray(this.el.querySelectorAll("calcite-tree-item")).filter((i) => i.selected)
|
|
32709
33168
|
});
|
|
33169
|
+
e.stopPropagation();
|
|
32710
33170
|
}
|
|
32711
33171
|
keyDownHandler(event) {
|
|
32712
33172
|
var _a;
|
|
@@ -32818,7 +33278,7 @@ class Tree {
|
|
|
32818
33278
|
"scale": [1537],
|
|
32819
33279
|
"selectionMode": [1537, "selection-mode"]
|
|
32820
33280
|
},
|
|
32821
|
-
"$listeners$": [[0, "focus", "onFocus"], [0, "focusin", "onFocusIn"], [0, "focusout", "onFocusOut"], [0, "
|
|
33281
|
+
"$listeners$": [[0, "focus", "onFocus"], [0, "focusin", "onFocusIn"], [0, "focusout", "onFocusOut"], [0, "calciteInternalTreeItemSelect", "onClick"], [0, "keydown", "keyDownHandler"]],
|
|
32822
33282
|
"$lazyBundleId$": "-",
|
|
32823
33283
|
"$attrsToReflect$": [["lines", "lines"], ["child", "child"], ["scale", "scale"], ["selectionMode", "selection-mode"]]
|
|
32824
33284
|
}; }
|
|
@@ -32851,7 +33311,7 @@ const treeItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyfram
|
|
|
32851
33311
|
class TreeItem {
|
|
32852
33312
|
constructor(hostRef) {
|
|
32853
33313
|
registerInstance(this, hostRef);
|
|
32854
|
-
this.
|
|
33314
|
+
this.calciteInternalTreeItemSelect = createEvent(this, "calciteInternalTreeItemSelect", 7);
|
|
32855
33315
|
//--------------------------------------------------------------------------
|
|
32856
33316
|
//
|
|
32857
33317
|
// Properties
|
|
@@ -32861,11 +33321,17 @@ class TreeItem {
|
|
|
32861
33321
|
this.selected = false;
|
|
32862
33322
|
/** Expanded state of the item. */
|
|
32863
33323
|
this.expanded = false;
|
|
32864
|
-
/**
|
|
33324
|
+
/**
|
|
33325
|
+
* @internal
|
|
33326
|
+
*/
|
|
32865
33327
|
this.parentExpanded = false;
|
|
32866
|
-
/**
|
|
33328
|
+
/**
|
|
33329
|
+
* @internal
|
|
33330
|
+
*/
|
|
32867
33331
|
this.depth = -1;
|
|
32868
|
-
/**
|
|
33332
|
+
/**
|
|
33333
|
+
* @internal
|
|
33334
|
+
*/
|
|
32869
33335
|
this.hasChildren = null;
|
|
32870
33336
|
this.iconClickHandler = (event) => {
|
|
32871
33337
|
event.stopPropagation();
|
|
@@ -32990,7 +33456,7 @@ class TreeItem {
|
|
|
32990
33456
|
const target = link.target === "" ? "_self" : link.target;
|
|
32991
33457
|
window.open(link.href, target);
|
|
32992
33458
|
}
|
|
32993
|
-
this.
|
|
33459
|
+
this.calciteInternalTreeItemSelect.emit({
|
|
32994
33460
|
modifyCurrentSelection: this.selectionMode === TreeSelectionMode.Ancestors || this.isSelectionMultiLike,
|
|
32995
33461
|
forceToggle: false
|
|
32996
33462
|
});
|
|
@@ -32999,7 +33465,7 @@ class TreeItem {
|
|
|
32999
33465
|
let root;
|
|
33000
33466
|
switch (e.key) {
|
|
33001
33467
|
case " ":
|
|
33002
|
-
this.
|
|
33468
|
+
this.calciteInternalTreeItemSelect.emit({
|
|
33003
33469
|
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
33004
33470
|
forceToggle: false
|
|
33005
33471
|
});
|
|
@@ -33013,7 +33479,7 @@ class TreeItem {
|
|
|
33013
33479
|
this.selected = true;
|
|
33014
33480
|
}
|
|
33015
33481
|
else {
|
|
33016
|
-
this.
|
|
33482
|
+
this.calciteInternalTreeItemSelect.emit({
|
|
33017
33483
|
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
33018
33484
|
forceToggle: false
|
|
33019
33485
|
});
|
|
@@ -33196,12 +33662,13 @@ class ValueList {
|
|
|
33196
33662
|
calciteListItemChangeHandler(event) {
|
|
33197
33663
|
calciteListItemChangeHandler.call(this, event);
|
|
33198
33664
|
}
|
|
33199
|
-
|
|
33665
|
+
calciteInternalListItemPropsChangeHandler(event) {
|
|
33200
33666
|
event.stopPropagation();
|
|
33201
33667
|
this.setUpFilter();
|
|
33202
33668
|
}
|
|
33203
|
-
|
|
33204
|
-
|
|
33669
|
+
calciteInternalListItemValueChangeHandler(event) {
|
|
33670
|
+
calciteInternalListItemValueChangeHandler.call(this, event);
|
|
33671
|
+
event.stopPropagation();
|
|
33205
33672
|
}
|
|
33206
33673
|
// --------------------------------------------------------------------------
|
|
33207
33674
|
//
|
|
@@ -33250,7 +33717,11 @@ class ValueList {
|
|
|
33250
33717
|
async getSelectedItems() {
|
|
33251
33718
|
return this.selectedValues;
|
|
33252
33719
|
}
|
|
33253
|
-
/**
|
|
33720
|
+
/**
|
|
33721
|
+
* Sets focus on the component.
|
|
33722
|
+
*
|
|
33723
|
+
* @param focusId
|
|
33724
|
+
*/
|
|
33254
33725
|
async setFocus(focusId) {
|
|
33255
33726
|
return setFocus.call(this, focusId);
|
|
33256
33727
|
}
|
|
@@ -33288,7 +33759,7 @@ class ValueList {
|
|
|
33288
33759
|
"getSelectedItems": [64],
|
|
33289
33760
|
"setFocus": [64]
|
|
33290
33761
|
},
|
|
33291
|
-
"$listeners$": [[0, "focusout", "calciteListFocusOutHandler"], [0, "calciteListItemRemove", "calciteListItemRemoveHandler"], [0, "calciteListItemChange", "calciteListItemChangeHandler"], [0, "
|
|
33762
|
+
"$listeners$": [[0, "focusout", "calciteListFocusOutHandler"], [0, "calciteListItemRemove", "calciteListItemRemoveHandler"], [0, "calciteListItemChange", "calciteListItemChangeHandler"], [0, "calciteInternalListItemPropsChange", "calciteInternalListItemPropsChangeHandler"], [0, "calciteInternalListItemValueChange", "calciteInternalListItemValueChangeHandler"]],
|
|
33292
33763
|
"$lazyBundleId$": "-",
|
|
33293
33764
|
"$attrsToReflect$": [["disabled", "disabled"], ["dragEnabled", "drag-enabled"], ["filterEnabled", "filter-enabled"], ["filterPlaceholder", "filter-placeholder"], ["loading", "loading"], ["multiple", "multiple"]]
|
|
33294
33765
|
}; }
|
|
@@ -33317,7 +33788,7 @@ class ValueListItem {
|
|
|
33317
33788
|
*/
|
|
33318
33789
|
this.disabled = false;
|
|
33319
33790
|
/**
|
|
33320
|
-
* @internal
|
|
33791
|
+
* @internal
|
|
33321
33792
|
*/
|
|
33322
33793
|
this.disableDeselect = false;
|
|
33323
33794
|
/**
|
|
@@ -33325,11 +33796,12 @@ class ValueListItem {
|
|
|
33325
33796
|
*/
|
|
33326
33797
|
this.nonInteractive = false;
|
|
33327
33798
|
/**
|
|
33328
|
-
* @internal
|
|
33799
|
+
* @internal
|
|
33329
33800
|
*/
|
|
33330
33801
|
this.handleActivated = false;
|
|
33331
33802
|
/**
|
|
33332
33803
|
* Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.
|
|
33804
|
+
*
|
|
33333
33805
|
* @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/pick-list/resources.ts#L5)
|
|
33334
33806
|
*/
|
|
33335
33807
|
this.icon = null;
|
|
@@ -33383,6 +33855,8 @@ class ValueListItem {
|
|
|
33383
33855
|
/**
|
|
33384
33856
|
* Toggle the selection state. By default this won't trigger an event.
|
|
33385
33857
|
* The first argument allows the value to be coerced, rather than swapping values.
|
|
33858
|
+
*
|
|
33859
|
+
* @param coerce
|
|
33386
33860
|
*/
|
|
33387
33861
|
async toggleSelected(coerce) {
|
|
33388
33862
|
this.pickListItem.toggleSelected(coerce);
|