sd-render 1.0.17 → 1.0.18

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,22 +1,22 @@
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";
1
+ import { ElImage as vt, ElIcon as Ge, ElDialog as we, ElButton as oe, ElTooltip as Pl, ElForm as ut, ElFormItem as pt, ElInput as Ie, ElDivider as ia, ElDropdown as wt, ElDropdownMenu as Ft, ElDropdownItem as _t, ElUpload as $a, ElPagination as na, ElPopover as Ye, ElCol as at, ElCheckbox as sa, ElColorPicker as Ta, ElRow as St, ElInputNumber as Nt, ElText as ze, ElButtonGroup as Vl, ElTag as Et, ElAvatar as Ma, ElTable as Lt, ElTableColumn as qe, ElSpace as Vo, ElLink as ra, ElRate as Ao, ElScrollbar as Al, ElTimelineItem as Oo, ElCard as Pa, ElAlert as da, ElTabs as No, ElTabPane as Eo, ElSwitch as kt, ElSelectV2 as Ol, ElLoadingDirective as ua, ElSelect as Ct, ElOption as Dt, ElOptionGroup as Lo, ElDescriptions as Nl, ElDescriptionsItem as El, ElCollapse as Bo, ElCollapseItem as jo, ElDatePicker as Ll, ElTimePicker as Uo, ElRadioGroup as Ro, ElRadioButton as zo, ElCarousel as qo, ElCarouselItem as Ho, ElMenu as Wo, ElMenuItem as xo, ElSubMenu as Ko } 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 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
- import { Editor as It, Node as lt, mergeAttributes as Qe, getMarkRange as Xo, Extension as He, isList as Zo } from "@tiptap/core";
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 Bl, capitalize as Go, normalizeStyle as te, ref as K, nextTick as yt, resolveComponent as Y, Fragment as E, createVNode as r, withCtx as s, createBlock as p, createTextVNode as S, inject as B, renderList as G, resolveDynamicComponent as pa, mergeProps as ae, toHandlers as jl, withModifiers as R, renderSlot as me, computed as le, watch as Ke, provide as We, unref as de, watchEffect as Yo, toRaw as Jo, withDirectives as Pe, vShow as Ul, reactive as Se, onMounted as Je, normalizeProps as Va, guardReactiveProps as Aa, createSlots as tt, defineAsyncComponent as Qo, resolveDirective as Rl, withKeys as Xo } from "vue";
8
+ import { Editor as It, Node as lt, mergeAttributes as Qe, getMarkRange as Zo, Extension as He, isList as ei } from "@tiptap/core";
9
9
  import xe from "ace-builds";
10
10
  import "ace-builds/src-min-noconflict/theme-tomorrow_night_eighties";
11
11
  import "ace-builds/src-min-noconflict/theme-sqlserver";
12
12
  import "ace-builds/src-min-noconflict/mode-html";
13
13
  import "ace-builds/src-min-noconflict/ext-beautify";
14
14
  import { useDark as Ae } from "@vueuse/core";
15
- import ei from "@tiptap/extension-list-item";
16
- import Wa from "@tiptap/extension-text";
17
- import xa from "@tiptap/extension-paragraph";
18
- import Ka from "@tiptap/extension-code";
19
- import Ga from "@tiptap/extension-hard-break";
15
+ import ti from "@tiptap/extension-list-item";
16
+ import xa from "@tiptap/extension-text";
17
+ import Ka from "@tiptap/extension-paragraph";
18
+ import Ga from "@tiptap/extension-code";
19
+ import Ya from "@tiptap/extension-hard-break";
20
20
  import "@tiptap/extension-dropcursor";
21
21
  import "@tiptap/extension-gapcursor";
22
22
  import "@tiptap/extension-floating-menu";
@@ -27,8 +27,8 @@ import "element-plus/es/components/scrollbar/style/index";
27
27
  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
- 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 N, ElPopover as ht, ElUpload as ai, ElLoading as ta, ElCol as li } from "element-plus";
30
+ import { useRouter as zl, useRoute as ql } from "vue-router";
31
+ import { ElMessageBox as he, ElTooltip as ai, ElButton as mt, ElCheckbox as Bt, ElInput as ft, ElFormItem as jt, ElForm as Ut, ElDialog as $t, ElDropdownItem as ma, ElDropdownMenu as fa, ElDropdown as ha, ElMessage as N, ElPopover as ht, ElUpload as li, ElLoading as aa, ElCol as oi } 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";
@@ -52,16 +52,16 @@ import "element-plus/es/components/collapse-item/style/index";
52
52
  import "element-plus/es/components/input-number/style/index";
53
53
  import "element-plus/es/components/descriptions/style/index";
54
54
  import "element-plus/es/components/descriptions-item/style/index";
55
- import ql from "json-editor-vue";
56
- import { Mode as Hl } from "vanilla-jsoneditor";
55
+ import Hl from "json-editor-vue";
56
+ import { Mode as Wl } from "vanilla-jsoneditor";
57
57
  import "element-plus/es/components/color-picker/style/index";
58
58
  import "element-plus/es/components/radio-group/style/index";
59
59
  import "element-plus/es/components/radio-button/style/index";
60
60
  import "element-plus/es/components/time-picker/style/index";
61
61
  import "element-plus/es/components/date-picker/style/index";
62
62
  import "vanilla-jsoneditor/themes/jse-theme-dark.css";
63
- import { useVueFlow as oi, VueFlow as ii, Position as Gt } from "@vue-flow/core";
64
- import Ya from "dagre";
63
+ import { useVueFlow as ii, VueFlow as ni, Position as Yt } from "@vue-flow/core";
64
+ import Ja from "dagre";
65
65
  import "element-plus/es/components/pagination/style/index";
66
66
  import "element-plus/es/components/button-group/style/index";
67
67
  import "element-plus/es/components/dropdown/style/index";
@@ -78,65 +78,65 @@ import "ace-builds/src-min-noconflict/mode-json";
78
78
  import "ace-builds/src-min-noconflict/mode-css";
79
79
  import "ace-builds/src-min-noconflict/mode-sql";
80
80
  import "ace-builds/src-min-noconflict/ext-language_tools";
81
- import ni from "resize-observer-polyfill";
81
+ import si from "resize-observer-polyfill";
82
82
  import ge from "dayjs";
83
- import si from "dompurify";
84
- import ri from "cropperjs";
83
+ import ri from "dompurify";
84
+ import di from "cropperjs";
85
85
  import "element-plus/es/components/tooltip/style/index";
86
- import { Editor as $e, FloatingMenu as di, BubbleMenu as ui, EditorContent as pi, useEditor as mi, nodeViewProps as ye, NodeViewWrapper as Xe, VueNodeViewRenderer as ot, NodeViewContent as fi, getMarkAttributes as ha } from "@tiptap/vue-3";
87
- import { splitCell as hi, mergeCells as ci, CellSelection as bi } from "prosemirror-tables";
88
- import { TextSelection as ca, AllSelection as Aa, Plugin as gi } from "prosemirror-state";
89
- import yi from "@tiptap/extension-placeholder";
90
- import vi from "@tiptap/extension-character-count";
91
- import wi from "@tiptap/extension-document";
92
- import Fi from "@tiptap/extension-heading";
93
- import _i from "@tiptap/extension-blockquote";
94
- import Si from "@tiptap/extension-code-block";
95
- import ki from "@tiptap/extension-code-block-lowlight";
96
- import { createLowlight as Ci, common as Di } from "lowlight";
97
- import Ii from "highlight.js/lib/languages/css";
98
- import $i from "highlight.js/lib/languages/javascript";
99
- import Ti from "highlight.js/lib/languages/typescript";
100
- import Mi from "highlight.js/lib/languages/xml";
101
- import Pi from "@tiptap/extension-bullet-list";
102
- import Vi from "@tiptap/extension-ordered-list";
103
- import Ai from "@tiptap/extension-image";
86
+ import { Editor as $e, FloatingMenu as ui, BubbleMenu as pi, EditorContent as mi, useEditor as fi, nodeViewProps as ye, NodeViewWrapper as Xe, VueNodeViewRenderer as ot, NodeViewContent as hi, getMarkAttributes as ca } from "@tiptap/vue-3";
87
+ import { splitCell as ci, mergeCells as bi, CellSelection as gi } from "prosemirror-tables";
88
+ import { TextSelection as ba, AllSelection as Oa, Plugin as yi } from "prosemirror-state";
89
+ import vi from "@tiptap/extension-placeholder";
90
+ import wi from "@tiptap/extension-character-count";
91
+ import Fi from "@tiptap/extension-document";
92
+ import _i from "@tiptap/extension-heading";
93
+ import Si from "@tiptap/extension-blockquote";
94
+ import ki from "@tiptap/extension-code-block";
95
+ import Ci from "@tiptap/extension-code-block-lowlight";
96
+ import { createLowlight as Di, common as Ii } from "lowlight";
97
+ import $i from "highlight.js/lib/languages/css";
98
+ import Ti from "highlight.js/lib/languages/javascript";
99
+ import Mi from "highlight.js/lib/languages/typescript";
100
+ import Pi from "highlight.js/lib/languages/xml";
101
+ import Vi from "@tiptap/extension-bullet-list";
102
+ import Ai from "@tiptap/extension-ordered-list";
103
+ import Oi from "@tiptap/extension-image";
104
104
  import "element-plus/es/components/upload/style/index";
105
105
  import fe from "axios";
106
- import Oi from "@tiptap/extension-task-list";
107
- import Ni from "@tiptap/extension-task-item";
108
- import { Table as Ei } from "@tiptap/extension-table";
109
- import Li from "@tiptap/extension-table-row";
110
- import Bi from "@tiptap/extension-table-header";
111
- import ji from "@tiptap/extension-table-cell";
112
- import Ui from "@tiptap/extension-bold";
113
- import Ri from "@tiptap/extension-underline";
114
- import zi from "@tiptap/extension-italic";
115
- import qi from "@tiptap/extension-strike";
116
- import Hi from "@tiptap/extension-link";
117
- import Wi from "@tiptap/extension-color";
118
- import xi from "@tiptap/extension-text-style";
119
- import Ki from "@tiptap/extension-highlight";
120
- import Gi from "@tiptap/extension-youtube";
121
- import Yi from "@tiptap/extension-subscript";
122
- import Ji from "@tiptap/extension-superscript";
123
- import Qi from "@tiptap/extension-horizontal-rule";
124
- import Xi from "@tiptap/extension-history";
125
- import Zi from "@tiptap/extension-text-align";
106
+ import Ni from "@tiptap/extension-task-list";
107
+ import Ei from "@tiptap/extension-task-item";
108
+ import { Table as Li } from "@tiptap/extension-table";
109
+ import Bi from "@tiptap/extension-table-row";
110
+ import ji from "@tiptap/extension-table-header";
111
+ import Ui from "@tiptap/extension-table-cell";
112
+ import Ri from "@tiptap/extension-bold";
113
+ import zi from "@tiptap/extension-underline";
114
+ import qi from "@tiptap/extension-italic";
115
+ import Hi from "@tiptap/extension-strike";
116
+ import Wi from "@tiptap/extension-link";
117
+ import xi from "@tiptap/extension-color";
118
+ import Ki from "@tiptap/extension-text-style";
119
+ import Gi from "@tiptap/extension-highlight";
120
+ import Yi from "@tiptap/extension-youtube";
121
+ import Ji from "@tiptap/extension-subscript";
122
+ import Qi from "@tiptap/extension-superscript";
123
+ import Xi from "@tiptap/extension-horizontal-rule";
124
+ import Zi from "@tiptap/extension-history";
125
+ import en from "@tiptap/extension-text-align";
126
126
  import "element-plus/es/components/rate/style/index";
127
127
  import "element-plus/es/components/space/style/index";
128
- import { Chart as en, CategoryScale as tn, LinearScale as an, BarElement as ln, Title as on, Tooltip as nn, Legend as sn, Filler as rn, plugins as dn, TimeScale as un, TimeSeriesScale as pn, RadialLinearScale as mn, LineElement as fn, PointElement as hn, ArcElement as cn } from "chart.js";
129
- import { Chart as bn } from "vue-chartjs";
128
+ import { Chart as tn, CategoryScale as an, LinearScale as ln, BarElement as on, Title as nn, Tooltip as sn, Legend as rn, Filler as dn, plugins as un, TimeScale as pn, TimeSeriesScale as mn, RadialLinearScale as fn, LineElement as hn, PointElement as cn, ArcElement as bn } from "chart.js";
129
+ import { Chart as gn } from "vue-chartjs";
130
130
  import "chartjs-adapter-moment";
