@saasquatch/mint-components 1.14.7-12 → 1.14.7-14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-74c59d9c.js → ShadowViewAddon-28865623.js} +9 -5
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +9 -5
- package/dist/esm/{ShadowViewAddon-ecffc72d.js → ShadowViewAddon-f2176779.js} +9 -5
- package/dist/esm/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/ShadowViewAddon-f2176779.js +1 -0
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-0d939b73.system.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-d542e39e.system.entry.js → p-4cff3345.system.entry.js} +1 -1
- package/dist/mint-components/{p-8956c614.entry.js → p-653a8a7b.entry.js} +1 -1
- package/dist/mint-components/{p-96fa0e76.system.entry.js → p-a01e3c3d.system.entry.js} +1 -1
- package/dist/mint-components/p-c1b074b6.js +394 -0
- package/dist/mint-components/{p-93bd2fa4.entry.js → p-c4ce8578.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-ecffc72d.js +0 -1
- package/dist/mint-components/p-2da080cb.system.js +0 -1
- package/dist/mint-components/p-cd523923.js +0 -394
|
@@ -1665,7 +1665,6 @@ function PortalRegisterView(props) {
|
|
|
1665
1665
|
const style$4 = {
|
|
1666
1666
|
ErrorStyle: {
|
|
1667
1667
|
"&::part(control)": {
|
|
1668
|
-
background: "var(--sl-color-danger-10)",
|
|
1669
1668
|
borderColor: "var(--sl-color-danger-500)",
|
|
1670
1669
|
outline: "var(--sl-color-danger-500)",
|
|
1671
1670
|
},
|
|
@@ -1704,8 +1703,9 @@ JSS.jss.setup(JSS.create());
|
|
|
1704
1703
|
const sheet$4 = JSS.jss.createStyleSheet(style$4);
|
|
1705
1704
|
const styleString$4 = sheet$4.toString();
|
|
1706
1705
|
function CheckboxFieldView(props) {
|
|
1707
|
-
var _a, _b;
|
|
1706
|
+
var _a, _b, _c, _d, _e;
|
|
1708
1707
|
const { states, content, callbacks } = props;
|
|
1708
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
1709
1709
|
return (index.h("div", { class: sheet$4.classes.FieldContainer, part: "sqm-base" },
|
|
1710
1710
|
index.h("style", { type: "text/css" },
|
|
1711
1711
|
vanillaStyle$2,
|
|
@@ -1713,16 +1713,20 @@ function CheckboxFieldView(props) {
|
|
|
1713
1713
|
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
1714
1714
|
e.target.value = e.target.checked;
|
|
1715
1715
|
callbacks.setChecked(e.target.value);
|
|
1716
|
-
} }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((
|
|
1716
|
+
} }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
|
|
1717
1717
|
if (!value && !content.checkboxOptional) {
|
|
1718
1718
|
return content.errorMessage;
|
|
1719
1719
|
}
|
|
1720
|
-
} }
|
|
1720
|
+
} }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e[content.checkboxName]) ? {
|
|
1721
|
+
class: sheet$4.classes.ErrorStyle,
|
|
1722
|
+
}
|
|
1723
|
+
: [])), global.intl.formatMessage({
|
|
1721
1724
|
id: content.checkboxName + "-message",
|
|
1722
1725
|
defaultMessage: content.checkboxLabel,
|
|
1723
1726
|
}, {
|
|
1724
1727
|
labelLink: (index.h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
1725
|
-
}))
|
|
1728
|
+
})),
|
|
1729
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (index.h("p", { class: sheet$4.classes.ErrorMessageStyle }, content.errorMessage))));
|
|
1726
1730
|
}
|
|
1727
1731
|
|
|
1728
1732
|
function ChangeMarktingView(props) {
|
|
@@ -24,7 +24,7 @@ const sqmPortalLoginView = require('./sqm-portal-login-view-761a4d8e.js');
|
|
|
24
24
|
const usePortalLogin = require('./usePortalLogin-63d896d1.js');
|
|
25
25
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
26
26
|
const utilities = require('./utilities-78f5e169.js');
|
|
27
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
27
|
+
const ShadowViewAddon = require('./ShadowViewAddon-28865623.js');
|
|
28
28
|
require('./sqm-portal-container-view-4f15143a.js');
|
|
29
29
|
const usePayoutStatus = require('./usePayoutStatus-feeac99b.js');
|
|
30
30
|
|
|
@@ -36,7 +36,7 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-fe6
|
|
|
36
36
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7b678f34.js');
|
|
37
37
|
require('./ErrorView-b2fcf954.js');
|
|
38
38
|
const sqmQrCodeView = require('./sqm-qr-code-view-15dfc0b6.js');
|
|
39
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
39
|
+
const ShadowViewAddon = require('./ShadowViewAddon-28865623.js');
|
|
40
40
|
const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
|
|
41
41
|
const sqmInvoiceTableView = require('./sqm-invoice-table-view-0f7fa309.js');
|
|
42
42
|
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-89308aab.js');
|
|
@@ -5,7 +5,6 @@ import { intl } from "../../global/global";
|
|
|
5
5
|
const style = {
|
|
6
6
|
ErrorStyle: {
|
|
7
7
|
"&::part(control)": {
|
|
8
|
-
background: "var(--sl-color-danger-10)",
|
|
9
8
|
borderColor: "var(--sl-color-danger-500)",
|
|
10
9
|
outline: "var(--sl-color-danger-500)",
|
|
11
10
|
},
|
|
@@ -44,8 +43,9 @@ jss.setup(preset());
|
|
|
44
43
|
const sheet = jss.createStyleSheet(style);
|
|
45
44
|
const styleString = sheet.toString();
|
|
46
45
|
export function CheckboxFieldView(props) {
|
|
47
|
-
var _a, _b;
|
|
46
|
+
var _a, _b, _c, _d, _e;
|
|
48
47
|
const { states, content, callbacks } = props;
|
|
48
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
49
49
|
return (h("div", { class: sheet.classes.FieldContainer, part: "sqm-base" },
|
|
50
50
|
h("style", { type: "text/css" },
|
|
51
51
|
vanillaStyle,
|
|
@@ -53,14 +53,18 @@ export function CheckboxFieldView(props) {
|
|
|
53
53
|
h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
54
54
|
e.target.value = e.target.checked;
|
|
55
55
|
callbacks.setChecked(e.target.value);
|
|
56
|
-
} }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((
|
|
56
|
+
} }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
|
|
57
57
|
if (!value && !content.checkboxOptional) {
|
|
58
58
|
return content.errorMessage;
|
|
59
59
|
}
|
|
60
|
-
} }
|
|
60
|
+
} }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e[content.checkboxName]) ? {
|
|
61
|
+
class: sheet.classes.ErrorStyle,
|
|
62
|
+
}
|
|
63
|
+
: [])), intl.formatMessage({
|
|
61
64
|
id: content.checkboxName + "-message",
|
|
62
65
|
defaultMessage: content.checkboxLabel,
|
|
63
66
|
}, {
|
|
64
67
|
labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
65
|
-
}))
|
|
68
|
+
})),
|
|
69
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet.classes.ErrorMessageStyle }, content.errorMessage))));
|
|
66
70
|
}
|
|
@@ -1663,7 +1663,6 @@ function PortalRegisterView(props) {
|
|
|
1663
1663
|
const style$4 = {
|
|
1664
1664
|
ErrorStyle: {
|
|
1665
1665
|
"&::part(control)": {
|
|
1666
|
-
background: "var(--sl-color-danger-10)",
|
|
1667
1666
|
borderColor: "var(--sl-color-danger-500)",
|
|
1668
1667
|
outline: "var(--sl-color-danger-500)",
|
|
1669
1668
|
},
|
|
@@ -1702,8 +1701,9 @@ jss.setup(create());
|
|
|
1702
1701
|
const sheet$4 = jss.createStyleSheet(style$4);
|
|
1703
1702
|
const styleString$4 = sheet$4.toString();
|
|
1704
1703
|
function CheckboxFieldView(props) {
|
|
1705
|
-
var _a, _b;
|
|
1704
|
+
var _a, _b, _c, _d, _e;
|
|
1706
1705
|
const { states, content, callbacks } = props;
|
|
1706
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
1707
1707
|
return (h("div", { class: sheet$4.classes.FieldContainer, part: "sqm-base" },
|
|
1708
1708
|
h("style", { type: "text/css" },
|
|
1709
1709
|
vanillaStyle$2,
|
|
@@ -1711,16 +1711,20 @@ function CheckboxFieldView(props) {
|
|
|
1711
1711
|
h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
1712
1712
|
e.target.value = e.target.checked;
|
|
1713
1713
|
callbacks.setChecked(e.target.value);
|
|
1714
|
-
} }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((
|
|
1714
|
+
} }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
|
|
1715
1715
|
if (!value && !content.checkboxOptional) {
|
|
1716
1716
|
return content.errorMessage;
|
|
1717
1717
|
}
|
|
1718
|
-
} }
|
|
1718
|
+
} }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e[content.checkboxName]) ? {
|
|
1719
|
+
class: sheet$4.classes.ErrorStyle,
|
|
1720
|
+
}
|
|
1721
|
+
: [])), intl.formatMessage({
|
|
1719
1722
|
id: content.checkboxName + "-message",
|
|
1720
1723
|
defaultMessage: content.checkboxLabel,
|
|
1721
1724
|
}, {
|
|
1722
1725
|
labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
1723
|
-
}))
|
|
1726
|
+
})),
|
|
1727
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$4.classes.ErrorMessageStyle }, content.errorMessage))));
|
|
1724
1728
|
}
|
|
1725
1729
|
|
|
1726
1730
|
function ChangeMarktingView(props) {
|
|
@@ -20,7 +20,7 @@ import { P as PortalLoginView } from './sqm-portal-login-view-7e49609a.js';
|
|
|
20
20
|
import { u as usePortalLogin } from './usePortalLogin-ef647a50.js';
|
|
21
21
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
22
22
|
import { i as isEmpty } from './utilities-5b0ca040.js';
|
|
23
|
-
import { b as useDemoBigStat, W as useBigStat, B as BigStatView, U as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, Q as LeadDropdownFieldView, O as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, Y as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
23
|
+
import { b as useDemoBigStat, W as useBigStat, B as BigStatView, U as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, Q as LeadDropdownFieldView, O as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, Y as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-f2176779.js';
|
|
24
24
|
import './sqm-portal-container-view-1683ae32.js';
|
|
25
25
|
import { u as usePayoutStatus } from './usePayoutStatus-fed17fc9.js';
|
|
26
26
|
|
|
@@ -32,7 +32,7 @@ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-5
|
|
|
32
32
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-b12cb894.js';
|
|
33
33
|
import './ErrorView-48e2b969.js';
|
|
34
34
|
import { Q as QrCodeView } from './sqm-qr-code-view-f1d0763b.js';
|
|
35
|
-
import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as LeadFormView, Q as LeadDropdownFieldView, U as autoColorScaleCss, V as ShadowViewAddon } from './ShadowViewAddon-
|
|
35
|
+
import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as LeadFormView, Q as LeadDropdownFieldView, U as autoColorScaleCss, V as ShadowViewAddon } from './ShadowViewAddon-f2176779.js';
|
|
36
36
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-1683ae32.js';
|
|
37
37
|
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-7f376a75.js';
|
|
38
38
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-4ede5d7f.js';
|