@yoobic/yobi 8.3.0-43 → 8.3.0-46

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 (108) 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/{form-choice-helpers-b2ec494b.js → form-choice-helpers-e28efa04.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/yoo-detail-bar.cjs.entry.js +1 -1
  7. package/dist/cjs/yoo-entity-query-builder.cjs.entry.js +1 -1
  8. package/dist/cjs/yoo-entity-search-filters.cjs.entry.js +1 -1
  9. package/dist/cjs/yoo-entity.cjs.entry.js +47 -70
  10. package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +4 -3
  11. package/dist/cjs/yoo-form-choice-button.cjs.entry.js +1 -1
  12. package/dist/cjs/yoo-form-choice-card.cjs.entry.js +1 -1
  13. package/dist/cjs/yoo-form-choice-chat.cjs.entry.js +1 -1
  14. package/dist/cjs/yoo-form-choice-image.cjs.entry.js +1 -1
  15. package/dist/cjs/yoo-form-choice-radio.cjs.entry.js +1 -1
  16. package/dist/cjs/yoo-form-connect.cjs.entry.js +2 -1
  17. package/dist/cjs/yoo-form-creator-workflow-step.cjs.entry.js +1 -1
  18. package/dist/cjs/yoo-form-dynamic.cjs.entry.js +1 -0
  19. package/dist/cjs/yoo-form-missionfield.cjs.entry.js +7 -1
  20. package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +1 -1
  21. package/dist/cjs/yoo-form-text-editor.cjs.entry.js +64 -46
  22. package/dist/cjs/yoo-form-todo-task-list.cjs.entry.js +1 -2
  23. package/dist/cjs/yoo-grid.cjs.entry.js +1 -1
  24. package/dist/cjs/yoo-input-bar.cjs.entry.js +12948 -12743
  25. package/dist/cjs/yoo-login.cjs.entry.js +1 -1
  26. package/dist/cjs/yoo-scratch-card-creator.cjs.entry.js +1 -3
  27. package/dist/cjs/yoo-section-list.cjs.entry.js +3 -3
  28. package/dist/cjs/yoo-slides-media.cjs.entry.js +1 -1
  29. package/dist/cjs/yoo-user-profile.cjs.entry.js +1 -1
  30. package/dist/cjs/yoo-videoplayer-videojs.cjs.entry.js +3 -3
  31. package/dist/collection/components/entities/entity/entity.js +47 -70
  32. package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +27 -5
  33. package/dist/collection/components/form/form-choice/form-choice-helpers.js +1 -1
  34. package/dist/collection/components/form/form-connect/form-connect.js +2 -1
  35. package/dist/collection/components/form/form-dynamic/form-dynamic.js +1 -0
  36. package/dist/collection/components/form/form-missionfield/form-missionfield.js +7 -1
  37. package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.css +1 -1
  38. package/dist/collection/components/form/form-todo-task-list/form-todo-task-list.js +1 -2
  39. package/dist/collection/components/form-creator/scratch-card-creator/scratch-card-creator.js +1 -3
  40. package/dist/collection/feature-learn/learning/section-list/section-list.js +3 -3
  41. package/dist/collection/feature-platform/login/login/login.css +1 -2
  42. package/dist/collection/utils/helpers/entities-helpers.js +29 -2
  43. package/dist/collection/utils/helpers/filters-helpers.js +6 -13
  44. package/dist/design-system/design-system.esm.js +1 -1
  45. package/dist/{esm/entities-helpers-9ea378f0.js → design-system/entities-helpers-67ff3fa4.js} +30 -3
  46. package/dist/{esm/filters-helpers-41224cde.js → design-system/filters-helpers-ded9ed03.js} +6 -13
  47. package/dist/design-system/{form-choice-helpers-800a6124.js → form-choice-helpers-b6936c42.js} +1 -1
  48. package/dist/design-system/yoo-detail-bar.entry.js +1 -1
  49. package/dist/design-system/yoo-entity-query-builder.entry.js +1 -1
  50. package/dist/design-system/yoo-entity-search-filters.entry.js +1 -1
  51. package/dist/design-system/yoo-entity.entry.js +47 -70
  52. package/dist/design-system/yoo-form-autocomplete.entry.js +4 -3
  53. package/dist/design-system/yoo-form-choice-button.entry.js +1 -1
  54. package/dist/design-system/yoo-form-choice-card.entry.js +1 -1
  55. package/dist/design-system/yoo-form-choice-chat.entry.js +1 -1
  56. package/dist/design-system/yoo-form-choice-image.entry.js +1 -1
  57. package/dist/design-system/yoo-form-choice-radio.entry.js +1 -1
  58. package/dist/design-system/yoo-form-connect.entry.js +2 -1
  59. package/dist/design-system/yoo-form-creator-workflow-step.entry.js +1 -1
  60. package/dist/design-system/yoo-form-dynamic.entry.js +1 -0
  61. package/dist/design-system/yoo-form-missionfield.entry.js +7 -1
  62. package/dist/design-system/yoo-form-swipe-cards.entry.js +1 -1
  63. package/dist/design-system/yoo-form-text-editor.entry.js +64 -46
  64. package/dist/design-system/yoo-form-todo-task-list.entry.js +1 -2
  65. package/dist/design-system/yoo-grid.entry.js +1 -1
  66. package/dist/design-system/yoo-input-bar.entry.js +12948 -12743
  67. package/dist/design-system/yoo-login.entry.js +1 -1
  68. package/dist/design-system/yoo-scratch-card-creator.entry.js +1 -3
  69. package/dist/design-system/yoo-section-list.entry.js +4 -4
  70. package/dist/design-system/yoo-slides-media.entry.js +1 -1
  71. package/dist/design-system/yoo-user-profile.entry.js +1 -1
  72. package/dist/design-system/yoo-videoplayer-videojs.entry.js +3 -3
  73. package/dist/esm/design-system.js +1 -1
  74. package/dist/{design-system/entities-helpers-9ea378f0.js → esm/entities-helpers-67ff3fa4.js} +30 -3
  75. package/dist/{design-system/filters-helpers-41224cde.js → esm/filters-helpers-ded9ed03.js} +6 -13
  76. package/dist/esm/{form-choice-helpers-800a6124.js → form-choice-helpers-b6936c42.js} +1 -1
  77. package/dist/esm/loader.js +1 -1
  78. package/dist/esm/yoo-detail-bar.entry.js +1 -1
  79. package/dist/esm/yoo-entity-query-builder.entry.js +1 -1
  80. package/dist/esm/yoo-entity-search-filters.entry.js +1 -1
  81. package/dist/esm/yoo-entity.entry.js +47 -70
  82. package/dist/esm/yoo-form-autocomplete.entry.js +4 -3
  83. package/dist/esm/yoo-form-choice-button.entry.js +1 -1
  84. package/dist/esm/yoo-form-choice-card.entry.js +1 -1
  85. package/dist/esm/yoo-form-choice-chat.entry.js +1 -1
  86. package/dist/esm/yoo-form-choice-image.entry.js +1 -1
  87. package/dist/esm/yoo-form-choice-radio.entry.js +1 -1
  88. package/dist/esm/yoo-form-connect.entry.js +2 -1
  89. package/dist/esm/yoo-form-creator-workflow-step.entry.js +1 -1
  90. package/dist/esm/yoo-form-dynamic.entry.js +1 -0
  91. package/dist/esm/yoo-form-missionfield.entry.js +7 -1
  92. package/dist/esm/yoo-form-swipe-cards.entry.js +1 -1
  93. package/dist/esm/yoo-form-text-editor.entry.js +64 -46
  94. package/dist/esm/yoo-form-todo-task-list.entry.js +1 -2
  95. package/dist/esm/yoo-grid.entry.js +1 -1
  96. package/dist/esm/yoo-input-bar.entry.js +12948 -12743
  97. package/dist/esm/yoo-login.entry.js +1 -1
  98. package/dist/esm/yoo-scratch-card-creator.entry.js +1 -3
  99. package/dist/esm/yoo-section-list.entry.js +4 -4
  100. package/dist/esm/yoo-slides-media.entry.js +1 -1
  101. package/dist/esm/yoo-user-profile.entry.js +1 -1
  102. package/dist/esm/yoo-videoplayer-videojs.entry.js +3 -3
  103. package/dist/types/components/form/form-autocomplete/form-autocomplete.d.ts +1 -1
  104. package/dist/types/components.d.ts +2 -0
  105. package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/custom-app/custom-app.interface.d.ts +10 -3
  106. 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
  107. package/dist/types/utils/helpers/entities-helpers.d.ts +1 -0
  108. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { M as MessageType } from './index-e7f48bcb.js';
2
2
  import './index-c7d02f02.js';
3
3
  import { a as isNumber, n as compact } from './lodash-f6e59a8e.js';
4
- import { a7 as getUserDisplayName, aq as pipes, ao as replaceAtTagToMentionTag, au as isCloudinaryLink, av as getCurrentLanguage, P as getAsyncExtraData, ap as replaceAllLinks, aw as parseMarkDown, a3 as getSession, ax as isPhotoEdited, ay as changeExtension, Z as translateMulti, az as toButton, aA as toDate, aB as capitalizeFirstLetter, ah as isGif, t as translate } from './overlays-be5a9ab3.js';
4
+ import { a7 as getUserDisplayName, aq as pipes, ao as replaceAtTagToMentionTag, au as isCloudinaryLink, av as getCurrentLanguage, P as getAsyncExtraData, ap as replaceAllLinks, aw as parseMarkDown, a3 as getSession, ax as isPhotoEdited, ay as changeExtension, Z as translateMulti, az as toButton, aA as toDate, aB as capitalizeFirstLetter, ah as isGif, t as translate, K as getCssColor, ag as isVideo } from './overlays-be5a9ab3.js';
5
5
 
6
6
  const mentionRegex = /<yoo-mention-tag[^>]*>([\s\S]*?)<\/yoo-mention-tag>/g;
7
7
  /**
@@ -305,7 +305,7 @@ function getChatDate(lastMessageDate) {
305
305
  return pipes.dateFormat.transform(date, 'YY/MM/DD');
306
306
  }
307
307
  function getFolderIcon(item) {
308
- return item.folderType === 'article' ? 'pages' : item.icon || 'folder';
308
+ return (item === null || item === void 0 ? void 0 : item.folderType) === 'article' ? 'pages' : (item === null || item === void 0 ? void 0 : item.icon) || 'folder';
309
309
  }
310
310
  function getCalendarCourseDueDate(endDate, allDay) {
311
311
  if (endDate) {
@@ -313,5 +313,32 @@ function getCalendarCourseDueDate(endDate, allDay) {
313
313
  }
314
314
  return null;
315
315
  }
316
+ function parseFolderForCardList(f, entityType) {
317
+ var _a, _b;
318
+ if (!f) {
319
+ return null;
320
+ }
321
+ const imgSrc = f.imgSrc || ((_a = f.background) === null || _a === void 0 ? void 0 : _a._downloadURL);
322
+ const avatarIconSize = entityType === 'folders' ? 'extra-large' : 'large';
323
+ const entry = {
324
+ avatarSize: 'large',
325
+ avatarIconSize,
326
+ avatarColor: f.color ? `${f.color}` : getCssColor('app-color-80'),
327
+ avatarFrame: 'transparent-square',
328
+ cloudinaryOptions: isVideo(imgSrc) ? { fallbackToOriginal: true, gif: true, videoEdit: 3 } : null,
329
+ heading: f.name,
330
+ icon: getFolderIcon(f),
331
+ imgSrc,
332
+ subheadings: [],
333
+ tagElements: compact(f.tags).map((t) => ({ innerHTML: t, color: 'stable-light' }))
334
+ };
335
+ if (f.stats) {
336
+ entry.subheadings = [
337
+ (((_b = f.container) === null || _b === void 0 ? void 0 : _b.name) ? f.container.name + ' ' : '') +
338
+ f.stats.map(s => '<span>' + translate(s.title) + ': ' + s.value.toString() + '</span>').join()
339
+ ];
340
+ }
341
+ return entry;
342
+ }
316
343
 
317
- export { getCalendarCourseDueDate as a, getFolderIcon as b, parseEntityCommentsForCardList as c, parseEntityForCardMedia as d, groupsFullResolver as g, onUserClick as o, parseEntityForCardChat as p, sanitizeMentionTag as s };
344
+ export { getCalendarCourseDueDate as a, parseFolderForCardList as b, parseEntityCommentsForCardList as c, getFolderIcon as d, parseEntityForCardMedia as e, groupsFullResolver as g, onUserClick as o, parseEntityForCardChat as p, sanitizeMentionTag as s };
@@ -120,6 +120,8 @@ function filterRenderFormDynamic(filteredFields, filters, formAutocompletes, add
120
120
  const data = {};
121
121
  filteredFields.forEach((field, index) => {
122
122
  var _a;
123
+ const filter = filters.find((filter) => filter.fieldname === field.name &&
124
+ (dynamic || (filter.fieldfiltername === (field.filterName || field.name) && (filter.fieldname !== 'tags' || filter.collectionName === field.collectionName))));
123
125
  const newField = {
124
126
  ...field,
125
127
  multiple: true,
@@ -194,19 +196,10 @@ function filterRenderFormDynamic(filteredFields, filters, formAutocompletes, add
194
196
  if (expandHeightOnShow === false) {
195
197
  newField.expandHeightOnShow = false;
196
198
  }
197
- if (dynamic) {
198
- const filter = filters.find((f) => f.fieldname === field.name);
199
- if (filter) {
200
- newField.tmpSelection = filter.tmpSelection;
201
- set(data, dynamic ? newField.name : field.name, filter.values);
202
- }
203
- }
204
- else {
205
- const filter = filters.find((f) => f.fieldname === field.name && f.fieldfiltername === (field.filterName || field.name) && (f.fieldname !== 'tags' || f.collectionName === field.collectionName));
206
- if (filter) {
207
- newField.tmpSelection = filter.tmpSelection;
208
- set(data, dynamic ? newField.name : field.name, filter.values);
209
- }
199
+ if (filter) {
200
+ newField.filterOperator = filter.operator;
201
+ newField.tmpSelection = filter.tmpSelection;
202
+ set(data, dynamic ? newField.name : field.name, filter.values);
210
203
  }
211
204
  if ((formAutocompletes === null || formAutocompletes === void 0 ? void 0 : formAutocompletes.slides) && ((_a = formAutocompletes.slides[0]) === null || _a === void 0 ? void 0 : _a.items)) {
212
205
  // we need this to handle location hierarchy dynamic filters
@@ -158,7 +158,7 @@ function prepareChoice(choiceElement) {
158
158
  }
159
159
  function hasWarnings(values, choiceElement, warningMsgs) {
160
160
  const duplicateMessage = 'NODUPLICATEVALUES';
161
- const hasDuplicatedValues = hasDuplicates(values);
161
+ const hasDuplicatedValues = hasDuplicates(values === null || values === void 0 ? void 0 : values.map(v => (v === null || v === void 0 ? void 0 : v.text) || v));
162
162
  showWarningAlert(choiceElement.host, hasDuplicatedValues || !!(warningMsgs === null || warningMsgs === void 0 ? void 0 : warningMsgs.length), hasDuplicatedValues ? duplicateMessage : warningMsgs === null || warningMsgs === void 0 ? void 0 : warningMsgs[0]);
163
163
  return hasDuplicatedValues && (warningMsgs === null || warningMsgs === void 0 ? void 0 : warningMsgs.length) > 0;
164
164
  }
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, i as createEvent, h, e as Host } from './index-becca019.js';
2
2
  import './index-c7d02f02.js';
3
3
  import { G as isBoolean, a as isNumber } from './lodash-f6e59a8e.js';
4
- import { g as groupsFullResolver } from './entities-helpers-9ea378f0.js';
4
+ import { g as groupsFullResolver } from './entities-helpers-67ff3fa4.js';
5
5
  import { X as isNullOrUndefined, ak as dateFormat, t as translate, Z as translateMulti, at as getLanguageKey } from './overlays-be5a9ab3.js';
6
6
  import './index-e7f48bcb.js';
7
7
  import './_commonjsHelpers-f4d11124.js';
@@ -2,7 +2,7 @@ import { r as registerInstance, i as createEvent, f as forceUpdate, h, e as Host
2
2
  import { c as FormFieldType } from './index-e7f48bcb.js';
3
3
  import './index-c7d02f02.js';
4
4
  import { a9 as sum, c as cloneDeep, R as findIndex, a1 as flatten } from './lodash-f6e59a8e.js';
5
- import { b as filterIsRadio, a as filterIsAutocomplete, k as filterIsSegement, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, f as filterFromFormField, c as filterRenderFormDynamic, m as mapCustomViewToButton } from './filters-helpers-41224cde.js';
5
+ import { b as filterIsRadio, a as filterIsAutocomplete, k as filterIsSegement, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, f as filterFromFormField, c as filterRenderFormDynamic, m as mapCustomViewToButton } from './filters-helpers-ded9ed03.js';
6
6
  import { aF as isPresent, aN as getUUID, t as translate, A as isWeb, af as showActionSheet, a3 as getSession, cR as getAuthentication } from './overlays-be5a9ab3.js';
7
7
  import './_commonjsHelpers-f4d11124.js';
8
8
 
@@ -3,7 +3,7 @@ import { c as FormFieldType } from './index-e7f48bcb.js';
3
3
  import './index-c7d02f02.js';
4
4
  import { n as compact, q as isString, v as isObject, y as isEmpty, a as isNumber } from './lodash-f6e59a8e.js';
5
5
  import { g as getAppContext } from './common-helpers-0071c2da.js';
6
- import { f as filterFromFormField, a as filterIsAutocomplete, b as filterIsRadio, c as filterRenderFormDynamic, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, j as filterCleanupNewField } from './filters-helpers-41224cde.js';
6
+ import { f as filterFromFormField, a as filterIsAutocomplete, b as filterIsRadio, c as filterRenderFormDynamic, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, j as filterCleanupNewField } from './filters-helpers-ded9ed03.js';
7
7
  import { t as translate, X as isNullOrUndefined, Z as translateMulti } from './overlays-be5a9ab3.js';
8
8
  import './_commonjsHelpers-f4d11124.js';
9
9
 
@@ -7,7 +7,7 @@ import { e as getCampaignStateTags, f as getCampaignTemplateTags, h as getMissio
7
7
  import { f as getMissionStateTags, h as getMissionUniqueKey, g as getMissionAddress, m as mapMissionToCardInboxEntry } from './missions-helpers-49627b36.js';
8
8
  import { g as getButton } from './button.factory-6c7aab55.js';
9
9
  import { v as getNotificationIcon, h as execHandlerAndStopEvent, g as getAppContext } from './common-helpers-0071c2da.js';
10
- import { a as getCalendarCourseDueDate, p as parseEntityForCardChat, o as onUserClick, b as getFolderIcon, c as parseEntityCommentsForCardList, d as parseEntityForCardMedia } from './entities-helpers-9ea378f0.js';
10
+ import { a as getCalendarCourseDueDate, p as parseEntityForCardChat, o as onUserClick, b as parseFolderForCardList, c as parseEntityCommentsForCardList, d as getFolderIcon, e as parseEntityForCardMedia } from './entities-helpers-67ff3fa4.js';
11
11
  import { c as createThemedClasses } from './theme-331e5466.js';
12
12
  import { a7 as getUserDisplayName, aq as pipes, al as dispatchCustomEvent, t as translate, Z as translateMulti, A as isWeb, eV as getType, z as showModal, a3 as getSession, ey as getEventTypeColor, cR as getAuthentication, ak as dateFormat, eW as replaceTextWithRichContent, eX as getMediaSrcAndType, e as compareAsc, ap as replaceAllLinks, aw as parseMarkDown, eY as getFormatedDate, az as toButton, dU as isPlanInFuture, eZ as getCardFeedEntryFromFeed, e_ as getCampaignConfigsForFeed, e$ as getIncentiveConfigsForFeed, ax as isPhotoEdited, f0 as getCardFeedEntryFromQuestion, dV as groupsResolver, f1 as getEventConfigsFromEvent, f2 as getMediaSrcFromFeed, ag as isVideo, ay as changeExtension, eI as removeTextStyle, f3 as canAccessReadReceipt, f4 as getWorkflowProgress, f5 as getRandomSwatchColor, K as getCssColor, f6 as getCampaignIcon, f7 as getCampaignColor, eJ as isCampaignAnnouncement, eN as getLessonTypeIcon, bH as fromNow, f8 as getUserTags, cc as isMedia, ao as replaceAtTagToMentionTag, au as isCloudinaryLink, av as getCurrentLanguage, P as getAsyncExtraData, f9 as fileHasIcon, d2 as getVideoPoster, fa as getIconName, fb as getIconColor, fc as getLanguageFlag, fd as getDashboardTags, aF as isPresent, f as isSameDate, eE as getEventStatusInfo, fe as getRoleTitle, ff as getMobileFieldIcon, a2 as getPlanDueDate, ai as isImage, fg as isCampaignAnnouncementByUser, bJ as isCampaignActive, fh as getCommunityKpis, eO as mapKpiData, fi as changeHexOpacity } from './overlays-be5a9ab3.js';
13
13
  import './index-1b38d4f3.js';
@@ -810,7 +810,7 @@ const YooEntityComponent = class {
810
810
  return address;
811
811
  }
812
812
  renderCardList(extraClasses) {
813
- 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;
813
+ 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;
814
814
  let entry = {};
815
815
  if (this.entityMapping) {
816
816
  entry = this.entityMapping(this.item, this.entityType, this.displayType);
@@ -1139,31 +1139,8 @@ const YooEntityComponent = class {
1139
1139
  };
1140
1140
  }
1141
1141
  else if (this.entityType === 'folders' || (this.entityType === 'filesFolders' && this.item.fftype === 'folder')) {
1142
- const f = this.item;
1143
1142
  extraClasses += ' folders ';
1144
- const imgSrc = f.imgSrc || ((_4 = f.background) === null || _4 === void 0 ? void 0 : _4._downloadURL);
1145
- entry = {
1146
- heading: f.name,
1147
- imgSrc,
1148
- cloudinaryOptions: isVideo(imgSrc) ? { fallbackToOriginal: true, gif: true, videoEdit: 3 } : null,
1149
- avatarSize: 'large',
1150
- avatarIconSize: this.entityType === 'folders' ? 'extra-large' : 'large',
1151
- avatarFrame: 'transparent-square',
1152
- avatarColor: f.color ? `${f.color}` : getCssColor('app-color-80'),
1153
- icon: getFolderIcon(f),
1154
- tagElements: compact(f.tags).map((t) => ({ innerHTML: t, color: 'stable-light' })),
1155
- subheadings: []
1156
- };
1157
- if (f.stats) {
1158
- entry.subheadings = [
1159
- (((_5 = f.container) === null || _5 === void 0 ? void 0 : _5.name) ? f.container.name + ' ' : '') +
1160
- f.stats
1161
- .map((s) => {
1162
- return '<span>' + translate(s.title) + ': ' + s.value.toString() + '</span>';
1163
- })
1164
- .join()
1165
- ];
1166
- }
1143
+ entry = parseFolderForCardList(this.item, this.entityType);
1167
1144
  }
1168
1145
  else if (this.entityType === 'unsplash') {
1169
1146
  const unsplash = this.item;
@@ -1209,8 +1186,8 @@ const YooEntityComponent = class {
1209
1186
  else if (this.entityType === 'publicAPITokens') {
1210
1187
  const token = this.item;
1211
1188
  entry = {
1212
- heading: (_6 = token === null || token === void 0 ? void 0 : token.user) === null || _6 === void 0 ? void 0 : _6.username,
1213
- subheadings: [(_7 = token === null || token === void 0 ? void 0 : token._tenant) === null || _7 === void 0 ? void 0 : _7.name],
1189
+ heading: (_4 = token === null || token === void 0 ? void 0 : token.user) === null || _4 === void 0 ? void 0 : _4.username,
1190
+ subheadings: [(_5 = token === null || token === void 0 ? void 0 : token._tenant) === null || _5 === void 0 ? void 0 : _5.name],
1214
1191
  users: [token === null || token === void 0 ? void 0 : token.user]
1215
1192
  };
1216
1193
  }
@@ -1251,15 +1228,15 @@ const YooEntityComponent = class {
1251
1228
  }
1252
1229
  else if (this.entityType === 'language') {
1253
1230
  entry = {
1254
- 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()),
1255
- 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)
1231
+ 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()),
1232
+ 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)
1256
1233
  };
1257
1234
  }
1258
1235
  else if (this.entityType === 'waitlistvisit') {
1259
1236
  const visit = this.item;
1260
1237
  const tagElements = getWaitlistVisitTags(visit);
1261
1238
  entry = {
1262
- heading: ((_11 = visit.name) === null || _11 === void 0 ? void 0 : _11.startsWith('NOINFO')) ? translate('NOINFO') : visit.name,
1239
+ heading: ((_9 = visit.name) === null || _9 === void 0 ? void 0 : _9.startsWith('NOINFO')) ? translate('NOINFO') : visit.name,
1263
1240
  tagElements
1264
1241
  };
1265
1242
  if (!isWeb(this.host)) {
@@ -1274,7 +1251,7 @@ const YooEntityComponent = class {
1274
1251
  else if (this.entityType === 'waitlistcustomer') {
1275
1252
  const customer = this.item;
1276
1253
  entry = {
1277
- heading: ((_12 = customer.name) === null || _12 === void 0 ? void 0 : _12.startsWith('NOINFO')) ? translate('NOINFO') : customer.name,
1254
+ heading: ((_10 = customer.name) === null || _10 === void 0 ? void 0 : _10.startsWith('NOINFO')) ? translate('NOINFO') : customer.name,
1278
1255
  subheadings: compact([customer.phone, customer.email])
1279
1256
  };
1280
1257
  }
@@ -1371,7 +1348,7 @@ const YooEntityComponent = class {
1371
1348
  subheadings: this.isAutocompleteSelected() ? null : group.description ? [group.description] : null,
1372
1349
  iconText: group.title || group.name || group._id,
1373
1350
  heading: group.title || group.name || group._id,
1374
- imgSrc: (_13 = group.icon) === null || _13 === void 0 ? void 0 : _13._downloadURL
1351
+ imgSrc: (_11 = group.icon) === null || _11 === void 0 ? void 0 : _11._downloadURL
1375
1352
  };
1376
1353
  entry.subheadings = group.subheadings || entry.subheadings;
1377
1354
  }
@@ -1381,7 +1358,7 @@ const YooEntityComponent = class {
1381
1358
  avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'medium',
1382
1359
  iconText: tenant.title || tenant.name,
1383
1360
  heading: (tenant.title || tenant.name || '').toUpperCase(),
1384
- imgSrc: (_14 = tenant.icon) === null || _14 === void 0 ? void 0 : _14._downloadURL,
1361
+ imgSrc: (_12 = tenant.icon) === null || _12 === void 0 ? void 0 : _12._downloadURL,
1385
1362
  subheadings: this.isAutocompleteSelected() ? null : compact([tenant.description])
1386
1363
  };
1387
1364
  }
@@ -1392,7 +1369,7 @@ const YooEntityComponent = class {
1392
1369
  avatarFrame: 'square',
1393
1370
  iconText: translateMulti(model.title || model.name),
1394
1371
  heading: translateMulti(model.title || model.name),
1395
- imgSrc: ((_15 = model.background) === null || _15 === void 0 ? void 0 : _15._downloadURL) || model.background,
1372
+ imgSrc: ((_13 = model.background) === null || _13 === void 0 ? void 0 : _13._downloadURL) || model.background,
1396
1373
  subheadings: this.isAutocompleteSelected() ? null : compact([translateMulti(model.shortDescription)])
1397
1374
  };
1398
1375
  }
@@ -1401,10 +1378,10 @@ const YooEntityComponent = class {
1401
1378
  entry = {
1402
1379
  heading: getUserDisplayName(filter.user),
1403
1380
  subheadings: compact([
1404
- ((_16 = filter.locations) === null || _16 === void 0 ? void 0 : _16.length) > 0
1381
+ ((_14 = filter.locations) === null || _14 === void 0 ? void 0 : _14.length) > 0
1405
1382
  ? filter.locations.length.toLocaleString() + ' ' + translate(filter.locations.length > 1 ? 'LOCATIONS' : 'LOCATION')
1406
1383
  : null,
1407
- ((_17 = filter.locationtypes) === null || _17 === void 0 ? void 0 : _17.length) > 0
1384
+ ((_15 = filter.locationtypes) === null || _15 === void 0 ? void 0 : _15.length) > 0
1408
1385
  ? filter.locationtypes.length.toLocaleString() + ' ' + translate(filter.locationtypes.length > 1 ? 'LOCATIONTYPES' : 'LOCATIONTYPE')
1409
1386
  : null
1410
1387
  ]),
@@ -1428,8 +1405,8 @@ const YooEntityComponent = class {
1428
1405
  entry = {
1429
1406
  heading: catalog.title,
1430
1407
  tags: this.isAutocompleteSelected() ? null : groupsResolver(catalog.group),
1431
- icon: ((_18 = catalog.image) === null || _18 === void 0 ? void 0 : _18._downloadURL) ? null : 'catalogue',
1432
- imgSrc: ((_19 = catalog.image) === null || _19 === void 0 ? void 0 : _19._downloadURL) ? catalog.image._downloadURL : null,
1408
+ icon: ((_16 = catalog.image) === null || _16 === void 0 ? void 0 : _16._downloadURL) ? null : 'catalogue',
1409
+ imgSrc: ((_17 = catalog.image) === null || _17 === void 0 ? void 0 : _17._downloadURL) ? catalog.image._downloadURL : null,
1433
1410
  avatarSize: this.isAutocompleteSelected() ? 'small' : 'large'
1434
1411
  };
1435
1412
  }
@@ -1449,8 +1426,8 @@ const YooEntityComponent = class {
1449
1426
  ],
1450
1427
  tagElements: product.outofstock ? [{ innerHTML: translate('OUTOFSTOCK'), color: 'danger' }] : null,
1451
1428
  tags: this.isAutocompleteSelected() || isWeb(this.host) ? null : product.tags,
1452
- icon: ((_20 = product.image) === null || _20 === void 0 ? void 0 : _20._downloadURL) ? null : 'photo-library',
1453
- imgSrc: ((_21 = product.image) === null || _21 === void 0 ? void 0 : _21._downloadURL) ? product.image._downloadURL : null,
1429
+ icon: ((_18 = product.image) === null || _18 === void 0 ? void 0 : _18._downloadURL) ? null : 'photo-library',
1430
+ imgSrc: ((_19 = product.image) === null || _19 === void 0 ? void 0 : _19._downloadURL) ? product.image._downloadURL : null,
1454
1431
  avatarSize: this.isHistory || this.host.classList.contains('simple') ? 'large' : this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'extra-large',
1455
1432
  avatarFrame: 'square',
1456
1433
  allowCustomHtml: true
@@ -1459,7 +1436,7 @@ const YooEntityComponent = class {
1459
1436
  else if (this.entityType === 'violetproducts') {
1460
1437
  const product = this.item;
1461
1438
  let subheadings = [product.description];
1462
- 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)) {
1439
+ 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)) {
1463
1440
  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 })];
1464
1441
  }
1465
1442
  if (!product.available) {
@@ -1487,7 +1464,7 @@ const YooEntityComponent = class {
1487
1464
  };
1488
1465
  }
1489
1466
  else if (this.entityType === 'violetbasketitems') {
1490
- const sku = (_25 = this.item) === null || _25 === void 0 ? void 0 : _25.sku;
1467
+ const sku = (_23 = this.item) === null || _23 === void 0 ? void 0 : _23.sku;
1491
1468
  const price = (sku.sale_price * (this.item.quantity || 1)) / 100;
1492
1469
  const subheadings = [pipes.currency.transform(price, { strictPrecision: false, customSymbol: sku.currency, forceSymbol: true })];
1493
1470
  entry = {
@@ -1529,11 +1506,11 @@ const YooEntityComponent = class {
1529
1506
  entry = {
1530
1507
  heading: arModel.product ? arModel.product.title : 'YOOBICNA',
1531
1508
  tagElements: arModel.experience ? [{ innerHTML: translate((arModel.experience.mode || 'object').toUpperCase()), color: 'dark' }] : null,
1532
- topLeftBadge: ((_26 = arModel.photos) === null || _26 === void 0 ? void 0 : _26.length) > 0 ? arModel.photos.length.toLocaleString() : null,
1509
+ topLeftBadge: ((_24 = arModel.photos) === null || _24 === void 0 ? void 0 : _24.length) > 0 ? arModel.photos.length.toLocaleString() : null,
1533
1510
  subheadings: [arModel.product ? arModel.product.reference : '', arModel.rating ? translate('RATING') + ' ' + arModel.rating.toLocaleString() : null],
1534
1511
  tags: arModel.experience ? [arModel.experience.name] : null,
1535
- icon: ((_28 = (_27 = arModel.product) === null || _27 === void 0 ? void 0 : _27.image) === null || _28 === void 0 ? void 0 : _28._downloadURL) ? null : 'photo-library',
1536
- 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
1512
+ icon: ((_26 = (_25 = arModel.product) === null || _25 === void 0 ? void 0 : _25.image) === null || _26 === void 0 ? void 0 : _26._downloadURL) ? null : 'photo-library',
1513
+ 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
1537
1514
  };
1538
1515
  }
1539
1516
  else if (this.entityType === 'algorithm') {
@@ -1556,14 +1533,14 @@ const YooEntityComponent = class {
1556
1533
  subheadings: [
1557
1534
  productBatch.product ? productBatch.product.reference : '',
1558
1535
  ...(getSession().user && getSession().user.locationRef === productBatch.locationRef
1559
- ? compact([((_31 = this.extraClass) === null || _31 === void 0 ? void 0 : _31.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
1560
- : ((_32 = productBatch.location) === null || _32 === void 0 ? void 0 : _32.title)
1561
- ? [productBatch.location.title + ' - ' + (((_33 = productBatch.aisle) === null || _33 === void 0 ? void 0 : _33.title) || '')]
1536
+ ? compact([((_29 = this.extraClass) === null || _29 === void 0 ? void 0 : _29.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
1537
+ : ((_30 = productBatch.location) === null || _30 === void 0 ? void 0 : _30.title)
1538
+ ? [productBatch.location.title + ' - ' + (((_31 = productBatch.aisle) === null || _31 === void 0 ? void 0 : _31.title) || '')]
1562
1539
  : [])
1563
1540
  ],
1564
1541
  tags: productBatch.tags,
1565
- 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',
1566
- 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
1542
+ 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',
1543
+ 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
1567
1544
  };
1568
1545
  if (productBatch.archived) {
1569
1546
  extraClasses += ' archived ';
@@ -1600,7 +1577,7 @@ const YooEntityComponent = class {
1600
1577
  heading: product.title,
1601
1578
  subheadings,
1602
1579
  date: isPresent(this.item.description) ? this.item.description : null,
1603
- imgSrc: ((_38 = product === null || product === void 0 ? void 0 : product.image) === null || _38 === void 0 ? void 0 : _38._downloadURL) ? product.image._downloadURL : null,
1580
+ imgSrc: ((_36 = product === null || product === void 0 ? void 0 : product.image) === null || _36 === void 0 ? void 0 : _36._downloadURL) ? product.image._downloadURL : null,
1604
1581
  avatarFrame: 'square',
1605
1582
  // 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
1606
1583
  // this case is described into the form-entity-value-pairs.spec tests
@@ -1786,10 +1763,10 @@ const YooEntityComponent = class {
1786
1763
  else if (this.entityType === 'topusers') {
1787
1764
  entry = {
1788
1765
  heading: `${this.item.firstName} ${this.item.lastName}`,
1789
- rank: (_39 = this.item) === null || _39 === void 0 ? void 0 : _39.rank,
1766
+ rank: (_37 = this.item) === null || _37 === void 0 ? void 0 : _37.rank,
1790
1767
  points: null,
1791
1768
  users: [this.item],
1792
- tagElementsInHeader: { tags: (_40 = this.item) === null || _40 === void 0 ? void 0 : _40.tagElements, location: 'end' }
1769
+ tagElementsInHeader: { tags: (_38 = this.item) === null || _38 === void 0 ? void 0 : _38.tagElements, location: 'end' }
1793
1770
  };
1794
1771
  }
1795
1772
  else if (this.entityType === 'questions') {
@@ -1854,17 +1831,17 @@ const YooEntityComponent = class {
1854
1831
  subheadings: [
1855
1832
  'Operation Id: ' + op.operationId,
1856
1833
  'Request Id: ' + op.requestId,
1857
- ((_41 = op.operation) === null || _41 === void 0 ? void 0 : _41.accessToken) ? 'User:' + getUserDisplayName(op.operation.accessToken) : null,
1858
- ((_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,
1859
- ((_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']
1834
+ ((_39 = op.operation) === null || _39 === void 0 ? void 0 : _39.accessToken) ? 'User:' + getUserDisplayName(op.operation.accessToken) : null,
1835
+ ((_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,
1836
+ ((_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']
1860
1837
  ? 'Client Version:' + op.requestLog.meta.req.headers['yoobic-client-version']
1861
1838
  : null,
1862
- ((_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']
1839
+ ((_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']
1863
1840
  ? 'User Agent:' + op.requestLog.meta.req.headers['user-agent']
1864
1841
  : null
1865
1842
  ],
1866
1843
  date: pipes.dateFormat.transform(op._ect, 'L LT'),
1867
- users: ((_51 = op.operation) === null || _51 === void 0 ? void 0 : _51.accessToken) ? [op.operation.accessToken] : null,
1844
+ users: ((_49 = op.operation) === null || _49 === void 0 ? void 0 : _49.accessToken) ? [op.operation.accessToken] : null,
1868
1845
  tagElements: compact([
1869
1846
  op.isCreation
1870
1847
  ? {
@@ -1918,12 +1895,12 @@ const YooEntityComponent = class {
1918
1895
  entry = {
1919
1896
  heading: translateMulti(battleList.title),
1920
1897
  subheadings: [lessonsCount + ' ' + translate(lessonsCount > 1 ? 'LESSONS' : 'LESSON')],
1921
- imgSrc: ((_52 = battleList.background) === null || _52 === void 0 ? void 0 : _52._downloadURL) ? battleList.background._downloadURL : null,
1898
+ imgSrc: ((_50 = battleList.background) === null || _50 === void 0 ? void 0 : _50._downloadURL) ? battleList.background._downloadURL : null,
1922
1899
  avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'extra-extra-large',
1923
1900
  avatarFrame: 'square'
1924
1901
  };
1925
1902
  }
1926
- 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)) {
1903
+ 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)) {
1927
1904
  entry = {};
1928
1905
  this.customModel.appearance.forEach((value, key) => {
1929
1906
  if (key === 'displayTypes') {
@@ -1964,7 +1941,7 @@ const YooEntityComponent = class {
1964
1941
  else if (this.entityType === 'widgets') {
1965
1942
  const widget = this.item;
1966
1943
  entry = {
1967
- heading: widget.title || ((_55 = widget.page) === null || _55 === void 0 ? void 0 : _55.path),
1944
+ heading: widget.title || ((_53 = widget.page) === null || _53 === void 0 ? void 0 : _53.path),
1968
1945
  imgSrc: widget.photo,
1969
1946
  icon: widget.icon,
1970
1947
  subheadings: compact([]),
@@ -2041,16 +2018,16 @@ const YooEntityComponent = class {
2041
2018
  }
2042
2019
  const title = this.useTranslate ? defaultTitle.toUpperCase() : defaultTitle;
2043
2020
  entry.heading = translateMulti(title);
2044
- if ((_56 = this.item) === null || _56 === void 0 ? void 0 : _56.description) {
2021
+ if ((_54 = this.item) === null || _54 === void 0 ? void 0 : _54.description) {
2045
2022
  entry.subheadings = [translateMulti(this.item.description)];
2046
2023
  }
2047
- if ((_58 = (_57 = this.item) === null || _57 === void 0 ? void 0 : _57.background) === null || _58 === void 0 ? void 0 : _58._downloadURL) {
2024
+ if ((_56 = (_55 = this.item) === null || _55 === void 0 ? void 0 : _55.background) === null || _56 === void 0 ? void 0 : _56._downloadURL) {
2048
2025
  entry.imgSrc = this.item.background._downloadURL;
2049
2026
  }
2050
- else if (((_59 = this.item) === null || _59 === void 0 ? void 0 : _59.background) && isString(this.item.background)) {
2027
+ else if (((_57 = this.item) === null || _57 === void 0 ? void 0 : _57.background) && isString(this.item.background)) {
2051
2028
  entry.imgSrc = this.item.background;
2052
2029
  }
2053
- if ((_61 = (_60 = this.item) === null || _60 === void 0 ? void 0 : _60.icon) === null || _61 === void 0 ? void 0 : _61._downloadURL) {
2030
+ if ((_59 = (_58 = this.item) === null || _58 === void 0 ? void 0 : _58.icon) === null || _59 === void 0 ? void 0 : _59._downloadURL) {
2054
2031
  entry.imgSrc = this.item.icon._downloadURL;
2055
2032
  }
2056
2033
  else if (this.item && isString(this.item.icon)) {
@@ -2074,7 +2051,7 @@ const YooEntityComponent = class {
2074
2051
  const comment = this.item;
2075
2052
  entry = parseEntityCommentsForCardList(comment);
2076
2053
  }
2077
- if ((_62 = this.item) === null || _62 === void 0 ? void 0 : _62.badge) {
2054
+ if ((_60 = this.item) === null || _60 === void 0 ? void 0 : _60.badge) {
2078
2055
  entry.tagElements = [{ innerHTML: this.item.badge, color: 'app-color' }];
2079
2056
  }
2080
2057
  }
@@ -2083,7 +2060,7 @@ const YooEntityComponent = class {
2083
2060
  !this.isAutocompleteSelected() &&
2084
2061
  !this.hideUIFields &&
2085
2062
  this.customModel &&
2086
- ((_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) {
2063
+ ((_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) {
2087
2064
  entry.uiFields = {
2088
2065
  fields: this.customModel.formFields.filter((f) => f.showInCard),
2089
2066
  data: this.item
@@ -2125,7 +2102,7 @@ const YooEntityComponent = class {
2125
2102
  if (this.host.classList.contains('full-width')) {
2126
2103
  extraClasses += ' full-width ';
2127
2104
  }
2128
- if (((_65 = this.item) === null || _65 === void 0 ? void 0 : _65._id) === getSession().userId) {
2105
+ if (((_63 = this.item) === null || _63 === void 0 ? void 0 : _63._id) === getSession().userId) {
2129
2106
  extraClasses += ' current ';
2130
2107
  }
2131
2108
  if (this.extraClass) {
@@ -2154,7 +2131,7 @@ const YooEntityComponent = class {
2154
2131
  [extraClasses]: true,
2155
2132
  [this.entityType]: this.entityType !== undefined,
2156
2133
  'form-permission': this.host.classList.contains('form-permission')
2157
- } }, ((_66 = this.inlineActions) === null || _66 === void 0 ? void 0 : _66.length) > 0 && (h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
2134
+ } }, ((_64 = this.inlineActions) === null || _64 === void 0 ? void 0 : _64.length) > 0 && (h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
2158
2135
  return (h("span", { class: action.cssClass, onClick: () => (action.handler ? action.handler(this.item) : null) }, action.text));
2159
2136
  })))));
2160
2137
  }
@@ -474,7 +474,9 @@ const YooFormAutocompleteComponent = class {
474
474
  }
475
475
  async refreshValues() {
476
476
  await this.resetCurrentPage();
477
- this.fetchData.emit({ search: this.searchText, appendData: false, currentPage: this.currentPage, pageSize: this.pageSize, tmpValues: this.values, fieldValue: this.value });
477
+ if (!this.isLocal) {
478
+ this.fetchData.emit({ search: this.searchText, appendData: false, currentPage: this.currentPage, pageSize: this.pageSize, tmpValues: this.values, fieldValue: this.value });
479
+ }
478
480
  }
479
481
  async onInputContainerClicked() {
480
482
  this.host.classList.add('focused');
@@ -735,8 +737,7 @@ const YooFormAutocompleteComponent = class {
735
737
  }
736
738
  }
737
739
  onFilterRadioToggled(operator) {
738
- this.filterOperator = operator;
739
- this.extraDataChanged.emit(this.filterOperator);
740
+ this.extraDataChanged.emit(operator);
740
741
  }
741
742
  async onFileChanges(ev) {
742
743
  ev.stopPropagation();
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, i as createEvent, h, e as Host, g as getElement } from './index-becca019.js';
2
2
  import './index-c7d02f02.js';
3
3
  import { h as highcharts } from './highcharts-c1be7540.js';
4
- import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, i as isSelected, g as getColor, o as onItemSelect, R as ReadonlyCard } from './form-choice-helpers-800a6124.js';
4
+ import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, i as isSelected, g as getColor, o as onItemSelect, R as ReadonlyCard } from './form-choice-helpers-b6936c42.js';
5
5
  import { t as translate, Z as translateMulti } from './overlays-be5a9ab3.js';
6
6
  import './lodash-f6e59a8e.js';
7
7
  import './_commonjsHelpers-f4d11124.js';
@@ -1,4 +1,4 @@
1
- export { Y as yoo_form_choice_card } from './form-choice-helpers-800a6124.js';
1
+ export { Y as yoo_form_choice_card } from './form-choice-helpers-b6936c42.js';
2
2
  import './index-c7d02f02.js';
3
3
  import './overlays-be5a9ab3.js';
4
4
  import './lodash-f6e59a8e.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, i as createEvent, h, e as Host, g as getElement } from './index-becca019.js';
2
2
  import { M as MessageType } from './index-e7f48bcb.js';
3
3
  import './index-c7d02f02.js';
4
- import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, i as isSelected, o as onItemSelect, R as ReadonlyCard } from './form-choice-helpers-800a6124.js';
4
+ import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, i as isSelected, o as onItemSelect, R as ReadonlyCard } from './form-choice-helpers-b6936c42.js';
5
5
  import { t as translate, Z as translateMulti } from './overlays-be5a9ab3.js';
6
6
  import './lodash-f6e59a8e.js';
7
7
  import './draggable-tags-helpers-39c6661b.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, i as createEvent, h, e as Host, g as getElement } from './index-becca019.js';
2
2
  import './index-c7d02f02.js';
3
3
  import { a as showSlidesMedia } from './common-helpers-0071c2da.js';
4
- import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, o as onItemSelect, i as isSelected } from './form-choice-helpers-800a6124.js';
4
+ import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, o as onItemSelect, i as isSelected } from './form-choice-helpers-b6936c42.js';
5
5
  import { Z as translateMulti } from './overlays-be5a9ab3.js';
6
6
  import './lodash-f6e59a8e.js';
7
7
  import './draggable-tags-helpers-39c6661b.js';
@@ -2,7 +2,7 @@ import { r as registerInstance, i as createEvent, h, e as Host, g as getElement
2
2
  import './index-c7d02f02.js';
3
3
  import { n as compact, q as isString } from './lodash-f6e59a8e.js';
4
4
  import { a as setValueAndValidateInput } from './form-input-helpers-a792a9ab.js';
5
- import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, o as onItemSelect, R as ReadonlyCard } from './form-choice-helpers-800a6124.js';
5
+ import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, o as onItemSelect, R as ReadonlyCard } from './form-choice-helpers-b6936c42.js';
6
6
  import { t as translate, X as isNullOrUndefined, Z as translateMulti } from './overlays-be5a9ab3.js';
7
7
  import './index-e7f48bcb.js';
8
8
  import './common-helpers-0071c2da.js';
@@ -97,9 +97,10 @@ const YooFormConnectComponent = class {
97
97
  (_a = this.draggableElements) === null || _a === void 0 ? void 0 : _a.forEach(e => this.initDraggableActions(e));
98
98
  }
99
99
  async scrollToRevealGame() {
100
+ var _a;
100
101
  const GAP_PADDING = 8;
101
102
  const scrollElement = this.host.closest('yoo-ion-scroll');
102
- if (scrollElement && this.values.length === 2) {
103
+ if (scrollElement && ((_a = this.values) === null || _a === void 0 ? void 0 : _a.length) === 2) {
103
104
  const setScrollableHeight = () => {
104
105
  const getHeight = (el) => { var _a; return (_a = el === null || el === void 0 ? void 0 : el.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.height; };
105
106
  const formHeight = getHeight(this.host.closest('yoo-form-input-container'));
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, i as createEvent, h, e as Host } from './index-becca019.js';
2
2
  import './index-c7d02f02.js';
3
- import { g as groupsFullResolver } from './entities-helpers-9ea378f0.js';
3
+ import { g as groupsFullResolver } from './entities-helpers-67ff3fa4.js';
4
4
  import { K as getCssColor, t as translate, Z as translateMulti, a7 as getUserDisplayName } from './overlays-be5a9ab3.js';
5
5
  import './lodash-f6e59a8e.js';
6
6
  import './index-e7f48bcb.js';
@@ -3464,6 +3464,7 @@ const YooFormDynamicComponent = class {
3464
3464
  inline: this.isInline(),
3465
3465
  tags: field.tags,
3466
3466
  isFilter: field.type === FormFieldType.filterautocomplete,
3467
+ filterOperator: field.filterOperator,
3467
3468
  forceDisableCustomTags: field.forceDisableCustomTags,
3468
3469
  extraData: this.getExtraData(field, data),
3469
3470
  forceHideSearch: !!field.forceHideSearch,
@@ -143,7 +143,13 @@ const YooFormMissionfieldComponent = class {
143
143
  renderEditable() {
144
144
  var _a, _b, _c, _d, _e;
145
145
  const showFields = this.type === 'missionfield' || this.type === 'datasetfield';
146
- return (h("div", { class: "container" }, !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 })), !this.hideCampaign && h("div", { class: "spacer" }), 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) => {
146
+ const isLocal = ((_a = this.customModelValues) === null || _a === void 0 ? void 0 : _a.length) >= 0;
147
+ return (h("div", { class: "container" }, !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) => {
148
+ ev.stopPropagation();
149
+ if (!isLocal) {
150
+ this.onFetchData(ev);
151
+ }
152
+ }, 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 })), !this.hideCampaign && h("div", { class: "spacer" }), 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) => {
147
153
  ev.stopPropagation();
148
154
  this.onInputSecondaryFetchData(ev);
149
155
  }, onInputChanged: (ev) => this.onInputSecondaryChanged(ev), onValidityChanged: (ev) => this.stopValidityChangeEvent(ev), clearable: true, tabindex: this.inputTabIndex + 1, size: this.size })));