@tet/tet-components 1.3.58-testing → 1.3.59-testing

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 (58) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{old-utils-fd3038e0.js → old-utils-ff6ab3d4.js} +4 -6
  3. package/dist/cjs/tet-address-offers_4.cjs.entry.js +2 -2
  4. package/dist/cjs/tet-compare-card_4.cjs.entry.js +12 -21
  5. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +5 -6
  6. package/dist/cjs/tet-compare-cards.cjs.entry.js +4 -15
  7. package/dist/cjs/tet-components.cjs.js +1 -1
  8. package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
  9. package/dist/collection/components/advanced/address/tet-address-offers/tet-address-offers.js +2 -2
  10. package/dist/collection/components/advanced/cards/old-utils.js +2 -3
  11. package/dist/collection/components/advanced/cards/tet-compare-card/test/tet-compare-card.spec.js +0 -2
  12. package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.css +73 -105
  13. package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.js +12 -86
  14. package/dist/collection/components/advanced/cards/tet-compare-cards/tet-compare-cards.js +4 -39
  15. package/dist/collection/components/advanced/cards/tet-compare-cards-tab/test/tet-compare-cards-tab.spec.js +0 -12
  16. package/dist/collection/components/advanced/cards/tet-compare-cards-tab/tet-compare-cards-tab.js +5 -24
  17. package/dist/collection/components/advanced/cards/utils.js +2 -3
  18. package/dist/collection/components/simple/lists/tet-text-list/tet-text-list.css +1 -1
  19. package/dist/components/{p-9e5d45a8.js → p-5a5c7097.js} +13 -26
  20. package/dist/components/{p-d0ec7607.js → p-673e7c33.js} +1 -1
  21. package/dist/components/{p-fa25daf7.js → p-cb9c4db0.js} +9 -23
  22. package/dist/components/{p-c4a87e6e.js → p-f5ba1b31.js} +3 -3
  23. package/dist/components/tet-address-offers-view.js +2 -2
  24. package/dist/components/tet-address-offers.js +1 -1
  25. package/dist/components/tet-business-compare-card.js +1 -1
  26. package/dist/components/tet-compare-card.js +1 -1
  27. package/dist/components/tet-compare-cards-tab.js +6 -8
  28. package/dist/components/tet-compare-cards.js +1 -1
  29. package/dist/components/tet-text-list.js +1 -1
  30. package/dist/esm/loader.js +1 -1
  31. package/dist/esm/{old-utils-a5a07afa.js → old-utils-e93e9607.js} +4 -6
  32. package/dist/esm/tet-address-offers_4.entry.js +2 -2
  33. package/dist/esm/tet-compare-card_4.entry.js +12 -21
  34. package/dist/esm/tet-compare-cards-tab.entry.js +5 -6
  35. package/dist/esm/tet-compare-cards.entry.js +4 -15
  36. package/dist/esm/tet-components.js +1 -1
  37. package/dist/esm/tet-text-list.entry.js +1 -1
  38. package/dist/tet-components/p-25f2ecb8.entry.js +1 -0
  39. package/dist/tet-components/p-3053f5a3.entry.js +1 -0
  40. package/dist/tet-components/p-3688fa8d.entry.js +1 -0
  41. package/dist/tet-components/p-87b47774.js +1 -0
  42. package/dist/tet-components/{p-c11d8027.entry.js → p-961686d8.entry.js} +1 -1
  43. package/dist/tet-components/p-cbceb775.entry.js +1 -0
  44. package/dist/tet-components/tet-components.css +1 -1
  45. package/dist/tet-components/tet-components.esm.js +1 -1
  46. package/dist/types/components/advanced/cards/old-utils.d.ts +1 -2
  47. package/dist/types/components/advanced/cards/tet-compare-card/tet-compare-card.d.ts +1 -19
  48. package/dist/types/components/advanced/cards/tet-compare-cards/tet-compare-cards.d.ts +0 -17
  49. package/dist/types/components/advanced/cards/tet-compare-cards-tab/tet-compare-cards-tab.d.ts +0 -7
  50. package/dist/types/components/advanced/cards/utils.d.ts +1 -2
  51. package/dist/types/components.d.ts +0 -36
  52. package/dist/types/services/api/services/catalog/service-availability-services.d.ts +1 -1
  53. package/package.json +1 -1
  54. package/dist/tet-components/p-212fb3d6.entry.js +0 -1
  55. package/dist/tet-components/p-41c25541.js +0 -1
  56. package/dist/tet-components/p-b0161172.entry.js +0 -1
  57. package/dist/tet-components/p-f4465153.entry.js +0 -1
  58. package/dist/tet-components/p-ffe3a10a.entry.js +0 -1
