@neutron.co.id/operasional-interfaces 1.0.2-beta.5 → 1.0.2-beta.7

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 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__$2 = vue.defineComponent({ name: "XxxButton" });
12
- const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
13
- ...__default__$2,
11
+ const __default__$3 = vue.defineComponent({ name: "XxxButton" });
12
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
13
+ ...__default__$3,
14
14
  props: {
15
15
  color: {
16
16
  type: String,
@@ -26,11 +26,11 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
26
26
  }
27
27
  });
28
28
  const StaffModel = personaliaModels.models.StaffModel;
29
- const __default__$1 = vue.defineComponent({
29
+ const __default__$2 = vue.defineComponent({
30
30
  name: "StaffCollection"
31
31
  });
32
- const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
33
- ...__default__$1,
32
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
33
+ ...__default__$2,
34
34
  setup(__props) {
35
35
  context.useCollection();
36
36
  return (_ctx, _cache) => {
@@ -46,7 +46,7 @@ const _sfc_main$3 = /* @__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$2 = /* @__PURE__ */ vue.defineComponent({
49
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
50
50
  __name: "StaffSingle",
51
51
  setup(__props) {
52
52
  const {
@@ -199,11 +199,11 @@ const _export_sfc = (sfc, props) => {
199
199
  }
200
200
  return target;
201
201
  };
202
- const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-dbeb1998"]]);
202
+ const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-dbeb1998"]]);
203
203
  const TaskModel = personaliaModels.models.TaskModel;
204
- const __default__ = vue.defineComponent({ name: "TaskCollection" });
205
- const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
206
- ...__default__,
204
+ const __default__$1 = vue.defineComponent({ name: "TaskCollection" });
205
+ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
206
+ ...__default__$1,
207
207
  setup(__props) {
208
208
  context.useCollection();
209
209
  return (_ctx, _cache) => {
@@ -217,7 +217,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
217
217
  };
218
218
  }
219
219
  });
220
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
220
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
221
221
  __name: "TaskSingle",
222
222
  setup(__props) {
223
223
  const {
@@ -445,15 +445,263 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
445
445
  };
446
446
  }
447
447
  });
448
+ const TaskPlanningModel = personaliaModels.models.TaskModel;
449
+ const __default__ = vue.defineComponent({ name: "TaskPlanningCollection" });
450
+ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
451
+ ...__default__,
452
+ setup(__props) {
453
+ context.useCollection();
454
+ return (_ctx, _cache) => {
455
+ return vue.openBlock(), vue.createBlock(vue.unref(context.NeonCollection), { class: "neu-pekerjaan-task-planning-collection" }, {
456
+ default: vue.withCtx(() => [
457
+ vue.createVNode(vue.unref(office.OfficeCollectionTable))
458
+ ]),
459
+ _: 1
460
+ /* STABLE */
461
+ });
462
+ };
463
+ }
464
+ });
465
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
466
+ __name: "TaskPlanningSingle",
467
+ setup(__props) {
468
+ const {
469
+ fields,
470
+ id,
471
+ initialValues,
472
+ values,
473
+ isNew,
474
+ isLoading,
475
+ isChanged,
476
+ isReady,
477
+ isMain,
478
+ saveOne,
479
+ discardChanges
480
+ } = context.useSingle();
481
+ function onChangeDateUpdate(date) {
482
+ values.value.estimatedStartDate = date == null ? void 0 : date.start.toISOString();
483
+ values.value.estimatedEndDate = date == null ? void 0 : date.end.toISOString();
484
+ }
485
+ return (_ctx, _cache) => {
486
+ return vue.openBlock(), vue.createBlock(vue.unref(context.NeonSingle), { class: "neu-pekerjaan-task-planning-single" }, {
487
+ default: vue.withCtx(() => [
488
+ vue.createVNode(vue.unref(office.OfficeTabs), { "use-url": vue.unref(isMain) }, {
489
+ default: vue.withCtx(() => [
490
+ vue.createVNode(vue.unref(office.OfficeTab), {
491
+ handle: "info",
492
+ icon: "circle-info",
493
+ title: "Info"
494
+ }, {
495
+ default: vue.withCtx(() => [
496
+ vue.createVNode(vue.unref(form.NeonForm), {
497
+ handle: "info",
498
+ "initial-values": vue.unref(initialValues),
499
+ "is-loading": vue.unref(isLoading),
500
+ "is-changed": vue.unref(isChanged),
501
+ "use-unsaved": "",
502
+ onCancel: vue.unref(discardChanges),
503
+ onSubmit: vue.unref(saveOne)
504
+ }, {
505
+ default: vue.withCtx(() => [
506
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-4" }, {
507
+ default: vue.withCtx(() => [
508
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
509
+ modelValue: vue.unref(values).taskName,
510
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(values).taskName = $event)
511
+ }, vue.unref(fields).taskName), null, 16, ["modelValue"])
512
+ ]),
513
+ _: 1
514
+ /* STABLE */
515
+ }),
516
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
517
+ default: vue.withCtx(() => [
518
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
519
+ modelValue: vue.unref(values).internalServiceDescription,
520
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.unref(values).internalServiceDescription = $event)
521
+ }, vue.unref(fields).internalServiceDescription), null, 16, ["modelValue"])
522
+ ]),
523
+ _: 1
524
+ /* STABLE */
525
+ }),
526
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
527
+ default: vue.withCtx(() => [
528
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
529
+ modelValue: vue.unref(values).externalServiceDescription,
530
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(values).externalServiceDescription = $event)
531
+ }, vue.unref(fields).externalServiceDescription), null, 16, ["modelValue"])
532
+ ]),
533
+ _: 1
534
+ /* STABLE */
535
+ }),
536
+ vue.createVNode(vue.unref(office.OfficeRelation), {
537
+ modelValue: vue.unref(values),
538
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(values) ? values.value = $event : null),
539
+ field: vue.unref(fields).branches
540
+ }, null, 8, ["modelValue", "field"]),
541
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
542
+ default: vue.withCtx(() => [
543
+ vue.createVNode(vue.unref(office.OfficeRelation), {
544
+ modelValue: vue.unref(values),
545
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(values) ? values.value = $event : null),
546
+ field: vue.unref(fields).giveAssignments
547
+ }, null, 8, ["modelValue", "field"]),
548
+ vue.createVNode(vue.unref(office.OfficeRelation), {
549
+ modelValue: vue.unref(values),
550
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.isRef(values) ? values.value = $event : null),
551
+ field: vue.unref(fields).supervisingAssignments
552
+ }, null, 8, ["modelValue", "field"])
553
+ ]),
554
+ _: 1
555
+ /* STABLE */
556
+ }),
557
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-3 sm:grid-cols-2" }, {
558
+ default: vue.withCtx(() => [
559
+ vue.createVNode(vue.unref(office.OfficeRelation), {
560
+ modelValue: vue.unref(values),
561
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.isRef(values) ? values.value = $event : null),
562
+ field: vue.unref(fields).doingAssignments
563
+ }, null, 8, ["modelValue", "field"]),
564
+ vue.createVNode(vue.unref(office.OfficeRelation), {
565
+ modelValue: vue.unref(values),
566
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.isRef(values) ? values.value = $event : null),
567
+ field: vue.unref(fields).helpAssignments
568
+ }, null, 8, ["modelValue", "field"])
569
+ ]),
570
+ _: 1
571
+ /* STABLE */
572
+ }),
573
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
574
+ default: vue.withCtx(() => [
575
+ 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 /> '),
576
+ vue.createVNode(vue.unref(form.NeonField), {
577
+ "model-value": {
578
+ start: new Date(vue.unref(values).estimatedStartDate || ""),
579
+ end: new Date(vue.unref(values).estimatedEndDate || "")
580
+ },
581
+ name: "Est. Mulai - Selesai",
582
+ note: "Tanggal tugas dimulai dan selesai",
583
+ input: "date-range",
584
+ type: "date-range",
585
+ "is-alone": "",
586
+ "onUpdate:modelValue": onChangeDateUpdate
587
+ }, null, 8, ["model-value"])
588
+ ]),
589
+ _: 1
590
+ /* STABLE */
591
+ }),
592
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
593
+ default: vue.withCtx(() => [
594
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
595
+ modelValue: vue.unref(values).estimatedHourDoingAssignment,
596
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.unref(values).estimatedHourDoingAssignment = $event)
597
+ }, vue.unref(fields).estimatedHourDoingAssignment), null, 16, ["modelValue"]),
598
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
599
+ modelValue: vue.unref(values).estimatedHourCommunicationAssignment,
600
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.unref(values).estimatedHourCommunicationAssignment = $event)
601
+ }, vue.unref(fields).estimatedHourCommunicationAssignment), null, 16, ["modelValue"])
602
+ ]),
603
+ _: 1
604
+ /* STABLE */
605
+ }),
606
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
607
+ default: vue.withCtx(() => [
608
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
609
+ modelValue: vue.unref(values).estimatedHourCognitiveAssignment,
610
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => vue.unref(values).estimatedHourCognitiveAssignment = $event)
611
+ }, vue.unref(fields).estimatedHourCognitiveAssignment), null, 16, ["modelValue"]),
612
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
613
+ modelValue: vue.unref(values).estimatedHourCreativeAssignment,
614
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => vue.unref(values).estimatedHourCreativeAssignment = $event)
615
+ }, vue.unref(fields).estimatedHourCreativeAssignment), null, 16, ["modelValue"])
616
+ ]),
617
+ _: 1
618
+ /* STABLE */
619
+ }),
620
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
621
+ default: vue.withCtx(() => [
622
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
623
+ modelValue: vue.unref(values).estimatedHourByDay,
624
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => vue.unref(values).estimatedHourByDay = $event)
625
+ }, vue.unref(fields).estimatedHourByDay, { "is-disabled": "" }), null, 16, ["modelValue"])
626
+ ]),
627
+ _: 1
628
+ /* STABLE */
629
+ }),
630
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
631
+ default: vue.withCtx(() => [
632
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
633
+ modelValue: vue.unref(values).priority,
634
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => vue.unref(values).priority = $event)
635
+ }, vue.unref(fields).priority), null, 16, ["modelValue"])
636
+ ]),
637
+ _: 1
638
+ /* STABLE */
639
+ }),
640
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
641
+ default: vue.withCtx(() => [
642
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
643
+ modelValue: vue.unref(values).status,
644
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => vue.unref(values).status = $event)
645
+ }, vue.unref(fields).status, { "is-disabled": "" }), null, 16, ["modelValue"])
646
+ ]),
647
+ _: 1
648
+ /* STABLE */
649
+ }),
650
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
651
+ default: vue.withCtx(() => [
652
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
653
+ modelValue: vue.unref(values).estimatedRealizedAssignmentStart,
654
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => vue.unref(values).estimatedRealizedAssignmentStart = $event)
655
+ }, vue.unref(fields).estimatedRealizedAssignmentStart), null, 16, ["modelValue"]),
656
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
657
+ modelValue: vue.unref(values).estimatedRealizedAssignmentEnd,
658
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => vue.unref(values).estimatedRealizedAssignmentEnd = $event)
659
+ }, vue.unref(fields).estimatedRealizedAssignmentEnd), null, 16, ["modelValue"])
660
+ ]),
661
+ _: 1
662
+ /* STABLE */
663
+ }),
664
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid gap-4" }, {
665
+ default: vue.withCtx(() => [
666
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
667
+ modelValue: vue.unref(values).resultAssignment,
668
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => vue.unref(values).resultAssignment = $event)
669
+ }, vue.unref(fields).resultAssignment), null, 16, ["modelValue"])
670
+ ]),
671
+ _: 1
672
+ /* STABLE */
673
+ })
674
+ ]),
675
+ _: 1
676
+ /* STABLE */
677
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
678
+ ]),
679
+ _: 1
680
+ /* STABLE */
681
+ })
682
+ ]),
683
+ _: 1
684
+ /* STABLE */
685
+ }, 8, ["use-url"])
686
+ ]),
687
+ _: 1
688
+ /* STABLE */
689
+ });
690
+ };
691
+ }
692
+ });
448
693
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
449
694
  __proto__: null,
