@saasquatch/mint-components 1.3.2-14 → 1.3.2-15

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.
@@ -14783,6 +14783,7 @@ const GET_EXCHANGE_LIST = index_module.dist.gql `
14783
14783
  prettyDestinationValue
14784
14784
  available
14785
14785
  unavailableReasonCode
14786
+ unavailableReason
14786
14787
  }
14787
14788
  }
14788
14789
  totalCount
@@ -15145,7 +15146,7 @@ function RewardExchangeView(props) {
15145
15146
  step.unavailableReasonCode && (index.h("p", { style: { fontSize: "70%", color: "#F2994A" } }, global.intl.formatMessage({
15146
15147
  id: "unavailableCode",
15147
15148
  defaultMessage: states.content.text.notAvailableError,
15148
- }, { unavailableReasonCode: step.unavailableReasonCode })))))))));
15149
+ }, { unavailableReason: step.unavailableReason || step.unavailableReasonCode })))))))));
15149
15150
  }
15150
15151
  function chooseReward() {
15151
15152
  var _a;
@@ -15201,7 +15202,7 @@ function RewardExchangeView(props) {
15201
15202
  } }, global.intl.formatMessage({
15202
15203
  id: "unavailableCode",
15203
15204
  defaultMessage: states.content.text.notAvailableError,
15204
- }, { unavailableReasonCode: item.unavailableReasonCode })))))));
15205
+ }, { unavailableReason: item.unavailableReason || item.unavailableReasonCode })))))));
15205
15206
  })),
15206
15207
  index.h("div", { class: sheet.classes.KutayButton },
15207
15208
  index.h("sl-button", { class: "cancel", size: "large", type: "text" }, "Cancel"),
@@ -15306,7 +15307,7 @@ const SqmRewardExchangeList = class {
15306
15307
  /**
15307
15308
  * @uiName Exchange button text
15308
15309
  */
15309
- this.notAvailableError = "{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }";
15310
+ this.notAvailableError = "{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }";
15310
15311
  _extends.h$1(this);
15311
15312
  }
15312
15313
  disconnectedCallback() { }
@@ -21551,8 +21552,8 @@ function TaskCardView(props) {
21551
21552
  index.h("span", { class: taskExpired ? "value" : "value black" }, props.rewardAmount),
21552
21553
  index.h("span", { class: "text" }, props.rewardUnit)))),
21553
21554
  props.loading ? (index.h("sl-skeleton", { style: { width: "42%", margin: "0 16px" } })) : (index.h("div", { class: taskExpired ? "title" : "title black" }, props.cardTitle)),
21554
- props.loading ? (index.h("sl-skeleton", { style: { width: "91%", margin: "12px 16px" } })) : (index.h(Details, Object.assign({}, props))),
21555
- props.showProgressBar && props.loading ? (index.h("sl-skeleton", { style: { width: "91%", margin: "0 auto" } })) : (props.showProgressBar && (index.h(ProgressBarView, Object.assign({}, props, { complete: taskComplete, expired: taskExpired })))),
21555
+ props.loading ? (index.h("sl-skeleton", { style: { margin: "12px 16px" } })) : (index.h(Details, Object.assign({}, props))),
21556
+ props.showProgressBar && props.loading ? (index.h("sl-skeleton", { style: { margin: "0 16px" } })) : (props.showProgressBar && (index.h(ProgressBarView, Object.assign({}, props, { complete: taskComplete, expired: taskExpired })))),
21556
21557
  index.h("div", { class: sheet.classes.Footer }, props.loading ? (index.h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (index.h("div", { style: { display: "contents" } },
21557
21558
  index.h("span", { class: "text" },
21558
21559
  props.repeatable && (index.h("div", null,
@@ -25608,6 +25609,7 @@ const test2 = {
25608
25609
  prettyDestinationValue: "1 Salmon Coin",
25609
25610
  available: true,
25610
25611
  unavailableReasonCode: null,
25612
+ unavailableReason: ""
25611
25613
  },
25612
25614
  {
25613
25615
  sourceValue: 2,
@@ -25616,6 +25618,7 @@ const test2 = {
25616
25618
  prettyDestinationValue: "2 Salmons",
25617
25619
  available: true,
25618
25620
  unavailableReasonCode: null,
25621
+ unavailableReason: ""
25619
25622
  },
25620
25623
  {
25621
25624
  sourceValue: 3,
@@ -25624,6 +25627,7 @@ const test2 = {
25624
25627
  prettyDestinationValue: "3 Salmons",
25625
25628
  available: true,
25626
25629
  unavailableReasonCode: null,
25630
+ unavailableReason: ""
25627
25631
  },
25628
25632
  {
25629
25633
  sourceValue: 4,
@@ -25632,6 +25636,7 @@ const test2 = {
25632
25636
  prettyDestinationValue: "4 Salmons",
25633
25637
  available: true,
25634
25638
  unavailableReasonCode: null,
25639
+ unavailableReason: ""
25635
25640
  },
25636
25641
  {
25637
25642
  sourceValue: 5,
@@ -25640,6 +25645,7 @@ const test2 = {
25640
25645
  prettyDestinationValue: "5 Salmons",
25641
25646
  available: true,
25642
25647
  unavailableReasonCode: null,
25648
+ unavailableReason: ""
25643
25649
  },
25644
25650
  ],
25645
25651
  },
@@ -165,6 +165,7 @@ export const test2 = {
165
165
  prettyDestinationValue: "1 Salmon Coin",
166
166
  available: true,
167
167
  unavailableReasonCode: null,
168
+ unavailableReason: ""
168
169
  },
169
170
  {
170
171
  sourceValue: 2,
@@ -173,6 +174,7 @@ export const test2 = {
173
174
  prettyDestinationValue: "2 Salmons",
174
175
  available: true,
175
176
  unavailableReasonCode: null,
177
+ unavailableReason: ""
176
178
  },
177
179
  {
178
180
  sourceValue: 3,
@@ -181,6 +183,7 @@ export const test2 = {
181
183
  prettyDestinationValue: "3 Salmons",
182
184
  available: true,
183
185
  unavailableReasonCode: null,
186
+ unavailableReason: ""
184
187
  },
185
188
  {
186
189
  sourceValue: 4,
@@ -189,6 +192,7 @@ export const test2 = {
189
192
  prettyDestinationValue: "4 Salmons",
190
193
  available: true,
191
194
  unavailableReasonCode: null,
195
+ unavailableReason: ""
192
196
  },
193
197
  {
194
198
  sourceValue: 5,
@@ -197,6 +201,7 @@ export const test2 = {
197
201
  prettyDestinationValue: "5 Salmons",
198
202
  available: true,
199
203
  unavailableReasonCode: null,
204
+ unavailableReason: ""
200
205
  },
201
206
  ],
202
207
  },
@@ -162,7 +162,7 @@ export function RewardExchangeView(props) {
162
162
  step.unavailableReasonCode && (h("p", { style: { fontSize: "70%", color: "#F2994A" } }, intl.formatMessage({
163
163
  id: "unavailableCode",
164
164
  defaultMessage: states.content.text.notAvailableError,
165
- }, { unavailableReasonCode: step.unavailableReasonCode })))))))));
165
+ }, { unavailableReason: step.unavailableReason || step.unavailableReasonCode })))))))));
166
166
  }
167
167
  function chooseReward() {
168
168
  var _a;
@@ -218,7 +218,7 @@ export function RewardExchangeView(props) {
218
218
  } }, intl.formatMessage({
219
219
  id: "unavailableCode",
220
220
  defaultMessage: states.content.text.notAvailableError,
221
- }, { unavailableReasonCode: item.unavailableReasonCode })))))));
221
+ }, { unavailableReason: item.unavailableReason || item.unavailableReasonCode })))))));
222
222
  })),
223
223
  h("div", { class: sheet.classes.KutayButton },
224
224
  h("sl-button", { class: "cancel", size: "large", type: "text" }, "Cancel"),
@@ -18,7 +18,7 @@ export class SqmRewardExchangeList {
18
18
  /**
19
19
  * @uiName Exchange button text
20
20
  */
21
- this.notAvailableError = "{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }";
21
+ this.notAvailableError = "{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }";
22
22
  withHooks(this);
23
23
  }
24
24
  disconnectedCallback() { }
@@ -81,7 +81,7 @@ export class SqmRewardExchangeList {
81
81
  },
82
82
  "attribute": "not-available-error",
83
83
  "reflect": false,
84
- "defaultValue": "\"{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }\""
84
+ "defaultValue": "\"{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }\""
85
85
  },
86
86
  "demoData": {
87
87
  "type": "unknown",
@@ -35,6 +35,7 @@ const GET_EXCHANGE_LIST = gql `
35
35
  prettyDestinationValue
