@neutron.co.id/operasional-interfaces 1.7.0 → 1.7.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
@@ -9715,7 +9715,7 @@ function mitt(n) {
9715
9715
  } };
9716
9716
  }
9717
9717
  const bus = mitt();
9718
- const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-94a55da5"), n = n(), vue.popScopeId(), n);
9718
+ const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-932878ae"), n = n(), vue.popScopeId(), n);
9719
9719
  const _hoisted_1$g = { id: "view-checkIns" };
9720
9720
  const _hoisted_2$b = { class: "summary" };
9721
9721
  const _hoisted_3$4 = { class: "wrapper" };
@@ -9807,6 +9807,10 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
9807
9807
  isAsking.value = true;
9808
9808
  type.value = "out";
9809
9809
  }
9810
+ function onPresenceCheckout(data2) {
9811
+ isAsking.value = true;
9812
+ type.value = "checkout";
9813
+ }
9810
9814
  async function onPresenceHome() {
9811
9815
  var _a;
9812
9816
  await checkInStaff(null, "home", (_a = staff.value) == null ? void 0 : _a.id);
@@ -9844,6 +9848,9 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
9844
9848
  if (type2 === "out") {
9845
9849
  isOut.value = true;
9846
9850
  }
9851
+ if (type2 === "checkout") {
9852
+ isOut.value = true;
9853
+ }
9847
9854
  toast.push({
9848
9855
  id: toastId,
9849
9856
  icon: "check",
@@ -9960,6 +9967,23 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
9960
9967
  ]),
9961
9968
  _: 1
9962
9969
  /* STABLE */
9970
+ }),
9971
+ vue.createVNode(vue.unref(interfaces.NeonSlide), null, {
9972
+ default: vue.withCtx(() => [
9973
+ vue.createVNode(vue.unref(interfaces.NeonStat), {
9974
+ label: "Checkout",
9975
+ icon: "barcode-read",
9976
+ onClick: onPresenceCheckout
9977
+ }, {
9978
+ default: vue.withCtx(() => [
9979
+ vue.createTextVNode("Checkout")
9980
+ ]),
9981
+ _: 1
9982
+ /* STABLE */
9983
+ })
9984
+ ]),
9985
+ _: 1
9986
+ /* STABLE */
9963
9987
  })
9964
9988
  ]),
9965
9989
  _: 1
@@ -10035,8 +10059,8 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
10035
10059
  };
10036
10060
  }
10037
10061
  });
10038
- const CheckInPresenceCollection_vue_vue_type_style_index_0_scoped_94a55da5_lang = "";
10039
- const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["__scopeId", "data-v-94a55da5"]]);
10062
+ const CheckInPresenceCollection_vue_vue_type_style_index_0_scoped_932878ae_lang = "";
10063
+ const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["__scopeId", "data-v-932878ae"]]);
10040
10064
  const _hoisted_1$f = { class: "grid gap-4 sm:grid-cols-2" };
10041
10065
  const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
10042
10066
  __name: "CheckInSingle",
@@ -10198,7 +10222,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
10198
10222
  onSubmit: vue.unref(saveOne)
10199
10223
  }, {
10200
10224
  default: vue.withCtx(() => [
10201
- vue.unref(values).type === "in" || vue.unref(values).type === "out" ? (vue.openBlock(), vue.createBlock(vue.unref(office.OfficeRelation), {
10225
+ vue.unref(values).type === "in" || vue.unref(values).type === "out" || vue.unref(values).type === "checkout" ? (vue.openBlock(), vue.createBlock(vue.unref(office.OfficeRelation), {
10202
10226
  key: 0,
10203
10227
  modelValue: vue.unref(values),
10204
10228
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(values) ? values.value = $event : null),
@@ -10245,8 +10269,8 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
10245
10269
  };
10246
10270
  }
10247
10271
  });
10248
- const CheckInExternal_vue_vue_type_style_index_0_scoped_9c4a435e_lang = "";
10249
- const CheckInExternal = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["__scopeId", "data-v-9c4a435e"]]);
10272
+ const CheckInExternal_vue_vue_type_style_index_0_scoped_b8f07a39_lang = "";
10273
+ const CheckInExternal = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["__scopeId", "data-v-b8f07a39"]]);
10250
10274
  const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-d23b6de5"), n = n(), vue.popScopeId(), n);
