@neutron.co.id/operasional-interfaces 1.16.0 → 1.16.1-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.
@@ -1,6 +1,7 @@
1
1
  import { Query } from '@neon.id/query';
2
2
  export declare function usePeriod(): {
3
3
  query: import("vue").ComputedRef<Query>;
4
+ queryBranch: import("vue").ComputedRef<Query>;
4
5
  isLoading: import("vue").Ref<boolean>;
5
6
  date: import("vue").Ref<Date>;
6
7
  header: import("vue").ComputedRef<string>;
@@ -29,8 +29,23 @@ export function usePeriod() {
29
29
  filter
30
30
  });
31
31
  });
32
+ const queryBranch = computed(() => {
33
+ const period = PeriodUtil.period(
34
+ "startedAt",
35
+ startedAt.value,
36
+ endedAt.value
37
+ );
38
+ const filter = {
39
+ ...period,
40
+ branchIds: { $in: staff.value?.branchIds }
41
+ };
42
+ return Query.define({
43
+ filter
44
+ });
45
+ });
32
46
  return {
33
47
  query,
48
+ queryBranch,
34
49
  isLoading,
35
50
  date,
36
51
  header,
@@ -5,7 +5,7 @@ import { usePeriod } from '../../../common/providers/period'
5
5
 
6
6
  defineOptions({ name: 'ShiftStaffCollectionBranch' })
7
7
 
8
- const { isLoading, date, query } = usePeriod()
8
+ const { isLoading, date, queryBranch } = usePeriod()
9
9
 
10
10
  async function onPeriodUpdate(period: any) {
11
11
  date.value = period.startedAt
@@ -22,7 +22,7 @@ async function onPeriodUpdate(period: any) {
22
22
  view="single-branchs-view"
23
23
  :displays="['table', 'calendar', 'timeline']"
24
24
  :is-loading="isLoading"
25
- :query="query"
25
+ :query="queryBranch"
26
26
  @update:date="onPeriodUpdate"
27
27
  @update:period="onPeriodUpdate"
28
28
  ></ShiftStaffWrapper>
@@ -20,7 +20,7 @@ async function onPeriodUpdate(period: any) {
20
20
  scope="staff"
21
21
  path="/jadwal/period"
22
22
  :displays="['table', 'calendar', 'timeline']"
23
- :excludes="['create']"
23
+ :excludes="['create', 'click']"
24
24
  :is-loading="isLoading"
25
25
  :query="query"
26
26
  @update:date="onPeriodUpdate"
@@ -125,6 +125,11 @@ const { refresh } = withCollection({
125
125
  endedTime: 1, //jam pulang shift karyawan
126
126
  startedTime: 1, //jam masuk shift karyawan
127
127
 
128
+ hourStartedTime: 1,
129
+ hourEndedTime: 1,
130
+ hourAttendShift: 1,
131
+ hourBackHome: 1,
132
+
128
133
  typeShift: {
129
134
  //tipe dari shift
130
135
  id: 1,
@@ -140,6 +145,14 @@ const { refresh } = withCollection({
140
145
  workCheckInAt: 1,
141
146
  workCheckIn: 1,
142
147
  },
148
+
149
+ branches: {
150
+ id: 1,
151
+ display: 1,
152
+ name: 1,
153
+ },
154
+
155
+ branchIds: 1,
143
156
  // shiftingStaffId: 1,
144
157
  // typeShiftId: 1,
145
158
  } as Fragment<Schema.ShiftStaff>,
@@ -1,6 +1,7 @@
1
1
  import { Query } from '@neon.id/query';
2
2
  export declare function usePeriod(): {
3
3
  query: import("vue").ComputedRef<Query>;
4
+ queryBranch: import("vue").ComputedRef<Query>;
4
5
  isLoading: import("vue").Ref<boolean>;
5
6
  date: import("vue").Ref<Date>;
6
7
  header: import("vue").ComputedRef<string>;
@@ -12923,8 +12923,24 @@ function usePeriod() {
12923
12923
  filter
12924
12924
  });
12925
12925
  });
12926
+ const queryBranch = vue.computed(() => {
12927
+ var _a;
12928
+ const period$1 = period.PeriodUtil.period(
12929
+ "startedAt",
12930
+ startedAt.value,
12931
+ endedAt.value
12932
+ );
12933
+ const filter = {
12934
+ ...period$1,
12935
+ branchIds: { $in: (_a = staff.value) == null ? void 0 : _a.branchIds }
12936
+ };
12937
+ return query.Query.define({
12938
+ filter
12939
+ });
12940
+ });
12926
12941
  return {
12927
12942
  query: query$1,
12943
+ queryBranch,
12928
12944
  isLoading,
12929
12945
  date: date$1,
12930
12946
  header,
@@ -26033,6 +26049,10 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
26033
26049
  //jam pulang shift karyawan
26034
26050
  startedTime: 1,
26035
26051
  //jam masuk shift karyawan
26052
+ hourStartedTime: 1,
26053
+ hourEndedTime: 1,
26054
+ hourAttendShift: 1,
26055
+ hourBackHome: 1,
26036
26056
  typeShift: {
26037
26057
  //tipe dari shift
26038
26058
  id: 1,
@@ -26047,7 +26067,13 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
26047
26067
  display: 1,
26048
26068
  workCheckInAt: 1,
26049
26069
  workCheckIn: 1
26050
- }
26070
+ },
26071
+ branches: {
26072
+ id: 1,
26073
+ display: 1,
26074
+ name: 1
26075
+ },
26076
+ branchIds: 1
26051
26077
  // shiftingStaffId: 1,
26052
26078
  // typeShiftId: 1,
26053
26079
  }
@@ -26128,7 +26154,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
26128
26154
  };
26129
26155
  }
26130
26156
  });
