@yoobic/yobi 8.3.0-43 → 8.3.0-44

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 (62) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/{entities-helpers-e77cfd61.js → entities-helpers-99fc4a8a.js} +29 -1
  3. package/dist/cjs/{filters-helpers-536b7b88.js → filters-helpers-63712f8d.js} +6 -13
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/yoo-detail-bar.cjs.entry.js +1 -1
  6. package/dist/cjs/yoo-entity-query-builder.cjs.entry.js +1 -1
  7. package/dist/cjs/yoo-entity-search-filters.cjs.entry.js +1 -1
  8. package/dist/cjs/yoo-entity.cjs.entry.js +47 -70
  9. package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +4 -3
  10. package/dist/cjs/yoo-form-creator-workflow-step.cjs.entry.js +1 -1
  11. package/dist/cjs/yoo-form-dynamic.cjs.entry.js +1 -0
  12. package/dist/cjs/yoo-form-missionfield.cjs.entry.js +7 -1
  13. package/dist/cjs/yoo-form-text-editor.cjs.entry.js +1 -1
  14. package/dist/cjs/yoo-grid.cjs.entry.js +1 -1
  15. package/dist/cjs/yoo-section-list.cjs.entry.js +3 -3
  16. package/dist/cjs/yoo-slides-media.cjs.entry.js +1 -1
  17. package/dist/cjs/yoo-user-profile.cjs.entry.js +1 -1
  18. package/dist/collection/components/entities/entity/entity.js +47 -70
  19. package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +27 -5
  20. package/dist/collection/components/form/form-dynamic/form-dynamic.js +1 -0
  21. package/dist/collection/components/form/form-missionfield/form-missionfield.js +7 -1
  22. package/dist/collection/feature-learn/learning/section-list/section-list.js +3 -3
  23. package/dist/collection/utils/helpers/entities-helpers.js +29 -2
  24. package/dist/collection/utils/helpers/filters-helpers.js +6 -13
  25. package/dist/design-system/design-system.esm.js +1 -1
  26. package/dist/{esm/entities-helpers-9ea378f0.js → design-system/entities-helpers-67ff3fa4.js} +30 -3
  27. package/dist/{esm/filters-helpers-41224cde.js → design-system/filters-helpers-ded9ed03.js} +6 -13
  28. package/dist/design-system/yoo-detail-bar.entry.js +1 -1
  29. package/dist/design-system/yoo-entity-query-builder.entry.js +1 -1
  30. package/dist/design-system/yoo-entity-search-filters.entry.js +1 -1
  31. package/dist/design-system/yoo-entity.entry.js +47 -70
  32. package/dist/design-system/yoo-form-autocomplete.entry.js +4 -3
  33. package/dist/design-system/yoo-form-creator-workflow-step.entry.js +1 -1
  34. package/dist/design-system/yoo-form-dynamic.entry.js +1 -0
  35. package/dist/design-system/yoo-form-missionfield.entry.js +7 -1
  36. package/dist/design-system/yoo-form-text-editor.entry.js +1 -1
  37. package/dist/design-system/yoo-grid.entry.js +1 -1
  38. package/dist/design-system/yoo-section-list.entry.js +4 -4
  39. package/dist/design-system/yoo-slides-media.entry.js +1 -1
  40. package/dist/design-system/yoo-user-profile.entry.js +1 -1
  41. package/dist/esm/design-system.js +1 -1
  42. package/dist/{design-system/entities-helpers-9ea378f0.js → esm/entities-helpers-67ff3fa4.js} +30 -3
  43. package/dist/{design-system/filters-helpers-41224cde.js → esm/filters-helpers-ded9ed03.js} +6 -13
  44. package/dist/esm/loader.js +1 -1
  45. package/dist/esm/yoo-detail-bar.entry.js +1 -1
  46. package/dist/esm/yoo-entity-query-builder.entry.js +1 -1
  47. package/dist/esm/yoo-entity-search-filters.entry.js +1 -1
  48. package/dist/esm/yoo-entity.entry.js +47 -70
  49. package/dist/esm/yoo-form-autocomplete.entry.js +4 -3
  50. package/dist/esm/yoo-form-creator-workflow-step.entry.js +1 -1
  51. package/dist/esm/yoo-form-dynamic.entry.js +1 -0
  52. package/dist/esm/yoo-form-missionfield.entry.js +7 -1
  53. package/dist/esm/yoo-form-text-editor.entry.js +1 -1
  54. package/dist/esm/yoo-grid.entry.js +1 -1
  55. package/dist/esm/yoo-section-list.entry.js +4 -4
  56. package/dist/esm/yoo-slides-media.entry.js +1 -1
  57. package/dist/esm/yoo-user-profile.entry.js +1 -1
  58. package/dist/types/components/form/form-autocomplete/form-autocomplete.d.ts +1 -1
  59. package/dist/types/components.d.ts +2 -0
  60. package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/form-field/form-field.interface.d.ts +1 -0
  61. package/dist/types/utils/helpers/entities-helpers.d.ts +1 -0
  62. package/package.json +1 -1
