@neutron.co.id/operasional-interfaces 1.9.0 → 1.9.5
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 +35 -45
- package/build/index.mjs +35 -45
- package/build/nuxt.json +1 -1
- package/build/runtime/utils.mjs +1 -1
- package/build/style.css +4 -4
- package/package.json +6 -6
package/build/index.cjs
CHANGED
|
@@ -32,6 +32,7 @@ const model = require("@neon.id/model");
|
|
|
32
32
|
const relation = require("@neon.id/relation");
|
|
33
33
|
const code = require("@neon.id/utils/code");
|
|
34
34
|
const catatInterfaces = require("@neon.id/catat-interfaces");
|
|
35
|
+
const promise = require("@neon.id/utils/promise");
|
|
35
36
|
const AttendanceModel = personaliaModels.models.AttendanceModel;
|
|
36
37
|
const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
37
38
|
...{
|
|
@@ -3561,26 +3562,20 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
3561
3562
|
const sekarang = DateUtil.day(/* @__PURE__ */ new Date());
|
|
3562
3563
|
const besok = sekarang;
|
|
3563
3564
|
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
3564
|
-
vue.watch(
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
values.value.endedAt = besok.add(90, "m").toISOString();
|
|
3579
|
-
},
|
|
3580
|
-
{
|
|
3581
|
-
immediate: true
|
|
3582
|
-
}
|
|
3583
|
-
);
|
|
3565
|
+
vue.watch(isNew, setDefaultValues, { immediate: true });
|
|
3566
|
+
async function setDefaultValues() {
|
|
3567
|
+
var _a2;
|
|
3568
|
+
if (!isNew.value)
|
|
3569
|
+
return;
|
|
3570
|
+
await promise.PromiseUtil.wait(500);
|
|
3571
|
+
const defaultValues = {
|
|
3572
|
+
staffIds: [staffId],
|
|
3573
|
+
staffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
3574
|
+
startedAt: besok.second(0).millisecond(0).toISOString(),
|
|
3575
|
+
endedAt: besok.add(90, "m").toISOString()
|
|
3576
|
+
};
|
|
3577
|
+
values.value = defaultValues;
|
|
3578
|
+
}
|
|
3584
3579
|
const submissionOptions = vue.computed(() => {
|
|
3585
3580
|
return {
|
|
3586
3581
|
filter: [
|
|
@@ -3738,8 +3733,8 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
3738
3733
|
};
|
|
3739
3734
|
}
|
|
3740
3735
|
});
|
|
3741
|
-
const
|
|
3742
|
-
const ProgressSingle = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-
|
|
3736
|
+
const ProgressSingle_vue_vue_type_style_index_0_scoped_1a87343f_lang = "";
|
|
3737
|
+
const ProgressSingle = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-1a87343f"]]);
|
|
3743
3738
|
const _hoisted_1$7 = { class: "grid gap-2 sm:grid-cols-2" };
|
|
3744
3739
|
const _hoisted_2$7 = { class: "text-right text-fg-subdued text-sm" };
|
|
3745
3740
|
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -4256,28 +4251,23 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
4256
4251
|
saveOne,
|
|
4257
4252
|
discardChanges
|
|
4258
4253
|
} = context.useSingle();
|
|
4259
|
-
const sekarang = DateUtil.day(/* @__PURE__ */ new Date());
|
|
4260
|
-
const besok = sekarang;
|
|
4261
4254
|
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
4262
|
-
vue.watch(
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
immediate: true
|
|
4279
|
-
}
|
|
4280
|
-
);
|
|
4255
|
+
vue.watch(isNew, setDefaultValues, { immediate: true });
|
|
4256
|
+
async function setDefaultValues() {
|
|
4257
|
+
var _a2, _b;
|
|
4258
|
+
if (!isNew.value)
|
|
4259
|
+
return;
|
|
4260
|
+
await promise.PromiseUtil.wait(500);
|
|
4261
|
+
const defaultValues = {
|
|
4262
|
+
staffIds: [staffId],
|
|
4263
|
+
staffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
4264
|
+
accessStaffIds: [staffId],
|
|
4265
|
+
accessStaffs: [{ id: staffId, flag: (_b = staff.value) == null ? void 0 : _b.flag }],
|
|
4266
|
+
isNotes: true,
|
|
4267
|
+
virtualIsNotes: "active"
|
|
4268
|
+
};
|
|
4269
|
+
values.value = defaultValues;
|
|
4270
|
+
}
|
|
4281
4271
|
return (_ctx, _cache) => {
|
|
4282
4272
|
return vue.openBlock(), vue.createBlock(vue.unref(context.NeonSingle), { class: "neu-progress-single" }, {
|
|
4283
4273
|
default: vue.withCtx(() => [
|
|
@@ -4358,8 +4348,8 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
4358
4348
|
};
|
|
4359
4349
|
}
|
|
4360
4350
|
});
|
|
4361
|
-
const
|
|
4362
|
-
const ProgressNote = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-
|
|
4351
|
+
const ProgressNote_vue_vue_type_style_index_0_scoped_046e6306_lang = "";
|
|
4352
|
+
const ProgressNote = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-046e6306"]]);
|
|
4363
4353
|
const ProgressAccessModel = personaliaModels.models.ProgressAccessModel;
|
|
4364
4354
|
const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
4365
4355
|
...{
|
package/build/index.mjs
CHANGED
|
@@ -30,6 +30,7 @@ import { Field } from "@neon.id/model";
|
|
|
30
30
|
import { withRelation, NeonRelationSheet } from "@neon.id/relation";
|
|
31
31
|
import { CodeUtil } from "@neon.id/utils/code";
|
|
32
32
|
import { CatatPaperPad, CatatSketchPad } from "@neon.id/catat-interfaces";
|
|
33
|
+
import { PromiseUtil } from "@neon.id/utils/promise";
|
|
33
34
|
const AttendanceModel = models.AttendanceModel;
|
|
34
35
|
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
35
36
|
...{
|
|
@@ -3559,26 +3560,20 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
3559
3560
|
const sekarang = DateUtil.day(/* @__PURE__ */ new Date());
|
|
3560
3561
|
const besok = sekarang;
|
|
3561
3562
|
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
3562
|
-
watch(
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
values.value.endedAt = besok.add(90, "m").toISOString();
|
|
3577
|
-
},
|
|
3578
|
-
{
|
|
3579
|
-
immediate: true
|
|
3580
|
-
}
|
|
3581
|
-
);
|
|
3563
|
+
watch(isNew, setDefaultValues, { immediate: true });
|
|
3564
|
+
async function setDefaultValues() {
|
|
3565
|
+
var _a2;
|
|
3566
|
+
if (!isNew.value)
|
|
3567
|
+
return;
|
|
3568
|
+
await PromiseUtil.wait(500);
|
|
3569
|
+
const defaultValues = {
|
|
3570
|
+
staffIds: [staffId],
|
|
3571
|
+
staffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
3572
|
+
startedAt: besok.second(0).millisecond(0).toISOString(),
|
|
3573
|
+
endedAt: besok.add(90, "m").toISOString()
|
|
3574
|
+
};
|
|
3575
|
+
values.value = defaultValues;
|
|
3576
|
+
}
|
|
3582
3577
|
const submissionOptions = computed(() => {
|
|
3583
3578
|
return {
|
|
3584
3579
|
filter: [
|
|
@@ -3736,8 +3731,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
3736
3731
|
};
|
|
3737
3732
|
}
|
|
3738
3733
|
});
|
|
3739
|
-
const
|
|
3740
|
-
const ProgressSingle = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-
|
|
3734
|
+
const ProgressSingle_vue_vue_type_style_index_0_scoped_1a87343f_lang = "";
|
|
3735
|
+
const ProgressSingle = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-1a87343f"]]);
|
|
3741
3736
|
const _hoisted_1$7 = { class: "grid gap-2 sm:grid-cols-2" };
|
|
3742
3737
|
const _hoisted_2$7 = { class: "text-right text-fg-subdued text-sm" };
|
|
3743
3738
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
@@ -4254,28 +4249,23 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
4254
4249
|
saveOne,
|
|
4255
4250
|
discardChanges
|
|
4256
4251
|
} = useSingle();
|
|
4257
|
-
const sekarang = DateUtil.day(/* @__PURE__ */ new Date());
|
|
4258
|
-
const besok = sekarang;
|
|
4259
4252
|
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
4260
|
-
watch(
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
immediate: true
|
|
4277
|
-
}
|
|
4278
|
-
);
|
|
4253
|
+
watch(isNew, setDefaultValues, { immediate: true });
|
|
4254
|
+
async function setDefaultValues() {
|
|
4255
|
+
var _a2, _b;
|
|
4256
|
+
if (!isNew.value)
|
|
4257
|
+
return;
|
|
4258
|
+
await PromiseUtil.wait(500);
|
|
4259
|
+
const defaultValues = {
|
|
4260
|
+
staffIds: [staffId],
|
|
4261
|
+
staffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
4262
|
+
accessStaffIds: [staffId],
|
|
4263
|
+
accessStaffs: [{ id: staffId, flag: (_b = staff.value) == null ? void 0 : _b.flag }],
|
|
4264
|
+
isNotes: true,
|
|
4265
|
+
virtualIsNotes: "active"
|
|
4266
|
+
};
|
|
4267
|
+
values.value = defaultValues;
|
|
4268
|
+
}
|
|
4279
4269
|
return (_ctx, _cache) => {
|
|
4280
4270
|
return openBlock(), createBlock(unref(NeonSingle), { class: "neu-progress-single" }, {
|
|
4281
4271
|
default: withCtx(() => [
|
|
@@ -4356,8 +4346,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
4356
4346
|
};
|
|
4357
4347
|
}
|
|
4358
4348
|
});
|
|
4359
|
-
const
|
|
4360
|
-
const ProgressNote = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-
|
|
4349
|
+
const ProgressNote_vue_vue_type_style_index_0_scoped_046e6306_lang = "";
|
|
4350
|
+
const ProgressNote = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-046e6306"]]);
|
|
4361
4351
|
const ProgressAccessModel = models.ProgressAccessModel;
|
|
4362
4352
|
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
4363
4353
|
...{
|
package/build/nuxt.json
CHANGED
package/build/runtime/utils.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRuntimeConfig } from "#app";
|
|
2
2
|
export function log(message, ...args) {
|
|
3
3
|
const config = useRuntimeConfig().public;
|
|
4
|
-
if (!config["neu:operasional:interfaces"]
|
|
4
|
+
if (!config["neu:operasional:interfaces"]?.isProd) {
|
|
5
5
|
console.log(message, ...args);
|
|
6
6
|
}
|
|
7
7
|
}
|
package/build/style.css
CHANGED
|
@@ -247,11 +247,11 @@
|
|
|
247
247
|
--neon-calendar-min-height: auto;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
.neu-progress-single[data-v-
|
|
250
|
+
.neu-progress-single[data-v-1a87343f] {
|
|
251
251
|
|
|
252
252
|
position: relative
|
|
253
253
|
}
|
|
254
|
-
.neu-progress-single .segments[data-v-
|
|
254
|
+
.neu-progress-single .segments[data-v-1a87343f] {
|
|
255
255
|
|
|
256
256
|
display: flex;
|
|
257
257
|
|
|
@@ -276,11 +276,11 @@
|
|
|
276
276
|
display: block
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
.neu-progress-single[data-v-
|
|
279
|
+
.neu-progress-single[data-v-046e6306] {
|
|
280
280
|
|
|
281
281
|
position: relative
|
|
282
282
|
}
|
|
283
|
-
.neu-progress-single .segments[data-v-
|
|
283
|
+
.neu-progress-single .segments[data-v-046e6306] {
|
|
284
284
|
|
|
285
285
|
display: flex;
|
|
286
286
|
|
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.5",
|
|
4
4
|
"description": "Interface library of Neutron Operasional.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"build:package": "tsx scripts/build.ts",
|
|
44
44
|
"build:story": "yarn warm && storybook build",
|
|
45
45
|
"build:types": "vue-tsc --project tsconfig.package.json && resolve-tspaths --project tsconfig.package.json",
|
|
46
|
-
"cargo": "
|
|
46
|
+
"cargo": "cargo",
|
|
47
47
|
"clean": "rm -rf dist build",
|
|
48
48
|
"deploy:pages": "yarn dlx wrangler pages project create neu-operasional-interfaces --production-branch=main || true && yarn build:story && yarn dlx wrangler pages publish storybook-static --project-name=neu-operasional-interfaces --branch=main --commit-dirty=true",
|
|
49
49
|
"deploy:story": "yarn warm && chromatic --project-token=26bead87a74d --build-script-name=build:story --exit-once-uploaded --auto-accept-changes --exit-zero-on-changes",
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
"@neon.id/interfaces": "^1.10.0",
|
|
65
65
|
"@neon.id/office": "^1.9.0",
|
|
66
66
|
"@neon.id/utils": "^1.11.0",
|
|
67
|
-
"@neutron.co.id/personalia-models": "^1.9.
|
|
67
|
+
"@neutron.co.id/personalia-models": "^1.9.3",
|
|
68
68
|
"@nuxt/kit": "^3.6.5",
|
|
69
69
|
"qr-scanner": "^1.4.2",
|
|
70
70
|
"vue": "^3.3.4"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@faker-js/faker": "8.0.2",
|
|
74
|
-
"@neon.id/cli": "0.
|
|
74
|
+
"@neon.id/cli": "0.9.0",
|
|
75
75
|
"@neon.id/module-builder": "0.19.0",
|
|
76
76
|
"@neon.id/styles": "1.2.0",
|
|
77
77
|
"@neon.id/types": "1.52.0",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"@neon.id/interfaces": "^1.10.0",
|
|
136
136
|
"@neon.id/office": "^1.9.0",
|
|
137
137
|
"@neon.id/utils": "^1.11.0",
|
|
138
|
-
"@neutron.co.id/personalia-models": "^1.9.
|
|
138
|
+
"@neutron.co.id/personalia-models": "^1.9.3",
|
|
139
139
|
"@nuxt/kit": "^3.6.5",
|
|
140
140
|
"qr-scanner": "^1.4.2",
|
|
141
141
|
"vue": "^3.3.4"
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"publishConfig": {
|
|
144
144
|
"access": "public"
|
|
145
145
|
},
|
|
146
|
-
"build":
|
|
146
|
+
"build": 126
|
|
147
147
|
}
|