liyu-pc-base 1.0.607 → 1.0.614

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.
@@ -8,7 +8,7 @@ import { getApiData as u } from "./api/api-model.js";
8
8
  import { I as d, N as f, P as p, S as m, c as h, f as g, r as _, t as v, x as ee } from "./function-B9sjc24Z.js";
9
9
  import { ConditionOperatorMap as y } from "./api/typing.js";
10
10
  import { t as b } from "./RemoteModal-B5Awxm9V.js";
11
- import { n as x, r as S, t as C } from "./RemoteSelectPro-BV0vvs8q.js";
11
+ import { n as x, r as S, t as C } from "./RemoteSelectPro-0x6-R8I2.js";
12
12
  import { t as w } from "./RemoteFilterSelect-D3ARyt9y.js";
13
13
  import { t as te } from "./AttributeNomTable-HiLsOuv9.js";
14
14
  import { t as ne } from "./AttributeTable-BeZnyj9P.js";
@@ -5630,7 +5630,8 @@ var Zi = /*#__PURE__*/ s(Mi, [["render", Xi], ["__scopeId", "data-v-b431b3c2"]])
5630
5630
  "+",
5631
5631
  "-",
5632
5632
  "*",
5633
- "/"
5633
+ "/",
5634
+ "^"
5634
5635
  ], a = H(null), o = H(-1), s = H(!1), c = H(""), l = k(() => n.fieldOptions.length > 0), u = H(""), d = k(() => {
5635
5636
  let e = u.value.trim().toLowerCase();
5636
5637
  return e ? n.fieldOptions.filter((t) => t.label.toLowerCase().includes(e) || t.field.toLowerCase().includes(e)) : n.fieldOptions;
@@ -5938,7 +5939,7 @@ var Zi = /*#__PURE__*/ s(Mi, [["render", Xi], ["__scopeId", "data-v-b431b3c2"]])
5938
5939
  ]))])]);
5939
5940
  };
5940
5941
  }
