@esri/calcite-components 1.0.0-beta.68 → 1.0.0-beta.71
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/calcite-icon/checkExtent16.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkExtent24.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkExtent32.json +1 -0
- package/dist/calcite/assets/calcite-icon/cloudy16.json +1 -0
- package/dist/calcite/assets/calcite-icon/cloudy24.json +1 -0
- package/dist/calcite/assets/calcite-icon/cloudy32.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionLock16.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionLock24.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionLock32.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionUnlock16.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionUnlock24.json +1 -0
- package/dist/calcite/assets/calcite-icon/displaySelectionUnlock32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTime16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTime24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTime32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeLargest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeLargest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeLargest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeSmallest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeSmallest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeSmallest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeThreshold16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeThreshold24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeThreshold32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeXBar16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeXBar24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeXBar32.json +1 -0
- package/dist/calcite/assets/calcite-icon/fog16.json +1 -0
- package/dist/calcite/assets/calcite-icon/fog24.json +1 -0
- package/dist/calcite/assets/calcite-icon/fog32.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupItems16.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupItems24.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupItems32.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupLayoutElements16.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupLayoutElements24.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupLayoutElements32.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavyRain16.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavyRain24.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavyRain32.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavySnow16.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavySnow24.json +1 -0
- package/dist/calcite/assets/calcite-icon/heavySnow32.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightRain16.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightRain24.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightRain32.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightSnow16.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightSnow24.json +1 -0
- package/dist/calcite/assets/calcite-icon/lightSnow32.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloud16.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloud24.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloud32.json +1 -0
- package/dist/calcite/assets/calcite-icon/rain16.json +1 -0
- package/dist/calcite/assets/calcite-icon/rain24.json +1 -0
- package/dist/calcite/assets/calcite-icon/rain32.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainSnow16.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainSnow24.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainSnow32.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainThunder16.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainThunder24.json +1 -0
- package/dist/calcite/assets/calcite-icon/rainThunder32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsLargest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsLargest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsLargest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsSmallest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsSmallest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsSmallest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsThreshold16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsThreshold24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsThreshold32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsXBar16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsXBar24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsXBar32.json +1 -0
- package/dist/calcite/assets/calcite-icon/selectVisible16.json +1 -0
- package/dist/calcite/assets/calcite-icon/selectVisible24.json +1 -0
- package/dist/calcite/assets/calcite-icon/selectVisible32.json +1 -0
- package/dist/calcite/assets/calcite-icon/snow16.json +1 -0
- package/dist/calcite/assets/calcite-icon/snow24.json +1 -0
- package/dist/calcite/assets/calcite-icon/snow32.json +1 -0
- package/dist/calcite/assets/calcite-icon/snowThunder16.json +1 -0
- package/dist/calcite/assets/calcite-icon/snowThunder24.json +1 -0
- package/dist/calcite/assets/calcite-icon/snowThunder32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupItems16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupItems24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupItems32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
- package/dist/calcite/calcite.css +1 -1
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/p-04a2538a.entry.js +5 -0
- package/dist/calcite/{p-18078190.entry.js → p-051cc8c6.entry.js} +1 -1
- package/dist/calcite/{p-41e9b889.entry.js → p-058ee7b0.entry.js} +1 -1
- package/dist/calcite/p-0c827dec.entry.js +5 -0
- package/dist/calcite/{p-021d44b7.system.entry.js → p-0f33798d.system.entry.js} +1 -1
- package/dist/calcite/{p-5cb26137.system.entry.js → p-0f9f1f89.system.entry.js} +1 -1
- package/dist/calcite/{p-61038b30.js → p-1161e56f.js} +1 -1
- package/dist/calcite/{p-69548a7d.system.entry.js → p-18fbf2af.system.entry.js} +1 -1
- package/dist/calcite/{p-1aaf7f83.entry.js → p-198902ca.entry.js} +1 -1
- package/dist/calcite/{p-ac3d8784.entry.js → p-1ad123f9.entry.js} +1 -1
- package/dist/calcite/{p-318e95d7.system.entry.js → p-1eb04aad.system.entry.js} +1 -1
- package/dist/calcite/{p-bd555b2e.system.entry.js → p-1f809e6c.system.entry.js} +1 -1
- package/dist/calcite/{p-7c0debe0.system.entry.js → p-2033f545.system.entry.js} +1 -1
- package/dist/calcite/p-20f91a4e.system.entry.js +5 -0
- package/dist/calcite/{p-9e4f2697.system.entry.js → p-227bc238.system.entry.js} +1 -1
- package/dist/calcite/p-239b44dd.system.entry.js +5 -0
- package/dist/calcite/{p-9dbb69f7.entry.js → p-23bc2d32.entry.js} +1 -1
- package/dist/calcite/p-266ee9db.entry.js +5 -0
- package/dist/calcite/p-288bc438.system.js +5 -0
- package/dist/calcite/p-2c66fb61.entry.js +5 -0
- package/dist/calcite/p-2d09cc25.js +5 -0
- package/dist/calcite/p-2e29554c.js +5 -0
- package/dist/calcite/{p-8efb43fc.entry.js → p-33802886.entry.js} +1 -1
- package/dist/calcite/p-343cd887.entry.js +5 -0
- package/dist/calcite/{p-32fbf8cd.system.js → p-34e5baa7.system.js} +1 -1
- package/dist/calcite/{p-eb3ee207.entry.js → p-3d69fba9.entry.js} +1 -1
- package/dist/calcite/p-3ec67fae.entry.js +5 -0
- package/dist/calcite/p-42091a1f.system.entry.js +5 -0
- package/dist/calcite/p-42c7e2f0.system.entry.js +5 -0
- package/dist/calcite/p-43020fb5.js +5 -0
- package/dist/calcite/p-44a07313.system.entry.js +5 -0
- package/dist/calcite/p-47f55191.system.js +5 -0
- package/dist/calcite/p-4a8b3cf3.system.entry.js +5 -0
- package/dist/calcite/p-4cc182af.system.entry.js +5 -0
- package/dist/calcite/p-4ee2f6cf.system.entry.js +5 -0
- package/dist/calcite/p-50273eed.entry.js +5 -0
- package/dist/calcite/p-5035488d.entry.js +5 -0
- package/dist/calcite/p-52578054.js +5 -0
- package/dist/calcite/p-538e542a.system.entry.js +5 -0
- package/dist/calcite/{p-51cb078a.entry.js → p-55bfe4fc.entry.js} +1 -1
- package/dist/calcite/{p-99da965d.system.entry.js → p-57e9b7cb.system.entry.js} +1 -1
- package/dist/calcite/{p-8655c0a1.entry.js → p-659898bf.entry.js} +1 -1
- package/dist/calcite/{p-87e83c0d.system.entry.js → p-6c5b849f.system.entry.js} +1 -1
- package/dist/calcite/p-6ca051ef.entry.js +5 -0
- package/dist/calcite/p-702140ce.entry.js +5 -0
- package/dist/calcite/{p-7839d1c9.entry.js → p-714ae4f6.entry.js} +1 -1
- package/dist/calcite/p-71cdeee3.system.js +5 -0
- package/dist/calcite/p-71e299a6.system.js +5 -0
- package/dist/calcite/{p-4c7e3d8e.system.entry.js → p-730b8963.system.entry.js} +2 -2
- package/dist/calcite/{p-3929447c.system.entry.js → p-7325e7fc.system.entry.js} +1 -1
- package/dist/calcite/{p-31c4a271.system.entry.js → p-784e4e32.system.entry.js} +1 -1
- package/dist/calcite/{p-c57f8690.entry.js → p-7bb94bfa.entry.js} +1 -1
- package/dist/calcite/{p-c0dd929a.entry.js → p-80a527ef.entry.js} +1 -1
- package/dist/calcite/{p-20042561.entry.js → p-82c6cd9a.entry.js} +1 -1
- package/dist/calcite/{p-45d123be.system.entry.js → p-832affcb.system.entry.js} +1 -1
- package/dist/calcite/p-8340b572.js +5 -0
- package/dist/calcite/p-837f9bb4.system.entry.js +5 -0
- package/dist/calcite/{p-a93678c6.system.entry.js → p-83fca16e.system.entry.js} +2 -2
- package/dist/calcite/p-84d6696b.entry.js +5 -0
- package/dist/calcite/p-87f1831b.entry.js +5 -0
- package/dist/calcite/{p-22ad79b1.entry.js → p-88b4f504.entry.js} +1 -1
- package/dist/calcite/{p-95a3a0ce.entry.js → p-89987575.entry.js} +1 -1
- package/dist/calcite/{p-cd8f7781.system.entry.js → p-8b2d4eac.system.entry.js} +1 -1
- package/dist/calcite/{p-57f5866d.system.entry.js → p-8b2ead09.system.entry.js} +1 -1
- package/dist/calcite/p-8da7ad4b.entry.js +5 -0
- package/dist/calcite/p-8e252799.system.js +5 -0
- package/dist/calcite/p-8fef13ca.system.entry.js +5 -0
- package/dist/calcite/{p-473cfb74.system.entry.js → p-9470d123.system.entry.js} +1 -1
- package/dist/calcite/{p-c3922ef7.system.entry.js → p-95b9a0f2.system.entry.js} +1 -1
- package/dist/calcite/{p-0fc8b24c.system.entry.js → p-99de28b4.system.entry.js} +1 -1
- package/dist/calcite/p-99e52ea7.system.entry.js +5 -0
- package/dist/calcite/{p-9358deb1.system.entry.js → p-9abbbcbd.system.entry.js} +1 -1
- package/dist/calcite/{p-10ccc21d.entry.js → p-9be50494.entry.js} +1 -1
- package/dist/calcite/{p-050dc7e6.system.entry.js → p-a821e9b3.system.entry.js} +1 -1
- package/dist/calcite/p-a98e5444.system.entry.js +5 -0
- package/dist/calcite/p-ab9c6a18.entry.js +5 -0
- package/dist/calcite/{p-acaad99b.system.entry.js → p-abdc7a4b.system.entry.js} +1 -1
- package/dist/calcite/{p-9d83f268.system.entry.js → p-ac38b743.system.entry.js} +2 -2
- package/dist/calcite/{p-1b2c1f55.entry.js → p-aced5f01.entry.js} +1 -1
- package/dist/calcite/p-b0b6baf4.system.entry.js +5 -0
- package/dist/calcite/{p-e693758c.entry.js → p-b16b831d.entry.js} +1 -1
- package/dist/calcite/p-b174f9ac.entry.js +5 -0
- package/dist/calcite/{p-3ba8024a.system.entry.js → p-b37b7b9e.system.entry.js} +1 -1
- package/dist/calcite/p-b3e418f0.entry.js +5 -0
- package/dist/calcite/{p-bb916828.system.entry.js → p-b4b1081f.system.entry.js} +1 -1
- package/dist/calcite/{p-ba9b4f62.system.entry.js → p-b5d21a5d.system.entry.js} +1 -1
- package/dist/calcite/p-b5f412fb.entry.js +5 -0
- package/dist/calcite/p-b6b6ec04.js +5 -0
- package/dist/calcite/{p-d7e5b807.system.entry.js → p-b7518275.system.entry.js} +1 -1
- package/dist/calcite/p-b75ffebb.system.entry.js +5 -0
- package/dist/calcite/p-bef1f0d9.entry.js +5 -0
- package/dist/calcite/p-c0690971.entry.js +5 -0
- package/dist/calcite/{p-37cee0ea.entry.js → p-c12e88cd.entry.js} +1 -1
- package/dist/calcite/p-c1794615.entry.js +5 -0
- package/dist/calcite/{p-0e30afe6.entry.js → p-c3ba61ea.entry.js} +1 -1
- package/dist/calcite/{p-64d90b14.system.js → p-c937f25f.system.js} +1 -1
- package/dist/calcite/p-c9551366.entry.js +5 -0
- package/dist/calcite/{p-f141da0f.entry.js → p-ca5c0679.entry.js} +1 -1
- package/dist/calcite/{p-34a6550f.system.entry.js → p-cbe9f1a2.system.entry.js} +1 -1
- package/dist/calcite/{p-7b600760.entry.js → p-cd1cdf3c.entry.js} +1 -1
- package/dist/calcite/p-d07ff1ee.system.js +5 -0
- package/dist/calcite/{p-c20278e8.system.entry.js → p-d102e280.system.entry.js} +1 -1
- package/dist/calcite/p-d830efad.entry.js +5 -0
- package/dist/calcite/p-dacd3cf8.entry.js +5 -0
- package/dist/calcite/p-dcc6b40f.entry.js +5 -0
- package/dist/calcite/p-dccb5ffd.entry.js +5 -0
- package/dist/calcite/{p-3b17d8d0.system.js → p-dff7dc90.system.js} +1 -1
- package/dist/calcite/{p-aad45edf.system.js → p-e095517f.system.js} +1 -1
- package/dist/calcite/{p-e3a30266.system.entry.js → p-e2d18d39.system.entry.js} +1 -1
- package/dist/calcite/p-e5305b02.js +5 -0
- package/dist/calcite/{p-e33a2dd2.system.entry.js → p-e6a47d34.system.entry.js} +1 -1
- package/dist/calcite/p-e78e743b.entry.js +5 -0
- package/dist/calcite/{p-a20df95c.js → p-e956e279.js} +1 -1
- package/dist/calcite/p-ea3fee96.entry.js +5 -0
- package/dist/calcite/p-eada9cef.entry.js +5 -0
- package/dist/calcite/p-eb0f1e0f.system.entry.js +5 -0
- package/dist/calcite/p-ed3f000d.system.entry.js +5 -0
- package/dist/calcite/p-ee40deba.system.entry.js +5 -0
- package/dist/calcite/p-ee45cff5.system.entry.js +5 -0
- package/dist/calcite/{p-85a2bf7c.system.entry.js → p-eeb8dfe5.system.entry.js} +1 -1
- package/dist/calcite/{p-a8cd5cde.system.entry.js → p-f0338acf.system.entry.js} +1 -1
- package/dist/calcite/p-f05b5dc9.system.entry.js +5 -0
- package/dist/calcite/{p-ff04f827.system.entry.js → p-f1832595.system.entry.js} +1 -1
- package/dist/calcite/p-f2620bc3.js +5 -0
- package/dist/calcite/{p-1f99b038.entry.js → p-f333e31b.entry.js} +1 -1
- package/dist/calcite/p-f6323ffa.system.entry.js +5 -0
- package/dist/calcite/p-f87ba8eb.system.js +5 -0
- package/dist/calcite/p-f97e1a2d.entry.js +5 -0
- package/dist/calcite/p-fb817417.entry.js +5 -0
- package/dist/calcite/{p-75793454.entry.js → p-fb8b2c96.entry.js} +1 -1
- package/dist/calcite/{p-2920aa02.entry.js → p-fba77b86.entry.js} +1 -1
- package/dist/calcite/{p-da9603a3.entry.js → p-fc32b022.entry.js} +1 -1
- package/dist/calcite/{p-32faf98b.system.entry.js → p-fc47547f.system.entry.js} +1 -1
- package/dist/calcite/p-fccc1605.entry.js +5 -0
- package/dist/calcite/{p-175764f3.system.entry.js → p-fd1ddcd2.system.entry.js} +1 -1
- package/dist/cjs/{CalciteExpandToggle-0d802f83.js → CalciteExpandToggle-ca629f39.js} +4 -4
- package/dist/cjs/{CalciteHeading-381b977d.js → CalciteHeading-112c19f9.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +5 -2
- package/dist/cjs/calcite-action-bar.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-menu.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert.cjs.entry.js +20 -8
- package/dist/cjs/calcite-avatar.cjs.entry.js +2 -2
- package/dist/cjs/calcite-block_2.cjs.entry.js +6 -8
- package/dist/cjs/calcite-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-card.cjs.entry.js +3 -3
- package/dist/cjs/calcite-checkbox.cjs.entry.js +36 -85
- package/dist/cjs/calcite-chip.cjs.entry.js +2 -2
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +50 -45
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +85 -26
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +29 -11
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-fab.cjs.entry.js +2 -2
- package/dist/cjs/calcite-filter.cjs.entry.js +44 -15
- package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +49 -25
- package/dist/cjs/calcite-handle.cjs.entry.js +1 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +52 -43
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +71 -18
- package/dist/cjs/calcite-input-message.cjs.entry.js +2 -2
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +15 -6
- package/dist/cjs/calcite-input.cjs.entry.js +126 -78
- package/dist/cjs/calcite-label.cjs.entry.js +2 -2
- package/dist/cjs/calcite-link.cjs.entry.js +2 -2
- package/dist/cjs/calcite-list_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-loader.cjs.entry.js +2 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +3 -3
- package/dist/cjs/calcite-notice.cjs.entry.js +2 -2
- package/dist/cjs/calcite-option_3.cjs.entry.js +34 -7
- package/dist/cjs/calcite-pagination.cjs.entry.js +2 -2
- package/dist/cjs/calcite-panel.cjs.entry.js +11 -9
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-popover_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-progress.cjs.entry.js +1 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +36 -42
- package/dist/cjs/calcite-radio_2.cjs.entry.js +84 -82
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -5
- package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +170 -9
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js +5 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-switch.cjs.entry.js +30 -49
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -6
- package/dist/cjs/calcite-tile.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tip_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tree_2.cjs.entry.js +18 -11
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite.cjs.js +3 -3
- package/dist/cjs/{dom-19822169.js → dom-41ce6029.js} +7 -0
- package/dist/cjs/form-7f276aa5.js +179 -0
- package/dist/cjs/{index-1987a382.js → index-6b5d2de5.js} +81 -429
- package/dist/cjs/{label-549c3d9d.js → label-98a31f7d.js} +34 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/math-145c80e2.js +21 -0
- package/dist/cjs/{popper-cd9c0742.js → popper-4c24a334.js} +93 -67
- package/dist/cjs/{resources-d0619f6a.js → resources-1177e39b.js} +2 -2
- package/dist/cjs/{resources-7dcd68d1.js → resources-3f7b51c8.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +2 -2
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +11 -8
- package/dist/collection/components/calcite-action/calcite-action.js +4 -4
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +2 -2
- package/dist/collection/components/calcite-alert/calcite-alert.js +25 -11
- package/dist/collection/components/calcite-block/calcite-block.css +7 -22
- package/dist/collection/components/calcite-block/calcite-block.js +6 -9
- package/dist/collection/components/calcite-block-section/calcite-block-section.js +2 -2
- package/dist/collection/components/calcite-button/calcite-button.css +20 -14
- package/dist/collection/components/calcite-button/calcite-button.js +4 -4
- package/dist/collection/components/calcite-card/calcite-card.js +8 -8
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +22 -11
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +71 -120
- package/dist/collection/components/calcite-chip/calcite-chip.js +2 -2
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +63 -62
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +15 -19
- package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.js +2 -2
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +15 -0
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +148 -28
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +51 -21
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +2 -2
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +6 -6
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +6 -6
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +2 -2
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +33 -27
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +6 -6
- package/dist/collection/components/calcite-fab/calcite-fab.js +2 -2
- package/dist/collection/components/calcite-filter/calcite-filter.js +108 -19
- package/dist/collection/components/calcite-graph/calcite-graph.js +48 -6
- package/dist/collection/components/calcite-graph/util.js +1 -1
- package/dist/collection/components/calcite-handle/calcite-handle.js +2 -2
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/fog16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/fog24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/fog32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rain16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rain24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rain32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snow16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snow24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snow32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +8 -54
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +55 -44
- package/dist/collection/components/calcite-inline-editable/resources.js +7 -7
- package/dist/collection/components/calcite-input/calcite-input.css +104 -68
- package/dist/collection/components/calcite-input/calcite-input.js +170 -93
- package/dist/collection/components/calcite-input/resources.js +14 -12
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +15 -0
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +174 -51
- package/dist/collection/components/calcite-input-message/calcite-input-message.js +2 -2
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +15 -0
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +36 -5
- package/dist/collection/components/calcite-label/calcite-label.js +2 -2
- package/dist/collection/components/calcite-list-item/calcite-list-item.css +7 -0
- package/dist/collection/components/calcite-loader/calcite-loader.css +0 -3
- package/dist/collection/components/calcite-modal/calcite-modal.js +3 -3
- package/dist/collection/components/calcite-notice/calcite-notice.js +2 -2
- package/dist/collection/components/calcite-option/calcite-option.js +2 -2
- package/dist/collection/components/calcite-option-group/calcite-option-group.js +2 -2
- package/dist/collection/components/calcite-pagination/calcite-pagination.js +8 -8
- package/dist/collection/components/calcite-panel/calcite-panel.css +19 -6
- package/dist/collection/components/calcite-panel/calcite-panel.js +11 -9
- package/dist/collection/components/calcite-panel/resources.js +2 -0
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +10 -10
- package/dist/collection/components/calcite-popover/calcite-popover.css +1 -0
- package/dist/collection/components/calcite-popover/calcite-popover.js +9 -9
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +2 -2
- package/dist/collection/components/calcite-radio/calcite-radio.js +4 -4
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +18 -1
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +96 -102
- package/dist/collection/components/calcite-radio-button/resources.js +1 -1
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +15 -0
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +74 -40
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +3 -3
- package/dist/collection/components/calcite-rating/calcite-rating.css +15 -0
- package/dist/collection/components/calcite-rating/calcite-rating.js +53 -5
- package/dist/collection/components/calcite-scrim/calcite-scrim.js +2 -2
- package/dist/collection/components/calcite-select/calcite-select.css +15 -0
- package/dist/collection/components/calcite-select/calcite-select.js +93 -6
- package/dist/collection/components/calcite-shell/calcite-shell.css +11 -11
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +82 -21
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +205 -7
- package/dist/collection/components/calcite-shell-panel/resources.js +6 -1
- package/dist/collection/components/calcite-slider/calcite-slider.css +18 -4
- package/dist/collection/components/calcite-slider/calcite-slider.js +74 -17
- package/dist/collection/components/calcite-split-button/calcite-split-button.js +28 -3
- package/dist/collection/components/calcite-stepper/calcite-stepper.js +4 -4
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +14 -14
- package/dist/collection/components/calcite-switch/calcite-switch.css +15 -0
- package/dist/collection/components/calcite-switch/calcite-switch.js +35 -66
- package/dist/collection/components/calcite-tab/calcite-tab.css +5 -0
- package/dist/collection/components/calcite-tab/calcite-tab.js +4 -4
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +17 -17
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +19 -19
- package/dist/collection/components/calcite-tile/calcite-tile.css +4 -0
- package/dist/collection/components/calcite-tile/calcite-tile.js +2 -2
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +20 -11
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +30 -30
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +2 -2
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +5 -5
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +2 -2
- package/dist/collection/components/calcite-tree/calcite-tree.js +10 -10
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +47 -69
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +35 -28
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +6 -6
- package/dist/collection/components/functional/CalciteExpandToggle.js +3 -3
- package/dist/collection/utils/dom.js +6 -0
- package/dist/collection/utils/form.js +167 -14
- package/dist/collection/utils/label.js +33 -4
- package/dist/collection/utils/math.js +11 -0
- package/dist/collection/utils/popper.js +2 -2
- package/dist/components/CalciteExpandToggle.js +3 -3
- package/dist/components/calcite-accordion-item.js +8 -2
- package/dist/components/calcite-accordion.js +5 -2
- package/dist/components/calcite-action-bar.js +5 -2
- package/dist/components/calcite-action-group2.js +5 -2
- package/dist/components/calcite-action-menu2.js +5 -2
- package/dist/components/calcite-action-pad.js +5 -2
- package/dist/components/calcite-action2.js +5 -2
- package/dist/components/calcite-alert.js +23 -8
- package/dist/components/calcite-avatar.js +6 -3
- package/dist/components/calcite-block-section.js +7 -4
- package/dist/components/calcite-block.js +8 -7
- package/dist/components/calcite-button2.js +8 -5
- package/dist/components/calcite-card.js +14 -5
- package/dist/components/calcite-checkbox2.js +42 -89
- package/dist/components/calcite-chip2.js +5 -2
- package/dist/components/calcite-color-picker-hex-input2.js +16 -17
- package/dist/components/calcite-color-picker-swatch2.js +25 -14
- package/dist/components/calcite-color-picker.js +22 -18
- package/dist/components/calcite-combobox-item-group.js +5 -2
- package/dist/components/calcite-combobox-item.js +5 -2
- package/dist/components/calcite-combobox.js +90 -25
- package/dist/components/calcite-date-picker-day2.js +5 -2
- package/dist/components/calcite-date-picker-month-header2.js +5 -2
- package/dist/components/calcite-date-picker-month2.js +5 -2
- package/dist/components/calcite-date-picker2.js +30 -9
- package/dist/components/calcite-dropdown-group.js +5 -2
- package/dist/components/calcite-dropdown-item.js +6 -3
- package/dist/components/calcite-dropdown2.js +7 -4
- package/dist/components/calcite-fab.js +5 -2
- package/dist/components/calcite-filter2.js +50 -16
- package/dist/components/calcite-flow.js +5 -2
- package/dist/components/calcite-graph2.js +23 -10
- package/dist/components/calcite-handle2.js +5 -2
- package/dist/components/calcite-icon2.js +5 -2
- package/dist/components/calcite-inline-editable.js +56 -43
- package/dist/components/calcite-input-date-picker.js +74 -15
- package/dist/components/calcite-input-message.js +5 -2
- package/dist/components/calcite-input-time-picker.js +18 -5
- package/dist/components/calcite-input2.js +133 -79
- package/dist/components/calcite-label.js +1 -75
- package/dist/components/calcite-label2.js +84 -0
- package/dist/components/calcite-link2.js +5 -2
- package/dist/components/calcite-list-item-group.js +5 -2
- package/dist/components/calcite-list-item.js +6 -3
- package/dist/components/calcite-list.js +5 -2
- package/dist/components/calcite-loader2.js +6 -3
- package/dist/components/calcite-modal.js +7 -4
- package/dist/components/calcite-notice.js +5 -2
- package/dist/components/calcite-option-group.js +5 -2
- package/dist/components/calcite-option.js +5 -2
- package/dist/components/calcite-pagination.js +5 -2
- package/dist/components/calcite-panel.js +14 -9
- package/dist/components/calcite-pick-list-group.js +5 -2
- package/dist/components/calcite-pick-list-item2.js +5 -2
- package/dist/components/calcite-pick-list.js +5 -2
- package/dist/components/calcite-popover-manager.js +6 -3
- package/dist/components/calcite-popover2.js +7 -4
- package/dist/components/calcite-progress2.js +5 -2
- package/dist/components/calcite-radio-button-group.js +5 -2
- package/dist/components/calcite-radio-button.js +89 -83
- package/dist/components/calcite-radio-group-item.js +5 -2
- package/dist/components/calcite-radio-group.js +41 -42
- package/dist/components/calcite-radio2.js +5 -2
- package/dist/components/calcite-rating.js +18 -4
- package/dist/components/calcite-scrim2.js +5 -2
- package/dist/components/calcite-select.js +39 -6
- package/dist/components/calcite-shell-center-row.js +5 -2
- package/dist/components/calcite-shell-panel.js +177 -10
- package/dist/components/calcite-shell.js +6 -3
- package/dist/components/calcite-slider.js +38 -17
- package/dist/components/calcite-sortable-list.js +5 -2
- package/dist/components/calcite-split-button.js +9 -3
- package/dist/components/calcite-stepper-item.js +5 -2
- package/dist/components/calcite-stepper.js +5 -2
- package/dist/components/calcite-switch2.js +35 -53
- package/dist/components/calcite-tab-nav2.js +8 -5
- package/dist/components/calcite-tab-title2.js +8 -5
- package/dist/components/calcite-tab2.js +6 -3
- package/dist/components/calcite-tabs2.js +5 -2
- package/dist/components/calcite-tile-select-group.js +5 -2
- package/dist/components/calcite-tile-select.js +9 -8
- package/dist/components/calcite-tile2.js +6 -3
- package/dist/components/calcite-time-picker2.js +5 -2
- package/dist/components/calcite-tip-group.js +5 -2
- package/dist/components/calcite-tip-manager.js +7 -4
- package/dist/components/calcite-tip.js +5 -2
- package/dist/components/calcite-tooltip-manager2.js +5 -2
- package/dist/components/calcite-tooltip.js +6 -3
- package/dist/components/calcite-tree-item.js +22 -12
- package/dist/components/calcite-tree.js +5 -2
- package/dist/components/calcite-value-list-item.js +5 -2
- package/dist/components/calcite-value-list.js +5 -2
- package/dist/components/dom.js +7 -1
- package/dist/components/form.js +169 -15
- package/dist/components/label.js +34 -5
- package/dist/components/math.js +12 -1
- package/dist/components/popper.js +92 -66
- package/dist/custom-elements/index.js +1532 -916
- package/dist/esm/{CalciteExpandToggle-151a563a.js → CalciteExpandToggle-4b38a7d1.js} +4 -4
- package/dist/esm/{CalciteHeading-1735f17a.js → CalciteHeading-1d6cd311.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +5 -2
- package/dist/esm/calcite-action-bar.entry.js +3 -3
- package/dist/esm/calcite-action-group.entry.js +2 -2
- package/dist/esm/calcite-action-menu.entry.js +2 -2
- package/dist/esm/calcite-action-pad.entry.js +3 -3
- package/dist/esm/calcite-action.entry.js +1 -1
- package/dist/esm/calcite-alert.entry.js +20 -8
- package/dist/esm/calcite-avatar.entry.js +2 -2
- package/dist/esm/calcite-block_2.entry.js +6 -8
- package/dist/esm/calcite-button.entry.js +4 -4
- package/dist/esm/calcite-card.entry.js +3 -3
- package/dist/esm/calcite-checkbox.entry.js +36 -85
- package/dist/esm/calcite-chip.entry.js +2 -2
- package/dist/esm/calcite-color-picker_3.entry.js +50 -45
- package/dist/esm/calcite-combobox_3.entry.js +85 -26
- package/dist/esm/calcite-date-picker_4.entry.js +29 -11
- package/dist/esm/calcite-dropdown_3.entry.js +6 -6
- package/dist/esm/calcite-fab.entry.js +2 -2
- package/dist/esm/calcite-filter.entry.js +44 -15
- package/dist/esm/calcite-flow.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +49 -25
- package/dist/esm/calcite-handle.entry.js +1 -1
- package/dist/esm/calcite-icon.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +52 -43
- package/dist/esm/calcite-input-date-picker.entry.js +71 -18
- package/dist/esm/calcite-input-message.entry.js +2 -2
- package/dist/esm/calcite-input-time-picker_2.entry.js +15 -6
- package/dist/esm/calcite-input.entry.js +126 -78
- package/dist/esm/calcite-label.entry.js +2 -2
- package/dist/esm/calcite-link.entry.js +2 -2
- package/dist/esm/calcite-list_3.entry.js +4 -4
- package/dist/esm/calcite-loader.entry.js +2 -2
- package/dist/esm/calcite-modal.entry.js +3 -3
- package/dist/esm/calcite-notice.entry.js +2 -2
- package/dist/esm/calcite-option_3.entry.js +34 -7
- package/dist/esm/calcite-pagination.entry.js +2 -2
- package/dist/esm/calcite-panel.entry.js +11 -9
- package/dist/esm/calcite-pick-list_3.entry.js +4 -4
- package/dist/esm/calcite-popover_2.entry.js +6 -6
- package/dist/esm/calcite-progress.entry.js +1 -1
- package/dist/esm/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm/calcite-radio-group_2.entry.js +36 -42
- package/dist/esm/calcite-radio_2.entry.js +84 -82
- package/dist/esm/calcite-rating.entry.js +14 -5
- package/dist/esm/calcite-scrim.entry.js +1 -1
- package/dist/esm/calcite-shell_3.entry.js +170 -9
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-split-button.entry.js +5 -3
- package/dist/esm/calcite-stepper_2.entry.js +2 -2
- package/dist/esm/calcite-switch.entry.js +30 -49
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +4 -6
- package/dist/esm/calcite-tile.entry.js +3 -3
- package/dist/esm/calcite-tip_3.entry.js +4 -4
- package/dist/esm/calcite-tooltip_2.entry.js +4 -4
- package/dist/esm/calcite-tree_2.entry.js +18 -11
- package/dist/esm/calcite-value-list_2.entry.js +3 -3
- package/dist/esm/calcite.js +3 -3
- package/dist/esm/{dom-f24e866c.js → dom-dc012a45.js} +7 -1
- package/dist/esm/form-6b717ce8.js +174 -0
- package/dist/esm/{index-d653c37f.js → index-9de00868.js} +81 -429
- package/dist/esm/{label-bb61bdef.js → label-0d804a87.js} +34 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/math-456207f5.js +18 -0
- package/dist/esm/{popper-7499ea4f.js → popper-ed1eefa6.js} +93 -67
- package/dist/esm/{resources-3b481489.js → resources-bece7a88.js} +1 -1
- package/dist/esm/{resources-510eed1a.js → resources-eafda211.js} +2 -2
- package/dist/esm-es5/CalciteExpandToggle-4b38a7d1.js +5 -0
- package/dist/esm-es5/{CalciteHeading-1735f17a.js → CalciteHeading-1d6cd311.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
- package/dist/esm-es5/calcite-action.entry.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +2 -2
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-card.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
- package/dist/esm-es5/calcite-chip.entry.js +1 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
- package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-fab.entry.js +1 -1
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +1 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-handle.entry.js +1 -1
- package/dist/esm-es5/calcite-icon.entry.js +1 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +1 -1
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +1 -1
- package/dist/esm-es5/calcite-notice.entry.js +1 -1
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
- package/dist/esm-es5/calcite-progress.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
- package/dist/esm-es5/calcite-radio_2.entry.js +2 -2
- package/dist/esm-es5/calcite-rating.entry.js +1 -1
- package/dist/esm-es5/calcite-scrim.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
- package/dist/esm-es5/calcite-split-button.entry.js +1 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/dom-dc012a45.js +5 -0
- package/dist/esm-es5/form-6b717ce8.js +5 -0
- package/dist/esm-es5/index-9de00868.js +5 -0
- package/dist/esm-es5/label-0d804a87.js +5 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/math-456207f5.js +5 -0
- package/dist/esm-es5/popper-ed1eefa6.js +5 -0
- package/dist/esm-es5/{resources-3b481489.js → resources-bece7a88.js} +1 -1
- package/dist/esm-es5/{resources-510eed1a.js → resources-eafda211.js} +1 -1
- package/dist/extras/docs-json.json +887 -484
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +4 -1
- package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +22 -23
- package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +1 -2
- package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +21 -3
- package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +20 -8
- package/dist/types/components/calcite-filter/calcite-filter.d.ts +24 -1
- package/dist/types/components/calcite-graph/calcite-graph.d.ts +4 -0
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +5 -6
- package/dist/types/components/calcite-input/calcite-input.d.ts +22 -11
- package/dist/types/components/calcite-input/resources.d.ts +2 -0
- package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +37 -8
- package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +12 -3
- package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -2
- package/dist/types/components/calcite-panel/resources.d.ts +2 -0
- package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +14 -15
- package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +14 -6
- package/dist/types/components/calcite-rating/calcite-rating.d.ts +12 -1
- package/dist/types/components/calcite-select/calcite-select.d.ts +19 -1
- package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +31 -0
- package/dist/types/components/calcite-shell-panel/resources.d.ts +5 -0
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +17 -3
- package/dist/types/components/calcite-split-button/calcite-split-button.d.ts +3 -0
- package/dist/types/components/calcite-switch/calcite-switch.d.ts +10 -9
- package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +3 -3
- package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +2 -0
- package/dist/types/components.d.ts +235 -26
- package/dist/types/utils/dom.d.ts +4 -0
- package/dist/types/utils/form.d.ts +112 -1
- package/dist/types/utils/label.d.ts +5 -0
- package/dist/types/utils/math.d.ts +1 -0
- package/dist/types/utils/popper.d.ts +1 -1
- package/hydrate/index.js +1388 -749
- package/package.json +34 -34
- package/readme.md +2 -2
- package/dist/calcite/p-00d72f16.entry.js +0 -5
- package/dist/calcite/p-01c3783e.system.entry.js +0 -5
- package/dist/calcite/p-07ba39b6.js +0 -5
- package/dist/calcite/p-0fb8cdc5.entry.js +0 -5
- package/dist/calcite/p-0fd333ff.entry.js +0 -5
- package/dist/calcite/p-157d05ce.js +0 -5
- package/dist/calcite/p-18574b32.entry.js +0 -5
- package/dist/calcite/p-24b86e03.entry.js +0 -5
- package/dist/calcite/p-26045881.entry.js +0 -5
- package/dist/calcite/p-29b110b2.entry.js +0 -5
- package/dist/calcite/p-2ba00b89.js +0 -5
- package/dist/calcite/p-349333f8.system.entry.js +0 -5
- package/dist/calcite/p-34a1c944.entry.js +0 -5
- package/dist/calcite/p-361ddbb6.entry.js +0 -5
- package/dist/calcite/p-378b83de.entry.js +0 -5
- package/dist/calcite/p-43494684.entry.js +0 -5
- package/dist/calcite/p-47313747.system.js +0 -5
- package/dist/calcite/p-485062f4.system.entry.js +0 -5
- package/dist/calcite/p-4e06a168.entry.js +0 -5
- package/dist/calcite/p-52cc870b.js +0 -5
- package/dist/calcite/p-530584ff.system.entry.js +0 -5
- package/dist/calcite/p-568ed3d6.system.entry.js +0 -5
- package/dist/calcite/p-5c221c33.system.entry.js +0 -5
- package/dist/calcite/p-67fd79db.entry.js +0 -5
- package/dist/calcite/p-693a4d5f.entry.js +0 -5
- package/dist/calcite/p-6cc23c39.system.js +0 -5
- package/dist/calcite/p-727c8f36.system.entry.js +0 -5
- package/dist/calcite/p-728501db.system.js +0 -5
- package/dist/calcite/p-72ffc6d7.entry.js +0 -5
- package/dist/calcite/p-745e41ea.entry.js +0 -5
- package/dist/calcite/p-7a544774.system.entry.js +0 -5
- package/dist/calcite/p-7b01fe89.js +0 -5
- package/dist/calcite/p-7cdfec27.system.js +0 -5
- package/dist/calcite/p-7f4a5f8e.system.entry.js +0 -5
- package/dist/calcite/p-81a82d01.system.entry.js +0 -5
- package/dist/calcite/p-87b93729.entry.js +0 -5
- package/dist/calcite/p-8fcfe861.js +0 -5
- package/dist/calcite/p-93d8a7d5.entry.js +0 -5
- package/dist/calcite/p-9965ea81.system.js +0 -5
- package/dist/calcite/p-9ac1fa0b.system.entry.js +0 -5
- package/dist/calcite/p-9caae570.entry.js +0 -5
- package/dist/calcite/p-9d3ee5cf.system.entry.js +0 -5
- package/dist/calcite/p-a7521c0d.entry.js +0 -5
- package/dist/calcite/p-b701101e.entry.js +0 -5
- package/dist/calcite/p-ba255377.entry.js +0 -5
- package/dist/calcite/p-bc02d9ef.system.entry.js +0 -5
- package/dist/calcite/p-bcc323ec.system.entry.js +0 -5
- package/dist/calcite/p-be3b0fee.entry.js +0 -5
- package/dist/calcite/p-bfc162ee.system.entry.js +0 -5
- package/dist/calcite/p-c1995144.system.entry.js +0 -5
- package/dist/calcite/p-c31243c5.entry.js +0 -5
- package/dist/calcite/p-c74fc589.system.js +0 -5
- package/dist/calcite/p-cb228ac0.entry.js +0 -5
- package/dist/calcite/p-cbdf0e6c.js +0 -5
- package/dist/calcite/p-d35e423d.js +0 -5
- package/dist/calcite/p-d5d62977.entry.js +0 -5
- package/dist/calcite/p-d7a7a544.system.entry.js +0 -5
- package/dist/calcite/p-de0f4633.entry.js +0 -5
- package/dist/calcite/p-e9044cc1.entry.js +0 -5
- package/dist/calcite/p-f37563ac.system.entry.js +0 -5
- package/dist/calcite/p-f4299b95.entry.js +0 -5
- package/dist/calcite/p-f5d25746.system.entry.js +0 -5
- package/dist/calcite/p-f8d975a1.system.entry.js +0 -5
- package/dist/calcite/p-fb1da0f5.system.js +0 -5
- package/dist/calcite/p-fc4846f0.system.entry.js +0 -5
- package/dist/calcite/p-fe52131d.entry.js +0 -5
- package/dist/calcite/p-fff0a881.entry.js +0 -5
- package/dist/cjs/form-00fb301c.js +0 -22
- package/dist/cjs/math-9d44163f.js +0 -9
- package/dist/collection/components/calcite-label/interfaces.js +0 -1
- package/dist/esm/form-cee9f632.js +0 -20
- package/dist/esm/math-250d4476.js +0 -7
- package/dist/esm-es5/CalciteExpandToggle-151a563a.js +0 -5
- package/dist/esm-es5/dom-f24e866c.js +0 -5
- package/dist/esm-es5/form-cee9f632.js +0 -5
- package/dist/esm-es5/index-d653c37f.js +0 -5
- package/dist/esm-es5/label-bb61bdef.js +0 -5
- package/dist/esm-es5/math-250d4476.js +0 -5
- package/dist/esm-es5/popper-7499ea4f.js +0 -5
|
@@ -27,11 +27,7 @@ function _interopNamespace(e) {
|
|
|
27
27
|
const NAMESPACE = 'calcite';
|
|
28
28
|
|
|
29
29
|
let scopeId;
|
|
30
|
-
let contentRef;
|
|
31
30
|
let hostTagName;
|
|
32
|
-
let useNativeShadowDom = false;
|
|
33
|
-
let checkSlotFallbackVisibility = false;
|
|
34
|
-
let checkSlotRelocate = false;
|
|
35
31
|
let isSvgMode = false;
|
|
36
32
|
let queuePending = false;
|
|
37
33
|
const win = typeof window !== 'undefined' ? window : {};
|
|
@@ -183,9 +179,6 @@ const attachStyles = (hostRef) => {
|
|
|
183
179
|
// DOM WRITE!!
|
|
184
180
|
elm['s-sc'] = scopeId;
|
|
185
181
|
elm.classList.add(scopeId + '-h');
|
|
186
|
-
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
187
|
-
elm.classList.add(scopeId + '-s');
|
|
188
|
-
}
|
|
189
182
|
}
|
|
190
183
|
endAttachStyles();
|
|
191
184
|
};
|
|
@@ -224,7 +217,6 @@ const isComplexType = (o) => {
|
|
|
224
217
|
const h = (nodeName, vnodeData, ...children) => {
|
|
225
218
|
let child = null;
|
|
226
219
|
let key = null;
|
|
227
|
-
let slotName = null;
|
|
228
220
|
let simple = false;
|
|
229
221
|
let lastSimple = false;
|
|
230
222
|
let vNodeChildren = [];
|
|
@@ -256,9 +248,6 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
256
248
|
if (vnodeData.key) {
|
|
257
249
|
key = vnodeData.key;
|
|
258
250
|
}
|
|
259
|
-
if (vnodeData.name) {
|
|
260
|
-
slotName = vnodeData.name;
|
|
261
|
-
}
|
|
262
251
|
{
|
|
263
252
|
const classData = vnodeData.className || vnodeData.class;
|
|
264
253
|
if (classData) {
|
|
@@ -283,9 +272,6 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
283
272
|
{
|
|
284
273
|
vnode.$key$ = key;
|
|
285
274
|
}
|
|
286
|
-
{
|
|
287
|
-
vnode.$name$ = slotName;
|
|
288
|
-
}
|
|
289
275
|
return vnode;
|
|
290
276
|
};
|
|
291
277
|
const newVNode = (tag, text) => {
|
|
@@ -302,9 +288,6 @@ const newVNode = (tag, text) => {
|
|
|
302
288
|
{
|
|
303
289
|
vnode.$key$ = null;
|
|
304
290
|
}
|
|
305
|
-
{
|
|
306
|
-
vnode.$name$ = null;
|
|
307
|
-
}
|
|
308
291
|
return vnode;
|
|
309
292
|
};
|
|
310
293
|
const Host = {};
|
|
@@ -440,7 +423,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
440
423
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
441
424
|
if (memberName === 'list') {
|
|
442
425
|
isProp = false;
|
|
443
|
-
// tslint:disable-next-line: triple-equals
|
|
444
426
|
}
|
|
445
427
|
else if (oldValue == null || elm[memberName] != n) {
|
|
446
428
|
elm[memberName] = n;
|
|
@@ -518,39 +500,16 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
518
500
|
let i = 0;
|
|
519
501
|
let elm;
|
|
520
502
|
let childNode;
|
|
521
|
-
let oldVNode;
|
|
522
|
-
if (!useNativeShadowDom) {
|
|
523
|
-
// remember for later we need to check to relocate nodes
|
|
524
|
-
checkSlotRelocate = true;
|
|
525
|
-
if (newVNode.$tag$ === 'slot') {
|
|
526
|
-
if (scopeId) {
|
|
527
|
-
// scoped css needs to add its scoped id to the parent element
|
|
528
|
-
parentElm.classList.add(scopeId + '-s');
|
|
529
|
-
}
|
|
530
|
-
newVNode.$flags$ |= newVNode.$children$
|
|
531
|
-
? // slot element has fallback content
|
|
532
|
-
2 /* isSlotFallback */
|
|
533
|
-
: // slot element does not have fallback content
|
|
534
|
-
1 /* isSlotReference */;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
503
|
if (newVNode.$text$ !== null) {
|
|
538
504
|
// create text node
|
|
539
505
|
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
540
506
|
}
|
|
541
|
-
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
542
|
-
// create a slot reference node
|
|
543
|
-
elm = newVNode.$elm$ =
|
|
544
|
-
doc.createTextNode('');
|
|
545
|
-
}
|
|
546
507
|
else {
|
|
547
508
|
if (!isSvgMode) {
|
|
548
509
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
549
510
|
}
|
|
550
511
|
// create element
|
|
551
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$
|
|
552
|
-
? 'slot-fb'
|
|
553
|
-
: newVNode.$tag$)
|
|
512
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
|
|
554
513
|
);
|
|
555
514
|
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
556
515
|
isSvgMode = false;
|
|
@@ -567,7 +526,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
567
526
|
if (newVNode.$children$) {
|
|
568
527
|
for (i = 0; i < newVNode.$children$.length; ++i) {
|
|
569
528
|
// create the node
|
|
570
|
-
childNode = createElm(oldParentVNode, newVNode, i
|
|
529
|
+
childNode = createElm(oldParentVNode, newVNode, i);
|
|
571
530
|
// return node could have been null
|
|
572
531
|
if (childNode) {
|
|
573
532
|
// append our new node
|
|
@@ -586,62 +545,20 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
586
545
|
}
|
|
587
546
|
}
|
|
588
547
|
}
|
|
589
|
-
{
|
|
590
|
-
elm['s-hn'] = hostTagName;
|
|
591
|
-
if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
592
|
-
// remember the content reference comment
|
|
593
|
-
elm['s-sr'] = true;
|
|
594
|
-
// remember the content reference comment
|
|
595
|
-
elm['s-cr'] = contentRef;
|
|
596
|
-
// remember the slot name, or empty string for default slot
|
|
597
|
-
elm['s-sn'] = newVNode.$name$ || '';
|
|
598
|
-
// check if we've got an old vnode for this slot
|
|
599
|
-
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
600
|
-
if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
|
|
601
|
-
// we've got an old slot vnode and the wrapper is being replaced
|
|
602
|
-
// so let's move the old slot content back to it's original location
|
|
603
|
-
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
548
|
return elm;
|
|
608
549
|
};
|
|
609
|
-
const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
610
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
611
|
-
const oldSlotChildNodes = parentElm.childNodes;
|
|
612
|
-
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
|
613
|
-
const childNode = oldSlotChildNodes[i];
|
|
614
|
-
if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
|
|
615
|
-
// // this child node in the old element is from another component
|
|
616
|
-
// // remove this node from the old slot's parent
|
|
617
|
-
// childNode.remove();
|
|
618
|
-
// and relocate it back to it's original location
|
|
619
|
-
parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
|
|
620
|
-
// remove the old original location comment entirely
|
|
621
|
-
// later on the patch function will know what to do
|
|
622
|
-
// and move this to the correct spot in need be
|
|
623
|
-
childNode['s-ol'].remove();
|
|
624
|
-
childNode['s-ol'] = undefined;
|
|
625
|
-
checkSlotRelocate = true;
|
|
626
|
-
}
|
|
627
|
-
if (recursive) {
|
|
628
|
-
putBackInOriginalLocation(childNode, recursive);
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
632
|
-
};
|
|
633
550
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
634
|
-
let containerElm = (
|
|
551
|
+
let containerElm = (parentElm);
|
|
635
552
|
let childNode;
|
|
636
553
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
637
554
|
containerElm = containerElm.shadowRoot;
|
|
638
555
|
}
|
|
639
556
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
640
557
|
if (vnodes[startIdx]) {
|
|
641
|
-
childNode = createElm(null, parentVNode, startIdx
|
|
558
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
642
559
|
if (childNode) {
|
|
643
560
|
vnodes[startIdx].$elm$ = childNode;
|
|
644
|
-
containerElm.insertBefore(childNode,
|
|
561
|
+
containerElm.insertBefore(childNode, before);
|
|
645
562
|
}
|
|
646
563
|
}
|
|
647
564
|
}
|
|
@@ -651,20 +568,6 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
651
568
|
if ((vnode = vnodes[startIdx])) {
|
|
652
569
|
elm = vnode.$elm$;
|
|
653
570
|
callNodeRefs(vnode);
|
|
654
|
-
{
|
|
655
|
-
// we're removing this element
|
|
656
|
-
// so it's possible we need to show slot fallback content now
|
|
657
|
-
checkSlotFallbackVisibility = true;
|
|
658
|
-
if (elm['s-ol']) {
|
|
659
|
-
// remove the original location comment
|
|
660
|
-
elm['s-ol'].remove();
|
|
661
|
-
}
|
|
662
|
-
else {
|
|
663
|
-
// it's possible that child nodes of the node
|
|
664
|
-
// that's being removed are slot nodes
|
|
665
|
-
putBackInOriginalLocation(elm, true);
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
571
|
// remove the vnode's element from the dom
|
|
669
572
|
elm.remove();
|
|
670
573
|
}
|
|
@@ -708,20 +611,12 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
708
611
|
newEndVnode = newCh[--newEndIdx];
|
|
709
612
|
}
|
|
710
613
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
711
|
-
// Vnode moved right
|
|
712
|
-
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
713
|
-
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
714
|
-
}
|
|
715
614
|
patch(oldStartVnode, newEndVnode);
|
|
716
615
|
parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
717
616
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
718
617
|
newEndVnode = newCh[--newEndIdx];
|
|
719
618
|
}
|
|
720
619
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
721
|
-
// Vnode moved left
|
|
722
|
-
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
723
|
-
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
724
|
-
}
|
|
725
620
|
patch(oldEndVnode, newStartVnode);
|
|
726
621
|
parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
727
622
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
@@ -741,7 +636,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
741
636
|
if (idxInOld >= 0) {
|
|
742
637
|
elmToMove = oldCh[idxInOld];
|
|
743
638
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
744
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld
|
|
639
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
|
|
745
640
|
}
|
|
746
641
|
else {
|
|
747
642
|
patch(elmToMove, newStartVnode);
|
|
@@ -752,12 +647,12 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
752
647
|
}
|
|
753
648
|
else {
|
|
754
649
|
// new element
|
|
755
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx
|
|
650
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
|
|
756
651
|
newStartVnode = newCh[++newStartIdx];
|
|
757
652
|
}
|
|
758
653
|
if (node) {
|
|
759
654
|
{
|
|
760
|
-
|
|
655
|
+
oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
|
|
761
656
|
}
|
|
762
657
|
}
|
|
763
658
|
}
|
|
@@ -773,30 +668,18 @@ const isSameVnode = (vnode1, vnode2) => {
|
|
|
773
668
|
// compare if two vnode to see if they're "technically" the same
|
|
774
669
|
// need to have the same element tag, and same key to be the same
|
|
775
670
|
if (vnode1.$tag$ === vnode2.$tag$) {
|
|
776
|
-
if (vnode1.$tag$ === 'slot') {
|
|
777
|
-
return vnode1.$name$ === vnode2.$name$;
|
|
778
|
-
}
|
|
779
671
|
{
|
|
780
672
|
return vnode1.$key$ === vnode2.$key$;
|
|
781
673
|
}
|
|
782
674
|
}
|
|
783
675
|
return false;
|
|
784
676
|
};
|
|
785
|
-
const referenceNode = (node) => {
|
|
786
|
-
// this node was relocated to a new location in the dom
|
|
787
|
-
// because of some other component's slot
|
|
788
|
-
// but we still have an html comment in place of where
|
|
789
|
-
// it's original location was according to it's original vdom
|
|
790
|
-
return (node && node['s-ol']) || node;
|
|
791
|
-
};
|
|
792
|
-
const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
|
|
793
677
|
const patch = (oldVNode, newVNode) => {
|
|
794
678
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
795
679
|
const oldChildren = oldVNode.$children$;
|
|
796
680
|
const newChildren = newVNode.$children$;
|
|
797
681
|
const tag = newVNode.$tag$;
|
|
798
682
|
const text = newVNode.$text$;
|
|
799
|
-
let defaultHolder;
|
|
800
683
|
if (text === null) {
|
|
801
684
|
{
|
|
802
685
|
// test if we're rendering an svg element, or still rendering nodes inside of one
|
|
@@ -835,147 +718,12 @@ const patch = (oldVNode, newVNode) => {
|
|
|
835
718
|
isSvgMode = false;
|
|
836
719
|
}
|
|
837
720
|
}
|
|
838
|
-
else if ((defaultHolder = elm['s-cr'])) {
|
|
839
|
-
// this element has slotted content
|
|
840
|
-
defaultHolder.parentNode.textContent = text;
|
|
841
|
-
}
|
|
842
721
|
else if (oldVNode.$text$ !== text) {
|
|
843
722
|
// update the text content for the text only vnode
|
|
844
723
|
// and also only if the text is different than before
|
|
845
724
|
elm.data = text;
|
|
846
725
|
}
|
|
847
726
|
};
|
|
848
|
-
const updateFallbackSlotVisibility = (elm) => {
|
|
849
|
-
// tslint:disable-next-line: prefer-const
|
|
850
|
-
let childNodes = elm.childNodes;
|
|
851
|
-
let childNode;
|
|
852
|
-
let i;
|
|
853
|
-
let ilen;
|
|
854
|
-
let j;
|
|
855
|
-
let slotNameAttr;
|
|
856
|
-
let nodeType;
|
|
857
|
-
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
|
858
|
-
childNode = childNodes[i];
|
|
859
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
860
|
-
if (childNode['s-sr']) {
|
|
861
|
-
// this is a slot fallback node
|
|
862
|
-
// get the slot name for this slot reference node
|
|
863
|
-
slotNameAttr = childNode['s-sn'];
|
|
864
|
-
// by default always show a fallback slot node
|
|
865
|
-
// then hide it if there are other slots in the light dom
|
|
866
|
-
childNode.hidden = false;
|
|
867
|
-
for (j = 0; j < ilen; j++) {
|
|
868
|
-
nodeType = childNodes[j].nodeType;
|
|
869
|
-
if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
|
|
870
|
-
// this sibling node is from a different component OR is a named fallback slot node
|
|
871
|
-
if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
872
|
-
childNode.hidden = true;
|
|
873
|
-
break;
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
else {
|
|
877
|
-
// this is a default fallback slot node
|
|
878
|
-
// any element or text node (with content)
|
|
879
|
-
// should hide the default fallback slot node
|
|
880
|
-
if (nodeType === 1 /* ElementNode */ ||
|
|
881
|
-
(nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
882
|
-
childNode.hidden = true;
|
|
883
|
-
break;
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
// keep drilling down
|
|
889
|
-
updateFallbackSlotVisibility(childNode);
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
const relocateNodes = [];
|
|
894
|
-
const relocateSlotContent = (elm) => {
|
|
895
|
-
// tslint:disable-next-line: prefer-const
|
|
896
|
-
let childNode;
|
|
897
|
-
let node;
|
|
898
|
-
let hostContentNodes;
|
|
899
|
-
let slotNameAttr;
|
|
900
|
-
let relocateNodeData;
|
|
901
|
-
let j;
|
|
902
|
-
let i = 0;
|
|
903
|
-
let childNodes = elm.childNodes;
|
|
904
|
-
let ilen = childNodes.length;
|
|
905
|
-
for (; i < ilen; i++) {
|
|
906
|
-
childNode = childNodes[i];
|
|
907
|
-
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
908
|
-
// first got the content reference comment node
|
|
909
|
-
// then we got it's parent, which is where all the host content is in now
|
|
910
|
-
hostContentNodes = node.parentNode.childNodes;
|
|
911
|
-
slotNameAttr = childNode['s-sn'];
|
|
912
|
-
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
913
|
-
node = hostContentNodes[j];
|
|
914
|
-
if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
|
|
915
|
-
// let's do some relocating to its new home
|
|
916
|
-
// but never relocate a content reference node
|
|
917
|
-
// that is suppose to always represent the original content location
|
|
918
|
-
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
919
|
-
// it's possible we've already decided to relocate this node
|
|
920
|
-
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
921
|
-
// made some changes to slots
|
|
922
|
-
// let's make sure we also double check
|
|
923
|
-
// fallbacks are correctly hidden or shown
|
|
924
|
-
checkSlotFallbackVisibility = true;
|
|
925
|
-
node['s-sn'] = node['s-sn'] || slotNameAttr;
|
|
926
|
-
if (relocateNodeData) {
|
|
927
|
-
// previously we never found a slot home for this node
|
|
928
|
-
// but turns out we did, so let's remember it now
|
|
929
|
-
relocateNodeData.$slotRefNode$ = childNode;
|
|
930
|
-
}
|
|
931
|
-
else {
|
|
932
|
-
// add to our list of nodes to relocate
|
|
933
|
-
relocateNodes.push({
|
|
934
|
-
$slotRefNode$: childNode,
|
|
935
|
-
$nodeToRelocate$: node,
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
if (node['s-sr']) {
|
|
939
|
-
relocateNodes.map((relocateNode) => {
|
|
940
|
-
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
941
|
-
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
942
|
-
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
943
|
-
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
950
|
-
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
951
|
-
// if we never find a home for this element then we'll need to hide it
|
|
952
|
-
relocateNodes.push({
|
|
953
|
-
$nodeToRelocate$: node,
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
960
|
-
relocateSlotContent(childNode);
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
};
|
|
964
|
-
const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
965
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
966
|
-
if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
|
|
967
|
-
return true;
|
|
968
|
-
}
|
|
969
|
-
if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
|
|
970
|
-
return true;
|
|
971
|
-
}
|
|
972
|
-
return false;
|
|
973
|
-
}
|
|
974
|
-
if (nodeToRelocate['s-sn'] === slotNameAttr) {
|
|
975
|
-
return true;
|
|
976
|
-
}
|
|
977
|
-
return slotNameAttr === '';
|
|
978
|
-
};
|
|
979
727
|
const callNodeRefs = (vNode) => {
|
|
980
728
|
{
|
|
981
729
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -999,90 +747,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
999
747
|
{
|
|
1000
748
|
scopeId = hostElm['s-sc'];
|
|
1001
749
|
}
|
|
1002
|
-
{
|
|
1003
|
-
contentRef = hostElm['s-cr'];
|
|
1004
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1005
|
-
// always reset
|
|
1006
|
-
checkSlotFallbackVisibility = false;
|
|
1007
|
-
}
|
|
1008
750
|
// synchronous patch
|
|
1009
751
|
patch(oldVNode, rootVnode);
|
|
1010
|
-
{
|
|
1011
|
-
// while we're moving nodes around existing nodes, temporarily disable
|
|
1012
|
-
// the disconnectCallback from working
|
|
1013
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1014
|
-
if (checkSlotRelocate) {
|
|
1015
|
-
relocateSlotContent(rootVnode.$elm$);
|
|
1016
|
-
let relocateData;
|
|
1017
|
-
let nodeToRelocate;
|
|
1018
|
-
let orgLocationNode;
|
|
1019
|
-
let parentNodeRef;
|
|
1020
|
-
let insertBeforeNode;
|
|
1021
|
-
let refNode;
|
|
1022
|
-
let i = 0;
|
|
1023
|
-
for (; i < relocateNodes.length; i++) {
|
|
1024
|
-
relocateData = relocateNodes[i];
|
|
1025
|
-
nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1026
|
-
if (!nodeToRelocate['s-ol']) {
|
|
1027
|
-
// add a reference node marking this node's original location
|
|
1028
|
-
// keep a reference to this node for later lookups
|
|
1029
|
-
orgLocationNode =
|
|
1030
|
-
doc.createTextNode('');
|
|
1031
|
-
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
1032
|
-
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
for (i = 0; i < relocateNodes.length; i++) {
|
|
1036
|
-
relocateData = relocateNodes[i];
|
|
1037
|
-
nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1038
|
-
if (relocateData.$slotRefNode$) {
|
|
1039
|
-
// by default we're just going to insert it directly
|
|
1040
|
-
// after the slot reference node
|
|
1041
|
-
parentNodeRef = relocateData.$slotRefNode$.parentNode;
|
|
1042
|
-
insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
|
|
1043
|
-
orgLocationNode = nodeToRelocate['s-ol'];
|
|
1044
|
-
while ((orgLocationNode = orgLocationNode.previousSibling)) {
|
|
1045
|
-
refNode = orgLocationNode['s-nr'];
|
|
1046
|
-
if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
|
|
1047
|
-
refNode = refNode.nextSibling;
|
|
1048
|
-
if (!refNode || !refNode['s-nr']) {
|
|
1049
|
-
insertBeforeNode = refNode;
|
|
1050
|
-
break;
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1055
|
-
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1056
|
-
// we've checked that it's worth while to relocate
|
|
1057
|
-
// since that the node to relocate
|
|
1058
|
-
// has a different next sibling or parent relocated
|
|
1059
|
-
if (nodeToRelocate !== insertBeforeNode) {
|
|
1060
|
-
if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
|
|
1061
|
-
// probably a component in the index.html that doesn't have it's hostname set
|
|
1062
|
-
nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
|
|
1063
|
-
}
|
|
1064
|
-
// add it back to the dom but in its new home
|
|
1065
|
-
parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
else {
|
|
1070
|
-
// this node doesn't have a slot home to go to, so let's hide it
|
|
1071
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1072
|
-
nodeToRelocate.hidden = true;
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
if (checkSlotFallbackVisibility) {
|
|
1078
|
-
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1079
|
-
}
|
|
1080
|
-
// done moving nodes around
|
|
1081
|
-
// allow the disconnect callback to work again
|
|
1082
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1083
|
-
// always reset
|
|
1084
|
-
relocateNodes.length = 0;
|
|
1085
|
-
}
|
|
1086
752
|
};
|
|
1087
753
|
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
1088
754
|
const createEvent = (ref, name, flags) => {
|
|
@@ -1466,10 +1132,6 @@ const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes
|
|
|
1466
1132
|
// remove the content ref comment since it's not needed for shadow
|
|
1467
1133
|
node.remove();
|
|
1468
1134
|
}
|
|
1469
|
-
else {
|
|
1470
|
-
hostElm['s-cr'] = node;
|
|
1471
|
-
node['s-cn'] = true;
|
|
1472
|
-
}
|
|
1473
1135
|
}
|
|
1474
1136
|
}
|
|
1475
1137
|
}
|
|
@@ -1614,14 +1276,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1614
1276
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1615
1277
|
plt.jmp(() => {
|
|
1616
1278
|
const propName = attrNameToPropName.get(attrName);
|
|
1617
|
-
// In a
|
|
1279
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1618
1280
|
// in the case where an attribute was set inline.
|
|
1619
1281
|
// ```html
|
|
1620
1282
|
// <my-component some-attribute="some-value"></my-component>
|
|
1621
1283
|
// ```
|
|
1622
1284
|
//
|
|
1623
|
-
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1624
|
-
// changes it before it has been upgraded as shown below:
|
|
1285
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1286
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1625
1287
|
//
|
|
1626
1288
|
// ```html
|
|
1627
1289
|
// <!-- this component has _not_ been upgraded yet -->
|
|
@@ -1631,13 +1293,13 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1631
1293
|
// el = document.querySelector("#test");
|
|
1632
1294
|
// el.someAttribute = "another-value";
|
|
1633
1295
|
// // upgrade component
|
|
1634
|
-
//
|
|
1296
|
+
// customElements.define('my-component', MyComponent);
|
|
1635
1297
|
// </script>
|
|
1636
1298
|
// ```
|
|
1637
1299
|
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1638
1300
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1639
1301
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1640
|
-
// the connectedCallback attempts to unshadow it will use "some-value" as the
|
|
1302
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1641
1303
|
//
|
|
1642
1304
|
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1643
1305
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
@@ -1651,6 +1313,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1651
1313
|
newValue = this[propName];
|
|
1652
1314
|
delete this[propName];
|
|
1653
1315
|
}
|
|
1316
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1317
|
+
typeof this[propName] === 'number' &&
|
|
1318
|
+
this[propName] == newValue) {
|
|
1319
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1320
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1321
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1322
|
+
return;
|
|
1323
|
+
}
|
|
1654
1324
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1655
1325
|
});
|
|
1656
1326
|
};
|
|
@@ -1737,7 +1407,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1737
1407
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1738
1408
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1739
1409
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1740
|
-
// this is the
|
|
1410
|
+
// this is the initial load and this component it has an ancestor component
|
|
1741
1411
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1742
1412
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1743
1413
|
// this will get fired off when the ancestor component
|
|
@@ -1773,15 +1443,6 @@ const connectedCallback = (elm) => {
|
|
|
1773
1443
|
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
1774
1444
|
}
|
|
1775
1445
|
}
|
|
1776
|
-
if (!hostId) {
|
|
1777
|
-
// initUpdate
|
|
1778
|
-
// if the slot polyfill is required we'll need to put some nodes
|
|
1779
|
-
// in here to act as original content anchors as we move nodes around
|
|
1780
|
-
// host element has been connected to the DOM
|
|
1781
|
-
if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
|
|
1782
|
-
setContentReference(elm);
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
1446
|
{
|
|
1786
1447
|
// find the first ancestor component (if there is one) and register
|
|
1787
1448
|
// this component as one of the actively loading child components for its ancestor
|
|
@@ -1826,17 +1487,6 @@ const connectedCallback = (elm) => {
|
|
|
1826
1487
|
endConnected();
|
|
1827
1488
|
}
|
|
1828
1489
|
};
|
|
1829
|
-
const setContentReference = (elm) => {
|
|
1830
|
-
// only required when we're NOT using native shadow dom (slot)
|
|
1831
|
-
// or this browser doesn't support native shadow dom
|
|
1832
|
-
// and this host element was NOT created with SSR
|
|
1833
|
-
// let's pick out the inner content for slot projection
|
|
1834
|
-
// create a node to represent where the original
|
|
1835
|
-
// content was first placed, which is useful later on
|
|
1836
|
-
const contentRefElm = (elm['s-cr'] = doc.createComment(''));
|
|
1837
|
-
contentRefElm['s-cn'] = true;
|
|
1838
|
-
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1839
|
-
};
|
|
1840
1490
|
const disconnectedCallback = (elm) => {
|
|
1841
1491
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1842
1492
|
const hostRef = getHostRef(elm);
|
|
@@ -1877,71 +1527,73 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1877
1527
|
registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
|
|
1878
1528
|
}
|
|
1879
1529
|
}
|
|
1880
|
-
lazyBundles.map((lazyBundle) =>
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1530
|
+
lazyBundles.map((lazyBundle) => {
|
|
1531
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1532
|
+
const cmpMeta = {
|
|
1533
|
+
$flags$: compactMeta[0],
|
|
1534
|
+
$tagName$: compactMeta[1],
|
|
1535
|
+
$members$: compactMeta[2],
|
|
1536
|
+
$listeners$: compactMeta[3],
|
|
1537
|
+
};
|
|
1538
|
+
{
|
|
1539
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1540
|
+
}
|
|
1541
|
+
{
|
|
1542
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1543
|
+
}
|
|
1544
|
+
{
|
|
1545
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1546
|
+
}
|
|
1547
|
+
{
|
|
1548
|
+
cmpMeta.$watchers$ = {};
|
|
1549
|
+
}
|
|
1550
|
+
const tagName = cmpMeta.$tagName$;
|
|
1551
|
+
const HostElement = class extends HTMLElement {
|
|
1552
|
+
// StencilLazyHost
|
|
1553
|
+
constructor(self) {
|
|
1554
|
+
// @ts-ignore
|
|
1555
|
+
super(self);
|
|
1556
|
+
self = this;
|
|
1557
|
+
registerHost(self, cmpMeta);
|
|
1558
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1559
|
+
// this component is using shadow dom
|
|
1560
|
+
// and this browser supports shadow dom
|
|
1561
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1562
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1913
1563
|
{
|
|
1914
|
-
|
|
1564
|
+
{
|
|
1565
|
+
self.attachShadow({ mode: 'open' });
|
|
1566
|
+
}
|
|
1915
1567
|
}
|
|
1916
1568
|
}
|
|
1917
1569
|
}
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1570
|
+
connectedCallback() {
|
|
1571
|
+
if (appLoadFallback) {
|
|
1572
|
+
clearTimeout(appLoadFallback);
|
|
1573
|
+
appLoadFallback = null;
|
|
1574
|
+
}
|
|
1575
|
+
if (isBootstrapping) {
|
|
1576
|
+
// connectedCallback will be processed once all components have been registered
|
|
1577
|
+
deferredConnectedCallbacks.push(this);
|
|
1578
|
+
}
|
|
1579
|
+
else {
|
|
1580
|
+
plt.jmp(() => connectedCallback(this));
|
|
1581
|
+
}
|
|
1923
1582
|
}
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
deferredConnectedCallbacks.push(this);
|
|
1583
|
+
disconnectedCallback() {
|
|
1584
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1927
1585
|
}
|
|
1928
|
-
|
|
1929
|
-
|
|
1586
|
+
componentOnReady() {
|
|
1587
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1930
1588
|
}
|
|
1589
|
+
};
|
|
1590
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1591
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1592
|
+
cmpTags.push(tagName);
|
|
1593
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1931
1594
|
}
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
}
|
|
1935
|
-
componentOnReady() {
|
|
1936
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1937
|
-
}
|
|
1938
|
-
};
|
|
1939
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1940
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1941
|
-
cmpTags.push(tagName);
|
|
1942
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1943
|
-
}
|
|
1944
|
-
}));
|
|
1595
|
+
});
|
|
1596
|
+
});
|
|
1945
1597
|
{
|
|
1946
1598
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1947
1599
|
visibilityStyle.setAttribute('data-styles', '');
|