@saasquatch/mint-components 2.0.0-17 → 2.0.0-19
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 +7 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +8 -3
- package/dist/esm/sqm-banking-info-form_10.entry.js +7 -2
- 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-6cadd5cb.system.entry.js +1 -0
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/p-f355c845.entry.js +99 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +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');
|
|
@@ -4665,7 +4666,7 @@ const TaxAndCashDashboard = class {
|
|
|
4665
4666
|
this.cancelButton = "Cancel";
|
|
4666
4667
|
/**
|
|
4667
4668
|
* @undocumented
|
|
4668
|
-
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"] "uiGroup": "Dashboard Properties" }
|
|
4669
|
+
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"], "uiGroup": "Dashboard Properties" }
|
|
4669
4670
|
*/
|
|
4670
4671
|
this.stateController = "{}";
|
|
4671
4672
|
domContextHooks_module.h$1(this);
|
|
@@ -4693,6 +4694,10 @@ const TaxAndCashDashboard = class {
|
|
|
4693
4694
|
}
|
|
4694
4695
|
};
|
|
4695
4696
|
function useDemoTaxAndCashDashboard(props) {
|
|
4697
|
+
const states = parseStates.parseStates(props.stateController);
|
|
4698
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
|
|
4699
|
+
? { ...prev, ...states[key] }
|
|
4700
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
4696
4701
|
// @ts-ignore
|
|
4697
4702
|
return cjs.cjs({
|
|
4698
4703
|
states: {
|
|
@@ -4734,7 +4739,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4734
4739
|
},
|
|
4735
4740
|
} })),
|
|
4736
4741
|
},
|
|
4737
|
-
},
|
|
4742
|
+
}, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4738
4743
|
}
|
|
4739
4744
|
|
|
4740
4745
|
const PHONE_EXTENSIONS = {
|
|
@@ -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
|
*/
|
|
@@ -340,7 +341,7 @@ export class TaxAndCashDashboard {
|
|
|
340
341
|
this.cancelButton = "Cancel";
|
|
341
342
|
/**
|
|
342
343
|
* @undocumented
|
|
343
|
-
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"] "uiGroup": "Dashboard Properties" }
|
|
344
|
+
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"], "uiGroup": "Dashboard Properties" }
|
|
344
345
|
*/
|
|
345
346
|
this.stateController = "{}";
|
|
346
347
|
withHooks(this);
|
|
@@ -1888,7 +1889,7 @@ export class TaxAndCashDashboard {
|
|
|
1888
1889
|
"text": undefined,
|
|
1889
1890
|
"name": "undocumented"
|
|
1890
1891
|
}, {
|
|
1891
|
-
"text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-tax-and-cash\"] \"uiGroup\": \"Dashboard Properties\" }",
|
|
1892
|
+
"text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-tax-and-cash\"], \"uiGroup\": \"Dashboard Properties\" }",
|
|
1892
1893
|
"name": "componentState"
|
|
1893
1894
|
}],
|
|
1894
1895
|
"text": ""
|
|
@@ -1900,6 +1901,10 @@ export class TaxAndCashDashboard {
|
|
|
1900
1901
|
}; }
|
|
1901
1902
|
}
|
|
1902
1903
|
function useDemoTaxAndCashDashboard(props) {
|
|
1904
|
+
const states = parseStates(props.stateController);
|
|
1905
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
|
|
1906
|
+
? { ...prev, ...states[key] }
|
|
1907
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
1903
1908
|
// @ts-ignore
|
|
1904
1909
|
return deepmerge({
|
|
1905
1910
|
states: {
|
|
@@ -1941,5 +1946,5 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
1941
1946
|
},
|
|
1942
1947
|
} })),
|
|
1943
1948
|
},
|
|
1944
|
-
},
|
|
1949
|
+
}, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1945
1950
|
}
|
|
@@ -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';
|
|
@@ -4661,7 +4662,7 @@ const TaxAndCashDashboard = class {
|
|
|
4661
4662
|
this.cancelButton = "Cancel";
|
|
4662
4663
|
/**
|
|
4663
4664
|
* @undocumented
|
|
4664
|
-
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"] "uiGroup": "Dashboard Properties" }
|
|
4665
|
+
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"], "uiGroup": "Dashboard Properties" }
|
|
4665
4666
|
*/
|
|
4666
4667
|
this.stateController = "{}";
|
|
4667
4668
|
h$1(this);
|
|
@@ -4689,6 +4690,10 @@ const TaxAndCashDashboard = class {
|
|
|
4689
4690
|
}
|
|
4690
4691
|
};
|
|
4691
4692
|
function useDemoTaxAndCashDashboard(props) {
|
|
4693
|
+
const states = parseStates(props.stateController);
|
|
4694
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
|
|
4695
|
+
? { ...prev, ...states[key] }
|
|
4696
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
4692
4697
|
// @ts-ignore
|
|
4693
4698
|
return cjs({
|
|
4694
4699
|
states: {
|
|
@@ -4730,7 +4735,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4730
4735
|
},
|
|
4731
4736
|
} })),
|
|
4732
4737
|
},
|
|
4733
|
-
},
|
|
4738
|
+
}, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4734
4739
|
}
|
|
4735
4740
|
|
|
4736
4741
|
const PHONE_EXTENSIONS = {
|