@yoobic/yobi 8.5.0-65 → 8.5.0-67
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/{grid-renderers-6afebea7.js → grid-renderers-df979c2c.js} +4 -15
- package/dist/cjs/{missions-helpers-a4e1a383.js → missions-helpers-cb88152f.js} +27 -23
- package/dist/cjs/yoo-ag-grid.cjs.entry.js +2 -2
- package/dist/cjs/yoo-announcement-heading.cjs.entry.js +1 -1
- package/dist/cjs/yoo-chart.cjs.entry.js +1814 -1807
- package/dist/cjs/yoo-entity.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-input.cjs.entry.js +2 -2
- package/dist/cjs/yoo-grid.cjs.entry.js +2 -2
- package/dist/cjs/yoo-mission-details.cjs.entry.js +1 -1
- package/dist/cjs/yoo-mission-heading.cjs.entry.js +1 -1
- package/dist/cjs/yoo-pivot-table.cjs.entry.js +2 -2
- package/dist/collection/components/grid/ag-grid/grid-renderers.js +4 -15
- package/dist/collection/feature-operate/mission/helpers/missions-helpers.js +26 -23
- package/dist/collection/feature-platform/insight/chart/highcharts/index.js +0 -4
- package/dist/{esm/grid-renderers-eea95bb8.js → design-system/grid-renderers-63114b98.js} +4 -15
- package/dist/{esm/missions-helpers-2903cdac.js → design-system/missions-helpers-1863d0d4.js} +27 -24
- package/dist/design-system/yoo-ag-grid.entry.js +2 -2
- package/dist/design-system/yoo-announcement-heading.entry.js +1 -1
- package/dist/design-system/yoo-chart.entry.js +1814 -1807
- package/dist/design-system/yoo-entity.entry.js +1 -1
- package/dist/design-system/yoo-form-input.entry.js +2 -2
- package/dist/design-system/yoo-grid.entry.js +2 -2
- package/dist/design-system/yoo-mission-details.entry.js +1 -1
- package/dist/design-system/yoo-mission-heading.entry.js +1 -1
- package/dist/design-system/yoo-pivot-table.entry.js +2 -2
- package/dist/{design-system/grid-renderers-eea95bb8.js → esm/grid-renderers-63114b98.js} +4 -15
- package/dist/{design-system/missions-helpers-2903cdac.js → esm/missions-helpers-1863d0d4.js} +27 -24
- package/dist/esm/yoo-ag-grid.entry.js +2 -2
- package/dist/esm/yoo-announcement-heading.entry.js +1 -1
- package/dist/esm/yoo-chart.entry.js +1814 -1807
- package/dist/esm/yoo-entity.entry.js +1 -1
- package/dist/esm/yoo-form-input.entry.js +2 -2
- package/dist/esm/yoo-grid.entry.js +2 -2
- package/dist/esm/yoo-mission-details.entry.js +1 -1
- package/dist/esm/yoo-mission-heading.entry.js +1 -1
- package/dist/esm/yoo-pivot-table.entry.js +2 -2
- package/dist/types/components/form/image-cropper-dialog/pintura/pintura.d.ts +1236 -0
- package/dist/types/feature-operate/mission/helpers/missions-helpers.d.ts +1 -0
- package/package.json +1 -1
@@ -4,7 +4,7 @@ const index$1 = require('./index-cb8276bc.js');
|
|
4
4
|
require('./index-944805e9.js');
|
5
5
|
const lodash = require('./lodash-a9050d79.js');
|
6
6
|
const incentiveHelpers = require('./incentive-helpers-15fd0d60.js');
|
7
|
-
const missionsHelpers = require('./missions-helpers-
|
7
|
+
const missionsHelpers = require('./missions-helpers-cb88152f.js');
|
8
8
|
const commonHelpers = require('./common-helpers-266b26c4.js');
|
9
9
|
const formHelpers = require('./form-helpers-76463daf.js');
|
10
10
|
const geolocationHelpers = require('./geolocation-helpers-4c8ccc80.js');
|
@@ -1059,20 +1059,9 @@ function missionStatusRenderer(params) {
|
|
1059
1059
|
else {
|
1060
1060
|
const value = params.value;
|
1061
1061
|
if (value === 'finished') {
|
1062
|
-
const
|
1063
|
-
|
1064
|
-
|
1065
|
-
if (validated) {
|
1066
|
-
retVal = `<div class="not-center-container"><yoo-tag custom-color="${index.getCssColor('success')}">${index.translate('VALIDATED')}</yoo-tag></div>`;
|
1067
|
-
}
|
1068
|
-
else if (notValidated) {
|
1069
|
-
retVal = `<div class="not-center-container"><yoo-tag custom-color="${index.getCssColor('danger')}">${index.translate('REJECTED')}</yoo-tag></div>`;
|
1070
|
-
}
|
1071
|
-
else if (pendingValidation) {
|
1072
|
-
retVal = `<div class="not-center-container"><yoo-tag custom-color="${index.getCssColor('warning')}">${index.translate('PENDINGVALIDATION')}</yoo-tag></div>`;
|
1073
|
-
}
|
1074
|
-
else {
|
1075
|
-
retVal = `<div class="not-center-container"><yoo-tag custom-color="${index.getCssColor('accent')}">${index.translate('FINISHED')}</yoo-tag></div>`;
|
1062
|
+
const tag = missionsHelpers.getValidationTag(params.data);
|
1063
|
+
if (tag) {
|
1064
|
+
retVal = `<div class="not-center-container"><yoo-tag custom-color="${tag.customColor}">${tag.innerHTML}</yoo-tag></div>`;
|
1076
1065
|
}
|
1077
1066
|
}
|
1078
1067
|
else if (value === 'booked') {
|
@@ -243,30 +243,33 @@ function mapMissionToCardInboxEntry(mission, options, authentication = index.get
|
|
243
243
|
}
|
244
244
|
//#endregion
|
245
245
|
//#region TAGS
|
246
|
-
function
|
247
|
-
if (mission.status === 'finished'
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
246
|
+
function getValidationTag(mission) {
|
247
|
+
if (mission && (mission.status === 'finished' || mission.type === 'visit')) {
|
248
|
+
if (mission.status === 'finished' && isMissionWithoutValidation(mission)) {
|
249
|
+
return {
|
250
|
+
innerHTML: index.translate('FINISHED'),
|
251
|
+
customColor: index.getCssColor('accent')
|
252
|
+
};
|
253
|
+
}
|
254
|
+
if ((mission === null || mission === void 0 ? void 0 : mission.validated) === true) {
|
255
|
+
return {
|
256
|
+
innerHTML: index.translate(mission.type === 'visit' ? 'APPROVED' : 'VALIDATED'),
|
257
|
+
customColor: index.getCssColor('success')
|
258
|
+
};
|
259
|
+
}
|
260
|
+
if ((mission === null || mission === void 0 ? void 0 : mission.validated) === false) {
|
261
|
+
return {
|
262
|
+
innerHTML: index.translate(mission.type === 'visit' ? 'DECLINED' : 'REJECTED'),
|
263
|
+
customColor: index.getCssColor('danger')
|
264
|
+
};
|
265
|
+
}
|
260
266
|
return {
|
261
|
-
innerHTML: index.translate(mission.type === 'visit' ? '
|
262
|
-
customColor: index.getCssColor('
|
267
|
+
innerHTML: index.translate(mission.type === 'visit' ? 'SCHEDULED' : 'PENDINGVALIDATION'),
|
268
|
+
customColor: index.getCssColor('warning'),
|
269
|
+
progressClass: 'warning'
|
263
270
|
};
|
264
271
|
}
|
265
|
-
return
|
266
|
-
innerHTML: index.translate(mission.type === 'visit' ? 'SCHEDULED' : 'PENDINGVALIDATION'),
|
267
|
-
customColor: index.getCssColor('warning'),
|
268
|
-
progressClass: 'warning'
|
269
|
-
};
|
272
|
+
return null;
|
270
273
|
}
|
271
274
|
function getWorkflowStepBadge(mission) {
|
272
275
|
var _a, _b, _c, _d, _e, _f, _g;
|
@@ -357,7 +360,7 @@ function getMissionStateTags(mission, session, includeUniqueKey, includeVIPText)
|
|
357
360
|
}
|
358
361
|
let tag;
|
359
362
|
if (mission.type === 'visit') {
|
360
|
-
tag =
|
363
|
+
tag = getValidationTag(mission);
|
361
364
|
}
|
362
365
|
else if (mission.status === 'archived') {
|
363
366
|
tag = {
|
@@ -393,7 +396,7 @@ function getMissionStateTags(mission, session, includeUniqueKey, includeVIPText)
|
|
393
396
|
}
|
394
397
|
}
|
395
398
|
else if (mission.status === 'finished' && !mission.hasWorkflow) {
|
396
|
-
tag =
|
399
|
+
tag = getValidationTag(mission);
|
397
400
|
}
|
398
401
|
else if (mission.status === 'draft') {
|
399
402
|
tag = {
|
@@ -470,5 +473,6 @@ exports.getMissionProgress = getMissionProgress;
|
|
470
473
|
exports.getMissionStateTags = getMissionStateTags;
|
471
474
|
exports.getMissionTags = getMissionTags;
|
472
475
|
exports.getMissionUniqueKey = getMissionUniqueKey;
|
476
|
+
exports.getValidationTag = getValidationTag;
|
473
477
|
exports.getWorkflowStepBadge = getWorkflowStepBadge;
|
474
478
|
exports.mapMissionToCardInboxEntry = mapMissionToCardInboxEntry;
|
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index$1 = require('./index-9ca0e46c.js');
|
6
6
|
const lodash = require('./lodash-a9050d79.js');
|
7
7
|
const commonHelpers = require('./common-helpers-266b26c4.js');
|
8
|
-
const gridRenderers = require('./grid-renderers-
|
8
|
+
const gridRenderers = require('./grid-renderers-df979c2c.js');
|
9
9
|
require('./index-944805e9.js');
|
10
10
|
const index = require('./index-9236f182.js');
|
11
11
|
require('./index-cb8276bc.js');
|
12
12
|
require('./incentive-helpers-15fd0d60.js');
|
13
|
-
require('./missions-helpers-
|
13
|
+
require('./missions-helpers-cb88152f.js');
|
14
14
|
require('./form-helpers-76463daf.js');
|
15
15
|
require('./geolocation-helpers-4c8ccc80.js');
|
16
16
|
require('./_commonjsHelpers-94df2ea7.js');
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-9ca0e46c.js');
|
6
6
|
require('./index-944805e9.js');
|
7
|
-
const missionsHelpers = require('./missions-helpers-
|
7
|
+
const missionsHelpers = require('./missions-helpers-cb88152f.js');
|
8
8
|
const commonHelpers = require('./common-helpers-266b26c4.js');
|
9
9
|
const missionLockedBanner = require('./mission-locked-banner-4163f03f.js');
|
10
10
|
const index$1 = require('./index-9236f182.js');
|