@saasquatch/mint-components 1.3.3-3 → 1.3.3-7
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/{useLeaderboard-d4212a39.js → ShadowViewAddon-e9bacad0.js} +37 -37
- package/dist/cjs/{stencil-hooks.module-426df801.js → extends-0302d27d.js} +59 -2
- package/dist/cjs/{global-d7ca0a0e.js → global-0c01d88f.js} +75 -32
- package/dist/cjs/{index.module-89be78a4.js → index.module-2925fe3b.js} +49 -51
- package/dist/cjs/{jss-preset-default.esm-62f8ddc9.js → jss-preset-default.esm-6304d24f.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -8
- package/dist/cjs/mint-components.cjs.js +5 -8
- package/dist/cjs/{re-render-0ebbb7c2.js → re-render-b1ad512d.js} +7 -7
- package/dist/cjs/{sqm-asset-card-view-d7cc854c.js → sqm-asset-card-view-07f86880.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +6 -8
- package/dist/cjs/sqm-big-stat.cjs.entry.js +6 -9
- package/dist/cjs/sqm-divided-layout_26.cjs.entry.js +26243 -0
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +8 -10
- package/dist/cjs/{sqm-hero-view-0efad52b.js → sqm-hero-view-bb3d00a1.js} +5 -5
- package/dist/cjs/sqm-hero.cjs.entry.js +5 -7
- package/dist/cjs/{index-64f4aee3.js → sqm-leaderboard-rank-view-48245b30.js} +9 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +12 -16
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +8 -10
- package/dist/cjs/{sqm-name-fields-view-4a178b0f.js → sqm-name-fields-view-24614ac7.js} +1 -1
- package/dist/cjs/sqm-name-fields.cjs.entry.js +7 -9
- package/dist/cjs/{sqm-navigation-sidebar-item-view-4e9e08b8.js → sqm-navigation-sidebar-item-view-1bad646a.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +8 -10
- package/dist/cjs/{sqm-navigation-sidebar-view-9bd94bd9.js → sqm-navigation-sidebar-view-d06e1885.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +4 -6
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -6
- package/dist/cjs/{sqm-portal-container-view-b12d5fde.js → sqm-portal-container-view-d144735a.js} +1 -1
- package/dist/cjs/sqm-portal-container.cjs.entry.js +4 -6
- package/dist/cjs/{sqm-portal-email-verification-view-deecc4ea.js → sqm-portal-email-verification-view-68b16f27.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +20 -18
- package/dist/cjs/{sqm-portal-footer-view-c497e7f8.js → sqm-portal-footer-view-edeeebab.js} +2 -2
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +7 -10
- package/dist/cjs/{sqm-portal-forgot-password-view-35dc8af0.js → sqm-portal-forgot-password-view-1704d285.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +20 -17
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +6 -8
- package/dist/cjs/{sqm-portal-profile-view-7a950967.js → sqm-portal-profile-view-2b48529e.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +19 -22
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +9 -11
- package/dist/cjs/{sqm-portal-reset-password-view-a4a6b540.js → sqm-portal-reset-password-view-4d78fd6d.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +16 -18
- package/dist/cjs/{sqm-portal-section-view-15c6d536.js → sqm-portal-section-view-3b008930.js} +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-faad7c8d.js → sqm-portal-verify-email-view-b595e302.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +18 -20
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +5 -7
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +5 -7
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +5 -7
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +5 -7
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +5 -7
- package/dist/cjs/sqm-share-code.cjs.entry.js +11 -13
- package/dist/cjs/{sqm-share-link-view-2bf1fcea.js → sqm-share-link-view-a935d07e.js} +1 -1
- package/dist/cjs/{sqm-stat-container-view-a4327ee6.js → sqm-stat-container-view-ee7b00ff.js} +1 -1
- package/dist/cjs/sqm-stat-container.cjs.entry.js +4 -6
- package/dist/cjs/{sqm-text-span-view-90e828b7.js → sqm-text-span-view-b5ae787b.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +4 -6
- package/dist/cjs/sqm-titled-section.cjs.entry.js +4 -6
- package/dist/cjs/use-callback-fadb2643.js +7 -0
- package/dist/cjs/{useDemoBigStat-f22ebd22.js → useDemoBigStat-ee71b587.js} +305 -11
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +25 -0
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +25 -0
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +3 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +25 -0
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -3
- package/dist/esm/{useLeaderboard-6495a7a3.js → ShadowViewAddon-5f66de48.js} +38 -38
- package/dist/esm/{stencil-hooks.module-6c912534.js → extends-3a3f9fe2.js} +54 -2
- package/dist/esm/{global-5d6ef5e9.js → global-0fcfbedf.js} +48 -6
- package/dist/esm/{index.module-6797c7e3.js → index.module-1e92a7a3.js} +4 -6
- package/dist/esm/{jss-preset-default.esm-8bd9f480.js → jss-preset-default.esm-71fae192.js} +1 -1
- package/dist/esm/loader.js +5 -8
- package/dist/esm/mint-components.js +5 -8
- package/dist/esm/{re-render-8303a033.js → re-render-b8468637.js} +6 -6
- package/dist/esm/{sqm-asset-card-view-fa1b681a.js → sqm-asset-card-view-6f360937.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +5 -7
- package/dist/esm/sqm-big-stat.entry.js +5 -8
- package/dist/esm/sqm-divided-layout_26.entry.js +26214 -0
- package/dist/esm/sqm-graphql-client-provider.entry.js +6 -8
- package/dist/esm/{sqm-hero-view-cc2f653d.js → sqm-hero-view-bfd8abd1.js} +3 -3
- package/dist/esm/sqm-hero.entry.js +4 -6
- package/dist/esm/{index-ea4f13e6.js → sqm-leaderboard-rank-view-fd7d7f42.js} +9 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +7 -11
- package/dist/esm/sqm-leaderboard.entry.js +4 -6
- package/dist/esm/{sqm-name-fields-view-4eec5184.js → sqm-name-fields-view-4162fb7b.js} +1 -1
- package/dist/esm/sqm-name-fields.entry.js +5 -7
- package/dist/esm/{sqm-navigation-sidebar-item-view-cea787b9.js → sqm-navigation-sidebar-item-view-a48bca9b.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -9
- package/dist/esm/{sqm-navigation-sidebar-view-df01c5ed.js → sqm-navigation-sidebar-view-2242502c.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -5
- package/dist/esm/sqm-popup-container.entry.js +3 -5
- package/dist/esm/{sqm-portal-container-view-fe231c27.js → sqm-portal-container-view-73757ca5.js} +1 -1
- package/dist/esm/sqm-portal-container.entry.js +3 -5
- package/dist/esm/{sqm-portal-email-verification-view-60b2f80d.js → sqm-portal-email-verification-view-6cc56c87.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +15 -13
- package/dist/esm/{sqm-portal-footer-view-77a5d0ed.js → sqm-portal-footer-view-8a1128d5.js} +3 -3
- package/dist/esm/sqm-portal-footer.entry.js +6 -9
- package/dist/esm/{sqm-portal-forgot-password-view-8bb0852f.js → sqm-portal-forgot-password-view-e3a6a716.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +15 -12
- package/dist/esm/sqm-portal-logout.entry.js +5 -7
- package/dist/esm/{sqm-portal-profile-view-70b2a136.js → sqm-portal-profile-view-4acf74a5.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +12 -15
- package/dist/esm/sqm-portal-protected-route.entry.js +7 -9
- package/dist/esm/{sqm-portal-reset-password-view-a90cdc55.js → sqm-portal-reset-password-view-a4e50da2.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +12 -14
- package/dist/esm/{sqm-portal-section-view-0a392b47.js → sqm-portal-section-view-f0876545.js} +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-db80c80d.js → sqm-portal-verify-email-view-6f18bac2.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +10 -12
- package/dist/esm/sqm-referral-table-column.entry.js +4 -6
- package/dist/esm/sqm-referral-table-date-column.entry.js +4 -6
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +4 -6
- package/dist/esm/sqm-referral-table-status-column.entry.js +4 -6
- package/dist/esm/sqm-referral-table-user-column.entry.js +4 -6
- package/dist/esm/sqm-share-code.entry.js +8 -10
- package/dist/esm/{sqm-share-link-view-c98956ae.js → sqm-share-link-view-9282b8e8.js} +1 -1
- package/dist/esm/{sqm-stat-container-view-1dca1e18.js → sqm-stat-container-view-4133feb6.js} +1 -1
- package/dist/esm/sqm-stat-container.entry.js +3 -5
- package/dist/esm/{sqm-text-span-view-1d0562a7.js → sqm-text-span-view-1781df94.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -5
- package/dist/esm/sqm-titled-section.entry.js +3 -5
- package/dist/esm/{use-callback-c9ed6790.js → use-callback-b38a1523.js} +1 -1
- package/dist/esm/{useDemoBigStat-192749de.js → useDemoBigStat-8865b9fa.js} +300 -7
- package/dist/esm-es5/ShadowViewAddon-5f66de48.js +1 -0
- package/dist/esm-es5/{stencil-hooks.module-6c912534.js → extends-3a3f9fe2.js} +2 -2
- package/dist/esm-es5/{global-5d6ef5e9.js → global-0fcfbedf.js} +2 -2
- package/dist/esm-es5/index.module-1e92a7a3.js +1 -0
- package/dist/esm-es5/{jss-preset-default.esm-8bd9f480.js → jss-preset-default.esm-71fae192.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/re-render-b8468637.js +1 -0
- package/dist/esm-es5/{sqm-asset-card-view-fa1b681a.js → sqm-asset-card-view-6f360937.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-divided-layout_26.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-hero-view-bfd8abd1.js +1 -0
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-fd7d7f42.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-4eec5184.js → sqm-name-fields-view-4162fb7b.js} +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-a48bca9b.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-df01c5ed.js → sqm-navigation-sidebar-view-2242502c.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-fe231c27.js → sqm-portal-container-view-73757ca5.js} +1 -1
- package/dist/esm-es5/sqm-portal-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-60b2f80d.js → sqm-portal-email-verification-view-6cc56c87.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-77a5d0ed.js → sqm-portal-footer-view-8a1128d5.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-8bb0852f.js → sqm-portal-forgot-password-view-e3a6a716.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-70b2a136.js → sqm-portal-profile-view-4acf74a5.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-a90cdc55.js → sqm-portal-reset-password-view-a4e50da2.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-section-view-0a392b47.js → sqm-portal-section-view-f0876545.js} +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-db80c80d.js → sqm-portal-verify-email-view-6f18bac2.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
- package/dist/esm-es5/sqm-share-code.entry.js +1 -1
- package/dist/esm-es5/{sqm-share-link-view-c98956ae.js → sqm-share-link-view-9282b8e8.js} +1 -1
- package/dist/esm-es5/{sqm-stat-container-view-1dca1e18.js → sqm-stat-container-view-4133feb6.js} +1 -1
- package/dist/esm-es5/sqm-stat-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-1d0562a7.js → sqm-text-span-view-1781df94.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/use-callback-b38a1523.js +1 -0
- package/dist/esm-es5/useDemoBigStat-8865b9fa.js +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-015b683f.system.js +53 -0
- package/dist/mint-components/p-036c5a7e.system.entry.js +1 -0
- package/dist/mint-components/p-05a2640d.entry.js +1 -0
- package/dist/mint-components/{p-86171ec8.entry.js → p-05a86906.entry.js} +3 -3
- package/dist/mint-components/p-06d79243.system.entry.js +1 -0
- package/dist/mint-components/p-09afaaac.system.entry.js +1 -0
- package/dist/mint-components/p-0a39b23c.system.entry.js +1 -0
- package/dist/mint-components/p-0bcefa93.entry.js +1 -0
- package/dist/mint-components/p-10a98629.entry.js +1 -0
- package/dist/mint-components/p-112d42ab.system.entry.js +1 -0
- package/dist/mint-components/p-13605359.entry.js +1 -0
- package/dist/mint-components/{p-5eb742d7.system.js → p-1575e8a3.system.js} +1 -1
- package/dist/mint-components/{p-caf8eca0.system.js → p-18aa175f.system.js} +22 -22
- package/dist/mint-components/p-192539d2.entry.js +1 -0
- package/dist/mint-components/{p-58771a46.system.js → p-1b7d89a7.system.js} +1 -1
- package/dist/mint-components/p-1e182e88.system.js +1 -0
- package/dist/mint-components/p-1e47e0a6.entry.js +1 -0
- package/dist/mint-components/{p-e95d28e9.system.js → p-27e23808.system.js} +1 -1
- package/dist/mint-components/p-282ed862.js +1 -0
- package/dist/mint-components/p-2f333f89.system.entry.js +1 -0
- package/dist/mint-components/p-32573409.js +227 -0
- package/dist/mint-components/p-337a3d6b.system.entry.js +1 -0
- package/dist/mint-components/{p-73b2760a.system.js → p-3452bdae.system.js} +1 -1
- package/dist/mint-components/{p-f2e89e29.system.js → p-34696973.system.js} +1 -1
- package/dist/mint-components/{p-a381b8d9.system.js → p-35476f7e.system.js} +1 -1
- package/dist/mint-components/p-3772bae2.system.entry.js +1 -0
- package/dist/mint-components/{p-9999a0d9.system.js → p-3e3dad7a.system.js} +1 -1
- package/dist/mint-components/p-4068e47c.system.entry.js +1 -0
- package/dist/mint-components/p-412d31b1.js +1 -0
- package/dist/mint-components/{p-8d09ef35.js → p-44578b22.js} +3 -3
- package/dist/mint-components/p-4b6c316d.entry.js +1 -0
- package/dist/mint-components/{p-e26d2c51.js → p-509dda90.js} +1 -1
- package/dist/mint-components/{p-c1578593.js → p-51cfdd14.js} +1 -1
- package/dist/mint-components/p-528aecd1.entry.js +1 -0
- package/dist/mint-components/{p-abf5458d.system.js → p-53b0c355.system.js} +1 -1
- package/dist/mint-components/p-53ec4863.entry.js +1 -0
- package/dist/mint-components/p-54707082.system.js +1 -0
- package/dist/mint-components/{p-54d655c9.system.js → p-547a0354.system.js} +1 -1
- package/dist/mint-components/p-55210498.system.js +1 -0
- package/dist/mint-components/{p-11e39dee.system.js → p-55f8387d.system.js} +1 -1
- package/dist/mint-components/{p-688ee2e6.system.js → p-562199e3.system.js} +1 -1
- package/dist/mint-components/{p-a419789f.system.js → p-602180a2.system.js} +1 -1
- package/dist/mint-components/p-606506d6.system.entry.js +1 -0
- package/dist/mint-components/{p-61f82e08.system.js → p-60ae1ec5.system.js} +1 -1
- package/dist/mint-components/p-6156a7ac.system.entry.js +1 -0
- package/dist/mint-components/p-624c5352.system.entry.js +1 -0
- package/dist/mint-components/p-6305419f.entry.js +1 -0
- package/dist/mint-components/{p-63bdaf92.system.js → p-64759dda.system.js} +1 -1
- package/dist/mint-components/p-6815e7ba.entry.js +1 -0
- package/dist/mint-components/{p-cde646f9.system.js → p-69f28472.system.js} +1 -1
- package/dist/mint-components/p-6ad110d3.js +1 -0
- package/dist/mint-components/p-6cb81b77.entry.js +1 -0
- package/dist/mint-components/p-6d27cd05.system.entry.js +1 -0
- package/dist/mint-components/p-70ca623f.system.entry.js +1 -0
- package/dist/mint-components/{p-2bc6150e.js → p-739b3032.js} +1 -1
- package/dist/mint-components/p-743882c6.entry.js +1 -0
- package/dist/mint-components/p-756a5e6f.system.js +1 -0
- package/dist/mint-components/p-768b9014.system.entry.js +1 -0
- package/dist/mint-components/p-7cf335a0.entry.js +1 -0
- package/dist/mint-components/{p-0a747d01.js → p-7d996b49.js} +1 -1
- package/dist/mint-components/p-86b66e5c.entry.js +1 -0
- package/dist/mint-components/p-8bfebd45.system.entry.js +1 -0
- package/dist/mint-components/p-942723ad.entry.js +1 -0
- package/dist/mint-components/{p-219ecfe5.js → p-952ed169.js} +1 -1
- package/dist/mint-components/p-965e34ab.entry.js +1 -0
- package/dist/mint-components/p-991bd182.system.entry.js +1 -0
- package/dist/mint-components/{p-33bfd40c.js → p-99f1208f.js} +1 -1
- package/dist/mint-components/{p-47877816.system.entry.js → p-9a3a0db5.system.entry.js} +1 -1
- package/dist/mint-components/{p-1a9c1a05.js → p-9b4f2af6.js} +1 -1
- package/dist/mint-components/{p-5a9f1194.system.js → p-9c79643f.system.js} +1 -1
- package/dist/mint-components/p-9f2a08a9.entry.js +230 -0
- package/dist/mint-components/p-9ff0425e.system.entry.js +1 -0
- package/dist/mint-components/{p-f174fd96.system.entry.js → p-9ff118a2.system.entry.js} +1 -1
- package/dist/mint-components/p-a359f652.system.js +1 -0
- package/dist/mint-components/p-a565e753.entry.js +1 -0
- package/dist/mint-components/p-a646db48.system.entry.js +1 -0
- package/dist/mint-components/{p-1103bb42.js → p-a8b913a8.js} +1 -1
- package/dist/mint-components/{p-74ceec27.system.js → p-aaf68d9d.system.js} +1 -1
- package/dist/mint-components/p-af1f8bd3.js +1 -0
- package/dist/mint-components/{p-2e480415.js → p-af2d886e.js} +1 -1
- package/dist/mint-components/p-b3880833.system.entry.js +1 -0
- package/dist/mint-components/p-b3cddcca.entry.js +1 -0
- package/dist/mint-components/p-ba09d673.system.entry.js +1 -0
- package/dist/mint-components/p-ba505a8c.js +1 -0
- package/dist/mint-components/{p-0f099d93.system.js → p-bb76c6f3.system.js} +1 -1
- package/dist/mint-components/{p-e86c29c0.js → p-bd903567.js} +1 -1
- package/dist/mint-components/p-c3bf9440.entry.js +1 -0
- package/dist/mint-components/p-c47b83c3.entry.js +1 -0
- package/dist/mint-components/p-c84a5b33.js +1 -0
- package/dist/mint-components/p-cffc23c0.entry.js +1 -0
- package/dist/mint-components/{p-9bd0b625.js → p-d0cad85c.js} +153 -153
- package/dist/mint-components/p-d1cea1b1.system.js +1 -0
- package/dist/mint-components/p-d3171b36.system.entry.js +1 -0
- package/dist/mint-components/{p-ce46e200.js → p-d513229d.js} +1 -1
- package/dist/mint-components/p-d55abc13.entry.js +13 -0
- package/dist/mint-components/{p-7c6c3d5d.js → p-db5a1e78.js} +1 -1
- package/dist/mint-components/p-de3311bf.entry.js +9 -0
- package/dist/mint-components/p-e069bc2d.entry.js +1 -0
- package/dist/mint-components/p-e14c15ca.system.entry.js +1 -0
- package/dist/mint-components/p-e426715b.js +1 -0
- package/dist/mint-components/p-e43cc1f8.system.entry.js +1 -0
- package/dist/mint-components/p-e50839df.entry.js +1 -0
- package/dist/mint-components/p-ebcd8a59.js +1 -0
- package/dist/mint-components/p-eddcf481.js +17 -0
- package/dist/mint-components/p-f16bae7a.system.entry.js +1 -0
- package/dist/mint-components/p-f85f36c6.system.entry.js +1 -0
- package/dist/mint-components/p-f9cb55dc.entry.js +1 -0
- package/dist/mint-components/p-fee468b7.system.entry.js +1 -0
- package/dist/mint-components/{p-55f10e1c.js → p-fee6801c.js} +1 -1
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +4 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +4 -0
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +3 -2
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +4 -0
- package/dist/types/components.d.ts +24 -0
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +1 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/_commonjsHelpers-dcc4cf71.js +0 -41
- package/dist/cjs/extends-08099afd.js +0 -21
- package/dist/cjs/index-8c6255f5.js +0 -297
- package/dist/cjs/insertcss-04580cfa.js +0 -47
- package/dist/cjs/luxon-f85e2807.js +0 -8348
- package/dist/cjs/sqm-divided-layout_14.cjs.entry.js +0 -5496
- package/dist/cjs/sqm-form-message.cjs.entry.js +0 -32
- package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +0 -10
- package/dist/cjs/sqm-password-field.cjs.entry.js +0 -584
- package/dist/cjs/sqm-referral-iframe-view-d64e955e.js +0 -523
- package/dist/cjs/sqm-referral-table-cell.cjs.entry.js +0 -21
- package/dist/cjs/sqm-referral-table-date-cell.cjs.entry.js +0 -30
- package/dist/cjs/sqm-referral-table-rewards-cell.cjs.entry.js +0 -101
- package/dist/cjs/sqm-referral-table-status-cell.cjs.entry.js +0 -16
- package/dist/cjs/sqm-referral-table-user-cell.cjs.entry.js +0 -19
- package/dist/cjs/sqm-router.cjs.entry.js +0 -105
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +0 -11008
- package/dist/cjs/sqm-table-cell_3.cjs.entry.js +0 -101
- package/dist/cjs/use-callback-c5f2b2fe.js +0 -7
- package/dist/esm/_commonjsHelpers-11ca3be1.js +0 -36
- package/dist/esm/extends-c31f1eff.js +0 -19
- package/dist/esm/index-ffa26b43.js +0 -295
- package/dist/esm/insertcss-bcaf3818.js +0 -45
- package/dist/esm/luxon-c3b19a84.js +0 -8346
- package/dist/esm/sqm-divided-layout_14.entry.js +0 -5479
- package/dist/esm/sqm-form-message.entry.js +0 -28
- package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +0 -8
- package/dist/esm/sqm-password-field.entry.js +0 -580
- package/dist/esm/sqm-referral-iframe-view-814425e2.js +0 -512
- package/dist/esm/sqm-referral-table-cell.entry.js +0 -17
- package/dist/esm/sqm-referral-table-date-cell.entry.js +0 -26
- package/dist/esm/sqm-referral-table-rewards-cell.entry.js +0 -97
- package/dist/esm/sqm-referral-table-status-cell.entry.js +0 -12
- package/dist/esm/sqm-referral-table-user-cell.entry.js +0 -15
- package/dist/esm/sqm-router.entry.js +0 -101
- package/dist/esm/sqm-stencilbook.entry.js +0 -11004
- package/dist/esm/sqm-table-cell_3.entry.js +0 -95
- package/dist/esm-es5/_commonjsHelpers-11ca3be1.js +0 -1
- package/dist/esm-es5/extends-c31f1eff.js +0 -1
- package/dist/esm-es5/index-ea4f13e6.js +0 -1
- package/dist/esm-es5/index-ffa26b43.js +0 -1
- package/dist/esm-es5/index.module-6797c7e3.js +0 -1
- package/dist/esm-es5/insertcss-bcaf3818.js +0 -1
- package/dist/esm-es5/luxon-c3b19a84.js +0 -1
- package/dist/esm-es5/re-render-8303a033.js +0 -1
- package/dist/esm-es5/sqm-divided-layout_14.entry.js +0 -1
- package/dist/esm-es5/sqm-form-message.entry.js +0 -1
- package/dist/esm-es5/sqm-hero-view-cc2f653d.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-cea787b9.js +0 -1
- package/dist/esm-es5/sqm-password-field.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-iframe-view-814425e2.js +0 -1
- package/dist/esm-es5/sqm-referral-table-cell.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-table-date-cell.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-table-rewards-cell.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-table-status-cell.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-table-user-cell.entry.js +0 -1
- package/dist/esm-es5/sqm-router.entry.js +0 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +0 -1
- package/dist/esm-es5/sqm-table-cell_3.entry.js +0 -1
- package/dist/esm-es5/use-callback-c9ed6790.js +0 -1
- package/dist/esm-es5/useDemoBigStat-192749de.js +0 -1
- package/dist/esm-es5/useLeaderboard-6495a7a3.js +0 -1
- package/dist/mint-components/p-01577a8a.entry.js +0 -1
- package/dist/mint-components/p-06a36549.entry.js +0 -1
- package/dist/mint-components/p-0733ed62.system.js +0 -1
- package/dist/mint-components/p-09a1f7a0.entry.js +0 -1
- package/dist/mint-components/p-0a28a805.system.entry.js +0 -1
- package/dist/mint-components/p-0c1587c6.system.entry.js +0 -1
- package/dist/mint-components/p-0f2344c0.entry.js +0 -1
- package/dist/mint-components/p-11a8e836.entry.js +0 -1
- package/dist/mint-components/p-134abc9b.entry.js +0 -1
- package/dist/mint-components/p-1839d503.entry.js +0 -1
- package/dist/mint-components/p-188a1fc9.system.entry.js +0 -1
- package/dist/mint-components/p-1b85db35.system.entry.js +0 -1
- package/dist/mint-components/p-1c17892a.system.js +0 -1
- package/dist/mint-components/p-1d620e57.entry.js +0 -1
- package/dist/mint-components/p-1dbf464d.entry.js +0 -1
- package/dist/mint-components/p-21233508.system.entry.js +0 -1
- package/dist/mint-components/p-22119da0.js +0 -1
- package/dist/mint-components/p-239e2ed7.system.entry.js +0 -1
- package/dist/mint-components/p-25ac3208.entry.js +0 -1
- package/dist/mint-components/p-268a00cf.js +0 -17
- package/dist/mint-components/p-2ccb88a4.entry.js +0 -1
- package/dist/mint-components/p-2e65f5d2.js +0 -1
- package/dist/mint-components/p-300d80c9.system.entry.js +0 -1
- package/dist/mint-components/p-3069e932.entry.js +0 -1
- package/dist/mint-components/p-337b68ed.js +0 -1
- package/dist/mint-components/p-33d4c0f1.system.entry.js +0 -1
- package/dist/mint-components/p-3a753964.system.entry.js +0 -1
- package/dist/mint-components/p-40928765.entry.js +0 -205
- package/dist/mint-components/p-42d17428.system.js +0 -1
- package/dist/mint-components/p-48457904.system.js +0 -53
- package/dist/mint-components/p-4afdfdbc.system.entry.js +0 -1
- package/dist/mint-components/p-51cb4643.entry.js +0 -1
- package/dist/mint-components/p-56326b1c.entry.js +0 -1
- package/dist/mint-components/p-5726f9b9.entry.js +0 -1
- package/dist/mint-components/p-596ea573.system.entry.js +0 -1
- package/dist/mint-components/p-5a63d963.system.js +0 -1
- package/dist/mint-components/p-5ca6cfb1.system.js +0 -1
- package/dist/mint-components/p-5ddabe60.system.js +0 -1
- package/dist/mint-components/p-5e57d2c6.system.js +0 -1
- package/dist/mint-components/p-61d769e2.system.js +0 -1
- package/dist/mint-components/p-638c8431.entry.js +0 -1
- package/dist/mint-components/p-669d63c8.system.entry.js +0 -1
- package/dist/mint-components/p-6981ad3c.entry.js +0 -1
- package/dist/mint-components/p-6a88774d.entry.js +0 -1
- package/dist/mint-components/p-73c99da6.system.entry.js +0 -1
- package/dist/mint-components/p-76b88f70.system.entry.js +0 -1
- package/dist/mint-components/p-7ae8fb53.system.js +0 -1
- package/dist/mint-components/p-7c2f9598.system.entry.js +0 -1
- package/dist/mint-components/p-81f34787.js +0 -1
- package/dist/mint-components/p-8310053d.system.entry.js +0 -1
- package/dist/mint-components/p-83bbebc4.system.entry.js +0 -1
- package/dist/mint-components/p-841bbf99.entry.js +0 -1
- package/dist/mint-components/p-84f01dce.js +0 -1
- package/dist/mint-components/p-86f1c93f.entry.js +0 -1
- package/dist/mint-components/p-87808800.entry.js +0 -1
- package/dist/mint-components/p-882920bc.system.entry.js +0 -1
- package/dist/mint-components/p-888d3286.entry.js +0 -1
- package/dist/mint-components/p-8aead9de.entry.js +0 -1
- package/dist/mint-components/p-8d363802.js +0 -1
- package/dist/mint-components/p-8e5cc223.system.entry.js +0 -1
- package/dist/mint-components/p-92bd9068.entry.js +0 -1
- package/dist/mint-components/p-94f14e93.entry.js +0 -1
- package/dist/mint-components/p-95657c3d.system.entry.js +0 -1
- package/dist/mint-components/p-98cf8c8a.system.entry.js +0 -1
- package/dist/mint-components/p-99eda7e9.entry.js +0 -1
- package/dist/mint-components/p-9a0b33d5.js +0 -227
- package/dist/mint-components/p-a3fa576f.entry.js +0 -1
- package/dist/mint-components/p-a4cd6394.js +0 -1
- package/dist/mint-components/p-a6f149a3.system.entry.js +0 -1
- package/dist/mint-components/p-a8e061d3.system.entry.js +0 -1
- package/dist/mint-components/p-a8f4e577.system.entry.js +0 -1
- package/dist/mint-components/p-aa1b09ae.system.entry.js +0 -1
- package/dist/mint-components/p-aada2237.system.entry.js +0 -1
- package/dist/mint-components/p-af7c4bc0.entry.js +0 -1
- package/dist/mint-components/p-b3af1c6f.js +0 -1
- package/dist/mint-components/p-b542019e.entry.js +0 -1
- package/dist/mint-components/p-b7060a6f.entry.js +0 -9
- package/dist/mint-components/p-bb8888a7.js +0 -1
- package/dist/mint-components/p-bf055b6c.system.js +0 -1
- package/dist/mint-components/p-c318358f.entry.js +0 -1
- package/dist/mint-components/p-c54e7713.system.entry.js +0 -1
- package/dist/mint-components/p-c5dce1f2.system.entry.js +0 -1
- package/dist/mint-components/p-c61bdebb.js +0 -26
- package/dist/mint-components/p-ca384345.system.entry.js +0 -1
- package/dist/mint-components/p-d01a999c.system.js +0 -1
- package/dist/mint-components/p-d1fe9867.system.entry.js +0 -1
- package/dist/mint-components/p-d4454d55.system.js +0 -1
- package/dist/mint-components/p-d4755688.js +0 -1
- package/dist/mint-components/p-d7ede23d.system.entry.js +0 -1
- package/dist/mint-components/p-d9876165.entry.js +0 -1
- package/dist/mint-components/p-de2b7932.js +0 -1
- package/dist/mint-components/p-deae69d8.entry.js +0 -13
- package/dist/mint-components/p-df789324.js +0 -1
- package/dist/mint-components/p-dfe5a97d.js +0 -1
- package/dist/mint-components/p-e3b47a40.entry.js +0 -1
- package/dist/mint-components/p-e9a66887.entry.js +0 -1
- package/dist/mint-components/p-ea2de715.system.entry.js +0 -1
- package/dist/mint-components/p-eb4a2d88.system.entry.js +0 -1
- package/dist/mint-components/p-eb8d03be.system.entry.js +0 -1
- package/dist/mint-components/p-ec7668af.system.entry.js +0 -1
- package/dist/mint-components/p-f4c0cd0b.js +0 -1
- package/dist/mint-components/p-fa6d2643.system.js +0 -1
- package/dist/mint-components/p-fac5518f.system.entry.js +0 -1
- package/dist/mint-components/p-fb895943.system.entry.js +0 -1
- package/dist/mint-components/p-fbe6c3a2.entry.js +0 -1
- package/dist/mint-components/p-ff7f8799.entry.js +0 -1
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-b0129cd6.js');
|
|
6
|
-
require('./_commonjsHelpers-dcc4cf71.js');
|
|
7
|
-
const stencilHooks_module = require('./stencil-hooks.module-426df801.js');
|
|
8
|
-
|
|
9
|
-
const sqmFormMessageCss = "sl-alert::part(base){border:1px solid;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(20, 20, 20, 0.1);box-shadow:0 1px 2px rgba(20, 20, 20, 0.1)}.Error::part(base){background-color:var(--sl-color-danger-100);border-color:var(--sl-color-danger-200)}.Success::part(base){background-color:var(--sl-color-success-100);border-color:var(--sl-color-success-200)}.Info::part(base){background-color:var(--sl-color-primary-100);border-color:var(--sl-color-primary-200)}";
|
|
10
|
-
|
|
11
|
-
const FormMessage = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.ignored = true;
|
|
15
|
-
stencilHooks_module.h$1(this);
|
|
16
|
-
}
|
|
17
|
-
disconnectedCallback() { }
|
|
18
|
-
render() {
|
|
19
|
-
if (this.type === "error") {
|
|
20
|
-
return (index.h("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class: "Error", type: "danger", open: true }, index.h("sl-icon", { slot: "icon", name: `${this.icon ? this.icon : "exclamation-octagon"}` }), index.h("slot", null)));
|
|
21
|
-
}
|
|
22
|
-
else if (this.type === "info") {
|
|
23
|
-
return (index.h("sl-alert", { exportparts: "base: infoalert-base, icon:infoalert-icon", class: "Info", type: "primary", open: true }, index.h("sl-icon", { slot: "icon", name: `${this.icon ? this.icon : "info-circle"}` }), index.h("slot", null)));
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
return (index.h("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon", class: "Success", type: "success", open: true }, index.h("sl-icon", { slot: "icon", name: `${this.icon ? this.icon : "check2-circle"}` }), index.h("slot", null)));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
FormMessage.style = sqmFormMessageCss;
|
|
31
|
-
|
|
32
|
-
exports.sqm_form_message = FormMessage;
|
|
@@ -1,584 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-b0129cd6.js');
|
|
6
|
-
require('./_commonjsHelpers-dcc4cf71.js');
|
|
7
|
-
const stencilHooks_module = require('./stencil-hooks.module-426df801.js');
|
|
8
|
-
require('./use-callback-c5f2b2fe.js');
|
|
9
|
-
const index_module = require('./index.module-89be78a4.js');
|
|
10
|
-
require('./extends-08099afd.js');
|
|
11
|
-
const jssPresetDefault_esm = require('./jss-preset-default.esm-62f8ddc9.js');
|
|
12
|
-
const cjs = require('./cjs-1066ec21.js');
|
|
13
|
-
const mixins = require('./mixins-7b7c59fe.js');
|
|
14
|
-
|
|
15
|
-
var constants = {
|
|
16
|
-
error: {
|
|
17
|
-
length: 'Length should be a valid positive number',
|
|
18
|
-
password: 'Password should be a valid string'
|
|
19
|
-
},
|
|
20
|
-
regex: {
|
|
21
|
-
digits: '(\\d.*)',
|
|
22
|
-
letters: '([a-zA-Z].*)',
|
|
23
|
-
symbols: '([`~\\!@#\\$%\\^\\&\\*\\(\\)\\-_\\=\\+\\[\\\{\\}\\]\\\\\|;:\\\'",<.>\\/\\?€£¥₹§±].*)',
|
|
24
|
-
spaces: '([\\s].*)'
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Generic method to test regex
|
|
30
|
-
*
|
|
31
|
-
* @private
|
|
32
|
-
* @param {string} regex - regex to test
|
|
33
|
-
* with password
|
|
34
|
-
*/
|
|
35
|
-
var regex = constants.regex;
|
|
36
|
-
|
|
37
|
-
function _process(regexp, repeat) {
|
|
38
|
-
if (repeat && repeat > 1) {
|
|
39
|
-
const parsedRepeat = parseInt(repeat, 10);
|
|
40
|
-
return new RegExp(regexp + '{' + parsedRepeat + ',}').test(this.password) === this.positive;
|
|
41
|
-
}
|
|
42
|
-
return new RegExp(regexp).test(this.password) === this.positive;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
var lib = {
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Method to invert the next validations
|
|
49
|
-
*
|
|
50
|
-
* @param {RegExp} [symbol] - custom Regex which should not be present
|
|
51
|
-
*/
|
|
52
|
-
not: function not(symbol) {
|
|
53
|
-
this.positive = false;
|
|
54
|
-
if (symbol) {
|
|
55
|
-
return _process.call(this, symbol);
|
|
56
|
-
}
|
|
57
|
-
return true;
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Method to invert the effects of not()
|
|
62
|
-
*
|
|
63
|
-
* @param {RegExp} [symbol] - custom Regex which should be present
|
|
64
|
-
*/
|
|
65
|
-
has: function has(symbol) {
|
|
66
|
-
this.positive = true;
|
|
67
|
-
if (symbol) {
|
|
68
|
-
return _process.call(this, symbol);
|
|
69
|
-
}
|
|
70
|
-
return true;
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Method to invert the effects of not() and
|
|
75
|
-
* to make the api readable and chainable
|
|
76
|
-
*
|
|
77
|
-
*/
|
|
78
|
-
is: function is() {
|
|
79
|
-
this.positive = true;
|
|
80
|
-
return true;
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Method to specify a minimum length
|
|
85
|
-
*
|
|
86
|
-
* @param {number} num - minimum length
|
|
87
|
-
*/
|
|
88
|
-
min: function min(num) {
|
|
89
|
-
return this.password.length >= num;
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Method to specify a maximum length
|
|
94
|
-
*
|
|
95
|
-
* @param {number} num - maximum length
|
|
96
|
-
*/
|
|
97
|
-
max: function max(num) {
|
|
98
|
-
return this.password.length <= num;
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Method to validate the presence of digits
|
|
103
|
-
*
|
|
104
|
-
* @param {number} repeat - count of required digits
|
|
105
|
-
*/
|
|
106
|
-
digits: function digits(repeat) {
|
|
107
|
-
return _process.call(this, regex.digits, repeat);
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Method to validate the presence of letters
|
|
112
|
-
*
|
|
113
|
-
* @param {number} repeat - count of required letters
|
|
114
|
-
*/
|
|
115
|
-
letters: function letters(repeat) {
|
|
116
|
-
return _process.call(this, regex.letters, repeat);
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Method to validate the presence of uppercase letters
|
|
121
|
-
*
|
|
122
|
-
* @param {number} repeat - count of required uppercase letters
|
|
123
|
-
*/
|
|
124
|
-
uppercase: function uppercase(repeat) {
|
|
125
|
-
if (repeat && repeat > 1) {
|
|
126
|
-
let characterIndex = 0;
|
|
127
|
-
let upperCaseLetters = 0;
|
|
128
|
-
|
|
129
|
-
while ((upperCaseLetters < repeat) && (characterIndex < this.password.length)) {
|
|
130
|
-
const currentLetter = this.password.charAt(characterIndex);
|
|
131
|
-
if (currentLetter !== currentLetter.toLowerCase()) {
|
|
132
|
-
upperCaseLetters++;
|
|
133
|
-
}
|
|
134
|
-
characterIndex++;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
return (upperCaseLetters === repeat) === this.positive;
|
|
138
|
-
}
|
|
139
|
-
return (this.password !== this.password.toLowerCase()) === this.positive;
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Method to validate the presence of lowercase letters
|
|
144
|
-
*
|
|
145
|
-
* @param {number} repeat - count of required lowercase letters
|
|
146
|
-
*/
|
|
147
|
-
lowercase: function lowercase(repeat) {
|
|
148
|
-
if (repeat && repeat > 1) {
|
|
149
|
-
let characterIndex = 0;
|
|
150
|
-
let lowerCaseLetters = 0;
|
|
151
|
-
|
|
152
|
-
while ((lowerCaseLetters < repeat) && (characterIndex < this.password.length)) {
|
|
153
|
-
const currentLetter = this.password.charAt(characterIndex);
|
|
154
|
-
if (currentLetter !== currentLetter.toUpperCase()) {
|
|
155
|
-
lowerCaseLetters++;
|
|
156
|
-
}
|
|
157
|
-
characterIndex++;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
return (lowerCaseLetters === repeat) === this.positive;
|
|
161
|
-
}
|
|
162
|
-
return (this.password !== this.password.toUpperCase()) === this.positive;
|
|
163
|
-
},
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Method to validate the presence of symbols
|
|
167
|
-
*
|
|
168
|
-
* @param {number} repeat - count of required symbols
|
|
169
|
-
*/
|
|
170
|
-
symbols: function symbols(repeat) {
|
|
171
|
-
return _process.call(this, regex.symbols, repeat);
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Method to validate the presence of space
|
|
176
|
-
*
|
|
177
|
-
* @param {number} repeat - count of required spaces
|
|
178
|
-
*/
|
|
179
|
-
spaces: function spaces(repeat) {
|
|
180
|
-
return _process.call(this, regex.spaces, repeat);
|
|
181
|
-
},
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Method to provide pre-defined values for password
|
|
185
|
-
*
|
|
186
|
-
* @param {array} list - list of values allowed
|
|
187
|
-
*/
|
|
188
|
-
oneOf: function oneOf(list) {
|
|
189
|
-
return list.indexOf(this.password) >= 0 === this.positive;
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
var error = constants.error;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Validates that a number is a valid length (positive number)
|
|
197
|
-
*
|
|
198
|
-
* @private
|
|
199
|
-
* @param {number} num - Number to validate
|
|
200
|
-
*/
|
|
201
|
-
function _validateLength(num) {
|
|
202
|
-
const len = Number(num);
|
|
203
|
-
if (isNaN(len) || !Number.isInteger(len) || len < 1) {
|
|
204
|
-
throw new Error(error.length);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Tests a validation and return the result
|
|
210
|
-
*
|
|
211
|
-
* @private
|
|
212
|
-
* @param {string} property - Property to validate
|
|
213
|
-
* @return {boolean} Boolean value indicting the validity
|
|
214
|
-
* of the password against the property
|
|
215
|
-
*/
|
|
216
|
-
function _isPasswordValidFor(property) {
|
|
217
|
-
return lib[property.method].apply(this, property.arguments);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Registers the properties of a password-validation schema object
|
|
222
|
-
*
|
|
223
|
-
* @private
|
|
224
|
-
* @param {string} func - Property name
|
|
225
|
-
* @param {array} args - arguments for the func property
|
|
226
|
-
*/
|
|
227
|
-
function _register(func, args) {
|
|
228
|
-
// Add property to the schema
|
|
229
|
-
this.properties.push({ method: func, arguments: args });
|
|
230
|
-
return this;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
class PasswordValidator {
|
|
234
|
-
/**
|
|
235
|
-
* Creates a password-validator schema
|
|
236
|
-
*
|
|
237
|
-
* @constructor
|
|
238
|
-
*/
|
|
239
|
-
constructor() {
|
|
240
|
-
this.properties = [];
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Method to validate the password against schema
|
|
245
|
-
*
|
|
246
|
-
* @param {string} pwd - password to valdiate
|
|
247
|
-
* @param {object} options - optional options to configure validation
|
|
248
|
-
* @param {boolean} [options.list] - asks for a list of validation
|
|
249
|
-
* failures instead of just true/false
|
|
250
|
-
* @return {boolean|array} Boolean value indicting the validity
|
|
251
|
-
* of the password as per schema, if 'options.list'
|
|
252
|
-
* is not set. Otherwise, it returns an array of
|
|
253
|
-
* property names which failed validations
|
|
254
|
-
*/
|
|
255
|
-
validate(pwd, options) {
|
|
256
|
-
this.list = Boolean(options && options.list);
|
|
257
|
-
this.password = String(pwd);
|
|
258
|
-
|
|
259
|
-
this.positive = true;
|
|
260
|
-
|
|
261
|
-
if (this.list) {
|
|
262
|
-
return this.properties.reduce((errorList, property) => {
|
|
263
|
-
// Applies all validations defined in lib one by one
|
|
264
|
-
if (!_isPasswordValidFor.call(this, property)) {
|
|
265
|
-
// If the validation for a property fails,
|
|
266
|
-
// add it to the error list
|
|
267
|
-
return errorList.concat(property.method);
|
|
268
|
-
}
|
|
269
|
-
return errorList;
|
|
270
|
-
}, []);
|
|
271
|
-
}
|
|
272
|
-
return this.properties.every(_isPasswordValidFor.bind(this));
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Rule to mandate the presence of letters in the password
|
|
277
|
-
*
|
|
278
|
-
* @param {number} [count] - minimum number of letters required
|
|
279
|
-
*/
|
|
280
|
-
letters(count) {
|
|
281
|
-
count && _validateLength(count);
|
|
282
|
-
return _register.call(this, 'letters', arguments);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Rule to mandate the presence of digits in the password
|
|
287
|
-
*
|
|
288
|
-
* @param {number} [count] - minimum number of digits required
|
|
289
|
-
*/
|
|
290
|
-
digits(count) {
|
|
291
|
-
count && _validateLength(count);
|
|
292
|
-
return _register.call(this, 'digits', arguments);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Rule to mandate the presence of symbols in the password
|
|
297
|
-
*
|
|
298
|
-
* @param {number} [count] - minimum number of symbols required
|
|
299
|
-
*/
|
|
300
|
-
symbols(count) {
|
|
301
|
-
count && _validateLength(count);
|
|
302
|
-
return _register.call(this, 'symbols', arguments);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Rule to specify a minimum length of the password
|
|
307
|
-
*
|
|
308
|
-
* @param {number} num - minimum length
|
|
309
|
-
*/
|
|
310
|
-
min(num) {
|
|
311
|
-
_validateLength(num);
|
|
312
|
-
return _register.call(this, 'min', arguments);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Rule to specify a maximum length of the password
|
|
317
|
-
*
|
|
318
|
-
* @param {number} num - maximum length
|
|
319
|
-
*/
|
|
320
|
-
max(num) {
|
|
321
|
-
_validateLength(num);
|
|
322
|
-
return _register.call(this, 'max', arguments);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Rule to mandate the presence of lowercase letters in the password
|
|
327
|
-
*
|
|
328
|
-
* @param {number} [count] - minimum number of lowercase letters required
|
|
329
|
-
*/
|
|
330
|
-
lowercase(count) {
|
|
331
|
-
count && _validateLength(count);
|
|
332
|
-
return _register.call(this, 'lowercase', arguments);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Rule to mandate the presence of uppercase letters in the password
|
|
337
|
-
*
|
|
338
|
-
* @param {number} [count] - minimum number of uppercase letters required
|
|
339
|
-
*/
|
|
340
|
-
uppercase(count) {
|
|
341
|
-
count && _validateLength(count);
|
|
342
|
-
return _register.call(this, 'uppercase', arguments);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Rule to mandate the presence of space in the password
|
|
347
|
-
* It can be used along with 'not' to not allow spaces
|
|
348
|
-
* in the password
|
|
349
|
-
*
|
|
350
|
-
* @param {number} [count] - minimum number of spaces required
|
|
351
|
-
*/
|
|
352
|
-
spaces(count) {
|
|
353
|
-
count && _validateLength(count);
|
|
354
|
-
return _register.call(this, 'spaces', arguments);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* Rule to invert the effects of 'not'
|
|
359
|
-
* Apart from that, 'has' is also used
|
|
360
|
-
* to make the api readable and chainable
|
|
361
|
-
*/
|
|
362
|
-
has() {
|
|
363
|
-
return _register.call(this, 'has', arguments);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* Rule to invert the next applied rules.
|
|
368
|
-
* All the rules applied after 'not' will have opposite effect,
|
|
369
|
-
* until 'has' rule is applied
|
|
370
|
-
*/
|
|
371
|
-
not() {
|
|
372
|
-
return _register.call(this, 'not', arguments);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* Rule to invert the effects of 'not'
|
|
377
|
-
* Apart from that, 'is' is also used
|
|
378
|
-
* to make the api readable and chainable
|
|
379
|
-
*/
|
|
380
|
-
is() {
|
|
381
|
-
return _register.call(this, 'is', arguments);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Rule to whitelist words to be used as password
|
|
386
|
-
*
|
|
387
|
-
* @param {array} list - list of values allowed
|
|
388
|
-
*/
|
|
389
|
-
oneOf() {
|
|
390
|
-
return _register.call(this, 'oneOf', arguments);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
var src = PasswordValidator;
|
|
395
|
-
|
|
396
|
-
const passwordSchema = new src()
|
|
397
|
-
.is()
|
|
398
|
-
.min(8) // Minimum length 8
|
|
399
|
-
.has()
|
|
400
|
-
.uppercase() // Must have uppercase letters
|
|
401
|
-
.has()
|
|
402
|
-
.lowercase() // Must have lowercase letters
|
|
403
|
-
.has(/([\d`~\!@#\$%\^\&\*\(\)\-_\=\+\[\{\}\]\\\|;:'",<.>\/\?€£¥₹§±].*){1,}/); // Must contain at least 1 digit or symbol
|
|
404
|
-
// Taken from combining https://github.com/tarunbatra/password-validator/blob/40184970e4f65efa8aed7a64185a011a3b5d0e54/src/constants.js#L9
|
|
405
|
-
const validateNewPassword = (password) => {
|
|
406
|
-
const errors = passwordSchema.validate(password, { list: true });
|
|
407
|
-
const message = getErrorMessage(errors, password);
|
|
408
|
-
return message;
|
|
409
|
-
};
|
|
410
|
-
const Valid = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" },
|
|
411
|
-
index.h("path", { d: "M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM4.8 9L1.8 6L2.646 5.154L4.8 7.302L9.354 2.748L10.2 3.6L4.8 9Z", fill: "#259053" })));
|
|
412
|
-
const Invalid = () => (index.h("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
413
|
-
index.h("path", { d: "M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM6 10.8C3.354 10.8 1.2 8.646 1.2 6C1.2 3.354 3.354 1.2 6 1.2C8.646 1.2 10.8 3.354 10.8 6C10.8 8.646 8.646 10.8 6 10.8ZM8.754 3.348L4.8 7.302L3.246 5.754L2.4 6.6L4.8 9L9.6 4.2L8.754 3.348Z", fill: "#555555" })));
|
|
414
|
-
const validationMessages = {
|
|
415
|
-
min: "be a minimum of 8 characters",
|
|
416
|
-
uppercase: "contain at least 1 uppercase character",
|
|
417
|
-
lowercase: "contain at least 1 lowercase character",
|
|
418
|
-
has: "contain at least 1 number or symbol",
|
|
419
|
-
};
|
|
420
|
-
const baseItem = {
|
|
421
|
-
display: "flex",
|
|
422
|
-
alignItems: "center",
|
|
423
|
-
fontSize: "var(--sl-font-size-small)",
|
|
424
|
-
"& > :not(:last-child)": {
|
|
425
|
-
"margin-right": "var(--sl-spacing-x-small)",
|
|
426
|
-
},
|
|
427
|
-
};
|
|
428
|
-
const style = {
|
|
429
|
-
Base: {
|
|
430
|
-
fontSize: "var(--sl-font-size-small)",
|
|
431
|
-
},
|
|
432
|
-
ValidationList: {
|
|
433
|
-
"list-style-type": "none",
|
|
434
|
-
paddingRight: "var(--sl-spacing-large)",
|
|
435
|
-
margin: "var(--sl-spacing-small) 0 var(--sl-spacing-x-large)",
|
|
436
|
-
"& > :not(:last-child)": {
|
|
437
|
-
"margin-bottom": "var(--sl-spacing-xx-small)",
|
|
438
|
-
},
|
|
439
|
-
"& *": {
|
|
440
|
-
"line-height": "var(--sl-line-height-dense)",
|
|
441
|
-
},
|
|
442
|
-
},
|
|
443
|
-
ValidationItemValid: {
|
|
444
|
-
...baseItem,
|
|
445
|
-
color: "var(--sl-color-success-600)",
|
|
446
|
-
},
|
|
447
|
-
ValidationItemInvalid: { ...baseItem },
|
|
448
|
-
};
|
|
449
|
-
jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
|
|
450
|
-
const sheet = jssPresetDefault_esm.jss.createStyleSheet(style);
|
|
451
|
-
const styleString = sheet.toString();
|
|
452
|
-
const getErrorMessage = (errorKeys, password) => {
|
|
453
|
-
if (!errorKeys.length && password)
|
|
454
|
-
return (index.h("div", { class: sheet.classes.ValidationItemValid, style: { paddingBottom: "var(--sl-spacing-x-large)" } },
|
|
455
|
-
index.h("style", { type: "text/css" }, styleString),
|
|
456
|
-
index.h(Valid, null),
|
|
457
|
-
" ",
|
|
458
|
-
index.h("span", null, "Password has met all requirements")));
|
|
459
|
-
return (index.h("div", { class: sheet.classes.Base },
|
|
460
|
-
index.h("style", { type: "text/css" }, styleString),
|
|
461
|
-
"Password must meet the following requirements:",
|
|
462
|
-
index.h("ul", { class: sheet.classes.ValidationList }, Object.keys(validationMessages).map((errorKey) => errorKeys.includes(errorKey) ? (index.h("li", { class: sheet.classes.ValidationItemInvalid },
|
|
463
|
-
index.h(Invalid, null),
|
|
464
|
-
" ",
|
|
465
|
-
index.h("span", null, validationMessages[errorKey]))) : (index.h("li", { class: sheet.classes.ValidationItemValid },
|
|
466
|
-
index.h(Valid, null),
|
|
467
|
-
" ",
|
|
468
|
-
index.h("span", null, validationMessages[errorKey])))))));
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
const style$1 = {
|
|
472
|
-
InputContainer: {
|
|
473
|
-
"& > :not(:last-child)": {
|
|
474
|
-
"margin-bottom": "20px",
|
|
475
|
-
},
|
|
476
|
-
},
|
|
477
|
-
ErrorStyle: mixins.ErrorStyles,
|
|
478
|
-
};
|
|
479
|
-
const vanillaStyle = `
|
|
480
|
-
:host {
|
|
481
|
-
margin: 0 auto;
|
|
482
|
-
width: 100%;
|
|
483
|
-
display: block;
|
|
484
|
-
}
|
|
485
|
-
:host([hidden]): {
|
|
486
|
-
display: none;
|
|
487
|
-
}
|
|
488
|
-
`;
|
|
489
|
-
jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
|
|
490
|
-
const sheet$1 = jssPresetDefault_esm.jss.createStyleSheet(style$1);
|
|
491
|
-
const styleString$1 = sheet$1.toString();
|
|
492
|
-
function PortalResetPasswordView(props) {
|
|
493
|
-
var _a, _b;
|
|
494
|
-
const { states, callbacks } = props;
|
|
495
|
-
return (index.h("div", { class: sheet$1.classes.InputContainer },
|
|
496
|
-
index.h("style", { type: "text/css" },
|
|
497
|
-
vanillaStyle,
|
|
498
|
-
styleString$1),
|
|
499
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/password", label: states.content.fieldLabel || "Password", required: true, validationError: ({ value }) => {
|
|
500
|
-
if (!value) {
|
|
501
|
-
return "Cannot be empty";
|
|
502
|
-
}
|
|
503
|
-
} }, (((_a = states.validationErrors) === null || _a === void 0 ? void 0 : _a.password) ? {
|
|
504
|
-
class: sheet$1.classes.ErrorStyle,
|
|
505
|
-
helpText: ((_b = states.validationErrors) === null || _b === void 0 ? void 0 : _b.password) || "Cannot be empty",
|
|
506
|
-
}
|
|
507
|
-
: []), { onInput: (input) => states.enableValidation && callbacks.onInput(input) })),
|
|
508
|
-
states.dynamicValidation));
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
const CONTEXT_NAME = "sq:validation-state";
|
|
512
|
-
function usePasswordField(props) {
|
|
513
|
-
const validationState = stencilHooks_module.d(CONTEXT_NAME);
|
|
514
|
-
const [dynamicValidation, setDynamicValidation] = stencilHooks_module.useState("");
|
|
515
|
-
function onInput(input) {
|
|
516
|
-
const validation = validateNewPassword(input.target.value);
|
|
517
|
-
setDynamicValidation(validation);
|
|
518
|
-
}
|
|
519
|
-
return {
|
|
520
|
-
states: {
|
|
521
|
-
enableValidation: props.enableValidation,
|
|
522
|
-
dynamicValidation,
|
|
523
|
-
validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
|
|
524
|
-
content: {
|
|
525
|
-
fieldLabel: props.fieldLabel,
|
|
526
|
-
},
|
|
527
|
-
},
|
|
528
|
-
callbacks: {
|
|
529
|
-
onInput,
|
|
530
|
-
},
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
const PortalPasswordField = class {
|
|
535
|
-
constructor(hostRef) {
|
|
536
|
-
index.registerInstance(this, hostRef);
|
|
537
|
-
this.ignored = true;
|
|
538
|
-
/**
|
|
539
|
-
* @uiName Label for password field
|
|
540
|
-
*/
|
|
541
|
-
this.fieldLabel = "Password";
|
|
542
|
-
/**
|
|
543
|
-
* @uiName Enable live password validation
|
|
544
|
-
*/
|
|
545
|
-
this.enableValidation = true;
|
|
546
|
-
stencilHooks_module.h$1(this);
|
|
547
|
-
}
|
|
548
|
-
disconnectedCallback() { }
|
|
549
|
-
render() {
|
|
550
|
-
const { states, callbacks } = index_module.j()
|
|
551
|
-
? usePasswordFieldDemo(this)
|
|
552
|
-
: usePasswordField(this);
|
|
553
|
-
return index.h(PortalResetPasswordView, { states: states, callbacks: callbacks });
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
|
-
function usePasswordFieldDemo(props) {
|
|
557
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
558
|
-
const [dynamicValidation, setDynamicValidation] = stencilHooks_module.useState("");
|
|
559
|
-
const [lastValidated, setLastValidated] = stencilHooks_module.useState("");
|
|
560
|
-
if (props.demoData && lastValidated != ((_a = props === null || props === void 0 ? void 0 : props.demoData) === null || _a === void 0 ? void 0 : _a.initValue)) {
|
|
561
|
-
const validation = validateNewPassword(((_b = props === null || props === void 0 ? void 0 : props.demoData) === null || _b === void 0 ? void 0 : _b.initValue) || "");
|
|
562
|
-
setDynamicValidation(((_c = props === null || props === void 0 ? void 0 : props.demoData) === null || _c === void 0 ? void 0 : _c.initValue) === "" ? "" : validation);
|
|
563
|
-
setLastValidated((_d = props === null || props === void 0 ? void 0 : props.demoData) === null || _d === void 0 ? void 0 : _d.initValue);
|
|
564
|
-
}
|
|
565
|
-
function onInput(input) {
|
|
566
|
-
const validation = validateNewPassword(input.target.value);
|
|
567
|
-
setDynamicValidation(validation);
|
|
568
|
-
}
|
|
569
|
-
return cjs.cjs({
|
|
570
|
-
states: {
|
|
571
|
-
enableValidation: true,
|
|
572
|
-
dynamicValidation,
|
|
573
|
-
validationErrors: ((_f = (_e = props === null || props === void 0 ? void 0 : props.demoData) === null || _e === void 0 ? void 0 : _e.states) === null || _f === void 0 ? void 0 : _f.validationErrors) || {},
|
|
574
|
-
content: {
|
|
575
|
-
fieldLabel: "Password",
|
|
576
|
-
},
|
|
577
|
-
},
|
|
578
|
-
callbacks: {
|
|
579
|
-
onInput,
|
|
580
|
-
},
|
|
581
|
-
}, ((_g = props === null || props === void 0 ? void 0 : props.demoData) === null || _g === void 0 ? void 0 : _g.states) || {}, { arrayMerge: (_, a) => a });
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
exports.sqm_password_field = PortalPasswordField;
|