@saasquatch/mint-components 1.3.2-6 → 1.3.3-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-75c18b96.js → ShadowViewAddon-b021dc8c.js} +1 -1
- package/dist/cjs/{global-041b5338.js → global-5610b310.js} +176 -334
- package/dist/cjs/{index.module-6a7bda18.js → index.module-03ce03c2.js} +0 -1
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/mint-components.cjs.js +3 -4
- package/dist/cjs/{re-render-7cdb2d81.js → re-render-b5efae5f.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-divided-layout_28.cjs.entry.js → sqm-divided-layout_26.cjs.entry.js} +152 -1886
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/{index-19309631.js → sqm-leaderboard-rank-view-c287ac06.js} +10 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -9
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
- package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-e99b4a10.js → sqm-navigation-sidebar-item-view-153503f0.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-5e955797.js → sqm-portal-email-verification-view-1d8728f9.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -4
- package/dist/cjs/{sqm-portal-footer-view-9089feb7.js → sqm-portal-footer-view-dc4b0667.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -4
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +9 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-a23ea292.js → sqm-portal-profile-view-a7519f19.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -4
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-share-code.cjs.entry.js +1 -1
- package/dist/cjs/{useDemoBigStat-d7c65044.js → useDemoBigStat-2025ee9b.js} +21 -91
- package/dist/collection/collection-manifest.json +3 -6
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +20 -89
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +0 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +28 -3
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +59 -4
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +28 -2
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +1 -0
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +1 -1
- package/dist/collection/{tables → components/sqm-referral-table}/re-render.js +0 -0
- package/dist/collection/{tables → components/sqm-referral-table}/sqm-table-cell.js +0 -0
- package/dist/collection/{tables → components/sqm-referral-table}/sqm-table-row.js +0 -0
- package/dist/collection/{tables → components/sqm-referral-table}/useChildElements.js +0 -0
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +2 -2
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +1 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +36 -44
- package/dist/collection/global/styles.js +69 -278
- package/dist/collection/global/styles.ts +69 -278
- package/dist/collection/{components/sqm-asset-card → stories}/AssetCard.stories.js +2 -2
- package/dist/collection/{components/sqm-big-stat → stories}/BigStat.stories.js +3 -10
- package/dist/collection/{components/sqm-portal-change-password → stories}/ChangePassword.stories.js +3 -3
- package/dist/collection/{components/sqm-divided-layout → stories}/DividedLayout.stories.js +4 -4
- package/dist/collection/{components/sqm-edit-profile → stories}/EditProfileForm.stories.js +2 -2
- package/dist/collection/{components/sqm-form-message → stories}/FormMessage.stories.js +1 -1
- package/dist/collection/{components/sqm-hero → stories}/Hero.stories.js +2 -2
- package/dist/collection/{components/sqm-leaderboard → stories}/Leaderboard.stories.js +2 -2
- package/dist/collection/{components/sqm-leaderboard-rank → stories}/LeaderboardRank.stories.js +2 -2
- package/dist/collection/{components/sqm-name-fields → stories}/NameFields.stories.js +2 -2
- package/dist/collection/{components/sqm-navigation-sidebar → stories}/NavigationSidebar.stories.js +3 -3
- package/dist/collection/stories/NewPortal.stories.js +15 -15
- package/dist/collection/{components/sqm-password-field → stories}/PasswordField.stories.js +1 -1
- package/dist/collection/{components/sqm-portal-email-verification → stories}/PortalEmailVerification.stories.js +3 -3
- package/dist/collection/{components/sqm-portal-footer → stories}/PortalFooter.stories.js +2 -2
- package/dist/collection/{components/sqm-portal-forgot-password → stories}/PortalForgotPassword.stories.js +7 -3
- package/dist/collection/{components/sqm-portal-frame → stories}/PortalFrame.stories.js +2 -2
- package/dist/collection/{components/sqm-portal-login → stories}/PortalLogin.stories.js +8 -2
- package/dist/collection/{components/sqm-portal-profile → stories}/PortalProfile.stories.js +2 -2
- package/dist/collection/{components/sqm-portal-register → stories}/PortalRegister.stories.js +7 -2
- package/dist/collection/{components/sqm-portal-reset-password → stories}/PortalResetPassword.stories.js +3 -3
- package/dist/collection/{components/sqm-portal-verify-email → stories}/PortalVerifyEmail.stories.js +3 -3
- package/dist/collection/{components/sqm-program-menu → stories}/ProgramMenu.stories.js +2 -2
- package/dist/collection/{components/sqm-referral-iframe → stories}/ReferralIframe.stories.js +2 -2
- package/dist/collection/{components/sqm-referral-table → stories}/ReferralTable.stories.js +2 -2
- package/dist/collection/{components/sqm-referral-table → stories}/ReferralTableCell.stories.js +1 -1
- package/dist/collection/{components/sqm-referral-table → stories}/ReferralTableRewardsCell.stories.js +1 -1
- package/dist/collection/{components/sqm-rewards-table → stories}/Router.stories.js +1 -1
- package/dist/collection/{components/sqm-share-button → stories}/ShareButton.stories.js +2 -2
- package/dist/collection/{components/sqm-share-link → stories}/ShareLink.stories.js +2 -2
- package/dist/collection/{components/sqm-navigation-sidebar-item → stories}/SidebarItem.stories.js +2 -2
- package/dist/collection/{components/sqm-big-stat → stories}/UseBigStat.stories.js +4 -4
- package/dist/collection/{components/sqm-edit-profile → stories}/UseEditProfile.stories.js +1 -1
- package/dist/collection/{components/sqm-leaderboard → stories}/UseLeaderboard.stories.js +3 -3
- package/dist/collection/{components/sqm-share-button → stories}/UseShareButton.stories.js +2 -2
- package/dist/collection/{components/sqm-share-link → stories}/UseShareLink.stories.js +3 -3
- package/dist/collection/{components/sqm-user-name → stories}/UserName.stories.js +3 -3
- package/dist/esm/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-2e3ea31f.js} +1 -1
- package/dist/esm/{global-5ecbf81a.js → global-cc82aa03.js} +123 -281
- package/dist/esm/{index.module-f80561db.js → index.module-33c313d2.js} +1 -1
- package/dist/esm/loader.js +3 -4
- package/dist/esm/mint-components.js +3 -4
- package/dist/esm/{re-render-9ab5fe0f.js → re-render-338d931e.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat.entry.js +2 -2
- package/dist/esm/{sqm-divided-layout_28.entry.js → sqm-divided-layout_26.entry.js} +149 -1881
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/{index-2f5dd0a1.js → sqm-leaderboard-rank-view-4f48da0c.js} +9 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +3 -5
- package/dist/esm/sqm-leaderboard.entry.js +2 -2
- package/dist/esm/sqm-name-fields.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-8a3f374b.js → sqm-navigation-sidebar-item-view-5dfa535f.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-87bf8191.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -4
- package/dist/esm/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-da135cff.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +9 -4
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-8781176c.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +3 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-referral-table-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
- package/dist/esm/sqm-share-code.entry.js +1 -1
- package/dist/esm/{useDemoBigStat-3d4832ef.js → useDemoBigStat-2fe92931.js} +21 -91
- package/dist/esm-es5/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-2e3ea31f.js} +1 -1
- package/dist/esm-es5/{global-5ecbf81a.js → global-cc82aa03.js} +16 -2
- package/dist/esm-es5/{index.module-f80561db.js → index.module-33c313d2.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-9ab5fe0f.js → re-render-338d931e.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-divided-layout_26.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-4f48da0c.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-8a3f374b.js → sqm-navigation-sidebar-item-view-5dfa535f.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-87bf8191.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-da135cff.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-824c8242.js → sqm-portal-profile-view-8781176c.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
- package/dist/esm-es5/sqm-share-code.entry.js +1 -1
- package/dist/esm-es5/useDemoBigStat-2fe92931.js +1 -0
- package/dist/mint-components/global/styles.ts +69 -278
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-5f28af29.entry.js → p-01722953.entry.js} +1 -1
- package/dist/mint-components/{p-4ba2faf2.system.entry.js → p-086aaa1e.system.entry.js} +1 -1
- package/dist/mint-components/{p-6cdc70f4.entry.js → p-0f84ebfe.entry.js} +1 -1
- package/dist/mint-components/{p-e475a5ff.system.entry.js → p-1369c11a.system.entry.js} +1 -1
- package/dist/mint-components/{p-a7f0b2f6.entry.js → p-156464b2.entry.js} +1 -1
- package/dist/mint-components/p-1915df27.system.entry.js +1 -0
- package/dist/mint-components/{p-3b0acfcd.system.js → p-1996e9c8.system.js} +1 -1
- package/dist/mint-components/p-21bb74aa.system.entry.js +1 -0
- package/dist/mint-components/{p-1ac9c24b.system.entry.js → p-2a6f038c.system.entry.js} +1 -1
- package/dist/mint-components/p-2ad23b02.system.entry.js +1 -0
- package/dist/mint-components/{p-fcaa5886.system.entry.js → p-33b57b39.system.entry.js} +1 -1
- package/dist/mint-components/{p-1b414d8f.system.entry.js → p-34dea514.system.entry.js} +1 -1
- package/dist/mint-components/{p-e9ab90a1.entry.js → p-36de7c74.entry.js} +1 -1
- package/dist/mint-components/p-39c466fb.entry.js +1 -0
- package/dist/mint-components/{p-8e37c08d.js → p-4843c461.js} +1 -1
- package/dist/mint-components/{p-844fd903.js → p-48cdbd66.js} +1 -1
- package/dist/mint-components/{p-2bce988c.js → p-4a313a31.js} +1 -1
- package/dist/mint-components/p-4cabd25b.entry.js +1 -0
- package/dist/mint-components/p-4e61f958.system.js +1 -0
- package/dist/mint-components/p-5950e58a.entry.js +1 -0
- package/dist/mint-components/{p-db723323.system.entry.js → p-683a4971.system.entry.js} +1 -1
- package/dist/mint-components/p-6a44136e.js +227 -0
- package/dist/mint-components/p-7129015b.system.js +1 -0
- package/dist/mint-components/{p-16535642.system.entry.js → p-713ea21e.system.entry.js} +1 -1
- package/dist/mint-components/{p-ceeaf074.system.js → p-754060c8.system.js} +35 -21
- package/dist/mint-components/{p-3fd33dee.system.entry.js → p-772341ce.system.entry.js} +1 -1
- package/dist/mint-components/{p-0688c9c2.system.entry.js → p-775529b9.system.entry.js} +1 -1
- package/dist/mint-components/{p-2a025d2a.system.entry.js → p-7b7613cf.system.entry.js} +1 -1
- package/dist/mint-components/{p-505f5c59.system.entry.js → p-7c3a270c.system.entry.js} +1 -1
- package/dist/mint-components/p-83bdbf25.js +1 -0
- package/dist/mint-components/{p-00190438.js → p-846cebe7.js} +1 -1
- package/dist/mint-components/{p-1fb688a9.system.js → p-871ed4c8.system.js} +1 -1
- package/dist/mint-components/p-8cbc24b8.entry.js +9 -0
- package/dist/mint-components/p-8d65fef3.entry.js +1 -0
- package/dist/mint-components/{p-3052c913.system.js → p-8e87084e.system.js} +1 -1
- package/dist/mint-components/{p-844f9bad.entry.js → p-a011c13c.entry.js} +1 -1
- package/dist/mint-components/{p-d3787c3a.entry.js → p-b1e03222.entry.js} +1 -1
- package/dist/mint-components/p-b3bda4e8.entry.js +1 -0
- package/dist/mint-components/{p-aba21f90.entry.js → p-b3e976e0.entry.js} +1 -1
- package/dist/mint-components/p-b462e84e.system.js +1 -0
- package/dist/mint-components/{p-f1e1086e.js → p-b4fc47a0.js} +17 -2
- package/dist/mint-components/{p-cc3510c8.js → p-bbb3ff09.js} +1 -1
- package/dist/mint-components/p-c03c68c1.entry.js +1 -0
- package/dist/mint-components/{p-d9cc041f.entry.js → p-c1cadf29.entry.js} +1 -1
- package/dist/mint-components/p-c324b1e8.system.js +1 -0
- package/dist/mint-components/{p-82d7a2ba.entry.js → p-c32fb8e5.entry.js} +1 -1
- package/dist/mint-components/p-c35bb682.system.entry.js +1 -0
- package/dist/mint-components/{p-57a53dbd.system.entry.js → p-c434c33a.system.entry.js} +1 -1
- package/dist/mint-components/{p-1813b9b9.system.js → p-c43f3b6b.system.js} +1 -1
- package/dist/mint-components/p-cff66d2e.entry.js +1 -0
- package/dist/mint-components/{p-82ab88fe.system.js → p-d1604020.system.js} +1 -1
- package/dist/mint-components/p-d482d10c.entry.js +1 -0
- package/dist/mint-components/p-d8a80855.entry.js +1 -0
- package/dist/mint-components/{p-af06ea5b.system.entry.js → p-dd0b0a4a.system.entry.js} +1 -1
- package/dist/mint-components/{p-5dfc6804.system.entry.js → p-e2fc8abf.system.entry.js} +1 -1
- package/dist/mint-components/p-e52c77cd.entry.js +13 -0
- package/dist/mint-components/p-e835c56c.system.entry.js +1 -0
- package/dist/mint-components/{p-434ee9c1.js → p-e83632dd.js} +1 -1
- package/dist/mint-components/{p-04516274.system.entry.js → p-ead730e0.system.entry.js} +1 -1
- package/dist/mint-components/p-ec3b7256.entry.js +230 -0
- package/dist/mint-components/p-ec8f1962.system.entry.js +1 -0
- package/dist/mint-components/p-ee6f5a1c.system.js +1 -0
- package/dist/mint-components/{p-05cca77b.js → p-f02360c9.js} +1 -1
- package/dist/mint-components/{p-a4a00461.entry.js → p-f4a9712a.entry.js} +2 -2
- package/dist/mint-components/p-fa20e730.entry.js +1 -0
- package/dist/mint-components/{p-a0045707.system.entry.js → p-ff3c9d53.system.entry.js} +1 -1
- package/dist/mint-components/p-ff3d1ed1.system.entry.js +1 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +0 -1
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +1 -4
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +4 -0
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +2 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +8 -0
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +3 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +4 -0
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -0
- package/dist/types/{tables → components/sqm-referral-table}/re-render.d.ts +0 -0
- package/dist/types/{tables → components/sqm-referral-table}/sqm-table-cell.d.ts +0 -0
- package/dist/types/{tables → components/sqm-referral-table}/sqm-table-row.d.ts +0 -0
- package/dist/types/{tables → components/sqm-referral-table}/useChildElements.d.ts +0 -0
- package/dist/types/components.d.ts +32 -237
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/{components/sqm-asset-card → stories}/AssetCard.stories.d.ts +0 -0
- package/dist/types/{components/sqm-big-stat → stories}/BigStat.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-change-password → stories}/ChangePassword.stories.d.ts +0 -0
- package/dist/types/{components/sqm-divided-layout → stories}/DividedLayout.stories.d.ts +0 -0
- package/dist/types/{components/sqm-edit-profile → stories}/EditProfileForm.stories.d.ts +0 -0
- package/dist/types/{components/sqm-form-message → stories}/FormMessage.stories.d.ts +0 -0
- package/dist/types/{components/sqm-hero → stories}/Hero.stories.d.ts +0 -0
- package/dist/types/{components/sqm-leaderboard → stories}/Leaderboard.stories.d.ts +0 -0
- package/dist/types/{components/sqm-leaderboard-rank → stories}/LeaderboardRank.stories.d.ts +0 -0
- package/dist/types/{components/sqm-name-fields → stories}/NameFields.stories.d.ts +0 -0
- package/dist/types/{components/sqm-navigation-sidebar → stories}/NavigationSidebar.stories.d.ts +0 -0
- package/dist/types/{components/sqm-password-field → stories}/PasswordField.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-email-verification → stories}/PortalEmailVerification.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-footer → stories}/PortalFooter.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-forgot-password → stories}/PortalForgotPassword.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-frame → stories}/PortalFrame.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-login → stories}/PortalLogin.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-profile → stories}/PortalProfile.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-register → stories}/PortalRegister.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-reset-password → stories}/PortalResetPassword.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-verify-email → stories}/PortalVerifyEmail.stories.d.ts +0 -0
- package/dist/types/{components/sqm-program-menu → stories}/ProgramMenu.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-iframe → stories}/ReferralIframe.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → stories}/ReferralTable.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → stories}/ReferralTableCell.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → stories}/ReferralTableRewardsCell.stories.d.ts +0 -0
- package/dist/types/{components/sqm-rewards-table → stories}/Router.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-button → stories}/ShareButton.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-link → stories}/ShareLink.stories.d.ts +0 -0
- package/dist/types/{components/sqm-navigation-sidebar-item → stories}/SidebarItem.stories.d.ts +0 -0
- package/dist/types/{components/sqm-big-stat → stories}/UseBigStat.stories.d.ts +0 -0
- package/dist/types/{components/sqm-edit-profile → stories}/UseEditProfile.stories.d.ts +0 -0
- package/dist/types/{components/sqm-leaderboard → stories}/UseLeaderboard.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-button → stories}/UseShareButton.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-link → stories}/UseShareLink.stories.d.ts +0 -0
- package/dist/types/stories/UserName.stories.d.ts +6 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +0 -10
- package/dist/cjs/sqm-rewards-table.cjs.entry.js +0 -332
- package/dist/cjs/tslib.es6-0e81fab1.js +0 -56
- package/dist/cjs/useChildElements-428ca5b8.js +0 -21
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +0 -8
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +0 -143
- package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-icon.png +0 -0
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +0 -60
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +0 -255
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +0 -121
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +0 -198
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +0 -222
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +0 -195
- package/dist/collection/components/sqm-task-card/Matrix.js +0 -63
- package/dist/collection/components/sqm-task-card/SVGs.js +0 -9
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +0 -330
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +0 -41
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +0 -7
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +0 -311
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar.stories.js +0 -53
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +0 -164
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +0 -384
- package/dist/collection/tables/GenericTableView.js +0 -51
- package/dist/collection/tables/TableSlots.js +0 -22
- package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +0 -8
- package/dist/esm/sqm-rewards-table.entry.js +0 -328
- package/dist/esm/tslib.es6-7ac9d7e4.js +0 -53
- package/dist/esm/useChildElements-506f00d0.js +0 -19
- package/dist/esm-es5/index-2f5dd0a1.js +0 -1
- package/dist/esm-es5/sqm-divided-layout_28.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +0 -1
- package/dist/esm-es5/sqm-rewards-table.entry.js +0 -1
- package/dist/esm-es5/tslib.es6-7ac9d7e4.js +0 -15
- package/dist/esm-es5/useChildElements-506f00d0.js +0 -1
- package/dist/esm-es5/useDemoBigStat-3d4832ef.js +0 -1
- package/dist/mint-components/assets/Reward-icon.png +0 -0
- package/dist/mint-components/p-0c07c81a.js +0 -227
- package/dist/mint-components/p-11c75956.entry.js +0 -1
- package/dist/mint-components/p-16da5146.entry.js +0 -1
- package/dist/mint-components/p-189219ee.system.js +0 -1
- package/dist/mint-components/p-21dfdeb8.entry.js +0 -1
- package/dist/mint-components/p-23a0bdae.entry.js +0 -1
- package/dist/mint-components/p-2d209222.system.entry.js +0 -1
- package/dist/mint-components/p-2f171597.entry.js +0 -1
- package/dist/mint-components/p-337b49ee.entry.js +0 -1
- package/dist/mint-components/p-55e02769.entry.js +0 -13
- package/dist/mint-components/p-58d9b2f0.js +0 -15
- package/dist/mint-components/p-6d545e13.entry.js +0 -1
- package/dist/mint-components/p-6e9944ed.system.entry.js +0 -1
- package/dist/mint-components/p-70837c1c.entry.js +0 -49
- package/dist/mint-components/p-71d942af.entry.js +0 -9
- package/dist/mint-components/p-7c138c84.entry.js +0 -1
- package/dist/mint-components/p-7c13e32e.system.entry.js +0 -1
- package/dist/mint-components/p-7c261ea0.system.entry.js +0 -1
- package/dist/mint-components/p-8034f81c.system.entry.js +0 -1
- package/dist/mint-components/p-8c16f04e.js +0 -1
- package/dist/mint-components/p-8f04bed2.entry.js +0 -288
- package/dist/mint-components/p-91d39961.system.js +0 -1
- package/dist/mint-components/p-a0cfd3d9.system.js +0 -1
- package/dist/mint-components/p-aefa270d.entry.js +0 -1
- package/dist/mint-components/p-b3af1c6f.js +0 -1
- package/dist/mint-components/p-bf04a8e1.system.entry.js +0 -1
- package/dist/mint-components/p-bf055b6c.system.js +0 -1
- package/dist/mint-components/p-c3866bfa.system.entry.js +0 -1
- package/dist/mint-components/p-dd6a666e.system.js +0 -15
- package/dist/mint-components/p-dfc3cf82.js +0 -1
- package/dist/mint-components/p-e19a57a4.system.entry.js +0 -1
- package/dist/mint-components/p-e2ebe90c.entry.js +0 -1
- package/dist/mint-components/p-ecbabf6e.system.js +0 -1
- package/dist/mint-components/p-f41ab9e1.system.js +0 -1
- package/dist/mint-components/p-fca9971b.system.js +0 -1
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +0 -3
- package/dist/types/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.d.ts +0 -28
- package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +0 -4
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +0 -27
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +0 -20
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +0 -43
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +0 -32
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +0 -5
- package/dist/types/components/sqm-task-card/Matrix.d.ts +0 -11
- package/dist/types/components/sqm-task-card/SVGs.d.ts +0 -2
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +0 -11
- package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +0 -10
- package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +0 -1
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +0 -9
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar.stories.d.ts +0 -12
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +0 -16
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +0 -73
- package/dist/types/components/sqm-user-name/UserName.stories.d.ts +0 -6
- package/dist/types/tables/GenericTableView.d.ts +0 -29
- package/dist/types/tables/TableSlots.d.ts +0 -8
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { MatrixStory } from "../Matrix";
|
|
3
|
-
import { ProgressBarView } from "./progress-bar-view";
|
|
4
|
-
import scenario from "./progress-bar.feature";
|
|
5
|
-
export default {
|
|
6
|
-
title: "Components/Task Card Progress Bar",
|
|
7
|
-
parameters: {
|
|
8
|
-
scenario,
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
export const Default = () => {
|
|
12
|
-
return h(ProgressBarView, null);
|
|
13
|
-
};
|
|
14
|
-
export const ProgressBar = () => {
|
|
15
|
-
const props = {
|
|
16
|
-
progress: 0,
|
|
17
|
-
goal: 500,
|
|
18
|
-
progressBarUnit: "$",
|
|
19
|
-
};
|
|
20
|
-
return (h("div", null,
|
|
21
|
-
h(MatrixStory, { matrix: { progress: [-100, 0, 100, 500, 1000] }, props: props, Component: ProgressBarView })));
|
|
22
|
-
};
|
|
23
|
-
export const ProgressBarSteps = () => {
|
|
24
|
-
const props = {
|
|
25
|
-
progress: 0,
|
|
26
|
-
steps: true,
|
|
27
|
-
goal: 5,
|
|
28
|
-
progressBarUnit: "$",
|
|
29
|
-
};
|
|
30
|
-
return (h("div", null,
|
|
31
|
-
h(MatrixStory, { matrix: { progress: [-1, 0, 1, 5, 7] }, props: props, Component: ProgressBarView })));
|
|
32
|
-
};
|
|
33
|
-
export const ProgressBarRepeatable = () => {
|
|
34
|
-
const props = {
|
|
35
|
-
progress: 0,
|
|
36
|
-
goal: 500,
|
|
37
|
-
progressBarUnit: "$",
|
|
38
|
-
repeatable: true,
|
|
39
|
-
};
|
|
40
|
-
return (h("div", null,
|
|
41
|
-
h(MatrixStory, { matrix: { progress: [100, 500, 650, 1200] }, props: props, Component: ProgressBarView })));
|
|
42
|
-
};
|
|
43
|
-
export const ProgressBarStepsRepeatable = () => {
|
|
44
|
-
const props = {
|
|
45
|
-
progress: 0,
|
|
46
|
-
steps: true,
|
|
47
|
-
goal: 5,
|
|
48
|
-
progressBarUnit: "$",
|
|
49
|
-
repeatable: true,
|
|
50
|
-
};
|
|
51
|
-
return (h("div", null,
|
|
52
|
-
h(MatrixStory, { matrix: { progress: [1, 5, 7, 12] }, props: props, Component: ProgressBarView })));
|
|
53
|
-
};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import jss from "jss";
|
|
3
|
-
import preset from "jss-preset-default";
|
|
4
|
-
import { HostBlock } from "../../global/mixins";
|
|
5
|
-
import * as SVGs from "./SVGs";
|
|
6
|
-
import { ProgressBarView, } from "./progress-bar/progress-bar-view";
|
|
7
|
-
export function TaskCardView(props) {
|
|
8
|
-
const { points, cardTitle, description, showProgressBar, progress = 0, goal, rewardUnit, repeatable, showExpire, dateExpires, buttonText, buttonLink, loading, } = props;
|
|
9
|
-
console.log({ props });
|
|
10
|
-
const checkmark_circle = SVGs.checkmark_circle();
|
|
11
|
-
const arrow_left_right = SVGs.arrow_left_right();
|
|
12
|
-
const style = {
|
|
13
|
-
HostBlock: HostBlock,
|
|
14
|
-
TaskCard: {
|
|
15
|
-
"& .main > div": {
|
|
16
|
-
margin: "var(--sl-spacing-medium)",
|
|
17
|
-
},
|
|
18
|
-
"& .main": {
|
|
19
|
-
position: "relative",
|
|
20
|
-
boxSizing: "border-box",
|
|
21
|
-
minWidth: "347px",
|
|
22
|
-
background: "var(--sl-color-white)",
|
|
23
|
-
border: "1px solid var(--sl-color-gray-300)",
|
|
24
|
-
borderRadius: "var(--sl-border-radius-medium)",
|
|
25
|
-
fontSize: "var(--sl-font-size-small)",
|
|
26
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
27
|
-
},
|
|
28
|
-
"& .main.complete": {
|
|
29
|
-
background: "var(--sl-color-primary-50)",
|
|
30
|
-
borderColor: "var(--sl-color-primary-700)",
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
Header: {
|
|
34
|
-
display: "flex",
|
|
35
|
-
"& .icon": {
|
|
36
|
-
alignSelf: "center",
|
|
37
|
-
lineHeight: "0",
|
|
38
|
-
color: "var(--sl-color-primary-700)",
|
|
39
|
-
fontSize: "var(--sl-font-size-large)",
|
|
40
|
-
marginRight: "var(--sl-spacing-x-small)",
|
|
41
|
-
},
|
|
42
|
-
"& .value": {
|
|
43
|
-
alignSelf: "center",
|
|
44
|
-
color: "var(--sl-color-black)",
|
|
45
|
-
fontSize: "var(--sl-font-size-x-large)",
|
|
46
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
47
|
-
lineHeight: "100%",
|
|
48
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
49
|
-
},
|
|
50
|
-
"& .text": {
|
|
51
|
-
alignSelf: "end",
|
|
52
|
-
textTransform: "uppercase",
|
|
53
|
-
color: "var(--sl-color-gray-600)",
|
|
54
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
55
|
-
lineHeight: "var(--sl-font-size-medium)",
|
|
56
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
Title: {
|
|
60
|
-
color: "var(--sl-color-black)",
|
|
61
|
-
fontSize: "var(--sl-font-size-small)",
|
|
62
|
-
},
|
|
63
|
-
Footer: {
|
|
64
|
-
display: "flex",
|
|
65
|
-
"& .icon": {
|
|
66
|
-
fontSize: "var(--sl-font-size-xx-small)",
|
|
67
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
68
|
-
},
|
|
69
|
-
"& .text": {
|
|
70
|
-
marginTop: "auto",
|
|
71
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
72
|
-
color: "var(--sl-color-gray-600)",
|
|
73
|
-
},
|
|
74
|
-
"& .action": {
|
|
75
|
-
marginTop: "auto",
|
|
76
|
-
marginLeft: "auto",
|
|
77
|
-
},
|
|
78
|
-
"& sl-button.action::part(base) ": {
|
|
79
|
-
color: "var(--sl-color-white)",
|
|
80
|
-
background: "var(--sl-color-primary-500)",
|
|
81
|
-
border: "1px solid var(--sl-color-primary-500)",
|
|
82
|
-
borderRadius: "var(--sl-border-radius-medium)",
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
jss.setup(preset());
|
|
87
|
-
const sheet = jss.createStyleSheet(style);
|
|
88
|
-
const styleString = sheet.toString();
|
|
89
|
-
const showComplete = progress >= goal;
|
|
90
|
-
const repetitions = showProgressBar ? Math.floor(progress / goal) : progress;
|
|
91
|
-
console.log({ showProgressBar, loading });
|
|
92
|
-
return (h("div", { class: sheet.classes.TaskCard },
|
|
93
|
-
h("div", { class: showComplete ? "main complete" : "main" },
|
|
94
|
-
h("style", { type: "text/css" }, styleString),
|
|
95
|
-
h("div", { class: sheet.classes.Header },
|
|
96
|
-
showComplete && h("span", { class: "icon" }, checkmark_circle),
|
|
97
|
-
h("span", { class: "value" }, points),
|
|
98
|
-
h("span", { class: "text" }, rewardUnit)),
|
|
99
|
-
h("div", { class: sheet.classes.Title }, cardTitle),
|
|
100
|
-
showProgressBar && loading ? (h("sl-skeleton", { style: { width: "98%", margin: "0 auto" } })) : (showProgressBar && h(ProgressBarView, Object.assign({}, props))),
|
|
101
|
-
h(Details, { description: description }),
|
|
102
|
-
h("div", { class: sheet.classes.Footer },
|
|
103
|
-
h("span", { class: "text" },
|
|
104
|
-
repeatable && (h("div", null,
|
|
105
|
-
h("span", { class: "icon" }, arrow_left_right),
|
|
106
|
-
h("span", null,
|
|
107
|
-
"Completed ",
|
|
108
|
-
repetitions,
|
|
109
|
-
" times"))),
|
|
110
|
-
showExpire && (h("span", null,
|
|
111
|
-
"Ends ",
|
|
112
|
-
" ",
|
|
113
|
-
dateExpires))),
|
|
114
|
-
h("sl-button", { class: "action", size: "small", onClick: () => alert(buttonLink), disabled: showComplete && repeatable == false }, showComplete && repeatable == false
|
|
115
|
-
? "Task completed"
|
|
116
|
-
: buttonText)))));
|
|
117
|
-
}
|
|
118
|
-
function Details(props) {
|
|
119
|
-
const style = {
|
|
120
|
-
Description: {
|
|
121
|
-
"& input[type=checkbox]": {
|
|
122
|
-
display: "none",
|
|
123
|
-
},
|
|
124
|
-
"& input:checked ~ .details": {
|
|
125
|
-
transform: "rotate(-180deg)",
|
|
126
|
-
},
|
|
127
|
-
"& .details": {
|
|
128
|
-
position: "absolute",
|
|
129
|
-
top: "var(--sl-spacing-medium)",
|
|
130
|
-
right: "var(--sl-spacing-medium)",
|
|
131
|
-
color: "var(--sl-color-gray-700)",
|
|
132
|
-
fontSize: "var(--sl-font-size-large)",
|
|
133
|
-
"& :hover": {
|
|
134
|
-
color: "var(--sl-color-primary-700)",
|
|
135
|
-
},
|
|
136
|
-
transformOrigin: "50% 37%",
|
|
137
|
-
transition: "transform var(--sl-transition-medium) ease",
|
|
138
|
-
},
|
|
139
|
-
"& input:checked ~ .summary": {
|
|
140
|
-
transition: "max-height var(--sl-transition-medium) ease",
|
|
141
|
-
maxHeight: "300px",
|
|
142
|
-
},
|
|
143
|
-
"& .summary": {
|
|
144
|
-
display: "block",
|
|
145
|
-
overflow: "hidden",
|
|
146
|
-
color: "var(--sl-color-gray-700)",
|
|
147
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
148
|
-
maxHeight: "0px",
|
|
149
|
-
transition: "max-height var(--sl-transition-fast) ease-out",
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
};
|
|
153
|
-
jss.setup(preset());
|
|
154
|
-
const sheet = jss.createStyleSheet(style);
|
|
155
|
-
const styleString = sheet.toString();
|
|
156
|
-
const rid = Math.random().toString(36).slice(2);
|
|
157
|
-
return (h("div", null,
|
|
158
|
-
h("style", { type: "text/css" }, styleString),
|
|
159
|
-
h("span", { class: sheet.classes.Description },
|
|
160
|
-
h("input", { type: "checkbox", id: "details-" + rid }),
|
|
161
|
-
h("label", { class: "details", htmlFor: "details-" + rid },
|
|
162
|
-
h("sl-icon", { name: "chevron-down" })),
|
|
163
|
-
h("span", { class: "summary" }, props.description))));
|
|
164
|
-
}
|
|
@@ -1,384 +0,0 @@
|
|
|
1
|
-
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
-
import { Component, h, Prop, State } from "@stencil/core";
|
|
4
|
-
import { getProps } from "../../utils/utils";
|
|
5
|
-
import { useBigStat } from "../sqm-big-stat/useBigStat";
|
|
6
|
-
import { useDemoBigStat } from "../sqm-big-stat/useDemoBigStat";
|
|
7
|
-
import { TaskCardView } from "./sqm-task-card-view";
|
|
8
|
-
/**
|
|
9
|
-
* @uiName Task Card
|
|
10
|
-
*/
|
|
11
|
-
export class TaskCard {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.ignored = true;
|
|
14
|
-
/**
|
|
15
|
-
* @uiName Reward Amount
|
|
16
|
-
*/
|
|
17
|
-
this.points = 0;
|
|
18
|
-
/**
|
|
19
|
-
* @uiName Reward Unit
|
|
20
|
-
*/
|
|
21
|
-
this.rewardUnit = "Points";
|
|
22
|
-
/**
|
|
23
|
-
* @uiName Title Text
|
|
24
|
-
*/
|
|
25
|
-
this.cardTitle = "Title Text";
|
|
26
|
-
/**
|
|
27
|
-
* @uiName Description Text
|
|
28
|
-
*/
|
|
29
|
-
this.description = "Description Text";
|
|
30
|
-
/**
|
|
31
|
-
* @uiName Goal Repeatable
|
|
32
|
-
*/
|
|
33
|
-
this.repeatable = false;
|
|
34
|
-
/**
|
|
35
|
-
* @uiName Show Progress Bar
|
|
36
|
-
*/
|
|
37
|
-
this.showProgressBar = false;
|
|
38
|
-
/**
|
|
39
|
-
* @uiName Goal Progress Source
|
|
40
|
-
*/
|
|
41
|
-
this.progressSource = "";
|
|
42
|
-
/**
|
|
43
|
-
* @uiName Goal Completion Number
|
|
44
|
-
*/
|
|
45
|
-
this.goal = 1;
|
|
46
|
-
/**
|
|
47
|
-
* @uiName Progress Bar Steps
|
|
48
|
-
*/
|
|
49
|
-
this.steps = false;
|
|
50
|
-
/**
|
|
51
|
-
* @uiName Show Goal Expiry
|
|
52
|
-
*/
|
|
53
|
-
this.showExpire = false;
|
|
54
|
-
/**
|
|
55
|
-
* @uiName CTA Button Text
|
|
56
|
-
*/
|
|
57
|
-
this.buttonText = "Complete Action";
|
|
58
|
-
/**
|
|
59
|
-
* @uiName CTA Button Link
|
|
60
|
-
*/
|
|
61
|
-
this.buttonLink = "https://example.com/";
|
|
62
|
-
/**
|
|
63
|
-
* Select what type of stat to display for the goal. Manual paths are also supported.
|
|
64
|
-
*
|
|
65
|
-
* @uiWidget StatTypeSelectWidget
|
|
66
|
-
* @uiName Stat Type
|
|
67
|
-
* @uiOptions {"version": 1.1}
|
|
68
|
-
*/
|
|
69
|
-
this.statType = "/programGoals/count/Referral-Started%2Freferrals";
|
|
70
|
-
withHooks(this);
|
|
71
|
-
}
|
|
72
|
-
disconnectedCallback() { }
|
|
73
|
-
render() {
|
|
74
|
-
const { props } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
75
|
-
const { value, statvalue } = props;
|
|
76
|
-
console.log(props, isDemo());
|
|
77
|
-
return (h(TaskCardView, Object.assign({}, getProps(this), { progress: value, loading: value === undefined })));
|
|
78
|
-
}
|
|
79
|
-
static get is() { return "sqm-task-card"; }
|
|
80
|
-
static get encapsulation() { return "shadow"; }
|
|
81
|
-
static get properties() { return {
|
|
82
|
-
"points": {
|
|
83
|
-
"type": "number",
|
|
84
|
-
"mutable": false,
|
|
85
|
-
"complexType": {
|
|
86
|
-
"original": "number",
|
|
87
|
-
"resolved": "number",
|
|
88
|
-
"references": {}
|
|
89
|
-
},
|
|
90
|
-
"required": false,
|
|
91
|
-
"optional": false,
|
|
92
|
-
"docs": {
|
|
93
|
-
"tags": [{
|
|
94
|
-
"text": "Reward Amount",
|
|
95
|
-
"name": "uiName"
|
|
96
|
-
}],
|
|
97
|
-
"text": ""
|
|
98
|
-
},
|
|
99
|
-
"attribute": "points",
|
|
100
|
-
"reflect": false,
|
|
101
|
-
"defaultValue": "0"
|
|
102
|
-
},
|
|
103
|
-
"rewardUnit": {
|
|
104
|
-
"type": "string",
|
|
105
|
-
"mutable": false,
|
|
106
|
-
"complexType": {
|
|
107
|
-
"original": "string",
|
|
108
|
-
"resolved": "string",
|
|
109
|
-
"references": {}
|
|
110
|
-
},
|
|
111
|
-
"required": false,
|
|
112
|
-
"optional": false,
|
|
113
|
-
"docs": {
|
|
114
|
-
"tags": [{
|
|
115
|
-
"text": "Reward Unit",
|
|
116
|
-
"name": "uiName"
|
|
117
|
-
}],
|
|
118
|
-
"text": ""
|
|
119
|
-
},
|
|
120
|
-
"attribute": "reward-unit",
|
|
121
|
-
"reflect": false,
|
|
122
|
-
"defaultValue": "\"Points\""
|
|
123
|
-
},
|
|
124
|
-
"cardTitle": {
|
|
125
|
-
"type": "string",
|
|
126
|
-
"mutable": false,
|
|
127
|
-
"complexType": {
|
|
128
|
-
"original": "string",
|
|
129
|
-
"resolved": "string",
|
|
130
|
-
"references": {}
|
|
131
|
-
},
|
|
132
|
-
"required": false,
|
|
133
|
-
"optional": false,
|
|
134
|
-
"docs": {
|
|
135
|
-
"tags": [{
|
|
136
|
-
"text": "Title Text",
|
|
137
|
-
"name": "uiName"
|
|
138
|
-
}],
|
|
139
|
-
"text": ""
|
|
140
|
-
},
|
|
141
|
-
"attribute": "card-title",
|
|
142
|
-
"reflect": false,
|
|
143
|
-
"defaultValue": "\"Title Text\""
|
|
144
|
-
},
|
|
145
|
-
"description": {
|
|
146
|
-
"type": "string",
|
|
147
|
-
"mutable": false,
|
|
148
|
-
"complexType": {
|
|
149
|
-
"original": "string",
|
|
150
|
-
"resolved": "string",
|
|
151
|
-
"references": {}
|
|
152
|
-
},
|
|
153
|
-
"required": false,
|
|
154
|
-
"optional": false,
|
|
155
|
-
"docs": {
|
|
156
|
-
"tags": [{
|
|
157
|
-
"text": "Description Text",
|
|
158
|
-
"name": "uiName"
|
|
159
|
-
}],
|
|
160
|
-
"text": ""
|
|
161
|
-
},
|
|
162
|
-
"attribute": "description",
|
|
163
|
-
"reflect": false,
|
|
164
|
-
"defaultValue": "\"Description Text\""
|
|
165
|
-
},
|
|
166
|
-
"repeatable": {
|
|
167
|
-
"type": "boolean",
|
|
168
|
-
"mutable": false,
|
|
169
|
-
"complexType": {
|
|
170
|
-
"original": "boolean",
|
|
171
|
-
"resolved": "boolean",
|
|
172
|
-
"references": {}
|
|
173
|
-
},
|
|
174
|
-
"required": false,
|
|
175
|
-
"optional": false,
|
|
176
|
-
"docs": {
|
|
177
|
-
"tags": [{
|
|
178
|
-
"text": "Goal Repeatable",
|
|
179
|
-
"name": "uiName"
|
|
180
|
-
}],
|
|
181
|
-
"text": ""
|
|
182
|
-
},
|
|
183
|
-
"attribute": "repeatable",
|
|
184
|
-
"reflect": false,
|
|
185
|
-
"defaultValue": "false"
|
|
186
|
-
},
|
|
187
|
-
"showProgressBar": {
|
|
188
|
-
"type": "boolean",
|
|
189
|
-
"mutable": false,
|
|
190
|
-
"complexType": {
|
|
191
|
-
"original": "boolean",
|
|
192
|
-
"resolved": "boolean",
|
|
193
|
-
"references": {}
|
|
194
|
-
},
|
|
195
|
-
"required": false,
|
|
196
|
-
"optional": false,
|
|
197
|
-
"docs": {
|
|
198
|
-
"tags": [{
|
|
199
|
-
"text": "Show Progress Bar",
|
|
200
|
-
"name": "uiName"
|
|
201
|
-
}],
|
|
202
|
-
"text": ""
|
|
203
|
-
},
|
|
204
|
-
"attribute": "show-progress-bar",
|
|
205
|
-
"reflect": false,
|
|
206
|
-
"defaultValue": "false"
|
|
207
|
-
},
|
|
208
|
-
"goal": {
|
|
209
|
-
"type": "number",
|
|
210
|
-
"mutable": false,
|
|
211
|
-
"complexType": {
|
|
212
|
-
"original": "number",
|
|
213
|
-
"resolved": "number",
|
|
214
|
-
"references": {}
|
|
215
|
-
},
|
|
216
|
-
"required": false,
|
|
217
|
-
"optional": false,
|
|
218
|
-
"docs": {
|
|
219
|
-
"tags": [{
|
|
220
|
-
"text": "Goal Completion Number",
|
|
221
|
-
"name": "uiName"
|
|
222
|
-
}],
|
|
223
|
-
"text": ""
|
|
224
|
-
},
|
|
225
|
-
"attribute": "goal",
|
|
226
|
-
"reflect": false,
|
|
227
|
-
"defaultValue": "1"
|
|
228
|
-
},
|
|
229
|
-
"steps": {
|
|
230
|
-
"type": "boolean",
|
|
231
|
-
"mutable": false,
|
|
232
|
-
"complexType": {
|
|
233
|
-
"original": "boolean",
|
|
234
|
-
"resolved": "boolean",
|
|
235
|
-
"references": {}
|
|
236
|
-
},
|
|
237
|
-
"required": false,
|
|
238
|
-
"optional": false,
|
|
239
|
-
"docs": {
|
|
240
|
-
"tags": [{
|
|
241
|
-
"text": "Progress Bar Steps",
|
|
242
|
-
"name": "uiName"
|
|
243
|
-
}],
|
|
244
|
-
"text": ""
|
|
245
|
-
},
|
|
246
|
-
"attribute": "steps",
|
|
247
|
-
"reflect": false,
|
|
248
|
-
"defaultValue": "false"
|
|
249
|
-
},
|
|
250
|
-
"progressBarUnit": {
|
|
251
|
-
"type": "string",
|
|
252
|
-
"mutable": false,
|
|
253
|
-
"complexType": {
|
|
254
|
-
"original": "string",
|
|
255
|
-
"resolved": "string",
|
|
256
|
-
"references": {}
|
|
257
|
-
},
|
|
258
|
-
"required": false,
|
|
259
|
-
"optional": true,
|
|
260
|
-
"docs": {
|
|
261
|
-
"tags": [{
|
|
262
|
-
"text": "Progress Bar Unit",
|
|
263
|
-
"name": "uiName"
|
|
264
|
-
}],
|
|
265
|
-
"text": ""
|
|
266
|
-
},
|
|
267
|
-
"attribute": "progress-bar-unit",
|
|
268
|
-
"reflect": false
|
|
269
|
-
},
|
|
270
|
-
"showExpire": {
|
|
271
|
-
"type": "boolean",
|
|
272
|
-
"mutable": false,
|
|
273
|
-
"complexType": {
|
|
274
|
-
"original": "boolean",
|
|
275
|
-
"resolved": "boolean",
|
|
276
|
-
"references": {}
|
|
277
|
-
},
|
|
278
|
-
"required": false,
|
|
279
|
-
"optional": false,
|
|
280
|
-
"docs": {
|
|
281
|
-
"tags": [{
|
|
282
|
-
"text": "Show Goal Expiry",
|
|
283
|
-
"name": "uiName"
|
|
284
|
-
}],
|
|
285
|
-
"text": ""
|
|
286
|
-
},
|
|
287
|
-
"attribute": "show-expire",
|
|
288
|
-
"reflect": false,
|
|
289
|
-
"defaultValue": "false"
|
|
290
|
-
},
|
|
291
|
-
"dateExpires": {
|
|
292
|
-
"type": "string",
|
|
293
|
-
"mutable": false,
|
|
294
|
-
"complexType": {
|
|
295
|
-
"original": "string",
|
|
296
|
-
"resolved": "string",
|
|
297
|
-
"references": {}
|
|
298
|
-
},
|
|
299
|
-
"required": false,
|
|
300
|
-
"optional": true,
|
|
301
|
-
"docs": {
|
|
302
|
-
"tags": [{
|
|
303
|
-
"text": "Date Goal Expires",
|
|
304
|
-
"name": "uiName"
|
|
305
|
-
}],
|
|
306
|
-
"text": ""
|
|
307
|
-
},
|
|
308
|
-
"attribute": "date-expires",
|
|
309
|
-
"reflect": false
|
|
310
|
-
},
|
|
311
|
-
"buttonText": {
|
|
312
|
-
"type": "string",
|
|
313
|
-
"mutable": false,
|
|
314
|
-
"complexType": {
|
|
315
|
-
"original": "string",
|
|
316
|
-
"resolved": "string",
|
|
317
|
-
"references": {}
|
|
318
|
-
},
|
|
319
|
-
"required": false,
|
|
320
|
-
"optional": false,
|
|
321
|
-
"docs": {
|
|
322
|
-
"tags": [{
|
|
323
|
-
"text": "CTA Button Text",
|
|
324
|
-
"name": "uiName"
|
|
325
|
-
}],
|
|
326
|
-
"text": ""
|
|
327
|
-
},
|
|
328
|
-
"attribute": "button-text",
|
|
329
|
-
"reflect": false,
|
|
330
|
-
"defaultValue": "\"Complete Action\""
|
|
331
|
-
},
|
|
332
|
-
"buttonLink": {
|
|
333
|
-
"type": "string",
|
|
334
|
-
"mutable": false,
|
|
335
|
-
"complexType": {
|
|
336
|
-
"original": "string",
|
|
337
|
-
"resolved": "string",
|
|
338
|
-
"references": {}
|
|
339
|
-
},
|
|
340
|
-
"required": false,
|
|
341
|
-
"optional": false,
|
|
342
|
-
"docs": {
|
|
343
|
-
"tags": [{
|
|
344
|
-
"text": "CTA Button Link",
|
|
345
|
-
"name": "uiName"
|
|
346
|
-
}],
|
|
347
|
-
"text": ""
|
|
348
|
-
},
|
|
349
|
-
"attribute": "button-link",
|
|
350
|
-
"reflect": false,
|
|
351
|
-
"defaultValue": "\"https://example.com/\""
|
|
352
|
-
},
|
|
353
|
-
"statType": {
|
|
354
|
-
"type": "string",
|
|
355
|
-
"mutable": false,
|
|
356
|
-
"complexType": {
|
|
357
|
-
"original": "string",
|
|
358
|
-
"resolved": "string",
|
|
359
|
-
"references": {}
|
|
360
|
-
},
|
|
361
|
-
"required": false,
|
|
362
|
-
"optional": false,
|
|
363
|
-
"docs": {
|
|
364
|
-
"tags": [{
|
|
365
|
-
"text": "StatTypeSelectWidget",
|
|
366
|
-
"name": "uiWidget"
|
|
367
|
-
}, {
|
|
368
|
-
"text": "Stat Type",
|
|
369
|
-
"name": "uiName"
|
|
370
|
-
}, {
|
|
371
|
-
"text": "{\"version\": 1.1}",
|
|
372
|
-
"name": "uiOptions"
|
|
373
|
-
}],
|
|
374
|
-
"text": "Select what type of stat to display for the goal. Manual paths are also supported."
|
|
375
|
-
},
|
|
376
|
-
"attribute": "stat-type",
|
|
377
|
-
"reflect": false,
|
|
378
|
-
"defaultValue": "\"/programGoals/count/Referral-Started%2Freferrals\""
|
|
379
|
-
}
|
|
380
|
-
}; }
|
|
381
|
-
static get states() { return {
|
|
382
|
-
"ignored": {}
|
|
383
|
-
}; }
|
|
384
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { TextSpanView } from "../components/sqm-text-span/sqm-text-span-view";
|
|
3
|
-
import jss from "jss";
|
|
4
|
-
import preset from "jss-preset-default";
|
|
5
|
-
import { gap } from "../global/mixins";
|
|
6
|
-
const style = {
|
|
7
|
-
THead: {
|
|
8
|
-
padding: "var(--sl-spacing-small) var(--sl-spacing-medium) var(--sl-spacing-small) 0",
|
|
9
|
-
"text-align": "left",
|
|
10
|
-
},
|
|
11
|
-
TCell: {
|
|
12
|
-
padding: "var(--sl-spacing-small) var(--sl-spacing-medium) var(--sl-spacing-small) 0",
|
|
13
|
-
},
|
|
14
|
-
TRow: {
|
|
15
|
-
"border-top": "1px solid #EAEAEA",
|
|
16
|
-
},
|
|
17
|
-
Table: {
|
|
18
|
-
"border-collapse": "collapse",
|
|
19
|
-
width: "100%",
|
|
20
|
-
},
|
|
21
|
-
ButtonContainer: {
|
|
22
|
-
display: "flex",
|
|
23
|
-
"justify-content": "flex-end",
|
|
24
|
-
"margin-top": "var(--sl-spacing-small)",
|
|
25
|
-
...gap({ direction: "row", size: "var(--sl-spacing-small)" }),
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
jss.setup(preset());
|
|
29
|
-
const sheet = jss.createStyleSheet(style);
|
|
30
|
-
const styleString = sheet.toString();
|
|
31
|
-
export function GenericTableView(props) {
|
|
32
|
-
const { states, data, callbacks, elements } = props;
|
|
33
|
-
const { columns, rows } = elements;
|
|
34
|
-
const { show } = states;
|
|
35
|
-
return (h("div", null,
|
|
36
|
-
h("style", { type: "text/css" }, styleString),
|
|
37
|
-
h("table", { class: sheet.classes.Table },
|
|
38
|
-
data.textOverrides.showLabels && (h("thead", null,
|
|
39
|
-
h("tr", null, columns === null || columns === void 0 ? void 0 : columns.map((column) => (h("th", { class: sheet.classes.THead },
|
|
40
|
-
h(TextSpanView, { type: "h3" }, column))))))),
|
|
41
|
-
h("tbody", null,
|
|
42
|
-
show === "loading" && elements.loadingElement,
|
|
43
|
-
show === "empty" && elements.emptyElement,
|
|
44
|
-
show === "rows" && (rows === null || rows === void 0 ? void 0 : rows.map((row, i) => (h("tr", { class: sheet.classes.TRow, style: {
|
|
45
|
-
borderTop: `${!data.textOverrides.showLabels && i === 0 ? "none" : ""}`,
|
|
46
|
-
}, part: "table-row" }, row.map((cell) => (h("td", { class: sheet.classes.TCell },
|
|
47
|
-
h(TextSpanView, { type: "p" }, cell)))))))))),
|
|
48
|
-
h("div", { class: sheet.classes.ButtonContainer, part: states.namespace + "-button-wrapper" },
|
|
49
|
-
h("sl-button", { size: "small", disabled: !states.hasPrev, loading: show === "loading", onClick: callbacks.prevPage, exportparts: "base: defaultbutton-base" }, data.textOverrides.prevLabel),
|
|
50
|
-
h("sl-button", { size: "small", loading: show === "loading", disabled: !states.hasNext, onClick: callbacks.nextPage, exportparts: "base: defaultbutton-base" }, data.textOverrides.moreLabel))));
|
|
51
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
export function LoadingSlot() {
|
|
3
|
-
return (h("slot", { name: "loading" },
|
|
4
|
-
h(LoadingSkeleton, null)));
|
|
5
|
-
}
|
|
6
|
-
export function LoadingSkeleton() {
|
|
7
|
-
return (h("div", { style: { width: "100%" } },
|
|
8
|
-
h("sl-skeleton", { style: { marginBottom: "28px" } }),
|
|
9
|
-
h("sl-skeleton", { style: { marginBottom: "28px" } }),
|
|
10
|
-
h("sl-skeleton", { style: { marginBottom: "28px" } }),
|
|
11
|
-
h("sl-skeleton", { style: { marginBottom: "28px" } }),
|
|
12
|
-
h("sl-skeleton", null)));
|
|
13
|
-
}
|
|
14
|
-
export function EmptySlot({ label }) {
|
|
15
|
-
return (h("slot", { name: "empty" },
|
|
16
|
-
h(EmptySkeleton, { label: label })));
|
|
17
|
-
}
|
|
18
|
-
export function EmptySkeleton({ label }) {
|
|
19
|
-
return (h("div", { style: { width: "100%" } },
|
|
20
|
-
h("sqm-text", null,
|
|
21
|
-
h("h3", { style: { color: "#777777" } }, label))));
|
|
22
|
-
}
|