@saasquatch/mint-components 2.0.0-35 → 2.0.0-36

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" } }, "uiGroup": "Dashboard Properties" }
4669
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] "uiGroup": "Dashboard Properties" }
4670
4670
  */
4671
4671
  this.stateController = "{}";
4672
4672
  domContextHooks_module.h$1(this);
@@ -4688,60 +4688,55 @@ const TaxAndCashDashboard = class {
4688
4688
  const props = index_module.isDemo()
4689
4689
  ? useDemoTaxAndCashDashboard(this)
4690
4690
  : useTaxAndCashDashboard(this);
4691
- console.log({ stateController: this.stateController });
4692
4691
  return (index.h(index.Host, null, index.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
4693
4692
  payoutDetailsCardSlot: (index.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
4694
4693
  } })));
4695
4694
  }
4696
4695
  };
4697
4696
  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 });
4703
- // @ts-ignore
4704
- return cjs.cjs({
4705
- states: {
4706
- dateSubmitted: "today",
4707
- documentType: "W9",
4708
- documentTypeString: "W-9",
4709
- status: "ACTIVE",
4710
- country: "United States",
4711
- indirectTaxNumber: "55555555",
4712
- indirectTaxType: "Indirect Tax",
4713
- noFormNeeded: false,
4714
- disabled: false,
4715
- loading: false,
4716
- showNewFormDialog: false,
4717
- hasHold: false,
4718
- subRegion: "CA",
4719
- subRegionTaxNumber: undefined,
4720
- qstNumber: undefined,
4721
- isBusinessEntity: false,
4722
- province: undefined,
4723
- notRegistered: true,
4724
- loadingError: false,
4725
- payoutStatus: "DONE",
4726
- veriffLoading: false,
4727
- canEditPayoutInfo: true,
4728
- },
4729
- callbacks: {
4730
- onClick: () => console.debug("check step"),
4731
- onEditPayoutInfo: () => console.debug("payout info"),
4732
- onNewFormCancel: () => console.log("hide"),
4733
- onNewFormClick: () => console.log("show"),
4734
- onVerifyClick: () => console.log("verify"),
4735
- },
4736
- text: props.getTextProps(),
4737
- slots: {
4738
- payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
4739
- states: {
4740
- badgeStatus: "nextPayout",
4741
- },
4742
- } })),
4697
+ const parsed = parseStates.parseStates(props.stateController);
4698
+ const formatted = Object.keys(parsed).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
4699
+ ? { ...prev, ...parsed[key] }
4700
+ : { ...prev, [`${key}_stateController`]: parsed[key] }, {});
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(),
4743
4735
  },
4744
- }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
4736
+ props.demoData || {},
4737
+ formatted,
4738
+ ], { arrayMerge: (_, a) => a });
4739
+ return merged;
4745
4740
  }
4746
4741
 
4747
4742
  const PHONE_EXTENSIONS = {
@@ -3206,6 +3206,7 @@ const PayoutStatusAlert = class {
3206
3206
  }
3207
3207
  };
3208
3208
  function useDemoPayoutStatusAlert(props) {
3209
+ console.log(props.stateController, "stateController in sqm-payout-status-alert");
3209
3210
  const states = parseStates.parseStates(props.stateController);
3210
3211
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3211
3212
  ? { ...prev, ...states[key] }
@@ -703,6 +703,7 @@ export class PayoutStatusAlert {
703
703
  }; }
704
704
  }
705
705
  function useDemoPayoutStatusAlert(props) {
706
+ console.log(props.stateController, "stateController in sqm-payout-status-alert");
706
707
  const states = parseStates(props.stateController);
707
708
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
708
709
  ? { ...prev, ...states[key] }
@@ -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" } }, "uiGroup": "Dashboard Properties" }
344
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] "uiGroup": "Dashboard Properties" }
345
345
  */
346
346
  this.stateController = "{}";
347
347
  withHooks(this);
@@ -363,7 +363,6 @@ export class TaxAndCashDashboard {
363
363
  const props = isDemo()
364
364
  ? useDemoTaxAndCashDashboard(this)
365
365
  : useTaxAndCashDashboard(this);
366
- console.log({ stateController: this.stateController });
367
366
  return (h(Host, null,
368
367
  h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
369
368
  payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
@@ -1890,7 +1889,7 @@ export class TaxAndCashDashboard {
1890
1889
  "text": undefined,
1891
1890
  "name": "undocumented"
1892
1891
  }, {
1893
- "text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"uiGroup\": \"Dashboard Properties\" }",
1892
+ "text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] \"uiGroup\": \"Dashboard Properties\" }",
1894
1893
  "name": "componentState"
1895
1894
  }],
1896
1895
  "text": ""
@@ -1902,51 +1901,47 @@ export class TaxAndCashDashboard {
1902
1901
  }; }
1903
1902
  }
1904
1903
  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 });
