@neutron.co.id/operasional-modules 1.6.4 → 1.7.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.
- package/build/personalia/index.d.ts +3 -1
- package/build/personalia/index.mjs +2 -29
- package/build/personalia/module.mjs +14 -2
- package/build/personalia/plugin.mjs +12 -4
- package/build/personalia/resources/checkIn/checkIn.model.d.ts +1 -1
- package/build/personalia/resources/checkIn/checkIn.resource.d.ts +1 -1
- package/build/personalia/resources/index.d.ts +6 -0
- package/build/personalia/resources/index.mjs +6 -0
- package/build/personalia/resources/plan/index.d.ts +2 -0
- package/build/personalia/resources/plan/index.mjs +2 -0
- package/build/personalia/resources/plan/plan.model.d.ts +6 -0
- package/build/personalia/resources/plan/plan.model.mjs +56 -0
- package/build/personalia/resources/plan/plan.resource.d.ts +2 -0
- package/build/personalia/resources/plan/plan.resource.mjs +34 -0
- package/build/personalia/resources/plan/plan.views.d.ts +72 -0
- package/build/personalia/resources/plan/plan.views.mjs +57 -0
- package/build/personalia/resources/planType/index.d.ts +2 -0
- package/build/personalia/resources/planType/index.mjs +2 -0
- package/build/personalia/resources/planType/planType.model.d.ts +6 -0
- package/build/personalia/resources/planType/planType.model.mjs +31 -0
- package/build/personalia/resources/planType/planType.resource.d.ts +2 -0
- package/build/personalia/resources/planType/planType.resource.mjs +20 -0
- package/build/personalia/resources/planType/planType.views.d.ts +36 -0
- package/build/personalia/resources/planType/planType.views.mjs +12 -0
- package/build/personalia/resources/progress/index.d.ts +2 -0
- package/build/personalia/resources/progress/index.mjs +2 -0
- package/build/personalia/resources/progress/progress.model.d.ts +6 -0
- package/build/personalia/resources/progress/progress.model.mjs +48 -0
- package/build/personalia/resources/progress/progress.resource.d.ts +2 -0
- package/build/personalia/resources/progress/progress.resource.mjs +34 -0
- package/build/personalia/resources/progress/progress.views.d.ts +102 -0
- package/build/personalia/resources/progress/progress.views.mjs +59 -0
- package/build/personalia/resources/responsibility/index.d.ts +2 -0
- package/build/personalia/resources/responsibility/index.mjs +2 -0
- package/build/personalia/resources/responsibility/responsibility.model.d.ts +6 -0
- package/build/personalia/resources/responsibility/responsibility.model.mjs +51 -0
- package/build/personalia/resources/responsibility/responsibility.resource.d.ts +2 -0
- package/build/personalia/resources/responsibility/responsibility.resource.mjs +37 -0
- package/build/personalia/resources/responsibility/responsibility.views.d.ts +72 -0
- package/build/personalia/resources/responsibility/responsibility.views.mjs +63 -0
- package/build/personalia/resources/responsibilityType/index.d.ts +2 -0
- package/build/personalia/resources/responsibilityType/index.mjs +2 -0
- package/build/personalia/resources/responsibilityType/responsibilityType.model.d.ts +6 -0
- package/build/personalia/resources/responsibilityType/responsibilityType.model.mjs +21 -0
- package/build/personalia/resources/responsibilityType/responsibilityType.resource.d.ts +2 -0
- package/build/personalia/resources/responsibilityType/responsibilityType.resource.mjs +26 -0
- package/build/personalia/resources/responsibilityType/responsibilityType.views.d.ts +36 -0
- package/build/personalia/resources/responsibilityType/responsibilityType.views.mjs +12 -0
- package/build/personalia/resources/staff/staff.model.d.ts +1 -1
- package/build/personalia/resources/staff/staff.resource.d.ts +1 -1
- package/build/personalia/resources/submission/submission.views.mjs +9 -26
- package/build/personalia/resources/submissionType/submissionType.views.mjs +4 -1
- package/build/personalia/resources/target/index.d.ts +2 -0
- package/build/personalia/resources/target/index.mjs +2 -0
- package/build/personalia/resources/target/target.model.d.ts +6 -0
- package/build/personalia/resources/target/target.model.mjs +43 -0
- package/build/personalia/resources/target/target.resource.d.ts +2 -0
- package/build/personalia/resources/target/target.resource.mjs +35 -0
- package/build/personalia/resources/target/target.views.d.ts +72 -0
- package/build/personalia/resources/target/target.views.mjs +101 -0
- package/build/personalia/views.mjs +2 -1
- package/package.json +8 -12
|
@@ -1,42 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
addComponent,
|
|
3
|
-
addPlugin,
|
|
4
|
-
createResolver,
|
|
5
|
-
defineNuxtModule
|
|
6
|
-
} from "@nuxt/kit";
|
|
7
|
-
import views from "./views.mjs";
|
|
1
|
+
import { addPlugin, createResolver, defineNuxtModule } from "@nuxt/kit";
|
|
8
2
|
export default defineNuxtModule({
|
|
9
3
|
meta: {
|
|
10
|
-
/**
|
|
11
|
-
* Module identifier, will be used in Nuxt.
|
|
12
|
-
* @example '@neutron.co.id/plan-plan'
|
|
13
|
-
* @example '@neon.id/belajar-course'
|
|
14
|
-
* @example '@neutron.co.id/tempat-place'
|
|
15
|
-
*/
|
|
16
4
|
name: "@neutron.co.id/operasional-personalia",
|
|
17
|
-
/**
|
|
18
|
-
* Module config key,
|
|
19
|
-
* will be used to set options in nuxt.config.ts.
|
|
20
|
-
* @example 'neu:plan:plan'
|
|
21
|
-
* @example 'neo:belajar:course'
|
|
22
|
-
* @example 'neu:tempat;place'
|
|
23
|
-
*/
|
|
24
5
|
configKey: "neu:operasional:personalia",
|
|
25
6
|
compatibility: { nuxt: "^3.0.0" }
|
|
26
7
|
},
|
|
27
8
|
defaults: {},
|
|
28
|
-
setup() {
|
|
9
|
+
async setup() {
|
|
29
10
|
console.log("module:neu:operasional:personalia");
|
|
30
11
|
const { resolve } = createResolver(import.meta.url);
|
|
31
12
|
const plugin = resolve("./plugin");
|
|
32
13
|
addPlugin(plugin);
|
|
33
|
-
for (const view of views) {
|
|
34
|
-
addComponent({
|
|
35
|
-
name: view,
|
|
36
|
-
export: view,
|
|
37
|
-
filePath: resolve("./resources"),
|
|
38
|
-
global: true
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
14
|
}
|
|
42
15
|
});
|
|
@@ -6,7 +6,13 @@ import {
|
|
|
6
6
|
SituationResource,
|
|
7
7
|
CheckInResource,
|
|
8
8
|
SubmissionResource,
|
|
9
|
-
SubmissionTypeResource
|
|
9
|
+
SubmissionTypeResource,
|
|
10
|
+
ResponsibilityTypeResource,
|
|
11
|
+
ResponsibilityResource,
|
|
12
|
+
TargetResource,
|
|
13
|
+
PlanTypeResource,
|
|
14
|
+
PlanResource,
|
|
15
|
+
ProgressResource
|
|
10
16
|
} from "./resources/index.mjs";
|
|
11
17
|
export const PersonaliaModule = Module.define({
|
|
12
18
|
definition: "neu:operasional:personalia",
|
|
@@ -20,6 +26,12 @@ export const PersonaliaModule = Module.define({
|
|
|
20
26
|
SituationResource,
|
|
21
27
|
CheckInResource,
|
|
22
28
|
SubmissionResource,
|
|
23
|
-
SubmissionTypeResource
|
|
29
|
+
SubmissionTypeResource,
|
|
30
|
+
ResponsibilityTypeResource,
|
|
31
|
+
ResponsibilityResource,
|
|
32
|
+
TargetResource,
|
|
33
|
+
PlanTypeResource,
|
|
34
|
+
PlanResource,
|
|
35
|
+
ProgressResource
|
|
24
36
|
]
|
|
25
37
|
});
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
import { OfficePage } from "#components";
|
|
2
|
+
import { defineNuxtPlugin, useRouter } from "#imports";
|
|
1
3
|
import { useModuleStore } from "@neon.id/context";
|
|
2
4
|
import { PersonaliaModule } from "./module.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
export default defineNuxtPlugin(() => {
|
|
6
|
-
console.log("plugin:personalia");
|
|
5
|
+
import { defineAsyncComponent } from "vue";
|
|
6
|
+
import * as views from "./views.mjs";
|
|
7
|
+
export default defineNuxtPlugin((app) => {
|
|
8
|
+
console.log("plugin:neu:operasional:personalia");
|
|
7
9
|
const store = useModuleStore();
|
|
8
10
|
const router = useRouter();
|
|
9
11
|
PersonaliaModule.register(store, router, OfficePage);
|
|
12
|
+
for (const key in views) {
|
|
13
|
+
const component = defineAsyncComponent(async () => {
|
|
14
|
+
return import("./views.mjs").then((r) => r[key]);
|
|
15
|
+
});
|
|
16
|
+
app.vueApp.component(key, component);
|
|
17
|
+
}
|
|
10
18
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CheckInModel: import("@neon.id/model").Model<"neu:tempat:checkIn", "type" | "checkInAt" | "staff" | "building" | "user" | "student" | "teacher" | "informationCheckIn" | "note">;
|
|
1
|
+
export declare const CheckInModel: import("@neon.id/model").Model<"neu:tempat:checkIn", "type" | "checkInAt" | "staff" | "building" | "user" | "branch" | "student" | "teacher" | "informationCheckIn" | "note">;
|
|
2
2
|
export type TCheckInModel = typeof CheckInModel;
|
|
3
3
|
export declare const fragments: {
|
|
4
4
|
item: Schema.CheckIn;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
|
-
export declare const CheckInResource: Resource<Schema.CheckIn, import("@neon.id/model").Model<"neu:tempat:checkIn", "type" | "checkInAt" | "staff" | "building" | "user" | "student" | "teacher" | "informationCheckIn" | "note">>;
|
|
2
|
+
export declare const CheckInResource: Resource<Schema.CheckIn, import("@neon.id/model").Model<"neu:tempat:checkIn", "type" | "checkInAt" | "staff" | "building" | "user" | "branch" | "student" | "teacher" | "informationCheckIn" | "note">>;
|
|
@@ -5,3 +5,9 @@ export * from './situationType';
|
|
|
5
5
|
export * from './task';
|
|
6
6
|
export * from './submission';
|
|
7
7
|
export * from './submissionType';
|
|
8
|
+
export * from './responsibilityType';
|
|
9
|
+
export * from './responsibility';
|
|
10
|
+
export * from './target';
|
|
11
|
+
export * from './planType';
|
|
12
|
+
export * from './plan';
|
|
13
|
+
export * from './progress';
|
|
@@ -5,3 +5,9 @@ export * from "./situationType/index.mjs";
|
|
|
5
5
|
export * from "./task/index.mjs";
|
|
6
6
|
export * from "./submission/index.mjs";
|
|
7
7
|
export * from "./submissionType/index.mjs";
|
|
8
|
+
export * from "./responsibilityType/index.mjs";
|
|
9
|
+
export * from "./responsibility/index.mjs";
|
|
10
|
+
export * from "./target/index.mjs";
|
|
11
|
+
export * from "./planType/index.mjs";
|
|
12
|
+
export * from "./plan/index.mjs";
|
|
13
|
+
export * from "./progress/index.mjs";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const PlanModel: import("@neon.id/model").Model<"neu:personalia:plan", "name" | "branches" | "staffs" | "detail" | "target" | "stages" | "startedAt" | "endedAt" | "domain" | "planTypes">;
|
|
2
|
+
export type TPlanModel = typeof PlanModel;
|
|
3
|
+
export declare const fragments: {
|
|
4
|
+
item: Schema.Plan;
|
|
5
|
+
detail: Schema.Plan;
|
|
6
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { models } from "@neutron.co.id/personalia-models";
|
|
2
|
+
export const PlanModel = models.PlanModel;
|
|
3
|
+
const item = {
|
|
4
|
+
id: 1,
|
|
5
|
+
display: 1,
|
|
6
|
+
flag: 1,
|
|
7
|
+
updatedAt: 1,
|
|
8
|
+
updatedBy: 1,
|
|
9
|
+
name: 1,
|
|
10
|
+
detail: 1,
|
|
11
|
+
branches: {
|
|
12
|
+
id: 1,
|
|
13
|
+
name: 1,
|
|
14
|
+
display: 1,
|
|
15
|
+
flag: 1
|
|
16
|
+
},
|
|
17
|
+
domain: 1,
|
|
18
|
+
startedAt: 1,
|
|
19
|
+
endedAt: 1,
|
|
20
|
+
planTypes: {
|
|
21
|
+
id: 1,
|
|
22
|
+
name: 1,
|
|
23
|
+
display: 1,
|
|
24
|
+
flag: 1
|
|
25
|
+
},
|
|
26
|
+
stages: {
|
|
27
|
+
id: 1,
|
|
28
|
+
name: 1,
|
|
29
|
+
display: 1,
|
|
30
|
+
flag: 1
|
|
31
|
+
},
|
|
32
|
+
target: {
|
|
33
|
+
id: 1,
|
|
34
|
+
name: 1,
|
|
35
|
+
display: 1,
|
|
36
|
+
flag: 1
|
|
37
|
+
},
|
|
38
|
+
staffs: {
|
|
39
|
+
id: 1,
|
|
40
|
+
name: 1,
|
|
41
|
+
display: 1,
|
|
42
|
+
flag: 1
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const detail = {
|
|
46
|
+
...item,
|
|
47
|
+
branchIds: 1,
|
|
48
|
+
planTypeIds: 1,
|
|
49
|
+
stageIds: 1,
|
|
50
|
+
targetIds: 1,
|
|
51
|
+
staffIds: 1
|
|
52
|
+
};
|
|
53
|
+
export const fragments = {
|
|
54
|
+
item,
|
|
55
|
+
detail
|
|
56
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
PlanCollectionView,
|
|
4
|
+
PlanSingleView,
|
|
5
|
+
PlanCollectionStaffView,
|
|
6
|
+
PlanSingleStaffView
|
|
7
|
+
} from "./plan.views.mjs";
|
|
8
|
+
import { fragments, PlanModel } from "./plan.model.mjs";
|
|
9
|
+
export const PlanResource = Resource.define({
|
|
10
|
+
model: PlanModel,
|
|
11
|
+
collection: {
|
|
12
|
+
title: "Rencana",
|
|
13
|
+
path: "plans",
|
|
14
|
+
component: PlanCollectionView,
|
|
15
|
+
menu: true,
|
|
16
|
+
displays: ["table"]
|
|
17
|
+
},
|
|
18
|
+
single: {
|
|
19
|
+
path: "plans/:slug",
|
|
20
|
+
component: PlanSingleView
|
|
21
|
+
},
|
|
22
|
+
views: {
|
|
23
|
+
planStaff: {
|
|
24
|
+
path: "/penugasan/staff-plans",
|
|
25
|
+
component: PlanCollectionStaffView
|
|
26
|
+
},
|
|
27
|
+
planStaffSingle: {
|
|
28
|
+
path: "/penugasan/staff-plans/:slug",
|
|
29
|
+
component: PlanSingleStaffView
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
fragments,
|
|
33
|
+
renders: {}
|
|
34
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare const PlanCollectionView: 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 PlanSingleView: 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 PlanCollectionStaffView: 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 PlanSingleStaffView: 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
|
+
}, {}>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
import { Query } from "@neon.id/query";
|
|
3
|
+
import { useOperasional } from "@neutron.co.id/operasional-interfaces";
|
|
4
|
+
export const PlanCollectionView = ResourceUtil.createCollection({
|
|
5
|
+
name: "default",
|
|
6
|
+
definition: "neu:personalia:plan",
|
|
7
|
+
single: {
|
|
8
|
+
peeks: ["modal"]
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export const PlanSingleView = ResourceUtil.createSingle({
|
|
12
|
+
name: "default",
|
|
13
|
+
definition: "neu:personalia:plan"
|
|
14
|
+
});
|
|
15
|
+
export const PlanCollectionStaffView = ResourceUtil.createCollection({
|
|
16
|
+
name: "staff",
|
|
17
|
+
definition: "neu:personalia:plan",
|
|
18
|
+
title: "Rencana",
|
|
19
|
+
icon: "seedling",
|
|
20
|
+
scope: "staff",
|
|
21
|
+
path: "/penugasan/staff-plans",
|
|
22
|
+
single: {
|
|
23
|
+
view: "staff",
|
|
24
|
+
peeks: ["modal"]
|
|
25
|
+
},
|
|
26
|
+
filters: ["branches", "domain", "planTypes", "stages", "target"],
|
|
27
|
+
sorts: ["startedAt", "endedAt", "createdAt", "updatedAt"],
|
|
28
|
+
columns: [
|
|
29
|
+
"branches",
|
|
30
|
+
"name",
|
|
31
|
+
"startedAt",
|
|
32
|
+
"endedAt",
|
|
33
|
+
"domain",
|
|
34
|
+
"planTypes",
|
|
35
|
+
"stages",
|
|
36
|
+
"target"
|
|
37
|
+
],
|
|
38
|
+
query: () => {
|
|
39
|
+
const { staff } = useOperasional();
|
|
40
|
+
return Query.define({
|
|
41
|
+
filter: {
|
|
42
|
+
handle: "branchIds",
|
|
43
|
+
operator: "in",
|
|
44
|
+
value: staff.value?.branchIds
|
|
45
|
+
},
|
|
46
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
47
|
+
});
|
|
48
|
+
},
|
|
49
|
+
excludes: ["create"]
|
|
50
|
+
});
|
|
51
|
+
export const PlanSingleStaffView = ResourceUtil.createSingle({
|
|
52
|
+
name: "staff",
|
|
53
|
+
definition: "neu:personalia:plan",
|
|
54
|
+
slots: {
|
|
55
|
+
default: "staff"
|
|
56
|
+
}
|
|
57
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const PlanTypeModel: import("@neon.id/model").Model<"neu:personalia:planType", "name" | "branches" | "staffs" | "nameStaff" | "domain">;
|
|
2
|
+
export type TPlanTypeModel = typeof PlanTypeModel;
|
|
3
|
+
export declare const fragments: {
|
|
4
|
+
item: Schema.PlanType;
|
|
5
|
+
detail: Schema.PlanType;
|
|
6
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { models } from "@neutron.co.id/personalia-models";
|
|
2
|
+
export const PlanTypeModel = models.PlanTypeModel;
|
|
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
|
+
domain: 1,
|
|
14
|
+
staffs: {
|
|
15
|
+
id: 1,
|
|
16
|
+
display: 1,
|
|
17
|
+
name: 1
|
|
18
|
+
},
|
|
19
|
+
nameStaff: 1,
|
|
20
|
+
createdAt: 1,
|
|
21
|
+
updatedAt: 1
|
|
22
|
+
};
|
|
23
|
+
const detail = {
|
|
24
|
+
...item,
|
|
25
|
+
branchIds: 1,
|
|
26
|
+
staffIds: 1
|
|
27
|
+
};
|
|
28
|
+
export const fragments = {
|
|
29
|
+
item,
|
|
30
|
+
detail
|
|
31
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import { PlanTypeCollectionView, PlanTypeSingleView } from "./planType.views.mjs";
|
|
3
|
+
import { fragments, PlanTypeModel } from "./planType.model.mjs";
|
|
4
|
+
export const PlanTypeResource = Resource.define({
|
|
5
|
+
model: PlanTypeModel,
|
|
6
|
+
collection: {
|
|
7
|
+
title: "Tipe Rencana",
|
|
8
|
+
path: "plan-types",
|
|
9
|
+
component: PlanTypeCollectionView,
|
|
10
|
+
menu: true,
|
|
11
|
+
displays: ["table"]
|
|
12
|
+
},
|
|
13
|
+
single: {
|
|
14
|
+
path: "plan-types/:slug",
|
|
15
|
+
component: PlanTypeSingleView
|
|
16
|
+
},
|
|
17
|
+
views: {},
|
|
18
|
+
fragments,
|
|
19
|
+
renders: {}
|
|
20
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const PlanTypeCollectionView: 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 PlanTypeSingleView: 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,12 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
export const PlanTypeCollectionView = ResourceUtil.createCollection({
|
|
3
|
+
name: "default",
|
|
4
|
+
definition: "neu:personalia:planType",
|
|
5
|
+
single: {
|
|
6
|
+
peeks: ["modal"]
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
export const PlanTypeSingleView = ResourceUtil.createSingle({
|
|
10
|
+
name: "default",
|
|
11
|
+
definition: "neu:personalia:planType"
|
|
12
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ProgressModel: import("@neon.id/model").Model<"neu:personalia:progress", "staff" | "nameStaff" | "submissions" | "detail" | "responsibilities" | "startedAt" | "endedAt" | "plans">;
|
|
2
|
+
export type TProgressModel = typeof ProgressModel;
|
|
3
|
+
export declare const fragments: {
|
|
4
|
+
item: Schema.Progress;
|
|
5
|
+
detail: Schema.Progress;
|
|
6
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { models } from "@neutron.co.id/personalia-models";
|
|
2
|
+
export const ProgressModel = models.ProgressModel;
|
|
3
|
+
const item = {
|
|
4
|
+
id: 1,
|
|
5
|
+
display: 1,
|
|
6
|
+
flag: 1,
|
|
7
|
+
updatedAt: 1,
|
|
8
|
+
updatedBy: 1,
|
|
9
|
+
startedAt: 1,
|
|
10
|
+
endedAt: 1,
|
|
11
|
+
detail: 1,
|
|
12
|
+
responsibilities: {
|
|
13
|
+
id: 1,
|
|
14
|
+
title: 1,
|
|
15
|
+
display: 1,
|
|
16
|
+
flag: 1
|
|
17
|
+
},
|
|
18
|
+
plans: {
|
|
19
|
+
id: 1,
|
|
20
|
+
name: 1,
|
|
21
|
+
display: 1,
|
|
22
|
+
flag: 1
|
|
23
|
+
},
|
|
24
|
+
staff: {
|
|
25
|
+
id: 1,
|
|
26
|
+
name: 1,
|
|
27
|
+
display: 1,
|
|
28
|
+
flag: 1
|
|
29
|
+
},
|
|
30
|
+
nameStaff: 1,
|
|
31
|
+
submissions: {
|
|
32
|
+
id: 1,
|
|
33
|
+
title: 1,
|
|
34
|
+
display: 1,
|
|
35
|
+
flag: 1
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const detail = {
|
|
39
|
+
...item,
|
|
40
|
+
responsibilityIds: 1,
|
|
41
|
+
planIds: 1,
|
|
42
|
+
staffId: 1,
|
|
43
|
+
submissionIds: 1
|
|
44
|
+
};
|
|
45
|
+
export const fragments = {
|
|
46
|
+
item,
|
|
47
|
+
detail
|
|
48
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Resource } from '@neon.id/context';
|
|
2
|
+
export declare const ProgressResource: Resource<Schema.Progress, import("@neon.id/model").Model<"neu:personalia:progress", "staff" | "nameStaff" | "submissions" | "detail" | "responsibilities" | "startedAt" | "endedAt" | "plans">>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
ProgressCollectionView,
|
|
4
|
+
ProgressSingleView,
|
|
5
|
+
ProgressSingleTomorrowView,
|
|
6
|
+
ProgressSingleYesterdayView
|
|
7
|
+
} from "./progress.views.mjs";
|
|
8
|
+
import { fragments, ProgressModel } from "./progress.model.mjs";
|
|
9
|
+
export const ProgressResource = Resource.define({
|
|
10
|
+
model: ProgressModel,
|
|
11
|
+
collection: {
|
|
12
|
+
title: "Progress",
|
|
13
|
+
path: "progresses",
|
|
14
|
+
component: ProgressCollectionView,
|
|
15
|
+
menu: true,
|
|
16
|
+
displays: ["table", "calendar"]
|
|
17
|
+
},
|
|
18
|
+
single: {
|
|
19
|
+
path: "progresses/:slug",
|
|
20
|
+
component: ProgressSingleView
|
|
21
|
+
},
|
|
22
|
+
views: {
|
|
23
|
+
progressTomorrowSingle: {
|
|
24
|
+
path: "/penugasan/tomorrow-progresses/:slug",
|
|
25
|
+
component: ProgressSingleTomorrowView
|
|
26
|
+
},
|
|
27
|
+
progressYesterdaySingle: {
|
|
28
|
+
path: "/penugasan/yesterday-progresses/:slug",
|
|
29
|
+
component: ProgressSingleYesterdayView
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
fragments,
|
|
33
|
+
renders: {}
|
|
34
|
+
});
|