@neutron.co.id/operasional-modules 1.1.1-beta.2 → 1.1.1-beta.4

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 (31) hide show
  1. package/package.json +4 -4
  2. package/build/index.cjs +0 -2
  3. package/build/index.d.ts +0 -2
  4. package/build/index.mjs +0 -1
  5. package/build/personalia/exports.d.ts +0 -1
  6. package/build/personalia/exports.mjs +0 -1
  7. package/build/personalia/index.d.ts +0 -2
  8. package/build/personalia/index.mjs +0 -42
  9. package/build/personalia/module.d.ts +0 -2
  10. package/build/personalia/module.mjs +0 -9
  11. package/build/personalia/plugin.d.ts +0 -2
  12. package/build/personalia/plugin.mjs +0 -10
  13. package/build/personalia/resources/index.d.ts +0 -2
  14. package/build/personalia/resources/index.mjs +0 -2
  15. package/build/personalia/resources/staff/index.d.ts +0 -2
  16. package/build/personalia/resources/staff/index.mjs +0 -2
  17. package/build/personalia/resources/staff/staff.model.d.ts +0 -6
  18. package/build/personalia/resources/staff/staff.model.mjs +0 -36
  19. package/build/personalia/resources/staff/staff.resource.d.ts +0 -2
  20. package/build/personalia/resources/staff/staff.resource.mjs +0 -32
  21. package/build/personalia/resources/staff/staff.views.d.ts +0 -36
  22. package/build/personalia/resources/staff/staff.views.mjs +0 -9
  23. package/build/personalia/resources/task/index.d.ts +0 -2
  24. package/build/personalia/resources/task/index.mjs +0 -2
  25. package/build/personalia/resources/task/task.model.d.ts +0 -6
  26. package/build/personalia/resources/task/task.model.mjs +0 -55
  27. package/build/personalia/resources/task/task.resource.d.ts +0 -2
  28. package/build/personalia/resources/task/task.resource.mjs +0 -44
  29. package/build/personalia/resources/task/task.views.d.ts +0 -108
  30. package/build/personalia/resources/task/task.views.mjs +0 -58
  31. package/build/personalia/views.mjs +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-modules",
3
- "version": "1.1.1-beta.2",
3
+ "version": "1.1.1-beta.4",
4
4
  "description": "Modules of Neutron.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "contributors": [
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@neon.id/context": "0.38.0",
44
44
  "@neon.id/office": "0.23.0",
45
- "@neutron.co.id/personalia-models": "1.2.1-beta.2",
45
+ "@neutron.co.id/personalia-models": "1.2.1-beta.3",
46
46
  "@nuxt/kit": "3.2.3"
47
47
  },
48
48
  "devDependencies": {
@@ -63,11 +63,11 @@
63
63
  "peerDependencies": {
64
64
  "@neon.id/context": "^0.38.0",
65
65
  "@neon.id/office": "^0.23.0",
66
- "@neutron.co.id/personalia-models": "^1.2.1-beta.2",
66
+ "@neutron.co.id/personalia-models": "^1.2.1-beta.3",
67
67
  "@nuxt/kit": "^3.2.3"
68
68
  },
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "build": 12
72
+ "build": 14
73
73
  }
