@neutron.co.id/operasional-interfaces 1.16.1-beta.4 → 1.16.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.
@@ -12,9 +12,9 @@ export function useImportShift() {
12
12
  const appStore = useAppStore();
13
13
  const officeAppUrl = computed(() => {
14
14
  if (appStore.appEnv === "dev")
15
- return "https://dev.api.office.pendidikan.neutron.neon.id";
16
- if (appStore.appEnv === "prod")
17
15
  return "https://dev.api.office.operasional.neutron.neon.id";
16
+ if (appStore.appEnv === "prod")
17
+ return "https://api.office.operasional.neutron.neon.id";
18
18
  return "http://localhost:7020";
19
19
  });
20
20
  const loadings = ref(/* @__PURE__ */ new Set());
@@ -108,6 +108,7 @@ export function useImportShift() {
108
108
  canClose: true,
109
109
  color: "success"
110
110
  });
111
+ window.history.back();
111
112
  } catch (error) {
112
113
  console.error("onUploadCsvFile: error", error);
113
114
  toast.push({
@@ -37,11 +37,6 @@ const goBack = () => {
37
37
  window.history.back()
38
38
  }
39
39
 
40
- const handleImportCsvFile = async (upload: Mightbe<NFileUpload>) => {
41
- await onUploadCsvFile(upload)
42
- goBack()
43
- }
44
-
45
40
  function timeAgo(date: Mightbe<string>, word: string) {
46
41
  if (!date) return `Never ${word}`
47
42
  const time = useTimeAgo(date, {})
@@ -127,7 +122,7 @@ function timeAgo(date: Mightbe<string>, word: string) {
127
122
  color="dark"
128
123
  size="sm"
129
124
  is-rounded
130
- @click="handleImportCsvFile(upload)"
125
+ @click="onUploadCsvFile(upload)"
131
126
  />
132
127
  </div>
133
128
  </div>
@@ -12789,9 +12789,9 @@ function useImportShift() {
12789
12789
  const appStore = context.useAppStore();
12790
12790
  const officeAppUrl = vue.computed(() => {
12791
12791
  if (appStore.appEnv === "dev")
12792
- return "https://dev.api.office.pendidikan.neutron.neon.id";
12793
- if (appStore.appEnv === "prod")
12794
12792
  return "https://dev.api.office.operasional.neutron.neon.id";
12793
+ if (appStore.appEnv === "prod")
12794
+ return "https://api.office.operasional.neutron.neon.id";
12795
12795
  return "http://localhost:7020";
12796
12796
  });
12797
12797
  const loadings = vue.ref(/* @__PURE__ */ new Set());
@@ -12885,6 +12885,7 @@ function useImportShift() {
12885
12885
  canClose: true,
12886
12886
  color: "success"
12887
12887
  });
12888
+ window.history.back();
12888
12889
  } catch (error) {
12889
12890
  console.error("onUploadCsvFile: error", error);
12890
12891
  toast.push({
@@ -26372,7 +26373,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
26372
26373
  };
26373
26374
  }
26374
26375
  });
26375
- const _withScopeId = (n) => (vue.pushScopeId("data-v-63e9ee2c"), n = n(), vue.popScopeId(), n);
26376
+ const _withScopeId = (n) => (vue.pushScopeId("data-v-818a1e6a"), n = n(), vue.popScopeId(), n);
26376
26377
  const _hoisted_1 = { class: "flex items-center gap-2" };
26377
26378
  const _hoisted_2 = { class: "button-cols" };
26378
26379
  const _hoisted_3 = { class: "button-row" };
@@ -26416,10 +26417,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
26416
26417
  const goBack = () => {
26417
26418
  window.history.back();
26418
26419
  };
26419
- const handleImportCsvFile = async (upload2) => {
26420
- await onUploadCsvFile(upload2);
26421
- goBack();
26422
- };
26423
26420
  return (_ctx, _cache) => {
26424
26421
  return vue.openBlock(), vue.createBlock(vue.unref(interfaces.NeonPart), {
26425
26422
  icon: "duotone:file-import",
@@ -26489,7 +26486,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
26489
26486
  color: "dark",
26490
26487
  size: "sm",
26491
26488
  "is-rounded": "",
26492
- onClick: _cache[0] || (_cache[0] = ($event) => handleImportCsvFile(upload.value))
26489
+ onClick: _cache[0] || (_cache[0] = ($event) => vue.unref(onUploadCsvFile)(upload.value))
26493
26490
  })
26494
26491
  ])
26495
26492
  ])
