@saasquatch/mint-components 1.15.0-45 → 1.15.0-47

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 (161) hide show
  1. package/dist/cjs/{IndirectTaxDetailsView-81f1ce92.js → IndirectTaxDetailsView-4c0acb81.js} +2 -2
  2. package/dist/cjs/{ShadowViewAddon-bebbd4d0.js → ShadowViewAddon-299060ce.js} +1 -1
  3. package/dist/cjs/{global-242743b1.js → global-efecb6c8.js} +2 -2
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mint-components.cjs.js +2 -2
  6. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +23 -23
  7. package/dist/cjs/sqm-big-stat_42.cjs.entry.js +142 -164
  8. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  9. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  13. package/dist/cjs/{sqm-portal-email-verification-view-38bfdda4.js → sqm-portal-email-verification-view-313a3d62.js} +1 -1
  14. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  15. package/dist/cjs/{sqm-portal-profile-view-036d355e.js → sqm-portal-profile-view-e7faaf7b.js} +1 -1
  16. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  18. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -1
  19. package/dist/cjs/sqm-stencilbook.cjs.entry.js +128 -144
  20. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +2 -2
  21. package/dist/cjs/{utils-a6957c85.js → utils-116d7ec5.js} +1 -1
  22. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +3 -2
  23. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +5 -4
  24. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
  25. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +4 -3
  26. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +3 -2
  27. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +6 -4
  28. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +8 -5
  29. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +8 -5
  30. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +6 -4
  31. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +5 -6
  32. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -6
  33. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +11 -12
  34. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
  35. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -2
  36. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
  37. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -2
  38. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +5 -3
  39. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +4 -3
  40. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
  41. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +1 -1
  42. package/dist/collection/components/sqm-stencilbook/Themes.js +140 -162
  43. package/dist/collection/global/styles.js +2 -2
  44. package/dist/collection/global/styles.ts +1 -1
  45. package/dist/collection/stories/PortalTemplates.stories.js +22 -30
  46. package/dist/esm/{IndirectTaxDetailsView-89731480.js → IndirectTaxDetailsView-7c8fb28e.js} +2 -2
  47. package/dist/esm/{ShadowViewAddon-b439f9c5.js → ShadowViewAddon-fe5ada08.js} +1 -1
  48. package/dist/esm/{global-f33bb903.js → global-28b9c531.js} +2 -2
  49. package/dist/esm/loader.js +2 -2
  50. package/dist/esm/mint-components.js +2 -2
  51. package/dist/esm/sqm-banking-info-form_10.entry.js +23 -23
  52. package/dist/esm/sqm-big-stat_42.entry.js +142 -164
  53. package/dist/esm/sqm-code-verification.entry.js +1 -1
  54. package/dist/esm/sqm-email-verification.entry.js +1 -1
  55. package/dist/esm/sqm-empty_4.entry.js +1 -1
  56. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  57. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  58. package/dist/esm/{sqm-portal-email-verification-view-e8661ca9.js → sqm-portal-email-verification-view-db573324.js} +1 -1
  59. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  60. package/dist/esm/{sqm-portal-profile-view-70e1a345.js → sqm-portal-profile-view-bd3dcf0e.js} +1 -1
  61. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  62. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  63. package/dist/esm/sqm-rewards-table_9.entry.js +2 -1
  64. package/dist/esm/sqm-stencilbook.entry.js +128 -144
  65. package/dist/esm/sqm-tax-and-cash.entry.js +2 -2
  66. package/dist/esm/{utils-79d81bca.js → utils-0dc9e217.js} +1 -1
  67. package/dist/esm-es5/{IndirectTaxDetailsView-89731480.js → IndirectTaxDetailsView-7c8fb28e.js} +1 -1
  68. package/dist/esm-es5/{ShadowViewAddon-b439f9c5.js → ShadowViewAddon-fe5ada08.js} +1 -1
  69. package/dist/esm-es5/{global-f33bb903.js → global-28b9c531.js} +1 -1
  70. package/dist/esm-es5/loader.js +1 -1
  71. package/dist/esm-es5/mint-components.js +1 -1
  72. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  73. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
  74. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  75. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  76. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  77. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  78. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  79. package/dist/esm-es5/{sqm-portal-email-verification-view-e8661ca9.js → sqm-portal-email-verification-view-db573324.js} +1 -1
  80. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  81. package/dist/esm-es5/{sqm-portal-profile-view-70e1a345.js → sqm-portal-profile-view-bd3dcf0e.js} +1 -1
  82. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  83. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  84. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  85. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  86. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
  87. package/dist/esm-es5/{utils-79d81bca.js → utils-0dc9e217.js} +1 -1
  88. package/dist/mint-components/global/styles.ts +1 -1
  89. package/dist/mint-components/mint-components.esm.js +1 -1
  90. package/dist/mint-components/mint-components.js +1 -1
  91. package/dist/mint-components/p-0304f99e.system.js +1 -0
  92. package/dist/mint-components/{p-c7878ec7.system.js → p-06061ea4.system.js} +1 -1
  93. package/dist/mint-components/{p-ee17ee0b.entry.js → p-13485ce6.entry.js} +1 -1
  94. package/dist/mint-components/{p-e228b351.system.js → p-192c1de0.system.js} +1 -1
  95. package/dist/mint-components/{p-6a4582eb.system.entry.js → p-1eaf3ce4.system.entry.js} +1 -1
  96. package/dist/mint-components/{p-5dd09973.system.entry.js → p-1ed6da99.system.entry.js} +1 -1
  97. package/dist/mint-components/{p-b55e454d.entry.js → p-2a056c5e.entry.js} +1 -1
  98. package/dist/mint-components/p-3fbb70c4.system.entry.js +1 -0
  99. package/dist/mint-components/{p-7aef9c53.entry.js → p-454b0d9a.entry.js} +19 -19
  100. package/dist/mint-components/{p-28e4b275.system.entry.js → p-489acd82.system.entry.js} +1 -1
  101. package/dist/mint-components/{p-a348f9b9.js → p-4abb01c8.js} +1 -1
  102. package/dist/mint-components/{p-2d730bef.system.entry.js → p-4c2252a4.system.entry.js} +1 -1
  103. package/dist/mint-components/{p-7274fe6e.js → p-505977d4.js} +1 -1
  104. package/dist/mint-components/p-5088a459.system.entry.js +1 -0
  105. package/dist/mint-components/{p-0768fe1d.system.js → p-661b264a.system.js} +1 -1
  106. package/dist/mint-components/{p-7cbbca72.entry.js → p-687b5dcb.entry.js} +1 -1
  107. package/dist/mint-components/{p-6f323a9f.entry.js → p-6b528b15.entry.js} +1 -1
  108. package/dist/mint-components/{p-44435060.entry.js → p-7c07d7cd.entry.js} +1 -1
  109. package/dist/mint-components/{p-6d23f01a.entry.js → p-80ee389c.entry.js} +2 -2
  110. package/dist/mint-components/{p-c2e3f0f0.entry.js → p-8f55e46e.entry.js} +1 -1
  111. package/dist/mint-components/{p-95ff58b2.system.entry.js → p-907f6cd2.system.entry.js} +1 -1
  112. package/dist/mint-components/{p-9d48280a.js → p-9b4c25cb.js} +1 -1
  113. package/dist/mint-components/p-9df8a483.entry.js +9 -0
  114. package/dist/mint-components/{p-5a48bf9d.system.js → p-aba19648.system.js} +1 -1
  115. package/dist/mint-components/{p-c25b0ff4.js → p-b5ad3804.js} +1 -1
  116. package/dist/mint-components/{p-901358ee.system.entry.js → p-b6d4f014.system.entry.js} +1 -1
  117. package/dist/mint-components/{p-a86635aa.system.entry.js → p-b7e6d975.system.entry.js} +1 -1
  118. package/dist/mint-components/{p-4cfd562e.system.entry.js → p-c6c10a57.system.entry.js} +1 -1
  119. package/dist/mint-components/{p-ae0636bb.system.js → p-cf9ff8bd.system.js} +1 -1
  120. package/dist/mint-components/{p-fba00613.entry.js → p-d4c1480f.entry.js} +1 -1
  121. package/dist/mint-components/{p-1f8d3b1a.entry.js → p-dc9639c9.entry.js} +2 -2
  122. package/dist/mint-components/{p-227aa136.entry.js → p-de5f6446.entry.js} +1 -1
  123. package/dist/mint-components/{p-10849094.system.js → p-e05bd4f8.system.js} +1 -1
  124. package/dist/mint-components/{p-7813a75a.js → p-e76767f4.js} +1 -1
  125. package/dist/mint-components/{p-283848df.system.entry.js → p-e93bbfed.system.entry.js} +1 -1
  126. package/dist/mint-components/{p-3bdccbc9.system.entry.js → p-f4f0151b.system.entry.js} +1 -1
  127. package/dist/mint-components/{p-24d6cfcd.js → p-f67e3d90.js} +1 -1
  128. package/dist/mint-components/{p-e8422f7b.entry.js → p-fae6223c.entry.js} +1 -1
  129. package/dist/mint-components/{p-538fe844.system.entry.js → p-fecc18f3.system.entry.js} +1 -1
  130. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +21 -0
  131. package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +61 -0
  132. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +8 -0
  133. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +17 -0
  134. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +44 -0
  135. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +72 -0
  136. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +44 -0
  137. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +32 -0
  138. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +9 -0
  139. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +12 -0
  140. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +25 -0
  141. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +32 -0
  142. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +21 -0
  143. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +33 -0
  144. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +51 -0
  145. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +105 -0
  146. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +49 -0
  147. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
  148. package/dist/types/components/sqm-stencilbook/Themes.d.ts +17 -0
  149. package/dist/types/components.d.ts +16 -16
  150. package/dist/types/global/android.d.ts +7 -0
  151. package/dist/types/global/demo.d.ts +2 -0
  152. package/dist/types/stories/features.d.ts +4 -0
  153. package/dist/types/stories/templates.d.ts +4 -0
  154. package/docs/docs.docx +0 -0
  155. package/docs/raisins.json +1 -1
  156. package/grapesjs/grapesjs.js +1 -1
  157. package/package.json +1 -1
  158. package/dist/mint-components/p-059ad130.system.entry.js +0 -1
  159. package/dist/mint-components/p-169c8564.system.js +0 -1
  160. package/dist/mint-components/p-9481740a.system.entry.js +0 -1
  161. package/dist/mint-components/p-fd2ee10c.entry.js +0 -9
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a43a63b4.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-62264802.js');
7
- require('./global-242743b1.js');
7
+ require('./global-efecb6c8.js');
8
8
  const index_module = require('./index.module-39955732.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils$1 = require('./utils-6847bc06.js');
11
11
  require('./JSS-8503a151.js');
12
12
  const ErrorView = require('./ErrorView-5504c2b6.js');
13
- const utils = require('./utils-a6957c85.js');
13
+ const utils = require('./utils-116d7ec5.js');
14
14
  const extractProps = require('./extractProps-e9c55ba8.js');
15
15
  const data = require('./data-68a42a7b.js');
16
16
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-a43a63b4.js');
4
- const global = require('./global-242743b1.js');
4
+ const global = require('./global-efecb6c8.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
 
7
7
  const style = {
@@ -68,7 +68,7 @@ export class InvoiceTableDataColumn {
68
68
  static get methods() { return {
69
69
  "renderCell": {
70
70
  "complexType": {
71
- "signature": "(data: any) => Promise<any>",
71
+ "signature": "(data: Invoice) => Promise<any>",
72
72
  "parameters": [{
73
73
  "tags": [],
74
74
  "text": ""
@@ -78,7 +78,8 @@ export class InvoiceTableDataColumn {
78
78
  "location": "global"
79
79
  },
80
80
  "Invoice": {
81
- "location": "global"
81
+ "location": "import",
82
+ "path": "../../../saasquatch"
82
83
  }
83
84
  },
84
85
  "return": "Promise<any>"
@@ -1,3 +1,4 @@
1
+ import { isDemo } from "@saasquatch/component-boilerplate";
1
2
  import { withHooks } from "@saasquatch/stencil-hooks";
2
3
  import { useEffect, useMemo, useReducer } from "@saasquatch/universal-hooks";
3
4
  import { Component, h, Prop } from "@stencil/core";
@@ -5,10 +6,9 @@ import deepmerge from "deepmerge";
5
6
  import { GenericTableView, } from "../../tables/GenericTableView";
6
7
  import { useRequestRerender, useRerenderListener, } from "../../tables/re-render";
7
8
  import { useChildElements } from "../../tables/useChildElements";
8
- import { tryMethod, useInvoiceTable } from "./useInvoiceTable";
9
9
  import mockInvoiceData from "./mockInvoiceData";
10
- import { isDemo } from "@saasquatch/component-boilerplate";
11
10
  import { InvoiceTableView } from "./sqm-invoice-table-view";
11
+ import { tryMethod, useInvoiceTable } from "./useInvoiceTable";
12
12
  /**
13
13
  * @uiName Invoice Table
14
14
  * @exampleGroup Invoices
@@ -321,7 +321,7 @@ export class InvoiceTable {
321
321
  "mutable": false,
322
322
  "complexType": {
323
323
  "original": "DemoData<GenericTableViewProps> & {\n mockData?: { data: Invoice[] };\n }",
324
- "resolved": "Partial<Pick<GenericTableViewProps, \"states\" | \"data\" | \"elements\">> & { mockData?: { data: any[]; }; }",
324
+ "resolved": "Partial<Pick<GenericTableViewProps, \"states\" | \"data\" | \"elements\">> & { mockData?: { data: Invoice[]; }; }",
325
325
  "references": {
326
326
  "DemoData": {
327
327
  "location": "import",
@@ -332,7 +332,8 @@ export class InvoiceTable {
332
332
  "path": "../../tables/GenericTableView"
333
333
  },
334
334
  "Invoice": {
335
- "location": "global"
335
+ "location": "import",
336
+ "path": "../../saasquatch"
336
337
  }
337
338
  }
338
339
  },
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { GenericTableView } from "../../tables/GenericTableView";
3
- import { AvailableNoExpiry, PendingNoUnpend, Redeemed, Denied, PendingReview, PayoutSent, PayoutFailed, PendingNewTaxForm, PendingPartnerCreation, PendingTaxReview, PendingTaxSubmission, PayoutCancelled, } from "./ReferralTableRewardsCell.stories";
4
- import { DateCell, PendingReview as PendingReviewStatus, Pending as PendingStatus, Denied as DeniedStatus, Converted as ConvertedStatus, InProgress, } from "./ReferralTableCell.stories";
3
+ import { Converted as ConvertedStatus, DateCell, Denied as DeniedStatus, InProgress, PendingReview as PendingReviewStatus, Pending as PendingStatus, } from "./ReferralTableCell.stories";
4
+ import { AvailableNoExpiry, Denied, PayoutCancelled, PayoutFailed, PayoutSent, PendingNewTaxForm, PendingNoUnpend, PendingPartnerCreation, PendingReview, PendingTaxReview, PendingTaxSubmission, Redeemed, } from "./ReferralTableRewardsCell.stories";
5
5
  import scenario from "./referral-table.feature";
6
6
  export default {
7
7
  title: "Components/Referral Table",
@@ -107,14 +107,15 @@ export class ReferralTableStatusCell {
107
107
  "reflect": false
108
108
  },
109
109
  "fraudStatus": {
110
- "type": "any",
110
+ "type": "string",
111
111
  "mutable": false,
112
112
  "complexType": {
113
113
  "original": "FraudStatus",
114
- "resolved": "any",
114
+ "resolved": "\"APPROVED\" | \"DENIED\" | \"PENDING\"",
115
115
  "references": {
116
116
  "FraudStatus": {
117
- "location": "global"
117
+ "location": "import",
118
+ "path": "../../../saasquatch"
118
119
  }
119
120
  }
120
121
  },
@@ -49,7 +49,7 @@ export class ReferralTableGenericColumn {
49
49
  static get methods() { return {
50
50
  "renderCell": {
51
51
  "complexType": {
52
- "signature": "(_: any) => Promise<any>",
52
+ "signature": "(_: Referral) => Promise<any>",
53
53
  "parameters": [{
54
54
  "tags": [],
55
55
  "text": ""
@@ -59,7 +59,8 @@ export class ReferralTableGenericColumn {
59
59
  "location": "global"
60
60
  },
61
61
  "Referral": {
62
- "location": "global"
62
+ "location": "import",
63
+ "path": "../../../saasquatch"
63
64
  }
64
65
  },
65
66
  "return": "Promise<any>"
@@ -115,7 +115,7 @@ export class ReferralTableDateColumn {
115
115
  static get methods() { return {
116
116
  "renderCell": {
117
117
  "complexType": {
118
- "signature": "(data: any, options?: { locale: string; }) => Promise<any>",
118
+ "signature": "(data: Referral, options?: { locale: string; }) => Promise<any>",
119
119
  "parameters": [{
120
120
  "tags": [],
121
121
  "text": ""
@@ -128,7 +128,8 @@ export class ReferralTableDateColumn {
128
128
  "location": "global"
129
129
  },
130
130
  "Referral": {
131
- "location": "global"
131
+ "location": "import",
132
+ "path": "../../../saasquatch"
132
133
  }
133
134
  },
134
135
  "return": "Promise<any>"
@@ -156,7 +157,7 @@ export class ReferralTableDateColumn {
156
157
  },
157
158
  "renderReferrerCell": {
158
159
  "complexType": {
159
- "signature": "(data: any) => Promise<any>",
160
+ "signature": "(data: Referrer) => Promise<any>",
160
161
  "parameters": [{
161
162
  "tags": [],
162
163
  "text": ""
@@ -166,7 +167,8 @@ export class ReferralTableDateColumn {
166
167
  "location": "global"
167
168
  },
168
169
  "Referrer": {
169
- "location": "global"
170
+ "location": "import",
171
+ "path": "../../../saasquatch"
170
172
  }
171
173
  },
172
174
  "return": "Promise<any>"
@@ -293,7 +293,7 @@ export class ReferralTableRewardsColumn {
293
293
  static get methods() { return {
294
294
  "renderCell": {
295
295
  "complexType": {
296
- "signature": "(data: any, options?: { locale: string; taxConnection: ImpactConnection; }) => Promise<any>",
296
+ "signature": "(data: Referral, options?: { locale: string; taxConnection: ImpactConnection; }) => Promise<any>",
297
297
  "parameters": [{
298
298
  "tags": [],
299
299
  "text": ""
@@ -306,10 +306,12 @@ export class ReferralTableRewardsColumn {
306
306
  "location": "global"
307
307
  },
308
308
  "Referral": {
309
- "location": "global"
309
+ "location": "import",
310
+ "path": "../../../saasquatch"
310
311
  },
311
312
  "ImpactConnection": {
312
- "location": "global"
313
+ "location": "import",
314
+ "path": "../../../saasquatch"
313
315
  }
314
316
  },
315
317
  "return": "Promise<any>"
@@ -337,7 +339,7 @@ export class ReferralTableRewardsColumn {
337
339
  },
338
340
  "renderReferrerCell": {
339
341
  "complexType": {
340
- "signature": "(data: any) => Promise<any>",
342
+ "signature": "(data: Referrer) => Promise<any>",
341
343
  "parameters": [{
342
344
  "tags": [],
343
345
  "text": ""
@@ -347,7 +349,8 @@ export class ReferralTableRewardsColumn {
347
349
  "location": "global"
348
350
  },
349
351
  "Referrer": {
350
- "location": "global"
352
+ "location": "import",
353
+ "path": "../../../saasquatch"
351
354
  }
352
355
  },
353
356
  "return": "Promise<any>"
@@ -233,7 +233,7 @@ export class ReferralTableStatusColumn {
233
233
  static get methods() { return {
234
234
  "renderCell": {
235
235
  "complexType": {
236
- "signature": "(data: any) => Promise<any>",
236
+ "signature": "(data: Referral) => Promise<any>",
237
237
  "parameters": [{
238
238
  "tags": [],
239
239
  "text": ""
@@ -243,10 +243,12 @@ export class ReferralTableStatusColumn {
243
243
  "location": "global"
244
244
  },
245
245
  "Referral": {
246
- "location": "global"
246
+ "location": "import",
247
+ "path": "../../../saasquatch"
247
248
  },
248
249
  "FraudStatus": {
249
- "location": "global"
250
+ "location": "import",
251
+ "path": "../../../saasquatch"
250
252
  }
251
253
  },
252
254
  "return": "Promise<any>"
@@ -274,7 +276,7 @@ export class ReferralTableStatusColumn {
274
276
  },
275
277
  "renderReferrerCell": {
276
278
  "complexType": {
277
- "signature": "(data: any) => Promise<any>",
279
+ "signature": "(data: Referrer) => Promise<any>",
278
280
  "parameters": [{
279
281
  "tags": [],
280
282
  "text": ""
@@ -284,7 +286,8 @@ export class ReferralTableStatusColumn {
284
286
  "location": "global"
285
287
  },
286
288
  "Referrer": {
287
- "location": "global"
289
+ "location": "import",
290
+ "path": "../../../saasquatch"
288
291
  }
289
292
  },
290
293
  "return": "Promise<any>"
@@ -143,7 +143,7 @@ export class ReferralTableUserColumn {
143
143
  static get methods() { return {
144
144
  "renderCell": {
145
145
  "complexType": {
146
- "signature": "(data: any) => Promise<any>",
146
+ "signature": "(data: Referral) => Promise<any>",
147
147
  "parameters": [{
148
148
  "tags": [],
149
149
  "text": ""
@@ -153,7 +153,8 @@ export class ReferralTableUserColumn {
153
153
  "location": "global"
154
154
  },
155
155
  "Referral": {
156
- "location": "global"
156
+ "location": "import",
157
+ "path": "../../../saasquatch"
157
158
  }
158
159
  },
159
160
  "return": "Promise<any>"
@@ -181,7 +182,7 @@ export class ReferralTableUserColumn {
181
182
  },
182
183
  "renderReferrerCell": {
183
184
  "complexType": {
184
- "signature": "(data: any) => Promise<any>",
185
+ "signature": "(data: Referrer) => Promise<any>",
185
186
  "parameters": [{
186
187
  "tags": [],
187
188
  "text": ""
@@ -191,7 +192,8 @@ export class ReferralTableUserColumn {
191
192
  "location": "global"
192
193
  },
193
194
  "Referrer": {
194
- "location": "global"
195
+ "location": "import",
196
+ "path": "../../../saasquatch"
195
197
  }
196
198
  },
197
199
  "return": "Promise<any>"
@@ -163,14 +163,15 @@ export class RewardTableRewardsCell {
163
163
  static get encapsulation() { return "shadow"; }
164
164
  static get properties() { return {
165
165
  "reward": {
166
- "type": "any",
166
+ "type": "unknown",
167
167
  "mutable": false,
168
168
  "complexType": {
169
169
  "original": "Reward",
170
- "resolved": "any",
170
+ "resolved": "Reward",
171
171
  "references": {
172
172
  "Reward": {
173
- "location": "global"
173
+ "location": "import",
174
+ "path": "../../../saasquatch"
174
175
  }
175
176
  }
176
177
  },
@@ -179,9 +180,7 @@ export class RewardTableRewardsCell {
179
180
  "docs": {
180
181
  "tags": [],
181
182
  "text": ""
182
- },
183
- "attribute": "reward",
184
- "reflect": false
183
+ }
185
184
  },
186
185
  "redeemedText": {
187
186
  "type": "string",
@@ -69,14 +69,15 @@ export class RewardTableSourceCell {
69
69
  static get encapsulation() { return "shadow"; }
70
70
  static get properties() { return {
71
71
  "reward": {
72
- "type": "any",
72
+ "type": "unknown",
73
73
  "mutable": false,
74
74
  "complexType": {
75
75
  "original": "Reward",
76
- "resolved": "any",
76
+ "resolved": "Reward",
77
77
  "references": {
78
78
  "Reward": {
79
- "location": "global"
79
+ "location": "import",
80
+ "path": "../../../saasquatch"
80
81
  }
81
82
  }
82
83
  },
@@ -85,9 +86,7 @@ export class RewardTableSourceCell {
85
86
  "docs": {
86
87
  "tags": [],
87
88
  "text": ""
88
- },
89
- "attribute": "reward",
90
- "reflect": false
89
+ }
91
90
  },
92
91
  "deletedUserText": {
93
92
  "type": "string",
@@ -201,6 +201,7 @@ export class RewardTableStatusCell {
201
201
  : rewardStatus === "DENIED"
202
202
  ? this.deniedText
203
203
  : null;
204
+ // @ts-ignore
204
205
  const getBadgeCSSClass = (badgeType) => {
205
206
  switch (rewardStatus) {
206
207
  case "AVAILABLE":
@@ -263,14 +264,15 @@ export class RewardTableStatusCell {
263
264
  "reflect": false
264
265
  },
265
266
  "reward": {
266
- "type": "any",
267
+ "type": "unknown",
267
268
  "mutable": false,
268
269
  "complexType": {
269
270
  "original": "Reward",
270
- "resolved": "any",
271
+ "resolved": "Reward",
271
272
  "references": {
272
273
  "Reward": {
273
- "location": "global"
274
+ "location": "import",
275
+ "path": "../../../saasquatch"
274
276
  }
275
277
  }
276
278
  },
@@ -279,19 +281,18 @@ export class RewardTableStatusCell {
279
281
  "docs": {
280
282
  "tags": [],
281
283
  "text": ""
282
- },
283
- "attribute": "reward",
284
- "reflect": false
284
+ }
285
285
  },
286
286
  "taxConnection": {
287
- "type": "any",
287
+ "type": "unknown",
288
288
  "mutable": false,
289
289
  "complexType": {
290
290
  "original": "ImpactConnection",
291
- "resolved": "any",
291
+ "resolved": "ImpactConnection",
292
292
  "references": {
293
293
  "ImpactConnection": {
294
- "location": "global"
294
+ "location": "import",
295
+ "path": "../../../saasquatch"
295
296
  }
296
297
  }
297
298
  },
@@ -300,9 +301,7 @@ export class RewardTableStatusCell {
300
301
  "docs": {
301
302
  "tags": [],
302
303
  "text": ""
303
- },
304
- "attribute": "tax-connection",
305
- "reflect": false
304
+ }
306
305
  },
307
306
  "expiryText": {
308
307
  "type": "string",
@@ -95,7 +95,7 @@ export class RewardTableDateColumn {
95
95
  static get methods() { return {
96
96
  "renderCell": {
97
97
  "complexType": {
98
- "signature": "(data: any, options?: { locale: string; }) => Promise<any>",
98
+ "signature": "(data: Reward, options?: { locale: string; }) => Promise<any>",
99
99
  "parameters": [{
100
100
  "tags": [],
101
101
  "text": ""
@@ -108,7 +108,8 @@ export class RewardTableDateColumn {
108
108
  "location": "global"
109
109
  },
110
110
  "Reward": {
111
- "location": "global"
111
+ "location": "import",
112
+ "path": "../../../saasquatch"
112
113
  }
113
114
  },
114
115
  "return": "Promise<any>"
@@ -56,7 +56,7 @@ export class RewardTableCustomerNoteColumn {
56
56
  static get methods() { return {
57
57
  "renderCell": {
58
58
  "complexType": {
59
- "signature": "(data: any, options?: { locale: string; }) => Promise<any>",
59
+ "signature": "(data: Reward, options?: { locale: string; }) => Promise<any>",
60
60
  "parameters": [{
61
61
  "tags": [],
62
62
  "text": ""
@@ -69,7 +69,8 @@ export class RewardTableCustomerNoteColumn {
69
69
  "location": "global"
70
70
  },
71
71
  "Reward": {
72
- "location": "global"
72
+ "location": "import",
73
+ "path": "../../../saasquatch"
73
74
  }
74
75
  },
75
76
  "return": "Promise<any>"
@@ -134,7 +134,7 @@ export class RewardsTableColumn {
134
134
  static get methods() { return {
135
135
  "renderCell": {
136
136
  "complexType": {
137
- "signature": "(data: any, options?: { locale: string; }) => Promise<any>",
137
+ "signature": "(data: Reward, options?: { locale: string; }) => Promise<any>",
138
138
  "parameters": [{
139
139
  "tags": [],
140
140
  "text": ""
@@ -147,7 +147,8 @@ export class RewardsTableColumn {
147
147
  "location": "global"
148
148
  },
149
149
  "Reward": {
150
- "location": "global"
150
+ "location": "import",
151
+ "path": "../../../saasquatch"
151
152
  }
152
153
  },
153
154
  "return": "Promise<any>"
@@ -202,7 +202,7 @@ export class RewardTableUserColumn {
202
202
  static get methods() { return {
203
203
  "renderCell": {
204
204
  "complexType": {
205
- "signature": "(data: any, options?: { locale: string; }) => Promise<any>",
205
+ "signature": "(data: Reward, options?: { locale: string; }) => Promise<any>",
206
206
  "parameters": [{
207
207
  "tags": [],
208
208
  "text": ""
@@ -215,7 +215,8 @@ export class RewardTableUserColumn {
215
215
  "location": "global"
216
216
  },
217
217
  "Reward": {
218
- "location": "global"
218
+ "location": "import",
219
+ "path": "../../../saasquatch"
219
220
  }
220
221
  },
221
222
  "return": "Promise<any>"
@@ -442,7 +442,7 @@ export class RewardTableStatusColumn {
442
442
  static get methods() { return {
443
443
  "renderCell": {
444
444
  "complexType": {
445
- "signature": "(data: any, options?: { locale: string; taxConnection: ImpactConnection; }) => Promise<any>",
445
+ "signature": "(data: Reward, options?: { locale: string; taxConnection: ImpactConnection; }) => Promise<any>",
446
446
  "parameters": [{
447
447
  "tags": [],
448
448
  "text": ""
@@ -455,10 +455,12 @@ export class RewardTableStatusColumn {
455
455
  "location": "global"
456
456
  },
457
457
  "Reward": {
458
- "location": "global"
458
+ "location": "import",
459
+ "path": "../../../saasquatch"
459
460
  },
460
461
  "ImpactConnection": {
461
- "location": "global"
462
+ "location": "import",
463
+ "path": "../../../saasquatch"
462
464
  }
463
465
  },
464
466
  "return": "Promise<any>"
@@ -1,6 +1,6 @@
1
1
  import { isDemo } from "@saasquatch/component-boilerplate";
2
2
  import { withHooks } from "@saasquatch/stencil-hooks";
3
- import { useEffect, useReducer, useMemo } from "@saasquatch/universal-hooks";
3
+ import { useEffect, useMemo, useReducer } from "@saasquatch/universal-hooks";
4
4
  import { Component, h, Prop } from "@stencil/core";
5
5
  import deepmerge from "deepmerge";
6
6
  import { GenericTableView, } from "../../tables/GenericTableView";
@@ -224,7 +224,7 @@ export class RewardsTable {
224
224
  "mutable": false,
225
225
  "complexType": {
226
226
  "original": "DemoData<GenericTableViewProps> & {\n mockData?: { data: Referral[] };\n }",
227
- "resolved": "Partial<Pick<GenericTableViewProps, \"states\" | \"data\" | \"elements\">> & { mockData?: { data: any[]; }; }",
227
+ "resolved": "Partial<Pick<GenericTableViewProps, \"states\" | \"data\" | \"elements\">> & { mockData?: { data: Referral[]; }; }",
228
228
  "references": {
229
229
  "DemoData": {
230
230
  "location": "import",
@@ -235,7 +235,8 @@ export class RewardsTable {
235
235
  "path": "../../tables/GenericTableView"
236
236
  },
237
237
  "Referral": {
238
- "location": "global"
238
+ "location": "import",
239
+ "path": "../../saasquatch"
239
240
  }
240
241
  }
241
242
  },
@@ -1,11 +1,11 @@
1
1
  import { useLocale, usePaginatedQuery, useProgramId, useQuery, useUserIdentity, } from "@saasquatch/component-boilerplate";
2
2
  import { useEffect, useReducer } from "@saasquatch/universal-hooks";
3
3
  import { h } from "@stencil/core";
4
+ import debugFn from "debug";
4
5
  import { gql } from "graphql-request";
5
6
  import { useRerenderListener } from "../../tables/re-render";
6
7
  import { useChildElements } from "../../tables/useChildElements";
7
8
  import { generateUserError } from "../sqm-referral-table/useReferralTable";
8
- import debugFn from "debug";
9
9
  const debug = debugFn("sq:useRewardsTable");
10
10
  export const CSS_NAMESPACE = "sqm-rewards-table";
11
11
  const GET_REWARDS = gql `
@@ -1,4 +1,4 @@
1
- import { Component, State, h, Host } from "@stencil/core";
1
+ import { Component, h, Host, State } from "@stencil/core";
2
2
  import * as Themes from "./Themes";
3
3
  const LOCAL_STORAGE_BRAND_KEY = "localStorageBrandKey";
4
4
  const LOCAL_STORAGE_BRAND_CONFIG_KEY = "localStorageBrandConfigKey";