@yoobic/yobi 8.5.24 → 8.5.26
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 +12 -15
- package/dist/collection/components/form/form-todo-dialog/form-todo-dialog.js +12 -15
- package/dist/design-system/yoo-form-todo-dialog.entry.js +13 -16
- package/dist/esm/yoo-form-todo-dialog.entry.js +13 -16
- package/dist/types/components/form/form-todo-dialog/form-todo-dialog.d.ts +1 -0
- package/package.json +1 -1
|
@@ -33,6 +33,16 @@ const YooFormTodoDialogComponent = class {
|
|
|
33
33
|
onEnterPressed() {
|
|
34
34
|
this.onAddTask(true);
|
|
35
35
|
}
|
|
36
|
+
createTask(text) {
|
|
37
|
+
return {
|
|
38
|
+
_id: index$1.getUUID(),
|
|
39
|
+
text: { value: text },
|
|
40
|
+
finished: { value: null },
|
|
41
|
+
isphotorequired: { value: this.allPhotosRequired === true },
|
|
42
|
+
hasphoto: { value: true },
|
|
43
|
+
allowLibrary: { value: this.allowLibrary === true }
|
|
44
|
+
};
|
|
45
|
+
}
|
|
36
46
|
componentWillLoad() {
|
|
37
47
|
this.todo = this.todo || {};
|
|
38
48
|
if (index$1.isNativeMobile()) {
|
|
@@ -67,14 +77,7 @@ const YooFormTodoDialogComponent = class {
|
|
|
67
77
|
}
|
|
68
78
|
if (this.currentTask) {
|
|
69
79
|
this.todo.values = this.todo.values || [];
|
|
70
|
-
this.todo.values.push(
|
|
71
|
-
_id: index$1.getUUID(),
|
|
72
|
-
text: { value: this.currentTask },
|
|
73
|
-
finished: { value: null },
|
|
74
|
-
isphotorequired: { value: this.allPhotosRequired === true },
|
|
75
|
-
hasphoto: { value: true },
|
|
76
|
-
allowLibrary: { value: this.allowLibrary === true }
|
|
77
|
-
});
|
|
80
|
+
this.todo.values.push(this.createTask(this.currentTask));
|
|
78
81
|
this.currentTask = '';
|
|
79
82
|
setTimeout(() => this.formInputTaskEditEl.clear(), 200);
|
|
80
83
|
index.forceUpdate(this);
|
|
@@ -122,13 +125,7 @@ const YooFormTodoDialogComponent = class {
|
|
|
122
125
|
onSelect(ev) {
|
|
123
126
|
ev.stopPropagation();
|
|
124
127
|
if (ev.detail && ev.detail.length > 0) {
|
|
125
|
-
const tasks = ev.detail.map((r) => (
|
|
126
|
-
text: { value: r._id },
|
|
127
|
-
finished: { value: null },
|
|
128
|
-
isphotorequired: { value: this.allPhotosRequired === true },
|
|
129
|
-
hasphoto: { value: true },
|
|
130
|
-
allowLibrary: { value: this.allowLibrary === true }
|
|
131
|
-
}));
|
|
128
|
+
const tasks = ev.detail.map((r) => this.createTask(r._id));
|
|
132
129
|
this.todo.values = this.todo.values || [];
|
|
133
130
|
this.todo.values = [...this.todo.values, ...tasks];
|
|
134
131
|
setTimeout(() => {
|
|
@@ -20,6 +20,16 @@ export class YooFormTodoDialogComponent {
|
|
|
20
20
|
onEnterPressed() {
|
|
21
21
|
this.onAddTask(true);
|
|
22
22
|
}
|
|
23
|
+
createTask(text) {
|
|
24
|
+
return {
|
|
25
|
+
_id: getUUID(),
|
|
26
|
+
text: { value: text },
|
|
27
|
+
finished: { value: null },
|
|
28
|
+
isphotorequired: { value: this.allPhotosRequired === true },
|
|
29
|
+
hasphoto: { value: true },
|
|
30
|
+
allowLibrary: { value: this.allowLibrary === true }
|
|
31
|
+
};
|
|
32
|
+
}
|
|
23
33
|
componentWillLoad() {
|
|
24
34
|
this.todo = this.todo || {};
|
|
25
35
|
if (isNativeMobile()) {
|
|
@@ -54,14 +64,7 @@ export class YooFormTodoDialogComponent {
|
|
|
54
64
|
}
|
|
55
65
|
if (this.currentTask) {
|
|
56
66
|
this.todo.values = this.todo.values || [];
|
|
57
|
-
this.todo.values.push(
|
|
58
|
-
_id: getUUID(),
|
|
59
|
-
text: { value: this.currentTask },
|
|
60
|
-
finished: { value: null },
|
|
61
|
-
isphotorequired: { value: this.allPhotosRequired === true },
|
|
62
|
-
hasphoto: { value: true },
|
|
63
|
-
allowLibrary: { value: this.allowLibrary === true }
|
|
64
|
-
});
|
|
67
|
+
this.todo.values.push(this.createTask(this.currentTask));
|
|
65
68
|
this.currentTask = '';
|
|
66
69
|
setTimeout(() => this.formInputTaskEditEl.clear(), 200);
|
|
67
70
|
forceUpdate(this);
|
|
@@ -109,13 +112,7 @@ export class YooFormTodoDialogComponent {
|
|
|
109
112
|
onSelect(ev) {
|
|
110
113
|
ev.stopPropagation();
|
|
111
114
|
if (ev.detail && ev.detail.length > 0) {
|
|
112
|
-
const tasks = ev.detail.map((r) => (
|
|
113
|
-
text: { value: r._id },
|
|
114
|
-
finished: { value: null },
|
|
115
|
-
isphotorequired: { value: this.allPhotosRequired === true },
|
|
116
|
-
hasphoto: { value: true },
|
|
117
|
-
allowLibrary: { value: this.allowLibrary === true }
|
|
118
|
-
}));
|
|
115
|
+
const tasks = ev.detail.map((r) => this.createTask(r._id));
|
|
119
116
|
this.todo.values = this.todo.values || [];
|
|
120
117
|
this.todo.values = [...this.todo.values, ...tasks];
|
|
121
118
|
setTimeout(() => {
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, f as forceUpdate, h, e as Host, g as getElement
|
|
|
2
2
|
import './index-ac07bc09.js';
|
|
3
3
|
import { a0 as remove, c as cloneDeep } from './lodash-24d266e4.js';
|
|
4
4
|
import { g as getAppContext } from './common-helpers-a7cabb04.js';
|
|
5
|
-
import { o as isNativeMobile, dE as isKeyboardResizeModeInactive, ag as enableKeyboardResize, af as disableKeyboardResize, w as closeModal,
|
|
5
|
+
import { aU as getUUID, o as isNativeMobile, dE as isKeyboardResizeModeInactive, ag as enableKeyboardResize, af as disableKeyboardResize, w as closeModal, t as translate, G as showModal, aj as showAlert, H as isWeb, a3 as translateMulti, av as pipes, co as showActionSheet, aM as isPresent } from './index-d3b47baf.js';
|
|
6
6
|
import './index-4bbbf966.js';
|
|
7
7
|
import './_commonjsHelpers-f4d11124.js';
|
|
8
8
|
|
|
@@ -29,6 +29,16 @@ const YooFormTodoDialogComponent = class {
|
|
|
29
29
|
onEnterPressed() {
|
|
30
30
|
this.onAddTask(true);
|
|
31
31
|
}
|
|
32
|
+
createTask(text) {
|
|
33
|
+
return {
|
|
34
|
+
_id: getUUID(),
|
|
35
|
+
text: { value: text },
|
|
36
|
+
finished: { value: null },
|
|
37
|
+
isphotorequired: { value: this.allPhotosRequired === true },
|
|
38
|
+
hasphoto: { value: true },
|
|
39
|
+
allowLibrary: { value: this.allowLibrary === true }
|
|
40
|
+
};
|
|
41
|
+
}
|
|
32
42
|
componentWillLoad() {
|
|
33
43
|
this.todo = this.todo || {};
|
|
34
44
|
if (isNativeMobile()) {
|
|
@@ -63,14 +73,7 @@ const YooFormTodoDialogComponent = class {
|
|
|
63
73
|
}
|
|
64
74
|
if (this.currentTask) {
|
|
65
75
|
this.todo.values = this.todo.values || [];
|
|
66
|
-
this.todo.values.push(
|
|
67
|
-
_id: getUUID(),
|
|
68
|
-
text: { value: this.currentTask },
|
|
69
|
-
finished: { value: null },
|
|
70
|
-
isphotorequired: { value: this.allPhotosRequired === true },
|
|
71
|
-
hasphoto: { value: true },
|
|
72
|
-
allowLibrary: { value: this.allowLibrary === true }
|
|
73
|
-
});
|
|
76
|
+
this.todo.values.push(this.createTask(this.currentTask));
|
|
74
77
|
this.currentTask = '';
|
|
75
78
|
setTimeout(() => this.formInputTaskEditEl.clear(), 200);
|
|
76
79
|
forceUpdate(this);
|
|
@@ -118,13 +121,7 @@ const YooFormTodoDialogComponent = class {
|
|
|
118
121
|
onSelect(ev) {
|
|
119
122
|
ev.stopPropagation();
|
|
120
123
|
if (ev.detail && ev.detail.length > 0) {
|
|
121
|
-
const tasks = ev.detail.map((r) => (
|
|
122
|
-
text: { value: r._id },
|
|
123
|
-
finished: { value: null },
|
|
124
|
-
isphotorequired: { value: this.allPhotosRequired === true },
|
|
125
|
-
hasphoto: { value: true },
|
|
126
|
-
allowLibrary: { value: this.allowLibrary === true }
|
|
127
|
-
}));
|
|
124
|
+
const tasks = ev.detail.map((r) => this.createTask(r._id));
|
|
128
125
|
this.todo.values = this.todo.values || [];
|
|
129
126
|
this.todo.values = [...this.todo.values, ...tasks];
|
|
130
127
|
setTimeout(() => {
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, f as forceUpdate, h, e as Host, g as getElement
|
|
|
2
2
|
import './index-ac07bc09.js';
|
|
3
3
|
import { a0 as remove, c as cloneDeep } from './lodash-24d266e4.js';
|
|
4
4
|
import { g as getAppContext } from './common-helpers-a7cabb04.js';
|
|
5
|
-
import { o as isNativeMobile, dE as isKeyboardResizeModeInactive, ag as enableKeyboardResize, af as disableKeyboardResize, w as closeModal,
|
|
5
|
+
import { aU as getUUID, o as isNativeMobile, dE as isKeyboardResizeModeInactive, ag as enableKeyboardResize, af as disableKeyboardResize, w as closeModal, t as translate, G as showModal, aj as showAlert, H as isWeb, a3 as translateMulti, av as pipes, co as showActionSheet, aM as isPresent } from './index-d3b47baf.js';
|
|
6
6
|
import './index-4bbbf966.js';
|
|
7
7
|
import './_commonjsHelpers-f4d11124.js';
|
|
8
8
|
|
|
@@ -29,6 +29,16 @@ const YooFormTodoDialogComponent = class {
|
|
|
29
29
|
onEnterPressed() {
|
|
30
30
|
this.onAddTask(true);
|
|
31
31
|
}
|
|
32
|
+
createTask(text) {
|
|
33
|
+
return {
|
|
34
|
+
_id: getUUID(),
|
|
35
|
+
text: { value: text },
|
|
36
|
+
finished: { value: null },
|
|
37
|
+
isphotorequired: { value: this.allPhotosRequired === true },
|
|
38
|
+
hasphoto: { value: true },
|
|
39
|
+
allowLibrary: { value: this.allowLibrary === true }
|
|
40
|
+
};
|
|
41
|
+
}
|
|
32
42
|
componentWillLoad() {
|
|
33
43
|
this.todo = this.todo || {};
|
|
34
44
|
if (isNativeMobile()) {
|
|
@@ -63,14 +73,7 @@ const YooFormTodoDialogComponent = class {
|
|
|
63
73
|
}
|
|
64
74
|
if (this.currentTask) {
|
|
65
75
|
this.todo.values = this.todo.values || [];
|
|
66
|
-
this.todo.values.push(
|
|
67
|
-
_id: getUUID(),
|
|
68
|
-
text: { value: this.currentTask },
|
|
69
|
-
finished: { value: null },
|
|
70
|
-
isphotorequired: { value: this.allPhotosRequired === true },
|
|
71
|
-
hasphoto: { value: true },
|
|
72
|
-
allowLibrary: { value: this.allowLibrary === true }
|
|
73
|
-
});
|
|
76
|
+
this.todo.values.push(this.createTask(this.currentTask));
|
|
74
77
|
this.currentTask = '';
|
|
75
78
|
setTimeout(() => this.formInputTaskEditEl.clear(), 200);
|
|
76
79
|
forceUpdate(this);
|
|
@@ -118,13 +121,7 @@ const YooFormTodoDialogComponent = class {
|
|
|
118
121
|
onSelect(ev) {
|
|
119
122
|
ev.stopPropagation();
|
|
120
123
|
if (ev.detail && ev.detail.length > 0) {
|
|
121
|
-
const tasks = ev.detail.map((r) => (
|
|
122
|
-
text: { value: r._id },
|
|
123
|
-
finished: { value: null },
|
|
124
|
-
isphotorequired: { value: this.allPhotosRequired === true },
|
|
125
|
-
hasphoto: { value: true },
|
|
126
|
-
allowLibrary: { value: this.allowLibrary === true }
|
|
127
|
-
}));
|
|
124
|
+
const tasks = ev.detail.map((r) => this.createTask(r._id));
|
|
128
125
|
this.todo.values = this.todo.values || [];
|
|
129
126
|
this.todo.values = [...this.todo.values, ...tasks];
|
|
130
127
|
setTimeout(() => {
|
|
@@ -19,6 +19,7 @@ export declare class YooFormTodoDialogComponent {
|
|
|
19
19
|
onDataChanged(ev: CustomEvent<any>): void;
|
|
20
20
|
onInputChanged(ev: CustomEvent<string>): void;
|
|
21
21
|
onEnterPressed(): void;
|
|
22
|
+
private createTask;
|
|
22
23
|
componentWillLoad(): void;
|
|
23
24
|
disconnectedCallback(): void;
|
|
24
25
|
onValidityChanged(ev: CustomEvent<boolean>): void;
|