@@ -26500,7 +26497,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
26500
26497
  };
26501
26498
  }
26502
26499
  });
26503
- const ShiftStaffImport = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-63e9ee2c"]]);
26500
+ const ShiftStaffImport = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-818a1e6a"]]);
26504
26501
  const all = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26505
26502
  __proto__: null,
26506
26503
  AttendanceCollection: _sfc_main$1g,
@@ -12770,9 +12770,9 @@ function useImportShift() {
12770
12770
  const appStore = useAppStore();
12771
12771
  const officeAppUrl = computed(() => {
12772
12772
  if (appStore.appEnv === "dev")
12773
- return "https://dev.api.office.pendidikan.neutron.neon.id";
12774
- if (appStore.appEnv === "prod")
12775
12773
  return "https://dev.api.office.operasional.neutron.neon.id";
12774
+ if (appStore.appEnv === "prod")
12775
+ return "https://api.office.operasional.neutron.neon.id";
12776
12776
  return "http://localhost:7020";
12777
12777
  });
12778
12778
  const loadings = ref(/* @__PURE__ */ new Set());
@@ -12866,6 +12866,7 @@ function useImportShift() {
12866
12866
  canClose: true,
12867
12867
  color: "success"
12868
12868
  });
12869
+ window.history.back();
12869
12870
  } catch (error) {
12870
12871
  console.error("onUploadCsvFile: error", error);
12871
12872
  toast.push({
@@ -26353,7 +26354,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26353
26354
  };
26354
26355
  }
26355
26356
  });
26356
- const _withScopeId = (n) => (pushScopeId("data-v-63e9ee2c"), n = n(), popScopeId(), n);
26357
+ const _withScopeId = (n) => (pushScopeId("data-v-818a1e6a"), n = n(), popScopeId(), n);
26357
26358
  const _hoisted_1 = { class: "flex items-center gap-2" };
26358
26359
  const _hoisted_2 = { class: "button-cols" };
26359
26360
  const _hoisted_3 = { class: "button-row" };
@@ -26397,10 +26398,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26397
26398
  const goBack = () => {
26398
26399
  window.history.back();
26399
26400
  };
26400
- const handleImportCsvFile = async (upload2) => {
26401
- await onUploadCsvFile(upload2);
26402
- goBack();
26403
- };
26404
26401
  return (_ctx, _cache) => {
26405
26402
  return openBlock(), createBlock(unref(NeonPart), {
26406
26403
  icon: "duotone:file-import",
@@ -26470,7 +26467,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26470
26467
  color: "dark",
26471
26468
  size: "sm",
26472
26469
  "is-rounded": "",
26473
- onClick: _cache[0] || (_cache[0] = ($event) => handleImportCsvFile(upload.value))
26470
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(onUploadCsvFile)(upload.value))
26474
26471
  })
26475
26472
  ])
26476
26473
  ])
@@ -26481,7 +26478,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26481
26478
  };
26482
26479
  }
26483
26480
  });
26484
- const ShiftStaffImport = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-63e9ee2c"]]);
26481
+ const ShiftStaffImport = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-818a1e6a"]]);
26485
26482
  const all = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26486
26483
  __proto__: null,
26487
26484
  AttendanceCollection: _sfc_main$1g,
@@ -486,11 +486,11 @@
486
486
  padding-bottom: 0.5rem
487
487
  }
488
488
 
