@tet/tet-components 1.3.116-staging → 1.3.117-staging

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.
@@ -86,6 +86,12 @@ const TetCompareCardV2 = class {
86
86
  this.productChanged.emit();
87
87
  }
88
88
  }
89
+ componentDidRender() {
90
+ if (!this.cardHasEmitted && this.allProductData[this.selectedProductCode]) {
91
+ this.cardLoaded.emit();
92
+ this.cardHasEmitted = true;
93
+ }
94
+ }
89
95
  pushDataToDropdownOptions() {
90
96
  this.options.forEach(option => {
91
97
  this.dropdownOptions.push({
@@ -230,10 +236,6 @@ const TetCompareCardV2 = class {
230
236
  if (!comparisonData) {
231
237
  return this.renderLoader();
232
238
  }
233
- if (!this.cardHasEmitted) {
234
- this.cardLoaded.emit();
235
- this.cardHasEmitted = true;
236
- }
237
239
  // Get data for rendering
238
240
  const contractTermData = this.selectedContractTerm();
239
241
  const overridePoductAttribute = comparisonData === null || comparisonData === void 0 ? void 0 : comparisonData.attributes.find(attr => attr.key === 'overrideProductName');
@@ -79,6 +79,12 @@ export class TetCompareCardV2 {
79
79
  this.productChanged.emit();
80
80
  }
81
81
  }
82
+ componentDidRender() {
83
+ if (!this.cardHasEmitted && this.allProductData[this.selectedProductCode]) {
84
+ this.cardLoaded.emit();
85
+ this.cardHasEmitted = true;
86
+ }
87
+ }
82
88
  pushDataToDropdownOptions() {
83
89
  this.options.forEach(option => {
84
90
  this.dropdownOptions.push({
@@ -223,10 +229,6 @@ export class TetCompareCardV2 {
223
229
  if (!comparisonData) {
224
230
  return this.renderLoader();
225
231
  }
226
- if (!this.cardHasEmitted) {
227
- this.cardLoaded.emit();
228
- this.cardHasEmitted = true;
229
- }
230
232
  // Get data for rendering
231
233
  const contractTermData = this.selectedContractTerm();
232
234
  const overridePoductAttribute = comparisonData === null || comparisonData === void 0 ? void 0 : comparisonData.attributes.find(attr => attr.key === 'overrideProductName');
@@ -90,6 +90,12 @@ const TetCompareCardV2$1 = /*@__PURE__*/ proxyCustomElement(class TetCompareCard
90
90
  this.productChanged.emit();
91
91
  }
92
92
  }
93
+ componentDidRender() {
94
+ if (!this.cardHasEmitted && this.allProductData[this.selectedProductCode]) {
95
+ this.cardLoaded.emit();
96
+ this.cardHasEmitted = true;
97
+ }
98
+ }
93
99
  pushDataToDropdownOptions() {
94
100
  this.options.forEach(option => {
95
101
  this.dropdownOptions.push({
@@ -234,10 +240,6 @@ const TetCompareCardV2$1 = /*@__PURE__*/ proxyCustomElement(class TetCompareCard
234
240
  if (!comparisonData) {
235
241
  return this.renderLoader();
236
242
  }
237
- if (!this.cardHasEmitted) {
238
- this.cardLoaded.emit();
239
- this.cardHasEmitted = true;
240
- }
241
243
  // Get data for rendering
242
244
  const contractTermData = this.selectedContractTerm();
243
245
  const overridePoductAttribute = comparisonData === null || comparisonData === void 0 ? void 0 : comparisonData.attributes.find(attr => attr.key === 'overrideProductName');
@@ -82,6 +82,12 @@ const TetCompareCardV2 = class {
82
82
  this.productChanged.emit();
83
83
  }
84
84
  }
85
+ componentDidRender() {
86
+ if (!this.cardHasEmitted && this.allProductData[this.selectedProductCode]) {
87
+ this.cardLoaded.emit();
88
+ this.cardHasEmitted = true;
89
+ }
90
+ }
85
91
  pushDataToDropdownOptions() {
86
92
  this.options.forEach(option => {
87
93
  this.dropdownOptions.push({
@@ -226,10 +232,6 @@ const TetCompareCardV2 = class {
226
232
  if (!comparisonData) {
227
233
  return this.renderLoader();
228
234
  }
229
- if (!this.cardHasEmitted) {
230
- this.cardLoaded.emit();
231
- this.cardHasEmitted = true;
232
- }
233
235
  // Get data for rendering
234
236
  const contractTermData = this.selectedContractTerm();
235
237
  const overridePoductAttribute = comparisonData === null || comparisonData === void 0 ? void 0 : comparisonData.attributes.find(attr => attr.key === 'overrideProductName');