@saasquatch/mint-components 1.5.5-1 → 1.5.5-2
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-1716c9f5.js → ShadowViewAddon-1bbdf477.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +126 -161
- package/dist/cjs/sqm-empty_5.cjs.entry.js +2 -2
- package/dist/cjs/sqm-hero.cjs.entry.js +7 -15
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +15 -8
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -5
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +8 -18
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +10 -12
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +8 -21
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +4 -8
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +300 -98
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +2 -2
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +7 -13
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +10 -11
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +4 -4
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +5 -5
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +9 -9
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -0
- package/dist/collection/components/sqm-empty/sqm-empty.js +0 -1
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +3 -3
- package/dist/collection/components/sqm-hero/sqm-hero.js +15 -23
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +3 -7
- package/dist/collection/components/sqm-hook-story-container/sqm-hook-story-container.js +0 -3
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +147 -27
- package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +56 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +2 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +70 -20
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +42 -19
- package/dist/collection/components/sqm-leaderboard-rank/LeaderboardRank.stories.js +18 -0
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +28 -8
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +15 -8
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +4 -4
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +3 -3
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +1 -1
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +1 -1
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +6 -9
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +11 -11
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +22 -34
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +4 -4
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +8 -8
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +8 -8
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +26 -42
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +2 -2
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +21 -31
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +2 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +28 -36
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +21 -23
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +4 -4
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +0 -1
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +9 -11
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +6 -10
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +14 -23
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +15 -22
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +8 -12
- package/dist/collection/components/sqm-route/sqm-route.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +15 -18
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +7 -6
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +7 -6
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +2 -2
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +8 -96
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +1 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +0 -1
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +4 -4
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +5 -6
- package/dist/esm/{ShadowViewAddon-16edf1a4.js → ShadowViewAddon-e2996624.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_35.entry.js +127 -162
- package/dist/esm/sqm-empty_5.entry.js +2 -2
- package/dist/esm/sqm-hero.entry.js +7 -15
- package/dist/esm/sqm-leaderboard-rank.entry.js +15 -8
- package/dist/esm/sqm-password-field.entry.js +2 -5
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +8 -18
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +10 -12
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +8 -21
- package/dist/esm/sqm-rewards-table_9.entry.js +4 -8
- package/dist/esm/sqm-stencilbook.entry.js +300 -98
- package/dist/esm-es5/ShadowViewAddon-e2996624.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-232672a2.entry.js +13 -0
- package/dist/mint-components/{p-294c486f.js → p-3facf714.js} +1 -1
- package/dist/mint-components/p-64cc1a70.system.entry.js +1 -0
- package/dist/mint-components/p-87ffb558.entry.js +9 -0
- package/dist/mint-components/p-91acec3d.entry.js +159 -0
- package/dist/mint-components/p-94096609.system.js +1 -1
- package/dist/mint-components/p-951e7817.system.entry.js +1 -0
- package/dist/mint-components/p-ba99d04e.system.entry.js +1 -0
- package/dist/mint-components/p-d3cc0d60.system.js +1 -0
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +2 -2
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +4 -12
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +5 -6
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +2 -2
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +3 -3
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +7 -10
- package/dist/types/components/sqm-empty/sqm-empty.d.ts +0 -1
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +2 -8
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +8 -20
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +1 -5
- package/dist/types/components/sqm-hook-story-container/sqm-hook-story-container.d.ts +0 -3
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +2 -1
- package/dist/types/components/sqm-leaderboard/UseLeaderboard.stories.d.ts +18 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +2 -2
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +25 -9
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +4 -2
- package/dist/types/components/sqm-leaderboard-rank/LeaderboardRank.stories.d.ts +5 -0
- package/dist/types/components/sqm-leaderboard-rank/sqm-leaderboard-rank.d.ts +14 -7
- package/dist/types/components/sqm-leaderboard-rank/useLeaderboardRank.d.ts +2 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +2 -2
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +2 -4
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +1 -1
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +1 -1
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +2 -5
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +6 -21
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +8 -20
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +3 -5
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +4 -4
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +4 -4
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +9 -25
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +1 -1
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +8 -18
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +1 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +12 -20
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +10 -12
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +2 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +0 -1
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +4 -7
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +2 -6
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +6 -15
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +9 -16
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +3 -7
- package/dist/types/components/sqm-route/sqm-route.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +9 -17
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +2 -2
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +2 -2
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +8 -35
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +1 -1
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +0 -1
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -2
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +2 -3
- package/dist/types/components.d.ts +372 -494
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +3 -8
- package/dist/esm-es5/ShadowViewAddon-16edf1a4.js +0 -1
- package/dist/mint-components/p-075154b7.entry.js +0 -13
- package/dist/mint-components/p-20305fa4.system.entry.js +0 -1
- package/dist/mint-components/p-4ccb3b36.system.entry.js +0 -1
- package/dist/mint-components/p-62cc7fae.entry.js +0 -9
- package/dist/mint-components/p-6ce2e2eb.system.entry.js +0 -1
- package/dist/mint-components/p-acc840a5.system.js +0 -1
- package/dist/mint-components/p-dbf1beab.entry.js +0 -150
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +0 -1
|
@@ -180,14 +180,14 @@ const TitledSection = class {
|
|
|
180
180
|
*/
|
|
181
181
|
this.textAlign = "left";
|
|
182
182
|
/**
|
|
183
|
-
* @uiName Label
|
|
183
|
+
* @uiName Label margin style
|
|
184
184
|
* @uiType string
|
|
185
185
|
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
186
186
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
187
187
|
*/
|
|
188
188
|
this.labelMargin = "small";
|
|
189
189
|
/**
|
|
190
|
-
* @uiName Section
|
|
190
|
+
* @uiName Section padding
|
|
191
191
|
* @uiType string
|
|
192
192
|
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
193
193
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
@@ -9,25 +9,17 @@ import { H as HeroView } from './sqm-hero-view-71d1202f.js';
|
|
|
9
9
|
const Hero = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
registerInstance(this, hostRef);
|
|
12
|
-
/**
|
|
13
|
-
* Number of columns in the layout
|
|
14
|
-
*
|
|
15
|
-
* @uiName Columns
|
|
16
|
-
*/
|
|
12
|
+
/** @uiName Number of columns in the layout */
|
|
17
13
|
this.columns = 1;
|
|
18
14
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
* Can either be an image url, colour or Shoelace variable.
|
|
16
|
+
*
|
|
17
|
+
* @uiName Background
|
|
18
|
+
*/
|
|
23
19
|
this.background = "var(--sl-color-gray-50)";
|
|
24
|
-
/** @uiName Padding
|
|
20
|
+
/** @uiName Padding size */
|
|
25
21
|
this.paddingSize = "large";
|
|
26
|
-
/**
|
|
27
|
-
* Flexbox wrap direction, accepts wrap or wrap-reverse
|
|
28
|
-
*
|
|
29
|
-
* @uiName Wrap Direction
|
|
30
|
-
*/
|
|
22
|
+
/** @uiName Wrap direction */
|
|
31
23
|
this.wrapDirection = "wrap";
|
|
32
24
|
h(this);
|
|
33
25
|
}
|
|
@@ -21,19 +21,26 @@ const GET_RANK = dist.gql `
|
|
|
21
21
|
}
|
|
22
22
|
`;
|
|
23
23
|
function useLeaderboardRank(props) {
|
|
24
|
-
var _a, _b, _c;
|
|
25
|
-
const
|
|
24
|
+
var _a, _b, _c, _d;
|
|
25
|
+
const programIdContext = M();
|
|
26
|
+
// Default to context, overriden by props
|
|
27
|
+
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
26
28
|
const user = ie();
|
|
27
|
-
const rankVariables =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const rankVariables = programId
|
|
30
|
+
? {
|
|
31
|
+
type: props.leaderboardType,
|
|
32
|
+
filter: { programId_eq: programId },
|
|
33
|
+
}
|
|
34
|
+
: {
|
|
35
|
+
type: props.leaderboardType,
|
|
36
|
+
filter: {},
|
|
37
|
+
};
|
|
31
38
|
if (props.interval) {
|
|
32
39
|
rankVariables.filter["interval"] = props.interval;
|
|
33
40
|
}
|
|
34
41
|
const { data: rankData } = sn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
35
|
-
const fullRankText = ((
|
|
36
|
-
rank: (
|
|
42
|
+
const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
|
|
43
|
+
rank: (_d = (_c = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _c === void 0 ? void 0 : _c.leaderboardRank) === null || _d === void 0 ? void 0 : _d[props.rankType],
|
|
37
44
|
})
|
|
38
45
|
: props.unrankedText || "unranked";
|
|
39
46
|
return {
|
|
@@ -529,14 +529,11 @@ const PortalPasswordField = class {
|
|
|
529
529
|
registerInstance(this, hostRef);
|
|
530
530
|
this.ignored = true;
|
|
531
531
|
/**
|
|
532
|
-
* Label for password field
|
|
533
|
-
*
|
|
534
|
-
* @uiName Password Label
|
|
532
|
+
* @uiName Label for password field
|
|
535
533
|
*/
|
|
536
534
|
this.fieldLabel = "Password";
|
|
537
535
|
/**
|
|
538
|
-
* Enable live password validation
|
|
539
|
-
* @uiName Enable Validation
|
|
536
|
+
* @uiName Enable live password validation
|
|
540
537
|
*/
|
|
541
538
|
this.enableValidation = true;
|
|
542
539
|
h$1(this);
|
|
@@ -64,19 +64,19 @@ const PortalEmailVerification = class {
|
|
|
64
64
|
/**
|
|
65
65
|
* The page that users are redirected to from the verification email.
|
|
66
66
|
*
|
|
67
|
-
* @uiName Email
|
|
67
|
+
* @uiName Email redirection base path
|
|
68
68
|
*/
|
|
69
69
|
this.redirectPath = "/verifyEmail";
|
|
70
70
|
/**
|
|
71
|
-
* @uiName Email
|
|
71
|
+
* @uiName Email verification header text
|
|
72
72
|
*/
|
|
73
73
|
this.emailVerificationHeader = "Verify your email";
|
|
74
74
|
/**
|
|
75
|
-
* @uiName Re-send
|
|
75
|
+
* @uiName Re-send email button text
|
|
76
76
|
*/
|
|
77
77
|
this.resendEmailButtonText = "Re-send Email";
|
|
78
78
|
/**
|
|
79
|
-
* @uiName Email
|
|
79
|
+
* @uiName Email verification body text
|
|
80
80
|
*/
|
|
81
81
|
this.verifyMessage = "A verification email was sent to {email}. Please verify your email to continue to the portal.";
|
|
82
82
|
h(this);
|
|
@@ -59,19 +59,19 @@ const PortalForgotPassword = class {
|
|
|
59
59
|
/**
|
|
60
60
|
* The page that users are redirected to from the password reset email.
|
|
61
61
|
*
|
|
62
|
-
* @uiName Email
|
|
62
|
+
* @uiName Email redirection base path
|
|
63
63
|
*/
|
|
64
64
|
this.redirectPath = "/resetPassword";
|
|
65
65
|
/**
|
|
66
|
-
* @uiName Email
|
|
66
|
+
* @uiName Email label
|
|
67
67
|
*/
|
|
68
68
|
this.emailLabel = "Email";
|
|
69
69
|
/**
|
|
70
|
-
* @uiName Password
|
|
70
|
+
* @uiName Password reset button text
|
|
71
71
|
*/
|
|
72
72
|
this.submitLabel = "Request Password Reset";
|
|
73
73
|
/**
|
|
74
|
-
* @uiName
|
|
74
|
+
* @uiName Routing path to login page
|
|
75
75
|
*/
|
|
76
76
|
this.loginPath = "/login";
|
|
77
77
|
h(this);
|
|
@@ -163,45 +163,35 @@ const PortalProfile = class {
|
|
|
163
163
|
registerInstance(this, hostRef);
|
|
164
164
|
this.ignored = true;
|
|
165
165
|
/**
|
|
166
|
-
* First name input field label
|
|
167
|
-
*
|
|
168
|
-
* @uiName First Name Label
|
|
166
|
+
* @uiName First name input field label
|
|
169
167
|
*/
|
|
170
168
|
this.firstnametext = "First Name";
|
|
171
169
|
/**
|
|
172
|
-
* Last name input field label
|
|
173
|
-
*
|
|
174
|
-
* @uiName Last Name Label
|
|
170
|
+
* @uiName Last name input field label
|
|
175
171
|
*/
|
|
176
172
|
this.lastnametext = "Last Name";
|
|
177
173
|
/**
|
|
178
|
-
* Email input field label
|
|
179
|
-
*
|
|
180
|
-
* @uiName Email Label
|
|
174
|
+
* @uiName Email input field label
|
|
181
175
|
*/
|
|
182
176
|
this.emailtext = "Email";
|
|
183
177
|
/**
|
|
184
|
-
* Country input field label
|
|
185
|
-
*
|
|
186
|
-
* @uiName Country Label
|
|
178
|
+
* @uiName Country input field label
|
|
187
179
|
*/
|
|
188
180
|
this.countrytext = "Country";
|
|
189
181
|
/**
|
|
190
|
-
* @uiName Edit
|
|
182
|
+
* @uiName Edit profile header
|
|
191
183
|
*/
|
|
192
184
|
this.editProfileHeader = "Edit your profile";
|
|
193
185
|
/**
|
|
194
|
-
* @uiName Edit
|
|
186
|
+
* @uiName Edit profile sub header
|
|
195
187
|
*/
|
|
196
188
|
this.editProfileSubHeader = "Personal Information";
|
|
197
189
|
/**
|
|
198
|
-
* @uiName
|
|
190
|
+
* @uiName Text for the submit changes button
|
|
199
191
|
*/
|
|
200
192
|
this.submitChangeButtonText = "Submit Changes";
|
|
201
193
|
/**
|
|
202
|
-
* Show or hide
|
|
203
|
-
*
|
|
204
|
-
* @uiName Show Country Field
|
|
194
|
+
* @uiName Show or hide country field
|
|
205
195
|
*/
|
|
206
196
|
this.showCountry = true;
|
|
207
197
|
h(this);
|
|
@@ -91,47 +91,45 @@ const PortalResetPassword = class {
|
|
|
91
91
|
/**
|
|
92
92
|
* The page that users are redirected to when the password reset succeeds.
|
|
93
93
|
*
|
|
94
|
-
* @uiName Next
|
|
94
|
+
* @uiName Next page path
|
|
95
95
|
*/
|
|
96
96
|
this.nextPage = "/";
|
|
97
97
|
/**
|
|
98
98
|
* The page that users are redirected to if the reset fails due to outdated password reset attempt.
|
|
99
99
|
*
|
|
100
|
-
* @uiName Failed
|
|
100
|
+
* @uiName Failed page redirection path
|
|
101
101
|
*/
|
|
102
102
|
this.failedPage = "/";
|
|
103
103
|
/**
|
|
104
|
-
* Show
|
|
105
|
-
*
|
|
106
|
-
* @uiName Show Confirm Password
|
|
104
|
+
* @uiName Show confirm password
|
|
107
105
|
*/
|
|
108
106
|
this.confirmPassword = false;
|
|
109
107
|
/**
|
|
110
|
-
* @uiName
|
|
108
|
+
* @uiName Password reset header text
|
|
111
109
|
*/
|
|
112
110
|
this.resetPasswordHeader = "Reset your password";
|
|
113
111
|
/**
|
|
114
112
|
* Displayed after a successful password reset
|
|
115
113
|
*
|
|
116
|
-
* @uiName
|
|
114
|
+
* @uiName Password reset header text
|
|
117
115
|
*/
|
|
118
116
|
this.passwordResetHeader = "Password reset";
|
|
119
117
|
/**
|
|
120
|
-
* @uiName Password
|
|
118
|
+
* @uiName Password reset button text
|
|
121
119
|
*/
|
|
122
120
|
this.resetPasswordButtonText = "Reset Password";
|
|
123
121
|
/**
|
|
124
|
-
*
|
|
122
|
+
* Displayed after a successful password reset
|
|
125
123
|
*
|
|
126
|
-
* @uiName Continue
|
|
124
|
+
* @uiName Continue button text
|
|
127
125
|
*/
|
|
128
126
|
this.continueButtonText = "Continue";
|
|
129
127
|
/**
|
|
130
|
-
* @uiName Confirm
|
|
128
|
+
* @uiName Confirm password field label
|
|
131
129
|
*/
|
|
132
130
|
this.confirmPasswordFieldLabel = "Confirm Password";
|
|
133
131
|
/**
|
|
134
|
-
* @uiName Password
|
|
132
|
+
* @uiName Password field label
|
|
135
133
|
*/
|
|
136
134
|
this.passwordFieldLabel = "New Password";
|
|
137
135
|
h(this);
|
|
@@ -94,13 +94,13 @@ const PortalVerifyEmail = class {
|
|
|
94
94
|
/**
|
|
95
95
|
* The page that users are redirected to when the verification succeeds.
|
|
96
96
|
*
|
|
97
|
-
* @uiName Next
|
|
97
|
+
* @uiName Next page path
|
|
98
98
|
*/
|
|
99
99
|
this.nextPage = "/";
|
|
100
100
|
/**
|
|
101
101
|
* The page that users are redirected to if verification fails due to outdated verification attempt.
|
|
102
102
|
*
|
|
103
|
-
* @uiName Failed
|
|
103
|
+
* @uiName Failed page redirection path
|
|
104
104
|
*/
|
|
105
105
|
this.failedPage = "/";
|
|
106
106
|
h(this);
|
|
@@ -159,29 +159,20 @@ const getMockData = () => {
|
|
|
159
159
|
const ReferralTable = class {
|
|
160
160
|
constructor(hostRef) {
|
|
161
161
|
registerInstance(this, hostRef);
|
|
162
|
-
/**
|
|
163
|
-
* Number of referrals displayed per page
|
|
164
|
-
*
|
|
165
|
-
* @uiName Referrals Per Page
|
|
166
|
-
*/
|
|
162
|
+
/** @uiName Number of referrals per page */
|
|
167
163
|
this.perPage = 4;
|
|
168
|
-
/** @uiName Show
|
|
164
|
+
/** @uiName Show column labels */
|
|
169
165
|
this.showLabels = true;
|
|
170
|
-
/** @uiName Previous
|
|
166
|
+
/** @uiName Previous button text */
|
|
171
167
|
this.prevLabel = "Prev";
|
|
172
|
-
/** @uiName View More
|
|
168
|
+
/** @uiName View More button text */
|
|
173
169
|
this.moreLabel = "Next";
|
|
174
|
-
/**
|
|
175
|
-
* Show referred by user in table
|
|
176
|
-
*
|
|
177
|
-
* @uiName Show Referrer
|
|
178
|
-
*/
|
|
170
|
+
/** @uiName Show Referred by user in table */
|
|
179
171
|
this.showReferrer = false;
|
|
180
172
|
/**
|
|
181
173
|
* Provide the column numbers (0 indexed) that should not be displayed in mobile views. Ex. 0,2,3
|
|
182
174
|
*
|
|
183
|
-
*
|
|
184
|
-
*/
|
|
175
|
+
* @uiName Mobile Hidden Columns */
|
|
185
176
|
this.hiddenColumns = "0";
|
|
186
177
|
/** @uiName Mobile Breakpoint */
|
|
187
178
|
this.smBreakpoint = 599;
|
|
@@ -680,15 +671,11 @@ const ReferralTableUserColumn = class {
|
|
|
680
671
|
*/
|
|
681
672
|
this.columnTitle = "Customer";
|
|
682
673
|
/**
|
|
683
|
-
* Name displayed for
|
|
684
|
-
*
|
|
685
|
-
* @uiName Anonymous User Text
|
|
674
|
+
* @uiName Name displayed for anonymous users
|
|
686
675
|
*/
|
|
687
676
|
this.anonymousUser = "Anonymous User";
|
|
688
677
|
/**
|
|
689
|
-
* Name displayed for deleted users
|
|
690
|
-
*
|
|
691
|
-
* @uiName Deleted User Text
|
|
678
|
+
* @uiName Name displayed for deleted users
|
|
692
679
|
*/
|
|
693
680
|
this.deletedUser = "Deleted User";
|
|
694
681
|
h(this);
|
|
@@ -651,7 +651,7 @@ const RewardsTableColumn = class {
|
|
|
651
651
|
constructor(hostRef) {
|
|
652
652
|
registerInstance(this, hostRef);
|
|
653
653
|
/**
|
|
654
|
-
* @uiName Reward
|
|
654
|
+
* @uiName Reward column title
|
|
655
655
|
*/
|
|
656
656
|
this.columnTitle = "Reward";
|
|
657
657
|
/**
|
|
@@ -754,19 +754,15 @@ const RewardTableUserColumn = class {
|
|
|
754
754
|
*/
|
|
755
755
|
this.columnTitle = "Source";
|
|
756
756
|
/**
|
|
757
|
-
* Name displayed for
|
|
758
|
-
*
|
|
759
|
-
* @uiName Anonymous User Text
|
|
757
|
+
* @uiName Name displayed for anonymous users
|
|
760
758
|
*/
|
|
761
759
|
this.anonymousUser = "Anonymous User";
|
|
762
760
|
/**
|
|
763
|
-
* Name displayed for deleted users
|
|
764
|
-
*
|
|
765
|
-
* @uiName Deleted User Text
|
|
761
|
+
* @uiName Name displayed for deleted users
|
|
766
762
|
*/
|
|
767
763
|
this.deletedUser = "Deleted User";
|
|
768
764
|
/**
|
|
769
|
-
* @uiName Reward Exchange
|
|
765
|
+
* @uiName Reward Exchange label
|
|
770
766
|
*/
|
|
771
767
|
this.rewardExchangeText = "Reward Exchange";
|
|
772
768
|
/**
|