@neutron.co.id/operasional-interfaces 1.0.1-beta.2 → 1.0.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.cjs +263 -12
- package/build/index.mjs +264 -13
- package/build/types/components/index.d.ts +1 -0
- package/build/types/components/staff/staff.types.d.ts +1 -1
- package/build/types/components/task/index.d.ts +2 -0
- package/build/types/components/task/sheets/TaskCollection.vue.d.ts +2 -0
- package/build/types/components/task/sheets/TaskSingle.vue.d.ts +2 -0
- package/build/types/components/task/sheets/index.d.ts +2 -0
- package/build/types/components/task/tugas.types.d.ts +2 -0
- package/build/types/gql/graphql.d.ts +357 -0
- package/package.json +55 -54
package/build/index.cjs
CHANGED
|
@@ -8,9 +8,9 @@ const context = require("@neon.id/context");
|
|
|
8
8
|
const office = require("@neon.id/office");
|
|
9
9
|
const form = require("@neon.id/form");
|
|
10
10
|
const _hoisted_1$1 = { class: "xxx-button" };
|
|
11
|
-
const __default__$
|
|
12
|
-
const _sfc_main$
|
|
13
|
-
...__default__$
|
|
11
|
+
const __default__$2 = vue.defineComponent({ name: "XxxButton" });
|
|
12
|
+
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
13
|
+
...__default__$2,
|
|
14
14
|
props: {
|
|
15
15
|
color: {
|
|
16
16
|
type: String,
|
|
@@ -26,11 +26,11 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
const StaffModel = personaliaModels.models.StaffModel;
|
|
29
|
-
const __default__ = vue.defineComponent({
|
|
29
|
+
const __default__$1 = vue.defineComponent({
|
|
30
30
|
name: "StaffCollection"
|
|
31
31
|
});
|
|
32
|
-
const _sfc_main$
|
|
33
|
-
...__default__,
|
|
32
|
+
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
33
|
+
...__default__$1,
|
|
34
34
|
setup(__props) {
|
|
35
35
|
context.useCollection();
|
|
36
36
|
return (_ctx, _cache) => {
|
|
@@ -46,7 +46,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
46
46
|
});
|
|
47
47
|
const _hoisted_1 = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
|
|
48
48
|
const _hoisted_2 = { class: "grid gap-4 sm:grid-cols-2" };
|
|
49
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
49
|
+
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
50
50
|
__name: "StaffSingle",
|
|
51
51
|
setup(__props) {
|
|
52
52
|
const {
|
|
@@ -199,13 +199,261 @@ const _export_sfc = (sfc, props) => {
|
|
|
199
199
|
}
|
|
200
200
|
return target;
|
|
201
201
|
};
|
|
202
|
-
const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dbeb1998"]]);
|
|
202
|
+
const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-dbeb1998"]]);
|
|
203
|
+
const TaskModel = personaliaModels.models.TaskModel;
|
|
204
|
+
const __default__ = vue.defineComponent({ name: "TaskCollection" });
|
|
205
|
+
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
206
|
+
...__default__,
|
|
207
|
+
setup(__props) {
|
|
208
|
+
context.useCollection();
|
|
209
|
+
return (_ctx, _cache) => {
|
|
210
|
+
return vue.openBlock(), vue.createBlock(vue.unref(context.NeonCollection), { class: "neu-task-collection" }, {
|
|
211
|
+
default: vue.withCtx(() => [
|
|
212
|
+
vue.createVNode(vue.unref(office.OfficeCollectionTable))
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
/* STABLE */
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
221
|
+
__name: "TaskSingle",
|
|
222
|
+
setup(__props) {
|
|
223
|
+
const {
|
|
224
|
+
fields,
|
|
225
|
+
id,
|
|
226
|
+
initialValues,
|
|
227
|
+
values,
|
|
228
|
+
isNew,
|
|
229
|
+
isLoading,
|
|
230
|
+
isChanged,
|
|
231
|
+
isReady,
|
|
232
|
+
isMain,
|
|
233
|
+
saveOne,
|
|
234
|
+
discardChanges
|
|
235
|
+
} = context.useSingle();
|
|
236
|
+
function onChangeDateUpdate(date) {
|
|
237
|
+
values.value.estimatedStartDate = date == null ? void 0 : date.start.toISOString();
|
|
238
|
+
values.value.estimatedEndDate = date == null ? void 0 : date.end.toISOString();
|
|
239
|
+
}
|
|
240
|
+
return (_ctx, _cache) => {
|
|
241
|
+
return vue.openBlock(), vue.createBlock(vue.unref(context.NeonSingle), { class: "neu-task-single" }, {
|
|
242
|
+
default: vue.withCtx(() => [
|
|
243
|
+
vue.createVNode(vue.unref(office.OfficeTabs), { "use-url": vue.unref(isMain) }, {
|
|
244
|
+
default: vue.withCtx(() => [
|
|
245
|
+
vue.createVNode(vue.unref(office.OfficeTab), {
|
|
246
|
+
handle: "info",
|
|
247
|
+
icon: "circle-info",
|
|
248
|
+
title: "Info"
|
|
249
|
+
}, {
|
|
250
|
+
default: vue.withCtx(() => [
|
|
251
|
+
vue.createVNode(vue.unref(form.NeonForm), {
|
|
252
|
+
handle: "info",
|
|
253
|
+
"initial-values": vue.unref(initialValues),
|
|
254
|
+
"is-loading": vue.unref(isLoading),
|
|
255
|
+
"is-changed": vue.unref(isChanged),
|
|
256
|
+
"use-unsaved": "",
|
|
257
|
+
onCancel: vue.unref(discardChanges),
|
|
258
|
+
onSubmit: vue.unref(saveOne)
|
|
259
|
+
}, {
|
|
260
|
+
default: vue.withCtx(() => [
|
|
261
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-4" }, {
|
|
262
|
+
default: vue.withCtx(() => [
|
|
263
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
264
|
+
modelValue: vue.unref(values).taskName,
|
|
265
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(values).taskName = $event)
|
|
266
|
+
}, vue.unref(fields).taskName), null, 16, ["modelValue"])
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
/* STABLE */
|
|
270
|
+
}),
|
|
271
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
|
|
272
|
+
default: vue.withCtx(() => [
|
|
273
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
274
|
+
modelValue: vue.unref(values).internalServiceDescription,
|
|
275
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.unref(values).internalServiceDescription = $event)
|
|
276
|
+
}, vue.unref(fields).internalServiceDescription), null, 16, ["modelValue"])
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
/* STABLE */
|
|
280
|
+
}),
|
|
281
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
|
|
282
|
+
default: vue.withCtx(() => [
|
|
283
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
284
|
+
modelValue: vue.unref(values).externalServiceDescription,
|
|
285
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(values).externalServiceDescription = $event)
|
|
286
|
+
}, vue.unref(fields).externalServiceDescription), null, 16, ["modelValue"])
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
/* STABLE */
|
|
290
|
+
}),
|
|
291
|
+
vue.createVNode(vue.unref(office.OfficeRelation), {
|
|
292
|
+
modelValue: vue.unref(values),
|
|
293
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(values) ? values.value = $event : null),
|
|
294
|
+
field: vue.unref(fields).branch
|
|
295
|
+
}, null, 8, ["modelValue", "field"]),
|
|
296
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
|
|
297
|
+
default: vue.withCtx(() => [
|
|
298
|
+
vue.createVNode(vue.unref(office.OfficeRelation), {
|
|
299
|
+
modelValue: vue.unref(values),
|
|
300
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(values) ? values.value = $event : null),
|
|
301
|
+
field: vue.unref(fields).giveAssignment
|
|
302
|
+
}, null, 8, ["modelValue", "field"]),
|
|
303
|
+
vue.createVNode(vue.unref(office.OfficeRelation), {
|
|
304
|
+
modelValue: vue.unref(values),
|
|
305
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.isRef(values) ? values.value = $event : null),
|
|
306
|
+
field: vue.unref(fields).supervisingAssignment
|
|
307
|
+
}, null, 8, ["modelValue", "field"])
|
|
308
|
+
]),
|
|
309
|
+
_: 1
|
|
310
|
+
/* STABLE */
|
|
311
|
+
}),
|
|
312
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-3 sm:grid-cols-2" }, {
|
|
313
|
+
default: vue.withCtx(() => [
|
|
314
|
+
vue.createVNode(vue.unref(office.OfficeRelation), {
|
|
315
|
+
modelValue: vue.unref(values),
|
|
316
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.isRef(values) ? values.value = $event : null),
|
|
317
|
+
field: vue.unref(fields).doingAssignment
|
|
318
|
+
}, null, 8, ["modelValue", "field"]),
|
|
319
|
+
vue.createVNode(vue.unref(office.OfficeRelation), {
|
|
320
|
+
modelValue: vue.unref(values),
|
|
321
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.isRef(values) ? values.value = $event : null),
|
|
322
|
+
field: vue.unref(fields).helpAssignment
|
|
323
|
+
}, null, 8, ["modelValue", "field"])
|
|
324
|
+
]),
|
|
325
|
+
_: 1
|
|
326
|
+
/* STABLE */
|
|
327
|
+
}),
|
|
328
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
|
|
329
|
+
default: vue.withCtx(() => [
|
|
330
|
+
vue.createCommentVNode(' <NeonInputDateRange\n :model-value="{\n start: new Date(values.estimatedStartDate || Date.now()),\n end: new Date(values.estimatedEndDate || Date.now()),\n }"\n min-date="values.estimatedStartDate"\n max-date="values.estimatedEndDate"\n locale="id"\n title="Estimasi"\n @update:model-value="onChangeDateUpdate"\n /> '),
|
|
331
|
+
vue.createVNode(vue.unref(form.NeonField), {
|
|
332
|
+
"model-value": {
|
|
333
|
+
start: new Date(vue.unref(values).estimatedStartDate || Date.now()),
|
|
334
|
+
end: new Date(vue.unref(values).estimatedEndDate || Date.now())
|
|
335
|
+
},
|
|
336
|
+
name: "Est. Mulai - Selesai",
|
|
337
|
+
note: "Tanggal tugas dimulai dan selesai",
|
|
338
|
+
input: "date-range",
|
|
339
|
+
type: "date-range",
|
|
340
|
+
"is-alone": "",
|
|
341
|
+
"onUpdate:modelValue": onChangeDateUpdate
|
|
342
|
+
}, null, 8, ["model-value"])
|
|
343
|
+
]),
|
|
344
|
+
_: 1
|
|
345
|
+
/* STABLE */
|
|
346
|
+
}),
|
|
347
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
|
|
348
|
+
default: vue.withCtx(() => [
|
|
349
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
350
|
+
modelValue: vue.unref(values).estimatedHourDoingAssignment,
|
|
351
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.unref(values).estimatedHourDoingAssignment = $event)
|
|
352
|
+
}, vue.unref(fields).estimatedHourDoingAssignment), null, 16, ["modelValue"]),
|
|
353
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
354
|
+
modelValue: vue.unref(values).estimatedHourCommunicationAssignment,
|
|
355
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.unref(values).estimatedHourCommunicationAssignment = $event)
|
|
356
|
+
}, vue.unref(fields).estimatedHourCommunicationAssignment), null, 16, ["modelValue"])
|
|
357
|
+
]),
|
|
358
|
+
_: 1
|
|
359
|
+
/* STABLE */
|
|
360
|
+
}),
|
|
361
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
|
|
362
|
+
default: vue.withCtx(() => [
|
|
363
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
364
|
+
modelValue: vue.unref(values).estimatedHourCognitiveAssignment,
|
|
365
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => vue.unref(values).estimatedHourCognitiveAssignment = $event)
|
|
366
|
+
}, vue.unref(fields).estimatedHourCognitiveAssignment), null, 16, ["modelValue"]),
|
|
367
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
368
|
+
modelValue: vue.unref(values).estimatedHourCreativeAssignment,
|
|
369
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => vue.unref(values).estimatedHourCreativeAssignment = $event)
|
|
370
|
+
}, vue.unref(fields).estimatedHourCreativeAssignment), null, 16, ["modelValue"])
|
|
371
|
+
]),
|
|
372
|
+
_: 1
|
|
373
|
+
/* STABLE */
|
|
374
|
+
}),
|
|
375
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
|
|
376
|
+
default: vue.withCtx(() => [
|
|
377
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
378
|
+
modelValue: vue.unref(values).estimatedHourByDay,
|
|
379
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => vue.unref(values).estimatedHourByDay = $event)
|
|
380
|
+
}, vue.unref(fields).estimatedHourByDay, { "is-disabled": "" }), null, 16, ["modelValue"])
|
|
381
|
+
]),
|
|
382
|
+
_: 1
|
|
383
|
+
/* STABLE */
|
|
384
|
+
}),
|
|
385
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
|
|
386
|
+
default: vue.withCtx(() => [
|
|
387
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
388
|
+
modelValue: vue.unref(values).priority,
|
|
389
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => vue.unref(values).priority = $event)
|
|
390
|
+
}, vue.unref(fields).priority), null, 16, ["modelValue"])
|
|
391
|
+
]),
|
|
392
|
+
_: 1
|
|
393
|
+
/* STABLE */
|
|
394
|
+
}),
|
|
395
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
|
|
396
|
+
default: vue.withCtx(() => [
|
|
397
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
398
|
+
modelValue: vue.unref(values).status,
|
|
399
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => vue.unref(values).status = $event)
|
|
400
|
+
}, vue.unref(fields).status, { "is-disabled": "" }), null, 16, ["modelValue"])
|
|
401
|
+
]),
|
|
402
|
+
_: 1
|
|
403
|
+
/* STABLE */
|
|
404
|
+
}),
|
|
405
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
|
|
406
|
+
default: vue.withCtx(() => [
|
|
407
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
408
|
+
modelValue: vue.unref(values).estimatedRealizedAssignmentStart,
|
|
409
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => vue.unref(values).estimatedRealizedAssignmentStart = $event)
|
|
410
|
+
}, vue.unref(fields).estimatedRealizedAssignmentStart), null, 16, ["modelValue"]),
|
|
411
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
412
|
+
modelValue: vue.unref(values).estimatedRealizedAssignmentEnd,
|
|
413
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => vue.unref(values).estimatedRealizedAssignmentEnd = $event)
|
|
414
|
+
}, vue.unref(fields).estimatedRealizedAssignmentEnd), null, 16, ["modelValue"])
|
|
415
|
+
]),
|
|
416
|
+
_: 1
|
|
417
|
+
/* STABLE */
|
|
418
|
+
}),
|
|
419
|
+
vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
|
|
420
|
+
default: vue.withCtx(() => [
|
|
421
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
422
|
+
modelValue: vue.unref(values).resultAssignment,
|
|
423
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => vue.unref(values).resultAssignment = $event)
|
|
424
|
+
}, vue.unref(fields).resultAssignment), null, 16, ["modelValue"])
|
|
425
|
+
]),
|
|
426
|
+
_: 1
|
|
427
|
+
/* STABLE */
|
|
428
|
+
})
|
|
429
|
+
]),
|
|
430
|
+
_: 1
|
|
431
|
+
/* STABLE */
|
|
432
|
+
}, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
|
|
433
|
+
]),
|
|
434
|
+
_: 1
|
|
435
|
+
/* STABLE */
|
|
436
|
+
})
|
|
437
|
+
]),
|
|
438
|
+
_: 1
|
|
439
|
+
/* STABLE */
|
|
440
|
+
}, 8, ["use-url"])
|
|
441
|
+
]),
|
|
442
|
+
_: 1
|
|
443
|
+
/* STABLE */
|
|
444
|
+
});
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
});
|
|
203
448
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
204
449
|
__proto__: null,
|
|
205
|
-
StaffCollection: _sfc_main$
|
|
450
|
+
StaffCollection: _sfc_main$3,
|
|
206
451
|
StaffModel,
|
|
207
452
|
StaffSingle,
|
|
208
|
-
|
|
453
|
+
TaskCollection: _sfc_main$1,
|
|
454
|
+
TaskModel,
|
|
455
|
+
TaskSingle: _sfc_main,
|
|
456
|
+
XxxButton: _sfc_main$4
|
|
209
457
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
210
458
|
function registerComponents(app) {
|
|
211
459
|
Object.entries(components).forEach(([name, component]) => {
|
|
@@ -222,7 +470,10 @@ const OperasionalInterfacesPlugin = {
|
|
|
222
470
|
};
|
|
223
471
|
exports.OperasionalInterfacesPlugin = OperasionalInterfacesPlugin;
|
|
224
472
|
exports.Schema = graphql;
|
|
225
|
-
exports.StaffCollection = _sfc_main$
|
|
473
|
+
exports.StaffCollection = _sfc_main$3;
|
|
226
474
|
exports.StaffModel = StaffModel;
|
|
227
475
|
exports.StaffSingle = StaffSingle;
|
|
228
|
-
exports.
|
|
476
|
+
exports.TaskCollection = _sfc_main$1;
|
|
477
|
+
exports.TaskModel = TaskModel;
|
|
478
|
+
exports.TaskSingle = _sfc_main;
|
|
479
|
+
exports.XxxButton = _sfc_main$4;
|
package/build/index.mjs
CHANGED
|
@@ -4,11 +4,11 @@ import { NeonButton } from "@neon.id/interfaces";
|
|
|
4
4
|
import { models } from "@neutron.co.id/personalia-models";
|
|
5
5
|
import { useCollection, NeonCollection, useSingle, NeonSingle } from "@neon.id/context";
|
|
6
6
|
import { OfficeCollectionTable, OfficeTabs, OfficeTab, OfficeRelation } from "@neon.id/office";
|
|
7
|
-
import { NeonForm, NeonField } from "@neon.id/form";
|
|
7
|
+
import { NeonForm, NeonField, NeonFields } from "@neon.id/form";
|
|
8
8
|
const _hoisted_1$1 = { class: "xxx-button" };
|
|
9
|
-
const __default__$
|
|
10
|
-
const _sfc_main$
|
|
11
|
-
...__default__$
|
|
9
|
+
const __default__$2 = defineComponent({ name: "XxxButton" });
|
|
10
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
11
|
+
...__default__$2,
|
|
12
12
|
props: {
|
|
13
13
|
color: {
|
|
14
14
|
type: String,
|
|
@@ -24,11 +24,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
const StaffModel = models.StaffModel;
|
|
27
|
-
const __default__ = defineComponent({
|
|
27
|
+
const __default__$1 = defineComponent({
|
|
28
28
|
name: "StaffCollection"
|
|
29
29
|
});
|
|
30
|
-
const _sfc_main$
|
|
31
|
-
...__default__,
|
|
30
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
31
|
+
...__default__$1,
|
|
32
32
|
setup(__props) {
|
|
33
33
|
useCollection();
|
|
34
34
|
return (_ctx, _cache) => {
|
|
@@ -44,7 +44,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
44
44
|
});
|
|
45
45
|
const _hoisted_1 = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
|
|
46
46
|
const _hoisted_2 = { class: "grid gap-4 sm:grid-cols-2" };
|
|
47
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
48
48
|
__name: "StaffSingle",
|
|
49
49
|
setup(__props) {
|
|
50
50
|
const {
|
|
@@ -197,13 +197,261 @@ const _export_sfc = (sfc, props) => {
|
|
|
197
197
|
}
|
|
198
198
|
return target;
|
|
199
199
|
};
|
|
200
|
-
const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dbeb1998"]]);
|
|
200
|
+
const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-dbeb1998"]]);
|
|
201
|
+
const TaskModel = models.TaskModel;
|
|
202
|
+
const __default__ = defineComponent({ name: "TaskCollection" });
|
|
203
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
204
|
+
...__default__,
|
|
205
|
+
setup(__props) {
|
|
206
|
+
useCollection();
|
|
207
|
+
return (_ctx, _cache) => {
|
|
208
|
+
return openBlock(), createBlock(unref(NeonCollection), { class: "neu-task-collection" }, {
|
|
209
|
+
default: withCtx(() => [
|
|
210
|
+
createVNode(unref(OfficeCollectionTable))
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
/* STABLE */
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
219
|
+
__name: "TaskSingle",
|
|
220
|
+
setup(__props) {
|
|
221
|
+
const {
|
|
222
|
+
fields,
|
|
223
|
+
id,
|
|
224
|
+
initialValues,
|
|
225
|
+
values,
|
|
226
|
+
isNew,
|
|
227
|
+
isLoading,
|
|
228
|
+
isChanged,
|
|
229
|
+
isReady,
|
|
230
|
+
isMain,
|
|
231
|
+
saveOne,
|
|
232
|
+
discardChanges
|
|
233
|
+
} = useSingle();
|
|
234
|
+
function onChangeDateUpdate(date) {
|
|
235
|
+
values.value.estimatedStartDate = date == null ? void 0 : date.start.toISOString();
|
|
236
|
+
values.value.estimatedEndDate = date == null ? void 0 : date.end.toISOString();
|
|
237
|
+
}
|
|
238
|
+
return (_ctx, _cache) => {
|
|
239
|
+
return openBlock(), createBlock(unref(NeonSingle), { class: "neu-task-single" }, {
|
|
240
|
+
default: withCtx(() => [
|
|
241
|
+
createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
|
|
242
|
+
default: withCtx(() => [
|
|
243
|
+
createVNode(unref(OfficeTab), {
|
|
244
|
+
handle: "info",
|
|
245
|
+
icon: "circle-info",
|
|
246
|
+
title: "Info"
|
|
247
|
+
}, {
|
|
248
|
+
default: withCtx(() => [
|
|
249
|
+
createVNode(unref(NeonForm), {
|
|
250
|
+
handle: "info",
|
|
251
|
+
"initial-values": unref(initialValues),
|
|
252
|
+
"is-loading": unref(isLoading),
|
|
253
|
+
"is-changed": unref(isChanged),
|
|
254
|
+
"use-unsaved": "",
|
|
255
|
+
onCancel: unref(discardChanges),
|
|
256
|
+
onSubmit: unref(saveOne)
|
|
257
|
+
}, {
|
|
258
|
+
default: withCtx(() => [
|
|
259
|
+
createVNode(unref(NeonFields), { md: "grid-cols-4" }, {
|
|
260
|
+
default: withCtx(() => [
|
|
261
|
+
createVNode(unref(NeonField), mergeProps({
|
|
262
|
+
modelValue: unref(values).taskName,
|
|
263
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).taskName = $event)
|
|
264
|
+
}, unref(fields).taskName), null, 16, ["modelValue"])
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
/* STABLE */
|
|
268
|
+
}),
|
|
269
|
+
createVNode(unref(NeonFields), { md: "grid gap-4" }, {
|
|
270
|
+
default: withCtx(() => [
|
|
271
|
+
createVNode(unref(NeonField), mergeProps({
|
|
272
|
+
modelValue: unref(values).internalServiceDescription,
|
|
273
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).internalServiceDescription = $event)
|
|
274
|
+
}, unref(fields).internalServiceDescription), null, 16, ["modelValue"])
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
/* STABLE */
|
|
278
|
+
}),
|
|
279
|
+
createVNode(unref(NeonFields), { md: "grid gap-4" }, {
|
|
280
|
+
default: withCtx(() => [
|
|
281
|
+
createVNode(unref(NeonField), mergeProps({
|
|
282
|
+
modelValue: unref(values).externalServiceDescription,
|
|
283
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).externalServiceDescription = $event)
|
|
284
|
+
}, unref(fields).externalServiceDescription), null, 16, ["modelValue"])
|
|
285
|
+
]),
|
|
286
|
+
_: 1
|
|
287
|
+
/* STABLE */
|
|
288
|
+
}),
|
|
289
|
+
createVNode(unref(OfficeRelation), {
|
|
290
|
+
modelValue: unref(values),
|
|
291
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
|
|
292
|
+
field: unref(fields).branch
|
|
293
|
+
}, null, 8, ["modelValue", "field"]),
|
|
294
|
+
createVNode(unref(NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
|
|
295
|
+
default: withCtx(() => [
|
|
296
|
+
createVNode(unref(OfficeRelation), {
|
|
297
|
+
modelValue: unref(values),
|
|
298
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(values) ? values.value = $event : null),
|
|
299
|
+
field: unref(fields).giveAssignment
|
|
300
|
+
}, null, 8, ["modelValue", "field"]),
|
|
301
|
+
createVNode(unref(OfficeRelation), {
|
|
302
|
+
modelValue: unref(values),
|
|
303
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
|
|
304
|
+
field: unref(fields).supervisingAssignment
|
|
305
|
+
}, null, 8, ["modelValue", "field"])
|
|
306
|
+
]),
|
|
307
|
+
_: 1
|
|
308
|
+
/* STABLE */
|
|
309
|
+
}),
|
|
310
|
+
createVNode(unref(NeonFields), { md: "grid gap-3 sm:grid-cols-2" }, {
|
|
311
|
+
default: withCtx(() => [
|
|
312
|
+
createVNode(unref(OfficeRelation), {
|
|
313
|
+
modelValue: unref(values),
|
|
314
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
|
|
315
|
+
field: unref(fields).doingAssignment
|
|
316
|
+
}, null, 8, ["modelValue", "field"]),
|
|
317
|
+
createVNode(unref(OfficeRelation), {
|
|
318
|
+
modelValue: unref(values),
|
|
319
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => isRef(values) ? values.value = $event : null),
|
|
320
|
+
field: unref(fields).helpAssignment
|
|
321
|
+
}, null, 8, ["modelValue", "field"])
|
|
322
|
+
]),
|
|
323
|
+
_: 1
|
|
324
|
+
/* STABLE */
|
|
325
|
+
}),
|
|
326
|
+
createVNode(unref(NeonFields), { md: "grid gap-4" }, {
|
|
327
|
+
default: withCtx(() => [
|
|
328
|
+
createCommentVNode(' <NeonInputDateRange\n :model-value="{\n start: new Date(values.estimatedStartDate || Date.now()),\n end: new Date(values.estimatedEndDate || Date.now()),\n }"\n min-date="values.estimatedStartDate"\n max-date="values.estimatedEndDate"\n locale="id"\n title="Estimasi"\n @update:model-value="onChangeDateUpdate"\n /> '),
|
|
329
|
+
createVNode(unref(NeonField), {
|
|
330
|
+
"model-value": {
|
|
331
|
+
start: new Date(unref(values).estimatedStartDate || Date.now()),
|
|
332
|
+
end: new Date(unref(values).estimatedEndDate || Date.now())
|
|
333
|
+
},
|
|
334
|
+
name: "Est. Mulai - Selesai",
|
|
335
|
+
note: "Tanggal tugas dimulai dan selesai",
|
|
336
|
+
input: "date-range",
|
|
337
|
+
type: "date-range",
|
|
338
|
+
"is-alone": "",
|
|
339
|
+
"onUpdate:modelValue": onChangeDateUpdate
|
|
340
|
+
}, null, 8, ["model-value"])
|
|
341
|
+
]),
|
|
342
|
+
_: 1
|
|
343
|
+
/* STABLE */
|
|
344
|
+
}),
|
|
345
|
+
createVNode(unref(NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
|
|
346
|
+
default: withCtx(() => [
|
|
347
|
+
createVNode(unref(NeonField), mergeProps({
|
|
348
|
+
modelValue: unref(values).estimatedHourDoingAssignment,
|
|
349
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).estimatedHourDoingAssignment = $event)
|
|
350
|
+
}, unref(fields).estimatedHourDoingAssignment), null, 16, ["modelValue"]),
|
|
351
|
+
createVNode(unref(NeonField), mergeProps({
|
|
352
|
+
modelValue: unref(values).estimatedHourCommunicationAssignment,
|
|
353
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).estimatedHourCommunicationAssignment = $event)
|
|
354
|
+
}, unref(fields).estimatedHourCommunicationAssignment), null, 16, ["modelValue"])
|
|
355
|
+
]),
|
|
356
|
+
_: 1
|
|
357
|
+
/* STABLE */
|
|
358
|
+
}),
|
|
359
|
+
createVNode(unref(NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
|
|
360
|
+
default: withCtx(() => [
|
|
361
|
+
createVNode(unref(NeonField), mergeProps({
|
|
362
|
+
modelValue: unref(values).estimatedHourCognitiveAssignment,
|
|
363
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).estimatedHourCognitiveAssignment = $event)
|
|
364
|
+
}, unref(fields).estimatedHourCognitiveAssignment), null, 16, ["modelValue"]),
|
|
365
|
+
createVNode(unref(NeonField), mergeProps({
|
|
366
|
+
modelValue: unref(values).estimatedHourCreativeAssignment,
|
|
367
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(values).estimatedHourCreativeAssignment = $event)
|
|
368
|
+
}, unref(fields).estimatedHourCreativeAssignment), null, 16, ["modelValue"])
|
|
369
|
+
]),
|
|
370
|
+
_: 1
|
|
371
|
+
/* STABLE */
|
|
372
|
+
}),
|
|
373
|
+
createVNode(unref(NeonFields), { md: "grid gap-4" }, {
|
|
374
|
+
default: withCtx(() => [
|
|
375
|
+
createVNode(unref(NeonField), mergeProps({
|
|
376
|
+
modelValue: unref(values).estimatedHourByDay,
|
|
377
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => unref(values).estimatedHourByDay = $event)
|
|
378
|
+
}, unref(fields).estimatedHourByDay, { "is-disabled": "" }), null, 16, ["modelValue"])
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
/* STABLE */
|
|
382
|
+
}),
|
|
383
|
+
createVNode(unref(NeonFields), { md: "grid gap-4" }, {
|
|
384
|
+
default: withCtx(() => [
|
|
385
|
+
createVNode(unref(NeonField), mergeProps({
|
|
386
|
+
modelValue: unref(values).priority,
|
|
387
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => unref(values).priority = $event)
|
|
388
|
+
}, unref(fields).priority), null, 16, ["modelValue"])
|
|
389
|
+
]),
|
|
390
|
+
_: 1
|
|
391
|
+
/* STABLE */
|
|
392
|
+
}),
|
|
393
|
+
createVNode(unref(NeonFields), { md: "grid gap-4" }, {
|
|
394
|
+
default: withCtx(() => [
|
|
395
|
+
createVNode(unref(NeonField), mergeProps({
|
|
396
|
+
modelValue: unref(values).status,
|
|
397
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => unref(values).status = $event)
|
|
398
|
+
}, unref(fields).status, { "is-disabled": "" }), null, 16, ["modelValue"])
|
|
399
|
+
]),
|
|
400
|
+
_: 1
|
|
401
|
+
/* STABLE */
|
|
402
|
+
}),
|
|
403
|
+
createVNode(unref(NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
|
|
404
|
+
default: withCtx(() => [
|
|
405
|
+
createVNode(unref(NeonField), mergeProps({
|
|
406
|
+
modelValue: unref(values).estimatedRealizedAssignmentStart,
|
|
407
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => unref(values).estimatedRealizedAssignmentStart = $event)
|
|
408
|
+
}, unref(fields).estimatedRealizedAssignmentStart), null, 16, ["modelValue"]),
|
|
409
|
+
createVNode(unref(NeonField), mergeProps({
|
|
410
|
+
modelValue: unref(values).estimatedRealizedAssignmentEnd,
|
|
411
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => unref(values).estimatedRealizedAssignmentEnd = $event)
|
|
412
|
+
}, unref(fields).estimatedRealizedAssignmentEnd), null, 16, ["modelValue"])
|
|
413
|
+
]),
|
|
414
|
+
_: 1
|
|
415
|
+
/* STABLE */
|
|
416
|
+
}),
|
|
417
|
+
createVNode(unref(NeonFields), { md: "grid gap-4" }, {
|
|
418
|
+
default: withCtx(() => [
|
|
419
|
+
createVNode(unref(NeonField), mergeProps({
|
|
420
|
+
modelValue: unref(values).resultAssignment,
|
|
421
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => unref(values).resultAssignment = $event)
|
|
422
|
+
}, unref(fields).resultAssignment), null, 16, ["modelValue"])
|
|
423
|
+
]),
|
|
424
|
+
_: 1
|
|
425
|
+
/* STABLE */
|
|
426
|
+
})
|
|
427
|
+
]),
|
|
428
|
+
_: 1
|
|
429
|
+
/* STABLE */
|
|
430
|
+
}, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
|
|
431
|
+
]),
|
|
432
|
+
_: 1
|
|
433
|
+
/* STABLE */
|
|
434
|
+
})
|
|
435
|
+
]),
|
|
436
|
+
_: 1
|
|
437
|
+
/* STABLE */
|
|
438
|
+
}, 8, ["use-url"])
|
|
439
|
+
]),
|
|
440
|
+
_: 1
|
|
441
|
+
/* STABLE */
|
|
442
|
+
});
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
});
|
|
201
446
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
202
447
|
__proto__: null,
|
|
203
|
-
StaffCollection: _sfc_main$
|
|
448
|
+
StaffCollection: _sfc_main$3,
|
|
204
449
|
StaffModel,
|
|
205
450
|
StaffSingle,
|
|
206
|
-
|
|
451
|
+
TaskCollection: _sfc_main$1,
|
|
452
|
+
TaskModel,
|
|
453
|
+
TaskSingle: _sfc_main,
|
|
454
|
+
XxxButton: _sfc_main$4
|
|
207
455
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
208
456
|
function registerComponents(app) {
|
|
209
457
|
Object.entries(components).forEach(([name, component]) => {
|
|
@@ -221,8 +469,11 @@ const OperasionalInterfacesPlugin = {
|
|
|
221
469
|
export {
|
|
222
470
|
OperasionalInterfacesPlugin,
|
|
223
471
|
graphql as Schema,
|
|
224
|
-
_sfc_main$
|
|
472
|
+
_sfc_main$3 as StaffCollection,
|
|
225
473
|
StaffModel,
|
|
226
474
|
StaffSingle,
|
|
227
|
-
_sfc_main$
|
|
475
|
+
_sfc_main$1 as TaskCollection,
|
|
476
|
+
TaskModel,
|
|
477
|
+
_sfc_main as TaskSingle,
|
|
478
|
+
_sfc_main$4 as XxxButton
|
|
228
479
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const StaffModel: import("@neon.id/model
|
|
1
|
+
export declare const StaffModel: import("@neon.id/model").Model<"neu:personalia:staff", "name" | "image" | "nik" | "branch" | "branches" | "user" | "birthPlace" | "birthDate" | "note">;
|
|
2
2
|
export type TStaffModel = typeof StaffModel;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|