@neutron.co.id/operasional-modules 1.4.3-beta.1 → 1.4.3

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.
@@ -1,5 +1,10 @@
1
1
  import { Resource } from "@neon.id/context";
2
- import { CheckInCollectionView, CheckInSingleView } from "./checkIn.views.mjs";
2
+ import {
3
+ CheckInCollectionExternalView,
4
+ CheckInCollectionView,
5
+ CheckInSingleExternalView,
6
+ CheckInSingleView
7
+ } from "./checkIn.views.mjs";
3
8
  import { fragments, CheckInModel } from "./checkIn.model.mjs";
4
9
  export const CheckInResource = Resource.define({
5
10
  model: CheckInModel,
@@ -26,6 +31,14 @@ export const CheckInResource = Resource.define({
26
31
  // path: 'checkIns/:slug',
27
32
  // component: CheckInSingleView,
28
33
  // },
34
+ checkInExternal: {
35
+ path: "/operasional/checkIns",
36
+ component: CheckInCollectionExternalView
37
+ },
38
+ checkInExternalSingle: {
39
+ path: "/operasional/checkIns/:slug",
40
+ component: CheckInSingleExternalView
41
+ }
29
42
  },
30
43
  fragments,
31
44
  renders: {}
@@ -34,3 +34,39 @@ export declare const CheckInSingleView: import("vue").DefineComponent<{
34
34
  isMain: boolean;
35
35
  isNew: boolean;
36
36
  }>;
37
+ export declare const CheckInCollectionExternalView: 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 CheckInSingleExternalView: 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
+ }>;
@@ -1,12 +1,32 @@
1
1
  import { ResourceUtil } from "@neon.id/office";
2
2
  export const CheckInCollectionView = ResourceUtil.createCollection({
3
3
  name: "default",
4
+ definition: "neu:tempat:checkIn"
5
+ });
6
+ export const CheckInSingleView = ResourceUtil.createSingle({
7
+ name: "default",
8
+ definition: "neu:tempat:checkIn"
9
+ });
10
+ export const CheckInCollectionExternalView = ResourceUtil.createCollection({
11
+ name: "external",
4
12
  definition: "neu:tempat:checkIn",
13
+ title: "Presensi",
14
+ icon: "fingerprint",
15
+ scope: "external",
16
+ path: "/operasional/checkIns",
17
+ single: {
18
+ view: "external",
19
+ peeks: ["modal"]
20
+ },
5
21
  columns: ["display", "type", "checkInAt", "staff", "building"],
6
22
  filters: ["type", "building"],
7
23
  sorts: ["checkInAt"]
8
24
  });
9
- export const CheckInSingleView = ResourceUtil.createSingle({
10
- name: "default",
11
- definition: "neu:tempat:checkIn"
25
+ export const CheckInSingleExternalView = ResourceUtil.createSingle({
26
+ name: "external",
27
+ title: "Presensi",
28
+ definition: "neu:tempat:checkIn",
29
+ slots: {
30
+ default: "external"
31
+ }
12
32
  });
@@ -19,7 +19,19 @@ export const SituationCollectionWorkView = ResourceUtil.createCollection({
19
19
  path: "/pekerjaan/situations",
20
20
  single: {
21
21
  view: "work",
22
- peeks: ["side"]
22
+ peeks: ["modal"]
23
+ // initialValues: () => {
24
+ // const { staff } = useOperasional()
25
+ // return {
26
+ // situationReportedByIds: [staff.value?.id || ''],
27
+ // situationReportedBy: [
28
+ // {
29
+ // id: staff.value?.id,
30
+ // display: staff.value?.display,
31
+ // },
32
+ // ],
33
+ // }
34
+ // },
23
35
  },
24
36
  columns: [
25
37
  "situationStatus",
@@ -1,7 +1,10 @@
1
1
  import { ResourceUtil } from "@neon.id/office";
2
2
  export const SituationTypeCollectionView = ResourceUtil.createCollection({
3
3
  name: "default",
4
- definition: "neu:personalia:situationType"
4
+ definition: "neu:personalia:situationType",
5
+ single: {
6
+ peeks: ["modal"]
7
+ }
5
8
  });
6
9
  export const SituationTypeSingleView = ResourceUtil.createSingle({
7
10
  name: "default",
@@ -1,7 +1,10 @@
1
1
  import { ResourceUtil } from "@neon.id/office";
2
2
  export const StaffCollectionView = ResourceUtil.createCollection({
3
3
  name: "default",
4
- definition: "neu:personalia:staff"
4
+ definition: "neu:personalia:staff",
5
+ single: {
6
+ peeks: ["modal"]
7
+ }
5
8
  });
6
9
  export const StaffSingleView = ResourceUtil.createSingle({
7
10
  name: "default",
@@ -8,7 +8,10 @@ import { h } from "vue";
8
8
  import { usePermit } from "@neon.id/context";
9
9
  export const TaskCollectionView = ResourceUtil.createCollection({
10
10
  name: "default",
11
- definition: "neu:personalia:task"
11
+ definition: "neu:personalia:task",
12
+ single: {
13
+ peeks: ["modal"]
14
+ }
12
15
  });
13
16
  export const TaskSingleView = ResourceUtil.createSingle({
14
17
  name: "default",
@@ -22,7 +25,7 @@ export const TaskCollectionPlanView = ResourceUtil.createCollection({
22
25
  scope: "plan",
23
26
  path: "/perencanaan/tasks",
24
27
  single: {
25
- peeks: ["side"]
28
+ peeks: ["modal"]
26
29
  },
27
30
  filters: [
28
31
  "status",
@@ -56,7 +59,7 @@ export const TaskCollectionWorkView = ResourceUtil.createCollection({
56
59
  path: "/pekerjaan/tasks",
57
60
  single: {
58
61
  view: "work",
59
- peeks: ["side"]
62
+ peeks: ["modal"]
60
63
  },
61
64
  columns: [
62
65
  "taskName",
@@ -103,16 +106,23 @@ export const TaskCollectionWorkView = ResourceUtil.createCollection({
103
106
  {
104
107
  helpAssignmentIds: staff.value?.id
105
108
  },
109
+ {
110
+ userId: staff.value?.userId
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ $or: [
106
116
  {
107
117
  status: "ditugaskan"
108
118
  },
109
119
  {
110
120
  status: "dikerjakan"
111
- },
112
- {
113
- userId: staff.value?.userId
114
121
  }
115
122
  ]
123
+ },
124
+ {
125
+ status: { $ne: "diselesaikan" }
116
126
  }
117
127
  ]
118
128
  }
@@ -1 +1 @@
1
- export default ["CheckInCollectionView","CheckInSingleView","StaffCollectionView","StaffSingleView","SituationCollectionSupportiveView","SituationCollectionView","SituationCollectionWorkView","SituationSingleSupportiveView","SituationSingleView","SituationSingleWorkView","SituationTypeCollectionView","SituationTypeSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView","TaskSingleWorkView"]
1
+ export default ["CheckInCollectionExternalView","CheckInCollectionView","CheckInSingleExternalView","CheckInSingleView","StaffCollectionView","StaffSingleView","SituationCollectionSupportiveView","SituationCollectionView","SituationCollectionWorkView","SituationSingleSupportiveView","SituationSingleView","SituationSingleWorkView","SituationTypeCollectionView","SituationTypeSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView","TaskSingleWorkView"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-modules",
3
- "version": "1.4.3-beta.1",
3
+ "version": "1.4.3",
4
4
  "description": "Modules of Neutron.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "contributors": [
@@ -40,10 +40,10 @@
40
40
  "lint": "eslint src/ --ext .js,.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@neon.id/context": "0.39.0",
44
- "@neon.id/office": "0.24.0",
45
- "@neutron.co.id/operasional-interfaces": "1.4.3-beta.1",
46
- "@neutron.co.id/personalia-models": "1.4.1-beta.1",
43
+ "@neon.id/context": "0.40.0",
44
+ "@neon.id/office": "0.26.0",
45
+ "@neutron.co.id/operasional-interfaces": "1.4.3",
46
+ "@neutron.co.id/personalia-models": "1.4.1",
47
47
  "@nuxt/kit": "3.3.1"
48
48
  },
49
49
  "devDependencies": {
@@ -62,14 +62,14 @@
62
62
  "vitest": "0.29.3"
63
63
  },
64
64
  "peerDependencies": {
65
- "@neon.id/context": "^0.39.0",
66
- "@neon.id/office": "^0.24.0",
67
- "@neutron.co.id/operasional-interfaces": "^1.4.3-beta.1",
68
- "@neutron.co.id/personalia-models": "^1.4.1-beta.1",
65
+ "@neon.id/context": "^0.40.0",
66
+ "@neon.id/office": "^0.26.0",
67
+ "@neutron.co.id/operasional-interfaces": "^1.4.3",
68
+ "@neutron.co.id/personalia-models": "^1.4.1",
69
69
  "@nuxt/kit": "^3.3.1"
70
70
  },
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "build": 34
74
+ "build": 36
75
75
  }