@saasquatch/mint-components 1.6.1-7 → 1.6.2-0
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/{GenericTableView-9d93f114.js → GenericTableView-4921be4b.js} +5 -1
- package/dist/cjs/{ShadowViewAddon-1bbdf477.js → ShadowViewAddon-7b7dd5e3.js} +21 -16
- package/dist/cjs/{global-22fb2ec7.js → global-6e1584a6.js} +2 -2
- package/dist/cjs/{index.module-fb61a163.js → index.module-d169a23f.js} +30 -29
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/raisins-plop-target.cjs.entry.js +25 -0
- package/dist/cjs/{re-render-7248fc06.js → re-render-83d1c1f0.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +103 -3965
- package/dist/cjs/sqm-empty_5.cjs.entry.js +5 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-navigation-sidebar-item-view-52ab014f.js → sqm-navigation-sidebar-item-view-7ff14840.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-fc30fd1a.js → sqm-portal-email-verification-view-6b4ef802.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +10 -8
- package/dist/cjs/{sqm-portal-footer-view-78528c31.js → sqm-portal-footer-view-204583ac.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +8 -6
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-64e85659.js → sqm-portal-profile-view-444c8e2c.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -6
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +309 -0
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +17 -9
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -8
- package/dist/cjs/sqm-qa-referral-card.cjs.entry.js +89 -0
- package/dist/cjs/sqm-qa-tabs.cjs.entry.js +100 -0
- package/dist/cjs/sqm-qa.cjs.entry.js +16 -14
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +33 -9
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +36 -14
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +169 -96
- package/dist/cjs/sqm-tabs.cjs.entry.js +19 -5
- package/dist/cjs/{useChildElements-24538fc5.js → useChildElements-36106d83.js} +2 -2
- package/dist/cjs/{useReferralTable-1e71d2dc.js → useReferralTable-1aab8416.js} +8 -8
- package/dist/cjs/useValidationState-733d7e8c.js +3886 -0
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +9 -5
- package/dist/collection/components/sqm-big-stat/useBigStat.js +3 -0
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +3 -0
- package/dist/collection/components/sqm-brand/sqm-brand.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +4 -0
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +4 -0
- package/dist/collection/components/sqm-empty/sqm-empty.js +4 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +4 -0
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +4 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +74 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +4 -4
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +0 -4
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +2 -2
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +2 -2
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +4 -2
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +4 -2
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +3 -2
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +4 -0
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +8 -0
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +2 -2
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +104 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +74 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +409 -0
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +119 -0
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +4 -0
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +10 -3
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +3 -2
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +1 -1
- package/dist/collection/components/sqm-qa/sqm-qa.js +549 -30
- package/dist/collection/components/sqm-qa-referral-card/ReferralCard.stories.js +79 -0
- package/dist/collection/components/sqm-qa-referral-card/sqm-referral-card-view.js +56 -0
- package/dist/collection/components/sqm-qa-referral-card/sqm-referral-card.js +70 -0
- package/dist/collection/components/sqm-qa-tabs/Tabs.stories.js +491 -0
- package/dist/collection/components/sqm-qa-tabs/sqm-tabs-view.js +31 -0
- package/dist/collection/components/sqm-qa-tabs/sqm-tabs.js +59 -0
- package/dist/collection/components/sqm-qa-tabs/useTabs.js +46 -0
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +4 -0
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +29 -3
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +0 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-plop-target.js +58 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +10 -6
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +18 -2
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +5 -7
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +8 -0
- package/dist/collection/components/sqm-tab/sqm-tab.js +1 -1
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +5 -0
- package/dist/collection/components/sqm-tabs/useTabs.js +11 -2
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +17 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +1 -1
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +9 -5
- package/dist/collection/tables/GenericTableView.js +5 -1
- package/dist/esm/{GenericTableView-ebc09be0.js → GenericTableView-59c5d47c.js} +5 -1
- package/dist/esm/{ShadowViewAddon-e2996624.js → ShadowViewAddon-82a3c62b.js} +23 -18
- package/dist/esm/{global-5c84f57f.js → global-59aa17be.js} +3 -3
- package/dist/esm/{index.module-f5e17a4e.js → index.module-c6c6943f.js} +5 -5
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-f44215d9.js → luxon-578505e2.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/raisins-plop-target.entry.js +21 -0
- package/dist/esm/{re-render-69774e13.js → re-render-e804551e.js} +5 -5
- package/dist/esm/sqm-asset-card.entry.js +4 -4
- package/dist/esm/sqm-big-stat_35.entry.js +101 -3963
- package/dist/esm/sqm-empty_5.entry.js +6 -2
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +7 -7
- package/dist/esm/{sqm-hero-view-71d1202f.js → sqm-hero-view-b54265df.js} +2 -2
- package/dist/esm/sqm-hero.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -8
- package/dist/esm/{sqm-navigation-sidebar-item-view-51714c31.js → sqm-navigation-sidebar-item-view-4181f286.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +6 -6
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-popup-container.entry.js +6 -6
- package/dist/esm/{sqm-portal-email-verification-view-ac38b167.js → sqm-portal-email-verification-view-5b888e5c.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +12 -10
- package/dist/esm/{sqm-portal-footer-view-a6d09022.js → sqm-portal-footer-view-56689d55.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +5 -5
- package/dist/esm/sqm-portal-forgot-password.entry.js +10 -8
- package/dist/esm/sqm-portal-logout.entry.js +6 -6
- package/dist/esm/{sqm-portal-profile-view-419d1eb9.js → sqm-portal-profile-view-148efa76.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +9 -9
- package/dist/esm/sqm-portal-protected-route.entry.js +9 -8
- package/dist/esm/sqm-portal-registration-form.entry.js +305 -0
- package/dist/esm/sqm-portal-reset-password.entry.js +19 -11
- package/dist/esm/sqm-portal-verify-email.entry.js +11 -10
- package/dist/esm/sqm-qa-referral-card.entry.js +85 -0
- package/dist/esm/sqm-qa-tabs.entry.js +96 -0
- package/dist/esm/sqm-qa.entry.js +17 -15
- package/dist/esm/sqm-referral-table_11.entry.js +36 -12
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +5 -5
- package/dist/esm/sqm-rewards-table_9.entry.js +39 -17
- package/dist/esm/sqm-stencilbook.entry.js +173 -100
- package/dist/esm/sqm-tabs.entry.js +21 -7
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-acc8a613.js → stencil-hooks.module-e39af977.js} +1 -1
- package/dist/esm/{use-callback-7e0bfd3b.js → use-callback-697e2ff0.js} +1 -1
- package/dist/esm/{useChildElements-a8347aea.js → useChildElements-31287783.js} +3 -3
- package/dist/esm/{useReferralTable-5cac5b13.js → useReferralTable-1693d531.js} +9 -9
- package/dist/esm/useValidationState-f5db8783.js +3882 -0
- package/dist/esm-es5/{GenericTableView-ebc09be0.js → GenericTableView-59c5d47c.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-82a3c62b.js +1 -0
- package/dist/esm-es5/{global-5c84f57f.js → global-59aa17be.js} +2 -2
- package/dist/esm-es5/{index.module-f5e17a4e.js → index.module-c6c6943f.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-f44215d9.js → luxon-578505e2.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -0
- package/dist/esm-es5/re-render-e804551e.js +1 -0
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- 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-71d1202f.js → sqm-hero-view-b54265df.js} +1 -1
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-4181f286.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.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-email-verification-view-ac38b167.js → sqm-portal-email-verification-view-5b888e5c.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-a6d09022.js → sqm-portal-footer-view-56689d55.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.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-419d1eb9.js → sqm-portal-profile-view-148efa76.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-registration-form.entry.js +1 -0
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-qa-referral-card.entry.js +1 -0
- package/dist/esm-es5/sqm-qa-tabs.entry.js +1 -0
- package/dist/esm-es5/sqm-qa.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-acc8a613.js → stencil-hooks.module-e39af977.js} +1 -1
- package/dist/esm-es5/use-callback-697e2ff0.js +1 -0
- package/dist/esm-es5/useChildElements-31287783.js +1 -0
- package/dist/esm-es5/useReferralTable-1693d531.js +1 -0
- package/dist/esm-es5/useValidationState-f5db8783.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-0616e87e.system.entry.js +1 -0
- package/dist/mint-components/{p-48f9babc.system.entry.js → p-0accfb5c.system.entry.js} +1 -1
- package/dist/mint-components/p-0b3b7596.entry.js +1 -0
- package/dist/mint-components/{p-ee26e870.entry.js → p-10483359.entry.js} +2 -2
- package/dist/mint-components/p-1125c6ef.entry.js +1 -0
- package/dist/mint-components/{p-3970de96.js → p-11a1a6a8.js} +1 -1
- package/dist/mint-components/p-144583fb.entry.js +1 -0
- package/dist/mint-components/{p-c0d24b76.system.entry.js → p-1537ba4c.system.entry.js} +1 -1
- package/dist/mint-components/{p-e01d8fdc.system.js → p-154958ee.system.js} +1 -1
- package/dist/mint-components/p-165bfabc.entry.js +1 -0
- package/dist/mint-components/{p-bd7b8620.system.entry.js → p-1706b667.system.entry.js} +1 -1
- package/dist/mint-components/{p-4b0e876f.js → p-199defdf.js} +2 -2
- package/dist/mint-components/{p-7548e059.system.entry.js → p-1e665fe0.system.entry.js} +1 -1
- package/dist/mint-components/p-22b1898f.entry.js +1 -0
- package/dist/mint-components/p-29ceaa99.system.entry.js +1 -0
- package/dist/mint-components/{p-f298a1bc.system.entry.js → p-2ba9b60a.system.entry.js} +1 -1
- package/dist/mint-components/p-2c64d0fb.entry.js +1 -0
- package/dist/mint-components/{p-27455c4c.js → p-30b3592f.js} +1 -1
- package/dist/mint-components/p-31553b15.entry.js +1 -0
- package/dist/mint-components/{p-6738565c.entry.js → p-33e657bf.entry.js} +1 -1
- package/dist/mint-components/p-3521c62c.entry.js +1 -0
- package/dist/mint-components/p-3913a42f.system.entry.js +1 -0
- package/dist/mint-components/{p-5ab46a89.entry.js → p-3915b77c.entry.js} +1 -1
- package/dist/mint-components/p-3b99eaf1.js +1 -0
- package/dist/mint-components/p-408f983a.system.js +1 -0
- package/dist/mint-components/{p-bbf96ff3.system.js → p-4519c6d9.system.js} +1 -1
- package/dist/mint-components/{p-e707831a.entry.js → p-46aabfb7.entry.js} +1 -1
- package/dist/mint-components/{p-cf9cfac0.entry.js → p-48a1e759.entry.js} +1 -1
- package/dist/mint-components/p-4d90bec1.system.entry.js +1 -0
- package/dist/mint-components/{p-ba99d04e.system.entry.js → p-51c3cec9.system.entry.js} +1 -1
- package/dist/mint-components/{p-596902cd.system.entry.js → p-55678b75.system.entry.js} +1 -1
- package/dist/mint-components/{p-97650e34.js → p-5674fe4d.js} +1 -1
- package/dist/mint-components/p-5ad360ab.entry.js +13 -0
- package/dist/mint-components/p-5b2d40f4.system.entry.js +1 -0
- package/dist/mint-components/{p-72751bb7.entry.js → p-6352cbee.entry.js} +1 -1
- package/dist/mint-components/p-648022ed.entry.js +159 -0
- package/dist/mint-components/p-675d6c48.system.entry.js +1 -0
- package/dist/mint-components/{p-0494f792.js → p-6882f2bb.js} +1 -1
- package/dist/mint-components/{p-4ebe044d.entry.js → p-69f10938.entry.js} +1 -1
- package/dist/mint-components/p-6dabc870.system.entry.js +1 -0
- package/dist/mint-components/p-6dc6ed05.entry.js +1 -0
- package/dist/mint-components/p-706e42f0.system.js +1 -0
- package/dist/mint-components/{p-f92e3e87.system.js → p-71a504fd.system.js} +1 -1
- package/dist/mint-components/{p-eb314fed.js → p-72ebbd38.js} +1 -1
- package/dist/mint-components/p-73046229.js +1 -0
- package/dist/mint-components/p-745255d9.entry.js +1 -0
- package/dist/mint-components/{p-19042a54.system.entry.js → p-79c04821.system.entry.js} +1 -1
- package/dist/mint-components/p-7c660f98.entry.js +1 -0
- package/dist/mint-components/{p-3c96bae3.entry.js → p-7cec4e63.entry.js} +1 -1
- package/dist/mint-components/p-8153deff.entry.js +99 -0
- package/dist/mint-components/{p-60de562c.entry.js → p-82d1bb86.entry.js} +1 -1
- package/dist/mint-components/p-8425534f.entry.js +9 -0
- package/dist/mint-components/p-8858d00c.system.js +1 -0
- package/dist/mint-components/{p-6ee04453.entry.js → p-8f09f202.entry.js} +1 -1
- package/dist/mint-components/{p-82ecbcd1.js → p-8f12df83.js} +1 -1
- package/dist/mint-components/p-90efeeb4.entry.js +1 -0
- package/dist/mint-components/{p-7794c289.js → p-916a8f50.js} +1 -1
- package/dist/mint-components/{p-819298a8.system.js → p-92c99ab9.system.js} +1 -1
- package/dist/mint-components/{p-6549ad6a.system.js → p-946de27f.system.js} +1 -1
- package/dist/mint-components/{p-5cdcff11.system.entry.js → p-965b2770.system.entry.js} +1 -1
- package/dist/mint-components/p-97a63829.js +1 -0
- package/dist/mint-components/p-98eab726.system.js +1 -0
- package/dist/mint-components/p-a4a62f35.entry.js +1 -0
- package/dist/mint-components/p-a8efda40.js +1 -0
- package/dist/mint-components/p-aa998fc1.entry.js +1 -0
- package/dist/mint-components/{p-e4e5168b.entry.js → p-ae1a283d.entry.js} +1 -1
- package/dist/mint-components/p-b0bcbf67.js +268 -0
- package/dist/mint-components/{p-e2f8b782.system.entry.js → p-b1918aeb.system.entry.js} +1 -1
- package/dist/mint-components/{p-c11ce36c.js → p-b22b94ac.js} +1 -1
- package/dist/mint-components/p-c11237bf.system.entry.js +1 -0
- package/dist/mint-components/{p-0221bfef.system.entry.js → p-c14b6ff9.system.entry.js} +1 -1
- package/dist/mint-components/{p-e1d01511.system.js → p-c1c9bd9d.system.js} +1 -1
- package/dist/mint-components/{p-c0a8476e.system.entry.js → p-c4b55529.system.entry.js} +1 -1
- package/dist/mint-components/p-c5debea4.entry.js +1 -0
- package/dist/mint-components/p-c8c4e727.system.entry.js +1 -0
- package/dist/mint-components/{p-a6d4cffd.system.entry.js → p-c8c83a9e.system.entry.js} +1 -1
- package/dist/mint-components/p-d67a6057.entry.js +1 -0
- package/dist/mint-components/{p-63136070.system.entry.js → p-d8d0ec81.system.entry.js} +1 -1
- package/dist/mint-components/p-d9c3f39a.system.entry.js +1 -0
- package/dist/mint-components/{p-48ec6605.system.js → p-dc7b06ef.system.js} +1 -1
- package/dist/mint-components/p-dced4933.system.entry.js +1 -0
- package/dist/mint-components/p-ddeba605.system.entry.js +1 -0
- package/dist/mint-components/{p-dcdbf128.system.js → p-dfb6765a.system.js} +1 -1
- package/dist/mint-components/{p-4ac2d13b.system.entry.js → p-e00abc43.system.entry.js} +1 -1
- package/dist/mint-components/{p-28d44352.js → p-e175ad25.js} +1 -1
- package/dist/mint-components/p-e28dd7a3.system.js +1 -0
- package/dist/mint-components/{p-fc942cbd.system.js → p-e2bf9132.system.js} +1 -1
- package/dist/mint-components/p-e39919d4.system.js +1 -0
- package/dist/mint-components/{p-f6d3a2d4.system.js → p-e3acae66.system.js} +1 -1
- package/dist/mint-components/{p-78640db1.system.entry.js → p-ea5afb36.system.entry.js} +1 -1
- package/dist/mint-components/p-ee461c80.js +1 -0
- package/dist/mint-components/p-eeca87d4.system.entry.js +1 -0
- package/dist/mint-components/p-f0e2df53.system.entry.js +1 -0
- package/dist/mint-components/{p-047a840f.system.entry.js → p-f86ba72a.system.entry.js} +1 -1
- package/dist/mint-components/{p-0ee797b8.system.js → p-fb7288a2.system.js} +1 -1
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +6 -5
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -0
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -0
- package/dist/types/components/sqm-empty/sqm-empty.d.ts +4 -4
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +1 -0
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +1 -4
- package/dist/types/components/sqm-leaderboard-rank/sqm-leaderboard-rank.d.ts +0 -4
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +2 -2
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +1 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +2 -0
- package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +10 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +32 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +76 -0
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +25 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +1 -1
- package/dist/types/components/sqm-qa/sqm-qa.d.ts +155 -16
- package/dist/types/components/sqm-qa-referral-card/ReferralCard.stories.d.ts +14 -0
- package/dist/types/components/sqm-qa-referral-card/sqm-referral-card-view.d.ts +9 -0
- package/dist/types/components/sqm-qa-referral-card/sqm-referral-card.d.ts +20 -0
- package/dist/types/components/sqm-qa-tabs/Tabs.stories.d.ts +15 -0
- package/dist/types/components/sqm-qa-tabs/sqm-tabs-view.d.ts +9 -0
- package/dist/types/components/sqm-qa-tabs/sqm-tabs.d.ts +23 -0
- package/dist/types/components/sqm-qa-tabs/useTabs.d.ts +9 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +2 -1
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +0 -2
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-plop-target.d.ts +11 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +2 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +6 -2
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -1
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +6 -3
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +2 -0
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +5 -1
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +1 -1
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +6 -2
- package/dist/types/components.d.ts +591 -56
- 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/docs/docs.docx +0 -0
- package/docs/grapesjs.js +54 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +4 -4
- package/dist/esm-es5/ShadowViewAddon-e2996624.js +0 -1
- package/dist/esm-es5/re-render-69774e13.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-51714c31.js +0 -1
- package/dist/esm-es5/use-callback-7e0bfd3b.js +0 -1
- package/dist/esm-es5/useChildElements-a8347aea.js +0 -1
- package/dist/esm-es5/useReferralTable-5cac5b13.js +0 -1
- package/dist/mint-components/p-12a9ade0.entry.js +0 -99
- package/dist/mint-components/p-13086b8d.js +0 -1
- package/dist/mint-components/p-232672a2.entry.js +0 -13
- package/dist/mint-components/p-25ac7c14.system.entry.js +0 -1
- package/dist/mint-components/p-38d6112f.entry.js +0 -1
- package/dist/mint-components/p-3facf714.js +0 -268
- package/dist/mint-components/p-4a1f24ef.entry.js +0 -1
- package/dist/mint-components/p-4a2782fd.system.entry.js +0 -1
- package/dist/mint-components/p-4f8830b7.entry.js +0 -1
- package/dist/mint-components/p-4fe59c93.system.entry.js +0 -1
- package/dist/mint-components/p-60b01103.js +0 -1
- package/dist/mint-components/p-71969ce5.system.entry.js +0 -1
- package/dist/mint-components/p-71ecbb3b.system.js +0 -1
- package/dist/mint-components/p-77f8351e.system.entry.js +0 -1
- package/dist/mint-components/p-83e4168e.system.entry.js +0 -1
- package/dist/mint-components/p-91acec3d.entry.js +0 -159
- package/dist/mint-components/p-94096609.system.js +0 -1
- package/dist/mint-components/p-95398ce2.js +0 -1
- package/dist/mint-components/p-95bbe8a7.entry.js +0 -1
- package/dist/mint-components/p-982ad256.js +0 -1
- package/dist/mint-components/p-987ab546.entry.js +0 -9
- package/dist/mint-components/p-9eb6d960.entry.js +0 -1
- package/dist/mint-components/p-a57057c4.system.entry.js +0 -1
- package/dist/mint-components/p-ac6c93ee.entry.js +0 -1
- package/dist/mint-components/p-c7d34b6a.system.entry.js +0 -1
- package/dist/mint-components/p-cc6d91bd.entry.js +0 -1
- package/dist/mint-components/p-cccba50e.entry.js +0 -1
- package/dist/mint-components/p-d3cc0d60.system.js +0 -1
- package/dist/mint-components/p-d7bc7e50.entry.js +0 -1
- package/dist/mint-components/p-d815567f.system.js +0 -1
- package/dist/mint-components/p-e0d5d38e.system.entry.js +0 -1
- package/dist/mint-components/p-ef3f3523.entry.js +0 -1
- package/dist/mint-components/p-f7fba9e4.system.entry.js +0 -1
- package/dist/mint-components/p-fd2852a7.entry.js +0 -1
- package/dist/mint-components/p-fd4d90b9.system.js +0 -1
- package/dist/mint-components/p-ff932bfa.entry.js +0 -1
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
|
+
import { i as useRef, e as useEffect, m as h$1 } from './stencil-hooks.module-e39af977.js';
|
|
3
|
+
import { u as useCallback } from './use-callback-697e2ff0.js';
|
|
4
|
+
import { G as Ge, c as Ft, T } from './index.module-c6c6943f.js';
|
|
5
|
+
import './extends-c31f1eff.js';
|
|
6
|
+
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
7
|
+
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
|
+
import { A as AuthWrapper, a as AuthColumn, H as HostBlock, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
9
|
+
import { c as createStyleSheet } from './JSS-f00f9536.js';
|
|
10
|
+
import { T as TextSpanView } from './sqm-text-span-view-0ba1484d.js';
|
|
11
|
+
import { u as useValidationState, A as AsYouType } from './useValidationState-f5db8783.js';
|
|
12
|
+
|
|
13
|
+
const style = {
|
|
14
|
+
Wrapper: { ...AuthWrapper, "max-width": "600px" },
|
|
15
|
+
Column: AuthColumn,
|
|
16
|
+
HostBlock: HostBlock,
|
|
17
|
+
":host": {
|
|
18
|
+
margin: "0 auto",
|
|
19
|
+
width: "100%",
|
|
20
|
+
},
|
|
21
|
+
ButtonsContainer: AuthButtonsContainer,
|
|
22
|
+
ErrorStyle: ErrorStyles,
|
|
23
|
+
};
|
|
24
|
+
const vanillaStyle = `
|
|
25
|
+
sqm-portal-register {
|
|
26
|
+
margin: 0 auto;
|
|
27
|
+
width: 100%;
|
|
28
|
+
display: block;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host{
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([hidden]) {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
|
+
const sheet = createStyleSheet(style);
|
|
40
|
+
const styleString = sheet.toString();
|
|
41
|
+
function PortalRegistrationFormView(props) {
|
|
42
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
43
|
+
const { states, refs, callbacks, content } = props;
|
|
44
|
+
if (states.error) {
|
|
45
|
+
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
46
|
+
}
|
|
47
|
+
return (h("div", { class: sheet.classes.Wrapper },
|
|
48
|
+
h("style", { type: "text/css" },
|
|
49
|
+
vanillaStyle,
|
|
50
|
+
styleString),
|
|
51
|
+
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
52
|
+
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
53
|
+
states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
54
|
+
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
55
|
+
content.formData,
|
|
56
|
+
!states.hideInputs && (h("sl-input", Object.assign({ exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
|
|
57
|
+
if (!value) {
|
|
58
|
+
return "Cannot be empty";
|
|
59
|
+
}
|
|
60
|
+
// this matches shoelace validation, but could be better
|
|
61
|
+
if (!value.includes("@")) {
|
|
62
|
+
return "Must be a valid email address";
|
|
63
|
+
}
|
|
64
|
+
} }, (((_b = (_a = states.validationState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
65
|
+
class: sheet.classes.ErrorStyle,
|
|
66
|
+
helpText: ((_d = (_c = states.validationState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
67
|
+
"Cannot be empty",
|
|
68
|
+
}
|
|
69
|
+
: [])))),
|
|
70
|
+
!states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "enable-validation": states.enablePasswordValidation })),
|
|
71
|
+
content.passwordField,
|
|
72
|
+
!states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.validationState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
|
|
73
|
+
class: sheet.classes.ErrorStyle,
|
|
74
|
+
helpText: ((_h = (_g = states.validationState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) ||
|
|
75
|
+
"Cannot be empty",
|
|
76
|
+
}
|
|
77
|
+
: [])))),
|
|
78
|
+
content.terms,
|
|
79
|
+
h("div", { class: sheet.classes.ButtonsContainer },
|
|
80
|
+
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
81
|
+
content.secondaryButton))));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function usePortalRegistrationForm(props) {
|
|
85
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
86
|
+
const formRef = useRef(null);
|
|
87
|
+
const { validationState, setValidationState } = useValidationState({});
|
|
88
|
+
const [request, { loading, errors, data, formError }] = Ge();
|
|
89
|
+
const submit = async (event) => {
|
|
90
|
+
let formControls = event.target.getFormControls();
|
|
91
|
+
let formData = {};
|
|
92
|
+
let validationErrors = {};
|
|
93
|
+
formControls === null || formControls === void 0 ? void 0 : formControls.forEach((control) => {
|
|
94
|
+
if (!control.name)
|
|
95
|
+
return;
|
|
96
|
+
const key = control.name;
|
|
97
|
+
const value = control.value;
|
|
98
|
+
jsonpointer.set(formData, key, value);
|
|
99
|
+
// required validation
|
|
100
|
+
if (control.required && !value) {
|
|
101
|
+
jsonpointer.set(validationErrors, key, "Cannot be empty");
|
|
102
|
+
}
|
|
103
|
+
// custom validation
|
|
104
|
+
if (typeof control.validationError === "function") {
|
|
105
|
+
const validate = control.validationError;
|
|
106
|
+
const validationError = validate({ control, key, value });
|
|
107
|
+
if (validationError)
|
|
108
|
+
jsonpointer.set(validationErrors, key, validationError);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
if ((props.confirmPassword || formData.confirmPassword) &&
|
|
112
|
+
formData.password !== formData.confirmPassword) {
|
|
113
|
+
validationErrors = {
|
|
114
|
+
...validationErrors,
|
|
115
|
+
confirmPassword: "Passwords do not match.",
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
setValidationState({ error: "", validationErrors });
|
|
119
|
+
if (Object.keys(validationErrors).length) {
|
|
120
|
+
// early return for validation errors
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
const { email, password } = formData;
|
|
124
|
+
delete formData.email;
|
|
125
|
+
delete formData.password;
|
|
126
|
+
delete formData.confirmPassword;
|
|
127
|
+
formData = { ...formData };
|
|
128
|
+
const redirectPath = props.redirectPath;
|
|
129
|
+
const variables = {
|
|
130
|
+
email,
|
|
131
|
+
password,
|
|
132
|
+
formData,
|
|
133
|
+
redirectPath,
|
|
134
|
+
};
|
|
135
|
+
try {
|
|
136
|
+
await request(variables);
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
setValidationState({ error: "Network request failed." });
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
const inputFunction = useCallback((e) => {
|
|
143
|
+
var _a, _b;
|
|
144
|
+
const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
145
|
+
if (name !== "tel")
|
|
146
|
+
return;
|
|
147
|
+
const asYouType = new AsYouType("US");
|
|
148
|
+
e.target.value = asYouType.input(e.target.value);
|
|
149
|
+
}, []);
|
|
150
|
+
useEffect(() => {
|
|
151
|
+
var _a;
|
|
152
|
+
const managedIdentityResponse = (_a = data === null || data === void 0 ? void 0 : data.submitForm) === null || _a === void 0 ? void 0 : _a.results.find((result) => result.formHandler.namespace === "identity");
|
|
153
|
+
if (managedIdentityResponse &&
|
|
154
|
+
managedIdentityResponse.result.results.length &&
|
|
155
|
+
managedIdentityResponse.result.results[0].success &&
|
|
156
|
+
managedIdentityResponse.result.results[0].data.token) {
|
|
157
|
+
Ft.push(props.nextPage);
|
|
158
|
+
}
|
|
159
|
+
}, [data === null || data === void 0 ? void 0 : data.submitForm]);
|
|
160
|
+
useEffect(() => {
|
|
161
|
+
if (!formRef.current)
|
|
162
|
+
return;
|
|
163
|
+
const form = formRef.current;
|
|
164
|
+
form.addEventListener("sl-input", inputFunction);
|
|
165
|
+
return () => {
|
|
166
|
+
form.removeEventListener("sl-input", inputFunction);
|
|
167
|
+
};
|
|
168
|
+
}, [formRef.current]);
|
|
169
|
+
let errorMessage = "";
|
|
170
|
+
if ((_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a["error"]) {
|
|
171
|
+
errorMessage = "Network request failed";
|
|
172
|
+
}
|
|
173
|
+
else if ((errors === null || errors === void 0 ? void 0 : errors.message) && !((_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors.length)) {
|
|
174
|
+
errorMessage = "Network request failed";
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
errorMessage =
|
|
178
|
+
formError || ((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (validationState === null || validationState === void 0 ? void 0 : validationState.error);
|
|
179
|
+
}
|
|
180
|
+
return {
|
|
181
|
+
states: {
|
|
182
|
+
loading,
|
|
183
|
+
error: errorMessage,
|
|
184
|
+
validationState,
|
|
185
|
+
confirmPassword: props.confirmPassword,
|
|
186
|
+
hideInputs: props.hideInputs,
|
|
187
|
+
loginPath: props.loginPath,
|
|
188
|
+
},
|
|
189
|
+
callbacks: {
|
|
190
|
+
submit,
|
|
191
|
+
inputFunction,
|
|
192
|
+
},
|
|
193
|
+
refs: {
|
|
194
|
+
formRef,
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
const PortalRegistrationForm = class {
|
|
200
|
+
constructor(hostRef) {
|
|
201
|
+
registerInstance(this, hostRef);
|
|
202
|
+
this.ignored = true;
|
|
203
|
+
/**
|
|
204
|
+
* Page navigated to after registration
|
|
205
|
+
*
|
|
206
|
+
* @uiName Next Page
|
|
207
|
+
*/
|
|
208
|
+
this.nextPage = "/";
|
|
209
|
+
/**
|
|
210
|
+
* The page that users are redirected to from the verification email.
|
|
211
|
+
*
|
|
212
|
+
* @uiName Email Redirection Base Path
|
|
213
|
+
*/
|
|
214
|
+
this.redirectPath = "/verifyEmail";
|
|
215
|
+
/**
|
|
216
|
+
* @uiName Email Label
|
|
217
|
+
*/
|
|
218
|
+
this.emailLabel = "Email";
|
|
219
|
+
/**
|
|
220
|
+
* @uiName Password Label
|
|
221
|
+
*/
|
|
222
|
+
this.passwordLabel = "Password";
|
|
223
|
+
/**
|
|
224
|
+
* @uiName Submit Button Text
|
|
225
|
+
*/
|
|
226
|
+
this.submitLabel = "Register";
|
|
227
|
+
/**
|
|
228
|
+
* @uiName Login Button Text
|
|
229
|
+
*/
|
|
230
|
+
this.loginLabel = "Sign in";
|
|
231
|
+
/**
|
|
232
|
+
* @uiName Confirm Password Label
|
|
233
|
+
*/
|
|
234
|
+
this.confirmPasswordLabel = "Confirm Password";
|
|
235
|
+
/**
|
|
236
|
+
* Show or hide the confirm password input
|
|
237
|
+
*
|
|
238
|
+
* @uiName Show Confirm Password Field
|
|
239
|
+
* @default
|
|
240
|
+
*/
|
|
241
|
+
this.confirmPassword = false;
|
|
242
|
+
/**
|
|
243
|
+
* @uiName Enable Password Validation
|
|
244
|
+
*/
|
|
245
|
+
this.enablePasswordValidation = true;
|
|
246
|
+
/**
|
|
247
|
+
* Hide default input fields to use custom fields
|
|
248
|
+
*
|
|
249
|
+
* @uiName Hide Default Inputs
|
|
250
|
+
* @default
|
|
251
|
+
*/
|
|
252
|
+
this.hideInputs = false;
|
|
253
|
+
/**
|
|
254
|
+
* @uiName Heading Label
|
|
255
|
+
*/
|
|
256
|
+
this.pageLabel = "Register";
|
|
257
|
+
/**
|
|
258
|
+
* Login button redirection path
|
|
259
|
+
*
|
|
260
|
+
* @uiName Login Path
|
|
261
|
+
*/
|
|
262
|
+
this.loginPath = "/login";
|
|
263
|
+
h$1(this);
|
|
264
|
+
}
|
|
265
|
+
disconnectedCallback() { }
|
|
266
|
+
render() {
|
|
267
|
+
const { states, callbacks, refs } = T()
|
|
268
|
+
? useRegisterDemo(this)
|
|
269
|
+
: usePortalRegistrationForm(this);
|
|
270
|
+
const content = {
|
|
271
|
+
formData: h("slot", { name: "formData" }),
|
|
272
|
+
secondaryButton: (h("slot", { name: "secondaryButton" }, h("sl-button", { type: "text", disabled: states.loading, onClick: () => Ft.push(states.loginPath) }, this.loginLabel))),
|
|
273
|
+
terms: h("slot", { name: "terms" }),
|
|
274
|
+
emailLabel: this.emailLabel,
|
|
275
|
+
passwordLabel: this.passwordLabel,
|
|
276
|
+
submitLabel: this.submitLabel,
|
|
277
|
+
pageLabel: this.pageLabel,
|
|
278
|
+
confirmPasswordLabel: this.confirmPasswordLabel,
|
|
279
|
+
};
|
|
280
|
+
return (h(PortalRegistrationFormView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
function useRegisterDemo(props) {
|
|
284
|
+
return cjs({
|
|
285
|
+
states: {
|
|
286
|
+
error: "",
|
|
287
|
+
loading: false,
|
|
288
|
+
confirmPassword: true,
|
|
289
|
+
hideInputs: props.hideInputs || false,
|
|
290
|
+
customPasswordField: false,
|
|
291
|
+
loginPath: "/login",
|
|
292
|
+
},
|
|
293
|
+
callbacks: {
|
|
294
|
+
submit: async (_event) => {
|
|
295
|
+
console.log("submit");
|
|
296
|
+
},
|
|
297
|
+
inputFunction: () => { },
|
|
298
|
+
},
|
|
299
|
+
refs: {
|
|
300
|
+
formRef: {},
|
|
301
|
+
},
|
|
302
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export { PortalRegistrationForm as sqm_portal_registration_form };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { k as useState, e as useEffect, m as h } from './stencil-hooks.module-
|
|
3
|
-
import './use-callback-
|
|
4
|
-
import {
|
|
2
|
+
import { k as useState, e as useEffect, m as h } from './stencil-hooks.module-e39af977.js';
|
|
3
|
+
import './use-callback-697e2ff0.js';
|
|
4
|
+
import { f as ot, g as nt, c as Ft, T } from './index.module-c6c6943f.js';
|
|
5
5
|
import './extends-c31f1eff.js';
|
|
6
6
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -12,11 +12,11 @@ import './sqm-text-span-view-0ba1484d.js';
|
|
|
12
12
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-213b3af6.js';
|
|
13
13
|
|
|
14
14
|
function usePortalResetPassword(props) {
|
|
15
|
-
var _a, _b, _c, _d, _e, _f;
|
|
15
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
16
16
|
const [reset, setReset] = useState(false);
|
|
17
17
|
const [error, setError] = useState("");
|
|
18
|
-
const [verifyPasswordResetCode, verifyPasswordResetCodeState] =
|
|
19
|
-
const [resetPassword, resetPasswordState] =
|
|
18
|
+
const [verifyPasswordResetCode, verifyPasswordResetCodeState] = ot();
|
|
19
|
+
const [resetPassword, resetPasswordState] = nt();
|
|
20
20
|
const urlParams = new URLSearchParams(window.location.search);
|
|
21
21
|
const oobCode = urlParams.get("oobCode");
|
|
22
22
|
urlParams.delete("oobCode");
|
|
@@ -37,10 +37,10 @@ function usePortalResetPassword(props) {
|
|
|
37
37
|
const gotoNextPage = () => {
|
|
38
38
|
urlParams.delete("nextPage");
|
|
39
39
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
40
|
-
|
|
40
|
+
Ft.push(url.href);
|
|
41
41
|
};
|
|
42
42
|
const failed = () => {
|
|
43
|
-
|
|
43
|
+
Ft.push({
|
|
44
44
|
pathname: props.failedPage,
|
|
45
45
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
46
46
|
});
|
|
@@ -63,14 +63,21 @@ function usePortalResetPassword(props) {
|
|
|
63
63
|
setError("Network request failed.");
|
|
64
64
|
}
|
|
65
65
|
}, [verifyPasswordResetCodeState === null || verifyPasswordResetCodeState === void 0 ? void 0 : verifyPasswordResetCodeState.errors]);
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
var _a;
|
|
68
|
+
if ((_a = resetPasswordState === null || resetPasswordState === void 0 ? void 0 : resetPasswordState.errors) === null || _a === void 0 ? void 0 : _a.message) {
|
|
69
|
+
setError("Network request failed.");
|
|
70
|
+
}
|
|
71
|
+
}, [resetPasswordState === null || resetPasswordState === void 0 ? void 0 : resetPasswordState.errors]);
|
|
66
72
|
return {
|
|
67
73
|
states: {
|
|
68
74
|
loading: resetPasswordState.loading,
|
|
69
75
|
reset,
|
|
70
76
|
confirmPassword: props.confirmPassword,
|
|
71
|
-
error: ((_e = (_d = (_c = (_b = resetPasswordState.errors) === null || _b === void 0 ? void 0 : _b.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.message) ||
|
|
77
|
+
error: ((_f = (_e = (_d = (_c = (_b = resetPasswordState.errors) === null || _b === void 0 ? void 0 : _b.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_k = (_j = (_h = (_g = resetPasswordState.errors) === null || _g === void 0 ? void 0 : _g.response) === null || _h === void 0 ? void 0 : _h.errors) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.message) ||
|
|
78
|
+
error,
|
|
72
79
|
oobCodeValidating: verifyPasswordResetCodeState.loading,
|
|
73
|
-
oobCodeValid: (
|
|
80
|
+
oobCodeValid: (_l = verifyPasswordResetCodeState.data) === null || _l === void 0 ? void 0 : _l.verifyManagedIdentityPasswordResetCode.success,
|
|
74
81
|
content: {
|
|
75
82
|
passwordResetHeader: props.passwordResetHeader,
|
|
76
83
|
resetPasswordHeader: props.resetPasswordHeader,
|
|
@@ -104,6 +111,7 @@ const PortalResetPassword = class {
|
|
|
104
111
|
* Show or hide confirm password field
|
|
105
112
|
*
|
|
106
113
|
* @uiName Show Confirm Password
|
|
114
|
+
* @default
|
|
107
115
|
*/
|
|
108
116
|
this.confirmPassword = false;
|
|
109
117
|
/**
|
|
@@ -138,7 +146,7 @@ const PortalResetPassword = class {
|
|
|
138
146
|
}
|
|
139
147
|
disconnectedCallback() { }
|
|
140
148
|
render() {
|
|
141
|
-
const { states, callbacks } =
|
|
149
|
+
const { states, callbacks } = T()
|
|
142
150
|
? usePortalResetPasswordDemo(this)
|
|
143
151
|
: usePortalResetPassword(this);
|
|
144
152
|
return h$1(PortalResetPasswordView, { states: states, callbacks: callbacks });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { k as useState, e as useEffect, m as h } from './stencil-hooks.module-
|
|
3
|
-
import './use-callback-
|
|
4
|
-
import {
|
|
2
|
+
import { k as useState, e as useEffect, m as h } from './stencil-hooks.module-e39af977.js';
|
|
3
|
+
import './use-callback-697e2ff0.js';
|
|
4
|
+
import { o as oe, v as vt, c as Ft, T } from './index.module-c6c6943f.js';
|
|
5
5
|
import './extends-c31f1eff.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
@@ -11,18 +11,18 @@ import './sqm-text-span-view-0ba1484d.js';
|
|
|
11
11
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-c32dfd7e.js';
|
|
12
12
|
|
|
13
13
|
function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
14
|
-
var _a, _b, _c, _d, _e;
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
15
15
|
const [verified, setVerified] = useState(false);
|
|
16
16
|
const [disableContinue, setDisableContinue] = useState(true);
|
|
17
|
-
const userIdent =
|
|
18
|
-
const [request, { loading, data, errors }] =
|
|
17
|
+
const userIdent = oe();
|
|
18
|
+
const [request, { loading, data, errors }] = vt();
|
|
19
19
|
const [error, setError] = useState("");
|
|
20
20
|
const urlParams = new URLSearchParams(window.location.search);
|
|
21
21
|
const oobCode = urlParams.get("oobCode");
|
|
22
22
|
const nextPageOverride = urlParams.get("nextPage");
|
|
23
23
|
urlParams.delete("oobCode");
|
|
24
24
|
const failed = () => {
|
|
25
|
-
return
|
|
25
|
+
return Ft.push({
|
|
26
26
|
pathname: failedPage,
|
|
27
27
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
28
28
|
});
|
|
@@ -30,7 +30,7 @@ function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
|
30
30
|
const gotoNextPage = () => {
|
|
31
31
|
urlParams.delete("nextPage");
|
|
32
32
|
const url = sanitizeUrlPath(nextPageOverride || nextPage);
|
|
33
|
-
|
|
33
|
+
Ft.push(url.href);
|
|
34
34
|
};
|
|
35
35
|
const submit = async () => {
|
|
36
36
|
if (oobCode) {
|
|
@@ -74,7 +74,8 @@ function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
|
74
74
|
return {
|
|
75
75
|
states: {
|
|
76
76
|
loading: loading || disableContinue,
|
|
77
|
-
error: ((_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.message) ||
|
|
77
|
+
error: ((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) ||
|
|
78
|
+
error,
|
|
78
79
|
verified,
|
|
79
80
|
},
|
|
80
81
|
data: {
|
|
@@ -107,7 +108,7 @@ const PortalVerifyEmail = class {
|
|
|
107
108
|
}
|
|
108
109
|
disconnectedCallback() { }
|
|
109
110
|
render() {
|
|
110
|
-
const { states, data, callbacks } =
|
|
111
|
+
const { states, data, callbacks } = T()
|
|
111
112
|
? usePortalVerifyEmailDemo(this)
|
|
112
113
|
: usePortalVerifyEmail(this);
|
|
113
114
|
return (h$1(PortalVerifyEmailView, { states: states, data: data, callbacks: callbacks }));
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
|
+
import { m as h$1 } from './stencil-hooks.module-e39af977.js';
|
|
3
|
+
import './extends-c31f1eff.js';
|
|
4
|
+
import { c as createStyleSheet } from './JSS-f00f9536.js';
|
|
5
|
+
import { g as getProps } from './utils-334c1e34.js';
|
|
6
|
+
|
|
7
|
+
const style = {
|
|
8
|
+
Container: {
|
|
9
|
+
display: "flex",
|
|
10
|
+
color: "var(--sl-color-neutral-900)",
|
|
11
|
+
background: "var(--sl-color-neutral-0)",
|
|
12
|
+
"& .left": {
|
|
13
|
+
boxSizing: "border-box",
|
|
14
|
+
width: "50%",
|
|
15
|
+
padding: "var(--sl-spacing-large)",
|
|
16
|
+
paddingRight: "var(--sl-spacing-medium)",
|
|
17
|
+
"@media (max-width: 499px)": {
|
|
18
|
+
width: "100%",
|
|
19
|
+
padding: "0",
|
|
20
|
+
marginBottom: "var(--sl-spacing-xx-large)",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
"& .right": {
|
|
24
|
+
boxSizing: "border-box",
|
|
25
|
+
width: "50%",
|
|
26
|
+
padding: "var(--sl-spacing-large)",
|
|
27
|
+
paddingLeft: "var(--sl-spacing-medium)",
|
|
28
|
+
"@media (max-width: 499px)": {
|
|
29
|
+
width: "100%",
|
|
30
|
+
padding: "0",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
border: "1px solid var(--sl-color-neutral-300)",
|
|
34
|
+
borderRadius: "var(--sl-border-radius-large)",
|
|
35
|
+
"@media (max-width: 499px)": {
|
|
36
|
+
flexDirection: "column",
|
|
37
|
+
border: "none",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const sheet = createStyleSheet(style);
|
|
42
|
+
const styleString = sheet.toString();
|
|
43
|
+
const vanillaStyle = `
|
|
44
|
+
:host{
|
|
45
|
+
display: block;
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
function ReferralCardView(props) {
|
|
49
|
+
return (h("div", null,
|
|
50
|
+
h("style", { type: "text/css" },
|
|
51
|
+
styleString,
|
|
52
|
+
vanillaStyle),
|
|
53
|
+
h("div", { class: sheet.classes.Container },
|
|
54
|
+
h("div", { class: "left", style: {
|
|
55
|
+
alignSelf: props.verticalAlignment,
|
|
56
|
+
} }, props.slots.left),
|
|
57
|
+
h("div", { class: "right", style: {
|
|
58
|
+
alignSelf: props.verticalAlignment,
|
|
59
|
+
} }, props.slots.right))));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const ReferralCard = class {
|
|
63
|
+
constructor(hostRef) {
|
|
64
|
+
registerInstance(this, hostRef);
|
|
65
|
+
this.ignored = true;
|
|
66
|
+
/**
|
|
67
|
+
* @uiName Vertical Aligment
|
|
68
|
+
* @uiType string
|
|
69
|
+
* @uiEnum ["start", "center", "end"]
|
|
70
|
+
* @uiEnumNames ["Top", "Center", "Bottom"]
|
|
71
|
+
*/
|
|
72
|
+
this.verticalAlignment = "start";
|
|
73
|
+
h$1(this);
|
|
74
|
+
}
|
|
75
|
+
disconnectedCallback() { }
|
|
76
|
+
render() {
|
|
77
|
+
const slots = {
|
|
78
|
+
left: h("slot", { name: "left" }),
|
|
79
|
+
right: h("slot", { name: "right" }),
|
|
80
|
+
};
|
|
81
|
+
return (h(ReferralCardView, Object.assign({}, getProps(this), { slots: slots }), h("slot", null)));
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export { ReferralCard as sqm_qa_referral_card };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
|
|
2
|
+
import { l, j as useMemo, e as useEffect, m as h$1 } from './stencil-hooks.module-e39af977.js';
|
|
3
|
+
import './use-callback-697e2ff0.js';
|
|
4
|
+
import { k } from './index.module-c6c6943f.js';
|
|
5
|
+
import './extends-c31f1eff.js';
|
|
6
|
+
import { u as useChildElements } from './useChildElements-31287783.js';
|
|
7
|
+
import { g as getProps } from './utils-334c1e34.js';
|
|
8
|
+
|
|
9
|
+
const TabsView = ({ content, placement, }) => {
|
|
10
|
+
// Vertical padding for top & bottom placement, horizontal for left & right.
|
|
11
|
+
const padding = !placement || placement === "top" || placement === "bottom"
|
|
12
|
+
? "var(--sl-spacing-x-large) 0;"
|
|
13
|
+
: "0 var(--sl-spacing-xx-large);";
|
|
14
|
+
const vanillaStyle = `
|
|
15
|
+
sl-tab-panel::part(base) {
|
|
16
|
+
padding: ${padding};
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
const host = l();
|
|
20
|
+
return (h(Host, null,
|
|
21
|
+
h("style", { type: "text/css" }, vanillaStyle),
|
|
22
|
+
h("sl-tab-group", { placement: placement }, content.tabs.map((tab) => {
|
|
23
|
+
const slotName = tab.getAttribute("slot");
|
|
24
|
+
if (tab.tagName === "RAISINS-PLOP-TARGET") {
|
|
25
|
+
return (h("sl-tab", { slot: "nav" },
|
|
26
|
+
h("div", { style: { marginTop: "10px" } },
|
|
27
|
+
h("slot", { name: slotName }))));
|
|
28
|
+
}
|
|
29
|
+
return [
|
|
30
|
+
h("sl-tab", { slot: "nav", panel: slotName, id: tab.getAttribute("id") || slotName }, tab.getAttribute("header")),
|
|
31
|
+
h("sl-tab-panel", { name: slotName },
|
|
32
|
+
h("slot", { name: slotName })),
|
|
33
|
+
];
|
|
34
|
+
})),
|
|
35
|
+
h("div", { style: { display: "none" } },
|
|
36
|
+
h("slot", null))));
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const REVEAL_EVENT = "sq:reveal";
|
|
40
|
+
function useTabs() {
|
|
41
|
+
const rawTabs = useChildElements();
|
|
42
|
+
const host = k();
|
|
43
|
+
const tabs = useMemo(() => rawTabs
|
|
44
|
+
.filter((tab) => tab.tagName === "SQM-TAB" || tab.tagName === "RAISINS-PLOP-TARGET")
|
|
45
|
+
.map((tab, i) => {
|
|
46
|
+
if (tab.tagName === "RAISINS-PLOP-TARGET") {
|
|
47
|
+
const plopTab = tab;
|
|
48
|
+
plopTab.style.position = "absolute";
|
|
49
|
+
plopTab.style.left = "6px";
|
|
50
|
+
const plopTarget = tab.firstElementChild
|
|
51
|
+
.childNodes[1];
|
|
52
|
+
plopTarget.innerHTML = "+";
|
|
53
|
+
plopTarget.style.lineHeight = "20px";
|
|
54
|
+
}
|
|
55
|
+
tab.setAttribute("slot", "tab-" + i);
|
|
56
|
+
// set id as targets for scroll component
|
|
57
|
+
tab.setAttribute("id", "tab-" + i);
|
|
58
|
+
return tab;
|
|
59
|
+
}), [rawTabs]);
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
const listener = (e) => {
|
|
62
|
+
var _a;
|
|
63
|
+
const target = e.target;
|
|
64
|
+
// Prevents recursively nested components from sending requests up all the way
|
|
65
|
+
e.stopPropagation();
|
|
66
|
+
if (!target)
|
|
67
|
+
return;
|
|
68
|
+
const tabsComponent = target.closest("sqm-tabs");
|
|
69
|
+
if (!host.contains(target) || !tabsComponent)
|
|
70
|
+
return;
|
|
71
|
+
const targetTab = target.closest("sqm-tab");
|
|
72
|
+
const tabGroup = tabsComponent.shadowRoot.querySelector("sl-tab-group");
|
|
73
|
+
(_a = tabGroup) === null || _a === void 0 ? void 0 : _a.show(targetTab.id);
|
|
74
|
+
};
|
|
75
|
+
host.addEventListener(REVEAL_EVENT, listener);
|
|
76
|
+
return () => {
|
|
77
|
+
host.removeEventListener(REVEAL_EVENT, listener);
|
|
78
|
+
};
|
|
79
|
+
}, []);
|
|
80
|
+
return { content: { tabs } };
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const Tabs = class {
|
|
84
|
+
constructor(hostRef) {
|
|
85
|
+
registerInstance(this, hostRef);
|
|
86
|
+
h$1(this);
|
|
87
|
+
}
|
|
88
|
+
disconnectedCallback() { }
|
|
89
|
+
render() {
|
|
90
|
+
const { content } = useTabs();
|
|
91
|
+
const { placement } = getProps(this);
|
|
92
|
+
return (h(TabsView, { placement: placement, content: content }, h("slot", null)));
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export { Tabs as sqm_qa_tabs };
|