@@ -23,7 +23,6 @@ export class TetCompareCards {
23
23
  this.changedProductCode = undefined;
24
24
  this.isNetflixCard = false;
25
25
  this.darkMode = false;
26
- this.darkModeOverride = false;
27
26
  this.initializedState = false;
28
27
  this.showLoader = true;
29
28
  }
@@ -34,16 +33,6 @@ export class TetCompareCards {
34
33
  this.compareCardDataChange.emit();
35
34
  this.initializedState = true;
36
35
  }
37
- /**
38
- * @param event
39
- */
40
- async todoCompletedHandler(event) {
41
- const cards = this.cardsContainer.querySelectorAll('.tet-compare-card');
42
- await cards.forEach((card) => card.setState(false));
43
- if (event.detail.target.canSelect) {
44
- event.detail.target.setState(true);
45
- }
46
- }
47
36
  /**
48
37
  * @param event
49
38
  */
@@ -116,18 +105,18 @@ export class TetCompareCards {
116
105
  });
117
106
  }
118
107
  render() {
119
- return (h(Host, { key: 'e8e0629d42d9bab228559fe98b48e68cc19aca10', class: {
108
+ return (h(Host, { key: '93ccc91ac8ced1734d70e8700878c5beba261539', class: {
120
109
  'must-initialize': true,
121
110
  'initialized': this.initializedState
122
111
  } }, this.showLoader ? (this.renderLoader()) : (h("div", { class: {
123
112
  'tet-compare-cards-wrapper': true,
124
113
  'force-column': this.forceColumn
125
- } }, h("div", { class: { cards: true, [`${this.layout}`]: true }, ref: (element) => (this.cardsContainer = element) }, this.data.map((el, index) => {
114
+ } }, h("div", { class: { cards: true, [`${this.layout}`]: true } }, this.data.map((el, index) => {
126
115
  var _a, _b, _c, _d, _e, _f, _g, _h;
127
116
  return (h("tet-compare-card", { class: {
128
117
  'tet-compare-card': true,
129
118
  'tet-compare-card--thumbnail': !!el.thumbnail
130
- }, index: index, language: el.language, options: el.options, "card-type": el.cardType, theme: this.theme, "can-select": el.canSelect, "best-choice": el.bestChoice, "color-icons": el.colorIcons, "full-height": el.fullHeight, "card-header": el.cardHeader, logo: el.logo, image: el.image, "card-background-color": el.cardBackgroundColor, "card-script": el.cardScript, hideBestChoiceBorder: el.hideBestChoiceBorder, withBorder: el.withBorder, "best-choice-text-position": el.bestChoiceTextPosition, priceShownVertically: el.priceShownVertically, "secondary-link-position": el.secondaryLinkPosition, thumbnail: el.thumbnail, thumbnailAlt: el.thumbnailAlt, showBulletPoints: el.showBulletPoints, showSubTitle: el.showSubTitle, showHelper: el.showHelper, isNetflixCard: el.isNetflixCard, darkMode: this.darkMode, "dark-mode-override": this.darkModeOverride, "is-netflix-card": this.isNetflixCard }, h("div", { slot: "image-slot" }, h("img", { style: { width: '100%' }, src: el.image, alt: (_d = (_c = (_b = ((_a = el.image) !== null && _a !== void 0 ? _a : '').split('/')) === null || _b === void 0 ? void 0 : _b.pop()) === null || _c === void 0 ? void 0 : _c.split('.')[0]) !== null && _d !== void 0 ? _d : el.image })), h("div", { slot: "logo-slot" }, h("img", { style: { width: '100%' }, src: el.logo, alt: (_h = (_g = (_f = ((_e = el.logo) !== null && _e !== void 0 ? _e : '').split('/')) === null || _f === void 0 ? void 0 : _f.pop()) === null || _g === void 0 ? void 0 : _g.split('.')[0]) !== null && _h !== void 0 ? _h : el.logo })), h("div", { slot: "description-slot", innerHTML: el.cardDescription })));
119
+ }, index: index, language: el.language, options: el.options, "card-type": el.cardType, theme: this.theme, "best-choice": el.bestChoice, "color-icons": el.colorIcons, "full-height": el.fullHeight, "card-header": el.cardHeader, logo: el.logo, image: el.image, "card-background-color": el.cardBackgroundColor, "card-script": el.cardScript, hideBestChoiceBorder: el.hideBestChoiceBorder, withBorder: el.withBorder, "best-choice-text-position": el.bestChoiceTextPosition, priceShownVertically: el.priceShownVertically, "secondary-link-position": el.secondaryLinkPosition, thumbnail: el.thumbnail, thumbnailAlt: el.thumbnailAlt, showBulletPoints: el.showBulletPoints, showSubTitle: el.showSubTitle, showHelper: el.showHelper, isNetflixCard: el.isNetflixCard, darkMode: this.darkMode }, h("div", { slot: "image-slot" }, h("img", { style: { width: '100%' }, src: el.image, alt: (_d = (_c = (_b = ((_a = el.image) !== null && _a !== void 0 ? _a : '').split('/')) === null || _b === void 0 ? void 0 : _b.pop()) === null || _c === void 0 ? void 0 : _c.split('.')[0]) !== null && _d !== void 0 ? _d : el.image })), h("div", { slot: "logo-slot" }, h("img", { style: { width: '100%' }, src: el.logo, alt: (_h = (_g = (_f = ((_e = el.logo) !== null && _e !== void 0 ? _e : '').split('/')) === null || _f === void 0 ? void 0 : _f.pop()) === null || _g === void 0 ? void 0 : _g.split('.')[0]) !== null && _h !== void 0 ? _h : el.logo })), h("div", { slot: "description-slot", innerHTML: el.cardDescription })));
131
120
  })), this.vatText ? (h("div", { class: "vat" }, h("div", { class: "vat__text", innerHTML: this.vatText }))) : (''))), this.cardScript ? h("link", { href: this.cardScript, rel: "stylesheet", type: "text/css" }) : ''));
132
121
  }
133
122
  static get is() { return "tet-compare-cards"; }
@@ -208,7 +197,7 @@ export class TetCompareCards {
208
197
  "mutable": false,
209
198
  "complexType": {
210
199
  "original": "ServiceAvailabilityServicesCategoryTheme",
211
- "resolved": "\"classic\" | \"dark\" | \"light\" | \"netflix\" | \"non-netflix\" | \"tet-bundles\" | \"tet-business-blue\" | \"tet-business-default\" | \"tet-business-green\" | \"tet-business-mint\" | \"tet-business-purple\" | \"tet-business-red\" | \"tet-business-yellow\" | \"tet-electricity\" | \"tet-internet\" | \"tet-tv\" | \"tet-tv-plus\" | \"tet-vtv\"",
200
+ "resolved": "\"classic\" | \"dark\" | \"grey\" | \"light\" | \"netflix\" | \"non-netflix\" | \"tet-bundles\" | \"tet-business-blue\" | \"tet-business-default\" | \"tet-business-green\" | \"tet-business-mint\" | \"tet-business-purple\" | \"tet-business-red\" | \"tet-business-yellow\" | \"tet-electricity\" | \"tet-internet\" | \"tet-tv\" | \"tet-tv-plus\" | \"tet-vtv\"",
212
201
  "references": {
213
202
  "ServiceAvailabilityServicesCategoryTheme": {
214
203
  "location": "import",
@@ -337,24 +326,6 @@ export class TetCompareCards {
337
326
  "attribute": "dark-mode",
338
327
  "reflect": false,
339
328
  "defaultValue": "false"
340
- },
341
- "darkModeOverride": {
342
- "type": "boolean",
343
- "mutable": false,
344
- "complexType": {
345
- "original": "boolean",
346
- "resolved": "boolean",
347
- "references": {}
348
- },
349
- "required": false,
350
- "optional": false,
351
- "docs": {
352
- "tags": [],
353
- "text": "This prop overrides the card dark mode setting.\nIt is used to force light cards regardless of the global setting."
354
- },
355
- "attribute": "dark-mode-override",
356
- "reflect": false,
357
- "defaultValue": "false"
358
329
  }
359
330
  };
360
331
  }
@@ -406,12 +377,6 @@ export class TetCompareCards {
406
377
  }
407
378
  static get listeners() {
408
379
  return [{
409
- "name": "selectEvent",
410
- "method": "todoCompletedHandler",
411
- "target": undefined,
412
- "capture": false,
413
- "passive": false
414
- }, {
415
380
  "name": "optionSelected",
416
381
  "method": "onOptionSelected",
417
382
  "target": undefined,
@@ -28,7 +28,6 @@ const DATA = {
28
28
  compareCards: [
29
29
  {
30
30
  theme: 'tet-tv',
31
- canSelect: true,
32
31
  bestChoice: false,
33
32
  options: {
34
33
  bestChoiceText: 'Labākā izvēle',
@@ -47,7 +46,6 @@ const DATA = {
47
46
  },
48
47
  {
49
48
  theme: 'classic',
50
- canSelect: true,
51
49
  bestChoice: true,
52
50
  options: {
53
51
  bestChoiceText: 'Labākā izvēle',
@@ -66,7 +64,6 @@ const DATA = {
66
64
  },
67
65
  {
68
66
  theme: 'tet-tv-plus',
69
- canSelect: true,
70
67
  bestChoice: false,
71
68
  options: {
72
69
  bestChoiceText: 'Labākā izvēle',
@@ -90,7 +87,6 @@ const DATA = {
90
87
  compareCards: [
91
88
  {
92
89
  theme: 'tet-tv',
93
- canSelect: true,
94
90
  bestChoice: false,
95
91
  options: {
96
92
  bestChoiceText: 'Labākā izvēle',
@@ -109,7 +105,6 @@ const DATA = {
109
105
  },
110
106
  {
111
107
  theme: 'classic',
112
- canSelect: true,
113
108
  bestChoice: true,
114
109
  options: {
115
110
  bestChoiceText: 'Labākā izvēle',
@@ -128,7 +123,6 @@ const DATA = {
128
123
  },
129
124
  {
130
125
  theme: 'tet-tv-plus',
131
- canSelect: true,
132
126
  bestChoice: false,
133
127
  options: {
134
128
  bestChoiceText: 'Labākā izvēle',
@@ -167,7 +161,6 @@ const DATA = {
167
161
  compareCards: [
168
162
  {
169
163
  theme: 'tet-tv',
170
- canSelect: true,
171
164
  bestChoice: false,
172
165
  options: {
173
166
  bestChoiceText: 'Labākā izvēle',
@@ -186,7 +179,6 @@ const DATA = {
186
179
  },
187
180
  {
188
181
  theme: 'classic',
189
- canSelect: true,
190
182
  bestChoice: true,
191
183
  options: {
192
184
  bestChoiceText: 'Labākā izvēle',
@@ -211,7 +203,6 @@ const DATA = {
211
203
  compareCards: [
212
204
  {
213
205
  theme: 'tet-tv',
214
- canSelect: true,
215
206
  bestChoice: false,
216
207
  options: {
217
208
  bestChoiceText: 'Labākā izvēle',
@@ -230,7 +221,6 @@ const DATA = {
230
221
  },
231
222
  {
232
223
  theme: 'classic',
233
- canSelect: true,
234
224
  bestChoice: true,
235
225
  options: {
236
226
  bestChoiceText: 'Labākā izvēle',
@@ -257,7 +247,6 @@ const DATA = {
257
247
  compareCards: [
258
248
  {
259
249
  theme: 'tet-tv-plus',
260
- canSelect: true,
261
250
  bestChoice: false,
262
251
  options: {
263
252
  bestChoiceText: 'Labākā izvēle',
@@ -276,7 +265,6 @@ const DATA = {
276
265
  },
277
266
  {
278
267
  theme: 'classic',
279
- canSelect: true,
280
268
  bestChoice: true,
281
269
  options: {
282
270
  bestChoiceText: 'Labākā izvēle',
@@ -22,7 +22,6 @@ export class TetTabCompareCards {
22
22
  this.newUrlGeneratorStructure = false;
23
23
  this.theme = 'light';
24
24
  this.darkMode = false;
25
- this.darkModeOverride = false;
26
25
  this.isNetflixCard = false;
27
26
  this.productDataLoaded = false;
28
27
  this.showLoader = true;
@@ -155,19 +154,19 @@ export class TetTabCompareCards {
155
154
  const requestedProductData = this.productSACData[requestedProduct];
156
155
  if (requestedProductData) {
157
156
  if (this.newUrlGeneratorStructure) {
158
- element = fillProductData(element, requestedProduct, requestedProductData, this.theme, this.darkMode, this.isNetflixCard, this.darkModeOverride);
157
+ element = fillProductData(element, requestedProduct, requestedProductData, this.theme, this.darkMode, this.isNetflixCard);
159
158
  }
160
159
  else {
161
- element = fillOldProductData(element, requestedProduct, requestedProductData, this.theme, this.darkMode, this.isNetflixCard, this.darkModeOverride);
160
+ element = fillOldProductData(element, requestedProduct, requestedProductData, this.theme, this.darkMode, this.isNetflixCard);
162
161
  }
163
162
  }
164
163
  }
165
164
  cardsWithAddedSACData.push(element);
166
165
  });
167
- return (h("div", { class: "tet-compare-cards-tab__content" }, h("tet-compare-cards", { theme: this.theme, "dark-mode": this.darkMode, "dark-mode-override": this.darkModeOverride, "is-netflix-card": this.isNetflixCard, layout: this.layout, "force-column": this.forceColumn, "vat-text": vatText !== null && vatText !== void 0 ? vatText : false, "card-script": cardScript !== null && cardScript !== void 0 ? cardScript : false, data: cardsWithAddedSACData, newUrlGeneratorStructure: this.newUrlGeneratorStructure })));
166
+ return (h("div", { class: "tet-compare-cards-tab__content" }, h("tet-compare-cards", { theme: this.theme, "dark-mode": this.darkMode, "is-netflix-card": this.isNetflixCard, layout: this.layout, "force-column": this.forceColumn, "vat-text": vatText !== null && vatText !== void 0 ? vatText : false, "card-script": cardScript !== null && cardScript !== void 0 ? cardScript : false, data: cardsWithAddedSACData, newUrlGeneratorStructure: this.newUrlGeneratorStructure })));
168
167
  }
169
168
  render() {
170
- return (h(Host, { key: '182bf5721a6cb4c010343b562e8e6fd0f4e12718' }, h("div", { key: 'e6168e1e55efc64ea212b029192ce5eb89741182', class: "tet-compare-cards-tab-wrapper" }, this.renderTabHeader(this.data, 1), this.renderLoader(), h("div", { key: 'e3a99529e9e8a05fd75bc19bdf129b1f11c204a2', class: {
169
+ return (h(Host, { key: 'b186b5098f812ce7296edd7a36c924c3891c29dd' }, h("div", { key: '27b1daf516c78bf2eccba9ea0d634b04be71df46', class: "tet-compare-cards-tab-wrapper" }, this.renderTabHeader(this.data, 1), this.renderLoader(), h("div", { key: '3554e52faff28ee83ce0112c3f8f3ca1fd16a0e0', class: {
171
170
  'tet-compare-cards-tab__cards': true,
172
171
  'hidden': this.showLoader
173
172
  } }, this.productDataLoaded ? this.renderContent(this.data, 1) : ''))));
@@ -272,7 +271,7 @@ export class TetTabCompareCards {
272
271
  "mutable": false,
273
272
  "complexType": {
274
273
  "original": "ServiceAvailabilityServicesCategoryTheme",
275
- "resolved": "\"classic\" | \"dark\" | \"light\" | \"netflix\" | \"non-netflix\" | \"tet-bundles\" | \"tet-business-blue\" | \"tet-business-default\" | \"tet-business-green\" | \"tet-business-mint\" | \"tet-business-purple\" | \"tet-business-red\" | \"tet-business-yellow\" | \"tet-electricity\" | \"tet-internet\" | \"tet-tv\" | \"tet-tv-plus\" | \"tet-vtv\"",
274
+ "resolved": "\"classic\" | \"dark\" | \"grey\" | \"light\" | \"netflix\" | \"non-netflix\" | \"tet-bundles\" | \"tet-business-blue\" | \"tet-business-default\" | \"tet-business-green\" | \"tet-business-mint\" | \"tet-business-purple\" | \"tet-business-red\" | \"tet-business-yellow\" | \"tet-electricity\" | \"tet-internet\" | \"tet-tv\" | \"tet-tv-plus\" | \"tet-vtv\"",
276
275
  "references": {
277
276
  "ServiceAvailabilityServicesCategoryTheme": {
278
277
  "location": "import",
@@ -309,24 +308,6 @@ export class TetTabCompareCards {
309
308
  "reflect": false,
310
309
  "defaultValue": "false"
311
310
  },
312
- "darkModeOverride": {
313
- "type": "boolean",
314
- "mutable": false,
315
- "complexType": {
316
- "original": "boolean",
317
- "resolved": "boolean",
318
- "references": {}
319
- },
320
- "required": false,
321
- "optional": false,
322
- "docs": {
323
- "tags": [],
324
- "text": "This prop overrides the card dark mode setting.\nIt is used to force light cards regardless of the global setting."
325
- },
326
- "attribute": "dark-mode-override",
327
- "reflect": false,
328
- "defaultValue": "false"
329
- },
330
311
  "isNetflixCard": {
331
312
  "type": "boolean",
332
313
  "mutable": false,
@@ -7,10 +7,9 @@ import { generateFormUrl } from "../../../services/url/build-form-url";
7
7
  * @param requestedProductData Requested product data from SAC.
8
8
  * @param theme Optional theme for the compare card, defaults to 'light'.
9
9
  * @param darkMode Optional dark mode setting for the compare card.
10
- * @param darkModeOverride Optional dark mode override for the compare card.
11
10
  * @param isNetflixCard Optional flag to indicate if the card is for Netflix.
12
11
  */
13
- export const fillProductData = (compareCard, requestedProduct, requestedProductData, theme, darkMode, darkModeOverride, isNetflixCard = false) => {
12
+ export const fillProductData = (compareCard, requestedProduct, requestedProductData, theme, darkMode, isNetflixCard = false) => {
14
13
  var _a, _b, _c, _d;
15
14
  const currentCompareCardOptions = compareCard.options;
16
15
  const contractTerms = requestedProductData.contractTerms;
@@ -75,7 +74,7 @@ export const fillProductData = (compareCard, requestedProduct, requestedProductD
75
74
  requestedProductData.descriptionTooltip[productLanguage] +
76
75
  '</tet-tooltip>' +
77
76
  '<style>.tet-tooltip { --text-font: var(--font-family-content) }</style>'
78
- : '', link: formUrl.toString(), secondaryLink: contractLink, helper: priceDescription, theme: theme, darkMode: darkMode, darkModeOverride: darkModeOverride, isNetflixCard: isNetflixCard });
77
+ : '', link: formUrl.toString(), secondaryLink: contractLink, helper: priceDescription, theme: theme, darkMode: darkMode, isNetflixCard: isNetflixCard });
79
78
  if (!compareCard.isNetflixCard) {
80
79
  delete compareCard.productCode;
81
80
  }
@@ -5456,7 +5456,7 @@
5456
5456
  --tc-blue-50: rgba(21, 85, 185, 1);
5457
5457
  --tc-blue-40: rgb(25, 98, 212);
5458
5458
  --tc-blue-30: rgba(78, 135, 222, 1);
5459
- --tc-blue-20: rgba(78, 135, 222, 1);
5459
+ --tc-blue-20: rgba(131,172,232, 1);
5460
5460
  --tc-blue-10: rgba(184, 208, 242, 1);
5461
5461
  --tc-blue-00: rgba(237, 245, 252, 1);
5462
5462
  --tc-green-80: rgba(31, 66, 45, 1);