@farris/ui-vue 1.6.5-beta.1 → 1.6.5-beta.3

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.
Files changed (133) hide show
  1. package/components/accordion/index.esm.js +190 -187
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/accordion/package.json +1 -1
  4. package/components/avatar/package.json +1 -1
  5. package/components/binding-selector/package.json +1 -1
  6. package/components/border-editor/package.json +1 -1
  7. package/components/button/package.json +1 -1
  8. package/components/button-edit/index.esm.js +745 -753
  9. package/components/button-edit/index.umd.cjs +1 -1
  10. package/components/button-edit/package.json +1 -1
  11. package/components/button-group/package.json +1 -1
  12. package/components/calculator/package.json +1 -1
  13. package/components/calendar/package.json +1 -1
  14. package/components/capsule/package.json +1 -1
  15. package/components/checkbox/package.json +1 -1
  16. package/components/checkbox-group/package.json +1 -1
  17. package/components/code-editor/package.json +1 -1
  18. package/components/collection-property-editor/package.json +1 -1
  19. package/components/color-picker/package.json +1 -1
  20. package/components/combo-list/package.json +1 -1
  21. package/components/combo-tree/package.json +1 -1
  22. package/components/common/package.json +1 -1
  23. package/components/component/package.json +1 -1
  24. package/components/condition/package.json +1 -1
  25. package/components/content-container/package.json +1 -1
  26. package/components/data-grid/package.json +1 -1
  27. package/components/data-view/package.json +1 -1
  28. package/components/date-picker/package.json +1 -1
  29. package/components/designer-canvas/package.json +1 -1
  30. package/components/designer-outline/package.json +1 -1
  31. package/components/designer-toolbox/package.json +1 -1
  32. package/components/discussion-editor/package.json +1 -1
  33. package/components/discussion-list/package.json +1 -1
  34. package/components/drawer/package.json +1 -1
  35. package/components/dropdown/package.json +1 -1
  36. package/components/dynamic-form/package.json +1 -1
  37. package/components/dynamic-resolver/package.json +1 -1
  38. package/components/dynamic-view/package.json +1 -1
  39. package/components/enum-editor/package.json +1 -1
  40. package/components/event-parameter/package.json +1 -1
  41. package/components/events-editor/package.json +1 -1
  42. package/components/expression-editor/index.esm.js +1279 -1287
  43. package/components/expression-editor/index.umd.cjs +2 -2
  44. package/components/expression-editor/package.json +1 -1
  45. package/components/external-container/package.json +1 -1
  46. package/components/field-selector/package.json +1 -1
  47. package/components/fieldset/package.json +1 -1
  48. package/components/filter-bar/index.esm.js +703 -711
  49. package/components/filter-bar/index.umd.cjs +1 -1
  50. package/components/filter-bar/package.json +1 -1
  51. package/components/filter-condition-editor/index.esm.js +1140 -1148
  52. package/components/filter-condition-editor/index.umd.cjs +2 -2
  53. package/components/filter-condition-editor/package.json +1 -1
  54. package/components/flow-canvas/package.json +1 -1
  55. package/components/html-template/package.json +1 -1
  56. package/components/image-cropper/package.json +1 -1
  57. package/components/input-group/package.json +1 -1
  58. package/components/json-editor/package.json +1 -1
  59. package/components/language-textbox/package.json +1 -1
  60. package/components/layout/package.json +1 -1
  61. package/components/list-nav/package.json +1 -1
  62. package/components/list-view/package.json +1 -1
  63. package/components/loading/package.json +1 -1
  64. package/components/locale/package.json +1 -1
  65. package/components/lookup/package.json +1 -1
  66. package/components/mapping-editor/index.esm.js +967 -975
  67. package/components/mapping-editor/index.umd.cjs +1 -1
  68. package/components/mapping-editor/package.json +1 -1
  69. package/components/menu-lookup/package.json +1 -1
  70. package/components/message-box/package.json +1 -1
  71. package/components/modal/package.json +1 -1
  72. package/components/nav/package.json +1 -1
  73. package/components/notify/package.json +1 -1
  74. package/components/number-range/package.json +1 -1
  75. package/components/number-spinner/package.json +1 -1
  76. package/components/order/package.json +1 -1
  77. package/components/page-footer/package.json +1 -1
  78. package/components/page-header/package.json +1 -1
  79. package/components/pagination/package.json +1 -1
  80. package/components/popover/package.json +1 -1
  81. package/components/progress/package.json +1 -1
  82. package/components/property-editor/package.json +1 -1
  83. package/components/property-panel/package.json +1 -1
  84. package/components/query-solution/index.esm.js +1193 -1201
  85. package/components/query-solution/index.umd.cjs +4 -4
  86. package/components/query-solution/package.json +1 -1
  87. package/components/radio/package.json +1 -1
  88. package/components/radio-button/package.json +1 -1
  89. package/components/radio-group/package.json +1 -1
  90. package/components/rate/package.json +1 -1
  91. package/components/response-layout/package.json +1 -1
  92. package/components/response-layout-editor/package.json +1 -1
  93. package/components/response-toolbar/package.json +1 -1
  94. package/components/schema-selector/index.esm.js +1095 -1103
  95. package/components/schema-selector/index.umd.cjs +6 -6
  96. package/components/schema-selector/package.json +1 -1
  97. package/components/search-box/package.json +1 -1
  98. package/components/section/package.json +1 -1
  99. package/components/smoke-detector/package.json +1 -1
  100. package/components/sort-condition-editor/index.esm.js +1185 -1193
  101. package/components/sort-condition-editor/index.umd.cjs +2 -2
  102. package/components/sort-condition-editor/package.json +1 -1
  103. package/components/spacing-editor/package.json +1 -1
  104. package/components/splitter/package.json +1 -1
  105. package/components/step/package.json +1 -1
  106. package/components/switch/package.json +1 -1
  107. package/components/tabs/package.json +1 -1
  108. package/components/tags/package.json +1 -1
  109. package/components/text/package.json +1 -1
  110. package/components/textarea/package.json +1 -1
  111. package/components/time-picker/index.esm.js +895 -903
  112. package/components/time-picker/index.umd.cjs +1 -1
  113. package/components/time-picker/package.json +1 -1
  114. package/components/tooltip/package.json +1 -1
  115. package/components/transfer/package.json +1 -1
  116. package/components/tree-grid/package.json +1 -1
  117. package/components/tree-view/package.json +1 -1
  118. package/components/uploader/package.json +1 -1
  119. package/components/verify-detail/package.json +1 -1
  120. package/components/video/package.json +1 -1
  121. package/components/weather/package.json +1 -1
  122. package/designer/data-grid/index.esm.js +1447 -1455
  123. package/designer/data-grid/index.umd.cjs +4 -4
  124. package/designer/farris-designer.all.esm.js +1789 -1797
  125. package/designer/farris-designer.all.umd.cjs +9 -9
  126. package/designer/radio-group/index.esm.js +1032 -1040
  127. package/designer/radio-group/index.umd.cjs +1 -1
  128. package/farris.all.esm.js +2242 -2246
  129. package/farris.all.umd.cjs +15 -15
  130. package/package.json +1 -1
  131. package/types/components.d.ts +4 -3
  132. package/types/message-box/index.d.ts +6 -6
  133. package/types/message-box/src/message-box.component.d.ts +3 -3
@@ -84,7 +84,7 @@ import "../language-textbox/index.esm.js";
84
84
  import { useDesignerComponent as za } from "../designer-canvas/index.esm.js";
85
85
  import { getCustomClass as jn, withInstall as jt, FormSchemaEntityField$Type as vn, FormSchemaEntityFieldTypeName as hn, useGuid as Wa, FormSchemaEntityFieldType$Type as qa, getCustomStyle as Ga } from "../common/index.esm.js";
86
86
  import { useResizeObserver as _a } from "@vueuse/core";
87
- import { getHierarchyRow as Ua, useIdentify as Ya, useGroupData as Xa, useFilter as Ja, useHierarchy as Qa, useLoading as Za, useDataView as Ka, useSelection as eo, useSelectHierarchyItem as to, usePagination as no, useDataViewContainerStyle as ao, useCommandColumn as oo, useSettingColumn as io, useColumn as lo, useSort as ro, useGroupColumn as so, useRow as uo, useEdit as co, useVisualDataBound as fo, useVisualDataCell as po, useVisualDataRow as mo, useVisualData as yo, useCellPosition as vo, useSidebar as ho, useVirtualScroll as go, useFitColumn as bo, useFilterHistory as Co, useColumnFilter as wo, useDragColumn as ko, getColumnHeader as xo, getSidebar as So, getDisableMask as Fo, getHorizontalScrollbar as To, getVerticalScrollbar as Bo, getEmpty as Mo, getPagination as Oo, getSummary as Eo } from "../data-view/index.esm.js";
87
+ import { getHierarchyRow as Ua, useIdentify as Ya, useGroupData as Xa, useFilter as Ja, useHierarchy as Qa, useLoading as Za, useDataView as Ka, useSelection as eo, useSelectHierarchyItem as to, usePagination as no, useDataViewContainerStyle as ao, useCommandColumn as oo, useSettingColumn as io, useColumn as lo, useSort as ro, useGroupColumn as so, useRow as uo, useEdit as co, useVisualDataBound as fo, useVisualDataCell as po, useVisualDataRow as mo, useVisualData as yo, useCellPosition as vo, useSidebar as ho, useVirtualScroll as go, useFitColumn as bo, useFilterHistory as Co, useColumnFilter as wo, useDragColumn as ko, getColumnHeader as xo, getSidebar as Fo, getDisableMask as So, getHorizontalScrollbar as To, getVerticalScrollbar as Bo, getEmpty as Mo, getPagination as Oo, getSummary as Eo } from "../data-view/index.esm.js";
88
88
  import { InputBaseProperty as Do } from "../property-panel/index.esm.js";
89
89
  import "../notify/index.esm.js";
90
90
  import Po from "../popover/index.esm.js";
