sd-render 1.0.16 → 1.0.17

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.
@@ -1,10 +1,10 @@
1
- import { ElImage as vt, ElIcon as Ge, ElDialog as we, ElButton as oe, ElTooltip as Ml, ElForm as ut, ElFormItem as pt, ElInput as Ie, ElDivider as oa, ElDropdown as wt, ElDropdownMenu as Ft, ElDropdownItem as _t, ElUpload as Ia, ElPagination as ia, ElPopover as Ye, ElCol as at, ElCheckbox as na, ElColorPicker as $a, ElRow as St, ElInputNumber as Et, ElText as ze, ElButtonGroup as Vl, ElTag as Nt, ElAvatar as Ta, ElTable as Lt, ElTableColumn as qe, ElSpace as Vo, ElLink as sa, ElRate as Po, ElScrollbar as Pl, ElTimelineItem as Ao, ElCard as Ma, ElAlert as ra, ElTabs as Oo, ElTabPane as Eo, ElSwitch as kt, ElSelectV2 as Al, ElLoadingDirective as da, ElSelect as Ct, ElOption as Dt, ElOptionGroup as No, ElDescriptions as Ol, ElDescriptionsItem as El, ElCollapse as Lo, ElCollapseItem as Bo, ElDatePicker as Nl, ElTimePicker as jo, ElRadioGroup as Uo, ElRadioButton as Ro, ElCarousel as zo, ElCarouselItem as qo, ElMenu as Ho, ElMenuItem as Wo, ElSubMenu as xo } from "element-plus/es";
1
+ import { ElImage as vt, ElIcon as Ge, ElDialog as we, ElButton as oe, ElTooltip as Ml, ElForm as ut, ElFormItem as pt, ElInput as Ie, ElDivider as oa, ElDropdown as wt, ElDropdownMenu as Ft, ElDropdownItem as _t, ElUpload as Ia, ElPagination as ia, ElPopover as Ye, ElCol as at, ElCheckbox as na, ElColorPicker as $a, ElRow as St, ElInputNumber as Nt, ElText as ze, ElButtonGroup as Pl, ElTag as Et, ElAvatar as Ta, ElTable as Lt, ElTableColumn as qe, ElSpace as Po, ElLink as sa, ElRate as Vo, ElScrollbar as Vl, ElTimelineItem as Ao, ElCard as Ma, ElAlert as ra, ElTabs as Oo, ElTabPane as No, ElSwitch as kt, ElSelectV2 as Al, ElLoadingDirective as da, ElSelect as Ct, ElOption as Dt, ElOptionGroup as Eo, ElDescriptions as Ol, ElDescriptionsItem as Nl, ElCollapse as Lo, ElCollapseItem as Bo, ElDatePicker as El, ElTimePicker as jo, ElRadioGroup as Uo, ElRadioButton as Ro, ElCarousel as zo, ElCarouselItem as qo, ElMenu as Ho, ElMenuItem as Wo, ElSubMenu as xo } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/index";
3
3
  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 Q, createElementVNode as V, createCommentVNode as g, toDisplayString as O, defineComponent as L, markRaw as Ll, capitalize as Ko, normalizeStyle as te, ref as K, nextTick as yt, resolveComponent as Y, Fragment as N, createVNode as r, withCtx as s, createBlock as p, createTextVNode as S, inject as B, renderList as G, resolveDynamicComponent as ua, mergeProps as ae, toHandlers as Bl, withModifiers as R, renderSlot as me, computed as le, watch as Ke, provide as We, unref as de, watchEffect as Go, toRaw as Yo, withDirectives as Ve, vShow as jl, reactive as Se, onMounted as Je, normalizeProps as Va, guardReactiveProps as Pa, createSlots as tt, defineAsyncComponent as Jo, resolveDirective as Ul, withKeys as Qo } from "vue";
7
+ import { createElementBlock as w, openBlock as n, normalizeClass as Q, createElementVNode as P, createCommentVNode as g, toDisplayString as O, defineComponent as L, markRaw as Ll, capitalize as Ko, 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 B, renderList as G, resolveDynamicComponent as ua, mergeProps as ae, toHandlers as Bl, withModifiers as R, renderSlot as me, computed as le, watch as Ke, provide as We, unref as de, watchEffect as Go, toRaw as Yo, withDirectives as Pe, vShow as jl, reactive as Se, onMounted as Je, normalizeProps as Pa, guardReactiveProps as Va, createSlots as tt, defineAsyncComponent as Jo, resolveDirective as Ul, withKeys as Qo } from "vue";
8
8
  import { Editor as It, Node as lt, mergeAttributes as Qe, getMarkRange as Xo, Extension as He, isList as Zo } from "@tiptap/core";
9
9
  import xe from "ace-builds";
10
10
  import "ace-builds/src-min-noconflict/theme-tomorrow_night_eighties";
@@ -28,7 +28,7 @@ import "element-plus/es/components/text/style/index";
28
28
  import "element-plus/es/components/avatar/style/index";
29
29
  import "element-plus/es/components/input/style/index";
30
30
  import { useRouter as Rl, useRoute as zl } from "vue-router";
31
- import { ElMessageBox as he, ElTooltip as ti, ElButton as mt, ElCheckbox as Bt, ElInput as ft, ElFormItem as jt, ElForm as Ut, ElDialog as $t, ElDropdownItem as pa, ElDropdownMenu as ma, ElDropdown as fa, ElMessage as E, ElPopover as ht, ElUpload as ai, ElLoading as ta, ElCol as li } from "element-plus";
31
+ import { ElMessageBox as he, ElTooltip as ti, ElButton as mt, ElCheckbox as Bt, ElInput as ft, ElFormItem as jt, ElForm as Ut, ElDialog as $t, ElDropdownItem as pa, ElDropdownMenu as ma, ElDropdown as fa, ElMessage as N, ElPopover as ht, ElUpload as ai, ElLoading as ta, ElCol as li } from "element-plus";
32
32
  import "element-plus/es/components/tabs/style/index";
33
33
  import "element-plus/es/components/tab-pane/style/index";
34
34
  import "element-plus/es/components/alert/style/index";
@@ -98,14 +98,14 @@ import Ii from "highlight.js/lib/languages/css";
98
98
  import $i from "highlight.js/lib/languages/javascript";
99
99
  import Ti from "highlight.js/lib/languages/typescript";
100
100
  import Mi from "highlight.js/lib/languages/xml";
101
- import Vi from "@tiptap/extension-bullet-list";
102
- import Pi from "@tiptap/extension-ordered-list";
101
+ import Pi from "@tiptap/extension-bullet-list";
102
+ import Vi from "@tiptap/extension-ordered-list";
103
103
  import Ai from "@tiptap/extension-image";
104
104
  import "element-plus/es/components/upload/style/index";
105
105
  import fe from "axios";
106
106
  import Oi from "@tiptap/extension-task-list";
107
- import Ei from "@tiptap/extension-task-item";
108
- import { Table as Ni } from "@tiptap/extension-table";
107
+ import Ni from "@tiptap/extension-task-item";
108
+ import { Table as Ei } from "@tiptap/extension-table";
109
109
  import Li from "@tiptap/extension-table-row";
110
110
  import Bi from "@tiptap/extension-table-header";
111
111
  import ji from "@tiptap/extension-table-cell";
@@ -134,7 +134,7 @@ import _a from "pdfmake/build/pdfmake";
134
134
  import Ja from "html-to-pdfmake";
135
135
  import { f as vn } from "./sd-fonts-DL2H6WH7.js";
136
136
  import * as Yt from "xlsx";
137
- import { Document as wn, Paragraph as Vt, Table as Qa, TableRow as Xa, TableCell as Sa, WidthType as Jt, TableLayoutType as Za, BorderStyle as Qt, Packer as Fn } from "docx";
137
+ import { Document as wn, Paragraph as Pt, Table as Qa, TableRow as Xa, TableCell as Sa, WidthType as Jt, TableLayoutType as Za, BorderStyle as Qt, Packer as Fn } from "docx";
138
138
  import { saveAs as _n } from "file-saver";
