@neutron.co.id/operasional-interfaces 1.1.1-beta.5 → 1.2.0-beta.1

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__$4 = vue.defineComponent({ name: "XxxButton" });
12
- const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
13
- ...__default__$4,
11
+ const __default__$6 = vue.defineComponent({ name: "XxxButton" });
12
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
13
+ ...__default__$6,
14
14
  props: {
15
15
  color: {
16
16
  type: String,
@@ -26,11 +26,11 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
26
26
  }
27
27
  });
28
28
  const StaffModel = personaliaModels.models.StaffModel;
29
- const __default__$3 = vue.defineComponent({
29
+ const __default__$5 = vue.defineComponent({
30
30
  name: "StaffCollection"
31
31
  });
32
- const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
33
- ...__default__$3,
32
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
33
+ ...__default__$5,
34
34
  setup(__props) {
35
35
  context.useCollection();
36
36
  return (_ctx, _cache) => {
@@ -46,7 +46,7 @@ const _sfc_main$7 = /* @__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$6 = /* @__PURE__ */ vue.defineComponent({
49
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
50
50
  __name: "StaffSingle",
51
51
  setup(__props) {
52
52
  const {
@@ -199,7 +199,431 @@ const _export_sfc = (sfc, props) => {
199
199
  }
200
200
  return target;
201
201
  };
202
- const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-dbeb1998"]]);
202
+ const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-dbeb1998"]]);
203
+ const SituationModel = personaliaModels.models.SituationModel;
204
+ const __default__$4 = vue.defineComponent({ name: "SituationCollection" });
205
+ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
206
+ ...__default__$4,
207
+ setup(__props) {
208
+ context.useCollection();
209
+ return (_ctx, _cache) => {
210
+ return vue.openBlock(), vue.createBlock(vue.unref(context.NeonCollection), { class: "neu-situation-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$8 = /* @__PURE__ */ vue.defineComponent({
221
+ __name: "SituationSingle",
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
+ return (_ctx, _cache) => {
237
+ return vue.openBlock(), vue.createBlock(vue.unref(context.NeonSingle), { class: "neu-situation-single" }, {
238
+ default: vue.withCtx(() => [
239
+ vue.createVNode(vue.unref(office.OfficeTabs), { "use-url": vue.unref(isMain) }, {
240
+ default: vue.withCtx(() => [
241
+ vue.createVNode(vue.unref(office.OfficeTab), {
242
+ handle: "info",
243
+ icon: "circle-info",
244
+ title: "Info"
245
+ }, {
246
+ default: vue.withCtx(() => [
247
+ vue.createVNode(vue.unref(form.NeonForm), {
248
+ handle: "info",
249
+ "initial-values": vue.unref(initialValues),
250
+ "is-loading": vue.unref(isLoading),
251
+ "is-changed": vue.unref(isChanged),
252
+ "use-unsaved": "",
253
+ onCancel: vue.unref(discardChanges),
254
+ onSubmit: vue.unref(saveOne)
255
+ }, {
256
+ default: vue.withCtx(() => [
257
+ vue.createVNode(vue.unref(form.NeonFields), {
258
+ md: "grid-cols-4",
259
+ title: "Situasi"
260
+ }, {
261
+ default: vue.withCtx(() => [
262
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
263
+ modelValue: vue.unref(values).situationStatus,
264
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(values).situationStatus = $event)
265
+ }, vue.unref(fields).situationStatus), null, 16, ["modelValue"])
266
+ ]),
267
+ _: 1
268
+ /* STABLE */
269
+ }),
270
+ vue.createVNode(vue.unref(office.OfficeRelation), {
271
+ modelValue: vue.unref(values),
272
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(values) ? values.value = $event : null),
273
+ field: vue.unref(fields).branches
274
+ }, null, 8, ["modelValue", "field"]),
275
+ vue.createVNode(vue.unref(office.OfficeRelation), {
276
+ modelValue: vue.unref(values),
277
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(values) ? values.value = $event : null),
278
+ field: vue.unref(fields).situationType
279
+ }, null, 8, ["modelValue", "field"]),
280
+ vue.createVNode(vue.unref(office.OfficeRelation), {
281
+ modelValue: vue.unref(values),
282
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(values) ? values.value = $event : null),
283
+ field: vue.unref(fields).situationReportedBy
284
+ }, null, 8, ["modelValue", "field"]),
285
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-4" }, {
286
+ default: vue.withCtx(() => [
287
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
288
+ modelValue: vue.unref(values).situationDescription,
289
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.unref(values).situationDescription = $event)
290
+ }, vue.unref(fields).situationDescription), null, 16, ["modelValue"])
291
+ ]),
292
+ _: 1
293
+ /* STABLE */
294
+ }),
295
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-4" }, {
296
+ default: vue.withCtx(() => [
297
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
298
+ modelValue: vue.unref(values).urgentSituationDate,
299
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.unref(values).urgentSituationDate = $event)
300
+ }, vue.unref(fields).urgentSituationDate), null, 16, ["modelValue"])
301
+ ]),
302
+ _: 1
303
+ /* STABLE */
304
+ }),
305
+ vue.createVNode(vue.unref(office.OfficeRelation), {
306
+ modelValue: vue.unref(values),
307
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.isRef(values) ? values.value = $event : null),
308
+ field: vue.unref(fields).situationRelatedBy
309
+ }, null, 8, ["modelValue", "field"]),
310
+ vue.createVNode(vue.unref(form.NeonFields), {
311
+ md: "grid-cols-4",
312
+ title: "Suportif"
313
+ }, {
314
+ default: vue.withCtx(() => [
315
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
316
+ modelValue: vue.unref(values).supportiveStatus,
317
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.unref(values).supportiveStatus = $event)
318
+ }, vue.unref(fields).supportiveStatus), null, 16, ["modelValue"])
319
+ ]),
320
+ _: 1
321
+ /* STABLE */
322
+ }),
323
+ vue.createVNode(vue.unref(office.OfficeRelation), {
324
+ modelValue: vue.unref(values),
325
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.isRef(values) ? values.value = $event : null),
326
+ field: vue.unref(fields).situationSupportedBy
327
+ }, null, 8, ["modelValue", "field"]),
328
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-4" }, {
329
+ default: vue.withCtx(() => [
330
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
331
+ modelValue: vue.unref(values).situationResponse,
332
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.unref(values).situationResponse = $event)
333
+ }, vue.unref(fields).situationResponse), null, 16, ["modelValue"])
334
+ ]),
335
+ _: 1
336
+ /* STABLE */
337
+ })
338
+ ]),
339
+ _: 1
340
+ /* STABLE */
341
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
342
+ ]),
343
+ _: 1
344
+ /* STABLE */
345
+ })
346
+ ]),
347
+ _: 1
348
+ /* STABLE */
349
+ }, 8, ["use-url"])
350
+ ]),
351
+ _: 1
352
+ /* STABLE */
353
+ });
354
+ };
355
+ }
356
+ });
357
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
358
+ __name: "SituationWork",
359
+ setup(__props) {
360
+ const {
361
+ fields,
362
+ id,
363
+ initialValues,
364
+ values,
365
+ isNew,
366
+ isLoading,
367
+ isChanged,
368
+ isReady,
369
+ isMain,
370
+ saveOne,
371
+ discardChanges
372
+ } = context.useSingle();
373
+ return (_ctx, _cache) => {
374
+ return vue.openBlock(), vue.createBlock(vue.unref(context.NeonSingle), { class: "neu-situation-single" }, {
375
+ default: vue.withCtx(() => [
376
+ vue.createVNode(vue.unref(office.OfficeTabs), { "use-url": vue.unref(isMain) }, {
377
+ default: vue.withCtx(() => [
378
+ vue.createVNode(vue.unref(office.OfficeTab), {
379
+ handle: "info",
380
+ icon: "circle-info",
381
+ title: "Info"
382
+ }, {
383
+ default: vue.withCtx(() => [
384
+ vue.createVNode(vue.unref(form.NeonForm), {
385
+ handle: "info",
386
+ "initial-values": vue.unref(initialValues),
387
+ "is-loading": vue.unref(isLoading),
388
+ "is-changed": vue.unref(isChanged),
389
+ "use-unsaved": "",
390
+ onCancel: vue.unref(discardChanges),
391
+ onSubmit: vue.unref(saveOne)
392
+ }, {
393
+ default: vue.withCtx(() => [
394
+ vue.createVNode(vue.unref(form.NeonFields), {
395
+ md: "grid-cols-4",
396
+ title: "Situasi"
397
+ }, {
398
+ default: vue.withCtx(() => [
399
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
400
+ modelValue: vue.unref(values).situationStatus,
401
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(values).situationStatus = $event)
402
+ }, vue.unref(fields).situationStatus, { "is-disabled": "" }), null, 16, ["modelValue"])
403
+ ]),
404
+ _: 1
405
+ /* STABLE */
406
+ }),
407
+ vue.createVNode(vue.unref(office.OfficeRelation), {
408
+ modelValue: vue.unref(values),
409
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(values) ? values.value = $event : null),
410
+ field: vue.unref(fields).branches
411
+ }, null, 8, ["modelValue", "field"]),
412
+ vue.createVNode(vue.unref(office.OfficeRelation), {
413
+ modelValue: vue.unref(values),
414
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(values) ? values.value = $event : null),
415
+ field: vue.unref(fields).situationType
416
+ }, null, 8, ["modelValue", "field"]),
417
+ vue.createVNode(vue.unref(office.OfficeRelation), {
418
+ modelValue: vue.unref(values),
419
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(values) ? values.value = $event : null),
420
+ field: vue.unref(fields).situationReportedBy,
421
+ "is-disabled": ""
422
+ }, null, 8, ["modelValue", "field"]),
423
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-4" }, {
424
+ default: vue.withCtx(() => [
425
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
426
+ modelValue: vue.unref(values).situationDescription,
427
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.unref(values).situationDescription = $event)
428
+ }, vue.unref(fields).situationDescription), null, 16, ["modelValue"])
429
+ ]),
430
+ _: 1
431
+ /* STABLE */
432
+ }),
433
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-4" }, {
434
+ default: vue.withCtx(() => [
435
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
436
+ modelValue: vue.unref(values).urgentSituationDate,
437
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.unref(values).urgentSituationDate = $event)
438
+ }, vue.unref(fields).urgentSituationDate), null, 16, ["modelValue"])
439
+ ]),
440
+ _: 1
441
+ /* STABLE */
442
+ }),
443
+ vue.createVNode(vue.unref(office.OfficeRelation), {
444
+ modelValue: vue.unref(values),
445
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.isRef(values) ? values.value = $event : null),
446
+ field: vue.unref(fields).situationRelatedBy
447
+ }, null, 8, ["modelValue", "field"]),
448
+ vue.createVNode(vue.unref(form.NeonFields), {
449
+ md: "grid-cols-4",
450
+ title: "Suportif"
451
+ }, {
452
+ default: vue.withCtx(() => [
453
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
454
+ modelValue: vue.unref(values).supportiveStatus,
455
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.unref(values).supportiveStatus = $event)
456
+ }, vue.unref(fields).supportiveStatus), null, 16, ["modelValue"])
457
+ ]),
458
+ _: 1
459
+ /* STABLE */
460
+ }),
461
+ vue.createVNode(vue.unref(office.OfficeRelation), {
462
+ modelValue: vue.unref(values),
463
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.isRef(values) ? values.value = $event : null),
464
+ field: vue.unref(fields).situationSupportedBy
465
+ }, null, 8, ["modelValue", "field"]),
466
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-4" }, {
467
+ default: vue.withCtx(() => [
468
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
469
+ modelValue: vue.unref(values).situationResponse,
470
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.unref(values).situationResponse = $event)
471
+ }, vue.unref(fields).situationResponse), null, 16, ["modelValue"])
472
+ ]),
473
+ _: 1
474
+ /* STABLE */
475
+ })
476
+ ]),
477
+ _: 1
478
+ /* STABLE */
479
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
480
+ ]),
481
+ _: 1
482
+ /* STABLE */
483
+ })
484
+ ]),
485
+ _: 1
486
+ /* STABLE */
487
+ }, 8, ["use-url"])
488
+ ]),
489
+ _: 1
490
+ /* STABLE */
491
+ });
492
+ };
493
+ }
494
+ });
495
+ const __default__$3 = vue.defineComponent({ name: "SituationSupportive" });
496
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
497
+ ...__default__$3,
498
+ setup(__props) {
499
+ const {
500
+ fields,
501
+ id,
502
+ initialValues,
503
+ values,
504
+ isNew,
505
+ isLoading,
506
+ isChanged,
507
+ isReady,
508
+ isMain,
509
+ saveOne,
510
+ discardChanges
511
+ } = context.useSingle();
512
+ return (_ctx, _cache) => {
513
+ return vue.openBlock(), vue.createBlock(vue.unref(context.NeonSingle), { class: "neu-situation-single" }, {
514
+ default: vue.withCtx(() => [
515
+ vue.createVNode(vue.unref(office.OfficeTabs), { "use-url": vue.unref(isMain) }, {
516
+ default: vue.withCtx(() => [
517
+ vue.createVNode(vue.unref(office.OfficeTab), {
518
+ handle: "info",
519
+ icon: "circle-info",
520
+ title: "Info"
521
+ }, {
522
+ default: vue.withCtx(() => [
523
+ vue.createVNode(vue.unref(form.NeonForm), {
524
+ handle: "info",
525
+ "initial-values": vue.unref(initialValues),
526
+ "is-loading": vue.unref(isLoading),
527
+ "is-changed": vue.unref(isChanged),
528
+ "use-unsaved": "",
529
+ onCancel: vue.unref(discardChanges),
530
+ onSubmit: vue.unref(saveOne)
531
+ }, {
532
+ default: vue.withCtx(() => [
533
+ vue.createVNode(vue.unref(form.NeonFields), {
534
+ md: "grid-cols-4",
535
+ title: "Suportif"
536
+ }, {
537
+ default: vue.withCtx(() => [
538
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
539
+ modelValue: vue.unref(values).situationStatus,
540
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(values).situationStatus = $event)
541
+ }, vue.unref(fields).situationStatus, { "is-disabled": "" }), null, 16, ["modelValue"])
542
+ ]),
543
+ _: 1
544
+ /* STABLE */
545
+ }),
546
+ vue.createVNode(vue.unref(office.OfficeRelation), {
547
+ modelValue: vue.unref(values),
548
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(values) ? values.value = $event : null),
549
+ field: vue.unref(fields).situationSupportedBy
550
+ }, null, 8, ["modelValue", "field"]),
551
+ vue.createVNode(vue.unref(form.NeonFields), {
552
+ md: "grid-cols-4",
553
+ title: "Situasi"
554
+ }, {
555
+ default: vue.withCtx(() => [
556
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
557
+ modelValue: vue.unref(values).situationResponse,
558
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(values).situationResponse = $event)
559
+ }, vue.unref(fields).situationResponse), null, 16, ["modelValue"])
560
+ ]),
561
+ _: 1
562
+ /* STABLE */
563
+ }),
564
+ vue.createVNode(vue.unref(office.OfficeRelation), {
565
+ modelValue: vue.unref(values),
566
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(values) ? values.value = $event : null),
567
+ field: vue.unref(fields).branches,
568
+ "is-disabled": ""
569
+ }, null, 8, ["modelValue", "field"]),
570
+ vue.createVNode(vue.unref(office.OfficeRelation), {
571
+ modelValue: vue.unref(values),
572
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(values) ? values.value = $event : null),
573
+ field: vue.unref(fields).situationType,
574
+ "is-disabled": ""
575
+ }, null, 8, ["modelValue", "field"]),
576
+ vue.createVNode(vue.unref(office.OfficeRelation), {
577
+ modelValue: vue.unref(values),
578
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.isRef(values) ? values.value = $event : null),
579
+ field: vue.unref(fields).situationReportedBy,
580
+ "is-disabled": ""
581
+ }, null, 8, ["modelValue", "field"]),
582
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-4" }, {
583
+ default: vue.withCtx(() => [
584
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
585
+ modelValue: vue.unref(values).situationDescription,
586
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.unref(values).situationDescription = $event)
587
+ }, vue.unref(fields).situationDescription, { "is-disabled": "" }), null, 16, ["modelValue"])
588
+ ]),
589
+ _: 1
590
+ /* STABLE */
591
+ }),
592
+ vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-4" }, {
593
+ default: vue.withCtx(() => [
594
+ vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
595
+ modelValue: vue.unref(values).urgentSituationDate,
596
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.unref(values).urgentSituationDate = $event)
597
+ }, vue.unref(fields).urgentSituationDate, { "is-disabled": "" }), null, 16, ["modelValue"])
598
+ ]),
599
+ _: 1
600
+ /* STABLE */
601
+ }),
602
+ vue.createVNode(vue.unref(office.OfficeRelation), {
603
+ modelValue: vue.unref(values),
604
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.isRef(values) ? values.value = $event : null),
605
+ field: vue.unref(fields).situationRelatedBy,
606
+ "is-disabled": ""
607
+ }, null, 8, ["modelValue", "field"])
608
+ ]),
609
+ _: 1
610
+ /* STABLE */
611
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
612
+ ]),
613
+ _: 1
614
+ /* STABLE */
615
+ })
616
+ ]),
617
+ _: 1
618
+ /* STABLE */
619
+ }, 8, ["use-url"])
620
+ ]),
621
+ _: 1
622
+ /* STABLE */
623
+ });
624
+ };
625
+ }
626
+ });
203
627
  const SituationTypeModel = personaliaModels.models.SituationTypeModel;
