@voplus/morpho-workspace 6.1.25 → 6.1.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/es/data/work-schedule/WorkScheduleStore.d.ts +7 -1
- package/es/data/work-schedule/WorkScheduleStore.js +12 -4
- package/es/data/work-schedule/WorkScheduleStore.js.map +1 -1
- package/es/modules/tasks/components/TaskOverview/index.d.ts +1 -4
- package/es/modules/tasks/components/TaskOverview/index.js +15 -19
- package/es/modules/tasks/components/TaskOverview/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskListPage/index.js +35 -24
- package/es/modules/tasks/pages/TaskListPage/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskListPage/state.d.ts +6 -8
- package/es/modules/tasks/pages/TaskListPage/state.js +55 -72
- package/es/modules/tasks/pages/TaskListPage/state.js.map +1 -1
- package/es/modules/work/components/WorkOverview/index.d.ts +1 -4
- package/es/modules/work/components/WorkOverview/index.js +15 -21
- package/es/modules/work/components/WorkOverview/index.js.map +1 -1
- package/es/modules/work/components/WorkPanel/index.js +13 -14
- package/es/modules/work/components/WorkPanel/index.js.map +1 -1
- package/es/modules/work/pages/WorkListPage2/index.js +40 -29
- package/es/modules/work/pages/WorkListPage2/index.js.map +1 -1
- package/es/modules/work/pages/WorkListPage2/state.d.ts +5 -6
- package/es/modules/work/pages/WorkListPage2/state.js +68 -70
- package/es/modules/work/pages/WorkListPage2/state.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleOverview/index.d.ts +1 -4
- package/es/modules/work/work-schedule/components/WorkScheduleOverview/index.js +15 -17
- package/es/modules/work/work-schedule/components/WorkScheduleOverview/index.js.map +1 -1
- package/es/modules/work/work-schedule/pages/WorkScheduleListPage/index.js +34 -23
- package/es/modules/work/work-schedule/pages/WorkScheduleListPage/index.js.map +1 -1
- package/es/modules/work/work-schedule/pages/WorkScheduleListPage/state.d.ts +7 -6
- package/es/modules/work/work-schedule/pages/WorkScheduleListPage/state.js +89 -73
- package/es/modules/work/work-schedule/pages/WorkScheduleListPage/state.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/tasks/components/TaskOverview/state.d.ts +0 -8
- package/es/modules/tasks/components/TaskOverview/state.js +0 -65
- package/es/modules/tasks/components/TaskOverview/state.js.map +0 -1
- package/es/modules/work/components/WorkOverview/state.d.ts +0 -8
- package/es/modules/work/components/WorkOverview/state.js +0 -65
- package/es/modules/work/components/WorkOverview/state.js.map +0 -1
- package/es/modules/work/work-schedule/components/WorkScheduleOverview/state.d.ts +0 -8
- package/es/modules/work/work-schedule/components/WorkScheduleOverview/state.js +0 -63
- package/es/modules/work/work-schedule/components/WorkScheduleOverview/state.js.map +0 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { action, makeObservable, observable,
|
2
|
+
import { action, makeObservable, observable, toJS } from "mobx";
|
3
3
|
import dayjs from "dayjs";
|
4
4
|
export class State {
|
5
5
|
constructor(contactId) {
|
@@ -16,90 +16,106 @@ export class State {
|
|
16
16
|
writable: true,
|
17
17
|
value: void 0
|
18
18
|
});
|
19
|
-
Object.defineProperty(this, "
|
19
|
+
Object.defineProperty(this, "listFilterOptions", {
|
20
|
+
enumerable: true,
|
21
|
+
configurable: true,
|
22
|
+
writable: true,
|
23
|
+
value: void 0
|
24
|
+
});
|
25
|
+
Object.defineProperty(this, "defaultFilter", {
|
20
26
|
enumerable: true,
|
21
27
|
configurable: true,
|
22
28
|
writable: true,
|
23
29
|
value: []
|
24
30
|
});
|
25
|
-
Object.defineProperty(this, "
|
31
|
+
Object.defineProperty(this, "workCreatedFilter", {
|
32
|
+
enumerable: true,
|
33
|
+
configurable: true,
|
34
|
+
writable: true,
|
35
|
+
value: void 0
|
36
|
+
});
|
37
|
+
Object.defineProperty(this, "unscheduledFilter", {
|
26
38
|
enumerable: true,
|
27
39
|
configurable: true,
|
28
40
|
writable: true,
|
29
41
|
value: void 0
|
30
42
|
});
|
43
|
+
Object.defineProperty(this, "overdueFilter", {
|
44
|
+
enumerable: true,
|
45
|
+
configurable: true,
|
46
|
+
writable: true,
|
47
|
+
value: {
|
48
|
+
c: "ScheduleDate",
|
49
|
+
o: "<=",
|
50
|
+
l: "And",
|
51
|
+
v1: dayjs().format("YYYY-MM-DD"),
|
52
|
+
}
|
53
|
+
});
|
31
54
|
makeObservable(this);
|
55
|
+
if (this.contactId)
|
56
|
+
this.defaultFilter = [{ c: "Contact", o: "=", l: "And", v1: this.contactId }];
|
57
|
+
this.workCreatedFilter = { c: "Work", o: "!=", v1: "null", l: "And" };
|
58
|
+
this.unscheduledFilter = [
|
59
|
+
{ c: "ScheduleDate", o: "is null", l: "And", v1: "" },
|
60
|
+
{ c: "Work", o: "=", v1: "null", l: "And" },
|
61
|
+
];
|
62
|
+
const week = this.getDateF("week");
|
63
|
+
const month = this.getDateF("month");
|
64
|
+
this.listFilterOptions = [
|
65
|
+
{ name: "All", filters: { Filters: this.defaultFilter } },
|
66
|
+
{
|
67
|
+
name: "WorkCreated",
|
68
|
+
filters: { Filters: [...this.defaultFilter, this.workCreatedFilter] },
|
69
|
+
},
|
70
|
+
{
|
71
|
+
name: "Unscheduled",
|
72
|
+
filters: { Filters: this.defaultFilter.concat(this.unscheduledFilter) },
|
73
|
+
},
|
74
|
+
{ name: "Overdue", filters: { Filters: [...this.defaultFilter, this.overdueFilter] } },
|
75
|
+
{ name: "ThisWeek", filters: { Filters: [...this.defaultFilter, week] } },
|
76
|
+
{ name: "ThisMonth", filters: { Filters: [...this.defaultFilter, month] } },
|
77
|
+
];
|
32
78
|
this.onFilterOptions();
|
33
79
|
}
|
34
80
|
onFilterOptions(options) {
|
35
81
|
var _a, _b;
|
36
82
|
this.filerOptions = options !== null && options !== void 0 ? options : [];
|
37
|
-
if (this.
|
38
|
-
(_b = this.filerOptions) === null || _b === void 0 ? void 0 : _b.push(
|
83
|
+
if (this.defaultFilter && !((_a = this.filerOptions) === null || _a === void 0 ? void 0 : _a.some((item) => item.c === "Contact"))) {
|
84
|
+
(_b = this.filerOptions) === null || _b === void 0 ? void 0 : _b.push(...this.defaultFilter);
|
39
85
|
}
|
40
86
|
}
|
41
|
-
onDueItemClick(d) {
|
42
|
-
this.dueActives = d;
|
43
|
-
if (this.status.includes("All"))
|
44
|
-
this.status = [];
|
45
|
-
this.onFilterOptions(this.statusFilerOptions.concat(this.dateFilerOptions));
|
46
|
-
}
|
47
87
|
onOverviewItemClick(s) {
|
48
|
-
|
49
|
-
if (this.status.includes("All"))
|
50
|
-
this.dueActives = undefined;
|
51
|
-
this.onFilterOptions(this.statusFilerOptions.concat(this.dateFilerOptions));
|
52
|
-
}
|
53
|
-
onFilterLabel(s) {
|
54
|
-
if (s) {
|
55
|
-
if (s === "overdue" || s === "week" || s === "month") {
|
56
|
-
this.dueActives = undefined;
|
57
|
-
}
|
58
|
-
let status = toJS(this.status);
|
59
|
-
status = status === null || status === void 0 ? void 0 : status.filter((i) => i !== s);
|
60
|
-
this.onOverviewItemClick(status);
|
61
|
-
}
|
62
|
-
else {
|
63
|
-
this.status = [];
|
64
|
-
this.dueActives = undefined;
|
88
|
+
if (s === null || s === void 0 ? void 0 : s.includes("All")) {
|
65
89
|
this.onFilterOptions();
|
66
90
|
}
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
if (status.includes("WorkCreated")) {
|
74
|
-
f.push({ c: "Work", o: "!=", v1: "null", l: "And" });
|
75
|
-
}
|
76
|
-
if (status.includes("Unscheduled")) {
|
77
|
-
f = f.concat([
|
78
|
-
{ c: "ScheduleDate", o: "is null", l: "And", v1: "" },
|
79
|
-
{ c: "Work", o: "=", v1: "null", l: "And" },
|
80
|
-
]);
|
81
|
-
}
|
82
|
-
return f;
|
83
|
-
}
|
84
|
-
get dateFilerOptions() {
|
85
|
-
let f = [];
|
86
|
-
if (this.status.includes("All"))
|
87
|
-
return f;
|
88
|
-
if (this.dueActives) {
|
89
|
-
if (this.dueActives === "overdue") {
|
90
|
-
f = [{ c: "DueDate", o: "<=", l: "And", v1: dayjs().format("YYYY-MM-DD") }];
|
91
|
+
else {
|
92
|
+
let status = toJS(s);
|
93
|
+
let f = [];
|
94
|
+
if (s === null || s === void 0 ? void 0 : s.includes("Overdue")) {
|
95
|
+
status = status === null || status === void 0 ? void 0 : status.filter((s) => s !== "Overdue");
|
96
|
+
f.push(this.overdueFilter);
|
91
97
|
}
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
.format("YYYY-MM-DD HH:mm:ss");
|
96
|
-
const v2 = dayjs()
|
97
|
-
.endOf(this.dueActives)
|
98
|
-
.format("YYYY-MM-DD HH:mm:ss");
|
99
|
-
f = [{ c: "DueDate", o: "between", l: "And", v1: v1, v2: v2 }];
|
98
|
+
if (s === null || s === void 0 ? void 0 : s.includes("ThisWeek")) {
|
99
|
+
status = status === null || status === void 0 ? void 0 : status.filter((s) => s !== "ThisWeek");
|
100
|
+
f.push(this.getDateF("week"));
|
100
101
|
}
|
102
|
+
if (s === null || s === void 0 ? void 0 : s.includes("ThisMonth")) {
|
103
|
+
status = status === null || status === void 0 ? void 0 : status.filter((s) => s !== "ThisMonth");
|
104
|
+
f.push(this.getDateF("month"));
|
105
|
+
}
|
106
|
+
if (s === null || s === void 0 ? void 0 : s.includes("WorkCreated")) {
|
107
|
+
f.push(this.workCreatedFilter);
|
108
|
+
}
|
109
|
+
if (s === null || s === void 0 ? void 0 : s.includes("Unscheduled")) {
|
110
|
+
f = f.concat(this.unscheduledFilter);
|
111
|
+
}
|
112
|
+
this.onFilterOptions(f);
|
101
113
|
}
|
102
|
-
|
114
|
+
}
|
115
|
+
getDateF(date) {
|
116
|
+
const v1 = dayjs().startOf(date).format("YYYY-MM-DD HH:mm:ss");
|
117
|
+
const v2 = dayjs().endOf(date).format("YYYY-MM-DD HH:mm:ss");
|
118
|
+
return { c: "ScheduleDate", o: "between", l: "And", v1: v1, v2: v2 };
|
103
119
|
}
|
104
120
|
}
|
105
121
|
__decorate([
|
@@ -107,26 +123,26 @@ __decorate([
|
|
107
123
|
], State.prototype, "filerOptions", void 0);
|
108
124
|
__decorate([
|
109
125
|
observable
|
110
|
-
], State.prototype, "
|
126
|
+
], State.prototype, "listFilterOptions", void 0);
|
111
127
|
__decorate([
|
112
128
|
observable
|
113
|
-
], State.prototype, "
|
129
|
+
], State.prototype, "defaultFilter", void 0);
|
114
130
|
__decorate([
|
115
|
-
|
116
|
-
], State.prototype, "
|
131
|
+
observable
|
132
|
+
], State.prototype, "workCreatedFilter", void 0);
|
133
|
+
__decorate([
|
134
|
+
observable
|
135
|
+
], State.prototype, "unscheduledFilter", void 0);
|
136
|
+
__decorate([
|
137
|
+
observable
|
138
|
+
], State.prototype, "overdueFilter", void 0);
|
117
139
|
__decorate([
|
118
140
|
action
|
119
|
-
], State.prototype, "
|
141
|
+
], State.prototype, "onFilterOptions", null);
|
120
142
|
__decorate([
|
121
143
|
action
|
122
144
|
], State.prototype, "onOverviewItemClick", null);
|
123
145
|
__decorate([
|
124
146
|
action
|
125
|
-
], State.prototype, "
|
126
|
-
__decorate([
|
127
|
-
computed
|
128
|
-
], State.prototype, "statusFilerOptions", null);
|
129
|
-
__decorate([
|
130
|
-
computed
|
131
|
-
], State.prototype, "dateFilerOptions", null);
|
147
|
+
], State.prototype, "getDateF", null);
|
132
148
|
//# sourceMappingURL=state.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/pages/WorkScheduleListPage/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/pages/WorkScheduleListPage/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAY,IAAI,EAAE,MAAM,MAAM,CAAC;AAG1E,OAAO,KAAK,MAAM,OAAO,CAAC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C,CAAC;YAChC,CAAC;YACD,IAAI,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;gBAChC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YACtC,CAAC;YAED,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC;IACF,CAAC;IAEc,QAAQ,CAAC,IAAsB;QAC7C,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QAC/D,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QAC7D,OAAO,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAkB,CAAC;IACtF,CAAC;CACD;AAtFmB;IAAlB,UAAU;2CAAsC;AAC9B;IAAlB,UAAU;gDAAgD;AACxC;IAAlB,UAAU;4CAA2C;AACnC;IAAlB,UAAU;gDAAwC;AAChC;IAAlB,UAAU;gDAA0C;AACjC;IAAnB,UAAU;4CAKT;AAkCa;IAAd,MAAM;4CAMN;AAEc;IAAd,MAAM;gDA2BN;AAEc;IAAd,MAAM;qCAIN"}
|
package/package.json
CHANGED
@@ -1,65 +0,0 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import { action, makeObservable, observable } from "mobx";
|
3
|
-
export class State {
|
4
|
-
constructor() {
|
5
|
-
Object.defineProperty(this, "actives", {
|
6
|
-
enumerable: true,
|
7
|
-
configurable: true,
|
8
|
-
writable: true,
|
9
|
-
value: []
|
10
|
-
});
|
11
|
-
Object.defineProperty(this, "dueActives", {
|
12
|
-
enumerable: true,
|
13
|
-
configurable: true,
|
14
|
-
writable: true,
|
15
|
-
value: void 0
|
16
|
-
});
|
17
|
-
makeObservable(this);
|
18
|
-
}
|
19
|
-
update(currents, dueActives) {
|
20
|
-
if (JSON.stringify(currents) !== JSON.stringify(this.actives)) {
|
21
|
-
this.actives = currents !== null && currents !== void 0 ? currents : [];
|
22
|
-
}
|
23
|
-
if (dueActives !== this.dueActives) {
|
24
|
-
this.dueActives = dueActives;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
onClick(status) {
|
28
|
-
if (status === "All") {
|
29
|
-
this.actives = [status];
|
30
|
-
}
|
31
|
-
else {
|
32
|
-
if (this.actives.includes("All")) {
|
33
|
-
this.actives = [status];
|
34
|
-
}
|
35
|
-
else {
|
36
|
-
if (this.actives.includes(status)) {
|
37
|
-
this.actives = this.actives.filter((item) => item !== status);
|
38
|
-
}
|
39
|
-
else {
|
40
|
-
const actives = Array.isArray(this.actives) ? [...this.actives, status] : [status];
|
41
|
-
this.actives = actives;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
46
|
-
onDueClick(dueAct) {
|
47
|
-
this.dueActives = dueAct;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
__decorate([
|
51
|
-
observable
|
52
|
-
], State.prototype, "actives", void 0);
|
53
|
-
__decorate([
|
54
|
-
observable
|
55
|
-
], State.prototype, "dueActives", void 0);
|
56
|
-
__decorate([
|
57
|
-
action
|
58
|
-
], State.prototype, "update", null);
|
59
|
-
__decorate([
|
60
|
-
action
|
61
|
-
], State.prototype, "onClick", null);
|
62
|
-
__decorate([
|
63
|
-
action
|
64
|
-
], State.prototype, "onDueClick", null);
|
65
|
-
//# sourceMappingURL=state.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskOverview/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM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,CAAC;gBACxB,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;IAEc,UAAU,CAAC,MAAc;QACvC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;IAC1B,CAAC;CACD;AApCmB;IAAlB,UAAU;sCAA+B;AACvB;IAAlB,UAAU;yCAA4B;AAMxB;IAAd,MAAM;mCAON;AAEc;IAAd,MAAM;oCAeN;AAEc;IAAd,MAAM;uCAEN"}
|
@@ -1,65 +0,0 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import { action, makeObservable, observable } from "mobx";
|
3
|
-
export class State {
|
4
|
-
constructor() {
|
5
|
-
Object.defineProperty(this, "actives", {
|
6
|
-
enumerable: true,
|
7
|
-
configurable: true,
|
8
|
-
writable: true,
|
9
|
-
value: []
|
10
|
-
});
|
11
|
-
Object.defineProperty(this, "dueActives", {
|
12
|
-
enumerable: true,
|
13
|
-
configurable: true,
|
14
|
-
writable: true,
|
15
|
-
value: void 0
|
16
|
-
});
|
17
|
-
makeObservable(this);
|
18
|
-
}
|
19
|
-
update(currents, dueActives) {
|
20
|
-
if (JSON.stringify(currents) !== JSON.stringify(this.actives)) {
|
21
|
-
this.actives = currents !== null && currents !== void 0 ? currents : [];
|
22
|
-
}
|
23
|
-
if (dueActives !== this.dueActives) {
|
24
|
-
this.dueActives = dueActives;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
onClick(status) {
|
28
|
-
if (status === "All") {
|
29
|
-
this.actives = [status];
|
30
|
-
}
|
31
|
-
else {
|
32
|
-
if (this.actives.includes("All")) {
|
33
|
-
this.actives = [status];
|
34
|
-
}
|
35
|
-
else {
|
36
|
-
if (this.actives.includes(status)) {
|
37
|
-
this.actives = this.actives.filter((item) => item !== status);
|
38
|
-
}
|
39
|
-
else {
|
40
|
-
const actives = Array.isArray(this.actives) ? [...this.actives, status] : [status];
|
41
|
-
this.actives = actives;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
46
|
-
onDueClick(dueAct) {
|
47
|
-
this.dueActives = dueAct;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
__decorate([
|
51
|
-
observable
|
52
|
-
], State.prototype, "actives", void 0);
|
53
|
-
__decorate([
|
54
|
-
observable
|
55
|
-
], State.prototype, "dueActives", void 0);
|
56
|
-
__decorate([
|
57
|
-
action
|
58
|
-
], State.prototype, "update", null);
|
59
|
-
__decorate([
|
60
|
-
action
|
61
|
-
], State.prototype, "onClick", null);
|
62
|
-
__decorate([
|
63
|
-
action
|
64
|
-
], State.prototype, "onDueClick", null);
|
65
|
-
//# sourceMappingURL=state.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkOverview/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IAIjB;QAHmB;;;;mBAAoB,EAAE;WAAC;QACvB;;;;;WAAoB;QAGtC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,MAAM,CAAC,QAAmB,EAAE,UAAmB;QAC7D,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/D,IAAI,CAAC,OAAO,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,CAAC;QAC/B,CAAC;QACD,IAAI,UAAU,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC;YACpC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC9B,CAAC;IACF,CAAC;IAEc,OAAO,CAAC,MAAc;QACpC,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;YACtB,IAAI,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC;aAAM,CAAC;YACP,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBAClC,IAAI,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC;YACzB,CAAC;iBAAM,CAAC;gBACP,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;oBACnC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC;gBAC/D,CAAC;qBAAM,CAAC;oBACP,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;oBACnF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;gBACxB,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;IAEc,UAAU,CAAC,MAAc;QACvC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;IAC1B,CAAC;CACD;AApCmB;IAAlB,UAAU;sCAA+B;AACvB;IAAlB,UAAU;yCAA4B;AAMxB;IAAd,MAAM;mCAON;AAEc;IAAd,MAAM;oCAeN;AAEc;IAAd,MAAM;uCAEN"}
|
@@ -1,63 +0,0 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import { action, makeObservable, observable } from "mobx";
|
3
|
-
export class State {
|
4
|
-
constructor() {
|
5
|
-
Object.defineProperty(this, "actives", {
|
6
|
-
enumerable: true,
|
7
|
-
configurable: true,
|
8
|
-
writable: true,
|
9
|
-
value: []
|
10
|
-
});
|
11
|
-
Object.defineProperty(this, "dueActives", {
|
12
|
-
enumerable: true,
|
13
|
-
configurable: true,
|
14
|
-
writable: true,
|
15
|
-
value: void 0
|
16
|
-
});
|
17
|
-
makeObservable(this);
|
18
|
-
}
|
19
|
-
update(currents, dueActives) {
|
20
|
-
if (JSON.stringify(currents) !== JSON.stringify(this.actives)) {
|
21
|
-
this.actives = currents !== null && currents !== void 0 ? currents : [];
|
22
|
-
}
|
23
|
-
if (dueActives !== this.dueActives) {
|
24
|
-
this.dueActives = dueActives;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
onClick(status) {
|
28
|
-
this.actives = [status];
|
29
|
-
// if (status === "All") {
|
30
|
-
// this.actives = [status];
|
31
|
-
// } else {
|
32
|
-
// if (this.actives.includes("All")) {
|
33
|
-
// this.actives = [status];
|
34
|
-
// } else {
|
35
|
-
// if (this.actives.includes(status)) {
|
36
|
-
// this.actives = this.actives.filter((item) => item !== status);
|
37
|
-
// } else {
|
38
|
-
// const actives = Array.isArray(this.actives) ? [...this.actives, status] : [status];
|
39
|
-
// this.actives = actives;
|
40
|
-
// }
|
41
|
-
// }
|
42
|
-
// }
|
43
|
-
}
|
44
|
-
onDueClick(dueAct) {
|
45
|
-
this.dueActives = dueAct;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
__decorate([
|
49
|
-
observable
|
50
|
-
], State.prototype, "actives", void 0);
|
51
|
-
__decorate([
|
52
|
-
observable
|
53
|
-
], State.prototype, "dueActives", void 0);
|
54
|
-
__decorate([
|
55
|
-
action
|
56
|
-
], State.prototype, "update", null);
|
57
|
-
__decorate([
|
58
|
-
action
|
59
|
-
], State.prototype, "onClick", null);
|
60
|
-
__decorate([
|
61
|
-
action
|
62
|
-
], State.prototype, "onDueClick", null);
|
63
|
-
//# sourceMappingURL=state.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleOverview/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IAIjB;QAHmB;;;;mBAAoB,EAAE;WAAC;QACvB;;;;;WAAoB;QAGtC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,MAAM,CAAC,QAAmB,EAAE,UAAmB;QAC7D,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/D,IAAI,CAAC,OAAO,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,CAAC;QAC/B,CAAC;QACD,IAAI,UAAU,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC;YACpC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC9B,CAAC;IACF,CAAC;IAEc,OAAO,CAAC,MAAc;QACpC,IAAI,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC;QACxB,0BAA0B;QAC1B,4BAA4B;QAC5B,WAAW;QACX,uCAAuC;QACvC,6BAA6B;QAC7B,YAAY;QACZ,yCAAyC;QACzC,oEAAoE;QACpE,aAAa;QACb,yFAAyF;QACzF,6BAA6B;QAC7B,MAAM;QACN,KAAK;QACL,IAAI;IACL,CAAC;IAEc,UAAU,CAAC,MAAc;QACvC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;IAC1B,CAAC;CACD;AArCmB;IAAlB,UAAU;sCAA+B;AACvB;IAAlB,UAAU;yCAA4B;AAMxB;IAAd,MAAM;mCAON;AAEc;IAAd,MAAM;oCAgBN;AAEc;IAAd,MAAM;uCAEN"}
|