@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.
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/{entities-helpers-e77cfd61.js → entities-helpers-99fc4a8a.js} +29 -1
- package/dist/cjs/{filters-helpers-536b7b88.js → filters-helpers-63712f8d.js} +6 -13
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/yoo-detail-bar.cjs.entry.js +1 -1
- package/dist/cjs/yoo-entity-query-builder.cjs.entry.js +1 -1
- package/dist/cjs/yoo-entity-search-filters.cjs.entry.js +1 -1
- package/dist/cjs/yoo-entity.cjs.entry.js +47 -70
- package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +4 -3
- package/dist/cjs/yoo-form-creator-workflow-step.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-dynamic.cjs.entry.js +1 -0
- package/dist/cjs/yoo-form-missionfield.cjs.entry.js +7 -1
- package/dist/cjs/yoo-form-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/yoo-grid.cjs.entry.js +1 -1
- package/dist/cjs/yoo-section-list.cjs.entry.js +3 -3
- package/dist/cjs/yoo-slides-media.cjs.entry.js +1 -1
- package/dist/cjs/yoo-user-profile.cjs.entry.js +1 -1
- package/dist/collection/components/entities/entity/entity.js +47 -70
- package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +27 -5
- package/dist/collection/components/form/form-dynamic/form-dynamic.js +1 -0
- package/dist/collection/components/form/form-missionfield/form-missionfield.js +7 -1
- package/dist/collection/feature-learn/learning/section-list/section-list.js +3 -3
- package/dist/collection/utils/helpers/entities-helpers.js +29 -2
- package/dist/collection/utils/helpers/filters-helpers.js +6 -13
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/{esm/entities-helpers-9ea378f0.js → design-system/entities-helpers-67ff3fa4.js} +30 -3
- package/dist/{esm/filters-helpers-41224cde.js → design-system/filters-helpers-ded9ed03.js} +6 -13
- package/dist/design-system/yoo-detail-bar.entry.js +1 -1
- package/dist/design-system/yoo-entity-query-builder.entry.js +1 -1
- package/dist/design-system/yoo-entity-search-filters.entry.js +1 -1
- package/dist/design-system/yoo-entity.entry.js +47 -70
- package/dist/design-system/yoo-form-autocomplete.entry.js +4 -3
- package/dist/design-system/yoo-form-creator-workflow-step.entry.js +1 -1
- package/dist/design-system/yoo-form-dynamic.entry.js +1 -0
- package/dist/design-system/yoo-form-missionfield.entry.js +7 -1
- package/dist/design-system/yoo-form-text-editor.entry.js +1 -1
- package/dist/design-system/yoo-grid.entry.js +1 -1
- package/dist/design-system/yoo-section-list.entry.js +4 -4
- package/dist/design-system/yoo-slides-media.entry.js +1 -1
- package/dist/design-system/yoo-user-profile.entry.js +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/{design-system/entities-helpers-9ea378f0.js → esm/entities-helpers-67ff3fa4.js} +30 -3
- package/dist/{design-system/filters-helpers-41224cde.js → esm/filters-helpers-ded9ed03.js} +6 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/yoo-detail-bar.entry.js +1 -1
- package/dist/esm/yoo-entity-query-builder.entry.js +1 -1
- package/dist/esm/yoo-entity-search-filters.entry.js +1 -1
- package/dist/esm/yoo-entity.entry.js +47 -70
- package/dist/esm/yoo-form-autocomplete.entry.js +4 -3
- package/dist/esm/yoo-form-creator-workflow-step.entry.js +1 -1
- package/dist/esm/yoo-form-dynamic.entry.js +1 -0
- package/dist/esm/yoo-form-missionfield.entry.js +7 -1
- package/dist/esm/yoo-form-text-editor.entry.js +1 -1
- package/dist/esm/yoo-grid.entry.js +1 -1
- package/dist/esm/yoo-section-list.entry.js +4 -4
- package/dist/esm/yoo-slides-media.entry.js +1 -1
- package/dist/esm/yoo-user-profile.entry.js +1 -1
- package/dist/types/components/form/form-autocomplete/form-autocomplete.d.ts +1 -1
- package/dist/types/components.d.ts +2 -0
- 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
- package/dist/types/utils/helpers/entities-helpers.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-2e1afd31.js');
|
|
6
6
|
require('./index-9dd76b79.js');
|
|
7
7
|
const lodash = require('./lodash-72d493b9.js');
|
|
8
|
-
const entitiesHelpers = require('./entities-helpers-
|
|
8
|
+
const entitiesHelpers = require('./entities-helpers-99fc4a8a.js');
|
|
9
9
|
const overlays = require('./overlays-046b4f60.js');
|
|
10
10
|
require('./index-f6133645.js');
|
|
11
11
|
require('./_commonjsHelpers-94df2ea7.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-2e1afd31.js');
|
|
|
6
6
|
const index$1 = require('./index-f6133645.js');
|
|
7
7
|
require('./index-9dd76b79.js');
|
|
8
8
|
const lodash = require('./lodash-72d493b9.js');
|
|
9
|
-
const filtersHelpers = require('./filters-helpers-
|
|
9
|
+
const filtersHelpers = require('./filters-helpers-63712f8d.js');
|
|
10
10
|
const overlays = require('./overlays-046b4f60.js');
|
|
11
11
|
require('./_commonjsHelpers-94df2ea7.js');
|
|
12
12
|
|
|
@@ -7,7 +7,7 @@ const index$1 = require('./index-f6133645.js');
|
|
|
7
7
|
require('./index-9dd76b79.js');
|
|
8
8
|
const lodash = require('./lodash-72d493b9.js');
|
|
9
9
|
const commonHelpers = require('./common-helpers-bfdca115.js');
|
|
10
|
-
const filtersHelpers = require('./filters-helpers-
|
|
10
|
+
const filtersHelpers = require('./filters-helpers-63712f8d.js');
|
|
11
11
|
const overlays = require('./overlays-046b4f60.js');
|
|
12
12
|
require('./_commonjsHelpers-94df2ea7.js');
|
|
13
13
|
|
|
@@ -11,7 +11,7 @@ const operationHelpers = require('./operation-helpers-5ae48a67.js');
|
|
|
11
11
|
const missionsHelpers = require('./missions-helpers-5406a2ef.js');
|
|
12
12
|
const button_factory = require('./button.factory-7f25fe7e.js');
|
|
13
13
|
const commonHelpers = require('./common-helpers-bfdca115.js');
|
|
14
|
-
const entitiesHelpers = require('./entities-helpers-
|
|
14
|
+
const entitiesHelpers = require('./entities-helpers-99fc4a8a.js');
|
|
15
15
|
const theme = require('./theme-c6ad0aa0.js');
|
|
16
16
|
const overlays = require('./overlays-046b4f60.js');
|
|
17
17
|
require('./index-6511a214.js');
|
|
@@ -814,7 +814,7 @@ const YooEntityComponent = class {
|
|
|
814
814
|
return address;
|
|
815
815
|
}
|
|
816
816
|
renderCardList(extraClasses) {
|
|
817
|
-
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
|
|
817
|
+
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;
|
|
818
818
|
let entry = {};
|
|
819
819
|
if (this.entityMapping) {
|
|
820
820
|
entry = this.entityMapping(this.item, this.entityType, this.displayType);
|
|
@@ -1143,31 +1143,8 @@ const YooEntityComponent = class {
|
|
|
1143
1143
|
};
|
|
1144
1144
|
}
|
|
1145
1145
|
else if (this.entityType === 'folders' || (this.entityType === 'filesFolders' && this.item.fftype === 'folder')) {
|
|
1146
|
-
const f = this.item;
|
|
1147
1146
|
extraClasses += ' folders ';
|
|
1148
|
-
|
|
1149
|
-
entry = {
|
|
1150
|
-
heading: f.name,
|
|
1151
|
-
imgSrc,
|
|
1152
|
-
cloudinaryOptions: overlays.isVideo(imgSrc) ? { fallbackToOriginal: true, gif: true, videoEdit: 3 } : null,
|
|
1153
|
-
avatarSize: 'large',
|
|
1154
|
-
avatarIconSize: this.entityType === 'folders' ? 'extra-large' : 'large',
|
|
1155
|
-
avatarFrame: 'transparent-square',
|
|
1156
|
-
avatarColor: f.color ? `${f.color}` : overlays.getCssColor('app-color-80'),
|
|
1157
|
-
icon: entitiesHelpers.getFolderIcon(f),
|
|
1158
|
-
tagElements: lodash.compact(f.tags).map((t) => ({ innerHTML: t, color: 'stable-light' })),
|
|
1159
|
-
subheadings: []
|
|
1160
|
-
};
|
|
1161
|
-
if (f.stats) {
|
|
1162
|
-
entry.subheadings = [
|
|
1163
|
-
(((_5 = f.container) === null || _5 === void 0 ? void 0 : _5.name) ? f.container.name + ' ' : '') +
|
|
1164
|
-
f.stats
|
|
1165
|
-
.map((s) => {
|
|
1166
|
-
return '<span>' + overlays.translate(s.title) + ': ' + s.value.toString() + '</span>';
|
|
1167
|
-
})
|
|
1168
|
-
.join()
|
|
1169
|
-
];
|
|
1170
|
-
}
|
|
1147
|
+
entry = entitiesHelpers.parseFolderForCardList(this.item, this.entityType);
|
|
1171
1148
|
}
|
|
1172
1149
|
else if (this.entityType === 'unsplash') {
|
|
1173
1150
|
const unsplash = this.item;
|
|
@@ -1213,8 +1190,8 @@ const YooEntityComponent = class {
|
|
|
1213
1190
|
else if (this.entityType === 'publicAPITokens') {
|
|
1214
1191
|
const token = this.item;
|
|
1215
1192
|
entry = {
|
|
1216
|
-
heading: (
|
|
1217
|
-
subheadings: [(
|
|
1193
|
+
heading: (_4 = token === null || token === void 0 ? void 0 : token.user) === null || _4 === void 0 ? void 0 : _4.username,
|
|
1194
|
+
subheadings: [(_5 = token === null || token === void 0 ? void 0 : token._tenant) === null || _5 === void 0 ? void 0 : _5.name],
|
|
1218
1195
|
users: [token === null || token === void 0 ? void 0 : token.user]
|
|
1219
1196
|
};
|
|
1220
1197
|
}
|
|
@@ -1255,15 +1232,15 @@ const YooEntityComponent = class {
|
|
|
1255
1232
|
}
|
|
1256
1233
|
else if (this.entityType === 'language') {
|
|
1257
1234
|
entry = {
|
|
1258
|
-
heading: ((
|
|
1259
|
-
flag: this.host.classList.contains('hide-icon') ? null : ((
|
|
1235
|
+
heading: ((_6 = this.item) === null || _6 === void 0 ? void 0 : _6.title) ? overlays.translate(this.item.title.toUpperCase()) : ((_7 = this.item) === null || _7 === void 0 ? void 0 : _7._id) ? overlays.translate(this.item._id.toUpperCase()) : overlays.translate(this.item.toUpperCase()),
|
|
1236
|
+
flag: this.host.classList.contains('hide-icon') ? null : ((_8 = this.item) === null || _8 === void 0 ? void 0 : _8._id) ? overlays.getLanguageFlag(this.item._id) : overlays.getLanguageFlag(this.item)
|
|
1260
1237
|
};
|
|
1261
1238
|
}
|
|
1262
1239
|
else if (this.entityType === 'waitlistvisit') {
|
|
1263
1240
|
const visit = this.item;
|
|
1264
1241
|
const tagElements = operationHelpers.getWaitlistVisitTags(visit);
|
|
1265
1242
|
entry = {
|
|
1266
|
-
heading: ((
|
|
1243
|
+
heading: ((_9 = visit.name) === null || _9 === void 0 ? void 0 : _9.startsWith('NOINFO')) ? overlays.translate('NOINFO') : visit.name,
|
|
1267
1244
|
tagElements
|
|
1268
1245
|
};
|
|
1269
1246
|
if (!overlays.isWeb(this.host)) {
|
|
@@ -1278,7 +1255,7 @@ const YooEntityComponent = class {
|
|
|
1278
1255
|
else if (this.entityType === 'waitlistcustomer') {
|
|
1279
1256
|
const customer = this.item;
|
|
1280
1257
|
entry = {
|
|
1281
|
-
heading: ((
|
|
1258
|
+
heading: ((_10 = customer.name) === null || _10 === void 0 ? void 0 : _10.startsWith('NOINFO')) ? overlays.translate('NOINFO') : customer.name,
|
|
1282
1259
|
subheadings: lodash.compact([customer.phone, customer.email])
|
|
1283
1260
|
};
|
|
1284
1261
|
}
|
|
@@ -1375,7 +1352,7 @@ const YooEntityComponent = class {
|
|
|
1375
1352
|
subheadings: this.isAutocompleteSelected() ? null : group.description ? [group.description] : null,
|
|
1376
1353
|
iconText: group.title || group.name || group._id,
|
|
1377
1354
|
heading: group.title || group.name || group._id,
|
|
1378
|
-
imgSrc: (
|
|
1355
|
+
imgSrc: (_11 = group.icon) === null || _11 === void 0 ? void 0 : _11._downloadURL
|
|
1379
1356
|
};
|
|
1380
1357
|
entry.subheadings = group.subheadings || entry.subheadings;
|
|
1381
1358
|
}
|
|
@@ -1385,7 +1362,7 @@ const YooEntityComponent = class {
|
|
|
1385
1362
|
avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'medium',
|
|
1386
1363
|
iconText: tenant.title || tenant.name,
|
|
1387
1364
|
heading: (tenant.title || tenant.name || '').toUpperCase(),
|
|
1388
|
-
imgSrc: (
|
|
1365
|
+
imgSrc: (_12 = tenant.icon) === null || _12 === void 0 ? void 0 : _12._downloadURL,
|
|
1389
1366
|
subheadings: this.isAutocompleteSelected() ? null : lodash.compact([tenant.description])
|
|
1390
1367
|
};
|
|
1391
1368
|
}
|
|
@@ -1396,7 +1373,7 @@ const YooEntityComponent = class {
|
|
|
1396
1373
|
avatarFrame: 'square',
|
|
1397
1374
|
iconText: overlays.translateMulti(model.title || model.name),
|
|
1398
1375
|
heading: overlays.translateMulti(model.title || model.name),
|
|
1399
|
-
imgSrc: ((
|
|
1376
|
+
imgSrc: ((_13 = model.background) === null || _13 === void 0 ? void 0 : _13._downloadURL) || model.background,
|
|
1400
1377
|
subheadings: this.isAutocompleteSelected() ? null : lodash.compact([overlays.translateMulti(model.shortDescription)])
|
|
1401
1378
|
};
|
|
1402
1379
|
}
|
|
@@ -1405,10 +1382,10 @@ const YooEntityComponent = class {
|
|
|
1405
1382
|
entry = {
|
|
1406
1383
|
heading: overlays.getUserDisplayName(filter.user),
|
|
1407
1384
|
subheadings: lodash.compact([
|
|
1408
|
-
((
|
|
1385
|
+
((_14 = filter.locations) === null || _14 === void 0 ? void 0 : _14.length) > 0
|
|
1409
1386
|
? filter.locations.length.toLocaleString() + ' ' + overlays.translate(filter.locations.length > 1 ? 'LOCATIONS' : 'LOCATION')
|
|
1410
1387
|
: null,
|
|
1411
|
-
((
|
|
1388
|
+
((_15 = filter.locationtypes) === null || _15 === void 0 ? void 0 : _15.length) > 0
|
|
1412
1389
|
? filter.locationtypes.length.toLocaleString() + ' ' + overlays.translate(filter.locationtypes.length > 1 ? 'LOCATIONTYPES' : 'LOCATIONTYPE')
|
|
1413
1390
|
: null
|
|
1414
1391
|
]),
|
|
@@ -1432,8 +1409,8 @@ const YooEntityComponent = class {
|
|
|
1432
1409
|
entry = {
|
|
1433
1410
|
heading: catalog.title,
|
|
1434
1411
|
tags: this.isAutocompleteSelected() ? null : overlays.groupsResolver(catalog.group),
|
|
1435
|
-
icon: ((
|
|
1436
|
-
imgSrc: ((
|
|
1412
|
+
icon: ((_16 = catalog.image) === null || _16 === void 0 ? void 0 : _16._downloadURL) ? null : 'catalogue',
|
|
1413
|
+
imgSrc: ((_17 = catalog.image) === null || _17 === void 0 ? void 0 : _17._downloadURL) ? catalog.image._downloadURL : null,
|
|
1437
1414
|
avatarSize: this.isAutocompleteSelected() ? 'small' : 'large'
|
|
1438
1415
|
};
|
|
1439
1416
|
}
|
|
@@ -1453,8 +1430,8 @@ const YooEntityComponent = class {
|
|
|
1453
1430
|
],
|
|
1454
1431
|
tagElements: product.outofstock ? [{ innerHTML: overlays.translate('OUTOFSTOCK'), color: 'danger' }] : null,
|
|
1455
1432
|
tags: this.isAutocompleteSelected() || overlays.isWeb(this.host) ? null : product.tags,
|
|
1456
|
-
icon: ((
|
|
1457
|
-
imgSrc: ((
|
|
1433
|
+
icon: ((_18 = product.image) === null || _18 === void 0 ? void 0 : _18._downloadURL) ? null : 'photo-library',
|
|
1434
|
+
imgSrc: ((_19 = product.image) === null || _19 === void 0 ? void 0 : _19._downloadURL) ? product.image._downloadURL : null,
|
|
1458
1435
|
avatarSize: this.isHistory || this.host.classList.contains('simple') ? 'large' : this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'extra-large',
|
|
1459
1436
|
avatarFrame: 'square',
|
|
1460
1437
|
allowCustomHtml: true
|
|
@@ -1463,7 +1440,7 @@ const YooEntityComponent = class {
|
|
|
1463
1440
|
else if (this.entityType === 'violetproducts') {
|
|
1464
1441
|
const product = this.item;
|
|
1465
1442
|
let subheadings = [product.description];
|
|
1466
|
-
if (((
|
|
1443
|
+
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)) {
|
|
1467
1444
|
subheadings = [overlays.pipes.currency.transform(this.item.offers[0].skus[0].sale_price / 100, { strictPrecision: false, customSymbol: this.item.offers[0].skus[0].currency, forceSymbol: true })];
|
|
1468
1445
|
}
|
|
1469
1446
|
if (!product.available) {
|
|
@@ -1491,7 +1468,7 @@ const YooEntityComponent = class {
|
|
|
1491
1468
|
};
|
|
1492
1469
|
}
|
|
1493
1470
|
else if (this.entityType === 'violetbasketitems') {
|
|
1494
|
-
const sku = (
|
|
1471
|
+
const sku = (_23 = this.item) === null || _23 === void 0 ? void 0 : _23.sku;
|
|
1495
1472
|
const price = (sku.sale_price * (this.item.quantity || 1)) / 100;
|
|
1496
1473
|
const subheadings = [overlays.pipes.currency.transform(price, { strictPrecision: false, customSymbol: sku.currency, forceSymbol: true })];
|
|
1497
1474
|
entry = {
|
|
@@ -1533,11 +1510,11 @@ const YooEntityComponent = class {
|
|
|
1533
1510
|
entry = {
|
|
1534
1511
|
heading: arModel.product ? arModel.product.title : 'YOOBICNA',
|
|
1535
1512
|
tagElements: arModel.experience ? [{ innerHTML: overlays.translate((arModel.experience.mode || 'object').toUpperCase()), color: 'dark' }] : null,
|
|
1536
|
-
topLeftBadge: ((
|
|
1513
|
+
topLeftBadge: ((_24 = arModel.photos) === null || _24 === void 0 ? void 0 : _24.length) > 0 ? arModel.photos.length.toLocaleString() : null,
|
|
1537
1514
|
subheadings: [arModel.product ? arModel.product.reference : '', arModel.rating ? overlays.translate('RATING') + ' ' + arModel.rating.toLocaleString() : null],
|
|
1538
1515
|
tags: arModel.experience ? [arModel.experience.name] : null,
|
|
1539
|
-
icon: ((
|
|
1540
|
-
imgSrc: ((
|
|
1516
|
+
icon: ((_26 = (_25 = arModel.product) === null || _25 === void 0 ? void 0 : _25.image) === null || _26 === void 0 ? void 0 : _26._downloadURL) ? null : 'photo-library',
|
|
1517
|
+
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
|
|
1541
1518
|
};
|
|
1542
1519
|
}
|
|
1543
1520
|
else if (this.entityType === 'algorithm') {
|
|
@@ -1560,14 +1537,14 @@ const YooEntityComponent = class {
|
|
|
1560
1537
|
subheadings: [
|
|
1561
1538
|
productBatch.product ? productBatch.product.reference : '',
|
|
1562
1539
|
...(overlays.getSession().user && overlays.getSession().user.locationRef === productBatch.locationRef
|
|
1563
|
-
? lodash.compact([((
|
|
1564
|
-
: ((
|
|
1565
|
-
? [productBatch.location.title + ' - ' + (((
|
|
1540
|
+
? lodash.compact([((_29 = this.extraClass) === null || _29 === void 0 ? void 0 : _29.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
|
|
1541
|
+
: ((_30 = productBatch.location) === null || _30 === void 0 ? void 0 : _30.title)
|
|
1542
|
+
? [productBatch.location.title + ' - ' + (((_31 = productBatch.aisle) === null || _31 === void 0 ? void 0 : _31.title) || '')]
|
|
1566
1543
|
: [])
|
|
1567
1544
|
],
|
|
1568
1545
|
tags: productBatch.tags,
|
|
1569
|
-
icon: productBatch.product.image && ((
|
|
1570
|
-
imgSrc: ((
|
|
1546
|
+
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',
|
|
1547
|
+
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
|
|
1571
1548
|
};
|
|
1572
1549
|
if (productBatch.archived) {
|
|
1573
1550
|
extraClasses += ' archived ';
|
|
@@ -1604,7 +1581,7 @@ const YooEntityComponent = class {
|
|
|
1604
1581
|
heading: product.title,
|
|
1605
1582
|
subheadings,
|
|
1606
1583
|
date: overlays.isPresent(this.item.description) ? this.item.description : null,
|
|
1607
|
-
imgSrc: ((
|
|
1584
|
+
imgSrc: ((_36 = product === null || product === void 0 ? void 0 : product.image) === null || _36 === void 0 ? void 0 : _36._downloadURL) ? product.image._downloadURL : null,
|
|
1608
1585
|
avatarFrame: 'square',
|
|
1609
1586
|
// 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
|
|
1610
1587
|
// this case is described into the form-entity-value-pairs.spec tests
|
|
@@ -1790,10 +1767,10 @@ const YooEntityComponent = class {
|
|
|
1790
1767
|
else if (this.entityType === 'topusers') {
|
|
1791
1768
|
entry = {
|
|
1792
1769
|
heading: `${this.item.firstName} ${this.item.lastName}`,
|
|
1793
|
-
rank: (
|
|
1770
|
+
rank: (_37 = this.item) === null || _37 === void 0 ? void 0 : _37.rank,
|
|
1794
1771
|
points: null,
|
|
1795
1772
|
users: [this.item],
|
|
1796
|
-
tagElementsInHeader: { tags: (
|
|
1773
|
+
tagElementsInHeader: { tags: (_38 = this.item) === null || _38 === void 0 ? void 0 : _38.tagElements, location: 'end' }
|
|
1797
1774
|
};
|
|
1798
1775
|
}
|
|
1799
1776
|
else if (this.entityType === 'questions') {
|
|
@@ -1858,17 +1835,17 @@ const YooEntityComponent = class {
|
|
|
1858
1835
|
subheadings: [
|
|
1859
1836
|
'Operation Id: ' + op.operationId,
|
|
1860
1837
|
'Request Id: ' + op.requestId,
|
|
1861
|
-
((
|
|
1862
|
-
((
|
|
1863
|
-
((
|
|
1838
|
+
((_39 = op.operation) === null || _39 === void 0 ? void 0 : _39.accessToken) ? 'User:' + overlays.getUserDisplayName(op.operation.accessToken) : null,
|
|
1839
|
+
((_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,
|
|
1840
|
+
((_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']
|
|
1864
1841
|
? 'Client Version:' + op.requestLog.meta.req.headers['yoobic-client-version']
|
|
1865
1842
|
: null,
|
|
1866
|
-
((
|
|
1843
|
+
((_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']
|
|
1867
1844
|
? 'User Agent:' + op.requestLog.meta.req.headers['user-agent']
|
|
1868
1845
|
: null
|
|
1869
1846
|
],
|
|
1870
1847
|
date: overlays.pipes.dateFormat.transform(op._ect, 'L LT'),
|
|
1871
|
-
users: ((
|
|
1848
|
+
users: ((_49 = op.operation) === null || _49 === void 0 ? void 0 : _49.accessToken) ? [op.operation.accessToken] : null,
|
|
1872
1849
|
tagElements: lodash.compact([
|
|
1873
1850
|
op.isCreation
|
|
1874
1851
|
? {
|
|
@@ -1922,12 +1899,12 @@ const YooEntityComponent = class {
|
|
|
1922
1899
|
entry = {
|
|
1923
1900
|
heading: overlays.translateMulti(battleList.title),
|
|
1924
1901
|
subheadings: [lessonsCount + ' ' + overlays.translate(lessonsCount > 1 ? 'LESSONS' : 'LESSON')],
|
|
1925
|
-
imgSrc: ((
|
|
1902
|
+
imgSrc: ((_50 = battleList.background) === null || _50 === void 0 ? void 0 : _50._downloadURL) ? battleList.background._downloadURL : null,
|
|
1926
1903
|
avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'extra-extra-large',
|
|
1927
1904
|
avatarFrame: 'square'
|
|
1928
1905
|
};
|
|
1929
1906
|
}
|
|
1930
|
-
else if (this.entityType !== 'tag' && ((
|
|
1907
|
+
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)) {
|
|
1931
1908
|
entry = {};
|
|
1932
1909
|
this.customModel.appearance.forEach((value, key) => {
|
|
1933
1910
|
if (key === 'displayTypes') {
|
|
@@ -1968,7 +1945,7 @@ const YooEntityComponent = class {
|
|
|
1968
1945
|
else if (this.entityType === 'widgets') {
|
|
1969
1946
|
const widget = this.item;
|
|
1970
1947
|
entry = {
|
|
1971
|
-
heading: widget.title || ((
|
|
1948
|
+
heading: widget.title || ((_53 = widget.page) === null || _53 === void 0 ? void 0 : _53.path),
|
|
1972
1949
|
imgSrc: widget.photo,
|
|
1973
1950
|
icon: widget.icon,
|
|
1974
1951
|
subheadings: lodash.compact([]),
|
|
@@ -2045,16 +2022,16 @@ const YooEntityComponent = class {
|
|
|
2045
2022
|
}
|
|
2046
2023
|
const title = this.useTranslate ? defaultTitle.toUpperCase() : defaultTitle;
|
|
2047
2024
|
entry.heading = overlays.translateMulti(title);
|
|
2048
|
-
if ((
|
|
2025
|
+
if ((_54 = this.item) === null || _54 === void 0 ? void 0 : _54.description) {
|
|
2049
2026
|
entry.subheadings = [overlays.translateMulti(this.item.description)];
|
|
2050
2027
|
}
|
|
2051
|
-
if ((
|
|
2028
|
+
if ((_56 = (_55 = this.item) === null || _55 === void 0 ? void 0 : _55.background) === null || _56 === void 0 ? void 0 : _56._downloadURL) {
|
|
2052
2029
|
entry.imgSrc = this.item.background._downloadURL;
|
|
2053
2030
|
}
|
|
2054
|
-
else if (((
|
|
2031
|
+
else if (((_57 = this.item) === null || _57 === void 0 ? void 0 : _57.background) && lodash.isString(this.item.background)) {
|
|
2055
2032
|
entry.imgSrc = this.item.background;
|
|
2056
2033
|
}
|
|
2057
|
-
if ((
|
|
2034
|
+
if ((_59 = (_58 = this.item) === null || _58 === void 0 ? void 0 : _58.icon) === null || _59 === void 0 ? void 0 : _59._downloadURL) {
|
|
2058
2035
|
entry.imgSrc = this.item.icon._downloadURL;
|
|
2059
2036
|
}
|
|
2060
2037
|
else if (this.item && lodash.isString(this.item.icon)) {
|
|
@@ -2078,7 +2055,7 @@ const YooEntityComponent = class {
|
|
|
2078
2055
|
const comment = this.item;
|
|
2079
2056
|
entry = entitiesHelpers.parseEntityCommentsForCardList(comment);
|
|
2080
2057
|
}
|
|
2081
|
-
if ((
|
|
2058
|
+
if ((_60 = this.item) === null || _60 === void 0 ? void 0 : _60.badge) {
|
|
2082
2059
|
entry.tagElements = [{ innerHTML: this.item.badge, color: 'app-color' }];
|
|
2083
2060
|
}
|
|
2084
2061
|
}
|
|
@@ -2087,7 +2064,7 @@ const YooEntityComponent = class {
|
|
|
2087
2064
|
!this.isAutocompleteSelected() &&
|
|
2088
2065
|
!this.hideUIFields &&
|
|
2089
2066
|
this.customModel &&
|
|
2090
|
-
((
|
|
2067
|
+
((_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) {
|
|
2091
2068
|
entry.uiFields = {
|
|
2092
2069
|
fields: this.customModel.formFields.filter((f) => f.showInCard),
|
|
2093
2070
|
data: this.item
|
|
@@ -2129,7 +2106,7 @@ const YooEntityComponent = class {
|
|
|
2129
2106
|
if (this.host.classList.contains('full-width')) {
|
|
2130
2107
|
extraClasses += ' full-width ';
|
|
2131
2108
|
}
|
|
2132
|
-
if (((
|
|
2109
|
+
if (((_63 = this.item) === null || _63 === void 0 ? void 0 : _63._id) === overlays.getSession().userId) {
|
|
2133
2110
|
extraClasses += ' current ';
|
|
2134
2111
|
}
|
|
2135
2112
|
if (this.extraClass) {
|
|
@@ -2158,7 +2135,7 @@ const YooEntityComponent = class {
|
|
|
2158
2135
|
[extraClasses]: true,
|
|
2159
2136
|
[this.entityType]: this.entityType !== undefined,
|
|
2160
2137
|
'form-permission': this.host.classList.contains('form-permission')
|
|
2161
|
-
} }, ((
|
|
2138
|
+
} }, ((_64 = this.inlineActions) === null || _64 === void 0 ? void 0 : _64.length) > 0 && (index.h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
|
|
2162
2139
|
return (index.h("span", { class: action.cssClass, onClick: () => (action.handler ? action.handler(this.item) : null) }, action.text));
|
|
2163
2140
|
})))));
|
|
2164
2141
|
}
|
|
@@ -478,7 +478,9 @@ const YooFormAutocompleteComponent = class {
|
|
|
478
478
|
}
|
|
479
479
|
async refreshValues() {
|
|
480
480
|
await this.resetCurrentPage();
|
|
481
|
-
|
|
481
|
+
if (!this.isLocal) {
|
|
482
|
+
this.fetchData.emit({ search: this.searchText, appendData: false, currentPage: this.currentPage, pageSize: this.pageSize, tmpValues: this.values, fieldValue: this.value });
|
|
483
|
+
}
|
|
482
484
|
}
|
|
483
485
|
async onInputContainerClicked() {
|
|
484
486
|
this.host.classList.add('focused');
|
|
@@ -739,8 +741,7 @@ const YooFormAutocompleteComponent = class {
|
|
|
739
741
|
}
|
|
740
742
|
}
|
|
741
743
|
onFilterRadioToggled(operator) {
|
|
742
|
-
this.
|
|
743
|
-
this.extraDataChanged.emit(this.filterOperator);
|
|
744
|
+
this.extraDataChanged.emit(operator);
|
|
744
745
|
}
|
|
745
746
|
async onFileChanges(ev) {
|
|
746
747
|
ev.stopPropagation();
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2e1afd31.js');
|
|
6
6
|
require('./index-9dd76b79.js');
|
|
7
|
-
const entitiesHelpers = require('./entities-helpers-
|
|
7
|
+
const entitiesHelpers = require('./entities-helpers-99fc4a8a.js');
|
|
8
8
|
const overlays = require('./overlays-046b4f60.js');
|
|
9
9
|
require('./lodash-72d493b9.js');
|
|
10
10
|
require('./index-f6133645.js');
|
|
@@ -3468,6 +3468,7 @@ const YooFormDynamicComponent = class {
|
|
|
3468
3468
|
inline: this.isInline(),
|
|
3469
3469
|
tags: field.tags,
|
|
3470
3470
|
isFilter: field.type === index.FormFieldType.filterautocomplete,
|
|
3471
|
+
filterOperator: field.filterOperator,
|
|
3471
3472
|
forceDisableCustomTags: field.forceDisableCustomTags,
|
|
3472
3473
|
extraData: this.getExtraData(field, data),
|
|
3473
3474
|
forceHideSearch: !!field.forceHideSearch,
|
|
@@ -147,7 +147,13 @@ const YooFormMissionfieldComponent = class {
|
|
|
147
147
|
renderEditable() {
|
|
148
148
|
var _a, _b, _c, _d, _e;
|
|
149
149
|
const showFields = this.type === 'missionfield' || this.type === 'datasetfield';
|
|
150
|
-
|
|
150
|
+
const isLocal = ((_a = this.customModelValues) === null || _a === void 0 ? void 0 : _a.length) >= 0;
|
|
151
|
+
return (index.h("div", { class: "container" }, !this.hideCampaign && (index.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) => {
|
|
152
|
+
ev.stopPropagation();
|
|
153
|
+
if (!isLocal) {
|
|
154
|
+
this.onFetchData(ev);
|
|
155
|
+
}
|
|
156
|
+
}, 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 && index.h("div", { class: "spacer" }), index.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) => {
|
|
151
157
|
ev.stopPropagation();
|
|
152
158
|
this.onInputSecondaryFetchData(ev);
|
|
153
159
|
}, onInputChanged: (ev) => this.onInputSecondaryChanged(ev), onValidityChanged: (ev) => this.stopValidityChangeEvent(ev), clearable: true, tabindex: this.inputTabIndex + 1, size: this.size })));
|
|
@@ -9,7 +9,7 @@ const lodash = require('./lodash-72d493b9.js');
|
|
|
9
9
|
const overlays = require('./overlays-046b4f60.js');
|
|
10
10
|
const bufferEs6 = require('./buffer-es6-f8668f31.js');
|
|
11
11
|
const commonHelpers = require('./common-helpers-bfdca115.js');
|
|
12
|
-
const entitiesHelpers = require('./entities-helpers-
|
|
12
|
+
const entitiesHelpers = require('./entities-helpers-99fc4a8a.js');
|
|
13
13
|
const formInputHelpers = require('./form-input-helpers-651487c0.js');
|
|
14
14
|
const formTextAreaHelpers = require('./form-text-area-helpers-4efd344d.js');
|
|
15
15
|
const shadowDomHelper = require('./shadow-dom-helper-292b05ce.js');
|
|
@@ -11,7 +11,7 @@ require('./index-c1dbcd32.js');
|
|
|
11
11
|
const button_factory = require('./button.factory-7f25fe7e.js');
|
|
12
12
|
const index$2 = require('./index-8d435773.js');
|
|
13
13
|
const commonHelpers = require('./common-helpers-bfdca115.js');
|
|
14
|
-
const filtersHelpers = require('./filters-helpers-
|
|
14
|
+
const filtersHelpers = require('./filters-helpers-63712f8d.js');
|
|
15
15
|
const formInputHelpers = require('./form-input-helpers-651487c0.js');
|
|
16
16
|
const gridRenderers = require('./grid-renderers-94c5b27d.js');
|
|
17
17
|
const overlays = require('./overlays-046b4f60.js');
|
|
@@ -411,7 +411,7 @@ const YooSectionListComponent = class {
|
|
|
411
411
|
section: true,
|
|
412
412
|
sortable: section.isSortable !== false
|
|
413
413
|
};
|
|
414
|
-
return (index.h("div", { class: classList, ref: (el) => section.el = el }, index.h("div", { class: "section-title" }, this.icon && index.h("div", { class: "icon" }, index.h("yoo-icon", { name: this.icon, size: "medium", color: "text-color" })), index.h("div", { class: "title" }, section.translatedTitle
|
|
414
|
+
return (index.h("div", { class: classList, ref: (el) => section.el = el }, index.h("div", { class: "section-title" }, this.icon && index.h("div", { class: "icon" }, index.h("yoo-icon", { name: this.icon, size: "medium", color: "text-color" })), index.h("div", { class: "title" }, overlays.getCurrentLanguage() === this.baseLanguage ? section.translatedTitle : overlays.translateMulti(section.title)), index.h("div", { class: "item-count" }, `${items.length} ${overlays.translate((_a = this.countSuffix) === null || _a === void 0 ? void 0 : _a.toUpperCase())}`), !this.disableSortable && !this.isReadonly && section.isSortable !== false && index.h("div", { class: "draggable" }, index.h("yoo-icon", { name: "draggable", color: "text-color", size: "medium" })), section.hasActions !== false && this.renderDefaultActionOrToggle(section), index.h("yoo-icon", { size: "small", class: "expand", name: "arrow-up", color: "text-color", onClick: () => this.toggleExpandSectionItems(section) })), index.h("div", { class: "items" }, items.map((item) => this.renderSectionItem(item)))));
|
|
415
415
|
}
|
|
416
416
|
getItemMouseEnterAction() {
|
|
417
417
|
return function () {
|
|
@@ -433,8 +433,8 @@ const YooSectionListComponent = class {
|
|
|
433
433
|
}
|
|
434
434
|
renderSectionItem(item) {
|
|
435
435
|
let checkboxRef;
|
|
436
|
-
const title = overlays.getTranslatedAttribute(this.translations, item.title,
|
|
437
|
-
const text = overlays.getTranslatedAttribute(this.translations, item.text,
|
|
436
|
+
const title = overlays.getTranslatedAttribute(this.translations, item.title, overlays.getCurrentLanguage() || this.baseLanguage, 'title').value || overlays.translateMulti(item.title);
|
|
437
|
+
const text = overlays.getTranslatedAttribute(this.translations, item.text, overlays.getCurrentLanguage() || this.baseLanguage, 'text').value || overlays.translateMulti(item.text);
|
|
438
438
|
return (index.h("div", { class: "item selectable", onMouseEnter: this.getItemMouseEnterAction(), onMouseLeave: this.getItemMouseLeaveAction() }, index.h("div", { class: "checkbox", ref: (el) => checkboxRef = el }, !this.disableBatchActions && this.isOwner && item.isSelectable !== false && index.h("yoo-form-checkbox", { onInputChanged: (ev) => this.onCheckboxClicked(ev, item, checkboxRef) })), index.h("div", { class: "item-container", onClick: () => this.itemClicked.emit(item) }, index.h("div", { class: "title-container" }, item.user && index.h("yoo-avatars", { layout: "list", users: [item.user], size: "small" }), item.title && index.h("div", { class: "title", innerHTML: title }), item.text && index.h("div", { class: "description", innerHTML: text })), index.h("div", { class: "info-container" }, item.columns && item.columns.map((column) => this.renderSectionItemColumn(column))), !this.disableSortable && !this.isReadonly && index.h("div", { class: "draggable" }, index.h("yoo-icon", { name: "draggable", color: "text-color", size: "medium" })), !this.isOwner && (this.isPublisher || this.isViewer) && this.countSuffix === 'lessons' ? this.renderViewerPublisherActions() : this.renderItemActions(item))));
|
|
439
439
|
}
|
|
440
440
|
renderSectionItemColumn(column) {
|
|
@@ -7,7 +7,7 @@ const overlays = require('./overlays-046b4f60.js');
|
|
|
7
7
|
require('./index-9dd76b79.js');
|
|
8
8
|
const lodash = require('./lodash-72d493b9.js');
|
|
9
9
|
const commonHelpers = require('./common-helpers-bfdca115.js');
|
|
10
|
-
const entitiesHelpers = require('./entities-helpers-
|
|
10
|
+
const entitiesHelpers = require('./entities-helpers-99fc4a8a.js');
|
|
11
11
|
const formTextAreaHelpers = require('./form-text-area-helpers-4efd344d.js');
|
|
12
12
|
require('./index-f6133645.js');
|
|
13
13
|
require('./_commonjsHelpers-94df2ea7.js');
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-2e1afd31.js');
|
|
6
6
|
require('./index-9dd76b79.js');
|
|
7
7
|
const commonHelpers = require('./common-helpers-bfdca115.js');
|
|
8
|
-
const entitiesHelpers = require('./entities-helpers-
|
|
8
|
+
const entitiesHelpers = require('./entities-helpers-99fc4a8a.js');
|
|
9
9
|
const overlays = require('./overlays-046b4f60.js');
|
|
10
10
|
require('./lodash-72d493b9.js');
|
|
11
11
|
require('./index-f6133645.js');
|