@neutron.co.id/operasional-interfaces 1.9.5 → 1.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.cjs +17 -18
- package/build/index.mjs +17 -18
- package/build/nuxt.json +1 -1
- package/build/style.css +1 -1
- package/package.json +2 -2
package/build/index.cjs
CHANGED
|
@@ -26,13 +26,13 @@ const identitasInterfaces = require("@neon.id/identitas-interfaces");
|
|
|
26
26
|
const vueRouter = require("vue-router");
|
|
27
27
|
const Scanner = require("qr-scanner");
|
|
28
28
|
const mitt = require("mitt");
|
|
29
|
+
const promise = require("@neon.id/utils/promise");
|
|
29
30
|
const display = require("@neon.id/display");
|
|
30
31
|
const identitasModels = require("@neon.id/identitas-models");
|
|
31
32
|
const model = require("@neon.id/model");
|
|
32
33
|
const relation = require("@neon.id/relation");
|
|
33
34
|
const code = require("@neon.id/utils/code");
|
|
34
35
|
const catatInterfaces = require("@neon.id/catat-interfaces");
|
|
35
|
-
const promise = require("@neon.id/utils/promise");
|
|
36
36
|
const AttendanceModel = personaliaModels.models.AttendanceModel;
|
|
37
37
|
const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
38
38
|
...{
|
|
@@ -1982,25 +1982,24 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
1982
1982
|
const route = vueRouter.useRoute();
|
|
1983
1983
|
const permit = context.usePermit();
|
|
1984
1984
|
const { staff } = useOperasional();
|
|
1985
|
-
|
|
1985
|
+
vue.computed(() => {
|
|
1986
1986
|
var _a;
|
|
1987
1987
|
return (_a = route.name) == null ? void 0 : _a.includes("rapor");
|
|
1988
1988
|
});
|
|
1989
|
-
vue.
|
|
1989
|
+
vue.watch(isNew, setDefaultValues, { immediate: true });
|
|
1990
|
+
async function setDefaultValues() {
|
|
1990
1991
|
var _a, _b, _c;
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
}
|
|
2003
|
-
});
|
|
1992
|
+
if (!isNew.value)
|
|
1993
|
+
return;
|
|
1994
|
+
await promise.PromiseUtil.wait(500);
|
|
1995
|
+
const defaultValues = {
|
|
1996
|
+
staffId: (_a = staff.value) == null ? void 0 : _a.id,
|
|
1997
|
+
staff: { id: (_b = staff.value) == null ? void 0 : _b.id, flag: (_c = staff.value) == null ? void 0 : _c.flag },
|
|
1998
|
+
checkInAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1999
|
+
type: "checkpoint"
|
|
2000
|
+
};
|
|
2001
|
+
values.value = defaultValues;
|
|
2002
|
+
}
|
|
2004
2003
|
return (_ctx, _cache) => {
|
|
2005
2004
|
return vue.openBlock(), vue.createBlock(vue.unref(context.NeonSingle), { class: "neu-checkIn-single" }, {
|
|
2006
2005
|
default: vue.withCtx(() => [
|
|
@@ -2070,8 +2069,8 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
2070
2069
|
};
|
|
2071
2070
|
}
|
|
2072
2071
|
});
|
|
2073
|
-
const
|
|
2074
|
-
const CheckInExternal = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-
|
|
2072
|
+
const CheckInExternal_vue_vue_type_style_index_0_scoped_aeda12b0_lang = "";
|
|
2073
|
+
const CheckInExternal = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-aeda12b0"]]);
|
|
2075
2074
|
const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-d6ac1ebc"), n = n(), vue.popScopeId(), n);
|
|
2076
2075
|
const _hoisted_1$g = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("h4", { align: "center" }, "Aktifkan kamera untuk scan QR Code", -1));
|
|
2077
2076
|
const _hoisted_2$b = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("p", { align: "center" }, [
|
package/build/index.mjs
CHANGED
|
@@ -24,13 +24,13 @@ import { useAuthStore, IdentitasConnect, IdentitasAssistRegistration, IdentitasD
|
|
|
24
24
|
import { useRouter, useRoute } from "vue-router";
|
|
25
25
|
import Scanner from "qr-scanner";
|
|
26
26
|
import mitt from "mitt";
|
|
27
|
+
import { PromiseUtil } from "@neon.id/utils/promise";
|
|
27
28
|
import { RowUtil } from "@neon.id/display";
|
|
28
29
|
import { models as models$2 } from "@neon.id/identitas-models";
|
|
29
30
|
import { Field } from "@neon.id/model";
|
|
30
31
|
import { withRelation, NeonRelationSheet } from "@neon.id/relation";
|
|
31
32
|
import { CodeUtil } from "@neon.id/utils/code";
|
|
32
33
|
import { CatatPaperPad, CatatSketchPad } from "@neon.id/catat-interfaces";
|
|
33
|
-
import { PromiseUtil } from "@neon.id/utils/promise";
|
|
34
34
|
const AttendanceModel = models.AttendanceModel;
|
|
35
35
|
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
36
36
|
...{
|
|
@@ -1980,25 +1980,24 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
1980
1980
|
const route = useRoute();
|
|
1981
1981
|
const permit = usePermit();
|
|
1982
1982
|
const { staff } = useOperasional();
|
|
1983
|
-
|
|
1983
|
+
computed(() => {
|
|
1984
1984
|
var _a;
|
|
1985
1985
|
return (_a = route.name) == null ? void 0 : _a.includes("rapor");
|
|
1986
1986
|
});
|
|
1987
|
-
|
|
1987
|
+
watch(isNew, setDefaultValues, { immediate: true });
|
|
1988
|
+
async function setDefaultValues() {
|
|
1988
1989
|
var _a, _b, _c;
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
}
|
|
2001
|
-
});
|
|
1990
|
+
if (!isNew.value)
|
|
1991
|
+
return;
|
|
1992
|
+
await PromiseUtil.wait(500);
|
|
1993
|
+
const defaultValues = {
|
|
1994
|
+
staffId: (_a = staff.value) == null ? void 0 : _a.id,
|
|
1995
|
+
staff: { id: (_b = staff.value) == null ? void 0 : _b.id, flag: (_c = staff.value) == null ? void 0 : _c.flag },
|
|
1996
|
+
checkInAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1997
|
+
type: "checkpoint"
|
|
1998
|
+
};
|
|
1999
|
+
values.value = defaultValues;
|
|
2000
|
+
}
|
|
2002
2001
|
return (_ctx, _cache) => {
|
|
2003
2002
|
return openBlock(), createBlock(unref(NeonSingle), { class: "neu-checkIn-single" }, {
|
|
2004
2003
|
default: withCtx(() => [
|
|
@@ -2068,8 +2067,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
2068
2067
|
};
|
|
2069
2068
|
}
|
|
2070
2069
|
});
|
|
2071
|
-
const
|
|
2072
|
-
const CheckInExternal = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-
|
|
2070
|
+
const CheckInExternal_vue_vue_type_style_index_0_scoped_aeda12b0_lang = "";
|
|
2071
|
+
const CheckInExternal = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-aeda12b0"]]);
|
|
2073
2072
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-d6ac1ebc"), n = n(), popScopeId(), n);
|
|
2074
2073
|
const _hoisted_1$g = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("h4", { align: "center" }, "Aktifkan kamera untuk scan QR Code", -1));
|
|
2075
2074
|
const _hoisted_2$b = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("p", { align: "center" }, [
|
package/build/nuxt.json
CHANGED
package/build/style.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-interfaces",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.6",
|
|
4
4
|
"description": "Interface library of Neutron Operasional.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"publishConfig": {
|
|
144
144
|
"access": "public"
|
|
145
145
|
},
|
|
146
|
-
"build":
|
|
146
|
+
"build": 127
|
|
147
147
|
}
|