@saasquatch/mint-components 1.3.2-16 → 1.3.2-17
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-a85b8c8d.js → ShadowViewAddon-06ace999.js} +1 -1
- package/dist/cjs/{global-6223fe8f.js → global-2962ef95.js} +2 -2
- package/dist/cjs/{index.module-7dd4b981.js → index.module-6afe0caa.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-6111d4bd.js → re-render-5feb5c1f.js} +3 -3
- 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 +235 -177
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-leaderboard-rank-view-7dd44d62.js → sqm-leaderboard-rank-view-277ee4ed.js} +2 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +3 -3
- 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-6c7f78e6.js → sqm-navigation-sidebar-item-view-f2d6f26e.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-08d1848c.js → sqm-portal-email-verification-view-72c072c0.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-footer-view-69c73802.js → sqm-portal-footer-view-df68933d.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-14b41436.js → sqm-portal-profile-view-29351fd3.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-share-code.cjs.entry.js +1 -1
- package/dist/cjs/{useDemoBigStat-2786227e.js → useDemoBigStat-1ed13766.js} +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +6 -2
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +80 -62
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +81 -44
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +1 -0
- package/dist/collection/components/sqm-task-card/Matrix.js +4 -1
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +10 -10
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +4 -8
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +26 -22
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +9 -13
- package/dist/esm/{ShadowViewAddon-a3f510db.js → ShadowViewAddon-01127287.js} +1 -1
- package/dist/esm/{global-90da933f.js → global-011b8f35.js} +2 -2
- package/dist/esm/{index.module-90d2c3ad.js → index.module-9d3f0cd6.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-e06f2f7f.js → re-render-5eece794.js} +3 -3
- 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 +235 -177
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/{sqm-leaderboard-rank-view-47844836.js → sqm-leaderboard-rank-view-abd2a32b.js} +2 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +3 -3
- 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-f2304ad9.js → sqm-navigation-sidebar-item-view-5b2619a5.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-8cefe480.js → sqm-portal-email-verification-view-294429a1.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-0f4266d5.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-b67467b4.js → sqm-portal-profile-view-4305c000.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-referral-table-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
- package/dist/esm/sqm-share-code.entry.js +1 -1
- package/dist/esm/{useDemoBigStat-c3b955b7.js → useDemoBigStat-204fc34c.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-a3f510db.js → ShadowViewAddon-01127287.js} +1 -1
- package/dist/esm-es5/{global-90da933f.js → global-011b8f35.js} +2 -2
- package/dist/esm-es5/{index.module-90d2c3ad.js → index.module-9d3f0cd6.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-e06f2f7f.js → re-render-5eece794.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_30.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-47844836.js → sqm-leaderboard-rank-view-abd2a32b.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-f2304ad9.js → sqm-navigation-sidebar-item-view-5b2619a5.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-8cefe480.js → sqm-portal-email-verification-view-294429a1.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-0f4266d5.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-b67467b4.js → sqm-portal-profile-view-4305c000.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-c3b955b7.js → useDemoBigStat-204fc34c.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-223b42bd.system.entry.js → p-01418ed6.system.entry.js} +1 -1
- package/dist/mint-components/{p-db2e4c42.js → p-0c043241.js} +1 -1
- package/dist/mint-components/{p-be2738b0.system.entry.js → p-11207a1e.system.entry.js} +1 -1
- package/dist/mint-components/{p-69bcf4fa.system.entry.js → p-119abcad.system.entry.js} +1 -1
- package/dist/mint-components/{p-6e245fa3.system.entry.js → p-141bd369.system.entry.js} +1 -1
- package/dist/mint-components/{p-3ce2fb83.system.js → p-1555800c.system.js} +1 -1
- package/dist/mint-components/{p-160bd62f.entry.js → p-1e0b2fee.entry.js} +1 -1
- package/dist/mint-components/{p-16f5a7cb.system.js → p-215521e1.system.js} +1 -1
- package/dist/mint-components/{p-b608f7a4.system.js → p-21d39dfd.system.js} +1 -1
- package/dist/mint-components/{p-221a4097.entry.js → p-22307e8a.entry.js} +1 -1
- package/dist/mint-components/p-2885425e.entry.js +1 -0
- package/dist/mint-components/{p-46a4269a.js → p-30fa3b36.js} +1 -1
- package/dist/mint-components/{p-44d0fc80.system.entry.js → p-32920ce3.system.entry.js} +1 -1
- package/dist/mint-components/p-331bdc2a.system.js +1 -0
- package/dist/mint-components/p-36a7c338.entry.js +1 -0
- package/dist/mint-components/{p-24b3c6f0.system.entry.js → p-384a10f9.system.entry.js} +1 -1
- package/dist/mint-components/{p-6882070c.js → p-3c804bb7.js} +1 -1
- package/dist/mint-components/{p-723ebe45.entry.js → p-48687d52.entry.js} +1 -1
- package/dist/mint-components/{p-8435a22d.entry.js → p-4a814c77.entry.js} +1 -1
- package/dist/mint-components/{p-0eb3e89c.js → p-4aee33c0.js} +1 -1
- package/dist/mint-components/{p-304e6c82.system.entry.js → p-52f6bff4.system.entry.js} +1 -1
- package/dist/mint-components/{p-4052b948.system.entry.js → p-5741ae7c.system.entry.js} +1 -1
- package/dist/mint-components/{p-b8bd2607.entry.js → p-5a232b8a.entry.js} +1 -1
- package/dist/mint-components/{p-e6dbc0cc.entry.js → p-5d6fe62d.entry.js} +10 -10
- package/dist/mint-components/p-677a7f32.entry.js +1 -0
- package/dist/mint-components/{p-563253e8.js → p-6a95dcb9.js} +1 -1
- package/dist/mint-components/{p-45c752a0.entry.js → p-6fa844d9.entry.js} +1 -1
- package/dist/mint-components/p-7525512d.entry.js +1 -0
- package/dist/mint-components/{p-e7f633b9.system.js → p-79509c4d.system.js} +1 -1
- package/dist/mint-components/{p-d174d0bc.system.entry.js → p-7960b101.system.entry.js} +1 -1
- package/dist/mint-components/{p-dc603d08.system.entry.js → p-7d024241.system.entry.js} +1 -1
- package/dist/mint-components/{p-396bf448.system.entry.js → p-7d529d71.system.entry.js} +1 -1
- package/dist/mint-components/p-80a75084.system.entry.js +1 -0
- package/dist/mint-components/{p-3d856985.entry.js → p-80bce3c3.entry.js} +1 -1
- package/dist/mint-components/{p-224504ad.js → p-8583e637.js} +1 -1
- package/dist/mint-components/{p-a6094ff9.system.js → p-8b6d1860.system.js} +1 -1
- package/dist/mint-components/{p-33c5ffb7.entry.js → p-8cfb9e39.entry.js} +1 -1
- package/dist/mint-components/{p-f90486ca.js → p-8e312ded.js} +1 -1
- package/dist/mint-components/{p-cca9026f.system.entry.js → p-8e4f22e9.system.entry.js} +1 -1
- package/dist/mint-components/{p-3397167c.entry.js → p-90c50d10.entry.js} +1 -1
- package/dist/mint-components/{p-73148868.system.entry.js → p-97d23817.system.entry.js} +1 -1
- package/dist/mint-components/p-9f768013.system.entry.js +1 -0
- package/dist/mint-components/{p-f17050de.entry.js → p-a193c9f5.entry.js} +1 -1
- package/dist/mint-components/{p-24c9a599.system.entry.js → p-a2591521.system.entry.js} +1 -1
- package/dist/mint-components/{p-67ae18d1.system.entry.js → p-ab23b5bf.system.entry.js} +1 -1
- package/dist/mint-components/{p-9c554ca0.system.js → p-ae2df320.system.js} +1 -1
- package/dist/mint-components/{p-07c924fa.system.js → p-b05f8e96.system.js} +1 -1
- package/dist/mint-components/{p-9d6dbb2d.entry.js → p-b0d61f59.entry.js} +1 -1
- package/dist/mint-components/{p-1c8b0290.entry.js → p-bfcb4f0e.entry.js} +1 -1
- package/dist/mint-components/{p-55508395.system.entry.js → p-c19f8f68.system.entry.js} +1 -1
- package/dist/mint-components/{p-1dcdca58.system.entry.js → p-c2bca803.system.entry.js} +1 -1
- package/dist/mint-components/p-c3f9d0c7.entry.js +1 -0
- package/dist/mint-components/{p-d35b0366.js → p-c652d06a.js} +1 -1
- package/dist/mint-components/{p-412a9226.system.entry.js → p-ce5f4a12.system.entry.js} +1 -1
- package/dist/mint-components/{p-6bf0a4d9.system.entry.js → p-d0de3d4e.system.entry.js} +1 -1
- package/dist/mint-components/{p-c79c608d.system.entry.js → p-d20dd7c0.system.entry.js} +1 -1
- package/dist/mint-components/{p-c6114bfe.system.js → p-d58e79de.system.js} +1 -1
- package/dist/mint-components/{p-a2c3cff3.js → p-dc5eb6d2.js} +1 -1
- package/dist/mint-components/{p-b1bb07db.entry.js → p-dff4cca1.entry.js} +1 -1
- package/dist/mint-components/p-ee4c23e7.entry.js +1 -0
- package/dist/mint-components/{p-3b97aed8.system.js → p-ef5449f1.system.js} +1 -1
- package/dist/mint-components/{p-60855d33.system.js → p-f47c2e07.system.js} +1 -1
- package/dist/mint-components/p-f8e35b7f.js +1 -0
- package/dist/mint-components/{p-52802c88.entry.js → p-fc8bfc97.entry.js} +2 -2
- package/dist/mint-components/{p-1a09e4e1.system.entry.js → p-fdba580a.system.entry.js} +1 -1
- package/dist/mint-components/{p-a4c2c7ed.entry.js → p-fe97f081.entry.js} +1 -1
- package/dist/mint-components/p-fffb1f55.entry.js +9 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +2 -1
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +32 -2
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +2 -2
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +4 -8
- package/dist/types/components.d.ts +14 -14
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-0e35cbd8.system.entry.js +0 -1
- package/dist/mint-components/p-20d41ab1.entry.js +0 -1
- package/dist/mint-components/p-29fab29b.entry.js +0 -1
- package/dist/mint-components/p-5480e4ee.entry.js +0 -1
- package/dist/mint-components/p-883a32e7.entry.js +0 -1
- package/dist/mint-components/p-9e4fee30.system.entry.js +0 -1
- package/dist/mint-components/p-ade44a4e.entry.js +0 -1
- package/dist/mint-components/p-cd410a05.entry.js +0 -9
- package/dist/mint-components/p-cdeae699.system.js +0 -1
- package/dist/mint-components/p-d21e0dbd.js +0 -1
- package/dist/mint-components/p-fce1dbf6.entry.js +0 -1
package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js
CHANGED
|
@@ -2,6 +2,7 @@ import { getAssetPath, h } from "@stencil/core";
|
|
|
2
2
|
import jss from "jss";
|
|
3
3
|
import preset from "jss-preset-default";
|
|
4
4
|
import { intl } from "../../global/global";
|
|
5
|
+
import { HostBlock } from "../../global/mixins";
|
|
5
6
|
import { ProgressBar } from "./progressBar";
|
|
6
7
|
import { ExchangeArrows, CheckMark } from "./SVGs";
|
|
7
8
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
@@ -11,7 +12,9 @@ const stageProgressList = {
|
|
|
11
12
|
confirmation: "Confirm",
|
|
12
13
|
};
|
|
13
14
|
export function RewardExchangeView(props) {
|
|
15
|
+
console.log(props);
|
|
14
16
|
const style = {
|
|
17
|
+
HostBlock: HostBlock,
|
|
15
18
|
Container: {
|
|
16
19
|
padding: "var(--sl-spacing-medium)",
|
|
17
20
|
position: "relative",
|
|
@@ -38,6 +41,34 @@ export function RewardExchangeView(props) {
|
|
|
38
41
|
display: "flex",
|
|
39
42
|
width: "100%",
|
|
40
43
|
},
|
|
44
|
+
"& .text-area": {
|
|
45
|
+
textAlign: "left",
|
|
46
|
+
padding: "8px",
|
|
47
|
+
},
|
|
48
|
+
"& .title": {
|
|
49
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
50
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
51
|
+
},
|
|
52
|
+
"& .amount": {
|
|
53
|
+
fontSize: "var(--sl-font-size-small)",
|
|
54
|
+
},
|
|
55
|
+
"& .error": {
|
|
56
|
+
fontSize: "var(--sl-font-size-small)",
|
|
57
|
+
color: "var(--sl-color-warning-500)",
|
|
58
|
+
},
|
|
59
|
+
"& .selected-outline": {
|
|
60
|
+
width: "18px",
|
|
61
|
+
height: "18px",
|
|
62
|
+
borderRadius: "50%",
|
|
63
|
+
background: "var(--sl-color-primary-500)",
|
|
64
|
+
position: "relative",
|
|
65
|
+
margin: "-9px",
|
|
66
|
+
left: "100%",
|
|
67
|
+
},
|
|
68
|
+
"& .selected-checkmark": {
|
|
69
|
+
position: "relative",
|
|
70
|
+
top: "-6px",
|
|
71
|
+
},
|
|
41
72
|
},
|
|
42
73
|
Drawer: {
|
|
43
74
|
"&::part(base)": {
|
|
@@ -55,7 +86,9 @@ export function RewardExchangeView(props) {
|
|
|
55
86
|
FullImage: {
|
|
56
87
|
objectFit: "contain",
|
|
57
88
|
maxWidth: "100%",
|
|
58
|
-
height: "
|
|
89
|
+
height: "150px",
|
|
90
|
+
display: "flex",
|
|
91
|
+
margin: "0 auto",
|
|
59
92
|
},
|
|
60
93
|
PreviewImage: {
|
|
61
94
|
objectFit: "contain",
|
|
@@ -111,24 +144,30 @@ export function RewardExchangeView(props) {
|
|
|
111
144
|
},
|
|
112
145
|
KutayButton: {
|
|
113
146
|
display: "flex",
|
|
114
|
-
flexWrap: "wrap",
|
|
147
|
+
flexWrap: "wrap-reverse",
|
|
115
148
|
margin: "var(--sl-spacing-medium) 0",
|
|
116
149
|
"& .cancel": {
|
|
117
|
-
width: "20%",
|
|
118
150
|
marginLeft: "auto",
|
|
119
151
|
marginRight: "var(--sl-spacing-medium)",
|
|
120
152
|
"&::part(base)": {
|
|
121
153
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
122
154
|
color: "var(--sl-color-neutral-1000)",
|
|
123
155
|
},
|
|
156
|
+
"@media (max-width: 1024px)": {
|
|
157
|
+
width: "100%",
|
|
158
|
+
marginRight: "0",
|
|
159
|
+
},
|
|
124
160
|
},
|
|
125
161
|
"& .continue": {
|
|
126
|
-
width: "20%",
|
|
127
162
|
"&::part(base)": {
|
|
128
|
-
background: "var(--sl-color-
|
|
163
|
+
background: "var(--sl-color-primary-500)",
|
|
164
|
+
borderColor: "var(--sl-color-primary-500)",
|
|
129
165
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
130
166
|
color: "var(--sl-color-neutral-0)",
|
|
131
167
|
},
|
|
168
|
+
"@media (max-width: 1024px)": {
|
|
169
|
+
width: "100%",
|
|
170
|
+
},
|
|
132
171
|
},
|
|
133
172
|
},
|
|
134
173
|
};
|
|
@@ -142,7 +181,7 @@ export function RewardExchangeView(props) {
|
|
|
142
181
|
var _a, _b;
|
|
143
182
|
const item = states.selectedItem;
|
|
144
183
|
if (!item || (item === null || item === void 0 ? void 0 : item.ruleType) === "FIXED_GLOBAL_REWARD")
|
|
145
|
-
return h("span", null);
|
|
184
|
+
return h("span", null, item === null || item === void 0 ? void 0 : item.prettySourceValue);
|
|
146
185
|
if (!((_a = item.steps) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
147
186
|
return h("p", null,
|
|
148
187
|
"Not enough ",
|
|
@@ -155,14 +194,19 @@ export function RewardExchangeView(props) {
|
|
|
155
194
|
amount: (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.sourceValue,
|
|
156
195
|
selectedStep: (_e = (_d = e.detail) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.value,
|
|
157
196
|
});
|
|
158
|
-
} }, (_b = item.steps) === null || _b === void 0 ? void 0 : _b.map((step) =>
|
|
159
|
-
|
|
160
|
-
h("
|
|
161
|
-
step.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
197
|
+
} }, (_b = item.steps) === null || _b === void 0 ? void 0 : _b.map((step) => {
|
|
198
|
+
var _a, _b;
|
|
199
|
+
return (h("sl-menu-item", { value: step, disabled: !step.available },
|
|
200
|
+
step.prettyDestinationValue,
|
|
201
|
+
h("div", { slot: "suffix", style: { fontSize: "75%", float: "right" } },
|
|
202
|
+
step.prettySourceValue,
|
|
203
|
+
step.unavailableReasonCode && (h("p", { style: { fontSize: "70%", color: "#F2994A" } }, intl.formatMessage({
|
|
204
|
+
id: "unavailableCode",
|
|
205
|
+
defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
|
|
206
|
+
}, {
|
|
207
|
+
unavailableReason: step.unavailableReason || step.unavailableReasonCode,
|
|
208
|
+
}))))));
|
|
209
|
+
})));
|
|
166
210
|
}
|
|
167
211
|
function chooseReward() {
|
|
168
212
|
var _a;
|
|
@@ -173,6 +217,7 @@ export function RewardExchangeView(props) {
|
|
|
173
217
|
gap: "20px",
|
|
174
218
|
gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
|
|
175
219
|
} }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
220
|
+
var _a, _b;
|
|
176
221
|
const style = {
|
|
177
222
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
178
223
|
? "0 0 0 2px var(--sl-color-primary-500)"
|
|
@@ -189,36 +234,21 @@ export function RewardExchangeView(props) {
|
|
|
189
234
|
return (h("div", { key: item.key, class: item.available ? sheet.classes.CardContainer : "", style: style },
|
|
190
235
|
h("sl-card", { class: sheet.classes.Base, onClick: () => item.available &&
|
|
191
236
|
callbacks.setExchangeState({ selectedItem: item }) },
|
|
192
|
-
item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) && (h("div", {
|
|
193
|
-
|
|
194
|
-
height: "18px",
|
|
195
|
-
borderRadius: "50%",
|
|
196
|
-
background: "var(--sl-color-primary-500)",
|
|
197
|
-
position: "relative",
|
|
198
|
-
margin: "-9px",
|
|
199
|
-
left: "350px",
|
|
200
|
-
} },
|
|
201
|
-
h("div", { style: { position: "relative", top: "-6px" } },
|
|
237
|
+
item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) && (h("div", { class: "selected-outline" },
|
|
238
|
+
h("div", { class: "selected-checkmark" },
|
|
202
239
|
h(CheckMark, null)))),
|
|
203
240
|
// item?.imageUrl &&
|
|
204
241
|
h("img", { class: sheet.classes.PreviewImage, src: (item === null || item === void 0 ? void 0 : item.imageUrl) || getAssetPath("./assets/Reward-icon.png") }),
|
|
205
|
-
h("
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
fontSize: "90%",
|
|
210
|
-
padding: "8px",
|
|
211
|
-
} },
|
|
212
|
-
h("b", null, item.description),
|
|
213
|
-
h("p", { style: { margin: "0" } }, amount),
|
|
214
|
-
item.unavailableReasonCode && (h("p", { style: {
|
|
215
|
-
fontSize: "70%",
|
|
216
|
-
color: "#F2994A",
|
|
217
|
-
marginTop: "0",
|
|
218
|
-
} }, intl.formatMessage({
|
|
242
|
+
h("div", { class: "text-area" },
|
|
243
|
+
h("div", { class: "title" }, item.description),
|
|
244
|
+
h("div", { class: "amount" }, amount),
|
|
245
|
+
item.unavailableReasonCode && (h("div", { class: "error" }, intl.formatMessage({
|
|
219
246
|
id: "unavailableCode",
|
|
220
|
-
defaultMessage: states.content.text.notAvailableError,
|
|
221
|
-
}, {
|
|
247
|
+
defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
|
|
248
|
+
}, {
|
|
249
|
+
unavailableReason: item.unavailableReason ||
|
|
250
|
+
item.unavailableReasonCode,
|
|
251
|
+
})))))));
|
|
222
252
|
})),
|
|
223
253
|
h("div", { class: sheet.classes.KutayButton },
|
|
224
254
|
h("sl-button", { class: "cancel", size: "large", type: "text" }, "Cancel"),
|
|
@@ -226,21 +256,28 @@ export function RewardExchangeView(props) {
|
|
|
226
256
|
];
|
|
227
257
|
}
|
|
228
258
|
function chooseAmount() {
|
|
259
|
+
var _a;
|
|
229
260
|
const input = getInput();
|
|
261
|
+
const isDisabled = ((_a = states.selectedItem) === null || _a === void 0 ? void 0 : _a.ruleType) === "FIXED_GLOBAL_REWARD"
|
|
262
|
+
? false
|
|
263
|
+
: input && !states.amount;
|
|
230
264
|
return (h("div", null,
|
|
231
|
-
h("div",
|
|
232
|
-
|
|
265
|
+
h("div", null,
|
|
266
|
+
//selectedItem?.imageUrl &&
|
|
267
|
+
h("img", { class: sheet.classes.FullImage, src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
268
|
+
getAssetPath("./assets/Reward-icon.png") })),
|
|
269
|
+
h("b", null, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description),
|
|
233
270
|
h("div", { class: sheet.classes.InputBox }, input),
|
|
234
271
|
h("div", { class: sheet.classes.KutayButton },
|
|
235
272
|
h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, "Cancel"),
|
|
236
|
-
h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled:
|
|
273
|
+
h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, "Continue to confirmation"))));
|
|
237
274
|
}
|
|
238
275
|
function confirmation() {
|
|
239
276
|
return (h("div", null,
|
|
240
277
|
h("h2", null, "Confirm and redeem"),
|
|
241
278
|
h("div", { style: { textAlign: "center" } },
|
|
242
279
|
h("p", null,
|
|
243
|
-
h("b", null, selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue)),
|
|
280
|
+
h("b", null, (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.prettySourceValue))),
|
|
244
281
|
h("p", null,
|
|
245
282
|
h(ExchangeArrows, null)),
|
|
246
283
|
h("div", { class: sheet.classes.CardContainer, style: {
|
|
@@ -39,6 +39,7 @@ export class SqmRewardExchangeList {
|
|
|
39
39
|
h(RewardExchangeView, { states: states, data: data, callbacks: callbacks })));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "sqm-reward-exchange-list"; }
|
|
42
|
+
static get encapsulation() { return "shadow"; }
|
|
42
43
|
static get assetsDirs() { return ["assets"]; }
|
|
43
44
|
static get properties() { return {
|
|
44
45
|
"buttonText": {
|
|
@@ -27,7 +27,10 @@ export function MatrixStory({ matrix, props, Component, }) {
|
|
|
27
27
|
return (h("div", null,
|
|
28
28
|
h(PropsTable, { values: example }),
|
|
29
29
|
h("hr", null),
|
|
30
|
-
|
|
30
|
+
" ",
|
|
31
|
+
h("br", null),
|
|
32
|
+
h(Component, Object.assign({}, example)),
|
|
33
|
+
h("br", null)));
|
|
31
34
|
});
|
|
32
35
|
}
|
|
33
36
|
function PropsTable({ values }) {
|
|
@@ -24,7 +24,7 @@ const resizable = {
|
|
|
24
24
|
};
|
|
25
25
|
const oneAction = {
|
|
26
26
|
rewardAmount: 20,
|
|
27
|
-
rewardUnit: "Points",
|
|
27
|
+
rewardUnit: "SaaSquatch Points",
|
|
28
28
|
cardTitle: "Complete a survey",
|
|
29
29
|
description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
|
|
30
30
|
repeatable: false,
|
|
@@ -34,12 +34,12 @@ const oneAction = {
|
|
|
34
34
|
buttonText: "Take survey",
|
|
35
35
|
buttonLink: "https://example.com/",
|
|
36
36
|
showExpiry: false,
|
|
37
|
-
|
|
37
|
+
rewardDuration: null,
|
|
38
38
|
loading: false,
|
|
39
39
|
};
|
|
40
40
|
const coupleActions = {
|
|
41
41
|
rewardAmount: 40,
|
|
42
|
-
rewardUnit: "Points",
|
|
42
|
+
rewardUnit: "SaaSquatch Points",
|
|
43
43
|
cardTitle: "Comment on 5 articles",
|
|
44
44
|
description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
|
|
45
45
|
repeatable: false,
|
|
@@ -50,12 +50,12 @@ const coupleActions = {
|
|
|
50
50
|
buttonText: "Take survey",
|
|
51
51
|
buttonLink: "https://example.com/",
|
|
52
52
|
showExpiry: false,
|
|
53
|
-
|
|
53
|
+
rewardDuration: null,
|
|
54
54
|
loading: false,
|
|
55
55
|
};
|
|
56
56
|
const manyActions = {
|
|
57
57
|
rewardAmount: 150,
|
|
58
|
-
rewardUnit: "Points",
|
|
58
|
+
rewardUnit: "SaaSquatch Points",
|
|
59
59
|
cardTitle: "Spend $500 at our Store",
|
|
60
60
|
description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
|
|
61
61
|
repeatable: false,
|
|
@@ -66,7 +66,7 @@ const manyActions = {
|
|
|
66
66
|
buttonText: "Take survey",
|
|
67
67
|
buttonLink: "https://example.com/",
|
|
68
68
|
showExpiry: false,
|
|
69
|
-
|
|
69
|
+
rewardDuration: null,
|
|
70
70
|
loading: false,
|
|
71
71
|
};
|
|
72
72
|
export const TaskCardNotRepeatable = () => {
|
|
@@ -127,10 +127,10 @@ export const TaskCardRepeatable = () => {
|
|
|
127
127
|
h(TaskCardView, Object.assign({}, manyActions, { progress: 1000, repeatable: true })),
|
|
128
128
|
h("h5", null))));
|
|
129
129
|
};
|
|
130
|
-
export const
|
|
130
|
+
export const TaskCardEndDate = () => {
|
|
131
131
|
const expire = {
|
|
132
132
|
showExpiry: true,
|
|
133
|
-
|
|
133
|
+
rewardDuration: "2021-12-01T08:00:00.000Z/2077-12-01T08:00:00.000Z",
|
|
134
134
|
};
|
|
135
135
|
const expireRepeat = { ...expire, repeatable: true };
|
|
136
136
|
return (h("div", { style: storyFrame },
|
|
@@ -187,10 +187,10 @@ export const TaskCardLoading = () => {
|
|
|
187
187
|
" ",
|
|
188
188
|
h("h5", null))));
|
|
189
189
|
};
|
|
190
|
-
export const
|
|
190
|
+
export const TaskCardUnavailable = () => {
|
|
191
191
|
const expire = {
|
|
192
192
|
showExpiry: true,
|
|
193
|
-
|
|
193
|
+
rewardDuration: "2021-11-30T08:00:00.000Z/2021-12-01T08:00:00.000Z",
|
|
194
194
|
};
|
|
195
195
|
const expireRepeat = { ...expire, repeatable: true };
|
|
196
196
|
return (h("div", { style: storyFrame },
|
|
@@ -3,7 +3,7 @@ import jss from "jss";
|
|
|
3
3
|
import preset from "jss-preset-default";
|
|
4
4
|
import * as SVGs from "./SVGs";
|
|
5
5
|
export function ProgressBarView(props) {
|
|
6
|
-
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false,
|
|
6
|
+
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, expired = false, } = props;
|
|
7
7
|
console.log("progress bar props", props);
|
|
8
8
|
const gift1 = SVGs.gift();
|
|
9
9
|
const gift2 = SVGs.gift();
|
|
@@ -53,9 +53,7 @@ export function ProgressBarView(props) {
|
|
|
53
53
|
width: "100%",
|
|
54
54
|
height: "4px",
|
|
55
55
|
borderRadius: "4px",
|
|
56
|
-
backgroundColor:
|
|
57
|
-
? "var(--sl-color-success-500)"
|
|
58
|
-
: "var(--sl-color-primary-500)",
|
|
56
|
+
backgroundColor: "var(--sl-color-primary-300)",
|
|
59
57
|
},
|
|
60
58
|
"& .progress": {
|
|
61
59
|
display: "block",
|
|
@@ -68,9 +66,7 @@ export function ProgressBarView(props) {
|
|
|
68
66
|
width: "12px",
|
|
69
67
|
height: "12px",
|
|
70
68
|
display: "flex",
|
|
71
|
-
backgroundColor:
|
|
72
|
-
? "var(--sl-color-success-500)"
|
|
73
|
-
: "var(--sl-color-primary-500)",
|
|
69
|
+
backgroundColor: "var(--sl-color-primary-300)",
|
|
74
70
|
borderRadius: "50%",
|
|
75
71
|
position: "relative",
|
|
76
72
|
left: "47%",
|
|
@@ -158,7 +154,7 @@ export function ProgressBarView(props) {
|
|
|
158
154
|
? ""
|
|
159
155
|
: progressBarUnit + clamp(progress, 0, goal)));
|
|
160
156
|
items.push(h("div", { class: "remain" }));
|
|
161
|
-
items.push(h("div", { class: "progress bg" }, goal));
|
|
157
|
+
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
162
158
|
items.push(h("div", { class: "gift" }, gift1));
|
|
163
159
|
}
|
|
164
160
|
function addSteps() {
|
|
@@ -32,7 +32,7 @@ export function TaskCardView(props) {
|
|
|
32
32
|
},
|
|
33
33
|
"& .main.expired": {
|
|
34
34
|
color: "var(--sl-color-neutral-400)",
|
|
35
|
-
background: "var(--sl-color-neutral-
|
|
35
|
+
background: "var(--sl-color-neutral-50)",
|
|
36
36
|
},
|
|
37
37
|
"& .title": {
|
|
38
38
|
fontSize: "var(--sl-font-size-small)",
|
|
@@ -66,7 +66,7 @@ export function TaskCardView(props) {
|
|
|
66
66
|
marginRight: "var(--sl-spacing-xx-small)",
|
|
67
67
|
},
|
|
68
68
|
"& .end": {
|
|
69
|
-
color: "var(--sl-color-warning-
|
|
69
|
+
color: "var(--sl-color-warning-500)",
|
|
70
70
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
71
71
|
marginBottom: "var(--sl-spacing-xx-small)",
|
|
72
72
|
},
|
|
@@ -116,40 +116,44 @@ export function TaskCardView(props) {
|
|
|
116
116
|
const repetitions = props.showProgressBar
|
|
117
117
|
? Math.floor(props.progress / props.goal)
|
|
118
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();
|
|
119
122
|
const taskComplete = showComplete && props.repeatable === false;
|
|
120
|
-
const
|
|
121
|
-
const taskExpired = props.showExpiry && DateTime.now() > dateExpire;
|
|
122
|
-
const dateExpireText = dateExpire.toLocaleString(DateTime.DATE_FULL);
|
|
123
|
-
console.log(taskExpired);
|
|
123
|
+
const taskUnavailable = props.showExpiry && (dateEnd < dateToday || dateToday < dateStart);
|
|
124
124
|
return (h("div", { class: sheet.classes.TaskCard },
|
|
125
|
-
h("div", { class:
|
|
125
|
+
h("div", { class: taskUnavailable
|
|
126
|
+
? "main expired"
|
|
127
|
+
: taskComplete
|
|
128
|
+
? "main complete"
|
|
129
|
+
: "main" },
|
|
126
130
|
h("style", { type: "text/css" }, styleString),
|
|
127
|
-
h("div", { class: sheet.classes.Header }, props.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
showComplete && (h("span", { class:
|
|
133
|
-
h("span", { class:
|
|
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),
|
|
134
138
|
h("span", { class: "text" }, props.rewardUnit)))),
|
|
135
|
-
props.loading ? (h("sl-skeleton", { style: { width: "42%", margin: "0 16px" } })) : (h("div", { class:
|
|
136
|
-
props.loading ? (h("sl-skeleton", { style: { margin: "12px 16px" } })) : (h(Details, Object.assign({}, props))),
|
|
137
|
-
props.showProgressBar && props.loading ? (h("sl-skeleton", { style: { margin: "0 16px" } })) : (props.showProgressBar && (h(ProgressBarView, Object.assign({}, props, { complete: taskComplete, expired:
|
|
138
|
-
h("div", { class: sheet.classes.Footer }, props.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
|
|
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" } },
|
|
139
143
|
h("span", { class: "text" },
|
|
140
144
|
props.repeatable && (h("div", null,
|
|
141
145
|
h("span", { class: repetitions > 0
|
|
142
|
-
?
|
|
146
|
+
? taskUnavailable
|
|
143
147
|
? "icon neutral"
|
|
144
148
|
: "icon success"
|
|
145
149
|
: "icon" }, arrow_left_right),
|
|
146
150
|
h("span", { class: repetitions > 0
|
|
147
|
-
?
|
|
151
|
+
? taskUnavailable
|
|
148
152
|
? "neutral"
|
|
149
153
|
: "success"
|
|
150
154
|
: "" }, "Completed " + repetitions + " times"))),
|
|
151
|
-
props.showExpiry && !
|
|
152
|
-
h("sl-button", { class: taskComplete ||
|
|
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: () => window.open(props.buttonLink), disabled: taskComplete || taskUnavailable }, props.buttonText)))))));
|
|
153
157
|
}
|
|
154
158
|
function Details(props) {
|
|
155
159
|
const style = {
|
|
@@ -7,7 +7,7 @@ import { useDemoBigStat } from "../sqm-big-stat/useDemoBigStat";
|
|
|
7
7
|
import { TaskCardView } from "./sqm-task-card-view";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Task Card
|
|
10
|
-
* @uiOrder ["reward-amount", "reward-unit", "card-title", "description", "
|
|
10
|
+
* @uiOrder ["reward-amount", "reward-unit", "card-title", "description", "repeatable", "show-progress-bar", "stat-type", "progress-source", "goal", "steps", "progress-bar-unit", "show-expiry", "date-expires", "button-text", "button-link"]
|
|
11
11
|
*/
|
|
12
12
|
export class TaskCard {
|
|
13
13
|
constructor() {
|
|
@@ -36,10 +36,6 @@ export class TaskCard {
|
|
|
36
36
|
* @uiName Show Progress Bar
|
|
37
37
|
*/
|
|
38
38
|
this.showProgressBar = false;
|
|
39
|
-
/**
|
|
40
|
-
* @uiName Goal Progress Source
|
|
41
|
-
*/
|
|
42
|
-
this.progressSource = "";
|
|
43
39
|
/**
|
|
44
40
|
* @uiName Goal Completion Number
|
|
45
41
|
*/
|
|
@@ -53,11 +49,11 @@ export class TaskCard {
|
|
|
53
49
|
*/
|
|
54
50
|
this.showExpiry = false;
|
|
55
51
|
/**
|
|
56
|
-
* @uiName
|
|
52
|
+
* @uiName Reward Duration
|
|
57
53
|
* @uiWidget DateRange
|
|
58
54
|
* @uiOptions {"allowPastDates":true, "months": 1}
|
|
59
55
|
*/
|
|
60
|
-
this.
|
|
56
|
+
this.rewardDuration = "/";
|
|
61
57
|
/**
|
|
62
58
|
* @uiName CTA Button Text
|
|
63
59
|
*/
|
|
@@ -70,7 +66,7 @@ export class TaskCard {
|
|
|
70
66
|
* Select what type of stat to display for the goal. Manual paths are also supported.
|
|
71
67
|
*
|
|
72
68
|
* @uiWidget StatTypeSelectWidget
|
|
73
|
-
* @uiName
|
|
69
|
+
* @uiName Goal Progress Source
|
|
74
70
|
* @uiOptions {"version": 1.1}
|
|
75
71
|
*/
|
|
76
72
|
this.statType = "/programGoals/count/Referral-Started%2Freferrals";
|
|
@@ -81,7 +77,7 @@ export class TaskCard {
|
|
|
81
77
|
const { props } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
82
78
|
const { value, statvalue } = props;
|
|
83
79
|
console.log(props, isDemo());
|
|
84
|
-
return (h(TaskCardView, Object.assign({
|
|
80
|
+
return (h(TaskCardView, Object.assign({ progress: value, loading: !isDemo() && value === undefined }, getProps(this))));
|
|
85
81
|
}
|
|
86
82
|
static get is() { return "sqm-task-card"; }
|
|
87
83
|
static get encapsulation() { return "shadow"; }
|
|
@@ -295,7 +291,7 @@ export class TaskCard {
|
|
|
295
291
|
"reflect": false,
|
|
296
292
|
"defaultValue": "false"
|
|
297
293
|
},
|
|
298
|
-
"
|
|
294
|
+
"rewardDuration": {
|
|
299
295
|
"type": "string",
|
|
300
296
|
"mutable": false,
|
|
301
297
|
"complexType": {
|
|
@@ -307,7 +303,7 @@ export class TaskCard {
|
|
|
307
303
|
"optional": false,
|
|
308
304
|
"docs": {
|
|
309
305
|
"tags": [{
|
|
310
|
-
"text": "
|
|
306
|
+
"text": "Reward Duration",
|
|
311
307
|
"name": "uiName"
|
|
312
308
|
}, {
|
|
313
309
|
"text": "DateRange",
|
|
@@ -318,7 +314,7 @@ export class TaskCard {
|
|
|
318
314
|
}],
|
|
319
315
|
"text": ""
|
|
320
316
|
},
|
|
321
|
-
"attribute": "
|
|
317
|
+
"attribute": "reward-duration",
|
|
322
318
|
"reflect": false,
|
|
323
319
|
"defaultValue": "\"/\""
|
|
324
320
|
},
|
|
@@ -379,7 +375,7 @@ export class TaskCard {
|
|
|
379
375
|
"text": "StatTypeSelectWidget",
|
|
380
376
|
"name": "uiWidget"
|
|
381
377
|
}, {
|
|
382
|
-
"text": "
|
|
378
|
+
"text": "Goal Progress Source",
|
|
383
379
|
"name": "uiName"
|
|
384
380
|
}, {
|
|
385
381
|
"text": "{\"version\": 1.1}",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './extends-3a3f9fe2.js';
|
|
2
|
-
import { s as src, m as memoize,
|
|
2
|
+
import { s as src, m as memoize, P } from './index.module-9d3f0cd6.js';
|
|
3
3
|
|
|
4
4
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
5
5
|
__assign = Object.assign || function(t) {
|
|
@@ -26696,7 +26696,7 @@ sl-input::part(label){
|
|
|
26696
26696
|
|
|
26697
26697
|
`;
|
|
26698
26698
|
|
|
26699
|
-
|
|
26699
|
+
P(l$1);
|
|
26700
26700
|
const debug = browser("sq:global");
|
|
26701
26701
|
const cache = createIntlCache();
|
|
26702
26702
|
const intl = createIntl({
|