liyu-pc-base 1.0.125 → 1.0.129

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.
@@ -9960,7 +9960,7 @@ const Cre = /* @__PURE__ */ dt(vre, [["render", wre]]), Sre = Me({
9960
9960
  const O = JSON.stringify(u);
9961
9961
  e.field.queryType === "simple" ? u.simpleSearchParams = l() : u.conditions = a(), e.init_watch && Object.keys(e.init_watch).forEach((D) => {
9962
9962
  u[e.init_watch[D]] = e.formModel[D];
9963
- }), O != JSON.stringify(u) && C();
9963
+ }), O != JSON.stringify(u) && (w = null, C());
9964
9964
  },
9965
9965
  { deep: !0 }
9966
9966
  ), Se(
@@ -9984,7 +9984,7 @@ const Cre = /* @__PURE__ */ dt(vre, [["render", wre]]), Sre = Me({
9984
9984
  { deep: !0 }
9985
9985
  );
9986
9986
  const g = (O) => {
9987
- e.field.required_condition && e.field.required_condition.find((A) => A.key === O) && C();
9987
+ e.field.required_condition && e.field.required_condition.find((A) => A.key === O) && (w = null, C());
9988
9988
  };
9989
9989
  Kt(() => {
9990
9990
  v(), _l().on("required_condition_change", g), E();
@@ -10017,7 +10017,7 @@ const Cre = /* @__PURE__ */ dt(vre, [["render", wre]]), Sre = Me({
10017
10017
  T != null && (D[A.field_name] = T);
10018
10018
  }), D;
10019
10019
  };
10020
- let w;
10020
+ let w = null;
10021
10021
  const E = async () => {
10022
10022
  var O;
10023
10023
  if (e.field.postUrl) {
@@ -10025,7 +10025,7 @@ const Cre = /* @__PURE__ */ dt(vre, [["render", wre]]), Sre = Me({
10025
10025
  if (e.field.queryType === "simple" ? D = {
10026
10026
  ...u.simpleSearchParams,
10027
10027
  required_condition: b()
10028
- } : (D = { ...u, required_condition: b() }, delete D.simpleSearchParams), w === void 0) {
10028
+ } : (D = { ...u, required_condition: b() }, delete D.simpleSearchParams), w === null) {
10029
10029
  const A = await Yc(D, e.field.postUrl, !1, { skip_error: !0 });
10030
10030
  w = A.total, n.datasource = (A == null ? void 0 : A.data) || [], h();
10031
10031
  } else if (w > n.datasource.length) {
@@ -10063,7 +10063,7 @@ const Cre = /* @__PURE__ */ dt(vre, [["render", wre]]), Sre = Me({
10063
10063
  e.field.postUrl
10064
10064
  ],
10065
10065
  (O, D) => {
10066
- ak(O, D) || (d(), C());
10066
+ ak(O, D) || (w = null, d(), C());
10067
10067
  },
10068
10068
  { deep: !0 }
10069
10069
  ), Se(
@@ -10073,7 +10073,7 @@ const Cre = /* @__PURE__ */ dt(vre, [["render", wre]]), Sre = Me({
10073
10073
  e.field.simpleSearchConditions
10074
10074
  ],
10075
10075
  (O, D) => {
10076
- ak(O, D) || (e.field.queryType === "simple" ? u.simpleSearchParams = l() : u.conditions = a(), C());
10076
+ ak(O, D) || (e.field.queryType === "simple" ? u.simpleSearchParams = l() : u.conditions = a(), w = null, C());
10077
10077
  },
10078
10078
  { deep: !0 }
10079
10079
  ), {
@@ -10860,6 +10860,7 @@ async function iT(e) {
10860
10860
  case "python":
10861
10861
  case "jinja2":
10862
10862
  case "sql":
10863
+ case "xml":
10863
10864
  t = `${e}/${e}.js`;
10864
10865
  break;
10865
10866
  }
@@ -10937,7 +10938,7 @@ const Rre = {
10937
10938
  },
10938
10939
  lineWrapping: e.lineWrapping
10939
10940
  }), n.setOption("mode", e.mode), n.setOption("theme", "material-darker"), n.setValue(e.editorValue), n.on("change", (s) => {
10940
- if (e.mode === "htmlmixed" || e.mode === "css") {
10941
+ if (e.mode === "htmlmixed" || e.mode === "css" || e.mode === "xml") {
10941
10942
  const { line: c, ch: d } = s.getCursor(), p = s.getLine(c), f = Bre(p, d);
10942
10943
  a = f[0], l = f[1];
10943
10944
  }
@@ -10951,7 +10952,7 @@ const Rre = {
10951
10952
  if (s.state.completionActive || c.origin === "+delete" || c.origin === "paste")
10952
10953
  return;
10953
10954
  /^[a-zA-Z0-9_.]*$/.test(c.text[0]) && s.showHint({ completeSingle: !1 });
10954
- }), e.mode === "htmlmixed" || e.mode === "css") {
10955
+ }), e.mode === "htmlmixed" || e.mode === "css" || e.mode === "xml") {
10955
10956
  const s = n.getOption("extraKeys");
10956
10957
  n.setOption("extraKeys", {
10957
10958
  ...s,
@@ -10963,7 +10964,8 @@ const Rre = {
10963
10964
  try {
10964
10965
  const y = SG(a, { type: {
10965
10966
  htmlmixed: "markup",
10966
- css: "stylesheet"
10967
+ css: "stylesheet",
10968
+ xml: "markup"
10967
10969
  }[e.mode] }), { line: h, ch: g } = c.getCursor();
10968
10970
  c.setSelection({ line: h, ch: g }, { line: h, ch: l });
10969
10971
  const v = y.split(`