450
- StaffCollection: _sfc_main$3,
695
+ StaffCollection: _sfc_main$5,
451
696
  StaffModel,
452
697
  StaffSingle,
453
- TaskCollection: _sfc_main$1,
698
+ TaskCollection: _sfc_main$3,
454
699
  TaskModel,
455
- TaskSingle: _sfc_main,
456
- XxxButton: _sfc_main$4
700
+ TaskPlanningCollection: _sfc_main$1,
701
+ TaskPlanningModel,
702
+ TaskPlanningSingle: _sfc_main,
703
+ TaskSingle: _sfc_main$2,
704
+ XxxButton: _sfc_main$6
457
705
  }, Symbol.toStringTag, { value: "Module" }));
458
706
  function registerComponents(app) {
459
707
  Object.entries(components).forEach(([name, component]) => {
@@ -470,10 +718,13 @@ const OperasionalInterfacesPlugin = {
470
718
  };
471
719
  exports.OperasionalInterfacesPlugin = OperasionalInterfacesPlugin;
472
720
  exports.Schema = graphql;
473
- exports.StaffCollection = _sfc_main$3;
721
+ exports.StaffCollection = _sfc_main$5;
474
722
  exports.StaffModel = StaffModel;
475
723
  exports.StaffSingle = StaffSingle;
476
- exports.TaskCollection = _sfc_main$1;
724
+ exports.TaskCollection = _sfc_main$3;
477
725
  exports.TaskModel = TaskModel;
478
- exports.TaskSingle = _sfc_main;
479
- exports.XxxButton = _sfc_main$4;
726
+ exports.TaskPlanningCollection = _sfc_main$1;
727
+ exports.TaskPlanningModel = TaskPlanningModel;
728
+ exports.TaskPlanningSingle = _sfc_main;
729
+ exports.TaskSingle = _sfc_main$2;
730
+ exports.XxxButton = _sfc_main$6;
package/build/index.mjs CHANGED
@@ -6,9 +6,9 @@ import { useCollection, NeonCollection, useSingle, NeonSingle } from "@neon.id/c
6
6
  import { OfficeCollectionTable, OfficeTabs, OfficeTab, OfficeRelation } from "@neon.id/office";
7
7
  import { NeonForm, NeonField, NeonFields } from "@neon.id/form";
8
8
  const _hoisted_1$1 = { class: "xxx-button" };
9
- const __default__$2 = defineComponent({ name: "XxxButton" });
10
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
11
- ...__default__$2,
9
+ const __default__$3 = defineComponent({ name: "XxxButton" });
10
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
11
+ ...__default__$3,
12
12
  props: {
13
13
  color: {
14
14
  type: String,
@@ -24,11 +24,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24
24
  }
25
25
  });
26
26
  const StaffModel = models.StaffModel;
27
- const __default__$1 = defineComponent({
27
+ const __default__$2 = defineComponent({
28
28
  name: "StaffCollection"
29
29
  });
30
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
31
- ...__default__$1,
30
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
31
+ ...__default__$2,
32
32
  setup(__props) {
33
33
  useCollection();
34
34
  return (_ctx, _cache) => {
@@ -44,7 +44,7 @@ const _sfc_main$3 = /* @__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$2 = /* @__PURE__ */ defineComponent({
47
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
48
48
  __name: "StaffSingle",
49
49
  setup(__props) {
50
50
  const {
@@ -197,11 +197,11 @@ const _export_sfc = (sfc, props) => {
197
197
  }
198
198
  return target;
199
199
  };
200
- const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-dbeb1998"]]);
200
+ const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-dbeb1998"]]);
201
201
  const TaskModel = models.TaskModel;
202
- const __default__ = defineComponent({ name: "TaskCollection" });
203
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
204
- ...__default__,
202
+ const __default__$1 = defineComponent({ name: "TaskCollection" });
203
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
204
+ ...__default__$1,
205
205
  setup(__props) {
206
206
  useCollection();
207
207
  return (_ctx, _cache) => {
@@ -215,7 +215,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
215
215
  };
216
216
  }
217
217
  });
218
- const _sfc_main = /* @__PURE__ */ defineComponent({
218
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
219
219
  __name: "TaskSingle",
220
220
  setup(__props) {
221
221
  const {
@@ -443,15 +443,263 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
443
443
  };
444
444
  }
445
445
  });
446
+ const TaskPlanningModel = models.TaskModel;
447
+ const __default__ = defineComponent({ name: "TaskPlanningCollection" });
448
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
449
+ ...__default__,
450
+ setup(__props) {
451
+ useCollection();
452
+ return (_ctx, _cache) => {
453
+ return openBlock(), createBlock(unref(NeonCollection), { class: "neu-pekerjaan-task-planning-collection" }, {
454
+ default: withCtx(() => [
455
+ createVNode(unref(OfficeCollectionTable))
456
+ ]),
457
+ _: 1
458
+ /* STABLE */
459
+ });
460
+ };
461
+ }
462
+ });
463
+ const _sfc_main = /* @__PURE__ */ defineComponent({
464
+ __name: "TaskPlanningSingle",
465
+ setup(__props) {
466
+ const {
467
+ fields,
468
+ id,
469
+ initialValues,
470
+ values,
471
+ isNew,
472
+ isLoading,
473
+ isChanged,
474
+ isReady,
475
+ isMain,
476
+ saveOne,
477
+ discardChanges
478
+ } = useSingle();
479
+ function onChangeDateUpdate(date) {
480
+ values.value.estimatedStartDate = date == null ? void 0 : date.start.toISOString();
481
+ values.value.estimatedEndDate = date == null ? void 0 : date.end.toISOString();
482
+ }
483
+ return (_ctx, _cache) => {
484
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-pekerjaan-task-planning-single" }, {
485
+ default: withCtx(() => [
486
+ createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
487
+ default: withCtx(() => [
488
+ createVNode(unref(OfficeTab), {
489
+ handle: "info",
490
+ icon: "circle-info",
491
+ title: "Info"
492
+ }, {
493
+ default: withCtx(() => [
494
+ createVNode(unref(NeonForm), {
495
+ handle: "info",
496
+ "initial-values": unref(initialValues),
497
+ "is-loading": unref(isLoading),
498
+ "is-changed": unref(isChanged),
499
+ "use-unsaved": "",
500
+ onCancel: unref(discardChanges),
501
+ onSubmit: unref(saveOne)
502
+ }, {
503
+ default: withCtx(() => [
504
+ createVNode(unref(NeonFields), { md: "grid-cols-4" }, {
505
+ default: withCtx(() => [
506
+ createVNode(unref(NeonField), mergeProps({
507
+ modelValue: unref(values).taskName,
508
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).taskName = $event)
509
+ }, unref(fields).taskName), null, 16, ["modelValue"])
510
+ ]),
511
+ _: 1
512
+ /* STABLE */
513
+ }),
514
+ createVNode(unref(NeonFields), { md: "grid gap-4" }, {
515
+ default: withCtx(() => [
516
+ createVNode(unref(NeonField), mergeProps({
517
+ modelValue: unref(values).internalServiceDescription,
518
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).internalServiceDescription = $event)
519
+ }, unref(fields).internalServiceDescription), null, 16, ["modelValue"])
520
+ ]),
521
+ _: 1
522
+ /* STABLE */
523
+ }),
524
+ createVNode(unref(NeonFields), { md: "grid gap-4" }, {
525
+ default: withCtx(() => [
526
+ createVNode(unref(NeonField), mergeProps({
527
+ modelValue: unref(values).externalServiceDescription,
528
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).externalServiceDescription = $event)
529
+ }, unref(fields).externalServiceDescription), null, 16, ["modelValue"])
530
+ ]),
531
+ _: 1
532
+ /* STABLE */
533
+ }),
534
+ createVNode(unref(OfficeRelation), {
535
+ modelValue: unref(values),
536
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
537
+ field: unref(fields).branches
538
+ }, null, 8, ["modelValue", "field"]),
539
+ createVNode(unref(NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
540
+ default: withCtx(() => [
541
+ createVNode(unref(OfficeRelation), {
542
+ modelValue: unref(values),
543
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(values) ? values.value = $event : null),
544
+ field: unref(fields).giveAssignments
545
+ }, null, 8, ["modelValue", "field"]),
546
+ createVNode(unref(OfficeRelation), {
547
+ modelValue: unref(values),
548
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
549
+ field: unref(fields).supervisingAssignments
550
+ }, null, 8, ["modelValue", "field"])
551
+ ]),
552
+ _: 1
553
+ /* STABLE */
554
+ }),
555
+ createVNode(unref(NeonFields), { md: "grid gap-3 sm:grid-cols-2" }, {
556
+ default: withCtx(() => [
557
+ createVNode(unref(OfficeRelation), {
558
+ modelValue: unref(values),
559
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
560
+ field: unref(fields).doingAssignments
561
+ }, null, 8, ["modelValue", "field"]),
562
+ createVNode(unref(OfficeRelation), {
563
+ modelValue: unref(values),
564
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => isRef(values) ? values.value = $event : null),
565
+ field: unref(fields).helpAssignments
566
+ }, null, 8, ["modelValue", "field"])
567
+ ]),
568
+ _: 1
569
+ /* STABLE */
570
+ }),
571
+ createVNode(unref(NeonFields), { md: "grid gap-4" }, {
572
+ default: withCtx(() => [
573
+ 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 /> '),
574
+ createVNode(unref(NeonField), {
575
+ "model-value": {
576
+ start: new Date(unref(values).estimatedStartDate || ""),
577
+ end: new Date(unref(values).estimatedEndDate || "")
578
+ },
579
+ name: "Est. Mulai - Selesai",
580
+ note: "Tanggal tugas dimulai dan selesai",
581
+ input: "date-range",
582
+ type: "date-range",
583
+ "is-alone": "",
584
+ "onUpdate:modelValue": onChangeDateUpdate
585
+ }, null, 8, ["model-value"])
586
+ ]),
587
+ _: 1
588
+ /* STABLE */
589
+ }),
590
+ createVNode(unref(NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
591
+ default: withCtx(() => [
592
+ createVNode(unref(NeonField), mergeProps({
593
+ modelValue: unref(values).estimatedHourDoingAssignment,
594
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).estimatedHourDoingAssignment = $event)
595
+ }, unref(fields).estimatedHourDoingAssignment), null, 16, ["modelValue"]),
596
+ createVNode(unref(NeonField), mergeProps({
597
+ modelValue: unref(values).estimatedHourCommunicationAssignment,
598
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).estimatedHourCommunicationAssignment = $event)
599
+ }, unref(fields).estimatedHourCommunicationAssignment), null, 16, ["modelValue"])
600
+ ]),
601
+ _: 1
602
+ /* STABLE */
603
+ }),
604
+ createVNode(unref(NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
605
+ default: withCtx(() => [
606
+ createVNode(unref(NeonField), mergeProps({
607
+ modelValue: unref(values).estimatedHourCognitiveAssignment,
608
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).estimatedHourCognitiveAssignment = $event)
609
+ }, unref(fields).estimatedHourCognitiveAssignment), null, 16, ["modelValue"]),
610
+ createVNode(unref(NeonField), mergeProps({
611
+ modelValue: unref(values).estimatedHourCreativeAssignment,
612
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(values).estimatedHourCreativeAssignment = $event)
613
+ }, unref(fields).estimatedHourCreativeAssignment), null, 16, ["modelValue"])
614
+ ]),
615
+ _: 1
616
+ /* STABLE */
617
+ }),
618
+ createVNode(unref(NeonFields), { md: "grid gap-4" }, {
619
+ default: withCtx(() => [
620
+ createVNode(unref(NeonField), mergeProps({
621
+ modelValue: unref(values).estimatedHourByDay,
622
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => unref(values).estimatedHourByDay = $event)
623
+ }, unref(fields).estimatedHourByDay, { "is-disabled": "" }), null, 16, ["modelValue"])
624
+ ]),
625
+ _: 1
626
+ /* STABLE */
627
+ }),
628
+ createVNode(unref(NeonFields), { md: "grid gap-4" }, {
629
+ default: withCtx(() => [
630
+ createVNode(unref(NeonField), mergeProps({
631
+ modelValue: unref(values).priority,
632
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => unref(values).priority = $event)
633
+ }, unref(fields).priority), null, 16, ["modelValue"])
634
+ ]),
635
+ _: 1
636
+ /* STABLE */
637
+ }),
638
+ createVNode(unref(NeonFields), { md: "grid gap-4" }, {
639
+ default: withCtx(() => [
640
+ createVNode(unref(NeonField), mergeProps({
641
+ modelValue: unref(values).status,
642
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => unref(values).status = $event)
643
+ }, unref(fields).status, { "is-disabled": "" }), null, 16, ["modelValue"])
644
+ ]),
645
+ _: 1
646
+ /* STABLE */
647
+ }),
648
+ createVNode(unref(NeonFields), { md: "grid gap-4 sm:grid-cols-2" }, {
649
+ default: withCtx(() => [
650
+ createVNode(unref(NeonField), mergeProps({
651
+ modelValue: unref(values).estimatedRealizedAssignmentStart,
652
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => unref(values).estimatedRealizedAssignmentStart = $event)
653
+ }, unref(fields).estimatedRealizedAssignmentStart), null, 16, ["modelValue"]),
654
+ createVNode(unref(NeonField), mergeProps({
655
+ modelValue: unref(values).estimatedRealizedAssignmentEnd,
656
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => unref(values).estimatedRealizedAssignmentEnd = $event)
657
+ }, unref(fields).estimatedRealizedAssignmentEnd), null, 16, ["modelValue"])
658
+ ]),
659
+ _: 1
660
+ /* STABLE */
661
+ }),
662
+ createVNode(unref(NeonFields), { md: "grid gap-4" }, {
663
+ default: withCtx(() => [
664
+ createVNode(unref(NeonField), mergeProps({
665
+ modelValue: unref(values).resultAssignment,
666
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => unref(values).resultAssignment = $event)
667
+ }, unref(fields).resultAssignment), null, 16, ["modelValue"])
668
+ ]),
669
+ _: 1
670
+ /* STABLE */
671
+ })
672
+ ]),
673
+ _: 1
674
+ /* STABLE */
675
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
676
+ ]),
677
+ _: 1
678
+ /* STABLE */
679
+ })
680
+ ]),
681
+ _: 1
682
+ /* STABLE */
683
+ }, 8, ["use-url"])
684
+ ]),
685
+ _: 1
686
+ /* STABLE */
687
+ });
688
+ };
689
+ }
690
+ });
446
691
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
447
692
  __proto__: null,
