nbb-component-ui 1.7.3 → 1.7.5

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/dist/index.es.js CHANGED
@@ -1,393 +1,393 @@
1
- import { defineComponent as ue, resolveComponent as J, openBlock as D, createElementBlock as B, createElementVNode as A, toDisplayString as g, unref as E, createCommentVNode as L, createVNode as ne, withCtx as K, Fragment as he, renderList as Ne, createBlock as re, createTextVNode as ae, ref as X, watch as _e } from "vue";
2
- import "element-plus";
3
- var pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
- function me(d) {
5
- return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
1
+ import { defineComponent as pe, resolveComponent as Y, openBlock as P, createElementBlock as L, Fragment as fe, createVNode as X, withCtx as Q, createTextVNode as Z, createElementVNode as D, toDisplayString as m, unref as $, createCommentVNode as O, renderList as Ne, createBlock as re, ref as ee, watch as _e } from "vue";
2
+ import { useI18n as Te } from "vue-i18n";
3
+ var me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
+ function be(r) {
5
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
6
6
  }
7
- var be = { exports: {} };
8
- (function(d, c) {
9
- (function(f, y) {
10
- d.exports = y();
11
- })(pe, function() {
12
- var f = 1e3, y = 6e4, w = 36e5, k = "millisecond", T = "second", v = "minute", u = "hour", $ = "day", R = "week", b = "month", C = "quarter", a = "year", F = "date", s = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, q = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, U = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(o) {
13
- var n = ["th", "st", "nd", "rd"], e = o % 100;
14
- return "[" + o + (n[(e - 20) % 10] || n[e] || n[0]) + "]";
15
- } }, x = function(o, n, e) {
16
- var i = String(o);
17
- return !i || i.length >= n ? o : "" + Array(n + 1 - i.length).join(e) + o;
18
- }, G = { s: x, z: function(o) {
19
- var n = -o.utcOffset(), e = Math.abs(n), i = Math.floor(e / 60), t = e % 60;
20
- return (n <= 0 ? "+" : "-") + x(i, 2, "0") + ":" + x(t, 2, "0");
21
- }, m: function o(n, e) {
22
- if (n.date() < e.date())
23
- return -o(e, n);
24
- var i = 12 * (e.year() - n.year()) + (e.month() - n.month()), t = n.clone().add(i, b), l = e - t < 0, r = n.clone().add(i + (l ? -1 : 1), b);
25
- return +(-(i + (e - t) / (l ? t - r : r - t)) || 0);
26
- }, a: function(o) {
27
- return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
28
- }, p: function(o) {
29
- return { M: b, y: a, w: R, d: $, D: F, h: u, m: v, s: T, ms: k, Q: C }[o] || String(o || "").toLowerCase().replace(/s$/, "");
30
- }, u: function(o) {
31
- return o === void 0;
32
- } }, z = "en", O = {};
33
- O[z] = U;
34
- var Y = "$isDayjsObject", Z = function(o) {
35
- return o instanceof se || !(!o || !o[Y]);
36
- }, H = function o(n, e, i) {
37
- var t;
38
- if (!n)
39
- return z;
40
- if (typeof n == "string") {
41
- var l = n.toLowerCase();
42
- O[l] && (t = l), e && (O[l] = e, t = l);
43
- var r = n.split("-");
44
- if (!t && r.length > 1)
45
- return o(r[0]);
7
+ var ge = { exports: {} };
8
+ (function(r, b) {
9
+ (function(d, g) {
10
+ r.exports = g();
11
+ })(me, function() {
12
+ var d = 1e3, g = 6e4, S = 36e5, h = "millisecond", N = "second", v = "minute", c = "hour", A = "day", R = "week", p = "month", z = "quarter", y = "year", C = "date", e = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
13
+ var a = ["th", "st", "nd", "rd"], t = s % 100;
14
+ return "[" + s + (a[(t - 20) % 10] || a[t] || a[0]) + "]";
15
+ } }, E = function(s, a, t) {
16
+ var i = String(s);
17
+ return !i || i.length >= a ? s : "" + Array(a + 1 - i.length).join(t) + s;
18
+ }, G = { s: E, z: function(s) {
19
+ var a = -s.utcOffset(), t = Math.abs(a), i = Math.floor(t / 60), n = t % 60;
20
+ return (a <= 0 ? "+" : "-") + E(i, 2, "0") + ":" + E(n, 2, "0");
21
+ }, m: function s(a, t) {
22
+ if (a.date() < t.date())
23
+ return -s(t, a);
24
+ var i = 12 * (t.year() - a.year()) + (t.month() - a.month()), n = a.clone().add(i, p), o = t - n < 0, l = a.clone().add(i + (o ? -1 : 1), p);
25
+ return +(-(i + (t - n) / (o ? n - l : l - n)) || 0);
26
+ }, a: function(s) {
27
+ return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
28
+ }, p: function(s) {
29
+ return { M: p, y, w: R, d: A, D: C, h: c, m: v, s: N, ms: h, Q: z }[s] || String(s || "").toLowerCase().replace(/s$/, "");
30
+ }, u: function(s) {
31
+ return s === void 0;
32
+ } }, B = "en", I = {};
33
+ I[B] = q;
34
+ var J = "$isDayjsObject", te = function(s) {
35
+ return s instanceof se || !(!s || !s[J]);
36
+ }, H = function s(a, t, i) {
37
+ var n;
38
+ if (!a)
39
+ return B;
40
+ if (typeof a == "string") {
41
+ var o = a.toLowerCase();
42
+ I[o] && (n = o), t && (I[o] = t, n = o);
43
+ var l = a.split("-");
44
+ if (!n && l.length > 1)
45
+ return s(l[0]);
46
46
  } else {
47
- var m = n.name;
48
- O[m] = n, t = m;
47
+ var u = a.name;
48
+ I[u] = a, n = u;
49
49
  }
50
- return !i && t && (z = t), t || !i && z;
51
- }, N = function(o, n) {
52
- if (Z(o))
53
- return o.clone();
54
- var e = typeof n == "object" ? n : {};
55
- return e.date = o, e.args = arguments, new se(e);
56
- }, p = G;
57
- p.l = H, p.i = Z, p.w = function(o, n) {
58
- return N(o, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
50
+ return !i && n && (B = n), n || !i && B;
51
+ }, _ = function(s, a) {
52
+ if (te(s))
53
+ return s.clone();
54
+ var t = typeof a == "object" ? a : {};
55
+ return t.date = s, t.args = arguments, new se(t);
56
+ }, f = G;
57
+ f.l = H, f.i = te, f.w = function(s, a) {
58
+ return _(s, { locale: a.$L, utc: a.$u, x: a.$x, $offset: a.$offset });
59
59
  };
60
60
  var se = function() {
61
- function o(e) {
62
- this.$L = H(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[Y] = !0;
61
+ function s(t) {
62
+ this.$L = H(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[J] = !0;
63
63
  }
64
- var n = o.prototype;
65
- return n.parse = function(e) {
64
+ var a = s.prototype;
65
+ return a.parse = function(t) {
66
66
  this.$d = function(i) {
67
- var t = i.date, l = i.utc;
68
- if (t === null)
67
+ var n = i.date, o = i.utc;
68
+ if (n === null)
69
69
  return /* @__PURE__ */ new Date(NaN);
70
- if (p.u(t))
70
+ if (f.u(n))
71
71
  return /* @__PURE__ */ new Date();
72
- if (t instanceof Date)
73
- return new Date(t);
74
- if (typeof t == "string" && !/Z$/i.test(t)) {
75
- var r = t.match(M);
76
- if (r) {
77
- var m = r[2] - 1 || 0, h = (r[7] || "0").substring(0, 3);
78
- return l ? new Date(Date.UTC(r[1], m, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, h)) : new Date(r[1], m, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, h);
72
+ if (n instanceof Date)
73
+ return new Date(n);
74
+ if (typeof n == "string" && !/Z$/i.test(n)) {
75
+ var l = n.match(M);
76
+ if (l) {
77
+ var u = l[2] - 1 || 0, w = (l[7] || "0").substring(0, 3);
78
+ return o ? new Date(Date.UTC(l[1], u, l[3] || 1, l[4] || 0, l[5] || 0, l[6] || 0, w)) : new Date(l[1], u, l[3] || 1, l[4] || 0, l[5] || 0, l[6] || 0, w);
79
79
  }
80
80
  }
81
- return new Date(t);
82
- }(e), this.init();
83
- }, n.init = function() {
84
- var e = this.$d;
85
- this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
86
- }, n.$utils = function() {
87
- return p;
88
- }, n.isValid = function() {
89
- return this.$d.toString() !== s;
90
- }, n.isSame = function(e, i) {
91
- var t = N(e);
92
- return this.startOf(i) <= t && t <= this.endOf(i);
93
- }, n.isAfter = function(e, i) {
94
- return N(e) < this.startOf(i);
95
- }, n.isBefore = function(e, i) {
96
- return this.endOf(i) < N(e);
97
- }, n.$g = function(e, i, t) {
98
- return p.u(e) ? this[i] : this.set(t, e);
99
- }, n.unix = function() {
81
+ return new Date(n);
82
+ }(t), this.init();
83
+ }, a.init = function() {
84
+ var t = this.$d;
85
+ this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
86
+ }, a.$utils = function() {
87
+ return f;
88
+ }, a.isValid = function() {
89
+ return this.$d.toString() !== e;
90
+ }, a.isSame = function(t, i) {
91
+ var n = _(t);
92
+ return this.startOf(i) <= n && n <= this.endOf(i);
93
+ }, a.isAfter = function(t, i) {
94
+ return _(t) < this.startOf(i);
95
+ }, a.isBefore = function(t, i) {
96
+ return this.endOf(i) < _(t);
97
+ }, a.$g = function(t, i, n) {
98
+ return f.u(t) ? this[i] : this.set(n, t);
99
+ }, a.unix = function() {
100
100
  return Math.floor(this.valueOf() / 1e3);
101
- }, n.valueOf = function() {
101
+ }, a.valueOf = function() {
102
102
  return this.$d.getTime();
103
- }, n.startOf = function(e, i) {
104
- var t = this, l = !!p.u(i) || i, r = p.p(e), m = function(V, P) {
105
- var j = p.w(t.$u ? Date.UTC(t.$y, P, V) : new Date(t.$y, P, V), t);
106
- return l ? j : j.endOf($);
107
- }, h = function(V, P) {
108
- return p.w(t.toDate()[V].apply(t.toDate("s"), (l ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(P)), t);
109
- }, _ = this.$W, S = this.$M, I = this.$D, Q = "set" + (this.$u ? "UTC" : "");
110
- switch (r) {
111
- case a:
112
- return l ? m(1, 0) : m(31, 11);
113
- case b:
114
- return l ? m(1, S) : m(0, S + 1);
103
+ }, a.startOf = function(t, i) {
104
+ var n = this, o = !!f.u(i) || i, l = f.p(t), u = function(V, k) {
105
+ var j = f.w(n.$u ? Date.UTC(n.$y, k, V) : new Date(n.$y, k, V), n);
106
+ return o ? j : j.endOf(A);
107
+ }, w = function(V, k) {
108
+ return f.w(n.toDate()[V].apply(n.toDate("s"), (o ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(k)), n);
109
+ }, T = this.$W, x = this.$M, U = this.$D, K = "set" + (this.$u ? "UTC" : "");
110
+ switch (l) {
111
+ case y:
112
+ return o ? u(1, 0) : u(31, 11);
113
+ case p:
114
+ return o ? u(1, x) : u(0, x + 1);
115
115
  case R:
116
- var W = this.$locale().weekStart || 0, ee = (_ < W ? _ + 7 : _) - W;
117
- return m(l ? I - ee : I + (6 - ee), S);
118
- case $:
119
- case F:
120
- return h(Q + "Hours", 0);
121
- case u:
122
- return h(Q + "Minutes", 1);
116
+ var W = this.$locale().weekStart || 0, ne = (T < W ? T + 7 : T) - W;
117
+ return u(o ? U - ne : U + (6 - ne), x);
118
+ case A:
119
+ case C:
120
+ return w(K + "Hours", 0);
121
+ case c:
122
+ return w(K + "Minutes", 1);
123
123
  case v:
124
- return h(Q + "Seconds", 2);
125
- case T:
126
- return h(Q + "Milliseconds", 3);
124
+ return w(K + "Seconds", 2);
125
+ case N:
126
+ return w(K + "Milliseconds", 3);
127
127
  default:
128
128
  return this.clone();
129
129
  }
130
- }, n.endOf = function(e) {
131
- return this.startOf(e, !1);
132
- }, n.$set = function(e, i) {
133
- var t, l = p.p(e), r = "set" + (this.$u ? "UTC" : ""), m = (t = {}, t[$] = r + "Date", t[F] = r + "Date", t[b] = r + "Month", t[a] = r + "FullYear", t[u] = r + "Hours", t[v] = r + "Minutes", t[T] = r + "Seconds", t[k] = r + "Milliseconds", t)[l], h = l === $ ? this.$D + (i - this.$W) : i;
134
- if (l === b || l === a) {
135
- var _ = this.clone().set(F, 1);
136
- _.$d[m](h), _.init(), this.$d = _.set(F, Math.min(this.$D, _.daysInMonth())).$d;
130
+ }, a.endOf = function(t) {
131
+ return this.startOf(t, !1);
132
+ }, a.$set = function(t, i) {
133
+ var n, o = f.p(t), l = "set" + (this.$u ? "UTC" : ""), u = (n = {}, n[A] = l + "Date", n[C] = l + "Date", n[p] = l + "Month", n[y] = l + "FullYear", n[c] = l + "Hours", n[v] = l + "Minutes", n[N] = l + "Seconds", n[h] = l + "Milliseconds", n)[o], w = o === A ? this.$D + (i - this.$W) : i;
134
+ if (o === p || o === y) {
135
+ var T = this.clone().set(C, 1);
136
+ T.$d[u](w), T.init(), this.$d = T.set(C, Math.min(this.$D, T.daysInMonth())).$d;
137
137
  } else
138
- m && this.$d[m](h);
138
+ u && this.$d[u](w);
139
139
  return this.init(), this;
140
- }, n.set = function(e, i) {
141
- return this.clone().$set(e, i);
142
- }, n.get = function(e) {
143
- return this[p.p(e)]();
144
- }, n.add = function(e, i) {
145
- var t, l = this;
146
- e = Number(e);
147
- var r = p.p(i), m = function(S) {
148
- var I = N(l);
149
- return p.w(I.date(I.date() + Math.round(S * e)), l);
140
+ }, a.set = function(t, i) {
141
+ return this.clone().$set(t, i);
142
+ }, a.get = function(t) {
143
+ return this[f.p(t)]();
144
+ }, a.add = function(t, i) {
145
+ var n, o = this;
146
+ t = Number(t);
147
+ var l = f.p(i), u = function(x) {
148
+ var U = _(o);
149
+ return f.w(U.date(U.date() + Math.round(x * t)), o);
150
150
  };
151
- if (r === b)
152
- return this.set(b, this.$M + e);
153
- if (r === a)
154
- return this.set(a, this.$y + e);
155
- if (r === $)
156
- return m(1);
157
- if (r === R)
158
- return m(7);
159
- var h = (t = {}, t[v] = y, t[u] = w, t[T] = f, t)[r] || 1, _ = this.$d.getTime() + e * h;
160
- return p.w(_, this);
161
- }, n.subtract = function(e, i) {
162
- return this.add(-1 * e, i);
163
- }, n.format = function(e) {
164
- var i = this, t = this.$locale();
151
+ if (l === p)
152
+ return this.set(p, this.$M + t);
153
+ if (l === y)
154
+ return this.set(y, this.$y + t);
155
+ if (l === A)
156
+ return u(1);
157
+ if (l === R)
158
+ return u(7);
159
+ var w = (n = {}, n[v] = g, n[c] = S, n[N] = d, n)[l] || 1, T = this.$d.getTime() + t * w;
160
+ return f.w(T, this);
161
+ }, a.subtract = function(t, i) {
162
+ return this.add(-1 * t, i);
163
+ }, a.format = function(t) {
164
+ var i = this, n = this.$locale();
165
165
  if (!this.isValid())
166
- return t.invalidDate || s;
167
- var l = e || "YYYY-MM-DDTHH:mm:ssZ", r = p.z(this), m = this.$H, h = this.$m, _ = this.$M, S = t.weekdays, I = t.months, Q = t.meridiem, W = function(P, j, te, oe) {
168
- return P && (P[j] || P(i, l)) || te[j].slice(0, oe);
169
- }, ee = function(P) {
170
- return p.s(m % 12 || 12, P, "0");
171
- }, V = Q || function(P, j, te) {
172
- var oe = P < 12 ? "AM" : "PM";
173
- return te ? oe.toLowerCase() : oe;
166
+ return n.invalidDate || e;
167
+ var o = t || "YYYY-MM-DDTHH:mm:ssZ", l = f.z(this), u = this.$H, w = this.$m, T = this.$M, x = n.weekdays, U = n.months, K = n.meridiem, W = function(k, j, ae, oe) {
168
+ return k && (k[j] || k(i, o)) || ae[j].slice(0, oe);
169
+ }, ne = function(k) {
170
+ return f.s(u % 12 || 12, k, "0");
171
+ }, V = K || function(k, j, ae) {
172
+ var oe = k < 12 ? "AM" : "PM";
173
+ return ae ? oe.toLowerCase() : oe;
174
174
  };
175
- return l.replace(q, function(P, j) {
176
- return j || function(te) {
177
- switch (te) {
175
+ return o.replace(F, function(k, j) {
176
+ return j || function(ae) {
177
+ switch (ae) {
178
178
  case "YY":
179
179
  return String(i.$y).slice(-2);
180
180
  case "YYYY":
181
- return p.s(i.$y, 4, "0");
181
+ return f.s(i.$y, 4, "0");
182
182
  case "M":
183
- return _ + 1;
183
+ return T + 1;
184
184
  case "MM":
185
- return p.s(_ + 1, 2, "0");
185
+ return f.s(T + 1, 2, "0");
186
186
  case "MMM":
187
- return W(t.monthsShort, _, I, 3);
187
+ return W(n.monthsShort, T, U, 3);
188
188
  case "MMMM":
189
- return W(I, _);
189
+ return W(U, T);
190
190
  case "D":
191
191
  return i.$D;
192
192
  case "DD":
193
- return p.s(i.$D, 2, "0");
193
+ return f.s(i.$D, 2, "0");
194
194
  case "d":
195
195
  return String(i.$W);
196
196
  case "dd":
197
- return W(t.weekdaysMin, i.$W, S, 2);
197
+ return W(n.weekdaysMin, i.$W, x, 2);
198
198
  case "ddd":
199
- return W(t.weekdaysShort, i.$W, S, 3);
199
+ return W(n.weekdaysShort, i.$W, x, 3);
200
200
  case "dddd":
201
- return S[i.$W];
201
+ return x[i.$W];
202
202
  case "H":
203
- return String(m);
203
+ return String(u);
204
204
  case "HH":
205
- return p.s(m, 2, "0");
205
+ return f.s(u, 2, "0");
206
206
  case "h":
207
- return ee(1);
207
+ return ne(1);
208
208
  case "hh":
209
- return ee(2);
209
+ return ne(2);
210
210
  case "a":
211
- return V(m, h, !0);
211
+ return V(u, w, !0);
212
212
  case "A":
213
- return V(m, h, !1);
213
+ return V(u, w, !1);
214
214
  case "m":
215
- return String(h);
215
+ return String(w);
216
216
  case "mm":
217
- return p.s(h, 2, "0");
217
+ return f.s(w, 2, "0");
218
218
  case "s":
219
219
  return String(i.$s);
220
220
  case "ss":
221
- return p.s(i.$s, 2, "0");
221
+ return f.s(i.$s, 2, "0");
222
222
  case "SSS":
223
- return p.s(i.$ms, 3, "0");
223
+ return f.s(i.$ms, 3, "0");
224
224
  case "Z":
225
- return r;
225
+ return l;
226
226
  }
227
227
  return null;
228
- }(P) || r.replace(":", "");
228
+ }(k) || l.replace(":", "");
229
229
  });
230
- }, n.utcOffset = function() {
230
+ }, a.utcOffset = function() {
231
231
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
232
- }, n.diff = function(e, i, t) {
233
- var l, r = this, m = p.p(i), h = N(e), _ = (h.utcOffset() - this.utcOffset()) * y, S = this - h, I = function() {
234
- return p.m(r, h);
232
+ }, a.diff = function(t, i, n) {
233
+ var o, l = this, u = f.p(i), w = _(t), T = (w.utcOffset() - this.utcOffset()) * g, x = this - w, U = function() {
234
+ return f.m(l, w);
235
235
  };
236
- switch (m) {
237
- case a:
238
- l = I() / 12;
236
+ switch (u) {
237
+ case y:
238
+ o = U() / 12;
239
239
  break;
240
- case b:
241
- l = I();
240
+ case p:
241
+ o = U();
242
242
  break;
243
- case C:
244
- l = I() / 3;
243
+ case z:
244
+ o = U() / 3;
245
245
  break;
246
246
  case R:
247
- l = (S - _) / 6048e5;
247
+ o = (x - T) / 6048e5;
248
248
  break;
249
- case $:
250
- l = (S - _) / 864e5;
249
+ case A:
250
+ o = (x - T) / 864e5;
251
251
  break;
252
- case u:
253
- l = S / w;
252
+ case c:
253
+ o = x / S;
254
254
  break;
255
255
  case v:
256
- l = S / y;
256
+ o = x / g;
257
257
  break;
258
- case T:
259
- l = S / f;
258
+ case N:
259
+ o = x / d;
260
260
  break;
261
261
  default:
262
- l = S;
262
+ o = x;
263
263
  }
264
- return t ? l : p.a(l);
265
- }, n.daysInMonth = function() {
266
- return this.endOf(b).$D;
267
- }, n.$locale = function() {
268
- return O[this.$L];
269
- }, n.locale = function(e, i) {
270
- if (!e)
264
+ return n ? o : f.a(o);
265
+ }, a.daysInMonth = function() {
266
+ return this.endOf(p).$D;
267
+ }, a.$locale = function() {
268
+ return I[this.$L];
269
+ }, a.locale = function(t, i) {
270
+ if (!t)
271
271
  return this.$L;
272
- var t = this.clone(), l = H(e, i, !0);
273
- return l && (t.$L = l), t;
274
- }, n.clone = function() {
275
- return p.w(this.$d, this);
276
- }, n.toDate = function() {
272
+ var n = this.clone(), o = H(t, i, !0);
273
+ return o && (n.$L = o), n;
274
+ }, a.clone = function() {
275
+ return f.w(this.$d, this);
276
+ }, a.toDate = function() {
277
277
  return new Date(this.valueOf());
278
- }, n.toJSON = function() {
278
+ }, a.toJSON = function() {
279
279
  return this.isValid() ? this.toISOString() : null;
280
- }, n.toISOString = function() {
280
+ }, a.toISOString = function() {
281
281
  return this.$d.toISOString();
282
- }, n.toString = function() {
282
+ }, a.toString = function() {
283
283
  return this.$d.toUTCString();
284
- }, o;
284
+ }, s;
285
285
  }(), ce = se.prototype;
286
- return N.prototype = ce, [["$ms", k], ["$s", T], ["$m", v], ["$H", u], ["$W", $], ["$M", b], ["$y", a], ["$D", F]].forEach(function(o) {
287
- ce[o[1]] = function(n) {
288
- return this.$g(n, o[0], o[1]);
286
+ return _.prototype = ce, [["$ms", h], ["$s", N], ["$m", v], ["$H", c], ["$W", A], ["$M", p], ["$y", y], ["$D", C]].forEach(function(s) {
287
+ ce[s[1]] = function(a) {
288
+ return this.$g(a, s[0], s[1]);
289
289
  };
290
- }), N.extend = function(o, n) {
291
- return o.$i || (o(n, se, N), o.$i = !0), N;
292
- }, N.locale = H, N.isDayjs = Z, N.unix = function(o) {
293
- return N(1e3 * o);
294
- }, N.en = O[z], N.Ls = O, N.p = {}, N;
290
+ }), _.extend = function(s, a) {
291
+ return s.$i || (s(a, se, _), s.$i = !0), _;
292
+ }, _.locale = H, _.isDayjs = te, _.unix = function(s) {
293
+ return _(1e3 * s);
294
+ }, _.en = I[B], _.Ls = I, _.p = {}, _;
295
295
  });
296
- })(be);
297
- var Te = be.exports;
298
- const ge = /* @__PURE__ */ me(Te);
299
- var ye = { exports: {} };
300
- (function(d, c) {
301
- (function(f, y) {
302
- d.exports = y();
303
- })(pe, function() {
304
- var f = "minute", y = /[+-]\d\d(?::?\d\d)?/g, w = /([+-]|\d\d)/g;
305
- return function(k, T, v) {
306
- var u = T.prototype;
307
- v.utc = function(s) {
308
- var M = { date: s, utc: !0, args: arguments };
309
- return new T(M);
310
- }, u.utc = function(s) {
296
+ })(ge);
297
+ var ve = ge.exports;
298
+ const ye = /* @__PURE__ */ be(ve);
299
+ var we = { exports: {} };
300
+ (function(r, b) {
301
+ (function(d, g) {
302
+ r.exports = g();
303
+ })(me, function() {
304
+ var d = "minute", g = /[+-]\d\d(?::?\d\d)?/g, S = /([+-]|\d\d)/g;
305
+ return function(h, N, v) {
306
+ var c = N.prototype;
307
+ v.utc = function(e) {
308
+ var M = { date: e, utc: !0, args: arguments };
309
+ return new N(M);
310
+ }, c.utc = function(e) {
311
311
  var M = v(this.toDate(), { locale: this.$L, utc: !0 });
312
- return s ? M.add(this.utcOffset(), f) : M;
313
- }, u.local = function() {
312
+ return e ? M.add(this.utcOffset(), d) : M;
313
+ }, c.local = function() {
314
314
  return v(this.toDate(), { locale: this.$L, utc: !1 });
315
315
  };
316
- var $ = u.parse;
317
- u.parse = function(s) {
318
- s.utc && (this.$u = !0), this.$utils().u(s.$offset) || (this.$offset = s.$offset), $.call(this, s);
316
+ var A = c.parse;
317
+ c.parse = function(e) {
318
+ e.utc && (this.$u = !0), this.$utils().u(e.$offset) || (this.$offset = e.$offset), A.call(this, e);
319
319
  };
320
- var R = u.init;
321
- u.init = function() {
320
+ var R = c.init;
321
+ c.init = function() {
322
322
  if (this.$u) {
323
- var s = this.$d;
324
- this.$y = s.getUTCFullYear(), this.$M = s.getUTCMonth(), this.$D = s.getUTCDate(), this.$W = s.getUTCDay(), this.$H = s.getUTCHours(), this.$m = s.getUTCMinutes(), this.$s = s.getUTCSeconds(), this.$ms = s.getUTCMilliseconds();
323
+ var e = this.$d;
324
+ this.$y = e.getUTCFullYear(), this.$M = e.getUTCMonth(), this.$D = e.getUTCDate(), this.$W = e.getUTCDay(), this.$H = e.getUTCHours(), this.$m = e.getUTCMinutes(), this.$s = e.getUTCSeconds(), this.$ms = e.getUTCMilliseconds();
325
325
  } else
326
326
  R.call(this);
327
327
  };
328
- var b = u.utcOffset;
329
- u.utcOffset = function(s, M) {
330
- var q = this.$utils().u;
331
- if (q(s))
332
- return this.$u ? 0 : q(this.$offset) ? b.call(this) : this.$offset;
333
- if (typeof s == "string" && (s = function(z) {
334
- z === void 0 && (z = "");
335
- var O = z.match(y);
336
- if (!O)
328
+ var p = c.utcOffset;
329
+ c.utcOffset = function(e, M) {
330
+ var F = this.$utils().u;
331
+ if (F(e))
332
+ return this.$u ? 0 : F(this.$offset) ? p.call(this) : this.$offset;
333
+ if (typeof e == "string" && (e = function(B) {
334
+ B === void 0 && (B = "");
335
+ var I = B.match(g);
336
+ if (!I)
337
337
  return null;
338
- var Y = ("" + O[0]).match(w) || ["-", 0, 0], Z = Y[0], H = 60 * +Y[1] + +Y[2];
339
- return H === 0 ? 0 : Z === "+" ? H : -H;
340
- }(s), s === null))
338
+ var J = ("" + I[0]).match(S) || ["-", 0, 0], te = J[0], H = 60 * +J[1] + +J[2];
339
+ return H === 0 ? 0 : te === "+" ? H : -H;
340
+ }(e), e === null))
341
341
  return this;
342
- var U = Math.abs(s) <= 16 ? 60 * s : s;
343
- if (U === 0)
342
+ var q = Math.abs(e) <= 16 ? 60 * e : e;
343
+ if (q === 0)
344
344
  return this.utc(M);
345
- var x = this.clone();
345
+ var E = this.clone();
346
346
  if (M)
347
- return x.$offset = U, x.$u = !1, x;
347
+ return E.$offset = q, E.$u = !1, E;
348
348
  var G = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
349
- return (x = this.local().add(U + G, f)).$offset = U, x.$x.$localOffset = G, x;
349
+ return (E = this.local().add(q + G, d)).$offset = q, E.$x.$localOffset = G, E;
350
350
  };
351
- var C = u.format;
352
- u.format = function(s) {
353
- var M = s || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
354
- return C.call(this, M);
355
- }, u.valueOf = function() {
356
- var s = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
357
- return this.$d.valueOf() - 6e4 * s;
358
- }, u.isUTC = function() {
351
+ var z = c.format;
352
+ c.format = function(e) {
353
+ var M = e || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
354
+ return z.call(this, M);
355
+ }, c.valueOf = function() {
356
+ var e = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
357
+ return this.$d.valueOf() - 6e4 * e;
358
+ }, c.isUTC = function() {
359
359
  return !!this.$u;
360
- }, u.toISOString = function() {
360
+ }, c.toISOString = function() {
361
361
  return this.toDate().toISOString();
362
- }, u.toString = function() {
362
+ }, c.toString = function() {
363
363
  return this.toDate().toUTCString();
364
364
  };
365
- var a = u.toDate;
366
- u.toDate = function(s) {
367
- return s === "s" && this.$offset ? v(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : a.call(this);
365
+ var y = c.toDate;
366
+ c.toDate = function(e) {
367
+ return e === "s" && this.$offset ? v(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : y.call(this);
368
368
  };
369
- var F = u.diff;
370
- u.diff = function(s, M, q) {
371
- if (s && this.$u === s.$u)
372
- return F.call(this, s, M, q);
373
- var U = this.local(), x = v(s).local();
374
- return F.call(U, x, M, q);
369
+ var C = c.diff;
370
+ c.diff = function(e, M, F) {
371
+ if (e && this.$u === e.$u)
372
+ return C.call(this, e, M, F);
373
+ var q = this.local(), E = v(e).local();
374
+ return C.call(q, E, M, F);
375
375
  };
376
376
  };
377
377
  });
378
- })(ye);
379
- var ve = ye.exports;
380
- const Me = /* @__PURE__ */ me(ve);
381
- ge.extend(Me);
382
- function Se() {
383
- let d = (/* @__PURE__ */ new Date()).getTimezoneOffset();
384
- const c = Math.abs(Math.floor(d / 60)), f = d < 0 ? "+" : "-";
385
- return d = Math.abs(d % 60), f + c.toString().padStart(2, "0") + d.toString().padStart(2, "0");
378
+ })(we);
379
+ var Me = we.exports;
380
+ const Se = /* @__PURE__ */ be(Me);
381
+ ye.extend(Se);
382
+ function xe() {
383
+ let r = (/* @__PURE__ */ new Date()).getTimezoneOffset();
384
+ const b = Math.abs(Math.floor(r / 60)), d = r < 0 ? "+" : "-";
385
+ return r = Math.abs(r % 60), d + b.toString().padStart(2, "0") + r.toString().padStart(2, "0");
386
386
  }
387
- function le(d, c, f) {
388
- return d ? (c === void 0 && (c = "YYYY-MM-DD HH:mm:ss"), f || (f = Se()), ge.utc(d).utcOffset(f).format(c)) : "";
387
+ function le(r, b, d) {
388
+ return r ? (b === void 0 && (b = "YYYY-MM-DD HH:mm:ss"), d || (d = xe()), ye.utc(r).utcOffset(d).format(b)) : "";
389
389
  }
390
- const xe = {
390
+ const Ee = {
391
391
  cn: {
392
392
  seconds: "秒",
393
393
  minutes: "分钟",
@@ -401,48 +401,50 @@ const xe = {
401
401
  days: "d"
402
402
  }
403
403
  };
404
- function fe(d, c = "cn") {
405
- const f = xe[c], y = Math.floor(d / (24 * 60 * 60 * 1e3)), w = Math.floor(d / (60 * 60 * 1e3) - y * 24), k = Math.floor(d / (60 * 1e3) - y * 24 * 60 - w * 60), T = Math.floor(d / 1e3 - y * 24 * 60 * 60 - w * 60 * 60 - k * 60);
406
- return y > 0 ? y + f.days + w + f.hours + k + f.minutes : w > 0 ? w + f.hours + k + f.minutes : k > 0 ? k + f.minutes : T > 0 ? T + f.seconds : 0 + f.seconds;
404
+ function ue(r, b = "cn") {
405
+ const d = Ee[b], g = Math.floor(r / (24 * 60 * 60 * 1e3)), S = Math.floor(r / (60 * 60 * 1e3) - g * 24), h = Math.floor(r / (60 * 1e3) - g * 24 * 60 - S * 60), N = Math.floor(r / 1e3 - g * 24 * 60 * 60 - S * 60 * 60 - h * 60);
406
+ return g > 0 ? g + d.days + S + d.hours + h + d.minutes : S > 0 ? S + d.hours + h + d.minutes : h > 0 ? h + d.minutes : N > 0 ? N + d.seconds : 0 + d.seconds;
407
407
  }
408
- const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-between" }, $e = { class: "text-18px font-bold" }, Pe = {
408
+ const De = { class: "scroll-area" }, $e = { class: "flow-header flex justify-between" }, Pe = { class: "text-18px font-bold" }, Ae = {
409
409
  class: "text-14px font-bold",
410
410
  style: { color: "#005aae" }
411
- }, Ae = { class: "flex items-center" }, ke = { class: "flow-start" }, Fe = { key: 0 }, Ie = { class: "mt-30px block" }, Be = ["src"], Ce = { style: { "font-weight": "700" } }, Ue = {
411
+ }, ke = { class: "flex items-center" }, Fe = { class: "flow-start" }, Ie = { key: 0 }, Ce = { class: "mt-30px block" }, Be = ["src"], Ue = { style: { "font-weight": "700" } }, Le = {
412
412
  key: 0,
413
413
  style: { "margin-right": "30px", "font-weight": "normal" }
414
- }, Le = {
414
+ }, Re = {
415
415
  key: 1,
416
416
  style: { "margin-right": "30px", "font-weight": "normal" }
417
- }, Re = {
417
+ }, qe = {
418
418
  key: 0,
419
419
  style: { "font-weight": "normal" }
420
- }, qe = {
420
+ }, Oe = {
421
421
  key: 1,
422
422
  style: { "font-weight": "normal", color: "#8a909c" }
423
- }, Oe = {
423
+ }, ze = {
424
424
  key: 2,
425
425
  style: { "font-weight": "normal" }
426
- }, ze = {
426
+ }, He = {
427
427
  key: 3,
428
428
  style: { "font-weight": "normal", color: "#8a909c" }
429
- }, He = {
429
+ }, je = {
430
430
  key: 4,
431
431
  style: { "margin-left": "30px", "font-weight": "normal" }
432
- }, je = {
432
+ }, Ge = {
433
433
  key: 5,
434
434
  style: { "font-weight": "normal", color: "#8a909c" }
435
- }, Ge = { key: 2 }, We = /* @__PURE__ */ ue({
435
+ }, We = { key: 2 }, Ve = /* @__PURE__ */ pe({
436
436
  name: "BpmProcessInstanceTaskList",
437
437
  __name: "CmcFlowList",
438
438
  props: {
439
439
  processInstance: {},
440
440
  tasks: {}
441
441
  },
442
- setup(d) {
443
- const c = et();
444
- console.log("ttttttttttttttttttttttt", c);
445
- const f = {
442
+ setup(r) {
443
+ const b = () => {
444
+ console.log(d("processFlow.flow"));
445
+ }, { t: d } = Te();
446
+ console.log("ttttttttttttttttttttttt", d);
447
+ const g = {
446
448
  1: "svg-icon:approvalPending",
447
449
  // 审批中
448
450
  2: "svg-icon:approvalPass",
@@ -451,131 +453,139 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
451
453
  // 拒绝
452
454
  4: "svg-icon:approvalCanceled"
453
455
  // 取消
454
- }, y = (w) => [0, 1, 6, 7].includes(w.status) ? "primary" : w.status === 2 ? "success" : w.status === 3 ? "danger" : w.status === 4 ? "info" : w.status === 5 ? "warning" : "";
455
- return (w, k) => {
456
+ }, S = (h) => [0, 1, 6, 7].includes(h.status) ? "primary" : h.status === 2 ? "success" : h.status === 3 ? "danger" : h.status === 4 ? "info" : h.status === 5 ? "warning" : "";
457
+ return (h, N) => {
456
458
  var C;
457
- const T = J("Icon"), v = J("dict-tag"), u = J("el-tag"), $ = J("el-card"), R = J("el-timeline-item"), b = J("el-timeline");
458
- return D(), B("div", Ee, [
459
- A("div", De, [
460
- A("div", $e, [
461
- A("span", null, g(E(c)("processFlow.flow")), 1),
462
- A("span", null, g(d.processInstance.id), 1)
459
+ const v = Y("el-button"), c = Y("Icon"), A = Y("dict-tag"), R = Y("el-tag"), p = Y("el-card"), z = Y("el-timeline-item"), y = Y("el-timeline");
460
+ return P(), L(fe, null, [
461
+ X(v, { onClick: b }, {
462
+ default: Q(() => [...N[0] || (N[0] = [
463
+ Z("获取国际化值", -1)
464
+ ])]),
465
+ _: 1
466
+ }),
467
+ D("div", De, [
468
+ D("div", $e, [
469
+ D("div", Pe, [
470
+ D("span", null, m($(d)("processFlow.flow")), 1),
471
+ D("span", null, m(r.processInstance.id), 1)
472
+ ]),
473
+ D("div", Ae, [
474
+ D("span", null, m(r.processInstance.name), 1)
475
+ ])
463
476
  ]),
464
- A("div", Pe, [
465
- A("span", null, g(d.processInstance.name), 1)
466
- ])
467
- ]),
468
- A("div", Ae, [
469
- A("div", ke, [
470
- A("p", null, g(E(c)("processFlow.startTime")) + g(E(le)(d.processInstance.startTime)), 1),
471
- A("p", null, g(E(c)("processFlow.endTime")) + g(E(le)(d.processInstance.endTime)), 1),
472
- d.processInstance.durationInMillis ? (D(), B("p", Fe, g(E(c)("processFlow.duration")) + g(E(fe)((C = d.processInstance) == null ? void 0 : C.durationInMillis)), 1)) : L("", !0)
477
+ D("div", ke, [
478
+ D("div", Fe, [
479
+ D("p", null, m($(d)("processFlow.startTime")) + m($(le)(r.processInstance.startTime)), 1),
480
+ D("p", null, m($(d)("processFlow.endTime")) + m($(le)(r.processInstance.endTime)), 1),
481
+ r.processInstance.durationInMillis ? (P(), L("p", Ie, m($(d)("processFlow.duration")) + m($(ue)((C = r.processInstance) == null ? void 0 : C.durationInMillis)), 1)) : O("", !0)
482
+ ]),
483
+ X(c, {
484
+ size: 100,
485
+ icon: g[r.processInstance.status] || "svg-icon:approvalPending"
486
+ }, null, 8, ["icon"])
473
487
  ]),
474
- ne(T, {
475
- size: 100,
476
- icon: f[d.processInstance.status] || "svg-icon:approvalPending"
477
- }, null, 8, ["icon"])
478
- ]),
479
- A("div", Ie, [
480
- ne(b, null, {
481
- default: K(() => [
482
- (D(!0), B(he, null, Ne(d.tasks, (a, F) => (D(), re(R, {
483
- key: F,
484
- type: y(a) || "info"
485
- }, {
486
- dot: K(() => {
487
- var s;
488
- return [
489
- A("img", {
490
- src: ((s = a == null ? void 0 : a.assigneeUser) == null ? void 0 : s.avatar) || "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
491
- class: "avatar-wrap"
492
- }, null, 8, Be)
493
- ];
494
- }),
495
- default: K(() => [
496
- A("p", Ce, [
497
- ae(g(a.name) + " ", 1),
498
- a.status ? (D(), re(v, {
499
- key: 0,
500
- type: "bpm_task_status",
501
- value: a.status || ""
502
- }, null, 8, ["value"])) : L("", !0)
488
+ D("div", Ce, [
489
+ X(y, null, {
490
+ default: Q(() => [
491
+ (P(!0), L(fe, null, Ne(r.tasks, (e, M) => (P(), re(z, {
492
+ key: M,
493
+ type: S(e) || "info"
494
+ }, {
495
+ dot: Q(() => {
496
+ var F;
497
+ return [
498
+ D("img", {
499
+ src: ((F = e == null ? void 0 : e.assigneeUser) == null ? void 0 : F.avatar) || "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
500
+ class: "avatar-wrap"
501
+ }, null, 8, Be)
502
+ ];
503
+ }),
504
+ default: Q(() => [
505
+ D("p", Ue, [
506
+ Z(m(e.name) + " ", 1),
507
+ e.status ? (P(), re(A, {
508
+ key: 0,
509
+ type: "bpm_task_status",
510
+ value: e.status || ""
511
+ }, null, 8, ["value"])) : O("", !0)
512
+ ]),
513
+ X(p, { "body-style": { padding: "10px" } }, {
514
+ default: Q(() => {
515
+ var F, q, E, G;
516
+ return [
517
+ M === 0 ? (P(), L("label", Le, [
518
+ Z(m(((F = e.assigneeUser) == null ? void 0 : F.nickname) || ((q = e.ownerUser) == null ? void 0 : q.nickname)) + " ", 1),
519
+ X(R, {
520
+ size: "small",
521
+ type: "info",
522
+ style: { "vertical-align": "1px" }
523
+ }, {
524
+ default: Q(() => {
525
+ var B, I;
526
+ return [
527
+ Z(m((I = (B = r.processInstance) == null ? void 0 : B.startUser) == null ? void 0 : I.deptName), 1)
528
+ ];
529
+ }),
530
+ _: 1
531
+ })
532
+ ])) : O("", !0),
533
+ e.assigneeUser ? (P(), L("label", Re, [
534
+ Z(m($(d)("processFlow.approver")) + m(((E = e.assigneeUser) == null ? void 0 : E.nickname) || ((G = e.ownerUser) == null ? void 0 : G.nickname)) + " ", 1),
535
+ X(R, {
536
+ size: "small",
537
+ type: "info",
538
+ style: { "vertical-align": "1px" }
539
+ }, {
540
+ default: Q(() => [
541
+ Z(m(e.assigneeUser.deptName), 1)
542
+ ]),
543
+ _: 2
544
+ }, 1024)
545
+ ])) : O("", !0),
546
+ D("div", null, [
547
+ e.createTime && !e.endTime ? (P(), L("label", qe, m($(d)("processFlow.createTime")), 1)) : O("", !0),
548
+ e.createTime && !e.endTime ? (P(), L("label", Oe, m($(le)(e == null ? void 0 : e.createTime, "MM-DD HH:mm")), 1)) : O("", !0),
549
+ e.endTime ? (P(), L("label", ze, m($(d)("processFlow.approvalTime")), 1)) : O("", !0),
550
+ e.endTime ? (P(), L("label", He, m($(le)(e == null ? void 0 : e.endTime, "MM-DD HH:mm")), 1)) : O("", !0),
551
+ e.durationInMillis ? (P(), L("label", je, m($(d)("processFlow.duration")), 1)) : O("", !0),
552
+ e.durationInMillis ? (P(), L("label", Ge, m($(ue)(e == null ? void 0 : e.durationInMillis)), 1)) : O("", !0)
553
+ ]),
554
+ e.reason ? (P(), L("div", We, m($(d)("processFlow.approvalSuggestion")) + m(e.reason), 1)) : O("", !0)
555
+ ];
556
+ }),
557
+ _: 2
558
+ }, 1024)
503
559
  ]),
504
- ne($, { "body-style": { padding: "10px" } }, {
505
- default: K(() => {
506
- var s, M, q, U;
507
- return [
508
- F === 0 ? (D(), B("label", Ue, [
509
- ae(g(((s = a.assigneeUser) == null ? void 0 : s.nickname) || ((M = a.ownerUser) == null ? void 0 : M.nickname)) + " ", 1),
510
- ne(u, {
511
- size: "small",
512
- type: "info",
513
- style: { "vertical-align": "1px" }
514
- }, {
515
- default: K(() => {
516
- var x, G;
517
- return [
518
- ae(g((G = (x = d.processInstance) == null ? void 0 : x.startUser) == null ? void 0 : G.deptName), 1)
519
- ];
520
- }),
521
- _: 1
522
- })
523
- ])) : L("", !0),
524
- a.assigneeUser ? (D(), B("label", Le, [
525
- ae(g(E(c)("processFlow.approver")) + g(((q = a.assigneeUser) == null ? void 0 : q.nickname) || ((U = a.ownerUser) == null ? void 0 : U.nickname)) + " ", 1),
526
- ne(u, {
527
- size: "small",
528
- type: "info",
529
- style: { "vertical-align": "1px" }
530
- }, {
531
- default: K(() => [
532
- ae(g(a.assigneeUser.deptName), 1)
533
- ]),
534
- _: 2
535
- }, 1024)
536
- ])) : L("", !0),
537
- A("div", null, [
538
- a.createTime && !a.endTime ? (D(), B("label", Re, g(E(c)("processFlow.createTime")), 1)) : L("", !0),
539
- a.createTime && !a.endTime ? (D(), B("label", qe, g(E(le)(a == null ? void 0 : a.createTime, "MM-DD HH:mm")), 1)) : L("", !0),
540
- a.endTime ? (D(), B("label", Oe, g(E(c)("processFlow.approvalTime")), 1)) : L("", !0),
541
- a.endTime ? (D(), B("label", ze, g(E(le)(a == null ? void 0 : a.endTime, "MM-DD HH:mm")), 1)) : L("", !0),
542
- a.durationInMillis ? (D(), B("label", He, g(E(c)("processFlow.duration")), 1)) : L("", !0),
543
- a.durationInMillis ? (D(), B("label", je, g(E(fe)(a == null ? void 0 : a.durationInMillis)), 1)) : L("", !0)
544
- ]),
545
- a.reason ? (D(), B("div", Ge, g(E(c)("processFlow.approvalSuggestion")) + g(a.reason), 1)) : L("", !0)
546
- ];
547
- }),
548
- _: 2
549
- }, 1024)
550
- ]),
551
- _: 2
552
- }, 1032, ["type"]))), 128))
553
- ]),
554
- _: 1
555
- })
560
+ _: 2
561
+ }, 1032, ["type"]))), 128))
562
+ ]),
563
+ _: 1
564
+ })
565
+ ])
556
566
  ])
557
- ]);
567
+ ], 64);
558
568
  };
559
569
  }
560
570
  });
561
- const we = (d, c) => {
562
- const f = d.__vccOpts || d;
563
- for (const [y, w] of c)
564
- f[y] = w;
565
- return f;
566
- }, Ve = /* @__PURE__ */ we(We, [["__scopeId", "data-v-551817a9"]]), Ye = /* @__PURE__ */ ue({
571
+ const he = (r, b) => {
572
+ const d = r.__vccOpts || r;
573
+ for (const [g, S] of b)
574
+ d[g] = S;
575
+ return d;
576
+ }, Ye = /* @__PURE__ */ he(Ve, [["__scopeId", "data-v-c3de9c24"]]), Qe = /* @__PURE__ */ pe({
567
577
  __name: "CmcProcessFlow",
568
578
  props: {
569
579
  processInstanceId: {}
570
580
  },
571
- setup(d) {
572
- const c = d, f = X(!1), y = X({}), w = X({}), k = X(""), T = X([]), v = X(""), u = (b) => {
573
- v.value = b, $(), R();
574
- }, $ = async () => {
575
- var b, C;
581
+ setup(r) {
582
+ const b = r, d = ee(!1), g = ee({}), S = ee({}), h = ee(""), N = ee([]), v = ee(""), c = (p) => {
583
+ v.value = p, A(), R();
584
+ }, A = async () => {
585
+ var p, z;
576
586
  try {
577
- f.value = !0;
578
- const a = {
587
+ d.value = !0;
588
+ const y = {
579
589
  status: 1,
580
590
  activityNodes: [
581
591
  {
@@ -1095,12 +1105,12 @@ const we = (d, c) => {
1095
1105
  tasks: null
1096
1106
  }
1097
1107
  };
1098
- y.value = a == null ? void 0 : a.processInstance, k.value = (C = (b = a == null ? void 0 : a.processInstance) == null ? void 0 : b.formVariables) == null ? void 0 : C.applicationPrefix, w.value = a == null ? void 0 : a.todoTask;
1108
+ g.value = y == null ? void 0 : y.processInstance, h.value = (z = (p = y == null ? void 0 : y.processInstance) == null ? void 0 : p.formVariables) == null ? void 0 : z.applicationPrefix, S.value = y == null ? void 0 : y.todoTask;
1099
1109
  } finally {
1100
- f.value = !1;
1110
+ d.value = !1;
1101
1111
  }
1102
1112
  }, R = async () => {
1103
- T.value = [
1113
+ N.value = [
1104
1114
  {
1105
1115
  id: "0fff48cd-2f25-11f1-9259-fa163e43f4f0",
1106
1116
  name: "发起人",
@@ -1224,49 +1234,49 @@ const we = (d, c) => {
1224
1234
  ];
1225
1235
  };
1226
1236
  return _e(
1227
- () => c.processInstanceId,
1228
- (b) => {
1229
- b && b !== v.value && u(b);
1237
+ () => b.processInstanceId,
1238
+ (p) => {
1239
+ p && p !== v.value && c(p);
1230
1240
  },
1231
1241
  { immediate: !0, deep: !0 }
1232
- ), (b, C) => (D(), re(Ve, {
1233
- "process-instance": y.value,
1234
- tasks: T.value
1242
+ ), (p, z) => (P(), re(Ye, {
1243
+ "process-instance": g.value,
1244
+ tasks: N.value
1235
1245
  }, null, 8, ["process-instance", "tasks"]));
1236
1246
  }
1237
1247
  });
1238
- const Qe = /* @__PURE__ */ we(Ye, [["__scopeId", "data-v-a4649f52"]]), Je = {
1248
+ const Je = /* @__PURE__ */ he(Qe, [["__scopeId", "data-v-8157be09"]]), Ke = {
1239
1249
  taskNotExist: "任务不不在"
1240
- }, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1250
+ }, Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1241
1251
  __proto__: null,
1242
- bpm: Je
1243
- }, Symbol.toStringTag, { value: "Module" })), Xe = {
1252
+ bpm: Ke
1253
+ }, Symbol.toStringTag, { value: "Module" })), Ze = {
1244
1254
  taskNotExist: "task not exist"
1245
- }, Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1255
+ }, et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1246
1256
  __proto__: null,
1247
- bpm: Xe
1257
+ bpm: Ze
1248
1258
  }, Symbol.toStringTag, { value: "Module" }));
1249
1259
  let de = null, ie = null;
1250
1260
  const at = {
1251
- install(d, c) {
1252
- if (console.log("插件install执行,options:", c), !(c != null && c.request))
1261
+ install(r, b) {
1262
+ if (console.log("插件install执行,options:", b), !(b != null && b.request))
1253
1263
  throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");
1254
- de = c.request, ie = c.i18n, ie.global.mergeLocaleMessage("zh-CN", Ke), ie.global.mergeLocaleMessage("en", Ze), d.component("CmcProcessFlow", Qe);
1264
+ de = b.request, ie = b.i18n, ie.global.mergeLocaleMessage("zh-CN", Xe), ie.global.mergeLocaleMessage("en", et), r.component("CmcProcessFlow", Je);
1255
1265
  }
1256
1266
  };
1257
- function et() {
1267
+ function it() {
1258
1268
  if (!ie)
1259
1269
  throw new Error("没有_i18n对象");
1260
1270
  return ie;
1261
1271
  }
1262
- function it() {
1272
+ function st() {
1263
1273
  if (!de)
1264
1274
  throw new Error("没有_request对象");
1265
1275
  return de;
1266
1276
  }
1267
1277
  export {
1268
- Qe as CmcProcessFlow,
1278
+ Je as CmcProcessFlow,
1269
1279
  at as default,
1270
- et as getI18n,
1271
- it as getRequest
1280
+ it as getI18n,
1281
+ st as getRequest
1272
1282
  };