10251
10275
  const _hoisted_1$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode(
10252
10276
  "h4",
package/build/index.mjs CHANGED
@@ -9713,7 +9713,7 @@ function mitt(n) {
9713
9713
  } };
9714
9714
  }
9715
9715
  const bus = mitt();
9716
- const _withScopeId$2 = (n) => (pushScopeId("data-v-94a55da5"), n = n(), popScopeId(), n);
9716
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-932878ae"), n = n(), popScopeId(), n);
9717
9717
  const _hoisted_1$g = { id: "view-checkIns" };
9718
9718
  const _hoisted_2$b = { class: "summary" };
9719
9719
  const _hoisted_3$4 = { class: "wrapper" };
@@ -9805,6 +9805,10 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
9805
9805
  isAsking.value = true;
9806
9806
  type.value = "out";
9807
9807
  }
9808
+ function onPresenceCheckout(data2) {
9809
+ isAsking.value = true;
9810
+ type.value = "checkout";
9811
+ }
9808
9812
  async function onPresenceHome() {
9809
9813
  var _a;
9810
9814
  await checkInStaff(null, "home", (_a = staff.value) == null ? void 0 : _a.id);
@@ -9842,6 +9846,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
9842
9846
  if (type2 === "out") {
9843
9847
  isOut.value = true;
9844
9848
  }
9849
+ if (type2 === "checkout") {
9850
+ isOut.value = true;
9851
+ }
9845
9852
  toast.push({
9846
9853
  id: toastId,
9847
9854
  icon: "check",
@@ -9958,6 +9965,23 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
9958
9965
  ]),
9959
9966
  _: 1
9960
9967
  /* STABLE */
9968
+ }),
9969
+ createVNode(unref(NeonSlide), null, {
9970
+ default: withCtx(() => [
9971
+ createVNode(unref(NeonStat), {
9972
+ label: "Checkout",
9973
+ icon: "barcode-read",
9974
+ onClick: onPresenceCheckout
9975
+ }, {
9976
+ default: withCtx(() => [
9977
+ createTextVNode("Checkout")
9978
+ ]),
9979
+ _: 1
9980
+ /* STABLE */
9981
+ })
9982
+ ]),
9983
+ _: 1
9984
+ /* STABLE */
9961
9985
  })
9962
9986
  ]),
9963
9987
  _: 1
@@ -10033,8 +10057,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
10033
10057
  };
10034
10058
  }
10035
10059
  });
10036
- const CheckInPresenceCollection_vue_vue_type_style_index_0_scoped_94a55da5_lang = "";
10037
- const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["__scopeId", "data-v-94a55da5"]]);
10060
+ const CheckInPresenceCollection_vue_vue_type_style_index_0_scoped_932878ae_lang = "";
10061
+ const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["__scopeId", "data-v-932878ae"]]);
10038
10062
  const _hoisted_1$f = { class: "grid gap-4 sm:grid-cols-2" };
10039
10063
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
10040
10064
  __name: "CheckInSingle",
@@ -10196,7 +10220,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
10196
10220
  onSubmit: unref(saveOne)
