@saasquatch/mint-components 1.3.3-6 → 1.3.3-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-d6a442a9.js → ShadowViewAddon-e9bacad0.js} +3 -3
- package/dist/cjs/{global-b957dd98.js → global-0c01d88f.js} +71 -283
- package/dist/cjs/{index.module-85eb6b4d.js → index.module-2925fe3b.js} +16 -18
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-59955561.js → re-render-b1ad512d.js} +4 -4
- 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_30.cjs.entry.js → sqm-divided-layout_26.cjs.entry.js} +386 -2812
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-leaderboard-rank-view-9114d9ad.js → sqm-leaderboard-rank-view-48245b30.js} +2 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- 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-b565a10a.js → sqm-navigation-sidebar-item-view-1bad646a.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-bd40f7eb.js → sqm-portal-email-verification-view-68b16f27.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +11 -6
- package/dist/cjs/{sqm-portal-footer-view-b60e17c8.js → sqm-portal-footer-view-edeeebab.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +16 -6
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-c3b889d4.js → sqm-portal-profile-view-2b48529e.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +10 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +11 -7
- 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 +3 -3
- package/dist/cjs/{useDemoBigStat-9193e8c5.js → useDemoBigStat-ee71b587.js} +23 -119
- package/dist/collection/collection-manifest.json +3 -7
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +20 -115
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +0 -1
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +25 -0
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +53 -3
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +4 -2
- 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 +53 -2
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -0
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +25 -0
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +1 -1
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +25 -0
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -2
- 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-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +1 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +36 -46
- package/dist/collection/global/styles.js +69 -281
- package/dist/collection/global/styles.ts +69 -281
- 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-router → 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 -7
- 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-2338f393.js → ShadowViewAddon-5f66de48.js} +3 -3
- package/dist/esm/{global-0e81c5e6.js → global-0fcfbedf.js} +71 -283
- package/dist/esm/{index.module-9b5bb6a2.js → index.module-1e92a7a3.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-57ac6584.js → re-render-b8468637.js} +4 -4
- 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_30.entry.js → sqm-divided-layout_26.entry.js} +388 -2810
- package/dist/esm/sqm-graphql-client-provider.entry.js +4 -4
- package/dist/esm/{sqm-leaderboard-rank-view-3f0dc20e.js → sqm-leaderboard-rank-view-fd7d7f42.js} +2 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -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-79b0748c.js → sqm-navigation-sidebar-item-view-a48bca9b.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-8f253fb7.js → sqm-portal-email-verification-view-6cc56c87.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +11 -6
- package/dist/esm/{sqm-portal-footer-view-b8a2f15e.js → sqm-portal-footer-view-8a1128d5.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +16 -6
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-831dea85.js → sqm-portal-profile-view-4acf74a5.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +6 -6
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-reset-password.entry.js +12 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +11 -7
- 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 +3 -3
- package/dist/esm/{useDemoBigStat-660c8672.js → useDemoBigStat-8865b9fa.js} +23 -119
- package/dist/esm-es5/ShadowViewAddon-5f66de48.js +1 -0
- package/dist/esm-es5/{global-0e81c5e6.js → global-0fcfbedf.js} +2 -2
- package/dist/esm-es5/{index.module-9b5bb6a2.js → index.module-1e92a7a3.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-57ac6584.js → re-render-b8468637.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-3f0dc20e.js → sqm-leaderboard-rank-view-fd7d7f42.js} +1 -1
- 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-a48bca9b.js +1 -0
- 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-8f253fb7.js → sqm-portal-email-verification-view-6cc56c87.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-b8a2f15e.js → sqm-portal-footer-view-8a1128d5.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-831dea85.js → sqm-portal-profile-view-4acf74a5.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.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-8865b9fa.js +1 -0
- package/dist/mint-components/global/styles.ts +69 -281
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-0e49a93f.system.entry.js → p-036c5a7e.system.entry.js} +1 -1
- package/dist/mint-components/{p-8f5b80f2.entry.js → p-05a2640d.entry.js} +1 -1
- package/dist/mint-components/{p-77f9b4af.entry.js → p-05a86906.entry.js} +2 -2
- package/dist/mint-components/{p-51277d8e.system.entry.js → p-06d79243.system.entry.js} +1 -1
- package/dist/mint-components/{p-cafc22bf.system.entry.js → p-09afaaac.system.entry.js} +1 -1
- package/dist/mint-components/p-10a98629.entry.js +1 -0
- package/dist/mint-components/p-112d42ab.system.entry.js +1 -0
- package/dist/mint-components/p-13605359.entry.js +1 -0
- package/dist/mint-components/{p-d4fe6a69.system.js → p-18aa175f.system.js} +2 -2
- package/dist/mint-components/p-192539d2.entry.js +1 -0
- package/dist/mint-components/p-1e47e0a6.entry.js +1 -0
- package/dist/mint-components/{p-b2cb66f5.system.js → p-27e23808.system.js} +1 -1
- package/dist/mint-components/p-2f333f89.system.entry.js +1 -0
- package/dist/mint-components/p-32573409.js +227 -0
- package/dist/mint-components/{p-17e6fc02.system.entry.js → p-337a3d6b.system.entry.js} +1 -1
- package/dist/mint-components/{p-f3ea7918.system.js → p-3452bdae.system.js} +1 -1
- package/dist/mint-components/{p-7062ab8e.system.entry.js → p-3772bae2.system.entry.js} +1 -1
- package/dist/mint-components/{p-1ec1dcb3.system.js → p-3e3dad7a.system.js} +1 -1
- package/dist/mint-components/{p-d5a00e40.system.entry.js → p-4068e47c.system.entry.js} +1 -1
- package/dist/mint-components/{p-f7b80ac0.entry.js → p-4b6c316d.entry.js} +1 -1
- package/dist/mint-components/{p-295b306a.js → p-51cfdd14.js} +1 -1
- package/dist/mint-components/p-528aecd1.entry.js +1 -0
- package/dist/mint-components/p-54707082.system.js +1 -0
- package/dist/mint-components/p-55210498.system.js +1 -0
- package/dist/mint-components/{p-be615f03.system.js → p-602180a2.system.js} +1 -1
- package/dist/mint-components/p-606506d6.system.entry.js +1 -0
- package/dist/mint-components/{p-55f029cd.system.entry.js → p-6156a7ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-b9edc48d.system.entry.js → p-624c5352.system.entry.js} +1 -1
- package/dist/mint-components/p-6305419f.entry.js +1 -0
- package/dist/mint-components/{p-8a9966fc.system.js → p-64759dda.system.js} +1 -1
- package/dist/mint-components/p-6815e7ba.entry.js +1 -0
- package/dist/mint-components/p-6ad110d3.js +1 -0
- package/dist/mint-components/{p-aee2a2b9.entry.js → p-6cb81b77.entry.js} +1 -1
- package/dist/mint-components/{p-46cb29e2.system.entry.js → p-70ca623f.system.entry.js} +1 -1
- package/dist/mint-components/{p-75ae6fc0.entry.js → p-743882c6.entry.js} +1 -1
- package/dist/mint-components/p-756a5e6f.system.js +1 -0
- package/dist/mint-components/p-768b9014.system.entry.js +1 -0
- package/dist/mint-components/p-7cf335a0.entry.js +1 -0
- package/dist/mint-components/{p-8bfe1f7d.js → p-7d996b49.js} +1 -1
- package/dist/mint-components/p-86b66e5c.entry.js +1 -0
- package/dist/mint-components/{p-ad1c6eb8.system.entry.js → p-8bfebd45.system.entry.js} +1 -1
- package/dist/mint-components/p-942723ad.entry.js +1 -0
- package/dist/mint-components/{p-a93149f4.entry.js → p-965e34ab.entry.js} +1 -1
- package/dist/mint-components/{p-35103a1b.system.entry.js → p-991bd182.system.entry.js} +1 -1
- package/dist/mint-components/{p-0a882bab.system.entry.js → p-9a3a0db5.system.entry.js} +1 -1
- package/dist/mint-components/p-9f2a08a9.entry.js +230 -0
- package/dist/mint-components/{p-75b143ac.system.entry.js → p-9ff0425e.system.entry.js} +1 -1
- package/dist/mint-components/{p-e53399e5.system.entry.js → p-9ff118a2.system.entry.js} +1 -1
- package/dist/mint-components/p-a359f652.system.js +1 -0
- package/dist/mint-components/p-a646db48.system.entry.js +1 -0
- package/dist/mint-components/{p-27bb0aa9.js → p-af1f8bd3.js} +1 -1
- package/dist/mint-components/{p-d5b84d6b.js → p-af2d886e.js} +1 -1
- package/dist/mint-components/{p-3404b8d2.system.entry.js → p-b3880833.system.entry.js} +1 -1
- package/dist/mint-components/p-b3cddcca.entry.js +1 -0
- package/dist/mint-components/p-ba09d673.system.entry.js +1 -0
- package/dist/mint-components/{p-8ec40f9a.entry.js → p-c47b83c3.entry.js} +1 -1
- package/dist/mint-components/{p-bafc60df.js → p-c84a5b33.js} +1 -1
- package/dist/mint-components/p-cffc23c0.entry.js +1 -0
- package/dist/mint-components/{p-b6107771.js → p-d0cad85c.js} +2 -2
- package/dist/mint-components/p-d1cea1b1.system.js +1 -0
- package/dist/mint-components/{p-024cc1be.system.entry.js → p-d3171b36.system.entry.js} +1 -1
- package/dist/mint-components/{p-24d13567.js → p-d513229d.js} +1 -1
- package/dist/mint-components/{p-16b0b00b.entry.js → p-d55abc13.entry.js} +2 -2
- package/dist/mint-components/p-de3311bf.entry.js +9 -0
- package/dist/mint-components/{p-be62004c.entry.js → p-e50839df.entry.js} +1 -1
- package/dist/mint-components/{p-a59e65f2.js → p-eddcf481.js} +1 -1
- package/dist/mint-components/{p-98e29140.system.entry.js → p-f16bae7a.system.entry.js} +1 -1
- 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-email-verification/sqm-portal-email-verification.d.ts +4 -0
- 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 +8 -0
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +3 -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 +8 -0
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +4 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +4 -0
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +2 -1
- 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 +72 -289
- 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-router → 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 -6
- 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 +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +0 -25
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +0 -241
- 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 -61
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +0 -357
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +0 -144
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +0 -174
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +0 -53
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +0 -120
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +0 -222
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +0 -190
- package/dist/collection/components/sqm-task-card/Matrix.js +0 -66
- package/dist/collection/components/sqm-task-card/SVGs.js +0 -9
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +0 -278
- 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 -314
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +0 -211
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +0 -419
- package/dist/collection/tables/GenericTableView.js +0 -51
- package/dist/collection/tables/TableSlots.js +0 -22
- package/dist/esm-es5/ShadowViewAddon-2338f393.js +0 -1
- package/dist/esm-es5/sqm-divided-layout_30.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-79b0748c.js +0 -1
- package/dist/esm-es5/useDemoBigStat-660c8672.js +0 -1
- package/dist/mint-components/assets/Reward-icon.png +0 -0
- package/dist/mint-components/mint-components.css +0 -1
- package/dist/mint-components/p-101fafa3.js +0 -1
- package/dist/mint-components/p-1dc2793a.system.entry.js +0 -1
- package/dist/mint-components/p-1dc2e37a.system.entry.js +0 -1
- package/dist/mint-components/p-1dd1105d.system.entry.js +0 -1
- package/dist/mint-components/p-22d56623.entry.js +0 -9
- package/dist/mint-components/p-232dddcc.system.entry.js +0 -1
- package/dist/mint-components/p-25021e09.entry.js +0 -1
- package/dist/mint-components/p-3098bb1b.system.entry.js +0 -1
- package/dist/mint-components/p-35ba4a8b.entry.js +0 -1
- package/dist/mint-components/p-441119ee.js +0 -235
- package/dist/mint-components/p-503192e9.entry.js +0 -1
- package/dist/mint-components/p-58bf2a30.system.js +0 -1
- package/dist/mint-components/p-58fb3d02.system.js +0 -1
- package/dist/mint-components/p-62102076.entry.js +0 -1
- package/dist/mint-components/p-623e7f8c.entry.js +0 -335
- package/dist/mint-components/p-6410316b.entry.js +0 -1
- package/dist/mint-components/p-69902f7c.system.js +0 -1
- package/dist/mint-components/p-6acfe4a0.entry.js +0 -1
- package/dist/mint-components/p-6cbb3a00.entry.js +0 -1
- package/dist/mint-components/p-7ee8a7ed.system.js +0 -1
- package/dist/mint-components/p-853bd4bd.entry.js +0 -1
- package/dist/mint-components/p-85728f98.entry.js +0 -1
- package/dist/mint-components/p-aa39d9c0.entry.js +0 -1
- package/dist/mint-components/p-b893904c.system.entry.js +0 -1
- package/dist/mint-components/p-dea06c92.entry.js +0 -1
- package/dist/mint-components/p-eb5aae94.entry.js +0 -1
- package/dist/mint-components/p-f7d7e44d.system.js +0 -1
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +0 -7
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +0 -112
- 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 -25
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +0 -24
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +0 -44
- package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +0 -16
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +0 -20
- 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 -38
- 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 -16
- 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 -11
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +0 -17
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +0 -76
- 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,211 +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
|
-
import { DateTime } from "luxon";
|
|
8
|
-
export function TaskCardView(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-neutral-0)",
|
|
23
|
-
border: "1px solid var(--sl-color-neutral-300)",
|
|
24
|
-
borderRadius: "var(--sl-border-radius-medium)",
|
|
25
|
-
fontSize: "var(--sl-font-size-small)",
|
|
26
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
27
|
-
color: "var(--sl-color-neutral-600)",
|
|
28
|
-
},
|
|
29
|
-
"& .main.complete": {
|
|
30
|
-
background: "var(--sl-color-success-50)",
|
|
31
|
-
borderColor: "var(--sl-color-success-700)",
|
|
32
|
-
},
|
|
33
|
-
"& .main.expired": {
|
|
34
|
-
color: "var(--sl-color-neutral-400)",
|
|
35
|
-
background: "var(--sl-color-neutral-50)",
|
|
36
|
-
},
|
|
37
|
-
"& .title": {
|
|
38
|
-
fontSize: "var(--sl-font-size-small)",
|
|
39
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
40
|
-
},
|
|
41
|
-
"& .black": {
|
|
42
|
-
color: "var(--sl-color-neutral-1000)",
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
Header: {
|
|
46
|
-
display: "flex",
|
|
47
|
-
"& .icon": {
|
|
48
|
-
alignSelf: "center",
|
|
49
|
-
lineHeight: "0",
|
|
50
|
-
color: "var(--sl-color-success-700)",
|
|
51
|
-
fontSize: "var(--sl-font-size-large)",
|
|
52
|
-
marginRight: "var(--sl-spacing-x-small)",
|
|
53
|
-
},
|
|
54
|
-
"& .value": {
|
|
55
|
-
alignSelf: "center",
|
|
56
|
-
fontSize: "var(--sl-font-size-x-large)",
|
|
57
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
58
|
-
lineHeight: "100%",
|
|
59
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
60
|
-
},
|
|
61
|
-
"& .text": {
|
|
62
|
-
alignSelf: "end",
|
|
63
|
-
textTransform: "uppercase",
|
|
64
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
65
|
-
lineHeight: "var(--sl-font-size-medium)",
|
|
66
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
67
|
-
},
|
|
68
|
-
"& .end": {
|
|
69
|
-
color: "var(--sl-color-warning-500)",
|
|
70
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
71
|
-
marginBottom: "var(--sl-spacing-xx-small)",
|
|
72
|
-
},
|
|
73
|
-
"& .black": {
|
|
74
|
-
color: "var(--sl-color-neutral-1000)",
|
|
75
|
-
},
|
|
76
|
-
"& .neutral": {
|
|
77
|
-
color: "var(--sl-color-neutral-400)",
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
Footer: {
|
|
81
|
-
display: "flex",
|
|
82
|
-
"& .icon": {
|
|
83
|
-
fontSize: "var(--sl-font-size-xx-small)",
|
|
84
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
85
|
-
},
|
|
86
|
-
"& .text": {
|
|
87
|
-
marginTop: "auto",
|
|
88
|
-
verticalAlign: "text-bottom",
|
|
89
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
90
|
-
},
|
|
91
|
-
"& .success": {
|
|
92
|
-
color: "var(--sl-color-success-600)",
|
|
93
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
94
|
-
},
|
|
95
|
-
"& .action": {
|
|
96
|
-
marginTop: "auto",
|
|
97
|
-
marginLeft: "auto",
|
|
98
|
-
"&::part(base)": {
|
|
99
|
-
color: "var(--sl-color-neutral-0)",
|
|
100
|
-
borderRadius: "var(--sl-border-radius-medium)",
|
|
101
|
-
},
|
|
102
|
-
"&.disabled::part(base)": {
|
|
103
|
-
border: "1px solid var(--sl-color-neutral-400)",
|
|
104
|
-
background: "var(--sl-color-neutral-400)",
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
"& .neutral": {
|
|
108
|
-
color: "var(--sl-color-neutral-400)",
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
|
-
jss.setup(preset());
|
|
113
|
-
const sheet = jss.createStyleSheet(style);
|
|
114
|
-
const styleString = sheet.toString();
|
|
115
|
-
const showComplete = props.progress >= props.goal;
|
|
116
|
-
const repetitions = props.showProgressBar
|
|
117
|
-
? Math.floor(props.progress / props.goal)
|
|
118
|
-
: props.progress;
|
|
119
|
-
const dateStart = props.showExpiry && DateTime.fromISO(props.rewardDuration.split("/")[0]);
|
|
120
|
-
const dateEnd = props.showExpiry && DateTime.fromISO(props.rewardDuration.split("/")[1]);
|
|
121
|
-
const dateToday = DateTime.now();
|
|
122
|
-
const taskComplete = showComplete && props.repeatable === false;
|
|
123
|
-
const taskUnavailable = props.showExpiry && (dateEnd < dateToday || dateToday < dateStart);
|
|
124
|
-
return (h("div", { class: sheet.classes.TaskCard },
|
|
125
|
-
h("div", { class: taskUnavailable
|
|
126
|
-
? "main expired"
|
|
127
|
-
: taskComplete
|
|
128
|
-
? "main complete"
|
|
129
|
-
: "main" },
|
|
130
|
-
h("style", { type: "text/css" }, styleString),
|
|
131
|
-
h("div", { class: sheet.classes.Header }, props.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0", height: "12px" } })) : (h("div", null,
|
|
132
|
-
taskUnavailable && (h("div", { class: "end" }, "Available " +
|
|
133
|
-
dateStart.toLocaleString(DateTime.DATE_MED).split(",")[0] +
|
|
134
|
-
" - " +
|
|
135
|
-
dateEnd.toLocaleString(DateTime.DATE_MED).split(",")[0])),
|
|
136
|
-
showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, checkmark_circle)),
|
|
137
|
-
h("span", { class: taskUnavailable ? "value" : "value black" }, props.rewardAmount),
|
|
138
|
-
h("span", { class: "text" }, props.rewardUnit)))),
|
|
139
|
-
props.loading ? (h("sl-skeleton", { style: { width: "42%", margin: "0 16px", height: "12px" } })) : (h("div", { class: taskUnavailable ? "title" : "title black" }, props.cardTitle)),
|
|
140
|
-
props.loading ? (h("sl-skeleton", { style: { margin: "12px 16px", height: "12px" } })) : (h(Details, Object.assign({}, props))),
|
|
141
|
-
props.showProgressBar && props.loading ? (h("sl-skeleton", { style: { margin: "0 16px", height: "12px" } })) : (props.showProgressBar && (h(ProgressBarView, Object.assign({}, props, { complete: taskComplete, expired: taskUnavailable })))),
|
|
142
|
-
h("div", { class: sheet.classes.Footer }, props.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto", height: "12px" } })) : (h("div", { style: { display: "contents" } },
|
|
143
|
-
h("span", { class: "text" },
|
|
144
|
-
props.repeatable && (h("div", null,
|
|
145
|
-
h("span", { class: repetitions > 0
|
|
146
|
-
? taskUnavailable
|
|
147
|
-
? "icon neutral"
|
|
148
|
-
: "icon success"
|
|
149
|
-
: "icon" }, arrow_left_right),
|
|
150
|
-
h("span", { class: repetitions > 0
|
|
151
|
-
? taskUnavailable
|
|
152
|
-
? "neutral"
|
|
153
|
-
: "success"
|
|
154
|
-
: "" }, "Completed " + repetitions + " times"))),
|
|
155
|
-
props.showExpiry && !taskUnavailable && (h("span", null, "Ends " + dateEnd.toLocaleString(DateTime.DATE_FULL)))),
|
|
156
|
-
h("sl-button", { class: taskComplete || taskUnavailable ? "action disabled" : "action", type: "primary", size: "small", onClick: () => props.openNewTab
|
|
157
|
-
? window.open(props.buttonLink)
|
|
158
|
-
: window.open(props.buttonLink, "_self"), disabled: taskComplete || taskUnavailable }, props.buttonText)))))));
|
|
159
|
-
}
|
|
160
|
-
function Details(props) {
|
|
161
|
-
const style = {
|
|
162
|
-
Description: {
|
|
163
|
-
"& input[type=checkbox]": {
|
|
164
|
-
display: "none",
|
|
165
|
-
},
|
|
166
|
-
"& input:checked ~ .details": {
|
|
167
|
-
transform: "rotate(-180deg)",
|
|
168
|
-
},
|
|
169
|
-
"& .details": {
|
|
170
|
-
position: "absolute",
|
|
171
|
-
top: "var(--sl-spacing-medium)",
|
|
172
|
-
right: "var(--sl-spacing-medium)",
|
|
173
|
-
color: "var(--sl-color-neutral-700)",
|
|
174
|
-
fontSize: "var(--sl-font-size-large)",
|
|
175
|
-
"& :hover": {
|
|
176
|
-
color: "var(--sl-color-primary-700)",
|
|
177
|
-
},
|
|
178
|
-
transformOrigin: "50% 37%",
|
|
179
|
-
transition: "transform var(--sl-transition-medium) ease",
|
|
180
|
-
},
|
|
181
|
-
"& input:checked ~ .summary": {
|
|
182
|
-
transition: "all var(--sl-transition-medium) ease",
|
|
183
|
-
maxHeight: "300px",
|
|
184
|
-
marginBottom: props.steps
|
|
185
|
-
? "var(--sl-spacing-large)"
|
|
186
|
-
: props.showProgressBar
|
|
187
|
-
? "var(--sl-spacing-xx-large)"
|
|
188
|
-
: "var(--sl-spacing-large)",
|
|
189
|
-
},
|
|
190
|
-
"& .summary": {
|
|
191
|
-
display: "block",
|
|
192
|
-
overflow: "hidden",
|
|
193
|
-
fontSize: "var(--sl-font-size-small)",
|
|
194
|
-
maxHeight: "0px",
|
|
195
|
-
transition: "all var(--sl-transition-fast) ease-out",
|
|
196
|
-
marginBottom: "var(--sl-spacing-medium)",
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
};
|
|
200
|
-
jss.setup(preset());
|
|
201
|
-
const sheet = jss.createStyleSheet(style);
|
|
202
|
-
const styleString = sheet.toString();
|
|
203
|
-
const rid = Math.random().toString(36).slice(2);
|
|
204
|
-
return (h("div", null,
|
|
205
|
-
h("style", { type: "text/css" }, styleString),
|
|
206
|
-
h("span", { class: sheet.classes.Description },
|
|
207
|
-
h("input", { type: "checkbox", id: "details-" + rid }),
|
|
208
|
-
h("label", { class: "details", htmlFor: "details-" + rid },
|
|
209
|
-
h("sl-icon", { name: "chevron-down" })),
|
|
210
|
-
h("span", { class: "summary" }, props.description))));
|
|
211
|
-
}
|
|
@@ -1,419 +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
|
-
* @uiOrder ["reward-amount", "reward-unit", "card-title", "description", "repeatable", "show-progress-bar", "stat-type", "progress-source", "goal", "steps", "progress-bar-unit", "show-expiry", "reward-duration", "button-text", "button-link", "open-new-tab"]
|
|
11
|
-
*/
|
|
12
|
-
export class TaskCard {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.ignored = true;
|
|
15
|
-
/**
|
|
16
|
-
* @uiName Reward Amount
|
|
17
|
-
*/
|
|
18
|
-
this.rewardAmount = 0;
|
|
19
|
-
/**
|
|
20
|
-
* @uiName Reward Unit
|
|
21
|
-
*/
|
|
22
|
-
this.rewardUnit = "Points";
|
|
23
|
-
/**
|
|
24
|
-
* @uiName Title Text
|
|
25
|
-
*/
|
|
26
|
-
this.cardTitle = "Title Text";
|
|
27
|
-
/**
|
|
28
|
-
* @uiName Description Text
|
|
29
|
-
*/
|
|
30
|
-
this.description = "Description Text";
|
|
31
|
-
/**
|
|
32
|
-
* @uiName Goal Repeatable
|
|
33
|
-
*/
|
|
34
|
-
this.repeatable = false;
|
|
35
|
-
/**
|
|
36
|
-
* @uiName Show Progress Bar
|
|
37
|
-
*/
|
|
38
|
-
this.showProgressBar = false;
|
|
39
|
-
/**
|
|
40
|
-
* @uiName Goal Completion Number
|
|
41
|
-
*/
|
|
42
|
-
this.goal = 1;
|
|
43
|
-
/**
|
|
44
|
-
* @uiName Progress Bar Steps
|
|
45
|
-
*/
|
|
46
|
-
this.steps = false;
|
|
47
|
-
/**
|
|
48
|
-
* @uiName Show Goal Expiry
|
|
49
|
-
*/
|
|
50
|
-
this.showExpiry = false;
|
|
51
|
-
/**
|
|
52
|
-
* @uiName Reward Duration
|
|
53
|
-
* @uiWidget DateRange
|
|
54
|
-
* @uiOptions {"allowPastDates":true, "months": 1}
|
|
55
|
-
*/
|
|
56
|
-
this.rewardDuration = "/";
|
|
57
|
-
/**
|
|
58
|
-
* @uiName CTA Button Text
|
|
59
|
-
*/
|
|
60
|
-
this.buttonText = "Complete Action";
|
|
61
|
-
/**
|
|
62
|
-
* @uiName CTA Button Link
|
|
63
|
-
*/
|
|
64
|
-
this.buttonLink = "https://example.com/";
|
|
65
|
-
/**
|
|
66
|
-
* @uiName CTA Button Link Open in New Tab
|
|
67
|
-
*/
|
|
68
|
-
this.openNewTab = false;
|
|
69
|
-
/**
|
|
70
|
-
* Select what type of stat to display for the goal. Manual paths are also supported.
|
|
71
|
-
*
|
|
72
|
-
* @uiWidget StatTypeSelectWidget
|
|
73
|
-
* @uiName Goal Progress Source
|
|
74
|
-
* @uiOptions {"version": 1.1}
|
|
75
|
-
*/
|
|
76
|
-
this.statType = "/programGoals/count/Referral-Started%2Freferrals";
|
|
77
|
-
withHooks(this);
|
|
78
|
-
}
|
|
79
|
-
disconnectedCallback() { }
|
|
80
|
-
render() {
|
|
81
|
-
const { props } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
82
|
-
const { value, statvalue } = props;
|
|
83
|
-
console.log(props, isDemo());
|
|
84
|
-
return (h(TaskCardView, Object.assign({ progress: value, loading: !isDemo() && value === undefined }, getProps(this))));
|
|
85
|
-
}
|
|
86
|
-
static get is() { return "sqm-task-card"; }
|
|
87
|
-
static get encapsulation() { return "shadow"; }
|
|
88
|
-
static get properties() { return {
|
|
89
|
-
"rewardAmount": {
|
|
90
|
-
"type": "number",
|
|
91
|
-
"mutable": false,
|
|
92
|
-
"complexType": {
|
|
93
|
-
"original": "number",
|
|
94
|
-
"resolved": "number",
|
|
95
|
-
"references": {}
|
|
96
|
-
},
|
|
97
|
-
"required": false,
|
|
98
|
-
"optional": false,
|
|
99
|
-
"docs": {
|
|
100
|
-
"tags": [{
|
|
101
|
-
"text": "Reward Amount",
|
|
102
|
-
"name": "uiName"
|
|
103
|
-
}],
|
|
104
|
-
"text": ""
|
|
105
|
-
},
|
|
106
|
-
"attribute": "reward-amount",
|
|
107
|
-
"reflect": false,
|
|
108
|
-
"defaultValue": "0"
|
|
109
|
-
},
|
|
110
|
-
"rewardUnit": {
|
|
111
|
-
"type": "string",
|
|
112
|
-
"mutable": false,
|
|
113
|
-
"complexType": {
|
|
114
|
-
"original": "string",
|
|
115
|
-
"resolved": "string",
|
|
116
|
-
"references": {}
|
|
117
|
-
},
|
|
118
|
-
"required": false,
|
|
119
|
-
"optional": false,
|
|
120
|
-
"docs": {
|
|
121
|
-
"tags": [{
|
|
122
|
-
"text": "Reward Unit",
|
|
123
|
-
"name": "uiName"
|
|
124
|
-
}],
|
|
125
|
-
"text": ""
|
|
126
|
-
},
|
|
127
|
-
"attribute": "reward-unit",
|
|
128
|
-
"reflect": false,
|
|
129
|
-
"defaultValue": "\"Points\""
|
|
130
|
-
},
|
|
131
|
-
"cardTitle": {
|
|
132
|
-
"type": "string",
|
|
133
|
-
"mutable": false,
|
|
134
|
-
"complexType": {
|
|
135
|
-
"original": "string",
|
|
136
|
-
"resolved": "string",
|
|
137
|
-
"references": {}
|
|
138
|
-
},
|
|
139
|
-
"required": false,
|
|
140
|
-
"optional": false,
|
|
141
|
-
"docs": {
|
|
142
|
-
"tags": [{
|
|
143
|
-
"text": "Title Text",
|
|
144
|
-
"name": "uiName"
|
|
145
|
-
}],
|
|
146
|
-
"text": ""
|
|
147
|
-
},
|
|
148
|
-
"attribute": "card-title",
|
|
149
|
-
"reflect": false,
|
|
150
|
-
"defaultValue": "\"Title Text\""
|
|
151
|
-
},
|
|
152
|
-
"description": {
|
|
153
|
-
"type": "string",
|
|
154
|
-
"mutable": false,
|
|
155
|
-
"complexType": {
|
|
156
|
-
"original": "string",
|
|
157
|
-
"resolved": "string",
|
|
158
|
-
"references": {}
|
|
159
|
-
},
|
|
160
|
-
"required": false,
|
|
161
|
-
"optional": false,
|
|
162
|
-
"docs": {
|
|
163
|
-
"tags": [{
|
|
164
|
-
"text": "Description Text",
|
|
165
|
-
"name": "uiName"
|
|
166
|
-
}],
|
|
167
|
-
"text": ""
|
|
168
|
-
},
|
|
169
|
-
"attribute": "description",
|
|
170
|
-
"reflect": false,
|
|
171
|
-
"defaultValue": "\"Description Text\""
|
|
172
|
-
},
|
|
173
|
-
"repeatable": {
|
|
174
|
-
"type": "boolean",
|
|
175
|
-
"mutable": false,
|
|
176
|
-
"complexType": {
|
|
177
|
-
"original": "boolean",
|
|
178
|
-
"resolved": "boolean",
|
|
179
|
-
"references": {}
|
|
180
|
-
},
|
|
181
|
-
"required": false,
|
|
182
|
-
"optional": false,
|
|
183
|
-
"docs": {
|
|
184
|
-
"tags": [{
|
|
185
|
-
"text": "Goal Repeatable",
|
|
186
|
-
"name": "uiName"
|
|
187
|
-
}],
|
|
188
|
-
"text": ""
|
|
189
|
-
},
|
|
190
|
-
"attribute": "repeatable",
|
|
191
|
-
"reflect": false,
|
|
192
|
-
"defaultValue": "false"
|
|
193
|
-
},
|
|
194
|
-
"showProgressBar": {
|
|
195
|
-
"type": "boolean",
|
|
196
|
-
"mutable": false,
|
|
197
|
-
"complexType": {
|
|
198
|
-
"original": "boolean",
|
|
199
|
-
"resolved": "boolean",
|
|
200
|
-
"references": {}
|
|
201
|
-
},
|
|
202
|
-
"required": false,
|
|
203
|
-
"optional": false,
|
|
204
|
-
"docs": {
|
|
205
|
-
"tags": [{
|
|
206
|
-
"text": "Show Progress Bar",
|
|
207
|
-
"name": "uiName"
|
|
208
|
-
}],
|
|
209
|
-
"text": ""
|
|
210
|
-
},
|
|
211
|
-
"attribute": "show-progress-bar",
|
|
212
|
-
"reflect": false,
|
|
213
|
-
"defaultValue": "false"
|
|
214
|
-
},
|
|
215
|
-
"goal": {
|
|
216
|
-
"type": "number",
|
|
217
|
-
"mutable": false,
|
|
218
|
-
"complexType": {
|
|
219
|
-
"original": "number",
|
|
220
|
-
"resolved": "number",
|
|
221
|
-
"references": {}
|
|
222
|
-
},
|
|
223
|
-
"required": false,
|
|
224
|
-
"optional": false,
|
|
225
|
-
"docs": {
|
|
226
|
-
"tags": [{
|
|
227
|
-
"text": "Goal Completion Number",
|
|
228
|
-
"name": "uiName"
|
|
229
|
-
}],
|
|
230
|
-
"text": ""
|
|
231
|
-
},
|
|
232
|
-
"attribute": "goal",
|
|
233
|
-
"reflect": false,
|
|
234
|
-
"defaultValue": "1"
|
|
235
|
-
},
|
|
236
|
-
"steps": {
|
|
237
|
-
"type": "boolean",
|
|
238
|
-
"mutable": false,
|
|
239
|
-
"complexType": {
|
|
240
|
-
"original": "boolean",
|
|
241
|
-
"resolved": "boolean",
|
|
242
|
-
"references": {}
|
|
243
|
-
},
|
|
244
|
-
"required": false,
|
|
245
|
-
"optional": false,
|
|
246
|
-
"docs": {
|
|
247
|
-
"tags": [{
|
|
248
|
-
"text": "Progress Bar Steps",
|
|
249
|
-
"name": "uiName"
|
|
250
|
-
}],
|
|
251
|
-
"text": ""
|
|
252
|
-
},
|
|
253
|
-
"attribute": "steps",
|
|
254
|
-
"reflect": false,
|
|
255
|
-
"defaultValue": "false"
|
|
256
|
-
},
|
|
257
|
-
"progressBarUnit": {
|
|
258
|
-
"type": "string",
|
|
259
|
-
"mutable": false,
|
|
260
|
-
"complexType": {
|
|
261
|
-
"original": "string",
|
|
262
|
-
"resolved": "string",
|
|
263
|
-
"references": {}
|
|
264
|
-
},
|
|
265
|
-
"required": false,
|
|
266
|
-
"optional": true,
|
|
267
|
-
"docs": {
|
|
268
|
-
"tags": [{
|
|
269
|
-
"text": "Progress Bar Unit",
|
|
270
|
-
"name": "uiName"
|
|
271
|
-
}],
|
|
272
|
-
"text": ""
|
|
273
|
-
},
|
|
274
|
-
"attribute": "progress-bar-unit",
|
|
275
|
-
"reflect": false
|
|
276
|
-
},
|
|
277
|
-
"showExpiry": {
|
|
278
|
-
"type": "boolean",
|
|
279
|
-
"mutable": false,
|
|
280
|
-
"complexType": {
|
|
281
|
-
"original": "boolean",
|
|
282
|
-
"resolved": "boolean",
|
|
283
|
-
"references": {}
|
|
284
|
-
},
|
|
285
|
-
"required": false,
|
|
286
|
-
"optional": false,
|
|
287
|
-
"docs": {
|
|
288
|
-
"tags": [{
|
|
289
|
-
"text": "Show Goal Expiry",
|
|
290
|
-
"name": "uiName"
|
|
291
|
-
}],
|
|
292
|
-
"text": ""
|
|
293
|
-
},
|
|
294
|
-
"attribute": "show-expiry",
|
|
295
|
-
"reflect": false,
|
|
296
|
-
"defaultValue": "false"
|
|
297
|
-
},
|
|
298
|
-
"rewardDuration": {
|
|
299
|
-
"type": "string",
|
|
300
|
-
"mutable": false,
|
|
301
|
-
"complexType": {
|
|
302
|
-
"original": "string",
|
|
303
|
-
"resolved": "string",
|
|
304
|
-
"references": {}
|
|
305
|
-
},
|
|
306
|
-
"required": false,
|
|
307
|
-
"optional": false,
|
|
308
|
-
"docs": {
|
|
309
|
-
"tags": [{
|
|
310
|
-
"text": "Reward Duration",
|
|
311
|
-
"name": "uiName"
|
|
312
|
-
}, {
|
|
313
|
-
"text": "DateRange",
|
|
314
|
-
"name": "uiWidget"
|
|
315
|
-
}, {
|
|
316
|
-
"text": "{\"allowPastDates\":true, \"months\": 1}",
|
|
317
|
-
"name": "uiOptions"
|
|
318
|
-
}],
|
|
319
|
-
"text": ""
|
|
320
|
-
},
|
|
321
|
-
"attribute": "reward-duration",
|
|
322
|
-
"reflect": false,
|
|
323
|
-
"defaultValue": "\"/\""
|
|
324
|
-
},
|
|
325
|
-
"buttonText": {
|
|
326
|
-
"type": "string",
|
|
327
|
-
"mutable": false,
|
|
328
|
-
"complexType": {
|
|
329
|
-
"original": "string",
|
|
330
|
-
"resolved": "string",
|
|
331
|
-
"references": {}
|
|
332
|
-
},
|
|
333
|
-
"required": false,
|
|
334
|
-
"optional": false,
|
|
335
|
-
"docs": {
|
|
336
|
-
"tags": [{
|
|
337
|
-
"text": "CTA Button Text",
|
|
338
|
-
"name": "uiName"
|
|
339
|
-
}],
|
|
340
|
-
"text": ""
|
|
341
|
-
},
|
|
342
|
-
"attribute": "button-text",
|
|
343
|
-
"reflect": false,
|
|
344
|
-
"defaultValue": "\"Complete Action\""
|
|
345
|
-
},
|
|
346
|
-
"buttonLink": {
|
|
347
|
-
"type": "string",
|
|
348
|
-
"mutable": false,
|
|
349
|
-
"complexType": {
|
|
350
|
-
"original": "string",
|
|
351
|
-
"resolved": "string",
|
|
352
|
-
"references": {}
|
|
353
|
-
},
|
|
354
|
-
"required": false,
|
|
355
|
-
"optional": false,
|
|
356
|
-
"docs": {
|
|
357
|
-
"tags": [{
|
|
358
|
-
"text": "CTA Button Link",
|
|
359
|
-
"name": "uiName"
|
|
360
|
-
}],
|
|
361
|
-
"text": ""
|
|
362
|
-
},
|
|
363
|
-
"attribute": "button-link",
|
|
364
|
-
"reflect": false,
|
|
365
|
-
"defaultValue": "\"https://example.com/\""
|
|
366
|
-
},
|
|
367
|
-
"openNewTab": {
|
|
368
|
-
"type": "boolean",
|
|
369
|
-
"mutable": false,
|
|
370
|
-
"complexType": {
|
|
371
|
-
"original": "boolean",
|
|
372
|
-
"resolved": "boolean",
|
|
373
|
-
"references": {}
|
|
374
|
-
},
|
|
375
|
-
"required": false,
|
|
376
|
-
"optional": false,
|
|
377
|
-
"docs": {
|
|
378
|
-
"tags": [{
|
|
379
|
-
"text": "CTA Button Link Open in New Tab",
|
|
380
|
-
"name": "uiName"
|
|
381
|
-
}],
|
|
382
|
-
"text": ""
|
|
383
|
-
},
|
|
384
|
-
"attribute": "open-new-tab",
|
|
385
|
-
"reflect": false,
|
|
386
|
-
"defaultValue": "false"
|
|
387
|
-
},
|
|
388
|
-
"statType": {
|
|
389
|
-
"type": "string",
|
|
390
|
-
"mutable": false,
|
|
391
|
-
"complexType": {
|
|
392
|
-
"original": "string",
|
|
393
|
-
"resolved": "string",
|
|
394
|
-
"references": {}
|
|
395
|
-
},
|
|
396
|
-
"required": false,
|
|
397
|
-
"optional": false,
|
|
398
|
-
"docs": {
|
|
399
|
-
"tags": [{
|
|
400
|
-
"text": "StatTypeSelectWidget",
|
|
401
|
-
"name": "uiWidget"
|
|
402
|
-
}, {
|
|
403
|
-
"text": "Goal Progress Source",
|
|
404
|
-
"name": "uiName"
|
|
405
|
-
}, {
|
|
406
|
-
"text": "{\"version\": 1.1}",
|
|
407
|
-
"name": "uiOptions"
|
|
408
|
-
}],
|
|
409
|
-
"text": "Select what type of stat to display for the goal. Manual paths are also supported."
|
|
410
|
-
},
|
|
411
|
-
"attribute": "stat-type",
|
|
412
|
-
"reflect": false,
|
|
413
|
-
"defaultValue": "\"/programGoals/count/Referral-Started%2Freferrals\""
|
|
414
|
-
}
|
|
415
|
-
}; }
|
|
416
|
-
static get states() { return {
|
|
417
|
-
"ignored": {}
|
|
418
|
-
}; }
|
|
419
|
-
}
|
|
@@ -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
|
-
}
|