204
628
  const __default__$2 = vue.defineComponent({ name: "SituationTypeCollection" });
205
629
  const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
@@ -4298,10 +4722,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4298
4722
  });
4299
4723
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4300
4724
  __proto__: null,
4725
+ SituationCollection: _sfc_main$9,
4726
+ SituationModel,
4727
+ SituationSingle: _sfc_main$8,
4728
+ SituationSupportive: _sfc_main$6,
4301
4729
  SituationTypeCollection: _sfc_main$5,
4302
4730
  SituationTypeModel,
4303
4731
  SituationTypeSingle: _sfc_main$4,
4304
- StaffCollection: _sfc_main$7,
4732
+ SituationWork: _sfc_main$7,
4733
+ StaffCollection: _sfc_main$b,
4305
4734
  StaffModel,
4306
4735
  StaffSingle,
4307
4736
  TaskCollection: _sfc_main$2,
@@ -4309,7 +4738,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
4309
4738
  TaskSingle: _sfc_main$1,
4310
4739
  TaskWork: _sfc_main,
4311
4740
  TaskWorkButton: _sfc_main$3,
4312
- XxxButton: _sfc_main$8
4741
+ XxxButton: _sfc_main$c
4313
4742
  }, Symbol.toStringTag, { value: "Module" }));
