sd-render 1.1.0 → 1.1.2

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.
@@ -4,14 +4,14 @@ import "element-plus/es/components/dialog/style/index";
4
4
  import "element-plus/es/components/button/style/index";
5
5
  import "element-plus/es/components/icon/style/index";
6
6
  import "element-plus/es/components/image/style/index";
7
- import { createElementBlock as w, openBlock as n, normalizeClass as X, createElementVNode as P, createCommentVNode as g, toDisplayString as O, defineComponent as L, markRaw as jl, capitalize as Go, normalizeStyle as te, ref as K, nextTick as yt, resolveComponent as Y, Fragment as E, createVNode as r, withCtx as s, createBlock as p, createTextVNode as S, inject as j, renderList as G, resolveDynamicComponent as pa, mergeProps as ae, toHandlers as Ul, withModifiers as R, renderSlot as fe, computed as le, watch as Ke, provide as xe, unref as pe, watchEffect as Yo, toRaw as Jo, withDirectives as Ve, vShow as Rl, reactive as ke, onMounted as Je, normalizeProps as Oa, guardReactiveProps as Na, createSlots as tt, defineAsyncComponent as Xo, resolveDirective as zl, withKeys as Qo } from "vue";
7
+ import { createElementBlock as w, openBlock as n, normalizeClass as X, createElementVNode as P, createCommentVNode as g, toDisplayString as O, defineComponent as L, markRaw as jl, capitalize as Go, normalizeStyle as te, ref as K, nextTick as yt, resolveComponent as Y, Fragment as E, createVNode as r, withCtx as s, createBlock as p, createTextVNode as S, inject as j, renderList as G, resolveDynamicComponent as pa, mergeProps as ae, toHandlers as Ul, withModifiers as R, renderSlot as he, computed as le, watch as Ke, provide as xe, unref as me, watchEffect as Yo, toRaw as Jo, withDirectives as Ve, vShow as Rl, reactive as ke, onMounted as Je, normalizeProps as Oa, guardReactiveProps as Na, createSlots as tt, defineAsyncComponent as Xo, resolveDirective as zl, withKeys as Qo } from "vue";
8
8
  import { Editor as It, Node as ot, mergeAttributes as Xe, getMarkRange as Zo, Extension as He, isList as ei } from "@tiptap/core";
9
9
  import We from "ace-builds";
10
10
  import "ace-builds/src-min-noconflict/theme-tomorrow_night_eighties";
11
11
  import "ace-builds/src-min-noconflict/theme-sqlserver";
12
12
  import "ace-builds/src-min-noconflict/mode-html";
13
13
  import "ace-builds/src-min-noconflict/ext-beautify";
14
- import { useDark as se } from "@vueuse/core";
14
+ import { useDark as re } from "@vueuse/core";
15
15
  import ti from "@tiptap/extension-list-item";
16
16
  import Ka from "@tiptap/extension-text";
17
17
  import Ga from "@tiptap/extension-paragraph";
@@ -102,7 +102,7 @@ import Vi from "@tiptap/extension-bullet-list";
102
102
  import Ai from "@tiptap/extension-ordered-list";
103
103
  import Oi from "@tiptap/extension-image";
104
104
  import "element-plus/es/components/upload/style/index";
105
- import he from "axios";
105
+ import ce from "axios";
106
106
  import Ni from "@tiptap/extension-task-list";
107
107
  import Ei from "@tiptap/extension-task-item";
108
108
  import { Table as Li } from "@tiptap/extension-table";
@@ -495,7 +495,7 @@ function On(e, t, a, l, o, i) {
495
495
  }, null, 4);
496
496
  }
497
497
  const Nn = /* @__PURE__ */ B(An, [["render", On]]);
