@saasquatch/mint-components 1.6.1-9 → 1.6.2-2
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-aa14c0c4.js} +18 -13
- package/dist/cjs/{global-22fb2ec7.js → global-5e3deef1.js} +2 -2
- package/dist/cjs/{index.module-fb61a163.js → index.module-ffe1aa35.js} +22 -21
- 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-8fee17a9.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +95 -3957
- 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 +5 -5
- package/dist/cjs/{sqm-navigation-sidebar-item-view-52ab014f.js → sqm-navigation-sidebar-item-view-9820193d.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-57fbd19b.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-eb757378.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-7cb535a8.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 +1 -0
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +33 -9
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +33 -13
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +160 -87
- package/dist/cjs/sqm-tabs.cjs.entry.js +18 -4
- package/dist/cjs/{useChildElements-24538fc5.js → useChildElements-a7a7b921.js} +1 -1
- package/dist/cjs/{useReferralTable-1e71d2dc.js → useReferralTable-7e18f12e.js} +7 -7
- package/dist/cjs/useValidationState-63f00763.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-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 -0
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +2 -2
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -1
- 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 +13 -0
- 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-rewards-table/columns/sqm-rewards-table-plop-target.js +58 -0
- 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 +4 -6
- 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-3626a92b.js} +20 -15
- package/dist/esm/{global-5c84f57f.js → global-0842e0e4.js} +3 -3
- package/dist/esm/{index.module-f5e17a4e.js → index.module-96470dcf.js} +4 -4
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-f44215d9.js → luxon-38ca2169.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-f444e556.js} +3 -3
- package/dist/esm/sqm-asset-card.entry.js +4 -4
- package/dist/esm/sqm-big-stat_35.entry.js +93 -3955
- 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-93fac447.js} +2 -2
- package/dist/esm/sqm-hero.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +7 -7
- package/dist/esm/{sqm-navigation-sidebar-item-view-51714c31.js → sqm-navigation-sidebar-item-view-fb10e0c2.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-f6daf315.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-42db3277.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-dd2774b2.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 +2 -1
- 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 +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +36 -16
- package/dist/esm/sqm-stencilbook.entry.js +164 -91
- package/dist/esm/sqm-tabs.entry.js +20 -6
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-acc8a613.js → stencil-hooks.module-66fea7dc.js} +1 -1
- package/dist/esm/{use-callback-7e0bfd3b.js → use-callback-69ec5c5c.js} +1 -1
- package/dist/esm/{useChildElements-a8347aea.js → useChildElements-756c6a81.js} +2 -2
- package/dist/esm/{useReferralTable-5cac5b13.js → useReferralTable-0a8ee3b7.js} +8 -8
- package/dist/esm/useValidationState-adb2b066.js +3882 -0
- package/dist/esm-es5/{GenericTableView-ebc09be0.js → GenericTableView-59c5d47c.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-3626a92b.js +1 -0
- package/dist/esm-es5/{global-5c84f57f.js → global-0842e0e4.js} +2 -2
- package/dist/esm-es5/{index.module-f5e17a4e.js → index.module-96470dcf.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-f44215d9.js → luxon-38ca2169.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-69774e13.js → re-render-f444e556.js} +1 -1
- 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-93fac447.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-fb10e0c2.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-f6daf315.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-42db3277.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-dd2774b2.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-66fea7dc.js} +1 -1
- package/dist/esm-es5/use-callback-69ec5c5c.js +1 -0
- package/dist/esm-es5/useChildElements-756c6a81.js +1 -0
- package/dist/esm-es5/useReferralTable-0a8ee3b7.js +1 -0
- package/dist/esm-es5/useValidationState-adb2b066.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-0777ac5b.entry.js +9 -0
- package/dist/mint-components/{p-819298a8.system.js → p-092d030a.system.js} +1 -1
- package/dist/mint-components/{p-e4e5168b.entry.js → p-09551f97.entry.js} +1 -1
- package/dist/mint-components/p-0b7ec490.entry.js +1 -0
- package/dist/mint-components/p-0b838d31.entry.js +1 -0
- package/dist/mint-components/p-14e28fcc.entry.js +1 -0
- package/dist/mint-components/{p-7794c289.js → p-1644c8e4.js} +1 -1
- package/dist/mint-components/{p-e2f8b782.system.entry.js → p-16beb451.system.entry.js} +1 -1
- package/dist/mint-components/{p-97650e34.js → p-19266514.js} +1 -1
- package/dist/mint-components/{p-63136070.system.entry.js → p-19dfb893.system.entry.js} +1 -1
- package/dist/mint-components/{p-dcdbf128.system.js → p-1b962e50.system.js} +1 -1
- package/dist/mint-components/{p-c0d24b76.system.entry.js → p-1bd5cd35.system.entry.js} +1 -1
- package/dist/mint-components/p-1ff7ee8a.entry.js +1 -0
- package/dist/mint-components/{p-4ac2d13b.system.entry.js → p-22b45a04.system.entry.js} +1 -1
- package/dist/mint-components/p-23485cfe.system.js +1 -0
- package/dist/mint-components/{p-047a840f.system.entry.js → p-27a8ee57.system.entry.js} +1 -1
- package/dist/mint-components/{p-4a2782fd.system.entry.js → p-27aac88b.system.entry.js} +1 -1
- package/dist/mint-components/p-27ed7b95.js +1 -0
- package/dist/mint-components/p-2809a9c7.system.entry.js +1 -0
- package/dist/mint-components/{p-bd7b8620.system.entry.js → p-29f82c6d.system.entry.js} +1 -1
- package/dist/mint-components/p-2b2ed97b.entry.js +1 -0
- package/dist/mint-components/p-2c4da197.entry.js +1 -0
- package/dist/mint-components/{p-5cdcff11.system.entry.js → p-2ec62a9b.system.entry.js} +1 -1
- package/dist/mint-components/p-3364ee29.system.entry.js +1 -0
- package/dist/mint-components/{p-ee26e870.entry.js → p-33a8d572.entry.js} +2 -2
- package/dist/mint-components/{p-f298a1bc.system.entry.js → p-380c3d58.system.entry.js} +1 -1
- package/dist/mint-components/p-3c7b3831.entry.js +1 -0
- package/dist/mint-components/p-42133e0b.entry.js +159 -0
- package/dist/mint-components/p-42994d5d.entry.js +99 -0
- package/dist/mint-components/p-42d3eb3e.system.js +1 -0
- package/dist/mint-components/{p-a6d4cffd.system.entry.js → p-433f243c.system.entry.js} +1 -1
- package/dist/mint-components/{p-72751bb7.entry.js → p-46ed891a.entry.js} +1 -1
- package/dist/mint-components/p-49e61dc4.entry.js +1 -0
- package/dist/mint-components/p-4a0ef2d3.entry.js +1 -0
- package/dist/mint-components/{p-0221bfef.system.entry.js → p-4c2cec5c.system.entry.js} +1 -1
- package/dist/mint-components/p-4c93df52.entry.js +1 -0
- package/dist/mint-components/{p-eb314fed.js → p-50cb9888.js} +1 -1
- package/dist/mint-components/{p-19042a54.system.entry.js → p-51dd860c.system.entry.js} +1 -1
- package/dist/mint-components/p-5660e578.system.js +1 -0
- package/dist/mint-components/p-577299fe.system.entry.js +1 -0
- package/dist/mint-components/p-57b7a680.entry.js +1 -0
- package/dist/mint-components/{p-f6d3a2d4.system.js → p-5a7f7362.system.js} +1 -1
- package/dist/mint-components/p-5d80f75a.entry.js +13 -0
- package/dist/mint-components/p-5da081c3.entry.js +1 -0
- package/dist/mint-components/p-5e6890eb.system.entry.js +1 -0
- package/dist/mint-components/p-61eeea9e.entry.js +1 -0
- package/dist/mint-components/{p-27455c4c.js → p-78c7b4b7.js} +1 -1
- package/dist/mint-components/{p-6738565c.entry.js → p-7dff3e29.entry.js} +1 -1
- package/dist/mint-components/p-80981da1.entry.js +1 -0
- package/dist/mint-components/p-8390e33e.system.entry.js +1 -0
- package/dist/mint-components/{p-6ee04453.entry.js → p-89d8133d.entry.js} +1 -1
- package/dist/mint-components/{p-48ec6605.system.js → p-8a0cf4be.system.js} +1 -1
- package/dist/mint-components/p-8c1348dc.system.js +1 -0
- package/dist/mint-components/{p-78640db1.system.entry.js → p-8dfe5873.system.entry.js} +1 -1
- package/dist/mint-components/p-90bd03bb.entry.js +1 -0
- package/dist/mint-components/{p-28d44352.js → p-958d913e.js} +1 -1
- package/dist/mint-components/{p-0494f792.js → p-95f70cb1.js} +1 -1
- package/dist/mint-components/p-99830904.system.entry.js +1 -0
- package/dist/mint-components/{p-bbf96ff3.system.js → p-9bac73dc.system.js} +1 -1
- package/dist/mint-components/p-9bb39058.system.entry.js +1 -0
- package/dist/mint-components/p-9ef39196.system.entry.js +1 -0
- package/dist/mint-components/{p-3c96bae3.entry.js → p-a3f87461.entry.js} +1 -1
- package/dist/mint-components/p-a4fa8ba2.system.js +1 -0
- package/dist/mint-components/{p-48f9babc.system.entry.js → p-a6291305.system.entry.js} +1 -1
- package/dist/mint-components/p-a9d7eb10.js +1 -0
- package/dist/mint-components/{p-6549ad6a.system.js → p-b02064c4.system.js} +1 -1
- package/dist/mint-components/{p-596902cd.system.entry.js → p-b1441d8e.system.entry.js} +1 -1
- package/dist/mint-components/p-b17b4a61.system.entry.js +1 -0
- package/dist/mint-components/{p-c11ce36c.js → p-b22b94ac.js} +1 -1
- package/dist/mint-components/p-b5bfb818.system.js +1 -0
- package/dist/mint-components/{p-3970de96.js → p-bd32d6f4.js} +1 -1
- package/dist/mint-components/p-bf298e68.js +1 -0
- package/dist/mint-components/p-c2aecbd1.js +268 -0
- package/dist/mint-components/p-c2b5997d.entry.js +1 -0
- package/dist/mint-components/p-c88cb982.entry.js +1 -0
- package/dist/mint-components/p-c8e8aab7.js +1 -0
- package/dist/mint-components/p-c9977e50.system.entry.js +1 -0
- package/dist/mint-components/p-ca2819e8.system.js +1 -0
- package/dist/mint-components/{p-4ebe044d.entry.js → p-cc6f7cb5.entry.js} +1 -1
- package/dist/mint-components/p-cdabe7a8.js +1 -0
- package/dist/mint-components/{p-e707831a.entry.js → p-d1aef95c.entry.js} +1 -1
- package/dist/mint-components/p-d1e6d105.system.entry.js +1 -0
- package/dist/mint-components/{p-7548e059.system.entry.js → p-d5e12393.system.entry.js} +1 -1
- package/dist/mint-components/p-d7d007fb.system.entry.js +1 -0
- package/dist/mint-components/p-daf8de5c.entry.js +1 -0
- package/dist/mint-components/{p-cf9cfac0.entry.js → p-dd627dd0.entry.js} +1 -1
- package/dist/mint-components/{p-c0a8476e.system.entry.js → p-e0140005.system.entry.js} +1 -1
- package/dist/mint-components/{p-fc942cbd.system.js → p-e2bf9132.system.js} +1 -1
- package/dist/mint-components/{p-82ecbcd1.js → p-e6eedd9e.js} +1 -1
- package/dist/mint-components/{p-e01d8fdc.system.js → p-e8acccb5.system.js} +1 -1
- package/dist/mint-components/{p-0ee797b8.system.js → p-e907c45c.system.js} +1 -1
- package/dist/mint-components/{p-4b0e876f.js → p-ea1b0e1c.js} +2 -2
- package/dist/mint-components/p-f2bd9120.system.entry.js +1 -0
- package/dist/mint-components/{p-e1d01511.system.js → p-f9056e14.system.js} +1 -1
- package/dist/mint-components/{p-ba99d04e.system.entry.js → p-ffe8c6ce.system.entry.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-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 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +1 -1
- 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 +4 -0
- 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-rewards-table/columns/RewardTableColumn.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-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 +5 -2
- 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 +275 -12
- 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 +3 -3
- package/dist/esm-es5/ShadowViewAddon-e2996624.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-03828842.system.entry.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-4f8830b7.entry.js +0 -1
- package/dist/mint-components/p-4fe59c93.system.entry.js +0 -1
- package/dist/mint-components/p-5ab46a89.entry.js +0 -1
- package/dist/mint-components/p-60b01103.js +0 -1
- package/dist/mint-components/p-60de562c.entry.js +0 -1
- package/dist/mint-components/p-66ce7f0e.entry.js +0 -9
- 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-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-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-f92e3e87.system.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,309 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-b0129cd6.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
7
|
+
const useCallback = require('./use-callback-e754042f.js');
|
|
8
|
+
const index_module = require('./index.module-ffe1aa35.js');
|
|
9
|
+
require('./extends-08099afd.js');
|
|
10
|
+
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
11
|
+
const cjs = require('./cjs-1066ec21.js');
|
|
12
|
+
const mixins = require('./mixins-fe9d4112.js');
|
|
13
|
+
const JSS = require('./JSS-97fd087e.js');
|
|
14
|
+
const sqmTextSpanView = require('./sqm-text-span-view-2c7d94b5.js');
|
|
15
|
+
const useValidationState = require('./useValidationState-63f00763.js');
|
|
16
|
+
|
|
17
|
+
const style = {
|
|
18
|
+
Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
|
|
19
|
+
Column: mixins.AuthColumn,
|
|
20
|
+
HostBlock: mixins.HostBlock,
|
|
21
|
+
":host": {
|
|
22
|
+
margin: "0 auto",
|
|
23
|
+
width: "100%",
|
|
24
|
+
},
|
|
25
|
+
ButtonsContainer: mixins.AuthButtonsContainer,
|
|
26
|
+
ErrorStyle: mixins.ErrorStyles,
|
|
27
|
+
};
|
|
28
|
+
const vanillaStyle = `
|
|
29
|
+
sqm-portal-register {
|
|
30
|
+
margin: 0 auto;
|
|
31
|
+
width: 100%;
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host{
|
|
36
|
+
display: block;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host([hidden]) {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
const sheet = JSS.createStyleSheet(style);
|
|
44
|
+
const styleString = sheet.toString();
|
|
45
|
+
function PortalRegistrationFormView(props) {
|
|
46
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
47
|
+
const { states, refs, callbacks, content } = props;
|
|
48
|
+
if (states.error) {
|
|
49
|
+
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
50
|
+
}
|
|
51
|
+
return (index.h("div", { class: sheet.classes.Wrapper },
|
|
52
|
+
index.h("style", { type: "text/css" },
|
|
53
|
+
vanillaStyle,
|
|
54
|
+
styleString),
|
|
55
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
56
|
+
index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
57
|
+
states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
58
|
+
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
59
|
+
content.formData,
|
|
60
|
+
!states.hideInputs && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
|
|
61
|
+
if (!value) {
|
|
62
|
+
return "Cannot be empty";
|
|
63
|
+
}
|
|
64
|
+
// this matches shoelace validation, but could be better
|
|
65
|
+
if (!value.includes("@")) {
|
|
66
|
+
return "Must be a valid email address";
|
|
67
|
+
}
|
|
68
|
+
} }, (((_b = (_a = states.validationState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
69
|
+
class: sheet.classes.ErrorStyle,
|
|
70
|
+
helpText: ((_d = (_c = states.validationState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
71
|
+
"Cannot be empty",
|
|
72
|
+
}
|
|
73
|
+
: [])))),
|
|
74
|
+
!states.hideInputs && (index.h("sqm-password-field", { fieldLabel: content.passwordLabel, "enable-validation": states.enablePasswordValidation })),
|
|
75
|
+
content.passwordField,
|
|
76
|
+
!states.hideInputs && states.confirmPassword && (index.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) ? {
|
|
77
|
+
class: sheet.classes.ErrorStyle,
|
|
78
|
+
helpText: ((_h = (_g = states.validationState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) ||
|
|
79
|
+
"Cannot be empty",
|
|
80
|
+
}
|
|
81
|
+
: [])))),
|
|
82
|
+
content.terms,
|
|
83
|
+
index.h("div", { class: sheet.classes.ButtonsContainer },
|
|
84
|
+
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
85
|
+
content.secondaryButton))));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function usePortalRegistrationForm(props) {
|
|
89
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
90
|
+
const formRef = stencilHooks_module.useRef(null);
|
|
91
|
+
const { validationState, setValidationState } = useValidationState.useValidationState({});
|
|
92
|
+
const [request, { loading, errors, data, formError }] = index_module.We();
|
|
93
|
+
const submit = async (event) => {
|
|
94
|
+
let formControls = event.target.getFormControls();
|
|
95
|
+
let formData = {};
|
|
96
|
+
let validationErrors = {};
|
|
97
|
+
formControls === null || formControls === void 0 ? void 0 : formControls.forEach((control) => {
|
|
98
|
+
if (!control.name)
|
|
99
|
+
return;
|
|
100
|
+
const key = control.name;
|
|
101
|
+
const value = control.value;
|
|
102
|
+
jsonpointer.jsonpointer.set(formData, key, value);
|
|
103
|
+
// required validation
|
|
104
|
+
if (control.required && !value) {
|
|
105
|
+
jsonpointer.jsonpointer.set(validationErrors, key, "Cannot be empty");
|
|
106
|
+
}
|
|
107
|
+
// custom validation
|
|
108
|
+
if (typeof control.validationError === "function") {
|
|
109
|
+
const validate = control.validationError;
|
|
110
|
+
const validationError = validate({ control, key, value });
|
|
111
|
+
if (validationError)
|
|
112
|
+
jsonpointer.jsonpointer.set(validationErrors, key, validationError);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
if ((props.confirmPassword || formData.confirmPassword) &&
|
|
116
|
+
formData.password !== formData.confirmPassword) {
|
|
117
|
+
validationErrors = {
|
|
118
|
+
...validationErrors,
|
|
119
|
+
confirmPassword: "Passwords do not match.",
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
setValidationState({ error: "", validationErrors });
|
|
123
|
+
if (Object.keys(validationErrors).length) {
|
|
124
|
+
// early return for validation errors
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
const { email, password } = formData;
|
|
128
|
+
delete formData.email;
|
|
129
|
+
delete formData.password;
|
|
130
|
+
delete formData.confirmPassword;
|
|
131
|
+
formData = { ...formData };
|
|
132
|
+
const redirectPath = props.redirectPath;
|
|
133
|
+
const variables = {
|
|
134
|
+
email,
|
|
135
|
+
password,
|
|
136
|
+
formData,
|
|
137
|
+
redirectPath,
|
|
138
|
+
};
|
|
139
|
+
try {
|
|
140
|
+
await request(variables);
|
|
141
|
+
}
|
|
142
|
+
catch (error) {
|
|
143
|
+
setValidationState({ error: "Network request failed." });
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
const inputFunction = useCallback.useCallback((e) => {
|
|
147
|
+
var _a, _b;
|
|
148
|
+
const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
149
|
+
if (name !== "tel")
|
|
150
|
+
return;
|
|
151
|
+
const asYouType = new useValidationState.AsYouType("US");
|
|
152
|
+
e.target.value = asYouType.input(e.target.value);
|
|
153
|
+
}, []);
|
|
154
|
+
stencilHooks_module.useEffect(() => {
|
|
155
|
+
var _a;
|
|
156
|
+
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");
|
|
157
|
+
if (managedIdentityResponse &&
|
|
158
|
+
managedIdentityResponse.result.results.length &&
|
|
159
|
+
managedIdentityResponse.result.results[0].success &&
|
|
160
|
+
managedIdentityResponse.result.results[0].data.token) {
|
|
161
|
+
index_module.In.push(props.nextPage);
|
|
162
|
+
}
|
|
163
|
+
}, [data === null || data === void 0 ? void 0 : data.submitForm]);
|
|
164
|
+
stencilHooks_module.useEffect(() => {
|
|
165
|
+
if (!formRef.current)
|
|
166
|
+
return;
|
|
167
|
+
const form = formRef.current;
|
|
168
|
+
form.addEventListener("sl-input", inputFunction);
|
|
169
|
+
return () => {
|
|
170
|
+
form.removeEventListener("sl-input", inputFunction);
|
|
171
|
+
};
|
|
172
|
+
}, [formRef.current]);
|
|
173
|
+
let errorMessage = "";
|
|
174
|
+
if ((_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a["error"]) {
|
|
175
|
+
errorMessage = "Network request failed";
|
|
176
|
+
}
|
|
177
|
+
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)) {
|
|
178
|
+
errorMessage = "Network request failed";
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
errorMessage =
|
|
182
|
+
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);
|
|
183
|
+
}
|
|
184
|
+
return {
|
|
185
|
+
states: {
|
|
186
|
+
loading,
|
|
187
|
+
error: errorMessage,
|
|
188
|
+
validationState,
|
|
189
|
+
confirmPassword: props.confirmPassword,
|
|
190
|
+
hideInputs: props.hideInputs,
|
|
191
|
+
loginPath: props.loginPath,
|
|
192
|
+
},
|
|
193
|
+
callbacks: {
|
|
194
|
+
submit,
|
|
195
|
+
inputFunction,
|
|
196
|
+
},
|
|
197
|
+
refs: {
|
|
198
|
+
formRef,
|
|
199
|
+
},
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const PortalRegistrationForm = class {
|
|
204
|
+
constructor(hostRef) {
|
|
205
|
+
index.registerInstance(this, hostRef);
|
|
206
|
+
this.ignored = true;
|
|
207
|
+
/**
|
|
208
|
+
* Page navigated to after registration
|
|
209
|
+
*
|
|
210
|
+
* @uiName Next Page
|
|
211
|
+
*/
|
|
212
|
+
this.nextPage = "/";
|
|
213
|
+
/**
|
|
214
|
+
* The page that users are redirected to from the verification email.
|
|
215
|
+
*
|
|
216
|
+
* @uiName Email Redirection Base Path
|
|
217
|
+
*/
|
|
218
|
+
this.redirectPath = "/verifyEmail";
|
|
219
|
+
/**
|
|
220
|
+
* @uiName Email Label
|
|
221
|
+
*/
|
|
222
|
+
this.emailLabel = "Email";
|
|
223
|
+
/**
|
|
224
|
+
* @uiName Password Label
|
|
225
|
+
*/
|
|
226
|
+
this.passwordLabel = "Password";
|
|
227
|
+
/**
|
|
228
|
+
* @uiName Submit Button Text
|
|
229
|
+
*/
|
|
230
|
+
this.submitLabel = "Register";
|
|
231
|
+
/**
|
|
232
|
+
* @uiName Login Button Text
|
|
233
|
+
*/
|
|
234
|
+
this.loginLabel = "Sign in";
|
|
235
|
+
/**
|
|
236
|
+
* @uiName Confirm Password Label
|
|
237
|
+
*/
|
|
238
|
+
this.confirmPasswordLabel = "Confirm Password";
|
|
239
|
+
/**
|
|
240
|
+
* Show or hide the confirm password input
|
|
241
|
+
*
|
|
242
|
+
* @uiName Show Confirm Password Field
|
|
243
|
+
* @default
|
|
244
|
+
*/
|
|
245
|
+
this.confirmPassword = false;
|
|
246
|
+
/**
|
|
247
|
+
* @uiName Enable Password Validation
|
|
248
|
+
*/
|
|
249
|
+
this.enablePasswordValidation = true;
|
|
250
|
+
/**
|
|
251
|
+
* Hide default input fields to use custom fields
|
|
252
|
+
*
|
|
253
|
+
* @uiName Hide Default Inputs
|
|
254
|
+
* @default
|
|
255
|
+
*/
|
|
256
|
+
this.hideInputs = false;
|
|
257
|
+
/**
|
|
258
|
+
* @uiName Heading Label
|
|
259
|
+
*/
|
|
260
|
+
this.pageLabel = "Register";
|
|
261
|
+
/**
|
|
262
|
+
* Login button redirection path
|
|
263
|
+
*
|
|
264
|
+
* @uiName Login Path
|
|
265
|
+
*/
|
|
266
|
+
this.loginPath = "/login";
|
|
267
|
+
stencilHooks_module.h$1(this);
|
|
268
|
+
}
|
|
269
|
+
disconnectedCallback() { }
|
|
270
|
+
render() {
|
|
271
|
+
const { states, callbacks, refs } = index_module.L()
|
|
272
|
+
? useRegisterDemo(this)
|
|
273
|
+
: usePortalRegistrationForm(this);
|
|
274
|
+
const content = {
|
|
275
|
+
formData: index.h("slot", { name: "formData" }),
|
|
276
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.In.push(states.loginPath) }, this.loginLabel))),
|
|
277
|
+
terms: index.h("slot", { name: "terms" }),
|
|
278
|
+
emailLabel: this.emailLabel,
|
|
279
|
+
passwordLabel: this.passwordLabel,
|
|
280
|
+
submitLabel: this.submitLabel,
|
|
281
|
+
pageLabel: this.pageLabel,
|
|
282
|
+
confirmPasswordLabel: this.confirmPasswordLabel,
|
|
283
|
+
};
|
|
284
|
+
return (index.h(PortalRegistrationFormView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
function useRegisterDemo(props) {
|
|
288
|
+
return cjs.cjs({
|
|
289
|
+
states: {
|
|
290
|
+
error: "",
|
|
291
|
+
loading: false,
|
|
292
|
+
confirmPassword: true,
|
|
293
|
+
hideInputs: props.hideInputs || false,
|
|
294
|
+
customPasswordField: false,
|
|
295
|
+
loginPath: "/login",
|
|
296
|
+
},
|
|
297
|
+
callbacks: {
|
|
298
|
+
submit: async (_event) => {
|
|
299
|
+
console.log("submit");
|
|
300
|
+
},
|
|
301
|
+
inputFunction: () => { },
|
|
302
|
+
},
|
|
303
|
+
refs: {
|
|
304
|
+
formRef: {},
|
|
305
|
+
},
|
|
306
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
exports.sqm_portal_registration_form = PortalRegistrationForm;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
7
7
|
require('./use-callback-e754042f.js');
|
|
8
|
-
const index_module = require('./index.module-
|
|
8
|
+
const index_module = require('./index.module-ffe1aa35.js');
|
|
9
9
|
require('./extends-08099afd.js');
|
|
10
10
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
11
11
|
const cjs = require('./cjs-1066ec21.js');
|
|
@@ -16,11 +16,11 @@ require('./sqm-text-span-view-2c7d94b5.js');
|
|
|
16
16
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-f8dc0b79.js');
|
|
17
17
|
|
|
18
18
|
function usePortalResetPassword(props) {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f;
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
20
20
|
const [reset, setReset] = stencilHooks_module.useState(false);
|
|
21
21
|
const [error, setError] = stencilHooks_module.useState("");
|
|
22
|
-
const [verifyPasswordResetCode, verifyPasswordResetCodeState] = index_module.
|
|
23
|
-
const [resetPassword, resetPasswordState] = index_module.
|
|
22
|
+
const [verifyPasswordResetCode, verifyPasswordResetCodeState] = index_module.Ke();
|
|
23
|
+
const [resetPassword, resetPasswordState] = index_module.Ge();
|
|
24
24
|
const urlParams = new URLSearchParams(window.location.search);
|
|
25
25
|
const oobCode = urlParams.get("oobCode");
|
|
26
26
|
urlParams.delete("oobCode");
|
|
@@ -41,10 +41,10 @@ function usePortalResetPassword(props) {
|
|
|
41
41
|
const gotoNextPage = () => {
|
|
42
42
|
urlParams.delete("nextPage");
|
|
43
43
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
44
|
-
index_module.
|
|
44
|
+
index_module.In.push(url.href);
|
|
45
45
|
};
|
|
46
46
|
const failed = () => {
|
|
47
|
-
index_module.
|
|
47
|
+
index_module.In.push({
|
|
48
48
|
pathname: props.failedPage,
|
|
49
49
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
50
50
|
});
|
|
@@ -67,14 +67,21 @@ function usePortalResetPassword(props) {
|
|
|
67
67
|
setError("Network request failed.");
|
|
68
68
|
}
|
|
69
69
|
}, [verifyPasswordResetCodeState === null || verifyPasswordResetCodeState === void 0 ? void 0 : verifyPasswordResetCodeState.errors]);
|
|
70
|
+
stencilHooks_module.useEffect(() => {
|
|
71
|
+
var _a;
|
|
72
|
+
if ((_a = resetPasswordState === null || resetPasswordState === void 0 ? void 0 : resetPasswordState.errors) === null || _a === void 0 ? void 0 : _a.message) {
|
|
73
|
+
setError("Network request failed.");
|
|
74
|
+
}
|
|
75
|
+
}, [resetPasswordState === null || resetPasswordState === void 0 ? void 0 : resetPasswordState.errors]);
|
|
70
76
|
return {
|
|
71
77
|
states: {
|
|
72
78
|
loading: resetPasswordState.loading,
|
|
73
79
|
reset,
|
|
74
80
|
confirmPassword: props.confirmPassword,
|
|
75
|
-
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) ||
|
|
81
|
+
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) ||
|
|
82
|
+
error,
|
|
76
83
|
oobCodeValidating: verifyPasswordResetCodeState.loading,
|
|
77
|
-
oobCodeValid: (
|
|
84
|
+
oobCodeValid: (_l = verifyPasswordResetCodeState.data) === null || _l === void 0 ? void 0 : _l.verifyManagedIdentityPasswordResetCode.success,
|
|
78
85
|
content: {
|
|
79
86
|
passwordResetHeader: props.passwordResetHeader,
|
|
80
87
|
resetPasswordHeader: props.resetPasswordHeader,
|
|
@@ -108,6 +115,7 @@ const PortalResetPassword = class {
|
|
|
108
115
|
* Show or hide confirm password field
|
|
109
116
|
*
|
|
110
117
|
* @uiName Show Confirm Password
|
|
118
|
+
* @default
|
|
111
119
|
*/
|
|
112
120
|
this.confirmPassword = false;
|
|
113
121
|
/**
|
|
@@ -142,7 +150,7 @@ const PortalResetPassword = class {
|
|
|
142
150
|
}
|
|
143
151
|
disconnectedCallback() { }
|
|
144
152
|
render() {
|
|
145
|
-
const { states, callbacks } = index_module.
|
|
153
|
+
const { states, callbacks } = index_module.L()
|
|
146
154
|
? usePortalResetPasswordDemo(this)
|
|
147
155
|
: usePortalResetPassword(this);
|
|
148
156
|
return index.h(sqmPortalResetPasswordView.PortalResetPasswordView, { states: states, callbacks: callbacks });
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
7
7
|
require('./use-callback-e754042f.js');
|
|
8
|
-
const index_module = require('./index.module-
|
|
8
|
+
const index_module = require('./index.module-ffe1aa35.js');
|
|
9
9
|
require('./extends-08099afd.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
require('./mixins-fe9d4112.js');
|
|
@@ -15,18 +15,18 @@ require('./sqm-text-span-view-2c7d94b5.js');
|
|
|
15
15
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-cc59877c.js');
|
|
16
16
|
|
|
17
17
|
function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
18
|
-
var _a, _b, _c, _d, _e;
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
19
19
|
const [verified, setVerified] = stencilHooks_module.useState(false);
|
|
20
20
|
const [disableContinue, setDisableContinue] = stencilHooks_module.useState(true);
|
|
21
|
-
const userIdent = index_module.
|
|
22
|
-
const [request, { loading, data, errors }] = index_module.
|
|
21
|
+
const userIdent = index_module.ae();
|
|
22
|
+
const [request, { loading, data, errors }] = index_module.dn();
|
|
23
23
|
const [error, setError] = stencilHooks_module.useState("");
|
|
24
24
|
const urlParams = new URLSearchParams(window.location.search);
|
|
25
25
|
const oobCode = urlParams.get("oobCode");
|
|
26
26
|
const nextPageOverride = urlParams.get("nextPage");
|
|
27
27
|
urlParams.delete("oobCode");
|
|
28
28
|
const failed = () => {
|
|
29
|
-
return index_module.
|
|
29
|
+
return index_module.In.push({
|
|
30
30
|
pathname: failedPage,
|
|
31
31
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
32
32
|
});
|
|
@@ -34,7 +34,7 @@ function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
|
34
34
|
const gotoNextPage = () => {
|
|
35
35
|
urlParams.delete("nextPage");
|
|
36
36
|
const url = utils.sanitizeUrlPath(nextPageOverride || nextPage);
|
|
37
|
-
index_module.
|
|
37
|
+
index_module.In.push(url.href);
|
|
38
38
|
};
|
|
39
39
|
const submit = async () => {
|
|
40
40
|
if (oobCode) {
|
|
@@ -78,7 +78,8 @@ function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
|
78
78
|
return {
|
|
79
79
|
states: {
|
|
80
80
|
loading: loading || disableContinue,
|
|
81
|
-
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) ||
|
|
81
|
+
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) ||
|
|
82
|
+
error,
|
|
82
83
|
verified,
|
|
83
84
|
},
|
|
84
85
|
data: {
|
|
@@ -111,7 +112,7 @@ const PortalVerifyEmail = class {
|
|
|
111
112
|
}
|
|
112
113
|
disconnectedCallback() { }
|
|
113
114
|
render() {
|
|
114
|
-
const { states, data, callbacks } = index_module.
|
|
115
|
+
const { states, data, callbacks } = index_module.L()
|
|
115
116
|
? usePortalVerifyEmailDemo(this)
|
|
116
117
|
: usePortalVerifyEmail(this);
|
|
117
118
|
return (index.h(sqmPortalVerifyEmailView.PortalVerifyEmailView, { states: states, data: data, callbacks: callbacks }));
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-b0129cd6.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
7
|
+
require('./extends-08099afd.js');
|
|
8
|
+
const JSS = require('./JSS-97fd087e.js');
|
|
9
|
+
const utils = require('./utils-6847bc06.js');
|
|
10
|
+
|
|
11
|
+
const style = {
|
|
12
|
+
Container: {
|
|
13
|
+
display: "flex",
|
|
14
|
+
color: "var(--sl-color-neutral-900)",
|
|
15
|
+
background: "var(--sl-color-neutral-0)",
|
|
16
|
+
"& .left": {
|
|
17
|
+
boxSizing: "border-box",
|
|
18
|
+
width: "50%",
|
|
19
|
+
padding: "var(--sl-spacing-large)",
|
|
20
|
+
paddingRight: "var(--sl-spacing-medium)",
|
|
21
|
+
"@media (max-width: 499px)": {
|
|
22
|
+
width: "100%",
|
|
23
|
+
padding: "0",
|
|
24
|
+
marginBottom: "var(--sl-spacing-xx-large)",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
"& .right": {
|
|
28
|
+
boxSizing: "border-box",
|
|
29
|
+
width: "50%",
|
|
30
|
+
padding: "var(--sl-spacing-large)",
|
|
31
|
+
paddingLeft: "var(--sl-spacing-medium)",
|
|
32
|
+
"@media (max-width: 499px)": {
|
|
33
|
+
width: "100%",
|
|
34
|
+
padding: "0",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
border: "1px solid var(--sl-color-neutral-300)",
|
|
38
|
+
borderRadius: "var(--sl-border-radius-large)",
|
|
39
|
+
"@media (max-width: 499px)": {
|
|
40
|
+
flexDirection: "column",
|
|
41
|
+
border: "none",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const sheet = JSS.createStyleSheet(style);
|
|
46
|
+
const styleString = sheet.toString();
|
|
47
|
+
const vanillaStyle = `
|
|
48
|
+
:host{
|
|
49
|
+
display: block;
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
function ReferralCardView(props) {
|
|
53
|
+
return (index.h("div", null,
|
|
54
|
+
index.h("style", { type: "text/css" },
|
|
55
|
+
styleString,
|
|
56
|
+
vanillaStyle),
|
|
57
|
+
index.h("div", { class: sheet.classes.Container },
|
|
58
|
+
index.h("div", { class: "left", style: {
|
|
59
|
+
alignSelf: props.verticalAlignment,
|
|
60
|
+
} }, props.slots.left),
|
|
61
|
+
index.h("div", { class: "right", style: {
|
|
62
|
+
alignSelf: props.verticalAlignment,
|
|
63
|
+
} }, props.slots.right))));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const ReferralCard = class {
|
|
67
|
+
constructor(hostRef) {
|
|
68
|
+
index.registerInstance(this, hostRef);
|
|
69
|
+
this.ignored = true;
|
|
70
|
+
/**
|
|
71
|
+
* @uiName Vertical Aligment
|
|
72
|
+
* @uiType string
|
|
73
|
+
* @uiEnum ["start", "center", "end"]
|
|
74
|
+
* @uiEnumNames ["Top", "Center", "Bottom"]
|
|
75
|
+
*/
|
|
76
|
+
this.verticalAlignment = "start";
|
|
77
|
+
stencilHooks_module.h$1(this);
|
|
78
|
+
}
|
|
79
|
+
disconnectedCallback() { }
|
|
80
|
+
render() {
|
|
81
|
+
const slots = {
|
|
82
|
+
left: index.h("slot", { name: "left" }),
|
|
83
|
+
right: index.h("slot", { name: "right" }),
|
|
84
|
+
};
|
|
85
|
+
return (index.h(ReferralCardView, Object.assign({}, utils.getProps(this), { slots: slots }), index.h("slot", null)));
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
exports.sqm_qa_referral_card = ReferralCard;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-b0129cd6.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
7
|
+
require('./use-callback-e754042f.js');
|
|
8
|
+
const index_module = require('./index.module-ffe1aa35.js');
|
|
9
|
+
require('./extends-08099afd.js');
|
|
10
|
+
const useChildElements = require('./useChildElements-a7a7b921.js');
|
|
11
|
+
const utils = require('./utils-6847bc06.js');
|
|
12
|
+
|
|
13
|
+
const TabsView = ({ content, placement, }) => {
|
|
14
|
+
// Vertical padding for top & bottom placement, horizontal for left & right.
|
|
15
|
+
const padding = !placement || placement === "top" || placement === "bottom"
|
|
16
|
+
? "var(--sl-spacing-x-large) 0;"
|
|
17
|
+
: "0 var(--sl-spacing-xx-large);";
|
|
18
|
+
const vanillaStyle = `
|
|
19
|
+
sl-tab-panel::part(base) {
|
|
20
|
+
padding: ${padding};
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
const host = stencilHooks_module.l();
|
|
24
|
+
return (index.h(index.Host, null,
|
|
25
|
+
index.h("style", { type: "text/css" }, vanillaStyle),
|
|
26
|
+
index.h("sl-tab-group", { placement: placement }, content.tabs.map((tab) => {
|
|
27
|
+
const slotName = tab.getAttribute("slot");
|
|
28
|
+
if (tab.tagName === "RAISINS-PLOP-TARGET") {
|
|
29
|
+
return (index.h("sl-tab", { slot: "nav" },
|
|
30
|
+
index.h("div", { style: { marginTop: "10px" } },
|
|
31
|
+
index.h("slot", { name: slotName }))));
|
|
32
|
+
}
|
|
33
|
+
return [
|
|
34
|
+
index.h("sl-tab", { slot: "nav", panel: slotName, id: tab.getAttribute("id") || slotName }, tab.getAttribute("header")),
|
|
35
|
+
index.h("sl-tab-panel", { name: slotName },
|
|
36
|
+
index.h("slot", { name: slotName })),
|
|
37
|
+
];
|
|
38
|
+
})),
|
|
39
|
+
index.h("div", { style: { display: "none" } },
|
|
40
|
+
index.h("slot", null))));
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const REVEAL_EVENT = "sq:reveal";
|
|
44
|
+
function useTabs() {
|
|
45
|
+
const rawTabs = useChildElements.useChildElements();
|
|
46
|
+
const host = index_module.P();
|
|
47
|
+
const tabs = stencilHooks_module.useMemo(() => rawTabs
|
|
48
|
+
.filter((tab) => tab.tagName === "SQM-TAB" || tab.tagName === "RAISINS-PLOP-TARGET")
|
|
49
|
+
.map((tab, i) => {
|
|
50
|
+
if (tab.tagName === "RAISINS-PLOP-TARGET") {
|
|
51
|
+
const plopTab = tab;
|
|
52
|
+
plopTab.style.position = "absolute";
|
|
53
|
+
plopTab.style.left = "6px";
|
|
54
|
+
const plopTarget = tab.firstElementChild
|
|
55
|
+
.childNodes[1];
|
|
56
|
+
plopTarget.innerHTML = "+";
|
|
57
|
+
plopTarget.style.lineHeight = "20px";
|
|
58
|
+
}
|
|
59
|
+
tab.setAttribute("slot", "tab-" + i);
|
|
60
|
+
// set id as targets for scroll component
|
|
61
|
+
tab.setAttribute("id", "tab-" + i);
|
|
62
|
+
return tab;
|
|
63
|
+
}), [rawTabs]);
|
|
64
|
+
stencilHooks_module.useEffect(() => {
|
|
65
|
+
const listener = (e) => {
|
|
66
|
+
var _a;
|
|
67
|
+
const target = e.target;
|
|
68
|
+
// Prevents recursively nested components from sending requests up all the way
|
|
69
|
+
e.stopPropagation();
|
|
70
|
+
if (!target)
|
|
71
|
+
return;
|
|
72
|
+
const tabsComponent = target.closest("sqm-tabs");
|
|
73
|
+
if (!host.contains(target) || !tabsComponent)
|
|
74
|
+
return;
|
|
75
|
+
const targetTab = target.closest("sqm-tab");
|
|
76
|
+
const tabGroup = tabsComponent.shadowRoot.querySelector("sl-tab-group");
|
|
77
|
+
(_a = tabGroup) === null || _a === void 0 ? void 0 : _a.show(targetTab.id);
|
|
78
|
+
};
|
|
79
|
+
host.addEventListener(REVEAL_EVENT, listener);
|
|
80
|
+
return () => {
|
|
81
|
+
host.removeEventListener(REVEAL_EVENT, listener);
|
|
82
|
+
};
|
|
83
|
+
}, []);
|
|
84
|
+
return { content: { tabs } };
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const Tabs = class {
|
|
88
|
+
constructor(hostRef) {
|
|
89
|
+
index.registerInstance(this, hostRef);
|
|
90
|
+
stencilHooks_module.h$1(this);
|
|
91
|
+
}
|
|
92
|
+
disconnectedCallback() { }
|
|
93
|
+
render() {
|
|
94
|
+
const { content } = useTabs();
|
|
95
|
+
const { placement } = utils.getProps(this);
|
|
96
|
+
return (index.h(TabsView, { placement: placement, content: content }, index.h("slot", null)));
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
exports.sqm_qa_tabs = Tabs;
|
|
@@ -61,6 +61,7 @@ const ShareButton = class {
|
|
|
61
61
|
* Description here
|
|
62
62
|
* @uiName Date Interval with default
|
|
63
63
|
* @uiWidget dateRange
|
|
64
|
+
* @uiWidgetOptions {"allowPastDates":true, "months": 1}
|
|
64
65
|
* @format date-interval
|
|
65
66
|
*/
|
|
66
67
|
this.dateInterval = "2020-07-07T12:00:00-08:00/2021-08-08T12:00:00-08:00";
|