@saasquatch/mint-components 2.4.2 → 2.4.4

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.
Files changed (88) hide show
  1. package/dist/cjs/{GenericTableView-be5648e4.js → GenericTableView-4c48c630.js} +46 -6
  2. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +18 -14
  3. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +14 -14
  4. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +2 -2
  5. package/dist/cjs/{sqm-partner-info-modal-view-431100ad.js → sqm-partner-info-modal-view-d9b61d54.js} +1 -1
  6. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +9 -5
  7. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +9 -5
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +3 -3
  9. package/dist/cjs/{sqm-user-info-form-view-c5f9b79b.js → sqm-user-info-form-view-ec41191c.js} +20 -20
  10. package/dist/cjs/{useReferralTable-6e9de0d5.js → useReferralTable-06887d9a.js} +10 -0
  11. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +8 -3
  12. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +1 -1
  13. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +8 -3
  14. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +8 -3
  15. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +1 -1
  16. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
  17. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +2 -2
  18. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +4 -4
  19. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +13 -13
  20. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +1 -1
  21. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +17 -17
  22. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +3 -3
  23. package/dist/collection/tables/GenericTableView.js +46 -6
  24. package/dist/collection/tables/plopTargets.js +8 -0
  25. package/dist/esm/{GenericTableView-8c72ac30.js → GenericTableView-471a9386.js} +46 -6
  26. package/dist/esm/sqm-banking-info-form_10.entry.js +18 -14
  27. package/dist/esm/sqm-big-stat_47.entry.js +14 -14
  28. package/dist/esm/sqm-email-verification_2.entry.js +2 -2
  29. package/dist/esm/{sqm-partner-info-modal-view-34d4be5b.js → sqm-partner-info-modal-view-b921fed1.js} +1 -1
  30. package/dist/esm/sqm-referral-table_11.entry.js +9 -5
  31. package/dist/esm/sqm-rewards-table_9.entry.js +9 -5
  32. package/dist/esm/sqm-stencilbook.entry.js +3 -3
  33. package/dist/esm/{sqm-user-info-form-view-ceb3917a.js → sqm-user-info-form-view-b43a1729.js} +20 -20
  34. package/dist/esm/{useReferralTable-03d32c6f.js → useReferralTable-3aa4b527.js} +10 -1
  35. package/dist/esm-es5/GenericTableView-471a9386.js +1 -0
  36. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  37. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  38. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  39. package/dist/esm-es5/sqm-partner-info-modal-view-b921fed1.js +1 -0
  40. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  41. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  42. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  43. package/dist/esm-es5/sqm-user-info-form-view-b43a1729.js +1 -0
  44. package/dist/esm-es5/useReferralTable-3aa4b527.js +1 -0
  45. package/dist/mint-components/mint-components.esm.js +1 -1
  46. package/dist/mint-components/{p-3784c92c.system.entry.js → p-0a0d8788.system.entry.js} +1 -1
  47. package/dist/mint-components/p-13379201.system.entry.js +1 -0
  48. package/dist/mint-components/{p-2e33148c.entry.js → p-26126144.entry.js} +1 -1
  49. package/dist/mint-components/p-3090d391.system.js +1 -0
  50. package/dist/mint-components/p-361e8a80.entry.js +1 -0
  51. package/dist/mint-components/p-381af581.js +1 -0
  52. package/dist/mint-components/{p-05466678.entry.js → p-484817ed.entry.js} +2 -2
  53. package/dist/mint-components/{p-2a2332a6.entry.js → p-4fd803e7.entry.js} +8 -8
  54. package/dist/mint-components/p-54c03a3e.entry.js +148 -0
  55. package/dist/mint-components/p-700d8950.system.js +1 -0
  56. package/dist/mint-components/{p-7468e5b8.entry.js → p-83099738.entry.js} +2 -2
  57. package/dist/mint-components/{p-bb0b5e4b.js → p-9944b514.js} +4 -4
  58. package/dist/mint-components/p-abf7c765.system.entry.js +1 -0
  59. package/dist/mint-components/p-ae19027d.js +1 -0
  60. package/dist/mint-components/p-b69dbed8.system.js +1 -0
  61. package/dist/mint-components/p-bfb00685.system.js +1 -1
  62. package/dist/mint-components/p-d870d624.system.entry.js +1 -0
  63. package/dist/mint-components/p-db73312a.system.js +1 -0
  64. package/dist/mint-components/p-e8aaf90f.system.entry.js +1 -0
  65. package/dist/mint-components/p-ef695105.system.entry.js +1 -0
  66. package/dist/mint-components/p-f75ead20.js +1 -0
  67. package/dist/types/tables/GenericTableView.d.ts +2 -0
  68. package/dist/types/tables/plopTargets.d.ts +3 -0
  69. package/docs/docs.docx +0 -0
  70. package/package.json +1 -1
  71. package/dist/esm-es5/GenericTableView-8c72ac30.js +0 -1
  72. package/dist/esm-es5/sqm-partner-info-modal-view-34d4be5b.js +0 -1
  73. package/dist/esm-es5/sqm-user-info-form-view-ceb3917a.js +0 -1
  74. package/dist/esm-es5/useReferralTable-03d32c6f.js +0 -1
  75. package/dist/mint-components/p-241e7226.system.entry.js +0 -1
  76. package/dist/mint-components/p-6c31a79b.system.entry.js +0 -1
  77. package/dist/mint-components/p-765e3379.js +0 -1
  78. package/dist/mint-components/p-7c657e1f.entry.js +0 -1
  79. package/dist/mint-components/p-933bae53.system.entry.js +0 -1
  80. package/dist/mint-components/p-93f1e26a.system.entry.js +0 -1
  81. package/dist/mint-components/p-ad90628d.system.js +0 -1
  82. package/dist/mint-components/p-aef2db59.system.js +0 -1
  83. package/dist/mint-components/p-b1eb2a6a.js +0 -1
  84. package/dist/mint-components/p-c36fedea.js +0 -1
  85. package/dist/mint-components/p-d284ae70.system.js +0 -1
  86. package/dist/mint-components/p-d5eb601d.system.js +0 -1
  87. package/dist/mint-components/p-e2fb11af.entry.js +0 -148
  88. package/dist/mint-components/p-f7218609.system.entry.js +0 -1
