@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
|
@@ -18,16 +18,14 @@ require('./luxon-59ca7d19.js');
|
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
19
|
require('./sqm-text-span-view-2c7d94b5.js');
|
|
20
20
|
require('./sqm-portal-container-view-840db620.js');
|
|
21
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
21
|
+
const ShadowViewAddon = require('./ShadowViewAddon-1bbdf477.js');
|
|
22
22
|
require('./sqm-portal-section-view-854a3e9c.js');
|
|
23
23
|
|
|
24
24
|
const BigStat = class {
|
|
25
25
|
constructor(hostRef) {
|
|
26
26
|
index.registerInstance(this, hostRef);
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* @uiName Flex Reverse
|
|
28
|
+
* @uiName Flex Reverse - controls the order of the stat value & description column
|
|
31
29
|
*/
|
|
32
30
|
this.flexReverse = false;
|
|
33
31
|
this.ignored = true;
|
|
@@ -203,21 +201,20 @@ const CheckboxField = class {
|
|
|
203
201
|
index.registerInstance(this, hostRef);
|
|
204
202
|
this.ignored = true;
|
|
205
203
|
/**
|
|
206
|
-
* @uiName Checkbox
|
|
204
|
+
* @uiName Checkbox label
|
|
207
205
|
*/
|
|
208
206
|
this.checkboxLabel = "By signing up you agree to the {labelLink}";
|
|
209
207
|
/**
|
|
208
|
+
* @uiName Checkbox label link
|
|
210
209
|
* Used with link text if the checkbox label contains {labelLink}
|
|
211
|
-
*
|
|
212
|
-
* @uiName Checkbox Label Link
|
|
213
210
|
*/
|
|
214
211
|
this.checkboxLabelLink = "https://example.com";
|
|
215
212
|
/**
|
|
216
|
-
* @uiName Checkbox
|
|
213
|
+
* @uiName Checkbox label link text
|
|
217
214
|
*/
|
|
218
215
|
this.checkboxLabelLinkText = "Terms and Conditions";
|
|
219
216
|
/**
|
|
220
|
-
* @uiName Unchecked
|
|
217
|
+
* @uiName Unchecked error message
|
|
221
218
|
*/
|
|
222
219
|
this.errorMessage = "Must be checked";
|
|
223
220
|
/**
|
|
@@ -313,8 +310,8 @@ const DividedLayout = class {
|
|
|
313
310
|
constructor(hostRef) {
|
|
314
311
|
index.registerInstance(this, hostRef);
|
|
315
312
|
/**
|
|
316
|
-
* Uses
|
|
317
|
-
* @uiName Border
|
|
313
|
+
* Uses CSS border style syntax
|
|
314
|
+
* @uiName Border style
|
|
318
315
|
*/
|
|
319
316
|
this.dividerStyle = "1px solid #EAEAEA";
|
|
320
317
|
stencilHooks_module.h$1(this);
|
|
@@ -339,11 +336,11 @@ const DropdownField = class {
|
|
|
339
336
|
index.registerInstance(this, hostRef);
|
|
340
337
|
this.ignored = true;
|
|
341
338
|
/**
|
|
342
|
-
* @uiName Dropdown
|
|
339
|
+
* @uiName Dropdown label
|
|
343
340
|
*/
|
|
344
341
|
this.dropdownLabel = "Select an option";
|
|
345
342
|
/**
|
|
346
|
-
* @uiName Unselected
|
|
343
|
+
* @uiName Unselected error message
|
|
347
344
|
*/
|
|
348
345
|
this.errorMessage = "Select an option";
|
|
349
346
|
/**
|
|
@@ -776,9 +773,7 @@ const HeroImage = class {
|
|
|
776
773
|
*/
|
|
777
774
|
this.imageMobilePos = "top";
|
|
778
775
|
/**
|
|
779
|
-
* CTA Button
|
|
780
|
-
*
|
|
781
|
-
* @uiName Button New Tab
|
|
776
|
+
* @uiName CTA Button Link Open in New Tab
|
|
782
777
|
*/
|
|
783
778
|
this.buttonNewTab = false;
|
|
784
779
|
/**
|
|
@@ -873,11 +868,16 @@ function useInputFieldDemo(props) {
|
|
|
873
868
|
}
|
|
874
869
|
|
|
875
870
|
const GET_LEADERBOARD = index_module.dist.gql `
|
|
876
|
-
query (
|
|
871
|
+
query (
|
|
872
|
+
$type: String!
|
|
873
|
+
$filter: UserLeaderboardFilterInput
|
|
874
|
+
$locale: RSLocale
|
|
875
|
+
$limit: Int!
|
|
876
|
+
) {
|
|
877
877
|
userLeaderboard(type: $type, filter: $filter) {
|
|
878
878
|
dateModified
|
|
879
|
-
rows {
|
|
880
|
-
|
|
879
|
+
rows(limit: $limit) {
|
|
880
|
+
textValue(locale: $locale)
|
|
881
881
|
firstName
|
|
882
882
|
lastInitial
|
|
883
883
|
rank {
|
|
@@ -890,13 +890,17 @@ const GET_LEADERBOARD = index_module.dist.gql `
|
|
|
890
890
|
}
|
|
891
891
|
`;
|
|
892
892
|
const GET_RANK = index_module.dist.gql `
|
|
893
|
-
query (
|
|
893
|
+
query (
|
|
894
|
+
$type: String!
|
|
895
|
+
$filter: UserLeaderboardFilterInput
|
|
896
|
+
$locale: RSLocale
|
|
897
|
+
) {
|
|
894
898
|
viewer {
|
|
895
899
|
... on User {
|
|
896
900
|
firstName
|
|
897
901
|
lastInitial
|
|
898
902
|
leaderboardRank(type: $type, filter: $filter) {
|
|
899
|
-
|
|
903
|
+
textValue(locale: $locale)
|
|
900
904
|
rank
|
|
901
905
|
denseRank
|
|
902
906
|
rowNumber
|
|
@@ -906,19 +910,33 @@ const GET_RANK = index_module.dist.gql `
|
|
|
906
910
|
}
|
|
907
911
|
`;
|
|
908
912
|
function useLeaderboard(props) {
|
|
909
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
910
|
-
const
|
|
913
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
914
|
+
const programIdContext = index_module.M();
|
|
915
|
+
// Default to context, overriden by props
|
|
916
|
+
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
911
917
|
const user = index_module.ie();
|
|
912
|
-
const
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
918
|
+
const locale = index_module.An();
|
|
919
|
+
const variables = programId
|
|
920
|
+
? {
|
|
921
|
+
type: props.leaderboardType,
|
|
922
|
+
filter: { programId_eq: programId },
|
|
923
|
+
}
|
|
924
|
+
: {
|
|
925
|
+
type: props.leaderboardType,
|
|
926
|
+
filter: {},
|
|
927
|
+
};
|
|
916
928
|
if (props.interval) {
|
|
917
929
|
variables.filter["interval"] = props.interval;
|
|
918
930
|
}
|
|
931
|
+
if (locale) {
|
|
932
|
+
variables["locale"] = locale;
|
|
933
|
+
}
|
|
934
|
+
if (props.maxRows > 0) {
|
|
935
|
+
variables["limit"] = props.maxRows;
|
|
936
|
+
}
|
|
919
937
|
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.sn(GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
920
938
|
const { data: rankData } = index_module.sn(GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
921
|
-
const leaderboardRows = (
|
|
939
|
+
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
922
940
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
923
941
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
924
942
|
return a.rank - b.rank;
|
|
@@ -927,7 +945,7 @@ function useLeaderboard(props) {
|
|
|
927
945
|
return leaderboardRows === null || leaderboardRows === void 0 ? void 0 : leaderboardRows.flatMap((user) => {
|
|
928
946
|
var _a, _b;
|
|
929
947
|
return ({
|
|
930
|
-
|
|
948
|
+
textValue: user.textValue,
|
|
931
949
|
firstName: user.firstName,
|
|
932
950
|
lastInitial: user.lastInitial,
|
|
933
951
|
rank: (_a = user.rank) === null || _a === void 0 ? void 0 : _a[props.rankType],
|
|
@@ -936,11 +954,11 @@ function useLeaderboard(props) {
|
|
|
936
954
|
});
|
|
937
955
|
}
|
|
938
956
|
const viewingUser = {
|
|
939
|
-
|
|
940
|
-
firstName: (
|
|
941
|
-
lastInitial: (
|
|
942
|
-
rank: (
|
|
943
|
-
rowNumber: (
|
|
957
|
+
textValue: (_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.textValue,
|
|
958
|
+
firstName: (_e = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _e === void 0 ? void 0 : _e.firstName,
|
|
959
|
+
lastInitial: (_f = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _f === void 0 ? void 0 : _f.lastInitial,
|
|
960
|
+
rank: (_h = (_g = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _g === void 0 ? void 0 : _g.leaderboardRank) === null || _h === void 0 ? void 0 : _h[props.rankType],
|
|
961
|
+
rowNumber: (_k = (_j = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _j === void 0 ? void 0 : _j.leaderboardRank) === null || _k === void 0 ? void 0 : _k.rowNumber,
|
|
944
962
|
};
|
|
945
963
|
return {
|
|
946
964
|
states: {
|
|
@@ -964,16 +982,23 @@ const Leaderboard = class {
|
|
|
964
982
|
constructor(hostRef) {
|
|
965
983
|
index.registerInstance(this, hostRef);
|
|
966
984
|
/**
|
|
967
|
-
* Hide the
|
|
985
|
+
* Hide the viewer's leaderboard row if not in the top 10.
|
|
968
986
|
*
|
|
969
987
|
* @uiName Hide Viewing User
|
|
970
988
|
*/
|
|
971
989
|
this.hideViewer = false;
|
|
972
990
|
/**
|
|
973
|
-
*
|
|
974
|
-
*
|
|
991
|
+
* Text displayed for users without names in the leaderboard
|
|
992
|
+
*
|
|
993
|
+
* @uiName Anonymous User Name
|
|
975
994
|
*/
|
|
976
995
|
this.anonymousUser = "Anonymous User";
|
|
996
|
+
/**
|
|
997
|
+
* Control the maximum amount of rows displayed on the leaderboard.
|
|
998
|
+
*
|
|
999
|
+
* @uiName Maximum Rows Number
|
|
1000
|
+
*/
|
|
1001
|
+
this.maxRows = 10;
|
|
977
1002
|
this.ignored = true;
|
|
978
1003
|
stencilHooks_module.h$1(this);
|
|
979
1004
|
ShadowViewAddon.withShadowView(this);
|
|
@@ -988,6 +1013,8 @@ const Leaderboard = class {
|
|
|
988
1013
|
rankheading: this.rankheading,
|
|
989
1014
|
rankType: this.rankType,
|
|
990
1015
|
leaderboardType: this.leaderboardType,
|
|
1016
|
+
maxRows: this.maxRows,
|
|
1017
|
+
programId: this.programId,
|
|
991
1018
|
anonymousUser: this.anonymousUser,
|
|
992
1019
|
interval: this.interval,
|
|
993
1020
|
hideViewer: this.hideViewer,
|
|
@@ -1014,33 +1041,33 @@ function useLeaderboardDemo(props) {
|
|
|
1014
1041
|
{
|
|
1015
1042
|
firstName: "Viktor",
|
|
1016
1043
|
lastInitial: "V",
|
|
1017
|
-
|
|
1044
|
+
textValue: "82",
|
|
1018
1045
|
rank: 1,
|
|
1019
1046
|
rowNumber: 1,
|
|
1020
1047
|
},
|
|
1021
1048
|
{
|
|
1022
1049
|
firstName: "MF",
|
|
1023
1050
|
lastInitial: "D",
|
|
1024
|
-
|
|
1051
|
+
textValue: "73",
|
|
1025
1052
|
rank: 2,
|
|
1026
1053
|
rowNumber: 2,
|
|
1027
1054
|
},
|
|
1028
1055
|
{
|
|
1029
1056
|
firstName: "Freddie",
|
|
1030
1057
|
lastInitial: "G",
|
|
1031
|
-
|
|
1058
|
+
textValue: "64",
|
|
1032
1059
|
rank: 3,
|
|
1033
1060
|
rowNumber: 3,
|
|
1034
1061
|
},
|
|
1035
1062
|
{
|
|
1036
1063
|
firstName: "Benny",
|
|
1037
1064
|
lastInitial: "B",
|
|
1038
|
-
|
|
1065
|
+
textValue: "55",
|
|
1039
1066
|
rank: 4,
|
|
1040
1067
|
rowNumber: 4,
|
|
1041
1068
|
},
|
|
1042
1069
|
{
|
|
1043
|
-
|
|
1070
|
+
textValue: "46",
|
|
1044
1071
|
rank: 5,
|
|
1045
1072
|
rowNumber: 5,
|
|
1046
1073
|
},
|
|
@@ -1093,11 +1120,11 @@ const NameFields = class {
|
|
|
1093
1120
|
index.registerInstance(this, hostRef);
|
|
1094
1121
|
this.ignored = true;
|
|
1095
1122
|
/**
|
|
1096
|
-
* @uiName First
|
|
1123
|
+
* @uiName First name field label
|
|
1097
1124
|
*/
|
|
1098
1125
|
this.firstNameLabel = "First Name";
|
|
1099
1126
|
/**
|
|
1100
|
-
* @uiName Last
|
|
1127
|
+
* @uiName Last name field label
|
|
1101
1128
|
*/
|
|
1102
1129
|
this.lastNameLabel = "Last Name";
|
|
1103
1130
|
stencilHooks_module.h$1(this);
|
|
@@ -1256,47 +1283,35 @@ const PortalChangePassword = class {
|
|
|
1256
1283
|
index.registerInstance(this, hostRef);
|
|
1257
1284
|
this.ignored = true;
|
|
1258
1285
|
/**
|
|
1259
|
-
* @uiName Change
|
|
1286
|
+
* @uiName Change password modal header
|
|
1260
1287
|
*/
|
|
1261
1288
|
this.modalChangePasswordHeader = "Change Password";
|
|
1262
1289
|
/**
|
|
1263
|
-
* Modal cancel button text
|
|
1264
|
-
*
|
|
1265
|
-
* @uiName Cancel Button Text
|
|
1290
|
+
* @uiName Modal cancel password change button text
|
|
1266
1291
|
*/
|
|
1267
1292
|
this.cancelText = "Cancel";
|
|
1268
1293
|
/**
|
|
1269
|
-
* Modal change password button text
|
|
1270
|
-
*
|
|
1271
|
-
* @uiName Change Password Button Text
|
|
1294
|
+
* @uiName Modal change password button text
|
|
1272
1295
|
*/
|
|
1273
1296
|
this.changePasswordButtonText = "Change Password";
|
|
1274
1297
|
/**
|
|
1275
|
-
* Password input field label
|
|
1276
|
-
*
|
|
1277
|
-
* @uiName Password Label
|
|
1298
|
+
* @uiName Password input field label
|
|
1278
1299
|
*/
|
|
1279
1300
|
this.passwordFieldLabel = "New Password";
|
|
1280
1301
|
/**
|
|
1281
|
-
* Password confirmation input field label
|
|
1282
|
-
*
|
|
1283
|
-
* @uiName Confirm Password Label
|
|
1302
|
+
* @uiName Password confirmation input field label
|
|
1284
1303
|
*/
|
|
1285
1304
|
this.confirmPasswordFieldLabel = "Confirm New Password";
|
|
1286
1305
|
/**
|
|
1287
|
-
* Successful password change message
|
|
1288
|
-
*
|
|
1289
|
-
* @uiName Successful Message
|
|
1306
|
+
* @uiName Successful password change message
|
|
1290
1307
|
*/
|
|
1291
1308
|
this.successMessage = "Your password has been updated.";
|
|
1292
1309
|
/**
|
|
1293
|
-
* Portal change password section header
|
|
1294
|
-
*
|
|
1295
|
-
* @uiName Change Password Header
|
|
1310
|
+
* @uiName Portal change password section header
|
|
1296
1311
|
*/
|
|
1297
1312
|
this.portalChangePasswordHeader = "Password";
|
|
1298
1313
|
/**
|
|
1299
|
-
* @uiName
|
|
1314
|
+
* @uiName Portal change password button text
|
|
1300
1315
|
*/
|
|
1301
1316
|
this.portalChangePasswordButtonText = "Change your password...";
|
|
1302
1317
|
stencilHooks_module.h$1(this);
|
|
@@ -1424,55 +1439,39 @@ const PortalLogin = class {
|
|
|
1424
1439
|
index.registerInstance(this, hostRef);
|
|
1425
1440
|
this.ignored = true;
|
|
1426
1441
|
/**
|
|
1427
|
-
* Page navigated to after sign-in
|
|
1428
|
-
*
|
|
1429
|
-
* @uiName Next Page Path
|
|
1442
|
+
* @uiName Page navigated to after sign-in
|
|
1430
1443
|
*/
|
|
1431
1444
|
this.nextPage = "/";
|
|
1432
1445
|
/**
|
|
1433
|
-
* Label for email field
|
|
1434
|
-
*
|
|
1435
|
-
* @uiName Email Label
|
|
1446
|
+
* @uiName Label for email field
|
|
1436
1447
|
*/
|
|
1437
1448
|
this.emailLabel = "Email";
|
|
1438
1449
|
/**
|
|
1439
|
-
* Label for password field
|
|
1440
|
-
*
|
|
1441
|
-
* @uiName Password Label
|
|
1450
|
+
* @uiName Label for password field
|
|
1442
1451
|
*/
|
|
1443
1452
|
this.passwordLabel = "Password";
|
|
1444
1453
|
/**
|
|
1445
|
-
* Label for submit button
|
|
1446
|
-
*
|
|
1447
|
-
* @uiName Submit Button Text
|
|
1454
|
+
* @uiName Label for submit button
|
|
1448
1455
|
*/
|
|
1449
1456
|
this.submitLabel = "Sign In";
|
|
1450
1457
|
/**
|
|
1451
|
-
* Label for forgotten password button
|
|
1452
|
-
*
|
|
1453
|
-
* @uiName Forgot Password Text
|
|
1458
|
+
* @uiName Label for forgotten password button
|
|
1454
1459
|
*/
|
|
1455
1460
|
this.forgotPasswordLabel = "Forgot Password?";
|
|
1456
1461
|
/**
|
|
1457
|
-
* Label for register button
|
|
1458
|
-
*
|
|
1459
|
-
* @uiName Register Button Text
|
|
1462
|
+
* @uiName Label for register navigation button
|
|
1460
1463
|
*/
|
|
1461
1464
|
this.registerLabel = "Register";
|
|
1462
1465
|
/**
|
|
1463
|
-
* @uiName Heading
|
|
1466
|
+
* @uiName Heading label
|
|
1464
1467
|
*/
|
|
1465
1468
|
this.pageLabel = "Sign in to your account";
|
|
1466
1469
|
/**
|
|
1467
|
-
* Register
|
|
1468
|
-
*
|
|
1469
|
-
* @uiName Register Path
|
|
1470
|
+
* @uiName Register button redirection path
|
|
1470
1471
|
*/
|
|
1471
1472
|
this.registerPath = "/register";
|
|
1472
1473
|
/**
|
|
1473
|
-
* Forgot password redirect path
|
|
1474
|
-
*
|
|
1475
|
-
* @uiName Forgot Password Path
|
|
1474
|
+
* @uiName Forgot password button redirect path
|
|
1476
1475
|
*/
|
|
1477
1476
|
this.forgotPasswordPath = "/forgotPassword";
|
|
1478
1477
|
stencilHooks_module.h$1(this);
|
|
@@ -5496,61 +5495,53 @@ const PortalRegister = class {
|
|
|
5496
5495
|
index.registerInstance(this, hostRef);
|
|
5497
5496
|
this.ignored = true;
|
|
5498
5497
|
/**
|
|
5499
|
-
* Page navigated to after registration
|
|
5500
|
-
*
|
|
5501
|
-
* @uiName Next Page
|
|
5498
|
+
* @uiName Page navigated to after registration
|
|
5502
5499
|
*/
|
|
5503
5500
|
this.nextPage = "/";
|
|
5504
5501
|
/**
|
|
5505
5502
|
* The page that users are redirected to from the verification email.
|
|
5506
5503
|
*
|
|
5507
|
-
* @uiName Email
|
|
5504
|
+
* @uiName Email redirection base path
|
|
5508
5505
|
*/
|
|
5509
5506
|
this.redirectPath = "/verifyEmail";
|
|
5510
5507
|
/**
|
|
5511
|
-
* @uiName
|
|
5508
|
+
* @uiName Label for email field
|
|
5512
5509
|
*/
|
|
5513
5510
|
this.emailLabel = "Email";
|
|
5514
5511
|
/**
|
|
5515
|
-
* @uiName
|
|
5512
|
+
* @uiName Label for password field
|
|
5516
5513
|
*/
|
|
5517
5514
|
this.passwordLabel = "Password";
|
|
5518
5515
|
/**
|
|
5519
|
-
* @uiName
|
|
5516
|
+
* @uiName Label for submit button
|
|
5520
5517
|
*/
|
|
5521
5518
|
this.submitLabel = "Register";
|
|
5522
5519
|
/**
|
|
5523
|
-
* @uiName
|
|
5520
|
+
* @uiName Label for login navigation button
|
|
5524
5521
|
*/
|
|
5525
5522
|
this.loginLabel = "Sign in";
|
|
5526
5523
|
/**
|
|
5527
|
-
* @uiName
|
|
5524
|
+
* @uiName Label for confirm password field
|
|
5528
5525
|
*/
|
|
5529
5526
|
this.confirmPasswordLabel = "Confirm Password";
|
|
5530
5527
|
/**
|
|
5531
|
-
* Show
|
|
5532
|
-
*
|
|
5533
|
-
* @uiName Show Confirm Password Field
|
|
5528
|
+
* @uiName Show confirm password field
|
|
5534
5529
|
*/
|
|
5535
5530
|
this.confirmPassword = false;
|
|
5536
5531
|
/**
|
|
5537
|
-
* @uiName
|
|
5532
|
+
* @uiName Use password field with live validation
|
|
5538
5533
|
*/
|
|
5539
5534
|
this.enablePasswordValidation = true;
|
|
5540
5535
|
/**
|
|
5541
|
-
* Hide default input fields to use custom fields
|
|
5542
|
-
*
|
|
5543
|
-
* @uiName Hide Default Inputs
|
|
5536
|
+
* @uiName Hide default input fields to use custom fields
|
|
5544
5537
|
*/
|
|
5545
5538
|
this.hideInputs = false;
|
|
5546
5539
|
/**
|
|
5547
|
-
* @uiName Heading
|
|
5540
|
+
* @uiName Heading label
|
|
5548
5541
|
*/
|
|
5549
5542
|
this.pageLabel = "Register";
|
|
5550
5543
|
/**
|
|
5551
|
-
*
|
|
5552
|
-
*
|
|
5553
|
-
* @uiName Login Path
|
|
5544
|
+
* @uiName Sign in button redirection path
|
|
5554
5545
|
*/
|
|
5555
5546
|
this.loginPath = "/login";
|
|
5556
5547
|
stencilHooks_module.h$1(this);
|
|
@@ -5872,13 +5863,11 @@ const SqmReferralIframe = class {
|
|
|
5872
5863
|
index.registerInstance(this, hostRef);
|
|
5873
5864
|
this.ignored = true;
|
|
5874
5865
|
/**
|
|
5875
|
-
* Height of the iframe container
|
|
5876
|
-
* @uiName Iframe Height
|
|
5866
|
+
* @uiName Height of the iframe container
|
|
5877
5867
|
*/
|
|
5878
5868
|
this.iframeHeight = "100%";
|
|
5879
5869
|
/**
|
|
5880
|
-
* Width of the iframe container
|
|
5881
|
-
* @uiName Iframe Width
|
|
5870
|
+
* @uiName Width of the iframe container
|
|
5882
5871
|
*/
|
|
5883
5872
|
this.iframeWidth = "100%";
|
|
5884
5873
|
stencilHooks_module.h$1(this);
|
|
@@ -6721,11 +6710,9 @@ const SqmRewardExchangeList = class {
|
|
|
6721
6710
|
index.registerInstance(this, hostRef);
|
|
6722
6711
|
this.ignored = true;
|
|
6723
6712
|
/**
|
|
6724
|
-
*
|
|
6725
|
-
*
|
|
6726
|
-
* @uiName Not Available Error
|
|
6713
|
+
* @uiName Exchange button text
|
|
6727
6714
|
*/
|
|
6728
|
-
this.notAvailableError = "{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {unavailableReasonCode} }";
|
|
6715
|
+
this.notAvailableError = "{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {{unavailableReasonCode}} }";
|
|
6729
6716
|
/**
|
|
6730
6717
|
* @uiName Choose Reward Progress Title
|
|
6731
6718
|
*/
|
|
@@ -6755,7 +6742,7 @@ const SqmRewardExchangeList = class {
|
|
|
6755
6742
|
*/
|
|
6756
6743
|
this.continueText = "Continue";
|
|
6757
6744
|
/**
|
|
6758
|
-
|
|
6745
|
+
* Displayed on the reward selection page.
|
|
6759
6746
|
* @uiName Continue to Confirmation Button Text
|
|
6760
6747
|
*/
|
|
6761
6748
|
this.continueToConfirmationText = "Continue to confirmation";
|
|
@@ -6764,20 +6751,17 @@ const SqmRewardExchangeList = class {
|
|
|
6764
6751
|
*/
|
|
6765
6752
|
this.redeemText = "Redeem";
|
|
6766
6753
|
/**
|
|
6767
|
-
|
|
6768
|
-
*
|
|
6754
|
+
* Displayed as the header for the confirmation page.
|
|
6769
6755
|
* @uiName Confirmation Title Text
|
|
6770
6756
|
*/
|
|
6771
6757
|
this.redeemTitle = "Confirm and redeem";
|
|
6772
6758
|
/**
|
|
6773
|
-
|
|
6774
|
-
*
|
|
6759
|
+
* Displayed on the success screen when a user successfully exchanges for a reward.
|
|
6775
6760
|
* @uiName Redemption Success Message
|
|
6776
6761
|
*/
|
|
6777
6762
|
this.redemptionSuccessText = "Redeemed {sourceValue} for {destinationValue}";
|
|
6778
6763
|
/**
|
|
6779
|
-
|
|
6780
|
-
*
|
|
6764
|
+
* Displayed on the reward exchange cards.
|
|
6781
6765
|
* @uiName Reward Exchange Amount Text
|
|
6782
6766
|
*/
|
|
6783
6767
|
this.sourceAmountMessage = "{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}";
|
|
@@ -6796,19 +6780,17 @@ const SqmRewardExchangeList = class {
|
|
|
6796
6780
|
*/
|
|
6797
6781
|
this.selectText = "Select amount to receive";
|
|
6798
6782
|
/**
|
|
6799
|
-
|
|
6800
|
-
*
|
|
6783
|
+
* Shown if an error occurs when loading the reward exchange.
|
|
6801
6784
|
* @uiName Reward List Error Message
|
|
6802
6785
|
*/
|
|
6803
6786
|
this.queryError = "Unable to load reward exchange list. Please try again";
|
|
6804
6787
|
/**
|
|
6805
|
-
|
|
6806
|
-
*
|
|
6788
|
+
* Shown if an error occurs during the reward exchange.
|
|
6807
6789
|
* @uiName Redemption Error Message
|
|
6808
6790
|
*/
|
|
6809
6791
|
this.redemptionError = "An error occured trying to redeem this reward. Please try again";
|
|
6810
6792
|
/**
|
|
6811
|
-
* @uiName Not Enough Error Message
|
|
6793
|
+
* @uiName Not Enough Available Error Message
|
|
6812
6794
|
*/
|
|
6813
6795
|
this.notEnoughError = "Not enough {sourceUnit} to redeem for this reward";
|
|
6814
6796
|
/**
|
|
@@ -6822,7 +6804,7 @@ const SqmRewardExchangeList = class {
|
|
|
6822
6804
|
/**
|
|
6823
6805
|
* Set the number of placeholder cards to be shown in loading state.
|
|
6824
6806
|
*
|
|
6825
|
-
* @
|
|
6807
|
+
* @undocumented Loading Cards
|
|
6826
6808
|
*/
|
|
6827
6809
|
this.skeletonCardNum = 8;
|
|
6828
6810
|
/**
|
|
@@ -7107,11 +7089,11 @@ const ShareButton = class {
|
|
|
7107
7089
|
*/
|
|
7108
7090
|
this.iconslot = "prefix";
|
|
7109
7091
|
/**
|
|
7110
|
-
* @uiName Hide
|
|
7092
|
+
* @uiName Hide the icon
|
|
7111
7093
|
*/
|
|
7112
7094
|
this.hideicon = false;
|
|
7113
7095
|
/**
|
|
7114
|
-
* @uiName Hide
|
|
7096
|
+
* @uiName Hide the text
|
|
7115
7097
|
*/
|
|
7116
7098
|
this.hidetext = false;
|
|
7117
7099
|
stencilHooks_module.h$1(this);
|
|
@@ -7184,13 +7166,14 @@ function useShareCode(props) {
|
|
|
7184
7166
|
return { ...props, onClick, open, shareString };
|
|
7185
7167
|
}
|
|
7186
7168
|
|
|
7169
|
+
const DEFAULT_TOOLTIP_LIFESPAN = 1000;
|
|
7187
7170
|
const ShareCode = class {
|
|
7188
7171
|
constructor(hostRef) {
|
|
7189
7172
|
index.registerInstance(this, hostRef);
|
|
7190
7173
|
/**
|
|
7191
|
-
* This is shown after someone has successfully copied the
|
|
7174
|
+
* This is shown after someone has successfully copied the cpde to the clipboard.
|
|
7192
7175
|
*
|
|
7193
|
-
* @uiName Tooltip
|
|
7176
|
+
* @uiName Tooltip text
|
|
7194
7177
|
*/
|
|
7195
7178
|
this.tooltiptext = "Copied to Clipboard";
|
|
7196
7179
|
/**
|
|
@@ -7198,7 +7181,7 @@ const ShareCode = class {
|
|
|
7198
7181
|
*
|
|
7199
7182
|
* @uiName Tooltip lifespan
|
|
7200
7183
|
*/
|
|
7201
|
-
this.tooltiplifespan =
|
|
7184
|
+
this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN;
|
|
7202
7185
|
stencilHooks_module.h$1(this);
|
|
7203
7186
|
}
|
|
7204
7187
|
disconnectedCallback() { }
|
|
@@ -7227,21 +7210,22 @@ function useDemoShareCode(props) {
|
|
|
7227
7210
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
7228
7211
|
}
|
|
7229
7212
|
|
|
7213
|
+
const DEFAULT_TOOLTIP_LIFESPAN$1 = 1000;
|
|
7230
7214
|
const ShareLink = class {
|
|
7231
7215
|
constructor(hostRef) {
|
|
7232
7216
|
index.registerInstance(this, hostRef);
|
|
7233
7217
|
/**
|
|
7234
7218
|
* This is shown after someone has successfully copied the link to the clipboard.
|
|
7235
7219
|
*
|
|
7236
|
-
* @uiName Tooltip
|
|
7220
|
+
* @uiName Tooltip text
|
|
7237
7221
|
*/
|
|
7238
7222
|
this.tooltiptext = "Copied to Clipboard";
|
|
7239
7223
|
/**
|
|
7240
7224
|
* The number of milliseconds that the tooltip will appear for
|
|
7241
7225
|
*
|
|
7242
|
-
* @uiName Tooltip
|
|
7226
|
+
* @uiName Tooltip lifespan
|
|
7243
7227
|
*/
|
|
7244
|
-
this.tooltiplifespan =
|
|
7228
|
+
this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN$1;
|
|
7245
7229
|
stencilHooks_module.h$1(this);
|
|
7246
7230
|
}
|
|
7247
7231
|
disconnectedCallback() { }
|
|
@@ -7275,7 +7259,7 @@ const StatContainer = class {
|
|
|
7275
7259
|
index.registerInstance(this, hostRef);
|
|
7276
7260
|
this.ignored = true;
|
|
7277
7261
|
/**
|
|
7278
|
-
* @uiName Space
|
|
7262
|
+
* @uiName Space between stats
|
|
7279
7263
|
* @uiType string
|
|
7280
7264
|
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
7281
7265
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
@@ -7364,94 +7348,76 @@ const TaskCard = class {
|
|
|
7364
7348
|
this.ignored = true;
|
|
7365
7349
|
/**
|
|
7366
7350
|
* @uiName Reward Amount
|
|
7367
|
-
* @uiGroup Reward
|
|
7368
7351
|
*/
|
|
7369
7352
|
this.rewardAmount = "0";
|
|
7370
7353
|
/**
|
|
7371
7354
|
* @uiName Reward Unit
|
|
7372
|
-
* @uiGroup Reward
|
|
7373
7355
|
*/
|
|
7374
7356
|
this.rewardUnit = "Points";
|
|
7375
7357
|
/**
|
|
7376
7358
|
* @uiName Title Text
|
|
7377
|
-
* @uiGroup Task
|
|
7378
7359
|
*/
|
|
7379
7360
|
this.cardTitle = "Title Text";
|
|
7380
7361
|
/**
|
|
7381
7362
|
* @uiName Description Text
|
|
7382
|
-
* @uiGroup Task
|
|
7383
7363
|
*/
|
|
7384
7364
|
this.description = "";
|
|
7385
7365
|
/**
|
|
7386
7366
|
* @uiName Goal Repeatable
|
|
7387
|
-
* @uiGroup Goal
|
|
7388
7367
|
*/
|
|
7389
7368
|
this.repeatable = false;
|
|
7390
7369
|
/**
|
|
7391
7370
|
* The number of times a reward can be earned. Use zero for no limit (the default).
|
|
7392
7371
|
*
|
|
7393
7372
|
* @uiName Repeat Amount
|
|
7394
|
-
* @uiGroup Reward
|
|
7395
7373
|
*/
|
|
7396
7374
|
this.finite = 0;
|
|
7397
7375
|
/**
|
|
7398
7376
|
* @uiName Show Progress Bar
|
|
7399
|
-
* @uiGroup Goal
|
|
7400
7377
|
*/
|
|
7401
7378
|
this.showProgressBar = false;
|
|
7402
7379
|
/**
|
|
7403
7380
|
* Sets the goal for users progress to know when a task has been completed. If repeatable is checked, repeatable goals is an increment of this.
|
|
7404
7381
|
*
|
|
7405
7382
|
* @uiName Goal Completion Number
|
|
7406
|
-
* @uiGroup Goal
|
|
7407
7383
|
*/
|
|
7408
7384
|
this.goal = 1;
|
|
7409
7385
|
/**
|
|
7410
7386
|
* @uiName Progress Bar Steps
|
|
7411
|
-
* @uiGroup Goal
|
|
7412
7387
|
*/
|
|
7413
7388
|
this.steps = false;
|
|
7414
7389
|
/**
|
|
7415
7390
|
* @uiName Progress Bar Unit
|
|
7416
|
-
* @uiGroup Goal
|
|
7417
7391
|
*/
|
|
7418
7392
|
this.progressBarUnit = "";
|
|
7419
7393
|
/**
|
|
7420
7394
|
* @uiName Expiry Date Message
|
|
7421
|
-
* @uiGroup Task
|
|
7422
7395
|
*/
|
|
7423
7396
|
this.expiryMessage = "Ends {endDate}";
|
|
7424
7397
|
/**
|
|
7425
7398
|
* Shown to users before the start of the task duration.
|
|
7426
7399
|
*
|
|
7427
7400
|
* @uiName Start Date Message
|
|
7428
|
-
* @uiGroup Task
|
|
7429
7401
|
*/
|
|
7430
7402
|
this.startsOnMessage = "Starts {startDate}";
|
|
7431
7403
|
/**
|
|
7432
7404
|
* Shown to users after the end of the task duration.
|
|
7433
7405
|
*
|
|
7434
7406
|
* @uiName Ended Date Message
|
|
7435
|
-
* @uiGroup Task
|
|
7436
7407
|
*/
|
|
7437
7408
|
this.endedMessage = "Ended {endDate}";
|
|
7438
7409
|
/**
|
|
7439
7410
|
* Displays the amount of times that a user has completed a repeatable task.
|
|
7440
7411
|
*
|
|
7441
7412
|
* @uiName Completed Count Text
|
|
7442
|
-
* @uiGroup Task
|
|
7443
7413
|
*/
|
|
7444
7414
|
this.completedText = "Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}";
|
|
7445
7415
|
/**
|
|
7446
7416
|
* @uiName CTA Button Text
|
|
7447
|
-
* @uiGroup CTA Button
|
|
7448
7417
|
*/
|
|
7449
7418
|
this.buttonText = "Complete Action";
|
|
7450
7419
|
/**
|
|
7451
|
-
* CTA Button Link
|
|
7452
|
-
* @uiName Open In New Tab
|
|
7453
|
-
* @uiGroup CTA Button
|
|
7454
|
-
* @default undefined
|
|
7420
|
+
* @uiName CTA Button Link Open in New Tab
|
|
7455
7421
|
*/
|
|
7456
7422
|
this.openNewTab = false;
|
|
7457
7423
|
stencilHooks_module.h$1(this);
|
|
@@ -7654,12 +7620,11 @@ const UserName = class {
|
|
|
7654
7620
|
index.registerInstance(this, hostRef);
|
|
7655
7621
|
this._ignored = true;
|
|
7656
7622
|
/**
|
|
7657
|
-
* Fallback name for
|
|
7658
|
-
* @uiName Fallback Name
|
|
7623
|
+
* @uiName Fallback name for nameless users
|
|
7659
7624
|
*/
|
|
7660
7625
|
this.fallback = "Anonymous User";
|
|
7661
7626
|
/**
|
|
7662
|
-
* @uiName Loading
|
|
7627
|
+
* @uiName Loading text
|
|
7663
7628
|
*/
|
|
7664
7629
|
this.loadingText = "...";
|
|
7665
7630
|
stencilHooks_module.h$1(this);
|