10197
10221
  }, {
10198
10222
  default: withCtx(() => [
10199
- unref(values).type === "in" || unref(values).type === "out" ? (openBlock(), createBlock(unref(OfficeRelation), {
10223
+ unref(values).type === "in" || unref(values).type === "out" || unref(values).type === "checkout" ? (openBlock(), createBlock(unref(OfficeRelation), {
10200
10224
  key: 0,
10201
10225
  modelValue: unref(values),
10202
10226
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(values) ? values.value = $event : null),
@@ -10243,8 +10267,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
10243
10267
  };
10244
10268
  }
10245
10269
  });
10246
- const CheckInExternal_vue_vue_type_style_index_0_scoped_9c4a435e_lang = "";
10247
- const CheckInExternal = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["__scopeId", "data-v-9c4a435e"]]);
10270
+ const CheckInExternal_vue_vue_type_style_index_0_scoped_b8f07a39_lang = "";
10271
+ const CheckInExternal = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["__scopeId", "data-v-b8f07a39"]]);
10248
10272
  const _withScopeId$1 = (n) => (pushScopeId("data-v-d23b6de5"), n = n(), popScopeId(), n);
10249
10273
  const _hoisted_1$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
10250
10274
  "h4",
package/build/style.css CHANGED
@@ -69,15 +69,15 @@
69
69
  display: none
70
70
  }
71
71
 
72
- #view-checkIns[data-v-94a55da5] {
72
+ #view-checkIns[data-v-932878ae] {
73
73
 
74
74
  height: 100%
75
75
  }
76
- #view-checkIns .wrapper[data-v-94a55da5] {
76
+ #view-checkIns .wrapper[data-v-932878ae] {
77
77
 
78
78
  height: 100%
79
79
  }
80
- #view-checkIns .header[data-v-94a55da5] {
80
+ #view-checkIns .header[data-v-932878ae] {
81
81
 
82
82
  display: flex;
83
83
 
@@ -93,15 +93,15 @@
93
93
 
94
94
  padding-bottom: 0.5rem
95
95
  }
96
- #view-checkIns .header .start[data-v-94a55da5] {
96
+ #view-checkIns .header .start[data-v-932878ae] {
97
97
 
98
98
  line-height: 1.25
99
99
  }
100
- #view-checkIns .header .title[data-v-94a55da5] {
100
+ #view-checkIns .header .title[data-v-932878ae] {
101
101
 
102
102
  font-weight: 700
103
103
  }
104
- #view-checkIns .header .description[data-v-94a55da5] {
104
+ #view-checkIns .header .description[data-v-932878ae] {
105
105
 
106
106
  font-size: 0.875rem;
107
107
 
@@ -109,13 +109,13 @@
109
109
 
110
110
  color: rgb(161 161 170 / var(--tw-text-opacity))
111
111
  }
112
- #view-checkIns .buttons[data-v-94a55da5] {
112
+ #view-checkIns .buttons[data-v-932878ae] {
113
113
 
114
114
  display: flex;
115
115
 
116
116
  align-items: center
117
117
  }
118
- #view-checkIns .buttons[data-v-94a55da5] > :not([hidden]) ~ :not([hidden]) {
118
+ #view-checkIns .buttons[data-v-932878ae] > :not([hidden]) ~ :not([hidden]) {
119
119
 
120
120
  --tw-space-x-reverse: 0;
121
121
 
@@ -123,11 +123,11 @@
123
123
 
124
124
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))
125
125
  }
126
- #view-checkIns .buttons[data-v-94a55da5] {
126
+ #view-checkIns .buttons[data-v-932878ae] {
127
127
 
128
128
  padding-right: 0.25rem
129
129
  }
130
- #view-checkIns .summary[data-v-94a55da5] {
130
+ #view-checkIns .summary[data-v-932878ae] {
131
131
 
132
132
  padding-bottom: 0.5rem
133
133
  }
@@ -136,7 +136,7 @@
136
136
  display: block
137
137
  }
138
138
 
139
- .neu-checkIn-single[data-v-9c4a435e] {
139
+ .neu-checkIn-single[data-v-b8f07a39] {
140
140
  display: block
141
141
  }
142
142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-interfaces",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Interface library of Neutron Operasional.",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -146,5 +146,5 @@
146
146
  "publishConfig": {
147
147
  "access": "public"
148
148
  },
149
- "build": 106
149
+ "build": 107
150
150
  }