26131
- const ShiftStaffWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-2004177b"]]);
26157
+ const ShiftStaffWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-1ddd2145"]]);
26132
26158
  const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
26133
26159
  ...{ name: "ShiftStaffCollectionStaff" },
26134
26160
  __name: "ShiftStaffCollectionStaff",
@@ -26145,7 +26171,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
26145
26171
  scope: "staff",
26146
26172
  path: "/jadwal/period",
26147
26173
  displays: ["table", "calendar", "timeline"],
26148
- excludes: ["create"],
26174
+ excludes: ["create", "click"],
26149
26175
  "is-loading": vue.unref(isLoading),
26150
26176
  query: vue.unref(query2),
26151
26177
  "onUpdate:date": onPeriodUpdate,
@@ -26158,7 +26184,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
26158
26184
  ...{ name: "ShiftStaffCollectionBranch" },
26159
26185
  __name: "ShiftStaffCollectionBranch",
26160
26186
  setup(__props) {
26161
- const { isLoading, date: date2, query: query2 } = usePeriod();
26187
+ const { isLoading, date: date2, queryBranch } = usePeriod();
26162
26188
  async function onPeriodUpdate(period2) {
26163
26189
  date2.value = period2.startedAt;
26164
26190
  await vue.nextTick();
@@ -26172,7 +26198,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
26172
26198
  view: "single-branchs-view",
26173
26199
  displays: ["table", "calendar", "timeline"],
26174
26200
  "is-loading": vue.unref(isLoading),
26175
- query: vue.unref(query2),
26201
+ query: vue.unref(queryBranch),
26176
26202
  "onUpdate:date": onPeriodUpdate,
26177
26203
  "onUpdate:period": onPeriodUpdate
26178
26204
  }, null, 8, ["is-loading", "query"]);
@@ -12904,8 +12904,24 @@ function usePeriod() {
12904
12904
  filter
12905
12905
  });
12906
12906
  });
12907
+ const queryBranch = computed(() => {
12908
+ var _a;
12909
+ const period = PeriodUtil.period(
12910
+ "startedAt",
12911
+ startedAt.value,
12912
+ endedAt.value
12913
+ );
12914
+ const filter = {
12915
+ ...period,
12916
+ branchIds: { $in: (_a = staff.value) == null ? void 0 : _a.branchIds }
12917
+ };
12918
+ return Query.define({
12919
+ filter
12920
+ });
12921
+ });
12907
12922
  return {
12908
12923
  query,
12924
+ queryBranch,
12909
12925
  isLoading,
12910
12926
  date,
12911
12927
  header,
@@ -26014,6 +26030,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
26014
26030
  //jam pulang shift karyawan
26015
26031
  startedTime: 1,
26016
26032
  //jam masuk shift karyawan
26033
+ hourStartedTime: 1,
26034
+ hourEndedTime: 1,
26035
+ hourAttendShift: 1,
26036
+ hourBackHome: 1,
26017
26037
  typeShift: {
26018
26038
  //tipe dari shift
26019
26039
  id: 1,
@@ -26028,7 +26048,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
26028
26048
  display: 1,
26029
26049
  workCheckInAt: 1,
26030
26050
  workCheckIn: 1
26031
- }
26051
+ },
26052
+ branches: {
26053
+ id: 1,
26054
+ display: 1,
26055
+ name: 1
26056
+ },
26057
+ branchIds: 1
26032
26058
  // shiftingStaffId: 1,
26033
26059
  // typeShiftId: 1,
26034
26060
  }
@@ -26109,7 +26135,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
26109
26135
  };
26110
26136
  }
26111
26137
  });
26112
- const ShiftStaffWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-2004177b"]]);
26138
+ const ShiftStaffWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-1ddd2145"]]);
26113
26139
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
26114
26140
  ...{ name: "ShiftStaffCollectionStaff" },
