@neutron.co.id/operasional-modules 1.5.1-beta.1 → 1.6.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.
Files changed (71) hide show
  1. package/build/index.cjs +2 -0
  2. package/build/index.d.ts +2 -0
  3. package/build/index.mjs +1 -0
  4. package/build/personalia/exports.d.ts +1 -0
  5. package/build/personalia/exports.mjs +1 -0
  6. package/build/personalia/index.d.ts +2 -0
  7. package/build/personalia/index.mjs +42 -0
  8. package/build/personalia/module.d.ts +2 -0
  9. package/build/personalia/module.mjs +25 -0
  10. package/build/personalia/plugin.d.ts +2 -0
  11. package/build/personalia/plugin.mjs +10 -0
  12. package/build/personalia/resources/checkIn/checkIn.model.d.ts +6 -0
  13. package/build/personalia/resources/checkIn/checkIn.model.mjs +27 -0
  14. package/build/personalia/resources/checkIn/checkIn.resource.d.ts +2 -0
  15. package/build/personalia/resources/checkIn/checkIn.resource.mjs +45 -0
  16. package/build/personalia/resources/checkIn/checkIn.views.d.ts +72 -0
  17. package/build/personalia/resources/checkIn/checkIn.views.mjs +32 -0
  18. package/build/personalia/resources/checkIn/index.d.ts +2 -0
  19. package/build/personalia/resources/checkIn/index.mjs +2 -0
  20. package/build/personalia/resources/index.d.ts +7 -0
  21. package/build/personalia/resources/index.mjs +7 -0
  22. package/build/personalia/resources/situation/index.d.ts +2 -0
  23. package/build/personalia/resources/situation/index.mjs +2 -0
  24. package/build/personalia/resources/situation/situation.model.d.ts +6 -0
  25. package/build/personalia/resources/situation/situation.model.mjs +46 -0
  26. package/build/personalia/resources/situation/situation.resource.d.ts +2 -0
  27. package/build/personalia/resources/situation/situation.resource.mjs +47 -0
  28. package/build/personalia/resources/situation/situation.views.d.ts +108 -0
  29. package/build/personalia/resources/situation/situation.views.mjs +155 -0
  30. package/build/personalia/resources/situationType/index.d.ts +2 -0
  31. package/build/personalia/resources/situationType/index.mjs +2 -0
  32. package/build/personalia/resources/situationType/situationType.model.d.ts +6 -0
  33. package/build/personalia/resources/situationType/situationType.model.mjs +20 -0
  34. package/build/personalia/resources/situationType/situationType.resource.d.ts +2 -0
  35. package/build/personalia/resources/situationType/situationType.resource.mjs +26 -0
  36. package/build/personalia/resources/situationType/situationType.views.d.ts +36 -0
  37. package/build/personalia/resources/situationType/situationType.views.mjs +12 -0
  38. package/build/personalia/resources/staff/index.d.ts +2 -0
  39. package/build/personalia/resources/staff/index.mjs +2 -0
  40. package/build/personalia/resources/staff/staff.model.d.ts +6 -0
  41. package/build/personalia/resources/staff/staff.model.mjs +41 -0
  42. package/build/personalia/resources/staff/staff.resource.d.ts +2 -0
  43. package/build/personalia/resources/staff/staff.resource.mjs +45 -0
  44. package/build/personalia/resources/staff/staff.views.d.ts +72 -0
  45. package/build/personalia/resources/staff/staff.views.mjs +49 -0
  46. package/build/personalia/resources/submission/index.d.ts +2 -0
  47. package/build/personalia/resources/submission/index.mjs +2 -0
  48. package/build/personalia/resources/submission/submission.model.d.ts +6 -0
  49. package/build/personalia/resources/submission/submission.model.mjs +74 -0
  50. package/build/personalia/resources/submission/submission.resource.d.ts +2 -0
  51. package/build/personalia/resources/submission/submission.resource.mjs +80 -0
  52. package/build/personalia/resources/submission/submission.views.d.ts +180 -0
  53. package/build/personalia/resources/submission/submission.views.mjs +316 -0
  54. package/build/personalia/resources/submissionType/index.d.ts +2 -0
  55. package/build/personalia/resources/submissionType/index.mjs +2 -0
  56. package/build/personalia/resources/submissionType/submissionType.model.d.ts +6 -0
  57. package/build/personalia/resources/submissionType/submissionType.model.mjs +21 -0
  58. package/build/personalia/resources/submissionType/submissionType.resource.d.ts +2 -0
  59. package/build/personalia/resources/submissionType/submissionType.resource.mjs +26 -0
  60. package/build/personalia/resources/submissionType/submissionType.views.d.ts +36 -0
  61. package/build/personalia/resources/submissionType/submissionType.views.mjs +9 -0
  62. package/build/personalia/resources/task/index.d.ts +2 -0
  63. package/build/personalia/resources/task/index.mjs +2 -0
  64. package/build/personalia/resources/task/task.model.d.ts +6 -0
  65. package/build/personalia/resources/task/task.model.mjs +60 -0
  66. package/build/personalia/resources/task/task.resource.d.ts +2 -0
  67. package/build/personalia/resources/task/task.resource.mjs +44 -0
  68. package/build/personalia/resources/task/task.views.d.ts +108 -0
  69. package/build/personalia/resources/task/task.views.mjs +159 -0
  70. package/build/personalia/views.mjs +1 -0
  71. package/package.json +12 -12
