@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
@@ -239,30 +239,33 @@ export function mapMissionToCardInboxEntry(mission, options, authentication = ge
|
|
239
239
|
}
|
240
240
|
//#endregion
|
241
241
|
//#region TAGS
|
242
|
-
function
|
243
|
-
if (mission.status === 'finished'
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
242
|
+
export function getValidationTag(mission) {
|
243
|
+
if (mission && (mission.status === 'finished' || mission.type === 'visit')) {
|
244
|
+
if (mission.status === 'finished' && isMissionWithoutValidation(mission)) {
|
245
|
+
return {
|
246
|
+
innerHTML: translate('FINISHED'),
|
247
|
+
customColor: getCssColor('accent')
|
248
|
+
};
|
249
|
+
}
|
250
|
+
if ((mission === null || mission === void 0 ? void 0 : mission.validated) === true) {
|
251
|
+
return {
|
252
|
+
innerHTML: translate(mission.type === 'visit' ? 'APPROVED' : 'VALIDATED'),
|
253
|
+
customColor: getCssColor('success')
|
254
|
+
};
|
255
|
+
}
|
256
|
+
if ((mission === null || mission === void 0 ? void 0 : mission.validated) === false) {
|
257
|
+
return {
|
258
|
+
innerHTML: translate(mission.type === 'visit' ? 'DECLINED' : 'REJECTED'),
|
259
|
+
customColor: getCssColor('danger')
|
260
|
+
};
|
261
|
+
}
|
256
262
|
return {
|
257
|
-
innerHTML: translate(mission.type === 'visit' ? '
|
258
|
-
customColor: getCssColor('
|
263
|
+
innerHTML: translate(mission.type === 'visit' ? 'SCHEDULED' : 'PENDINGVALIDATION'),
|
264
|
+
customColor: getCssColor('warning'),
|
265
|
+
progressClass: 'warning'
|
259
266
|
};
|
260
267
|
}
|
261
|
-
return
|
262
|
-
innerHTML: translate(mission.type === 'visit' ? 'SCHEDULED' : 'PENDINGVALIDATION'),
|
263
|
-
customColor: getCssColor('warning'),
|
264
|
-
progressClass: 'warning'
|
265
|
-
};
|
268
|
+
return null;
|
266
269
|
}
|
267
270
|
export function getWorkflowStepBadge(mission) {
|
268
271
|
var _a, _b, _c, _d, _e, _f, _g;
|
@@ -353,7 +356,7 @@ export function getMissionStateTags(mission, session, includeUniqueKey, includeV
|
|
353
356
|
}
|
354
357
|
let tag;
|
355
358
|
if (mission.type === 'visit') {
|
356
|
-
tag =
|
359
|
+
tag = getValidationTag(mission);
|
357
360
|
}
|
358
361
|
else if (mission.status === 'archived') {
|
359
362
|
tag = {
|
@@ -389,7 +392,7 @@ export function getMissionStateTags(mission, session, includeUniqueKey, includeV
|
|
389
392
|
}
|
390
393
|
}
|
391
394
|
else if (mission.status === 'finished' && !mission.hasWorkflow) {
|
392
|
-
tag =
|
395
|
+
tag = getValidationTag(mission);
|
393
396
|
}
|
394
397
|
else if (mission.status === 'draft') {
|
395
398
|
tag = {
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import Highcharts from 'highcharts';
|
2
2
|
import * as highchartsMore from 'highcharts/highcharts-more';
|
3
3
|
import * as Highstock from 'highcharts/highstock';
|
4
|
-
// import * as boost from 'highcharts/modules/boost';
|
5
4
|
import * as drilldown from 'highcharts/modules/drilldown';
|
6
5
|
import * as exportData from 'highcharts/modules/export-data';
|
7
6
|
import * as exporting from 'highcharts/modules/exporting';
|
@@ -11,8 +10,6 @@ import * as solidgauge from 'highcharts/modules/solid-gauge';
|
|
11
10
|
import * as treemap from 'highcharts/modules/treemap';
|
12
11
|
import * as wordcloud from 'highcharts/modules/wordcloud';
|
13
12
|
function hightChartsPlugins(highcharts) {
|
14
|
-
// highcharts.seriesTypes.column.prototype.pointClass.prototype.setVisible = highcharts.seriesTypes.pie.prototype.pointClass.prototype.setVisible;
|
15
|
-
// highcharts.seriesTypes.bar.prototype.pointClass.prototype.setVisible = highcharts.seriesTypes.pie.prototype.pointClass.prototype.setVisible;
|
16
13
|
highcharts.wrap(highcharts.seriesTypes.pie.prototype, 'render', function (proceed) {
|
17
14
|
const chart = this.chart;
|
18
15
|
const center = this.center || (this.yAxis && this.yAxis.center);
|
@@ -51,6 +48,5 @@ if (typeof Highcharts === 'object') {
|
|
51
48
|
solidgauge.default(Highcharts);
|
52
49
|
exportData.default(Highcharts);
|
53
50
|
hightChartsPlugins(Highcharts);
|
54
|
-
// boost.default(Highcharts);
|
55
51
|
}
|
56
52
|
export { Highcharts, Highstock };
|
@@ -3,7 +3,6 @@ export * from './card-video.interface';
|
|
3
3
|
export * from './draggable.interface';
|
4
4
|
export * from './form-creator.interface';
|
5
5
|
export * from './form-daterange.interface';
|
6
|
-
export * from './form-filter.interface';
|
7
6
|
export * from './form-reorder.interface';
|
8
7
|
export * from './map.interface';
|
9
8
|
export * from './modal.interface';
|