@saasquatch/mint-components 2.0.0-21 → 2.0.0-23

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.
@@ -4666,7 +4666,7 @@ const TaxAndCashDashboard = class {
4666
4666
  this.cancelButton = "Cancel";
4667
4667
  /**
4668
4668
  * @undocumented
4669
- * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"]}
4669
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash-dashboard"], "uiGroup": "Dashboard Properties" }
4670
4670
  */
4671
4671
  this.stateController = "{}";
4672
4672
  domContextHooks_module.h$1(this);
@@ -4694,52 +4694,52 @@ const TaxAndCashDashboard = class {
4694
4694
  }
4695
4695
  };
4696
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] }, {});
4701
- //@ts-ignore
4702
- return cjs.cjs({
4703
- states: {
4704
- dateSubmitted: "today",
4705
- documentType: "W9",
4706
- documentTypeString: "W-9",
4707
- status: "ACTIVE",
4708
- country: "United States",
4709
- indirectTaxNumber: "55555555",
4710
- indirectTaxType: "Indirect Tax",
4711
- noFormNeeded: false,
4712
- disabled: false,
4713
- loading: false,
4714
- showNewFormDialog: false,
4715
- hasHold: false,
4716
- subRegion: "CA",
4717
- subRegionTaxNumber: undefined,
4718
- qstNumber: undefined,
4719
- isBusinessEntity: false,
4720
- province: undefined,
4721
- notRegistered: true,
4722
- loadingError: false,
4723
- payoutStatus: "DONE",
4724
- veriffLoading: false,
4725
- canEditPayoutInfo: true,
4726
- },
4727
- callbacks: {
4728
- onClick: () => console.debug("check step"),
4729
- onEditPayoutInfo: () => console.debug("payout info"),
4730
- onNewFormCancel: () => console.log("hide"),
4731
- onNewFormClick: () => console.log("show"),
4732
- onVerifyClick: () => console.log("verify"),
4733
- },
4734
- text: props.getTextProps(),
4735
- slots: {
4736
- payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
4737
- states: {
4738
- badgeStatus: "nextPayout",
4739
- },
4740
- } })),
4697
+ const parsed = parseStates.parseStates(props.stateController);
4698
+ const formatted = Object.entries(parsed).reduce((acc, [key, value]) =>
4699
+ // @ts-ignore
4700
+ key === "sqm-tax-and-cash-dashboard" ? { ...acc, ...value } : acc, {});
4701
+ const merged = cjs.cjs.all([
4702
+ {
4703
+ states: {
4704
+ dateSubmitted: "today",
4705
+ documentType: "W9",
4706
+ documentTypeString: "W-9",
4707
+ status: "ACTIVE",
4708
+ country: "United States",
4709
+ indirectTaxNumber: "55555555",
4710
+ indirectTaxType: "Indirect Tax",
4711
+ noFormNeeded: false,
4712
+ disabled: false,
4713
+ loading: false,
4714
+ showNewFormDialog: false,
4715
+ hasHold: false,
4716
+ subRegion: "CA",
4717
+ subRegionTaxNumber: undefined,
4718
+ qstNumber: undefined,
4719
+ isBusinessEntity: false,
4720
+ province: undefined,
4721
+ notRegistered: true,
4722
+ loadingError: false,
4723
+ payoutStatus: "DONE",
4724
+ veriffLoading: false,
4725
+ canEditPayoutInfo: true,
4726
+ },
4727
+ callbacks: {
4728
+ onClick: () => console.debug("check step"),
4729
+ onEditPayoutInfo: () => console.debug("payout info"),
4730
+ onNewFormCancel: () => console.log("hide"),
4731
+ onNewFormClick: () => console.log("show"),
4732
+ onVerifyClick: () => console.log("verify"),
4733
+ },
4734
+ text: props.getTextProps(),
4735
+ slots: {
4736
+ payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout" } } })),
4737
+ },
4741
4738
  },
4742
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
4739
+ props.demoData || {},
4740
+ formatted || {},
4741
+ ], { arrayMerge: (_, a) => a });
4742
+ return merged;
4743
4743
  }
4744
4744
 
