@saasquatch/mint-components 1.5.0-113 → 1.5.0-114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{GenericTableView-f947b749.js → GenericTableView-a69fddb5.js} +4 -2
- package/dist/cjs/{ShadowViewAddon-79dd6c07.js → ShadowViewAddon-b0dc2cbf.js} +14 -19
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_30.cjs.entry.js +20 -8
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +9 -12
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +42 -50
- package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +1 -1
- package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +2 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +0 -5
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +1 -1
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +0 -1
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +10 -10
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +8 -24
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +1 -26
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
- package/dist/collection/components/sqm-scroll/Scroll.stories.js +14 -23
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +101 -147
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +8 -8
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +13 -13
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +21 -21
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +3 -1
- package/dist/collection/tables/GenericTableView.js +4 -2
- package/dist/esm/{GenericTableView-6b7b537b.js → GenericTableView-042ed0ca.js} +4 -2
- package/dist/esm/{ShadowViewAddon-9c382e30.js → ShadowViewAddon-1c28d584.js} +14 -19
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_30.entry.js +20 -8
- package/dist/esm/sqm-referral-table_11.entry.js +1 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +9 -12
- package/dist/esm/sqm-stencilbook.entry.js +42 -50
- package/dist/esm-es5/GenericTableView-042ed0ca.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-1c28d584.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_30.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.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-46c31936.entry.js +1 -0
- package/dist/mint-components/p-55f3d841.system.js +1 -1
- package/dist/mint-components/{p-e16186c0.system.entry.js → p-660e371f.system.entry.js} +1 -1
- package/dist/mint-components/{p-1cd23e56.system.entry.js → p-6918a207.system.entry.js} +1 -1
- package/dist/mint-components/{p-bb497e73.entry.js → p-920a2900.entry.js} +2 -2
- package/dist/mint-components/p-9a2b9ff8.system.entry.js +1 -0
- package/dist/mint-components/p-a11e1cb1.system.js +1 -0
- package/dist/mint-components/p-b74de10f.js +1 -0
- package/dist/mint-components/p-b7f5d9e7.entry.js +9 -0
- package/dist/mint-components/p-bf49f17f.system.js +1 -0
- package/dist/mint-components/{p-eb61462d.entry.js → p-d79e1aa4.entry.js} +8 -8
- package/dist/mint-components/{p-2c5d7a20.js → p-f017e3da.js} +3 -3
- package/dist/mint-components/{p-e2731437.system.entry.js → p-fa68591b.system.entry.js} +1 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +0 -4
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -1
- package/dist/types/components/sqm-scroll/Scroll.stories.d.ts +1 -0
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +56 -8
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +6 -6
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +9 -9
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +2 -0
- package/dist/types/components.d.ts +116 -42
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/shoelace/assets/icons/123.svg +3 -0
- package/shoelace/assets/icons/activity.svg +3 -0
- package/shoelace/assets/icons/apple.svg +4 -0
- package/shoelace/assets/icons/bandaid-fill.svg +3 -0
- package/shoelace/assets/icons/bandaid.svg +4 -0
- package/shoelace/assets/icons/bank.svg +3 -0
- package/shoelace/assets/icons/bank2.svg +3 -0
- package/shoelace/assets/icons/behance.svg +3 -0
- package/shoelace/assets/icons/bell-slash-fill.svg +3 -0
- package/shoelace/assets/icons/bell-slash.svg +3 -0
- package/shoelace/assets/icons/bluetooth.svg +3 -0
- package/shoelace/assets/icons/body-text.svg +3 -0
- package/shoelace/assets/icons/boombox-fill.svg +4 -0
- package/shoelace/assets/icons/boombox.svg +6 -0
- package/shoelace/assets/icons/boxes.svg +3 -0
- package/shoelace/assets/icons/cash-coin.svg +6 -0
- package/shoelace/assets/icons/check-lg.svg +3 -0
- package/shoelace/assets/icons/cloud-haze2.svg +3 -0
- package/shoelace/assets/icons/coin.svg +5 -0
- package/shoelace/assets/icons/currency-bitcoin.svg +3 -0
- package/shoelace/assets/icons/currency-dollar.svg +3 -0
- package/shoelace/assets/icons/currency-euro.svg +3 -0
- package/shoelace/assets/icons/currency-exchange.svg +3 -0
- package/shoelace/assets/icons/currency-pound.svg +3 -0
- package/shoelace/assets/icons/currency-yen.svg +3 -0
- package/shoelace/assets/icons/dash-lg.svg +3 -0
- package/shoelace/assets/icons/device-hdd-fill.svg +4 -0
- package/shoelace/assets/icons/device-hdd.svg +5 -0
- package/shoelace/assets/icons/device-ssd-fill.svg +4 -0
- package/shoelace/assets/icons/device-ssd.svg +4 -0
- package/shoelace/assets/icons/displayport-fill.svg +3 -0
- package/shoelace/assets/icons/displayport.svg +4 -0
- package/shoelace/assets/icons/dpad-fill.svg +3 -0
- package/shoelace/assets/icons/dpad.svg +4 -0
- package/shoelace/assets/icons/dribbble.svg +3 -0
- package/shoelace/assets/icons/ear-fill.svg +3 -0
- package/shoelace/assets/icons/ear.svg +3 -0
- package/shoelace/assets/icons/easel2-fill.svg +4 -0
- package/shoelace/assets/icons/easel2.svg +3 -0
- package/shoelace/assets/icons/easel3-fill.svg +3 -0
- package/shoelace/assets/icons/easel3.svg +3 -0
- package/shoelace/assets/icons/envelope-check-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-check.svg +4 -0
- package/shoelace/assets/icons/envelope-dash-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-dash.svg +4 -0
- package/shoelace/assets/icons/envelope-exclamation-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-exclamation.svg +4 -0
- package/shoelace/assets/icons/envelope-plus-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-plus.svg +4 -0
- package/shoelace/assets/icons/envelope-slash-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-slash.svg +4 -0
- package/shoelace/assets/icons/envelope-x-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-x.svg +4 -0
- package/shoelace/assets/icons/ethernet.svg +4 -0
- package/shoelace/assets/icons/exclamation-lg.svg +3 -0
- package/shoelace/assets/icons/explicit-fill.svg +3 -0
- package/shoelace/assets/icons/explicit.svg +4 -0
- package/shoelace/assets/icons/fan.svg +4 -0
- package/shoelace/assets/icons/file-earmark-pdf-fill.svg +4 -0
- package/shoelace/assets/icons/file-earmark-pdf.svg +4 -0
- package/shoelace/assets/icons/file-pdf-fill.svg +4 -0
- package/shoelace/assets/icons/file-pdf.svg +4 -0
- package/shoelace/assets/icons/fingerprint.svg +7 -0
- package/shoelace/assets/icons/gender-ambiguous.svg +3 -0
- package/shoelace/assets/icons/gender-female.svg +3 -0
- package/shoelace/assets/icons/gender-male.svg +3 -0
- package/shoelace/assets/icons/gender-trans.svg +3 -0
- package/shoelace/assets/icons/git.svg +3 -0
- package/shoelace/assets/icons/gpu-card.svg +5 -0
- package/shoelace/assets/icons/graph-down-arrow.svg +3 -0
- package/shoelace/assets/icons/graph-up-arrow.svg +3 -0
- package/shoelace/assets/icons/hdmi-fill.svg +3 -0
- package/shoelace/assets/icons/hdmi.svg +4 -0
- package/shoelace/assets/icons/headset-vr.svg +4 -0
- package/shoelace/assets/icons/hypnotize.svg +4 -0
- package/shoelace/assets/icons/infinity.svg +3 -0
- package/shoelace/assets/icons/info-lg.svg +3 -0
- package/shoelace/assets/icons/line.svg +3 -0
- package/shoelace/assets/icons/list-columns-reverse.svg +3 -0
- package/shoelace/assets/icons/list-columns.svg +3 -0
- package/shoelace/assets/icons/magic.svg +3 -0
- package/shoelace/assets/icons/mastodon.svg +3 -0
- package/shoelace/assets/icons/medium.svg +3 -0
- package/shoelace/assets/icons/memory.svg +3 -0
- package/shoelace/assets/icons/messenger.svg +3 -0
- package/shoelace/assets/icons/meta.svg +3 -0
- package/shoelace/assets/icons/microsoft.svg +3 -0
- package/shoelace/assets/icons/modem-fill.svg +3 -0
- package/shoelace/assets/icons/modem.svg +4 -0
- package/shoelace/assets/icons/mortarboard-fill.svg +4 -0
- package/shoelace/assets/icons/mortarboard.svg +4 -0
- package/shoelace/assets/icons/motherboard-fill.svg +4 -0
- package/shoelace/assets/icons/motherboard.svg +4 -0
- package/shoelace/assets/icons/nintendo-switch.svg +4 -0
- package/shoelace/assets/icons/optical-audio-fill.svg +4 -0
- package/shoelace/assets/icons/optical-audio.svg +5 -0
- package/shoelace/assets/icons/paypal.svg +3 -0
- package/shoelace/assets/icons/pc-display-horizontal.svg +3 -0
- package/shoelace/assets/icons/pc-display.svg +3 -0
- package/shoelace/assets/icons/pc-horizontal.svg +3 -0
- package/shoelace/assets/icons/pc.svg +3 -0
- package/shoelace/assets/icons/pci-card.svg +4 -0
- package/shoelace/assets/icons/person-rolodex.svg +4 -0
- package/shoelace/assets/icons/person-video.svg +4 -0
- package/shoelace/assets/icons/person-video2.svg +4 -0
- package/shoelace/assets/icons/person-video3.svg +4 -0
- package/shoelace/assets/icons/person-workspace.svg +4 -0
- package/shoelace/assets/icons/piggy-bank-fill.svg +3 -0
- package/shoelace/assets/icons/piggy-bank.svg +4 -0
- package/shoelace/assets/icons/pin-map-fill.svg +4 -0
- package/shoelace/assets/icons/pin-map.svg +4 -0
- package/shoelace/assets/icons/pinterest.svg +3 -0
- package/shoelace/assets/icons/playstation.svg +3 -0
- package/shoelace/assets/icons/plus-lg.svg +3 -0
- package/shoelace/assets/icons/plus-slash-minus.svg +3 -0
- package/shoelace/assets/icons/projector-fill.svg +3 -0
- package/shoelace/assets/icons/projector.svg +4 -0
- package/shoelace/assets/icons/qr-code-scan.svg +7 -0
- package/shoelace/assets/icons/qr-code.svg +7 -0
- package/shoelace/assets/icons/question-lg.svg +3 -0
- package/shoelace/assets/icons/quora.svg +3 -0
- package/shoelace/assets/icons/quote.svg +3 -0
- package/shoelace/assets/icons/radioactive.svg +4 -0
- package/shoelace/assets/icons/recycle.svg +3 -0
- package/shoelace/assets/icons/reddit.svg +4 -0
- package/shoelace/assets/icons/robot.svg +4 -0
- package/shoelace/assets/icons/router-fill.svg +6 -0
- package/shoelace/assets/icons/router.svg +6 -0
- package/shoelace/assets/icons/safe-fill.svg +4 -0
- package/shoelace/assets/icons/safe.svg +4 -0
- package/shoelace/assets/icons/safe2-fill.svg +4 -0
- package/shoelace/assets/icons/safe2.svg +4 -0
- package/shoelace/assets/icons/sd-card-fill.svg +3 -0
- package/shoelace/assets/icons/sd-card.svg +4 -0
- package/shoelace/assets/icons/send-check-fill.svg +4 -0
- package/shoelace/assets/icons/send-check.svg +4 -0
- package/shoelace/assets/icons/send-dash-fill.svg +4 -0
- package/shoelace/assets/icons/send-dash.svg +4 -0
- package/shoelace/assets/icons/send-exclamation-fill.svg +4 -0
- package/shoelace/assets/icons/send-exclamation.svg +4 -0
- package/shoelace/assets/icons/send-fill.svg +3 -0
- package/shoelace/assets/icons/send-plus-fill.svg +4 -0
- package/shoelace/assets/icons/send-plus.svg +4 -0
- package/shoelace/assets/icons/send-slash-fill.svg +4 -0
- package/shoelace/assets/icons/send-slash.svg +4 -0
- package/shoelace/assets/icons/send-x-fill.svg +4 -0
- package/shoelace/assets/icons/send-x.svg +4 -0
- package/shoelace/assets/icons/send.svg +3 -0
- package/shoelace/assets/icons/signal.svg +3 -0
- package/shoelace/assets/icons/skype.svg +3 -0
- package/shoelace/assets/icons/slash-lg.svg +3 -0
- package/shoelace/assets/icons/snapchat.svg +3 -0
- package/shoelace/assets/icons/spotify.svg +3 -0
- package/shoelace/assets/icons/stack-overflow.svg +4 -0
- package/shoelace/assets/icons/steam.svg +4 -0
- package/shoelace/assets/icons/strava.svg +3 -0
- package/shoelace/assets/icons/terminal-dash.svg +4 -0
- package/shoelace/assets/icons/terminal-plus.svg +4 -0
- package/shoelace/assets/icons/terminal-split.svg +4 -0
- package/shoelace/assets/icons/terminal-x.svg +4 -0
- package/shoelace/assets/icons/thunderbolt-fill.svg +3 -0
- package/shoelace/assets/icons/thunderbolt.svg +4 -0
- package/shoelace/assets/icons/ticket-detailed-fill.svg +3 -0
- package/shoelace/assets/icons/ticket-detailed.svg +4 -0
- package/shoelace/assets/icons/ticket-fill.svg +3 -0
- package/shoelace/assets/icons/ticket-perforated-fill.svg +3 -0
- package/shoelace/assets/icons/ticket-perforated.svg +4 -0
- package/shoelace/assets/icons/ticket.svg +3 -0
- package/shoelace/assets/icons/tiktok.svg +3 -0
- package/shoelace/assets/icons/translate.svg +4 -0
- package/shoelace/assets/icons/usb-c-fill.svg +3 -0
- package/shoelace/assets/icons/usb-c.svg +4 -0
- package/shoelace/assets/icons/usb-drive-fill.svg +3 -0
- package/shoelace/assets/icons/usb-drive.svg +3 -0
- package/shoelace/assets/icons/usb-fill.svg +3 -0
- package/shoelace/assets/icons/usb-micro-fill.svg +3 -0
- package/shoelace/assets/icons/usb-micro.svg +4 -0
- package/shoelace/assets/icons/usb-mini-fill.svg +3 -0
- package/shoelace/assets/icons/usb-mini.svg +4 -0
- package/shoelace/assets/icons/usb-plug-fill.svg +3 -0
- package/shoelace/assets/icons/usb-plug.svg +3 -0
- package/shoelace/assets/icons/usb-symbol.svg +3 -0
- package/shoelace/assets/icons/usb.svg +4 -0
- package/shoelace/assets/icons/vimeo.svg +3 -0
- package/shoelace/assets/icons/webcam-fill.svg +4 -0
- package/shoelace/assets/icons/webcam.svg +4 -0
- package/shoelace/assets/icons/window-dash.svg +5 -0
- package/shoelace/assets/icons/window-desktop.svg +4 -0
- package/shoelace/assets/icons/window-fullscreen.svg +4 -0
- package/shoelace/assets/icons/window-plus.svg +5 -0
- package/shoelace/assets/icons/window-split.svg +4 -0
- package/shoelace/assets/icons/window-stack.svg +4 -0
- package/shoelace/assets/icons/window-x.svg +5 -0
- package/shoelace/assets/icons/windows.svg +3 -0
- package/shoelace/assets/icons/wordpress.svg +5 -0
- package/shoelace/assets/icons/x-lg.svg +4 -0
- package/shoelace/assets/icons/xbox.svg +3 -0
- package/shoelace/assets/icons/yin-yang.svg +4 -0
- package/shoelace/themes/themes/dark.styles.d.ts +2 -0
- package/shoelace/themes/themes/dark.styles.js +531 -0
- package/shoelace/themes/themes/light.css +439 -0
- package/shoelace/themes/themes/light.styles.d.ts +2 -0
- package/shoelace/themes/themes/light.styles.js +531 -0
- package/dist/esm-es5/GenericTableView-6b7b537b.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-9c382e30.js +0 -1
- package/dist/mint-components/p-1b71a09e.system.entry.js +0 -1
- package/dist/mint-components/p-3f88f8eb.system.js +0 -1
- package/dist/mint-components/p-45581e0b.entry.js +0 -9
- package/dist/mint-components/p-48161ba8.js +0 -1
- package/dist/mint-components/p-546ee840.entry.js +0 -1
- package/dist/mint-components/p-ac303785.system.js +0 -1
|
@@ -11,7 +11,7 @@ require('./extends-08099afd.js');
|
|
|
11
11
|
require('./cjs-1066ec21.js');
|
|
12
12
|
require('./mixins-7b7c59fe.js');
|
|
13
13
|
const JSS = require('./JSS-c65a40f1.js');
|
|
14
|
-
const GenericTableView = require('./GenericTableView-
|
|
14
|
+
const GenericTableView = require('./GenericTableView-a69fddb5.js');
|
|
15
15
|
const luxon = require('./luxon-59ca7d19.js');
|
|
16
16
|
require('./utils-01dbfd4a.js');
|
|
17
17
|
require('./sqm-text-span-view-f101dedf.js');
|
|
@@ -29,7 +29,7 @@ const sqmPortalProfileView = require('./sqm-portal-profile-view-72c40619.js');
|
|
|
29
29
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-1fdc957e.js');
|
|
30
30
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-4c78e231.js');
|
|
31
31
|
const sqmStatContainerView = require('./sqm-stat-container-view-8aaf6cb8.js');
|
|
32
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
32
|
+
const ShadowViewAddon = require('./ShadowViewAddon-b0dc2cbf.js');
|
|
33
33
|
const sqmPortalSectionView = require('./sqm-portal-section-view-186a5f7e.js');
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -1457,11 +1457,11 @@ const ShareButton_stories = {
|
|
|
1457
1457
|
},
|
|
1458
1458
|
};
|
|
1459
1459
|
const WithIconPrefix = () => {
|
|
1460
|
-
const props = { medium: "whatsapp",
|
|
1460
|
+
const props = { medium: "whatsapp", iconSlot: "prefix" };
|
|
1461
1461
|
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1462
1462
|
};
|
|
1463
1463
|
const WithIconSuffix = () => {
|
|
1464
|
-
const props = { medium: "whatsapp",
|
|
1464
|
+
const props = { medium: "whatsapp", iconSlot: "suffix" };
|
|
1465
1465
|
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1466
1466
|
};
|
|
1467
1467
|
const WithIconOverride = () => {
|
|
@@ -1479,15 +1479,15 @@ const TextStyle = () => {
|
|
|
1479
1479
|
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1480
1480
|
};
|
|
1481
1481
|
const WithoutIcon = () => {
|
|
1482
|
-
const props = { medium: "facebook",
|
|
1482
|
+
const props = { medium: "facebook", hideIcon: true };
|
|
1483
1483
|
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1484
1484
|
};
|
|
1485
1485
|
const WithoutText = () => {
|
|
1486
|
-
const props = { medium: "facebook",
|
|
1486
|
+
const props = { medium: "facebook", hideText: true };
|
|
1487
1487
|
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1488
1488
|
};
|
|
1489
1489
|
const TextStyleWithoutIcon = () => {
|
|
1490
|
-
const props = { medium: "facebook", type: "text",
|
|
1490
|
+
const props = { medium: "facebook", type: "text", hideIcon: true };
|
|
1491
1491
|
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1492
1492
|
};
|
|
1493
1493
|
const WithCustomColors = () => {
|
|
@@ -1496,7 +1496,7 @@ const WithCustomColors = () => {
|
|
|
1496
1496
|
type: "text",
|
|
1497
1497
|
backgroundcolor: "red",
|
|
1498
1498
|
textcolor: "yellow",
|
|
1499
|
-
|
|
1499
|
+
iconSlot: "prefix",
|
|
1500
1500
|
};
|
|
1501
1501
|
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Facebook");
|
|
1502
1502
|
};
|
|
@@ -1504,8 +1504,8 @@ const WithCustomBorderRadius = () => {
|
|
|
1504
1504
|
const props = {
|
|
1505
1505
|
medium: "facebook",
|
|
1506
1506
|
type: "text",
|
|
1507
|
-
|
|
1508
|
-
|
|
1507
|
+
borderRadius: 8,
|
|
1508
|
+
iconSlot: "prefix",
|
|
1509
1509
|
};
|
|
1510
1510
|
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Facebook");
|
|
1511
1511
|
};
|
|
@@ -1760,7 +1760,7 @@ const BigStat = /*#__PURE__*/Object.freeze({
|
|
|
1760
1760
|
InvalidStatValue: InvalidStatValue
|
|
1761
1761
|
});
|
|
1762
1762
|
|
|
1763
|
-
const scenario$4 = "@owner:noah\r\n@author:noah\r\nFeature: Leaderboard\r\n\r\n\tThe leaderboard displays the top referrers along with their scores\r\n\r\n\t@motivating\r\n\tScenario Outline: The leaderboard can be for referrals started or converted\r\n\t\tGiven a leaderboard is configured with \"leaderboard-type\" <value>\r\n\t\tAnd a user with started referrals\r\n\t\tAnd a user with converted referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen then only <referralType> referrals are counted in the leaderboard\r\n\t\tExamples:\r\n\t\t\t| value | referralType |\r\n\t\t\t| topStartedReferrers | started |\r\n\t\t\t| topConvertedReferrers | converted |\r\n\t\t\t| | started |\r\n\r\n\t@motivating\r\n\tScenario: If there are any users with referrals the leaderboard is shown\r\n\t\tGiven there is aleast one user\r\n\t\tThen the leaderboard displays up to 10 top referrers\r\n\t\tAnd leaderboard is ordered by the referrers score in descending ordered\r\n\
|
|
1763
|
+
const scenario$4 = "@owner:noah\r\n@author:noah\r\nFeature: Leaderboard\r\n\r\n\tThe leaderboard displays the top referrers along with their scores\r\n\r\n\t@motivating\r\n\tScenario Outline: The leaderboard can be for referrals started or converted\r\n\t\tGiven a leaderboard is configured with \"leaderboard-type\" <value>\r\n\t\tAnd a user with started referrals\r\n\t\tAnd a user with converted referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen then only <referralType> referrals are counted in the leaderboard\r\n\t\tExamples:\r\n\t\t\t| value | referralType |\r\n\t\t\t| topStartedReferrers | started |\r\n\t\t\t| topConvertedReferrers | converted |\r\n\t\t\t| | started |\r\n\r\n\t@motivating\r\n\tScenario: If there are any users with referrals the leaderboard is shown\r\n\t\tGiven there is aleast one user\r\n\t\tThen the leaderboard displays up to 10 top referrers\r\n\t\tAnd leaderboard is ordered by the referrers score in descending ordered\r\n\r\n\t@motivating\r\n\tScenario: The leaderboard can filter referrals within an time interval\r\n\t\tGiven a leaderboard is configured with \"interval\" \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\r\n\t\tAnd a user with referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen only referrals from within \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\" are counted in the leaderboard\r\n\r\n\t@motivating\r\n\tScenario Outline: Rank Type can be configured\r\n\t\tGiven a leaderboard is configured with \"rank-type\" <value>\r\n\t\tAnd a user\r\n\t\tWhen they view the leaderboard\r\n\t\tThen their leaderboard rank is their <rank>\r\n\t\tExamples:\r\n\t\t\t| value | rank |\r\n\t\t\t| rowNumber | row number |\r\n\t\t\t| denseRank | dense rank |\r\n\t\t\t| rank | rank |\r\n\t\t\t| | row number |\r\n\r\n\t@minutiae\r\n\t@ui\r\n\tScenario: An empty state is displayed if no users\r\n\t\tGiven a user\r\n\t\tBut no users have made any referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen an empty state is dislayed\r\n\t\tAnd they see an image of a leaderboard\r\n\t\tAnd below they see \"View your rank in the leaderboard\"\r\n\t\tAnd below they see \"Be the first to refer a friend and reach the top of the leaderboard\"\r\n\t\tAnd the text is center aligned\r\n\r\n\t@minutiae\r\n\t@ui\r\n\tScenario: A custom empty state can be provided\r\n\t\tGiven a user\r\n\t\tBut no users have made any referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen the contents of the \"empty\" slot are displayed\r\n\r\n\t@minutiae\r\n\t@ui\r\n\tScenario: Leaderboard headings can be customized\r\n\t\tGiven a leaderboard\r\n\t\tAnd it has the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| rankheading | Place |\r\n\t\t\t| usersheading | Customer |\r\n\t\t\t| statsheading | Referral Count |\r\n\t\t\t| show-rank | true |\r\n\t\tAnd a user\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they see the following columns with headings\r\n\t\t\t| column | heading |\r\n\t\t\t| rank | Place |\r\n\t\t\t| user | Customer |\r\n\t\t\t| stat | Referral Count |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Rank can be hidden or shown\r\n\t\tGiven a leaderboard\r\n\t\tAnd it has prop \"show-rank\" with <propValue>\r\n\t\tAnd a user\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they <maySee> the rank column\r\n\t\tExamples:\r\n\t\t\t| propValue | maySee |\r\n\t\t\t| true | see |\r\n\t\t\t| false | don't see |\r\n\t\t\t| | don't see |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Users in the top 10 referrers see their leaderboard row highlighted\r\n\t\tGiven a user\r\n\t\tAnd they are in the top 10 referrers\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they see the row with their name highlighted with brand colour\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Users not in the top 10 referrers can see their progress at the bottom of the leaderboard\r\n\t\tGiven a user\r\n\t\tAnd they <mayHmayHaveReferralave>\r\n\t\tAnd they are not in the top 10 referrers\r\n\t\tAnd the leaderboard has prop \"show-user\" with <value>\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they <maySee> \"...\" under the top 10 referrers\r\n\t\tAnd under \"...\" they <maySee> a row highlighted with brand colour\r\n\t\tAnd they <maySee> their name\r\n\t\tAnd they <maySee> their referral count\r\n\t\tAnd they <maySeeRank>\r\n\t\tExamples:\r\n\t\t\t| mayHaveReferral | value | maySee | maySeeRank |\r\n\t\t\t| have referrals | true | see | see their rank |\r\n\t\t\t| don't have referrals | true | see | don't see their rank |\r\n\t\t\t| | false | don't see | don't see their rank |\r\n\t\t\t| have referrals | | see | see their rank |\r\n\r\n\t@minutiae\r\n\tScenario: Users without names are displayed as an \"Anonymous User\"\r\n\t\tGiven a user\r\n\t\tAnd they do not have a first name\r\n\t\tAnd they do not have a last initial\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they see the user displayed as \"Anonymous User\"";
|
|
1764
1764
|
|
|
1765
1765
|
const Leaderboard_stories = {
|
|
1766
1766
|
title: "Components/Leaderboard",
|
|
@@ -2665,7 +2665,7 @@ function setupGraphQL$3() {
|
|
|
2665
2665
|
}, []);
|
|
2666
2666
|
}
|
|
2667
2667
|
const View = (statType, format) => {
|
|
2668
|
-
console.log(`View("${statType}") - CALLED`);
|
|
2668
|
+
// console.log(`View("${statType}") - CALLED`);
|
|
2669
2669
|
setupGraphQL$3();
|
|
2670
2670
|
return (index.h("div", null,
|
|
2671
2671
|
index.h("b", null, "Stat format:"),
|
|
@@ -2873,7 +2873,7 @@ const View$1 = (overrideProps) => {
|
|
|
2873
2873
|
...overrideProps,
|
|
2874
2874
|
};
|
|
2875
2875
|
const { leaderboardType, rankType } = props;
|
|
2876
|
-
console.log(`View("${leaderboardType}") - CALLED`, { ...props });
|
|
2876
|
+
// console.log(`View("${leaderboardType}") - CALLED`, { ...props });
|
|
2877
2877
|
return (index.h("div", { style: { marginBottom: "20px" } },
|
|
2878
2878
|
index.h("sqm-divided-layout", { direction: "row" },
|
|
2879
2879
|
index.h("div", { style: { padding: "10px" } },
|
|
@@ -2955,7 +2955,7 @@ const DemoHookEmpty = createHookStory(() => {
|
|
|
2955
2955
|
anonymousUser: "Anonymous User",
|
|
2956
2956
|
showRank: true,
|
|
2957
2957
|
},
|
|
2958
|
-
}
|
|
2958
|
+
},
|
|
2959
2959
|
} },
|
|
2960
2960
|
index.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png", "empty-state-header": "View your rank in the leaderboard", "empty-state-text": "Be the first to refer a friend and reach the top of the leaderboard" })));
|
|
2961
2961
|
});
|
|
@@ -5523,7 +5523,7 @@ const FullRewardsTable = () => {
|
|
|
5523
5523
|
prevLabel: "Prev",
|
|
5524
5524
|
moreLabel: "View More",
|
|
5525
5525
|
},
|
|
5526
|
-
hiddenColumns: "",
|
|
5526
|
+
hiddenColumns: "1",
|
|
5527
5527
|
mdBreakpoint: 899,
|
|
5528
5528
|
smBreakpoint: 599,
|
|
5529
5529
|
},
|
|
@@ -5805,7 +5805,7 @@ function cartesian(...args) {
|
|
|
5805
5805
|
|
|
5806
5806
|
const scenarioTaskCard = "@author:derek\r\n@owner:kutay\r\nFeature: Task Card\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: A header, body title and a CTA button are always displayed\r\n\t\tGiven the Task Card is configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| rewardAmount | \"40\" |\r\n\t\t\t| rewardUnit | \"Points\" |\r\n\t\t\t| cardTitle | Complete a survey |\r\n\t\t\t| buttonText | Take Survey |\r\n\t\tWhen a user views the Task Card\r\n\t\tThen they see \"40 Points\" as the heading\r\n\t\tAnd the \"40\" is bolded\r\n\t\tAnd they see \"Complete a survey\" bolded in the body\r\n\t\tAnd a details icon in the top right hand corner\r\n\t\tAnd a button with text \"Take Survey\" in the bottom right hand corner\r\n\t\tWhen they click the button\r\n\t\tThen they are redirected to \"example.com\" in a new window\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: A Task Card description can be included but is not required\r\n\t\tGiven a Task Card\r\n\t\tAnd it has <descriptionPropValue>\r\n\t\tWhen a user views the Task card\r\n\t\tThen they <maySee> a chevron icon in the top right\r\n\t\tWhen they attempt to click the chevron\r\n\t\tThen they <maySee> the card description\r\n\t\tExamples:\r\n\t\t\t| descriptionPropValue | maySee |\r\n\t\t\t| This is my task card description | see |\r\n\t\t\t| | don't see |\r\n\r\n\t@motivating\r\n\tScenario Outline: CTA links can open in a new tab or the same tab\r\n\t\tGiven a Task Card\r\n\t\tAnd it has <openNewTabPropValue>\r\n\t\tWhen a user views the Task card\r\n\t\tAnd they click on the CTA\r\n\t\tThen they are redirected to the CTA link in <tab>\r\n\t\tExamples:\r\n\t\t\t| openNewTabPropValue | tab |\r\n\t\t\t| true | a new tab |\r\n\t\t\t| false | the same tab |\r\n\t\t\t| N/A | the same tab |\r\n\r\n\t@minutae\r\n\t@ui\r\n\tScenario: A loading state is displayed while the Task Card is loading\r\n\t\tGiven a Task Card component\r\n\t\tWhen a user views the Task Card\r\n\t\tThen a loading state is displayed\r\n\t\tWhen the Task Card has loaded\r\n\t\tThen the loading state disapears\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The Progress Bar can be shown or hidden but is hidden by default\r\n\t\tGiven a Task Card\r\n\t\tAnd it has <showProgressBarPropValue>\r\n\t\tWhen a user views the Task Card\r\n\t\tThen the progress bar <mayBe> displayed\r\n\t\tExamples:\r\n\t\t\t| showProgressBarPropValue | mayBe |\r\n\t\t\t| true | is |\r\n\t\t\t| false | isn't |\r\n\t\t\t| N/A | isn't |\r\n\r\n\t@motivating\r\n\tScenario: Clicking the CTA Button can trigger an event to be sent and refresh the widget\r\n\t\tGiven a Task card\r\n\t\tAnd it is configured to send an \"test\" event\r\n\t\tWhen a user views the Task card\r\n\t\tAnd clicks on the CTA\r\n\t\tThen a \"test\" event is sent to SSQT on the users behalf\r\n\t\tAnd the contents of the widget the card is dislayed within are refreshed\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Tasks can be repeatable or one-time only but are one-time only by default\r\n\t\tGiven a Task Card\r\n\t\tAnd it has <repeatablePropValue>\r\n\t\tAnd a user who has already completed the task\r\n\t\tWhen they view the Task Card\r\n\t\tThen they see a brand colour checkmark icon beside the card heading\r\n\t\tAnd the card <mayBe> brand colour\r\n\t\tAnd the CTA button <mayBe> disabled\r\n\t\tAnd the CTA button <mayBe> grey\r\n\t\tExamples:\r\n\t\t\t| repeatablePropValue | mayBe |\r\n\t\t\t| true | isn't |\r\n\t\t\t| false | is |\r\n\t\t\t| N/A | is |\r\n\r\n\t@motivating\r\n\tScenario Outline: Display duration hides or shows a task\r\n\t\tGiven a Task Card\r\n\t\tAnd it has a \"display-duration\" interval\r\n\t\tWhen a user views the Card on <day>\r\n\t\tThen card <mayBeHidden>\r\n\t\tExamples:\r\n\t\t\t| day | mayBeHidden |\r\n\t\t\t| a day before the interval | is hidden |\r\n\t\t\t| a day during the interval | is not hidden |\r\n\t\t\t| a day after the interval | is hidden |\r\n\r\n\t@motivating\r\n\tScenario: Task Expiries can be configured and disable the CTA after the expiry\r\n\t\tGiven a Task Card\r\n\t\tAnd it has an \"reward-duration\" interval\r\n\t\tWhen a user views the card on <day>\r\n\t\tThen the card <mayBeDisabled>\r\n\t\tAnd it <mayHaveAlert>\r\n\t\tAnd it <mayHaveExpiryText> on the bottom left hand side of the card\r\n\t\tExamples:\r\n\t\t\t| day | mayBeDisabled | mayHaveAlert | mayHaveExpiryText |\r\n\t\t\t| a day before the expiry interval | is disabled | has alert stating the month, date, year and time the task starts | doesn't have expiry text |\r\n\t\t\t| a day during the expiry interval | isn't disabled | doesn't have an alert | has the month, date, year and time the task expires |\r\n\t\t\t| a day after the expiry interval | is disabled | has alert stating the month, date, year and time the task expired | doesn't have expiry text |\r\n\r\n\t@motivating\r\n\tScenario Outline: Task Card dates support localization\r\n\t\tGiven a Task Card\r\n\t\tAnd it's configured with a expiry duration interval\r\n\t\tWhen a user with <locale> views the task card <atTime>\r\n\t\tThen they <seeDate> translated for <locale>\r\n\t\tExamples:\r\n\t\t\t| atTime | locale | seeDate |\r\n\t\t\t| before the interval | en | Task Start Date |\r\n\t\t\t| during the interval | en | Task End Date |\r\n\t\t\t| after the interval | en | Task Ended Date |\r\n\t\t\t| before the interval | fr | Task Start Date |\r\n\t\t\t| during the interval | fr | Task End Date |\r\n\t\t\t| after the interval | fr | Task Ended Date |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: A task completion count is displayed for repeatable tasks\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured for a repeatable task\r\n\t\tAnd has it has <goalValue>\r\n\t\tAnd a user with <userGoalProgress>\r\n\t\tWhen the user views the task card\r\n\t\tThen they see a repeat icon\r\n\t\tAnd the <text> in the bottom left hand corner\r\n\t\tAnd the <text> is brand colour\r\n\t\tExamples:\r\n\t\t\t| goalValue | userGoalProgress | text |\r\n\t\t\t| 2 | 0 | Completed 0 times |\r\n\t\t\t| 2 | 1 | Completed 0 times |\r\n\t\t\t| 2 | 2 | Completed 1 times |\r\n\t\t\t| 2 | 4 | Completed 2 times |\r\n\r\n\t@motivating\r\n\tScenario Outline: The source of a user's progress can be a custom field or a program goal\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured <progressSourcePath>\r\n\t\tWhen a user views the Task card\r\n\t\tThen the value at <progressSourcePath> is used to benchmark their progress against the \"Goal Completion Count\"\r\n\t\tExamples:\r\n\t\t\t| progressSourcePath |\r\n\t\t\t| /customFields/activityCount |\r\n\t\t\t| /customFields/purchaseTotal |\r\n\t\t\t| /programGoals/count%2FComment-on-Article |\r\n\t\t\t| /programGoals/count/Referral-Started%2Freferrals |\r\n\r\n\t@motivating\r\n\tScenario Outline: The users completion of a goal is calculated by the Goal Completion Number\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured for <goalValue>\r\n\t\tAnd a user who has <progressValue>\r\n\t\tWhen they view the Task Card\r\n\t\tThen they are shown to have <progressValue> towards <goalValue>\r\n\t\tWhen their progress grows larger than <goalValue>\r\n\t\tThen the task is marked as completed\r\n\t\tExamples:\r\n\t\t\t| goalValue | progressValue |\r\n\t\t\t| 1 | 0 |\r\n\t\t\t| 10 | 9 |\r\n\t\t\t| 5 | 2 |\r\n\r\n\t@motivating\r\n\tScenario: The Goal Completion Number defaults to 1\r\n\t\tGiven a Task Card without a configured \"goal\" value\r\n\t\tAnd a user who has <progressValue>\r\n\t\tWhen they view the Task Card\r\n\t\tThen it <mayBe> marked as completed\r\n\t\tExamples:\r\n\t\t\t| progressValue | mayBe |\r\n\t\t\t| 0 | isn't |\r\n\t\t\t| 1 | is |\r\n\t\t\t| 2 | is |";
|
|
5807
5807
|
|
|
5808
|
-
const scenarioProgressBar = "@author:kutay\r\n@owner:kutay\r\nFeature:
|
|
5808
|
+
const scenarioProgressBar = "@author:kutay\r\n@owner:kutay\r\nFeature: The progress bar can be shown as a continuous line with progress and end goal. \r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The progress bar displays a continuous bar with the goal represented by a present\r\n\t\tGiven a Task Card component\r\n\t\tAnd the users progress is <progress>\r\n\t\tAnd the task goal is \"500\"\r\n\t\tAnd the task is not repeatable\r\n\t\tThen I have <progressBar>\r\n\t\tAnd the <progressBar> shows <progress> with <unit> on the right\r\n\t\tAnd the circle on the progress bar is brand colour\r\n\t\tAnd the line behind the circle is brand colour\r\n\t\tAnd the line infront of the circle is grey\r\n\t\tAnd the gift icon has <color>\r\n\t\tAnd the gift icon shows \"500\" with <unit> below\r\n\t\tExamples:\r\n\t\t\t| progress | progressBar | unit | color |\r\n\t\t\t| 0 | ●――――――――――――――――――🎁 | $ | no |\r\n\t\t\t| 100 | ―――●―――――――――――――――🎁 | $ | no |\r\n\t\t\t| 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\t\t\t| 650 | ―――――――――――――――――――🎁 | $ | yes |\r\n\t\t\t| 1200 | ―――――――――――――――――――🎁 | $ | yes |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The progress bar can be displayed with steps instead of a continuous line\r\n\t\tGiven a Task Card component\r\n\t\tAnd the user progress is <progress>\r\n\t\tAnd the goal is \"5\"\r\n\t\tAnd steps are enabled\r\n\t\tThen I have <progressBar>\r\n\t\tAnd the <progressBar> has incrementing steps up to \"5\" in increments of 1\r\n\t\tAnd the steps behind the users progress are brand colour\r\n\t\tAnd the steps infront of the users progress are grey\r\n\t\tAnd the gift icon has <color>\r\n\t\tAnd the gift icon shows \"5\" below\r\n\t\tExamples:\r\n\t\t\t| progress | progressBar | color |\r\n\t\t\t| 0 | ―――○―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 1 | ―――●―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 5 | ―――●―――●―――●―――●―――🎁 | yes |\r\n\t\t\t| 7 | ―――●―――●―――●―――●―――🎁 | yes |\r\n\t\t\t| 12 | ―――●―――●―――●―――●―――🎁 | yes |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The continuous progress bar will continue to progress for repeatable rewards\r\n\t\tGiven a Task Card component\r\n\t\tAnd the user progress is <progress>\r\n\t\tAnd the goal is \"500\"\r\n\t\tAnd it is repeatable\r\n\t\tThen I have <progressBar>\r\n\t\tAnd the <progressBar> shows <progress> with <unit> to the right\r\n\t\tAnd the first <icon1> is <color1> with <text1> displayed below\r\n\t\tAnd the second <icon2> is <color2> with <text2> displayed below\r\n\t\tAnd the third <icon3> is <color3> with <text3> displayed below\r\n\t\tAnd the circle on the progress bar is brand colour\r\n\t\tAnd the line behind the circle is brand colour\r\n\t\tAnd the line infront of the circle is grey\r\n\t\tExamples:\r\n\t\t\t| progress | progressBar | unit | icon1 | color1 | text1 | icon2 | color2 | text 2 | icon3 | color3 | text 3 |\r\n\t\t\t| 250 | ――――●――――🎁―――――――🎁 | $ | NA | NA | NA | gift | greyscale | 500 | gift | greyscale | 1000 |\r\n\t\t\t| 500 | ―――――――――🎁―――――――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | 1000 |\r\n\t\t\t| 750 | ―――――――――🎁―――●―――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | 1000 |\r\n\t\t\t| 1000 | 🎁―――――――🎁―――――――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 1500 |\r\n\t\t\t| 1250 | 🎁―――――――🎁―――●―――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 1500 |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The stepped progress bar will continue to progress for repeatable rewards\r\n\t\tGiven a Task Card component\r\n\t\tAnd the user progress is <progress>\r\n\t\tAnd the goal is \"5\"\r\n\t\tAnd steps are enabled\r\n\t\tAnd it is repeatable\r\n\t\tThen I have <progressBar>\r\n\t\tAnd the <progressBar> has incrementing steps up to \"5\" in increments of 1\r\n\t\tAnd the first <icon1> is <color1>\r\n\t\tAnd the second <icon2> is <color2>\r\n\t\tAnd the third <icon3> is <color3>\r\n\t\tAnd the steps behind the users progress are brand colour\r\n\t\tAnd the steps infront of the users progress are grey\r\n\t\tExamples:\r\n\t\t\t| progress | progressBar | icon1 | color1 | icon2 | color2 | icon3 | color3 |\r\n\t\t\t| 0 | ―――○―○―○―○―🎁―○―○―○―○―🎁 | NA | NA | gift | greyscale | gift | greyscale |\r\n\t\t\t| 1 | ―――●―○―○―○―🎁―○―○―○―○―🎁 | NA | NA | gift | greyscale | gift | greyscale |\r\n\t\t\t| 5 | ―――●―●―●―●―🎁―○―○―○―○―🎁 | NA | NA | gift | colorful | gift | greyscale |\r\n\t\t\t| 7 | ―――●―●―●―●―🎁―●―●―○―○―🎁 | NA | NA | gift | colorful | gift | greyscale |\r\n\t\t\t| 12 | 🎁―●―●―●―●―🎁―●―●―○―○―🎁 | gift | colorful | gift | colorful | gift | greyscale |";
|
|
5809
5809
|
|
|
5810
5810
|
const ResizerStylesheet = `
|
|
5811
5811
|
|
|
@@ -10369,7 +10369,7 @@ const rewardsData$1 = {
|
|
|
10369
10369
|
id: "61c100117a82a376d8804166",
|
|
10370
10370
|
type: "CREDIT",
|
|
10371
10371
|
value: 19,
|
|
10372
|
-
unit: "
|
|
10372
|
+
unit: "Points",
|
|
10373
10373
|
name: null,
|
|
10374
10374
|
dateGiven: 1640038417468,
|
|
10375
10375
|
meta: { message: "***CUSTOMER NOTE MESSAGE***" },
|
|
@@ -10401,7 +10401,7 @@ const RewardsCellCreditSingle = () => {
|
|
|
10401
10401
|
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...singleRedeemed } }));
|
|
10402
10402
|
};
|
|
10403
10403
|
const RewardsCellCreditFull = () => {
|
|
10404
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1 }, availableText: "
|
|
10404
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1 }, availableText: "{availableAmount} remaining" }));
|
|
10405
10405
|
};
|
|
10406
10406
|
const partial = {
|
|
10407
10407
|
prettyAvailableValue: "10 Points",
|
|
@@ -10410,16 +10410,16 @@ const partial = {
|
|
|
10410
10410
|
dateRedeemed: 1640038417468,
|
|
10411
10411
|
};
|
|
10412
10412
|
const RewardsCellCreditPartial = () => {
|
|
10413
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...partial }, availableText: "
|
|
10413
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...partial }, availableText: "{availableAmount} remaining" }));
|
|
10414
10414
|
};
|
|
10415
10415
|
const RewardsCellCreditCancelled = () => {
|
|
10416
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...cancelled }, redeemedText: "
|
|
10416
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...cancelled }, redeemedText: "{redeemedAmount} redeemed" }));
|
|
10417
10417
|
};
|
|
10418
10418
|
const RewardsCellCreditExpired = () => {
|
|
10419
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...partial, ...expired }, redeemedText: "
|
|
10419
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...partial, ...expired }, redeemedText: "{redeemedAmount} redeemed" }));
|
|
10420
10420
|
};
|
|
10421
10421
|
const RewardsCellCreditPending = () => {
|
|
10422
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...
|
|
10422
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...pending }, availableText: "{availableAmount} remaining" }));
|
|
10423
10423
|
};
|
|
10424
10424
|
const empty = {
|
|
10425
10425
|
prettyAvailableValue: "0 Points",
|
|
@@ -10429,7 +10429,7 @@ const empty = {
|
|
|
10429
10429
|
dateRedeemed: 1640038417468,
|
|
10430
10430
|
};
|
|
10431
10431
|
const RewardsCellCreditRedeemed = () => {
|
|
10432
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...empty }, availableText: "
|
|
10432
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...empty }, availableText: "{availableAmount} remaining" }));
|
|
10433
10433
|
};
|
|
10434
10434
|
const singleRedeemed = {
|
|
10435
10435
|
prettyValue: "1 Point",
|
|
@@ -10441,7 +10441,7 @@ const longName = {
|
|
|
10441
10441
|
};
|
|
10442
10442
|
const RewardsCellCreditLong = () => {
|
|
10443
10443
|
return (index.h("div", { style: { maxWidth: "222px" } },
|
|
10444
|
-
index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...longName }, availableText: "
|
|
10444
|
+
index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...longName }, availableText: "{availableAmount} remaining" })));
|
|
10445
10445
|
};
|
|
10446
10446
|
const RewardsCellNonCredit = () => {
|
|
10447
10447
|
return (index.h("sqm-rewards-table-reward-cell", { reward: {
|
|
@@ -10456,7 +10456,7 @@ const RewardsCellFueltank = () => {
|
|
|
10456
10456
|
type: "FUELTANK",
|
|
10457
10457
|
prettyValue: "Fueltank Reward",
|
|
10458
10458
|
fuelTankCode: "AFUELTANKCODE",
|
|
10459
|
-
},
|
|
10459
|
+
}, copyText: "Copied" }));
|
|
10460
10460
|
};
|
|
10461
10461
|
const RewardsCellFueltankLong = () => {
|
|
10462
10462
|
return (index.h("div", { style: { maxWidth: "222px" } },
|
|
@@ -10465,7 +10465,7 @@ const RewardsCellFueltankLong = () => {
|
|
|
10465
10465
|
type: "FUELTANK",
|
|
10466
10466
|
prettyValue: "Long Fueltank Reward",
|
|
10467
10467
|
fuelTankCode: "AFUELTANKCODE123456789123456789123456789123456789",
|
|
10468
|
-
},
|
|
10468
|
+
}, copyText: "Copied" })));
|
|
10469
10469
|
};
|
|
10470
10470
|
const SourceCellManual = () => {
|
|
10471
10471
|
return (index.h("sqm-rewards-table-source-cell", { reward: rewardsData$1, rewardSourceText: "Manual" }));
|
|
@@ -10660,7 +10660,7 @@ const RewardsTableCell = /*#__PURE__*/Object.freeze({
|
|
|
10660
10660
|
EmptyCell: EmptyCell$2
|
|
10661
10661
|
});
|
|
10662
10662
|
|
|
10663
|
-
const scenario$p = "@owner:sam\r\n@author:sam\r\nFeature: Rewards Table\r\n\r\n Shows a list of rewards as a table\r\n\r\n @motivating\r\n @ui\r\n Scenario: The empty state is shown if there are no rewards\r\n Given a user with rewards\r\n When they view the reward table\r\n Then no rewards are displayed\r\n And they see an image with a user icon\r\n And \"View your rewards\" in bold\r\n And \"See all the rewards you have earned from referring friends and completing tasks\" below the bolded text\r\n And the pagination buttons are disabled\r\n\r\n @minutae\r\n @ui\r\n Scenario: A custom empty state can be provided\r\n Given a user with no rewards\r\n And a custom empty state has been supplied in the \"empty\" slot\r\n When they view the reward table\r\n Then they see the custom empty state\r\n\r\n @minutae\r\n @ui\r\n Scenario: The loading state is shown while rewards are loading\r\n Given the table is loading\r\n Then the loading state is shown in the table\r\n And a custom loading state can be supplied in the \"loading\" slot\r\n And the pagination buttons are disabled\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The table becomes paginated when the number of rewards exceeds the per page limit\r\n Given the user has <number of rewards>\r\n And the table is configured to show <page limit> rewards per page\r\n Then the table will have <number of pages> page(s)\r\n And pagination buttons will allow users to navigate between pages\r\n And the pagination button to go to the next page is disabled on the last page of rewards\r\n And the pagination button to go to the previous page is disabled on the first page of rewards\r\n Examples:\r\n | number of rewards | page limit | number of pages |\r\n | 0 | 4 | 1 |\r\n | 1 | 4 | 1 |\r\n | 3 | 4 | 1 |\r\n | 5 | 4 | 2 |\r\n | 42 | 4 | 11 |\r\n\r\n @motivating\r\n @ui\r\n Scenario: The table converts to a card view on tablet and mobile window sizes\r\n Given a user with rewards\r\n When they view the table\r\n And their window size is smaller than \"899px\"\r\n Then rewards are displayed as cards\r\n And they are in two columns\r\n When their window size is smaller than \"634px\"\r\n Then the rewards are displayed as cards in a singular column\r\n\r\n @motivating\r\n @ui\r\n Scenario: Table and Mobile beakpoints can be configured\r\n Given the reward table has been configured with the following props\r\n | prop | value |\r\n | smBreakpoint | 599 |\r\n | mdBreakpoint | 799 |\r\n And a user with rewards\r\n When they view the table\r\n And their window size is smaller than \"799px\"\r\n Then rewards are displayed as cards\r\n And they are in two columns\r\n When their window size is smaller than \"599px\"\r\n Then the rewards are displayed as cards in a singular column\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: By default the first column heading is hidden in mobile\r\n Given a reward table with 4 columns\r\n And prop \"hidden-columns\" with <hideColumnValue>\r\n And a user with rewards\r\n When they view the reward table\r\n And their window size is below the tablet breakpoint\r\n Then reward cards are displayed\r\n And the titles of <columnsArehidden> within the card\r\n Examples:\r\n | hideColumnValue | columnsArehidden |\r\n | | the first column |\r\n | 0,1,2 | the first, second and third columns |\r\n | 3 | the fourth column |\r\n\r\n @motivating\r\n Scenario: Only rewards which occured in the program specific by \"program-id\" are shown\r\n Given the table is configured with \"program-id\"\r\n Then only rewards from the program with \"program-id\" are shown\r\n\r\n @landmine\r\n Scenario:
|
|
10663
|
+
const scenario$p = "@owner:sam\r\n@author:sam\r\nFeature: Rewards Table\r\n\r\n Shows a list of rewards as a table\r\n\r\n @motivating\r\n @ui\r\n Scenario: The empty state is shown if there are no rewards\r\n Given a user with rewards\r\n When they view the reward table\r\n Then no rewards are displayed\r\n And they see an image with a user icon\r\n And \"View your rewards\" in bold\r\n And \"See all the rewards you have earned from referring friends and completing tasks\" below the bolded text\r\n And the pagination buttons are disabled\r\n\r\n @minutae\r\n @ui\r\n Scenario: A custom empty state can be provided\r\n Given a user with no rewards\r\n And a custom empty state has been supplied in the \"empty\" slot\r\n When they view the reward table\r\n Then they see the custom empty state\r\n\r\n @minutae\r\n @ui\r\n Scenario: The loading state is shown while rewards are loading\r\n Given the table is loading\r\n Then the loading state is shown in the table\r\n And a custom loading state can be supplied in the \"loading\" slot\r\n And the pagination buttons are disabled\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The table becomes paginated when the number of rewards exceeds the per page limit\r\n Given the user has <number of rewards>\r\n And the table is configured to show <page limit> rewards per page\r\n Then the table will have <number of pages> page(s)\r\n And pagination buttons will allow users to navigate between pages\r\n And the pagination button to go to the next page is disabled on the last page of rewards\r\n And the pagination button to go to the previous page is disabled on the first page of rewards\r\n Examples:\r\n | number of rewards | page limit | number of pages |\r\n | 0 | 4 | 1 |\r\n | 1 | 4 | 1 |\r\n | 3 | 4 | 1 |\r\n | 5 | 4 | 2 |\r\n | 42 | 4 | 11 |\r\n\r\n @motivating\r\n @ui\r\n Scenario: The table converts to a card view on tablet and mobile window sizes\r\n Given a user with rewards\r\n When they view the table\r\n And their window size is smaller than \"899px\"\r\n Then rewards are displayed as cards\r\n And they are in two columns\r\n When their window size is smaller than \"634px\"\r\n Then the rewards are displayed as cards in a singular column\r\n\r\n @motivating\r\n @ui\r\n Scenario: Table and Mobile beakpoints can be configured\r\n Given the reward table has been configured with the following props\r\n | prop | value |\r\n | smBreakpoint | 599 |\r\n | mdBreakpoint | 799 |\r\n And a user with rewards\r\n When they view the table\r\n And their window size is smaller than \"799px\"\r\n Then rewards are displayed as cards\r\n And they are in two columns\r\n When their window size is smaller than \"599px\"\r\n Then the rewards are displayed as cards in a singular column\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: By default the first column heading is hidden in mobile\r\n Given a reward table with 4 columns\r\n And prop \"hidden-columns\" with <hideColumnValue>\r\n And a user with rewards\r\n When they view the reward table\r\n And their window size is below the tablet breakpoint\r\n Then reward cards are displayed\r\n And the titles of <columnsArehidden> within the card\r\n Examples:\r\n | hideColumnValue | columnsArehidden |\r\n | | the first column |\r\n | 0,1,2 | the first, second and third columns |\r\n | 3 | the fourth column |\r\n\r\n @motivating\r\n Scenario: Only rewards which occured in the program specific by \"program-id\" are shown\r\n Given the table is configured with \"program-id\"\r\n Then only rewards from the program with \"program-id\" are shown\r\n\r\n @landmine\r\n Scenario: When a `classic` program Id is set then any reward without a programId is shown\r\n There is no easy way for the backend to filter for \"classic\" programs,\r\n thus we are filtering for rewards without programId's.\r\n\r\n Given the \"program-id\" of the table is set to \"classic\"\r\n Then rewards from classic programs are shown\r\n And manual rewards are shown\r\n\r\n @minutae\r\n @ui\r\n Scenario: Column heading can be hidden\r\n Given the table is configured with \"show-labels\" set to false\r\n Then the table is displayed without column headings";
|
|
10664
10664
|
|
|
10665
10665
|
const RewardsTable_stories = {
|
|
10666
10666
|
title: "Components/Rewards Table",
|
|
@@ -11438,7 +11438,7 @@ const Scroll_stories = {
|
|
|
11438
11438
|
};
|
|
11439
11439
|
const ScrollTag = () => {
|
|
11440
11440
|
return (index.h("div", { style: { position: "relative", height: "2000px" } },
|
|
11441
|
-
index.h("sqm-scroll", { "scroll-tag-name": "sqm-text", "button-text": "Scroll" }),
|
|
11441
|
+
index.h("sqm-scroll", { "scroll-tag-name": "sqm-text", "button-text": "Scroll", "scroll-animation": "smooth" }),
|
|
11442
11442
|
index.h("div", { style: { position: "absolute", bottom: "0" } },
|
|
11443
11443
|
index.h("sqm-text", { slot: "label" },
|
|
11444
11444
|
index.h("h3", null, "Earn more rewards"),
|
|
@@ -11446,7 +11446,15 @@ const ScrollTag = () => {
|
|
|
11446
11446
|
};
|
|
11447
11447
|
const ScrollId = () => {
|
|
11448
11448
|
return (index.h("div", { style: { position: "relative", height: "2000px" } },
|
|
11449
|
-
index.h("sqm-scroll", { "button-text": "Scroll", "scroll-id": "my-id" }),
|
|
11449
|
+
index.h("sqm-scroll", { "button-text": "Scroll", "scroll-id": "my-id", "scroll-animation": "smooth" }),
|
|
11450
|
+
index.h("div", { style: { position: "absolute", bottom: "0" } },
|
|
11451
|
+
index.h("sqm-text", { slot: "label", id: "my-id" },
|
|
11452
|
+
index.h("h3", null, "Earn more rewards"),
|
|
11453
|
+
index.h("p", null, "Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America")))));
|
|
11454
|
+
};
|
|
11455
|
+
const ScrollAutoAnimation = () => {
|
|
11456
|
+
return (index.h("div", { style: { position: "relative", height: "2000px" } },
|
|
11457
|
+
index.h("sqm-scroll", { "button-text": "Scroll", "scroll-id": "my-id", "scroll-animation": "auto" }),
|
|
11450
11458
|
index.h("div", { style: { position: "absolute", bottom: "0" } },
|
|
11451
11459
|
index.h("sqm-text", { slot: "label", id: "my-id" },
|
|
11452
11460
|
index.h("h3", null, "Earn more rewards"),
|
|
@@ -11454,7 +11462,7 @@ const ScrollId = () => {
|
|
|
11454
11462
|
};
|
|
11455
11463
|
const ScrollTabGroup = () => {
|
|
11456
11464
|
return (index.h("div", { style: { position: "relative", height: "2000px" } },
|
|
11457
|
-
index.h("sqm-scroll", { "button-text": "Redeem rewards", "scroll-id": "tab-3" }),
|
|
11465
|
+
index.h("sqm-scroll", { "button-text": "Redeem rewards", "scroll-id": "tab-3", "scroll-animation": "smooth" }),
|
|
11458
11466
|
index.h("div", { style: { position: "absolute", bottom: "0" }, innerHTML: `
|
|
11459
11467
|
<sqm-tabs>
|
|
11460
11468
|
<sqm-tab header="Leaderboard">
|
|
@@ -11543,12 +11551,9 @@ const ShoelaceProps = () => {
|
|
|
11543
11551
|
index.h("br", null),
|
|
11544
11552
|
" ",
|
|
11545
11553
|
index.h("hr", null),
|
|
11546
|
-
index.h("h3", null, "Caret:"),
|
|
11547
|
-
index.h("sqm-scroll", { caret: true }, "Button"),
|
|
11548
|
-
index.h("br", null),
|
|
11549
|
-
" ",
|
|
11550
|
-
index.h("hr", null),
|
|
11551
11554
|
index.h("h3", null, "Icon:"),
|
|
11555
|
+
index.h("sqm-scroll", { "button-type": "primary", iconName: "facebook" }, "Icon Name"),
|
|
11556
|
+
index.h("br", null),
|
|
11552
11557
|
index.h("sqm-scroll", { iconName: "gear", iconSlot: "prefix" }, "Icon Slot Prefix"),
|
|
11553
11558
|
index.h("br", null),
|
|
11554
11559
|
index.h("sqm-scroll", { iconName: "gear", iconSlot: "suffix" }, "Icon Slot Suffix"),
|
|
@@ -11565,22 +11570,8 @@ const ShoelaceProps = () => {
|
|
|
11565
11570
|
index.h("br", null),
|
|
11566
11571
|
" ",
|
|
11567
11572
|
index.h("hr", null),
|
|
11568
|
-
index.h("h3", null, "Disabled:"),
|
|
11569
|
-
index.h("sqm-scroll", { disabled: true }, "Button"),
|
|
11570
|
-
index.h("br", null),
|
|
11571
|
-
" ",
|
|
11572
|
-
index.h("hr", null),
|
|
11573
|
-
index.h("h3", null, "Link:"),
|
|
11574
|
-
index.h("sqm-scroll", { href: "https://example.com/" }, "Link"),
|
|
11575
|
-
index.h("br", null),
|
|
11576
|
-
index.h("sqm-scroll", { href: "https://example.com/", target: "_self" }, "Same Window"),
|
|
11577
|
-
index.h("br", null),
|
|
11578
|
-
index.h("sqm-scroll", { href: "/assets/images/wordmark.svg", download: "shoelace.svg" }, "Download"),
|
|
11579
|
-
index.h("br", null),
|
|
11580
|
-
" ",
|
|
11581
|
-
index.h("hr", null),
|
|
11582
11573
|
index.h("h3", null, "Mobile Friendly:"),
|
|
11583
|
-
index.h("sqm-scroll", {
|
|
11574
|
+
index.h("sqm-scroll", { mobile: true }, "Button"),
|
|
11584
11575
|
index.h("br", null),
|
|
11585
11576
|
" ",
|
|
11586
11577
|
index.h("hr", null)));
|
|
@@ -11591,6 +11582,7 @@ const Scroll = /*#__PURE__*/Object.freeze({
|
|
|
11591
11582
|
'default': Scroll_stories,
|
|
11592
11583
|
ScrollTag: ScrollTag,
|
|
11593
11584
|
ScrollId: ScrollId,
|
|
11585
|
+
ScrollAutoAnimation: ScrollAutoAnimation,
|
|
11594
11586
|
ScrollTabGroup: ScrollTabGroup,
|
|
11595
11587
|
ScrollTabGroupInner: ScrollTabGroupInner,
|
|
11596
11588
|
ShoelaceProps: ShoelaceProps
|
|
@@ -38,7 +38,7 @@ _, status) => {
|
|
|
38
38
|
`, { queryFilter }, (res) => {
|
|
39
39
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
40
40
|
return ({
|
|
41
|
-
value: (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount,
|
|
41
|
+
value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
|
|
42
42
|
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
43
43
|
});
|
|
44
44
|
});
|
|
@@ -64,7 +64,7 @@ const View = (overrideProps) => {
|
|
|
64
64
|
...overrideProps,
|
|
65
65
|
};
|
|
66
66
|
const { leaderboardType, rankType } = props;
|
|
67
|
-
console.log(`View("${leaderboardType}") - CALLED`, { ...props });
|
|
67
|
+
// console.log(`View("${leaderboardType}") - CALLED`, { ...props });
|
|
68
68
|
return (h("div", { style: { marginBottom: "20px" } },
|
|
69
69
|
h("sqm-divided-layout", { direction: "row" },
|
|
70
70
|
h("div", { style: { padding: "10px" } },
|
|
@@ -146,7 +146,7 @@ export const DemoHookEmpty = createHookStory(() => {
|
|
|
146
146
|
anonymousUser: "Anonymous User",
|
|
147
147
|
showRank: true,
|
|
148
148
|
},
|
|
149
|
-
}
|
|
149
|
+
},
|
|
150
150
|
} },
|
|
151
151
|
h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png", "empty-state-header": "View your rank in the leaderboard", "empty-state-text": "Be the first to refer a friend and reach the top of the leaderboard" })));
|
|
152
152
|
});
|
|
@@ -52,10 +52,6 @@ export function LeaderboardView(props) {
|
|
|
52
52
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
53
53
|
const { states, data, elements } = props;
|
|
54
54
|
const { styles } = states;
|
|
55
|
-
console.log("LEADER", props);
|
|
56
|
-
console.log(styles);
|
|
57
|
-
console.log("hideViewer", styles.hideViewer);
|
|
58
|
-
console.log(!styles.hideViewer);
|
|
59
55
|
if (states.loading)
|
|
60
56
|
return (h("div", { class: sheet.classes.Leaderboard },
|
|
61
57
|
h("style", { type: "text/css" },
|
|
@@ -91,7 +87,6 @@ export function LeaderboardView(props) {
|
|
|
91
87
|
h("td", { class: "Score" }, user.value)));
|
|
92
88
|
}),
|
|
93
89
|
!userSeenFlag && !styles.hideViewer && (h("tr", null,
|
|
94
|
-
console.log("res", !userSeenFlag && !styles.hideViewer),
|
|
95
90
|
h("td", { colSpan: 100, class: "ellipses" },
|
|
96
91
|
h("sl-icon", { name: "three-dots", style: { verticalAlign: "middle" } })))),
|
|
97
92
|
!userSeenFlag && !styles.hideViewer && (h("tr", { class: "highlight" },
|
package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js
CHANGED
|
@@ -116,7 +116,6 @@ export class ReferralTableRewardsCell {
|
|
|
116
116
|
}, {
|
|
117
117
|
status: state,
|
|
118
118
|
});
|
|
119
|
-
const rid = Math.random().toString(36).slice(2);
|
|
120
119
|
return (h("sl-details", { class: sheet.classes.Details, disabled: this.hideDetails },
|
|
121
120
|
h("style", { type: "text/css" }, styleString),
|
|
122
121
|
h("div", { slot: "summary", class: sheet.classes.DetailsContainer },
|
|
@@ -14,7 +14,7 @@ const rewardsData = {
|
|
|
14
14
|
id: "61c100117a82a376d8804166",
|
|
15
15
|
type: "CREDIT",
|
|
16
16
|
value: 19,
|
|
17
|
-
unit: "
|
|
17
|
+
unit: "Points",
|
|
18
18
|
name: null,
|
|
19
19
|
dateGiven: 1640038417468,
|
|
20
20
|
meta: { message: "***CUSTOMER NOTE MESSAGE***" },
|
|
@@ -46,7 +46,7 @@ export const RewardsCellCreditSingle = () => {
|
|
|
46
46
|
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...singleRedeemed } }));
|
|
47
47
|
};
|
|
48
48
|
export const RewardsCellCreditFull = () => {
|
|
49
|
-
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData }, availableText: "
|
|
49
|
+
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData }, availableText: "{availableAmount} remaining" }));
|
|
50
50
|
};
|
|
51
51
|
const partial = {
|
|
52
52
|
prettyAvailableValue: "10 Points",
|
|
@@ -55,16 +55,16 @@ const partial = {
|
|
|
55
55
|
dateRedeemed: 1640038417468,
|
|
56
56
|
};
|
|
57
57
|
export const RewardsCellCreditPartial = () => {
|
|
58
|
-
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...partial }, availableText: "
|
|
58
|
+
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...partial }, availableText: "{availableAmount} remaining" }));
|
|
59
59
|
};
|
|
60
60
|
export const RewardsCellCreditCancelled = () => {
|
|
61
|
-
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...cancelled }, redeemedText: "
|
|
61
|
+
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...cancelled }, redeemedText: "{redeemedAmount} redeemed" }));
|
|
62
62
|
};
|
|
63
63
|
export const RewardsCellCreditExpired = () => {
|
|
64
|
-
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...partial, ...expired }, redeemedText: "
|
|
64
|
+
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...partial, ...expired }, redeemedText: "{redeemedAmount} redeemed" }));
|
|
65
65
|
};
|
|
66
66
|
export const RewardsCellCreditPending = () => {
|
|
67
|
-
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...
|
|
67
|
+
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...pending }, availableText: "{availableAmount} remaining" }));
|
|
68
68
|
};
|
|
69
69
|
const empty = {
|
|
70
70
|
prettyAvailableValue: "0 Points",
|
|
@@ -74,7 +74,7 @@ const empty = {
|
|
|
74
74
|
dateRedeemed: 1640038417468,
|
|
75
75
|
};
|
|
76
76
|
export const RewardsCellCreditRedeemed = () => {
|
|
77
|
-
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...empty }, availableText: "
|
|
77
|
+
return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...empty }, availableText: "{availableAmount} remaining" }));
|
|
78
78
|
};
|
|
79
79
|
const singleRedeemed = {
|
|
80
80
|
prettyValue: "1 Point",
|
|
@@ -86,7 +86,7 @@ const longName = {
|
|
|
86
86
|
};
|
|
87
87
|
export const RewardsCellCreditLong = () => {
|
|
88
88
|
return (h("div", { style: { maxWidth: "222px" } },
|
|
89
|
-
h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...longName }, availableText: "
|
|
89
|
+
h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...longName }, availableText: "{availableAmount} remaining" })));
|
|
90
90
|
};
|
|
91
91
|
export const RewardsCellNonCredit = () => {
|
|
92
92
|
return (h("sqm-rewards-table-reward-cell", { reward: {
|
|
@@ -101,7 +101,7 @@ export const RewardsCellFueltank = () => {
|
|
|
101
101
|
type: "FUELTANK",
|
|
102
102
|
prettyValue: "Fueltank Reward",
|
|
103
103
|
fuelTankCode: "AFUELTANKCODE",
|
|
104
|
-
},
|
|
104
|
+
}, copyText: "Copied" }));
|
|
105
105
|
};
|
|
106
106
|
export const RewardsCellFueltankLong = () => {
|
|
107
107
|
return (h("div", { style: { maxWidth: "222px" } },
|
|
@@ -110,7 +110,7 @@ export const RewardsCellFueltankLong = () => {
|
|
|
110
110
|
type: "FUELTANK",
|
|
111
111
|
prettyValue: "Long Fueltank Reward",
|
|
112
112
|
fuelTankCode: "AFUELTANKCODE123456789123456789123456789123456789",
|
|
113
|
-
},
|
|
113
|
+
}, copyText: "Copied" })));
|
|
114
114
|
};
|
|
115
115
|
export const SourceCellManual = () => {
|
|
116
116
|
return (h("sqm-rewards-table-source-cell", { reward: rewardsData, rewardSourceText: "Manual" }));
|
|
@@ -86,17 +86,16 @@ export class RewardTableRewardsCell {
|
|
|
86
86
|
if (reward.type === "FUELTANK") {
|
|
87
87
|
return (h("div", { class: sheet.classes.Fueltank },
|
|
88
88
|
reward.prettyValue,
|
|
89
|
-
h("div", { class: "code", onClick: () => navigator.clipboard.writeText(reward.fuelTankCode) },
|
|
89
|
+
reward.fuelTankCode && (h("div", { class: "code", onClick: () => navigator.clipboard.writeText(reward.fuelTankCode) },
|
|
90
90
|
h("sl-tooltip", { trigger: "click", placement: "top", distance: 5, skidding: 11, content: this.copyText, "onSl-show": (e) => setTimeout(() => e.path[0].hide(), 1000) },
|
|
91
91
|
h("span", { class: "text" }, reward.fuelTankCode),
|
|
92
92
|
h("span", { class: "icon" },
|
|
93
|
-
h("sl-icon", { name: "files" }))))));
|
|
93
|
+
h("sl-icon", { name: "files" })))))));
|
|
94
94
|
}
|
|
95
95
|
if (reward.type === "CREDIT" && !singleReward) {
|
|
96
|
-
const
|
|
97
|
-
parseFloat(reward.prettyRedeemedNumber)
|
|
98
|
-
|
|
99
|
-
100);
|
|
96
|
+
const remainingValue = parseFloat(reward.prettyValueNumber) -
|
|
97
|
+
parseFloat(reward.prettyRedeemedNumber);
|
|
98
|
+
const progress = Math.round((remainingValue / parseFloat(reward.prettyValueNumber)) * 100);
|
|
100
99
|
const progressBarSubtext = reward.statuses.includes("EXPIRED") ||
|
|
101
100
|
reward.statuses.includes("CANCELLED") ? (h("div", null, intl.formatMessage({
|
|
102
101
|
id: "redeemedText",
|
|
@@ -107,7 +106,9 @@ export class RewardTableRewardsCell {
|
|
|
107
106
|
id: "availableText",
|
|
108
107
|
defaultMessage: this.availableText,
|
|
109
108
|
}, {
|
|
110
|
-
availableAmount: reward.
|
|
109
|
+
availableAmount: reward.statuses.includes("PENDING")
|
|
110
|
+
? reward.prettyAssignedCredit
|
|
111
|
+
: reward.prettyAvailableValue,
|
|
111
112
|
})));
|
|
112
113
|
const style = {
|
|
113
114
|
Progress: {
|
|
@@ -214,23 +215,6 @@ export class RewardTableRewardsCell {
|
|
|
214
215
|
"attribute": "available-text",
|
|
215
216
|
"reflect": false
|
|
216
217
|
},
|
|
217
|
-
"fueltankText": {
|
|
218
|
-
"type": "string",
|
|
219
|
-
"mutable": false,
|
|
220
|
-
"complexType": {
|
|
221
|
-
"original": "string",
|
|
222
|
-
"resolved": "string",
|
|
223
|
-
"references": {}
|
|
224
|
-
},
|
|
225
|
-
"required": false,
|
|
226
|
-
"optional": false,
|
|
227
|
-
"docs": {
|
|
228
|
-
"tags": [],
|
|
229
|
-
"text": ""
|
|
230
|
-
},
|
|
231
|
-
"attribute": "fueltank-text",
|
|
232
|
-
"reflect": false
|
|
233
|
-
},
|
|
234
218
|
"copyText": {
|
|
235
219
|
"type": "string",
|
|
236
220
|
"mutable": false,
|
package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js
CHANGED
|
@@ -18,10 +18,6 @@ export class RewardsTableColumn {
|
|
|
18
18
|
* @uiName Remaining Amount Text
|
|
19
19
|
*/
|
|
20
20
|
this.availableText = "{availableAmount} remaining";
|
|
21
|
-
/**
|
|
22
|
-
* @uiName Fuel Tank Text
|
|
23
|
-
*/
|
|
24
|
-
this.fueltankText = "Your code:";
|
|
25
21
|
/**
|
|
26
22
|
* @uiName Copied Fuel Tank Text
|
|
27
23
|
*/
|
|
@@ -30,7 +26,7 @@ export class RewardsTableColumn {
|
|
|
30
26
|
}
|
|
31
27
|
disconnectedCallback() { }
|
|
32
28
|
async renderCell(data, locale) {
|
|
33
|
-
return (h("sqm-rewards-table-reward-cell", { reward: data === null || data === void 0 ? void 0 : data[0], redeemedText: this.redeemedText, availableText: this.availableText,
|
|
29
|
+
return (h("sqm-rewards-table-reward-cell", { reward: data === null || data === void 0 ? void 0 : data[0], redeemedText: this.redeemedText, availableText: this.availableText, copyText: this.copyText, locale: locale }));
|
|
34
30
|
}
|
|
35
31
|
async renderLabel() {
|
|
36
32
|
return this.columnTitle;
|
|
@@ -105,27 +101,6 @@ export class RewardsTableColumn {
|
|
|
105
101
|
"reflect": false,
|
|
106
102
|
"defaultValue": "\"{availableAmount} remaining\""
|
|
107
103
|
},
|
|
108
|
-
"fueltankText": {
|
|
109
|
-
"type": "string",
|
|
110
|
-
"mutable": false,
|
|
111
|
-
"complexType": {
|
|
112
|
-
"original": "string",
|
|
113
|
-
"resolved": "string",
|
|
114
|
-
"references": {}
|
|
115
|
-
},
|
|
116
|
-
"required": false,
|
|
117
|
-
"optional": false,
|
|
118
|
-
"docs": {
|
|
119
|
-
"tags": [{
|
|
120
|
-
"text": "Fuel Tank Text",
|
|
121
|
-
"name": "uiName"
|
|
122
|
-
}],
|
|
123
|
-
"text": ""
|
|
124
|
-
},
|
|
125
|
-
"attribute": "fueltank-text",
|
|
126
|
-
"reflect": false,
|
|
127
|
-
"defaultValue": "\"Your code:\""
|
|
128
|
-
},
|
|
129
104
|
"copyText": {
|
|
130
105
|
"type": "string",
|
|
131
106
|
"mutable": false,
|