@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.
Files changed (65) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/{grid-renderers-6afebea7.js → grid-renderers-df979c2c.js} +4 -15
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{missions-helpers-a4e1a383.js → missions-helpers-cb88152f.js} +27 -23
  5. package/dist/cjs/yoo-ag-grid.cjs.entry.js +2 -2
  6. package/dist/cjs/yoo-announcement-heading.cjs.entry.js +1 -1
  7. package/dist/cjs/yoo-chart.cjs.entry.js +1814 -1807
  8. package/dist/cjs/yoo-entity-query-builder.cjs.entry.js +5 -10
  9. package/dist/cjs/yoo-entity.cjs.entry.js +1 -1
  10. package/dist/cjs/yoo-form-autocomplete-dialog.cjs.entry.js +1 -0
  11. package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +7 -7
  12. package/dist/cjs/yoo-form-input.cjs.entry.js +2 -2
  13. package/dist/cjs/yoo-grid.cjs.entry.js +14 -31
  14. package/dist/cjs/yoo-mission-details.cjs.entry.js +1 -1
  15. package/dist/cjs/yoo-mission-heading.cjs.entry.js +1 -1
  16. package/dist/cjs/yoo-pivot-table.cjs.entry.js +2 -2
  17. package/dist/collection/components/entities/entity-query-builder/entity-query-builder.js +5 -10
  18. package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +9 -9
  19. package/dist/collection/components/form/form-autocomplete-dialog/form-autocomplete-dialog.js +11 -5
  20. package/dist/collection/components/grid/ag-grid/grid-renderers.js +4 -15
  21. package/dist/collection/components/grid/grid/grid.js +22 -34
  22. package/dist/collection/feature-operate/mission/helpers/missions-helpers.js +26 -23
  23. package/dist/collection/feature-platform/insight/chart/highcharts/index.js +0 -4
  24. package/dist/collection/interfaces/ui/index.js +0 -1
  25. package/dist/design-system/design-system.esm.js +1 -1
  26. package/dist/{esm/grid-renderers-eea95bb8.js → design-system/grid-renderers-63114b98.js} +4 -15
  27. package/dist/design-system/{missions-helpers-2903cdac.js → missions-helpers-1863d0d4.js} +27 -24
  28. package/dist/design-system/yoo-ag-grid.entry.js +2 -2
  29. package/dist/design-system/yoo-announcement-heading.entry.js +1 -1
  30. package/dist/design-system/yoo-chart.entry.js +1814 -1807
  31. package/dist/design-system/yoo-entity-query-builder.entry.js +5 -10
  32. package/dist/design-system/yoo-entity.entry.js +1 -1
  33. package/dist/design-system/yoo-form-autocomplete-dialog.entry.js +1 -0
  34. package/dist/design-system/yoo-form-autocomplete.entry.js +8 -8
  35. package/dist/design-system/yoo-form-input.entry.js +2 -2
  36. package/dist/design-system/yoo-grid.entry.js +15 -32
  37. package/dist/design-system/yoo-mission-details.entry.js +1 -1
  38. package/dist/design-system/yoo-mission-heading.entry.js +1 -1
  39. package/dist/design-system/yoo-pivot-table.entry.js +2 -2
  40. package/dist/esm/design-system.js +1 -1
  41. package/dist/{design-system/grid-renderers-eea95bb8.js → esm/grid-renderers-63114b98.js} +4 -15
  42. package/dist/esm/loader.js +1 -1
  43. package/dist/esm/{missions-helpers-2903cdac.js → missions-helpers-1863d0d4.js} +27 -24
  44. package/dist/esm/yoo-ag-grid.entry.js +2 -2
  45. package/dist/esm/yoo-announcement-heading.entry.js +1 -1
  46. package/dist/esm/yoo-chart.entry.js +1814 -1807
  47. package/dist/esm/yoo-entity-query-builder.entry.js +5 -10
  48. package/dist/esm/yoo-entity.entry.js +1 -1
  49. package/dist/esm/yoo-form-autocomplete-dialog.entry.js +1 -0
  50. package/dist/esm/yoo-form-autocomplete.entry.js +8 -8
  51. package/dist/esm/yoo-form-input.entry.js +2 -2
  52. package/dist/esm/yoo-grid.entry.js +15 -32
  53. package/dist/esm/yoo-mission-details.entry.js +1 -1
  54. package/dist/esm/yoo-mission-heading.entry.js +1 -1
  55. package/dist/esm/yoo-pivot-table.entry.js +2 -2
  56. package/dist/types/components/form/form-autocomplete/form-autocomplete.d.ts +1 -1
  57. package/dist/types/components/form/form-autocomplete-dialog/form-autocomplete-dialog.d.ts +1 -1
  58. package/dist/types/components/form/image-cropper-dialog/pintura/pintura.d.ts +1236 -0
  59. package/dist/types/components/grid/grid/grid.d.ts +2 -3
  60. package/dist/types/components.d.ts +4 -4
  61. package/dist/types/feature-operate/mission/helpers/missions-helpers.d.ts +1 -0
  62. package/dist/types/interfaces/ui/index.d.ts +0 -1
  63. package/package.json +1 -1
  64. package/dist/collection/interfaces/ui/form-filter.interface.js +0 -1
  65. package/dist/types/interfaces/ui/form-filter.interface.d.ts +0 -5