139
139
  const Sn = {
140
140
  name: "SvgData",
@@ -208,7 +208,7 @@ function Mn(e, t, a, l, o, i) {
208
208
  class: Q(i.svgClass)
209
209
  }, [
210
210
  (n(), w("svg", In, [
211
- V("use", {
211
+ P("use", {
212
212
  "xlink:href": i.iconClass,
213
213
  fill: a.color
214
214
  }, null, 8, $n),
@@ -216,7 +216,7 @@ function Mn(e, t, a, l, o, i) {
216
216
  ]))
217
217
  ], 2);
218
218
  }
219
- const ce = /* @__PURE__ */ j(Dn, [["render", Mn], ["__scopeId", "data-v-bebc8483"]]), el = ["onBlur", "onInput", "onChange", "changeSelectionStyle", "changeSession", "copy", "onFocus", "paste"], Vn = L({
219
+ const ce = /* @__PURE__ */ j(Dn, [["render", Mn], ["__scopeId", "data-v-bebc8483"]]), el = ["onBlur", "onInput", "onChange", "changeSelectionStyle", "changeSession", "copy", "onFocus", "paste"], Pn = L({
220
220
  name: "SdAceEditor",
221
221
  emits: ["update:value", "init", ...el],
222
222
  props: {
@@ -488,12 +488,12 @@ loadData.then((data) => {
488
488
  }
489
489
  }
490
490
  });
491
- function Pn(e, t, a, l, o, i) {
491
+ function Vn(e, t, a, l, o, i) {
492
492
  return n(), w("div", {
493
493
  style: te(`min-height: ${e.minHeight || 30}px; width: 100%; `)
494
494
  }, null, 4);
495
495
  }
496
- const An = /* @__PURE__ */ j(Vn, [["render", Pn]]);
496
+ const An = /* @__PURE__ */ j(Pn, [["render", Vn]]);
497
497
  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 || {}), pe = /* @__PURE__ */ ((e) => (e.SYS = "SYS", e.FORM = "FORM", e.SQL = "SQL", e))(pe || {}), ue = /* @__PURE__ */ ((e) => (e.ASC = "ASC", e.DESC = "DESC", e))(ue || {});
498
498
  const qb = [
499
499
  {
@@ -662,31 +662,31 @@ function Oa(e) {
662
662
  function Kb(e) {
663
663
  return e === void 0 || !e && e !== 0 && e !== "0" || !/[^\s]/.test(e);
664
664
  }
665
- function Ea(e) {
665
+ function Na(e) {
666
666
  return Object.keys(e).length === 0;
667
667
  }
668
- function Pt(e, t) {
669
- e.category && e.category === "container" ? En(e, t) : e.formItemFlag && e.formItemFlag && t(e);
668
+ function Vt(e, t) {
669
+ e.category && e.category === "container" ? Nn(e, t) : e.formItemFlag && e.formItemFlag && t(e);
670
670
  }
671
- function En(e, t) {
671
+ function Nn(e, t) {
672
672
  e.component === "grid" ? e.cols.forEach((a) => {
673
673
  a.fields.forEach((l) => {
674
- Pt(l, t);
674
+ Vt(l, t);
675
675
  });
676
676
  }) : e.component === "table" ? e.rows.forEach((a) => {
677
677
  a.cols.forEach((l) => {
678
678
  l.fields.forEach((o) => {
679
- Pt(o, t);
679
+ Vt(o, t);
680
680
  });
681
681
  });
682
682
  }) : e.component === "tab" || e.component === "collapse" ? e.tabs.forEach((a) => {
683
683
  a.fields.forEach((l) => {
684
- Pt(l, t);
684
+ Vt(l, t);
685
685
  });
686
686
  }) : e.component === "sub-form" ? e.fields.forEach((a) => {
687
- Pt(a, t);
687
+ Vt(a, t);
688
688
  }) : e.category === "container" && e.fields.forEach((a) => {
689
- Pt(a, t);
689
+ Vt(a, t);
690
690
  });
691
691
  }
692
692
  function bt(e, t, a = null) {
@@ -770,12 +770,12 @@ function Xb(e) {
770
770
  });
771
771
  }), t;
772
772
  }
773
- const Na = function(e) {
773
+ const Ea = function(e) {
774
774
  let t = {};
775
775
  for (const a in e)
776
776
  t[`{{${a}}}`] = e[a];
777
777
  return t;
778
- }, Nn = (e) => ["true", "True", "1"].includes(e);
778
+ }, En = (e) => ["true", "True", "1"].includes(e);
779
779
  function Zb(e) {
780
780
  return e.charAt(0).toUpperCase() + e.slice(1);
781
781
  }
@@ -1038,8 +1038,8 @@ const Un = L({
1038
1038
  }, Yn = { class: "dialog-footer" };
1039
1039
  function Jn(e, t, a, l, o, i) {
1040
1040
  const d = vt, u = Y("delete"), m = Ge, h = Y("Plus"), b = ce, _ = oe, C = we;
1041
- return n(), w(N, null, [
1042
- V("ul", Rn, [
1041
+ return n(), w(E, null, [
1042
+ P("ul", Rn, [
1043
1043
  e.priviewDataURL ? (n(), w("li", zn, [
1044
1044
  r(d, {
1045
1045
  style: te(`width: ${e.width}px; height: ${e.height}px`),
@@ -1073,7 +1073,7 @@ function Jn(e, t, a, l, o, i) {
1073
1073
  ]),
1074
1074
  _: 1
1075
1075
  }),
1076
- V("input", {
1076
+ P("input", {
1077
1077
  ref: "uploadInput",
1078
1078
  type: "file",
1079
1079
  accept: "image/jpg, image/jpeg, image/png, image/gif",
@@ -1098,13 +1098,13 @@ function Jn(e, t, a, l, o, i) {
1098
1098
  "destroy-on-close": !0
1099
1099
  }, {
1100
1100
  header: s(({ close: c, titleId: M, titleClass: f }) => [
1101
- V("span", Kn, [
1101
+ P("span", Kn, [
1102
1102
  r(b, { "icon-name": "crop-input" }),
1103
1103
  t[3] || (t[3] = S(" Crop Picture", -1))
1104
1104
  ])
1105
1105
  ]),
1106
1106
  footer: s(() => [
1107
- V("div", Yn, [
1107
+ P("div", Yn, [
1108
1108
  r(_, {
1109
1109
  plain: "",
1110
1110
  type: "success",
@@ -1159,7 +1159,7 @@ function Jn(e, t, a, l, o, i) {
1159
1159
  ])
1160
1160
  ]),
1161
1161
  default: s(() => [
1162
- V("div", Gn, null, 512)
1162
+ P("div", Gn, null, 512)
1163
1163
  ]),
1164
1164
  _: 1
1165
1165
  }, 8, ["modelValue", "width", "onOpened"])
@@ -1196,7 +1196,7 @@ const og = /* @__PURE__ */ j(Un, [["render", Jn], ["__scopeId", "data-v-e9f44078
1196
1196
  }), Xn = { class: "el-tiptap-editor__menu-bar" };
1197
1197
  function Zn(e, t, a, l, o, i) {
1198
1198
  return n(), w("div", Xn, [
1199
- (n(!0), w(N, null, G(e.generateCommandButtonComponentSpecs(), (d, u) => (n(), p(ua(d.component), ae({
1199
+ (n(!0), w(E, null, G(e.generateCommandButtonComponentSpecs(), (d, u) => (n(), p(ua(d.component), ae({
1200
1200
  key: "command-button" + u,
1201
1201
  "enable-tooltip": e.enableTooltip
1202
1202
  }, { ref_for: !0 }, d.componentProps, { readonly: e.isCodeViewMode }, Bl(d.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128))
@@ -1293,7 +1293,7 @@ function is(e, t, a, l, o, i) {
1293
1293
  placement: e.placement
1294
1294
  }, {
1295
1295
  default: s(() => [
1296
- V("span", {
1296
+ P("span", {
1297
1297
  class: Q(e.commandButtonClass),
1298
1298
  onMousedown: t[0] || (t[0] = R(() => {
1299
1299
  }, ["prevent"])),
@@ -1370,7 +1370,7 @@ const rs = L({
1370
1370
  });
1371
1371
  function ds(e, t, a, l, o, i) {
1372
1372
  const d = z;
1373
- return n(), w(N, null, [
1373
+ return n(), w(E, null, [
1374
1374
  r(d, {
1375
1375
  command: e.mergeCell,
1376
1376
  "enable-tooltip": e.enableTooltip,
@@ -1770,7 +1770,7 @@ function Cs(e, t, a, l, o, i) {
1770
1770
  "should-show": ({ editor: c, view: M, state: f, oldState: y, from: k, to: A }) => e.activeImage ? !1 : c.isActive("paragraph") && f.selection.$anchor.parentOffset !== f.selection.$head.parentOffset
1771
1771
  }, {
1772
1772
  default: s(() => [
1773
- V("div", {
1773
+ P("div", {
1774
1774
  class: Q([{
1775
1775
  "el-tiptap-editor__menu-bubble--active": e.bubbleMenuEnable
1776
1776
  }, "el-tiptap-editor__menu-bubble"])
@@ -1795,7 +1795,7 @@ function Cs(e, t, a, l, o, i) {
1795
1795
  e.activeMenu === "cell" ? (n(), p(m, {
1796
1796
  key: 1,
1797
1797
  editor: e.editor
1798
- }, null, 8, ["editor"])) : e.activeMenu === "default" ? (n(!0), w(N, { key: 2 }, G(e.generateCommandButtonComponentSpecs(), (c, M) => (n(), p(ua(c.component), ae({
1798
+ }, null, 8, ["editor"])) : e.activeMenu === "default" ? (n(!0), w(E, { key: 2 }, G(e.generateCommandButtonComponentSpecs(), (c, M) => (n(), p(ua(c.component), ae({
1799
1799
  key: "command-button" + M,
1800
1800
  "enable-tooltip": e.enableTooltip
1801
1801
  }, { ref_for: !0 }, c.componentProps, { readonly: e.isCodeViewMode }, Bl(c.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128)) : g("", !0)
@@ -1810,7 +1810,7 @@ function Cs(e, t, a, l, o, i) {
1810
1810
  "should-show": ({ editor: c, view: M, state: f, oldState: y }) => f.selection.$anchor.parentOffset == f.selection.$head.parentOffset && f.selection.$head.parentOffset == 0 && c.isActive("paragraph") && c.isActive("table")
1811
1811
  }, {
1812
1812
  default: s(() => [
1813
- V("div", ks, [
1813
+ P("div", ks, [
1814
1814
  r(b, {
1815
1815
  command: e.editor.commands.addColumnAfter,
1816
1816
  "enable-tooltip": e.enableTooltip,
@@ -2339,10 +2339,10 @@ const Ms = L({
2339
2339
  aceAreaRef: C
2340
2340
  };
2341
2341
  }
2342
- }), Vs = {
2342
+ }), Ps = {
2343
2343
  ref: "aceAreaRef",
2344
2344
  style: { "min-height": "400px", width: "100%" }
2345
- }, Ps = { class: "el-tiptap-editor__characters" };
2345
+ }, Vs = { class: "el-tiptap-editor__characters" };
2346
2346
  function As(e, t, a, l, o, i) {
2347
2347
  const d = to, u = xl, m = Y("editor-content");
2348
2348
  return e.editor ? (n(), w("div", {
@@ -2374,9 +2374,9 @@ function As(e, t, a, l, o, i) {
2374
2374
  "border-bottom-radius": e.isCodeViewMode
2375
2375
  })
2376
2376
  }, [
2377
- V("div", Vs, null, 512)
2377
+ P("div", Ps, null, 512)
2378
2378
  ], 2)) : g("", !0),
2379
- Ve(r(m, {
2379
+ Pe(r(m, {
2380
2380
  editor: e.editor,
2381
2381
  class: Q([
2382
2382
  {
@@ -2397,11 +2397,11 @@ function As(e, t, a, l, o, i) {
2397
2397
  e.editorFooterClass
2398
2398
  ])
2399
2399
  }, [
2400
- V("span", Ps, O(e.t("editor.characters")) + ": " + O(e.characters) + " " + O(e.countMax ? `/ ${e.countMax}` : ""), 1)
2400
+ P("span", Vs, O(e.t("editor.characters")) + ": " + O(e.characters) + " " + O(e.countMax ? `/ ${e.countMax}` : ""), 1)
2401
2401
  ], 2)) : g("", !0)
2402
2402
  ], 6)) : g("", !0);
2403
2403
  }
2404
- const Os = /* @__PURE__ */ j(Ms, [["render", As]]), Es = lt.create({
2404
+ const Os = /* @__PURE__ */ j(Ms, [["render", As]]), Ns = lt.create({
2405
2405
  name: "title",
2406
2406
  // schema
2407
2407
  content: "inline*",
@@ -2427,9 +2427,9 @@ const Os = /* @__PURE__ */ j(Ms, [["render", As]]), Es = lt.create({
2427
2427
  return this.options.title ? "title block+" : "block+";
2428
2428
  },
2429
2429
  addExtensions() {
2430
- return this.options.title ? [Es] : [];
2430
+ return this.options.title ? [Ns] : [];
2431
2431
  }
2432
- }), Ns = L({
2432
+ }), Es = L({
2433
2433
  name: "HeadingDropdown",
2434
2434
  components: {
2435
2435
  ElDropdown: fa,
@@ -2473,7 +2473,7 @@ function Bs(e, t, a, l, o, i) {
2473
2473
  class: "el-tiptap-dropdown-menu"
2474
2474
  }, {
2475
2475
  default: s(() => [
2476
- (n(!0), w(N, null, G([0, ...e.levels], (b) => (n(), p(u, {
2476
+ (n(!0), w(E, null, G([0, ...e.levels], (b) => (n(), p(u, {
2477
2477
  key: b,
2478
2478
  command: b,
2479
2479
  class: Q([
@@ -2503,7 +2503,7 @@ function Bs(e, t, a, l, o, i) {
2503
2503
  })
2504
2504
  ]),
2505
2505
  default: s(() => [
2506
- V("span", null, [
2506
+ P("span", null, [
2507
2507
  r(d, {
2508
2508
  "enable-tooltip": e.enableTooltip,
2509
2509
  "is-active": e.editor.isActive("heading"),
@@ -2516,7 +2516,7 @@ function Bs(e, t, a, l, o, i) {
2516
2516
  _: 1
2517
2517
  }, 8, ["disabled", "onCommand"]);
2518
2518
  }
2519
- const js = /* @__PURE__ */ j(Ns, [["render", Bs]]), ol = Fi.extend({
2519
+ const js = /* @__PURE__ */ j(Es, [["render", Bs]]), ol = Fi.extend({
2520
2520
  addOptions() {
2521
2521
  return {
2522
2522
  ...this.parent?.(),
@@ -2598,7 +2598,7 @@ const Rs = ki.extend({
2598
2598
  // defaultLanguage: 'plaintext',
2599
2599
  };
2600
2600
  }
2601
- }), il = Vi.extend({
2601
+ }), il = Pi.extend({
2602
2602
  addOptions() {
2603
2603
  return {
2604
2604
  ...this.parent?.(),
@@ -2620,7 +2620,7 @@ const Rs = ki.extend({
2620
2620
  // addExtensions() {
2621
2621
  // return [ListItem];
2622
2622
  // },
2623
- }), nl = Pi.extend({
2623
+ }), nl = Vi.extend({
2624
2624
  addOptions() {
2625
2625
  return {
2626
2626
  ...this.parent?.(),
@@ -2692,11 +2692,11 @@ const Rs = ki.extend({
2692
2692
  i.userState.crudGetAll({ sdProvider: d, totalEnable: !0 }, (F) => {
2693
2693
  a.total = F.total, a.offset = F.offset, a.totalPage = F.data.length;
2694
2694
  const I = F.data;
2695
- l.value = [], I.forEach((P) => {
2695
+ l.value = [], I.forEach((V) => {
2696
2696
  l.value.push({
2697
- name: P.name,
2698
- url: P.file_path,
2699
- response: P
2697
+ name: V.name,
2698
+ url: V.file_path,
2699
+ response: V
2700
2700
  });
2701
2701
  });
2702
2702
  });
@@ -2708,19 +2708,19 @@ const Rs = ki.extend({
2708
2708
  function f() {
2709
2709
  u.value = 1, m();
2710
2710
  }
2711
- const y = (F) => F.type.split("/")[0] !== "image" ? (E.error("Upload picture must be image format!"), !1) : F.size / 1024 / 1024 > 15 ? (E.error("Upload picture size can not exceed 15MB!"), !1) : !0, k = (F) => {
2711
+ const y = (F) => F.type.split("/")[0] !== "image" ? (N.error("Upload picture must be image format!"), !1) : F.size / 1024 / 1024 > 15 ? (N.error("Upload picture size can not exceed 15MB!"), !1) : !0, k = (F) => {
2712
2712
  he.confirm("Are you sure you want to delete this item?", "Confirmation", {
2713
2713
  confirmButtonText: "OK",
2714
2714
  cancelButtonText: "Cancel",
2715
2715
  type: "warning"
2716
2716
  }).then(async () => {
2717
- const I = F.response, P = {
2717
+ const I = F.response, V = {
2718
2718
  fileName: I.file_name ? I.file_name : I.fileName ? I.fileName : "",
2719
2719
  fileGroup: I.file_group ? I.file_group : I.fileGroup ? I.fileGroup : "",
2720
2720
  fileId: I._id ? I._id : I.fileId ? I.fileId : ""
2721
2721
  };
2722
2722
  await fe.delete(`${i.userState.host}${a.type[b.value].deleteUrl}`, {
2723
- data: P,
2723
+ data: V,
2724
2724
  headers: {
2725
2725
  Authorization: `Bearer ${i.userState.user?.token}`
2726
2726
  }
@@ -2731,7 +2731,7 @@ const Rs = ki.extend({
2731
2731
  });
2732
2732
  }).catch(() => {
2733
2733
  });
2734
- }, A = (F, I, P) => {
2734
+ }, A = (F, I, V) => {
2735
2735
  a.total++, a.totalPage++, l.value[l.value.length - 1] = {
2736
2736
  name: F.fileName,
2737
2737
  url: F.filePath,
@@ -2741,16 +2741,16 @@ const Rs = ki.extend({
2741
2741
  a.previewIndex = h.value.indexOf(F.url), o.value.$el.children[0].click();
2742
2742
  };
2743
2743
  return (F, I) => {
2744
- const P = oe, T = Y("Plus"), H = Ge, Z = vt, W = Y("zoom-in"), Ee = Y("Delete"), Be = Ia, et = ia;
2745
- return n(), w(N, null, [
2746
- V("div", zs, [
2747
- r(P, {
2744
+ const V = oe, T = Y("Plus"), H = Ge, Z = vt, W = Y("zoom-in"), Ne = Y("Delete"), Be = Ia, et = ia;
2745
+ return n(), w(E, null, [
2746
+ P("div", zs, [
2747
+ r(V, {
2748
2748
  type: "info",
2749
2749
  plain: "",
2750
2750
  icon: "Refresh",
2751
2751
  onClick: f
2752
2752
  }),
2753
- V("span", qs, "Showing " + O(C.value) + "-" + O(c.value) + " of " + O(_.value) + " items.", 1)
2753
+ P("span", qs, "Showing " + O(C.value) + "-" + O(c.value) + " of " + O(_.value) + " items.", 1)
2754
2754
  ]),
2755
2755
  r(Be, {
2756
2756
  class: "avatar-uploader",
@@ -2768,8 +2768,8 @@ const Rs = ki.extend({
2768
2768
  "before-upload": y
2769
2769
  }, {
2770
2770
  file: s(({ file: Te }) => [
2771
- V("div", null, [
2772
- V("img", {
2771
+ P("div", null, [
2772
+ P("img", {
2773
2773
  class: "el-upload-list__item-thumbnail",
2774
2774
  src: Te.url,
2775
2775
  alt: ""
@@ -2784,9 +2784,9 @@ const Rs = ki.extend({
2784
2784
  fit: "cover",
2785
2785
  "preview-teleported": ""
2786
2786
  }, null, 8, ["src", "preview-src-list", "initial-index"]),
2787
- V("span", Ws, [
2787
+ P("span", Ws, [
2788
2788
  me(F.$slots, "action", { file: Te }, void 0, !0),
2789
- V("span", {
2789
+ P("span", {
2790
2790
  class: "el-upload-list__item-preview",
2791
2791
  onClick: (U) => q(Te)
2792
2792
  }, [
@@ -2804,7 +2804,7 @@ const Rs = ki.extend({
2804
2804
  }, [
2805
2805
  r(H, null, {
2806
2806
  default: s(() => [
2807
- r(Ee)
2807
+ r(Ne)
2808
2808
  ]),
2809
2809
  _: 1
2810
2810
  })
@@ -2953,7 +2953,7 @@ function lr(e, t, a, l, o, i) {
2953
2953
  "popper-class": "el-tiptap-popper"
2954
2954
  }, {
2955
2955
  reference: s(() => [
2956
- V("span", null, [
2956
+ P("span", null, [
2957
2957
  r(d, {
2958
2958
  "enable-tooltip": e.enableTooltip,
2959
2959
  tooltip: e.t("editor.extensions.Image.buttons.insert_image.tooltip"),
@@ -2963,18 +2963,18 @@ function lr(e, t, a, l, o, i) {
2963
2963
  ])
2964
2964
  ]),
2965
2965
  default: s(() => [
2966
- V("div", tr, [
2967
- V("div", {
2966
+ P("div", tr, [
2967
+ P("div", {
2968
2968
  class: "el-tiptap-popper__menu__item",
2969
2969
  onClick: t[0] || (t[0] = (...C) => e.openUrlPrompt && e.openUrlPrompt(...C))
2970
2970
  }, [
2971
- V("span", null, O(e.t("editor.extensions.Image.buttons.insert_image.external")), 1)
2971
+ P("span", null, O(e.t("editor.extensions.Image.buttons.insert_image.external")), 1)
2972
2972
  ]),
2973
- V("div", {
2973
+ P("div", {
2974
2974
  class: "el-tiptap-popper__menu__item",
2975
2975
  onClick: t[1] || (t[1] = (C) => e.imageUploadDialogVisible = !0)
2976
2976
  }, [
2977
- V("span", null, O(e.t("editor.extensions.Image.buttons.insert_image.upload")), 1)
2977
+ P("span", null, O(e.t("editor.extensions.Image.buttons.insert_image.upload")), 1)
2978
2978
  ])
2979
2979
  ])
2980
2980
  ]),
@@ -3260,7 +3260,7 @@ function mr(e, t, a, l, o, i) {
3260
3260
  ref: "popoverRef"
3261
3261
  }, {
3262
3262
  reference: s(() => [
3263
- V("span", null, [
3263
+ P("span", null, [
3264
3264
  r(d, {
3265
3265
  "enable-tooltip": e.enableTooltip,
3266
3266
  tooltip: e.t("editor.extensions.Image.buttons.display.tooltip"),
@@ -3269,8 +3269,8 @@ function mr(e, t, a, l, o, i) {
3269
3269
  ])
3270
3270
  ]),
3271
3271
  default: s(() => [
3272
- V("div", ur, [
3273
- (n(!0), w(N, null, G(e.displayCollection, (m) => (n(), w("div", {
3272
+ P("div", ur, [
3273
+ (n(!0), w(E, null, G(e.displayCollection, (m) => (n(), w("div", {
3274
3274
  key: m,
3275
3275
  class: Q([{
3276
3276
  "el-tiptap-popper__menu__item--active": m === e.currDisplay
@@ -3278,7 +3278,7 @@ function mr(e, t, a, l, o, i) {
3278
3278
  onMousedown: t[0] || (t[0] = (...h) => e.hidePopover && e.hidePopover(...h)),
3279
3279
  onClick: (h) => e.updateAttrs({ display: m })
3280
3280
  }, [
3281
- V("span", null, O(e.t(`editor.extensions.Image.buttons.display.${m}`)), 1)
3281
+ P("span", null, O(e.t(`editor.extensions.Image.buttons.display.${m}`)), 1)
3282
3282
  ], 42, pr))), 128))
3283
3283
  ])
3284
3284
  ]),
@@ -3439,14 +3439,14 @@ function wr(e, t, a, l, o, i) {
3439
3439
  "data-drag-handle": ""
3440
3440
  }, {
3441
3441
  default: s(() => [
3442
- V("div", {
3442
+ P("div", {
3443
3443
  class: Q({
3444
3444
  "image-view__body--focused": e.selected && e.editor?.isEditable,
3445
3445
  "image-view__body--resizing": e.resizing && e.editor?.isEditable,
3446
3446
  "image-view__body": e.editor?.isEditable
3447
3447
  })
3448
3448
  }, [
3449
- V("img", {
3449
+ P("img", {
3450
3450
  src: e.src,
3451
3451
  title: e.node.attrs.title,
3452
3452
  alt: e.node.attrs.alt,
@@ -3455,8 +3455,8 @@ function wr(e, t, a, l, o, i) {
3455
3455
  class: "image-view__body__image",
3456
3456
  onClick: t[0] || (t[0] = (...h) => e.selectImage && e.selectImage(...h))
3457
3457
  }, null, 8, gr),
3458
- e.editor?.isEditable ? Ve((n(), w("div", yr, [
3459
- (n(!0), w(N, null, G(e.resizeDirections, (h) => (n(), w("span", {
3458
+ e.editor?.isEditable ? Pe((n(), w("div", yr, [
3459
+ (n(!0), w(E, null, G(e.resizeDirections, (h) => (n(), w("span", {
3460
3460
  key: h,
3461
3461
  class: Q([`image-resizer__handler--${h}`, "image-resizer__handler"]),
3462
3462
  onMousedown: (b) => e.onMouseDown(b, h)
@@ -3472,7 +3472,7 @@ function wr(e, t, a, l, o, i) {
3472
3472
  "popper-class": "el-tiptap-image-popper"
3473
3473
  }, {
3474
3474
  reference: s(() => [...t[1] || (t[1] = [
3475
- V("div", { class: "image-view__body__placeholder" }, null, -1)
3475
+ P("div", { class: "image-view__body__placeholder" }, null, -1)
3476
3476
  ])]),
3477
3477
  default: s(() => [
3478
3478
  r(d, {
@@ -3587,12 +3587,12 @@ function Dr(e, t, a, l, o, i) {
3587
3587
  const d = na, u = Y("node-view-content"), m = Y("node-view-wrapper");
3588
3588
  return n(), p(m, { class: "task-item-wrapper" }, {
3589
3589
  default: s(() => [
3590
- V("li", {
3590
+ P("li", {
3591
3591
  "data-type": e.node?.type.name,
3592
3592
  "data-done": e.done.toString(),
3593
3593
  "data-drag-handle": ""
3594
3594
  }, [
3595
- V("span", Cr, [
3595
+ P("span", Cr, [
3596
3596
  r(d, {
3597
3597
  modelValue: e.done,
3598
3598
  "onUpdate:modelValue": t[0] || (t[0] = (h) => e.done = h)
@@ -3604,7 +3604,7 @@ function Dr(e, t, a, l, o, i) {
3604
3604
  _: 1
3605
3605
  });
3606
3606
  }
3607
- const Ir = /* @__PURE__ */ j(Sr, [["render", Dr]]), $r = Ei.extend({
3607
+ const Ir = /* @__PURE__ */ j(Sr, [["render", Dr]]), $r = Ni.extend({
3608
3608
  addAttributes() {
3609
3609
  return {
3610
3610
  ...this.parent?.(),
@@ -3701,7 +3701,7 @@ const Ir = /* @__PURE__ */ j(Sr, [["render", Dr]]), $r = Ei.extend({
3701
3701
  };
3702
3702
  }
3703
3703
  }
3704
- }), Vr = { class: "table-grid-size-editor" }, Pr = { class: "table-grid-size-editor__body" }, Ar = ["onMouseover", "onMousedown"], Or = { class: "table-grid-size-editor__footer" }, Er = { style: { width: "100%" } }, Nr = { style: { padding: "5px 20px" } };
3704
+ }), Pr = { class: "table-grid-size-editor" }, Vr = { class: "table-grid-size-editor__body" }, Ar = ["onMouseover", "onMousedown"], Or = { class: "table-grid-size-editor__footer" }, Nr = { style: { width: "100%" } }, Er = { style: { padding: "5px 20px" } };
3705
3705
  function Lr(e, t, a, l, o, i) {
3706
3706
  const d = Ye;
3707
3707
  return n(), p(d, {
@@ -3714,18 +3714,18 @@ function Lr(e, t, a, l, o, i) {
3714
3714
  onAfterLeave: e.resetTableGridSize
3715
3715
  }, {
3716
3716
  reference: s(() => [
3717
- V("div", Er, [
3718
- V("div", Nr, O(e.t("editor.extensions.Table.buttons.insert_table")), 1)
3717
+ P("div", Nr, [
3718
+ P("div", Er, O(e.t("editor.extensions.Table.buttons.insert_table")), 1)
3719
3719
  ])
3720
3720
  ]),
3721
3721
  default: s(() => [
3722
- V("div", Vr, [
3723
- V("div", Pr, [
3724
- (n(!0), w(N, null, G(e.tableGridSize.row, (u) => (n(), w("div", {
3722
+ P("div", Pr, [
3723
+ P("div", Vr, [
3724
+ (n(!0), w(E, null, G(e.tableGridSize.row, (u) => (n(), w("div", {
3725
3725
  key: "r" + u,
3726
3726
  class: "table-grid-size-editor__row"
3727
3727
  }, [
3728
- (n(!0), w(N, null, G(e.tableGridSize.col, (m) => (n(), w("div", {
3728
+ (n(!0), w(E, null, G(e.tableGridSize.col, (m) => (n(), w("div", {
3729
3729
  key: "c" + m,
3730
3730
  class: Q([{
3731
3731
  "table-grid-size-editor__cell--selected": m <= e.selectedTableGridSize.col && u <= e.selectedTableGridSize.row
@@ -3733,11 +3733,11 @@ function Lr(e, t, a, l, o, i) {
3733
3733
  onMouseover: (h) => e.selectTableGridSize(u, m),
3734
3734
  onMousedown: (h) => e.confirmCreateTable(u, m)
3735
3735
  }, [...t[1] || (t[1] = [
3736
- V("div", { class: "table-grid-size-editor__cell__inner" }, null, -1)
3736
+ P("div", { class: "table-grid-size-editor__cell__inner" }, null, -1)
3737
3737
  ])], 42, Ar))), 128))
3738
3738
  ]))), 128))
3739
3739
  ]),
3740
- V("div", Or, O(e.selectedTableGridSize.row) + " X " + O(e.selectedTableGridSize.col), 1)
3740
+ P("div", Or, O(e.selectedTableGridSize.row) + " X " + O(e.selectedTableGridSize.col), 1)
3741
3741
  ])
3742
3742
  ]),
3743
3743
  _: 1
@@ -3810,7 +3810,7 @@ function jr(e, t, a, l, o, i) {
3810
3810
  class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
3811
3811
  }, {
3812
3812
  default: s(() => [
3813
- V("span", null, O(e.t("editor.extensions.Table.buttons.add_column_before")), 1)
3813
+ P("span", null, O(e.t("editor.extensions.Table.buttons.add_column_before")), 1)
3814
3814
  ]),
3815
3815
  _: 1
3816
3816
  }, 8, ["onClick", "class"]),
@@ -3819,7 +3819,7 @@ function jr(e, t, a, l, o, i) {
3819
3819
  class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
3820
3820
  }, {
3821
3821
  default: s(() => [
3822
- V("span", null, O(e.t("editor.extensions.Table.buttons.add_column_after")), 1)
3822
+ P("span", null, O(e.t("editor.extensions.Table.buttons.add_column_after")), 1)
3823
3823
  ]),
3824
3824
  _: 1
3825
3825
  }, 8, ["onClick", "class"]),
@@ -3828,7 +3828,7 @@ function jr(e, t, a, l, o, i) {
3828
3828
  class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
3829
3829
  }, {
3830
3830
  default: s(() => [
3831
- V("span", null, O(e.t("editor.extensions.Table.buttons.delete_column")), 1)
3831
+ P("span", null, O(e.t("editor.extensions.Table.buttons.delete_column")), 1)
3832
3832
  ]),
3833
3833
  _: 1
3834
3834
  }, 8, ["onClick", "class"]),
@@ -3838,7 +3838,7 @@ function jr(e, t, a, l, o, i) {
3838
3838
  class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
3839
3839
  }, {
3840
3840
  default: s(() => [
3841
- V("span", null, O(e.t("editor.extensions.Table.buttons.add_row_before")), 1)
3841
+ P("span", null, O(e.t("editor.extensions.Table.buttons.add_row_before")), 1)
3842
3842
  ]),
3843
3843
  _: 1
3844
3844
  }, 8, ["onClick", "class"]),
@@ -3847,7 +3847,7 @@ function jr(e, t, a, l, o, i) {
3847
3847
  class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
3848
3848
  }, {
3849
3849
  default: s(() => [
3850
- V("span", null, O(e.t("editor.extensions.Table.buttons.add_row_after")), 1)
3850
+ P("span", null, O(e.t("editor.extensions.Table.buttons.add_row_after")), 1)
3851
3851
  ]),
3852
3852
  _: 1
3853
3853
  }, 8, ["onClick", "class"]),
@@ -3856,7 +3856,7 @@ function jr(e, t, a, l, o, i) {
3856
3856
  class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
3857
3857
  }, {
3858
3858
  default: s(() => [
3859
- V("span", null, O(e.t("editor.extensions.Table.buttons.delete_row")), 1)
3859
+ P("span", null, O(e.t("editor.extensions.Table.buttons.delete_row")), 1)
3860
3860
  ]),
3861
3861
  _: 1
3862
3862
  }, 8, ["onClick", "class"]),
@@ -3866,7 +3866,7 @@ function jr(e, t, a, l, o, i) {
3866
3866
  class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
3867
3867
  }, {
3868
3868
  default: s(() => [
3869
- V("span", null, O(e.t("editor.extensions.Table.buttons.merge_cells")), 1)
3869
+ P("span", null, O(e.t("editor.extensions.Table.buttons.merge_cells")), 1)
3870
3870
  ]),
3871
3871
  _: 1
3872
3872
  }, 8, ["onClick", "class"]),
@@ -3875,7 +3875,7 @@ function jr(e, t, a, l, o, i) {
3875
3875
  class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
3876
3876
  }, {
3877
3877
  default: s(() => [
3878
- V("span", null, O(e.t("editor.extensions.Table.buttons.split_cell")), 1)
3878
+ P("span", null, O(e.t("editor.extensions.Table.buttons.split_cell")), 1)
3879
3879
  ]),
3880
3880
  _: 1
3881
3881
  }, 8, ["onClick", "class"]),
@@ -3885,7 +3885,7 @@ function jr(e, t, a, l, o, i) {
3885
3885
  class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
3886
3886
  }, {
3887
3887
  default: s(() => [
3888
- V("span", null, O(e.t("editor.extensions.Table.buttons.delete_table")), 1)
3888
+ P("span", null, O(e.t("editor.extensions.Table.buttons.delete_table")), 1)
3889
3889
  ]),
3890
3890
  _: 1
3891
3891
  }, 8, ["onClick", "class"])
@@ -3894,7 +3894,7 @@ function jr(e, t, a, l, o, i) {
3894
3894
  })
3895
3895
  ]),
3896
3896
  default: s(() => [
3897
- V("span", null, [
3897
+ P("span", null, [
3898
3898
  r(d, {
3899
3899
  "is-active": e.isTableActive,
3900
3900
  "enable-tooltip": e.enableTooltip,
@@ -3907,7 +3907,7 @@ function jr(e, t, a, l, o, i) {
3907
3907
  _: 1
3908
3908
  }, 512);
3909
3909
  }
3910
- const Ur = /* @__PURE__ */ j(Br, [["render", jr]]), ul = Ni.extend({
3910
+ const Ur = /* @__PURE__ */ j(Br, [["render", jr]]), ul = Ei.extend({
3911
3911
  addOptions() {
3912
3912
  return {
3913
3913
  ...this.parent?.(),
@@ -4338,7 +4338,7 @@ function ed(e, t, a, l, o, i) {
4338
4338
  ref: "popoverRef"
4339
4339
  }, {
4340
4340
  reference: s(() => [
4341
- V("span", null, [
4341
+ P("span", null, [
4342
4342
  r(m, {
4343
4343
  "enable-tooltip": e.enableTooltip,
4344
4344
  tooltip: e.t("editor.extensions.TextColor.tooltip"),
@@ -4348,12 +4348,12 @@ function ed(e, t, a, l, o, i) {
4348
4348
  ])
4349
4349
  ]),
4350
4350
  default: s(() => [
4351
- V("div", Jr, [
4352
- (n(!0), w(N, null, G(e.colorSet, (b) => (n(), w("div", {
4351
+ P("div", Jr, [
4352
+ (n(!0), w(E, null, G(e.colorSet, (b) => (n(), w("div", {
4353
4353
  key: b,
4354
4354
  class: "color__wrapper"
4355
4355
  }, [
4356
- V("div", {
4356
+ P("div", {
4357
4357
  style: te({
4358
4358
  "background-color": b
4359
4359
  }),
@@ -4363,8 +4363,8 @@ function ed(e, t, a, l, o, i) {
4363
4363
  onClick: R((_) => e.confirmColor(b), ["stop"])
4364
4364
  }, null, 46, Qr)
4365
4365
  ]))), 128)),
4366
- V("div", Xr, [
4367
- V("div", {
4366
+ P("div", Xr, [
4367
+ P("div", {
4368
4368
  class: "color color--remove",
4369
4369
  onMousedown: t[1] || (t[1] = R(() => {
4370
4370
  }, ["prevent"])),
@@ -4372,7 +4372,7 @@ function ed(e, t, a, l, o, i) {
4372
4372
  }, null, 32)
4373
4373
  ])
4374
4374
  ]),
4375
- V("div", Zr, [
4375
+ P("div", Zr, [
4376
4376
  r(d, {
4377
4377
  modelValue: e.colorText,
4378
4378
  "onUpdate:modelValue": t[3] || (t[3] = (b) => e.colorText = b),
@@ -4464,7 +4464,7 @@ function sd(e, t, a, l, o, i) {
4464
4464
  ref: "popoverRef"
4465
4465
  }, {
4466
4466
  reference: s(() => [
4467
- V("span", null, [
4467
+ P("span", null, [
4468
4468
  r(m, {
4469
4469
  "enable-tooltip": e.enableTooltip,
4470
4470
  tooltip: e.t("editor.extensions.TextHighlight.tooltip"),
@@ -4474,12 +4474,12 @@ function sd(e, t, a, l, o, i) {
4474
4474
  ])
4475
4475
  ]),
4476
4476
  default: s(() => [
4477
- V("div", ld, [
4478
- (n(!0), w(N, null, G(e.colorSet, (b) => (n(), w("div", {
4477
+ P("div", ld, [
4478
+ (n(!0), w(E, null, G(e.colorSet, (b) => (n(), w("div", {
4479
4479
  key: b,
4480
4480
  class: "color__wrapper"
4481
4481
  }, [
4482
- V("div", {
4482
+ P("div", {
4483
4483
  style: te({
4484
4484
  "background-color": b
4485
4485
  }),
@@ -4489,8 +4489,8 @@ function sd(e, t, a, l, o, i) {
4489
4489
  onClick: R((_) => e.confirmColor(b), ["stop"])
4490
4490
  }, null, 46, od)
4491
4491
  ]))), 128)),
4492
- V("div", id, [
4493
- V("div", {
4492
+ P("div", id, [
4493
+ P("div", {
4494
4494
  class: "color color--remove",
4495
4495
  onMousedown: t[1] || (t[1] = R(() => {
4496
4496
  }, ["prevent"])),
@@ -4498,7 +4498,7 @@ function sd(e, t, a, l, o, i) {
4498
4498
  }, null, 32)
4499
4499
  ])
4500
4500
  ]),
4501
- V("div", nd, [
4501
+ P("div", nd, [
4502
4502
  r(d, {
4503
4503
  modelValue: e.colorBg,
4504
4504
  "onUpdate:modelValue": t[3] || (t[3] = (b) => e.colorBg = b),
@@ -4596,7 +4596,7 @@ function fd(e, t, a, l, o, i) {
4596
4596
  dropdown: s(() => [
4597
4597
  r(m, { class: "el-tiptap-dropdown-menu" }, {
4598
4598
  default: s(() => [
4599
- (n(!0), w(N, null, G(e.fontFamilies, (b) => (n(), p(u, {
4599
+ (n(!0), w(E, null, G(e.fontFamilies, (b) => (n(), p(u, {
4600
4600
  key: b,
4601
4601
  command: b,
4602
4602
  class: Q([{
@@ -4604,7 +4604,7 @@ function fd(e, t, a, l, o, i) {
4604
4604
  }, "el-tiptap-dropdown-menu__item"])
4605
4605
  }, {
4606
4606
  default: s(() => [
4607
- V("span", {
4607
+ P("span", {
4608
4608
  "data-font": b,
4609
4609
  style: te({ "font-family": b })
4610
4610
  }, O(b), 13, md)
@@ -4616,7 +4616,7 @@ function fd(e, t, a, l, o, i) {
4616
4616
  })
4617
4617
  ]),
4618
4618
  default: s(() => [
4619
- V("span", null, [
4619
+ P("span", null, [
4620
4620
  r(d, {
4621
4621
  "enable-tooltip": e.enableTooltip,
4622
4622
  tooltip: e.t("editor.extensions.FontType.tooltip"),
@@ -4740,11 +4740,11 @@ function _d(e, t, a, l, o, i) {
4740
4740
  }, "el-tiptap-dropdown-menu__item"])
4741
4741
  }, {
4742
4742
  default: s(() => [
4743
- V("span", wd, O(e.t("editor.extensions.FontSize.default")), 1)
4743
+ P("span", wd, O(e.t("editor.extensions.FontSize.default")), 1)
4744
4744
  ]),
4745
4745
  _: 1
4746
4746
  }, 8, ["command", "class"]),
4747
- (n(!0), w(N, null, G(e.fontSizes, (b) => (n(), p(u, {
4747
+ (n(!0), w(E, null, G(e.fontSizes, (b) => (n(), p(u, {
4748
4748
  key: b,
4749
4749
  command: b,
4750
4750
  class: Q([{
@@ -4752,7 +4752,7 @@ function _d(e, t, a, l, o, i) {
4752
4752
  }, "el-tiptap-dropdown-menu__item"])
4753
4753
  }, {
4754
4754
  default: s(() => [
4755
- V("span", { "data-font-size": b }, O(b), 9, Fd)
4755
+ P("span", { "data-font-size": b }, O(b), 9, Fd)
4756
4756
  ]),
4757
4757
  _: 2
4758
4758
  }, 1032, ["command", "class"]))), 128))
@@ -4761,7 +4761,7 @@ function _d(e, t, a, l, o, i) {
4761
4761
  })
4762
4762
  ]),
4763
4763
  default: s(() => [
4764
- V("span", null, [
4764
+ P("span", null, [
4765
4765
  r(d, {
4766
4766
  "enable-tooltip": e.enableTooltip,
4767
4767
  tooltip: e.t("editor.extensions.FontSize.tooltip"),
@@ -4867,7 +4867,7 @@ const Sd = /* @__PURE__ */ j(vd, [["render", _d]]), kd = He.create({
4867
4867
  }
4868
4868
  });
4869
4869
  function Dd(e, t, a, l, o, i) {
4870
- const d = z, u = Ie, m = pt, h = Et, b = at, _ = St, C = ut, c = oe, M = we;
4870
+ const d = z, u = Ie, m = pt, h = Nt, b = at, _ = St, C = ut, c = oe, M = we;
4871
4871
  return n(), w("div", null, [
4872
4872
  r(d, {
4873
4873
  "is-active": e.editor.isActive("youtube"),
@@ -5033,7 +5033,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5033
5033
  }
5034
5034
  };
5035
5035
  }
5036
- }), Vd = { class: "ml-2 text-3" }, Pd = ["src"], Ad = /* @__PURE__ */ L({
5036
+ }), Pd = { class: "ml-2 text-3" }, Vd = ["src"], Ad = /* @__PURE__ */ L({
5037
5037
  __name: "SdUploadFile",
5038
5038
  props: {
5039
5039
  uploadType: String,
@@ -5083,11 +5083,11 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5083
5083
  d.userState.crudGetAll({ sdProvider: u, totalEnable: !0 }, (F) => {
5084
5084
  o.total = F.total, o.offset = F.offset, o.totalPage = F.data.length;
5085
5085
  const I = F.data;
5086
- i.value = [], I.forEach((P) => {
5086
+ i.value = [], I.forEach((V) => {
5087
5087
  i.value.push({
5088
- name: P.name,
5089
- url: P.file_path,
5090
- response: P,
5088
+ name: V.name,
5089
+ url: V.file_path,
5090
+ response: V,
5091
5091
  percentage: 100
5092
5092
  });
5093
5093
  });
@@ -5101,16 +5101,16 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5101
5101
  m.value = 1, h();
5102
5102
  }
5103
5103
  const y = (F) => {
5104
- const I = F.type, P = F.name;
5104
+ const I = F.type, V = F.name;
5105
5105
  let T = I.split("/")[1] || "";
5106
5106
  if (!T || T.length > 5) {
5107
- const Z = P.split(".");
5107
+ const Z = V.split(".");
5108
5108
  T = Z.length > 1 ? Z.pop().toLowerCase() : "none";
5109
5109
  }
5110
5110
  if (["zip", "rar", "csv", "doc", "docx", "xls", "xlsx", "pdf"].includes(T)) {
5111
5111
  if (F.size / 1024 / 1024 > 15)
5112
- return E.error("Upload File size can not exceed 15MB!"), !1;
5113
- } else return E.error("Upload File must be zip, rar, csv, doc, docx, xls, xlsx, pdf format!"), !1;
5112
+ return N.error("Upload File size can not exceed 15MB!"), !1;
5113
+ } else return N.error("Upload File must be zip, rar, csv, doc, docx, xls, xlsx, pdf format!"), !1;
5114
5114
  return !0;
5115
5115
  }, k = (F, I) => F.percentage == 100 ? he.confirm(`Are you sure you want to delete ${F.name} ?`, "Confirmation", {
5116
5116
  confirmButtonText: "OK",
@@ -5121,13 +5121,13 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5121
5121
  () => !1
5122
5122
  ) : !0, A = (F) => {
5123
5123
  if (F.percentage == 100) {
5124
- const I = F.response, P = {
5124
+ const I = F.response, V = {
5125
5125
  fileName: I.file_name ? I.file_name : I.fileName ? I.fileName : "",
5126
5126
  fileGroup: I.file_group ? I.file_group : I.fileGroup ? I.fileGroup : "",
5127
5127
  fileId: I._id ? I._id : I.fileId ? I.fileId : ""
5128
5128
  };
5129
5129
  fe.delete(`${d.userState.host}${o.type[b.value].deleteUrl}`, {
5130
- data: P,
5130
+ data: V,
5131
5131
  headers: {
5132
5132
  Authorization: `Bearer ${d.userState.user?.token}`
5133
5133
  }
@@ -5137,7 +5137,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5137
5137
  console.log(T);
5138
5138
  });
5139
5139
  }
5140
- }, q = (F, I, P) => {
5140
+ }, q = (F, I, V) => {
5141
5141
  o.total++, o.totalPage++, i.value[i.value.length - 1] = {
5142
5142
  name: F.fileName,
5143
5143
  url: F.filePath,
@@ -5146,8 +5146,8 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5146
5146
  };
5147
5147
  };
5148
5148
  return (F, I) => {
5149
- const P = oe, T = ze, H = Ia, Z = ia, W = we;
5150
- return n(), w(N, null, [
5149
+ const V = oe, T = ze, H = Ia, Z = ia, W = we;
5150
+ return n(), w(E, null, [
5151
5151
  r(H, {
5152
5152
  action: e.userState.host + o.type[b.value].uploadUrl,
5153
5153
  headers: {
@@ -5157,7 +5157,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5157
5157
  data: l,
5158
5158
  "list-type": "text",
5159
5159
  "file-list": i.value,
5160
- "onUpdate:fileList": I[0] || (I[0] = (Ee) => i.value = Ee),
5160
+ "onUpdate:fileList": I[0] || (I[0] = (Ne) => i.value = Ne),
5161
5161
  disabled: !!e.readonly,
5162
5162
  "on-preview": e.handlePreview,
5163
5163
  "on-remove": A,
@@ -5166,7 +5166,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5166
5166
  "before-upload": y
5167
5167
  }, {
5168
5168
  trigger: s(() => [
5169
- r(P, { type: "primary" }, {
5169
+ r(V, { type: "primary" }, {
5170
5170
  default: s(() => [...I[3] || (I[3] = [
5171
5171
  S("Click to upload", -1)
5172
5172
  ])]),
@@ -5174,7 +5174,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5174
5174
  })
5175
5175
  ]),
5176
5176
  tip: s(() => [
5177
- V("div", null, [
5177
+ P("div", null, [
5178
5178
  r(T, {
5179
5179
  style: { "font-size": "12px" },
5180
5180
  type: "warning"
@@ -5187,7 +5187,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5187
5187
  ])
5188
5188
  ]),
5189
5189
  default: s(() => [
5190
- r(P, {
5190
+ r(V, {
5191
5191
  class: "ml-1",
5192
5192
  style: { "margin-top": "0px" },
5193
5193
  type: "info",
@@ -5195,14 +5195,14 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5195
5195
  icon: "Refresh",
5196
5196
  onClick: f
5197
5197
  }),
5198
- V("span", Vd, "Showing " + O(C.value) + "-" + O(c.value) + " of " + O(_.value) + " items.", 1)
5198
+ P("span", Pd, "Showing " + O(C.value) + "-" + O(c.value) + " of " + O(_.value) + " items.", 1)
5199
5199
  ]),
5200
5200
  _: 1
5201
5201
  }, 8, ["action", "headers", "data", "file-list", "disabled", "on-preview"]),
5202
5202
  o.total > (u.options?.limit || 0) ? (n(), p(Z, {
5203
5203
  key: 0,
5204
5204
  "current-page": m.value,
5205
- "onUpdate:currentPage": I[1] || (I[1] = (Ee) => m.value = Ee),
5205
+ "onUpdate:currentPage": I[1] || (I[1] = (Ne) => m.value = Ne),
5206
5206
  "page-size": d.perPage,
5207
5207
  onCurrentChange: M,
5208
5208
  class: "mt-1",
@@ -5212,14 +5212,14 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5212
5212
  }, null, 8, ["current-page", "page-size", "total"])) : g("", !0),
5213
5213
  r(W, {
5214
5214
  modelValue: a.value,
5215
- "onUpdate:modelValue": I[2] || (I[2] = (Ee) => a.value = Ee)
5215
+ "onUpdate:modelValue": I[2] || (I[2] = (Ne) => a.value = Ne)
5216
5216
  }, {
5217
5217
  default: s(() => [
5218
- V("img", {
5218
+ P("img", {
5219
5219
  "w-full": "",
5220
5220
  src: t.value,
5221
5221
  alt: "Preview Image"
5222
- }, null, 8, Pd)
5222
+ }, null, 8, Vd)
5223
5223
  ]),
5224
5224
  _: 1
5225
5225
  }, 8, ["modelValue"])
@@ -5290,7 +5290,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5290
5290
  }
5291
5291
  }
5292
5292
  });
5293
- function Ed(e, t, a, l, o, i) {
5293
+ function Nd(e, t, a, l, o, i) {
5294
5294
  const d = z, u = Ad, m = we;
5295
5295
  return n(), w("div", null, [
5296
5296
  r(d, {
@@ -5320,14 +5320,14 @@ function Ed(e, t, a, l, o, i) {
5320
5320
  }, 8, ["modelValue", "width"])
5321
5321
  ]);
5322
5322
  }
5323
- const Nd = /* @__PURE__ */ j(Od, [["render", Ed]]), Ld = He.create({
5323
+ const Ed = /* @__PURE__ */ j(Od, [["render", Nd]]), Ld = He.create({
5324
5324
  name: "UploadFile",
5325
5325
  addOptions() {
5326
5326
  return {
5327
5327
  ...this.parent?.(),
5328
5328
  button({ editor: e }) {
5329
5329
  return {
5330
- component: Nd,
5330
+ component: Ed,
5331
5331
  componentProps: {
5332
5332
  editor: e
5333
5333
  }
@@ -5599,7 +5599,7 @@ function xd(e, t, a, l, o, i) {
5599
5599
  class: "el-tiptap-dropdown-menu"
5600
5600
  }, {
5601
5601
  default: s(() => [
5602
- (n(!0), w(N, null, G(e.lineHeights, (b) => (n(), p(u, {
5602
+ (n(!0), w(E, null, G(e.lineHeights, (b) => (n(), p(u, {
5603
5603
  key: b,
5604
5604
  command: b,
5605
5605
  class: Q([{
@@ -5607,7 +5607,7 @@ function xd(e, t, a, l, o, i) {
5607
5607
  }, "el-tiptap-dropdown-menu__item"])
5608
5608
  }, {
5609
5609
  default: s(() => [
5610
- V("span", null, O(b), 1)
5610
+ P("span", null, O(b), 1)
5611
5611
  ]),
5612
5612
  _: 2
5613
5613
  }, 1032, ["command", "class"]))), 128))
@@ -5616,7 +5616,7 @@ function xd(e, t, a, l, o, i) {
5616
5616
  })
5617
5617
  ]),
5618
5618
  default: s(() => [
5619
- V("span", null, [
5619
+ P("span", null, [
5620
5620
  r(d, {
5621
5621
  "enable-tooltip": e.enableTooltip,
5622
5622
  tooltip: e.t("editor.extensions.LineHeight.tooltip"),
@@ -5876,12 +5876,12 @@ function ru(e, t, a, l, o, i) {
5876
5876
  default: s(() => [
5877
5877
  r(u, ae(e.node.attrs, { dark: e.isDark }), {
5878
5878
  default: s(() => [
5879
- (n(!0), w(N, null, G(e.node.content.content, (h, b) => (n(), w(N, null, [
5879
+ (n(!0), w(E, null, G(e.node.content.content, (h, b) => (n(), w(E, null, [
5880
5880
  h.type.name === "ElIcon" ? (n(), p(d, {
5881
5881
  key: 0,
5882
5882
  "icon-name": h.attrs.icon,
5883
5883
  class: "mr-1"
5884
- }, null, 8, ["icon-name"])) : (n(), w(N, { key: 1 }, [
5884
+ }, null, 8, ["icon-name"])) : (n(), w(E, { key: 1 }, [
5885
5885
  S(O(e.getContent(h.content.content)), 1)
5886
5886
  ], 64))
5887
5887
  ], 64))), 256))
@@ -5972,12 +5972,12 @@ const du = /* @__PURE__ */ j(su, [["render", ru]]), Sl = lt.create({
5972
5972
  }
5973
5973
  });
5974
5974
  function pu(e, t, a, l, o, i) {
5975
- const d = oe, u = Vl, m = Y("node-view-wrapper");
5975
+ const d = oe, u = Pl, m = Y("node-view-wrapper");
5976
5976
  return n(), p(m, { class: "vue-component" }, {
5977
5977
  default: s(() => [
5978
- r(u, Va(Pa(e.node.attrs)), {
5978
+ r(u, Pa(Va(e.node.attrs)), {
5979
5979
  default: s(() => [
5980
- (n(!0), w(N, null, G(e.node.content.content, (h, b) => (n(), w(N, null, [
5980
+ (n(!0), w(E, null, G(e.node.content.content, (h, b) => (n(), w(E, null, [
5981
5981
  h.type.name === "ElButton" ? (n(), p(d, ae({
5982
5982
  key: 0,
5983
5983
  ref_for: !0
@@ -6092,7 +6092,7 @@ const cu = /* @__PURE__ */ j(fu, [["render", hu]]), Cl = lt.create({
6092
6092
  }
6093
6093
  });
6094
6094
  function gu(e, t, a, l, o, i) {
6095
- const d = Nt, u = Y("node-view-wrapper");
6095
+ const d = Et, u = Y("node-view-wrapper");
6096
6096
  return n(), p(u, { class: "vue-component" }, {
6097
6097
  default: s(() => [
6098
6098
  r(d, ae(e.node.attrs, { dark: e.isDark }), {
@@ -6168,7 +6168,7 @@ function wu(e, t, a, l, o, i) {
6168
6168
  const d = vt, u = Y("node-view-wrapper");
6169
6169
  return n(), p(u, { class: "vue-component" }, {
6170
6170
  default: s(() => [
6171
- r(d, Va(Pa(e.node.attrs)), null, 16)
6171
+ r(d, Pa(Va(e.node.attrs)), null, 16)
6172
6172
  ]),
6173
6173
  _: 1
6174
6174
  });
@@ -6227,7 +6227,7 @@ function Su(e, t, a, l, o, i) {
6227
6227
  const d = Ta, u = Y("node-view-wrapper");
6228
6228
  return n(), p(u, { class: "vue-component" }, {
6229
6229
  default: s(() => [
6230
- r(d, Va(Pa(e.node.attrs)), null, 16)
6230
+ r(d, Pa(Va(e.node.attrs)), null, 16)
6231
6231
  ]),
6232
6232
  _: 1
6233
6233
  });
@@ -6888,7 +6888,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
6888
6888
  return o.dataid = l.data.id, o._id = l.data.id, o;
6889
6889
  } else
6890
6890
  return null;
6891
- }).catch((l) => null), Vu = async (e, t, a) => await fe.delete(`${a.host}/widget/sdform/delete-empty`, {
6891
+ }).catch((l) => null), Pu = async (e, t, a) => await fe.delete(`${a.host}/widget/sdform/delete-empty`, {
6892
6892
  headers: {
6893
6893
  Authorization: `Bearer ${a.user?.token}`
6894
6894
  },
@@ -6917,7 +6917,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
6917
6917
  Authorization: `Bearer ${a.user?.token}`
6918
6918
  },
6919
6919
  data: { formId: e, dataId: t }
6920
- }).then((o) => !0).catch((o) => !1), Pu = [
6920
+ }).then((o) => !0).catch((o) => !1), Vu = [
6921
6921
  "_id",
6922
6922
  "xparentx",
6923
6923
  "xsitex",
@@ -7075,7 +7075,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
7075
7075
  }
7076
7076
  const l = t.roles;
7077
7077
  return a = qt(l), a;
7078
- }, Pe = (e, t, a, l = "") => {
7078
+ }, Ve = (e, t, a, l = "") => {
7079
7079
  if (e != null) {
7080
7080
  if (t === "xrstatx")
7081
7081
  return e == 0 ? "Empty" : e == 1 ? "Save Draft" : e == 2 ? "Submited" : e == 3 ? "Deleted" : e;
@@ -7171,7 +7171,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
7171
7171
  break;
7172
7172
  }
7173
7173
  return i.join(", ");
7174
- }, Eu = L({
7174
+ }, Nu = L({
7175
7175
  name: "SdGridColumnDynamic",
7176
7176
  components: {
7177
7177
  // SdHtmlEditor,
@@ -7272,7 +7272,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
7272
7272
  for (const c in _)
7273
7273
  if (Object.prototype.hasOwnProperty.call(_, c)) {
7274
7274
  let f = _[c][h];
7275
- f && (this.rawValue ? C.push(f) : C.push(Pe(f, a, l)));
7275
+ f && (this.rawValue ? C.push(f) : C.push(Ve(f, a, l)));
7276
7276
  }
7277
7277
  return C.join(", ");
7278
7278
  }
@@ -7280,12 +7280,12 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
7280
7280
  let u = a;
7281
7281
  this.subIndex > -1 && (u = `${this.parentName}.${this.subIndex}.${this.fieldName}`);
7282
7282
  let m = ve(t, u);
7283
- return this.rawValue ? m ?? null : Pe(m, a, l, o);
7283
+ return this.rawValue ? m ?? null : Ve(m, a, l, o);
7284
7284
  }
7285
7285
  }
7286
7286
  });
7287
- function Nu(e, t, a, l, o, i) {
7288
- const d = ce, u = oe, m = Y("sd-value-widget", !0), h = qe, b = Lt, _ = Ye, C = vt, c = Vo, M = ze, f = sa, y = Ia, k = Nt, A = Ze, q = ga, F = Po;
7287
+ function Eu(e, t, a, l, o, i) {
7288
+ const d = ce, u = oe, m = Y("sd-value-widget", !0), h = qe, b = Lt, _ = Ye, C = vt, c = Po, M = ze, f = sa, y = Ia, k = Et, A = Ze, q = ga, F = Vo;
7289
7289
  return e.schema.component === "sub-form" && !e.rawValue ? (n(), p(_, {
7290
7290
  key: 0,
7291
7291
  width: e.subformWidth,
@@ -7308,7 +7308,7 @@ function Nu(e, t, a, l, o, i) {
7308
7308
  data: e.dataDispaly[e.fieldName]
7309
7309
  }, {
7310
7310
  default: s(() => [
7311
- e.schema.subField ? (n(!0), w(N, { key: 0 }, G(e.schema.subField, (I) => (n(), p(h, {
7311
+ e.schema.subField ? (n(!0), w(E, { key: 0 }, G(e.schema.subField, (I) => (n(), p(h, {
7312
7312
  prop: I.fieldName,
7313
7313
  "column-key": I.fieldName,
7314
7314
  "min-width": 80,
@@ -7318,7 +7318,7 @@ function Nu(e, t, a, l, o, i) {
7318
7318
  sortable: e.getschemaValue(e.schema.subField, "sortable", I.fieldName, !1),
7319
7319
  fixed: e.getschemaValue(e.schema.subField, "fixed", I.fieldName, !1)
7320
7320
  }, {
7321
- default: s((P) => [
7321
+ default: s((V) => [
7322
7322
  r(m, {
7323
7323
  "sdform-model": e.sdformModel,
7324
7324
  "sub-schema": e.schema.subField,
@@ -7326,7 +7326,7 @@ function Nu(e, t, a, l, o, i) {
7326
7326
  "parent-name": e.fieldName,
7327
7327
  "subform-width": e.subformWidth,
7328
7328
  "raw-data": e.rawData,
7329
- "sub-index": P.$index,
7329
+ "sub-index": V.$index,
7330
7330
  "raw-value": e.rawValue,
7331
7331
  "user-state": e.userState
7332
7332
  }, null, 8, ["sdform-model", "sub-schema", "field-name", "parent-name", "subform-width", "raw-data", "sub-index", "raw-value", "user-state"])
@@ -7343,7 +7343,7 @@ function Nu(e, t, a, l, o, i) {
7343
7343
  wrap: ""
7344
7344
  }, {
7345
7345
  default: s(() => [
7346
- e.dataDispaly[e.fieldName] ? (n(!0), w(N, { key: 0 }, G(e.dataDispaly[e.fieldName], (I, P) => (n(), p(C, {
7346
+ e.dataDispaly[e.fieldName] ? (n(!0), w(E, { key: 0 }, G(e.dataDispaly[e.fieldName], (I, V) => (n(), p(C, {
7347
7347
  ref_for: !0,
7348
7348
  ref: "imageRef",
7349
7349
  style: { width: "40px", height: "40px" },
@@ -7358,7 +7358,7 @@ function Nu(e, t, a, l, o, i) {
7358
7358
  }, null, 8, ["src", "preview-src-list", "initial-index"]))), 256)) : g("", !0)
7359
7359
  ]),
7360
7360
  _: 1
7361
- })) : e.schema.component === "file-upload-input" && !e.rawValue ? (n(), w(N, { key: 2 }, [
7361
+ })) : e.schema.component === "file-upload-input" && !e.rawValue ? (n(), w(E, { key: 2 }, [
7362
7362
  e.dataDispaly[e.fieldName] ? (n(), p(y, {
7363
7363
  key: 0,
7364
7364
  "file-list": e.dataDispaly[e.fieldName],
@@ -7397,8 +7397,8 @@ function Nu(e, t, a, l, o, i) {
7397
7397
  ]),
7398
7398
  _: 1
7399
7399
  }, 8, ["file-list"])) : g("", !0)
7400
- ], 64)) : e.schema.component === "tags-input" ? (n(), w(N, { key: 3 }, [
7401
- e.dataDispaly[e.fieldName] ? (n(!0), w(N, { key: 0 }, G(e.dataDispaly[e.fieldName], (I) => (n(), p(k, {
7400
+ ], 64)) : e.schema.component === "tags-input" ? (n(), w(E, { key: 3 }, [
7401
+ e.dataDispaly[e.fieldName] ? (n(!0), w(E, { key: 0 }, G(e.dataDispaly[e.fieldName], (I) => (n(), p(k, {
7402
7402
  key: I,
7403
7403
  type: e.getTagType(e.fieldSetting),
7404
7404
  effect: e.getTagEffect(e.fieldSetting),
@@ -7409,13 +7409,13 @@ function Nu(e, t, a, l, o, i) {
7409
7409
  ]),
7410
7410
  _: 2
7411
7411
  }, 1032, ["type", "effect"]))), 128)) : g("", !0)
7412
- ], 64)) : e.schema.component === "svg-input" && !e.rawValue ? (n(), w(N, { key: 4 }, [
7412
+ ], 64)) : e.schema.component === "svg-input" && !e.rawValue ? (n(), w(E, { key: 4 }, [
7413
7413
  e.dataDispaly[e.fieldName] ? (n(), p(A, {
7414
7414
  key: 0,
7415
7415
  "svg-data": e.dataDispaly[e.fieldName],
7416
7416
  class: "text-7"
7417
7417
  }, null, 8, ["svg-data"])) : g("", !0)
7418
- ], 64)) : e.schema.component === "html-input" && !e.rawValue ? (n(), w(N, { key: 5 }, [
7418
+ ], 64)) : e.schema.component === "html-input" && !e.rawValue ? (n(), w(E, { key: 5 }, [
7419
7419
  e.dataDispaly[e.fieldName] ? (n(), p(q, {
7420
7420
  key: 0,
7421
7421
  modelValue: e.dataDispaly[e.fieldName],
@@ -7424,15 +7424,15 @@ function Nu(e, t, a, l, o, i) {
7424
7424
  readonly: !0,
7425
7425
  "user-state": e.userState
7426
7426
  }, null, 8, ["modelValue", "user-state"])) : g("", !0)
7427
- ], 64)) : e.schema.component === "rate-input" && !e.rawValue ? (n(), w(N, { key: 6 }, [
7427
+ ], 64)) : e.schema.component === "rate-input" && !e.rawValue ? (n(), w(E, { key: 6 }, [
7428
7428
  e.dataDispaly[e.fieldName] ? (n(), p(F, ae({
7429
7429
  key: 0,
7430
7430
  modelValue: e.dataDispaly[e.fieldName],
7431
7431
  "onUpdate:modelValue": t[2] || (t[2] = (I) => e.dataDispaly[e.fieldName] = I),
7432
7432
  disabled: ""
7433
7433
  }, e.schema.inputOptions ? e.schema.inputOptions : {}), null, 16, ["modelValue"])) : g("", !0)
7434
- ], 64)) : (n(), w(N, { key: 7 }, [
7435
- e.rawValue ? (n(), w(N, { key: 1 }, [
7434
+ ], 64)) : (n(), w(E, { key: 7 }, [
7435
+ e.rawValue ? (n(), w(E, { key: 1 }, [
7436
7436
  S(O(e.getValue(e.sdformModel.form_db.schema, e.rawData, e.fieldPath, e.sdformModel)), 1)
7437
7437
  ], 64)) : (n(), p(M, {
7438
7438
  key: 0,
@@ -7448,7 +7448,7 @@ function Nu(e, t, a, l, o, i) {
7448
7448
  }, 8, ["style", "type", "truncated", "line-clamp"]))
7449
7449
  ], 64));
7450
7450
  }
7451
- const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-6f6b7a15"]]), Lu = L({
7451
+ const Ht = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15"]]), Lu = L({
7452
7452
  name: "SdUiListView",
7453
7453
  components: {
7454
7454
  // SdCrudPopupGrid,
@@ -7690,7 +7690,7 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-6f6b7a15
7690
7690
  let a = {}, l = this.sdformModel.form_db.schema;
7691
7691
  for (const o in l) {
7692
7692
  let i = ve(t, o);
7693
- a[`{{${o}}}`] = Pe(i, o, this.sdformModel);
7693
+ a[`{{${o}}}`] = Ve(i, o, this.sdformModel);
7694
7694
  }
7695
7695
  if (this.customValue) {
7696
7696
  for (const o in this.customValue)
@@ -7732,9 +7732,9 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-6f6b7a15
7732
7732
  this.initForm(this.userState.formStore[this.formId]), this.loadEnable = !0;
7733
7733
  else if (this.useUserState.user) {
7734
7734
  const e = await De(this.formId, this.useUserState);
7735
- e.response && e.data ? (this.initForm(e.data), this.loadEnable = !0) : E.warning(e.message);
7735
+ e.response && e.data ? (this.initForm(e.data), this.loadEnable = !0) : N.warning(e.message);
7736
7736
  } else
7737
- E.warning("Unauthorized");
7737
+ N.warning("Unauthorized");
7738
7738
  this.sdFunc = {
7739
7739
  subFormOpen: this.subFormOpen,
7740
7740
  handleCancel: this.handleCancel,
@@ -7743,7 +7743,7 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-6f6b7a15
7743
7743
  handleView: this.handleView,
7744
7744
  userState: this.userState,
7745
7745
  params: this.params,
7746
- ElMessage: E,
7746
+ ElMessage: N,
7747
7747
  sdformModel: this.sdformModel,
7748
7748
  wsConn: this.wsConn
7749
7749
  };
@@ -7755,7 +7755,7 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-6f6b7a15
7755
7755
  this.defaultParams = { ...t, ...e }, this.dpFormData.params = D(this.defaultParams), this.noMore || this.getDataList();
7756
7756
  },
7757
7757
  initForm(e) {
7758
- 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 = "http://127.0.0.1:3005/api", 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", ...Ce, 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 = pe.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 : [];
7758
+ 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", ...Ce, 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 = pe.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 : [];
7759
7759
  const t = D(this.dpFormData.params), a = D(this.params);
7760
7760
  this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: ue.DESC }]), this.noMore || this.getDataList(), this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, (l) => {
7761
7761
  if (l.from != "server" && l.from != this.userState.user?.username) {
@@ -7805,7 +7805,7 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-6f6b7a15
7805
7805
  }
7806
7806
  this.preLoading = !1;
7807
7807
  } else
7808
- E.warning(a.message), this.preLoading = !1;
7808
+ N.warning(a.message), this.preLoading = !1;
7809
7809
  },
7810
7810
  async nextLoad2() {
7811
7811
  this.buildState || this.getDataList();
@@ -7865,18 +7865,18 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-6f6b7a15
7865
7865
  try {
7866
7866
  this.afterDeleteForm.call(this.sdFunc, e);
7867
7867
  } catch (i) {
7868
- E.error(i.message);
7868
+ N.error(i.message);
7869
7869
  }
7870
- E.success("Delete completed.");
7870
+ N.success("Delete completed.");
7871
7871
  } else
7872
- E.warning("Unable to remove data");
7872
+ N.warning("Unable to remove data");
7873
7873
  }).catch((o) => {
7874
7874
  console.log(o);
7875
7875
  });
7876
7876
  },
7877
7877
  getValue(e, t) {
7878
7878
  let a = ve(e, t);
7879
- return a ? Pe(a, t, this.sdformModel) : "";
7879
+ return a ? Ve(a, t, this.sdformModel) : "";
7880
7880
  },
7881
7881
  getSchema(e) {
7882
7882
  return this.providerType === "FORM" ? this.sdformModel.form_db.schema[e] : this.sdformModel.form_db && this.sdformModel.form_db.schema ? this.sdformModel.form_db.schema[e] : {};
@@ -7977,10 +7977,10 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-6f6b7a15
7977
7977
  class: "thumbnail-actions"
7978
7978
  };
7979
7979
  function $p(e, t, a, l, o, i) {
7980
- const d = Ze, u = ce, m = Y("Loading"), h = Ge, b = oe, _ = Y("search"), C = Ie, c = Ta, M = Ht, f = ze, y = Pl, k = Ao, A = at, q = Y("Picture"), F = vt, I = Ma;
7981
- return n(), w(N, null, [
7980
+ const d = Ze, u = ce, m = Y("Loading"), h = Ge, b = oe, _ = Y("search"), C = Ie, c = Ta, M = Ht, f = ze, y = Vl, k = Ao, A = at, q = Y("Picture"), F = vt, I = Ma;
7981
+ return n(), w(E, null, [
7982
7982
  e.listType === "listview" ? (n(), w("div", Bu, [
7983
- V("div", ju, [
7983
+ P("div", ju, [
7984
7984
  e.titleEnable ? (n(), w("span", Uu, [
7985
7985
  e.iconForm != "" ? (n(), p(d, {
7986
7986
  key: 0,
@@ -8008,7 +8008,7 @@ function $p(e, t, a, l, o, i) {
8008
8008
  e.searchFields ? (n(), w("div", zu, [
8009
8009
  r(C, {
8010
8010
  modelValue: e.searchText,
8011
- "onUpdate:modelValue": t[0] || (t[0] = (P) => e.searchText = P),
8011
+ "onUpdate:modelValue": t[0] || (t[0] = (V) => e.searchText = V),
8012
8012
  placeholder: e.searchPlaceholder,
8013
8013
  clearable: "",
8014
8014
  onChange: e.handleSearch,
@@ -8051,13 +8051,13 @@ function $p(e, t, a, l, o, i) {
8051
8051
  style: te(`overflow: auto; min-height: 100px; height: ${e.height}`)
8052
8052
  }, {
8053
8053
  default: s(() => [
8054
- (n(!0), w(N, null, G(e.rawData, (P, T) => (n(), w(N, {
8055
- key: P._id
8054
+ (n(!0), w(E, null, G(e.rawData, (V, T) => (n(), w(E, {
8055
+ key: V._id
8056
8056
  }, [
8057
- e.groupField && e.groupValue[P._id] ? (n(), w("li", Hu, O(e.groupValue[P._id]), 1)) : g("", !0),
8058
- V("li", {
8057
+ e.groupField && e.groupValue[V._id] ? (n(), w("li", Hu, O(e.groupValue[V._id]), 1)) : g("", !0),
8058
+ P("li", {
8059
8059
  class: "list-item",
8060
- onClick: (H) => e.handleClick(P, T)
8060
+ onClick: (H) => e.handleClick(V, T)
8061
8061
  }, [
8062
8062
  e.iconField ? (n(), w("span", xu, [
8063
8063
  r(c, {
@@ -8065,11 +8065,11 @@ function $p(e, t, a, l, o, i) {
8065
8065
  fit: "cover",
8066
8066
  style: te(`width: ${e.iconWigth}px; height: ${e.iconWigth}px`),
8067
8067
  icon: "Picture",
8068
- src: e.getImage(P, e.iconField)
8068
+ src: e.getImage(V, e.iconField)
8069
8069
  }, null, 8, ["style", "src"])
8070
8070
  ])) : g("", !0),
8071
- V("span", Ku, [
8072
- V("div", Gu, [
8071
+ P("span", Ku, [
8072
+ P("div", Gu, [
8073
8073
  r(f, { truncated: "" }, {
8074
8074
  default: s(() => [
8075
8075
  e.titleField ? (n(), p(M, {
@@ -8078,49 +8078,49 @@ function $p(e, t, a, l, o, i) {
8078
8078
  "field-name": e.titleField,
8079
8079
  "field-setting": e.getSchema(e.titleField),
8080
8080
  "subform-width": e.subformWidth,
8081
- "raw-data": P,
8081
+ "raw-data": V,
8082
8082
  "user-state": e.userState
8083
8083
  }, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"])) : (n(), w("span", {
8084
8084
  key: 1,
8085
- innerHTML: e.htmlValue(e.titleContent, P)
8085
+ innerHTML: e.htmlValue(e.titleContent, V)
8086
8086
  }, null, 8, Yu))
8087
8087
  ]),
8088
8088
  _: 2
8089
8089
  }, 1024)
8090
8090
  ]),
8091
- V("div", Ju, [
8091
+ P("div", Ju, [
8092
8092
  e.detailContent ? (n(), w("span", {
8093
8093
  key: 0,
8094
- innerHTML: e.htmlValue(e.detailContent, P)
8094
+ innerHTML: e.htmlValue(e.detailContent, V)
8095
8095
  }, null, 8, Qu)) : g("", !0)
8096
8096
  ])
8097
8097
  ]),
8098
8098
  e.statusField ? (n(), w("span", {
8099
8099
  key: 1,
8100
8100
  class: "list-status",
8101
- style: te({ color: e.colorField && P[e.colorField] ? P[e.colorField] : void 0 })
8101
+ style: te({ color: e.colorField && V[e.colorField] ? V[e.colorField] : void 0 })
8102
8102
  }, [
8103
8103
  r(M, {
8104
8104
  "sdform-model": e.sdformModel,
8105
8105
  "field-name": e.statusField,
8106
8106
  "field-setting": e.getSchema(e.statusField),
8107
8107
  "subform-width": e.subformWidth,
8108
- "raw-data": P,
8108
+ "raw-data": V,
8109
8109
  "user-state": e.userState
8110
8110
  }, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"])
8111
8111
  ], 4)) : g("", !0),
8112
8112
  e.statusContent ? (n(), w("span", {
8113
8113
  key: 2,
8114
8114
  class: "list-status",
8115
- style: te({ color: e.colorField && P[e.colorField] ? P[e.colorField] : void 0 }),
8116
- innerHTML: e.htmlValue(e.statusContent, P)
8115
+ style: te({ color: e.colorField && V[e.colorField] ? V[e.colorField] : void 0 }),
8116
+ innerHTML: e.htmlValue(e.statusContent, V)
8117
8117
  }, null, 12, Xu)) : g("", !0),
8118
8118
  e.actionEnable ? (n(), w("span", Zu, [
8119
8119
  me(e.$slots, "actionBtnRow", {
8120
- row: P,
8120
+ row: V,
8121
8121
  index: T
8122
8122
  }, void 0, !0),
8123
- P[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(b, {
8123
+ V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(b, {
8124
8124
  key: 0,
8125
8125
  plain: "",
8126
8126
  circle: "",
@@ -8128,9 +8128,9 @@ function $p(e, t, a, l, o, i) {
8128
8128
  icon: "View",
8129
8129
  size: "small",
8130
8130
  title: "View",
8131
- onClick: R((H) => e.handleView(P, T), ["prevent"])
8131
+ onClick: R((H) => e.handleView(V, T), ["prevent"])
8132
8132
  }, null, 8, ["onClick"])) : g("", !0),
8133
- P[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, P, e.useUserState.user) ? (n(), p(b, {
8133
+ V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
8134
8134
  key: 1,
8135
8135
  plain: "",
8136
8136
  circle: "",
@@ -8138,9 +8138,9 @@ function $p(e, t, a, l, o, i) {
8138
8138
  icon: "Edit",
8139
8139
  size: "small",
8140
8140
  title: "Edit",
8141
- onClick: R((H) => e.handleUpdate(P, T), ["prevent"])
8141
+ onClick: R((H) => e.handleUpdate(V, T), ["prevent"])
8142
8142
  }, null, 8, ["onClick"])) : g("", !0),
8143
- P[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, P, e.useUserState.user) ? (n(), p(b, {
8143
+ V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
8144
8144
  key: 2,
8145
8145
  plain: "",
8146
8146
  circle: "",
@@ -8148,7 +8148,7 @@ function $p(e, t, a, l, o, i) {
8148
8148
  icon: "Delete",
8149
8149
  size: "small",
8150
8150
  title: "Delete",
8151
- onClick: R((H) => e.handleDelete(P, T), ["prevent"])
8151
+ onClick: R((H) => e.handleDelete(V, T), ["prevent"])
8152
8152
  }, null, 8, ["onClick"])) : g("", !0)
8153
8153
  ])) : g("", !0)
8154
8154
  ], 8, Wu)
@@ -8160,7 +8160,7 @@ function $p(e, t, a, l, o, i) {
8160
8160
  ])) : g("", !0)
8161
8161
  ])) : g("", !0),
8162
8162
  e.listType === "timeline" ? (n(), w("div", tp, [
8163
- V("div", ap, [
8163
+ P("div", ap, [
8164
8164
  e.titleEnable ? (n(), w("span", lp, [
8165
8165
  e.iconForm != "" ? (n(), p(d, {
8166
8166
  key: 0,
@@ -8193,14 +8193,14 @@ function $p(e, t, a, l, o, i) {
8193
8193
  style: te(`overflow: auto; min-height: 100px; height: ${e.height}`)
8194
8194
  }, {
8195
8195
  default: s(() => [
8196
- (n(!0), w(N, null, G(e.rawData, (P, T) => (n(), p(k, {
8197
- key: P._id,
8198
- timestamp: P.created_at ? e.getDatetime(P.created_at) : void 0,
8196
+ (n(!0), w(E, null, G(e.rawData, (V, T) => (n(), p(k, {
8197
+ key: V._id,
8198
+ timestamp: V.created_at ? e.getDatetime(V.created_at) : void 0,
8199
8199
  placement: "top",
8200
- color: e.colorField && P[e.colorField] ? P[e.colorField] : void 0
8200
+ color: e.colorField && V[e.colorField] ? V[e.colorField] : void 0
8201
8201
  }, {
8202
8202
  default: s(() => [
8203
- V("div", ip, [
8203
+ P("div", ip, [
8204
8204
  r(f, { truncated: "" }, {
8205
8205
  default: s(() => [
8206
8206
  e.titleField ? (n(), p(M, {
@@ -8209,20 +8209,20 @@ function $p(e, t, a, l, o, i) {
8209
8209
  "field-name": e.titleField,
8210
8210
  "field-setting": e.getSchema(e.titleField),
8211
8211
  "subform-width": e.subformWidth,
8212
- "raw-data": P,
8212
+ "raw-data": V,
8213
8213
  "user-state": e.userState
8214
8214
  }, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"])) : (n(), w("span", {
8215
8215
  key: 1,
8216
- innerHTML: e.htmlValue(e.titleContent, P)
8216
+ innerHTML: e.htmlValue(e.titleContent, V)
8217
8217
  }, null, 8, np))
8218
8218
  ]),
8219
8219
  _: 2
8220
8220
  }, 1024)
8221
8221
  ]),
8222
- V("div", sp, [
8222
+ P("div", sp, [
8223
8223
  e.detailContent ? (n(), w("span", {
8224
8224
  key: 0,
8225
- innerHTML: e.htmlValue(e.detailContent, P)
8225
+ innerHTML: e.htmlValue(e.detailContent, V)
8226
8226
  }, null, 8, rp)) : g("", !0)
8227
8227
  ])
8228
8228
  ]),
@@ -8233,7 +8233,7 @@ function $p(e, t, a, l, o, i) {
8233
8233
  }, 8, ["onEndReached", "distance", "style"])) : g("", !0)
8234
8234
  ])) : g("", !0),
8235
8235
  e.listType === "listicon" ? (n(), w("div", dp, [
8236
- V("div", up, [
8236
+ P("div", up, [
8237
8237
  e.titleEnable ? (n(), w("span", pp, [
8238
8238
  e.iconForm != "" ? (n(), p(d, {
8239
8239
  key: 0,
@@ -8261,7 +8261,7 @@ function $p(e, t, a, l, o, i) {
8261
8261
  e.searchFields ? (n(), w("div", fp, [
8262
8262
  r(C, {
8263
8263
  modelValue: e.searchText,
8264
- "onUpdate:modelValue": t[1] || (t[1] = (P) => e.searchText = P),
8264
+ "onUpdate:modelValue": t[1] || (t[1] = (V) => e.searchText = V),
8265
8265
  placeholder: e.searchPlaceholder,
8266
8266
  clearable: "",
8267
8267
  onChange: e.handleSearch,
@@ -8293,8 +8293,8 @@ function $p(e, t, a, l, o, i) {
8293
8293
  style: te(`overflow: auto; min-height: 50px; height: ${e.height}`)
8294
8294
  }, {
8295
8295
  default: s(() => [
8296
- (n(!0), w(N, null, G(e.rawData, (P, T) => (n(), p(A, {
8297
- key: P._id,
8296
+ (n(!0), w(E, null, G(e.rawData, (V, T) => (n(), p(A, {
8297
+ key: V._id,
8298
8298
  xs: 12,
8299
8299
  sm: 6,
8300
8300
  md: 6,
@@ -8303,19 +8303,19 @@ function $p(e, t, a, l, o, i) {
8303
8303
  style: { display: "flex", "justify-content": "center" }
8304
8304
  }, {
8305
8305
  default: s(() => [
8306
- V("div", {
8306
+ P("div", {
8307
8307
  class: "listicon-item",
8308
8308
  style: { "margin-bottom": "15px", "text-align": "center", cursor: "pointer" },
8309
- onClick: (H) => e.handleClick(P, T)
8309
+ onClick: (H) => e.handleClick(V, T)
8310
8310
  }, [
8311
8311
  r(c, {
8312
8312
  shape: "square",
8313
8313
  fit: "cover",
8314
8314
  style: te(`margin-bottom: 2px; width: ${e.iconWigth}px; height: ${e.iconWigth}px`),
8315
8315
  icon: "Picture",
8316
- src: e.getImage(P, e.iconField)
8316
+ src: e.getImage(V, e.iconField)
8317
8317
  }, null, 8, ["style", "src"]),
8318
- V("div", {
8318
+ P("div", {
8319
8319
  style: te(`text-align: center; max-width: ${e.iconWigth + 40}px;`)
8320
8320
  }, [
8321
8321
  r(f, {
@@ -8330,11 +8330,11 @@ function $p(e, t, a, l, o, i) {
8330
8330
  "field-name": e.titleField,
8331
8331
  "field-setting": e.getSchema(e.titleField),
8332
8332
  "subform-width": e.subformWidth,
8333
- "raw-data": P,
8333
+ "raw-data": V,
8334
8334
  "user-state": e.userState
8335
8335
  }, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"])) : (n(), w("span", {
8336
8336
  key: 1,
8337
- innerHTML: e.htmlValue(e.titleContent, P)
8337
+ innerHTML: e.htmlValue(e.titleContent, V)
8338
8338
  }, null, 8, bp))
8339
8339
  ]),
8340
8340
  _: 2
@@ -8349,7 +8349,7 @@ function $p(e, t, a, l, o, i) {
8349
8349
  }, 8, ["onEndReached", "distance", "style"])) : g("", !0)
8350
8350
  ])) : g("", !0),
8351
8351
  e.listType === "thumbnail" ? (n(), w("div", gp, [
8352
- V("div", yp, [
8352
+ P("div", yp, [
8353
8353
  e.titleEnable ? (n(), w("span", vp, [
8354
8354
  e.iconForm != "" ? (n(), p(d, {
8355
8355
  key: 0,
@@ -8377,7 +8377,7 @@ function $p(e, t, a, l, o, i) {
8377
8377
  e.searchFields ? (n(), w("div", Fp, [
8378
8378
  r(C, {
8379
8379
  modelValue: e.searchText,
8380
- "onUpdate:modelValue": t[2] || (t[2] = (P) => e.searchText = P),
8380
+ "onUpdate:modelValue": t[2] || (t[2] = (V) => e.searchText = V),
8381
8381
  placeholder: e.searchPlaceholder,
8382
8382
  clearable: "",
8383
8383
  onChange: e.handleSearch,
@@ -8422,8 +8422,8 @@ function $p(e, t, a, l, o, i) {
8422
8422
  style: te(`overflow: auto; min-height: 50px; height: ${e.height}`)
8423
8423
  }, {
8424
8424
  default: s(() => [
8425
- (n(!0), w(N, null, G(e.rawData, (P, T) => (n(), p(A, {
8426
- key: P._id,
8425
+ (n(!0), w(E, null, G(e.rawData, (V, T) => (n(), p(A, {
8426
+ key: V._id,
8427
8427
  xs: 24,
8428
8428
  sm: 12,
8429
8429
  md: 6,
@@ -8436,20 +8436,20 @@ function $p(e, t, a, l, o, i) {
8436
8436
  shadow: "never",
8437
8437
  class: "thumbnail-item",
8438
8438
  style: te(`margin-bottom: 15px; cursor: pointer; margin-bottom: 15px; width: ${e.iconWigth}px;
8439
- ${e.colorField && P[e.colorField] ? `border-color: ${e.convertHexToRgba(P[e.colorField], 1)};` : ""}
8440
- ${e.colorField && P[e.colorField] ? `background-color: ${e.convertHexToRgba(P[e.colorField], 0.1)};` : ""}
8439
+ ${e.colorField && V[e.colorField] ? `border-color: ${e.convertHexToRgba(V[e.colorField], 1)};` : ""}
8440
+ ${e.colorField && V[e.colorField] ? `background-color: ${e.convertHexToRgba(V[e.colorField], 0.1)};` : ""}
8441
8441
  position: relative;`),
8442
- onClick: (H) => e.handleClick(P, T)
8442
+ onClick: (H) => e.handleClick(V, T)
8443
8443
  }, {
8444
8444
  default: s(() => [
8445
8445
  e.iconField ? (n(), p(F, {
8446
8446
  key: 0,
8447
8447
  style: te(`margin-bottom: 2px; width: 100%; height: ${e.iconWigth - 20}px;`),
8448
- src: e.getImage(P, e.iconField),
8448
+ src: e.getImage(V, e.iconField),
8449
8449
  fit: "cover"
8450
8450
  }, {
8451
8451
  error: s(() => [
8452
- V("div", Sp, [
8452
+ P("div", Sp, [
8453
8453
  r(h, { style: { "font-size": "50px" } }, {
8454
8454
  default: s(() => [
8455
8455
  r(q)
@@ -8460,7 +8460,7 @@ function $p(e, t, a, l, o, i) {
8460
8460
  ]),
8461
8461
  _: 1
8462
8462
  }, 8, ["style", "src"])) : g("", !0),
8463
- V("div", null, [
8463
+ P("div", null, [
8464
8464
  r(f, {
8465
8465
  class: "body-title",
8466
8466
  truncated: "",
@@ -8473,11 +8473,11 @@ function $p(e, t, a, l, o, i) {
8473
8473
  "field-name": e.titleField,
8474
8474
  "field-setting": e.getSchema(e.titleField),
8475
8475
  "subform-width": e.subformWidth,
8476
- "raw-data": P,
8476
+ "raw-data": V,
8477
8477
  "user-state": e.userState
8478
8478
  }, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"])) : (n(), w("span", {
8479
8479
  key: 1,
8480
- innerHTML: e.htmlValue(e.titleContent, P)
8480
+ innerHTML: e.htmlValue(e.titleContent, V)
8481
8481
  }, null, 8, kp))
8482
8482
  ]),
8483
8483
  _: 2
@@ -8490,7 +8490,7 @@ function $p(e, t, a, l, o, i) {
8490
8490
  default: s(() => [
8491
8491
  e.detailContent ? (n(), w("span", {
8492
8492
  key: 0,
8493
- innerHTML: e.htmlValue(e.detailContent, P)
8493
+ innerHTML: e.htmlValue(e.detailContent, V)
8494
8494
  }, null, 8, Cp)) : g("", !0)
8495
8495
  ]),
8496
8496
  _: 2
@@ -8498,7 +8498,7 @@ function $p(e, t, a, l, o, i) {
8498
8498
  e.statusField || e.statusContent ? (n(), w("div", {
8499
8499
  key: 2,
8500
8500
  class: "thumbnail-status",
8501
- style: te({ color: e.colorField && P[e.colorField] ? P[e.colorField] : void 0 })
8501
+ style: te({ color: e.colorField && V[e.colorField] ? V[e.colorField] : void 0 })
8502
8502
  }, [
8503
8503
  e.statusField ? (n(), p(M, {
8504
8504
  key: 0,
@@ -8506,19 +8506,19 @@ function $p(e, t, a, l, o, i) {
8506
8506
  "field-name": e.statusField,
8507
8507
  "field-setting": e.getSchema(e.statusField),
8508
8508
  "subform-width": e.subformWidth,
8509
- "raw-data": P,
8509
+ "raw-data": V,
8510
8510
  "user-state": e.userState
8511
8511
  }, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"])) : (n(), w("span", {
8512
8512
  key: 1,
8513
- innerHTML: e.htmlValue(e.statusContent, P)
8513
+ innerHTML: e.htmlValue(e.statusContent, V)
8514
8514
  }, null, 8, Dp))
8515
8515
  ], 4)) : g("", !0),
8516
8516
  e.actionEnable ? (n(), w("span", Ip, [
8517
8517
  me(e.$slots, "actionBtnRow", {
8518
- row: P,
8518
+ row: V,
8519
8519
  index: T
8520
8520
  }, void 0, !0),
8521
- P[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(b, {
8521
+ V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(b, {
8522
8522
  key: 0,
8523
8523
  plain: "",
8524
8524
  circle: "",
@@ -8526,9 +8526,9 @@ function $p(e, t, a, l, o, i) {
8526
8526
  icon: "View",
8527
8527
  size: "small",
8528
8528
  title: "View",
8529
- onClick: R((H) => e.handleView(P, T), ["prevent"])
8529
+ onClick: R((H) => e.handleView(V, T), ["prevent"])
8530
8530
  }, null, 8, ["onClick"])) : g("", !0),
8531
- P[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, P, e.useUserState.user) ? (n(), p(b, {
8531
+ V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
8532
8532
  key: 1,
8533
8533
  plain: "",
8534
8534
  circle: "",
@@ -8536,9 +8536,9 @@ function $p(e, t, a, l, o, i) {
8536
8536
  icon: "Edit",
8537
8537
  size: "small",
8538
8538
  title: "Edit",
8539
- onClick: R((H) => e.handleUpdate(P, T), ["prevent"])
8539
+ onClick: R((H) => e.handleUpdate(V, T), ["prevent"])
8540
8540
  }, null, 8, ["onClick"])) : g("", !0),
8541
- P[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, P, e.useUserState.user) ? (n(), p(b, {
8541
+ V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
8542
8542
  key: 2,
8543
8543
  plain: "",
8544
8544
  circle: "",
@@ -8546,7 +8546,7 @@ function $p(e, t, a, l, o, i) {
8546
8546
  icon: "Delete",
8547
8547
  size: "small",
8548
8548
  title: "Delete",
8549
- onClick: R((H) => e.handleDelete(P, T), ["prevent"])
8549
+ onClick: R((H) => e.handleDelete(V, T), ["prevent"])
8550
8550
  }, null, 8, ["onClick"])) : g("", !0)
8551
8551
  ])) : g("", !0)
8552
8552
  ]),
@@ -8561,7 +8561,7 @@ function $p(e, t, a, l, o, i) {
8561
8561
  ])) : g("", !0)
8562
8562
  ], 64);
8563
8563
  }
8564
- const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-1f3518c4"]]), dg = /* @__PURE__ */ L({
8564
+ const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-71527893"]]), dg = /* @__PURE__ */ L({
8565
8565
  __name: "SdAppList",
8566
8566
  props: {
8567
8567
  userState: {
@@ -9510,7 +9510,7 @@ const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-1f3518c4
9510
9510
  function Da(e) {
9511
9511
  return e.includes("admin") || e.includes("super");
9512
9512
  }
9513
- const Mp = Jo(() => import("./sd-render-Dx_T8Qqr.js").then((e) => e.S)), Vp = L({
9513
+ const Mp = Jo(() => import("./sd-render-Bh_daYMW.js").then((e) => e.S)), Pp = L({
9514
9514
  name: "SdCrudForm",
9515
9515
  components: {
9516
9516
  SdFormRenderAsync: Mp
@@ -9629,25 +9629,25 @@ const Mp = Jo(() => import("./sd-render-Dx_T8Qqr.js").then((e) => e.S)), Vp = L(
9629
9629
  this.initForm(this.userState.formStore[this.formId]);
9630
9630
  else if (this.useUserState) {
9631
9631
  const e = await De(this.formId, this.useUserState);
9632
- e.response && e.data ? e.data.dataid && this.initForm(e.data) : E.warning(e.message);
9632
+ e.response && e.data ? e.data.dataid && this.initForm(e.data) : N.warning(e.message);
9633
9633
  } else
9634
- E.warning("UserState not found.");
9634
+ N.warning("UserState not found.");
9635
9635
  else
9636
- E.warning("FormId not found.");
9636
+ N.warning("FormId not found.");
9637
9637
  this.sdFunc = {
9638
9638
  subFormOpen: this.subFormOpen,
9639
9639
  handleCancel: this.handleCancel,
9640
9640
  handleAfterSave: this.handleAfterSave,
9641
9641
  userState: this.userState,
9642
9642
  params: this.params,
9643
- ElMessage: E,
9643
+ ElMessage: N,
9644
9644
  sdformModel: this.sdformModel,
9645
9645
  nextOpenForm: this.nextOpenForm,
9646
9646
  refSdForm: this.refSdForm
9647
9647
  };
9648
9648
  },
9649
9649
  async beforeUnmount() {
9650
- this.formData && this.formData._id && Oa(this.formData.xrstatx) && this.formData.xrstatx === 0 && (this.isInsert = !0, this.sdformModel.dataid && (await Vu(this.sdformModel.dataid, this.formData._id, this.useUserState) || E.warning("Unable to delete empty data")));
9650
+ this.formData && this.formData._id && Oa(this.formData.xrstatx) && this.formData.xrstatx === 0 && (this.isInsert = !0, this.sdformModel.dataid && (await Pu(this.sdformModel.dataid, this.formData._id, this.useUserState) || N.warning("Unable to delete empty data")));
9651
9651
  },
9652
9652
  methods: {
9653
9653
  async initForm(e) {
@@ -9662,7 +9662,7 @@ const Mp = Jo(() => import("./sd-render-Dx_T8Qqr.js").then((e) => e.S)), Vp = L(
9662
9662
  }
9663
9663
  this.changeVersion && this.changeVersion(this.sdformModel);
9664
9664
  }
9665
- if (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 = "http://127.0.0.1:3005/api", !this.userBy && this.userState.user && (this.userBy = this.userState.user), this.autoSave = this.sdformModel.form_options.auto_save, this.appMode = this.sdformModel.form_type == "form_ui", this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user), this.allowUpdate = Re(this.sdformModel, this.formData, this.userState.user)), !Da(this.userState.systemRoles)) {
9665
+ if (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.userBy && this.userState.user && (this.userBy = this.userState.user), this.autoSave = this.sdformModel.form_options.auto_save, this.appMode = this.sdformModel.form_type == "form_ui", this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user), this.allowUpdate = Re(this.sdformModel, this.formData, this.userState.user)), !Da(this.userState.systemRoles)) {
9666
9666
  if (this.sdformModel.form_share.form_sharing === "private") {
9667
9667
  let o = "";
9668
9668
  this.sdformModel.created_by && this.sdformModel.created_by.id && (o = this.sdformModel.created_by.id), this.userBy?.user_id !== o && (this.hideMsg = "You don't have permission to use this form.", this.hideForm = !0);
@@ -9701,15 +9701,15 @@ const Mp = Jo(() => import("./sd-render-Dx_T8Qqr.js").then((e) => e.S)), Vp = L(
9701
9701
  }
9702
9702
  },
9703
9703
  (e) => {
9704
- e.data ? this.formData = D(e.data) : E.warning("Unable to get data");
9704
+ e.data ? this.formData = D(e.data) : N.warning("Unable to get data");
9705
9705
  },
9706
9706
  () => {
9707
- E.warning("Unable to get data");
9707
+ N.warning("Unable to get data");
9708
9708
  }
9709
9709
  );
9710
9710
  else {
9711
9711
  const e = await ya(this.sdformModel._id || this.sdformModel.dataid, this.useUserState);
9712
- e ? (this.refSdForm && this.refSdForm.resetForm(), this.formData = { ...e, ...D(this.initData) }) : E.warning("Unable to create empty data");
9712
+ e ? (this.refSdForm && this.refSdForm.resetForm(), this.formData = { ...e, ...D(this.initData) }) : N.warning("Unable to create empty data");
9713
9713
  }
9714
9714
  },
9715
9715
  async afterSubmit(e, t) {
@@ -9720,7 +9720,7 @@ const Mp = Jo(() => import("./sd-render-Dx_T8Qqr.js").then((e) => e.S)), Vp = L(
9720
9720
  let l = "true";
9721
9721
  if (a.cond && (l = a.cond), Bn(l, e) && a.form) {
9722
9722
  if (this.subFormOpen) {
9723
- const o = Na(e);
9723
+ const o = Ea(e);
9724
9724
  let i = {};
9725
9725
  if (a.initdata && Object.values(a.initdata).length > 0)
9726
9726
  for (const d of a.initdata) {
@@ -9780,7 +9780,7 @@ const Mp = Jo(() => import("./sd-render-Dx_T8Qqr.js").then((e) => e.S)), Vp = L(
9780
9780
  }
9781
9781
  },
9782
9782
  onSubmit(e, t = !1) {
9783
- this.appMode ? E.warning("App mode.") : this.refSdForm.getFormData().then(async (a) => {
9783
+ this.appMode ? N.warning("App mode.") : this.refSdForm.getFormData().then(async (a) => {
9784
9784
  let l = {};
9785
9785
  this.beforeSave && (l = this.beforeSave(a)), a = { ...this.formData, ...a, ...l }, a.xversionx = this.sdformModel.form_version, this.formData.xrstatx && (this.isInsert = !1);
9786
9786
  const o = await dt(this.formId, this.formData._id, a, e, this.useUserState), i = o.data;
@@ -9789,20 +9789,20 @@ const Mp = Jo(() => import("./sd-render-Dx_T8Qqr.js").then((e) => e.S)), Vp = L(
9789
9789
  try {
9790
9790
  this.afterSaveForm.call(this.sdFunc, this.isInsert, i, this.formData);
9791
9791
  } catch (d) {
9792
- E.error(d.message);
9792
+ N.error(d.message);
9793
9793
  }
9794
9794
  this.afterSubmit(i, t);
9795
9795
  } else
9796
- E.warning(o.message);
9796
+ N.warning(o.message);
9797
9797
  }).catch((a) => {
9798
- typeof a == "string" ? E.warning(a) : E.warning(a.message);
9798
+ typeof a == "string" ? N.warning(a) : N.warning(a.message);
9799
9799
  });
9800
9800
  }
9801
9801
  }
9802
9802
  });
9803
- function Pp(e, t, a, l, o, i) {
9803
+ function Vp(e, t, a, l, o, i) {
9804
9804
  const d = ra, u = Y("SdFormRenderAsync"), m = oe, h = at, b = St;
9805
- return n(), w(N, null, [
9805
+ return n(), w(E, null, [
9806
9806
  e.hideForm ? (n(), p(d, {
9807
9807
  key: 0,
9808
9808
  title: e.hideMsg,
@@ -9810,7 +9810,7 @@ function Pp(e, t, a, l, o, i) {
9810
9810
  "show-icon": "",
9811
9811
  style: { "margin-bottom": "10px" },
9812
9812
  closable: !1
9813
- }, null, 8, ["title"])) : (n(), w(N, { key: 1 }, [
9813
+ }, null, 8, ["title"])) : (n(), w(E, { key: 1 }, [
9814
9814
  e.loadForm ? (n(), p(u, {
9815
9815
  key: 0,
9816
9816
  ref: "refSdForm",
@@ -9852,7 +9852,7 @@ function Pp(e, t, a, l, o, i) {
9852
9852
  ])]),
9853
9853
  _: 1
9854
9854
  })) : g("", !0),
9855
- !e.hideForm && !e.formReadonly ? (n(), w(N, { key: 1 }, [
9855
+ !e.hideForm && !e.formReadonly ? (n(), w(E, { key: 1 }, [
9856
9856
  e.saveDart ? (n(), p(m, {
9857
9857
  key: 0,
9858
9858
  type: "success",
@@ -9893,7 +9893,7 @@ function Pp(e, t, a, l, o, i) {
9893
9893
  })) : g("", !0)
9894
9894
  ], 64);
9895
9895
  }
9896
- const co = /* @__PURE__ */ j(Vp, [["render", Pp]]), Ap = L({
9896
+ const co = /* @__PURE__ */ j(Pp, [["render", Vp]]), Ap = L({
9897
9897
  name: "SdAppViewer",
9898
9898
  components: {},
9899
9899
  props: {
@@ -9996,7 +9996,7 @@ const co = /* @__PURE__ */ j(Vp, [["render", Pp]]), Ap = L({
9996
9996
  }), Op = {
9997
9997
  key: 0,
9998
9998
  class: "app_page"
9999
- }, Ep = { class: "app_header" }, Np = { class: "app_title text-6" }, Lp = { class: "ml-2" }, Bp = { class: "ml-1 sub-title" }, jp = { class: "app_actions" }, Up = { class: "app_content" }, Rp = { class: "tabs-label" }, zp = { class: "tabs-content" }, qp = {
9999
+ }, Np = { class: "app_header" }, Ep = { class: "app_title text-6" }, Lp = { class: "ml-2" }, Bp = { class: "ml-1 sub-title" }, jp = { class: "app_actions" }, Up = { class: "app_content" }, Rp = { class: "tabs-label" }, zp = { class: "tabs-content" }, qp = {
10000
10000
  key: 1,
10001
10001
  class: "tabs-content"
10002
10002
  }, Hp = { key: 2 }, Wp = {
@@ -10004,11 +10004,11 @@ const co = /* @__PURE__ */ j(Vp, [["render", Pp]]), Ap = L({
10004
10004
  class: "el-dialog__title"
10005
10005
  };
10006
10006
  function xp(e, t, a, l, o, i) {
10007
- const d = Ta, u = oe, m = ce, h = co, b = ra, _ = Eo, C = Oo, c = ga, M = we, f = Ul("can");
10008
- return n(), w(N, null, [
10007
+ const d = Ta, u = oe, m = ce, h = co, b = ra, _ = No, C = Oo, c = ga, M = we, f = Ul("can");
10008
+ return n(), w(E, null, [
10009
10009
  e.appId ? (n(), w("div", Op, [
10010
- V("div", Ep, [
10011
- V("span", Np, [
10010
+ P("div", Np, [
10011
+ P("span", Ep, [
10012
10012
  r(d, {
10013
10013
  shape: "square",
10014
10014
  fit: "cover",
@@ -10016,11 +10016,11 @@ function xp(e, t, a, l, o, i) {
10016
10016
  icon: "Picture",
10017
10017
  src: e.getImage(e.appIcon)
10018
10018
  }, null, 8, ["src"]),
10019
- V("span", Lp, O(e.appTitle), 1),
10019
+ P("span", Lp, O(e.appTitle), 1),
10020
10020
  t[3] || (t[3] = S()),
10021
- V("span", Bp, O(e.appTitleSub), 1)
10021
+ P("span", Bp, O(e.appTitleSub), 1)
10022
10022
  ]),
10023
- V("span", jp, [
10023
+ P("span", jp, [
10024
10024
  e.appInfo ? (n(), p(u, {
10025
10025
  key: 0,
10026
10026
  circle: "",
@@ -10031,7 +10031,7 @@ function xp(e, t, a, l, o, i) {
10031
10031
  me(e.$slots, "actions", {}, void 0, !0)
10032
10032
  ])
10033
10033
  ]),
10034
- V("div", Up, [
10034
+ P("div", Up, [
10035
10035
  e.appTabs.length > 1 ? (n(), p(C, {
10036
10036
  key: 0,
10037
10037
  modelValue: e.tab,
@@ -10041,31 +10041,31 @@ function xp(e, t, a, l, o, i) {
10041
10041
  onTabChange: e.handleTabChange
10042
10042
  }, {
10043
10043
  default: s(() => [
10044
- (n(!0), w(N, null, G(e.appTabs, (y, k) => (n(), p(_, {
10044
+ (n(!0), w(E, null, G(e.appTabs, (y, k) => (n(), p(_, {
10045
10045
  key: k + 1,
10046
10046
  label: y.tab_label,
10047
10047
  name: String(k + 1),
10048
10048
  lazy: e.lazyLoad
10049
10049
  }, {
10050
10050
  label: s(() => [
10051
- V("span", Rp, [
10051
+ P("span", Rp, [
10052
10052
  y.tab_icon ? (n(), p(m, {
10053
10053
  key: 0,
10054
10054
  "icon-name": y.tab_icon,
10055
10055
  class: "mr-1"
10056
10056
  }, null, 8, ["icon-name"])) : g("", !0),
10057
- V("span", null, O(y.tab_label), 1)
10057
+ P("span", null, O(y.tab_label), 1)
10058
10058
  ])
10059
10059
  ]),
10060
10060
  default: s(() => [
10061
- Ve((n(), w("div", zp, [
10061
+ Pe((n(), w("div", zp, [
10062
10062
  y.tab_widget_name ? (n(), p(ua(e.customComponents[y.tab_widget_name]), ae({
10063
10063
  key: 0,
10064
10064
  ref_for: !0
10065
10065
  }, y.tab_options ? y.tab_options : {}, {
10066
10066
  key: k + 1,
10067
10067
  "user-state": e.userState
10068
- }), null, 16, ["user-state"])) : (n(), w(N, { key: 1 }, [
10068
+ }), null, 16, ["user-state"])) : (n(), w(E, { key: 1 }, [
10069
10069
  y.tab_form && e.getFormId(y.tab_form) ? (n(), p(h, {
10070
10070
  key: 0,
10071
10071
  "form-id": e.getFormId(y.tab_form),
@@ -10085,7 +10085,7 @@ function xp(e, t, a, l, o, i) {
10085
10085
  { any: !0 }
10086
10086
  ]
10087
10087
  ]),
10088
- Ve(r(b, {
10088
+ Pe(r(b, {
10089
10089
  title: "You don't have permission to access.",
10090
10090
  type: "warning",
10091
10091
  "show-icon": ""
@@ -10105,7 +10105,7 @@ function xp(e, t, a, l, o, i) {
10105
10105
  }, 1032, ["label", "name", "lazy"]))), 128))
10106
10106
  ]),
10107
10107
  _: 1
10108
- }, 8, ["modelValue", "onTabChange"])) : e.appTabs.length === 1 && e.appTabs[0].tab_form && e.getFormId(e.appTabs[0].tab_form) ? Ve((n(), w("div", qp, [
10108
+ }, 8, ["modelValue", "onTabChange"])) : e.appTabs.length === 1 && e.appTabs[0].tab_form && e.getFormId(e.appTabs[0].tab_form) ? Pe((n(), w("div", qp, [
10109
10109
  r(h, {
10110
10110
  "form-id": e.getFormId(e.appTabs[0].tab_form),
10111
10111
  "data-id": e.dataId,
@@ -10123,7 +10123,7 @@ function xp(e, t, a, l, o, i) {
10123
10123
  { any: !0 }
10124
10124
  ]
10125
10125
  ]) : g("", !0),
10126
- Ve(r(b, {
10126
+ Pe(r(b, {
10127
10127
  title: "You don't have permission to access.",
10128
10128
  type: "warning",
10129
10129
  "show-icon": ""
@@ -10161,7 +10161,7 @@ function xp(e, t, a, l, o, i) {
10161
10161
  "destroy-on-close": !0
10162
10162
  }, {
10163
10163
  header: s(({ close: y, titleId: k, titleClass: A }) => [
10164
- V("span", Wp, [
10164
+ P("span", Wp, [
10165
10165
  r(m, { "icon-name": "el-info-filled" }),
10166
10166
  t[4] || (t[4] = S(" App Info ", -1))
10167
10167
  ])
@@ -10476,7 +10476,7 @@ function Gp(e, t, a, l, o, i) {
10476
10476
  type: e.type,
10477
10477
  data: e.dataMockup,
10478
10478
  options: e.optionsMockup
10479
- }, null, 8, ["type", "data", "options"])) : (n(), w(N, { key: 1 }, [
10479
+ }, null, 8, ["type", "data", "options"])) : (n(), w(E, { key: 1 }, [
10480
10480
  e.showChart ? (n(), p(d, {
10481
10481
  key: 0,
10482
10482
  type: e.type,
@@ -10612,10 +10612,10 @@ function Xp(e, t, a, l, o, i) {
10612
10612
  "destroy-on-close": !0
10613
10613
  }, {
10614
10614
  header: s(({ close: _, titleId: C, titleClass: c }) => [
10615
- V("span", Jp, O(e.popupName), 1)
10615
+ P("span", Jp, O(e.popupName), 1)
10616
10616
  ]),
10617
10617
  footer: s(() => [
10618
- V("div", Qp, [
10618
+ P("div", Qp, [
10619
10619
  r(h, {
10620
10620
  onClick: t[0] || (t[0] = (_) => e.showPopupFlag = !1)
10621
10621
  }, {
@@ -10843,10 +10843,10 @@ const go = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
10843
10843
  },
10844
10844
  htmlValue() {
10845
10845
  return (e, t, a) => {
10846
- let l = Na(t);
10846
+ let l = Ea(t);
10847
10847
  if (!this.rawValue)
10848
10848
  for (const o in t)
10849
- l[`{{${o}}}`] = Pe(t[o], o, this.formModel);
10849
+ l[`{{${o}}}`] = Ve(t[o], o, this.formModel);
10850
10850
  if (a.expressions)
10851
10851
  try {
10852
10852
  const i = `return ${se(a.expressions, l)}`, d = new Function("row", ...Ce, i);
@@ -10883,7 +10883,7 @@ const go = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
10883
10883
  async editChange(e) {
10884
10884
  e.xversionx = this.formModel.form_version;
10885
10885
  const t = await dt(this.formModel.dataid, e[this.keyId], e, 1, this.userState), a = t.data;
10886
- a ? (a[this.rowKey] = e[this.keyId], this.afterSubmit(a, !1)) : E.warning(t.message);
10886
+ a ? (a[this.rowKey] = e[this.keyId], this.afterSubmit(a, !1)) : N.warning(t.message);
10887
10887
  },
10888
10888
  backupRow(e) {
10889
10889
  this.currRow = D(e);
@@ -10897,7 +10897,7 @@ const go = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
10897
10897
  },
10898
10898
  getValue(e, t, a) {
10899
10899
  let l = ve(e, t);
10900
- return this.rawValue ? l ?? null : Pe(l, t, a);
10900
+ return this.rawValue ? l ?? null : Ve(l, t, a);
10901
10901
  },
10902
10902
  getValueType(e, t, a) {
10903
10903
  let l = ve(e, t);
@@ -10928,11 +10928,11 @@ const go = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
10928
10928
  }
10929
10929
  }), im = ["innerHTML"], nm = ["innerHTML"];
10930
10930
  function sm(e, t, a, l, o, i) {
10931
- const d = Ht, u = qe, m = Et, h = Ie, b = kt, _ = Al, C = ze, c = go, M = bo;
10932
- return n(), w(N, null, [
10933
- e.columnFields && Object.keys(e.columnFields).length > 0 ? (n(), w(N, { key: 0 }, [
10934
- e.formModel && e.formModel.form_db && e.formModel.form_db.schema && Object.keys(e.formModel.form_db.schema).length > 0 ? (n(!0), w(N, { key: 0 }, G(e.columnFields, (f) => (n(), w(N, null, [
10935
- e.formModel.form_db.schema[f.fieldName] && !f.htmlValue ? (n(), w(N, { key: 0 }, [
10931
+ const d = Ht, u = qe, m = Nt, h = Ie, b = kt, _ = Al, C = ze, c = go, M = bo;
10932
+ return n(), w(E, null, [
10933
+ e.columnFields && Object.keys(e.columnFields).length > 0 ? (n(), w(E, { key: 0 }, [
10934
+ e.formModel && e.formModel.form_db && e.formModel.form_db.schema && Object.keys(e.formModel.form_db.schema).length > 0 ? (n(!0), w(E, { key: 0 }, G(e.columnFields, (f) => (n(), w(E, null, [
10935
+ e.formModel.form_db.schema[f.fieldName] && !f.htmlValue ? (n(), w(E, { key: 0 }, [
10936
10936
  e.formModel.form_db.schema[f.fieldName].subField && e.formModel.form_db.schema[f.fieldName].component == "object-group" && ["Object"].includes(e.getschemaValue(e.formModel.form_db.schema, "type", f.fieldName, "")) && e.formModel.form_db.schema[f.fieldName].widgetDisplay && e.formModel.form_db.schema[f.fieldName].widgetDisplay == "widget" && !e.rawValue ? (n(), p(u, {
10937
10937
  key: 0,
10938
10938
  "min-width": 80,
@@ -10944,7 +10944,7 @@ function sm(e, t, a, l, o, i) {
10944
10944
  fixed: f.fixed || e.getschemaValue(e.formModel.form_db.schema, "fixed", f.fieldName, !1)
10945
10945
  }, {
10946
10946
  default: s((y) => [
10947
- e.formModel.form_db.schema[f.fieldName].subField ? (n(!0), w(N, { key: 0 }, G(e.formModel.form_db.schema[f.fieldName].subField, (k) => (n(), p(u, {
10947
+ e.formModel.form_db.schema[f.fieldName].subField ? (n(!0), w(E, { key: 0 }, G(e.formModel.form_db.schema[f.fieldName].subField, (k) => (n(), p(u, {
10948
10948
  prop: `${f.fieldName}.${k.fieldName}`,
10949
10949
  "column-key": `${f.fieldName}.${k.fieldName}`,
10950
10950
  "min-width": 80,
@@ -10983,7 +10983,7 @@ function sm(e, t, a, l, o, i) {
10983
10983
  fixed: f.fixed || e.getschemaValue(e.formModel.form_db.schema, "fixed", f.fieldName, !1)
10984
10984
  }, {
10985
10985
  default: s((y) => [
10986
- y.row[e.keyId] && e.editColumn && e.editColumn.includes(f.fieldName) && ["number-input", "text-input", "switch-input", "select-input", "radio-input"].includes(e.formModel.form_db.schema[f.fieldName].component) ? (n(), w(N, { key: 0 }, [
10986
+ y.row[e.keyId] && e.editColumn && e.editColumn.includes(f.fieldName) && ["number-input", "text-input", "switch-input", "select-input", "radio-input"].includes(e.formModel.form_db.schema[f.fieldName].component) ? (n(), w(E, { key: 0 }, [
10987
10987
  e.formModel.form_db.schema[f.fieldName].component == "number-input" ? (n(), p(m, ae({
10988
10988
  key: 0,
10989
10989
  modelValue: y.row[f.fieldName],
@@ -11056,7 +11056,7 @@ function sm(e, t, a, l, o, i) {
11056
11056
  ]),
11057
11057
  _: 2
11058
11058
  }, 1032, ["prop", "column-key", "label", "width", "align", "fixed"]))
11059
- ], 64))), 256)) : (n(!0), w(N, { key: 1 }, G(e.columnFields, (f) => (n(), w(N, null, [
11059
+ ], 64))), 256)) : (n(!0), w(E, { key: 1 }, G(e.columnFields, (f) => (n(), w(E, null, [
11060
11060
  f.htmlValue ? (n(), p(u, {
11061
11061
  key: 1,
11062
11062
  prop: f.fieldName,
@@ -11096,7 +11096,7 @@ function sm(e, t, a, l, o, i) {
11096
11096
  fixed: f.fixed || !1
11097
11097
  }, {
11098
11098
  default: s((y) => [
11099
- e.rawValue ? (n(), w(N, { key: 1 }, [
11099
+ e.rawValue ? (n(), w(E, { key: 1 }, [
11100
11100
  S(O(e.getValueType(y.row, f.fieldName, f)), 1)
11101
11101
  ], 64)) : (n(), p(C, {
11102
11102
  key: 0,
@@ -11113,8 +11113,8 @@ function sm(e, t, a, l, o, i) {
11113
11113
  _: 2
11114
11114
  }, 1032, ["prop", "column-key", "label", "width", "align", "sortable", "filters", "fixed"]))
11115
11115
  ], 64))), 256))
11116
- ], 64)) : (n(), w(N, { key: 1 }, [
11117
- e.formModel && e.formModel.form_db && e.formModel.form_db.schema ? (n(!0), w(N, { key: 0 }, G(e.formModel.form_db.schema, (f) => (n(), p(u, {
11116
+ ], 64)) : (n(), w(E, { key: 1 }, [
11117
+ e.formModel && e.formModel.form_db && e.formModel.form_db.schema ? (n(!0), w(E, { key: 0 }, G(e.formModel.form_db.schema, (f) => (n(), p(u, {
11118
11118
  prop: f.fieldName,
11119
11119
  "column-key": f.fieldName,
11120
11120
  "min-width": 80,
@@ -11140,7 +11140,7 @@ function sm(e, t, a, l, o, i) {
11140
11140
  }, 1032, ["prop", "column-key", "label", "width", "align", "sortable", "filters", "fixed"]))), 256)) : g("", !0)
11141
11141
  ], 64)),
11142
11142
  me(e.$slots, "default"),
11143
- e.systemColumn ? (n(), w(N, { key: 2 }, [
11143
+ e.systemColumn ? (n(), w(E, { key: 2 }, [
11144
11144
  e.formModel && e.formModel.form_options && e.formModel.form_options.query_tool != "disable" ? (n(), p(u, {
11145
11145
  key: 0,
11146
11146
  prop: "xrstatx",
@@ -11475,9 +11475,9 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11475
11475
  this.initForm(this.userState.formStore[this.formId]);
11476
11476
  else if (this.useUserState.user) {
11477
11477
  const e = await De(this.formId, this.useUserState);
11478
- e.response && e.data ? this.initForm(e.data) : E.warning(e.message);
11478
+ e.response && e.data ? this.initForm(e.data) : N.warning(e.message);
11479
11479
  } else
11480
- E.warning("Unauthorized");
11480
+ N.warning("Unauthorized");
11481
11481
  this.sdFunc = {
11482
11482
  subFormOpen: this.subFormOpen,
11483
11483
  handleCancel: this.handleCancel,
@@ -11486,7 +11486,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11486
11486
  handleView: this.handleView,
11487
11487
  userState: this.userState,
11488
11488
  params: this.params,
11489
- ElMessage: E,
11489
+ ElMessage: N,
11490
11490
  sdformModel: this.sdformModel,
11491
11491
  wsConn: this.wsConn,
11492
11492
  tableRef: this.tableRef
@@ -11509,7 +11509,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11509
11509
  this.defaultParams = { ...t, ...e }, this.defaultSort = D(this.optionProvider.orderBy), this.dpFormData.params = D(this.defaultParams), this.getDataList(this.dpFormData);
11510
11510
  },
11511
11511
  initForm(e) {
11512
- 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 = "http://127.0.0.1:3005/api", 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", ...Ce, 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 = pe.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 : [];
11512
+ 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", ...Ce, 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 = pe.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 : [];
11513
11513
  const t = D(this.dpFormData.params), a = D(this.params);
11514
11514
  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)
11515
11515
  if (this.expandProvider)
@@ -11574,7 +11574,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11574
11574
  async getDataList(e, t) {
11575
11575
  this.preLoading = !0;
11576
11576
  const a = this.total === 0, l = await rt(e, a, this.useUserState);
11577
- l.response ? (l.data && l.data.data && (this.rawData = D(l.data.data), this.offset = l.data.offset, this.totalPage = l.data.data.length, a && (this.total = l.data.total), t && t(this.rawData), l.data.dataSum && l.data.dataSum[0] && (this.sumEnable = !0, this.sumData = l.data.dataSum[0])), this.preLoading = !1) : (E.warning(l.message), this.preLoading = !1);
11577
+ l.response ? (l.data && l.data.data && (this.rawData = D(l.data.data), this.offset = l.data.offset, this.totalPage = l.data.data.length, a && (this.total = l.data.total), t && t(this.rawData), l.data.dataSum && l.data.dataSum[0] && (this.sumEnable = !0, this.sumData = l.data.dataSum[0])), this.preLoading = !1) : (N.warning(l.message), this.preLoading = !1);
11578
11578
  },
11579
11579
  loadExpand(e, t, a) {
11580
11580
  if (this.dpExpandData) {
@@ -11598,7 +11598,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11598
11598
  } else
11599
11599
  a([]);
11600
11600
  }).catch((o) => {
11601
- o.response && o.response.data && o.response.data.message ? E.warning(o.response.data.message) : E.warning(o.message);
11601
+ o.response && o.response.data && o.response.data.message ? N.warning(o.response.data.message) : N.warning(o.message);
11602
11602
  }));
11603
11603
  }
11604
11604
  },
@@ -11760,7 +11760,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11760
11760
  for (const t in e)
11761
11761
  if (Object.prototype.hasOwnProperty.call(e, t)) {
11762
11762
  let a = e[t];
11763
- Ea(a) ? delete this.optionProvider.fileter[t] : (this.optionProvider.fileter || (this.optionProvider.fileter = {}), this.optionProvider.fileter[t] = a);
11763
+ Na(a) ? delete this.optionProvider.fileter[t] : (this.optionProvider.fileter || (this.optionProvider.fileter = {}), this.optionProvider.fileter[t] = a);
11764
11764
  }
11765
11765
  this.dpExpandData && this.resetExpand(), this.total = 0, this.getDataList(this.dpFormData);
11766
11766
  },
@@ -11799,9 +11799,9 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11799
11799
  let o = {};
11800
11800
  this.beforeSave && (o = this.beforeSave(this.formData), this.formData = { ...this.formData, ...o }), this.formData.xversionx = this.sdformModel.form_version;
11801
11801
  const i = await dt(this.sdformModel.dataid, this.formData[this.keyId], this.formData, 1, this.useUserState), d = i.data;
11802
- d ? (d[this.rowKey] = this.formData[this.keyId], this.afterSave(d, !1)) : E.warning(i.message);
11802
+ d ? (d[this.rowKey] = this.formData[this.keyId], this.afterSave(d, !1)) : N.warning(i.message);
11803
11803
  } else
11804
- E.warning("Unable to create empty data");
11804
+ N.warning("Unable to create empty data");
11805
11805
  }
11806
11806
  }).catch((l) => {
11807
11807
  console.log(l);
@@ -11833,11 +11833,11 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11833
11833
  try {
11834
11834
  this.afterDeleteForm.call(this.sdFunc, e);
11835
11835
  } catch (i) {
11836
- E.error(i.message);
11836
+ N.error(i.message);
11837
11837
  }
11838
- E.success("Delete completed.");
11838
+ N.success("Delete completed.");
11839
11839
  } else
11840
- E.warning("Unable to remove data");
11840
+ N.warning("Unable to remove data");
11841
11841
  }).catch((o) => {
11842
11842
  console.log(o);
11843
11843
  });
@@ -11850,7 +11850,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11850
11850
  type: "warning"
11851
11851
  }).then(async () => {
11852
11852
  const i = await dt(this.sdformModel.dataid, o, a, 1, this.useUserState);
11853
- i ? (l && l(i), E.success("Edit value completed.")) : E.warning("Unable to edit data");
11853
+ i ? (l && l(i), N.success("Edit value completed.")) : N.warning("Unable to edit data");
11854
11854
  }).catch(() => {
11855
11855
  });
11856
11856
  },
@@ -11873,18 +11873,18 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11873
11873
  style: { height: "32px", display: "inline-grid", "align-content": "center" }
11874
11874
  }, bm = { class: "card-footer" };
11875
11875
  function gm(e, t, a, l, o, i) {
11876
- const d = Ze, u = ce, m = ze, h = oe, b = oa, _ = na, C = at, c = Ie, M = ia, f = St, y = Nt, k = qe, A = rm, q = Lt, F = Ma, I = Zp, P = da;
11877
- return n(), w(N, null, [
11876
+ const d = Ze, u = ce, m = ze, h = oe, b = oa, _ = na, C = at, c = Ie, M = ia, f = St, y = Et, k = qe, A = rm, q = Lt, F = Ma, I = Zp, V = da;
11877
+ return n(), w(E, null, [
11878
11878
  r(F, {
11879
11879
  class: "box-card",
11880
11880
  shadow: "never"
11881
11881
  }, {
11882
11882
  header: s(() => [
11883
- V("div", um, [
11883
+ P("div", um, [
11884
11884
  (e.iconName != "" || e.iconForm != "" || e.titleNameForm != "") && e.titleEnable ? (n(), w("div", pm, [
11885
11885
  r(m, { truncated: "" }, {
11886
11886
  default: s(() => [
11887
- V("span", mm, [
11887
+ P("span", mm, [
11888
11888
  e.iconForm != "" ? (n(), p(d, {
11889
11889
  key: 0,
11890
11890
  "svg-data": e.iconForm
@@ -11900,7 +11900,7 @@ function gm(e, t, a, l, o, i) {
11900
11900
  ]),
11901
11901
  _: 1
11902
11902
  }),
11903
- V("span", fm, [
11903
+ P("span", fm, [
11904
11904
  me(e.$slots, "actionsBar", {}, void 0, !0)
11905
11905
  ])
11906
11906
  ])) : g("", !0),
@@ -11959,7 +11959,7 @@ function gm(e, t, a, l, o, i) {
11959
11959
  icon: "Refresh",
11960
11960
  onClick: e.handleRefresh
11961
11961
  }, null, 8, ["onClick"]),
11962
- V("span", hm, [
11962
+ P("span", hm, [
11963
11963
  r(m, { "line-clamp": "2" }, {
11964
11964
  default: s(() => [
11965
11965
  S(" Showing " + O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items. ", 1)
@@ -12032,7 +12032,7 @@ function gm(e, t, a, l, o, i) {
12032
12032
  style: { "text-align": "right" }
12033
12033
  }, {
12034
12034
  default: s(() => [
12035
- V("span", cm, [
12035
+ P("span", cm, [
12036
12036
  r(m, { "line-clamp": "2" }, {
12037
12037
  default: s(() => [
12038
12038
  S(" Showing " + O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items. ", 1)
@@ -12055,7 +12055,7 @@ function gm(e, t, a, l, o, i) {
12055
12055
  ])
12056
12056
  ]),
12057
12057
  default: s(() => [
12058
- Ve((n(), p(q, {
12058
+ Pe((n(), p(q, {
12059
12059
  ref: "tableRef",
12060
12060
  data: e.rawData,
12061
12061
  stripe: "",
@@ -12180,9 +12180,9 @@ function gm(e, t, a, l, o, i) {
12180
12180
  ]),
12181
12181
  _: 3
12182
12182
  }, 8, ["data", "border", "show-summary", "summary-method", "onSortChange", "height", "max-height", "row-key", "lazy", "load", "expand-row-keys", "tree-props", "onExpandChange", "onFilterChange"])), [
12183
- [P, e.preLoading]
12183
+ [V, e.preLoading]
12184
12184
  ]),
12185
- V("div", bm, [
12185
+ P("div", bm, [
12186
12186
  e.total > e.limit ? (n(), p(M, {
12187
12187
  key: 0,
12188
12188
  "current-page": e.optionProvider.page,
@@ -12217,7 +12217,7 @@ function gm(e, t, a, l, o, i) {
12217
12217
  }, null, 8, ["modelValue", "dynamic-name", "data-provider", "user-state", "cancel-callback"])
12218
12218
  ], 64);
12219
12219
  }
12220
- const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-253f07d6"]]), vm = L({
12220
+ const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-4a348e2a"]]), vm = L({
12221
12221
  name: "SdCrudPopupForm",
12222
12222
  components: {},
12223
12223
  emits: ["update:modelValue", "change"],
@@ -12330,11 +12330,11 @@ const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-253f07d6
12330
12330
  this.initForm(this.userState.formStore[this.formId]);
12331
12331
  else if (this.useUserState.user) {
12332
12332
  const e = await De(this.formId, this.useUserState);
12333
- e.response && e.data ? e.data.dataid && this.initForm(e.data) : E.warning(e.message);
12333
+ e.response && e.data ? e.data.dataid && this.initForm(e.data) : N.warning(e.message);
12334
12334
  } else
12335
- E.warning("Unauthorized");
12335
+ N.warning("Unauthorized");
12336
12336
  else
12337
- E.warning("FormId not found.");
12337
+ N.warning("FormId not found.");
12338
12338
  },
12339
12339
  handleCancel() {
12340
12340
  this.cancelCallback && this.cancelCallback();
@@ -12343,7 +12343,7 @@ const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-253f07d6
12343
12343
  e.form_icon ? this.iconForm = e.form_icon : this.iconForm = "", e.form_version ? this.versionForm = e.form_version : this.versionForm = "";
12344
12344
  },
12345
12345
  initForm(e) {
12346
- 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 = "http://127.0.0.1:3005/api", this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user), this.allowUpdate = Re(this.sdformModel, this.initData, this.userState.user)), this.titleNameForm = this.sdformModel.form_name ? this.sdformModel.form_name : "", this.popupName = `${this.titleNameForm}`, this.sdformModel.form_options && this.sdformModel.form_options.popup_size && (this.popupWidth = `${this.sdformModel.form_options.popup_size}%`, this.popupWidthdefault = this.popupWidth), this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = "", this.loading?.close(), this.showContent = !0, this.popupWidth = ee(this.popupWidthdefault);
12346
+ 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.allowUpdate = Re(this.sdformModel, this.initData, this.userState.user)), this.titleNameForm = this.sdformModel.form_name ? this.sdformModel.form_name : "", this.popupName = `${this.titleNameForm}`, this.sdformModel.form_options && this.sdformModel.form_options.popup_size && (this.popupWidth = `${this.sdformModel.form_options.popup_size}%`, this.popupWidthdefault = this.popupWidth), this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = "", this.loading?.close(), this.showContent = !0, this.popupWidth = ee(this.popupWidthdefault);
12347
12347
  }
12348
12348
  }
12349
12349
  }), wm = {
@@ -12351,7 +12351,7 @@ const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-253f07d6
12351
12351
  class: "el-dialog__title"
12352
12352
  };
12353
12353
  function Fm(e, t, a, l, o, i) {
12354
- const d = Ze, u = ce, m = Nt, h = oe, b = co, _ = we;
12354
+ const d = Ze, u = ce, m = Et, h = oe, b = co, _ = we;
12355
12355
  return n(), p(_, {
12356
12356
  title: e.popupName,
12357
12357
  modelValue: e.showPopupFlag,
@@ -12366,7 +12366,7 @@ function Fm(e, t, a, l, o, i) {
12366
12366
  "destroy-on-close": !0
12367
12367
  }, {
12368
12368
  header: s(({ close: C, titleId: c, titleClass: M }) => [
12369
- V("span", wm, [
12369
+ P("span", wm, [
12370
12370
  e.iconForm != "" ? (n(), p(d, {
12371
12371
  key: 0,
12372
12372
  "svg-data": e.iconForm
@@ -12658,17 +12658,17 @@ const _m = /* @__PURE__ */ j(vm, [["render", Fm]]), Sm = L({
12658
12658
  this.initForm(this.userState.formStore[this.formId]);
12659
12659
  else if (this.useUserState.user) {
12660
12660
  const e = await De(this.formId, this.useUserState);
12661
- e.response && e.data ? e.data.dataid && this.initForm(e.data) : E.warning(e.message);
12661
+ e.response && e.data ? e.data.dataid && this.initForm(e.data) : N.warning(e.message);
12662
12662
  } else
12663
- E.warning("Unauthorized");
12663
+ N.warning("Unauthorized");
12664
12664
  else
12665
- E.warning("FormId not found");
12665
+ N.warning("FormId not found");
12666
12666
  },
12667
12667
  handleCancel() {
12668
12668
  this.cancelCallback && this.cancelCallback();
12669
12669
  },
12670
12670
  initForm(e) {
12671
- this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.showContent = !0, 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 = "http://127.0.0.1:3005/api", this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user), this.allowUpdate = Re(this.sdformModel, this.initData, this.userState.user)), this.titleNameForm = this.sdformModel.form_name ? this.sdformModel.form_name : "", this.popupName = `${this.titleNameForm}`, this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = "", this.popupWidth = ee(this.popupWidthdefault);
12671
+ this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.showContent = !0, 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.allowUpdate = Re(this.sdformModel, this.initData, this.userState.user)), this.titleNameForm = this.sdformModel.form_name ? this.sdformModel.form_name : "", this.popupName = `${this.titleNameForm}`, this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = "", this.popupWidth = ee(this.popupWidthdefault);
12672
12672
  }
12673
12673
  }
12674
12674
  }), km = {
@@ -12691,7 +12691,7 @@ function Cm(e, t, a, l, o, i) {
12691
12691
  "destroy-on-close": !0
12692
12692
  }, {
12693
12693
  header: s(({ close: b, titleId: _, titleClass: C }) => [
12694
- V("span", km, [
12694
+ P("span", km, [
12695
12695
  e.iconForm != "" ? (n(), p(d, {
12696
12696
  key: 0,
12697
12697
  "svg-data": e.iconForm
@@ -12888,9 +12888,9 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
12888
12888
  this.formModel = D(this.userState.formStore[this.formId]);
12889
12889
  else if (this.useUserState) {
12890
12890
  const e = await De(this.formId, this.useUserState);
12891
- e.response && e.data ? e.data.dataid && (this.userState.formStore[this.formId] = D(e.data), this.formModel = D(e.data)) : E.warning("Form not found.");
12891
+ e.response && e.data ? e.data.dataid && (this.userState.formStore[this.formId] = D(e.data), this.formModel = D(e.data)) : N.warning("Form not found.");
12892
12892
  } else
12893
- E.warning("UserState not found.");
12893
+ N.warning("UserState not found.");
12894
12894
  },
12895
12895
  setup(e, t) {
12896
12896
  return {
@@ -13034,7 +13034,7 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
13034
13034
  ).then((a) => {
13035
13035
  a && a.data && a.data.data && (this.rawData = D(a.data.data), this.multiItemsList(a.data.data), t && t(this.rawData)), this.loading = !1;
13036
13036
  }).catch((a) => {
13037
- a.response && a.response.data && a.response.data.message ? E.warning(a.response.data.message) : E.warning(a.message), this.loading = !1, this.itemsList = [];
13037
+ a.response && a.response.data && a.response.data.message ? N.warning(a.response.data.message) : N.warning(a.message), this.loading = !1, this.itemsList = [];
13038
13038
  });
13039
13039
  },
13040
13040
  async getDataOne(e, t) {
@@ -13062,8 +13062,8 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
13062
13062
  }
13063
13063
  }
13064
13064
  }
13065
- }), $m = ["innerHTML"], Tm = ["innerHTML"], Mm = ["innerHTML"], Vm = ["innerHTML"];
13066
- function Pm(e, t, a, l, o, i) {
13065
+ }), $m = ["innerHTML"], Tm = ["innerHTML"], Mm = ["innerHTML"], Pm = ["innerHTML"];
13066
+ function Vm(e, t, a, l, o, i) {
13067
13067
  const d = na, u = Dt, m = Ct;
13068
13068
  return n(), p(m, {
13069
13069
  ref: "refSelect",
@@ -13085,12 +13085,12 @@ function Pm(e, t, a, l, o, i) {
13085
13085
  me(e.$slots, "prefix")
13086
13086
  ]),
13087
13087
  label: s(({ label: h, value: b }) => [
13088
- V("div", {
13088
+ P("div", {
13089
13089
  innerHTML: e.htmlRender(h)
13090
- }, null, 8, Vm)
13090
+ }, null, 8, Pm)
13091
13091
  ]),
13092
13092
  default: s(() => [
13093
- e.optionsTemplate ? (n(!0), w(N, { key: 0 }, G(e.itemsList, (h) => (n(), p(u, {
13093
+ e.optionsTemplate ? (n(!0), w(E, { key: 0 }, G(e.itemsList, (h) => (n(), p(u, {
13094
13094
  key: h.value,
13095
13095
  label: h.label,
13096
13096
  value: h.value,
@@ -13107,13 +13107,13 @@ function Pm(e, t, a, l, o, i) {
13107
13107
  ]),
13108
13108
  _: 2
13109
13109
  }, 1032, ["label", "value"]))), 128)) : g("", !0),
13110
- e.optionsTemplate ? g("", !0) : (n(!0), w(N, { key: 1 }, G(e.itemsList, (h) => (n(), p(u, {
13110
+ e.optionsTemplate ? g("", !0) : (n(!0), w(E, { key: 1 }, G(e.itemsList, (h) => (n(), p(u, {
13111
13111
  key: h.value,
13112
13112
  label: h.label,
13113
13113
  value: h.value
13114
13114
  }, {
13115
13115
  default: s(() => [
13116
- V("div", {
13116
+ P("div", {
13117
13117
  innerHTML: e.htmlRender(h.label)
13118
13118
  }, null, 8, Mm)
13119
13119
  ]),
@@ -13141,7 +13141,7 @@ function Pm(e, t, a, l, o, i) {
13141
13141
  } : void 0
13142
13142
  ]), 1032, ["modelValue", "multiple", "multiple-limit", "placeholder", "remote-method", "loading", "suffix-icon", "onRemoveTag", "onClear", "onVisibleChange"]);
13143
13143
  }
13144
- const ja = /* @__PURE__ */ j(Im, [["render", Pm]]), Am = L({
13144
+ const ja = /* @__PURE__ */ j(Im, [["render", Vm]]), Am = L({
13145
13145
  name: "SdCrudSelect",
13146
13146
  components: {
13147
13147
  // SdSelectRemoteList,
@@ -13307,9 +13307,9 @@ const ja = /* @__PURE__ */ j(Im, [["render", Pm]]), Am = L({
13307
13307
  this.sdformModel = D(this.userState.formStore[this.formId]);
13308
13308
  else if (this.useUserState.user) {
13309
13309
  const e = await De(this.formId, this.useUserState);
13310
- e.response && e.data ? e.data.dataid && (this.userState.formStore[this.formId] = D(e.data), this.sdformModel = D(e.data)) : E.warning("Form not found.");
13310
+ e.response && e.data ? e.data.dataid && (this.userState.formStore[this.formId] = D(e.data), this.sdformModel = D(e.data)) : N.warning("Form not found.");
13311
13311
  } else
13312
- E.warning("Unauthorized");
13312
+ N.warning("Unauthorized");
13313
13313
  this.sdformModel._id && (this.viewBtnEnable = la(this.sdformModel, this.useUserState.user), this.insertBtnEnable = Oe(this.sdformModel, this.useUserState.user), this.selectInput.itemSelected && (this.updateBtnEnable = Re(this.sdformModel, this.selectInput.itemSelected, this.useUserState.user)));
13314
13314
  }
13315
13315
  },
@@ -13331,9 +13331,9 @@ const ja = /* @__PURE__ */ j(Im, [["render", Pm]]), Am = L({
13331
13331
  if (e) {
13332
13332
  this.formData = { ...e, ...this.formData }, this.formData.xversionx = this.sdformModel.form_version;
13333
13333
  const t = await dt(this.sdformModel.dataid, this.formData._id, this.formData, 1, this.useUserState), a = t.data;
13334
- a ? (a.dataid = this.formData._id, this.handleAferSaveForm(a, !1)) : E.warning(t.message);
13334
+ a ? (a.dataid = this.formData._id, this.handleAferSaveForm(a, !1)) : N.warning(t.message);
13335
13335
  } else
13336
- E.warning("Unable to create empty data");
13336
+ N.warning("Unable to create empty data");
13337
13337
  }
13338
13338
  }).catch((e) => {
13339
13339
  console.log(e);
@@ -13366,7 +13366,7 @@ const ja = /* @__PURE__ */ j(Im, [["render", Pm]]), Am = L({
13366
13366
  }
13367
13367
  }
13368
13368
  }), Om = { key: 2 };
13369
- function Em(e, t, a, l, o, i) {
13369
+ function Nm(e, t, a, l, o, i) {
13370
13370
  const d = oe, u = _m, m = ja;
13371
13371
  return n(), p(m, {
13372
13372
  ref: "selectInput",
@@ -13395,7 +13395,7 @@ function Em(e, t, a, l, o, i) {
13395
13395
  !e.readonly && !e.multiple && e.providerType == "FORM" && e.formBtnEnable ? {
13396
13396
  name: "prefix",
13397
13397
  fn: s(() => [
13398
- e.isInsert ? (n(), w(N, { key: 0 }, [
13398
+ e.isInsert ? (n(), w(E, { key: 0 }, [
13399
13399
  e.insertBtnEnable ? (n(), p(d, {
13400
13400
  key: 0,
13401
13401
  type: "success",
@@ -13406,7 +13406,7 @@ function Em(e, t, a, l, o, i) {
13406
13406
  onClick: R(e.handleOpenFormAdd, ["prevent"]),
13407
13407
  style: { margin: "0px" }
13408
13408
  }, null, 8, ["onClick"])) : g("", !0)
13409
- ], 64)) : (n(), w(N, { key: 1 }, [
13409
+ ], 64)) : (n(), w(E, { key: 1 }, [
13410
13410
  e.updateBtnEnable ? (n(), p(d, {
13411
13411
  key: 0,
13412
13412
  type: "primary",
@@ -13460,7 +13460,7 @@ function Em(e, t, a, l, o, i) {
13460
13460
  } : void 0
13461
13461
  ]), 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"]);
13462
13462
  }
13463
- const mg = /* @__PURE__ */ j(Am, [["render", Em]]), Nm = L({
13463
+ const mg = /* @__PURE__ */ j(Am, [["render", Nm]]), Em = L({
13464
13464
  name: "SdCrudSelectSubForm",
13465
13465
  components: {
13466
13466
  // SdSelectRemoteList,
@@ -13709,11 +13709,11 @@ const mg = /* @__PURE__ */ j(Am, [["render", Em]]), Nm = L({
13709
13709
  else if (this.useUserState.user)
13710
13710
  if (this.formId) {
13711
13711
  const e = await De(this.formId, this.useUserState);
13712
- e.response && e.data ? e.data.dataid && (this.userState.formStore[this.formId] = D(e.data), this.sdformModel = D(e.data)) : E.warning("Form not found.");
13712
+ e.response && e.data ? e.data.dataid && (this.userState.formStore[this.formId] = D(e.data), this.sdformModel = D(e.data)) : N.warning("Form not found.");
13713
13713
  } else
13714
- E.warning("Please select form.");
13714
+ N.warning("Please select form.");
13715
13715
  else
13716
- E.warning("Unauthorized");
13716
+ N.warning("Unauthorized");
13717
13717
  this.sdformModel._id && (this.viewBtnEnable = la(this.sdformModel, this.useUserState.user), this.insertBtnEnable = Oe(this.sdformModel, this.useUserState.user), this.selectInput && this.selectInput.itemSelected && (this.updateBtnEnable = Re(this.sdformModel, this.selectInput.itemSelected, this.useUserState.user)));
13718
13718
  }
13719
13719
  },
@@ -13734,9 +13734,9 @@ const mg = /* @__PURE__ */ j(Am, [["render", Em]]), Nm = L({
13734
13734
  if (e) {
13735
13735
  this.formData = { ...e, ...this.formData }, this.formData.xversionx = this.sdformModel.form_version;
13736
13736
  const t = await dt(this.sdformModel.dataid, this.formData._id, this.formData, 1, this.useUserState), a = t.data;
13737
- a ? (a.dataid = this.formData._id, this.handleAferSaveForm(a, !1)) : (this.disableAction = !1, E.warning(t.message));
13737
+ a ? (a.dataid = this.formData._id, this.handleAferSaveForm(a, !1)) : (this.disableAction = !1, N.warning(t.message));
13738
13738
  } else
13739
- this.disableAction = !1, E.warning("Unable to create empty data");
13739
+ this.disableAction = !1, N.warning("Unable to create empty data");
13740
13740
  }
13741
13741
  }).catch((e) => {
13742
13742
  this.disableAction = !1;
@@ -13819,7 +13819,7 @@ function Lm(e, t, a, l, o, i) {
13819
13819
  !e.disabled && !e.multiple && e.providerType == "FORM" && e.formBtnEnable && e.subFormOpen && e.dependOn ? {
13820
13820
  name: "prefix",
13821
13821
  fn: s(() => [
13822
- e.isInsert ? (n(), w(N, { key: 0 }, [
13822
+ e.isInsert ? (n(), w(E, { key: 0 }, [
13823
13823
  e.insertBtnEnable ? (n(), p(d, {
13824
13824
  key: 0,
13825
13825
  type: "success",
@@ -13830,7 +13830,7 @@ function Lm(e, t, a, l, o, i) {
13830
13830
  onClick: R(e.handleOpenFormAdd, ["prevent"]),
13831
13831
  style: { margin: "0px" }
13832
13832
  }, null, 8, ["onClick"])) : g("", !0)
13833
- ], 64)) : (n(), w(N, { key: 1 }, [
13833
+ ], 64)) : (n(), w(E, { key: 1 }, [
13834
13834
  e.updateBtnEnable ? (n(), p(d, {
13835
13835
  key: 0,
13836
13836
  type: "primary",
@@ -13867,7 +13867,7 @@ function Lm(e, t, a, l, o, i) {
13867
13867
  } : void 0
13868
13868
  ]), 1032, ["modelValue", "multiple", "allow-create", "placeholder", "enable-object-type", "disabled", "data-provider", "value-field", "search-field", "label-field", "ref-field", "limit", "value-object-id", "label-template", "options-template", "user-state", "build-state", "onRemoteMethod", "onVisibleChange", "onChange"]);
13869
13869
  }
13870
- const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
13870
+ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), yo = /* @__PURE__ */ L({
13871
13871
  __name: "SdSelectPathData",
13872
13872
  props: {
13873
13873
  modelValue: null,
@@ -14005,14 +14005,14 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
14005
14005
  let A = f[k], q = A[a.valueField] ? A[a.valueField] : k;
14006
14006
  a.sqlTag && (q = `\`${q}\``), _ && (q = `${_}${a.spaceChar}${q}`);
14007
14007
  let F = [];
14008
- for (const P of a.labelField) {
14009
- const T = A[P] = A[P] ? A[P] : P;
14008
+ for (const V of a.labelField) {
14009
+ const T = A[V] = A[V] ? A[V] : V;
14010
14010
  F.push(T);
14011
14011
  }
14012
14012
  let I = F.join(" ");
14013
14013
  if (a.labelTemplate !== "") {
14014
- const P = Na(A);
14015
- I = se(a.labelTemplate, P);
14014
+ const V = Ea(A);
14015
+ I = se(a.labelTemplate, V);
14016
14016
  }
14017
14017
  y.push({
14018
14018
  value: q,
@@ -14048,7 +14048,7 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
14048
14048
  return Ke(d, (_) => {
14049
14049
  o(_);
14050
14050
  }), (_, C) => {
14051
- const c = na, M = Dt, f = No, y = Ct;
14051
+ const c = na, M = Dt, f = Eo, y = Ct;
14052
14052
  return n(), p(y, {
14053
14053
  modelValue: d.value,
14054
14054
  "onUpdate:modelValue": C[1] || (C[1] = (k) => d.value = k),
@@ -14061,19 +14061,19 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
14061
14061
  multiple: e.multiple
14062
14062
  }, tt({
14063
14063
  default: s(() => [
14064
- e.groupField ? (n(!0), w(N, { key: 0 }, G(h.value, (k) => (n(), p(f, {
14064
+ e.groupField ? (n(!0), w(E, { key: 0 }, G(h.value, (k) => (n(), p(f, {
14065
14065
  key: k.label,
14066
14066
  label: k.label
14067
14067
  }, {
14068
14068
  default: s(() => [
14069
- (n(!0), w(N, null, G(k.options, (A) => (n(), p(M, {
14069
+ (n(!0), w(E, null, G(k.options, (A) => (n(), p(M, {
14070
14070
  key: A.value,
14071
14071
  label: A.label,
14072
14072
  value: A.value
14073
14073
  }, null, 8, ["label", "value"]))), 128))
14074
14074
  ]),
14075
14075
  _: 2
14076
- }, 1032, ["label"]))), 128)) : (n(!0), w(N, { key: 1 }, G(h.value, (k) => (n(), p(M, {
14076
+ }, 1032, ["label"]))), 128)) : (n(!0), w(E, { key: 1 }, G(h.value, (k) => (n(), p(M, {
14077
14077
  key: k.value,
14078
14078
  label: k.label,
14079
14079
  value: k.value
@@ -14169,7 +14169,7 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
14169
14169
  }
14170
14170
  const d = (u) => {
14171
14171
  u && u.validate(async (m) => {
14172
- m && (a.fieldName ? a.fieldName === o.value.fieldName ? (t.formDb.schema[o.value.fieldName] = o.value, i()) : t.formDb.schema[o.value.fieldName] ? E.warning("This field is already in the system.") : (t.formDb.schema[o.value.fieldName] = o.value, i()) : t.formDb.schema[o.value.fieldName] ? E.warning("This field is already in the system.") : (t.formDb.schema[o.value.fieldName] = o.value, i()));
14172
+ m && (a.fieldName ? a.fieldName === o.value.fieldName ? (t.formDb.schema[o.value.fieldName] = o.value, i()) : t.formDb.schema[o.value.fieldName] ? N.warning("This field is already in the system.") : (t.formDb.schema[o.value.fieldName] = o.value, i()) : t.formDb.schema[o.value.fieldName] ? N.warning("This field is already in the system.") : (t.formDb.schema[o.value.fieldName] = o.value, i()));
14173
14173
  });
14174
14174
  };
14175
14175
  return Je(() => {
@@ -14398,7 +14398,7 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
14398
14398
  }
14399
14399
  return (i, d) => {
14400
14400
  const u = oe, m = qe, h = Y("Link"), b = Ge, _ = Y("Aim"), C = Lt, c = Ye, M = Ie, f = Dt, y = Ct, k = kt, A = ze, q = da;
14401
- return Ve((n(), p(C, {
14401
+ return Pe((n(), p(C, {
14402
14402
  data: l.value,
14403
14403
  style: { width: "100%" }
14404
14404
  }, {
@@ -14502,7 +14502,7 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
14502
14502
  ]),
14503
14503
  _: 1
14504
14504
  }),
14505
- e.enableAction ? (n(), w(N, { key: 1 }, [
14505
+ e.enableAction ? (n(), w(E, { key: 1 }, [
14506
14506
  r(m, {
14507
14507
  prop: "width",
14508
14508
  label: "Width",
@@ -14832,7 +14832,7 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
14832
14832
  }), Rm = gn();
14833
14833
  async function zm(e) {
14834
14834
  try {
14835
- await Rm.toClipboard(e), E({
14835
+ await Rm.toClipboard(e), N({
14836
14836
  message: "Copied to clipboard",
14837
14837
  type: "success"
14838
14838
  });
@@ -14901,7 +14901,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
14901
14901
  return t.joinerField.field_name;
14902
14902
  },
14903
14903
  set(U) {
14904
- U.match(/^[a-z][a-z0-9_]+$/) ? t.joinerField.field_name = U : E.warning("Variables must be in English or numbers only and do not contain spaces.");
14904
+ U.match(/^[a-z][a-z0-9_]+$/) ? t.joinerField.field_name = U : N.warning("Variables must be in English or numbers only and do not contain spaces.");
14905
14905
  }
14906
14906
  });
14907
14907
  const b = le(() => t.joinerField && t.joinerField.label_fields ? t.joinerField.label_fields.join(", ") : "");
@@ -15012,7 +15012,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15012
15012
  function I() {
15013
15013
  a.showPopupJoiner = !0;
15014
15014
  }
15015
- function P() {
15015
+ function V() {
15016
15016
  if (t.joinerField.form_id && t.joinerField.form_id.value) {
15017
15017
  T();
15018
15018
  for (const U in t.joinerField.form_id)
@@ -15122,7 +15122,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15122
15122
  }
15123
15123
  t.joinerField.ref_fields && t.joinerField.ref_fields.forEach((U) => {
15124
15124
  const v = t.joinerField.field_name + "." + U;
15125
- if (Pu.includes(U))
15125
+ if (Vu.includes(U))
15126
15126
  t.formDb.schema[v] = {
15127
15127
  fieldName: v,
15128
15128
  label: v,
@@ -15202,7 +15202,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15202
15202
  function H(U) {
15203
15203
  U && U.validate(async (v) => {
15204
15204
  if (v) {
15205
- if (t.joinerField.joiner_enable = !0, a.defaultJoiner = D(t.joinerField), P(), q(), !a.isInsert && a.oldParentField !== t.joinerField.field_name) {
15205
+ if (t.joinerField.joiner_enable = !0, a.defaultJoiner = D(t.joinerField), V(), q(), !a.isInsert && a.oldParentField !== t.joinerField.field_name) {
15206
15206
  const x = {
15207
15207
  [a.oldParentField]: t.joinerField.field_name
15208
15208
  };
@@ -15215,7 +15215,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15215
15215
  a.oldParentField = t.joinerField.field_name, t.autoSave && t.autoSave();
15216
15216
  },
15217
15217
  () => {
15218
- E.warning("Schema update error occurred");
15218
+ N.warning("Schema update error occurred");
15219
15219
  }
15220
15220
  );
15221
15221
  }
@@ -15236,7 +15236,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15236
15236
  function W(U) {
15237
15237
  U && (U.resetFields(), t.joinerField.form_parent = D(a.defaultJoiner.form_parent), t.joinerField.joiner_enable = D(a.defaultJoiner.joiner_enable), t.joinerField.joiner_label = D(a.defaultJoiner.joiner_label), t.joinerField.joiner_variable = D(a.defaultJoiner.joiner_variable), t.joinerField.form_id = D(a.defaultJoiner.form_id), t.joinerField.field_name = D(a.defaultJoiner.field_name), t.joinerField.label_fields = D(a.defaultJoiner.label_fields), t.joinerField.label_template = D(a.defaultJoiner.label_template), t.joinerField.search_fields = D(a.defaultJoiner.search_fields), t.joinerField.ref_fields = D(a.defaultJoiner.ref_fields), t.joinerField.sql_filter = D(a.defaultJoiner.sql_filter), t.joinerField.order_by = D(a.defaultJoiner.order_by), t.joinerField.ref_form = D(a.defaultJoiner.ref_form), t.joinerField.form_id && t.joinerField.form_id.value && y(t.joinerField.form_id.value));
15238
15238
  }
15239
- function Ee(U, v) {
15239
+ function Ne(U, v) {
15240
15240
  he.confirm("Are you sure you want to delete this item?", "Confirmation", {
15241
15241
  confirmButtonText: "OK",
15242
15242
  cancelButtonText: "Cancel",
@@ -15283,8 +15283,8 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15283
15283
  });
15284
15284
  }
15285
15285
  return (U, v) => {
15286
- const x = oe, J = El, re = Ol, je = ra, it = ce, Fe = ze, ie = at, nt = St, st = Nt, Ne = Ie, wa = Et, Ua = Ye, Ra = Bo, za = Lo, ne = qe, vo = Y("Link"), Wt = Ge, wo = Y("Aim"), qa = Lt, _e = Dt, Mt = Ct, ct = kt, Fo = ga, _o = ja, be = pt, Fa = yo, Ha = Y("InfoFilled"), So = sa, ko = Al, Co = Y("draggable"), Do = ut, xt = we, Io = Y("sd-form-schema", !0), $o = Um, To = jm, Mo = da;
15287
- return n(), w(N, null, [
15286
+ const x = oe, J = Nl, re = Ol, je = ra, it = ce, Fe = ze, ie = at, nt = St, st = Et, Ee = Ie, wa = Nt, Ua = Ye, Ra = Bo, za = Lo, ne = qe, vo = Y("Link"), Wt = Ge, wo = Y("Aim"), qa = Lt, _e = Dt, Mt = Ct, ct = kt, Fo = ga, _o = ja, be = pt, Fa = yo, Ha = Y("InfoFilled"), So = sa, ko = Al, Co = Y("draggable"), Do = ut, xt = we, Io = Y("sd-form-schema", !0), $o = Um, To = jm, Mo = da;
15287
+ return n(), w(E, null, [
15288
15288
  r(re, {
15289
15289
  title: "Parent Form",
15290
15290
  column: 3,
@@ -15451,7 +15451,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15451
15451
  })
15452
15452
  ]),
15453
15453
  default: s(() => [
15454
- V("div", null, [
15454
+ P("div", null, [
15455
15455
  r(nt, { gutter: 10 }, {
15456
15456
  default: s(() => [
15457
15457
  r(ie, { span: 2 }, {
@@ -15521,7 +15521,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15521
15521
  ]),
15522
15522
  _: 1
15523
15523
  }),
15524
- (n(!0), w(N, null, G(e.formDb.autonum, ($) => (n(), p(nt, {
15524
+ (n(!0), w(E, null, G(e.formDb.autonum, ($) => (n(), p(nt, {
15525
15525
  gutter: 10,
15526
15526
  style: { "margin-bottom": "10px" }
15527
15527
  }, {
@@ -15590,7 +15590,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15590
15590
  }, 1024),
15591
15591
  r(ie, { span: 3 }, {
15592
15592
  default: s(() => [
15593
- r(Ne, {
15593
+ r(Ee, {
15594
15594
  modelValue: $.prefix,
15595
15595
  "onUpdate:modelValue": (X) => $.prefix = X,
15596
15596
  disabled: !0
@@ -15600,7 +15600,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15600
15600
  }, 1024),
15601
15601
  r(ie, { span: 3 }, {
15602
15602
  default: s(() => [
15603
- r(Ne, {
15603
+ r(Ee, {
15604
15604
  modelValue: $.suffix,
15605
15605
  "onUpdate:modelValue": (X) => $.suffix = X,
15606
15606
  disabled: !0
@@ -15672,7 +15672,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15672
15672
  ]),
15673
15673
  _: 1
15674
15674
  }, 8, ["modelValue"])) : g("", !0),
15675
- Ve((n(), p(qa, {
15675
+ Pe((n(), p(qa, {
15676
15676
  data: c.value,
15677
15677
  style: { width: "100%" }
15678
15678
  }, {
@@ -15738,7 +15738,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15738
15738
  size: "small",
15739
15739
  title: "Remove",
15740
15740
  icon: "Delete",
15741
- onClick: R((X) => Ee($.row, $.$index), ["prevent"])
15741
+ onClick: R((X) => Ne($.row, $.$index), ["prevent"])
15742
15742
  }, null, 8, ["onClick"]),
15743
15743
  $.row.component === "custom-input" || $.row.joinerType ? (n(), p(x, {
15744
15744
  key: 2,
@@ -15879,14 +15879,14 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15879
15879
  ]),
15880
15880
  _: 1
15881
15881
  }),
15882
- e.enableAction ? (n(), w(N, { key: 1 }, [
15882
+ e.enableAction ? (n(), w(E, { key: 1 }, [
15883
15883
  r(ne, {
15884
15884
  prop: "width",
15885
15885
  label: "Width",
15886
15886
  "min-width": 100
15887
15887
  }, {
15888
15888
  default: s(($) => [
15889
- r(Ne, {
15889
+ r(Ee, {
15890
15890
  modelValue: $.row.width,
15891
15891
  "onUpdate:modelValue": (X) => $.row.width = X,
15892
15892
  maxlength: "3",
@@ -15984,7 +15984,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15984
15984
  "min-width": 90
15985
15985
  }, {
15986
15986
  default: s(($) => [
15987
- r(Ne, {
15987
+ r(Ee, {
15988
15988
  modelValue: $.row.wrapText,
15989
15989
  "onUpdate:modelValue": (X) => $.row.wrapText = X,
15990
15990
  maxlength: "2",
@@ -16268,7 +16268,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16268
16268
  "destroy-on-close": !0
16269
16269
  }, {
16270
16270
  footer: s(() => [
16271
- V("div", xm, [
16271
+ P("div", xm, [
16272
16272
  r(x, {
16273
16273
  onClick: v[20] || (v[20] = R(($) => H(l.value), ["prevent"])),
16274
16274
  type: "success",
@@ -16350,7 +16350,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16350
16350
  required: ""
16351
16351
  }, {
16352
16352
  default: s(() => [
16353
- r(Ne, {
16353
+ r(Ee, {
16354
16354
  modelValue: e.joinerField.joiner_label,
16355
16355
  "onUpdate:modelValue": v[5] || (v[5] = ($) => e.joinerField.joiner_label = $)
16356
16356
  }, null, 8, ["modelValue"])
@@ -16376,7 +16376,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16376
16376
  prop: "joiner_variable"
16377
16377
  }, {
16378
16378
  default: s(() => [
16379
- r(Ne, {
16379
+ r(Ee, {
16380
16380
  modelValue: e.joinerField.joiner_variable,
16381
16381
  "onUpdate:modelValue": v[6] || (v[6] = ($) => e.joinerField.joiner_variable = $),
16382
16382
  disabled: !0
@@ -16399,7 +16399,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16399
16399
  required: ""
16400
16400
  }, {
16401
16401
  default: s(() => [
16402
- r(Ne, {
16402
+ r(Ee, {
16403
16403
  modelValue: e.joinerField.field_name,
16404
16404
  "onUpdate:modelValue": v[7] || (v[7] = ($) => e.joinerField.field_name = $)
16405
16405
  }, null, 8, ["modelValue"])
@@ -16458,7 +16458,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16458
16458
  prop: "joiner_hint"
16459
16459
  }, {
16460
16460
  default: s(() => [
16461
- r(Ne, {
16461
+ r(Ee, {
16462
16462
  modelValue: e.joinerField.joiner_hint,
16463
16463
  "onUpdate:modelValue": v[10] || (v[10] = ($) => e.joinerField.joiner_hint = $)
16464
16464
  }, null, 8, ["modelValue"])
@@ -16511,7 +16511,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16511
16511
  prop: "joiner_placeholder"
16512
16512
  }, {
16513
16513
  default: s(() => [
16514
- r(Ne, {
16514
+ r(Ee, {
16515
16515
  modelValue: e.joinerField.joiner_placeholder,
16516
16516
  "onUpdate:modelValue": v[13] || (v[13] = ($) => e.joinerField.joiner_placeholder = $)
16517
16517
  }, null, 8, ["modelValue"])
@@ -16619,7 +16619,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16619
16619
  default: s(() => [
16620
16620
  r(be, { label: "Attributes ( Fields Name )" }, {
16621
16621
  default: s(() => [
16622
- (n(!0), w(N, null, G(a.subSchema, ($) => (n(), p(x, {
16622
+ (n(!0), w(E, null, G(a.subSchema, ($) => (n(), p(x, {
16623
16623
  color: "#626aef",
16624
16624
  size: "small",
16625
16625
  dark: a.isDark,
@@ -16665,7 +16665,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16665
16665
  })
16666
16666
  ]),
16667
16667
  default: s(() => [
16668
- r(Ne, {
16668
+ r(Ee, {
16669
16669
  modelValue: e.joinerField.label_template,
16670
16670
  "onUpdate:modelValue": v[18] || (v[18] = ($) => e.joinerField.label_template = $)
16671
16671
  }, null, 8, ["modelValue"])
@@ -16720,7 +16720,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16720
16720
  })
16721
16721
  ]),
16722
16722
  default: s(() => [
16723
- r(Ne, {
16723
+ r(Ee, {
16724
16724
  modelValue: e.joinerField.sql_filter,
16725
16725
  "onUpdate:modelValue": v[19] || (v[19] = ($) => e.joinerField.sql_filter = $),
16726
16726
  placeholder: "`field_name` = :param_name AND `field_name.sub_name` = :param_name2"
@@ -16733,7 +16733,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16733
16733
  class: "option-items-pane"
16734
16734
  }, {
16735
16735
  default: s(() => [
16736
- V("div", Hm, [
16736
+ P("div", Hm, [
16737
16737
  r(Co, ae({
16738
16738
  tag: "ul",
16739
16739
  list: e.joinerField.order_by,
@@ -16744,7 +16744,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16744
16744
  handle: ".drag-option"
16745
16745
  }), {
16746
16746
  item: s(({ element: $, index: X }) => [
16747
- V("li", Wm, [
16747
+ P("li", Wm, [
16748
16748
  r(ko, {
16749
16749
  modelValue: $.column,
16750
16750
  "onUpdate:modelValue": (Kt) => $.column = Kt,
@@ -16843,7 +16843,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16843
16843
  "destroy-on-close": !1
16844
16844
  }, {
16845
16845
  footer: s(() => [
16846
- V("div", Gm, [
16846
+ P("div", Gm, [
16847
16847
  r(x, {
16848
16848
  onClick: v[23] || (v[23] = ($) => a.showDataDicDialogFlag = !1)
16849
16849
  }, {
@@ -16883,7 +16883,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16883
16883
  "destroy-on-close": !1
16884
16884
  }, {
16885
16885
  footer: s(() => [
16886
- V("div", Jm, [
16886
+ P("div", Jm, [
16887
16887
  r(x, {
16888
16888
  onClick: v[25] || (v[25] = ($) => a.showSchemaFlag = !1)
16889
16889
  }, {
@@ -17002,11 +17002,11 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
17002
17002
  this.initForm(this.userState.formStore[this.formId]);
17003
17003
  else if (this.useUserState.user) {
17004
17004
  const e = await De(this.formId, this.useUserState);
17005
- e.response && e.data ? e.data.dataid && this.initForm(e.data) : E.warning("Form not found");
17005
+ e.response && e.data ? e.data.dataid && this.initForm(e.data) : N.warning("Form not found");
17006
17006
  } else
17007
- E.warning("Unauthorized.");
17007
+ N.warning("Unauthorized.");
17008
17008
  else
17009
- E.warning("FormId not found");
17009
+ N.warning("FormId not found");
17010
17010
  },
17011
17011
  handleCancel() {
17012
17012
  this.cancelCallback && this.cancelCallback();
@@ -17035,7 +17035,7 @@ function lf(e, t, a, l, o, i) {
17035
17035
  "destroy-on-close": !0
17036
17036
  }, {
17037
17037
  header: s(({ close: _, titleId: C, titleClass: c }) => [
17038
- V("span", tf, [
17038
+ P("span", tf, [
17039
17039
  e.iconForm != "" ? (n(), p(d, {
17040
17040
  key: 0,
17041
17041
  "svg-data": e.iconForm
@@ -17047,7 +17047,7 @@ function lf(e, t, a, l, o, i) {
17047
17047
  ])
17048
17048
  ]),
17049
17049
  footer: s(() => [
17050
- V("div", af, [
17050
+ P("div", af, [
17051
17051
  r(h, {
17052
17052
  onClick: R(e.handleCancel, ["prevent"])
17053
17053
  }, {
@@ -17113,7 +17113,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17113
17113
  }
17114
17114
  });
17115
17115
  Ke(i, (C, c) => {
17116
- C == "number-editor" ? typeof !a.modelValue == "number" && (l.stringList.includes(c) ? u.value = isNaN(u.value) ? void 0 : Number(u.value) : u.value = void 0) : l.stringList.includes(C) ? typeof !a.modelValue == "string" && (l.arrayList.includes(c) || c == "json-editor" ? u.value = String(a.modelValue).toString() : u.value = String(u.value)) : C == "boolean-editor" ? typeof !a.modelValue == "boolean" && (l.stringList.includes(c) ? u.value = Nn(u.value) : c == "number-editor" ? u.value = u.value > 0 : u.value = !!(u.value && !Ea(u.value))) : l.arrayList.includes(C) ? typeof !a.modelValue == "object" && (l.arrayList.includes(c) || (u.value = [])) : C == "json-editor" && typeof !a.modelValue == "object" && (l.arrayList.includes(c) || (u.value = [])), l.inputType = C;
17116
+ C == "number-editor" ? typeof !a.modelValue == "number" && (l.stringList.includes(c) ? u.value = isNaN(u.value) ? void 0 : Number(u.value) : u.value = void 0) : l.stringList.includes(C) ? typeof !a.modelValue == "string" && (l.arrayList.includes(c) || c == "json-editor" ? u.value = String(a.modelValue).toString() : u.value = String(u.value)) : C == "boolean-editor" ? typeof !a.modelValue == "boolean" && (l.stringList.includes(c) ? u.value = En(u.value) : c == "number-editor" ? u.value = u.value > 0 : u.value = !!(u.value && !Na(u.value))) : l.arrayList.includes(C) ? typeof !a.modelValue == "object" && (l.arrayList.includes(c) || (u.value = [])) : C == "json-editor" && typeof !a.modelValue == "object" && (l.arrayList.includes(c) || (u.value = [])), l.inputType = C;
17117
17117
  }), Ke(d, (C, c) => {
17118
17118
  l.inputOptions = C;
17119
17119
  }), Je(() => {
@@ -17130,8 +17130,8 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17130
17130
  m("blur", C);
17131
17131
  }
17132
17132
  return (C, c) => {
17133
- const M = Ie, f = Et, y = Nl, k = jo, A = kt, q = Dt, F = Ct, I = Ro, P = Uo, T = $a, H = ga, Z = An;
17134
- return n(), w(N, null, [
17133
+ const M = Ie, f = Nt, y = El, k = jo, A = kt, q = Dt, F = Ct, I = Ro, V = Uo, T = $a, H = ga, Z = An;
17134
+ return n(), w(E, null, [
17135
17135
  l.inputType === "text-editor" ? (n(), p(M, ae({
17136
17136
  key: 0,
17137
17137
  modelValue: u.value,
@@ -17244,7 +17244,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17244
17244
  onChange: h
17245
17245
  }), {
17246
17246
  default: s(() => [
17247
- (n(!0), w(N, null, G(e.dataList, (W) => (n(), p(q, {
17247
+ (n(!0), w(E, null, G(e.dataList, (W) => (n(), p(q, {
17248
17248
  key: W.value,
17249
17249
  label: W.label,
17250
17250
  value: W.value ? W.value : ""
@@ -17252,7 +17252,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17252
17252
  ]),
17253
17253
  _: 1
17254
17254
  }, 16, ["modelValue", "size", "disabled"])) : g("", !0),
17255
- l.inputType === "radio-editor" ? (n(), p(P, ae({
17255
+ l.inputType === "radio-editor" ? (n(), p(V, ae({
17256
17256
  key: 8,
17257
17257
  modelValue: u.value,
17258
17258
  "onUpdate:modelValue": c[8] || (c[8] = (W) => u.value = W)
@@ -17264,7 +17264,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17264
17264
  onChange: h
17265
17265
  }), {
17266
17266
  default: s(() => [
17267
- (n(!0), w(N, null, G(e.dataList, (W) => (n(), p(I, {
17267
+ (n(!0), w(E, null, G(e.dataList, (W) => (n(), p(I, {
17268
17268
  key: W.value,
17269
17269
  value: W.value ? W.value : "",
17270
17270
  label: W.label
@@ -17286,7 +17286,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17286
17286
  onChange: h
17287
17287
  }), {
17288
17288
  default: s(() => [
17289
- (n(!0), w(N, null, G(e.dataList, (W) => (n(), p(q, {
17289
+ (n(!0), w(E, null, G(e.dataList, (W) => (n(), p(q, {
17290
17290
  key: W.value,
17291
17291
  label: W.label,
17292
17292
  value: W.value ? W.value : ""
@@ -17490,17 +17490,17 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17490
17490
  _(l.userState.formStore[l.formId]);
17491
17491
  else if (o.useUserState) {
17492
17492
  const C = await De(l.formId, o.useUserState);
17493
- C.response && C.data ? C.data.dataid && _(C.data) : E.warning("Form not found.");
17493
+ C.response && C.data ? C.data.dataid && _(C.data) : N.warning("Form not found.");
17494
17494
  } else
17495
- E.warning("UserState not found.");
17495
+ N.warning("UserState not found.");
17496
17496
  else
17497
- E.warning("FormId not found.");
17497
+ N.warning("FormId not found.");
17498
17498
  }
17499
17499
  function b() {
17500
17500
  l.cancelCallback && (l.cancelCallback(), o.showContent = !1);
17501
17501
  }
17502
17502
  async function _(C) {
17503
- o.showContent = !1, o.sdformModel = C, l.userState.formStore[l.formId] = o.sdformModel, l.fixApiUrl && l.fixApiUrl != "" ? o.apiUrl = l.fixApiUrl : o.sdformModel.form_db.api_url && o.sdformModel.form_db.api_url != "" ? o.apiUrl = o.sdformModel.form_db.api_url : o.apiUrl = "http://127.0.0.1:3005/api", o.titleNameForm = o.sdformModel.form_name ? o.sdformModel.form_name : "", o.popupName = `${o.titleNameForm}`, o.sdformModel.form_icon ? o.iconForm = o.sdformModel.form_icon : o.iconForm = "", o.popupWidth = ee(o.popupWidthdefault);
17503
+ o.showContent = !1, o.sdformModel = C, l.userState.formStore[l.formId] = o.sdformModel, l.fixApiUrl && l.fixApiUrl != "" ? o.apiUrl = l.fixApiUrl : o.sdformModel.form_db.api_url && o.sdformModel.form_db.api_url != "" ? o.apiUrl = o.sdformModel.form_db.api_url : o.apiUrl = window.APP_CONFIG.API_URL, o.titleNameForm = o.sdformModel.form_name ? o.sdformModel.form_name : "", o.popupName = `${o.titleNameForm}`, o.sdformModel.form_icon ? o.iconForm = o.sdformModel.form_icon : o.iconForm = "", o.popupWidth = ee(o.popupWidthdefault);
17504
17504
  let c = o.sdformModel._id;
17505
17505
  o.sdformModel.joiner_field.joiner_enable && (c = o.sdformModel.joiner_field.form_parent), await l.userState.crudGetAll({ sdProvider: { providerId: "get-erd-list", providerType: "SYS", params: { parent: c } }, totalEnable: !1 }, async (M) => {
17506
17506
  o.formList = D(M.data);
@@ -17556,7 +17556,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17556
17556
  "destroy-on-close": !0
17557
17557
  }, {
17558
17558
  header: s(({ close: k, titleId: A, titleClass: q }) => [
17559
- V("span", nf, [
17559
+ P("span", nf, [
17560
17560
  o.iconForm != "" ? (n(), p(M, {
17561
17561
  key: 0,
17562
17562
  "svg-data": o.iconForm
@@ -17568,7 +17568,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17568
17568
  ])
17569
17569
  ]),
17570
17570
  default: s(() => [
17571
- V("div", sf, [
17571
+ P("div", sf, [
17572
17572
  o.showContent ? (n(), p(de(ii), {
17573
17573
  key: 0,
17574
17574
  nodes: o.nodes,
@@ -17580,7 +17580,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17580
17580
  "fit-view-on-init": ""
17581
17581
  }, {
17582
17582
  "node-special": s((k) => [
17583
- V("div", {
17583
+ P("div", {
17584
17584
  class: "vue-flow__node-default",
17585
17585
  style: te({
17586
17586
  width: "200px",
@@ -17590,7 +17590,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17590
17590
  borderColor: `var(--el-color-${k.data.curNode ? "warning" : "success"}-light-8)`
17591
17591
  })
17592
17592
  }, [
17593
- V("div", null, [
17593
+ P("div", null, [
17594
17594
  k.data.icon && k.data.icon != "" ? (n(), p(M, {
17595
17595
  key: 0,
17596
17596
  "svg-data": k.data.icon
@@ -17784,7 +17784,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17784
17784
  ).then((a) => {
17785
17785
  a && a.data && a.data.data && (this.rawData = D(a.data.data), this.total = a.data.total, this.offset = a.data.offset, this.totalPage = a.data.data.length, t && t(this.rawData), a.data.dataSum && a.data.dataSum[0] && (this.sumEnable = !0, this.sumData = a.data.dataSum[0])), this.preLoading = !1;
17786
17786
  }).catch((a) => {
17787
- a.response && a.response.data && a.response.data.message ? E.warning(a.response.data.message) : E.warning(a.message), this.preLoading = !1;
17787
+ a.response && a.response.data && a.response.data.message ? N.warning(a.response.data.message) : N.warning(a.message), this.preLoading = !1;
17788
17788
  });
17789
17789
  },
17790
17790
  loadExpand(e, t, a) {
@@ -17808,7 +17808,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17808
17808
  this.total = this.total + i.length, this.totalPage = this.totalPage + i.length, a(i);
17809
17809
  }
17810
17810
  }).catch((o) => {
17811
- o.response && o.response.data && o.response.data.message ? E.warning(o.response.data.message) : E.warning(o.message);
17811
+ o.response && o.response.data && o.response.data.message ? N.warning(o.response.data.message) : N.warning(o.message);
17812
17812
  }));
17813
17813
  }
17814
17814
  },
@@ -17893,7 +17893,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17893
17893
  for (const t in e)
17894
17894
  if (Object.prototype.hasOwnProperty.call(e, t)) {
17895
17895
  let a = e[t];
17896
- Ea(a) ? delete this.optionProvider.fileter[t] : (this.optionProvider.fileter || (this.optionProvider.fileter = {}), this.optionProvider.fileter[t] = a);
17896
+ Na(a) ? delete this.optionProvider.fileter[t] : (this.optionProvider.fileter || (this.optionProvider.fileter = {}), this.optionProvider.fileter[t] = a);
17897
17897
  }
17898
17898
  this.expandProvider && this.resetExpand(), this.dataProvider.options = this.optionProvider, this.getDataList(this.dataProvider);
17899
17899
  },
@@ -17922,9 +17922,9 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17922
17922
  sdProvider: this.dataProvider
17923
17923
  }
17924
17924
  }).then((l) => {
17925
- this.expandProvider && e[this.expandCountChildrenName] ? (this.resetExpand(), this.afterDelete && this.afterDelete(e, t)) : (this.rawData.splice(t, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1, this.afterDelete && this.afterDelete(e, t)), l && l.data && l.data.message ? E.success(l.data.message) : E.success("Delete completed.");
17925
+ this.expandProvider && e[this.expandCountChildrenName] ? (this.resetExpand(), this.afterDelete && this.afterDelete(e, t)) : (this.rawData.splice(t, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1, this.afterDelete && this.afterDelete(e, t)), l && l.data && l.data.message ? N.success(l.data.message) : N.success("Delete completed.");
17926
17926
  }).catch((l) => {
17927
- l.response && l.response.data && l.response.data.message ? E.warning(l.response.data.message) : E.warning(l.message);
17927
+ l.response && l.response.data && l.response.data.message ? N.warning(l.response.data.message) : N.warning(l.message);
17928
17928
  });
17929
17929
  }).catch(() => {
17930
17930
  });
@@ -17950,9 +17950,9 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17950
17950
  }
17951
17951
  }
17952
17952
  ).then((i) => {
17953
- l(e), E.success("Edit value completed.");
17953
+ l(e), N.success("Edit value completed.");
17954
17954
  }).catch((i) => {
17955
- i.response && i.response.data && i.response.data.message ? E.warning(i.response.data.message) : E.warning(i.message);
17955
+ i.response && i.response.data && i.response.data.message ? N.warning(i.response.data.message) : N.warning(i.message);
17956
17956
  });
17957
17957
  }).catch(() => {
17958
17958
  });
@@ -17986,17 +17986,17 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17986
17986
  }, bf = { class: "card-footer" }, gf = { key: 0 };
17987
17987
  function yf(e, t, a, l, o, i) {
17988
17988
  const d = ce, u = ze, m = oe, h = at, b = Ie, _ = ia, C = St, c = qe, M = Lt, f = Ma, y = we, k = da;
17989
- return n(), w(N, null, [
17989
+ return n(), w(E, null, [
17990
17990
  r(f, {
17991
17991
  class: "box-card",
17992
17992
  shadow: "never"
17993
17993
  }, {
17994
17994
  header: s(() => [
17995
- V("div", uf, [
17995
+ P("div", uf, [
17996
17996
  e.iconName != "" || e.titleName != "" ? (n(), w("div", pf, [
17997
17997
  r(u, { truncated: "" }, {
17998
17998
  default: s(() => [
17999
- V("span", mf, [
17999
+ P("span", mf, [
18000
18000
  e.iconName != "" ? (n(), p(d, {
18001
18001
  key: 0,
18002
18002
  "icon-name": e.iconName
@@ -18006,7 +18006,7 @@ function yf(e, t, a, l, o, i) {
18006
18006
  ]),
18007
18007
  _: 1
18008
18008
  }),
18009
- V("span", ff, [
18009
+ P("span", ff, [
18010
18010
  me(e.$slots, "actionsBar", {}, void 0, !0)
18011
18011
  ])
18012
18012
  ])) : g("", !0),
@@ -18034,7 +18034,7 @@ function yf(e, t, a, l, o, i) {
18034
18034
  }, 8, ["onClick"])) : g("", !0),
18035
18035
  t[4] || (t[4] = S()),
18036
18036
  me(e.$slots, "actions", {}, void 0, !0),
18037
- e.totalInline ? (n(), w(N, { key: 1 }, [
18037
+ e.totalInline ? (n(), w(E, { key: 1 }, [
18038
18038
  r(m, {
18039
18039
  type: "info",
18040
18040
  plain: "",
@@ -18042,10 +18042,10 @@ function yf(e, t, a, l, o, i) {
18042
18042
  onClick: e.handleRefresh,
18043
18043
  class: "mr-1"
18044
18044
  }, null, 8, ["onClick"]),
18045
- V("span", hf, [
18045
+ P("span", hf, [
18046
18046
  r(u, { "line-clamp": 2 }, {
18047
18047
  default: s(() => [
18048
- V("span", null, O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items.", 1)
18048
+ P("span", null, O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items.", 1)
18049
18049
  ]),
18050
18050
  _: 1
18051
18051
  })
@@ -18114,7 +18114,7 @@ function yf(e, t, a, l, o, i) {
18114
18114
  style: { "text-align": "right" }
18115
18115
  }, {
18116
18116
  default: s(() => [
18117
- V("span", cf, [
18117
+ P("span", cf, [
18118
18118
  r(u, { "line-clamp": "2" }, {
18119
18119
  default: s(() => [
18120
18120
  S(" Showing " + O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items. ", 1)
@@ -18137,7 +18137,7 @@ function yf(e, t, a, l, o, i) {
18137
18137
  ])
18138
18138
  ]),
18139
18139
  default: s(() => [
18140
- Ve((n(), p(M, {
18140
+ Pe((n(), p(M, {
18141
18141
  ref: "tableRef",
18142
18142
  data: e.rawData,
18143
18143
  stripe: "",
@@ -18202,7 +18202,7 @@ function yf(e, t, a, l, o, i) {
18202
18202
  }, 8, ["data", "border", "show-summary", "summary-method", "onSortChange", "height", "max-height", "row-key", "onExpandChange", "lazy", "load", "tree-props", "onFilterChange"])), [
18203
18203
  [k, e.preLoading]
18204
18204
  ]),
18205
- V("div", bf, [
18205
+ P("div", bf, [
18206
18206
  e.total > e.limit ? (n(), p(_, {
18207
18207
  key: 0,
18208
18208
  "current-page": e.optionProvider.page,
@@ -21823,10 +21823,10 @@ function $f(e, t, a, l, o, i) {
21823
21823
  class: "mr-1"
21824
21824
  }, null, 8, ["icon-name"]),
21825
21825
  t[1] || (t[1] = S()),
21826
- V("span", Df, O(h), 1)
21826
+ P("span", Df, O(h), 1)
21827
21827
  ]),
21828
21828
  default: s(() => [
21829
- (n(!0), w(N, null, G(e.itemsData, (h) => (n(), p(u, {
21829
+ (n(!0), w(E, null, G(e.itemsData, (h) => (n(), p(u, {
21830
21830
  key: h.value,
21831
21831
  label: h.label,
21832
21832
  value: h.value
@@ -21838,7 +21838,7 @@ function $f(e, t, a, l, o, i) {
21838
21838
  class: "mr-1"
21839
21839
  }, null, 8, ["icon-name"]),
21840
21840
  t[2] || (t[2] = S()),
21841
- V("span", If, O(h.label), 1)
21841
+ P("span", If, O(h.label), 1)
21842
21842
  ]),
21843
21843
  _: 2
21844
21844
  }, 1032, ["label", "value"]))), 128))
@@ -21913,12 +21913,12 @@ const vg = /* @__PURE__ */ j(Cf, [["render", $f]]), Tf = L({
21913
21913
  })) : this.optionItems = [], this.showImportDialogFlag = !1;
21914
21914
  }
21915
21915
  }
21916
- }), Mf = { class: "option-items-pane" }, Vf = { class: "opt-item" }, Pf = { key: 1 }, Af = {
21916
+ }), Mf = { class: "option-items-pane" }, Pf = { class: "opt-item" }, Vf = { key: 1 }, Af = {
21917
21917
  key: 3,
21918
21918
  class: ""
21919
21919
  }, Of = { class: "dialog-footer" };
21920
- function Ef(e, t, a, l, o, i) {
21921
- const d = Ie, u = ce, m = oe, h = Y("draggable"), b = ze, _ = Vl, C = we;
21920
+ function Nf(e, t, a, l, o, i) {
21921
+ const d = Ie, u = ce, m = oe, h = Y("draggable"), b = ze, _ = Pl, C = we;
21922
21922
  return n(), w("div", Mf, [
21923
21923
  e.optionItems && e.optionItems.length > 0 ? (n(), p(h, ae({
21924
21924
  key: 0,
@@ -21931,7 +21931,7 @@ function Ef(e, t, a, l, o, i) {
21931
21931
  handle: ".drag-option"
21932
21932
  }), {
21933
21933
  item: s(({ element: c, index: M }) => [
21934
- V("li", Vf, [
21934
+ P("li", Pf, [
21935
21935
  r(d, {
21936
21936
  modelValue: c.value,
21937
21937
  "onUpdate:modelValue": (f) => c.value = f,
@@ -21973,7 +21973,7 @@ function Ef(e, t, a, l, o, i) {
21973
21973
  ])
21974
21974
  ]),
21975
21975
  _: 1
21976
- }, 16, ["list"])) : (n(), w("div", Pf, [
21976
+ }, 16, ["list"])) : (n(), w("div", Vf, [
21977
21977
  r(b, { type: "info" }, {
21978
21978
  default: s(() => [...t[3] || (t[3] = [
21979
21979
  S("No Data", -1)
@@ -22027,7 +22027,7 @@ function Ef(e, t, a, l, o, i) {
22027
22027
  "destroy-on-close": !0
22028
22028
  }, {
22029
22029
  footer: s(() => [
22030
- V("div", Of, [
22030
+ P("div", Of, [
22031
22031
  r(m, {
22032
22032
  type: "primary",
22033
22033
  onClick: e.saveOptions
@@ -22060,7 +22060,7 @@ function Ef(e, t, a, l, o, i) {
22060
22060
  ])) : g("", !0)
22061
22061
  ]);
22062
22062
  }
22063
- const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad"]]), Nf = L({
22063
+ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad"]]), Ef = L({
22064
22064
  name: "SdReport",
22065
22065
  components: {},
22066
22066
  props: {
@@ -22210,7 +22210,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22210
22210
  for (const u in l)
22211
22211
  if (u.search(o) > -1) {
22212
22212
  d = !1;
22213
- let m = Pe(i, u, t);
22213
+ let m = Ve(i, u, t);
22214
22214
  a[`{{${o}}}`] = m;
22215
22215
  }
22216
22216
  d && (a[`{{${o}}}`] = i);
@@ -22234,16 +22234,16 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22234
22234
  try {
22235
22235
  const T = `return ${se(F.col_expressions, A)}`, H = new Function("row", ...Ce, T);
22236
22236
  A["{{expressions}}"] = H.call(a, y);
22237
- } catch (P) {
22238
- A["{{expressions}}"] = P;
22237
+ } catch (V) {
22238
+ A["{{expressions}}"] = V;
22239
22239
  }
22240
22240
  I = se(F.col_value, A);
22241
22241
  }
22242
22242
  if (!F.col_group)
22243
22243
  if (F.col_sum) {
22244
- let P = "num";
22244
+ let V = "num";
22245
22245
  const T = ["num", "num1", "num2"];
22246
- F.col_format && T.includes(F.col_format) && (P = F.col_format);
22246
+ F.col_format && T.includes(F.col_format) && (V = F.col_format);
22247
22247
  const H = Number(I);
22248
22248
  isNaN(H) ? M[F.col_field] || (M[F.col_field] = "") : M[F.col_field] ? M[F.col_field].text = M[F.col_field].text + H : M[F.col_field] = {
22249
22249
  text: H,
@@ -22251,21 +22251,21 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22251
22251
  fillColor: F.col_fillcolor || void 0,
22252
22252
  alignment: F.col_alignment || "left",
22253
22253
  fontSize: m,
22254
- format: P
22254
+ format: V
22255
22255
  };
22256
22256
  } else
22257
22257
  M[F.col_field] || (M[F.col_field] = "");
22258
22258
  if (F.col_format)
22259
22259
  try {
22260
22260
  if (F.col_format === "num") {
22261
- const P = Number(I);
22262
- isNaN(P) || (I = P.toLocaleString("en-US"));
22261
+ const V = Number(I);
22262
+ isNaN(V) || (I = V.toLocaleString("en-US"));
22263
22263
  } else if (F.col_format === "num1") {
22264
- const P = Number(I);
22265
- isNaN(P) || (I = P.toLocaleString("en-US", { minimumFractionDigits: 1, maximumFractionDigits: 1 }));
22264
+ const V = Number(I);
22265
+ isNaN(V) || (I = V.toLocaleString("en-US", { minimumFractionDigits: 1, maximumFractionDigits: 1 }));
22266
22266
  } else if (F.col_format === "num2") {
22267
- const P = Number(I);
22268
- isNaN(P) || (I = P.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 }));
22267
+ const V = Number(I);
22268
+ isNaN(V) || (I = V.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 }));
22269
22269
  } else F.col_format === "date" ? I = ge(I).format("DD/MM/YYYY") : F.col_format === "datetime" ? I = ge(I).format("DD/MM/YYYY HH:mm") : F.col_format === "boolean" && (I = I ? "True" : "False");
22270
22270
  } catch {
22271
22271
  }
@@ -22273,8 +22273,8 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22273
22273
  C[F.col_field] = I, c[F.col_field] = F.col_fillcolor || "#eee";
22274
22274
  else {
22275
22275
  if (h) {
22276
- let P = F.col_width || "*";
22277
- if (o.push(P), u.length === 0) {
22276
+ let V = F.col_width || "*";
22277
+ if (o.push(V), u.length === 0) {
22278
22278
  let T = F.col_label || F.col_field;
22279
22279
  i.push({
22280
22280
  text: T,
@@ -22286,14 +22286,14 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22286
22286
  }
22287
22287
  }
22288
22288
  if (F.col_html) {
22289
- const P = Ja(`<span>${I}</span>`, {
22289
+ const V = Ja(`<span>${I}</span>`, {
22290
22290
  defaultStyles: this.htmlStyle,
22291
22291
  // removeExtraBlanks: true,
22292
22292
  tableAutoSize: !0,
22293
22293
  ignoreStyles: ["line-height", "font-family"]
22294
22294
  });
22295
22295
  k.push({
22296
- columns: [P],
22296
+ columns: [V],
22297
22297
  fillColor: F.col_fillcolor || void 0,
22298
22298
  alignment: F.col_alignment || "left",
22299
22299
  fontSize: m
@@ -22311,10 +22311,10 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22311
22311
  let q = {}, F = 5;
22312
22312
  for (const I in C)
22313
22313
  if (Object.prototype.hasOwnProperty.call(C, I)) {
22314
- const P = C[I];
22315
- q[I] || (Object.keys(q).length > 0 ? (q[I] = F + 10, F = q[I]) : q[I] = F), _[I] || (_[I] = ""), c[I] || (c[I] = "#eee"), _[I] !== P && (_[I] = P, b.push([
22314
+ const V = C[I];
22315
+ q[I] || (Object.keys(q).length > 0 ? (q[I] = F + 10, F = q[I]) : q[I] = F), _[I] || (_[I] = ""), c[I] || (c[I] = "#eee"), _[I] !== V && (_[I] = V, b.push([
22316
22316
  {
22317
- text: P,
22317
+ text: V,
22318
22318
  marginLeft: q[I],
22319
22319
  bold: !0,
22320
22320
  fillColor: c[I],
@@ -22425,13 +22425,13 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22425
22425
  const k = M.column ? M.column : [];
22426
22426
  let A = [];
22427
22427
  for (const [q, F] of f.entries()) {
22428
- let I = [], P = this.value2Path(F, i), T = 0;
22428
+ let I = [], V = this.value2Path(F, i), T = 0;
22429
22429
  for (const H in F)
22430
22430
  if (Object.prototype.hasOwnProperty.call(F, H)) {
22431
22431
  F[H];
22432
22432
  let Z = !1;
22433
22433
  if (k.length > 0 ? k.includes(H) && (Z = !0) : Z = !0, Z) {
22434
- let W = se(`{{${H}}}`, P);
22434
+ let W = se(`{{${H}}}`, V);
22435
22435
  y.length > 0 && typeof y[0] != "object" && y[T] && (typeof y[T] == "string" ? y[T] : String(y[T])), I[H] = W, T++;
22436
22436
  }
22437
22437
  }
@@ -22576,15 +22576,15 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22576
22576
  let A = [];
22577
22577
  C[0] && C[0]._id ? A = C[0][k.subTableField] ? C[0][k.subTableField] : [] : A = C[k.subTableField] ? C[k.subTableField] : [];
22578
22578
  let q = k.widths ? k.widths : [], F = k.header ? k.header : [];
22579
- const I = k.alignment ? k.alignment : [], P = k.column ? k.column : [];
22579
+ const I = k.alignment ? k.alignment : [], V = k.column ? k.column : [];
22580
22580
  let T = [], H = [], Z = !0, W = !1;
22581
- for (const [Ee, Be] of A.entries()) {
22581
+ for (const [Ne, Be] of A.entries()) {
22582
22582
  let et = [], Te = this.value2Path(Be, m), U = 0;
22583
22583
  for (const v in Be)
22584
22584
  if (Object.prototype.hasOwnProperty.call(Be, v)) {
22585
22585
  Be[v];
22586
22586
  let x = !1;
22587
- if (P.length > 0 ? P.includes(v) && (x = !0) : x = !0, x) {
22587
+ if (V.length > 0 ? V.includes(v) && (x = !0) : x = !0, x) {
22588
22588
  let J = se(`{{${v}}}`, Te), re = I[U] || "left";
22589
22589
  if (re === "l" || re === "L" ? re = "left" : re === "c" || re === "C" ? re = "center" : (re === "r" || re === "R") && (re = "rigth"), Z)
22590
22590
  if (q[U] || (q[U] = "*"), F.length > 0) {
@@ -22712,7 +22712,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22712
22712
  const o = await Ot(a, this.useUserState);
22713
22713
  if (o && o.response && o.data && o.data.data) {
22714
22714
  if (this.reportData = o.data.data, !this.permissionReport(this.reportData))
22715
- return E.warning("Permission denied."), !1;
22715
+ return N.warning("Permission denied."), !1;
22716
22716
  if (this.reportData.pdf_params && Object.keys(this.reportData.pdf_params).length > 0) {
22717
22717
  this.paramsInput = this.reportData.pdf_params;
22718
22718
  for (const i in this.reportData.pdf_params)
@@ -22742,7 +22742,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22742
22742
  i.data && i.data.message && i.data.url && (this.filePath = i.data.filePath, this.fullName = i.data.fileName, this.downloadPath = i.data.url, this.showFile = !0, this.showDownloadPopupFlag = !0), this.reportLoading?.close();
22743
22743
  }).catch((i) => {
22744
22744
  this.reportLoading?.close();
22745
- }) : (this.reportLoading?.close(), E.warning("Template not found.")) : (this.reportLoading?.close(), E.warning("Template not found."));
22745
+ }) : (this.reportLoading?.close(), N.warning("Template not found.")) : (this.reportLoading?.close(), N.warning("Template not found."));
22746
22746
  else {
22747
22747
  const o = await this.pdfReport(t, a);
22748
22748
  this.createPdf(o);
@@ -22771,7 +22771,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22771
22771
  }
22772
22772
  },
22773
22773
  children: [
22774
- new Vt("Debug Table Width"),
22774
+ new Pt("Debug Table Width"),
22775
22775
  // ตารางทดสอบที่ 1 - ใช้ FIXED layout
22776
22776
  new Qa({
22777
22777
  width: { size: 100, type: Jt.PERCENTAGE },
@@ -22783,18 +22783,18 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22783
22783
  new Sa({
22784
22784
  width: { size: 4e3, type: Jt.DXA },
22785
22785
  // ← กำหนดใน cell
22786
- children: [new Vt("Cell 1")]
22786
+ children: [new Pt("Cell 1")]
22787
22787
  }),
22788
22788
  new Sa({
22789
22789
  width: { size: 6e3, type: Jt.DXA },
22790
22790
  // ← กำหนดใน cell
22791
- children: [new Vt("Cell 2")]
22791
+ children: [new Pt("Cell 2")]
22792
22792
  })
22793
22793
  ]
22794
22794
  })
22795
22795
  ]
22796
22796
  }),
22797
- new Vt(" "),
22797
+ new Pt(" "),
22798
22798
  // เว้นบรรทัด
22799
22799
  // ตารางทดสอบที่ 2 - ใช้ AUTOFIT สำหรับเปรียบเทียบ
22800
22800
  new Qa({
@@ -22814,7 +22814,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22814
22814
  new Xa({
22815
22815
  children: [
22816
22816
  new Sa({
22817
- children: [new Vt("ตาราง AUTOFIT - 5000")],
22817
+ children: [new Pt("ตาราง AUTOFIT - 5000")],
22818
22818
  shading: { fill: "CCCCFF" }
22819
22819
  })
22820
22820
  ]
@@ -22841,7 +22841,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22841
22841
  }
22842
22842
  Yt.writeFileXLSX(a, `${t}.xlsx`);
22843
22843
  } else
22844
- E.warning("Data not found.");
22844
+ N.warning("Data not found.");
22845
22845
  this.reportLoading?.close();
22846
22846
  } catch (a) {
22847
22847
  this.reportLoading?.close(), console.log(a);
@@ -22911,8 +22911,8 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
22911
22911
  class: "el-dialog__title"
22912
22912
  }, Rf = ["src"], zf = { key: 4 };
22913
22913
  function qf(e, t, a, l, o, i) {
22914
- const d = ce, u = Y("arrow-down"), m = Ge, h = oe, b = _t, _ = Ft, C = wt, c = Ie, M = Et, f = kt, y = Nl, k = Bm, A = pt, q = ut, F = we, I = Y("Document"), P = sa;
22915
- return n(), w(N, null, [
22914
+ const d = ce, u = Y("arrow-down"), m = Ge, h = oe, b = _t, _ = Ft, C = wt, c = Ie, M = Nt, f = kt, y = El, k = Bm, A = pt, q = ut, F = we, I = Y("Document"), V = sa;
22915
+ return n(), w(E, null, [
22916
22916
  Object.keys(e.reportList).length > 1 ? (n(), p(C, {
22917
22917
  key: 0,
22918
22918
  class: Q(e.marginEnable ? "ml-1 mr-1" : "")
@@ -22920,7 +22920,7 @@ function qf(e, t, a, l, o, i) {
22920
22920
  dropdown: s(() => [
22921
22921
  r(_, null, {
22922
22922
  default: s(() => [
22923
- (n(!0), w(N, null, G(e.reportList, (T, H) => (n(), p(b, {
22923
+ (n(!0), w(E, null, G(e.reportList, (T, H) => (n(), p(b, {
22924
22924
  key: H,
22925
22925
  onClick: (Z) => e.createReport(T.reportId, T.type)
22926
22926
  }, {
@@ -22935,7 +22935,7 @@ function qf(e, t, a, l, o, i) {
22935
22935
  key: 2,
22936
22936
  "icon-name": "addon-pdf"
22937
22937
  })),
22938
- V("span", null, O(T.label), 1)
22938
+ P("span", null, O(T.label), 1)
22939
22939
  ]),
22940
22940
  _: 2
22941
22941
  }, 1032, ["onClick"]))), 128))
@@ -22951,7 +22951,7 @@ function qf(e, t, a, l, o, i) {
22951
22951
  default: s(() => [
22952
22952
  r(d, { "icon-name": "report-ui" }),
22953
22953
  t[4] || (t[4] = S()),
22954
- V("span", null, O(e.label), 1),
22954
+ P("span", null, O(e.label), 1),
22955
22955
  t[5] || (t[5] = S()),
22956
22956
  r(m, { class: "el-icon--right" }, {
22957
22957
  default: s(() => [
@@ -22964,7 +22964,7 @@ function qf(e, t, a, l, o, i) {
22964
22964
  }, 8, ["size"])
22965
22965
  ]),
22966
22966
  _: 1
22967
- }, 8, ["class"])) : (n(!0), w(N, { key: 1 }, G(e.reportList, (T, H) => (n(), p(h, {
22967
+ }, 8, ["class"])) : (n(!0), w(E, { key: 1 }, G(e.reportList, (T, H) => (n(), p(h, {
22968
22968
  key: H,
22969
22969
  plain: "",
22970
22970
  size: e.size,
@@ -22981,7 +22981,7 @@ function qf(e, t, a, l, o, i) {
22981
22981
  key: 2,
22982
22982
  "icon-name": "addon-pdf"
22983
22983
  })),
22984
- V("span", null, O(T.label), 1)
22984
+ P("span", null, O(T.label), 1)
22985
22985
  ]),
22986
22986
  _: 2
22987
22987
  }, 1032, ["size", "onClick"]))), 128)),
@@ -22999,7 +22999,7 @@ function qf(e, t, a, l, o, i) {
22999
22999
  "destroy-on-close": !0
23000
23000
  }, {
23001
23001
  footer: s(() => [
23002
- V("div", Bf, [
23002
+ P("div", Bf, [
23003
23003
  r(h, {
23004
23004
  type: "primary",
23005
23005
  icon: "Edit",
@@ -23029,7 +23029,7 @@ function qf(e, t, a, l, o, i) {
23029
23029
  onSubmit: t[0] || (t[0] = R((T) => e.submitForm(e.formParamsRef), ["prevent"]))
23030
23030
  }, {
23031
23031
  default: s(() => [
23032
- (n(!0), w(N, null, G(e.paramsInput, (T, H) => (n(), w(N, { key: H }, [
23032
+ (n(!0), w(E, null, G(e.paramsInput, (T, H) => (n(), w(E, { key: H }, [
23033
23033
  T.param_var ? (n(), p(A, {
23034
23034
  key: 0,
23035
23035
  prop: T.param_var,
@@ -23112,7 +23112,7 @@ function qf(e, t, a, l, o, i) {
23112
23112
  "destroy-on-close": !0
23113
23113
  }, {
23114
23114
  header: s(({ close: T, titleId: H, titleClass: Z }) => [
23115
- V("span", Uf, [
23115
+ P("span", Uf, [
23116
23116
  r(d, { "icon-name": "icon-pdf" }),
23117
23117
  t[8] || (t[8] = S(" Report Preview ", -1))
23118
23118
  ])
@@ -23146,7 +23146,7 @@ function qf(e, t, a, l, o, i) {
23146
23146
  }, {
23147
23147
  default: s(() => [
23148
23148
  t[9] || (t[9] = S(" Download click here => ", -1)),
23149
- e.showFile ? (n(), p(P, {
23149
+ e.showFile ? (n(), p(V, {
23150
23150
  key: 0,
23151
23151
  type: "primary",
23152
23152
  href: e.downloadPath,
@@ -23169,7 +23169,7 @@ function qf(e, t, a, l, o, i) {
23169
23169
  ])) : g("", !0)
23170
23170
  ], 64);
23171
23171
  }
23172
- const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530"]]), Hf = L({
23172
+ const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-11cbe530"]]), Hf = L({
23173
23173
  name: "SdUiCarousel",
23174
23174
  components: {},
23175
23175
  props: {
@@ -23327,7 +23327,7 @@ const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530
23327
23327
  let a = {}, l = this.sdformModel.form_db.schema;
23328
23328
  for (const o in l) {
23329
23329
  let i = ve(t, o);
23330
- a[`{{${o}}}`] = Pe(i, o, this.sdformModel);
23330
+ a[`{{${o}}}`] = Ve(i, o, this.sdformModel);
23331
23331
  }
23332
23332
  if (this.customValue) {
23333
23333
  for (const o in this.customValue)
@@ -23367,9 +23367,9 @@ const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530
23367
23367
  this.initForm(this.userState.formStore[this.formId]), this.loadEnable = !0;
23368
23368
  else if (this.useUserState.user) {
23369
23369
  const e = await De(this.formId, this.useUserState);
23370
- e.response && e.data ? (this.initForm(e.data), this.loadEnable = !0) : E.warning(e.message);
23370
+ e.response && e.data ? (this.initForm(e.data), this.loadEnable = !0) : N.warning(e.message);
23371
23371
  } else
23372
- E.warning("Unauthorized");
23372
+ N.warning("Unauthorized");
23373
23373
  },
23374
23374
  methods: {
23375
23375
  initSQL() {
@@ -23378,7 +23378,7 @@ const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530
23378
23378
  this.defaultParams = { ...t, ...e }, this.dpFormData.params = D(this.defaultParams), this.getDataList();
23379
23379
  },
23380
23380
  initForm(e) {
23381
- 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 = "http://127.0.0.1:3005/api", 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", ...Ce, 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 = pe.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')");
23381
+ 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", ...Ce, 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 = pe.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')");
23382
23382
  const t = D(this.dpFormData.params), a = D(this.params);
23383
23383
  this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: ue.DESC }]), this.getDataList(), this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, (l) => {
23384
23384
  if (l.from != "server" && l.from != this.userState.user?.username) {
@@ -23406,7 +23406,7 @@ const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530
23406
23406
  }
23407
23407
  this.preLoading = !1;
23408
23408
  } else
23409
- E.warning(a.message), this.preLoading = !1;
23409
+ N.warning(a.message), this.preLoading = !1;
23410
23410
  },
23411
23411
  handleRefresh() {
23412
23412
  this.optionProvider.page = 1, this.optionProvider.fileter = null, this.dpFormData.params = this.defaultParams, this.searchText = "", this.total = 0, this.page = 1, this.noMore = !1, this.dpFormData.params.q && delete this.dpFormData.params.q, this.getDataList();
@@ -23419,7 +23419,7 @@ const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530
23419
23419
  },
23420
23420
  getValue(e, t) {
23421
23421
  let a = ve(e, t);
23422
- return a ? Pe(a, t, this.sdformModel) : "";
23422
+ return a ? Ve(a, t, this.sdformModel) : "";
23423
23423
  },
23424
23424
  getSchema(e) {
23425
23425
  return this.sdformModel.form_db.schema[e];
@@ -23462,8 +23462,8 @@ const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530
23462
23462
  }, Qf = ["innerHTML"], Xf = ["innerHTML"], Zf = { class: "text-card" }, eh = { style: { "text-align": "center" } }, th = ["innerHTML"], ah = ["innerHTML"];
23463
23463
  function lh(e, t, a, l, o, i) {
23464
23464
  const d = Ze, u = ce, m = Y("Loading"), h = Ge, b = Y("Picture"), _ = vt, C = Ht, c = ze, M = qo, f = zo;
23465
- return n(), w(N, null, [
23466
- V("div", Wf, [
23465
+ return n(), w(E, null, [
23466
+ P("div", Wf, [
23467
23467
  e.titleEnable ? (n(), w("span", xf, [
23468
23468
  e.iconForm != "" ? (n(), p(d, {
23469
23469
  key: 0,
@@ -23501,7 +23501,7 @@ function lh(e, t, a, l, o, i) {
23501
23501
  height: e.height
23502
23502
  }, {
23503
23503
  default: s(() => [
23504
- (n(!0), w(N, null, G(e.rawData, (y, k) => (n(), w(N, {
23504
+ (n(!0), w(E, null, G(e.rawData, (y, k) => (n(), w(E, {
23505
23505
  key: y._id
23506
23506
  }, [
23507
23507
  e.iconField ? (n(), p(M, {
@@ -23510,7 +23510,7 @@ function lh(e, t, a, l, o, i) {
23510
23510
  onClick: (A) => e.handleClick(y, k)
23511
23511
  }, {
23512
23512
  default: s(() => [
23513
- V("div", Gf, [
23513
+ P("div", Gf, [
23514
23514
  e.iconField ? (n(), p(_, {
23515
23515
  key: 0,
23516
23516
  style: te(`width: 100%; height: ${e.height}`),
@@ -23518,7 +23518,7 @@ function lh(e, t, a, l, o, i) {
23518
23518
  fit: "cover"
23519
23519
  }, {
23520
23520
  error: s(() => [
23521
- V("div", Yf, [
23521
+ P("div", Yf, [
23522
23522
  r(h, { style: { "font-size": "50px" } }, {
23523
23523
  default: s(() => [
23524
23524
  r(b)
@@ -23530,7 +23530,7 @@ function lh(e, t, a, l, o, i) {
23530
23530
  _: 1
23531
23531
  }, 8, ["style", "src"])) : g("", !0),
23532
23532
  e.titleField || e.titleContent || e.detailContent ? (n(), w("div", Jf, [
23533
- V("div", null, [
23533
+ P("div", null, [
23534
23534
  r(c, {
23535
23535
  class: "body-title",
23536
23536
  truncated: ""
@@ -23573,9 +23573,9 @@ function lh(e, t, a, l, o, i) {
23573
23573
  onClick: (A) => e.handleClick(y, k)
23574
23574
  }, {
23575
23575
  default: s(() => [
23576
- V("div", Zf, [
23577
- V("div", null, [
23578
- V("div", eh, [
23576
+ P("div", Zf, [
23577
+ P("div", null, [
23578
+ P("div", eh, [
23579
23579
  r(c, {
23580
23580
  class: "body-title",
23581
23581
  truncated: ""
@@ -23619,7 +23619,7 @@ function lh(e, t, a, l, o, i) {
23619
23619
  }, 8, ["indicator-position", "motionBlur", "interval", "autoplay", "direction", "type", "trigger", "height"])) : g("", !0)
23620
23620
  ], 64);
23621
23621
  }
23622
- const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780"]]), oh = L({
23622
+ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-115eff8a"]]), oh = L({
23623
23623
  name: "SdUiMenu",
23624
23624
  components: {},
23625
23625
  props: {
@@ -23800,7 +23800,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780
23800
23800
  let a = {}, l = this.sdformModel.form_db.schema;
23801
23801
  for (const o in l) {
23802
23802
  let i = ve(t, o);
23803
- a[`{{${o}}}`] = Pe(i, o, this.sdformModel);
23803
+ a[`{{${o}}}`] = Ve(i, o, this.sdformModel);
23804
23804
  }
23805
23805
  if (this.customValue) {
23806
23806
  for (const o in this.customValue)
@@ -23853,9 +23853,9 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780
23853
23853
  this.initForm(this.userState.formStore[this.formId]), this.loadEnable = !0;
23854
23854
  else if (this.useUserState.user) {
23855
23855
  const e = await De(this.formId, this.useUserState);
23856
- e.response && e.data ? (this.initForm(e.data), this.loadEnable = !0) : E.warning(e.message);
23856
+ e.response && e.data ? (this.initForm(e.data), this.loadEnable = !0) : N.warning(e.message);
23857
23857
  } else
23858
- E.warning("Unauthorized");
23858
+ N.warning("Unauthorized");
23859
23859
  if (this.classInteraction) {
23860
23860
  const e = this.$el.parentNode.offsetParent.offsetParent.querySelector(`.${this.classInteraction}`);
23861
23861
  e && (e.style.marginLeft = `${this.menuWidthOnexpand}px`);
@@ -23868,7 +23868,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780
23868
23868
  this.defaultParams = { ...t, ...e }, this.dpFormData.params = D(this.defaultParams), this.getDataList();
23869
23869
  },
23870
23870
  initForm(e) {
23871
- 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 = "http://127.0.0.1:3005/api", 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", ...Ce, this.sdformModel.form_event.after_delete)), this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = pe.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')");
23871
+ 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", ...Ce, this.sdformModel.form_event.after_delete)), this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = pe.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')");
23872
23872
  const t = D(this.dpFormData.params), a = D(this.params);
23873
23873
  this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: ue.DESC }]), this.getDataList();
23874
23874
  },
@@ -23890,7 +23890,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780
23890
23890
  }
23891
23891
  this.preLoading = !1;
23892
23892
  } else
23893
- E.warning(a.message), this.preLoading = !1;
23893
+ N.warning(a.message), this.preLoading = !1;
23894
23894
  },
23895
23895
  handleRefresh() {
23896
23896
  this.optionProvider.page = 1, this.optionProvider.fileter = null, this.dpFormData.params = this.defaultParams, this.searchText = "", this.total = 0, this.page = 1, this.noMore = !1, this.dpFormData.params.q && delete this.dpFormData.params.q, this.getDataList();
@@ -23910,7 +23910,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780
23910
23910
  },
23911
23911
  getValue(e, t) {
23912
23912
  let a = ve(e, t);
23913
- return a ? Pe(a, t, this.sdformModel) : "";
23913
+ return a ? Ve(a, t, this.sdformModel) : "";
23914
23914
  },
23915
23915
  getSchema(e) {
23916
23916
  return this.sdformModel.form_db.schema[e];
@@ -23952,8 +23952,8 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780
23952
23952
  class: "menu-label"
23953
23953
  };
23954
23954
  function dh(e, t, a, l, o, i) {
23955
- const d = ce, u = Wo, m = oa, h = xo, b = Ho, _ = Pl, C = Ul("can");
23956
- return n(), w(N, null, [
23955
+ const d = ce, u = Wo, m = oa, h = xo, b = Ho, _ = Vl, C = Ul("can");
23956
+ return n(), w(E, null, [
23957
23957
  r(_, {
23958
23958
  class: "menu-wrapper",
23959
23959
  height: `${e.fixedEnable ? `${e.scrollerHeight}px` : ""} `,
@@ -23998,10 +23998,10 @@ function dh(e, t, a, l, o, i) {
23998
23998
  style: te([{ margin: "0px" }, `${e.borderColor ? `border-color: ${e.borderColor};` : ""}`])
23999
23999
  }, null, 8, ["style"])
24000
24000
  ])) : g("", !0),
24001
- (n(!0), w(N, null, G(e.rawData, (c, M) => (n(), w(N, {
24001
+ (n(!0), w(E, null, G(e.rawData, (c, M) => (n(), w(E, {
24002
24002
  key: c._id
24003
24003
  }, [
24004
- e.subMenuField && c[e.subMenuField] ? Ve((n(), p(h, {
24004
+ e.subMenuField && c[e.subMenuField] ? Pe((n(), p(h, {
24005
24005
  key: 0,
24006
24006
  index: e.pathField && c[e.pathField] ? c[e.pathField] : M,
24007
24007
  onClick: (f) => e.pathField && c[e.pathField] ? e.handleClick(c, M) : void 0
@@ -24015,7 +24015,7 @@ function dh(e, t, a, l, o, i) {
24015
24015
  e.labelField ? (n(), w("span", nh, O(c[e.labelField]), 1)) : g("", !0)
24016
24016
  ]),
24017
24017
  default: s(() => [
24018
- (n(!0), w(N, null, G(c[e.subMenuField], (f, y) => Ve((n(), p(u, {
24018
+ (n(!0), w(E, null, G(c[e.subMenuField], (f, y) => Pe((n(), p(u, {
24019
24019
  key: f._id,
24020
24020
  class: "sub-menu-item",
24021
24021
  index: e.pathField && e.subMenuPrefix && f[`${e.subMenuPrefix}${e.pathField}`] ? f[`${e.subMenuPrefix}${e.pathField}`] : M,
@@ -24047,7 +24047,7 @@ function dh(e, t, a, l, o, i) {
24047
24047
  void 0,
24048
24048
  { any: !0 }
24049
24049
  ]
24050
- ]) : Ve((n(), p(u, {
24050
+ ]) : Pe((n(), p(u, {
24051
24051
  key: 1,
24052
24052
  class: "menu-item",
24053
24053
  index: e.pathField && c[e.pathField] ? c[e.pathField] : M,
@@ -24077,7 +24077,7 @@ function dh(e, t, a, l, o, i) {
24077
24077
  ]),
24078
24078
  _: 1
24079
24079
  }, 8, ["height", "style"]),
24080
- V("span", {
24080
+ P("span", {
24081
24081
  style: te(`width: ${e.fixedEnable ? `${e.menuWidthOnexpand}px` : ""}; `)
24082
24082
  }, null, 4)
24083
24083
  ], 64);
@@ -24259,7 +24259,7 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24259
24259
  let l = {}, o = this.sdformModel.form_db.schema;
24260
24260
  for (const i in o) {
24261
24261
  let d = ve(t, i);
24262
- l[`{{${i}}}`] = Pe(d, i, this.sdformModel);
24262
+ l[`{{${i}}}`] = Ve(d, i, this.sdformModel);
24263
24263
  }
24264
24264
  if (a.expressions)
24265
24265
  try {
@@ -24292,9 +24292,9 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24292
24292
  this.initForm(this.userState.formStore[this.formId]);
24293
24293
  else if (this.useUserState.user) {
24294
24294
  const e = await De(this.formId, this.useUserState);
24295
- e.response && e.data ? this.initForm(e.data) : E.warning(e.message);
24295
+ e.response && e.data ? this.initForm(e.data) : N.warning(e.message);
24296
24296
  } else
24297
- E.warning("Unauthorized");
24297
+ N.warning("Unauthorized");
24298
24298
  this.sdFunc = {
24299
24299
  subFormOpen: this.subFormOpen,
24300
24300
  handleCancel: this.handleCancel,
@@ -24303,7 +24303,7 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24303
24303
  handleView: this.handleView,
24304
24304
  userState: this.userState,
24305
24305
  params: this.params,
24306
- ElMessage: E,
24306
+ ElMessage: N,
24307
24307
  sdformModel: this.sdformModel,
24308
24308
  wsConn: this.wsConn
24309
24309
  };
@@ -24326,11 +24326,11 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24326
24326
  try {
24327
24327
  this.afterDeleteForm.call(this.sdFunc, this.rawData);
24328
24328
  } catch (a) {
24329
- E.error(a.message);
24329
+ N.error(a.message);
24330
24330
  }
24331
- this.rawData = null, this.recordId = "", E.success("Delete completed.");
24331
+ this.rawData = null, this.recordId = "", N.success("Delete completed.");
24332
24332
  } else
24333
- E.warning("Unable to remove data");
24333
+ N.warning("Unable to remove data");
24334
24334
  }).catch((t) => {
24335
24335
  console.log(t);
24336
24336
  });
@@ -24365,7 +24365,7 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24365
24365
  this.showPopupGridFlag = !1;
24366
24366
  },
24367
24367
  initForm(e) {
24368
- 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 = "http://127.0.0.1:3005/api", 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", ...Ce, 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 = pe.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: ue.DESC }];
24368
+ 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", ...Ce, 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 = pe.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: ue.DESC }];
24369
24369
  const t = D(this.dpFormData.params), a = D(this.params);
24370
24370
  this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), (this.lastRecord || this.dataId) && this.getDataOne(this.dpFormData), this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, (l) => {
24371
24371
  if (l.from != "server" && l.from != this.userState.user?.username && l.keyid) {
@@ -24378,12 +24378,12 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24378
24378
  if (!this.buildState) {
24379
24379
  this.preLoading = !0;
24380
24380
  const a = await Ot(e, this.useUserState);
24381
- a.response ? (a.data && a.data.data && (this.rawData = D(a.data.data), this.recordId = this.rawData._id, t && t(this.rawData)), this.preLoading = !1) : (E.warning(a.message), this.preLoading = !1);
24381
+ a.response ? (a.data && a.data.data && (this.rawData = D(a.data.data), this.recordId = this.rawData._id, t && t(this.rawData)), this.preLoading = !1) : (N.warning(a.message), this.preLoading = !1);
24382
24382
  }
24383
24383
  },
24384
24384
  getValue(e, t) {
24385
24385
  let a = ve(e, t);
24386
- return a ? Pe(a, t, this.sdformModel) : "";
24386
+ return a ? Ve(a, t, this.sdformModel) : "";
24387
24387
  },
24388
24388
  allowView(e, t, a) {
24389
24389
  return va(e, t, a);
@@ -24411,8 +24411,8 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24411
24411
  }
24412
24412
  }), ph = { class: "text-6" }, mh = ["innerHTML"];
24413
24413
  function fh(e, t, a, l, o, i) {
24414
- const d = Ze, u = ce, m = oe, h = Ht, b = El, _ = Ol, C = Dm;
24415
- return n(), w(N, null, [
24414
+ const d = Ze, u = ce, m = oe, h = Ht, b = Nl, _ = Ol, C = Dm;
24415
+ return n(), w(E, null, [
24416
24416
  r(_, {
24417
24417
  class: Q({ blockUi: e.blockEnable }),
24418
24418
  column: e.column,
@@ -24421,7 +24421,7 @@ function fh(e, t, a, l, o, i) {
24421
24421
  direction: e.verticalEnable ? "vertical" : "horizontal"
24422
24422
  }, tt({
24423
24423
  default: s(() => [
24424
- e.rawData ? (n(!0), w(N, { key: 0 }, G(e.blockUiFields, (c, M) => (n(), p(b, {
24424
+ e.rawData ? (n(!0), w(E, { key: 0 }, G(e.blockUiFields, (c, M) => (n(), p(b, {
24425
24425
  label: c.label,
24426
24426
  align: c.align,
24427
24427
  "label-align": c.labelAlign,
@@ -24462,7 +24462,7 @@ function fh(e, t, a, l, o, i) {
24462
24462
  e.titleEnable ? {
24463
24463
  name: "title",
24464
24464
  fn: s(() => [
24465
- V("span", ph, [
24465
+ P("span", ph, [
24466
24466
  e.iconForm != "" ? (n(), p(d, {
24467
24467
  key: 0,
24468
24468
  "svg-data": e.iconForm
@@ -24549,7 +24549,7 @@ function fh(e, t, a, l, o, i) {
24549
24549
  }, null, 8, ["modelValue", "parent-id", "readonly", "form-id", "user-state", "cancel-callback"])) : g("", !0)
24550
24550
  ], 64);
24551
24551
  }
24552
- const kg = /* @__PURE__ */ j(uh, [["render", fh], ["__scopeId", "data-v-64685b80"]]);
24552
+ const kg = /* @__PURE__ */ j(uh, [["render", fh], ["__scopeId", "data-v-169d5f12"]]);
24553
24553
  export {
24554
24554
  va as $,
24555
24555
  _g as A,
@@ -24564,11 +24564,11 @@ export {
24564
24564
  De as J,
24565
24565
  Mu as K,
24566
24566
  ya as L,
24567
- Vu as M,
24567
+ Pu as M,
24568
24568
  dt as N,
24569
24569
  La as O,
24570
24570
  ng as P,
24571
- Pu as Q,
24571
+ Vu as Q,
24572
24572
  sg as R,
24573
24573
  ug as S,
24574
24574
  ho as T,
@@ -24581,10 +24581,10 @@ export {
24581
24581
  Ze as _,
24582
24582
  ce as a,
24583
24583
  Au as a0,
24584
- Pe as a1,
24584
+ Ve as a1,
24585
24585
  Ou as a2,
24586
24586
  j as a3,
24587
- En as a4,
24587
+ Nn as a4,
24588
24588
  ke as a5,
24589
24589
  D as a6,
24590
24590
  Ce as a7,
@@ -24595,15 +24595,15 @@ export {
24595
24595
  Wl as ac,
24596
24596
  ag as ad,
24597
24597
  tg as ae,
24598
- Nn as af,
24598
+ En as af,
24599
24599
  lg as ag,
24600
24600
  eg as ah,
24601
24601
  Zb as ai,
24602
- Ea as aj,
24602
+ Na as aj,
24603
24603
  Kb as ak,
24604
24604
  Oa as al,
24605
24605
  Hb as am,
24606
- Na as an,
24606
+ Ea as an,
24607
24607
  Jb as ao,
24608
24608
  ee as ap,
24609
24609
  qb as aq,
@@ -24613,7 +24613,8 @@ export {
24613
24613
  Yb as au,
24614
24614
  Gb as av,
24615
24615
  pe as aw,
24616
- ja as ax,
24616
+ zm as ax,
24617
+ ja as ay,
24617
24618
  An as b,
24618
24619
  og as c,
24619
24620
  ga as d,