@neutron.co.id/operasional-modules 1.13.0-beta.1 → 1.13.0
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/build/personalia/module.mjs +7 -1
- package/build/personalia/resources/attendance/attendance.resource.d.ts +1 -1
- package/build/personalia/resources/attendance/attendance.resource.mjs +8 -0
- package/build/personalia/resources/attendance/attendance.views.d.ts +66 -0
- package/build/personalia/resources/attendance/attendance.views.mjs +60 -4
- package/build/personalia/resources/checkIn/checkIn.resource.d.ts +3 -0
- package/build/personalia/resources/checkIn/checkIn.resource.mjs +1 -1
- package/build/personalia/resources/checkIn/checkIn.views.mjs +1 -0
- package/build/personalia/resources/index.d.ts +3 -0
- package/build/personalia/resources/index.mjs +3 -0
- package/build/personalia/resources/plan/plan.resource.d.ts +1 -1
- package/build/personalia/resources/plan/plan.views.mjs +2 -5
- package/build/personalia/resources/progress/progress.resource.d.ts +1 -1
- package/build/personalia/resources/responsibility/responsibility.resource.d.ts +1 -1
- package/build/personalia/resources/responsibility/responsibility.views.mjs +2 -2
- package/build/personalia/resources/shift/index.d.ts +2 -0
- package/build/personalia/resources/shift/index.mjs +2 -0
- package/build/personalia/resources/shift/shift.resource.d.ts +3 -0
- package/build/personalia/resources/shift/shift.resource.mjs +44 -0
- package/build/personalia/resources/shift/shift.views.d.ts +198 -0
- package/build/personalia/resources/shift/shift.views.mjs +128 -0
- package/build/personalia/resources/shiftStaff/index.d.ts +2 -0
- package/build/personalia/resources/shiftStaff/index.mjs +2 -0
- package/build/personalia/resources/shiftStaff/shiftStaff.resource.d.ts +3 -0
- package/build/personalia/resources/shiftStaff/shiftStaff.resource.mjs +29 -0
- package/build/personalia/resources/shiftStaff/shiftStaff.views.d.ts +117 -0
- package/build/personalia/resources/shiftStaff/shiftStaff.views.mjs +28 -0
- package/build/personalia/resources/shiftType/index.d.ts +2 -0
- package/build/personalia/resources/shiftType/index.mjs +2 -0
- package/build/personalia/resources/shiftType/shiftType.resource.d.ts +3 -0
- package/build/personalia/resources/shiftType/shiftType.resource.mjs +25 -0
- package/build/personalia/resources/shiftType/shiftType.views.d.ts +66 -0
- package/build/personalia/resources/shiftType/shiftType.views.mjs +9 -0
- package/build/personalia/resources/situation/situation.resource.d.ts +1 -1
- package/build/personalia/resources/situation/situation.views.mjs +2 -2
- package/build/personalia/resources/staff/staff.resource.d.ts +1 -1
- package/build/personalia/resources/staff/staff.views.mjs +6 -2
- package/build/personalia/resources/submission/submission.resource.d.ts +1 -1
- package/build/personalia/resources/submission/submission.views.mjs +86 -26
- package/build/personalia/resources/target/target.resource.d.ts +1 -1
- package/build/personalia/resources/target/target.views.mjs +1 -1
- package/build/personalia/resources/task/task.views.mjs +5 -2
- package/build/personalia/view-names.mjs +13 -0
- package/build/personalia/views.mjs +2 -2
- package/build/views.mjs +13 -0
- package/package.json +6 -6
|
@@ -12,6 +12,9 @@ import { SituationTypeResource } from "./resources/situationType/situationType.r
|
|
|
12
12
|
import { StaffResource } from "./resources/staff/staff.resource.mjs";
|
|
13
13
|
import { SubmissionResource } from "./resources/submission/submission.resource.mjs";
|
|
14
14
|
import { SubmissionTypeResource } from "./resources/submissionType/submissionType.resource.mjs";
|
|
15
|
+
import { ShiftResource } from "./resources/shift/shift.resource.mjs";
|
|
16
|
+
import { ShiftTypeResource } from "./resources/shiftType/shiftType.resource.mjs";
|
|
17
|
+
import { ShiftStaffResource } from "./resources/shiftStaff/shiftStaff.resource.mjs";
|
|
15
18
|
import { TaskResource } from "./resources/task/task.resource.mjs";
|
|
16
19
|
import { TargetResource } from "./resources/target/target.resource.mjs";
|
|
17
20
|
export const PersonaliaModule = Module.define({
|
|
@@ -34,6 +37,9 @@ export const PersonaliaModule = Module.define({
|
|
|
34
37
|
PlanResource,
|
|
35
38
|
ProgressResource,
|
|
36
39
|
AttendanceResource,
|
|
37
|
-
ProgressAccessResource
|
|
40
|
+
ProgressAccessResource,
|
|
41
|
+
ShiftTypeResource,
|
|
42
|
+
ShiftResource,
|
|
43
|
+
ShiftStaffResource
|
|
38
44
|
]
|
|
39
45
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
2
|
import { type Schema } from '@neutron.co.id/personalia-models';
|
|
3
|
-
export declare const AttendanceResource: Resource<Schema.Attendance, import("@neon.id/model").Model<"neu:personalia:attendance", "type" | "nameStaff" | "status" | "branch" | "attendanceAt" | "comeAt" | "decideStaff" | "delegateStaffs" | "earlyAt" | "endedAt" | "homeAt" | "isGenerate" | "lateAt" | "notes" | "startedAt" | "submitStaff" | "submittedAt" | "virtualSubmitStaff", Schema.Attendance>>;
|
|
3
|
+
export declare const AttendanceResource: Resource<Schema.Attendance, import("@neon.id/model").Model<"neu:personalia:attendance", "type" | "nameStaff" | "status" | "branch" | "attendanceAt" | "comeAt" | "decideStaff" | "delegateNotes" | "delegateStaffs" | "earlyAt" | "endedAt" | "homeAt" | "isDelegateStaff" | "isGenerate" | "isNotes" | "lateAt" | "monitoringStaffs" | "notes" | "startedAt" | "submitStaff" | "submittedAt" | "virtualSubmitStaff", Schema.Attendance>>;
|
|
@@ -24,6 +24,14 @@ export const AttendanceResource = Resource.define({
|
|
|
24
24
|
path: "/penugasan/staff-attendances:slug",
|
|
25
25
|
component: "AttendanceSingleStaffView"
|
|
26
26
|
},
|
|
27
|
+
attendanceDelegate: {
|
|
28
|
+
path: "/penugasan/delegate-attendances",
|
|
29
|
+
component: "AttendanceCollectionDelegateView"
|
|
30
|
+
},
|
|
31
|
+
attendanceDelegateSingle: {
|
|
32
|
+
path: "/penugasan/delegate-attendances:slug",
|
|
33
|
+
component: "AttendanceSingleDelegateView"
|
|
34
|
+
},
|
|
27
35
|
attendanceManager: {
|
|
28
36
|
path: "/penugasan/manager-attendances",
|
|
29
37
|
component: "AttendanceCollectionManagerView"
|
|
@@ -130,6 +130,72 @@ export declare const AttendanceSingleStaffView: import("vue").DefineComponent<{
|
|
|
130
130
|
isMain: boolean;
|
|
131
131
|
overrides: Record<string, any>;
|
|
132
132
|
}, {}>;
|
|
133
|
+
export declare const AttendanceCollectionDelegateView: import("vue").DefineComponent<{
|
|
134
|
+
overrides: {
|
|
135
|
+
type: ObjectConstructor;
|
|
136
|
+
default: () => {};
|
|
137
|
+
};
|
|
138
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
141
|
+
overrides: {
|
|
142
|
+
type: ObjectConstructor;
|
|
143
|
+
default: () => {};
|
|
144
|
+
};
|
|
145
|
+
}>>, {
|
|
146
|
+
overrides: Record<string, any>;
|
|
147
|
+
}, {}>;
|
|
148
|
+
export declare const AttendanceSingleDelegateView: import("vue").DefineComponent<{
|
|
149
|
+
state: {
|
|
150
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
151
|
+
default: undefined;
|
|
152
|
+
};
|
|
153
|
+
id: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
default: undefined;
|
|
156
|
+
};
|
|
157
|
+
isNew: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: undefined;
|
|
160
|
+
};
|
|
161
|
+
isMain: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
overrides: {
|
|
166
|
+
type: ObjectConstructor;
|
|
167
|
+
default: () => {};
|
|
168
|
+
};
|
|
169
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
170
|
+
[key: string]: any;
|
|
171
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
172
|
+
state: {
|
|
173
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
174
|
+
default: undefined;
|
|
175
|
+
};
|
|
176
|
+
id: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: undefined;
|
|
179
|
+
};
|
|
180
|
+
isNew: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: undefined;
|
|
183
|
+
};
|
|
184
|
+
isMain: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
overrides: {
|
|
189
|
+
type: ObjectConstructor;
|
|
190
|
+
default: () => {};
|
|
191
|
+
};
|
|
192
|
+
}>>, {
|
|
193
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
194
|
+
id: string;
|
|
195
|
+
isNew: boolean;
|
|
196
|
+
isMain: boolean;
|
|
197
|
+
overrides: Record<string, any>;
|
|
198
|
+
}, {}>;
|
|
133
199
|
export declare const AttendanceCollectionManagerView: import("vue").DefineComponent<{
|
|
134
200
|
overrides: {
|
|
135
201
|
type: ObjectConstructor;
|
|
@@ -39,7 +39,8 @@ export const AttendanceCollectionStaffView = ResourceUtil.createCollection({
|
|
|
39
39
|
"type",
|
|
40
40
|
"notes",
|
|
41
41
|
"decideStaff",
|
|
42
|
-
"status"
|
|
42
|
+
"status",
|
|
43
|
+
"delegateStaffs"
|
|
43
44
|
],
|
|
44
45
|
query: () => {
|
|
45
46
|
const state = useOperasionalStore();
|
|
@@ -65,6 +66,55 @@ export const AttendanceSingleStaffView = ResourceUtil.createSingle({
|
|
|
65
66
|
},
|
|
66
67
|
path: "/penugasan/staff-attendances"
|
|
67
68
|
});
|
|
69
|
+
export const AttendanceCollectionDelegateView = ResourceUtil.createCollection({
|
|
70
|
+
name: "delegate",
|
|
71
|
+
definition: "neu:personalia:attendance",
|
|
72
|
+
title: "Delegasi",
|
|
73
|
+
icon: "person-chalkboard",
|
|
74
|
+
scope: "delegate",
|
|
75
|
+
path: "/penugasan/delegate-attendances",
|
|
76
|
+
single: {
|
|
77
|
+
view: "delegate"
|
|
78
|
+
// peeks: ['page'],
|
|
79
|
+
},
|
|
80
|
+
filters: ["status", "type", "submitStaff", "decideStaff"],
|
|
81
|
+
sorts: ["submittedAt", "startedAt", "endedAt", "createdAt", "updatedAt"],
|
|
82
|
+
columns: [
|
|
83
|
+
"status",
|
|
84
|
+
"startedAt",
|
|
85
|
+
"submitStaff",
|
|
86
|
+
"delegateStaffs"
|
|
87
|
+
],
|
|
88
|
+
query: () => {
|
|
89
|
+
const state = useOperasionalStore();
|
|
90
|
+
const { staff } = state.getAllStoreValue();
|
|
91
|
+
return Query.define({
|
|
92
|
+
filter: [
|
|
93
|
+
{
|
|
94
|
+
handle: "status",
|
|
95
|
+
operator: "in",
|
|
96
|
+
value: ["approved"]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
delegateStaffIds: staff?.id
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
excludes: ["create"]
|
|
106
|
+
});
|
|
107
|
+
export const AttendanceSingleDelegateView = ResourceUtil.createSingle({
|
|
108
|
+
name: "delegate",
|
|
109
|
+
definition: "neu:personalia:attendance",
|
|
110
|
+
slots: {
|
|
111
|
+
default: "delegate",
|
|
112
|
+
actions: {
|
|
113
|
+
setup: getLabel
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
path: "/penugasan/delegate-attendances"
|
|
117
|
+
});
|
|
68
118
|
export const AttendanceCollectionManagerView = ResourceUtil.createCollection({
|
|
69
119
|
name: "manager",
|
|
70
120
|
definition: "neu:personalia:attendance",
|
|
@@ -121,7 +171,7 @@ export const AttendanceCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
121
171
|
view: "supervisor"
|
|
122
172
|
// peeks: ['modal'],
|
|
123
173
|
},
|
|
124
|
-
filters: ["status", "type", "submitStaff", "decideStaff"],
|
|
174
|
+
filters: ["status", "type", "submitStaff", "decideStaff", "monitoringStaffs"],
|
|
125
175
|
sorts: ["submittedAt", "startedAt", "endedAt", "createdAt", "updatedAt"],
|
|
126
176
|
columns: [
|
|
127
177
|
"startedAt",
|
|
@@ -129,7 +179,8 @@ export const AttendanceCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
129
179
|
"type",
|
|
130
180
|
"notes",
|
|
131
181
|
"decideStaff",
|
|
132
|
-
"status"
|
|
182
|
+
"status",
|
|
183
|
+
"monitoringStaffs"
|
|
133
184
|
],
|
|
134
185
|
query: () => {
|
|
135
186
|
const state = useOperasionalStore();
|
|
@@ -141,7 +192,12 @@ export const AttendanceCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
141
192
|
operator: "in",
|
|
142
193
|
value: ["approved", "notApproved"]
|
|
143
194
|
},
|
|
144
|
-
{
|
|
195
|
+
{
|
|
196
|
+
$or: [
|
|
197
|
+
{ decideStaffId: staff?.id },
|
|
198
|
+
{ monitoringStaffIds: staff?.id }
|
|
199
|
+
]
|
|
200
|
+
}
|
|
145
201
|
],
|
|
146
202
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
147
203
|
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Resource } from '@neon.id/context';
|
|
2
|
+
import { type Schema } from '@neutron.co.id/sentral-models';
|
|
3
|
+
export declare const CheckInResource: Resource<Schema.CheckIn, import("@neon.id/model").Model<"neu:tempat:checkIn", "type" | "nameStaff" | "branch" | "user" | "note" | "latitude" | "longitude" | "building" | "checkInAt" | "informationCheckIn" | "staff" | "statusGPS" | "student" | "teacher" | "virtualStaff", Schema.CheckIn>>;
|
|
@@ -46,6 +46,7 @@ export const CheckInCollectionSupervisorView = ResourceUtil.createCollection({
|
|
|
46
46
|
},
|
|
47
47
|
columns: ["statusGPS", "display", "type", "checkInAt", "staff", "building"],
|
|
48
48
|
sorts: ["checkInAt"],
|
|
49
|
+
filters: ["staff", "type", "checkInAt", "building", "statusGPS"],
|
|
49
50
|
query: () => {
|
|
50
51
|
const { supervisedStaffIds } = useOperasional();
|
|
51
52
|
return Query.define({
|
|
@@ -13,3 +13,6 @@ export * from "./submission/index.mjs";
|
|
|
13
13
|
export * from "./submissionType/index.mjs";
|
|
14
14
|
export * from "./target/index.mjs";
|
|
15
15
|
export * from "./task/index.mjs";
|
|
16
|
+
export * from "./shift/index.mjs";
|
|
17
|
+
export * from "./shiftType/index.mjs";
|
|
18
|
+
export * from "./shiftStaff/index.mjs";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
2
|
import { type Schema } from '@neutron.co.id/personalia-models';
|
|
3
|
-
export declare const PlanResource: Resource<Schema.Plan, import("@neon.id/model").Model<"neu:personalia:plan", "endedAt" | "startedAt" | "name" | "branches" | "staffs" | "detail" | "domain" | "planTypes" | "stages" | "target", Schema.Plan>>;
|
|
3
|
+
export declare const PlanResource: Resource<Schema.Plan, import("@neon.id/model").Model<"neu:personalia:plan", "endedAt" | "startedAt" | "name" | "branches" | "staffs" | "detail" | "domain" | "planTypes" | "stages" | "target" | "virtualBranches", Schema.Plan>>;
|
|
@@ -40,14 +40,11 @@ export const PlanCollectionStaffView = ResourceUtil.createCollection({
|
|
|
40
40
|
const { staff } = state.getAllStoreValue();
|
|
41
41
|
return Query.define({
|
|
42
42
|
filter: {
|
|
43
|
-
|
|
44
|
-
operator: "in",
|
|
45
|
-
value: staff?.branchIds
|
|
43
|
+
virtualBranchIds: { $in: staff?.branchIds }
|
|
46
44
|
},
|
|
47
45
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
48
46
|
});
|
|
49
|
-
}
|
|
50
|
-
excludes: ["create"]
|
|
47
|
+
}
|
|
51
48
|
});
|
|
52
49
|
export const PlanSingleStaffView = ResourceUtil.createSingle({
|
|
53
50
|
name: "staff",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
2
|
import { type Schema } from '@neutron.co.id/personalia-models';
|
|
3
|
-
export declare const ProgressResource: Resource<Schema.Progress, import("@neon.id/model").Model<"neu:personalia:progress", "nameStaff" | "endedAt" | "startedAt" | "branches" | "staffs" | "detail" | "plans" | "priority" | "submissions" | "tasks" | "accessStaffs" | "
|
|
3
|
+
export declare const ProgressResource: Resource<Schema.Progress, import("@neon.id/model").Model<"neu:personalia:progress", "nameStaff" | "endedAt" | "isNotes" | "startedAt" | "branches" | "staffs" | "detail" | "plans" | "priority" | "submissions" | "tasks" | "accessStaffs" | "reports" | "responsibilities" | "virtualIsNotes" | "virtualStaffs", Schema.Progress>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
2
|
import { type Schema } from '@neutron.co.id/personalia-models';
|
|
3
|
-
export declare const ResponsibilityResource: Resource<Schema.Responsibility, import("@neon.id/model").Model<"neu:personalia:responsibility", "nameStaff" | "title" | "branches" | "detail" | "reports" | "condition" | "lastProgress" | "responsibilityType" | "result" | "score" | "staffSupervises" | "staffWorks" | "virtualStaffWorks", Schema.Responsibility>>;
|
|
3
|
+
export declare const ResponsibilityResource: Resource<Schema.Responsibility, import("@neon.id/model").Model<"neu:personalia:responsibility", "nameStaff" | "title" | "branches" | "detail" | "virtualBranches" | "reports" | "condition" | "lastProgress" | "responsibilityType" | "result" | "score" | "staffSupervises" | "staffWorks" | "virtualStaffWorks", Schema.Responsibility>>;
|
|
@@ -15,12 +15,12 @@ export const ResponsibilityCollectionView = ResourceUtil.createCollection({
|
|
|
15
15
|
{
|
|
16
16
|
$or: [
|
|
17
17
|
{
|
|
18
|
-
handle: "
|
|
18
|
+
handle: "virtualBranchIds",
|
|
19
19
|
operator: "in",
|
|
20
20
|
value: staff?.branchIds
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
handle: "
|
|
23
|
+
handle: "virtualBranchIds",
|
|
24
24
|
operator: "in",
|
|
25
25
|
value: staff?.branchId
|
|
26
26
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Resource } from '@neon.id/context';
|
|
2
|
+
import { type Schema } from '@neutron.co.id/personalia-models';
|
|
3
|
+
export declare const ShiftResource: Resource<Schema.Shift, import("@neon.id/model").Model<"neu:personalia:shift", "nameStaff" | "endedAt" | "isGenerate" | "startedAt" | "note" | "building" | "branches" | "administratorStaff" | "checkIn" | "shiftingStaffs" | "titleShift" | "totalTime" | "typeShift" | "virtualAdministratorStaff", Schema.Shift>>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
ShiftModel
|
|
4
|
+
} from "@neutron.co.id/personalia-models";
|
|
5
|
+
import { DateUtil } from "@neon.id/utils/date";
|
|
6
|
+
export const ShiftResource = Resource.define({
|
|
7
|
+
model: ShiftModel,
|
|
8
|
+
collection: {
|
|
9
|
+
title: "Kehadiran",
|
|
10
|
+
path: "shifts",
|
|
11
|
+
component: "ShiftCollectionView",
|
|
12
|
+
displays: ["table", "calendar"],
|
|
13
|
+
menu: true
|
|
14
|
+
},
|
|
15
|
+
single: {
|
|
16
|
+
path: "shifts/:slug",
|
|
17
|
+
component: "ShiftSingleView"
|
|
18
|
+
},
|
|
19
|
+
views: {
|
|
20
|
+
shiftAdministrator: {
|
|
21
|
+
path: "/pengelola/shifts",
|
|
22
|
+
component: "ShiftCollectionAdministratorView"
|
|
23
|
+
},
|
|
24
|
+
shiftAdministratorSingle: {
|
|
25
|
+
path: "/pengelola/shifts:slug",
|
|
26
|
+
component: "ShiftSingleAdministratorView"
|
|
27
|
+
},
|
|
28
|
+
shiftSupervisor: {
|
|
29
|
+
path: "/pengelola/supervisor-shifts",
|
|
30
|
+
component: "ShiftCollectionSupervisorView"
|
|
31
|
+
},
|
|
32
|
+
shiftSupervisorSingle: {
|
|
33
|
+
path: "/pengelola/supervisor-shifts:slug",
|
|
34
|
+
component: "ShiftSingleSupervisorView"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
fragments: ShiftModel.fragments,
|
|
38
|
+
renders: {
|
|
39
|
+
endedAt: (item) => `${DateUtil.format(item?.endedAt, { pattern: "yyyy-MM-dd" }) || "-"}`,
|
|
40
|
+
startedAt: (item) => `${DateUtil.format(item?.startedAt, { pattern: "yyyy-MM-dd" }) || "-"}`,
|
|
41
|
+
startedTime: (item) => `${DateUtil.format(item?.startedTime, { pattern: "HH:mm" }) || "-"}`,
|
|
42
|
+
endedTime: (item) => `${DateUtil.format(item?.endedTime, { pattern: "HH:mm" }) || "-"}`
|
|
43
|
+
}
|
|
44
|
+
});
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
export declare const ShiftCollectionView: import("vue").DefineComponent<{
|
|
2
|
+
overrides: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
overrides: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
}>>, {
|
|
14
|
+
overrides: Record<string, any>;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export declare const ShiftSingleView: import("vue").DefineComponent<{
|
|
17
|
+
state: {
|
|
18
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
id: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
isNew: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
isMain: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
overrides: {
|
|
34
|
+
type: ObjectConstructor;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
37
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
state: {
|
|
41
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
id: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
isNew: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
isMain: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
overrides: {
|
|
57
|
+
type: ObjectConstructor;
|
|
58
|
+
default: () => {};
|
|
59
|
+
};
|
|
60
|
+
}>>, {
|
|
61
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
62
|
+
id: string;
|
|
63
|
+
isNew: boolean;
|
|
64
|
+
isMain: boolean;
|
|
65
|
+
overrides: Record<string, any>;
|
|
66
|
+
}, {}>;
|
|
67
|
+
export declare const ShiftCollectionAdministratorView: import("vue").DefineComponent<{
|
|
68
|
+
overrides: {
|
|
69
|
+
type: ObjectConstructor;
|
|
70
|
+
default: () => {};
|
|
71
|
+
};
|
|
72
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
73
|
+
[key: string]: any;
|
|
74
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
75
|
+
overrides: {
|
|
76
|
+
type: ObjectConstructor;
|
|
77
|
+
default: () => {};
|
|
78
|
+
};
|
|
79
|
+
}>>, {
|
|
80
|
+
overrides: Record<string, any>;
|
|
81
|
+
}, {}>;
|
|
82
|
+
export declare const ShiftSingleAdministratorView: import("vue").DefineComponent<{
|
|
83
|
+
state: {
|
|
84
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
87
|
+
id: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
91
|
+
isNew: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
95
|
+
isMain: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
overrides: {
|
|
100
|
+
type: ObjectConstructor;
|
|
101
|
+
default: () => {};
|
|
102
|
+
};
|
|
103
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
104
|
+
[key: string]: any;
|
|
105
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
106
|
+
state: {
|
|
107
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
id: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: undefined;
|
|
113
|
+
};
|
|
114
|
+
isNew: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: undefined;
|
|
117
|
+
};
|
|
118
|
+
isMain: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
overrides: {
|
|
123
|
+
type: ObjectConstructor;
|
|
124
|
+
default: () => {};
|
|
125
|
+
};
|
|
126
|
+
}>>, {
|
|
127
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
128
|
+
id: string;
|
|
129
|
+
isNew: boolean;
|
|
130
|
+
isMain: boolean;
|
|
131
|
+
overrides: Record<string, any>;
|
|
132
|
+
}, {}>;
|
|
133
|
+
export declare const ShiftCollectionSupervisorView: import("vue").DefineComponent<{
|
|
134
|
+
overrides: {
|
|
135
|
+
type: ObjectConstructor;
|
|
136
|
+
default: () => {};
|
|
137
|
+
};
|
|
138
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
141
|
+
overrides: {
|
|
142
|
+
type: ObjectConstructor;
|
|
143
|
+
default: () => {};
|
|
144
|
+
};
|
|
145
|
+
}>>, {
|
|
146
|
+
overrides: Record<string, any>;
|
|
147
|
+
}, {}>;
|
|
148
|
+
export declare const ShiftSingleSupervisorView: import("vue").DefineComponent<{
|
|
149
|
+
state: {
|
|
150
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
151
|
+
default: undefined;
|
|
152
|
+
};
|
|
153
|
+
id: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
default: undefined;
|
|
156
|
+
};
|
|
157
|
+
isNew: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: undefined;
|
|
160
|
+
};
|
|
161
|
+
isMain: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
overrides: {
|
|
166
|
+
type: ObjectConstructor;
|
|
167
|
+
default: () => {};
|
|
168
|
+
};
|
|
169
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
170
|
+
[key: string]: any;
|
|
171
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
172
|
+
state: {
|
|
173
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
174
|
+
default: undefined;
|
|
175
|
+
};
|
|
176
|
+
id: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: undefined;
|
|
179
|
+
};
|
|
180
|
+
isNew: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: undefined;
|
|
183
|
+
};
|
|
184
|
+
isMain: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
overrides: {
|
|
189
|
+
type: ObjectConstructor;
|
|
190
|
+
default: () => {};
|
|
191
|
+
};
|
|
192
|
+
}>>, {
|
|
193
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
194
|
+
id: string;
|
|
195
|
+
isNew: boolean;
|
|
196
|
+
isMain: boolean;
|
|
197
|
+
overrides: Record<string, any>;
|
|
198
|
+
}, {}>;
|