@neutron.co.id/operasional-modules 1.9.4 → 1.9.6

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.
@@ -45,7 +45,6 @@ export const CheckInCollectionSupervisorView = ResourceUtil.createCollection({
45
45
  peeks: ["modal"]
46
46
  },
47
47
  columns: ["display", "type", "checkInAt", "staff", "building"],
48
- filters: ["type", "building"],
49
48
  sorts: ["checkInAt"],
50
49
  query: () => {
51
50
  const { supervisedStaffIds } = useOperasional();
@@ -56,7 +55,8 @@ export const CheckInCollectionSupervisorView = ResourceUtil.createCollection({
56
55
  }
57
56
  }
58
57
  });
59
- }
58
+ },
59
+ excludes: ["create"]
60
60
  });
61
61
  export const CheckInSingleSupervisorView = ResourceUtil.createSingle({
62
62
  name: "supervisor",
@@ -6,6 +6,28 @@ export const ResponsibilityCollectionView = ResourceUtil.createCollection({
6
6
  definition: "neu:personalia:responsibility",
7
7
  single: {
8
8
  peeks: ["modal"]
9
+ },
10
+ query: () => {
11
+ const { staff } = useOperasional();
12
+ return Query.define({
13
+ filter: [
14
+ {
15
+ $or: [
16
+ {
17
+ handle: "branchIds",
18
+ operator: "in",
19
+ value: staff.value?.branchIds
20
+ },
21
+ {
22
+ handle: "branchIds",
23
+ operator: "in",
24
+ value: staff.value?.branchId
25
+ }
26
+ ]
27
+ }
28
+ ],
29
+ sort: [{ handle: "createdAt", direction: "descending" }]
30
+ });
9
31
  }
10
32
  });
11
33
  export const ResponsibilitySingleView = ResourceUtil.createSingle({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-modules",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "description": "Modules of Neutron Operasional.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "contributors": [
@@ -45,7 +45,7 @@
45
45
  "@neon.id/interfaces": "^1.10.0",
46
46
  "@neon.id/office": "^1.9.0",
47
47
  "@neon.id/query": "^1.2.0",
48
- "@neutron.co.id/operasional-interfaces": "^1.9.5-beta.1",
48
+ "@neutron.co.id/operasional-interfaces": "^1.9.7",
49
49
  "@neutron.co.id/personalia-models": "^1.9.3",
50
50
  "@nuxt/kit": "^3.6.5"
51
51
  },
@@ -71,12 +71,12 @@
71
71
  "@neon.id/interfaces": "^1.10.0",
72
72
  "@neon.id/office": "^1.9.0",
73
73
  "@neon.id/query": "^1.2.0",
74
- "@neutron.co.id/operasional-interfaces": "^1.9.5-beta.1",
74
+ "@neutron.co.id/operasional-interfaces": "^1.9.7",
75
75
  "@neutron.co.id/personalia-models": "^1.9.3",
76
76
  "@nuxt/kit": "^3.6.5"
77
77
  },
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "build": 74
81
+ "build": 76
82
82
  }