@@ -94,20 +94,20 @@ import { FInputGroup as jo } from "../input-group/index.esm.js";
94
94
  function Vn(e, t) {
95
95
  let n;
96
96
  function a(s) {
97
- const { properties: l, title: f, ignore: m } = s, g = m && Array.isArray(m), p = Object.keys(l).reduce((w, k) => ((!g || !m.find((E) => E === k)) && (w[k] = l[k].type === "object" && l[k].properties ? a(l[k]) : Ve(l[k].default)), w), {});
98
- if (f && (!g || !m.find((w) => w === "id"))) {
97
+ const { properties: l, title: f, ignore: y } = s, g = y && Array.isArray(y), m = Object.keys(l).reduce((w, k) => ((!g || !y.find((O) => O === k)) && (w[k] = l[k].type === "object" && l[k].properties ? a(l[k]) : Ve(l[k].default)), w), {});
98
+ if (f && (!g || !y.find((w) => w === "id"))) {
99
99
  const w = f.toLowerCase().replace(/-/g, "_");
100
- p.id = `${w}_${Math.random().toString().slice(2, 6)}`;
100
+ m.id = `${w}_${Math.random().toString().slice(2, 6)}`;
101
101
  }
102
- return p;
102
+ return m;
103
103
  }
104
104
  function o(s) {
105
- const { properties: l, title: f, required: m } = s;
106
- if (m && Array.isArray(m)) {
107
- const g = m.reduce((p, w) => (p[w] = l[w].type === "object" && l[w].properties ? a(l[w]) : Ve(l[w].default), p), {});
108
- if (f && m.find((p) => p === "id")) {
109
- const p = f.toLowerCase().replace(/-/g, "_");
110
- g.id = `${p}_${Math.random().toString().slice(2, 6)}`;
105
+ const { properties: l, title: f, required: y } = s;
106
+ if (y && Array.isArray(y)) {
107
+ const g = y.reduce((m, w) => (m[w] = l[w].type === "object" && l[w].properties ? a(l[w]) : Ve(l[w].default), m), {});
108
+ if (f && y.find((m) => m === "id")) {
109
+ const m = f.toLowerCase().replace(/-/g, "_");
110
+ g.id = `${m}_${Math.random().toString().slice(2, 6)}`;
111
111
  }
112
112
  return g;
113
113
  }
@@ -116,47 +116,47 @@ function Vn(e, t) {
116
116
  };
117
117
  }
118
118
  function i(s, l = {}, f) {
119
- const m = e[s];
120
- if (m) {
121
- let g = o(m);
122
- const p = t[s];
123
- return g = p ? p({ getSchemaByType: i }, g, l, f) : g, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(g), g;
119
+ const y = e[s];
120
+ if (y) {
121
+ let g = o(y);
122
+ const m = t[s];
123
+ return g = m ? m({ getSchemaByType: i }, g, l, f) : g, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(g), g;
124
124
  }
125
125
  return null;
126
126
  }
127
127
  function r(s, l) {
128
128
  const f = a(l);
129
- return Object.keys(f).reduce((m, g) => (Object.prototype.hasOwnProperty.call(s, g) && (m[g] && yn(m[g]) && yn(s[g] || !s[g]) ? Object.assign(m[g], s[g] || {}) : m[g] = s[g]), m), f), f;
129
+ return Object.keys(f).reduce((y, g) => (Object.prototype.hasOwnProperty.call(s, g) && (y[g] && yn(y[g]) && yn(s[g] || !s[g]) ? Object.assign(y[g], s[g] || {}) : y[g] = s[g]), y), f), f;
130
130
  }
131
131
  function u(s, l) {
132
- return Object.keys(s).filter((m) => s[m] != null).reduce((m, g) => {
132
+ return Object.keys(s).filter((y) => s[y] != null).reduce((y, g) => {
133
133
  if (l.has(g)) {
134
- const p = l.get(g);
135
- if (typeof p == "string")
136
- m[p] = s[g];
134
+ const m = l.get(g);
135
+ if (typeof m == "string")
136
+ y[m] = s[g];
137
137
  else {
138
- const w = p(g, s[g], s);
139
- Object.assign(m, w);
138
+ const w = m(g, s[g], s);
139
+ Object.assign(y, w);
140
140
  }
141
141
  } else
142
- m[g] = s[g];
143
- return m;
142
+ y[g] = s[g];
143
+ return y;
144
144
  }, {});
145
145
  }
146
146
  function d(s, l, f = /* @__PURE__ */ new Map()) {
147
- const m = r(s, l);
148
- return u(m, f);
147
+ const y = r(s, l);
148
+ return u(y, f);
149
149
  }
150
150
  function c(s) {
151
151
  var f;
152
152
  const l = s.type;
153
153
  if (l) {
154
- const m = e[l];
155
- if (!m)
154
+ const y = e[l];
155
+ if (!y)
156
156
  return s;
157
- const g = r(s, m), p = ((f = s.editor) == null ? void 0 : f.type) || "";
158
- if (p) {
159
- const w = e[p], k = r(s.editor, w);
157
+ const g = r(s, y), m = ((f = s.editor) == null ? void 0 : f.type) || "";
158
+ if (m) {
159
+ const w = e[m], k = r(s.editor, w);
160
160
  g.editor = k;
161
161
  }
162
162
  return g;
@@ -174,13 +174,13 @@ function Lo(e = {}) {
174
174
  if (typeof s == "number")
175
175
  return l[c].length === s;
176
176
  if (typeof s == "object") {
177
- const f = Object.keys(s)[0], m = s[f];
177
+ const f = Object.keys(s)[0], y = s[f];
178
178
  if (f === "not")
179
- return Number(l[c].length) !== Number(m);
179
+ return Number(l[c].length) !== Number(y);
180
180
  if (f === "moreThan")
181
- return Number(l[c].length) >= Number(m);
181
+ return Number(l[c].length) >= Number(y);
182
182
  if (f === "lessThan")
183
- return Number(l[c].length) <= Number(m);
183
+ return Number(l[c].length) <= Number(y);
184
184
  }
185
185
  return !1;
186
186
  }
@@ -197,8 +197,8 @@ function Lo(e = {}) {
197
197
  return typeof h == "number" ? [{ target: s, operator: "length", param: null, value: Number(h) }] : typeof h == "boolean" ? [{ target: s, operator: "getProperty", param: c, value: !!h }] : typeof h == "object" ? Object.keys(h).map((l) => {
198
198
  if (l === "length")
199
199
  return { target: s, operator: "length", param: null, value: h[l] };
200
- const f = l, m = h[l];
201
- return { target: s, operator: "getProperty", param: f, value: m };
200
+ const f = l, y = h[l];
201
+ return { target: s, operator: "getProperty", param: f, value: y };
202
202
  }) : [];
203
203
  }
204
204
  function i(c) {
@@ -215,10 +215,10 @@ function Lo(e = {}) {
215
215
  return !1;
216
216
  }
217
217
  function u(c, h) {
218
- return i(c).reduce((f, m) => f && r(m, h), !0);
218
+ return i(c).reduce((f, y) => f && r(y, h), !0);
219
219
  }
220
220
  function d(c, h) {
221
- const s = Object.keys(c), l = s.includes("allOf"), f = s.includes("anyOf"), m = l || f, w = (m ? c[m ? l ? "allOf" : "anyOf" : "allOf"] : [c]).map((E) => u(E, h));
221
+ const s = Object.keys(c), l = s.includes("allOf"), f = s.includes("anyOf"), y = l || f, w = (y ? c[y ? l ? "allOf" : "anyOf" : "allOf"] : [c]).map((O) => u(O, h));
222
222
  return l ? !w.includes(!1) : w.includes(!0);
223
223
  }
224
224
  return { parseValueSchema: d };
@@ -509,75 +509,75 @@ function An(e, t, n) {
509
509
  ["number", { type: "number-spinner", placeholder: "" }],
510
510
  ["events-editor", { type: "events-editor", hide: !0 }]
511
511
  ]), i = Lo();
512
- function r(m, g) {
513
- return () => i.parseValueSchema(m, g);
512
+ function r(y, g) {
513
+ return () => i.parseValueSchema(y, g);
514
514
  }
515
- function u(m, g, p) {
516
- return m.includes("visible") && g.visible !== void 0 ? typeof g.visible == "boolean" ? () => !!g.visible : g.visible === void 0 ? !0 : r(g.visible, p) : () => !0;
515
+ function u(y, g, m) {
516
+ return y.includes("visible") && g.visible !== void 0 ? typeof g.visible == "boolean" ? () => !!g.visible : g.visible === void 0 ? !0 : r(g.visible, m) : () => !0;
517
517
  }
518
- function d(m, g, p) {
519
- return m.includes("readonly") && g.readonly !== void 0 ? typeof g.readonly == "boolean" ? () => !!g.readonly : r(g.readonly, p) : () => !1;
518
+ function d(y, g, m) {
519
+ return y.includes("readonly") && g.readonly !== void 0 ? typeof g.readonly == "boolean" ? () => !!g.readonly : r(g.readonly, m) : () => !1;
520
520
  }
521
- function c(m, g) {
522
- const p = m.$converter || g;
523
- return typeof p == "string" && p && a.has(p) ? a.get(p) || null : p || null;
521
+ function c(y, g) {
522
+ const m = y.$converter || g;
523
+ return typeof m == "string" && m && a.has(m) ? a.get(m) || null : m || null;
524
524
  }
525
- function h(m, g, p, w, k, E = "", B = "") {
526
- return Object.keys(m).map((y) => {
527
- const x = C(1), F = y, j = m[y], R = Object.keys(j), M = j.title, T = j.type, S = o.get(T) || { type: "input-group", enableClear: !1 }, O = j.editor ? Object.assign({}, S, j.editor) : Object.assign({}, S), P = u(R, j, g), H = d(R, j, g);
528
- O.readonly = O.readonly === void 0 ? H() : O.readonly;
529
- const J = j.type === "cascade" ? h(j.properties, g, p, w, k, E, B) : [], $ = !0;
525
+ function h(y, g, m, w, k, O = "", B = "") {
526
+ return Object.keys(y).map((p) => {
527
+ const F = C(1), T = p, j = y[p], R = Object.keys(j), M = j.title, S = j.type, x = o.get(S) || { type: "input-group", enableClear: !1 }, E = j.editor ? Object.assign({}, x, j.editor) : Object.assign({}, x), P = u(R, j, g), W = d(R, j, g);
528
+ E.readonly = E.readonly === void 0 ? W() : E.readonly;
529
+ const J = j.type === "cascade" ? h(j.properties, g, m, w, k, O, B) : [], $ = !0;
530
530
  let I = c(j, B);
531
531
  const G = N({
532
532
  get() {
533
- if (x.value) {
534
- if (["class", "style"].find((de) => de === F) && !I && (I = a.get("/converter/appearance.converter") || null), I && I.convertFrom)
535
- return I.convertFrom(p, y, k, E);
536
- const ie = p[y];
533
+ if (F.value) {
534
+ if (["class", "style"].find((de) => de === T) && !I && (I = a.get("/converter/appearance.converter") || null), I && I.convertFrom)
535
+ return I.convertFrom(m, p, k, O);
536
+ const ie = m[p];
537
537
  return Object.prototype.hasOwnProperty.call(j, "defaultValue") && (ie === void 0 || typeof ie == "string" && ie === "") ? j.type === "boolean" ? j.defaultValue : j.defaultValue || "" : ie;
538
538
  }
539
539
  return null;
540
540
  },
541
541
  set(ie) {
542
- x.value += 1, I && I.convertTo ? (I.convertTo(w, y, ie, k, E), I.convertTo(p, y, ie, k, E)) : (w[y] = ie, p[y] = ie);
542
+ F.value += 1, I && I.convertTo ? (I.convertTo(w, p, ie, k, O), I.convertTo(m, p, ie, k, O)) : (w[p] = ie, m[p] = ie);
543
543
  }
544
- }), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = j, Y = { propertyID: F, propertyName: M, propertyType: T, propertyValue: G, editor: O, visible: P, readonly: H, cascadeConfig: J, hideCascadeTitle: $, refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve };
545
- return g[F] = Y, Y;
544
+ }), { refreshPanelAfterChanged: z, description: ee, isExpand: ce, parentPropertyID: ve } = j, Y = { propertyID: T, propertyName: M, propertyType: S, propertyValue: G, editor: E, visible: P, readonly: W, cascadeConfig: J, hideCascadeTitle: $, refreshPanelAfterChanged: z, description: ee, isExpand: ce, parentPropertyID: ve };
545
+ return g[T] = Y, Y;
546
546
  });
547
547
  }
548
- function s(m, g, p = {}) {
549
- const w = {}, k = e[m];
548
+ function s(y, g, m = {}) {
549
+ const w = {}, k = e[y];
550
550
  return k && k.categories ? Object.keys(k.categories).map((B) => {
551
- const b = k.categories[B], y = b == null ? void 0 : b.title, x = h(b.properties || {}, w, {}, p, g);
552
- return { categoryId: B, categoryName: y, properties: x };
551
+ const b = k.categories[B], p = b == null ? void 0 : b.title, F = h(b.properties || {}, w, {}, m, g);
552
+ return { categoryId: B, categoryName: p, properties: F };
553
553
  }) : [];
554
554
  }
555
- function l(m, g, p, w, k = "") {
556
- const E = g.$ref.schema, B = g.$ref.converter, b = p[E], y = b.type, x = n(b), F = {}, j = e[y];
555
+ function l(y, g, m, w, k = "") {
556
+ const O = g.$ref.schema, B = g.$ref.converter, b = m[O], p = b.type, F = n(b), T = {}, j = e[p];
557
557
  if (j && j.categories) {
558
- const R = j.categories[m], M = R == null ? void 0 : R.title;
559
- B && Object.keys(R.properties).forEach((O) => {
560
- R.properties[O].$converter = B;
558
+ const R = j.categories[y], M = R == null ? void 0 : R.title;
559
+ B && Object.keys(R.properties).forEach((E) => {
560
+ R.properties[E].$converter = B;
561
561
  });
562
- const T = (R == null ? void 0 : R.properties) || {}, S = h(T, F, x, b, w, k);
563
- return { categoryId: m, categoryName: M, properties: S };
564
- }
565
- return { categoryId: m, categoryName: "", properties: [] };
566
- }
567
- function f(m, g, p, w, k) {
568
- const E = m.type, B = n(m), b = {};
569
- let y = k || e[E];
570
- if (y && Object.keys(y).length === 0 && p && p.getPropConfig && (y = p.getPropConfig(w)), y && y.categories) {
571
- const x = [];
572
- return Object.keys(y.categories).map((F) => {
573
- const j = y.categories[F];
562
+ const S = (R == null ? void 0 : R.properties) || {}, x = h(S, T, F, b, w, k);
563
+ return { categoryId: y, categoryName: M, properties: x };
564
+ }
565
+ return { categoryId: y, categoryName: "", properties: [] };
566
+ }
567
+ function f(y, g, m, w, k) {
568
+ const O = y.type, B = n(y), b = {};
569
+ let p = k || e[O];
570
+ if (p && Object.keys(p).length === 0 && m && m.getPropConfig && (p = m.getPropConfig(w)), p && p.categories) {
571
+ const F = [];
572
+ return Object.keys(p.categories).map((T) => {
573
+ const j = p.categories[T];
574
574
  if (j.$ref) {
575
- x.push(l(F, j, m, g, w));
575
+ F.push(l(T, j, y, g, w));
576
576
  return;
577
577
  }
578
- const R = j == null ? void 0 : j.title, M = j == null ? void 0 : j.tabId, T = j == null ? void 0 : j.tabName, S = j == null ? void 0 : j.hide, O = j == null ? void 0 : j.hideTitle, P = h(j.properties || {}, b, B, m, g, w, j.$converter), { setPropertyRelates: H } = j, J = j == null ? void 0 : j.parentPropertyID;
579
- x.push({ categoryId: F, categoryName: R, tabId: M, tabName: T, hide: S, properties: P, hideTitle: O, setPropertyRelates: H, parentPropertyID: J });
580
- }), x;
578
+ const R = j == null ? void 0 : j.title, M = j == null ? void 0 : j.tabId, S = j == null ? void 0 : j.tabName, x = j == null ? void 0 : j.hide, E = j == null ? void 0 : j.hideTitle, P = h(j.properties || {}, b, B, y, g, w, j.$converter), { setPropertyRelates: W } = j, J = j == null ? void 0 : j.parentPropertyID;
579
+ F.push({ categoryId: T, categoryName: R, tabId: M, tabName: S, hide: x, properties: P, hideTitle: E, setPropertyRelates: W, parentPropertyID: J });
580
+ }), F;
581
581
  }
582
582
  return [];
583
583
  }
@@ -916,7 +916,7 @@ class Ci {
916
916
  return bi(t);
917
917
  }
918
918
  }
919
- const wi = "https://json-schema.org/draft/2020-12/schema", ki = "https://farris-design.gitee.io/modal.schema.json", xi = "modal", Si = "弹窗组件", Fi = "object", Ti = {
919
+ const wi = "https://json-schema.org/draft/2020-12/schema", ki = "https://farris-design.gitee.io/modal.schema.json", xi = "modal", Fi = "弹窗组件", Si = "object", Ti = {
920
920
  id: {
921
921
  description: "组件唯一标识",
922
922
  type: "string"
@@ -1034,8 +1034,8 @@ const wi = "https://json-schema.org/draft/2020-12/schema", ki = "https://farris-
1034
1034
  $schema: wi,
1035
1035
  $id: ki,
1036
1036
  title: xi,
1037
- description: Si,
1038
- type: Fi,
1037
+ description: Fi,
1038
+ type: Si,
1039
1039
  properties: Ti,
1040
1040
  required: Bi,
1041
1041
  events: Mi
@@ -1219,15 +1219,15 @@ class at {
1219
1219
  }
1220
1220
  }
1221
1221
  function Ii(e, t) {
1222
- const n = C(), a = C(), o = C(), i = C(), r = C(), u = C(), d = C(), c = C(), h = C(), s = C(), l = C(), f = C(e.resizeable), m = C(), g = C(e.draggable), p = C(!1);
1222
+ const n = C(), a = C(), o = C(), i = C(), r = C(), u = C(), d = C(), c = C(), h = C(), s = C(), l = C(), f = C(e.resizeable), y = C(), g = C(e.draggable), m = C(!1);
1223
1223
  function w() {
1224
1224
  const $ = a.value || document.body, I = window.getComputedStyle($);
1225
1225
  if (!I || !n.value)
1226
1226
  return;
1227
- const G = re.getTransformInfo(n.value), W = {};
1228
- d.value && (W.deltaL = n.value.offsetLeft - d.value.x, W.deltaT = n.value.offsetTop - d.value.y);
1227
+ const G = re.getTransformInfo(n.value), z = {};
1228
+ d.value && (z.deltaL = n.value.offsetLeft - d.value.x, z.deltaT = n.value.offsetTop - d.value.y);
1229
1229
  const ee = I.getPropertyValue("position");
1230
- W.width = $.clientWidth, W.height = $.clientHeight, W.pr = parseInt(I.getPropertyValue("padding-right"), 10), W.pb = parseInt(I.getPropertyValue("padding-bottom"), 10), W.position = I.getPropertyValue("position"), ee === "static" && ($.style.position = "relative"), W.translateX = G.x, W.translateY = G.y, s.value = W;
1230
+ z.width = $.clientWidth, z.height = $.clientHeight, z.pr = parseInt(I.getPropertyValue("padding-right"), 10), z.pb = parseInt(I.getPropertyValue("padding-bottom"), 10), z.position = I.getPropertyValue("position"), ee === "static" && ($.style.position = "relative"), z.translateX = G.x, z.translateY = G.y, s.value = z;
1231
1231
  }
1232
1232
  function k($) {
1233
1233
  if (n.value) {
@@ -1241,11 +1241,11 @@ function Ii(e, t) {
1241
1241
  };
1242
1242
  }
1243
1243
  }
1244
- function E() {
1245
- var $, I, G, W;
1244
+ function O() {
1245
+ var $, I, G, z;
1246
1246
  if (n.value) {
1247
1247
  const ee = n.value;
1248
- c.value && ((c.value.n || c.value.s) && (($ = u.value) != null && $.height) && (ee.style.height = u.value.height + "px"), (c.value.w || c.value.e) && ((I = u.value) != null && I.width) && (ee.style.width = u.value.width + "px"), d.value && ((G = d.value) != null && G.x && (ee.style.left = d.value.x + "px"), (W = d.value) != null && W.y && (ee.style.top = d.value.y + "px")));
1248
+ c.value && ((c.value.n || c.value.s) && (($ = u.value) != null && $.height) && (ee.style.height = u.value.height + "px"), (c.value.w || c.value.e) && ((I = u.value) != null && I.width) && (ee.style.width = u.value.width + "px"), d.value && ((G = d.value) != null && G.x && (ee.style.left = d.value.x + "px"), (z = d.value) != null && z.y && (ee.style.top = d.value.y + "px")));
1249
1249
  }
1250
1250
  }
1251
1251
  function B() {
@@ -1261,26 +1261,26 @@ function Ii(e, t) {
1261
1261
  }
1262
1262
  }
1263
1263
  }
1264
- function y($) {
1264
+ function p($) {
1265
1265
  if (!o.value || !i.value || !r.value || !c.value)
1266
1266
  return;
1267
1267
  $.subtract(o.value);
1268
1268
  const I = $.x, G = $.y;
1269
- c.value.n ? (d.value.y = r.value.y + G, u.value.height = i.value.height - G) : c.value.s && (u.value.height = i.value.height + G), c.value.e ? u.value.width = i.value.width + I : c.value.w && (u.value.width = i.value.width - I, d.value.x = r.value.x + I), b(), B(), E();
1269
+ c.value.n ? (d.value.y = r.value.y + G, u.value.height = i.value.height - G) : c.value.s && (u.value.height = i.value.height + G), c.value.e ? u.value.width = i.value.width + I : c.value.w && (u.value.width = i.value.width - I, d.value.x = r.value.x + I), b(), B(), O();
1270
1270
  }
1271
- function x($) {
1271
+ function F($) {
1272
1272
  if (!h.value)
1273
1273
  return;
1274
1274
  const I = re.fromEvent($);
1275
- I && y(I);
1275
+ I && p(I);
1276
1276
  }
1277
- function F() {
1277
+ function T() {
1278
1278
  if (n.value) {
1279
1279
  const {
1280
1280
  width: $,
1281
1281
  height: I,
1282
1282
  x: G,
1283
- y: W
1283
+ y: z
1284
1284
  } = n.value.getBoundingClientRect(), ee = re.getTransformInfo(n.value);
1285
1285
  return {
1286
1286
  size: {
@@ -1289,7 +1289,7 @@ function Ii(e, t) {
1289
1289
  },
1290
1290
  position: {
1291
1291
  x: G - ee.x,
1292
- y: W - ee.y
1292
+ y: z - ee.y
1293
1293
  }
1294
1294
  };
1295
1295
  }
@@ -1297,18 +1297,18 @@ function Ii(e, t) {
1297
1297
  }
1298
1298
  function j($) {
1299
1299
  if (n.value) {
1300
- const I = F();
1300
+ const I = T();
1301
1301
  l.value = I;
1302
1302
  }
1303
- o.value = void 0, i.value = null, r.value = null, u.value = null, d.value = null, c.value = null, h.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", j);
1303
+ o.value = void 0, i.value = null, r.value = null, u.value = null, d.value = null, c.value = null, h.value = null, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", j);
1304
1304
  }
1305
1305
  function R() {
1306
- document.addEventListener("mousemove", x), document.addEventListener("mouseup", j);
1306
+ document.addEventListener("mousemove", F), document.addEventListener("mouseup", j);
1307
1307
  }
1308
1308
  function M($) {
1309
1309
  $ instanceof MouseEvent && $.button === 2 || g.value && (document.body.click(), $.stopPropagation(), $.preventDefault(), o.value = re.fromEvent($), h.value = $.target, k($), R());
1310
1310
  }
1311
- function T($) {
1311
+ function S($) {
1312
1312
  return n.value = $, f.value && v(it, null, [v("div", {
1313
1313
  class: "fv-resizable-handle fv-resizable-n",
1314
1314
  type: "n",
@@ -1343,33 +1343,33 @@ function Ii(e, t) {
1343
1343
  onMousedown: (I) => M(I)
1344
1344
  }, null)]);
1345
1345
  }
1346
- function S($ = !0) {
1346
+ function x($ = !0) {
1347
1347
  document.body.click();
1348
- const I = a.value || document.body, G = at.getCurrent(I), W = n.value;
1349
- $ && W && (m.value = F(), m.value.transform = W.style.transform), G && W && (u.value = G, u.value.height -= 14, u.value.width -= 14, W.style.height = u.value.height + "px", W.style.width = u.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", l.value = {
1348
+ const I = a.value || document.body, G = at.getCurrent(I), z = n.value;
1349
+ $ && z && (y.value = T(), y.value.transform = z.style.transform), G && z && (u.value = G, u.value.height -= 14, u.value.width -= 14, z.style.height = u.value.height + "px", z.style.width = u.value.width + "px", z.style.left = "7px", z.style.top = "7px", z.style.transform = "", l.value = {
1350
1350
  size: u.value,
1351
1351
  position: {
1352
1352
  x: 0,
1353
1353
  y: 0
1354
1354
  }
1355
- }, g.value = !1, p.value = !0);
1355
+ }, g.value = !1, m.value = !0);
1356
1356
  }
1357
- function O() {
1357
+ function E() {
1358
1358
  var $, I;
1359
- if (document.body.click(), m.value) {
1359
+ if (document.body.click(), y.value) {
1360
1360
  const G = {
1361
- width: m.value.size.width || 0,
1362
- height: m.value.size.height || 0
1363
- }, W = {
1361
+ width: y.value.size.width || 0,
1362
+ height: y.value.size.height || 0
1363
+ }, z = {
1364
1364
  x: (window.innerWidth - G.width) / 2,
1365
1365
  y: (window.innerHeight - G.height) / 2
1366
1366
  };
1367
- ($ = u.value) == null || $.set(G), (I = d.value) == null || I.set(W);
1367
+ ($ = u.value) == null || $.set(G), (I = d.value) == null || I.set(z);
1368
1368
  const ee = n.value;
1369
- ee.style.height = G.height + "px", ee.style.width = G.width + "px", ee.style.left = `${W.x}px`, ee.style.top = `${W.y}px`, ee.style.transform = "", l.value = {
1369
+ ee.style.height = G.height + "px", ee.style.width = G.width + "px", ee.style.left = `${z.x}px`, ee.style.top = `${z.y}px`, ee.style.transform = "", l.value = {
1370
1370
  size: G,
1371
- position: W
1372
- }, g.value = e.draggable, p.value = !1;
1371
+ position: z
1372
+ }, g.value = e.draggable, m.value = !1;
1373
1373
  }
1374
1374
  }
1375
1375
  function P() {
@@ -1384,104 +1384,104 @@ function Ii(e, t) {
1384
1384
  }
1385
1385
  }
1386
1386
  }
1387
- function H() {
1387
+ function W() {
1388
1388
  const $ = () => {
1389
- p.value ? S(!1) : P(), document.body.click();
1389
+ m.value ? x(!1) : P(), document.body.click();
1390
1390
  };
1391
1391
  return window.addEventListener("resize", $), () => {
1392
1392
  window.removeEventListener("resize", $);
1393
1393
  };
1394
1394
  }
1395
- const J = H();
1395
+ const J = W();
1396
1396
  return {
1397
- renderResizeBar: T,
1397
+ renderResizeBar: S,
1398
1398
  boundingElement: a,
1399
1399
  resizedEventParam: l,
1400
- maximize: S,
1401
- restore: O,
1400
+ maximize: x,
1401
+ restore: E,
1402
1402
  allowDrag: g,
1403
- isMaximized: p,
1403
+ isMaximized: m,
1404
1404
  unWindowResizeHandle: J,
1405
1405
  moveToCenter: P
1406
1406
  };
1407
1407
  }
1408
1408
  function Ri(e, t, n) {
1409
1409
  const a = C(), o = C(e.draggable), i = C(e.lockAxis), r = C(), u = C(), d = C(!1), c = C(new re(0, 0)), h = C(new re(0, 0)), s = C(new re(0, 0)), l = C(new re(0, 0));
1410
- Z(() => n.value, (x) => {
1411
- r.value.style.cursor = x ? "move" : "default";
1410
+ Z(() => n.value, (F) => {
1411
+ r.value.style.cursor = F ? "move" : "default";
1412
1412
  });
1413
- function f(x, F) {
1414
- if (F.tagName === "BUTTON")
1413
+ function f(F, T) {
1414
+ if (T.tagName === "BUTTON")
1415
1415
  return !1;
1416
- if (F === x)
1416
+ if (T === F)
1417
1417
  return !0;
1418
- for (const j in F.children)
1419
- if (Object.prototype.hasOwnProperty.call(F.children, j) && f(x, F.children[j]))
1418
+ for (const j in T.children)
1419
+ if (Object.prototype.hasOwnProperty.call(T.children, j) && f(F, T.children[j]))
1420
1420
  return !0;
1421
1421
  return !1;
1422
1422
  }
1423
- function m() {
1423
+ function y() {
1424
1424
  var R, M;
1425
- let x = s.value.x + h.value.x, F = s.value.y + h.value.y;
1426
- i.value === "x" ? (x = ((R = c.value) == null ? void 0 : R.x) || 0, s.value.x = 0) : i.value === "y" && (F = ((M = c.value) == null ? void 0 : M.y) || 0, s.value.y = 0);
1427
- const j = `translate3d(${Math.round(x)}px, ${Math.round(F)}px, 0px)`;
1428
- a.value && (a.value.style.transform = j), l.value.x = x, l.value.y = F;
1425
+ let F = s.value.x + h.value.x, T = s.value.y + h.value.y;
1426
+ i.value === "x" ? (F = ((R = c.value) == null ? void 0 : R.x) || 0, s.value.x = 0) : i.value === "y" && (T = ((M = c.value) == null ? void 0 : M.y) || 0, s.value.y = 0);
1427
+ const j = `translate3d(${Math.round(F)}px, ${Math.round(T)}px, 0px)`;
1428
+ a.value && (a.value.style.transform = j), l.value.x = F, l.value.y = T;
1429
1429
  }
1430
1430
  function g() {
1431
1431
  if (!u.value || !a.value)
1432
1432
  return null;
1433
- const x = u.value.getBoundingClientRect(), F = a.value.getBoundingClientRect(), j = {
1434
- top: x.top < F.top,
1435
- right: x.right > F.right,
1436
- bottom: x.bottom > F.bottom,
1437
- left: x.left < F.left
1433
+ const F = u.value.getBoundingClientRect(), T = a.value.getBoundingClientRect(), j = {
1434
+ top: F.top < T.top,
1435
+ right: F.right > T.right,
1436
+ bottom: F.bottom > T.bottom,
1437
+ left: F.left < T.left
1438
1438
  };
1439
- return j.top || (s.value.y -= F.top - x.top), j.bottom || (s.value.y -= F.bottom - x.bottom), j.right || (s.value.x -= F.right - x.right), j.left || (s.value.x -= F.left - x.left), m(), j;
1439
+ return j.top || (s.value.y -= T.top - F.top), j.bottom || (s.value.y -= T.bottom - F.bottom), j.right || (s.value.x -= T.right - F.right), j.left || (s.value.x -= T.left - F.left), y(), j;
1440
1440
  }
1441
- function p(x) {
1442
- x && (c.value && x.subtract(c.value), s.value.set(x), m(), g());
1441
+ function m(F) {
1442
+ F && (c.value && F.subtract(c.value), s.value.set(F), y(), g());
1443
1443
  }
1444
- function w(x) {
1445
- d.value && o.value && (x.stopPropagation(), x.preventDefault(), p(re.fromEvent(x, r.value)));
1444
+ function w(F) {
1445
+ d.value && o.value && (F.stopPropagation(), F.preventDefault(), m(re.fromEvent(F, r.value)));
1446
1446
  }
1447
1447
  function k() {
1448
- var x;
1449
- d.value && (d.value = !1, h.value.add(s.value), s.value.reset(), (x = a.value) == null || x.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", k));
1448
+ var F;
1449
+ d.value && (d.value = !1, h.value.add(s.value), s.value.reset(), (F = a.value) == null || F.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", k));
1450
1450
  }
1451
- function E() {
1451
+ function O() {
1452
1452
  !d.value && r.value && (d.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", k));
1453
1453
  }
1454
1454
  function B() {
1455
1455
  if (a.value) {
1456
- const x = re.getTransformInfo(a.value);
1457
- h.value.set(x);
1456
+ const F = re.getTransformInfo(a.value);
1457
+ h.value.set(F);
1458
1458
  return;
1459
1459
  }
1460
1460
  h.value.reset();
1461
1461
  }
1462
- function b(x) {
1463
- if (!n.value || x instanceof MouseEvent && x.button === 2)
1462
+ function b(F) {
1463
+ if (!n.value || F instanceof MouseEvent && F.button === 2)
1464
1464
  return;
1465
- const F = x.target || x.srcElement;
1466
- r.value !== void 0 && F && !f(F, r.value) || o.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), c.value = re.fromEvent(x, a.value), B(), E());
1465
+ const T = F.target || F.srcElement;
1466
+ r.value !== void 0 && T && !f(T, r.value) || o.value !== !1 && (document.body.click(), F.stopPropagation(), F.preventDefault(), c.value = re.fromEvent(F, a.value), B(), O());
1467
1467
  }
1468
- function y(x, F, j) {
1469
- if (o.value && F) {
1470
- if (x)
1471
- r.value = x;
1468
+ function p(F, T, j) {
1469
+ if (o.value && T) {
1470
+ if (F)
1471
+ r.value = F;
1472
1472
  else if (e.dragHandle) {
1473
1473
  if (e.dragHandle instanceof HTMLElement)
1474
1474
  r.value = e.dragHandle;
1475
1475
  else if (typeof e.dragHandle == "string") {
1476
- const R = F.querySelector(e.dragHandle);
1476
+ const R = T.querySelector(e.dragHandle);
1477
1477
  R && (r.value = R);
1478
1478
  }
1479
1479
  }
1480
- a.value = F, u.value = j, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", b)) : o.value = !1;
1480
+ a.value = T, u.value = j, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", b)) : o.value = !1;
1481
1481
  }
1482
1482
  }
1483
1483
  return {
1484
- registerDraggle: y,
1484
+ registerDraggle: p,
1485
1485
  resetTranslate: B
1486
1486
  };
1487
1487
  }
@@ -1518,12 +1518,12 @@ const ot = /* @__PURE__ */ ae({
1518
1518
  props: Yn,
1519
1519
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
1520
1520
  setup(e, t) {
1521
- const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), i = C(""), r = C(e.class), u = C(e.fitContent), d = C(e.showHeader), c = C(""), h = C(e.showCloseButton), s = C(e.showMaxButton), l = C(!1), f = C(e.dialogType), m = C(e.src), g = C(""), p = C(e.showButtons), w = C(e.title), k = C(e.containment || null), E = C(), {
1521
+ const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), i = C(""), r = C(e.class), u = C(e.fitContent), d = C(e.showHeader), c = C(""), h = C(e.showCloseButton), s = C(e.showMaxButton), l = C(!1), f = C(e.dialogType), y = C(e.src), g = C(""), m = C(e.showButtons), w = C(e.title), k = C(e.containment || null), O = C(), {
1522
1522
  t: B
1523
1523
  } = xt();
1524
1524
  w.value === "错误提示" && (w.value = B("messageBox.errorTitle"));
1525
1525
  const b = C(!1);
1526
- function y(V, Q) {
1526
+ function p(V, Q) {
1527
1527
  const se = Q ? "accept" : "cancel";
1528
1528
  Promise.resolve().then(() => {
1529
1529
  var ue;
@@ -1534,29 +1534,29 @@ const ot = /* @__PURE__ */ ae({
1534
1534
  ue && (o.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", V));
1535
1535
  });
1536
1536
  }
1537
- const x = [{
1537
+ const F = [{
1538
1538
  name: "cancel",
1539
1539
  text: B("messageBox.cancel") || "取消",
1540
1540
  class: "btn btn-secondary",
1541
1541
  handle: (V) => {
1542
- y(V, !1);
1542
+ p(V, !1);
1543
1543
  }
1544
1544
  }, {
1545
1545
  name: "accept",
1546
1546
  text: B("messageBox.ok") || "确定",
1547
1547
  class: "btn btn-primary",
1548
1548
  handle: (V) => {
1549
- y(V, !0);
1549
+ p(V, !0);
1550
1550
  }
1551
- }], F = C(e.buttons && e.buttons.length ? e.buttons : x), j = N(() => !!c.value), R = N(() => !!p.value && !!F.value), M = C(), T = C(), S = C(!1), {
1552
- renderResizeBar: O,
1551
+ }], T = C(e.buttons && e.buttons.length ? e.buttons : F), j = N(() => !!c.value), R = N(() => !!m.value && !!T.value), M = C(), S = C(), x = C(!1), {
1552
+ renderResizeBar: E,
1553
1553
  maximize: P,
1554
- restore: H,
1554
+ restore: W,
1555
1555
  boundingElement: J,
1556
1556
  resizedEventParam: $,
1557
1557
  allowDrag: I,
1558
1558
  unWindowResizeHandle: G,
1559
- moveToCenter: W
1559
+ moveToCenter: z
1560
1560
  } = Ii(e), {
1561
1561
  registerDraggle: ee
1562
1562
  } = Ri(e, t, I);
@@ -1565,24 +1565,24 @@ const ot = /* @__PURE__ */ ae({
1565
1565
  }
1566
1566
  function ve() {
1567
1567
  const V = document.querySelectorAll(".farris-modal").length;
1568
- (!V || V - 1 <= 0) && document.body.classList.remove("modal-open"), E.value && E.value.classList.remove("show");
1568
+ (!V || V - 1 <= 0) && document.body.classList.remove("modal-open"), O.value && O.value.classList.remove("show");
1569
1569
  }
1570
1570
  Z(() => e.title, (V, Q) => {
1571
1571
  V !== Q && (w.value = V);
1572
1572
  }), Z(() => e.modelValue, (V, Q) => {
1573
1573
  V !== Q && (o.value = V, o.value && e.draggable && _e(() => {
1574
- T.value && !k.value && (k.value = T.value.parentElement, J.value = k.value, ee(M.value, T.value, J.value), W());
1575
- }), V || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (S.value = !1, I.value = e.draggable);
1574
+ S.value && !k.value && (k.value = S.value.parentElement, J.value = k.value, ee(M.value, S.value, J.value), z());
1575
+ }), V || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (x.value = !1, I.value = e.draggable);
1576
1576
  }), Z(() => e.showHeader, (V, Q) => {
1577
1577
  V !== Q && (d.value = V);
1578
1578
  }), Z(() => e.showButtons, (V, Q) => {
1579
- V !== Q && (p.value = V);
1579
+ V !== Q && (m.value = V);
1580
1580
  }), Z(() => $.value, (V, Q) => {
1581
1581
  const se = V || {}, ue = Q || {};
1582
1582
  JSON.stringify(se) !== JSON.stringify(ue) && t.emit("resize", {
1583
1583
  newSize: V,
1584
1584
  oldSize: Q,
1585
- isMaximized: S.value
1585
+ isMaximized: x.value
1586
1586
  });
1587
1587
  });
1588
1588
  const Y = N(() => (o.value && document.body.classList.add("modal-open"), o.value)), ie = N(() => {
@@ -1626,7 +1626,7 @@ const ot = /* @__PURE__ */ ae({
1626
1626
  }), Le = N(() => ({
1627
1627
  "f-icon": !0,
1628
1628
  modal_maximize: !0,
1629
- modalrevert: S.value
1629
+ modalrevert: x.value
1630
1630
  })), Be = N(() => ({
1631
1631
  "modal-body": !0,
1632
1632
  "f-utils-flex-column": f.value === "iframe",
@@ -1644,31 +1644,31 @@ const ot = /* @__PURE__ */ ae({
1644
1644
  return Object.assign(V, Q);
1645
1645
  });
1646
1646
  function Qe(V) {
1647
- if (V == null || V.stopPropagation(), S.value) {
1648
- S.value = !1, H();
1647
+ if (V == null || V.stopPropagation(), x.value) {
1648
+ x.value = !1, W();
1649
1649
  return;
1650
1650
  }
1651
- P(), S.value = !0;
1651
+ P(), x.value = !0;
1652
1652
  }
1653
1653
  async function fe(V, Q) {
1654
1654
  V.handle && await V.handle(Q, V) && t.emit("closed", Q);
1655
1655
  }
1656
1656
  function pt(V) {
1657
- V.width && (n.value = V.width), V.height && (a.value = V.height), V.buttons && (F.value = V.buttons), V.title && (w.value = V.title);
1657
+ V.width && (n.value = V.width), V.height && (a.value = V.height), V.buttons && (T.value = V.buttons), V.title && (w.value = V.title);
1658
1658
  }
1659
1659
  let Me = null, $e = null;
1660
1660
  Pa(() => {
1661
1661
  b.value = ce();
1662
1662
  }), be(() => {
1663
- T.value && !k.value && (k.value = T.value.parentElement, J.value = k.value, ee(M.value, T.value, J.value)), Y.value && document.body.classList.add("modal-open"), Me = Vi(e, t), $e = Li(e, t);
1663
+ S.value && !k.value && (k.value = S.value.parentElement, J.value = k.value, ee(M.value, S.value, J.value)), Y.value && document.body.classList.add("modal-open"), Me = Vi(e, t), $e = Li(e, t);
1664
1664
  }), kt(() => {
1665
1665
  G && G(), Me && Me.remove(), $e && $e.remove();
1666
1666
  }), t.expose({
1667
- modalElementRef: T,
1667
+ modalElementRef: S,
1668
1668
  updateModalOptions: pt,
1669
- close: y,
1669
+ close: p,
1670
1670
  maxDialog: Qe,
1671
- isMaximized: S
1671
+ isMaximized: x
1672
1672
  });
1673
1673
  function Ae() {
1674
1674
  return v("ul", null, [l.value && v("li", {
@@ -1683,7 +1683,7 @@ const ot = /* @__PURE__ */ ae({
1683
1683
  class: Le.value
1684
1684
  }, null)]), h.value && v("li", {
1685
1685
  class: "f-btn-icon f-bare",
1686
- onClick: (V) => y(V, !1),
1686
+ onClick: (V) => p(V, !1),
1687
1687
  style: "pointer-events: auto;"
1688
1688
  }, [v("span", {
1689
1689
  class: "f-icon modal_close"
@@ -1693,7 +1693,7 @@ const ot = /* @__PURE__ */ ae({
1693
1693
  return v("div", {
1694
1694
  class: "modal-footer",
1695
1695
  style: Je.value
1696
- }, [F.value && F.value.map((V) => {
1696
+ }, [T.value && T.value.map((V) => {
1697
1697
  const Q = C(V.disabled);
1698
1698
  return v("button", {
1699
1699
  name: V.name,
@@ -1729,9 +1729,9 @@ const ot = /* @__PURE__ */ ae({
1729
1729
  }
1730
1730
  function Ne(V) {
1731
1731
  if (V.stopPropagation(), e.allowClickMaskToClose) {
1732
- if (V.target !== E.value)
1732
+ if (V.target !== O.value)
1733
1733
  return;
1734
- y(V, !1);
1734
+ p(V, !1);
1735
1735
  }
1736
1736
  }
1737
1737
  function ze() {
@@ -1740,7 +1740,7 @@ const ot = /* @__PURE__ */ ae({
1740
1740
  id: i.value,
1741
1741
  class: de.value,
1742
1742
  style: ne.value,
1743
- ref: T
1743
+ ref: S
1744
1744
  }, [v("div", {
1745
1745
  class: oe.value
1746
1746
  }, [d.value && mt(), v("div", {
@@ -1750,8 +1750,8 @@ const ot = /* @__PURE__ */ ae({
1750
1750
  class: "f-utils-fill",
1751
1751
  width: "100%",
1752
1752
  frameborder: "0",
1753
- src: m.value
1754
- }, null)]), Ze()]), !u.value && T.value && !S.value && O(T.value)]);
1753
+ src: y.value
1754
+ }, null)]), Ze()]), !u.value && S.value && !x.value && E(S.value)]);
1755
1755
  }
1756
1756
  function st(V) {
1757
1757
  return V || "body";
@@ -1764,7 +1764,7 @@ const ot = /* @__PURE__ */ ae({
1764
1764
  appear: !0
1765
1765
  }, {
1766
1766
  default: () => [v("div", {
1767
- ref: E,
1767
+ ref: O,
1768
1768
  class: ie.value,
1769
1769
  style: _.value,
1770
1770
  onClick: Ne
@@ -1789,11 +1789,11 @@ function $i(e) {
1789
1789
  });
1790
1790
  const i = C(), r = C(e.class || ""), u = C(!!e.showButtons), d = C(!!e.showHeader), c = C(e.showCloseButton == null ? !0 : e.showCloseButton), h = C(!0), s = C(e.title || ""), l = e.acceptCallback || (() => {
1791
1791
  }), f = e.rejectCallback || (() => {
1792
- }), m = e.closedCallback || ((E) => {
1793
- }), g = e.resizeHandle || ((E) => {
1794
- }), p = e.stopMoveHandle || ((E) => {
1795
- }), w = Jn(e), k = (E) => {
1796
- h.value = !1, n.unmount(), m(E);
1792
+ }), y = e.closedCallback || ((O) => {
1793
+ }), g = e.resizeHandle || ((O) => {
1794
+ }), m = e.stopMoveHandle || ((O) => {
1795
+ }), w = Jn(e), k = (O) => {
1796
+ h.value = !1, n.unmount(), y(O);
1797
1797
  };
1798
1798
  return be(() => {
1799
1799
  }), o.expose({
@@ -1802,7 +1802,7 @@ function $i(e) {
1802
1802
  ref: i,
1803
1803
  class: r.value,
1804
1804
  modelValue: h.value,
1805
- "onUpdate:modelValue": (E) => h.value = E,
1805
+ "onUpdate:modelValue": (O) => h.value = O,
1806
1806
  title: s.value,
1807
1807
  width: e.width,
1808
1808
  height: e.height,
@@ -1816,7 +1816,7 @@ function $i(e) {
1816
1816
  fitContent: e.fitContent == null ? !0 : e.fitContent,
1817
1817
  onClosed: k,
1818
1818
  onResize: g,
1819
- onStopMove: p
1819
+ onStopMove: m
1820
1820
  }, {
1821
1821
  default: () => [w && w(n)]
1822
1822
  });
@@ -1871,31 +1871,31 @@ class Qn {
1871
1871
  showHeader: !0
1872
1872
  }, t)), o = C(!0), i = a.value.acceptCallback || (() => {
1873
1873
  }), r = a.value.rejectCallback || (() => {
1874
- }), u = a.value.closedCallback || ((b, y) => {
1874
+ }), u = a.value.closedCallback || ((b, p) => {
1875
1875
  }), d = a.value.resizeHandle || ((b) => {
1876
1876
  }), c = t.stopMoveHandle || ((b) => {
1877
1877
  });
1878
1878
  let h;
1879
1879
  const s = Jn(a.value), l = (b) => {
1880
- var x;
1880
+ var F;
1881
1881
  o.value = !1;
1882
- const y = (x = b == null ? void 0 : b.target) == null ? void 0 : x.classList.contains("modal_close");
1883
- u(b, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
1882
+ const p = (F = b == null ? void 0 : b.target) == null ? void 0 : F.classList.contains("modal_close");
1883
+ u(b, this.isUseEscCloseModal.value ? "esc" : p ? "icon" : "button");
1884
1884
  }, f = (b) => {
1885
1885
  l(b), h && _e(() => {
1886
1886
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Jt(null, n), h = null, this.modalRef.value = null, this.modalRefs) {
1887
- const y = Object.keys(this.modalRefs).map((x) => Number(x));
1888
- y.length > 0 ? this.activeModalIndex.value = Math.max(...y) : this.activeModalIndex.value = 0;
1887
+ const p = Object.keys(this.modalRefs).map((F) => Number(F));
1888
+ p.length > 0 ? this.activeModalIndex.value = Math.max(...p) : this.activeModalIndex.value = 0;
1889
1889
  }
1890
1890
  this.isUseEscCloseModal.value = !1;
1891
1891
  });
1892
- }, m = (b) => {
1893
- var y;
1894
- this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((y = this.activeModalInstance.value) == null || y.close(b == null ? void 0 : b.event));
1892
+ }, y = (b) => {
1893
+ var p;
1894
+ this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((p = this.activeModalInstance.value) == null || p.close(b == null ? void 0 : b.event));
1895
1895
  }, {
1896
1896
  width: g,
1897
- height: p
1898
- } = a.value, w = this.adaptToWindow(g || 500, p || 320);
1897
+ height: m
1898
+ } = a.value, w = this.adaptToWindow(g || 500, m || 320);
1899
1899
  Object.assign(a.value, w);
1900
1900
  const k = () => v(ot, ft({
1901
1901
  ref: this.modalRef,
@@ -1906,14 +1906,14 @@ class Qn {
1906
1906
  onCancel: r,
1907
1907
  onClosed: f,
1908
1908
  onResize: d,
1909
- onEsc: m,
1909
+ onEsc: y,
1910
1910
  onStopMove: c
1911
1911
  }), {
1912
1912
  default: () => [s && s(this.app)]
1913
1913
  });
1914
1914
  return h = ((b) => {
1915
- const y = ja(k, b);
1916
- return y.appContext = this.appContext, Jt(y, n), y;
1915
+ const p = ja(k, b);
1916
+ return p.appContext = this.appContext, Jt(p, n), p;
1917
1917
  })({
1918
1918
  ...a.value
1919
1919
  // 'onUpdate:modelValue': onUpdateModelValue,
@@ -2158,9 +2158,9 @@ var Xi = { exports: {} };
2158
2158
  throw l.code = "MODULE_NOT_FOUND", l;
2159
2159
  }
2160
2160
  var f = o[c] = { exports: {} };
2161
- a[c][0].call(f.exports, function(m) {
2162
- var g = a[c][1][m];
2163
- return r(g || m);
2161
+ a[c][0].call(f.exports, function(y) {
2162
+ var g = a[c][1][y];
2163
+ return r(g || y);
2164
2164
  }, f, f.exports, n, a, o, i);
2165
2165
  }
2166
2166
  return o[c].exports;
@@ -2191,10 +2191,10 @@ var Xi = { exports: {} };
2191
2191
  2: [function(n, a, o) {
2192
2192
  (function(i) {
2193
2193
  var r = n("contra/emitter"), u = n("crossvent"), d = n("./classes"), c = document, h = c.documentElement;
2194
- function s(M, T) {
2195
- var S = arguments.length;
2196
- S === 1 && Array.isArray(M) === !1 && (T = M, M = []);
2197
- var O, P, H, J, $, I, G, W, ee, ce = null, ve, Y, ie = !1, de = 0, ne, _ = T || {};
2194
+ function s(M, S) {
2195
+ var x = arguments.length;
2196
+ x === 1 && Array.isArray(M) === !1 && (S = M, M = []);
2197
+ var E, P, W, J, $, I, G, z, ee, ce = null, ve, Y, ie = !1, de = 0, ne, _ = S || {};
2198
2198
  _.moves === void 0 && (_.moves = k), _.accepts === void 0 && (_.accepts = k), _.invalid === void 0 && (_.invalid = mt), _.containers === void 0 && (_.containers = M || []), _.isContainer === void 0 && (_.isContainer = w), _.copy === void 0 && (_.copy = !1), _.copySortSource === void 0 && (_.copySortSource = !1), _.revertOnSpill === void 0 && (_.revertOnSpill = !1), _.removeOnSpill === void 0 && (_.removeOnSpill = !1), _.direction === void 0 && (_.direction = "vertical"), _.ignoreInputTextSelection === void 0 && (_.ignoreInputTextSelection = !0), _.mirrorContainer === void 0 && (_.mirrorContainer = c.body);
2199
2199
  var oe = r({
2200
2200
  containers: _.containers,
@@ -2212,11 +2212,11 @@ var Xi = { exports: {} };
2212
2212
  }
2213
2213
  function Le(D) {
2214
2214
  var A = D ? "remove" : "add";
2215
- m(h, A, "mousedown", fe), m(h, A, "mouseup", ze);
2215
+ y(h, A, "mousedown", fe), y(h, A, "mouseup", ze);
2216
2216
  }
2217
2217
  function Be(D) {
2218
2218
  var A = D ? "remove" : "add";
2219
- m(h, A, "mousemove", pt);
2219
+ y(h, A, "mousemove", pt);
2220
2220
  }
2221
2221
  function rt(D) {
2222
2222
  var A = D ? "remove" : "add";
@@ -2232,8 +2232,8 @@ var Xi = { exports: {} };
2232
2232
  J = D.clientX, $ = D.clientY;
2233
2233
  var A = g(D) !== 1 || D.metaKey || D.ctrlKey;
2234
2234
  if (!A) {
2235
- var z = D.target, U = Me(z);
2236
- U && (ve = U, Be(), D.type === "mousedown" && (y(z) ? z.focus() : D.preventDefault()));
2235
+ var H = D.target, U = Me(H);
2236
+ U && (ve = U, Be(), D.type === "mousedown" && (p(H) ? H.focus() : D.preventDefault()));
2237
2237
  }
2238
2238
  }
2239
2239
  function pt(D) {
@@ -2244,27 +2244,27 @@ var Xi = { exports: {} };
2244
2244
  }
2245
2245
  if (!(D.clientX !== void 0 && Math.abs(D.clientX - J) <= (_.slideFactorX || 0) && D.clientY !== void 0 && Math.abs(D.clientY - $) <= (_.slideFactorY || 0))) {
2246
2246
  if (_.ignoreInputTextSelection) {
2247
- var A = R("clientX", D) || 0, z = R("clientY", D) || 0, U = c.elementFromPoint(A, z);
2248
- if (y(U))
2247
+ var A = R("clientX", D) || 0, H = R("clientY", D) || 0, U = c.elementFromPoint(A, H);
2248
+ if (p(U))
2249
2249
  return;
2250
2250
  }
2251
2251
  var K = ve;
2252
- Be(!0), rt(), Ze(), He(K), d.add(W || H, "gu-transit"), zt(), Ht(), de = 0, yt(D);
2252
+ Be(!0), rt(), Ze(), He(K), d.add(z || W, "gu-transit"), zt(), Ht(), de = 0, yt(D);
2253
2253
  }
2254
2254
  }
2255
2255
  }
2256
2256
  function Me(D) {
2257
- if (!(oe.dragging && O) && !Xe(D)) {
2257
+ if (!(oe.dragging && E) && !Xe(D)) {
2258
2258
  for (var A = D; b(D) && Xe(b(D)) === !1; )
2259
2259
  if (_.invalid(D, A) || (D = b(D), !D))
2260
2260
  return;
2261
- var z = b(D);
2262
- if (z && !_.invalid(D, A)) {
2263
- var U = _.moves(D, z, A, F(D));
2261
+ var H = b(D);
2262
+ if (H && !_.invalid(D, A)) {
2263
+ var U = _.moves(D, H, A, T(D));
2264
2264
  if (U)
2265
2265
  return {
2266
2266
  item: D,
2267
- source: z
2267
+ source: H
2268
2268
  };
2269
2269
  }
2270
2270
  }
@@ -2277,14 +2277,14 @@ var Xi = { exports: {} };
2277
2277
  A && He(A);
2278
2278
  }
2279
2279
  function He(D) {
2280
- Xt(D.item, D.source) && (W = D.item.cloneNode(!0), oe.emit("cloned", W, D.item, "copy")), P = D.source, H = D.item, I = G = F(D.item), oe.dragging = !0, oe.emit("drag", H, P);
2280
+ Xt(D.item, D.source) && (z = D.item.cloneNode(!0), oe.emit("cloned", z, D.item, "copy")), P = D.source, W = D.item, I = G = T(D.item), oe.dragging = !0, oe.emit("drag", W, P);
2281
2281
  }
2282
2282
  function mt() {
2283
2283
  return !1;
2284
2284
  }
2285
2285
  function Ze() {
2286
2286
  if (oe.dragging) {
2287
- var D = W || H;
2287
+ var D = z || W;
2288
2288
  st(D, b(D));
2289
2289
  }
2290
2290
  }
@@ -2293,35 +2293,35 @@ var Xi = { exports: {} };
2293
2293
  }
2294
2294
  function ze(D) {
2295
2295
  if (Ne(), !!oe.dragging) {
2296
- var A = W || H, z = R("clientX", D) || 0, U = R("clientY", D) || 0, K = p(O, z, U), te = We(K, z, U);
2297
- te && (W && _.copySortSource || !W || te !== P) ? st(A, te) : _.removeOnSpill ? V() : Q();
2296
+ var A = z || W, H = R("clientX", D) || 0, U = R("clientY", D) || 0, K = m(E, H, U), te = We(K, H, U);
2297
+ te && (z && _.copySortSource || !z || te !== P) ? st(A, te) : _.removeOnSpill ? V() : Q();
2298
2298
  }
2299
2299
  }
2300
2300
  function st(D, A) {
2301
- var z = b(D);
2302
- W && _.copySortSource && A === P && z.removeChild(H), ue(A) ? oe.emit("cancel", D, P) : oe.emit("drop", D, A, P, G), se();
2301
+ var H = b(D);
2302
+ z && _.copySortSource && A === P && H.removeChild(W), ue(A) ? oe.emit("cancel", D, P) : oe.emit("drop", D, A, P, G), se();
2303
2303
  }
2304
2304
  function V() {
2305
2305
  if (oe.dragging) {
2306
- var D = W || H, A = b(D);
2307
- A && A.removeChild(D), oe.emit(W ? "cancel" : "remove", D, A, P), se();
2306
+ var D = z || W, A = b(D);
2307
+ A && A.removeChild(D), oe.emit(z ? "cancel" : "remove", D, A, P), se();
2308
2308
  }
2309
2309
  }
2310
2310
  function Q(D) {
2311
2311
  if (oe.dragging) {
2312
- var A = arguments.length > 0 ? D : _.revertOnSpill, z = W || H, U = b(z), K = ue(U);
2313
- K === !1 && A && (W ? U && U.removeChild(W) : P.insertBefore(z, I)), K || A ? oe.emit("cancel", z, P, P) : oe.emit("drop", z, U, P, G), se();
2312
+ var A = arguments.length > 0 ? D : _.revertOnSpill, H = z || W, U = b(H), K = ue(U);
2313
+ K === !1 && A && (z ? U && U.removeChild(z) : P.insertBefore(H, I)), K || A ? oe.emit("cancel", H, P, P) : oe.emit("drop", H, U, P, G), se();
2314
2314
  }
2315
2315
  }
2316
2316
  function se() {
2317
- var D = W || H;
2318
- Ne(), Wt(), qt(), D && d.rm(D, "gu-transit"), ee && clearTimeout(ee), oe.dragging = !1, ce && oe.emit("out", D, ce, P), oe.emit("dragend", D, de), P = H = W = I = G = ee = ce = null;
2317
+ var D = z || W;
2318
+ Ne(), Wt(), qt(), D && d.rm(D, "gu-transit"), ee && clearTimeout(ee), oe.dragging = !1, ce && oe.emit("out", D, ce, P), oe.emit("dragend", D, de), P = W = z = I = G = ee = ce = null;
2319
2319
  }
2320
2320
  function ue(D, A) {
2321
- var z;
2322
- return A !== void 0 ? z = A : O ? z = G : z = F(W || H), D === P && z === I;
2321
+ var H;
2322
+ return A !== void 0 ? H = A : E ? H = G : H = T(z || W), D === P && H === I;
2323
2323
  }
2324
- function We(D, A, z) {
2324
+ function We(D, A, H) {
2325
2325
  for (var U = D; U && !K(); )
2326
2326
  U = b(U);
2327
2327
  return U;
@@ -2329,30 +2329,30 @@ var Xi = { exports: {} };
2329
2329
  var te = Xe(U);
2330
2330
  if (te === !1)
2331
2331
  return !1;
2332
- var Te = Ft(U, D), Ce = Tt(U, Te, A, z), xe = ue(U, Ce);
2333
- return xe ? !0 : _.accepts(H, U, P, Ce);
2332
+ var Te = St(U, D), Ce = Tt(U, Te, A, H), xe = ue(U, Ce);
2333
+ return xe ? !0 : _.accepts(W, U, P, Ce);
2334
2334
  }
2335
2335
  }
2336
2336
  function yt(D) {
2337
- if (!O)
2337
+ if (!E)
2338
2338
  return;
2339
2339
  D.preventDefault();
2340
- var A = R("clientX", D) || 0, z = R("clientY", D) || 0;
2341
- O.style.left = A - 2 + "px", O.style.top = z - 2 + "px";
2342
- var U = W || H, K = p(O, A, z), te = We(K, A, z), Te = te !== null && te !== ce;
2343
- (Te || te === null) && (Se(), ce = te, Ee()), Yt(K, z);
2340
+ var A = R("clientX", D) || 0, H = R("clientY", D) || 0;
2341
+ E.style.left = A - 2 + "px", E.style.top = H - 2 + "px";
2342
+ var U = z || W, K = m(E, A, H), te = We(K, A, H), Te = te !== null && te !== ce;
2343
+ (Te || te === null) && (Fe(), ce = te, Ee()), Yt(K, H);
2344
2344
  var Ce = b(U);
2345
- if (te === P && W && !_.copySortSource) {
2345
+ if (te === P && z && !_.copySortSource) {
2346
2346
  Ce && Ce.removeChild(U);
2347
2347
  return;
2348
2348
  }
2349
- var xe, Oe = Ft(te, K);
2349
+ var xe, Oe = St(te, K);
2350
2350
  if (ie = vt(Oe, te), Oe !== null)
2351
- xe = Tt(te, Oe, A, z);
2352
- else if (_.revertOnSpill === !0 && !W)
2351
+ xe = Tt(te, Oe, A, H);
2352
+ else if (_.revertOnSpill === !0 && !z)
2353
2353
  xe = I, te = P;
2354
2354
  else {
2355
- W && Ce && Ce.removeChild(U), W && Y && (Y.style.display = "none");
2355
+ z && Ce && Ce.removeChild(U), z && Y && (Y.style.display = "none");
2356
2356
  return;
2357
2357
  }
2358
2358
  Y.style.display = "block", Lt(xe, U, Te), xe ? _t(Oe, xe) : Ut(te);
@@ -2362,12 +2362,12 @@ var Xi = { exports: {} };
2362
2362
  function Ee() {
2363
2363
  Te && pe("over");
2364
2364
  }
2365
- function Se() {
2365
+ function Fe() {
2366
2366
  ce && pe("out");
2367
2367
  }
2368
2368
  }
2369
- function Lt(D, A, z) {
2370
- (D === A || D === F(A)) && (G = F(A)), (D === null && z || D !== A && D !== F(A)) && (G = D);
2369
+ function Lt(D, A, H) {
2370
+ (D === A || D === T(A)) && (G = T(A)), (D === null && H || D !== A && D !== T(A)) && (G = D);
2371
2371
  }
2372
2372
  function $t(D) {
2373
2373
  d.rm(D, "gu-hide");
@@ -2376,31 +2376,31 @@ var Xi = { exports: {} };
2376
2376
  oe.dragging && d.add(D, "gu-hide");
2377
2377
  }
2378
2378
  function Ht() {
2379
- O || (O = document.createElement("div"), O.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", O.innerHTML = _.getMirrorText && _.getMirrorText(H) || "控件", d.add(O, "gu-mirror"), _.mirrorContainer.appendChild(O), m(h, "add", "mousemove", yt), d.add(_.mirrorContainer, "gu-unselectable"), oe.emit("cloned", O, H, "mirror"));
2379
+ E || (E = document.createElement("div"), E.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", E.innerHTML = _.getMirrorText && _.getMirrorText(W) || "控件", d.add(E, "gu-mirror"), _.mirrorContainer.appendChild(E), y(h, "add", "mousemove", yt), d.add(_.mirrorContainer, "gu-unselectable"), oe.emit("cloned", E, W, "mirror"));
2380
2380
  }
2381
2381
  function zt() {
2382
- if (Y = document.createElement("div"), d.add(Y, "gu-insertion"), H) {
2383
- var D = H.getBoundingClientRect();
2382
+ if (Y = document.createElement("div"), d.add(Y, "gu-insertion"), W) {
2383
+ var D = W.getBoundingClientRect();
2384
2384
  Y.style.left = D.left + "px", Y.style.top = D.top + "px";
2385
2385
  }
2386
2386
  ie = !1, _.mirrorContainer.appendChild(Y);
2387
2387
  }
2388
2388
  function Wt() {
2389
- O && (d.rm(_.mirrorContainer, "gu-unselectable"), m(h, "remove", "mousemove", yt), b(O).removeChild(O), O = null);
2389
+ E && (d.rm(_.mirrorContainer, "gu-unselectable"), y(h, "remove", "mousemove", yt), b(E).removeChild(E), E = null);
2390
2390
  }
2391
2391
  function qt() {
2392
2392
  Y && (b(Y).removeChild(Y), Y = null);
2393
2393
  }
2394
- function Ft(D, A) {
2395
- for (var z = A; z !== D && b(z) !== D; )
2396
- z = b(z);
2397
- return z === h ? null : z;
2394
+ function St(D, A) {
2395
+ for (var H = A; H !== D && b(H) !== D; )
2396
+ H = b(H);
2397
+ return H === h ? null : H;
2398
2398
  }
2399
2399
  function vt(D, A) {
2400
2400
  if (!A)
2401
2401
  return ie;
2402
- var z = D || A && A.lastElementChild;
2403
- if (!z)
2402
+ var H = D || A && A.lastElementChild;
2403
+ if (!H)
2404
2404
  return !0;
2405
2405
  var U = getComputedStyle(D), K = /^inline/.test(U.getPropertyValue("display")) || /^(left|right)$/.test(U.getPropertyValue("float"));
2406
2406
  if (K)
@@ -2432,61 +2432,61 @@ var Xi = { exports: {} };
2432
2432
  return !0;
2433
2433
  }
2434
2434
  function _t(D, A) {
2435
- const z = A.getBoundingClientRect();
2436
- if (Y.style.left = z.left + "px", Y.style.top = z.top + "px", ie) {
2437
- if (Y.style.height = z.height + "px", Y.style.width = "4px", D) {
2435
+ const H = A.getBoundingClientRect();
2436
+ if (Y.style.left = H.left + "px", Y.style.top = H.top + "px", ie) {
2437
+ if (Y.style.height = H.height + "px", Y.style.width = "4px", D) {
2438
2438
  const U = D.getBoundingClientRect();
2439
- U.top !== z.top && (Y.style.left = U.right + "px", Y.style.top = U.top + "px", Y.style.height = U.height + "px");
2439
+ U.top !== H.top && (Y.style.left = U.right + "px", Y.style.top = U.top + "px", Y.style.height = U.height + "px");
2440
2440
  }
2441
- } else if (Y.style.height = "4px", Y.style.width = z.width + "px", ne) {
2441
+ } else if (Y.style.height = "4px", Y.style.width = H.width + "px", ne) {
2442
2442
  const U = ne.getBoundingClientRect();
2443
- z.top < U.top && (Y.style.display = "none");
2443
+ H.top < U.top && (Y.style.display = "none");
2444
2444
  }
2445
- A === H && H && (Y.style.display = "none");
2445
+ A === W && W && (Y.style.display = "none");
2446
2446
  }
2447
2447
  function Ut(D) {
2448
2448
  G = null;
2449
2449
  var A = D.lastElementChild;
2450
2450
  if (A) {
2451
- var z = A.getBoundingClientRect();
2452
- ie ? (Y.style.left = z.right + "px", Y.style.top = z.top + "px", Y.style.height = z.height + "px", Y.style.width = "4px") : (Y.style.left = z.left + "px", Y.style.top = z.bottom + "px", Y.style.height = "4px", Y.style.width = z.width + "px"), A === H && H && (Y.style.display = "none");
2451
+ var H = A.getBoundingClientRect();
2452
+ ie ? (Y.style.left = H.right + "px", Y.style.top = H.top + "px", Y.style.height = H.height + "px", Y.style.width = "4px") : (Y.style.left = H.left + "px", Y.style.top = H.bottom + "px", Y.style.height = "4px", Y.style.width = H.width + "px"), A === W && W && (Y.style.display = "none");
2453
2453
  } else
2454
2454
  Y.style.display = "none";
2455
2455
  }
2456
2456
  function Yt(D, A) {
2457
2457
  if (!_.mirrorContainer.contains(D) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ne = l(D), !ne || !ne.contains(D)))
2458
2458
  return;
2459
- const z = document.querySelector(".dgComponentSelected"), U = ne.getBoundingClientRect();
2459
+ const H = document.querySelector(".dgComponentSelected"), U = ne.getBoundingClientRect();
2460
2460
  if (A - 30 < U.top && ne.scrollTop > 0) {
2461
2461
  let K = ne.scrollTop < 10 ? ne.scrollTop : 10;
2462
- ne.scrollBy(0, -1 * K), z && ne.contains(z) && (de = de + -1 * K);
2462
+ ne.scrollBy(0, -1 * K), H && ne.contains(H) && (de = de + -1 * K);
2463
2463
  }
2464
2464
  if (A + 30 > U.bottom && ne.scrollTop < ne.scrollHeight - ne.clientHeight) {
2465
2465
  const K = ne.scrollHeight - ne.clientHeight - ne.scrollTop;
2466
2466
  let te = K < 10 ? K : 10;
2467
- ne.scrollBy(0, te), z && ne.contains(z) && (de = de + te);
2467
+ ne.scrollBy(0, te), H && ne.contains(H) && (de = de + te);
2468
2468
  }
2469
2469
  }
2470
- function Tt(D, A, z, U) {
2470
+ function Tt(D, A, H, U) {
2471
2471
  var K = _.direction === "horizontal", te = _.direction === "mixed", Te = A !== D ? xe() : Ce();
2472
2472
  return Te;
2473
2473
  function Ce() {
2474
- var pe = D.children.length, Ee, Se, he;
2474
+ var pe = D.children.length, Ee, Fe, he;
2475
2475
  for (Ee = 0; Ee < pe; Ee++)
2476
- if (Se = D.children[Ee], he = Se.getBoundingClientRect(), K && he.left + he.width / 2 > z || !te && !K && he.top + he.height / 2 > U || te && he.left + he.width > z && he.top + he.height > U)
2477
- return Se;
2476
+ if (Fe = D.children[Ee], he = Fe.getBoundingClientRect(), K && he.left + he.width / 2 > H || !te && !K && he.top + he.height / 2 > U || te && he.left + he.width > H && he.top + he.height > U)
2477
+ return Fe;
2478
2478
  return null;
2479
2479
  }
2480
2480
  function xe() {
2481
2481
  var pe = A.getBoundingClientRect();
2482
2482
  if (te) {
2483
- var Ee = U - pe.top, Se = z - pe.left, he = pe.bottom - U, ht = pe.right - z, gt = Math.min(Se, ht, Ee, he), bt;
2484
- return ie ? bt = ht < Se : bt = he === gt || ht === gt || Se === gt, Oe(bt);
2483
+ var Ee = U - pe.top, Fe = H - pe.left, he = pe.bottom - U, ht = pe.right - H, gt = Math.min(Fe, ht, Ee, he), bt;
2484
+ return ie ? bt = ht < Fe : bt = he === gt || ht === gt || Fe === gt, Oe(bt);
2485
2485
  }
2486
- return Oe(K ? z > pe.left + E(pe) / 2 : U > pe.top + B(pe) / 2);
2486
+ return Oe(K ? H > pe.left + O(pe) / 2 : U > pe.top + B(pe) / 2);
2487
2487
  }
2488
2488
  function Oe(pe) {
2489
- return pe ? F(A) : A;
2489
+ return pe ? T(A) : A;
2490
2490
  }
2491
2491
  }
2492
2492
  function Xt(D, A) {
@@ -2494,30 +2494,30 @@ var Xi = { exports: {} };
2494
2494
  }
2495
2495
  }
2496
2496
  function l(M) {
2497
- const T = Array.from(window.scrollContainerList);
2498
- if (T.length === 1) {
2499
- const O = Array.from(window.scrollContainerList)[0];
2500
- return document.getElementById(O);
2497
+ const S = Array.from(window.scrollContainerList);
2498
+ if (S.length === 1) {
2499
+ const E = Array.from(window.scrollContainerList)[0];
2500
+ return document.getElementById(E);
2501
2501
  }
2502
- const S = f(T);
2503
- for (const O of S)
2504
- if (O.contains(M))
2505
- return O;
2502
+ const x = f(S);
2503
+ for (const E of x)
2504
+ if (E.contains(M))
2505
+ return E;
2506
2506
  return null;
2507
2507
  }
2508
2508
  function f(M) {
2509
- const T = [];
2510
- return M.forEach((S) => {
2511
- const O = document.getElementById(S);
2512
- O && T.push(O);
2513
- }), T.sort((S, O) => S.contains(O) ? 1 : O.contains(S) ? -1 : 0), T;
2509
+ const S = [];
2510
+ return M.forEach((x) => {
2511
+ const E = document.getElementById(x);
2512
+ E && S.push(E);
2513
+ }), S.sort((x, E) => x.contains(E) ? 1 : E.contains(x) ? -1 : 0), S;
2514
2514
  }
2515
- function m(M, T, S, O) {
2515
+ function y(M, S, x, E) {
2516
2516
  var P = {
2517
2517
  mouseup: "touchend",
2518
2518
  mousedown: "touchstart",
2519
2519
  mousemove: "touchmove"
2520
- }, H = {
2520
+ }, W = {
2521
2521
  mouseup: "pointerup",
2522
2522
  mousedown: "pointerdown",
2523
2523
  mousemove: "pointermove"
@@ -2526,7 +2526,7 @@ var Xi = { exports: {} };
2526
2526
  mousedown: "MSPointerDown",
2527
2527
  mousemove: "MSPointerMove"
2528
2528
  };
2529
- i.navigator.pointerEnabled ? u[T](M, H[S], O) : i.navigator.msPointerEnabled ? u[T](M, J[S], O) : (u[T](M, P[S], O), u[T](M, S, O));
2529
+ i.navigator.pointerEnabled ? u[S](M, W[x], E) : i.navigator.msPointerEnabled ? u[S](M, J[x], E) : (u[S](M, P[x], E), u[S](M, x, E));
2530
2530
  }
2531
2531
  function g(M) {
2532
2532
  if (M.touches !== void 0)
@@ -2535,14 +2535,14 @@ var Xi = { exports: {} };
2535
2535
  return M.which;
2536
2536
  if (M.buttons !== void 0)
2537
2537
  return M.buttons;
2538
- var T = M.button;
2539
- if (T !== void 0)
2540
- return T & 1 ? 1 : T & 2 ? 3 : T & 4 ? 2 : 0;
2538
+ var S = M.button;
2539
+ if (S !== void 0)
2540
+ return S & 1 ? 1 : S & 2 ? 3 : S & 4 ? 2 : 0;
2541
2541
  }
2542
- function p(M, T, S) {
2542
+ function m(M, S, x) {
2543
2543
  M = M || {};
2544
- var O = M.className || "", P;
2545
- return M.className += " gu-hide", P = c.elementFromPoint(T, S), M.className = O, P;
2544
+ var E = M.className || "", P;
2545
+ return M.className += " gu-hide", P = c.elementFromPoint(S, x), M.className = E, P;
2546
2546
  }
2547
2547
  function w() {
2548
2548
  return !1;
@@ -2550,7 +2550,7 @@ var Xi = { exports: {} };
2550
2550
  function k() {
2551
2551
  return !0;
2552
2552
  }
2553
- function E(M) {
2553
+ function O(M) {
2554
2554
  return M.width || M.right - M.left;
2555
2555
  }
2556
2556
  function B(M) {
@@ -2559,33 +2559,33 @@ var Xi = { exports: {} };
2559
2559
  function b(M) {
2560
2560
  return M.parentNode === c ? null : M.parentNode;
2561
2561
  }
2562
- function y(M) {
2563
- return M.tagName === "INPUT" || M.tagName === "TEXTAREA" || M.tagName === "SELECT" || x(M);
2564
- }
2565
- function x(M) {
2566
- return !M || M.contentEditable === "false" ? !1 : M.contentEditable === "true" ? !0 : x(b(M));
2562
+ function p(M) {
2563
+ return M.tagName === "INPUT" || M.tagName === "TEXTAREA" || M.tagName === "SELECT" || F(M);
2567
2564
  }
2568
2565
  function F(M) {
2569
- return M.nextElementSibling || T();
2570
- function T() {
2571
- var S = M;
2566
+ return !M || M.contentEditable === "false" ? !1 : M.contentEditable === "true" ? !0 : F(b(M));
2567
+ }
2568
+ function T(M) {
2569
+ return M.nextElementSibling || S();
2570
+ function S() {
2571
+ var x = M;
2572
2572
  do
2573
- S = S.nextSibling;
2574
- while (S && S.nodeType !== 1);
2575
- return S;
2573
+ x = x.nextSibling;
2574
+ while (x && x.nodeType !== 1);
2575
+ return x;
2576
2576
  }
2577
2577
  }
2578
2578
  function j(M) {
2579
2579
  return M.targetTouches && M.targetTouches.length ? M.targetTouches[0] : M.changedTouches && M.changedTouches.length ? M.changedTouches[0] : M;
2580
2580
  }
2581
- function R(M, T) {
2582
- var S = j(T), O = {
2581
+ function R(M, S) {
2582
+ var x = j(S), E = {
2583
2583
  pageX: "clientX",
2584
2584
  // IE8
2585
2585
  pageY: "clientY"
2586
2586
  // IE8
2587
2587
  };
2588
- return M in O && !(M in S) && O[M] in S && (M = O[M]), S[M];
2588
+ return M in E && !(M in x) && E[M] in x && (M = E[M]), x[M];
2589
2589
  }
2590
2590
  a.exports = s;
2591
2591
  }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -2612,10 +2612,10 @@ var Xi = { exports: {} };
2612
2612
  }, d.once = function(l, f) {
2613
2613
  return f._once = !0, d.on(l, f), d;
2614
2614
  }, d.off = function(l, f) {
2615
- var m = arguments.length;
2616
- if (m === 1)
2615
+ var y = arguments.length;
2616
+ if (y === 1)
2617
2617
  delete s[l];
2618
- else if (m === 0)
2618
+ else if (y === 0)
2619
2619
  s = {};
2620
2620
  else {
2621
2621
  var g = s[l];
@@ -2630,11 +2630,11 @@ var Xi = { exports: {} };
2630
2630
  }, d.emitterSnapshot = function(l) {
2631
2631
  var f = (s[l] || []).slice(0);
2632
2632
  return function() {
2633
- var m = i(arguments), g = this || d;
2633
+ var y = i(arguments), g = this || d;
2634
2634
  if (l === "error" && h.throws !== !1 && !f.length)
2635
- throw m.length === 1 ? m[0] : m;
2635
+ throw y.length === 1 ? y[0] : y;
2636
2636
  return f.forEach(function(w) {
2637
- h.async ? r(w, m, g) : w.apply(g, m), w._once && d.off(l, w);
2637
+ h.async ? r(w, y, g) : w.apply(g, y), w._once && d.off(l, w);
2638
2638
  }), d;
2639
2639
  };
2640
2640
  }, d;
@@ -2642,68 +2642,68 @@ var Xi = { exports: {} };
2642
2642
  }, { "./debounce": 4, atoa: 3 }],
2643
2643
  6: [function(n, a, o) {
2644
2644
  (function(i) {
2645
- var r = n("custom-event"), u = n("./eventmap"), d = i.document, c = l, h = m, s = [];
2645
+ var r = n("custom-event"), u = n("./eventmap"), d = i.document, c = l, h = y, s = [];
2646
2646
  i.addEventListener || (c = f, h = g), a.exports = {
2647
2647
  add: c,
2648
2648
  remove: h,
2649
- fabricate: p
2649
+ fabricate: m
2650
2650
  };
2651
- function l(b, y, x, F) {
2652
- return b.addEventListener(y, x, F);
2651
+ function l(b, p, F, T) {
2652
+ return b.addEventListener(p, F, T);
2653
2653
  }
2654
- function f(b, y, x) {
2655
- return b.attachEvent("on" + y, k(b, y, x));
2654
+ function f(b, p, F) {
2655
+ return b.attachEvent("on" + p, k(b, p, F));
2656
2656
  }
2657
- function m(b, y, x, F) {
2658
- return b.removeEventListener(y, x, F);
2657
+ function y(b, p, F, T) {
2658
+ return b.removeEventListener(p, F, T);
2659
2659
  }
2660
- function g(b, y, x) {
2661
- var F = E(b, y, x);
2662
- if (F)
2663
- return b.detachEvent("on" + y, F);
2660
+ function g(b, p, F) {
2661
+ var T = O(b, p, F);
2662
+ if (T)
2663
+ return b.detachEvent("on" + p, T);
2664
2664
  }
2665
- function p(b, y, x) {
2666
- var F = u.indexOf(y) === -1 ? R() : j();
2667
- b.dispatchEvent ? b.dispatchEvent(F) : b.fireEvent("on" + y, F);
2665
+ function m(b, p, F) {
2666
+ var T = u.indexOf(p) === -1 ? R() : j();
2667
+ b.dispatchEvent ? b.dispatchEvent(T) : b.fireEvent("on" + p, T);
2668
2668
  function j() {
2669
2669
  var M;
2670
- return d.createEvent ? (M = d.createEvent("Event"), M.initEvent(y, !0, !0)) : d.createEventObject && (M = d.createEventObject()), M;
2670
+ return d.createEvent ? (M = d.createEvent("Event"), M.initEvent(p, !0, !0)) : d.createEventObject && (M = d.createEventObject()), M;
2671
2671
  }
2672
2672
  function R() {
2673
- return new r(y, { detail: x });
2673
+ return new r(p, { detail: F });
2674
2674
  }
2675
2675
  }
2676
- function w(b, y, x) {
2676
+ function w(b, p, F) {
2677
2677
  return function(j) {
2678
2678
  var R = j || i.event;
2679
2679
  R.target = R.target || R.srcElement, R.preventDefault = R.preventDefault || function() {
2680
2680
  R.returnValue = !1;
2681
2681
  }, R.stopPropagation = R.stopPropagation || function() {
2682
2682
  R.cancelBubble = !0;
2683
- }, R.which = R.which || R.keyCode, x.call(b, R);
2683
+ }, R.which = R.which || R.keyCode, F.call(b, R);
2684
2684
  };
2685
2685
  }
2686
- function k(b, y, x) {
2687
- var F = E(b, y, x) || w(b, y, x);
2686
+ function k(b, p, F) {
2687
+ var T = O(b, p, F) || w(b, p, F);
2688
2688
  return s.push({
2689
- wrapper: F,
2689
+ wrapper: T,
2690
2690
  element: b,
2691
- type: y,
2692
- fn: x
2693
- }), F;
2691
+ type: p,
2692
+ fn: F
2693
+ }), T;
2694
2694
  }
2695
- function E(b, y, x) {
2696
- var F = B(b, y, x);
2697
- if (F) {
2698
- var j = s[F].wrapper;
2699
- return s.splice(F, 1), j;
2695
+ function O(b, p, F) {
2696
+ var T = B(b, p, F);
2697
+ if (T) {
2698
+ var j = s[T].wrapper;
2699
+ return s.splice(T, 1), j;
2700
2700
  }
2701
2701
  }
2702
- function B(b, y, x) {
2703
- var F, j;
2704
- for (F = 0; F < s.length; F++)
2705
- if (j = s[F], j.element === b && j.type === y && j.fn === x)
2706
- return F;
2702
+ function B(b, p, F) {
2703
+ var T, j;
2704
+ for (T = 0; T < s.length; T++)
2705
+ if (j = s[T], j.element === b && j.type === p && j.fn === F)
2706
+ return T;
2707
2707
  }
2708
2708
  }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
2709
2709
  }, { "./eventmap": 7, "custom-event": 8 }],
@@ -2791,27 +2791,27 @@ var Xi = { exports: {} };
2791
2791
  }
2792
2792
  }
2793
2793
  }
2794
- var l = [], f = !1, m, g = -1;
2795
- function p() {
2796
- !f || !m || (f = !1, m.length ? l = m.concat(l) : g = -1, l.length && w());
2794
+ var l = [], f = !1, y, g = -1;
2795
+ function m() {
2796
+ !f || !y || (f = !1, y.length ? l = y.concat(l) : g = -1, l.length && w());
2797
2797
  }
2798
2798
  function w() {
2799
2799
  if (!f) {
2800
- var B = h(p);
2800
+ var B = h(m);
2801
2801
  f = !0;
2802
2802
  for (var b = l.length; b; ) {
2803
- for (m = l, l = []; ++g < b; )
2804
- m && m[g].run();
2803
+ for (y = l, l = []; ++g < b; )
2804
+ y && y[g].run();
2805
2805
  g = -1, b = l.length;
2806
2806
  }
2807
- m = null, f = !1, s(B);
2807
+ y = null, f = !1, s(B);
2808
2808
  }
2809
2809
  }
2810
2810
  i.nextTick = function(B) {
2811
2811
  var b = new Array(arguments.length - 1);
2812
2812
  if (arguments.length > 1)
2813
- for (var y = 1; y < arguments.length; y++)
2814
- b[y - 1] = arguments[y];
2813
+ for (var p = 1; p < arguments.length; p++)
2814
+ b[p - 1] = arguments[p];
2815
2815
  l.push(new k(B, b)), l.length === 1 && !f && h(w);
2816
2816
  };
2817
2817
  function k(B, b) {
@@ -2820,9 +2820,9 @@ var Xi = { exports: {} };
2820
2820
  k.prototype.run = function() {
2821
2821
  this.fun.apply(null, this.array);
2822
2822
  }, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {};
2823
- function E() {
2823
+ function O() {
2824
2824
  }
2825
- i.on = E, i.addListener = E, i.once = E, i.off = E, i.removeListener = E, i.removeAllListeners = E, i.emit = E, i.prependListener = E, i.prependOnceListener = E, i.listeners = function(B) {
2825
+ i.on = O, i.addListener = O, i.once = O, i.off = O, i.removeListener = O, i.removeAllListeners = O, i.emit = O, i.prependListener = O, i.prependOnceListener = O, i.listeners = function(B) {
2826
2826
  return [];
2827
2827
  }, i.binding = function(B) {
2828
2828
  throw new Error("process.binding is not supported");
@@ -2854,27 +2854,27 @@ var Xi = { exports: {} };
2854
2854
  }, o.clearTimeout = o.clearInterval = function(f) {
2855
2855
  f.close();
2856
2856
  };
2857
- function l(f, m) {
2858
- this._id = f, this._clearFn = m;
2857
+ function l(f, y) {
2858
+ this._id = f, this._clearFn = y;
2859
2859
  }
2860
2860
  l.prototype.unref = l.prototype.ref = function() {
2861
2861
  }, l.prototype.close = function() {
2862
2862
  this._clearFn.call(window, this._id);
2863
- }, o.enroll = function(f, m) {
2864
- clearTimeout(f._idleTimeoutId), f._idleTimeout = m;
2863
+ }, o.enroll = function(f, y) {
2864
+ clearTimeout(f._idleTimeoutId), f._idleTimeout = y;
2865
2865
  }, o.unenroll = function(f) {
2866
2866
  clearTimeout(f._idleTimeoutId), f._idleTimeout = -1;
2867
2867
  }, o._unrefActive = o.active = function(f) {
2868
2868
  clearTimeout(f._idleTimeoutId);
2869
- var m = f._idleTimeout;
2870
- m >= 0 && (f._idleTimeoutId = setTimeout(function() {
2869
+ var y = f._idleTimeout;
2870
+ y >= 0 && (f._idleTimeoutId = setTimeout(function() {
2871
2871
  f._onTimeout && f._onTimeout();
2872
- }, m));
2872
+ }, y));
2873
2873
  }, o.setImmediate = typeof i == "function" ? i : function(f) {
2874
- var m = s++, g = arguments.length < 2 ? !1 : c.call(arguments, 1);
2875
- return h[m] = !0, u(function() {
2876
- h[m] && (g ? f.apply(null, g) : f.call(null), o.clearImmediate(m));
2877
- }), m;
2874
+ var y = s++, g = arguments.length < 2 ? !1 : c.call(arguments, 1);
2875
+ return h[y] = !0, u(function() {
2876
+ h[y] && (g ? f.apply(null, g) : f.call(null), o.clearImmediate(y));
2877
+ }), y;
2878
2878
  }, o.clearImmediate = typeof r == "function" ? r : function(f) {
2879
2879
  delete h[f];
2880
2880
  };
@@ -2916,15 +2916,15 @@ const Ji = {
2916
2916
  };
2917
2917
  return B[e.animate] = !1, B[i] = u.value, B["toasty-type-" + r.value.type] = !0, r.value.theme && (B[r.value.theme] = !0), B;
2918
2918
  }), s = N(() => {
2919
- const y = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, x = {
2919
+ const p = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, F = {
2920
2920
  "f-icon": !0
2921
2921
  };
2922
- return x[y] = !0, x;
2923
- }), l = N(() => r.value.title || r.value.message), f = N(() => e.showCloseButton), m = N(() => !!r.value.buttons || !!t.slots.default), g = N(() => n.value === "en" ? {
2922
+ return F[p] = !0, F;
2923
+ }), l = N(() => r.value.title || r.value.message), f = N(() => e.showCloseButton), y = N(() => !!r.value.buttons || !!t.slots.default), g = N(() => n.value === "en" ? {
2924
2924
  wordBreak: "keep-all",
2925
2925
  overflowWrap: "break-word"
2926
2926
  } : {});
2927
- function p(B) {
2927
+ function m(B) {
2928
2928
  B.stopPropagation(), B.preventDefault(), u.value = !1, setTimeout(() => {
2929
2929
  t.emit("close", r.value);
2930
2930
  }, 200);
@@ -2937,13 +2937,13 @@ const Ji = {
2937
2937
  Z(o, () => {
2938
2938
  o.value;
2939
2939
  });
2940
- const E = () => {
2940
+ const O = () => {
2941
2941
  var B;
2942
2942
  return v(it, null, [v("div", {
2943
2943
  class: "after-toast-msg text-right"
2944
2944
  }, [!t.slots.default && ((B = r.value.buttons) == null ? void 0 : B.map((b) => v("span", {
2945
2945
  class: k(b),
2946
- onClick: (y) => void 0
2946
+ onClick: (p) => void 0
2947
2947
  }, [b.text]))), t.slots.default && t.slots.default()])]);
2948
2948
  };
2949
2949
  return () => v("div", {
@@ -2952,7 +2952,7 @@ const Ji = {
2952
2952
  }, [f.value && v("button", {
2953
2953
  title: a("messageBox.close"),
2954
2954
  class: "toast-close f-btn-icon f-bare",
2955
- onClick: p
2955
+ onClick: m
2956
2956
  }, [v("span", {
2957
2957
  class: "f-icon modal_close"
2958
2958
  }, null)]), l.value && v("section", {
@@ -2970,7 +2970,7 @@ const Ji = {
2970
2970
  class: "toast-msg",
2971
2971
  innerHTML: r.value.message,
2972
2972
  style: g.value
2973
- }, null), m.value && E()]), c.value && (r.value.buttons ? v("div", {
2973
+ }, null), y.value && O()]), c.value && (r.value.buttons ? v("div", {
2974
2974
  class: "toast-title-btns-wrapper d-flex"
2975
2975
  }, [v("h5", {
2976
2976
  class: "toast-title modal-tips-title only-toast-msg",
@@ -2978,7 +2978,7 @@ const Ji = {
2978
2978
  innerHTML: r.value.message
2979
2979
  }, null), v("div", {
2980
2980
  class: "after-toast-title text-right ml-auto"
2981
- }, [E()])]) : v("h5", {
2981
+ }, [O()])]) : v("h5", {
2982
2982
  class: "toast-title modal-tips-title only-toast-msg",
2983
2983
  style: g.value,
2984
2984
  innerHTML: r.value.message
@@ -2997,14 +2997,14 @@ const Ji = {
2997
2997
  top: 20,
2998
2998
  bottom: 12
2999
2999
  }, o = C(), i = C(e.options), r = C(e.showCloseButton), u = N(() => e.position || "bottom-right"), d = N(() => e.timeout != null ? e.timeout : 3e3), c = N(() => {
3000
- const l = e.bottom ? e.bottom : a.bottom, f = e.top ? e.top : a.top, m = {
3000
+ const l = e.bottom ? e.bottom : a.bottom, f = e.top ? e.top : a.top, y = {
3001
3001
  transition: "all 0.2s ease",
3002
3002
  left: u.value.indexOf("left") > -1 ? `${e.left ? e.left : a.left}px` : "",
3003
3003
  right: u.value.indexOf("right") > -1 ? `${e.right ? e.right : a.right}px` : "",
3004
3004
  top: u.value.indexOf("top") > -1 ? `${f}px` : "",
3005
3005
  bottom: u.value.indexOf("bottom") > -1 ? `${l}px` : ""
3006
3006
  };
3007
- return u.value.indexOf("center") > -1 && (m.left = "50%", m.marginLeft = "calc(-24rem / 2)", u.value === "center-center" && (m.top = "50%", m.transform = "translate(-50%, -50%)")), m;
3007
+ return u.value.indexOf("center") > -1 && (y.left = "50%", y.marginLeft = "calc(-24rem / 2)", u.value === "center-center" && (y.top = "50%", y.transform = "translate(-50%, -50%)")), y;
3008
3008
  });
3009
3009
  function h(l) {
3010
3010
  t.emit("close");
@@ -3306,23 +3306,23 @@ const Ki = {
3306
3306
  }
3307
3307
  }
3308
3308
  };
3309
- function el(e, t, n, a, o, i, r, u, d, c, h, s, l, f, m, g, p) {
3309
+ function el(e, t, n, a, o, i, r, u, d, c, h, s, l, f, y, g, m) {
3310
3310
  const {
3311
3311
  calculateCellPositionInRow: w
3312
3312
  } = i, {
3313
3313
  columnContext: k,
3314
- hasLeftFixedColumn: E,
3314
+ hasLeftFixedColumn: O,
3315
3315
  hasRightFixedColumn: B
3316
3316
  } = r, {
3317
3317
  gridDataStyle: b,
3318
- leftFixedGridDataStyle: y,
3319
- rightFixedGridDataStyle: x
3318
+ leftFixedGridDataStyle: p,
3319
+ rightFixedGridDataStyle: F
3320
3320
  } = f, {
3321
- renderDataRow: F
3322
- } = Ua(e, t, k, p, u, d, c, h, s, l, f, m, g), j = [F];
3323
- function R(P, H) {
3321
+ renderDataRow: T
3322
+ } = Ua(e, t, k, m, u, d, c, h, s, l, f, y, g), j = [T];
3323
+ function R(P, W) {
3324
3324
  const J = w(P);
3325
- return p.value.filter(($) => $.visible !== !1).map(($, I) => j[$.type]($, J, H, I));
3325
+ return m.value.filter(($) => $.visible !== !1).map(($, I) => j[$.type]($, J, W, I));
3326
3326
  }
3327
3327
  function M() {
3328
3328
  return v("div", {
@@ -3330,10 +3330,10 @@ function el(e, t, n, a, o, i, r, u, d, c, h, s, l, f, m, g, p) {
3330
3330
  class: "fv-grid-content-left-fixed"
3331
3331
  }, [v("div", {
3332
3332
  class: "fv-grid-data",
3333
- style: y.value
3333
+ style: p.value
3334
3334
  }, [R(k.value.leftColumns.filter((P) => P.visible), "left")])]);
3335
3335
  }
3336
- function T() {
3336
+ function S() {
3337
3337
  return v("div", {
3338
3338
  ref: n,
3339
3339
  class: "fv-grid-content-primary"
@@ -3342,21 +3342,21 @@ function el(e, t, n, a, o, i, r, u, d, c, h, s, l, f, m, g, p) {
3342
3342
  style: b.value
3343
3343
  }, [R(k.value.primaryColumns.filter((P) => P.visible), "primary")])]);
3344
3344
  }
3345
- function S() {
3345
+ function x() {
3346
3346
  return v("div", {
3347
3347
  ref: o,
3348
3348
  class: "fv-grid-content-right-fixed"
3349
3349
  }, [v("div", {
3350
3350
  class: "fv-grid-data",
3351
- style: x.value
3351
+ style: F.value
3352
3352
  }, [R(k.value.rightColumns.filter((P) => P.visible), "right")])]);
3353
3353
  }
3354
- function O() {
3354
+ function E() {
3355
3355
  const P = [];
3356
- return E.value && P.push(M()), P.push(T()), B.value && P.push(S()), P;
3356
+ return O.value && P.push(M()), P.push(S()), B.value && P.push(x()), P;
3357
3357
  }
3358
3358
  return {
3359
- renderDataArea: O
3359
+ renderDataArea: E
3360
3360
  };
3361
3361
  }
3362
3362
  const tl = /* @__PURE__ */ ae({
@@ -3367,20 +3367,20 @@ const tl = /* @__PURE__ */ ae({
3367
3367
  var fn, pn;
3368
3368
  const a = ((fn = e.rowOption) == null ? void 0 : fn.height) || 28, o = C(20), i = C(e.columns), r = Ya(e), {
3369
3369
  idField: u
3370
- } = r, d = C(), c = C(), h = C(), s = C(), l = C(), f = C([]), m = C(!1), g = C(((pn = e.rowOption) == null ? void 0 : pn.wrapContent) || !1), p = Xa(e, r), w = Ja(e, t), k = Qa(e), {
3371
- collapseField: E
3370
+ } = r, d = C(), c = C(), h = C(), s = C(), l = C(), f = C([]), y = C(!1), g = C(((pn = e.rowOption) == null ? void 0 : pn.wrapContent) || !1), m = Xa(e, r), w = Ja(e, t), k = Qa(e), {
3371
+ collapseField: O
3372
3372
  } = k, {
3373
3373
  showLoading: B,
3374
3374
  renderLoading: b
3375
- } = Za(e, d), y = Ka(e, /* @__PURE__ */ new Map(), w, k, r), {
3376
- dataView: x
3377
- } = y, F = eo(e, y, r, f, t), {
3375
+ } = Za(e, d), p = Ka(e, /* @__PURE__ */ new Map(), w, k, r), {
3376
+ dataView: F
3377
+ } = p, T = eo(e, p, r, f, t), {
3378
3378
  showSelection: j,
3379
3379
  selectedValues: R
3380
- } = F, M = to(e, f, y, r, F, t), T = N(() => e.disabled), S = N(() => e.virtualized ? Math.min(y.dataView.value.length, o.value) : y.dataView.value.length), O = no(e, y), {
3380
+ } = T, M = to(e, f, p, r, T, t), S = N(() => e.disabled), x = N(() => e.virtualized ? Math.min(p.dataView.value.length, o.value) : p.dataView.value.length), E = no(e, p), {
3381
3381
  shouldRenderPagination: P
3382
- } = O, {
3383
- containerStyleObject: H
3382
+ } = E, {
3383
+ containerStyleObject: W
3384
3384
  } = ao(e), J = oo(e), {
3385
3385
  applyCommands: $
3386
3386
  } = J;
@@ -3390,17 +3390,17 @@ const tl = /* @__PURE__ */ ae({
3390
3390
  removeColumnSetting: G
3391
3391
  } = io(e);
3392
3392
  e.showSetting && I(i);
3393
- const W = lo(e, t), ee = ro(e), {
3393
+ const z = lo(e, t), ee = ro(e), {
3394
3394
  applyColumnSorter: ce,
3395
3395
  columnContext: ve,
3396
3396
  updateColumnRenderContext: Y
3397
- } = W;
3398
- ce(y, ee);
3399
- const ie = so(e, ve), de = uo(e, t, F, r), ne = co(e, t, r, de, f), _ = fo(e), oe = po(e, ne, _), Xe = mo(e, y, ne, k, r, _, oe), Le = yo(e, i, y, S, 0, Xe), {
3397
+ } = z;
3398
+ ce(p, ee);
3399
+ const ie = so(e, ve), de = uo(e, t, T, r), ne = co(e, t, r, de, f), _ = fo(e), oe = po(e, ne, _), Xe = mo(e, p, ne, k, r, _, oe), Le = yo(e, i, p, x, 0, Xe), {
3400
3400
  getVisualData: Be
3401
- } = Le, rt = vo(e, ve), Je = ho(e, F), {
3401
+ } = Le, rt = vo(e, ve), Je = ho(e, T), {
3402
3402
  sidebarWidth: Qe
3403
- } = Je, fe = go(e, y, f, ve, Le, S, 0, Qe), {
3403
+ } = Je, fe = go(e, p, f, ve, Le, x, 0, Qe), {
3404
3404
  onWheel: pt,
3405
3405
  dataGridWidth: Me,
3406
3406
  viewPortHeight: $e,
@@ -3409,7 +3409,7 @@ const tl = /* @__PURE__ */ ae({
3409
3409
  updateVisibleRowsOnLatestVisibleScope: mt
3410
3410
  } = fe, Ze = bo(e, ve, c, Ae, ie), {
3411
3411
  calculateColumnsSize: Ne
3412
- } = Ze, ze = Co(), st = wo(c, l, y, ze, fe), V = ko(e, t, W, y, ie, p, fe), Q = N(() => {
3412
+ } = Ze, ze = Co(), st = wo(c, l, p, ze, fe), V = ko(e, t, z, p, ie, m, fe), Q = N(() => {
3413
3413
  const q = {
3414
3414
  "fv-grid": !0,
3415
3415
  "fv-grid-bordered": e.showBorder,
@@ -3419,19 +3419,19 @@ const tl = /* @__PURE__ */ ae({
3419
3419
  return jn(q, e.customClass);
3420
3420
  }), se = N(() => ({
3421
3421
  "fv-grid-content": !0,
3422
- "fv-grid-content-hover": m.value,
3422
+ "fv-grid-content-hover": y.value,
3423
3423
  "fv-grid-wrap-content": g.value
3424
3424
  })), {
3425
3425
  renderDataArea: ue
3426
- } = el(e, t, h, s, l, rt, W, y, ne, k, de, F, M, fe, Le, _, f), {
3426
+ } = el(e, t, h, s, l, rt, z, p, ne, k, de, T, M, fe, Le, _, f), {
3427
3427
  renderGridHeader: We,
3428
3428
  renderGridColumnResizeOverlay: yt,
3429
3429
  shouldShowHeader: Lt
3430
- } = xo(e, t, c, s, l, W, y, V, st, w, ze, Ze, ie, F, Je, ee, fe, Ae, f), {
3430
+ } = xo(e, t, c, s, l, z, p, V, st, w, ze, Ze, ie, T, Je, ee, fe, Ae, f), {
3431
3431
  renderDataGridSidebar: $t
3432
- } = So(e, de, F, Je, fe), {
3432
+ } = Fo(e, de, T, Je, fe), {
3433
3433
  renderDisableMask: At
3434
- } = Fo(), {
3434
+ } = So(), {
3435
3435
  renderHorizontalScrollbar: Ht
3436
3436
  } = To(e, c, fe), {
3437
3437
  renderVerticalScrollbar: zt
@@ -3444,7 +3444,7 @@ const tl = /* @__PURE__ */ ae({
3444
3444
  }
3445
3445
  }
3446
3446
  be(() => {
3447
- c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), f.value = Be(0, S.value + 0 - 1), _a(c.value, Wt), Ne(), _e(() => {
3447
+ c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), f.value = Be(0, x.value + 0 - 1), _a(c.value, Wt), Ne(), _e(() => {
3448
3448
  c.value && (Me.value = c.value.clientWidth), h.value && (Ae.value = h.value.clientWidth, $e.value = h.value.clientHeight);
3449
3449
  })), B.value && b();
3450
3450
  }), kt(() => {
@@ -3452,30 +3452,30 @@ const tl = /* @__PURE__ */ ae({
3452
3452
  c.value && Ne();
3453
3453
  });
3454
3454
  function qt(q) {
3455
- y.collapseTo(q), y.reOrderVisibleIndex(), He();
3455
+ p.collapseTo(q), p.reOrderVisibleIndex(), He();
3456
3456
  }
3457
- function Ft(q) {
3458
- y.expandTo(q), y.reOrderVisibleIndex(), He();
3457
+ function St(q) {
3458
+ p.expandTo(q), p.reOrderVisibleIndex(), He();
3459
3459
  }
3460
3460
  function vt() {
3461
- const q = F.getSelectionRow();
3461
+ const q = T.getSelectionRow();
3462
3462
  return q ? q.dataIndex - 1 : -1;
3463
3463
  }
3464
3464
  function Gt() {
3465
3465
  const q = vt();
3466
- y.insertNewDataItem(q), f.value = Be(0, S.value + 0 - 1);
3466
+ p.insertNewDataItem(q), f.value = Be(0, x.value + 0 - 1);
3467
3467
  }
3468
3468
  function _t() {
3469
3469
  const q = vt();
3470
- y.insertNewChildDataItem(q), f.value = Be(0, S.value + 0 - 1);
3470
+ p.insertNewChildDataItem(q), f.value = Be(0, x.value + 0 - 1);
3471
3471
  }
3472
3472
  function Ut(q, X) {
3473
- const me = f.value.find((Fe) => Fe.raw[u.value] === X), ge = me ? me.dataIndex - 1 : -1;
3474
- y.insertNewChildDataItems(q, ge);
3473
+ const me = f.value.find((Se) => Se.raw[u.value] === X), ge = me ? me.dataIndex - 1 : -1;
3474
+ p.insertNewChildDataItems(q, ge);
3475
3475
  }
3476
3476
  function Yt() {
3477
3477
  const q = vt(), X = M.getNextSelectableHierarchyItemId(q);
3478
- y.removeHierarchyDataItem(q), f.value = Be(0, S.value + 0 - 1), X && F.selectItemById(X);
3478
+ p.removeHierarchyDataItem(q), f.value = Be(0, x.value + 0 - 1), X && T.selectItemById(X);
3479
3479
  }
3480
3480
  function Tt(q) {
3481
3481
  ne.onEditingRow(q);
@@ -3487,16 +3487,16 @@ const tl = /* @__PURE__ */ ae({
3487
3487
  ne.cancelEditingRow(q);
3488
3488
  }
3489
3489
  function A(q) {
3490
- q && (i.value = q, $(i), Y(i.value), ce(y, ee), Ne());
3490
+ q && (i.value = q, $(i), Y(i.value), ce(p, ee), Ne());
3491
3491
  }
3492
3492
  Z(() => e.columns, (q) => {
3493
3493
  A(q);
3494
3494
  });
3495
- function z(q, X) {
3496
- q && (y.load(q), y.reOrderVisibleIndex(), X != null && X.keepScrollPosition ? fe.scrollTo(fe.offsetY.value) : He());
3495
+ function H(q, X) {
3496
+ q && (p.load(q), p.reOrderVisibleIndex(), X != null && X.keepScrollPosition ? fe.scrollTo(fe.offsetY.value) : He());
3497
3497
  }
3498
3498
  function U(q) {
3499
- F.selectItemById(q);
3499
+ T.selectItemById(q);
3500
3500
  }
3501
3501
  function K(q) {
3502
3502
  const X = f.value.find((me) => me.raw[r.idField.value] === q);
@@ -3506,28 +3506,28 @@ const tl = /* @__PURE__ */ ae({
3506
3506
  de.activeRowById(q);
3507
3507
  }
3508
3508
  function Te(q) {
3509
- F.selectItemByIds(q);
3509
+ T.selectItemByIds(q);
3510
3510
  }
3511
3511
  function Ce() {
3512
- return F.getSelectedItems();
3512
+ return T.getSelectedItems();
3513
3513
  }
3514
3514
  function xe() {
3515
- F.clearSelection();
3515
+ T.clearSelection();
3516
3516
  }
3517
3517
  const Oe = N(() => !f.value || !f.value.length), {
3518
3518
  renderEmpty: pe
3519
3519
  } = Mo(e, t);
3520
3520
  function Ee() {
3521
- return F.getSelectionRow();
3521
+ return T.getSelectionRow();
3522
3522
  }
3523
- function Se(q) {
3524
- F.unSelectItemByIds(q);
3523
+ function Fe(q) {
3524
+ T.unSelectItemByIds(q);
3525
3525
  }
3526
3526
  function he() {
3527
- return F.currentSelectedDataId.value;
3527
+ return T.currentSelectedDataId.value;
3528
3528
  }
3529
3529
  function ht(q, X, me) {
3530
- const ge = x.value.find((Fe) => Fe[u.value] === q);
3530
+ const ge = F.value.find((Se) => Se[u.value] === q);
3531
3531
  if (ge) {
3532
3532
  if (Object.keys(ge).forEach((ye) => {
3533
3533
  Object.prototype.hasOwnProperty.call(X, ye) && (ge[ye] = X[ye]);
@@ -3540,10 +3540,10 @@ const tl = /* @__PURE__ */ ae({
3540
3540
  } = me;
3541
3541
  ye && !je(X[ye]) && (ge.__fv_collapse__ = X[ye]), et && !je(X[et]) && (ge.__fv_checked__ = X[et]), Ke && !je(X[Ke]) && (ge.__fv_disabled__ = X[Ke]), tt && !je(X[tt]) && (ge.__fv_visible__ = X[tt]);
3542
3542
  }
3543
- const Fe = f.value.find((ye) => ye.raw[u.value] === q), mn = f.value.findIndex((ye) => ye.raw[u.value] === q);
3544
- if (Fe) {
3545
- if (Fe.raw = ge, Object.keys(Fe.data).forEach((ye) => {
3546
- Fe.data[ye].updateData(ge);
3543
+ const Se = f.value.find((ye) => ye.raw[u.value] === q), mn = f.value.findIndex((ye) => ye.raw[u.value] === q);
3544
+ if (Se) {
3545
+ if (Se.raw = ge, Object.keys(Se.data).forEach((ye) => {
3546
+ Se.data[ye].updateData(ge);
3547
3547
  }), me) {
3548
3548
  const {
3549
3549
  collapseField: ye,
@@ -3551,21 +3551,21 @@ const tl = /* @__PURE__ */ ae({
3551
3551
  checkedField: et,
3552
3552
  visibleField: tt
3553
3553
  } = me;
3554
- ye && !je(X[ye]) && (Fe.collapse = X[ye]), et && !je(X[et]) && (Fe.checked = X[et]), Ke && !je(X[Ke]) && (Fe.disabled = X[Ke]), tt && !je(X[tt]) && (Fe.visible = X[tt]);
3554
+ ye && !je(X[ye]) && (Se.collapse = X[ye]), et && !je(X[et]) && (Se.checked = X[et]), Ke && !je(X[Ke]) && (Se.disabled = X[Ke]), tt && !je(X[tt]) && (Se.visible = X[tt]);
3555
3555
  }
3556
- f.value = [...f.value.slice(0, mn), Fe, ...f.value.slice(mn + 1)], y.updateSummary();
3556
+ f.value = [...f.value.slice(0, mn), Se, ...f.value.slice(mn + 1)], p.updateSummary();
3557
3557
  }
3558
3558
  }
3559
3559
  }
3560
3560
  function gt(q) {
3561
- return Object.prototype.hasOwnProperty.call(q, "raw") ? y.hasRealChildren(q.raw) : y.hasRealChildren(q);
3561
+ return Object.prototype.hasOwnProperty.call(q, "raw") ? p.hasRealChildren(q.raw) : p.hasRealChildren(q);
3562
3562
  }
3563
3563
  function bt(q) {
3564
- const X = y.dataView.value.find((me) => me[u.value] === q);
3565
- return X ? X[E.value] : "";
3564
+ const X = p.dataView.value.find((me) => me[u.value] === q);
3565
+ return X ? X[O.value] : "";
3566
3566
  }
3567
3567
  function wa() {
3568
- return E.value;
3568
+ return O.value;
3569
3569
  }
3570
3570
  Z(() => e.showSetting, (q, X) => {
3571
3571
  q !== X && (q ? I(i) : G(i), A(i.value));
@@ -3577,8 +3577,8 @@ const tl = /* @__PURE__ */ ae({
3577
3577
  const X = r.idField.value, me = f.value.find((ge) => ge.raw[X] === q);
3578
3578
  me && de.selectRow(me);
3579
3579
  }
3580
- function Sa() {
3581
- F.keepSelectingOnPaging.value || xe(), y.updateVisibleDataSummary(f.value);
3580
+ function Fa() {
3581
+ T.keepSelectingOnPaging.value || xe(), p.updateVisibleDataSummary(f.value);
3582
3582
  }
3583
3583
  t.expose({
3584
3584
  activeRowById: te,
@@ -3586,20 +3586,20 @@ const tl = /* @__PURE__ */ ae({
3586
3586
  addNewChildDataItem: _t,
3587
3587
  addChildrenToNode: Ut,
3588
3588
  collapseTo: qt,
3589
- expandTo: Ft,
3589
+ expandTo: St,
3590
3590
  removeDataItem: Yt,
3591
3591
  editDataItem: Tt,
3592
3592
  acceptDataItem: Xt,
3593
3593
  cancelDataItem: D,
3594
3594
  updateColumns: A,
3595
- updateDataSource: z,
3595
+ updateDataSource: H,
3596
3596
  selectItemById: U,
3597
3597
  selectItemByIds: Te,
3598
3598
  getSelectedItems: Ce,
3599
3599
  clearSelection: xe,
3600
3600
  getSelectionRow: Ee,
3601
3601
  clickRowItemById: K,
3602
- unSelectItemByIds: Se,
3602
+ unSelectItemByIds: Fe,
3603
3603
  getCurrentRowId: he,
3604
3604
  reassignRowData: ht,
3605
3605
  hasChildren: gt,
@@ -3607,16 +3607,16 @@ const tl = /* @__PURE__ */ ae({
3607
3607
  getCollapseStatusById: bt,
3608
3608
  getVisibleDataByIds: ka,
3609
3609
  selectRowById: xa,
3610
- updateDerivedData: Sa
3610
+ updateDerivedData: Fa
3611
3611
  });
3612
- const Fa = N(() => {
3612
+ const Sa = N(() => {
3613
3613
  const q = {};
3614
3614
  return fe.shouldShowHorizontalScrollbar.value && (q.paddingBottom = "10px"), fe.shouldShowVirticalScrollbar.value && (q.paddingRight = "10px"), q;
3615
3615
  }), Ta = N(() => ({
3616
- ...H.value,
3616
+ ...W.value,
3617
3617
  borderRadius: "5px"
3618
3618
  }));
3619
- Oo(e, t, y, fe, O, F);
3619
+ Oo(e, t, p, fe, E, T);
3620
3620
  const Ba = N(() => ({
3621
3621
  "d-flex": !0,
3622
3622
  "justify-content-between": P.value && j.value,
@@ -3627,7 +3627,7 @@ const tl = /* @__PURE__ */ ae({
3627
3627
  "align-items-center": !0
3628
3628
  })), {
3629
3629
  renderDataGridSummary: Oa
3630
- } = Eo(e, y, W);
3630
+ } = Eo(e, p, z);
3631
3631
  return () => v("div", {
3632
3632
  ref: d,
3633
3633
  class: Q.value,
@@ -3636,14 +3636,14 @@ const tl = /* @__PURE__ */ ae({
3636
3636
  }, [c.value && Lt.value && We(), v("div", {
3637
3637
  ref: c,
3638
3638
  class: se.value,
3639
- onMouseover: () => m.value = !0,
3640
- onMouseleave: () => m.value = !1,
3641
- style: Fa.value
3639
+ onMouseover: () => y.value = !0,
3640
+ onMouseleave: () => y.value = !1,
3641
+ style: Sa.value
3642
3642
  }, [c.value && $t(f), c.value && ue(), c.value && Oe.value && pe(), c.value && Ht(), c.value && zt()]), c.value && Oa(), j.value && v("div", {
3643
3643
  class: Ba.value
3644
3644
  }, [j.value && v("div", {
3645
3645
  class: Ma.value
3646
- }, [v("div", null, ["已选:" + R.value.length, le(" 条")])])]), yt(), T.value && At()]);
3646
+ }, [v("div", null, ["已选:" + R.value.length, le(" 条")])])]), yt(), S.value && At()]);
3647
3647
  }
3648
3648
  });
3649
3649
  jt(tl);
@@ -3801,107 +3801,107 @@ function Kn(e, t, n) {
3801
3801
  function h() {
3802
3802
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
3803
3803
  }
3804
- function s(T) {
3805
- if (!T || !T.value)
3804
+ function s(S) {
3805
+ if (!S || !S.value)
3806
3806
  return null;
3807
- if (T.value.schema && T.value.schema.type === "component")
3808
- return T.value;
3809
- const S = C(T == null ? void 0 : T.value.parent), O = s(S);
3810
- return O || null;
3807
+ if (S.value.schema && S.value.schema.type === "component")
3808
+ return S.value;
3809
+ const x = C(S == null ? void 0 : S.value.parent), E = s(x);
3810
+ return E || null;
3811
3811
  }
3812
- function l(T = t) {
3813
- var H;
3812
+ function l(S = t) {
3813
+ var W;
3814
3814
  if (n != null && n.getDraggableDesignItemElement)
3815
- return n.getDraggableDesignItemElement(T);
3816
- const { componentInstance: S, designerItemElementRef: O } = T;
3817
- if (!S || !S.value)
3815
+ return n.getDraggableDesignItemElement(S);
3816
+ const { componentInstance: x, designerItemElementRef: E } = S;
3817
+ if (!x || !x.value)
3818
3818
  return null;
3819
- const { getCustomButtons: P } = S.value;
3820
- return S.value.canMove || P && ((H = P()) != null && H.length) ? O : l(T.parent);
3819
+ const { getCustomButtons: P } = x.value;
3820
+ return x.value.canMove || P && ((W = P()) != null && W.length) ? E : l(S.parent);
3821
3821
  }
3822
- function f(T) {
3823
- return !!n && n.canAccepts(T);
3822
+ function f(S) {
3823
+ return !!n && n.canAccepts(S);
3824
3824
  }
3825
- function m() {
3825
+ function y() {
3826
3826
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
3827
3827
  }
3828
3828
  function g() {
3829
3829
  }
3830
- function p(T, S) {
3831
- var O;
3832
- !T || !S || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(T, S), (O = t == null ? void 0 : t.setupContext) == null || O.emit("dragEnd"));
3830
+ function m(S, x) {
3831
+ var E;
3832
+ !S || !x || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(S, x), (E = t == null ? void 0 : t.setupContext) == null || E.emit("dragEnd"));
3833
3833
  }
3834
- function w(T, S) {
3835
- const { componentType: O } = T;
3836
- let P = La(O, T, S);
3837
- n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(T, P));
3838
- const H = O.toLowerCase().replace(/-/g, "_");
3839
- return P && !P.id && P.type === O && (P.id = `${H}_${Math.random().toString().slice(2, 6)}`), P;
3834
+ function w(S, x) {
3835
+ const { componentType: E } = S;
3836
+ let P = La(E, S, x);
3837
+ n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(S, P));
3838
+ const W = E.toLowerCase().replace(/-/g, "_");
3839
+ return P && !P.id && P.type === E && (P.id = `${W}_${Math.random().toString().slice(2, 6)}`), P;
3840
3840
  }
3841
- function k(T) {
3842
- T && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(T);
3841
+ function k(S) {
3842
+ S && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(S);
3843
3843
  }
3844
- function E(...T) {
3844
+ function O(...S) {
3845
3845
  if (n && n.getPropsConfig)
3846
- return n.getPropsConfig(...T);
3846
+ return n.getPropsConfig(...S);
3847
3847
  }
3848
- function B(T) {
3849
- if (!T)
3848
+ function B(S) {
3849
+ if (!S)
3850
3850
  return;
3851
- const S = t == null ? void 0 : t.schema, { formSchemaUtils: O } = T;
3852
- if (S && O.getExpressions().length) {
3853
- const P = O.getExpressions().findIndex((H) => H.target === S.id);
3854
- P > -1 && O.getExpressions().splice(P, 1);
3851
+ const x = t == null ? void 0 : t.schema, { formSchemaUtils: E } = S;
3852
+ if (x && E.getExpressions().length) {
3853
+ const P = E.getExpressions().findIndex((W) => W.target === x.id);
3854
+ P > -1 && E.getExpressions().splice(P, 1);
3855
3855
  }
3856
3856
  }
3857
- function b(T) {
3858
- if (!T || !(t != null && t.schema))
3857
+ function b(S) {
3858
+ if (!S || !(t != null && t.schema))
3859
3859
  return;
3860
- const S = t.schema, { formSchemaUtils: O } = T;
3861
- O.removeCommunicationInComponent(S);
3862
- }
3863
- function y(T) {
3864
- n && n.onRemoveComponent && n.onRemoveComponent(), B(T), b(T), t != null && t.schema.contents && t.schema.contents.map((S) => {
3865
- let O = S.id;
3866
- S.type === "component-ref" && (O = S.component);
3867
- const P = e.value.querySelectorAll(`#${O}-design-item`);
3868
- P != null && P.length && Array.from(P).map((H) => {
3860
+ const x = t.schema, { formSchemaUtils: E } = S;
3861
+ E.removeCommunicationInComponent(x);
3862
+ }
3863
+ function p(S) {
3864
+ n && n.onRemoveComponent && n.onRemoveComponent(), B(S), b(S), t != null && t.schema.contents && t.schema.contents.map((x) => {
3865
+ let E = x.id;
3866
+ x.type === "component-ref" && (E = x.component);
3867
+ const P = e.value.querySelectorAll(`#${E}-design-item`);
3868
+ P != null && P.length && Array.from(P).map((W) => {
3869
3869
  var J;
3870
- (J = H == null ? void 0 : H.componentInstance) != null && J.value.onRemoveComponent && H.componentInstance.value.onRemoveComponent(T);
3870
+ (J = W == null ? void 0 : W.componentInstance) != null && J.value.onRemoveComponent && W.componentInstance.value.onRemoveComponent(S);
3871
3871
  });
3872
3872
  });
3873
3873
  }
3874
- function x() {
3874
+ function F() {
3875
3875
  if (n && n.getCustomButtons)
3876
3876
  return n.getCustomButtons();
3877
3877
  }
3878
- function F(T) {
3879
- var O, P;
3880
- if (!((O = t == null ? void 0 : t.schema) != null && O.id))
3878
+ function T(S) {
3879
+ var E, P;
3880
+ if (!((E = t == null ? void 0 : t.schema) != null && E.id))
3881
3881
  return;
3882
- if (!r && T && (r = T.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
3882
+ if (!r && S && (r = S.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
3883
3883
  n.setComponentBasicInfoMap();
3884
3884
  return;
3885
3885
  }
3886
- let S = "";
3886
+ let x = "";
3887
3887
  if (n != null && n.getComponentTitle)
3888
- S = n.getComponentTitle();
3888
+ x = n.getComponentTitle();
3889
3889
  else {
3890
- const { text: H, title: J, label: $, mainTitle: I, name: G, type: W } = t.schema;
3891
- S = H || J || $ || I || G || ((P = L[W]) == null ? void 0 : P.name);
3890
+ const { text: W, title: J, label: $, mainTitle: I, name: G, type: z } = t.schema;
3891
+ x = W || J || $ || I || G || ((P = L[z]) == null ? void 0 : P.name);
3892
3892
  }
3893
- S && r.getControlBasicInfoMap().set(t.schema.id, {
3894
- componentTitle: S,
3895
- parentPathName: S
3893
+ x && r.getControlBasicInfoMap().set(t.schema.id, {
3894
+ componentTitle: x,
3895
+ parentPathName: x
3896
3896
  });
3897
3897
  }
3898
- function j(T) {
3899
- var H;
3900
- const { changeObject: S } = T, { propertyID: O, propertyValue: P } = S;
3901
- if (["text", "title", "label", "name", "mainTitle"].includes((H = T == null ? void 0 : T.changeObject) == null ? void 0 : H.propertyID) && O && P && (F(), r)) {
3898
+ function j(S) {
3899
+ var W;
3900
+ const { changeObject: x } = S, { propertyID: E, propertyValue: P } = x;
3901
+ if (["text", "title", "label", "name", "mainTitle"].includes((W = S == null ? void 0 : S.changeObject) == null ? void 0 : W.propertyID) && E && P && (T(), r)) {
3902
3902
  const J = r.getControlBasicInfoMap(), $ = J.keys().toArray().filter((I) => {
3903
- var G, W;
3904
- return ((G = J.get(I)) == null ? void 0 : G.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
3903
+ var G, z;
3904
+ return ((G = J.get(I)) == null ? void 0 : G.reliedComponentId) === ((z = t == null ? void 0 : t.schema) == null ? void 0 : z.id);
3905
3905
  });
3906
3906
  $ != null && $.length && $.forEach((I) => {
3907
3907
  const G = J.get(I).parentPathName.split(" > ");
@@ -3909,9 +3909,9 @@ function Kn(e, t, n) {
3909
3909
  });
3910
3910
  }
3911
3911
  }
3912
- function R(T) {
3913
- if (j(T), n && n.onPropertyChanged)
3914
- return n.onPropertyChanged(T);
3912
+ function R(S) {
3913
+ if (j(S), n && n.onPropertyChanged)
3914
+ return n.onPropertyChanged(S);
3915
3915
  }
3916
3916
  return i.value = {
3917
3917
  canMove: u(),
@@ -3927,18 +3927,18 @@ function Kn(e, t, n) {
3927
3927
  canAccepts: f,
3928
3928
  getBelongedComponentInstance: s,
3929
3929
  getDraggableDesignItemElement: l,
3930
- getDraggingDisplayText: m,
3931
- getPropConfig: E,
3930
+ getDraggingDisplayText: y,
3931
+ getPropConfig: O,
3932
3932
  getDragScopeElement: g,
3933
- onAcceptMovedChildElement: p,
3933
+ onAcceptMovedChildElement: m,
3934
3934
  onChildElementMovedOut: k,
3935
3935
  addNewChildComponentSchema: w,
3936
3936
  triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
3937
3937
  triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1),
3938
- onRemoveComponent: y,
3939
- getCustomButtons: x,
3938
+ onRemoveComponent: p,
3939
+ getCustomButtons: F,
3940
3940
  onPropertyChanged: R,
3941
- setComponentBasicInfoMap: F,
3941
+ setComponentBasicInfoMap: T,
3942
3942
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
3943
3943
  }, i;
3944
3944
  }
@@ -4088,7 +4088,7 @@ function Cl(e, t, n, a) {
4088
4088
  function wl(e, t, n) {
4089
4089
  return t;
4090
4090
  }
4091
- const kl = "https://json-schema.org/draft/2020-12/schema", xl = "https://farris-design.gitee.io/response-form.schema.json", Sl = "response-form", Fl = "A Farris Data Collection Component", Tl = "object", Bl = {
4091
+ const kl = "https://json-schema.org/draft/2020-12/schema", xl = "https://farris-design.gitee.io/response-form.schema.json", Fl = "response-form", Sl = "A Farris Data Collection Component", Tl = "object", Bl = {
4092
4092
  id: {
4093
4093
  description: "The unique identifier for a form group",
4094
4094
  type: "string"
@@ -4138,8 +4138,8 @@ const kl = "https://json-schema.org/draft/2020-12/schema", xl = "https://farris-
4138
4138
  ], Ol = {
4139
4139
  $schema: kl,
4140
4140
  $id: xl,
4141
- title: Sl,
4142
- description: Fl,
4141
+ title: Fl,
4142
+ description: Sl,
4143
4143
  type: Tl,
4144
4144
  properties: Bl,
4145
4145
  required: Ml
@@ -4344,24 +4344,24 @@ function Ql(e, t) {
4344
4344
  function n(f) {
4345
4345
  if (f == null)
4346
4346
  return 0;
4347
- let m = 0;
4347
+ let y = 0;
4348
4348
  for (let g = 0; g < f.length; g++) {
4349
- const p = f.charCodeAt(g);
4350
- p >= 0 && p <= 128 ? m++ : m = m + 2;
4349
+ const m = f.charCodeAt(g);
4350
+ m >= 0 && m <= 128 ? y++ : y = y + 2;
4351
4351
  }
4352
- return m;
4352
+ return y;
4353
4353
  }
4354
- function a(f, m) {
4354
+ function a(f, y) {
4355
4355
  if (f !== "" && f !== void 0 && f !== null) {
4356
4356
  f = "" + f;
4357
4357
  const g = f.length;
4358
- let p = "", w = 0;
4358
+ let m = "", w = 0;
4359
4359
  for (let k = 0; k < g; k++) {
4360
- const E = f.charAt(k);
4361
- if (w++, encodeURI(E).length > 4 && w++, p = p.concat(E), w >= m)
4362
- return p = p.concat("..."), p;
4360
+ const O = f.charAt(k);
4361
+ if (w++, encodeURI(O).length > 4 && w++, m = m.concat(O), w >= y)
4362
+ return m = m.concat("..."), m;
4363
4363
  }
4364
- if (w < m)
4364
+ if (w < y)
4365
4365
  return f;
4366
4366
  }
4367
4367
  return "";
@@ -4403,10 +4403,10 @@ function Zl(e) {
4403
4403
  }
4404
4404
  function Kl(e, t, n, a, o) {
4405
4405
  const i = C(e.exceptionInfo), r = N(() => {
4406
- const m = t.value === "question" ? "warning" : t.value, g = {
4406
+ const y = t.value === "question" ? "warning" : t.value, g = {
4407
4407
  "f-icon": !0
4408
- }, p = `f-icon-${m}`;
4409
- return g[p] = !0, g;
4408
+ }, m = `f-icon-${y}`;
4409
+ return g[m] = !0, g;
4410
4410
  }), u = N(() => n.value || i.value && i.value.message), d = N(() => a.value), c = N(() => !!a.value), h = N(() => !!i.value);
4411
4411
  function s() {
4412
4412
  return h.value ? Ql(i, o) : c.value ? Zl(d) : () => null;
@@ -4454,9 +4454,9 @@ function er(e, t, n, a) {
4454
4454
  }, [u.value])]);
4455
4455
  }
4456
4456
  function tr(e, t, n, a, o) {
4457
- const i = C(e.type), r = C(e.buttons), u = C(e.exceptionInfo), d = C(o.ok || e.okButtonText), c = C(o.cancel || e.cancelButtonText), h = C(e.showCancelButton), s = C(e.showOkButton), l = N(() => !!(r.value && r.value.length)), f = N(() => u.value && u.value.message && u.value.detail), m = N(() => !(r.value && r.value.length) && (s.value || h.value)), g = er(e, n, a, o);
4457
+ const i = C(e.type), r = C(e.buttons), u = C(e.exceptionInfo), d = C(o.ok || e.okButtonText), c = C(o.cancel || e.cancelButtonText), h = C(e.showCancelButton), s = C(e.showOkButton), l = N(() => !!(r.value && r.value.length)), f = N(() => u.value && u.value.message && u.value.detail), y = N(() => !(r.value && r.value.length) && (s.value || h.value)), g = er(e, n, a, o);
4458
4458
  d.value === "关闭" ? d.value = o.close : d.value === "知道了" && (d.value = o.exception.roger);
4459
- function p(k) {
4459
+ function m(k) {
4460
4460
  i.value === "question" && t.emit("reject"), t.emit("close");
4461
4461
  }
4462
4462
  function w(k) {
@@ -4464,11 +4464,11 @@ function tr(e, t, n, a, o) {
4464
4464
  }
4465
4465
  return () => v("div", {
4466
4466
  class: "modal-footer"
4467
- }, [f.value && g(), m.value && h.value && v("button", {
4467
+ }, [f.value && g(), y.value && h.value && v("button", {
4468
4468
  type: "button",
4469
4469
  class: "btn btn-secondary btn-lg",
4470
- onClick: p
4471
- }, [c.value]), m.value && s.value && v("button", {
4470
+ onClick: m
4471
+ }, [c.value]), y.value && s.value && v("button", {
4472
4472
  type: "button",
4473
4473
  class: "btn btn-primary btn-lg",
4474
4474
  onClick: w
@@ -4533,7 +4533,7 @@ const Et = /* @__PURE__ */ ae({
4533
4533
  style: s.value
4534
4534
  }, [l.value]);
4535
4535
  }
4536
- function m() {
4536
+ function y() {
4537
4537
  switch (a.value) {
4538
4538
  case "prompt":
4539
4539
  return Jl(e, c);
@@ -4541,7 +4541,7 @@ const Et = /* @__PURE__ */ ae({
4541
4541
  return Kl(e, a, o, i, n);
4542
4542
  }
4543
4543
  }
4544
- const g = m(), p = tr(e, t, d, h, n);
4544
+ const g = y(), m = tr(e, t, d, h, n);
4545
4545
  return () => v("div", {
4546
4546
  class: "farris-messager"
4547
4547
  }, [!e.exceptionInfo && v("div", {
@@ -4550,7 +4550,7 @@ const Et = /* @__PURE__ */ ae({
4550
4550
  }, null), v("section", {
4551
4551
  class: r.value,
4552
4552
  style: u.value
4553
- }, [g()]), p(), f()]);
4553
+ }, [g()]), m(), f()]);
4554
4554
  }
4555
4555
  }), De = class De {
4556
4556
  static show(t) {
@@ -4682,7 +4682,7 @@ function ar(e, t, n, a, o) {
4682
4682
  })), { judgeCanOpen: d } = ta(e, o), c = N(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), h = ke(ea, null), s = C();
4683
4683
  async function l(g) {
4684
4684
  if (await d() && c.value) {
4685
- const p = !!t.slots.default;
4685
+ const m = !!t.slots.default;
4686
4686
  if (i.value === "Modal") {
4687
4687
  const w = e.modalOptions, k = h == null ? void 0 : h.open({
4688
4688
  ...w,
@@ -4695,36 +4695,36 @@ function ar(e, t, n, a, o) {
4695
4695
  host: document.body,
4696
4696
  backgroundColor: "rgba(0,0,0,.15)",
4697
4697
  render: () => t.slots.default && t.slots.default()
4698
- }), p && i.value === "Popup" && a.togglePopup(!0), p && r.value && a.hidePopup(), t.emit("clickButton", { origin: g, value: e.modelValue });
4698
+ }), m && i.value === "Popup" && a.togglePopup(!0), m && r.value && a.hidePopup(), t.emit("clickButton", { origin: g, value: e.modelValue });
4699
4699
  }
4700
4700
  }
4701
4701
  function f(g) {
4702
4702
  t.emit("mouseEnterIcon", g);
4703
4703
  }
4704
- function m(g) {
4704
+ function y(g) {
4705
4705
  t.emit("mouseLeaveIcon", g);
4706
4706
  }
4707
4707
  return {
4708
4708
  buttonGroupClass: u,
4709
4709
  onClickButton: l,
4710
4710
  onMouseEnterButton: f,
4711
- onMouseLeaveButton: m,
4711
+ onMouseLeaveButton: y,
4712
4712
  modalRef: s
4713
4713
  };
4714
4714
  }
4715
4715
  function or(e, t, n, a, o, i) {
4716
4716
  const r = C(!1), u = N(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: d, hasClearClass: c } = i;
4717
- function h(m) {
4718
- r.value = m, c.value = m;
4717
+ function h(y) {
4718
+ r.value = y, c.value = y;
4719
4719
  }
4720
4720
  Z(o, () => {
4721
4721
  h(!!o.value);
4722
4722
  });
4723
- function s(m) {
4724
- const g = !e.readonly && !e.disable && e.editable, p = !e.editable;
4725
- m.stopPropagation(), (g || p) && (d(""), o.value = "", h(!r.value), t.emit("clear"));
4723
+ function s(y) {
4724
+ const g = !e.readonly && !e.disable && e.editable, m = !e.editable;
4725
+ y.stopPropagation(), (g || m) && (d(""), o.value = "", h(!r.value), t.emit("clear"));
4726
4726
  }
4727
- function l(m) {
4727
+ function l(y) {
4728
4728
  if (u.value) {
4729
4729
  if (!n.value) {
4730
4730
  h(!1);
@@ -4733,7 +4733,7 @@ function or(e, t, n, a, o, i) {
4733
4733
  !e.disable && !e.readonly && h(!0);
4734
4734
  }
4735
4735
  }
4736
- function f(m) {
4736
+ function f(y) {
4737
4737
  u.value && h(!1);
4738
4738
  }
4739
4739
  return {
@@ -4745,22 +4745,22 @@ function or(e, t, n, a, o, i) {
4745
4745
  };
4746
4746
  }
4747
4747
  function ir(e, t, n, a, o) {
4748
- const i = N(() => e.popupOnInput), r = N(() => e.popupOnFocus), { shouldPopupContent: u, closeAllPopover: d } = o, c = C(!1), h = N(() => e.enableTitle ? n.value : ""), s = N(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), l = N(() => e.readonly || !e.editable), f = C(!1), m = N(() => !e.disable && f.value), g = N(() => ({
4748
+ const i = N(() => e.popupOnInput), r = N(() => e.popupOnFocus), { shouldPopupContent: u, closeAllPopover: d } = o, c = C(!1), h = N(() => e.enableTitle ? n.value : ""), s = N(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), l = N(() => e.readonly || !e.editable), f = C(!1), y = N(() => !e.disable && f.value), g = N(() => ({
4749
4749
  "text-left": e.textAlign === "left",
4750
4750
  "text-center": e.textAlign === "center",
4751
4751
  "text-right": e.textAlign === "right",
4752
4752
  "form-control": !0,
4753
4753
  "f-utils-fill": !0
4754
- })), p = N(() => ({
4754
+ })), m = N(() => ({
4755
4755
  "input-group": !0,
4756
4756
  "f-state-disabled": e.disable,
4757
4757
  "f-state-editable": e.editable && !e.disable && !e.readonly,
4758
4758
  "f-state-readonly": e.readonly,
4759
- "f-state-focus": m.value,
4759
+ "f-state-focus": y.value,
4760
4760
  "input-group--has-clear": e.enableClear && c.value
4761
4761
  }));
4762
- function w(M, T = !0) {
4763
- n.value = M, T && (t.emit("change", M), t.emit("update:modelValue", M));
4762
+ function w(M, S = !0) {
4763
+ n.value = M, S && (t.emit("change", M), t.emit("update:modelValue", M));
4764
4764
  }
4765
4765
  function k(M) {
4766
4766
  u.value = !1, w(M, !0);
@@ -4771,7 +4771,7 @@ function ir(e, t, n, a, o) {
4771
4771
  n.value = M;
4772
4772
  }
4773
4773
  );
4774
- function E(M) {
4774
+ function O(M) {
4775
4775
  f.value = !1, t.emit("blur", M), M.stopPropagation();
4776
4776
  }
4777
4777
  function B(M) {
@@ -4780,56 +4780,56 @@ function ir(e, t, n, a, o) {
4780
4780
  function b(M) {
4781
4781
  !e.disable && !e.readonly && (f.value = !0, l.value || (t.emit("focus", M), r.value && !u.value && o.popup()));
4782
4782
  }
4783
- function y(M) {
4783
+ function p(M) {
4784
4784
  t.emit("input", M);
4785
- const T = M.target.value;
4786
- a.value = T, n.value !== T && w(T, e.updateOn === "change"), i.value && !u.value && o.popup();
4785
+ const S = M.target.value;
4786
+ a.value = S, n.value !== S && w(S, e.updateOn === "change"), i.value && !u.value && o.popup();
4787
4787
  }
4788
- function x(M) {
4788
+ function F(M) {
4789
4789
  M.target.tagName !== "INPUT" && M.preventDefault(), M.stopPropagation();
4790
4790
  }
4791
- function F(M) {
4791
+ function T(M) {
4792
4792
  t.emit("keydown", M);
4793
4793
  }
4794
4794
  function j(M) {
4795
4795
  M.key === "Enter" && (i.value || r.value) && o.hidePopup(), t.emit("keyup", M);
4796
4796
  }
4797
4797
  function R(M) {
4798
- const T = M.target.value;
4799
- M.stopPropagation(), w(T);
4798
+ const S = M.target.value;
4799
+ M.stopPropagation(), w(S);
4800
4800
  }
4801
4801
  return {
4802
- hasFocusedTextBox: m,
4802
+ hasFocusedTextBox: y,
4803
4803
  isTextBoxReadonly: l,
4804
4804
  textBoxClass: g,
4805
4805
  textBoxPlaceholder: s,
4806
4806
  textBoxTitle: h,
4807
- inputGroupClass: p,
4807
+ inputGroupClass: m,
4808
4808
  hasClearClass: c,
4809
4809
  changeTextBoxValue: w,
4810
4810
  commitValue: k,
4811
- onBlurTextBox: E,
4811
+ onBlurTextBox: O,
4812
4812
  onClickTextBox: B,
4813
4813
  onFocusTextBox: b,
4814
- onInput: y,
4815
- onKeyDownTextBox: F,
4814
+ onInput: p,
4815
+ onKeyDownTextBox: T,
4816
4816
  onKeyUpTextBox: j,
4817
- onMouseDownTextBox: x,
4817
+ onMouseDownTextBox: F,
4818
4818
  onTextBoxValueChange: R
4819
4819
  };
4820
4820
  }
4821
4821
  const nt = "FarrisVue_PopoverInstancesKey";
4822
4822
  function lr(e, t, n, a) {
4823
4823
  const o = C(), i = C(!1), { judgeCanOpen: r } = ta(e, a);
4824
- Z(() => o.value, (f, m) => {
4824
+ Z(() => o.value, (f, y) => {
4825
4825
  window[nt] = window[nt] || /* @__PURE__ */ new WeakMap(), f ? window[nt].set(n.value, f) : window[nt].delete(n.value);
4826
4826
  });
4827
4827
  function u() {
4828
4828
  if (window[nt]) {
4829
4829
  const f = window[nt];
4830
- document.querySelectorAll(".f-button-edit,.v-popover").forEach((m) => {
4831
- const g = f.get(m);
4832
- g && m !== n.value && !n.value.closest(".popover-fitcontent") && g.hide();
4830
+ document.querySelectorAll(".f-button-edit,.v-popover").forEach((y) => {
4831
+ const g = f.get(y);
4832
+ g && y !== n.value && !n.value.closest(".popover-fitcontent") && g.hide();
4833
4833
  });
4834
4834
  }
4835
4835
  }
@@ -4873,27 +4873,24 @@ function rr(e, t, n) {
4873
4873
  onInput: s,
4874
4874
  onKeyDownTextBox: l,
4875
4875
  onKeyUpTextBox: f,
4876
- onMouseDownTextBox: m,
4876
+ onMouseDownTextBox: y,
4877
4877
  onTextBoxValueChange: g
4878
- } = n, p = C(e.id), {
4878
+ } = n, m = C(e.id), {
4879
4879
  uuid: w
4880
- } = Wa(), k = N(() => ({
4881
- "border-top-right-radius": "6px",
4882
- "border-bottom-right-radius": "6px"
4883
- }));
4880
+ } = Wa();
4884
4881
  be(() => {
4885
- var x, F;
4886
- e.selectOnCreated && ((x = a.value) == null || x.select()), e.focusOnCreated && ((F = a.value) == null || F.focus({
4882
+ var p, F;
4883
+ e.selectOnCreated && ((p = a.value) == null || p.select()), e.focusOnCreated && ((F = a.value) == null || F.focus({
4887
4884
  preventScroll: !0
4888
- })), p.value || (p.value = "button-edit_" + w(8)), p.value = p.value + "-textbox";
4885
+ })), m.value || (m.value = "button-edit_" + w(8)), m.value = m.value + "-textbox";
4889
4886
  });
4890
- const E = C(!1), B = (x) => {
4891
- x.preventDefault(), E.value = !0;
4892
- }, b = (x) => {
4893
- x.preventDefault(), E.value = !1, s(x);
4887
+ const k = C(!1), O = (p) => {
4888
+ p.preventDefault(), k.value = !0;
4889
+ }, B = (p) => {
4890
+ p.preventDefault(), k.value = !1, s(p);
4894
4891
  };
4895
- function y(x) {
4896
- E.value || s(x);
4892
+ function b(p) {
4893
+ k.value || s(p);
4897
4894
  }
4898
4895
  return () => v("input", {
4899
4896
  id: e.id ? e.id + "-textbox" : void 0,
@@ -4901,7 +4898,6 @@ function rr(e, t, n) {
4901
4898
  name: "input-group-value",
4902
4899
  autocomplete: e.autoComplete ? "on" : "off",
4903
4900
  class: i.value,
4904
- style: k.value,
4905
4901
  disabled: e.disable,
4906
4902
  maxlength: e.maxLength,
4907
4903
  minlength: e.minLength,
@@ -4915,12 +4911,12 @@ function rr(e, t, n) {
4915
4911
  onChange: g,
4916
4912
  onClick: c,
4917
4913
  onFocus: h,
4918
- onInput: y,
4914
+ onInput: b,
4919
4915
  onKeydown: l,
4920
4916
  onKeyup: f,
4921
- onMousedown: m,
4922
- onCompositionend: b,
4923
- onCompositionstart: B
4917
+ onMousedown: y,
4918
+ onCompositionend: B,
4919
+ onCompositionstart: O
4924
4920
  }, null);
4925
4921
  }
4926
4922
  function sr(e, t, n) {
@@ -4930,22 +4926,22 @@ function sr(e, t, n) {
4930
4926
  onBlurTextBox: u,
4931
4927
  onClickTextBox: d,
4932
4928
  textBoxPlaceholder: c
4933
- } = n, h = N(() => t.value ? t.value.split(a.value).map((m) => ({
4934
- name: m,
4929
+ } = n, h = N(() => t.value ? t.value.split(a.value).map((y) => ({
4930
+ name: y,
4935
4931
  selectable: !0
4936
4932
  })) : []);
4937
- function s(m) {
4938
- i(m.map((g) => g.name).join(a.value), !0);
4933
+ function s(y) {
4934
+ i(y.map((g) => g.name).join(a.value), !0);
4939
4935
  }
4940
- Z(() => e.separator, (m) => {
4941
- a.value = m;
4936
+ Z(() => e.separator, (y) => {
4937
+ a.value = y;
4942
4938
  });
4943
4939
  const l = C(!e.disable && !e.readonly);
4944
- Z([() => e.disable, () => e.readonly], ([m, g], [p, w]) => {
4945
- l.value = !m && !g;
4940
+ Z([() => e.disable, () => e.readonly], ([y, g], [m, w]) => {
4941
+ l.value = !y && !g;
4946
4942
  });
4947
- function f(m) {
4948
- d(m);
4943
+ function f(y) {
4944
+ d(y);
4949
4945
  }
4950
4946
  return () => v(Aa, {
4951
4947
  tabindex: e.tabIndex,
@@ -4972,8 +4968,8 @@ function ur(e, t, n, a) {
4972
4968
  enableClearButton: d,
4973
4969
  showClearButton: c,
4974
4970
  onClearValue: h
4975
- } = a, s = C(), l = Dn((m) => {
4976
- i(m);
4971
+ } = a, s = C(), l = Dn((y) => {
4972
+ i(y);
4977
4973
  }, e.buttonBehavior === "Modal" ? 0 : 200), f = () => {
4978
4974
  t.emit("beforeClearValue");
4979
4975
  };
@@ -4996,7 +4992,7 @@ function ur(e, t, n, a) {
4996
4992
  class: "input-group-text input-group-append-button",
4997
4993
  innerHTML: e.buttonContent,
4998
4994
  ref: s,
4999
- onClick: (m) => l(m),
4995
+ onClick: (y) => l(y),
5000
4996
  onMouseenter: r,
5001
4997
  onMouseleave: u
5002
4998
  }, null) : null]),
@@ -5040,53 +5036,50 @@ const Rt = /* @__PURE__ */ ae({
5040
5036
  togglePopup: c
5041
5037
  } = i, h = ar(e, t, n, i, o), s = C(""), l = ir(e, t, o, s, i), {
5042
5038
  hasFocusedTextBox: f,
5043
- commitValue: m,
5039
+ commitValue: y,
5044
5040
  inputGroupClass: g
5045
- } = l, p = or(e, t, o, f, s, l), {
5041
+ } = l, m = or(e, t, o, f, s, l), {
5046
5042
  onMouseEnterTextBox: w,
5047
5043
  onMouseLeaveTextBox: k
5048
- } = p, E = N(() => {
5049
- const O = {
5044
+ } = m, O = N(() => {
5045
+ const x = {
5050
5046
  "f-button-edit": !0,
5051
5047
  "f-cmp-inputgroup": !0,
5052
5048
  "f-button-edit-nowrap": !e.wrapText
5053
5049
  };
5054
- return a.value && a.value.split(" ").reduce((P, H) => (P[H] = !0, P), O), O;
5050
+ return a.value && a.value.split(" ").reduce((E, P) => (E[P] = !0, E), x), x;
5055
5051
  }), B = N(() => ({
5056
5052
  overflow: e.wrapText ? "hidden" : ""
5057
- })), b = N(() => ({
5058
- paddingLeft: "3px",
5059
- backgroundColor: "#fff"
5060
5053
  }));
5061
- function y() {
5054
+ function b() {
5062
5055
  if (!e.multiSelect || e.inputType !== "tag" || !n.value)
5063
5056
  return 0;
5064
- let O = 0;
5065
- const P = Array.from(n.value.querySelectorAll(".farris-tag-item"));
5066
- return P && P.length && (O = P.map((H) => H.offsetTop).filter((H) => H > 20).length), O;
5057
+ let x = 0;
5058
+ const E = Array.from(n.value.querySelectorAll(".farris-tag-item"));
5059
+ return E && E.length && (x = E.map((P) => P.offsetTop).filter((P) => P > 20).length), x;
5067
5060
  }
5068
- const x = C(y());
5061
+ const p = C(b());
5069
5062
  an(() => {
5070
- x.value = y();
5063
+ p.value = b();
5071
5064
  });
5072
5065
  function F() {
5073
- return e.multiSelect && e.inputType === "tag" ? () => v(it, null, [sr(e, o, l)(), !!x.value && v("div", {
5066
+ return e.multiSelect && e.inputType === "tag" ? () => v(it, null, [sr(e, o, l)(), !!p.value && v("div", {
5074
5067
  class: "d-flex flex-row mr-2 more-tags",
5075
5068
  "more-tags": !0
5076
5069
  }, [v("span", {
5077
5070
  class: "multi--more-text"
5078
- }, [le("+"), x.value])])]) : rr(e, o, l);
5071
+ }, [le("+"), p.value])])]) : rr(e, o, l);
5079
5072
  }
5080
- let j = F();
5073
+ let T = F();
5081
5074
  Z([() => e.multiSelect, () => e.inputType], () => {
5082
- j = F();
5075
+ T = F();
5083
5076
  });
5084
5077
  const {
5085
- renderButtonGroup: R,
5086
- buttonHandleElement: M
5087
- } = ur(e, t, h, p), T = cr(e, t, i), S = {
5078
+ renderButtonGroup: j,
5079
+ buttonHandleElement: R
5080
+ } = ur(e, t, h, m), M = cr(e, t, i), S = {
5088
5081
  displayText: s,
5089
- commitValue: m,
5082
+ commitValue: y,
5090
5083
  elementRef: n,
5091
5084
  hidePopup: u,
5092
5085
  showPopup: d,
@@ -5094,11 +5087,11 @@ const Rt = /* @__PURE__ */ ae({
5094
5087
  shouldPopupContent: r,
5095
5088
  togglePopup: c,
5096
5089
  openDialog: () => {
5097
- M.value && e.buttonBehavior === "Modal" && M.value.click();
5090
+ R.value && e.buttonBehavior === "Modal" && R.value.click();
5098
5091
  },
5099
5092
  getModal: () => {
5100
- var O;
5101
- return e.buttonBehavior === "Modal" ? (O = h.modalRef.value) == null ? void 0 : O.value : null;
5093
+ var x;
5094
+ return e.buttonBehavior === "Modal" ? (x = h.modalRef.value) == null ? void 0 : x.value : null;
5102
5095
  }
5103
5096
  };
5104
5097
  return be(() => {
@@ -5106,22 +5099,21 @@ const Rt = /* @__PURE__ */ ae({
5106
5099
  document.body.click();
5107
5100
  };
5108
5101
  }), On(() => {
5109
- var O;
5110
- window.onresize = null, (O = window[nt]) == null || O.delete(n.value);
5102
+ var x;
5103
+ window.onresize = null, (x = window[nt]) == null || x.delete(n.value);
5111
5104
  }), t.expose(S), () => {
5112
- var O, P;
5105
+ var x, E;
5113
5106
  return v(it, null, [v("div", ft(t.attrs, {
5114
5107
  ref: n,
5115
- class: E.value,
5108
+ class: O.value,
5116
5109
  id: e.id ? e.id : void 0,
5117
5110
  style: B.value
5118
5111
  }), [v("div", {
5119
5112
  id: e.id ? `${e.id}-input-group` : void 0,
5120
5113
  class: g.value,
5121
- style: b.value,
5122
5114
  onMouseenter: w,
5123
5115
  onMouseleave: k
5124
- }, [(P = (O = t.slots).precontent) == null ? void 0 : P.call(O), j(), R()])]), r.value && T()]);
5116
+ }, [(E = (x = t.slots).precontent) == null ? void 0 : E.call(x), T(), j()])]), r.value && M()]);
5125
5117
  };
5126
5118
  }
5127
5119
  }), dr = "https://json-schema.org/draft/2020-12/schema", fr = "https://farris-design.gitee.io/field-selector.schema.json", pr = "field-selector", mr = "A Farris Input Component", yr = "object", vr = {
@@ -5366,7 +5358,7 @@ const aa = {
5366
5358
  }
5367
5359
  }, gr = /* @__PURE__ */ new Map([
5368
5360
  ["appearance", Pn]
5369
- ]), br = "https://json-schema.org/draft/2020-12/schema", Cr = "https://farris-design.gitee.io/combo-list.schema.json", wr = "combo-list", kr = "A Farris Input Component", xr = "object", Sr = {
5361
+ ]), br = "https://json-schema.org/draft/2020-12/schema", Cr = "https://farris-design.gitee.io/combo-list.schema.json", wr = "combo-list", kr = "A Farris Input Component", xr = "object", Fr = {
5370
5362
  id: {
5371
5363
  description: "The unique identifier for a combo list",
5372
5364
  type: "string"
@@ -5546,7 +5538,7 @@ const aa = {
5546
5538
  type: "boolean",
5547
5539
  default: !1
5548
5540
  }
5549
- }, Fr = [
5541
+ }, Sr = [
5550
5542
  "type"
5551
5543
  ], Tr = [
5552
5544
  "id",
@@ -5559,8 +5551,8 @@ const aa = {
5559
5551
  title: wr,
5560
5552
  description: kr,
5561
5553
  type: xr,
5562
- properties: Sr,
5563
- required: Fr,
5554
+ properties: Fr,
5555
+ required: Sr,
5564
5556
  ignore: Tr
5565
5557
  };
5566
5558
  function Mr(e, t, n) {
@@ -5774,38 +5766,38 @@ const un = {
5774
5766
  a.value = e.dataSource;
5775
5767
  }), N(() => e.enableSearch ? "SearchBar" : "ContentHeader");
5776
5768
  const s = N(() => {
5777
- const p = {};
5778
- return r.value !== void 0 && (p.width = `${r.value}px`), u.value !== void 0 && u.value > 0 && (p.maxHeight = `${u.value}px`), p;
5769
+ const m = {};
5770
+ return r.value !== void 0 && (m.width = `${r.value}px`), u.value !== void 0 && u.value > 0 && (m.maxHeight = `${u.value}px`), m;
5779
5771
  });
5780
- function l(p) {
5781
- n.value.search(p);
5772
+ function l(m) {
5773
+ n.value.search(m);
5782
5774
  }
5783
- function f(p) {
5784
- o.value = p.map((w) => Object.assign({}, w)), d.value = p.map((w) => w[e.idField]), t.emit("selectionChange", o.value);
5775
+ function f(m) {
5776
+ o.value = m.map((w) => Object.assign({}, w)), d.value = m.map((w) => w[e.idField]), t.emit("selectionChange", o.value);
5785
5777
  }
5786
- function m(p) {
5778
+ function y(m) {
5787
5779
  if (e.enableHighlightSearch)
5788
5780
  return;
5789
5781
  let w = [];
5790
5782
  const {
5791
5783
  searchOption: k
5792
5784
  } = e;
5793
- typeof k == "function" ? w = a.value.filter((E) => k(p, E)) : w = a.value.filter((E) => E[e.valueField].indexOf(p) > -1 || E[e.textField].indexOf(p) > -1), n.value.updateDataSource(w);
5785
+ typeof k == "function" ? w = a.value.filter((O) => k(m, O)) : w = a.value.filter((O) => O[e.valueField].indexOf(m) > -1 || O[e.textField].indexOf(m) > -1), n.value.updateDataSource(w);
5794
5786
  }
5795
- Z([() => e.selectedValues], ([p]) => {
5796
- e.multiSelect ? d.value = p.split(i.value) : d.value = [p];
5787
+ Z([() => e.selectedValues], ([m]) => {
5788
+ e.multiSelect ? d.value = m.split(i.value) : d.value = [m];
5797
5789
  });
5798
- function g(p) {
5799
- n.value.activeRowById(p);
5790
+ function g(m) {
5791
+ n.value.activeRowById(m);
5800
5792
  }
5801
5793
  return be(() => {
5802
- var p, w;
5794
+ var m, w;
5803
5795
  if (!e.multiSelect) {
5804
- const k = (p = d.value) == null ? void 0 : p[0];
5805
- let E = k;
5796
+ const k = (m = d.value) == null ? void 0 : m[0];
5797
+ let O = k;
5806
5798
  if (!je(k)) {
5807
5799
  const B = typeof k, b = typeof ((w = a.value[0]) == null ? void 0 : w[e.valueField || e.idField]);
5808
- b === "number" && B !== b && (E = Number(k)), b === "boolean" && B !== b && (E = k === "true" ? !0 : k === "false" ? !1 : k), g(E);
5800
+ b === "number" && B !== b && (O = Number(k)), b === "boolean" && B !== b && (O = k === "true" ? !0 : k === "false" ? !1 : k), g(O);
5809
5801
  }
5810
5802
  }
5811
5803
  }), t.expose({
@@ -5830,27 +5822,27 @@ const un = {
5830
5822
  enableHighlightSearch: e.enableHighlightSearch,
5831
5823
  selectionValues: d.value,
5832
5824
  onSelectionChange: f,
5833
- onAfterSearch: m
5825
+ onAfterSearch: y
5834
5826
  }, null)]);
5835
5827
  }
5836
5828
  });
5837
5829
  function Pr(e) {
5838
5830
  const { t } = xt(), n = C(""), a = C(e.modelValue), o = C(e.data || []), i = C(e.editable);
5839
5831
  function r(l) {
5840
- const f = e.multiSelect ? String(l).split(e.separator) : [String(l)], m = f.map((w) => [w, !0]), g = new Map(m);
5832
+ const f = e.multiSelect ? String(l).split(e.separator) : [String(l)], y = f.map((w) => [w, !0]), g = new Map(y);
5841
5833
  return o.value.filter((w) => g.has(String(w[e.valueField]))).sort((w, k) => {
5842
- const E = f.indexOf(w[e.valueField]), B = f.indexOf(k[e.valueField]);
5843
- return E - B;
5834
+ const O = f.indexOf(w[e.valueField]), B = f.indexOf(k[e.valueField]);
5835
+ return O - B;
5844
5836
  });
5845
5837
  }
5846
5838
  function u(l) {
5847
- const f = r(l).map((m) => m[e.textField]).join(e.separator);
5839
+ const f = r(l).map((y) => y[e.textField]).join(e.separator);
5848
5840
  n.value = i.value ? f || l : f;
5849
5841
  }
5850
5842
  function d(l) {
5851
5843
  if (e.multiSelect) {
5852
- const f = l.split(e.separator).map((g) => [g, !0]), m = new Map(f);
5853
- return o.value.filter((g) => m.has(g[e.textField]));
5844
+ const f = l.split(e.separator).map((g) => [g, !0]), y = new Map(f);
5845
+ return o.value.filter((g) => y.has(g[e.textField]));
5854
5846
  }
5855
5847
  return o.value.filter((f) => "" + f[e.textField] === l);
5856
5848
  }
@@ -5860,13 +5852,13 @@ function Pr(e) {
5860
5852
  }
5861
5853
  function h(l) {
5862
5854
  let f = d(l);
5863
- const m = f && f.length > 0;
5864
- return i.value && !m && (f = c(l)), f;
5855
+ const y = f && f.length > 0;
5856
+ return i.value && !y && (f = c(l)), f;
5865
5857
  }
5866
5858
  function s() {
5867
- const { url: l, method: f = "GET", headers: m = { "Content-Type": "application/json;charset=utf-8;" }, body: g = null } = e.remote, p = f.toLowerCase() === "get" ? { method: f, headers: m } : { method: f, headers: m, body: g };
5859
+ const { url: l, method: f = "GET", headers: y = { "Content-Type": "application/json;charset=utf-8;" }, body: g = null } = e.remote, m = f.toLowerCase() === "get" ? { method: f, headers: y } : { method: f, headers: y, body: g };
5868
5860
  let w = !1;
5869
- fetch(new Request(l, p)).then((k) => {
5861
+ fetch(new Request(l, m)).then((k) => {
5870
5862
  var B, b;
5871
5863
  if (k.status === 200)
5872
5864
  return w = !!((b = (B = k.headers) == null ? void 0 : B.get("content-type")) != null && b.includes("application/json")), w ? k.text() : k.json();
@@ -5881,7 +5873,7 @@ function Pr(e) {
5881
5873
  o.value = e.data;
5882
5874
  }), Z([o], ([l]) => {
5883
5875
  if (e.modelValue != null) {
5884
- const f = l.find((m) => m[e.valueField] === e.modelValue);
5876
+ const f = l.find((y) => y[e.valueField] === e.modelValue);
5885
5877
  f && (n.value = f[e.textField]);
5886
5878
  }
5887
5879
  }), Z(() => e.modelValue, (l) => {
@@ -5901,47 +5893,47 @@ const lt = /* @__PURE__ */ ae({
5901
5893
  editable: s,
5902
5894
  modelValue: l,
5903
5895
  getSelectedItemsByDisplayText: f,
5904
- getItemsByDisplayText: m
5896
+ getItemsByDisplayText: y
5905
5897
  } = Pr(e), g = C(e.dropDownIcon);
5906
5898
  g.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (g.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
5907
- const p = N(() => e.multiSelect), w = N(() => o.value ? o.value.elementRef.getBoundingClientRect().width : 0);
5899
+ const m = N(() => e.multiSelect), w = N(() => o.value ? o.value.elementRef.getBoundingClientRect().width : 0);
5908
5900
  function k() {
5909
- !p.value && o.value && o.value.hidePopup();
5901
+ !m.value && o.value && o.value.hidePopup();
5910
5902
  }
5911
- function E(T) {
5912
- h.value = T.map((O) => O[e.textField]).join(e.separator);
5913
- let S = "";
5914
- T.length === 1 ? S = T[0][e.valueField] : S = T.map((O) => O[e.valueField]).join(e.separator), l.value !== S && (l.value = S, t.emit("update:modelValue", l.value), t.emit("change", T, l.value));
5903
+ function O(S) {
5904
+ h.value = S.map((E) => E[e.textField]).join(e.separator);
5905
+ let x = "";
5906
+ S.length === 1 ? x = S[0][e.valueField] : x = S.map((E) => E[e.valueField]).join(e.separator), l.value !== x && (l.value = x, t.emit("update:modelValue", l.value), t.emit("change", S, l.value));
5915
5907
  }
5916
5908
  function B() {
5917
- const T = f(h.value);
5918
- E(T);
5909
+ const S = f(h.value);
5910
+ O(S);
5919
5911
  }
5920
5912
  function b() {
5921
5913
  d.value || h.value;
5922
5914
  }
5923
- function y(T) {
5924
- var S;
5925
- l.value = "", (S = a.value) == null || S.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
5915
+ function p(S) {
5916
+ var x;
5917
+ l.value = "", (x = a.value) == null || x.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
5926
5918
  }
5927
- function x(T) {
5928
- var S, O;
5929
- e.enableSearch ? ((S = a.value) == null || S.search(T), (O = a.value) == null || O.activeRowById(T)) : (l.value = T, h.value = T, t.emit("update:modelValue", l.value), t.emit("change", [T], T));
5919
+ function F(S) {
5920
+ var x, E;
5921
+ e.enableSearch ? ((x = a.value) == null || x.search(S), (E = a.value) == null || E.activeRowById(S)) : (l.value = S, h.value = S, t.emit("update:modelValue", l.value), t.emit("change", [S], S));
5930
5922
  }
5931
- function F(T) {
5923
+ function T(S) {
5932
5924
  if (e.multiSelect) {
5933
- const S = m(T), P = S.map((H) => H[e.idField || e.valueField]).join(e.separator);
5934
- l.value !== P && (l.value = P, t.emit("update:modelValue", l.value), t.emit("change", S, l.value));
5925
+ const x = y(S), P = x.map((W) => W[e.idField || e.valueField]).join(e.separator);
5926
+ l.value !== P && (l.value = P, t.emit("update:modelValue", l.value), t.emit("change", x, l.value));
5935
5927
  }
5936
5928
  }
5937
5929
  function j() {
5938
5930
  return h.value;
5939
5931
  }
5940
- function R(T) {
5932
+ function R(S) {
5941
5933
  const {
5942
- value: S
5943
- } = T.target;
5944
- x(S), t.emit("input", S);
5934
+ value: x
5935
+ } = S.target;
5936
+ F(x), t.emit("input", x);
5945
5937
  }
5946
5938
  function M() {
5947
5939
  o.value.hidePopup();
@@ -5949,8 +5941,8 @@ const lt = /* @__PURE__ */ ae({
5949
5941
  return t.expose({
5950
5942
  getDisplayText: j,
5951
5943
  hidePopup: M
5952
- }), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([T, S, O, P, H]) => {
5953
- i.value = T, s.value = S, r.value = O, u.value = P, d.value = H;
5944
+ }), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, x, E, P, W]) => {
5945
+ i.value = S, s.value = x, r.value = E, u.value = P, d.value = W;
5954
5946
  }), () => v(In, {
5955
5947
  ref: o,
5956
5948
  id: e.id,
@@ -5967,12 +5959,12 @@ const lt = /* @__PURE__ */ ae({
5967
5959
  multiSelect: e.multiSelect,
5968
5960
  inputType: e.multiSelect ? e.viewType : "text",
5969
5961
  modelValue: h.value,
5970
- "onUpdate:modelValue": (T) => h.value = T,
5962
+ "onUpdate:modelValue": (S) => h.value = S,
5971
5963
  focusOnCreated: e.focusOnCreated,
5972
5964
  selectOnCreated: e.selectOnCreated,
5973
- onClear: y,
5965
+ onClear: p,
5974
5966
  onClick: b,
5975
- onChange: F,
5967
+ onChange: T,
5976
5968
  onBlur: B,
5977
5969
  onInput: R,
5978
5970
  beforeOpen: e.beforeOpen,
@@ -5996,8 +5988,8 @@ const lt = /* @__PURE__ */ ae({
5996
5988
  maxHeight: e.maxHeight,
5997
5989
  enableHighlightSearch: e.enableHighlightSearch,
5998
5990
  width: e.fitEditor ? w.value : void 0,
5999
- onSelectionChange: (T) => {
6000
- E(T), k();
5991
+ onSelectionChange: (S) => {
5992
+ O(S), k();
6001
5993
  }
6002
5994
  }, null)]
6003
5995
  });
@@ -6465,59 +6457,59 @@ function sa(e) {
6465
6457
  top: `${o.value}px`,
6466
6458
  cursor: "n-resize"
6467
6459
  })), c = N(() => {
6468
- const p = {
6460
+ const m = {
6469
6461
  display: r.value || i.value ? "block" : "none"
6470
6462
  };
6471
- return o.value > 0 && (p.cursor = "n-resize"), p;
6463
+ return o.value > 0 && (m.cursor = "n-resize"), m;
6472
6464
  });
6473
- function h(p, w, k, E) {
6465
+ function h(m, w, k, O) {
6474
6466
  const B = e.value;
6475
6467
  if (B) {
6476
- const { left: b, right: y, width: x } = B.getBoundingClientRect();
6477
- let F = p.clientX - b;
6478
- E === "right" && (F = y - p.clientX), F > w && (F = w), F < k && (F = k), E === "right" && (F = x - F), a.value = F;
6468
+ const { left: b, right: p, width: F } = B.getBoundingClientRect();
6469
+ let T = m.clientX - b;
6470
+ O === "right" && (T = p - m.clientX), T > w && (T = w), T < k && (T = k), O === "right" && (T = F - T), a.value = T;
6479
6471
  }
6480
6472
  }
6481
- function s(p, w, k, E) {
6473
+ function s(m, w, k, O) {
6482
6474
  const B = e.value;
6483
6475
  if (B) {
6484
- const { top: b, bottom: y, height: x } = B.getBoundingClientRect();
6485
- let F = p.clientY - b;
6486
- E === "bottom" && (F = y - p.clientY), F > w && (F = w), F < k && (F = k), E === "bottom" && (F = x - F), o.value = F;
6476
+ const { top: b, bottom: p, height: F } = B.getBoundingClientRect();
6477
+ let T = m.clientY - b;
6478
+ O === "bottom" && (T = p - m.clientY), T > w && (T = w), T < k && (T = k), O === "bottom" && (T = F - T), o.value = T;
6487
6479
  }
6488
6480
  }
6489
6481
  function l() {
6490
- const p = e.value;
6491
- if (p) {
6492
- const { width: w, height: k } = p.getBoundingClientRect();
6482
+ const m = e.value;
6483
+ if (m) {
6484
+ const { width: w, height: k } = m.getBoundingClientRect();
6493
6485
  return { width: w, height: k };
6494
6486
  }
6495
6487
  return null;
6496
6488
  }
6497
6489
  function f() {
6498
- const p = e.value;
6499
- return p ? Array.from(p.querySelectorAll("[data-position]")).reduce((w, k) => {
6500
- const E = k.getAttribute("data-position");
6501
- return w = Object.assign(w, { [E]: k }), w;
6490
+ const m = e.value;
6491
+ return m ? Array.from(m.querySelectorAll("[data-position]")).reduce((w, k) => {
6492
+ const O = k.getAttribute("data-position");
6493
+ return w = Object.assign(w, { [O]: k }), w;
6502
6494
  }, {}) : null;
6503
6495
  }
6504
- function m(p, w) {
6505
- const k = l(), E = f();
6506
- if (k && E) {
6507
- const B = E == null ? void 0 : E.right, b = E == null ? void 0 : E.left;
6508
- if (p === "left" && b)
6496
+ function y(m, w) {
6497
+ const k = l(), O = f();
6498
+ if (k && O) {
6499
+ const B = O == null ? void 0 : O.right, b = O == null ? void 0 : O.left;
6500
+ if (m === "left" && b)
6509
6501
  return B ? k.width - B.clientWidth - w : k.width - w;
6510
- if (p === "right" && B)
6502
+ if (m === "right" && B)
6511
6503
  return b ? k.width - b.clientWidth - w : k.width - w;
6512
6504
  }
6513
6505
  }
6514
- function g(p, w) {
6515
- const k = l(), E = f();
6516
- if (k && E) {
6517
- const B = E == null ? void 0 : E.bottom, b = E == null ? void 0 : E.top;
6518
- if (p === "top" && b)
6506
+ function g(m, w) {
6507
+ const k = l(), O = f();
6508
+ if (k && O) {
6509
+ const B = O == null ? void 0 : O.bottom, b = O == null ? void 0 : O.top;
6510
+ if (m === "top" && b)
6519
6511
  return B ? k.height - B.clientHeight - w : k.height - w;
6520
- if (p === "bottom" && B)
6512
+ if (m === "bottom" && B)
6521
6513
  return b ? k.height - b.clientHeight - w : k.height - w;
6522
6514
  }
6523
6515
  }
@@ -6534,7 +6526,7 @@ function sa(e) {
6534
6526
  draggingHorizontalResizeHandle: h,
6535
6527
  draggingVerticalResizeHandle: s,
6536
6528
  getPanelMaxHeight: g,
6537
- getPanelMaxWidth: m
6529
+ getPanelMaxWidth: y
6538
6530
  };
6539
6531
  }
6540
6532
  const Ue = /* @__PURE__ */ ae({
@@ -6774,40 +6766,40 @@ function ca(e, t, n, a, o) {
6774
6766
  draggingHorizontalResizeHandle: s,
6775
6767
  draggingVerticalResizeHandle: l,
6776
6768
  getPanelMaxHeight: f,
6777
- getPanelMaxWidth: m
6769
+ getPanelMaxWidth: y
6778
6770
  } = o;
6779
- let g = "", p, w, k;
6780
- function E(y) {
6771
+ let g = "", m, w, k;
6772
+ function O(p) {
6781
6773
  if ((g === "left" || g === "right") && w) {
6782
- const { left: x } = w.getBoundingClientRect(), { width: F } = p.getBoundingClientRect(), j = y.clientX - x;
6783
- let R = g === "left" ? (F || 0) + (j - i.value) : (F || 0) - (j - i.value);
6774
+ const { left: F } = w.getBoundingClientRect(), { width: T } = m.getBoundingClientRect(), j = p.clientX - F;
6775
+ let R = g === "left" ? (T || 0) + (j - i.value) : (T || 0) - (j - i.value);
6784
6776
  R = n.value > 0 ? Math.max(n.value, R) : R;
6785
- const M = m(g, n.value);
6777
+ const M = y(g, n.value);
6786
6778
  M != null && (R = M > R ? R : M), e.value = R;
6787
6779
  }
6788
6780
  if ((g === "top" || g === "bottom") && w) {
6789
- const { top: x } = w.getBoundingClientRect(), { height: F } = p.getBoundingClientRect(), j = y.clientY - x;
6790
- let R = g === "top" ? (F || 0) + (j - c.value) : (F || 0) - (j - c.value);
6781
+ const { top: F } = w.getBoundingClientRect(), { height: T } = m.getBoundingClientRect(), j = p.clientY - F;
6782
+ let R = g === "top" ? (T || 0) + (j - c.value) : (T || 0) - (j - c.value);
6791
6783
  R = a.value > 0 ? Math.max(a.value, R) : R;
6792
6784
  const M = f(g, a.value);
6793
6785
  M != null && (R = M > R ? R : M), t.value = R;
6794
6786
  }
6795
- r.value = 0, h.value = 0, i.value = -1, c.value = -1, u.value = !1, d.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", E), document.body.style.userSelect = "", g = "", p = null, w = null;
6787
+ r.value = 0, h.value = 0, i.value = -1, c.value = -1, u.value = !1, d.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", O), document.body.style.userSelect = "", g = "", m = null, w = null;
6796
6788
  }
6797
- function B(y, x, F) {
6798
- if (g = x, p = F, u.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
6799
- const { left: R } = w.getBoundingClientRect(), M = y.clientX - R;
6789
+ function B(p, F, T) {
6790
+ if (g = F, m = T, u.value = !0, w = p.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
6791
+ const { left: R } = w.getBoundingClientRect(), M = p.clientX - R;
6800
6792
  r.value = M, i.value = M;
6801
- const T = m(g, n.value) || 0;
6802
- k = (S) => s(S, T, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", E), document.body.style.userSelect = "none";
6793
+ const S = y(g, n.value) || 0;
6794
+ k = (x) => s(x, S, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", O), document.body.style.userSelect = "none";
6803
6795
  }
6804
6796
  }
6805
- function b(y, x, F) {
6806
- if (g = x, p = F, d.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
6797
+ function b(p, F, T) {
6798
+ if (g = F, m = T, d.value = !0, w = p.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
6807
6799
  const { top: R } = w.getBoundingClientRect();
6808
- h.value = y.clientY - R, c.value = y.clientY - R;
6800
+ h.value = p.clientY - R, c.value = p.clientY - R;
6809
6801
  const M = f(g, a.value) || 0;
6810
- k = (T) => l(T, M, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", E), document.body.style.userSelect = "none";
6802
+ k = (S) => l(S, M, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", O), document.body.style.userSelect = "none";
6811
6803
  }
6812
6804
  }
6813
6805
  return { onClickHorizontalResizeBar: B, onClickVerticalResizeBar: b };
@@ -6824,36 +6816,36 @@ const Ie = /* @__PURE__ */ ae({
6824
6816
  const s = ke("layout"), {
6825
6817
  useResizeHandleComposition: l
6826
6818
  } = s, f = ca(u, r, a, n, l), {
6827
- onClickHorizontalResizeBar: m,
6819
+ onClickHorizontalResizeBar: y,
6828
6820
  onClickVerticalResizeBar: g
6829
- } = f, p = N(() => ({
6821
+ } = f, m = N(() => ({
6830
6822
  "f-layout-resize-bar": !0,
6831
6823
  "f-layout-resize-bar-e": c.value === "left",
6832
6824
  "f-layout-resize-bar-n": c.value === "bottom",
6833
6825
  "f-layout-resize-bar-s": c.value === "top",
6834
6826
  "f-layout-resize-bar-w": c.value === "right"
6835
6827
  })), w = N(() => c.value !== "center" && h.value);
6836
- function k(b, y) {
6837
- (y === "left" || y === "right") && m(b, y, d.value), (y === "top" || y === "bottom") && g(b, y, d.value);
6828
+ function k(b, p) {
6829
+ (p === "left" || p === "right") && y(b, p, d.value), (p === "top" || p === "bottom") && g(b, p, d.value);
6838
6830
  }
6839
- const E = N(() => {
6831
+ const O = N(() => {
6840
6832
  const b = {
6841
6833
  "f-layout-pane": !0,
6842
6834
  "f-page-content-nav": c.value === "left" || c.value === "right",
6843
6835
  "f-page-content-main": c.value === "center"
6844
6836
  };
6845
- return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
6837
+ return e.customClass && String(e.customClass).split(" ").reduce((p, F) => (p[F] = !0, p), b), b;
6846
6838
  }), B = N(() => {
6847
6839
  const b = {};
6848
6840
  return (u.value && c.value === "left" || c.value === "right") && (b.width = `${u.value}px`), (r.value && c.value === "bottom" || c.value === "top") && (b.height = `${r.value}px`), e.visible || (b.display = "none"), b;
6849
6841
  });
6850
6842
  return () => v("div", {
6851
6843
  ref: d,
6852
- class: E.value,
6844
+ class: O.value,
6853
6845
  style: B.value,
6854
6846
  "data-position": c.value
6855
6847
  }, [t.slots.default && t.slots.default(), w.value && v("span", {
6856
- class: p.value,
6848
+ class: m.value,
6857
6849
  onMousedown: (b) => k(b, c.value)
6858
6850
  }, null)]);
6859
6851
  }
@@ -6920,26 +6912,26 @@ const fs = /* @__PURE__ */ ae({
6920
6912
  }), t.expose(r.value);
6921
6913
  const u = C(Math.max(e.minHeight, e.height)), d = C(Math.max(e.minWidth, e.width)), c = C(e.minHeight), h = C(e.minWidth), s = C(e.position), l = ke("layout"), {
6922
6914
  useResizeHandleComposition: f
6923
- } = l, m = ca(d, u, h, c, f), {
6915
+ } = l, y = ca(d, u, h, c, f), {
6924
6916
  onClickHorizontalResizeBar: g,
6925
- onClickVerticalResizeBar: p
6926
- } = m, w = N(() => ({
6917
+ onClickVerticalResizeBar: m
6918
+ } = y, w = N(() => ({
6927
6919
  "f-layout-resize-bar": !0,
6928
6920
  "f-layout-resize-bar-e": s.value === "left",
6929
6921
  "f-layout-resize-bar-n": s.value === "bottom",
6930
6922
  "f-layout-resize-bar-s": s.value === "top",
6931
6923
  "f-layout-resize-bar-w": s.value === "right"
6932
6924
  }));
6933
- function k(b, y) {
6934
- (y === "left" || y === "right") && g(b, y, n.value), (y === "top" || y === "bottom") && p(b, y, n.value);
6925
+ function k(b, p) {
6926
+ (p === "left" || p === "right") && g(b, p, n.value), (p === "top" || p === "bottom") && m(b, p, n.value);
6935
6927
  }
6936
- const E = N(() => {
6928
+ const O = N(() => {
6937
6929
  const b = {
6938
6930
  "f-layout-pane": !0,
6939
6931
  "f-page-content-nav": s.value === "left" || s.value === "right",
6940
6932
  "f-page-content-main": s.value === "center"
6941
6933
  };
6942
- return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
6934
+ return e.customClass && String(e.customClass).split(" ").reduce((p, F) => (p[F] = !0, p), b), b;
6943
6935
  }), B = N(() => {
6944
6936
  const b = {
6945
6937
  flex: "1"
@@ -6948,7 +6940,7 @@ const fs = /* @__PURE__ */ ae({
6948
6940
  });
6949
6941
  return () => v("div", {
6950
6942
  ref: n,
6951
- class: E.value,
6943
+ class: O.value,
6952
6944
  style: B.value
6953
6945
  }, [v("div", {
6954
6946
  ref: a,
@@ -9133,12 +9125,12 @@ function ks(e, t) {
9133
9125
  return n;
9134
9126
  }
9135
9127
  function xs(e, t) {
9136
- return Ss(e) || Fs(e, t) || Ts(e, t) || Bs();
9128
+ return Fs(e) || Ss(e, t) || Ts(e, t) || Bs();
9137
9129
  }
9138
- function Ss(e) {
9130
+ function Fs(e) {
9139
9131
  if (Array.isArray(e)) return e;
9140
9132
  }
9141
- function Fs(e, t) {
9133
+ function Ss(e, t) {
9142
9134
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
9143
9135
  var n = [], a = !0, o = !1, i = void 0;
9144
9136
  try {
@@ -9191,7 +9183,7 @@ function xn(e, t) {
9191
9183
  }
9192
9184
  return n;
9193
9185
  }
9194
- function Sn(e) {
9186
+ function Fn(e) {
9195
9187
  for (var t = 1; t < arguments.length; t++) {
9196
9188
  var n = arguments[t] != null ? arguments[t] : {};
9197
9189
  t % 2 ? xn(Object(n), !0).forEach(function(a) {
@@ -9290,7 +9282,7 @@ function $s(e, t) {
9290
9282
  return wt(t) ? t(e.current) : t;
9291
9283
  }
9292
9284
  function As(e, t) {
9293
- return e.current = Sn(Sn({}, e.current), t), t;
9285
+ return e.current = Fn(Fn({}, e.current), t), t;
9294
9286
  }
9295
9287
  function Hs(e, t, n) {
9296
9288
  return wt(t) ? t(e.current) : Object.keys(n).forEach(function(a) {
@@ -9320,7 +9312,7 @@ function Gs(e) {
9320
9312
  return {}.toString.call(e).includes("Object");
9321
9313
  }
9322
9314
  function _s(e) {
9323
- return e || Fn("configIsRequired"), Gs(e) || Fn("configType"), e.urls ? (Us(), {
9315
+ return e || Sn("configIsRequired"), Gs(e) || Sn("configType"), e.urls ? (Us(), {
9324
9316
  paths: {
9325
9317
  vs: e.urls.monacoBase
9326
9318
  }
@@ -9346,7 +9338,7 @@ var da = {
9346
9338
 
9347
9339
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
9348
9340
  `
9349
- }, Fn = qs(Ys)(da), Xs = {
9341
+ }, Sn = qs(Ys)(da), Xs = {
9350
9342
  config: _s
9351
9343
  }, Js = function() {
9352
9344
  for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
@@ -9382,7 +9374,7 @@ var Zs = zs.create({
9382
9374
  resolve: null,
9383
9375
  reject: null,
9384
9376
  monaco: null
9385
- }), pa = xs(Zs, 2), St = pa[0], Vt = pa[1];
9377
+ }), pa = xs(Zs, 2), Ft = pa[0], Vt = pa[1];
9386
9378
  function Ks(e) {
9387
9379
  var t = Xs.config(e), n = t.monaco, a = ks(t, ["monaco"]);
9388
9380
  Vt(function(o) {
@@ -9393,7 +9385,7 @@ function Ks(e) {
9393
9385
  });
9394
9386
  }
9395
9387
  function eu() {
9396
- var e = St(function(t) {
9388
+ var e = Ft(function(t) {
9397
9389
  var n = t.monaco, a = t.isInitialized, o = t.resolve;
9398
9390
  return {
9399
9391
  monaco: n,
@@ -9420,7 +9412,7 @@ function nu(e) {
9420
9412
  return e && (t.src = e), t;
9421
9413
  }
9422
9414
  function au(e) {
9423
- var t = St(function(a) {
9415
+ var t = Ft(function(a) {
9424
9416
  var o = a.config, i = a.reject;
9425
9417
  return {
9426
9418
  config: o,
@@ -9432,7 +9424,7 @@ function au(e) {
9432
9424
  }, n.onerror = t.reject, n;
9433
9425
  }
9434
9426
  function ou() {
9435
- var e = St(function(n) {
9427
+ var e = Ft(function(n) {
9436
9428
  var a = n.config, o = n.resolve, i = n.reject;
9437
9429
  return {
9438
9430
  config: a,
@@ -9447,12 +9439,12 @@ function ou() {
9447
9439
  });
9448
9440
  }
9449
9441
  function ma(e) {
9450
- St().monaco || Vt({
9442
+ Ft().monaco || Vt({
9451
9443
  monaco: e
9452
9444
  });
9453
9445
  }
9454
9446
  function iu() {
9455
- return St(function(e) {
9447
+ return Ft(function(e) {
9456
9448
  var t = e.monaco;
9457
9449
  return t;
9458
9450
  });
@@ -9497,13 +9489,13 @@ const lu = /* @__PURE__ */ ae({
9497
9489
  let o = null;
9498
9490
  const i = C(e.modelValue);
9499
9491
  async function r() {
9500
- return fetch(e.configPath).then((m) => m.json());
9492
+ return fetch(e.configPath).then((y) => y.json());
9501
9493
  }
9502
9494
  async function u() {
9503
9495
  if (n.value && !o) {
9504
- const m = await r(), {
9496
+ const y = await r(), {
9505
9497
  vsPath: g
9506
- } = m;
9498
+ } = y;
9507
9499
  Kt.config({
9508
9500
  paths: {
9509
9501
  vs: window.location.origin + g
@@ -9514,8 +9506,8 @@ const lu = /* @__PURE__ */ ae({
9514
9506
  "*": "zh-cn"
9515
9507
  }
9516
9508
  }
9517
- }), Kt.init().then((p) => {
9518
- a.value = p, o = p.editor.create(n.value, {
9509
+ }), Kt.init().then((m) => {
9510
+ a.value = m, o = m.editor.create(n.value, {
9519
9511
  value: i.value,
9520
9512
  automaticLayout: !0,
9521
9513
  // 自动调整布局
@@ -9541,28 +9533,28 @@ const lu = /* @__PURE__ */ ae({
9541
9533
  });
9542
9534
  }
9543
9535
  }
9544
- Z(() => e.modelValue, (m) => {
9545
- i.value = m, o == null || o.setValue(m);
9536
+ Z(() => e.modelValue, (y) => {
9537
+ i.value = y, o == null || o.setValue(y);
9546
9538
  });
9547
- const d = C(), c = new ResizeObserver((m) => {
9539
+ const d = C(), c = new ResizeObserver((y) => {
9548
9540
  o == null || o.layout();
9549
9541
  const {
9550
9542
  width: g,
9551
- height: p
9552
- } = m[0].contentRect;
9543
+ height: m
9544
+ } = y[0].contentRect;
9553
9545
  d.value = {
9554
9546
  width: `${g - 1}px`,
9555
- height: `${p}px`
9547
+ height: `${m}px`
9556
9548
  };
9557
9549
  });
9558
9550
  function h() {
9559
9551
  return o == null ? void 0 : o.getValue();
9560
9552
  }
9561
- function s(m) {
9562
- const g = o.getSelection(), p = new a.value.Range(g.startLineNumber, g.startColumn, g.endLineNumber, g.endColumn);
9553
+ function s(y) {
9554
+ const g = o.getSelection(), m = new a.value.Range(g.startLineNumber, g.startColumn, g.endLineNumber, g.endColumn);
9563
9555
  o.executeEdits("insert-text", [{
9564
- range: p,
9565
- text: m,
9556
+ range: m,
9557
+ text: y,
9566
9558
  forceMoveMarkers: !0
9567
9559
  // 移动光标到插入后的位置
9568
9560
  }]);
@@ -9572,8 +9564,8 @@ const lu = /* @__PURE__ */ ae({
9572
9564
  }), On(() => {
9573
9565
  o && o.dispose(), c && n.value && (c.unobserve(n.value), c.disconnect());
9574
9566
  });
9575
- function l(m) {
9576
- o.setValue(m);
9567
+ function l(y) {
9568
+ o.setValue(y);
9577
9569
  }
9578
9570
  function f() {
9579
9571
  l("");
@@ -9610,8 +9602,8 @@ const lu = /* @__PURE__ */ ae({
9610
9602
  let s = 0;
9611
9603
  return document.querySelectorAll(".entity-variable .fv-grid-hierarchy-cell").forEach((f) => {
9612
9604
  f.style.width = "auto";
9613
- const m = f.scrollWidth;
9614
- m > s && (s = m);
9605
+ const y = f.scrollWidth;
9606
+ y > s && (s = y);
9615
9607
  }), s;
9616
9608
  }
9617
9609
  Z(() => e.data, (s) => {
@@ -9680,13 +9672,13 @@ const lu = /* @__PURE__ */ ae({
9680
9672
  const n = C("dataEntity"), a = C(e.dataSource), {
9681
9673
  entities: o,
9682
9674
  variables: i
9683
- } = a.value, r = C(""), u = C((o == null ? void 0 : o.fields) || []), d = (S, O) => {
9684
- S.stopPropagation(), t.emit("fieldClick", {
9685
- $event: S,
9686
- item: O.raw
9675
+ } = a.value, r = C(""), u = C((o == null ? void 0 : o.fields) || []), d = (x, E) => {
9676
+ x.stopPropagation(), t.emit("fieldClick", {
9677
+ $event: x,
9678
+ item: E.raw
9687
9679
  });
9688
- }, c = (S, O) => {
9689
- const P = `${O.raw.name} [${O.raw.bindingPath}]`;
9680
+ }, c = (x, E) => {
9681
+ const P = `${E.raw.name} [${E.raw.bindingPath}]`;
9690
9682
  return v("div", {
9691
9683
  class: "d-flex align-items-center w-100 entity-field",
9692
9684
  style: "justify-content: space-between;"
@@ -9697,55 +9689,55 @@ const lu = /* @__PURE__ */ ae({
9697
9689
  title: "插入属性名称",
9698
9690
  class: "btn btn-link d-none",
9699
9691
  style: "width:24px;height:24px",
9700
- onClick: (H) => d(H, O),
9701
- onDblclick: (H) => H.stopPropagation()
9692
+ onClick: (W) => d(W, E),
9693
+ onDblclick: (W) => W.stopPropagation()
9702
9694
  }, [v("span", {
9703
9695
  class: "f-icon f-icon-new-edit",
9704
9696
  style: "font-size: 12px;"
9705
9697
  }, null)])]);
9706
- }, h = C({}), s = C(), l = N(() => (S) => ({
9698
+ }, h = C({}), s = C(), l = N(() => (x) => ({
9707
9699
  "list-group d-flex flex-column": !0,
9708
- "f-utils-fill": n.value === S,
9709
- expand: n.value === S,
9710
- collapse: n.value !== S
9711
- })), f = N(() => (S) => ({
9712
- "f-icon f-icon-arrow-chevron-up": n.value !== S,
9713
- "f-icon f-icon-arrow-chevron-down": n.value === S
9714
- })), m = N(() => (S) => ({
9700
+ "f-utils-fill": n.value === x,
9701
+ expand: n.value === x,
9702
+ collapse: n.value !== x
9703
+ })), f = N(() => (x) => ({
9704
+ "f-icon f-icon-arrow-chevron-up": n.value !== x,
9705
+ "f-icon f-icon-arrow-chevron-down": n.value === x
9706
+ })), y = N(() => (x) => ({
9715
9707
  "functions-type d-flex flex-column": !0,
9716
- open: h.value[S],
9717
- closed: !h.value[S]
9718
- })), g = N(() => (S) => ({
9719
- "f-icon f-icon-arrow-chevron-down": h.value[S],
9720
- "f-icon f-icon-arrow-chevron-right": !h.value[S]
9721
- })), p = N(() => (S) => {
9722
- var O;
9708
+ open: h.value[x],
9709
+ closed: !h.value[x]
9710
+ })), g = N(() => (x) => ({
9711
+ "f-icon f-icon-arrow-chevron-down": h.value[x],
9712
+ "f-icon f-icon-arrow-chevron-right": !h.value[x]
9713
+ })), m = N(() => (x) => {
9714
+ var E;
9723
9715
  return {
9724
9716
  "functions-item pl-2": !0,
9725
- selected: ((O = s.value) == null ? void 0 : O.key) === S.key
9717
+ selected: ((E = s.value) == null ? void 0 : E.key) === x.key
9726
9718
  };
9727
9719
  });
9728
- function w(S, O) {
9729
- S.stopPropagation(), h.value = h.value || {}, h.value[O] = !h.value[O];
9720
+ function w(x, E) {
9721
+ x.stopPropagation(), h.value = h.value || {}, h.value[E] = !h.value[E];
9730
9722
  }
9731
- function k(S, O) {
9732
- S.stopPropagation(), s.value = O;
9723
+ function k(x, E) {
9724
+ x.stopPropagation(), s.value = E;
9733
9725
  }
9734
- function E(S, O) {
9726
+ function O(x, E) {
9735
9727
  t.emit("variableItemDblClick", {
9736
- $event: S,
9737
- item: O
9728
+ $event: x,
9729
+ item: E
9738
9730
  });
9739
9731
  }
9740
9732
  function B({
9741
- $event: S,
9742
- node: O
9733
+ $event: x,
9734
+ node: E
9743
9735
  }) {
9744
9736
  t.emit("entityItemDblClick", {
9745
- $event: S,
9746
- item: O.data,
9737
+ $event: x,
9738
+ item: E.data,
9747
9739
  entityCode: o == null ? void 0 : o.entityCode,
9748
- parentCodes: O.data.parents.join(".")
9740
+ parentCodes: E.data.parents.join(".")
9749
9741
  });
9750
9742
  }
9751
9743
  function b() {
@@ -9755,68 +9747,68 @@ const lu = /* @__PURE__ */ ae({
9755
9747
  onDblclickNode: B
9756
9748
  }, null);
9757
9749
  }
9758
- function y() {
9750
+ function p() {
9759
9751
  if (i)
9760
9752
  return v("ul", {
9761
9753
  class: "w-100 functions-list"
9762
- }, [Object.keys(i).map((S) => i[S].visible && v("li", {
9763
- "variable-type": S,
9764
- class: m.value(S)
9754
+ }, [Object.keys(i).map((x) => i[x].visible && v("li", {
9755
+ "variable-type": x,
9756
+ class: y.value(x)
9765
9757
  }, [v("div", {
9766
9758
  class: "functions-type-name pl-2 d-flex align-items-center",
9767
- onClick: (O) => {
9768
- w(O, S);
9759
+ onClick: (E) => {
9760
+ w(E, x);
9769
9761
  }
9770
9762
  }, [v("span", {
9771
- class: g.value(S)
9772
- }, null), i[S].name]), v("ul", {
9763
+ class: g.value(x)
9764
+ }, null), i[x].name]), v("ul", {
9773
9765
  class: "pl-3 mr-2"
9774
- }, [i[S].items.map((O) => v("li", {
9775
- class: p.value(O),
9776
- onClick: (P) => k(P, O),
9777
- onDblclick: (P) => E(P, O)
9778
- }, [O.name]))])]))]);
9779
- }
9780
- function x(S, O) {
9781
- if (S.stopPropagation(), n.value === O) {
9766
+ }, [i[x].items.map((E) => v("li", {
9767
+ class: m.value(E),
9768
+ onClick: (P) => k(P, E),
9769
+ onDblclick: (P) => O(P, E)
9770
+ }, [E.name]))])]))]);
9771
+ }
9772
+ function F(x, E) {
9773
+ if (x.stopPropagation(), n.value === E) {
9782
9774
  n.value = "";
9783
9775
  return;
9784
9776
  }
9785
- n.value = O;
9777
+ n.value = E;
9786
9778
  }
9787
9779
  be(() => {
9788
9780
  if (i) {
9789
- const S = Object.keys(i)[0];
9790
- h.value[S] = !0;
9781
+ const x = Object.keys(i)[0];
9782
+ h.value[x] = !0;
9791
9783
  }
9792
9784
  });
9793
- function F(S, O) {
9794
- const P = S.children.map((J) => F(J, O)).filter((J) => J !== null);
9795
- return S.data.name.toLowerCase().includes(O.toLowerCase()) || S.data.bindingPath.toLowerCase().includes(O.toLowerCase()) ? {
9785
+ function T(x, E) {
9786
+ const P = x.children.map((J) => T(J, E)).filter((J) => J !== null);
9787
+ return x.data.name.toLowerCase().includes(E.toLowerCase()) || x.data.bindingPath.toLowerCase().includes(E.toLowerCase()) ? {
9796
9788
  data: {
9797
- ...S.data
9789
+ ...x.data
9798
9790
  },
9799
- children: S.children
9791
+ children: x.children
9800
9792
  // 注意这里保留原始子节点
9801
9793
  } : P.length > 0 ? {
9802
9794
  data: {
9803
- ...S.data
9795
+ ...x.data
9804
9796
  },
9805
9797
  children: P
9806
9798
  } : null;
9807
9799
  }
9808
- function j(S, O) {
9809
- return S.map((P) => F(P, O)).filter((P) => P !== null);
9800
+ function j(x, E) {
9801
+ return x.map((P) => T(P, E)).filter((P) => P !== null);
9810
9802
  }
9811
9803
  function R() {
9812
- const S = j((o == null ? void 0 : o.fields) || [], r.value);
9813
- u.value = S;
9804
+ const x = j((o == null ? void 0 : o.fields) || [], r.value);
9805
+ u.value = x;
9814
9806
  }
9815
9807
  function M() {
9816
9808
  u.value = (o == null ? void 0 : o.fields) || [];
9817
9809
  }
9818
- function T(S) {
9819
- S.key === "Enter" && R();
9810
+ function S(x) {
9811
+ x.key === "Enter" && R();
9820
9812
  }
9821
9813
  return () => v("div", {
9822
9814
  class: "f-utils-fill entity-variable"
@@ -9826,7 +9818,7 @@ const lu = /* @__PURE__ */ ae({
9826
9818
  class: l.value("dataEntity")
9827
9819
  }, [v("div", {
9828
9820
  class: "title px-2 d-flex align-items-center",
9829
- onClick: (S) => x(S, "dataEntity")
9821
+ onClick: (x) => F(x, "dataEntity")
9830
9822
  }, [le("数据实体"), v("span", {
9831
9823
  class: f.value("dataEntity")
9832
9824
  }, null)]), v("div", {
@@ -9840,20 +9832,20 @@ const lu = /* @__PURE__ */ ae({
9840
9832
  popupOnClick: !0,
9841
9833
  placeholder: "请输入名称或编号,按回车查询",
9842
9834
  modelValue: r.value,
9843
- "onUpdate:modelValue": (S) => r.value = S,
9835
+ "onUpdate:modelValue": (x) => r.value = x,
9844
9836
  onClickButton: R,
9845
9837
  onClear: M,
9846
- onKeyup: T
9838
+ onKeyup: S
9847
9839
  }, null)]), b()])]), v("li", {
9848
9840
  class: l.value("variables")
9849
9841
  }, [v("div", {
9850
9842
  class: "title px-2 d-flex align-items-center",
9851
- onClick: (S) => x(S, "variables")
9843
+ onClick: (x) => F(x, "variables")
9852
9844
  }, [le("变量"), v("span", {
9853
9845
  class: f.value("variables")
9854
9846
  }, null)]), v("div", {
9855
9847
  class: "data-area f-utils-fill"
9856
- }, [y()])])])]);
9848
+ }, [p()])])])]);
9857
9849
  }
9858
9850
  }), du = {
9859
9851
  functionItems: {
@@ -9884,24 +9876,24 @@ const lu = /* @__PURE__ */ ae({
9884
9876
  "f-icon f-icon-arrow-chevron-down": i.value[b],
9885
9877
  "f-icon f-icon-arrow-chevron-right": !i.value[b]
9886
9878
  }), s = N(() => (b) => {
9887
- var y;
9879
+ var p;
9888
9880
  return {
9889
9881
  "functions-item pl-2": !0,
9890
- selected: ((y = o.value) == null ? void 0 : y.key) === b.key
9882
+ selected: ((p = o.value) == null ? void 0 : p.key) === b.key
9891
9883
  };
9892
9884
  }), l = C(Object.keys(d.value));
9893
9885
  Z(() => e.functionItems, (b) => {
9894
- d.value = b, l.value = Object.keys(d.value), r.value && (i.value = l.value.reduce((y, x) => (y[x] = !0, y), {}));
9886
+ d.value = b, l.value = Object.keys(d.value), r.value && (i.value = l.value.reduce((p, F) => (p[F] = !0, p), {}));
9895
9887
  });
9896
9888
  function f(b) {
9897
9889
  b || (b = a.value);
9898
- const y = n.value.querySelector('li[function-type="' + b + '"] > div.functions-type-name');
9899
- y && (n.value.querySelector(".expression-left").scrollTop = 0, y.scrollIntoViewIfNeeded ? y.scrollIntoViewIfNeeded(!0) : y.scrollIntoView({
9890
+ const p = n.value.querySelector('li[function-type="' + b + '"] > div.functions-type-name');
9891
+ p && (n.value.querySelector(".expression-left").scrollTop = 0, p.scrollIntoViewIfNeeded ? p.scrollIntoViewIfNeeded(!0) : p.scrollIntoView({
9900
9892
  behavior: "smooth",
9901
9893
  block: "nearest"
9902
9894
  }));
9903
9895
  }
9904
- function m(b) {
9896
+ function y(b) {
9905
9897
  if (e.singleExpand) {
9906
9898
  if (a.value === b) {
9907
9899
  a.value = "";
@@ -9911,21 +9903,21 @@ const lu = /* @__PURE__ */ ae({
9911
9903
  } else
9912
9904
  i.value = i.value || {}, i.value[b] = !i.value[b];
9913
9905
  }
9914
- function g(b, y) {
9915
- b.stopPropagation(), o.value = y;
9906
+ function g(b, p) {
9907
+ b.stopPropagation(), o.value = p;
9916
9908
  }
9917
- function p(b, y) {
9909
+ function m(b, p) {
9918
9910
  b.stopPropagation(), t.emit("insertFunction", {
9919
9911
  $event: b,
9920
- item: y
9912
+ item: p
9921
9913
  });
9922
9914
  }
9923
- Z(() => a.value, (b, y, x) => {
9915
+ Z(() => a.value, (b, p, F) => {
9924
9916
  if (b) {
9925
- const F = setTimeout(() => {
9917
+ const T = setTimeout(() => {
9926
9918
  f(b);
9927
9919
  }, 200);
9928
- x(() => clearTimeout(F));
9920
+ F(() => clearTimeout(T));
9929
9921
  }
9930
9922
  });
9931
9923
  function w() {
@@ -9934,7 +9926,7 @@ const lu = /* @__PURE__ */ ae({
9934
9926
  function k() {
9935
9927
  t.emit("search", "");
9936
9928
  }
9937
- function E(b) {
9929
+ function O(b) {
9938
9930
  b.key === "Enter" && w();
9939
9931
  }
9940
9932
  function B() {
@@ -9944,25 +9936,25 @@ const lu = /* @__PURE__ */ ae({
9944
9936
  }, [v("div", {
9945
9937
  class: "functions-type-name pl-2 d-flex align-items-center",
9946
9938
  onClick: () => {
9947
- m(b);
9939
+ y(b);
9948
9940
  }
9949
9941
  }, [v("span", {
9950
9942
  class: h.value(b)
9951
9943
  }, null), d.value[b].name]), v("ul", {
9952
9944
  class: "pl-3 mr-2"
9953
- }, [d.value[b].items.map((y) => {
9954
- if (y.visible !== !1)
9945
+ }, [d.value[b].items.map((p) => {
9946
+ if (p.visible !== !1)
9955
9947
  return v("li", {
9956
- class: s.value(y),
9957
- onClick: (x) => g(x, y),
9958
- onDblclick: (x) => p(x, y)
9959
- }, [b === "advanced" ? y.key : y.name]);
9948
+ class: s.value(p),
9949
+ onClick: (F) => g(F, p),
9950
+ onDblclick: (F) => m(F, p)
9951
+ }, [b === "advanced" ? p.key : p.name]);
9960
9952
  })])])) : v("li", {
9961
9953
  class: "empty-message"
9962
9954
  }, [u]);
9963
9955
  }
9964
9956
  return be(() => {
9965
- a.value = l.value[0], i.value = l.value.reduce((b, y) => (b[y] = a.value === y, b), {});
9957
+ a.value = l.value[0], i.value = l.value.reduce((b, p) => (b[p] = a.value === p, b), {});
9966
9958
  }), () => v("div", {
9967
9959
  class: "d-flex f-utils-fill flex-column",
9968
9960
  ref: n
@@ -9986,7 +9978,7 @@ const lu = /* @__PURE__ */ ae({
9986
9978
  "onUpdate:modelValue": (b) => r.value = b,
9987
9979
  onClickButton: w,
9988
9980
  onClear: k,
9989
- onKeyup: E
9981
+ onKeyup: O
9990
9982
  }, null)]
9991
9983
  }), v(Ie, {
9992
9984
  position: "center",
@@ -10067,25 +10059,25 @@ function pu(e) {
10067
10059
  function mu(e, t, n) {
10068
10060
  const a = C(e.disabledFunctions), { getTokens: o, getVariableMaps: i, runWithEsprima: r } = pu(e);
10069
10061
  function u() {
10070
- const p = Ve(t);
10062
+ const m = Ve(t);
10071
10063
  if (a.value) {
10072
- let w = Object.keys(p);
10073
- const { types: k, functions: E } = a.value;
10074
- return k && k.length && (w = w.filter((B) => k.includes(B))), E && E.length && Object.values(p).forEach((B) => {
10064
+ let w = Object.keys(m);
10065
+ const { types: k, functions: O } = a.value;
10066
+ return k && k.length && (w = w.filter((B) => k.includes(B))), O && O.length && Object.values(m).forEach((B) => {
10075
10067
  B.items.forEach((b) => {
10076
- E.includes(b.name) && (b.visible = !1);
10068
+ O.includes(b.name) && (b.visible = !1);
10077
10069
  });
10078
- }), p;
10070
+ }), m;
10079
10071
  }
10080
- return p;
10072
+ return m;
10081
10073
  }
10082
- function d(p) {
10074
+ function d(m) {
10083
10075
  const w = t.analytical.items.find((k) => k.key === "GetContextParameter");
10084
10076
  if (w)
10085
- return w.name + '("' + p.name + '")';
10077
+ return w.name + '("' + m.name + '")';
10086
10078
  }
10087
- function c(p) {
10088
- if (!p || p.length === 0)
10079
+ function c(m) {
10080
+ if (!m || m.length === 0)
10089
10081
  return "";
10090
10082
  const w = (k) => {
10091
10083
  switch (k.type) {
@@ -10097,82 +10089,82 @@ function mu(e, t, n) {
10097
10089
  return k.name;
10098
10090
  }
10099
10091
  };
10100
- return p.map(w).join(",");
10092
+ return m.map(w).join(",");
10101
10093
  }
10102
- function h(p) {
10103
- let w = p.name;
10104
- return p.type.toLowerCase() !== "advanced" && (w += "(" + c(p.params) + ")"), w;
10094
+ function h(m) {
10095
+ let w = m.name;
10096
+ return m.type.toLowerCase() !== "advanced" && (w += "(" + c(m.params) + ")"), w;
10105
10097
  }
10106
- function s(p) {
10107
- return p == null ? void 0 : p.bindingPath;
10098
+ function s(m) {
10099
+ return m == null ? void 0 : m.bindingPath;
10108
10100
  }
10109
- function l(p) {
10110
- if (!p)
10101
+ function l(m) {
10102
+ if (!m)
10111
10103
  return "";
10112
- const w = o(p), k = i(n, "name2key");
10104
+ const w = o(m), k = i(n, "name2key");
10113
10105
  for (let B = 0; B < w.length; B++) {
10114
10106
  let b = 0;
10115
10107
  if (b === 0 && k && w[B].length > 2 && w[B][0] === '"' && w[B][w[B].length - 1] === '"') {
10116
- const y = w[B].substring(1, w[B].length - 1);
10117
- if (k.has(y) && w[B - 1] === "(" && w[B + 1] === ")") {
10118
- const x = k.get(y);
10119
- x !== void 0 && (w[B] = `"${x}"`, b = 1);
10108
+ const p = w[B].substring(1, w[B].length - 1);
10109
+ if (k.has(p) && w[B - 1] === "(" && w[B + 1] === ")") {
10110
+ const F = k.get(p);
10111
+ F !== void 0 && (w[B] = `"${F}"`, b = 1);
10120
10112
  }
10121
10113
  }
10122
10114
  if (b === 0) {
10123
- const y = Object.values(t).map((x) => x.items).flat();
10124
- for (let x = 0; x < y.length; x++)
10125
- if (w[B] === y[x].name) {
10126
- w[B] = y[x].keyFront + "." + y[x].key, b = 1;
10115
+ const p = Object.values(t).map((F) => F.items).flat();
10116
+ for (let F = 0; F < p.length; F++)
10117
+ if (w[B] === p[F].name) {
10118
+ w[B] = p[F].keyFront + "." + p[F].key, b = 1;
10127
10119
  break;
10128
10120
  }
10129
10121
  }
10130
10122
  }
10131
- const E = w.join("");
10132
- return JSON.stringify({ expr: E, sexpr: "" });
10123
+ const O = w.join("");
10124
+ return JSON.stringify({ expr: O, sexpr: "" });
10133
10125
  }
10134
- function f(p, w, k, E) {
10126
+ function f(m, w, k, O) {
10135
10127
  let B = "";
10136
10128
  const b = [];
10137
- for (const y of w)
10138
- y.keyFront === "Math" && b.push(y.key);
10139
- for (let y = 0; y < p.length; y++) {
10140
- if (p[y] === "Math" && p[y + 1] === "." && !b.includes(p[y + 2])) {
10141
- B = B + p[y] + p[y + 1] + p[y + 2], y = y + 2;
10129
+ for (const p of w)
10130
+ p.keyFront === "Math" && b.push(p.key);
10131
+ for (let p = 0; p < m.length; p++) {
10132
+ if (m[p] === "Math" && m[p + 1] === "." && !b.includes(m[p + 2])) {
10133
+ B = B + m[p] + m[p + 1] + m[p + 2], p = p + 2;
10142
10134
  continue;
10143
10135
  }
10144
- if (E.includes(p[y]) && p[y + 1] === ".") {
10145
- y = y + 1;
10136
+ if (O.includes(m[p]) && m[p + 1] === ".") {
10137
+ p = p + 1;
10146
10138
  continue;
10147
10139
  } else {
10148
- let x = 0;
10149
- if (x === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
10150
- const F = p[y].substring(1, p[y].length - 1);
10151
- if (k.has(F) && p[y - 1] === "(" && p[y + 1] === ")") {
10152
- const j = k.get(F);
10153
- j !== void 0 && (B = B + `"${j}"`, x = 1);
10140
+ let F = 0;
10141
+ if (F === 0 && m[p].length > 2 && m[p][0] === '"' && m[p][m[p].length - 1] === '"') {
10142
+ const T = m[p].substring(1, m[p].length - 1);
10143
+ if (k.has(T) && m[p - 1] === "(" && m[p + 1] === ")") {
10144
+ const j = k.get(T);
10145
+ j !== void 0 && (B = B + `"${j}"`, F = 1);
10154
10146
  }
10155
10147
  }
10156
- if (x === 0) {
10157
- for (let F = 0; F < w.length; F++)
10158
- if (p[y] === w[F].key && w[F].type.toLowerCase() !== "advanced") {
10159
- B = B + w[F].name, x = 1;
10148
+ if (F === 0) {
10149
+ for (let T = 0; T < w.length; T++)
10150
+ if (m[p] === w[T].key && w[T].type.toLowerCase() !== "advanced") {
10151
+ B = B + w[T].name, F = 1;
10160
10152
  break;
10161
10153
  }
10162
10154
  }
10163
- x === 0 && (B = B + p[y]);
10155
+ F === 0 && (B = B + m[p]);
10164
10156
  }
10165
10157
  }
10166
10158
  return B;
10167
10159
  }
10168
- function m(p) {
10169
- if (!p)
10160
+ function y(m) {
10161
+ if (!m)
10170
10162
  return "";
10171
- const w = o(p), k = i(n, "key2name"), E = Object.values(t).map((b) => b.items).flat();
10172
- return f(w, E, k, ["DefaultFunction", "Math", "DefaultExtendFunctionProxy"]);
10163
+ const w = o(m), k = i(n, "key2name"), O = Object.values(t).map((b) => b.items).flat();
10164
+ return f(w, O, k, ["DefaultFunction", "Math", "DefaultExtendFunctionProxy"]);
10173
10165
  }
10174
- async function g(p) {
10175
- return await r(() => m(p));
10166
+ async function g(m) {
10167
+ return await r(() => y(m));
10176
10168
  }
10177
10169
  return {
10178
10170
  resetFunctionItems: u,
@@ -10228,86 +10220,86 @@ const vu = /* @__PURE__ */ ae({
10228
10220
  getFieldExpression: s,
10229
10221
  getExpressionCodeValue: l,
10230
10222
  getExpressionTextValue: f
10231
- } = mu(e, bs, e.variables), m = C(h()), {
10223
+ } = mu(e, bs, e.variables), y = C(h()), {
10232
10224
  onFunctionSearch: g
10233
- } = yu(e, m);
10234
- function p({
10235
- $event: T,
10236
- item: S
10225
+ } = yu(e, y);
10226
+ function m({
10227
+ $event: S,
10228
+ item: x
10237
10229
  }) {
10238
10230
  var P;
10239
- const O = d(S);
10240
- (P = r.value) == null || P.insertText(O);
10231
+ const E = d(x);
10232
+ (P = r.value) == null || P.insertText(E);
10241
10233
  }
10242
10234
  function w({
10243
- $event: T,
10244
- item: S
10235
+ $event: S,
10236
+ item: x
10245
10237
  }) {
10246
10238
  var P;
10247
- const O = c(S);
10248
- (P = r.value) == null || P.insertText(O);
10239
+ const E = c(x);
10240
+ (P = r.value) == null || P.insertText(E);
10249
10241
  }
10250
- function k(T) {
10251
- return T.reduce((S, O) => {
10242
+ function k(S) {
10243
+ return S.reduce((x, E) => {
10252
10244
  var P;
10253
- return S.push(O.data), (P = O.children) != null && P.length && S.push(...k(O.children)), S;
10245
+ return x.push(E.data), (P = E.children) != null && P.length && x.push(...k(E.children)), x;
10254
10246
  }, []);
10255
10247
  }
10256
- const E = k(((M = e == null ? void 0 : e.entities) == null ? void 0 : M.fields) || []);
10257
- function B(T) {
10258
- return T.map((S) => {
10259
- const O = E.find((P) => P.bindingPath === S);
10260
- return O && O.type === "entity" ? `${S}[0]` : S;
10248
+ const O = k(((M = e == null ? void 0 : e.entities) == null ? void 0 : M.fields) || []);
10249
+ function B(S) {
10250
+ return S.map((x) => {
10251
+ const E = O.find((P) => P.bindingPath === x);
10252
+ return E && E.type === "entity" ? `${x}[0]` : x;
10261
10253
  }).join(".");
10262
10254
  }
10263
10255
  function b({
10264
- $event: T,
10265
- item: S,
10266
- parentCodes: O,
10256
+ $event: S,
10257
+ item: x,
10258
+ parentCodes: E,
10267
10259
  entityCode: P
10268
10260
  }) {
10269
10261
  var $;
10270
- const H = s(S);
10271
- O = e.isServerSide ? B(S.parents) : O;
10272
- let J = `${O}.${H}`;
10273
- P === H && (J = H), ($ = r.value) == null || $.insertText(`${J}`);
10274
- }
10275
- function y({
10276
- $event: T,
10277
- item: S
10262
+ const W = s(x);
10263
+ E = e.isServerSide ? B(x.parents) : E;
10264
+ let J = `${E}.${W}`;
10265
+ P === W && (J = W), ($ = r.value) == null || $.insertText(`${J}`);
10266
+ }
10267
+ function p({
10268
+ $event: S,
10269
+ item: x
10278
10270
  }) {
10279
10271
  var P;
10280
- const O = s(S);
10281
- (P = r.value) == null || P.insertText(`${O}`);
10282
- }
10283
- function x() {
10284
- var T;
10285
- return (T = r.value) == null ? void 0 : T.getContent();
10272
+ const E = s(x);
10273
+ (P = r.value) == null || P.insertText(`${E}`);
10286
10274
  }
10287
10275
  function F() {
10288
10276
  var S;
10289
- const T = (S = r.value) == null ? void 0 : S.getContent();
10277
+ return (S = r.value) == null ? void 0 : S.getContent();
10278
+ }
10279
+ function T() {
10280
+ var x;
10281
+ const S = (x = r.value) == null ? void 0 : x.getContent();
10290
10282
  return {
10291
- value: l(T),
10283
+ value: l(S),
10292
10284
  message: a.value,
10293
10285
  messageType: o.value
10294
10286
  };
10295
10287
  }
10296
10288
  const j = C("");
10297
10289
  function R() {
10298
- var T;
10299
- (T = r.value) == null || T.clearText();
10290
+ var S;
10291
+ (S = r.value) == null || S.clearText();
10300
10292
  }
10301
10293
  return be(async () => {
10302
10294
  if (i.value) {
10303
- const T = JSON.parse(i.value), {
10304
- expr: S
10305
- } = T;
10306
- S && (j.value = await f(S) || "");
10295
+ const S = JSON.parse(i.value), {
10296
+ expr: x
10297
+ } = S;
10298
+ x && (j.value = await f(x) || "");
10307
10299
  }
10308
10300
  }), t.expose({
10309
- getExpressionContext: x,
10310
- getExpressionValue: F,
10301
+ getExpressionContext: F,
10302
+ getExpressionValue: T,
10311
10303
  resetExpression: R
10312
10304
  }), () => v("div", {
10313
10305
  ref: n,
@@ -10319,9 +10311,9 @@ const vu = /* @__PURE__ */ ae({
10319
10311
  minWidth: 130
10320
10312
  }, {
10321
10313
  default: () => [v(fu, {
10322
- functionItems: m.value,
10314
+ functionItems: y.value,
10323
10315
  singleExpand: e.singleExpand,
10324
- onInsertFunction: p,
10316
+ onInsertFunction: m,
10325
10317
  onSearch: g
10326
10318
  }, null)]
10327
10319
  }), v(Ie, {
@@ -10333,7 +10325,7 @@ const vu = /* @__PURE__ */ ae({
10333
10325
  class: "f-utils-fill my-2 ml-1"
10334
10326
  }, [v(lu, {
10335
10327
  modelValue: j.value,
10336
- "onUpdate:modelValue": (T) => j.value = T,
10328
+ "onUpdate:modelValue": (S) => j.value = S,
10337
10329
  ref: r
10338
10330
  }, null)]), e.showMessage && v("div", {
10339
10331
  class: "d-flex flex-column p-1",
@@ -10344,7 +10336,7 @@ const vu = /* @__PURE__ */ ae({
10344
10336
  style: "width: 75px",
10345
10337
  data: u,
10346
10338
  modelValue: o.value,
10347
- "onUpdate:modelValue": (T) => o.value = T,
10339
+ "onUpdate:modelValue": (S) => o.value = S,
10348
10340
  textField: "label",
10349
10341
  valueField: "value",
10350
10342
  idField: "value",
@@ -10352,7 +10344,7 @@ const vu = /* @__PURE__ */ ae({
10352
10344
  minPanelWidth: 130,
10353
10345
  placement: "auto"
10354
10346
  }, null)]), Mn(v("textarea", {
10355
- "onUpdate:modelValue": (T) => a.value = T,
10347
+ "onUpdate:modelValue": (S) => a.value = S,
10356
10348
  class: "form-control",
10357
10349
  style: "resize:none;border:none;outline:1px solid var(--f-neutral-04);"
10358
10350
  }, null), [[Va, a.value]])])]
@@ -10368,7 +10360,7 @@ const vu = /* @__PURE__ */ ae({
10368
10360
  },
10369
10361
  onVariableItemDblClick: w,
10370
10362
  onEntityItemDblClick: b,
10371
- onFieldClick: y
10363
+ onFieldClick: p
10372
10364
  }, null)]
10373
10365
  })]
10374
10366
  })]);
@@ -10473,7 +10465,7 @@ const vu = /* @__PURE__ */ ae({
10473
10465
  }, xu = [
10474
10466
  "id",
10475
10467
  "type"
10476
- ], Su = {
10468
+ ], Fu = {
10477
10469
  $schema: hu,
10478
10470
  $id: gu,
10479
10471
  title: bu,
@@ -10579,8 +10571,8 @@ const vu = /* @__PURE__ */ ae({
10579
10571
  default: !1
10580
10572
  }
10581
10573
  };
10582
- Pe(ya, Su);
10583
- const Fu = /* @__PURE__ */ ae({
10574
+ Pe(ya, Fu);
10575
+ const Su = /* @__PURE__ */ ae({
10584
10576
  name: "f-expression-textbox",
10585
10577
  props: ya,
10586
10578
  setup(e, t) {
@@ -10588,10 +10580,10 @@ const Fu = /* @__PURE__ */ ae({
10588
10580
  async function s() {
10589
10581
  const {
10590
10582
  value: g,
10591
- message: p,
10583
+ message: m,
10592
10584
  messageType: w
10593
10585
  } = d.value.getExpressionValue();
10594
- if (c.value = p, h.value = w, e.beforeSubmit && typeof e.beforeSubmit == "function") {
10586
+ if (c.value = m, h.value = w, e.beforeSubmit && typeof e.beforeSubmit == "function") {
10595
10587
  const k = await e.beforeSubmit({
10596
10588
  notifyService: n,
10597
10589
  expressionValue: g
@@ -10600,10 +10592,10 @@ const Fu = /* @__PURE__ */ ae({
10600
10592
  return !1;
10601
10593
  if (typeof k == "object") {
10602
10594
  const {
10603
- canClose: E,
10595
+ canClose: O,
10604
10596
  message: B
10605
10597
  } = k;
10606
- if (!E)
10598
+ if (!O)
10607
10599
  return B && (n == null || n.error({
10608
10600
  message: B
10609
10601
  })), !1;
@@ -10612,11 +10604,11 @@ const Fu = /* @__PURE__ */ ae({
10612
10604
  if (t.emit("update:modelValue", g), i.value = g, e.onSubmitModal) {
10613
10605
  const k = {
10614
10606
  expression: g,
10615
- message: p
10607
+ message: m
10616
10608
  };
10617
10609
  e.showMessageType && (k.messageType = h.value);
10618
- const E = e.onSubmitModal(k);
10619
- e.onExpressionChanged && e.onExpressionChanged(E);
10610
+ const O = e.onSubmitModal(k);
10611
+ e.onExpressionChanged && e.onExpressionChanged(O);
10620
10612
  }
10621
10613
  return !0;
10622
10614
  }
@@ -10636,8 +10628,8 @@ const Fu = /* @__PURE__ */ ae({
10636
10628
  text: "清空",
10637
10629
  class: "btn btn-secondary mr-2",
10638
10630
  handle: (g) => {
10639
- var p;
10640
- return (p = d.value) == null || p.resetExpression(), !1;
10631
+ var m;
10632
+ return (m = d.value) == null || m.resetExpression(), !1;
10641
10633
  }
10642
10634
  }, {
10643
10635
  name: "cancel",
@@ -10669,7 +10661,7 @@ const Fu = /* @__PURE__ */ ae({
10669
10661
  }
10670
10662
  return !0;
10671
10663
  }
10672
- function m() {
10664
+ function y() {
10673
10665
  if (t.emit("update:modelValue", ""), i.value = "", e.onSubmitModal) {
10674
10666
  const g = e.onSubmitModal({
10675
10667
  expression: "",
@@ -10693,7 +10685,7 @@ const Fu = /* @__PURE__ */ ae({
10693
10685
  buttonBehavior: "Modal",
10694
10686
  modalOptions: l,
10695
10687
  beforeOpen: f,
10696
- onClear: m
10688
+ onClear: y
10697
10689
  }, {
10698
10690
  default: () => [v("div", {
10699
10691
  class: "h-100 d-flex flex-column"
@@ -11121,9 +11113,9 @@ const ga = {
11121
11113
  const n = C(e.data), a = C([]), o = C(e.separator), i = C(e.width), r = C(e.height), u = C(e.maxHeight), d = C(String(e.selectedValues).split(o.value)), c = C(), h = {
11122
11114
  customRowStatus: e.customRowStatus
11123
11115
  };
11124
- Z(() => e.data, (p) => {
11116
+ Z(() => e.data, (m) => {
11125
11117
  var w;
11126
- n.value = p, (w = c.value) == null || w.updateDataSource(p);
11118
+ n.value = m, (w = c.value) == null || w.updateDataSource(m);
11127
11119
  });
11128
11120
  const s = {
11129
11121
  enableSelectRow: !0,
@@ -11138,32 +11130,32 @@ const ga = {
11138
11130
  title: "",
11139
11131
  dataType: "string",
11140
11132
  formatter: e.formatter
11141
- }]), m = N(() => {
11142
- const p = {};
11143
- return i.value !== void 0 && (p.width = `${i.value}px`), r.value !== void 0 && (p.height = `${r.value}px`), u.value !== void 0 && u.value > 0 && (p.maxHeight = `${u.value}px`, p.overflow = "auto"), n.value.length === 0 && (p.height = "200px"), p.position = "relative", p;
11133
+ }]), y = N(() => {
11134
+ const m = {};
11135
+ return i.value !== void 0 && (m.width = `${i.value}px`), r.value !== void 0 && (m.height = `${r.value}px`), u.value !== void 0 && u.value > 0 && (m.maxHeight = `${u.value}px`, m.overflow = "auto"), n.value.length === 0 && (m.height = "200px"), m.position = "relative", m;
11144
11136
  });
11145
- function g(p = []) {
11146
- p && p.length > 0 ? (a.value = [...p], d.value = a.value.map((w) => w[e.idField])) : (a.value = [], d.value = []), t.emit("selectionChange", a.value);
11137
+ function g(m = []) {
11138
+ m && m.length > 0 ? (a.value = [...m], d.value = a.value.map((w) => w[e.idField])) : (a.value = [], d.value = []), t.emit("selectionChange", a.value);
11147
11139
  }
11148
11140
  return be(() => {
11149
- l && l.getData(e.editorParams).then((p) => {
11150
- n.value = p;
11141
+ l && l.getData(e.editorParams).then((m) => {
11142
+ n.value = m;
11151
11143
  }), d.value && c.value.activeRowById(d.value[0]);
11152
11144
  }), t.expose({
11153
11145
  treeInstance: c
11154
11146
  }), () => v("div", {
11155
11147
  class: "f-combo-tree-container",
11156
- style: m.value
11148
+ style: y.value
11157
11149
  }, [e.multiSelect && e.enableSearch && v("div", {
11158
11150
  class: "p-2",
11159
11151
  style: "position: sticky;top:0;z-index: 2; background:white",
11160
- onMousedown: (p) => p.stopPropagation()
11152
+ onMousedown: (m) => m.stopPropagation()
11161
11153
  }, [v(jo, {
11162
11154
  buttonContent: '<i class="f-icon f-icon-search"></i>',
11163
11155
  enableClear: !0,
11164
11156
  placeholder: "请输入搜索内容",
11165
11157
  onClear: () => t.emit("clearSearch"),
11166
- onInput: (p, w) => e.searchHandler(w)
11158
+ onInput: (m, w) => e.searchHandler(w)
11167
11159
  }, null)]), v(Nn, {
11168
11160
  ref: c,
11169
11161
  fit: !0,
@@ -11187,26 +11179,26 @@ const ga = {
11187
11179
  function Au(e) {
11188
11180
  const t = C(""), n = C(e.modelValue), a = C(e.data || []), o = C(e.editable);
11189
11181
  function i(s, l = []) {
11190
- return s = s || [], s.reduce((f, m) => (f.push(m), m.children && m.children.length && i(m.children, f), f), l);
11182
+ return s = s || [], s.reduce((f, y) => (f.push(y), y.children && y.children.length && i(y.children, f), f), l);
11191
11183
  }
11192
11184
  function r(s) {
11193
- const l = String(s).split(e.separator).map((p, w) => [p, w]), f = new Map(l), m = [];
11194
- return i(a.value, m), m.filter((p) => {
11195
- const w = p.data ? String(p.data[e.valueField]) : String(p[e.valueField]);
11185
+ const l = String(s).split(e.separator).map((m, w) => [m, w]), f = new Map(l), y = [];
11186
+ return i(a.value, y), y.filter((m) => {
11187
+ const w = m.data ? String(m.data[e.valueField]) : String(m[e.valueField]);
11196
11188
  return f.has(w);
11197
- }).map((p) => p.data ? p.data : p).sort((p, w) => {
11198
- const k = f.get(String(p[e.valueField])) || 0, E = f.get(String(w[e.valueField])) || 0;
11199
- return k - E;
11189
+ }).map((m) => m.data ? m.data : m).sort((m, w) => {
11190
+ const k = f.get(String(m[e.valueField])) || 0, O = f.get(String(w[e.valueField])) || 0;
11191
+ return k - O;
11200
11192
  });
11201
11193
  }
11202
11194
  function u(s) {
11203
- const l = r(s), f = e.displayFormatter ? e.displayFormatter(l) : l.map((m) => m[e.textField]).join(e.separator);
11195
+ const l = r(s), f = e.displayFormatter ? e.displayFormatter(l) : l.map((y) => y[e.textField]).join(e.separator);
11204
11196
  t.value = o.value ? f || s : f;
11205
11197
  }
11206
11198
  function d(s) {
11207
11199
  const l = s.split(e.separator).map((g) => [g, !0]), f = new Map(l);
11208
- let m = [];
11209
- return a.value[0].data ? i(a.value, m) : m = a.value, m = m.map((g) => g.data ? g.data : g), m.filter((g) => f.has(g[e.textField]) || f.has(g[e.valueField]));
11200
+ let y = [];
11201
+ return a.value[0].data ? i(a.value, y) : y = a.value, y = y.map((g) => g.data ? g.data : g), y.filter((g) => f.has(g[e.textField]) || f.has(g[e.valueField]));
11210
11202
  }
11211
11203
  function c(s) {
11212
11204
  const l = {};
@@ -11233,8 +11225,8 @@ function Hu(e) {
11233
11225
  function r(s, l) {
11234
11226
  const f = (s.children || []).map((g) => r(g, l)).filter((g) => g !== null);
11235
11227
  return a.value.some((g) => {
11236
- var p;
11237
- return (p = s.data[g]) == null ? void 0 : p.toString().toLowerCase().includes(l.toLowerCase());
11228
+ var m;
11229
+ return (m = s.data[g]) == null ? void 0 : m.toString().toLowerCase().includes(l.toLowerCase());
11238
11230
  }) ? {
11239
11231
  data: { ...s.data },
11240
11232
  children: s.children
@@ -11253,7 +11245,7 @@ function Hu(e) {
11253
11245
  u();
11254
11246
  return;
11255
11247
  }
11256
- const l = n.value.map((m) => r(m, s)).filter((m) => m !== null);
11248
+ const l = n.value.map((y) => r(y, s)).filter((y) => y !== null);
11257
11249
  o.value = Ve(l);
11258
11250
  }
11259
11251
  const c = Dn((s) => {
@@ -11281,13 +11273,13 @@ const Pt = /* @__PURE__ */ ae({
11281
11273
  displayText: s,
11282
11274
  editable: l,
11283
11275
  modelValue: f,
11284
- getSelectedItemsByDisplayText: m
11276
+ getSelectedItemsByDisplayText: y
11285
11277
  } = Au(e), g = N(() => e.multiSelect);
11286
11278
  N(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
11287
- const p = N(() => {
11288
- var F;
11289
- const x = (F = n.value) == null ? void 0 : F.popoverRef;
11290
- return x ? x.shown : !1;
11279
+ const m = N(() => {
11280
+ var T;
11281
+ const F = (T = n.value) == null ? void 0 : T.popoverRef;
11282
+ return F ? F.shown : !1;
11291
11283
  }), {
11292
11284
  onValueChange: w,
11293
11285
  resetDataSource: k
@@ -11296,22 +11288,22 @@ const Pt = /* @__PURE__ */ ae({
11296
11288
  dataSource: h,
11297
11289
  searchFields: u,
11298
11290
  originalValue: d,
11299
- showPopover: p
11291
+ showPopover: m
11300
11292
  });
11301
- function E() {
11293
+ function O() {
11302
11294
  !g.value && n.value && n.value.hidePopup();
11303
11295
  }
11304
- function B(x) {
11305
- s.value = e.displayFormatter ? e.displayFormatter(x) : x.map((F) => F[e.textField]).join(e.separator), f.value = x.map((F) => F[e.valueField]).join(e.separator), t.emit("update:modelValue", f.value), t.emit("change", x, f.value), E();
11296
+ function B(F) {
11297
+ s.value = e.displayFormatter ? e.displayFormatter(F) : F.map((T) => T[e.textField]).join(e.separator), f.value = F.map((T) => T[e.valueField]).join(e.separator), t.emit("update:modelValue", f.value), t.emit("change", F, f.value), O();
11306
11298
  }
11307
- function b(x) {
11308
- var F;
11309
- f.value = "", p.value && ((F = n.value) == null || F.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, f.value), t.emit("clear");
11299
+ function b(F) {
11300
+ var T;
11301
+ f.value = "", m.value && ((T = n.value) == null || T.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, f.value), t.emit("clear");
11310
11302
  }
11311
- Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([x, F, j, R, M]) => {
11312
- a.value = x, l.value = F, o.value = j, i.value = R, r.value = M;
11303
+ Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, T, j, R, M]) => {
11304
+ a.value = F, l.value = T, o.value = j, i.value = R, r.value = M;
11313
11305
  });
11314
- const y = () => {
11306
+ const p = () => {
11315
11307
  d.value = Ve(h.value);
11316
11308
  };
11317
11309
  return () => v(In, {
@@ -11330,16 +11322,16 @@ const Pt = /* @__PURE__ */ ae({
11330
11322
  inputType: e.viewType,
11331
11323
  popupOnClick: !0,
11332
11324
  modelValue: s.value,
11333
- "onUpdate:modelValue": (x) => s.value = x,
11325
+ "onUpdate:modelValue": (F) => s.value = F,
11334
11326
  onClear: b,
11335
11327
  onInput: w,
11336
11328
  focusOnCreated: e.focusOnCreated,
11337
11329
  selectOnCreated: e.selectOnCreated,
11338
- beforeOpen: y,
11330
+ beforeOpen: p,
11339
11331
  placement: e.placement,
11340
11332
  popupMinWidth: e.minPanelWidth
11341
11333
  }, {
11342
- default: () => [p.value && v($u, {
11334
+ default: () => [m.value && v($u, {
11343
11335
  ref: c,
11344
11336
  maxHeight: e.maxHeight,
11345
11337
  multiSelect: e.multiSelect,
@@ -11442,41 +11434,41 @@ const zu = /* @__PURE__ */ ae({
11442
11434
  onInsert: s,
11443
11435
  onRemove: l,
11444
11436
  onRowClick: f,
11445
- activeRowCls: m,
11437
+ activeRowCls: y,
11446
11438
  itemIntoView: g
11447
- } = Ca(e, t, d), p = C(e.expressionOptions || {});
11448
- function w(E) {
11439
+ } = Ca(e, t, d), m = C(e.expressionOptions || {});
11440
+ function w(O) {
11449
11441
  var B, b;
11450
- switch (E.expresstype) {
11442
+ switch (O.expresstype) {
11451
11443
  case Re.Variable:
11452
11444
  return v(Ha, {
11453
- modelValue: E.value,
11454
- "onUpdate:modelValue": (y) => E.value = y,
11445
+ modelValue: O.value,
11446
+ "onUpdate:modelValue": (p) => O.value = p,
11455
11447
  showOutline: !1,
11456
11448
  fieldData: (B = e.formContextData) == null ? void 0 : B.fieldData,
11457
11449
  varData: (b = e.formContextData) == null ? void 0 : b.varData
11458
11450
  }, null);
11459
11451
  case Re.Expression:
11460
- return v(Fu, ft({
11461
- modelValue: E.value,
11462
- "onUpdate:modelValue": (y) => E.value = y
11463
- }, p.value), null);
11452
+ return v(Su, ft({
11453
+ modelValue: O.value,
11454
+ "onUpdate:modelValue": (p) => O.value = p
11455
+ }, m.value), null);
11464
11456
  case Re.Value:
11465
11457
  default:
11466
11458
  return v(Rt, {
11467
11459
  enableTitle: !0,
11468
11460
  buttonContent: "",
11469
11461
  popupOnClick: !0,
11470
- modelValue: E.value,
11471
- "onUpdate:modelValue": (y) => E.value = y
11462
+ modelValue: O.value,
11463
+ "onUpdate:modelValue": (p) => O.value = p
11472
11464
  }, null);
11473
11465
  }
11474
11466
  }
11475
- function k(E, B, b) {
11467
+ function k(O, B, b) {
11476
11468
  return v(lt, {
11477
11469
  data: B,
11478
- modelValue: E[b],
11479
- "onUpdate:modelValue": (y) => E[b] = y,
11470
+ modelValue: O[b],
11471
+ "onUpdate:modelValue": (p) => O[b] = p,
11480
11472
  textField: "label",
11481
11473
  valueField: "value",
11482
11474
  idField: "value",
@@ -11513,10 +11505,10 @@ const zu = /* @__PURE__ */ ae({
11513
11505
  style: "width: 60px"
11514
11506
  }, [v("b", null, [le("关系")])])])]), v("tbody", {
11515
11507
  ref: d
11516
- }, [c.value.map((E, B) => v("tr", {
11508
+ }, [c.value.map((O, B) => v("tr", {
11517
11509
  index: B,
11518
- class: m.value(B),
11519
- onClick: (b) => f(E, B)
11510
+ class: y.value(B),
11511
+ onClick: (b) => f(O, B)
11520
11512
  }, [v("td", {
11521
11513
  style: "text-overflow: unset;",
11522
11514
  align: "center",
@@ -11537,19 +11529,19 @@ const zu = /* @__PURE__ */ ae({
11537
11529
  class: "f-icon f-icon-minus"
11538
11530
  }, null)])]), v("td", {
11539
11531
  class: "px-1"
11540
- }, [k(E, a, "lbracket")]), v("td", {
11532
+ }, [k(O, a, "lbracket")]), v("td", {
11541
11533
  class: "px-1"
11542
- }, [u(E, h.value, "filterField")]), v("td", {
11534
+ }, [u(O, h.value, "filterField")]), v("td", {
11543
11535
  class: "px-1"
11544
- }, [k(E, n, "compare")]), v("td", {
11536
+ }, [k(O, n, "compare")]), v("td", {
11545
11537
  class: "px-1"
11546
- }, [k(E, o, "expresstype")]), v("td", {
11538
+ }, [k(O, o, "expresstype")]), v("td", {
11547
11539
  class: "px-1"
11548
- }, [w(E)]), v("td", {
11540
+ }, [w(O)]), v("td", {
11549
11541
  class: "px-1"
11550
- }, [k(E, r, "rbracket")]), v("td", {
11542
+ }, [k(O, r, "rbracket")]), v("td", {
11551
11543
  class: "px-1"
11552
- }, [k(E, i, "relation")])]))])])]);
11544
+ }, [k(O, i, "relation")])]))])])]);
11553
11545
  }
11554
11546
  }), Wu = /* @__PURE__ */ ae({
11555
11547
  name: "filter-condition-actions",
@@ -11672,21 +11664,21 @@ const zu = /* @__PURE__ */ ae({
11672
11664
  }, [i.value.map((l, f) => v("tr", {
11673
11665
  index: f,
11674
11666
  class: h.value(f),
11675
- onClick: (m) => c(l, f)
11667
+ onClick: (y) => c(l, f)
11676
11668
  }, [v("td", {
11677
11669
  style: "text-overflow: unset;",
11678
11670
  align: "center",
11679
11671
  class: "px-1"
11680
11672
  }, [v("button", {
11681
11673
  title: "插入",
11682
- onClick: (m) => u(f, m),
11674
+ onClick: (y) => u(f, y),
11683
11675
  type: "button",
11684
11676
  class: "btn btn-link p-1 mr-0"
11685
11677
  }, [v("span", {
11686
11678
  class: "f-icon f-icon-plus"
11687
11679
  }, null)]), v("button", {
11688
11680
  title: "移除",
11689
- onClick: (m) => d(f, m),
11681
+ onClick: (y) => d(f, y),
11690
11682
  type: "button",
11691
11683
  class: "btn btn-link p-1 m-0"
11692
11684
  }, [v("span", {
@@ -11701,7 +11693,7 @@ const zu = /* @__PURE__ */ ae({
11701
11693
  valueField: "value",
11702
11694
  idField: "value",
11703
11695
  modelValue: l.sortType,
11704
- "onUpdate:modelValue": (m) => l.sortType = m,
11696
+ "onUpdate:modelValue": (y) => l.sortType = y,
11705
11697
  enableClear: !1,
11706
11698
  minPanelWidth: 130,
11707
11699
  placement: "auto"
@@ -11727,81 +11719,81 @@ function Gu(e, t) {
11727
11719
  } : {
11728
11720
  sortField: "",
11729
11721
  sortType: "asc"
11730
- }, d = N(() => t.value.length > 0), c = N(() => (y = "down") => t.value.length > 1 ? y === "up" ? n.value > 0 : n.value < t.value.length - 1 : !1);
11722
+ }, d = N(() => t.value.length > 0), c = N(() => (p = "down") => t.value.length > 1 ? p === "up" ? n.value > 0 : n.value < t.value.length - 1 : !1);
11731
11723
  function h() {
11732
11724
  if (e.editorType === "filter")
11733
- for (let y = 0; y < t.value.length - 1; y++) {
11734
- const x = t.value[y];
11735
- (x.relation === ut.Empty || !x.relation) && (x.relation = ut.And);
11725
+ for (let p = 0; p < t.value.length - 1; p++) {
11726
+ const F = t.value[p];
11727
+ (F.relation === ut.Empty || !F.relation) && (F.relation = ut.And);
11736
11728
  }
11737
11729
  }
11738
11730
  function s() {
11739
- const y = Object.assign({}, u);
11740
- t.value = [...t.value, y];
11741
- const x = t.value.length - 1;
11742
- n.value = x, h();
11731
+ const p = Object.assign({}, u);
11732
+ t.value = [...t.value, p];
11733
+ const F = t.value.length - 1;
11734
+ n.value = F, h();
11743
11735
  }
11744
- function l({ index: y }) {
11745
- const x = Object.assign({}, u);
11746
- e.insertType === "above" ? y === 0 ? t.value.unshift(x) : t.value.splice(y, 0, x) : t.value.splice(y + 1, 0, x), t.value = [...t.value], h();
11736
+ function l({ index: p }) {
11737
+ const F = Object.assign({}, u);
11738
+ e.insertType === "above" ? p === 0 ? t.value.unshift(F) : t.value.splice(p, 0, F) : t.value.splice(p + 1, 0, F), t.value = [...t.value], h();
11747
11739
  }
11748
- function f({ index: y }) {
11749
- t.value.splice(y, 1), t.value = [...t.value], !(n.value < 0) && (y === n.value ? t.value[y] ? n.value = y : t.value[y - 1] ? n.value = y - 1 : n.value = -1 : y < n.value && (t.value[n.value - 1] ? n.value = n.value - 1 : t.value[n.value] || (n.value = -1)));
11740
+ function f({ index: p }) {
11741
+ t.value.splice(p, 1), t.value = [...t.value], !(n.value < 0) && (p === n.value ? t.value[p] ? n.value = p : t.value[p - 1] ? n.value = p - 1 : n.value = -1 : p < n.value && (t.value[n.value - 1] ? n.value = n.value - 1 : t.value[n.value] || (n.value = -1)));
11750
11742
  }
11751
- function m() {
11743
+ function y() {
11752
11744
  t.value = [];
11753
11745
  }
11754
11746
  function g() {
11755
11747
  n.value >= 0 && (t.value.unshift(a()), t.value.splice(n.value + 1, 1), n.value = 0);
11756
11748
  }
11757
- function p() {
11749
+ function m() {
11758
11750
  if (n.value >= 0) {
11759
- const y = n.value, x = t.value.splice(y, 1);
11760
- t.value.splice(y - 1, 0, ...x), n.value = y - 1;
11751
+ const p = n.value, F = t.value.splice(p, 1);
11752
+ t.value.splice(p - 1, 0, ...F), n.value = p - 1;
11761
11753
  }
11762
11754
  }
11763
11755
  function w() {
11764
11756
  if (n.value >= 0) {
11765
- const y = n.value, x = t.value.splice(y, 1);
11766
- t.value.splice(y + 1, 0, ...x), n.value = y + 1;
11757
+ const p = n.value, F = t.value.splice(p, 1);
11758
+ t.value.splice(p + 1, 0, ...F), n.value = p + 1;
11767
11759
  }
11768
11760
  }
11769
11761
  function k() {
11770
11762
  n.value >= 0 && (t.value.push(a()), t.value.splice(n.value, 1), n.value = t.value.length - 1);
11771
11763
  }
11772
- function E({ index: y }) {
11773
- n.value = y;
11764
+ function O({ index: p }) {
11765
+ n.value = p;
11774
11766
  }
11775
- function B(y) {
11776
- if (y.length % 2 !== 0)
11767
+ function B(p) {
11768
+ if (p.length % 2 !== 0)
11777
11769
  return !1;
11778
- let x = "";
11779
- for (const F of y)
11780
- if (F === "(")
11781
- x += F;
11782
- else if (F === ")") {
11783
- if (!x.endsWith("("))
11770
+ let F = "";
11771
+ for (const T of p)
11772
+ if (T === "(")
11773
+ F += T;
11774
+ else if (T === ")") {
11775
+ if (!F.endsWith("("))
11784
11776
  return !1;
11785
- x = x.slice(0, -1);
11777
+ F = F.slice(0, -1);
11786
11778
  }
11787
- return x.length === 0;
11779
+ return F.length === 0;
11788
11780
  }
11789
11781
  function b() {
11790
- const y = t.value.length;
11791
- if (!y)
11782
+ const p = t.value.length;
11783
+ if (!p)
11792
11784
  return !0;
11793
- let x = !0, F = !0;
11785
+ let F = !0, T = !0;
11794
11786
  if (e.editorType !== "sort") {
11795
- t.value[y - 1].relation = ut.Empty, F = !t.value.slice(0, -1).some(
11796
- (T) => T.relation === ut.Empty || !T.relation
11787
+ t.value[p - 1].relation = ut.Empty, T = !t.value.slice(0, -1).some(
11788
+ (S) => S.relation === ut.Empty || !S.relation
11797
11789
  );
11798
- const M = t.value.flatMap((T) => [T.lbracket, T.rbracket]).join("");
11799
- x = B(M);
11790
+ const M = t.value.flatMap((S) => [S.lbracket, S.rbracket]).join("");
11791
+ F = B(M);
11800
11792
  }
11801
11793
  const j = t.value.some((R) => !R[r]);
11802
11794
  return [
11803
- { result: x, message: "括号不匹配,请检查。" },
11804
- { result: F, message: "关系设置不完整,请检查。" },
11795
+ { result: F, message: "括号不匹配,请检查。" },
11796
+ { result: T, message: "关系设置不完整,请检查。" },
11805
11797
  { result: !j, message: "字段不允许为空,请检查。" }
11806
11798
  ].find((R) => !R.result);
11807
11799
  }
@@ -11813,12 +11805,12 @@ function Gu(e, t) {
11813
11805
  onAddFilter: s,
11814
11806
  onRemove: f,
11815
11807
  onInsert: l,
11816
- onClear: m,
11808
+ onClear: y,
11817
11809
  onMoveTop: g,
11818
- onMovePrev: p,
11810
+ onMovePrev: m,
11819
11811
  onMoveNext: w,
11820
11812
  onMoveBottom: k,
11821
- onSelectRow: E,
11813
+ onSelectRow: O,
11822
11814
  validateCondition: b,
11823
11815
  resetActiveRow: o
11824
11816
  };
@@ -11836,17 +11828,17 @@ const _u = /* @__PURE__ */ ae({
11836
11828
  displayText: s,
11837
11829
  onAddFilter: l,
11838
11830
  onClear: f,
11839
- onMoveBottom: m,
11831
+ onMoveBottom: y,
11840
11832
  onMoveNext: g,
11841
- onMovePrev: p,
11833
+ onMovePrev: m,
11842
11834
  onMoveTop: w,
11843
11835
  onInsert: k,
11844
- onRemove: E,
11836
+ onRemove: O,
11845
11837
  activeRowIndex: B,
11846
11838
  onSelectRow: b,
11847
- canClear: y,
11848
- canMove: x,
11849
- validateCondition: F,
11839
+ canClear: p,
11840
+ canMove: F,
11841
+ validateCondition: T,
11850
11842
  resetActiveRow: j
11851
11843
  } = Gu(e, c), R = N(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
11852
11844
  function M() {
@@ -11855,7 +11847,7 @@ const _u = /* @__PURE__ */ ae({
11855
11847
  fields: u.value,
11856
11848
  activeIndex: B.value,
11857
11849
  onInsert: (I) => k(I),
11858
- onRemove: (I) => E(I),
11850
+ onRemove: (I) => O(I),
11859
11851
  idField: e.idField,
11860
11852
  onRowClick: (I) => b(I)
11861
11853
  }, null) : v(zu, {
@@ -11867,13 +11859,13 @@ const _u = /* @__PURE__ */ ae({
11867
11859
  idField: e.idField,
11868
11860
  activeIndex: B.value,
11869
11861
  onInsert: (I) => k(I),
11870
- onRemove: (I) => E(I),
11862
+ onRemove: (I) => O(I),
11871
11863
  onRowClick: (I) => b(I),
11872
11864
  formContextData: r.value
11873
11865
  }, null);
11874
11866
  }
11875
- const T = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)), S = N(() => e.disableConfirmWhenUnchanged && T.value);
11876
- async function O() {
11867
+ const S = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)), x = N(() => e.disableConfirmWhenUnchanged && S.value);
11868
+ async function E() {
11877
11869
  if (t.emit("update:modelValue", c.value), e.onSubmitModal) {
11878
11870
  o == null || o.show();
11879
11871
  const I = await e.onSubmitModal({
@@ -11909,14 +11901,14 @@ const _u = /* @__PURE__ */ ae({
11909
11901
  name: "accept",
11910
11902
  text: "确定",
11911
11903
  class: "btn btn-primary",
11912
- disabled: S,
11904
+ disabled: x,
11913
11905
  handle: async (I) => {
11914
- const G = F();
11915
- return T.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await O();
11906
+ const G = T();
11907
+ return S.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await E();
11916
11908
  }
11917
11909
  }]
11918
11910
  };
11919
- async function H() {
11911
+ async function W() {
11920
11912
  if (e.beforeOpen)
11921
11913
  try {
11922
11914
  o == null || o.show();
@@ -11927,13 +11919,13 @@ const _u = /* @__PURE__ */ ae({
11927
11919
  if (I) {
11928
11920
  const {
11929
11921
  fieldList: G,
11930
- conditionList: W,
11922
+ conditionList: z,
11931
11923
  entities: ee,
11932
11924
  variables: ce,
11933
11925
  formContextData: ve,
11934
11926
  isServerSide: Y
11935
11927
  } = I;
11936
- return u.value = G || [], c.value = W || [], h.value = JSON.parse(JSON.stringify(c.value)), i.value = {
11928
+ return u.value = G || [], c.value = z || [], h.value = JSON.parse(JSON.stringify(c.value)), i.value = {
11937
11929
  entities: ee,
11938
11930
  variables: ce,
11939
11931
  isServerSide: Y
@@ -11964,7 +11956,7 @@ const _u = /* @__PURE__ */ ae({
11964
11956
  buttonContent: d,
11965
11957
  buttonBehavior: "Modal",
11966
11958
  modalOptions: P,
11967
- beforeOpen: H,
11959
+ beforeOpen: W,
11968
11960
  onClear: J,
11969
11961
  enableTitle: e.enableTitle,
11970
11962
  "onUpdate:modelValue": $
@@ -11975,13 +11967,13 @@ const _u = /* @__PURE__ */ ae({
11975
11967
  style: "border-top: 1px solid white; position: absolute; top: 0; width: 100%; z-index: 2;",
11976
11968
  class: "shading-border-top"
11977
11969
  }, null), M(), v(Wu, {
11978
- canClear: y,
11979
- canMove: x,
11970
+ canClear: p,
11971
+ canMove: F,
11980
11972
  onAdd: l,
11981
11973
  onClear: f,
11982
- onMoveBottom: m,
11974
+ onMoveBottom: y,
11983
11975
  onMoveNext: g,
11984
- onMovePrev: p,
11976
+ onMovePrev: m,
11985
11977
  onMoveTop: w
11986
11978
  }, null)])]
11987
11979
  });