@neutron.co.id/operasional-interfaces 1.4.2 → 1.4.3-beta.2
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/index.mjs
CHANGED
|
@@ -17,9 +17,9 @@ import { defineStore, storeToRefs } from "pinia";
|
|
|
17
17
|
import { useRouter } from "vue-router";
|
|
18
18
|
import { ComponentUtil } from "@neon.id/utils/component";
|
|
19
19
|
import { models as models$2 } from "@neutron.co.id/personalia-models";
|
|
20
|
-
const _hoisted_1$
|
|
20
|
+
const _hoisted_1$a = { class: "xxx-button" };
|
|
21
21
|
const __default__$9 = defineComponent({ name: "XxxButton" });
|
|
22
|
-
const _sfc_main$
|
|
22
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
23
23
|
...__default__$9,
|
|
24
24
|
props: {
|
|
25
25
|
color: {
|
|
@@ -29,7 +29,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
},
|
|
30
30
|
setup(__props) {
|
|
31
31
|
return (_ctx, _cache) => {
|
|
32
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
32
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
33
33
|
createVNode(unref(NeonButton), { label: "XXX" })
|
|
34
34
|
]);
|
|
35
35
|
};
|
|
@@ -3290,103 +3290,108 @@ var getOperationName = (r2) => {
|
|
|
3290
3290
|
}
|
|
3291
3291
|
};
|
|
3292
3292
|
"undefined" != typeof TextDecoder ? new TextDecoder() : null;
|
|
3293
|
+
var b = /* @__PURE__ */ new WeakMap();
|
|
3293
3294
|
function useClient() {
|
|
3294
|
-
|
|
3295
|
+
var e3 = getCurrentInstance();
|
|
3296
|
+
if ("production" !== process.env.NODE_ENV && !e3) {
|
|
3295
3297
|
throw new Error("use* functions may only be called during the `setup()` or other lifecycle hooks.");
|
|
3296
3298
|
}
|
|
3297
|
-
var
|
|
3298
|
-
if (
|
|
3299
|
+
var r2 = inject("$urql");
|
|
3300
|
+
if (!r2 && e3) {
|
|
3301
|
+
r2 = b.get(e3);
|
|
3302
|
+
}
|
|
3303
|
+
if ("production" !== process.env.NODE_ENV && !r2) {
|
|
3299
3304
|
throw new Error("No urql Client was provided. Did you forget to install the plugin or call `provideClient` in a parent?");
|
|
3300
3305
|
}
|
|
3301
|
-
return
|
|
3306
|
+
return r2;
|
|
3302
3307
|
}
|
|
3303
3308
|
function unwrapPossibleProxy(e3) {
|
|
3304
3309
|
return e3 && isRef(e3) ? e3.value : e3;
|
|
3305
3310
|
}
|
|
3306
|
-
var
|
|
3311
|
+
var P = {
|
|
3307
3312
|
flush: "pre"
|
|
3308
3313
|
};
|
|
3309
|
-
function callUseQuery(e3, l2 = useClient(),
|
|
3310
|
-
var
|
|
3311
|
-
var
|
|
3314
|
+
function callUseQuery(e3, l2 = useClient(), n = []) {
|
|
3315
|
+
var s4 = reactive(e3);
|
|
3316
|
+
var i3 = ref();
|
|
3312
3317
|
var v2 = ref(false);
|
|
3313
3318
|
var f2 = ref(false);
|
|
3314
3319
|
var y3 = ref();
|
|
3320
|
+
var b3 = ref();
|
|
3315
3321
|
var d4 = ref();
|
|
3316
|
-
var h4 = ref();
|
|
3317
|
-
var x2 =
|
|
3318
|
-
var w2 = ref(
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
...n.context
|
|
3322
|
+
var h4 = isRef(e3.pause) ? e3.pause : ref(!!e3.pause);
|
|
3323
|
+
var x2 = ref(createRequest(unwrapPossibleProxy(s4.query), unwrapPossibleProxy(s4.variables)));
|
|
3324
|
+
var w2 = ref();
|
|
3325
|
+
n.push(watchEffect(() => {
|
|
3326
|
+
var e4 = createRequest(unwrapPossibleProxy(s4.query), unwrapPossibleProxy(s4.variables));
|
|
3327
|
+
if (x2.value.key !== e4.key) {
|
|
3328
|
+
x2.value = e4;
|
|
3329
|
+
}
|
|
3330
|
+
}, P));
|
|
3331
|
+
n.push(watchEffect(() => {
|
|
3332
|
+
w2.value = !h4.value ? l2.value.executeQuery(x2.value, {
|
|
3333
|
+
requestPolicy: unwrapPossibleProxy(s4.requestPolicy),
|
|
3334
|
+
...unwrapPossibleProxy(s4.context)
|
|
3330
3335
|
}) : void 0;
|
|
3331
|
-
},
|
|
3336
|
+
}, P));
|
|
3332
3337
|
var q2 = {
|
|
3333
|
-
data:
|
|
3338
|
+
data: i3,
|
|
3334
3339
|
stale: v2,
|
|
3335
3340
|
error: y3,
|
|
3336
|
-
operation:
|
|
3337
|
-
extensions:
|
|
3341
|
+
operation: b3,
|
|
3342
|
+
extensions: d4,
|
|
3338
3343
|
fetching: f2,
|
|
3339
|
-
isPaused:
|
|
3344
|
+
isPaused: h4,
|
|
3340
3345
|
executeQuery(e4) {
|
|
3341
|
-
var
|
|
3342
|
-
requestPolicy:
|
|
3343
|
-
...
|
|
3346
|
+
var r2 = w2.value = l2.value.executeQuery(x2.value, {
|
|
3347
|
+
requestPolicy: unwrapPossibleProxy(s4.requestPolicy),
|
|
3348
|
+
...s4.context,
|
|
3344
3349
|
...e4
|
|
3345
3350
|
});
|
|
3346
3351
|
return {
|
|
3347
3352
|
...E2,
|
|
3348
|
-
then(e5,
|
|
3353
|
+
then(e5, u2) {
|
|
3349
3354
|
var a3;
|
|
3350
3355
|
return new Promise((e6) => {
|
|
3351
|
-
var
|
|
3356
|
+
var u3 = false;
|
|
3352
3357
|
a3 = subscribe(() => {
|
|
3353
3358
|
if (!q2.fetching.value && !q2.stale.value) {
|
|
3354
3359
|
if (a3) {
|
|
3355
3360
|
a3.unsubscribe();
|
|
3356
3361
|
}
|
|
3357
|
-
|
|
3362
|
+
u3 = true;
|
|
3358
3363
|
e6(q2);
|
|
3359
3364
|
}
|
|
3360
|
-
})(
|
|
3361
|
-
if (
|
|
3365
|
+
})(r2);
|
|
3366
|
+
if (u3) {
|
|
3362
3367
|
a3.unsubscribe();
|
|
3363
3368
|
}
|
|
3364
|
-
}).then(e5,
|
|
3369
|
+
}).then(e5, u2);
|
|
3365
3370
|
}
|
|
3366
3371
|
};
|
|
3367
3372
|
},
|
|
3368
3373
|
pause() {
|
|
3369
|
-
|
|
3374
|
+
h4.value = true;
|
|
3370
3375
|
},
|
|
3371
3376
|
resume() {
|
|
3372
|
-
|
|
3377
|
+
h4.value = false;
|
|
3373
3378
|
}
|
|
3374
3379
|
};
|
|
3375
|
-
|
|
3376
|
-
if (
|
|
3380
|
+
n.push(watchEffect((e4) => {
|
|
3381
|
+
if (w2.value) {
|
|
3377
3382
|
f2.value = true;
|
|
3378
3383
|
v2.value = false;
|
|
3379
3384
|
e4(subscribe((e5) => {
|
|
3380
|
-
|
|
3385
|
+
i3.value = e5.data;
|
|
3381
3386
|
v2.value = !!e5.stale;
|
|
3382
3387
|
f2.value = false;
|
|
3383
3388
|
y3.value = e5.error;
|
|
3384
|
-
|
|
3385
|
-
|
|
3389
|
+
b3.value = e5.operation;
|
|
3390
|
+
d4.value = e5.extensions;
|
|
3386
3391
|
})(onEnd(() => {
|
|
3387
3392
|
f2.value = false;
|
|
3388
3393
|
v2.value = false;
|
|
3389
|
-
})(
|
|
3394
|
+
})(w2.value)).unsubscribe);
|
|
3390
3395
|
} else {
|
|
3391
3396
|
f2.value = false;
|
|
3392
3397
|
v2.value = false;
|
|
@@ -3396,53 +3401,53 @@ function callUseQuery(e3, l2 = useClient(), t3 = []) {
|
|
|
3396
3401
|
}));
|
|
3397
3402
|
var E2 = {
|
|
3398
3403
|
...q2,
|
|
3399
|
-
then(e4,
|
|
3400
|
-
var
|
|
3404
|
+
then(e4, r2) {
|
|
3405
|
+
var u2;
|
|
3401
3406
|
return new Promise((e5) => {
|
|
3402
|
-
if (!
|
|
3407
|
+
if (!w2.value) {
|
|
3403
3408
|
return e5(q2);
|
|
3404
3409
|
}
|
|
3405
|
-
var
|
|
3406
|
-
|
|
3410
|
+
var r3 = false;
|
|
3411
|
+
u2 = subscribe(() => {
|
|
3407
3412
|
if (!q2.fetching.value && !q2.stale.value) {
|
|
3408
|
-
if (
|
|
3409
|
-
|
|
3413
|
+
if (u2) {
|
|
3414
|
+
u2.unsubscribe();
|
|
3410
3415
|
}
|
|
3411
|
-
|
|
3416
|
+
r3 = true;
|
|
3412
3417
|
e5(q2);
|
|
3413
3418
|
}
|
|
3414
|
-
})(
|
|
3415
|
-
if (
|
|
3416
|
-
|
|
3419
|
+
})(w2.value);
|
|
3420
|
+
if (r3) {
|
|
3421
|
+
u2.unsubscribe();
|
|
3417
3422
|
}
|
|
3418
|
-
}).then(e4,
|
|
3423
|
+
}).then(e4, r2);
|
|
3419
3424
|
}
|
|
3420
3425
|
};
|
|
3421
3426
|
return E2;
|
|
3422
3427
|
}
|
|
3423
|
-
function callUseMutation(e3,
|
|
3428
|
+
function callUseMutation(e3, u2 = useClient()) {
|
|
3424
3429
|
var l2 = ref();
|
|
3425
|
-
var t3 = ref(false);
|
|
3426
3430
|
var n = ref(false);
|
|
3427
|
-
var s4 = ref();
|
|
3428
|
-
var
|
|
3431
|
+
var s4 = ref(false);
|
|
3432
|
+
var t3 = ref();
|
|
3429
3433
|
var o2 = ref();
|
|
3434
|
+
var i3 = ref();
|
|
3430
3435
|
return {
|
|
3431
3436
|
data: l2,
|
|
3432
|
-
stale:
|
|
3433
|
-
fetching:
|
|
3434
|
-
error:
|
|
3435
|
-
operation:
|
|
3436
|
-
extensions:
|
|
3437
|
+
stale: n,
|
|
3438
|
+
fetching: s4,
|
|
3439
|
+
error: t3,
|
|
3440
|
+
operation: o2,
|
|
3441
|
+
extensions: i3,
|
|
3437
3442
|
executeMutation(a3, v2) {
|
|
3438
|
-
|
|
3439
|
-
return toPromise(take(1)(
|
|
3443
|
+
s4.value = true;
|
|
3444
|
+
return toPromise(take(1)(u2.value.executeMutation(createRequest(e3, unwrapPossibleProxy(a3)), v2 || {}))).then((e4) => {
|
|
3440
3445
|
l2.value = e4.data;
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
+
n.value = !!e4.stale;
|
|
3447
|
+
s4.value = false;
|
|
3448
|
+
t3.value = e4.error;
|
|
3449
|
+
o2.value = e4.operation;
|
|
3450
|
+
i3.value = e4.extensions;
|
|
3446
3451
|
return e4;
|
|
3447
3452
|
});
|
|
3448
3453
|
}
|
|
@@ -3451,38 +3456,38 @@ function callUseMutation(e3, r2 = useClient()) {
|
|
|
3451
3456
|
var d = {
|
|
3452
3457
|
flush: "pre"
|
|
3453
3458
|
};
|
|
3454
|
-
function callUseSubscription(e3, l2,
|
|
3455
|
-
var
|
|
3459
|
+
function callUseSubscription(e3, l2, n = useClient(), s4 = []) {
|
|
3460
|
+
var i3 = reactive(e3);
|
|
3456
3461
|
var v2 = ref();
|
|
3457
3462
|
var f2 = ref(false);
|
|
3458
3463
|
var y3 = ref(false);
|
|
3459
3464
|
var b3 = ref();
|
|
3465
|
+
var P2 = ref();
|
|
3460
3466
|
var h4 = ref();
|
|
3461
|
-
var x2 = ref();
|
|
3462
|
-
var w2 = ref(
|
|
3463
|
-
var
|
|
3464
|
-
var q2 = ref(createRequest(o2.query, unwrapPossibleProxy(o2.variables)));
|
|
3467
|
+
var x2 = ref(l2);
|
|
3468
|
+
var w2 = isRef(e3.pause) ? e3.pause : ref(!!e3.pause);
|
|
3469
|
+
var q2 = ref(createRequest(unwrapPossibleProxy(i3.query), unwrapPossibleProxy(i3.variables)));
|
|
3465
3470
|
var E2 = ref();
|
|
3466
|
-
|
|
3467
|
-
var e4 = createRequest(
|
|
3471
|
+
s4.push(watchEffect(() => {
|
|
3472
|
+
var e4 = createRequest(unwrapPossibleProxy(i3.query), unwrapPossibleProxy(i3.variables));
|
|
3468
3473
|
if (q2.value.key !== e4.key) {
|
|
3469
3474
|
q2.value = e4;
|
|
3470
3475
|
}
|
|
3471
3476
|
}, d));
|
|
3472
|
-
|
|
3473
|
-
E2.value = !
|
|
3474
|
-
...
|
|
3477
|
+
s4.push(watchEffect(() => {
|
|
3478
|
+
E2.value = !w2.value ? n.value.executeSubscription(q2.value, {
|
|
3479
|
+
...unwrapPossibleProxy(i3.context)
|
|
3475
3480
|
}) : void 0;
|
|
3476
3481
|
}, d));
|
|
3477
|
-
|
|
3482
|
+
s4.push(watchEffect((e4) => {
|
|
3478
3483
|
if (E2.value) {
|
|
3479
3484
|
y3.value = true;
|
|
3480
3485
|
e4(subscribe((e5) => {
|
|
3481
3486
|
y3.value = true;
|
|
3482
|
-
v2.value = void 0 !== e5.data ? "function" == typeof
|
|
3483
|
-
|
|
3487
|
+
v2.value = void 0 !== e5.data ? "function" == typeof x2.value ? x2.value(v2.value, e5.data) : e5.data : e5.data, b3.value = e5.error;
|
|
3488
|
+
h4.value = e5.extensions;
|
|
3484
3489
|
f2.value = !!e5.stale;
|
|
3485
|
-
|
|
3490
|
+
P2.value = e5.operation;
|
|
3486
3491
|
})(onEnd(() => {
|
|
3487
3492
|
y3.value = false;
|
|
3488
3493
|
})(E2.value)).unsubscribe);
|
|
@@ -3494,60 +3499,60 @@ function callUseSubscription(e3, l2, t3 = useClient(), n = []) {
|
|
|
3494
3499
|
data: v2,
|
|
3495
3500
|
stale: f2,
|
|
3496
3501
|
error: b3,
|
|
3497
|
-
operation:
|
|
3498
|
-
extensions:
|
|
3502
|
+
operation: P2,
|
|
3503
|
+
extensions: h4,
|
|
3499
3504
|
fetching: y3,
|
|
3500
|
-
isPaused:
|
|
3505
|
+
isPaused: w2,
|
|
3501
3506
|
executeSubscription(e4) {
|
|
3502
|
-
E2.value =
|
|
3503
|
-
...
|
|
3507
|
+
E2.value = n.value.executeSubscription(q2.value, {
|
|
3508
|
+
...unwrapPossibleProxy(i3.context),
|
|
3504
3509
|
...e4
|
|
3505
3510
|
});
|
|
3506
3511
|
return m3;
|
|
3507
3512
|
},
|
|
3508
3513
|
pause() {
|
|
3509
|
-
|
|
3514
|
+
w2.value = true;
|
|
3510
3515
|
},
|
|
3511
3516
|
resume() {
|
|
3512
|
-
|
|
3517
|
+
w2.value = false;
|
|
3513
3518
|
}
|
|
3514
3519
|
};
|
|
3515
3520
|
return m3;
|
|
3516
3521
|
}
|
|
3517
3522
|
function useClientHandle() {
|
|
3518
3523
|
var e3 = useClient();
|
|
3519
|
-
var
|
|
3524
|
+
var r2 = [];
|
|
3520
3525
|
onBeforeUnmount(() => {
|
|
3521
3526
|
var e4;
|
|
3522
|
-
while (e4 =
|
|
3527
|
+
while (e4 = r2.shift()) {
|
|
3523
3528
|
e4();
|
|
3524
3529
|
}
|
|
3525
3530
|
});
|
|
3526
|
-
var
|
|
3531
|
+
var u2 = {
|
|
3527
3532
|
client: e3.value,
|
|
3528
|
-
useQuery: (
|
|
3529
|
-
useSubscription: (
|
|
3530
|
-
useMutation: (
|
|
3533
|
+
useQuery: (u3) => callUseQuery(u3, e3, r2),
|
|
3534
|
+
useSubscription: (u3, a3) => callUseSubscription(u3, a3, e3, r2),
|
|
3535
|
+
useMutation: (r3) => callUseMutation(r3, e3)
|
|
3531
3536
|
};
|
|
3532
3537
|
if ("production" !== process.env.NODE_ENV) {
|
|
3533
3538
|
onMounted(() => {
|
|
3534
|
-
Object.assign(
|
|
3535
|
-
useQuery(
|
|
3539
|
+
Object.assign(u2, {
|
|
3540
|
+
useQuery(u3) {
|
|
3536
3541
|
if ("production" !== process.env.NODE_ENV && !getCurrentInstance()) {
|
|
3537
3542
|
throw new Error("`handle.useQuery()` should only be called in the `setup()` or a lifecycle hook.");
|
|
3538
3543
|
}
|
|
3539
|
-
return callUseQuery(
|
|
3544
|
+
return callUseQuery(u3, e3, r2);
|
|
3540
3545
|
},
|
|
3541
|
-
useSubscription(
|
|
3546
|
+
useSubscription(u3, a3) {
|
|
3542
3547
|
if ("production" !== process.env.NODE_ENV && !getCurrentInstance()) {
|
|
3543
3548
|
throw new Error("`handle.useSubscription()` should only be called in the `setup()` or a lifecycle hook.");
|
|
3544
3549
|
}
|
|
3545
|
-
return callUseSubscription(
|
|
3550
|
+
return callUseSubscription(u3, a3, e3, r2);
|
|
3546
3551
|
}
|
|
3547
3552
|
});
|
|
3548
3553
|
});
|
|
3549
3554
|
}
|
|
3550
|
-
return
|
|
3555
|
+
return u2;
|
|
3551
3556
|
}
|
|
3552
3557
|
function toInteger(dirtyNumber) {
|
|
3553
3558
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
@@ -5102,13 +5107,13 @@ function cleanEscapedString(input) {
|
|
|
5102
5107
|
function startOfToday() {
|
|
5103
5108
|
return startOfDay(Date.now());
|
|
5104
5109
|
}
|
|
5105
|
-
const _hoisted_1$
|
|
5110
|
+
const _hoisted_1$9 = { class: "operasional-identitas" };
|
|
5106
5111
|
const _hoisted_2$5 = {
|
|
5107
5112
|
key: 2,
|
|
5108
5113
|
class: "section"
|
|
5109
5114
|
};
|
|
5110
5115
|
const __default__$8 = defineComponent({ name: "OperasionalIdentitas" });
|
|
5111
|
-
const _sfc_main$
|
|
5116
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
5112
5117
|
...__default__$8,
|
|
5113
5118
|
props: {
|
|
5114
5119
|
profile: {
|
|
@@ -5362,7 +5367,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5362
5367
|
candidateId.value = null;
|
|
5363
5368
|
}
|
|
5364
5369
|
return (_ctx, _cache) => {
|
|
5365
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5370
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
5366
5371
|
state.value === "connect" ? (openBlock(), createBlock(unref(IdentitasConnect), {
|
|
5367
5372
|
key: 0,
|
|
5368
5373
|
user: unref(user),
|
|
@@ -5455,7 +5460,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5455
5460
|
};
|
|
5456
5461
|
}
|
|
5457
5462
|
});
|
|
5458
|
-
const
|
|
5463
|
+
const OperasionalIdentitas_vue_vue_type_style_index_0_scoped_780f9c83_lang = "";
|
|
5459
5464
|
const _export_sfc = (sfc, props) => {
|
|
5460
5465
|
const target = sfc.__vccOpts || sfc;
|
|
5461
5466
|
for (const [key, val] of props) {
|
|
@@ -5463,7 +5468,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
5463
5468
|
}
|
|
5464
5469
|
return target;
|
|
5465
5470
|
};
|
|
5466
|
-
const OperasionalIdentitas = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5471
|
+
const OperasionalIdentitas = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-780f9c83"]]);
|
|
5467
5472
|
const CheckInModel = models$1.CheckInModel;
|
|
5468
5473
|
const useOperasionalStore = defineStore("neu:operasional", () => {
|
|
5469
5474
|
const isLoading = ref(false);
|
|
@@ -5604,8 +5609,8 @@ function mitt(n) {
|
|
|
5604
5609
|
} };
|
|
5605
5610
|
}
|
|
5606
5611
|
const bus = mitt();
|
|
5607
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
5608
|
-
const _hoisted_1$
|
|
5612
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-89ba2448"), n = n(), popScopeId(), n);
|
|
5613
|
+
const _hoisted_1$8 = { id: "view-checkIns" };
|
|
5609
5614
|
const _hoisted_2$4 = { class: "summary" };
|
|
5610
5615
|
const _hoisted_3$1 = { class: "wrapper" };
|
|
5611
5616
|
const _hoisted_4$1 = { class: "header" };
|
|
@@ -5623,7 +5628,7 @@ const _hoisted_6 = { class: "end" };
|
|
|
5623
5628
|
const __default__$7 = defineComponent({
|
|
5624
5629
|
name: "CheckInPresenceCollection"
|
|
5625
5630
|
});
|
|
5626
|
-
const _sfc_main$
|
|
5631
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
5627
5632
|
...__default__$7,
|
|
5628
5633
|
setup(__props) {
|
|
5629
5634
|
const collectionBus = useEventBus("neu:tempat:checkIn");
|
|
@@ -5759,9 +5764,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5759
5764
|
return checkInId;
|
|
5760
5765
|
}
|
|
5761
5766
|
return (_ctx, _cache) => {
|
|
5762
|
-
const
|
|
5767
|
+
const _component_CheckInSingleExternalView = resolveComponent("CheckInSingleExternalView");
|
|
5763
5768
|
const _component_CheckInCollection = resolveComponent("CheckInCollection");
|
|
5764
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5769
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
5765
5770
|
createVNode(unref(OfficeContent), {
|
|
5766
5771
|
icon: "barcode-read",
|
|
5767
5772
|
title: "Presensi",
|
|
@@ -5861,7 +5866,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5861
5866
|
onClose: onModalClose
|
|
5862
5867
|
}, {
|
|
5863
5868
|
default: withCtx(() => [
|
|
5864
|
-
createVNode(
|
|
5869
|
+
createVNode(_component_CheckInSingleExternalView, {
|
|
5865
5870
|
id: id.value,
|
|
5866
5871
|
"is-new": "",
|
|
5867
5872
|
"is-main": false,
|
|
@@ -5924,10 +5929,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5924
5929
|
};
|
|
5925
5930
|
}
|
|
5926
5931
|
});
|
|
5927
|
-
const
|
|
5928
|
-
const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5929
|
-
const _hoisted_1$
|
|
5930
|
-
const _sfc_main$
|
|
5932
|
+
const CheckInPresenceCollection_vue_vue_type_style_index_0_scoped_89ba2448_lang = "";
|
|
5933
|
+
const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-89ba2448"]]);
|
|
5934
|
+
const _hoisted_1$7 = { class: "grid gap-4 sm:grid-cols-2" };
|
|
5935
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
5931
5936
|
__name: "CheckInSingle",
|
|
5932
5937
|
setup(__props) {
|
|
5933
5938
|
const {
|
|
@@ -5985,7 +5990,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
5985
5990
|
field: unref(fields).building,
|
|
5986
5991
|
"is-disabled": ""
|
|
5987
5992
|
}, null, 8, ["modelValue", "field"]),
|
|
5988
|
-
createElementVNode("div", _hoisted_1$
|
|
5993
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
5989
5994
|
createVNode(unref(NeonField), mergeProps({
|
|
5990
5995
|
modelValue: unref(values).type,
|
|
5991
5996
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
|
|
@@ -6025,7 +6030,107 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
6025
6030
|
}
|
|
6026
6031
|
});
|
|
6027
6032
|
const CheckInSingle_vue_vue_type_style_index_0_scoped_2e2803fb_lang = "";
|
|
6028
|
-
const CheckInSingle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6033
|
+
const CheckInSingle = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-2e2803fb"]]);
|
|
6034
|
+
const _hoisted_1$6 = { class: "grid gap-4 sm:grid-cols-2" };
|
|
6035
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
6036
|
+
__name: "CheckInExternal",
|
|
6037
|
+
setup(__props) {
|
|
6038
|
+
const {
|
|
6039
|
+
fields,
|
|
6040
|
+
id,
|
|
6041
|
+
initialValues,
|
|
6042
|
+
values,
|
|
6043
|
+
isLoading,
|
|
6044
|
+
isChanged,
|
|
6045
|
+
isReady,
|
|
6046
|
+
isMain,
|
|
6047
|
+
isNew,
|
|
6048
|
+
saveOne,
|
|
6049
|
+
discardChanges,
|
|
6050
|
+
getOne
|
|
6051
|
+
} = useSingle();
|
|
6052
|
+
const { staff } = useOperasional();
|
|
6053
|
+
onMounted(() => {
|
|
6054
|
+
var _a, _b, _c;
|
|
6055
|
+
console.log("idnya?", id.value);
|
|
6056
|
+
if (id.value === "new") {
|
|
6057
|
+
values.value.staffId = (_a = staff.value) == null ? void 0 : _a.id;
|
|
6058
|
+
values.value.staff = {
|
|
6059
|
+
id: (_b = staff.value) == null ? void 0 : _b.id,
|
|
6060
|
+
display: (_c = staff.value) == null ? void 0 : _c.display
|
|
6061
|
+
};
|
|
6062
|
+
values.value.checkInAt = new Date().toISOString();
|
|
6063
|
+
values.value.type = "checkpoint";
|
|
6064
|
+
}
|
|
6065
|
+
});
|
|
6066
|
+
return (_ctx, _cache) => {
|
|
6067
|
+
return openBlock(), createBlock(unref(NeonSingle), { class: "neu-checkIn-single" }, {
|
|
6068
|
+
default: withCtx(() => [
|
|
6069
|
+
createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
|
|
6070
|
+
default: withCtx(() => [
|
|
6071
|
+
createVNode(unref(OfficeTab), {
|
|
6072
|
+
handle: "info",
|
|
6073
|
+
icon: "circle-info",
|
|
6074
|
+
title: "Info"
|
|
6075
|
+
}, {
|
|
6076
|
+
default: withCtx(() => [
|
|
6077
|
+
createVNode(unref(NeonForm), {
|
|
6078
|
+
handle: "info",
|
|
6079
|
+
"initial-values": unref(initialValues),
|
|
6080
|
+
"is-loading": unref(isLoading),
|
|
6081
|
+
"is-changed": unref(isChanged),
|
|
6082
|
+
"use-unsaved": "",
|
|
6083
|
+
onCancel: unref(discardChanges),
|
|
6084
|
+
onSubmit: unref(saveOne)
|
|
6085
|
+
}, {
|
|
6086
|
+
default: withCtx(() => [
|
|
6087
|
+
unref(values).type === "in" || unref(values).type === "out" ? (openBlock(), createBlock(unref(OfficeRelation), {
|
|
6088
|
+
key: 0,
|
|
6089
|
+
modelValue: unref(values),
|
|
6090
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(values) ? values.value = $event : null),
|
|
6091
|
+
field: unref(fields).building
|
|
6092
|
+
}, null, 8, ["modelValue", "field"])) : createCommentVNode("v-if", true),
|
|
6093
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
6094
|
+
createVNode(unref(NeonField), mergeProps({
|
|
6095
|
+
modelValue: unref(values).type,
|
|
6096
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
|
|
6097
|
+
}, unref(fields).type, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
6098
|
+
createVNode(unref(NeonField), mergeProps({
|
|
6099
|
+
modelValue: unref(values).checkInAt,
|
|
6100
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).checkInAt = $event)
|
|
6101
|
+
}, unref(fields).checkInAt, { "is-disabled": "" }), null, 16, ["modelValue"])
|
|
6102
|
+
]),
|
|
6103
|
+
createVNode(unref(OfficeRelation), {
|
|
6104
|
+
modelValue: unref(values),
|
|
6105
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
|
|
6106
|
+
field: unref(fields).staff,
|
|
6107
|
+
"is-disabled": ""
|
|
6108
|
+
}, null, 8, ["modelValue", "field"]),
|
|
6109
|
+
createVNode(unref(NeonField), mergeProps({
|
|
6110
|
+
modelValue: unref(values).note,
|
|
6111
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).note = $event)
|
|
6112
|
+
}, unref(fields).note), null, 16, ["modelValue"])
|
|
6113
|
+
]),
|
|
6114
|
+
_: 1
|
|
6115
|
+
/* STABLE */
|
|
6116
|
+
}, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
|
|
6117
|
+
]),
|
|
6118
|
+
_: 1
|
|
6119
|
+
/* STABLE */
|
|
6120
|
+
})
|
|
6121
|
+
]),
|
|
6122
|
+
_: 1
|
|
6123
|
+
/* STABLE */
|
|
6124
|
+
}, 8, ["use-url"])
|
|
6125
|
+
]),
|
|
6126
|
+
_: 1
|
|
6127
|
+
/* STABLE */
|
|
6128
|
+
});
|
|
6129
|
+
};
|
|
6130
|
+
}
|
|
6131
|
+
});
|
|
6132
|
+
const CheckInExternal_vue_vue_type_style_index_0_scoped_3c28699a_lang = "";
|
|
6133
|
+
const CheckInExternal = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-3c28699a"]]);
|
|
6029
6134
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-d23b6de5"), n = n(), popScopeId(), n);
|
|
6030
6135
|
const _hoisted_1$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
|
|
6031
6136
|
"h4",
|
|
@@ -7278,26 +7383,43 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
7278
7383
|
discardChanges
|
|
7279
7384
|
} = useSingle();
|
|
7280
7385
|
const authStore = useAuthStore();
|
|
7281
|
-
|
|
7386
|
+
storeToRefs(authStore);
|
|
7282
7387
|
const { staff } = useOperasional();
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7388
|
+
watch(
|
|
7389
|
+
isNew,
|
|
7390
|
+
(isNew2) => {
|
|
7391
|
+
var _a, _b, _c, _d, _e;
|
|
7392
|
+
const branch = ((_a = staff.value) == null ? void 0 : _a.branchIds) || [];
|
|
7393
|
+
const branchDisplay = ((_b = staff.value) == null ? void 0 : _b.branches) || [];
|
|
7394
|
+
if (!isNew2)
|
|
7395
|
+
return;
|
|
7396
|
+
values.value.situationReportedByIds = [((_c = staff.value) == null ? void 0 : _c.id) || ""];
|
|
7289
7397
|
values.value.situationReportedBy = [
|
|
7290
7398
|
{
|
|
7291
|
-
id: (
|
|
7292
|
-
display: (
|
|
7399
|
+
id: (_d = staff.value) == null ? void 0 : _d.id,
|
|
7400
|
+
display: (_e = staff.value) == null ? void 0 : _e.display
|
|
7293
7401
|
}
|
|
7294
7402
|
];
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7403
|
+
values.value.branchIds = [branch[0]];
|
|
7404
|
+
values.value.branches = [branchDisplay[0]];
|
|
7405
|
+
},
|
|
7406
|
+
{ immediate: true }
|
|
7407
|
+
);
|
|
7408
|
+
const onTypeState = computed(() => {
|
|
7409
|
+
var _a;
|
|
7410
|
+
return Query.define({
|
|
7411
|
+
filter: {
|
|
7412
|
+
branchIds: { $in: (_a = staff.value) == null ? void 0 : _a.branchIds }
|
|
7413
|
+
}
|
|
7414
|
+
});
|
|
7415
|
+
});
|
|
7416
|
+
const onBranchState = computed(() => {
|
|
7417
|
+
var _a;
|
|
7418
|
+
return Query.define({
|
|
7419
|
+
filter: {
|
|
7420
|
+
_id: { $in: (_a = staff.value) == null ? void 0 : _a.branchIds }
|
|
7421
|
+
}
|
|
7422
|
+
});
|
|
7301
7423
|
});
|
|
7302
7424
|
return (_ctx, _cache) => {
|
|
7303
7425
|
return openBlock(), createBlock(unref(NeonSingle), { class: "neu-situation-single" }, {
|
|
@@ -7337,18 +7459,21 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
7337
7459
|
modelValue: unref(values),
|
|
7338
7460
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(values) ? values.value = $event : null),
|
|
7339
7461
|
field: unref(fields).branches,
|
|
7340
|
-
fragment: { id: 1, display: 1, name: 1 }
|
|
7341
|
-
|
|
7462
|
+
fragment: { id: 1, display: 1, name: 1 },
|
|
7463
|
+
query: unref(onBranchState)
|
|
7464
|
+
}, null, 8, ["modelValue", "field", "query"]),
|
|
7342
7465
|
createVNode(unref(OfficeRelation), {
|
|
7343
7466
|
modelValue: unref(values),
|
|
7344
7467
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
|
|
7345
|
-
field: unref(fields).situationType
|
|
7346
|
-
|
|
7468
|
+
field: unref(fields).situationType,
|
|
7469
|
+
query: unref(onTypeState)
|
|
7470
|
+
}, null, 8, ["modelValue", "field", "query"]),
|
|
7347
7471
|
createVNode(unref(OfficeRelation), {
|
|
7348
7472
|
modelValue: unref(values),
|
|
7349
7473
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
|
|
7350
7474
|
field: unref(fields).situationReportedBy,
|
|
7351
|
-
fragment: { id: 1, display: 1, name: 1 }
|
|
7475
|
+
fragment: { id: 1, display: 1, name: 1 },
|
|
7476
|
+
"is-disabled": ""
|
|
7352
7477
|
}, null, 8, ["modelValue", "field"]),
|
|
7353
7478
|
createVNode(unref(NeonFields), { md: "grid-cols-4" }, {
|
|
7354
7479
|
default: withCtx(() => [
|
|
@@ -8057,16 +8182,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8057
8182
|
discardChanges
|
|
8058
8183
|
} = useSingle();
|
|
8059
8184
|
const authStore = useAuthStore();
|
|
8060
|
-
|
|
8185
|
+
storeToRefs(authStore);
|
|
8061
8186
|
useOperasional();
|
|
8062
|
-
onMounted(() => {
|
|
8063
|
-
if (id.value === "new") {
|
|
8064
|
-
values.value.userId = userId.value;
|
|
8065
|
-
}
|
|
8066
|
-
if (isChanged) {
|
|
8067
|
-
values.value.userId = userId.value;
|
|
8068
|
-
}
|
|
8069
|
-
});
|
|
8070
8187
|
function onChangeDateUpdate(date) {
|
|
8071
8188
|
values.value.estimatedStartDate = date == null ? void 0 : date.start.toISOString();
|
|
8072
8189
|
values.value.estimatedEndDate = date == null ? void 0 : date.end.toISOString();
|
|
@@ -8284,6 +8401,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
8284
8401
|
__proto__: null,
|
|
8285
8402
|
CheckInAccess,
|
|
8286
8403
|
CheckInCollection: _sfc_main$d,
|
|
8404
|
+
CheckInExternal,
|
|
8287
8405
|
CheckInModel,
|
|
8288
8406
|
CheckInPresenceCollection,
|
|
8289
8407
|
CheckInScanError: _sfc_main$g,
|
|
@@ -8308,7 +8426,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
8308
8426
|
TaskSingle: _sfc_main$1,
|
|
8309
8427
|
TaskWork: _sfc_main,
|
|
8310
8428
|
TaskWorkButton: _sfc_main$3,
|
|
8311
|
-
XxxButton: _sfc_main$
|
|
8429
|
+
XxxButton: _sfc_main$m
|
|
8312
8430
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8313
8431
|
function registerComponents(app) {
|
|
8314
8432
|
Object.entries(components).forEach(([name, component]) => {
|
|
@@ -8428,6 +8546,7 @@ const qrScannerWorker_min = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
|
|
|
8428
8546
|
export {
|
|
8429
8547
|
CheckInAccess,
|
|
8430
8548
|
_sfc_main$d as CheckInCollection,
|
|
8549
|
+
CheckInExternal,
|
|
8431
8550
|
CheckInModel,
|
|
8432
8551
|
CheckInPresenceCollection,
|
|
8433
8552
|
_sfc_main$g as CheckInScanError,
|
|
@@ -8455,7 +8574,7 @@ export {
|
|
|
8455
8574
|
_sfc_main$1 as TaskSingle,
|
|
8456
8575
|
_sfc_main as TaskWork,
|
|
8457
8576
|
_sfc_main$3 as TaskWorkButton,
|
|
8458
|
-
_sfc_main$
|
|
8577
|
+
_sfc_main$m as XxxButton,
|
|
8459
8578
|
bus,
|
|
8460
8579
|
useAttendanceStore,
|
|
8461
8580
|
useOperasional,
|