@saasquatch/mint-components 2.0.0-37 → 2.0.0-39
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/sqm-banking-info-form_10.cjs.entry.js +8 -1
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +2 -1
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +8 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +8 -1
- package/dist/esm/sqm-tax-and-cash.entry.js +2 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-08325696.system.entry.js +1 -0
- package/dist/mint-components/{p-402984b3.system.entry.js → p-7d23f71a.system.entry.js} +1 -1
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/{p-a44a912b.entry.js → p-a898d088.entry.js} +1 -1
- package/dist/mint-components/p-b3847cfe.entry.js +99 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
- package/dist/types/components.d.ts +8 -8
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-3d713973.system.entry.js +0 -1
- package/dist/mint-components/p-ab79297a.entry.js +0 -99
|
@@ -18,6 +18,7 @@ const luxon = require('./luxon-949beaf2.js');
|
|
|
18
18
|
const useReferralTable = require('./useReferralTable-90d4d6e9.js');
|
|
19
19
|
const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-e5f70b8b.js');
|
|
20
20
|
const utils$1 = require('./utils-83d125fa.js');
|
|
21
|
+
const parseStates = require('./parseStates-d1effc19.js');
|
|
21
22
|
const data = require('./data-88adb95b.js');
|
|
22
23
|
const keys = require('./keys-cff24974.js');
|
|
23
24
|
const usePayoutStatus = require('./usePayoutStatus-fe32dd1a.js');
|
|
@@ -4687,12 +4688,18 @@ const TaxAndCashDashboard = class {
|
|
|
4687
4688
|
const props = index_module.isDemo()
|
|
4688
4689
|
? useDemoTaxAndCashDashboard(this)
|
|
4689
4690
|
: useTaxAndCashDashboard(this);
|
|
4691
|
+
console.log({ stateController: this.stateController });
|
|
4690
4692
|
return (index.h(index.Host, null, index.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
4691
4693
|
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
4692
4694
|
} })));
|
|
4693
4695
|
}
|
|
4694
4696
|
};
|
|
4695
4697
|
function useDemoTaxAndCashDashboard(props) {
|
|
4698
|
+
const states = parseStates.parseStates(props.stateController);
|
|
4699
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
|
|
4700
|
+
? { ...prev, ...states[key] }
|
|
4701
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
4702
|
+
console.log({ formatted });
|
|
4696
4703
|
// @ts-ignore
|
|
4697
4704
|
return cjs.cjs({
|
|
4698
4705
|
states: {
|
|
@@ -4734,7 +4741,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4734
4741
|
},
|
|
4735
4742
|
} })),
|
|
4736
4743
|
},
|
|
4737
|
-
},
|
|
4744
|
+
}, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4738
4745
|
}
|
|
4739
4746
|
|
|
4740
4747
|
const PHONE_EXTENSIONS = {
|
|
@@ -1264,6 +1264,7 @@ const TaxAndCashMonolith = class {
|
|
|
1264
1264
|
render() {
|
|
1265
1265
|
var _a, _b;
|
|
1266
1266
|
const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
1267
|
+
console.log({ props });
|
|
1267
1268
|
// @ts-ignore
|
|
1268
1269
|
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
1269
1270
|
const textProps = utils$1.getProps(this);
|
|
@@ -1283,7 +1284,7 @@ const TaxAndCashMonolith = class {
|
|
|
1283
1284
|
case "/4":
|
|
1284
1285
|
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
1285
1286
|
case "/dashboard":
|
|
1286
|
-
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
1287
|
+
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
|
|
1287
1288
|
case "/error":
|
|
1288
1289
|
return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: global.intl.formatMessage({
|
|
1289
1290
|
id: "loadingErrorAlertDescription",
|
|
@@ -122,13 +122,13 @@ export class Hero {
|
|
|
122
122
|
"optional": true,
|
|
123
123
|
"docs": {
|
|
124
124
|
"tags": [{
|
|
125
|
-
"text": "
|
|
125
|
+
"text": "Content background",
|
|
126
126
|
"name": "uiName"
|
|
127
127
|
}, {
|
|
128
128
|
"text": "Background",
|
|
129
129
|
"name": "uiWidget"
|
|
130
130
|
}],
|
|
131
|
-
"text": "
|
|
131
|
+
"text": "Content background color or image (for use in the left column)"
|
|
132
132
|
},
|
|
133
133
|
"attribute": "background",
|
|
134
134
|
"reflect": false
|
|
@@ -172,13 +172,13 @@ export class Hero {
|
|
|
172
172
|
"optional": true,
|
|
173
173
|
"docs": {
|
|
174
174
|
"tags": [{
|
|
175
|
-
"text": "
|
|
175
|
+
"text": "Splash image",
|
|
176
176
|
"name": "uiName"
|
|
177
177
|
}, {
|
|
178
178
|
"text": "Background",
|
|
179
179
|
"name": "uiWidget"
|
|
180
180
|
}],
|
|
181
|
-
"text": "
|
|
181
|
+
"text": "Splash image or background color (for use in the right column)"
|
|
182
182
|
},
|
|
183
183
|
"attribute": "secondary-background",
|
|
184
184
|
"reflect": false
|
|
@@ -1100,6 +1100,7 @@ export class TaxAndCashMonolith {
|
|
|
1100
1100
|
render() {
|
|
1101
1101
|
var _a, _b;
|
|
1102
1102
|
const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
1103
|
+
console.log({ props });
|
|
1103
1104
|
// @ts-ignore
|
|
1104
1105
|
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
1105
1106
|
const textProps = getProps(this);
|
|
@@ -1125,7 +1126,7 @@ export class TaxAndCashMonolith {
|
|
|
1125
1126
|
case "/4":
|
|
1126
1127
|
return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
1127
1128
|
case "/dashboard":
|
|
1128
|
-
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
1129
|
+
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
|
|
1129
1130
|
case "/error":
|
|
1130
1131
|
return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: intl.formatMessage({
|
|
1131
1132
|
id: "loadingErrorAlertDescription",
|
|
@@ -5,6 +5,7 @@ import deepmerge from "deepmerge";
|
|
|
5
5
|
import { getProps } from "../../../utils/utils";
|
|
6
6
|
import { TaxAndCashDashboardView } from "./sqm-tax-and-cash-dashboard-view";
|
|
7
7
|
import { useTaxAndCashDashboard, } from "./useTaxAndCashDashboard";
|
|
8
|
+
import { parseStates } from "../../../utils/parseStates";
|
|
8
9
|
/**
|
|
9
10
|
* @uiName Tax and Cash Status Dashboard
|
|
10
11
|
*/
|
|
@@ -362,6 +363,7 @@ export class TaxAndCashDashboard {
|
|
|
362
363
|
const props = isDemo()
|
|
363
364
|
? useDemoTaxAndCashDashboard(this)
|
|
364
365
|
: useTaxAndCashDashboard(this);
|
|
366
|
+
console.log({ stateController: this.stateController });
|
|
365
367
|
return (h(Host, null,
|
|
366
368
|
h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
367
369
|
payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
@@ -1900,6 +1902,11 @@ export class TaxAndCashDashboard {
|
|
|
1900
1902
|
}; }
|
|
1901
1903
|
}
|
|
1902
1904
|
function useDemoTaxAndCashDashboard(props) {
|
|
1905
|
+
const states = parseStates(props.stateController);
|
|
1906
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
|
|
1907
|
+
? { ...prev, ...states[key] }
|
|
1908
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
1909
|
+
console.log({ formatted });
|
|
1903
1910
|
// @ts-ignore
|
|
1904
1911
|
return deepmerge({
|
|
1905
1912
|
states: {
|
|
@@ -1941,5 +1948,5 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
1941
1948
|
},
|
|
1942
1949
|
} })),
|
|
1943
1950
|
},
|
|
1944
|
-
},
|
|
1951
|
+
}, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1945
1952
|
}
|
|
@@ -14,6 +14,7 @@ import { l as luxon } from './luxon-bbf75a9d.js';
|
|
|
14
14
|
import { g as generateUserError } from './useReferralTable-909ccb28.js';
|
|
15
15
|
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS } from './IndirectTaxDetailsView-0a57b622.js';
|
|
16
16
|
import { t as taxTypeToName, v as validTaxDocument, g as getCountryObj, L as LoadingView, f as formatErrorMessage, a as validateBillingField, o as objectIsFull } from './utils-6122971b.js';
|
|
17
|
+
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
17
18
|
import { i as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-807686c2.js';
|
|
18
19
|
import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
|
|
19
20
|
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-42cc6a2c.js';
|
|
@@ -4683,12 +4684,18 @@ const TaxAndCashDashboard = class {
|
|
|
4683
4684
|
const props = isDemo()
|
|
4684
4685
|
? useDemoTaxAndCashDashboard(this)
|
|
4685
4686
|
: useTaxAndCashDashboard(this);
|
|
4687
|
+
console.log({ stateController: this.stateController });
|
|
4686
4688
|
return (h(Host, null, h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
4687
4689
|
payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
4688
4690
|
} })));
|
|
4689
4691
|
}
|
|
4690
4692
|
};
|
|
4691
4693
|
function useDemoTaxAndCashDashboard(props) {
|
|
4694
|
+
const states = parseStates(props.stateController);
|
|
4695
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
|
|
4696
|
+
? { ...prev, ...states[key] }
|
|
4697
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
4698
|
+
console.log({ formatted });
|
|
4692
4699
|
// @ts-ignore
|
|
4693
4700
|
return cjs({
|
|
4694
4701
|
states: {
|
|
@@ -4730,7 +4737,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4730
4737
|
},
|
|
4731
4738
|
} })),
|
|
4732
4739
|
},
|
|
4733
|
-
},
|
|
4740
|
+
}, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4734
4741
|
}
|
|
4735
4742
|
|
|
4736
4743
|
const PHONE_EXTENSIONS = {
|
|
@@ -1260,6 +1260,7 @@ const TaxAndCashMonolith = class {
|
|
|
1260
1260
|
render() {
|
|
1261
1261
|
var _a, _b;
|
|
1262
1262
|
const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
1263
|
+
console.log({ props });
|
|
1263
1264
|
// @ts-ignore
|
|
1264
1265
|
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
1265
1266
|
const textProps = getProps(this);
|
|
@@ -1279,7 +1280,7 @@ const TaxAndCashMonolith = class {
|
|
|
1279
1280
|
case "/4":
|
|
1280
1281
|
return (h$1("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
1281
1282
|
case "/dashboard":
|
|
1282
|
-
return (h$1("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
1283
|
+
return (h$1("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
|
|
1283
1284
|
case "/error":
|
|
1284
1285
|
return (h$1(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: intl.formatMessage({
|
|
1285
1286
|
id: "loadingErrorAlertDescription",
|