@@ -6,6 +6,15 @@ const index_module = require('./index.module-f8c8495f.js');
6
6
  const reRender = require('./re-render-72a0ef45.js');
7
7
  const useChildElements = require('./useChildElements-041127d7.js');
8
8
 
9
+ const PLOP_TARGET_TAG = "RAISINS-PLOP-TARGET";
10
+ function isPlopTarget(element) {
11
+ return element.tagName === PLOP_TARGET_TAG;
12
+ }
13
+ /** Indexes of the column components the widget editor injected as drop zones. */
14
+ function dropZoneColumnIndexes(columnComponents) {
15
+ return columnComponents.reduce((indexes, component, idx) => isPlopTarget(component) ? [...indexes, idx] : indexes, []);
16
+ }
17
+
9
18
  const debug = domContextHooks_module.browser("sq:useReferralTable");
10
19
  const CSS_NAMESPACE = "sqm-referral-table";
11
20
  const GET_REFERRER_DATA = index_module.dist.gql `
@@ -427,6 +436,7 @@ async function tryMethod(c, callback) {
427
436
  }
428
437
  }
429
438
 
439
+ exports.dropZoneColumnIndexes = dropZoneColumnIndexes;
430
440
  exports.generateUserError = generateUserError;
431
441
  exports.tryMethod = tryMethod;
432
442
  exports.useReferralTable = useReferralTable;
@@ -5,6 +5,7 @@ import { Component, h, Prop } from "@stencil/core";
5
5
  import deepmerge from "deepmerge";
6
6
  import { GenericTableView, } from "../../tables/GenericTableView";
7
7
  import { useRequestRerender, useRerenderListener, } from "../../tables/re-render";
8
+ import { dropZoneColumnIndexes } from "../../tables/plopTargets";
8
9
  import { useChildElements } from "../../tables/useChildElements";
9
10
  import mockInvoiceData from "./mockInvoiceData";
10
11
  import { InvoiceTableView } from "./sqm-invoice-table-view";
@@ -422,7 +423,12 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
422
423
  setContent({ rows });
423
424
  const columns = columnsPromise && (await Promise.all(columnsPromise));
424
425
  // Set the content to render and finish loading components
425
- setContent({ columns, loading: false, page: 0 });
426
+ setContent({
427
+ columns,
428
+ dropZoneColumns: dropZoneColumnIndexes(columnComponents),
429
+ loading: false,
430
+ page: 0,
431
+ });
426
432
  }
427
433
  useEffect(() => {
428
434
  setContent({ loading: true });
@@ -451,8 +457,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
451
457
  smBreakpoint: 599,
452
458
  },
453
459
  elements: {
454
- columns: content.columns,
455
- rows: content.rows,
460
+ ...content,
456
461
  emptyElement,
457
462
  loadingElement,
458
463
  },
@@ -85,7 +85,7 @@ export function PartnerInfoModalContentView(props) {
85
85
  id: "supportDescriptionExistingPartner",
86
86
  defaultMessage: text.supportDescriptionExistingPartner,
87
87
  }, {
88
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
88
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
89
89
  });
90
90
  const description = states.isExistingPartner ? (h("span", { class: sheet.classes.DescriptionContainer },
91
91
  h("p", null, text.descriptionExistingPartner),
@@ -5,6 +5,7 @@ import { Component, h, Prop } from "@stencil/core";
5
5
  import deepmerge from "deepmerge";
6
6
  import { GenericTableView, } from "../../tables/GenericTableView";
7
7
  import { useRequestRerender, useRerenderListener, } from "../../tables/re-render";
8
+ import { dropZoneColumnIndexes } from "../../tables/plopTargets";
8
9
  import { useChildElements } from "../../tables/useChildElements";
9
10
  import mockReferralData from "./mockReferralData";
10
11
  import { tryMethod, useReferralTable } from "./useReferralTable";
@@ -380,7 +381,12 @@ function useReferralTableDemo(props, emptyElement, loadingElement) {
380
381
  setContent({ rows });
381
382
  const columns = columnsPromise && (await Promise.all(columnsPromise));
382
383
  // Set the content to render and finish loading components
383
- setContent({ columns, loading: false, page: 0 });
384
+ setContent({
385
+ columns,
386
+ dropZoneColumns: dropZoneColumnIndexes(columnComponents),
387
+ loading: false,
388
+ page: 0,
389
+ });
384
390
  }
385
391
  useEffect(() => {
386
392
  setContent({ loading: true });
@@ -409,8 +415,7 @@ function useReferralTableDemo(props, emptyElement, loadingElement) {
409
415
  smBreakpoint: 599,
410
416
  },
411
417
  elements: {
412
- columns: content.columns,
413
- rows: content.rows,
418
+ ...content,
414
419
  emptyElement,
415
420
  loadingElement,
416
421
  },
@@ -5,6 +5,7 @@ import { Component, h, Prop } from "@stencil/core";
5
5
  import deepmerge from "deepmerge";
6
6
  import { GenericTableView, } from "../../tables/GenericTableView";
7
7
  import { useRequestRerender, useRerenderListener, } from "../../tables/re-render";
8
+ import { dropZoneColumnIndexes } from "../../tables/plopTargets";
8
9
  import { useChildElements } from "../../tables/useChildElements";
9
10
  import mockRewardData from "./mockRewardData";
10
11
  import { tryMethod, useRewardsTable } from "./useRewardsTable";
@@ -325,7 +326,12 @@ function useRewardsTableDemo(props, emptyElement, loadingElement) {
325
326
  setContent({ rows });
326
327
  const columns = columnsPromise && (await Promise.all(columnsPromise));
327
328
  // Set the content to render and finish loading components
328
- setContent({ columns, loading: false, page: 0 });
329
+ setContent({
330
+ columns,
331
+ dropZoneColumns: dropZoneColumnIndexes(columnComponents),
332
+ loading: false,
333
+ page: 0,
334
+ });
329
335
  }
330
336
  useEffect(() => {
331
337
  setContent({ loading: true });
@@ -353,8 +359,7 @@ function useRewardsTableDemo(props, emptyElement, loadingElement) {
353
359
  smBreakpoint: 599,
354
360
  },
355
361
  elements: {
356
- columns: content.columns,
357
- rows: content.rows,
362
+ ...content,
358
363
  emptyElement,
359
364
  loadingElement,
360
365
  },
@@ -204,7 +204,7 @@ export function WidgetEmailVerificationView(props) {
204
204
  id: "sendCodeErrorDescription",
205
205
  defaultMessage: text.sendCodeErrorDescription,
206
206
  }, {
207
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
207
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
208
208
  }))),
209
209
  states.initialLoading ? (renderLoadingSkeleton()) : (h("div", { class: sheet.classes.Wrapper },
210
210
  h(TextSpanView, { type: "p" }, text.verifyEmailHeaderText),
@@ -212,7 +212,7 @@ export const BankingInfoFormView = (props) => {
212
212
  id: "generalDescription",
213
213
  defaultMessage: text.error.generalDescription,
214
214
  }, {
215
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
215
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
216
216
  }))),
217
217
  states.isPartner && !states.hideSteps && (h("sqm-form-message", { type: "info" },
218
218
  h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
@@ -220,7 +220,7 @@ export const BankingInfoFormView = (props) => {
220
220
  id: "isPartnerAlertDescription",
221
221
  defaultMessage: text.isPartnerAlertDescription,
222
222
  }, {
223
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
223
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
224
224
  }))),
225
225
  h("div", null,
226
226
  h("h4", null, text.paymentMethod),
@@ -149,7 +149,7 @@ export const DocusignFormView = (props) => {
149
149
  id: "loadingErrorAlertDescription",
150
150
  defaultMessage: text.error.loadingErrorAlertDescription,
151
151
  }, {
152
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
152
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
153
153
  })))),
154
154
  ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
155
155
  h("p", { part: "alert-title" }, text.error.generalTitle),
@@ -157,7 +157,7 @@ export const DocusignFormView = (props) => {
157
157
  id: "generalDescription",
158
158
  defaultMessage: text.error.generalDescription,
159
159
  }, {
160
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
160
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
161
161
  }))),
162
162
  h("div", null,
163
163
  h("div", null,
@@ -147,7 +147,7 @@ export const IndirectTaxFormView = (props) => {
147
147
  id: "loadingErrorAlertDescription",
148
148
  defaultMessage: text.error.loadingErrorAlertDescription,
149
149
  }, {
150
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
150
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
151
151
  })))),
152
152
  ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
153
153
  h("p", { part: "alert-title" }, text.error.generalTitle),
@@ -155,7 +155,7 @@ export const IndirectTaxFormView = (props) => {
155
155
  id: "generalDescription",
156
156
  defaultMessage: text.error.generalDescription,
157
157
  }, {
158
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
158
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
159
159
  }))),
160
160
  states.isPartnerLegacy && (h("sqm-form-message", { loading: states.loading, type: "info" },
161
161
  h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
@@ -163,7 +163,7 @@ export const IndirectTaxFormView = (props) => {
163
163
  id: "isPartnerAlertDescription",
164
164
  defaultMessage: text.isPartnerAlertDescription,
165
165
  }, {
166
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
166
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
167
167
  }))),
168
168
  h("div", null,
169
169
  h("h4", null, text.indirectTaxDetails))),
@@ -183,7 +183,7 @@ export const IndirectTaxFormView = (props) => {
183
183
  id: "cannotChangeInfoAlert",
184
184
  defaultMessage: text.cannotChangeInfoAlert,
185
185
  }, {
186
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
186
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
187
187
  })),
188
188
  h("div", { class: classes.BtnContainer },
189
189
  h("sl-button", { class: classes.PrimaryButton, type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
@@ -65,7 +65,7 @@ export function PayoutStatusAlertView(props) {
65
65
  id: "verificationRequiredDescription",
66
66
  defaultMessage: text.verificationRequiredDescription,
67
67
  }, {
68
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
68
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
69
69
  }),
70
70
  buttonText: text.verificationRequiredButtonText,
71
71
  alertType: "warning",
@@ -77,7 +77,7 @@ export function PayoutStatusAlertView(props) {
77
77
  id: "verificationRequiredInternalDescription",
78
78
  defaultMessage: text.verificationRequiredInternalDescription,
79
79
  }, {
80
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
80
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
81
81
  }),
82
82
  alertType: "warning",
83
83
  };
@@ -88,7 +88,7 @@ export function PayoutStatusAlertView(props) {
88
88
  id: "verificationReviewInternalDescription",
89
89
  defaultMessage: text.verificationReviewInternalDescription,
90
90
  }, {
91
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
91
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
92
92
  }),
93
93
  alertType: "warning",
94
94
  };
@@ -99,7 +99,7 @@ export function PayoutStatusAlertView(props) {
99
99
  id: "verificationFailedInternalDescription",
100
100
  defaultMessage: text.verificationFailedInternalDescription,
101
101
  }, {
102
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
102
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
103
103
  }),
104
104
  alertType: "error",
105
105
  };
@@ -125,7 +125,7 @@ export function PayoutStatusAlertView(props) {
125
125
  id: "holdDescription",
126
126
  defaultMessage: text.holdDescription,
127
127
  }, {
128
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
128
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
129
129
  }),
130
130
  buttonText: null,
131
131
  alertType: "warning",
@@ -139,7 +139,7 @@ export function PayoutStatusAlertView(props) {
139
139
  id: "accountReviewDescription",
140
140
  defaultMessage: text.accountReviewDescription,
141
141
  }, {
142
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
142
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
143
143
  }),
144
144
  buttonText: null,
145
145
  alertType: "warning",
@@ -152,7 +152,7 @@ export function PayoutStatusAlertView(props) {
152
152
  id: "accountReviewDescription",
153
153
  defaultMessage: text.paymentHoldOnChangeDescription,
154
154
  }, {
155
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
155
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
156
156
  }),
157
157
  buttonText: null,
158
158
  alertType: "warning",
@@ -165,7 +165,7 @@ export function PayoutStatusAlertView(props) {
165
165
  id: "accountReviewDescription",
166
166
  defaultMessage: text.beneficiaryNameInvalidDescription,
167
167
  }, {
168
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
168
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
169
169
  }),
170
170
  button: (h("div", { class: sheet.classes.ButtonContainer },
171
171
  h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
@@ -180,7 +180,7 @@ export function PayoutStatusAlertView(props) {
180
180
  id: "accountReviewDescription",
181
181
  defaultMessage: text.beneficiaryNameMismatchDescription,
182
182
  }, {
183
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
183
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
184
184
  }),
185
185
  button: (h("div", { class: sheet.classes.ButtonContainer },
186
186
  h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
@@ -195,7 +195,7 @@ export function PayoutStatusAlertView(props) {
195
195
  id: "accountReviewDescription",
196
196
  defaultMessage: text.bankTaxNameMismatchDescription,
197
197
  }, {
198
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
198
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
199
199
  }),
200
200
  button: (h("div", { class: sheet.classes.ButtonContainer },
201
201
  h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
@@ -210,7 +210,7 @@ export function PayoutStatusAlertView(props) {
210
210
  id: "accountReviewDescription",
211
211
  defaultMessage: text.withdrawalSettingsInvalidDescription,
212
212
  }, {
213
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
213
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
214
214
  }),
215
215
  button: (h("div", { class: sheet.classes.ButtonContainer },
216
216
  h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
@@ -224,7 +224,7 @@ export function PayoutStatusAlertView(props) {
224
224
  id: "accountReviewDescription",
225
225
  defaultMessage: text.paymentReturnedDescription,
226
226
  }, {
227
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
227
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
228
228
  }),
229
229
  button: (h("div", { class: sheet.classes.ButtonContainer },
230
230
  h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
@@ -238,7 +238,7 @@ export function PayoutStatusAlertView(props) {
238
238
  id: "holdDescription",
239
239
  defaultMessage: text.holdDescription,
240
240
  }, {
241
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
241
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
242
242
  }),
243
243
  buttonText: null,
244
244
  alertType: "warning",
@@ -1183,7 +1183,7 @@ export class TaxAndCashMonolith {
1183
1183
  id: "loadingErrorAlertDescription",
1184
1184
  defaultMessage: this.loadingErrorAlertDescription,
1185
1185
  }, {
1186
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, this.supportLink)),
1186
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, this.supportLink)),
1187
1187
  }) }));
1188
1188
  }
1189
1189
  return h(LoadingView, null);
@@ -298,7 +298,7 @@ export const TaxAndCashDashboardView = (props) => {
298
298
  id: "payoutHoldAlertDescription",
299
299
  defaultMessage: text.payoutHoldAlertDescription,
300
300
  }, {
301
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
301
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
302
302
  }),
303
303
  buttonText: null,
304
304
  alertType: "warning",
@@ -313,7 +313,7 @@ export const TaxAndCashDashboardView = (props) => {
313
313
  id: "verificationRequiredDescription",
314
314
  defaultMessage: text.verificationRequiredDescription,
315
315
  }, {
316
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
316
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
317
317
  }),
318
318
  buttonText: text.verificationRequiredButtonText,
319
319
  alertType: "warning",
@@ -327,7 +327,7 @@ export const TaxAndCashDashboardView = (props) => {
327
327
  id: "verificationRequiredInternalDescription",
328
328
  defaultMessage: text.verificationRequiredInternalDescription,
329
329
  }, {
330
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
330
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
331
331
  }),
332
332
  alertType: "warning",
333
333
  icon: "exclamation-triangle",
@@ -340,7 +340,7 @@ export const TaxAndCashDashboardView = (props) => {
340
340
  id: "verificationReviewInternalDescription",
341
341
  defaultMessage: text.verificationReviewInternalDescription,
342
342
  }, {
343
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
343
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
344
344
  }),
345
345
  alertType: "warning",
346
346
  icon: "exclamation-triangle",
@@ -353,7 +353,7 @@ export const TaxAndCashDashboardView = (props) => {
353
353
  id: "verificationFailedInternalDescription",
354
354
  defaultMessage: text.verificationFailedInternalDescription,
355
355
  }, {
356
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
356
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
357
357
  }),
358
358
  alertType: "error",
359
359
  icon: "exclamation-octagon",
@@ -366,7 +366,7 @@ export const TaxAndCashDashboardView = (props) => {
366
366
  id: "accountReviewDescription",
367
367
  defaultMessage: text.accountReviewDescription,
368
368
  }, {
369
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
369
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
370
370
  }),
371
371
  buttonText: null,
372
372
  alertType: "warning",
@@ -380,7 +380,7 @@ export const TaxAndCashDashboardView = (props) => {
380
380
  id: "accountReviewDescription",
381
381
  defaultMessage: text.paymentHoldOnChangeDescription,
382
382
  }, {
383
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
383
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
384
384
  }),
385
385
  buttonText: null,
386
386
  alertType: "warning",
@@ -394,7 +394,7 @@ export const TaxAndCashDashboardView = (props) => {
394
394
  id: "accountReviewDescription",
395
395
  defaultMessage: text.beneficiaryNameInvalidDescription,
396
396
  }, {
397
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
397
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
398
398
  }),
399
399
  button: (h("div", { class: sheet.classes.ButtonContainer },
400
400
  h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
@@ -410,7 +410,7 @@ export const TaxAndCashDashboardView = (props) => {
410
410
  id: "accountReviewDescription",
411
411
  defaultMessage: text.beneficiaryNameMismatchDescription,
412
412
  }, {
413
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
413
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
414
414
  }),
415
415
  button: (h("div", { class: sheet.classes.ButtonContainer },
416
416
  h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
@@ -426,7 +426,7 @@ export const TaxAndCashDashboardView = (props) => {
426
426
  id: "accountReviewDescription",
427
427
  defaultMessage: text.bankTaxNameMismatchDescription,
428
428
  }, {
429
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
429
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
430
430
  }),
431
431
  button: (h("div", { class: sheet.classes.ButtonContainer },
432
432
  h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
@@ -442,7 +442,7 @@ export const TaxAndCashDashboardView = (props) => {
442
442
  id: "accountReviewDescription",
443
443
  defaultMessage: text.withdrawalSettingsInvalidDescription,
444
444
  }, {
445
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
445
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
446
446
  }),
447
447
  button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
448
448
  alertType: "warning",
@@ -456,7 +456,7 @@ export const TaxAndCashDashboardView = (props) => {
456
456
  id: "accountReviewDescription",
457
457
  defaultMessage: text.paymentReturnedDescription,
458
458
  }, {
459
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
459
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
460
460
  }),
461
461
  button: (h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
462
462
  alertType: "error",
@@ -470,7 +470,7 @@ export const TaxAndCashDashboardView = (props) => {
470
470
  id: "payoutHoldAlertDescription",
471
471
  defaultMessage: text.payoutHoldAlertDescription,
472
472
  }, {
473
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
473
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
474
474
  }),
475
475
  buttonText: null,
476
476
  alertType: "warning",
@@ -604,7 +604,7 @@ export const TaxAndCashDashboardView = (props) => {
604
604
  id: "loadingErrorAlertDescription",
605
605
  defaultMessage: text.error.loadingErrorAlertDescription,
606
606
  }, {
607
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
607
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
608
608
  })))),
609
609
  ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.ErrorAlertContainer },
610
610
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
@@ -614,7 +614,7 @@ export const TaxAndCashDashboardView = (props) => {
614
614
  id: "generalDescription",
615
615
  defaultMessage: text.error.generalDescription,
616
616
  }, {
617
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
617
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
618
618
  }))),
619
619
  alertInfo && (h("sqm-form-message", { loading: states.loading, exportparts: "base: alert-base, icon:alert-icon", type: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class, icon: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon, transparent: true },
620
620
  h("strong", null, alertInfo.header),
@@ -663,14 +663,14 @@ export const TaxAndCashDashboardView = (props) => {
663
663
  id: "indirectTaxTooltipSupport",
664
664
  defaultMessage: text.indirectTaxTooltipSupport,
665
665
  }, {
666
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com`, class: sheet.classes.DropdownLink }, text.supportLink)),
666
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com`, class: sheet.classes.DropdownLink }, text.supportLink)),
667
667
  })))),
668
668
  h("div", { class: sheet.classes.IndirectTaxPreviewDetails },
669
669
  h("span", null, states.notRegistered ? (h("span", { class: sheet.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
670
670
  id: "notRegisteredForTax",
671
671
  defaultMessage: text.notRegisteredForTax,
672
672
  }, {
673
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
673
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
674
674
  }))) : (getIndirectTaxRegisteredIn())),
675
675
  !states.notRegistered && (h("div", { class: sheet.classes.TaxNumberContainer },
676
676
  h("span", null, intl.formatMessage({
@@ -315,7 +315,7 @@ export const UserInfoFormView = (props) => {
315
315
  id: "loadingErrorAlertDescription",
316
316
  defaultMessage: text.error.loadingErrorAlertDescription,
317
317
  }, {
318
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
318
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
319
319
  }))))),
320
320
  states.loading ? (h(LoadingView, null)) : (h("div", null,
321
321
  h("div", { class: classes.TextContainer },
@@ -332,7 +332,7 @@ export const UserInfoFormView = (props) => {
332
332
  id: "generalDescription",
333
333
  defaultMessage: text.error.generalDescription,
334
334
  }, {
335
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
335
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
336
336
  })))),
337
337
  (states.isPartnerLegacy || states.isUserLegacy) && (h("sqm-form-message", { loading: states.loading, type: "info" },
338
338
  h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
@@ -340,7 +340,7 @@ export const UserInfoFormView = (props) => {
340
340
  id: "isPartnerAlertDescription",
341
341
  defaultMessage: text.isPartnerAlertDescription,
342
342
  }, {
343
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
343
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
344
344
  })))),
345
345
  h("div", null,
346
346
  h("div", { class: classes.InputContainer },
@@ -6,6 +6,11 @@ export function GenericTableView(props) {
6
6
  const { columns, rows } = elements;
7
7
  const { show } = states;
8
8
  const hiddenCols = data.hiddenColumns && data.hiddenColumns.split(",").map(Number);
9
+ // Only the producer knows which columns are plop targets; a column can render a
10
+ // VNode label and still be real data (e.g. the invoice download column).
11
+ const dropZones = new Set(elements.dropZoneColumns);
12
+ const hasDropZones = dropZones.size > 0;
13
+ const showLabels = data.textOverrides.showLabels;
9
14
  const mobile = "@media (max-width: " + data.mdBreakpoint + "px)";
10
15
  const tablet = `@media (min-width: ${Boolean(rows.length < 2) ? data.mdBreakpoint : data.smBreakpoint}px) and (max-width: ${data.mdBreakpoint}px)`;
11
16
  // Due to mobile media queries being dependant on props, not feasiable to move out of render function
@@ -26,6 +31,13 @@ export function GenericTableView(props) {
26
31
  fontWeight: "var(--sl-font-weight-semibold)",
27
32
  overflowWrap: "anywhere",
28
33
  },
34
+ "& th.collapsed": {
35
+ fontSize: "0",
36
+ padding: "14px 0",
37
+ },
38
+ "& th.drop-zone": {
39
+ width: "30px",
40
+ },
29
41
  "& td": {
30
42
  padding: "var(--sl-spacing-small)",
31
43
  paddingLeft: "0",
@@ -33,10 +45,35 @@ export function GenericTableView(props) {
33
45
  textOverflow: "ellipsis",
34
46
  },
35
47
  [mobile]: {
48
+ // Body rows become blocks here, so the header has to leave the table layout to stay full width
36
49
  "& thead": {
50
+ display: hasDropZones ? "block" : "none",
51
+ },
52
+ // Columns read top-to-bottom inside a card, so the drop zones between them stack the same way
53
+ "& thead tr": {
54
+ display: "flex",
55
+ flexDirection: "column",
56
+ },
57
+ "& thead th.label": {
58
+ padding: "0",
59
+ lineHeight: "20px",
60
+ fontSize: "var(--sl-font-size-small)",
61
+ color: "var(--sl-color-neutral-500)",
62
+ },
63
+ "& thead th.drop-zone": {
64
+ width: "auto",
65
+ padding: "14px 0",
66
+ lineHeight: "0",
67
+ position: "relative",
68
+ },
69
+ // The plop target is inline-styled position:absolute, so it needs the cell as its containing block to span it
70
+ "& thead th.drop-zone slot::slotted(raisins-plop-target)": {
71
+ width: "100%",
72
+ },
73
+ "& tbody td.drop-zone": {
37
74
  display: "none",
38
75
  },
39
- "& tr": {
76
+ "& tbody tr": {
40
77
  display: "block",
41
78
  background: "inherit",
42
79
  border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
@@ -93,11 +130,11 @@ export function GenericTableView(props) {
93
130
  return (h("div", null,
94
131
  h("style", { type: "text/css" }, styleString),
95
132
  h("table", { class: sheet.classes.Table },
96
- data.textOverrides.showLabels && (h("thead", null,
97
- h("tr", null, columns === null || columns === void 0 ? void 0 : columns.map((column) => {
98
- if (typeof column === "string")
99
- return h("th", null, column);
100
- return h("th", { style: { width: "30px" } }, column);
133
+ (showLabels || hasDropZones) && (h("thead", null,
134
+ h("tr", null, columns === null || columns === void 0 ? void 0 : columns.map((column, i) => {
135
+ if (dropZones.has(i))
136
+ return h("th", { class: "drop-zone" }, column);
137
+ return (h("th", { class: showLabels ? "label" : "collapsed" }, column));
101
138
  })))),
102
139
  h("tbody", null,
103
140
  show === "loading" && elements.loadingElement,
@@ -105,6 +142,9 @@ export function GenericTableView(props) {
105
142
  return (h("tr", { style: {
106
143
  borderTop: `${!data.textOverrides.showLabels && i === 0 ? "none" : ""}`,
107
144
  }, part: "table-row" }, row.map((cell, j) => {
145
+ if (dropZones.has(j))
146
+ return h("td", { class: "drop-zone" }, cell);
147
+ // Only string labels can be echoed into the mobile card's :before
108
148
  return typeof columns[j] === "string" ? (h("td", { class: (hiddenCols === null || hiddenCols === void 0 ? void 0 : hiddenCols.includes(j)) ? "hidden" : "", "data-label": columns[j] + ":", style: {
109
149
  gridTemplateColumns: (hiddenCols === null || hiddenCols === void 0 ? void 0 : hiddenCols.includes(j)) ? "1fr"
110
150
  : "0.5fr 0.5fr",
@@ -0,0 +1,8 @@
1
+ const PLOP_TARGET_TAG = "RAISINS-PLOP-TARGET";
2
+ export function isPlopTarget(element) {
3
+ return element.tagName === PLOP_TARGET_TAG;
4
+ }
5
+ /** Indexes of the column components the widget editor injected as drop zones. */
6
+ export function dropZoneColumnIndexes(columnComponents) {
7
+ return columnComponents.reduce((indexes, component, idx) => isPlopTarget(component) ? [...indexes, idx] : indexes, []);
8
+ }