4745
4745
  const PHONE_EXTENSIONS = {
@@ -341,7 +341,7 @@ export class TaxAndCashDashboard {
341
341
  this.cancelButton = "Cancel";
342
342
  /**
343
343
  * @undocumented
344
- * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"]}
344
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash-dashboard"], "uiGroup": "Dashboard Properties" }
345
345
  */
346
346
  this.stateController = "{}";
347
347
  withHooks(this);
@@ -1889,7 +1889,7 @@ export class TaxAndCashDashboard {
1889
1889
  "text": undefined,
1890
1890
  "name": "undocumented"
1891
1891
  }, {
1892
- "text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-tax-and-cash\"]}",
1892
+ "text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-tax-and-cash-dashboard\"], \"uiGroup\": \"Dashboard Properties\" }",
1893
1893
  "name": "componentState"
1894
1894
  }],
1895
1895
  "text": ""
@@ -1901,50 +1901,50 @@ export class TaxAndCashDashboard {
1901
1901
  }; }
1902
1902
  }
1903
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] }, {});
1908
- //@ts-ignore
1909
- return deepmerge({
1910
- states: {
1911
- dateSubmitted: "today",
1912
- documentType: "W9",
1913
- documentTypeString: "W-9",
1914
- status: "ACTIVE",
1915
- country: "United States",
1916
- indirectTaxNumber: "55555555",
1917
- indirectTaxType: "Indirect Tax",
1918
- noFormNeeded: false,
1919
- disabled: false,
1920
- loading: false,
1921
- showNewFormDialog: false,
1922
- hasHold: false,
1923
- subRegion: "CA",
1924
- subRegionTaxNumber: undefined,
1925
- qstNumber: undefined,
1926
- isBusinessEntity: false,
1927
- province: undefined,
1928
- notRegistered: true,
1929
- loadingError: false,
1930
- payoutStatus: "DONE",
1931
- veriffLoading: false,
1932
- canEditPayoutInfo: true,
1933
- },
1934
- callbacks: {
1935
- onClick: () => console.debug("check step"),
1936
- onEditPayoutInfo: () => console.debug("payout info"),
1937
- onNewFormCancel: () => console.log("hide"),
1938
- onNewFormClick: () => console.log("show"),
1939
- onVerifyClick: () => console.log("verify"),
1940
- },
1941
- text: props.getTextProps(),
1942
- slots: {
1943
- payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
1944
- states: {
1945
- badgeStatus: "nextPayout",
1946
- },
1947
- } })),
1948
- },
1949
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
1904
+ const parsed = parseStates(props.stateController);
1905
+ const formatted = Object.entries(parsed).reduce((acc, [key, value]) =>
1906
+ // @ts-ignore
1907
+ key === "sqm-tax-and-cash-dashboard" ? { ...acc, ...value } : acc, {});
1908
+ const merged = deepmerge.all([
1909
+ {
1910
+ states: {
1911
+ dateSubmitted: "today",
1912
+ documentType: "W9",
1913
+ documentTypeString: "W-9",
1914
+ status: "ACTIVE",
1915
+ country: "United States",
1916
+ indirectTaxNumber: "55555555",
1917
+ indirectTaxType: "Indirect Tax",
1918
+ noFormNeeded: false,
1919
+ disabled: false,
1920
+ loading: false,
1921
+ showNewFormDialog: false,
1922
+ hasHold: false,
1923
+ subRegion: "CA",
1924
+ subRegionTaxNumber: undefined,
1925
+ qstNumber: undefined,
1926
+ isBusinessEntity: false,
1927
+ province: undefined,
1928
+ notRegistered: true,
1929
+ loadingError: false,
1930
+ payoutStatus: "DONE",
1931
+ veriffLoading: false,
1932
+ canEditPayoutInfo: true,
1933
+ },
1934
+ callbacks: {
1935
+ onClick: () => console.debug("check step"),
1936
+ onEditPayoutInfo: () => console.debug("payout info"),
1937
+ onNewFormCancel: () => console.log("hide"),
1938
+ onNewFormClick: () => console.log("show"),
1939
+ onVerifyClick: () => console.log("verify"),
1940
+ },
1941
+ text: props.getTextProps(),
1942
+ slots: {
1943
+ payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout" } } })),
1944
+ },
1945
+ },
1946
+ props.demoData || {},
1947
+ formatted || {},
1948
+ ], { arrayMerge: (_, a) => a });
1949
+ return merged;
1950
1950
  }