36
36
  available
37
37
  unavailableReasonCode
38
+ unavailableReason
38
39
  }
39
40
  }
40
41
  totalCount
@@ -133,8 +133,8 @@ export function TaskCardView(props) {
133
133
  h("span", { class: taskExpired ? "value" : "value black" }, props.rewardAmount),
134
134
  h("span", { class: "text" }, props.rewardUnit)))),
135
135
  props.loading ? (h("sl-skeleton", { style: { width: "42%", margin: "0 16px" } })) : (h("div", { class: taskExpired ? "title" : "title black" }, props.cardTitle)),
136
- props.loading ? (h("sl-skeleton", { style: { width: "91%", margin: "12px 16px" } })) : (h(Details, Object.assign({}, props))),
137
- props.showProgressBar && props.loading ? (h("sl-skeleton", { style: { width: "91%", margin: "0 auto" } })) : (props.showProgressBar && (h(ProgressBarView, Object.assign({}, props, { complete: taskComplete, expired: taskExpired })))),
136
+ props.loading ? (h("sl-skeleton", { style: { margin: "12px 16px" } })) : (h(Details, Object.assign({}, props))),
137
+ props.showProgressBar && props.loading ? (h("sl-skeleton", { style: { margin: "0 16px" } })) : (props.showProgressBar && (h(ProgressBarView, Object.assign({}, props, { complete: taskComplete, expired: taskExpired })))),
138
138
  h("div", { class: sheet.classes.Footer }, props.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
139
139
  h("span", { class: "text" },
140
140
  props.repeatable && (h("div", null,
@@ -7,7 +7,7 @@ import { useDemoBigStat } from "../sqm-big-stat/useDemoBigStat";
7
7
  import { TaskCardView } from "./sqm-task-card-view";
8
8
  /**
9
9
  * @uiName Task Card
10
- * @uiOrder ["rewardAmount", "reward-unit", "card-title", "description", "*", "showExpiry", "dateExpires" ]
10
+ * @uiOrder ["reward-amount", "reward-unit", "card-title", "description", "*", "show-expiry", "date-expires" ]
11
11
  */
12
12
  export class TaskCard {
13
13
  constructor() {
@@ -14779,6 +14779,7 @@ const GET_EXCHANGE_LIST = dist.gql `
14779
14779
  prettyDestinationValue
14780
14780
  available
14781
14781
  unavailableReasonCode
14782
+ unavailableReason
14782
14783
  }
14783
14784
  }
14784
14785
  totalCount
@@ -15141,7 +15142,7 @@ function RewardExchangeView(props) {
15141
15142
  step.unavailableReasonCode && (h("p", { style: { fontSize: "70%", color: "#F2994A" } }, intl.formatMessage({
15142
15143
  id: "unavailableCode",
15143
15144
  defaultMessage: states.content.text.notAvailableError,
15144
- }, { unavailableReasonCode: step.unavailableReasonCode })))))))));
15145
+ }, { unavailableReason: step.unavailableReason || step.unavailableReasonCode })))))))));
15145
15146
  }
15146
15147
  function chooseReward() {
15147
15148
  var _a;
@@ -15197,7 +15198,7 @@ function RewardExchangeView(props) {
15197
15198
  } }, intl.formatMessage({
15198
15199
  id: "unavailableCode",
15199
15200
  defaultMessage: states.content.text.notAvailableError,
15200
- }, { unavailableReasonCode: item.unavailableReasonCode })))))));
15201
+ }, { unavailableReason: item.unavailableReason || item.unavailableReasonCode })))))));
15201
15202
  })),
15202
15203
  h("div", { class: sheet.classes.KutayButton },
15203
15204
  h("sl-button", { class: "cancel", size: "large", type: "text" }, "Cancel"),
@@ -15302,7 +15303,7 @@ const SqmRewardExchangeList = class {
15302
15303
  /**
15303
15304
  * @uiName Exchange button text
15304
15305
  */
15305
- this.notAvailableError = "{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }";
15306
+ this.notAvailableError = "{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }";
15306
15307
  h$1(this);
15307
15308
  }
15308
15309
  disconnectedCallback() { }
@@ -21547,8 +21548,8 @@ function TaskCardView(props) {
21547
21548
  h("span", { class: taskExpired ? "value" : "value black" }, props.rewardAmount),
21548
21549
  h("span", { class: "text" }, props.rewardUnit)))),
21549
21550
  props.loading ? (h("sl-skeleton", { style: { width: "42%", margin: "0 16px" } })) : (h("div", { class: taskExpired ? "title" : "title black" }, props.cardTitle)),
21550
- props.loading ? (h("sl-skeleton", { style: { width: "91%", margin: "12px 16px" } })) : (h(Details, Object.assign({}, props))),
21551
- props.showProgressBar && props.loading ? (h("sl-skeleton", { style: { width: "91%", margin: "0 auto" } })) : (props.showProgressBar && (h(ProgressBarView, Object.assign({}, props, { complete: taskComplete, expired: taskExpired })))),
21551
+ props.loading ? (h("sl-skeleton", { style: { margin: "12px 16px" } })) : (h(Details, Object.assign({}, props))),
21552
+ props.showProgressBar && props.loading ? (h("sl-skeleton", { style: { margin: "0 16px" } })) : (props.showProgressBar && (h(ProgressBarView, Object.assign({}, props, { complete: taskComplete, expired: taskExpired })))),
21552
21553
  h("div", { class: sheet.classes.Footer }, props.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
21553
21554
  h("span", { class: "text" },
21554
21555
  props.repeatable && (h("div", null,
@@ -25604,6 +25605,7 @@ const test2 = {
25604
25605
  prettyDestinationValue: "1 Salmon Coin",
25605
25606
  available: true,
25606
25607
  unavailableReasonCode: null,
25608
+ unavailableReason: ""
25607
25609
  },
25608
25610
  {
25609
25611
  sourceValue: 2,
@@ -25612,6 +25614,7 @@ const test2 = {
25612
25614
  prettyDestinationValue: "2 Salmons",
25613
25615
  available: true,
25614
25616
  unavailableReasonCode: null,
25617
+ unavailableReason: ""
25615
25618
  },
25616
25619
  {
25617
25620
  sourceValue: 3,
@@ -25620,6 +25623,7 @@ const test2 = {
25620
25623
  prettyDestinationValue: "3 Salmons",
25621
25624
  available: true,
25622
25625
  unavailableReasonCode: null,
25626
+ unavailableReason: ""
25623
25627
  },
25624
25628
  {
25625
25629
  sourceValue: 4,
@@ -25628,6 +25632,7 @@ const test2 = {
25628
25632
  prettyDestinationValue: "4 Salmons",
25629
25633
  available: true,
25630
25634
  unavailableReasonCode: null,
25635
+ unavailableReason: ""
25631
25636
  },
25632
25637
  {
25633
25638
  sourceValue: 5,
@@ -25636,6 +25641,7 @@ const test2 = {
25636
25641
  prettyDestinationValue: "5 Salmons",
25637
25642
  available: true,
25638
25643
  unavailableReasonCode: null,
25644
+ unavailableReason: ""
25639
25645
  },
25640
25646
  ],
25641
25647
  },