@vancone/console-component 0.1.1-beta.28 → 0.1.1-beta.29

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vancone/console-component",
3
3
  "private": false,
4
- "version": "0.1.1-beta.28",
4
+ "version": "0.1.1-beta.29",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "packages/dist/**"
@@ -391,16 +391,16 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
391
391
  ]);
392
392
  Dt(() => {
393
393
  var R, G, ee;
394
- w.value = decodeURIComponent(M("passport_username").replace(/\+/g, " ")), w.value === "" && zo().then(({ data: b }) => {
394
+ w.value = decodeURIComponent(M("passport_username").replace(/\+/g, " ")), w.value === "" && zo().then(({ data: g }) => {
395
395
  var h;
396
- b.code == 0 && (w.value = (h = b.data.name) != null ? h : b.data.displayId);
397
- }), (R = a.headerProjectConfig) != null && R.api ? Ce((G = a.headerProjectConfig) == null ? void 0 : G.api, "GET", {}).then(({ data: b }) => {
398
- i.value = b.data;
396
+ g.code == 0 && (w.value = (h = g.data.name) != null ? h : g.data.displayId);
397
+ }), (R = a.headerProjectConfig) != null && R.api ? Ce((G = a.headerProjectConfig) == null ? void 0 : G.api, "GET", {}).then(({ data: g }) => {
398
+ i.value = g.data;
399
399
  }) : (ee = a.headerProjectConfig) != null && ee.items && (i.value = a.headerProjectConfig.items);
400
400
  });
401
401
  function M(R) {
402
- for (var G = R + "=", ee = document.cookie.split(";"), b = 0; b < ee.length; b++) {
403
- for (var h = ee[b]; h.charAt(0) == " "; ) h = h.substring(1);
402
+ for (var G = R + "=", ee = document.cookie.split(";"), g = 0; g < ee.length; g++) {
403
+ for (var h = ee[g]; h.charAt(0) == " "; ) h = h.substring(1);
404
404
  if (h.indexOf(G) != -1)
405
405
  return h.substring(G.length, h.length);
406
406
  }
@@ -432,7 +432,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
432
432
  }
433
433
  }
434
434
  return (R, G) => {
435
- const ee = O("el-icon"), b = O("el-dropdown-item"), h = O("el-dropdown-menu"), S = O("el-dropdown"), P = O("el-popover"), u = O("el-tooltip"), c = O("el-avatar"), C = O("el-menu-item"), $ = O("el-menu"), L = O("el-drawer");
435
+ const ee = O("el-icon"), g = O("el-dropdown-item"), h = O("el-dropdown-menu"), S = O("el-dropdown"), P = O("el-popover"), u = O("el-tooltip"), c = O("el-avatar"), C = O("el-menu-item"), $ = O("el-menu"), L = O("el-drawer");
436
436
  return p(), A(le, null, [
437
437
  y("div", En, [
438
438
  y("div", On, [
@@ -453,7 +453,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
453
453
  dropdown: d(() => [
454
454
  m(h, { style: { width: "300px" } }, {
455
455
  default: d(() => [
456
- (p(!0), A(le, null, fe(i.value, (U) => (p(), I(b, {
456
+ (p(!0), A(le, null, fe(i.value, (U) => (p(), I(g, {
457
457
  command: U.id
458
458
  }, {
459
459
  default: d(() => [
@@ -461,7 +461,7 @@ const En = { class: "header" }, On = { class: "title" }, $n = { class: "right" }
461
461
  ]),
462
462
  _: 2
463
463
  }, 1032, ["command"]))), 256)),
464
- m(b, {
464
+ m(g, {
465
465
  divided: "",
466
466
  command: "allProjects"
467
467
  }, {
@@ -1513,7 +1513,7 @@ function ht(e, t, o = {}, n, s, r) {
1513
1513
  function T(H) {
1514
1514
  L.push(H);
1515
1515
  }
1516
- function g(H) {
1516
+ function b(H) {
1517
1517
  U.push(H);
1518
1518
  }
1519
1519
  Re(N, {
@@ -1521,7 +1521,7 @@ function ht(e, t, o = {}, n, s, r) {
1521
1521
  name: C[pt],
1522
1522
  store: h,
1523
1523
  after: T,
1524
- onError: g
1524
+ onError: b
1525
1525
  });
1526
1526
  let j;
1527
1527
  try {
@@ -1537,7 +1537,7 @@ function ht(e, t, o = {}, n, s, r) {
1537
1537
  getters: {},
1538
1538
  state: [],
1539
1539
  hotState: F
1540
- }), b = {
1540
+ }), g = {
1541
1541
  _p: n,
1542
1542
  // _s: scope,
1543
1543
  $id: e,
@@ -1561,10 +1561,10 @@ function ht(e, t, o = {}, n, s, r) {
1561
1561
  _customProperties: Me(/* @__PURE__ */ new Set())
1562
1562
  // devtools custom properties
1563
1563
  },
1564
- b
1564
+ g
1565
1565
  // must be added later
1566
1566
  // setupStore
1567
- ) : b);
1567
+ ) : g);
1568
1568
  n._s.set(e, h);
1569
1569
  const P = (n._a && n._a.runWithContext || ps)(() => n._e.run(() => (l = Ft()).run(() => t({ action: G }))));
1570
1570
  for (const u in P) {
@@ -2092,13 +2092,13 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
2092
2092
  },
2093
2093
  emits: ["update:id"],
2094
2094
  setup(e, { expose: t, emit: o }) {
2095
- const { t: n } = rt.global, s = e, r = de({}), l = V(!1), a = V(), i = de({}), f = V(!0), w = (b) => s.mode === "view" && (G(b, void 0) || G(b, "input") || G(b, "select") || G(b, "password") || G(b, "input-number")), E = Te(() => s.model.fields ? s.model.fields.filter(
2096
- (b) => {
2095
+ const { t: n } = rt.global, s = e, r = de({}), l = V(!1), a = V(), i = de({}), f = V(!0), w = (g) => s.mode === "view" && (G(g, void 0) || G(g, "input") || G(g, "select") || G(g, "password") || G(g, "input-number")), E = Te(() => s.model.fields ? s.model.fields.filter(
2096
+ (g) => {
2097
2097
  var P, u, c, C;
2098
- let h = b.visible !== !1 && ((P = b.formItemAttributes) == null ? void 0 : P.visible) !== !1;
2099
- if (s.mode !== "view" && ((u = b.formItemAttributes) == null ? void 0 : u.editable) === !1 || s.mode === "view" && ((c = b.formItemAttributes) == null ? void 0 : c.type) === "password")
2098
+ let h = g.visible !== !1 && ((P = g.formItemAttributes) == null ? void 0 : P.visible) !== !1;
2099
+ if (s.mode !== "view" && ((u = g.formItemAttributes) == null ? void 0 : u.editable) === !1 || s.mode === "view" && ((c = g.formItemAttributes) == null ? void 0 : c.type) === "password")
2100
2100
  return !1;
2101
- let S = (C = b.formItemAttributes) == null ? void 0 : C.showCondition;
2101
+ let S = (C = g.formItemAttributes) == null ? void 0 : C.showCondition;
2102
2102
  if (S && S.field && S.value !== void 0) {
2103
2103
  if (S.operator === void 0 || S.operator === "==")
2104
2104
  return r[S.field] === S.value;
@@ -2119,16 +2119,16 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
2119
2119
  });
2120
2120
  function N() {
2121
2121
  console.log("FormView.initFormFields: begin");
2122
- const b = s.model.fields;
2122
+ const g = s.model.fields;
2123
2123
  let h = {};
2124
- b == null || b.forEach((S) => {
2125
- var P, u, c, C, $, L, U, T, g, j, H, _, k;
2124
+ g == null || g.forEach((S) => {
2125
+ var P, u, c, C, $, L, U, T, b, j, H, _, k;
2126
2126
  if (r[S.prop] = null, S.visible !== !1 && ((P = S.formItemAttributes) == null ? void 0 : P.visible) !== !1) {
2127
2127
  if (((u = S.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[S.prop] = (c = S.formItemAttributes) == null ? void 0 : c.defaultValue : r[S.prop] = void 0, s.mode !== "view") {
2128
2128
  let K = (C = S.formItemAttributes) == null ? void 0 : C.validationRule;
2129
2129
  K !== void 0 && (h[S.prop] = K), ze(i), Object.assign(i, h);
2130
2130
  }
2131
- const v = S.formItemAttributes, J = v == null ? void 0 : v.type, z = ($ = v == null ? void 0 : v.selectAttributes) == null ? void 0 : $.useDatableDict, te = (L = v == null ? void 0 : v.selectAttributes) == null ? void 0 : L.dictId, ne = (U = v == null ? void 0 : v.selectAttributes) == null ? void 0 : U.api, se = (T = v == null ? void 0 : v.selectAttributes) == null ? void 0 : T.valueMappingField, Q = (g = v == null ? void 0 : v.selectAttributes) == null ? void 0 : g.labelMappingField;
2131
+ const v = S.formItemAttributes, J = v == null ? void 0 : v.type, z = ($ = v == null ? void 0 : v.selectAttributes) == null ? void 0 : $.useDatableDict, te = (L = v == null ? void 0 : v.selectAttributes) == null ? void 0 : L.dictId, ne = (U = v == null ? void 0 : v.selectAttributes) == null ? void 0 : U.api, se = (T = v == null ? void 0 : v.selectAttributes) == null ? void 0 : T.valueMappingField, Q = (b = v == null ? void 0 : v.selectAttributes) == null ? void 0 : b.labelMappingField;
2132
2132
  if (J === "select") {
2133
2133
  if (z) {
2134
2134
  let re = `${Te(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${te}`;
@@ -2162,68 +2162,68 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
2162
2162
  });
2163
2163
  }
2164
2164
  function M() {
2165
- var b;
2166
- console.log(`FormView.refresh: id = ${s.id}, model = `, s.model), F(), f.value = (b = s.model.useI18n) != null ? b : !0, N(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Ce(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: h }) => {
2165
+ var g;
2166
+ console.log(`FormView.refresh: id = ${s.id}, model = `, s.model), F(), f.value = (g = s.model.useI18n) != null ? g : !0, N(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Ce(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: h }) => {
2167
2167
  ze(r), Object.assign(r, h.data), l.value = !1;
2168
2168
  }));
2169
2169
  }
2170
2170
  function q() {
2171
- return new Promise((b, h) => {
2171
+ return new Promise((g, h) => {
2172
2172
  var P, u, c, C;
2173
2173
  ((u = (P = s.model.formConfig) == null ? void 0 : P.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (C = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : C.beforeSubmit(r));
2174
2174
  let S = s.mode === "create" ? "POST" : "PUT";
2175
2175
  s.model.api && Ce(s.model.api, S, r).then(({ data: $ }) => {
2176
- var L, U, T, g;
2177
- $.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((U = (L = s.model.formConfig) == null ? void 0 : L.functions) == null ? void 0 : U.afterSubmit) !== void 0 && ((g = (T = s.model.formConfig) == null ? void 0 : T.functions) == null || g.afterSubmit($.data)), s.afterSubmitFunc && s.afterSubmitFunc(), b());
2176
+ var L, U, T, b;
2177
+ $.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((U = (L = s.model.formConfig) == null ? void 0 : L.functions) == null ? void 0 : U.afterSubmit) !== void 0 && ((b = (T = s.model.formConfig) == null ? void 0 : T.functions) == null || b.afterSubmit($.data)), s.afterSubmitFunc && s.afterSubmitFunc(), g());
2178
2178
  });
2179
2179
  });
2180
2180
  }
2181
2181
  function F() {
2182
- var b;
2183
- console.log("FormView.reset: begin"), (b = a.value) == null || b.resetFields();
2182
+ var g;
2183
+ console.log("FormView.reset: begin"), (g = a.value) == null || g.resetFields();
2184
2184
  }
2185
- function Z(b) {
2186
- return b.label ? f ? n(b.label) : b.label : b.prop.slice(0, 1).toUpperCase() + b.prop.slice(1).toLowerCase();
2185
+ function Z(g) {
2186
+ return g.label ? f ? n(g.label) : g.label : g.prop.slice(0, 1).toUpperCase() + g.prop.slice(1).toLowerCase();
2187
2187
  }
2188
- function B(b) {
2188
+ function B(g) {
2189
2189
  var h, S, P, u;
2190
- if (b) {
2191
- if (G(b, "select")) {
2192
- const c = (S = (h = b.tableColumnAttributes) == null ? void 0 : h.functions) == null ? void 0 : S.transformValue;
2190
+ if (g) {
2191
+ if (G(g, "select")) {
2192
+ const c = (S = (h = g.tableColumnAttributes) == null ? void 0 : h.functions) == null ? void 0 : S.transformValue;
2193
2193
  if (c)
2194
- return c(r[b.prop]);
2195
- const C = (u = (P = b.formItemAttributes) == null ? void 0 : P.selectAttributes) == null ? void 0 : u.viewModeLabelField;
2194
+ return c(r[g.prop]);
2195
+ const C = (u = (P = g.formItemAttributes) == null ? void 0 : P.selectAttributes) == null ? void 0 : u.viewModeLabelField;
2196
2196
  if (C)
2197
2197
  return r[C];
2198
2198
  }
2199
- return r[b.prop];
2199
+ return r[g.prop];
2200
2200
  }
2201
2201
  }
2202
- function ie(b) {
2202
+ function ie(g) {
2203
2203
  var h;
2204
- return ((h = b.formItemAttributes) == null ? void 0 : h.updatable) === !1 && s.mode === "update";
2204
+ return ((h = g.formItemAttributes) == null ? void 0 : h.updatable) === !1 && s.mode === "update";
2205
2205
  }
2206
- function R(b, h) {
2206
+ function R(g, h) {
2207
2207
  var P, u;
2208
2208
  const S = (u = (P = h.formItemAttributes) == null ? void 0 : P.type) != null ? u : "input";
2209
- switch (b) {
2209
+ switch (g) {
2210
2210
  case "input":
2211
2211
  return s.mode === "view" ? !1 : S === "input" || S === "password";
2212
2212
  case "select":
2213
2213
  return !0;
2214
2214
  default:
2215
- return console.log("Error: unrecognized form component type: ", b), !0;
2215
+ return console.log("Error: unrecognized form component type: ", g), !0;
2216
2216
  }
2217
2217
  }
2218
- function G(b, h) {
2218
+ function G(g, h) {
2219
2219
  var S;
2220
- return ((S = b.formItemAttributes) == null ? void 0 : S.type) === h;
2220
+ return ((S = g.formItemAttributes) == null ? void 0 : S.type) === h;
2221
2221
  }
2222
- function ee(b) {
2222
+ function ee(g) {
2223
2223
  var h;
2224
2224
  for (let S of s.model.fields) {
2225
2225
  const P = (h = S.formItemAttributes) == null ? void 0 : h.selectAttributes;
2226
- if (!(!S.formItemAttributes || S.formItemAttributes.type !== "select" || !P || !P.queryParamValueField) && P.queryParamValueField === b.prop) {
2226
+ if (!(!S.formItemAttributes || S.formItemAttributes.type !== "select" || !P || !P.queryParamValueField) && P.queryParamValueField === g.prop) {
2227
2227
  const u = P.api;
2228
2228
  if (u) {
2229
2229
  let c = u;
@@ -2246,7 +2246,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
2246
2246
  reset: F,
2247
2247
  submit: q,
2248
2248
  formData: r
2249
- }), (b, h) => {
2249
+ }), (g, h) => {
2250
2250
  const S = O("el-input"), P = O("el-switch"), u = O("el-date-picker"), c = O("el-option"), C = O("el-select"), $ = O("el-input-number"), L = O("el-form-item"), U = O("el-form"), T = Gt("loading");
2251
2251
  return Lt((p(), I(U, {
2252
2252
  ref_key: "formRef",
@@ -2260,51 +2260,52 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
2260
2260
  inline: !s.disableInline
2261
2261
  }, {
2262
2262
  default: d(() => [
2263
- (p(!0), A(le, null, fe(E.value, (g) => (p(), I(L, {
2263
+ (p(!0), A(le, null, fe(E.value, (b) => (p(), I(L, {
2264
2264
  class: "form-item",
2265
2265
  style: je({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
2266
- prop: g.prop,
2267
- label: Z(g)
2266
+ prop: b.prop,
2267
+ label: Z(b)
2268
2268
  }, {
2269
2269
  default: d(() => {
2270
2270
  var j, H, _, k, v, J, z, te, ne, se, Q, K, re, ce, me, he;
2271
2271
  return [
2272
- R("input", g) ? (p(), I(S, {
2272
+ R("input", b) ? (p(), I(S, {
2273
2273
  key: 0,
2274
- type: G(g, "password") ? "password" : "text",
2275
- modelValue: r[g.prop],
2276
- "onUpdate:modelValue": (oe) => r[g.prop] = oe,
2277
- placeholder: (j = g.formItemAttributes) == null ? void 0 : j.placeholder,
2278
- disabled: ie(g)
2274
+ type: G(b, "password") ? "password" : "text",
2275
+ modelValue: r[b.prop],
2276
+ "onUpdate:modelValue": (oe) => r[b.prop] = oe,
2277
+ placeholder: (j = b.formItemAttributes) == null ? void 0 : j.placeholder,
2278
+ disabled: ie(b)
2279
2279
  }, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : W("", !0),
2280
- w(g) ? (p(), A("span", Ws, D(B(g)), 1)) : W("", !0),
2281
- G(g, "switch") ? (p(), I(P, {
2280
+ w(b) ? (p(), A("span", Ws, D(B(b)), 1)) : W("", !0),
2281
+ G(b, "switch") ? (p(), I(P, {
2282
2282
  key: 2,
2283
- modelValue: r[g.prop],
2284
- "onUpdate:modelValue": (oe) => r[g.prop] = oe,
2285
- disabled: b.mode === "view"
2283
+ modelValue: r[b.prop],
2284
+ "onUpdate:modelValue": (oe) => r[b.prop] = oe,
2285
+ disabled: g.mode === "view"
2286
2286
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : W("", !0),
2287
- G(g, "datepicker") ? (p(), I(u, {
2287
+ G(b, "datepicker") ? (p(), I(u, {
2288
2288
  key: 3,
2289
2289
  type: "date",
2290
2290
  "value-format": "YYYY-MM-DD",
2291
- modelValue: r[g.prop],
2292
- "onUpdate:modelValue": (oe) => r[g.prop] = oe
2293
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : W("", !0),
2294
- G(g, "select") && b.mode !== "view" ? (p(), I(C, {
2291
+ modelValue: r[b.prop],
2292
+ "onUpdate:modelValue": (oe) => r[b.prop] = oe,
2293
+ disabled: g.mode === "view"
2294
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : W("", !0),
2295
+ G(b, "select") && g.mode !== "view" ? (p(), I(C, {
2295
2296
  key: 4,
2296
- filterable: (_ = (H = g.formItemAttributes) == null ? void 0 : H.selectAttributes) == null ? void 0 : _.allowCreate,
2297
- "allow-create": (v = (k = g.formItemAttributes) == null ? void 0 : k.selectAttributes) == null ? void 0 : v.allowCreate,
2298
- "default-first-option": (z = (J = g.formItemAttributes) == null ? void 0 : J.selectAttributes) == null ? void 0 : z.allowCreate,
2299
- modelValue: r[g.prop],
2300
- "onUpdate:modelValue": (oe) => r[g.prop] = oe,
2301
- disabled: ie(g),
2302
- onChange: (oe) => ee(g)
2297
+ filterable: (_ = (H = b.formItemAttributes) == null ? void 0 : H.selectAttributes) == null ? void 0 : _.allowCreate,
2298
+ "allow-create": (v = (k = b.formItemAttributes) == null ? void 0 : k.selectAttributes) == null ? void 0 : v.allowCreate,
2299
+ "default-first-option": (z = (J = b.formItemAttributes) == null ? void 0 : J.selectAttributes) == null ? void 0 : z.allowCreate,
2300
+ modelValue: r[b.prop],
2301
+ "onUpdate:modelValue": (oe) => r[b.prop] = oe,
2302
+ disabled: ie(b),
2303
+ onChange: (oe) => ee(b)
2303
2304
  }, {
2304
2305
  default: d(() => {
2305
2306
  var oe, _e;
2306
2307
  return [
2307
- (p(!0), A(le, null, fe((_e = (oe = g.formItemAttributes) == null ? void 0 : oe.selectAttributes) == null ? void 0 : _e.options, (Ie) => (p(), I(c, {
2308
+ (p(!0), A(le, null, fe((_e = (oe = b.formItemAttributes) == null ? void 0 : oe.selectAttributes) == null ? void 0 : _e.options, (Ie) => (p(), I(c, {
2308
2309
  value: Ie.value,
2309
2310
  label: Ie.label
2310
2311
  }, null, 8, ["value", "label"]))), 256))
@@ -2312,13 +2313,13 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
2312
2313
  }),
2313
2314
  _: 2
2314
2315
  }, 1032, ["filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : W("", !0),
2315
- G(g, "input-number") && b.mode !== "view" ? (p(), I($, {
2316
+ G(b, "input-number") && g.mode !== "view" ? (p(), I($, {
2316
2317
  key: 5,
2317
- modelValue: r[g.prop],
2318
- "onUpdate:modelValue": (oe) => r[g.prop] = oe,
2319
- min: (se = (ne = (te = g.formItemAttributes) == null ? void 0 : te.inputNumber) == null ? void 0 : ne.min) != null ? se : Number.NEGATIVE_INFINITY,
2320
- max: (re = (K = (Q = g.formItemAttributes) == null ? void 0 : Q.inputNumber) == null ? void 0 : K.max) != null ? re : Number.POSITIVE_INFINITY,
2321
- step: (he = (me = (ce = g.formItemAttributes) == null ? void 0 : ce.inputNumber) == null ? void 0 : me.step) != null ? he : 1,
2318
+ modelValue: r[b.prop],
2319
+ "onUpdate:modelValue": (oe) => r[b.prop] = oe,
2320
+ min: (se = (ne = (te = b.formItemAttributes) == null ? void 0 : te.inputNumber) == null ? void 0 : ne.min) != null ? se : Number.NEGATIVE_INFINITY,
2321
+ max: (re = (K = (Q = b.formItemAttributes) == null ? void 0 : Q.inputNumber) == null ? void 0 : K.max) != null ? re : Number.POSITIVE_INFINITY,
2322
+ step: (he = (me = (ce = b.formItemAttributes) == null ? void 0 : ce.inputNumber) == null ? void 0 : me.step) != null ? he : 1,
2322
2323
  "value-on-clear": -10
2323
2324
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : W("", !0)
2324
2325
  ];
@@ -2332,7 +2333,7 @@ const Gs = /* @__PURE__ */ ye(Fs, [["render", Rs]]), Ls = { class: "card-wrapper
2332
2333
  ]);
2333
2334
  };
2334
2335
  }
2335
- }), ho = /* @__PURE__ */ ye(Js, [["__scopeId", "data-v-9ee8ac6f"]]), Ys = { class: "console-dialog__body" }, Ks = {
2336
+ }), ho = /* @__PURE__ */ ye(Js, [["__scopeId", "data-v-e9b79efe"]]), Ys = { class: "console-dialog__body" }, Ks = {
2336
2337
  key: 0,
2337
2338
  class: "process-view"
2338
2339
  }, Qs = { class: "operation-button-wrapper" }, _o = /* @__PURE__ */ Se({
@@ -2506,7 +2507,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
2506
2507
  }
2507
2508
  return v;
2508
2509
  }
2509
- function b(_, k) {
2510
+ function g(_, k) {
2510
2511
  var v, J;
2511
2512
  return _.label ? o(_.label) : (J = (v = _.functions) == null ? void 0 : v.transformLabel) == null ? void 0 : J.call(v, k.$index, k.row);
2512
2513
  }
@@ -2582,7 +2583,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
2582
2583
  function T(_) {
2583
2584
  q.value = _;
2584
2585
  }
2585
- function g(_) {
2586
+ function b(_) {
2586
2587
  return _.label ? a.value ? o(_.label) : _.label : _.prop.slice(0, 1).toUpperCase() + _.prop.slice(1).toLowerCase();
2587
2588
  }
2588
2589
  function j(_) {
@@ -2745,7 +2746,8 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
2745
2746
  }, 8, ["icon"]),
2746
2747
  m(te, {
2747
2748
  icon: x(Ot),
2748
- divided: ""
2749
+ divided: "",
2750
+ disabled: !0
2749
2751
  }, {
2750
2752
  default: d(() => k[4] || (k[4] = [
2751
2753
  Y("导出选中内容")
@@ -2763,7 +2765,8 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
2763
2765
  }, 8, ["icon"]),
2764
2766
  m(te, {
2765
2767
  icon: x(No),
2766
- divided: ""
2768
+ divided: "",
2769
+ disabled: !0
2767
2770
  }, {
2768
2771
  default: d(() => k[6] || (k[6] = [
2769
2772
  Y("任务中心")
@@ -2881,7 +2884,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
2881
2884
  var $e;
2882
2885
  return p(), I(ce, {
2883
2886
  prop: X.prop,
2884
- label: g(X),
2887
+ label: b(X),
2885
2888
  width: ($e = X.tableColumnAttributes) == null ? void 0 : $e.width,
2886
2889
  "show-overflow-tooltip": ""
2887
2890
  }, {
@@ -2975,7 +2978,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
2975
2978
  }
2976
2979
  }, {
2977
2980
  default: d(() => [
2978
- Y(D(b($e, X)), 1)
2981
+ Y(D(g($e, X)), 1)
2979
2982
  ]),
2980
2983
  _: 2
2981
2984
  }, 1032, ["onClick"]))), 128))
@@ -3012,7 +3015,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
3012
3015
  ], 2);
3013
3016
  };
3014
3017
  }
3015
- }), lt = /* @__PURE__ */ ye(rr, [["__scopeId", "data-v-f57808cf"]]), ar = { class: "nav-bar" }, lr = { style: { "font-size": "16px" } }, ir = {
3018
+ }), lt = /* @__PURE__ */ ye(rr, [["__scopeId", "data-v-5307a4aa"]]), ar = { class: "nav-bar" }, lr = { style: { "font-size": "16px" } }, ir = {
3016
3019
  key: 0,
3017
3020
  class: "info-card-wrapper"
3018
3021
  }, cr = { class: "icon-wrapper" }, ur = { class: "info-wrapper" }, dr = { class: "title-wrapper" }, pr = { class: "tabs-wrapper" }, fr = { class: "dialog-footer" }, mr = /* @__PURE__ */ Se({
@@ -3044,7 +3047,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
3044
3047
  w.value.refresh(), l.value = !1;
3045
3048
  });
3046
3049
  }
3047
- function b(u, c, C) {
3050
+ function g(u, c, C) {
3048
3051
  var U;
3049
3052
  C.functions || (C.functions = {}), C.functions.create = () => {
3050
3053
  l.value = !0, E.value && E.value.refresh();
@@ -3058,9 +3061,9 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
3058
3061
  delete: "common.table.remove"
3059
3062
  }, C.functions.batchDelete = (T) => {
3060
3063
  var _;
3061
- let g = (_ = R[f.value].api) == null ? void 0 : _.replace("/select", "");
3062
- g = g == null ? void 0 : g.substring(g.lastIndexOf("/"));
3063
- const j = B.api + "/" + s.value + g, H = T.map((k) => k.id);
3064
+ let b = (_ = R[f.value].api) == null ? void 0 : _.replace("/select", "");
3065
+ b = b == null ? void 0 : b.substring(b.lastIndexOf("/"));
3066
+ const j = B.api + "/" + s.value + b, H = T.map((k) => k.id);
3064
3067
  ve.delete(`${j}/${H.join(",")}`).then(({ data: k }) => {
3065
3068
  k.code === 0 && w.value.refresh();
3066
3069
  });
@@ -3068,12 +3071,12 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
3068
3071
  {
3069
3072
  label: "common.table.remove",
3070
3073
  functions: {
3071
- click: (T, g) => {
3074
+ click: (T, b) => {
3072
3075
  var _;
3073
3076
  let j = (_ = R[f.value].api) == null ? void 0 : _.replace("/select", "");
3074
3077
  j = j == null ? void 0 : j.substring(j.lastIndexOf("/"));
3075
3078
  const H = B.api + "/" + s.value + j;
3076
- Ce(H, "DELETE", g.id).then(() => {
3079
+ Ce(H, "DELETE", b.id).then(() => {
3077
3080
  w.value.refresh();
3078
3081
  });
3079
3082
  }
@@ -3096,18 +3099,18 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
3096
3099
  const C = (L = ($ = B.pageConfig) == null ? void 0 : $.detailPage) == null ? void 0 : L.tabs;
3097
3100
  if (C)
3098
3101
  for (let T of C) {
3099
- const g = Le(be.value[T.modelKey]);
3100
- if (ie.push(g), T.type === "table") {
3101
- g.tableConfig || (g.tableConfig = {});
3102
- let j = g.tableConfig;
3103
- j.showPane = !1, T.modelRelationType === "associated" ? b(T, g, j) : T.modelRelationType === "child" && (R.push({
3102
+ const b = Le(be.value[T.modelKey]);
3103
+ if (ie.push(b), T.type === "table") {
3104
+ b.tableConfig || (b.tableConfig = {});
3105
+ let j = b.tableConfig;
3106
+ j.showPane = !1, T.modelRelationType === "associated" ? g(T, b, j) : T.modelRelationType === "child" && (R.push({
3104
3107
  fields: []
3105
- }), g.formConfig === void 0 && (g.formConfig = {}), g.formConfig.functions === void 0 && (g.formConfig.functions = {}), T.queryParamName && (g.formConfig.functions.beforeSubmit = (H) => {
3108
+ }), b.formConfig === void 0 && (b.formConfig = {}), b.formConfig.functions === void 0 && (b.formConfig.functions = {}), T.queryParamName && (b.formConfig.functions.beforeSubmit = (H) => {
3106
3109
  H[T.queryParamName] = s.value;
3107
- })), j.queryParams || (j.queryParams = {}), T.queryParamName && (j.queryParams[T.queryParamName] = s.value), T.queryParams && Object.assign(j.queryParams, T.queryParams), j.readOnly = (U = T.readOnly) != null ? U : !1, T.includeFields && (g.fields = g.fields.filter((H) => {
3110
+ })), j.queryParams || (j.queryParams = {}), T.queryParamName && (j.queryParams[T.queryParamName] = s.value), T.queryParams && Object.assign(j.queryParams, T.queryParams), j.readOnly = (U = T.readOnly) != null ? U : !1, T.includeFields && (b.fields = b.fields.filter((H) => {
3108
3111
  var _;
3109
3112
  return (_ = T.includeFields) == null ? void 0 : _.includes(H.prop);
3110
- })), T.excludeFields && (g.fields = g.fields.filter((H) => {
3113
+ })), T.excludeFields && (b.fields = b.fields.filter((H) => {
3111
3114
  var _;
3112
3115
  return !((_ = T.excludeFields) != null && _.includes(H.prop));
3113
3116
  })), T.tooltip && (j.tooltip = T.tooltip);
@@ -3130,9 +3133,9 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
3130
3133
  var C, $, L;
3131
3134
  const c = ($ = (C = B.pageConfig) == null ? void 0 : C.detailPage) == null ? void 0 : $.infoCard;
3132
3135
  c && (M.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", q.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", F.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (L = B.fields) == null || L.forEach((U) => {
3133
- var T, g;
3136
+ var T, b;
3134
3137
  if (U.prop === c.tagFieldProp) {
3135
- const j = (g = (T = U.tableColumnAttributes) == null ? void 0 : T.functions) == null ? void 0 : g.transformValue;
3138
+ const j = (b = (T = U.tableColumnAttributes) == null ? void 0 : T.functions) == null ? void 0 : b.transformValue;
3136
3139
  j && (F.value = j(F.value));
3137
3140
  }
3138
3141
  }));
@@ -3151,7 +3154,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
3151
3154
  }
3152
3155
  return (u, c) => {
3153
3156
  var v, J, z, te, ne, se;
3154
- const C = O("el-page-header"), $ = O("el-button"), L = O("el-icon"), U = O("el-dropdown-item"), T = O("el-dropdown-menu"), g = O("el-dropdown"), j = O("el-tag"), H = O("el-tab-pane"), _ = O("el-tabs"), k = O("el-dialog");
3157
+ const C = O("el-page-header"), $ = O("el-button"), L = O("el-icon"), U = O("el-dropdown-item"), T = O("el-dropdown-menu"), b = O("el-dropdown"), j = O("el-tag"), H = O("el-tab-pane"), _ = O("el-tabs"), k = O("el-dialog");
3155
3158
  return p(), A(le, null, [
3156
3159
  y("div", ar, [
3157
3160
  m(C, {
@@ -3178,7 +3181,7 @@ const er = { render: Zs }, tr = { class: "toolbar" }, or = { class: "tool-button
3178
3181
  ]),
3179
3182
  _: 1
3180
3183
  }),
3181
- ((J = (v = B.pageConfig) == null ? void 0 : v.detailPage) == null ? void 0 : J.operationButtons) !== void 0 ? (p(), I(g, { key: 0 }, {
3184
+ ((J = (v = B.pageConfig) == null ? void 0 : v.detailPage) == null ? void 0 : J.operationButtons) !== void 0 ? (p(), I(b, { key: 0 }, {
3182
3185
  dropdown: d(() => [
3183
3186
  m(T, null, {
3184
3187
  default: d(() => {