@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.
- 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/{form-choice-helpers-b2ec494b.js → form-choice-helpers-e28efa04.js} +1 -1
- 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-choice-button.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-choice-card.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-choice-chat.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-choice-image.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-choice-radio.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-connect.cjs.entry.js +2 -1
- 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-swipe-cards.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-text-editor.cjs.entry.js +64 -46
- package/dist/cjs/yoo-form-todo-task-list.cjs.entry.js +1 -2
- package/dist/cjs/yoo-grid.cjs.entry.js +1 -1
- package/dist/cjs/yoo-input-bar.cjs.entry.js +12948 -12743
- package/dist/cjs/yoo-login.cjs.entry.js +1 -1
- package/dist/cjs/yoo-scratch-card-creator.cjs.entry.js +1 -3
- 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/cjs/yoo-videoplayer-videojs.cjs.entry.js +3 -3
- 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-choice/form-choice-helpers.js +1 -1
- package/dist/collection/components/form/form-connect/form-connect.js +2 -1
- 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/components/form/form-swipe-cards/form-swipe-cards.css +1 -1
- package/dist/collection/components/form/form-todo-task-list/form-todo-task-list.js +1 -2
- package/dist/collection/components/form-creator/scratch-card-creator/scratch-card-creator.js +1 -3
- package/dist/collection/feature-learn/learning/section-list/section-list.js +3 -3
- package/dist/collection/feature-platform/login/login/login.css +1 -2
- 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/{form-choice-helpers-800a6124.js → form-choice-helpers-b6936c42.js} +1 -1
- 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-choice-button.entry.js +1 -1
- package/dist/design-system/yoo-form-choice-card.entry.js +1 -1
- package/dist/design-system/yoo-form-choice-chat.entry.js +1 -1
- package/dist/design-system/yoo-form-choice-image.entry.js +1 -1
- package/dist/design-system/yoo-form-choice-radio.entry.js +1 -1
- package/dist/design-system/yoo-form-connect.entry.js +2 -1
- 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-swipe-cards.entry.js +1 -1
- package/dist/design-system/yoo-form-text-editor.entry.js +64 -46
- package/dist/design-system/yoo-form-todo-task-list.entry.js +1 -2
- package/dist/design-system/yoo-grid.entry.js +1 -1
- package/dist/design-system/yoo-input-bar.entry.js +12948 -12743
- package/dist/design-system/yoo-login.entry.js +1 -1
- package/dist/design-system/yoo-scratch-card-creator.entry.js +1 -3
- 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/design-system/yoo-videoplayer-videojs.entry.js +3 -3
- 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/{form-choice-helpers-800a6124.js → form-choice-helpers-b6936c42.js} +1 -1
- 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-choice-button.entry.js +1 -1
- package/dist/esm/yoo-form-choice-card.entry.js +1 -1
- package/dist/esm/yoo-form-choice-chat.entry.js +1 -1
- package/dist/esm/yoo-form-choice-image.entry.js +1 -1
- package/dist/esm/yoo-form-choice-radio.entry.js +1 -1
- package/dist/esm/yoo-form-connect.entry.js +2 -1
- 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-swipe-cards.entry.js +1 -1
- package/dist/esm/yoo-form-text-editor.entry.js +64 -46
- package/dist/esm/yoo-form-todo-task-list.entry.js +1 -2
- package/dist/esm/yoo-grid.entry.js +1 -1
- package/dist/esm/yoo-input-bar.entry.js +12948 -12743
- package/dist/esm/yoo-login.entry.js +1 -1
- package/dist/esm/yoo-scratch-card-creator.entry.js +1 -3
- 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/esm/yoo-videoplayer-videojs.entry.js +3 -3
- 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/custom-app/custom-app.interface.d.ts +10 -3
- 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();
|
|
@@ -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 highcharts = require('./highcharts-874d9bd2.js');
|
|
8
|
-
const formChoiceHelpers = require('./form-choice-helpers-
|
|
8
|
+
const formChoiceHelpers = require('./form-choice-helpers-e28efa04.js');
|
|
9
9
|
const overlays = require('./overlays-046b4f60.js');
|
|
10
10
|
require('./lodash-72d493b9.js');
|
|
11
11
|
require('./_commonjsHelpers-94df2ea7.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const formChoiceHelpers = require('./form-choice-helpers-
|
|
5
|
+
const formChoiceHelpers = require('./form-choice-helpers-e28efa04.js');
|
|
6
6
|
require('./index-9dd76b79.js');
|
|
7
7
|
require('./overlays-046b4f60.js');
|
|
8
8
|
require('./lodash-72d493b9.js');
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-2e1afd31.js');
|
|
6
6
|
const index$1 = require('./index-f6133645.js');
|
|
7
7
|
require('./index-9dd76b79.js');
|
|
8
|
-
const formChoiceHelpers = require('./form-choice-helpers-
|
|
8
|
+
const formChoiceHelpers = require('./form-choice-helpers-e28efa04.js');
|
|
9
9
|
const overlays = require('./overlays-046b4f60.js');
|
|
10
10
|
require('./lodash-72d493b9.js');
|
|
11
11
|
require('./draggable-tags-helpers-078374f4.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 formChoiceHelpers = require('./form-choice-helpers-
|
|
8
|
+
const formChoiceHelpers = require('./form-choice-helpers-e28efa04.js');
|
|
9
9
|
const overlays = require('./overlays-046b4f60.js');
|
|
10
10
|
require('./lodash-72d493b9.js');
|
|
11
11
|
require('./draggable-tags-helpers-078374f4.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-2e1afd31.js');
|
|
|
6
6
|
require('./index-9dd76b79.js');
|
|
7
7
|
const lodash = require('./lodash-72d493b9.js');
|
|
8
8
|
const formInputHelpers = require('./form-input-helpers-651487c0.js');
|
|
9
|
-
const formChoiceHelpers = require('./form-choice-helpers-
|
|
9
|
+
const formChoiceHelpers = require('./form-choice-helpers-e28efa04.js');
|
|
10
10
|
const overlays = require('./overlays-046b4f60.js');
|
|
11
11
|
require('./index-f6133645.js');
|
|
12
12
|
require('./common-helpers-bfdca115.js');
|
|
@@ -101,9 +101,10 @@ const YooFormConnectComponent = class {
|
|
|
101
101
|
(_a = this.draggableElements) === null || _a === void 0 ? void 0 : _a.forEach(e => this.initDraggableActions(e));
|
|
102
102
|
}
|
|
103
103
|
async scrollToRevealGame() {
|
|
104
|
+
var _a;
|
|
104
105
|
const GAP_PADDING = 8;
|
|
105
106
|
const scrollElement = this.host.closest('yoo-ion-scroll');
|
|
106
|
-
if (scrollElement && this.values.length === 2) {
|
|
107
|
+
if (scrollElement && ((_a = this.values) === null || _a === void 0 ? void 0 : _a.length) === 2) {
|
|
107
108
|
const setScrollableHeight = () => {
|
|
108
109
|
const getHeight = (el) => { var _a; return (_a = el === null || el === void 0 ? void 0 : el.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.height; };
|
|
109
110
|
const formHeight = getHeight(this.host.closest('yoo-form-input-container'));
|
|
@@ -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 })));
|
|
@@ -12,7 +12,7 @@ const formInputHelpers = require('./form-input-helpers-651487c0.js');
|
|
|
12
12
|
const overlays = require('./overlays-046b4f60.js');
|
|
13
13
|
require('./_commonjsHelpers-94df2ea7.js');
|
|
14
14
|
|
|
15
|
-
const formSwipeCardsCss = ".accent{color:var(--accent, #276ef1);fill:var(--accent, #276ef1)}.app-color{color:var(--app-color, #5a30f4);fill:var(--app-color, #5a30f4)}.danger{color:var(--danger, #d44333);fill:var(--danger, #d44333)}.dark{color:var(--dark, #000000);fill:var(--dark, #000000)}.energized{color:var(--energized, #ffc043);fill:var(--energized, #ffc043)}.info{color:var(--info, #d84c96);fill:var(--info, #d84c96)}.light{color:var(--light, #ffffff);fill:var(--light, #ffffff)}.stable{color:var(--stable, #adadad);fill:var(--stable, #adadad)}.stable-alt{color:var(--stable-alt, #d0d0d0);fill:var(--stable-alt, #d0d0d0)}.stable-light{color:var(--stable-light, #f1f1f1);fill:var(--stable-light, #f1f1f1)}.stable-ultralight{color:var(--stable-ultralight, #fafafa);fill:var(--stable-ultralight, #fafafa)}.success{color:var(--success, #3aa76d);fill:var(--success, #3aa76d)}.text-color{color:var(--text-color, #807f83);fill:var(--text-color, #807f83)}.warning{color:var(--warning, #ed6e33);fill:var(--warning, #ed6e33)}.wood{color:var(--wood, #99644c);fill:var(--wood, #99644c)}@-webkit-keyframes fade-out{from{opacity:1}to{opacity:0}}@keyframes fade-out{from{opacity:1}to{opacity:0}}.hidden{display:none !important}.flex{display:-ms-flexbox !important;display:flex !important}.block{display:block !important}:host{position:relative;display:block;height:100%}:host yoo-banner{height:0}:host #instructions{height:100%;-webkit-transition:opacity 1s ease-in-out;transition:opacity 1s ease-in-out}:host #instructions #header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host #instructions #header #title{font-weight:bold}:host #instructions #categories{display:inline-grid;grid-template-columns:1fr 0.5fr 1fr;width:100%;margin:var(--spacing-24, 1.5rem) 0;text-align:center}:host #instructions #categories .category{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;padding:0;color:var(--stable, #adadad)}:host #instructions #categories .category p{max-width:75%;margin:auto;padding:var(--spacing-16, 1rem) 0;font-weight:bold}:host #instructions #categories .category yoo-tag{margin:0 auto}:host #instructions yoo-button{position:absolute;right:0;bottom:0;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host #instructions #document{background-color:var(--light, #ffffff)}:host #instructions #document .document-title{padding:0 var(--spacing-16, 1rem);font-size:var(--font-size-16, 1rem)}:host #instructions #document yoo-form-document{--outer-container-padding:cssvar(spacing-16) cssvar(spacing-16);width:calc(100% - var(--spacing-16, 1rem))}:host [direction].card{z-index:5;-webkit-transition:-webkit-transform 0.35s !important;transition:-webkit-transform 0.35s !important;transition:transform 0.35s !important;transition:transform 0.35s, -webkit-transform 0.35s !important;-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}:host [direction].card.current .content-category{color:var(--light, #ffffff);opacity:1 !important;-webkit-transition:opacity 0.35s linear;transition:opacity 0.35s linear}:host [direction].card.current.card+.card{-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}:host [direction].card.current.card+.card .content-image,:host [direction].card.current.card+.card .content-text{opacity:1 !important}:host [direction].card.current.card+.card+.card{-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}:host [direction].card.current.card+.card+.card+.card{-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}:host [direction=left]#game,:host [direction=left].current>.content-category{background-color:var(--app-color, #5a30f4) !important}:host [direction=left].current{-webkit-transform:translate(0%, 9%) scale(1) rotate(-3.5deg) !important;transform:translate(0%, 9%) scale(1) rotate(-3.5deg) !important}:host [direction=right]#game,:host [direction=right].current>.content-category{background-color:var(--warning, #ed6e33) !important}:host [direction=right].current{-webkit-transform:translate(0%, 9%) scale(1) rotate(3.5deg) !important;transform:translate(0%, 9%) scale(1) rotate(3.5deg) !important}:host #game{position:relative;width:100%;background-color:var(--dark, #000000);-webkit-transition:background-color 0.25s ease-in-out;transition:background-color 0.25s ease-in-out}:host #game #end-message{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:calc(100% - 4rem);max-width:25rem;color:var(--light, #ffffff);font-size:var(--font-size-18, 1.125rem);text-align:center;visibility:hidden;opacity:0;-webkit-transition:opacity 0.5s ease-in-out;transition:opacity 0.5s ease-in-out}:host #game #end-message.rtl{top:50%;right:50%;-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}:host #game #end-message yoo-lottie{width:30%;margin:0 auto}:host #game #end-message div{padding:var(--spacing-16, 1rem) 0;font-weight:bold;font-size:var(--font-size-24, 1.5rem)}:host #game #end-message.active{visibility:visible;opacity:1}:host #game:after{display:block;height:0;padding-top:85%;content:\"\"}:host #cards{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:100%;width:65%;max-width:16rem;height:100%;margin-top:var(--spacing-16, 1rem)}:host #cards.rtl{top:50%;right:50%;-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}:host #cards .card{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;max-width:16rem;height:100%;max-height:21.3333333333rem;margin:0 auto;overflow:hidden;color:var(--dark, #000000);font-size:var(--font-size-28, 1.75rem);text-align:center;background-color:var(--stable-light, #f1f1f1);border-radius:var(--border-radius-08, 0.5rem);-webkit-box-shadow:var(--shadow-05, -0.375rem -0.375rem 0.5rem 0 rgba(0, 0, 0, 0.1));box-shadow:var(--shadow-05, -0.375rem -0.375rem 0.5rem 0 rgba(0, 0, 0, 0.1));-webkit-transition:opacity 0.25s, background-color 0.25s, -webkit-transform 0.25s;transition:opacity 0.25s, background-color 0.25s, -webkit-transform 0.25s;transition:transform 0.25s, opacity 0.25s, background-color 0.25s;transition:transform 0.25s, opacity 0.25s, background-color 0.25s, -webkit-transform 0.25s;will-change:transform, opacity}:host #cards .card:not([direction]){-webkit-transform:translate(0, -5%) scale(0.85);transform:translate(0, -5%) scale(0.85);opacity:0}:host #cards .card.current{z-index:3}:host #cards .card.current:not(.revealing){-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1;-webkit-transition-delay:200ms;transition-delay:200ms}:host #cards .card.current.revealing{-webkit-animation:\"current\" 0.25s ease-in-out;animation:\"current\" 0.25s ease-in-out;-webkit-animation-delay:150ms;animation-delay:150ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes current{to{-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}}@keyframes current{to{-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}}:host #cards .card.second{z-index:2}:host #cards .card.second:not(.revealing){-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1;-webkit-transition-delay:400ms;transition-delay:400ms}:host #cards .card.second.revealing{-webkit-animation:\"second\" 0.25s ease-in-out;animation:\"second\" 0.25s ease-in-out;-webkit-animation-delay:300ms;animation-delay:300ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes second{to{-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}}@keyframes second{to{-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}}:host #cards .card.third{z-index:1}:host #cards .card.third:not(.revealing){-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1;-webkit-transition-delay:600ms;transition-delay:600ms}:host #cards .card.third.revealing{-webkit-animation:\"third\" 0.25s ease-in-out;animation:\"third\" 0.25s ease-in-out;-webkit-animation-delay:450ms;animation-delay:450ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes third{to{-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}}@keyframes third{to{-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}}:host #cards .card.current .content-image,:host #cards .card.current .content-text,:host #cards .card[direction] .content-image,:host #cards .card[direction] .content-text{opacity:1 !important}:host #cards .card[swiped]{-webkit-animation:fade-out 1s ease-out;animation:fade-out 1s ease-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host #cards .card[swiped=left]{-webkit-transform:translate(-100%, 15%) rotate(-15deg);transform:translate(-100%, 15%) rotate(-15deg)}:host #cards .card[swiped=right]{-webkit-transform:translate(100%, 15%) rotate(15deg);transform:translate(100%, 15%) rotate(15deg)}:host #cards .card [class^=content]{position:absolute;width:100%;height:100%;word-break:break-word;opacity:0}:host #cards .card .content-category,:host #cards .card .content-text{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:var(--spacing-16, 1rem)}:host #cards .card .content-image{-webkit-transition:opacity 0.25s linear;transition:opacity 0.25s linear}:host #cards .card[type=image] yoo-img{height:100%}:host #cards .card[type=textimage] .content-image{top:0;bottom:3.5rem}:host #cards .card[type=textimage] .content-image yoo-img{height:calc(100% - 3.5rem)}:host #cards .card[type=textimage] .content-text,:host #cards .card[type=textimage] .content-category{bottom:0;height:3.5rem}:host #actions{position:absolute;left:50%;z-index:1;display:inline-grid;grid-template-columns:1fr 1fr 1fr;width:100%;max-width:85%;line-height:2.5;-webkit-transform:translate(-50%, 80%);transform:translate(-50%, 80%)}:host #actions .action{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;text-align:center}:host([readonly]){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}:host([readonly]) .category-title{margin-bottom:var(--spacing-08, 0.5rem)}:host([readonly]) ul{display:grid;grid-gap:var(--spacing-16, 1rem);grid-template-columns:repeat(auto-fill, 6rem);margin:0;padding-left:0;list-style:none}:host([readonly]) ul+.category-title{margin-top:var(--spacing-16, 1rem)}:host([readonly]) ul li{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;height:8rem;overflow:hidden;border-style:solid;border-width:var(--border-width-01, 0.0625rem);border-radius:var(--border-radius-08, 0.5rem)}:host([readonly]) ul li.invalid{border-color:var(--danger, #d44333)}:host([readonly]) ul li.invalid yoo-img::before{position:absolute;width:100%;height:100%;background:var(--danger-20, rgba(212, 67, 51, 0.2));content:\"\"}:host([readonly]) ul li.invalid yoo-truncate{background:var(--danger, #d44333)}:host([readonly]) ul li.valid{border-color:var(--success, #3aa76d)}:host([readonly]) ul li.valid yoo-img::before{position:absolute;width:100%;height:100%;background:var(--success-20, rgba(58, 167, 109, 0.2));content:\"\"}:host([readonly]) ul li.valid yoo-truncate{background:var(--success, #3aa76d)}:host([readonly]) ul li yoo-img{position:relative;-ms-flex-positive:1;flex-grow:1}:host([readonly]) ul li yoo-truncate{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--light, #ffffff);font-size:var(--font-size-14, 0.875rem)}:host([readonly]) ul li yoo-truncate:only-child{--max-lines:4;height:100%;padding:0 var(--spacing-08, 0.5rem)}:host([readonly]) ul li yoo-truncate:not(:only-child){--max-lines:1;height:2.125rem;padding:0 var(--spacing-04, 0.25rem)}:host([animated]) #game{-webkit-animation:show 0.5s ease-in-out forwards;animation:show 0.5s ease-in-out forwards}@-webkit-keyframes show{from{-webkit-transform:scale(0.85);transform:scale(0.85);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes show{from{-webkit-transform:scale(0.85);transform:scale(0.85);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}:host([animated]) .action.hide>*{-webkit-animation:fadeOut 0.75s ease-in-out forwards;animation:fadeOut 0.75s ease-in-out forwards}@-webkit-keyframes fadeOut{from{opacity:1}to{opacity:0}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}:host([animated]) .action:not(.hide)>*{-webkit-animation:fadeIn 0.75s ease-in-out forwards;animation:fadeIn 0.75s ease-in-out forwards}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}:host([animated]) .action yoo-button{-webkit-transition:-webkit-transform 0.8s linear;transition:-webkit-transform 0.8s linear;transition:transform 0.8s linear;transition:transform 0.8s linear, -webkit-transform 0.8s linear}:host([live-preview]),:host(.mobile){min-height:70vh}:host([live-preview]) #instructions #header,:host(.mobile) #instructions #header{padding:var(--spacing-16, 1rem);background:var(--dark, #000000);border-radius:var(--border-radius-04, 0.25rem)}:host([live-preview]) #instructions #header #title,:host(.mobile) #instructions #header #title{color:var(--light, #ffffff);font-weight:bold;font-size:var(--font-size-28, 1.75rem)}:host([live-preview]) #instructions yoo-button,:host(.mobile) #instructions yoo-button{position:absolute;bottom:0;width:-webkit-fill-available;width:-moz-available;width:stretch}:host(.web:not([live-preview])) #instructions{position:relative}:host(.web:not([live-preview])) #instructions yoo-icon[name=swipe-explanation]{width:5rem;height:5rem;margin:auto;--inner-width:5rem;--inner-height:5rem}:host(.web:not([live-preview])) #instructions yoo-button{position:fixed;right:var(--spacing-32, 2rem);bottom:var(--spacing-16, 1rem);z-index:1;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host(.web:not([live-preview])) #game{height:60%;max-height:21rem}:host(.web:not([live-preview])) #game #cards{top:5%;margin-top:unset;-webkit-transform:translate(-50%, 0);transform:translate(-50%, 0)}:host(.web:not([live-preview])) #actions{-ms-flex-align:start;align-items:start;max-width:unset;margin-top:2.5%;-webkit-transform:translate(-50%, 0);transform:translate(-50%, 0)}:host(.web:not([live-preview])) #actions .action:nth-child(2){-ms-flex-item-align:end;align-self:end}:host(.web:not([live-preview])) #header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:var(--spacing-08, 0.5rem) var(--spacing-16, 1rem);line-height:1.75;text-align:center;background-color:var(--stable-ultralight, #fafafa)}:host(.web:not([live-preview])) #header #title{color:var(--dark, #000000) !important;font-weight:bold;font-size:var(--font-size-28, 1.75rem)}";
|
|
15
|
+
const formSwipeCardsCss = ".accent{color:var(--accent, #276ef1);fill:var(--accent, #276ef1)}.app-color{color:var(--app-color, #5a30f4);fill:var(--app-color, #5a30f4)}.danger{color:var(--danger, #d44333);fill:var(--danger, #d44333)}.dark{color:var(--dark, #000000);fill:var(--dark, #000000)}.energized{color:var(--energized, #ffc043);fill:var(--energized, #ffc043)}.info{color:var(--info, #d84c96);fill:var(--info, #d84c96)}.light{color:var(--light, #ffffff);fill:var(--light, #ffffff)}.stable{color:var(--stable, #adadad);fill:var(--stable, #adadad)}.stable-alt{color:var(--stable-alt, #d0d0d0);fill:var(--stable-alt, #d0d0d0)}.stable-light{color:var(--stable-light, #f1f1f1);fill:var(--stable-light, #f1f1f1)}.stable-ultralight{color:var(--stable-ultralight, #fafafa);fill:var(--stable-ultralight, #fafafa)}.success{color:var(--success, #3aa76d);fill:var(--success, #3aa76d)}.text-color{color:var(--text-color, #807f83);fill:var(--text-color, #807f83)}.warning{color:var(--warning, #ed6e33);fill:var(--warning, #ed6e33)}.wood{color:var(--wood, #99644c);fill:var(--wood, #99644c)}@-webkit-keyframes fade-out{from{opacity:1}to{opacity:0}}@keyframes fade-out{from{opacity:1}to{opacity:0}}.hidden{display:none !important}.flex{display:-ms-flexbox !important;display:flex !important}.block{display:block !important}:host{position:relative;display:block;height:100%}:host yoo-banner{height:0}:host #instructions{height:100%;-webkit-transition:opacity 1s ease-in-out;transition:opacity 1s ease-in-out}:host #instructions #header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host #instructions #header #title{font-weight:bold}:host #instructions #categories{display:inline-grid;grid-template-columns:1fr 0.5fr 1fr;width:100%;margin:var(--spacing-24, 1.5rem) 0;text-align:center}:host #instructions #categories .category{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;padding:0;color:var(--stable, #adadad)}:host #instructions #categories .category p{max-width:75%;margin:auto;padding:var(--spacing-16, 1rem) 0;font-weight:bold}:host #instructions #categories .category yoo-tag{margin:0 auto}:host #instructions yoo-button{position:absolute;right:0;bottom:0;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host #instructions #document{background-color:var(--light, #ffffff)}:host #instructions #document .document-title{padding:0 var(--spacing-16, 1rem);font-size:var(--font-size-16, 1rem)}:host #instructions #document yoo-form-document{--outer-container-padding:cssvar(spacing-16) cssvar(spacing-16);width:calc(100% - var(--spacing-16, 1rem))}:host [direction].card{z-index:5;-webkit-transition:-webkit-transform 0.35s !important;transition:-webkit-transform 0.35s !important;transition:transform 0.35s !important;transition:transform 0.35s, -webkit-transform 0.35s !important;-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}:host [direction].card.current .content-category{color:var(--light, #ffffff);opacity:1 !important;-webkit-transition:opacity 0.35s linear;transition:opacity 0.35s linear}:host [direction].card.current.card+.card{-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}:host [direction].card.current.card+.card .content-image,:host [direction].card.current.card+.card .content-text{opacity:1 !important}:host [direction].card.current.card+.card+.card{-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}:host [direction].card.current.card+.card+.card+.card{-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}:host [direction=left]#game,:host [direction=left].current>.content-category{background-color:var(--app-color, #5a30f4) !important}:host [direction=left].current{-webkit-transform:translate(0%, 9%) scale(1) rotate(-3.5deg) !important;transform:translate(0%, 9%) scale(1) rotate(-3.5deg) !important}:host [direction=right]#game,:host [direction=right].current>.content-category{background-color:var(--warning, #ed6e33) !important}:host [direction=right].current{-webkit-transform:translate(0%, 9%) scale(1) rotate(3.5deg) !important;transform:translate(0%, 9%) scale(1) rotate(3.5deg) !important}:host #game{position:relative;width:100%;background-color:var(--dark, #000000);-webkit-transition:background-color 0.25s ease-in-out;transition:background-color 0.25s ease-in-out}:host #game #end-message{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:calc(100% - 4rem);max-width:25rem;color:var(--light, #ffffff);font-size:var(--font-size-18, 1.125rem);text-align:center;visibility:hidden;opacity:0;-webkit-transition:opacity 0.5s ease-in-out;transition:opacity 0.5s ease-in-out}:host #game #end-message.rtl{top:50%;right:50%;-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}:host #game #end-message yoo-lottie{width:30%;margin:0 auto}:host #game #end-message div{padding:var(--spacing-16, 1rem) 0;font-weight:bold;font-size:var(--font-size-24, 1.5rem)}:host #game #end-message.active{visibility:visible;opacity:1}:host #game:after{display:block;height:0;padding-top:85%;content:\"\"}:host #cards{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:100%;width:65%;max-width:16rem;height:100%;margin-top:var(--spacing-16, 1rem)}:host #cards.rtl{top:50%;right:50%;-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}:host #cards .card{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;max-width:16rem;height:100%;max-height:21.3333333333rem;margin:0 auto;overflow:hidden;color:var(--dark, #000000);font-size:var(--font-size-28, 1.75rem);text-align:center;background-color:var(--stable-light, #f1f1f1);border-radius:var(--border-radius-08, 0.5rem);-webkit-box-shadow:var(--shadow-05, -0.375rem -0.375rem 0.5rem 0 rgba(0, 0, 0, 0.1));box-shadow:var(--shadow-05, -0.375rem -0.375rem 0.5rem 0 rgba(0, 0, 0, 0.1));-webkit-transition:opacity 0.25s, background-color 0.25s, -webkit-transform 0.25s;transition:opacity 0.25s, background-color 0.25s, -webkit-transform 0.25s;transition:transform 0.25s, opacity 0.25s, background-color 0.25s;transition:transform 0.25s, opacity 0.25s, background-color 0.25s, -webkit-transform 0.25s;will-change:transform, opacity}:host #cards .card:not([direction]){-webkit-transform:translate(0, -5%) scale(0.85);transform:translate(0, -5%) scale(0.85);opacity:0}:host #cards .card.current{z-index:3}:host #cards .card.current:not(.revealing){-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1;-webkit-transition-delay:200ms;transition-delay:200ms}:host #cards .card.current.revealing{-webkit-animation:\"current\" 0.25s ease-in-out;animation:\"current\" 0.25s ease-in-out;-webkit-animation-delay:150ms;animation-delay:150ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes current{to{-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}}@keyframes current{to{-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}}:host #cards .card.second{z-index:2}:host #cards .card.second:not(.revealing){-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1;-webkit-transition-delay:400ms;transition-delay:400ms}:host #cards .card.second.revealing{-webkit-animation:\"second\" 0.25s ease-in-out;animation:\"second\" 0.25s ease-in-out;-webkit-animation-delay:300ms;animation-delay:300ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes second{to{-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}}@keyframes second{to{-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}}:host #cards .card.third{z-index:1}:host #cards .card.third:not(.revealing){-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1;-webkit-transition-delay:600ms;transition-delay:600ms}:host #cards .card.third.revealing{-webkit-animation:\"third\" 0.25s ease-in-out;animation:\"third\" 0.25s ease-in-out;-webkit-animation-delay:450ms;animation-delay:450ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes third{to{-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}}@keyframes third{to{-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}}:host #cards .card.current .content-image,:host #cards .card.current .content-text,:host #cards .card[direction] .content-image,:host #cards .card[direction] .content-text{opacity:1 !important}:host #cards .card[swiped]{-webkit-animation:fade-out 1s ease-out;animation:fade-out 1s ease-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host #cards .card[swiped=left]{-webkit-transform:translate(-100%, 15%) rotate(-15deg);transform:translate(-100%, 15%) rotate(-15deg)}:host #cards .card[swiped=right]{-webkit-transform:translate(100%, 15%) rotate(15deg);transform:translate(100%, 15%) rotate(15deg)}:host #cards .card [class^=content]{position:absolute;width:100%;height:100%;word-break:break-word;opacity:0}:host #cards .card .content-category,:host #cards .card .content-text{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:var(--spacing-16, 1rem)}:host #cards .card .content-image{-webkit-transition:opacity 0.25s linear;transition:opacity 0.25s linear}:host #cards .card[type=image] yoo-img{height:100%}:host #cards .card[type=textimage] .content-image{top:0;bottom:3.5rem}:host #cards .card[type=textimage] .content-image yoo-img{height:calc(100% - 3.5rem)}:host #cards .card[type=textimage] .content-text,:host #cards .card[type=textimage] .content-category{bottom:0;height:3.5rem}:host #actions{position:absolute;left:50%;z-index:1;display:inline-grid;grid-template-columns:1fr 1fr 1fr;width:100%;max-width:85%;line-height:2.5;-webkit-transform:translate(-50%, 80%);transform:translate(-50%, 80%)}:host #actions .action{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;text-align:center}:host([readonly]){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}:host([readonly]) .category-title{margin-bottom:var(--spacing-08, 0.5rem)}:host([readonly]) ul{display:grid;grid-gap:var(--spacing-16, 1rem);grid-template-columns:repeat(auto-fill, 6rem);margin:0;padding-left:0;list-style:none}:host([readonly]) ul+.category-title{margin-top:var(--spacing-16, 1rem)}:host([readonly]) ul li{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;height:8rem;overflow:hidden;border-style:solid;border-width:var(--border-width-01, 0.0625rem);border-radius:var(--border-radius-08, 0.5rem)}:host([readonly]) ul li.invalid{border-color:var(--danger, #d44333)}:host([readonly]) ul li.invalid yoo-img::before{position:absolute;width:100%;height:100%;background:var(--danger-20, rgba(212, 67, 51, 0.2));content:\"\"}:host([readonly]) ul li.invalid yoo-truncate{background:var(--danger, #d44333)}:host([readonly]) ul li.valid{border-color:var(--success, #3aa76d)}:host([readonly]) ul li.valid yoo-img::before{position:absolute;width:100%;height:100%;background:var(--success-20, rgba(58, 167, 109, 0.2));content:\"\"}:host([readonly]) ul li.valid yoo-truncate{background:var(--success, #3aa76d)}:host([readonly]) ul li yoo-img{position:relative;-ms-flex-positive:1;flex-grow:1}:host([readonly]) ul li yoo-truncate{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--light, #ffffff);font-size:var(--font-size-14, 0.875rem)}:host([readonly]) ul li yoo-truncate:only-child{--max-lines:4;height:100%;padding:0 var(--spacing-08, 0.5rem)}:host([readonly]) ul li yoo-truncate:not(:only-child){--max-lines:1;height:2.125rem;padding:0 var(--spacing-04, 0.25rem)}:host([animated]) #game{-webkit-animation:show 0.5s ease-in-out forwards;animation:show 0.5s ease-in-out forwards}@-webkit-keyframes show{from{-webkit-transform:scale(0.85);transform:scale(0.85);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes show{from{-webkit-transform:scale(0.85);transform:scale(0.85);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}:host([animated]) .action.hide>*{-webkit-animation:fadeOut 0.75s ease-in-out forwards;animation:fadeOut 0.75s ease-in-out forwards}@-webkit-keyframes fadeOut{from{opacity:1}to{opacity:0}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}:host([animated]) .action:not(.hide)>*{-webkit-animation:fadeIn 0.75s ease-in-out forwards;animation:fadeIn 0.75s ease-in-out forwards}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}:host([animated]) .action yoo-button{-webkit-transition:-webkit-transform 0.8s linear;transition:-webkit-transform 0.8s linear;transition:transform 0.8s linear;transition:transform 0.8s linear, -webkit-transform 0.8s linear}:host([live-preview]),:host(.mobile){min-height:60vh}:host([live-preview]) #instructions #header,:host(.mobile) #instructions #header{padding:var(--spacing-16, 1rem);background:var(--dark, #000000);border-radius:var(--border-radius-04, 0.25rem)}:host([live-preview]) #instructions #header #title,:host(.mobile) #instructions #header #title{color:var(--light, #ffffff);font-weight:bold;font-size:var(--font-size-28, 1.75rem)}:host([live-preview]) #instructions yoo-button,:host(.mobile) #instructions yoo-button{position:absolute;bottom:0;width:-webkit-fill-available;width:-moz-available;width:stretch}:host(.web:not([live-preview])) #instructions{position:relative}:host(.web:not([live-preview])) #instructions yoo-icon[name=swipe-explanation]{width:5rem;height:5rem;margin:auto;--inner-width:5rem;--inner-height:5rem}:host(.web:not([live-preview])) #instructions yoo-button{position:fixed;right:var(--spacing-32, 2rem);bottom:var(--spacing-16, 1rem);z-index:1;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host(.web:not([live-preview])) #game{height:60%;max-height:21rem}:host(.web:not([live-preview])) #game #cards{top:5%;margin-top:unset;-webkit-transform:translate(-50%, 0);transform:translate(-50%, 0)}:host(.web:not([live-preview])) #actions{-ms-flex-align:start;align-items:start;max-width:unset;margin-top:2.5%;-webkit-transform:translate(-50%, 0);transform:translate(-50%, 0)}:host(.web:not([live-preview])) #actions .action:nth-child(2){-ms-flex-item-align:end;align-self:end}:host(.web:not([live-preview])) #header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:var(--spacing-08, 0.5rem) var(--spacing-16, 1rem);line-height:1.75;text-align:center;background-color:var(--stable-ultralight, #fafafa)}:host(.web:not([live-preview])) #header #title{color:var(--dark, #000000) !important;font-weight:bold;font-size:var(--font-size-28, 1.75rem)}";
|
|
16
16
|
|
|
17
17
|
const YooFormSwipeCardsComponent = class {
|
|
18
18
|
constructor(hostRef) {
|