@yoobic/yobi 8.5.0-64 → 8.5.0-66
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/{grid-renderers-6afebea7.js → grid-renderers-df979c2c.js} +4 -15
- package/dist/cjs/loader.cjs.js +1 -1
- 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-query-builder.cjs.entry.js +5 -10
- package/dist/cjs/yoo-entity.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-autocomplete-dialog.cjs.entry.js +1 -0
- package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +7 -7
- package/dist/cjs/yoo-form-input.cjs.entry.js +2 -2
- package/dist/cjs/yoo-grid.cjs.entry.js +14 -31
- 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/entities/entity-query-builder/entity-query-builder.js +5 -10
- package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +9 -9
- package/dist/collection/components/form/form-autocomplete-dialog/form-autocomplete-dialog.js +11 -5
- package/dist/collection/components/grid/ag-grid/grid-renderers.js +4 -15
- package/dist/collection/components/grid/grid/grid.js +22 -34
- 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/collection/interfaces/ui/index.js +0 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/{esm/grid-renderers-eea95bb8.js → design-system/grid-renderers-63114b98.js} +4 -15
- package/dist/design-system/{missions-helpers-2903cdac.js → 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-query-builder.entry.js +5 -10
- package/dist/design-system/yoo-entity.entry.js +1 -1
- package/dist/design-system/yoo-form-autocomplete-dialog.entry.js +1 -0
- package/dist/design-system/yoo-form-autocomplete.entry.js +8 -8
- package/dist/design-system/yoo-form-input.entry.js +2 -2
- package/dist/design-system/yoo-grid.entry.js +15 -32
- 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/esm/design-system.js +1 -1
- package/dist/{design-system/grid-renderers-eea95bb8.js → esm/grid-renderers-63114b98.js} +4 -15
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{missions-helpers-2903cdac.js → 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-query-builder.entry.js +5 -10
- package/dist/esm/yoo-entity.entry.js +1 -1
- package/dist/esm/yoo-form-autocomplete-dialog.entry.js +1 -0
- package/dist/esm/yoo-form-autocomplete.entry.js +8 -8
- package/dist/esm/yoo-form-input.entry.js +2 -2
- package/dist/esm/yoo-grid.entry.js +15 -32
- 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/form-autocomplete/form-autocomplete.d.ts +1 -1
- package/dist/types/components/form/form-autocomplete-dialog/form-autocomplete-dialog.d.ts +1 -1
- package/dist/types/components/form/image-cropper-dialog/pintura/pintura.d.ts +1236 -0
- package/dist/types/components/grid/grid/grid.d.ts +2 -3
- package/dist/types/components.d.ts +4 -4
- package/dist/types/feature-operate/mission/helpers/missions-helpers.d.ts +1 -0
- package/dist/types/interfaces/ui/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/collection/interfaces/ui/form-filter.interface.js +0 -1
- package/dist/types/interfaces/ui/form-filter.interface.d.ts +0 -5
@@ -241,30 +241,33 @@ function mapMissionToCardInboxEntry(mission, options, authentication = getAuthen
|
|
241
241
|
}
|
242
242
|
//#endregion
|
243
243
|
//#region TAGS
|
244
|
-
function
|
245
|
-
if (mission.status === 'finished'
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
244
|
+
function getValidationTag(mission) {
|
245
|
+
if (mission && (mission.status === 'finished' || mission.type === 'visit')) {
|
246
|
+
if (mission.status === 'finished' && isMissionWithoutValidation(mission)) {
|
247
|
+
return {
|
248
|
+
innerHTML: translate('FINISHED'),
|
249
|
+
customColor: getCssColor('accent')
|
250
|
+
};
|
251
|
+
}
|
252
|
+
if ((mission === null || mission === void 0 ? void 0 : mission.validated) === true) {
|
253
|
+
return {
|
254
|
+
innerHTML: translate(mission.type === 'visit' ? 'APPROVED' : 'VALIDATED'),
|
255
|
+
customColor: getCssColor('success')
|
256
|
+
};
|
257
|
+
}
|
258
|
+
if ((mission === null || mission === void 0 ? void 0 : mission.validated) === false) {
|
259
|
+
return {
|
260
|
+
innerHTML: translate(mission.type === 'visit' ? 'DECLINED' : 'REJECTED'),
|
261
|
+
customColor: getCssColor('danger')
|
262
|
+
};
|
263
|
+
}
|
258
264
|
return {
|
259
|
-
innerHTML: translate(mission.type === 'visit' ? '
|
260
|
-
customColor: getCssColor('
|
265
|
+
innerHTML: translate(mission.type === 'visit' ? 'SCHEDULED' : 'PENDINGVALIDATION'),
|
266
|
+
customColor: getCssColor('warning'),
|
267
|
+
progressClass: 'warning'
|
261
268
|
};
|
262
269
|
}
|
263
|
-
return
|
264
|
-
innerHTML: translate(mission.type === 'visit' ? 'SCHEDULED' : 'PENDINGVALIDATION'),
|
265
|
-
customColor: getCssColor('warning'),
|
266
|
-
progressClass: 'warning'
|
267
|
-
};
|
270
|
+
return null;
|
268
271
|
}
|
269
272
|
function getWorkflowStepBadge(mission) {
|
270
273
|
var _a, _b, _c, _d, _e, _f, _g;
|
@@ -355,7 +358,7 @@ function getMissionStateTags(mission, session, includeUniqueKey, includeVIPText)
|
|
355
358
|
}
|
356
359
|
let tag;
|
357
360
|
if (mission.type === 'visit') {
|
358
|
-
tag =
|
361
|
+
tag = getValidationTag(mission);
|
359
362
|
}
|
360
363
|
else if (mission.status === 'archived') {
|
361
364
|
tag = {
|
@@ -391,7 +394,7 @@ function getMissionStateTags(mission, session, includeUniqueKey, includeVIPText)
|
|
391
394
|
}
|
392
395
|
}
|
393
396
|
else if (mission.status === 'finished' && !mission.hasWorkflow) {
|
394
|
-
tag =
|
397
|
+
tag = getValidationTag(mission);
|
395
398
|
}
|
396
399
|
else if (mission.status === 'draft') {
|
397
400
|
tag = {
|
@@ -461,4 +464,4 @@ function getMissionStateTags(mission, session, includeUniqueKey, includeVIPText)
|
|
461
464
|
}
|
462
465
|
//#endregion
|
463
466
|
|
464
|
-
export { getMissionPriority as a, getMissionDueDate as b, getMissionTags as c, getMissionUniqueKey as d, getMissionProgress as e, getWorkflowStepBadge as f, getMissionAddress as g,
|
467
|
+
export { getMissionPriority as a, getMissionDueDate as b, getMissionTags as c, getMissionUniqueKey as d, getMissionProgress as e, getWorkflowStepBadge as f, getMissionAddress as g, getValidationTag as h, getMissionStateTags as i, mapMissionToCardInboxEntry as m };
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { r as registerInstance, h, e as Host, g as getElement } from './index-a6a92b3d.js';
|
2
2
|
import { g as global, n as compact, v as isObject$1, ab as min, P as max, a as isNumber$2, aa as sum$1, k as keys$1, B as sortBy, L as reduce, c as cloneDeep, C as get$1, I as omit, p as isString$2 } from './lodash-777f91de.js';
|
3
3
|
import { g as getAppContext } from './common-helpers-3b193836.js';
|
4
|
-
import { a as getKeyTemplate, p as progressValue, v as validationProgressValue, c as conformityProgressValue, b as conformityRelativeProgressValue, g as getRenderer } from './grid-renderers-
|
4
|
+
import { a as getKeyTemplate, p as progressValue, v as validationProgressValue, c as conformityProgressValue, b as conformityRelativeProgressValue, g as getRenderer } from './grid-renderers-63114b98.js';
|
5
5
|
import './index-8ba1a121.js';
|
6
6
|
import { b_ as dateParse, aM as isPresent, W as getAsyncExtraData, t as translate } from './index-9e87cea3.js';
|
7
7
|
import './index-604330b3.js';
|
8
8
|
import './incentive-helpers-d0b35789.js';
|
9
|
-
import './missions-helpers-
|
9
|
+
import './missions-helpers-1863d0d4.js';
|
10
10
|
import './form-helpers-4d69b46e.js';
|
11
11
|
import './geolocation-helpers-32aa6208.js';
|
12
12
|
import './_commonjsHelpers-f4d11124.js';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, f as forceUpdate, h, e as Host } from './index-a6a92b3d.js';
|
2
2
|
import './index-8ba1a121.js';
|
3
|
-
import { e as getMissionProgress, b as getMissionDueDate } from './missions-helpers-
|
3
|
+
import { e as getMissionProgress, b as getMissionDueDate } from './missions-helpers-1863d0d4.js';
|
4
4
|
import { h as execHandlerAndStopEvent } from './common-helpers-3b193836.js';
|
5
5
|
import { M as MissionLockedBanner } from './mission-locked-banner-1e823065.js';
|
6
6
|
import { Q as getCssColor, cX as getMissionPublicationDate, cV as isToday, t as translate, cW as fromToday, ao as dateFormat, aM as isPresent, V as isDateAfter, a3 as translateMulti, H as isWeb } from './index-9e87cea3.js';
|