@@ -8,7 +8,7 @@ import { getCampaignStateTags, getCampaignTemplateTags, getMissionDataStateTags,
8
8
  import { getMissionAddress, getMissionStateTags, getMissionUniqueKey, mapMissionToCardInboxEntry } from '../../../feature-operate/mission/helpers/missions-helpers';
9
9
  import { getButton } from '../../../utils/button.factory';
10
10
  import { execHandlerAndStopEvent, getAppContext, getNotificationIcon } from '../../../utils/helpers/common-helpers';
11
- import { getCalendarCourseDueDate, getFolderIcon, onUserClick, parseEntityCommentsForCardList, parseEntityForCardChat, parseEntityForCardMedia } from '../../../utils/helpers/entities-helpers';
11
+ import { getCalendarCourseDueDate, getFolderIcon, onUserClick, parseEntityCommentsForCardList, parseEntityForCardChat, parseEntityForCardMedia, parseFolderForCardList } from '../../../utils/helpers/entities-helpers';
12
12
  import { createThemedClasses } from '../../../utils/ionic/theme';
13
13
  import { entitySimpleCardLists } from './constants';
14
14
  import { ChannelAvatarCard, ChannelsAvatarCard, ContactAvatarCard, LocationAvatarCard } from './utils/card-avatar.factory';
@@ -761,7 +761,7 @@ export class YooEntityComponent {
761
761
  return address;
762
762
  }
763
763
  renderCardList(extraClasses) {
764
- 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, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66;
764
+ 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, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64;
765
765
  let entry = {};
766
766
  if (this.entityMapping) {
767
767
  entry = this.entityMapping(this.item, this.entityType, this.displayType);
@@ -1090,31 +1090,8 @@ export class YooEntityComponent {
1090
1090
  };
1091
1091
  }
1092
1092
  else if (this.entityType === 'folders' || (this.entityType === 'filesFolders' && this.item.fftype === 'folder')) {
1093
- const f = this.item;
1094
1093
  extraClasses += ' folders ';
1095
- const imgSrc = f.imgSrc || ((_4 = f.background) === null || _4 === void 0 ? void 0 : _4._downloadURL);
1096
- entry = {
1097
- heading: f.name,
1098
- imgSrc,
1099
- cloudinaryOptions: isVideo(imgSrc) ? { fallbackToOriginal: true, gif: true, videoEdit: 3 } : null,
1100
- avatarSize: 'large',
1101
- avatarIconSize: this.entityType === 'folders' ? 'extra-large' : 'large',
1102
- avatarFrame: 'transparent-square',
1103
- avatarColor: f.color ? `${f.color}` : getCssColor('app-color-80'),
1104
- icon: getFolderIcon(f),
1105
- tagElements: compact(f.tags).map((t) => ({ innerHTML: t, color: 'stable-light' })),
1106
- subheadings: []
1107
- };
1108
- if (f.stats) {
1109
- entry.subheadings = [
1110
- (((_5 = f.container) === null || _5 === void 0 ? void 0 : _5.name) ? f.container.name + ' ' : '') +
1111
- f.stats
1112
- .map((s) => {
1113
- return '<span>' + translate(s.title) + ': ' + s.value.toString() + '</span>';
1114
- })
1115
- .join()
1116
- ];
1117
- }
1094
+ entry = parseFolderForCardList(this.item, this.entityType);
1118
1095
  }
1119
1096
  else if (this.entityType === 'unsplash') {
1120
1097
  const unsplash = this.item;
@@ -1160,8 +1137,8 @@ export class YooEntityComponent {
1160
1137
  else if (this.entityType === 'publicAPITokens') {
1161
1138
  const token = this.item;
1162
1139
  entry = {
1163
- heading: (_6 = token === null || token === void 0 ? void 0 : token.user) === null || _6 === void 0 ? void 0 : _6.username,
1164
- subheadings: [(_7 = token === null || token === void 0 ? void 0 : token._tenant) === null || _7 === void 0 ? void 0 : _7.name],
1140
+ heading: (_4 = token === null || token === void 0 ? void 0 : token.user) === null || _4 === void 0 ? void 0 : _4.username,
1141
+ subheadings: [(_5 = token === null || token === void 0 ? void 0 : token._tenant) === null || _5 === void 0 ? void 0 : _5.name],
1165
1142
  users: [token === null || token === void 0 ? void 0 : token.user]
1166
1143
  };
1167
1144
  }
@@ -1202,15 +1179,15 @@ export class YooEntityComponent {
1202
1179
  }
1203
1180
  else if (this.entityType === 'language') {
1204
1181
  entry = {
1205
- heading: ((_8 = this.item) === null || _8 === void 0 ? void 0 : _8.title) ? translate(this.item.title.toUpperCase()) : ((_9 = this.item) === null || _9 === void 0 ? void 0 : _9._id) ? translate(this.item._id.toUpperCase()) : translate(this.item.toUpperCase()),
1206
- flag: this.host.classList.contains('hide-icon') ? null : ((_10 = this.item) === null || _10 === void 0 ? void 0 : _10._id) ? getLanguageFlag(this.item._id) : getLanguageFlag(this.item)
1182
+ heading: ((_6 = this.item) === null || _6 === void 0 ? void 0 : _6.title) ? translate(this.item.title.toUpperCase()) : ((_7 = this.item) === null || _7 === void 0 ? void 0 : _7._id) ? translate(this.item._id.toUpperCase()) : translate(this.item.toUpperCase()),
1183
+ flag: this.host.classList.contains('hide-icon') ? null : ((_8 = this.item) === null || _8 === void 0 ? void 0 : _8._id) ? getLanguageFlag(this.item._id) : getLanguageFlag(this.item)
1207
1184
  };
1208
1185
  }
1209
1186
  else if (this.entityType === 'waitlistvisit') {
1210
1187
  const visit = this.item;
1211
1188
  const tagElements = getWaitlistVisitTags(visit);
1212
1189
  entry = {
1213
- heading: ((_11 = visit.name) === null || _11 === void 0 ? void 0 : _11.startsWith('NOINFO')) ? translate('NOINFO') : visit.name,
1190
+ heading: ((_9 = visit.name) === null || _9 === void 0 ? void 0 : _9.startsWith('NOINFO')) ? translate('NOINFO') : visit.name,
1214
1191
  tagElements
1215
1192
  };
1216
1193
  if (!isWeb(this.host)) {
@@ -1225,7 +1202,7 @@ export class YooEntityComponent {
1225
1202
  else if (this.entityType === 'waitlistcustomer') {
1226
1203
  const customer = this.item;
1227
1204
  entry = {
1228
- heading: ((_12 = customer.name) === null || _12 === void 0 ? void 0 : _12.startsWith('NOINFO')) ? translate('NOINFO') : customer.name,
1205
+ heading: ((_10 = customer.name) === null || _10 === void 0 ? void 0 : _10.startsWith('NOINFO')) ? translate('NOINFO') : customer.name,
1229
1206
  subheadings: compact([customer.phone, customer.email])
1230
1207
  };
1231
1208
  }
@@ -1322,7 +1299,7 @@ export class YooEntityComponent {
1322
1299
  subheadings: this.isAutocompleteSelected() ? null : group.description ? [group.description] : null,
1323
1300
  iconText: group.title || group.name || group._id,
1324
1301
  heading: group.title || group.name || group._id,
1325
- imgSrc: (_13 = group.icon) === null || _13 === void 0 ? void 0 : _13._downloadURL
1302
+ imgSrc: (_11 = group.icon) === null || _11 === void 0 ? void 0 : _11._downloadURL
1326
1303
  };
1327
1304
  entry.subheadings = group.subheadings || entry.subheadings;
1328
1305
  }
@@ -1332,7 +1309,7 @@ export class YooEntityComponent {
1332
1309
  avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'medium',
1333
1310
  iconText: tenant.title || tenant.name,
1334
1311
  heading: (tenant.title || tenant.name || '').toUpperCase(),
1335
- imgSrc: (_14 = tenant.icon) === null || _14 === void 0 ? void 0 : _14._downloadURL,
1312
+ imgSrc: (_12 = tenant.icon) === null || _12 === void 0 ? void 0 : _12._downloadURL,
1336
1313
  subheadings: this.isAutocompleteSelected() ? null : compact([tenant.description])
1337
1314
  };
1338
1315
  }
@@ -1343,7 +1320,7 @@ export class YooEntityComponent {
1343
1320
  avatarFrame: 'square',
1344
1321
  iconText: translateMulti(model.title || model.name),
1345
1322
  heading: translateMulti(model.title || model.name),
1346
- imgSrc: ((_15 = model.background) === null || _15 === void 0 ? void 0 : _15._downloadURL) || model.background,
1323
+ imgSrc: ((_13 = model.background) === null || _13 === void 0 ? void 0 : _13._downloadURL) || model.background,
1347
1324
  subheadings: this.isAutocompleteSelected() ? null : compact([translateMulti(model.shortDescription)])
1348
1325
  };
1349
1326
  }
@@ -1352,10 +1329,10 @@ export class YooEntityComponent {
1352
1329
  entry = {
1353
1330
  heading: getUserDisplayName(filter.user),
1354
1331
  subheadings: compact([
1355
- ((_16 = filter.locations) === null || _16 === void 0 ? void 0 : _16.length) > 0
1332
+ ((_14 = filter.locations) === null || _14 === void 0 ? void 0 : _14.length) > 0
1356
1333
  ? filter.locations.length.toLocaleString() + ' ' + translate(filter.locations.length > 1 ? 'LOCATIONS' : 'LOCATION')
1357
1334
  : null,
1358
- ((_17 = filter.locationtypes) === null || _17 === void 0 ? void 0 : _17.length) > 0
1335
+ ((_15 = filter.locationtypes) === null || _15 === void 0 ? void 0 : _15.length) > 0
1359
1336
  ? filter.locationtypes.length.toLocaleString() + ' ' + translate(filter.locationtypes.length > 1 ? 'LOCATIONTYPES' : 'LOCATIONTYPE')
1360
1337
  : null
1361
1338
  ]),
@@ -1379,8 +1356,8 @@ export class YooEntityComponent {
1379
1356
  entry = {
1380
1357
  heading: catalog.title,
1381
1358
  tags: this.isAutocompleteSelected() ? null : groupsResolver(catalog.group),
1382
- icon: ((_18 = catalog.image) === null || _18 === void 0 ? void 0 : _18._downloadURL) ? null : 'catalogue',
1383
- imgSrc: ((_19 = catalog.image) === null || _19 === void 0 ? void 0 : _19._downloadURL) ? catalog.image._downloadURL : null,
1359
+ icon: ((_16 = catalog.image) === null || _16 === void 0 ? void 0 : _16._downloadURL) ? null : 'catalogue',
1360
+ imgSrc: ((_17 = catalog.image) === null || _17 === void 0 ? void 0 : _17._downloadURL) ? catalog.image._downloadURL : null,
1384
1361
  avatarSize: this.isAutocompleteSelected() ? 'small' : 'large'
1385
1362
  };
1386
1363
  }
@@ -1400,8 +1377,8 @@ export class YooEntityComponent {
1400
1377
  ],
1401
1378
  tagElements: product.outofstock ? [{ innerHTML: translate('OUTOFSTOCK'), color: 'danger' }] : null,
1402
1379
  tags: this.isAutocompleteSelected() || isWeb(this.host) ? null : product.tags,
1403
- icon: ((_20 = product.image) === null || _20 === void 0 ? void 0 : _20._downloadURL) ? null : 'photo-library',
1404
- imgSrc: ((_21 = product.image) === null || _21 === void 0 ? void 0 : _21._downloadURL) ? product.image._downloadURL : null,
1380
+ icon: ((_18 = product.image) === null || _18 === void 0 ? void 0 : _18._downloadURL) ? null : 'photo-library',
1381
+ imgSrc: ((_19 = product.image) === null || _19 === void 0 ? void 0 : _19._downloadURL) ? product.image._downloadURL : null,
1405
1382
  avatarSize: this.isHistory || this.host.classList.contains('simple') ? 'large' : this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'extra-large',
1406
1383
  avatarFrame: 'square',
1407
1384
  allowCustomHtml: true
@@ -1410,7 +1387,7 @@ export class YooEntityComponent {
1410
1387
  else if (this.entityType === 'violetproducts') {
1411
1388
  const product = this.item;
1412
1389
  let subheadings = [product.description];
1413
- if (((_22 = this.item.offers) === null || _22 === void 0 ? void 0 : _22.length) && ((_23 = this.item.offers[0].skus) === null || _23 === void 0 ? void 0 : _23.length) && ((_24 = this.item.offers[0].skus[0]) === null || _24 === void 0 ? void 0 : _24.sale_price)) {
1390
+ if (((_20 = this.item.offers) === null || _20 === void 0 ? void 0 : _20.length) && ((_21 = this.item.offers[0].skus) === null || _21 === void 0 ? void 0 : _21.length) && ((_22 = this.item.offers[0].skus[0]) === null || _22 === void 0 ? void 0 : _22.sale_price)) {
1414
1391
  subheadings = [pipes.currency.transform(this.item.offers[0].skus[0].sale_price / 100, { strictPrecision: false, customSymbol: this.item.offers[0].skus[0].currency, forceSymbol: true })];
1415
1392
  }
1416
1393
  if (!product.available) {
@@ -1438,7 +1415,7 @@ export class YooEntityComponent {
1438
1415
  };
1439
1416
  }
1440
1417
  else if (this.entityType === 'violetbasketitems') {
1441
- const sku = (_25 = this.item) === null || _25 === void 0 ? void 0 : _25.sku;
1418
+ const sku = (_23 = this.item) === null || _23 === void 0 ? void 0 : _23.sku;
1442
1419
  const price = (sku.sale_price * (this.item.quantity || 1)) / 100;
1443
1420
  const subheadings = [pipes.currency.transform(price, { strictPrecision: false, customSymbol: sku.currency, forceSymbol: true })];
1444
1421
  entry = {
@@ -1480,11 +1457,11 @@ export class YooEntityComponent {
1480
1457
  entry = {
1481
1458
  heading: arModel.product ? arModel.product.title : 'YOOBICNA',
1482
1459
  tagElements: arModel.experience ? [{ innerHTML: translate((arModel.experience.mode || 'object').toUpperCase()), color: 'dark' }] : null,
1483
- topLeftBadge: ((_26 = arModel.photos) === null || _26 === void 0 ? void 0 : _26.length) > 0 ? arModel.photos.length.toLocaleString() : null,
1460
+ topLeftBadge: ((_24 = arModel.photos) === null || _24 === void 0 ? void 0 : _24.length) > 0 ? arModel.photos.length.toLocaleString() : null,
1484
1461
  subheadings: [arModel.product ? arModel.product.reference : '', arModel.rating ? translate('RATING') + ' ' + arModel.rating.toLocaleString() : null],
1485
1462
  tags: arModel.experience ? [arModel.experience.name] : null,
1486
- icon: ((_28 = (_27 = arModel.product) === null || _27 === void 0 ? void 0 : _27.image) === null || _28 === void 0 ? void 0 : _28._downloadURL) ? null : 'photo-library',
1487
- imgSrc: ((_30 = (_29 = arModel.product) === null || _29 === void 0 ? void 0 : _29.image) === null || _30 === void 0 ? void 0 : _30._downloadURL) ? arModel.product.image._downloadURL : null
1463
+ icon: ((_26 = (_25 = arModel.product) === null || _25 === void 0 ? void 0 : _25.image) === null || _26 === void 0 ? void 0 : _26._downloadURL) ? null : 'photo-library',
1464
+ imgSrc: ((_28 = (_27 = arModel.product) === null || _27 === void 0 ? void 0 : _27.image) === null || _28 === void 0 ? void 0 : _28._downloadURL) ? arModel.product.image._downloadURL : null
1488
1465
  };
1489
1466
  }
1490
1467
  else if (this.entityType === 'algorithm') {
@@ -1507,14 +1484,14 @@ export class YooEntityComponent {
1507
1484
  subheadings: [
1508
1485
  productBatch.product ? productBatch.product.reference : '',
1509
1486
  ...(getSession().user && getSession().user.locationRef === productBatch.locationRef
1510
- ? compact([((_31 = this.extraClass) === null || _31 === void 0 ? void 0 : _31.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
1511
- : ((_32 = productBatch.location) === null || _32 === void 0 ? void 0 : _32.title)
1512
- ? [productBatch.location.title + ' - ' + (((_33 = productBatch.aisle) === null || _33 === void 0 ? void 0 : _33.title) || '')]
1487
+ ? compact([((_29 = this.extraClass) === null || _29 === void 0 ? void 0 : _29.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
1488
+ : ((_30 = productBatch.location) === null || _30 === void 0 ? void 0 : _30.title)
1489
+ ? [productBatch.location.title + ' - ' + (((_31 = productBatch.aisle) === null || _31 === void 0 ? void 0 : _31.title) || '')]
1513
1490
  : [])
1514
1491
  ],
1515
1492
  tags: productBatch.tags,
1516
- icon: productBatch.product.image && ((_35 = (_34 = productBatch.product) === null || _34 === void 0 ? void 0 : _34.image) === null || _35 === void 0 ? void 0 : _35._downloadURL) ? null : 'photo-library',
1517
- imgSrc: ((_37 = (_36 = productBatch.product) === null || _36 === void 0 ? void 0 : _36.image) === null || _37 === void 0 ? void 0 : _37._downloadURL) ? productBatch.product.image._downloadURL : null
1493
+ icon: productBatch.product.image && ((_33 = (_32 = productBatch.product) === null || _32 === void 0 ? void 0 : _32.image) === null || _33 === void 0 ? void 0 : _33._downloadURL) ? null : 'photo-library',
1494
+ imgSrc: ((_35 = (_34 = productBatch.product) === null || _34 === void 0 ? void 0 : _34.image) === null || _35 === void 0 ? void 0 : _35._downloadURL) ? productBatch.product.image._downloadURL : null
1518
1495
  };
1519
1496
  if (productBatch.archived) {
1520
1497
  extraClasses += ' archived ';
@@ -1551,7 +1528,7 @@ export class YooEntityComponent {
1551
1528
  heading: product.title,
1552
1529
  subheadings,
1553
1530
  date: isPresent(this.item.description) ? this.item.description : null,
1554
- imgSrc: ((_38 = product === null || product === void 0 ? void 0 : product.image) === null || _38 === void 0 ? void 0 : _38._downloadURL) ? product.image._downloadURL : null,
1531
+ imgSrc: ((_36 = product === null || product === void 0 ? void 0 : product.image) === null || _36 === void 0 ? void 0 : _36._downloadURL) ? product.image._downloadURL : null,
1555
1532
  avatarFrame: 'square',
1556
1533
  // 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
1557
1534
  // this case is described into the form-entity-value-pairs.spec tests
@@ -1741,10 +1718,10 @@ export class YooEntityComponent {
1741
1718
  else if (this.entityType === 'topusers') {
1742
1719
  entry = {
1743
1720
  heading: `${this.item.firstName} ${this.item.lastName}`,
1744
- rank: (_39 = this.item) === null || _39 === void 0 ? void 0 : _39.rank,
1721
+ rank: (_37 = this.item) === null || _37 === void 0 ? void 0 : _37.rank,
1745
1722
  points: null,
1746
1723
  users: [this.item],
1747
- tagElementsInHeader: { tags: (_40 = this.item) === null || _40 === void 0 ? void 0 : _40.tagElements, location: 'end' }
1724
+ tagElementsInHeader: { tags: (_38 = this.item) === null || _38 === void 0 ? void 0 : _38.tagElements, location: 'end' }
1748
1725
  };
1749
1726
  }
1750
1727
  else if (this.entityType === 'questions') {
@@ -1809,17 +1786,17 @@ export class YooEntityComponent {
1809
1786
  subheadings: [
1810
1787
  'Operation Id: ' + op.operationId,
1811
1788
  'Request Id: ' + op.requestId,
1812
- ((_41 = op.operation) === null || _41 === void 0 ? void 0 : _41.accessToken) ? 'User:' + getUserDisplayName(op.operation.accessToken) : null,
1813
- ((_44 = (_43 = (_42 = op.requestLog) === null || _42 === void 0 ? void 0 : _42.meta) === null || _43 === void 0 ? void 0 : _43.req) === null || _44 === void 0 ? void 0 : _44.headers) ? 'Origin/Referer:' + op.requestLog.meta.req.headers.origin || op.requestLog.meta.req.headers.referer : null,
1814
- ((_47 = (_46 = (_45 = op.requestLog) === null || _45 === void 0 ? void 0 : _45.meta) === null || _46 === void 0 ? void 0 : _46.req) === null || _47 === void 0 ? void 0 : _47.headers) && op.requestLog.meta.req.headers['yoobic-client-version']
1789
+ ((_39 = op.operation) === null || _39 === void 0 ? void 0 : _39.accessToken) ? 'User:' + getUserDisplayName(op.operation.accessToken) : null,
1790
+ ((_42 = (_41 = (_40 = op.requestLog) === null || _40 === void 0 ? void 0 : _40.meta) === null || _41 === void 0 ? void 0 : _41.req) === null || _42 === void 0 ? void 0 : _42.headers) ? 'Origin/Referer:' + op.requestLog.meta.req.headers.origin || op.requestLog.meta.req.headers.referer : null,
1791
+ ((_45 = (_44 = (_43 = op.requestLog) === null || _43 === void 0 ? void 0 : _43.meta) === null || _44 === void 0 ? void 0 : _44.req) === null || _45 === void 0 ? void 0 : _45.headers) && op.requestLog.meta.req.headers['yoobic-client-version']
1815
1792
  ? 'Client Version:' + op.requestLog.meta.req.headers['yoobic-client-version']
1816
1793
  : null,
1817
- ((_50 = (_49 = (_48 = op.requestLog) === null || _48 === void 0 ? void 0 : _48.meta) === null || _49 === void 0 ? void 0 : _49.req) === null || _50 === void 0 ? void 0 : _50.headers) && op.requestLog.meta.req.headers['user-agent']
1794
+ ((_48 = (_47 = (_46 = op.requestLog) === null || _46 === void 0 ? void 0 : _46.meta) === null || _47 === void 0 ? void 0 : _47.req) === null || _48 === void 0 ? void 0 : _48.headers) && op.requestLog.meta.req.headers['user-agent']
1818
1795
  ? 'User Agent:' + op.requestLog.meta.req.headers['user-agent']
1819
1796
  : null
1820
1797
  ],
1821
1798
  date: pipes.dateFormat.transform(op._ect, 'L LT'),
1822
- users: ((_51 = op.operation) === null || _51 === void 0 ? void 0 : _51.accessToken) ? [op.operation.accessToken] : null,
1799
+ users: ((_49 = op.operation) === null || _49 === void 0 ? void 0 : _49.accessToken) ? [op.operation.accessToken] : null,
1823
1800
  tagElements: compact([
1824
1801
  op.isCreation
1825
1802
  ? {
@@ -1873,12 +1850,12 @@ export class YooEntityComponent {
1873
1850
  entry = {
1874
1851
  heading: translateMulti(battleList.title),
1875
1852
  subheadings: [lessonsCount + ' ' + translate(lessonsCount > 1 ? 'LESSONS' : 'LESSON')],
1876
- imgSrc: ((_52 = battleList.background) === null || _52 === void 0 ? void 0 : _52._downloadURL) ? battleList.background._downloadURL : null,
1853
+ imgSrc: ((_50 = battleList.background) === null || _50 === void 0 ? void 0 : _50._downloadURL) ? battleList.background._downloadURL : null,
1877
1854
  avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'extra-extra-large',
1878
1855
  avatarFrame: 'square'
1879
1856
  };
1880
1857
  }
1881
- else if (this.entityType !== 'tag' && ((_54 = (_53 = this.customModel) === null || _53 === void 0 ? void 0 : _53.appearance) === null || _54 === void 0 ? void 0 : _54.size)) {
1858
+ else if (this.entityType !== 'tag' && ((_52 = (_51 = this.customModel) === null || _51 === void 0 ? void 0 : _51.appearance) === null || _52 === void 0 ? void 0 : _52.size)) {
1882
1859
  entry = {};
1883
1860
  this.customModel.appearance.forEach((value, key) => {
1884
1861
  if (key === 'displayTypes') {
@@ -1919,7 +1896,7 @@ export class YooEntityComponent {
1919
1896
  else if (this.entityType === 'widgets') {
1920
1897
  const widget = this.item;
1921
1898
  entry = {
1922
- heading: widget.title || ((_55 = widget.page) === null || _55 === void 0 ? void 0 : _55.path),
1899
+ heading: widget.title || ((_53 = widget.page) === null || _53 === void 0 ? void 0 : _53.path),
1923
1900
  imgSrc: widget.photo,
1924
1901
  icon: widget.icon,
1925
1902
  subheadings: compact([]),
@@ -1996,16 +1973,16 @@ export class YooEntityComponent {
1996
1973
  }
1997
1974
  const title = this.useTranslate ? defaultTitle.toUpperCase() : defaultTitle;
1998
1975
  entry.heading = translateMulti(title);
1999
- if ((_56 = this.item) === null || _56 === void 0 ? void 0 : _56.description) {
1976
+ if ((_54 = this.item) === null || _54 === void 0 ? void 0 : _54.description) {
2000
1977
  entry.subheadings = [translateMulti(this.item.description)];
2001
1978
  }
2002
- if ((_58 = (_57 = this.item) === null || _57 === void 0 ? void 0 : _57.background) === null || _58 === void 0 ? void 0 : _58._downloadURL) {
1979
+ if ((_56 = (_55 = this.item) === null || _55 === void 0 ? void 0 : _55.background) === null || _56 === void 0 ? void 0 : _56._downloadURL) {
2003
1980
  entry.imgSrc = this.item.background._downloadURL;
2004
1981
  }
2005
- else if (((_59 = this.item) === null || _59 === void 0 ? void 0 : _59.background) && isString(this.item.background)) {
1982
+ else if (((_57 = this.item) === null || _57 === void 0 ? void 0 : _57.background) && isString(this.item.background)) {
2006
1983
  entry.imgSrc = this.item.background;
2007
1984
  }
2008
- if ((_61 = (_60 = this.item) === null || _60 === void 0 ? void 0 : _60.icon) === null || _61 === void 0 ? void 0 : _61._downloadURL) {
1985
+ if ((_59 = (_58 = this.item) === null || _58 === void 0 ? void 0 : _58.icon) === null || _59 === void 0 ? void 0 : _59._downloadURL) {
2009
1986
  entry.imgSrc = this.item.icon._downloadURL;
2010
1987
  }
2011
1988
  else if (this.item && isString(this.item.icon)) {
@@ -2029,7 +2006,7 @@ export class YooEntityComponent {
2029
2006
  const comment = this.item;
2030
2007
  entry = parseEntityCommentsForCardList(comment);
2031
2008
  }
2032
- if ((_62 = this.item) === null || _62 === void 0 ? void 0 : _62.badge) {
2009
+ if ((_60 = this.item) === null || _60 === void 0 ? void 0 : _60.badge) {
2033
2010
  entry.tagElements = [{ innerHTML: this.item.badge, color: 'app-color' }];
2034
2011
  }
2035
2012
  }
@@ -2038,7 +2015,7 @@ export class YooEntityComponent {
2038
2015
  !this.isAutocompleteSelected() &&
2039
2016
  !this.hideUIFields &&
2040
2017
  this.customModel &&
2041
- ((_64 = (_63 = this.customModel.formFields) === null || _63 === void 0 ? void 0 : _63.filter((f) => f.showInCard)) === null || _64 === void 0 ? void 0 : _64.length) > 0) {
2018
+ ((_62 = (_61 = this.customModel.formFields) === null || _61 === void 0 ? void 0 : _61.filter((f) => f.showInCard)) === null || _62 === void 0 ? void 0 : _62.length) > 0) {
2042
2019
  entry.uiFields = {
2043
2020
  fields: this.customModel.formFields.filter((f) => f.showInCard),
2044
2021
  data: this.item
@@ -2080,7 +2057,7 @@ export class YooEntityComponent {
2080
2057
  if (this.host.classList.contains('full-width')) {
2081
2058
  extraClasses += ' full-width ';
2082
2059
  }
2083
- if (((_65 = this.item) === null || _65 === void 0 ? void 0 : _65._id) === getSession().userId) {
2060
+ if (((_63 = this.item) === null || _63 === void 0 ? void 0 : _63._id) === getSession().userId) {
2084
2061
  extraClasses += ' current ';
2085
2062
  }
2086
2063
  if (this.extraClass) {
@@ -2109,7 +2086,7 @@ export class YooEntityComponent {
2109
2086
  [extraClasses]: true,
2110
2087
  [this.entityType]: this.entityType !== undefined,
2111
2088
  'form-permission': this.host.classList.contains('form-permission')
2112
- } }, ((_66 = this.inlineActions) === null || _66 === void 0 ? void 0 : _66.length) > 0 && (h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
2089
+ } }, ((_64 = this.inlineActions) === null || _64 === void 0 ? void 0 : _64.length) > 0 && (h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
2113
2090
  return (h("span", { class: action.cssClass, onClick: () => (action.handler ? action.handler(this.item) : null) }, action.text));
2114
2091
  })))));
2115
2092
  }
@@ -457,7 +457,9 @@ export class YooFormAutocompleteComponent {
457
457
  }
458
458
  async refreshValues() {
459
459
  await this.resetCurrentPage();
460
- this.fetchData.emit({ search: this.searchText, appendData: false, currentPage: this.currentPage, pageSize: this.pageSize, tmpValues: this.values, fieldValue: this.value });
460
+ if (!this.isLocal) {
461
+ this.fetchData.emit({ search: this.searchText, appendData: false, currentPage: this.currentPage, pageSize: this.pageSize, tmpValues: this.values, fieldValue: this.value });
462
+ }
461
463
  }
462
464
  async onInputContainerClicked() {
463
465
  this.host.classList.add('focused');
@@ -718,8 +720,7 @@ export class YooFormAutocompleteComponent {
718
720
  }
719
721
  }
720
722
  onFilterRadioToggled(operator) {
721
- this.filterOperator = operator;
722
- this.extraDataChanged.emit(this.filterOperator);
723
+ this.extraDataChanged.emit(operator);
723
724
  }
724
725
  async onFileChanges(ev) {
725
726
  ev.stopPropagation();
@@ -1942,6 +1943,28 @@ export class YooFormAutocompleteComponent {
1942
1943
  "attribute": "is-filter",
1943
1944
  "reflect": false
1944
1945
  },
1946
+ "filterOperator": {
1947
+ "type": "string",
1948
+ "mutable": false,
1949
+ "complexType": {
1950
+ "original": "FormFilterAutocompleteOperator",
1951
+ "resolved": "FormFilterAutocompleteOperator.is | FormFilterAutocompleteOperator.isNot",
1952
+ "references": {
1953
+ "FormFilterAutocompleteOperator": {
1954
+ "location": "import",
1955
+ "path": "@shared/interfaces"
1956
+ }
1957
+ }
1958
+ },
1959
+ "required": false,
1960
+ "optional": true,
1961
+ "docs": {
1962
+ "tags": [],
1963
+ "text": ""
1964
+ },
1965
+ "attribute": "filter-operator",
1966
+ "reflect": false
1967
+ },
1945
1968
  "total": {
1946
1969
  "type": "number",
1947
1970
  "mutable": true,
@@ -2626,8 +2649,7 @@ export class YooFormAutocompleteComponent {
2626
2649
  "selection": {},
2627
2650
  "showEmptyItemsAddNewTag": {},
2628
2651
  "isUploading": {},
2629
- "arrowIcon": {},
2630
- "filterOperator": {}
2652
+ "arrowIcon": {}
2631
2653
  }; }
2632
2654
  static get events() { return [{
2633
2655
  "method": "validityChanged",
@@ -3336,6 +3336,7 @@ export class YooFormDynamicComponent {
3336
3336
  inline: this.isInline(),
3337
3337
  tags: field.tags,
3338
3338
  isFilter: field.type === FormFieldType.filterautocomplete,
3339
+ filterOperator: field.filterOperator,
3339
3340
  forceDisableCustomTags: field.forceDisableCustomTags,
3340
3341
  extraData: this.getExtraData(field, data),
3341
3342
  forceHideSearch: !!field.forceHideSearch,
@@ -133,8 +133,14 @@ export class YooFormMissionfieldComponent {
133
133
  renderEditable() {
134
134
  var _a, _b, _c, _d, _e;
135
135
  const showFields = this.type === 'missionfield' || this.type === 'datasetfield';
136
+ const isLocal = ((_a = this.customModelValues) === null || _a === void 0 ? void 0 : _a.length) >= 0;
136
137
  return (h("div", { class: "container" },
137
- !this.hideCampaign && (h("yoo-form-autocomplete", { ref: (el) => (this.formAutocompleteCampaign = el), multiple: false, value: this.value ? this.value.selectedDescription : null, values: this.customModelValues, entityType: "missiondescriptions", displayType: "card-list", placeholder: this.type === 'datasetfield' ? 'SELECTDATASET' : 'SELECTCAMPAIGN', isLocal: ((_a = this.customModelValues) === null || _a === void 0 ? void 0 : _a.length) >= 0, onFetchData: (ev) => this.onFetchData(ev), onInputChanged: (ev) => this.onInputChanged(ev), onInputBlurred: (ev) => this.onInputBlurred(ev), onInputFocused: (ev) => this.onInputFocused(ev), onValidityChanged: (ev) => this.stopValidityChangeEvent(ev), clearable: true, tabindex: this.inputTabIndex, size: this.size })),
138
+ !this.hideCampaign && (h("yoo-form-autocomplete", { ref: (el) => (this.formAutocompleteCampaign = el), multiple: false, value: this.value ? this.value.selectedDescription : null, values: this.customModelValues, entityType: "missiondescriptions", displayType: "card-list", placeholder: this.type === 'datasetfield' ? 'SELECTDATASET' : 'SELECTCAMPAIGN', isLocal: isLocal, onFetchData: (ev) => {
139
+ ev.stopPropagation();
140
+ if (!isLocal) {
141
+ this.onFetchData(ev);
142
+ }
143
+ }, onInputChanged: (ev) => this.onInputChanged(ev), onInputBlurred: (ev) => this.onInputBlurred(ev), onInputFocused: (ev) => this.onInputFocused(ev), onValidityChanged: (ev) => this.stopValidityChangeEvent(ev), clearable: true, tabindex: this.inputTabIndex, size: this.size })),
138
144
  !this.hideCampaign && h("div", { class: "spacer" }),
139
145
  h("yoo-form-autocomplete", { ref: (el) => (this.formAutocompleteSecondary = el), multiple: this.multiple, idAttributeName: this.type === 'missionscore' ? 'title' : 'name', values: showFields ? this.fields : this.scoring, value: this.value && this.type === 'missionscore' ? this.value.scores : this.value ? this.value.fields : null, entityType: showFields ? 'formfield' : 'scoring', placeholder: showFields ? 'SELECTFORMFIELD' : 'SELECTSCORING', displayType: "card-list", disabled: !((_c = (_b = this === null || this === void 0 ? void 0 : this.value) === null || _b === void 0 ? void 0 : _b.selectedDescription) === null || _c === void 0 ? void 0 : _c._id), isLocal: true, expandHeightOnShow: !((_e = (_d = this.host) === null || _d === void 0 ? void 0 : _d.classList) === null || _e === void 0 ? void 0 : _e.contains('inline')), onFetchData: (ev) => {
140
146
  ev.stopPropagation();
@@ -400,7 +400,7 @@ export class YooSectionListComponent {
400
400
  h("div", { class: "section-title" },
401
401
  this.icon && h("div", { class: "icon" },
402
402
  h("yoo-icon", { name: this.icon, size: "medium", color: "text-color" })),
403
- h("div", { class: "title" }, section.translatedTitle || translateMulti(section.title)),
403
+ h("div", { class: "title" }, getCurrentLanguage() === this.baseLanguage ? section.translatedTitle : translateMulti(section.title)),
404
404
  h("div", { class: "item-count" }, `${items.length} ${translate((_a = this.countSuffix) === null || _a === void 0 ? void 0 : _a.toUpperCase())}`),
405
405
  !this.disableSortable && !this.isReadonly && section.isSortable !== false && h("div", { class: "draggable" },
406
406
  h("yoo-icon", { name: "draggable", color: "text-color", size: "medium" })),
@@ -428,8 +428,8 @@ export class YooSectionListComponent {
428
428
  }
429
429
  renderSectionItem(item) {
430
430
  let checkboxRef;
431
- const title = getTranslatedAttribute(this.translations, item.title, this.baseLanguage || getCurrentLanguage(), 'title').value || translateMulti(item.title);
432
- const text = getTranslatedAttribute(this.translations, item.text, this.baseLanguage || getCurrentLanguage(), 'text').value || translateMulti(item.text);
431
+ const title = getTranslatedAttribute(this.translations, item.title, getCurrentLanguage() || this.baseLanguage, 'title').value || translateMulti(item.title);
432
+ const text = getTranslatedAttribute(this.translations, item.text, getCurrentLanguage() || this.baseLanguage, 'text').value || translateMulti(item.text);
433
433
  return (h("div", { class: "item selectable", onMouseEnter: this.getItemMouseEnterAction(), onMouseLeave: this.getItemMouseLeaveAction() },
434
434
  h("div", { class: "checkbox", ref: (el) => checkboxRef = el }, !this.disableBatchActions && this.isOwner && item.isSelectable !== false && h("yoo-form-checkbox", { onInputChanged: (ev) => this.onCheckboxClicked(ev, item, checkboxRef) })),
435
435
  h("div", { class: "item-container", onClick: () => this.itemClicked.emit(item) },
@@ -1,5 +1,5 @@
1
1
  import { MessageType } from '@shared/interfaces';
2
- import { capitalizeFirstLetter, changeExtension, getAsyncExtraData, getCurrentLanguage, getSession, getUserDisplayName, isCloudinaryLink, isGif, isPhotoEdited, parseMarkDown, pipes, replaceAllLinks, replaceAtTagToMentionTag, toButton, toDate, translate, translateMulti } from '@shared/utils';
2
+ import { capitalizeFirstLetter, changeExtension, getAsyncExtraData, getCssColor, getCurrentLanguage, getSession, getUserDisplayName, isCloudinaryLink, isGif, isPhotoEdited, isVideo, parseMarkDown, pipes, replaceAllLinks, replaceAtTagToMentionTag, toButton, toDate, translate, translateMulti } from '@shared/utils';
3
3
  import { compact, isNumber } from 'lodash-es';
4
4
  const mentionRegex = /<yoo-mention-tag[^>]*>([\s\S]*?)<\/yoo-mention-tag>/g;
5
5
  /**
@@ -303,7 +303,7 @@ function getChatDate(lastMessageDate) {
303
303
  return pipes.dateFormat.transform(date, 'YY/MM/DD');
304
304
  }
305
305
  export function getFolderIcon(item) {
306
- return item.folderType === 'article' ? 'pages' : item.icon || 'folder';
306
+ return (item === null || item === void 0 ? void 0 : item.folderType) === 'article' ? 'pages' : (item === null || item === void 0 ? void 0 : item.icon) || 'folder';
307
307
  }
308
308
  export function getCalendarCourseDueDate(endDate, allDay) {
309
309
  if (endDate) {
@@ -311,3 +311,30 @@ export function getCalendarCourseDueDate(endDate, allDay) {
311
311
  }
312
312
  return null;
313
313
  }
314
+ export function parseFolderForCardList(f, entityType) {
315
+ var _a, _b;
316
+ if (!f) {
317
+ return null;
318
+ }
319
+ const imgSrc = f.imgSrc || ((_a = f.background) === null || _a === void 0 ? void 0 : _a._downloadURL);
320
+ const avatarIconSize = entityType === 'folders' ? 'extra-large' : 'large';
321
+ const entry = {
322
+ avatarSize: 'large',
323
+ avatarIconSize,
324
+ avatarColor: f.color ? `${f.color}` : getCssColor('app-color-80'),
325
+ avatarFrame: 'transparent-square',
326
+ cloudinaryOptions: isVideo(imgSrc) ? { fallbackToOriginal: true, gif: true, videoEdit: 3 } : null,
327
+ heading: f.name,
328
+ icon: getFolderIcon(f),
329
+ imgSrc,
330
+ subheadings: [],
331
+ tagElements: compact(f.tags).map((t) => ({ innerHTML: t, color: 'stable-light' }))
332
+ };
333
+ if (f.stats) {
334
+ entry.subheadings = [
335
+ (((_b = f.container) === null || _b === void 0 ? void 0 : _b.name) ? f.container.name + ' ' : '') +
336
+ f.stats.map(s => '<span>' + translate(s.title) + ': ' + s.value.toString() + '</span>').join()
337
+ ];
338
+ }
339
+ return entry;
340
+ }
@@ -118,6 +118,8 @@ export function filterRenderFormDynamic(filteredFields, filters, formAutocomplet
118
118
  const data = {};
119
119
  filteredFields.forEach((field, index) => {
120
120
  var _a;
121
+ const filter = filters.find((filter) => filter.fieldname === field.name &&
122
+ (dynamic || (filter.fieldfiltername === (field.filterName || field.name) && (filter.fieldname !== 'tags' || filter.collectionName === field.collectionName))));
121
123
  const newField = {
122
124
  ...field,
123
125
  multiple: true,
@@ -192,19 +194,10 @@ export function filterRenderFormDynamic(filteredFields, filters, formAutocomplet
192
194
  if (expandHeightOnShow === false) {
193
195
  newField.expandHeightOnShow = false;
194
196
  }
195
- if (dynamic) {
196
- const filter = filters.find((f) => f.fieldname === field.name);
197
- if (filter) {
198
- newField.tmpSelection = filter.tmpSelection;
199
- set(data, dynamic ? newField.name : field.name, filter.values);
200
- }
201
- }
202
- else {
203
- const filter = filters.find((f) => f.fieldname === field.name && f.fieldfiltername === (field.filterName || field.name) && (f.fieldname !== 'tags' || f.collectionName === field.collectionName));
204
- if (filter) {
205
- newField.tmpSelection = filter.tmpSelection;
206
- set(data, dynamic ? newField.name : field.name, filter.values);
207
- }
197
+ if (filter) {
198
+ newField.filterOperator = filter.operator;
199
+ newField.tmpSelection = filter.tmpSelection;
200
+ set(data, dynamic ? newField.name : field.name, filter.values);
208
201
  }
209
202
  if ((formAutocompletes === null || formAutocompletes === void 0 ? void 0 : formAutocompletes.slides) && ((_a = formAutocompletes.slides[0]) === null || _a === void 0 ? void 0 : _a.items)) {
210
203
  // we need this to handle location hierarchy dynamic filters