@saasquatch/mint-components 1.3.2-0 → 1.3.2-1
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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-divided-layout_27.cjs.entry.js +304 -147
- package/dist/cjs/{sqm-task-card-view-cb11e56f.js → sqm-task-card-view-57066e67.js} +16 -12
- package/dist/cjs/sqm-task-card.cjs.entry.js +28 -4
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +17 -0
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +3 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +13 -5
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +21 -21
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +5 -3
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +270 -62
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +16 -11
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +154 -22
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-divided-layout_27.entry.js +304 -147
- package/dist/esm/{sqm-task-card-view-6a082a21.js → sqm-task-card-view-2ee495af.js} +17 -12
- package/dist/esm/sqm-task-card.entry.js +28 -4
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-divided-layout_27.entry.js +1 -1
- package/dist/esm-es5/sqm-task-card-view-2ee495af.js +1 -0
- package/dist/esm-es5/sqm-task-card.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-1e248afc.system.entry.js +1 -0
- package/dist/mint-components/p-353b4413.system.js +1 -0
- package/dist/mint-components/{p-86cd9f79.entry.js → p-684850a7.entry.js} +12 -11
- package/dist/mint-components/p-81dbda90.system.entry.js +1 -0
- package/dist/mint-components/p-8f5e2af4.entry.js +1 -0
- package/dist/mint-components/p-91d39961.system.js +1 -1
- package/dist/mint-components/p-e78a5a91.js +1 -0
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +2 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +2 -3
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +4 -7
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +10 -8
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +28 -8
- package/dist/types/components.d.ts +66 -28
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +1 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/assets/Leftward Arrow.svg +0 -3
- package/dist/esm-es5/sqm-task-card-view-6a082a21.js +0 -1
- package/dist/mint-components/assets/Leftward Arrow.svg +0 -3
- package/dist/mint-components/p-12fb9197.entry.js +0 -1
- package/dist/mint-components/p-2ae9c535.js +0 -1
- package/dist/mint-components/p-550b4579.system.entry.js +0 -1
- package/dist/mint-components/p-795a7259.system.entry.js +0 -1
- package/dist/mint-components/p-d0913f8d.system.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t}from"./p-64c3217a.js";import{m as i}from"./p-44578b22.js";import"./p-db5a1e78.js";import{g as r}from"./p-fb1b6fdf.js";import"./p-26f627aa.js";import{T as a}from"./p-e78a5a91.js";const o=class{constructor(t){s(this,t),this.ignored=!0,this.points=0,this.cardTitle="Title Text",this.description="Description Text",this.repeatable=!1,this.showProgressBar=!1,this.progress=0,this.goal=1,this.expire=!1,i(this)}disconnectedCallback(){}render(){return t(a,Object.assign({},r(this)))}};export{o as sqm_task_card}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-015b683f.system.js","./p-ceeaf074.system.js","./p-1e182e88.system.js","./p-ecbabf6e.system.js","./p-dd6a666e.system.js"],(function(e,a){"use strict";var t,r,s;return{setters:[function(e){t=e.p;r=e.H;s=e.b},function(){},function(){},function(){},function(){},function(){}],execute:function(){var e=function(){{o(r.prototype)}var e=a.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return t(s)};var o=function(e){var a=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return a.call(this,e)}var t=a.call(this,false);var r=this.childNodes;if(e){for(var s=0;s<r.length;s++){if(r[s].nodeType!==2){t.appendChild(r[s].cloneNode(true))}}}return t}};e().then((function(e){return s([["p-505f5c59.system",[[1,"sqm-portal-reset-password",{nextPage:[1,"next-page"],confirmPassword:[4,"confirm-password"],resetPasswordHeader:[1,"reset-password-header"],passwordResetHeader:[1,"password-reset-header"],resetPasswordButtonText:[1,"reset-password-button-text"],continueButtonText:[1,"continue-button-text"],confirmPasswordFieldLabel:[1,"confirm-password-field-label"],passwordFieldLabel:[1,"password-field-label"],demoData:[16],ignored:[32]}]]],["p-c3866bfa.system",[[1,"sqm-portal-email-verification",{emailVerificationHeader:[1,"email-verification-header"],resendEmailButtonText:[1,"resend-email-button-text"],verifyMessage:[1,"verify-message"],demoData:[16],ignored:[32]}]]],["p-7c13e32e.system",[[1,"sqm-portal-forgot-password",{emailLabel:[1,"email-label"],submitLabel:[1,"submit-label"],demoData:[16],ignored:[32]}]]],["p-bf04a8e1.system",[[1,"sqm-portal-profile",{firstnametext:[1],lastnametext:[1],emailtext:[1],countrytext:[1],editProfileHeader:[1,"edit-profile-header"],editProfileSubHeader:[1,"edit-profile-sub-header"],submitChangeButtonText:[1,"submit-change-button-text"],showCountry:[4,"show-country"],demoData:[16],ignored:[32]}]]],["p-3fd33dee.system",[[1,"sqm-portal-verify-email",{nextPage:[1,"next-page"],demoData:[16],ignored:[32]}]]],["p-2a025d2a.system",[[1,"sqm-referral-table-column",{columnTitle:[1,"column-title"],renderCell:[64],renderLabel:[64]}]]],["p-16535642.system",[[1,"sqm-referral-table-date-column",{columnTitle:[1,"column-title"],dateShown:[1,"date-shown"],renderCell:[64],renderLabel:[64]}]]],["p-4ba2faf2.system",[[1,"sqm-referral-table-rewards-column",{columnTitle:[1,"column-title"],hideDetails:[4,"hide-details"],renderCell:[64],renderLabel:[64]}]]],["p-a0045707.system",[[1,"sqm-referral-table-status-column",{columnTitle:[1,"column-title"],convertedStatusText:[1,"converted-status-text"],inProgressStatusText:[1,"in-progress-status-text"],renderCell:[64],renderLabel:[64]}]]],["p-1b414d8f.system",[[1,"sqm-referral-table-user-column",{columnTitle:[1,"column-title"],anonymousUser:[1,"anonymous-user"],deletedUser:[1,"deleted-user"],renderCell:[64],renderLabel:[64]}]]],["p-8034f81c.system",[[1,"sqm-rewards-table",{programId:[1,"program-id"],perPage:[2,"per-page"],showLabels:[4,"show-labels"],prevLabel:[1,"prev-label"],moreLabel:[1,"more-label"],showReferrer:[4,"show-referrer"],demoData:[16]}]]],["p-e475a5ff.system",[[1,"sqm-asset-card",{titleText:[1,"title-text"],imgUrl:[1,"img-url"],demoData:[16],ignored:[32]}]]],["p-c9c4f31b.system",[[1,"sqm-big-stat",{statType:[1,"stat-type"],flexReverse:[4,"flex-reverse"],alignment:[1],demoData:[16],ignored:[32]}]]],["p-5dfc6804.system",[[4,"sqm-graphql-client-provider",{domain:[1],ignored:[32]}]]],["p-e14c15ca.system",[[1,"sqm-hero",{columns:[2],background:[1],paddingSize:[1,"padding-size"],secondaryBackground:[1,"secondary-background"],wrapDirection:[1,"wrap-direction"]}]]],["p-57a53dbd.system",[[1,"sqm-leaderboard",{usersheading:[1],statsheading:[1],rankheading:[1],showRank:[4,"show-rank"],rankType:[1,"rank-type"],leaderboardType:[1,"leaderboard-type"],interval:[1],demoData:[16],ignored:[32]}]]],["p-7c261ea0.system",[[1,"sqm-leaderboard-rank",{rankType:[1,"rank-type"],rankText:[1,"rank-text"],leaderboardType:[1,"leaderboard-type"],unrankedText:[1,"unranked-text"],interval:[1],demoData:[16]}]]],["p-1ac9c24b.system",[[0,"sqm-name-fields",{firstNameLabel:[1,"first-name-label"],lastNameLabel:[1,"last-name-label"],demoData:[16],ignored:[32]}]]],["p-fee468b7.system",[[1,"sqm-navigation-sidebar",{ignored:[32]}]]],["p-04516274.system",[[1,"sqm-navigation-sidebar-item",{path:[1],icon:[1],label:[1],demoData:[16]}]]],["p-0688c9c2.system",[[4,"sqm-popup-container",{poweredBy:[4,"powered-by"],closeButton:[4,"close-button"],closeButtonText:[1,"close-button-text"],embedPadding:[1,"embed-padding"],popupPadding:[1,"popup-padding"]}]]],["p-e43cc1f8.system",[[1,"sqm-portal-container",{direction:[1],padding:[1],gap:[1],minWidth:[1,"min-width"],ignored:[32]}]]],["p-e19a57a4.system",[[1,"sqm-portal-footer",{supportEmail:[1,"support-email"],supportText:[1,"support-text"],termsLink:[1,"terms-link"],termsText:[1,"terms-text"],faqLink:[1,"faq-link"],faqText:[1,"faq-text"],showPoweredBy:[4,"show-powered-by"],poweredByLink:[1,"powered-by-link"],paddingTop:[1,"padding-top"],paddingRight:[1,"padding-right"],paddingBottom:[1,"padding-bottom"],paddingLeft:[1,"padding-left"],ignored:[32]}]]],["p-fcaa5886.system",[[1,"sqm-portal-logout",{nextPage:[1,"next-page"],ignored:[32]}]]],["p-af06ea5b.system",[[1,"sqm-portal-protected-route",{redirectTo:[1,"redirect-to"],requireEmailVerification:[4,"require-email-verification"],redirectToUnverified:[1,"redirect-to-unverified"],ignored:[32]}]]],["p-c1a47137.system",[[1,"sqm-route",{path:[1],ignored:[32]}]]],["p-db723323.system",[[1,"sqm-share-code",{programId:[1,"program-id"],tooltiptext:[1,"tooltip-text"],tooltiplifespan:[2,"tooltip-lifespan"],demoData:[16]}]]],["p-0a39b23c.system",[[1,"sqm-stat-container",{space:[1],ignored:[32]}]]],["p-
|
|
1
|
+
System.register(["./p-ff17b3a4.system.js","./p-015b683f.system.js","./p-ceeaf074.system.js","./p-1e182e88.system.js","./p-ecbabf6e.system.js","./p-dd6a666e.system.js"],(function(e,a){"use strict";var t,r,s;return{setters:[function(e){t=e.p;r=e.H;s=e.b},function(){},function(){},function(){},function(){},function(){}],execute:function(){var e=function(){{o(r.prototype)}var e=a.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return t(s)};var o=function(e){var a=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return a.call(this,e)}var t=a.call(this,false);var r=this.childNodes;if(e){for(var s=0;s<r.length;s++){if(r[s].nodeType!==2){t.appendChild(r[s].cloneNode(true))}}}return t}};e().then((function(e){return s([["p-505f5c59.system",[[1,"sqm-portal-reset-password",{nextPage:[1,"next-page"],confirmPassword:[4,"confirm-password"],resetPasswordHeader:[1,"reset-password-header"],passwordResetHeader:[1,"password-reset-header"],resetPasswordButtonText:[1,"reset-password-button-text"],continueButtonText:[1,"continue-button-text"],confirmPasswordFieldLabel:[1,"confirm-password-field-label"],passwordFieldLabel:[1,"password-field-label"],demoData:[16],ignored:[32]}]]],["p-c3866bfa.system",[[1,"sqm-portal-email-verification",{emailVerificationHeader:[1,"email-verification-header"],resendEmailButtonText:[1,"resend-email-button-text"],verifyMessage:[1,"verify-message"],demoData:[16],ignored:[32]}]]],["p-7c13e32e.system",[[1,"sqm-portal-forgot-password",{emailLabel:[1,"email-label"],submitLabel:[1,"submit-label"],demoData:[16],ignored:[32]}]]],["p-bf04a8e1.system",[[1,"sqm-portal-profile",{firstnametext:[1],lastnametext:[1],emailtext:[1],countrytext:[1],editProfileHeader:[1,"edit-profile-header"],editProfileSubHeader:[1,"edit-profile-sub-header"],submitChangeButtonText:[1,"submit-change-button-text"],showCountry:[4,"show-country"],demoData:[16],ignored:[32]}]]],["p-3fd33dee.system",[[1,"sqm-portal-verify-email",{nextPage:[1,"next-page"],demoData:[16],ignored:[32]}]]],["p-2a025d2a.system",[[1,"sqm-referral-table-column",{columnTitle:[1,"column-title"],renderCell:[64],renderLabel:[64]}]]],["p-16535642.system",[[1,"sqm-referral-table-date-column",{columnTitle:[1,"column-title"],dateShown:[1,"date-shown"],renderCell:[64],renderLabel:[64]}]]],["p-4ba2faf2.system",[[1,"sqm-referral-table-rewards-column",{columnTitle:[1,"column-title"],hideDetails:[4,"hide-details"],renderCell:[64],renderLabel:[64]}]]],["p-a0045707.system",[[1,"sqm-referral-table-status-column",{columnTitle:[1,"column-title"],convertedStatusText:[1,"converted-status-text"],inProgressStatusText:[1,"in-progress-status-text"],renderCell:[64],renderLabel:[64]}]]],["p-1b414d8f.system",[[1,"sqm-referral-table-user-column",{columnTitle:[1,"column-title"],anonymousUser:[1,"anonymous-user"],deletedUser:[1,"deleted-user"],renderCell:[64],renderLabel:[64]}]]],["p-8034f81c.system",[[1,"sqm-rewards-table",{programId:[1,"program-id"],perPage:[2,"per-page"],showLabels:[4,"show-labels"],prevLabel:[1,"prev-label"],moreLabel:[1,"more-label"],showReferrer:[4,"show-referrer"],demoData:[16]}]]],["p-e475a5ff.system",[[1,"sqm-asset-card",{titleText:[1,"title-text"],imgUrl:[1,"img-url"],demoData:[16],ignored:[32]}]]],["p-c9c4f31b.system",[[1,"sqm-big-stat",{statType:[1,"stat-type"],flexReverse:[4,"flex-reverse"],alignment:[1],demoData:[16],ignored:[32]}]]],["p-5dfc6804.system",[[4,"sqm-graphql-client-provider",{domain:[1],ignored:[32]}]]],["p-e14c15ca.system",[[1,"sqm-hero",{columns:[2],background:[1],paddingSize:[1,"padding-size"],secondaryBackground:[1,"secondary-background"],wrapDirection:[1,"wrap-direction"]}]]],["p-57a53dbd.system",[[1,"sqm-leaderboard",{usersheading:[1],statsheading:[1],rankheading:[1],showRank:[4,"show-rank"],rankType:[1,"rank-type"],leaderboardType:[1,"leaderboard-type"],interval:[1],demoData:[16],ignored:[32]}]]],["p-7c261ea0.system",[[1,"sqm-leaderboard-rank",{rankType:[1,"rank-type"],rankText:[1,"rank-text"],leaderboardType:[1,"leaderboard-type"],unrankedText:[1,"unranked-text"],interval:[1],demoData:[16]}]]],["p-1ac9c24b.system",[[0,"sqm-name-fields",{firstNameLabel:[1,"first-name-label"],lastNameLabel:[1,"last-name-label"],demoData:[16],ignored:[32]}]]],["p-fee468b7.system",[[1,"sqm-navigation-sidebar",{ignored:[32]}]]],["p-04516274.system",[[1,"sqm-navigation-sidebar-item",{path:[1],icon:[1],label:[1],demoData:[16]}]]],["p-0688c9c2.system",[[4,"sqm-popup-container",{poweredBy:[4,"powered-by"],closeButton:[4,"close-button"],closeButtonText:[1,"close-button-text"],embedPadding:[1,"embed-padding"],popupPadding:[1,"popup-padding"]}]]],["p-e43cc1f8.system",[[1,"sqm-portal-container",{direction:[1],padding:[1],gap:[1],minWidth:[1,"min-width"],ignored:[32]}]]],["p-e19a57a4.system",[[1,"sqm-portal-footer",{supportEmail:[1,"support-email"],supportText:[1,"support-text"],termsLink:[1,"terms-link"],termsText:[1,"terms-text"],faqLink:[1,"faq-link"],faqText:[1,"faq-text"],showPoweredBy:[4,"show-powered-by"],poweredByLink:[1,"powered-by-link"],paddingTop:[1,"padding-top"],paddingRight:[1,"padding-right"],paddingBottom:[1,"padding-bottom"],paddingLeft:[1,"padding-left"],ignored:[32]}]]],["p-fcaa5886.system",[[1,"sqm-portal-logout",{nextPage:[1,"next-page"],ignored:[32]}]]],["p-af06ea5b.system",[[1,"sqm-portal-protected-route",{redirectTo:[1,"redirect-to"],requireEmailVerification:[4,"require-email-verification"],redirectToUnverified:[1,"redirect-to-unverified"],ignored:[32]}]]],["p-c1a47137.system",[[1,"sqm-route",{path:[1],ignored:[32]}]]],["p-db723323.system",[[1,"sqm-share-code",{programId:[1,"program-id"],tooltiptext:[1,"tooltip-text"],tooltiplifespan:[2,"tooltip-lifespan"],demoData:[16]}]]],["p-0a39b23c.system",[[1,"sqm-stat-container",{space:[1],ignored:[32]}]]],["p-1e248afc.system",[[1,"sqm-task-card",{points:[2],cardTitle:[1,"card-title"],description:[1],repeatable:[4],showProgressBar:[4,"show-progress-bar"],progress:[2],goal:[2],steps:[2],unit:[1],expire:[4],dateExpire:[1,"date-expire"],buttonText:[1,"button-text"],buttonLink:[1,"button-link"],ignored:[32]}]]],["p-6d27cd05.system",[[0,"sqm-text-span",{text:[1],type:[1],ignored:[32]}]]],["p-f85f36c6.system",[[1,"sqm-titled-section",{label:[1],labelMargin:[1,"label-margin"],padding:[1]}]]],["p-81dbda90.system",[[4,"sqm-stencilbook",{ignored:[32]}],[1,"sqm-referral-table",{programId:[1,"program-id"],perPage:[2,"per-page"],showLabels:[4,"show-labels"],prevLabel:[1,"prev-label"],moreLabel:[1,"more-label"],showReferrer:[4,"show-referrer"],demoData:[16]}],[1,"sqm-portal-change-password",{modalChangePasswordHeader:[1,"modal-change-password-header"],cancelText:[1,"cancel-text"],changePasswordButtonText:[1,"change-password-button-text"],passwordFieldLabel:[1,"password-field-label"],confirmPasswordFieldLabel:[1,"confirm-password-field-label"],successMessage:[1,"success-message"],portalChangePasswordHeader:[1,"portal-change-password-header"],portalChangePasswordButtonText:[1,"portal-change-password-button-text"],demoData:[16],ignored:[32]}],[1,"sqm-portal-register",{nextPage:[1,"next-page"],emailLabel:[1,"email-label"],passwordLabel:[1,"password-label"],submitLabel:[1,"submit-label"],loginLabel:[1,"login-label"],confirmPasswordLabel:[1,"confirm-password-label"],confirmPassword:[4,"confirm-password"],enablePasswordValidation:[4,"enable-password-validation"],hideInputs:[4,"hide-inputs"],pageLabel:[1,"page-label"],demoData:[16],ignored:[32]}],[1,"sqm-edit-profile",{editprofileheader:[1],editprofiletext:[1],canceltext:[1],updatetext:[1],firstnametext:[1],lastnametext:[1],currentregiontext:[1],showregion:[4],demoData:[16],ignored:[32]}],[1,"sqm-portal-login",{nextPage:[1,"next-page"],emailLabel:[1,"email-label"],passwordLabel:[1,"password-label"],submitLabel:[1,"submit-label"],forgotPasswordLabel:[1,"forgot-password-label"],registerLabel:[1,"register-label"],pageLabel:[1,"page-label"],demoData:[16],ignored:[32]}],[1,"sqm-divided-layout",{direction:[1],dividerStyle:[1,"divider-style"]}],[0,"sqm-hook-story-container",{hookStory:[16],ignored:[32]}],[1,"sqm-navigation-menu",{includeDropdown:[4,"include-dropdown"],menuLabel:[1,"menu-label"],demoData:[16],ignored:[32]}],[1,"sqm-portal-frame",{demoData:[16],ignored:[32]}],[4,"sqm-program-menu",{ignored:[32]}],[0,"sqm-referral-iframe",{iframeSrc:[1,"iframe-src"],iframeHeight:[1,"iframe-height"],iframeWidth:[1,"iframe-width"],demoData:[16],ignored:[32]}],[0,"sqm-reward-exchange-list",{buttonText:[1,"button-text"],demoData:[16],ignored:[32]}],[4,"sqm-router",{ignored:[32]}],[1,"sqm-share-button",{medium:[1],programId:[1,"program-id"],pill:[4],disabled:[4],type:[1],size:[1],iconslot:[1],icon:[1],hideicon:[4],hidetext:[4],sharetitle:[1],sharetext:[1],demoData:[16]}],[1,"sqm-share-link",{programId:[1,"program-id"],tooltiptext:[1,"tooltip-text"],tooltiplifespan:[2,"tooltip-lifespan"],demoData:[16]}],[1,"sqm-user-name",{fallback:[1],loadingText:[1,"loading-text"],demoData:[16],_ignored:[32]}],[1,"sqm-referral-table-cell",{innerTemplate:[1,"inner-template"],ignored:[32]}],[1,"sqm-referral-table-date-cell",{date:[2],ignored:[32]}],[1,"sqm-referral-table-rewards-cell",{rewards:[16],hideDetails:[4,"hide-details"]}],[1,"sqm-referral-table-status-cell",{statusText:[1,"status-text"],converted:[4]}],[1,"sqm-referral-table-user-cell",{name:[1]}],[1,"sqm-table-cell",{colspan:[2],padding:[1]}],[1,"sqm-table-row",{border:[1]}],[4,"sqm-text",{ignored:[32]}],[0,"sqm-password-field",{fieldLabel:[1,"field-label"],enableValidation:[4,"enable-validation"],demoData:[16],ignored:[32]}],[1,"sqm-form-message",{type:[1],icon:[1],ignored:[32]}]]]],e)}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s}from"./p-64c3217a.js";import{j as r,c as l}from"./p-db5a1e78.js";import{H as a}from"./p-26f627aa.js";const e=()=>s("svg",{width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M15 5H9v11h4.5a1 1 0 001-1V9h.5a1 1 0 001-1V6a1 1 0 00-1-1zM1.5 9v6a1 1 0 001 1H7V5H1a1 1 0 00-1 1v2a1 1 0 001 1h.5z",fill:"var(--sl-color-primary-200)"}),s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.5 9v1h13V9h-13z",fill:"var(--sl-color-primary-300)"}),s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 2.71c0 .886-1.33 2.227-2 2.29H9v11H7.002V5H4.588C3.212 4.702 2 3.645 2 2.52 2 1.426 2.476.558 3.342.183 4.169-.176 5.125.02 5.88.545c.927.643 1.447 1.851 1.919 2.947l.123.286.12-.272C8.51 2.45 9.045 1.243 9.94.596c.793-.573 1.801-.79 2.672-.397.9.405 1.388 1.336 1.388 2.51zM10.612 1.5c.48-.347 1.056-.41 1.548 0 .428.357.45.525.506.93l.01.07c0 .599-.516 1.5-1.032 1.5-.366 0-.653-.003-.922-.006-.49-.005-.92-.01-1.657.006.14-.272.252-.533.36-.782.285-.667.534-1.246 1.187-1.718zm-5.673 0c-.233-.161-.766-.09-.987.006-.183.08-.456.32-.456 1.015 0 .674 1.092 1.257 1.092 1.257S5.454 4 7.002 4c-.527-1.305-1.273-1.951-2.063-2.5z",fill:"var(--sl-color-primary-600)"}));function i(e){const{points:i=0,cardTitle:n="Title Text",description:d="Description Text",showProgressBar:c=!1,progress:p=0,goal:v=1,repeatable:g=!1,expire:f=!1,dateExpire:m="",buttonText:h="Button Text",buttonLink:x="www.example.com"}=e,b=s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},s("path",{fill:"currentColor","fill-rule":"evenodd",d:"M1.636 9a7.364 7.364 0 1114.728 0A7.364 7.364 0 011.636 9zM9 0a9 9 0 100 18A9 9 0 009 0zm5.192 6.266a.982.982 0 00-1.548-1.208l-4.787 6.137-2.58-2.58a.982.982 0 00-1.39 1.388l3.367 3.366a.982.982 0 001.468-.09l5.47-7.013z","clip-rule":"evenodd"})),u=s("svg",{width:11,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z",fill:"currentColor"})),y={HostBlock:a,TaskCard:{"& .main > div":{margin:"var(--sl-spacing-medium)"},"& .main":{position:"relative",boxSizing:"border-box",minWidth:"347px",background:"var(--sl-color-white)",border:"1px solid var(--sl-color-gray-300)",borderRadius:"var(--sl-border-radius-medium)",fontSize:"var(--sl-font-size-small)",lineHeight:"var(--sl-line-height-dense)"},"& .main.complete":{background:"var(--sl-color-primary-50)",borderColor:"var(--sl-color-primary-700)"}},Header:{display:"flex","& .icon":{alignSelf:"center",lineHeight:"0",color:"var(--sl-color-primary-700)",fontSize:"var(--sl-font-size-large)",marginRight:"var(--sl-spacing-x-small)"},"& .value":{alignSelf:"center",color:"var(--sl-color-black)",fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-semibold)",lineHeight:"100%",marginRight:"var(--sl-spacing-xx-small)"},"& .text":{alignSelf:"end",color:"var(--sl-color-gray-600)",fontSize:"var(--sl-font-size-x-small)",lineHeight:"var(--sl-font-size-medium)",marginRight:"var(--sl-spacing-xx-small)"}},Title:{color:"var(--sl-color-black)",fontSize:"var(--sl-font-size-small)"},Footer:{display:"flex","& span":{verticalAlign:"text-bottom"},"& .icon":{verticalAlign:"bottom",fontSize:"var(--sl-font-size-xx-small)",marginRight:"var(--sl-spacing-xx-small)"},"& .text":{marginTop:"auto",fontSize:"var(--sl-font-size-x-small)",color:"var(--sl-color-gray-600)"},"& .action":{marginTop:"auto",marginLeft:"auto"},"& sl-button.action::part(base) ":{color:"var(--sl-color-white)",background:"var(--sl-color-primary-500)",border:"1px solid var(--sl-color-primary-500)",borderRadius:"var(--sl-border-radius-medium)"}}};r.setup(l());const w=r.createStyleSheet(y),z=w.toString(),k=p>=v,H=c?Math.floor(p/v):p;return s("div",{class:w.classes.TaskCard},s("div",{class:k?"main complete":"main"},s("style",{type:"text/css"},z),s("div",{class:w.classes.Header},k&&s("span",{class:"icon"},b),s("span",{class:"value"},i),s("span",{class:"text"},"SAASQUATCH POINTS")),s("div",{class:w.classes.Title},n),c&&s(o,Object.assign({},e)),s(t,{description:d}),s("div",{class:w.classes.Footer},s("span",{class:"text"},g&&s("div",null,s("span",{class:"icon"},u),s("span",null,"Completed ",H," times"),s("br",null),s("span",null,"Earned ",i*H," SaaSquatch Points")),f&&s("span",null,s("br",null),"Ends "," ",m)),s("sl-button",{class:"action",size:"small",onClick:()=>alert(x),disabled:k},k?"Complete":h))))}function t(e){const i={HostBlock:a,Description:{"& input[type=checkbox]":{display:"none"},"& input:checked ~ .details":{transform:"rotate(-180deg)"},"& .details":{position:"absolute",top:"var(--sl-spacing-medium)",right:"var(--sl-spacing-medium)",color:"var(--sl-color-gray-700)",fontSize:"var(--sl-font-size-large)","& :hover":{color:"var(--sl-color-primary-700)"},transformOrigin:"50% 37%",transition:"transform var(--sl-transition-medium) ease"},"& input:checked ~ .summary":{transition:"max-height var(--sl-transition-medium) ease",maxHeight:"300px"},"& .summary":{display:"block",overflow:"hidden",color:"var(--sl-color-gray-700)",fontSize:"var(--sl-font-size-x-small)",maxHeight:"0px",transition:"max-height var(--sl-transition-fast) ease-out"}}};r.setup(l());const t=r.createStyleSheet(i),o=t.toString(),n=Math.random().toString(36).slice(2);return s("div",null,s("style",{type:"text/css"},o),s("span",{class:t.classes.Description},s("input",{type:"checkbox",id:"details-"+n}),s("label",{class:"details",htmlFor:"details-"+n},s("sl-icon",{name:"chevron-down"})),s("span",{class:"summary"},e.description)))}function o(i){const{goal:t,progress:o,steps:n,unit:d="",repeatable:c}=i,p=e(),v=e(),g=e(),f=[];var m="",h=Math.floor(o/t);c?n?function(){let r=Math.floor(o/t);if(r<2){let r=n/t;for(let l=1;l<2*t+1;l+=n)m+=r+"fr 0fr ",l>o?l==t?(m+="0fr ",f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty bg"},d+t)),f.push(s("div",{class:"end bw"},p))):l==2*t?(m+="0fr 0fr",f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty bg"},d+2*t)),f.push(s("div",{class:"end bw"},v))):(f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty"},d+l))):l==t?(m+="0fr ",f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress bg"},d+l)),f.push(s("div",{class:"end"},g))):(f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress"},d+l)))}else{let l=o%t+t,a=n/t;m+="0fr 0fr ",f.push(s("div",{class:"progress bg"},d+t*(r-1))),f.push(s("div",{class:"end start"},p));for(let e=1;e<2*t+1;e+=n)m+=a+"fr 0fr ",e<=t?e==t?(m+="0fr ",f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress bg"},d+(e+t*(r-1)))),f.push(s("div",{class:"end"},v))):(f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress"},d+(e+t*(r-1))))):e>l?e==2*t?(m+="0fr 0fr",f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty bg"},d+(e+t*(r-1)))),f.push(s("div",{class:"end bw"},g))):(f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty"},d+(e+t*(r-1))))):(f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress"},d+(e+t*(r-1)))))}}():function(){let r=o%t/t*.5,l=Math.floor(o/t);0==l?(m=r+"fr 0fr "+(.5-r)+"fr 0fr 0.5fr 0fr",f.push(s("div",{class:"filled"})),f.push(s("div",{class:o==t?"progress bg":"progress"},d+o)),f.push(s("div",{class:"remain"})),f.push(s("div",{class:"end"},p)),f.push(s("div",{class:"remain"})),f.push(s("div",{class:"end bw"},v))):1==l?(m="0.5fr 0fr "+r+"fr 0fr "+(.5-r)+"fr 0fr",f.push(s("div",{class:"filled"})),f.push(s("div",{class:"end"},p)),f.push(s("div",{class:"filled"})),f.push(s("div",{class:o==t?"progress bg":"progress"},d+o)),f.push(s("div",{class:"remain"})),f.push(s("div",{class:"end bw"},v))):(m="0fr 0.5fr 0fr "+r+"fr 0fr "+(.5-r)+"fr 0fr",f.push(s("div",{class:"end start"},p)),f.push(s("div",{class:"filled"})),f.push(s("div",{class:"end"},v)),f.push(s("div",{class:"filled"})),f.push(s("div",{class:o==t*l?"progress bg":"progress"},d+o)),f.push(s("div",{class:"remain"})),f.push(s("div",{class:"end bw"},g)))}():n?function(){let r=n/t;for(let l=1;l<t;l+=n)m+=r+"fr 0fr ",l>o?(f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty"},d+l))):(f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress"},d+l)));m+=r+"fr 0fr ",t<=o?(m+="0fr ",f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress bg"},d+t)),f.push(s("div",{class:"end"},p))):(m+="0fr ",f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty bg"},d+t)),f.push(s("div",{class:"end"},p)))}():(m=Math.min(Math.max(o/t,0),1)+"fr 0fr "+Math.min(Math.max(1-o/t,0),1)+"fr 0fr",f.push(s("div",{class:"filled"})),f.push(s("div",{class:o==t?"progress bg":"progress"},d+o)),f.push(s("div",{class:"remain"})),f.push(s("div",{class:"end"},p)));const x={HostBlock:a,ProgressBar:{"& .progress-bar":{height:"20px",marginTop:"var(--sl-spacing-large)",marginRight:"var(--sl-spacing-x-small)",marginBottom:"var(--sl-spacing-large)",fontSize:"var(--sl-font-size-x-small)",display:"grid",gridTemplateColumns:m,lineHeight:"45px",userSelect:"none"},"& .progress-bar.repeatable-steps":{marginLeft:"var(--sl-spacing-x-small)"},"& .filled:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:"var(--sl-color-primary-500)"},"& .progress":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .progress::after":{content:'""',width:"12px",height:"12px",display:"flex",backgroundColor:"var(--sl-color-primary-500)",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .progress.bg:after":{width:"0",height:"0",border:"none"},"& .empty":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .empty::after":{content:'""',width:"12px",height:"12px",border:"2px solid #E0E0E0",margin:"-2px",display:"flex",backgroundColor:"white",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .empty.bg:after":{width:"0",height:"0",border:"none"},"& .remain:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:"#E0E0E0"},"& .end.bw":{filter:"grayscale(100%)"},"& .end.start":{transform:"scale(80%)",top:"-20px"},"& .end":{textAlign:"center",marginLeft:"-100px",marginRight:"-100px",position:"relative",top:"-18px",filter:t<=o?"":"grayscale(100%)",zIndex:"1"}}};r.setup(l());const b=r.createStyleSheet(x),u=b.toString();return s("div",{class:b.classes.ProgressBar},s("style",{type:"text/css"},u),s("div",{class:h>1?"progress-bar repeatable-steps":"progress-bar"},f))}export{i as T}
|
|
@@ -6,10 +6,9 @@ import { DemoData } from "../../global/demo";
|
|
|
6
6
|
export declare class SqmRewardExchangeList {
|
|
7
7
|
ignored: boolean;
|
|
8
8
|
/**
|
|
9
|
-
* @uiName
|
|
10
|
-
* @uiRequired
|
|
9
|
+
* @uiName Exchange button text
|
|
11
10
|
*/
|
|
12
|
-
|
|
11
|
+
buttonText: string;
|
|
13
12
|
/**
|
|
14
13
|
* @undocumented
|
|
15
14
|
* @uiType object
|
|
@@ -22,18 +22,15 @@ export declare type ExchangeItem = {
|
|
|
22
22
|
prettyDestinationMaxValue: string;
|
|
23
23
|
globalRewardKey: string;
|
|
24
24
|
destinationUnit: string;
|
|
25
|
-
steps?:
|
|
26
|
-
sourceValue: number;
|
|
27
|
-
prettySourceValue: string;
|
|
28
|
-
destinationValue: number;
|
|
29
|
-
prettyDestinationValue: string;
|
|
30
|
-
}[];
|
|
25
|
+
steps?: ExchangeStep[];
|
|
31
26
|
};
|
|
32
27
|
export declare type ExchangeStep = {
|
|
33
28
|
destinationValue: number;
|
|
34
29
|
sourceValue: number;
|
|
35
30
|
prettyDestinationValue: string;
|
|
36
31
|
prettySourceValue: string;
|
|
32
|
+
available: boolean;
|
|
33
|
+
unavailableReasonCode: string;
|
|
37
34
|
};
|
|
38
35
|
export declare type Stages = "" | "chooseReward" | "chooseAmount" | "confirmation";
|
|
39
36
|
export declare type ExchangeState = {
|
|
@@ -43,4 +40,4 @@ export declare type ExchangeState = {
|
|
|
43
40
|
amount: number;
|
|
44
41
|
exchangeError: boolean;
|
|
45
42
|
};
|
|
46
|
-
export declare function useRewardExchangeList(
|
|
43
|
+
export declare function useRewardExchangeList(props: SqmRewardExchangeList): RewardExchangeViewProps;
|
|
@@ -2,8 +2,8 @@ declare const _default: {
|
|
|
2
2
|
title: string;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
export declare const Default: () => any;
|
|
5
6
|
export declare const NotRepeatable: () => any;
|
|
6
7
|
export declare const NotRepeatableWithExpiry: () => any;
|
|
7
8
|
export declare const Repeatable: () => any;
|
|
8
9
|
export declare const RepeatableWithExpiry: () => any;
|
|
9
|
-
export declare const ProgressBar: () => any;
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { VNode } from "../../stencil-public-runtime";
|
|
2
2
|
export declare type TaskCardViewProps = {
|
|
3
3
|
points?: number;
|
|
4
|
-
cardTitle
|
|
5
|
-
description
|
|
6
|
-
|
|
7
|
-
repeatable?: boolean
|
|
8
|
-
expire?:
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
cardTitle?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
showProgressBar?: boolean;
|
|
7
|
+
repeatable?: boolean;
|
|
8
|
+
expire?: boolean;
|
|
9
|
+
dateExpire?: string;
|
|
10
|
+
buttonText?: string;
|
|
11
|
+
buttonLink?: string;
|
|
11
12
|
} & ProgressBarProps;
|
|
12
13
|
export declare function TaskCardView(props: TaskCardViewProps, children: VNode): VNode;
|
|
13
14
|
export declare type DetailsProps = {
|
|
14
15
|
description: string;
|
|
15
16
|
};
|
|
16
17
|
export declare type ProgressBarProps = {
|
|
18
|
+
showProgressBar?: boolean;
|
|
17
19
|
goal?: number;
|
|
18
20
|
progress?: number;
|
|
19
21
|
steps?: number;
|
|
20
22
|
unit?: string;
|
|
21
|
-
repeatable?: boolean
|
|
23
|
+
repeatable?: boolean;
|
|
22
24
|
};
|
|
23
25
|
export declare function ProgressBar(props: ProgressBarProps): VNode;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export declare class TaskCard {
|
|
5
5
|
ignored: boolean;
|
|
6
6
|
/**
|
|
7
|
-
* @uiName
|
|
7
|
+
* @uiName Reward Points
|
|
8
8
|
*/
|
|
9
9
|
points: number;
|
|
10
10
|
/**
|
|
@@ -16,25 +16,45 @@ export declare class TaskCard {
|
|
|
16
16
|
*/
|
|
17
17
|
description: string;
|
|
18
18
|
/**
|
|
19
|
-
* @uiName
|
|
19
|
+
* @uiName Set Repeatable
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
repeatable: boolean;
|
|
22
22
|
/**
|
|
23
|
-
* @uiName Show
|
|
23
|
+
* @uiName Show Progress Bar
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
showProgressBar: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @uiName Progress Bar Progress
|
|
28
|
+
*/
|
|
29
|
+
progress: number;
|
|
30
|
+
/**
|
|
31
|
+
* @uiName Progress Bar Goal
|
|
32
|
+
*/
|
|
33
|
+
goal: number;
|
|
34
|
+
/**
|
|
35
|
+
* @uiName Progress Bar Steps
|
|
36
|
+
*/
|
|
37
|
+
steps: number;
|
|
38
|
+
/**
|
|
39
|
+
* @uiName Progress Bar Unit
|
|
40
|
+
*/
|
|
41
|
+
unit?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @uiName Show Expiry
|
|
44
|
+
*/
|
|
45
|
+
expire: boolean;
|
|
26
46
|
/**
|
|
27
47
|
* @uiName Expire Date
|
|
28
48
|
*/
|
|
29
|
-
|
|
49
|
+
dateExpire?: string;
|
|
30
50
|
/**
|
|
31
51
|
* @uiName Button Text
|
|
32
52
|
*/
|
|
33
53
|
buttonText: string;
|
|
34
54
|
/**
|
|
35
|
-
* @uiName Button
|
|
55
|
+
* @uiName Button Link
|
|
36
56
|
*/
|
|
37
|
-
|
|
57
|
+
buttonLink: string;
|
|
38
58
|
constructor();
|
|
39
59
|
disconnectedCallback(): void;
|
|
40
60
|
render(): any;
|
|
@@ -817,16 +817,15 @@ export namespace Components {
|
|
|
817
817
|
"renderLabel": () => Promise<string>;
|
|
818
818
|
}
|
|
819
819
|
interface SqmRewardExchangeList {
|
|
820
|
+
/**
|
|
821
|
+
* @uiName Exchange button text
|
|
822
|
+
*/
|
|
823
|
+
"buttonText": string;
|
|
820
824
|
/**
|
|
821
825
|
* @undocumented
|
|
822
826
|
* @uiType object
|
|
823
827
|
*/
|
|
824
828
|
"demoData"?: DemoData<RewardExchangeViewProps>;
|
|
825
|
-
/**
|
|
826
|
-
* @uiName Type of List
|
|
827
|
-
* @uiRequired
|
|
828
|
-
*/
|
|
829
|
-
"listType": string;
|
|
830
829
|
}
|
|
831
830
|
interface SqmRewardsTable {
|
|
832
831
|
/**
|
|
@@ -1016,9 +1015,9 @@ export namespace Components {
|
|
|
1016
1015
|
}
|
|
1017
1016
|
interface SqmTaskCard {
|
|
1018
1017
|
/**
|
|
1019
|
-
* @uiName Button
|
|
1018
|
+
* @uiName Button Link
|
|
1020
1019
|
*/
|
|
1021
|
-
"
|
|
1020
|
+
"buttonLink": string;
|
|
1022
1021
|
/**
|
|
1023
1022
|
* @uiName Button Text
|
|
1024
1023
|
*/
|
|
@@ -1028,25 +1027,45 @@ export namespace Components {
|
|
|
1028
1027
|
*/
|
|
1029
1028
|
"cardTitle": string;
|
|
1030
1029
|
/**
|
|
1031
|
-
* @uiName
|
|
1030
|
+
* @uiName Expire Date
|
|
1032
1031
|
*/
|
|
1033
|
-
"
|
|
1032
|
+
"dateExpire"?: string;
|
|
1034
1033
|
/**
|
|
1035
1034
|
* @uiName Description Text
|
|
1036
1035
|
*/
|
|
1037
1036
|
"description": string;
|
|
1038
1037
|
/**
|
|
1039
|
-
* @uiName
|
|
1038
|
+
* @uiName Show Expiry
|
|
1039
|
+
*/
|
|
1040
|
+
"expire": boolean;
|
|
1041
|
+
/**
|
|
1042
|
+
* @uiName Progress Bar Goal
|
|
1040
1043
|
*/
|
|
1041
|
-
"
|
|
1044
|
+
"goal": number;
|
|
1042
1045
|
/**
|
|
1043
|
-
* @uiName
|
|
1046
|
+
* @uiName Reward Points
|
|
1044
1047
|
*/
|
|
1045
1048
|
"points": number;
|
|
1046
1049
|
/**
|
|
1047
|
-
* @uiName
|
|
1050
|
+
* @uiName Progress Bar Progress
|
|
1051
|
+
*/
|
|
1052
|
+
"progress": number;
|
|
1053
|
+
/**
|
|
1054
|
+
* @uiName Set Repeatable
|
|
1055
|
+
*/
|
|
1056
|
+
"repeatable": boolean;
|
|
1057
|
+
/**
|
|
1058
|
+
* @uiName Show Progress Bar
|
|
1059
|
+
*/
|
|
1060
|
+
"showProgressBar": boolean;
|
|
1061
|
+
/**
|
|
1062
|
+
* @uiName Progress Bar Steps
|
|
1063
|
+
*/
|
|
1064
|
+
"steps": number;
|
|
1065
|
+
/**
|
|
1066
|
+
* @uiName Progress Bar Unit
|
|
1048
1067
|
*/
|
|
1049
|
-
"
|
|
1068
|
+
"unit"?: string;
|
|
1050
1069
|
}
|
|
1051
1070
|
interface SqmText {
|
|
1052
1071
|
}
|
|
@@ -2276,16 +2295,15 @@ declare namespace LocalJSX {
|
|
|
2276
2295
|
"deletedUser"?: string;
|
|
2277
2296
|
}
|
|
2278
2297
|
interface SqmRewardExchangeList {
|
|
2298
|
+
/**
|
|
2299
|
+
* @uiName Exchange button text
|
|
2300
|
+
*/
|
|
2301
|
+
"buttonText"?: string;
|
|
2279
2302
|
/**
|
|
2280
2303
|
* @undocumented
|
|
2281
2304
|
* @uiType object
|
|
2282
2305
|
*/
|
|
2283
2306
|
"demoData"?: DemoData<RewardExchangeViewProps>;
|
|
2284
|
-
/**
|
|
2285
|
-
* @uiName Type of List
|
|
2286
|
-
* @uiRequired
|
|
2287
|
-
*/
|
|
2288
|
-
"listType"?: string;
|
|
2289
2307
|
}
|
|
2290
2308
|
interface SqmRewardsTable {
|
|
2291
2309
|
/**
|
|
@@ -2475,9 +2493,9 @@ declare namespace LocalJSX {
|
|
|
2475
2493
|
}
|
|
2476
2494
|
interface SqmTaskCard {
|
|
2477
2495
|
/**
|
|
2478
|
-
* @uiName Button
|
|
2496
|
+
* @uiName Button Link
|
|
2479
2497
|
*/
|
|
2480
|
-
"
|
|
2498
|
+
"buttonLink"?: string;
|
|
2481
2499
|
/**
|
|
2482
2500
|
* @uiName Button Text
|
|
2483
2501
|
*/
|
|
@@ -2487,25 +2505,45 @@ declare namespace LocalJSX {
|
|
|
2487
2505
|
*/
|
|
2488
2506
|
"cardTitle"?: string;
|
|
2489
2507
|
/**
|
|
2490
|
-
* @uiName
|
|
2508
|
+
* @uiName Expire Date
|
|
2491
2509
|
*/
|
|
2492
|
-
"
|
|
2510
|
+
"dateExpire"?: string;
|
|
2493
2511
|
/**
|
|
2494
2512
|
* @uiName Description Text
|
|
2495
2513
|
*/
|
|
2496
2514
|
"description"?: string;
|
|
2497
2515
|
/**
|
|
2498
|
-
* @uiName
|
|
2516
|
+
* @uiName Show Expiry
|
|
2517
|
+
*/
|
|
2518
|
+
"expire"?: boolean;
|
|
2519
|
+
/**
|
|
2520
|
+
* @uiName Progress Bar Goal
|
|
2499
2521
|
*/
|
|
2500
|
-
"
|
|
2522
|
+
"goal"?: number;
|
|
2501
2523
|
/**
|
|
2502
|
-
* @uiName
|
|
2524
|
+
* @uiName Reward Points
|
|
2503
2525
|
*/
|
|
2504
2526
|
"points"?: number;
|
|
2505
2527
|
/**
|
|
2506
|
-
* @uiName
|
|
2528
|
+
* @uiName Progress Bar Progress
|
|
2529
|
+
*/
|
|
2530
|
+
"progress"?: number;
|
|
2531
|
+
/**
|
|
2532
|
+
* @uiName Set Repeatable
|
|
2533
|
+
*/
|
|
2534
|
+
"repeatable"?: boolean;
|
|
2535
|
+
/**
|
|
2536
|
+
* @uiName Show Progress Bar
|
|
2537
|
+
*/
|
|
2538
|
+
"showProgressBar"?: boolean;
|
|
2539
|
+
/**
|
|
2540
|
+
* @uiName Progress Bar Steps
|
|
2541
|
+
*/
|
|
2542
|
+
"steps"?: number;
|
|
2543
|
+
/**
|
|
2544
|
+
* @uiName Progress Bar Unit
|
|
2507
2545
|
*/
|
|
2508
|
-
"
|
|
2546
|
+
"unit"?: string;
|
|
2509
2547
|
}
|
|
2510
2548
|
interface SqmText {
|
|
2511
2549
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DemoData<T extends {}> = Partial<Omit<T, "callbacks">>;
|