@yoobic/yobi 8.1.0-165 → 8.1.0-166
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/yoo-form-todo-dialog.cjs.entry.js +3 -1
- package/dist/cjs/yoo-form-todo-single.cjs.entry.js +1 -0
- package/dist/cjs/yoo-mission-details.cjs.entry.js +4 -2
- package/dist/collection/components/form/form-todo-dialog/form-todo-dialog.js +4 -2
- package/dist/collection/components/form/form-todo-single/form-todo-single.js +1 -0
- package/dist/collection/feature-operate/mission/mission-details/mission-details.js +4 -1
- package/dist/design-system/yoo-form-todo-dialog.entry.js +4 -2
- package/dist/design-system/yoo-form-todo-single.entry.js +1 -0
- package/dist/design-system/yoo-mission-details.entry.js +4 -2
- package/dist/esm/yoo-form-todo-dialog.entry.js +4 -2
- package/dist/esm/yoo-form-todo-single.entry.js +1 -0
- package/dist/esm/yoo-mission-details.entry.js +4 -2
- package/package.json +1 -1
|
@@ -140,7 +140,9 @@ const YooFormTodoDialogComponent = class {
|
|
|
140
140
|
renderLinkedField() {
|
|
141
141
|
var _a, _b, _c;
|
|
142
142
|
if (((_b = (_a = this.todo) === null || _a === void 0 ? void 0 : _a.field) === null || _b === void 0 ? void 0 : _b.name) && ((_c = this.todo) === null || _c === void 0 ? void 0 : _c.fieldValue)) {
|
|
143
|
-
|
|
143
|
+
const field = lodash.cloneDeep(this.todo.field);
|
|
144
|
+
field.title = this.todo.field.description || this.todo.field.title;
|
|
145
|
+
return (index.h("div", { class: "menu" }, index.h("li", { class: "menu-item" }, index.h("div", { class: "menu-left" }, index.h("span", { class: "menu-icon" }, index.h("yoo-icon", { name: "link" })), index.h("div", { class: "border" })), index.h("div", { class: "menu-right" }, index.h("div", { class: "menu-title" }, index$1.translate('LINKEDTO')), index.h("div", { class: "menu-content menu-requestor" }, index.h("yoo-form-dynamic", { class: "inline transparent", slides: [{ title: 'GENERAL', items: [field] }], data: { [field.name]: { value: this.todo.fieldValue, ...this.todo.fieldExtra } }, forceReadonly: true, onFormValidityChanged: (ev) => ev.stopPropagation(), suffix: ".value", animated: false, showRecap: false }))))));
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
148
|
renderTasks() {
|
|
@@ -153,6 +153,7 @@ const YooFormTodoSingleComponent = class {
|
|
|
153
153
|
var _a;
|
|
154
154
|
if (((_a = todo === null || todo === void 0 ? void 0 : todo.field) === null || _a === void 0 ? void 0 : _a.name) && (todo === null || todo === void 0 ? void 0 : todo.fieldValue)) {
|
|
155
155
|
const field = lodash.cloneDeep(todo.field);
|
|
156
|
+
field.title = field.description || field.title;
|
|
156
157
|
delete field.condition;
|
|
157
158
|
return (index.h("div", { class: "menu" }, index.h("li", { class: "menu-item" }, index.h("div", { class: "menu-left" }, index.h("yoo-tag", { icon: "link", size: "medium", color: "app-color" }), index.h("div", { class: "border" })), index.h("div", { class: "menu-right" }, index.h("div", { class: "menu-title" }, index$1.translate('LINKEDTO')), index.h("div", { class: "menu-content menu-requestor" }, index.h("yoo-form-dynamic", { class: "inline transparent", slides: [{ title: 'GENERAL', items: [field] }], data: { [field.name]: { value: todo.fieldValue, ...todo.fieldExtra } }, forceReadonly: true, onFormValidityChanged: (ev) => ev.stopPropagation(), suffix: ".value", animated: false, showRecap: false }))))));
|
|
158
159
|
}
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-19d6d7b7.js');
|
|
6
6
|
const index$1 = require('./index-fe1cda01.js');
|
|
7
|
+
const lodash = require('./lodash-597bda6d.js');
|
|
7
8
|
const missionsHelpers = require('./missions-helpers-faa243a4.js');
|
|
8
9
|
const commonHelpers = require('./common-helpers-74c853a1.js');
|
|
9
|
-
require('./lodash-597bda6d.js');
|
|
10
10
|
require('./_commonjsHelpers-94df2ea7.js');
|
|
11
11
|
require('./index-5bc624f4.js');
|
|
12
12
|
|
|
@@ -147,7 +147,9 @@ const YooMissionDetailsComponent = class {
|
|
|
147
147
|
renderLinkedTo() {
|
|
148
148
|
var _a, _b, _c;
|
|
149
149
|
if (((_b = (_a = this.mission.todo) === null || _a === void 0 ? void 0 : _a.field) === null || _b === void 0 ? void 0 : _b.name) && ((_c = this.mission.todo) === null || _c === void 0 ? void 0 : _c.fieldValue)) {
|
|
150
|
-
|
|
150
|
+
const field = lodash.cloneDeep(this.mission.todo.field);
|
|
151
|
+
field.title = this.mission.todo.field.description || this.mission.todo.field.title;
|
|
152
|
+
return (index.h(Menu, { icon: "link", text: index$1.translate('LINKEDTO') }, index.h("yoo-form-dynamic", { class: "inline", slides: [{ title: 'GENERAL', items: [field] }], data: { [field.name]: { value: this.mission.todo.fieldValue, ...this.mission.todo.fieldExtra } }, forceReadonly: true, suffix: ".value", animated: false, showRecap: false, onDataChanged: (ev) => ev.stopPropagation() })));
|
|
151
153
|
}
|
|
152
154
|
}
|
|
153
155
|
renderGeoFence() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { closeModal, disableKeyboardResize, enableKeyboardResize, isKeyboardResizeModeInactive, isNativeMobile, isPresent, isWeb, pipes, showActionSheet, showAlert, showModal, translate, translateMulti } from '@shared/utils';
|
|
2
2
|
import { Component, Element, forceUpdate, h, Host, Listen, Prop, State } from '@stencil/core';
|
|
3
|
-
import { remove } from 'lodash-es';
|
|
3
|
+
import { cloneDeep, remove } from 'lodash-es';
|
|
4
4
|
import { getAppContext } from '../../../utils/helpers/common-helpers';
|
|
5
5
|
export class YooFormTodoDialogComponent {
|
|
6
6
|
onInternalFieldFetchData(ev) {
|
|
@@ -128,6 +128,8 @@ export class YooFormTodoDialogComponent {
|
|
|
128
128
|
renderLinkedField() {
|
|
129
129
|
var _a, _b, _c;
|
|
130
130
|
if (((_b = (_a = this.todo) === null || _a === void 0 ? void 0 : _a.field) === null || _b === void 0 ? void 0 : _b.name) && ((_c = this.todo) === null || _c === void 0 ? void 0 : _c.fieldValue)) {
|
|
131
|
+
const field = cloneDeep(this.todo.field);
|
|
132
|
+
field.title = this.todo.field.description || this.todo.field.title;
|
|
131
133
|
return (h("div", { class: "menu" },
|
|
132
134
|
h("li", { class: "menu-item" },
|
|
133
135
|
h("div", { class: "menu-left" },
|
|
@@ -137,7 +139,7 @@ export class YooFormTodoDialogComponent {
|
|
|
137
139
|
h("div", { class: "menu-right" },
|
|
138
140
|
h("div", { class: "menu-title" }, translate('LINKEDTO')),
|
|
139
141
|
h("div", { class: "menu-content menu-requestor" },
|
|
140
|
-
h("yoo-form-dynamic", { class: "inline transparent", slides: [{ title: 'GENERAL', items: [
|
|
142
|
+
h("yoo-form-dynamic", { class: "inline transparent", slides: [{ title: 'GENERAL', items: [field] }], data: { [field.name]: { value: this.todo.fieldValue, ...this.todo.fieldExtra } }, forceReadonly: true, onFormValidityChanged: (ev) => ev.stopPropagation(), suffix: ".value", animated: false, showRecap: false }))))));
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
145
|
renderTasks() {
|
|
@@ -143,6 +143,7 @@ export class YooFormTodoSingleComponent {
|
|
|
143
143
|
var _a;
|
|
144
144
|
if (((_a = todo === null || todo === void 0 ? void 0 : todo.field) === null || _a === void 0 ? void 0 : _a.name) && (todo === null || todo === void 0 ? void 0 : todo.fieldValue)) {
|
|
145
145
|
const field = cloneDeep(todo.field);
|
|
146
|
+
field.title = field.description || field.title;
|
|
146
147
|
delete field.condition;
|
|
147
148
|
return (h("div", { class: "menu" },
|
|
148
149
|
h("li", { class: "menu-item" },
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { dateFormat, fromToday, getAsyncExtraData, getCssColor, getMissionPublicationDate, getSession, isDateAfter, isDateSame, isIonic, isPresent, isToday, isWeb, pipes, translate, translateMulti } from '@shared/utils';
|
|
2
2
|
import { Component, Element, Event, h, Host, Prop, State, Watch } from '@stencil/core';
|
|
3
|
+
import { cloneDeep } from 'lodash-es';
|
|
3
4
|
import { getMissionAddress, getMissionDueDate, getMissionPriority, getMissionTags, mapMissionToCardInboxEntry } from '../../../feature-operate/mission/helpers/missions-helpers';
|
|
4
5
|
import { getAppContext } from '../../../utils/helpers/common-helpers';
|
|
5
6
|
const Menu = ({ icon, text, extraClass, callback }, children, utils) => {
|
|
@@ -134,8 +135,10 @@ export class YooMissionDetailsComponent {
|
|
|
134
135
|
renderLinkedTo() {
|
|
135
136
|
var _a, _b, _c;
|
|
136
137
|
if (((_b = (_a = this.mission.todo) === null || _a === void 0 ? void 0 : _a.field) === null || _b === void 0 ? void 0 : _b.name) && ((_c = this.mission.todo) === null || _c === void 0 ? void 0 : _c.fieldValue)) {
|
|
138
|
+
const field = cloneDeep(this.mission.todo.field);
|
|
139
|
+
field.title = this.mission.todo.field.description || this.mission.todo.field.title;
|
|
137
140
|
return (h(Menu, { icon: "link", text: translate('LINKEDTO') },
|
|
138
|
-
h("yoo-form-dynamic", { class: "inline", slides: [{ title: 'GENERAL', items: [
|
|
141
|
+
h("yoo-form-dynamic", { class: "inline", slides: [{ title: 'GENERAL', items: [field] }], data: { [field.name]: { value: this.mission.todo.fieldValue, ...this.mission.todo.fieldExtra } }, forceReadonly: true, suffix: ".value", animated: false, showRecap: false, onDataChanged: (ev) => ev.stopPropagation() })));
|
|
139
142
|
}
|
|
140
143
|
}
|
|
141
144
|
renderGeoFence() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, f as forceUpdate, h, e as Host, g as getElement } from './index-3d00bad4.js';
|
|
2
2
|
import { d as isNativeMobile, dj as isKeyboardResizeModeInactive, ab as enableKeyboardResize, aa as disableKeyboardResize, I as closeModal, t as translate, n as showModal, ae as showAlert, o as isWeb, T as translateMulti, W as pipes, af as showActionSheet, aE as isPresent } from './index-3d479366.js';
|
|
3
|
-
import { Y as remove } from './lodash-a98c6524.js';
|
|
3
|
+
import { Y as remove, z as cloneDeep } from './lodash-a98c6524.js';
|
|
4
4
|
import { b as getAppContext } from './common-helpers-6ab3be6f.js';
|
|
5
5
|
import './_commonjsHelpers-f4d11124.js';
|
|
6
6
|
import './index-38144afa.js';
|
|
@@ -136,7 +136,9 @@ const YooFormTodoDialogComponent = class {
|
|
|
136
136
|
renderLinkedField() {
|
|
137
137
|
var _a, _b, _c;
|
|
138
138
|
if (((_b = (_a = this.todo) === null || _a === void 0 ? void 0 : _a.field) === null || _b === void 0 ? void 0 : _b.name) && ((_c = this.todo) === null || _c === void 0 ? void 0 : _c.fieldValue)) {
|
|
139
|
-
|
|
139
|
+
const field = cloneDeep(this.todo.field);
|
|
140
|
+
field.title = this.todo.field.description || this.todo.field.title;
|
|
141
|
+
return (h("div", { class: "menu" }, h("li", { class: "menu-item" }, h("div", { class: "menu-left" }, h("span", { class: "menu-icon" }, h("yoo-icon", { name: "link" })), h("div", { class: "border" })), h("div", { class: "menu-right" }, h("div", { class: "menu-title" }, translate('LINKEDTO')), h("div", { class: "menu-content menu-requestor" }, h("yoo-form-dynamic", { class: "inline transparent", slides: [{ title: 'GENERAL', items: [field] }], data: { [field.name]: { value: this.todo.fieldValue, ...this.todo.fieldExtra } }, forceReadonly: true, onFormValidityChanged: (ev) => ev.stopPropagation(), suffix: ".value", animated: false, showRecap: false }))))));
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
144
|
renderTasks() {
|
|
@@ -149,6 +149,7 @@ const YooFormTodoSingleComponent = class {
|
|
|
149
149
|
var _a;
|
|
150
150
|
if (((_a = todo === null || todo === void 0 ? void 0 : todo.field) === null || _a === void 0 ? void 0 : _a.name) && (todo === null || todo === void 0 ? void 0 : todo.fieldValue)) {
|
|
151
151
|
const field = cloneDeep(todo.field);
|
|
152
|
+
field.title = field.description || field.title;
|
|
152
153
|
delete field.condition;
|
|
153
154
|
return (h("div", { class: "menu" }, h("li", { class: "menu-item" }, h("div", { class: "menu-left" }, h("yoo-tag", { icon: "link", size: "medium", color: "app-color" }), h("div", { class: "border" })), h("div", { class: "menu-right" }, h("div", { class: "menu-title" }, translate('LINKEDTO')), h("div", { class: "menu-content menu-requestor" }, h("yoo-form-dynamic", { class: "inline transparent", slides: [{ title: 'GENERAL', items: [field] }], data: { [field.name]: { value: todo.fieldValue, ...todo.fieldExtra } }, forceReadonly: true, onFormValidityChanged: (ev) => ev.stopPropagation(), suffix: ".value", animated: false, showRecap: false }))))));
|
|
154
155
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, r as registerInstance, i as createEvent, e as Host, g as getElement } from './index-3d00bad4.js';
|
|
2
2
|
import { _ as getSession, E as getAsyncExtraData, o as isWeb, t as translate, ch as isIonic, aE as isPresent, y as getCssColor, cA as isToday, cB as fromToday, Z as dateFormat, cC as getMissionPublicationDate, cD as isDateSame, D as isDateAfter, T as translateMulti, W as pipes } from './index-3d479366.js';
|
|
3
|
+
import { z as cloneDeep } from './lodash-a98c6524.js';
|
|
3
4
|
import { g as getMissionAddress, a as getMissionPriority, b as getMissionDueDate, m as mapMissionToCardInboxEntry, c as getMissionTags } from './missions-helpers-64224de7.js';
|
|
4
5
|
import { b as getAppContext } from './common-helpers-6ab3be6f.js';
|
|
5
|
-
import './lodash-a98c6524.js';
|
|
6
6
|
import './_commonjsHelpers-f4d11124.js';
|
|
7
7
|
import './index-38144afa.js';
|
|
8
8
|
|
|
@@ -143,7 +143,9 @@ const YooMissionDetailsComponent = class {
|
|
|
143
143
|
renderLinkedTo() {
|
|
144
144
|
var _a, _b, _c;
|
|
145
145
|
if (((_b = (_a = this.mission.todo) === null || _a === void 0 ? void 0 : _a.field) === null || _b === void 0 ? void 0 : _b.name) && ((_c = this.mission.todo) === null || _c === void 0 ? void 0 : _c.fieldValue)) {
|
|
146
|
-
|
|
146
|
+
const field = cloneDeep(this.mission.todo.field);
|
|
147
|
+
field.title = this.mission.todo.field.description || this.mission.todo.field.title;
|
|
148
|
+
return (h(Menu, { icon: "link", text: translate('LINKEDTO') }, h("yoo-form-dynamic", { class: "inline", slides: [{ title: 'GENERAL', items: [field] }], data: { [field.name]: { value: this.mission.todo.fieldValue, ...this.mission.todo.fieldExtra } }, forceReadonly: true, suffix: ".value", animated: false, showRecap: false, onDataChanged: (ev) => ev.stopPropagation() })));
|
|
147
149
|
}
|
|
148
150
|
}
|
|
149
151
|
renderGeoFence() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, f as forceUpdate, h, e as Host, g as getElement } from './index-3d00bad4.js';
|
|
2
2
|
import { d as isNativeMobile, dj as isKeyboardResizeModeInactive, ab as enableKeyboardResize, aa as disableKeyboardResize, I as closeModal, t as translate, n as showModal, ae as showAlert, o as isWeb, T as translateMulti, W as pipes, af as showActionSheet, aE as isPresent } from './index-3d479366.js';
|
|
3
|
-
import { Y as remove } from './lodash-a98c6524.js';
|
|
3
|
+
import { Y as remove, z as cloneDeep } from './lodash-a98c6524.js';
|
|
4
4
|
import { b as getAppContext } from './common-helpers-6ab3be6f.js';
|
|
5
5
|
import './_commonjsHelpers-f4d11124.js';
|
|
6
6
|
import './index-38144afa.js';
|
|
@@ -136,7 +136,9 @@ const YooFormTodoDialogComponent = class {
|
|
|
136
136
|
renderLinkedField() {
|
|
137
137
|
var _a, _b, _c;
|
|
138
138
|
if (((_b = (_a = this.todo) === null || _a === void 0 ? void 0 : _a.field) === null || _b === void 0 ? void 0 : _b.name) && ((_c = this.todo) === null || _c === void 0 ? void 0 : _c.fieldValue)) {
|
|
139
|
-
|
|
139
|
+
const field = cloneDeep(this.todo.field);
|
|
140
|
+
field.title = this.todo.field.description || this.todo.field.title;
|
|
141
|
+
return (h("div", { class: "menu" }, h("li", { class: "menu-item" }, h("div", { class: "menu-left" }, h("span", { class: "menu-icon" }, h("yoo-icon", { name: "link" })), h("div", { class: "border" })), h("div", { class: "menu-right" }, h("div", { class: "menu-title" }, translate('LINKEDTO')), h("div", { class: "menu-content menu-requestor" }, h("yoo-form-dynamic", { class: "inline transparent", slides: [{ title: 'GENERAL', items: [field] }], data: { [field.name]: { value: this.todo.fieldValue, ...this.todo.fieldExtra } }, forceReadonly: true, onFormValidityChanged: (ev) => ev.stopPropagation(), suffix: ".value", animated: false, showRecap: false }))))));
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
144
|
renderTasks() {
|
|
@@ -149,6 +149,7 @@ const YooFormTodoSingleComponent = class {
|
|
|
149
149
|
var _a;
|
|
150
150
|
if (((_a = todo === null || todo === void 0 ? void 0 : todo.field) === null || _a === void 0 ? void 0 : _a.name) && (todo === null || todo === void 0 ? void 0 : todo.fieldValue)) {
|
|
151
151
|
const field = cloneDeep(todo.field);
|
|
152
|
+
field.title = field.description || field.title;
|
|
152
153
|
delete field.condition;
|
|
153
154
|
return (h("div", { class: "menu" }, h("li", { class: "menu-item" }, h("div", { class: "menu-left" }, h("yoo-tag", { icon: "link", size: "medium", color: "app-color" }), h("div", { class: "border" })), h("div", { class: "menu-right" }, h("div", { class: "menu-title" }, translate('LINKEDTO')), h("div", { class: "menu-content menu-requestor" }, h("yoo-form-dynamic", { class: "inline transparent", slides: [{ title: 'GENERAL', items: [field] }], data: { [field.name]: { value: todo.fieldValue, ...todo.fieldExtra } }, forceReadonly: true, onFormValidityChanged: (ev) => ev.stopPropagation(), suffix: ".value", animated: false, showRecap: false }))))));
|
|
154
155
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, r as registerInstance, i as createEvent, e as Host, g as getElement } from './index-3d00bad4.js';
|
|
2
2
|
import { _ as getSession, E as getAsyncExtraData, o as isWeb, t as translate, ch as isIonic, aE as isPresent, y as getCssColor, cA as isToday, cB as fromToday, Z as dateFormat, cC as getMissionPublicationDate, cD as isDateSame, D as isDateAfter, T as translateMulti, W as pipes } from './index-3d479366.js';
|
|
3
|
+
import { z as cloneDeep } from './lodash-a98c6524.js';
|
|
3
4
|
import { g as getMissionAddress, a as getMissionPriority, b as getMissionDueDate, m as mapMissionToCardInboxEntry, c as getMissionTags } from './missions-helpers-64224de7.js';
|
|
4
5
|
import { b as getAppContext } from './common-helpers-6ab3be6f.js';
|
|
5
|
-
import './lodash-a98c6524.js';
|
|
6
6
|
import './_commonjsHelpers-f4d11124.js';
|
|
7
7
|
import './index-38144afa.js';
|
|
8
8
|
|
|
@@ -143,7 +143,9 @@ const YooMissionDetailsComponent = class {
|
|
|
143
143
|
renderLinkedTo() {
|
|
144
144
|
var _a, _b, _c;
|
|
145
145
|
if (((_b = (_a = this.mission.todo) === null || _a === void 0 ? void 0 : _a.field) === null || _b === void 0 ? void 0 : _b.name) && ((_c = this.mission.todo) === null || _c === void 0 ? void 0 : _c.fieldValue)) {
|
|
146
|
-
|
|
146
|
+
const field = cloneDeep(this.mission.todo.field);
|
|
147
|
+
field.title = this.mission.todo.field.description || this.mission.todo.field.title;
|
|
148
|
+
return (h(Menu, { icon: "link", text: translate('LINKEDTO') }, h("yoo-form-dynamic", { class: "inline", slides: [{ title: 'GENERAL', items: [field] }], data: { [field.name]: { value: this.mission.todo.fieldValue, ...this.mission.todo.fieldExtra } }, forceReadonly: true, suffix: ".value", animated: false, showRecap: false, onDataChanged: (ev) => ev.stopPropagation() })));
|
|
147
149
|
}
|
|
148
150
|
}
|
|
149
151
|
renderGeoFence() {
|