4314
4743
  function registerComponents(app) {
4315
4744
  Object.entries(components).forEach(([name, component]) => {
@@ -4326,10 +4755,15 @@ const OperasionalInterfacesPlugin = {
4326
4755
  };
4327
4756
  exports.OperasionalInterfacesPlugin = OperasionalInterfacesPlugin;
4328
4757
  exports.Schema = graphql;
4758
+ exports.SituationCollection = _sfc_main$9;
4759
+ exports.SituationModel = SituationModel;
4760
+ exports.SituationSingle = _sfc_main$8;
4761
+ exports.SituationSupportive = _sfc_main$6;
4329
4762
  exports.SituationTypeCollection = _sfc_main$5;
4330
4763
  exports.SituationTypeModel = SituationTypeModel;
4331
4764
  exports.SituationTypeSingle = _sfc_main$4;
4332
- exports.StaffCollection = _sfc_main$7;
4765
+ exports.SituationWork = _sfc_main$7;
4766
+ exports.StaffCollection = _sfc_main$b;
4333
4767
  exports.StaffModel = StaffModel;
4334
4768
  exports.StaffSingle = StaffSingle;
4335
4769
  exports.TaskCollection = _sfc_main$2;
@@ -4337,4 +4771,4 @@ exports.TaskModel = TaskModel;
4337
4771
  exports.TaskSingle = _sfc_main$1;
4338
4772
  exports.TaskWork = _sfc_main;
4339
4773
  exports.TaskWorkButton = _sfc_main$3;
4340
- exports.XxxButton = _sfc_main$8;
4774
+ exports.XxxButton = _sfc_main$c;
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__$4 = defineComponent({ name: "XxxButton" });
10
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
11
- ...__default__$4,
9
+ const __default__$6 = defineComponent({ name: "XxxButton" });
10
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
11
+ ...__default__$6,
12
12
  props: {
13
13
  color: {
14
14
  type: String,
@@ -24,11 +24,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
24
24
  }
25
25
  });
26
26
  const StaffModel = models.StaffModel;
27
- const __default__$3 = defineComponent({
27
+ const __default__$5 = defineComponent({
28
28
  name: "StaffCollection"
29
29
  });
30
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
31
- ...__default__$3,
30
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
31
+ ...__default__$5,
32
32
  setup(__props) {
33
33
  useCollection();
34
34
  return (_ctx, _cache) => {
@@ -44,7 +44,7 @@ const _sfc_main$7 = /* @__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$6 = /* @__PURE__ */ defineComponent({
47
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
48
48
  __name: "StaffSingle",
49
49
  setup(__props) {
50
50
  const {
@@ -197,7 +197,431 @@ const _export_sfc = (sfc, props) => {
197
197
  }
198
198
  return target;
199
199
  };
200
- const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-dbeb1998"]]);
200
+ const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-dbeb1998"]]);
201
+ const SituationModel = models.SituationModel;
202
+ const __default__$4 = defineComponent({ name: "SituationCollection" });
203
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
204
+ ...__default__$4,
205
+ setup(__props) {
206
+ useCollection();
207
+ return (_ctx, _cache) => {
208
+ return openBlock(), createBlock(unref(NeonCollection), { class: "neu-situation-collection" }, {
209
+ default: withCtx(() => [
210
+ createVNode(unref(OfficeCollectionTable))
211
+ ]),
212
+ _: 1
213
+ /* STABLE */
214
+ });
215
+ };
216
+ }
217
+ });
218
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
219
+ __name: "SituationSingle",
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
+ return (_ctx, _cache) => {
235
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-situation-single" }, {
236
+ default: withCtx(() => [
237
+ createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
238
+ default: withCtx(() => [
239
+ createVNode(unref(OfficeTab), {
240
+ handle: "info",
241
+ icon: "circle-info",
242
+ title: "Info"
243
+ }, {
244
+ default: withCtx(() => [
245
+ createVNode(unref(NeonForm), {
246
+ handle: "info",
247
+ "initial-values": unref(initialValues),
248
+ "is-loading": unref(isLoading),
249
+ "is-changed": unref(isChanged),
250
+ "use-unsaved": "",
251
+ onCancel: unref(discardChanges),
252
+ onSubmit: unref(saveOne)
253
+ }, {
254
+ default: withCtx(() => [
255
+ createVNode(unref(NeonFields), {
256
+ md: "grid-cols-4",
257
+ title: "Situasi"
258
+ }, {
259
+ default: withCtx(() => [
260
+ createVNode(unref(NeonField), mergeProps({
261
+ modelValue: unref(values).situationStatus,
262
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).situationStatus = $event)
263
+ }, unref(fields).situationStatus), null, 16, ["modelValue"])
264
+ ]),
265
+ _: 1
266
+ /* STABLE */
267
+ }),
268
+ createVNode(unref(OfficeRelation), {
269
+ modelValue: unref(values),
270
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(values) ? values.value = $event : null),
271
+ field: unref(fields).branches
272
+ }, null, 8, ["modelValue", "field"]),
273
+ createVNode(unref(OfficeRelation), {
274
+ modelValue: unref(values),
275
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
276
+ field: unref(fields).situationType
277
+ }, null, 8, ["modelValue", "field"]),
278
+ createVNode(unref(OfficeRelation), {
279
+ modelValue: unref(values),
280
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
281
+ field: unref(fields).situationReportedBy
282
+ }, null, 8, ["modelValue", "field"]),
283
+ createVNode(unref(NeonFields), { md: "grid-cols-4" }, {
284
+ default: withCtx(() => [
285
+ createVNode(unref(NeonField), mergeProps({
286
+ modelValue: unref(values).situationDescription,
287
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).situationDescription = $event)
288
+ }, unref(fields).situationDescription), null, 16, ["modelValue"])
289
+ ]),
290
+ _: 1
291
+ /* STABLE */
292
+ }),
293
+ createVNode(unref(NeonFields), { md: "grid-cols-4" }, {
294
+ default: withCtx(() => [
295
+ createVNode(unref(NeonField), mergeProps({
296
+ modelValue: unref(values).urgentSituationDate,
297
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).urgentSituationDate = $event)
298
+ }, unref(fields).urgentSituationDate), null, 16, ["modelValue"])
299
+ ]),
300
+ _: 1
301
+ /* STABLE */
302
+ }),
303
+ createVNode(unref(OfficeRelation), {
304
+ modelValue: unref(values),
305
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
306
+ field: unref(fields).situationRelatedBy
307
+ }, null, 8, ["modelValue", "field"]),
308
+ createVNode(unref(NeonFields), {
309
+ md: "grid-cols-4",
310
+ title: "Suportif"
311
+ }, {
312
+ default: withCtx(() => [
313
+ createVNode(unref(NeonField), mergeProps({
314
+ modelValue: unref(values).supportiveStatus,
315
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).supportiveStatus = $event)
316
+ }, unref(fields).supportiveStatus), null, 16, ["modelValue"])
317
+ ]),
318
+ _: 1
319
+ /* STABLE */
320
+ }),
321
+ createVNode(unref(OfficeRelation), {
322
+ modelValue: unref(values),
323
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isRef(values) ? values.value = $event : null),
324
+ field: unref(fields).situationSupportedBy
325
+ }, null, 8, ["modelValue", "field"]),
326
+ createVNode(unref(NeonFields), { md: "grid-cols-4" }, {
327
+ default: withCtx(() => [
328
+ createVNode(unref(NeonField), mergeProps({
329
+ modelValue: unref(values).situationResponse,
330
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).situationResponse = $event)
331
+ }, unref(fields).situationResponse), null, 16, ["modelValue"])
332
+ ]),
333
+ _: 1
334
+ /* STABLE */
335
+ })
336
+ ]),
337
+ _: 1
338
+ /* STABLE */
339
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
340
+ ]),
341
+ _: 1
342
+ /* STABLE */
343
+ })
344
+ ]),
345
+ _: 1
346
+ /* STABLE */
347
+ }, 8, ["use-url"])
348
+ ]),
349
+ _: 1
350
+ /* STABLE */
351
+ });
352
+ };
353
+ }
354
+ });
355
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
356
+ __name: "SituationWork",
357
+ setup(__props) {
358
+ const {
359
+ fields,
360
+ id,
361
+ initialValues,
362
+ values,
363
+ isNew,
364
+ isLoading,
365
+ isChanged,
366
+ isReady,
367
+ isMain,
368
+ saveOne,
369
+ discardChanges
370
+ } = useSingle();
371
+ return (_ctx, _cache) => {
372
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-situation-single" }, {
373
+ default: withCtx(() => [
374
+ createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
375
+ default: withCtx(() => [
376
+ createVNode(unref(OfficeTab), {
377
+ handle: "info",
378
+ icon: "circle-info",
379
+ title: "Info"
380
+ }, {
381
+ default: withCtx(() => [
382
+ createVNode(unref(NeonForm), {
383
+ handle: "info",
384
+ "initial-values": unref(initialValues),
385
+ "is-loading": unref(isLoading),
386
+ "is-changed": unref(isChanged),
387
+ "use-unsaved": "",
388
+ onCancel: unref(discardChanges),
389
+ onSubmit: unref(saveOne)
390
+ }, {
391
+ default: withCtx(() => [
392
+ createVNode(unref(NeonFields), {
393
+ md: "grid-cols-4",
394
+ title: "Situasi"
395
+ }, {
396
+ default: withCtx(() => [
397
+ createVNode(unref(NeonField), mergeProps({
398
+ modelValue: unref(values).situationStatus,
399
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).situationStatus = $event)
400
+ }, unref(fields).situationStatus, { "is-disabled": "" }), null, 16, ["modelValue"])
401
+ ]),
402
+ _: 1
403
+ /* STABLE */
404
+ }),
405
+ createVNode(unref(OfficeRelation), {
406
+ modelValue: unref(values),
407
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(values) ? values.value = $event : null),
408
+ field: unref(fields).branches
409
+ }, null, 8, ["modelValue", "field"]),
410
+ createVNode(unref(OfficeRelation), {
411
+ modelValue: unref(values),
412
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
413
+ field: unref(fields).situationType
414
+ }, null, 8, ["modelValue", "field"]),
415
+ createVNode(unref(OfficeRelation), {
416
+ modelValue: unref(values),
417
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
418
+ field: unref(fields).situationReportedBy,
419
+ "is-disabled": ""
420
+ }, null, 8, ["modelValue", "field"]),
421
+ createVNode(unref(NeonFields), { md: "grid-cols-4" }, {
422
+ default: withCtx(() => [
423
+ createVNode(unref(NeonField), mergeProps({
424
+ modelValue: unref(values).situationDescription,
425
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).situationDescription = $event)
426
+ }, unref(fields).situationDescription), null, 16, ["modelValue"])
427
+ ]),
428
+ _: 1
429
+ /* STABLE */
430
+ }),
431
+ createVNode(unref(NeonFields), { md: "grid-cols-4" }, {
432
+ default: withCtx(() => [
433
+ createVNode(unref(NeonField), mergeProps({
434
+ modelValue: unref(values).urgentSituationDate,
435
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).urgentSituationDate = $event)
436
+ }, unref(fields).urgentSituationDate), null, 16, ["modelValue"])
437
+ ]),
438
+ _: 1
439
+ /* STABLE */
440
+ }),
441
+ createVNode(unref(OfficeRelation), {
442
+ modelValue: unref(values),
443
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
444
+ field: unref(fields).situationRelatedBy
445
+ }, null, 8, ["modelValue", "field"]),
446
+ createVNode(unref(NeonFields), {
447
+ md: "grid-cols-4",
448
+ title: "Suportif"
449
+ }, {
450
+ default: withCtx(() => [
451
+ createVNode(unref(NeonField), mergeProps({
452
+ modelValue: unref(values).supportiveStatus,
453
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).supportiveStatus = $event)
454
+ }, unref(fields).supportiveStatus), null, 16, ["modelValue"])
455
+ ]),
456
+ _: 1
457
+ /* STABLE */
458
+ }),
459
+ createVNode(unref(OfficeRelation), {
460
+ modelValue: unref(values),
461
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isRef(values) ? values.value = $event : null),
462
+ field: unref(fields).situationSupportedBy
463
+ }, null, 8, ["modelValue", "field"]),
464
+ createVNode(unref(NeonFields), { md: "grid-cols-4" }, {
465
+ default: withCtx(() => [
466
+ createVNode(unref(NeonField), mergeProps({
467
+ modelValue: unref(values).situationResponse,
468
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).situationResponse = $event)
469
+ }, unref(fields).situationResponse), null, 16, ["modelValue"])
470
+ ]),
471
+ _: 1
472
+ /* STABLE */
473
+ })
474
+ ]),
475
+ _: 1
476
+ /* STABLE */
477
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
478
+ ]),
479
+ _: 1
480
+ /* STABLE */
481
+ })
482
+ ]),
483
+ _: 1
484
+ /* STABLE */
485
+ }, 8, ["use-url"])
486
+ ]),
487
+ _: 1
488
+ /* STABLE */
489
+ });
490
+ };
491
+ }
492
+ });
493
+ const __default__$3 = defineComponent({ name: "SituationSupportive" });
494
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
495
+ ...__default__$3,
496
+ setup(__props) {
497
+ const {
498
+ fields,
499
+ id,
500
+ initialValues,
501
+ values,
502
+ isNew,
503
+ isLoading,
504
+ isChanged,
505
+ isReady,
506
+ isMain,
507
+ saveOne,
508
+ discardChanges
509
+ } = useSingle();
510
+ return (_ctx, _cache) => {
511
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-situation-single" }, {
512
+ default: withCtx(() => [
513
+ createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
514
+ default: withCtx(() => [
515
+ createVNode(unref(OfficeTab), {
516
+ handle: "info",
517
+ icon: "circle-info",
518
+ title: "Info"
519
+ }, {
520
+ default: withCtx(() => [
521
+ createVNode(unref(NeonForm), {
522
+ handle: "info",
523
+ "initial-values": unref(initialValues),
524
+ "is-loading": unref(isLoading),
525
+ "is-changed": unref(isChanged),
526
+ "use-unsaved": "",
527
+ onCancel: unref(discardChanges),
528
+ onSubmit: unref(saveOne)
529
+ }, {
530
+ default: withCtx(() => [
531
+ createVNode(unref(NeonFields), {
532
+ md: "grid-cols-4",
533
+ title: "Suportif"
534
+ }, {
535
+ default: withCtx(() => [
536
+ createVNode(unref(NeonField), mergeProps({
537
+ modelValue: unref(values).situationStatus,
538
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).situationStatus = $event)
539
+ }, unref(fields).situationStatus, { "is-disabled": "" }), null, 16, ["modelValue"])
540
+ ]),
541
+ _: 1
542
+ /* STABLE */
543
+ }),
544
+ createVNode(unref(OfficeRelation), {
545
+ modelValue: unref(values),
546
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(values) ? values.value = $event : null),
547
+ field: unref(fields).situationSupportedBy
548
+ }, null, 8, ["modelValue", "field"]),
549
+ createVNode(unref(NeonFields), {
550
+ md: "grid-cols-4",
551
+ title: "Situasi"
552
+ }, {
553
+ default: withCtx(() => [
554
+ createVNode(unref(NeonField), mergeProps({
555
+ modelValue: unref(values).situationResponse,
556
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).situationResponse = $event)
557
+ }, unref(fields).situationResponse), null, 16, ["modelValue"])
558
+ ]),
559
+ _: 1
560
+ /* STABLE */
561
+ }),
562
+ createVNode(unref(OfficeRelation), {
563
+ modelValue: unref(values),
564
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
565
+ field: unref(fields).branches,
566
+ "is-disabled": ""
567
+ }, null, 8, ["modelValue", "field"]),
568
+ createVNode(unref(OfficeRelation), {
569
+ modelValue: unref(values),
570
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(values) ? values.value = $event : null),
571
+ field: unref(fields).situationType,
572
+ "is-disabled": ""
573
+ }, null, 8, ["modelValue", "field"]),
574
+ createVNode(unref(OfficeRelation), {
575
+ modelValue: unref(values),
576
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
577
+ field: unref(fields).situationReportedBy,
578
+ "is-disabled": ""
579
+ }, null, 8, ["modelValue", "field"]),
580
+ createVNode(unref(NeonFields), { md: "grid-cols-4" }, {
581
+ default: withCtx(() => [
582
+ createVNode(unref(NeonField), mergeProps({
583
+ modelValue: unref(values).situationDescription,
584
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).situationDescription = $event)
585
+ }, unref(fields).situationDescription, { "is-disabled": "" }), null, 16, ["modelValue"])
586
+ ]),
587
+ _: 1
588
+ /* STABLE */
589
+ }),
590
+ createVNode(unref(NeonFields), { md: "grid-cols-4" }, {
591
+ default: withCtx(() => [
592
+ createVNode(unref(NeonField), mergeProps({
593
+ modelValue: unref(values).urgentSituationDate,
594
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).urgentSituationDate = $event)
595
+ }, unref(fields).urgentSituationDate, { "is-disabled": "" }), null, 16, ["modelValue"])
596
+ ]),
597
+ _: 1
598
+ /* STABLE */
599
+ }),
600
+ createVNode(unref(OfficeRelation), {
601
+ modelValue: unref(values),
602
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isRef(values) ? values.value = $event : null),
603
+ field: unref(fields).situationRelatedBy,
604
+ "is-disabled": ""
605
+ }, null, 8, ["modelValue", "field"])
606
+ ]),
607
+ _: 1
608
+ /* STABLE */
609
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
610
+ ]),
611
+ _: 1
612
+ /* STABLE */
613
+ })
614
+ ]),
615
+ _: 1
616
+ /* STABLE */
617
+ }, 8, ["use-url"])
618
+ ]),
619
+ _: 1
620
+ /* STABLE */
621
+ });
622
+ };
623
+ }
624
+ });
201
625
  const SituationTypeModel = models.SituationTypeModel;
