@yoobic/yobi 8.5.0-65 → 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/{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 @@ import './index-8ba1a121.js';
|
|
4
4
|
import { k as keys, a as isNumber, n as compact, i as isArray, N as size, H as isNil, p as isString, ae as partition, C as get, b as isFunction } from './lodash-777f91de.js';
|
5
5
|
import { e as getIncentiveStatusBadgeSettings } from './incentive-helpers-d0b35789.js';
|
6
6
|
import { d as getCampaignStateTags, e as getCampaignTemplateTags, f as getMissionDataStateTags, h as getWaitlistVisitTags, g as getProductBatchDateTag, i as getProductBatchProgressColor } from './operation-helpers-754b31cf.js';
|
7
|
-
import {
|
7
|
+
import { i as getMissionStateTags, d as getMissionUniqueKey, g as getMissionAddress, m as mapMissionToCardInboxEntry } from './missions-helpers-1863d0d4.js';
|
8
8
|
import { g as getButton } from './button.factory-42e6d7c8.js';
|
9
9
|
import { t as getNotificationIcon, h as execHandlerAndStopEvent, g as getAppContext } from './common-helpers-3b193836.js';
|
10
10
|
import { a as getCalendarCourseDueDate, p as parseEntityForCardChat, o as onUserClick, b as parseFolderForCardList, c as parseEntityCommentsForCardList, d as getFolderIcon, e as parseEntityForCardMedia } from './entities-helpers-a50f68ec.js';
|
@@ -3,11 +3,11 @@ import { r as resizeObserve } from './index-8ba1a121.js';
|
|
3
3
|
import { p as isString, b as isFunction, a as isNumber } from './lodash-777f91de.js';
|
4
4
|
import { g as getAppContext } from './common-helpers-3b193836.js';
|
5
5
|
import { v as validate, i as initNumber, a as setValueAndValidateInput, s as setValidator, c as convertValueForInputType, h as onIconClicked, o as onInputClear, b as onInputBlurred, d as onInputFocused, j as clearFocused } from './form-input-helpers-df22e2a8.js';
|
6
|
-
import { g as getRenderer } from './grid-renderers-
|
6
|
+
import { g as getRenderer } from './grid-renderers-63114b98.js';
|
7
7
|
import { H as isWeb, k as isNullOrUndefined, I as debounce, o as isNativeMobile, N as isIOS, ag as enableKeyboardResize, bX as isSafari, p as isAndroid, dJ as isHTML, fL as extractTextFromStringHTML, aw as copyToClipboard, b9 as showToast, t as translate, dm as isAnimationsDisabled } from './index-9e87cea3.js';
|
8
8
|
import './index-604330b3.js';
|
9
9
|
import './incentive-helpers-d0b35789.js';
|
10
|
-
import './missions-helpers-
|
10
|
+
import './missions-helpers-1863d0d4.js';
|
11
11
|
import './form-helpers-4d69b46e.js';
|
12
12
|
import './geolocation-helpers-32aa6208.js';
|
13
13
|
import './_commonjsHelpers-f4d11124.js';
|
@@ -9,14 +9,14 @@ import { a as assignPressActions } from './index-321ff220.js';
|
|
9
9
|
import { c as querySelectorAllDeep, n as hideShowSearchBar, p as getNextValueInArray, g as getAppContext } from './common-helpers-3b193836.js';
|
10
10
|
import { m as mapCustomViewToButton, l as isKanbanColumnField } from './filters-helpers-753cda2a.js';
|
11
11
|
import { s as setValidator, a as setValueAndValidateInput } from './form-input-helpers-df22e2a8.js';
|
12
|
-
import { g as getRenderer } from './grid-renderers-
|
12
|
+
import { g as getRenderer } from './grid-renderers-63114b98.js';
|
13
13
|
import { eB as HorizontalSlidesAnimation, H as isWeb, av as pipes, aM as isPresent, e0 as safeScrollIntoView, W as getAsyncExtraData, eC as MONGODB_ID_REGEX, bM as filterListByText, a8 as getSession, dm as isAnimationsDisabled, eD as isMapField, k as isNullOrUndefined, t as translate, G as showModal, a3 as translateMulti, aE as toButton, d1 as getAuthentication, cp as showActionSheet, br as isOffline, bJ as isDateTimeField, eE as isAutocompleteLocalField, eF as isNumberField, eG as isEmail, ap as dispatchCustomEvent, dZ as isFirefox, eH as isForceScrollbar } from './index-9e87cea3.js';
|
14
14
|
import { I as ItemSlidingType } from './item-sliding.interface-85f6790e.js';
|
15
15
|
import './workflow.interface-79064a52.js';
|
16
16
|
import './form-field.instance-9dc4d638.js';
|
17
17
|
import './card-video.interface-5572358c.js';
|
18
18
|
import './incentive-helpers-d0b35789.js';
|
19
|
-
import './missions-helpers-
|
19
|
+
import './missions-helpers-1863d0d4.js';
|
20
20
|
import './form-helpers-4d69b46e.js';
|
21
21
|
import './geolocation-helpers-32aa6208.js';
|
22
22
|
import './_commonjsHelpers-f4d11124.js';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { h, r as registerInstance, i as createEvent, e as Host, g as getElement } from './index-a6a92b3d.js';
|
2
2
|
import './index-8ba1a121.js';
|
3
3
|
import { c as cloneDeep, l as uniq, n as compact } from './lodash-777f91de.js';
|
4
|
-
import { g as getMissionAddress, a as getMissionPriority, b as getMissionDueDate, m as mapMissionToCardInboxEntry, c as getMissionTags, d as getMissionUniqueKey } from './missions-helpers-
|
4
|
+
import { g as getMissionAddress, a as getMissionPriority, b as getMissionDueDate, m as mapMissionToCardInboxEntry, c as getMissionTags, d as getMissionUniqueKey } from './missions-helpers-1863d0d4.js';
|
5
5
|
import { g as getAppContext } from './common-helpers-3b193836.js';
|
6
6
|
import { a8 as getSession, W as getAsyncExtraData, H as isWeb, t as translate, cC as isIonic, aM as isPresent, Q as getCssColor, cV as isToday, cW as fromToday, ao as dateFormat, cX as getMissionPublicationDate, cY as isDateSame, V as isDateAfter, a3 as translateMulti, av as pipes } from './index-9e87cea3.js';
|
7
7
|
import './index-604330b3.js';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, f as forceUpdate, h, e as Host, g as getElement } from './index-a6a92b3d.js';
|
2
2
|
import './index-8ba1a121.js';
|
3
|
-
import { e as getMissionProgress, c as getMissionTags, d as getMissionUniqueKey } from './missions-helpers-
|
3
|
+
import { e as getMissionProgress, c as getMissionTags, d as getMissionUniqueKey } from './missions-helpers-1863d0d4.js';
|
4
4
|
import { g as getAppContext } from './common-helpers-3b193836.js';
|
5
5
|
import { M as MissionLockedBanner } from './mission-locked-banner-1e823065.js';
|
6
6
|
import { cC as isIonic, t as translate, a3 as translateMulti } from './index-9e87cea3.js';
|
@@ -2,11 +2,11 @@ import { r as registerInstance, i as createEvent, h, g as getElement } from './i
|
|
2
2
|
import './index-8ba1a121.js';
|
3
3
|
import { a as createCommonjsModule, c as commonjsGlobal } from './_commonjsHelpers-f4d11124.js';
|
4
4
|
import { $ as debounce, c as cloneDeep, s as assign, B as sortBy, A as isEqual } from './lodash-777f91de.js';
|
5
|
-
import { g as getRenderer } from './grid-renderers-
|
5
|
+
import { g as getRenderer } from './grid-renderers-63114b98.js';
|
6
6
|
import { 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 './common-helpers-3b193836.js';
|
11
11
|
import './form-helpers-4d69b46e.js';
|
12
12
|
import './geolocation-helpers-32aa6208.js';
|
@@ -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-
|
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
|
1061
|
-
|
1062
|
-
|
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') {
|
package/dist/{design-system/missions-helpers-2903cdac.js → esm/missions-helpers-1863d0d4.js}
RENAMED
@@ -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';
|