@neutron.co.id/operasional-modules 1.6.0 → 1.6.2-beta.1
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.
|
@@ -9,7 +9,9 @@ import {
|
|
|
9
9
|
SubmissionCollectionAuditView,
|
|
10
10
|
SubmissionSingleAuditView,
|
|
11
11
|
SubmissionCollectionDecisionView,
|
|
12
|
-
SubmissionSingleDecisionView
|
|
12
|
+
SubmissionSingleDecisionView,
|
|
13
|
+
SubmissionCollectionWaitingDecisionView,
|
|
14
|
+
SubmissionSingleWaitingDecisionView
|
|
13
15
|
} from "./submission.views.mjs";
|
|
14
16
|
import {
|
|
15
17
|
fragments,
|
|
@@ -71,6 +73,15 @@ export const SubmissionResource = Resource.define({
|
|
|
71
73
|
submissionDecisionSingle: {
|
|
72
74
|
path: "/pengajuan/decision-submission/:slug",
|
|
73
75
|
component: SubmissionSingleDecisionView
|
|
76
|
+
},
|
|
77
|
+
//Menunggu Keputusan
|
|
78
|
+
submissionWaitingDecision: {
|
|
79
|
+
path: "/pengajuan/waiting-decision-submission",
|
|
80
|
+
component: SubmissionCollectionWaitingDecisionView
|
|
81
|
+
},
|
|
82
|
+
submissionWaitingDecisionSingle: {
|
|
83
|
+
path: "/pengajuan/waiting-decision-submission/:slug",
|
|
84
|
+
component: SubmissionSingleWaitingDecisionView
|
|
74
85
|
}
|
|
75
86
|
},
|
|
76
87
|
fragments,
|
|
@@ -178,3 +178,39 @@ export declare const SubmissionSingleDecisionView: import("vue").DefineComponent
|
|
|
178
178
|
isNew: boolean;
|
|
179
179
|
isMain: boolean;
|
|
180
180
|
}, {}>;
|
|
181
|
+
export declare const SubmissionCollectionWaitingDecisionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
182
|
+
[key: string]: any;
|
|
183
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
184
|
+
export declare const SubmissionSingleWaitingDecisionView: import("vue").DefineComponent<{
|
|
185
|
+
id: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
default: null;
|
|
188
|
+
};
|
|
189
|
+
isNew: {
|
|
190
|
+
type: BooleanConstructor;
|
|
191
|
+
default: null;
|
|
192
|
+
};
|
|
193
|
+
isMain: {
|
|
194
|
+
type: BooleanConstructor;
|
|
195
|
+
default: boolean;
|
|
196
|
+
};
|
|
197
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
198
|
+
[key: string]: any;
|
|
199
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
200
|
+
id: {
|
|
201
|
+
type: StringConstructor;
|
|
202
|
+
default: null;
|
|
203
|
+
};
|
|
204
|
+
isNew: {
|
|
205
|
+
type: BooleanConstructor;
|
|
206
|
+
default: null;
|
|
207
|
+
};
|
|
208
|
+
isMain: {
|
|
209
|
+
type: BooleanConstructor;
|
|
210
|
+
default: boolean;
|
|
211
|
+
};
|
|
212
|
+
}>>, {
|
|
213
|
+
id: string;
|
|
214
|
+
isNew: boolean;
|
|
215
|
+
isMain: boolean;
|
|
216
|
+
}, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSingle } from "@neon.id/context";
|
|
2
|
-
import {
|
|
2
|
+
import { NeonLabel } from "@neon.id/interfaces";
|
|
3
3
|
import { ResourceUtil } from "@neon.id/office";
|
|
4
4
|
import { Query } from "@neon.id/query";
|
|
5
5
|
import { useOperasional } from "@neutron.co.id/operasional-interfaces";
|
|
@@ -13,7 +13,7 @@ export const SubmissionSingleView = ResourceUtil.createSingle({
|
|
|
13
13
|
definition: "neu:personalia:submission",
|
|
14
14
|
slots: {
|
|
15
15
|
actions: {
|
|
16
|
-
setup:
|
|
16
|
+
setup: getLabel
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
});
|
|
@@ -71,7 +71,7 @@ export const SubmissionSingleStaffView = ResourceUtil.createSingle({
|
|
|
71
71
|
slots: {
|
|
72
72
|
default: "staff",
|
|
73
73
|
actions: {
|
|
74
|
-
setup:
|
|
74
|
+
setup: getLabel
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
});
|
|
@@ -137,7 +137,7 @@ export const SubmissionSingleFollowUpView = ResourceUtil.createSingle({
|
|
|
137
137
|
slots: {
|
|
138
138
|
default: "follow-up",
|
|
139
139
|
actions: {
|
|
140
|
-
setup:
|
|
140
|
+
setup: getLabel
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
});
|
|
@@ -197,7 +197,7 @@ export const SubmissionSingleAuditView = ResourceUtil.createSingle({
|
|
|
197
197
|
slots: {
|
|
198
198
|
default: "audit",
|
|
199
199
|
actions: {
|
|
200
|
-
setup:
|
|
200
|
+
setup: getLabel
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
});
|
|
@@ -249,12 +249,87 @@ export const SubmissionSingleDecisionView = ResourceUtil.createSingle({
|
|
|
249
249
|
slots: {
|
|
250
250
|
default: "decision",
|
|
251
251
|
actions: {
|
|
252
|
-
setup:
|
|
252
|
+
setup: getLabel
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
});
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
export const SubmissionCollectionWaitingDecisionView = ResourceUtil.createCollection({
|
|
257
|
+
name: "waiting-decision",
|
|
258
|
+
definition: "neu:personalia:submission",
|
|
259
|
+
title: "Menunggu Keputusan",
|
|
260
|
+
icon: "clipboard-list-check",
|
|
261
|
+
scope: "waiting-decision",
|
|
262
|
+
path: "/pengajuan/waiting-decision-submission",
|
|
263
|
+
single: {
|
|
264
|
+
view: "waiting-decision",
|
|
265
|
+
peeks: ["side"]
|
|
266
|
+
},
|
|
267
|
+
columns: [
|
|
268
|
+
"status",
|
|
269
|
+
"type",
|
|
270
|
+
"specifications",
|
|
271
|
+
"title",
|
|
272
|
+
"raisedAt",
|
|
273
|
+
"branches",
|
|
274
|
+
"submissionStaffs",
|
|
275
|
+
"raiseStaffs",
|
|
276
|
+
"decideStaffs",
|
|
277
|
+
"followUpStaffs",
|
|
278
|
+
"nominal"
|
|
279
|
+
],
|
|
280
|
+
filters: [
|
|
281
|
+
"status",
|
|
282
|
+
"type",
|
|
283
|
+
"specifications",
|
|
284
|
+
"branches",
|
|
285
|
+
"submissionStaffs",
|
|
286
|
+
"raiseStaffs",
|
|
287
|
+
"decideStaffs",
|
|
288
|
+
"followUpStaffs"
|
|
289
|
+
],
|
|
290
|
+
sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"],
|
|
291
|
+
query: () => {
|
|
292
|
+
const { staff } = useOperasional();
|
|
293
|
+
return Query.define({
|
|
294
|
+
filter: [
|
|
295
|
+
{
|
|
296
|
+
handle: "status",
|
|
297
|
+
operator: "eq",
|
|
298
|
+
value: "processed"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
handle: "decideStaffIds",
|
|
302
|
+
operator: "in",
|
|
303
|
+
value: staff.value?.id
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
handle: "delayStaffIds",
|
|
307
|
+
operator: "nin",
|
|
308
|
+
value: staff.value?.id
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
handle: "agreedStaffIds",
|
|
312
|
+
operator: "nin",
|
|
313
|
+
value: staff.value?.id
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
export const SubmissionSingleWaitingDecisionView = ResourceUtil.createSingle({
|
|
321
|
+
name: "waiting-decision",
|
|
322
|
+
definition: "neu:personalia:submission",
|
|
323
|
+
title: "Menunggu Keputusan",
|
|
324
|
+
slots: {
|
|
325
|
+
default: "waiting-decision",
|
|
326
|
+
actions: {
|
|
327
|
+
setup: getLabel
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
function getLabel() {
|
|
332
|
+
const { isNew, values, isLoading } = useSingle();
|
|
258
333
|
const actions = {
|
|
259
334
|
prepared: {
|
|
260
335
|
iconLeft: "pen-line",
|
|
@@ -302,14 +377,12 @@ function getButton() {
|
|
|
302
377
|
if (isNew.value || !action.value)
|
|
303
378
|
return null;
|
|
304
379
|
return h("div", { class: "px-1 pt-0.5 pb-1" }, [
|
|
305
|
-
h(
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
size: "
|
|
380
|
+
h(NeonLabel, {
|
|
381
|
+
icon: action.value?.iconLeft,
|
|
382
|
+
text: action.value?.label,
|
|
383
|
+
size: "md",
|
|
309
384
|
color: action.value?.color,
|
|
310
|
-
|
|
311
|
-
isLoading: isLoading.value,
|
|
312
|
-
onClick: syncOne
|
|
385
|
+
isLoading: isLoading.value
|
|
313
386
|
})
|
|
314
387
|
]);
|
|
315
388
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default ["CheckInCollectionExternalView","CheckInCollectionView","CheckInSingleExternalView","CheckInSingleView","StaffCollectionOperasionalView","StaffCollectionView","StaffSingleOperasionalView","StaffSingleView","SituationCollectionSupportiveView","SituationCollectionView","SituationCollectionWorkView","SituationSingleSupportiveView","SituationSingleView","SituationSingleWorkView","SituationTypeCollectionView","SituationTypeSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView","TaskSingleWorkView","SubmissionCollectionAuditView","SubmissionCollectionDecisionView","SubmissionCollectionFollowUpView","SubmissionCollectionStaffView","SubmissionCollectionView","SubmissionSingleAuditView","SubmissionSingleDecisionView","SubmissionSingleFollowUpView","SubmissionSingleStaffView","SubmissionSingleView","SubmissionTypeCollectionView","SubmissionTypeSingleView"]
|
|
1
|
+
export default ["CheckInCollectionExternalView","CheckInCollectionView","CheckInSingleExternalView","CheckInSingleView","StaffCollectionOperasionalView","StaffCollectionView","StaffSingleOperasionalView","StaffSingleView","SituationCollectionSupportiveView","SituationCollectionView","SituationCollectionWorkView","SituationSingleSupportiveView","SituationSingleView","SituationSingleWorkView","SituationTypeCollectionView","SituationTypeSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView","TaskSingleWorkView","SubmissionCollectionAuditView","SubmissionCollectionDecisionView","SubmissionCollectionFollowUpView","SubmissionCollectionStaffView","SubmissionCollectionView","SubmissionCollectionWaitingDecisionView","SubmissionSingleAuditView","SubmissionSingleDecisionView","SubmissionSingleFollowUpView","SubmissionSingleStaffView","SubmissionSingleView","SubmissionSingleWaitingDecisionView","SubmissionTypeCollectionView","SubmissionTypeSingleView"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-modules",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2-beta.1",
|
|
4
4
|
"description": "Modules of Neutron Operasional.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@neon.id/context": "0.48.0",
|
|
44
44
|
"@neon.id/office": "0.39.0",
|
|
45
|
-
"@neutron.co.id/operasional-interfaces": "1.
|
|
45
|
+
"@neutron.co.id/operasional-interfaces": "1.6.3",
|
|
46
46
|
"@neutron.co.id/personalia-models": "1.6.0",
|
|
47
47
|
"@nuxt/kit": "3.5.0"
|
|
48
48
|
},
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@neon.id/context": "^0.48.0",
|
|
66
66
|
"@neon.id/office": "^0.39.0",
|
|
67
|
-
"@neutron.co.id/operasional-interfaces": "^1.
|
|
67
|
+
"@neutron.co.id/operasional-interfaces": "^1.6.3",
|
|
68
68
|
"@neutron.co.id/personalia-models": "^1.6.0",
|
|
69
69
|
"@nuxt/kit": "^3.5.0"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"build":
|
|
74
|
+
"build": 53
|
|
75
75
|
}
|