489
- .button-cols[data-v-63e9ee2c] {
489
+ .button-cols[data-v-818a1e6a] {
490
490
  display: flex;
491
491
  flex-direction: column
492
492
  }
493
- .button-cols[data-v-63e9ee2c] > :not([hidden]) ~ :not([hidden]) {
493
+ .button-cols[data-v-818a1e6a] > :not([hidden]) ~ :not([hidden]) {
494
494
  --tw-space-y-reverse: 0;
495
495
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
496
496
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
@@ -499,43 +499,43 @@
499
499
  --tw-space-x-reverse: 1
500
500
  }
501
501
  @media (min-width: 576px) {
502
- .button-cols[data-v-63e9ee2c] {
502
+ .button-cols[data-v-818a1e6a] {
503
503
  flex-direction: row;
504
504
  align-items: center
505
505
  }
506
506
  }
507
- .button-row[data-v-63e9ee2c] {
507
+ .button-row[data-v-818a1e6a] {
508
508
  display: flex;
509
509
  flex: 1 1 0%;
510
510
  align-items: center
511
511
  }
512
- .button-row[data-v-63e9ee2c] > :not([hidden]) ~ :not([hidden]) {
512
+ .button-row[data-v-818a1e6a] > :not([hidden]) ~ :not([hidden]) {
513
513
  --tw-space-x-reverse: 0;
514
514
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
515
515
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))
516
516
  }
517
- .time-ago[data-v-63e9ee2c] {
517
+ .time-ago[data-v-818a1e6a] {
518
518
  font-size: 0.875rem;
519
519
  font-weight: 500;
520
520
  line-height: 1;
521
521
  --tw-text-opacity: 1;
522
522
  color: rgb(161 161 170 / var(--tw-text-opacity))
523
523
  }
524
- .button-end[data-v-63e9ee2c] {
524
+ .button-end[data-v-818a1e6a] {
525
525
  display: flex;
526
526
  flex: 1 1 0%
527
527
  }
528
- .button-end[data-v-63e9ee2c] > :not([hidden]) ~ :not([hidden]) {
528
+ .button-end[data-v-818a1e6a] > :not([hidden]) ~ :not([hidden]) {
529
529
  --tw-space-x-reverse: 0;
530
530
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
531
531
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))
532
532
  }
533
533
  @media (min-width: 576px) {
534
- .button-end[data-v-63e9ee2c] {
534
+ .button-end[data-v-818a1e6a] {
535
535
  justify-content: flex-end
536
536
  }
537
537
  }
538
- .warning-label[data-v-63e9ee2c] {
538
+ .warning-label[data-v-818a1e6a] {
539
539
  font-size: 0.875rem;
540
540
  font-weight: 500;
541
541
  line-height: 1;
package/build/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.16.1-beta.4",
7
+ "version": "1.16.1",
8
8
  "builder": {
9
9
  "@neon.id/module-builder": "1.8.0",
10
10
  "unbuild": "2.0.0"
package/build/nuxt.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.16.1-beta.4",
7
+ "version": "1.16.1",
8
8
  "builder": {
9
9
  "@neon.id/module-builder": "1.8.0",
10
10
  "unbuild": "2.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-interfaces",
3
- "version": "1.16.1-beta.4",
3
+ "version": "1.16.1",
4
4
  "description": "Interface library of Neutron Operasional.",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -78,8 +78,8 @@
78
78
  "@neon.id/nuxt": "^1.5.0",
79
79
  "@neon.id/office": "1.46.0",
80
80
  "@neon.id/utils": "^1.51.0",
81
- "@neutron.co.id/operasional-modules": "1.12.13-beta.1",
82
- "@neutron.co.id/personalia-models": "1.13.8-beta.1",
81
+ "@neutron.co.id/operasional-modules": "1.12.13",
82
+ "@neutron.co.id/personalia-models": "1.13.8",
83
83
  "@nuxt/kit": "^3.12.3",
84
84
  "file-saver": "^2.0.5",
85
85
  "papaparse": "5.4.1",
@@ -153,8 +153,8 @@
153
153
  "@neon.id/nuxt": "^1.5.0",
154
154
  "@neon.id/office": "1.46.0",
155
155
  "@neon.id/utils": "^1.51.0",
156
- "@neutron.co.id/operasional-modules": "1.12.13-beta.1",
157
- "@neutron.co.id/personalia-models": "1.13.8-beta.1",
156
+ "@neutron.co.id/operasional-modules": "1.12.13",
157
+ "@neutron.co.id/personalia-models": "1.13.8",
158
158
  "@nuxt/kit": "^3.12.3",
159
159
  "file-saver": "^2.0.5",
160
160
  "qr-scanner": "^1.4.2",
@@ -164,5 +164,5 @@
164
164
  "publishConfig": {
165
165
  "access": "public"
166
166
  },
167
- "build": 174
167
+ "build": 176
168
168
  }