@saasquatch/mint-components 1.7.0-7 → 1.7.0-9
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/AsYouType-6788393a.js +3874 -0
- package/dist/cjs/{GenericTableView-6b0d1f93.js → GenericTableView-fa0cb936.js} +1 -1
- package/dist/cjs/{JSS-a75f3a9a.js → JSS-c73206b7.js} +35 -19
- package/dist/cjs/{ShadowViewAddon-260da162.js → ShadowViewAddon-970dff24.js} +172 -194
- package/dist/cjs/{global-a7614907.js → global-97364373.js} +4 -4
- package/dist/cjs/{index.module-1c799b1f.js → index.module-d3a28293.js} +6887 -6843
- package/dist/cjs/loader.cjs.js +5 -6
- package/dist/cjs/{luxon-59ca7d19.js → luxon-479fc825.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -6
- package/dist/cjs/{re-render-c02c16c0.js → re-render-7b0c34bb.js} +5 -5
- package/dist/cjs/{sqm-asset-card-view-07420209.js → sqm-asset-card-view-7e16757a.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +6 -7
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +383 -4308
- package/dist/cjs/sqm-empty_5.cjs.entry.js +4 -6
- package/dist/cjs/sqm-form-message.cjs.entry.js +1 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -8
- package/dist/cjs/sqm-hamburger-menu.cjs.entry.js +160 -0
- package/dist/cjs/sqm-header-logo.cjs.entry.js +30 -0
- package/dist/cjs/{sqm-hero-view-d5d46a36.js → sqm-hero-view-f4264d5e.js} +3 -3
- package/dist/cjs/sqm-hero.cjs.entry.js +6 -5
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -9
- package/dist/cjs/{sqm-navigation-sidebar-item-view-85e51ba6.js → sqm-navigation-sidebar-item-view-46a53c67.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +7 -8
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +197 -6
- package/dist/cjs/sqm-password-field.cjs.entry.js +23 -20
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -7
- package/dist/cjs/{sqm-portal-container-view-a3e86fc2.js → sqm-portal-container-view-4a8432e9.js} +1 -3
- package/dist/cjs/{sqm-portal-email-verification-view-c60833cc.js → sqm-portal-email-verification-view-56d07e94.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +27 -29
- package/dist/cjs/{sqm-portal-footer-view-d5478077.js → sqm-portal-footer-view-cbd4cd48.js} +3 -3
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +16 -9
- package/dist/cjs/{sqm-portal-forgot-password-view-97932f7a.js → sqm-portal-forgot-password-view-aaa8dd17.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +38 -28
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +10 -8
- package/dist/cjs/{sqm-portal-profile-view-a8ee44c2.js → sqm-portal-profile-view-9792a786.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +26 -37
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +14 -12
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +441 -0
- package/dist/cjs/{sqm-portal-reset-password-view-042073ca.js → sqm-portal-reset-password-view-035245e6.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +53 -60
- package/dist/cjs/{sqm-portal-section-view-765aae4d.js → sqm-portal-section-view-71a57cd9.js} +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-cb3c9c2f.js → sqm-portal-verify-email-view-7014ca89.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +36 -56
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +12 -13
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -4
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -5
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +32 -30
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +205 -250
- package/dist/cjs/sqm-tab.cjs.entry.js +7 -0
- package/dist/cjs/sqm-tabs.cjs.entry.js +8 -7
- package/dist/cjs/{sqm-text-span-view-ab4ad6ef.js → sqm-text-span-view-b0c90c27.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -4
- package/dist/cjs/{stencil-hooks.module-87a1f4f7.js → stencil-hooks.module-6fe43579.js} +1 -0
- package/dist/cjs/{use-callback-e754042f.js → use-callback-5d15897d.js} +1 -1
- package/dist/cjs/{useChildElements-dc4c3132.js → useChildElements-24fbca82.js} +7 -5
- package/dist/cjs/{useReferralTable-f52c7f8e.js → useReferralTable-8f7a049c.js} +9 -9
- package/dist/cjs/useRegistrationFormState-3f88db90.js +14 -0
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +8 -13
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -144
- package/dist/collection/components/sqm-big-stat/useBigStat.js +1 -3
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +2 -10
- package/dist/collection/components/sqm-brand/sqm-brand.js +13 -32
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -16
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +12 -5
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +3 -2
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +15 -9
- package/dist/collection/components/sqm-checkbox-field/useCheckboxField.js +12 -5
- package/dist/collection/components/sqm-divided-layout/DividedLayout.stories.js +6 -5
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +2 -4
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +40 -2
- package/dist/collection/components/sqm-dropdown-field/DropdownField.stories.js +13 -6
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +6 -2
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +11 -4
- package/dist/collection/components/sqm-dropdown-field/useDropdownField.js +3 -3
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +1 -1
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +1 -0
- package/dist/collection/components/sqm-graphql-client-provider/sqm-graphql-client-provider.js +1 -0
- package/dist/collection/components/sqm-hamburger-menu/HamburgerMenu.stories.js +7 -0
- package/dist/collection/components/sqm-hamburger-menu/sqm-hamburger-menu-view.js +139 -0
- package/dist/collection/components/sqm-hamburger-menu/sqm-hamburger-menu.js +45 -0
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +102 -0
- package/dist/collection/components/sqm-hero/sqm-hero.js +9 -2
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +0 -2
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -22
- package/dist/collection/components/sqm-image/sqm-image-view.js +0 -1
- package/dist/collection/components/sqm-image/sqm-image.js +1 -21
- package/dist/collection/components/sqm-input-field/InputField.stories.js +12 -5
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +6 -2
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +10 -4
- package/dist/collection/components/sqm-input-field/useInputField.js +3 -3
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +8 -4
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +10 -3
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +7 -4
- package/dist/collection/components/sqm-name-fields/useNameFields.js +3 -3
- package/dist/collection/components/sqm-navigation-sidebar/NavigationSidebar.stories.js +6 -5
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +146 -7
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +36 -5
- package/dist/collection/components/sqm-navigation-sidebar/useNavigationSidebar.js +17 -0
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +7 -1
- package/dist/collection/components/sqm-password-field/PasswordField.stories.js +9 -3
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +8 -4
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +15 -12
- package/dist/collection/components/sqm-password-field/usePasswordField.js +4 -4
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +29 -23
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +7 -10
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +0 -2
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +3 -46
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +15 -7
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +14 -17
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +2 -2
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +1 -1
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +38 -6
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +68 -9
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +16 -16
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +3 -7
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +29 -2
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +58 -54
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +13 -16
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +10 -4
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +26 -36
- package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +1 -1
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +12 -11
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +5 -0
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +5 -6
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +49 -45
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +41 -25
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +105 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +80 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +595 -0
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +207 -0
- package/dist/collection/components/sqm-portal-registration-form/useRegistrationFormState.js +8 -0
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +39 -33
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +23 -29
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +17 -9
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +20 -41
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +1 -1
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +1 -1
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +2 -1
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +4 -20
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +0 -130
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +4 -4
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +18 -15
- package/dist/collection/components/sqm-route/sqm-route.js +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +2 -2
- package/dist/collection/components/sqm-share-code/useShareCode.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +9 -22
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +2 -125
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +2 -6
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +1 -49
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-tab/sqm-tab.js +7 -0
- package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +2 -2
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +1 -3
- package/dist/collection/components/sqm-tabs/useTabs.js +3 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +0 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +3 -3
- package/dist/collection/components/sqm-text/sqm-text.js +0 -7
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +2 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +0 -23
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +8 -8
- package/dist/collection/global/styles.js +1 -1
- package/dist/collection/global/styles.ts +1 -1
- package/dist/collection/stories/NewPortal.stories.js +6 -5
- package/dist/collection/tables/useChildElements.js +5 -3
- package/dist/esm/AsYouType-46f67d0d.js +3872 -0
- package/dist/esm/{GenericTableView-80119630.js → GenericTableView-5dd51546.js} +1 -1
- package/dist/esm/{JSS-418cab16.js → JSS-506b9295.js} +17 -1
- package/dist/esm/{ShadowViewAddon-b2386d47.js → ShadowViewAddon-f0daae38.js} +172 -194
- package/dist/esm/{global-2d97b8c1.js → global-5f5e66ae.js} +4 -4
- package/dist/esm/{index.module-2b4f1755.js → index.module-877f3231.js} +6865 -6822
- package/dist/esm/loader.js +5 -6
- package/dist/esm/{luxon-578505e2.js → luxon-5a398612.js} +1 -1
- package/dist/esm/mint-components.js +5 -6
- package/dist/esm/{re-render-2c1d8030.js → re-render-9d31cb93.js} +5 -5
- package/dist/esm/{sqm-asset-card-view-68f80b85.js → sqm-asset-card-view-de0f3463.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +6 -7
- package/dist/esm/sqm-big-stat_35.entry.js +383 -4308
- package/dist/esm/sqm-empty_5.entry.js +4 -6
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +7 -8
- package/dist/esm/sqm-hamburger-menu.entry.js +156 -0
- package/dist/esm/sqm-header-logo.entry.js +26 -0
- package/dist/esm/{sqm-hero-view-1f148798.js → sqm-hero-view-ed7fa8f3.js} +3 -3
- package/dist/esm/sqm-hero.entry.js +6 -5
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -9
- package/dist/esm/{sqm-navigation-sidebar-item-view-b22b07a2.js → sqm-navigation-sidebar-item-view-393c5475.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -8
- package/dist/esm/sqm-navigation-sidebar.entry.js +199 -8
- package/dist/esm/sqm-password-field.entry.js +23 -20
- package/dist/esm/sqm-popup-container.entry.js +6 -7
- package/dist/esm/{sqm-portal-container-view-5d6f1411.js → sqm-portal-container-view-8f1bcc77.js} +1 -3
- package/dist/esm/{sqm-portal-email-verification-view-3dad1010.js → sqm-portal-email-verification-view-96f98975.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +27 -29
- package/dist/esm/{sqm-portal-footer-view-c35314a2.js → sqm-portal-footer-view-744654ef.js} +3 -3
- package/dist/esm/sqm-portal-footer.entry.js +16 -9
- package/dist/esm/{sqm-portal-forgot-password-view-f7239087.js → sqm-portal-forgot-password-view-38910bc9.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +38 -28
- package/dist/esm/sqm-portal-logout.entry.js +10 -8
- package/dist/esm/{sqm-portal-profile-view-3d621db8.js → sqm-portal-profile-view-f5904a10.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +26 -37
- package/dist/esm/sqm-portal-protected-route.entry.js +14 -12
- package/dist/esm/sqm-portal-registration-form.entry.js +437 -0
- package/dist/esm/{sqm-portal-reset-password-view-e0436989.js → sqm-portal-reset-password-view-55411ca5.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +53 -60
- package/dist/esm/{sqm-portal-section-view-c8d1c727.js → sqm-portal-section-view-d64cd5de.js} +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-c489166b.js → sqm-portal-verify-email-view-7ba350f9.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +36 -56
- package/dist/esm/sqm-referral-table_11.entry.js +12 -13
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -4
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -5
- package/dist/esm/sqm-rewards-table_9.entry.js +32 -30
- package/dist/esm/sqm-stencilbook.entry.js +205 -250
- package/dist/esm/sqm-tab.entry.js +7 -0
- package/dist/esm/sqm-tabs.entry.js +8 -7
- package/dist/esm/{sqm-text-span-view-020db63f.js → sqm-text-span-view-20c0f018.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -4
- package/dist/esm/{stencil-hooks.module-e39af977.js → stencil-hooks.module-eefa3570.js} +1 -1
- package/dist/esm/{use-callback-697e2ff0.js → use-callback-684c8bb7.js} +1 -1
- package/dist/esm/{useChildElements-0eab9c95.js → useChildElements-591435be.js} +7 -5
- package/dist/esm/{useReferralTable-3513622d.js → useReferralTable-f991c78a.js} +9 -9
- package/dist/esm/useRegistrationFormState-04a77cee.js +11 -0
- package/dist/esm-es5/AsYouType-46f67d0d.js +1 -0
- package/dist/esm-es5/{GenericTableView-80119630.js → GenericTableView-5dd51546.js} +1 -1
- package/dist/esm-es5/{JSS-418cab16.js → JSS-506b9295.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-f0daae38.js +1 -0
- package/dist/esm-es5/{global-2d97b8c1.js → global-5f5e66ae.js} +2 -2
- package/dist/esm-es5/index.module-877f3231.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-578505e2.js → luxon-5a398612.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-2c1d8030.js → re-render-9d31cb93.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-68f80b85.js → sqm-asset-card-view-de0f3463.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-hamburger-menu.entry.js +1 -0
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -0
- package/dist/esm-es5/{sqm-hero-view-1f148798.js → sqm-hero-view-ed7fa8f3.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-b22b07a2.js → sqm-navigation-sidebar-item-view-393c5475.js} +1 -1
- 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-container-view-8f1bcc77.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-3dad1010.js → sqm-portal-email-verification-view-96f98975.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-c35314a2.js → sqm-portal-footer-view-744654ef.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-f7239087.js → sqm-portal-forgot-password-view-38910bc9.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-3d621db8.js → sqm-portal-profile-view-f5904a10.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-view-e0436989.js → sqm-portal-reset-password-view-55411ca5.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-section-view-d64cd5de.js +1 -0
- package/dist/esm-es5/{sqm-portal-verify-email-view-c489166b.js → sqm-portal-verify-email-view-7ba350f9.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-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-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-020db63f.js → sqm-text-span-view-20c0f018.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-e39af977.js → stencil-hooks.module-eefa3570.js} +1 -1
- package/dist/esm-es5/use-callback-684c8bb7.js +1 -0
- package/dist/esm-es5/useChildElements-591435be.js +1 -0
- package/dist/esm-es5/useReferralTable-f991c78a.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-04a77cee.js +1 -0
- package/dist/mint-components/global/styles.ts +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-00732eb1.entry.js +1 -0
- package/dist/mint-components/p-0222e8b1.system.js +1 -0
- package/dist/mint-components/p-03b1dda6.js +1 -0
- package/dist/mint-components/p-0571ac6b.system.entry.js +1 -0
- package/dist/mint-components/p-0878d563.system.entry.js +1 -0
- package/dist/mint-components/p-095d7d5e.entry.js +1 -0
- package/dist/mint-components/p-09a4bd9b.system.entry.js +1 -0
- package/dist/mint-components/{p-ec634002.system.entry.js → p-0a27f867.system.entry.js} +1 -1
- package/dist/mint-components/{p-b8452e47.entry.js → p-0b85f581.entry.js} +1 -1
- package/dist/mint-components/{p-be4cfea0.system.js → p-0bf5d514.system.js} +1 -1
- package/dist/mint-components/p-0f1fc54b.entry.js +1 -0
- package/dist/mint-components/p-121cdc60.js +1 -0
- package/dist/mint-components/{p-fb5163d7.js → p-14aacddf.js} +1 -1
- package/dist/mint-components/{p-0935fef5.system.js → p-1c87be0c.system.js} +1 -1
- package/dist/mint-components/{p-a1b9ca51.system.js → p-1cc7a8e6.system.js} +1 -1
- package/dist/mint-components/p-1e541014.system.entry.js +1 -0
- package/dist/mint-components/{p-ab2cbd56.js → p-1fbf8d0b.js} +1 -1
- package/dist/mint-components/{p-aa0ccc8d.js → p-2506531b.js} +1 -1
- package/dist/mint-components/p-2a33de60.entry.js +13 -0
- package/dist/mint-components/p-2c4c978e.system.entry.js +1 -0
- package/dist/mint-components/{p-903a6d4d.js → p-2dc6e74c.js} +1 -1
- package/dist/mint-components/{p-5fca1bb9.system.js → p-330680dd.system.js} +1 -1
- package/dist/mint-components/p-3ac7063d.entry.js +1 -0
- package/dist/mint-components/p-3af0caba.entry.js +159 -0
- package/dist/mint-components/p-3b7d870e.entry.js +1 -0
- package/dist/mint-components/p-3bb4fd18.system.js +8 -0
- package/dist/mint-components/p-3bb76558.system.js +1 -0
- package/dist/mint-components/{p-c8c83a9e.system.entry.js → p-3c6f3be9.system.entry.js} +1 -1
- package/dist/mint-components/{p-967445d6.system.js → p-3f13dae9.system.js} +1 -1
- package/dist/mint-components/p-41860440.system.entry.js +1 -0
- package/dist/mint-components/{p-541460a6.js → p-4494b612.js} +2 -2
- package/dist/mint-components/p-456571a6.entry.js +9 -0
- package/dist/mint-components/p-46a2d411.system.js +1 -0
- package/dist/mint-components/p-4708ece8.system.js +1 -0
- package/dist/mint-components/{p-38889f3c.system.js → p-48631971.system.js} +1 -1
- package/dist/mint-components/p-4a165275.entry.js +99 -0
- package/dist/mint-components/p-4f0a49e2.system.entry.js +1 -0
- package/dist/mint-components/{p-894cf728.system.js → p-51fc3d02.system.js} +1 -1
- package/dist/mint-components/{p-30b3592f.js → p-538904bd.js} +1 -1
- package/dist/mint-components/p-5711de63.system.js +1 -0
- package/dist/mint-components/p-5934c4ab.entry.js +1 -0
- package/dist/mint-components/{p-e8f5f4e0.js → p-5a1ed9bb.js} +1 -1
- package/dist/mint-components/{p-937bf427.system.js → p-621a2912.system.js} +1 -1
- package/dist/mint-components/p-628437e6.entry.js +1 -0
- package/dist/mint-components/{p-97483814.system.entry.js → p-647256a7.system.entry.js} +1 -1
- package/dist/mint-components/{p-4519c6d9.system.js → p-684aadb5.system.js} +1 -1
- package/dist/mint-components/p-6afbdcf9.entry.js +1 -0
- package/dist/mint-components/p-6b468f72.system.entry.js +1 -0
- package/dist/mint-components/p-6cf00931.system.entry.js +1 -0
- package/dist/mint-components/p-6cf891f8.system.entry.js +1 -0
- package/dist/mint-components/p-7341c340.entry.js +1 -0
- package/dist/mint-components/p-740afefb.entry.js +1 -0
- package/dist/mint-components/p-76767c7d.system.entry.js +1 -0
- package/dist/mint-components/p-767aedc8.entry.js +1 -0
- package/dist/mint-components/{p-72b3562a.system.js → p-774c9bb9.system.js} +1 -1
- package/dist/mint-components/p-7fa5ce30.system.js +1 -0
- package/dist/mint-components/{p-25846611.js → p-80934ab7.js} +2 -2
- package/dist/mint-components/{p-6081728e.system.js → p-8128c64d.system.js} +1 -1
- package/dist/mint-components/p-848cd7ea.system.entry.js +1 -0
- package/dist/mint-components/{p-6e0c7f7c.system.js → p-85528bea.system.js} +1 -1
- package/dist/mint-components/p-85a21d7b.entry.js +1 -0
- package/dist/mint-components/p-85e934c8.js +1 -0
- package/dist/mint-components/{p-46416f3e.js → p-864be7c2.js} +1 -1
- package/dist/mint-components/p-88cc585a.system.entry.js +1 -0
- package/dist/mint-components/{p-48a1e759.entry.js → p-8a2c78e0.entry.js} +1 -1
- package/dist/mint-components/p-9124a1e9.system.entry.js +1 -0
- package/dist/mint-components/p-919b93f1.js +1 -0
- package/dist/mint-components/p-92e8439a.system.entry.js +1 -0
- package/dist/mint-components/p-99397ef5.system.js +1 -0
- package/dist/mint-components/p-9c1841c6.entry.js +1 -0
- package/dist/mint-components/p-9d362d44.system.js +1 -0
- package/dist/mint-components/{p-066a4b23.system.js → p-9db19ba0.system.js} +2 -2
- package/dist/mint-components/p-9fd08e41.js +1 -0
- package/dist/mint-components/p-a91c1995.entry.js +1 -0
- package/dist/mint-components/p-af10beae.entry.js +33 -0
- package/dist/mint-components/p-b3436fd3.system.entry.js +1 -0
- package/dist/mint-components/p-b3610b44.entry.js +1 -0
- package/dist/mint-components/p-b9b4142b.js +268 -0
- package/dist/mint-components/p-be126e55.system.entry.js +1 -0
- package/dist/mint-components/{p-8763472e.js → p-bf4cd488.js} +1 -1
- package/dist/mint-components/p-c2c92ece.entry.js +1 -0
- package/dist/mint-components/p-c4b5c3b0.entry.js +1 -0
- package/dist/mint-components/p-c52e21cf.entry.js +1 -0
- package/dist/mint-components/p-c53322f8.system.entry.js +1 -0
- package/dist/mint-components/p-c586b1bb.entry.js +1 -0
- package/dist/mint-components/p-c5b1e781.system.entry.js +1 -0
- package/dist/mint-components/{p-edb569b8.js → p-cecf6365.js} +1 -1
- package/dist/mint-components/{p-190d0446.system.js → p-d1242e79.system.js} +1 -1
- package/dist/mint-components/p-d1341773.entry.js +1 -0
- package/dist/mint-components/{p-dc7b06ef.system.js → p-d4ee07e6.system.js} +2 -2
- package/dist/mint-components/p-d5645202.entry.js +1 -0
- package/dist/mint-components/p-d873d405.system.entry.js +1 -0
- package/dist/mint-components/p-dbfb865e.js +1 -0
- package/dist/mint-components/{p-6fd0198e.js → p-ddadc8e3.js} +1 -1
- package/dist/mint-components/p-df0899d3.entry.js +1 -0
- package/dist/mint-components/p-e3290be6.js +1 -0
- package/dist/mint-components/{p-54694cd4.system.js → p-e6b17831.system.js} +1 -1
- package/dist/mint-components/p-e71c3590.system.entry.js +1 -0
- package/dist/mint-components/{p-916a8f50.js → p-e733843b.js} +1 -1
- package/dist/mint-components/p-ea7ba030.system.entry.js +1 -0
- package/dist/mint-components/p-ec7e6d40.entry.js +1 -0
- package/dist/mint-components/p-eccd7d60.system.entry.js +1 -0
- package/dist/mint-components/p-ef147f86.system.entry.js +1 -0
- package/dist/mint-components/p-ef39ca69.system.entry.js +1 -0
- package/dist/mint-components/{p-9f08dc58.js → p-f30000d4.js} +1 -1
- package/dist/mint-components/p-f3a65df7.js +1 -0
- package/dist/mint-components/p-f6aa512e.system.js +1 -0
- package/dist/mint-components/p-fd14c63e.js +1 -0
- package/dist/mint-components/p-fdb3c23e.system.entry.js +1 -0
- package/dist/mint-components/p-fe74b75b.system.entry.js +1 -0
- package/dist/mint-components/{p-380b25a3.js → p-ff39746d.js} +1 -1
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +0 -5
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +0 -25
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +1 -6
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +2 -2
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +7 -2
- package/dist/types/components/sqm-checkbox-field/useCheckboxField.d.ts +4 -2
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +1 -0
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +9 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field-view.d.ts +2 -2
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +7 -1
- package/dist/types/components/sqm-dropdown-field/useDropdownField.d.ts +2 -1
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +1 -1
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +1 -0
- package/dist/types/components/sqm-graphql-client-provider/sqm-graphql-client-provider.d.ts +1 -0
- package/dist/types/components/sqm-hamburger-menu/HamburgerMenu.stories.d.ts +5 -0
- package/dist/types/components/sqm-hamburger-menu/sqm-hamburger-menu-view.d.ts +6 -0
- package/dist/types/components/sqm-hamburger-menu/sqm-hamburger-menu.d.ts +11 -0
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +25 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +3 -2
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +0 -1
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -7
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +0 -1
- package/dist/types/components/sqm-image/sqm-image.d.ts +1 -6
- package/dist/types/components/sqm-input-field/sqm-input-field-view.d.ts +2 -2
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +6 -2
- package/dist/types/components/sqm-input-field/useInputField.d.ts +2 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +2 -2
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +4 -1
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +2 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +2 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +3 -3
- package/dist/types/components/sqm-navigation-sidebar/useNavigationSidebar.d.ts +4 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +5 -1
- package/dist/types/components/sqm-password-field/sqm-password-field-view.d.ts +2 -1
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +9 -5
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +8 -7
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +0 -2
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +3 -13
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +5 -3
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +1 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +10 -2
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +16 -5
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +2 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +6 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +18 -26
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +5 -2
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +6 -16
- package/dist/types/components/sqm-portal-profile/usePortalProfile.d.ts +1 -1
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +8 -4
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +3 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +19 -19
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +2 -1
- 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 +37 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +118 -0
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +27 -0
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +19 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +13 -13
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +7 -5
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +1 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +1 -1
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +2 -1
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +0 -6
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +0 -28
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +2 -2
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -1
- package/dist/types/components/sqm-route/sqm-route.d.ts +1 -0
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +0 -5
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -28
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +0 -2
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -10
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +2 -0
- package/dist/types/components/sqm-table-cell/sqm-table-cell.d.ts +1 -1
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +1 -3
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +2 -2
- package/dist/types/components/sqm-text/sqm-text.d.ts +0 -7
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +0 -1
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +0 -5
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +4 -4
- package/dist/types/components.d.ts +556 -1002
- package/dist/types/global/styles.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +3 -3
- package/CHANGELOG.md +0 -473
- package/dist/cjs/extends-08099afd.js +0 -21
- package/dist/cjs/sqm-navigation-sidebar-view-0ee28f65.js +0 -36
- package/dist/cjs/sqm-qa-referral-card.cjs.entry.js +0 -89
- package/dist/cjs/sqm-qa-tabs.cjs.entry.js +0 -100
- package/dist/cjs/sqm-qa.cjs.entry.js +0 -117
- package/dist/collection/components/sqm-portal-register/useValidationState.js +0 -8
- package/dist/collection/components/sqm-qa/sqm-qa.js +0 -1064
- package/dist/collection/components/sqm-qa-referral-card/ReferralCard.stories.js +0 -79
- package/dist/collection/components/sqm-qa-referral-card/sqm-referral-card-view.js +0 -56
- package/dist/collection/components/sqm-qa-referral-card/sqm-referral-card.js +0 -70
- package/dist/collection/components/sqm-qa-tabs/Tabs.stories.js +0 -491
- package/dist/collection/components/sqm-qa-tabs/sqm-tabs-view.js +0 -31
- package/dist/collection/components/sqm-qa-tabs/sqm-tabs.js +0 -59
- package/dist/collection/components/sqm-qa-tabs/useTabs.js +0 -46
- package/dist/esm/extends-c31f1eff.js +0 -19
- package/dist/esm/sqm-navigation-sidebar-view-9cb9a5f4.js +0 -34
- package/dist/esm/sqm-qa-referral-card.entry.js +0 -85
- package/dist/esm/sqm-qa-tabs.entry.js +0 -96
- package/dist/esm/sqm-qa.entry.js +0 -113
- package/dist/esm-es5/ShadowViewAddon-b2386d47.js +0 -1
- package/dist/esm-es5/extends-c31f1eff.js +0 -1
- package/dist/esm-es5/index.module-2b4f1755.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-9cb9a5f4.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-5d6f1411.js +0 -1
- package/dist/esm-es5/sqm-portal-section-view-c8d1c727.js +0 -1
- package/dist/esm-es5/sqm-qa-referral-card.entry.js +0 -1
- package/dist/esm-es5/sqm-qa-tabs.entry.js +0 -1
- package/dist/esm-es5/sqm-qa.entry.js +0 -1
- package/dist/esm-es5/use-callback-697e2ff0.js +0 -1
- package/dist/esm-es5/useChildElements-0eab9c95.js +0 -1
- package/dist/esm-es5/useReferralTable-3513622d.js +0 -1
- package/dist/mint-components/p-03d5b192.entry.js +0 -159
- package/dist/mint-components/p-0ec3b3e5.system.js +0 -1
- package/dist/mint-components/p-127e25e6.system.entry.js +0 -1
- package/dist/mint-components/p-13f034ac.system.js +0 -1
- package/dist/mint-components/p-15b1a2b2.system.entry.js +0 -1
- package/dist/mint-components/p-16b6aea4.js +0 -1
- package/dist/mint-components/p-174767c7.entry.js +0 -1
- package/dist/mint-components/p-1c17892a.system.js +0 -1
- package/dist/mint-components/p-1e13c65a.system.entry.js +0 -1
- package/dist/mint-components/p-242d76ee.system.entry.js +0 -1
- package/dist/mint-components/p-24f8c2f6.entry.js +0 -1
- package/dist/mint-components/p-2800ad44.system.js +0 -8
- package/dist/mint-components/p-3149462a.system.entry.js +0 -1
- package/dist/mint-components/p-353a6419.system.js +0 -1
- package/dist/mint-components/p-36578b9f.system.entry.js +0 -1
- package/dist/mint-components/p-3894495a.js +0 -1
- package/dist/mint-components/p-39c637da.system.entry.js +0 -1
- package/dist/mint-components/p-408f983a.system.js +0 -1
- package/dist/mint-components/p-4647ef97.entry.js +0 -1
- package/dist/mint-components/p-46ab109e.system.entry.js +0 -1
- package/dist/mint-components/p-4d4fbaec.entry.js +0 -1
- package/dist/mint-components/p-505d8965.system.entry.js +0 -1
- package/dist/mint-components/p-50ef8db6.system.entry.js +0 -1
- package/dist/mint-components/p-54bad89f.system.entry.js +0 -1
- package/dist/mint-components/p-555c9e1d.system.entry.js +0 -1
- package/dist/mint-components/p-59d481ea.entry.js +0 -1
- package/dist/mint-components/p-5c454d18.entry.js +0 -1
- package/dist/mint-components/p-5dd4dcc7.system.entry.js +0 -1
- package/dist/mint-components/p-6073e2f7.entry.js +0 -1
- package/dist/mint-components/p-60e2423f.entry.js +0 -1
- package/dist/mint-components/p-63617b4b.system.entry.js +0 -1
- package/dist/mint-components/p-6505fca3.system.entry.js +0 -1
- package/dist/mint-components/p-673a731f.entry.js +0 -1
- package/dist/mint-components/p-684967e6.entry.js +0 -1
- package/dist/mint-components/p-6882941e.system.entry.js +0 -1
- package/dist/mint-components/p-6e2ca2a0.js +0 -1
- package/dist/mint-components/p-6fc2fea4.entry.js +0 -1
- package/dist/mint-components/p-7473b40b.system.entry.js +0 -1
- package/dist/mint-components/p-77e5a1d4.entry.js +0 -1
- package/dist/mint-components/p-7d2d6a2b.system.js +0 -1
- package/dist/mint-components/p-7fd6f6ef.system.entry.js +0 -1
- package/dist/mint-components/p-81f34787.js +0 -1
- package/dist/mint-components/p-86fcb500.system.entry.js +0 -1
- package/dist/mint-components/p-889dbba5.entry.js +0 -1
- package/dist/mint-components/p-8d445a96.entry.js +0 -1
- package/dist/mint-components/p-96b0537b.system.js +0 -1
- package/dist/mint-components/p-9744ae44.system.js +0 -1
- package/dist/mint-components/p-991d3c0c.system.entry.js +0 -1
- package/dist/mint-components/p-9f54769f.system.entry.js +0 -1
- package/dist/mint-components/p-9f5e7313.entry.js +0 -33
- package/dist/mint-components/p-a73784bb.entry.js +0 -1
- package/dist/mint-components/p-ab8f86d3.js +0 -1
- package/dist/mint-components/p-ac80106e.entry.js +0 -1
- package/dist/mint-components/p-b3fa7c87.entry.js +0 -1
- package/dist/mint-components/p-bbb584e6.system.entry.js +0 -1
- package/dist/mint-components/p-be45347d.entry.js +0 -1
- package/dist/mint-components/p-bed4977e.entry.js +0 -1
- package/dist/mint-components/p-bf29e206.system.entry.js +0 -1
- package/dist/mint-components/p-c469be65.entry.js +0 -9
- package/dist/mint-components/p-c5573b7c.js +0 -1
- package/dist/mint-components/p-c81305b3.js +0 -268
- package/dist/mint-components/p-ccbacc32.entry.js +0 -1
- package/dist/mint-components/p-cee807de.system.entry.js +0 -1
- package/dist/mint-components/p-cf7d0aee.js +0 -1
- package/dist/mint-components/p-d298e4c5.system.entry.js +0 -1
- package/dist/mint-components/p-d30d1664.system.entry.js +0 -1
- package/dist/mint-components/p-d9488d28.entry.js +0 -1
- package/dist/mint-components/p-dc564561.js +0 -1
- package/dist/mint-components/p-dec7a657.entry.js +0 -1
- package/dist/mint-components/p-e4f4bfbb.entry.js +0 -1
- package/dist/mint-components/p-eb2f96a0.system.js +0 -1
- package/dist/mint-components/p-ec5b69bd.system.entry.js +0 -1
- package/dist/mint-components/p-ee461c80.js +0 -1
- package/dist/mint-components/p-f33e65c8.entry.js +0 -1
- package/dist/mint-components/p-f55d96ad.entry.js +0 -99
- package/dist/types/components/sqm-portal-register/useValidationState.d.ts +0 -18
- package/dist/types/components/sqm-qa/sqm-qa.d.ts +0 -255
- package/dist/types/components/sqm-qa-referral-card/ReferralCard.stories.d.ts +0 -14
- package/dist/types/components/sqm-qa-referral-card/sqm-referral-card-view.d.ts +0 -9
- package/dist/types/components/sqm-qa-referral-card/sqm-referral-card.d.ts +0 -20
- package/dist/types/components/sqm-qa-tabs/Tabs.stories.d.ts +0 -15
- package/dist/types/components/sqm-qa-tabs/sqm-tabs-view.d.ts +0 -9
- package/dist/types/components/sqm-qa-tabs/sqm-tabs.d.ts +0 -23
- package/dist/types/components/sqm-qa-tabs/useTabs.d.ts +0 -9
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
3
|
-
import './global-
|
|
4
|
-
import './use-callback-
|
|
5
|
-
import { d as dist, a as
|
|
6
|
-
import './extends-c31f1eff.js';
|
|
2
|
+
import { i as useState, f as useEffect, m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './global-5f5e66ae.js';
|
|
4
|
+
import './use-callback-684c8bb7.js';
|
|
5
|
+
import { d as dist, N, a as dn, P as Pe, i as isDemo } from './index.module-877f3231.js';
|
|
7
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
|
-
import './JSS-
|
|
7
|
+
import './JSS-506b9295.js';
|
|
9
8
|
import { g as getProps } from './utils-d7bbb0e2.js';
|
|
10
|
-
import './sqm-text-span-view-
|
|
11
|
-
import './sqm-portal-container-view-
|
|
12
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
9
|
+
import './sqm-text-span-view-20c0f018.js';
|
|
10
|
+
import './sqm-portal-container-view-8f1bcc77.js';
|
|
11
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-f5904a10.js';
|
|
13
12
|
|
|
14
13
|
const GET_USER = dist.gql `
|
|
15
14
|
query {
|
|
@@ -55,12 +54,12 @@ const defaultFormState = {
|
|
|
55
54
|
error: "",
|
|
56
55
|
};
|
|
57
56
|
function usePortalProfile(props) {
|
|
58
|
-
const userIdent =
|
|
57
|
+
const userIdent = N();
|
|
59
58
|
const [success, setSuccess] = useState(false);
|
|
60
59
|
const [userData, setUserData] = useState(undefined);
|
|
61
60
|
const [formState, setFormState] = useState(defaultFormState);
|
|
62
|
-
const userDataResponse =
|
|
63
|
-
const [upsertUser, upsertUserResponse] =
|
|
61
|
+
const userDataResponse = dn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
62
|
+
const [upsertUser, upsertUserResponse] = Pe(UPSERT_USER);
|
|
64
63
|
useEffect(() => {
|
|
65
64
|
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
|
|
66
65
|
return;
|
|
@@ -135,7 +134,7 @@ function usePortalProfile(props) {
|
|
|
135
134
|
success,
|
|
136
135
|
loading: (userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.loading) || upsertUserResponse.loading,
|
|
137
136
|
submitDisabled: false,
|
|
138
|
-
showCountry: props.
|
|
137
|
+
showCountry: !props.hideCountry,
|
|
139
138
|
formState,
|
|
140
139
|
user: userData,
|
|
141
140
|
text: {
|
|
@@ -163,27 +162,19 @@ const PortalProfile = class {
|
|
|
163
162
|
registerInstance(this, hostRef);
|
|
164
163
|
this.ignored = true;
|
|
165
164
|
/**
|
|
166
|
-
* First name input field label
|
|
167
|
-
*
|
|
168
165
|
* @uiName First Name Label
|
|
169
166
|
*/
|
|
170
167
|
this.firstnametext = "First Name";
|
|
171
168
|
/**
|
|
172
|
-
* Last
|
|
173
|
-
*
|
|
174
|
-
* @uiName Last Name Label
|
|
169
|
+
* @uiName Last Name Field Label
|
|
175
170
|
*/
|
|
176
171
|
this.lastnametext = "Last Name";
|
|
177
172
|
/**
|
|
178
|
-
* Email
|
|
179
|
-
*
|
|
180
|
-
* @uiName Email Label
|
|
173
|
+
* @uiName Email Field Label
|
|
181
174
|
*/
|
|
182
175
|
this.emailtext = "Email";
|
|
183
176
|
/**
|
|
184
|
-
* Country
|
|
185
|
-
*
|
|
186
|
-
* @uiName Country Label
|
|
177
|
+
* @uiName Country Field Label
|
|
187
178
|
*/
|
|
188
179
|
this.countrytext = "Country";
|
|
189
180
|
/**
|
|
@@ -199,16 +190,14 @@ const PortalProfile = class {
|
|
|
199
190
|
*/
|
|
200
191
|
this.submitChangeButtonText = "Submit Changes";
|
|
201
192
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
* @uiName Show Country Field
|
|
193
|
+
* @uiName Hide Country Field
|
|
205
194
|
*/
|
|
206
|
-
this.
|
|
195
|
+
this.hideCountry = false;
|
|
207
196
|
h(this);
|
|
208
197
|
}
|
|
209
198
|
disconnectedCallback() { }
|
|
210
199
|
render() {
|
|
211
|
-
const props =
|
|
200
|
+
const props = isDemo()
|
|
212
201
|
? usePortalProfileDemo(getProps(this))
|
|
213
202
|
: usePortalProfile(getProps(this));
|
|
214
203
|
return h$1(PortalProfileView, Object.assign({}, props));
|
|
@@ -220,7 +209,7 @@ function usePortalProfileDemo(props) {
|
|
|
220
209
|
success: false,
|
|
221
210
|
loading: false,
|
|
222
211
|
submitDisabled: false,
|
|
223
|
-
showCountry:
|
|
212
|
+
showCountry: !props.hideCountry,
|
|
224
213
|
user: {
|
|
225
214
|
id: "01",
|
|
226
215
|
accountId: "111100000",
|
|
@@ -230,13 +219,13 @@ function usePortalProfileDemo(props) {
|
|
|
230
219
|
countryCode: "CA",
|
|
231
220
|
},
|
|
232
221
|
text: {
|
|
233
|
-
firstnametext:
|
|
234
|
-
lastnametext:
|
|
235
|
-
emailtext:
|
|
236
|
-
countrytext:
|
|
237
|
-
editProfileHeader:
|
|
238
|
-
editProfileSubHeader:
|
|
239
|
-
submitChangeButtonText:
|
|
222
|
+
firstnametext: props.firstnametext,
|
|
223
|
+
lastnametext: props.lastnametext,
|
|
224
|
+
emailtext: props.emailtext,
|
|
225
|
+
countrytext: props.countrytext,
|
|
226
|
+
editProfileHeader: props.editProfileHeader,
|
|
227
|
+
editProfileSubHeader: props.editProfileSubHeader,
|
|
228
|
+
submitChangeButtonText: props.submitChangeButtonText,
|
|
240
229
|
},
|
|
241
230
|
formState: {
|
|
242
231
|
country: "Canada",
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
3
|
-
import './use-callback-
|
|
4
|
-
import {
|
|
5
|
-
import './extends-c31f1eff.js';
|
|
2
|
+
import { f as useEffect, m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './use-callback-684c8bb7.js';
|
|
4
|
+
import { N, l as ln, f as fn, i as isDemo } from './index.module-877f3231.js';
|
|
6
5
|
|
|
7
6
|
function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
|
|
8
7
|
var _a;
|
|
9
|
-
const userIdent =
|
|
8
|
+
const userIdent = N();
|
|
10
9
|
const authenticated = !!(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt);
|
|
11
10
|
const emailVerified = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified;
|
|
12
|
-
const { pathname, search } =
|
|
11
|
+
const { pathname, search } = ln();
|
|
13
12
|
const nextPageParam = new URLSearchParams();
|
|
14
13
|
nextPageParam.append("nextPage", `${pathname}${search}`);
|
|
15
14
|
useEffect(() => {
|
|
16
15
|
if (!authenticated) {
|
|
17
|
-
return
|
|
16
|
+
return fn.push({
|
|
18
17
|
pathname: redirectTo,
|
|
19
18
|
search: "?" + nextPageParam.toString(),
|
|
20
19
|
});
|
|
21
20
|
}
|
|
22
21
|
if (requireEmailVerification && !emailVerified) {
|
|
23
|
-
return
|
|
22
|
+
return fn.push({
|
|
24
23
|
pathname: redirectToUnverified || redirectTo,
|
|
25
24
|
search: "?" + nextPageParam.toString(),
|
|
26
25
|
});
|
|
@@ -34,23 +33,26 @@ const PortalProtectedRoute = class {
|
|
|
34
33
|
registerInstance(this, hostRef);
|
|
35
34
|
this.ignored = true;
|
|
36
35
|
/**
|
|
37
|
-
*
|
|
36
|
+
* Redirect participants to this page they are not logged in.
|
|
37
|
+
*
|
|
38
|
+
* @uiName Unauthenticated Participant Redirect
|
|
38
39
|
*/
|
|
39
40
|
this.redirectTo = "/";
|
|
40
41
|
/**
|
|
41
42
|
* @uiName Require Email Verification
|
|
42
|
-
* @default
|
|
43
43
|
*/
|
|
44
44
|
this.requireEmailVerification = false;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Redirect participants to this page when email verification is required but they have not verified their email.
|
|
47
|
+
*
|
|
48
|
+
* @uiName Unverified Participant Redirect
|
|
47
49
|
*/
|
|
48
50
|
this.redirectToUnverified = "/emailVerification";
|
|
49
51
|
h(this);
|
|
50
52
|
}
|
|
51
53
|
disconnectedCallback() { }
|
|
52
54
|
render() {
|
|
53
|
-
const hasUser =
|
|
55
|
+
const hasUser = isDemo()
|
|
54
56
|
? usePortalProtectedRouteDemo()
|
|
55
57
|
: usePortalProtectedRoute(this);
|
|
56
58
|
return (h$1(Host, { style: { display: hasUser ? "contents" : "none" } }, h$1("slot", null)));
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
|
+
import { j as useRef, f as useEffect, m as h$1 } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import { u as useCallback } from './use-callback-684c8bb7.js';
|
|
4
|
+
import { d as dist, q as qe, a as dn, f as fn, i as isDemo } from './index.module-877f3231.js';
|
|
5
|
+
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
|
+
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
|
+
import { A as AuthWrapper, a as AuthColumn, H as HostBlock, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-59fd94b7.js';
|
|
8
|
+
import { c as createStyleSheet } from './JSS-506b9295.js';
|
|
9
|
+
import { T as TextSpanView } from './sqm-text-span-view-20c0f018.js';
|
|
10
|
+
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
11
|
+
import { u as useRegistrationFormState } from './useRegistrationFormState-04a77cee.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, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
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
|
+
((_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.disabled) ? (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
54
|
+
h("div", { part: "erroralert-text" }, states.registrationFormState.disabledMessage))) : (states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
55
|
+
h("div", { part: "erroralert-text" }, props.states.error)))),
|
|
56
|
+
content.formData,
|
|
57
|
+
!states.hideInputs && (h("sl-input", Object.assign({ exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading || ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.disabled), required: true, validationError: ({ value }) => {
|
|
58
|
+
if (!value) {
|
|
59
|
+
return content.requiredFieldErrorMessage;
|
|
60
|
+
}
|
|
61
|
+
// this matches shoelace validation, but could be better
|
|
62
|
+
if (!value.includes("@")) {
|
|
63
|
+
return content.invalidEmailErrorMessage;
|
|
64
|
+
}
|
|
65
|
+
} }, (((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.initialData) === null || _d === void 0 ? void 0 : _d.email) ? {
|
|
66
|
+
value: (_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.initialData) === null || _f === void 0 ? void 0 : _f.email,
|
|
67
|
+
}
|
|
68
|
+
: {}), (((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.email) ? {
|
|
69
|
+
class: sheet.classes.ErrorStyle,
|
|
70
|
+
helpText: ((_k = (_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.validationErrors) === null || _k === void 0 ? void 0 : _k.email) ||
|
|
71
|
+
content.requiredFieldErrorMessage,
|
|
72
|
+
}
|
|
73
|
+
: [])))),
|
|
74
|
+
!states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": !states.enablePasswordValidation })),
|
|
75
|
+
content.passwordField,
|
|
76
|
+
!states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading || ((_l = states.registrationFormState) === null || _l === void 0 ? void 0 : _l.disabled), required: true }, (((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.confirmPassword) ? {
|
|
77
|
+
value: (_q = (_p = states.registrationFormState) === null || _p === void 0 ? void 0 : _p.initialData) === null || _q === void 0 ? void 0 : _q.confirmPassword,
|
|
78
|
+
}
|
|
79
|
+
: {}), (((_s = (_r = states.registrationFormState) === null || _r === void 0 ? void 0 : _r.validationErrors) === null || _s === void 0 ? void 0 : _s.confirmPassword) ? {
|
|
80
|
+
class: sheet.classes.ErrorStyle,
|
|
81
|
+
helpText: ((_u = (_t = states.registrationFormState) === null || _t === void 0 ? void 0 : _t.validationErrors) === null || _u === void 0 ? void 0 : _u.confirmPassword) || content.requiredFieldErrorMessage,
|
|
82
|
+
}
|
|
83
|
+
: [])))),
|
|
84
|
+
content.terms,
|
|
85
|
+
h("div", { class: sheet.classes.ButtonsContainer },
|
|
86
|
+
h("sl-button", { submit: true, loading: states.loading, disabled: (_v = states.registrationFormState) === null || _v === void 0 ? void 0 : _v.disabled, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
87
|
+
content.secondaryButton))));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const RegistrationFormQuery = dist.gql `
|
|
91
|
+
query RegistrationFormQuery($key: String!) {
|
|
92
|
+
form(key: $key) {
|
|
93
|
+
key
|
|
94
|
+
type
|
|
95
|
+
initialData {
|
|
96
|
+
initialData
|
|
97
|
+
isEnabled
|
|
98
|
+
isEnabledErrorMessage
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
103
|
+
function usePortalRegistrationForm(props) {
|
|
104
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
105
|
+
const formRef = useRef(null);
|
|
106
|
+
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
107
|
+
const [request, { loading, errors, data, formError }] = qe();
|
|
108
|
+
const queryResponse = dn(RegistrationFormQuery, { key: props.formKey });
|
|
109
|
+
const formLoading = loading || queryResponse.loading;
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
var _a, _b, _c;
|
|
112
|
+
const initialData = (_a = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _a === void 0 ? void 0 : _a.form.initialData.initialData;
|
|
113
|
+
const disabled = ((_b = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _b === void 0 ? void 0 : _b.form.initialData.isEnabled) === false;
|
|
114
|
+
const disabledMessage = ((_c = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _c === void 0 ? void 0 : _c.form.initialData.isEnabledErrorMessage) ||
|
|
115
|
+
props.formDisabledErrorMessage;
|
|
116
|
+
const formState = {
|
|
117
|
+
loading: formLoading,
|
|
118
|
+
disabled,
|
|
119
|
+
disabledMessage,
|
|
120
|
+
initialData,
|
|
121
|
+
};
|
|
122
|
+
setRegistrationFormState(formState);
|
|
123
|
+
}, [(_a = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _a === void 0 ? void 0 : _a.form.initialData]);
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
if (!formRef.current)
|
|
126
|
+
return;
|
|
127
|
+
const form = formRef.current;
|
|
128
|
+
form.addEventListener("sl-input", inputFunction);
|
|
129
|
+
return () => {
|
|
130
|
+
form.removeEventListener("sl-input", inputFunction);
|
|
131
|
+
};
|
|
132
|
+
}, [formRef.current]);
|
|
133
|
+
const submit = async (event) => {
|
|
134
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
135
|
+
let formControls = event.target.getFormControls();
|
|
136
|
+
let formData = {};
|
|
137
|
+
let validationErrors = {};
|
|
138
|
+
formControls === null || formControls === void 0 ? void 0 : formControls.forEach((control) => {
|
|
139
|
+
if (!control.name)
|
|
140
|
+
return;
|
|
141
|
+
const key = control.name;
|
|
142
|
+
const value = control.value;
|
|
143
|
+
// control.value = initialData[key] || control.value;
|
|
144
|
+
jsonpointer.set(formData, key, value);
|
|
145
|
+
// required validation
|
|
146
|
+
if (control.required && !value) {
|
|
147
|
+
jsonpointer.set(validationErrors, key, props.requiredFieldErrorMessage);
|
|
148
|
+
}
|
|
149
|
+
// custom validation
|
|
150
|
+
if (typeof control.validationError === "function") {
|
|
151
|
+
const validate = control.validationError;
|
|
152
|
+
const validationError = validate({ control, key, value });
|
|
153
|
+
if (validationError)
|
|
154
|
+
jsonpointer.set(validationErrors, key, validationError);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
if ((props.confirmPassword || formData.confirmPassword) &&
|
|
158
|
+
formData.password !== formData.confirmPassword) {
|
|
159
|
+
validationErrors = {
|
|
160
|
+
...validationErrors,
|
|
161
|
+
confirmPassword: props.passwordMismatchErrorMessage,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
if (Object.keys(validationErrors).length) {
|
|
165
|
+
// early return for validation errors
|
|
166
|
+
setRegistrationFormState({
|
|
167
|
+
...registrationFormState,
|
|
168
|
+
loading: false,
|
|
169
|
+
error: "",
|
|
170
|
+
validationErrors,
|
|
171
|
+
});
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
setRegistrationFormState({
|
|
175
|
+
...registrationFormState,
|
|
176
|
+
loading: true,
|
|
177
|
+
error: "",
|
|
178
|
+
validationErrors: {},
|
|
179
|
+
});
|
|
180
|
+
const { email, password } = formData;
|
|
181
|
+
delete formData.email;
|
|
182
|
+
delete formData.password;
|
|
183
|
+
delete formData.confirmPassword;
|
|
184
|
+
const redirectPath = props.redirectPath;
|
|
185
|
+
const variables = {
|
|
186
|
+
key: props.formKey,
|
|
187
|
+
formData: {
|
|
188
|
+
email,
|
|
189
|
+
password,
|
|
190
|
+
redirectPath,
|
|
191
|
+
...formData,
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
try {
|
|
195
|
+
const result = await request(variables);
|
|
196
|
+
if (result instanceof Error) {
|
|
197
|
+
throw result;
|
|
198
|
+
}
|
|
199
|
+
setRegistrationFormState({
|
|
200
|
+
...registrationFormState,
|
|
201
|
+
loading: false,
|
|
202
|
+
error: "",
|
|
203
|
+
validationErrors: {},
|
|
204
|
+
});
|
|
205
|
+
const managedIdentityResponse = (_a = result.submitForm) === null || _a === void 0 ? void 0 : _a.results.find((result) => { var _a; return ((_a = result === null || result === void 0 ? void 0 : result.formHandler) === null || _a === void 0 ? void 0 : _a.namespace) === "identity"; });
|
|
206
|
+
if (managedIdentityResponse &&
|
|
207
|
+
managedIdentityResponse.result.results.length &&
|
|
208
|
+
managedIdentityResponse.result.results[0].success &&
|
|
209
|
+
managedIdentityResponse.result.results[0].data.token) {
|
|
210
|
+
fn.push(props.nextPage);
|
|
211
|
+
}
|
|
212
|
+
else if (
|
|
213
|
+
// check for blocked email error response
|
|
214
|
+
((_b = result.submitForm) === null || _b === void 0 ? void 0 : _b.results.length) === 1 &&
|
|
215
|
+
((_f = (_e = (_d = (_c = result.submitForm) === null || _c === void 0 ? void 0 : _c.results[0]) === null || _d === void 0 ? void 0 : _d.result) === null || _e === void 0 ? void 0 : _e.results) === null || _f === void 0 ? void 0 : _f.length) === 1 &&
|
|
216
|
+
((_l = (_k = (_j = (_h = (_g = result.submitForm) === null || _g === void 0 ? void 0 : _g.results[0]) === null || _h === void 0 ? void 0 : _h.result) === null || _j === void 0 ? void 0 : _j.results) === null || _k === void 0 ? void 0 : _k[0]) === null || _l === void 0 ? void 0 : _l.success) ===
|
|
217
|
+
false && ((_s = (_r = (_q = (_p = (_o = (_m = result.submitForm) === null || _m === void 0 ? void 0 : _m.results[0]) === null || _o === void 0 ? void 0 : _o.result) === null || _p === void 0 ? void 0 : _p.results) === null || _q === void 0 ? void 0 : _q[0]) === null || _r === void 0 ? void 0 : _r.message) === null || _s === void 0 ? void 0 : _s.startsWith("Blocked email"))) {
|
|
218
|
+
setRegistrationFormState({
|
|
219
|
+
...registrationFormState,
|
|
220
|
+
loading: false,
|
|
221
|
+
error: "",
|
|
222
|
+
validationErrors: {
|
|
223
|
+
email: props.invalidEmailErrorMessage,
|
|
224
|
+
},
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
catch (error) {
|
|
229
|
+
// check for invalid email
|
|
230
|
+
if ((_t = error === null || error === void 0 ? void 0 : error.message) === null || _t === void 0 ? void 0 : _t.includes("is not a valid email address")) {
|
|
231
|
+
setRegistrationFormState({
|
|
232
|
+
...registrationFormState,
|
|
233
|
+
loading: false,
|
|
234
|
+
error: "",
|
|
235
|
+
validationErrors: { email: props.invalidEmailErrorMessage },
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
setRegistrationFormState({
|
|
240
|
+
...registrationFormState,
|
|
241
|
+
loading: false,
|
|
242
|
+
error: props.networkErrorMessage,
|
|
243
|
+
validationErrors: {},
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
const inputFunction = useCallback((e) => {
|
|
249
|
+
var _a, _b;
|
|
250
|
+
const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
251
|
+
if (name !== "tel")
|
|
252
|
+
return;
|
|
253
|
+
const asYouType = new AsYouType("US");
|
|
254
|
+
e.target.value = asYouType.input(e.target.value);
|
|
255
|
+
}, []);
|
|
256
|
+
let errorMessage = "";
|
|
257
|
+
if (((_b = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _b === void 0 ? void 0 : _b.form.initialData.isEnabled) === false) {
|
|
258
|
+
errorMessage =
|
|
259
|
+
((_c = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _c === void 0 ? void 0 : _c.form.initialData.isEnabledErrorMessage) ||
|
|
260
|
+
props.formDisabledErrorMessage;
|
|
261
|
+
}
|
|
262
|
+
else if ((_d = errors === null || errors === void 0 ? void 0 : errors.response) === null || _d === void 0 ? void 0 : _d["error"]) {
|
|
263
|
+
errorMessage = props.networkErrorMessage;
|
|
264
|
+
}
|
|
265
|
+
else if ((errors === null || errors === void 0 ? void 0 : errors.message) && !((_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors.length)) {
|
|
266
|
+
errorMessage = props.networkErrorMessage;
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
errorMessage =
|
|
270
|
+
formError || ((_j = (_h = (_g = (_f = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.errors) === null || _f === void 0 ? void 0 : _f.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) || (registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.error);
|
|
271
|
+
}
|
|
272
|
+
return {
|
|
273
|
+
states: {
|
|
274
|
+
loading: loading || queryResponse.loading,
|
|
275
|
+
error: errorMessage,
|
|
276
|
+
registrationFormState,
|
|
277
|
+
confirmPassword: props.confirmPassword,
|
|
278
|
+
hideInputs: props.hideInputs,
|
|
279
|
+
loginPath: props.loginPath,
|
|
280
|
+
enablePasswordValidation: !props.disablePasswordValidation,
|
|
281
|
+
},
|
|
282
|
+
callbacks: {
|
|
283
|
+
submit,
|
|
284
|
+
inputFunction,
|
|
285
|
+
},
|
|
286
|
+
refs: {
|
|
287
|
+
formRef,
|
|
288
|
+
},
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
const PortalRegistrationForm = class {
|
|
293
|
+
constructor(hostRef) {
|
|
294
|
+
registerInstance(this, hostRef);
|
|
295
|
+
this.ignored = true;
|
|
296
|
+
/**
|
|
297
|
+
* Redirect participants to this page after they successfully register.
|
|
298
|
+
*
|
|
299
|
+
* @uiName Registration Redirect
|
|
300
|
+
* @uiWidget pageSelect
|
|
301
|
+
*/
|
|
302
|
+
this.nextPage = "/";
|
|
303
|
+
/**
|
|
304
|
+
* Redirect participants to this page from their verification email
|
|
305
|
+
*
|
|
306
|
+
* @uiName Email Verification Redirect
|
|
307
|
+
* @uiWidget pageSelect
|
|
308
|
+
*/
|
|
309
|
+
this.redirectPath = "/verifyEmail";
|
|
310
|
+
/**
|
|
311
|
+
* @uiName Email Field Label
|
|
312
|
+
*/
|
|
313
|
+
this.emailLabel = "Email";
|
|
314
|
+
/**
|
|
315
|
+
* @uiName Password Field Label
|
|
316
|
+
*/
|
|
317
|
+
this.passwordLabel = "Password";
|
|
318
|
+
/**
|
|
319
|
+
* @uiName Submit Button Text
|
|
320
|
+
*/
|
|
321
|
+
this.submitLabel = "Register";
|
|
322
|
+
/**
|
|
323
|
+
* @uiName Login Button Text
|
|
324
|
+
*/
|
|
325
|
+
this.loginLabel = "Sign in";
|
|
326
|
+
/**
|
|
327
|
+
* @uiName Confirm Password Field Label
|
|
328
|
+
*/
|
|
329
|
+
this.confirmPasswordLabel = "Confirm Password";
|
|
330
|
+
/**
|
|
331
|
+
* @uiName Show Confirm Password Field
|
|
332
|
+
*/
|
|
333
|
+
this.confirmPassword = false;
|
|
334
|
+
/**
|
|
335
|
+
* @uiName Disable Password Validation
|
|
336
|
+
*/
|
|
337
|
+
this.disablePasswordValidation = false;
|
|
338
|
+
/**
|
|
339
|
+
* Hides the email and password fields. Note: If you hide default inputs, you must add additional input fields. They must have the input name attributes "email" and "password" for this form to succeed.
|
|
340
|
+
*
|
|
341
|
+
* @uiName Hide Default Fields
|
|
342
|
+
*/
|
|
343
|
+
this.hideInputs = false;
|
|
344
|
+
/**
|
|
345
|
+
* @uiName Header Text
|
|
346
|
+
*/
|
|
347
|
+
this.pageLabel = "Register";
|
|
348
|
+
/**
|
|
349
|
+
* Redirect participants to this page after clicking the login button.
|
|
350
|
+
*
|
|
351
|
+
* @uiName Login Redirect
|
|
352
|
+
* @uiWidget pageSelect
|
|
353
|
+
*/
|
|
354
|
+
this.loginPath = "/login";
|
|
355
|
+
/**
|
|
356
|
+
* The message to be displayed when a required field is not filled.
|
|
357
|
+
*
|
|
358
|
+
* @uiName Required Field Message
|
|
359
|
+
* @uiWidget textArea
|
|
360
|
+
*/
|
|
361
|
+
this.requiredFieldErrorMessage = "Cannot be empty";
|
|
362
|
+
/**
|
|
363
|
+
* The message to be displayed when a the form submission fails unexpectedly.
|
|
364
|
+
*
|
|
365
|
+
* @uiName Network Error Message
|
|
366
|
+
* @uiWidget textArea
|
|
367
|
+
*/
|
|
368
|
+
this.networkErrorMessage = "Network request failed.";
|
|
369
|
+
/**
|
|
370
|
+
* The message to be displayed when password inputs do not match.
|
|
371
|
+
*
|
|
372
|
+
* @uiName Password Mismatch Message
|
|
373
|
+
* @uiWidget textArea
|
|
374
|
+
*/
|
|
375
|
+
this.passwordMismatchErrorMessage = "Passwords do not match.";
|
|
376
|
+
/**
|
|
377
|
+
* The message to be displayed when the email used is invalid or blocked.
|
|
378
|
+
*
|
|
379
|
+
* @uiName Invalid Email Message
|
|
380
|
+
* @uiWidget textArea
|
|
381
|
+
*/
|
|
382
|
+
this.invalidEmailErrorMessage = "Must be a valid email address";
|
|
383
|
+
/**
|
|
384
|
+
* The message to be displayed when the registration form is disabled.
|
|
385
|
+
*
|
|
386
|
+
* @uiName Form Disabled Message
|
|
387
|
+
* @uiWidget textArea
|
|
388
|
+
*/
|
|
389
|
+
this.formDisabledErrorMessage = "The registration form is currently disabled.";
|
|
390
|
+
h$1(this);
|
|
391
|
+
}
|
|
392
|
+
disconnectedCallback() { }
|
|
393
|
+
render() {
|
|
394
|
+
const { states, callbacks, refs } = isDemo()
|
|
395
|
+
? useRegisterDemo(this)
|
|
396
|
+
: usePortalRegistrationForm(this);
|
|
397
|
+
const content = {
|
|
398
|
+
formData: h("slot", { name: "formData" }),
|
|
399
|
+
secondaryButton: (h("slot", { name: "secondaryButton" }, h("sl-button", { type: "text", disabled: states.loading, onClick: () => fn.push(states.loginPath) }, this.loginLabel))),
|
|
400
|
+
terms: h("slot", { name: "terms" }),
|
|
401
|
+
emailLabel: this.emailLabel,
|
|
402
|
+
passwordLabel: this.passwordLabel,
|
|
403
|
+
submitLabel: this.submitLabel,
|
|
404
|
+
pageLabel: this.pageLabel,
|
|
405
|
+
confirmPasswordLabel: this.confirmPasswordLabel,
|
|
406
|
+
networkErrorMessage: this.networkErrorMessage,
|
|
407
|
+
passwordMismatchErrorMessage: this.passwordMismatchErrorMessage,
|
|
408
|
+
invalidEmailErrorMessage: this.invalidEmailErrorMessage,
|
|
409
|
+
formDisabledErrorMessage: this.formDisabledErrorMessage,
|
|
410
|
+
requiredFieldErrorMessage: this.requiredFieldErrorMessage,
|
|
411
|
+
};
|
|
412
|
+
return (h(PortalRegistrationFormView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
function useRegisterDemo(props) {
|
|
416
|
+
return cjs({
|
|
417
|
+
states: {
|
|
418
|
+
error: "",
|
|
419
|
+
loading: false,
|
|
420
|
+
confirmPassword: props.confirmPassword,
|
|
421
|
+
hideInputs: props.hideInputs || false,
|
|
422
|
+
customPasswordField: false,
|
|
423
|
+
loginPath: "/login",
|
|
424
|
+
},
|
|
425
|
+
callbacks: {
|
|
426
|
+
submit: async (_event) => {
|
|
427
|
+
console.log("submit");
|
|
428
|
+
},
|
|
429
|
+
inputFunction: () => { },
|
|
430
|
+
},
|
|
431
|
+
refs: {
|
|
432
|
+
formRef: {},
|
|
433
|
+
},
|
|
434
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export { PortalRegistrationForm as sqm_portal_registration_form };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
2
|
import { A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer } from './mixins-59fd94b7.js';
|
|
3
|
-
import { c as createStyleSheet } from './JSS-
|
|
4
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
3
|
+
import { c as createStyleSheet } from './JSS-506b9295.js';
|
|
4
|
+
import { T as TextSpanView } from './sqm-text-span-view-20c0f018.js';
|
|
5
5
|
|
|
6
6
|
const style = {
|
|
7
7
|
Wrapper: AuthWrapper,
|