@neutron.co.id/operasional-modules 1.0.1-beta.5 → 1.1.0-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.
@@ -0,0 +1 @@
1
+ export * from './resources';
@@ -0,0 +1 @@
1
+ export * from "./resources/index.mjs";
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@nuxt/schema").NuxtModule<{}>;
2
+ export default _default;
@@ -0,0 +1,42 @@
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-pekerjaan",
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:pekerjaan",
25
+ compatibility: { nuxt: "^3.0.0" }
26
+ },
27
+ defaults: {},
28
+ setup() {
29
+ console.log("module:neu:operasional:pekerjaan");
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
+ });
@@ -0,0 +1,2 @@
1
+ import { Module } from '@neon.id/context';
2
+ export declare const PekerjaanModule: Module;
@@ -0,0 +1,8 @@
1
+ import { Module } from "@neon.id/context";
2
+ export const PekerjaanModule = Module.define({
3
+ definition: "neu:operasional:pekerjaan",
4
+ label: "Pekerjaan",
5
+ path: "pekerjaan",
6
+ icon: "solid:briefcase",
7
+ resources: []
8
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { useModuleStore } from "@neon.id/context";
2
+ import { PekerjaanModule } from "./module.mjs";
3
+ import { defineNuxtPlugin, useRouter } from "#imports";
4
+ import { OfficePage } from "#components";
5
+ export default defineNuxtPlugin(() => {
6
+ console.log("plugin:pekerjaan");
7
+ const store = useModuleStore();
8
+ const router = useRouter();
9
+ PekerjaanModule.register(store, router, OfficePage);
10
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export default []
@@ -0,0 +1 @@
1
+ export * from './resources';
@@ -0,0 +1 @@
1
+ export * from "./resources/index.mjs";
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@nuxt/schema").NuxtModule<{}>;
2
+ export default _default;
@@ -0,0 +1,42 @@
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-perencanaan",
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:perencanaan",
25
+ compatibility: { nuxt: "^3.0.0" }
26
+ },
27
+ defaults: {},
28
+ setup() {
29
+ console.log("module:neu:operasional:perencanaan");
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
+ });
@@ -0,0 +1,2 @@
1
+ import { Module } from '@neon.id/context';
2
+ export declare const PerencanaanModule: Module;
@@ -0,0 +1,8 @@
1
+ import { Module } from "@neon.id/context";
2
+ export const PerencanaanModule = Module.define({
3
+ definition: "neu:operasional:perencanaan",
4
+ label: "Perencanaan",
5
+ path: "perencanaan",
6
+ icon: "solid:ruler",
7
+ resources: []
8
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { useModuleStore } from "@neon.id/context";
2
+ import { PerencanaanModule } from "./module.mjs";
3
+ import { defineNuxtPlugin, useRouter } from "#imports";
4
+ import { OfficePage } from "#components";
5
+ export default defineNuxtPlugin(() => {
6
+ console.log("plugin:perencanaan");
7
+ const store = useModuleStore();
8
+ const router = useRouter();
9
+ PerencanaanModule.register(store, router, OfficePage);
10
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export default []
@@ -1,4 +1,4 @@
1
- export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "taskName" | "giveAssignments" | "supervisingAssignments" | "doingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "internalServiceDescription" | "externalServiceDescription" | "estimatedHourByDay" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd" | "resultAssignment">;
1
+ export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "taskName" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "internalServiceDescription" | "externalServiceDescription" | "estimatedHourByDay" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd" | "resultAssignment">;
2
2
  export type TTaskModel = typeof TaskModel;
3
3
  export declare const fragments: {
4
4
  item: Schema.Task;
@@ -27,6 +27,7 @@ const item = {
27
27
  id: 1,
28
28
  display: 1
29
29
  },
30
+ employeeNameTrimmed: 1,
30
31
  estimatedStartDate: 1,
31
32
  estimatedEndDate: 1,
32
33
  estimatedHourDoingAssignment: 1,
@@ -1,2 +1,2 @@
1
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" | "taskName" | "giveAssignments" | "supervisingAssignments" | "doingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "internalServiceDescription" | "externalServiceDescription" | "estimatedHourByDay" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd" | "resultAssignment">>;
2
+ export declare const TaskResource: Resource<Schema.Task, import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "taskName" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "internalServiceDescription" | "externalServiceDescription" | "estimatedHourByDay" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd" | "resultAssignment">>;
@@ -1,5 +1,11 @@
1
1
  import { Resource } from "@neon.id/context";
2
- import { TaskCollectionView, TaskSingleView } from "./task.views.mjs";
2
+ import {
3
+ TaskCollectionPlanView,
4
+ TaskCollectionView,
5
+ TaskCollectionWorkView,
6
+ TaskSinglePlanView,
7
+ TaskSingleView
8
+ } from "./task.views.mjs";
3
9
  import { fragments, TaskModel } from "./task.model.mjs";
4
10
  export const TaskResource = Resource.define({
5
11
  model: TaskModel,
@@ -11,10 +17,23 @@ export const TaskResource = Resource.define({
11
17
  displays: ["table"]
12
18
  },
13
19
  single: {
14
- path: "task/:slug",
20
+ path: "tasks/:slug",
15
21
  component: TaskSingleView
16
22
  },
17
- views: {},
23
+ views: {
24
+ plan: {
25
+ path: "/perencanaan/tasks",
26
+ component: TaskCollectionPlanView
27
+ },
28
+ planSingle: {
29
+ path: "/perencanaan/tasks/:slug",
30
+ component: TaskSinglePlanView
31
+ },
32
+ work: {
33
+ path: "/pekerjaan/tasks",
34
+ component: TaskCollectionWorkView
35
+ }
36
+ },
18
37
  fragments,
19
38
  renders: {}
20
39
  });
@@ -34,3 +34,42 @@ export declare const TaskSingleView: import("vue").DefineComponent<{
34
34
  isMain: boolean;
35
35
  isNew: boolean;
36
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<{}>>, {}>;
@@ -7,3 +7,26 @@ export const TaskSingleView = ResourceUtil.createSingle({
7
7
  name: "default",
8
8
  definition: "neu:personalia:task"
9
9
  });
10
+ export const TaskCollectionPlanView = ResourceUtil.createCollection({
11
+ name: "plan",
12
+ definition: "neu:personalia:task",
13
+ scope: "plan",
14
+ path: "/perencanaan/tasks",
15
+ single: {
16
+ peeks: ["modal"]
17
+ }
18
+ });
19
+ export const TaskSinglePlanView = ResourceUtil.createSingle({
20
+ name: "plan",
21
+ title: "Perencanaan Tugas",
22
+ definition: "neu:personalia:task"
23
+ });
24
+ export const TaskCollectionWorkView = ResourceUtil.createCollection({
25
+ name: "work",
26
+ definition: "neu:personalia:task",
27
+ scope: "work",
28
+ path: "/pekerjaan/tasks",
29
+ single: {
30
+ peeks: ["modal"]
31
+ }
32
+ });
@@ -1 +1 @@
1
- export default ["StaffCollectionView","StaffSingleView","TaskCollectionView","TaskSingleView"]
1
+ export default ["StaffCollectionView","StaffSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-modules",
3
- "version": "1.0.1-beta.5",
3
+ "version": "1.1.0-beta.1",
4
4
  "description": "Modules of Neutron.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "contributors": [
@@ -16,6 +16,14 @@
16
16
  "./personalia": {
17
17
  "types": "./build/personalia/index.d.ts",
18
18
  "import": "./build/personalia/index.mjs"
19
+ },
20
+ "./pekerjaan": {
21
+ "types": "./build/pekerjaan/index.d.ts",
22
+ "import": "./build/pekerjaan/index.mjs"
23
+ },
24
+ "./perencanaan": {
25
+ "types": "./build/perencanaan/index.d.ts",
26
+ "import": "./build/perencanaan/index.mjs"
19
27
  }
20
28
  },
21
29
  "main": "build/index.cjs",
@@ -28,6 +36,12 @@
28
36
  ],
29
37
  "personalia": [
30
38
  "./build/personalia/exports.d.ts"
39
+ ],
40
+ "pekerjaan": [
41
+ "./build/pekerjaan/exports.d.ts"
42
+ ],
43
+ "perencanaan": [
44
+ "./build/perencanaan/exports.d.ts"
31
45
  ]
32
46
  }
33
47
  },
@@ -40,9 +54,9 @@
40
54
  "lint": "eslint src/ --ext .js,.ts"
41
55
  },
42
56
  "dependencies": {
43
- "@neon.id/context": "0.37.0",
44
- "@neon.id/office": "0.22.0",
45
- "@neutron.co.id/personalia-models": "1.2.0-beta.4",
57
+ "@neon.id/context": "0.38.0",
58
+ "@neon.id/office": "0.23.0",
59
+ "@neutron.co.id/personalia-models": "1.2.0-beta.6",
46
60
  "@nuxt/kit": "3.2.3"
47
61
  },
48
62
  "devDependencies": {
@@ -50,7 +64,7 @@
50
64
  "@graphql-codegen/client-preset": "2.1.0",
51
65
  "@neon.id/types": "1.37.0",
52
66
  "@types/eslint": "8.21.1",
53
- "@types/node": "18.14.4",
67
+ "@types/node": "18.14.6",
54
68
  "@types/prettier": "2.7.2",
55
69
  "@vortex.so/eslint-plugin": "0.7.0",
56
70
  "eslint": "8.35.0",
@@ -61,13 +75,13 @@
61
75
  "vitest": "0.29.2"
62
76
  },
63
77
  "peerDependencies": {
64
- "@neon.id/context": "^0.37.0",
65
- "@neon.id/office": "^0.22.0",
66
- "@neutron.co.id/personalia-models": "^1.2.0-beta.4",
78
+ "@neon.id/context": "^0.38.0",
79
+ "@neon.id/office": "^0.23.0",
80
+ "@neutron.co.id/personalia-models": "^1.2.0-beta.6",
67
81
  "@nuxt/kit": "^3.2.3"
68
82
  },
69
83
  "publishConfig": {
70
84
  "access": "public"
71
85
  },
72
- "build": 7
86
+ "build": 9
73
87
  }