@neutron.co.id/operasional-interfaces 1.1.0 → 1.1.1-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 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__$3 = vue.defineComponent({ name: "XxxButton" });
12
- const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
13
- ...__default__$3,
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$6 = /* @__PURE__ */ vue.defineComponent({
26
26
  }
27
27
  });
28
28
  const StaffModel = personaliaModels.models.StaffModel;
29
- const __default__$2 = vue.defineComponent({
29
+ const __default__$1 = vue.defineComponent({
30
30
  name: "StaffCollection"
31
31
  });
32
- const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
33
- ...__default__$2,
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$5 = /* @__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$4 = /* @__PURE__ */ vue.defineComponent({
49
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
50
50
  __name: "StaffSingle",
51
51
  setup(__props) {
52
52
  const {
@@ -199,260 +199,15 @@ const _export_sfc = (sfc, props) => {
199
199
  }
200
200
  return target;
201
201
  };
202
- const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-dbeb1998"]]);
202
+ const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-dbeb1998"]]);
203
203
  const TaskModel = personaliaModels.models.TaskModel;
204
- const __default__$1 = vue.defineComponent({ name: "TaskCollection" });
205
- const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
206
- ...__default__$1,
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$2 = /* @__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).branches
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).giveAssignments
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).supervisingAssignments
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).doingAssignments
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).helpAssignments
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 || ""),
334
- end: new Date(vue.unref(values).estimatedEndDate || "")
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
- });
448
- const TaskPlanningModel = personaliaModels.models.TaskModel;
449
- const __default__ = vue.defineComponent({ name: "TaskPlanningCollection" });
204
+ const __default__ = vue.defineComponent({ name: "TaskCollection" });
450
205
  const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
451
206
  ...__default__,
452
207
  setup(__props) {
453
208
  context.useCollection();
454
209
  return (_ctx, _cache) => {
455
- return vue.openBlock(), vue.createBlock(vue.unref(context.NeonCollection), { class: "neu-pekerjaan-task-planning-collection" }, {
210
+ return vue.openBlock(), vue.createBlock(vue.unref(context.NeonCollection), { class: "neu-task-collection" }, {
456
211
  default: vue.withCtx(() => [
457
212
  vue.createVNode(vue.unref(office.OfficeCollectionTable))
458
213
  ]),
@@ -463,7 +218,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
463
218
  }
464
219
  });
465
220
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
466
- __name: "TaskPlanningSingle",
221
+ __name: "TaskSingle",
467
222
  setup(__props) {
468
223
  const {
469
224
  fields,
@@ -483,7 +238,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
483
238
  values.value.estimatedEndDate = date == null ? void 0 : date.end.toISOString();
484
239
  }
485
240
  return (_ctx, _cache) => {
486
- return vue.openBlock(), vue.createBlock(vue.unref(context.NeonSingle), { class: "neu-pekerjaan-task-planning-single" }, {
241
+ return vue.openBlock(), vue.createBlock(vue.unref(context.NeonSingle), { class: "neu-task-single" }, {
487
242
  default: vue.withCtx(() => [
488
243
  vue.createVNode(vue.unref(office.OfficeTabs), { "use-url": vue.unref(isMain) }, {
489
244
  default: vue.withCtx(() => [
@@ -692,16 +447,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
692
447
  });
693
448
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
694
449
  __proto__: null,
695
- StaffCollection: _sfc_main$5,
450
+ StaffCollection: _sfc_main$3,
696
451
  StaffModel,
697
452
  StaffSingle,
698
- TaskCollection: _sfc_main$3,
453
+ TaskCollection: _sfc_main$1,
699
454
  TaskModel,
700
- TaskPlanningCollection: _sfc_main$1,
701
- TaskPlanningModel,
702
- TaskPlanningSingle: _sfc_main,
703
- TaskSingle: _sfc_main$2,
704
- XxxButton: _sfc_main$6
455
+ TaskSingle: _sfc_main,
456
+ XxxButton: _sfc_main$4
705
457
  }, Symbol.toStringTag, { value: "Module" }));
706
458
  function registerComponents(app) {
707
459
  Object.entries(components).forEach(([name, component]) => {
@@ -718,13 +470,10 @@ const OperasionalInterfacesPlugin = {
718
470
  };
719
471
  exports.OperasionalInterfacesPlugin = OperasionalInterfacesPlugin;
720
472
  exports.Schema = graphql;
721
- exports.StaffCollection = _sfc_main$5;
473
+ exports.StaffCollection = _sfc_main$3;
722
474
  exports.StaffModel = StaffModel;
723
475
  exports.StaffSingle = StaffSingle;
724
- exports.TaskCollection = _sfc_main$3;
476
+ exports.TaskCollection = _sfc_main$1;
725
477
  exports.TaskModel = TaskModel;
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;
478
+ exports.TaskSingle = _sfc_main;
479
+ exports.XxxButton = _sfc_main$4;
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__$3 = defineComponent({ name: "XxxButton" });
10
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
11
- ...__default__$3,
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$6 = /* @__PURE__ */ defineComponent({
24
24
  }
25
25
  });
26
26
  const StaffModel = models.StaffModel;
27
- const __default__$2 = defineComponent({
27
+ const __default__$1 = defineComponent({
28
28
  name: "StaffCollection"
29
29
  });
30
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
31
- ...__default__$2,
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$5 = /* @__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$4 = /* @__PURE__ */ defineComponent({
47
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
48
48
  __name: "StaffSingle",
49
49
  setup(__props) {
50
50
  const {
@@ -197,260 +197,15 @@ const _export_sfc = (sfc, props) => {
197
197
  }
198
198
  return target;
199
199
  };
200
- const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-dbeb1998"]]);
200
+ const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-dbeb1998"]]);
201
201
  const TaskModel = models.TaskModel;
202
- const __default__$1 = defineComponent({ name: "TaskCollection" });
203
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
204
- ...__default__$1,
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$2 = /* @__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).branches
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).giveAssignments
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).supervisingAssignments
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).doingAssignments
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).helpAssignments
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 || ""),
332
- end: new Date(unref(values).estimatedEndDate || "")
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
- });
446
- const TaskPlanningModel = models.TaskModel;
447
- const __default__ = defineComponent({ name: "TaskPlanningCollection" });
202
+ const __default__ = defineComponent({ name: "TaskCollection" });
448
203
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
449
204
  ...__default__,
450
205
  setup(__props) {
451
206
  useCollection();
452
207
  return (_ctx, _cache) => {
453
- return openBlock(), createBlock(unref(NeonCollection), { class: "neu-pekerjaan-task-planning-collection" }, {
208
+ return openBlock(), createBlock(unref(NeonCollection), { class: "neu-task-collection" }, {
454
209
  default: withCtx(() => [
455
210
  createVNode(unref(OfficeCollectionTable))
456
211
  ]),
@@ -461,7 +216,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
461
216
  }
462
217
  });
463
218
  const _sfc_main = /* @__PURE__ */ defineComponent({
464
- __name: "TaskPlanningSingle",
219
+ __name: "TaskSingle",
465
220
  setup(__props) {
466
221
  const {
467
222
  fields,
@@ -481,7 +236,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
481
236
  values.value.estimatedEndDate = date == null ? void 0 : date.end.toISOString();
482
237
  }
483
238
  return (_ctx, _cache) => {
484
- return openBlock(), createBlock(unref(NeonSingle), { class: "neu-pekerjaan-task-planning-single" }, {
239
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-task-single" }, {
485
240
  default: withCtx(() => [
486
241
  createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
487
242
  default: withCtx(() => [
@@ -690,16 +445,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
690
445
  });
691
446
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
692
447
  __proto__: null,
693
- StaffCollection: _sfc_main$5,
448
+ StaffCollection: _sfc_main$3,
694
449
  StaffModel,
695
450
  StaffSingle,
696
- TaskCollection: _sfc_main$3,
451
+ TaskCollection: _sfc_main$1,
697
452
  TaskModel,
698
- TaskPlanningCollection: _sfc_main$1,
699
- TaskPlanningModel,
700
- TaskPlanningSingle: _sfc_main,
701
- TaskSingle: _sfc_main$2,
702
- XxxButton: _sfc_main$6
453
+ TaskSingle: _sfc_main,
454
+ XxxButton: _sfc_main$4
703
455
  }, Symbol.toStringTag, { value: "Module" }));
704
456
  function registerComponents(app) {
705
457
  Object.entries(components).forEach(([name, component]) => {
@@ -717,14 +469,11 @@ const OperasionalInterfacesPlugin = {
717
469
  export {
718
470
  OperasionalInterfacesPlugin,
719
471
  graphql as Schema,
720
- _sfc_main$5 as StaffCollection,
472
+ _sfc_main$3 as StaffCollection,
721
473
  StaffModel,
722
474
  StaffSingle,
723
- _sfc_main$3 as TaskCollection,
475
+ _sfc_main$1 as TaskCollection,
724
476
  TaskModel,
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
477
+ _sfc_main as TaskSingle,
478
+ _sfc_main$4 as XxxButton
730
479
  };
@@ -1,4 +1,3 @@
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" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "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" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "estimatedHourByDay" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd">;
2
2
  export type TTaskModel = typeof TaskModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-interfaces",
3
- "version": "1.1.0",
3
+ "version": "1.1.1-beta.2",
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.0",
62
+ "@neutron.co.id/personalia-models": "1.2.1-beta.2",
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.0",
127
+ "@neutron.co.id/personalia-models": "^1.2.1-beta.2",
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": 57
134
+ "build": 59
135
135
  }
@@ -1,2 +0,0 @@
1
- export * from './task-planning.types';
2
- export * from './sheets';
@@ -1,2 +0,0 @@
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;
@@ -1,2 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- export { default as TaskPlanningCollection } from './TaskPlanningCollection.vue';
2
- export { default as TaskPlanningSingle } from './TaskPlanningSingle.vue';
@@ -1,2 +0,0 @@
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;