@saasquatch/mint-components 2.0.0-27 → 2.0.0-29
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 +15 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +17 -9
- package/dist/esm/sqm-banking-info-form_10.entry.js +15 -7
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-1a2015b2.entry.js +99 -0
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/p-e3050708.system.entry.js +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +3 -1
- package/dist/types/components.d.ts +2 -2
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-3136ce81.entry.js +0 -99
- package/dist/mint-components/p-b7ea1479.system.entry.js +0 -1
|
@@ -18,7 +18,6 @@ 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');
|
|
22
21
|
const data = require('./data-88adb95b.js');
|
|
23
22
|
const keys = require('./keys-cff24974.js');
|
|
24
23
|
const usePayoutStatus = require('./usePayoutStatus-fe32dd1a.js');
|
|
@@ -4666,7 +4665,7 @@ const TaxAndCashDashboard = class {
|
|
|
4666
4665
|
this.cancelButton = "Cancel";
|
|
4667
4666
|
/**
|
|
4668
4667
|
* @undocumented
|
|
4669
|
-
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-
|
|
4668
|
+
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"], "uiGroup": "Dashboard Properties" }
|
|
4670
4669
|
*/
|
|
4671
4670
|
this.stateController = "{}";
|
|
4672
4671
|
domContextHooks_module.h$1(this);
|
|
@@ -4685,18 +4684,27 @@ const TaxAndCashDashboard = class {
|
|
|
4685
4684
|
};
|
|
4686
4685
|
}
|
|
4687
4686
|
render() {
|
|
4687
|
+
const effectiveStateController = this.getEffectiveStateController();
|
|
4688
4688
|
const props = index_module.isDemo()
|
|
4689
|
-
? useDemoTaxAndCashDashboard(this)
|
|
4689
|
+
? useDemoTaxAndCashDashboard(this, effectiveStateController)
|
|
4690
4690
|
: useTaxAndCashDashboard(this);
|
|
4691
4691
|
return (index.h(index.Host, null, index.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
4692
4692
|
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
4693
4693
|
} })));
|
|
4694
4694
|
}
|
|
4695
|
+
getEffectiveStateController() {
|
|
4696
|
+
var _a, _b;
|
|
4697
|
+
if (this.stateController && this.stateController !== "{}") {
|
|
4698
|
+
return this.stateController;
|
|
4699
|
+
}
|
|
4700
|
+
const parent = (_a = this.hostEl) === null || _a === void 0 ? void 0 : _a.closest("sqm-widget-verification-controller");
|
|
4701
|
+
return (_b = parent === null || parent === void 0 ? void 0 : parent.getAttribute("state-controller")) !== null && _b !== void 0 ? _b : "{}";
|
|
4702
|
+
}
|
|
4703
|
+
get hostEl() { return index.getElement(this); }
|
|
4695
4704
|
};
|
|
4696
|
-
function useDemoTaxAndCashDashboard(props) {
|
|
4697
|
-
const
|
|
4698
|
-
|
|
4699
|
-
? parsed["sqm-tax-and-cash-dashboard"]
|
|
4705
|
+
function useDemoTaxAndCashDashboard(props, stateController) {
|
|
4706
|
+
const formatted = stateController["sqm-tax-and-cash-dashboard"] !== undefined
|
|
4707
|
+
? stateController["sqm-tax-and-cash-dashboard"]
|
|
4700
4708
|
: {};
|
|
4701
4709
|
const merged = cjs.cjs.all([
|
|
4702
4710
|
{
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
-
import { Component, h, Host, Prop } from "@stencil/core";
|
|
3
|
+
import { Component, h, Host, Prop, Element } from "@stencil/core";
|
|
4
4
|
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";
|
|
9
8
|
/**
|
|
10
9
|
* @uiName Tax and Cash Status Dashboard
|
|
11
10
|
*/
|
|
@@ -341,7 +340,7 @@ export class TaxAndCashDashboard {
|
|
|
341
340
|
this.cancelButton = "Cancel";
|
|
342
341
|
/**
|
|
343
342
|
* @undocumented
|
|
344
|
-
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-
|
|
343
|
+
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"], "uiGroup": "Dashboard Properties" }
|
|
345
344
|
*/
|
|
346
345
|
this.stateController = "{}";
|
|
347
346
|
withHooks(this);
|
|
@@ -360,14 +359,23 @@ export class TaxAndCashDashboard {
|
|
|
360
359
|
};
|
|
361
360
|
}
|
|
362
361
|
render() {
|
|
362
|
+
const effectiveStateController = this.getEffectiveStateController();
|
|
363
363
|
const props = isDemo()
|
|
364
|
-
? useDemoTaxAndCashDashboard(this)
|
|
364
|
+
? useDemoTaxAndCashDashboard(this, effectiveStateController)
|
|
365
365
|
: useTaxAndCashDashboard(this);
|
|
366
366
|
return (h(Host, null,
|
|
367
367
|
h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
368
368
|
payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
369
369
|
} })));
|
|
370
370
|
}
|
|
371
|
+
getEffectiveStateController() {
|
|
372
|
+
var _a, _b;
|
|
373
|
+
if (this.stateController && this.stateController !== "{}") {
|
|
374
|
+
return this.stateController;
|
|
375
|
+
}
|
|
376
|
+
const parent = (_a = this.hostEl) === null || _a === void 0 ? void 0 : _a.closest("sqm-widget-verification-controller");
|
|
377
|
+
return (_b = parent === null || parent === void 0 ? void 0 : parent.getAttribute("state-controller")) !== null && _b !== void 0 ? _b : "{}";
|
|
378
|
+
}
|
|
371
379
|
static get is() { return "sqm-tax-and-cash-dashboard"; }
|
|
372
380
|
static get encapsulation() { return "shadow"; }
|
|
373
381
|
static get properties() { return {
|
|
@@ -1889,7 +1897,7 @@ export class TaxAndCashDashboard {
|
|
|
1889
1897
|
"text": undefined,
|
|
1890
1898
|
"name": "undocumented"
|
|
1891
1899
|
}, {
|
|
1892
|
-
"text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-
|
|
1900
|
+
"text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-payout-status-alert\"], \"uiGroup\": \"Dashboard Properties\" }",
|
|
1893
1901
|
"name": "componentState"
|
|
1894
1902
|
}],
|
|
1895
1903
|
"text": ""
|
|
@@ -1899,11 +1907,11 @@ export class TaxAndCashDashboard {
|
|
|
1899
1907
|
"defaultValue": "\"{}\""
|
|
1900
1908
|
}
|
|
1901
1909
|
}; }
|
|
1910
|
+
static get elementRef() { return "hostEl"; }
|
|
1902
1911
|
}
|
|
1903
|
-
function useDemoTaxAndCashDashboard(props) {
|
|
1904
|
-
const
|
|
1905
|
-
|
|
1906
|
-
? parsed["sqm-tax-and-cash-dashboard"]
|
|
1912
|
+
function useDemoTaxAndCashDashboard(props, stateController) {
|
|
1913
|
+
const formatted = stateController["sqm-tax-and-cash-dashboard"] !== undefined
|
|
1914
|
+
? stateController["sqm-tax-and-cash-dashboard"]
|
|
1907
1915
|
: {};
|
|
1908
1916
|
const merged = deepmerge.all([
|
|
1909
1917
|
{
|
|
@@ -14,7 +14,6 @@ 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';
|
|
18
17
|
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';
|
|
19
18
|
import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
|
|
20
19
|
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-42cc6a2c.js';
|
|
@@ -4662,7 +4661,7 @@ const TaxAndCashDashboard = class {
|
|
|
4662
4661
|
this.cancelButton = "Cancel";
|
|
4663
4662
|
/**
|
|
4664
4663
|
* @undocumented
|
|
4665
|
-
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-
|
|
4664
|
+
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"], "uiGroup": "Dashboard Properties" }
|
|
4666
4665
|
*/
|
|
4667
4666
|
this.stateController = "{}";
|
|
4668
4667
|
h$1(this);
|
|
@@ -4681,18 +4680,27 @@ const TaxAndCashDashboard = class {
|
|
|
4681
4680
|
};
|
|
4682
4681
|
}
|
|
4683
4682
|
render() {
|
|
4683
|
+
const effectiveStateController = this.getEffectiveStateController();
|
|
4684
4684
|
const props = isDemo()
|
|
4685
|
-
? useDemoTaxAndCashDashboard(this)
|
|
4685
|
+
? useDemoTaxAndCashDashboard(this, effectiveStateController)
|
|
4686
4686
|
: useTaxAndCashDashboard(this);
|
|
4687
4687
|
return (h(Host, null, h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
4688
4688
|
payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
4689
4689
|
} })));
|
|
4690
4690
|
}
|
|
4691
|
+
getEffectiveStateController() {
|
|
4692
|
+
var _a, _b;
|
|
4693
|
+
if (this.stateController && this.stateController !== "{}") {
|
|
4694
|
+
return this.stateController;
|
|
4695
|
+
}
|
|
4696
|
+
const parent = (_a = this.hostEl) === null || _a === void 0 ? void 0 : _a.closest("sqm-widget-verification-controller");
|
|
4697
|
+
return (_b = parent === null || parent === void 0 ? void 0 : parent.getAttribute("state-controller")) !== null && _b !== void 0 ? _b : "{}";
|
|
4698
|
+
}
|
|
4699
|
+
get hostEl() { return getElement(this); }
|
|
4691
4700
|
};
|
|
4692
|
-
function useDemoTaxAndCashDashboard(props) {
|
|
4693
|
-
const
|
|
4694
|
-
|
|
4695
|
-
? parsed["sqm-tax-and-cash-dashboard"]
|
|
4701
|
+
function useDemoTaxAndCashDashboard(props, stateController) {
|
|
4702
|
+
const formatted = stateController["sqm-tax-and-cash-dashboard"] !== undefined
|
|
4703
|
+
? stateController["sqm-tax-and-cash-dashboard"]
|
|
4696
4704
|
: {};
|
|
4697
4705
|
const merged = cjs.all([
|
|
4698
4706
|
{
|