@@ -2,7 +2,7 @@ import { c as FormFieldType, j as IncentiveStatus, p as IncentivePartType, k as
2
2
  import './index-8ba1a121.js';
3
3
  import { a6 as findKey, i as isArray, b as isFunction, a as isNumber, n as compact, p as isString, C as get, y as isEmpty, F as indexOf, v as isObject, k as keys, h as map, r as round } from './lodash-777f91de.js';
4
4
  import { a as getPositionText } from './incentive-helpers-d0b35789.js';
5
- import { f as getWorkflowStepBadge } from './missions-helpers-2903cdac.js';
5
+ import { f as getWorkflowStepBadge, h as getValidationTag } from './missions-helpers-1863d0d4.js';
6
6
  import { d as dateRangeState } from './common-helpers-3b193836.js';
7
7
  import { g as getJSONHighlighted } from './form-helpers-4d69b46e.js';
8
8
  import { f as formatDistance } from './geolocation-helpers-32aa6208.js';
@@ -1057,20 +1057,9 @@ function missionStatusRenderer(params) {
1057
1057
  else {
1058
1058
  const value = params.value;
1059
1059
  if (value === 'finished') {
1060
- const validated = params.data ? !params.data.withoutValidation && params.data.validatedByRef && !!params.data.validated : null;
1061
- const notValidated = params.data ? !params.data.withoutValidation && params.data.validatedByRef && !params.data.validated : null;
1062
- const pendingValidation = params.data ? !params.data.withoutValidation && !params.data.validatedByRef : null;
1063
- if (validated) {
1064
- retVal = `<div class="not-center-container"><yoo-tag custom-color="${getCssColor('success')}">${translate('VALIDATED')}</yoo-tag></div>`;
1065
- }
1066
- else if (notValidated) {
1067
- retVal = `<div class="not-center-container"><yoo-tag custom-color="${getCssColor('danger')}">${translate('REJECTED')}</yoo-tag></div>`;
1068
- }
1069
- else if (pendingValidation) {
1070
- retVal = `<div class="not-center-container"><yoo-tag custom-color="${getCssColor('warning')}">${translate('PENDINGVALIDATION')}</yoo-tag></div>`;
1071
- }
1072
- else {
1073
- retVal = `<div class="not-center-container"><yoo-tag custom-color="${getCssColor('accent')}">${translate('FINISHED')}</yoo-tag></div>`;
1060
+ const tag = getValidationTag(params.data);
1061
+ if (tag) {
1062
+ retVal = `<div class="not-center-container"><yoo-tag custom-color="${tag.customColor}">${tag.innerHTML}</yoo-tag></div>`;
1074
1063
  }
1075
1064
  }
1076
1065
  else if (value === 'booked') {
@@ -241,30 +241,33 @@ function mapMissionToCardInboxEntry(mission, options, authentication = getAuthen
241
241
  }
242
242
  //#endregion
243
243
  //#region TAGS
244
- function assignTag(mission) {
245
- if (mission.status === 'finished' && isMissionWithoutValidation(mission)) {
246
- return {
247
- innerHTML: translate('FINISHED'),
248
- customColor: getCssColor('accent')
249
- };
250
- }
251
- if ((mission === null || mission === void 0 ? void 0 : mission.validated) === true) {
252
- return {
253
- innerHTML: translate(mission.type === 'visit' ? 'APPROVED' : 'VALIDATED'),
254
- customColor: getCssColor('success')
255
- };
256
- }
257
- if ((mission === null || mission === void 0 ? void 0 : mission.validated) === false) {
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' ? 'DECLINED' : 'REJECTED'),
260
- customColor: getCssColor('danger')
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 = assignTag(mission);
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 = assignTag(mission);
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, getMissionStateTags as h, mapMissionToCardInboxEntry as m };
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-eea95bb8.js';
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-2903cdac.js';
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-2903cdac.js';
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';