202
626
  const __default__$2 = defineComponent({ name: "SituationTypeCollection" });
203
627
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
@@ -4296,10 +4720,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4296
4720
  });
4297
4721
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4298
4722
  __proto__: null,
4723
+ SituationCollection: _sfc_main$9,
4724
+ SituationModel,
4725
+ SituationSingle: _sfc_main$8,
4726
+ SituationSupportive: _sfc_main$6,
4299
4727
  SituationTypeCollection: _sfc_main$5,
4300
4728
  SituationTypeModel,
4301
4729
  SituationTypeSingle: _sfc_main$4,
4302
- StaffCollection: _sfc_main$7,
4730
+ SituationWork: _sfc_main$7,
4731
+ StaffCollection: _sfc_main$b,
4303
4732
  StaffModel,
4304
4733
  StaffSingle,
4305
4734
  TaskCollection: _sfc_main$2,
@@ -4307,7 +4736,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
4307
4736
  TaskSingle: _sfc_main$1,
4308
4737
  TaskWork: _sfc_main,
4309
4738
  TaskWorkButton: _sfc_main$3,
4310
- XxxButton: _sfc_main$8
4739
+ XxxButton: _sfc_main$c
4311
4740
  }, Symbol.toStringTag, { value: "Module" }));
4312
4741
  function registerComponents(app) {
4313
4742
  Object.entries(components).forEach(([name, component]) => {
@@ -4325,10 +4754,15 @@ const OperasionalInterfacesPlugin = {
4325
4754
  export {
4326
4755
  OperasionalInterfacesPlugin,
4327
4756
  graphql as Schema,
4757
+ _sfc_main$9 as SituationCollection,
4758
+ SituationModel,
4759
+ _sfc_main$8 as SituationSingle,
4760
+ _sfc_main$6 as SituationSupportive,
4328
4761
  _sfc_main$5 as SituationTypeCollection,
4329
4762
  SituationTypeModel,
4330
4763
  _sfc_main$4 as SituationTypeSingle,
4331
- _sfc_main$7 as StaffCollection,
4764
+ _sfc_main$7 as SituationWork,
4765
+ _sfc_main$b as StaffCollection,
4332
4766
  StaffModel,
4333
4767
  StaffSingle,
4334
4768
  _sfc_main$2 as TaskCollection,
@@ -4336,5 +4770,5 @@ export {
4336
4770
  _sfc_main$1 as TaskSingle,
4337
4771
  _sfc_main as TaskWork,
4338
4772
  _sfc_main$3 as TaskWorkButton,
4339
- _sfc_main$8 as XxxButton
4773
+ _sfc_main$c as XxxButton
4340
4774
  };
@@ -1,4 +1,5 @@
1
1
  export * from './common';
2
2
  export * from './staff';
3
+ export * from './situation';
3
4
  export * from './situationType';
4
5
  export * from './task';
@@ -0,0 +1,2 @@
1
+ export * from './situation.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
+ 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,4 @@
1
+ export { default as SituationCollection } from './SituationCollection.vue';
2
+ export { default as SituationSingle } from './SituationSingle.vue';
3
+ export { default as SituationWork } from './SituationWork.vue';
4
+ export { default as SituationSupportive } from './SituationSupportive.vue';
@@ -0,0 +1,2 @@
1
+ export declare const SituationModel: import("@neon.id/model").Model<"neu:personalia:situation", "branches" | "situationStatus" | "employeeNameTrimmed" | "situationType" | "situationReportedBy" | "situationResponse" | "situationRelatedBy" | "situationSupportedBy" | "urgentSituationDate" | "situationDescription" | "supportiveStatus">;
2
+ export type TSituationModel = typeof SituationModel;
@@ -1,2 +1,2 @@
1
- export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "taskName" | "employeeNameTrimmed" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "estimatedHourByDay" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd">;
1
+ export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "employeeNameTrimmed" | "taskName" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "estimatedHourByDay" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd">;
2
2
  export type TTaskModel = typeof TaskModel;
@@ -3960,6 +3960,8 @@ export type Situation = {
3960
3960
  deleter?: Maybe<User>;
3961
3961
  /** Situasi */
3962
3962
  display?: Maybe<Scalars['String']>;
3963
+ /** Employee name virtual formatted to trimmed string */
3964
+ employeeNameTrimmed?: Maybe<Scalars['String']>;
3963
3965
  /** Situasi */
3964
3966
  flag?: Maybe<Scalars['String']>;
3965
3967
  /** Object ID. */
@@ -3991,7 +3993,7 @@ export type Situation = {
3991
3993
  /** Tipe Status dari Situasi ini. */
3992
3994
  situationType?: Maybe<SituationType>;
3993
3995
  /** Relation ID of Tipe Situasi. */
3994
- situationTypeIds?: Maybe<Scalars['ObjectId']>;
3996
+ situationTypeId?: Maybe<Scalars['ObjectId']>;
3995
3997
  /** Status Supportif dari situasi. */
3996
3998
  supportiveStatus?: Maybe<Scalars['String']>;
3997
3999
  /** When this situasi was last synced. */
@@ -4061,6 +4063,8 @@ export type SituationInput = {
4061
4063
  deletedBy?: InputMaybe<Scalars['ObjectId']>;
4062
4064
  /** Situasi */
4063
4065
  display?: InputMaybe<Scalars['String']>;
4066
+ /** Employee name virtual formatted to trimmed string */
4067
+ employeeNameTrimmed?: InputMaybe<Scalars['String']>;
4064
4068
  /** Situasi */
4065
4069
  flag?: InputMaybe<Scalars['String']>;
4066
4070
  /** When this situasi was restored. */
@@ -4080,7 +4084,7 @@ export type SituationInput = {
4080
4084
  /** Relation IDs of Siapa Yang Bisa Supportif. */
4081
4085
  situationSupportedByIds?: InputMaybe<Array<Scalars['ID']>>;
4082
4086
  /** Relation ID of Tipe Situasi. */
4083
- situationTypeIds?: InputMaybe<Scalars['ObjectId']>;
4087
+ situationTypeId?: InputMaybe<Scalars['ObjectId']>;
4084
4088
  /** Status Supportif dari situasi. */
4085
4089
  supportiveStatus?: InputMaybe<Scalars['String']>;
4086
4090
  /** When this situasi was last synced. */
@@ -4128,10 +4132,10 @@ export type SituationType = {
4128
4132
  restoredBy?: Maybe<Scalars['ObjectId']>;
4129
4133
  /** Who last restored this tipe situasi. */
4130
4134
  restorer?: Maybe<User>;
4135
+ /** Inversed relation from Tipe Situasi field of neu:personalia:situation model. */
4136
+ situation?: Maybe<Array<Situation>>;
4131
4137
  /** Detail dari Tipe situasi. */
4132
4138
  situationTypeName?: Maybe<Scalars['String']>;
4133
- /** Inversed relation from Tipe Situasi field of neu:personalia:situation model. */
4134
- situations?: Maybe<Array<Situation>>;
4135
4139
  /** When this tipe situasi was last synced. */
4136
4140
  syncedAt?: Maybe<Scalars['Date']>;
4137
4141
  /** When this tipe situasi was last updated. */
@@ -4150,7 +4154,7 @@ export type SituationTypeBranchesArgs = {
4150
4154
  search?: InputMaybe<Scalars['String']>;
4151
4155
  sort?: InputMaybe<Scalars['Json']>;
4152
4156
  };
4153
- export type SituationTypeSituationsArgs = {
4157
+ export type SituationTypeSituationArgs = {
4154
4158
  filter?: InputMaybe<Scalars['Json']>;
4155
4159
  ids?: InputMaybe<Array<Scalars['ObjectId']>>;
4156
4160
  limit?: InputMaybe<Scalars['Int']>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-interfaces",
3
- "version": "1.1.1-beta.5",
3
+ "version": "1.2.0-beta.1",
4
4
  "description": "Interface library of Neutron.",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -59,7 +59,7 @@
59
59
  "@neon.id/interfaces": "0.153.0",
60
60
  "@neon.id/office": "0.23.0",
61
61
  "@neon.id/utils": "0.38.0",
62
- "@neutron.co.id/personalia-models": "1.2.1-beta.5",
62
+ "@neutron.co.id/personalia-models": "1.3.0-beta.1",
63
63
  "@nuxt/kit": "3.2.3",
64
64
  "vue": "3.2.47"
65
65
  },
@@ -124,12 +124,12 @@
124
124
  "@neon.id/interfaces": "^0.153.0",
125
125
  "@neon.id/office": "^0.23.0",
126
126
  "@neon.id/utils": "^0.38.0",
127
- "@neutron.co.id/personalia-models": "^1.2.1-beta.5",
127
+ "@neutron.co.id/personalia-models": "^1.3.0-beta.1",
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": 62
134
+ "build": 63
135
135
  }