@saasquatch/mint-components 1.5.0-49 → 1.5.0-52
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/{AutoColor-a489ed67.js → AutoColor-db901e98.js} +101 -105
- package/dist/cjs/{GenericTableView-f9bd3b19.js → GenericTableView-34662639.js} +5 -6
- package/dist/cjs/{JSS-24a85193.js → JSS-c65a40f1.js} +39 -39
- package/dist/cjs/{global-32bf222f.js → global-08276663.js} +589 -589
- package/dist/cjs/{index-d8fa5d8e.js → index-b0129cd6.js} +104 -181
- package/dist/cjs/{index.module-0f10a4c4.js → index.module-54724339.js} +6392 -6392
- package/dist/cjs/loader.cjs.js +7 -7
- package/dist/cjs/{luxon-751f2e1c.js → luxon-59ca7d19.js} +2 -2
- package/dist/cjs/mint-components.cjs.js +9 -9
- package/dist/cjs/{sqm-asset-card-view-0764beab.js → sqm-asset-card-view-d9ac6a95.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-big-stat-view-37e341c1.js → sqm-big-stat-view-e5dc0877.js} +2 -2
- package/dist/cjs/sqm-big-stat.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-brand_26.cjs.entry.js → sqm-brand_27.cjs.entry.js} +328 -251
- package/dist/cjs/sqm-form-message.cjs.entry.js +3 -3
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +10 -10
- package/dist/cjs/{sqm-hero-view-6706134d.js → sqm-hero-view-a13795c0.js} +4 -4
- package/dist/cjs/sqm-hero.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-leaderboard-rank-view-5e2bcad9.js → sqm-leaderboard-rank-view-35015d30.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +14 -15
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-name-fields-view-c684114f.js → sqm-name-fields-view-c95e4768.js} +10 -12
- package/dist/cjs/sqm-name-fields.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-navigation-sidebar-item-view-7f69e118.js → sqm-navigation-sidebar-item-view-da648fbc.js} +4 -4
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-navigation-sidebar-view-b53fad32.js → sqm-navigation-sidebar-view-36632c96.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +26 -27
- package/dist/cjs/sqm-popup-container.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-container-view-a78ab7ca.js → sqm-portal-container-view-185b4bd0.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-2a783b13.js → sqm-portal-email-verification-view-991a6739.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +13 -13
- package/dist/cjs/{sqm-portal-footer-view-ff16e344.js → sqm-portal-footer-view-266e5a7d.js} +3 -3
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-forgot-password-view-036e5d76.js → sqm-portal-forgot-password-view-10c0b54f.js} +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +13 -13
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-portal-profile-view-0c31ff46.js → sqm-portal-profile-view-fda5946f.js} +10 -13
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +16 -16
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-reset-password-view-c2ca03ef.js → sqm-portal-reset-password-view-1fdc957e.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +15 -15
- package/dist/cjs/{sqm-portal-section-view-073d9dda.js → sqm-portal-section-view-3b6c990e.js} +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-1fa62a17.js → sqm-portal-verify-email-view-4c78e231.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +14 -14
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +31 -31
- package/dist/cjs/sqm-refresh-button.cjs.entry.js +7 -7
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +26 -27
- package/dist/cjs/sqm-route.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-stat-container-view-fd6e8f8d.js → sqm-stat-container-view-5b2db929.js} +2 -18
- package/dist/cjs/sqm-stat-container.cjs.entry.js +6 -6
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +642 -599
- package/dist/cjs/sqm-table-cell_3.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-text-span-view-dd99633a.js → sqm-text-span-view-f101dedf.js} +2 -2
- package/dist/cjs/sqm-text-span.cjs.entry.js +5 -5
- package/dist/cjs/sqm-titled-section.cjs.entry.js +6 -6
- package/dist/{esm/stencil-hooks.module-1bcbec4f.js → cjs/stencil-hooks.module-87a1f4f7.js} +58 -40
- package/dist/cjs/{use-callback-867e51f6.js → use-callback-e754042f.js} +1 -1
- package/dist/cjs/{useChildElements-6f8aa7de.js → useChildElements-4bc9b219.js} +3 -3
- package/dist/cjs/{useDemoBigStat-1fa1ca6a.js → useDemoBigStat-42fa7a69.js} +5 -5
- package/dist/cjs/{useLeaderboard-b712d583.js → useLeaderboard-6110cd94.js} +5 -5
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +3 -4
- package/dist/collection/components/sqm-image/Image.stories.js +25 -0
- package/dist/collection/components/sqm-image/sqm-image-view.js +32 -0
- package/dist/collection/components/sqm-image/sqm-image.js +137 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +1 -1
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +3 -4
- package/dist/collection/components/sqm-media/HeroImage.stories.js +37 -0
- package/dist/collection/components/sqm-media/{sqm-media-view.js → sqm-hero-image-view.js} +26 -18
- package/dist/collection/components/sqm-media/{sqm-media.js → sqm-hero-image.js} +77 -38
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +8 -10
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +4 -5
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +5 -8
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +10 -12
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
- package/dist/collection/components/sqm-referral-card/sqm-timeline-entry.js +47 -16
- package/dist/collection/components/sqm-referral-card/sqm-timeline.js +21 -16
- package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +0 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
- package/dist/collection/components/sqm-refresh-button/sqm-refresh-button.js +1 -3
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +0 -3
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -2
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +0 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +0 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-view.js +3 -4
- package/dist/collection/components/sqm-share-button/useShareButton.js +1 -2
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +0 -16
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +1 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -2
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +2 -2
- package/dist/collection/tables/GenericTableView.js +3 -4
- package/dist/esm/{AutoColor-9281c94b.js → AutoColor-5d891803.js} +101 -105
- package/dist/esm/{GenericTableView-e4257466.js → GenericTableView-5de898c3.js} +5 -6
- package/dist/esm/{JSS-df9ea8a0.js → JSS-96eeab98.js} +39 -39
- package/dist/esm/{global-cc738e38.js → global-6bd9287e.js} +589 -589
- package/dist/esm/{index-2c5a6587.js → index-17b4da69.js} +104 -181
- package/dist/esm/{index.module-983975d9.js → index.module-ec3dcc82.js} +6374 -6374
- package/dist/esm/loader.js +7 -7
- package/dist/esm/{luxon-afa282c2.js → luxon-5fa22651.js} +2 -2
- package/dist/esm/mint-components.js +9 -9
- package/dist/esm/{sqm-asset-card-view-809b35ce.js → sqm-asset-card-view-f9ca5345.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +9 -9
- package/dist/esm/{sqm-big-stat-view-3adf4ef2.js → sqm-big-stat-view-309f7c1f.js} +2 -2
- package/dist/esm/sqm-big-stat.entry.js +9 -9
- package/dist/esm/{sqm-brand_26.entry.js → sqm-brand_27.entry.js} +327 -251
- package/dist/esm/sqm-form-message.entry.js +3 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +10 -10
- package/dist/esm/{sqm-hero-view-b30e42f0.js → sqm-hero-view-190bc812.js} +4 -4
- package/dist/esm/sqm-hero.entry.js +7 -7
- package/dist/esm/{sqm-leaderboard-rank-view-91a35c42.js → sqm-leaderboard-rank-view-da91f5f3.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +14 -15
- package/dist/esm/sqm-leaderboard.entry.js +9 -9
- package/dist/esm/{sqm-name-fields-view-77895fa8.js → sqm-name-fields-view-69b1583f.js} +10 -12
- package/dist/esm/sqm-name-fields.entry.js +9 -9
- package/dist/esm/{sqm-navigation-sidebar-item-view-3c21b3ee.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +4 -4
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +11 -11
- package/dist/esm/{sqm-navigation-sidebar-view-1c50483e.js → sqm-navigation-sidebar-view-816558e3.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +5 -5
- package/dist/esm/sqm-password-field.entry.js +26 -27
- package/dist/esm/sqm-popup-container.entry.js +9 -9
- package/dist/esm/{sqm-portal-container-view-72c8b457.js → sqm-portal-container-view-cf79ed90.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-7685db9c.js → sqm-portal-email-verification-view-96c1f91b.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +13 -13
- package/dist/esm/{sqm-portal-footer-view-b344a6ad.js → sqm-portal-footer-view-3a7dfbfc.js} +3 -3
- package/dist/esm/sqm-portal-footer.entry.js +9 -9
- package/dist/esm/{sqm-portal-forgot-password-view-f7f24742.js → sqm-portal-forgot-password-view-fa088f83.js} +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +13 -13
- package/dist/esm/sqm-portal-logout.entry.js +8 -8
- package/dist/esm/{sqm-portal-profile-view-3da23184.js → sqm-portal-profile-view-36488558.js} +10 -13
- package/dist/esm/sqm-portal-profile.entry.js +16 -16
- package/dist/esm/sqm-portal-protected-route.entry.js +11 -11
- package/dist/esm/{sqm-portal-reset-password-view-f3017d72.js → sqm-portal-reset-password-view-73e14282.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +15 -15
- package/dist/esm/{sqm-portal-section-view-5a3d3829.js → sqm-portal-section-view-d3098f7f.js} +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-329fdc3b.js → sqm-portal-verify-email-view-cbf1cfdc.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +14 -14
- package/dist/esm/sqm-referral-table_11.entry.js +31 -31
- package/dist/esm/sqm-refresh-button.entry.js +7 -7
- package/dist/esm/sqm-rewards-table_9.entry.js +26 -27
- package/dist/esm/sqm-route.entry.js +2 -2
- package/dist/esm/{sqm-stat-container-view-02b82222.js → sqm-stat-container-view-8a565c5a.js} +2 -18
- package/dist/esm/sqm-stat-container.entry.js +6 -6
- package/dist/esm/sqm-stencilbook.entry.js +642 -599
- package/dist/esm/sqm-table-cell_3.entry.js +5 -5
- package/dist/esm/{sqm-text-span-view-be532a94.js → sqm-text-span-view-7e61c95c.js} +2 -2
- package/dist/esm/sqm-text-span.entry.js +5 -5
- package/dist/esm/sqm-titled-section.entry.js +6 -6
- package/dist/{cjs/stencil-hooks.module-23a5a83a.js → esm/stencil-hooks.module-2f159754.js} +40 -58
- package/dist/esm/{use-callback-cfeaefe1.js → use-callback-d8ef4b5d.js} +1 -1
- package/dist/esm/{useChildElements-9936fb9a.js → useChildElements-c11d6189.js} +3 -3
- package/dist/esm/{useDemoBigStat-5450ce4c.js → useDemoBigStat-e2295035.js} +5 -5
- package/dist/esm/{useLeaderboard-c0017437.js → useLeaderboard-5d875f53.js} +5 -5
- package/dist/esm-es5/AutoColor-5d891803.js +1 -0
- package/dist/esm-es5/{GenericTableView-e4257466.js → GenericTableView-5de898c3.js} +1 -1
- package/dist/esm-es5/JSS-96eeab98.js +8 -0
- package/dist/esm-es5/global-6bd9287e.js +285 -0
- package/dist/esm-es5/index-17b4da69.js +1 -0
- package/dist/esm-es5/index.module-ec3dcc82.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-afa282c2.js → luxon-5fa22651.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-809b35ce.js → sqm-asset-card-view-f9ca5345.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/{sqm-big-stat-view-3adf4ef2.js → sqm-big-stat-view-309f7c1f.js} +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-brand_27.entry.js +1 -0
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-b30e42f0.js → sqm-hero-view-190bc812.js} +1 -1
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
- package/dist/esm-es5/{sqm-name-fields-view-77895fa8.js → sqm-name-fields-view-69b1583f.js} +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-3c21b3ee.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-1c50483e.js → sqm-navigation-sidebar-view-816558e3.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-72c8b457.js → sqm-portal-container-view-cf79ed90.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-7685db9c.js → sqm-portal-email-verification-view-96c1f91b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-b344a6ad.js → sqm-portal-footer-view-3a7dfbfc.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-f7f24742.js → sqm-portal-forgot-password-view-fa088f83.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-3da23184.js → sqm-portal-profile-view-36488558.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-f3017d72.js → sqm-portal-reset-password-view-73e14282.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-section-view-5a3d3829.js → sqm-portal-section-view-d3098f7f.js} +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-329fdc3b.js → sqm-portal-verify-email-view-cbf1cfdc.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-refresh-button.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-route.entry.js +1 -1
- package/dist/esm-es5/{sqm-stat-container-view-02b82222.js → sqm-stat-container-view-8a565c5a.js} +1 -1
- package/dist/esm-es5/sqm-stat-container.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-table-cell_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-be532a94.js → sqm-text-span-view-7e61c95c.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-titled-section.entry.js +1 -1
- package/dist/esm-es5/stencil-hooks.module-2f159754.js +53 -0
- package/dist/esm-es5/use-callback-d8ef4b5d.js +1 -0
- package/dist/esm-es5/useChildElements-c11d6189.js +1 -0
- package/dist/esm-es5/useDemoBigStat-e2295035.js +1 -0
- package/dist/esm-es5/useLeaderboard-5d875f53.js +1 -0
- package/dist/loader/index.d.ts +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-09357f10.system.entry.js → p-01748c80.system.entry.js} +1 -1
- package/dist/mint-components/p-023dcaee.js +1 -0
- package/dist/mint-components/{p-64d2bfb1.system.entry.js → p-067cf6da.system.entry.js} +1 -1
- package/dist/mint-components/p-0c19f830.entry.js +1 -0
- package/dist/mint-components/{p-0e97beb3.js → p-0e7e10b6.js} +1 -1
- package/dist/mint-components/p-1288be55.entry.js +1 -0
- package/dist/mint-components/{p-c4cedfef.system.entry.js → p-136e2028.system.entry.js} +1 -1
- package/dist/mint-components/{p-b138c9e4.system.js → p-16effd39.system.js} +1 -1
- package/dist/mint-components/{p-740a45df.js → p-179988b5.js} +1 -1
- package/dist/mint-components/{p-38045cb3.system.js → p-1959da16.system.js} +1 -1
- package/dist/mint-components/{p-408f48ec.system.entry.js → p-197d1027.system.entry.js} +1 -1
- package/dist/mint-components/{p-6e2e549a.js → p-1d1e9197.js} +1 -1
- package/dist/mint-components/p-204fd08c.js +1 -0
- package/dist/mint-components/p-220181cd.system.entry.js +1 -0
- package/dist/mint-components/p-232db563.system.entry.js +1 -0
- package/dist/mint-components/{p-ef4e8230.system.entry.js → p-2454f30a.system.entry.js} +1 -1
- package/dist/mint-components/p-24724b6b.entry.js +13 -0
- package/dist/mint-components/p-27e04aaf.entry.js +1 -0
- package/dist/mint-components/{p-96103ab1.system.js → p-2c49c7a8.system.js} +1 -1
- package/dist/mint-components/p-348461ec.system.entry.js +1 -0
- package/dist/mint-components/{p-747dc08d.js → p-373fa002.js} +1 -1
- package/dist/mint-components/p-3b184c32.js +1 -0
- package/dist/mint-components/{p-1ef9bc8f.system.js → p-3bbb90a9.system.js} +1 -1
- package/dist/mint-components/{p-4c5581b9.js → p-3dc2850c.js} +1 -1
- package/dist/mint-components/{p-e52d6c0f.js → p-3e556042.js} +1 -1
- package/dist/mint-components/{p-65d669e7.system.entry.js → p-4275c957.system.entry.js} +1 -1
- package/dist/mint-components/{p-c5d104d8.system.js → p-4279da4b.system.js} +1 -1
- package/dist/mint-components/{p-fc103049.system.js → p-443c133e.system.js} +1 -1
- package/dist/mint-components/p-48abcb89.entry.js +86 -0
- package/dist/mint-components/p-49c9ff69.entry.js +1 -0
- package/dist/mint-components/{p-eba0f8b5.js → p-4a1b7d35.js} +1 -1
- package/dist/mint-components/p-4c21835b.entry.js +1 -0
- package/dist/mint-components/p-4e0b9201.system.js +1 -0
- package/dist/mint-components/{p-159a0455.system.entry.js → p-4e8e99bc.system.entry.js} +1 -1
- package/dist/mint-components/{p-79b96b7c.js → p-509e6dc9.js} +4 -4
- package/dist/mint-components/p-5289072a.js +1 -0
- package/dist/mint-components/p-54986541.entry.js +1 -0
- package/dist/mint-components/{p-754c90b6.js → p-54e855a1.js} +1 -1
- package/dist/mint-components/{p-6d1fd7ef.js → p-591de129.js} +1 -1
- package/dist/mint-components/{p-2cf031e5.js → p-5c75acad.js} +1 -1
- package/dist/mint-components/{p-feb4ccf1.system.js → p-5df1d9ae.system.js} +1 -1
- package/dist/mint-components/{p-b094bf1f.system.entry.js → p-5e2b006a.system.entry.js} +1 -1
- package/dist/mint-components/{p-39ba54b0.js → p-61a542ec.js} +1 -1
- package/dist/mint-components/p-62625e22.entry.js +1 -0
- package/dist/mint-components/p-62e49806.system.entry.js +1 -0
- package/dist/mint-components/p-639d3dd3.entry.js +1 -0
- package/dist/mint-components/p-63a6475a.system.entry.js +1 -0
- package/dist/mint-components/{p-73246c5e.js → p-64c3217a.js} +1 -1
- package/dist/mint-components/{p-feea807c.system.js → p-6b43e4cc.system.js} +1 -1
- package/dist/mint-components/{p-a6940c14.system.entry.js → p-6e70be1c.system.entry.js} +1 -1
- package/dist/mint-components/p-6f88ea09.system.js +1 -0
- package/dist/mint-components/p-72a978c8.entry.js +1 -0
- package/dist/mint-components/{p-637a01d0.system.js → p-72c87c04.system.js} +1 -1
- package/dist/mint-components/{p-071fdcfa.js → p-73d5306f.js} +1 -1
- package/dist/mint-components/p-76325d9c.system.entry.js +1 -0
- package/dist/mint-components/{p-80eb9f8a.js → p-7a1ebc00.js} +15 -15
- package/dist/mint-components/{p-720d9f1a.system.entry.js → p-81681ebd.system.entry.js} +1 -1
- package/dist/mint-components/p-871536c7.entry.js +1 -0
- package/dist/mint-components/{p-9fa1fb4e.system.js → p-8bcaafaf.system.js} +1 -1
- package/dist/mint-components/{p-a6a9d6b7.system.entry.js → p-91ab2b0d.system.entry.js} +1 -1
- package/dist/mint-components/{p-efb82cfc.system.js → p-91d119ad.system.js} +1 -1
- package/dist/mint-components/p-9580888c.system.js +53 -0
- package/dist/mint-components/p-96c971fa.entry.js +1 -0
- package/dist/mint-components/p-97f843f9.system.entry.js +1 -0
- package/dist/mint-components/p-98393bf0.entry.js +1 -0
- package/dist/mint-components/{p-e46a4dc4.js → p-9b48d01e.js} +1 -1
- package/dist/mint-components/p-9f215c7f.entry.js +161 -0
- package/dist/mint-components/p-9f65904f.entry.js +1 -0
- package/dist/mint-components/{p-5cc0dc12.system.js → p-a09e3176.system.js} +1 -1
- package/dist/mint-components/p-a674c833.system.entry.js +1 -0
- package/dist/mint-components/p-ac5f63b1.entry.js +33 -0
- package/dist/mint-components/p-ac65007d.js +1 -0
- package/dist/mint-components/p-af5673c4.entry.js +1 -0
- package/dist/mint-components/p-b0c32d15.system.js +1 -0
- package/dist/mint-components/p-b0d6a380.system.js +1 -0
- package/dist/mint-components/p-b0e8c584.system.entry.js +1 -0
- package/dist/mint-components/p-b3201e4c.entry.js +1 -0
- package/dist/mint-components/p-b3735eaf.entry.js +9 -0
- package/dist/mint-components/p-b3af1c6f.js +1 -0
- package/dist/mint-components/p-b69365f5.entry.js +1 -0
- package/dist/mint-components/p-b77bb179.system.js +285 -0
- package/dist/mint-components/p-b7da9a8a.js +42 -0
- package/dist/mint-components/{p-e29935f9.system.js → p-b8434fc0.system.js} +1 -1
- package/dist/mint-components/p-b9974b87.entry.js +1 -0
- package/dist/mint-components/{p-86372145.system.entry.js → p-ba41fde8.system.entry.js} +1 -1
- package/dist/mint-components/{p-80493415.system.entry.js → p-bd0475a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-0ef64931.system.js → p-bf055b6c.system.js} +1 -1
- package/dist/mint-components/{p-1b2b1ba2.js → p-c157f510.js} +3 -3
- package/dist/mint-components/{p-16db729c.system.entry.js → p-c1a47137.system.entry.js} +1 -1
- package/dist/mint-components/{p-1ca5b819.js → p-c2e84199.js} +1 -1
- package/dist/mint-components/p-cb93f2c8.entry.js +1 -0
- package/dist/mint-components/p-cd4037d1.entry.js +1 -0
- package/dist/mint-components/{p-d8e97fb7.system.js → p-ce0ec1c4.system.js} +1 -1
- package/dist/mint-components/p-d10efde1.system.js +1 -0
- package/dist/mint-components/p-d1520098.js +1 -0
- package/dist/mint-components/p-d312db42.entry.js +1 -0
- package/dist/mint-components/{p-d27c4eb5.js → p-d33eb961.js} +1 -1
- package/dist/mint-components/{p-5c4dec0c.system.entry.js → p-d6ef4765.system.entry.js} +1 -1
- package/dist/mint-components/p-dc17de12.entry.js +119 -0
- package/dist/mint-components/p-dcff1a85.entry.js +1 -0
- package/dist/mint-components/{p-6d6791b6.system.js → p-df466813.system.js} +1 -1
- package/dist/mint-components/{p-b81b4ebf.system.js → p-e00e11b1.system.js} +1 -1
- package/dist/mint-components/{p-35a8858e.system.js → p-e0be39d0.system.js} +1 -1
- package/dist/mint-components/{p-83e18382.system.entry.js → p-e1166d9b.system.entry.js} +1 -1
- package/dist/mint-components/{p-6353bf11.entry.js → p-e7b20665.entry.js} +1 -1
- package/dist/mint-components/{p-bb2bc191.system.js → p-ea110693.system.js} +1 -1
- package/dist/mint-components/p-ea197664.js +1 -0
- package/dist/mint-components/p-eb23e1b9.system.entry.js +1 -0
- package/dist/mint-components/{p-8c5bf8ee.system.js → p-eba2e455.system.js} +1 -1
- package/dist/mint-components/p-ef99c411.system.entry.js +1 -0
- package/dist/mint-components/p-f143117c.entry.js +1 -0
- package/dist/mint-components/p-f241ee8a.system.entry.js +1 -0
- package/dist/mint-components/p-f372c8d8.entry.js +1 -0
- package/dist/mint-components/p-f5cba1f7.system.entry.js +1 -0
- package/dist/mint-components/{p-82a02b17.system.js → p-f8d95abc.system.js} +1 -1
- package/dist/mint-components/{p-af859f26.js → p-f9008f86.js} +153 -153
- package/dist/mint-components/{p-4479f753.system.entry.js → p-fb8a587b.system.entry.js} +1 -1
- package/dist/mint-components/p-fe4d9531.system.js +1 -0
- package/dist/mint-components/p-ff17b3a4.system.js +1 -0
- package/dist/types/components/sqm-image/Image.stories.d.ts +11 -0
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +8 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +31 -0
- package/dist/types/components/sqm-media/HeroImage.stories.d.ts +15 -0
- package/dist/types/components/sqm-media/{sqm-media-view.d.ts → sqm-hero-image-view.d.ts} +6 -3
- package/dist/types/components/sqm-media/{sqm-media.d.ts → sqm-hero-image.d.ts} +16 -9
- package/dist/types/components/sqm-referral-card/sqm-timeline-entry.d.ts +4 -0
- package/dist/types/components.d.ts +215 -138
- package/dist/types/stencil-public-runtime.d.ts +182 -190
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/sqm-media/Media.stories.js +0 -28
- package/dist/esm-es5/AutoColor-9281c94b.js +0 -1
- package/dist/esm-es5/JSS-df9ea8a0.js +0 -8
- package/dist/esm-es5/global-cc738e38.js +0 -285
- package/dist/esm-es5/index-2c5a6587.js +0 -1
- package/dist/esm-es5/index.module-983975d9.js +0 -1
- package/dist/esm-es5/sqm-brand_26.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-91a35c42.js +0 -1
- package/dist/esm-es5/stencil-hooks.module-1bcbec4f.js +0 -53
- package/dist/esm-es5/use-callback-cfeaefe1.js +0 -1
- package/dist/esm-es5/useChildElements-9936fb9a.js +0 -1
- package/dist/esm-es5/useDemoBigStat-5450ce4c.js +0 -1
- package/dist/esm-es5/useLeaderboard-c0017437.js +0 -1
- package/dist/mint-components/p-00894968.system.js +0 -1
- package/dist/mint-components/p-0449904d.system.entry.js +0 -1
- package/dist/mint-components/p-050bd4c1.entry.js +0 -1
- package/dist/mint-components/p-073c0485.system.js +0 -1
- package/dist/mint-components/p-09ae771c.system.entry.js +0 -1
- package/dist/mint-components/p-12557b30.js +0 -1
- package/dist/mint-components/p-15932a6d.entry.js +0 -1
- package/dist/mint-components/p-18e9e739.system.entry.js +0 -1
- package/dist/mint-components/p-1c0fac18.system.js +0 -1
- package/dist/mint-components/p-2012b3eb.entry.js +0 -1
- package/dist/mint-components/p-21bf87e9.system.js +0 -1
- package/dist/mint-components/p-2673d322.entry.js +0 -1
- package/dist/mint-components/p-32ec3994.entry.js +0 -161
- package/dist/mint-components/p-33bd2ff9.entry.js +0 -1
- package/dist/mint-components/p-3beda015.js +0 -1
- package/dist/mint-components/p-40849586.entry.js +0 -1
- package/dist/mint-components/p-40b91bd2.entry.js +0 -1
- package/dist/mint-components/p-40d9f8f3.entry.js +0 -1
- package/dist/mint-components/p-425ea70b.entry.js +0 -1
- package/dist/mint-components/p-46adc2cf.system.entry.js +0 -1
- package/dist/mint-components/p-4ac07db9.system.js +0 -1
- package/dist/mint-components/p-673d1d37.system.entry.js +0 -1
- package/dist/mint-components/p-6f2ab381.system.entry.js +0 -1
- package/dist/mint-components/p-71775f38.entry.js +0 -1
- package/dist/mint-components/p-746fa1fa.entry.js +0 -1
- package/dist/mint-components/p-77bf2413.entry.js +0 -1
- package/dist/mint-components/p-79339d1d.entry.js +0 -33
- package/dist/mint-components/p-7a24a7a4.system.entry.js +0 -1
- package/dist/mint-components/p-860513de.system.js +0 -53
- package/dist/mint-components/p-8873b8b0.system.entry.js +0 -1
- package/dist/mint-components/p-8b5f9502.system.entry.js +0 -1
- package/dist/mint-components/p-8f900354.system.entry.js +0 -1
- package/dist/mint-components/p-95b5aa14.system.js +0 -1
- package/dist/mint-components/p-a2c12d31.system.entry.js +0 -1
- package/dist/mint-components/p-a716fa21.entry.js +0 -1
- package/dist/mint-components/p-aa926a92.entry.js +0 -86
- package/dist/mint-components/p-adabc223.js +0 -1
- package/dist/mint-components/p-ae9a75d7.entry.js +0 -1
- package/dist/mint-components/p-aeaf1171.js +0 -1
- package/dist/mint-components/p-af8a82a5.entry.js +0 -1
- package/dist/mint-components/p-b094b800.js +0 -1
- package/dist/mint-components/p-c1509151.system.entry.js +0 -1
- package/dist/mint-components/p-c154b16e.system.entry.js +0 -1
- package/dist/mint-components/p-c164d3fe.js +0 -1
- package/dist/mint-components/p-c358211f.js +0 -1
- package/dist/mint-components/p-c824c2e5.system.js +0 -285
- package/dist/mint-components/p-ce5a08d0.entry.js +0 -119
- package/dist/mint-components/p-cfe598c1.js +0 -1
- package/dist/mint-components/p-cfe65695.entry.js +0 -1
- package/dist/mint-components/p-d2a2c424.js +0 -56
- package/dist/mint-components/p-d4c1b8e9.entry.js +0 -1
- package/dist/mint-components/p-d9bf4d77.entry.js +0 -1
- package/dist/mint-components/p-e341556f.entry.js +0 -13
- package/dist/mint-components/p-e551074e.system.js +0 -1
- package/dist/mint-components/p-e9a8a8f3.entry.js +0 -9
- package/dist/mint-components/p-eb3ce654.entry.js +0 -1
- package/dist/mint-components/p-eb4f3c85.entry.js +0 -1
- package/dist/mint-components/p-f0c38e7a.entry.js +0 -1
- package/dist/mint-components/p-f17cd500.entry.js +0 -1
- package/dist/mint-components/p-f39b5f6b.entry.js +0 -1
- package/dist/types/components/sqm-media/Media.stories.d.ts +0 -12
|
@@ -16,18 +16,18 @@ const H = (win.HTMLElement || class {
|
|
|
16
16
|
const plt = {
|
|
17
17
|
$flags$: 0,
|
|
18
18
|
$resourcesUrl$: '',
|
|
19
|
-
jmp:
|
|
20
|
-
raf:
|
|
19
|
+
jmp: h => h(),
|
|
20
|
+
raf: h => requestAnimationFrame(h),
|
|
21
21
|
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
22
22
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
23
23
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
24
24
|
};
|
|
25
|
-
const supportsShadow =
|
|
25
|
+
const supportsShadow = true;
|
|
26
26
|
const promiseResolve = (v) => Promise.resolve(v);
|
|
27
|
-
const supportsConstructibleStylesheets =
|
|
27
|
+
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
28
28
|
try {
|
|
29
29
|
new CSSStyleSheet();
|
|
30
|
-
return typeof new CSSStyleSheet().replace === 'function';
|
|
30
|
+
return typeof (new CSSStyleSheet()).replace === 'function';
|
|
31
31
|
}
|
|
32
32
|
catch (e) { }
|
|
33
33
|
return false;
|
|
@@ -88,7 +88,7 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
91
|
+
else if ( !styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
92
92
|
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -99,8 +99,8 @@ const attachStyles = (hostRef) => {
|
|
|
99
99
|
const elm = hostRef.$hostElement$;
|
|
100
100
|
const flags = cmpMeta.$flags$;
|
|
101
101
|
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
102
|
-
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
103
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
102
|
+
const scopeId = addStyle( elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
103
|
+
if ( flags & 10 /* needsScopedEncapsulation */) {
|
|
104
104
|
// only required when we're NOT using native shadow dom (slot)
|
|
105
105
|
// or this browser doesn't support native shadow dom
|
|
106
106
|
// and this host element was NOT created with SSR
|
|
@@ -113,7 +113,7 @@ const attachStyles = (hostRef) => {
|
|
|
113
113
|
}
|
|
114
114
|
endAttachStyles();
|
|
115
115
|
};
|
|
116
|
-
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
116
|
+
const getScopeId = (cmp, mode) => 'sc-' + ( cmp.$tagName$);
|
|
117
117
|
/**
|
|
118
118
|
* Default style mode id
|
|
119
119
|
*/
|
|
@@ -176,10 +176,10 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
176
176
|
walk(children);
|
|
177
177
|
if (vnodeData) {
|
|
178
178
|
// normalize class / classname attributes
|
|
179
|
-
if (vnodeData.key) {
|
|
179
|
+
if ( vnodeData.key) {
|
|
180
180
|
key = vnodeData.key;
|
|
181
181
|
}
|
|
182
|
-
if (vnodeData.name) {
|
|
182
|
+
if ( vnodeData.name) {
|
|
183
183
|
slotName = vnodeData.name;
|
|
184
184
|
}
|
|
185
185
|
{
|
|
@@ -189,12 +189,12 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
189
189
|
typeof classData !== 'object'
|
|
190
190
|
? classData
|
|
191
191
|
: Object.keys(classData)
|
|
192
|
-
.filter(
|
|
192
|
+
.filter(k => classData[k])
|
|
193
193
|
.join(' ');
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
if (typeof nodeName === 'function') {
|
|
197
|
+
if ( typeof nodeName === 'function') {
|
|
198
198
|
// nodeName is a functional component
|
|
199
199
|
return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
|
|
200
200
|
}
|
|
@@ -274,19 +274,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
274
274
|
if (oldValue !== newValue) {
|
|
275
275
|
let isProp = isMemberInElement(elm, memberName);
|
|
276
276
|
let ln = memberName.toLowerCase();
|
|
277
|
-
if (memberName === 'class') {
|
|
277
|
+
if ( memberName === 'class') {
|
|
278
278
|
const classList = elm.classList;
|
|
279
279
|
const oldClasses = parseClassList(oldValue);
|
|
280
280
|
const newClasses = parseClassList(newValue);
|
|
281
|
-
classList.remove(...oldClasses.filter(
|
|
282
|
-
classList.add(...newClasses.filter(
|
|
281
|
+
classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
|
|
282
|
+
classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
|
|
283
283
|
}
|
|
284
|
-
else if (memberName === 'style') {
|
|
284
|
+
else if ( memberName === 'style') {
|
|
285
285
|
// update style attribute, css properties and values
|
|
286
286
|
{
|
|
287
287
|
for (const prop in oldValue) {
|
|
288
288
|
if (!newValue || newValue[prop] == null) {
|
|
289
|
-
if (prop.includes('-')) {
|
|
289
|
+
if ( prop.includes('-')) {
|
|
290
290
|
elm.style.removeProperty(prop);
|
|
291
291
|
}
|
|
292
292
|
else {
|
|
@@ -297,7 +297,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
297
297
|
}
|
|
298
298
|
for (const prop in newValue) {
|
|
299
299
|
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
300
|
-
if (prop.includes('-')) {
|
|
300
|
+
if ( prop.includes('-')) {
|
|
301
301
|
elm.style.setProperty(prop, newValue[prop]);
|
|
302
302
|
}
|
|
303
303
|
else {
|
|
@@ -306,17 +306,15 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
else if (memberName === 'key')
|
|
309
|
+
else if ( memberName === 'key')
|
|
310
310
|
;
|
|
311
|
-
else if (memberName === 'ref') {
|
|
311
|
+
else if ( memberName === 'ref') {
|
|
312
312
|
// minifier will clean this up
|
|
313
313
|
if (newValue) {
|
|
314
314
|
newValue(elm);
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
else if ((!isProp ) &&
|
|
318
|
-
memberName[0] === 'o' &&
|
|
319
|
-
memberName[1] === 'n') {
|
|
317
|
+
else if ( ( !isProp ) && memberName[0] === 'o' && memberName[1] === 'n') {
|
|
320
318
|
// Event Handlers
|
|
321
319
|
// so if the member name starts with "on" and the 3rd characters is
|
|
322
320
|
// a capital letter, and it's not already a member on the element,
|
|
@@ -391,7 +389,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
391
389
|
}
|
|
392
390
|
if (newValue == null || newValue === false) {
|
|
393
391
|
if (newValue !== false || elm.getAttribute(memberName) === '') {
|
|
394
|
-
if (xlink) {
|
|
392
|
+
if ( xlink) {
|
|
395
393
|
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
396
394
|
}
|
|
397
395
|
else {
|
|
@@ -401,7 +399,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
401
399
|
}
|
|
402
400
|
else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
403
401
|
newValue = newValue === true ? '' : newValue;
|
|
404
|
-
if (xlink) {
|
|
402
|
+
if ( xlink) {
|
|
405
403
|
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
406
404
|
}
|
|
407
405
|
else {
|
|
@@ -417,9 +415,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
417
415
|
// if the element passed in is a shadow root, which is a document fragment
|
|
418
416
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
419
417
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
420
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
421
|
-
? newVnode.$elm$.host
|
|
422
|
-
: newVnode.$elm$;
|
|
418
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
423
419
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
424
420
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
425
421
|
{
|
|
@@ -442,7 +438,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
442
438
|
let elm;
|
|
443
439
|
let childNode;
|
|
444
440
|
let oldVNode;
|
|
445
|
-
if (!useNativeShadowDom) {
|
|
441
|
+
if ( !useNativeShadowDom) {
|
|
446
442
|
// remember for later we need to check to relocate nodes
|
|
447
443
|
checkSlotRelocate = true;
|
|
448
444
|
if (newVNode.$tag$ === 'slot') {
|
|
@@ -457,32 +453,29 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
457
453
|
1 /* isSlotReference */;
|
|
458
454
|
}
|
|
459
455
|
}
|
|
460
|
-
if (newVNode.$text$ !== null) {
|
|
456
|
+
if ( newVNode.$text$ !== null) {
|
|
461
457
|
// create text node
|
|
462
458
|
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
463
459
|
}
|
|
464
|
-
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
460
|
+
else if ( newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
465
461
|
// create a slot reference node
|
|
466
|
-
elm = newVNode.$elm$ =
|
|
467
|
-
doc.createTextNode('');
|
|
462
|
+
elm = newVNode.$elm$ = doc.createTextNode('');
|
|
468
463
|
}
|
|
469
464
|
else {
|
|
470
|
-
if (!isSvgMode) {
|
|
465
|
+
if ( !isSvgMode) {
|
|
471
466
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
472
467
|
}
|
|
473
468
|
// create element
|
|
474
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS,
|
|
475
|
-
? 'slot-fb'
|
|
476
|
-
: newVNode.$tag$)
|
|
469
|
+
elm = newVNode.$elm$ = ( doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$)
|
|
477
470
|
);
|
|
478
|
-
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
471
|
+
if ( isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
479
472
|
isSvgMode = false;
|
|
480
473
|
}
|
|
481
474
|
// add css classes, attrs, props, listeners, etc.
|
|
482
475
|
{
|
|
483
476
|
updateElement(null, newVNode, isSvgMode);
|
|
484
477
|
}
|
|
485
|
-
if (isDef(scopeId) && elm['s-si'] !== scopeId) {
|
|
478
|
+
if ( isDef(scopeId) && elm['s-si'] !== scopeId) {
|
|
486
479
|
// if there is a scopeId and this is the initial render
|
|
487
480
|
// then let's add the scopeId as a css class
|
|
488
481
|
elm.classList.add((elm['s-si'] = scopeId));
|
|
@@ -554,9 +547,9 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
554
547
|
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
555
548
|
};
|
|
556
549
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
557
|
-
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
550
|
+
let containerElm = (( parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
558
551
|
let childNode;
|
|
559
|
-
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
552
|
+
if ( containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
560
553
|
containerElm = containerElm.shadowRoot;
|
|
561
554
|
}
|
|
562
555
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
@@ -564,7 +557,7 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
564
557
|
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
565
558
|
if (childNode) {
|
|
566
559
|
vnodes[startIdx].$elm$ = childNode;
|
|
567
|
-
containerElm.insertBefore(childNode,
|
|
560
|
+
containerElm.insertBefore(childNode, referenceNode(before) );
|
|
568
561
|
}
|
|
569
562
|
}
|
|
570
563
|
}
|
|
@@ -632,7 +625,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
632
625
|
}
|
|
633
626
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
634
627
|
// Vnode moved right
|
|
635
|
-
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
628
|
+
if ( (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
636
629
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
637
630
|
}
|
|
638
631
|
patch(oldStartVnode, newEndVnode);
|
|
@@ -642,7 +635,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
642
635
|
}
|
|
643
636
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
644
637
|
// Vnode moved left
|
|
645
|
-
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
638
|
+
if ( (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
646
639
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
647
640
|
}
|
|
648
641
|
patch(oldEndVnode, newStartVnode);
|
|
@@ -661,7 +654,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
661
654
|
}
|
|
662
655
|
}
|
|
663
656
|
}
|
|
664
|
-
if (idxInOld >= 0) {
|
|
657
|
+
if ( idxInOld >= 0) {
|
|
665
658
|
elmToMove = oldCh[idxInOld];
|
|
666
659
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
667
660
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
|
@@ -688,7 +681,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
688
681
|
if (oldStartIdx > oldEndIdx) {
|
|
689
682
|
addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
|
|
690
683
|
}
|
|
691
|
-
else if (newStartIdx > newEndIdx) {
|
|
684
|
+
else if ( newStartIdx > newEndIdx) {
|
|
692
685
|
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
693
686
|
}
|
|
694
687
|
};
|
|
@@ -696,7 +689,7 @@ const isSameVnode = (vnode1, vnode2) => {
|
|
|
696
689
|
// compare if two vnode to see if they're "technically" the same
|
|
697
690
|
// need to have the same element tag, and same key to be the same
|
|
698
691
|
if (vnode1.$tag$ === vnode2.$tag$) {
|
|
699
|
-
if (vnode1.$tag$ === 'slot') {
|
|
692
|
+
if ( vnode1.$tag$ === 'slot') {
|
|
700
693
|
return vnode1.$name$ === vnode2.$name$;
|
|
701
694
|
}
|
|
702
695
|
{
|
|
@@ -720,7 +713,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
720
713
|
const tag = newVNode.$tag$;
|
|
721
714
|
const text = newVNode.$text$;
|
|
722
715
|
let defaultHolder;
|
|
723
|
-
if (text === null) {
|
|
716
|
+
if ( text === null) {
|
|
724
717
|
{
|
|
725
718
|
// test if we're rendering an svg element, or still rendering nodes inside of one
|
|
726
719
|
// only add this to the when the compiler sees we're using an svg somewhere
|
|
@@ -728,7 +721,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
728
721
|
}
|
|
729
722
|
// element node
|
|
730
723
|
{
|
|
731
|
-
if (tag === 'slot')
|
|
724
|
+
if ( tag === 'slot')
|
|
732
725
|
;
|
|
733
726
|
else {
|
|
734
727
|
// either this is the first render of an element OR it's an update
|
|
@@ -737,32 +730,32 @@ const patch = (oldVNode, newVNode) => {
|
|
|
737
730
|
updateElement(oldVNode, newVNode, isSvgMode);
|
|
738
731
|
}
|
|
739
732
|
}
|
|
740
|
-
if (oldChildren !== null && newChildren !== null) {
|
|
733
|
+
if ( oldChildren !== null && newChildren !== null) {
|
|
741
734
|
// looks like there's child vnodes for both the old and new vnodes
|
|
742
735
|
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
743
736
|
}
|
|
744
737
|
else if (newChildren !== null) {
|
|
745
738
|
// no old child vnodes, but there are new child vnodes to add
|
|
746
|
-
if (oldVNode.$text$ !== null) {
|
|
739
|
+
if ( oldVNode.$text$ !== null) {
|
|
747
740
|
// the old vnode was text, so be sure to clear it out
|
|
748
741
|
elm.textContent = '';
|
|
749
742
|
}
|
|
750
743
|
// add the new vnode children
|
|
751
744
|
addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
|
|
752
745
|
}
|
|
753
|
-
else if (oldChildren !== null) {
|
|
746
|
+
else if ( oldChildren !== null) {
|
|
754
747
|
// no new child vnodes, but there are old child vnodes to remove
|
|
755
748
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
756
749
|
}
|
|
757
|
-
if (isSvgMode && tag === 'svg') {
|
|
750
|
+
if ( isSvgMode && tag === 'svg') {
|
|
758
751
|
isSvgMode = false;
|
|
759
752
|
}
|
|
760
753
|
}
|
|
761
|
-
else if ((defaultHolder = elm['s-cr'])) {
|
|
754
|
+
else if ( (defaultHolder = elm['s-cr'])) {
|
|
762
755
|
// this element has slotted content
|
|
763
756
|
defaultHolder.parentNode.textContent = text;
|
|
764
757
|
}
|
|
765
|
-
else if (oldVNode.$text$ !== text) {
|
|
758
|
+
else if ( oldVNode.$text$ !== text) {
|
|
766
759
|
// update the text content for the text only vnode
|
|
767
760
|
// and also only if the text is different than before
|
|
768
761
|
elm.data = text;
|
|
@@ -840,7 +833,7 @@ const relocateSlotContent = (elm) => {
|
|
|
840
833
|
// that is suppose to always represent the original content location
|
|
841
834
|
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
842
835
|
// it's possible we've already decided to relocate this node
|
|
843
|
-
relocateNodeData = relocateNodes.find(
|
|
836
|
+
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
844
837
|
// made some changes to slots
|
|
845
838
|
// let's make sure we also double check
|
|
846
839
|
// fallbacks are correctly hidden or shown
|
|
@@ -859,9 +852,9 @@ const relocateSlotContent = (elm) => {
|
|
|
859
852
|
});
|
|
860
853
|
}
|
|
861
854
|
if (node['s-sr']) {
|
|
862
|
-
relocateNodes.map(
|
|
855
|
+
relocateNodes.map(relocateNode => {
|
|
863
856
|
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
864
|
-
relocateNodeData = relocateNodes.find(
|
|
857
|
+
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
865
858
|
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
866
859
|
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
867
860
|
}
|
|
@@ -869,7 +862,7 @@ const relocateSlotContent = (elm) => {
|
|
|
869
862
|
});
|
|
870
863
|
}
|
|
871
864
|
}
|
|
872
|
-
else if (!relocateNodes.some(
|
|
865
|
+
else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
|
|
873
866
|
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
874
867
|
// if we never find a home for this element then we'll need to hide it
|
|
875
868
|
relocateNodes.push({
|
|
@@ -914,13 +907,13 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
914
907
|
rootVnode.$tag$ = null;
|
|
915
908
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
916
909
|
hostRef.$vnode$ = rootVnode;
|
|
917
|
-
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
|
910
|
+
rootVnode.$elm$ = oldVNode.$elm$ = ( hostElm.shadowRoot || hostElm );
|
|
918
911
|
{
|
|
919
912
|
scopeId = hostElm['s-sc'];
|
|
920
913
|
}
|
|
921
914
|
{
|
|
922
915
|
contentRef = hostElm['s-cr'];
|
|
923
|
-
useNativeShadowDom =
|
|
916
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
924
917
|
// always reset
|
|
925
918
|
checkSlotFallbackVisibility = false;
|
|
926
919
|
}
|
|
@@ -945,8 +938,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
945
938
|
if (!nodeToRelocate['s-ol']) {
|
|
946
939
|
// add a reference node marking this node's original location
|
|
947
940
|
// keep a reference to this node for later lookups
|
|
948
|
-
orgLocationNode =
|
|
949
|
-
doc.createTextNode('');
|
|
941
|
+
orgLocationNode = doc.createTextNode('');
|
|
950
942
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
951
943
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
952
944
|
}
|
|
@@ -970,8 +962,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
970
962
|
}
|
|
971
963
|
}
|
|
972
964
|
}
|
|
973
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
974
|
-
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
965
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
975
966
|
// we've checked that it's worth while to relocate
|
|
976
967
|
// since that the node to relocate
|
|
977
968
|
// has a different next sibling or parent relocated
|
|
@@ -1003,29 +994,22 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1003
994
|
relocateNodes.length = 0;
|
|
1004
995
|
}
|
|
1005
996
|
};
|
|
1006
|
-
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
1007
|
-
/**
|
|
1008
|
-
* Helper function to create & dispatch a custom Event on a provided target
|
|
1009
|
-
* @param elm the target of the Event
|
|
1010
|
-
* @param name the name to give the custom Event
|
|
1011
|
-
* @param opts options for configuring a custom Event
|
|
1012
|
-
* @returns the custom Event
|
|
1013
|
-
*/
|
|
997
|
+
const getElement = (ref) => ( getHostRef(ref).$hostElement$ );
|
|
1014
998
|
const emitEvent = (elm, name, opts) => {
|
|
1015
999
|
const ev = plt.ce(name, opts);
|
|
1016
1000
|
elm.dispatchEvent(ev);
|
|
1017
1001
|
return ev;
|
|
1018
1002
|
};
|
|
1019
1003
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1020
|
-
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1021
|
-
ancestorComponent['s-p'].push(new Promise(
|
|
1004
|
+
if ( ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1005
|
+
ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
|
|
1022
1006
|
}
|
|
1023
1007
|
};
|
|
1024
1008
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1025
1009
|
{
|
|
1026
1010
|
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1027
1011
|
}
|
|
1028
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1012
|
+
if ( hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1029
1013
|
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1030
1014
|
return;
|
|
1031
1015
|
}
|
|
@@ -1034,11 +1018,11 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1034
1018
|
// has already fired off its lifecycle update then
|
|
1035
1019
|
// fire off the initial update
|
|
1036
1020
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1037
|
-
return
|
|
1021
|
+
return writeTask(dispatch) ;
|
|
1038
1022
|
};
|
|
1039
1023
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1040
1024
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
1041
|
-
const instance =
|
|
1025
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1042
1026
|
let promise;
|
|
1043
1027
|
if (isInitialLoad) {
|
|
1044
1028
|
{
|
|
@@ -1053,7 +1037,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1053
1037
|
const elm = hostRef.$hostElement$;
|
|
1054
1038
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
1055
1039
|
const rc = elm['s-rc'];
|
|
1056
|
-
if (isInitialLoad) {
|
|
1040
|
+
if ( isInitialLoad) {
|
|
1057
1041
|
// DOM WRITE!
|
|
1058
1042
|
attachStyles(hostRef);
|
|
1059
1043
|
}
|
|
@@ -1061,11 +1045,11 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1061
1045
|
{
|
|
1062
1046
|
callRender(hostRef, instance);
|
|
1063
1047
|
}
|
|
1064
|
-
if (rc) {
|
|
1048
|
+
if ( rc) {
|
|
1065
1049
|
// ok, so turns out there are some child host elements
|
|
1066
1050
|
// waiting on this parent element to load
|
|
1067
1051
|
// let's fire off all update callbacks waiting
|
|
1068
|
-
rc.map(
|
|
1052
|
+
rc.map(cb => cb());
|
|
1069
1053
|
elm['s-rc'] = undefined;
|
|
1070
1054
|
}
|
|
1071
1055
|
endRender();
|
|
@@ -1086,7 +1070,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1086
1070
|
const callRender = (hostRef, instance, elm) => {
|
|
1087
1071
|
try {
|
|
1088
1072
|
renderingRef = instance;
|
|
1089
|
-
instance =
|
|
1073
|
+
instance = instance.render() ;
|
|
1090
1074
|
{
|
|
1091
1075
|
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1092
1076
|
}
|
|
@@ -1156,8 +1140,7 @@ const forceUpdate = (ref) => {
|
|
|
1156
1140
|
{
|
|
1157
1141
|
const hostRef = getHostRef(ref);
|
|
1158
1142
|
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1159
|
-
if (isConnected &&
|
|
1160
|
-
(hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1143
|
+
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1161
1144
|
scheduleUpdate(hostRef, false);
|
|
1162
1145
|
}
|
|
1163
1146
|
// Returns "true" when the forced update was successfully scheduled
|
|
@@ -1186,21 +1169,20 @@ const safeCall = (instance, method, arg) => {
|
|
|
1186
1169
|
const then = (promise, thenFn) => {
|
|
1187
1170
|
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1188
1171
|
};
|
|
1189
|
-
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1190
|
-
;
|
|
1172
|
+
const addHydratedFlag = (elm) => ( elm.classList.add('hydrated') );
|
|
1191
1173
|
const parsePropertyValue = (propValue, propType) => {
|
|
1192
1174
|
// ensure this value is of the correct prop type
|
|
1193
1175
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1194
|
-
if (propType & 4 /* Boolean */) {
|
|
1176
|
+
if ( propType & 4 /* Boolean */) {
|
|
1195
1177
|
// per the HTML spec, any string value means it is a boolean true value
|
|
1196
1178
|
// but we'll cheat here and say that the string "false" is the boolean false
|
|
1197
1179
|
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
1198
1180
|
}
|
|
1199
|
-
if (propType & 2 /* Number */) {
|
|
1181
|
+
if ( propType & 2 /* Number */) {
|
|
1200
1182
|
// force it to be a number
|
|
1201
1183
|
return parseFloat(propValue);
|
|
1202
1184
|
}
|
|
1203
|
-
if (propType & 1 /* String */) {
|
|
1185
|
+
if ( propType & 1 /* String */) {
|
|
1204
1186
|
// could have been passed as a number or boolean
|
|
1205
1187
|
// but we still want it as a string
|
|
1206
1188
|
return String(propValue);
|
|
@@ -1218,14 +1200,14 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1218
1200
|
const hostRef = getHostRef(ref);
|
|
1219
1201
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1220
1202
|
const flags = hostRef.$flags$;
|
|
1221
|
-
const instance =
|
|
1203
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1222
1204
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1223
|
-
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
|
|
1205
|
+
if (( !(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
|
|
1224
1206
|
// gadzooks! the property's value has changed!!
|
|
1225
1207
|
// set our new value!
|
|
1226
1208
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1227
|
-
if (instance) {
|
|
1228
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1209
|
+
if ( instance) {
|
|
1210
|
+
if ( (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1229
1211
|
// looks like this value actually changed, so we've got work to do!
|
|
1230
1212
|
// but only if we've already rendered, otherwise just chill out
|
|
1231
1213
|
// queue that we need to do an update, but don't worry about queuing
|
|
@@ -1236,13 +1218,12 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1236
1218
|
}
|
|
1237
1219
|
};
|
|
1238
1220
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1239
|
-
if (cmpMeta.$members$) {
|
|
1221
|
+
if ( cmpMeta.$members$) {
|
|
1240
1222
|
// It's better to have a const than two Object.entries()
|
|
1241
1223
|
const members = Object.entries(cmpMeta.$members$);
|
|
1242
1224
|
const prototype = Cstr.prototype;
|
|
1243
1225
|
members.map(([memberName, [memberFlags]]) => {
|
|
1244
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1245
|
-
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1226
|
+
if ( (memberFlags & 31 /* Prop */ || (( flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1246
1227
|
// proxyComponent - prop
|
|
1247
1228
|
Object.defineProperty(prototype, memberName, {
|
|
1248
1229
|
get() {
|
|
@@ -1257,8 +1238,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1257
1238
|
enumerable: true,
|
|
1258
1239
|
});
|
|
1259
1240
|
}
|
|
1260
|
-
else if (flags & 1 /* isElementConstructor */ &&
|
|
1261
|
-
memberFlags & 64 /* Method */) {
|
|
1241
|
+
else if ( flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1262
1242
|
// proxyComponent - method
|
|
1263
1243
|
Object.defineProperty(prototype, memberName, {
|
|
1264
1244
|
value(...args) {
|
|
@@ -1268,48 +1248,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1268
1248
|
});
|
|
1269
1249
|
}
|
|
1270
1250
|
});
|
|
1271
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
1251
|
+
if ( ( flags & 1 /* isElementConstructor */)) {
|
|
1272
1252
|
const attrNameToPropName = new Map();
|
|
1273
1253
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1274
1254
|
plt.jmp(() => {
|
|
1275
1255
|
const propName = attrNameToPropName.get(attrName);
|
|
1276
|
-
// In a webcomponent lifecyle the attributeChangedCallback runs prior to connectedCallback
|
|
1277
|
-
// in the case where an attribute was set inline.
|
|
1278
|
-
// ```html
|
|
1279
|
-
// <my-component some-attribute="some-value"></my-component>
|
|
1280
|
-
// ```
|
|
1281
|
-
//
|
|
1282
|
-
// There is an edge case where a developer sets the attribute inline on a custom element and then programatically
|
|
1283
|
-
// changes it before it has been upgraded as shown below:
|
|
1284
|
-
//
|
|
1285
|
-
// ```html
|
|
1286
|
-
// <!-- this component has _not_ been upgraded yet -->
|
|
1287
|
-
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1288
|
-
// <script>
|
|
1289
|
-
// // grab non-upgraded component
|
|
1290
|
-
// el = document.querySelector("#test");
|
|
1291
|
-
// el.someAttribute = "another-value";
|
|
1292
|
-
// // upgrade component
|
|
1293
|
-
// cutsomElements.define('my-component', MyComponent);
|
|
1294
|
-
// </script>
|
|
1295
|
-
// ```
|
|
1296
|
-
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1297
|
-
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1298
|
-
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1299
|
-
// the connectedCallback attempts to unshadow it will use "some-value" as the intial value rather than "another-value"
|
|
1300
|
-
//
|
|
1301
|
-
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1302
|
-
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1303
|
-
//
|
|
1304
|
-
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1305
|
-
//
|
|
1306
|
-
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1307
|
-
// properties here given that this goes against best practices outlined here
|
|
1308
|
-
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1309
|
-
if (this.hasOwnProperty(propName)) {
|
|
1310
|
-
newValue = this[propName];
|
|
1311
|
-
delete this[propName];
|
|
1312
|
-
}
|
|
1313
1256
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1314
1257
|
});
|
|
1315
1258
|
};
|
|
@@ -1328,7 +1271,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1328
1271
|
};
|
|
1329
1272
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1330
1273
|
// initializeComponent
|
|
1331
|
-
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1274
|
+
if ( (hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1332
1275
|
{
|
|
1333
1276
|
// we haven't initialized this element yet
|
|
1334
1277
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
@@ -1342,7 +1285,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1342
1285
|
Cstr = await Cstr;
|
|
1343
1286
|
endLoad();
|
|
1344
1287
|
}
|
|
1345
|
-
if (!Cstr.isProxied) {
|
|
1288
|
+
if ( !Cstr.isProxied) {
|
|
1346
1289
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1347
1290
|
Cstr.isProxied = true;
|
|
1348
1291
|
}
|
|
@@ -1368,7 +1311,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1368
1311
|
}
|
|
1369
1312
|
endNewInstance();
|
|
1370
1313
|
}
|
|
1371
|
-
if (Cstr.style) {
|
|
1314
|
+
if ( Cstr.style) {
|
|
1372
1315
|
// this component has styles but we haven't registered them yet
|
|
1373
1316
|
let style = Cstr.style;
|
|
1374
1317
|
const scopeId = getScopeId(cmpMeta);
|
|
@@ -1382,7 +1325,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1382
1325
|
// we've successfully created a lazy instance
|
|
1383
1326
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1384
1327
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1385
|
-
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1328
|
+
if ( ancestorComponent && ancestorComponent['s-rc']) {
|
|
1386
1329
|
// this is the intial load and this component it has an ancestor component
|
|
1387
1330
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1388
1331
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
@@ -1408,7 +1351,7 @@ const connectedCallback = (elm) => {
|
|
|
1408
1351
|
// if the slot polyfill is required we'll need to put some nodes
|
|
1409
1352
|
// in here to act as original content anchors as we move nodes around
|
|
1410
1353
|
// host element has been connected to the DOM
|
|
1411
|
-
if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
|
|
1354
|
+
if ( ( cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
|
|
1412
1355
|
setContentReference(elm);
|
|
1413
1356
|
}
|
|
1414
1357
|
}
|
|
@@ -1419,7 +1362,8 @@ const connectedCallback = (elm) => {
|
|
|
1419
1362
|
while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
|
|
1420
1363
|
// climb up the ancestors looking for the first
|
|
1421
1364
|
// component that hasn't finished its lifecycle update yet
|
|
1422
|
-
if (
|
|
1365
|
+
if (
|
|
1366
|
+
ancestorComponent['s-p']) {
|
|
1423
1367
|
// we found this components first ancestor component
|
|
1424
1368
|
// keep a reference to this component's ancestor component
|
|
1425
1369
|
attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
|
|
@@ -1429,7 +1373,7 @@ const connectedCallback = (elm) => {
|
|
|
1429
1373
|
}
|
|
1430
1374
|
// Lazy properties
|
|
1431
1375
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1432
|
-
if (cmpMeta.$members$) {
|
|
1376
|
+
if ( cmpMeta.$members$) {
|
|
1433
1377
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1434
1378
|
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1435
1379
|
const value = elm[memberName];
|
|
@@ -1452,14 +1396,14 @@ const setContentReference = (elm) => {
|
|
|
1452
1396
|
// let's pick out the inner content for slot projection
|
|
1453
1397
|
// create a node to represent where the original
|
|
1454
1398
|
// content was first placed, which is useful later on
|
|
1455
|
-
const contentRefElm = (elm['s-cr'] = doc.createComment(''));
|
|
1399
|
+
const contentRefElm = (elm['s-cr'] = doc.createComment( ''));
|
|
1456
1400
|
contentRefElm['s-cn'] = true;
|
|
1457
1401
|
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1458
1402
|
};
|
|
1459
1403
|
const disconnectedCallback = (elm) => {
|
|
1460
1404
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1461
1405
|
const hostRef = getHostRef(elm);
|
|
1462
|
-
const instance =
|
|
1406
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1463
1407
|
{
|
|
1464
1408
|
safeCall(instance, 'disconnectedCallback');
|
|
1465
1409
|
}
|
|
@@ -1469,31 +1413,17 @@ const patchCloneNode = (HostElementPrototype) => {
|
|
|
1469
1413
|
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
1470
1414
|
HostElementPrototype.cloneNode = function (deep) {
|
|
1471
1415
|
const srcNode = this;
|
|
1472
|
-
const isShadowDom =
|
|
1416
|
+
const isShadowDom = srcNode.shadowRoot && supportsShadow ;
|
|
1473
1417
|
const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
|
|
1474
|
-
if (!isShadowDom && deep) {
|
|
1418
|
+
if ( !isShadowDom && deep) {
|
|
1475
1419
|
let i = 0;
|
|
1476
1420
|
let slotted, nonStencilNode;
|
|
1477
|
-
let stencilPrivates = [
|
|
1478
|
-
's-id',
|
|
1479
|
-
's-cr',
|
|
1480
|
-
's-lr',
|
|
1481
|
-
's-rc',
|
|
1482
|
-
's-sc',
|
|
1483
|
-
's-p',
|
|
1484
|
-
's-cn',
|
|
1485
|
-
's-sr',
|
|
1486
|
-
's-sn',
|
|
1487
|
-
's-hn',
|
|
1488
|
-
's-ol',
|
|
1489
|
-
's-nr',
|
|
1490
|
-
's-si',
|
|
1491
|
-
];
|
|
1421
|
+
let stencilPrivates = ['s-id', 's-cr', 's-lr', 's-rc', 's-sc', 's-p', 's-cn', 's-sr', 's-sn', 's-hn', 's-ol', 's-nr', 's-si'];
|
|
1492
1422
|
for (; i < srcNode.childNodes.length; i++) {
|
|
1493
1423
|
slotted = srcNode.childNodes[i]['s-nr'];
|
|
1494
1424
|
nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i][privateField]);
|
|
1495
1425
|
if (slotted) {
|
|
1496
|
-
if (clonedNode.__appendChild) {
|
|
1426
|
+
if ( clonedNode.__appendChild) {
|
|
1497
1427
|
clonedNode.__appendChild(slotted.cloneNode(true));
|
|
1498
1428
|
}
|
|
1499
1429
|
else {
|
|
@@ -1542,8 +1472,7 @@ const patchChildSlotNodes = (elm, cmpMeta) => {
|
|
|
1542
1472
|
Object.defineProperty(elm, 'childNodes', {
|
|
1543
1473
|
get() {
|
|
1544
1474
|
const childNodes = childNodesFn.call(this);
|
|
1545
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 &&
|
|
1546
|
-
getHostRef(this).$flags$ & 2 /* hasRendered */) {
|
|
1475
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
|
|
1547
1476
|
const result = new FakeNodeList();
|
|
1548
1477
|
for (let i = 0; i < childNodes.length; i++) {
|
|
1549
1478
|
const slot = childNodes[i]['s-nr'];
|
|
@@ -1559,12 +1488,6 @@ const patchChildSlotNodes = (elm, cmpMeta) => {
|
|
|
1559
1488
|
}
|
|
1560
1489
|
};
|
|
1561
1490
|
const getSlotName = (node) => node['s-sn'] || (node.nodeType === 1 && node.getAttribute('slot')) || '';
|
|
1562
|
-
/**
|
|
1563
|
-
* Recursively searches a series of child nodes for a slot with the provided name.
|
|
1564
|
-
* @param childNodes the nodes to search for a slot with a specific name.
|
|
1565
|
-
* @param slotName the name of the slot to match on.
|
|
1566
|
-
* @returns a reference to the slot node that matches the provided name, `null` otherwise
|
|
1567
|
-
*/
|
|
1568
1491
|
const getHostSlotNode = (childNodes, slotName) => {
|
|
1569
1492
|
let i = 0;
|
|
1570
1493
|
let childNode;
|
|
@@ -1600,7 +1523,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1600
1523
|
let isBootstrapping = true;
|
|
1601
1524
|
Object.assign(plt, options);
|
|
1602
1525
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1603
|
-
lazyBundles.map(
|
|
1526
|
+
lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => {
|
|
1604
1527
|
const cmpMeta = {
|
|
1605
1528
|
$flags$: compactMeta[0],
|
|
1606
1529
|
$tagName$: compactMeta[1],
|
|
@@ -1610,7 +1533,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1610
1533
|
{
|
|
1611
1534
|
cmpMeta.$members$ = compactMeta[2];
|
|
1612
1535
|
}
|
|
1613
|
-
const tagName =
|
|
1536
|
+
const tagName = cmpMeta.$tagName$;
|
|
1614
1537
|
const HostElement = class extends HTMLElement {
|
|
1615
1538
|
// StencilLazyHost
|
|
1616
1539
|
constructor(self) {
|
|
@@ -1618,7 +1541,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1618
1541
|
super(self);
|
|
1619
1542
|
self = this;
|
|
1620
1543
|
registerHost(self, cmpMeta);
|
|
1621
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1544
|
+
if ( cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1622
1545
|
// this component is using shadow dom
|
|
1623
1546
|
// and this browser supports shadow dom
|
|
1624
1547
|
// add the read-only property "shadowRoot" to the host element
|
|
@@ -1673,7 +1596,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1673
1596
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1674
1597
|
isBootstrapping = false;
|
|
1675
1598
|
if (deferredConnectedCallbacks.length) {
|
|
1676
|
-
deferredConnectedCallbacks.map(
|
|
1599
|
+
deferredConnectedCallbacks.map(host => host.connectedCallback());
|
|
1677
1600
|
}
|
|
1678
1601
|
else {
|
|
1679
1602
|
{
|
|
@@ -1698,23 +1621,23 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1698
1621
|
$instanceValues$: new Map(),
|
|
1699
1622
|
};
|
|
1700
1623
|
{
|
|
1701
|
-
hostRef.$onInstancePromise$ = new Promise(
|
|
1624
|
+
hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
|
|
1702
1625
|
}
|
|
1703
1626
|
{
|
|
1704
|
-
hostRef.$onReadyPromise$ = new Promise(
|
|
1627
|
+
hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
|
|
1705
1628
|
elm['s-p'] = [];
|
|
1706
1629
|
elm['s-rc'] = [];
|
|
1707
1630
|
}
|
|
1708
1631
|
return hostRefs.set(elm, hostRef);
|
|
1709
1632
|
};
|
|
1710
1633
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1711
|
-
const consoleError = (e, el) => (0, console.error)(e, el);
|
|
1634
|
+
const consoleError = (e, el) => ( 0, console.error)(e, el);
|
|
1712
1635
|
const cmpModules = /*@__PURE__*/ new Map();
|
|
1713
1636
|
const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
1714
1637
|
// loadModuleImport
|
|
1715
1638
|
const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
|
|
1716
1639
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1717
|
-
const module =
|
|
1640
|
+
const module = cmpModules.get(bundleId) ;
|
|
1718
1641
|
if (module) {
|
|
1719
1642
|
return module[exportName];
|
|
1720
1643
|
}
|
|
@@ -1722,7 +1645,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1722
1645
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1723
1646
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1724
1647
|
/* webpackMode: "lazy" */
|
|
1725
|
-
`./${bundleId}.entry.js${''}`).then(
|
|
1648
|
+
`./${bundleId}.entry.js${ ''}`).then(importedModule => {
|
|
1726
1649
|
{
|
|
1727
1650
|
cmpModules.set(bundleId, importedModule);
|
|
1728
1651
|
}
|