@fewangsit/wangsvue-gsts 1.0.0-alpha.37 → 1.0.0-alpha.39

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.
@@ -20,6 +20,10 @@ export interface ApproverInfoProps {
20
20
  * @default true
21
21
  */
22
22
  showShortInfo?: boolean;
23
+ /**
24
+ * To customize the level 0 label, for example 'Senior'
25
+ */
26
+ customLevelZeroLabel?: string;
23
27
  /**
24
28
  * To set label text when showShortInfo is false
25
29
  */
@@ -1,39 +1,40 @@
1
- import { defineComponent as C, shallowRef as B, computed as F, createElementBlock as o, openBlock as a, Fragment as i, createElementVNode as l, createVNode as m, toDisplayString as r, withCtx as I, renderList as g, createBlock as h, createCommentVNode as k } from "vue";
2
- import { f as N } from "../utils/date.util.es.js";
3
- import { _ as w } from "../badge/index.es.js";
1
+ import { defineComponent as N, shallowRef as B, computed as F, createElementBlock as o, openBlock as t, Fragment as i, createElementVNode as l, createVNode as m, toDisplayString as r, withCtx as I, renderList as k, createBlock as g, createCommentVNode as h, createTextVNode as w } from "vue";
2
+ import { f as V } from "../utils/date.util.es.js";
3
+ import { _ as L } from "../badge/index.es.js";
4
4
  import { _ as $ } from "../dialog/index.es.js";
5
5
  import { _ as A } from "../icon/index.es.js";
6
- const V = {
6
+ const E = {
7
7
  class: "flex justify-end gap-1 items-center pb-1 flex-wrap whitespace-nowrap",
8
8
  "data-wv-name": "approver-info"
9
- }, E = { class: "text-primary-500" }, H = { class: "text-general-800" }, M = { key: 1 }, S = { class: "flex flex-col gap-3 justify-between" }, U = { class: "flex justify-between" }, P = { class: "text-general-800 text-xs font-medium" }, R = { class: "flex justify-between items-center" }, T = { class: "text-primary-500 font-medium text-xs" }, q = {
9
+ }, Z = { class: "text-primary-500" }, H = { class: "text-general-800" }, M = { key: 1 }, S = { class: "flex flex-col gap-3 justify-between" }, T = { class: "flex justify-between" }, U = { class: "text-general-800 text-xs font-medium" }, P = { class: "flex justify-between items-center" }, R = { class: "text-primary-500 font-medium text-xs" }, q = {
10
10
  key: 0,
11
11
  class: "text-general-800 font-normal text-xs"
12
12
  }, z = {
13
13
  key: 1,
14
14
  class: "flex gap-1 justify-end items-center"
15
- }, G = { class: "text-general-800 font-normal text-xs" }, X = /* @__PURE__ */ C({
15
+ }, G = { class: "text-general-800 font-normal text-xs" }, X = /* @__PURE__ */ N({
16
16
  __name: "ApproverInfo",
17
17
  props: {
18
18
  approvals: {},
19
19
  showShortInfo: { type: Boolean, default: !0 },
20
+ customLevelZeroLabel: {},
20
21
  label: {},
21
22
  btnLabel: {},
22
23
  useFormatDate: { type: Boolean, default: !0 }
23
24
  },
24
25
  setup(D) {
25
- const u = D, c = B(!1), d = F(() => {
26
- var p, s, n, v, y, _, x;
27
- let t, e;
28
- return (p = u.approvals) == null || p.forEach((b) => {
29
- e = b.approvers.findIndex((L) => !!L.actionAt), t = e === -1 ? 0 : b.level - 1, e = e === -1 ? 0 : e;
26
+ const u = D, p = B(!1), d = F(() => {
27
+ var c, a, n, v, y, x, _;
28
+ let s, e;
29
+ return (c = u.approvals) == null || c.forEach((b) => {
30
+ e = b.approvers.findIndex((C) => !!C.actionAt), s = e === -1 ? 0 : b.level - 1, e = e === -1 ? 0 : e;
30
31
  }), {
31
- name: (v = (n = (s = u.approvals) == null ? void 0 : s[t]) == null ? void 0 : n.approvers[e]) == null ? void 0 : v.fullName,
32
- date: (x = (_ = (y = u.approvals) == null ? void 0 : y[t]) == null ? void 0 : _.approvers[e]) == null ? void 0 : x.actionAt
32
+ name: (v = (n = (a = u.approvals) == null ? void 0 : a[s]) == null ? void 0 : n.approvers[e]) == null ? void 0 : v.fullName,
33
+ date: (_ = (x = (y = u.approvals) == null ? void 0 : y[s]) == null ? void 0 : x.approvers[e]) == null ? void 0 : _.actionAt
33
34
  };
34
- }), j = (t) => {
35
+ }), j = (s) => {
35
36
  let e;
36
- switch (t) {
37
+ switch (s) {
37
38
  case "menyetujui":
38
39
  e = "success";
39
40
  break;
@@ -44,73 +45,79 @@ const V = {
44
45
  e = "warning";
45
46
  }
46
47
  return e;
47
- }, f = (t) => u.useFormatDate ? t ? N(new Date(t), {
48
+ }, f = (s) => u.useFormatDate ? s ? V(new Date(s), {
48
49
  locale: "id-ID",
49
50
  dateFormat: "dd M yyyy",
50
51
  timeFormat: "HH:mm:ss"
51
- }) : "-" : t;
52
- return (t, e) => {
53
- var p;
54
- return a(), o(i, null, [
55
- l("div", V, [
56
- t.showShortInfo ? (a(), o(i, { key: 0 }, [
52
+ }) : "-" : s;
53
+ return (s, e) => {
54
+ var c;
55
+ return t(), o(i, null, [
56
+ l("div", E, [
57
+ s.showShortInfo ? (t(), o(i, { key: 0 }, [
57
58
  e[3] || (e[3] = l("span", null, "Approver:", -1)),
58
- (p = t.approvals) != null && p.length ? (a(), o(i, { key: 0 }, [
59
+ (c = s.approvals) != null && c.length ? (t(), o(i, { key: 0 }, [
59
60
  m(A, {
60
61
  class: "!text-general-200 !text-base",
61
62
  icon: "user"
62
63
  }),
63
- l("span", E, r(d.value.name), 1),
64
+ l("span", Z, r(d.value.name), 1),
64
65
  l("span", H, r(f(d.value.date)), 1),
65
66
  l("span", {
66
- onClick: e[0] || (e[0] = (s) => c.value = !0),
67
+ onClick: e[0] || (e[0] = (a) => p.value = !0),
67
68
  class: "text-primary-500 hover:cursor-pointer"
68
69
  }, r(u.btnLabel ?? "more"), 1)
69
- ], 64)) : (a(), o("span", M, "-"))
70
- ], 64)) : (a(), o("span", {
70
+ ], 64)) : (t(), o("span", M, "-"))
71
+ ], 64)) : (t(), o("span", {
71
72
  key: 1,
72
- onClick: e[1] || (e[1] = (s) => c.value = !0),
73
+ onClick: e[1] || (e[1] = (a) => p.value = !0),
73
74
  class: "text-primary-500 hover:cursor-pointer"
74
- }, r(t.label ?? "Lihat Approval"), 1))
75
+ }, r(s.label ?? "Lihat Approval"), 1))
75
76
  ]),
76
77
  m($, {
77
- visible: c.value,
78
- "onUpdate:visible": e[2] || (e[2] = (s) => c.value = s),
78
+ visible: p.value,
79
+ "onUpdate:visible": e[2] || (e[2] = (a) => p.value = a),
79
80
  class: "min-w-[400px]",
80
81
  header: "List Approver",
81
82
  modal: ""
82
83
  }, {
83
84
  default: I(() => [
84
85
  l("div", S, [
85
- (a(!0), o(i, null, g(t.approvals, (s) => (a(), o(i, {
86
- key: s._id
86
+ (t(!0), o(i, null, k(s.approvals, (a) => (t(), o(i, {
87
+ key: a._id
87
88
  }, [
88
- l("div", U, [
89
- l("span", P, " Level " + r(s.level) + " (" + r(s.type.toLowerCase()) + ") ", 1),
90
- s.status !== "menunggu approval" ? (a(), h(w, {
89
+ l("div", T, [
90
+ l("span", U, [
91
+ a.level === 0 && u.customLevelZeroLabel ? (t(), o(i, { key: 0 }, [
92
+ w(r(u.customLevelZeroLabel), 1)
93
+ ], 64)) : (t(), o(i, { key: 1 }, [
94
+ w(" Level " + r(a.level) + " (" + r(a.type.toLowerCase()) + ") ", 1)
95
+ ], 64))
96
+ ]),
97
+ a.status !== "menunggu approval" ? (t(), g(L, {
91
98
  key: 0,
92
99
  label: "selesai",
93
100
  severity: "success"
94
- })) : k("", !0)
101
+ })) : h("", !0)
95
102
  ]),
96
- (a(!0), o(i, null, g(s.approvers, (n) => (a(), o("div", {
103
+ (t(!0), o(i, null, k(a.approvers, (n) => (t(), o("div", {
97
104
  key: n._id,
98
105
  class: "flex justify-between"
99
106
  }, [
100
- l("div", R, [
107
+ l("div", P, [
101
108
  m(A, {
102
109
  class: "!text-general-200 !text-base",
103
110
  icon: "user"
104
111
  }),
105
- l("span", T, r(n.fullName), 1)
112
+ l("span", R, r(n.fullName), 1)
106
113
  ]),
107
- s.status !== "menunggu approval" && !n.action ? (a(), o("span", q, " Tidak terlibat ")) : (a(), o("div", z, [
114
+ a.status !== "menunggu approval" && !n.action ? (t(), o("span", q, " Tidak terlibat ")) : (t(), o("div", z, [
108
115
  l("span", G, r(n.actionAt ? f(n.actionAt) : "Menunggu approval..."), 1),
109
- n.action ? (a(), h(w, {
116
+ n.action ? (t(), g(L, {
110
117
  key: 0,
111
118
  label: n.action,
112
119
  severity: j(n.action)
113
- }, null, 8, ["label", "severity"])) : k("", !0)
120
+ }, null, 8, ["label", "severity"])) : h("", !0)
114
121
  ]))
115
122
  ]))), 128))
116
123
  ], 64))), 128))
@@ -1,10 +1,10 @@
1
- import { defineComponent as Y, onMounted as Z, onUnmounted as I, ref as R, shallowRef as k, computed as x, watch as F, withDirectives as y, createElementBlock as h, openBlock as r, mergeProps as f, createBlock as E, createCommentVNode as w, createVNode as v, unref as o, Fragment as T, renderSlot as ee, withCtx as V, normalizeClass as te, vShow as $, createElementVNode as le, normalizeProps as ae, guardReactiveProps as oe, toDisplayString as P, createTextVNode as H, nextTick as ne } from "vue";
1
+ import { defineComponent as Y, onMounted as Z, onUnmounted as I, ref as R, shallowRef as k, computed as x, watch as F, withDirectives as y, createElementBlock as h, openBlock as u, mergeProps as f, createBlock as E, createCommentVNode as w, createVNode as v, unref as o, Fragment as T, renderSlot as ee, withCtx as V, normalizeClass as te, vShow as $, createElementVNode as le, normalizeProps as ae, guardReactiveProps as oe, toDisplayString as P, createTextVNode as H, nextTick as ne } from "vue";
2
2
  import { e as c } from "../event-bus/index.es.js";
3
3
  import { u as se } from "../plugins/WangsVue.es.js";
4
4
  import { m as ie } from "../utils/mergePropsWithDefaults.util.es.js";
5
- import { s as re } from "../vendor/primevue/dropdown/dropdown.esm.es.js";
5
+ import { s as ue } from "../vendor/primevue/dropdown/dropdown.esm.es.js";
6
6
  import { _ as A } from "../button/index.es.js";
7
- import { _ as ue } from "../icon/index.es.js";
7
+ import { _ as re } from "../icon/index.es.js";
8
8
  import { _ as ce } from "../menu/index.es.js";
9
9
  import { _ as de } from "../menuitem/index.es.js";
10
10
  const pe = (D, N) => {
@@ -58,7 +58,7 @@ const pe = (D, N) => {
58
58
  var t, s;
59
59
  if (e.useAdditionSlot) {
60
60
  n.value = e, await ne();
61
- const u = (t = _.value) == null ? void 0 : t.children[1], a = u == null ? void 0 : u.querySelector(
61
+ const r = (t = _.value) == null ? void 0 : t.children[1], a = r == null ? void 0 : r.querySelector(
62
62
  "input"
63
63
  );
64
64
  a && (a == null || a.click(), a == null || a.focus());
@@ -84,22 +84,23 @@ const pe = (D, N) => {
84
84
  (e) => m.value = e ?? 0,
85
85
  { immediate: !0 }
86
86
  ), (e, t) => {
87
- var s, u, a, U, W, q;
88
- return y((r(), h("div", f(e.$preset.buttonbulkaction.root, {
87
+ var s, r, a, U, W, q;
88
+ return y((u(), h("div", f(e.$preset.buttonbulkaction.root, {
89
89
  ref_key: "wrapper",
90
90
  ref: _
91
91
  }), [
92
- o(p).selectMenuType === "overlay-panel" && ((s = i.value) != null && s.length) ? (r(), E(ce, {
92
+ o(p).selectMenuType === "overlay-panel" && ((s = i.value) != null && s.length) ? (u(), E(ce, {
93
93
  key: 0,
94
94
  ref_key: "menu",
95
95
  ref: S,
96
96
  model: e.options,
97
97
  popup: ""
98
98
  }, null, 8, ["model"])) : w("", !0),
99
- o(p).selectMenuType === "dropdown" ? (r(), h(T, { key: 1 }, [
100
- (u = e.selectedData) != null && u.length ? (r(), E(o(re), {
99
+ o(p).selectMenuType === "dropdown" ? (u(), h(T, { key: 1 }, [
100
+ (r = e.selectedData) != null && r.length ? (u(), E(o(ue), {
101
101
  key: 0,
102
102
  disabled: l.disabled || M.value || !((a = e.selectedData) != null && a.length),
103
+ "model-value": n.value,
103
104
  options: o(pe)(
104
105
  e.options,
105
106
  e.$wangsvue.config.locale.components.Menu.noOptionLabel
@@ -111,7 +112,7 @@ const pe = (D, N) => {
111
112
  placeholder: "Bulk Action"
112
113
  }, {
113
114
  dropdownicon: V(({ class: b }) => [
114
- v(ue, {
115
+ v(re, {
115
116
  class: te([b]),
116
117
  icon: "arrow-down"
117
118
  }, null, 8, ["class"])
@@ -127,7 +128,7 @@ const pe = (D, N) => {
127
128
  }, null, 8, ["item", "router-props"])
128
129
  ]),
129
130
  _: 1
130
- }, 8, ["disabled", "options", "pt"])) : w("", !0),
131
+ }, 8, ["disabled", "model-value", "options", "pt"])) : w("", !0),
131
132
  ee(e.$slots, "addition", { selectedOption: n.value }),
132
133
  y(v(A, f({ onClick: X }, e.$preset.buttonbulkaction.applybutton, { label: "Apply" }), null, 16), [
133
134
  [$, (U = n.value) == null ? void 0 : U.useAdditionSlot]
@@ -147,9 +148,9 @@ const pe = (D, N) => {
147
148
  { text: "" }
148
149
  ), {
149
150
  default: V(() => [
150
- C.value ? (r(), h(T, { key: 1 }, [
151
+ C.value ? (u(), h(T, { key: 1 }, [
151
152
  H(P(o(d).allRecordSelected.replace("{naming}", o(p).naming)), 1)
152
- ], 64)) : (r(), h(T, { key: 0 }, [
153
+ ], 64)) : (u(), h(T, { key: 0 }, [
153
154
  H(P(o(d).selectAllRecords.replace(
154
155
  "{totalRecords}",
155
156
  m.value.toString()
@@ -160,7 +161,7 @@ const pe = (D, N) => {
160
161
  }, 16), [
161
162
  [$, j.value]
162
163
  ]),
163
- o(p).selectMenuType === "overlay-panel" ? (r(), E(A, f({
164
+ o(p).selectMenuType === "overlay-panel" ? (u(), E(A, f({
164
165
  key: 2,
165
166
  onClick: K
166
167
  }, e.$preset.buttonbulkaction.bulkactiontoggle, {
@@ -1,9 +1,9 @@
1
- import { defineComponent as T, onMounted as w, ref as p, computed as v, watch as n, watchEffect as C, createBlock as x, openBlock as D, mergeProps as b, unref as F, withCtx as f, renderSlot as c, nextTick as S } from "vue";
2
- import { u as k } from "../vendor/vee-validate/dist/vee-validate.esm.es.js";
3
- import { u as I } from "../plugins/WangsVue.es.js";
4
- import { a as L } from "../utils/textFormatter.util.es.js";
5
- import { _ as O } from "../basecalendar/index.es.js";
6
- const N = /* @__PURE__ */ T({
1
+ import { defineComponent as C, onMounted as F, ref as f, computed as d, watch as s, watchEffect as S, createBlock as x, openBlock as D, mergeProps as b, unref as I, withCtx as c, renderSlot as y, nextTick as k } from "vue";
2
+ import { u as L } from "../vendor/vee-validate/dist/vee-validate.esm.es.js";
3
+ import { u as O } from "../plugins/WangsVue.es.js";
4
+ import { a as N } from "../utils/textFormatter.util.es.js";
5
+ import { _ as U } from "../basecalendar/index.es.js";
6
+ const Y = /* @__PURE__ */ C({
7
7
  __name: "Calendar",
8
8
  props: {
9
9
  modelValue: {},
@@ -33,7 +33,7 @@ const N = /* @__PURE__ */ T({
33
33
  validatorMessage: {},
34
34
  customValidation: {},
35
35
  dateFormat: { default: "dd/mm/yy" },
36
- hourFormat: { default: "24" },
36
+ hourFormat: {},
37
37
  showTime: { type: Boolean },
38
38
  timeSeparator: { default: ":" },
39
39
  stepHour: { default: 1 },
@@ -48,70 +48,75 @@ const N = /* @__PURE__ */ T({
48
48
  exactSelection: { type: Boolean }
49
49
  },
50
50
  emits: ["update:modelValue", "update:epochTimeMillis", "monthChange", "yearChange", "dateSelect"],
51
- setup(y, { emit: V }) {
52
- const e = y, r = V;
53
- w(() => {
54
- e.dateValue != null && (t.value = d(e.dateValue), o.value = t.value, u.value++), e.epochTimeMillis != null && (t.value = d(e.epochTimeMillis), o.value = t.value, u.value++);
51
+ setup(V, { emit: g }) {
52
+ const e = V, n = g;
53
+ F(() => {
54
+ e.dateValue != null && (t.value = u(e.dateValue), o.value = t.value, i.value++), e.epochTimeMillis != null && (t.value = u(e.epochTimeMillis), o.value = t.value, i.value++);
55
55
  });
56
- const { locale: M } = I("Calendar"), t = p(), u = p(0), { value: o, errorMessage: g } = e.useValidator ? k(e.fieldName ?? "date", (a) => B(a)) : {
57
- value: v({
56
+ const { locale: h } = O("Calendar"), t = f(), i = f(0), { value: o, errorMessage: M } = e.useValidator ? L(e.fieldName ?? "date", (a) => w(a)) : {
57
+ value: d({
58
58
  get: () => e.modelValue,
59
59
  set: (a) => {
60
- r("update:modelValue", a);
60
+ n("update:modelValue", a);
61
61
  }
62
62
  })
63
- }, h = v(
63
+ }, B = d(
64
64
  () => e.invalid || "errorMessage" in o && !!o.errorMessage
65
- ), B = async (a) => {
66
- var l, i;
67
- return await S(), typeof e.validatorMessage == "string" && e.invalid ? e.validatorMessage : typeof e.validatorMessage != "string" && !a && e.mandatory ? ((l = e.validatorMessage) == null ? void 0 : l.empty) ?? s() : !a && e.mandatory ? ((i = e.customValidation) == null ? void 0 : i.empty) ?? s() : !0;
68
- }, s = () => {
65
+ ), T = d(() => {
66
+ var r, v;
67
+ const a = JSON.parse(localStorage.getItem("user") || "{}"), l = (r = a == null ? void 0 : a.generalSetting) == null ? void 0 : r.timeFormat;
68
+ return e.hourFormat ? e.hourFormat : (v = l == null ? void 0 : l.toLowerCase()) != null && v.includes("pm") ? "12" : "24";
69
+ }), w = async (a) => {
70
+ var l, r;
71
+ return await k(), typeof e.validatorMessage == "string" && e.invalid ? e.validatorMessage : typeof e.validatorMessage != "string" && !a && e.mandatory ? ((l = e.validatorMessage) == null ? void 0 : l.empty) ?? m() : !a && e.mandatory ? ((r = e.customValidation) == null ? void 0 : r.empty) ?? m() : !0;
72
+ }, m = () => {
69
73
  var a;
70
- return M.emptyInvalidText.replace("{label}", e.label).replace(
74
+ return h.emptyInvalidText.replace("{label}", e.label).replace(
71
75
  "{formattedLabel}",
72
- (a = L(e.label)) == null ? void 0 : a.toLowerCase()
76
+ (a = N(e.label)) == null ? void 0 : a.toLowerCase()
73
77
  );
74
- }, m = (a, l) => {
75
- (a === e.valueFormat && e.useValidator || !e.useValidator && a === "date") && (o.value = l), a === "date" && e.useValidator && r("update:modelValue", l), a === "millis" && r("update:epochTimeMillis", l);
76
- }, d = (a) => Array.isArray(a) ? a.map((l) => l == null ? null : new Date(l)) : new Date(a);
77
- return n(
78
+ }, p = (a, l) => {
79
+ (a === e.valueFormat && e.useValidator || !e.useValidator && a === "date") && (o.value = l), a === "date" && e.useValidator && n("update:modelValue", l), a === "millis" && n("update:epochTimeMillis", l);
80
+ }, u = (a) => Array.isArray(a) ? a.map((l) => l == null ? null : new Date(l)) : new Date(a);
81
+ return s(
78
82
  () => e.dateValue,
79
83
  () => {
80
- t.value = d(e.dateValue), e.useValidator && (o.value = t.value), u.value++;
84
+ t.value = u(e.dateValue), e.useValidator && (o.value = t.value), i.value++;
81
85
  },
82
86
  {
83
87
  once: !0
84
88
  }
85
- ), n(
89
+ ), s(
86
90
  () => e.epochTimeMillis,
87
91
  () => {
88
- t.value = d(e.epochTimeMillis), e.useValidator && (o.value = t.value), u.value++;
92
+ t.value = u(e.epochTimeMillis), e.useValidator && (o.value = t.value), i.value++;
89
93
  }
90
- ), n(
94
+ ), s(
91
95
  () => e.modelValue,
92
96
  () => {
93
97
  t.value = e.modelValue, e.useValidator && (o.value = t.value);
94
98
  }
95
- ), C(() => {
96
- t.value = e.valueFormat === "date" ? o.value : o.value ? d(o.value) : o.value;
97
- }), (a, l) => (D(), x(O, b({ key: u.value }, e, {
98
- "error-message": F(g),
99
- invalid: h.value,
99
+ ), S(() => {
100
+ t.value = e.valueFormat === "date" ? o.value : o.value ? u(o.value) : o.value;
101
+ }), (a, l) => (D(), x(U, b({ key: i.value }, e, {
102
+ "error-message": I(M),
103
+ "hour-format": T.value,
104
+ invalid: B.value,
100
105
  "model-value": t.value,
101
106
  "selection-mode": a.selectionMode || a.mode,
102
- "onUpdate:epochTimeMillis": l[0] || (l[0] = (i) => m("millis", i)),
103
- "onUpdate:modelValue": l[1] || (l[1] = (i) => m("date", i))
107
+ "onUpdate:epochTimeMillis": l[0] || (l[0] = (r) => p("millis", r)),
108
+ "onUpdate:modelValue": l[1] || (l[1] = (r) => p("date", r))
104
109
  }), {
105
- default: f(({ onClick: i }) => [
106
- c(a.$slots, "default", { onClick: i })
110
+ default: c(({ onClick: r }) => [
111
+ y(a.$slots, "default", { onClick: r })
107
112
  ]),
108
- "addon-overlay": f(() => [
109
- c(a.$slots, "addon-overlay")
113
+ "addon-overlay": c(() => [
114
+ y(a.$slots, "addon-overlay")
110
115
  ]),
111
116
  _: 3
112
- }, 16, ["error-message", "invalid", "model-value", "selection-mode"]));
117
+ }, 16, ["error-message", "hour-format", "invalid", "model-value", "selection-mode"]));
113
118
  }
114
119
  });
115
120
  export {
116
- N as _
121
+ Y as _
117
122
  };
@@ -0,0 +1,20 @@
1
+ import { defineComponent as a, createElementBlock as s, createBlock as l, openBlock as o, toDisplayString as p, unref as i } from "vue";
2
+ import { f as m } from "../utils/date.util.es.js";
3
+ import "../event-bus/index.es.js";
4
+ import { _ as c } from "../tooltipspan/index.es.js";
5
+ const u = { key: 0 }, x = /* @__PURE__ */ a({
6
+ __name: "ChangelogCustomValue",
7
+ props: {
8
+ value: {}
9
+ },
10
+ setup(r) {
11
+ const e = r, n = (t) => typeof t == "string" && !isNaN(Date.parse(t));
12
+ return (t, f) => n(e.value) ? (o(), s("span", u, p(i(m)(new Date(e.value), { showTime: !0 })), 1)) : (o(), l(c, {
13
+ key: 1,
14
+ "full-text": e.value
15
+ }, null, 8, ["full-text"]));
16
+ }
17
+ });
18
+ export {
19
+ x as _
20
+ };