@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
|
@@ -38,18 +38,18 @@ const H = (win.HTMLElement || class {
|
|
|
38
38
|
const plt = {
|
|
39
39
|
$flags$: 0,
|
|
40
40
|
$resourcesUrl$: '',
|
|
41
|
-
jmp:
|
|
42
|
-
raf:
|
|
41
|
+
jmp: h => h(),
|
|
42
|
+
raf: h => requestAnimationFrame(h),
|
|
43
43
|
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
44
44
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
45
45
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
46
46
|
};
|
|
47
|
-
const supportsShadow =
|
|
47
|
+
const supportsShadow = true;
|
|
48
48
|
const promiseResolve = (v) => Promise.resolve(v);
|
|
49
|
-
const supportsConstructibleStylesheets =
|
|
49
|
+
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
50
50
|
try {
|
|
51
51
|
new CSSStyleSheet();
|
|
52
|
-
return typeof new CSSStyleSheet().replace === 'function';
|
|
52
|
+
return typeof (new CSSStyleSheet()).replace === 'function';
|
|
53
53
|
}
|
|
54
54
|
catch (e) { }
|
|
55
55
|
return false;
|
|
@@ -110,7 +110,7 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
113
|
+
else if ( !styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
114
114
|
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -121,8 +121,8 @@ const attachStyles = (hostRef) => {
|
|
|
121
121
|
const elm = hostRef.$hostElement$;
|
|
122
122
|
const flags = cmpMeta.$flags$;
|
|
123
123
|
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
124
|
-
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
125
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
124
|
+
const scopeId = addStyle( elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
125
|
+
if ( flags & 10 /* needsScopedEncapsulation */) {
|
|
126
126
|
// only required when we're NOT using native shadow dom (slot)
|
|
127
127
|
// or this browser doesn't support native shadow dom
|
|
128
128
|
// and this host element was NOT created with SSR
|
|
@@ -135,7 +135,7 @@ const attachStyles = (hostRef) => {
|
|
|
135
135
|
}
|
|
136
136
|
endAttachStyles();
|
|
137
137
|
};
|
|
138
|
-
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
138
|
+
const getScopeId = (cmp, mode) => 'sc-' + ( cmp.$tagName$);
|
|
139
139
|
/**
|
|
140
140
|
* Default style mode id
|
|
141
141
|
*/
|
|
@@ -198,10 +198,10 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
198
198
|
walk(children);
|
|
199
199
|
if (vnodeData) {
|
|
200
200
|
// normalize class / classname attributes
|
|
201
|
-
if (vnodeData.key) {
|
|
201
|
+
if ( vnodeData.key) {
|
|
202
202
|
key = vnodeData.key;
|
|
203
203
|
}
|
|
204
|
-
if (vnodeData.name) {
|
|
204
|
+
if ( vnodeData.name) {
|
|
205
205
|
slotName = vnodeData.name;
|
|
206
206
|
}
|
|
207
207
|
{
|
|
@@ -211,12 +211,12 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
211
211
|
typeof classData !== 'object'
|
|
212
212
|
? classData
|
|
213
213
|
: Object.keys(classData)
|
|
214
|
-
.filter(
|
|
214
|
+
.filter(k => classData[k])
|
|
215
215
|
.join(' ');
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
if (typeof nodeName === 'function') {
|
|
219
|
+
if ( typeof nodeName === 'function') {
|
|
220
220
|
// nodeName is a functional component
|
|
221
221
|
return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
|
|
222
222
|
}
|
|
@@ -296,19 +296,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
296
296
|
if (oldValue !== newValue) {
|
|
297
297
|
let isProp = isMemberInElement(elm, memberName);
|
|
298
298
|
let ln = memberName.toLowerCase();
|
|
299
|
-
if (memberName === 'class') {
|
|
299
|
+
if ( memberName === 'class') {
|
|
300
300
|
const classList = elm.classList;
|
|
301
301
|
const oldClasses = parseClassList(oldValue);
|
|
302
302
|
const newClasses = parseClassList(newValue);
|
|
303
|
-
classList.remove(...oldClasses.filter(
|
|
304
|
-
classList.add(...newClasses.filter(
|
|
303
|
+
classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
|
|
304
|
+
classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
|
|
305
305
|
}
|
|
306
|
-
else if (memberName === 'style') {
|
|
306
|
+
else if ( memberName === 'style') {
|
|
307
307
|
// update style attribute, css properties and values
|
|
308
308
|
{
|
|
309
309
|
for (const prop in oldValue) {
|
|
310
310
|
if (!newValue || newValue[prop] == null) {
|
|
311
|
-
if (prop.includes('-')) {
|
|
311
|
+
if ( prop.includes('-')) {
|
|
312
312
|
elm.style.removeProperty(prop);
|
|
313
313
|
}
|
|
314
314
|
else {
|
|
@@ -319,7 +319,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
319
319
|
}
|
|
320
320
|
for (const prop in newValue) {
|
|
321
321
|
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
322
|
-
if (prop.includes('-')) {
|
|
322
|
+
if ( prop.includes('-')) {
|
|
323
323
|
elm.style.setProperty(prop, newValue[prop]);
|
|
324
324
|
}
|
|
325
325
|
else {
|
|
@@ -328,17 +328,15 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
else if (memberName === 'key')
|
|
331
|
+
else if ( memberName === 'key')
|
|
332
332
|
;
|
|
333
|
-
else if (memberName === 'ref') {
|
|
333
|
+
else if ( memberName === 'ref') {
|
|
334
334
|
// minifier will clean this up
|
|
335
335
|
if (newValue) {
|
|
336
336
|
newValue(elm);
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
else if ((!isProp ) &&
|
|
340
|
-
memberName[0] === 'o' &&
|
|
341
|
-
memberName[1] === 'n') {
|
|
339
|
+
else if ( ( !isProp ) && memberName[0] === 'o' && memberName[1] === 'n') {
|
|
342
340
|
// Event Handlers
|
|
343
341
|
// so if the member name starts with "on" and the 3rd characters is
|
|
344
342
|
// a capital letter, and it's not already a member on the element,
|
|
@@ -413,7 +411,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
413
411
|
}
|
|
414
412
|
if (newValue == null || newValue === false) {
|
|
415
413
|
if (newValue !== false || elm.getAttribute(memberName) === '') {
|
|
416
|
-
if (xlink) {
|
|
414
|
+
if ( xlink) {
|
|
417
415
|
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
418
416
|
}
|
|
419
417
|
else {
|
|
@@ -423,7 +421,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
423
421
|
}
|
|
424
422
|
else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
425
423
|
newValue = newValue === true ? '' : newValue;
|
|
426
|
-
if (xlink) {
|
|
424
|
+
if ( xlink) {
|
|
427
425
|
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
428
426
|
}
|
|
429
427
|
else {
|
|
@@ -439,9 +437,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
439
437
|
// if the element passed in is a shadow root, which is a document fragment
|
|
440
438
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
441
439
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
442
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
443
|
-
? newVnode.$elm$.host
|
|
444
|
-
: newVnode.$elm$;
|
|
440
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
445
441
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
446
442
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
447
443
|
{
|
|
@@ -464,7 +460,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
464
460
|
let elm;
|
|
465
461
|
let childNode;
|
|
466
462
|
let oldVNode;
|
|
467
|
-
if (!useNativeShadowDom) {
|
|
463
|
+
if ( !useNativeShadowDom) {
|
|
468
464
|
// remember for later we need to check to relocate nodes
|
|
469
465
|
checkSlotRelocate = true;
|
|
470
466
|
if (newVNode.$tag$ === 'slot') {
|
|
@@ -479,32 +475,29 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
479
475
|
1 /* isSlotReference */;
|
|
480
476
|
}
|
|
481
477
|
}
|
|
482
|
-
if (newVNode.$text$ !== null) {
|
|
478
|
+
if ( newVNode.$text$ !== null) {
|
|
483
479
|
// create text node
|
|
484
480
|
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
485
481
|
}
|
|
486
|
-
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
482
|
+
else if ( newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
487
483
|
// create a slot reference node
|
|
488
|
-
elm = newVNode.$elm$ =
|
|
489
|
-
doc.createTextNode('');
|
|
484
|
+
elm = newVNode.$elm$ = doc.createTextNode('');
|
|
490
485
|
}
|
|
491
486
|
else {
|
|
492
|
-
if (!isSvgMode) {
|
|
487
|
+
if ( !isSvgMode) {
|
|
493
488
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
494
489
|
}
|
|
495
490
|
// create element
|
|
496
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS,
|
|
497
|
-
? 'slot-fb'
|
|
498
|
-
: newVNode.$tag$)
|
|
491
|
+
elm = newVNode.$elm$ = ( doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$)
|
|
499
492
|
);
|
|
500
|
-
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
493
|
+
if ( isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
501
494
|
isSvgMode = false;
|
|
502
495
|
}
|
|
503
496
|
// add css classes, attrs, props, listeners, etc.
|
|
504
497
|
{
|
|
505
498
|
updateElement(null, newVNode, isSvgMode);
|
|
506
499
|
}
|
|
507
|
-
if (isDef(scopeId) && elm['s-si'] !== scopeId) {
|
|
500
|
+
if ( isDef(scopeId) && elm['s-si'] !== scopeId) {
|
|
508
501
|
// if there is a scopeId and this is the initial render
|
|
509
502
|
// then let's add the scopeId as a css class
|
|
510
503
|
elm.classList.add((elm['s-si'] = scopeId));
|
|
@@ -576,9 +569,9 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
576
569
|
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
577
570
|
};
|
|
578
571
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
579
|
-
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
572
|
+
let containerElm = (( parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
580
573
|
let childNode;
|
|
581
|
-
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
574
|
+
if ( containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
582
575
|
containerElm = containerElm.shadowRoot;
|
|
583
576
|
}
|
|
584
577
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
@@ -586,7 +579,7 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
586
579
|
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
587
580
|
if (childNode) {
|
|
588
581
|
vnodes[startIdx].$elm$ = childNode;
|
|
589
|
-
containerElm.insertBefore(childNode,
|
|
582
|
+
containerElm.insertBefore(childNode, referenceNode(before) );
|
|
590
583
|
}
|
|
591
584
|
}
|
|
592
585
|
}
|
|
@@ -654,7 +647,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
654
647
|
}
|
|
655
648
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
656
649
|
// Vnode moved right
|
|
657
|
-
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
650
|
+
if ( (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
658
651
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
659
652
|
}
|
|
660
653
|
patch(oldStartVnode, newEndVnode);
|
|
@@ -664,7 +657,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
664
657
|
}
|
|
665
658
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
666
659
|
// Vnode moved left
|
|
667
|
-
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
660
|
+
if ( (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
668
661
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
669
662
|
}
|
|
670
663
|
patch(oldEndVnode, newStartVnode);
|
|
@@ -683,7 +676,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
683
676
|
}
|
|
684
677
|
}
|
|
685
678
|
}
|
|
686
|
-
if (idxInOld >= 0) {
|
|
679
|
+
if ( idxInOld >= 0) {
|
|
687
680
|
elmToMove = oldCh[idxInOld];
|
|
688
681
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
689
682
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
|
@@ -710,7 +703,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
710
703
|
if (oldStartIdx > oldEndIdx) {
|
|
711
704
|
addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
|
|
712
705
|
}
|
|
713
|
-
else if (newStartIdx > newEndIdx) {
|
|
706
|
+
else if ( newStartIdx > newEndIdx) {
|
|
714
707
|
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
715
708
|
}
|
|
716
709
|
};
|
|
@@ -718,7 +711,7 @@ const isSameVnode = (vnode1, vnode2) => {
|
|
|
718
711
|
// compare if two vnode to see if they're "technically" the same
|
|
719
712
|
// need to have the same element tag, and same key to be the same
|
|
720
713
|
if (vnode1.$tag$ === vnode2.$tag$) {
|
|
721
|
-
if (vnode1.$tag$ === 'slot') {
|
|
714
|
+
if ( vnode1.$tag$ === 'slot') {
|
|
722
715
|
return vnode1.$name$ === vnode2.$name$;
|
|
723
716
|
}
|
|
724
717
|
{
|
|
@@ -742,7 +735,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
742
735
|
const tag = newVNode.$tag$;
|
|
743
736
|
const text = newVNode.$text$;
|
|
744
737
|
let defaultHolder;
|
|
745
|
-
if (text === null) {
|
|
738
|
+
if ( text === null) {
|
|
746
739
|
{
|
|
747
740
|
// test if we're rendering an svg element, or still rendering nodes inside of one
|
|
748
741
|
// only add this to the when the compiler sees we're using an svg somewhere
|
|
@@ -750,7 +743,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
750
743
|
}
|
|
751
744
|
// element node
|
|
752
745
|
{
|
|
753
|
-
if (tag === 'slot')
|
|
746
|
+
if ( tag === 'slot')
|
|
754
747
|
;
|
|
755
748
|
else {
|
|
756
749
|
// either this is the first render of an element OR it's an update
|
|
@@ -759,32 +752,32 @@ const patch = (oldVNode, newVNode) => {
|
|
|
759
752
|
updateElement(oldVNode, newVNode, isSvgMode);
|
|
760
753
|
}
|
|
761
754
|
}
|
|
762
|
-
if (oldChildren !== null && newChildren !== null) {
|
|
755
|
+
if ( oldChildren !== null && newChildren !== null) {
|
|
763
756
|
// looks like there's child vnodes for both the old and new vnodes
|
|
764
757
|
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
765
758
|
}
|
|
766
759
|
else if (newChildren !== null) {
|
|
767
760
|
// no old child vnodes, but there are new child vnodes to add
|
|
768
|
-
if (oldVNode.$text$ !== null) {
|
|
761
|
+
if ( oldVNode.$text$ !== null) {
|
|
769
762
|
// the old vnode was text, so be sure to clear it out
|
|
770
763
|
elm.textContent = '';
|
|
771
764
|
}
|
|
772
765
|
// add the new vnode children
|
|
773
766
|
addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
|
|
774
767
|
}
|
|
775
|
-
else if (oldChildren !== null) {
|
|
768
|
+
else if ( oldChildren !== null) {
|
|
776
769
|
// no new child vnodes, but there are old child vnodes to remove
|
|
777
770
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
778
771
|
}
|
|
779
|
-
if (isSvgMode && tag === 'svg') {
|
|
772
|
+
if ( isSvgMode && tag === 'svg') {
|
|
780
773
|
isSvgMode = false;
|
|
781
774
|
}
|
|
782
775
|
}
|
|
783
|
-
else if ((defaultHolder = elm['s-cr'])) {
|
|
776
|
+
else if ( (defaultHolder = elm['s-cr'])) {
|
|
784
777
|
// this element has slotted content
|
|
785
778
|
defaultHolder.parentNode.textContent = text;
|
|
786
779
|
}
|
|
787
|
-
else if (oldVNode.$text$ !== text) {
|
|
780
|
+
else if ( oldVNode.$text$ !== text) {
|
|
788
781
|
// update the text content for the text only vnode
|
|
789
782
|
// and also only if the text is different than before
|
|
790
783
|
elm.data = text;
|
|
@@ -862,7 +855,7 @@ const relocateSlotContent = (elm) => {
|
|
|
862
855
|
// that is suppose to always represent the original content location
|
|
863
856
|
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
864
857
|
// it's possible we've already decided to relocate this node
|
|
865
|
-
relocateNodeData = relocateNodes.find(
|
|
858
|
+
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
866
859
|
// made some changes to slots
|
|
867
860
|
// let's make sure we also double check
|
|
868
861
|
// fallbacks are correctly hidden or shown
|
|
@@ -881,9 +874,9 @@ const relocateSlotContent = (elm) => {
|
|
|
881
874
|
});
|
|
882
875
|
}
|
|
883
876
|
if (node['s-sr']) {
|
|
884
|
-
relocateNodes.map(
|
|
877
|
+
relocateNodes.map(relocateNode => {
|
|
885
878
|
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
886
|
-
relocateNodeData = relocateNodes.find(
|
|
879
|
+
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
887
880
|
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
888
881
|
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
889
882
|
}
|
|
@@ -891,7 +884,7 @@ const relocateSlotContent = (elm) => {
|
|
|
891
884
|
});
|
|
892
885
|
}
|
|
893
886
|
}
|
|
894
|
-
else if (!relocateNodes.some(
|
|
887
|
+
else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
|
|
895
888
|
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
896
889
|
// if we never find a home for this element then we'll need to hide it
|
|
897
890
|
relocateNodes.push({
|
|
@@ -936,13 +929,13 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
936
929
|
rootVnode.$tag$ = null;
|
|
937
930
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
938
931
|
hostRef.$vnode$ = rootVnode;
|
|
939
|
-
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
|
932
|
+
rootVnode.$elm$ = oldVNode.$elm$ = ( hostElm.shadowRoot || hostElm );
|
|
940
933
|
{
|
|
941
934
|
scopeId = hostElm['s-sc'];
|
|
942
935
|
}
|
|
943
936
|
{
|
|
944
937
|
contentRef = hostElm['s-cr'];
|
|
945
|
-
useNativeShadowDom =
|
|
938
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
946
939
|
// always reset
|
|
947
940
|
checkSlotFallbackVisibility = false;
|
|
948
941
|
}
|
|
@@ -967,8 +960,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
967
960
|
if (!nodeToRelocate['s-ol']) {
|
|
968
961
|
// add a reference node marking this node's original location
|
|
969
962
|
// keep a reference to this node for later lookups
|
|
970
|
-
orgLocationNode =
|
|
971
|
-
doc.createTextNode('');
|
|
963
|
+
orgLocationNode = doc.createTextNode('');
|
|
972
964
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
973
965
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
974
966
|
}
|
|
@@ -992,8 +984,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
992
984
|
}
|
|
993
985
|
}
|
|
994
986
|
}
|
|
995
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
996
|
-
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
987
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
997
988
|
// we've checked that it's worth while to relocate
|
|
998
989
|
// since that the node to relocate
|
|
999
990
|
// has a different next sibling or parent relocated
|
|
@@ -1025,29 +1016,22 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1025
1016
|
relocateNodes.length = 0;
|
|
1026
1017
|
}
|
|
1027
1018
|
};
|
|
1028
|
-
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
1029
|
-
/**
|
|
1030
|
-
* Helper function to create & dispatch a custom Event on a provided target
|
|
1031
|
-
* @param elm the target of the Event
|
|
1032
|
-
* @param name the name to give the custom Event
|
|
1033
|
-
* @param opts options for configuring a custom Event
|
|
1034
|
-
* @returns the custom Event
|
|
1035
|
-
*/
|
|
1019
|
+
const getElement = (ref) => ( getHostRef(ref).$hostElement$ );
|
|
1036
1020
|
const emitEvent = (elm, name, opts) => {
|
|
1037
1021
|
const ev = plt.ce(name, opts);
|
|
1038
1022
|
elm.dispatchEvent(ev);
|
|
1039
1023
|
return ev;
|
|
1040
1024
|
};
|
|
1041
1025
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1042
|
-
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1043
|
-
ancestorComponent['s-p'].push(new Promise(
|
|
1026
|
+
if ( ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1027
|
+
ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
|
|
1044
1028
|
}
|
|
1045
1029
|
};
|
|
1046
1030
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1047
1031
|
{
|
|
1048
1032
|
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1049
1033
|
}
|
|
1050
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1034
|
+
if ( hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1051
1035
|
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1052
1036
|
return;
|
|
1053
1037
|
}
|
|
@@ -1056,11 +1040,11 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1056
1040
|
// has already fired off its lifecycle update then
|
|
1057
1041
|
// fire off the initial update
|
|
1058
1042
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1059
|
-
return
|
|
1043
|
+
return writeTask(dispatch) ;
|
|
1060
1044
|
};
|
|
1061
1045
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1062
1046
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
1063
|
-
const instance =
|
|
1047
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1064
1048
|
let promise;
|
|
1065
1049
|
if (isInitialLoad) {
|
|
1066
1050
|
{
|
|
@@ -1075,7 +1059,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1075
1059
|
const elm = hostRef.$hostElement$;
|
|
1076
1060
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
1077
1061
|
const rc = elm['s-rc'];
|
|
1078
|
-
if (isInitialLoad) {
|
|
1062
|
+
if ( isInitialLoad) {
|
|
1079
1063
|
// DOM WRITE!
|
|
1080
1064
|
attachStyles(hostRef);
|
|
1081
1065
|
}
|
|
@@ -1083,11 +1067,11 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1083
1067
|
{
|
|
1084
1068
|
callRender(hostRef, instance);
|
|
1085
1069
|
}
|
|
1086
|
-
if (rc) {
|
|
1070
|
+
if ( rc) {
|
|
1087
1071
|
// ok, so turns out there are some child host elements
|
|
1088
1072
|
// waiting on this parent element to load
|
|
1089
1073
|
// let's fire off all update callbacks waiting
|
|
1090
|
-
rc.map(
|
|
1074
|
+
rc.map(cb => cb());
|
|
1091
1075
|
elm['s-rc'] = undefined;
|
|
1092
1076
|
}
|
|
1093
1077
|
endRender();
|
|
@@ -1108,7 +1092,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1108
1092
|
const callRender = (hostRef, instance, elm) => {
|
|
1109
1093
|
try {
|
|
1110
1094
|
renderingRef = instance;
|
|
1111
|
-
instance =
|
|
1095
|
+
instance = instance.render() ;
|
|
1112
1096
|
{
|
|
1113
1097
|
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1114
1098
|
}
|
|
@@ -1178,8 +1162,7 @@ const forceUpdate = (ref) => {
|
|
|
1178
1162
|
{
|
|
1179
1163
|
const hostRef = getHostRef(ref);
|
|
1180
1164
|
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1181
|
-
if (isConnected &&
|
|
1182
|
-
(hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1165
|
+
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1183
1166
|
scheduleUpdate(hostRef, false);
|
|
1184
1167
|
}
|
|
1185
1168
|
// Returns "true" when the forced update was successfully scheduled
|
|
@@ -1208,21 +1191,20 @@ const safeCall = (instance, method, arg) => {
|
|
|
1208
1191
|
const then = (promise, thenFn) => {
|
|
1209
1192
|
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1210
1193
|
};
|
|
1211
|
-
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1212
|
-
;
|
|
1194
|
+
const addHydratedFlag = (elm) => ( elm.classList.add('hydrated') );
|
|
1213
1195
|
const parsePropertyValue = (propValue, propType) => {
|
|
1214
1196
|
// ensure this value is of the correct prop type
|
|
1215
1197
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1216
|
-
if (propType & 4 /* Boolean */) {
|
|
1198
|
+
if ( propType & 4 /* Boolean */) {
|
|
1217
1199
|
// per the HTML spec, any string value means it is a boolean true value
|
|
1218
1200
|
// but we'll cheat here and say that the string "false" is the boolean false
|
|
1219
1201
|
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
1220
1202
|
}
|
|
1221
|
-
if (propType & 2 /* Number */) {
|
|
1203
|
+
if ( propType & 2 /* Number */) {
|
|
1222
1204
|
// force it to be a number
|
|
1223
1205
|
return parseFloat(propValue);
|
|
1224
1206
|
}
|
|
1225
|
-
if (propType & 1 /* String */) {
|
|
1207
|
+
if ( propType & 1 /* String */) {
|
|
1226
1208
|
// could have been passed as a number or boolean
|
|
1227
1209
|
// but we still want it as a string
|
|
1228
1210
|
return String(propValue);
|
|
@@ -1240,14 +1222,14 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1240
1222
|
const hostRef = getHostRef(ref);
|
|
1241
1223
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1242
1224
|
const flags = hostRef.$flags$;
|
|
1243
|
-
const instance =
|
|
1225
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1244
1226
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1245
|
-
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
|
|
1227
|
+
if (( !(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
|
|
1246
1228
|
// gadzooks! the property's value has changed!!
|
|
1247
1229
|
// set our new value!
|
|
1248
1230
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1249
|
-
if (instance) {
|
|
1250
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1231
|
+
if ( instance) {
|
|
1232
|
+
if ( (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1251
1233
|
// looks like this value actually changed, so we've got work to do!
|
|
1252
1234
|
// but only if we've already rendered, otherwise just chill out
|
|
1253
1235
|
// queue that we need to do an update, but don't worry about queuing
|
|
@@ -1258,13 +1240,12 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1258
1240
|
}
|
|
1259
1241
|
};
|
|
1260
1242
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1261
|
-
if (cmpMeta.$members$) {
|
|
1243
|
+
if ( cmpMeta.$members$) {
|
|
1262
1244
|
// It's better to have a const than two Object.entries()
|
|
1263
1245
|
const members = Object.entries(cmpMeta.$members$);
|
|
1264
1246
|
const prototype = Cstr.prototype;
|
|
1265
1247
|
members.map(([memberName, [memberFlags]]) => {
|
|
1266
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1267
|
-
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1248
|
+
if ( (memberFlags & 31 /* Prop */ || (( flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1268
1249
|
// proxyComponent - prop
|
|
1269
1250
|
Object.defineProperty(prototype, memberName, {
|
|
1270
1251
|
get() {
|
|
@@ -1279,8 +1260,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1279
1260
|
enumerable: true,
|
|
1280
1261
|
});
|
|
1281
1262
|
}
|
|
1282
|
-
else if (flags & 1 /* isElementConstructor */ &&
|
|
1283
|
-
memberFlags & 64 /* Method */) {
|
|
1263
|
+
else if ( flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1284
1264
|
// proxyComponent - method
|
|
1285
1265
|
Object.defineProperty(prototype, memberName, {
|
|
1286
1266
|
value(...args) {
|
|
@@ -1290,48 +1270,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1290
1270
|
});
|
|
1291
1271
|
}
|
|
1292
1272
|
});
|
|
1293
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
1273
|
+
if ( ( flags & 1 /* isElementConstructor */)) {
|
|
1294
1274
|
const attrNameToPropName = new Map();
|
|
1295
1275
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1296
1276
|
plt.jmp(() => {
|
|
1297
1277
|
const propName = attrNameToPropName.get(attrName);
|
|
1298
|
-
// In a webcomponent lifecyle the attributeChangedCallback runs prior to connectedCallback
|
|
1299
|
-
// in the case where an attribute was set inline.
|
|
1300
|
-
// ```html
|
|
1301
|
-
// <my-component some-attribute="some-value"></my-component>
|
|
1302
|
-
// ```
|
|
1303
|
-
//
|
|
1304
|
-
// There is an edge case where a developer sets the attribute inline on a custom element and then programatically
|
|
1305
|
-
// changes it before it has been upgraded as shown below:
|
|
1306
|
-
//
|
|
1307
|
-
// ```html
|
|
1308
|
-
// <!-- this component has _not_ been upgraded yet -->
|
|
1309
|
-
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1310
|
-
// <script>
|
|
1311
|
-
// // grab non-upgraded component
|
|
1312
|
-
// el = document.querySelector("#test");
|
|
1313
|
-
// el.someAttribute = "another-value";
|
|
1314
|
-
// // upgrade component
|
|
1315
|
-
// cutsomElements.define('my-component', MyComponent);
|
|
1316
|
-
// </script>
|
|
1317
|
-
// ```
|
|
1318
|
-
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1319
|
-
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1320
|
-
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1321
|
-
// the connectedCallback attempts to unshadow it will use "some-value" as the intial value rather than "another-value"
|
|
1322
|
-
//
|
|
1323
|
-
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1324
|
-
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1325
|
-
//
|
|
1326
|
-
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1327
|
-
//
|
|
1328
|
-
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1329
|
-
// properties here given that this goes against best practices outlined here
|
|
1330
|
-
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1331
|
-
if (this.hasOwnProperty(propName)) {
|
|
1332
|
-
newValue = this[propName];
|
|
1333
|
-
delete this[propName];
|
|
1334
|
-
}
|
|
1335
1278
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1336
1279
|
});
|
|
1337
1280
|
};
|
|
@@ -1350,7 +1293,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1350
1293
|
};
|
|
1351
1294
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1352
1295
|
// initializeComponent
|
|
1353
|
-
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1296
|
+
if ( (hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1354
1297
|
{
|
|
1355
1298
|
// we haven't initialized this element yet
|
|
1356
1299
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
@@ -1364,7 +1307,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1364
1307
|
Cstr = await Cstr;
|
|
1365
1308
|
endLoad();
|
|
1366
1309
|
}
|
|
1367
|
-
if (!Cstr.isProxied) {
|
|
1310
|
+
if ( !Cstr.isProxied) {
|
|
1368
1311
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1369
1312
|
Cstr.isProxied = true;
|
|
1370
1313
|
}
|
|
@@ -1390,7 +1333,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1390
1333
|
}
|
|
1391
1334
|
endNewInstance();
|
|
1392
1335
|
}
|
|
1393
|
-
if (Cstr.style) {
|
|
1336
|
+
if ( Cstr.style) {
|
|
1394
1337
|
// this component has styles but we haven't registered them yet
|
|
1395
1338
|
let style = Cstr.style;
|
|
1396
1339
|
const scopeId = getScopeId(cmpMeta);
|
|
@@ -1404,7 +1347,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1404
1347
|
// we've successfully created a lazy instance
|
|
1405
1348
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1406
1349
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1407
|
-
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1350
|
+
if ( ancestorComponent && ancestorComponent['s-rc']) {
|
|
1408
1351
|
// this is the intial load and this component it has an ancestor component
|
|
1409
1352
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1410
1353
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
@@ -1430,7 +1373,7 @@ const connectedCallback = (elm) => {
|
|
|
1430
1373
|
// if the slot polyfill is required we'll need to put some nodes
|
|
1431
1374
|
// in here to act as original content anchors as we move nodes around
|
|
1432
1375
|
// host element has been connected to the DOM
|
|
1433
|
-
if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
|
|
1376
|
+
if ( ( cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
|
|
1434
1377
|
setContentReference(elm);
|
|
1435
1378
|
}
|
|
1436
1379
|
}
|
|
@@ -1441,7 +1384,8 @@ const connectedCallback = (elm) => {
|
|
|
1441
1384
|
while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
|
|
1442
1385
|
// climb up the ancestors looking for the first
|
|
1443
1386
|
// component that hasn't finished its lifecycle update yet
|
|
1444
|
-
if (
|
|
1387
|
+
if (
|
|
1388
|
+
ancestorComponent['s-p']) {
|
|
1445
1389
|
// we found this components first ancestor component
|
|
1446
1390
|
// keep a reference to this component's ancestor component
|
|
1447
1391
|
attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
|
|
@@ -1451,7 +1395,7 @@ const connectedCallback = (elm) => {
|
|
|
1451
1395
|
}
|
|
1452
1396
|
// Lazy properties
|
|
1453
1397
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1454
|
-
if (cmpMeta.$members$) {
|
|
1398
|
+
if ( cmpMeta.$members$) {
|
|
1455
1399
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1456
1400
|
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1457
1401
|
const value = elm[memberName];
|
|
@@ -1474,14 +1418,14 @@ const setContentReference = (elm) => {
|
|
|
1474
1418
|
// let's pick out the inner content for slot projection
|
|
1475
1419
|
// create a node to represent where the original
|
|
1476
1420
|
// content was first placed, which is useful later on
|
|
1477
|
-
const contentRefElm = (elm['s-cr'] = doc.createComment(''));
|
|
1421
|
+
const contentRefElm = (elm['s-cr'] = doc.createComment( ''));
|
|
1478
1422
|
contentRefElm['s-cn'] = true;
|
|
1479
1423
|
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1480
1424
|
};
|
|
1481
1425
|
const disconnectedCallback = (elm) => {
|
|
1482
1426
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1483
1427
|
const hostRef = getHostRef(elm);
|
|
1484
|
-
const instance =
|
|
1428
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1485
1429
|
{
|
|
1486
1430
|
safeCall(instance, 'disconnectedCallback');
|
|
1487
1431
|
}
|
|
@@ -1491,31 +1435,17 @@ const patchCloneNode = (HostElementPrototype) => {
|
|
|
1491
1435
|
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
1492
1436
|
HostElementPrototype.cloneNode = function (deep) {
|
|
1493
1437
|
const srcNode = this;
|
|
1494
|
-
const isShadowDom =
|
|
1438
|
+
const isShadowDom = srcNode.shadowRoot && supportsShadow ;
|
|
1495
1439
|
const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
|
|
1496
|
-
if (!isShadowDom && deep) {
|
|
1440
|
+
if ( !isShadowDom && deep) {
|
|
1497
1441
|
let i = 0;
|
|
1498
1442
|
let slotted, nonStencilNode;
|
|
1499
|
-
let stencilPrivates = [
|
|
1500
|
-
's-id',
|
|
1501
|
-
's-cr',
|
|
1502
|
-
's-lr',
|
|
1503
|
-
's-rc',
|
|
1504
|
-
's-sc',
|
|
1505
|
-
's-p',
|
|
1506
|
-
's-cn',
|
|
1507
|
-
's-sr',
|
|
1508
|
-
's-sn',
|
|
1509
|
-
's-hn',
|
|
1510
|
-
's-ol',
|
|
1511
|
-
's-nr',
|
|
1512
|
-
's-si',
|
|
1513
|
-
];
|
|
1443
|
+
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'];
|
|
1514
1444
|
for (; i < srcNode.childNodes.length; i++) {
|
|
1515
1445
|
slotted = srcNode.childNodes[i]['s-nr'];
|
|
1516
1446
|
nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i][privateField]);
|
|
1517
1447
|
if (slotted) {
|
|
1518
|
-
if (clonedNode.__appendChild) {
|
|
1448
|
+
if ( clonedNode.__appendChild) {
|
|
1519
1449
|
clonedNode.__appendChild(slotted.cloneNode(true));
|
|
1520
1450
|
}
|
|
1521
1451
|
else {
|
|
@@ -1564,8 +1494,7 @@ const patchChildSlotNodes = (elm, cmpMeta) => {
|
|
|
1564
1494
|
Object.defineProperty(elm, 'childNodes', {
|
|
1565
1495
|
get() {
|
|
1566
1496
|
const childNodes = childNodesFn.call(this);
|
|
1567
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 &&
|
|
1568
|
-
getHostRef(this).$flags$ & 2 /* hasRendered */) {
|
|
1497
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
|
|
1569
1498
|
const result = new FakeNodeList();
|
|
1570
1499
|
for (let i = 0; i < childNodes.length; i++) {
|
|
1571
1500
|
const slot = childNodes[i]['s-nr'];
|
|
@@ -1581,12 +1510,6 @@ const patchChildSlotNodes = (elm, cmpMeta) => {
|
|
|
1581
1510
|
}
|
|
1582
1511
|
};
|
|
1583
1512
|
const getSlotName = (node) => node['s-sn'] || (node.nodeType === 1 && node.getAttribute('slot')) || '';
|
|
1584
|
-
/**
|
|
1585
|
-
* Recursively searches a series of child nodes for a slot with the provided name.
|
|
1586
|
-
* @param childNodes the nodes to search for a slot with a specific name.
|
|
1587
|
-
* @param slotName the name of the slot to match on.
|
|
1588
|
-
* @returns a reference to the slot node that matches the provided name, `null` otherwise
|
|
1589
|
-
*/
|
|
1590
1513
|
const getHostSlotNode = (childNodes, slotName) => {
|
|
1591
1514
|
let i = 0;
|
|
1592
1515
|
let childNode;
|
|
@@ -1622,7 +1545,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1622
1545
|
let isBootstrapping = true;
|
|
1623
1546
|
Object.assign(plt, options);
|
|
1624
1547
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1625
|
-
lazyBundles.map(
|
|
1548
|
+
lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => {
|
|
1626
1549
|
const cmpMeta = {
|
|
1627
1550
|
$flags$: compactMeta[0],
|
|
1628
1551
|
$tagName$: compactMeta[1],
|
|
@@ -1632,7 +1555,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1632
1555
|
{
|
|
1633
1556
|
cmpMeta.$members$ = compactMeta[2];
|
|
1634
1557
|
}
|
|
1635
|
-
const tagName =
|
|
1558
|
+
const tagName = cmpMeta.$tagName$;
|
|
1636
1559
|
const HostElement = class extends HTMLElement {
|
|
1637
1560
|
// StencilLazyHost
|
|
1638
1561
|
constructor(self) {
|
|
@@ -1640,7 +1563,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1640
1563
|
super(self);
|
|
1641
1564
|
self = this;
|
|
1642
1565
|
registerHost(self, cmpMeta);
|
|
1643
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1566
|
+
if ( cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1644
1567
|
// this component is using shadow dom
|
|
1645
1568
|
// and this browser supports shadow dom
|
|
1646
1569
|
// add the read-only property "shadowRoot" to the host element
|
|
@@ -1695,7 +1618,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1695
1618
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1696
1619
|
isBootstrapping = false;
|
|
1697
1620
|
if (deferredConnectedCallbacks.length) {
|
|
1698
|
-
deferredConnectedCallbacks.map(
|
|
1621
|
+
deferredConnectedCallbacks.map(host => host.connectedCallback());
|
|
1699
1622
|
}
|
|
1700
1623
|
else {
|
|
1701
1624
|
{
|
|
@@ -1720,23 +1643,23 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1720
1643
|
$instanceValues$: new Map(),
|
|
1721
1644
|
};
|
|
1722
1645
|
{
|
|
1723
|
-
hostRef.$onInstancePromise$ = new Promise(
|
|
1646
|
+
hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
|
|
1724
1647
|
}
|
|
1725
1648
|
{
|
|
1726
|
-
hostRef.$onReadyPromise$ = new Promise(
|
|
1649
|
+
hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
|
|
1727
1650
|
elm['s-p'] = [];
|
|
1728
1651
|
elm['s-rc'] = [];
|
|
1729
1652
|
}
|
|
1730
1653
|
return hostRefs.set(elm, hostRef);
|
|
1731
1654
|
};
|
|
1732
1655
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1733
|
-
const consoleError = (e, el) => (0, console.error)(e, el);
|
|
1656
|
+
const consoleError = (e, el) => ( 0, console.error)(e, el);
|
|
1734
1657
|
const cmpModules = /*@__PURE__*/ new Map();
|
|
1735
1658
|
const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
1736
1659
|
// loadModuleImport
|
|
1737
1660
|
const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
|
|
1738
1661
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1739
|
-
const module =
|
|
1662
|
+
const module = cmpModules.get(bundleId) ;
|
|
1740
1663
|
if (module) {
|
|
1741
1664
|
return module[exportName];
|
|
1742
1665
|
}
|
|
@@ -1744,7 +1667,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1744
1667
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1745
1668
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1746
1669
|
/* webpackMode: "lazy" */
|
|
1747
|
-
`./${bundleId}.entry.js${''}`)); }).then(
|
|
1670
|
+
`./${bundleId}.entry.js${ ''}`)); }).then(importedModule => {
|
|
1748
1671
|
{
|
|
1749
1672
|
cmpModules.set(bundleId, importedModule);
|
|
1750
1673
|
}
|