@saasquatch/vanilla-components 1.2.5 → 1.2.7
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/LICENSE +21 -21
- package/dist/cjs/{WidgetHost-fce29ef5.js → WidgetHost-71b013eb.js} +195 -195
- package/dist/cjs/sqh-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +147 -147
- package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
- package/dist/collection/components/copy-button/copy-button.js +22 -22
- package/dist/collection/components/copy-link-button/copy-link-button.js +15 -15
- package/dist/collection/components/global-container/global-container.js +8 -8
- package/dist/collection/components/image-component/image-component.js +10 -10
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +2 -2
- package/dist/collection/components/referral-list/referral-list.js +51 -51
- package/dist/collection/components/share-button/share-button.js +19 -19
- package/dist/collection/components/stat-component/stat-component.js +2 -2
- package/dist/collection/components/stats-container/stats-container.js +4 -4
- package/dist/collection/components/text-component/text-component.js +13 -13
- package/dist/collection/entrypoint.js +34 -34
- package/dist/collection/services/WidgetHost.js +195 -195
- package/dist/esm/{WidgetHost-903fb7cc.js → WidgetHost-9c337319.js} +195 -195
- package/dist/esm/sqh-close-button.entry.js +1 -1
- package/dist/esm/sqh-copy-button_12.entry.js +147 -147
- package/dist/esm/sqh-referral-code.entry.js +1 -1
- package/dist/esm-es5/sqh-close-button.entry.js +1 -1
- package/dist/esm-es5/sqh-copy-button_12.entry.js +2 -2
- package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
- package/dist/types/saasquatch.d.ts +105 -105
- package/dist/widget-components/entrypoint.js +34 -34
- package/dist/widget-components/{p-50ae8f2b.entry.js → p-366f1663.entry.js} +1 -1
- package/dist/widget-components/{p-131a5c4a.entry.js → p-54ea7a00.entry.js} +1 -1
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-8baa34a0.entry.js → p-71e912a2.entry.js} +6 -6
- package/dist/widget-components/{p-b9fcb846.system.entry.js → p-b17efca4.system.entry.js} +1 -1
- package/dist/widget-components/p-c5f70ddc.system.entry.js +8 -0
- package/dist/widget-components/{p-da180bcd.system.entry.js → p-c8bc8c77.system.entry.js} +1 -1
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/package.json +97 -97
- package/readme.md +52 -52
- package/dist/widget-components/p-1b8f2cfc.system.entry.js +0 -8
- /package/dist/esm-es5/{WidgetHost-903fb7cc.js → WidgetHost-9c337319.js} +0 -0
- /package/dist/widget-components/{p-e692beaf.system.js → p-8e232564.system.js} +0 -0
- /package/dist/widget-components/{p-ffeb02d1.js → p-edd43dbc.js} +0 -0
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-deb40352.js');
|
|
6
6
|
const _commonjsHelpers = require('./_commonjsHelpers-ac2d0785.js');
|
|
7
|
-
const WidgetHost = require('./WidgetHost-
|
|
7
|
+
const WidgetHost = require('./WidgetHost-71b013eb.js');
|
|
8
8
|
|
|
9
9
|
/////////////////////////////////////
|
|
10
10
|
////// ////
|
|
@@ -2494,29 +2494,29 @@ const CopyButton = class {
|
|
|
2494
2494
|
clipboard.on("error", this.notifyFailure.bind(this));
|
|
2495
2495
|
}
|
|
2496
2496
|
render() {
|
|
2497
|
-
const style = css `
|
|
2498
|
-
max-width: ${this.width}px;
|
|
2499
|
-
background-color: ${this.backgroundcolor};
|
|
2500
|
-
border: ${this.backgroundcolor};
|
|
2501
|
-
color: ${this.textcolor};
|
|
2502
|
-
border-radius: ${this.borderradius}px;
|
|
2503
|
-
font-size: ${this.fontsize}px;
|
|
2504
|
-
|
|
2505
|
-
&:hover {
|
|
2506
|
-
background-color: ${shadeColor(this.backgroundcolor, 10)};
|
|
2507
|
-
border-color: ${shadeColor(this.backgroundcolor, 12)};
|
|
2508
|
-
color: ${this.textcolor};
|
|
2509
|
-
}
|
|
2510
|
-
|
|
2511
|
-
&:focus {
|
|
2512
|
-
color: ${this.textcolor};
|
|
2513
|
-
}
|
|
2497
|
+
const style = css `
|
|
2498
|
+
max-width: ${this.width}px;
|
|
2499
|
+
background-color: ${this.backgroundcolor};
|
|
2500
|
+
border: ${this.backgroundcolor};
|
|
2501
|
+
color: ${this.textcolor};
|
|
2502
|
+
border-radius: ${this.borderradius}px;
|
|
2503
|
+
font-size: ${this.fontsize}px;
|
|
2504
|
+
|
|
2505
|
+
&:hover {
|
|
2506
|
+
background-color: ${shadeColor(this.backgroundcolor, 10)};
|
|
2507
|
+
border-color: ${shadeColor(this.backgroundcolor, 12)};
|
|
2508
|
+
color: ${this.textcolor};
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
&:focus {
|
|
2512
|
+
color: ${this.textcolor};
|
|
2513
|
+
}
|
|
2514
2514
|
`;
|
|
2515
|
-
const code = css `
|
|
2516
|
-
text-align: center;
|
|
2517
|
-
font-weight: bold;
|
|
2518
|
-
font-size: ${this.codefontsize};
|
|
2519
|
-
color: ${this.codefontcolor};
|
|
2515
|
+
const code = css `
|
|
2516
|
+
text-align: center;
|
|
2517
|
+
font-weight: bold;
|
|
2518
|
+
font-size: ${this.codefontsize};
|
|
2519
|
+
color: ${this.codefontcolor};
|
|
2520
2520
|
`;
|
|
2521
2521
|
const classes = [`sqh-copy-button`, style].join(" ");
|
|
2522
2522
|
return (!this.ishidden && (index.h("div", null, index.h("div", { class: code }, this.fueltankcode), index.h("div", { class: "sqh-align-button" }, index.h("span", { class: "label fade", id: "squatch-copy-notification" }, this.copysuccess), index.h("button", { class: classes, "data-clipboard-text": this.fueltankcode, "data-clipboard-notification": "#squatch-copy-notification" }, this.text)))));
|
|
@@ -2566,21 +2566,21 @@ const CopyLinkButton = class {
|
|
|
2566
2566
|
clipboard.on("error", this.notifyFailure.bind(this));
|
|
2567
2567
|
}
|
|
2568
2568
|
render() {
|
|
2569
|
-
const myStyle = css `
|
|
2570
|
-
background-color: ${this.buttoncolor};
|
|
2571
|
-
border: 1px solid ${this.buttoncolor};
|
|
2572
|
-
color: ${this.textcolor};
|
|
2573
|
-
font-family: ${"inherit"};
|
|
2574
|
-
|
|
2575
|
-
&:hover {
|
|
2576
|
-
background: ${shadeColor(this.buttoncolor, 10)};
|
|
2577
|
-
border-color: ${shadeColor(this.buttoncolor, 12)};
|
|
2578
|
-
color: ${this.textcolor};
|
|
2579
|
-
}
|
|
2580
|
-
|
|
2581
|
-
&:focus {
|
|
2582
|
-
color: ${this.textcolor};
|
|
2583
|
-
}
|
|
2569
|
+
const myStyle = css `
|
|
2570
|
+
background-color: ${this.buttoncolor};
|
|
2571
|
+
border: 1px solid ${this.buttoncolor};
|
|
2572
|
+
color: ${this.textcolor};
|
|
2573
|
+
font-family: ${"inherit"};
|
|
2574
|
+
|
|
2575
|
+
&:hover {
|
|
2576
|
+
background: ${shadeColor(this.buttoncolor, 10)};
|
|
2577
|
+
border-color: ${shadeColor(this.buttoncolor, 12)};
|
|
2578
|
+
color: ${this.textcolor};
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
&:focus {
|
|
2582
|
+
color: ${this.textcolor};
|
|
2583
|
+
}
|
|
2584
2584
|
`;
|
|
2585
2585
|
const buttonClass = [`sqh-copy-btn icon-btn`, myStyle].join(" ");
|
|
2586
2586
|
return (!this.ishidden && (index.h("div", { class: "input-group" }, index.h("input", { id: "squatch-share-link", value: this.sharelink, readonly: "readonly" }), index.h("span", { class: "label fade", id: "squatch-share-notification" }, this.copysuccess), index.h("span", { class: "input-group-btn" }, index.h("button", { class: buttonClass, "data-clipboard-target": "#squatch-share-link", "data-clipboard-notification": "#squatch-share-notification" }, index.h("i", { class: "icon icon-link" }), index.h("span", { class: "hidden-sm" }, this.text))))));
|
|
@@ -2595,21 +2595,21 @@ const GlobalContainer = class {
|
|
|
2595
2595
|
index.registerInstance(this, hostRef);
|
|
2596
2596
|
}
|
|
2597
2597
|
LoadingState(props) {
|
|
2598
|
-
const style = css `
|
|
2599
|
-
background-color: ${props.loadingcolor || "#439B76"};
|
|
2598
|
+
const style = css `
|
|
2599
|
+
background-color: ${props.loadingcolor || "#439B76"};
|
|
2600
2600
|
`;
|
|
2601
2601
|
return (index.h("div", { class: "container-loading" }, index.h("div", { class: "loading-icon" }, index.h("div", { class: `bar1 ${style}` }), index.h("div", { class: `bar2 ${style}` }), index.h("div", { class: `bar3 ${style}` }), index.h("div", { class: `bar4 ${style}` }), index.h("div", { class: `bar5 ${style}` }))));
|
|
2602
2602
|
}
|
|
2603
2603
|
render() {
|
|
2604
|
-
const style = css `
|
|
2605
|
-
background-color: ${this.background};
|
|
2606
|
-
font-family: ${this.fontfamily};
|
|
2607
|
-
position: relative;
|
|
2608
|
-
max-width: ${this.maxwidth};
|
|
2604
|
+
const style = css `
|
|
2605
|
+
background-color: ${this.background};
|
|
2606
|
+
font-family: ${this.fontfamily};
|
|
2607
|
+
position: relative;
|
|
2608
|
+
max-width: ${this.maxwidth};
|
|
2609
2609
|
`;
|
|
2610
2610
|
const robotoFont = (index.h("link", { href: "https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap", rel: "stylesheet" }));
|
|
2611
2611
|
const artifaktFont = (index.h("link", { href: "https://static-dc.autodesk.net/etc/designs/v201903181748/templates-general/structure/fonts/artifakt/clientlibs/artifakt.css", rel: "stylesheet" }));
|
|
2612
|
-
return (index.h("div", { class: style }, this.fontfamily == "Roboto" ? robotoFont : "", this.fontfamily == "Artifakt Element" ? artifaktFont : "", index.h("slot", null), this.poweredby ? (index.h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered By
|
|
2612
|
+
return (index.h("div", { class: style }, this.fontfamily == "Roboto" ? robotoFont : "", this.fontfamily == "Artifakt Element" ? artifaktFont : "", index.h("slot", null), this.poweredby ? (index.h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered With Saasquatch By Impact.com")) : (""), index.h(this.LoadingState, { loadingcolor: this.loadingcolor })));
|
|
2613
2613
|
}
|
|
2614
2614
|
};
|
|
2615
2615
|
GlobalContainer.style = globalContainerCss;
|
|
@@ -2622,17 +2622,17 @@ const ImageComponent = class {
|
|
|
2622
2622
|
}
|
|
2623
2623
|
render() {
|
|
2624
2624
|
const imageString = this.url;
|
|
2625
|
-
const alignment = css `
|
|
2626
|
-
{
|
|
2627
|
-
text-align: ${this.alignment};
|
|
2628
|
-
}
|
|
2625
|
+
const alignment = css `
|
|
2626
|
+
{
|
|
2627
|
+
text-align: ${this.alignment};
|
|
2628
|
+
}
|
|
2629
2629
|
`;
|
|
2630
|
-
const myStyle = css `
|
|
2631
|
-
{
|
|
2632
|
-
width: ${this.width}px;
|
|
2633
|
-
border-radius: ${this.borderradius}px;
|
|
2634
|
-
${this.css}
|
|
2635
|
-
}
|
|
2630
|
+
const myStyle = css `
|
|
2631
|
+
{
|
|
2632
|
+
width: ${this.width}px;
|
|
2633
|
+
border-radius: ${this.borderradius}px;
|
|
2634
|
+
${this.css}
|
|
2635
|
+
}
|
|
2636
2636
|
`;
|
|
2637
2637
|
return (!this.ishidden && (index.h("div", { class: alignment }, index.h("img", { src: imageString, class: myStyle }))));
|
|
2638
2638
|
}
|
|
@@ -2661,8 +2661,8 @@ const PartnerStatComponent = class {
|
|
|
2661
2661
|
this.statTypeUpdated.emit(stat);
|
|
2662
2662
|
}
|
|
2663
2663
|
render() {
|
|
2664
|
-
const clz = css `
|
|
2665
|
-
color: ${this.statcolor};
|
|
2664
|
+
const clz = css `
|
|
2665
|
+
color: ${this.statcolor};
|
|
2666
2666
|
`;
|
|
2667
2667
|
return (!this.ishidden && (index.h("div", { class: clz }, index.h("div", { class: "stat-value" }, this.statvalue), index.h("div", { class: "stat-description" }, this.statdescription))));
|
|
2668
2668
|
}
|
|
@@ -7087,66 +7087,66 @@ const ReferralList = class {
|
|
|
7087
7087
|
if (this.referrals.length < 3 && this.referredBy && this.showreferrer) {
|
|
7088
7088
|
referredByRow = (index.h("sqh-referral-component", { id: uuid(), referral: this.referredBy, referralvariables: referralvariables, referraltype: "referrer", unknownuser: this.unknownuser, locale: this.internationalization ? this.locale : "en-US" }));
|
|
7089
7089
|
}
|
|
7090
|
-
const clz = css `
|
|
7091
|
-
.squatch-referrals-icon.icon-ok-circled {
|
|
7092
|
-
color: ${this.rewardcolor};
|
|
7093
|
-
}
|
|
7094
|
-
.squatch-referrals-icon.icon-attention {
|
|
7095
|
-
color: ${this.pendingcolor};
|
|
7096
|
-
}
|
|
7097
|
-
.squatch-referrals-value {
|
|
7098
|
-
color: ${this.rewardcolor};
|
|
7099
|
-
}
|
|
7100
|
-
.squatch-referrals-value.pending {
|
|
7101
|
-
color: ${this.pendingcolor};
|
|
7102
|
-
}
|
|
7103
|
-
.squatch-referrals-value.referrer {
|
|
7104
|
-
color: ${this.rewardcolor};
|
|
7105
|
-
}
|
|
7106
|
-
.squatch-referrals-value.expired {
|
|
7107
|
-
color: ${this.expiredcolor};
|
|
7108
|
-
}
|
|
7109
|
-
.squatch-value-contents.expired {
|
|
7110
|
-
color: ${this.expiredcolor};
|
|
7111
|
-
}
|
|
7112
|
-
.squatch-referrals-icon.icon-attention.expired {
|
|
7113
|
-
color: ${this.expiredcolor};
|
|
7114
|
-
}
|
|
7115
|
-
.squatch-referrals-value.cancelled {
|
|
7116
|
-
color: ${this.cancelledcolor};
|
|
7117
|
-
}
|
|
7118
|
-
.squatch-value-contents.cancelled {
|
|
7119
|
-
color: ${this.cancelledcolor};
|
|
7120
|
-
}
|
|
7121
|
-
.squatch-referrals-icon.icon-attention.cancelled {
|
|
7122
|
-
color: ${this.cancelledcolor};
|
|
7123
|
-
}
|
|
7124
|
-
.squatch-referrals-heading {
|
|
7125
|
-
color: ${this.referralnamecolor};
|
|
7126
|
-
}
|
|
7127
|
-
.squatch-referrals-description,
|
|
7128
|
-
.squatch-referrals-value-content {
|
|
7129
|
-
color: ${this.referraltextcolor};
|
|
7130
|
-
}
|
|
7131
|
-
.squatch-customer-note {
|
|
7132
|
-
color: ${this.customernotecolor || "darkslategray"};
|
|
7133
|
-
}
|
|
7134
|
-
.squatch-referrals-scroll-action {
|
|
7135
|
-
font-family: ${"inherit"};
|
|
7136
|
-
}
|
|
7090
|
+
const clz = css `
|
|
7091
|
+
.squatch-referrals-icon.icon-ok-circled {
|
|
7092
|
+
color: ${this.rewardcolor};
|
|
7093
|
+
}
|
|
7094
|
+
.squatch-referrals-icon.icon-attention {
|
|
7095
|
+
color: ${this.pendingcolor};
|
|
7096
|
+
}
|
|
7097
|
+
.squatch-referrals-value {
|
|
7098
|
+
color: ${this.rewardcolor};
|
|
7099
|
+
}
|
|
7100
|
+
.squatch-referrals-value.pending {
|
|
7101
|
+
color: ${this.pendingcolor};
|
|
7102
|
+
}
|
|
7103
|
+
.squatch-referrals-value.referrer {
|
|
7104
|
+
color: ${this.rewardcolor};
|
|
7105
|
+
}
|
|
7106
|
+
.squatch-referrals-value.expired {
|
|
7107
|
+
color: ${this.expiredcolor};
|
|
7108
|
+
}
|
|
7109
|
+
.squatch-value-contents.expired {
|
|
7110
|
+
color: ${this.expiredcolor};
|
|
7111
|
+
}
|
|
7112
|
+
.squatch-referrals-icon.icon-attention.expired {
|
|
7113
|
+
color: ${this.expiredcolor};
|
|
7114
|
+
}
|
|
7115
|
+
.squatch-referrals-value.cancelled {
|
|
7116
|
+
color: ${this.cancelledcolor};
|
|
7117
|
+
}
|
|
7118
|
+
.squatch-value-contents.cancelled {
|
|
7119
|
+
color: ${this.cancelledcolor};
|
|
7120
|
+
}
|
|
7121
|
+
.squatch-referrals-icon.icon-attention.cancelled {
|
|
7122
|
+
color: ${this.cancelledcolor};
|
|
7123
|
+
}
|
|
7124
|
+
.squatch-referrals-heading {
|
|
7125
|
+
color: ${this.referralnamecolor};
|
|
7126
|
+
}
|
|
7127
|
+
.squatch-referrals-description,
|
|
7128
|
+
.squatch-referrals-value-content {
|
|
7129
|
+
color: ${this.referraltextcolor};
|
|
7130
|
+
}
|
|
7131
|
+
.squatch-customer-note {
|
|
7132
|
+
color: ${this.customernotecolor || "darkslategray"};
|
|
7133
|
+
}
|
|
7134
|
+
.squatch-referrals-scroll-action {
|
|
7135
|
+
font-family: ${"inherit"};
|
|
7136
|
+
}
|
|
7137
7137
|
`;
|
|
7138
7138
|
const totalReferralsCount = this.showreferrer && this.referredBy
|
|
7139
7139
|
? this.referralsCount + 1
|
|
7140
7140
|
: this.referralsCount;
|
|
7141
7141
|
return !this.ishidden && totalReferralsCount > 0 ? (
|
|
7142
7142
|
// Referral List when not hidden and 1 or more referrals
|
|
7143
|
-
index.h("div", { class: `squatch-referrals ${clz}` }, index.h("div", { class: "squatch-referrals-scroll-container" }, referralsRow, referredByRow), index.h("div", { class: "squatch-referrals-scroll-action-container" }, index.h("button", { class: `
|
|
7143
|
+
index.h("div", { class: `squatch-referrals ${clz}` }, index.h("div", { class: "squatch-referrals-scroll-container" }, referralsRow, referredByRow), index.h("div", { class: "squatch-referrals-scroll-action-container" }, index.h("button", { class: `
|
|
7144
7144
|
squatch-referrals-scroll-action previous ${this.loading
|
|
7145
7145
|
? "disabled"
|
|
7146
7146
|
: this.offset === 0
|
|
7147
7147
|
? "disabled"
|
|
7148
|
-
: ""}
|
|
7149
|
-
`, onClick: (event) => this.paginate(this.offset - 3, event) }, this.paginateless), index.h("button", { class: `
|
|
7148
|
+
: ""}
|
|
7149
|
+
`, onClick: (event) => this.paginate(this.offset - 3, event) }, this.paginateless), index.h("button", { class: `
|
|
7150
7150
|
squatch-referrals-scroll-action view-more ${this.loading
|
|
7151
7151
|
? "disabled"
|
|
7152
7152
|
: this.showreferrer && this.referredBy
|
|
@@ -7155,7 +7155,7 @@ const ReferralList = class {
|
|
|
7155
7155
|
: ""
|
|
7156
7156
|
: this.offset >= this.referralsCount - 3
|
|
7157
7157
|
? "disabled"
|
|
7158
|
-
: ""}
|
|
7158
|
+
: ""}
|
|
7159
7159
|
`, "view-more": true, onClick: (event) => this.paginate(this.offset + 3, event) }, this.paginatemore)))) : (
|
|
7160
7160
|
// 'No Referrals Yet' button if this.referralCount < 1
|
|
7161
7161
|
index.h("div", { class: "squatch-referrals-scroll-action-container" }, index.h("button", { disabled: true, class: "squatch-no-referrals-yet" }, this.noreferralsyet)));
|
|
@@ -7192,25 +7192,25 @@ const ShareButton = class {
|
|
|
7192
7192
|
const isMobileiOS = detectMobileSafari() || detectMobileChrome();
|
|
7193
7193
|
const target = isMobileiOS ? "_parent" : "_blank";
|
|
7194
7194
|
const iconClass = `icon icon-${this.icon}`;
|
|
7195
|
-
const style = css `
|
|
7196
|
-
background-color: ${this.backgroundcolor};
|
|
7197
|
-
border: 1px solid ${this.backgroundcolor};
|
|
7198
|
-
color: ${this.textcolor};
|
|
7199
|
-
|
|
7200
|
-
&:hover {
|
|
7201
|
-
background: ${shadeColor(this.backgroundcolor, 10)};
|
|
7202
|
-
border-color: ${shadeColor(this.backgroundcolor, 12)};
|
|
7203
|
-
color: ${this.textcolor};
|
|
7204
|
-
}
|
|
7205
|
-
|
|
7206
|
-
&:focus {
|
|
7207
|
-
color: ${this.textcolor};
|
|
7208
|
-
}
|
|
7209
|
-
.icon-${this.icon} {
|
|
7210
|
-
left: ${this.iconhorizontal}px;
|
|
7211
|
-
top: ${this.iconvertical}px;
|
|
7212
|
-
font-size: ${this.iconsize}em;
|
|
7213
|
-
}
|
|
7195
|
+
const style = css `
|
|
7196
|
+
background-color: ${this.backgroundcolor};
|
|
7197
|
+
border: 1px solid ${this.backgroundcolor};
|
|
7198
|
+
color: ${this.textcolor};
|
|
7199
|
+
|
|
7200
|
+
&:hover {
|
|
7201
|
+
background: ${shadeColor(this.backgroundcolor, 10)};
|
|
7202
|
+
border-color: ${shadeColor(this.backgroundcolor, 12)};
|
|
7203
|
+
color: ${this.textcolor};
|
|
7204
|
+
}
|
|
7205
|
+
|
|
7206
|
+
&:focus {
|
|
7207
|
+
color: ${this.textcolor};
|
|
7208
|
+
}
|
|
7209
|
+
.icon-${this.icon} {
|
|
7210
|
+
left: ${this.iconhorizontal}px;
|
|
7211
|
+
top: ${this.iconvertical}px;
|
|
7212
|
+
font-size: ${this.iconsize}em;
|
|
7213
|
+
}
|
|
7214
7214
|
`;
|
|
7215
7215
|
const classes = [
|
|
7216
7216
|
`squatch-share-btn`,
|
|
@@ -7468,8 +7468,8 @@ const StatComponent = class {
|
|
|
7468
7468
|
this.statTypeUpdated.emit(stat);
|
|
7469
7469
|
}
|
|
7470
7470
|
render() {
|
|
7471
|
-
const clz = css `
|
|
7472
|
-
color: ${this.statcolor};
|
|
7471
|
+
const clz = css `
|
|
7472
|
+
color: ${this.statcolor};
|
|
7473
7473
|
`;
|
|
7474
7474
|
return (!this.ishidden && (index.h("div", { class: clz }, index.h("div", { class: "stat-value" }, this.statvalue), index.h("div", { class: "stat-description" }, this.statdescription))));
|
|
7475
7475
|
}
|
|
@@ -7868,10 +7868,10 @@ const StatsContainer = class {
|
|
|
7868
7868
|
this.loading = false;
|
|
7869
7869
|
}
|
|
7870
7870
|
render() {
|
|
7871
|
-
const containerStyle = css `
|
|
7872
|
-
display: ${this.ishidden ? "none" : "inherit"};
|
|
7873
|
-
padding-top: ${this.paddingtop}px;
|
|
7874
|
-
padding-bottom: ${this.paddingbottom}px;
|
|
7871
|
+
const containerStyle = css `
|
|
7872
|
+
display: ${this.ishidden ? "none" : "inherit"};
|
|
7873
|
+
padding-top: ${this.paddingtop}px;
|
|
7874
|
+
padding-bottom: ${this.paddingbottom}px;
|
|
7875
7875
|
`;
|
|
7876
7876
|
return (index.h("div", { class: containerStyle }, index.h("slot", null)));
|
|
7877
7877
|
}
|
|
@@ -10483,26 +10483,26 @@ const TextComponent = class {
|
|
|
10483
10483
|
}
|
|
10484
10484
|
render() {
|
|
10485
10485
|
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;
|
|
10486
|
-
const textStyle = css `
|
|
10487
|
-
font-family: ${this.fontfamily || "inherit"};
|
|
10488
|
-
font-size: ${this.fontsize ? this.fontsize + "px" : "inherit"};
|
|
10489
|
-
font-weight: ${this.fontweight ? this.fontweight : "inherit"};
|
|
10490
|
-
text-align: ${this.textalign};
|
|
10491
|
-
color: ${this.color || "inherit"};
|
|
10492
|
-
padding-top: ${this.paddingtop ? this.paddingtop + "px" : "inherit"};
|
|
10486
|
+
const textStyle = css `
|
|
10487
|
+
font-family: ${this.fontfamily || "inherit"};
|
|
10488
|
+
font-size: ${this.fontsize ? this.fontsize + "px" : "inherit"};
|
|
10489
|
+
font-weight: ${this.fontweight ? this.fontweight : "inherit"};
|
|
10490
|
+
text-align: ${this.textalign};
|
|
10491
|
+
color: ${this.color || "inherit"};
|
|
10492
|
+
padding-top: ${this.paddingtop ? this.paddingtop + "px" : "inherit"};
|
|
10493
10493
|
padding-bottom: ${this.paddingbottom
|
|
10494
10494
|
? this.paddingbottom + "px"
|
|
10495
|
-
: "inherit"};
|
|
10496
|
-
overflow-wrap: break-word;
|
|
10495
|
+
: "inherit"};
|
|
10496
|
+
overflow-wrap: break-word;
|
|
10497
10497
|
`;
|
|
10498
|
-
const divStyle = css `
|
|
10498
|
+
const divStyle = css `
|
|
10499
10499
|
background: ${this.background
|
|
10500
10500
|
? this.background.match(regex)
|
|
10501
10501
|
? `url(${this.background}) no-repeat center center;`
|
|
10502
10502
|
: this.background
|
|
10503
|
-
: "inherit"};
|
|
10504
|
-
height: ${this.height || "inherit"};
|
|
10505
|
-
background-size: contain;
|
|
10503
|
+
: "inherit"};
|
|
10504
|
+
height: ${this.height || "inherit"};
|
|
10505
|
+
background-size: contain;
|
|
10506
10506
|
`;
|
|
10507
10507
|
const content = this.ismarkdown ? (index.h("div", { innerHTML: marked(this.text) })) : (this.text);
|
|
10508
10508
|
return (!this.ishidden && (index.h("div", { class: divStyle }, index.h("p", { class: textStyle }, content))));
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-deb40352.js');
|
|
6
6
|
require('./_commonjsHelpers-ac2d0785.js');
|
|
7
|
-
const WidgetHost = require('./WidgetHost-
|
|
7
|
+
const WidgetHost = require('./WidgetHost-71b013eb.js');
|
|
8
8
|
|
|
9
9
|
const referralCodeCss = "sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";
|
|
10
10
|
|
|
@@ -49,29 +49,29 @@ export class CopyButton {
|
|
|
49
49
|
clipboard.on("error", this.notifyFailure.bind(this));
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
const style = css `
|
|
53
|
-
max-width: ${this.width}px;
|
|
54
|
-
background-color: ${this.backgroundcolor};
|
|
55
|
-
border: ${this.backgroundcolor};
|
|
56
|
-
color: ${this.textcolor};
|
|
57
|
-
border-radius: ${this.borderradius}px;
|
|
58
|
-
font-size: ${this.fontsize}px;
|
|
59
|
-
|
|
60
|
-
&:hover {
|
|
61
|
-
background-color: ${shadeColor(this.backgroundcolor, 10)};
|
|
62
|
-
border-color: ${shadeColor(this.backgroundcolor, 12)};
|
|
63
|
-
color: ${this.textcolor};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:focus {
|
|
67
|
-
color: ${this.textcolor};
|
|
68
|
-
}
|
|
52
|
+
const style = css `
|
|
53
|
+
max-width: ${this.width}px;
|
|
54
|
+
background-color: ${this.backgroundcolor};
|
|
55
|
+
border: ${this.backgroundcolor};
|
|
56
|
+
color: ${this.textcolor};
|
|
57
|
+
border-radius: ${this.borderradius}px;
|
|
58
|
+
font-size: ${this.fontsize}px;
|
|
59
|
+
|
|
60
|
+
&:hover {
|
|
61
|
+
background-color: ${shadeColor(this.backgroundcolor, 10)};
|
|
62
|
+
border-color: ${shadeColor(this.backgroundcolor, 12)};
|
|
63
|
+
color: ${this.textcolor};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:focus {
|
|
67
|
+
color: ${this.textcolor};
|
|
68
|
+
}
|
|
69
69
|
`;
|
|
70
|
-
const code = css `
|
|
71
|
-
text-align: center;
|
|
72
|
-
font-weight: bold;
|
|
73
|
-
font-size: ${this.codefontsize};
|
|
74
|
-
color: ${this.codefontcolor};
|
|
70
|
+
const code = css `
|
|
71
|
+
text-align: center;
|
|
72
|
+
font-weight: bold;
|
|
73
|
+
font-size: ${this.codefontsize};
|
|
74
|
+
color: ${this.codefontcolor};
|
|
75
75
|
`;
|
|
76
76
|
const classes = [`sqh-copy-button`, style].join(" ");
|
|
77
77
|
return (!this.ishidden && (h("div", null,
|
|
@@ -46,21 +46,21 @@ export class CopyLinkButton {
|
|
|
46
46
|
clipboard.on("error", this.notifyFailure.bind(this));
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
const myStyle = css `
|
|
50
|
-
background-color: ${this.buttoncolor};
|
|
51
|
-
border: 1px solid ${this.buttoncolor};
|
|
52
|
-
color: ${this.textcolor};
|
|
53
|
-
font-family: ${"inherit"};
|
|
54
|
-
|
|
55
|
-
&:hover {
|
|
56
|
-
background: ${shadeColor(this.buttoncolor, 10)};
|
|
57
|
-
border-color: ${shadeColor(this.buttoncolor, 12)};
|
|
58
|
-
color: ${this.textcolor};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:focus {
|
|
62
|
-
color: ${this.textcolor};
|
|
63
|
-
}
|
|
49
|
+
const myStyle = css `
|
|
50
|
+
background-color: ${this.buttoncolor};
|
|
51
|
+
border: 1px solid ${this.buttoncolor};
|
|
52
|
+
color: ${this.textcolor};
|
|
53
|
+
font-family: ${"inherit"};
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
background: ${shadeColor(this.buttoncolor, 10)};
|
|
57
|
+
border-color: ${shadeColor(this.buttoncolor, 12)};
|
|
58
|
+
color: ${this.textcolor};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:focus {
|
|
62
|
+
color: ${this.textcolor};
|
|
63
|
+
}
|
|
64
64
|
`;
|
|
65
65
|
const buttonClass = [`sqh-copy-btn icon-btn`, myStyle].join(" ");
|
|
66
66
|
return (!this.ishidden && (h("div", { class: "input-group" },
|
|
@@ -7,8 +7,8 @@ import { css } from "emotion";
|
|
|
7
7
|
*/
|
|
8
8
|
export class GlobalContainer {
|
|
9
9
|
LoadingState(props) {
|
|
10
|
-
const style = css `
|
|
11
|
-
background-color: ${props.loadingcolor || "#439B76"};
|
|
10
|
+
const style = css `
|
|
11
|
+
background-color: ${props.loadingcolor || "#439B76"};
|
|
12
12
|
`;
|
|
13
13
|
return (h("div", { class: "container-loading" },
|
|
14
14
|
h("div", { class: "loading-icon" },
|
|
@@ -19,11 +19,11 @@ export class GlobalContainer {
|
|
|
19
19
|
h("div", { class: `bar5 ${style}` }))));
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
const style = css `
|
|
23
|
-
background-color: ${this.background};
|
|
24
|
-
font-family: ${this.fontfamily};
|
|
25
|
-
position: relative;
|
|
26
|
-
max-width: ${this.maxwidth};
|
|
22
|
+
const style = css `
|
|
23
|
+
background-color: ${this.background};
|
|
24
|
+
font-family: ${this.fontfamily};
|
|
25
|
+
position: relative;
|
|
26
|
+
max-width: ${this.maxwidth};
|
|
27
27
|
`;
|
|
28
28
|
const robotoFont = (h("link", { href: "https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap", rel: "stylesheet" }));
|
|
29
29
|
const artifaktFont = (h("link", { href: "https://static-dc.autodesk.net/etc/designs/v201903181748/templates-general/structure/fonts/artifakt/clientlibs/artifakt.css", rel: "stylesheet" }));
|
|
@@ -31,7 +31,7 @@ export class GlobalContainer {
|
|
|
31
31
|
this.fontfamily == "Roboto" ? robotoFont : "",
|
|
32
32
|
this.fontfamily == "Artifakt Element" ? artifaktFont : "",
|
|
33
33
|
h("slot", null),
|
|
34
|
-
this.poweredby ? (h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered By
|
|
34
|
+
this.poweredby ? (h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered With Saasquatch By Impact.com")) : (""),
|
|
35
35
|
h(this.LoadingState, { loadingcolor: this.loadingcolor })));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "sqh-global-container"; }
|
|
@@ -7,17 +7,17 @@ import { css } from "emotion";
|
|
|
7
7
|
export class ImageComponent {
|
|
8
8
|
render() {
|
|
9
9
|
const imageString = this.url;
|
|
10
|
-
const alignment = css `
|
|
11
|
-
{
|
|
12
|
-
text-align: ${this.alignment};
|
|
13
|
-
}
|
|
10
|
+
const alignment = css `
|
|
11
|
+
{
|
|
12
|
+
text-align: ${this.alignment};
|
|
13
|
+
}
|
|
14
14
|
`;
|
|
15
|
-
const myStyle = css `
|
|
16
|
-
{
|
|
17
|
-
width: ${this.width}px;
|
|
18
|
-
border-radius: ${this.borderradius}px;
|
|
19
|
-
${this.css}
|
|
20
|
-
}
|
|
15
|
+
const myStyle = css `
|
|
16
|
+
{
|
|
17
|
+
width: ${this.width}px;
|
|
18
|
+
border-radius: ${this.borderradius}px;
|
|
19
|
+
${this.css}
|
|
20
|
+
}
|
|
21
21
|
`;
|
|
22
22
|
return (!this.ishidden && (h("div", { class: alignment },
|
|
23
23
|
h("img", { src: imageString, class: myStyle }))));
|
|
@@ -23,8 +23,8 @@ export class PartnerStatComponent {
|
|
|
23
23
|
this.statTypeUpdated.emit(stat);
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
const clz = css `
|
|
27
|
-
color: ${this.statcolor};
|
|
26
|
+
const clz = css `
|
|
27
|
+
color: ${this.statcolor};
|
|
28
28
|
`;
|
|
29
29
|
return (!this.ishidden && (h("div", { class: clz },
|
|
30
30
|
h("div", { class: "stat-value" }, this.statvalue),
|