proto-ikon-loader-wc 0.0.140 → 0.0.143
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/cjs/acura-ikon.cjs.entry.js +1 -1
- package/dist/cjs/alfa-romeo-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/alfa-romeo-ikon.cjs.entry.js +1 -1
- package/dist/cjs/alien-icon.cjs.entry.js +1 -1
- package/dist/cjs/am-general-ikon.cjs.entry.js +1 -1
- package/dist/cjs/asterisk-icon.cjs.entry.js +1 -1
- package/dist/cjs/aston-martin-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/aston-martin-ikon.cjs.entry.js +1 -1
- package/dist/cjs/audi-ikon.cjs.entry.js +1 -1
- package/dist/cjs/barcode-icon.cjs.entry.js +1 -1
- package/dist/cjs/barcode-scan-icon.cjs.entry.js +1 -1
- package/dist/cjs/bash-icon.cjs.entry.js +1 -1
- package/dist/cjs/beaker-icon.cjs.entry.js +1 -1
- package/dist/cjs/bently-ikon.cjs.entry.js +1 -1
- package/dist/cjs/bmw-ikon.cjs.entry.js +1 -1
- package/dist/cjs/bugatti-ikon.cjs.entry.js +1 -1
- package/dist/cjs/buick-ikon.cjs.entry.js +1 -1
- package/dist/cjs/cadillac-ikon.cjs.entry.js +1 -1
- package/dist/cjs/chart-bar-icon.cjs.entry.js +1 -1
- package/dist/cjs/chart-bubble-icon.cjs.entry.js +1 -1
- package/dist/cjs/chart-donut-icon.cjs.entry.js +1 -1
- package/dist/cjs/chart-donuts-icon.cjs.entry.js +1 -1
- package/dist/cjs/check-icon.cjs.entry.js +1 -1
- package/dist/cjs/chevrolet-ikon.cjs.entry.js +1 -1
- package/dist/cjs/chevron-double-left-icon.cjs.entry.js +1 -1
- package/dist/cjs/chrysler-ikon.cjs.entry.js +1 -1
- package/dist/cjs/circular-saw-icon.cjs.entry.js +1 -1
- package/dist/cjs/citroen-ikon.cjs.entry.js +1 -1
- package/dist/cjs/close-icon.cjs.entry.js +1 -1
- package/dist/cjs/daewoo-ikon.cjs.entry.js +1 -1
- package/dist/cjs/dodge-ikon.cjs.entry.js +1 -1
- package/dist/cjs/eagle-ikon.cjs.entry.js +1 -1
- package/dist/cjs/ferrari-ikon.cjs.entry.js +1 -1
- package/dist/cjs/fiat-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/fiat-ikon.cjs.entry.js +1 -1
- package/dist/cjs/fingerprint-icon.cjs.entry.js +1 -1
- package/dist/cjs/fire-icon.cjs.entry.js +1 -1
- package/dist/cjs/fisker-ikon.cjs.entry.js +1 -1
- package/dist/cjs/flask-icon.cjs.entry.js +1 -1
- package/dist/cjs/ford-ikon.cjs.entry.js +1 -1
- package/dist/cjs/genesis-ikon.cjs.entry.js +1 -1
- package/dist/cjs/geo-ikon.cjs.entry.js +1 -1
- package/dist/cjs/git-icon.cjs.entry.js +1 -1
- package/dist/cjs/gmc-ikon.cjs.entry.js +1 -1
- package/dist/cjs/honda-ikon.cjs.entry.js +1 -1
- package/dist/cjs/hummer-ikon.cjs.entry.js +1 -1
- package/dist/cjs/hyundai-ikon.cjs.entry.js +1 -1
- package/dist/cjs/{index-3972f0d8.js → index-0d9cb108.js} +186 -46
- package/dist/cjs/infiniti-ikon.cjs.entry.js +1 -1
- package/dist/cjs/isuzu-ikon.cjs.entry.js +1 -1
- package/dist/cjs/jaguar-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/jaguar-ikon.cjs.entry.js +1 -1
- package/dist/cjs/java-script-icon.cjs.entry.js +1 -1
- package/dist/cjs/jeep-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/jeep-ikon.cjs.entry.js +1 -1
- package/dist/cjs/kia-ikon.cjs.entry.js +1 -1
- package/dist/cjs/lamborghini-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/lamborghini-ikon.cjs.entry.js +1 -1
- package/dist/cjs/land-rover-ikon.cjs.entry.js +1 -1
- package/dist/cjs/lexus-ikon.cjs.entry.js +1 -1
- package/dist/cjs/lincoln-ikon.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lotus-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/lotus-ikon.cjs.entry.js +1 -1
- package/dist/cjs/maserati-ikon.cjs.entry.js +1 -1
- package/dist/cjs/maybach-ikon.cjs.entry.js +1 -1
- package/dist/cjs/mazda-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/mazda-ikon.cjs.entry.js +1 -1
- package/dist/cjs/mclaren-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/mclaren-ikon.cjs.entry.js +1 -1
- package/dist/cjs/mercedes-benz-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/mercedes-benz-ikon.cjs.entry.js +1 -1
- package/dist/cjs/mercury-ikon.cjs.entry.js +1 -1
- package/dist/cjs/mini-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/mini-ikon.cjs.entry.js +1 -1
- package/dist/cjs/mitsubishi-ikon.cjs.entry.js +1 -1
- package/dist/cjs/nissan-ikon.cjs.entry.js +1 -1
- package/dist/cjs/oldsmobile-ikon.cjs.entry.js +1 -1
- package/dist/cjs/one-password-icon.cjs.entry.js +1 -1
- package/dist/cjs/opel-ikon.cjs.entry.js +1 -1
- package/dist/cjs/panoz-ikon.cjs.entry.js +1 -1
- package/dist/cjs/paw-icon.cjs.entry.js +1 -1
- package/dist/cjs/peugeot-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/peugeot-ikon.cjs.entry.js +1 -1
- package/dist/cjs/plymouth-ikon.cjs.entry.js +1 -1
- package/dist/cjs/pontiac-ikon.cjs.entry.js +1 -1
- package/dist/cjs/porsche-ikon.cjs.entry.js +1 -1
- package/dist/cjs/proto-ikon-loader-wc.cjs.js +2 -2
- package/dist/cjs/proto-ikon-loader_2.cjs.entry.js +1 -1
- package/dist/cjs/protocol-icon.cjs.entry.js +1 -1
- package/dist/cjs/pulse-icon.cjs.entry.js +1 -1
- package/dist/cjs/puzzle-icon.cjs.entry.js +1 -1
- package/dist/cjs/qr-code-icon.cjs.entry.js +1 -1
- package/dist/cjs/radio-2-icon.cjs.entry.js +1 -1
- package/dist/cjs/radio-icon.cjs.entry.js +1 -1
- package/dist/cjs/ram-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/ram-ikon.cjs.entry.js +1 -1
- package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
- package/dist/cjs/renault-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/renault-ikon.cjs.entry.js +1 -1
- package/dist/cjs/rolls-royce-ikon.cjs.entry.js +1 -1
- package/dist/cjs/saab-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/saab-ikon.cjs.entry.js +1 -1
- package/dist/cjs/saturn-ikon.cjs.entry.js +1 -1
- package/dist/cjs/scion-ikon.cjs.entry.js +1 -1
- package/dist/cjs/seat-ikon.cjs.entry.js +1 -1
- package/dist/cjs/skoda-ikon.cjs.entry.js +1 -1
- package/dist/cjs/slug-icon.cjs.entry.js +1 -1
- package/dist/cjs/smart-ikon.cjs.entry.js +1 -1
- package/dist/cjs/spider-icon.cjs.entry.js +1 -1
- package/dist/cjs/spyker-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/spyker-ikon.cjs.entry.js +1 -1
- package/dist/cjs/subaru-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/subaru-ikon.cjs.entry.js +1 -1
- package/dist/cjs/suzuki-ikon.cjs.entry.js +1 -1
- package/dist/cjs/svg-icon.cjs.entry.js +1 -1
- package/dist/cjs/tesla-ikon.cjs.entry.js +1 -1
- package/dist/cjs/toyota-ikon.cjs.entry.js +1 -1
- package/dist/cjs/vector-curve-icon.cjs.entry.js +1 -1
- package/dist/cjs/volkswagen-ikon.cjs.entry.js +1 -1
- package/dist/cjs/volvo-alt-ikon.cjs.entry.js +1 -1
- package/dist/cjs/volvo-ikon.cjs.entry.js +1 -1
- package/dist/cjs/webhook-icon.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/proto-ikon-loader/proto-ikon-loader.js +102 -97
- package/dist/collection/components/proto-ikon-raw/proto-ikon-raw.js +101 -95
- package/dist/esm/acura-ikon.entry.js +1 -1
- package/dist/esm/alfa-romeo-alt-ikon.entry.js +1 -1
- package/dist/esm/alfa-romeo-ikon.entry.js +1 -1
- package/dist/esm/alien-icon.entry.js +1 -1
- package/dist/esm/am-general-ikon.entry.js +1 -1
- package/dist/esm/asterisk-icon.entry.js +1 -1
- package/dist/esm/aston-martin-alt-ikon.entry.js +1 -1
- package/dist/esm/aston-martin-ikon.entry.js +1 -1
- package/dist/esm/audi-ikon.entry.js +1 -1
- package/dist/esm/barcode-icon.entry.js +1 -1
- package/dist/esm/barcode-scan-icon.entry.js +1 -1
- package/dist/esm/bash-icon.entry.js +1 -1
- package/dist/esm/beaker-icon.entry.js +1 -1
- package/dist/esm/bently-ikon.entry.js +1 -1
- package/dist/esm/bmw-ikon.entry.js +1 -1
- package/dist/esm/bugatti-ikon.entry.js +1 -1
- package/dist/esm/buick-ikon.entry.js +1 -1
- package/dist/esm/cadillac-ikon.entry.js +1 -1
- package/dist/esm/chart-bar-icon.entry.js +1 -1
- package/dist/esm/chart-bubble-icon.entry.js +1 -1
- package/dist/esm/chart-donut-icon.entry.js +1 -1
- package/dist/esm/chart-donuts-icon.entry.js +1 -1
- package/dist/esm/check-icon.entry.js +1 -1
- package/dist/esm/chevrolet-ikon.entry.js +1 -1
- package/dist/esm/chevron-double-left-icon.entry.js +1 -1
- package/dist/esm/chrysler-ikon.entry.js +1 -1
- package/dist/esm/circular-saw-icon.entry.js +1 -1
- package/dist/esm/citroen-ikon.entry.js +1 -1
- package/dist/esm/close-icon.entry.js +1 -1
- package/dist/esm/daewoo-ikon.entry.js +1 -1
- package/dist/esm/dodge-ikon.entry.js +1 -1
- package/dist/esm/eagle-ikon.entry.js +1 -1
- package/dist/esm/ferrari-ikon.entry.js +1 -1
- package/dist/esm/fiat-alt-ikon.entry.js +1 -1
- package/dist/esm/fiat-ikon.entry.js +1 -1
- package/dist/esm/fingerprint-icon.entry.js +1 -1
- package/dist/esm/fire-icon.entry.js +1 -1
- package/dist/esm/fisker-ikon.entry.js +1 -1
- package/dist/esm/flask-icon.entry.js +1 -1
- package/dist/esm/ford-ikon.entry.js +1 -1
- package/dist/esm/genesis-ikon.entry.js +1 -1
- package/dist/esm/geo-ikon.entry.js +1 -1
- package/dist/esm/git-icon.entry.js +1 -1
- package/dist/esm/gmc-ikon.entry.js +1 -1
- package/dist/esm/honda-ikon.entry.js +1 -1
- package/dist/esm/hummer-ikon.entry.js +1 -1
- package/dist/esm/hyundai-ikon.entry.js +1 -1
- package/dist/esm/{index-d7755d46.js → index-3a5e6d57.js} +186 -46
- package/dist/esm/infiniti-ikon.entry.js +1 -1
- package/dist/esm/isuzu-ikon.entry.js +1 -1
- package/dist/esm/jaguar-alt-ikon.entry.js +1 -1
- package/dist/esm/jaguar-ikon.entry.js +1 -1
- package/dist/esm/java-script-icon.entry.js +1 -1
- package/dist/esm/jeep-alt-ikon.entry.js +1 -1
- package/dist/esm/jeep-ikon.entry.js +1 -1
- package/dist/esm/kia-ikon.entry.js +1 -1
- package/dist/esm/lamborghini-alt-ikon.entry.js +1 -1
- package/dist/esm/lamborghini-ikon.entry.js +1 -1
- package/dist/esm/land-rover-ikon.entry.js +1 -1
- package/dist/esm/lexus-ikon.entry.js +1 -1
- package/dist/esm/lincoln-ikon.entry.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lotus-alt-ikon.entry.js +1 -1
- package/dist/esm/lotus-ikon.entry.js +1 -1
- package/dist/esm/maserati-ikon.entry.js +1 -1
- package/dist/esm/maybach-ikon.entry.js +1 -1
- package/dist/esm/mazda-alt-ikon.entry.js +1 -1
- package/dist/esm/mazda-ikon.entry.js +1 -1
- package/dist/esm/mclaren-alt-ikon.entry.js +1 -1
- package/dist/esm/mclaren-ikon.entry.js +1 -1
- package/dist/esm/mercedes-benz-alt-ikon.entry.js +1 -1
- package/dist/esm/mercedes-benz-ikon.entry.js +1 -1
- package/dist/esm/mercury-ikon.entry.js +1 -1
- package/dist/esm/mini-alt-ikon.entry.js +1 -1
- package/dist/esm/mini-ikon.entry.js +1 -1
- package/dist/esm/mitsubishi-ikon.entry.js +1 -1
- package/dist/esm/nissan-ikon.entry.js +1 -1
- package/dist/esm/oldsmobile-ikon.entry.js +1 -1
- package/dist/esm/one-password-icon.entry.js +1 -1
- package/dist/esm/opel-ikon.entry.js +1 -1
- package/dist/esm/panoz-ikon.entry.js +1 -1
- package/dist/esm/paw-icon.entry.js +1 -1
- package/dist/esm/peugeot-alt-ikon.entry.js +1 -1
- package/dist/esm/peugeot-ikon.entry.js +1 -1
- package/dist/esm/plymouth-ikon.entry.js +1 -1
- package/dist/esm/pontiac-ikon.entry.js +1 -1
- package/dist/esm/porsche-ikon.entry.js +1 -1
- package/dist/esm/proto-ikon-loader-wc.js +2 -2
- package/dist/esm/proto-ikon-loader_2.entry.js +1 -1
- package/dist/esm/protocol-icon.entry.js +1 -1
- package/dist/esm/pulse-icon.entry.js +1 -1
- package/dist/esm/puzzle-icon.entry.js +1 -1
- package/dist/esm/qr-code-icon.entry.js +1 -1
- package/dist/esm/radio-2-icon.entry.js +1 -1
- package/dist/esm/radio-icon.entry.js +1 -1
- package/dist/esm/ram-alt-ikon.entry.js +1 -1
- package/dist/esm/ram-ikon.entry.js +1 -1
- package/dist/esm/refresh-icon.entry.js +1 -1
- package/dist/esm/renault-alt-ikon.entry.js +1 -1
- package/dist/esm/renault-ikon.entry.js +1 -1
- package/dist/esm/rolls-royce-ikon.entry.js +1 -1
- package/dist/esm/saab-alt-ikon.entry.js +1 -1
- package/dist/esm/saab-ikon.entry.js +1 -1
- package/dist/esm/saturn-ikon.entry.js +1 -1
- package/dist/esm/scion-ikon.entry.js +1 -1
- package/dist/esm/seat-ikon.entry.js +1 -1
- package/dist/esm/skoda-ikon.entry.js +1 -1
- package/dist/esm/slug-icon.entry.js +1 -1
- package/dist/esm/smart-ikon.entry.js +1 -1
- package/dist/esm/spider-icon.entry.js +1 -1
- package/dist/esm/spyker-alt-ikon.entry.js +1 -1
- package/dist/esm/spyker-ikon.entry.js +1 -1
- package/dist/esm/subaru-alt-ikon.entry.js +1 -1
- package/dist/esm/subaru-ikon.entry.js +1 -1
- package/dist/esm/suzuki-ikon.entry.js +1 -1
- package/dist/esm/svg-icon.entry.js +1 -1
- package/dist/esm/tesla-ikon.entry.js +1 -1
- package/dist/esm/toyota-ikon.entry.js +1 -1
- package/dist/esm/vector-curve-icon.entry.js +1 -1
- package/dist/esm/volkswagen-ikon.entry.js +1 -1
- package/dist/esm/volvo-alt-ikon.entry.js +1 -1
- package/dist/esm/volvo-ikon.entry.js +1 -1
- package/dist/esm/webhook-icon.entry.js +1 -1
- package/dist/proto-ikon-loader-wc/{p-ef22e350.entry.js → p-0089921d.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-7fb8f0f3.entry.js → p-03d1bafb.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-675c68b8.entry.js → p-0622984c.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-161401d6.entry.js → p-0a7b4f76.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-9bc2f78c.entry.js → p-0af5671d.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-801ea1af.entry.js → p-0b56d93c.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-01c588a3.entry.js → p-0c65b018.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-56884812.entry.js → p-0ce9d6e1.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-a8afb263.entry.js → p-0f91772f.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-e0ddb532.entry.js → p-0fb3f955.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-e474eb28.entry.js → p-106c4596.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-0a3da52a.entry.js → p-106daca6.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-ff724adb.entry.js → p-1296d045.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-989cec72.entry.js → p-16c735d2.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-faeaca79.entry.js → p-1af65c60.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-f4facaa6.entry.js → p-1b07adf8.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-eadae31b.entry.js → p-1b8b9757.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-831acbc6.entry.js → p-1c4630b4.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-d9bb1812.entry.js → p-1ce6f46b.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-b15dc938.entry.js → p-1f61a202.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-d1b28986.entry.js → p-2426a080.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-4d22e30b.entry.js → p-26a2dfdf.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-074eec22.entry.js → p-26da840c.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-49ba0262.entry.js → p-28320700.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-4de09967.entry.js → p-293e8f65.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-70f1ac92.entry.js → p-29d2bad9.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-1022accd.entry.js → p-2b0e1824.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-21a3e319.entry.js → p-2b868c97.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-c84243d8.entry.js → p-2f965b3c.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-a8072f30.entry.js → p-3338721c.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-633531a5.entry.js → p-3b7b7940.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-6d19086f.entry.js → p-3e85af21.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-3abd024a.entry.js → p-420afb74.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-10710277.entry.js → p-4212cdbd.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-d1d0649c.entry.js → p-4571e276.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-32cb1021.entry.js → p-47846657.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-18f74029.entry.js → p-483eae2e.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-67d4dfc2.entry.js → p-4845819f.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-17c5d8c1.entry.js → p-48e6265d.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-de5a35e9.entry.js → p-4a4f3c0b.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-6b069d3f.entry.js → p-4c181a87.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-9f64ede4.entry.js → p-4cc1829e.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-50387423.entry.js → p-507de231.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-c96ece5a.entry.js → p-53e4c6b2.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-c4278864.entry.js → p-54b403d6.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-accf0381.entry.js → p-5524fa47.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-43a48695.entry.js → p-57b3a364.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-556b02b9.entry.js → p-588f3e6c.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-7e0b16bc.entry.js → p-5a00635a.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-418176f6.entry.js → p-5c80acc4.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-75ebac3e.entry.js → p-631d8297.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-477925ac.entry.js → p-650adc6e.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-afedf2e7.entry.js → p-6931cb08.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-8b8ce830.entry.js → p-6bcabab4.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-947da9e7.entry.js → p-6d9a68f3.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-ef0de9bd.entry.js → p-74351da7.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/p-74c92cf6.entry.js +1 -0
- package/dist/proto-ikon-loader-wc/{p-b2edd13a.entry.js → p-74d0f4cb.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-fa60fecf.entry.js → p-75cbc7f5.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-846514fc.entry.js → p-79c532b5.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-b4134901.entry.js → p-79eaa018.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-c772122f.entry.js → p-7a629956.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-afbbb749.entry.js → p-7a658499.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-7c8b693e.entry.js → p-7f0cf105.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-8314a4db.entry.js → p-7f1f6a4b.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-0c21bb8e.entry.js → p-805f74ea.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-2b1e05e1.entry.js → p-80e7dd7e.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-024fb9ec.entry.js → p-82b616f8.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-e5b9c716.entry.js → p-867223ba.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-57b8503d.entry.js → p-873f2f0e.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-cef317e0.entry.js → p-87d1a409.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-e265a082.entry.js → p-887675dc.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-7383c05c.entry.js → p-89685ca1.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-0342e8a7.entry.js → p-8b3a72d3.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-0faf1883.entry.js → p-913cfd4f.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-2dcda9e4.entry.js → p-9a4809f1.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-0da1a55f.entry.js → p-9d17f9c1.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-c8de98f3.entry.js → p-a0786712.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-d8f7582c.entry.js → p-a44b3976.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-9b6e7cb4.entry.js → p-a87bbd39.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-47b74b3f.entry.js → p-aa262001.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-d1e782d5.entry.js → p-ad6edd0d.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-0746c255.entry.js → p-b04c800e.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-398d28c2.entry.js → p-b11c52cf.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-8ac4c476.entry.js → p-b22c010a.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-a1acf8f8.entry.js → p-b2c896aa.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-c22b419a.entry.js → p-b7878ddd.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-b8f14879.entry.js → p-ba818e72.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-8f9935ad.entry.js → p-be34dd09.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-dc7f3341.entry.js → p-bff6ed91.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-ef884752.entry.js → p-c0b50844.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-8cbdf7f2.entry.js → p-c0cb2b1e.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-e725faeb.entry.js → p-c3ac7f67.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-5924aa69.entry.js → p-c4e30b6c.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-8041ff89.entry.js → p-c68eff3b.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-3bff6765.entry.js → p-c99f398b.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-072b7c0c.entry.js → p-ca2369d5.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-108a85b5.entry.js → p-ca83eddc.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-051f4c70.entry.js → p-cc2560ba.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-a81b0171.entry.js → p-d02d89af.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-2274b9e9.entry.js → p-d3321674.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-c725d040.entry.js → p-d38585fd.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-65d5a1ae.entry.js → p-d61a1a10.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-80dc7a65.entry.js → p-d8e5ff68.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-2a44c872.entry.js → p-d96f7d42.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-0fa8a742.js → p-d9d0c1ba.js} +0 -0
- package/dist/proto-ikon-loader-wc/{p-c44158a1.entry.js → p-db4ceaac.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-1c4d72f3.entry.js → p-dc4c8fb9.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-a24e7024.entry.js → p-e61b0fb5.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-db16cfd1.entry.js → p-e7211774.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-2bce38a7.entry.js → p-ee3ac6b1.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-5731c999.entry.js → p-efa45fdc.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-589ac1cd.entry.js → p-f22f758e.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-0e46ba74.entry.js → p-f2df8de5.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-5e0a8625.entry.js → p-f40b1648.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-5f51d2e9.entry.js → p-f44d9865.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-948d5d2d.entry.js → p-f91123ad.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-3cce5dec.entry.js → p-fabfec3c.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-1a03fd81.entry.js → p-fac2c2d3.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-fdbbb984.entry.js → p-fb6b3fe3.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/{p-85ff59c5.entry.js → p-fbd55472.entry.js} +1 -1
- package/dist/proto-ikon-loader-wc/proto-ikon-loader-wc.esm.js +1 -1
- package/loader/package.json +1 -0
- package/package.json +6 -6
- package/dist/proto-ikon-loader-wc/p-934fd264.entry.js +0 -1
|
@@ -63,7 +63,7 @@ const uniqueTime = (key, measureText) => {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
const rootAppliedStyles = new WeakMap();
|
|
66
|
+
const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
|
|
67
67
|
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
68
68
|
let style = styles.get(scopeId);
|
|
69
69
|
if (supportsConstructableStylesheets && allowCS) {
|
|
@@ -85,7 +85,7 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
85
85
|
const style = styles.get(scopeId);
|
|
86
86
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
87
87
|
// so the fallback is to always use the document for the root node in those cases
|
|
88
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
88
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
|
|
89
89
|
if (style) {
|
|
90
90
|
if (typeof style === 'string') {
|
|
91
91
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -119,7 +119,7 @@ const attachStyles = (hostRef) => {
|
|
|
119
119
|
const flags = cmpMeta.$flags$;
|
|
120
120
|
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
121
121
|
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
122
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
122
|
+
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
|
123
123
|
// only required when we're NOT using native shadow dom (slot)
|
|
124
124
|
// or this browser doesn't support native shadow dom
|
|
125
125
|
// and this host element was NOT created with SSR
|
|
@@ -324,7 +324,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
327
|
+
else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
|
|
328
328
|
newValue = newValue === true ? '' : newValue;
|
|
329
329
|
if (xlink) {
|
|
330
330
|
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
@@ -342,7 +342,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
342
342
|
// if the element passed in is a shadow root, which is a document fragment
|
|
343
343
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
344
344
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
345
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
345
|
+
const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
|
|
346
346
|
? newVnode.$elm$.host
|
|
347
347
|
: newVnode.$elm$;
|
|
348
348
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
@@ -360,6 +360,16 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
360
360
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
|
|
361
361
|
}
|
|
362
362
|
};
|
|
363
|
+
/**
|
|
364
|
+
* Create a DOM Node corresponding to one of the children of a given VNode.
|
|
365
|
+
*
|
|
366
|
+
* @param oldParentVNode the parent VNode from the previous render
|
|
367
|
+
* @param newParentVNode the parent VNode from the current render
|
|
368
|
+
* @param childIndex the index of the VNode, in the _new_ parent node's
|
|
369
|
+
* children, for which we will create a new DOM node
|
|
370
|
+
* @param parentElm the parent DOM node which our new node will be a child of
|
|
371
|
+
* @returns the newly created node
|
|
372
|
+
*/
|
|
363
373
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
364
374
|
// tslint:disable-next-line: prefer-const
|
|
365
375
|
const newVNode = newParentVNode.$children$[childIndex];
|
|
@@ -438,6 +448,74 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
438
448
|
}
|
|
439
449
|
}
|
|
440
450
|
};
|
|
451
|
+
/**
|
|
452
|
+
* Reconcile the children of a new VNode with the children of an old VNode by
|
|
453
|
+
* traversing the two collections of children, identifying nodes that are
|
|
454
|
+
* conserved or changed, calling out to `patch` to make any necessary
|
|
455
|
+
* updates to the DOM, and rearranging DOM nodes as needed.
|
|
456
|
+
*
|
|
457
|
+
* The algorithm for reconciling children works by analyzing two 'windows' onto
|
|
458
|
+
* the two arrays of children (`oldCh` and `newCh`). We keep track of the
|
|
459
|
+
* 'windows' by storing start and end indices and references to the
|
|
460
|
+
* corresponding array entries. Initially the two 'windows' are basically equal
|
|
461
|
+
* to the entire array, but we progressively narrow the windows until there are
|
|
462
|
+
* no children left to update by doing the following:
|
|
463
|
+
*
|
|
464
|
+
* 1. Skip any `null` entries at the beginning or end of the two arrays, so
|
|
465
|
+
* that if we have an initial array like the following we'll end up dealing
|
|
466
|
+
* only with a window bounded by the highlighted elements:
|
|
467
|
+
*
|
|
468
|
+
* [null, null, VNode1 , ... , VNode2, null, null]
|
|
469
|
+
* ^^^^^^ ^^^^^^
|
|
470
|
+
*
|
|
471
|
+
* 2. Check to see if the elements at the head and tail positions are equal
|
|
472
|
+
* across the windows. This will basically detect elements which haven't
|
|
473
|
+
* been added, removed, or changed position, i.e. if you had the following
|
|
474
|
+
* VNode elements (represented as HTML):
|
|
475
|
+
*
|
|
476
|
+
* oldVNode: `<div><p><span>HEY</span></p></div>`
|
|
477
|
+
* newVNode: `<div><p><span>THERE</span></p></div>`
|
|
478
|
+
*
|
|
479
|
+
* Then when comparing the children of the `<div>` tag we check the equality
|
|
480
|
+
* of the VNodes corresponding to the `<p>` tags and, since they are the
|
|
481
|
+
* same tag in the same position, we'd be able to avoid completely
|
|
482
|
+
* re-rendering the subtree under them with a new DOM element and would just
|
|
483
|
+
* call out to `patch` to handle reconciling their children and so on.
|
|
484
|
+
*
|
|
485
|
+
* 3. Check, for both windows, to see if the element at the beginning of the
|
|
486
|
+
* window corresponds to the element at the end of the other window. This is
|
|
487
|
+
* a heuristic which will let us identify _some_ situations in which
|
|
488
|
+
* elements have changed position, for instance it _should_ detect that the
|
|
489
|
+
* children nodes themselves have not changed but merely moved in the
|
|
490
|
+
* following example:
|
|
491
|
+
*
|
|
492
|
+
* oldVNode: `<div><element-one /><element-two /></div>`
|
|
493
|
+
* newVNode: `<div><element-two /><element-one /></div>`
|
|
494
|
+
*
|
|
495
|
+
* If we find cases like this then we also need to move the concrete DOM
|
|
496
|
+
* elements corresponding to the moved children to write the re-order to the
|
|
497
|
+
* DOM.
|
|
498
|
+
*
|
|
499
|
+
* 4. Finally, if VNodes have the `key` attribute set on them we check for any
|
|
500
|
+
* nodes in the old children which have the same key as the first element in
|
|
501
|
+
* our window on the new children. If we find such a node we handle calling
|
|
502
|
+
* out to `patch`, moving relevant DOM nodes, and so on, in accordance with
|
|
503
|
+
* what we find.
|
|
504
|
+
*
|
|
505
|
+
* Finally, once we've narrowed our 'windows' to the point that either of them
|
|
506
|
+
* collapse (i.e. they have length 0) we then handle any remaining VNode
|
|
507
|
+
* insertion or deletion that needs to happen to get a DOM state that correctly
|
|
508
|
+
* reflects the new child VNodes. If, for instance, after our window on the old
|
|
509
|
+
* children has collapsed we still have more nodes on the new children that
|
|
510
|
+
* we haven't dealt with yet then we need to add them, or if the new children
|
|
511
|
+
* collapse but we still have unhandled _old_ children then we need to make
|
|
512
|
+
* sure the corresponding DOM nodes are removed.
|
|
513
|
+
*
|
|
514
|
+
* @param parentElm the node into which the parent VNode is rendered
|
|
515
|
+
* @param oldCh the old children of the parent node
|
|
516
|
+
* @param newVNode the new VNode which will replace the parent
|
|
517
|
+
* @param newCh the new children of the parent node
|
|
518
|
+
*/
|
|
441
519
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
442
520
|
let oldStartIdx = 0;
|
|
443
521
|
let newStartIdx = 0;
|
|
@@ -450,7 +528,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
450
528
|
let node;
|
|
451
529
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
452
530
|
if (oldStartVnode == null) {
|
|
453
|
-
//
|
|
531
|
+
// VNode might have been moved left
|
|
454
532
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
455
533
|
}
|
|
456
534
|
else if (oldEndVnode == null) {
|
|
@@ -463,34 +541,67 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
463
541
|
newEndVnode = newCh[--newEndIdx];
|
|
464
542
|
}
|
|
465
543
|
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
544
|
+
// if the start nodes are the same then we should patch the new VNode
|
|
545
|
+
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
546
|
+
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
547
|
+
// since things are matched up in order.
|
|
466
548
|
patch(oldStartVnode, newStartVnode);
|
|
467
549
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
468
550
|
newStartVnode = newCh[++newStartIdx];
|
|
469
551
|
}
|
|
470
552
|
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
553
|
+
// likewise, if the end nodes are the same we patch new onto old and
|
|
554
|
+
// decrement our end indices, and also likewise in this case we don't
|
|
555
|
+
// need to move any DOM Nodes.
|
|
471
556
|
patch(oldEndVnode, newEndVnode);
|
|
472
557
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
473
558
|
newEndVnode = newCh[--newEndIdx];
|
|
474
559
|
}
|
|
475
560
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
476
561
|
patch(oldStartVnode, newEndVnode);
|
|
562
|
+
// We need to move the element for `oldStartVnode` into a position which
|
|
563
|
+
// will be appropriate for `newEndVnode`. For this we can use
|
|
564
|
+
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
565
|
+
// sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
|
|
566
|
+
// `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
|
|
567
|
+
//
|
|
568
|
+
// <old-start-node />
|
|
569
|
+
// <some-intervening-node />
|
|
570
|
+
// <old-end-node />
|
|
571
|
+
// <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
|
|
572
|
+
// <next-sibling />
|
|
573
|
+
//
|
|
574
|
+
// If instead `oldEndVnode.$elm$` has no sibling then we just want to put
|
|
575
|
+
// the node for `oldStartVnode` at the end of the children of
|
|
576
|
+
// `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
|
|
577
|
+
// aren't any siblings, and passing `null` to `Node.insertBefore` will
|
|
578
|
+
// append it to the children of the parent element.
|
|
477
579
|
parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
478
580
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
479
581
|
newEndVnode = newCh[--newEndIdx];
|
|
480
582
|
}
|
|
481
583
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
482
584
|
patch(oldEndVnode, newStartVnode);
|
|
585
|
+
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
586
|
+
// the same node, so since we're here we know that they are not. Thus we
|
|
587
|
+
// can move the element for `oldEndVnode` _before_ the element for
|
|
588
|
+
// `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
|
|
589
|
+
// future.
|
|
483
590
|
parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
484
591
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
485
592
|
newStartVnode = newCh[++newStartIdx];
|
|
486
593
|
}
|
|
487
594
|
else {
|
|
488
595
|
{
|
|
489
|
-
//
|
|
596
|
+
// We either didn't find an element in the old children that matches
|
|
597
|
+
// the key of the first new child OR the build is not using `key`
|
|
598
|
+
// attributes at all. In either case we need to create a new element
|
|
599
|
+
// for the new node.
|
|
490
600
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
|
|
491
601
|
newStartVnode = newCh[++newStartIdx];
|
|
492
602
|
}
|
|
493
603
|
if (node) {
|
|
604
|
+
// if we created a new node then handle inserting it to the DOM
|
|
494
605
|
{
|
|
495
606
|
oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
|
|
496
607
|
}
|
|
@@ -498,20 +609,49 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
498
609
|
}
|
|
499
610
|
}
|
|
500
611
|
if (oldStartIdx > oldEndIdx) {
|
|
612
|
+
// we have some more new nodes to add which don't match up with old nodes
|
|
501
613
|
addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
|
|
502
614
|
}
|
|
503
615
|
else if (newStartIdx > newEndIdx) {
|
|
616
|
+
// there are nodes in the `oldCh` array which no longer correspond to nodes
|
|
617
|
+
// in the new array, so lets remove them (which entails cleaning up the
|
|
618
|
+
// relevant DOM nodes)
|
|
504
619
|
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
505
620
|
}
|
|
506
621
|
};
|
|
507
|
-
|
|
622
|
+
/**
|
|
623
|
+
* Compare two VNodes to determine if they are the same
|
|
624
|
+
*
|
|
625
|
+
* **NB**: This function is an equality _heuristic_ based on the available
|
|
626
|
+
* information set on the two VNodes and can be misleading under certain
|
|
627
|
+
* circumstances. In particular, if the two nodes do not have `key` attrs
|
|
628
|
+
* (available under `$key$` on VNodes) then the function falls back on merely
|
|
629
|
+
* checking that they have the same tag.
|
|
630
|
+
*
|
|
631
|
+
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
632
|
+
* changing order within a `children` array or something along those lines then
|
|
633
|
+
* we could obtain a false positive and then have to do needless re-rendering.
|
|
634
|
+
*
|
|
635
|
+
* @param leftVNode the first VNode to check
|
|
636
|
+
* @param rightVNode the second VNode to check
|
|
637
|
+
* @returns whether they're equal or not
|
|
638
|
+
*/
|
|
639
|
+
const isSameVnode = (leftVNode, rightVNode) => {
|
|
508
640
|
// compare if two vnode to see if they're "technically" the same
|
|
509
641
|
// need to have the same element tag, and same key to be the same
|
|
510
|
-
if (
|
|
642
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
511
643
|
return true;
|
|
512
644
|
}
|
|
513
645
|
return false;
|
|
514
646
|
};
|
|
647
|
+
/**
|
|
648
|
+
* Handle reconciling an outdated VNode with a new one which corresponds to
|
|
649
|
+
* it. This function handles flushing updates to the DOM and reconciling the
|
|
650
|
+
* children of the two nodes (if any).
|
|
651
|
+
*
|
|
652
|
+
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
653
|
+
* @param newVNode a new VNode representing an updated version of the old one
|
|
654
|
+
*/
|
|
515
655
|
const patch = (oldVNode, newVNode) => {
|
|
516
656
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
517
657
|
const oldChildren = oldVNode.$children$;
|
|
@@ -524,7 +664,6 @@ const patch = (oldVNode, newVNode) => {
|
|
|
524
664
|
// only add this to the when the compiler sees we're using an svg somewhere
|
|
525
665
|
isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
|
|
526
666
|
}
|
|
527
|
-
// element node
|
|
528
667
|
{
|
|
529
668
|
{
|
|
530
669
|
// either this is the first render of an element OR it's an update
|
|
@@ -535,6 +674,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
535
674
|
}
|
|
536
675
|
if (oldChildren !== null && newChildren !== null) {
|
|
537
676
|
// looks like there's child vnodes for both the old and new vnodes
|
|
677
|
+
// so we need to call `updateChildren` to reconcile them
|
|
538
678
|
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
539
679
|
}
|
|
540
680
|
else if (newChildren !== null) {
|
|
@@ -566,7 +706,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
566
706
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
567
707
|
hostTagName = hostElm.tagName;
|
|
568
708
|
rootVnode.$tag$ = null;
|
|
569
|
-
rootVnode.$flags$ |= 4 /* isHost */;
|
|
709
|
+
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
570
710
|
hostRef.$vnode$ = rootVnode;
|
|
571
711
|
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
|
572
712
|
{
|
|
@@ -595,10 +735,10 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
|
595
735
|
};
|
|
596
736
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
597
737
|
{
|
|
598
|
-
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
738
|
+
hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
599
739
|
}
|
|
600
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
601
|
-
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
740
|
+
if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
|
|
741
|
+
hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
|
|
602
742
|
return;
|
|
603
743
|
}
|
|
604
744
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
@@ -645,7 +785,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
645
785
|
}
|
|
646
786
|
else {
|
|
647
787
|
Promise.all(childrenPromises).then(postUpdate);
|
|
648
|
-
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
788
|
+
hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
|
|
649
789
|
childrenPromises.length = 0;
|
|
650
790
|
}
|
|
651
791
|
}
|
|
@@ -654,10 +794,10 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
654
794
|
try {
|
|
655
795
|
instance = instance.render() ;
|
|
656
796
|
{
|
|
657
|
-
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
797
|
+
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
658
798
|
}
|
|
659
799
|
{
|
|
660
|
-
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
800
|
+
hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
|
|
661
801
|
}
|
|
662
802
|
{
|
|
663
803
|
{
|
|
@@ -680,8 +820,8 @@ const postUpdateComponent = (hostRef) => {
|
|
|
680
820
|
const elm = hostRef.$hostElement$;
|
|
681
821
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
682
822
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
683
|
-
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
684
|
-
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
823
|
+
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
824
|
+
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
685
825
|
{
|
|
686
826
|
// DOM WRITE!
|
|
687
827
|
addHydratedFlag(elm);
|
|
@@ -704,10 +844,10 @@ const postUpdateComponent = (hostRef) => {
|
|
|
704
844
|
hostRef.$onRenderResolve$();
|
|
705
845
|
hostRef.$onRenderResolve$ = undefined;
|
|
706
846
|
}
|
|
707
|
-
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
847
|
+
if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
|
|
708
848
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
709
849
|
}
|
|
710
|
-
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
850
|
+
hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
|
|
711
851
|
}
|
|
712
852
|
// ( •_•)
|
|
713
853
|
// ( •_•)>⌐■-■
|
|
@@ -752,16 +892,16 @@ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
|
752
892
|
const parsePropertyValue = (propValue, propType) => {
|
|
753
893
|
// ensure this value is of the correct prop type
|
|
754
894
|
if (propValue != null && !isComplexType(propValue)) {
|
|
755
|
-
if (propType & 4 /* Boolean */) {
|
|
895
|
+
if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
|
|
756
896
|
// per the HTML spec, any string value means it is a boolean true value
|
|
757
897
|
// but we'll cheat here and say that the string "false" is the boolean false
|
|
758
898
|
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
759
899
|
}
|
|
760
|
-
if (propType & 2 /* Number */) {
|
|
900
|
+
if (propType & 2 /* MEMBER_FLAGS.Number */) {
|
|
761
901
|
// force it to be a number
|
|
762
902
|
return parseFloat(propValue);
|
|
763
903
|
}
|
|
764
|
-
if (propType & 1 /* String */) {
|
|
904
|
+
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
765
905
|
// could have been passed as a number or boolean
|
|
766
906
|
// but we still want it as a string
|
|
767
907
|
return String(propValue);
|
|
@@ -784,12 +924,12 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
784
924
|
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
785
925
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
786
926
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
787
|
-
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
927
|
+
if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
788
928
|
// gadzooks! the property's value has changed!!
|
|
789
929
|
// set our new value!
|
|
790
930
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
791
931
|
if (instance) {
|
|
792
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
932
|
+
if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
793
933
|
// looks like this value actually changed, so we've got work to do!
|
|
794
934
|
// but only if we've already rendered, otherwise just chill out
|
|
795
935
|
// queue that we need to do an update, but don't worry about queuing
|
|
@@ -805,8 +945,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
805
945
|
const members = Object.entries(cmpMeta.$members$);
|
|
806
946
|
const prototype = Cstr.prototype;
|
|
807
947
|
members.map(([memberName, [memberFlags]]) => {
|
|
808
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
809
|
-
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
948
|
+
if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
|
|
949
|
+
((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
|
|
810
950
|
// proxyComponent - prop
|
|
811
951
|
Object.defineProperty(prototype, memberName, {
|
|
812
952
|
get() {
|
|
@@ -822,7 +962,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
822
962
|
});
|
|
823
963
|
}
|
|
824
964
|
});
|
|
825
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
965
|
+
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
826
966
|
const attrNameToPropName = new Map();
|
|
827
967
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
828
968
|
plt.jmp(() => {
|
|
@@ -878,7 +1018,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
878
1018
|
// create an array of attributes to observe
|
|
879
1019
|
// and also create a map of html attribute name to js property name
|
|
880
1020
|
Cstr.observedAttributes = members
|
|
881
|
-
.filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
|
|
1021
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
|
|
882
1022
|
.map(([propName, m]) => {
|
|
883
1023
|
const attrName = m[1] || propName;
|
|
884
1024
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -890,10 +1030,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
890
1030
|
};
|
|
891
1031
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
892
1032
|
// initializeComponent
|
|
893
|
-
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1033
|
+
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
894
1034
|
{
|
|
895
1035
|
// we haven't initialized this element yet
|
|
896
|
-
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1036
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
897
1037
|
// lazy loaded components
|
|
898
1038
|
// request the component's implementation to be
|
|
899
1039
|
// wired up with the host element
|
|
@@ -905,7 +1045,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
905
1045
|
endLoad();
|
|
906
1046
|
}
|
|
907
1047
|
if (!Cstr.isProxied) {
|
|
908
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1048
|
+
proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
|
|
909
1049
|
Cstr.isProxied = true;
|
|
910
1050
|
}
|
|
911
1051
|
const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
|
|
@@ -913,7 +1053,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
913
1053
|
// but let's keep track of when we start and stop
|
|
914
1054
|
// so that the getters/setters don't incorrectly step on data
|
|
915
1055
|
{
|
|
916
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1056
|
+
hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
|
|
917
1057
|
}
|
|
918
1058
|
// construct the lazy-loaded component implementation
|
|
919
1059
|
// passing the hostRef is very important during
|
|
@@ -926,7 +1066,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
926
1066
|
consoleError(e);
|
|
927
1067
|
}
|
|
928
1068
|
{
|
|
929
|
-
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1069
|
+
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
|
930
1070
|
}
|
|
931
1071
|
endNewInstance();
|
|
932
1072
|
}
|
|
@@ -936,7 +1076,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
936
1076
|
const scopeId = getScopeId(cmpMeta);
|
|
937
1077
|
if (!styles.has(scopeId)) {
|
|
938
1078
|
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
939
|
-
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1079
|
+
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
|
|
940
1080
|
endRegisterStyles();
|
|
941
1081
|
}
|
|
942
1082
|
}
|
|
@@ -958,13 +1098,13 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
958
1098
|
}
|
|
959
1099
|
};
|
|
960
1100
|
const connectedCallback = (elm) => {
|
|
961
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1101
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
962
1102
|
const hostRef = getHostRef(elm);
|
|
963
1103
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
964
1104
|
const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
|
|
965
|
-
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1105
|
+
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
|
966
1106
|
// first time this component has connected
|
|
967
|
-
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1107
|
+
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
|
968
1108
|
{
|
|
969
1109
|
// find the first ancestor component (if there is one) and register
|
|
970
1110
|
// this component as one of the actively loading child components for its ancestor
|
|
@@ -984,7 +1124,7 @@ const connectedCallback = (elm) => {
|
|
|
984
1124
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
985
1125
|
if (cmpMeta.$members$) {
|
|
986
1126
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
987
|
-
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1127
|
+
if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
|
|
988
1128
|
const value = elm[memberName];
|
|
989
1129
|
delete elm[memberName];
|
|
990
1130
|
elm[memberName] = value;
|
|
@@ -999,7 +1139,7 @@ const connectedCallback = (elm) => {
|
|
|
999
1139
|
}
|
|
1000
1140
|
};
|
|
1001
1141
|
const disconnectedCallback = (elm) => {
|
|
1002
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1142
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1003
1143
|
getHostRef(elm);
|
|
1004
1144
|
}
|
|
1005
1145
|
};
|
|
@@ -1035,7 +1175,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1035
1175
|
super(self);
|
|
1036
1176
|
self = this;
|
|
1037
1177
|
registerHost(self, cmpMeta);
|
|
1038
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1178
|
+
if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
|
1039
1179
|
// this component is using shadow dom
|
|
1040
1180
|
// and this browser supports shadow dom
|
|
1041
1181
|
// add the read-only property "shadowRoot" to the host element
|
|
@@ -1070,7 +1210,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1070
1210
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1071
1211
|
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1072
1212
|
cmpTags.push(tagName);
|
|
1073
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1213
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
|
|
1074
1214
|
}
|
|
1075
1215
|
});
|
|
1076
1216
|
});
|
|
@@ -1092,7 +1232,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1092
1232
|
// Fallback appLoad event
|
|
1093
1233
|
endBootstrap();
|
|
1094
1234
|
};
|
|
1095
|
-
const hostRefs = new WeakMap();
|
|
1235
|
+
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1096
1236
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1097
1237
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1098
1238
|
const registerHost = (elm, cmpMeta) => {
|
|
@@ -1133,14 +1273,14 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1133
1273
|
return importedModule[exportName];
|
|
1134
1274
|
}, consoleError);
|
|
1135
1275
|
};
|
|
1136
|
-
const styles = new Map();
|
|
1276
|
+
const styles = /*@__PURE__*/ new Map();
|
|
1137
1277
|
const queueDomReads = [];
|
|
1138
1278
|
const queueDomWrites = [];
|
|
1139
1279
|
const queueTask = (queue, write) => (cb) => {
|
|
1140
1280
|
queue.push(cb);
|
|
1141
1281
|
if (!queuePending) {
|
|
1142
1282
|
queuePending = true;
|
|
1143
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
1283
|
+
if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
|
|
1144
1284
|
nextTick(flush);
|
|
1145
1285
|
}
|
|
1146
1286
|
else {
|