131
- import gn from "vue-clipboard3";
132
- import yn from "fuse.js";
133
- import _a from "pdfmake/build/pdfmake";
134
- import Ja from "html-to-pdfmake";
135
- import { f as vn } from "./sd-fonts-DL2H6WH7.js";
136
- import * as Yt from "xlsx";
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
- import { saveAs as _n } from "file-saver";
139
- const Sn = {
131
+ import yn from "vue-clipboard3";
132
+ import vn from "fuse.js";
133
+ import Sa from "pdfmake/build/pdfmake";
134
+ import Qa from "html-to-pdfmake";
135
+ import { f as wn } from "./sd-fonts-DL2H6WH7.js";
136
+ import * as Jt from "xlsx";
137
+ import { Document as Fn, Paragraph as Pt, Table as Xa, TableRow as Za, TableCell as ka, WidthType as Qt, TableLayoutType as el, BorderStyle as Xt, Packer as _n } from "docx";
138
+ import { saveAs as Sn } from "file-saver";
139
+ const kn = {
140
140
  name: "SvgData",
141
141
  props: {
142
142
  svgData: {
@@ -164,14 +164,14 @@ const Sn = {
164
164
  for (const [l, o] of t)
165
165
  a[l] = o;
166
166
  return a;
167
- }, kn = ["innerHTML"];
168
- function Cn(e, t, a, l, o, i) {
167
+ }, Cn = ["innerHTML"];
168
+ function Dn(e, t, a, l, o, i) {
169
169
  return n(), w("i", {
170
170
  class: "el-icon svg-icon",
171
171
  innerHTML: a.svgData
172
- }, null, 8, kn);
172
+ }, null, 8, Cn);
173
173
  }
174
- const Ze = /* @__PURE__ */ j(Sn, [["render", Cn], ["__scopeId", "data-v-7c4acdd9"]]), Dn = {
174
+ const Ze = /* @__PURE__ */ j(kn, [["render", Dn], ["__scopeId", "data-v-7c4acdd9"]]), In = {
175
175
  name: "SvgIcon",
176
176
  props: {
177
177
  iconName: {
@@ -202,23 +202,23 @@ const Ze = /* @__PURE__ */ j(Sn, [["render", Cn], ["__scopeId", "data-v-7c4acdd9
202
202
  return this.className ? "el-icon svg-icon " + this.className : "el-icon svg-icon";
203
203
  }
204
204
  }
205
- }, In = { "aria-hidden": "true" }, $n = ["xlink:href", "fill"], Tn = { key: 0 };
206
- function Mn(e, t, a, l, o, i) {
205
+ }, $n = { "aria-hidden": "true" }, Tn = ["xlink:href", "fill"], Mn = { key: 0 };
206
+ function Pn(e, t, a, l, o, i) {
207
207
  return n(), w("i", {
208
208
  class: Q(i.svgClass)
209
209
  }, [
210
- (n(), w("svg", In, [
210
+ (n(), w("svg", $n, [
211
211
  P("use", {
212
212
  "xlink:href": i.iconClass,
213
213
  fill: a.color
214
- }, null, 8, $n),
215
- a.title ? (n(), w("title", Tn, O(a.title), 1)) : g("", !0)
214
+ }, null, 8, Tn),
215
+ a.title ? (n(), w("title", Mn, O(a.title), 1)) : g("", !0)
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"], Pn = L({
219
+ const ce = /* @__PURE__ */ j(In, [["render", Pn], ["__scopeId", "data-v-bebc8483"]]), tl = ["onBlur", "onInput", "onChange", "changeSelectionStyle", "changeSession", "copy", "onFocus", "paste"], Vn = L({
220
220
  name: "SdAceEditor",
221
- emits: ["update:value", "init", ...el],
221
+ emits: ["update:value", "init", ...tl],
222
222
  props: {
223
223
  value: {
224
224
  type: String,
@@ -266,7 +266,7 @@ const ce = /* @__PURE__ */ j(Dn, [["render", Mn], ["__scopeId", "data-v-bebc8483
266
266
  },
267
267
  mounted() {
268
268
  xe.config.set("basePath", "/ace-addon/");
269
- const e = this._editor = Ll(
269
+ const e = this._editor = Bl(
270
270
  xe.edit(this.$el, {
271
271
  placeholder: this.placeholder,
272
272
  readOnly: this.readonly,
@@ -413,10 +413,10 @@ loadData.then((data) => {
413
413
  this.$emit("onBlur", t);
414
414
  }), e.on("focus", (t) => {
415
415
  this.$emit("onFocus", t);
416
- }), el.forEach((t) => {
417
- const a = "on" + Ko(t);
416
+ }), tl.forEach((t) => {
417
+ const a = "on" + Go(t);
418
418
  typeof this.$.vnode.props[a] == "function" && e.on(t, this.$emit.bind(this, t));
419
- }), this._ro = new ni(() => e.resize()), this._ro.observe(this.$el), this.$emit("init", e);
419
+ }), this._ro = new si(() => e.resize()), this._ro.observe(this.$el), this.$emit("init", e);
420
420
  },
421
421
  beforeUnmount() {
422
422
  this._ro?.disconnect(), this._editor?.destroy();
@@ -488,12 +488,12 @@ loadData.then((data) => {
488
488
  }
489
489
  }
490
490
  });
491
- function Vn(e, t, a, l, o, i) {
491
+ function An(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(Pn, [["render", Vn]]);
496
+ const On = /* @__PURE__ */ j(Vn, [["render", An]]);
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
  {
@@ -623,7 +623,7 @@ const qb = [
623
623
  "Symbol",
624
624
  "GeneratorFunction",
625
625
  "AsyncFunction"
626
- ], On = function() {
626
+ ], Rt = function() {
627
627
  return Math.floor(Math.random() * 1e5 + Math.random() * 2e4 + Math.random() * 5e3);
628
628
  }, Hb = function() {
629
629
  let e = Math.floor(Math.random() * 1e5 + Math.random() * 2e4 + Math.random() * 5e3), t = ge().valueOf() + "" + e;
@@ -656,13 +656,13 @@ const D = function(e) {
656
656
  function xb(e) {
657
657
  return e == null;
658
658
  }
659
- function Oa(e) {
659
+ function Na(e) {
660
660
  return e != null;
661
661
  }
662
662
  function Kb(e) {
663
663
  return e === void 0 || !e && e !== 0 && e !== "0" || !/[^\s]/.test(e);
664
664
  }
665
- function Na(e) {
665
+ function Ea(e) {
666
666
  return Object.keys(e).length === 0;
667
667
  }
668
668
  function Vt(e, t) {
@@ -770,7 +770,7 @@ function Xb(e) {
770
770
  });
771
771
  }), t;
772
772
  }
773
- const Ea = function(e) {
773
+ const La = function(e) {
774
774
  let t = {};
775
775
  for (const a in e)
776
776
  t[`{{${a}}}`] = e[a];
@@ -798,7 +798,7 @@ function Me(e, t, a) {
798
798
  function Ln(e) {
799
799
  return e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
800
800
  }
801
- function Wl(e, t, a) {
801
+ function xl(e, t, a) {
802
802
  let l = t.split("."), o = e;
803
803
  for (let i = 0; i < l.length; i++) {
804
804
  let d = l[i];
@@ -811,7 +811,7 @@ function ve(e, t) {
811
811
  for (let o = 0, i = a.length; o < i; o++) {
812
812
  let d = a[o];
813
813
  if (d)
814
- if (Oa(l) && Object.prototype.hasOwnProperty.call(l, d))
814
+ if (Na(l) && Object.prototype.hasOwnProperty.call(l, d))
815
815
  l = l[d];
816
816
  else
817
817
  return null;
@@ -824,7 +824,7 @@ function ve(e, t) {
824
824
  }
825
825
  }
826
826
  function Tt(e) {
827
- return si.sanitize(e, {});
827
+ return ri.sanitize(e, {});
828
828
  }
829
829
  function se(e, t) {
830
830
  const a = (i) => `{{###~${i}~###}}`, l = Object.keys(t).map((i, d) => ({
@@ -852,7 +852,7 @@ function jn(e, t, a = "params") {
852
852
  }
853
853
  return l;
854
854
  }
855
- function ba(e, t = 1) {
855
+ function ga(e, t = 1) {
856
856
  if (!e || ((t < 0 || t > 1) && (t = 1), e = e.trim().replace(/^#/, ""), !/^([0-9A-F]{3}){1,2}$/i.test(e)))
857
857
  return "";
858
858
  let a, l, o;
@@ -976,7 +976,7 @@ const Un = L({
976
976
  methods: {
977
977
  onCropperImageOpen() {
978
978
  const e = new Image();
979
- e.src = this.picture, e.alt = "Picture", this.cropper = new ri(e, {
979
+ e.src = this.picture, e.alt = "Picture", this.cropper = new di(e, {
980
980
  container: this.cropperBox,
981
981
  template: this.resizeEnable ? this.tempResize : this.tempFixed
982
982
  });
@@ -1196,16 +1196,16 @@ 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(E, 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(pa(d.component), ae({
1200
1200
  key: "command-button" + u,
1201
1201
  "enable-tooltip": e.enableTooltip
1202
- }, { ref_for: !0 }, d.componentProps, { readonly: e.isCodeViewMode }, Bl(d.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128))
1202
+ }, { ref_for: !0 }, d.componentProps, { readonly: e.isCodeViewMode }, jl(d.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128))
1203
1203
  ]);
1204
1204
  }
1205
- const xl = /* @__PURE__ */ j(Qn, [["render", Zn]]);
1205
+ const Kl = /* @__PURE__ */ j(Qn, [["render", Zn]]);
1206
1206
  function es() {
1207
1207
  }
1208
- function Kl(e, t, a) {
1208
+ function Gl(e, t, a) {
1209
1209
  return e < t ? t : e > a ? a : e;
1210
1210
  }
1211
1211
  function ts(e) {
@@ -1232,10 +1232,10 @@ function ls(e, t, a, l, o, i) {
1232
1232
  class: "text-4"
1233
1233
  }, null, 8, ["icon-name"]);
1234
1234
  }
1235
- const Gl = /* @__PURE__ */ j(as, [["render", ls]]), os = L({
1235
+ const Yl = /* @__PURE__ */ j(as, [["render", ls]]), os = L({
1236
1236
  components: {
1237
- ElTooltip: ti,
1238
- VIcon: Gl
1237
+ ElTooltip: ai,
1238
+ VIcon: Yl
1239
1239
  },
1240
1240
  props: {
1241
1241
  icon: {
@@ -1283,7 +1283,7 @@ const Gl = /* @__PURE__ */ j(as, [["render", ls]]), os = L({
1283
1283
  }
1284
1284
  });
1285
1285
  function is(e, t, a, l, o, i) {
1286
- const d = Y("v-icon"), u = Ml;
1286
+ const d = Y("v-icon"), u = Pl;
1287
1287
  return n(), w("div", null, [
1288
1288
  r(u, {
1289
1289
  content: e.tooltip,
@@ -1307,7 +1307,7 @@ function is(e, t, a, l, o, i) {
1307
1307
  ]);
1308
1308
  }
1309
1309
  const z = /* @__PURE__ */ j(os, [["render", is]]);
1310
- function Rt(e) {
1310
+ function zt(e) {
1311
1311
  const { selection: t, doc: a } = e, { from: l, to: o } = t;
1312
1312
  let i = !0, d = !1;
1313
1313
  return a.nodesBetween(l, o, (u) => {
@@ -1316,10 +1316,10 @@ function Rt(e) {
1316
1316
  }), d;
1317
1317
  }
1318
1318
  function ns(e) {
1319
- return Rt(e) && ci(e);
1319
+ return zt(e) && bi(e);
1320
1320
  }
1321
1321
  function ss(e) {
1322
- return Rt(e) && hi(e);
1322
+ return zt(e) && ci(e);
1323
1323
  }
1324
1324
  const rs = L({
1325
1325
  name: "MergeCellCommandButton",
@@ -1334,7 +1334,7 @@ const rs = L({
1334
1334
  },
1335
1335
  computed: {
1336
1336
  isTableActive() {
1337
- return Rt(this.editor.state);
1337
+ return zt(this.editor.state);
1338
1338
  }
1339
1339
  },
1340
1340
  setup() {
@@ -1425,10 +1425,10 @@ function ds(e, t, a, l, o, i) {
1425
1425
  }, null, 8, ["command", "enable-tooltip", "is-active", "tooltip", "readonly"])
1426
1426
  ], 64);
1427
1427
  }
1428
- const Yl = /* @__PURE__ */ j(rs, [["render", ds]]), us = L({
1428
+ const Jl = /* @__PURE__ */ j(rs, [["render", ds]]), us = L({
1429
1429
  name: "MergeCellBubbleMenu",
1430
1430
  components: {
1431
- MergeCellCommandButton: Yl
1431
+ MergeCellCommandButton: Jl
1432
1432
  },
1433
1433
  props: {
1434
1434
  editor: {
@@ -1438,12 +1438,12 @@ const Yl = /* @__PURE__ */ j(rs, [["render", ds]]), us = L({
1438
1438
  }
1439
1439
  }), ps = { class: "mergecell-bubble-menu" };
1440
1440
  function ms(e, t, a, l, o, i) {
1441
- const d = Yl;
1441
+ const d = Jl;
1442
1442
  return n(), w("div", ps, [
1443
1443
  r(d, { editor: e.editor }, null, 8, ["editor"])
1444
1444
  ]);
1445
1445
  }
1446
- const Jl = /* @__PURE__ */ j(us, [["render", ms]]), fs = L({
1446
+ const Ql = /* @__PURE__ */ j(us, [["render", ms]]), fs = L({
1447
1447
  name: "UnlinkCommandButton",
1448
1448
  components: {
1449
1449
  CommandButton: z
@@ -1473,7 +1473,7 @@ function hs(e, t, a, l, o, i) {
1473
1473
  icon: "unlink"
1474
1474
  }, null, 8, ["command", "enable-tooltip", "tooltip"]);
1475
1475
  }
1476
- const Ql = /* @__PURE__ */ j(fs, [["render", hs]]), cs = L({
1476
+ const Xl = /* @__PURE__ */ j(fs, [["render", hs]]), cs = L({
1477
1477
  name: "EditLinkCommandButton",
1478
1478
  components: {
1479
1479
  ElDialog: $t,
@@ -1595,7 +1595,7 @@ function bs(e, t, a, l, o, i) {
1595
1595
  }, 8, ["title", "modelValue", "width"])
1596
1596
  ]);
1597
1597
  }
1598
- const Xl = /* @__PURE__ */ j(cs, [["render", bs]]), gs = L({
1598
+ const Zl = /* @__PURE__ */ j(cs, [["render", bs]]), gs = L({
1599
1599
  name: "OpenLinkCommandButton",
1600
1600
  components: {
1601
1601
  CommandButton: z
@@ -1632,12 +1632,12 @@ function ys(e, t, a, l, o, i) {
1632
1632
  icon: "external-link"
1633
1633
  }, null, 8, ["command", "enable-tooltip", "tooltip"]);
1634
1634
  }
1635
- const Zl = /* @__PURE__ */ j(gs, [["render", ys]]), vs = L({
1635
+ const eo = /* @__PURE__ */ j(gs, [["render", ys]]), vs = L({
1636
1636
  name: "LinkBubbleMenu",
1637
1637
  components: {
1638
- OpenLinkCommandButton: Zl,
1639
- EditLinkCommandButton: Xl,
1640
- UnlinkCommandButton: Ql
1638
+ OpenLinkCommandButton: eo,
1639
+ EditLinkCommandButton: Zl,
1640
+ UnlinkCommandButton: Xl
1641
1641
  },
1642
1642
  props: {
1643
1643
  editor: {
@@ -1652,7 +1652,7 @@ const Zl = /* @__PURE__ */ j(gs, [["render", ys]]), vs = L({
1652
1652
  }
1653
1653
  }), ws = { class: "link-bubble-menu" };
1654
1654
  function Fs(e, t, a, l, o, i) {
1655
- const d = Zl, u = Xl, m = Ql;
1655
+ const d = eo, u = Zl, m = Xl;
1656
1656
  return n(), w("div", ws, [
1657
1657
  me(e.$slots, "prepend"),
1658
1658
  r(d, {
@@ -1666,14 +1666,14 @@ function Fs(e, t, a, l, o, i) {
1666
1666
  r(m, { editor: e.editor }, null, 8, ["editor"])
1667
1667
  ]);
1668
1668
  }
1669
- const eo = /* @__PURE__ */ j(vs, [["render", Fs]]), _s = L({
1669
+ const to = /* @__PURE__ */ j(vs, [["render", Fs]]), _s = L({
1670
1670
  name: "MenuBubble",
1671
1671
  components: {
1672
- BubbleMenu: ui,
1673
- LinkBubbleMenu: eo,
1674
- MergeCellBubbleMenu: Jl,
1675
- VIcon: Gl,
1676
- FloatingMenu: di
1672
+ BubbleMenu: pi,
1673
+ LinkBubbleMenu: to,
1674
+ MergeCellBubbleMenu: Ql,
1675
+ VIcon: Yl,
1676
+ FloatingMenu: ui
1677
1677
  },
1678
1678
  props: {
1679
1679
  editor: {
@@ -1712,7 +1712,7 @@ const eo = /* @__PURE__ */ j(vs, [["render", Fs]]), _s = L({
1712
1712
  return this.$_isLinkSelection(a);
1713
1713
  },
1714
1714
  isTableActive() {
1715
- return Rt(this.editor.state);
1715
+ return zt(this.editor.state);
1716
1716
  }
1717
1717
  },
1718
1718
  watch: {
@@ -1756,12 +1756,12 @@ const eo = /* @__PURE__ */ j(vs, [["render", Fs]]), _s = L({
1756
1756
  return this.editor.isActive("link");
1757
1757
  },
1758
1758
  $_getCurrentMenuType() {
1759
- return this.isLinkSelection ? "link" : this.editor.state.selection instanceof bi ? "cell" : (this.editor.state.selection instanceof ca || this.editor.state.selection instanceof Aa) && !this.activeImage ? "default" : "none";
1759
+ return this.isLinkSelection ? "link" : this.editor.state.selection instanceof gi ? "cell" : (this.editor.state.selection instanceof ba || this.editor.state.selection instanceof Oa) && !this.activeImage ? "default" : "none";
1760
1760
  }
1761
1761
  }
1762
1762
  }), Ss = { ref: "parentRef" }, ks = { class: "el-tiptap-editor__menu-floating" };
1763
1763
  function Cs(e, t, a, l, o, i) {
1764
- const d = Y("v-icon"), u = eo, m = Jl, h = Y("bubble-menu"), b = z, _ = oa, C = Y("floating-menu");
1764
+ const d = Y("v-icon"), u = to, m = Ql, h = Y("bubble-menu"), b = z, _ = ia, C = Y("floating-menu");
1765
1765
  return n(), w("div", Ss, [
1766
1766
  e.editor ? (n(), p(h, {
1767
1767
  key: 0,
@@ -1795,10 +1795,10 @@ 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(E, { 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(pa(c.component), ae({
1799
1799
  key: "command-button" + M,
1800
1800
  "enable-tooltip": e.enableTooltip
1801
- }, { ref_for: !0 }, c.componentProps, { readonly: e.isCodeViewMode }, Bl(c.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128)) : g("", !0)
1801
+ }, { ref_for: !0 }, c.componentProps, { readonly: e.isCodeViewMode }, jl(c.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128)) : g("", !0)
1802
1802
  ], 2)
1803
1803
  ]),
1804
1804
  _: 1
@@ -1866,7 +1866,7 @@ function Cs(e, t, a, l, o, i) {
1866
1866
  }, 8, ["editor", "tippy-options", "should-show"])) : g("", !0)
1867
1867
  ], 512);
1868
1868
  }
1869
- const to = /* @__PURE__ */ j(_s, [["render", Cs]]), Ds = {
1869
+ const ao = /* @__PURE__ */ j(_s, [["render", Cs]]), Ds = {
1870
1870
  editor: {
1871
1871
  extensions: {
1872
1872
  Bold: {
@@ -2079,7 +2079,7 @@ const to = /* @__PURE__ */ j(_s, [["render", Cs]]), Ds = {
2079
2079
  },
2080
2080
  characters: "Characters"
2081
2081
  }
2082
- }, tl = {
2082
+ }, al = {
2083
2083
  buildI18nHandler(e = Ds) {
2084
2084
  return function(a) {
2085
2085
  return a.split(".").reduce((o, i) => o[i], e);
@@ -2107,7 +2107,7 @@ function $s(e) {
2107
2107
  };
2108
2108
  xe.config.set("basePath", "/ace-addon/");
2109
2109
  const C = d ? "tomorrow_night_eighties" : "sqlserver";
2110
- t = i = Ll(
2110
+ t = i = Bl(
2111
2111
  xe.edit(a.value, {
2112
2112
  mode: "ace/mode/" + _.mode,
2113
2113
  theme: "ace/theme/" + C,
@@ -2142,23 +2142,23 @@ function $s(e) {
2142
2142
  isCodeViewMode: l
2143
2143
  };
2144
2144
  }
2145
- const al = "px";
2145
+ const ll = "px";
2146
2146
  function Ts({
2147
2147
  width: e,
2148
2148
  height: t
2149
2149
  }) {
2150
2150
  return [{
2151
- width: isNaN(Number(e)) ? e : `${e}${al}`,
2152
- height: isNaN(Number(t)) ? t : `${t}${al}`
2151
+ width: isNaN(Number(e)) ? e : `${e}${ll}`,
2152
+ height: isNaN(Number(t)) ? t : `${t}${ll}`
2153
2153
  }];
2154
2154
  }
2155
2155
  const Ms = L({
2156
2156
  name: "ElementTiptap",
2157
2157
  emits: ["update:modelValue", "update:content", "onUpdate", "change", "onCreate", "onTransaction", "onBlur", "onFocus", "onDestroy"],
2158
2158
  components: {
2159
- EditorContent: pi,
2160
- MenuBar: xl,
2161
- MenuBubble: to
2159
+ EditorContent: mi,
2160
+ MenuBar: Kl,
2161
+ MenuBubble: ao
2162
2162
  },
2163
2163
  props: {
2164
2164
  modelValue: {
@@ -2275,21 +2275,21 @@ const Ms = L({
2275
2275
  setup(e, { emit: t }) {
2276
2276
  const a = K(""), l = K(!1), o = e.extensions;
2277
2277
  o.push(
2278
- yi.configure({
2278
+ vi.configure({
2279
2279
  emptyEditorClass: "el-tiptap-editor--empty",
2280
2280
  emptyNodeClass: "el-tiptap-editor__placeholder",
2281
2281
  showOnlyCurrent: !1,
2282
2282
  placeholder: ({ node: f }) => e.placeholder
2283
2283
  })
2284
2284
  ), e.enableCharCount !== !1 && o.push(
2285
- vi.configure({
2285
+ wi.configure({
2286
2286
  limit: e.charCountMax
2287
2287
  })
2288
2288
  );
2289
2289
  const i = ({ editor: f }) => {
2290
2290
  let y;
2291
2291
  e.output === "html" ? y = f.getHTML() : y = f.getJSON(), l.value = !0, a.value = y, t("update:modelValue", y), t("update:content", y), t("onUpdate", y, f), t("change", y);
2292
- }, d = mi({
2292
+ }, d = fi({
2293
2293
  content: a.value,
2294
2294
  extensions: o,
2295
2295
  editable: !e.readonly,
@@ -2310,7 +2310,7 @@ const Ms = L({
2310
2310
  },
2311
2311
  onUpdate: i
2312
2312
  });
2313
- Go(() => {
2313
+ Yo(() => {
2314
2314
  de(d)?.setOptions({
2315
2315
  editorProps: {
2316
2316
  attributes: {
@@ -2319,7 +2319,7 @@ const Ms = L({
2319
2319
  }
2320
2320
  });
2321
2321
  });
2322
- const u = tl.buildI18nHandler(Yo(e.locale)), m = (...f) => u.apply(tl, f), h = K(!1), b = (f) => {
2322
+ const u = al.buildI18nHandler(Jo(e.locale)), m = (...f) => u.apply(al, f), h = K(!1), b = (f) => {
2323
2323
  h.value = f;
2324
2324
  };
2325
2325
  We("isFullscreen", h), We("toggleFullscreen", b), We("enableTooltip", e.tooltip), We("userState", e.userState);
@@ -2344,7 +2344,7 @@ const Ms = L({
2344
2344
  style: { "min-height": "400px", width: "100%" }
2345
2345
  }, Vs = { class: "el-tiptap-editor__characters" };
2346
2346
  function As(e, t, a, l, o, i) {
2347
- const d = to, u = xl, m = Y("editor-content");
2347
+ const d = ao, u = Kl, m = Y("editor-content");
2348
2348
  return e.editor ? (n(), w("div", {
2349
2349
  key: 0,
2350
2350
  style: te(e.editorStyle),
@@ -2386,7 +2386,7 @@ function As(e, t, a, l, o, i) {
2386
2386
  e.editorContentClass
2387
2387
  ])
2388
2388
  }, null, 8, ["editor", "class"]), [
2389
- [jl, !e.isCodeViewMode]
2389
+ [Ul, !e.isCodeViewMode]
2390
2390
  ]),
2391
2391
  e.showFooter && !e.readonly ? (n(), w("div", {
2392
2392
  key: 3,
@@ -2417,7 +2417,7 @@ const Os = /* @__PURE__ */ j(Ms, [["render", As]]), Ns = lt.create({
2417
2417
  renderHTML({ HTMLAttributes: e }) {
2418
2418
  return ["h1", Qe(e), 0];
2419
2419
  }
2420
- }), ll = wi.extend({
2420
+ }), ol = Fi.extend({
2421
2421
  addOptions() {
2422
2422
  return {
2423
2423
  title: !1
@@ -2432,9 +2432,9 @@ const Os = /* @__PURE__ */ j(Ms, [["render", As]]), Ns = lt.create({
2432
2432
  }), Es = L({
2433
2433
  name: "HeadingDropdown",
2434
2434
  components: {
2435
- ElDropdown: fa,
2436
- ElDropdownMenu: ma,
2437
- ElDropdownItem: pa,
2435
+ ElDropdown: ha,
2436
+ ElDropdownMenu: fa,
2437
+ ElDropdownItem: ma,
2438
2438
  CommandButton: z
2439
2439
  },
2440
2440
  props: {
@@ -2486,7 +2486,7 @@ function Bs(e, t, a, l, o, i) {
2486
2486
  ])
2487
2487
  }, {
2488
2488
  default: s(() => [
2489
- b > 0 ? (n(), p(ua("h" + b), {
2489
+ b > 0 ? (n(), p(pa("h" + b), {
2490
2490
  key: 0,
2491
2491
  "data-item-type": "heading"
2492
2492
  }, {
@@ -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(Es, [["render", Bs]]), ol = Fi.extend({
2519
+ const js = /* @__PURE__ */ j(Es, [["render", Bs]]), il = _i.extend({
2520
2520
  addOptions() {
2521
2521
  return {
2522
2522
  ...this.parent?.(),
@@ -2531,7 +2531,7 @@ const js = /* @__PURE__ */ j(Es, [["render", Bs]]), ol = Fi.extend({
2531
2531
  }
2532
2532
  };
2533
2533
  }
2534
- }), Us = _i.extend({
2534
+ }), Us = Si.extend({
2535
2535
  addOptions() {
2536
2536
  return {
2537
2537
  ...this.parent?.(),
@@ -2551,7 +2551,7 @@ const js = /* @__PURE__ */ j(Es, [["render", Bs]]), ol = Fi.extend({
2551
2551
  };
2552
2552
  }
2553
2553
  });
2554
- Si.extend({
2554
+ ki.extend({
2555
2555
  addOptions() {
2556
2556
  return {
2557
2557
  ...this.parent?.(),
@@ -2571,12 +2571,12 @@ Si.extend({
2571
2571
  };
2572
2572
  }
2573
2573
  });
2574
- const zt = Ci(Di);
2575
- zt.register("html", Mi);
2576
- zt.register("css", Ii);
2577
- zt.register("js", $i);
2578
- zt.register("ts", Ti);
2579
- const Rs = ki.extend({
2574
+ const qt = Di(Ii);
2575
+ qt.register("html", Pi);
2576
+ qt.register("css", $i);
2577
+ qt.register("js", Ti);
2578
+ qt.register("ts", Mi);
2579
+ const Rs = Ci.extend({
2580
2580
  addOptions() {
2581
2581
  return {
2582
2582
  ...this.parent?.(),
@@ -2593,12 +2593,12 @@ const Rs = ki.extend({
2593
2593
  }
2594
2594
  };
2595
2595
  },
2596
- lowlight: zt
2596
+ lowlight: qt
2597
2597
  // languageClassPrefix: 'language-',
2598
2598
  // defaultLanguage: 'plaintext',
2599
2599
  };
2600
2600
  }
2601
- }), il = Pi.extend({
2601
+ }), nl = Vi.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 = Vi.extend({
2623
+ }), sl = Ai.extend({
2624
2624
  addOptions() {
2625
2625
  return {
2626
2626
  ...this.parent?.(),
@@ -2640,7 +2640,7 @@ const Rs = ki.extend({
2640
2640
  };
2641
2641
  },
2642
2642
  addExtensions() {
2643
- return [ei];
2643
+ return [ti];
2644
2644
  }
2645
2645
  }), zs = { class: "mb-2" }, qs = {
2646
2646
  class: "ml-2 text-3",
@@ -2741,7 +2741,7 @@ 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 V = oe, T = Y("Plus"), H = Ge, Z = vt, W = Y("zoom-in"), Ne = Y("Delete"), Be = Ia, et = ia;
2744
+ const V = oe, T = Y("Plus"), H = Ge, Z = vt, W = Y("zoom-in"), Ne = Y("Delete"), Be = $a, et = na;
2745
2745
  return n(), w(E, null, [
2746
2746
  P("div", zs, [
2747
2747
  r(V, {
@@ -2836,7 +2836,7 @@ const Rs = ki.extend({
2836
2836
  ], 64);
2837
2837
  };
2838
2838
  }
2839
- }), Ys = /* @__PURE__ */ j(Gs, [["__scopeId", "data-v-b25f6961"]]), ka = {};
2839
+ }), Ys = /* @__PURE__ */ j(Gs, [["__scopeId", "data-v-b25f6961"]]), Ca = {};
2840
2840
  function Js(e) {
2841
2841
  return new Promise((t, a) => {
2842
2842
  const l = {
@@ -2849,33 +2849,33 @@ function Js(e) {
2849
2849
  a(l);
2850
2850
  return;
2851
2851
  }
2852
- if (ka[e]) {
2853
- t({ ...ka[e] });
2852
+ if (Ca[e]) {
2853
+ t({ ...Ca[e] });
2854
2854
  return;
2855
2855
  }
2856
2856
  const o = new Image();
2857
2857
  o.onload = () => {
2858
- l.width = o.width, l.height = o.height, l.complete = !0, ka[e] = { ...l }, t(l);
2858
+ l.width = o.width, l.height = o.height, l.complete = !0, Ca[e] = { ...l }, t(l);
2859
2859
  }, o.onerror = () => {
2860
2860
  a(l);
2861
2861
  }, o.src = e;
2862
2862
  });
2863
2863
  }
2864
2864
  var Le = /* @__PURE__ */ ((e) => (e.INLINE = "inline", e.BREAK_TEXT = "block", e.FLOAT_LEFT = "left", e.FLOAT_RIGHT = "right", e))(Le || {});
2865
- const sl = "[Element-Tiptap Tip]", Qs = /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/, Xs = 200, Zs = Le.INLINE, ao = 1.7, aa = "100%";
2866
- class lo {
2865
+ const rl = "[Element-Tiptap Tip]", Qs = /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/, Xs = 200, Zs = Le.INLINE, lo = 1.7, la = "100%";
2866
+ class oo {
2867
2867
  static warn(t) {
2868
- console.warn(`${sl} ${t}`);
2868
+ console.warn(`${rl} ${t}`);
2869
2869
  }
2870
2870
  static error(t) {
2871
- console.error(`${sl} ${t}`);
2871
+ console.error(`${rl} ${t}`);
2872
2872
  }
2873
2873
  }
2874
2874
  const er = L({
2875
2875
  name: "ImageCommandButton",
2876
2876
  components: {
2877
2877
  ElDialog: $t,
2878
- ElUpload: ai,
2878
+ ElUpload: li,
2879
2879
  ElPopover: ht,
2880
2880
  CommandButton: z
2881
2881
  },
@@ -2926,7 +2926,7 @@ const er = L({
2926
2926
  this.editor.commands.setImage({ src: e.url }), this.imageUploadDialogVisible = !1;
2927
2927
  },
2928
2928
  async uploadImage(e) {
2929
- const { file: t } = e, a = this.imageNodeOptions.uploadRequest, l = ta.service({
2929
+ const { file: t } = e, a = this.imageNodeOptions.uploadRequest, l = aa.service({
2930
2930
  target: ".el-tiptap-upload"
2931
2931
  });
2932
2932
  try {
@@ -2934,7 +2934,7 @@ const er = L({
2934
2934
  const i = await (a ? a(t) : ts(t));
2935
2935
  o.setImage({ src: i }), this.imageUploadDialogVisible = !1;
2936
2936
  } catch (o) {
2937
- lo.error(String(o));
2937
+ oo.error(String(o));
2938
2938
  } finally {
2939
2939
  this.$nextTick(() => {
2940
2940
  l.close();
@@ -3042,13 +3042,13 @@ function nr(e, t, a, l, o, i) {
3042
3042
  icon: "trash-alt"
3043
3043
  }, null, 8, ["command", "enable-tooltip", "tooltip"]);
3044
3044
  }
3045
- const oo = /* @__PURE__ */ j(ir, [["render", nr]]), sr = L({
3045
+ const io = /* @__PURE__ */ j(ir, [["render", nr]]), sr = L({
3046
3046
  components: {
3047
3047
  ElDialog: $t,
3048
3048
  ElForm: Ut,
3049
3049
  ElFormItem: jt,
3050
3050
  ElInput: ft,
3051
- ElCol: li,
3051
+ ElCol: oi,
3052
3052
  ElButton: mt,
3053
3053
  CommandButton: z
3054
3054
  },
@@ -3221,7 +3221,7 @@ function rr(e, t, a, l, o, i) {
3221
3221
  }, 8, ["modelValue", "title", "width", "onOpen"])
3222
3222
  ]);
3223
3223
  }
3224
- const io = /* @__PURE__ */ j(sr, [["render", rr]]), dr = L({
3224
+ const no = /* @__PURE__ */ j(sr, [["render", rr]]), dr = L({
3225
3225
  name: "ImageDisplayCommandButton",
3226
3226
  components: {
3227
3227
  ElPopover: ht,
@@ -3285,11 +3285,11 @@ function mr(e, t, a, l, o, i) {
3285
3285
  _: 1
3286
3286
  }, 512);
3287
3287
  }
3288
- const no = /* @__PURE__ */ j(dr, [["render", mr]]), fr = L({
3288
+ const so = /* @__PURE__ */ j(dr, [["render", mr]]), fr = L({
3289
3289
  components: {
3290
- ImageDisplayCommandButton: no,
3291
- EditImageCommandButton: io,
3292
- RemoveImageCommandButton: oo
3290
+ ImageDisplayCommandButton: so,
3291
+ EditImageCommandButton: no,
3292
+ RemoveImageCommandButton: io
3293
3293
  },
3294
3294
  props: {
3295
3295
  // editor: {
@@ -3302,7 +3302,7 @@ const no = /* @__PURE__ */ j(dr, [["render", mr]]), fr = L({
3302
3302
  }
3303
3303
  }), hr = { class: "image-bubble-menu" };
3304
3304
  function cr(e, t, a, l, o, i) {
3305
- const d = no, u = io, m = oo;
3305
+ const d = so, u = no, m = io;
3306
3306
  return n(), w("div", hr, [
3307
3307
  r(d, {
3308
3308
  node: e.node,
@@ -3318,19 +3318,19 @@ function cr(e, t, a, l, o, i) {
3318
3318
  }, null, 8, ["node", "editor"])
3319
3319
  ]);
3320
3320
  }
3321
- const so = /* @__PURE__ */ j(fr, [["render", cr]]), Xt = 20, rl = 1e5, br = L({
3321
+ const ro = /* @__PURE__ */ j(fr, [["render", cr]]), Zt = 20, dl = 1e5, br = L({
3322
3322
  name: "ImageView",
3323
3323
  components: {
3324
3324
  ElPopover: ht,
3325
3325
  NodeViewWrapper: Xe,
3326
- ImageBubbleMenu: so
3326
+ ImageBubbleMenu: ro
3327
3327
  },
3328
3328
  props: ye,
3329
3329
  data() {
3330
3330
  return {
3331
3331
  maxSize: {
3332
- width: rl,
3333
- height: rl
3332
+ width: dl,
3333
+ height: dl
3334
3334
  },
3335
3335
  originalSize: {
3336
3336
  width: 0,
@@ -3373,7 +3373,7 @@ const so = /* @__PURE__ */ j(fr, [["render", cr]]), Xt = 20, rl = 1e5, br = L({
3373
3373
  },
3374
3374
  async created() {
3375
3375
  const e = await Js(this.src);
3376
- e.complete || (e.width = Xt, e.height = Xt), this.originalSize = {
3376
+ e.complete || (e.width = Zt, e.height = Zt), this.originalSize = {
3377
3377
  width: e.width,
3378
3378
  height: e.height
3379
3379
  };
@@ -3407,8 +3407,8 @@ const so = /* @__PURE__ */ j(fr, [["render", cr]]), Xt = 20, rl = 1e5, br = L({
3407
3407
  if (e.preventDefault(), e.stopPropagation(), !this.resizing) return;
3408
3408
  const { x: t, y: a, w: l, h: o, dir: i } = this.resizerState, d = (e.clientX - t) * (/l/.test(i) ? -1 : 1), u = (e.clientY - a) * (/t/.test(i) ? -1 : 1);
3409
3409
  this.updateAttributes?.({
3410
- width: Kl(l + d, Xt, this.maxSize.width),
3411
- height: Math.max(o + u, Xt)
3410
+ width: Gl(l + d, Zt, this.maxSize.width),
3411
+ height: Math.max(o + u, Zt)
3412
3412
  });
3413
3413
  },
3414
3414
  onMouseUp(e) {
@@ -3432,7 +3432,7 @@ const so = /* @__PURE__ */ j(fr, [["render", cr]]), Xt = 20, rl = 1e5, br = L({
3432
3432
  class: "image-resizer"
3433
3433
  }, vr = ["onMousedown"];
3434
3434
  function wr(e, t, a, l, o, i) {
3435
- const d = so, u = Ye, m = Y("node-view-wrapper");
3435
+ const d = ro, u = Ye, m = Y("node-view-wrapper");
3436
3436
  return n(), p(m, {
3437
3437
  as: "span",
3438
3438
  class: Q(e.imageViewClass),
@@ -3462,7 +3462,7 @@ function wr(e, t, a, l, o, i) {
3462
3462
  onMousedown: (b) => e.onMouseDown(b, h)
3463
3463
  }, null, 42, vr))), 128))
3464
3464
  ], 512)), [
3465
- [jl, e.selected || e.resizing]
3465
+ [Ul, e.selected || e.resizing]
3466
3466
  ]) : g("", !0),
3467
3467
  e.editor?.isEditable ? (n(), p(u, {
3468
3468
  key: 1,
@@ -3488,7 +3488,7 @@ function wr(e, t, a, l, o, i) {
3488
3488
  _: 1
3489
3489
  }, 8, ["class"]);
3490
3490
  }
3491
- const Fr = /* @__PURE__ */ j(br, [["render", wr]]), _r = Ai.extend({
3491
+ const Fr = /* @__PURE__ */ j(br, [["render", wr]]), _r = Oi.extend({
3492
3492
  // https://github.com/ueberdosis/tiptap/issues/1206
3493
3493
  inline() {
3494
3494
  return !0;
@@ -3566,7 +3566,7 @@ const Fr = /* @__PURE__ */ j(br, [["render", wr]]), _r = Ai.extend({
3566
3566
  name: "TaskItemView",
3567
3567
  components: {
3568
3568
  NodeViewWrapper: Xe,
3569
- NodeViewContent: fi,
3569
+ NodeViewContent: hi,
3570
3570
  ElCheckbox: Bt
3571
3571
  },
3572
3572
  props: ye,
@@ -3584,7 +3584,7 @@ const Fr = /* @__PURE__ */ j(br, [["render", wr]]), _r = Ai.extend({
3584
3584
  }
3585
3585
  }), kr = ["data-type", "data-done"], Cr = { contenteditable: "false" };
3586
3586
  function Dr(e, t, a, l, o, i) {
3587
- const d = na, u = Y("node-view-content"), m = Y("node-view-wrapper");
3587
+ const d = sa, 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
3590
  P("li", {
@@ -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 = Ni.extend({
3607
+ const Ir = /* @__PURE__ */ j(Sr, [["render", Dr]]), $r = Ei.extend({
3608
3608
  addAttributes() {
3609
3609
  return {
3610
3610
  ...this.parent?.(),
@@ -3642,7 +3642,7 @@ const Ir = /* @__PURE__ */ j(Sr, [["render", Dr]]), $r = Ni.extend({
3642
3642
  addNodeView() {
3643
3643
  return ot(Ir);
3644
3644
  }
3645
- }), Tr = Oi.extend({
3645
+ }), Tr = Ni.extend({
3646
3646
  addOptions() {
3647
3647
  return {
3648
3648
  ...this.parent?.(),
@@ -3664,7 +3664,7 @@ const Ir = /* @__PURE__ */ j(Sr, [["render", Dr]]), $r = Ni.extend({
3664
3664
  addExtensions() {
3665
3665
  return [$r];
3666
3666
  }
3667
- }), Zt = 5, dl = 10, ea = 2, Mr = L({
3667
+ }), ea = 5, ul = 10, ta = 2, Mr = L({
3668
3668
  name: "CreateTablePopover",
3669
3669
  components: {
3670
3670
  ElPopover: ht
@@ -3678,26 +3678,26 @@ const Ir = /* @__PURE__ */ j(Sr, [["render", Dr]]), $r = Ni.extend({
3678
3678
  data() {
3679
3679
  return {
3680
3680
  tableGridSize: {
3681
- row: Zt,
3682
- col: Zt
3683
- },
3684
- selectedTableGridSize: {
3685
3681
  row: ea,
3686
3682
  col: ea
3683
+ },
3684
+ selectedTableGridSize: {
3685
+ row: ta,
3686
+ col: ta
3687
3687
  }
3688
3688
  };
3689
3689
  },
3690
3690
  methods: {
3691
3691
  selectTableGridSize(e, t) {
3692
- e === this.tableGridSize.row && (this.tableGridSize.row = Math.min(e + 1, dl)), t === this.tableGridSize.col && (this.tableGridSize.col = Math.min(t + 1, dl)), this.selectedTableGridSize.row = e, this.selectedTableGridSize.col = t;
3692
+ e === this.tableGridSize.row && (this.tableGridSize.row = Math.min(e + 1, ul)), t === this.tableGridSize.col && (this.tableGridSize.col = Math.min(t + 1, ul)), this.selectedTableGridSize.row = e, this.selectedTableGridSize.col = t;
3693
3693
  },
3694
3694
  resetTableGridSize() {
3695
3695
  this.tableGridSize = {
3696
- row: Zt,
3697
- col: Zt
3698
- }, this.selectedTableGridSize = {
3699
3696
  row: ea,
3700
3697
  col: ea
3698
+ }, this.selectedTableGridSize = {
3699
+ row: ta,
3700
+ col: ta
3701
3701
  };
3702
3702
  }
3703
3703
  }
@@ -3743,12 +3743,12 @@ function Lr(e, t, a, l, o, i) {
3743
3743
  _: 1
3744
3744
  }, 8, ["modelValue", "onAfterLeave"]);
3745
3745
  }
3746
- const ro = /* @__PURE__ */ j(Mr, [["render", Lr]]), Br = L({
3746
+ const uo = /* @__PURE__ */ j(Mr, [["render", Lr]]), Br = L({
3747
3747
  name: "TablePopover",
3748
3748
  components: {
3749
3749
  ElPopover: ht,
3750
3750
  CommandButton: z,
3751
- CreateTablePopover: ro
3751
+ CreateTablePopover: uo
3752
3752
  },
3753
3753
  props: {
3754
3754
  editor: {
@@ -3762,7 +3762,7 @@ const ro = /* @__PURE__ */ j(Mr, [["render", Lr]]), Br = L({
3762
3762
  },
3763
3763
  computed: {
3764
3764
  isTableActive() {
3765
- return Rt(this.editor.state);
3765
+ return zt(this.editor.state);
3766
3766
  },
3767
3767
  enableMergeCells() {
3768
3768
  return ns(this.editor.state);
@@ -3785,7 +3785,7 @@ const ro = /* @__PURE__ */ j(Mr, [["render", Lr]]), Br = L({
3785
3785
  }
3786
3786
  });
3787
3787
  function jr(e, t, a, l, o, i) {
3788
- const d = z, u = ro, m = _t, h = oa, b = Ft, _ = wt;
3788
+ const d = z, u = uo, m = _t, h = ia, b = Ft, _ = wt;
3789
3789
  return n(), p(_, {
3790
3790
  placement: "bottom",
3791
3791
  trigger: "click",
@@ -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 = Ei.extend({
3910
+ const Ur = /* @__PURE__ */ j(Br, [["render", jr]]), pl = Li.extend({
3911
3911
  addOptions() {
3912
3912
  return {
3913
3913
  ...this.parent?.(),
@@ -3922,7 +3922,7 @@ const Ur = /* @__PURE__ */ j(Br, [["render", jr]]), ul = Ei.extend({
3922
3922
  };
3923
3923
  },
3924
3924
  addExtensions() {
3925
- return [Li, Bi, ji];
3925
+ return [Bi, ji, Ui];
3926
3926
  }
3927
3927
  }), Rr = L({
3928
3928
  name: "IframeCommandButton",
@@ -4029,7 +4029,7 @@ const Hr = lt.create({
4029
4029
  };
4030
4030
  };
4031
4031
  }
4032
- }), pl = Ui.extend({
4032
+ }), ml = Ri.extend({
4033
4033
  addOptions() {
4034
4034
  return {
4035
4035
  ...this.parent?.(),
@@ -4048,7 +4048,7 @@ const Hr = lt.create({
4048
4048
  }
4049
4049
  };
4050
4050
  }
4051
- }), ml = Ri.extend({
4051
+ }), fl = zi.extend({
4052
4052
  addOptions() {
4053
4053
  return {
4054
4054
  ...this.parent?.(),
@@ -4067,7 +4067,7 @@ const Hr = lt.create({
4067
4067
  }
4068
4068
  };
4069
4069
  }
4070
- }), fl = zi.extend({
4070
+ }), hl = qi.extend({
4071
4071
  addOptions() {
4072
4072
  return {
4073
4073
  ...this.parent?.(),
@@ -4086,7 +4086,7 @@ const Hr = lt.create({
4086
4086
  }
4087
4087
  };
4088
4088
  }
4089
- }), Wr = qi.extend({
4089
+ }), Wr = Hi.extend({
4090
4090
  addOptions() {
4091
4091
  return {
4092
4092
  ...this.parent?.(),
@@ -4238,7 +4238,7 @@ function Kr(e, t, a, l, o, i) {
4238
4238
  }, 8, ["modelValue", "title", "width"])
4239
4239
  ]);
4240
4240
  }
4241
- const Gr = /* @__PURE__ */ j(xr, [["render", Kr]]), hl = Hi.extend({
4241
+ const Gr = /* @__PURE__ */ j(xr, [["render", Kr]]), cl = Wi.extend({
4242
4242
  priority: 100,
4243
4243
  addOptions() {
4244
4244
  return {
@@ -4255,14 +4255,14 @@ const Gr = /* @__PURE__ */ j(xr, [["render", Kr]]), hl = Hi.extend({
4255
4255
  },
4256
4256
  addProseMirrorPlugins() {
4257
4257
  return [
4258
- new gi({
4258
+ new yi({
4259
4259
  props: {
4260
4260
  handleClick(e, t) {
4261
4261
  const { schema: a, doc: l, tr: o } = e.state;
4262
4262
  if (a.marks && a.marks.link) {
4263
- const i = Xo(l.resolve(t), a.marks.link);
4263
+ const i = Zo(l.resolve(t), a.marks.link);
4264
4264
  if (!i) return !1;
4265
- const d = l.resolve(i.from), u = l.resolve(i.to), m = o.setSelection(new ca(d, u));
4265
+ const d = l.resolve(i.from), u = l.resolve(i.to), m = o.setSelection(new ba(d, u));
4266
4266
  return e.dispatch(m), !0;
4267
4267
  }
4268
4268
  return !1;
@@ -4271,7 +4271,7 @@ const Gr = /* @__PURE__ */ j(xr, [["render", Kr]]), hl = Hi.extend({
4271
4271
  })
4272
4272
  ];
4273
4273
  }
4274
- }), uo = [
4274
+ }), po = [
4275
4275
  "#f44336",
4276
4276
  "#e91e63",
4277
4277
  "#9c27b0",
@@ -4309,7 +4309,7 @@ const Gr = /* @__PURE__ */ j(xr, [["render", Kr]]), hl = Hi.extend({
4309
4309
  let h = e.editor.commands;
4310
4310
  m ? h.setColor(m) : h.unsetColor(), de(o).hide();
4311
4311
  }
4312
- const u = le(() => ha(e.editor.state, "textStyle").color || "");
4312
+ const u = le(() => ca(e.editor.state, "textStyle").color || "");
4313
4313
  return Ke(u, (m) => {
4314
4314
  i.value = m;
4315
4315
  }), {
@@ -4329,7 +4329,7 @@ const Gr = /* @__PURE__ */ j(xr, [["render", Kr]]), hl = Hi.extend({
4329
4329
  }
4330
4330
  }), Jr = { class: "color-set" }, Qr = ["onClick"], Xr = { class: "color__wrapper" }, Zr = { class: "color-hex" };
4331
4331
  function ed(e, t, a, l, o, i) {
4332
- const d = $a, u = oe, m = z, h = Ye;
4332
+ const d = Ta, u = oe, m = z, h = Ye;
4333
4333
  return n(), p(h, {
4334
4334
  disabled: e.isCodeViewMode,
4335
4335
  placement: "bottom",
@@ -4396,11 +4396,11 @@ function ed(e, t, a, l, o, i) {
4396
4396
  _: 1
4397
4397
  }, 8, ["disabled"]);
4398
4398
  }
4399
- const td = /* @__PURE__ */ j(Yr, [["render", ed]]), cl = Wi.extend({
4399
+ const td = /* @__PURE__ */ j(Yr, [["render", ed]]), bl = xi.extend({
4400
4400
  addOptions() {
4401
4401
  return {
4402
4402
  ...this.parent?.(),
4403
- colors: uo,
4403
+ colors: po,
4404
4404
  button({ editor: e, t }) {
4405
4405
  return {
4406
4406
  component: td,
@@ -4412,7 +4412,7 @@ const td = /* @__PURE__ */ j(Yr, [["render", ed]]), cl = Wi.extend({
4412
4412
  };
4413
4413
  },
4414
4414
  addExtensions() {
4415
- return [xi];
4415
+ return [Ki];
4416
4416
  }
4417
4417
  }), ad = L({
4418
4418
  name: "HighlightPopover",
@@ -4434,7 +4434,7 @@ const td = /* @__PURE__ */ j(Yr, [["render", ed]]), cl = Wi.extend({
4434
4434
  let b = e.editor.commands;
4435
4435
  h ? b.setHighlight({ color: h }) : b.unsetHighlight(), de(o).hide();
4436
4436
  }
4437
- const m = le(() => ha(e.editor.state, "highlight").color || "");
4437
+ const m = le(() => ca(e.editor.state, "highlight").color || "");
4438
4438
  return Ke(m, (h) => {
4439
4439
  d.value = h;
4440
4440
  }), {
@@ -4455,7 +4455,7 @@ const td = /* @__PURE__ */ j(Yr, [["render", ed]]), cl = Wi.extend({
4455
4455
  }
4456
4456
  }), ld = { class: "color-set" }, od = ["onClick"], id = { class: "color__wrapper" }, nd = { class: "color-hex" };
4457
4457
  function sd(e, t, a, l, o, i) {
4458
- const d = $a, u = oe, m = z, h = Ye;
4458
+ const d = Ta, u = oe, m = z, h = Ye;
4459
4459
  return n(), p(h, {
4460
4460
  disabled: e.isCodeViewMode,
4461
4461
  placement: "bottom",
@@ -4522,12 +4522,12 @@ function sd(e, t, a, l, o, i) {
4522
4522
  _: 1
4523
4523
  }, 8, ["disabled"]);
4524
4524
  }
4525
- const rd = /* @__PURE__ */ j(ad, [["render", sd]]), bl = Ki.extend({
4525
+ const rd = /* @__PURE__ */ j(ad, [["render", sd]]), gl = Gi.extend({
4526
4526
  addOptions() {
4527
4527
  return {
4528
4528
  ...this.parent?.(),
4529
4529
  multicolor: !0,
4530
- colors: uo,
4530
+ colors: po,
4531
4531
  button({ editor: e, t }) {
4532
4532
  return {
4533
4533
  component: rd,
@@ -4556,9 +4556,9 @@ const rd = /* @__PURE__ */ j(ad, [["render", sd]]), bl = Ki.extend({
4556
4556
  ), pd = L({
4557
4557
  name: "FontFamilyDropdown",
4558
4558
  components: {
4559
- ElDropdown: fa,
4560
- ElDropdownMenu: ma,
4561
- ElDropdownItem: pa,
4559
+ ElDropdown: ha,
4560
+ ElDropdownMenu: fa,
4561
+ ElDropdownItem: ma,
4562
4562
  CommandButton: z
4563
4563
  },
4564
4564
  props: {
@@ -4576,7 +4576,7 @@ const rd = /* @__PURE__ */ j(ad, [["render", sd]]), bl = Ki.extend({
4576
4576
  return this.editor.extensionManager.extensions.find((t) => t.name === "fontFamily").options.fontFamilyMap;
4577
4577
  },
4578
4578
  activeFontFamily() {
4579
- return ha(this.editor.state, "textStyle").fontFamily || "";
4579
+ return ca(this.editor.state, "textStyle").fontFamily || "";
4580
4580
  }
4581
4581
  },
4582
4582
  methods: {
@@ -4683,7 +4683,7 @@ const hd = /* @__PURE__ */ j(pd, [["render", fd]]), cd = He.create({
4683
4683
  "48",
4684
4684
  "60",
4685
4685
  "72"
4686
- ], po = "default", gd = /([\d.]+)px/i;
4686
+ ], mo = "default", gd = /([\d.]+)px/i;
4687
4687
  function yd(e) {
4688
4688
  const t = e.match(gd);
4689
4689
  if (!t) return "";
@@ -4693,9 +4693,9 @@ function yd(e) {
4693
4693
  const vd = L({
4694
4694
  name: "FontSizeDropdown",
4695
4695
  components: {
4696
- ElDropdown: fa,
4697
- ElDropdownMenu: ma,
4698
- ElDropdownItem: pa,
4696
+ ElDropdown: ha,
4697
+ ElDropdownMenu: fa,
4698
+ ElDropdownItem: ma,
4699
4699
  CommandButton: z
4700
4700
  },
4701
4701
  props: {
@@ -4706,14 +4706,14 @@ const vd = L({
4706
4706
  },
4707
4707
  setup() {
4708
4708
  const e = B("t"), t = B("enableTooltip", !0), a = B("isCodeViewMode", !1);
4709
- return { t: e, enableTooltip: t, isCodeViewMode: a, defaultSize: po };
4709
+ return { t: e, enableTooltip: t, isCodeViewMode: a, defaultSize: mo };
4710
4710
  },
4711
4711
  computed: {
4712
4712
  fontSizes() {
4713
4713
  return this.editor.extensionManager.extensions.find((t) => t.name === "fontSize").options.fontSizes;
4714
4714
  },
4715
4715
  activeFontSize() {
4716
- return ha(this.editor.state, "textStyle").fontSize || "";
4716
+ return ca(this.editor.state, "textStyle").fontSize || "";
4717
4717
  }
4718
4718
  },
4719
4719
  methods: {
@@ -4808,7 +4808,7 @@ const Sd = /* @__PURE__ */ j(vd, [["render", _d]]), kd = He.create({
4808
4808
  addCommands() {
4809
4809
  return {
4810
4810
  setFontSize: (e) => ({ chain: t }) => t().setMark("textStyle", { fontSize: e }).run(),
4811
- unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: po }).removeEmptyTextStyle().run()
4811
+ unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: mo }).removeEmptyTextStyle().run()
4812
4812
  };
4813
4813
  }
4814
4814
  // addExtensions() {
@@ -4981,7 +4981,7 @@ function Dd(e, t, a, l, o, i) {
4981
4981
  }, 8, ["modelValue"])
4982
4982
  ]);
4983
4983
  }
4984
- const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
4984
+ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Yi.extend({
4985
4985
  addOptions() {
4986
4986
  return {
4987
4987
  ...this.parent?.(),
@@ -4995,7 +4995,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
4995
4995
  }
4996
4996
  };
4997
4997
  }
4998
- }), Td = Yi.extend({
4998
+ }), Td = Ji.extend({
4999
4999
  addOptions() {
5000
5000
  return {
5001
5001
  ...this.parent?.(),
@@ -5014,7 +5014,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5014
5014
  }
5015
5015
  };
5016
5016
  }
5017
- }), Md = Ji.extend({
5017
+ }), Md = Qi.extend({
5018
5018
  addOptions() {
5019
5019
  return {
5020
5020
  ...this.parent?.(),
@@ -5146,7 +5146,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
5146
5146
  };
5147
5147
  };
5148
5148
  return (F, I) => {
5149
- const V = oe, T = ze, H = Ia, Z = ia, W = we;
5149
+ const V = oe, T = ze, H = $a, Z = na, W = we;
5150
5150
  return n(), w(E, null, [
5151
5151
  r(H, {
5152
5152
  action: e.userState.host + o.type[b.value].uploadUrl,
@@ -5335,7 +5335,7 @@ const Ed = /* @__PURE__ */ j(Od, [["render", Nd]]), Ld = He.create({
5335
5335
  }
5336
5336
  };
5337
5337
  }
5338
- }), gl = Qi.extend({
5338
+ }), yl = Xi.extend({
5339
5339
  addOptions() {
5340
5340
  return {
5341
5341
  ...this.parent?.(),
@@ -5353,7 +5353,7 @@ const Ed = /* @__PURE__ */ j(Od, [["render", Nd]]), Ld = He.create({
5353
5353
  }
5354
5354
  };
5355
5355
  }
5356
- }), yl = Xi.extend({
5356
+ }), vl = Zi.extend({
5357
5357
  addOptions() {
5358
5358
  return {
5359
5359
  ...this.parent?.(),
@@ -5383,7 +5383,7 @@ const Ed = /* @__PURE__ */ j(Od, [["render", Nd]]), Ld = He.create({
5383
5383
  }
5384
5384
  };
5385
5385
  }
5386
- }), vl = Zi.extend({
5386
+ }), wl = en.extend({
5387
5387
  addOptions() {
5388
5388
  return {
5389
5389
  ...this.parent?.(),
@@ -5407,19 +5407,19 @@ const Ed = /* @__PURE__ */ j(Od, [["render", Nd]]), Ld = He.create({
5407
5407
  var At = /* @__PURE__ */ ((e) => (e[e.max = 7] = "max", e[e.min = 0] = "min", e[e.more = 1] = "more", e[e.less = -1] = "less", e))(At || {});
5408
5408
  function Bd(e, t, a, l) {
5409
5409
  const { doc: o, selection: i } = e;
5410
- if (!o || !i || !(i instanceof ca || i instanceof Aa))
5410
+ if (!o || !i || !(i instanceof ba || i instanceof Oa))
5411
5411
  return e;
5412
5412
  const { from: d, to: u } = i;
5413
5413
  return o.nodesBetween(d, u, (m, h) => {
5414
5414
  const b = m.type;
5415
- return a.includes(b.name) ? (e = jd(e, h, t), !1) : !Zo(m.type.name, l.extensionManager.extensions);
5415
+ return a.includes(b.name) ? (e = jd(e, h, t), !1) : !ei(m.type.name, l.extensionManager.extensions);
5416
5416
  }), e;
5417
5417
  }
5418
5418
  function jd(e, t, a) {
5419
5419
  if (!e.doc) return e;
5420
5420
  const l = e.doc.nodeAt(t);
5421
5421
  if (!l) return e;
5422
- const d = Kl((l.attrs.indent || 0) + a, 0, 7);
5422
+ const d = Gl((l.attrs.indent || 0) + a, 0, 7);
5423
5423
  if (d === l.attrs.indent) return e;
5424
5424
  const u = {
5425
5425
  ...l.attrs,
@@ -5427,14 +5427,14 @@ function jd(e, t, a) {
5427
5427
  };
5428
5428
  return e.setNodeMarkup(t, l.type, u, l.marks);
5429
5429
  }
5430
- function wl({ delta: e, types: t }) {
5430
+ function Fl({ delta: e, types: t }) {
5431
5431
  return ({ state: a, dispatch: l, editor: o }) => {
5432
5432
  const { selection: i } = a;
5433
5433
  let { tr: d } = a;
5434
5434
  return d = d.setSelection(i), d = Bd(d, e, t, o), d.docChanged ? (l && l(d), !0) : !1;
5435
5435
  };
5436
5436
  }
5437
- const Fl = He.create({
5437
+ const _l = He.create({
5438
5438
  name: "indent",
5439
5439
  addOptions() {
5440
5440
  return {
@@ -5486,11 +5486,11 @@ const Fl = He.create({
5486
5486
  },
5487
5487
  addCommands() {
5488
5488
  return {
5489
- indent: () => wl({
5489
+ indent: () => Fl({
5490
5490
  delta: At.more,
5491
5491
  types: this.options.types
5492
5492
  }),
5493
- outdent: () => wl({
5493
+ outdent: () => Fl({
5494
5494
  delta: At.less,
5495
5495
  types: this.options.types
5496
5496
  })
@@ -5502,41 +5502,41 @@ const Fl = He.create({
5502
5502
  "Shift-Tab": () => this.editor.commands.outdent()
5503
5503
  };
5504
5504
  }
5505
- }), mo = ["paragraph", "heading", "list_item", "todo_item"], fo = /^\d+(.\d+)?$/;
5505
+ }), fo = ["paragraph", "heading", "list_item", "todo_item"], ho = /^\d+(.\d+)?$/;
5506
5506
  function Ud(e, t) {
5507
5507
  const { selection: a, doc: l } = e, { from: o, to: i } = a;
5508
5508
  let d = !0, u = !1;
5509
5509
  return l.nodesBetween(o, i, (m) => {
5510
- const h = m.type, b = m.attrs.lineHeight || aa;
5511
- return mo.includes(h.name) ? d && t === b ? (d = !1, u = !0, !1) : h.name !== "list_item" && h.name !== "todo_item" : d;
5510
+ const h = m.type, b = m.attrs.lineHeight || la;
5511
+ return fo.includes(h.name) ? d && t === b ? (d = !1, u = !0, !1) : h.name !== "list_item" && h.name !== "todo_item" : d;
5512
5512
  }), u;
5513
5513
  }
5514
5514
  function Rd(e) {
5515
5515
  if (!e) return "";
5516
5516
  let t = String(e);
5517
- if (fo.test(t)) {
5517
+ if (ho.test(t)) {
5518
5518
  const a = parseFloat(t);
5519
5519
  t = String(Math.round(a * 100)) + "%";
5520
5520
  }
5521
- return parseFloat(t) * ao + "%";
5521
+ return parseFloat(t) * lo + "%";
5522
5522
  }
5523
5523
  function zd(e) {
5524
- if (!e || e === aa) return "";
5524
+ if (!e || e === la) return "";
5525
5525
  let t = e;
5526
- if (fo.test(e)) {
5526
+ if (ho.test(e)) {
5527
5527
  const a = parseFloat(e);
5528
- if (t = String(Math.round(a * 100)) + "%", t === aa) return "";
5528
+ if (t = String(Math.round(a * 100)) + "%", t === la) return "";
5529
5529
  }
5530
- return parseFloat(t) / ao + "%";
5530
+ return parseFloat(t) / lo + "%";
5531
5531
  }
5532
5532
  function qd(e, t) {
5533
5533
  const { selection: a, doc: l } = e;
5534
- if (!a || !l || !(a instanceof ca || a instanceof Aa))
5534
+ if (!a || !l || !(a instanceof ba || a instanceof Oa))
5535
5535
  return e;
5536
- const { from: o, to: i } = a, d = [], u = t && t !== aa ? t : null;
5536
+ const { from: o, to: i } = a, d = [], u = t && t !== la ? t : null;
5537
5537
  return l.nodesBetween(o, i, (m, h) => {
5538
5538
  const b = m.type;
5539
- return mo.includes(b.name) ? ((m.attrs.lineHeight || null) !== u && d.push({
5539
+ return fo.includes(b.name) ? ((m.attrs.lineHeight || null) !== u && d.push({
5540
5540
  node: m,
5541
5541
  pos: h,
5542
5542
  nodeType: b
@@ -5560,9 +5560,9 @@ function Hd(e) {
5560
5560
  const Wd = L({
5561
5561
  name: "LineHeightDropdown",
5562
5562
  components: {
5563
- ElDropdown: fa,
5564
- ElDropdownMenu: ma,
5565
- ElDropdownItem: pa,
5563
+ ElDropdown: ha,
5564
+ ElDropdownMenu: fa,
5565
+ ElDropdownItem: ma,
5566
5566
  CommandButton: z
5567
5567
  },
5568
5568
  props: {
@@ -5666,7 +5666,7 @@ const Kd = /* @__PURE__ */ j(Wd, [["render", xd]]), Gd = He.create({
5666
5666
  unsetLineHeight: () => ({ commands: e }) => this.options.types.every((t) => e.resetAttributes(t, "lineHeight"))
5667
5667
  };
5668
5668
  }
5669
- }), _l = He.create({
5669
+ }), Sl = He.create({
5670
5670
  name: "formatClear",
5671
5671
  addOptions() {
5672
5672
  return {
@@ -5741,7 +5741,7 @@ function Zd(e) {
5741
5741
  o.close();
5742
5742
  }, 10);
5743
5743
  } catch (d) {
5744
- lo.error(d);
5744
+ oo.error(d);
5745
5745
  }
5746
5746
  setTimeout(function() {
5747
5747
  document.body.removeChild(l);
@@ -5892,7 +5892,7 @@ function ru(e, t, a, l, o, i) {
5892
5892
  _: 1
5893
5893
  });
5894
5894
  }
5895
- const du = /* @__PURE__ */ j(su, [["render", ru]]), Sl = lt.create({
5895
+ const du = /* @__PURE__ */ j(su, [["render", ru]]), kl = lt.create({
5896
5896
  name: "ElButton",
5897
5897
  group: "block",
5898
5898
  content: "block+",
@@ -5972,10 +5972,10 @@ 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 = Pl, m = Y("node-view-wrapper");
5975
+ const d = oe, u = Vl, m = Y("node-view-wrapper");
5976
5976
  return n(), p(m, { class: "vue-component" }, {
5977
5977
  default: s(() => [
5978
- r(u, Pa(Va(e.node.attrs)), {
5978
+ r(u, Va(Aa(e.node.attrs)), {
5979
5979
  default: s(() => [
5980
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({
@@ -5995,7 +5995,7 @@ function pu(e, t, a, l, o, i) {
5995
5995
  _: 1
5996
5996
  });
5997
5997
  }
5998
- const mu = /* @__PURE__ */ j(uu, [["render", pu]]), kl = lt.create({
5998
+ const mu = /* @__PURE__ */ j(uu, [["render", pu]]), Cl = lt.create({
5999
5999
  name: "ElButtonGroup",
6000
6000
  group: "block",
6001
6001
  content: "block+",
@@ -6047,7 +6047,7 @@ function hu(e, t, a, l, o, i) {
6047
6047
  _: 1
6048
6048
  });
6049
6049
  }
6050
- const cu = /* @__PURE__ */ j(fu, [["render", hu]]), Cl = lt.create({
6050
+ const cu = /* @__PURE__ */ j(fu, [["render", hu]]), Dl = lt.create({
6051
6051
  name: "ElIcon",
6052
6052
  group: "block",
6053
6053
  content: "inline*",
@@ -6105,7 +6105,7 @@ function gu(e, t, a, l, o, i) {
6105
6105
  _: 1
6106
6106
  });
6107
6107
  }
6108
- const yu = /* @__PURE__ */ j(bu, [["render", gu]]), Dl = lt.create({
6108
+ const yu = /* @__PURE__ */ j(bu, [["render", gu]]), Il = lt.create({
6109
6109
  name: "ElTag",
6110
6110
  group: "block",
6111
6111
  content: "inline*",
@@ -6168,12 +6168,12 @@ 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, Pa(Va(e.node.attrs)), null, 16)
6171
+ r(d, Va(Aa(e.node.attrs)), null, 16)
6172
6172
  ]),
6173
6173
  _: 1
6174
6174
  });
6175
6175
  }
6176
- const Fu = /* @__PURE__ */ j(vu, [["render", wu]]), Il = lt.create({
6176
+ const Fu = /* @__PURE__ */ j(vu, [["render", wu]]), $l = lt.create({
6177
6177
  name: "ElImage",
6178
6178
  group: "block",
6179
6179
  content: "inline*",
@@ -6224,15 +6224,15 @@ const Fu = /* @__PURE__ */ j(vu, [["render", wu]]), Il = lt.create({
6224
6224
  }
6225
6225
  });
6226
6226
  function Su(e, t, a, l, o, i) {
6227
- const d = Ta, u = Y("node-view-wrapper");
6227
+ const d = Ma, u = Y("node-view-wrapper");
6228
6228
  return n(), p(u, { class: "vue-component" }, {
6229
6229
  default: s(() => [
6230
- r(d, Pa(Va(e.node.attrs)), null, 16)
6230
+ r(d, Va(Aa(e.node.attrs)), null, 16)
6231
6231
  ]),
6232
6232
  _: 1
6233
6233
  });
6234
6234
  }
6235
- const ku = /* @__PURE__ */ j(_u, [["render", Su]]), $l = lt.create({
6235
+ const ku = /* @__PURE__ */ j(_u, [["render", Su]]), Tl = lt.create({
6236
6236
  name: "ElAvatar",
6237
6237
  group: "block",
6238
6238
  content: "inline*",
@@ -6453,79 +6453,79 @@ const ku = /* @__PURE__ */ j(_u, [["render", Su]]), $l = lt.create({
6453
6453
  },
6454
6454
  created() {
6455
6455
  this.mode == "mini" && !this.readonly ? this.extensions = [
6456
- ll,
6457
- Wa,
6458
- xa,
6459
6456
  ol,
6460
- pl.configure({ bubble: !0 }),
6457
+ xa,
6458
+ Ka,
6459
+ il,
6461
6460
  ml.configure({ bubble: !0 }),
6462
6461
  fl.configure({ bubble: !0 }),
6463
6462
  hl.configure({ bubble: !0 }),
6464
- vl,
6465
- ul.configure({ resizable: !0 }),
6466
- bl.configure({ bubble: !0 }),
6467
6463
  cl.configure({ bubble: !0 }),
6468
- _l.configure({ bubble: !0 }),
6469
- Fl,
6464
+ wl,
6465
+ pl.configure({ resizable: !0 }),
6466
+ gl.configure({ bubble: !0 }),
6467
+ bl.configure({ bubble: !0 }),
6468
+ Sl.configure({ bubble: !0 }),
6469
+ _l,
6470
+ sl,
6470
6471
  nl,
6471
- il,
6472
+ Ya,
6472
6473
  Ga,
6473
- Ka,
6474
- gl,
6475
6474
  yl,
6476
- Sl,
6475
+ vl,
6477
6476
  kl,
6478
6477
  Cl,
6479
6478
  Dl,
6480
6479
  Il,
6481
- $l
6480
+ $l,
6481
+ Tl
6482
6482
  ] : this.extensions = [
6483
- ll,
6484
- Wa,
6485
- xa,
6486
6483
  ol,
6487
- pl.configure({ bubble: !0 }),
6484
+ xa,
6485
+ Ka,
6486
+ il,
6488
6487
  ml.configure({ bubble: !0 }),
6489
6488
  fl.configure({ bubble: !0 }),
6490
- Wr.configure({ bubble: !0 }),
6491
6489
  hl.configure({ bubble: !0 }),
6490
+ Wr.configure({ bubble: !0 }),
6491
+ cl.configure({ bubble: !0 }),
6492
6492
  Us,
6493
- vl,
6494
- ul.configure({ resizable: !0 }),
6493
+ wl,
6494
+ pl.configure({ resizable: !0 }),
6495
+ gl.configure({ bubble: !0 }),
6495
6496
  bl.configure({ bubble: !0 }),
6496
- cl.configure({ bubble: !0 }),
6497
6497
  kd,
6498
6498
  cd,
6499
6499
  Td.configure({ bubble: !0 }),
6500
6500
  Md.configure({ bubble: !0 }),
6501
- _l.configure({ bubble: !0 }),
6502
- Fl,
6501
+ Sl.configure({ bubble: !0 }),
6502
+ _l,
6503
+ sl,
6503
6504
  nl,
6504
- il,
6505
6505
  Tr,
6506
6506
  $d,
6507
6507
  _r,
6508
6508
  Ld,
6509
6509
  // SelectAll,
6510
+ Ya,
6510
6511
  Ga,
6511
- Ka,
6512
6512
  // Gapcursor,
6513
6513
  // Dropcursor,
6514
6514
  // CodeBlock,
6515
6515
  Rs,
6516
6516
  Gd,
6517
- gl,
6517
+ yl,
6518
6518
  Hr,
6519
6519
  tu,
6520
6520
  Xd,
6521
- yl,
6521
+ vl,
6522
6522
  nu,
6523
- Sl,
6524
6523
  kl,
6525
6524
  Cl,
6526
6525
  Dl,
6527
6526
  Il,
6528
- $l
6527
+ $l,
6528
+ Tl
6529
6529
  ];
6530
6530
  }
6531
6531
  });
@@ -6558,7 +6558,7 @@ function Du(e, t, a, l, o, i) {
6558
6558
  onOnUpdate: e.onUpdate
6559
6559
  }, null, 8, ["modelValue", "extensions", "placeholder", "lang", "width", "height", "readonly", "tooltip", "charCountMax", "locale", "editorClass", "editorContentClass", "editorBubbleMenuClass", "editorMenubarClass", "editorFooterClass", "enableCharCount", "userState", "onOnCreate", "onOnTransaction", "onOnDestroy", "onOnBlur", "onOnFocus", "onOnUpdate"]);
6560
6560
  }
6561
- const ga = /* @__PURE__ */ j(Cu, [["render", Du]]), Ca = {
6561
+ const ya = /* @__PURE__ */ j(Cu, [["render", Du]]), Da = {
6562
6562
  getUserAgent() {
6563
6563
  return navigator.userAgent;
6564
6564
  }
@@ -6643,7 +6643,7 @@ const ga = /* @__PURE__ */ j(Cu, [["render", Du]]), Ca = {
6643
6643
  methods: {
6644
6644
  initMask() {
6645
6645
  this.tests = [], this.partialPosition = this.mask.length, this.len = this.mask.length, this.firstNonMaskPos = null, this.defs = this.tokens;
6646
- let e = Ca.getUserAgent();
6646
+ let e = Da.getUserAgent();
6647
6647
  this.androidChrome = /chrome/i.test(e) && /android/i.test(e);
6648
6648
  let t = this.mask.split("");
6649
6649
  for (let a = 0; a < t.length; a++) {
@@ -6683,13 +6683,13 @@ const ga = /* @__PURE__ */ j(Cu, [["render", Du]]), Ca = {
6683
6683
  onKeyDown(e) {
6684
6684
  if (this.readonly)
6685
6685
  return;
6686
- let t = e.which || e.keyCode, a, l, o, i = /iphone/i.test(Ca.getUserAgent());
6686
+ let t = e.which || e.keyCode, a, l, o, i = /iphone/i.test(Da.getUserAgent());
6687
6687
  this.oldVal = this.$el.value, t === 8 || t === 46 || i && t === 127 ? (a = this.caret(), l = a.begin, o = a.end, o - l === 0 && (l = t !== 46 ? this.seekPrev(l) : o = this.seekNext(l - 1), o = t === 46 ? this.seekNext(o) : o), this.clearBuffer(l, o), this.shiftL(l, o - 1), this.updateModel(e), e.preventDefault()) : t === 13 ? (this.$el.blur(), this.updateModel(e)) : t === 27 && (this.$el.value = this.focusText, this.caret(0, this.checkVal()), this.updateModel(e), e.preventDefault()), this.$emit("keydown", e);
6688
6688
  },
6689
6689
  onKeyPress(e) {
6690
6690
  if (!this.readonly) {
6691
6691
  var t = e.which || e.keyCode, a = this.caret(), l, o, i, d;
6692
- e.ctrlKey || e.altKey || e.metaKey || t < 32 || (t && t !== 13 && (a.end - a.begin !== 0 && (this.clearBuffer(a.begin, a.end), this.shiftL(a.begin, a.end - 1)), l = this.seekNext(a.begin - 1), l < this.len && (o = String.fromCharCode(t), this.tests[l].test(o) && (this.shiftR(l), this.buffer[l] = o, this.writeBuffer(), i = this.seekNext(l), /android/i.test(Ca.getUserAgent()) ? setTimeout(() => {
6692
+ e.ctrlKey || e.altKey || e.metaKey || t < 32 || (t && t !== 13 && (a.end - a.begin !== 0 && (this.clearBuffer(a.begin, a.end), this.shiftL(a.begin, a.end - 1)), l = this.seekNext(a.begin - 1), l < this.len && (o = String.fromCharCode(t), this.tests[l].test(o) && (this.shiftR(l), this.buffer[l] = o, this.writeBuffer(), i = this.seekNext(l), /android/i.test(Da.getUserAgent()) ? setTimeout(() => {
6693
6693
  this.caret(i);
6694
6694
  }, 0) : this.caret(i), a.begin <= this.lastRequiredNonMaskPos && (d = this.isCompleted()))), e.preventDefault()), this.updateModel(e), d && this.$emit("complete", e), this.$emit("keypress", e));
6695
6695
  }
@@ -6874,7 +6874,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
6874
6874
  return i.dataid = i._id, { response: !0, data: i, message: o.data.message };
6875
6875
  } else
6876
6876
  return { response: !1, data: void 0, message: "Can't get form" };
6877
- }).catch((o) => o.response && o.response.data && o.response.data.message ? { response: !1, data: void 0, message: o.response.data.message } : { response: !1, data: void 0, message: "Can't get form" }), ya = async (e, t) => await fe.post(
6877
+ }).catch((o) => o.response && o.response.data && o.response.data.message ? { response: !1, data: void 0, message: o.response.data.message } : { response: !1, data: void 0, message: "Can't get form" }), va = async (e, t) => await fe.post(
6878
6878
  `${t.host}/widget/sdform/insert-empty`,
6879
6879
  { formId: e },
6880
6880
  {
@@ -6907,7 +6907,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
6907
6907
  return u._id = d.data.id, u.dataid = u._id, { data: u, message: d.data.message };
6908
6908
  } else
6909
6909
  return { data: null, message: d.data.message };
6910
- }).catch((d) => d.response && d.response.data && d.response.data.message ? { data: null, message: d.response.data.message } : { data: null, message: "Can't save data" }), La = async (e, t, a) => await fe.delete(`${a.host}/widget/sdform/remove-data`, {
6910
+ }).catch((d) => d.response && d.response.data && d.response.data.message ? { data: null, message: d.response.data.message } : { data: null, message: "Can't save data" }), Ba = async (e, t, a) => await fe.delete(`${a.host}/widget/sdform/remove-data`, {
6911
6911
  headers: {
6912
6912
  Authorization: `Bearer ${a.user?.token}`
6913
6913
  },
@@ -6937,10 +6937,10 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
6937
6937
  "updated_by.id",
6938
6938
  "updated_by.name",
6939
6939
  "updated_at"
6940
- ], sg = (e, t) => e && Object.keys(e).length > 0 && e[t] && e[t].type ? e[t].type : ["_id", "xparentx"].includes(t) ? Ue.ObjectId : Ue.Any, ho = (e, t) => {
6940
+ ], sg = (e, t) => e && Object.keys(e).length > 0 && e[t] && e[t].type ? e[t].type : ["_id", "xparentx"].includes(t) ? Ue.ObjectId : Ue.Any, co = (e, t) => {
6941
6941
  const a = e && e.form_db && e.form_db.schema ? e.form_db.schema : null;
6942
6942
  return a && Object.keys(a).length > 0 && t && a[t] && a[t].type ? a[t].type : ["_id", "xparentx"].includes(t) ? Ue.ObjectId : Ue.Any;
6943
- }, Tl = (e, t) => ["_id", "xparentx"].includes(t) ? !0 : ho(e, t) === "ObjectId", rg = async (e, t, a, l) => await fe.put(
6943
+ }, Ml = (e, t) => ["_id", "xparentx"].includes(t) ? !0 : co(e, t) === "ObjectId", rg = async (e, t, a, l) => await fe.put(
6944
6944
  `${l.host}/widget/sdform/check-parent`,
6945
6945
  { formId: e, dataId: t, formData: a },
6946
6946
  {
@@ -6954,7 +6954,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
6954
6954
  return d._id = i.data.id, d.dataid = d._id, { data: d, message: i.data.message };
6955
6955
  } else
6956
6956
  return { data: i.data.data, message: i.data.message };
6957
- }).catch((i) => i.response && i.response.data && i.response.data.message ? { data: i.response.data.data, message: i.response.data.message } : { data: null, message: "Can't save data" }), la = (e, t) => {
6957
+ }).catch((i) => i.response && i.response.data && i.response.data.message ? { data: i.response.data.data, message: i.response.data.message } : { data: null, message: "Can't save data" }), oa = (e, t) => {
6958
6958
  if (e.form_share.form_sharing === "private") {
6959
6959
  let a = "";
6960
6960
  if (e.created_by && e.created_by.id && (a = e.created_by.id), t.user_id !== a)
@@ -6974,7 +6974,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
6974
6974
  }
6975
6975
  }
6976
6976
  return !0;
6977
- }, qt = (e) => e.includes("admin") || e.includes("super"), Oe = (e, t) => {
6977
+ }, Ht = (e) => e.includes("admin") || e.includes("super"), Oe = (e, t) => {
6978
6978
  let a = !1, l = !1;
6979
6979
  if (e.form_options.data_manager && Object.keys(e.form_options.data_manager).length > 0) {
6980
6980
  const o = e.form_options.data_manager;
@@ -6985,7 +6985,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
6985
6985
  }
6986
6986
  });
6987
6987
  }
6988
- if (e.created_by.id === t.user_id || l || qt(t.roles))
6988
+ if (e.created_by.id === t.user_id || l || Ht(t.roles))
6989
6989
  a = !0;
6990
6990
  else if (e.form_share.insert_policy)
6991
6991
  if (e.form_share.insert_assign && Object.keys(e.form_share.insert_assign).length > 0) {
@@ -7010,7 +7010,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
7010
7010
  }
7011
7011
  });
7012
7012
  }
7013
- if (e.created_by && (e.created_by.id === a.user_id || o || qt(a.roles)))
7013
+ if (e.created_by && (e.created_by.id === a.user_id || o || Ht(a.roles)))
7014
7014
  l = !0;
7015
7015
  else if (t && t.created_by && t.created_by.id && t.created_by.id === a.user_id)
7016
7016
  l = !0;
@@ -7026,7 +7026,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
7026
7026
  } else
7027
7027
  l = !0;
7028
7028
  return l;
7029
- }, Ba = (e, t, a) => {
7029
+ }, ja = (e, t, a) => {
7030
7030
  let l = !1, o = !1;
7031
7031
  if (e.form_options.data_manager && Object.keys(e.form_options.data_manager).length > 0) {
7032
7032
  const i = e.form_options.data_manager;
@@ -7037,7 +7037,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
7037
7037
  }
7038
7038
  });
7039
7039
  }
7040
- if (e.created_by.id === a.user_id || o || qt(a.roles))
7040
+ if (e.created_by.id === a.user_id || o || Ht(a.roles))
7041
7041
  l = !0;
7042
7042
  else if (t && t.created_by && t.created_by.id && t.created_by.id === a.user_id)
7043
7043
  l = !0;
@@ -7053,7 +7053,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
7053
7053
  } else
7054
7054
  l = !0;
7055
7055
  return l;
7056
- }, va = (e, t, a) => {
7056
+ }, wa = (e, t, a) => {
7057
7057
  let l = !1, o = !1;
7058
7058
  if (e.form_options.data_manager && Object.keys(e.form_options.data_manager).length > 0) {
7059
7059
  const i = e.form_options.data_manager;
@@ -7064,7 +7064,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
7064
7064
  }
7065
7065
  });
7066
7066
  }
7067
- return e.created_by && (e.created_by.id === a.user_id || o || qt(a.roles)) ? l = !0 : e.form_share.data_sharing && (e.form_share.data_sharing == "private" ? t && t.created_by && t.created_by.id && t.created_by.id === a.user_id && (l = !0) : e.form_share.data_sharing == "public" ? l = !0 : e.form_share.data_sharing == "site" ? t && t.xsitex && t.xsitex.code && t.xsitex.code === a.site.code && (l = !0) : e.form_share.data_sharing == "unit" && t && t.xunitx && t.xunitx.code && t.xunitx.code === a.unit.code && (l = !0)), l;
7067
+ return e.created_by && (e.created_by.id === a.user_id || o || Ht(a.roles)) ? l = !0 : e.form_share.data_sharing && (e.form_share.data_sharing == "private" ? t && t.created_by && t.created_by.id && t.created_by.id === a.user_id && (l = !0) : e.form_share.data_sharing == "public" ? l = !0 : e.form_share.data_sharing == "site" ? t && t.xsitex && t.xsitex.code && t.xsitex.code === a.site.code && (l = !0) : e.form_share.data_sharing == "unit" && t && t.xunitx && t.xunitx.code && t.xunitx.code === a.unit.code && (l = !0)), l;
7068
7068
  }, Au = (e, t) => {
7069
7069
  let a = !1;
7070
7070
  if (e.form_options.data_manager && Object.keys(e.form_options.data_manager).length > 0) {
@@ -7074,7 +7074,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
7074
7074
  });
7075
7075
  }
7076
7076
  const l = t.roles;
7077
- return a = qt(l), a;
7077
+ return a = Ht(l), a;
7078
7078
  }, Ve = (e, t, a, l = "") => {
7079
7079
  if (e != null) {
7080
7080
  if (t === "xrstatx")
@@ -7285,7 +7285,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
7285
7285
  }
7286
7286
  });
7287
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;
7288
+ const d = ce, u = oe, m = Y("sd-value-widget", !0), h = qe, b = Lt, _ = Ye, C = vt, c = Vo, M = ze, f = ra, y = $a, k = Et, A = Ze, q = ya, F = Ao;
7289
7289
  return e.schema.component === "sub-form" && !e.rawValue ? (n(), p(_, {
7290
7290
  key: 0,
7291
7291
  width: e.subformWidth,
@@ -7448,7 +7448,7 @@ function Eu(e, t, a, l, o, i) {
7448
7448
  }, 8, ["style", "type", "truncated", "line-clamp"]))
7449
7449
  ], 64));
7450
7450
  }
7451
- const Ht = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15"]]), Lu = L({
7451
+ const Wt = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15"]]), Lu = L({
7452
7452
  name: "SdUiListView",
7453
7453
  components: {
7454
7454
  // SdCrudPopupGrid,
@@ -7607,6 +7607,10 @@ const Ht = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
7607
7607
  type: String,
7608
7608
  default: ""
7609
7609
  },
7610
+ enableWs: {
7611
+ type: Boolean,
7612
+ default: !0
7613
+ },
7610
7614
  userState: {
7611
7615
  type: Object,
7612
7616
  required: !0
@@ -7673,6 +7677,7 @@ const Ht = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
7673
7677
  useUserState: this.$props.userState,
7674
7678
  dpFormData: { providerId: this.formId, providerType: this.providerType },
7675
7679
  wsConn: void 0,
7680
+ widgetId: "SdUiListView-" + Rt(),
7676
7681
  sdFunc: {},
7677
7682
  isFormEnable: this.providerType === "FORM",
7678
7683
  groupItems: [],
@@ -7757,11 +7762,11 @@ const Ht = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
7757
7762
  initForm(e) {
7758
7763
  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
7764
  const t = D(this.dpFormData.params), a = D(this.params);
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
- if (l.from != "server" && l.from != this.userState.user?.username) {
7765
+ 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.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
7766
+ if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId)) {
7762
7767
  let o = -1;
7763
7768
  const i = D(l.data);
7764
- l.params && D(l.params), o = this.keyIdIndex(i._id), l.method == "insert" ? va(this.sdformModel, i, this.useUserState.user) && (this.total = this.total + 1, this.totalPage = this.totalPage + 1, this.rawData.push(i)) : l.method == "update" ? o >= 0 && (this.rawData[o] = i) : l.method == "delete" && o >= 0 && (this.rawData.splice(o, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1);
7769
+ l.params && D(l.params), o = this.keyIdIndex(i._id), l.method == "insert" ? wa(this.sdformModel, i, this.useUserState.user) && (this.total = this.total + 1, this.totalPage = this.totalPage + 1, this.rawData.push(i)) : l.method == "update" ? o >= 0 && (this.rawData[o] = i) : l.method == "delete" && o >= 0 && (this.rawData.splice(o, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1);
7765
7770
  }
7766
7771
  }));
7767
7772
  },
@@ -7777,7 +7782,7 @@ const Ht = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
7777
7782
  return Re(e, t, a);
7778
7783
  },
7779
7784
  allowDelete(e, t, a) {
7780
- return Ba(e, t, a);
7785
+ return ja(e, t, a);
7781
7786
  },
7782
7787
  afterSave(e, t, a = null) {
7783
7788
  t || (this.showPopupFlag = !1, this.handlePopUpForm()), a && (this.isInsert = !1), this.selectIndex = this.keyIdIndex(e[this.keyId]);
@@ -7785,9 +7790,9 @@ const Ht = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
7785
7790
  if (e)
7786
7791
  if (this.isInsert) {
7787
7792
  let o = D(e);
7788
- this.rawData = [o].concat(this.rawData), this.isInsert = !1, this.selectIndex = -1, this.total = this.total + 1, this.totalPage = this.totalPage + 1, this.wsConn?.wsSend({ data: o, method: "insert", keyid: this.keyId });
7793
+ this.rawData = [o].concat(this.rawData), this.isInsert = !1, this.selectIndex = -1, this.total = this.total + 1, this.totalPage = this.totalPage + 1, this.wsConn?.wsSend({ data: o, method: "insert", keyid: this.keyId, params: { widget: this.widgetId } });
7789
7794
  } else
7790
- this.selectIndex != -1 && (this.rawData[this.selectIndex] = D(e)), this.wsConn?.wsSend({ data: e, method: "update", keyid: this.keyId });
7795
+ this.selectIndex != -1 && (this.rawData[this.selectIndex] = D(e)), this.wsConn?.wsSend({ data: e, method: "update", keyid: this.keyId, params: { widget: this.widgetId } });
7791
7796
  this.$emit("aftersave", l, e, this.rawData, this.selectIndex);
7792
7797
  },
7793
7798
  async getDataList(e) {
@@ -7860,8 +7865,8 @@ const Ht = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
7860
7865
  cancelButtonText: "Cancel",
7861
7866
  type: "warning"
7862
7867
  }).then(async () => {
7863
- if (await La(this.sdformModel.dataid, a, this.useUserState)) {
7864
- if (this.wsConn?.wsSend({ data: e, method: "delete", keyid: this.keyId }), this.rawData.splice(this.selectIndex, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1, this.afterDelete && this.afterDelete(e, this.selectIndex), this.sdformModel.form_event.enable && this.afterDeleteForm)
7868
+ if (await Ba(this.sdformModel.dataid, a, this.useUserState)) {
7869
+ if (this.wsConn?.wsSend({ data: e, method: "delete", keyid: this.keyId, params: { widget: this.widgetId } }), this.rawData.splice(this.selectIndex, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1, this.afterDelete && this.afterDelete(e, this.selectIndex), this.sdformModel.form_event.enable && this.afterDeleteForm)
7865
7870
  try {
7866
7871
  this.afterDeleteForm.call(this.sdFunc, e);
7867
7872
  } catch (i) {
@@ -7895,7 +7900,7 @@ const Ht = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
7895
7900
  return this.total.toLocaleString();
7896
7901
  },
7897
7902
  convertHexToRgba(e, t = 1) {
7898
- return ba(e, t);
7903
+ return ga(e, t);
7899
7904
  }
7900
7905
  // groupCheck(rawData: any) {
7901
7906
  // const gvalue = this.getValue(rawData, this.groupField);
@@ -7977,7 +7982,7 @@ const Ht = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
7977
7982
  class: "thumbnail-actions"
7978
7983
  };
7979
7984
  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 = Vl, k = Ao, A = at, q = Y("Picture"), F = vt, I = Ma;
7985
+ const d = Ze, u = ce, m = Y("Loading"), h = Ge, b = oe, _ = Y("search"), C = Ie, c = Ma, M = Wt, f = ze, y = Al, k = Oo, A = at, q = Y("Picture"), F = vt, I = Pa;
7981
7986
  return n(), w(E, null, [
7982
7987
  e.listType === "listview" ? (n(), w("div", Bu, [
7983
7988
  P("div", ju, [
@@ -8561,7 +8566,7 @@ function $p(e, t, a, l, o, i) {
8561
8566
  ])) : g("", !0)
8562
8567
  ], 64);
8563
8568
  }
8564
- const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-71527893"]]), dg = /* @__PURE__ */ L({
8569
+ const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-11e15de9"]]), dg = /* @__PURE__ */ L({
8565
8570
  __name: "SdAppList",
8566
8571
  props: {
8567
8572
  userState: {
@@ -8592,7 +8597,7 @@ const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-71527893
8592
8597
  setup(e) {
8593
8598
  const t = e, a = Se({
8594
8599
  formId: "getmodules",
8595
- router: Rl(),
8600
+ router: zl(),
8596
8601
  searchFields: t.searchEnable ? ["app_name", "app_desc", "app_code", "app_category"] : void 0,
8597
8602
  // dpFormData: {
8598
8603
  // providerId: '68f5f4ce2bdb232a29533e50',
@@ -9507,10 +9512,10 @@ const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-71527893
9507
9512
  };
9508
9513
  }
9509
9514
  });
9510
- function Da(e) {
9515
+ function Ia(e) {
9511
9516
  return e.includes("admin") || e.includes("super");
9512
9517
  }
9513
- const Mp = Jo(() => import("./sd-render-Bh_daYMW.js").then((e) => e.S)), Pp = L({
9518
+ const Mp = Qo(() => import("./sd-render-ywatVexk.js").then((e) => e.S)), Pp = L({
9514
9519
  name: "SdCrudForm",
9515
9520
  components: {
9516
9521
  SdFormRenderAsync: Mp
@@ -9647,7 +9652,7 @@ const Mp = Jo(() => import("./sd-render-Bh_daYMW.js").then((e) => e.S)), Pp = L(
9647
9652
  };
9648
9653
  },
9649
9654
  async beforeUnmount() {
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")));
9655
+ this.formData && this.formData._id && Na(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
9656
  },
9652
9657
  methods: {
9653
9658
  async initForm(e) {
@@ -9662,7 +9667,7 @@ const Mp = Jo(() => import("./sd-render-Bh_daYMW.js").then((e) => e.S)), Pp = L(
9662
9667
  }
9663
9668
  this.changeVersion && this.changeVersion(this.sdformModel);
9664
9669
  }
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)) {
9670
+ 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)), !Ia(this.userState.systemRoles)) {
9666
9671
  if (this.sdformModel.form_share.form_sharing === "private") {
9667
9672
  let o = "";
9668
9673
  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);
@@ -9708,7 +9713,7 @@ const Mp = Jo(() => import("./sd-render-Bh_daYMW.js").then((e) => e.S)), Pp = L(
9708
9713
  }
9709
9714
  );
9710
9715
  else {
9711
- const e = await ya(this.sdformModel._id || this.sdformModel.dataid, this.useUserState);
9716
+ const e = await va(this.sdformModel._id || this.sdformModel.dataid, this.useUserState);
9712
9717
  e ? (this.refSdForm && this.refSdForm.resetForm(), this.formData = { ...e, ...D(this.initData) }) : N.warning("Unable to create empty data");
9713
9718
  }
9714
9719
  },
@@ -9720,12 +9725,12 @@ const Mp = Jo(() => import("./sd-render-Bh_daYMW.js").then((e) => e.S)), Pp = L(
9720
9725
  let l = "true";
9721
9726
  if (a.cond && (l = a.cond), Bn(l, e) && a.form) {
9722
9727
  if (this.subFormOpen) {
9723
- const o = Ea(e);
9728
+ const o = La(e);
9724
9729
  let i = {};
9725
9730
  if (a.initdata && Object.values(a.initdata).length > 0)
9726
9731
  for (const d of a.initdata) {
9727
9732
  const u = jn(d.value, e);
9728
- Wl(i, d.field, u);
9733
+ xl(i, d.field, u);
9729
9734
  }
9730
9735
  this.nextOpenForm = {
9731
9736
  formId: a.form,
@@ -9751,7 +9756,7 @@ const Mp = Jo(() => import("./sd-render-Bh_daYMW.js").then((e) => e.S)), Pp = L(
9751
9756
  },
9752
9757
  handleAfterSave(e, t) {
9753
9758
  let a = this.nextOpenForm.isInsert ? "insert" : "update";
9754
- const l = this.userState.connectWebSocket("gridform", this.nextOpenForm.formId, (o) => {
9759
+ const l = this.userState.connectWebSocket("gridform", this.nextOpenForm.formId, "", (o) => {
9755
9760
  });
9756
9761
  setTimeout(() => {
9757
9762
  l.wsSend({ data: e, method: a, keyid: "_id" }), l.wsDisconnect();
@@ -9801,7 +9806,7 @@ const Mp = Jo(() => import("./sd-render-Bh_daYMW.js").then((e) => e.S)), Pp = L(
9801
9806
  }
9802
9807
  });
9803
9808
  function Vp(e, t, a, l, o, i) {
9804
- const d = ra, u = Y("SdFormRenderAsync"), m = oe, h = at, b = St;
9809
+ const d = da, u = Y("SdFormRenderAsync"), m = oe, h = at, b = St;
9805
9810
  return n(), w(E, null, [
9806
9811
  e.hideForm ? (n(), p(d, {
9807
9812
  key: 0,
@@ -9893,7 +9898,7 @@ function Vp(e, t, a, l, o, i) {
9893
9898
  })) : g("", !0)
9894
9899
  ], 64);
9895
9900
  }
9896
- const co = /* @__PURE__ */ j(Pp, [["render", Vp]]), Ap = L({
9901
+ const bo = /* @__PURE__ */ j(Pp, [["render", Vp]]), Ap = L({
9897
9902
  name: "SdAppViewer",
9898
9903
  components: {},
9899
9904
  props: {
@@ -9948,7 +9953,7 @@ const co = /* @__PURE__ */ j(Pp, [["render", Vp]]), Ap = L({
9948
9953
  this.params = {}, this.appId = this.appIdDefault, this.tab = "1", this.dataId = "", this.parentId = "", this.appIcon = null, this.appTitle = "AppName", this.appTitleSub = "", this.appInfo = "", this.appTabs = [];
9949
9954
  },
9950
9955
  setup(e, t) {
9951
- return { route: zl() };
9956
+ return { route: ql() };
9952
9957
  },
9953
9958
  methods: {
9954
9959
  async initApp() {
@@ -9980,10 +9985,10 @@ const co = /* @__PURE__ */ j(Pp, [["render", Vp]]), Ap = L({
9980
9985
  if (e.app_share === "public")
9981
9986
  a = !0;
9982
9987
  else if (e.app_share === "private")
9983
- (e.created_by.id === t.user_id || Da(t.roles)) && (a = !0);
9988
+ (e.created_by.id === t.user_id || Ia(t.roles)) && (a = !0);
9984
9989
  else if (e.app_share === "assign") {
9985
9990
  const l = e.app_assign_roles, o = t.roles;
9986
- Da(t.roles) ? a = !0 : o.forEach((i) => {
9991
+ Ia(t.roles) ? a = !0 : o.forEach((i) => {
9987
9992
  if (l.includes(i)) {
9988
9993
  a = !0;
9989
9994
  return;
@@ -10004,7 +10009,7 @@ const co = /* @__PURE__ */ j(Pp, [["render", Vp]]), Ap = L({
10004
10009
  class: "el-dialog__title"
10005
10010
  };
10006
10011
  function xp(e, t, a, l, o, i) {
10007
- const d = Ta, u = oe, m = ce, h = co, b = ra, _ = No, C = Oo, c = ga, M = we, f = Ul("can");
10012
+ const d = Ma, u = oe, m = ce, h = bo, b = da, _ = Eo, C = No, c = ya, M = we, f = Rl("can");
10008
10013
  return n(), w(E, null, [
10009
10014
  e.appId ? (n(), w("div", Op, [
10010
10015
  P("div", Np, [
@@ -10059,7 +10064,7 @@ function xp(e, t, a, l, o, i) {
10059
10064
  ]),
10060
10065
  default: s(() => [
10061
10066
  Pe((n(), w("div", zp, [
10062
- y.tab_widget_name ? (n(), p(ua(e.customComponents[y.tab_widget_name]), ae({
10067
+ y.tab_widget_name ? (n(), p(pa(e.customComponents[y.tab_widget_name]), ae({
10063
10068
  key: 0,
10064
10069
  ref_for: !0
10065
10070
  }, y.tab_options ? y.tab_options : {}, {
@@ -10182,8 +10187,7 @@ function xp(e, t, a, l, o, i) {
10182
10187
  ], 64);
10183
10188
  }
10184
10189
  const ug = /* @__PURE__ */ j(Ap, [["render", xp], ["__scopeId", "data-v-bc1eaadb"]]);
10185
- en.register(
10186
- tn,
10190
+ tn.register(
10187
10191
  an,
10188
10192
  ln,
10189
10193
  on,
@@ -10196,11 +10200,12 @@ en.register(
10196
10200
  mn,
10197
10201
  fn,
10198
10202
  hn,
10199
- cn
10203
+ cn,
10204
+ bn
10200
10205
  );
10201
10206
  const Kp = L({
10202
10207
  name: "SdChart",
10203
- components: { Chart: bn },
10208
+ components: { Chart: gn },
10204
10209
  props: {
10205
10210
  sqlId: {
10206
10211
  type: String,
@@ -10559,7 +10564,7 @@ const pg = /* @__PURE__ */ j(Kp, [["render", Gp]]), Yp = L({
10559
10564
  },
10560
10565
  methods: {
10561
10566
  handleOpen() {
10562
- const e = ta.service({ lock: !0, text: "Loading", background: "rgba(0, 0, 0, 0.7)", fullscreen: !0 });
10567
+ const e = aa.service({ lock: !0, text: "Loading", background: "rgba(0, 0, 0, 0.7)", fullscreen: !0 });
10563
10568
  this.fullName = `${this.fileName}`, this.fName = `${this.fileName}`, this.showFile = !1, this.userState.exportData(
10564
10569
  { sdProvider: this.dataProvider, fileName: this.fileName, dynamicName: this.dynamicName },
10565
10570
  (t) => {
@@ -10595,7 +10600,7 @@ const pg = /* @__PURE__ */ j(Kp, [["render", Gp]]), Yp = L({
10595
10600
  class: "el-dialog__title"
10596
10601
  }, Qp = { class: "dialog-footer" };
10597
10602
  function Xp(e, t, a, l, o, i) {
10598
- const d = Y("Document"), u = Ge, m = sa, h = oe, b = we;
10603
+ const d = Y("Document"), u = Ge, m = ra, h = oe, b = we;
10599
10604
  return n(), p(b, {
10600
10605
  title: e.popupName,
10601
10606
  modelValue: e.showPopupFlag,
@@ -10697,7 +10702,7 @@ const Zp = /* @__PURE__ */ j(Yp, [["render", Xp]]), em = L({
10697
10702
  }
10698
10703
  });
10699
10704
  function tm(e, t, a, l, o, i) {
10700
- const d = Ml, u = qe;
10705
+ const d = Pl, u = qe;
10701
10706
  return n(), p(u, {
10702
10707
  prop: e.columnProp,
10703
10708
  label: e.columnLabel,
@@ -10717,7 +10722,7 @@ function tm(e, t, a, l, o, i) {
10717
10722
  _: 1
10718
10723
  }, 8, ["prop", "label", "width"]);
10719
10724
  }
10720
- const bo = /* @__PURE__ */ j(em, [["render", tm]]), am = L({
10725
+ const go = /* @__PURE__ */ j(em, [["render", tm]]), am = L({
10721
10726
  name: "SdGridColumnDate",
10722
10727
  props: {
10723
10728
  columnProp: {
@@ -10759,9 +10764,9 @@ function lm(e, t, a, l, o, i) {
10759
10764
  _: 1
10760
10765
  }, 8, ["prop", "label", "width", "sortable"]);
10761
10766
  }
10762
- const go = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
10767
+ const yo = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
10763
10768
  name: "SdGridColumnDynamic",
10764
- components: { SdGridColumnDate: go, SdGridColumnBy: bo, SdValueWidget: Ht },
10769
+ components: { SdGridColumnDate: yo, SdGridColumnBy: go, SdValueWidget: Wt },
10765
10770
  props: {
10766
10771
  formModel: {
10767
10772
  type: Object,
@@ -10843,7 +10848,7 @@ const go = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
10843
10848
  },
10844
10849
  htmlValue() {
10845
10850
  return (e, t, a) => {
10846
- let l = Ea(t);
10851
+ let l = La(t);
10847
10852
  if (!this.rawValue)
10848
10853
  for (const o in t)
10849
10854
  l[`{{${o}}}`] = Ve(t[o], o, this.formModel);
@@ -10928,7 +10933,7 @@ const go = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
10928
10933
  }
10929
10934
  }), im = ["innerHTML"], nm = ["innerHTML"];
10930
10935
  function sm(e, t, a, l, o, i) {
10931
- const d = Ht, u = qe, m = Nt, h = Ie, b = kt, _ = Al, C = ze, c = go, M = bo;
10936
+ const d = Wt, u = qe, m = Nt, h = Ie, b = kt, _ = Ol, C = ze, c = yo, M = go;
10932
10937
  return n(), w(E, null, [
10933
10938
  e.columnFields && Object.keys(e.columnFields).length > 0 ? (n(), w(E, { key: 0 }, [
10934
10939
  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, [
@@ -11335,6 +11340,10 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11335
11340
  type: String,
11336
11341
  default: ""
11337
11342
  },
11343
+ enableWs: {
11344
+ type: Boolean,
11345
+ default: !0
11346
+ },
11338
11347
  userState: {
11339
11348
  type: Object,
11340
11349
  required: !0
@@ -11395,6 +11404,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11395
11404
  groupId: "",
11396
11405
  showExportRow: !1,
11397
11406
  exportName: "",
11407
+ widgetId: "SdCrudGrid-" + Rt(),
11398
11408
  dpExportRow: {
11399
11409
  providerId: "",
11400
11410
  providerType: pe.FORM,
@@ -11525,8 +11535,8 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11525
11535
  this.dpFormData.options.select.push(`SUM(\`${l}\`) AS \`${l}\``);
11526
11536
  this.dpExpandData.options || (this.dpExpandData.options = {}), this.dpExpandData.options.select = ["*", `\`${this.keyId}\` AS \`${this.rowKey}\``], this.dpExpandData.options.where = `\`${this.groupKey}\` = :xgidx`, this.dpFormData.options.groupBy = [`\`${this.groupKey}\``], this.dpFormData.options.orderBy = [{ column: `\`${this.groupKey}\``, sort: ue.ASC }];
11527
11537
  }
11528
- this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: ue.DESC }], this.defaultSort = [{ column: "created_at", sort: ue.DESC }]), this.dpExportRow.providerId = this.formId, this.getDataList(this.dpFormData), this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, (l) => {
11529
- if (l.from != "server" && l.from != this.userState.user?.username) {
11538
+ this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: ue.DESC }], this.defaultSort = [{ column: "created_at", sort: ue.DESC }]), this.dpExportRow.providerId = this.formId, this.getDataList(this.dpFormData), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
11539
+ if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId)) {
11530
11540
  let o = -1;
11531
11541
  const i = D(l.data), d = l.params ? D(l.params) : null;
11532
11542
  if (o = this.keyIdIndex(i._id), this.groupKey && this.dpExpandData && i[this.groupKey]) {
@@ -11544,7 +11554,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11544
11554
  }
11545
11555
  this.refreshData();
11546
11556
  } else
11547
- l.method == "insert" ? va(this.sdformModel, i, this.useUserState.user) && (this.total = this.total + 1, this.totalPage = this.totalPage + 1, this.rawData.push(i)) : l.method == "update" ? o >= 0 && (this.rawData[o] = i) : l.method == "delete" && o >= 0 && (this.rawData.splice(o, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1), this.sumAllPage && this.refreshData();
11557
+ l.method == "insert" ? wa(this.sdformModel, i, this.useUserState.user) && (this.total = this.total + 1, this.totalPage = this.totalPage + 1, this.rawData.push(i)) : l.method == "update" ? o >= 0 && (this.rawData[o] = i) : l.method == "delete" && o >= 0 && (this.rawData.splice(o, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1), this.sumAllPage && this.refreshData();
11548
11558
  }
11549
11559
  }));
11550
11560
  },
@@ -11552,7 +11562,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11552
11562
  return Re(e, t, a);
11553
11563
  },
11554
11564
  allowDelete(e, t, a) {
11555
- return Ba(e, t, a);
11565
+ return ja(e, t, a);
11556
11566
  },
11557
11567
  afterSave(e, t, a = null) {
11558
11568
  t || (this.showPopupFlag = !1, this.handlePopUpForm()), a && (this.isInsert = !1, this.groupKey && this.dpExpandData && a[this.groupKey] && (this.groupId = a[this.groupKey])), this.selectIndex = this.keyIdIndex(e[this.keyId]);
@@ -11566,9 +11576,9 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11566
11576
  this.rawData[i] && this.rawData[i][this.expandCountChildrenName] && (this.rawData[i][this.expandCountChildrenName] = this.rawData[i][this.expandCountChildrenName] + 1), this.wsConn && this.refreshData();
11567
11577
  } else
11568
11578
  this.rawData = [o].concat(this.rawData), this.isInsert = !1, this.selectIndex = -1, this.total = this.total + 1, this.totalPage = this.totalPage + 1, this.sumAllPage && this.refreshData();
11569
- this.wsConn?.wsSend({ data: o, method: "insert", keyid: this.keyId });
11579
+ this.wsConn?.wsSend({ data: o, method: "insert", keyid: this.keyId, params: { widget: this.widgetId } });
11570
11580
  } else
11571
- this.groupKey && this.dpExpandData && e[this.groupKey] ? (this.groupId || (this.groupId = e[this.groupKey]), this.updateRowExpand(e[this.groupKey], e, this.groupId), this.wsConn && this.refreshData()) : this.selectIndex != -1 && (this.rawData[this.selectIndex] = D(e), this.sumAllPage && this.refreshData()), this.wsConn?.wsSend({ data: e, method: "update", keyid: this.keyId, params: { gid: this.groupId } });
11581
+ this.groupKey && this.dpExpandData && e[this.groupKey] ? (this.groupId || (this.groupId = e[this.groupKey]), this.updateRowExpand(e[this.groupKey], e, this.groupId), this.wsConn && this.refreshData()) : this.selectIndex != -1 && (this.rawData[this.selectIndex] = D(e), this.sumAllPage && this.refreshData()), this.wsConn?.wsSend({ data: e, method: "update", keyid: this.keyId, params: { gid: this.groupId, widget: this.widgetId } });
11572
11582
  this.$emit("aftersave", l, e, this.rawData, this.selectIndex);
11573
11583
  },
11574
11584
  async getDataList(e, t) {
@@ -11760,7 +11770,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11760
11770
  for (const t in e)
11761
11771
  if (Object.prototype.hasOwnProperty.call(e, t)) {
11762
11772
  let a = e[t];
11763
- Na(a) ? delete this.optionProvider.fileter[t] : (this.optionProvider.fileter || (this.optionProvider.fileter = {}), this.optionProvider.fileter[t] = a);
11773
+ Ea(a) ? delete this.optionProvider.fileter[t] : (this.optionProvider.fileter || (this.optionProvider.fileter = {}), this.optionProvider.fileter[t] = a);
11764
11774
  }
11765
11775
  this.dpExpandData && this.resetExpand(), this.total = 0, this.getDataList(this.dpFormData);
11766
11776
  },
@@ -11793,7 +11803,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11793
11803
  type: "warning"
11794
11804
  }).then(async () => {
11795
11805
  if (this.sdformModel.dataid) {
11796
- const l = await ya(this.sdformModel.dataid, this.useUserState);
11806
+ const l = await va(this.sdformModel.dataid, this.useUserState);
11797
11807
  if (l) {
11798
11808
  this.formData = { ...l, ...this.formData };
11799
11809
  let o = {};
@@ -11822,8 +11832,8 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11822
11832
  cancelButtonText: "Cancel",
11823
11833
  type: "warning"
11824
11834
  }).then(async () => {
11825
- if (await La(this.sdformModel.dataid, a, this.useUserState)) {
11826
- if (this.wsConn?.wsSend({ data: e, method: "delete", keyid: this.keyId }), this.groupKey && this.dpExpandData) {
11835
+ if (await Ba(this.sdformModel.dataid, a, this.useUserState)) {
11836
+ if (this.wsConn?.wsSend({ data: e, method: "delete", keyid: this.keyId, params: { widget: this.widgetId } }), this.groupKey && this.dpExpandData) {
11827
11837
  this.removeRowExpand(e[this.groupKey], e);
11828
11838
  const i = this.rowKeyIndex(e[this.groupKey]);
11829
11839
  this.rawData[i] && this.rawData[i][this.expandCountChildrenName] && (this.rawData[i][this.expandCountChildrenName] = this.rawData[i][this.expandCountChildrenName] - 1), this.wsConn && this.refreshData(), this.afterDelete && this.afterDelete(e, this.selectIndex);
@@ -11873,7 +11883,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
11873
11883
  style: { height: "32px", display: "inline-grid", "align-content": "center" }
11874
11884
  }, bm = { class: "card-footer" };
11875
11885
  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 = Et, k = qe, A = rm, q = Lt, F = Ma, I = Zp, V = da;
11886
+ const d = Ze, u = ce, m = ze, h = oe, b = ia, _ = sa, C = at, c = Ie, M = na, f = St, y = Et, k = qe, A = rm, q = Lt, F = Pa, I = Zp, V = ua;
11877
11887
  return n(), w(E, null, [
11878
11888
  r(F, {
11879
11889
  class: "box-card",
@@ -12217,7 +12227,7 @@ function gm(e, t, a, l, o, i) {
12217
12227
  }, null, 8, ["modelValue", "dynamic-name", "data-provider", "user-state", "cancel-callback"])
12218
12228
  ], 64);
12219
12229
  }
12220
- const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-4a348e2a"]]), vm = L({
12230
+ const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-2d047125"]]), vm = L({
12221
12231
  name: "SdCrudPopupForm",
12222
12232
  components: {},
12223
12233
  emits: ["update:modelValue", "change"],
@@ -12351,7 +12361,7 @@ const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-4a348e2a
12351
12361
  class: "el-dialog__title"
12352
12362
  };
12353
12363
  function Fm(e, t, a, l, o, i) {
12354
- const d = Ze, u = ce, m = Et, h = oe, b = co, _ = we;
12364
+ const d = Ze, u = ce, m = Et, h = oe, b = bo, _ = we;
12355
12365
  return n(), p(_, {
12356
12366
  title: e.popupName,
12357
12367
  modelValue: e.showPopupFlag,
@@ -12905,7 +12915,7 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
12905
12915
  if (e)
12906
12916
  if (this.multiple) {
12907
12917
  let a = [];
12908
- this.enableObjectType && e.value ? a = e.value : a = e, (this.valueObjectId || Tl(this.formModel, this.valueField)) && (this.optionProvider.fileterObjectId ? this.optionProvider.fileterObjectId.includes(this.valueField) || this.optionProvider.fileterObjectId.push(this.valueField) : this.optionProvider.fileterObjectId = [this.valueField]), a.length > 0 && (this.optionProvider.fileter ? this.optionProvider.fileter[this.valueField] = a : this.optionProvider.fileter = { [this.valueField]: a }, this.dataProvider.params && this.dataProvider.params.q && (this.dataProvider.params.q = ""), this.dataProvider.options = this.optionProvider, await this.getDataAll(this.dataProvider, (l) => {
12918
+ this.enableObjectType && e.value ? a = e.value : a = e, (this.valueObjectId || Ml(this.formModel, this.valueField)) && (this.optionProvider.fileterObjectId ? this.optionProvider.fileterObjectId.includes(this.valueField) || this.optionProvider.fileterObjectId.push(this.valueField) : this.optionProvider.fileterObjectId = [this.valueField]), a.length > 0 && (this.optionProvider.fileter ? this.optionProvider.fileter[this.valueField] = a : this.optionProvider.fileter = { [this.valueField]: a }, this.dataProvider.params && this.dataProvider.params.q && (this.dataProvider.params.q = ""), this.dataProvider.options = this.optionProvider, await this.getDataAll(this.dataProvider, (l) => {
12909
12919
  e.length === 0 ? (this.checkAll = !1, this.indeterminate = !1) : e.length === this.itemsList.length ? (this.checkAll = !0, this.indeterminate = !1) : this.indeterminate = !0, this.value = a, t && t(l);
12910
12920
  }));
12911
12921
  } else {
@@ -12913,7 +12923,7 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
12913
12923
  if (this.enableObjectType ? (e.label && e.value !== e.label && (l = !0), e.value ? a = `${e.value}` : a = `${e}`) : typeof e == "string" && (a = `${e}`), a !== "" && !l) {
12914
12924
  if (this.itemSelected && this.itemSelected[this.valueField] && this.itemSelected[this.valueField] === a)
12915
12925
  return;
12916
- this.valueObjectId || Tl(this.formModel, this.valueField) ? this.optionProvider.where ? (this.optionProvider.where += ` AND \`${this.valueField}\` = CONVERT(:xinputValex, 'objectId')`, this.dataProvider.params.xinputValex = a) : (this.optionProvider.where = `\`${this.valueField}\` = CONVERT(:xinputValex, 'objectId')`, this.dataProvider.params.xinputValex = a) : this.optionProvider.where ? (this.optionProvider.where += ` AND \`${this.valueField}\` = :xinputValex`, this.dataProvider.params.xinputValex = a) : (this.optionProvider.where = `\`${this.valueField}\` = :xinputValex`, this.dataProvider.params.xinputValex = a), this.dataProvider.params && this.dataProvider.params.q && (this.dataProvider.params.q = ""), await this.getDataOne(this.dataProvider, (o) => {
12926
+ this.valueObjectId || Ml(this.formModel, this.valueField) ? this.optionProvider.where ? (this.optionProvider.where += ` AND \`${this.valueField}\` = CONVERT(:xinputValex, 'objectId')`, this.dataProvider.params.xinputValex = a) : (this.optionProvider.where = `\`${this.valueField}\` = CONVERT(:xinputValex, 'objectId')`, this.dataProvider.params.xinputValex = a) : this.optionProvider.where ? (this.optionProvider.where += ` AND \`${this.valueField}\` = :xinputValex`, this.dataProvider.params.xinputValex = a) : (this.optionProvider.where = `\`${this.valueField}\` = :xinputValex`, this.dataProvider.params.xinputValex = a), this.dataProvider.params && this.dataProvider.params.q && (this.dataProvider.params.q = ""), await this.getDataOne(this.dataProvider, (o) => {
12917
12927
  this.itemSelected = D(o);
12918
12928
  let i = a;
12919
12929
  this.enableObjectType && (i = this.value2Object(a)), t && t(o), this.$emit("change", i, o);
@@ -12969,7 +12979,7 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
12969
12979
  let o = {};
12970
12980
  this.itemSelected ? o = D(this.itemSelected) : o = this.rawData.find((i) => !!i[this.valueField] && i[this.valueField] == e), this.refField.forEach((i) => {
12971
12981
  const d = ve(o, i);
12972
- Wl(a, i, d);
12982
+ xl(a, i, d);
12973
12983
  });
12974
12984
  }
12975
12985
  let l = {};
@@ -13064,7 +13074,7 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
13064
13074
  }
13065
13075
  }), $m = ["innerHTML"], Tm = ["innerHTML"], Mm = ["innerHTML"], Pm = ["innerHTML"];
13066
13076
  function Vm(e, t, a, l, o, i) {
13067
- const d = na, u = Dt, m = Ct;
13077
+ const d = sa, u = Dt, m = Ct;
13068
13078
  return n(), p(m, {
13069
13079
  ref: "refSelect",
13070
13080
  modelValue: e.value,
@@ -13141,7 +13151,7 @@ function Vm(e, t, a, l, o, i) {
13141
13151
  } : void 0
13142
13152
  ]), 1032, ["modelValue", "multiple", "multiple-limit", "placeholder", "remote-method", "loading", "suffix-icon", "onRemoveTag", "onClear", "onVisibleChange"]);
13143
13153
  }
13144
- const ja = /* @__PURE__ */ j(Im, [["render", Vm]]), Am = L({
13154
+ const Ua = /* @__PURE__ */ j(Im, [["render", Vm]]), Am = L({
13145
13155
  name: "SdCrudSelect",
13146
13156
  components: {
13147
13157
  // SdSelectRemoteList,
@@ -13310,7 +13320,7 @@ const ja = /* @__PURE__ */ j(Im, [["render", Vm]]), Am = L({
13310
13320
  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
13321
  } else
13312
13322
  N.warning("Unauthorized");
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)));
13323
+ this.sdformModel._id && (this.viewBtnEnable = oa(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
13324
  }
13315
13325
  },
13316
13326
  methods: {
@@ -13327,7 +13337,7 @@ const ja = /* @__PURE__ */ j(Im, [["render", Vm]]), Am = L({
13327
13337
  type: "warning"
13328
13338
  }).then(async () => {
13329
13339
  if (this.sdformModel.dataid) {
13330
- const e = await ya(this.sdformModel.dataid, this.useUserState);
13340
+ const e = await va(this.sdformModel.dataid, this.useUserState);
13331
13341
  if (e) {
13332
13342
  this.formData = { ...e, ...this.formData }, this.formData.xversionx = this.sdformModel.form_version;
13333
13343
  const t = await dt(this.sdformModel.dataid, this.formData._id, this.formData, 1, this.useUserState), a = t.data;
@@ -13356,7 +13366,7 @@ const ja = /* @__PURE__ */ j(Im, [["render", Vm]]), Am = L({
13356
13366
  },
13357
13367
  handleChange(e, t) {
13358
13368
  let a = this.value;
13359
- this.formBtnEnable && this.sdformModel._id && this.providerType == "FORM" && (this.viewBtnEnable = la(this.sdformModel, this.useUserState.user), this.insertBtnEnable = Oe(this.sdformModel, this.useUserState.user), t && (this.updateBtnEnable = Re(this.sdformModel, t, this.useUserState.user))), this.$emit("update:modelValue", a), this.$emit("change", a, t), this.getDataId(), this.dataId ? this.isInsert = !1 : this.isInsert = !0;
13369
+ this.formBtnEnable && this.sdformModel._id && this.providerType == "FORM" && (this.viewBtnEnable = oa(this.sdformModel, this.useUserState.user), this.insertBtnEnable = Oe(this.sdformModel, this.useUserState.user), t && (this.updateBtnEnable = Re(this.sdformModel, t, this.useUserState.user))), this.$emit("update:modelValue", a), this.$emit("change", a, t), this.getDataId(), this.dataId ? this.isInsert = !1 : this.isInsert = !0;
13360
13370
  },
13361
13371
  getDataId() {
13362
13372
  this.selectInput && this.selectInput.itemSelected && this.selectInput.itemSelected._id ? (this.dataId = this.selectInput.itemSelected._id, this.formData = this.selectInput.itemSelected) : (this.dataId = "", this.formData = {});
@@ -13367,7 +13377,7 @@ const ja = /* @__PURE__ */ j(Im, [["render", Vm]]), Am = L({
13367
13377
  }
13368
13378
  }), Om = { key: 2 };
13369
13379
  function Nm(e, t, a, l, o, i) {
13370
- const d = oe, u = _m, m = ja;
13380
+ const d = oe, u = _m, m = Ua;
13371
13381
  return n(), p(m, {
13372
13382
  ref: "selectInput",
13373
13383
  filterable: "",
@@ -13714,7 +13724,7 @@ const mg = /* @__PURE__ */ j(Am, [["render", Nm]]), Em = L({
13714
13724
  N.warning("Please select form.");
13715
13725
  else
13716
13726
  N.warning("Unauthorized");
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)));
13727
+ this.sdformModel._id && (this.viewBtnEnable = oa(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
13728
  }
13719
13729
  },
13720
13730
  async handleOpenFormAdd() {
@@ -13730,7 +13740,7 @@ const mg = /* @__PURE__ */ j(Am, [["render", Nm]]), Em = L({
13730
13740
  type: "warning"
13731
13741
  }).then(async () => {
13732
13742
  if (this.sdformModel.dataid) {
13733
- const e = await ya(this.sdformModel.dataid, this.useUserState);
13743
+ const e = await va(this.sdformModel.dataid, this.useUserState);
13734
13744
  if (e) {
13735
13745
  this.formData = { ...e, ...this.formData }, this.formData.xversionx = this.sdformModel.form_version;
13736
13746
  const t = await dt(this.sdformModel.dataid, this.formData._id, this.formData, 1, this.useUserState), a = t.data;
@@ -13770,7 +13780,7 @@ const mg = /* @__PURE__ */ j(Am, [["render", Nm]]), Em = L({
13770
13780
  handleChange(e, t) {
13771
13781
  try {
13772
13782
  let a = e;
13773
- this.providerType == "FORM" && (this.sdformModel && this.sdformModel._id && (this.viewBtnEnable = la(this.sdformModel, this.useUserState.user), this.insertBtnEnable = Oe(this.sdformModel, this.useUserState.user), t && (this.updateBtnEnable = Re(this.sdformModel, t, this.useUserState.user))), this.getDataId(), this.dataId ? this.isInsert = !1 : this.isInsert = !0), this.$emit("change", a, t);
13783
+ this.providerType == "FORM" && (this.sdformModel && this.sdformModel._id && (this.viewBtnEnable = oa(this.sdformModel, this.useUserState.user), this.insertBtnEnable = Oe(this.sdformModel, this.useUserState.user), t && (this.updateBtnEnable = Re(this.sdformModel, t, this.useUserState.user))), this.getDataId(), this.dataId ? this.isInsert = !1 : this.isInsert = !0), this.$emit("change", a, t);
13774
13784
  } catch (a) {
13775
13785
  console.log(a);
13776
13786
  }
@@ -13784,7 +13794,7 @@ const mg = /* @__PURE__ */ j(Am, [["render", Nm]]), Em = L({
13784
13794
  }
13785
13795
  });
13786
13796
  function Lm(e, t, a, l, o, i) {
13787
- const d = oe, u = ja;
13797
+ const d = oe, u = Ua;
13788
13798
  return n(), p(u, {
13789
13799
  ref: "selectInput",
13790
13800
  filterable: "",
@@ -13867,7 +13877,7 @@ function Lm(e, t, a, l, o, i) {
13867
13877
  } : void 0
13868
13878
  ]), 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
13879
  }
13870
- const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), yo = /* @__PURE__ */ L({
13880
+ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
13871
13881
  __name: "SdSelectPathData",
13872
13882
  props: {
13873
13883
  modelValue: null,
@@ -14011,7 +14021,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), yo = /* @__PURE__ */ L({
14011
14021
  }
14012
14022
  let I = F.join(" ");
14013
14023
  if (a.labelTemplate !== "") {
14014
- const V = Ea(A);
14024
+ const V = La(A);
14015
14025
  I = se(a.labelTemplate, V);
14016
14026
  }
14017
14027
  y.push({
@@ -14048,7 +14058,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), yo = /* @__PURE__ */ L({
14048
14058
  return Ke(d, (_) => {
14049
14059
  o(_);
14050
14060
  }), (_, C) => {
14051
- const c = na, M = Dt, f = Eo, y = Ct;
14061
+ const c = sa, M = Dt, f = Lo, y = Ct;
14052
14062
  return n(), p(y, {
14053
14063
  modelValue: d.value,
14054
14064
  "onUpdate:modelValue": C[1] || (C[1] = (k) => d.value = k),
@@ -14204,13 +14214,13 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), yo = /* @__PURE__ */ L({
14204
14214
  textType: void 0
14205
14215
  }, t.initData && Object.keys(t.initData).length > 0 && (a.fieldName = t.initData.fieldName, o.value = { ...o.value, ...t.initData });
14206
14216
  }), (u, m) => {
14207
- const h = ra, b = Ie, _ = pt, C = yo, c = at, M = kt, f = St, y = oe, k = ut;
14217
+ const h = da, b = Ie, _ = pt, C = vo, c = at, M = kt, f = St, y = oe, k = ut;
14208
14218
  return n(), p(k, {
14209
14219
  ref_key: "schemaFormRef",
14210
14220
  ref: l,
14211
14221
  model: o.value,
14212
14222
  "label-position": "top",
14213
- onKeyup: m[8] || (m[8] = Qo(R((A) => d(l.value), ["prevent"]), ["enter"]))
14223
+ onKeyup: m[8] || (m[8] = Xo(R((A) => d(l.value), ["prevent"]), ["enter"]))
14214
14224
  }, {
14215
14225
  default: s(() => [
14216
14226
  r(h, {
@@ -14397,7 +14407,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), yo = /* @__PURE__ */ L({
14397
14407
  });
14398
14408
  }
14399
14409
  return (i, d) => {
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;
14410
+ 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 = ua;
14401
14411
  return Pe((n(), p(C, {
14402
14412
  data: l.value,
14403
14413
  style: { width: "100%" }
@@ -14829,7 +14839,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), yo = /* @__PURE__ */ L({
14829
14839
  ]);
14830
14840
  };
14831
14841
  }
14832
- }), Rm = gn();
14842
+ }), Rm = yn();
14833
14843
  async function zm(e) {
14834
14844
  try {
14835
14845
  await Rm.toClipboard(e), N({
@@ -15129,7 +15139,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15129
15139
  defaultValue: null,
15130
15140
  component: "custom-input",
15131
15141
  componentName: "Custom Input",
15132
- type: ho(a.formSelect, U),
15142
+ type: co(a.formSelect, U),
15133
15143
  hidden: !0,
15134
15144
  required: !1,
15135
15145
  readonly: !0,
@@ -15283,7 +15293,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15283
15293
  });
15284
15294
  }
15285
15295
  return (U, v) => {
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;
15296
+ const x = oe, J = El, re = Nl, je = da, it = ce, Fe = ze, ie = at, nt = St, st = Et, Ee = Ie, Fa = Nt, Ra = Ye, za = jo, qa = Bo, ne = qe, wo = Y("Link"), xt = Ge, Fo = Y("Aim"), Ha = Lt, _e = Dt, Mt = Ct, ct = kt, _o = ya, So = Ua, be = pt, _a = vo, Wa = Y("InfoFilled"), ko = ra, Co = Ol, Do = Y("draggable"), Io = ut, Kt = we, $o = Y("sd-form-schema", !0), To = Um, Mo = jm, Po = ua;
15287
15297
  return n(), w(E, null, [
15288
15298
  r(re, {
15289
15299
  title: "Parent Form",
@@ -15428,13 +15438,13 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15428
15438
  closable: !1,
15429
15439
  style: { "margin-bottom": "15px" }
15430
15440
  })),
15431
- Object.keys(e.formDb.autonum).length > 0 ? (n(), p(za, {
15441
+ Object.keys(e.formDb.autonum).length > 0 ? (n(), p(qa, {
15432
15442
  key: 1,
15433
15443
  modelValue: a.activeNumber,
15434
15444
  "onUpdate:modelValue": v[1] || (v[1] = ($) => a.activeNumber = $)
15435
15445
  }, {
15436
15446
  default: s(() => [
15437
- r(Ra, {
15447
+ r(za, {
15438
15448
  title: "Auto Number ( Manage Count Number )",
15439
15449
  name: "1"
15440
15450
  }, {
@@ -15610,7 +15620,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15610
15620
  }, 1024),
15611
15621
  r(ie, { span: 3 }, {
15612
15622
  default: s(() => [
15613
- r(wa, {
15623
+ r(Fa, {
15614
15624
  modelValue: $.increment,
15615
15625
  "onUpdate:modelValue": (X) => $.increment = X,
15616
15626
  min: 1,
@@ -15623,7 +15633,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15623
15633
  }, 1024),
15624
15634
  r(ie, { span: 3 }, {
15625
15635
  default: s(() => [
15626
- r(Ua, {
15636
+ r(Ra, {
15627
15637
  width: 400,
15628
15638
  trigger: "click"
15629
15639
  }, {
@@ -15636,11 +15646,11 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15636
15646
  })
15637
15647
  ]),
15638
15648
  default: s(() => [
15639
- r(de(ql), {
15649
+ r(de(Hl), {
15640
15650
  modelValue: $.countSite,
15641
15651
  "onUpdate:modelValue": (X) => $.countSite = X,
15642
15652
  "main-menu-bar": !1,
15643
- mode: de(Hl).tree,
15653
+ mode: de(Wl).tree,
15644
15654
  style: { width: "100%" },
15645
15655
  class: Q(a.isDark ? "jse-theme-dark" : "")
15646
15656
  }, null, 8, ["modelValue", "onUpdate:modelValue", "mode", "class"])
@@ -15652,7 +15662,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15652
15662
  }, 1024),
15653
15663
  r(ie, { span: 5 }, {
15654
15664
  default: s(() => [
15655
- r(wa, {
15665
+ r(Fa, {
15656
15666
  modelValue: $.count,
15657
15667
  "onUpdate:modelValue": (X) => $.count = X,
15658
15668
  min: 1,
@@ -15672,7 +15682,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15672
15682
  ]),
15673
15683
  _: 1
15674
15684
  }, 8, ["modelValue"])) : g("", !0),
15675
- Pe((n(), p(qa, {
15685
+ Pe((n(), p(Ha, {
15676
15686
  data: c.value,
15677
15687
  style: { width: "100%" }
15678
15688
  }, {
@@ -15765,15 +15775,15 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15765
15775
  }, {
15766
15776
  default: s(($) => [
15767
15777
  S(O($.row.label) + " ", 1),
15768
- $.row.joinerType ? (n(), p(Wt, { key: 0 }, {
15778
+ $.row.joinerType ? (n(), p(xt, { key: 0 }, {
15769
15779
  default: s(() => [
15770
- r(vo)
15780
+ r(wo)
15771
15781
  ]),
15772
15782
  _: 1
15773
15783
  })) : g("", !0),
15774
- !$.row.joinerType && $.row.refFormType ? (n(), p(Wt, { key: 1 }, {
15784
+ !$.row.joinerType && $.row.refFormType ? (n(), p(xt, { key: 1 }, {
15775
15785
  default: s(() => [
15776
- r(wo)
15786
+ r(Fo)
15777
15787
  ]),
15778
15788
  _: 1
15779
15789
  })) : g("", !0)
@@ -15797,7 +15807,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15797
15807
  }, {
15798
15808
  default: s(($) => [
15799
15809
  S(O($.row.componentName) + " ", 1),
15800
- $.row.choiceType && e.formDb.data_list[$.row.fieldName] ? (n(), p(Ua, {
15810
+ $.row.choiceType && e.formDb.data_list[$.row.fieldName] ? (n(), p(Ra, {
15801
15811
  key: 0,
15802
15812
  width: 400,
15803
15813
  trigger: "click"
@@ -15811,7 +15821,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
15811
15821
  })
15812
15822
  ]),
15813
15823
  default: s(() => [
15814
- r(qa, {
15824
+ r(Ha, {
15815
15825
  data: e.formDb.data_list[$.row.fieldName]
15816
15826
  }, {
15817
15827
  default: s(() => [
@@ -16227,21 +16237,21 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16227
16237
  ]),
16228
16238
  _: 1
16229
16239
  }, 8, ["data"])), [
16230
- [Mo, a.preLoading]
16240
+ [Po, a.preLoading]
16231
16241
  ]),
16232
- e.versionDescription ? (n(), p(za, {
16242
+ e.versionDescription ? (n(), p(qa, {
16233
16243
  key: 2,
16234
16244
  modelValue: a.activeCommt,
16235
16245
  "onUpdate:modelValue": v[3] || (v[3] = ($) => a.activeCommt = $),
16236
16246
  style: { "margin-top": "-1px" }
16237
16247
  }, {
16238
16248
  default: s(() => [
16239
- r(Ra, {
16249
+ r(za, {
16240
16250
  title: "Descriptions",
16241
16251
  name: "1"
16242
16252
  }, {
16243
16253
  default: s(() => [
16244
- r(Fo, {
16254
+ r(_o, {
16245
16255
  modelValue: a.versionDescription,
16246
16256
  "onUpdate:modelValue": v[2] || (v[2] = ($) => a.versionDescription = $),
16247
16257
  mode: "mini",
@@ -16255,7 +16265,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16255
16265
  _: 1
16256
16266
  }, 8, ["modelValue"])) : g("", !0),
16257
16267
  a.showPopupJoiner ? (n(), w("div", qm, [
16258
- r(xt, {
16268
+ r(Kt, {
16259
16269
  title: "Join Parent Form",
16260
16270
  modelValue: a.showPopupJoiner,
16261
16271
  "onUpdate:modelValue": v[22] || (v[22] = ($) => a.showPopupJoiner = $),
@@ -16293,7 +16303,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16293
16303
  ])
16294
16304
  ]),
16295
16305
  default: s(() => [
16296
- r(Do, {
16306
+ r(Io, {
16297
16307
  ref_key: "joinFormRef",
16298
16308
  ref: l,
16299
16309
  model: e.joinerField,
@@ -16315,7 +16325,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16315
16325
  required: ""
16316
16326
  }, {
16317
16327
  default: s(() => [
16318
- r(_o, {
16328
+ r(So, {
16319
16329
  "user-state": de(m),
16320
16330
  modelValue: e.joinerField.form_id,
16321
16331
  "onUpdate:modelValue": v[4] || (v[4] = ($) => e.joinerField.form_id = $),
@@ -16426,7 +16436,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16426
16436
  required: ""
16427
16437
  }, {
16428
16438
  default: s(() => [
16429
- r(Fa, {
16439
+ r(_a, {
16430
16440
  modelValue: e.joinerField.label_fields,
16431
16441
  "onUpdate:modelValue": v[8] || (v[8] = ($) => e.joinerField.label_fields = $),
16432
16442
  "allow-create": !0,
@@ -16442,7 +16452,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16442
16452
  prop: "ref_fields"
16443
16453
  }, {
16444
16454
  default: s(() => [
16445
- r(Fa, {
16455
+ r(_a, {
16446
16456
  modelValue: e.joinerField.ref_fields,
16447
16457
  "onUpdate:modelValue": v[9] || (v[9] = ($) => e.joinerField.ref_fields = $),
16448
16458
  "allow-create": !0,
@@ -16470,7 +16480,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16470
16480
  prop: "joiner_size"
16471
16481
  }, {
16472
16482
  default: s(() => [
16473
- r(wa, {
16483
+ r(Fa, {
16474
16484
  modelValue: e.joinerField.joiner_size,
16475
16485
  "onUpdate:modelValue": v[11] || (v[11] = ($) => e.joinerField.joiner_size = $),
16476
16486
  min: 10,
@@ -16495,7 +16505,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16495
16505
  required: ""
16496
16506
  }, {
16497
16507
  default: s(() => [
16498
- r(Fa, {
16508
+ r(_a, {
16499
16509
  modelValue: e.joinerField.search_fields,
16500
16510
  "onUpdate:modelValue": v[12] || (v[12] = ($) => e.joinerField.search_fields = $),
16501
16511
  "allow-create": !0,
@@ -16646,9 +16656,9 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16646
16656
  type: "info"
16647
16657
  }, {
16648
16658
  default: s(() => [
16649
- r(Wt, null, {
16659
+ r(xt, null, {
16650
16660
  default: s(() => [
16651
- r(Ha)
16661
+ r(Wa)
16652
16662
  ]),
16653
16663
  _: 1
16654
16664
  }),
@@ -16683,9 +16693,9 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16683
16693
  type: "info"
16684
16694
  }, {
16685
16695
  default: s(() => [
16686
- r(Wt, null, {
16696
+ r(xt, null, {
16687
16697
  default: s(() => [
16688
- r(Ha)
16698
+ r(Wa)
16689
16699
  ]),
16690
16700
  _: 1
16691
16701
  }),
@@ -16706,7 +16716,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16706
16716
  ]),
16707
16717
  _: 1
16708
16718
  }),
16709
- r(So, {
16719
+ r(ko, {
16710
16720
  icon: "Link",
16711
16721
  type: "primary",
16712
16722
  target: "_blank",
@@ -16734,7 +16744,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16734
16744
  }, {
16735
16745
  default: s(() => [
16736
16746
  P("div", Hm, [
16737
- r(Co, ae({
16747
+ r(Do, ae({
16738
16748
  tag: "ul",
16739
16749
  list: e.joinerField.order_by,
16740
16750
  "item-key": "id"
@@ -16745,9 +16755,9 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16745
16755
  }), {
16746
16756
  item: s(({ element: $, index: X }) => [
16747
16757
  P("li", Wm, [
16748
- r(ko, {
16758
+ r(Co, {
16749
16759
  modelValue: $.column,
16750
- "onUpdate:modelValue": (Kt) => $.column = Kt,
16760
+ "onUpdate:modelValue": (Gt) => $.column = Gt,
16751
16761
  options: a.subSchema,
16752
16762
  placeholder: "Please field...",
16753
16763
  filterable: !0,
@@ -16757,7 +16767,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16757
16767
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options"]),
16758
16768
  r(Mt, {
16759
16769
  modelValue: $.sort,
16760
- "onUpdate:modelValue": (Kt) => $.sort = Kt,
16770
+ "onUpdate:modelValue": (Gt) => $.sort = Gt,
16761
16771
  style: { width: "150px" }
16762
16772
  }, {
16763
16773
  default: s(() => [
@@ -16791,7 +16801,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16791
16801
  circle: "",
16792
16802
  plain: "",
16793
16803
  type: "danger",
16794
- onClick: (Kt) => f($, X),
16804
+ onClick: (Gt) => f($, X),
16795
16805
  icon: "Delete",
16796
16806
  class: "col-delete-button"
16797
16807
  }, null, 8, ["onClick"])
@@ -16829,7 +16839,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16829
16839
  }, 8, ["modelValue", "width"])
16830
16840
  ])) : g("", !0),
16831
16841
  a.showDataDicDialogFlag ? (n(), w("div", Km, [
16832
- r(xt, {
16842
+ r(Kt, {
16833
16843
  title: `Data Dic - ${a.formDataDic && a.formDataDic._id ? a.formDataDic.form_name : ""}`,
16834
16844
  class: "dialog-grid dialog-form",
16835
16845
  modelValue: a.showDataDicDialogFlag,
@@ -16855,7 +16865,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16855
16865
  ])
16856
16866
  ]),
16857
16867
  default: s(() => [
16858
- a.formDataDic && a.formDataDic._id ? (n(), p(Io, {
16868
+ a.formDataDic && a.formDataDic._id ? (n(), p($o, {
16859
16869
  key: 0,
16860
16870
  "joiner-field": a.formDataDic.joiner_field,
16861
16871
  "form-db": a.formDataDic.form_db,
@@ -16870,7 +16880,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16870
16880
  }, 8, ["title", "modelValue", "width"])
16871
16881
  ])) : g("", !0),
16872
16882
  a.showSchemaFlag ? (n(), w("div", Ym, [
16873
- r(xt, {
16883
+ r(Kt, {
16874
16884
  title: "Sub Schema",
16875
16885
  class: "dialog-grid dialog-form",
16876
16886
  modelValue: a.showSchemaFlag,
@@ -16895,7 +16905,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16895
16905
  ])
16896
16906
  ]),
16897
16907
  default: s(() => [
16898
- r($o, {
16908
+ r(To, {
16899
16909
  "form-db": e.formDb,
16900
16910
  "parent-field": a.parentField,
16901
16911
  "sub-schema": a.popSubSchema,
@@ -16906,7 +16916,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16906
16916
  }, 8, ["modelValue", "width"])
16907
16917
  ])) : g("", !0),
16908
16918
  a.showSchemaAddFlag ? (n(), w("div", Qm, [
16909
- r(xt, {
16919
+ r(Kt, {
16910
16920
  title: "Custom Schema",
16911
16921
  class: "dialog-grid dialog-form",
16912
16922
  modelValue: a.showSchemaAddFlag,
@@ -16919,7 +16929,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
16919
16929
  "destroy-on-close": !1
16920
16930
  }, {
16921
16931
  default: s(() => [
16922
- r(To, {
16932
+ r(Mo, {
16923
16933
  "form-db": e.formDb,
16924
16934
  "form-license": e.formLicense,
16925
16935
  form_id: e.form_id,
@@ -17113,7 +17123,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17113
17123
  }
17114
17124
  });
17115
17125
  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 = 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;
17126
+ 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 && !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;
17117
17127
  }), Ke(d, (C, c) => {
17118
17128
  l.inputOptions = C;
17119
17129
  }), Je(() => {
@@ -17130,7 +17140,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17130
17140
  m("blur", C);
17131
17141
  }
17132
17142
  return (C, c) => {
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;
17143
+ const M = Ie, f = Nt, y = Ll, k = Uo, A = kt, q = Dt, F = Ct, I = zo, V = Ro, T = Ta, H = ya, Z = On;
17134
17144
  return n(), w(E, null, [
17135
17145
  l.inputType === "text-editor" ? (n(), p(M, ae({
17136
17146
  key: 0,
@@ -17307,13 +17317,13 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17307
17317
  onBlur: _,
17308
17318
  onChange: h
17309
17319
  }), null, 16, ["modelValue", "size", "predefine", "disabled"])) : g("", !0),
17310
- l.inputType === "json-editor" ? (n(), p(de(ql), {
17320
+ l.inputType === "json-editor" ? (n(), p(de(Hl), {
17311
17321
  key: 11,
17312
17322
  modelValue: u.value,
17313
17323
  "onUpdate:modelValue": c[11] || (c[11] = (W) => u.value = W),
17314
17324
  "main-menu-bar": !1,
17315
17325
  "navigation-bar": !1,
17316
- mode: de(Hl).tree,
17326
+ mode: de(Wl).tree,
17317
17327
  style: { width: "100%" },
17318
17328
  size: e.size || void 0,
17319
17329
  class: Q(l.isDark ? "jse-theme-dark" : ""),
@@ -17445,7 +17455,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17445
17455
  formList: null,
17446
17456
  nodes: [],
17447
17457
  edges: []
17448
- }), { findNode: i, fitView: d } = oi(), u = le({
17458
+ }), { findNode: i, fitView: d } = ii(), u = le({
17449
17459
  get() {
17450
17460
  return l.modelValue;
17451
17461
  },
@@ -17461,19 +17471,19 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17461
17471
  });
17462
17472
  });
17463
17473
  async function m(C = "TB") {
17464
- const c = new Ya.graphlib.Graph(), M = C === "LR";
17474
+ const c = new Ja.graphlib.Graph(), M = C === "LR";
17465
17475
  c.setDefaultEdgeLabel(() => ({})), c.setGraph({ rankdir: C }), await yt(async () => {
17466
17476
  o.nodes.forEach((f) => {
17467
17477
  const y = i(f.id);
17468
17478
  y ? c.setNode(f.id, { width: y.dimensions.width || 200, height: y.dimensions.height || 50 }) : c.setNode(f.id, { width: 200, height: 50 });
17469
17479
  }), o.edges.forEach((f) => {
17470
17480
  c.setEdge(f.source, f.target);
17471
- }), Ya.layout(c), o.nodes = await o.nodes.map((f) => {
17481
+ }), Ja.layout(c), o.nodes = await o.nodes.map((f) => {
17472
17482
  const y = c.node(f.id);
17473
17483
  return {
17474
17484
  ...f,
17475
- targetPosition: M ? Gt.Left : Gt.Top,
17476
- sourcePosition: M ? Gt.Right : Gt.Bottom,
17485
+ targetPosition: M ? Yt.Left : Yt.Top,
17486
+ sourcePosition: M ? Yt.Right : Yt.Bottom,
17477
17487
  position: {
17478
17488
  x: y.x - y.width / 2,
17479
17489
  y: y.y - y.height / 2
@@ -17569,7 +17579,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17569
17579
  ]),
17570
17580
  default: s(() => [
17571
17581
  P("div", sf, [
17572
- o.showContent ? (n(), p(de(ii), {
17582
+ o.showContent ? (n(), p(de(ni), {
17573
17583
  key: 0,
17574
17584
  nodes: o.nodes,
17575
17585
  edges: o.edges,
@@ -17893,7 +17903,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17893
17903
  for (const t in e)
17894
17904
  if (Object.prototype.hasOwnProperty.call(e, t)) {
17895
17905
  let a = e[t];
17896
- Na(a) ? delete this.optionProvider.fileter[t] : (this.optionProvider.fileter || (this.optionProvider.fileter = {}), this.optionProvider.fileter[t] = a);
17906
+ Ea(a) ? delete this.optionProvider.fileter[t] : (this.optionProvider.fileter || (this.optionProvider.fileter = {}), this.optionProvider.fileter[t] = a);
17897
17907
  }
17898
17908
  this.expandProvider && this.resetExpand(), this.dataProvider.options = this.optionProvider, this.getDataList(this.dataProvider);
17899
17909
  },
@@ -17985,7 +17995,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17985
17995
  style: { height: "32px", display: "inline-grid", "align-content": "center" }
17986
17996
  }, bf = { class: "card-footer" }, gf = { key: 0 };
17987
17997
  function yf(e, t, a, l, o, i) {
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;
17998
+ const d = ce, u = ze, m = oe, h = at, b = Ie, _ = na, C = St, c = qe, M = Lt, f = Pa, y = we, k = ua;
17989
17999
  return n(), w(E, null, [
17990
18000
  r(f, {
17991
18001
  class: "box-card",
@@ -18306,7 +18316,7 @@ const gg = /* @__PURE__ */ j(vf, [["render", wf]]), Ff = L({
18306
18316
  computed: {},
18307
18317
  methods: {
18308
18318
  numberFormat(e) {
18309
- if (Oa(e[this.columnProp])) {
18319
+ if (Na(e[this.columnProp])) {
18310
18320
  let t = 0;
18311
18321
  return isNaN(e[this.columnProp]) || (t = Number(e[this.columnProp])), t.toLocaleString(this.locale, { minimumFractionDigits: this.decimal, maximumFractionDigits: this.decimal });
18312
18322
  }
@@ -21788,7 +21798,7 @@ const yg = /* @__PURE__ */ j(Ff, [["render", _f]]), Sf = [
21788
21798
  useExtendedSearch: !0
21789
21799
  }, a = this;
21790
21800
  new Promise(function(o, i) {
21791
- const d = new yn(a.restaurants, t), u = e ? d.search("'" + e).map((m) => m.item) : a.restaurants;
21801
+ const d = new vn(a.restaurants, t), u = e ? d.search("'" + e).map((m) => m.item) : a.restaurants;
21792
21802
  a.loading = !0, u ? o(u) : i([]);
21793
21803
  }).then((o) => {
21794
21804
  this.loading = !1, this.itemsData = D(o);
@@ -21918,7 +21928,7 @@ const vg = /* @__PURE__ */ j(Cf, [["render", $f]]), Tf = L({
21918
21928
  class: ""
21919
21929
  }, Of = { class: "dialog-footer" };
21920
21930
  function Nf(e, t, a, l, o, i) {
21921
- const d = Ie, u = ce, m = oe, h = Y("draggable"), b = ze, _ = Pl, C = we;
21931
+ const d = Ie, u = ce, m = oe, h = Y("draggable"), b = ze, _ = Vl, C = we;
21922
21932
  return n(), w("div", Mf, [
21923
21933
  e.optionItems && e.optionItems.length > 0 ? (n(), p(h, ae({
21924
21934
  key: 0,
@@ -22150,7 +22160,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22150
22160
  },
22151
22161
  computed: {},
22152
22162
  created() {
22153
- this.apiUrl = "", _a.vfs = vn, _a.fonts = {
22163
+ this.apiUrl = "", Sa.vfs = wn, Sa.fonts = {
22154
22164
  THSarabun: {
22155
22165
  normal: "THSarabun.ttf",
22156
22166
  bold: "THSarabun-Bold.ttf",
@@ -22179,7 +22189,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22179
22189
  methods: {
22180
22190
  submitForm(e) {
22181
22191
  e && e.validate(async (t) => {
22182
- t && (this.showPopupFlag = !1, this.reportLoading = ta.service({ lock: !0, text: "Loading", background: "rgba(0, 0, 0, 0.7)", fullscreen: !0 }), this.typeReport(this.reportType, this.reportData, this.defaultParams));
22192
+ t && (this.showPopupFlag = !1, this.reportLoading = aa.service({ lock: !0, text: "Loading", background: "rgba(0, 0, 0, 0.7)", fullscreen: !0 }), this.typeReport(this.reportType, this.reportData, this.defaultParams));
22183
22193
  });
22184
22194
  },
22185
22195
  handleParamsReport() {
@@ -22193,7 +22203,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22193
22203
  },
22194
22204
  createPdf(e) {
22195
22205
  try {
22196
- this.pdfDoc = _a.createPdf(e), this.pdfDoc.getDataUrl ? this.pdfDoc.getDataUrl((t) => {
22206
+ this.pdfDoc = Sa.createPdf(e), this.pdfDoc.getDataUrl ? this.pdfDoc.getDataUrl((t) => {
22197
22207
  this.pdfUrl = t, this.reportLoading?.close(), this.showReportPopupFlag = !0;
22198
22208
  }) : this.reportLoading?.close();
22199
22209
  } catch (t) {
@@ -22286,7 +22296,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22286
22296
  }
22287
22297
  }
22288
22298
  if (F.col_html) {
22289
- const V = Ja(`<span>${I}</span>`, {
22299
+ const V = Qa(`<span>${I}</span>`, {
22290
22300
  defaultStyles: this.htmlStyle,
22291
22301
  // removeExtraBlanks: true,
22292
22302
  tableAutoSize: !0,
@@ -22513,7 +22523,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22513
22523
  decorationStyle: y.content_linestyle || void 0
22514
22524
  });
22515
22525
  else if (y.content_widget === "html") {
22516
- const A = Ja(k, {
22526
+ const A = Qa(k, {
22517
22527
  defaultStyles: this.htmlStyle,
22518
22528
  // removeExtraBlanks: true,
22519
22529
  tableAutoSize: !0,
@@ -22537,7 +22547,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22537
22547
  } else if (y.content_widget === "image") {
22538
22548
  let A = 100, q = 100;
22539
22549
  if (y.content_width && (A = y.content_width), y.content_height && (q = y.content_height), k !== "") {
22540
- const F = "img-" + On(), I = k.split(", ");
22550
+ const F = "img-" + Rt(), I = k.split(", ");
22541
22551
  o[F] = I[0], l.push({
22542
22552
  image: F,
22543
22553
  cover: { width: A, height: q, valign: "center", align: "center" },
@@ -22721,7 +22731,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22721
22731
  d.param_var && this.defaultParams[d.param_var] === void 0 && (l = !1, d.param_type === "boolean" ? this.defaultParams[d.param_var] = JSON.parse(d.param_default) : d.param_type === "number" ? this.defaultParams[d.param_var] = Number(d.param_default) : d.param_default === "date()" ? this.defaultParams[d.param_var] = ge().format("YYYY-MM-DD HH:mm:ss") : this.defaultParams[d.param_var] = d.param_default, this.showPopupFlag = !0);
22722
22732
  }
22723
22733
  }
22724
- l && (this.reportLoading = ta.service({ lock: !0, text: "Loading", background: "rgba(0, 0, 0, 0.7)", fullscreen: !0 }), this.typeReport(t, this.reportData, this.defaultParams));
22734
+ l && (this.reportLoading = aa.service({ lock: !0, text: "Loading", background: "rgba(0, 0, 0, 0.7)", fullscreen: !0 }), this.typeReport(t, this.reportData, this.defaultParams));
22725
22735
  }
22726
22736
  },
22727
22737
  async typeReport(e, t, a = {}, l = !1) {
@@ -22750,7 +22760,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22750
22760
  },
22751
22761
  async createWord(e, t, a) {
22752
22762
  try {
22753
- const l = new wn({
22763
+ const l = new Fn({
22754
22764
  sections: [
22755
22765
  {
22756
22766
  properties: {
@@ -22773,20 +22783,20 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22773
22783
  children: [
22774
22784
  new Pt("Debug Table Width"),
22775
22785
  // ตารางทดสอบที่ 1 - ใช้ FIXED layout
22776
- new Qa({
22777
- width: { size: 100, type: Jt.PERCENTAGE },
22778
- layout: Za.FIXED,
22786
+ new Xa({
22787
+ width: { size: 100, type: Qt.PERCENTAGE },
22788
+ layout: el.FIXED,
22779
22789
  // columnWidths: [3000, 7000], // รวม 10000
22780
22790
  rows: [
22781
- new Xa({
22791
+ new Za({
22782
22792
  children: [
22783
- new Sa({
22784
- width: { size: 4e3, type: Jt.DXA },
22793
+ new ka({
22794
+ width: { size: 4e3, type: Qt.DXA },
22785
22795
  // ← กำหนดใน cell
22786
22796
  children: [new Pt("Cell 1")]
22787
22797
  }),
22788
- new Sa({
22789
- width: { size: 6e3, type: Jt.DXA },
22798
+ new ka({
22799
+ width: { size: 6e3, type: Qt.DXA },
22790
22800
  // ← กำหนดใน cell
22791
22801
  children: [new Pt("Cell 2")]
22792
22802
  })
@@ -22797,23 +22807,23 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22797
22807
  new Pt(" "),
22798
22808
  // เว้นบรรทัด
22799
22809
  // ตารางทดสอบที่ 2 - ใช้ AUTOFIT สำหรับเปรียบเทียบ
22800
- new Qa({
22810
+ new Xa({
22801
22811
  width: {
22802
22812
  size: 5e3,
22803
22813
  // แคบกว่า
22804
- type: Jt.DXA
22814
+ type: Qt.DXA
22805
22815
  },
22806
- layout: Za.AUTOFIT,
22816
+ layout: el.AUTOFIT,
22807
22817
  borders: {
22808
- top: { style: Qt.DOUBLE, size: 8, color: "0000FF" },
22809
- bottom: { style: Qt.DOUBLE, size: 8, color: "0000FF" },
22810
- left: { style: Qt.DOUBLE, size: 8, color: "0000FF" },
22811
- right: { style: Qt.DOUBLE, size: 8, color: "0000FF" }
22818
+ top: { style: Xt.DOUBLE, size: 8, color: "0000FF" },
22819
+ bottom: { style: Xt.DOUBLE, size: 8, color: "0000FF" },
22820
+ left: { style: Xt.DOUBLE, size: 8, color: "0000FF" },
22821
+ right: { style: Xt.DOUBLE, size: 8, color: "0000FF" }
22812
22822
  },
22813
22823
  rows: [
22814
- new Xa({
22824
+ new Za({
22815
22825
  children: [
22816
- new Sa({
22826
+ new ka({
22817
22827
  children: [new Pt("ตาราง AUTOFIT - 5000")],
22818
22828
  shading: { fill: "CCCCFF" }
22819
22829
  })
@@ -22824,8 +22834,8 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22824
22834
  ]
22825
22835
  }
22826
22836
  ]
22827
- }), o = await Fn.toBlob(l);
22828
- _n(o, "debug-table-width.docx"), this.reportLoading?.close();
22837
+ }), o = await _n.toBlob(l);
22838
+ Sn(o, "debug-table-width.docx"), this.reportLoading?.close();
22829
22839
  } catch (l) {
22830
22840
  this.reportLoading?.close(), console.log(l);
22831
22841
  }
@@ -22833,13 +22843,13 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22833
22843
  createExcel(e, t) {
22834
22844
  try {
22835
22845
  if (Object.keys(e).length > 0) {
22836
- const a = Yt.utils.book_new();
22846
+ const a = Jt.utils.book_new();
22837
22847
  for (const [l, o] of e.entries())
22838
22848
  if (o.data && o.name) {
22839
- const i = Yt.utils.json_to_sheet(o.data);
22840
- Yt.utils.book_append_sheet(a, i, o.name);
22849
+ const i = Jt.utils.json_to_sheet(o.data);
22850
+ Jt.utils.book_append_sheet(a, i, o.name);
22841
22851
  }
22842
- Yt.writeFileXLSX(a, `${t}.xlsx`);
22852
+ Jt.writeFileXLSX(a, `${t}.xlsx`);
22843
22853
  } else
22844
22854
  N.warning("Data not found.");
22845
22855
  this.reportLoading?.close();
@@ -22884,7 +22894,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22884
22894
  return e ? ge(e).format("DD/MM/YYYY HH:mm") : "";
22885
22895
  },
22886
22896
  convertHexToRgba(e, t = 1) {
22887
- return ba(e, t);
22897
+ return ga(e, t);
22888
22898
  },
22889
22899
  pixel2Twip(e) {
22890
22900
  return e * 15;
@@ -22911,7 +22921,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22911
22921
  class: "el-dialog__title"
22912
22922
  }, Rf = ["src"], zf = { key: 4 };
22913
22923
  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 = Nt, f = kt, y = El, k = Bm, A = pt, q = ut, F = we, I = Y("Document"), V = sa;
22924
+ const d = ce, u = Y("arrow-down"), m = Ge, h = oe, b = _t, _ = Ft, C = wt, c = Ie, M = Nt, f = kt, y = Ll, k = Bm, A = pt, q = ut, F = we, I = Y("Document"), V = ra;
22915
22925
  return n(), w(E, null, [
22916
22926
  Object.keys(e.reportList).length > 1 ? (n(), p(C, {
22917
22927
  key: 0,
@@ -23269,6 +23279,10 @@ const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-11cbe530
23269
23279
  type: String,
23270
23280
  default: ""
23271
23281
  },
23282
+ enableWs: {
23283
+ type: Boolean,
23284
+ default: !0
23285
+ },
23272
23286
  userState: {
23273
23287
  type: Object,
23274
23288
  required: !0
@@ -23317,6 +23331,7 @@ const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-11cbe530
23317
23331
  useUserState: this.$props.userState,
23318
23332
  dpFormData: { providerId: this.formId, providerType: pe.FORM },
23319
23333
  wsConn: void 0,
23334
+ widgetId: "SdUiCarousel-" + Rt(),
23320
23335
  isFormEnable: this.providerType === "FORM",
23321
23336
  loadEnable: !1
23322
23337
  };
@@ -23380,11 +23395,11 @@ const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-11cbe530
23380
23395
  initForm(e) {
23381
23396
  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
23397
  const t = D(this.dpFormData.params), a = D(this.params);
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
- if (l.from != "server" && l.from != this.userState.user?.username) {
23398
+ 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.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
23399
+ if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId)) {
23385
23400
  let o = -1;
23386
23401
  const i = D(l.data);
23387
- l.params && D(l.params), o = this.keyIdIndex(i._id), l.method == "insert" ? va(this.sdformModel, i, this.useUserState.user) && (this.total = this.total + 1, this.totalPage = this.totalPage + 1, this.rawData.push(i)) : l.method == "update" ? o >= 0 && (this.rawData[o] = i) : l.method == "delete" && o >= 0 && (this.rawData.splice(o, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1);
23402
+ l.params && D(l.params), o = this.keyIdIndex(i._id), l.method == "insert" ? wa(this.sdformModel, i, this.useUserState.user) && (this.total = this.total + 1, this.totalPage = this.totalPage + 1, this.rawData.push(i)) : l.method == "update" ? o >= 0 && (this.rawData[o] = i) : l.method == "delete" && o >= 0 && (this.rawData.splice(o, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1);
23388
23403
  }
23389
23404
  }));
23390
23405
  },
@@ -23438,7 +23453,7 @@ const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-11cbe530
23438
23453
  return this.total.toLocaleString();
23439
23454
  },
23440
23455
  convertHexToRgba(e, t = 1) {
23441
- return ba(e, t);
23456
+ return ga(e, t);
23442
23457
  }
23443
23458
  // groupCheck(rawData: any) {
23444
23459
  // const gvalue = this.getValue(rawData, this.groupField);
@@ -23461,7 +23476,7 @@ const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-11cbe530
23461
23476
  class: "img-content"
23462
23477
  }, Qf = ["innerHTML"], Xf = ["innerHTML"], Zf = { class: "text-card" }, eh = { style: { "text-align": "center" } }, th = ["innerHTML"], ah = ["innerHTML"];
23463
23478
  function lh(e, t, a, l, o, i) {
23464
- const d = Ze, u = ce, m = Y("Loading"), h = Ge, b = Y("Picture"), _ = vt, C = Ht, c = ze, M = qo, f = zo;
23479
+ const d = Ze, u = ce, m = Y("Loading"), h = Ge, b = Y("Picture"), _ = vt, C = Wt, c = ze, M = Ho, f = qo;
23465
23480
  return n(), w(E, null, [
23466
23481
  P("div", Wf, [
23467
23482
  e.titleEnable ? (n(), w("span", xf, [
@@ -23619,7 +23634,7 @@ function lh(e, t, a, l, o, i) {
23619
23634
  }, 8, ["indicator-position", "motionBlur", "interval", "autoplay", "direction", "type", "trigger", "height"])) : g("", !0)
23620
23635
  ], 64);
23621
23636
  }
23622
- const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-115eff8a"]]), oh = L({
23637
+ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-ea5295de"]]), oh = L({
23623
23638
  name: "SdUiMenu",
23624
23639
  components: {},
23625
23640
  props: {
@@ -23780,8 +23795,8 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-115eff8a
23780
23795
  iconForm: "",
23781
23796
  allowInsert: !1,
23782
23797
  page: 1,
23783
- router: Rl(),
23784
- route: zl(),
23798
+ router: zl(),
23799
+ route: ql(),
23785
23800
  limit: this.limitRow,
23786
23801
  optionProvider: { limit: this.limitRow, page: 1 },
23787
23802
  useUserState: this.$props.userState,
@@ -23929,7 +23944,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-115eff8a
23929
23944
  return this.total.toLocaleString();
23930
23945
  },
23931
23946
  convertHexToRgba(e, t = 1) {
23932
- return ba(e, t);
23947
+ return ga(e, t);
23933
23948
  }
23934
23949
  // groupCheck(rawData: any) {
23935
23950
  // const gvalue = this.getValue(rawData, this.groupField);
@@ -23952,7 +23967,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-115eff8a
23952
23967
  class: "menu-label"
23953
23968
  };
23954
23969
  function dh(e, t, a, l, o, i) {
23955
- const d = ce, u = Wo, m = oa, h = xo, b = Ho, _ = Vl, C = Ul("can");
23970
+ const d = ce, u = xo, m = ia, h = Ko, b = Wo, _ = Al, C = Rl("can");
23956
23971
  return n(), w(E, null, [
23957
23972
  r(_, {
23958
23973
  class: "menu-wrapper",
@@ -24197,6 +24212,10 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24197
24212
  type: String,
24198
24213
  default: ""
24199
24214
  },
24215
+ enableWs: {
24216
+ type: Boolean,
24217
+ default: !0
24218
+ },
24200
24219
  userState: {
24201
24220
  type: Object,
24202
24221
  required: !0
@@ -24248,6 +24267,7 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24248
24267
  useUserState: this.$props.userState,
24249
24268
  dpFormData: { providerId: this.formId, providerType: pe.FORM },
24250
24269
  wsConn: void 0,
24270
+ widgetId: "SdUiRecordView-" + Rt(),
24251
24271
  sdFunc: {},
24252
24272
  isFormEnable: this.providerType === "FORM",
24253
24273
  afterDeleteForm: void 0
@@ -24321,8 +24341,8 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24321
24341
  cancelButtonText: "Cancel",
24322
24342
  type: "warning"
24323
24343
  }).then(async () => {
24324
- if (await La(this.sdformModel.dataid, e, this.useUserState)) {
24325
- if (this.wsConn?.wsSend({ data: this.rawData, method: "delete", keyid: "_id" }), this.afterDelete && this.afterDelete(this.rawData), this.sdformModel.form_event.enable && this.afterDeleteForm)
24344
+ if (await Ba(this.sdformModel.dataid, e, this.useUserState)) {
24345
+ if (this.wsConn?.wsSend({ data: this.rawData, method: "delete", keyid: "_id", params: { widget: this.widgetId } }), this.afterDelete && this.afterDelete(this.rawData), this.sdformModel.form_event.enable && this.afterDeleteForm)
24326
24346
  try {
24327
24347
  this.afterDeleteForm.call(this.sdFunc, this.rawData);
24328
24348
  } catch (a) {
@@ -24367,8 +24387,8 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24367
24387
  initForm(e) {
24368
24388
  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
24389
  const t = D(this.dpFormData.params), a = D(this.params);
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
- if (l.from != "server" && l.from != this.userState.user?.username && l.keyid) {
24390
+ this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), (this.lastRecord || this.dataId) && this.getDataOne(this.dpFormData), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
24391
+ if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId) && l.keyid) {
24372
24392
  const o = D(l.data), i = o[l.keyid];
24373
24393
  l.method == "insert" ? this.lastRecord && !this.dataId && (this.parentId ? o.xparentx && o.xparentx == this.parentId && (this.rawData = D(o), this.recordId = o[l.keyid]) : (this.rawData = D(o), this.recordId = o[l.keyid])) : l.method == "update" ? i == this.recordId && (this.rawData = D(o)) : l.method == "delete" && i == this.recordId && (this.rawData = null, this.recordId = "");
24374
24394
  }
@@ -24386,13 +24406,13 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24386
24406
  return a ? Ve(a, t, this.sdformModel) : "";
24387
24407
  },
24388
24408
  allowView(e, t, a) {
24389
- return va(e, t, a);
24409
+ return wa(e, t, a);
24390
24410
  },
24391
24411
  allowUpdate(e, t, a) {
24392
24412
  return Re(e, t, a);
24393
24413
  },
24394
24414
  allowDelete(e, t, a) {
24395
- return Ba(e, t, a);
24415
+ return ja(e, t, a);
24396
24416
  },
24397
24417
  afterSave(e, t, a = null) {
24398
24418
  t || (this.showPopupFlag = !1, this.handlePopUpForm()), a && (this.isInsert = !1);
@@ -24400,9 +24420,9 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24400
24420
  if (e)
24401
24421
  if (this.isInsert) {
24402
24422
  let o = D(e);
24403
- this.rawData = D(e), this.recordId = e._id, this.wsConn?.wsSend({ data: o, method: "insert", keyid: "_id" });
24423
+ this.rawData = D(e), this.recordId = e._id, this.wsConn?.wsSend({ data: o, method: "insert", keyid: "_id", params: { widget: this.widgetId } });
24404
24424
  } else
24405
- this.rawData = D(e), this.recordId = e._id, this.wsConn?.wsSend({ data: e, method: "update", keyid: "_id" });
24425
+ this.rawData = D(e), this.recordId = e._id, this.wsConn?.wsSend({ data: e, method: "update", keyid: "_id", params: { widget: this.widgetId } });
24406
24426
  this.$emit("aftersave", l, e, a);
24407
24427
  },
24408
24428
  getSchema(e) {
@@ -24411,7 +24431,7 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
24411
24431
  }
24412
24432
  }), ph = { class: "text-6" }, mh = ["innerHTML"];
24413
24433
  function fh(e, t, a, l, o, i) {
24414
- const d = Ze, u = ce, m = oe, h = Ht, b = Nl, _ = Ol, C = Dm;
24434
+ const d = Ze, u = ce, m = oe, h = Wt, b = El, _ = Nl, C = Dm;
24415
24435
  return n(), w(E, null, [
24416
24436
  r(_, {
24417
24437
  class: Q({ blockUi: e.blockEnable }),
@@ -24549,35 +24569,35 @@ function fh(e, t, a, l, o, i) {
24549
24569
  }, null, 8, ["modelValue", "parent-id", "readonly", "form-id", "user-state", "cancel-callback"])) : g("", !0)
24550
24570
  ], 64);
24551
24571
  }
24552
- const kg = /* @__PURE__ */ j(uh, [["render", fh], ["__scopeId", "data-v-169d5f12"]]);
24572
+ const kg = /* @__PURE__ */ j(uh, [["render", fh], ["__scopeId", "data-v-88128e90"]]);
24553
24573
  export {
24554
- va as $,
24574
+ wa as $,
24555
24575
  _g as A,
24556
24576
  Tp as B,
24557
24577
  Sg as C,
24558
24578
  kg as D,
24559
24579
  Ad as E,
24560
- Ht as F,
24580
+ Wt as F,
24561
24581
  Zm as G,
24562
24582
  rt as H,
24563
24583
  Ot as I,
24564
24584
  De as J,
24565
24585
  Mu as K,
24566
- ya as L,
24586
+ va as L,
24567
24587
  Pu as M,
24568
24588
  dt as N,
24569
- La as O,
24589
+ Ba as O,
24570
24590
  ng as P,
24571
24591
  Vu as Q,
24572
24592
  sg as R,
24573
24593
  ug as S,
24574
- ho as T,
24575
- Tl as U,
24594
+ co as T,
24595
+ Ml as U,
24576
24596
  rg as V,
24577
- la as W,
24597
+ oa as W,
24578
24598
  Oe as X,
24579
24599
  Re as Y,
24580
- Ba as Z,
24600
+ ja as Z,
24581
24601
  Ze as _,
24582
24602
  ce as a,
24583
24603
  Au as a0,
@@ -24588,22 +24608,22 @@ export {
24588
24608
  ke as a5,
24589
24609
  D as a6,
24590
24610
  Ce as a7,
24591
- On as a8,
24611
+ Rt as a8,
24592
24612
  xb as a9,
24593
24613
  Wb as aa,
24594
24614
  ve as ab,
24595
- Wl as ac,
24615
+ xl as ac,
24596
24616
  ag as ad,
24597
24617
  tg as ae,
24598
24618
  En as af,
24599
24619
  lg as ag,
24600
24620
  eg as ah,
24601
24621
  Zb as ai,
24602
- Na as aj,
24622
+ Ea as aj,
24603
24623
  Kb as ak,
24604
- Oa as al,
24624
+ Na as al,
24605
24625
  Hb as am,
24606
- Ea as an,
24626
+ La as an,
24607
24627
  Jb as ao,
24608
24628
  ee as ap,
24609
24629
  qb as aq,
@@ -24614,14 +24634,14 @@ export {
24614
24634
  Gb as av,
24615
24635
  pe as aw,
24616
24636
  zm as ax,
24617
- ja as ay,
24618
- An as b,
24637
+ Ua as ay,
24638
+ On as b,
24619
24639
  og as c,
24620
- ga as d,
24640
+ ya as d,
24621
24641
  ig as e,
24622
24642
  dg as f,
24623
24643
  pg as g,
24624
- co as h,
24644
+ bo as h,
24625
24645
  ym as i,
24626
24646
  _m as j,
24627
24647
  Dm as k,
@@ -24631,13 +24651,13 @@ export {
24631
24651
  hg as o,
24632
24652
  cg as p,
24633
24653
  bg as q,
24634
- bo as r,
24635
- go as s,
24654
+ go as r,
24655
+ yo as s,
24636
24656
  rm as t,
24637
24657
  gg as u,
24638
24658
  yg as v,
24639
24659
  vg as w,
24640
24660
  wg as x,
24641
24661
  Fg as y,
24642
- yo as z
24662
+ vo as z
24643
24663
  };