@@ -4662,7 +4662,7 @@ const TaxAndCashDashboard = class {
4662
4662
  this.cancelButton = "Cancel";
4663
4663
  /**
4664
4664
  * @undocumented
4665
- * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"]}
4665
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash-dashboard"], "uiGroup": "Dashboard Properties" }
4666
4666
  */
4667
4667
  this.stateController = "{}";
4668
4668
  h$1(this);
@@ -4690,52 +4690,52 @@ const TaxAndCashDashboard = class {
4690
4690
  }
4691
4691
  };
4692
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] }, {});
4697
- //@ts-ignore
4698
- return cjs({
4699
- states: {
4700
- dateSubmitted: "today",
4701
- documentType: "W9",
4702
- documentTypeString: "W-9",
4703
- status: "ACTIVE",
4704
- country: "United States",
4705
- indirectTaxNumber: "55555555",
4706
- indirectTaxType: "Indirect Tax",
4707
- noFormNeeded: false,
4708
- disabled: false,
4709
- loading: false,
4710
- showNewFormDialog: false,
4711
- hasHold: false,
4712
- subRegion: "CA",
4713
- subRegionTaxNumber: undefined,
4714
- qstNumber: undefined,
4715
- isBusinessEntity: false,
4716
- province: undefined,
4717
- notRegistered: true,
4718
- loadingError: false,
4719
- payoutStatus: "DONE",
4720
- veriffLoading: false,
4721
- canEditPayoutInfo: true,
4722
- },
4723
- callbacks: {
4724
- onClick: () => console.debug("check step"),
4725
- onEditPayoutInfo: () => console.debug("payout info"),
4726
- onNewFormCancel: () => console.log("hide"),
4727
- onNewFormClick: () => console.log("show"),
4728
- onVerifyClick: () => console.log("verify"),
4729
- },
4730
- text: props.getTextProps(),
4731
- slots: {
4732
- payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
4733
- states: {
4734
- badgeStatus: "nextPayout",
4735
- },
4736
- } })),
4693
+ const parsed = parseStates(props.stateController);
4694
+ const formatted = Object.entries(parsed).reduce((acc, [key, value]) =>
4695
+ // @ts-ignore
4696
+ key === "sqm-tax-and-cash-dashboard" ? { ...acc, ...value } : acc, {});
4697
+ const merged = cjs.all([
4698
+ {
4699
+ states: {
4700
+ dateSubmitted: "today",
4701
+ documentType: "W9",
4702
+ documentTypeString: "W-9",
4703
+ status: "ACTIVE",
4704
+ country: "United States",
4705
+ indirectTaxNumber: "55555555",
4706
+ indirectTaxType: "Indirect Tax",
4707
+ noFormNeeded: false,
4708
+ disabled: false,
4709
+ loading: false,
4710
+ showNewFormDialog: false,
4711
+ hasHold: false,
4712
+ subRegion: "CA",
4713
+ subRegionTaxNumber: undefined,
4714
+ qstNumber: undefined,
4715
+ isBusinessEntity: false,
4716
+ province: undefined,
4717
+ notRegistered: true,
4718
+ loadingError: false,
4719
+ payoutStatus: "DONE",
4720
+ veriffLoading: false,
4721
+ canEditPayoutInfo: true,
4722
+ },
4723
+ callbacks: {
4724
+ onClick: () => console.debug("check step"),
4725
+ onEditPayoutInfo: () => console.debug("payout info"),
4726
+ onNewFormCancel: () => console.log("hide"),
4727
+ onNewFormClick: () => console.log("show"),
4728
+ onVerifyClick: () => console.log("verify"),
4729
+ },
4730
+ text: props.getTextProps(),
4731
+ slots: {
4732
+ payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout" } } })),
4733
+ },
4737
4734
  },
4738
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
4735
+ props.demoData || {},
4736
+ formatted || {},
4737
+ ], { arrayMerge: (_, a) => a });
4738
+ return merged;
4739
4739
  }
4740
4740
 
4741
4741
  const PHONE_EXTENSIONS = {