@@ -0,0 +1,180 @@
1
+ export declare const SubmissionCollectionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
+ [key: string]: any;
3
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
4
+ export declare const SubmissionSingleView: import("vue").DefineComponent<{
5
+ id: {
6
+ type: StringConstructor;
7
+ default: null;
8
+ };
9
+ isNew: {
10
+ type: BooleanConstructor;
11
+ default: null;
12
+ };
13
+ isMain: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
+ [key: string]: any;
19
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ id: {
21
+ type: StringConstructor;
22
+ default: null;
23
+ };
24
+ isNew: {
25
+ type: BooleanConstructor;
26
+ default: null;
27
+ };
28
+ isMain: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ }>>, {
33
+ id: string;
34
+ isNew: boolean;
35
+ isMain: boolean;
36
+ }, {}>;
37
+ export declare const SubmissionCollectionStaffView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
+ [key: string]: any;
39
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
40
+ export declare const SubmissionSingleStaffView: import("vue").DefineComponent<{
41
+ id: {
42
+ type: StringConstructor;
43
+ default: null;
44
+ };
45
+ isNew: {
46
+ type: BooleanConstructor;
47
+ default: null;
48
+ };
49
+ isMain: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
54
+ [key: string]: any;
55
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
56
+ id: {
57
+ type: StringConstructor;
58
+ default: null;
59
+ };
60
+ isNew: {
61
+ type: BooleanConstructor;
62
+ default: null;
63
+ };
64
+ isMain: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ }>>, {
69
+ id: string;
70
+ isNew: boolean;
71
+ isMain: boolean;
72
+ }, {}>;
73
+ export declare const SubmissionCollectionFollowUpView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
74
+ [key: string]: any;
75
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
76
+ export declare const SubmissionSingleFollowUpView: import("vue").DefineComponent<{
77
+ id: {
78
+ type: StringConstructor;
79
+ default: null;
80
+ };
81
+ isNew: {
82
+ type: BooleanConstructor;
83
+ default: null;
84
+ };
85
+ isMain: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
90
+ [key: string]: any;
91
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
92
+ id: {
93
+ type: StringConstructor;
94
+ default: null;
95
+ };
96
+ isNew: {
97
+ type: BooleanConstructor;
98
+ default: null;
99
+ };
100
+ isMain: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ }>>, {
105
+ id: string;
106
+ isNew: boolean;
107
+ isMain: boolean;
108
+ }, {}>;
109
+ export declare const SubmissionCollectionAuditView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
110
+ [key: string]: any;
111
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
112
+ export declare const SubmissionSingleAuditView: import("vue").DefineComponent<{
113
+ id: {
114
+ type: StringConstructor;
115
+ default: null;
116
+ };
117
+ isNew: {
118
+ type: BooleanConstructor;
119
+ default: null;
120
+ };
121
+ isMain: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ };
125
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
126
+ [key: string]: any;
127
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
128
+ id: {
129
+ type: StringConstructor;
130
+ default: null;
131
+ };
132
+ isNew: {
133
+ type: BooleanConstructor;
134
+ default: null;
135
+ };
136
+ isMain: {
137
+ type: BooleanConstructor;
138
+ default: boolean;
139
+ };
140
+ }>>, {
141
+ id: string;
142
+ isNew: boolean;
143
+ isMain: boolean;
144
+ }, {}>;
145
+ export declare const SubmissionCollectionDecisionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
146
+ [key: string]: any;
147
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
148
+ export declare const SubmissionSingleDecisionView: import("vue").DefineComponent<{
149
+ id: {
150
+ type: StringConstructor;
151
+ default: null;
152
+ };
153
+ isNew: {
154
+ type: BooleanConstructor;
155
+ default: null;
156
+ };
157
+ isMain: {
158
+ type: BooleanConstructor;
159
+ default: boolean;
160
+ };
161
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
162
+ [key: string]: any;
163
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
164
+ id: {
165
+ type: StringConstructor;
166
+ default: null;
167
+ };
168
+ isNew: {
169
+ type: BooleanConstructor;
170
+ default: null;
171
+ };
172
+ isMain: {
173
+ type: BooleanConstructor;
174
+ default: boolean;
175
+ };
176
+ }>>, {
177
+ id: string;
178
+ isNew: boolean;
179
+ isMain: boolean;
180
+ }, {}>;
@@ -0,0 +1,316 @@
1
+ import { useSingle } from "@neon.id/context";
2
+ import { NeonButton } from "@neon.id/interfaces";
3
+ import { ResourceUtil } from "@neon.id/office";
4
+ import { Query } from "@neon.id/query";
5
+ import { useOperasional } from "@neutron.co.id/operasional-interfaces";
6
+ import { computed, h } from "vue";
7
+ export const SubmissionCollectionView = ResourceUtil.createCollection({
8
+ name: "default",
9
+ definition: "neu:personalia:submission"
10
+ });
11
+ export const SubmissionSingleView = ResourceUtil.createSingle({
12
+ name: "default",
13
+ definition: "neu:personalia:submission",
14
+ slots: {
15
+ actions: {
16
+ setup: getButton
17
+ }
18
+ }
19
+ });
20
+ export const SubmissionCollectionStaffView = ResourceUtil.createCollection({
21
+ name: "staff",
22
+ definition: "neu:personalia:submission",
23
+ title: "Pengajuan",
24
+ icon: "clipboard-list-check",
25
+ scope: "staff",
26
+ path: "/pengajuan/staff-submission",
27
+ single: {
28
+ view: "staff",
29
+ peeks: ["side"]
30
+ },
31
+ columns: [
32
+ "status",
33
+ "type",
34
+ "specifications",
35
+ "title",
36
+ "raisedAt",
37
+ "branches",
38
+ "submissionStaffs",
39
+ "raiseStaffs",
40
+ "decideStaffs",
41
+ "followUpStaffs",
42
+ "nominal"
43
+ ],
44
+ filters: [
45
+ "status",
46
+ "type",
47
+ "specifications",
48
+ "branches",
49
+ "submissionStaffs",
50
+ "raiseStaffs",
51
+ "decideStaffs",
52
+ "followUpStaffs"
53
+ ],
54
+ sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"],
55
+ query: () => {
56
+ const { staff } = useOperasional();
57
+ return Query.define({
58
+ filter: {
59
+ handle: "branchIds",
60
+ operator: "in",
61
+ value: staff.value?.branchIds
62
+ },
63
+ sort: [{ handle: "createdAt", direction: "descending" }]
64
+ });
65
+ }
66
+ });
67
+ export const SubmissionSingleStaffView = ResourceUtil.createSingle({
68
+ name: "staff",
69
+ definition: "neu:personalia:submission",
70
+ title: "Pengajuan",
71
+ slots: {
72
+ default: "staff",
73
+ actions: {
74
+ setup: getButton
75
+ }
76
+ }
77
+ });
78
+ export const SubmissionCollectionFollowUpView = ResourceUtil.createCollection({
79
+ name: "follow-up",
80
+ definition: "neu:personalia:submission",
81
+ title: "Tindak Lanjut",
82
+ icon: "toolbox",
83
+ scope: "follow-up",
84
+ path: "/pengajuan/follow-up-submission",
85
+ single: {
86
+ view: "follow-up",
87
+ peeks: ["side"]
88
+ },
89
+ columns: [
90
+ "status",
91
+ "type",
92
+ "specifications",
93
+ "title",
94
+ "updatedAt",
95
+ "branches",
96
+ "submissionStaffs",
97
+ "raiseStaffs",
98
+ "decideStaffs",
99
+ "followUpStaffs",
100
+ "nominal"
101
+ ],
102
+ filters: [
103
+ "status",
104
+ "type",
105
+ "specifications",
106
+ "branches",
107
+ "submissionStaffs",
108
+ "raiseStaffs",
109
+ "decideStaffs",
110
+ "followUpStaffs"
111
+ ],
112
+ sorts: ["updatedAt", "createdAt", "updater"],
113
+ query: () => {
114
+ const { staff } = useOperasional();
115
+ return Query.define({
116
+ filter: [
117
+ {
118
+ handle: "status",
119
+ operator: "in",
120
+ value: ["approved", "monitored", "discontinued", "resolved"]
121
+ },
122
+ {
123
+ handle: "branchIds",
124
+ operator: "in",
125
+ value: staff.value?.branchIds
126
+ }
127
+ ],
128
+ sort: [{ handle: "createdAt", direction: "descending" }]
129
+ });
130
+ },
131
+ excludes: ["create"]
132
+ });
133
+ export const SubmissionSingleFollowUpView = ResourceUtil.createSingle({
134
+ name: "follow-up",
135
+ definition: "neu:personalia:submission",
136
+ title: "Tindak Lanjut",
137
+ slots: {
138
+ default: "follow-up",
139
+ actions: {
140
+ setup: getButton
141
+ }
142
+ }
143
+ });
144
+ export const SubmissionCollectionAuditView = ResourceUtil.createCollection({
145
+ name: "audit",
146
+ definition: "neu:personalia:submission",
147
+ title: "Pengajuan",
148
+ icon: "clipboard-list-check",
149
+ scope: "audit",
150
+ path: "/pengajuan/audit-submission",
151
+ single: {
152
+ view: "audit",
153
+ peeks: ["side"]
154
+ },
155
+ columns: [
156
+ "status",
157
+ "type",
158
+ "specifications",
159
+ "title",
160
+ "raisedAt",
161
+ "branches",
162
+ "submissionStaffs",
163
+ "raiseStaffs",
164
+ "decideStaffs",
165
+ "followUpStaffs",
166
+ "nominal"
167
+ ],
168
+ filters: [
169
+ "status",
170
+ "type",
171
+ "specifications",
172
+ "branches",
173
+ "submissionStaffs",
174
+ "raiseStaffs",
175
+ "decideStaffs",
176
+ "followUpStaffs"
177
+ ],
178
+ sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"],
179
+ query: () => {
180
+ const { staff } = useOperasional();
181
+ return Query.define({
182
+ filter: [
183
+ {
184
+ handle: "branchIds",
185
+ operator: "in",
186
+ value: staff.value?.branchIds
187
+ }
188
+ ],
189
+ sort: [{ handle: "createdAt", direction: "descending" }]
190
+ });
191
+ }
192
+ });
193
+ export const SubmissionSingleAuditView = ResourceUtil.createSingle({
194
+ name: "audit",
195
+ definition: "neu:personalia:submission",
196
+ title: "Pengajuan",
197
+ slots: {
198
+ default: "audit",
199
+ actions: {
200
+ setup: getButton
201
+ }
202
+ }
203
+ });
204
+ export const SubmissionCollectionDecisionView = ResourceUtil.createCollection({
205
+ name: "decision",
206
+ definition: "neu:personalia:submission",
207
+ title: "Pengajuan",
208
+ icon: "clipboard-list-check",
209
+ scope: "decision",
210
+ path: "/pengajuan/decision-submission",
211
+ single: {
212
+ view: "decision",
213
+ peeks: ["side"]
214
+ },
215
+ columns: [
216
+ "status",
217
+ "type",
218
+ "specifications",
219
+ "title",
220
+ "raisedAt",
221
+ "branches",
222
+ "submissionStaffs",
223
+ "raiseStaffs",
224
+ "decideStaffs",
225
+ "followUpStaffs",
226
+ "nominal"
227
+ ],
228
+ filters: [
229
+ "status",
230
+ "type",
231
+ "specifications",
232
+ "branches",
233
+ "submissionStaffs",
234
+ "raiseStaffs",
235
+ "decideStaffs",
236
+ "followUpStaffs"
237
+ ],
238
+ sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"],
239
+ query: () => {
240
+ return Query.define({
241
+ sort: [{ handle: "createdAt", direction: "descending" }]
242
+ });
243
+ }
244
+ });
245
+ export const SubmissionSingleDecisionView = ResourceUtil.createSingle({
246
+ name: "decision",
247
+ definition: "neu:personalia:submission",
248
+ title: "Pengajuan",
249
+ slots: {
250
+ default: "decision",
251
+ actions: {
252
+ setup: getButton
253
+ }
254
+ }
255
+ });
256
+ function getButton() {
257
+ const { isNew, values, isLoading, syncOne } = useSingle();
258
+ const actions = {
259
+ prepared: {
260
+ iconLeft: "pen-line",
261
+ label: "Disiapkan",
262
+ color: "base"
263
+ },
264
+ raised: {
265
+ iconLeft: "arrow-up-from-line",
266
+ label: "Dinaikkan",
267
+ color: "dark"
268
+ },
269
+ processed: {
270
+ iconLeft: "spinner",
271
+ label: "Diproses",
272
+ color: "warning"
273
+ },
274
+ delay: {
275
+ iconLeft: "circle-stop",
276
+ label: "Ditunda",
277
+ color: "danger"
278
+ },
279
+ approved: {
280
+ iconLeft: "list-check",
281
+ label: "Disetujui",
282
+ color: "success"
283
+ },
284
+ monitored: {
285
+ iconLeft: "binoculars",
286
+ label: "Dipantau",
287
+ color: "info"
288
+ },
289
+ discontinued: {
290
+ iconLeft: "ban",
291
+ label: "Dihentikan",
292
+ color: "danger"
293
+ },
294
+ resolved: {
295
+ icon: "file-check",
296
+ label: "Diselesaikan",
297
+ color: "success"
298
+ }
299
+ };
300
+ const action = computed(() => actions[values.value.status]);
301
+ return () => {
302
+ if (isNew.value || !action.value)
303
+ return null;
304
+ return h("div", { class: "px-1 pt-0.5 pb-1" }, [
305
+ h(NeonButton, {
306
+ iconLeft: action.value?.iconLeft,
307
+ label: action.value?.label,
308
+ size: "sm",
309
+ color: action.value?.color,
310
+ isRounded: true,
311
+ isLoading: isLoading.value,
312
+ onClick: syncOne
313
+ })
314
+ ]);
315
+ };
316
+ }
@@ -0,0 +1,2 @@
1
+ export * from './submissionType.views';
2
+ export * from './submissionType.resource';
@@ -0,0 +1,2 @@
1
+ export * from "./submissionType.views.mjs";
2
+ export * from "./submissionType.resource.mjs";
@@ -0,0 +1,6 @@
1
+ export declare const SubmissionTypeModel: import("@neon.id/model").Model<"neu:personalia:submissionType", "name" | "branches">;
2
+ export type TSubmissionTypeModel = typeof SubmissionTypeModel;
3
+ export declare const fragments: {
4
+ item: Schema.SubmissionType;
5
+ detail: Schema.SubmissionType;
6
+ };
@@ -0,0 +1,21 @@
1
+ import { models } from "@neutron.co.id/personalia-models";
2
+ export const SubmissionTypeModel = models.SubmissionTypeModel;
3
+ const item = {
4
+ id: 1,
5
+ display: 1,
6
+ flag: 1,
7
+ name: 1,
8
+ branches: {
9
+ id: 1,
10
+ display: 1,
11
+ name: 1
12
+ }
13
+ };
14
+ const detail = {
15
+ ...item,
16
+ branchIds: 1
17
+ };
18
+ export const fragments = {
19
+ item,
20
+ detail
21
+ };
@@ -0,0 +1,2 @@
1
+ import { Resource } from '@neon.id/context';
2
+ export declare const SubmissionTypeResource: Resource<Schema.SubmissionType, import("@neon.id/model").Model<"neu:personalia:submissionType", "name" | "branches">>;
@@ -0,0 +1,26 @@
1
+ import { Resource } from "@neon.id/context";
2
+ import {
3
+ SubmissionTypeCollectionView,
4
+ SubmissionTypeSingleView
5
+ } from "./submissionType.views.mjs";
6
+ import {
7
+ fragments,
8
+ SubmissionTypeModel
9
+ } from "./submissionType.model.mjs";
10
+ export const SubmissionTypeResource = Resource.define({
11
+ model: SubmissionTypeModel,
12
+ collection: {
13
+ title: "Tipe Pengajuan",
14
+ path: "submissionTypes",
15
+ component: SubmissionTypeCollectionView,
16
+ menu: true,
17
+ displays: ["table"]
18
+ },
19
+ single: {
20
+ path: "submissionTypes/:slug",
21
+ component: SubmissionTypeSingleView
22
+ },
23
+ views: {},
24
+ fragments,
25
+ renders: {}
26
+ });
@@ -0,0 +1,36 @@
1
+ export declare const SubmissionTypeCollectionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
+ [key: string]: any;
3
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
4
+ export declare const SubmissionTypeSingleView: import("vue").DefineComponent<{
5
+ id: {
6
+ type: StringConstructor;
7
+ default: null;
8
+ };
9
+ isNew: {
10
+ type: BooleanConstructor;
11
+ default: null;
12
+ };
13
+ isMain: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
+ [key: string]: any;
19
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ id: {
21
+ type: StringConstructor;
22
+ default: null;
23
+ };
24
+ isNew: {
25
+ type: BooleanConstructor;
26
+ default: null;
27
+ };
28
+ isMain: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ }>>, {
33
+ id: string;
34
+ isNew: boolean;
35
+ isMain: boolean;
36
+ }, {}>;
@@ -0,0 +1,9 @@
1
+ import { ResourceUtil } from "@neon.id/office";
2
+ export const SubmissionTypeCollectionView = ResourceUtil.createCollection({
3
+ name: "default",
4
+ definition: "neu:personalia:submissionType"
5
+ });
6
+ export const SubmissionTypeSingleView = ResourceUtil.createSingle({
7
+ name: "default",
8
+ definition: "neu:personalia:submissionType"
9
+ });
@@ -0,0 +1,2 @@
1
+ export * from './task.views';
2
+ export * from './task.resource';
@@ -0,0 +1,2 @@
1
+ export * from "./task.views.mjs";
2
+ export * from "./task.resource.mjs";
@@ -0,0 +1,6 @@
1
+ export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "user" | "status" | "branches" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "estimatedHourByDay" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd" | "images">;
2
+ export type TTaskModel = typeof TaskModel;
3
+ export declare const fragments: {
4
+ item: Schema.Task;
5
+ detail: Schema.Task;
6
+ };
@@ -0,0 +1,60 @@
1
+ import { models } from "@neutron.co.id/personalia-models";
2
+ export const TaskModel = models.TaskModel;
3
+ const item = {
4
+ id: 1,
5
+ display: 1,
6
+ flag: 1,
7
+ taskName: 1,
8
+ internalServiceDescription: 1,
9
+ externalServiceDescription: 1,
10
+ user: {
11
+ id: 1,
12
+ display: 1
13
+ },
14
+ branches: {
15
+ id: 1,
16
+ display: 1
17
+ },
18
+ giveAssignments: {
19
+ id: 1,
20
+ display: 1
21
+ },
22
+ doingAssignments: {
23
+ id: 1,
24
+ display: 1
25
+ },
26
+ supervisingAssignments: {
27
+ id: 1,
28
+ display: 1
29
+ },
30
+ helpAssignments: {
31
+ id: 1,
32
+ display: 1
33
+ },
34
+ employeeNameTrimmed: 1,
35
+ estimatedStartDate: 1,
36
+ estimatedEndDate: 1,
37
+ estimatedHourDoingAssignment: 1,
38
+ estimatedHourCommunicationAssignment: 1,
39
+ estimatedHourCognitiveAssignment: 1,
40
+ estimatedHourCreativeAssignment: 1,
41
+ estimatedHourByDay: 1,
42
+ priority: 1,
43
+ status: 1,
44
+ estimatedRealizedAssignmentStart: 1,
45
+ estimatedRealizedAssignmentEnd: 1,
46
+ resultAssignment: 1
47
+ };
48
+ const detail = {
49
+ ...item,
50
+ userId: 1,
51
+ branchIds: 1,
52
+ givingAssignmentIds: 1,
53
+ doingAssignmentIds: 1,
54
+ supervisingAssignmentIds: 1,
55
+ helpAssignmentIds: 1
56
+ };
57
+ export const fragments = {
58
+ item,
59
+ detail
60
+ };
@@ -0,0 +1,2 @@
1
+ import { Resource } from '@neon.id/context';
2
+ export declare const TaskResource: Resource<Schema.Task, import("@neon.id/model").Model<"neu:personalia:task", "user" | "status" | "branches" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "estimatedHourByDay" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd" | "images">>;