package/build/index.cjs DELETED
@@ -1,2 +0,0 @@
1
- 'use strict';
2
-
package/build/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
-
2
- export { }
package/build/index.mjs DELETED
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
- export * from './resources';
@@ -1 +0,0 @@
1
- export * from "./resources/index.mjs";
@@ -1,2 +0,0 @@
1
- declare const _default: import("@nuxt/schema").NuxtModule<{}>;
2
- export default _default;
@@ -1,42 +0,0 @@
1
- import {
2
- addComponent,
3
- addPlugin,
4
- createResolver,
5
- defineNuxtModule
6
- } from "@nuxt/kit";
7
- import views from "./views.mjs";
8
- export default defineNuxtModule({
9
- 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
- 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
- configKey: "neu:operasional:personalia",
25
- compatibility: { nuxt: "^3.0.0" }
26
- },
27
- defaults: {},
28
- setup() {
29
- console.log("module:neu:operasional:personalia");
30
- const { resolve } = createResolver(import.meta.url);
31
- const plugin = resolve("./plugin");
32
- 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
- }
42
- });
@@ -1,2 +0,0 @@
1
- import { Module } from '@neon.id/context';
2
- export declare const PersonaliaModule: Module;
@@ -1,9 +0,0 @@
1
- import { Module } from "@neon.id/context";
2
- import { StaffResource, TaskResource } from "./resources/index.mjs";
3
- export const PersonaliaModule = Module.define({
4
- definition: "neu:operasional:personalia",
5
- label: "Personalia",
6
- path: "personalia",
7
- icon: "solid:user",
8
- resources: [StaffResource, TaskResource]
9
- });
@@ -1,2 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
@@ -1,10 +0,0 @@
1
- import { useModuleStore } from "@neon.id/context";
2
- import { PersonaliaModule } from "./module.mjs";
3
- import { defineNuxtPlugin, useRouter } from "#imports";
4
- import { OfficePage } from "#components";
5
- export default defineNuxtPlugin(() => {
6
- console.log("plugin:personalia");
7
- const store = useModuleStore();
8
- const router = useRouter();
9
- PersonaliaModule.register(store, router, OfficePage);
10
- });
@@ -1,2 +0,0 @@
1
- export * from './staff';
2
- export * from './task';
@@ -1,2 +0,0 @@
1
- export * from "./staff/index.mjs";
2
- export * from "./task/index.mjs";
@@ -1,2 +0,0 @@
1
- export * from './staff.views';
2
- export * from './staff.resource';
@@ -1,2 +0,0 @@
1
- export * from "./staff.views.mjs";
2
- export * from "./staff.resource.mjs";
@@ -1,6 +0,0 @@
1
- export declare const StaffModel: import("@neon.id/model").Model<"neu:personalia:staff", "name" | "nik" | "branch" | "branches" | "user" | "image" | "birthPlace" | "birthDate" | "note">;
2
- export type TStaffModel = typeof StaffModel;
3
- export declare const fragments: {
4
- item: Schema.Staff;
5
- detail: Schema.Staff;
6
- };
@@ -1,36 +0,0 @@
1
- import { models } from "@neutron.co.id/personalia-models";
2
- export const StaffModel = models.StaffModel;
3
- const item = {
4
- id: 1,
5
- display: 1,
6
- flag: 1,
7
- name: 1,
8
- nik: 1,
9
- birthDate: 1,
10
- birthPlace: 1,
11
- image: 1,
12
- branch: {
13
- name: 1
14
- },
15
- branches: {
16
- name: 1
17
- },
18
- note: 1,
19
- user: {
20
- id: 1,
21
- username: 1,
22
- email: 1,
23
- phone: 1,
24
- roleIds: 1
25
- }
26
- };
27
- const detail = {
28
- ...item,
29
- branchId: 1,
30
- branchIds: 1,
31
- userId: 1
32
- };
33
- export const fragments = {
34
- item,
35
- detail
36
- };
@@ -1,2 +0,0 @@
1
- import { Resource } from '@neon.id/context';
2
- export declare const StaffResource: Resource<Schema.Staff, import("@neon.id/model").Model<"neu:personalia:staff", "name" | "nik" | "branch" | "branches" | "user" | "image" | "birthPlace" | "birthDate" | "note">>;
@@ -1,32 +0,0 @@
1
- import { Resource } from "@neon.id/context";
2
- import { StaffCollectionView, StaffSingleView } from "./staff.views.mjs";
3
- import { fragments, StaffModel } from "./staff.model.mjs";
4
- export const StaffResource = Resource.define({
5
- model: StaffModel,
6
- collection: {
7
- title: "Karyawan",
8
- path: "staffs",
9
- component: StaffCollectionView,
10
- menu: true,
11
- displays: ["table"]
12
- },
13
- single: {
14
- path: "staff/:slug",
15
- component: StaffSingleView
16
- },
17
- views: {
18
- // collection: {
19
- // path: 'staffs',
20
- // label: 'Staffs',
21
- // icon: 'door-open',
22
- // menu: true,
23
- // component: StaffCollectionView,
24
- // },
25
- // single: {
26
- // path: 'staffs/:slug',
27
- // component: StaffSingleView,
28
- // },
29
- },
30
- fragments,
31
- renders: {}
32
- });
@@ -1,36 +0,0 @@
1
- export declare const StaffCollectionView: 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 StaffSingleView: 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
- isMain: boolean;
35
- isNew: boolean;
36
- }>;
@@ -1,9 +0,0 @@
1
- import { ResourceUtil } from "@neon.id/office";
2
- export const StaffCollectionView = ResourceUtil.createCollection({
3
- name: "default",
4
- definition: "neu:personalia:staff"
5
- });
6
- export const StaffSingleView = ResourceUtil.createSingle({
7
- name: "default",
8
- definition: "neu:personalia:staff"
9
- });
@@ -1,2 +0,0 @@
1
- export * from './task.views';
2
- export * from './task.resource';
@@ -1,2 +0,0 @@
1
- export * from "./task.views.mjs";
2
- export * from "./task.resource.mjs";
@@ -1,6 +0,0 @@
1
- export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "employeeNameTrimmed" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedHourByDay" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd">;
2
- export type TTaskModel = typeof TaskModel;
3
- export declare const fragments: {
4
- item: Schema.Task;
5
- detail: Schema.Task;
6
- };
@@ -1,55 +0,0 @@
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
- branches: {
11
- id: 1,
12
- display: 1
13
- },
14
- giveAssignments: {
15
- id: 1,
16
- display: 1
17
- },
18
- doingAssignments: {
19
- id: 1,
20
- display: 1
21
- },
22
- supervisingAssignments: {
23
- id: 1,
24
- display: 1
25
- },
26
- helpAssignments: {
27
- id: 1,
28
- display: 1
29
- },
30
- employeeNameTrimmed: 1,
31
- estimatedStartDate: 1,
32
- estimatedEndDate: 1,
33
- estimatedHourDoingAssignment: 1,
34
- estimatedHourCommunicationAssignment: 1,
35
- estimatedHourCognitiveAssignment: 1,
36
- estimatedHourCreativeAssignment: 1,
37
- estimatedHourByDay: 1,
38
- priority: 1,
39
- status: 1,
40
- estimatedRealizedAssignmentStart: 1,
41
- estimatedRealizedAssignmentEnd: 1,
42
- resultAssignment: 1
43
- };
44
- const detail = {
45
- ...item,
46
- branchIds: 1,
47
- givingAssignmentIds: 1,
48
- doingAssignmentIds: 1,
49
- supervisingAssignmentIds: 1,
50
- helpAssignmentIds: 1
51
- };
52
- export const fragments = {
53
- item,
54
- detail
55
- };
@@ -1,2 +0,0 @@
1
- import { Resource } from '@neon.id/context';
2
- export declare const TaskResource: Resource<Schema.Task, import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "employeeNameTrimmed" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedHourByDay" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd">>;
@@ -1,44 +0,0 @@
1
- import { Resource } from "@neon.id/context";
2
- import {
3
- TaskCollectionPlanView,
4
- TaskCollectionView,
5
- TaskCollectionWorkView,
6
- TaskSinglePlanView,
7
- TaskSingleView,
8
- TaskSingleWorkView
9
- } from "./task.views.mjs";
10
- import { fragments, TaskModel } from "./task.model.mjs";
11
- export const TaskResource = Resource.define({
12
- model: TaskModel,
13
- collection: {
14
- title: "Tugas",
15
- path: "tasks",
16
- component: TaskCollectionView,
17
- menu: true,
18
- displays: ["table"]
19
- },
20
- single: {
21
- path: "tasks/:slug",
22
- component: TaskSingleView
23
- },
24
- views: {
25
- plan: {
26
- path: "/perencanaan/tasks",
27
- component: TaskCollectionPlanView
28
- },
29
- planSingle: {
30
- path: "/perencanaan/tasks/:slug",
31
- component: TaskSinglePlanView
32
- },
33
- work: {
34
- path: "/pekerjaan/tasks",
35
- component: TaskCollectionWorkView
36
- },
37
- workSingle: {
38
- path: "/pekerjaan/tasks/:slug",
39
- component: TaskSingleWorkView
40
- }
41
- },
42
- fragments,
43
- renders: {}
44
- });
@@ -1,108 +0,0 @@
1
- export declare const TaskCollectionView: 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 TaskSingleView: 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
- isMain: boolean;
35
- isNew: boolean;
36
- }>;
37
- export declare const TaskCollectionPlanView: 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 TaskSinglePlanView: 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
- isMain: boolean;
71
- isNew: boolean;
72
- }>;
73
- export declare const TaskCollectionWorkView: 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 TaskSingleWorkView: 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
- isMain: boolean;
107
- isNew: boolean;
108
- }>;
@@ -1,58 +0,0 @@
1
- import { ResourceUtil } from "@neon.id/office";
2
- export const TaskCollectionView = ResourceUtil.createCollection({
3
- name: "default",
4
- definition: "neu:personalia:task"
5
- });
6
- export const TaskSingleView = ResourceUtil.createSingle({
7
- name: "default",
8
- definition: "neu:personalia:task"
9
- });
10
- export const TaskCollectionPlanView = ResourceUtil.createCollection({
11
- name: "plan",
12
- definition: "neu:personalia:task",
13
- title: "Perencanaan Tugas",
14
- icon: "ruler",
15
- scope: "plan",
16
- path: "/perencanaan/tasks",
17
- single: {
18
- peeks: ["side"]
19
- },
20
- filters: [
21
- "status",
22
- "branches",
23
- "giveAssignments",
24
- "doingAssignments",
25
- "supervisingAssignments",
26
- "helpAssignments",
27
- "priority"
28
- ],
29
- sorts: [
30
- "estimatedStartDate",
31
- "estimatedEndDate",
32
- "estimatedHourDoingAssignment",
33
- "estimatedHourCommunicationAssignment",
34
- "estimatedHourCognitiveAssignment",
35
- "estimatedHourCreativeAssignment"
36
- ]
37
- });
38
- export const TaskSinglePlanView = ResourceUtil.createSingle({
39
- name: "plan",
40
- title: "Perencanaan Tugas",
41
- definition: "neu:personalia:task"
42
- });
43
- export const TaskCollectionWorkView = ResourceUtil.createCollection({
44
- name: "work",
45
- definition: "neu:personalia:task",
46
- title: "Pekerjaan Tugas",
47
- icon: "briefcase",
48
- scope: "work",
49
- path: "/pekerjaan/tasks",
50
- single: {
51
- peeks: ["side"]
52
- }
53
- });
54
- export const TaskSingleWorkView = ResourceUtil.createSingle({
55
- name: "work",
56
- title: "Pekerjaan Tugas",
57
- definition: "neu:personalia:task"
58
- });
@@ -1 +0,0 @@
1
- export default ["StaffCollectionView","StaffSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView","TaskSingleWorkView"]