498
- var Ue = /* @__PURE__ */ ((e) => (e.None = "None", e.String = "String", e.Integer = "Integer", e.Number = "Number", e.Boolean = "Boolean", e.Array = "Array", e.Object = "Object", e.ObjectId = "ObjectId", e.StringDate = "StringDate", e.ArrayDate = "ArrayDate", e.Date = "Date", e.Timestamp = "Timestamp", e.Binary = "Binary", e.StringArray = "String|Array", e.ObjectArray = "Object|Array", e.Any = "Any", e))(Ue || {}), de = /* @__PURE__ */ ((e) => (e.SYS = "SYS", e.FORM = "FORM", e.SQL = "SQL", e))(de || {}), me = /* @__PURE__ */ ((e) => (e.ASC = "ASC", e.DESC = "DESC", e))(me || {});
498
+ var Ue = /* @__PURE__ */ ((e) => (e.None = "None", e.String = "String", e.Integer = "Integer", e.Number = "Number", e.Boolean = "Boolean", e.Array = "Array", e.Object = "Object", e.ObjectId = "ObjectId", e.StringDate = "StringDate", e.ArrayDate = "ArrayDate", e.Date = "Date", e.Timestamp = "Timestamp", e.Binary = "Binary", e.StringArray = "String|Array", e.ObjectArray = "Object|Array", e.Any = "Any", e))(Ue || {}), ue = /* @__PURE__ */ ((e) => (e.SYS = "SYS", e.FORM = "FORM", e.SQL = "SQL", e))(ue || {}), fe = /* @__PURE__ */ ((e) => (e.ASC = "ASC", e.DESC = "DESC", e))(fe || {});
499
499
  const Kb = [
500
500
  {
501
501
  value: "user-list",
@@ -806,7 +806,7 @@ function $a(e, t, a) {
806
806
  d && (i === l.length - 1 ? o[d] = a : ((!o[d] || typeof o[d] != "object" || Array.isArray(o[d])) && (o[d] = {}), o = o[d]));
807
807
  }
808
808
  }
809
- function ce(e, t) {
809
+ function de(e, t) {
810
810
  try {
811
811
  let a = t.split("."), l = e;
812
812
  for (let o = 0, i = a.length; o < i; o++) {
@@ -827,7 +827,7 @@ function ce(e, t) {
827
827
  function Tt(e) {
828
828
  return ri.sanitize(e, {});
829
829
  }
830
- function re(e, t) {
830
+ function se(e, t) {
831
831
  const a = (i) => `{{###~${i}~###}}`, l = Object.keys(t).map((i, d) => ({
832
832
  key: i,
833
833
  val: t[i],
@@ -1655,7 +1655,7 @@ const eo = /* @__PURE__ */ B(ys, [["render", vs]]), ws = L({
1655
1655
  function _s(e, t, a, l, o, i) {
1656
1656
  const d = eo, u = Zl, m = Ql;
1657
1657
  return n(), w("div", Fs, [
1658
- fe(e.$slots, "prepend"),
1658
+ he(e.$slots, "prepend"),
1659
1659
  r(d, {
1660
1660
  editor: e.editor,
1661
1661
  url: e.linkAttrs.href
@@ -2098,8 +2098,8 @@ function Ts(e) {
2098
2098
  l.value = h;
2099
2099
  };
2100
2100
  let i;
2101
- const d = se(), u = () => {
2102
- const h = pe(e).extensionManager.extensions.find((b) => b.name === "codeView");
2101
+ const d = re(), u = () => {
2102
+ const h = me(e).extensionManager.extensions.find((b) => b.name === "codeView");
2103
2103
  if (h) {
2104
2104
  const { editorOptions: b } = h.options;
2105
2105
  if (We) {
@@ -2117,7 +2117,7 @@ function Ts(e) {
2117
2117
  wrap: _.wrap,
2118
2118
  printMargin: _.printMargin,
2119
2119
  useWorker: _.useWorker,
2120
- value: pe(e).getHTML()
2120
+ value: me(e).getHTML()
2121
2121
  })
2122
2122
  ), We.require("ace/ext/beautify").beautify(t.session);
2123
2123
  }
@@ -2132,7 +2132,7 @@ function Ts(e) {
2132
2132
  });
2133
2133
  else if (t) {
2134
2134
  const b = t.getValue();
2135
- pe(e).commands.setContent(
2135
+ me(e).commands.setContent(
2136
2136
  b,
2137
2137
  !0
2138
2138
  /* emitUpdate */
@@ -2312,7 +2312,7 @@ const Ps = L({
2312
2312
  onUpdate: i
2313
2313
  });
2314
2314
  Yo(() => {
2315
- pe(d)?.setOptions({
2315
+ me(d)?.setOptions({
2316
2316
  editorProps: {
2317
2317
  attributes: {
2318
2318
  spellcheck: String(e.spellcheck)
@@ -2326,7 +2326,7 @@ const Ps = L({
2326
2326
  xe("isFullscreen", h), xe("toggleFullscreen", b), xe("enableTooltip", e.tooltip), xe("userState", e.userState);
2327
2327
  const { isCodeViewMode: _, aceAreaRef: C } = Ts(d);
2328
2328
  xe("isCodeViewMode", _);
2329
- const { characters: c } = $s(d), M = le(() => e.enableCharCount && !pe(_));
2329
+ const { characters: c } = $s(d), M = le(() => e.enableCharCount && !me(_));
2330
2330
  return xe("t", m), xe("et", this), {
2331
2331
  t: m,
2332
2332
  onUpdate: i,
@@ -2672,7 +2672,7 @@ const zs = Ci.extend({
2672
2672
  previewIndex: 0
2673
2673
  }), l = K([]), o = K(null), i = e, d = ke({
2674
2674
  providerId: "getfiles-gallery",
2675
- providerType: de.SYS,
2675
+ providerType: ue.SYS,
2676
2676
  options: {
2677
2677
  page: 1,
2678
2678
  limit: i.perPage ? i.perPage : 30
@@ -2720,7 +2720,7 @@ const zs = Ci.extend({
2720
2720
  fileGroup: I.file_group ? I.file_group : I.fileGroup ? I.fileGroup : "",
2721
2721
  fileId: I._id ? I._id : I.fileId ? I.fileId : ""
2722
2722
  };
2723
- await he.delete(`${i.userState.host}${a.type[b.value].deleteUrl}`, {
2723
+ await ce.delete(`${i.userState.host}${a.type[b.value].deleteUrl}`, {
2724
2724
  data: V,
2725
2725
  headers: {
2726
2726
  Authorization: `Bearer ${i.userState.user?.token}`
@@ -2786,7 +2786,7 @@ const zs = Ci.extend({
2786
2786
  "preview-teleported": ""
2787
2787
  }, null, 8, ["src", "preview-src-list", "initial-index"]),
2788
2788
  P("span", Ws, [
2789
- fe(F.$slots, "action", { file: Me }, void 0, !0),
2789
+ he(F.$slots, "action", { file: Me }, void 0, !0),
2790
2790
  P("span", {
2791
2791
  class: "el-upload-list__item-preview",
2792
2792
  onClick: (U) => q(Me)
@@ -3673,7 +3673,7 @@ const $r = /* @__PURE__ */ B(kr, [["render", Ir]]), Tr = Ei.extend({
3673
3673
  setup(e, { emit: t }) {
3674
3674
  const a = j("t"), l = K(), o = K(!1);
3675
3675
  return { t: a, popoverVisible: o, popoverRef: l, confirmCreateTable: (d, u) => {
3676
- pe(l).hide(), t("createTable", { row: d, col: u });
3676
+ me(l).hide(), t("createTable", { row: d, col: u });
3677
3677
  } };
3678
3678
  },
3679
3679
  data() {
@@ -4308,7 +4308,7 @@ const Yr = /* @__PURE__ */ B(Kr, [["render", Gr]]), bl = xi.extend({
4308
4308
  const t = j("t"), a = j("enableTooltip", !0), l = j("isCodeViewMode", !1), o = K(), i = K("");
4309
4309
  function d(m) {
4310
4310
  let h = e.editor.commands;
4311
- m ? h.setColor(m) : h.unsetColor(), pe(o).hide();
4311
+ m ? h.setColor(m) : h.unsetColor(), me(o).hide();
4312
4312
  }
4313
4313
  const u = le(() => ca(e.editor.state, "textStyle").color || "");
4314
4314
  return Ke(u, (m) => {
@@ -4433,7 +4433,7 @@ const ad = /* @__PURE__ */ B(Jr, [["render", td]]), gl = Wi.extend({
4433
4433
  const t = j("t"), a = j("enableTooltip", !0), l = j("isCodeViewMode", !1), o = K(null), i = K(!1), d = K("");
4434
4434
  function u(h) {
4435
4435
  let b = e.editor.commands;
4436
- h ? b.setHighlight({ color: h }) : b.unsetHighlight(), pe(o).hide();
4436
+ h ? b.setHighlight({ color: h }) : b.unsetHighlight(), me(o).hide();
4437
4437
  }
4438
4438
  const m = le(() => ca(e.editor.state, "highlight").color || "");
4439
4439
  return Ke(m, (h) => {
@@ -5063,7 +5063,7 @@ const $d = /* @__PURE__ */ B(Dd, [["render", Id]]), Td = Yi.extend({
5063
5063
  totalPage: 0
5064
5064
  }), i = K([]), d = e, u = ke({
5065
5065
  providerId: "getfiles-uploadfile",
5066
- providerType: de.SYS,
5066
+ providerType: ue.SYS,
5067
5067
  options: {
5068
5068
  page: 1,
5069
5069
  limit: d.perPage ? d.perPage : 30
@@ -5127,7 +5127,7 @@ const $d = /* @__PURE__ */ B(Dd, [["render", Id]]), Td = Yi.extend({
5127
5127
  fileGroup: I.file_group ? I.file_group : I.fileGroup ? I.fileGroup : "",
5128
5128
  fileId: I._id ? I._id : I.fileId ? I.fileId : ""
5129
5129
  };
5130
- he.delete(`${d.userState.host}${o.type[b.value].deleteUrl}`, {
5130
+ ce.delete(`${d.userState.host}${o.type[b.value].deleteUrl}`, {
5131
5131
  data: V,
5132
5132
  headers: {
5133
5133
  Authorization: `Bearer ${d.userState.user?.token}`
@@ -5860,7 +5860,7 @@ const iu = /* @__PURE__ */ B(lu, [["render", ou]]), nu = {
5860
5860
  props: we,
5861
5861
  data() {
5862
5862
  return {
5863
- isDark: se()
5863
+ isDark: re()
5864
5864
  };
5865
5865
  },
5866
5866
  mounted() {
@@ -6082,7 +6082,7 @@ const bu = /* @__PURE__ */ B(hu, [["render", cu]]), Il = ot.create({
6082
6082
  },
6083
6083
  props: we,
6084
6084
  data() {
6085
- return { isDark: se() };
6085
+ return { isDark: re() };
6086
6086
  },
6087
6087
  mounted() {
6088
6088
  },
@@ -6831,7 +6831,7 @@ function Mu(e, t, a, l, o, i) {
6831
6831
  onPaste: t[6] || (t[6] = (...d) => e.onPaste && e.onPaste(...d))
6832
6832
  }, null, 40, Tu);
6833
6833
  }
6834
- const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => await he.post(
6834
+ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => await ce.post(
6835
6835
  `${a.host}/widget/crud/getdata-all`,
6836
6836
  { sdProvider: e, totalEnable: t },
6837
6837
  {
@@ -6839,7 +6839,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6839
6839
  Authorization: `Bearer ${a.user?.token}`
6840
6840
  }
6841
6841
  }
6842
- ).then((o) => o.data && o.data.message ? { response: !0, data: o.data, message: o.data.message } : { response: !1, data: null, message: "Can't get data" }).catch((o) => o.response && o.response.data && o.response.data.message ? { response: !1, data: null, message: o.response.data.message } : { response: !1, data: null, message: "Can't get data (error)" }), Ot = async (e, t) => await he.post(
6842
+ ).then((o) => o.data && o.data.message ? { response: !0, data: o.data, message: o.data.message } : { response: !1, data: null, message: "Can't get data" }).catch((o) => o.response && o.response.data && o.response.data.message ? { response: !1, data: null, message: o.response.data.message } : { response: !1, data: null, message: "Can't get data (error)" }), Ot = async (e, t) => await ce.post(
6843
6843
  `${t.host}/widget/crud/getdata-one`,
6844
6844
  { sdProvider: e },
6845
6845
  {
@@ -6847,7 +6847,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6847
6847
  Authorization: `Bearer ${t.user?.token}`
6848
6848
  }
6849
6849
  }
6850
- ).then((l) => l.data && l.data.message ? { response: !0, data: l.data, message: l.data.message } : { response: !1, data: null, message: "Can't get data" }).catch((l) => l.response && l.response.data && l.response.data.message ? { response: !1, data: null, message: l.response.data.message } : { response: !1, data: null, message: "Can't get data" }), Ie = async (e, t) => await he.post(
6850
+ ).then((l) => l.data && l.data.message ? { response: !0, data: l.data, message: l.data.message } : { response: !1, data: null, message: "Can't get data" }).catch((l) => l.response && l.response.data && l.response.data.message ? { response: !1, data: null, message: l.response.data.message } : { response: !1, data: null, message: "Can't get data" }), Ie = async (e, t) => await ce.post(
6851
6851
  `${t.host}/widget/sdform/getform`,
6852
6852
  { formId: e },
6853
6853
  {
@@ -6861,7 +6861,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6861
6861
  return o.dataid = o._id, { response: !0, data: o, message: l.data.message };
6862
6862
  } else
6863
6863
  return { response: !1, data: void 0, message: "Can't get form" };
6864
- }).catch((l) => l.response && l.response.data && l.response.data.message ? { response: !1, data: void 0, message: l.response.data.message } : { response: !1, data: void 0, message: "Can't get form" }), Pu = async (e, t, a) => await he.post(
6864
+ }).catch((l) => l.response && l.response.data && l.response.data.message ? { response: !1, data: void 0, message: l.response.data.message } : { response: !1, data: void 0, message: "Can't get form" }), Pu = async (e, t, a) => await ce.post(
6865
6865
  `${a.host}/widget/sdform/getform-version`,
6866
6866
  { formId: e, versionName: t },
6867
6867
  {
@@ -6875,7 +6875,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6875
6875
  return i.dataid = i._id, { response: !0, data: i, message: o.data.message };
6876
6876
  } else
6877
6877
  return { response: !1, data: void 0, message: "Can't get form" };
6878
- }).catch((o) => o.response && o.response.data && o.response.data.message ? { response: !1, data: void 0, message: o.response.data.message } : { response: !1, data: void 0, message: "Can't get form" }), wa = async (e, t) => await he.post(
6878
+ }).catch((o) => o.response && o.response.data && o.response.data.message ? { response: !1, data: void 0, message: o.response.data.message } : { response: !1, data: void 0, message: "Can't get form" }), wa = async (e, t) => await ce.post(
6879
6879
  `${t.host}/widget/sdform/insert-empty`,
6880
6880
  { formId: e },
6881
6881
  {
@@ -6889,12 +6889,12 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6889
6889
  return o.dataid = l.data.id, o._id = l.data.id, o;
6890
6890
  } else
6891
6891
  return null;
6892
- }).catch((l) => null), Vu = async (e, t, a) => await he.delete(`${a.host}/widget/sdform/delete-empty`, {
6892
+ }).catch((l) => null), Vu = async (e, t, a) => await ce.delete(`${a.host}/widget/sdform/delete-empty`, {
6893
6893
  headers: {
6894
6894
  Authorization: `Bearer ${a.user?.token}`
6895
6895
  },
6896
6896
  data: { formId: e, dataId: t }
6897
- }).then((o) => !0).catch((o) => !1), dt = async (e, t, a, l, o) => await he.put(
6897
+ }).then((o) => !0).catch((o) => !1), dt = async (e, t, a, l, o) => await ce.put(
6898
6898
  `${o.host}/widget/sdform/save-data`,
6899
6899
  { formId: e, dataId: t, dataUpdate: a, rstat: l },
6900
6900
  {
@@ -6908,12 +6908,12 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6908
6908
  return u._id = d.data.id, u.dataid = u._id, { data: u, message: d.data.message };
6909
6909
  } else
6910
6910
  return { data: null, message: d.data.message };
6911
- }).catch((d) => d.response && d.response.data && d.response.data.message ? { data: null, message: d.response.data.message } : { data: null, message: "Can't save data" }), ja = async (e, t, a) => await he.delete(`${a.host}/widget/sdform/remove-data`, {
6911
+ }).catch((d) => d.response && d.response.data && d.response.data.message ? { data: null, message: d.response.data.message } : { data: null, message: "Can't save data" }), ja = async (e, t, a) => await ce.delete(`${a.host}/widget/sdform/remove-data`, {
6912
6912
  headers: {
6913
6913
  Authorization: `Bearer ${a.user?.token}`
6914
6914
  },
6915
6915
  data: { formId: e, dataId: t }
6916
- }).then((o) => !0).catch((o) => !1), ug = async (e, t, a) => await he.delete(`${a.host}/widget/sdform/delete-data`, {
6916
+ }).then((o) => !0).catch((o) => !1), ug = async (e, t, a) => await ce.delete(`${a.host}/widget/sdform/delete-data`, {
6917
6917
  headers: {
6918
6918
  Authorization: `Bearer ${a.user?.token}`
6919
6919
  },
@@ -6941,7 +6941,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6941
6941
  ], pg = (e, t) => e && Object.keys(e).length > 0 && e[t] && e[t].type ? e[t].type : ["_id", "xparentx"].includes(t) ? Ue.ObjectId : Ue.Any, co = (e, t) => {
6942
6942
  const a = e && e.form_db && e.form_db.schema ? e.form_db.schema : null;
6943
6943
  return a && Object.keys(a).length > 0 && t && a[t] && a[t].type ? a[t].type : ["_id", "xparentx"].includes(t) ? Ue.ObjectId : Ue.Any;
6944
- }, Pl = (e, t) => ["_id", "xparentx"].includes(t) ? !0 : co(e, t) === "ObjectId", mg = async (e, t, a, l) => await he.put(
6944
+ }, Pl = (e, t) => ["_id", "xparentx"].includes(t) ? !0 : co(e, t) === "ObjectId", mg = async (e, t, a, l) => await ce.put(
6945
6945
  `${l.host}/widget/sdform/check-parent`,
6946
6946
  { formId: e, dataId: t, formData: a },
6947
6947
  {
@@ -7168,11 +7168,18 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
7168
7168
  if (u[a] && u[a] === d) {
7169
7169
  let m = [], h = {};
7170
7170
  l.forEach((b) => {
7171
- u[b] ? (m.push(u[b]), h[`{{${b}}}`] = u[b]) : h[`{{${b}}}`] = "";
7172
- }), o && o != "" ? i.push(re(o, h)) : i.push(m.join(" "));
7171
+ const _ = de(u, b);
7172
+ _ ? (m.push(_), h[`{{${b}}}`] = _) : h[`{{${b}}}`] = "";
7173
+ }), o && o != "" ? i.push(se(o, h)) : i.push(m.join(" "));
7173
7174
  break;
7174
7175
  }
7175
7176
  return i.join(", ");
7177
+ }, fg = (e, t, a) => {
7178
+ let l = "", o = [], i = {};
7179
+ return t.forEach((d) => {
7180
+ const u = de(e, d);
7181
+ u ? (o.push(u), i[`{{${d}}}`] = u) : i[`{{${d}}}`] = "";
7182
+ }), a && a != "" ? l = se(a, i) : l = o.join(" "), l;
7176
7183
  }, Eu = L({
7177
7184
  name: "SdGridColumnDynamic",
7178
7185
  components: {
@@ -7270,7 +7277,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
7270
7277
  i = i.slice(0, d);
7271
7278
  let b = i.length > 0 ? i.join(".") : i.join();
7272
7279
  if (e[b] && e[b].type && e[b].type == "Array") {
7273
- let _ = ce(t, b), C = [];
7280
+ let _ = de(t, b), C = [];
7274
7281
  for (const c in _)
7275
7282
  if (Object.prototype.hasOwnProperty.call(_, c)) {
7276
7283
  let f = _[c][h];
@@ -7281,7 +7288,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
7281
7288
  }
7282
7289
  let u = a;
7283
7290
  this.subIndex > -1 && (u = `${this.parentName}.${this.subIndex}.${this.fieldName}`);
7284
- let m = ce(t, u);
7291
+ let m = de(t, u);
7285
7292
  return this.rawValue ? m ?? null : Ae(m, a, l, o);
7286
7293
  }
7287
7294
  }
@@ -7696,7 +7703,7 @@ const xt = /* @__PURE__ */ B(Eu, [["render", Lu], ["__scopeId", "data-v-6f6b7a15
7696
7703
  return (e, t) => {
7697
7704
  let a = {}, l = this.sdformModel.form_db.schema;
7698
7705
  for (const o in l) {
7699
- let i = ce(t, o);
7706
+ let i = de(t, o);
7700
7707
  a[`{{${o}}}`] = Ae(i, o, this.sdformModel);
7701
7708
  }
7702
7709
  if (this.customValue) {
@@ -7705,7 +7712,7 @@ const xt = /* @__PURE__ */ B(Eu, [["render", Lu], ["__scopeId", "data-v-6f6b7a15
7705
7712
  let i = this.customValue[o];
7706
7713
  if (i.expressions)
7707
7714
  try {
7708
- const u = `return ${re(i.expressions, a)}`, m = new Function("row", ...De, u);
7715
+ const u = `return ${se(i.expressions, a)}`, m = new Function("row", ...De, u);
7709
7716
  a[`{{${i.fieldName}}}`] = m.call(this.sdformModel, t);
7710
7717
  } catch (d) {
7711
7718
  a[`{{${i.fieldName}}}`] = d;
@@ -7714,7 +7721,7 @@ const xt = /* @__PURE__ */ B(Eu, [["render", Lu], ["__scopeId", "data-v-6f6b7a15
7714
7721
  a[`{{${i.fieldName}}}`] = "";
7715
7722
  }
7716
7723
  }
7717
- return Tt(re(e, a));
7724
+ return Tt(se(e, a));
7718
7725
  };
7719
7726
  }
7720
7727
  },
@@ -7762,9 +7769,9 @@ const xt = /* @__PURE__ */ B(Eu, [["render", Lu], ["__scopeId", "data-v-6f6b7a15
7762
7769
  this.defaultParams = { ...t, ...e }, this.dpFormData.params = D(this.defaultParams), this.noMore || this.getDataList();
7763
7770
  },
7764
7771
  initForm(e) {
7765
- this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = de.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), this.searchFields ? this.dpFormData.options.search = this.searchFields : this.dpFormData.options.search = this.sdformModel.form_options.search_fields ? this.sdformModel.form_options.search_fields : [];
7772
+ this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = ue.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), this.searchFields ? this.dpFormData.options.search = this.searchFields : this.dpFormData.options.search = this.sdformModel.form_options.search_fields ? this.sdformModel.form_options.search_fields : [];
7766
7773
  const t = D(this.dpFormData.params), a = D(this.params);
7767
- this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: me.DESC }]), this.noMore || this.getDataList(), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
7774
+ this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: fe.DESC }]), this.noMore || this.getDataList(), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
7768
7775
  if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId)) {
7769
7776
  let o = -1;
7770
7777
  const i = D(l.data);
@@ -7882,7 +7889,7 @@ const xt = /* @__PURE__ */ B(Eu, [["render", Lu], ["__scopeId", "data-v-6f6b7a15
7882
7889
  });
7883
7890
  },
7884
7891
  getValue(e, t) {
7885
- let a = ce(e, t);
7892
+ let a = de(e, t);
7886
7893
  return a ? Ae(a, t, this.sdformModel) : "";
7887
7894
  },
7888
7895
  getSchema(e) {
@@ -8123,7 +8130,7 @@ function Tp(e, t, a, l, o, i) {
8123
8130
  innerHTML: e.htmlValue(e.statusContent, V)
8124
8131
  }, null, 12, Zu)) : g("", !0),
8125
8132
  e.actionEnable ? (n(), w("span", ep, [
8126
- fe(e.$slots, "actionBtnRow", {
8133
+ he(e.$slots, "actionBtnRow", {
8127
8134
  row: V,
8128
8135
  index: T
8129
8136
  }, void 0, !0),
@@ -8521,7 +8528,7 @@ function Tp(e, t, a, l, o, i) {
8521
8528
  }, null, 8, Ip))
8522
8529
  ], 4)) : g("", !0),
8523
8530
  e.actionEnable ? (n(), w("span", $p, [
8524
- fe(e.$slots, "actionBtnRow", {
8531
+ he(e.$slots, "actionBtnRow", {
8525
8532
  row: V,
8526
8533
  index: T
8527
8534
  }, void 0, !0),
@@ -8568,7 +8575,7 @@ function Tp(e, t, a, l, o, i) {
8568
8575
  ])) : g("", !0)
8569
8576
  ], 64);
8570
8577
  }
8571
- const Mp = /* @__PURE__ */ B(Bu, [["render", Tp], ["__scopeId", "data-v-ff1dc326"]]), fg = /* @__PURE__ */ L({
8578
+ const Mp = /* @__PURE__ */ B(Bu, [["render", Tp], ["__scopeId", "data-v-ff1dc326"]]), hg = /* @__PURE__ */ L({
8572
8579
  __name: "SdAppList",
8573
8580
  props: {
8574
8581
  userState: {
@@ -9471,6 +9478,7 @@ const Mp = /* @__PURE__ */ B(Bu, [["render", Tp], ["__scopeId", "data-v-ff1dc326
9471
9478
  open_next_form: [],
9472
9479
  update_relational_fields: [],
9473
9480
  delete_children_record: [],
9481
+ clone_children_record: [],
9474
9482
  harvest_data: [],
9475
9483
  after_save: "",
9476
9484
  after_delete: "",
@@ -9517,7 +9525,7 @@ const Mp = /* @__PURE__ */ B(Bu, [["render", Tp], ["__scopeId", "data-v-ff1dc326
9517
9525
  function Ta(e) {
9518
9526
  return e.includes("admin") || e.includes("super");
9519
9527
  }
9520
- const Pp = Xo(() => import("./sd-render-jM1JOKg_.js").then((e) => e.S)), Vp = L({
9528
+ const Pp = Xo(() => import("./sd-render-_hq6G7JE.js").then((e) => e.S)), Vp = L({
9521
9529
  name: "SdCrudForm",
9522
9530
  components: {
9523
9531
  SdFormRenderAsync: Pp
@@ -9736,8 +9744,8 @@ const Pp = Xo(() => import("./sd-render-jM1JOKg_.js").then((e) => e.S)), Vp = L(
9736
9744
  }
9737
9745
  this.nextOpenForm = {
9738
9746
  formId: a.form,
9739
- parentId: re(a.parentId, o),
9740
- dataId: re(a.dataId, o),
9747
+ parentId: se(a.parentId, o),
9748
+ dataId: se(a.dataId, o),
9741
9749
  initData: i
9742
9750
  }, this.nextOpenForm.dataId ? this.nextOpenForm.isInsert = !1 : this.nextOpenForm.isInsert = !0, this.subFormOpen({
9743
9751
  modelValue: !0,
@@ -9836,7 +9844,7 @@ function Ap(e, t, a, l, o, i) {
9836
9844
  onFormChange: e.onFormChange
9837
9845
  }, {
9838
9846
  default: s(() => [
9839
- fe(e.$slots, "inputForm")
9847
+ he(e.$slots, "inputForm")
9840
9848
  ]),
9841
9849
  _: 3
9842
9850
  }, 8, ["sdform", "parent-id", "form-data", "option-model", "disabled", "api-url", "params", "annotated", "is-sub-form", "auth-token", "submit-func", "user-state", "onFormChange"])) : g("", !0)
@@ -9891,7 +9899,7 @@ function Ap(e, t, a, l, o, i) {
9891
9899
  _: 1
9892
9900
  })
9893
9901
  ], 64)) : g("", !0),
9894
- fe(e.$slots, "closeForm")
9902
+ he(e.$slots, "closeForm")
9895
9903
  ]),
9896
9904
  _: 3
9897
9905
  })
@@ -10035,7 +10043,7 @@ function Kp(e, t, a, l, o, i) {
10035
10043
  icon: "InfoFilled",
10036
10044
  onClick: e.handleAppInfo
10037
10045
  }, null, 8, ["onClick"])) : g("", !0),
10038
- fe(e.$slots, "actions", {}, void 0, !0)
10046
+ he(e.$slots, "actions", {}, void 0, !0)
10039
10047
  ])
10040
10048
  ]),
10041
10049
  P("div", Rp, [
@@ -10188,7 +10196,7 @@ function Kp(e, t, a, l, o, i) {
10188
10196
  ])) : g("", !0)
10189
10197
  ], 64);
10190
10198
  }
10191
- const hg = /* @__PURE__ */ B(Op, [["render", Kp], ["__scopeId", "data-v-bc1eaadb"]]);
10199
+ const cg = /* @__PURE__ */ B(Op, [["render", Kp], ["__scopeId", "data-v-bc1eaadb"]]);
10192
10200
  tn.register(
10193
10201
  an,
10194
10202
  ln,
@@ -10317,7 +10325,7 @@ const Gp = L({
10317
10325
  preLoading: !1,
10318
10326
  showChart: !1,
10319
10327
  apiUrl: "",
10320
- isDark: se(),
10328
+ isDark: re(),
10321
10329
  useUserState: this.$props.userState
10322
10330
  };
10323
10331
  },
@@ -10331,7 +10339,7 @@ const Gp = L({
10331
10339
  },
10332
10340
  computed: {
10333
10341
  color() {
10334
- return se().value ? "#414243" : "#e4e7ed";
10342
+ return re().value ? "#414243" : "#e4e7ed";
10335
10343
  },
10336
10344
  dataChart() {
10337
10345
  const e = {}, t = this.rawData.map((l) => {
@@ -10376,7 +10384,7 @@ const Gp = L({
10376
10384
  async initdata() {
10377
10385
  const e = {
10378
10386
  providerId: this.sqlId,
10379
- providerType: de.SQL,
10387
+ providerType: ue.SQL,
10380
10388
  params: this.params
10381
10389
  };
10382
10390
  if (this.rawData = [], this.loadEnable) {
@@ -10413,7 +10421,7 @@ const Gp = L({
10413
10421
  grid: {
10414
10422
  display: this.gridDisplay,
10415
10423
  color: function(e) {
10416
- return se().value ? "#414243" : "#e4e7ed";
10424
+ return re().value ? "#414243" : "#e4e7ed";
10417
10425
  }
10418
10426
  },
10419
10427
  ...this.scalesXCustom
@@ -10427,7 +10435,7 @@ const Gp = L({
10427
10435
  grid: {
10428
10436
  display: this.gridDisplay,
10429
10437
  color: function(e) {
10430
- return se().value ? "#414243" : "#e4e7ed";
10438
+ return re().value ? "#414243" : "#e4e7ed";
10431
10439
  }
10432
10440
  },
10433
10441
  ...this.scalesYCustom
@@ -10450,7 +10458,7 @@ const Gp = L({
10450
10458
  grid: {
10451
10459
  display: this.gridDisplay,
10452
10460
  color: function(e) {
10453
- return se().value ? "#414243" : "#e4e7ed";
10461
+ return re().value ? "#414243" : "#e4e7ed";
10454
10462
  }
10455
10463
  }
10456
10464
  },
@@ -10463,7 +10471,7 @@ const Gp = L({
10463
10471
  grid: {
10464
10472
  display: this.gridDisplay,
10465
10473
  color: function(e) {
10466
- return se().value ? "#414243" : "#e4e7ed";
10474
+ return re().value ? "#414243" : "#e4e7ed";
10467
10475
  }
10468
10476
  }
10469
10477
  }
@@ -10493,7 +10501,7 @@ function Yp(e, t, a, l, o, i) {
10493
10501
  ], 64))
10494
10502
  ], 4);
10495
10503
  }
10496
- const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10504
+ const bg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10497
10505
  name: "SdApexChart",
10498
10506
  components: { ApexChart: yn },
10499
10507
  props: {
@@ -10625,7 +10633,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10625
10633
  preLoading: !1,
10626
10634
  showChart: !1,
10627
10635
  apiUrl: "",
10628
- isDark: se(),
10636
+ isDark: re(),
10629
10637
  useUserState: this.$props.userState
10630
10638
  };
10631
10639
  },
@@ -10639,7 +10647,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10639
10647
  },
10640
10648
  computed: {
10641
10649
  color() {
10642
- return se().value ? "#414243" : "#e4e7ed";
10650
+ return re().value ? "#414243" : "#e4e7ed";
10643
10651
  },
10644
10652
  dataChart() {
10645
10653
  let e = [];
@@ -10683,7 +10691,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10683
10691
  async initdata() {
10684
10692
  const e = {
10685
10693
  providerId: this.sqlId,
10686
- providerType: de.SQL,
10694
+ providerType: ue.SQL,
10687
10695
  params: this.params
10688
10696
  };
10689
10697
  if (this.rawData = [], this.loadEnable) {
@@ -10716,7 +10724,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10716
10724
  },
10717
10725
  grid: {
10718
10726
  show: this.gridDisplay,
10719
- borderColor: se().value ? "#414243" : "#e4e7ed",
10727
+ borderColor: re().value ? "#414243" : "#e4e7ed",
10720
10728
  ...this.gridCustom
10721
10729
  },
10722
10730
  dataLabels: {
@@ -10730,10 +10738,10 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10730
10738
  text: this.scalesXLabel
10731
10739
  },
10732
10740
  axisBorder: {
10733
- color: se().value ? "#414243" : "#e4e7ed"
10741
+ color: re().value ? "#414243" : "#e4e7ed"
10734
10742
  },
10735
10743
  axisTicks: {
10736
- color: se().value ? "#414243" : "#e4e7ed"
10744
+ color: re().value ? "#414243" : "#e4e7ed"
10737
10745
  },
10738
10746
  ...this.scalesXCustom
10739
10747
  },
@@ -10743,10 +10751,10 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10743
10751
  text: this.scalesYLabel
10744
10752
  },
10745
10753
  axisBorder: {
10746
- color: se().value ? "#414243" : "#e4e7ed"
10754
+ color: re().value ? "#414243" : "#e4e7ed"
10747
10755
  },
10748
10756
  axisTicks: {
10749
- color: se().value ? "#414243" : "#e4e7ed"
10757
+ color: re().value ? "#414243" : "#e4e7ed"
10750
10758
  },
10751
10759
  ...this.scalesYCustom
10752
10760
  },
@@ -10755,7 +10763,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10755
10763
  theme: "dark"
10756
10764
  },
10757
10765
  theme: {
10758
- mode: se().value ? "dark" : "light"
10766
+ mode: re().value ? "dark" : "light"
10759
10767
  },
10760
10768
  ...this.customOptions
10761
10769
  };
@@ -10783,7 +10791,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10783
10791
  },
10784
10792
  grid: {
10785
10793
  show: this.gridDisplay,
10786
- borderColor: se().value ? "#414243" : "#e4e7ed",
10794
+ borderColor: re().value ? "#414243" : "#e4e7ed",
10787
10795
  ...this.gridCustom
10788
10796
  },
10789
10797
  xaxis: {
@@ -10793,10 +10801,10 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10793
10801
  text: this.scalesXLabel
10794
10802
  },
10795
10803
  axisBorder: {
10796
- color: se().value ? "#414243" : "#e4e7ed"
10804
+ color: re().value ? "#414243" : "#e4e7ed"
10797
10805
  },
10798
10806
  axisTicks: {
10799
- color: se().value ? "#414243" : "#e4e7ed"
10807
+ color: re().value ? "#414243" : "#e4e7ed"
10800
10808
  },
10801
10809
  ...this.scalesXCustom
10802
10810
  },
@@ -10806,10 +10814,10 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10806
10814
  text: this.scalesYLabel
10807
10815
  },
10808
10816
  axisBorder: {
10809
- color: se().value ? "#414243" : "#e4e7ed"
10817
+ color: re().value ? "#414243" : "#e4e7ed"
10810
10818
  },
10811
10819
  axisTicks: {
10812
- color: se().value ? "#414243" : "#e4e7ed"
10820
+ color: re().value ? "#414243" : "#e4e7ed"
10813
10821
  },
10814
10822
  ...this.scalesYCustom
10815
10823
  },
@@ -10818,7 +10826,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10818
10826
  theme: "dark"
10819
10827
  },
10820
10828
  theme: {
10821
- mode: se().value ? "dark" : "light"
10829
+ mode: re().value ? "dark" : "light"
10822
10830
  },
10823
10831
  ...this.customOptions
10824
10832
  };
@@ -10846,7 +10854,7 @@ function Xp(e, t, a, l, o, i) {
10846
10854
  ], 64))
10847
10855
  ], 4);
10848
10856
  }
10849
- const bg = /* @__PURE__ */ B(Jp, [["render", Xp]]), Qp = L({
10857
+ const gg = /* @__PURE__ */ B(Jp, [["render", Xp]]), Qp = L({
10850
10858
  name: "SdExportData",
10851
10859
  emits: ["update:modelValue", "change"],
10852
10860
  props: {
@@ -10938,7 +10946,7 @@ const bg = /* @__PURE__ */ B(Jp, [["render", Xp]]), Qp = L({
10938
10946
  this.showFile = !1;
10939
10947
  const e = `export/${this.userState.user?.username}`;
10940
10948
  let t = { filePath: this.filePath, fileName: this.fName, fileType: "json", fileGroup: e, fileId: "" };
10941
- await he.delete(`${this.userState.host}/v1/files/remove-one`, {
10949
+ await ce.delete(`${this.userState.host}/v1/files/remove-one`, {
10942
10950
  data: t,
10943
10951
  headers: {
10944
10952
  Authorization: `Bearer ${this.userState.user?.token}`
@@ -10987,7 +10995,7 @@ function tm(e, t, a, l, o, i) {
10987
10995
  ])
10988
10996
  ]),
10989
10997
  default: s(() => [
10990
- fe(e.$slots, "popup", {}, () => [
10998
+ he(e.$slots, "popup", {}, () => [
10991
10999
  t[2] || (t[2] = S(" Download click here => ", -1)),
10992
11000
  e.showFile ? (n(), p(m, {
10993
11001
  key: 0,
@@ -11209,14 +11217,14 @@ const yo = /* @__PURE__ */ B(im, [["render", nm]]), sm = L({
11209
11217
  l[`{{${o}}}`] = Ae(t[o], o, this.formModel);
11210
11218
  if (a.expressions)
11211
11219
  try {
11212
- const i = `return ${re(a.expressions, l)}`, d = new Function("row", ...De, i);
11220
+ const i = `return ${se(a.expressions, l)}`, d = new Function("row", ...De, i);
11213
11221
  l["{{expressions}}"] = d.call(this.formModel, t);
11214
11222
  } catch (o) {
11215
11223
  l["{{expressions}}"] = o;
11216
11224
  }
11217
11225
  else
11218
11226
  l["{{expressions}}"] = "";
11219
- return Tt(re(e, l));
11227
+ return Tt(se(e, l));
11220
11228
  };
11221
11229
  },
11222
11230
  columnFields() {
@@ -11256,11 +11264,11 @@ const yo = /* @__PURE__ */ B(im, [["render", nm]]), sm = L({
11256
11264
  return l;
11257
11265
  },
11258
11266
  getValue(e, t, a) {
11259
- let l = ce(e, t);
11267
+ let l = de(e, t);
11260
11268
  return this.rawValue ? l ?? null : Ae(l, t, a);
11261
11269
  },
11262
11270
  getValueType(e, t, a) {
11263
- let l = ce(e, t);
11271
+ let l = de(e, t);
11264
11272
  if (this.rawValue)
11265
11273
  return l ?? null;
11266
11274
  if (typeof l == "boolean")
@@ -11499,7 +11507,7 @@ function um(e, t, a, l, o, i) {
11499
11507
  _: 2
11500
11508
  }, 1032, ["prop", "column-key", "label", "width", "align", "sortable", "filters", "fixed"]))), 256)) : g("", !0)
11501
11509
  ], 64)),
11502
- fe(e.$slots, "default"),
11510
+ he(e.$slots, "default"),
11503
11511
  e.systemColumn ? (n(), w(E, { key: 2 }, [
11504
11512
  e.formModel && e.formModel.form_options && e.formModel.form_options.query_tool != "disable" ? (n(), p(u, {
11505
11513
  key: 0,
@@ -11751,7 +11759,7 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
11751
11759
  useUserState: this.$props.userState,
11752
11760
  showExport: !1,
11753
11761
  showRawValue: !1,
11754
- dpFormData: { providerId: this.formId, providerType: de.FORM },
11762
+ dpFormData: { providerId: this.formId, providerType: ue.FORM },
11755
11763
  dpExpandData: null,
11756
11764
  isExpand: !1,
11757
11765
  expandedRows: [],
@@ -11762,7 +11770,7 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
11762
11770
  widgetId: "SdCrudGrid-" + Rt(),
11763
11771
  dpExportRow: {
11764
11772
  providerId: "",
11765
- providerType: de.FORM,
11773
+ providerType: ue.FORM,
11766
11774
  options: { where: "_id = CONVERT(:id, 'objectId')" },
11767
11775
  params: { id: "" }
11768
11776
  },
@@ -11874,13 +11882,13 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
11874
11882
  this.defaultParams = { ...t, ...e }, this.defaultSort = D(this.optionProvider.orderBy), this.dpFormData.params = D(this.defaultParams), this.getDataList(this.dpFormData);
11875
11883
  },
11876
11884
  initForm(e) {
11877
- this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = de.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), this.searchFields ? this.dpFormData.options.search = this.searchFields : this.dpFormData.options.search = this.sdformModel.form_options.search_fields ? this.sdformModel.form_options.search_fields : [];
11885
+ this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = ue.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), this.searchFields ? this.dpFormData.options.search = this.searchFields : this.dpFormData.options.search = this.sdformModel.form_options.search_fields ? this.sdformModel.form_options.search_fields : [];
11878
11886
  const t = D(this.dpFormData.params), a = D(this.params);
11879
11887
  if (this.defaultParams = { ...a, ...t }, this.defaultSort = D(this.optionProvider.orderBy), this.dpFormData.params = D(this.defaultParams), this.sumColumn && Object.values(this.sumColumn).length > 0 && (this.dpFormData.options.sum = this.sumColumn), this.groupKey)
11880
11888
  if (this.expandProvider)
11881
11889
  this.dpExpandData = D(this.expandProvider);
11882
11890
  else {
11883
- if (this.dpExpandData = { providerId: this.formId, providerType: de.FORM }, this.dpFormData.options.select && this.dpFormData.options.select.length > 0) {
11891
+ if (this.dpExpandData = { providerId: this.formId, providerType: ue.FORM }, this.dpFormData.options.select && this.dpFormData.options.select.length > 0) {
11884
11892
  const l = [`\`${this.groupKey}\``, `\`${this.groupKey}\` AS \`${this.rowKey}\``, `COUNT(*) AS \`${this.expandCountChildrenName}\``];
11885
11893
  this.dpFormData.options.select.push(...l);
11886
11894
  } else
@@ -11888,9 +11896,9 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
11888
11896
  if (this.aggrColumn && Object.values(this.aggrColumn).length > 0 && this.dpFormData.options.select.push(...this.aggrColumn), this.sumColumn && Object.values(this.sumColumn).length > 0)
11889
11897
  for (const l of this.sumColumn)
11890
11898
  this.dpFormData.options.select.push(`SUM(\`${l}\`) AS \`${l}\``);
11891
- this.dpExpandData.options || (this.dpExpandData.options = {}), this.dpExpandData.options.select = ["*", `\`${this.keyId}\` AS \`${this.rowKey}\``], this.dpExpandData.options.where = `\`${this.groupKey}\` = :xgidx`, this.dpFormData.options.groupBy = [`\`${this.groupKey}\``], this.dpFormData.options.orderBy = [{ column: `\`${this.groupKey}\``, sort: me.ASC }];
11899
+ this.dpExpandData.options || (this.dpExpandData.options = {}), this.dpExpandData.options.select = ["*", `\`${this.keyId}\` AS \`${this.rowKey}\``], this.dpExpandData.options.where = `\`${this.groupKey}\` = :xgidx`, this.dpFormData.options.groupBy = [`\`${this.groupKey}\``], this.dpFormData.options.orderBy = [{ column: `\`${this.groupKey}\``, sort: fe.ASC }];
11892
11900
  }
11893
- this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: me.DESC }], this.defaultSort = [{ column: "created_at", sort: me.DESC }]), this.dpExportRow.providerId = this.formId, this.getDataList(this.dpFormData), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
11901
+ this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: fe.DESC }], this.defaultSort = [{ column: "created_at", sort: fe.DESC }]), this.dpExportRow.providerId = this.formId, this.getDataList(this.dpFormData), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
11894
11902
  if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId)) {
11895
11903
  let o = -1;
11896
11904
  const i = D(l.data), d = l.params ? D(l.params) : null;
@@ -11945,7 +11953,7 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
11945
11953
  if (this.dpExpandData) {
11946
11954
  this.dpExpandData.params || (this.dpExpandData.params ? this.dpExpandData.params = { ...this.dpExpandData.params, ...e } : this.dpExpandData.params = D(e));
11947
11955
  const l = this.groupKey;
11948
- l && e[l] != null && e[l] != null && (this.dpExpandData.params.xgidx = e[l], he.post(
11956
+ l && e[l] != null && e[l] != null && (this.dpExpandData.params.xgidx = e[l], ce.post(
11949
11957
  `${this.userState.host}/widget/crud/getdata-all`,
11950
11958
  {
11951
11959
  sdProvider: this.dpExpandData,
@@ -12116,7 +12124,7 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
12116
12124
  }
12117
12125
  },
12118
12126
  handleSort(e) {
12119
- this.optionProvider.orderBy = this.defaultSort, e.order !== null && (this.defaultSort ? this.optionProvider.orderBy.push({ column: `\`${e.prop}\``, sort: e.order == "descending" ? me.DESC : me.ASC }) : this.optionProvider.orderBy = [{ column: `\`${e.prop}\``, sort: e.order == "descending" ? me.DESC : me.ASC }]), this.dpExpandData && this.resetExpand(), this.getDataList(this.dpFormData);
12127
+ this.optionProvider.orderBy = this.defaultSort, e.order !== null && (this.defaultSort ? this.optionProvider.orderBy.push({ column: `\`${e.prop}\``, sort: e.order == "descending" ? fe.DESC : fe.ASC }) : this.optionProvider.orderBy = [{ column: `\`${e.prop}\``, sort: e.order == "descending" ? fe.DESC : fe.ASC }]), this.dpExpandData && this.resetExpand(), this.getDataList(this.dpFormData);
12120
12128
  },
12121
12129
  handleSearch() {
12122
12130
  this.searchText != "" ? this.dpFormData.params.q = `%${this.searchText}%` : delete this.dpFormData.params.q, this.dpExpandData && this.resetExpand(), this.total = 0, this.getDataList(this.dpFormData);
@@ -12162,7 +12170,7 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
12162
12170
  if (l) {
12163
12171
  this.formData = { ...l, ...this.formData };
12164
12172
  let o = {};
12165
- this.beforeSave && (o = this.beforeSave(this.formData), this.formData = { ...this.formData, ...o }), this.formData.xversionx = this.sdformModel.form_version;
12173
+ this.beforeSave && (o = this.beforeSave(this.formData), this.formData = { ...this.formData, ...o }), this.formData.xclonex = e[this.keyId], this.formData.dataid = this.formData[this.keyId], delete this.formData.xrstatx, this.formData.xversionx = this.sdformModel.form_version;
12166
12174
  const i = await dt(this.sdformModel.dataid, this.formData[this.keyId], this.formData, 1, this.useUserState), d = i.data;
12167
12175
  d ? (d[this.rowKey] = this.formData[this.keyId], this.afterSave(d, !1)) : N.warning(i.message);
12168
12176
  } else
@@ -12266,7 +12274,7 @@ function wm(e, t, a, l, o, i) {
12266
12274
  _: 1
12267
12275
  }),
12268
12276
  P("span", bm, [
12269
- fe(e.$slots, "actionsBar", {}, void 0, !0)
12277
+ he(e.$slots, "actionsBar", {}, void 0, !0)
12270
12278
  ])
12271
12279
  ])) : g("", !0),
12272
12280
  r(f, { gutter: 20 }, {
@@ -12294,7 +12302,7 @@ function wm(e, t, a, l, o, i) {
12294
12302
  _: 1
12295
12303
  }, 8, ["onClick"])) : g("", !0),
12296
12304
  t[6] || (t[6] = S()),
12297
- fe(e.$slots, "actions", {}, void 0, !0),
12305
+ he(e.$slots, "actions", {}, void 0, !0),
12298
12306
  e.rawdataBtnEnable ? (n(), p(b, {
12299
12307
  key: 1,
12300
12308
  direction: "vertical",
@@ -12372,7 +12380,7 @@ function wm(e, t, a, l, o, i) {
12372
12380
  style: { display: "inline-flex" }
12373
12381
  }, {
12374
12382
  default: s(() => [
12375
- fe(e.$slots, "actionsPager", {}, () => [
12383
+ he(e.$slots, "actionsPager", {}, () => [
12376
12384
  e.total > e.limit ? (n(), p(M, {
12377
12385
  key: 0,
12378
12386
  class: "mb-2",
@@ -12508,14 +12516,14 @@ function wm(e, t, a, l, o, i) {
12508
12516
  ]),
12509
12517
  _: 2
12510
12518
  }, 1024)) : g("", !0),
12511
- fe(e.$slots, "actionBtnRow", {
12519
+ he(e.$slots, "actionBtnRow", {
12512
12520
  row: T.row,
12513
12521
  index: T.$index
12514
12522
  }, void 0, !0)
12515
12523
  ]),
12516
12524
  _: 3
12517
12525
  }, 8, ["label", "width"])) : g("", !0),
12518
- fe(e.$slots, "actionColumn", {}, void 0, !0),
12526
+ he(e.$slots, "actionColumn", {}, void 0, !0),
12519
12527
  e.indexColumn ? (n(), p(k, {
12520
12528
  key: 1,
12521
12529
  type: "index",
@@ -12538,7 +12546,7 @@ function wm(e, t, a, l, o, i) {
12538
12546
  "raw-value": e.showRawValue
12539
12547
  }, {
12540
12548
  default: s(() => [
12541
- fe(e.$slots, "default", {}, void 0, !0)
12549
+ he(e.$slots, "default", {}, void 0, !0)
12542
12550
  ]),
12543
12551
  _: 3
12544
12552
  }, 8, ["form-model", "display-fields", "subform-width", "system-column", "edit-column", "key-id", "row-key", "user-state", "after-save", "raw-value"])) : g("", !0)
@@ -12582,7 +12590,7 @@ function wm(e, t, a, l, o, i) {
12582
12590
  }, null, 8, ["modelValue", "dynamic-name", "data-provider", "user-state", "cancel-callback"])
12583
12591
  ], 64);
12584
12592
  }
12585
- const Fm = /* @__PURE__ */ B(mm, [["render", wm], ["__scopeId", "data-v-2d047125"]]), _m = L({
12593
+ const Fm = /* @__PURE__ */ B(mm, [["render", wm], ["__scopeId", "data-v-9d5b4393"]]), _m = L({
12586
12594
  name: "SdCrudPopupForm",
12587
12595
  components: {},
12588
12596
  emits: ["update:modelValue", "change"],
@@ -13336,7 +13344,7 @@ const Tm = /* @__PURE__ */ B(Dm, [["render", $m]]), Mm = L({
13336
13344
  t = Nu(o, e, this.valueField, this.labelField, this.labelTemplate);
13337
13345
  } else {
13338
13346
  let o = this.itemsList.find((i) => !!i.value && i.value == e);
13339
- o && o.label && (t = o.label);
13347
+ o.label && (t = o.label);
13340
13348
  }
13341
13349
  let a = {};
13342
13350
  if (this.refField) {
@@ -13352,14 +13360,14 @@ const Tm = /* @__PURE__ */ B(Dm, [["render", $m]]), Mm = L({
13352
13360
  return i[this.valueField];
13353
13361
  }
13354
13362
  }), this.refField.forEach((i) => {
13355
- const d = ce(o, i);
13363
+ const d = de(o, i);
13356
13364
  $a(a, i, d);
13357
13365
  });
13358
13366
  }
13359
13367
  let l = {};
13360
13368
  if (this.joinerObject && this.itemSelected) {
13361
13369
  let o;
13362
- if (this.fieldName ? o = ce(this.itemSelected, this.fieldName) : this.formModel.joiner_field.joiner_enable && (o = ce(this.itemSelected, this.formModel.joiner_field.field_name)), o) {
13370
+ if (this.fieldName ? o = de(this.itemSelected, this.fieldName) : this.formModel.joiner_field.joiner_enable && (o = de(this.itemSelected, this.formModel.joiner_field.field_name)), o) {
13363
13371
  const i = D(o);
13364
13372
  let d = 1;
13365
13373
  for (const u in i) {
@@ -13398,17 +13406,18 @@ const Tm = /* @__PURE__ */ B(Dm, [["render", $m]]), Mm = L({
13398
13406
  getItemsList(e) {
13399
13407
  let t = "", a = [], l = ga(e);
13400
13408
  this.labelField.forEach((d) => {
13401
- e[d] ? (a.push(e[d]), l[`{{${d}}}`] = e[d]) : l[`{{${d}}}`] = "";
13402
- }), this.labelTemplate && this.labelTemplate != "" ? t = re(this.labelTemplate, l) : t = a.join(" "), this.optionsTemplate && this.optionsTemplate != "" && (this.optionsUi[e[this.valueField]] = re(this.optionsTemplate, l));
13409
+ const u = de(e, d);
13410
+ u ? (a.push(u), l[`{{${d}}}`] = u) : l[`{{${d}}}`] = "";
13411
+ }), this.labelTemplate && this.labelTemplate != "" ? t = se(this.labelTemplate, l) : t = a.join(" "), this.optionsTemplate && this.optionsTemplate != "" && (this.optionsUi[e[this.valueField]] = se(this.optionsTemplate, l));
13403
13412
  let o = {};
13404
13413
  this.refField && this.refField.forEach((d) => {
13405
- const u = ce(e, d);
13414
+ const u = de(e, d);
13406
13415
  $a(o, d, u);
13407
13416
  });
13408
13417
  let i = {};
13409
13418
  if (this.joinerObject) {
13410
13419
  let d;
13411
- if (this.fieldName ? d = ce(e, this.fieldName) : this.formModel.joiner_field.joiner_enable && (d = ce(e, this.formModel.joiner_field.field_name)), d) {
13420
+ if (this.fieldName ? d = de(e, this.fieldName) : this.formModel.joiner_field.joiner_enable && (d = de(e, this.formModel.joiner_field.field_name)), d) {
13412
13421
  const u = D(d);
13413
13422
  let m = 1;
13414
13423
  for (const h in u) {
@@ -13421,7 +13430,7 @@ const Tm = /* @__PURE__ */ B(Dm, [["render", $m]]), Mm = L({
13421
13430
  return { value: e[this.valueField], label: t, ...i, ...o };
13422
13431
  },
13423
13432
  async getDataAll(e, t) {
13424
- this.loading = !0, await he.post(
13433
+ this.loading = !0, await ce.post(
13425
13434
  `${this.apiUrl}/widget/crud/getdata-all`,
13426
13435
  {
13427
13436
  sdProvider: e,
@@ -13439,7 +13448,7 @@ const Tm = /* @__PURE__ */ B(Dm, [["render", $m]]), Mm = L({
13439
13448
  });
13440
13449
  },
13441
13450
  async getDataOne(e, t) {
13442
- this.loading = !0, await he.post(
13451
+ this.loading = !0, await ce.post(
13443
13452
  `${this.apiUrl}/widget/crud/getdata-one`,
13444
13453
  { sdProvider: e },
13445
13454
  {
@@ -13483,7 +13492,7 @@ function Nm(e, t, a, l, o, i) {
13483
13492
  onVisibleChange: e.handleVisibleChange
13484
13493
  }, tt({
13485
13494
  prefix: s(() => [
13486
- fe(e.$slots, "prefix")
13495
+ he(e.$slots, "prefix")
13487
13496
  ]),
13488
13497
  label: s(({ label: h, value: b }) => [
13489
13498
  P("div", {
@@ -13861,7 +13870,7 @@ function Bm(e, t, a, l, o, i) {
13861
13870
  } : void 0
13862
13871
  ]), 1032, ["modelValue", "multiple", "allow-create", "placeholder", "enable-object-type", "disabled", "data-provider", "value-field", "search-field", "label-field", "ref-field", "limit", "label-template", "options-template", "user-state", "onRemoteMethod", "onVisibleChange", "onChange"]);
13863
13872
  }
13864
- const gg = /* @__PURE__ */ B(Em, [["render", Bm]]), jm = L({
13873
+ const yg = /* @__PURE__ */ B(Em, [["render", Bm]]), jm = L({
13865
13874
  name: "SdCrudSelectSubForm",
13866
13875
  components: {
13867
13876
  // SdSelectRemoteList,
@@ -14391,13 +14400,13 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14391
14400
  }
14392
14401
  } else if (l.dataObjectMode = !0, l.disableAction = Object.keys(a.dataObject).length === 0 && !!a.path, !l.disableAction)
14393
14402
  for (const c in a.dataObject) {
14394
- const M = a.dataObject[c], f = ce(M, a.path);
14403
+ const M = a.dataObject[c], f = de(M, a.path);
14395
14404
  if (a.prefixProp) {
14396
- const k = ce(M, a.prefixProp);
14405
+ const k = de(M, a.prefixProp);
14397
14406
  _ = k || a.prefixProp, a.sqlTag && (_ = `\`${_}\``);
14398
14407
  }
14399
14408
  if (a.groupField) {
14400
- const k = ce(M, a.groupField);
14409
+ const k = de(M, a.groupField);
14401
14410
  C = k ? "----- " + k + " -----" : "----- " + c + " -----";
14402
14411
  }
14403
14412
  let y = [];
@@ -14413,7 +14422,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14413
14422
  let I = F.join(" ");
14414
14423
  if (a.labelTemplate !== "") {
14415
14424
  const V = ga(A);
14416
- I = re(a.labelTemplate, V);
14425
+ I = se(a.labelTemplate, V);
14417
14426
  }
14418
14427
  y.push({
14419
14428
  value: q,
@@ -15270,7 +15279,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15270
15279
  formDataDic: {},
15271
15280
  popupWidthParent: "70%",
15272
15281
  popupWidthDic: "80%",
15273
- isDark: se(),
15282
+ isDark: re(),
15274
15283
  popSubSchema: {},
15275
15284
  versionDescription: t.versionDescription,
15276
15285
  activeCommt: "0",
@@ -15324,7 +15333,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15324
15333
  const M = () => {
15325
15334
  t.joinerField.order_by.push({
15326
15335
  column: "",
15327
- sort: me.ASC
15336
+ sort: fe.ASC
15328
15337
  });
15329
15338
  }, f = (U, v) => {
15330
15339
  t.joinerField.order_by.splice(v, 1);
@@ -15332,7 +15341,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15332
15341
  if (U !== "") {
15333
15342
  const v = {
15334
15343
  providerId: "getsdform-all",
15335
- providerType: de.SYS,
15344
+ providerType: ue.SYS,
15336
15345
  params: { form_license: t.formLicense },
15337
15346
  options: {
15338
15347
  fileterObjectId: ["_id"],
@@ -15364,17 +15373,17 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15364
15373
  a.subSchema = [];
15365
15374
  if (a.formSelect.joiner_field && a.formSelect.joiner_field.form_id && a.formSelect.joiner_field.joiner_enable) {
15366
15375
  const W = D(a.formSelect.joiner_field.form_id), J = D(a.formSelect.joiner_field.ref_form);
15367
- let ue = 1, je = {};
15376
+ let pe = 1, je = {};
15368
15377
  if (J) {
15369
15378
  for (const nt in J)
15370
- ue++;
15379
+ pe++;
15371
15380
  je = {
15372
- [`xtbxlv${ue}_xfx_id`]: W.value,
15381
+ [`xtbxlv${pe}_xfx_id`]: W.value,
15373
15382
  ...J
15374
15383
  };
15375
15384
  } else
15376
15385
  je = {
15377
- [`xtbxlv${ue}_xfx_id`]: W.value
15386
+ [`xtbxlv${pe}_xfx_id`]: W.value
15378
15387
  };
15379
15388
  t.joinerField.ref_form = D(je);
15380
15389
  }
@@ -15393,7 +15402,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15393
15402
  if (v && U !== "") {
15394
15403
  let W = {
15395
15404
  providerId: "getsdform-one",
15396
- providerType: de.SYS,
15405
+ providerType: ue.SYS,
15397
15406
  params: {
15398
15407
  id: U
15399
15408
  }
@@ -15483,9 +15492,9 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15483
15492
  textType: void 0
15484
15493
  };
15485
15494
  else if (U.search(/xtbxlv/g) !== -1) {
15486
- let J = U.split("xfx"), ue = U.split("lv"), je = "0";
15487
- if (ue.length > 1 && ue[1]) {
15488
- const nt = ue[1].split("_");
15495
+ let J = U.split("xfx"), pe = U.split("lv"), je = "0";
15496
+ if (pe.length > 1 && pe[1]) {
15497
+ const nt = pe[1].split("_");
15489
15498
  nt[0] && (je = nt[0]);
15490
15499
  }
15491
15500
  t.formDb.schema[W] = {
@@ -15684,9 +15693,9 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15684
15693
  });
15685
15694
  }
15686
15695
  return (U, v) => {
15687
- const W = oe, J = Ll, ue = El, je = da, nt = ge, _e = ze, ie = lt, st = St, rt = Et, Ee = $e, _a = Nt, za = Ye, qa = jo, Ha = Bo, ne = qe, wo = Y("Link"), Wt = Ge, Fo = Y("Aim"), xa = Lt, Se = Dt, Mt = Ct, ct = kt, _o = va, So = Ra, ye = pt, Sa = vo, Wa = Y("InfoFilled"), ko = ra, Co = Nl, Do = Y("draggable"), Io = ut, Kt = Fe, $o = Y("sd-form-schema", !0), To = qm, Mo = zm, Po = ua;
15696
+ const W = oe, J = Ll, pe = El, je = da, nt = ge, _e = ze, ie = lt, st = St, rt = Et, Ee = $e, _a = Nt, za = Ye, qa = jo, Ha = Bo, ne = qe, wo = Y("Link"), Wt = Ge, Fo = Y("Aim"), xa = Lt, Se = Dt, Mt = Ct, ct = kt, _o = va, So = Ra, ye = pt, Sa = vo, Wa = Y("InfoFilled"), ko = ra, Co = Nl, Do = Y("draggable"), Io = ut, Kt = Fe, $o = Y("sd-form-schema", !0), To = qm, Mo = zm, Po = ua;
15688
15697
  return n(), w(E, null, [
15689
- r(ue, {
15698
+ r(pe, {
15690
15699
  title: "Parent Form",
15691
15700
  column: 3,
15692
15701
  size: "default",
@@ -16037,11 +16046,11 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
16037
16046
  })
16038
16047
  ]),
16039
16048
  default: s(() => [
16040
- r(pe(xl), {
16049
+ r(me(xl), {
16041
16050
  modelValue: $.countSite,
16042
16051
  "onUpdate:modelValue": (Q) => $.countSite = Q,
16043
16052
  "main-menu-bar": !1,
16044
- mode: pe(Wl).tree,
16053
+ mode: me(Wl).tree,
16045
16054
  style: { width: "100%" },
16046
16055
  class: X(a.isDark ? "jse-theme-dark" : "")
16047
16056
  }, null, 8, ["modelValue", "onUpdate:modelValue", "mode", "class"])
@@ -16647,7 +16656,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
16647
16656
  "onUpdate:modelValue": v[2] || (v[2] = ($) => a.versionDescription = $),
16648
16657
  mode: "mini",
16649
16658
  readonly: !0,
16650
- "user-state": pe(m)
16659
+ "user-state": me(m)
16651
16660
  }, null, 8, ["modelValue", "user-state"])
16652
16661
  ]),
16653
16662
  _: 1
@@ -16717,7 +16726,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
16717
16726
  }, {
16718
16727
  default: s(() => [
16719
16728
  r(So, {
16720
- "user-state": pe(m),
16729
+ "user-state": me(m),
16721
16730
  modelValue: e.joinerField.form_id,
16722
16731
  "onUpdate:modelValue": v[4] || (v[4] = ($) => e.joinerField.form_id = $),
16723
16732
  filterable: "",
@@ -16727,7 +16736,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
16727
16736
  "enable-object-type": !0,
16728
16737
  "joiner-object": !0,
16729
16738
  "field-name": "joiner_field.form_id",
16730
- "data-provider": { providerId: "getsdform-all", providerType: pe(de).SYS, params: { form_license: e.formLicense } },
16739
+ "data-provider": { providerId: "getsdform-all", providerType: me(ue).SYS, params: { form_license: e.formLicense } },
16731
16740
  "value-field": "_id",
16732
16741
  "search-field": ["form_name"],
16733
16742
  "label-field": ["form_name"],
@@ -17026,7 +17035,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
17026
17035
  dark: a.isDark,
17027
17036
  class: "mb-1",
17028
17037
  plain: "",
17029
- onClick: (Q) => pe(xm)("{{" + $.value + "}}")
17038
+ onClick: (Q) => me(xm)("{{" + $.value + "}}")
17030
17039
  }, {
17031
17040
  default: s(() => [
17032
17041
  S(O($.value), 1)
@@ -17163,14 +17172,14 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
17163
17172
  }, {
17164
17173
  default: s(() => [
17165
17174
  (n(), p(Se, {
17166
- key: pe(me).ASC,
17167
- label: pe(me).ASC,
17168
- value: pe(me).ASC
17175
+ key: me(fe).ASC,
17176
+ label: me(fe).ASC,
17177
+ value: me(fe).ASC
17169
17178
  }, null, 8, ["label", "value"])),
17170
17179
  (n(), p(Se, {
17171
- key: pe(me).DESC,
17172
- label: pe(me).DESC,
17173
- value: pe(me).DESC
17180
+ key: me(fe).DESC,
17181
+ label: me(fe).DESC,
17182
+ value: me(fe).DESC
17174
17183
  }, null, 8, ["label", "value"]))
17175
17184
  ]),
17176
17185
  _: 1
@@ -17474,7 +17483,7 @@ function sf(e, t, a, l, o, i) {
17474
17483
  _: 1
17475
17484
  }, 8, ["title", "modelValue", "width", "before-close", "close-on-click-modal"]);
17476
17485
  }
17477
- const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17486
+ const vg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17478
17487
  __name: "SdDynamicInput",
17479
17488
  props: {
17480
17489
  modelValue: {},
@@ -17490,7 +17499,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17490
17499
  const a = e, l = ke({
17491
17500
  inputType: a.inputType,
17492
17501
  inputOptions: {},
17493
- isDark: se(),
17502
+ isDark: re(),
17494
17503
  arrayList: ["multiselect-editor"],
17495
17504
  stringList: [
17496
17505
  "text-editor",
@@ -17708,13 +17717,13 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17708
17717
  onBlur: _,
17709
17718
  onChange: h
17710
17719
  }), null, 16, ["modelValue", "size", "predefine", "disabled"])) : g("", !0),
17711
- l.inputType === "json-editor" ? (n(), p(pe(xl), {
17720
+ l.inputType === "json-editor" ? (n(), p(me(xl), {
17712
17721
  key: 11,
17713
17722
  modelValue: u.value,
17714
17723
  "onUpdate:modelValue": c[11] || (c[11] = (x) => u.value = x),
17715
17724
  "main-menu-bar": !1,
17716
17725
  "navigation-bar": !1,
17717
- mode: pe(Wl).tree,
17726
+ mode: me(Wl).tree,
17718
17727
  style: { width: "100%" },
17719
17728
  size: e.size || void 0,
17720
17729
  class: X(l.isDark ? "jse-theme-dark" : ""),
@@ -17796,13 +17805,13 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17796
17805
  ], 64);
17797
17806
  };
17798
17807
  }
17799
- }), vg = /* @__PURE__ */ B(rf, [["__scopeId", "data-v-3bca21e7"]]), df = {
17808
+ }), wg = /* @__PURE__ */ B(rf, [["__scopeId", "data-v-3bca21e7"]]), df = {
17800
17809
  role: "heading",
17801
17810
  class: "el-dialog__title"
17802
17811
  }, uf = { style: { width: "100%", "min-height": "500px", height: "500px" } }, pf = {
17803
17812
  key: 0,
17804
17813
  style: { color: "var(--el-color-warning)", "font-size": "9px" }
17805
- }, wg = /* @__PURE__ */ L({
17814
+ }, Fg = /* @__PURE__ */ L({
17806
17815
  __name: "SdFormErd",
17807
17816
  props: {
17808
17817
  modelValue: null,
@@ -17970,7 +17979,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17970
17979
  ]),
17971
17980
  default: s(() => [
17972
17981
  P("div", uf, [
17973
- o.showContent ? (n(), p(pe(ni), {
17982
+ o.showContent ? (n(), p(me(ni), {
17974
17983
  key: 0,
17975
17984
  nodes: o.nodes,
17976
17985
  edges: o.edges,
@@ -18171,7 +18180,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
18171
18180
  },
18172
18181
  methods: {
18173
18182
  async getDataList(e, t) {
18174
- this.preLoading = !0, await he.post(
18183
+ this.preLoading = !0, await ce.post(
18175
18184
  `${this.apiUrl}/widget/crud/getdata-all`,
18176
18185
  {
18177
18186
  sdProvider: e,
@@ -18192,7 +18201,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
18192
18201
  if (e.dataid = e._id || null, this.expandProvider) {
18193
18202
  this.expandProvider.params ? this.expandProvider.params = { ...this.expandProvider.params, ...e } : this.expandProvider.params = D(e);
18194
18203
  const l = this.rowKey;
18195
- l && e[l] != null && e[l] != null && (this.expandProvider.params.rowKey = e[l], he.post(
18204
+ l && e[l] != null && e[l] != null && (this.expandProvider.params.rowKey = e[l], ce.post(
18196
18205
  `${this.apiUrl}/widget/crud/getdata-all`,
18197
18206
  {
18198
18207
  sdProvider: this.expandProvider,
@@ -18285,7 +18294,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
18285
18294
  }
18286
18295
  },
18287
18296
  handleSort(e) {
18288
- this.optionProvider.orderBy = D(this.defaultSort), e.order !== null && (this.defaultSort && this.optionProvider.orderBy ? this.optionProvider.orderBy.push({ column: `\`${e.prop}\``, sort: e.order == "descending" ? me.DESC : me.ASC }) : this.optionProvider.orderBy = [{ column: `\`${e.prop}\``, sort: e.order == "descending" ? me.DESC : me.ASC }]), this.expandProvider && this.resetExpand(), this.dataProvider.options = this.optionProvider, this.getDataList(this.dataProvider);
18297
+ this.optionProvider.orderBy = D(this.defaultSort), e.order !== null && (this.defaultSort && this.optionProvider.orderBy ? this.optionProvider.orderBy.push({ column: `\`${e.prop}\``, sort: e.order == "descending" ? fe.DESC : fe.ASC }) : this.optionProvider.orderBy = [{ column: `\`${e.prop}\``, sort: e.order == "descending" ? fe.DESC : fe.ASC }]), this.expandProvider && this.resetExpand(), this.dataProvider.options = this.optionProvider, this.getDataList(this.dataProvider);
18289
18298
  },
18290
18299
  handleSearch() {
18291
18300
  this.searchText != "" ? this.dataProvider.params.q = `%${this.searchText}%` : delete this.dataProvider.params.q, this.expandProvider && this.resetExpand(), this.getDataList(this.dataProvider);
@@ -18314,7 +18323,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
18314
18323
  cancelButtonText: "Cancel",
18315
18324
  type: "warning"
18316
18325
  }).then(() => {
18317
- he.delete(`${this.apiUrl}/widget/crud/delete-data`, {
18326
+ ce.delete(`${this.apiUrl}/widget/crud/delete-data`, {
18318
18327
  headers: {
18319
18328
  Authorization: `Bearer ${this.userState.user?.token}`
18320
18329
  },
@@ -18337,7 +18346,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
18337
18346
  cancelButtonText: "Cancel",
18338
18347
  type: "warning"
18339
18348
  }).then(() => {
18340
- he.put(
18349
+ ce.put(
18341
18350
  `${this.apiUrl}/widget/crud/update-data`,
18342
18351
  {
18343
18352
  id: o,
@@ -18408,7 +18417,7 @@ function Ff(e, t, a, l, o, i) {
18408
18417
  _: 1
18409
18418
  }),
18410
18419
  P("span", bf, [
18411
- fe(e.$slots, "actionsBar", {}, void 0, !0)
18420
+ he(e.$slots, "actionsBar", {}, void 0, !0)
18412
18421
  ])
18413
18422
  ])) : g("", !0),
18414
18423
  r(C, { gutter: 20 }, {
@@ -18434,7 +18443,7 @@ function Ff(e, t, a, l, o, i) {
18434
18443
  _: 1
18435
18444
  }, 8, ["onClick"])) : g("", !0),
18436
18445
  t[4] || (t[4] = S()),
18437
- fe(e.$slots, "actions", {}, void 0, !0),
18446
+ he(e.$slots, "actions", {}, void 0, !0),
18438
18447
  e.totalInline ? (n(), w(E, { key: 1 }, [
18439
18448
  r(m, {
18440
18449
  type: "info",
@@ -18490,7 +18499,7 @@ function Ff(e, t, a, l, o, i) {
18490
18499
  style: { display: "inline-flex" }
18491
18500
  }, {
18492
18501
  default: s(() => [
18493
- fe(e.$slots, "actionsPager", {}, () => [
18502
+ he(e.$slots, "actionsPager", {}, () => [
18494
18503
  e.total > e.limit ? (n(), p(_, {
18495
18504
  key: 0,
18496
18505
  class: "mb-2",
@@ -18597,7 +18606,7 @@ function Ff(e, t, a, l, o, i) {
18597
18606
  ]),
18598
18607
  _: 1
18599
18608
  }, 8, ["label", "width"])) : g("", !0),
18600
- fe(e.$slots, "default", {}, void 0, !0)
18609
+ he(e.$slots, "default", {}, void 0, !0)
18601
18610
  ]),
18602
18611
  _: 3
18603
18612
  }, 8, ["data", "border", "show-summary", "summary-method", "onSortChange", "height", "max-height", "row-key", "onExpandChange", "lazy", "load", "tree-props", "onFilterChange"])), [
@@ -18633,14 +18642,14 @@ function Ff(e, t, a, l, o, i) {
18633
18642
  "destroy-on-close": !0
18634
18643
  }, {
18635
18644
  default: s(() => [
18636
- fe(e.$slots, "popup", {}, void 0, !0)
18645
+ he(e.$slots, "popup", {}, void 0, !0)
18637
18646
  ]),
18638
18647
  _: 3
18639
18648
  }, 8, ["title", "modelValue", "width", "close-on-click-modal"])
18640
18649
  ])) : g("", !0)
18641
18650
  ], 64);
18642
18651
  }
18643
- const Fg = /* @__PURE__ */ B(mf, [["render", Ff], ["__scopeId", "data-v-a6ab139e"]]), _f = L({
18652
+ const _g = /* @__PURE__ */ B(mf, [["render", Ff], ["__scopeId", "data-v-a6ab139e"]]), _f = L({
18644
18653
  name: "SdGridColumnIndex",
18645
18654
  props: {
18646
18655
  columnLabel: {
@@ -18676,7 +18685,7 @@ function Sf(e, t, a, l, o, i) {
18676
18685
  align: "center"
18677
18686
  }, null, 8, ["index", "label", "width"]);
18678
18687
  }
18679
- const _g = /* @__PURE__ */ B(_f, [["render", Sf]]), kf = L({
18688
+ const Sg = /* @__PURE__ */ B(_f, [["render", Sf]]), kf = L({
18680
18689
  name: "SdGridColumnDate",
18681
18690
  props: {
18682
18691
  columnProp: {
@@ -18729,7 +18738,7 @@ function Cf(e, t, a, l, o, i) {
18729
18738
  _: 1
18730
18739
  }, 8, ["prop", "label", "width", "sortable"]);
18731
18740
  }
18732
- const Sg = /* @__PURE__ */ B(kf, [["render", Cf]]), Df = [
18741
+ const kg = /* @__PURE__ */ B(kf, [["render", Cf]]), Df = [
18733
18742
  {
18734
18743
  value: "addon-api",
18735
18744
  label: "Api"
@@ -22247,7 +22256,7 @@ function Pf(e, t, a, l, o, i) {
22247
22256
  _: 1
22248
22257
  }, 8, ["modelValue", "multiple", "allow-create", "disabled", "remote-method", "placeholder", "loading", "onChange"]);
22249
22258
  }
22250
- const kg = /* @__PURE__ */ B($f, [["render", Pf]]), Vf = L({
22259
+ const Cg = /* @__PURE__ */ B($f, [["render", Pf]]), Vf = L({
22251
22260
  name: "OptionsItemSetting",
22252
22261
  props: {
22253
22262
  typeSelect: String,
@@ -22461,7 +22470,7 @@ function Bf(e, t, a, l, o, i) {
22461
22470
  ])) : g("", !0)
22462
22471
  ]);
22463
22472
  }
22464
- const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad"]]), jf = L({
22473
+ const Dg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad"]]), jf = L({
22465
22474
  name: "SdReport",
22466
22475
  components: {},
22467
22476
  props: {
@@ -22629,16 +22638,16 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22629
22638
  const F = d[q];
22630
22639
  let I = "";
22631
22640
  if (F.col_field && y[F.col_field] !== null && F.col_value === null)
22632
- I = re(`{{${F.col_field}}}`, A);
22641
+ I = se(`{{${F.col_field}}}`, A);
22633
22642
  else {
22634
22643
  if (F.col_expressions)
22635
22644
  try {
22636
- const T = `return ${re(F.col_expressions, A)}`, H = new Function("row", ...De, T);
22645
+ const T = `return ${se(F.col_expressions, A)}`, H = new Function("row", ...De, T);
22637
22646
  A["{{expressions}}"] = H.call(a, y);
22638
22647
  } catch (V) {
22639
22648
  A["{{expressions}}"] = V;
22640
22649
  }
22641
- I = re(F.col_value, A);
22650
+ I = se(F.col_value, A);
22642
22651
  }
22643
22652
  if (!F.col_group)
22644
22653
  if (F.col_sum) {
@@ -22752,16 +22761,16 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22752
22761
  const b = l[h];
22753
22762
  let _ = "";
22754
22763
  if (b.col_field && d[b.col_field] !== null && b.col_value === null)
22755
- _ = re(`{{${b.col_field}}}`, m);
22764
+ _ = se(`{{${b.col_field}}}`, m);
22756
22765
  else {
22757
22766
  if (b.col_expressions)
22758
22767
  try {
22759
- const M = `return ${re(b.col_expressions, m)}`, f = new Function("row", ...De, M);
22768
+ const M = `return ${se(b.col_expressions, m)}`, f = new Function("row", ...De, M);
22760
22769
  m["{{expressions}}"] = f.call(a, d);
22761
22770
  } catch (c) {
22762
22771
  m["{{expressions}}"] = c;
22763
22772
  }
22764
- _ = re(b.col_value, m);
22773
+ _ = se(b.col_value, m);
22765
22774
  }
22766
22775
  if (b.col_format)
22767
22776
  try {
@@ -22789,7 +22798,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22789
22798
  if (e.pdf_sql && e.pdf_sql.value) {
22790
22799
  const o = {
22791
22800
  providerId: e.pdf_sql.value,
22792
- providerType: de.SQL,
22801
+ providerType: ue.SQL,
22793
22802
  params: t
22794
22803
  };
22795
22804
  e.pdf_fontsize && e.pdf_fontsize;
@@ -22806,7 +22815,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22806
22815
  for (const [C, c] of _.entries())
22807
22816
  if (c.content_widget) {
22808
22817
  let M = "";
22809
- if (c.content_value && (typeof c.content_value == "object" ? M = c.content_value : M = re(c.content_value, b)), c.content_widget === "table")
22818
+ if (c.content_value && (typeof c.content_value == "object" ? M = c.content_value : M = se(c.content_value, b)), c.content_widget === "table")
22810
22819
  if (Object.keys(e.pdf_column).length > 0) {
22811
22820
  const f = await this.dataConvert(h, e, i);
22812
22821
  l.push({
@@ -22832,7 +22841,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22832
22841
  F[H];
22833
22842
  let Z = !1;
22834
22843
  if (k.length > 0 ? k.includes(H) && (Z = !0) : Z = !0, Z) {
22835
- let x = re(`{{${H}}}`, V);
22844
+ let x = se(`{{${H}}}`, V);
22836
22845
  y.length > 0 && typeof y[0] != "object" && y[T] && (typeof y[T] == "string" ? y[T] : String(y[T])), I[H] = x, T++;
22837
22846
  }
22838
22847
  }
@@ -22846,7 +22855,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22846
22855
  } else if (c.content_widget === "sub_report" && M !== "") {
22847
22856
  const f = {
22848
22857
  providerId: "getreport-one",
22849
- providerType: de.SYS,
22858
+ providerType: ue.SYS,
22850
22859
  params: { reportId: M }
22851
22860
  }, y = await Ot(f, this.useUserState);
22852
22861
  if (y && y.response && y.data && y.data.data) {
@@ -22881,7 +22890,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22881
22890
  if (e.pdf_sql && e.pdf_sql.value) {
22882
22891
  const d = {
22883
22892
  providerId: e.pdf_sql.value,
22884
- providerType: de.SQL,
22893
+ providerType: ue.SQL,
22885
22894
  params: t
22886
22895
  }, u = e.pdf_fontsize ? e.pdf_fontsize : 14;
22887
22896
  let m = {}, h = "";
@@ -22897,7 +22906,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22897
22906
  for (const [f, y] of M.entries())
22898
22907
  if (y.content_widget) {
22899
22908
  let k = "";
22900
- if (y.content_value && (typeof y.content_value == "object" ? k = y.content_value : k = re(y.content_value, c)), y.content_widget === "text")
22909
+ if (y.content_value && (typeof y.content_value == "object" ? k = y.content_value : k = se(y.content_value, c)), y.content_widget === "text")
22901
22910
  l.push({
22902
22911
  text: k,
22903
22912
  alignment: y.content_align || "left",
@@ -22986,8 +22995,8 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22986
22995
  Be[v];
22987
22996
  let W = !1;
22988
22997
  if (V.length > 0 ? V.includes(v) && (W = !0) : W = !0, W) {
22989
- let J = re(`{{${v}}}`, Me), ue = I[U] || "left";
22990
- if (ue === "l" || ue === "L" ? ue = "left" : ue === "c" || ue === "C" ? ue = "center" : (ue === "r" || ue === "R") && (ue = "rigth"), Z)
22998
+ let J = se(`{{${v}}}`, Me), pe = I[U] || "left";
22999
+ if (pe === "l" || pe === "L" ? pe = "left" : pe === "c" || pe === "C" ? pe = "center" : (pe === "r" || pe === "R") && (pe = "rigth"), Z)
22991
23000
  if (q[U] || (q[U] = "*"), F.length > 0) {
22992
23001
  if (typeof F[0] != "object")
22993
23002
  if (x = !0, F[U]) {
@@ -22996,7 +23005,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22996
23005
  text: je,
22997
23006
  bold: !0,
22998
23007
  fillColor: "#ddd",
22999
- alignment: ue,
23008
+ alignment: pe,
23000
23009
  fontSize: u
23001
23010
  });
23002
23011
  } else
@@ -23004,7 +23013,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23004
23013
  text: v,
23005
23014
  bold: !0,
23006
23015
  fillColor: "#ddd",
23007
- alignment: ue,
23016
+ alignment: pe,
23008
23017
  fontSize: u
23009
23018
  });
23010
23019
  } else
@@ -23012,12 +23021,12 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23012
23021
  text: v,
23013
23022
  bold: !0,
23014
23023
  fillColor: "#ddd",
23015
- alignment: ue,
23024
+ alignment: pe,
23016
23025
  fontSize: u
23017
23026
  });
23018
23027
  et.push({
23019
23028
  text: J,
23020
- alignment: ue,
23029
+ alignment: pe,
23021
23030
  fontSize: u
23022
23031
  }), U++;
23023
23032
  }
@@ -23046,7 +23055,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23046
23055
  } else if (y.content_widget === "sub_report" && k !== "") {
23047
23056
  const A = {
23048
23057
  providerId: "getreport-one",
23049
- providerType: de.SYS,
23058
+ providerType: ue.SYS,
23050
23059
  params: { reportId: k }
23051
23060
  }, q = await Ot(A, this.useUserState);
23052
23061
  if (q && q.response && q.data && q.data.data) {
@@ -23105,7 +23114,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23105
23114
  this.reportType = t;
23106
23115
  const a = {
23107
23116
  providerId: "getreport-one",
23108
- providerType: de.SYS,
23117
+ providerType: ue.SYS,
23109
23118
  params: { reportId: e }
23110
23119
  };
23111
23120
  let l = !0;
@@ -23131,7 +23140,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23131
23140
  let i = "output";
23132
23141
  t.pdf_name && (i = t.pdf_name), this.createExcel(o, i);
23133
23142
  } else if (e === "word")
23134
- this.popupDownloadName = "Report", t.pdf_name && (t.pdf_name, this.popupDownloadName = "Report " + t.pdf_name), t.pdf_temp && Object.keys(t.pdf_temp).length > 0 ? (t.pdf_temp[0].url ? t.pdf_temp[0].url : "") ? await he.post(
23143
+ this.popupDownloadName = "Report", t.pdf_name && (t.pdf_name, this.popupDownloadName = "Report " + t.pdf_name), t.pdf_temp && Object.keys(t.pdf_temp).length > 0 ? (t.pdf_temp[0].url ? t.pdf_temp[0].url : "") ? await ce.post(
23135
23144
  `${this.userState.host}/v1/files/create-word`,
23136
23145
  { reportId: t._id, params: a },
23137
23146
  {
@@ -23295,7 +23304,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23295
23304
  this.showFile = !1;
23296
23305
  const e = `export/${this.userState.user?.username}`;
23297
23306
  let t = { filePath: this.filePath, fileName: this.fullName, fileType: "docx", fileGroup: e, fileId: "" };
23298
- await he.delete(`${this.userState.host}/v1/files/remove-one`, {
23307
+ await ce.delete(`${this.userState.host}/v1/files/remove-one`, {
23299
23308
  data: t,
23300
23309
  headers: {
23301
23310
  Authorization: `Bearer ${this.userState.user?.token}`
@@ -23570,7 +23579,7 @@ function Wf(e, t, a, l, o, i) {
23570
23579
  ])) : g("", !0)
23571
23580
  ], 64);
23572
23581
  }
23573
- const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f"]]), Kf = L({
23582
+ const Ig = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f"]]), Kf = L({
23574
23583
  name: "SdUiCarousel",
23575
23584
  components: {},
23576
23585
  props: {
@@ -23720,7 +23729,7 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23720
23729
  limit: this.limitRow,
23721
23730
  optionProvider: { limit: this.limitRow, page: 1 },
23722
23731
  useUserState: this.$props.userState,
23723
- dpFormData: { providerId: this.formId, providerType: de.FORM },
23732
+ dpFormData: { providerId: this.formId, providerType: ue.FORM },
23724
23733
  wsConn: void 0,
23725
23734
  widgetId: "SdUiCarousel-" + Rt(),
23726
23735
  isFormEnable: this.providerType === "FORM",
@@ -23732,7 +23741,7 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23732
23741
  return (e, t) => {
23733
23742
  let a = {}, l = this.sdformModel.form_db.schema;
23734
23743
  for (const o in l) {
23735
- let i = ce(t, o);
23744
+ let i = de(t, o);
23736
23745
  a[`{{${o}}}`] = Ae(i, o, this.sdformModel);
23737
23746
  }
23738
23747
  if (this.customValue) {
@@ -23741,7 +23750,7 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23741
23750
  let i = this.customValue[o];
23742
23751
  if (i.expressions)
23743
23752
  try {
23744
- const u = `return ${re(i.expressions, a)}`, m = new Function("row", ...De, u);
23753
+ const u = `return ${se(i.expressions, a)}`, m = new Function("row", ...De, u);
23745
23754
  a[`{{${i.fieldName}}}`] = m.call(this.sdformModel, t);
23746
23755
  } catch (d) {
23747
23756
  a[`{{${i.fieldName}}}`] = d;
@@ -23750,7 +23759,7 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23750
23759
  a[`{{${i.fieldName}}}`] = "";
23751
23760
  }
23752
23761
  }
23753
- return Tt(re(e, a));
23762
+ return Tt(se(e, a));
23754
23763
  };
23755
23764
  }
23756
23765
  },
@@ -23784,9 +23793,9 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23784
23793
  this.defaultParams = { ...t, ...e }, this.dpFormData.params = D(this.defaultParams), this.getDataList();
23785
23794
  },
23786
23795
  initForm(e) {
23787
- this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = de.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')");
23796
+ this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = ue.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')");
23788
23797
  const t = D(this.dpFormData.params), a = D(this.params);
23789
- this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: me.DESC }]), this.getDataList(), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
23798
+ this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: fe.DESC }]), this.getDataList(), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
23790
23799
  if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId)) {
23791
23800
  let o = -1;
23792
23801
  const i = D(l.data);
@@ -23824,7 +23833,7 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23824
23833
  this.isInsert = !1, this.selectIndex = t, this.clickEvent && this.clickEvent(e, t);
23825
23834
  },
23826
23835
  getValue(e, t) {
23827
- let a = ce(e, t);
23836
+ let a = de(e, t);
23828
23837
  return a ? Ae(a, t, this.sdformModel) : "";
23829
23838
  },
23830
23839
  getSchema(e) {
@@ -24025,7 +24034,7 @@ function nh(e, t, a, l, o, i) {
24025
24034
  }, 8, ["indicator-position", "motionBlur", "interval", "autoplay", "direction", "type", "trigger", "height"])) : g("", !0)
24026
24035
  ], 64);
24027
24036
  }
24028
- const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de"]]), sh = L({
24037
+ const $g = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de"]]), sh = L({
24029
24038
  name: "SdUiMenu",
24030
24039
  components: {},
24031
24040
  props: {
@@ -24191,7 +24200,7 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24191
24200
  limit: this.limitRow,
24192
24201
  optionProvider: { limit: this.limitRow, page: 1 },
24193
24202
  useUserState: this.$props.userState,
24194
- dpFormData: { providerId: this.formId, providerType: de.FORM },
24203
+ dpFormData: { providerId: this.formId, providerType: ue.FORM },
24195
24204
  wsConn: void 0,
24196
24205
  isFormEnable: this.providerType === "FORM",
24197
24206
  scrollerHeight: 0,
@@ -24205,7 +24214,7 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24205
24214
  return (e, t) => {
24206
24215
  let a = {}, l = this.sdformModel.form_db.schema;
24207
24216
  for (const o in l) {
24208
- let i = ce(t, o);
24217
+ let i = de(t, o);
24209
24218
  a[`{{${o}}}`] = Ae(i, o, this.sdformModel);
24210
24219
  }
24211
24220
  if (this.customValue) {
@@ -24214,7 +24223,7 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24214
24223
  let i = this.customValue[o];
24215
24224
  if (i.expressions)
24216
24225
  try {
24217
- const u = `return ${re(i.expressions, a)}`, m = new Function("row", ...De, u);
24226
+ const u = `return ${se(i.expressions, a)}`, m = new Function("row", ...De, u);
24218
24227
  a[`{{${i.fieldName}}}`] = m.call(this.sdformModel, t);
24219
24228
  } catch (d) {
24220
24229
  a[`{{${i.fieldName}}}`] = d;
@@ -24223,7 +24232,7 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24223
24232
  a[`{{${i.fieldName}}}`] = "";
24224
24233
  }
24225
24234
  }
24226
- return Tt(re(e, a));
24235
+ return Tt(se(e, a));
24227
24236
  };
24228
24237
  }
24229
24238
  },
@@ -24274,9 +24283,9 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24274
24283
  this.defaultParams = { ...t, ...e }, this.dpFormData.params = D(this.defaultParams), this.getDataList();
24275
24284
  },
24276
24285
  initForm(e) {
24277
- this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = de.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')");
24286
+ this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = ue.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')");
24278
24287
  const t = D(this.dpFormData.params), a = D(this.params);
24279
- this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: me.DESC }]), this.getDataList();
24288
+ this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: fe.DESC }]), this.getDataList();
24280
24289
  },
24281
24290
  keyIdIndex(e) {
24282
24291
  let t = this.keyId;
@@ -24315,7 +24324,7 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24315
24324
  window.localStorage.setItem("side_menu_" + this.formId, String(this.isCollapse));
24316
24325
  },
24317
24326
  getValue(e, t) {
24318
- let a = ce(e, t);
24327
+ let a = de(e, t);
24319
24328
  return a ? Ae(a, t, this.sdformModel) : "";
24320
24329
  },
24321
24330
  getSchema(e) {
@@ -24488,7 +24497,7 @@ function mh(e, t, a, l, o, i) {
24488
24497
  }, null, 4)
24489
24498
  ], 64);
24490
24499
  }
24491
- const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24500
+ const Tg = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24492
24501
  name: "SdUiRecordView",
24493
24502
  components: {
24494
24503
  // SdCrudPopupGrid,
@@ -24636,7 +24645,7 @@ const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24636
24645
  },
24637
24646
  data() {
24638
24647
  return {
24639
- isDark: se(),
24648
+ isDark: re(),
24640
24649
  rawData: null,
24641
24650
  defaultParams: {},
24642
24651
  preLoading: !1,
@@ -24656,7 +24665,7 @@ const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24656
24665
  optionProvider: { limit: 1, page: 1 },
24657
24666
  allowInsert: !1,
24658
24667
  useUserState: this.$props.userState,
24659
- dpFormData: { providerId: this.formId, providerType: de.FORM },
24668
+ dpFormData: { providerId: this.formId, providerType: ue.FORM },
24660
24669
  wsConn: void 0,
24661
24670
  widgetId: "SdUiRecordView-" + Rt(),
24662
24671
  sdFunc: {},
@@ -24669,19 +24678,19 @@ const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24669
24678
  return (e, t, a) => {
24670
24679
  let l = {}, o = this.sdformModel.form_db.schema;
24671
24680
  for (const i in o) {
24672
- let d = ce(t, i);
24681
+ let d = de(t, i);
24673
24682
  l[`{{${i}}}`] = Ae(d, i, this.sdformModel);
24674
24683
  }
24675
24684
  if (a.expressions)
24676
24685
  try {
24677
- const d = `return ${re(a.expressions, l)}`, u = new Function("row", ...De, d);
24686
+ const d = `return ${se(a.expressions, l)}`, u = new Function("row", ...De, d);
24678
24687
  l["{{expressions}}"] = u.call(this.sdformModel, t);
24679
24688
  } catch (i) {
24680
24689
  l["{{expressions}}"] = i;
24681
24690
  }
24682
24691
  else
24683
24692
  l["{{expressions}}"] = "";
24684
- return Tt(re(e, l));
24693
+ return Tt(se(e, l));
24685
24694
  };
24686
24695
  }
24687
24696
  },
@@ -24776,7 +24785,7 @@ const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24776
24785
  this.showPopupGridFlag = !1;
24777
24786
  },
24778
24787
  initForm(e) {
24779
- this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = de.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), (!this.lastRecord || this.dataId) && (this.params.xdataidx = this.recordId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND _id = CONVERT(:xdataidx, 'objectId')" : this.dpFormData.options.where = "_id = CONVERT(:xdataidx, 'objectId')"), this.dpFormData.options.orderBy = [{ column: "created_at", sort: me.DESC }];
24788
+ this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = ue.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), (!this.lastRecord || this.dataId) && (this.params.xdataidx = this.recordId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND _id = CONVERT(:xdataidx, 'objectId')" : this.dpFormData.options.where = "_id = CONVERT(:xdataidx, 'objectId')"), this.dpFormData.options.orderBy = [{ column: "created_at", sort: fe.DESC }];
24780
24789
  const t = D(this.dpFormData.params), a = D(this.params);
24781
24790
  this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), (this.lastRecord || this.dataId) && this.getDataOne(this.dpFormData), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
24782
24791
  if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId) && l.keyid) {
@@ -24793,7 +24802,7 @@ const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24793
24802
  }
24794
24803
  },
24795
24804
  getValue(e, t) {
24796
- let a = ce(e, t);
24805
+ let a = de(e, t);
24797
24806
  return a ? Ae(a, t, this.sdformModel) : "";
24798
24807
  },
24799
24808
  allowView(e, t, a) {
@@ -24892,7 +24901,7 @@ function bh(e, t, a, l, o, i) {
24892
24901
  e.actionEnable ? {
24893
24902
  name: "extra",
24894
24903
  fn: s(() => [
24895
- fe(e.$slots, "actions", { row: e.rawData }, void 0, !0),
24904
+ he(e.$slots, "actions", { row: e.rawData }, void 0, !0),
24896
24905
  !e.dataId && !e.rawData && e.addBtnEnable && e.allowInsert ? (n(), p(m, {
24897
24906
  key: 0,
24898
24907
  plain: "",
@@ -24960,14 +24969,14 @@ function bh(e, t, a, l, o, i) {
24960
24969
  }, null, 8, ["modelValue", "parent-id", "readonly", "form-id", "user-state", "cancel-callback"])) : g("", !0)
24961
24970
  ], 64);
24962
24971
  }
24963
- const Tg = /* @__PURE__ */ B(fh, [["render", bh], ["__scopeId", "data-v-88128e90"]]);
24972
+ const Mg = /* @__PURE__ */ B(fh, [["render", bh], ["__scopeId", "data-v-88128e90"]]);
24964
24973
  export {
24965
24974
  Ua as $,
24966
24975
  vo as A,
24967
- Ig as B,
24976
+ $g as B,
24968
24977
  Mp as C,
24969
- $g as D,
24970
- Tg as E,
24978
+ Tg as D,
24979
+ Mg as E,
24971
24980
  Od as F,
24972
24981
  xt as G,
24973
24982
  af as H,
@@ -24981,7 +24990,7 @@ export {
24981
24990
  ja as P,
24982
24991
  ug as Q,
24983
24992
  Au as R,
24984
- hg as S,
24993
+ cg as S,
24985
24994
  pg as T,
24986
24995
  co as U,
24987
24996
  Pl as V,
@@ -24995,61 +25004,62 @@ export {
24995
25004
  Ou as a1,
24996
25005
  Ae as a2,
24997
25006
  Nu as a3,
24998
- B as a4,
24999
- En as a5,
25000
- Ce as a6,
25001
- D as a7,
25002
- De as a8,
25003
- Rt as a9,
25004
- Jb as aa,
25005
- Yb as ab,
25006
- ce as ac,
25007
- $a as ad,
25008
- ng as ae,
25009
- ig as af,
25010
- Ln as ag,
25011
- sg as ah,
25012
- og as ai,
25013
- lg as aj,
25014
- Ba as ak,
25015
- Xb as al,
25016
- La as am,
25017
- Gb as an,
25018
- ga as ao,
25019
- eg as ap,
25020
- ee as aq,
25021
- Kb as ar,
25022
- ag as as,
25023
- tg as at,
25024
- bt as au,
25025
- Zb as av,
25026
- Qb as aw,
25027
- de as ax,
25028
- xm as ay,
25029
- Ra as az,
25007
+ fg as a4,
25008
+ B as a5,
25009
+ En as a6,
25010
+ Ce as a7,
25011
+ D as a8,
25012
+ De as a9,
25013
+ Ra as aA,
25014
+ Rt as aa,
25015
+ Jb as ab,
25016
+ Yb as ac,
25017
+ de as ad,
25018
+ $a as ae,
25019
+ ng as af,
25020
+ ig as ag,
25021
+ Ln as ah,
25022
+ sg as ai,
25023
+ og as aj,
25024
+ lg as ak,
25025
+ Ba as al,
25026
+ Xb as am,
25027
+ La as an,
25028
+ Gb as ao,
25029
+ ga as ap,
25030
+ eg as aq,
25031
+ ee as ar,
25032
+ Kb as as,
25033
+ ag as at,
25034
+ tg as au,
25035
+ bt as av,
25036
+ Zb as aw,
25037
+ Qb as ax,
25038
+ ue as ay,
25039
+ xm as az,
25030
25040
  Nn as b,
25031
25041
  rg as c,
25032
25042
  va as d,
25033
25043
  dg as e,
25034
- fg as f,
25035
- cg as g,
25036
- bg as h,
25044
+ hg as f,
25045
+ bg as g,
25046
+ gg as h,
25037
25047
  bo as i,
25038
25048
  Fm as j,
25039
25049
  Cm as k,
25040
25050
  Tm as l,
25041
- gg as m,
25051
+ yg as m,
25042
25052
  Rm as n,
25043
- yg as o,
25044
- vg as p,
25045
- wg as q,
25046
- Fg as r,
25053
+ vg as o,
25054
+ wg as p,
25055
+ Fg as q,
25056
+ _g as r,
25047
25057
  go as s,
25048
25058
  yo as t,
25049
25059
  pm as u,
25050
- _g as v,
25051
- Sg as w,
25052
- kg as x,
25053
- Cg as y,
25054
- Dg as z
25060
+ Sg as v,
25061
+ kg as w,
25062
+ Cg as x,
25063
+ Dg as y,
25064
+ Ig as z
25055
25065
  };