@yoobic/yobi 7.7.81 → 7.7.82

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.
@@ -1022,7 +1022,7 @@ const YooEntityComponent = class {
1022
1022
  return null;
1023
1023
  }
1024
1024
  renderCardList(extraClasses) {
1025
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11;
1025
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12;
1026
1026
  let entry = {};
1027
1027
  if (this.entityType === 'missions' || (this.entityType === 'missiondatas' && ((_b = (_a = this.item) === null || _a === void 0 ? void 0 : _a.mission) === null || _b === void 0 ? void 0 : _b.type) === 'kanban')) {
1028
1028
  let mission = this.item;
@@ -1300,7 +1300,8 @@ const YooEntityComponent = class {
1300
1300
  avatarFrame: file.imgSrc ? 'rounded-square' : 'square',
1301
1301
  avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'large',
1302
1302
  allowCustomHtml: true,
1303
- subheadings: this.isAutocompleteSelected() ? null : rrule.compact([directory + pipe.pipes.fileSize.transform(file.size), (file.highlight || []).join(', ')]) // , //, file.mimeType
1303
+ forceTextHeading: ((_s = file === null || file === void 0 ? void 0 : file.highlight) === null || _s === void 0 ? void 0 : _s.length) > 0,
1304
+ subheadings: this.isAutocompleteSelected() ? null : rrule.compact([directory + pipe.pipes.fileSize.transform(file.size), ...(file.highlight || [])]) // , //, file.mimeType
1304
1305
  // badges: [{ iconLeft: getIcon(file), cssClass: 'tag small round dark' }]
1305
1306
  };
1306
1307
  }
@@ -1414,15 +1415,15 @@ const YooEntityComponent = class {
1414
1415
  }
1415
1416
  else if (this.entityType === 'language') {
1416
1417
  entry = {
1417
- heading: ((_s = this.item) === null || _s === void 0 ? void 0 : _s._id) ? rrule.translate(this.item._id.toUpperCase()) : rrule.translate(this.item.toUpperCase()),
1418
- flag: this.host.classList.contains('hide-icon') ? null : ((_t = this.item) === null || _t === void 0 ? void 0 : _t._id) ? rrule.getLanguageFlag(this.item._id) : rrule.getLanguageFlag(this.item)
1418
+ heading: ((_t = this.item) === null || _t === void 0 ? void 0 : _t._id) ? rrule.translate(this.item._id.toUpperCase()) : rrule.translate(this.item.toUpperCase()),
1419
+ flag: this.host.classList.contains('hide-icon') ? null : ((_u = this.item) === null || _u === void 0 ? void 0 : _u._id) ? rrule.getLanguageFlag(this.item._id) : rrule.getLanguageFlag(this.item)
1419
1420
  };
1420
1421
  }
1421
1422
  else if (this.entityType === 'waitlistvisit') {
1422
1423
  const visit = this.item;
1423
1424
  const tagElements = operationHelpers.getWaitlistVisitTags(visit);
1424
1425
  entry = {
1425
- heading: ((_u = visit.name) === null || _u === void 0 ? void 0 : _u.startsWith('NOINFO')) ? rrule.translate('NOINFO') : visit.name,
1426
+ heading: ((_v = visit.name) === null || _v === void 0 ? void 0 : _v.startsWith('NOINFO')) ? rrule.translate('NOINFO') : visit.name,
1426
1427
  tagElements
1427
1428
  };
1428
1429
  if (!rrule.isWeb(this.host)) {
@@ -1437,7 +1438,7 @@ const YooEntityComponent = class {
1437
1438
  else if (this.entityType === 'waitlistcustomer') {
1438
1439
  const customer = this.item;
1439
1440
  entry = {
1440
- heading: ((_v = customer.name) === null || _v === void 0 ? void 0 : _v.startsWith('NOINFO')) ? rrule.translate('NOINFO') : customer.name,
1441
+ heading: ((_w = customer.name) === null || _w === void 0 ? void 0 : _w.startsWith('NOINFO')) ? rrule.translate('NOINFO') : customer.name,
1441
1442
  subheadings: rrule.compact([customer.phone, customer.email])
1442
1443
  };
1443
1444
  }
@@ -1540,7 +1541,7 @@ const YooEntityComponent = class {
1540
1541
  subheadings: this.isAutocompleteSelected() ? null : group.description ? [group.description] : null,
1541
1542
  iconText: group.title || group.name || group._id,
1542
1543
  heading: group.title || group.name || group._id,
1543
- imgSrc: (_w = group.icon) === null || _w === void 0 ? void 0 : _w._downloadURL
1544
+ imgSrc: (_x = group.icon) === null || _x === void 0 ? void 0 : _x._downloadURL
1544
1545
  };
1545
1546
  entry.subheadings = group.subheadings || entry.subheadings;
1546
1547
  }
@@ -1550,7 +1551,7 @@ const YooEntityComponent = class {
1550
1551
  avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'medium',
1551
1552
  iconText: tenant.title || tenant.name,
1552
1553
  heading: (tenant.title || tenant.name || '').toUpperCase(),
1553
- imgSrc: (_x = tenant.icon) === null || _x === void 0 ? void 0 : _x._downloadURL,
1554
+ imgSrc: (_y = tenant.icon) === null || _y === void 0 ? void 0 : _y._downloadURL,
1554
1555
  subheadings: this.isAutocompleteSelected() ? null : rrule.compact([tenant.description])
1555
1556
  };
1556
1557
  }
@@ -1561,7 +1562,7 @@ const YooEntityComponent = class {
1561
1562
  avatarFrame: 'square',
1562
1563
  iconText: model.title || model.name,
1563
1564
  heading: model.title || model.name,
1564
- imgSrc: ((_y = model.background) === null || _y === void 0 ? void 0 : _y._downloadURL) || model.background,
1565
+ imgSrc: ((_z = model.background) === null || _z === void 0 ? void 0 : _z._downloadURL) || model.background,
1565
1566
  subheadings: this.isAutocompleteSelected() ? null : rrule.compact([model.shortDescription])
1566
1567
  };
1567
1568
  }
@@ -1628,7 +1629,7 @@ const YooEntityComponent = class {
1628
1629
  else if (this.entityType === 'violetproducts') {
1629
1630
  const product = this.item;
1630
1631
  let subheadings = [product.description];
1631
- if (((_z = this.item.offers) === null || _z === void 0 ? void 0 : _z.length) && ((_0 = this.item.offers[0].skus) === null || _0 === void 0 ? void 0 : _0.length) && ((_1 = this.item.offers[0].skus[0]) === null || _1 === void 0 ? void 0 : _1.sale_price)) {
1632
+ if (((_0 = this.item.offers) === null || _0 === void 0 ? void 0 : _0.length) && ((_1 = this.item.offers[0].skus) === null || _1 === void 0 ? void 0 : _1.length) && ((_2 = this.item.offers[0].skus[0]) === null || _2 === void 0 ? void 0 : _2.sale_price)) {
1632
1633
  subheadings = [pipe.pipes.currency.transform(this.item.offers[0].skus[0].sale_price / 100, false, this.item.offers[0].skus[0].currency, true)];
1633
1634
  }
1634
1635
  if (!product.available) {
@@ -1657,7 +1658,7 @@ const YooEntityComponent = class {
1657
1658
  };
1658
1659
  }
1659
1660
  else if (this.entityType === 'violetbasketitems') {
1660
- const sku = (_2 = this.item) === null || _2 === void 0 ? void 0 : _2.sku;
1661
+ const sku = (_3 = this.item) === null || _3 === void 0 ? void 0 : _3.sku;
1661
1662
  const price = (sku.sale_price * (this.item.quantity || 1)) / 100;
1662
1663
  const subheadings = [pipe.pipes.currency.transform(price, false, sku.currency, true)];
1663
1664
  entry = {
@@ -1727,9 +1728,9 @@ const YooEntityComponent = class {
1727
1728
  subheadings: [
1728
1729
  productBatch.product ? productBatch.product.reference : '',
1729
1730
  ...(rrule.getSession().user && rrule.getSession().user.locationRef === productBatch.locationRef
1730
- ? rrule.compact([((_3 = this.extraClass) === null || _3 === void 0 ? void 0 : _3.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
1731
+ ? rrule.compact([((_4 = this.extraClass) === null || _4 === void 0 ? void 0 : _4.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
1731
1732
  : productBatch.location && productBatch.location.title
1732
- ? [productBatch.location.title + ' - ' + (((_4 = productBatch.aisle) === null || _4 === void 0 ? void 0 : _4.title) || '')]
1733
+ ? [productBatch.location.title + ' - ' + (((_5 = productBatch.aisle) === null || _5 === void 0 ? void 0 : _5.title) || '')]
1733
1734
  : [])
1734
1735
  ],
1735
1736
  tags: productBatch.tags,
@@ -1773,7 +1774,7 @@ const YooEntityComponent = class {
1773
1774
  heading: product.title,
1774
1775
  subheadings,
1775
1776
  date: rrule.isPresent(this.item.description) ? this.item.description : null,
1776
- imgSrc: ((_5 = product === null || product === void 0 ? void 0 : product.image) === null || _5 === void 0 ? void 0 : _5._downloadURL) ? product.image._downloadURL : null,
1777
+ imgSrc: ((_6 = product === null || product === void 0 ? void 0 : product.image) === null || _6 === void 0 ? void 0 : _6._downloadURL) ? product.image._downloadURL : null,
1777
1778
  avatarFrame: 'square',
1778
1779
  // keep it explicit here to prevent to be overwritten by the autocomplete, with which the card-list is used in combination with, and that changes the size of the avatar to 'small' when only one product is selected
1779
1780
  // this case is described into the form-entity-value-pairs.spec tests
@@ -2057,7 +2058,7 @@ const YooEntityComponent = class {
2057
2058
  avatarFrame: 'square'
2058
2059
  };
2059
2060
  }
2060
- else if (this.entityType !== 'tag' && ((_7 = (_6 = this.customModel) === null || _6 === void 0 ? void 0 : _6.appearance) === null || _7 === void 0 ? void 0 : _7.size)) {
2061
+ else if (this.entityType !== 'tag' && ((_8 = (_7 = this.customModel) === null || _7 === void 0 ? void 0 : _7.appearance) === null || _8 === void 0 ? void 0 : _8.size)) {
2061
2062
  entry = {};
2062
2063
  this.customModel.appearance.forEach((value, key) => {
2063
2064
  if (key === 'displayTypes') {
@@ -2098,7 +2099,7 @@ const YooEntityComponent = class {
2098
2099
  else if (this.entityType === 'tiles') {
2099
2100
  const tile = this.item;
2100
2101
  entry = {
2101
- heading: tile.title || ((_8 = tile.page) === null || _8 === void 0 ? void 0 : _8.name),
2102
+ heading: tile.title || ((_9 = tile.page) === null || _9 === void 0 ? void 0 : _9.name),
2102
2103
  imgSrc: tile.photo,
2103
2104
  icon: tile.icon,
2104
2105
  subheadings: rrule.compact([]),
@@ -2209,7 +2210,7 @@ const YooEntityComponent = class {
2209
2210
  !this.isAutocompleteSelected() &&
2210
2211
  !this.hideUIFields &&
2211
2212
  this.customModel &&
2212
- ((_10 = (_9 = this.customModel.formFields) === null || _9 === void 0 ? void 0 : _9.filter((f) => f.showInCard)) === null || _10 === void 0 ? void 0 : _10.length) > 0) {
2213
+ ((_11 = (_10 = this.customModel.formFields) === null || _10 === void 0 ? void 0 : _10.filter((f) => f.showInCard)) === null || _11 === void 0 ? void 0 : _11.length) > 0) {
2213
2214
  entry.uiFields = {
2214
2215
  fields: this.customModel.formFields.filter((f) => f.showInCard),
2215
2216
  data: this.item
@@ -2270,7 +2271,7 @@ const YooEntityComponent = class {
2270
2271
  [extraClasses]: true,
2271
2272
  [this.entityType]: this.entityType !== undefined,
2272
2273
  'form-permission': this.host.classList.contains('form-permission')
2273
- } }, ((_11 = this.inlineActions) === null || _11 === void 0 ? void 0 : _11.length) > 0 && (index.h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
2274
+ } }, ((_12 = this.inlineActions) === null || _12 === void 0 ? void 0 : _12.length) > 0 && (index.h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
2274
2275
  return (index.h("span", { class: action.cssClass, onClick: () => (action.handler ? action.handler(this.item) : null) }, action.text));
2275
2276
  })))));
2276
2277
  }
@@ -102153,7 +102153,7 @@ const YooCardListComponent = class {
102153
102153
  if (this.entry.isCommentMedia && this.isRenderBadgeOutside) {
102154
102154
  return;
102155
102155
  }
102156
- if (rrule.isCloudinaryLink(item) || item.endsWith('.gif')) {
102156
+ if (rrule.isCloudinaryLink(item) || item.endsWith('.gif') && !this.entry.forceTextHeading) {
102157
102157
  return this.renderMedia(item);
102158
102158
  }
102159
102159
  else {
@@ -274,7 +274,7 @@ export class YooCardListComponent {
274
274
  if (this.entry.isCommentMedia && this.isRenderBadgeOutside) {
275
275
  return;
276
276
  }
277
- if (isCloudinaryLink(item) || item.endsWith('.gif')) {
277
+ if (isCloudinaryLink(item) || item.endsWith('.gif') && !this.entry.forceTextHeading) {
278
278
  return this.renderMedia(item);
279
279
  }
280
280
  else {
@@ -598,7 +598,7 @@ export class YooEntityComponent {
598
598
  return null;
599
599
  }
600
600
  renderCardList(extraClasses) {
601
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11;
601
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12;
602
602
  let entry = {};
603
603
  if (this.entityType === 'missions' || (this.entityType === 'missiondatas' && ((_b = (_a = this.item) === null || _a === void 0 ? void 0 : _a.mission) === null || _b === void 0 ? void 0 : _b.type) === 'kanban')) {
604
604
  let mission = this.item;
@@ -876,7 +876,8 @@ export class YooEntityComponent {
876
876
  avatarFrame: file.imgSrc ? 'rounded-square' : 'square',
877
877
  avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'large',
878
878
  allowCustomHtml: true,
879
- subheadings: this.isAutocompleteSelected() ? null : compact([directory + pipes.fileSize.transform(file.size), (file.highlight || []).join(', ')]) // , //, file.mimeType
879
+ forceTextHeading: ((_s = file === null || file === void 0 ? void 0 : file.highlight) === null || _s === void 0 ? void 0 : _s.length) > 0,
880
+ subheadings: this.isAutocompleteSelected() ? null : compact([directory + pipes.fileSize.transform(file.size), ...(file.highlight || [])]) // , //, file.mimeType
880
881
  // badges: [{ iconLeft: getIcon(file), cssClass: 'tag small round dark' }]
881
882
  };
882
883
  }
@@ -990,15 +991,15 @@ export class YooEntityComponent {
990
991
  }
991
992
  else if (this.entityType === 'language') {
992
993
  entry = {
993
- heading: ((_s = this.item) === null || _s === void 0 ? void 0 : _s._id) ? translate(this.item._id.toUpperCase()) : translate(this.item.toUpperCase()),
994
- flag: this.host.classList.contains('hide-icon') ? null : ((_t = this.item) === null || _t === void 0 ? void 0 : _t._id) ? getLanguageFlag(this.item._id) : getLanguageFlag(this.item)
994
+ heading: ((_t = this.item) === null || _t === void 0 ? void 0 : _t._id) ? translate(this.item._id.toUpperCase()) : translate(this.item.toUpperCase()),
995
+ flag: this.host.classList.contains('hide-icon') ? null : ((_u = this.item) === null || _u === void 0 ? void 0 : _u._id) ? getLanguageFlag(this.item._id) : getLanguageFlag(this.item)
995
996
  };
996
997
  }
997
998
  else if (this.entityType === 'waitlistvisit') {
998
999
  const visit = this.item;
999
1000
  const tagElements = getWaitlistVisitTags(visit);
1000
1001
  entry = {
1001
- heading: ((_u = visit.name) === null || _u === void 0 ? void 0 : _u.startsWith('NOINFO')) ? translate('NOINFO') : visit.name,
1002
+ heading: ((_v = visit.name) === null || _v === void 0 ? void 0 : _v.startsWith('NOINFO')) ? translate('NOINFO') : visit.name,
1002
1003
  tagElements
1003
1004
  };
1004
1005
  if (!isWeb(this.host)) {
@@ -1013,7 +1014,7 @@ export class YooEntityComponent {
1013
1014
  else if (this.entityType === 'waitlistcustomer') {
1014
1015
  const customer = this.item;
1015
1016
  entry = {
1016
- heading: ((_v = customer.name) === null || _v === void 0 ? void 0 : _v.startsWith('NOINFO')) ? translate('NOINFO') : customer.name,
1017
+ heading: ((_w = customer.name) === null || _w === void 0 ? void 0 : _w.startsWith('NOINFO')) ? translate('NOINFO') : customer.name,
1017
1018
  subheadings: compact([customer.phone, customer.email])
1018
1019
  };
1019
1020
  }
@@ -1116,7 +1117,7 @@ export class YooEntityComponent {
1116
1117
  subheadings: this.isAutocompleteSelected() ? null : group.description ? [group.description] : null,
1117
1118
  iconText: group.title || group.name || group._id,
1118
1119
  heading: group.title || group.name || group._id,
1119
- imgSrc: (_w = group.icon) === null || _w === void 0 ? void 0 : _w._downloadURL
1120
+ imgSrc: (_x = group.icon) === null || _x === void 0 ? void 0 : _x._downloadURL
1120
1121
  };
1121
1122
  entry.subheadings = group.subheadings || entry.subheadings;
1122
1123
  }
@@ -1126,7 +1127,7 @@ export class YooEntityComponent {
1126
1127
  avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'medium',
1127
1128
  iconText: tenant.title || tenant.name,
1128
1129
  heading: (tenant.title || tenant.name || '').toUpperCase(),
1129
- imgSrc: (_x = tenant.icon) === null || _x === void 0 ? void 0 : _x._downloadURL,
1130
+ imgSrc: (_y = tenant.icon) === null || _y === void 0 ? void 0 : _y._downloadURL,
1130
1131
  subheadings: this.isAutocompleteSelected() ? null : compact([tenant.description])
1131
1132
  };
1132
1133
  }
@@ -1137,7 +1138,7 @@ export class YooEntityComponent {
1137
1138
  avatarFrame: 'square',
1138
1139
  iconText: model.title || model.name,
1139
1140
  heading: model.title || model.name,
1140
- imgSrc: ((_y = model.background) === null || _y === void 0 ? void 0 : _y._downloadURL) || model.background,
1141
+ imgSrc: ((_z = model.background) === null || _z === void 0 ? void 0 : _z._downloadURL) || model.background,
1141
1142
  subheadings: this.isAutocompleteSelected() ? null : compact([model.shortDescription])
1142
1143
  };
1143
1144
  }
@@ -1204,7 +1205,7 @@ export class YooEntityComponent {
1204
1205
  else if (this.entityType === 'violetproducts') {
1205
1206
  const product = this.item;
1206
1207
  let subheadings = [product.description];
1207
- if (((_z = this.item.offers) === null || _z === void 0 ? void 0 : _z.length) && ((_0 = this.item.offers[0].skus) === null || _0 === void 0 ? void 0 : _0.length) && ((_1 = this.item.offers[0].skus[0]) === null || _1 === void 0 ? void 0 : _1.sale_price)) {
1208
+ if (((_0 = this.item.offers) === null || _0 === void 0 ? void 0 : _0.length) && ((_1 = this.item.offers[0].skus) === null || _1 === void 0 ? void 0 : _1.length) && ((_2 = this.item.offers[0].skus[0]) === null || _2 === void 0 ? void 0 : _2.sale_price)) {
1208
1209
  subheadings = [pipes.currency.transform(this.item.offers[0].skus[0].sale_price / 100, false, this.item.offers[0].skus[0].currency, true)];
1209
1210
  }
1210
1211
  if (!product.available) {
@@ -1233,7 +1234,7 @@ export class YooEntityComponent {
1233
1234
  };
1234
1235
  }
1235
1236
  else if (this.entityType === 'violetbasketitems') {
1236
- const sku = (_2 = this.item) === null || _2 === void 0 ? void 0 : _2.sku;
1237
+ const sku = (_3 = this.item) === null || _3 === void 0 ? void 0 : _3.sku;
1237
1238
  const price = (sku.sale_price * (this.item.quantity || 1)) / 100;
1238
1239
  const subheadings = [pipes.currency.transform(price, false, sku.currency, true)];
1239
1240
  entry = {
@@ -1303,9 +1304,9 @@ export class YooEntityComponent {
1303
1304
  subheadings: [
1304
1305
  productBatch.product ? productBatch.product.reference : '',
1305
1306
  ...(getSession().user && getSession().user.locationRef === productBatch.locationRef
1306
- ? compact([((_3 = this.extraClass) === null || _3 === void 0 ? void 0 : _3.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
1307
+ ? compact([((_4 = this.extraClass) === null || _4 === void 0 ? void 0 : _4.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
1307
1308
  : productBatch.location && productBatch.location.title
1308
- ? [productBatch.location.title + ' - ' + (((_4 = productBatch.aisle) === null || _4 === void 0 ? void 0 : _4.title) || '')]
1309
+ ? [productBatch.location.title + ' - ' + (((_5 = productBatch.aisle) === null || _5 === void 0 ? void 0 : _5.title) || '')]
1309
1310
  : [])
1310
1311
  ],
1311
1312
  tags: productBatch.tags,
@@ -1349,7 +1350,7 @@ export class YooEntityComponent {
1349
1350
  heading: product.title,
1350
1351
  subheadings,
1351
1352
  date: isPresent(this.item.description) ? this.item.description : null,
1352
- imgSrc: ((_5 = product === null || product === void 0 ? void 0 : product.image) === null || _5 === void 0 ? void 0 : _5._downloadURL) ? product.image._downloadURL : null,
1353
+ imgSrc: ((_6 = product === null || product === void 0 ? void 0 : product.image) === null || _6 === void 0 ? void 0 : _6._downloadURL) ? product.image._downloadURL : null,
1353
1354
  avatarFrame: 'square',
1354
1355
  // keep it explicit here to prevent to be overwritten by the autocomplete, with which the card-list is used in combination with, and that changes the size of the avatar to 'small' when only one product is selected
1355
1356
  // this case is described into the form-entity-value-pairs.spec tests
@@ -1637,7 +1638,7 @@ export class YooEntityComponent {
1637
1638
  avatarFrame: 'square'
1638
1639
  };
1639
1640
  }
1640
- else if (this.entityType !== 'tag' && ((_7 = (_6 = this.customModel) === null || _6 === void 0 ? void 0 : _6.appearance) === null || _7 === void 0 ? void 0 : _7.size)) {
1641
+ else if (this.entityType !== 'tag' && ((_8 = (_7 = this.customModel) === null || _7 === void 0 ? void 0 : _7.appearance) === null || _8 === void 0 ? void 0 : _8.size)) {
1641
1642
  entry = {};
1642
1643
  this.customModel.appearance.forEach((value, key) => {
1643
1644
  if (key === 'displayTypes') {
@@ -1678,7 +1679,7 @@ export class YooEntityComponent {
1678
1679
  else if (this.entityType === 'tiles') {
1679
1680
  const tile = this.item;
1680
1681
  entry = {
1681
- heading: tile.title || ((_8 = tile.page) === null || _8 === void 0 ? void 0 : _8.name),
1682
+ heading: tile.title || ((_9 = tile.page) === null || _9 === void 0 ? void 0 : _9.name),
1682
1683
  imgSrc: tile.photo,
1683
1684
  icon: tile.icon,
1684
1685
  subheadings: compact([]),
@@ -1789,7 +1790,7 @@ export class YooEntityComponent {
1789
1790
  !this.isAutocompleteSelected() &&
1790
1791
  !this.hideUIFields &&
1791
1792
  this.customModel &&
1792
- ((_10 = (_9 = this.customModel.formFields) === null || _9 === void 0 ? void 0 : _9.filter((f) => f.showInCard)) === null || _10 === void 0 ? void 0 : _10.length) > 0) {
1793
+ ((_11 = (_10 = this.customModel.formFields) === null || _10 === void 0 ? void 0 : _10.filter((f) => f.showInCard)) === null || _11 === void 0 ? void 0 : _11.length) > 0) {
1793
1794
  entry.uiFields = {
1794
1795
  fields: this.customModel.formFields.filter((f) => f.showInCard),
1795
1796
  data: this.item
@@ -1850,7 +1851,7 @@ export class YooEntityComponent {
1850
1851
  [extraClasses]: true,
1851
1852
  [this.entityType]: this.entityType !== undefined,
1852
1853
  'form-permission': this.host.classList.contains('form-permission')
1853
- } }, ((_11 = this.inlineActions) === null || _11 === void 0 ? void 0 : _11.length) > 0 && (h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
1854
+ } }, ((_12 = this.inlineActions) === null || _12 === void 0 ? void 0 : _12.length) > 0 && (h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
1854
1855
  return (h("span", { class: action.cssClass, onClick: () => (action.handler ? action.handler(this.item) : null) }, action.text));
1855
1856
  })))));
1856
1857
  }