@saasquatch/mint-components 1.5.0-91 → 1.5.0-95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{GenericTableView-39e0998e.js → GenericTableView-8e84d356.js} +3 -1
- package/dist/cjs/{ShadowViewAddon-30bea908.js → ShadowViewAddon-915b2c16.js} +19 -13
- package/dist/cjs/{global-633d1fb7.js → global-4c495d76.js} +1 -1
- package/dist/cjs/{index.module-f972f103.js → index.module-54724339.js} +6298 -6298
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-1ef744c7.js → re-render-2f8d0f37.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-big-stat.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-brand_27.cjs.entry.js → sqm-brand_29.cjs.entry.js} +82 -59
- package/dist/cjs/{sqm-empty_7.cjs.entry.js → sqm-empty_5.cjs.entry.js} +5 -35
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-name-fields.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-navigation-sidebar-item-view-2ac54715.js → sqm-navigation-sidebar-item-view-da648fbc.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-c32a55d6.js → sqm-portal-email-verification-view-1552442a.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-footer-view-cac67bc9.js → sqm-portal-footer-view-15ce261b.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-dea275e0.js → sqm-portal-profile-view-659635e9.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +10 -132
- package/dist/cjs/sqm-refresh-button.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +26 -0
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +38 -0
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +14 -13
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +75 -70
- package/dist/cjs/sqm-tab.cjs.entry.js +0 -3
- package/dist/cjs/sqm-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{useChildElements-3ce892db.js → useChildElements-a68699b4.js} +1 -1
- package/dist/cjs/{useDemoBigStat-99093687.js → useDemoBigStat-426e3319.js} +4 -4
- package/dist/cjs/{useReferralTable-464dd3a0.js → useReferralTable-273bb515.js} +7 -7
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +4 -11
- package/dist/collection/components/sqm-empty/sqm-empty.js +1 -21
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +9 -3
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +1 -2
- package/dist/collection/components/sqm-referral-table/mockReferralData.js +0 -123
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +3 -2
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +4 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.js +58 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-customer-note-column.js +98 -0
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -3
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +3 -0
- package/dist/collection/components/sqm-tab/sqm-tab.js +0 -5
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +3 -0
- package/dist/collection/tables/GenericTableView.js +3 -1
- package/dist/esm/{GenericTableView-0c811879.js → GenericTableView-4a1292db.js} +3 -1
- package/dist/esm/{ShadowViewAddon-67cc91dc.js → ShadowViewAddon-e5ca5d7a.js} +19 -13
- package/dist/esm/{global-7d4eb5e5.js → global-a8e9f822.js} +1 -1
- package/dist/esm/{index.module-aac201f3.js → index.module-2821f17d.js} +6281 -6281
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-544e9c59.js → re-render-07721d1b.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-big-stat.entry.js +3 -3
- package/dist/esm/{sqm-brand_27.entry.js → sqm-brand_29.entry.js} +81 -60
- package/dist/esm/{sqm-empty_7.entry.js → sqm-empty_5.entry.js} +6 -34
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-name-fields.entry.js +2 -2
- package/dist/esm/{sqm-navigation-sidebar-item-view-df7cc698.js → sqm-navigation-sidebar-item-view-9380a346.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-86e3ff2e.js → sqm-portal-email-verification-view-cf3a4840.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +6 -6
- package/dist/esm/{sqm-portal-footer-view-d6a43c4d.js → sqm-portal-footer-view-ba9892f9.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-ae44e2bb.js → sqm-portal-profile-view-f795d0cd.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +7 -7
- package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
- package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
- package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
- package/dist/esm/sqm-referral-table_11.entry.js +10 -132
- package/dist/esm/sqm-refresh-button.entry.js +2 -2
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +22 -0
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +34 -0
- package/dist/esm/sqm-rewards-table_9.entry.js +14 -13
- package/dist/esm/sqm-stencilbook.entry.js +75 -70
- package/dist/esm/sqm-tab.entry.js +0 -3
- package/dist/esm/sqm-tabs.entry.js +2 -2
- package/dist/esm/{useChildElements-db935587.js → useChildElements-62af7349.js} +1 -1
- package/dist/esm/{useDemoBigStat-a4835c19.js → useDemoBigStat-b5a22d26.js} +4 -4
- package/dist/esm/{useReferralTable-15634a86.js → useReferralTable-43a3a215.js} +7 -7
- package/dist/esm-es5/{GenericTableView-0c811879.js → GenericTableView-4a1292db.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-e5ca5d7a.js +1 -0
- package/dist/esm-es5/{global-7d4eb5e5.js → global-a8e9f822.js} +1 -1
- package/dist/esm-es5/index.module-2821f17d.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-544e9c59.js → re-render-07721d1b.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-brand_29.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-df7cc698.js → sqm-navigation-sidebar-item-view-9380a346.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-86e3ff2e.js → sqm-portal-email-verification-view-cf3a4840.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-d6a43c4d.js → sqm-portal-footer-view-ba9892f9.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-ae44e2bb.js → sqm-portal-profile-view-f795d0cd.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_11.entry.js +1 -1
- package/dist/esm-es5/sqm-refresh-button.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -0
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -0
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/useChildElements-62af7349.js +1 -0
- package/dist/esm-es5/useDemoBigStat-b5a22d26.js +1 -0
- package/dist/esm-es5/useReferralTable-43a3a215.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-fcd096b3.entry.js → p-030f89b3.entry.js} +1 -1
- package/dist/mint-components/p-06763d29.entry.js +1 -0
- package/dist/mint-components/{p-3ef38b2e.js → p-09fbcba5.js} +1 -1
- package/dist/mint-components/{p-e82076e4.system.js → p-1122f7df.system.js} +1 -1
- package/dist/mint-components/{p-7e1afa8c.system.entry.js → p-1703d3c0.system.entry.js} +1 -1
- package/dist/mint-components/p-192f4931.system.entry.js +1 -0
- package/dist/mint-components/{p-a8141e7b.entry.js → p-19822c1b.entry.js} +1 -1
- package/dist/mint-components/{p-beac1a46.js → p-1af65647.js} +1 -1
- package/dist/mint-components/p-23b7aab8.entry.js +1 -0
- package/dist/mint-components/{p-e23aee93.system.entry.js → p-250d40f6.system.entry.js} +1 -1
- package/dist/mint-components/{p-1c3c2ddb.system.js → p-266268d2.system.js} +1 -1
- package/dist/mint-components/p-27daf6ab.system.entry.js +1 -0
- package/dist/mint-components/{p-b6375f45.system.entry.js → p-38b34432.system.entry.js} +1 -1
- package/dist/mint-components/p-3a0e33b9.entry.js +13 -0
- package/dist/mint-components/{p-4bb83ece.entry.js → p-3a349873.entry.js} +1 -1
- package/dist/mint-components/{p-4e0ce80b.js → p-4063dca2.js} +1 -1
- package/dist/mint-components/{p-fda350c6.entry.js → p-41a87a92.entry.js} +1 -1
- package/dist/mint-components/{p-5afd174d.js → p-458e44a5.js} +2 -2
- package/dist/mint-components/p-4b60eb5d.entry.js +1 -0
- package/dist/mint-components/{p-d264d1a0.system.js → p-4ceaa514.system.js} +1 -1
- package/dist/mint-components/{p-8f44832b.system.entry.js → p-4e4b69c2.system.entry.js} +1 -1
- package/dist/mint-components/p-4fb8cad9.entry.js +150 -0
- package/dist/mint-components/p-505d8965.system.entry.js +1 -0
- package/dist/mint-components/{p-4afe1b9c.entry.js → p-59afa159.entry.js} +1 -1
- package/dist/mint-components/{p-d2679942.system.js → p-59e4405d.system.js} +1 -1
- package/dist/mint-components/{p-91951a0a.system.entry.js → p-5da31edf.system.entry.js} +1 -1
- package/dist/mint-components/{p-7e955ed7.js → p-62dd50b3.js} +2 -2
- package/dist/mint-components/{p-ad9edc1d.js → p-66fc28d0.js} +1 -1
- package/dist/mint-components/p-680f7ea0.system.entry.js +1 -0
- package/dist/mint-components/p-6cc350b9.entry.js +1 -0
- package/dist/mint-components/p-6e5f2f7c.entry.js +93 -0
- package/dist/mint-components/{p-66ea5383.system.entry.js → p-75a78c16.system.entry.js} +1 -1
- package/dist/mint-components/p-77c4071b.entry.js +1 -0
- package/dist/mint-components/{p-d7736049.system.entry.js → p-7b854fc1.system.entry.js} +1 -1
- package/dist/mint-components/{p-1fbde87d.js → p-7e89b7ed.js} +1 -1
- package/dist/mint-components/p-820617d3.system.js +1 -0
- package/dist/mint-components/{p-4e5b972a.system.js → p-838242f3.system.js} +1 -1
- package/dist/mint-components/p-8a8d0514.system.js +1 -0
- package/dist/mint-components/{p-4ef20b4b.entry.js → p-94e10609.entry.js} +2 -2
- package/dist/mint-components/p-95a89867.js +1 -0
- package/dist/mint-components/{p-96e0913b.entry.js → p-996e20c4.entry.js} +1 -1
- package/dist/mint-components/{p-93e15034.entry.js → p-999a46af.entry.js} +1 -1
- package/dist/mint-components/{p-69303d97.system.js → p-9d467470.system.js} +1 -1
- package/dist/mint-components/{p-ae99111f.system.entry.js → p-9e2168f7.system.entry.js} +1 -1
- package/dist/mint-components/{p-fa4c7cd3.system.entry.js → p-9f0d9dfc.system.entry.js} +1 -1
- package/dist/mint-components/p-a13b5757.system.js +1 -0
- package/dist/mint-components/{p-da7c436f.system.entry.js → p-a62a0cf6.system.entry.js} +1 -1
- package/dist/mint-components/{p-d972a0cc.system.js → p-aa09f12b.system.js} +1 -1
- package/dist/mint-components/{p-49667de1.system.entry.js → p-b5c6ff52.system.entry.js} +1 -1
- package/dist/mint-components/{p-759df017.system.entry.js → p-b7e5ba0d.system.entry.js} +1 -1
- package/dist/mint-components/{p-20e8567f.entry.js → p-bca007f0.entry.js} +1 -1
- package/dist/mint-components/{p-d25bded1.system.entry.js → p-be02b2a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-72296718.system.entry.js → p-c00fd233.system.entry.js} +1 -1
- package/dist/mint-components/{p-75f54850.entry.js → p-c0693ddc.entry.js} +1 -1
- package/dist/mint-components/p-c5037c05.system.entry.js +1 -0
- package/dist/mint-components/{p-f6507695.system.entry.js → p-c5a656af.system.entry.js} +1 -1
- package/dist/mint-components/{p-1f5124fb.system.js → p-c5ce6c37.system.js} +1 -1
- package/dist/mint-components/{p-cf699d0e.system.entry.js → p-c7f81b0e.system.entry.js} +1 -1
- package/dist/mint-components/{p-c8aa6875.entry.js → p-cd69d4f6.entry.js} +2 -2
- package/dist/mint-components/p-cdebf9f7.system.entry.js +1 -0
- package/dist/mint-components/{p-087b15f9.system.js → p-cf9c3022.system.js} +1 -1
- package/dist/mint-components/p-d0c09868.js +1 -0
- package/dist/mint-components/p-d13b1d06.entry.js +1 -0
- package/dist/mint-components/p-d1ffec5b.entry.js +1 -0
- package/dist/mint-components/p-d42442f4.system.entry.js +1 -0
- package/dist/mint-components/p-d98083fb.entry.js +1 -0
- package/dist/mint-components/{p-9351348e.entry.js → p-db9e20a0.entry.js} +1 -1
- package/dist/mint-components/{p-c5314bbc.js → p-de2e871a.js} +1 -1
- package/dist/mint-components/p-dec7a657.entry.js +1 -0
- package/dist/mint-components/{p-62db6962.js → p-e15e8e89.js} +1 -1
- package/dist/mint-components/p-e1d1bbdc.system.entry.js +1 -0
- package/dist/mint-components/p-e6fac878.entry.js +1 -0
- package/dist/mint-components/{p-16023c39.system.entry.js → p-e89b298a.system.entry.js} +1 -1
- package/dist/mint-components/{p-55b6147d.js → p-ef030fdf.js} +1 -1
- package/dist/mint-components/p-f6855b3f.system.entry.js +1 -0
- package/dist/mint-components/{p-1204f7df.entry.js → p-f94c4847.entry.js} +1 -1
- package/dist/mint-components/p-f983083d.system.js +1 -0
- package/dist/types/components/sqm-empty/sqm-empty-view.d.ts +0 -1
- package/dist/types/components/sqm-empty/sqm-empty.d.ts +0 -4
- package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.d.ts +8 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-customer-note-column.d.ts +15 -0
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +0 -2
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +1 -0
- package/dist/types/components.d.ts +42 -8
- package/dist/types/saasquatch.d.ts +1 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-67cc91dc.js +0 -1
- package/dist/esm-es5/index.module-aac201f3.js +0 -1
- package/dist/esm-es5/sqm-brand_27.entry.js +0 -1
- package/dist/esm-es5/sqm-empty_7.entry.js +0 -1
- package/dist/esm-es5/useChildElements-db935587.js +0 -1
- package/dist/esm-es5/useDemoBigStat-a4835c19.js +0 -1
- package/dist/esm-es5/useReferralTable-15634a86.js +0 -1
- package/dist/mint-components/p-0aeaf674.system.entry.js +0 -1
- package/dist/mint-components/p-19d6938c.system.entry.js +0 -1
- package/dist/mint-components/p-282ead68.system.entry.js +0 -1
- package/dist/mint-components/p-3c39b94e.entry.js +0 -1
- package/dist/mint-components/p-3dbd3303.entry.js +0 -13
- package/dist/mint-components/p-40a1e537.entry.js +0 -150
- package/dist/mint-components/p-55f3d841.system.js +0 -1
- package/dist/mint-components/p-77ece1c3.system.entry.js +0 -1
- package/dist/mint-components/p-783c9b2f.entry.js +0 -1
- package/dist/mint-components/p-859a8ad4.entry.js +0 -1
- package/dist/mint-components/p-8da0d93b.system.entry.js +0 -1
- package/dist/mint-components/p-8ece5279.system.js +0 -1
- package/dist/mint-components/p-92db9e34.entry.js +0 -1
- package/dist/mint-components/p-a5f06774.system.entry.js +0 -1
- package/dist/mint-components/p-a7f6495f.entry.js +0 -90
- package/dist/mint-components/p-a95844a2.js +0 -1
- package/dist/mint-components/p-addbc4e1.entry.js +0 -1
- package/dist/mint-components/p-addc5905.entry.js +0 -1
- package/dist/mint-components/p-b67aa6c9.system.js +0 -1
- package/dist/mint-components/p-b83ee009.js +0 -1
- package/dist/mint-components/p-cab80b22.entry.js +0 -1
- package/dist/mint-components/p-eaffa09a.system.js +0 -1
- package/dist/mint-components/p-f3e14bb4.entry.js +0 -1
- package/dist/mint-components/p-f620b6a7.system.entry.js +0 -1
- package/shoelace/assets/icons/123.svg +0 -3
- package/shoelace/assets/icons/activity.svg +0 -3
- package/shoelace/assets/icons/apple.svg +0 -4
- package/shoelace/assets/icons/bandaid-fill.svg +0 -3
- package/shoelace/assets/icons/bandaid.svg +0 -4
- package/shoelace/assets/icons/bank.svg +0 -3
- package/shoelace/assets/icons/bank2.svg +0 -3
- package/shoelace/assets/icons/behance.svg +0 -3
- package/shoelace/assets/icons/bell-slash-fill.svg +0 -3
- package/shoelace/assets/icons/bell-slash.svg +0 -3
- package/shoelace/assets/icons/bluetooth.svg +0 -3
- package/shoelace/assets/icons/body-text.svg +0 -3
- package/shoelace/assets/icons/boombox-fill.svg +0 -4
- package/shoelace/assets/icons/boombox.svg +0 -6
- package/shoelace/assets/icons/boxes.svg +0 -3
- package/shoelace/assets/icons/cash-coin.svg +0 -6
- package/shoelace/assets/icons/check-lg.svg +0 -3
- package/shoelace/assets/icons/cloud-haze2.svg +0 -3
- package/shoelace/assets/icons/coin.svg +0 -5
- package/shoelace/assets/icons/currency-bitcoin.svg +0 -3
- package/shoelace/assets/icons/currency-dollar.svg +0 -3
- package/shoelace/assets/icons/currency-euro.svg +0 -3
- package/shoelace/assets/icons/currency-exchange.svg +0 -3
- package/shoelace/assets/icons/currency-pound.svg +0 -3
- package/shoelace/assets/icons/currency-yen.svg +0 -3
- package/shoelace/assets/icons/dash-lg.svg +0 -3
- package/shoelace/assets/icons/device-hdd-fill.svg +0 -4
- package/shoelace/assets/icons/device-hdd.svg +0 -5
- package/shoelace/assets/icons/device-ssd-fill.svg +0 -4
- package/shoelace/assets/icons/device-ssd.svg +0 -4
- package/shoelace/assets/icons/displayport-fill.svg +0 -3
- package/shoelace/assets/icons/displayport.svg +0 -4
- package/shoelace/assets/icons/dpad-fill.svg +0 -3
- package/shoelace/assets/icons/dpad.svg +0 -4
- package/shoelace/assets/icons/dribbble.svg +0 -3
- package/shoelace/assets/icons/ear-fill.svg +0 -3
- package/shoelace/assets/icons/ear.svg +0 -3
- package/shoelace/assets/icons/easel2-fill.svg +0 -4
- package/shoelace/assets/icons/easel2.svg +0 -3
- package/shoelace/assets/icons/easel3-fill.svg +0 -3
- package/shoelace/assets/icons/easel3.svg +0 -3
- package/shoelace/assets/icons/envelope-check-fill.svg +0 -4
- package/shoelace/assets/icons/envelope-check.svg +0 -4
- package/shoelace/assets/icons/envelope-dash-fill.svg +0 -4
- package/shoelace/assets/icons/envelope-dash.svg +0 -4
- package/shoelace/assets/icons/envelope-exclamation-fill.svg +0 -4
- package/shoelace/assets/icons/envelope-exclamation.svg +0 -4
- package/shoelace/assets/icons/envelope-plus-fill.svg +0 -4
- package/shoelace/assets/icons/envelope-plus.svg +0 -4
- package/shoelace/assets/icons/envelope-slash-fill.svg +0 -4
- package/shoelace/assets/icons/envelope-slash.svg +0 -4
- package/shoelace/assets/icons/envelope-x-fill.svg +0 -4
- package/shoelace/assets/icons/envelope-x.svg +0 -4
- package/shoelace/assets/icons/ethernet.svg +0 -4
- package/shoelace/assets/icons/exclamation-lg.svg +0 -3
- package/shoelace/assets/icons/explicit-fill.svg +0 -3
- package/shoelace/assets/icons/explicit.svg +0 -4
- package/shoelace/assets/icons/fan.svg +0 -4
- package/shoelace/assets/icons/file-earmark-pdf-fill.svg +0 -4
- package/shoelace/assets/icons/file-earmark-pdf.svg +0 -4
- package/shoelace/assets/icons/file-pdf-fill.svg +0 -4
- package/shoelace/assets/icons/file-pdf.svg +0 -4
- package/shoelace/assets/icons/fingerprint.svg +0 -7
- package/shoelace/assets/icons/gender-ambiguous.svg +0 -3
- package/shoelace/assets/icons/gender-female.svg +0 -3
- package/shoelace/assets/icons/gender-male.svg +0 -3
- package/shoelace/assets/icons/gender-trans.svg +0 -3
- package/shoelace/assets/icons/git.svg +0 -3
- package/shoelace/assets/icons/gpu-card.svg +0 -5
- package/shoelace/assets/icons/graph-down-arrow.svg +0 -3
- package/shoelace/assets/icons/graph-up-arrow.svg +0 -3
- package/shoelace/assets/icons/hdmi-fill.svg +0 -3
- package/shoelace/assets/icons/hdmi.svg +0 -4
- package/shoelace/assets/icons/headset-vr.svg +0 -4
- package/shoelace/assets/icons/hypnotize.svg +0 -4
- package/shoelace/assets/icons/infinity.svg +0 -3
- package/shoelace/assets/icons/info-lg.svg +0 -3
- package/shoelace/assets/icons/line.svg +0 -3
- package/shoelace/assets/icons/list-columns-reverse.svg +0 -3
- package/shoelace/assets/icons/list-columns.svg +0 -3
- package/shoelace/assets/icons/magic.svg +0 -3
- package/shoelace/assets/icons/mastodon.svg +0 -3
- package/shoelace/assets/icons/medium.svg +0 -3
- package/shoelace/assets/icons/memory.svg +0 -3
- package/shoelace/assets/icons/messenger.svg +0 -3
- package/shoelace/assets/icons/meta.svg +0 -3
- package/shoelace/assets/icons/microsoft.svg +0 -3
- package/shoelace/assets/icons/modem-fill.svg +0 -3
- package/shoelace/assets/icons/modem.svg +0 -4
- package/shoelace/assets/icons/mortarboard-fill.svg +0 -4
- package/shoelace/assets/icons/mortarboard.svg +0 -4
- package/shoelace/assets/icons/motherboard-fill.svg +0 -4
- package/shoelace/assets/icons/motherboard.svg +0 -4
- package/shoelace/assets/icons/nintendo-switch.svg +0 -4
- package/shoelace/assets/icons/optical-audio-fill.svg +0 -4
- package/shoelace/assets/icons/optical-audio.svg +0 -5
- package/shoelace/assets/icons/paypal.svg +0 -3
- package/shoelace/assets/icons/pc-display-horizontal.svg +0 -3
- package/shoelace/assets/icons/pc-display.svg +0 -3
- package/shoelace/assets/icons/pc-horizontal.svg +0 -3
- package/shoelace/assets/icons/pc.svg +0 -3
- package/shoelace/assets/icons/pci-card.svg +0 -4
- package/shoelace/assets/icons/person-rolodex.svg +0 -4
- package/shoelace/assets/icons/person-video.svg +0 -4
- package/shoelace/assets/icons/person-video2.svg +0 -4
- package/shoelace/assets/icons/person-video3.svg +0 -4
- package/shoelace/assets/icons/person-workspace.svg +0 -4
- package/shoelace/assets/icons/piggy-bank-fill.svg +0 -3
- package/shoelace/assets/icons/piggy-bank.svg +0 -4
- package/shoelace/assets/icons/pin-map-fill.svg +0 -4
- package/shoelace/assets/icons/pin-map.svg +0 -4
- package/shoelace/assets/icons/pinterest.svg +0 -3
- package/shoelace/assets/icons/playstation.svg +0 -3
- package/shoelace/assets/icons/plus-lg.svg +0 -3
- package/shoelace/assets/icons/plus-slash-minus.svg +0 -3
- package/shoelace/assets/icons/projector-fill.svg +0 -3
- package/shoelace/assets/icons/projector.svg +0 -4
- package/shoelace/assets/icons/qr-code-scan.svg +0 -7
- package/shoelace/assets/icons/qr-code.svg +0 -7
- package/shoelace/assets/icons/question-lg.svg +0 -3
- package/shoelace/assets/icons/quora.svg +0 -3
- package/shoelace/assets/icons/quote.svg +0 -3
- package/shoelace/assets/icons/radioactive.svg +0 -4
- package/shoelace/assets/icons/recycle.svg +0 -3
- package/shoelace/assets/icons/reddit.svg +0 -4
- package/shoelace/assets/icons/robot.svg +0 -4
- package/shoelace/assets/icons/router-fill.svg +0 -6
- package/shoelace/assets/icons/router.svg +0 -6
- package/shoelace/assets/icons/safe-fill.svg +0 -4
- package/shoelace/assets/icons/safe.svg +0 -4
- package/shoelace/assets/icons/safe2-fill.svg +0 -4
- package/shoelace/assets/icons/safe2.svg +0 -4
- package/shoelace/assets/icons/sd-card-fill.svg +0 -3
- package/shoelace/assets/icons/sd-card.svg +0 -4
- package/shoelace/assets/icons/send-check-fill.svg +0 -4
- package/shoelace/assets/icons/send-check.svg +0 -4
- package/shoelace/assets/icons/send-dash-fill.svg +0 -4
- package/shoelace/assets/icons/send-dash.svg +0 -4
- package/shoelace/assets/icons/send-exclamation-fill.svg +0 -4
- package/shoelace/assets/icons/send-exclamation.svg +0 -4
- package/shoelace/assets/icons/send-fill.svg +0 -3
- package/shoelace/assets/icons/send-plus-fill.svg +0 -4
- package/shoelace/assets/icons/send-plus.svg +0 -4
- package/shoelace/assets/icons/send-slash-fill.svg +0 -4
- package/shoelace/assets/icons/send-slash.svg +0 -4
- package/shoelace/assets/icons/send-x-fill.svg +0 -4
- package/shoelace/assets/icons/send-x.svg +0 -4
- package/shoelace/assets/icons/send.svg +0 -3
- package/shoelace/assets/icons/signal.svg +0 -3
- package/shoelace/assets/icons/skype.svg +0 -3
- package/shoelace/assets/icons/slash-lg.svg +0 -3
- package/shoelace/assets/icons/snapchat.svg +0 -3
- package/shoelace/assets/icons/spotify.svg +0 -3
- package/shoelace/assets/icons/stack-overflow.svg +0 -4
- package/shoelace/assets/icons/steam.svg +0 -4
- package/shoelace/assets/icons/strava.svg +0 -3
- package/shoelace/assets/icons/terminal-dash.svg +0 -4
- package/shoelace/assets/icons/terminal-plus.svg +0 -4
- package/shoelace/assets/icons/terminal-split.svg +0 -4
- package/shoelace/assets/icons/terminal-x.svg +0 -4
- package/shoelace/assets/icons/thunderbolt-fill.svg +0 -3
- package/shoelace/assets/icons/thunderbolt.svg +0 -4
- package/shoelace/assets/icons/ticket-detailed-fill.svg +0 -3
- package/shoelace/assets/icons/ticket-detailed.svg +0 -4
- package/shoelace/assets/icons/ticket-fill.svg +0 -3
- package/shoelace/assets/icons/ticket-perforated-fill.svg +0 -3
- package/shoelace/assets/icons/ticket-perforated.svg +0 -4
- package/shoelace/assets/icons/ticket.svg +0 -3
- package/shoelace/assets/icons/tiktok.svg +0 -3
- package/shoelace/assets/icons/translate.svg +0 -4
- package/shoelace/assets/icons/usb-c-fill.svg +0 -3
- package/shoelace/assets/icons/usb-c.svg +0 -4
- package/shoelace/assets/icons/usb-drive-fill.svg +0 -3
- package/shoelace/assets/icons/usb-drive.svg +0 -3
- package/shoelace/assets/icons/usb-fill.svg +0 -3
- package/shoelace/assets/icons/usb-micro-fill.svg +0 -3
- package/shoelace/assets/icons/usb-micro.svg +0 -4
- package/shoelace/assets/icons/usb-mini-fill.svg +0 -3
- package/shoelace/assets/icons/usb-mini.svg +0 -4
- package/shoelace/assets/icons/usb-plug-fill.svg +0 -3
- package/shoelace/assets/icons/usb-plug.svg +0 -3
- package/shoelace/assets/icons/usb-symbol.svg +0 -3
- package/shoelace/assets/icons/usb.svg +0 -4
- package/shoelace/assets/icons/vimeo.svg +0 -3
- package/shoelace/assets/icons/webcam-fill.svg +0 -4
- package/shoelace/assets/icons/webcam.svg +0 -4
- package/shoelace/assets/icons/window-dash.svg +0 -5
- package/shoelace/assets/icons/window-desktop.svg +0 -4
- package/shoelace/assets/icons/window-fullscreen.svg +0 -4
- package/shoelace/assets/icons/window-plus.svg +0 -5
- package/shoelace/assets/icons/window-split.svg +0 -4
- package/shoelace/assets/icons/window-stack.svg +0 -4
- package/shoelace/assets/icons/window-x.svg +0 -5
- package/shoelace/assets/icons/windows.svg +0 -3
- package/shoelace/assets/icons/wordpress.svg +0 -5
- package/shoelace/assets/icons/x-lg.svg +0 -4
- package/shoelace/assets/icons/xbox.svg +0 -3
- package/shoelace/assets/icons/yin-yang.svg +0 -4
- package/shoelace/themes/themes/dark.styles.d.ts +0 -2
- package/shoelace/themes/themes/dark.styles.js +0 -531
- package/shoelace/themes/themes/light.css +0 -439
- package/shoelace/themes/themes/light.styles.d.ts +0 -2
- package/shoelace/themes/themes/light.styles.js +0 -531
|
@@ -6,7 +6,7 @@ import { EmptyStateView } from "./sqm-empty-view";
|
|
|
6
6
|
export class HeroImage {
|
|
7
7
|
render() {
|
|
8
8
|
return (h(Host, { slot: "empty" },
|
|
9
|
-
h(EmptyStateView, { emptyStateImage: this.emptyStateImage, emptyStateHeader: this.emptyStateHeader, emptyStateText: this.emptyStateText
|
|
9
|
+
h(EmptyStateView, { emptyStateImage: this.emptyStateImage, emptyStateHeader: this.emptyStateHeader, emptyStateText: this.emptyStateText })));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "sqm-empty"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -73,26 +73,6 @@ export class HeroImage {
|
|
|
73
73
|
},
|
|
74
74
|
"attribute": "empty-state-text",
|
|
75
75
|
"reflect": false
|
|
76
|
-
},
|
|
77
|
-
"table": {
|
|
78
|
-
"type": "boolean",
|
|
79
|
-
"mutable": false,
|
|
80
|
-
"complexType": {
|
|
81
|
-
"original": "boolean",
|
|
82
|
-
"resolved": "boolean",
|
|
83
|
-
"references": {}
|
|
84
|
-
},
|
|
85
|
-
"required": false,
|
|
86
|
-
"optional": false,
|
|
87
|
-
"docs": {
|
|
88
|
-
"tags": [{
|
|
89
|
-
"text": "Table Empty State",
|
|
90
|
-
"name": "uiName"
|
|
91
|
-
}],
|
|
92
|
-
"text": ""
|
|
93
|
-
},
|
|
94
|
-
"attribute": "table",
|
|
95
|
-
"reflect": false
|
|
96
76
|
}
|
|
97
77
|
}; }
|
|
98
78
|
}
|
|
@@ -52,6 +52,7 @@ export function LeaderboardView(props) {
|
|
|
52
52
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
53
53
|
const { states, data, elements } = props;
|
|
54
54
|
const { styles } = states;
|
|
55
|
+
console.log("LEADERBOARD PROPS", props);
|
|
55
56
|
if (states.loading)
|
|
56
57
|
return (h("div", { class: sheet.classes.Leaderboard },
|
|
57
58
|
h("style", { type: "text/css" },
|
|
@@ -59,6 +60,13 @@ export function LeaderboardView(props) {
|
|
|
59
60
|
vanillaStyle),
|
|
60
61
|
elements.loadingstate));
|
|
61
62
|
let userSeenFlag = false;
|
|
63
|
+
if (!states.hasLeaders) {
|
|
64
|
+
return (h("div", { class: sheet.classes.Leaderboard },
|
|
65
|
+
h("style", { type: "text/css" },
|
|
66
|
+
styleString,
|
|
67
|
+
vanillaStyle),
|
|
68
|
+
elements.empty));
|
|
69
|
+
}
|
|
62
70
|
return (h("div", { class: sheet.classes.Leaderboard },
|
|
63
71
|
h("style", { type: "text/css" },
|
|
64
72
|
styleString,
|
|
@@ -67,9 +75,7 @@ export function LeaderboardView(props) {
|
|
|
67
75
|
h("tr", null,
|
|
68
76
|
styles.showRank && h("th", { class: "Rank" }, styles.rankheading),
|
|
69
77
|
h("th", { class: "User" }, styles.usersheading),
|
|
70
|
-
h("th", { class: "Score" }, styles.statsheading)),
|
|
71
|
-
!states.hasLeaders && (h("tr", null,
|
|
72
|
-
h("td", { colSpan: 100 }, elements.empty))), (_a = data.leaderboard) === null || _a === void 0 ? void 0 :
|
|
78
|
+
h("th", { class: "Score" }, styles.statsheading)), (_a = data.leaderboard) === null || _a === void 0 ? void 0 :
|
|
73
79
|
_a.map((user) => {
|
|
74
80
|
var _a, _b;
|
|
75
81
|
if (user.rowNumber === ((_a = data.userRank) === null || _a === void 0 ? void 0 : _a.rowNumber))
|
|
@@ -43,8 +43,7 @@ export class Leaderboard {
|
|
|
43
43
|
const viewprops = isDemo()
|
|
44
44
|
? useLeaderboardDemo(demoProps)
|
|
45
45
|
: useLeaderboard(props);
|
|
46
|
-
return
|
|
47
|
-
h("slot", null)));
|
|
46
|
+
return h(LeaderboardView, Object.assign({}, viewprops));
|
|
48
47
|
}
|
|
49
48
|
static get is() { return "sqm-leaderboard"; }
|
|
50
49
|
static get properties() { return {
|
|
@@ -310,128 +310,5 @@ export default {
|
|
|
310
310
|
],
|
|
311
311
|
},
|
|
312
312
|
},
|
|
313
|
-
{
|
|
314
|
-
id: "5cae6a37cc540e209db44937",
|
|
315
|
-
referredUser: {
|
|
316
|
-
id: "5cae6a33e4b0d81c67b78e1e",
|
|
317
|
-
accountId: "41E0PY65021C3T5Z",
|
|
318
|
-
firstName: "Joe",
|
|
319
|
-
lastName: "Schmoe",
|
|
320
|
-
email: "joeschmoe.uexwltgh@mailosaur.io",
|
|
321
|
-
programGoals: [],
|
|
322
|
-
},
|
|
323
|
-
shareLinkUsed: null,
|
|
324
|
-
referralCodeUsed: "JIMBONEUTRON2",
|
|
325
|
-
moderationStatus: "PENDING",
|
|
326
|
-
dateConverted: null,
|
|
327
|
-
dateFraudChecksCompleted: null,
|
|
328
|
-
dateModerated: 1554934327291,
|
|
329
|
-
dateModified: 1554934327291,
|
|
330
|
-
dateReferralEnded: null,
|
|
331
|
-
dateReferralPaid: null,
|
|
332
|
-
dateReferralStarted: 1554934327291,
|
|
333
|
-
dateUserModified: null,
|
|
334
|
-
programId: "sam-partner-test-2",
|
|
335
|
-
program: {
|
|
336
|
-
id: "sam-partner-test-2",
|
|
337
|
-
name: "Partner Program 2.0",
|
|
338
|
-
},
|
|
339
|
-
rewards: [],
|
|
340
|
-
childNodes: {
|
|
341
|
-
data: [
|
|
342
|
-
{
|
|
343
|
-
data: {
|
|
344
|
-
id: "5cae6a37cc540e209db44954",
|
|
345
|
-
statuses: ["AVAILABLE"],
|
|
346
|
-
type: "PCT_DISCOUNT",
|
|
347
|
-
value: 50,
|
|
348
|
-
},
|
|
349
|
-
depth: 1,
|
|
350
|
-
},
|
|
351
|
-
],
|
|
352
|
-
},
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
id: "5cae6a37cc540e209db44937",
|
|
356
|
-
referredUser: {
|
|
357
|
-
id: "5cae6a33e4b0d81c67b78e1e",
|
|
358
|
-
accountId: "41E0PY65021C3T5Z",
|
|
359
|
-
firstName: "John",
|
|
360
|
-
lastName: "Smith",
|
|
361
|
-
email: "johnsmith.uexwltgh@mailosaur.io",
|
|
362
|
-
programGoals: [],
|
|
363
|
-
},
|
|
364
|
-
shareLinkUsed: null,
|
|
365
|
-
referralCodeUsed: "JIMBONEUTRON2",
|
|
366
|
-
moderationStatus: "PENDING",
|
|
367
|
-
dateConverted: null,
|
|
368
|
-
dateFraudChecksCompleted: null,
|
|
369
|
-
dateModerated: 1554934327291,
|
|
370
|
-
dateModified: 1554934327291,
|
|
371
|
-
dateReferralEnded: null,
|
|
372
|
-
dateReferralPaid: null,
|
|
373
|
-
dateReferralStarted: 1554934327291,
|
|
374
|
-
dateUserModified: null,
|
|
375
|
-
programId: "sam-partner-test-2",
|
|
376
|
-
program: {
|
|
377
|
-
id: "sam-partner-test-2",
|
|
378
|
-
name: "Partner Program 2.0",
|
|
379
|
-
},
|
|
380
|
-
rewards: [],
|
|
381
|
-
childNodes: {
|
|
382
|
-
data: [
|
|
383
|
-
{
|
|
384
|
-
data: {
|
|
385
|
-
id: "5cae6a37cc540e209db44954",
|
|
386
|
-
statuses: ["AVAILABLE"],
|
|
387
|
-
type: "PCT_DISCOUNT",
|
|
388
|
-
value: 50,
|
|
389
|
-
},
|
|
390
|
-
depth: 1,
|
|
391
|
-
},
|
|
392
|
-
],
|
|
393
|
-
},
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
id: "5cae6a37cc540e209db44937",
|
|
397
|
-
referredUser: {
|
|
398
|
-
id: "5cae6a33e4b0d81c67b78e1e",
|
|
399
|
-
accountId: "41E0PY65021C3T5Z",
|
|
400
|
-
firstName: "Charleston",
|
|
401
|
-
lastName: "Chew",
|
|
402
|
-
email: "charlestonchew.uexwltgh@mailosaur.io",
|
|
403
|
-
programGoals: [],
|
|
404
|
-
},
|
|
405
|
-
shareLinkUsed: null,
|
|
406
|
-
referralCodeUsed: "JIMBONEUTRON2",
|
|
407
|
-
moderationStatus: "PENDING",
|
|
408
|
-
dateConverted: 1554934550726,
|
|
409
|
-
dateFraudChecksCompleted: null,
|
|
410
|
-
dateModerated: 1554934327291,
|
|
411
|
-
dateModified: 1554934327291,
|
|
412
|
-
dateReferralEnded: null,
|
|
413
|
-
dateReferralPaid: null,
|
|
414
|
-
dateReferralStarted: 1554934327291,
|
|
415
|
-
dateUserModified: null,
|
|
416
|
-
programId: "sam-partner-test-2",
|
|
417
|
-
program: {
|
|
418
|
-
id: "sam-partner-test-2",
|
|
419
|
-
name: "Partner Program 2.0",
|
|
420
|
-
},
|
|
421
|
-
rewards: [],
|
|
422
|
-
childNodes: {
|
|
423
|
-
data: [
|
|
424
|
-
{
|
|
425
|
-
data: {
|
|
426
|
-
id: "5cae6a37cc540e209db44954",
|
|
427
|
-
statuses: ["AVAILABLE"],
|
|
428
|
-
type: "PCT_DISCOUNT",
|
|
429
|
-
value: 50,
|
|
430
|
-
},
|
|
431
|
-
depth: 1,
|
|
432
|
-
},
|
|
433
|
-
],
|
|
434
|
-
},
|
|
435
|
-
},
|
|
436
313
|
],
|
|
437
314
|
};
|
|
@@ -297,10 +297,11 @@ function useReferralTableDemo(props, emptyElement, loadingElement) {
|
|
|
297
297
|
const showReferrerRow = props.showReferrer &&
|
|
298
298
|
!!(mockReferralData === null || mockReferralData === void 0 ? void 0 : mockReferralData.referredByReferral.dateReferralStarted);
|
|
299
299
|
if (showReferrerRow) {
|
|
300
|
-
|
|
300
|
+
console.log("mock data", mockData.slice(-1));
|
|
301
|
+
componentData = mockData.slice(0, -1);
|
|
301
302
|
}
|
|
302
303
|
else {
|
|
303
|
-
componentData =
|
|
304
|
+
componentData = data;
|
|
304
305
|
}
|
|
305
306
|
// filter out loading and empty states from columns array
|
|
306
307
|
const columnComponents = components.filter((component) => component.slot !== "loading" && component.slot !== "empty");
|
|
@@ -13,6 +13,7 @@ const rewardsData = {
|
|
|
13
13
|
unit: "TESTUNIT",
|
|
14
14
|
name: null,
|
|
15
15
|
dateGiven: 1640038417468,
|
|
16
|
+
meta: { message: "***CUSTOMER NOTE MESSAGE***" },
|
|
16
17
|
dateExpires: null,
|
|
17
18
|
dateCancelled: null,
|
|
18
19
|
dateRedeemed: null,
|
|
@@ -222,6 +223,9 @@ export const StatusCellPendingUnhandled = () => {
|
|
|
222
223
|
export const DateCell = () => {
|
|
223
224
|
return (h("sqm-rewards-table-date-cell", { date: 1640038417468 }));
|
|
224
225
|
};
|
|
226
|
+
export const CustomerNoteCell = () => {
|
|
227
|
+
return (h("sqm-rewards-table-customer-note-cell", { note: rewardsData.meta.message }));
|
|
228
|
+
};
|
|
225
229
|
export const EmptyCell = () => {
|
|
226
230
|
return h("sqm-rewards-table-date-cell", null);
|
|
227
231
|
};
|
package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
|
+
import { Component, h, Prop, State } from "@stencil/core";
|
|
3
|
+
import { TextSpanView } from "../../sqm-text-span/sqm-text-span-view";
|
|
4
|
+
export class RewardTableCustomerNoteCell {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.ignored = true;
|
|
7
|
+
this.locale = "en";
|
|
8
|
+
withHooks(this);
|
|
9
|
+
}
|
|
10
|
+
disconnectedCallback() { }
|
|
11
|
+
render() {
|
|
12
|
+
const note = this.note;
|
|
13
|
+
console.log("THIS FROM NOTE CELL", this);
|
|
14
|
+
return h(TextSpanView, { type: "p" }, note);
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "sqm-rewards-table-customer-note-cell"; }
|
|
17
|
+
static get encapsulation() { return "shadow"; }
|
|
18
|
+
static get properties() { return {
|
|
19
|
+
"note": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"mutable": false,
|
|
22
|
+
"complexType": {
|
|
23
|
+
"original": "string",
|
|
24
|
+
"resolved": "string",
|
|
25
|
+
"references": {}
|
|
26
|
+
},
|
|
27
|
+
"required": false,
|
|
28
|
+
"optional": false,
|
|
29
|
+
"docs": {
|
|
30
|
+
"tags": [],
|
|
31
|
+
"text": ""
|
|
32
|
+
},
|
|
33
|
+
"attribute": "note",
|
|
34
|
+
"reflect": false
|
|
35
|
+
},
|
|
36
|
+
"locale": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"mutable": false,
|
|
39
|
+
"complexType": {
|
|
40
|
+
"original": "string",
|
|
41
|
+
"resolved": "string",
|
|
42
|
+
"references": {}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": ""
|
|
49
|
+
},
|
|
50
|
+
"attribute": "locale",
|
|
51
|
+
"reflect": false,
|
|
52
|
+
"defaultValue": "\"en\""
|
|
53
|
+
}
|
|
54
|
+
}; }
|
|
55
|
+
static get states() { return {
|
|
56
|
+
"ignored": {}
|
|
57
|
+
}; }
|
|
58
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
|
+
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
+
import { useRequestRerender } from "../../../tables/re-render";
|
|
4
|
+
/**
|
|
5
|
+
* @uiName Reward Table Customer Note Column
|
|
6
|
+
*/
|
|
7
|
+
export class RewardTableCustomerNoteColumn {
|
|
8
|
+
constructor() {
|
|
9
|
+
/**
|
|
10
|
+
* @uiName Customer Note Column Title
|
|
11
|
+
*/
|
|
12
|
+
this.columnTitle = "Customer note";
|
|
13
|
+
withHooks(this);
|
|
14
|
+
}
|
|
15
|
+
disconnectedCallback() { }
|
|
16
|
+
async renderCell(data, locale) {
|
|
17
|
+
var _a;
|
|
18
|
+
const reward = data === null || data === void 0 ? void 0 : data[0];
|
|
19
|
+
console.log("reward column - locale", { locale });
|
|
20
|
+
console.log("REWARD", reward);
|
|
21
|
+
return (h("sqm-rewards-table-customer-note-cell", { note: (_a = reward === null || reward === void 0 ? void 0 : reward.meta) === null || _a === void 0 ? void 0 : _a.message, locale: locale }));
|
|
22
|
+
}
|
|
23
|
+
async renderLabel() {
|
|
24
|
+
return this.columnTitle;
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
useRequestRerender([this.columnTitle]);
|
|
28
|
+
return h(Host, { style: { display: "none" } });
|
|
29
|
+
}
|
|
30
|
+
static get is() { return "sqm-rewards-table-customer-note-column"; }
|
|
31
|
+
static get encapsulation() { return "shadow"; }
|
|
32
|
+
static get properties() { return {
|
|
33
|
+
"columnTitle": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"mutable": false,
|
|
36
|
+
"complexType": {
|
|
37
|
+
"original": "string",
|
|
38
|
+
"resolved": "string",
|
|
39
|
+
"references": {}
|
|
40
|
+
},
|
|
41
|
+
"required": false,
|
|
42
|
+
"optional": true,
|
|
43
|
+
"docs": {
|
|
44
|
+
"tags": [{
|
|
45
|
+
"text": "Customer Note Column Title",
|
|
46
|
+
"name": "uiName"
|
|
47
|
+
}],
|
|
48
|
+
"text": ""
|
|
49
|
+
},
|
|
50
|
+
"attribute": "column-title",
|
|
51
|
+
"reflect": false,
|
|
52
|
+
"defaultValue": "\"Customer note\""
|
|
53
|
+
}
|
|
54
|
+
}; }
|
|
55
|
+
static get methods() { return {
|
|
56
|
+
"renderCell": {
|
|
57
|
+
"complexType": {
|
|
58
|
+
"signature": "(data: Reward[], locale: string) => Promise<any>",
|
|
59
|
+
"parameters": [{
|
|
60
|
+
"tags": [],
|
|
61
|
+
"text": ""
|
|
62
|
+
}, {
|
|
63
|
+
"tags": [],
|
|
64
|
+
"text": ""
|
|
65
|
+
}],
|
|
66
|
+
"references": {
|
|
67
|
+
"Promise": {
|
|
68
|
+
"location": "global"
|
|
69
|
+
},
|
|
70
|
+
"Reward": {
|
|
71
|
+
"location": "global"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"return": "Promise<any>"
|
|
75
|
+
},
|
|
76
|
+
"docs": {
|
|
77
|
+
"text": "",
|
|
78
|
+
"tags": []
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"renderLabel": {
|
|
82
|
+
"complexType": {
|
|
83
|
+
"signature": "() => Promise<string>",
|
|
84
|
+
"parameters": [],
|
|
85
|
+
"references": {
|
|
86
|
+
"Promise": {
|
|
87
|
+
"location": "global"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"return": "Promise<string>"
|
|
91
|
+
},
|
|
92
|
+
"docs": {
|
|
93
|
+
"text": "",
|
|
94
|
+
"tags": []
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}; }
|
|
98
|
+
}
|
|
@@ -267,15 +267,13 @@ function useRewardsTableDemo(props, emptyElement, loadingElement) {
|
|
|
267
267
|
const { data } = mockRewardData;
|
|
268
268
|
const components = useChildElements();
|
|
269
269
|
async function getComponentData(components) {
|
|
270
|
-
let componentData = data;
|
|
271
|
-
componentData = data.slice(0, props.perPage);
|
|
272
270
|
// filter out loading and empty states from columns array
|
|
273
271
|
const columnComponents = components.filter((component) => component.slot !== "loading" && component.slot !== "empty");
|
|
274
272
|
// get the column titles (renderLabel is asynchronous)
|
|
275
273
|
const columnsPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderLabel()));
|
|
276
274
|
// get the column cells (renderCell is asynchronous)
|
|
277
275
|
//@ts-ignore
|
|
278
|
-
const cellsPromise =
|
|
276
|
+
const cellsPromise = data === null || data === void 0 ? void 0 : data.map(async (r) => {
|
|
279
277
|
const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell([r], undefined)));
|
|
280
278
|
const cells = (await Promise.all(cellPromise));
|
|
281
279
|
return cells;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
1
|
import { Component, h, Prop } from "@stencil/core";
|
|
3
2
|
import { TabView } from "./sqm-tab-view";
|
|
4
3
|
export class Tab {
|
|
5
|
-
constructor() {
|
|
6
|
-
withHooks(this);
|
|
7
|
-
}
|
|
8
|
-
disconnectedCallback() { }
|
|
9
4
|
render() {
|
|
10
5
|
return (h(TabView, null,
|
|
11
6
|
h("slot", null)));
|
|
@@ -85,6 +85,9 @@ export function GenericTableView(props) {
|
|
|
85
85
|
};
|
|
86
86
|
const sheet = createStyleSheet(style);
|
|
87
87
|
const styleString = sheet.toString();
|
|
88
|
+
if (show === "empty") {
|
|
89
|
+
return elements.emptyElement;
|
|
90
|
+
}
|
|
88
91
|
return (h("div", null,
|
|
89
92
|
h("style", { type: "text/css" }, styleString),
|
|
90
93
|
h("table", { class: sheet.classes.Table },
|
|
@@ -92,7 +95,6 @@ export function GenericTableView(props) {
|
|
|
92
95
|
h("tr", null, columns === null || columns === void 0 ? void 0 : columns.map((column) => (h("th", null, column)))))),
|
|
93
96
|
h("tbody", null,
|
|
94
97
|
show === "loading" && elements.loadingElement,
|
|
95
|
-
show === "empty" && elements.emptyElement,
|
|
96
98
|
show === "rows" && (rows === null || rows === void 0 ? void 0 : rows.map((row, i) => {
|
|
97
99
|
console.log("ROW", row);
|
|
98
100
|
return (h("tr", { style: {
|
|
@@ -86,6 +86,9 @@ function GenericTableView(props) {
|
|
|
86
86
|
};
|
|
87
87
|
const sheet = createStyleSheet(style);
|
|
88
88
|
const styleString = sheet.toString();
|
|
89
|
+
if (show === "empty") {
|
|
90
|
+
return elements.emptyElement;
|
|
91
|
+
}
|
|
89
92
|
return (h("div", null,
|
|
90
93
|
h("style", { type: "text/css" }, styleString),
|
|
91
94
|
h("table", { class: sheet.classes.Table },
|
|
@@ -93,7 +96,6 @@ function GenericTableView(props) {
|
|
|
93
96
|
h("tr", null, columns === null || columns === void 0 ? void 0 : columns.map((column) => (h("th", null, column)))))),
|
|
94
97
|
h("tbody", null,
|
|
95
98
|
show === "loading" && elements.loadingElement,
|
|
96
|
-
show === "empty" && elements.emptyElement,
|
|
97
99
|
show === "rows" && (rows === null || rows === void 0 ? void 0 : rows.map((row, i) => {
|
|
98
100
|
console.log("ROW", row);
|
|
99
101
|
return (h("tr", { style: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, c as Host, d as getAssetPath, g as getElement } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState } from './stencil-hooks.module-acc8a613.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist, M,
|
|
3
|
+
import { i as intl } from './global-a8e9f822.js';
|
|
4
|
+
import { d as dist, M, n as ne, x, b as mn, D as De, f as D } from './index.module-2821f17d.js';
|
|
5
5
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-10353a39.js';
|
|
6
6
|
import { c as createStyleSheet } from './JSS-96eeab98.js';
|
|
7
7
|
import { l as luxon } from './luxon-f44215d9.js';
|
|
@@ -152,6 +152,7 @@ function LeaderboardView(props) {
|
|
|
152
152
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
153
153
|
const { states, data, elements } = props;
|
|
154
154
|
const { styles } = states;
|
|
155
|
+
console.log("LEADERBOARD PROPS", props);
|
|
155
156
|
if (states.loading)
|
|
156
157
|
return (h("div", { class: sheet$1.classes.Leaderboard },
|
|
157
158
|
h("style", { type: "text/css" },
|
|
@@ -159,6 +160,13 @@ function LeaderboardView(props) {
|
|
|
159
160
|
vanillaStyle),
|
|
160
161
|
elements.loadingstate));
|
|
161
162
|
let userSeenFlag = false;
|
|
163
|
+
if (!states.hasLeaders) {
|
|
164
|
+
return (h("div", { class: sheet$1.classes.Leaderboard },
|
|
165
|
+
h("style", { type: "text/css" },
|
|
166
|
+
styleString$1,
|
|
167
|
+
vanillaStyle),
|
|
168
|
+
elements.empty));
|
|
169
|
+
}
|
|
162
170
|
return (h("div", { class: sheet$1.classes.Leaderboard },
|
|
163
171
|
h("style", { type: "text/css" },
|
|
164
172
|
styleString$1,
|
|
@@ -167,9 +175,7 @@ function LeaderboardView(props) {
|
|
|
167
175
|
h("tr", null,
|
|
168
176
|
styles.showRank && h("th", { class: "Rank" }, styles.rankheading),
|
|
169
177
|
h("th", { class: "User" }, styles.usersheading),
|
|
170
|
-
h("th", { class: "Score" }, styles.statsheading)),
|
|
171
|
-
!states.hasLeaders && (h("tr", null,
|
|
172
|
-
h("td", { colSpan: 100 }, elements.empty))), (_a = data.leaderboard) === null || _a === void 0 ? void 0 :
|
|
178
|
+
h("th", { class: "Score" }, styles.statsheading)), (_a = data.leaderboard) === null || _a === void 0 ? void 0 :
|
|
173
179
|
_a.map((user) => {
|
|
174
180
|
var _a, _b;
|
|
175
181
|
if (user.rowNumber === ((_a = data.userRank) === null || _a === void 0 ? void 0 : _a.rowNumber))
|
|
@@ -318,10 +324,10 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
318
324
|
function useShareLink(props) {
|
|
319
325
|
var _a, _b;
|
|
320
326
|
const { programId = M() } = props;
|
|
321
|
-
const user =
|
|
322
|
-
const engagementMedium =
|
|
323
|
-
const { data } =
|
|
324
|
-
const [sendLoadEvent] =
|
|
327
|
+
const user = ne();
|
|
328
|
+
const engagementMedium = x();
|
|
329
|
+
const { data } = mn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
330
|
+
const [sendLoadEvent] = De(WIDGET_ENGAGEMENT_EVENT);
|
|
325
331
|
const shareString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink) !== null && _b !== void 0 ? _b :
|
|
326
332
|
// Shown during loading
|
|
327
333
|
"...";
|
|
@@ -407,16 +413,16 @@ function useShareButton(props) {
|
|
|
407
413
|
var _a, _b;
|
|
408
414
|
const { sharetitle, sharetext, medium } = props;
|
|
409
415
|
const programId = props.programId ? props.programId : M();
|
|
410
|
-
const user =
|
|
416
|
+
const user = ne();
|
|
411
417
|
const variables = {
|
|
412
|
-
engagementMedium:
|
|
418
|
+
engagementMedium: x(),
|
|
413
419
|
programId: programId,
|
|
414
420
|
shareMedium: medium.toUpperCase(),
|
|
415
421
|
};
|
|
416
422
|
// only queries if a programId is available
|
|
417
|
-
const res =
|
|
423
|
+
const res = mn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
418
424
|
const directLink = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink;
|
|
419
|
-
const environment =
|
|
425
|
+
const environment = D();
|
|
420
426
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
421
427
|
window.orientation === undefined) ||
|
|
422
428
|
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './stencil-hooks.module-acc8a613.js';
|
|
2
|
-
import { s as src, m as memoize, S } from './index.module-
|
|
2
|
+
import { s as src, m as memoize, S } from './index.module-2821f17d.js';
|
|
3
3
|
|
|
4
4
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
5
5
|
__assign = Object.assign || function(t) {
|