448
- StaffCollection: _sfc_main$3,
693
+ StaffCollection: _sfc_main$5,
449
694
  StaffModel,
450
695
  StaffSingle,
451
- TaskCollection: _sfc_main$1,
696
+ TaskCollection: _sfc_main$3,
452
697
  TaskModel,
453
- TaskSingle: _sfc_main,
454
- XxxButton: _sfc_main$4
698
+ TaskPlanningCollection: _sfc_main$1,
699
+ TaskPlanningModel,
700
+ TaskPlanningSingle: _sfc_main,
701
+ TaskSingle: _sfc_main$2,
702
+ XxxButton: _sfc_main$6
455
703
  }, Symbol.toStringTag, { value: "Module" }));
456
704
  function registerComponents(app) {
457
705
  Object.entries(components).forEach(([name, component]) => {
@@ -469,11 +717,14 @@ const OperasionalInterfacesPlugin = {
469
717
  export {
470
718
  OperasionalInterfacesPlugin,
471
719
  graphql as Schema,
472
- _sfc_main$3 as StaffCollection,
720
+ _sfc_main$5 as StaffCollection,
473
721
  StaffModel,
474
722
  StaffSingle,
475
- _sfc_main$1 as TaskCollection,
723
+ _sfc_main$3 as TaskCollection,
476
724
  TaskModel,
477
- _sfc_main as TaskSingle,
478
- _sfc_main$4 as XxxButton
725
+ _sfc_main$1 as TaskPlanningCollection,
726
+ TaskPlanningModel,
727
+ _sfc_main as TaskPlanningSingle,
728
+ _sfc_main$2 as TaskSingle,
729
+ _sfc_main$6 as XxxButton
479
730
  };
@@ -1,3 +1,4 @@
1
1
  export * from './common';
2
2
  export * from './staff';
3
3
  export * from './task';
4
+ export * from './task-planning';
@@ -1,2 +1,2 @@
1
- export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "taskName" | "giveAssignments" | "supervisingAssignments" | "doingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "internalServiceDescription" | "externalServiceDescription" | "estimatedHourByDay" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd" | "resultAssignment">;
1
+ export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "taskName" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "internalServiceDescription" | "externalServiceDescription" | "estimatedHourByDay" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd" | "resultAssignment">;
2
2
  export type TTaskModel = typeof TaskModel;
@@ -0,0 +1,2 @@
1
+ export * from './task-planning.types';
2
+ export * from './sheets';
@@ -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;
@@ -0,0 +1,2 @@
1
+ export { default as TaskPlanningCollection } from './TaskPlanningCollection.vue';
2
+ export { default as TaskPlanningSingle } from './TaskPlanningSingle.vue';
@@ -0,0 +1,2 @@
1
+ export declare const TaskPlanningModel: import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "taskName" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "internalServiceDescription" | "externalServiceDescription" | "estimatedHourByDay" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd" | "resultAssignment">;
2
+ export type TTaskPlanningModel = typeof TaskPlanningModel;
@@ -4625,6 +4625,8 @@ export type Task = {
4625
4625
  doingAssignmentIds?: Maybe<Array<Scalars['ObjectId']>>;
4626
4626
  /** Yang mengerjakan Tugas ini. */
4627
4627
  doingAssignments?: Maybe<Array<Staff>>;
4628
+ /** Employee name virtual formatted to string */
4629
+ employeeNameTrimmed?: Maybe<Scalars['String']>;
4628
4630
  /** Tanggal tugas selesai. */
4629
4631
  estimatedEndDate?: Maybe<Scalars['Date']>;
4630
4632
  /** Estimated jam perhari (jam) */
@@ -4753,6 +4755,8 @@ export type TaskInput = {
4753
4755
  display?: InputMaybe<Scalars['String']>;
4754
4756
  /** Relation IDs of Mengerjakan. */
4755
4757
  doingAssignmentIds?: InputMaybe<Array<Scalars['ID']>>;
4758
+ /** Employee name virtual formatted to string */
4759
+ employeeNameTrimmed?: InputMaybe<Scalars['String']>;
4756
4760
  /** Tanggal tugas selesai. */
4757
4761
  estimatedEndDate?: InputMaybe<Scalars['Date']>;
4758
4762
  /** Estimated jam perhari (jam) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-interfaces",
3
- "version": "1.0.2-beta.5",
3
+ "version": "1.0.2-beta.7",
4
4
  "description": "Interface library of Neutron.",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -54,12 +54,12 @@
54
54
  "warm": "nuxt prepare"
55
55
  },
56
56
  "dependencies": {
57
- "@neon.id/context": "0.37.0",
57
+ "@neon.id/context": "0.38.0",
58
58
  "@neon.id/field": "0.12.0",
59
59
  "@neon.id/interfaces": "0.153.0",
60
- "@neon.id/office": "0.22.0",
60
+ "@neon.id/office": "0.23.0",
61
61
  "@neon.id/utils": "0.38.0",
62
- "@neutron.co.id/personalia-models": "1.2.0-beta.4",
62
+ "@neutron.co.id/personalia-models": "1.2.0-beta.6",
63
63
  "@nuxt/kit": "3.2.3",
64
64
  "vue": "3.2.47"
65
65
  },
@@ -74,17 +74,17 @@
74
74
  "@nuxtjs/eslint-module": "3.1.0",
75
75
  "@nuxtjs/tailwindcss": "6.4.1",
76
76
  "@pinia/nuxt": "0.4.7",
77
- "@storybook/addon-docs": "7.0.0-beta.60",
78
- "@storybook/addon-essentials": "7.0.0-beta.60",
79
- "@storybook/addon-interactions": "7.0.0-beta.60",
80
- "@storybook/addon-links": "7.0.0-beta.60",
77
+ "@storybook/addon-docs": "7.0.0-beta.62",
78
+ "@storybook/addon-essentials": "7.0.0-beta.62",
79
+ "@storybook/addon-interactions": "7.0.0-beta.62",
80
+ "@storybook/addon-links": "7.0.0-beta.62",
81
81
  "@storybook/testing-library": "0.0.14-next.1",
82
- "@storybook/vue3": "7.0.0-beta.60",
83
- "@storybook/vue3-vite": "7.0.0-beta.60",
82
+ "@storybook/vue3": "7.0.0-beta.62",
83
+ "@storybook/vue3-vite": "7.0.0-beta.62",
84
84
  "@types/react": "18.0.28",
85
85
  "@types/react-dom": "18.0.11",
86
- "@typescript-eslint/eslint-plugin": "5.54.0",
87
- "@typescript-eslint/parser": "5.54.0",
86
+ "@typescript-eslint/eslint-plugin": "5.54.1",
87
+ "@typescript-eslint/parser": "5.54.1",
88
88
  "@vitejs/plugin-vue": "4.0.0",
89
89
  "@vue-macros/nuxt": "1.2.1",
90
90
  "@vue-macros/volar": "0.8.4",
@@ -103,14 +103,14 @@
103
103
  "eslint-plugin-storybook": "0.6.11",
104
104
  "eslint-plugin-vue": "9.9.0",
105
105
  "nuxt": "3.2.3",
106
- "pinia": "2.0.32",
106
+ "pinia": "2.0.33",
107
107
  "postcss": "8.4.21",
108
108
  "postcss-custom-properties": "13.1.4",
109
109
  "prettier": "2.8.4",
110
110
  "react": "18.2.0",
111
111
  "react-dom": "18.2.0",
112
112
  "rollup-plugin-visualizer": "5.9.0",
113
- "storybook": "7.0.0-beta.60",
113
+ "storybook": "7.0.0-beta.62",
114
114
  "tsx": "3.12.3",
115
115
  "typescript": "4.9.5",
116
116
  "unplugin-vue-macros": "1.9.1",
@@ -120,16 +120,16 @@
120
120
  "vue-tsc": "1.2.0"
121
121
  },
122
122
  "peerDependencies": {
123
- "@neon.id/context": "^0.37.0",
123
+ "@neon.id/context": "^0.38.0",
124
124
  "@neon.id/interfaces": "^0.153.0",
125
- "@neon.id/office": "^0.22.0",
125
+ "@neon.id/office": "^0.23.0",
126
126
  "@neon.id/utils": "^0.38.0",
127
- "@neutron.co.id/personalia-models": "^1.2.0-beta.4",
127
+ "@neutron.co.id/personalia-models": "^1.2.0-beta.6",
128
128
  "@nuxt/kit": "^3.2.3",
129
129
  "vue": "^3.2.47"
130
130
  },
131
131
  "publishConfig": {
132
132
  "access": "public"
133
133
  },
134
- "build": 54
134
+ "build": 56
135
135
  }