@neutron.co.id/operasional-interfaces 1.12.7 → 1.12.8
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.
- package/build/fluffy/index.cjs +155 -10
- package/build/fluffy/index.mjs +155 -10
- package/build/index.cjs +155 -10
- package/build/index.mjs +155 -10
- package/build/mock/index.cjs +339 -20
- package/build/mock/index.mjs +339 -20
- package/build/module.json +1 -1
- package/build/nuxt.json +1 -1
- package/build/office/index.cjs +155 -10
- package/build/office/index.mjs +155 -10
- package/package.json +2 -2
package/build/mock/index.cjs
CHANGED
|
@@ -13054,7 +13054,7 @@ const CheckInModel$1 = model$2.Model.define({
|
|
|
13054
13054
|
// 'neu:internalStudent',
|
|
13055
13055
|
// 'neu:teacher',
|
|
13056
13056
|
// ],
|
|
13057
|
-
search: [],
|
|
13057
|
+
search: ["nameStaff"],
|
|
13058
13058
|
cover: {
|
|
13059
13059
|
title: "",
|
|
13060
13060
|
fragment: {
|
|
@@ -13092,6 +13092,7 @@ const CheckInModel$1 = model$2.Model.define({
|
|
|
13092
13092
|
"student",
|
|
13093
13093
|
"staff",
|
|
13094
13094
|
"teacher",
|
|
13095
|
+
"branch",
|
|
13095
13096
|
"building",
|
|
13096
13097
|
"type",
|
|
13097
13098
|
"checkInAt",
|
|
@@ -13101,6 +13102,7 @@ const CheckInModel$1 = model$2.Model.define({
|
|
|
13101
13102
|
"student",
|
|
13102
13103
|
"staff",
|
|
13103
13104
|
"teacher",
|
|
13105
|
+
"branch",
|
|
13104
13106
|
"building",
|
|
13105
13107
|
"type",
|
|
13106
13108
|
"checkInAt",
|
|
@@ -13172,12 +13174,12 @@ const CheckInModel$1 = model$2.Model.define({
|
|
|
13172
13174
|
}),
|
|
13173
13175
|
branch: model$2.Field.define({
|
|
13174
13176
|
handle: "branch",
|
|
13175
|
-
name: "
|
|
13177
|
+
name: "Cabang Utama",
|
|
13176
13178
|
type: "relation",
|
|
13177
13179
|
input: "relation",
|
|
13178
13180
|
options: {
|
|
13179
|
-
note: "
|
|
13180
|
-
placeholder: "
|
|
13181
|
+
note: "Cabang utama dari karyawan.",
|
|
13182
|
+
placeholder: "Cabang utama...",
|
|
13181
13183
|
isQuery: true,
|
|
13182
13184
|
isPersisted: true
|
|
13183
13185
|
},
|
|
@@ -13375,6 +13377,31 @@ const CheckInModel$1 = model$2.Model.define({
|
|
|
13375
13377
|
}
|
|
13376
13378
|
}
|
|
13377
13379
|
}
|
|
13380
|
+
}),
|
|
13381
|
+
nameStaff: model$2.Field.define({
|
|
13382
|
+
handle: "nameStaff",
|
|
13383
|
+
name: "Nama Karyawan",
|
|
13384
|
+
type: "string",
|
|
13385
|
+
input: "short-text",
|
|
13386
|
+
options: {
|
|
13387
|
+
note: "Nama Karyawan.",
|
|
13388
|
+
isQuery: true,
|
|
13389
|
+
isPersisted: true
|
|
13390
|
+
},
|
|
13391
|
+
query: {
|
|
13392
|
+
dependency: {
|
|
13393
|
+
staff: {
|
|
13394
|
+
_id: 1,
|
|
13395
|
+
name: 1
|
|
13396
|
+
}
|
|
13397
|
+
},
|
|
13398
|
+
reduce: async (o) => {
|
|
13399
|
+
var _a;
|
|
13400
|
+
if (!(o == null ? void 0 : o.staff))
|
|
13401
|
+
return "";
|
|
13402
|
+
return (_a = o.staff) == null ? void 0 : _a.name.toString().toLowerCase();
|
|
13403
|
+
}
|
|
13404
|
+
}
|
|
13378
13405
|
})
|
|
13379
13406
|
},
|
|
13380
13407
|
fragments: {
|
|
@@ -13396,7 +13423,9 @@ const CheckInModel$1 = model$2.Model.define({
|
|
|
13396
13423
|
statusGPS: 1,
|
|
13397
13424
|
createdAt: 1,
|
|
13398
13425
|
updatedAt: 1,
|
|
13399
|
-
syncedAt: 1
|
|
13426
|
+
syncedAt: 1,
|
|
13427
|
+
branch: { id: 1, name: 1 },
|
|
13428
|
+
nameStaff: 1
|
|
13400
13429
|
},
|
|
13401
13430
|
detail: {
|
|
13402
13431
|
id: 1,
|
|
@@ -13420,7 +13449,10 @@ const CheckInModel$1 = model$2.Model.define({
|
|
|
13420
13449
|
studentId: 1,
|
|
13421
13450
|
teacherId: 1,
|
|
13422
13451
|
staffId: 1,
|
|
13423
|
-
buildingId: 1
|
|
13452
|
+
buildingId: 1,
|
|
13453
|
+
branch: { id: 1, name: 1 },
|
|
13454
|
+
branchId: 1,
|
|
13455
|
+
nameStaff: 1
|
|
13424
13456
|
},
|
|
13425
13457
|
fluffy: {}
|
|
13426
13458
|
}
|
|
@@ -14200,6 +14232,22 @@ const StatusWork$1 = model$2.Choice.define({
|
|
|
14200
14232
|
}
|
|
14201
14233
|
]
|
|
14202
14234
|
});
|
|
14235
|
+
const StatusKubik$1 = model$2.Choice.define({
|
|
14236
|
+
handle: "statusKubik",
|
|
14237
|
+
name: "Kubik Status",
|
|
14238
|
+
items: [
|
|
14239
|
+
{
|
|
14240
|
+
label: "Belum Hadir",
|
|
14241
|
+
value: "notYetAttend",
|
|
14242
|
+
color: "danger"
|
|
14243
|
+
},
|
|
14244
|
+
{
|
|
14245
|
+
label: "Hadir",
|
|
14246
|
+
value: "attend",
|
|
14247
|
+
color: "success"
|
|
14248
|
+
}
|
|
14249
|
+
]
|
|
14250
|
+
});
|
|
14203
14251
|
const PriorityStatus$1 = model$2.Choice.define({
|
|
14204
14252
|
handle: "priorityStatus",
|
|
14205
14253
|
name: "Priority Status",
|
|
@@ -18593,7 +18641,7 @@ const StaffModel$2 = model$2.Model.define({
|
|
|
18593
18641
|
input: "select",
|
|
18594
18642
|
options: {
|
|
18595
18643
|
note: "Status dari karyawan.",
|
|
18596
|
-
default: "
|
|
18644
|
+
default: "off",
|
|
18597
18645
|
enums: StatusWork$1.values,
|
|
18598
18646
|
choices: StatusWork$1.items,
|
|
18599
18647
|
isVirtual: true,
|
|
@@ -18688,7 +18736,6 @@ const StaffModel$2 = model$2.Model.define({
|
|
|
18688
18736
|
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
18689
18737
|
(field2) => dayjs2(field2 == null ? void 0 : field2.checkInAt).add(7, "hour").toISOString() > todayDate
|
|
18690
18738
|
);
|
|
18691
|
-
console.log({ checkInAtCome });
|
|
18692
18739
|
if (!checkInAtCome.length) {
|
|
18693
18740
|
return null;
|
|
18694
18741
|
} else {
|
|
@@ -18828,6 +18875,100 @@ const StaffModel$2 = model$2.Model.define({
|
|
|
18828
18875
|
}
|
|
18829
18876
|
}
|
|
18830
18877
|
}
|
|
18878
|
+
}),
|
|
18879
|
+
/* EVENT KUBIK */
|
|
18880
|
+
kubikStatus: model$2.Field.define({
|
|
18881
|
+
handle: "kubikStatus",
|
|
18882
|
+
name: "Status Kehadiran",
|
|
18883
|
+
type: "string",
|
|
18884
|
+
input: "select",
|
|
18885
|
+
options: {
|
|
18886
|
+
note: "Status kehadiran acara.",
|
|
18887
|
+
default: "notYetAttend",
|
|
18888
|
+
enums: StatusKubik$1.values,
|
|
18889
|
+
choices: StatusKubik$1.items,
|
|
18890
|
+
isVirtual: true,
|
|
18891
|
+
isPersisted: true
|
|
18892
|
+
},
|
|
18893
|
+
virtual: {
|
|
18894
|
+
dependency: {
|
|
18895
|
+
checkIns: {
|
|
18896
|
+
_id: 1,
|
|
18897
|
+
type: 1,
|
|
18898
|
+
checkInAt: 1,
|
|
18899
|
+
buildingId: 1
|
|
18900
|
+
}
|
|
18901
|
+
},
|
|
18902
|
+
reduce(o) {
|
|
18903
|
+
var _a;
|
|
18904
|
+
if (!o.checkIns.length)
|
|
18905
|
+
return "notYetAttend";
|
|
18906
|
+
const sekarang = dayjs2("2024-02-22T00:00:00.000Z").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
18907
|
+
const arrCheckIn = (_a = o.checkIns) == null ? void 0 : _a.filter(
|
|
18908
|
+
(field2) => field2.type == "in" || field2.type == "checkpoint" || field2.type == "checkin"
|
|
18909
|
+
);
|
|
18910
|
+
const arrKubikCheckIn = arrCheckIn == null ? void 0 : arrCheckIn.filter(
|
|
18911
|
+
(field2) => field2.buildingId == "65d2c2281feb875328d716ce"
|
|
18912
|
+
);
|
|
18913
|
+
const checkInsNotNull = arrKubikCheckIn == null ? void 0 : arrKubikCheckIn.filter(
|
|
18914
|
+
(field2) => field2.checkInAt != null
|
|
18915
|
+
);
|
|
18916
|
+
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
18917
|
+
(field2) => dayjs2(field2 == null ? void 0 : field2.checkInAt).add(7, "hour").toISOString() > sekarang
|
|
18918
|
+
);
|
|
18919
|
+
if (!checkInAtCome.length) {
|
|
18920
|
+
return "notYetAttend";
|
|
18921
|
+
} else {
|
|
18922
|
+
return "attend";
|
|
18923
|
+
}
|
|
18924
|
+
}
|
|
18925
|
+
}
|
|
18926
|
+
}),
|
|
18927
|
+
kubikAt: model$2.Field.define({
|
|
18928
|
+
handle: "kubikAt",
|
|
18929
|
+
name: "Waktu Kehadiran",
|
|
18930
|
+
type: "date",
|
|
18931
|
+
input: "date2",
|
|
18932
|
+
display: "date",
|
|
18933
|
+
options: {
|
|
18934
|
+
note: "Presensi masuk acara.",
|
|
18935
|
+
isVirtual: true,
|
|
18936
|
+
isPersisted: true
|
|
18937
|
+
},
|
|
18938
|
+
virtual: {
|
|
18939
|
+
dependency: {
|
|
18940
|
+
checkIns: {
|
|
18941
|
+
_id: 1,
|
|
18942
|
+
type: 1,
|
|
18943
|
+
checkInAt: 1,
|
|
18944
|
+
buildingId: 1
|
|
18945
|
+
}
|
|
18946
|
+
},
|
|
18947
|
+
reduce(o) {
|
|
18948
|
+
var _a, _b;
|
|
18949
|
+
if (!o.checkIns.length)
|
|
18950
|
+
return null;
|
|
18951
|
+
const sekarang = dayjs2("2024-02-22T00:00:00.000Z").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
18952
|
+
const arrCheckIn = (_a = o.checkIns) == null ? void 0 : _a.filter(
|
|
18953
|
+
(field2) => field2.type == "in" || field2.type == "checkpoint" || field2.type == "checkin"
|
|
18954
|
+
);
|
|
18955
|
+
const arrKubikCheckIn = arrCheckIn == null ? void 0 : arrCheckIn.filter(
|
|
18956
|
+
(field2) => field2.buildingId == "65d2c2281feb875328d716ce"
|
|
18957
|
+
);
|
|
18958
|
+
const checkInsNotNull = arrKubikCheckIn == null ? void 0 : arrKubikCheckIn.filter(
|
|
18959
|
+
(field2) => field2.checkInAt != null
|
|
18960
|
+
);
|
|
18961
|
+
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
18962
|
+
(field2) => dayjs2(field2 == null ? void 0 : field2.checkInAt).add(7, "hour").toISOString() > sekarang
|
|
18963
|
+
);
|
|
18964
|
+
if (!checkInAtCome.length) {
|
|
18965
|
+
return null;
|
|
18966
|
+
} else {
|
|
18967
|
+
const resultCheckInCome = (_b = checkInAtCome[0]) == null ? void 0 : _b.checkInAt;
|
|
18968
|
+
return resultCheckInCome;
|
|
18969
|
+
}
|
|
18970
|
+
}
|
|
18971
|
+
}
|
|
18831
18972
|
})
|
|
18832
18973
|
},
|
|
18833
18974
|
fragments: {
|
|
@@ -18870,7 +19011,9 @@ const StaffModel$2 = model$2.Model.define({
|
|
|
18870
19011
|
workStatus: 1,
|
|
18871
19012
|
workCome: 1,
|
|
18872
19013
|
workHome: 1,
|
|
18873
|
-
workNote: 1
|
|
19014
|
+
workNote: 1,
|
|
19015
|
+
kubikStatus: 1,
|
|
19016
|
+
kubikAt: 1
|
|
18874
19017
|
},
|
|
18875
19018
|
detail: {
|
|
18876
19019
|
id: 1,
|
|
@@ -18915,7 +19058,9 @@ const StaffModel$2 = model$2.Model.define({
|
|
|
18915
19058
|
workStatus: 1,
|
|
18916
19059
|
workCome: 1,
|
|
18917
19060
|
workHome: 1,
|
|
18918
|
-
workNote: 1
|
|
19061
|
+
workNote: 1,
|
|
19062
|
+
kubikStatus: 1,
|
|
19063
|
+
kubikAt: 1
|
|
18919
19064
|
},
|
|
18920
19065
|
fluffy: {}
|
|
18921
19066
|
}
|
|
@@ -34100,7 +34245,7 @@ const CheckInModel = model$2.Model.define({
|
|
|
34100
34245
|
// 'neu:internalStudent',
|
|
34101
34246
|
// 'neu:teacher',
|
|
34102
34247
|
// ],
|
|
34103
|
-
search: [],
|
|
34248
|
+
search: ["nameStaff"],
|
|
34104
34249
|
cover: {
|
|
34105
34250
|
title: "",
|
|
34106
34251
|
fragment: {
|
|
@@ -34138,6 +34283,7 @@ const CheckInModel = model$2.Model.define({
|
|
|
34138
34283
|
"student",
|
|
34139
34284
|
"staff",
|
|
34140
34285
|
"teacher",
|
|
34286
|
+
"branch",
|
|
34141
34287
|
"building",
|
|
34142
34288
|
"type",
|
|
34143
34289
|
"checkInAt",
|
|
@@ -34147,6 +34293,7 @@ const CheckInModel = model$2.Model.define({
|
|
|
34147
34293
|
"student",
|
|
34148
34294
|
"staff",
|
|
34149
34295
|
"teacher",
|
|
34296
|
+
"branch",
|
|
34150
34297
|
"building",
|
|
34151
34298
|
"type",
|
|
34152
34299
|
"checkInAt",
|
|
@@ -34218,12 +34365,12 @@ const CheckInModel = model$2.Model.define({
|
|
|
34218
34365
|
}),
|
|
34219
34366
|
branch: model$2.Field.define({
|
|
34220
34367
|
handle: "branch",
|
|
34221
|
-
name: "
|
|
34368
|
+
name: "Cabang Utama",
|
|
34222
34369
|
type: "relation",
|
|
34223
34370
|
input: "relation",
|
|
34224
34371
|
options: {
|
|
34225
|
-
note: "
|
|
34226
|
-
placeholder: "
|
|
34372
|
+
note: "Cabang utama dari karyawan.",
|
|
34373
|
+
placeholder: "Cabang utama...",
|
|
34227
34374
|
isQuery: true,
|
|
34228
34375
|
isPersisted: true
|
|
34229
34376
|
},
|
|
@@ -34421,6 +34568,31 @@ const CheckInModel = model$2.Model.define({
|
|
|
34421
34568
|
}
|
|
34422
34569
|
}
|
|
34423
34570
|
}
|
|
34571
|
+
}),
|
|
34572
|
+
nameStaff: model$2.Field.define({
|
|
34573
|
+
handle: "nameStaff",
|
|
34574
|
+
name: "Nama Karyawan",
|
|
34575
|
+
type: "string",
|
|
34576
|
+
input: "short-text",
|
|
34577
|
+
options: {
|
|
34578
|
+
note: "Nama Karyawan.",
|
|
34579
|
+
isQuery: true,
|
|
34580
|
+
isPersisted: true
|
|
34581
|
+
},
|
|
34582
|
+
query: {
|
|
34583
|
+
dependency: {
|
|
34584
|
+
staff: {
|
|
34585
|
+
_id: 1,
|
|
34586
|
+
name: 1
|
|
34587
|
+
}
|
|
34588
|
+
},
|
|
34589
|
+
reduce: async (o) => {
|
|
34590
|
+
var _a;
|
|
34591
|
+
if (!(o == null ? void 0 : o.staff))
|
|
34592
|
+
return "";
|
|
34593
|
+
return (_a = o.staff) == null ? void 0 : _a.name.toString().toLowerCase();
|
|
34594
|
+
}
|
|
34595
|
+
}
|
|
34424
34596
|
})
|
|
34425
34597
|
},
|
|
34426
34598
|
fragments: {
|
|
@@ -34442,7 +34614,9 @@ const CheckInModel = model$2.Model.define({
|
|
|
34442
34614
|
statusGPS: 1,
|
|
34443
34615
|
createdAt: 1,
|
|
34444
34616
|
updatedAt: 1,
|
|
34445
|
-
syncedAt: 1
|
|
34617
|
+
syncedAt: 1,
|
|
34618
|
+
branch: { id: 1, name: 1 },
|
|
34619
|
+
nameStaff: 1
|
|
34446
34620
|
},
|
|
34447
34621
|
detail: {
|
|
34448
34622
|
id: 1,
|
|
@@ -34466,7 +34640,10 @@ const CheckInModel = model$2.Model.define({
|
|
|
34466
34640
|
studentId: 1,
|
|
34467
34641
|
teacherId: 1,
|
|
34468
34642
|
staffId: 1,
|
|
34469
|
-
buildingId: 1
|
|
34643
|
+
buildingId: 1,
|
|
34644
|
+
branch: { id: 1, name: 1 },
|
|
34645
|
+
branchId: 1,
|
|
34646
|
+
nameStaff: 1
|
|
34470
34647
|
},
|
|
34471
34648
|
fluffy: {}
|
|
34472
34649
|
}
|
|
@@ -35229,6 +35406,22 @@ const StatusWork = model$2.Choice.define({
|
|
|
35229
35406
|
}
|
|
35230
35407
|
]
|
|
35231
35408
|
});
|
|
35409
|
+
const StatusKubik = model$2.Choice.define({
|
|
35410
|
+
handle: "statusKubik",
|
|
35411
|
+
name: "Kubik Status",
|
|
35412
|
+
items: [
|
|
35413
|
+
{
|
|
35414
|
+
label: "Belum Hadir",
|
|
35415
|
+
value: "notYetAttend",
|
|
35416
|
+
color: "danger"
|
|
35417
|
+
},
|
|
35418
|
+
{
|
|
35419
|
+
label: "Hadir",
|
|
35420
|
+
value: "attend",
|
|
35421
|
+
color: "success"
|
|
35422
|
+
}
|
|
35423
|
+
]
|
|
35424
|
+
});
|
|
35232
35425
|
const PriorityStatus = model$2.Choice.define({
|
|
35233
35426
|
handle: "priorityStatus",
|
|
35234
35427
|
name: "Priority Status",
|
|
@@ -39622,7 +39815,7 @@ const StaffModel$1 = model$2.Model.define({
|
|
|
39622
39815
|
input: "select",
|
|
39623
39816
|
options: {
|
|
39624
39817
|
note: "Status dari karyawan.",
|
|
39625
|
-
default: "
|
|
39818
|
+
default: "off",
|
|
39626
39819
|
enums: StatusWork.values,
|
|
39627
39820
|
choices: StatusWork.items,
|
|
39628
39821
|
isVirtual: true,
|
|
@@ -39717,7 +39910,6 @@ const StaffModel$1 = model$2.Model.define({
|
|
|
39717
39910
|
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
39718
39911
|
(field2) => dayjs22(field2 == null ? void 0 : field2.checkInAt).add(7, "hour").toISOString() > todayDate
|
|
39719
39912
|
);
|
|
39720
|
-
console.log({ checkInAtCome });
|
|
39721
39913
|
if (!checkInAtCome.length) {
|
|
39722
39914
|
return null;
|
|
39723
39915
|
} else {
|
|
@@ -39857,6 +40049,100 @@ const StaffModel$1 = model$2.Model.define({
|
|
|
39857
40049
|
}
|
|
39858
40050
|
}
|
|
39859
40051
|
}
|
|
40052
|
+
}),
|
|
40053
|
+
/* EVENT KUBIK */
|
|
40054
|
+
kubikStatus: model$2.Field.define({
|
|
40055
|
+
handle: "kubikStatus",
|
|
40056
|
+
name: "Status Kehadiran",
|
|
40057
|
+
type: "string",
|
|
40058
|
+
input: "select",
|
|
40059
|
+
options: {
|
|
40060
|
+
note: "Status kehadiran acara.",
|
|
40061
|
+
default: "notYetAttend",
|
|
40062
|
+
enums: StatusKubik.values,
|
|
40063
|
+
choices: StatusKubik.items,
|
|
40064
|
+
isVirtual: true,
|
|
40065
|
+
isPersisted: true
|
|
40066
|
+
},
|
|
40067
|
+
virtual: {
|
|
40068
|
+
dependency: {
|
|
40069
|
+
checkIns: {
|
|
40070
|
+
_id: 1,
|
|
40071
|
+
type: 1,
|
|
40072
|
+
checkInAt: 1,
|
|
40073
|
+
buildingId: 1
|
|
40074
|
+
}
|
|
40075
|
+
},
|
|
40076
|
+
reduce(o) {
|
|
40077
|
+
var _a;
|
|
40078
|
+
if (!o.checkIns.length)
|
|
40079
|
+
return "notYetAttend";
|
|
40080
|
+
const sekarang = dayjs22("2024-02-22T00:00:00.000Z").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
40081
|
+
const arrCheckIn = (_a = o.checkIns) == null ? void 0 : _a.filter(
|
|
40082
|
+
(field2) => field2.type == "in" || field2.type == "checkpoint" || field2.type == "checkin"
|
|
40083
|
+
);
|
|
40084
|
+
const arrKubikCheckIn = arrCheckIn == null ? void 0 : arrCheckIn.filter(
|
|
40085
|
+
(field2) => field2.buildingId == "65d2c2281feb875328d716ce"
|
|
40086
|
+
);
|
|
40087
|
+
const checkInsNotNull = arrKubikCheckIn == null ? void 0 : arrKubikCheckIn.filter(
|
|
40088
|
+
(field2) => field2.checkInAt != null
|
|
40089
|
+
);
|
|
40090
|
+
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
40091
|
+
(field2) => dayjs22(field2 == null ? void 0 : field2.checkInAt).add(7, "hour").toISOString() > sekarang
|
|
40092
|
+
);
|
|
40093
|
+
if (!checkInAtCome.length) {
|
|
40094
|
+
return "notYetAttend";
|
|
40095
|
+
} else {
|
|
40096
|
+
return "attend";
|
|
40097
|
+
}
|
|
40098
|
+
}
|
|
40099
|
+
}
|
|
40100
|
+
}),
|
|
40101
|
+
kubikAt: model$2.Field.define({
|
|
40102
|
+
handle: "kubikAt",
|
|
40103
|
+
name: "Waktu Kehadiran",
|
|
40104
|
+
type: "date",
|
|
40105
|
+
input: "date2",
|
|
40106
|
+
display: "date",
|
|
40107
|
+
options: {
|
|
40108
|
+
note: "Presensi masuk acara.",
|
|
40109
|
+
isVirtual: true,
|
|
40110
|
+
isPersisted: true
|
|
40111
|
+
},
|
|
40112
|
+
virtual: {
|
|
40113
|
+
dependency: {
|
|
40114
|
+
checkIns: {
|
|
40115
|
+
_id: 1,
|
|
40116
|
+
type: 1,
|
|
40117
|
+
checkInAt: 1,
|
|
40118
|
+
buildingId: 1
|
|
40119
|
+
}
|
|
40120
|
+
},
|
|
40121
|
+
reduce(o) {
|
|
40122
|
+
var _a, _b;
|
|
40123
|
+
if (!o.checkIns.length)
|
|
40124
|
+
return null;
|
|
40125
|
+
const sekarang = dayjs22("2024-02-22T00:00:00.000Z").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
40126
|
+
const arrCheckIn = (_a = o.checkIns) == null ? void 0 : _a.filter(
|
|
40127
|
+
(field2) => field2.type == "in" || field2.type == "checkpoint" || field2.type == "checkin"
|
|
40128
|
+
);
|
|
40129
|
+
const arrKubikCheckIn = arrCheckIn == null ? void 0 : arrCheckIn.filter(
|
|
40130
|
+
(field2) => field2.buildingId == "65d2c2281feb875328d716ce"
|
|
40131
|
+
);
|
|
40132
|
+
const checkInsNotNull = arrKubikCheckIn == null ? void 0 : arrKubikCheckIn.filter(
|
|
40133
|
+
(field2) => field2.checkInAt != null
|
|
40134
|
+
);
|
|
40135
|
+
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
40136
|
+
(field2) => dayjs22(field2 == null ? void 0 : field2.checkInAt).add(7, "hour").toISOString() > sekarang
|
|
40137
|
+
);
|
|
40138
|
+
if (!checkInAtCome.length) {
|
|
40139
|
+
return null;
|
|
40140
|
+
} else {
|
|
40141
|
+
const resultCheckInCome = (_b = checkInAtCome[0]) == null ? void 0 : _b.checkInAt;
|
|
40142
|
+
return resultCheckInCome;
|
|
40143
|
+
}
|
|
40144
|
+
}
|
|
40145
|
+
}
|
|
39860
40146
|
})
|
|
39861
40147
|
},
|
|
39862
40148
|
fragments: {
|
|
@@ -39899,7 +40185,9 @@ const StaffModel$1 = model$2.Model.define({
|
|
|
39899
40185
|
workStatus: 1,
|
|
39900
40186
|
workCome: 1,
|
|
39901
40187
|
workHome: 1,
|
|
39902
|
-
workNote: 1
|
|
40188
|
+
workNote: 1,
|
|
40189
|
+
kubikStatus: 1,
|
|
40190
|
+
kubikAt: 1
|
|
39903
40191
|
},
|
|
39904
40192
|
detail: {
|
|
39905
40193
|
id: 1,
|
|
@@ -39944,7 +40232,9 @@ const StaffModel$1 = model$2.Model.define({
|
|
|
39944
40232
|
workStatus: 1,
|
|
39945
40233
|
workCome: 1,
|
|
39946
40234
|
workHome: 1,
|
|
39947
|
-
workNote: 1
|
|
40235
|
+
workNote: 1,
|
|
40236
|
+
kubikStatus: 1,
|
|
40237
|
+
kubikAt: 1
|
|
39948
40238
|
},
|
|
39949
40239
|
fluffy: {}
|
|
39950
40240
|
}
|
|
@@ -41988,6 +42278,30 @@ const StaffSingleAccessView = office$1.ResourceUtil.createSingle({
|
|
|
41988
42278
|
path: "/pengawas/staffs",
|
|
41989
42279
|
excludes: ["delete", "duplicate", "destroy"]
|
|
41990
42280
|
});
|
|
42281
|
+
const StaffCollectionEventView = office$1.ResourceUtil.createCollection({
|
|
42282
|
+
name: "event",
|
|
42283
|
+
definition: "neu:personalia:staff",
|
|
42284
|
+
title: "Daftar Tamu",
|
|
42285
|
+
icon: "user-tie",
|
|
42286
|
+
scope: "event",
|
|
42287
|
+
path: "/acara/staffs",
|
|
42288
|
+
query: () => {
|
|
42289
|
+
const { supervisedStaffIds } = useOperasional();
|
|
42290
|
+
return query.Query.define({
|
|
42291
|
+
filter: {
|
|
42292
|
+
_id: {
|
|
42293
|
+
$in: supervisedStaffIds.value
|
|
42294
|
+
}
|
|
42295
|
+
}
|
|
42296
|
+
});
|
|
42297
|
+
},
|
|
42298
|
+
single: {
|
|
42299
|
+
view: "access",
|
|
42300
|
+
peeks: ["modal"]
|
|
42301
|
+
},
|
|
42302
|
+
excludes: ["create", "delete", "duplicate", "destroy"],
|
|
42303
|
+
columns: ["kubikStatus", "name", "kubikAt", "branch", "branches"]
|
|
42304
|
+
});
|
|
41991
42305
|
const StaffResource = context.Resource.define({
|
|
41992
42306
|
model: StaffModel$2,
|
|
41993
42307
|
collection: {
|
|
@@ -42028,6 +42342,10 @@ const StaffResource = context.Resource.define({
|
|
|
42028
42342
|
staffAccessSingle: {
|
|
42029
42343
|
path: "/pengawas/staffs/:slug",
|
|
42030
42344
|
component: StaffSingleAccessView
|
|
42345
|
+
},
|
|
42346
|
+
staffEvent: {
|
|
42347
|
+
path: "/acara/staffs",
|
|
42348
|
+
component: StaffCollectionEventView
|
|
42031
42349
|
}
|
|
42032
42350
|
},
|
|
42033
42351
|
fragments: StaffModel$2.fragments,
|
|
@@ -43090,6 +43408,7 @@ const mod = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
43090
43408
|
SituationTypeResource,
|
|
43091
43409
|
SituationTypeSingleView,
|
|
43092
43410
|
StaffCollectionAccessView,
|
|
43411
|
+
StaffCollectionEventView,
|
|
43093
43412
|
StaffCollectionOperasionalView,
|
|
43094
43413
|
StaffCollectionView,
|
|
43095
43414
|
StaffResource,
|