5941
- }), [["__scopeId", "data-v-cd4628f6"]]), Ca = { class: "column-edit-view-wrapper" }, wa = { class: "tab-content-scroll" }, Ta = { class: "tab-content-scroll" }, Ea = /*#__PURE__*/ s(/* @__PURE__ */ I({
5942
+ }), [["__scopeId", "data-v-f76c4e93"]]), Ca = { class: "column-edit-view-wrapper" }, wa = { class: "tab-content-scroll" }, Ta = { class: "tab-content-scroll" }, Ea = /*#__PURE__*/ s(/* @__PURE__ */ I({
5942
5943
  __name: "index",
5943
5944
  props: {
5944
5945
  columns: {},
@@ -7206,39 +7207,52 @@ var za = /*#__PURE__*/ s(Fa, [["render", Ra]]), Ba = { key: 0 }, Va = /* @__PURE
7206
7207
  }), fo = /*#__PURE__*/ s(/* @__PURE__ */ I({
7207
7208
  __name: "TableContextMenu",
7208
7209
  props: {
7209
- contextmenuPopup: {
7210
- type: Object,
7211
- required: !0
7212
- },
7213
- dataSource: {
7214
- type: Array,
7215
- default: () => []
7216
- },
7217
- columns: {
7218
- type: Array,
7219
- default: () => []
7220
- },
7221
- view_key: {
7222
- type: String,
7223
- default: ""
7224
- },
7225
- view_flag_name: {
7226
- type: String,
7227
- default: ""
7228
- },
7210
+ contextmenuPopup: {},
7211
+ dataSource: { default: () => [] },
7212
+ columns: { default: () => [] },
7213
+ view_key: { default: "" },
7214
+ view_flag_name: { default: "" },
7229
7215
  is_view: {
7230
7216
  type: Boolean,
7231
7217
  default: !1
7232
7218
  },
7233
- selfEventBus: { type: Object }
7219
+ selfEventBus: { default: null },
7220
+ component_type: { default: "normal" },
7221
+ pivotConfig: { default: () => null },
7222
+ pivotChartsConfig: { default: () => null }
7234
7223
  },
7235
7224
  emits: [
7236
7225
  "refresh",
7237
7226
  "export",
7238
- "columnsChange"
7227
+ "columnsChange",
7228
+ "pivotConfigChange",
7229
+ "pivotChartsConfigChange"
7239
7230
  ],
7240
7231
  setup(e, { emit: t }) {
7241
- let n = e, r = t, i = H(!1), { currentView: a, isViewChange: o } = Wt(), s = k(() => {
7232
+ let n = e, r = t, i = H(!1), { currentView: a, isViewChange: o, config: s } = Wt(), c = k(() => s?.setting_mode || "modal"), l = k(() => s?.setting_drawer_width ?? "700px"), u = k(() => s?.setting_drawer_placement || "left"), d = H(n.pivotConfig ? (0, $.cloneDeep)(n.pivotConfig) : {
7233
+ rows: [],
7234
+ columns: [],
7235
+ values: [],
7236
+ indicatorsAsCol: !0,
7237
+ rowHierarchyType: "grid"
7238
+ });
7239
+ q(() => n.pivotConfig, (e) => {
7240
+ e && (d.value = (0, $.cloneDeep)(e));
7241
+ }, { deep: !0 });
7242
+ let f = (e) => {
7243
+ r("pivotConfigChange", e);
7244
+ }, m = H(n.pivotChartsConfig ? (0, $.cloneDeep)(n.pivotChartsConfig) : {
7245
+ series: [],
7246
+ category: [],
7247
+ values: [],
7248
+ chartType: "bar"
7249
+ });
7250
+ q(() => n.pivotChartsConfig, (e) => {
7251
+ e && (m.value = (0, $.cloneDeep)(e));
7252
+ }, { deep: !0 });
7253
+ let h = (e) => {
7254
+ r("pivotChartsConfigChange", e);
7255
+ }, g = (e, t) => e.filter((e) => (e.children?.length && (g(e.children, t), e.children?.length || delete e.children), !t.includes(e.key))), v = k(() => {
7242
7256
  let e = [
7243
7257
  {
7244
7258
  key: "copy",
@@ -7248,34 +7262,40 @@ var za = /*#__PURE__*/ s(Fa, [["render", Ra]]), Ba = { key: 0 }, Va = /* @__PURE
7248
7262
  {
7249
7263
  key: "copy_cell",
7250
7264
  icon: () => L(Fe),
7251
- label: "复制单元格"
7265
+ label: "复制单元格",
7266
+ func: () => y("cell")
7252
7267
  },
7253
7268
  {
7254
7269
  key: "copy_record",
7255
7270
  icon: () => L(Fe),
7256
- label: "复制行"
7271
+ label: "复制行",
7272
+ func: () => y("record")
7257
7273
  },
7258
7274
  {
7259
7275
  key: "copy_column",
7260
7276
  icon: () => L(Fe),
7261
- label: "复制列"
7277
+ label: "复制列",
7278
+ func: () => y("column")
7262
7279
  }
7263
7280
  ]
7264
7281
  },
7265
7282
  {
7266
7283
  key: "refresh",
7267
7284
  icon: () => L(Je),
7268
- label: "刷新"
7285
+ label: "刷新",
7286
+ func: () => r("refresh")
7269
7287
  },
7270
7288
  {
7271
7289
  key: "export",
7272
7290
  icon: () => L(Re),
7273
- label: "导出"
7291
+ label: "导出",
7292
+ func: () => r("export")
7274
7293
  },
7275
7294
  {
7276
7295
  key: "table_config",
7277
7296
  icon: () => L(Qe),
7278
- label: "设置"
7297
+ label: "设置",
7298
+ func: () => i.value = !0
7279
7299
  }
7280
7300
  ];
7281
7301
  return n.is_view && o.value && a.value && a.value.id !== "no-view" && (e = [...e, {
@@ -7299,37 +7319,46 @@ var za = /*#__PURE__*/ s(Fa, [["render", Ra]]), Ba = { key: 0 }, Va = /* @__PURE
7299
7319
  label: "重置"
7300
7320
  }
7301
7321
  ]
7302
- }]), e;
7303
- }), c = (e) => typeof e == "object" ? JSON.stringify(e) : e, l = (e) => {
7322
+ }]), s?.extraTableMenuItems?.length && (e = [...e, ...s.extraTableMenuItems]), s?.disabledTableMenuItemKeys?.length && (e = g(e, s?.disabledTableMenuItemKeys)), e;
7323
+ }), ee = (e) => typeof e == "object" ? JSON.stringify(e) : e, y = (e) => {
7304
7324
  let { contextmenuPopup: t, dataSource: r, columns: i } = n;
7305
- if (e === "cell") t.column.key !== "operation" && _(c(t.text));
7325
+ if (e === "cell") t.column.key !== "operation" && _(ee(t.text));
7306
7326
  else if (e === "column") {
7307
7327
  if (t.column.key !== "operation") {
7308
7328
  let { dataIndex: e } = t.column;
7309
- _(r.map((t) => c(t[e])).join("\r\n"));
7329
+ _(r.map((t) => ee(t[e])).join("\r\n"));
7310
7330
  }
7311
7331
  } else if (e === "record") {
7312
7332
  let e = t.record;
7313
- _(i.map((t) => t.dataIndex ? c(e[t.dataIndex]) : "").filter((e) => p(e)).join(" "));
7333
+ _(i.map((t) => t.dataIndex ? ee(e[t.dataIndex]) : "").filter((e) => p(e)).join(" "));
7314
7334
  }
7315
- }, u = (e) => {
7316
- e.key === "copy_cell" ? l("cell") : e.key === "copy_record" ? l("record") : e.key === "copy_column" ? l("column") : e.key === "refresh" ? r("refresh") : e.key === "export" ? r("export") : e.key === "table_config" ? i.value = !0 : e.key === "save_view" ? n.selfEventBus.emit("saveView") : e.key === "save_new_view" ? n.selfEventBus.emit("saveNewView") : e.key === "reinit" && n.selfEventBus.emit("reinit"), n.contextmenuPopup.hidePopup();
7335
+ }, b = (e, t) => {
7336
+ for (let n of e) {
7337
+ if (n.key === t) return n;
7338
+ if (n.children) {
7339
+ let e = b(n.children, t);
7340
+ if (e) return e;
7341
+ }
7342
+ }
7343
+ }, x = (e) => {
7344
+ let t = b(v.value, e.key);
7345
+ t.func && t.func(n), n.contextmenuPopup.hidePopup();
7317
7346
  };
7318
- return (t, n) => {
7319
- let r = W("a-menu"), a = W("a-button"), o = W("a-modal");
7320
- return V(), M(O, null, [F(r, {
7321
- items: s.value,
7347
+ return (e, t) => {
7348
+ let n = W("a-menu"), r = W("a-button"), a = W("a-modal");
7349
+ return V(), M(O, null, [F(n, {
7350
+ items: v.value,
7322
7351
  size: "small",
7323
7352
  mode: "vertical",
7324
- onClick: u
7325
- }, null, 8, ["items"]), F(o, {
7326
- title: t.$t("设置"),
7353
+ onClick: x
7354
+ }, null, 8, ["items"]), F(a, {
7355
+ title: e.$t("设置"),
7327
7356
  width: "1000px",
7328
7357
  open: i.value,
7329
- "onUpdate:open": n[2] ||= (e) => i.value = e
7358
+ "onUpdate:open": t[2] ||= (e) => i.value = e
7330
7359
  }, {
7331
- footer: J(() => [F(a, { onClick: n[1] ||= (e) => i.value = !1 }, {
7332
- default: J(() => [P(G(t.$t("关闭")), 1)]),
7360
+ footer: J(() => [F(r, { onClick: t[1] ||= (e) => i.value = !1 }, {
7361
+ default: J(() => [P(G(e.$t("关闭")), 1)]),
7333
7362
  _: 1
7334
7363
  })]),
7335
7364
  default: J(() => [F(Ea, {
@@ -7337,18 +7366,32 @@ var za = /*#__PURE__*/ s(Fa, [["render", Ra]]), Ba = { key: 0 }, Va = /* @__PURE
7337
7366
  is_view: e.is_view,
7338
7367
  view_key: e.view_key,
7339
7368
  view_flag_name: e.view_flag_name,
7340
- onChange: n[0] ||= (e) => t.$emit("columnsChange", e)
7369
+ component_type: e.component_type,
7370
+ pivotConfig: d.value,
7371
+ pivotChartsConfig: m.value,
7372
+ settingMode: c.value,
7373
+ settingDrawerWidth: l.value,
7374
+ settingDrawerPlacement: u.value,
7375
+ onChange: t[0] ||= (t) => e.$emit("columnsChange", t),
7376
+ onPivotConfigChange: f,
7377
+ onPivotChartsConfigChange: h
7341
7378
  }, null, 8, [
7342
7379
  "columns",
7343
7380
  "is_view",
7344
7381
  "view_key",
7345
- "view_flag_name"
7382
+ "view_flag_name",
7383
+ "component_type",
7384
+ "pivotConfig",
7385
+ "pivotChartsConfig",
7386
+ "settingMode",
7387
+ "settingDrawerWidth",
7388
+ "settingDrawerPlacement"
7346
7389
  ])]),
7347
7390
  _: 1
7348
7391
  }, 8, ["title", "open"])], 64);
7349
7392
  };
7350
7393
  }
7351
- }), [["__scopeId", "data-v-c2bacdc3"]]), po = 50, mo = "view_system_edit", ho = /*@__PURE__*/ I({
7394
+ }), [["__scopeId", "data-v-d0b9bee1"]]), po = 50, mo = "view_system_edit", ho = /*@__PURE__*/ I({
7352
7395
  __name: "tablePro",
7353
7396
  props: {
7354
7397
  config: {