@saasquatch/vanilla-components 1.2.3 → 1.3.0-0
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/sqh-close-button.cjs.entry.js +8 -3
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +179 -7
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +15 -0
- package/dist/cjs/widget-components.cjs.js +1 -1
- package/dist/collection/components/close-button/close-button.js +14 -3
- package/dist/collection/components/copy-button/copy-button.js +63 -24
- package/dist/collection/components/copy-link-button/copy-link-button.js +33 -12
- package/dist/collection/components/global-container/global-container.js +28 -10
- package/dist/collection/components/image-component/image-component.js +33 -12
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +29 -11
- package/dist/collection/components/referral-code/referral-code.js +3 -0
- package/dist/collection/components/referral-component/referral-component.js +28 -10
- package/dist/collection/components/referral-list/referral-list.js +205 -58
- package/dist/collection/components/rewards-actions/rewards-actions.js +33 -6
- package/dist/collection/components/share-button/share-button.js +58 -22
- package/dist/collection/components/share-button-container/share-button-container.js +824 -164
- package/dist/collection/components/stat-component/stat-component.js +40 -10
- package/dist/collection/components/stats-container/stats-container.js +23 -6
- package/dist/collection/components/text-component/text-component.js +58 -43
- package/dist/esm/loader.mjs +1 -1
- package/dist/esm/sqh-close-button.entry.js +8 -3
- package/dist/esm/sqh-copy-button_12.entry.js +178 -6
- package/dist/esm/sqh-rewards-actions.entry.js +15 -0
- package/dist/esm/widget-components.mjs +1 -1
- package/dist/esm-es5/loader.mjs +1 -1
- package/dist/esm-es5/sqh-close-button.entry.js +14 -9
- package/dist/esm-es5/sqh-copy-button_12.entry.js +196 -24
- package/dist/esm-es5/sqh-rewards-actions.entry.js +15 -0
- package/dist/esm-es5/widget-components.mjs +1 -1
- package/dist/types/components/close-button/close-button.d.ts +9 -1
- package/dist/types/components/copy-button/copy-button.d.ts +63 -0
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +33 -0
- package/dist/types/components/global-container/global-container.d.ts +28 -0
- package/dist/types/components/image-component/image-component.d.ts +33 -0
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +29 -1
- package/dist/types/components/referral-code/referral-code.d.ts +3 -0
- package/dist/types/components/referral-component/referral-component.d.ts +28 -0
- package/dist/types/components/referral-list/referral-list.d.ts +167 -0
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +18 -0
- package/dist/types/components/share-button/share-button.d.ts +58 -0
- package/dist/types/components/share-button-container/share-button-container.d.ts +494 -0
- package/dist/types/components/stat-component/stat-component.d.ts +32 -0
- package/dist/types/components/stats-container/stats-container.d.ts +18 -0
- package/dist/types/components/text-component/text-component.d.ts +58 -1
- package/dist/types/components.d.ts +1680 -2
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-75ab4c57.entry.js → p-d7059393.entry.js} +1 -1
- package/dist/widget-components/{p-d2335c54.system.entry.js → p-fba5ea7f.system.entry.js} +1 -1
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/dist/widget-components/widget-components.js +1 -1
- package/package.json +1 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -9,7 +9,7 @@ require('./_commonjsHelpers-ac2d0785.js');
|
|
|
9
9
|
const defineCustomElements = (win, options) => {
|
|
10
10
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
11
11
|
return en.patchEsm().then(() => {
|
|
12
|
-
return index.bootstrapLazy([["sqh-close-button.cjs",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code.cjs",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions.cjs",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_12.cjs",[[0,"sqh-referral-list",{"ishidden":[4],"paginatemore":[1],"paginateless":[1],"noreferralsyet":[1],"referralnamecolor":[1],"referraltextcolor":[1],"unknownuser":[1],"showexpiry":[4],"shownotes":[4],"redeemedvalue":[1],"showreferrer":[4],"referrercontent":[1],"referrervalue":[1],"rewardcolor":[1],"customernotecolor":[1],"usefirstreward":[4],"convertedcontent":[1],"valuecontent":[1],"pendingcolor":[1],"pendingcontent":[1],"pendingvalue":[1],"expiredcolor":[1],"expiredcontent":[1],"expiredvalue":[1],"expiresvalue":[1],"cancelledcolor":[1],"cancelledcontent":[1],"cancelledvalue":[1],"internationalization":[4],"referrals":[32],"referralsCount":[32],"referredBy":[32],"rewards":[32],"loading":[32],"offset":[32],"locale":[32]}],[0,"sqh-share-button-container",{"ishidden":[4],"emaildisplayrule":[1],"emailtext":[1],"emailbackgroundcolor":[1],"emailtextcolor":[1],"emailicon":[1],"emailclassName":[1,"emailclass-name"],"emailiconhorizontal":[2],"emailiconvertical":[2],"emailiconsize":[2],"facebookdisplayrule":[1],"facebooktext":[1],"facebookbackgroundcolor":[1],"facebooktextcolor":[1],"facebookicon":[1],"facebookclassName":[1,"facebookclass-name"],"facebookiconhorizontal":[2],"facebookiconvertical":[2],"facebookiconsize":[2],"twitterdisplayrule":[1],"twittertext":[1],"twitterbackgroundcolor":[1],"twittertextcolor":[1],"twittericon":[1],"twitterclassName":[1,"twitterclass-name"],"twittericonhorizontal":[2],"twittericonvertical":[2],"twittericonsize":[2],"smsdisplayrule":[1],"smstext":[1],"smsbackgroundcolor":[1],"smstextcolor":[1],"smsicon":[1],"smsclassName":[1,"smsclass-name"],"smsiconhorizontal":[2],"smsiconvertical":[2],"smsiconsize":[2],"whatsappdisplayrule":[1],"whatsapptext":[1],"whatsappbackgroundcolor":[1],"whatsapptextcolor":[1],"whatsappicon":[1],"whatsappclassName":[1,"whatsappclass-name"],"whatsappiconhorizontal":[2],"whatsappiconvertical":[2],"whatsappiconsize":[2],"linkedindisplayrule":[1],"linkedintext":[1],"linkedinbackgroundcolor":[1],"linkedintextcolor":[1],"linkedinicon":[1],"linkedinclassName":[1,"linkedinclass-name"],"linkediniconhorizontal":[2],"linkediniconvertical":[2],"linkediniconsize":[2],"pinterestdisplayrule":[1],"pinteresttext":[1],"pinterestbackgroundcolor":[1],"pinteresttextcolor":[1],"pinteresticon":[1],"pinterestclassName":[1,"pinterestclass-name"],"pinteresticonhorizontal":[2],"pinteresticonvertical":[2],"pinteresticonsize":[2],"messengerdisplayrule":[1],"messengertext":[1],"messengerbackgroundcolor":[1],"messengertextcolor":[1],"messengericon":[1],"messengerclassName":[1,"messengerclass-name"],"messengericonhorizontal":[2],"messengericonvertical":[2],"messengericonsize":[2],"linedisplayrule":[1],"linetext":[1],"linebackgroundcolor":[1],"linetextcolor":[1],"lineicon":[1],"lineclassName":[1,"lineclass-name"],"lineiconhorizontal":[2],"lineiconvertical":[2],"lineiconsize":[2],"emailurl":[32],"facebookurl":[32],"twitterurl":[32],"smsurl":[32],"whatsappurl":[32],"linkedinurl":[32],"pinteresturl":[32],"messengerurl":[32],"lineurl":[32]}],[0,"sqh-copy-button",{"ishidden":[4],"text":[1],"width":[2],"backgroundcolor":[1],"borderradius":[2],"textcolor":[1],"fontsize":[2],"copysuccess":[1],"copyfailure":[1],"rewardkey":[1],"codefontsize":[2],"codefontcolor":[1],"fueltankcode":[32]}],[0,"sqh-copy-link-button",{"ishidden":[4],"text":[1],"copysuccess":[1],"copyfailure":[1],"buttoncolor":[1],"textcolor":[1],"sharelink":[32]}],[4,"sqh-global-container",{"background":[1],"loadingcolor":[1],"fontfamily":[1],"maxwidth":[1],"poweredby":[4]}],[0,"sqh-image-component",{"ishidden":[4],"url":[1],"width":[2],"borderradius":[2],"alignment":[1],"css":[1]}],[0,"sqh-partner-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[0,"sqh-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[4,"sqh-stats-container",{"ishidden":[4],"paddingtop":[1],"paddingbottom":[1],"loading":[32],"stats":[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"paddingbottom":[1],"
|
|
12
|
+
return index.bootstrapLazy([["sqh-close-button.cjs",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code.cjs",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions.cjs",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_12.cjs",[[0,"sqh-referral-list",{"ishidden":[4],"paginatemore":[1],"paginateless":[1],"noreferralsyet":[1],"referralnamecolor":[1],"referraltextcolor":[1],"unknownuser":[1],"showexpiry":[4],"shownotes":[4],"redeemedvalue":[1],"showreferrer":[4],"referrercontent":[1],"referrervalue":[1],"rewardcolor":[1],"customernotecolor":[1],"usefirstreward":[4],"convertedcontent":[1],"valuecontent":[1],"pendingcolor":[1],"pendingcontent":[1],"pendingvalue":[1],"expiredcolor":[1],"expiredcontent":[1],"expiredvalue":[1],"expiresvalue":[1],"cancelledcolor":[1],"cancelledcontent":[1],"cancelledvalue":[1],"internationalization":[4],"referrals":[32],"referralsCount":[32],"referredBy":[32],"rewards":[32],"loading":[32],"offset":[32],"locale":[32]}],[0,"sqh-share-button-container",{"ishidden":[4],"emaildisplayrule":[1],"emailtext":[1],"emailbackgroundcolor":[1],"emailtextcolor":[1],"emailicon":[1],"emailclassName":[1,"emailclass-name"],"emailiconhorizontal":[2],"emailiconvertical":[2],"emailiconsize":[2],"facebookdisplayrule":[1],"facebooktext":[1],"facebookbackgroundcolor":[1],"facebooktextcolor":[1],"facebookicon":[1],"facebookclassName":[1,"facebookclass-name"],"facebookiconhorizontal":[2],"facebookiconvertical":[2],"facebookiconsize":[2],"twitterdisplayrule":[1],"twittertext":[1],"twitterbackgroundcolor":[1],"twittertextcolor":[1],"twittericon":[1],"twitterclassName":[1,"twitterclass-name"],"twittericonhorizontal":[2],"twittericonvertical":[2],"twittericonsize":[2],"smsdisplayrule":[1],"smstext":[1],"smsbackgroundcolor":[1],"smstextcolor":[1],"smsicon":[1],"smsclassName":[1,"smsclass-name"],"smsiconhorizontal":[2],"smsiconvertical":[2],"smsiconsize":[2],"whatsappdisplayrule":[1],"whatsapptext":[1],"whatsappbackgroundcolor":[1],"whatsapptextcolor":[1],"whatsappicon":[1],"whatsappclassName":[1,"whatsappclass-name"],"whatsappiconhorizontal":[2],"whatsappiconvertical":[2],"whatsappiconsize":[2],"linkedindisplayrule":[1],"linkedintext":[1],"linkedinbackgroundcolor":[1],"linkedintextcolor":[1],"linkedinicon":[1],"linkedinclassName":[1,"linkedinclass-name"],"linkediniconhorizontal":[2],"linkediniconvertical":[2],"linkediniconsize":[2],"pinterestdisplayrule":[1],"pinteresttext":[1],"pinterestbackgroundcolor":[1],"pinteresttextcolor":[1],"pinteresticon":[1],"pinterestclassName":[1,"pinterestclass-name"],"pinteresticonhorizontal":[2],"pinteresticonvertical":[2],"pinteresticonsize":[2],"messengerdisplayrule":[1],"messengertext":[1],"messengerbackgroundcolor":[1],"messengertextcolor":[1],"messengericon":[1],"messengerclassName":[1,"messengerclass-name"],"messengericonhorizontal":[2],"messengericonvertical":[2],"messengericonsize":[2],"linedisplayrule":[1],"linetext":[1],"linebackgroundcolor":[1],"linetextcolor":[1],"lineicon":[1],"lineclassName":[1,"lineclass-name"],"lineiconhorizontal":[2],"lineiconvertical":[2],"lineiconsize":[2],"emailurl":[32],"facebookurl":[32],"twitterurl":[32],"smsurl":[32],"whatsappurl":[32],"linkedinurl":[32],"pinteresturl":[32],"messengerurl":[32],"lineurl":[32]}],[0,"sqh-copy-button",{"ishidden":[4],"text":[1],"width":[2],"backgroundcolor":[1],"borderradius":[2],"textcolor":[1],"fontsize":[2],"copysuccess":[1],"copyfailure":[1],"rewardkey":[1],"codefontsize":[2],"codefontcolor":[1],"fueltankcode":[32]}],[0,"sqh-copy-link-button",{"ishidden":[4],"text":[1],"copysuccess":[1],"copyfailure":[1],"buttoncolor":[1],"textcolor":[1],"sharelink":[32]}],[4,"sqh-global-container",{"background":[1],"loadingcolor":[1],"fontfamily":[1],"maxwidth":[1],"poweredby":[4]}],[0,"sqh-image-component",{"ishidden":[4],"url":[1],"width":[2],"borderradius":[2],"alignment":[1],"css":[1]}],[0,"sqh-partner-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[0,"sqh-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[4,"sqh-stats-container",{"ishidden":[4],"paddingtop":[1],"paddingbottom":[1],"loading":[32],"stats":[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"paddingbottom":[1],"textalign":[1],"background":[1],"height":[1]}],[0,"sqh-referral-component",{"referral":[16],"referraltype":[1],"referralvariables":[16],"unknownuser":[16],"locale":[1]}],[0,"sqh-share-button",{"displayrule":[1],"text":[1],"backgroundcolor":[1],"textcolor":[1],"icon":[1],"buttonClassName":[1,"button-class-name"],"iconhorizontal":[2],"iconvertical":[2],"iconsize":[2],"type":[1],"url":[1]}]]]], options);
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -8,9 +8,14 @@ const WidgetHost = require('./WidgetHost-d7b870ce.js');
|
|
|
8
8
|
|
|
9
9
|
const closeButtonCss = "sqh-close-button .squatch-header-close{position:absolute;top:4px;right:6px;background:transparent;border:0;color:#4486e1;font-size:12px}sqh-close-button .squatch-header-close:hover{text-decoration:underline}";
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const CloseButton = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
+
/**
|
|
15
|
+
* The text shown inside the close button.
|
|
16
|
+
*
|
|
17
|
+
* @uiName Button Text
|
|
18
|
+
*/
|
|
14
19
|
this.text = "Close";
|
|
15
20
|
}
|
|
16
21
|
handleClick() {
|
|
@@ -27,6 +32,6 @@ const TwitterShareButton = class {
|
|
|
27
32
|
}
|
|
28
33
|
get closeButton() { return index.getElement(this); }
|
|
29
34
|
};
|
|
30
|
-
|
|
35
|
+
CloseButton.style = closeButtonCss;
|
|
31
36
|
|
|
32
|
-
exports.sqh_close_button =
|
|
37
|
+
exports.sqh_close_button = CloseButton;
|
|
@@ -2742,7 +2742,7 @@ ImageComponent.style = imageComponentCss;
|
|
|
2742
2742
|
|
|
2743
2743
|
const partnerStatComponentCss = "sqh-partner-stat-component{text-align:center;width:140px;float:left}sqh-partner-stat-component>div{padding:10px}sqh-partner-stat-component .stat-value{font-size:20px;line-height:20px;margin-top:20px;margin-bottom:8px;font-weight:300}sqh-partner-stat-component .stat-description{text-transform:uppercase;font-size:12px}@media (max-width: 499px){sqh-partner-stat-component{width:100%;text-align:left;background:#f2f2f2;border:1px solid #ddd}sqh-partner-stat-component:first-child{border-radius:4px 4px 0 0}sqh-partner-stat-component:last-child{border-radius:0 0 4px 4px}}@media (max-width: 499px){sqh-partner-stat-component .stat-value{font-size:22px;float:left;width:60px;text-align:center;margin:0 10px 0 0}}@media (max-width: 499px){sqh-partner-stat-component .stat-description{line-height:20px;padding-left:100px;overflow-wrap:break-word}}";
|
|
2744
2744
|
|
|
2745
|
-
const
|
|
2745
|
+
const PartnerStatComponent = class {
|
|
2746
2746
|
constructor(hostRef) {
|
|
2747
2747
|
index.registerInstance(this, hostRef);
|
|
2748
2748
|
this.statTypeUpdated = index.createEvent(this, "statTypeUpdated", 7);
|
|
@@ -2772,7 +2772,7 @@ const StatComponent = class {
|
|
|
2772
2772
|
"stattype": ["stattypeHandler"]
|
|
2773
2773
|
}; }
|
|
2774
2774
|
};
|
|
2775
|
-
|
|
2775
|
+
PartnerStatComponent.style = partnerStatComponentCss;
|
|
2776
2776
|
|
|
2777
2777
|
var TYPE;
|
|
2778
2778
|
(function (TYPE) {
|
|
@@ -7330,33 +7330,201 @@ const shareButtonContainerCss = "sqh-share-button-container{text-align:center;di
|
|
|
7330
7330
|
const ShareButtonContainer = class {
|
|
7331
7331
|
constructor(hostRef) {
|
|
7332
7332
|
index.registerInstance(this, hostRef);
|
|
7333
|
+
/**
|
|
7334
|
+
* Email button icon
|
|
7335
|
+
*
|
|
7336
|
+
* @uiName Email Icon
|
|
7337
|
+
* @uiGroup emailButton
|
|
7338
|
+
*/
|
|
7333
7339
|
this.emailicon = "mail";
|
|
7340
|
+
/**
|
|
7341
|
+
* CSS Class name used to style the Email button
|
|
7342
|
+
*
|
|
7343
|
+
* @uiName Email Class Name
|
|
7344
|
+
* @uiGroup emailButton
|
|
7345
|
+
*/
|
|
7334
7346
|
this.emailclassName = "email-share";
|
|
7347
|
+
/**
|
|
7348
|
+
* Facebook button icon
|
|
7349
|
+
*
|
|
7350
|
+
* @uiName Facebook Icon
|
|
7351
|
+
* @uiGroup facebookButton
|
|
7352
|
+
*/
|
|
7335
7353
|
this.facebookicon = "facebook";
|
|
7354
|
+
/**
|
|
7355
|
+
* Number to horizontally align the facebook button icon
|
|
7356
|
+
*
|
|
7357
|
+
* @uiName Facebook Icon Horizontal
|
|
7358
|
+
* @uiGroup facebookButton
|
|
7359
|
+
*/
|
|
7336
7360
|
this.facebookiconhorizontal = 9;
|
|
7361
|
+
/**
|
|
7362
|
+
* Size of the facebook button icon
|
|
7363
|
+
*
|
|
7364
|
+
* @uiName Facebook Icon Size
|
|
7365
|
+
* @uiGroup facebookButton
|
|
7366
|
+
*/
|
|
7337
7367
|
this.facebookiconsize = 1.2;
|
|
7368
|
+
/**
|
|
7369
|
+
* Twitter button icon
|
|
7370
|
+
*
|
|
7371
|
+
* @uiName Twitter Icon
|
|
7372
|
+
* @uiGroup twitterButton
|
|
7373
|
+
*/
|
|
7338
7374
|
this.twittericon = "twitter";
|
|
7375
|
+
/**
|
|
7376
|
+
* Number to horizontally align the twitter button icon
|
|
7377
|
+
*
|
|
7378
|
+
* @uiName Twitter Icon Horizontal
|
|
7379
|
+
* @uiGroup twitterButton
|
|
7380
|
+
*/
|
|
7339
7381
|
this.twittericonhorizontal = 9;
|
|
7382
|
+
/**
|
|
7383
|
+
* Size of the twitter button icon
|
|
7384
|
+
*
|
|
7385
|
+
* @uiName Twitter Icon Size
|
|
7386
|
+
* @uiGroup twitterButton
|
|
7387
|
+
*/
|
|
7340
7388
|
this.twittericonsize = 1.2;
|
|
7389
|
+
/**
|
|
7390
|
+
* SMS button icon
|
|
7391
|
+
*
|
|
7392
|
+
* @uiName SMS Icon
|
|
7393
|
+
* @uiGroup smsButton
|
|
7394
|
+
*/
|
|
7341
7395
|
this.smsicon = "chat";
|
|
7396
|
+
/**
|
|
7397
|
+
* Color of the text inside the WhatsApp button
|
|
7398
|
+
*
|
|
7399
|
+
* @uiName WhatsApp Text Color
|
|
7400
|
+
* @uiGroup whatsappButton
|
|
7401
|
+
*/
|
|
7342
7402
|
this.whatsapptextcolor = "#fff";
|
|
7403
|
+
/**
|
|
7404
|
+
* WhatsApp button icon
|
|
7405
|
+
*
|
|
7406
|
+
* @uiName WhatsApp Icon
|
|
7407
|
+
* @uiGroup whatsappButton
|
|
7408
|
+
*/
|
|
7343
7409
|
this.whatsappicon = "whatsapp";
|
|
7410
|
+
/**
|
|
7411
|
+
* Number to horizontally align the WhatsApp button icon
|
|
7412
|
+
*
|
|
7413
|
+
* @uiName WhatsApp Icon Horizontal
|
|
7414
|
+
* @uiGroup whatsappButton
|
|
7415
|
+
*/
|
|
7344
7416
|
this.whatsappiconhorizontal = 7;
|
|
7417
|
+
/**
|
|
7418
|
+
* Number to vertically align the WhatsApp button icon
|
|
7419
|
+
*
|
|
7420
|
+
* @uiName WhatsApp Icon Vertical
|
|
7421
|
+
* @uiGroup whatsappButton
|
|
7422
|
+
*/
|
|
7345
7423
|
this.whatsappiconvertical = 2;
|
|
7424
|
+
/**
|
|
7425
|
+
* Size of the WhatsApp button icon
|
|
7426
|
+
*
|
|
7427
|
+
* @uiName WhatsApp Icon Size
|
|
7428
|
+
* @uiGroup whatsappButton
|
|
7429
|
+
*/
|
|
7346
7430
|
this.whatsappiconsize = 1.4;
|
|
7431
|
+
/**
|
|
7432
|
+
* Linkedin button icon
|
|
7433
|
+
*
|
|
7434
|
+
* @uiName Linkedin Icon
|
|
7435
|
+
* @uiGroup linkedinButton
|
|
7436
|
+
*/
|
|
7347
7437
|
this.linkedinicon = "linkedin";
|
|
7438
|
+
/**
|
|
7439
|
+
* Size of the Linkedin button icon
|
|
7440
|
+
*
|
|
7441
|
+
* @uiName Linkedin Icon Size
|
|
7442
|
+
* @uiGroup linkedinButton
|
|
7443
|
+
*/
|
|
7348
7444
|
this.linkediniconsize = 1.2;
|
|
7445
|
+
/**
|
|
7446
|
+
* Pinterest button icon
|
|
7447
|
+
*
|
|
7448
|
+
* @uiName Pinterest Icon
|
|
7449
|
+
* @uiGroup pinterestButton
|
|
7450
|
+
*/
|
|
7349
7451
|
this.pinteresticon = "pinterest";
|
|
7452
|
+
/**
|
|
7453
|
+
* Number to horizontally align the Pinterest button icon
|
|
7454
|
+
*
|
|
7455
|
+
* @uiName Pinterest Icon Horizontal
|
|
7456
|
+
* @uiGroup pinterestButton
|
|
7457
|
+
*/
|
|
7350
7458
|
this.pinteresticonhorizontal = 9;
|
|
7459
|
+
/**
|
|
7460
|
+
* Number to vertically align the Pinterest button icon
|
|
7461
|
+
*
|
|
7462
|
+
* @uiName Pinterest Icon Vertical
|
|
7463
|
+
* @uiGroup pinterestButton
|
|
7464
|
+
*/
|
|
7351
7465
|
this.pinteresticonvertical = 4;
|
|
7466
|
+
/**
|
|
7467
|
+
* Size of the Pinterest button icon
|
|
7468
|
+
*
|
|
7469
|
+
* @uiName Pinterest Icon Size
|
|
7470
|
+
* @uiGroup pinterestButton
|
|
7471
|
+
*/
|
|
7352
7472
|
this.pinteresticonsize = 1.2;
|
|
7473
|
+
/**
|
|
7474
|
+
* Messenger button icon
|
|
7475
|
+
*
|
|
7476
|
+
* @uiName Messenger Icon
|
|
7477
|
+
* @uiGroup messengerButton
|
|
7478
|
+
*/
|
|
7353
7479
|
this.messengericon = "messenger";
|
|
7480
|
+
/**
|
|
7481
|
+
* Number to horizontally align the Messenger button icon
|
|
7482
|
+
*
|
|
7483
|
+
* @uiName Messenger Icon Horizontal
|
|
7484
|
+
* @uiGroup messengerButton
|
|
7485
|
+
*/
|
|
7354
7486
|
this.messengericonhorizontal = 7;
|
|
7487
|
+
/**
|
|
7488
|
+
* Number to vertically align the Messenger button icon
|
|
7489
|
+
*
|
|
7490
|
+
* @uiName Messenger Icon Vertical
|
|
7491
|
+
* @uiGroup messengerButton
|
|
7492
|
+
*/
|
|
7355
7493
|
this.messengericonvertical = 3;
|
|
7494
|
+
/**
|
|
7495
|
+
* Size of the Messenger button icon
|
|
7496
|
+
*
|
|
7497
|
+
* @uiName Messenger Icon Size
|
|
7498
|
+
* @uiGroup messengerButton
|
|
7499
|
+
*/
|
|
7356
7500
|
this.messengericonsize = 1.4;
|
|
7501
|
+
/**
|
|
7502
|
+
* Line button icon
|
|
7503
|
+
*
|
|
7504
|
+
* @uiName Line Icon
|
|
7505
|
+
* @uiGroup lineButton
|
|
7506
|
+
*/
|
|
7357
7507
|
this.lineicon = "line";
|
|
7508
|
+
/**
|
|
7509
|
+
* Number to horizontally align the Line button icon
|
|
7510
|
+
*
|
|
7511
|
+
* @uiName Line Icon Horizontal
|
|
7512
|
+
* @uiGroup lineButton
|
|
7513
|
+
*/
|
|
7358
7514
|
this.lineiconhorizontal = -2;
|
|
7515
|
+
/**
|
|
7516
|
+
* Number to vertically align the Line button icon
|
|
7517
|
+
*
|
|
7518
|
+
* @uiName Line Icon Vertical
|
|
7519
|
+
* @uiGroup lineButton
|
|
7520
|
+
*/
|
|
7359
7521
|
this.lineiconvertical = -5;
|
|
7522
|
+
/**
|
|
7523
|
+
* Size of the Line button icon
|
|
7524
|
+
*
|
|
7525
|
+
* @uiName Line Icon Size
|
|
7526
|
+
* @uiGroup lineButton
|
|
7527
|
+
*/
|
|
7360
7528
|
this.lineiconsize = 2.2;
|
|
7361
7529
|
}
|
|
7362
7530
|
componentWillLoad() {
|
|
@@ -7413,7 +7581,7 @@ ShareButtonContainer.style = shareButtonContainerCss;
|
|
|
7413
7581
|
|
|
7414
7582
|
const statComponentCss = "sqh-stat-component{text-align:center;width:140px;float:left}sqh-stat-component>div{padding:10px}sqh-stat-component .stat-value{white-space:nowrap;font-size:30px;line-height:20px;margin-top:20px;margin-bottom:8px;font-weight:300}sqh-stat-component .stat-description{text-transform:uppercase;font-size:12px}@media (max-width: 499px){sqh-stat-component{width:100%;text-align:left;background:#f2f2f2;border:1px solid #ddd}sqh-stat-component:first-child{border-radius:4px 4px 0 0}sqh-stat-component:last-child{border-radius:0 0 4px 4px}}@media (max-width: 499px){sqh-stat-component .stat-value{font-size:22px;float:left;width:60px;text-align:center;margin:0 10px 0 0}}@media (max-width: 499px){sqh-stat-component .stat-description{line-height:20px;padding-left:100px;overflow-wrap:break-word}}";
|
|
7415
7583
|
|
|
7416
|
-
const StatComponent
|
|
7584
|
+
const StatComponent = class {
|
|
7417
7585
|
constructor(hostRef) {
|
|
7418
7586
|
index.registerInstance(this, hostRef);
|
|
7419
7587
|
this.statTypeUpdated = index.createEvent(this, "statTypeUpdated", 7);
|
|
@@ -7443,7 +7611,7 @@ const StatComponent$1 = class {
|
|
|
7443
7611
|
"stattype": ["stattypeHandler"]
|
|
7444
7612
|
}; }
|
|
7445
7613
|
};
|
|
7446
|
-
StatComponent
|
|
7614
|
+
StatComponent.style = statComponentCss;
|
|
7447
7615
|
|
|
7448
7616
|
/**
|
|
7449
7617
|
* Tokenize input string.
|
|
@@ -7743,6 +7911,11 @@ const statsContainerCss = "sqh-stats-container{display:-ms-flexbox;display:flex;
|
|
|
7743
7911
|
const StatsContainer = class {
|
|
7744
7912
|
constructor(hostRef) {
|
|
7745
7913
|
index.registerInstance(this, hostRef);
|
|
7914
|
+
/**
|
|
7915
|
+
* Hide the component
|
|
7916
|
+
*
|
|
7917
|
+
* @uiName Is Hidden
|
|
7918
|
+
*/
|
|
7746
7919
|
this.ishidden = false;
|
|
7747
7920
|
this.statPaths = [
|
|
7748
7921
|
"/rewardBalance/:type/:unit/:valuetype?/:isGlobal?",
|
|
@@ -10441,7 +10614,6 @@ const textComponentCss = "sqh-text-component{display:block}sqh-text-component p{
|
|
|
10441
10614
|
const TextComponent = class {
|
|
10442
10615
|
constructor(hostRef) {
|
|
10443
10616
|
index.registerInstance(this, hostRef);
|
|
10444
|
-
this.padding = "10px 20px 15px";
|
|
10445
10617
|
}
|
|
10446
10618
|
render() {
|
|
10447
10619
|
const regex = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i;
|
|
@@ -10476,11 +10648,11 @@ exports.sqh_copy_button = CopyButton;
|
|
|
10476
10648
|
exports.sqh_copy_link_button = CopyLinkButton;
|
|
10477
10649
|
exports.sqh_global_container = GlobalContainer;
|
|
10478
10650
|
exports.sqh_image_component = ImageComponent;
|
|
10479
|
-
exports.sqh_partner_stat_component =
|
|
10651
|
+
exports.sqh_partner_stat_component = PartnerStatComponent;
|
|
10480
10652
|
exports.sqh_referral_component = ReferralComponent;
|
|
10481
10653
|
exports.sqh_referral_list = ReferralList;
|
|
10482
10654
|
exports.sqh_share_button = ShareButton;
|
|
10483
10655
|
exports.sqh_share_button_container = ShareButtonContainer;
|
|
10484
|
-
exports.sqh_stat_component = StatComponent
|
|
10656
|
+
exports.sqh_stat_component = StatComponent;
|
|
10485
10657
|
exports.sqh_stats_container = StatsContainer;
|
|
10486
10658
|
exports.sqh_text_component = TextComponent;
|
|
@@ -9,8 +9,23 @@ const rewardsActionsCss = "sqh-rewards-actions .squatch-referrals-actions{text-a
|
|
|
9
9
|
const RewardsActions = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
+
/**
|
|
13
|
+
* Text inside the previous button
|
|
14
|
+
*
|
|
15
|
+
* @uiName Previous Button Text
|
|
16
|
+
*/
|
|
12
17
|
this.previoustext = "Previous";
|
|
18
|
+
/**
|
|
19
|
+
* Text inside the hide button
|
|
20
|
+
*
|
|
21
|
+
* @uiName Hide Button Text
|
|
22
|
+
*/
|
|
13
23
|
this.hidetext = "Hide";
|
|
24
|
+
/**
|
|
25
|
+
* Text inside the next button
|
|
26
|
+
*
|
|
27
|
+
* @uiName Next Button Text
|
|
28
|
+
*/
|
|
14
29
|
this.nexttext = "Next";
|
|
15
30
|
}
|
|
16
31
|
render() {
|
|
@@ -5,5 +5,5 @@ const en = require('./en-a49a5ef5.js');
|
|
|
5
5
|
require('./_commonjsHelpers-ac2d0785.js');
|
|
6
6
|
|
|
7
7
|
en.patchBrowser().then(options => {
|
|
8
|
-
return index.bootstrapLazy([["sqh-close-button.cjs",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code.cjs",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions.cjs",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_12.cjs",[[0,"sqh-referral-list",{"ishidden":[4],"paginatemore":[1],"paginateless":[1],"noreferralsyet":[1],"referralnamecolor":[1],"referraltextcolor":[1],"unknownuser":[1],"showexpiry":[4],"shownotes":[4],"redeemedvalue":[1],"showreferrer":[4],"referrercontent":[1],"referrervalue":[1],"rewardcolor":[1],"customernotecolor":[1],"usefirstreward":[4],"convertedcontent":[1],"valuecontent":[1],"pendingcolor":[1],"pendingcontent":[1],"pendingvalue":[1],"expiredcolor":[1],"expiredcontent":[1],"expiredvalue":[1],"expiresvalue":[1],"cancelledcolor":[1],"cancelledcontent":[1],"cancelledvalue":[1],"internationalization":[4],"referrals":[32],"referralsCount":[32],"referredBy":[32],"rewards":[32],"loading":[32],"offset":[32],"locale":[32]}],[0,"sqh-share-button-container",{"ishidden":[4],"emaildisplayrule":[1],"emailtext":[1],"emailbackgroundcolor":[1],"emailtextcolor":[1],"emailicon":[1],"emailclassName":[1,"emailclass-name"],"emailiconhorizontal":[2],"emailiconvertical":[2],"emailiconsize":[2],"facebookdisplayrule":[1],"facebooktext":[1],"facebookbackgroundcolor":[1],"facebooktextcolor":[1],"facebookicon":[1],"facebookclassName":[1,"facebookclass-name"],"facebookiconhorizontal":[2],"facebookiconvertical":[2],"facebookiconsize":[2],"twitterdisplayrule":[1],"twittertext":[1],"twitterbackgroundcolor":[1],"twittertextcolor":[1],"twittericon":[1],"twitterclassName":[1,"twitterclass-name"],"twittericonhorizontal":[2],"twittericonvertical":[2],"twittericonsize":[2],"smsdisplayrule":[1],"smstext":[1],"smsbackgroundcolor":[1],"smstextcolor":[1],"smsicon":[1],"smsclassName":[1,"smsclass-name"],"smsiconhorizontal":[2],"smsiconvertical":[2],"smsiconsize":[2],"whatsappdisplayrule":[1],"whatsapptext":[1],"whatsappbackgroundcolor":[1],"whatsapptextcolor":[1],"whatsappicon":[1],"whatsappclassName":[1,"whatsappclass-name"],"whatsappiconhorizontal":[2],"whatsappiconvertical":[2],"whatsappiconsize":[2],"linkedindisplayrule":[1],"linkedintext":[1],"linkedinbackgroundcolor":[1],"linkedintextcolor":[1],"linkedinicon":[1],"linkedinclassName":[1,"linkedinclass-name"],"linkediniconhorizontal":[2],"linkediniconvertical":[2],"linkediniconsize":[2],"pinterestdisplayrule":[1],"pinteresttext":[1],"pinterestbackgroundcolor":[1],"pinteresttextcolor":[1],"pinteresticon":[1],"pinterestclassName":[1,"pinterestclass-name"],"pinteresticonhorizontal":[2],"pinteresticonvertical":[2],"pinteresticonsize":[2],"messengerdisplayrule":[1],"messengertext":[1],"messengerbackgroundcolor":[1],"messengertextcolor":[1],"messengericon":[1],"messengerclassName":[1,"messengerclass-name"],"messengericonhorizontal":[2],"messengericonvertical":[2],"messengericonsize":[2],"linedisplayrule":[1],"linetext":[1],"linebackgroundcolor":[1],"linetextcolor":[1],"lineicon":[1],"lineclassName":[1,"lineclass-name"],"lineiconhorizontal":[2],"lineiconvertical":[2],"lineiconsize":[2],"emailurl":[32],"facebookurl":[32],"twitterurl":[32],"smsurl":[32],"whatsappurl":[32],"linkedinurl":[32],"pinteresturl":[32],"messengerurl":[32],"lineurl":[32]}],[0,"sqh-copy-button",{"ishidden":[4],"text":[1],"width":[2],"backgroundcolor":[1],"borderradius":[2],"textcolor":[1],"fontsize":[2],"copysuccess":[1],"copyfailure":[1],"rewardkey":[1],"codefontsize":[2],"codefontcolor":[1],"fueltankcode":[32]}],[0,"sqh-copy-link-button",{"ishidden":[4],"text":[1],"copysuccess":[1],"copyfailure":[1],"buttoncolor":[1],"textcolor":[1],"sharelink":[32]}],[4,"sqh-global-container",{"background":[1],"loadingcolor":[1],"fontfamily":[1],"maxwidth":[1],"poweredby":[4]}],[0,"sqh-image-component",{"ishidden":[4],"url":[1],"width":[2],"borderradius":[2],"alignment":[1],"css":[1]}],[0,"sqh-partner-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[0,"sqh-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[4,"sqh-stats-container",{"ishidden":[4],"paddingtop":[1],"paddingbottom":[1],"loading":[32],"stats":[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"paddingbottom":[1],"
|
|
8
|
+
return index.bootstrapLazy([["sqh-close-button.cjs",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code.cjs",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions.cjs",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_12.cjs",[[0,"sqh-referral-list",{"ishidden":[4],"paginatemore":[1],"paginateless":[1],"noreferralsyet":[1],"referralnamecolor":[1],"referraltextcolor":[1],"unknownuser":[1],"showexpiry":[4],"shownotes":[4],"redeemedvalue":[1],"showreferrer":[4],"referrercontent":[1],"referrervalue":[1],"rewardcolor":[1],"customernotecolor":[1],"usefirstreward":[4],"convertedcontent":[1],"valuecontent":[1],"pendingcolor":[1],"pendingcontent":[1],"pendingvalue":[1],"expiredcolor":[1],"expiredcontent":[1],"expiredvalue":[1],"expiresvalue":[1],"cancelledcolor":[1],"cancelledcontent":[1],"cancelledvalue":[1],"internationalization":[4],"referrals":[32],"referralsCount":[32],"referredBy":[32],"rewards":[32],"loading":[32],"offset":[32],"locale":[32]}],[0,"sqh-share-button-container",{"ishidden":[4],"emaildisplayrule":[1],"emailtext":[1],"emailbackgroundcolor":[1],"emailtextcolor":[1],"emailicon":[1],"emailclassName":[1,"emailclass-name"],"emailiconhorizontal":[2],"emailiconvertical":[2],"emailiconsize":[2],"facebookdisplayrule":[1],"facebooktext":[1],"facebookbackgroundcolor":[1],"facebooktextcolor":[1],"facebookicon":[1],"facebookclassName":[1,"facebookclass-name"],"facebookiconhorizontal":[2],"facebookiconvertical":[2],"facebookiconsize":[2],"twitterdisplayrule":[1],"twittertext":[1],"twitterbackgroundcolor":[1],"twittertextcolor":[1],"twittericon":[1],"twitterclassName":[1,"twitterclass-name"],"twittericonhorizontal":[2],"twittericonvertical":[2],"twittericonsize":[2],"smsdisplayrule":[1],"smstext":[1],"smsbackgroundcolor":[1],"smstextcolor":[1],"smsicon":[1],"smsclassName":[1,"smsclass-name"],"smsiconhorizontal":[2],"smsiconvertical":[2],"smsiconsize":[2],"whatsappdisplayrule":[1],"whatsapptext":[1],"whatsappbackgroundcolor":[1],"whatsapptextcolor":[1],"whatsappicon":[1],"whatsappclassName":[1,"whatsappclass-name"],"whatsappiconhorizontal":[2],"whatsappiconvertical":[2],"whatsappiconsize":[2],"linkedindisplayrule":[1],"linkedintext":[1],"linkedinbackgroundcolor":[1],"linkedintextcolor":[1],"linkedinicon":[1],"linkedinclassName":[1,"linkedinclass-name"],"linkediniconhorizontal":[2],"linkediniconvertical":[2],"linkediniconsize":[2],"pinterestdisplayrule":[1],"pinteresttext":[1],"pinterestbackgroundcolor":[1],"pinteresttextcolor":[1],"pinteresticon":[1],"pinterestclassName":[1,"pinterestclass-name"],"pinteresticonhorizontal":[2],"pinteresticonvertical":[2],"pinteresticonsize":[2],"messengerdisplayrule":[1],"messengertext":[1],"messengerbackgroundcolor":[1],"messengertextcolor":[1],"messengericon":[1],"messengerclassName":[1,"messengerclass-name"],"messengericonhorizontal":[2],"messengericonvertical":[2],"messengericonsize":[2],"linedisplayrule":[1],"linetext":[1],"linebackgroundcolor":[1],"linetextcolor":[1],"lineicon":[1],"lineclassName":[1,"lineclass-name"],"lineiconhorizontal":[2],"lineiconvertical":[2],"lineiconsize":[2],"emailurl":[32],"facebookurl":[32],"twitterurl":[32],"smsurl":[32],"whatsappurl":[32],"linkedinurl":[32],"pinteresturl":[32],"messengerurl":[32],"lineurl":[32]}],[0,"sqh-copy-button",{"ishidden":[4],"text":[1],"width":[2],"backgroundcolor":[1],"borderradius":[2],"textcolor":[1],"fontsize":[2],"copysuccess":[1],"copyfailure":[1],"rewardkey":[1],"codefontsize":[2],"codefontcolor":[1],"fueltankcode":[32]}],[0,"sqh-copy-link-button",{"ishidden":[4],"text":[1],"copysuccess":[1],"copyfailure":[1],"buttoncolor":[1],"textcolor":[1],"sharelink":[32]}],[4,"sqh-global-container",{"background":[1],"loadingcolor":[1],"fontfamily":[1],"maxwidth":[1],"poweredby":[4]}],[0,"sqh-image-component",{"ishidden":[4],"url":[1],"width":[2],"borderradius":[2],"alignment":[1],"css":[1]}],[0,"sqh-partner-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[0,"sqh-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[4,"sqh-stats-container",{"ishidden":[4],"paddingtop":[1],"paddingbottom":[1],"loading":[32],"stats":[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"paddingbottom":[1],"textalign":[1],"background":[1],"height":[1]}],[0,"sqh-referral-component",{"referral":[16],"referraltype":[1],"referralvariables":[16],"unknownuser":[16],"locale":[1]}],[0,"sqh-share-button",{"displayrule":[1],"text":[1],"backgroundcolor":[1],"textcolor":[1],"icon":[1],"buttonClassName":[1,"button-class-name"],"iconhorizontal":[2],"iconvertical":[2],"iconsize":[2],"type":[1],"url":[1]}]]]], options);
|
|
9
9
|
});
|
|
@@ -2,8 +2,16 @@ import { h, Component, Prop, Element, Listen } from "@stencil/core";
|
|
|
2
2
|
import { API, widgetIdent } from "../../services/WidgetHost";
|
|
3
3
|
// const API: MyAPI = window["WidgetHost"];
|
|
4
4
|
// const widget = window["widgetIdent"];
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* @uiName Close Button
|
|
7
|
+
*/
|
|
8
|
+
export class CloseButton {
|
|
6
9
|
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* The text shown inside the close button.
|
|
12
|
+
*
|
|
13
|
+
* @uiName Button Text
|
|
14
|
+
*/
|
|
7
15
|
this.text = "Close";
|
|
8
16
|
}
|
|
9
17
|
handleClick() {
|
|
@@ -37,8 +45,11 @@ export class TwitterShareButton {
|
|
|
37
45
|
"required": false,
|
|
38
46
|
"optional": false,
|
|
39
47
|
"docs": {
|
|
40
|
-
"tags": [
|
|
41
|
-
|
|
48
|
+
"tags": [{
|
|
49
|
+
"text": "Button Text",
|
|
50
|
+
"name": "uiName"
|
|
51
|
+
}],
|
|
52
|
+
"text": "The text shown inside the close button."
|
|
42
53
|
},
|
|
43
54
|
"attribute": "text",
|
|
44
55
|
"reflect": false,
|
|
@@ -3,6 +3,9 @@ import { shadeColor, addClass, removeClass } from "../../utilities";
|
|
|
3
3
|
import { css } from "emotion";
|
|
4
4
|
import { API } from "../../services/WidgetHost";
|
|
5
5
|
import Clipboard from "clipboard";
|
|
6
|
+
/**
|
|
7
|
+
* @uiName Copy Button
|
|
8
|
+
*/
|
|
6
9
|
export class CopyButton {
|
|
7
10
|
componentWillLoad() {
|
|
8
11
|
if (!this.ishidden) {
|
|
@@ -93,8 +96,11 @@ export class CopyButton {
|
|
|
93
96
|
"required": false,
|
|
94
97
|
"optional": false,
|
|
95
98
|
"docs": {
|
|
96
|
-
"tags": [
|
|
97
|
-
|
|
99
|
+
"tags": [{
|
|
100
|
+
"text": "Hide Button",
|
|
101
|
+
"name": "uiName"
|
|
102
|
+
}],
|
|
103
|
+
"text": "Hide or show the component"
|
|
98
104
|
},
|
|
99
105
|
"attribute": "ishidden",
|
|
100
106
|
"reflect": false
|
|
@@ -110,8 +116,11 @@ export class CopyButton {
|
|
|
110
116
|
"required": false,
|
|
111
117
|
"optional": false,
|
|
112
118
|
"docs": {
|
|
113
|
-
"tags": [
|
|
114
|
-
|
|
119
|
+
"tags": [{
|
|
120
|
+
"text": "Button Text",
|
|
121
|
+
"name": "uiName"
|
|
122
|
+
}],
|
|
123
|
+
"text": "Text shown inside the copy button."
|
|
115
124
|
},
|
|
116
125
|
"attribute": "text",
|
|
117
126
|
"reflect": false
|
|
@@ -127,8 +136,11 @@ export class CopyButton {
|
|
|
127
136
|
"required": false,
|
|
128
137
|
"optional": false,
|
|
129
138
|
"docs": {
|
|
130
|
-
"tags": [
|
|
131
|
-
|
|
139
|
+
"tags": [{
|
|
140
|
+
"text": "Max Width",
|
|
141
|
+
"name": "uiName"
|
|
142
|
+
}],
|
|
143
|
+
"text": "Sets a maximum width on the copy button."
|
|
132
144
|
},
|
|
133
145
|
"attribute": "width",
|
|
134
146
|
"reflect": false
|
|
@@ -144,8 +156,11 @@ export class CopyButton {
|
|
|
144
156
|
"required": false,
|
|
145
157
|
"optional": false,
|
|
146
158
|
"docs": {
|
|
147
|
-
"tags": [
|
|
148
|
-
|
|
159
|
+
"tags": [{
|
|
160
|
+
"text": "Background Color",
|
|
161
|
+
"name": "uiName"
|
|
162
|
+
}],
|
|
163
|
+
"text": "Background & border color of the copy button."
|
|
149
164
|
},
|
|
150
165
|
"attribute": "backgroundcolor",
|
|
151
166
|
"reflect": false
|
|
@@ -161,8 +176,11 @@ export class CopyButton {
|
|
|
161
176
|
"required": false,
|
|
162
177
|
"optional": false,
|
|
163
178
|
"docs": {
|
|
164
|
-
"tags": [
|
|
165
|
-
|
|
179
|
+
"tags": [{
|
|
180
|
+
"text": "Border Radius",
|
|
181
|
+
"name": "uiName"
|
|
182
|
+
}],
|
|
183
|
+
"text": "Configure border radius with pixel amount"
|
|
166
184
|
},
|
|
167
185
|
"attribute": "borderradius",
|
|
168
186
|
"reflect": false
|
|
@@ -178,8 +196,11 @@ export class CopyButton {
|
|
|
178
196
|
"required": false,
|
|
179
197
|
"optional": false,
|
|
180
198
|
"docs": {
|
|
181
|
-
"tags": [
|
|
182
|
-
|
|
199
|
+
"tags": [{
|
|
200
|
+
"text": "Text Color",
|
|
201
|
+
"name": "uiName"
|
|
202
|
+
}],
|
|
203
|
+
"text": "Color of text inside the copy button."
|
|
183
204
|
},
|
|
184
205
|
"attribute": "textcolor",
|
|
185
206
|
"reflect": false
|
|
@@ -195,8 +216,11 @@ export class CopyButton {
|
|
|
195
216
|
"required": false,
|
|
196
217
|
"optional": false,
|
|
197
218
|
"docs": {
|
|
198
|
-
"tags": [
|
|
199
|
-
|
|
219
|
+
"tags": [{
|
|
220
|
+
"text": "Font Size",
|
|
221
|
+
"name": "uiName"
|
|
222
|
+
}],
|
|
223
|
+
"text": "Font size of the copy button text."
|
|
200
224
|
},
|
|
201
225
|
"attribute": "fontsize",
|
|
202
226
|
"reflect": false
|
|
@@ -212,8 +236,11 @@ export class CopyButton {
|
|
|
212
236
|
"required": false,
|
|
213
237
|
"optional": false,
|
|
214
238
|
"docs": {
|
|
215
|
-
"tags": [
|
|
216
|
-
|
|
239
|
+
"tags": [{
|
|
240
|
+
"text": "Copy Success Text",
|
|
241
|
+
"name": "uiName"
|
|
242
|
+
}],
|
|
243
|
+
"text": "Shown when the code is successfully copied to the users clipboard."
|
|
217
244
|
},
|
|
218
245
|
"attribute": "copysuccess",
|
|
219
246
|
"reflect": false
|
|
@@ -229,8 +256,11 @@ export class CopyButton {
|
|
|
229
256
|
"required": false,
|
|
230
257
|
"optional": false,
|
|
231
258
|
"docs": {
|
|
232
|
-
"tags": [
|
|
233
|
-
|
|
259
|
+
"tags": [{
|
|
260
|
+
"text": "Copy Failure Text",
|
|
261
|
+
"name": "uiName"
|
|
262
|
+
}],
|
|
263
|
+
"text": "Shown when the button has failed to copy the code to the users clipboard."
|
|
234
264
|
},
|
|
235
265
|
"attribute": "copyfailure",
|
|
236
266
|
"reflect": false
|
|
@@ -246,8 +276,11 @@ export class CopyButton {
|
|
|
246
276
|
"required": false,
|
|
247
277
|
"optional": false,
|
|
248
278
|
"docs": {
|
|
249
|
-
"tags": [
|
|
250
|
-
|
|
279
|
+
"tags": [{
|
|
280
|
+
"text": "Reward Key",
|
|
281
|
+
"name": "uiName"
|
|
282
|
+
}],
|
|
283
|
+
"text": "rewardkey is used to get the fuel tank code for a user."
|
|
251
284
|
},
|
|
252
285
|
"attribute": "rewardkey",
|
|
253
286
|
"reflect": false
|
|
@@ -263,8 +296,11 @@ export class CopyButton {
|
|
|
263
296
|
"required": false,
|
|
264
297
|
"optional": false,
|
|
265
298
|
"docs": {
|
|
266
|
-
"tags": [
|
|
267
|
-
|
|
299
|
+
"tags": [{
|
|
300
|
+
"text": "Code Font Size",
|
|
301
|
+
"name": "uiName"
|
|
302
|
+
}],
|
|
303
|
+
"text": "Font size of the fuel tank code."
|
|
268
304
|
},
|
|
269
305
|
"attribute": "codefontsize",
|
|
270
306
|
"reflect": false
|
|
@@ -280,8 +316,11 @@ export class CopyButton {
|
|
|
280
316
|
"required": false,
|
|
281
317
|
"optional": false,
|
|
282
318
|
"docs": {
|
|
283
|
-
"tags": [
|
|
284
|
-
|
|
319
|
+
"tags": [{
|
|
320
|
+
"text": "Code Font Color",
|
|
321
|
+
"name": "uiName"
|
|
322
|
+
}],
|
|
323
|
+
"text": "Text color of the fuel tank code."
|
|
285
324
|
},
|
|
286
325
|
"attribute": "codefontcolor",
|
|
287
326
|
"reflect": false
|