26115
26141
  __name: "ShiftStaffCollectionStaff",
@@ -26126,7 +26152,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
26126
26152
  scope: "staff",
26127
26153
  path: "/jadwal/period",
26128
26154
  displays: ["table", "calendar", "timeline"],
26129
- excludes: ["create"],
26155
+ excludes: ["create", "click"],
26130
26156
  "is-loading": unref(isLoading),
26131
26157
  query: unref(query),
26132
26158
  "onUpdate:date": onPeriodUpdate,
@@ -26139,7 +26165,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
26139
26165
  ...{ name: "ShiftStaffCollectionBranch" },
26140
26166
  __name: "ShiftStaffCollectionBranch",
26141
26167
  setup(__props) {
26142
- const { isLoading, date, query } = usePeriod();
26168
+ const { isLoading, date, queryBranch } = usePeriod();
26143
26169
  async function onPeriodUpdate(period) {
26144
26170
  date.value = period.startedAt;
26145
26171
  await nextTick();
@@ -26153,7 +26179,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
26153
26179
  view: "single-branchs-view",
26154
26180
  displays: ["table", "calendar", "timeline"],
26155
26181
  "is-loading": unref(isLoading),
26156
- query: unref(query),
26182
+ query: unref(queryBranch),
26157
26183
  "onUpdate:date": onPeriodUpdate,
26158
26184
  "onUpdate:period": onPeriodUpdate
26159
26185
  }, null, 8, ["is-loading", "query"]);
@@ -470,19 +470,19 @@
470
470
  color: rgb(161 161 170 / var(--tw-text-opacity))
471
471
  }
472
472
 
473
- .shift-staff-wrapper .buttons[data-v-2004177b] {
473
+ .shift-staff-wrapper .buttons[data-v-1ddd2145] {
474
474
  display: flex;
475
475
  align-items: center
476
476
  }
477
- .shift-staff-wrapper .buttons[data-v-2004177b] > :not([hidden]) ~ :not([hidden]) {
477
+ .shift-staff-wrapper .buttons[data-v-1ddd2145] > :not([hidden]) ~ :not([hidden]) {
478
478
  --tw-space-x-reverse: 0;
479
479
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
480
480
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))
481
481
  }
482
- .shift-staff-wrapper .buttons[data-v-2004177b] {
482
+ .shift-staff-wrapper .buttons[data-v-1ddd2145] {
483
483
  padding-right: 0.25rem
484
484
  }
485
- .shift-staff-wrapper .summary[data-v-2004177b] {
485
+ .shift-staff-wrapper .summary[data-v-1ddd2145] {
486
486
  padding-bottom: 0.5rem
487
487
  }
488
488
 
package/build/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.16.0",
7
+ "version": "1.16.1-beta.1",
8
8
  "builder": {
9
9
  "@neon.id/module-builder": "1.8.0",
10
10
  "unbuild": "2.0.0"
package/build/nuxt.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.16.0",
7
+ "version": "1.16.1-beta.1",
8
8
  "builder": {
9
9
  "@neon.id/module-builder": "1.8.0",
10
10
  "unbuild": "2.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-interfaces",
3
- "version": "1.16.0",
3
+ "version": "1.16.1-beta.1",
4
4
  "description": "Interface library of Neutron Operasional.",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -78,8 +78,8 @@
78
78
  "@neon.id/nuxt": "^1.5.0",
79
79
  "@neon.id/office": "1.46.0",
80
80
  "@neon.id/utils": "^1.51.0",
81
- "@neutron.co.id/operasional-modules": "1.12.10",
82
- "@neutron.co.id/personalia-models": "1.13.6",
81
+ "@neutron.co.id/operasional-modules": "1.12.12",
82
+ "@neutron.co.id/personalia-models": "1.13.7",
83
83
  "@nuxt/kit": "^3.12.3",
84
84
  "file-saver": "^2.0.5",
85
85
  "papaparse": "5.4.1",
@@ -153,8 +153,8 @@
153
153
  "@neon.id/nuxt": "^1.5.0",
154
154
  "@neon.id/office": "1.46.0",
155
155
  "@neon.id/utils": "^1.51.0",
156
- "@neutron.co.id/operasional-modules": "1.12.10",
157
- "@neutron.co.id/personalia-models": "1.13.6",
156
+ "@neutron.co.id/operasional-modules": "1.12.12",
157
+ "@neutron.co.id/personalia-models": "1.13.7",
158
158
  "@nuxt/kit": "^3.12.3",
159
159
  "file-saver": "^2.0.5",
160
160
  "qr-scanner": "^1.4.2",
@@ -164,5 +164,5 @@
164
164
  "publishConfig": {
165
165
  "access": "public"
166
166
  },
167
- "build": 170
167
+ "build": 171
168
168
  }