@neutron.co.id/operasional-interfaces 1.8.0 → 1.8.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.cjs +249 -929
- package/build/index.mjs +251 -931
- package/build/style.css +9 -9
- package/build/types/utils/util.date.d.ts +3 -1
- package/build/types/utils/util.duration.d.ts +2 -2
- package/package.json +21 -21
package/build/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentUtil as ComponentUtil$1 } from "@neon.id/utils/client";
|
|
2
2
|
import { defineComponent, openBlock, createElementBlock, createVNode, unref, ref, computed, h, watch, createBlock, withCtx, mergeProps, createCommentVNode, normalizeClass, pushScopeId, popScopeId, createElementVNode, provide, resolveComponent, createTextVNode, onMounted, isRef, reactive, watchEffect, onBeforeUnmount, withModifiers, toDisplayString, Fragment, normalizeProps, guardReactiveProps, withDirectives, vShow } from "vue";
|
|
3
|
-
import { NeonButton, NeonAvatar, NeonDivider, NeonModal, NeonSheet, useToastStore, NeonSlider, NeonSlide, NeonStat, NeonInfo } from "@neon.id/interfaces";
|
|
3
|
+
import { NeonButton, NeonAvatar, NeonDivider, NeonModal, NeonSheet, useToastStore, NeonSlider, NeonSlide, NeonStat, NeonInfo, NeonAlert } from "@neon.id/interfaces";
|
|
4
4
|
import { GraphUtil, NeonCollectionContext, useSingle, NeonSingle, usePermit, useCollection, NeonCollection, useAppStore } from "@neon.id/context";
|
|
5
5
|
import { RowUtil } from "@neon.id/display";
|
|
6
6
|
import { NeonField, NeonForm, NeonFormWrapper, NeonFields, NeonCheck } from "@neon.id/form";
|
|
@@ -13,6 +13,13 @@ import { CodeUtil } from "@neon.id/utils/code";
|
|
|
13
13
|
import { useClientHandle } from "@urql/vue";
|
|
14
14
|
import { format, startOfToday, endOfToday } from "date-fns";
|
|
15
15
|
import { DatePicker } from "v-calendar";
|
|
16
|
+
import dayjs from "dayjs/esm/index.js";
|
|
17
|
+
import "dayjs/esm/locale/en.js";
|
|
18
|
+
import "dayjs/esm/locale/id.js";
|
|
19
|
+
import advancedFormat from "dayjs/esm/plugin/advancedFormat/index.js";
|
|
20
|
+
import durationPlugin from "dayjs/esm/plugin/duration/index.js";
|
|
21
|
+
import isoWeek from "dayjs/esm/plugin/isoWeek/index.js";
|
|
22
|
+
import relativeTimePlugin from "dayjs/esm/plugin/relativeTime/index.js";
|
|
16
23
|
import { models as models$1 } from "@neutron.co.id/tempat-models";
|
|
17
24
|
import { useEventBus, useIntervalFn, useThrottleFn } from "@vueuse/core";
|
|
18
25
|
import { OfficeContent, OfficeCollectionQuery, OfficeCollectionOperation, OfficeTabs, OfficeTab, OfficeRelation, OfficeCollectionTable, OfficeCollectionRelated, OfficeCollectionCalendar, OfficePad } from "@neon.id/office";
|
|
@@ -20,8 +27,9 @@ import { defineStore, storeToRefs } from "pinia";
|
|
|
20
27
|
import { useRouter, useRoute } from "vue-router";
|
|
21
28
|
import { ComponentUtil } from "@neon.id/utils/component";
|
|
22
29
|
import Scanner from "qr-scanner";
|
|
30
|
+
import mitt from "mitt";
|
|
23
31
|
import { models as models$2 } from "@neutron.co.id/personalia-models";
|
|
24
|
-
import { CatatSketchPad,
|
|
32
|
+
import { CatatSketchPad, CatatPaperPad } from "@neon.id/catat-interfaces";
|
|
25
33
|
const _hoisted_1$m = { class: "xxx-button" };
|
|
26
34
|
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
27
35
|
...{ name: "XxxButton" },
|
|
@@ -402,221 +410,17 @@ const _export_sfc = (sfc, props) => {
|
|
|
402
410
|
return target;
|
|
403
411
|
};
|
|
404
412
|
const OperasionalIdentitas = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-355c8370"]]);
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
413
|
+
dayjs.extend(durationPlugin);
|
|
414
|
+
dayjs.extend(relativeTimePlugin);
|
|
415
|
+
dayjs.extend(advancedFormat);
|
|
416
|
+
dayjs.extend(isoWeek);
|
|
417
|
+
dayjs.locale("id");
|
|
418
|
+
class DateUtil {
|
|
419
|
+
static get day() {
|
|
420
|
+
return dayjs;
|
|
421
|
+
}
|
|
408
422
|
}
|
|
409
|
-
|
|
410
|
-
(function(module, exports) {
|
|
411
|
-
!function(t, e) {
|
|
412
|
-
module.exports = e();
|
|
413
|
-
}(commonjsGlobal, function() {
|
|
414
|
-
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h2 = "quarter", c = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
|
415
|
-
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
416
|
-
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
417
|
-
} }, m = function(t2, e2, n2) {
|
|
418
|
-
var r2 = String(t2);
|
|
419
|
-
return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
|
|
420
|
-
}, v = { s: m, z: function(t2) {
|
|
421
|
-
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
|
|
422
|
-
return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
|
|
423
|
-
}, m: function t2(e2, n2) {
|
|
424
|
-
if (e2.date() < n2.date())
|
|
425
|
-
return -t2(n2, e2);
|
|
426
|
-
var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, f), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), f);
|
|
427
|
-
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
428
|
-
}, a: function(t2) {
|
|
429
|
-
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
430
|
-
}, p: function(t2) {
|
|
431
|
-
return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h2 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
432
|
-
}, u: function(t2) {
|
|
433
|
-
return void 0 === t2;
|
|
434
|
-
} }, g = "en", D = {};
|
|
435
|
-
D[g] = M;
|
|
436
|
-
var p = function(t2) {
|
|
437
|
-
return t2 instanceof _;
|
|
438
|
-
}, S = function t2(e2, n2, r2) {
|
|
439
|
-
var i2;
|
|
440
|
-
if (!e2)
|
|
441
|
-
return g;
|
|
442
|
-
if ("string" == typeof e2) {
|
|
443
|
-
var s2 = e2.toLowerCase();
|
|
444
|
-
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
445
|
-
var u2 = e2.split("-");
|
|
446
|
-
if (!i2 && u2.length > 1)
|
|
447
|
-
return t2(u2[0]);
|
|
448
|
-
} else {
|
|
449
|
-
var a2 = e2.name;
|
|
450
|
-
D[a2] = e2, i2 = a2;
|
|
451
|
-
}
|
|
452
|
-
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
|
453
|
-
}, w = function(t2, e2) {
|
|
454
|
-
if (p(t2))
|
|
455
|
-
return t2.clone();
|
|
456
|
-
var n2 = "object" == typeof e2 ? e2 : {};
|
|
457
|
-
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
458
|
-
}, O = v;
|
|
459
|
-
O.l = S, O.i = p, O.w = function(t2, e2) {
|
|
460
|
-
return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
461
|
-
};
|
|
462
|
-
var _ = function() {
|
|
463
|
-
function M2(t2) {
|
|
464
|
-
this.$L = S(t2.locale, null, true), this.parse(t2);
|
|
465
|
-
}
|
|
466
|
-
var m2 = M2.prototype;
|
|
467
|
-
return m2.parse = function(t2) {
|
|
468
|
-
this.$d = function(t3) {
|
|
469
|
-
var e2 = t3.date, n2 = t3.utc;
|
|
470
|
-
if (null === e2)
|
|
471
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
472
|
-
if (O.u(e2))
|
|
473
|
-
return /* @__PURE__ */ new Date();
|
|
474
|
-
if (e2 instanceof Date)
|
|
475
|
-
return new Date(e2);
|
|
476
|
-
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
477
|
-
var r2 = e2.match($);
|
|
478
|
-
if (r2) {
|
|
479
|
-
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
480
|
-
return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
return new Date(e2);
|
|
484
|
-
}(t2), this.$x = t2.x || {}, this.init();
|
|
485
|
-
}, m2.init = function() {
|
|
486
|
-
var t2 = this.$d;
|
|
487
|
-
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
488
|
-
}, m2.$utils = function() {
|
|
489
|
-
return O;
|
|
490
|
-
}, m2.isValid = function() {
|
|
491
|
-
return !(this.$d.toString() === l);
|
|
492
|
-
}, m2.isSame = function(t2, e2) {
|
|
493
|
-
var n2 = w(t2);
|
|
494
|
-
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
495
|
-
}, m2.isAfter = function(t2, e2) {
|
|
496
|
-
return w(t2) < this.startOf(e2);
|
|
497
|
-
}, m2.isBefore = function(t2, e2) {
|
|
498
|
-
return this.endOf(e2) < w(t2);
|
|
499
|
-
}, m2.$g = function(t2, e2, n2) {
|
|
500
|
-
return O.u(t2) ? this[e2] : this.set(n2, t2);
|
|
501
|
-
}, m2.unix = function() {
|
|
502
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
503
|
-
}, m2.valueOf = function() {
|
|
504
|
-
return this.$d.getTime();
|
|
505
|
-
}, m2.startOf = function(t2, e2) {
|
|
506
|
-
var n2 = this, r2 = !!O.u(e2) || e2, h3 = O.p(t2), l2 = function(t3, e3) {
|
|
507
|
-
var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
508
|
-
return r2 ? i2 : i2.endOf(a);
|
|
509
|
-
}, $2 = function(t3, e3) {
|
|
510
|
-
return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
511
|
-
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
512
|
-
switch (h3) {
|
|
513
|
-
case c:
|
|
514
|
-
return r2 ? l2(1, 0) : l2(31, 11);
|
|
515
|
-
case f:
|
|
516
|
-
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
|
517
|
-
case o:
|
|
518
|
-
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
519
|
-
return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
520
|
-
case a:
|
|
521
|
-
case d:
|
|
522
|
-
return $2(v2 + "Hours", 0);
|
|
523
|
-
case u:
|
|
524
|
-
return $2(v2 + "Minutes", 1);
|
|
525
|
-
case s:
|
|
526
|
-
return $2(v2 + "Seconds", 2);
|
|
527
|
-
case i:
|
|
528
|
-
return $2(v2 + "Milliseconds", 3);
|
|
529
|
-
default:
|
|
530
|
-
return this.clone();
|
|
531
|
-
}
|
|
532
|
-
}, m2.endOf = function(t2) {
|
|
533
|
-
return this.startOf(t2, false);
|
|
534
|
-
}, m2.$set = function(t2, e2) {
|
|
535
|
-
var n2, o2 = O.p(t2), h3 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = h3 + "Date", n2[d] = h3 + "Date", n2[f] = h3 + "Month", n2[c] = h3 + "FullYear", n2[u] = h3 + "Hours", n2[s] = h3 + "Minutes", n2[i] = h3 + "Seconds", n2[r] = h3 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
536
|
-
if (o2 === f || o2 === c) {
|
|
537
|
-
var y2 = this.clone().set(d, 1);
|
|
538
|
-
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
539
|
-
} else
|
|
540
|
-
l2 && this.$d[l2]($2);
|
|
541
|
-
return this.init(), this;
|
|
542
|
-
}, m2.set = function(t2, e2) {
|
|
543
|
-
return this.clone().$set(t2, e2);
|
|
544
|
-
}, m2.get = function(t2) {
|
|
545
|
-
return this[O.p(t2)]();
|
|
546
|
-
}, m2.add = function(r2, h3) {
|
|
547
|
-
var d2, l2 = this;
|
|
548
|
-
r2 = Number(r2);
|
|
549
|
-
var $2 = O.p(h3), y2 = function(t2) {
|
|
550
|
-
var e2 = w(l2);
|
|
551
|
-
return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
552
|
-
};
|
|
553
|
-
if ($2 === f)
|
|
554
|
-
return this.set(f, this.$M + r2);
|
|
555
|
-
if ($2 === c)
|
|
556
|
-
return this.set(c, this.$y + r2);
|
|
557
|
-
if ($2 === a)
|
|
558
|
-
return y2(1);
|
|
559
|
-
if ($2 === o)
|
|
560
|
-
return y2(7);
|
|
561
|
-
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
|
562
|
-
return O.w(m3, this);
|
|
563
|
-
}, m2.subtract = function(t2, e2) {
|
|
564
|
-
return this.add(-1 * t2, e2);
|
|
565
|
-
}, m2.format = function(t2) {
|
|
566
|
-
var e2 = this, n2 = this.$locale();
|
|
567
|
-
if (!this.isValid())
|
|
568
|
-
return n2.invalidDate || l;
|
|
569
|
-
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h3 = function(t3, n3, i3, s3) {
|
|
570
|
-
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
571
|
-
}, c2 = function(t3) {
|
|
572
|
-
return O.s(s2 % 12 || 12, t3, "0");
|
|
573
|
-
}, d2 = n2.meridiem || function(t3, e3, n3) {
|
|
574
|
-
var r3 = t3 < 12 ? "AM" : "PM";
|
|
575
|
-
return n3 ? r3.toLowerCase() : r3;
|
|
576
|
-
}, $2 = { YY: String(this.$y).slice(-2), YYYY: O.s(this.$y, 4, "0"), M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h3(n2.monthsShort, a2, f2, 3), MMMM: h3(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h3(n2.weekdaysMin, this.$W, o2, 2), ddd: h3(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c2(1), hh: c2(2), a: d2(s2, u2, true), A: d2(s2, u2, false), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i2 };
|
|
577
|
-
return r2.replace(y, function(t3, e3) {
|
|
578
|
-
return e3 || $2[t3] || i2.replace(":", "");
|
|
579
|
-
});
|
|
580
|
-
}, m2.utcOffset = function() {
|
|
581
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
582
|
-
}, m2.diff = function(r2, d2, l2) {
|
|
583
|
-
var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, v2 = this - M3, g2 = O.m(this, M3);
|
|
584
|
-
return g2 = ($2 = {}, $2[c] = g2 / 12, $2[f] = g2, $2[h2] = g2 / 3, $2[o] = (v2 - m3) / 6048e5, $2[a] = (v2 - m3) / 864e5, $2[u] = v2 / n, $2[s] = v2 / e, $2[i] = v2 / t, $2)[y2] || v2, l2 ? g2 : O.a(g2);
|
|
585
|
-
}, m2.daysInMonth = function() {
|
|
586
|
-
return this.endOf(f).$D;
|
|
587
|
-
}, m2.$locale = function() {
|
|
588
|
-
return D[this.$L];
|
|
589
|
-
}, m2.locale = function(t2, e2) {
|
|
590
|
-
if (!t2)
|
|
591
|
-
return this.$L;
|
|
592
|
-
var n2 = this.clone(), r2 = S(t2, e2, true);
|
|
593
|
-
return r2 && (n2.$L = r2), n2;
|
|
594
|
-
}, m2.clone = function() {
|
|
595
|
-
return O.w(this.$d, this);
|
|
596
|
-
}, m2.toDate = function() {
|
|
597
|
-
return new Date(this.valueOf());
|
|
598
|
-
}, m2.toJSON = function() {
|
|
599
|
-
return this.isValid() ? this.toISOString() : null;
|
|
600
|
-
}, m2.toISOString = function() {
|
|
601
|
-
return this.$d.toISOString();
|
|
602
|
-
}, m2.toString = function() {
|
|
603
|
-
return this.$d.toUTCString();
|
|
604
|
-
}, M2;
|
|
605
|
-
}(), T = _.prototype;
|
|
606
|
-
return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function(t2) {
|
|
607
|
-
T[t2[1]] = function(e2) {
|
|
608
|
-
return this.$g(e2, t2[0], t2[1]);
|
|
609
|
-
};
|
|
610
|
-
}), w.extend = function(t2, e2) {
|
|
611
|
-
return t2.$i || (t2(e2, _, w), t2.$i = true), w;
|
|
612
|
-
}, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
|
|
613
|
-
return w(1e3 * t2);
|
|
614
|
-
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
615
|
-
});
|
|
616
|
-
})(dayjs_min);
|
|
617
|
-
var dayjs_minExports = dayjs_min.exports;
|
|
618
|
-
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
619
|
-
const _withScopeId$3 = (n) => (pushScopeId("data-v-3cf0c9ae"), n = n(), popScopeId(), n);
|
|
423
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-805321b9"), n = n(), popScopeId(), n);
|
|
620
424
|
const _hoisted_1$k = {
|
|
621
425
|
key: 0,
|
|
622
426
|
class: "input-loading"
|
|
@@ -628,7 +432,7 @@ const _hoisted_2$f = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ create
|
|
|
628
432
|
-1
|
|
629
433
|
/* HOISTED */
|
|
630
434
|
));
|
|
631
|
-
const _hoisted_3$
|
|
435
|
+
const _hoisted_3$7 = [
|
|
632
436
|
_hoisted_2$f
|
|
633
437
|
];
|
|
634
438
|
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
@@ -651,13 +455,13 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
651
455
|
setup(__props, { emit }) {
|
|
652
456
|
const props = __props;
|
|
653
457
|
const internalValue = computed(() => {
|
|
654
|
-
const newDate =
|
|
458
|
+
const newDate = DateUtil.day(props.modelValue || void 0);
|
|
655
459
|
return newDate.second(0).millisecond(0).toISOString();
|
|
656
460
|
});
|
|
657
461
|
function onUpdate(newValue) {
|
|
658
462
|
if (props.isDisabled)
|
|
659
463
|
return;
|
|
660
|
-
let newDate =
|
|
464
|
+
let newDate = DateUtil.day(newValue);
|
|
661
465
|
newDate = newDate.second(0).millisecond(0);
|
|
662
466
|
emit("update:modelValue", newDate.toISOString());
|
|
663
467
|
}
|
|
@@ -668,7 +472,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
668
472
|
class: normalizeClass(["neon-time", { "is-disabled": __props.isDisabled }])
|
|
669
473
|
},
|
|
670
474
|
[
|
|
671
|
-
__props.isLoading ? (openBlock(), createElementBlock("div", _hoisted_1$k, _hoisted_3$
|
|
475
|
+
__props.isLoading ? (openBlock(), createElementBlock("div", _hoisted_1$k, _hoisted_3$7)) : (openBlock(), createBlock(unref(DatePicker), mergeProps({
|
|
672
476
|
key: 1,
|
|
673
477
|
"model-value": internalValue.value
|
|
674
478
|
}, {
|
|
@@ -690,9 +494,9 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
690
494
|
};
|
|
691
495
|
}
|
|
692
496
|
});
|
|
693
|
-
const
|
|
497
|
+
const NeonTime_vue_vue_type_style_index_0_scoped_805321b9_lang = "";
|
|
694
498
|
const NeonTime_vue_vue_type_style_index_1_lang = "";
|
|
695
|
-
const NeonTime = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-
|
|
499
|
+
const NeonTime = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-805321b9"]]);
|
|
696
500
|
const CheckInModel = models$1.CheckInModel;
|
|
697
501
|
const useOperasionalStore = defineStore("neu:operasional", () => {
|
|
698
502
|
const isLoading = ref(false);
|
|
@@ -816,29 +620,13 @@ function withOperasional() {
|
|
|
816
620
|
store.setStaff(items[0]);
|
|
817
621
|
}
|
|
818
622
|
}
|
|
819
|
-
function mitt(n) {
|
|
820
|
-
return { all: n = n || /* @__PURE__ */ new Map(), on: function(t, e) {
|
|
821
|
-
var i = n.get(t);
|
|
822
|
-
i ? i.push(e) : n.set(t, [e]);
|
|
823
|
-
}, off: function(t, e) {
|
|
824
|
-
var i = n.get(t);
|
|
825
|
-
i && (e ? i.splice(i.indexOf(e) >>> 0, 1) : n.set(t, []));
|
|
826
|
-
}, emit: function(t, e) {
|
|
827
|
-
var i = n.get(t);
|
|
828
|
-
i && i.slice().map(function(n2) {
|
|
829
|
-
n2(e);
|
|
830
|
-
}), (i = n.get("*")) && i.slice().map(function(n2) {
|
|
831
|
-
n2(t, e);
|
|
832
|
-
});
|
|
833
|
-
} };
|
|
834
|
-
}
|
|
835
623
|
const bus = mitt();
|
|
836
624
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-ee60c24a"), n = n(), popScopeId(), n);
|
|
837
625
|
const _hoisted_1$j = { id: "view-checkIns" };
|
|
838
626
|
const _hoisted_2$e = { class: "summary" };
|
|
839
|
-
const _hoisted_3$
|
|
840
|
-
const _hoisted_4$
|
|
841
|
-
const _hoisted_5$
|
|
627
|
+
const _hoisted_3$6 = { class: "wrapper" };
|
|
628
|
+
const _hoisted_4$4 = { class: "header" };
|
|
629
|
+
const _hoisted_5$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode(
|
|
842
630
|
"div",
|
|
843
631
|
{ class: "start" },
|
|
844
632
|
[
|
|
@@ -848,7 +636,7 @@ const _hoisted_5$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ create
|
|
|
848
636
|
-1
|
|
849
637
|
/* HOISTED */
|
|
850
638
|
));
|
|
851
|
-
const _hoisted_6$
|
|
639
|
+
const _hoisted_6$2 = { class: "end" };
|
|
852
640
|
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
853
641
|
...{
|
|
854
642
|
name: "CheckInPresenceCollection"
|
|
@@ -1159,7 +947,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
1159
947
|
])
|
|
1160
948
|
]),
|
|
1161
949
|
default: withCtx(() => [
|
|
1162
|
-
createElementVNode("div", _hoisted_3$
|
|
950
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
1163
951
|
createVNode(unref(NeonCollectionContext), {
|
|
1164
952
|
definition: "neu:tempat:checkIn",
|
|
1165
953
|
scope: "_checkIns",
|
|
@@ -1174,9 +962,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
1174
962
|
"is-main": ""
|
|
1175
963
|
}, {
|
|
1176
964
|
default: withCtx(() => [
|
|
1177
|
-
createElementVNode("div", _hoisted_4$
|
|
1178
|
-
_hoisted_5$
|
|
1179
|
-
createElementVNode("div", _hoisted_6$
|
|
965
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
966
|
+
_hoisted_5$3,
|
|
967
|
+
createElementVNode("div", _hoisted_6$2, [
|
|
1180
968
|
createVNode(unref(OfficeCollectionQuery), { displays: ["table"] }, {
|
|
1181
969
|
default: withCtx(() => [
|
|
1182
970
|
createVNode(unref(OfficeCollectionOperation), { "is-main": "" })
|
|
@@ -1554,8 +1342,8 @@ const _hoisted_2$c = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1554
1342
|
-1
|
|
1555
1343
|
/* HOISTED */
|
|
1556
1344
|
));
|
|
1557
|
-
const _hoisted_3$
|
|
1558
|
-
const _hoisted_4$
|
|
1345
|
+
const _hoisted_3$5 = ["onClick"];
|
|
1346
|
+
const _hoisted_4$3 = { class: "mr-2 text-sm" };
|
|
1559
1347
|
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
1560
1348
|
__name: "CheckInScanner",
|
|
1561
1349
|
emits: ["start", "stop", "scanned", "close"],
|
|
@@ -1709,7 +1497,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1709
1497
|
}, [
|
|
1710
1498
|
createElementVNode(
|
|
1711
1499
|
"div",
|
|
1712
|
-
_hoisted_4$
|
|
1500
|
+
_hoisted_4$3,
|
|
1713
1501
|
toDisplayString(currentCamera.value),
|
|
1714
1502
|
1
|
|
1715
1503
|
/* TEXT */
|
|
@@ -1720,7 +1508,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1720
1508
|
size: "sm",
|
|
1721
1509
|
"is-disabled": !canSwitch.value
|
|
1722
1510
|
}, null, 8, ["is-disabled"])
|
|
1723
|
-
], 8, _hoisted_3$
|
|
1511
|
+
], 8, _hoisted_3$5)
|
|
1724
1512
|
])
|
|
1725
1513
|
],
|
|
1726
1514
|
2
|
|
@@ -4117,9 +3905,9 @@ const SubmissionFollowUp_vue_vue_type_style_index_0_scoped_6fd14e52_lang = "";
|
|
|
4117
3905
|
const SubmissionFollowUp = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-6fd14e52"]]);
|
|
4118
3906
|
const _hoisted_1$9 = { class: "flex flex-wrap" };
|
|
4119
3907
|
const _hoisted_2$8 = { class: "mt-2" };
|
|
4120
|
-
const _hoisted_3$
|
|
4121
|
-
const _hoisted_4$
|
|
4122
|
-
const _hoisted_5$
|
|
3908
|
+
const _hoisted_3$4 = { class: "mt-2" };
|
|
3909
|
+
const _hoisted_4$2 = { class: "mt-2" };
|
|
3910
|
+
const _hoisted_5$2 = { class: "mt-2" };
|
|
4123
3911
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
4124
3912
|
__name: "SubmissionAudit",
|
|
4125
3913
|
setup(__props) {
|
|
@@ -4247,7 +4035,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
4247
4035
|
})) : createCommentVNode("v-if", true)
|
|
4248
4036
|
]),
|
|
4249
4037
|
createTextVNode(" "),
|
|
4250
|
-
createElementVNode("div", _hoisted_3$
|
|
4038
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
4251
4039
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
4252
4040
|
input: withCtx(() => [
|
|
4253
4041
|
createVNode(unref(NeonButton), {
|
|
@@ -4269,7 +4057,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
4269
4057
|
})) : createCommentVNode("v-if", true)
|
|
4270
4058
|
]),
|
|
4271
4059
|
createTextVNode(" "),
|
|
4272
|
-
createElementVNode("div", _hoisted_4$
|
|
4060
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
4273
4061
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
4274
4062
|
input: withCtx(() => [
|
|
4275
4063
|
createVNode(unref(NeonButton), {
|
|
@@ -4291,7 +4079,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
4291
4079
|
})) : createCommentVNode("v-if", true)
|
|
4292
4080
|
]),
|
|
4293
4081
|
createTextVNode(" "),
|
|
4294
|
-
createElementVNode("div", _hoisted_5$
|
|
4082
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
4295
4083
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
4296
4084
|
input: withCtx(() => [
|
|
4297
4085
|
createVNode(unref(NeonButton), {
|
|
@@ -4472,7 +4260,7 @@ const SubmissionAudit_vue_vue_type_style_index_0_scoped_7ee6c6b9_lang = "";
|
|
|
4472
4260
|
const SubmissionAudit = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-7ee6c6b9"]]);
|
|
4473
4261
|
const _hoisted_1$8 = { class: "flex flex-wrap" };
|
|
4474
4262
|
const _hoisted_2$7 = { class: "mt-2" };
|
|
4475
|
-
const _hoisted_3$
|
|
4263
|
+
const _hoisted_3$3 = { class: "mt-2" };
|
|
4476
4264
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
4477
4265
|
__name: "SubmissionDecision",
|
|
4478
4266
|
setup(__props) {
|
|
@@ -4603,7 +4391,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
4603
4391
|
})) : createCommentVNode("v-if", true)
|
|
4604
4392
|
]),
|
|
4605
4393
|
createTextVNode(" "),
|
|
4606
|
-
createElementVNode("div", _hoisted_3$
|
|
4394
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
4607
4395
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
4608
4396
|
input: withCtx(() => {
|
|
4609
4397
|
var _a2, _b;
|
|
@@ -4787,7 +4575,7 @@ const SubmissionDecision_vue_vue_type_style_index_0_scoped_ec347ac5_lang = "";
|
|
|
4787
4575
|
const SubmissionDecision = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-ec347ac5"]]);
|
|
4788
4576
|
const _hoisted_1$7 = { class: "flex flex-wrap" };
|
|
4789
4577
|
const _hoisted_2$6 = { class: "mt-2" };
|
|
4790
|
-
const _hoisted_3$
|
|
4578
|
+
const _hoisted_3$2 = { class: "mt-2" };
|
|
4791
4579
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
4792
4580
|
__name: "SubmissionWaitingDecision",
|
|
4793
4581
|
setup(__props) {
|
|
@@ -4920,7 +4708,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
4920
4708
|
})) : createCommentVNode("v-if", true)
|
|
4921
4709
|
]),
|
|
4922
4710
|
createTextVNode(" "),
|
|
4923
|
-
createElementVNode("div", _hoisted_3$
|
|
4711
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
4924
4712
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
4925
4713
|
input: withCtx(() => {
|
|
4926
4714
|
var _a2, _b;
|
|
@@ -6532,194 +6320,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
6532
6320
|
});
|
|
6533
6321
|
const ProgressCollection_vue_vue_type_style_index_0_scoped_2634660f_lang = "";
|
|
6534
6322
|
const ProgressCollection = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-2634660f"]]);
|
|
6535
|
-
var duration = { exports: {} };
|
|
6536
|
-
(function(module, exports) {
|
|
6537
|
-
!function(t, s) {
|
|
6538
|
-
module.exports = s();
|
|
6539
|
-
}(commonjsGlobal, function() {
|
|
6540
|
-
var t, s, n = 1e3, i = 6e4, e = 36e5, r = 864e5, o = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = 31536e6, h2 = 2592e6, a = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, d = { years: u, months: h2, days: r, hours: e, minutes: i, seconds: n, milliseconds: 1, weeks: 6048e5 }, c = function(t2) {
|
|
6541
|
-
return t2 instanceof g;
|
|
6542
|
-
}, f = function(t2, s2, n2) {
|
|
6543
|
-
return new g(t2, n2, s2.$l);
|
|
6544
|
-
}, l = function(t2) {
|
|
6545
|
-
return s.p(t2) + "s";
|
|
6546
|
-
}, m = function(t2) {
|
|
6547
|
-
return t2 < 0;
|
|
6548
|
-
}, $ = function(t2) {
|
|
6549
|
-
return m(t2) ? Math.ceil(t2) : Math.floor(t2);
|
|
6550
|
-
}, y = function(t2) {
|
|
6551
|
-
return Math.abs(t2);
|
|
6552
|
-
}, v = function(t2, s2) {
|
|
6553
|
-
return t2 ? m(t2) ? { negative: true, format: "" + y(t2) + s2 } : { negative: false, format: "" + t2 + s2 } : { negative: false, format: "" };
|
|
6554
|
-
}, g = function() {
|
|
6555
|
-
function m2(t2, s2, n2) {
|
|
6556
|
-
var i2 = this;
|
|
6557
|
-
if (this.$d = {}, this.$l = n2, void 0 === t2 && (this.$ms = 0, this.parseFromMilliseconds()), s2)
|
|
6558
|
-
return f(t2 * d[l(s2)], this);
|
|
6559
|
-
if ("number" == typeof t2)
|
|
6560
|
-
return this.$ms = t2, this.parseFromMilliseconds(), this;
|
|
6561
|
-
if ("object" == typeof t2)
|
|
6562
|
-
return Object.keys(t2).forEach(function(s3) {
|
|
6563
|
-
i2.$d[l(s3)] = t2[s3];
|
|
6564
|
-
}), this.calMilliseconds(), this;
|
|
6565
|
-
if ("string" == typeof t2) {
|
|
6566
|
-
var e2 = t2.match(a);
|
|
6567
|
-
if (e2) {
|
|
6568
|
-
var r2 = e2.slice(2).map(function(t3) {
|
|
6569
|
-
return null != t3 ? Number(t3) : 0;
|
|
6570
|
-
});
|
|
6571
|
-
return this.$d.years = r2[0], this.$d.months = r2[1], this.$d.weeks = r2[2], this.$d.days = r2[3], this.$d.hours = r2[4], this.$d.minutes = r2[5], this.$d.seconds = r2[6], this.calMilliseconds(), this;
|
|
6572
|
-
}
|
|
6573
|
-
}
|
|
6574
|
-
return this;
|
|
6575
|
-
}
|
|
6576
|
-
var y2 = m2.prototype;
|
|
6577
|
-
return y2.calMilliseconds = function() {
|
|
6578
|
-
var t2 = this;
|
|
6579
|
-
this.$ms = Object.keys(this.$d).reduce(function(s2, n2) {
|
|
6580
|
-
return s2 + (t2.$d[n2] || 0) * d[n2];
|
|
6581
|
-
}, 0);
|
|
6582
|
-
}, y2.parseFromMilliseconds = function() {
|
|
6583
|
-
var t2 = this.$ms;
|
|
6584
|
-
this.$d.years = $(t2 / u), t2 %= u, this.$d.months = $(t2 / h2), t2 %= h2, this.$d.days = $(t2 / r), t2 %= r, this.$d.hours = $(t2 / e), t2 %= e, this.$d.minutes = $(t2 / i), t2 %= i, this.$d.seconds = $(t2 / n), t2 %= n, this.$d.milliseconds = t2;
|
|
6585
|
-
}, y2.toISOString = function() {
|
|
6586
|
-
var t2 = v(this.$d.years, "Y"), s2 = v(this.$d.months, "M"), n2 = +this.$d.days || 0;
|
|
6587
|
-
this.$d.weeks && (n2 += 7 * this.$d.weeks);
|
|
6588
|
-
var i2 = v(n2, "D"), e2 = v(this.$d.hours, "H"), r2 = v(this.$d.minutes, "M"), o2 = this.$d.seconds || 0;
|
|
6589
|
-
this.$d.milliseconds && (o2 += this.$d.milliseconds / 1e3);
|
|
6590
|
-
var u2 = v(o2, "S"), h3 = t2.negative || s2.negative || i2.negative || e2.negative || r2.negative || u2.negative, a2 = e2.format || r2.format || u2.format ? "T" : "", d2 = (h3 ? "-" : "") + "P" + t2.format + s2.format + i2.format + a2 + e2.format + r2.format + u2.format;
|
|
6591
|
-
return "P" === d2 || "-P" === d2 ? "P0D" : d2;
|
|
6592
|
-
}, y2.toJSON = function() {
|
|
6593
|
-
return this.toISOString();
|
|
6594
|
-
}, y2.format = function(t2) {
|
|
6595
|
-
var n2 = t2 || "YYYY-MM-DDTHH:mm:ss", i2 = { Y: this.$d.years, YY: s.s(this.$d.years, 2, "0"), YYYY: s.s(this.$d.years, 4, "0"), M: this.$d.months, MM: s.s(this.$d.months, 2, "0"), D: this.$d.days, DD: s.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: s.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: s.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: s.s(this.$d.seconds, 2, "0"), SSS: s.s(this.$d.milliseconds, 3, "0") };
|
|
6596
|
-
return n2.replace(o, function(t3, s2) {
|
|
6597
|
-
return s2 || String(i2[t3]);
|
|
6598
|
-
});
|
|
6599
|
-
}, y2.as = function(t2) {
|
|
6600
|
-
return this.$ms / d[l(t2)];
|
|
6601
|
-
}, y2.get = function(t2) {
|
|
6602
|
-
var s2 = this.$ms, n2 = l(t2);
|
|
6603
|
-
return "milliseconds" === n2 ? s2 %= 1e3 : s2 = "weeks" === n2 ? $(s2 / d[n2]) : this.$d[n2], 0 === s2 ? 0 : s2;
|
|
6604
|
-
}, y2.add = function(t2, s2, n2) {
|
|
6605
|
-
var i2;
|
|
6606
|
-
return i2 = s2 ? t2 * d[l(s2)] : c(t2) ? t2.$ms : f(t2, this).$ms, f(this.$ms + i2 * (n2 ? -1 : 1), this);
|
|
6607
|
-
}, y2.subtract = function(t2, s2) {
|
|
6608
|
-
return this.add(t2, s2, true);
|
|
6609
|
-
}, y2.locale = function(t2) {
|
|
6610
|
-
var s2 = this.clone();
|
|
6611
|
-
return s2.$l = t2, s2;
|
|
6612
|
-
}, y2.clone = function() {
|
|
6613
|
-
return f(this.$ms, this);
|
|
6614
|
-
}, y2.humanize = function(s2) {
|
|
6615
|
-
return t().add(this.$ms, "ms").locale(this.$l).fromNow(!s2);
|
|
6616
|
-
}, y2.valueOf = function() {
|
|
6617
|
-
return this.asMilliseconds();
|
|
6618
|
-
}, y2.milliseconds = function() {
|
|
6619
|
-
return this.get("milliseconds");
|
|
6620
|
-
}, y2.asMilliseconds = function() {
|
|
6621
|
-
return this.as("milliseconds");
|
|
6622
|
-
}, y2.seconds = function() {
|
|
6623
|
-
return this.get("seconds");
|
|
6624
|
-
}, y2.asSeconds = function() {
|
|
6625
|
-
return this.as("seconds");
|
|
6626
|
-
}, y2.minutes = function() {
|
|
6627
|
-
return this.get("minutes");
|
|
6628
|
-
}, y2.asMinutes = function() {
|
|
6629
|
-
return this.as("minutes");
|
|
6630
|
-
}, y2.hours = function() {
|
|
6631
|
-
return this.get("hours");
|
|
6632
|
-
}, y2.asHours = function() {
|
|
6633
|
-
return this.as("hours");
|
|
6634
|
-
}, y2.days = function() {
|
|
6635
|
-
return this.get("days");
|
|
6636
|
-
}, y2.asDays = function() {
|
|
6637
|
-
return this.as("days");
|
|
6638
|
-
}, y2.weeks = function() {
|
|
6639
|
-
return this.get("weeks");
|
|
6640
|
-
}, y2.asWeeks = function() {
|
|
6641
|
-
return this.as("weeks");
|
|
6642
|
-
}, y2.months = function() {
|
|
6643
|
-
return this.get("months");
|
|
6644
|
-
}, y2.asMonths = function() {
|
|
6645
|
-
return this.as("months");
|
|
6646
|
-
}, y2.years = function() {
|
|
6647
|
-
return this.get("years");
|
|
6648
|
-
}, y2.asYears = function() {
|
|
6649
|
-
return this.as("years");
|
|
6650
|
-
}, m2;
|
|
6651
|
-
}();
|
|
6652
|
-
return function(n2, i2, e2) {
|
|
6653
|
-
t = e2, s = e2().$utils(), e2.duration = function(t2, s2) {
|
|
6654
|
-
var n3 = e2.locale();
|
|
6655
|
-
return f(t2, { $l: n3 }, s2);
|
|
6656
|
-
}, e2.isDuration = c;
|
|
6657
|
-
var r2 = i2.prototype.add, o2 = i2.prototype.subtract;
|
|
6658
|
-
i2.prototype.add = function(t2, s2) {
|
|
6659
|
-
return c(t2) && (t2 = t2.asMilliseconds()), r2.bind(this)(t2, s2);
|
|
6660
|
-
}, i2.prototype.subtract = function(t2, s2) {
|
|
6661
|
-
return c(t2) && (t2 = t2.asMilliseconds()), o2.bind(this)(t2, s2);
|
|
6662
|
-
};
|
|
6663
|
-
};
|
|
6664
|
-
});
|
|
6665
|
-
})(duration);
|
|
6666
|
-
var durationExports = duration.exports;
|
|
6667
|
-
const durationPlugin = /* @__PURE__ */ getDefaultExportFromCjs(durationExports);
|
|
6668
|
-
var relativeTime = { exports: {} };
|
|
6669
|
-
(function(module, exports) {
|
|
6670
|
-
!function(r, e) {
|
|
6671
|
-
module.exports = e();
|
|
6672
|
-
}(commonjsGlobal, function() {
|
|
6673
|
-
return function(r, e, t) {
|
|
6674
|
-
r = r || {};
|
|
6675
|
-
var n = e.prototype, o = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
6676
|
-
function i(r2, e2, t2, o2) {
|
|
6677
|
-
return n.fromToBase(r2, e2, t2, o2);
|
|
6678
|
-
}
|
|
6679
|
-
t.en.relativeTime = o, n.fromToBase = function(e2, n2, i2, d2, u) {
|
|
6680
|
-
for (var f, a, s, l = i2.$locale().relativeTime || o, h2 = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m = h2.length, c = 0; c < m; c += 1) {
|
|
6681
|
-
var y = h2[c];
|
|
6682
|
-
y.d && (f = d2 ? t(e2).diff(i2, y.d, true) : i2.diff(e2, y.d, true));
|
|
6683
|
-
var p = (r.rounding || Math.round)(Math.abs(f));
|
|
6684
|
-
if (s = f > 0, p <= y.r || !y.r) {
|
|
6685
|
-
p <= 1 && c > 0 && (y = h2[c - 1]);
|
|
6686
|
-
var v = l[y.l];
|
|
6687
|
-
u && (p = u("" + p)), a = "string" == typeof v ? v.replace("%d", p) : v(p, n2, y.l, s);
|
|
6688
|
-
break;
|
|
6689
|
-
}
|
|
6690
|
-
}
|
|
6691
|
-
if (n2)
|
|
6692
|
-
return a;
|
|
6693
|
-
var M = s ? l.future : l.past;
|
|
6694
|
-
return "function" == typeof M ? M(a) : M.replace("%s", a);
|
|
6695
|
-
}, n.to = function(r2, e2) {
|
|
6696
|
-
return i(r2, e2, this, true);
|
|
6697
|
-
}, n.from = function(r2, e2) {
|
|
6698
|
-
return i(r2, e2, this);
|
|
6699
|
-
};
|
|
6700
|
-
var d = function(r2) {
|
|
6701
|
-
return r2.$u ? t.utc() : t();
|
|
6702
|
-
};
|
|
6703
|
-
n.toNow = function(r2) {
|
|
6704
|
-
return this.to(d(this), r2);
|
|
6705
|
-
}, n.fromNow = function(r2) {
|
|
6706
|
-
return this.from(d(this), r2);
|
|
6707
|
-
};
|
|
6708
|
-
};
|
|
6709
|
-
});
|
|
6710
|
-
})(relativeTime);
|
|
6711
|
-
var relativeTimeExports = relativeTime.exports;
|
|
6712
|
-
const relativeTimePlugin = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
|
|
6713
|
-
dayjs.extend(durationPlugin);
|
|
6714
|
-
dayjs.extend(relativeTimePlugin);
|
|
6715
|
-
class DateUtil {
|
|
6716
|
-
static get day() {
|
|
6717
|
-
return dayjs;
|
|
6718
|
-
}
|
|
6719
|
-
}
|
|
6720
6323
|
const _hoisted_1$5 = { class: "grid gap-2 sm:grid-cols-2" };
|
|
6721
6324
|
const _hoisted_2$5 = { class: "text-right text-fg-subdued text-sm" };
|
|
6722
|
-
const _hoisted_3$3 = { class: "segments" };
|
|
6723
6325
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
6724
6326
|
__name: "ProgressSingle",
|
|
6725
6327
|
setup(__props) {
|
|
@@ -6767,11 +6369,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
6767
6369
|
const diff = computed(() => {
|
|
6768
6370
|
return DateUtil.day(values.value.endedAt).diff(values.value.startedAt);
|
|
6769
6371
|
});
|
|
6770
|
-
const
|
|
6372
|
+
const duration = computed(() => {
|
|
6771
6373
|
if (isNaN(diff.value))
|
|
6772
6374
|
return "-";
|
|
6773
|
-
const
|
|
6774
|
-
return
|
|
6375
|
+
const duration2 = DateUtil.day.duration(diff.value);
|
|
6376
|
+
return duration2.format("HH [jam] mm [menit]");
|
|
6775
6377
|
});
|
|
6776
6378
|
function onStartedAtUpdate(date) {
|
|
6777
6379
|
if (!date)
|
|
@@ -6784,7 +6386,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
6784
6386
|
values.value.startedAt = startedAt.toISOString();
|
|
6785
6387
|
values.value.endedAt = endedAt.toISOString();
|
|
6786
6388
|
}
|
|
6787
|
-
const sekarang =
|
|
6389
|
+
const sekarang = DateUtil.day(/* @__PURE__ */ new Date());
|
|
6788
6390
|
const besok = sekarang;
|
|
6789
6391
|
watch(
|
|
6790
6392
|
isNew,
|
|
@@ -6944,7 +6546,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
6944
6546
|
createElementVNode(
|
|
6945
6547
|
"div",
|
|
6946
6548
|
_hoisted_2$5,
|
|
6947
|
-
toDisplayString(
|
|
6549
|
+
toDisplayString(duration.value),
|
|
6948
6550
|
1
|
|
6949
6551
|
/* TEXT */
|
|
6950
6552
|
)
|
|
@@ -7006,12 +6608,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
7006
6608
|
title: "Catatan"
|
|
7007
6609
|
}, {
|
|
7008
6610
|
default: withCtx(({ isTouched }) => [
|
|
7009
|
-
createElementVNode("div", _hoisted_3$3, [
|
|
7010
|
-
createVNode(unref(CatatPaperSegments), {
|
|
7011
|
-
display: display.value,
|
|
7012
|
-
"onUpdate:display": _cache[10] || (_cache[10] = ($event) => display.value = $event)
|
|
7013
|
-
}, null, 8, ["display"])
|
|
7014
|
-
]),
|
|
7015
6611
|
createVNode(unref(CatatPaperPad), mergeProps({
|
|
7016
6612
|
applicationId: unref(appStore).appId,
|
|
7017
6613
|
object: `${objectDef.value}:office`,
|
|
@@ -7033,8 +6629,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
7033
6629
|
};
|
|
7034
6630
|
}
|
|
7035
6631
|
});
|
|
7036
|
-
const
|
|
7037
|
-
const ProgressSingle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
6632
|
+
const ProgressSingle_vue_vue_type_style_index_0_scoped_6569a1bb_lang = "";
|
|
6633
|
+
const ProgressSingle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6569a1bb"]]);
|
|
7038
6634
|
const _hoisted_1$4 = { class: "grid gap-2 sm:grid-cols-2" };
|
|
7039
6635
|
const _hoisted_2$4 = { class: "text-right text-fg-subdued text-sm" };
|
|
7040
6636
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
@@ -7084,11 +6680,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
7084
6680
|
const diff = computed(() => {
|
|
7085
6681
|
return DateUtil.day(values.value.endedAt).diff(values.value.startedAt);
|
|
7086
6682
|
});
|
|
7087
|
-
const
|
|
6683
|
+
const duration = computed(() => {
|
|
7088
6684
|
if (isNaN(diff.value))
|
|
7089
6685
|
return "-";
|
|
7090
|
-
const
|
|
7091
|
-
return
|
|
6686
|
+
const duration2 = DateUtil.day.duration(diff.value);
|
|
6687
|
+
return duration2.format("HH [jam] mm [menit]");
|
|
7092
6688
|
});
|
|
7093
6689
|
function onStartedAtUpdate(date) {
|
|
7094
6690
|
if (!date)
|
|
@@ -7101,7 +6697,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
7101
6697
|
values.value.startedAt = startedAt.toISOString();
|
|
7102
6698
|
values.value.endedAt = endedAt.toISOString();
|
|
7103
6699
|
}
|
|
7104
|
-
const sekarang =
|
|
6700
|
+
const sekarang = DateUtil.day(/* @__PURE__ */ new Date());
|
|
7105
6701
|
const besok = sekarang.add(1, "day");
|
|
7106
6702
|
watch(
|
|
7107
6703
|
isNew,
|
|
@@ -7219,7 +6815,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
7219
6815
|
createElementVNode(
|
|
7220
6816
|
"div",
|
|
7221
6817
|
_hoisted_2$4,
|
|
7222
|
-
toDisplayString(
|
|
6818
|
+
toDisplayString(duration.value),
|
|
7223
6819
|
1
|
|
7224
6820
|
/* TEXT */
|
|
7225
6821
|
)
|
|
@@ -7269,8 +6865,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
7269
6865
|
};
|
|
7270
6866
|
}
|
|
7271
6867
|
});
|
|
7272
|
-
const
|
|
7273
|
-
const ProgressTomorrow = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
6868
|
+
const ProgressTomorrow_vue_vue_type_style_index_0_scoped_9a139943_lang = "";
|
|
6869
|
+
const ProgressTomorrow = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-9a139943"]]);
|
|
7274
6870
|
const _hoisted_1$3 = { class: "grid gap-2 sm:grid-cols-2" };
|
|
7275
6871
|
const _hoisted_2$3 = { class: "text-right text-fg-subdued text-sm" };
|
|
7276
6872
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
@@ -7320,11 +6916,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
7320
6916
|
const diff = computed(() => {
|
|
7321
6917
|
return DateUtil.day(values.value.endedAt).diff(values.value.startedAt);
|
|
7322
6918
|
});
|
|
7323
|
-
const
|
|
6919
|
+
const duration = computed(() => {
|
|
7324
6920
|
if (isNaN(diff.value))
|
|
7325
6921
|
return "-";
|
|
7326
|
-
const
|
|
7327
|
-
return
|
|
6922
|
+
const duration2 = DateUtil.day.duration(diff.value);
|
|
6923
|
+
return duration2.format("HH [jam] mm [menit]");
|
|
7328
6924
|
});
|
|
7329
6925
|
function onStartedAtUpdate(date) {
|
|
7330
6926
|
if (!date)
|
|
@@ -7337,7 +6933,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
7337
6933
|
values.value.startedAt = startedAt.toISOString();
|
|
7338
6934
|
values.value.endedAt = endedAt.toISOString();
|
|
7339
6935
|
}
|
|
7340
|
-
const sekarang =
|
|
6936
|
+
const sekarang = DateUtil.day(/* @__PURE__ */ new Date());
|
|
7341
6937
|
const besok = sekarang.add(-1, "day");
|
|
7342
6938
|
watch(
|
|
7343
6939
|
isNew,
|
|
@@ -7455,7 +7051,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
7455
7051
|
createElementVNode(
|
|
7456
7052
|
"div",
|
|
7457
7053
|
_hoisted_2$3,
|
|
7458
|
-
toDisplayString(
|
|
7054
|
+
toDisplayString(duration.value),
|
|
7459
7055
|
1
|
|
7460
7056
|
/* TEXT */
|
|
7461
7057
|
)
|
|
@@ -7509,8 +7105,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
7509
7105
|
};
|
|
7510
7106
|
}
|
|
7511
7107
|
});
|
|
7512
|
-
const
|
|
7513
|
-
const ProgressYesterday = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
7108
|
+
const ProgressYesterday_vue_vue_type_style_index_0_scoped_3bad8bb9_lang = "";
|
|
7109
|
+
const ProgressYesterday = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-3bad8bb9"]]);
|
|
7514
7110
|
const AttendanceModel = models$2.AttendanceModel;
|
|
7515
7111
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
7516
7112
|
...{
|
|
@@ -7532,10 +7128,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
7532
7128
|
});
|
|
7533
7129
|
const _hoisted_1$2 = { class: "grid gap-2 sm:grid-cols-2" };
|
|
7534
7130
|
const _hoisted_2$2 = { class: "text-right text-fg-subdued text-sm" };
|
|
7535
|
-
const _hoisted_3$2 = { class: "grid gap-2 sm:grid-cols-2" };
|
|
7536
|
-
const _hoisted_4$2 = { class: "text-right text-fg-subdued text-sm" };
|
|
7537
|
-
const _hoisted_5$2 = { class: "grid gap-2 sm:grid-cols-2" };
|
|
7538
|
-
const _hoisted_6$2 = { class: "text-right text-fg-subdued text-sm" };
|
|
7539
7131
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7540
7132
|
__name: "AttendanceSingle",
|
|
7541
7133
|
setup(__props) {
|
|
@@ -7553,57 +7145,33 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7553
7145
|
discardChanges,
|
|
7554
7146
|
syncOne
|
|
7555
7147
|
} = useSingle();
|
|
7556
|
-
const
|
|
7557
|
-
const
|
|
7558
|
-
return DateUtil.day(values.value.
|
|
7559
|
-
});
|
|
7560
|
-
const durationHomeAt = computed(() => {
|
|
7561
|
-
if (isNaN(diffHomeAt.value))
|
|
7562
|
-
return "-";
|
|
7563
|
-
const duration2 = DateUtil.day.duration(diffHomeAt.value);
|
|
7564
|
-
return duration2.format("HH [jam] mm [menit]");
|
|
7565
|
-
});
|
|
7566
|
-
function onHomeAtUpdate(date) {
|
|
7567
|
-
if (!date)
|
|
7568
|
-
return;
|
|
7569
|
-
const earlyAt = DateUtil.day(date);
|
|
7570
|
-
const homeAt = DateUtil.day(date);
|
|
7571
|
-
values.value.earlyAt = earlyAt.toISOString();
|
|
7572
|
-
values.value.homeAt = homeAt.toISOString();
|
|
7573
|
-
}
|
|
7574
|
-
const keyComeAt = ref(0);
|
|
7575
|
-
const diffComeAt = computed(() => {
|
|
7576
|
-
return DateUtil.day(values.value.lateAt).diff(values.value.comeAt);
|
|
7148
|
+
const key = ref(0);
|
|
7149
|
+
const diff = computed(() => {
|
|
7150
|
+
return DateUtil.day(values.value.endedAt).diff(values.value.startedAt);
|
|
7577
7151
|
});
|
|
7578
|
-
const
|
|
7579
|
-
if (isNaN(
|
|
7152
|
+
const duration = computed(() => {
|
|
7153
|
+
if (isNaN(diff.value))
|
|
7580
7154
|
return "-";
|
|
7581
|
-
const duration2 = DateUtil.day.duration(
|
|
7155
|
+
const duration2 = DateUtil.day.duration(diff.value);
|
|
7582
7156
|
return duration2.format("HH [jam] mm [menit]");
|
|
7583
7157
|
});
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
return;
|
|
7587
|
-
const comeAt = DateUtil.day(date);
|
|
7588
|
-
const lateAt = DateUtil.day(date);
|
|
7589
|
-
values.value.comeAt = comeAt.toISOString();
|
|
7590
|
-
values.value.lateAt = lateAt.toISOString();
|
|
7591
|
-
}
|
|
7592
|
-
const keyStartedAt = ref(0);
|
|
7593
|
-
const diffStartedAt = computed(() => {
|
|
7594
|
-
return DateUtil.day(values.value.endedAt).diff(values.value.startedAt);
|
|
7158
|
+
const reverseDiff = computed(() => {
|
|
7159
|
+
return DateUtil.day(values.value.startedAt).diff(values.value.endedAt);
|
|
7595
7160
|
});
|
|
7596
|
-
|
|
7597
|
-
if (isNaN(
|
|
7161
|
+
computed(() => {
|
|
7162
|
+
if (isNaN(reverseDiff.value))
|
|
7598
7163
|
return "-";
|
|
7599
|
-
const duration2 = DateUtil.day.duration(
|
|
7164
|
+
const duration2 = DateUtil.day.duration(reverseDiff.value);
|
|
7600
7165
|
return duration2.format("HH [jam] mm [menit]");
|
|
7601
7166
|
});
|
|
7602
7167
|
function onStartedAtUpdate(date) {
|
|
7603
7168
|
if (!date)
|
|
7604
7169
|
return;
|
|
7605
|
-
const
|
|
7606
|
-
|
|
7170
|
+
const currentEndedendedAt = DateUtil.day(values.value.endedAt);
|
|
7171
|
+
let startedAt = DateUtil.day(date);
|
|
7172
|
+
let endedAt = DateUtil.day(date);
|
|
7173
|
+
startedAt = startedAt.second(0).millisecond(0);
|
|
7174
|
+
endedAt = endedAt.hour(currentEndedendedAt.hour()).minute(currentEndedendedAt.minute()).second(0).millisecond(0);
|
|
7607
7175
|
values.value.startedAt = startedAt.toISOString();
|
|
7608
7176
|
values.value.endedAt = endedAt.toISOString();
|
|
7609
7177
|
}
|
|
@@ -7628,8 +7196,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7628
7196
|
onSubmit: unref(saveOne)
|
|
7629
7197
|
}, {
|
|
7630
7198
|
default: withCtx(() => [
|
|
7631
|
-
createCommentVNode(' <NeonAlert\n icon="circle-info"\n label="Sudah ada Absensi!. "\n description="Untuk hari ini kamu sudah ada absensi yang diajukan, silahkan cari absensi yang telah diajukan dan ajukan kembali untuk pergantiannya."\n color="#F7CF6D"\n /> '),
|
|
7632
|
-
createCommentVNode(' <div class="flex flex-wrap">\n <div class="mt-2">\n <NeonField>\n <template #input>\n <NeonButton\n size="md"\n color="success"\n icon-left="up-from-line"\n @click="syncOne"\n >Ajukan</NeonButton\n >\n </template>\n </NeonField>\n </div>\n \n <div class="mt-2">\n <NeonField>\n <template #input>\n <NeonButton\n size="md"\n color="warning"\n icon-left="arrows-retweet"\n @click="syncOne"\n >Ganti</NeonButton\n >\n </template>\n </NeonField>\n </div>\n </div> '),
|
|
7633
7199
|
createVNode(unref(NeonField), mergeProps({
|
|
7634
7200
|
modelValue: unref(values).status,
|
|
7635
7201
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).status = $event)
|
|
@@ -7639,23 +7205,31 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7639
7205
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(values) ? values.value = $event : null),
|
|
7640
7206
|
field: unref(fields).submitStaff
|
|
7641
7207
|
}, null, 8, ["modelValue", "field"]),
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
"
|
|
7645
|
-
},
|
|
7208
|
+
(openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
7209
|
+
key: key.value,
|
|
7210
|
+
"model-value": unref(values).startedAt
|
|
7211
|
+
}, {
|
|
7212
|
+
handle: "startedAt",
|
|
7213
|
+
name: "Tanggal",
|
|
7214
|
+
type: "date",
|
|
7215
|
+
input: "date2",
|
|
7216
|
+
options: {
|
|
7217
|
+
note: "Tanggal absensi."
|
|
7218
|
+
}
|
|
7219
|
+
}, { "onUpdate:modelValue": onStartedAtUpdate }), null, 16, ["model-value"])),
|
|
7646
7220
|
createVNode(unref(NeonField), mergeProps({
|
|
7647
7221
|
modelValue: unref(values).type,
|
|
7648
|
-
"onUpdate:modelValue": _cache[
|
|
7222
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).type = $event)
|
|
7649
7223
|
}, unref(fields).type), null, 16, ["modelValue"]),
|
|
7650
7224
|
createVNode(unref(OfficeRelation), {
|
|
7651
7225
|
modelValue: unref(values),
|
|
7652
|
-
"onUpdate:modelValue": _cache[
|
|
7226
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
|
|
7653
7227
|
field: unref(fields).decideStaff
|
|
7654
7228
|
}, null, 8, ["modelValue", "field"]),
|
|
7655
7229
|
unref(isNew) || unref(isReady) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
7656
7230
|
key: 0,
|
|
7657
7231
|
modelValue: unref(values).notes,
|
|
7658
|
-
"onUpdate:modelValue": _cache[
|
|
7232
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).notes = $event)
|
|
7659
7233
|
}, unref(fields).notes), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
|
|
7660
7234
|
createVNode(unref(NeonDivider), {
|
|
7661
7235
|
"is-dashed": "",
|
|
@@ -7663,153 +7237,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7663
7237
|
}),
|
|
7664
7238
|
createVNode(unref(NeonField), mergeProps({
|
|
7665
7239
|
modelValue: unref(values).submittedAt,
|
|
7666
|
-
"onUpdate:modelValue": _cache[
|
|
7240
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).submittedAt = $event)
|
|
7667
7241
|
}, unref(fields).submittedAt), null, 16, ["modelValue"]),
|
|
7668
|
-
createCommentVNode(" EARLY GO HOME "),
|
|
7669
|
-
(openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
7670
|
-
key: keyHomeAt.value,
|
|
7671
|
-
"model-value": unref(values).homeAt
|
|
7672
|
-
}, {
|
|
7673
|
-
handle: "homeAt",
|
|
7674
|
-
name: "Tanggal",
|
|
7675
|
-
type: "date",
|
|
7676
|
-
input: "date2",
|
|
7677
|
-
options: {
|
|
7678
|
-
note: "Tanggal absensi."
|
|
7679
|
-
}
|
|
7680
|
-
}, { "onUpdate:modelValue": onHomeAtUpdate }), null, 16, ["model-value"])),
|
|
7681
7242
|
createElementVNode("div", _hoisted_1$2, [
|
|
7682
|
-
createVNode(unref(NeonField), mergeProps({
|
|
7683
|
-
modelValue: unref(values).homeAt,
|
|
7684
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).homeAt = $event)
|
|
7685
|
-
}, {
|
|
7686
|
-
handle: "homeAt",
|
|
7687
|
-
name: "Jam Pulang Kerja",
|
|
7688
|
-
options: {
|
|
7689
|
-
note: "Jam pulang kerja."
|
|
7690
|
-
}
|
|
7691
|
-
}), {
|
|
7692
|
-
input: withCtx(() => [
|
|
7693
|
-
createVNode(unref(NeonTime), {
|
|
7694
|
-
modelValue: unref(values).homeAt,
|
|
7695
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).homeAt = $event),
|
|
7696
|
-
"is-loading": unref(isLoading),
|
|
7697
|
-
class: "mt-2"
|
|
7698
|
-
}, null, 8, ["modelValue", "is-loading"])
|
|
7699
|
-
]),
|
|
7700
|
-
_: 1
|
|
7701
|
-
/* STABLE */
|
|
7702
|
-
}, 16, ["modelValue"]),
|
|
7703
|
-
createVNode(unref(NeonField), mergeProps({
|
|
7704
|
-
modelValue: unref(values).earlyAt,
|
|
7705
|
-
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).earlyAt = $event)
|
|
7706
|
-
}, {
|
|
7707
|
-
handle: "earlyAt",
|
|
7708
|
-
name: "Jam Pulang Lebih Awal",
|
|
7709
|
-
options: {
|
|
7710
|
-
note: "Jam pulang lebih awal."
|
|
7711
|
-
}
|
|
7712
|
-
}), {
|
|
7713
|
-
input: withCtx(() => [
|
|
7714
|
-
createVNode(unref(NeonTime), {
|
|
7715
|
-
modelValue: unref(values).earlyAt,
|
|
7716
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).earlyAt = $event),
|
|
7717
|
-
"is-loading": unref(isLoading),
|
|
7718
|
-
class: "mt-2"
|
|
7719
|
-
}, null, 8, ["modelValue", "is-loading"]),
|
|
7720
|
-
createElementVNode(
|
|
7721
|
-
"div",
|
|
7722
|
-
_hoisted_2$2,
|
|
7723
|
-
toDisplayString(durationHomeAt.value),
|
|
7724
|
-
1
|
|
7725
|
-
/* TEXT */
|
|
7726
|
-
)
|
|
7727
|
-
]),
|
|
7728
|
-
_: 1
|
|
7729
|
-
/* STABLE */
|
|
7730
|
-
}, 16, ["modelValue"])
|
|
7731
|
-
]),
|
|
7732
|
-
createCommentVNode(" COME TOO LATE "),
|
|
7733
|
-
(openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
7734
|
-
key: keyComeAt.value,
|
|
7735
|
-
"model-value": unref(values).comeAt
|
|
7736
|
-
}, {
|
|
7737
|
-
handle: "comeAt",
|
|
7738
|
-
name: "Tanggal",
|
|
7739
|
-
type: "date",
|
|
7740
|
-
input: "date2",
|
|
7741
|
-
options: {
|
|
7742
|
-
note: "Tanggal absensi."
|
|
7743
|
-
}
|
|
7744
|
-
}, { "onUpdate:modelValue": onComeAtUpdate }), null, 16, ["model-value"])),
|
|
7745
|
-
createElementVNode("div", _hoisted_3$2, [
|
|
7746
|
-
createVNode(unref(NeonField), mergeProps({
|
|
7747
|
-
modelValue: unref(values).comeAt,
|
|
7748
|
-
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => unref(values).comeAt = $event)
|
|
7749
|
-
}, {
|
|
7750
|
-
handle: "comeAt",
|
|
7751
|
-
name: "Jam Datang",
|
|
7752
|
-
options: {
|
|
7753
|
-
note: "Jam Datang kerja."
|
|
7754
|
-
}
|
|
7755
|
-
}), {
|
|
7756
|
-
input: withCtx(() => [
|
|
7757
|
-
createVNode(unref(NeonTime), {
|
|
7758
|
-
modelValue: unref(values).comeAt,
|
|
7759
|
-
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(values).comeAt = $event),
|
|
7760
|
-
"is-loading": unref(isLoading),
|
|
7761
|
-
class: "mt-2"
|
|
7762
|
-
}, null, 8, ["modelValue", "is-loading"])
|
|
7763
|
-
]),
|
|
7764
|
-
_: 1
|
|
7765
|
-
/* STABLE */
|
|
7766
|
-
}, 16, ["modelValue"]),
|
|
7767
|
-
createVNode(unref(NeonField), mergeProps({
|
|
7768
|
-
modelValue: unref(values).lateAt,
|
|
7769
|
-
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => unref(values).lateAt = $event)
|
|
7770
|
-
}, {
|
|
7771
|
-
handle: "lateAt",
|
|
7772
|
-
name: "Jam Datang Terlambat",
|
|
7773
|
-
options: {
|
|
7774
|
-
note: "Jam datang terlambat."
|
|
7775
|
-
}
|
|
7776
|
-
}), {
|
|
7777
|
-
input: withCtx(() => [
|
|
7778
|
-
createVNode(unref(NeonTime), {
|
|
7779
|
-
modelValue: unref(values).lateAt,
|
|
7780
|
-
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => unref(values).lateAt = $event),
|
|
7781
|
-
"is-loading": unref(isLoading),
|
|
7782
|
-
class: "mt-2"
|
|
7783
|
-
}, null, 8, ["modelValue", "is-loading"]),
|
|
7784
|
-
createElementVNode(
|
|
7785
|
-
"div",
|
|
7786
|
-
_hoisted_4$2,
|
|
7787
|
-
toDisplayString(durationComeAt.value),
|
|
7788
|
-
1
|
|
7789
|
-
/* TEXT */
|
|
7790
|
-
)
|
|
7791
|
-
]),
|
|
7792
|
-
_: 1
|
|
7793
|
-
/* STABLE */
|
|
7794
|
-
}, 16, ["modelValue"])
|
|
7795
|
-
]),
|
|
7796
|
-
createCommentVNode(" TIMEOUT "),
|
|
7797
|
-
(openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
7798
|
-
key: keyStartedAt.value,
|
|
7799
|
-
"model-value": unref(values).startedAt
|
|
7800
|
-
}, {
|
|
7801
|
-
handle: "startedAt",
|
|
7802
|
-
name: "Tanggal",
|
|
7803
|
-
type: "date",
|
|
7804
|
-
input: "date2",
|
|
7805
|
-
options: {
|
|
7806
|
-
note: "Tanggal absensi."
|
|
7807
|
-
}
|
|
7808
|
-
}, { "onUpdate:modelValue": onStartedAtUpdate }), null, 16, ["model-value"])),
|
|
7809
|
-
createElementVNode("div", _hoisted_5$2, [
|
|
7810
7243
|
createVNode(unref(NeonField), mergeProps({
|
|
7811
7244
|
modelValue: unref(values).startedAt,
|
|
7812
|
-
"onUpdate:modelValue": _cache[
|
|
7245
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).startedAt = $event)
|
|
7813
7246
|
}, {
|
|
7814
7247
|
handle: "startedAt",
|
|
7815
7248
|
name: "Mulai",
|
|
@@ -7820,7 +7253,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7820
7253
|
input: withCtx(() => [
|
|
7821
7254
|
createVNode(unref(NeonTime), {
|
|
7822
7255
|
modelValue: unref(values).startedAt,
|
|
7823
|
-
"onUpdate:modelValue": _cache[
|
|
7256
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).startedAt = $event),
|
|
7824
7257
|
"is-loading": unref(isLoading),
|
|
7825
7258
|
class: "mt-2"
|
|
7826
7259
|
}, null, 8, ["modelValue", "is-loading"])
|
|
@@ -7830,7 +7263,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7830
7263
|
}, 16, ["modelValue"]),
|
|
7831
7264
|
createVNode(unref(NeonField), mergeProps({
|
|
7832
7265
|
modelValue: unref(values).endedAt,
|
|
7833
|
-
"onUpdate:modelValue": _cache[
|
|
7266
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).endedAt = $event)
|
|
7834
7267
|
}, {
|
|
7835
7268
|
handle: "endedAt",
|
|
7836
7269
|
name: "Selesai",
|
|
@@ -7841,14 +7274,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7841
7274
|
input: withCtx(() => [
|
|
7842
7275
|
createVNode(unref(NeonTime), {
|
|
7843
7276
|
modelValue: unref(values).endedAt,
|
|
7844
|
-
"onUpdate:modelValue": _cache[
|
|
7277
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).endedAt = $event),
|
|
7845
7278
|
"is-loading": unref(isLoading),
|
|
7846
7279
|
class: "mt-2"
|
|
7847
7280
|
}, null, 8, ["modelValue", "is-loading"]),
|
|
7848
7281
|
createElementVNode(
|
|
7849
7282
|
"div",
|
|
7850
|
-
|
|
7851
|
-
toDisplayString(
|
|
7283
|
+
_hoisted_2$2,
|
|
7284
|
+
toDisplayString(duration.value),
|
|
7852
7285
|
1
|
|
7853
7286
|
/* TEXT */
|
|
7854
7287
|
)
|
|
@@ -7876,26 +7309,26 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7876
7309
|
};
|
|
7877
7310
|
}
|
|
7878
7311
|
});
|
|
7879
|
-
const
|
|
7880
|
-
const AttendanceSingle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
7312
|
+
const AttendanceSingle_vue_vue_type_style_index_0_scoped_0c3c6187_lang = "";
|
|
7313
|
+
const AttendanceSingle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-0c3c6187"]]);
|
|
7881
7314
|
const _hoisted_1$1 = {
|
|
7882
|
-
key:
|
|
7315
|
+
key: 1,
|
|
7883
7316
|
class: "flex flex-wrap"
|
|
7884
7317
|
};
|
|
7885
7318
|
const _hoisted_2$1 = { class: "mt-2" };
|
|
7886
7319
|
const _hoisted_3$1 = { class: "mt-2" };
|
|
7887
7320
|
const _hoisted_4$1 = {
|
|
7888
|
-
key:
|
|
7321
|
+
key: 5,
|
|
7889
7322
|
class: "grid gap-2 sm:grid-cols-2"
|
|
7890
7323
|
};
|
|
7891
7324
|
const _hoisted_5$1 = { class: "text-right text-fg-subdued text-sm" };
|
|
7892
7325
|
const _hoisted_6$1 = {
|
|
7893
|
-
key:
|
|
7326
|
+
key: 6,
|
|
7894
7327
|
class: "grid gap-2 sm:grid-cols-2"
|
|
7895
7328
|
};
|
|
7896
7329
|
const _hoisted_7$1 = { class: "text-right text-fg-subdued text-sm" };
|
|
7897
7330
|
const _hoisted_8$1 = {
|
|
7898
|
-
key:
|
|
7331
|
+
key: 7,
|
|
7899
7332
|
class: "grid gap-2 sm:grid-cols-2"
|
|
7900
7333
|
};
|
|
7901
7334
|
const _hoisted_9$1 = { class: "text-right text-fg-subdued text-sm" };
|
|
@@ -7918,62 +7351,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
7918
7351
|
syncOne,
|
|
7919
7352
|
executeOne
|
|
7920
7353
|
} = useSingle();
|
|
7921
|
-
const
|
|
7922
|
-
const
|
|
7923
|
-
return DateUtil.day(values.value.earlyAt).diff(values.value.homeAt);
|
|
7924
|
-
});
|
|
7925
|
-
const durationHomeAt = computed(() => {
|
|
7926
|
-
if (isNaN(diffHomeAt.value))
|
|
7927
|
-
return "-";
|
|
7928
|
-
const duration2 = DateUtil.day.duration(diffHomeAt.value);
|
|
7929
|
-
return duration2.format("HH [jam] mm [menit]");
|
|
7930
|
-
});
|
|
7931
|
-
function onHomeAtUpdate(date) {
|
|
7932
|
-
if (!date)
|
|
7933
|
-
return;
|
|
7934
|
-
const earlyAt = DateUtil.day(date);
|
|
7935
|
-
const homeAt = DateUtil.day(date);
|
|
7936
|
-
values.value.earlyAt = earlyAt.toISOString();
|
|
7937
|
-
values.value.homeAt = homeAt.toISOString();
|
|
7938
|
-
values.value.attendanceAt = earlyAt.toISOString();
|
|
7939
|
-
}
|
|
7940
|
-
const keyComeAt = ref(0);
|
|
7941
|
-
const diffComeAt = computed(() => {
|
|
7942
|
-
return DateUtil.day(values.value.lateAt).diff(values.value.comeAt);
|
|
7943
|
-
});
|
|
7944
|
-
const durationComeAt = computed(() => {
|
|
7945
|
-
if (isNaN(diffComeAt.value))
|
|
7946
|
-
return "-";
|
|
7947
|
-
const duration2 = DateUtil.day.duration(diffComeAt.value);
|
|
7948
|
-
return duration2.format("HH [jam] mm [menit]");
|
|
7949
|
-
});
|
|
7950
|
-
function onComeAtUpdate(date) {
|
|
7951
|
-
if (!date)
|
|
7952
|
-
return;
|
|
7953
|
-
const comeAt = DateUtil.day(date);
|
|
7954
|
-
const lateAt = DateUtil.day(date);
|
|
7955
|
-
values.value.comeAt = comeAt.toISOString();
|
|
7956
|
-
values.value.lateAt = lateAt.toISOString();
|
|
7957
|
-
values.value.attendanceAt = comeAt.toISOString();
|
|
7958
|
-
}
|
|
7959
|
-
const keyStartedAt = ref(0);
|
|
7960
|
-
const diffStartedAt = computed(() => {
|
|
7354
|
+
const key = ref(0);
|
|
7355
|
+
const diff = computed(() => {
|
|
7961
7356
|
return DateUtil.day(values.value.endedAt).diff(values.value.startedAt);
|
|
7962
7357
|
});
|
|
7963
|
-
const
|
|
7964
|
-
if (isNaN(
|
|
7358
|
+
const duration = computed(() => {
|
|
7359
|
+
if (isNaN(diff.value))
|
|
7965
7360
|
return "-";
|
|
7966
|
-
const duration2 = DateUtil.day.duration(
|
|
7361
|
+
const duration2 = DateUtil.day.duration(diff.value);
|
|
7967
7362
|
return duration2.format("HH [jam] mm [menit]");
|
|
7968
7363
|
});
|
|
7969
7364
|
function onStartedAtUpdate(date) {
|
|
7970
7365
|
if (!date)
|
|
7971
7366
|
return;
|
|
7972
|
-
const
|
|
7973
|
-
|
|
7367
|
+
const currentEndedendedAt = DateUtil.day(values.value.endedAt);
|
|
7368
|
+
let startedAt = DateUtil.day(date);
|
|
7369
|
+
let endedAt = DateUtil.day(date);
|
|
7370
|
+
startedAt = startedAt.second(0).millisecond(0);
|
|
7371
|
+
endedAt = endedAt.hour(currentEndedendedAt.hour()).minute(currentEndedendedAt.minute()).second(0).millisecond(0);
|
|
7974
7372
|
values.value.startedAt = startedAt.toISOString();
|
|
7975
7373
|
values.value.endedAt = endedAt.toISOString();
|
|
7976
|
-
|
|
7374
|
+
conflictAtt.value = false;
|
|
7977
7375
|
}
|
|
7978
7376
|
const { staff } = useOperasional();
|
|
7979
7377
|
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
@@ -7997,6 +7395,26 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
7997
7395
|
await executeOne("changeAttendance", { attendanceId: id.value });
|
|
7998
7396
|
await syncOne();
|
|
7999
7397
|
};
|
|
7398
|
+
const conflictAtt = ref(false);
|
|
7399
|
+
async function conflictAttendance() {
|
|
7400
|
+
var _a2;
|
|
7401
|
+
const resp = await executeOne("checkAttendance", {
|
|
7402
|
+
staffId: (_a2 = staff.value) == null ? void 0 : _a2.id,
|
|
7403
|
+
startedAt: values.value.startedAt
|
|
7404
|
+
});
|
|
7405
|
+
const countAtt = resp.data.executeAttendance.output.countAttendance;
|
|
7406
|
+
if (values.value.startedAt) {
|
|
7407
|
+
if (countAtt > 1) {
|
|
7408
|
+
conflictAtt.value = true;
|
|
7409
|
+
} else {
|
|
7410
|
+
await submitAbsensi();
|
|
7411
|
+
await syncOne();
|
|
7412
|
+
conflictAtt.value = false;
|
|
7413
|
+
}
|
|
7414
|
+
} else {
|
|
7415
|
+
conflictAtt.value = true;
|
|
7416
|
+
}
|
|
7417
|
+
}
|
|
8000
7418
|
return (_ctx, _cache) => {
|
|
8001
7419
|
return openBlock(), createBlock(unref(NeonSingle), { class: "neu-attendance-single" }, {
|
|
8002
7420
|
default: withCtx(() => [
|
|
@@ -8018,8 +7436,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8018
7436
|
onSubmit: unref(saveOne)
|
|
8019
7437
|
}, {
|
|
8020
7438
|
default: withCtx(() => [
|
|
8021
|
-
|
|
8022
|
-
|
|
7439
|
+
conflictAtt.value == true ? (openBlock(), createBlock(unref(NeonAlert), {
|
|
7440
|
+
key: 0,
|
|
7441
|
+
icon: "circle-info",
|
|
7442
|
+
label: "Sudah ada Absensi!. ",
|
|
7443
|
+
description: "Untuk hari ini kamu sudah ada absensi yang diajukan, silahkan cari absensi yang telah diajukan dan ajukan kembali untuk pergantiannya.",
|
|
7444
|
+
color: "#F7CF6D"
|
|
7445
|
+
})) : createCommentVNode("v-if", true),
|
|
7446
|
+
!unref(isNew) && conflictAtt.value == false ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
8023
7447
|
createElementVNode("div", _hoisted_2$1, [
|
|
8024
7448
|
createVNode(unref(NeonField), null, {
|
|
8025
7449
|
input: withCtx(() => [
|
|
@@ -8028,7 +7452,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8028
7452
|
color: "success",
|
|
8029
7453
|
"icon-left": "up-from-line",
|
|
8030
7454
|
"is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved",
|
|
8031
|
-
onClick:
|
|
7455
|
+
onClick: conflictAttendance
|
|
8032
7456
|
}, {
|
|
8033
7457
|
default: withCtx(() => [
|
|
8034
7458
|
createTextVNode("Ajukan")
|
|
@@ -8049,7 +7473,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8049
7473
|
size: "md",
|
|
8050
7474
|
color: "warning",
|
|
8051
7475
|
"icon-left": "arrows-retweet",
|
|
8052
|
-
"is-disabled": unref(values).status == "
|
|
7476
|
+
"is-disabled": unref(values).status == "notApproved" || unref(values).status == "draft",
|
|
8053
7477
|
onClick: changeAbsensi
|
|
8054
7478
|
}, {
|
|
8055
7479
|
default: withCtx(() => [
|
|
@@ -8070,32 +7494,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8070
7494
|
field: unref(fields).submitStaff,
|
|
8071
7495
|
"is-disabled": ""
|
|
8072
7496
|
}, null, 8, ["modelValue", "field"]),
|
|
8073
|
-
|
|
8074
|
-
key:
|
|
8075
|
-
modelValue: unref(values).attendanceAt,
|
|
8076
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).attendanceAt = $event)
|
|
8077
|
-
}, unref(fields).attendanceAt, {
|
|
8078
|
-
"is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
|
|
8079
|
-
}), null, 16, ["modelValue", "is-disabled"])) : createCommentVNode("v-if", true),
|
|
8080
|
-
createCommentVNode(" EARLY GO HOME "),
|
|
8081
|
-
unref(values).type == "homeEarly" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
8082
|
-
key: keyHomeAt.value,
|
|
8083
|
-
"model-value": unref(values).homeAt
|
|
8084
|
-
}, {
|
|
8085
|
-
handle: "homeAt",
|
|
8086
|
-
name: "Tanggal",
|
|
8087
|
-
type: "date",
|
|
8088
|
-
input: "date2",
|
|
8089
|
-
options: {
|
|
8090
|
-
note: "Tanggal absensi."
|
|
8091
|
-
}
|
|
8092
|
-
}, {
|
|
8093
|
-
"is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved",
|
|
8094
|
-
"onUpdate:modelValue": onHomeAtUpdate
|
|
8095
|
-
}), null, 16, ["model-value", "is-disabled"])) : createCommentVNode("v-if", true),
|
|
8096
|
-
createCommentVNode(" TIMEOUT "),
|
|
8097
|
-
unref(values).type == "timeout" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
8098
|
-
key: keyStartedAt.value,
|
|
7497
|
+
(openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
7498
|
+
key: key.value,
|
|
8099
7499
|
"model-value": unref(values).startedAt
|
|
8100
7500
|
}, {
|
|
8101
7501
|
handle: "startedAt",
|
|
@@ -8108,57 +7508,41 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8108
7508
|
}, {
|
|
8109
7509
|
"is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved",
|
|
8110
7510
|
"onUpdate:modelValue": onStartedAtUpdate
|
|
8111
|
-
}), null, 16, ["model-value", "is-disabled"]))
|
|
8112
|
-
createCommentVNode(" COME TOO LATE "),
|
|
8113
|
-
unref(values).type == "comeLate" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
8114
|
-
key: keyComeAt.value,
|
|
8115
|
-
"model-value": unref(values).comeAt
|
|
8116
|
-
}, {
|
|
8117
|
-
handle: "comeAt",
|
|
8118
|
-
name: "Tanggal",
|
|
8119
|
-
type: "date",
|
|
8120
|
-
input: "date2",
|
|
8121
|
-
options: {
|
|
8122
|
-
note: "Tanggal absensi."
|
|
8123
|
-
}
|
|
8124
|
-
}, {
|
|
8125
|
-
"is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved",
|
|
8126
|
-
"onUpdate:modelValue": onComeAtUpdate
|
|
8127
|
-
}), null, 16, ["model-value", "is-disabled"])) : createCommentVNode("v-if", true),
|
|
7511
|
+
}), null, 16, ["model-value", "is-disabled"])),
|
|
8128
7512
|
createVNode(unref(NeonField), mergeProps({
|
|
8129
7513
|
modelValue: unref(values).type,
|
|
8130
|
-
"onUpdate:modelValue": _cache[
|
|
7514
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
|
|
8131
7515
|
}, unref(fields).type, {
|
|
8132
7516
|
"is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
|
|
8133
7517
|
}), null, 16, ["modelValue", "is-disabled"]),
|
|
8134
7518
|
createVNode(unref(OfficeRelation), {
|
|
8135
7519
|
modelValue: unref(values),
|
|
8136
|
-
"onUpdate:modelValue": _cache[
|
|
7520
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
|
|
8137
7521
|
field: unref(fields).decideStaff,
|
|
8138
7522
|
"is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
|
|
8139
7523
|
}, null, 8, ["modelValue", "field", "is-disabled"]),
|
|
8140
7524
|
unref(isNew) || unref(isReady) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
8141
|
-
key:
|
|
7525
|
+
key: 2,
|
|
8142
7526
|
modelValue: unref(values).notes,
|
|
8143
|
-
"onUpdate:modelValue": _cache[
|
|
7527
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(values).notes = $event)
|
|
8144
7528
|
}, unref(fields).notes), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
|
|
8145
7529
|
unref(values).type ? (openBlock(), createBlock(unref(NeonDivider), {
|
|
8146
|
-
key:
|
|
7530
|
+
key: 3,
|
|
8147
7531
|
"is-dashed": "",
|
|
8148
7532
|
label: "Keterangan"
|
|
8149
7533
|
})) : createCommentVNode("v-if", true),
|
|
8150
7534
|
unref(values).type == "dayOff" || unref(values).type == "sick" || unref(values).type == "permission" || unref(values).type == "leave" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
8151
|
-
key:
|
|
7535
|
+
key: 4,
|
|
8152
7536
|
modelValue: unref(values).submittedAt,
|
|
8153
|
-
"onUpdate:modelValue": _cache[
|
|
7537
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).submittedAt = $event)
|
|
8154
7538
|
}, unref(fields).submittedAt, { "is-disabled": "" }), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
|
|
8155
7539
|
createCommentVNode(" EARLY GO HOME "),
|
|
8156
7540
|
unref(values).type == "homeEarly" ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
8157
7541
|
createVNode(unref(NeonField), mergeProps({
|
|
8158
|
-
modelValue: unref(values).
|
|
8159
|
-
"onUpdate:modelValue": _cache[
|
|
7542
|
+
modelValue: unref(values).startedAt,
|
|
7543
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).startedAt = $event)
|
|
8160
7544
|
}, {
|
|
8161
|
-
handle: "
|
|
7545
|
+
handle: "startedAt",
|
|
8162
7546
|
name: "Jam Pulang Kerja",
|
|
8163
7547
|
options: {
|
|
8164
7548
|
note: "Jam pulang kerja."
|
|
@@ -8166,8 +7550,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8166
7550
|
}), {
|
|
8167
7551
|
input: withCtx(() => [
|
|
8168
7552
|
createVNode(unref(NeonTime), {
|
|
8169
|
-
modelValue: unref(values).
|
|
8170
|
-
"onUpdate:modelValue": _cache[
|
|
7553
|
+
modelValue: unref(values).startedAt,
|
|
7554
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).startedAt = $event),
|
|
8171
7555
|
"is-loading": unref(isLoading),
|
|
8172
7556
|
class: "mt-2"
|
|
8173
7557
|
}, null, 8, ["modelValue", "is-loading"])
|
|
@@ -8176,10 +7560,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8176
7560
|
/* STABLE */
|
|
8177
7561
|
}, 16, ["modelValue"]),
|
|
8178
7562
|
createVNode(unref(NeonField), mergeProps({
|
|
8179
|
-
modelValue: unref(values).
|
|
8180
|
-
"onUpdate:modelValue": _cache[
|
|
7563
|
+
modelValue: unref(values).endedAt,
|
|
7564
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).endedAt = $event)
|
|
8181
7565
|
}, {
|
|
8182
|
-
handle: "
|
|
7566
|
+
handle: "endedAt",
|
|
8183
7567
|
name: "Jam Pulang Lebih Awal",
|
|
8184
7568
|
options: {
|
|
8185
7569
|
note: "Jam pulang lebih awal."
|
|
@@ -8187,15 +7571,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8187
7571
|
}), {
|
|
8188
7572
|
input: withCtx(() => [
|
|
8189
7573
|
createVNode(unref(NeonTime), {
|
|
8190
|
-
modelValue: unref(values).
|
|
8191
|
-
"onUpdate:modelValue": _cache[
|
|
7574
|
+
modelValue: unref(values).endedAt,
|
|
7575
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).endedAt = $event),
|
|
8192
7576
|
"is-loading": unref(isLoading),
|
|
8193
7577
|
class: "mt-2"
|
|
8194
7578
|
}, null, 8, ["modelValue", "is-loading"]),
|
|
8195
7579
|
createElementVNode(
|
|
8196
7580
|
"div",
|
|
8197
7581
|
_hoisted_5$1,
|
|
8198
|
-
toDisplayString(
|
|
7582
|
+
toDisplayString(duration.value),
|
|
8199
7583
|
1
|
|
8200
7584
|
/* TEXT */
|
|
8201
7585
|
)
|
|
@@ -8207,10 +7591,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8207
7591
|
createCommentVNode(" COME TOO LATE "),
|
|
8208
7592
|
unref(values).type == "comeLate" ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
8209
7593
|
createVNode(unref(NeonField), mergeProps({
|
|
8210
|
-
modelValue: unref(values).
|
|
8211
|
-
"onUpdate:modelValue": _cache[
|
|
7594
|
+
modelValue: unref(values).startedAt,
|
|
7595
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).startedAt = $event)
|
|
8212
7596
|
}, {
|
|
8213
|
-
handle: "
|
|
7597
|
+
handle: "startedAt",
|
|
8214
7598
|
name: "Jam Datang",
|
|
8215
7599
|
options: {
|
|
8216
7600
|
note: "Jam Datang kerja."
|
|
@@ -8218,8 +7602,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8218
7602
|
}), {
|
|
8219
7603
|
input: withCtx(() => [
|
|
8220
7604
|
createVNode(unref(NeonTime), {
|
|
8221
|
-
modelValue: unref(values).
|
|
8222
|
-
"onUpdate:modelValue": _cache[
|
|
7605
|
+
modelValue: unref(values).startedAt,
|
|
7606
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).startedAt = $event),
|
|
8223
7607
|
"is-loading": unref(isLoading),
|
|
8224
7608
|
class: "mt-2"
|
|
8225
7609
|
}, null, 8, ["modelValue", "is-loading"])
|
|
@@ -8228,10 +7612,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8228
7612
|
/* STABLE */
|
|
8229
7613
|
}, 16, ["modelValue"]),
|
|
8230
7614
|
createVNode(unref(NeonField), mergeProps({
|
|
8231
|
-
modelValue: unref(values).
|
|
8232
|
-
"onUpdate:modelValue": _cache[
|
|
7615
|
+
modelValue: unref(values).endedAt,
|
|
7616
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => unref(values).endedAt = $event)
|
|
8233
7617
|
}, {
|
|
8234
|
-
handle: "
|
|
7618
|
+
handle: "endedAt",
|
|
8235
7619
|
name: "Jam Datang Terlambat",
|
|
8236
7620
|
options: {
|
|
8237
7621
|
note: "Jam datang terlambat."
|
|
@@ -8239,15 +7623,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8239
7623
|
}), {
|
|
8240
7624
|
input: withCtx(() => [
|
|
8241
7625
|
createVNode(unref(NeonTime), {
|
|
8242
|
-
modelValue: unref(values).
|
|
8243
|
-
"onUpdate:modelValue": _cache[
|
|
7626
|
+
modelValue: unref(values).endedAt,
|
|
7627
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(values).endedAt = $event),
|
|
8244
7628
|
"is-loading": unref(isLoading),
|
|
8245
7629
|
class: "mt-2"
|
|
8246
7630
|
}, null, 8, ["modelValue", "is-loading"]),
|
|
8247
7631
|
createElementVNode(
|
|
8248
7632
|
"div",
|
|
8249
7633
|
_hoisted_7$1,
|
|
8250
|
-
toDisplayString(
|
|
7634
|
+
toDisplayString(duration.value),
|
|
8251
7635
|
1
|
|
8252
7636
|
/* TEXT */
|
|
8253
7637
|
)
|
|
@@ -8260,7 +7644,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8260
7644
|
unref(values).type == "timeout" ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
8261
7645
|
createVNode(unref(NeonField), mergeProps({
|
|
8262
7646
|
modelValue: unref(values).startedAt,
|
|
8263
|
-
"onUpdate:modelValue": _cache[
|
|
7647
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => unref(values).startedAt = $event)
|
|
8264
7648
|
}, {
|
|
8265
7649
|
handle: "startedAt",
|
|
8266
7650
|
name: "Mulai",
|
|
@@ -8271,7 +7655,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8271
7655
|
input: withCtx(() => [
|
|
8272
7656
|
createVNode(unref(NeonTime), {
|
|
8273
7657
|
modelValue: unref(values).startedAt,
|
|
8274
|
-
"onUpdate:modelValue": _cache[
|
|
7658
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => unref(values).startedAt = $event),
|
|
8275
7659
|
"is-loading": unref(isLoading),
|
|
8276
7660
|
class: "mt-2"
|
|
8277
7661
|
}, null, 8, ["modelValue", "is-loading"])
|
|
@@ -8281,7 +7665,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8281
7665
|
}, 16, ["modelValue"]),
|
|
8282
7666
|
createVNode(unref(NeonField), mergeProps({
|
|
8283
7667
|
modelValue: unref(values).endedAt,
|
|
8284
|
-
"onUpdate:modelValue": _cache[
|
|
7668
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => unref(values).endedAt = $event)
|
|
8285
7669
|
}, {
|
|
8286
7670
|
handle: "endedAt",
|
|
8287
7671
|
name: "Selesai",
|
|
@@ -8292,14 +7676,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8292
7676
|
input: withCtx(() => [
|
|
8293
7677
|
createVNode(unref(NeonTime), {
|
|
8294
7678
|
modelValue: unref(values).endedAt,
|
|
8295
|
-
"onUpdate:modelValue": _cache[
|
|
7679
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => unref(values).endedAt = $event),
|
|
8296
7680
|
"is-loading": unref(isLoading),
|
|
8297
7681
|
class: "mt-2"
|
|
8298
7682
|
}, null, 8, ["modelValue", "is-loading"]),
|
|
8299
7683
|
createElementVNode(
|
|
8300
7684
|
"div",
|
|
8301
7685
|
_hoisted_9$1,
|
|
8302
|
-
toDisplayString(
|
|
7686
|
+
toDisplayString(duration.value),
|
|
8303
7687
|
1
|
|
8304
7688
|
/* TEXT */
|
|
8305
7689
|
)
|
|
@@ -8327,23 +7711,23 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8327
7711
|
};
|
|
8328
7712
|
}
|
|
8329
7713
|
});
|
|
8330
|
-
const
|
|
8331
|
-
const AttendanceStaff = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
7714
|
+
const AttendanceStaff_vue_vue_type_style_index_0_scoped_724535b0_lang = "";
|
|
7715
|
+
const AttendanceStaff = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-724535b0"]]);
|
|
8332
7716
|
const _hoisted_1 = { class: "flex flex-wrap" };
|
|
8333
7717
|
const _hoisted_2 = { class: "mt-2" };
|
|
8334
7718
|
const _hoisted_3 = { class: "mt-2" };
|
|
8335
7719
|
const _hoisted_4 = {
|
|
8336
|
-
key:
|
|
7720
|
+
key: 3,
|
|
8337
7721
|
class: "grid gap-2 sm:grid-cols-2"
|
|
8338
7722
|
};
|
|
8339
7723
|
const _hoisted_5 = { class: "text-right text-fg-subdued text-sm" };
|
|
8340
7724
|
const _hoisted_6 = {
|
|
8341
|
-
key:
|
|
7725
|
+
key: 4,
|
|
8342
7726
|
class: "grid gap-2 sm:grid-cols-2"
|
|
8343
7727
|
};
|
|
8344
7728
|
const _hoisted_7 = { class: "text-right text-fg-subdued text-sm" };
|
|
8345
7729
|
const _hoisted_8 = {
|
|
8346
|
-
key:
|
|
7730
|
+
key: 5,
|
|
8347
7731
|
class: "grid gap-2 sm:grid-cols-2"
|
|
8348
7732
|
};
|
|
8349
7733
|
const _hoisted_9 = { class: "text-right text-fg-subdued text-sm" };
|
|
@@ -8366,57 +7750,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8366
7750
|
syncOne,
|
|
8367
7751
|
executeOne
|
|
8368
7752
|
} = useSingle();
|
|
8369
|
-
const
|
|
8370
|
-
const
|
|
8371
|
-
return DateUtil.day(values.value.
|
|
8372
|
-
});
|
|
8373
|
-
const durationHomeAt = computed(() => {
|
|
8374
|
-
if (isNaN(diffHomeAt.value))
|
|
8375
|
-
return "-";
|
|
8376
|
-
const duration2 = DateUtil.day.duration(diffHomeAt.value);
|
|
8377
|
-
return duration2.format("HH [jam] mm [menit]");
|
|
8378
|
-
});
|
|
8379
|
-
function onHomeAtUpdate(date) {
|
|
8380
|
-
if (!date)
|
|
8381
|
-
return;
|
|
8382
|
-
const earlyAt = DateUtil.day(date);
|
|
8383
|
-
const homeAt = DateUtil.day(date);
|
|
8384
|
-
values.value.earlyAt = earlyAt.toISOString();
|
|
8385
|
-
values.value.homeAt = homeAt.toISOString();
|
|
8386
|
-
}
|
|
8387
|
-
const keyComeAt = ref(0);
|
|
8388
|
-
const diffComeAt = computed(() => {
|
|
8389
|
-
return DateUtil.day(values.value.lateAt).diff(values.value.comeAt);
|
|
7753
|
+
const key = ref(0);
|
|
7754
|
+
const diff = computed(() => {
|
|
7755
|
+
return DateUtil.day(values.value.endedAt).diff(values.value.startedAt);
|
|
8390
7756
|
});
|
|
8391
|
-
const
|
|
8392
|
-
if (isNaN(
|
|
7757
|
+
const duration = computed(() => {
|
|
7758
|
+
if (isNaN(diff.value))
|
|
8393
7759
|
return "-";
|
|
8394
|
-
const duration2 = DateUtil.day.duration(
|
|
7760
|
+
const duration2 = DateUtil.day.duration(diff.value);
|
|
8395
7761
|
return duration2.format("HH [jam] mm [menit]");
|
|
8396
7762
|
});
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
return;
|
|
8400
|
-
const comeAt = DateUtil.day(date);
|
|
8401
|
-
const lateAt = DateUtil.day(date);
|
|
8402
|
-
values.value.comeAt = comeAt.toISOString();
|
|
8403
|
-
values.value.lateAt = lateAt.toISOString();
|
|
8404
|
-
}
|
|
8405
|
-
const keyStartedAt = ref(0);
|
|
8406
|
-
const diffStartedAt = computed(() => {
|
|
8407
|
-
return DateUtil.day(values.value.endedAt).diff(values.value.startedAt);
|
|
7763
|
+
const reverseDiff = computed(() => {
|
|
7764
|
+
return DateUtil.day(values.value.startedAt).diff(values.value.endedAt);
|
|
8408
7765
|
});
|
|
8409
|
-
const
|
|
8410
|
-
if (isNaN(
|
|
7766
|
+
const reverseDuration = computed(() => {
|
|
7767
|
+
if (isNaN(reverseDiff.value))
|
|
8411
7768
|
return "-";
|
|
8412
|
-
const duration2 = DateUtil.day.duration(
|
|
7769
|
+
const duration2 = DateUtil.day.duration(reverseDiff.value);
|
|
8413
7770
|
return duration2.format("HH [jam] mm [menit]");
|
|
8414
7771
|
});
|
|
8415
7772
|
function onStartedAtUpdate(date) {
|
|
8416
7773
|
if (!date)
|
|
8417
7774
|
return;
|
|
8418
|
-
const
|
|
8419
|
-
|
|
7775
|
+
const currentEndedendedAt = DateUtil.day(values.value.endedAt);
|
|
7776
|
+
let startedAt = DateUtil.day(date);
|
|
7777
|
+
let endedAt = DateUtil.day(date);
|
|
7778
|
+
startedAt = startedAt.second(0).millisecond(0);
|
|
7779
|
+
endedAt = endedAt.hour(currentEndedendedAt.hour()).minute(currentEndedendedAt.minute()).second(0).millisecond(0);
|
|
8420
7780
|
values.value.startedAt = startedAt.toISOString();
|
|
8421
7781
|
values.value.endedAt = endedAt.toISOString();
|
|
8422
7782
|
}
|
|
@@ -8514,32 +7874,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8514
7874
|
field: unref(fields).submitStaff,
|
|
8515
7875
|
"is-disabled": ""
|
|
8516
7876
|
}, null, 8, ["modelValue", "field"]),
|
|
8517
|
-
|
|
8518
|
-
key:
|
|
8519
|
-
modelValue: unref(values).attendanceAt,
|
|
8520
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).attendanceAt = $event)
|
|
8521
|
-
}, unref(fields).attendanceAt, {
|
|
8522
|
-
"is-disabled": unref(values).status == "approved"
|
|
8523
|
-
}), null, 16, ["modelValue", "is-disabled"])) : createCommentVNode("v-if", true),
|
|
8524
|
-
createCommentVNode(" EARLY GO HOME "),
|
|
8525
|
-
unref(values).type == "homeEarly" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
8526
|
-
key: keyHomeAt.value,
|
|
8527
|
-
"model-value": unref(values).homeAt
|
|
8528
|
-
}, {
|
|
8529
|
-
handle: "homeAt",
|
|
8530
|
-
name: "Tanggal",
|
|
8531
|
-
type: "date",
|
|
8532
|
-
input: "date2",
|
|
8533
|
-
options: {
|
|
8534
|
-
note: "Tanggal absensi."
|
|
8535
|
-
}
|
|
8536
|
-
}, {
|
|
8537
|
-
"is-disabled": unref(values).status == "approved",
|
|
8538
|
-
"onUpdate:modelValue": onHomeAtUpdate
|
|
8539
|
-
}), null, 16, ["model-value", "is-disabled"])) : createCommentVNode("v-if", true),
|
|
8540
|
-
createCommentVNode(" TIMEOUT "),
|
|
8541
|
-
unref(values).type == "timeout" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
8542
|
-
key: keyStartedAt.value,
|
|
7877
|
+
(openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
7878
|
+
key: key.value,
|
|
8543
7879
|
"model-value": unref(values).startedAt
|
|
8544
7880
|
}, {
|
|
8545
7881
|
handle: "startedAt",
|
|
@@ -8552,57 +7888,41 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8552
7888
|
}, {
|
|
8553
7889
|
"is-disabled": unref(values).status == "approved",
|
|
8554
7890
|
"onUpdate:modelValue": onStartedAtUpdate
|
|
8555
|
-
}), null, 16, ["model-value", "is-disabled"]))
|
|
8556
|
-
createCommentVNode(" COME TOO LATE "),
|
|
8557
|
-
unref(values).type == "comeLate" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
8558
|
-
key: keyComeAt.value,
|
|
8559
|
-
"model-value": unref(values).comeAt
|
|
8560
|
-
}, {
|
|
8561
|
-
handle: "comeAt",
|
|
8562
|
-
name: "Tanggal",
|
|
8563
|
-
type: "date",
|
|
8564
|
-
input: "date2",
|
|
8565
|
-
options: {
|
|
8566
|
-
note: "Tanggal absensi."
|
|
8567
|
-
}
|
|
8568
|
-
}, {
|
|
8569
|
-
"is-disabled": unref(values).status == "approved",
|
|
8570
|
-
"onUpdate:modelValue": onComeAtUpdate
|
|
8571
|
-
}), null, 16, ["model-value", "is-disabled"])) : createCommentVNode("v-if", true),
|
|
7891
|
+
}), null, 16, ["model-value", "is-disabled"])),
|
|
8572
7892
|
createVNode(unref(NeonField), mergeProps({
|
|
8573
7893
|
modelValue: unref(values).type,
|
|
8574
|
-
"onUpdate:modelValue": _cache[
|
|
7894
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
|
|
8575
7895
|
}, unref(fields).type, {
|
|
8576
7896
|
"is-disabled": unref(values).status == "approved"
|
|
8577
7897
|
}), null, 16, ["modelValue", "is-disabled"]),
|
|
8578
7898
|
createVNode(unref(OfficeRelation), {
|
|
8579
7899
|
modelValue: unref(values),
|
|
8580
|
-
"onUpdate:modelValue": _cache[
|
|
7900
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
|
|
8581
7901
|
field: unref(fields).decideStaff,
|
|
8582
7902
|
"is-disabled": unref(values).status == "approved"
|
|
8583
7903
|
}, null, 8, ["modelValue", "field", "is-disabled"]),
|
|
8584
7904
|
unref(isNew) || unref(isReady) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
8585
|
-
key:
|
|
7905
|
+
key: 0,
|
|
8586
7906
|
modelValue: unref(values).notes,
|
|
8587
|
-
"onUpdate:modelValue": _cache[
|
|
7907
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(values).notes = $event)
|
|
8588
7908
|
}, unref(fields).notes), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
|
|
8589
7909
|
unref(values).type ? (openBlock(), createBlock(unref(NeonDivider), {
|
|
8590
|
-
key:
|
|
7910
|
+
key: 1,
|
|
8591
7911
|
"is-dashed": "",
|
|
8592
7912
|
label: "Keterangan"
|
|
8593
7913
|
})) : createCommentVNode("v-if", true),
|
|
8594
7914
|
unref(values).type == "dayOff" || unref(values).type == "sick" || unref(values).type == "permission" || unref(values).type == "leave" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
8595
|
-
key:
|
|
7915
|
+
key: 2,
|
|
8596
7916
|
modelValue: unref(values).submittedAt,
|
|
8597
|
-
"onUpdate:modelValue": _cache[
|
|
7917
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).submittedAt = $event)
|
|
8598
7918
|
}, unref(fields).submittedAt, { "is-disabled": "" }), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
|
|
8599
7919
|
createCommentVNode(" EARLY GO HOME "),
|
|
8600
7920
|
unref(values).type == "homeEarly" ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
8601
7921
|
createVNode(unref(NeonField), mergeProps({
|
|
8602
|
-
modelValue: unref(values).
|
|
8603
|
-
"onUpdate:modelValue": _cache[
|
|
7922
|
+
modelValue: unref(values).startedAt,
|
|
7923
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).startedAt = $event)
|
|
8604
7924
|
}, {
|
|
8605
|
-
handle: "
|
|
7925
|
+
handle: "startedAt",
|
|
8606
7926
|
name: "Jam Pulang Kerja",
|
|
8607
7927
|
options: {
|
|
8608
7928
|
note: "Jam pulang kerja."
|
|
@@ -8610,8 +7930,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8610
7930
|
}), {
|
|
8611
7931
|
input: withCtx(() => [
|
|
8612
7932
|
createVNode(unref(NeonTime), {
|
|
8613
|
-
modelValue: unref(values).
|
|
8614
|
-
"onUpdate:modelValue": _cache[
|
|
7933
|
+
modelValue: unref(values).startedAt,
|
|
7934
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).startedAt = $event),
|
|
8615
7935
|
"is-loading": unref(isLoading),
|
|
8616
7936
|
class: "mt-2"
|
|
8617
7937
|
}, null, 8, ["modelValue", "is-loading"])
|
|
@@ -8620,10 +7940,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8620
7940
|
/* STABLE */
|
|
8621
7941
|
}, 16, ["modelValue"]),
|
|
8622
7942
|
createVNode(unref(NeonField), mergeProps({
|
|
8623
|
-
modelValue: unref(values).
|
|
8624
|
-
"onUpdate:modelValue": _cache[
|
|
7943
|
+
modelValue: unref(values).endedAt,
|
|
7944
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).endedAt = $event)
|
|
8625
7945
|
}, {
|
|
8626
|
-
handle: "
|
|
7946
|
+
handle: "endedAt",
|
|
8627
7947
|
name: "Jam Pulang Lebih Awal",
|
|
8628
7948
|
options: {
|
|
8629
7949
|
note: "Jam pulang lebih awal."
|
|
@@ -8631,15 +7951,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8631
7951
|
}), {
|
|
8632
7952
|
input: withCtx(() => [
|
|
8633
7953
|
createVNode(unref(NeonTime), {
|
|
8634
|
-
modelValue: unref(values).
|
|
8635
|
-
"onUpdate:modelValue": _cache[
|
|
7954
|
+
modelValue: unref(values).endedAt,
|
|
7955
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).endedAt = $event),
|
|
8636
7956
|
"is-loading": unref(isLoading),
|
|
8637
7957
|
class: "mt-2"
|
|
8638
7958
|
}, null, 8, ["modelValue", "is-loading"]),
|
|
8639
7959
|
createElementVNode(
|
|
8640
7960
|
"div",
|
|
8641
7961
|
_hoisted_5,
|
|
8642
|
-
toDisplayString(
|
|
7962
|
+
toDisplayString(reverseDuration.value),
|
|
8643
7963
|
1
|
|
8644
7964
|
/* TEXT */
|
|
8645
7965
|
)
|
|
@@ -8651,10 +7971,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8651
7971
|
createCommentVNode(" COME TOO LATE "),
|
|
8652
7972
|
unref(values).type == "comeLate" ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
8653
7973
|
createVNode(unref(NeonField), mergeProps({
|
|
8654
|
-
modelValue: unref(values).
|
|
8655
|
-
"onUpdate:modelValue": _cache[
|
|
7974
|
+
modelValue: unref(values).startedAt,
|
|
7975
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).startedAt = $event)
|
|
8656
7976
|
}, {
|
|
8657
|
-
handle: "
|
|
7977
|
+
handle: "startedAt",
|
|
8658
7978
|
name: "Jam Datang",
|
|
8659
7979
|
options: {
|
|
8660
7980
|
note: "Jam Datang kerja."
|
|
@@ -8662,8 +7982,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8662
7982
|
}), {
|
|
8663
7983
|
input: withCtx(() => [
|
|
8664
7984
|
createVNode(unref(NeonTime), {
|
|
8665
|
-
modelValue: unref(values).
|
|
8666
|
-
"onUpdate:modelValue": _cache[
|
|
7985
|
+
modelValue: unref(values).startedAt,
|
|
7986
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).startedAt = $event),
|
|
8667
7987
|
"is-loading": unref(isLoading),
|
|
8668
7988
|
class: "mt-2"
|
|
8669
7989
|
}, null, 8, ["modelValue", "is-loading"])
|
|
@@ -8672,10 +7992,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8672
7992
|
/* STABLE */
|
|
8673
7993
|
}, 16, ["modelValue"]),
|
|
8674
7994
|
createVNode(unref(NeonField), mergeProps({
|
|
8675
|
-
modelValue: unref(values).
|
|
8676
|
-
"onUpdate:modelValue": _cache[
|
|
7995
|
+
modelValue: unref(values).endedAt,
|
|
7996
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => unref(values).endedAt = $event)
|
|
8677
7997
|
}, {
|
|
8678
|
-
handle: "
|
|
7998
|
+
handle: "endedAt",
|
|
8679
7999
|
name: "Jam Datang Terlambat",
|
|
8680
8000
|
options: {
|
|
8681
8001
|
note: "Jam datang terlambat."
|
|
@@ -8683,15 +8003,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8683
8003
|
}), {
|
|
8684
8004
|
input: withCtx(() => [
|
|
8685
8005
|
createVNode(unref(NeonTime), {
|
|
8686
|
-
modelValue: unref(values).
|
|
8687
|
-
"onUpdate:modelValue": _cache[
|
|
8006
|
+
modelValue: unref(values).endedAt,
|
|
8007
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(values).endedAt = $event),
|
|
8688
8008
|
"is-loading": unref(isLoading),
|
|
8689
8009
|
class: "mt-2"
|
|
8690
8010
|
}, null, 8, ["modelValue", "is-loading"]),
|
|
8691
8011
|
createElementVNode(
|
|
8692
8012
|
"div",
|
|
8693
8013
|
_hoisted_7,
|
|
8694
|
-
toDisplayString(
|
|
8014
|
+
toDisplayString(duration.value),
|
|
8695
8015
|
1
|
|
8696
8016
|
/* TEXT */
|
|
8697
8017
|
)
|
|
@@ -8704,7 +8024,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8704
8024
|
unref(values).type == "timeout" ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
8705
8025
|
createVNode(unref(NeonField), mergeProps({
|
|
8706
8026
|
modelValue: unref(values).startedAt,
|
|
8707
|
-
"onUpdate:modelValue": _cache[
|
|
8027
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => unref(values).startedAt = $event)
|
|
8708
8028
|
}, {
|
|
8709
8029
|
handle: "startedAt",
|
|
8710
8030
|
name: "Mulai",
|
|
@@ -8715,7 +8035,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8715
8035
|
input: withCtx(() => [
|
|
8716
8036
|
createVNode(unref(NeonTime), {
|
|
8717
8037
|
modelValue: unref(values).startedAt,
|
|
8718
|
-
"onUpdate:modelValue": _cache[
|
|
8038
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => unref(values).startedAt = $event),
|
|
8719
8039
|
"is-loading": unref(isLoading),
|
|
8720
8040
|
class: "mt-2"
|
|
8721
8041
|
}, null, 8, ["modelValue", "is-loading"])
|
|
@@ -8725,7 +8045,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8725
8045
|
}, 16, ["modelValue"]),
|
|
8726
8046
|
createVNode(unref(NeonField), mergeProps({
|
|
8727
8047
|
modelValue: unref(values).endedAt,
|
|
8728
|
-
"onUpdate:modelValue": _cache[
|
|
8048
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => unref(values).endedAt = $event)
|
|
8729
8049
|
}, {
|
|
8730
8050
|
handle: "endedAt",
|
|
8731
8051
|
name: "Selesai",
|
|
@@ -8736,14 +8056,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8736
8056
|
input: withCtx(() => [
|
|
8737
8057
|
createVNode(unref(NeonTime), {
|
|
8738
8058
|
modelValue: unref(values).endedAt,
|
|
8739
|
-
"onUpdate:modelValue": _cache[
|
|
8059
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => unref(values).endedAt = $event),
|
|
8740
8060
|
"is-loading": unref(isLoading),
|
|
8741
8061
|
class: "mt-2"
|
|
8742
8062
|
}, null, 8, ["modelValue", "is-loading"]),
|
|
8743
8063
|
createElementVNode(
|
|
8744
8064
|
"div",
|
|
8745
8065
|
_hoisted_9,
|
|
8746
|
-
toDisplayString(
|
|
8066
|
+
toDisplayString(duration.value),
|
|
8747
8067
|
1
|
|
8748
8068
|
/* TEXT */
|
|
8749
8069
|
)
|
|
@@ -8771,8 +8091,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8771
8091
|
};
|
|
8772
8092
|
}
|
|
8773
8093
|
});
|
|
8774
|
-
const
|
|
8775
|
-
const AttendanceManager = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
8094
|
+
const AttendanceManager_vue_vue_type_style_index_0_scoped_643cca03_lang = "";
|
|
8095
|
+
const AttendanceManager = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-643cca03"]]);
|
|
8776
8096
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8777
8097
|
__proto__: null,
|
|
8778
8098
|
AttendanceCollection: _sfc_main$3,
|