1910
- // @ts-ignore
1911
- return deepmerge({
1912
- states: {
1913
- dateSubmitted: "today",
1914
- documentType: "W9",
1915
- documentTypeString: "W-9",
1916
- status: "ACTIVE",
1917
- country: "United States",
1918
- indirectTaxNumber: "55555555",
1919
- indirectTaxType: "Indirect Tax",
1920
- noFormNeeded: false,
1921
- disabled: false,
1922
- loading: false,
1923
- showNewFormDialog: false,
1924
- hasHold: false,
1925
- subRegion: "CA",
1926
- subRegionTaxNumber: undefined,
1927
- qstNumber: undefined,
1928
- isBusinessEntity: false,
1929
- province: undefined,
1930
- notRegistered: true,
1931
- loadingError: false,
1932
- payoutStatus: "DONE",
1933
- veriffLoading: false,
1934
- canEditPayoutInfo: true,
1935
- },
1936
- callbacks: {
1937
- onClick: () => console.debug("check step"),
1938
- onEditPayoutInfo: () => console.debug("payout info"),
1939
- onNewFormCancel: () => console.log("hide"),
1940
- onNewFormClick: () => console.log("show"),
1941
- onVerifyClick: () => console.log("verify"),
1942
- },
1943
- text: props.getTextProps(),
1944
- slots: {
1945
- payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
1946
- states: {
1947
- badgeStatus: "nextPayout",
1948
- },
1949
- } })),
1950
- },
1951
- }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
1904
+ const parsed = parseStates(props.stateController);
1905
+ const formatted = Object.keys(parsed).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
1906
+ ? { ...prev, ...parsed[key] }
1907
+ : { ...prev, [`${key}_stateController`]: parsed[key] }, {});
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
+ },
1943
+ props.demoData || {},
1944
+ formatted,
1945
+ ], { arrayMerge: (_, a) => a });
1946
+ return merged;
1952
1947
  }
@@ -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" } }, "uiGroup": "Dashboard Properties" }
4665
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] "uiGroup": "Dashboard Properties" }
4666
4666
  */
4667
4667
  this.stateController = "{}";
4668
4668
  h$1(this);
@@ -4684,60 +4684,55 @@ const TaxAndCashDashboard = class {
4684
4684
  const props = isDemo()
4685
4685
  ? useDemoTaxAndCashDashboard(this)
4686
4686
  : useTaxAndCashDashboard(this);
4687
- console.log({ stateController: this.stateController });
4688
4687
  return (h(Host, null, h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
4689
4688
  payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
4690
4689
  } })));
4691
4690
  }
4692
4691
  };
4693
4692
  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 });
4699
- // @ts-ignore
4700
- return cjs({
4701
- states: {
4702
- dateSubmitted: "today",
4703
- documentType: "W9",
4704
- documentTypeString: "W-9",
4705
- status: "ACTIVE",
4706
- country: "United States",
4707
- indirectTaxNumber: "55555555",
4708
- indirectTaxType: "Indirect Tax",
4709
- noFormNeeded: false,
4710
- disabled: false,
4711
- loading: false,
4712
- showNewFormDialog: false,
4713
- hasHold: false,
4714
- subRegion: "CA",
4715
- subRegionTaxNumber: undefined,
4716
- qstNumber: undefined,
4717
- isBusinessEntity: false,
4718
- province: undefined,
4719
- notRegistered: true,
4720
- loadingError: false,
4721
- payoutStatus: "DONE",
4722
- veriffLoading: false,
4723
- canEditPayoutInfo: true,
4724
- },
4725
- callbacks: {
4726
- onClick: () => console.debug("check step"),
4727
- onEditPayoutInfo: () => console.debug("payout info"),
4728
- onNewFormCancel: () => console.log("hide"),
4729
- onNewFormClick: () => console.log("show"),
4730
- onVerifyClick: () => console.log("verify"),
4731
- },
4732
- text: props.getTextProps(),
4733
- slots: {
4734
- payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
4735
- states: {
4736
- badgeStatus: "nextPayout",
4737
- },
4738
- } })),
4693
+ const parsed = parseStates(props.stateController);
4694
+ const formatted = Object.keys(parsed).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
4695
+ ? { ...prev, ...parsed[key] }
4696
+ : { ...prev, [`${key}_stateController`]: parsed[key] }, {});
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(),
4739
4731
  },
4740
- }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
4732
+ props.demoData || {},
4733
+ formatted,
4734
+ ], { arrayMerge: (_, a) => a });
4735
+ return merged;
4741
4736
  }
4742
4737
 
4743
4738
  const PHONE_EXTENSIONS = {
@@ -3202,6 +3202,7 @@ const PayoutStatusAlert = class {
3202
3202
  }
3203
3203
  };
3204
3204
  function useDemoPayoutStatusAlert(props) {
3205
+ console.log(props.stateController, "stateController in sqm-payout-status-alert");
3205
3206
  const states = parseStates(props.stateController);
3206
3207
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3207
3208
  ? { ...prev, ...states[key] }