@farris/ui-vue 1.8.1 → 1.8.4

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 (41) hide show
  1. package/components/batch-editor/index.esm.js +7332 -7299
  2. package/components/batch-editor/index.umd.cjs +22 -22
  3. package/components/button/index.esm.js +7334 -7301
  4. package/components/button/index.umd.cjs +22 -22
  5. package/components/collection-property-editor/index.esm.js +2 -2
  6. package/components/collection-property-editor/index.umd.cjs +1 -1
  7. package/components/component/index.esm.js +880 -874
  8. package/components/component/index.umd.cjs +2 -2
  9. package/components/data-grid/index.esm.js +841 -835
  10. package/components/data-grid/index.umd.cjs +2 -2
  11. package/components/data-view/index.esm.js +14551 -14472
  12. package/components/data-view/index.umd.cjs +27 -27
  13. package/components/designer-canvas/index.esm.js +820 -814
  14. package/components/designer-canvas/index.umd.cjs +1 -1
  15. package/components/mapping-editor/index.esm.js +848 -842
  16. package/components/mapping-editor/index.umd.cjs +2 -2
  17. package/components/popover/index.esm.js +264 -243
  18. package/components/popover/index.umd.cjs +1 -1
  19. package/components/tree-grid/index.esm.js +315 -309
  20. package/components/tree-grid/index.umd.cjs +1 -1
  21. package/designer/data-grid/index.esm.js +8304 -8257
  22. package/designer/data-grid/index.umd.cjs +26 -26
  23. package/designer/farris-designer.all.esm.js +3235 -3223
  24. package/designer/farris-designer.all.umd.cjs +14 -14
  25. package/designer/radio-group/index.esm.js +80 -62
  26. package/designer/radio-group/index.umd.cjs +2 -2
  27. package/designer/tabs/index.esm.js +830 -824
  28. package/designer/tabs/index.umd.cjs +2 -2
  29. package/designer/tree-grid/index.esm.js +348 -342
  30. package/designer/tree-grid/index.umd.cjs +1 -1
  31. package/farris.all.esm.js +18919 -18822
  32. package/farris.all.umd.cjs +39 -39
  33. package/package.json +1 -1
  34. package/types/data-view/components/column-header/column-header.component.d.ts +2 -2
  35. package/types/data-view/composition/column/persist-column-widths.d.ts +15 -0
  36. package/types/data-view/composition/column/use-resize.d.ts +3 -2
  37. package/types/data-view/index.d.ts +1 -0
  38. package/types/popover/src/composition/measure-host.d.ts +10 -5
  39. package/types/popover/src/composition/types.d.ts +2 -2
  40. package/types/popover/src/composition/use-host.d.ts +1 -2
  41. package/types/radio-group/src/property-config/radio-group.property-config.d.ts +21 -0
@@ -1,108 +1,108 @@
1
- var Vo = Object.defineProperty;
2
- var Po = (e, t, n) => t in e ? Vo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var me = (e, t, n) => Po(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as je, ref as x, onBeforeMount as $t, onMounted as et, createVNode as g, computed as J, watch as Ee, Fragment as Ke, reactive as rn, createApp as Bn, onUnmounted as It, Transition as Vn, mergeProps as _t, nextTick as st, createTextVNode as Te, watchEffect as Ro, Teleport as Oo, shallowRef as No, render as Zt, h as Do, cloneVNode as jo, inject as Dt, withDirectives as jt, resolveDirective as an, vModelText as Lo } from "vue";
5
- import { resolveAppearance as un, createPropsResolver as gt, schemaResolverMap as Ao, propertyEffectMap as $o, propertyConfigSchemaMap as _o, schemaMap as Pn, getSchemaByType as Kt } from "../dynamic-resolver/index.esm.js";
6
- import { DgControl as j, canvasChanged as Rn, refreshCanvas as On, useDesignerComponent as Nn, UseTemplateDragAndDropRules as Uo } from "../designer-canvas/index.esm.js";
7
- import { cloneDeep as Ze, debounce as zo, isUndefined as Xe, isPlainObject as bn, mergeWith as Ho, merge as Go } from "lodash-es";
8
- import { EVENT_PROPERTY_TAB_IDS as Dn, getCustomClass as kt, withInstall as qo, useThirdComponent as jn, isMobilePhone as ln, getMaxZIndex as Cn, FormSchemaEntityField$Type as wn, FormSchemaEntityFieldTypeName as Fn } from "../common/index.esm.js";
9
- import { LocaleService as Le } from "../locale/index.esm.js";
1
+ var Ro = Object.defineProperty;
2
+ var Oo = (e, t, n) => t in e ? Ro(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var fe = (e, t, n) => Oo(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { defineComponent as Le, ref as x, onBeforeMount as _t, onMounted as et, createVNode as g, computed as J, watch as Ee, Fragment as Ke, reactive as rn, createApp as Bn, onUnmounted as It, Transition as Vn, mergeProps as Ut, nextTick as st, createTextVNode as Te, watchEffect as No, Teleport as Do, shallowRef as jo, render as Zt, h as Lo, cloneVNode as Ao, inject as jt, withDirectives as Lt, resolveDirective as an, vModelText as $o } from "vue";
5
+ import { resolveAppearance as un, createPropsResolver as gt, schemaResolverMap as _o, propertyEffectMap as Uo, propertyConfigSchemaMap as zo, schemaMap as Pn, getSchemaByType as Kt } from "../dynamic-resolver/index.esm.js";
6
+ import { DgControl as j, canvasChanged as Rn, refreshCanvas as On, useDesignerComponent as Nn, UseTemplateDragAndDropRules as Ho } from "../designer-canvas/index.esm.js";
7
+ import { cloneDeep as Ze, debounce as Go, isUndefined as Xe, isPlainObject as bn, mergeWith as qo, merge as Wo } from "lodash-es";
8
+ import { EVENT_PROPERTY_TAB_IDS as Dn, getCustomClass as kt, withInstall as Yo, useThirdComponent as jn, isMobilePhone as ln, getMaxZIndex as Cn, FormSchemaEntityField$Type as wn, FormSchemaEntityFieldTypeName as Fn } from "../common/index.esm.js";
9
+ import { LocaleService as Ae } from "../locale/index.esm.js";
10
10
  import "bignumber.js";
11
- import { useResizeObserver as Wo } from "@vueuse/core";
12
- import { getHierarchyRow as Yo, useIdentify as Xo, useGroupData as Qo, useFilter as Jo, useHierarchy as Zo, useLoading as Ko, useDataView as ei, useSelection as ti, useSelectHierarchyItem as ni, usePagination as oi, useDataViewContainerStyle as ii, useCommandColumn as ri, useSettingColumn as ai, useColumn as li, useSort as si, useGroupColumn as ci, useRow as ui, useEdit as di, useVisualDataBound as fi, useVisualDataCell as mi, useVisualDataRow as pi, useVisualData as vi, useCellPosition as gi, useSidebar as hi, useVirtualScroll as yi, useFitColumn as bi, useFilterHistory as Ci, useColumnFilter as wi, useDragColumn as Fi, getColumnHeader as Ti, getSidebar as Si, getDisableMask as xi, getHorizontalScrollbar as Ei, getVerticalScrollbar as Ii, getEmpty as ki, getPagination as Mi, getSummary as Bi, ColumnSettingSolution as Vi, refreshScrollAfterDataSourceLoad as Pi, COMMAND_COLUMN_DATA_TYPE as en, SETTING_COLUMN_DATA_TYPE as tn } from "../data-view/index.esm.js";
13
- import { resolveField as Ri } from "../common/index.esm.js/utils/resolve-field";
14
- import Oi from "../input-group/index.esm.js";
11
+ import { useResizeObserver as Xo } from "@vueuse/core";
12
+ import { getHierarchyRow as Qo, useIdentify as Jo, useGroupData as Zo, useFilter as Ko, useHierarchy as ei, useLoading as ti, useDataView as ni, useSelection as oi, useSelectHierarchyItem as ii, usePagination as ri, useDataViewContainerStyle as ai, useCommandColumn as li, useSettingColumn as si, useColumn as ci, useSort as ui, useGroupColumn as di, useRow as fi, useEdit as mi, useVisualDataBound as pi, useVisualDataCell as vi, useVisualDataRow as gi, useVisualData as hi, useCellPosition as yi, useSidebar as bi, useVirtualScroll as Ci, useFitColumn as wi, useFilterHistory as Fi, useColumnFilter as Ti, useDragColumn as Si, getColumnHeader as xi, getSidebar as Ei, getDisableMask as Ii, getHorizontalScrollbar as ki, getVerticalScrollbar as Mi, getEmpty as Bi, getPagination as Vi, getSummary as Pi, ColumnSettingSolution as Ri, refreshScrollAfterDataSourceLoad as Oi, COMMAND_COLUMN_DATA_TYPE as en, SETTING_COLUMN_DATA_TYPE as tn } from "../data-view/index.esm.js";
13
+ import { resolveField as Ni } from "../common/index.esm.js/utils/resolve-field";
14
+ import Di from "../input-group/index.esm.js";
15
15
  import St from "../button/index.esm.js";
16
- import { loadRegister as Ni, useComponentManager as Di, useEntityState as ji, useDynamicViewUtils as Li, componentMap as nn, resolverMap as Ai, componentPropsConverter as $i } from "../dynamic-view/index.esm.js";
17
- import _i from "../section/index.esm.js";
18
- import Ui from "../accordion/index.esm.js";
19
- import zi from "../../designer/avatar/index.esm.js";
20
- import Hi from "../../designer/approval-logs/index.esm.js";
21
- import Gi from "../../designer/button-edit/index.esm.js";
22
- import qi from "../button-group/index.esm.js";
23
- import Wi from "../calendar/index.esm.js";
24
- import Yi from "../../designer/capsule/index.esm.js";
16
+ import { loadRegister as ji, useComponentManager as Li, useEntityState as Ai, useDynamicViewUtils as $i, componentMap as nn, resolverMap as _i, componentPropsConverter as Ui } from "../dynamic-view/index.esm.js";
17
+ import zi from "../section/index.esm.js";
18
+ import Hi from "../accordion/index.esm.js";
19
+ import Gi from "../../designer/avatar/index.esm.js";
20
+ import qi from "../../designer/approval-logs/index.esm.js";
21
+ import Wi from "../../designer/button-edit/index.esm.js";
22
+ import Yi from "../button-group/index.esm.js";
23
+ import Xi from "../calendar/index.esm.js";
24
+ import Qi from "../../designer/capsule/index.esm.js";
25
25
  import Tn from "../../designer/checkbox/index.esm.js";
26
26
  import Sn from "../../designer/checkbox-group/index.esm.js";
27
- import Xi from "../combo-list/index.esm.js";
28
- import Qi from "../combo-tree/index.esm.js";
29
- import Ji from "../component/index.esm.js";
30
- import Zi from "../color-picker/index.esm.js";
31
- import Ki from "../content-container/index.esm.js";
32
- import er from "../table/index.esm.js";
33
- import tr from "../../designer/date-picker/index.esm.js";
34
- import nr from "../../designer/data-grid/index.esm.js";
35
- import or from "../dropdown/index.esm.js";
36
- import ir from "../../designer/dynamic-form/index.esm.js";
37
- import rr from "../events-editor/index.esm.js";
38
- import ar from "../filter-bar/index.esm.js";
39
- import lr from "../field-selector/index.esm.js";
40
- import sr from "../binding-selector/index.esm.js";
41
- import cr from "../image-cropper/index.esm.js";
42
- import ur from "../../designer/input-group/index.esm.js";
43
- import dr from "../layout/index.esm.js";
44
- import fr from "../list-nav/index.esm.js";
45
- import mr from "../../designer/list-view/index.esm.js";
46
- import pr from "../lookup/index.esm.js";
47
- import vr from "../mapping-editor/index.esm.js";
48
- import gr from "../../designer/nav/index.esm.js";
49
- import hr from "../number-range/index.esm.js";
50
- import yr from "../../designer/number-spinner/index.esm.js";
51
- import br from "../order/index.esm.js";
52
- import Cr from "../page-header/index.esm.js";
53
- import wr from "../page-footer/index.esm.js";
54
- import Fr from "../pagination/index.esm.js";
55
- import Tr from "../progress/index.esm.js";
56
- import Sr from "../query-solution/index.esm.js";
57
- import xr from "../../designer/radio-group/index.esm.js";
58
- import Er from "../../designer/rate/index.esm.js";
59
- import Ir from "../../designer/response-toolbar/index.esm.js";
60
- import kr from "../response-layout/index.esm.js";
61
- import Mr from "../../designer/response-layout-editor/index.esm.js";
62
- import Br from "../search-box/index.esm.js";
63
- import Vr from "../../designer/section/index.esm.js";
64
- import Pr from "../smoke-detector/index.esm.js";
65
- import Rr from "../splitter/index.esm.js";
66
- import Or from "../step/index.esm.js";
67
- import Nr from "../../designer/switch/index.esm.js";
68
- import Dr from "../../designer/tabs/index.esm.js";
69
- import jr from "../../designer/tags/index.esm.js";
70
- import Lr from "../text/index.esm.js";
71
- import Ar from "../../designer/time-picker/index.esm.js";
72
- import $r from "../transfer/index.esm.js";
73
- import _r from "../tree-view/index.esm.js";
74
- import Ur from "../uploader/index.esm.js";
75
- import zr from "../verify-detail/index.esm.js";
76
- import Hr from "../video/index.esm.js";
77
- import Gr from "../../designer/textarea/index.esm.js";
78
- import qr from "../schema-selector/index.esm.js";
79
- import Wr from "../../designer/tree-grid/index.esm.js";
80
- import Yr from "../event-parameter/index.esm.js";
81
- import Xr from "../filter-condition-editor/index.esm.js";
82
- import Qr from "../fieldset/index.esm.js";
83
- import Jr from "../sort-condition-editor/index.esm.js";
84
- import Zr from "../menu-lookup/index.esm.js";
85
- import Kr from "../../designer/drawer/index.esm.js";
86
- import ea from "../json-editor/index.esm.js";
87
- import ta from "../property-editor/index.esm.js";
88
- import na from "../expression-editor/index.esm.js";
89
- import oa from "../code-editor/index.esm.js";
90
- import ia from "../html-template/index.esm.js";
91
- import ra from "../collection-property-editor/index.esm.js";
92
- import aa from "../../designer/modal/index.esm.js";
93
- import la from "../external-container/index.esm.js";
94
- import sa from "../language-textbox/index.esm.js";
95
- import ca from "../image/index.esm.js";
96
- import ua from "../comment/index.esm.js";
97
- import da from "../../designer/wizard/index.esm.js";
98
- import fa from "../tooltip/index.esm.js";
99
- import { FormBindingType as ma } from "../property-panel/index.esm.js";
100
- import { FNotifyService as pa } from "../notify/index.esm.js";
27
+ import Ji from "../combo-list/index.esm.js";
28
+ import Zi from "../combo-tree/index.esm.js";
29
+ import Ki from "../component/index.esm.js";
30
+ import er from "../color-picker/index.esm.js";
31
+ import tr from "../content-container/index.esm.js";
32
+ import nr from "../table/index.esm.js";
33
+ import or from "../../designer/date-picker/index.esm.js";
34
+ import ir from "../../designer/data-grid/index.esm.js";
35
+ import rr from "../dropdown/index.esm.js";
36
+ import ar from "../../designer/dynamic-form/index.esm.js";
37
+ import lr from "../events-editor/index.esm.js";
38
+ import sr from "../filter-bar/index.esm.js";
39
+ import cr from "../field-selector/index.esm.js";
40
+ import ur from "../binding-selector/index.esm.js";
41
+ import dr from "../image-cropper/index.esm.js";
42
+ import fr from "../../designer/input-group/index.esm.js";
43
+ import mr from "../layout/index.esm.js";
44
+ import pr from "../list-nav/index.esm.js";
45
+ import vr from "../../designer/list-view/index.esm.js";
46
+ import gr from "../lookup/index.esm.js";
47
+ import hr from "../mapping-editor/index.esm.js";
48
+ import yr from "../../designer/nav/index.esm.js";
49
+ import br from "../number-range/index.esm.js";
50
+ import Cr from "../../designer/number-spinner/index.esm.js";
51
+ import wr from "../order/index.esm.js";
52
+ import Fr from "../page-header/index.esm.js";
53
+ import Tr from "../page-footer/index.esm.js";
54
+ import Sr from "../pagination/index.esm.js";
55
+ import xr from "../progress/index.esm.js";
56
+ import Er from "../query-solution/index.esm.js";
57
+ import Ir from "../../designer/radio-group/index.esm.js";
58
+ import kr from "../../designer/rate/index.esm.js";
59
+ import Mr from "../../designer/response-toolbar/index.esm.js";
60
+ import Br from "../response-layout/index.esm.js";
61
+ import Vr from "../../designer/response-layout-editor/index.esm.js";
62
+ import Pr from "../search-box/index.esm.js";
63
+ import Rr from "../../designer/section/index.esm.js";
64
+ import Or from "../smoke-detector/index.esm.js";
65
+ import Nr from "../splitter/index.esm.js";
66
+ import Dr from "../step/index.esm.js";
67
+ import jr from "../../designer/switch/index.esm.js";
68
+ import Lr from "../../designer/tabs/index.esm.js";
69
+ import Ar from "../../designer/tags/index.esm.js";
70
+ import $r from "../text/index.esm.js";
71
+ import _r from "../../designer/time-picker/index.esm.js";
72
+ import Ur from "../transfer/index.esm.js";
73
+ import zr from "../tree-view/index.esm.js";
74
+ import Hr from "../uploader/index.esm.js";
75
+ import Gr from "../verify-detail/index.esm.js";
76
+ import qr from "../video/index.esm.js";
77
+ import Wr from "../../designer/textarea/index.esm.js";
78
+ import Yr from "../schema-selector/index.esm.js";
79
+ import Xr from "../../designer/tree-grid/index.esm.js";
80
+ import Qr from "../event-parameter/index.esm.js";
81
+ import Jr from "../filter-condition-editor/index.esm.js";
82
+ import Zr from "../fieldset/index.esm.js";
83
+ import Kr from "../sort-condition-editor/index.esm.js";
84
+ import ea from "../menu-lookup/index.esm.js";
85
+ import ta from "../../designer/drawer/index.esm.js";
86
+ import na from "../json-editor/index.esm.js";
87
+ import oa from "../property-editor/index.esm.js";
88
+ import ia from "../expression-editor/index.esm.js";
89
+ import ra from "../code-editor/index.esm.js";
90
+ import aa from "../html-template/index.esm.js";
91
+ import la from "../collection-property-editor/index.esm.js";
92
+ import sa from "../../designer/modal/index.esm.js";
93
+ import ca from "../external-container/index.esm.js";
94
+ import ua from "../language-textbox/index.esm.js";
95
+ import da from "../image/index.esm.js";
96
+ import fa from "../comment/index.esm.js";
97
+ import ma from "../../designer/wizard/index.esm.js";
98
+ import pa from "../tooltip/index.esm.js";
99
+ import { FormBindingType as va } from "../property-panel/index.esm.js";
100
+ import { FNotifyService as ga } from "../notify/index.esm.js";
101
101
  import "../collection-property-editor/index.esm.js/src/use-button-items.designer";
102
- import va from "../tree-grid/index.esm.js";
102
+ import ha from "../tree-grid/index.esm.js";
103
103
  const Ln = /* @__PURE__ */ new Map([
104
104
  ["appearance", un]
105
- ]), ga = "https://json-schema.org/draft/2020-12/schema", ha = "https://farris-design.gitee.io/component.schema.json", ya = "component", ba = "A Farris Visual Component", Ca = "object", wa = {
105
+ ]), ya = "https://json-schema.org/draft/2020-12/schema", ba = "https://farris-design.gitee.io/component.schema.json", Ca = "component", wa = "A Farris Visual Component", Fa = "object", Ta = {
106
106
  id: {
107
107
  description: "The unique identifier for a component",
108
108
  type: "string"
@@ -153,40 +153,40 @@ const Ln = /* @__PURE__ */ new Map([
153
153
  type: "string",
154
154
  default: ""
155
155
  }
156
- }, Fa = [
156
+ }, Sa = [
157
157
  "id",
158
158
  "type",
159
159
  "contents"
160
- ], Ta = {
160
+ ], xa = {
161
161
  onInit: "初始化事件",
162
162
  onAfterViewInit: "视图初始化后事件"
163
- }, Sa = {
164
- $schema: ga,
165
- $id: ha,
166
- title: ya,
167
- description: ba,
168
- type: Ca,
169
- properties: wa,
170
- required: Fa,
171
- events: Ta
163
+ }, Ea = {
164
+ $schema: ya,
165
+ $id: ba,
166
+ title: Ca,
167
+ description: wa,
168
+ type: Fa,
169
+ properties: Ta,
170
+ required: Sa,
171
+ events: xa
172
172
  };
173
173
  function An(e, t, n) {
174
174
  return t;
175
175
  }
176
- const Ut = {
176
+ const zt = {
177
177
  id: { type: String, default: "" },
178
178
  customClass: { type: String, default: "" },
179
179
  customStyle: { type: String, default: "" },
180
180
  componentType: { type: String, default: "" },
181
181
  formColumns: { type: Number, default: 4 },
182
182
  code: { type: String, default: "" }
183
- }, xn = gt(Ut, Sa, Ln, An), Ru = Object.assign({}, Ut, { componentId: { type: String, default: "" } }), on = /* @__PURE__ */ je({
183
+ }, xn = gt(zt, Ea, Ln, An), Nu = Object.assign({}, zt, { componentId: { type: String, default: "" } }), on = /* @__PURE__ */ Le({
184
184
  name: "FComponent",
185
- props: Ut,
185
+ props: zt,
186
186
  emits: ["init", "afterViewInit"],
187
187
  setup(e, t) {
188
188
  const n = x();
189
- return $t(() => {
189
+ return _t(() => {
190
190
  t.emit("init", e.id);
191
191
  }), et(() => {
192
192
  n.value && e.code && n.value.setAttribute("scope-" + e.code.toLowerCase(), ""), t.emit("afterViewInit", e.id);
@@ -198,7 +198,7 @@ const Ut = {
198
198
  }, [t.slots.default && t.slots.default()]);
199
199
  }
200
200
  });
201
- function xa(e) {
201
+ function Ia(e) {
202
202
  const { formSchemaUtils: t, formStateMachineUtils: n } = e;
203
203
  function o(l, s = "") {
204
204
  return {
@@ -226,9 +226,9 @@ function xa(e) {
226
226
  }
227
227
  return { getVariables: r, getControlName: a, getStateMachines: c };
228
228
  }
229
- class Ea {
229
+ class ka {
230
230
  constructor(t) {
231
- me(this, "sessionVariables", [
231
+ fe(this, "sessionVariables", [
232
232
  {
233
233
  key: "CurrentSysOrgName",
234
234
  name: "当前组织Name",
@@ -265,7 +265,7 @@ class Ea {
265
265
  description: "当前登录的语言编号,例如简体中文返回'zh-CHS',英文返回'en',繁体中文'zh-CHT'"
266
266
  }
267
267
  ]);
268
- me(this, "expressionNames", {
268
+ fe(this, "expressionNames", {
269
269
  compute: "计算表达式",
270
270
  dependency: "依赖表达式",
271
271
  validate: "验证表达式",
@@ -274,7 +274,7 @@ class Ea {
274
274
  readonly: "只读表达式",
275
275
  required: "必填表达式"
276
276
  });
277
- me(this, "getExpressionConverter", (t, n) => ({
277
+ fe(this, "getExpressionConverter", (t, n) => ({
278
278
  convertFrom: (o, i, r, a) => {
279
279
  const c = r.getExpressionRuleValue(t, n || i);
280
280
  return c && c.value || "";
@@ -496,28 +496,28 @@ class Ea {
496
496
  }
497
497
  class $n {
498
498
  constructor(t, n) {
499
- me(this, "componentId");
500
- me(this, "viewModelId");
501
- me(this, "eventsEditorUtils");
502
- me(this, "formSchemaUtils");
503
- me(this, "formMetadataConverter");
504
- me(this, "designViewModelUtils");
505
- me(this, "designViewModelField");
506
- me(this, "controlCreatorUtils");
507
- me(this, "designerHostService");
508
- me(this, "designerContext");
509
- me(this, "modalService", null);
499
+ fe(this, "componentId");
500
+ fe(this, "viewModelId");
501
+ fe(this, "eventsEditorUtils");
502
+ fe(this, "formSchemaUtils");
503
+ fe(this, "formMetadataConverter");
504
+ fe(this, "designViewModelUtils");
505
+ fe(this, "designViewModelField");
506
+ fe(this, "controlCreatorUtils");
507
+ fe(this, "designerHostService");
508
+ fe(this, "designerContext");
509
+ fe(this, "modalService", null);
510
510
  /** 表单规则 */
511
- me(this, "formRule", null);
512
- me(this, "schemaService", null);
513
- me(this, "metadataService", null);
514
- me(this, "propertyConfig", {
511
+ fe(this, "formRule", null);
512
+ fe(this, "schemaService", null);
513
+ fe(this, "metadataService", null);
514
+ fe(this, "propertyConfig", {
515
515
  type: "object",
516
516
  categories: {}
517
517
  });
518
- me(this, "expressionProperty");
518
+ fe(this, "expressionProperty");
519
519
  var o;
520
- this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService, this.designerContext = n.designerContext, this.modalService = n.modalService, this.expressionProperty = new Ea(this.formSchemaUtils);
520
+ this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService, this.designerContext = n.designerContext, this.modalService = n.modalService, this.expressionProperty = new ka(this.formSchemaUtils);
521
521
  }
522
522
  /**
523
523
  * 是否在响应式表单中
@@ -622,7 +622,7 @@ class $n {
622
622
  * @returns
623
623
  */
624
624
  getPropertyEditorParams(t, n = [], o = "visible", i = {}, r = {}, a = "") {
625
- const { getVariables: c, getControlName: l, getStateMachines: s } = xa(this.designerHostService), f = this.getRealTargetType(t), d = n && n.length > 0 ? n : ["Const", "Variable", "StateMachine", "Expression"], p = {
625
+ const { getVariables: c, getControlName: l, getStateMachines: s } = Ia(this.designerHostService), f = this.getRealTargetType(t), d = n && n.length > 0 ? n : ["Const", "Variable", "StateMachine", "Expression"], p = {
626
626
  type: "property-editor",
627
627
  propertyTypes: d
628
628
  };
@@ -796,7 +796,7 @@ class $n {
796
796
  }, n;
797
797
  }
798
798
  }
799
- class Ia extends $n {
799
+ class Ma extends $n {
800
800
  constructor(t, n) {
801
801
  super(t, n);
802
802
  }
@@ -884,7 +884,7 @@ class Ia extends $n {
884
884
  n && Object.assign(n, t);
885
885
  }
886
886
  }
887
- const ka = {
887
+ const Ba = {
888
888
  showCloseButton: { type: Boolean, default: !0 },
889
889
  position: { type: String, default: "top-center" },
890
890
  timeout: { type: Number, default: 3e3 },
@@ -897,13 +897,13 @@ const ka = {
897
897
  animate: { type: String, default: "fadeIn" },
898
898
  options: { type: Object },
899
899
  safeHtml: { type: Boolean, default: !0 }
900
- }, Ma = {
900
+ }, Va = {
901
901
  showCloseButton: { type: Boolean, default: !0 },
902
902
  animate: { type: String, default: "fadeIn" },
903
903
  options: { type: Object }
904
- }, sn = /* @__PURE__ */ je({
904
+ }, sn = /* @__PURE__ */ Le({
905
905
  name: "Toast",
906
- props: Ma,
906
+ props: Va,
907
907
  emits: ["close", "click"],
908
908
  setup: (e, t) => {
909
909
  const n = x(e.animate), o = "fadeOut", i = J(() => e.options), r = x(!1), a = J(() => i.value.title && i.value.message), c = J(() => !i.value.title && i.value.message), l = J(() => {
@@ -918,7 +918,7 @@ const ka = {
918
918
  "f-icon": !0
919
919
  };
920
920
  return k[M] = !0, k;
921
- }), f = J(() => i.value.title || i.value.message), d = J(() => e.showCloseButton), p = J(() => !!i.value.buttons || !!t.slots.default), y = J(() => Le.getLocale() === "en" ? {
921
+ }), f = J(() => i.value.title || i.value.message), d = J(() => e.showCloseButton), p = J(() => !!i.value.buttons || !!t.slots.default), y = J(() => Ae.getLocale() === "en" ? {
922
922
  wordBreak: "keep-all",
923
923
  overflowWrap: "break-word"
924
924
  } : {});
@@ -948,7 +948,7 @@ const ka = {
948
948
  class: l.value,
949
949
  style: "min-height:44px"
950
950
  }, [d.value && g("button", {
951
- title: Le.getLocaleValue("messageBox.close"),
951
+ title: Ae.getLocaleValue("messageBox.close"),
952
952
  class: "toast-close f-btn-icon f-bare",
953
953
  onClick: m
954
954
  }, [g("span", {
@@ -1006,8 +1006,8 @@ function En() {
1006
1006
  }
1007
1007
  return { guid: e, uuid: t };
1008
1008
  }
1009
- const Ba = ["moz", "ms", "webkit"];
1010
- function Va() {
1009
+ const Pa = ["moz", "ms", "webkit"];
1010
+ function Ra() {
1011
1011
  let e = 0;
1012
1012
  return (t) => {
1013
1013
  const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), i = setTimeout(() => {
@@ -1016,15 +1016,15 @@ function Va() {
1016
1016
  return e = n + o, i;
1017
1017
  };
1018
1018
  }
1019
- function Pa() {
1019
+ function Oa() {
1020
1020
  if (typeof window > "u")
1021
1021
  return () => 0;
1022
1022
  if (window.requestAnimationFrame)
1023
1023
  return window.requestAnimationFrame.bind(window);
1024
- const e = Ba.filter((t) => `${t}RequestAnimationFrame` in window)[0];
1025
- return e ? window[`${e}RequestAnimationFrame`] : Va();
1024
+ const e = Pa.filter((t) => `${t}RequestAnimationFrame` in window)[0];
1025
+ return e ? window[`${e}RequestAnimationFrame`] : Ra();
1026
1026
  }
1027
- Pa();
1027
+ Oa();
1028
1028
  x("");
1029
1029
  function _n() {
1030
1030
  if (typeof window > "u" || typeof navigator > "u")
@@ -1059,14 +1059,14 @@ function _n() {
1059
1059
  const o = "ontouchstart" in window || navigator.maxTouchPoints > 0, i = screen.width, r = screen.height, a = Math.min(i, r);
1060
1060
  return !!(o && a <= 768);
1061
1061
  }
1062
- function Ra() {
1062
+ function Na() {
1063
1063
  const e = _n();
1064
1064
  return e && document.body.classList.add("f-mobile"), e;
1065
1065
  }
1066
- typeof document < "u" && Ra();
1067
- const Rt = /* @__PURE__ */ je({
1066
+ typeof document < "u" && Na();
1067
+ const Ot = /* @__PURE__ */ Le({
1068
1068
  name: "Notify",
1069
- props: ka,
1069
+ props: Ba,
1070
1070
  emits: ["close", "empty"],
1071
1071
  setup(e, t) {
1072
1072
  var b;
@@ -1121,8 +1121,8 @@ const Rt = /* @__PURE__ */ je({
1121
1121
  });
1122
1122
  class dn {
1123
1123
  constructor() {
1124
- me(this, "notifyRefs", []);
1125
- me(this, "globalConfig", rn({}));
1124
+ fe(this, "notifyRefs", []);
1125
+ fe(this, "globalConfig", rn({}));
1126
1126
  }
1127
1127
  escapeAllHtml(t) {
1128
1128
  if (typeof t != "string" || !t)
@@ -1165,7 +1165,7 @@ class dn {
1165
1165
  name: "fade",
1166
1166
  appear: !0
1167
1167
  }, {
1168
- default: () => [g(Rt, _t({
1168
+ default: () => [g(Ot, Ut({
1169
1169
  ref: c
1170
1170
  }, i, {
1171
1171
  onClose: l
@@ -1173,7 +1173,7 @@ class dn {
1173
1173
  });
1174
1174
  }
1175
1175
  });
1176
- return a.provide("NotifyService", this), document.body.appendChild(r), a.use(Le.i18n), a.mount(r), a;
1176
+ return a.provide("NotifyService", this), document.body.appendChild(r), a.use(Ae.i18n), a.mount(r), a;
1177
1177
  }
1178
1178
  getNotifyInstances(t) {
1179
1179
  return this.notifyRefs.filter((n) => n.value.notifyPosition === t);
@@ -1238,13 +1238,13 @@ class dn {
1238
1238
  }), this.notifyRefs.length = 0;
1239
1239
  }
1240
1240
  }
1241
- const Oa = Symbol("NOTIFY_SERVICE_TOKEN");
1242
- Rt.install = (e) => {
1243
- e.component(Rt.name, Rt), e.component(sn.name, sn);
1241
+ const Da = Symbol("NOTIFY_SERVICE_TOKEN");
1242
+ Ot.install = (e) => {
1243
+ e.component(Ot.name, Ot), e.component(sn.name, sn);
1244
1244
  const t = new dn();
1245
- e.provide(Oa, t), e.provide("FNotifyService", t);
1245
+ e.provide(Da, t), e.provide("FNotifyService", t);
1246
1246
  };
1247
- const Na = {
1247
+ const ja = {
1248
1248
  designerHostService: { type: Object, default: {} },
1249
1249
  /** 预设的控件类型 */
1250
1250
  componentType: { type: String, default: "" },
@@ -1255,8 +1255,8 @@ const Na = {
1255
1255
  /** 目标区域的控件实例 */
1256
1256
  targetComponentInstance: { type: Object, default: {} }
1257
1257
  };
1258
- `${Le.getLocaleValue("datagrid.loadingMessage")}`;
1259
- const Da = {
1258
+ `${Ae.getLocaleValue("datagrid.loadingMessage")}`;
1259
+ const La = {
1260
1260
  /**
1261
1261
  * 自定义样式
1262
1262
  */
@@ -1529,12 +1529,12 @@ const Da = {
1529
1529
  * 编辑单元格时默认获得焦点
1530
1530
  */
1531
1531
  focusOnEditingCell: { type: Boolean, default: !0 }
1532
- }, ja = "enum", La = "boolean";
1533
- function Aa(e) {
1532
+ }, Aa = "enum", $a = "boolean";
1533
+ function _a(e) {
1534
1534
  const { formatter: t } = e;
1535
1535
  return !t || typeof t == "function" ? null : t;
1536
1536
  }
1537
- function $a(e, t) {
1537
+ function Ua(e, t) {
1538
1538
  const n = t.options || t, { data: o } = n;
1539
1539
  if (!o || !o.length)
1540
1540
  return "";
@@ -1549,17 +1549,17 @@ function $a(e, t) {
1549
1549
  const a = o.find((c) => c[i] === e);
1550
1550
  return (a == null ? void 0 : a[r]) ?? (e == null ? "" : String(e));
1551
1551
  }
1552
- function _a(e, t) {
1552
+ function za(e, t) {
1553
1553
  if (e == null)
1554
1554
  return "";
1555
1555
  const n = t.options || t, o = e ? n == null ? void 0 : n.trueText : n == null ? void 0 : n.falseText;
1556
1556
  return o == null ? "" : String(o);
1557
1557
  }
1558
- function Ua(e, t) {
1559
- const n = Ri(t, e.field), o = Aa(e), i = o == null ? void 0 : o.type;
1560
- return i === ja ? $a(n, o) : i === La || e.dataType === "boolean" ? _a(n, o || {}) : n == null ? "" : String(n);
1558
+ function Ha(e, t) {
1559
+ const n = Ni(t, e.field), o = _a(e), i = o == null ? void 0 : o.type;
1560
+ return i === Aa ? Ua(n, o) : i === $a || e.dataType === "boolean" ? za(n, o || {}) : n == null ? "" : String(n);
1561
1561
  }
1562
- function za(e, t, n, o, i, r, a, c, l, s, f, d, p, y, m, b, T, I, h) {
1562
+ function Ga(e, t, n, o, i, r, a, c, l, s, f, d, p, y, m, b, T, I, h) {
1563
1563
  const {
1564
1564
  calculateCellPositionInRow: w
1565
1565
  } = r, {
@@ -1572,12 +1572,12 @@ function za(e, t, n, o, i, r, a, c, l, s, f, d, p, y, m, b, T, I, h) {
1572
1572
  rightFixedGridDataStyle: C
1573
1573
  } = y, {
1574
1574
  renderDataRow: v
1575
- } = Yo(e, t, M, T, c, l, s, f, d, p, y, m, b, I, h), F = [v];
1575
+ } = Qo(e, t, M, T, c, l, s, f, d, p, y, m, b, I, h), F = [v];
1576
1576
  function P(Y, $) {
1577
1577
  const A = w(Y);
1578
1578
  return T.value.filter((oe) => oe.visible !== !1).map((oe, W) => F[oe.type](oe, A, $, W));
1579
1579
  }
1580
- function O() {
1580
+ function N() {
1581
1581
  return g("div", {
1582
1582
  ref: o,
1583
1583
  class: "fv-grid-content-left-fixed"
@@ -1606,440 +1606,445 @@ function za(e, t, n, o, i, r, a, c, l, s, f, d, p, y, m, b, T, I, h) {
1606
1606
  }
1607
1607
  function Z() {
1608
1608
  const Y = [];
1609
- return k.value && Y.push(O()), Y.push(R()), B.value && Y.push(L()), Y;
1609
+ return k.value && Y.push(N()), Y.push(R()), B.value && Y.push(L()), Y;
1610
1610
  }
1611
1611
  return {
1612
1612
  renderDataArea: Z
1613
1613
  };
1614
1614
  }
1615
- const cn = /* @__PURE__ */ je({
1615
+ const cn = /* @__PURE__ */ Le({
1616
1616
  name: "FTreeGrid",
1617
- props: Da,
1617
+ props: La,
1618
1618
  emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "selectItem", "filterChanged", "unSelectAll", "selectAll", "sortChanged", "selectionUpdate", "beginEditCell", "endEditCell"],
1619
1619
  setup(e, t) {
1620
1620
  var hn, yn;
1621
1621
  const n = x(!1), o = x(!1), i = 0, r = x(((hn = e.rowOption) == null ? void 0 : hn.height) || 28);
1622
1622
  let a = [], c = [];
1623
- const l = x(20), s = x(e.columns), f = Xo(e), {
1623
+ const l = x(20), s = x(e.columns), f = Jo(e), {
1624
1624
  idField: d
1625
- } = f, p = x(), y = x(), m = x(), b = x(), T = x(), I = x([]), h = x(!1), w = x(((yn = e.rowOption) == null ? void 0 : yn.wrapContent) || !1), M = Qo(e, f), k = Jo(e, t), B = Zo(e), {
1625
+ } = f, p = x(), y = x(), m = x(), b = x(), T = x(), I = x([]), h = x(!1), w = x(((yn = e.rowOption) == null ? void 0 : yn.wrapContent) || !1), M = Zo(e, f), k = Ko(e, t), B = ei(e), {
1626
1626
  collapseField: S
1627
1627
  } = B, {
1628
1628
  showLoading: u,
1629
1629
  renderLoading: C
1630
- } = Ko(e, p), v = ei(e, /* @__PURE__ */ new Map(), k, B, f), {
1630
+ } = ti(e, p), v = ni(e, /* @__PURE__ */ new Map(), k, B, f), {
1631
1631
  dataView: F
1632
- } = v, P = ti(e, v, f, I, t), {
1633
- showSelection: O,
1632
+ } = v, P = oi(e, v, f, I, t), {
1633
+ showSelection: N,
1634
1634
  selectedValues: R
1635
- } = P, L = ni(e, I, v, f, P, t), Z = J(() => e.disabled), Y = J(() => e.virtualized ? Math.min(v.dataView.value.length, l.value) : v.dataView.value.length), $ = oi(e, v), {
1635
+ } = P, L = ii(e, I, v, f, P, t), Z = J(() => e.disabled), Y = J(() => e.virtualized ? Math.min(v.dataView.value.length, l.value) : v.dataView.value.length), $ = ri(e, v), {
1636
1636
  shouldRenderPagination: A
1637
1637
  } = $, {
1638
1638
  containerStyleObject: oe
1639
- } = ii(e, I), W = x(""), Q = x([]), ge = J(() => e.searchable || !1), pe = x(0), re = J(() => Q.value.length ? `${pe.value + 1}/${Q.value.length}` : ""), Se = J(() => Le.getRealPropertyValue(e.searchPlaceholder, "", "datagrid.search.placeholder")), Pe = J(() => Le.getLocaleValue("datagrid.search.search")), we = J(() => Le.getLocaleValue("datagrid.search.prev")), K = J(() => Le.getLocaleValue("datagrid.search.next")), E = J(() => Le.getLocaleValue("datagrid.search.clear")), ee = ri(e), {
1639
+ } = ai(e, I), W = x(""), Q = x([]), ge = J(() => e.searchable || !1), me = x(0), re = J(() => Q.value.length ? `${me.value + 1}/${Q.value.length}` : ""), Se = J(() => Ae.getRealPropertyValue(e.searchPlaceholder, "", "datagrid.search.placeholder")), Pe = J(() => Ae.getLocaleValue("datagrid.search.search")), we = J(() => Ae.getLocaleValue("datagrid.search.prev")), K = J(() => Ae.getLocaleValue("datagrid.search.next")), E = J(() => Ae.getLocaleValue("datagrid.search.clear")), ee = li(e), {
1640
1640
  applyCommands: te
1641
1641
  } = ee;
1642
1642
  te(s);
1643
1643
  const {
1644
1644
  applyColumnSetting: ie,
1645
- removeColumnSetting: ve
1646
- } = ai(e);
1645
+ removeColumnSetting: pe
1646
+ } = si(e);
1647
1647
  e.showSetting && ie(s);
1648
- const Ie = li(e, t), Ne = si(e), {
1648
+ const Ie = ci(e, t), Ne = ui(e), {
1649
1649
  applyColumnSorter: Re,
1650
1650
  columnContext: ye,
1651
1651
  updateColumnRenderContext: Me
1652
1652
  } = Ie;
1653
1653
  Re(v, Ne);
1654
- const Be = ci(e, ye), ke = ui(e, t, P, f), Fe = di(e, t, f, ke, I), it = fi(e, v, r), ut = mi(e, Fe, it), dt = pi(e, v, Fe, B, f, it, ut, r), We = vi(e, s, v, Y, i, dt), {
1654
+ const Be = di(e, ye), ke = fi(e, t, P, f), Fe = mi(e, t, f, ke, I), it = pi(e, v, r), ut = vi(e, Fe, it), dt = gi(e, v, Fe, B, f, it, ut, r), We = hi(e, s, v, Y, i, dt), {
1655
1655
  getVisualData: Qe
1656
- } = We, ft = gi(e, ye, r, n), tt = hi(e, P), {
1656
+ } = We, ft = yi(e, ye, r, n), tt = bi(e, P), {
1657
1657
  sidebarWidth: rt
1658
- } = tt, xe = yi(e, v, I, ye, We, Y, i, rt, r, n), {
1658
+ } = tt, xe = Ci(e, v, I, ye, We, Y, i, rt, r, n), {
1659
1659
  onWheel: D,
1660
1660
  dataGridWidth: ae,
1661
1661
  viewPortHeight: be,
1662
1662
  viewPortWidth: Ce,
1663
- resetScroll: $e,
1663
+ resetScroll: _e,
1664
1664
  updateVisibleRowsOnLatestVisibleScope: ht
1665
- } = xe, at = bi(e, ye, y, Ce, Be), {
1665
+ } = xe, at = wi(e, ye, y, Ce, Be), {
1666
1666
  calculateColumnsSize: mt
1667
- } = at, Mt = Ci(), Bt = wi(y, T, v, Mt, xe), Ht = Fi(e, t, Ie, v, Be, M, xe), Gt = J(() => {
1668
- const N = {
1667
+ } = at, Mt = Fi(), Bt = Ti(y, T, v, Mt, xe), Gt = Si(e, t, Ie, v, Be, M, xe), qt = J(() => {
1668
+ const O = {
1669
1669
  "fv-grid": !0,
1670
1670
  "fv-grid-bordered": e.showBorder,
1671
1671
  "fv-grid-horizontal-bordered": e.showHorizontalLines,
1672
1672
  "fv-datagrid-strip": e.showStripe
1673
1673
  };
1674
- return kt(N, e.customClass);
1675
- }), qt = J(() => ({
1674
+ return kt(O, e.customClass);
1675
+ }), Wt = J(() => ({
1676
1676
  "fv-grid-content": !0,
1677
1677
  "fv-grid-content-hover": h.value,
1678
1678
  "fv-grid-wrap-content": w.value,
1679
1679
  "fv-grid-scrollbar-visible": xe.shouldShowVirticalScrollbar.value && h.value
1680
1680
  })), {
1681
- renderDataArea: Wt
1682
- } = za(e, t, m, b, T, ft, Ie, v, Fe, B, ke, P, L, xe, We, it, I, r, n), {
1683
- renderGridHeader: Yt,
1684
- renderGridColumnResizeOverlay: Vt,
1685
- shouldShowHeader: Xt
1686
- } = Ti(e, t, y, b, T, Ie, v, Ht, Bt, k, Mt, at, Be, P, tt, Ne, xe, Ce, I, o), {
1687
- renderDataGridSidebar: V
1688
- } = Si(e, ke, P, tt, xe), {
1689
- renderDisableMask: q
1690
- } = xi(), {
1691
- renderHorizontalScrollbar: X
1692
- } = Ei(e, y, xe), {
1693
- renderVerticalScrollbar: ne
1694
- } = Ii(e, y, xe);
1695
- let de = null;
1696
- function he() {
1697
- var N, H, le;
1698
- if (y.value && y.value.clientHeight > 0 && ((N = y.value) == null ? void 0 : N.clientWidth) > 0) {
1699
- const ue = Math.ceil(y.value.clientHeight / r.value);
1700
- ue > l.value && (l.value = ue, ht()), be.value = ((H = m.value) == null ? void 0 : H.clientHeight) || 0, ae.value = ((le = y.value) == null ? void 0 : le.clientWidth) || 0, m.value && (Ce.value = m.value.clientWidth);
1681
+ renderDataArea: Yt
1682
+ } = Ga(e, t, m, b, T, ft, Ie, v, Fe, B, ke, P, L, xe, We, it, I, r, n), Vt = x(null);
1683
+ function Pt(O, z) {
1684
+ var le, se;
1685
+ e.enableColumnSettingSolution && ((se = (le = Vt.value) == null ? void 0 : le.persistColumnWidths) == null || se.call(le, z));
1686
+ }
1687
+ const {
1688
+ renderGridHeader: Xt,
1689
+ renderGridColumnResizeOverlay: V,
1690
+ shouldShowHeader: q
1691
+ } = xi(e, t, y, b, T, Ie, v, Gt, Bt, k, Mt, at, Be, P, tt, Ne, xe, Ce, I, o, Pt), {
1692
+ renderDataGridSidebar: X
1693
+ } = Ei(e, ke, P, tt, xe), {
1694
+ renderDisableMask: ne
1695
+ } = Ii(), {
1696
+ renderHorizontalScrollbar: ve
1697
+ } = ki(e, y, xe), {
1698
+ renderVerticalScrollbar: he
1699
+ } = Mi(e, y, xe);
1700
+ let De = null;
1701
+ function $e() {
1702
+ var O, z, le;
1703
+ if (y.value && y.value.clientHeight > 0 && ((O = y.value) == null ? void 0 : O.clientWidth) > 0) {
1704
+ const se = Math.ceil(y.value.clientHeight / r.value);
1705
+ se > l.value && (l.value = se, ht()), be.value = ((z = m.value) == null ? void 0 : z.clientHeight) || 0, ae.value = ((le = y.value) == null ? void 0 : le.clientWidth) || 0, m.value && (Ce.value = m.value.clientWidth);
1701
1706
  }
1702
1707
  y.value && (y.value.clientHeight > 0 || y.value.clientWidth > 0) && mt();
1703
1708
  }
1704
- function Ge() {
1705
- de !== null && cancelAnimationFrame(de), de = requestAnimationFrame(() => {
1706
- de = null, he();
1709
+ function ze() {
1710
+ De !== null && cancelAnimationFrame(De), De = requestAnimationFrame(() => {
1711
+ De = null, $e();
1707
1712
  });
1708
1713
  }
1709
1714
  et(() => {
1710
- y.value && (l.value = Math.max(Math.ceil(y.value.clientHeight / r.value), l.value), I.value = Qe(0, Y.value + i - 1), Wo(y.value, Ge), mt(), st(() => {
1715
+ y.value && (l.value = Math.max(Math.ceil(y.value.clientHeight / r.value), l.value), I.value = Qe(0, Y.value + i - 1), Xo(y.value, ze), mt(), st(() => {
1711
1716
  y.value && (ae.value = y.value.clientWidth), m.value && (Ce.value = m.value.clientWidth, be.value = m.value.clientHeight);
1712
1717
  })), u.value && C();
1713
1718
  }), It(() => {
1714
- de !== null && cancelAnimationFrame(de);
1719
+ De !== null && cancelAnimationFrame(De);
1715
1720
  });
1716
- function Ae(N) {
1717
- v.collapseTo(N), v.reOrderVisibleIndex(), $e();
1721
+ function Ye(O) {
1722
+ v.collapseTo(O), v.reOrderVisibleIndex(), _e();
1718
1723
  }
1719
- function Ue(N) {
1720
- v.expandTo(N), v.reOrderVisibleIndex(), $e();
1724
+ function Oe(O) {
1725
+ v.expandTo(O), v.reOrderVisibleIndex(), _e();
1721
1726
  }
1722
- function ze() {
1723
- const N = P.getSelectionRow();
1724
- return N ? N.dataIndex - 1 : -1;
1727
+ function He() {
1728
+ const O = P.getSelectionRow();
1729
+ return O ? O.dataIndex - 1 : -1;
1725
1730
  }
1726
- function Oe(N) {
1727
- const H = N !== void 0 ? N : ze(), le = v.insertNewDataItem(H === -1 ? 0 : H);
1731
+ function Ue(O) {
1732
+ const z = O !== void 0 ? O : He(), le = v.insertNewDataItem(z === -1 ? 0 : z);
1728
1733
  return I.value = Qe(0, Y.value + i - 1), le;
1729
1734
  }
1730
- function Ye() {
1731
- const N = ze();
1732
- v.insertNewChildDataItem(N), I.value = Qe(0, Y.value + i - 1);
1735
+ function je() {
1736
+ const O = He();
1737
+ v.insertNewChildDataItem(O), I.value = Qe(0, Y.value + i - 1);
1733
1738
  }
1734
- function _e(N, H) {
1735
- const le = I.value.find((ce) => ce.raw[d.value] === H), ue = le ? le.dataIndex - 1 : -1;
1736
- v.insertNewChildDataItems(N, ue);
1739
+ function yt(O, z) {
1740
+ const le = I.value.find((ue) => ue.raw[d.value] === z), se = le ? le.dataIndex - 1 : -1;
1741
+ v.insertNewChildDataItems(O, se);
1737
1742
  }
1738
- function De() {
1739
- const N = ze(), H = L.getNextSelectableHierarchyItemId(N);
1740
- v.removeHierarchyDataItem(N), I.value = Qe(0, Y.value + i - 1), H && L.selectItemById(H);
1743
+ function bt() {
1744
+ const O = He(), z = L.getNextSelectableHierarchyItemId(O);
1745
+ v.removeHierarchyDataItem(O), I.value = Qe(0, Y.value + i - 1), z && L.selectItemById(z);
1741
1746
  }
1742
- function yt(N) {
1743
- Fe.onEditingRow(N);
1747
+ function Ct(O) {
1748
+ Fe.onEditingRow(O);
1744
1749
  }
1745
- function bt(N) {
1746
- Fe.acceptEditingRow(N);
1750
+ function Xn(O) {
1751
+ Fe.acceptEditingRow(O);
1747
1752
  }
1748
- function Ct(N) {
1749
- Fe.cancelEditingRow(N);
1753
+ function Qn(O) {
1754
+ Fe.cancelEditingRow(O);
1750
1755
  }
1751
- function wt(N) {
1752
- N && (s.value = N, te(s), e.showSetting && ie(s), Me(s.value), Re(v, Ne), mt());
1756
+ function wt(O) {
1757
+ O && (s.value = O, te(s), e.showSetting && ie(s), Me(s.value), Re(v, Ne), mt());
1753
1758
  }
1754
- Ee(() => e.columns, (N) => {
1759
+ Ee(() => e.columns, (O) => {
1755
1760
  if (e.showSetting && e.enableColumnSettingSolution) {
1756
1761
  wt(s.value);
1757
1762
  return;
1758
1763
  }
1759
- wt(N);
1764
+ wt(O);
1760
1765
  });
1761
- function Xn(N, H) {
1762
- if (N) {
1763
- const le = !!(H != null && H.keepScrollTop || H != null && H.keepScrollPosition), ue = le ? xe.offsetY.value : 0;
1764
- v.load(N), v.reOrderVisibleIndex(), Pi({
1766
+ function Jn(O, z) {
1767
+ if (O) {
1768
+ const le = !!(z != null && z.keepScrollTop || z != null && z.keepScrollPosition), se = le ? xe.offsetY.value : 0;
1769
+ v.load(O), v.reOrderVisibleIndex(), Oi({
1765
1770
  keepScroll: le,
1766
- savedOffsetY: ue,
1767
- resetScroll: $e,
1771
+ savedOffsetY: se,
1772
+ resetScroll: _e,
1768
1773
  scrollTo: xe.scrollTo
1769
1774
  });
1770
1775
  }
1771
1776
  }
1772
- function Qt(N) {
1773
- ke.activeRowById(N);
1777
+ function Qt(O) {
1778
+ ke.activeRowById(O);
1774
1779
  }
1775
- function Qn(N, H = {
1780
+ function Zn(O, z = {
1776
1781
  isCurrent: !0
1777
1782
  }) {
1778
- H != null && H.isCurrent && Qt(N), L.selectItemById(N);
1783
+ z != null && z.isCurrent && Qt(O), L.selectItemById(O);
1779
1784
  }
1780
- function Jn(N) {
1781
- const H = I.value.find((le) => le.raw[f.idField.value] === N);
1782
- H && ke.clickRowItem(H);
1785
+ function Kn(O) {
1786
+ const z = I.value.find((le) => le.raw[f.idField.value] === O);
1787
+ z && ke.clickRowItem(z);
1783
1788
  }
1784
- function Zn(N) {
1785
- L.selectItemByIds(N);
1789
+ function eo(O) {
1790
+ L.selectItemByIds(O);
1786
1791
  }
1787
- function Kn() {
1792
+ function to() {
1788
1793
  return P.getSelectedItems();
1789
1794
  }
1790
1795
  function mn() {
1791
1796
  P.clearSelection();
1792
1797
  }
1793
- function eo() {
1798
+ function no() {
1794
1799
  P.emptyCurrentRowId();
1795
1800
  }
1796
- const to = J(() => !I.value || !I.value.length), {
1797
- renderEmpty: no
1798
- } = ki(e, t);
1799
- function oo() {
1801
+ const oo = J(() => !I.value || !I.value.length), {
1802
+ renderEmpty: io
1803
+ } = Bi(e, t);
1804
+ function ro() {
1800
1805
  return P.getSelectionRow();
1801
1806
  }
1802
- function io(N, H = {
1807
+ function ao(O, z = {
1803
1808
  clearCurrent: !0
1804
1809
  }) {
1805
- H != null && H.clearCurrent && Qt(""), L.unSelectItemByIds(N);
1810
+ z != null && z.clearCurrent && Qt(""), L.unSelectItemByIds(O);
1806
1811
  }
1807
- function ro() {
1812
+ function lo() {
1808
1813
  return P.currentSelectedDataId.value;
1809
1814
  }
1810
- function ao(N, H, le) {
1811
- const ue = F.value.find((ce) => ce[d.value] === N);
1812
- if (ue) {
1813
- if (Object.keys(ue).forEach((fe) => {
1814
- Object.prototype.hasOwnProperty.call(H, fe) && (ue[fe] = H[fe]);
1815
+ function so(O, z, le) {
1816
+ const se = F.value.find((ue) => ue[d.value] === O);
1817
+ if (se) {
1818
+ if (Object.keys(se).forEach((de) => {
1819
+ Object.prototype.hasOwnProperty.call(z, de) && (se[de] = z[de]);
1815
1820
  }), le) {
1816
1821
  const {
1817
- collapseField: fe,
1818
- disabledField: He,
1822
+ collapseField: de,
1823
+ disabledField: Ge,
1819
1824
  checkedField: Je,
1820
1825
  visibleField: qe,
1821
1826
  hasChildren: Tt
1822
1827
  } = le;
1823
- fe && !Xe(H[fe]) && (ue.__fv_collapse__ = H[fe]), Je && !Xe(H[Je]) && (ue.__fv_checked__ = H[Je]), He && !Xe(H[He]) && (ue.__fv_disabled__ = H[He]), qe && !Xe(H[qe]) && (ue.__fv_visible__ = H[qe]), Xe(Tt) || (ue.__fv_hasChildren__ = Tt);
1828
+ de && !Xe(z[de]) && (se.__fv_collapse__ = z[de]), Je && !Xe(z[Je]) && (se.__fv_checked__ = z[Je]), Ge && !Xe(z[Ge]) && (se.__fv_disabled__ = z[Ge]), qe && !Xe(z[qe]) && (se.__fv_visible__ = z[qe]), Xe(Tt) || (se.__fv_hasChildren__ = Tt);
1824
1829
  }
1825
- const ce = I.value.find((fe) => fe.raw[d.value] === N), se = I.value.findIndex((fe) => fe.raw[d.value] === N);
1826
- if (ce) {
1827
- if (ce.raw = ue, Object.keys(ce.data).forEach((fe) => {
1828
- ce.data[fe].updateData(ue);
1830
+ const ue = I.value.find((de) => de.raw[d.value] === O), ce = I.value.findIndex((de) => de.raw[d.value] === O);
1831
+ if (ue) {
1832
+ if (ue.raw = se, Object.keys(ue.data).forEach((de) => {
1833
+ ue.data[de].updateData(se);
1829
1834
  }), le) {
1830
1835
  const {
1831
- collapseField: fe,
1832
- disabledField: He,
1836
+ collapseField: de,
1837
+ disabledField: Ge,
1833
1838
  checkedField: Je,
1834
1839
  visibleField: qe,
1835
1840
  hasChildren: Tt
1836
1841
  } = le;
1837
- fe && !Xe(H[fe]) && (ce.collapse = H[fe]), Je && !Xe(H[Je]) && (ce.checked = H[Je]), He && !Xe(H[He]) && (ce.disabled = H[He]), qe && !Xe(H[qe]) && (ce.visible = H[qe]), Xe(Tt) || (ce.raw.__fv_hasChildren__ = Tt);
1842
+ de && !Xe(z[de]) && (ue.collapse = z[de]), Je && !Xe(z[Je]) && (ue.checked = z[Je]), Ge && !Xe(z[Ge]) && (ue.disabled = z[Ge]), qe && !Xe(z[qe]) && (ue.visible = z[qe]), Xe(Tt) || (ue.raw.__fv_hasChildren__ = Tt);
1838
1843
  }
1839
- I.value = [...I.value.slice(0, se), ce, ...I.value.slice(se + 1)], v.updateSummary();
1844
+ I.value = [...I.value.slice(0, ce), ue, ...I.value.slice(ce + 1)], v.updateSummary();
1840
1845
  }
1841
1846
  }
1842
1847
  }
1843
- function lo(N) {
1844
- return Object.prototype.hasOwnProperty.call(N, "raw") ? v.hasRealChildren(N.raw) : v.hasRealChildren(N);
1848
+ function co(O) {
1849
+ return Object.prototype.hasOwnProperty.call(O, "raw") ? v.hasRealChildren(O.raw) : v.hasRealChildren(O);
1845
1850
  }
1846
- function so(N) {
1847
- const H = v.dataView.value.find((le) => le[d.value] === N);
1848
- return H ? H[S.value] : "";
1851
+ function uo(O) {
1852
+ const z = v.dataView.value.find((le) => le[d.value] === O);
1853
+ return z ? z[S.value] : "";
1849
1854
  }
1850
- function co() {
1855
+ function fo() {
1851
1856
  return S.value;
1852
1857
  }
1853
- Ee(() => e.showSetting, (N, H) => {
1854
- N !== H && (N ? ie(s) : ve(s), wt(s.value));
1858
+ Ee(() => e.showSetting, (O, z) => {
1859
+ O !== z && (O ? ie(s) : pe(s), wt(s.value));
1855
1860
  });
1856
- function uo(N) {
1857
- return I.value.filter((H) => N.includes(H.raw[e.idField]));
1861
+ function mo(O) {
1862
+ return I.value.filter((z) => O.includes(z.raw[e.idField]));
1858
1863
  }
1859
- function pn(N) {
1860
- const H = f.idField.value, le = I.value.find((ue) => ue.raw[H] === N);
1864
+ function pn(O) {
1865
+ const z = f.idField.value, le = I.value.find((se) => se.raw[z] === O);
1861
1866
  le && ke.changeRow(le);
1862
1867
  }
1863
- function fo() {
1868
+ function po() {
1864
1869
  P.keepSelectingOnPaging.value || mn(), v.updateVisibleDataSummary(I.value);
1865
1870
  }
1866
- function mo() {
1871
+ function vo() {
1867
1872
  Fe.endEditCell();
1868
1873
  }
1869
- function po(N) {
1870
- P.updateSelectedValues(N);
1874
+ function go(O) {
1875
+ P.updateSelectedValues(O);
1871
1876
  }
1872
- function vo(N) {
1873
- P.removeSelectedValues(N);
1877
+ function ho(O) {
1878
+ P.removeSelectedValues(O);
1874
1879
  }
1875
- const go = 100;
1876
- function ho(N, H) {
1877
- const le = H[N].__fv_layer__ || 0;
1878
- let ue = N + 1;
1879
- for (; ue < H.length && (H[ue].__fv_layer__ || 0) > le; )
1880
- ue++;
1881
- return ue - 1;
1880
+ const yo = 100;
1881
+ function bo(O, z) {
1882
+ const le = z[O].__fv_layer__ || 0;
1883
+ let se = O + 1;
1884
+ for (; se < z.length && (z[se].__fv_layer__ || 0) > le; )
1885
+ se++;
1886
+ return se - 1;
1882
1887
  }
1883
- function yo(N) {
1884
- const H = v.dataView.value, le = B.collapseField.value, ue = N.__fv_index__, ce = N.__fv_layer__ || 0;
1885
- if (typeof ue != "number" || N.__fv_visible__ === !1 || N[le])
1888
+ function Co(O) {
1889
+ const z = v.dataView.value, le = B.collapseField.value, se = O.__fv_index__, ue = O.__fv_layer__ || 0;
1890
+ if (typeof se != "number" || O.__fv_visible__ === !1 || O[le])
1886
1891
  return;
1887
- let se = ue + 1;
1888
- for (; se < H.length; ) {
1889
- const fe = H[se];
1890
- if ((fe.__fv_layer__ || 0) <= ce)
1892
+ let ce = se + 1;
1893
+ for (; ce < z.length; ) {
1894
+ const de = z[ce];
1895
+ if ((de.__fv_layer__ || 0) <= ue)
1891
1896
  break;
1892
- if (fe.__fv_visible__ = !0, fe[le]) {
1893
- se = ho(se, H) + 1;
1897
+ if (de.__fv_visible__ = !0, de[le]) {
1898
+ ce = bo(ce, z) + 1;
1894
1899
  continue;
1895
1900
  }
1896
- se++;
1901
+ ce++;
1897
1902
  }
1898
1903
  }
1899
- function bo(N) {
1900
- let H = N;
1904
+ function wo(O) {
1905
+ let z = O;
1901
1906
  const le = [];
1902
- let ue = 0;
1903
- for (; H && H[B.parentIdField.value] && ue < go; ) {
1904
- ue++;
1905
- const ce = v.rawView.value.find((se) => se[f.idField.value] === H[B.parentIdField.value]);
1906
- if (ce)
1907
- ce[B.collapseField.value] && le.push(ce), H = ce;
1907
+ let se = 0;
1908
+ for (; z && z[B.parentIdField.value] && se < yo; ) {
1909
+ se++;
1910
+ const ue = v.rawView.value.find((ce) => ce[f.idField.value] === z[B.parentIdField.value]);
1911
+ if (ue)
1912
+ ue[B.collapseField.value] && le.push(ue), z = ue;
1908
1913
  else
1909
1914
  break;
1910
1915
  }
1911
- le.reverse().forEach((ce) => {
1912
- ce[B.collapseField.value] = !1, v.toggleChildrenVisibiltyByCollapseStatus(ce), yo(ce);
1916
+ le.reverse().forEach((ue) => {
1917
+ ue[B.collapseField.value] = !1, v.toggleChildrenVisibiltyByCollapseStatus(ue), Co(ue);
1913
1918
  });
1914
1919
  }
1915
- function Co(N, H) {
1916
- if (N.length !== H.length)
1920
+ function Fo(O, z) {
1921
+ if (O.length !== z.length)
1917
1922
  return !1;
1918
- const le = N.map((ce) => ce[f.idField.value]).sort(), ue = H.map((ce) => ce[f.idField.value]).sort();
1919
- return le.every((ce, se) => ce === ue[se]);
1923
+ const le = O.map((ue) => ue[f.idField.value]).sort(), se = z.map((ue) => ue[f.idField.value]).sort();
1924
+ return le.every((ue, ce) => ue === se[ce]);
1920
1925
  }
1921
1926
  function Jt() {
1922
- const N = Q.value[pe.value];
1923
- N && (bo(N), st(() => {
1927
+ const O = Q.value[me.value];
1928
+ O && (wo(O), st(() => {
1924
1929
  v.reOrderVisibleIndex();
1925
- const H = N[f.idField.value], le = N.__fv_visible_index__;
1930
+ const z = O[f.idField.value], le = O.__fv_visible_index__;
1926
1931
  le !== void 0 && le !== "" && le >= 0 ? (xe.scrollToRowByIndex(le), st(() => {
1927
- pn(H);
1928
- })) : console.warn("搜索结果的节点不在当前可见范围内,无法定位", H);
1932
+ pn(z);
1933
+ })) : console.warn("搜索结果的节点不在当前可见范围内,无法定位", z);
1929
1934
  }));
1930
1935
  }
1931
1936
  function vn() {
1932
- !W.value.trim() || !Q.value.length || (pe.value = (pe.value + 1) % Q.value.length, Jt());
1937
+ !W.value.trim() || !Q.value.length || (me.value = (me.value + 1) % Q.value.length, Jt());
1933
1938
  }
1934
- function wo() {
1939
+ function To() {
1935
1940
  if (!W.value.trim()) {
1936
- Q.value = [], pe.value = 0;
1941
+ Q.value = [], me.value = 0;
1937
1942
  return;
1938
1943
  }
1939
- const N = [], H = W.value.toLowerCase().trim();
1940
- v.rawView.value.forEach((ue) => {
1941
- let ce = !1;
1942
- e.customSearch ? ce = e.customSearch(H, ue, e.columns) : e.columns.forEach((se) => {
1943
- if (!ce && se.field) {
1944
- const fe = Ua(se, ue);
1945
- fe && fe.toLowerCase().includes(H) && (ce = !0);
1944
+ const O = [], z = W.value.toLowerCase().trim();
1945
+ v.rawView.value.forEach((se) => {
1946
+ let ue = !1;
1947
+ e.customSearch ? ue = e.customSearch(z, se, e.columns) : e.columns.forEach((ce) => {
1948
+ if (!ue && ce.field) {
1949
+ const de = Ha(ce, se);
1950
+ de && de.toLowerCase().includes(z) && (ue = !0);
1946
1951
  }
1947
- }), ce && N.push(ue);
1952
+ }), ue && O.push(se);
1948
1953
  });
1949
- const le = !Co(N, Q.value);
1950
- N.length > 0 ? le ? (Q.value = N, pe.value = 0, Jt()) : vn() : (Q.value = [], pe.value = 0);
1954
+ const le = !Fo(O, Q.value);
1955
+ O.length > 0 ? le ? (Q.value = O, me.value = 0, Jt()) : vn() : (Q.value = [], me.value = 0);
1951
1956
  }
1952
- function Fo() {
1957
+ function So() {
1953
1958
  if (!W.value.trim() || !Q.value.length)
1954
1959
  return;
1955
- const N = Q.value.length;
1956
- pe.value = (pe.value - 1 + N) % N, Jt();
1960
+ const O = Q.value.length;
1961
+ me.value = (me.value - 1 + O) % O, Jt();
1957
1962
  }
1958
- const Ft = zo(wo, 300);
1963
+ const Ft = Go(To, 300);
1959
1964
  function gn() {
1960
- Ft.cancel(), W.value = "", Q.value = [], pe.value = 0;
1965
+ Ft.cancel(), W.value = "", Q.value = [], me.value = 0;
1961
1966
  }
1962
- Ee(W, (N) => {
1963
- N.trim() || (Ft.cancel(), Q.value = [], pe.value = 0);
1967
+ Ee(W, (O) => {
1968
+ O.trim() || (Ft.cancel(), Q.value = [], me.value = 0);
1964
1969
  }), It(() => {
1965
1970
  Ft.cancel();
1966
1971
  });
1967
- function To(N) {
1968
- if (N.key === "Enter") {
1972
+ function xo(O) {
1973
+ if (O.key === "Enter") {
1969
1974
  if (!W.value.trim())
1970
1975
  return;
1971
1976
  Ft();
1972
1977
  }
1973
1978
  }
1974
- function So() {
1979
+ function Eo() {
1975
1980
  W.value.trim() && Ft();
1976
1981
  }
1977
1982
  t.expose({
1978
1983
  activeRowById: Qt,
1979
- addNewDataItem: Oe,
1980
- addNewChildDataItem: Ye,
1981
- addChildrenToNode: _e,
1982
- collapseTo: Ae,
1983
- expandTo: Ue,
1984
- removeDataItem: De,
1985
- editDataItem: yt,
1986
- acceptDataItem: bt,
1987
- cancelDataItem: Ct,
1984
+ addNewDataItem: Ue,
1985
+ addNewChildDataItem: je,
1986
+ addChildrenToNode: yt,
1987
+ collapseTo: Ye,
1988
+ expandTo: Oe,
1989
+ removeDataItem: bt,
1990
+ editDataItem: Ct,
1991
+ acceptDataItem: Xn,
1992
+ cancelDataItem: Qn,
1988
1993
  updateColumns: wt,
1989
- updateDataSource: Xn,
1990
- selectItemById: Qn,
1991
- selectItemByIds: Zn,
1992
- getSelectedItems: Kn,
1994
+ updateDataSource: Jn,
1995
+ selectItemById: Zn,
1996
+ selectItemByIds: eo,
1997
+ getSelectedItems: to,
1993
1998
  clearSelection: mn,
1994
- getSelectionRow: oo,
1995
- clickRowItemById: Jn,
1996
- unSelectItemByIds: io,
1997
- getCurrentRowId: ro,
1998
- reassignRowData: ao,
1999
- hasChildren: lo,
2000
- getCollapseField: co,
2001
- getCollapseStatusById: so,
2002
- getVisibleDataByIds: uo,
1999
+ getSelectionRow: ro,
2000
+ clickRowItemById: Kn,
2001
+ unSelectItemByIds: ao,
2002
+ getCurrentRowId: lo,
2003
+ reassignRowData: so,
2004
+ hasChildren: co,
2005
+ getCollapseField: fo,
2006
+ getCollapseStatusById: uo,
2007
+ getVisibleDataByIds: mo,
2003
2008
  selectRowById: pn,
2004
- updateDerivedData: fo,
2005
- emptyCurrentRowId: eo,
2009
+ updateDerivedData: po,
2010
+ emptyCurrentRowId: no,
2006
2011
  calculateColumnsSize: mt,
2007
- endEditCell: mo,
2008
- updateSelectedValues: po,
2009
- removeSelectedValues: vo
2012
+ endEditCell: vo,
2013
+ updateSelectedValues: go,
2014
+ removeSelectedValues: ho
2010
2015
  });
2011
- const xo = J(() => {
2012
- const N = {};
2013
- return xe.shouldShowHorizontalScrollbar.value && h.value && (N.paddingBottom = "10px"), xe.shouldShowVirticalScrollbar.value && h.value, N;
2014
- }), Eo = J(() => ({
2016
+ const Io = J(() => {
2017
+ const O = {};
2018
+ return xe.shouldShowHorizontalScrollbar.value && h.value && (O.paddingBottom = "10px"), xe.shouldShowVirticalScrollbar.value && h.value, O;
2019
+ }), ko = J(() => ({
2015
2020
  ...oe.value,
2016
2021
  borderRadius: "5px"
2017
2022
  })), {
2018
- renderDataGridPagination: $s
2019
- } = Mi(e, t, v, xe, $, P), Io = J(() => ({
2023
+ renderDataGridPagination: Us
2024
+ } = Vi(e, t, v, xe, $, P), Mo = J(() => ({
2020
2025
  "d-flex": !0,
2021
- "justify-content-between": A.value && O.value,
2022
- "justify-content-end": A.value && !O.value,
2026
+ "justify-content-between": A.value && N.value,
2027
+ "justify-content-end": A.value && !N.value,
2023
2028
  "position-relative": !0
2024
- })), ko = J(() => ({
2029
+ })), Bo = J(() => ({
2025
2030
  "d-flex": !0,
2026
2031
  "align-items-center": !0
2027
2032
  }));
2028
- function Mo(N) {
2029
- const H = N.map((se) => se.id), le = [...s.value, ...a, ...c];
2030
- le.filter((se) => se.dataType !== en && se.dataType !== tn).forEach((se) => {
2031
- const fe = N.find((He) => He.id === se.id);
2032
- fe && (se.width = fe.actualWidth || se.width || 120, fe.actualWidth !== void 0 && (se.actualWidth = fe.actualWidth), se.title = fe.title, se.halign = fe.halign, se.align = fe.align, se.fixed = fe.fixed);
2033
- }), c = le.filter((se) => se.dataType === en || se.dataType === tn);
2034
- const ue = le.filter((se) => se.dataType !== en && se.dataType !== tn), ce = ue.filter((se) => H.includes(se.id));
2035
- a = ue.filter((se) => !H.includes(se.id)), ce.sort((se, fe) => {
2036
- const He = N.findIndex((qe) => qe.id === se.id), Je = N.findIndex((qe) => qe.id === fe.id);
2037
- return He - Je;
2038
- }), wt(ce);
2033
+ function Vo(O) {
2034
+ const z = O.map((ce) => ce.id), le = [...s.value, ...a, ...c];
2035
+ le.filter((ce) => ce.dataType !== en && ce.dataType !== tn).forEach((ce) => {
2036
+ const de = O.find((Ge) => Ge.id === ce.id);
2037
+ de && (ce.width = de.actualWidth || ce.width || 120, de.actualWidth !== void 0 && (ce.actualWidth = de.actualWidth), ce.title = de.title, ce.halign = de.halign, ce.align = de.align, ce.fixed = de.fixed);
2038
+ }), c = le.filter((ce) => ce.dataType === en || ce.dataType === tn);
2039
+ const se = le.filter((ce) => ce.dataType !== en && ce.dataType !== tn), ue = se.filter((ce) => z.includes(ce.id));
2040
+ a = se.filter((ce) => !z.includes(ce.id)), ue.sort((ce, de) => {
2041
+ const Ge = O.findIndex((qe) => qe.id === ce.id), Je = O.findIndex((qe) => qe.id === de.id);
2042
+ return Ge - Je;
2043
+ }), wt(ue);
2039
2044
  }
2040
2045
  const {
2041
- renderDataGridSummary: Bo
2042
- } = Bi(e, v, Ie);
2046
+ renderDataGridSummary: Po
2047
+ } = Pi(e, v, Ie);
2043
2048
  return () => e.visible && g(Ke, null, [ge.value && g("div", {
2044
2049
  class: "fv-grid-search",
2045
2050
  style: {
@@ -2053,12 +2058,12 @@ const cn = /* @__PURE__ */ je({
2053
2058
  display: "flex",
2054
2059
  alignItems: "center"
2055
2060
  }
2056
- }, [g(Oi, {
2061
+ }, [g(Di, {
2057
2062
  value: W.value,
2058
- onInput: (N) => W.value = N,
2059
- "onUpdate:value": (N) => W.value = N || "",
2063
+ onInput: (O) => W.value = O,
2064
+ "onUpdate:value": (O) => W.value = O || "",
2060
2065
  onClear: gn,
2061
- onKeydown: To,
2066
+ onKeydown: xo,
2062
2067
  placeholder: Se.value,
2063
2068
  style: {
2064
2069
  flex: 1
@@ -2075,7 +2080,7 @@ const cn = /* @__PURE__ */ je({
2075
2080
  type: "link",
2076
2081
  title: we.value,
2077
2082
  disabled: !Q.value.length,
2078
- onClick: Fo,
2083
+ onClick: So,
2079
2084
  style: {
2080
2085
  cursor: "pointer",
2081
2086
  marginLeft: "4px"
@@ -2100,7 +2105,7 @@ const cn = /* @__PURE__ */ je({
2100
2105
  }), g(St, {
2101
2106
  type: "link",
2102
2107
  title: Pe.value,
2103
- onClick: So,
2108
+ onClick: Eo,
2104
2109
  style: {
2105
2110
  cursor: "pointer",
2106
2111
  marginLeft: "4px"
@@ -2123,41 +2128,42 @@ const cn = /* @__PURE__ */ je({
2123
2128
  }, null)]
2124
2129
  })])]), g("div", {
2125
2130
  ref: p,
2126
- class: Gt.value,
2127
- style: Eo.value,
2131
+ class: qt.value,
2132
+ style: ko.value,
2128
2133
  onWheel: D
2129
- }, [y.value && Xt.value && Yt(), g("div", {
2134
+ }, [y.value && q.value && Xt(), g("div", {
2130
2135
  ref: y,
2131
- class: qt.value,
2136
+ class: Wt.value,
2132
2137
  onMouseover: () => h.value = !0,
2133
2138
  onMouseleave: () => h.value = !1,
2134
- onTouchstart: (N) => {
2135
- N.stopPropagation(), h.value = !0, xe.onTouchstartScrollThumb(N, y);
2139
+ onTouchstart: (O) => {
2140
+ O.stopPropagation(), h.value = !0, xe.onTouchstartScrollThumb(O, y);
2136
2141
  },
2137
- onTouchend: (N) => {
2142
+ onTouchend: (O) => {
2138
2143
  h.value = !1;
2139
2144
  },
2140
- style: xo.value
2141
- }, [y.value && V(I), y.value && Wt(), y.value && to.value && no(), y.value && X(), y.value && ne()]), y.value && Bo(), O.value && g("div", {
2142
- class: Io.value
2143
- }, [O.value && g("div", {
2144
- class: ko.value
2145
- }, [g("div", null, ["已选:" + R.value.length, Te(" 条")])])]), Vt(), Z.value && q()]), e.enableColumnSettingSolution && g(Vi, {
2145
+ style: Io.value
2146
+ }, [y.value && X(I), y.value && Yt(), y.value && oo.value && io(), y.value && ve(), y.value && he()]), y.value && Po(), N.value && g("div", {
2147
+ class: Mo.value
2148
+ }, [N.value && g("div", {
2149
+ class: Bo.value
2150
+ }, [g("div", null, ["已选:" + R.value.length, Te(" 条")])])]), V(), Z.value && ne()]), e.enableColumnSettingSolution && g(Ri, {
2151
+ ref: Vt,
2146
2152
  columns: [...s.value, ...a],
2147
2153
  componentId: e.id,
2148
2154
  modelValue: o.value,
2149
- "onUpdate:modelValue": (N) => o.value = N,
2150
- onChangeColumnSetting: Mo
2155
+ "onUpdate:modelValue": (O) => o.value = O,
2156
+ onChangeColumnSetting: Vo
2151
2157
  }, null)]);
2152
2158
  }
2153
2159
  });
2154
- qo(cn);
2160
+ Yo(cn);
2155
2161
  x(0);
2156
2162
  var nt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2157
- function Pt(e) {
2163
+ function Rt(e) {
2158
2164
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2159
2165
  }
2160
- var Ha = { exports: {} };
2166
+ var qa = { exports: {} };
2161
2167
  (function(e, t) {
2162
2168
  (function(n) {
2163
2169
  e.exports = n();
@@ -2167,7 +2173,7 @@ var Ha = { exports: {} };
2167
2173
  function a(s, f) {
2168
2174
  if (!i[s]) {
2169
2175
  if (!o[s]) {
2170
- var d = typeof Pt == "function" && Pt;
2176
+ var d = typeof Rt == "function" && Rt;
2171
2177
  if (!f && d) return d(s, !0);
2172
2178
  if (c) return c(s, !0);
2173
2179
  var p = new Error("Cannot find module '" + s + "'");
@@ -2181,7 +2187,7 @@ var Ha = { exports: {} };
2181
2187
  }
2182
2188
  return i[s].exports;
2183
2189
  }
2184
- for (var c = typeof Pt == "function" && Pt, l = 0; l < r.length; l++) a(r[l]);
2190
+ for (var c = typeof Rt == "function" && Rt, l = 0; l < r.length; l++) a(r[l]);
2185
2191
  return a;
2186
2192
  }
2187
2193
  return n;
@@ -2208,9 +2214,9 @@ var Ha = { exports: {} };
2208
2214
  (function(r) {
2209
2215
  var a = n("contra/emitter"), c = n("crossvent"), l = n("./classes"), s = document, f = s.documentElement;
2210
2216
  function d(F, P) {
2211
- var O = arguments.length;
2212
- O === 1 && Array.isArray(F) === !1 && (P = F, F = []);
2213
- var R, L, Z, Y, $, A, oe, W, Q, ge = null, pe, re, Se = !1, Pe = 0, we, K = P || {};
2217
+ var N = arguments.length;
2218
+ N === 1 && Array.isArray(F) === !1 && (P = F, F = []);
2219
+ var R, L, Z, Y, $, A, oe, W, Q, ge = null, me, re, Se = !1, Pe = 0, we, K = P || {};
2214
2220
  K.moves === void 0 && (K.moves = h), K.accepts === void 0 && (K.accepts = h), K.invalid === void 0 && (K.invalid = it), K.containers === void 0 && (K.containers = F || []), K.isContainer === void 0 && (K.isContainer = I), K.copy === void 0 && (K.copy = !1), K.copySortSource === void 0 && (K.copySortSource = !1), K.revertOnSpill === void 0 && (K.revertOnSpill = !1), K.removeOnSpill === void 0 && (K.removeOnSpill = !1), K.direction === void 0 && (K.direction = "vertical"), K.ignoreInputTextSelection === void 0 && (K.ignoreInputTextSelection = !0), K.mirrorContainer === void 0 && (K.mirrorContainer = s.body);
2215
2221
  var E = a({
2216
2222
  containers: K.containers,
@@ -2222,7 +2228,7 @@ var Ha = { exports: {} };
2222
2228
  canMove: Be,
2223
2229
  dragging: !1
2224
2230
  });
2225
- return K.removeOnSpill === !0 && E.on("over", Ce).on("out", $e), te(), E;
2231
+ return K.removeOnSpill === !0 && E.on("over", Ce).on("out", _e), te(), E;
2226
2232
  function ee(V) {
2227
2233
  return E.containers.indexOf(V) !== -1 || K.isContainer(V);
2228
2234
  }
@@ -2234,7 +2240,7 @@ var Ha = { exports: {} };
2234
2240
  var q = V ? "remove" : "add";
2235
2241
  m(f, q, "mousemove", ye);
2236
2242
  }
2237
- function ve(V) {
2243
+ function pe(V) {
2238
2244
  var q = V ? "remove" : "add";
2239
2245
  c[q](f, "selectstart", Ne), c[q](f, "click", Ne);
2240
2246
  }
@@ -2242,18 +2248,18 @@ var Ha = { exports: {} };
2242
2248
  te(!0), We({});
2243
2249
  }
2244
2250
  function Ne(V) {
2245
- pe && V.preventDefault();
2251
+ me && V.preventDefault();
2246
2252
  }
2247
2253
  function Re(V) {
2248
2254
  Y = V.clientX, $ = V.clientY;
2249
2255
  var q = b(V) !== 1 || V.metaKey || V.ctrlKey;
2250
2256
  if (!q) {
2251
2257
  var X = V.target, ne = Me(X);
2252
- ne && (pe = ne, ie(), V.type === "mousedown" && (B(X) ? X.focus() : V.preventDefault()));
2258
+ ne && (me = ne, ie(), V.type === "mousedown" && (B(X) ? X.focus() : V.preventDefault()));
2253
2259
  }
2254
2260
  }
2255
2261
  function ye(V) {
2256
- if (pe) {
2262
+ if (me) {
2257
2263
  if (b(V) === 0) {
2258
2264
  We({});
2259
2265
  return;
@@ -2264,8 +2270,8 @@ var Ha = { exports: {} };
2264
2270
  if (B(ne))
2265
2271
  return;
2266
2272
  }
2267
- var de = pe;
2268
- ie(!0), ve(), ut(), Fe(de), l.add(W || Z, "gu-transit"), at(), ht(), Pe = 0, ae(V);
2273
+ var ve = me;
2274
+ ie(!0), pe(), ut(), Fe(ve), l.add(W || Z, "gu-transit"), at(), ht(), Pe = 0, ae(V);
2269
2275
  }
2270
2276
  }
2271
2277
  }
@@ -2305,11 +2311,11 @@ var Ha = { exports: {} };
2305
2311
  }
2306
2312
  }
2307
2313
  function dt() {
2308
- pe = !1, ie(!0), ve(!0);
2314
+ me = !1, ie(!0), pe(!0);
2309
2315
  }
2310
2316
  function We(V) {
2311
2317
  if (dt(), !!E.dragging) {
2312
- var q = W || Z, X = v("clientX", V) || 0, ne = v("clientY", V) || 0, de = T(R, X, ne), he = D(de, X, ne);
2318
+ var q = W || Z, X = v("clientX", V) || 0, ne = v("clientY", V) || 0, ve = T(R, X, ne), he = D(ve, X, ne);
2313
2319
  he && (W && K.copySortSource || !W || he !== L) ? Qe(q, he) : K.removeOnSpill ? ft() : tt();
2314
2320
  }
2315
2321
  }
@@ -2325,8 +2331,8 @@ var Ha = { exports: {} };
2325
2331
  }
2326
2332
  function tt(V) {
2327
2333
  if (E.dragging) {
2328
- var q = arguments.length > 0 ? V : K.revertOnSpill, X = W || Z, ne = k(X), de = xe(ne);
2329
- de === !1 && q && (W ? ne && ne.removeChild(W) : L.insertBefore(X, A)), de || q ? E.emit("cancel", X, L, L) : E.emit("drop", X, ne, L, oe), rt();
2334
+ var q = arguments.length > 0 ? V : K.revertOnSpill, X = W || Z, ne = k(X), ve = xe(ne);
2335
+ ve === !1 && q && (W ? ne && ne.removeChild(W) : L.insertBefore(X, A)), ve || q ? E.emit("cancel", X, L, L) : E.emit("drop", X, ne, L, oe), rt();
2330
2336
  }
2331
2337
  }
2332
2338
  function rt() {
@@ -2338,15 +2344,15 @@ var Ha = { exports: {} };
2338
2344
  return q !== void 0 ? X = q : R ? X = oe : X = u(W || Z), V === L && X === A;
2339
2345
  }
2340
2346
  function D(V, q, X) {
2341
- for (var ne = V; ne && !de(); )
2347
+ for (var ne = V; ne && !ve(); )
2342
2348
  ne = k(ne);
2343
2349
  return ne;
2344
- function de() {
2350
+ function ve() {
2345
2351
  var he = ee(ne);
2346
2352
  if (he === !1)
2347
2353
  return !1;
2348
- var Ge = Bt(ne, V), Ae = Vt(ne, Ge, q, X), Ue = xe(ne, Ae);
2349
- return Ue ? !0 : K.accepts(Z, ne, L, Ae);
2354
+ var De = Bt(ne, V), $e = Pt(ne, De, q, X), ze = xe(ne, $e);
2355
+ return ze ? !0 : K.accepts(Z, ne, L, $e);
2350
2356
  }
2351
2357
  }
2352
2358
  function ae(V) {
@@ -2355,30 +2361,30 @@ var Ha = { exports: {} };
2355
2361
  V.preventDefault();
2356
2362
  var q = v("clientX", V) || 0, X = v("clientY", V) || 0;
2357
2363
  R.style.left = q - 2 + "px", R.style.top = X - 2 + "px";
2358
- var ne = W || Z, de = T(R, q, X), he = D(de, q, X), Ge = he !== null && he !== ge;
2359
- (Ge || he === null) && (_e(), ge = he, Ye()), Yt(de, X);
2360
- var Ae = k(ne);
2364
+ var ne = W || Z, ve = T(R, q, X), he = D(ve, q, X), De = he !== null && he !== ge;
2365
+ (De || he === null) && (Ue(), ge = he, He()), Vt(ve, X);
2366
+ var $e = k(ne);
2361
2367
  if (he === L && W && !K.copySortSource) {
2362
- Ae && Ae.removeChild(ne);
2368
+ $e && $e.removeChild(ne);
2363
2369
  return;
2364
2370
  }
2365
- var Ue, ze = Bt(he, de);
2366
- if (Se = Ht(ze, he), ze !== null)
2367
- Ue = Vt(he, ze, q, X);
2371
+ var ze, Ye = Bt(he, ve);
2372
+ if (Se = Gt(Ye, he), Ye !== null)
2373
+ ze = Pt(he, Ye, q, X);
2368
2374
  else if (K.revertOnSpill === !0 && !W)
2369
- Ue = A, he = L;
2375
+ ze = A, he = L;
2370
2376
  else {
2371
- W && Ae && Ae.removeChild(ne), W && re && (re.style.display = "none");
2377
+ W && $e && $e.removeChild(ne), W && re && (re.style.display = "none");
2372
2378
  return;
2373
2379
  }
2374
- re.style.display = "block", be(Ue, ne, Ge), Ue ? qt(ze, Ue) : Wt(he);
2375
- function Oe(De) {
2376
- E.emit(De, ne, ge, L);
2380
+ re.style.display = "block", be(ze, ne, De), ze ? Wt(Ye, ze) : Yt(he);
2381
+ function Oe(je) {
2382
+ E.emit(je, ne, ge, L);
2377
2383
  }
2378
- function Ye() {
2379
- Ge && Oe("over");
2384
+ function He() {
2385
+ De && Oe("over");
2380
2386
  }
2381
- function _e() {
2387
+ function Ue() {
2382
2388
  ge && Oe("out");
2383
2389
  }
2384
2390
  }
@@ -2388,7 +2394,7 @@ var Ha = { exports: {} };
2388
2394
  function Ce(V) {
2389
2395
  l.rm(V, "gu-hide");
2390
2396
  }
2391
- function $e(V) {
2397
+ function _e(V) {
2392
2398
  E.dragging && l.add(V, "gu-hide");
2393
2399
  }
2394
2400
  function ht() {
@@ -2412,42 +2418,42 @@ var Ha = { exports: {} };
2412
2418
  X = k(X);
2413
2419
  return X === f ? null : X;
2414
2420
  }
2415
- function Ht(V, q) {
2421
+ function Gt(V, q) {
2416
2422
  if (!q)
2417
2423
  return Se;
2418
2424
  var X = V || q && q.lastElementChild;
2419
2425
  if (!X)
2420
2426
  return !0;
2421
- var ne = getComputedStyle(V), de = /^inline/.test(ne.getPropertyValue("display")) || /^(left|right)$/.test(ne.getPropertyValue("float"));
2422
- if (de)
2427
+ var ne = getComputedStyle(V), ve = /^inline/.test(ne.getPropertyValue("display")) || /^(left|right)$/.test(ne.getPropertyValue("float"));
2428
+ if (ve)
2423
2429
  return !0;
2424
2430
  if (q) {
2425
- var he = getComputedStyle(q), Ge = he.getPropertyValue("display");
2426
- if (/flex$/.test(Ge)) {
2427
- var Ae = he.getPropertyValue("flex-direction") || "row";
2428
- if (Ae === "row" || Ae === "row-reverse")
2429
- return !Gt(q);
2431
+ var he = getComputedStyle(q), De = he.getPropertyValue("display");
2432
+ if (/flex$/.test(De)) {
2433
+ var $e = he.getPropertyValue("flex-direction") || "row";
2434
+ if ($e === "row" || $e === "row-reverse")
2435
+ return !qt(q);
2430
2436
  }
2431
2437
  return !1;
2432
2438
  }
2433
2439
  return !0;
2434
2440
  }
2435
- function Gt(V) {
2441
+ function qt(V) {
2436
2442
  if (!V.children || !V.children.length)
2437
2443
  return !1;
2438
2444
  for (const q of Array.from(V.children)) {
2439
- const ne = (q.className && q.className.split(" ") || []).filter((de) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(de));
2445
+ const ne = (q.className && q.className.split(" ") || []).filter((ve) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(ve));
2440
2446
  if (!ne.length)
2441
2447
  return !1;
2442
- for (const de of ne) {
2443
- const he = de.slice(de.lastIndexOf("-") + 1);
2448
+ for (const ve of ne) {
2449
+ const he = ve.slice(ve.lastIndexOf("-") + 1);
2444
2450
  if (parseInt(he, 10) !== 12)
2445
2451
  return !1;
2446
2452
  }
2447
2453
  }
2448
2454
  return !0;
2449
2455
  }
2450
- function qt(V, q) {
2456
+ function Wt(V, q) {
2451
2457
  const X = q.getBoundingClientRect();
2452
2458
  if (re.style.left = X.left + "px", re.style.top = X.top + "px", Se) {
2453
2459
  if (re.style.height = X.height + "px", re.style.width = "4px", V) {
@@ -2460,7 +2466,7 @@ var Ha = { exports: {} };
2460
2466
  }
2461
2467
  q === Z && Z && (re.style.display = "none");
2462
2468
  }
2463
- function Wt(V) {
2469
+ function Yt(V) {
2464
2470
  oe = null;
2465
2471
  var q = V.lastElementChild;
2466
2472
  if (q) {
@@ -2469,39 +2475,39 @@ var Ha = { exports: {} };
2469
2475
  } else
2470
2476
  re.style.display = "none";
2471
2477
  }
2472
- function Yt(V, q) {
2478
+ function Vt(V, q) {
2473
2479
  if (!K.mirrorContainer.contains(V) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (we = p(V), !we || !we.contains(V)))
2474
2480
  return;
2475
2481
  const X = document.querySelector(".dgComponentSelected"), ne = we.getBoundingClientRect();
2476
2482
  if (q - 30 < ne.top && we.scrollTop > 0) {
2477
- let de = we.scrollTop < 10 ? we.scrollTop : 10;
2478
- we.scrollBy(0, -1 * de), X && we.contains(X) && (Pe = Pe + -1 * de);
2483
+ let ve = we.scrollTop < 10 ? we.scrollTop : 10;
2484
+ we.scrollBy(0, -1 * ve), X && we.contains(X) && (Pe = Pe + -1 * ve);
2479
2485
  }
2480
2486
  if (q + 30 > ne.bottom && we.scrollTop < we.scrollHeight - we.clientHeight) {
2481
- const de = we.scrollHeight - we.clientHeight - we.scrollTop;
2482
- let he = de < 10 ? de : 10;
2487
+ const ve = we.scrollHeight - we.clientHeight - we.scrollTop;
2488
+ let he = ve < 10 ? ve : 10;
2483
2489
  we.scrollBy(0, he), X && we.contains(X) && (Pe = Pe + he);
2484
2490
  }
2485
2491
  }
2486
- function Vt(V, q, X, ne) {
2487
- var de = K.direction === "horizontal", he = K.direction === "mixed", Ge = q !== V ? Ue() : Ae();
2488
- return Ge;
2489
- function Ae() {
2490
- var Oe = V.children.length, Ye, _e, De;
2491
- for (Ye = 0; Ye < Oe; Ye++)
2492
- if (_e = V.children[Ye], De = _e.getBoundingClientRect(), de && De.left + De.width / 2 > X || !he && !de && De.top + De.height / 2 > ne || he && De.left + De.width > X && De.top + De.height > ne)
2493
- return _e;
2492
+ function Pt(V, q, X, ne) {
2493
+ var ve = K.direction === "horizontal", he = K.direction === "mixed", De = q !== V ? ze() : $e();
2494
+ return De;
2495
+ function $e() {
2496
+ var Oe = V.children.length, He, Ue, je;
2497
+ for (He = 0; He < Oe; He++)
2498
+ if (Ue = V.children[He], je = Ue.getBoundingClientRect(), ve && je.left + je.width / 2 > X || !he && !ve && je.top + je.height / 2 > ne || he && je.left + je.width > X && je.top + je.height > ne)
2499
+ return Ue;
2494
2500
  return null;
2495
2501
  }
2496
- function Ue() {
2502
+ function ze() {
2497
2503
  var Oe = q.getBoundingClientRect();
2498
2504
  if (he) {
2499
- var Ye = ne - Oe.top, _e = X - Oe.left, De = Oe.bottom - ne, yt = Oe.right - X, bt = Math.min(_e, yt, Ye, De), Ct;
2500
- return Se ? Ct = yt < _e : Ct = De === bt || yt === bt || _e === bt, ze(Ct);
2505
+ var He = ne - Oe.top, Ue = X - Oe.left, je = Oe.bottom - ne, yt = Oe.right - X, bt = Math.min(Ue, yt, He, je), Ct;
2506
+ return Se ? Ct = yt < Ue : Ct = je === bt || yt === bt || Ue === bt, Ye(Ct);
2501
2507
  }
2502
- return ze(de ? X > Oe.left + w(Oe) / 2 : ne > Oe.top + M(Oe) / 2);
2508
+ return Ye(ve ? X > Oe.left + w(Oe) / 2 : ne > Oe.top + M(Oe) / 2);
2503
2509
  }
2504
- function ze(Oe) {
2510
+ function Ye(Oe) {
2505
2511
  return Oe ? u(q) : q;
2506
2512
  }
2507
2513
  }
@@ -2515,20 +2521,20 @@ var Ha = { exports: {} };
2515
2521
  const R = Array.from(window.scrollContainerList)[0];
2516
2522
  return document.getElementById(R);
2517
2523
  }
2518
- const O = y(P);
2519
- for (const R of O)
2524
+ const N = y(P);
2525
+ for (const R of N)
2520
2526
  if (R.contains(F))
2521
2527
  return R;
2522
2528
  return null;
2523
2529
  }
2524
2530
  function y(F) {
2525
2531
  const P = [];
2526
- return F.forEach((O) => {
2527
- const R = document.getElementById(O);
2532
+ return F.forEach((N) => {
2533
+ const R = document.getElementById(N);
2528
2534
  R && P.push(R);
2529
- }), P.sort((O, R) => O.contains(R) ? 1 : R.contains(O) ? -1 : 0), P;
2535
+ }), P.sort((N, R) => N.contains(R) ? 1 : R.contains(N) ? -1 : 0), P;
2530
2536
  }
2531
- function m(F, P, O, R) {
2537
+ function m(F, P, N, R) {
2532
2538
  var L = {
2533
2539
  mouseup: "touchend",
2534
2540
  mousedown: "touchstart",
@@ -2542,7 +2548,7 @@ var Ha = { exports: {} };
2542
2548
  mousedown: "MSPointerDown",
2543
2549
  mousemove: "MSPointerMove"
2544
2550
  };
2545
- r.navigator.pointerEnabled ? c[P](F, Z[O], R) : r.navigator.msPointerEnabled ? c[P](F, Y[O], R) : (c[P](F, L[O], R), c[P](F, O, R));
2551
+ r.navigator.pointerEnabled ? c[P](F, Z[N], R) : r.navigator.msPointerEnabled ? c[P](F, Y[N], R) : (c[P](F, L[N], R), c[P](F, N, R));
2546
2552
  }
2547
2553
  function b(F) {
2548
2554
  if (F.touches !== void 0)
@@ -2555,10 +2561,10 @@ var Ha = { exports: {} };
2555
2561
  if (P !== void 0)
2556
2562
  return P & 1 ? 1 : P & 2 ? 3 : P & 4 ? 2 : 0;
2557
2563
  }
2558
- function T(F, P, O) {
2564
+ function T(F, P, N) {
2559
2565
  F = F || {};
2560
2566
  var R = F.className || "", L;
2561
- return F.className += " gu-hide", L = s.elementFromPoint(P, O), F.className = R, L;
2567
+ return F.className += " gu-hide", L = s.elementFromPoint(P, N), F.className = R, L;
2562
2568
  }
2563
2569
  function I() {
2564
2570
  return !1;
@@ -2584,24 +2590,24 @@ var Ha = { exports: {} };
2584
2590
  function u(F) {
2585
2591
  return F.nextElementSibling || P();
2586
2592
  function P() {
2587
- var O = F;
2593
+ var N = F;
2588
2594
  do
2589
- O = O.nextSibling;
2590
- while (O && O.nodeType !== 1);
2591
- return O;
2595
+ N = N.nextSibling;
2596
+ while (N && N.nodeType !== 1);
2597
+ return N;
2592
2598
  }
2593
2599
  }
2594
2600
  function C(F) {
2595
2601
  return F.targetTouches && F.targetTouches.length ? F.targetTouches[0] : F.changedTouches && F.changedTouches.length ? F.changedTouches[0] : F;
2596
2602
  }
2597
2603
  function v(F, P) {
2598
- var O = C(P), R = {
2604
+ var N = C(P), R = {
2599
2605
  pageX: "clientX",
2600
2606
  // IE8
2601
2607
  pageY: "clientY"
2602
2608
  // IE8
2603
2609
  };
2604
- return F in R && !(F in O) && R[F] in O && (F = R[F]), O[F];
2610
+ return F in R && !(F in N) && R[F] in N && (F = R[F]), N[F];
2605
2611
  }
2606
2612
  o.exports = d;
2607
2613
  }).call(this, typeof nt < "u" ? nt : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -2898,7 +2904,7 @@ var Ha = { exports: {} };
2898
2904
  }, { "process/browser.js": 9, timers: 11 }]
2899
2905
  }, {}, [2])(2);
2900
2906
  });
2901
- })(Ha);
2907
+ })(qa);
2902
2908
  const ot = {
2903
2909
  button: { type: "button", name: "按钮" },
2904
2910
  "response-toolbar": { type: "response-toolbar", name: "工具栏" },
@@ -2964,7 +2970,7 @@ const ot = {
2964
2970
  "wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
2965
2971
  step: { type: "step", name: "步骤条", icon: "step" },
2966
2972
  "dynamic-form": { type: "dynamic-form", name: "动态表单" }
2967
- }, { globalStorageKey: Ou } = jn(), Ga = {
2973
+ }, { globalStorageKey: Du } = jn(), Wa = {
2968
2974
  /**
2969
2975
  * 允许点击蒙层关闭对话框
2970
2976
  * @default false
@@ -3182,7 +3188,7 @@ class lt {
3182
3188
  return this.width = t.width, this.height = t.height, this;
3183
3189
  }
3184
3190
  }
3185
- function qa(e, t) {
3191
+ function Ya(e, t) {
3186
3192
  const n = x(), o = x(), i = x(), r = x(), a = x(), c = x(), l = x(), s = x(), f = x(), d = x(), p = x(), y = x(e.resizeable), m = x(), b = x(e.draggable), T = x(!1);
3187
3193
  function I() {
3188
3194
  const $ = o.value || document.body, A = window.getComputedStyle($);
@@ -3307,7 +3313,7 @@ function qa(e, t) {
3307
3313
  onMousedown: (A) => F(A)
3308
3314
  }, null)]);
3309
3315
  }
3310
- function O($ = !0) {
3316
+ function N($ = !0) {
3311
3317
  document.body.click();
3312
3318
  const A = o.value || document.body, oe = lt.getCurrent(A), W = n.value;
3313
3319
  $ && W && (m.value = u(), m.value.transform = W.style.transform), oe && W && (c.value = oe, c.value.height -= 14, c.value.width -= 14, W.style.height = c.value.height + "px", W.style.width = c.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", p.value = {
@@ -3350,7 +3356,7 @@ function qa(e, t) {
3350
3356
  }
3351
3357
  function Z() {
3352
3358
  const $ = () => {
3353
- T.value ? O(!1) : L(), document.body.click();
3359
+ T.value ? N(!1) : L(), document.body.click();
3354
3360
  };
3355
3361
  return window.addEventListener("resize", $), () => {
3356
3362
  window.removeEventListener("resize", $);
@@ -3361,7 +3367,7 @@ function qa(e, t) {
3361
3367
  renderResizeBar: P,
3362
3368
  boundingElement: o,
3363
3369
  resizedEventParam: p,
3364
- maximize: O,
3370
+ maximize: N,
3365
3371
  restore: R,
3366
3372
  allowDrag: b,
3367
3373
  isMaximized: T,
@@ -3369,7 +3375,7 @@ function qa(e, t) {
3369
3375
  moveToCenter: L
3370
3376
  };
3371
3377
  }
3372
- function Wa(e, t, n) {
3378
+ function Xa(e, t, n) {
3373
3379
  const o = x(), i = x(e.draggable), r = x(e.lockAxis), a = x(), c = x(), l = x(!1), s = x(new Ve(0, 0)), f = x(new Ve(0, 0)), d = x(new Ve(0, 0)), p = x(new Ve(0, 0));
3374
3380
  Ee(() => n.value, (S) => {
3375
3381
  a.value.style.cursor = S ? "move" : "default";
@@ -3465,7 +3471,7 @@ function Un(e, t) {
3465
3471
  };
3466
3472
  }
3467
3473
  }
3468
- function Ya(e, t) {
3474
+ function Qa(e, t) {
3469
3475
  const n = x(e.enableEsc);
3470
3476
  let o = null;
3471
3477
  return n.value ? (o = Un("Escape", (i) => {
@@ -3474,7 +3480,7 @@ function Ya(e, t) {
3474
3480
  remove: o
3475
3481
  }) : null;
3476
3482
  }
3477
- function Xa(e, t) {
3483
+ function Ja(e, t) {
3478
3484
  const n = x(e.enableEnter);
3479
3485
  let o = null;
3480
3486
  return n.value ? (o = Un("Enter", (i) => {
@@ -3483,13 +3489,13 @@ function Xa(e, t) {
3483
3489
  remove: o
3484
3490
  }) : null;
3485
3491
  }
3486
- const Et = /* @__PURE__ */ je({
3492
+ const Et = /* @__PURE__ */ Le({
3487
3493
  name: "FModal",
3488
- props: Ga,
3494
+ props: Wa,
3489
3495
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove", "buttonClick"],
3490
3496
  setup(e, t) {
3491
3497
  const n = x(e.width || 300), o = x(e.height || 200), i = x(e.modelValue), r = x(""), a = x(e.class), c = x(e.fitContent), l = x(e.showHeader), s = x(""), f = x(e.showCloseButton), d = x(e.showMaxButton), p = x(!1), y = x(e.dialogType), m = x(e.src), b = x(""), T = x(e.showButtons), I = x(e.title), h = x(e.containment || null), w = x();
3492
- I.value === "错误提示" && (I.value = Le.getLocaleValue("messageBox.errorTitle"));
3498
+ I.value === "错误提示" && (I.value = Ae.getLocaleValue("messageBox.errorTitle"));
3493
3499
  const M = x(!1);
3494
3500
  function k() {
3495
3501
  const D = document.querySelectorAll(".farris-modal").length;
@@ -3508,19 +3514,19 @@ const Et = /* @__PURE__ */ je({
3508
3514
  }
3509
3515
  const S = [{
3510
3516
  name: "cancel",
3511
- text: Le.getLocaleValue("messageBox.cancel") || "取消",
3517
+ text: Ae.getLocaleValue("messageBox.cancel") || "取消",
3512
3518
  class: "btn btn-secondary",
3513
3519
  handle: (D) => {
3514
3520
  B(D, !1);
3515
3521
  }
3516
3522
  }, {
3517
3523
  name: "accept",
3518
- text: Le.getLocaleValue("messageBox.ok") || "确定",
3524
+ text: Ae.getLocaleValue("messageBox.ok") || "确定",
3519
3525
  class: "btn btn-primary",
3520
3526
  handle: (D) => {
3521
3527
  B(D, !0);
3522
3528
  }
3523
- }], u = x(e.buttons && e.buttons.length ? e.buttons : S), C = J(() => !!s.value), v = J(() => !!T.value && !!u.value), F = x(), P = x(), O = x(e.maximized || !1), {
3529
+ }], u = x(e.buttons && e.buttons.length ? e.buttons : S), C = J(() => !!s.value), v = J(() => !!T.value && !!u.value), F = x(), P = x(), N = x(e.maximized || !1), {
3524
3530
  renderResizeBar: R,
3525
3531
  maximize: L,
3526
3532
  restore: Z,
@@ -3529,9 +3535,9 @@ const Et = /* @__PURE__ */ je({
3529
3535
  allowDrag: A,
3530
3536
  unWindowResizeHandle: oe,
3531
3537
  moveToCenter: W
3532
- } = qa(e), {
3538
+ } = Ya(e), {
3533
3539
  registerDraggle: Q
3534
- } = Wa(e, t, A);
3540
+ } = Xa(e, t, A);
3535
3541
  function ge() {
3536
3542
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
3537
3543
  }
@@ -3540,7 +3546,7 @@ const Et = /* @__PURE__ */ je({
3540
3546
  }), Ee(() => e.modelValue, (D, ae) => {
3541
3547
  D !== ae && (i.value = D, i.value && e.draggable && st(() => {
3542
3548
  P.value && !h.value && (h.value = P.value.parentElement, Y.value = h.value, Q(F.value, P.value, Y.value), W());
3543
- }), D || (h.value && (h.value = null), k())), i.value ? M.value = ge() : (O.value = !1, A.value = e.draggable);
3549
+ }), D || (h.value && (h.value = null), k())), i.value ? M.value = ge() : (N.value = !1, A.value = e.draggable);
3544
3550
  }), Ee(() => e.showHeader, (D, ae) => {
3545
3551
  D !== ae && (l.value = D);
3546
3552
  }), Ee(() => e.showButtons, (D, ae) => {
@@ -3550,14 +3556,14 @@ const Et = /* @__PURE__ */ je({
3550
3556
  JSON.stringify(be) !== JSON.stringify(Ce) && t.emit("resize", {
3551
3557
  newSize: D,
3552
3558
  oldSize: ae,
3553
- isMaximized: O.value
3559
+ isMaximized: N.value
3554
3560
  });
3555
3561
  }), Ee([() => e.width, () => e.height], (D, ae) => {
3556
3562
  (D[0] !== ae[0] || D[1] !== ae[1]) && (n.value = D[0] || 500, o.value = D[1] || 600);
3557
3563
  }), Ee(() => e.class, (D, ae) => {
3558
3564
  a.value = D;
3559
3565
  });
3560
- const pe = J(() => (i.value && document.body.classList.add("modal-open"), i.value)), re = J(() => {
3566
+ const me = J(() => (i.value && document.body.classList.add("modal-open"), i.value)), re = J(() => {
3561
3567
  var be;
3562
3568
  const D = {
3563
3569
  modal: !0,
@@ -3565,18 +3571,18 @@ const Et = /* @__PURE__ */ je({
3565
3571
  fade: !0,
3566
3572
  "fe-cmp-page-modal": !!e.showFloatingClose
3567
3573
  };
3568
- D["f-modal-fitContent"] = !!c.value, D.show = !!pe.value;
3574
+ D["f-modal-fitContent"] = !!c.value, D.show = !!me.value;
3569
3575
  const ae = (be = e.maskClass) == null ? void 0 : be.split(" ");
3570
- return ae == null || ae.reduce((Ce, $e) => (Ce[$e] = !0, Ce), D), D;
3576
+ return ae == null || ae.reduce((Ce, _e) => (Ce[_e] = !0, Ce), D), D;
3571
3577
  }), Se = J(() => {
3572
3578
  var be;
3573
3579
  const D = {
3574
3580
  "modal-dialog": !0
3575
3581
  }, ae = (be = a.value) == null ? void 0 : be.split(" ");
3576
- return ae == null || ae.reduce((Ce, $e) => (Ce[$e] = !0, Ce), D), D;
3582
+ return ae == null || ae.reduce((Ce, _e) => (Ce[_e] = !0, Ce), D), D;
3577
3583
  }), Pe = () => ln() && !e.isMessager || !!e.fullscreen, we = J(() => {
3578
3584
  const D = document.documentElement.clientWidth, ae = document.documentElement.clientHeight;
3579
- if (O.value)
3585
+ if (N.value)
3580
3586
  return {
3581
3587
  position: "fixed",
3582
3588
  top: "0px",
@@ -3585,9 +3591,9 @@ const Et = /* @__PURE__ */ je({
3585
3591
  height: "100vh",
3586
3592
  margin: "0"
3587
3593
  };
3588
- const be = Math.min(n.value, D), Ce = e.position === "right" ? "100%" : c.value ? "auto" : `${Math.min(o.value, ae - 10)}px`, $e = `${(window.innerHeight - (Ce === "100%" || Ce === "auto" ? 0 : parseInt(Ce))) / 2}px`, ht = e.position === "right" ? `${window.innerWidth - be}px` : `${(window.innerWidth - be) / 2}px`, at = {
3594
+ const be = Math.min(n.value, D), Ce = e.position === "right" ? "100%" : c.value ? "auto" : `${Math.min(o.value, ae - 10)}px`, _e = `${(window.innerHeight - (Ce === "100%" || Ce === "auto" ? 0 : parseInt(Ce))) / 2}px`, ht = e.position === "right" ? `${window.innerWidth - be}px` : `${(window.innerWidth - be) / 2}px`, at = {
3589
3595
  position: "absolute",
3590
- top: $e,
3596
+ top: _e,
3591
3597
  left: ht,
3592
3598
  width: ln() ? "auto" : `${be}px`,
3593
3599
  height: Ce
@@ -3611,8 +3617,8 @@ const Et = /* @__PURE__ */ je({
3611
3617
  }), ie = J(() => ({
3612
3618
  "f-icon": !0,
3613
3619
  modal_maximize: !0,
3614
- modalrevert: O.value
3615
- })), ve = J(() => ({
3620
+ modalrevert: N.value
3621
+ })), pe = J(() => ({
3616
3622
  "modal-body": !0,
3617
3623
  "f-utils-flex-column": y.value === "iframe",
3618
3624
  "f-utils-fill": !0
@@ -3629,11 +3635,11 @@ const Et = /* @__PURE__ */ je({
3629
3635
  return Object.assign(D, ae);
3630
3636
  });
3631
3637
  function Re(D) {
3632
- if (D == null || D.stopPropagation(), O.value) {
3633
- O.value = !1, Z();
3638
+ if (D == null || D.stopPropagation(), N.value) {
3639
+ N.value = !1, Z();
3634
3640
  return;
3635
3641
  }
3636
- L(), O.value = !0;
3642
+ L(), N.value = !0;
3637
3643
  }
3638
3644
  async function ye(D, ae) {
3639
3645
  D.handle ? await D.handle(ae, D) && t.emit("closed", ae) : t.emit("buttonClick", {
@@ -3645,10 +3651,10 @@ const Et = /* @__PURE__ */ je({
3645
3651
  D.width && (n.value = D.width), D.height && (o.value = D.height), D.buttons && (u.value = D.buttons), D.title && (I.value = D.title);
3646
3652
  }
3647
3653
  let Be = null, ke = null;
3648
- $t(() => {
3654
+ _t(() => {
3649
3655
  M.value = ge();
3650
3656
  }), et(() => {
3651
- P.value && !h.value && (h.value = P.value.parentElement, Y.value = h.value, Q(F.value, P.value, Y.value)), pe.value && document.body.classList.add("modal-open"), Be = Ya(e, t), ke = Xa(e, t);
3657
+ P.value && !h.value && (h.value = P.value.parentElement, Y.value = h.value, Q(F.value, P.value, Y.value)), me.value && document.body.classList.add("modal-open"), Be = Qa(e, t), ke = Ja(e, t);
3652
3658
  }), It(() => {
3653
3659
  oe && oe(), Be && Be.remove(), ke && ke.remove();
3654
3660
  }), t.expose({
@@ -3656,7 +3662,7 @@ const Et = /* @__PURE__ */ je({
3656
3662
  updateModalOptions: Me,
3657
3663
  close: B,
3658
3664
  maxDialog: Re,
3659
- isMaximized: O,
3665
+ isMaximized: N,
3660
3666
  disableButtons: (D, ae = !0) => {
3661
3667
  u.value.forEach((be) => {
3662
3668
  be.name && D.includes(be.name) && (be.disabled = ae);
@@ -3713,8 +3719,8 @@ const Et = /* @__PURE__ */ je({
3713
3719
  type: "button",
3714
3720
  disabled: ae.value,
3715
3721
  class: be + (D.iconClass ? " btn-icontext" : "") + (D.visible === !1 ? "d-none" : ""),
3716
- onClick: ($e) => {
3717
- ye(D, $e);
3722
+ onClick: (_e) => {
3723
+ ye(D, _e);
3718
3724
  }
3719
3725
  }, [!!D.iconClass && g("i", {
3720
3726
  class: D.iconClass
@@ -3725,7 +3731,7 @@ const Et = /* @__PURE__ */ je({
3725
3731
  d.value && Re();
3726
3732
  }
3727
3733
  function Qe() {
3728
- return g(Ke, null, [O.value && g("div", {
3734
+ return g(Ke, null, [N.value && g("div", {
3729
3735
  class: "modal-header",
3730
3736
  style: "position: absolute;background: transparent;height: 45px;width: 100%;",
3731
3737
  onDblclick: (D) => We()
@@ -3765,24 +3771,24 @@ const Et = /* @__PURE__ */ je({
3765
3771
  }, [e.showFloatingClose && Fe(), g("div", {
3766
3772
  class: ee.value
3767
3773
  }, [l.value && Qe(), g("div", {
3768
- class: ve.value
3774
+ class: pe.value
3769
3775
  }, [(ae = (D = t.slots).default) == null ? void 0 : ae.call(D), y.value === "iframe" && g("iframe", {
3770
3776
  title: r.value,
3771
3777
  class: "f-utils-fill",
3772
3778
  width: "100%",
3773
3779
  frameborder: "0",
3774
3780
  src: m.value
3775
- }, null)]), ft()]), !c.value && P.value && !O.value && R(P.value)]);
3781
+ }, null)]), ft()]), !c.value && P.value && !N.value && R(P.value)]);
3776
3782
  }
3777
3783
  function xe(D) {
3778
3784
  return D || "body";
3779
3785
  }
3780
- return Ro(() => {
3781
- pe.value && (K.value = Cn() || 1050);
3782
- }), () => g(Oo, {
3786
+ return No(() => {
3787
+ me.value && (K.value = Cn() || 1050);
3788
+ }), () => g(Do, {
3783
3789
  to: xe(e.host)
3784
3790
  }, {
3785
- default: () => [pe.value && g(Vn, {
3791
+ default: () => [me.value && g(Vn, {
3786
3792
  name: "fade",
3787
3793
  appear: !0
3788
3794
  }, {
@@ -3802,7 +3808,7 @@ function zn(e) {
3802
3808
  if (e.render && typeof e.render == "function")
3803
3809
  return e.render;
3804
3810
  }
3805
- function Qa(e) {
3811
+ function Za(e) {
3806
3812
  const t = document.createElement("div");
3807
3813
  t.style.display = "contents";
3808
3814
  const n = Bn({
@@ -3846,18 +3852,18 @@ function Qa(e) {
3846
3852
  });
3847
3853
  }
3848
3854
  });
3849
- return document.body.appendChild(t), n.use(Le.i18n), n.mount(t), n;
3855
+ return document.body.appendChild(t), n.use(Ae.i18n), n.mount(t), n;
3850
3856
  }
3851
- class Ja {
3857
+ class Ka {
3852
3858
  // private activeModalInstance = computed(() => {
3853
3859
  // return this.modalRefs[this.activeModalIndex.value];
3854
3860
  // });
3855
3861
  constructor(t) {
3856
- me(this, "appContext", null);
3857
- me(this, "modalRef", x());
3858
- me(this, "activeModalIndex", x(0));
3859
- me(this, "modalRefs", {});
3860
- me(this, "isUseEscCloseModal", x(!1));
3862
+ fe(this, "appContext", null);
3863
+ fe(this, "modalRef", x());
3864
+ fe(this, "activeModalIndex", x(0));
3865
+ fe(this, "modalRefs", {});
3866
+ fe(this, "isUseEscCloseModal", x(!1));
3861
3867
  this.app = t, this.appContext = t ? t._context : null;
3862
3868
  }
3863
3869
  getCurrentModal() {
@@ -3882,7 +3888,7 @@ class Ja {
3882
3888
  showButtons: !0,
3883
3889
  showHeader: !0
3884
3890
  }, t);
3885
- return Qa(n);
3891
+ return Za(n);
3886
3892
  }
3887
3893
  close(t) {
3888
3894
  var n, o;
@@ -3891,7 +3897,7 @@ class Ja {
3891
3897
  open(t) {
3892
3898
  const n = document.createDocumentFragment();
3893
3899
  t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
3894
- const o = No(Object.assign({
3900
+ const o = jo(Object.assign({
3895
3901
  title: "",
3896
3902
  showButtons: !0,
3897
3903
  showHeader: !0,
@@ -3925,7 +3931,7 @@ class Ja {
3925
3931
  height: I
3926
3932
  } = o.value, h = this.adaptToWindow(T || 500, I || 320);
3927
3933
  Object.assign(o.value, h);
3928
- const w = x(), M = () => g(Et, _t({
3934
+ const w = x(), M = () => g(Et, Ut({
3929
3935
  ref: w,
3930
3936
  modelValue: i.value,
3931
3937
  "onUpdate:modelValue": (u) => i.value = u
@@ -3942,7 +3948,7 @@ class Ja {
3942
3948
  default: () => [p && p(this.app)]
3943
3949
  });
3944
3950
  d = ((u) => {
3945
- const C = Do(M, u);
3951
+ const C = Lo(M, u);
3946
3952
  return C.appContext = this.appContext, Zt(C, n), C;
3947
3953
  })({
3948
3954
  ...o.value
@@ -3954,7 +3960,7 @@ class Ja {
3954
3960
  o.value = {
3955
3961
  ...o.value,
3956
3962
  ...u
3957
- }, d && Zt(jo(d, {
3963
+ }, d && Zt(Ao(d, {
3958
3964
  ...o
3959
3965
  }), n);
3960
3966
  };
@@ -3975,14 +3981,14 @@ class Ja {
3975
3981
  };
3976
3982
  }
3977
3983
  }
3978
- const Za = Symbol("FModalService");
3984
+ const el = Symbol("FModalService");
3979
3985
  Et.install = (e) => {
3980
3986
  e.component(Et.name, Et);
3981
- const t = new Ja(e);
3982
- e.provide(Za, t), e.provide("FModalService", t);
3987
+ const t = new Ka(e);
3988
+ e.provide(el, t), e.provide("FModalService", t);
3983
3989
  };
3984
3990
  x(0);
3985
- function Ka(e, t) {
3991
+ function tl(e, t) {
3986
3992
  let n;
3987
3993
  function o(d) {
3988
3994
  const { properties: p, title: y, ignore: m } = d, b = m && Array.isArray(m), T = Object.keys(p).reduce((I, h) => ((!b || !m.find((w) => w === h)) && (I[h] = p[h].type === "object" && p[h].properties ? o(p[h]) : Ze(p[h].default)), I), {});
@@ -4059,7 +4065,7 @@ function Ka(e, t) {
4059
4065
  }
4060
4066
  return { getSchemaByType: r, resolveSchemaWithDefaultValue: s, resolveSchemaToProps: l, mappingSchemaToProps: c, setDesignerContext: f };
4061
4067
  }
4062
- const el = {}, tl = {}, { resolveSchemaWithDefaultValue: nl } = Ka(el, tl);
4068
+ const nl = {}, ol = {}, { resolveSchemaWithDefaultValue: il } = tl(nl, ol);
4063
4069
  function Hn(e) {
4064
4070
  const { designerHostService: t } = e, n = /* @__PURE__ */ new Map(), o = x(), i = x(), r = x([
4065
4071
  { field: "name", title: "字段名称" },
@@ -4148,7 +4154,7 @@ function Hn(e) {
4148
4154
  currentComponentType: l
4149
4155
  };
4150
4156
  }
4151
- function ol(e) {
4157
+ function rl(e) {
4152
4158
  const { designerHostService: t } = e, n = /* @__PURE__ */ new Map(), o = x(), i = x(), r = x([{ field: "name", title: "实体名称" }]), a = x(), c = x(!1);
4153
4159
  function l(m) {
4154
4160
  const b = Hn(e);
@@ -4204,10 +4210,10 @@ function ol(e) {
4204
4210
  isMainEntityInitialSelected: c
4205
4211
  };
4206
4212
  }
4207
- const il = /* @__PURE__ */ new Map([
4213
+ const al = /* @__PURE__ */ new Map([
4208
4214
  ["appearance", un]
4209
4215
  ]);
4210
- function rl(e, t) {
4216
+ function ll(e, t) {
4211
4217
  const {
4212
4218
  formSchemaUtils: n,
4213
4219
  designViewModelUtils: o
@@ -4235,7 +4241,7 @@ function rl(e, t) {
4235
4241
  }
4236
4242
  return { createComponent: a };
4237
4243
  }
4238
- function al(e, t, n, o) {
4244
+ function sl(e, t, n, o) {
4239
4245
  var r, a, c, l, s, f;
4240
4246
  const i = n.parentComponentInstance;
4241
4247
  if (i && o) {
@@ -4247,12 +4253,12 @@ function al(e, t, n, o) {
4247
4253
  parentComponentInstance: i,
4248
4254
  bindTo: ((l = n.bindingSourceContext) == null ? void 0 : l.bindTo) || "",
4249
4255
  dataSource: (f = (s = n.bindingSourceContext) == null ? void 0 : s.bindingEntity) == null ? void 0 : f.label
4250
- }, { createComponent: y } = rl(e, o);
4256
+ }, { createComponent: y } = ll(e, o);
4251
4257
  return y(p);
4252
4258
  } else
4253
4259
  return t;
4254
4260
  }
4255
- const ll = "https://json-schema.org/draft/2020-12/schema", sl = "https://farris-design.gitee.io/step.schema.json", cl = "step", ul = "A Farris Component", dl = "object", fl = {
4261
+ const cl = "https://json-schema.org/draft/2020-12/schema", ul = "https://farris-design.gitee.io/step.schema.json", dl = "step", fl = "A Farris Component", ml = "object", pl = {
4256
4262
  id: {
4257
4263
  description: "The unique identifier for step",
4258
4264
  type: "string"
@@ -4330,17 +4336,17 @@ const ll = "https://json-schema.org/draft/2020-12/schema", sl = "https://farris-
4330
4336
  description: "步骤条模板",
4331
4337
  type: "string"
4332
4338
  }
4333
- }, ml = [
4339
+ }, vl = [
4334
4340
  "id",
4335
4341
  "type"
4336
- ], pl = {
4337
- $schema: ll,
4338
- $id: sl,
4339
- title: cl,
4340
- description: ul,
4341
- type: dl,
4342
- properties: fl,
4343
- required: ml
4342
+ ], gl = {
4343
+ $schema: cl,
4344
+ $id: ul,
4345
+ title: dl,
4346
+ description: fl,
4347
+ type: ml,
4348
+ properties: pl,
4349
+ required: vl
4344
4350
  }, fn = {
4345
4351
  /**
4346
4352
  * 步骤条方向
@@ -4394,7 +4400,7 @@ const ll = "https://json-schema.org/draft/2020-12/schema", sl = "https://farris-
4394
4400
  } },
4395
4401
  customClass: { type: String, default: "" },
4396
4402
  stepTemplate: { type: Object }
4397
- }, Gn = gt(fn, pl, il, al), ct = /* @__PURE__ */ je({
4403
+ }, Gn = gt(fn, gl, al, sl), ct = /* @__PURE__ */ Le({
4398
4404
  name: "FStep",
4399
4405
  props: fn,
4400
4406
  emits: ["click"],
@@ -4525,7 +4531,7 @@ const ll = "https://json-schema.org/draft/2020-12/schema", sl = "https://farris-
4525
4531
  }, [T()])]);
4526
4532
  }
4527
4533
  });
4528
- class vl extends $n {
4534
+ class hl extends $n {
4529
4535
  constructor(t, n) {
4530
4536
  super(t, n);
4531
4537
  }
@@ -4687,7 +4693,7 @@ class vl extends $n {
4687
4693
  };
4688
4694
  }
4689
4695
  }
4690
- function gl(e, t) {
4696
+ function yl(e, t) {
4691
4697
  const n = e.schema;
4692
4698
  function o() {
4693
4699
  return "";
@@ -4705,7 +4711,7 @@ function gl(e, t) {
4705
4711
  return !0;
4706
4712
  }
4707
4713
  function l(f) {
4708
- return new vl(f, t).getPropertyConfig(n);
4714
+ return new hl(f, t).getPropertyConfig(n);
4709
4715
  }
4710
4716
  function s() {
4711
4717
  var f, d, p, y;
@@ -4737,12 +4743,12 @@ function gl(e, t) {
4737
4743
  getDesignerClass: o
4738
4744
  };
4739
4745
  }
4740
- const hl = /* @__PURE__ */ je({
4746
+ const bl = /* @__PURE__ */ Le({
4741
4747
  name: "FStepDesign",
4742
4748
  props: fn,
4743
4749
  emits: [],
4744
4750
  setup(e, t) {
4745
- const n = x(0), o = x(0), i = x(), r = Dt("designer-host-service"), a = Dt("design-item-context"), c = gl(a, r), l = Nn(i, a, c), s = [{
4751
+ const n = x(0), o = x(0), i = x(), r = jt("designer-host-service"), a = jt("design-item-context"), c = yl(a, r), l = Nn(i, a, c), s = [{
4746
4752
  id: "firstStep",
4747
4753
  title: "步骤一",
4748
4754
  description: "步骤一"
@@ -4861,7 +4867,7 @@ const hl = /* @__PURE__ */ je({
4861
4867
  }, [B()])]);
4862
4868
  }
4863
4869
  });
4864
- function yl() {
4870
+ function Cl() {
4865
4871
  function e(t, n) {
4866
4872
  const o = {};
4867
4873
  return o.beforeClickStep = (i) => n.call("beforeClickStep", t, [i, t]), o;
@@ -4870,22 +4876,22 @@ function yl() {
4870
4876
  resolve: e
4871
4877
  };
4872
4878
  }
4873
- const bl = yl();
4879
+ const wl = Cl();
4874
4880
  ct.install = (e) => {
4875
4881
  e.component(ct.name, ct);
4876
4882
  };
4877
4883
  ct.register = (e, t, n, o) => {
4878
- e.step = ct, t.step = Gn, o.step = { callbackResolver: bl };
4884
+ e.step = ct, t.step = Gn, o.step = { callbackResolver: wl };
4879
4885
  };
4880
4886
  ct.registerDesigner = (e, t, n) => {
4881
- e.step = hl, t.step = Gn;
4887
+ e.step = bl, t.step = Gn;
4882
4888
  };
4883
- const Cl = "root-viewmodel";
4884
- class wl {
4889
+ const Fl = "root-viewmodel";
4890
+ class Tl {
4885
4891
  constructor(t, n) {
4886
- me(this, "formSchemaUtils");
4887
- me(this, "controlCreatorUtils");
4888
- me(this, "designViewModelUtils");
4892
+ fe(this, "formSchemaUtils");
4893
+ fe(this, "controlCreatorUtils");
4894
+ fe(this, "designViewModelUtils");
4889
4895
  this.resolver = t, this.designerHostService = n, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.controlCreatorUtils = this.designerHostService.controlCreatorUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils;
4890
4896
  }
4891
4897
  createComponent(t) {
@@ -4989,7 +4995,7 @@ class wl {
4989
4995
  code: `${t.componentId}-component-viewmodel`,
4990
4996
  name: t.componentName,
4991
4997
  bindTo: t.bindTo,
4992
- parent: Cl,
4998
+ parent: Fl,
4993
4999
  fields: this.assembleViewModelFields(t),
4994
5000
  commands: [],
4995
5001
  states: [],
@@ -5032,11 +5038,11 @@ function qn(e, t, n, o) {
5032
5038
  bindTo: ((s = n.bindingSourceContext) == null ? void 0 : s.bindTo) || "/",
5033
5039
  selectedFields: (f = n.bindingSourceContext) == null ? void 0 : f.bindingEntityFields
5034
5040
  };
5035
- return new wl(e, o).createComponent(y);
5041
+ return new Tl(e, o).createComponent(y);
5036
5042
  } else
5037
5043
  return t;
5038
5044
  }
5039
- const Fl = "https://json-schema.org/draft/2020-12/schema", Tl = "https://farris-design.gitee.io/response-form.schema.json", Sl = "response-form", xl = "A Farris Data Collection Component", El = "object", Il = {
5045
+ const Sl = "https://json-schema.org/draft/2020-12/schema", xl = "https://farris-design.gitee.io/response-form.schema.json", El = "response-form", Il = "A Farris Data Collection Component", kl = "object", Ml = {
5040
5046
  id: {
5041
5047
  description: "The unique identifier for a form group",
5042
5048
  type: "string"
@@ -5092,21 +5098,21 @@ const Fl = "https://json-schema.org/draft/2020-12/schema", Tl = "https://farris-
5092
5098
  description: "",
5093
5099
  type: "object"
5094
5100
  }
5095
- }, kl = [
5101
+ }, Bl = [
5096
5102
  "id",
5097
5103
  "type",
5098
5104
  "contents"
5099
- ], Ml = {
5100
- $schema: Fl,
5101
- $id: Tl,
5102
- title: Sl,
5103
- description: xl,
5104
- type: El,
5105
- properties: Il,
5106
- required: kl
5105
+ ], Vl = {
5106
+ $schema: Sl,
5107
+ $id: xl,
5108
+ title: El,
5109
+ description: Il,
5110
+ type: kl,
5111
+ properties: Ml,
5112
+ required: Bl
5107
5113
  }, Wn = /* @__PURE__ */ new Map([
5108
5114
  ["appearance", un]
5109
- ]), Bl = "https://json-schema.org/draft/2020-12/schema", Vl = "https://farris-design.gitee.io/dynamic-form.schema.json", Pl = "dynamic-form", Rl = "A Farris Data Collection Component", Ol = "object", Nl = {
5115
+ ]), Pl = "https://json-schema.org/draft/2020-12/schema", Rl = "https://farris-design.gitee.io/dynamic-form.schema.json", Ol = "dynamic-form", Nl = "A Farris Data Collection Component", Dl = "object", jl = {
5110
5116
  id: {
5111
5117
  description: "The unique identifier for a form group",
5112
5118
  type: "string"
@@ -5215,27 +5221,27 @@ const Fl = "https://json-schema.org/draft/2020-12/schema", Tl = "https://farris-
5215
5221
  description: "",
5216
5222
  type: "string"
5217
5223
  }
5218
- }, Dl = [
5224
+ }, Ll = [
5219
5225
  "id",
5220
5226
  "type",
5221
5227
  "contents"
5222
- ], jl = {
5228
+ ], Al = {
5223
5229
  onClick: "点击事件",
5224
5230
  onChange: "ֵ值变化事件",
5225
5231
  event: "内部控件事件",
5226
5232
  callback: "内部控件属性回调事件"
5227
- }, Ll = {
5228
- $schema: Bl,
5229
- $id: Vl,
5230
- title: Pl,
5231
- description: Rl,
5232
- type: Ol,
5233
- properties: Nl,
5234
- required: Dl,
5235
- events: jl
5233
+ }, $l = {
5234
+ $schema: Pl,
5235
+ $id: Rl,
5236
+ title: Ol,
5237
+ description: Nl,
5238
+ type: Dl,
5239
+ properties: jl,
5240
+ required: Ll,
5241
+ events: Al
5236
5242
  };
5237
- var xt = /* @__PURE__ */ ((e) => (e.Header = "header", e.Footer = "footer", e))(xt || {}), Lt = /* @__PURE__ */ ((e) => (e.QUICK = "quick", e.FULL = "full", e))(Lt || {});
5238
- const zt = {
5243
+ var xt = /* @__PURE__ */ ((e) => (e.Header = "header", e.Footer = "footer", e))(xt || {}), At = /* @__PURE__ */ ((e) => (e.QUICK = "quick", e.FULL = "full", e))(At || {});
5244
+ const Ht = {
5239
5245
  customClass: { type: String, default: "" },
5240
5246
  customStyle: { type: String, defaut: "" },
5241
5247
  /** 控制是否可见 */
@@ -5248,7 +5254,7 @@ const zt = {
5248
5254
  formData: { type: Object, default: null },
5249
5255
  /** 为动态字段指定样式*/
5250
5256
  layout: { type: String, default: "col-12 col-md-6 col-xl-3 col-el-2" }
5251
- }, Al = Object.assign({}, zt, {
5257
+ }, _l = Object.assign({}, Ht, {
5252
5258
  // 是否渲染form层级
5253
5259
  canRenderForm: { type: Boolean, default: !0 },
5254
5260
  /**
@@ -5277,7 +5283,7 @@ const zt = {
5277
5283
  collapseLabel: { type: String, default: "收起" },
5278
5284
  enableAccordion: { type: Boolean, default: !0 },
5279
5285
  /** 模式 **/
5280
- mode: { type: String, default: Lt.QUICK },
5286
+ mode: { type: String, default: At.QUICK },
5281
5287
  /** 工具栏 */
5282
5288
  toolbar: { type: [Array, Function], default: [] },
5283
5289
  /** 设置头部的样式 */
@@ -5287,9 +5293,9 @@ const zt = {
5287
5293
  /** 更多按钮样式 */
5288
5294
  moreButtonClass: { type: String, default: "btn-link" }
5289
5295
  });
5290
- gt(zt, Ml, Wn, qn);
5291
- gt(zt, Ll, Wn, qn);
5292
- function $l(e, t) {
5296
+ gt(Ht, Vl, Wn, qn);
5297
+ gt(Ht, $l, Wn, qn);
5298
+ function Ul(e, t) {
5293
5299
  function n(a) {
5294
5300
  return e.value && e.value[a];
5295
5301
  }
@@ -5309,23 +5315,23 @@ function $l(e, t) {
5309
5315
  onValueChange: i
5310
5316
  };
5311
5317
  }
5312
- const Ot = /* @__PURE__ */ je({
5318
+ const Nt = /* @__PURE__ */ Le({
5313
5319
  name: "FDynamicForm",
5314
- props: Al,
5320
+ props: _l,
5315
5321
  emits: ["update:modelValue", "change", "event", "click"],
5316
5322
  setup(e, t) {
5317
5323
  const n = x(e.fields), o = /* @__PURE__ */ new Map(), i = x(e.callback);
5318
- Ni();
5319
- const r = Di(), a = x(e.formData || {}), c = $l(a, t);
5320
- ji(n.value).setup();
5324
+ ji();
5325
+ const r = Li(), a = x(e.formData || {}), c = Ul(a, t);
5326
+ Ai(n.value).setup();
5321
5327
  const s = /* @__PURE__ */ new Map(), f = x(e.canRenderForm);
5322
5328
  let d = [], p = [], y = [];
5323
- const m = e.mode === Lt.FULL ? "contents" : "fields", {
5329
+ const m = e.mode === At.FULL ? "contents" : "fields", {
5324
5330
  mergeArray: b,
5325
5331
  resolveCallbacks: T,
5326
5332
  resolveEvents: I
5327
- } = Li(), h = J(() => {
5328
- const E = Le.getLocale(), ee = e.fields && e.fields.length > 0;
5333
+ } = $i(), h = J(() => {
5334
+ const E = Ae.getLocale(), ee = e.fields && e.fields.length > 0;
5329
5335
  let te = {
5330
5336
  "f-form-layout": ee,
5331
5337
  "farris-form": ee,
@@ -5338,12 +5344,12 @@ const Ot = /* @__PURE__ */ je({
5338
5344
  const {
5339
5345
  id: ie
5340
5346
  } = ee || {}, {
5341
- field: ve
5347
+ field: pe
5342
5348
  } = ee.binding || {};
5343
5349
  return {
5344
5350
  modelValue: te.getValue(ie),
5345
5351
  "onUpdate:modelValue": (Ie) => {
5346
- te.setValue(ie, ve || ie, Ie);
5352
+ te.setValue(ie, pe || ie, Ie);
5347
5353
  }
5348
5354
  };
5349
5355
  }
@@ -5358,7 +5364,7 @@ const Ot = /* @__PURE__ */ je({
5358
5364
  function k(E) {
5359
5365
  const ee = {};
5360
5366
  return E && Object.entries(E).forEach(([te, ie]) => {
5361
- ee[te] = () => Array.isArray(ie) ? ie.map((ve) => v(ve)) : v(ie);
5367
+ ee[te] = () => Array.isArray(ie) ? ie.map((pe) => v(pe)) : v(ie);
5362
5368
  }), ee;
5363
5369
  }
5364
5370
  function B(E) {
@@ -5366,18 +5372,18 @@ const Ot = /* @__PURE__ */ je({
5366
5372
  }
5367
5373
  function S(E) {
5368
5374
  const ee = B(E), te = E.customClass || "";
5369
- return te || (ee === "fieldset" ? "col-12 px-0" : d.length === 0 && p.length === 0 || E.id && y.find((ie) => ie[m] ? ie[m].find((ve) => ve.id === E.id) : ie.id === E.id) ? e.layout : "unset-item");
5375
+ return te || (ee === "fieldset" ? "col-12 px-0" : d.length === 0 && p.length === 0 || E.id && y.find((ie) => ie[m] ? ie[m].find((pe) => pe.id === E.id) : ie.id === E.id) ? e.layout : "unset-item");
5370
5376
  }
5371
5377
  function u(E) {
5372
5378
  const ee = B(E);
5373
- let te = {}, ie = "", ve = {}, Ie = {};
5374
- if (e.mode === Lt.FULL) {
5375
- ve = {
5379
+ let te = {}, ie = "", pe = {}, Ie = {};
5380
+ if (e.mode === At.FULL) {
5381
+ pe = {
5376
5382
  ...I(E, t, ee)
5377
5383
  }, Ie = {
5378
5384
  ...T(E, i, ee)
5379
5385
  };
5380
- const ye = $i[ee];
5386
+ const ye = Ui[ee];
5381
5387
  te = ye ? ye(E) : {}, ie = S(te);
5382
5388
  } else {
5383
5389
  ie = S(E);
@@ -5423,7 +5429,7 @@ const Ot = /* @__PURE__ */ je({
5423
5429
  }
5424
5430
  }
5425
5431
  },
5426
- eventProps: ve,
5432
+ eventProps: pe,
5427
5433
  callbackProps: Ie
5428
5434
  };
5429
5435
  }
@@ -5435,7 +5441,7 @@ const Ot = /* @__PURE__ */ je({
5435
5441
  const te = B(E), ie = nn[te];
5436
5442
  if (E.id && o.set(E.id, E), !ie)
5437
5443
  return null;
5438
- const ve = () => E[m] ? E[m].map((ye) => v(ye)) : null, Ie = (ye, Me, Be) => {
5444
+ const pe = () => E[m] ? E[m].map((ye) => v(ye)) : null, Ie = (ye, Me, Be) => {
5439
5445
  let ke;
5440
5446
  return Be && Be.length > 0 ? ke = g(ye, {
5441
5447
  ...Me
@@ -5443,7 +5449,7 @@ const Ot = /* @__PURE__ */ je({
5443
5449
  ...Me
5444
5450
  }, null), ke;
5445
5451
  }, Ne = ((Re = s.get(E.id)) == null ? void 0 : Re.props) || {};
5446
- return E[m] && E[m].length > 0 ? Ie(ie, Ne, [ve()]) : E.slots ? Ie(ie, Ne, [...Object.values(k(E.slots))]) : Ie(ie, Ne);
5452
+ return E[m] && E[m].length > 0 ? Ie(ie, Ne, [pe()]) : E.slots ? Ie(ie, Ne, [...Object.values(k(E.slots))]) : Ie(ie, Ne);
5447
5453
  }
5448
5454
  function F(E) {
5449
5455
  const ee = B(E);
@@ -5451,12 +5457,12 @@ const Ot = /* @__PURE__ */ je({
5451
5457
  return;
5452
5458
  const {
5453
5459
  props: ie,
5454
- eventProps: ve,
5460
+ eventProps: pe,
5455
5461
  callbackProps: Ie
5456
- } = u(E), Ne = Ai[ee], Re = Ne ? Ne.editorResolver : null, {
5462
+ } = u(E), Ne = _i[ee], Re = Ne ? Ne.editorResolver : null, {
5457
5463
  componentEventProps: ye,
5458
5464
  editorEventProps: Me
5459
- } = ve, {
5465
+ } = pe, {
5460
5466
  componentCallbackProps: Be,
5461
5467
  editorCallbackProps: ke
5462
5468
  } = Ie;
@@ -5470,7 +5476,7 @@ const Ot = /* @__PURE__ */ je({
5470
5476
  }
5471
5477
  if (ie && Object.keys(ie).length > 0) {
5472
5478
  const Fe = s.get(E.id);
5473
- Fe ? Go(Fe == null ? void 0 : Fe.props, ie) : s.set(E.id, rn({
5479
+ Fe ? Wo(Fe == null ? void 0 : Fe.props, ie) : s.set(E.id, rn({
5474
5480
  props: ie
5475
5481
  }));
5476
5482
  }
@@ -5478,9 +5484,9 @@ const Ot = /* @__PURE__ */ je({
5478
5484
  }
5479
5485
  function P(E) {
5480
5486
  const ee = B(E);
5481
- nn[ee] && (O(E), !(!E[m] || !Array.isArray(E[m])) && E[m].forEach((ie) => P(ie)));
5487
+ nn[ee] && (N(E), !(!E[m] || !Array.isArray(E[m])) && E[m].forEach((ie) => P(ie)));
5482
5488
  }
5483
- function O(E) {
5489
+ function N(E) {
5484
5490
  const ee = M(E);
5485
5491
  if (ee && Object.keys(ee).length > 0) {
5486
5492
  const te = s.get(E.id);
@@ -5492,8 +5498,8 @@ const Ot = /* @__PURE__ */ je({
5492
5498
  const ie = {
5493
5499
  ...te == null ? void 0 : te.props
5494
5500
  };
5495
- Object.keys(ee).forEach((ve) => {
5496
- ie[ve] = ee[ve];
5501
+ Object.keys(ee).forEach((pe) => {
5502
+ ie[pe] = ee[pe];
5497
5503
  }), Object.assign(te == null ? void 0 : te.props, ie);
5498
5504
  }
5499
5505
  }
@@ -5527,7 +5533,7 @@ const Ot = /* @__PURE__ */ je({
5527
5533
  function A(E, ee) {
5528
5534
  c.setValue(E, void 0, ee);
5529
5535
  const te = o.get(E);
5530
- te && O(te);
5536
+ te && N(te);
5531
5537
  }
5532
5538
  function oe(E) {
5533
5539
  var ee;
@@ -5535,7 +5541,7 @@ const Ot = /* @__PURE__ */ je({
5535
5541
  }
5536
5542
  function W(E, ee) {
5537
5543
  const te = s.get(E);
5538
- Ho(te == null ? void 0 : te.props, ee, b);
5544
+ qo(te == null ? void 0 : te.props, ee, b);
5539
5545
  }
5540
5546
  t.expose({
5541
5547
  componentManager: r,
@@ -5550,25 +5556,25 @@ const Ot = /* @__PURE__ */ je({
5550
5556
  return E.length > 0 && C(E, v);
5551
5557
  }
5552
5558
  function ge(E) {
5553
- return jt(g("div", {
5559
+ return Lt(g("div", {
5554
5560
  class: h.value,
5555
5561
  style: e.customStyle
5556
5562
  }, [t.slots.default && t.slots.default(), E.length > 0 && C(E, v)]), [[an("area-response")]]);
5557
5563
  }
5558
- function pe() {
5564
+ function me() {
5559
5565
  const E = {};
5560
5566
  let ee = "f-dynamic-form-section--header-content", te = "f-dynamic-form-section--footer";
5561
5567
  return e.showHeader && (t.slots.headerTitle && (E.headerTitle = () => {
5562
- var ie, ve;
5563
- return (ve = (ie = t.slots).headerTitle) == null ? void 0 : ve.call(ie);
5568
+ var ie, pe;
5569
+ return (pe = (ie = t.slots).headerTitle) == null ? void 0 : pe.call(ie);
5564
5570
  }), ee += e.headerContentRenderFunction || t.slots.headerContent ? " f-dynamic-form-section--header-cotnent-tmpl" : "", t.slots.headerContent ? E.headerContent = () => {
5565
- var ie, ve;
5566
- return (ve = (ie = t.slots).headerContent) == null ? void 0 : ve.call(ie);
5567
- } : !e.headerContentRenderFunction && d.length > 0 && (E.headerContent = () => jt(g("div", {
5571
+ var ie, pe;
5572
+ return (pe = (ie = t.slots).headerContent) == null ? void 0 : pe.call(ie);
5573
+ } : !e.headerContentRenderFunction && d.length > 0 && (E.headerContent = () => Lt(g("div", {
5568
5574
  class: "f-form-layout farris-form farris-form-controls-inline f-dynamic-form-section--fields"
5569
5575
  }, [Q(d)]), [[an("area-response")]]))), e.showFooter && (te += e.footerRenderFunction || t.slots.footer ? " f-dynamic-form-section--footer-tmpl" : 0, t.slots.footer ? E.footer = () => {
5570
- var ie, ve;
5571
- return (ve = (ie = t.slots).footer) == null ? void 0 : ve.call(ie);
5576
+ var ie, pe;
5577
+ return (pe = (ie = t.slots).footer) == null ? void 0 : pe.call(ie);
5572
5578
  } : !e.footerRenderFunction && p.length > 0 && (te += p.length > 0 ? " f-form-layout farris-form farris-form-controls-inline f-dynamic-form-section--fields" : "", E.footer = () => Q(p))), {
5573
5579
  slots: E,
5574
5580
  footerClass: te,
@@ -5584,8 +5590,8 @@ const Ot = /* @__PURE__ */ je({
5584
5590
  slots: E,
5585
5591
  footerClass: ee,
5586
5592
  headerContentClass: te
5587
- } = pe();
5588
- return g(_i, {
5593
+ } = me();
5594
+ return g(zi, {
5589
5595
  customClass: "f-dynamic-form-section",
5590
5596
  showHeader: e.showHeader,
5591
5597
  mainTitle: e.mainTitle,
@@ -5608,14 +5614,14 @@ const Ot = /* @__PURE__ */ je({
5608
5614
  }
5609
5615
  return () => e.visible ? e.showHeader || e.showFooter ? K() : f.value && ge(n.value) || !f.value && Q(n.value) : null;
5610
5616
  }
5611
- }), In = /* @__PURE__ */ je({
5617
+ }), In = /* @__PURE__ */ Le({
5612
5618
  name: "FResponseForm",
5613
- props: zt,
5619
+ props: Ht,
5614
5620
  emits: [],
5615
5621
  setup(e, t) {
5616
5622
  var d;
5617
5623
  const n = x(), o = x(), i = J(() => {
5618
- const p = Le.getLocale(), y = e.fields && e.fields.length > 0;
5624
+ const p = Ae.getLocale(), y = e.fields && e.fields.length > 0;
5619
5625
  let m = {
5620
5626
  "drag-container": !0,
5621
5627
  "f-form-layout": y,
@@ -5645,11 +5651,11 @@ const Ot = /* @__PURE__ */ je({
5645
5651
  setProps: f,
5646
5652
  getControlValue: c,
5647
5653
  setControlValue: l
5648
- }), () => e.visible && jt(g("div", {
5654
+ }), () => e.visible && Lt(g("div", {
5649
5655
  ref: n,
5650
5656
  class: i.value,
5651
5657
  style: e.customStyle
5652
- }, [t.slots.default && t.slots.default(), e.fields && e.fields.length > 0 && g(Ot, {
5658
+ }, [t.slots.default && t.slots.default(), e.fields && e.fields.length > 0 && g(Nt, {
5653
5659
  ref: o,
5654
5660
  fields: e.fields,
5655
5661
  canRenderForm: !1,
@@ -5657,7 +5663,7 @@ const Ot = /* @__PURE__ */ je({
5657
5663
  layout: e.layout
5658
5664
  }, null)]), [[an("area-response")]]);
5659
5665
  }
5660
- }), _l = {
5666
+ }), zl = {
5661
5667
  id: { type: String, default: "" },
5662
5668
  customClass: { type: String, default: "" },
5663
5669
  customStyle: { type: String, default: "" },
@@ -5681,7 +5687,7 @@ const Ot = /* @__PURE__ */ je({
5681
5687
  enableTips: { type: Boolean, default: !1 },
5682
5688
  tipsContent: { type: [Object, String], default: "" },
5683
5689
  linkLabel: { type: String, default: !1 }
5684
- }, Ul = {
5690
+ }, Hl = {
5685
5691
  id: { type: String },
5686
5692
  required: { type: Boolean, default: !1 },
5687
5693
  text: { type: String, default: "" },
@@ -5693,9 +5699,9 @@ const Ot = /* @__PURE__ */ je({
5693
5699
  */
5694
5700
  showType: { type: String, default: "visible" },
5695
5701
  isLink: { type: Boolean, default: !1 }
5696
- }, zl = /* @__PURE__ */ je({
5702
+ }, Gl = /* @__PURE__ */ Le({
5697
5703
  name: "FDynamicFormLabel",
5698
- props: Ul,
5704
+ props: Hl,
5699
5705
  emits: ["clickLabel"],
5700
5706
  setup(e, t) {
5701
5707
  x(e.title || e.text);
@@ -5732,24 +5738,24 @@ const Ot = /* @__PURE__ */ je({
5732
5738
  class: "farris-label-info text-danger"
5733
5739
  }, [Te("*")]), e.showType === "visible" && o.value])]);
5734
5740
  }
5735
- }), { globalStorageKey: Hl } = jn(), _ = {}, U = {}, z = {}, G = {};
5736
- async function Gl() {
5741
+ }), { globalStorageKey: ql } = jn(), _ = {}, U = {}, H = {}, G = {};
5742
+ async function Wl() {
5737
5743
  {
5738
5744
  const e = {
5739
5745
  schemaMap: Pn,
5740
- propertyConfigSchemaMap: _o,
5741
- propertyEffectMap: $o,
5742
- schemaResolverMap: Ao
5746
+ propertyConfigSchemaMap: zo,
5747
+ propertyEffectMap: Uo,
5748
+ schemaResolverMap: _o
5743
5749
  };
5744
- zi.register(_, U, z, G), Ui.register(_, U, z, G), Hi.register(_, U, z, G, e), Gi.register(_, U, z, G), qi.register(_, U, z, G), St.register(_, U, z, G), Wi.register(_, U, z, G, e), Yi.register(_, U, z, G), Tn.register(_, U, z, G, e), Sn.register(_, U, z, G, e), Tn.register(_, U, z, G, e), Sn.register(_, U, z, G, e), Xi.register(_, U, z, G, e), Qi.register(_, U, z, G, e), Ji.register(_, U, z, G), Ki.register(_, U, z, G, e), er.register(_, U, z, G, e), Zi.register(_, U, z, G, e), tr.register(_, U, z, G, e), nr.register(_, U, z, G, e), or.register(_, U, z, G), ir.register(_, U, z, G, e), rr.register(_, U, z, G), na.register(_, U, z, G), ar.register(_, U, z, G, e), lr.register(_, U, z, G), Xr.register(_, U, z, G), cr.register(_, U, z, G, e), ur.register(_, U, z, G, e), dr.register(_, U, z, G, e), mr.register(_, U, z, G, e), fr.register(_, U, z, G), pr.register(_, U, z, G, e), vr.register(_, U, z, G), gr.register(_, U, z, G, e), hr.register(_, U, z, G, e), yr.register(_, U, z, G, e), br.register(_, U, z, G), Cr.register(_, U, z, G, e), wr.register(_, U, z, G), Fr.register(_, U, z, G, e), Tr.register(_, U, z, G, e), Sr.register(_, U, z, G, e), xr.register(_, U, z, G, e), Er.register(_, U, z, G, e), kr.register(_, U, z, G, e), Mr.register(_, U, z, G), Ir.register(_, U, z, G, e), qr.register(_, U, z), Br.register(_, U, z, G, e), Vr.register(_, U, z, G, e), Pr.register(_, U, z, G), Rr.register(_, U, z, G, e), Or.register(_, U, z, G, e), Nr.register(_, U, z, G, e), Jr.register(_, U, z, G), Dr.register(_, U, z, G, e), jr.register(_, U, z, G, e), Lr.register(_, U, z, G), Ar.register(_, U, z, G, e), $r.register(_, U, z, G, e), _r.register(_, U, z, G, e), zr.register(_, U, z, G), Ur.register(_, U, z, G, e), Hr.register(_, U, z, G), Gr.register(_, U, z, G, e), Wr.register(_, U, z, G, e), sr.register(_, U, z, G, e), Yr.register(_, U, z, G, e), Qr.register(_, U, z, G, e), Zr.register(_, U, z, G, e), Kr.register(_, U, z, G, e), ea.register(_, U, z, G, e), ta.register(_, U, z, G, e), oa.register(_, U, z, G), ia.register(_, U, z, G, e), ra.register(_, U, z, G), aa.register(_, U, z, G), la.register(_, U, z, G), sa.register(_, U, z, G, e), ca.register(_, U, z, G, e), ua.register(_, U, z, G, e), da.register(_, U, z, G, e);
5745
- const t = window[Hl];
5750
+ Gi.register(_, U, H, G), Hi.register(_, U, H, G), qi.register(_, U, H, G, e), Wi.register(_, U, H, G), Yi.register(_, U, H, G), St.register(_, U, H, G), Xi.register(_, U, H, G, e), Qi.register(_, U, H, G), Tn.register(_, U, H, G, e), Sn.register(_, U, H, G, e), Tn.register(_, U, H, G, e), Sn.register(_, U, H, G, e), Ji.register(_, U, H, G, e), Zi.register(_, U, H, G, e), Ki.register(_, U, H, G), tr.register(_, U, H, G, e), nr.register(_, U, H, G, e), er.register(_, U, H, G, e), or.register(_, U, H, G, e), ir.register(_, U, H, G, e), rr.register(_, U, H, G), ar.register(_, U, H, G, e), lr.register(_, U, H, G), ia.register(_, U, H, G), sr.register(_, U, H, G, e), cr.register(_, U, H, G), Jr.register(_, U, H, G), dr.register(_, U, H, G, e), fr.register(_, U, H, G, e), mr.register(_, U, H, G, e), vr.register(_, U, H, G, e), pr.register(_, U, H, G), gr.register(_, U, H, G, e), hr.register(_, U, H, G), yr.register(_, U, H, G, e), br.register(_, U, H, G, e), Cr.register(_, U, H, G, e), wr.register(_, U, H, G), Fr.register(_, U, H, G, e), Tr.register(_, U, H, G), Sr.register(_, U, H, G, e), xr.register(_, U, H, G, e), Er.register(_, U, H, G, e), Ir.register(_, U, H, G, e), kr.register(_, U, H, G, e), Br.register(_, U, H, G, e), Vr.register(_, U, H, G), Mr.register(_, U, H, G, e), Yr.register(_, U, H), Pr.register(_, U, H, G, e), Rr.register(_, U, H, G, e), Or.register(_, U, H, G), Nr.register(_, U, H, G, e), Dr.register(_, U, H, G, e), jr.register(_, U, H, G, e), Kr.register(_, U, H, G), Lr.register(_, U, H, G, e), Ar.register(_, U, H, G, e), $r.register(_, U, H, G), _r.register(_, U, H, G, e), Ur.register(_, U, H, G, e), zr.register(_, U, H, G, e), Gr.register(_, U, H, G), Hr.register(_, U, H, G, e), qr.register(_, U, H, G), Wr.register(_, U, H, G, e), Xr.register(_, U, H, G, e), ur.register(_, U, H, G, e), Qr.register(_, U, H, G, e), Zr.register(_, U, H, G, e), ea.register(_, U, H, G, e), ta.register(_, U, H, G, e), na.register(_, U, H, G, e), oa.register(_, U, H, G, e), ra.register(_, U, H, G), aa.register(_, U, H, G, e), la.register(_, U, H, G), sa.register(_, U, H, G), ca.register(_, U, H, G), ua.register(_, U, H, G, e), da.register(_, U, H, G, e), fa.register(_, U, H, G, e), ma.register(_, U, H, G, e);
5751
+ const t = window[ql];
5746
5752
  if (t)
5747
5753
  for (const n in t)
5748
- t[n].createPropsResolver = gt, t[n].register(_, U, z);
5754
+ t[n].createPropsResolver = gt, t[n].register(_, U, H);
5749
5755
  }
5750
5756
  }
5751
5757
  function Yn() {
5752
- Gl();
5758
+ Wl();
5753
5759
  function e(a) {
5754
5760
  const c = _[a];
5755
5761
  if (!c)
@@ -5859,7 +5865,7 @@ function Yn() {
5859
5865
  }
5860
5866
  return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o, getMousedownFunctionName: i, getMouseupFunctionName: r };
5861
5867
  }
5862
- const ql = {
5868
+ const Yl = {
5863
5869
  /**
5864
5870
  * 显示的错误信息
5865
5871
  */
@@ -5867,9 +5873,9 @@ const ql = {
5867
5873
  type: Object,
5868
5874
  default: null
5869
5875
  }
5870
- }, Wl = /* @__PURE__ */ je({
5876
+ }, Xl = /* @__PURE__ */ Le({
5871
5877
  name: "FValidationMessage",
5872
- props: ql,
5878
+ props: Yl,
5873
5879
  emits: [],
5874
5880
  setup(e, t) {
5875
5881
  const n = x(e.errors);
@@ -5895,9 +5901,9 @@ const ql = {
5895
5901
  class: "f-feedback-message"
5896
5902
  }, [i.value])]);
5897
5903
  }
5898
- }), At = /* @__PURE__ */ je({
5904
+ }), $t = /* @__PURE__ */ Le({
5899
5905
  name: "FDynamicFormGroup",
5900
- props: _l,
5906
+ props: zl,
5901
5907
  emits: ["change", "update:modelValue", "clickLabel"],
5902
5908
  setup(e, t) {
5903
5909
  var P;
@@ -5909,7 +5915,7 @@ const ql = {
5909
5915
  getChangeFunctionName: h,
5910
5916
  getClearFunctionName: w
5911
5917
  } = Yn(), M = J(() => {
5912
- const O = {
5918
+ const N = {
5913
5919
  "form-group": !0,
5914
5920
  "farris-form-group": !0,
5915
5921
  "common-group": !0,
@@ -5917,33 +5923,33 @@ const ql = {
5917
5923
  "align-items-start": i.value.type === "textarea" || i.value.type === "rich-text-editor",
5918
5924
  "form-group--in-mobile": y
5919
5925
  };
5920
- return O["form-group--has-" + m.value] = !0, O;
5926
+ return N["form-group--has-" + m.value] = !0, N;
5921
5927
  }), k = J(() => {
5922
5928
  if (e.fill)
5923
5929
  return {
5924
5930
  maxWidth: "none"
5925
5931
  };
5926
5932
  });
5927
- function B(O, R, L) {
5928
- a.value = R !== void 0 ? R : O, t.emit("update:modelValue", a.value), t.emit("change", a.value, {
5929
- newValue: O,
5933
+ function B(N, R, L) {
5934
+ a.value = R !== void 0 ? R : N, t.emit("update:modelValue", a.value), t.emit("change", a.value, {
5935
+ newValue: N,
5930
5936
  newModelValue: R,
5931
5937
  parameters: L
5932
5938
  });
5933
5939
  }
5934
- function S(O) {
5940
+ function S(N) {
5935
5941
  return (...R) => {
5936
- typeof O == "function" && O(...R);
5942
+ typeof N == "function" && N(...R);
5937
5943
  };
5938
5944
  }
5939
- function u(O) {
5945
+ function u(N) {
5940
5946
  return (R, L, Z) => {
5941
- B(R, L, Z), typeof O == "function" && O(R, L, Z);
5947
+ B(R, L, Z), typeof N == "function" && N(R, L, Z);
5942
5948
  };
5943
5949
  }
5944
5950
  const C = J(() => {
5945
- const O = i.value.type || "input-group", R = I(O), L = T(O, i.value), Z = h(O), Y = w(i.value.type);
5946
- return Y && (L[Y] = S(L[Y])), Z && (L[Z] = u(L[Z])), (L.id == null || L.id === "") && (L.id = n.value), O === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (L.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (L.onEndValueChange = i.value.onEndValueChange)) : O === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? (L["onUpdate:idValue"] = i.value["onUpdate:idValue"], L.id = n.value) : O === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? L.onSelectionChange = i.value.onSelectionChange : O === "property-editor" && (L.onBeforeOpenVariables = i.value.onBeforeOpenVariables), (O === "lookup" || O === "combo-list" || O === "date-picker") && (L.title = r.value), () => g(R, _t({
5951
+ const N = i.value.type || "input-group", R = I(N), L = T(N, i.value), Z = h(N), Y = w(i.value.type);
5952
+ return Y && (L[Y] = S(L[Y])), Z && (L[Z] = u(L[Z])), (L.id == null || L.id === "") && (L.id = n.value), N === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (L.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (L.onEndValueChange = i.value.onEndValueChange)) : N === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? (L["onUpdate:idValue"] = i.value["onUpdate:idValue"], L.id = n.value) : N === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? L.onSelectionChange = i.value.onSelectionChange : N === "property-editor" && (L.onBeforeOpenVariables = i.value.onBeforeOpenVariables), (N === "lookup" || N === "combo-list" || N === "date-picker") && (L.title = r.value), () => g(R, Ut({
5947
5953
  ref: d
5948
5954
  }, L, {
5949
5955
  modelValue: a.value,
@@ -5951,17 +5957,17 @@ const ql = {
5951
5957
  }), t.slots);
5952
5958
  });
5953
5959
  function v() {
5954
- return g(Wl, {
5960
+ return g(Xl, {
5955
5961
  id: `${n.value}-validation-message`,
5956
5962
  errors: p.value
5957
5963
  }, null);
5958
5964
  }
5959
- Ee([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([O, R, L, Z, Y, $, A, oe, W, Q]) => {
5965
+ Ee([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([N, R, L, Z, Y, $, A, oe, W, Q]) => {
5960
5966
  var ge;
5961
- n.value = O, o.value = R, i.value = L, r.value = Z, a.value = Y, c.value = $, l.value = ((ge = i.value) == null ? void 0 : ge.required) || A, s.value = oe, f.value = W, p.value = Q;
5967
+ n.value = N, o.value = R, i.value = L, r.value = Z, a.value = Y, c.value = $, l.value = ((ge = i.value) == null ? void 0 : ge.required) || A, s.value = oe, f.value = W, p.value = Q;
5962
5968
  });
5963
- function F(O) {
5964
- t.emit("clickLabel", O);
5969
+ function F(N) {
5970
+ t.emit("clickLabel", N);
5965
5971
  }
5966
5972
  return t.expose({
5967
5973
  editorRef: d
@@ -5974,7 +5980,7 @@ const ql = {
5974
5980
  style: k.value
5975
5981
  }, [g("div", {
5976
5982
  class: M.value
5977
- }, [t.slots.label ? t.slots.label() : g(zl, {
5983
+ }, [t.slots.label ? t.slots.label() : g(Gl, {
5978
5984
  id: `${n.value}-lable`,
5979
5985
  showType: b.value,
5980
5986
  required: l.value,
@@ -5984,7 +5990,7 @@ const ql = {
5984
5990
  onClickLabel: F
5985
5991
  }, null), g("div", {
5986
5992
  class: "farris-input-wrap"
5987
- }, [t.slots.content ? t.slots.content() : C.value(), v()]), !!e.enableTips && g(fa, null, {
5993
+ }, [t.slots.content ? t.slots.content() : C.value(), v()]), !!e.enableTips && g(pa, null, {
5988
5994
  default: () => [g("span", {
5989
5995
  class: "farris-label-tips ml-1"
5990
5996
  }, [g("i", {
@@ -5993,7 +5999,7 @@ const ql = {
5993
5999
  contentTemplate: e.tipsContent
5994
6000
  })])])]);
5995
6001
  }
5996
- }), Yl = {
6002
+ }), Ql = {
5997
6003
  id: { type: String, default: "" },
5998
6004
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
5999
6005
  editor: { type: Object, default: {} },
@@ -6007,9 +6013,9 @@ const ql = {
6007
6013
  * 作为内嵌编辑器被创建后默认选中文本
6008
6014
  */
6009
6015
  selectOnCreated: { type: Boolean, default: !1 }
6010
- }, kn = /* @__PURE__ */ je({
6016
+ }, kn = /* @__PURE__ */ Le({
6011
6017
  name: "FDynamicFormInput",
6012
- props: Yl,
6018
+ props: Ql,
6013
6019
  emits: ["change", "update:modelValue", "mousedown", "mouseup"],
6014
6020
  setup(e, t) {
6015
6021
  const n = x(e.id), o = x(e.editor), i = x(e.modelValue), {
@@ -6054,7 +6060,7 @@ const ql = {
6054
6060
  const B = l(o.value.type);
6055
6061
  w[B] = p;
6056
6062
  const S = s(o.value.type);
6057
- return w[S] = y, w.id = n.value, () => g(h, _t(w, {
6063
+ return w[S] = y, w.id = n.value, () => g(h, Ut(w, {
6058
6064
  modelValue: i.value,
6059
6065
  "onUpdate:modelValue": (u) => i.value = u
6060
6066
  }), null);
@@ -6064,15 +6070,15 @@ const ql = {
6064
6070
  }), () => I.value();
6065
6071
  }
6066
6072
  });
6067
- Ot.install = (e) => {
6068
- e.component(In.name, In).component(kn.name, kn).component(Ot.name, Ot).component(At.name, At);
6073
+ Nt.install = (e) => {
6074
+ e.component(In.name, In).component(kn.name, kn).component(Nt.name, Nt).component($t.name, $t);
6069
6075
  };
6070
- const Xl = /* @__PURE__ */ je({
6076
+ const Jl = /* @__PURE__ */ Le({
6071
6077
  name: "FEntityBindingSelector",
6072
- props: Na,
6078
+ props: ja,
6073
6079
  emits: ["submit", "cancel"],
6074
6080
  setup(e, t) {
6075
- const n = ol(e), {
6081
+ const n = rl(e), {
6076
6082
  entityColumns: o,
6077
6083
  entityTreeGridRef: i,
6078
6084
  entityDataSource: r,
@@ -6120,15 +6126,15 @@ const Xl = /* @__PURE__ */ je({
6120
6126
  function P() {
6121
6127
  e.bindingEntityId && (s != null && s.value) && (S.value = s.value.name), e.componentType || (B.value = f.value ? "response-form" : "data-grid");
6122
6128
  }
6123
- function O() {
6129
+ function N() {
6124
6130
  const Q = a();
6125
6131
  Q && (y(Q), b.value.updateDataSource(m.value));
6126
6132
  }
6127
- $t(() => {
6133
+ _t(() => {
6128
6134
  e.steps && (u.value = u.value.filter((Q) => e.steps.includes(Q.id))), v.value = u.value[0].id, c(), P();
6129
6135
  }), et(() => {
6130
6136
  var Q, ge;
6131
- i && ((Q = s.value) != null && Q.id) && i.value.selectRowById((ge = s.value) == null ? void 0 : ge.id), u.value.length === 1 && u.value[0].id === "selectFields" && O();
6137
+ i && ((Q = s.value) != null && Q.id) && i.value.selectRowById((ge = s.value) == null ? void 0 : ge.id), u.value.length === 1 && u.value[0].id === "selectFields" && N();
6132
6138
  });
6133
6139
  function R(Q) {
6134
6140
  var ge;
@@ -6201,19 +6207,19 @@ const Xl = /* @__PURE__ */ je({
6201
6207
  class: "f-section-content"
6202
6208
  }, [g("div", {
6203
6209
  class: "f-form-layout farris-form farris-form-controls-inline"
6204
- }, [g(At, {
6210
+ }, [g($t, {
6205
6211
  label: "组件类型",
6206
6212
  customClass: "col-12",
6207
6213
  modelValue: B.value,
6208
- "onUpdate:modelValue": (pe) => B.value = pe,
6214
+ "onUpdate:modelValue": (me) => B.value = me,
6209
6215
  required: "true",
6210
6216
  editor: Q,
6211
6217
  onChange: R
6212
- }, null), g(At, {
6218
+ }, null), g($t, {
6213
6219
  label: "组件标题",
6214
6220
  customClass: "col-12",
6215
6221
  modelValue: S.value,
6216
- "onUpdate:modelValue": (pe) => S.value = pe,
6222
+ "onUpdate:modelValue": (me) => S.value = me,
6217
6223
  required: "true",
6218
6224
  editor: ge
6219
6225
  }, null)])])])])]);
@@ -6225,7 +6231,7 @@ const Xl = /* @__PURE__ */ je({
6225
6231
  var Q;
6226
6232
  switch (v.value) {
6227
6233
  case "selectEntity": {
6228
- O();
6234
+ N();
6229
6235
  break;
6230
6236
  }
6231
6237
  case "selectComponentType": {
@@ -6247,13 +6253,13 @@ const Xl = /* @__PURE__ */ je({
6247
6253
  t.emit("cancel");
6248
6254
  }
6249
6255
  function W() {
6250
- var pe;
6256
+ var me;
6251
6257
  const Q = a(), ge = h();
6252
6258
  if (Q) {
6253
6259
  const re = {
6254
6260
  bindingType: "entity"
6255
6261
  };
6256
- re.bindingEntity = Q, re.bindTo = n.entityBindToMap.get(((pe = re.bindingEntity) == null ? void 0 : pe.label) || ""), re.bindingEntityFields = ge, re.entityTitle = S.value, t.emit("submit", {
6262
+ re.bindingEntity = Q, re.bindTo = n.entityBindToMap.get(((me = re.bindingEntity) == null ? void 0 : me.label) || ""), re.bindingEntityFields = ge, re.entityTitle = S.value, t.emit("submit", {
6257
6263
  bindingContext: re,
6258
6264
  componentType: B.value
6259
6265
  });
@@ -6294,7 +6300,7 @@ const Xl = /* @__PURE__ */ je({
6294
6300
  };
6295
6301
  }
6296
6302
  });
6297
- function Ql(e, t) {
6303
+ function Zl(e, t) {
6298
6304
  let n;
6299
6305
  function o(l) {
6300
6306
  var m, b, T, I, h, w;
@@ -6325,7 +6331,7 @@ function Ql(e, t) {
6325
6331
  } = t, {
6326
6332
  componentType: f
6327
6333
  } = e.schema, d = s.getViewModelIdByComponentId(e.componentInstance.value.belongedComponentId), p = l.getTableInfoByViewModelId(d), y = p == null ? void 0 : p.id, m = ["selectFields"];
6328
- return () => g(Ke, null, [g(Xl, {
6334
+ return () => g(Ke, null, [g(Jl, {
6329
6335
  componentType: f,
6330
6336
  bindingEntityId: y,
6331
6337
  steps: m,
@@ -6353,11 +6359,11 @@ function Ql(e, t) {
6353
6359
  addSiblingComponent: c
6354
6360
  };
6355
6361
  }
6356
- const Jl = {
6362
+ const Kl = {
6357
6363
  componentId: { type: String, default: "" },
6358
6364
  designerHostService: { type: Object, default: {} }
6359
6365
  };
6360
- function Zl(e = {}) {
6366
+ function es(e = {}) {
6361
6367
  function t(s, f, d, p) {
6362
6368
  if (typeof d == "number")
6363
6369
  return p[s].length === d;
@@ -6411,30 +6417,30 @@ function Zl(e = {}) {
6411
6417
  }
6412
6418
  return { parseValueSchema: l };
6413
6419
  }
6414
- const Kl = {
6420
+ const ts = {
6415
6421
  convertTo: (e, t, n, o) => {
6416
6422
  e.appearance || (e.appearance = {}), e.appearance[t] = n;
6417
6423
  },
6418
6424
  convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
6419
- }, es = {
6425
+ }, ns = {
6420
6426
  convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
6421
- }, ts = {
6427
+ }, os = {
6422
6428
  convertTo: (e, t, n, o) => {
6423
6429
  e.editor && (e.editor[t] = n);
6424
6430
  },
6425
6431
  convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
6426
- }, ns = {
6432
+ }, is = {
6427
6433
  convertFrom: (e, t, n) => {
6428
6434
  var i;
6429
6435
  const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
6430
6436
  return ((i = ot[o]) == null ? void 0 : i.name) || o;
6431
6437
  }
6432
- }, os = {
6438
+ }, rs = {
6433
6439
  convertTo: (e, t, n, o) => {
6434
6440
  e[t] = e[t];
6435
6441
  },
6436
6442
  convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
6437
- }, is = {
6443
+ }, as = {
6438
6444
  convertTo: (e, t, n, o) => {
6439
6445
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
6440
6446
  [t]: n
@@ -6465,7 +6471,7 @@ const Kl = {
6465
6471
  }
6466
6472
  return "none";
6467
6473
  }
6468
- }, rs = {
6474
+ }, ls = {
6469
6475
  convertTo: (e, t, n, o) => {
6470
6476
  e.command ? e.command[t] = n : e.command = {
6471
6477
  [t]: n
@@ -6518,7 +6524,7 @@ const Kl = {
6518
6524
  }
6519
6525
  return "";
6520
6526
  }
6521
- }, as = {
6527
+ }, ss = {
6522
6528
  convertTo: (e, t, n, o) => {
6523
6529
  if (e.column || (e.column = {}), t === "fitMode") {
6524
6530
  n && n !== "none" ? (e.column.fitColumns = !0, e.column.fitMode = n) : (e.column.fitColumns = !1, e.column.fitMode = "average");
@@ -6539,7 +6545,7 @@ const Kl = {
6539
6545
  }
6540
6546
  return t === "fitMode" ? "none" : "";
6541
6547
  }
6542
- }, ls = {
6548
+ }, cs = {
6543
6549
  convertTo: (e, t, n, o) => {
6544
6550
  e.summary ? e.summary[t] = n : e.summary = {
6545
6551
  [t]: n
@@ -6552,7 +6558,7 @@ const Kl = {
6552
6558
  var o, i;
6553
6559
  return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((o = e.summary) == null ? void 0 : o[t]) || "bottom" : t === "customRender" ? ((i = e.summary) == null ? void 0 : i[t]) || "" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
6554
6560
  }
6555
- }, ss = {
6561
+ }, us = {
6556
6562
  convertTo: (e, t, n, o) => {
6557
6563
  e.group ? e.group[t] = n : e.group = {
6558
6564
  [t]: n
@@ -6575,7 +6581,7 @@ const Kl = {
6575
6581
  return e.group.groupFields;
6576
6582
  }
6577
6583
  }
6578
- }, cs = {
6584
+ }, ds = {
6579
6585
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
6580
6586
  convertTo: (e, t, n) => {
6581
6587
  if (n && n.length > 0) {
@@ -6583,7 +6589,7 @@ const Kl = {
6583
6589
  e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
6584
6590
  }
6585
6591
  }
6586
- }, us = {
6592
+ }, fs = {
6587
6593
  convertTo: (e, t, n, o) => {
6588
6594
  if (e.pagination || (e.pagination = {}), t === "sizeLimits")
6589
6595
  if (n == null)
@@ -6601,12 +6607,12 @@ const Kl = {
6601
6607
  var o;
6602
6608
  return e.pagination ? t === "sizeLimits" ? ((o = e.pagination.sizeLimits) == null ? void 0 : o.join(",")) ?? "" : e.pagination[t] : e[t];
6603
6609
  }
6604
- }, ds = {
6610
+ }, ms = {
6605
6611
  convertTo: (e, t, n, o) => {
6606
6612
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
6607
6613
  },
6608
6614
  convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
6609
- }, fs = {
6615
+ }, ps = {
6610
6616
  convertTo: (e, t, n, o) => {
6611
6617
  e.selection || (e.selection = {}), e.selection[t] = n;
6612
6618
  },
@@ -6616,24 +6622,24 @@ const Kl = {
6616
6622
  const o = !!e.selection[t];
6617
6623
  return t === "showCheckbox" && o == null && e.selection.multiSelect === !0 ? !0 : o;
6618
6624
  }
6619
- }, ms = {
6625
+ }, vs = {
6620
6626
  convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
6621
- }, ps = {
6627
+ }, gs = {
6622
6628
  convertFrom: (e, t) => e[t] || "",
6623
6629
  convertTo: (e, t, n) => {
6624
6630
  e[t] = n;
6625
6631
  }
6626
- }, vs = {
6632
+ }, hs = {
6627
6633
  convertTo: (e, t, n, o) => {
6628
6634
  e.size || (e.size = {}), e.size[t] = n;
6629
6635
  },
6630
6636
  convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
6631
- }, gs = {
6637
+ }, ys = {
6632
6638
  convertFrom: (e, t, n) => {
6633
6639
  var o, i;
6634
6640
  return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (i = e.formatter) == null ? void 0 : i.data : e.formatterEnumData;
6635
6641
  }
6636
- }, hs = {
6642
+ }, bs = {
6637
6643
  convertTo: (e, t, n, o) => {
6638
6644
  e.sort || (e.sort = {}), e.sort[t] = n;
6639
6645
  },
@@ -6644,7 +6650,7 @@ const Kl = {
6644
6650
  if (t === "multiSort")
6645
6651
  return !!((i = e.sort) != null && i.multiSort);
6646
6652
  }
6647
- }, ys = {
6653
+ }, Cs = {
6648
6654
  convertTo: (e, t, n, o) => {
6649
6655
  e.filter || (e.filter = {}), e.filter[t] = n, t === "enable" && (e.enableFilter = !1);
6650
6656
  },
@@ -6652,7 +6658,7 @@ const Kl = {
6652
6658
  var o, i, r, a;
6653
6659
  return t === "mode" ? ((o = e.filter) == null ? void 0 : o.mode) || "server" : t === "filterStyle" ? ((i = e.filter) == null ? void 0 : i.filterStyle) || "filter-column" : t === "enable" ? ((r = e.filter) == null ? void 0 : r.enable) !== void 0 ? !!e.filter.enable : !!e.enableFilter : ((a = e.filter) == null ? void 0 : a[t]) || void 0;
6654
6660
  }
6655
- }, bs = {
6661
+ }, ws = {
6656
6662
  convertTo: (e, t, n, o) => {
6657
6663
  e.rowOption ? e.rowOption[t] = n : e.rowOption = {
6658
6664
  [t]: n
@@ -6669,7 +6675,7 @@ const Kl = {
6669
6675
  }
6670
6676
  return "";
6671
6677
  }
6672
- }, Cs = {
6678
+ }, Fs = {
6673
6679
  convertTo: (e, t, n, o) => {
6674
6680
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = n, t === "columnTemplateType" && n === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
6675
6681
  <span class="f-pretend-link f-cursor-pointer"
@@ -6681,7 +6687,7 @@ const Kl = {
6681
6687
  </span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
6682
6688
  },
6683
6689
  convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
6684
- }, ws = {
6690
+ }, Ts = {
6685
6691
  convertTo: (e, t, n, o) => {
6686
6692
  e.hierarchy || (e.hierarchy = {
6687
6693
  cascadeOption: {}
@@ -6692,31 +6698,31 @@ const Kl = {
6692
6698
  return !!((i = (o = e.hierarchy) == null ? void 0 : o.cascadeOption) != null && i[t]);
6693
6699
  }
6694
6700
  };
6695
- function Fs(e, t, n) {
6701
+ function Ss(e, t, n) {
6696
6702
  const o = /* @__PURE__ */ new Map([
6697
- ["/converter/appearance.converter", Kl],
6698
- ["/converter/buttons.converter", es],
6699
- ["/converter/property-editor.converter", ts],
6700
- ["/converter/items-count.converter", ms],
6701
- ["/converter/type.converter", ns],
6702
- ["/converter/change-editor.converter", os],
6703
- ["/converter/change-formatter.converter", is],
6704
- ["/converter/column-command.converter", rs],
6705
- ["/converter/column-option.converter", as],
6706
- ["/converter/summary.converter", ls],
6707
- ["/converter/group.converter", ss],
6708
- ["/converter/form-group-label.converter", ps],
6709
- ["/converter/field-selector.converter", cs],
6710
- ["/converter/pagination.converter", us],
6711
- ["/converter/row-number.converter", ds],
6712
- ["/converter/grid-selection.converter", fs],
6713
- ["/converter/size.converter", vs],
6714
- ["/converter/change-formatter-enum.converter", gs],
6715
- ["/converter/grid-sort.converter", hs],
6716
- ["/converter/grid-filter.converter", ys],
6717
- ["/converter/row-option.converter", bs],
6718
- ["/converter/change-formatter-type.converter", Cs],
6719
- ["/converter/tree-auto-check.converter", ws]
6703
+ ["/converter/appearance.converter", ts],
6704
+ ["/converter/buttons.converter", ns],
6705
+ ["/converter/property-editor.converter", os],
6706
+ ["/converter/items-count.converter", vs],
6707
+ ["/converter/type.converter", is],
6708
+ ["/converter/change-editor.converter", rs],
6709
+ ["/converter/change-formatter.converter", as],
6710
+ ["/converter/column-command.converter", ls],
6711
+ ["/converter/column-option.converter", ss],
6712
+ ["/converter/summary.converter", cs],
6713
+ ["/converter/group.converter", us],
6714
+ ["/converter/form-group-label.converter", gs],
6715
+ ["/converter/field-selector.converter", ds],
6716
+ ["/converter/pagination.converter", fs],
6717
+ ["/converter/row-number.converter", ms],
6718
+ ["/converter/grid-selection.converter", ps],
6719
+ ["/converter/size.converter", hs],
6720
+ ["/converter/change-formatter-enum.converter", ys],
6721
+ ["/converter/grid-sort.converter", bs],
6722
+ ["/converter/grid-filter.converter", Cs],
6723
+ ["/converter/row-option.converter", ws],
6724
+ ["/converter/change-formatter-type.converter", Fs],
6725
+ ["/converter/tree-auto-check.converter", Ts]
6720
6726
  ]), i = /* @__PURE__ */ new Map([
6721
6727
  ["string", { type: "input-group", enableClear: !1 }],
6722
6728
  ["boolean", {
@@ -6742,7 +6748,7 @@ function Fs(e, t, n) {
6742
6748
  ["number", { type: "number-spinner", placeholder: "" }],
6743
6749
  ["events-editor", { type: "events-editor", hide: !0 }],
6744
6750
  ["multiLanguage", { type: "language-textbox" }]
6745
- ]), r = Zl();
6751
+ ]), r = es();
6746
6752
  function a(m, b) {
6747
6753
  return () => r.parseValueSchema(m, b);
6748
6754
  }
@@ -6758,7 +6764,7 @@ function Fs(e, t, n) {
6758
6764
  }
6759
6765
  function f(m, b, T, I, h, w = "", M = "") {
6760
6766
  return Object.keys(m).map((B) => {
6761
- const S = x(1), u = B, C = m[B], v = Object.keys(C), F = C.title, P = C.type, O = i.get(P) || { type: "input-group", enableClear: !1 }, R = C.editor ? Object.assign({}, O, C.editor) : Object.assign({}, O), L = c(v, C, b), Z = l(v, C, b);
6767
+ const S = x(1), u = B, C = m[B], v = Object.keys(C), F = C.title, P = C.type, N = i.get(P) || { type: "input-group", enableClear: !1 }, R = C.editor ? Object.assign({}, N, C.editor) : Object.assign({}, N), L = c(v, C, b), Z = l(v, C, b);
6762
6768
  R.readonly = R.readonly === void 0 ? Z() : R.readonly;
6763
6769
  const Y = C.type === "cascade" ? f(C.properties, b, T, I, h, w, M) : [], $ = !0;
6764
6770
  let A = s(C, M);
@@ -6777,7 +6783,7 @@ function Fs(e, t, n) {
6777
6783
  set(Se) {
6778
6784
  S.value += 1, A && A.convertTo ? (A.convertTo(I, B, Se, h, w), A.convertTo(T, B, Se, h, w)) : (I[B] = Se, T[B] = Se);
6779
6785
  }
6780
- }), { refreshPanelAfterChanged: W, description: Q, isExpand: ge, parentPropertyID: pe } = C, re = { propertyID: u, propertyName: F, propertyType: P, propertyValue: oe, editor: R, visible: L, readonly: Z, cascadeConfig: Y, hideCascadeTitle: $, refreshPanelAfterChanged: W, description: Q, isExpand: ge, parentPropertyID: pe };
6786
+ }), { refreshPanelAfterChanged: W, description: Q, isExpand: ge, parentPropertyID: me } = C, re = { propertyID: u, propertyName: F, propertyType: P, propertyValue: oe, editor: R, visible: L, readonly: Z, cascadeConfig: Y, hideCascadeTitle: $, refreshPanelAfterChanged: W, description: Q, isExpand: ge, parentPropertyID: me };
6781
6787
  return b[u] = re, re;
6782
6788
  });
6783
6789
  }
@@ -6795,8 +6801,8 @@ function Fs(e, t, n) {
6795
6801
  M && Object.keys(v.properties).forEach((R) => {
6796
6802
  v.properties[R].$converter = M;
6797
6803
  });
6798
- const P = (v == null ? void 0 : v.properties) || {}, O = f(P, u, S, k, I, h);
6799
- return { categoryId: m, categoryName: F, properties: O };
6804
+ const P = (v == null ? void 0 : v.properties) || {}, N = f(P, u, S, k, I, h);
6805
+ return { categoryId: m, categoryName: F, properties: N };
6800
6806
  }
6801
6807
  return { categoryId: m, categoryName: "", properties: [] };
6802
6808
  }
@@ -6811,8 +6817,8 @@ function Fs(e, t, n) {
6811
6817
  u.push(p(C, v, m, b, I));
6812
6818
  return;
6813
6819
  }
6814
- const F = v == null ? void 0 : v.title, P = v == null ? void 0 : v.tabId, O = v == null ? void 0 : v.tabName, R = v == null ? void 0 : v.hide, L = v == null ? void 0 : v.hideTitle, Z = f(v.properties || {}, k, M, m, b, I, v.$converter), { setPropertyRelates: Y } = v, $ = v == null ? void 0 : v.parentPropertyID;
6815
- u.push({ categoryId: C, categoryName: F, tabId: P, tabName: O, hide: R, properties: Z, hideTitle: L, setPropertyRelates: Y, parentPropertyID: $ });
6820
+ const F = v == null ? void 0 : v.title, P = v == null ? void 0 : v.tabId, N = v == null ? void 0 : v.tabName, R = v == null ? void 0 : v.hide, L = v == null ? void 0 : v.hideTitle, Z = f(v.properties || {}, k, M, m, b, I, v.$converter), { setPropertyRelates: Y } = v, $ = v == null ? void 0 : v.parentPropertyID;
6821
+ u.push({ categoryId: C, categoryName: F, tabId: P, tabName: N, hide: R, properties: Z, hideTitle: L, setPropertyRelates: Y, parentPropertyID: $ });
6816
6822
  }), u;
6817
6823
  }
6818
6824
  return [];
@@ -6823,8 +6829,8 @@ function Fs(e, t, n) {
6823
6829
  propertyConverterMap: o
6824
6830
  };
6825
6831
  }
6826
- const Ts = {}, Ss = {};
6827
- Fs(Ts, Ss, nl);
6832
+ const xs = {}, Es = {};
6833
+ Ss(xs, Es, il);
6828
6834
  const vt = class vt {
6829
6835
  /**
6830
6836
  * 根据绑定字段类型获取可用的输入类控件
@@ -6867,7 +6873,7 @@ const vt = class vt {
6867
6873
  /**
6868
6874
  * <字段类型,可配置的控件类型列表>的映射
6869
6875
  */
6870
- me(vt, "fieldControlTypeMapping", {
6876
+ fe(vt, "fieldControlTypeMapping", {
6871
6877
  String: [
6872
6878
  { key: j["input-group"].type, value: j["input-group"].name },
6873
6879
  { key: j.lookup.type, value: j.lookup.name },
@@ -6924,13 +6930,13 @@ me(vt, "fieldControlTypeMapping", {
6924
6930
  ]
6925
6931
  });
6926
6932
  let Mn = vt;
6927
- var Nt = /* @__PURE__ */ ((e) => (e.Form = "Form", e.Variable = "Variable", e))(Nt || {});
6928
- class xs {
6933
+ var Dt = /* @__PURE__ */ ((e) => (e.Form = "Form", e.Variable = "Variable", e))(Dt || {});
6934
+ class Is {
6929
6935
  constructor(t, n) {
6930
- me(this, "controlsInfo", {});
6931
- me(this, "formSchemaUtils");
6932
- me(this, "designViewModelUtils");
6933
- me(this, "viewModelId", "");
6936
+ fe(this, "controlsInfo", {});
6937
+ fe(this, "formSchemaUtils");
6938
+ fe(this, "designViewModelUtils");
6939
+ fe(this, "viewModelId", "");
6934
6940
  this.designerHostService = t, this.componentId = n, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils, this.viewModelId = this.formSchemaUtils.getViewModelIdByComponentId(this.componentId);
6935
6941
  }
6936
6942
  /**
@@ -6998,7 +7004,7 @@ class xs {
6998
7004
  */
6999
7005
  buildFieldTreeNodeFromControl(t, n, o, i, r) {
7000
7006
  let a;
7001
- return t.binding ? t.binding.type === Nt.Variable ? a = this.buildFieldTreeNodeWithBindingVariable(t) : a = this.buildFieldTreeNodeWithBindingEntityField(t, n, o, i) : a = this.buildFieldTreeNodeWithoutControlBinding(t, r), a;
7007
+ return t.binding ? t.binding.type === Dt.Variable ? a = this.buildFieldTreeNodeWithBindingVariable(t) : a = this.buildFieldTreeNodeWithBindingEntityField(t, n, o, i) : a = this.buildFieldTreeNodeWithoutControlBinding(t, r), a;
7002
7008
  }
7003
7009
  /**
7004
7010
  * 构造仅有控件,没有绑定视图模型字段的节点
@@ -7097,12 +7103,12 @@ class xs {
7097
7103
  */
7098
7104
  buildFieldTreeGroupNodeWithBindingEntityField(t, n, o, i) {
7099
7105
  let r, a;
7100
- if (t.binding && t.binding.type === Nt.Form) {
7106
+ if (t.binding && t.binding.type === Dt.Form) {
7101
7107
  const l = t.binding.field, s = n.find((f) => f.id === l);
7102
7108
  if (!s)
7103
7109
  return;
7104
7110
  r = s.groupId, a = s.groupName;
7105
- } else if (t.binding && t.binding.type === Nt.Variable) {
7111
+ } else if (t.binding && t.binding.type === Dt.Variable) {
7106
7112
  const l = t.binding.field, s = this.formSchemaUtils.getViewModelById(this.viewModelId), f = s == null ? void 0 : s.fields.find((d) => d.id === l);
7107
7113
  if (!f)
7108
7114
  return;
@@ -7157,9 +7163,9 @@ class xs {
7157
7163
  o.type === j.fieldset.type && n.push(o), o.contents ? this.getAllControlsInLayout(o.contents, n) : n.push(o);
7158
7164
  }
7159
7165
  }
7160
- const Es = /* @__PURE__ */ je({
7166
+ const ks = /* @__PURE__ */ Le({
7161
7167
  name: "FSplitterFormComponent",
7162
- props: Jl,
7168
+ props: Kl,
7163
7169
  emits: ["cancel", "submit"],
7164
7170
  setup(e, t) {
7165
7171
  const n = x(""), o = x(), i = x(e.data), r = x([{
@@ -7171,7 +7177,7 @@ const Es = /* @__PURE__ */ je({
7171
7177
  }]), {
7172
7178
  schemaService: a,
7173
7179
  formSchemaUtils: c
7174
- } = e.designerHostService, l = new pa();
7180
+ } = e.designerHostService, l = new ga();
7175
7181
  l.globalConfig = {
7176
7182
  position: "top-center"
7177
7183
  };
@@ -7187,12 +7193,12 @@ const Es = /* @__PURE__ */ je({
7187
7193
  autoCheckParent: !0
7188
7194
  }
7189
7195
  };
7190
- $t(() => {
7196
+ _t(() => {
7191
7197
  const b = c.getViewModelIdByComponentId(e.componentId), {
7192
7198
  name: T
7193
7199
  } = a.getTableInfoByViewModelId(b);
7194
7200
  n.value = T;
7195
- const I = new xs(e.designerHostService, e.componentId);
7201
+ const I = new Is(e.designerHostService, e.componentId);
7196
7202
  i.value = I.buildFieldTreeData();
7197
7203
  });
7198
7204
  function d() {
@@ -7253,11 +7259,11 @@ const Es = /* @__PURE__ */ je({
7253
7259
  class: "farris-label-text"
7254
7260
  }, [Te(" 组件标题")])]), g("div", {
7255
7261
  class: "farris-input-wrap"
7256
- }, [jt(g("input", {
7262
+ }, [Lt(g("input", {
7257
7263
  class: "form-control",
7258
7264
  type: "input",
7259
7265
  "onUpdate:modelValue": (b) => n.value = b
7260
- }, null), [[Lo, n.value]])])])])])])]), g("div", {
7266
+ }, null), [[$o, n.value]])])])])])])]), g("div", {
7261
7267
  class: "f-section pl-4 f-utils-fill"
7262
7268
  }, [g("div", {
7263
7269
  class: "f-section-header"
@@ -7267,7 +7273,7 @@ const Es = /* @__PURE__ */ je({
7267
7273
  class: "f-title-text"
7268
7274
  }, [Te(" 组件字段 ")])])]), g("div", {
7269
7275
  class: "f-section-content border f-utils-fill"
7270
- }, [g(va, {
7276
+ }, [g(ha, {
7271
7277
  key: 1,
7272
7278
  ref: o,
7273
7279
  fit: !0,
@@ -7300,7 +7306,7 @@ const Es = /* @__PURE__ */ je({
7300
7306
  }, [Te("确定")])])]);
7301
7307
  }
7302
7308
  });
7303
- function Is(e, t) {
7309
+ function Ms(e, t) {
7304
7310
  let n;
7305
7311
  const o = x(""), i = x([]), r = x([]), a = x([]), c = e.componentInstance.value.belongedComponentId;
7306
7312
  function l(u) {
@@ -7320,14 +7326,14 @@ function Is(e, t) {
7320
7326
  class: "f-section-form f-section-in-mainsubcard"
7321
7327
  },
7322
7328
  contents: []
7323
- }), P = ((R = v.contents) == null ? void 0 : R.find((L) => L.type === j["response-form"].type)) || {}, O = Kt(j["response-form"].type);
7324
- return Object.assign(O, P, {
7329
+ }), P = ((R = v.contents) == null ? void 0 : R.find((L) => L.type === j["response-form"].type)) || {}, N = Kt(j["response-form"].type);
7330
+ return Object.assign(N, P, {
7325
7331
  id: u + "-form",
7326
7332
  appearance: P.appearance ? Ze(P.appearance) : {
7327
7333
  class: "f-form-layout farris-form farris-form-controls-inline"
7328
7334
  },
7329
7335
  contents: i.value
7330
- }), F.contents = [O], [F];
7336
+ }), F.contents = [N], [F];
7331
7337
  }
7332
7338
  function f(u) {
7333
7339
  var v;
@@ -7336,7 +7342,7 @@ function Is(e, t) {
7336
7342
  const C = [];
7337
7343
  return u.states.forEach((F) => {
7338
7344
  i.value.forEach((P) => {
7339
- function O(R) {
7345
+ function N(R) {
7340
7346
  Object.keys(R).forEach((L) => {
7341
7347
  const Z = R[L];
7342
7348
  if (Z && Z.type === "Variable" && Z.field === F.id) {
@@ -7347,7 +7353,7 @@ function Is(e, t) {
7347
7353
  }
7348
7354
  });
7349
7355
  }
7350
- O(P), P.editor && O(P.editor);
7356
+ N(P), P.editor && N(P.editor);
7351
7357
  });
7352
7358
  }), C.map((F) => {
7353
7359
  F.id = F.newId, delete F.newId;
@@ -7356,8 +7362,8 @@ function Is(e, t) {
7356
7362
  function d(u, C) {
7357
7363
  const v = [];
7358
7364
  r.value.forEach((P) => {
7359
- const O = C.fields.find((R) => R.id === P);
7360
- v.push(Object.assign({}, O, {
7365
+ const N = C.fields.find((R) => R.id === P);
7366
+ v.push(Object.assign({}, N, {
7361
7367
  groupId: null,
7362
7368
  groupName: null
7363
7369
  }));
@@ -7382,12 +7388,12 @@ function Is(e, t) {
7382
7388
  const P = e.parent.parent.componentInstance.value.schema;
7383
7389
  if (!(P != null && P.contents))
7384
7390
  return;
7385
- const O = P.contents.findIndex((L) => L.component === c);
7386
- if (O > -1) {
7391
+ const N = P.contents.findIndex((L) => L.component === c);
7392
+ if (N > -1) {
7387
7393
  const {
7388
7394
  formSchemaUtils: L
7389
7395
  } = t;
7390
- L.getComponents().push(u), L.getViewModels().push(v), P.contents.splice(O + 1, 0, C);
7396
+ L.getComponents().push(u), L.getViewModels().push(v), P.contents.splice(N + 1, 0, C);
7391
7397
  }
7392
7398
  }
7393
7399
  function y() {
@@ -7397,8 +7403,8 @@ function Is(e, t) {
7397
7403
  schemaService: C,
7398
7404
  formSchemaUtils: v
7399
7405
  } = t, F = v.getViewModelIdByComponentId(c), P = v.getViewModelById(F), {
7400
- code: O
7401
- } = C.getTableInfoByViewModelId(F), R = O + "-" + Math.random().toString(36).slice(2, 6), L = Kt("component-ref");
7406
+ code: N
7407
+ } = C.getTableInfoByViewModelId(F), R = N + "-" + Math.random().toString(36).slice(2, 6), L = Kt("component-ref");
7402
7408
  Object.assign(L, {
7403
7409
  id: R + "-component-ref",
7404
7410
  component: R + "-component"
@@ -7420,7 +7426,7 @@ function Is(e, t) {
7420
7426
  formSchemaUtils: u
7421
7427
  } = t, C = e.componentInstance.value.schema, v = i.value.map((P) => P.id), F = u.selectNode(C, (P) => P.type === j["response-form"].type);
7422
7428
  F.contents.forEach((P) => {
7423
- P.type === j.fieldset.type && (P.contents = P.contents.filter((O) => !v.includes(O.id)));
7429
+ P.type === j.fieldset.type && (P.contents = P.contents.filter((N) => !v.includes(N.id)));
7424
7430
  }), F.contents = F.contents.filter((P) => !(v.includes(P.id) || P.type === j.fieldset.type && P.contents && P.contents.length === 0));
7425
7431
  }
7426
7432
  function b() {
@@ -7440,8 +7446,8 @@ function Is(e, t) {
7440
7446
  id: v,
7441
7447
  code: u.code + v.slice(0, 4),
7442
7448
  name: u.name + v.slice(0, 4)
7443
- }), O = C.getCommands().find((R) => R.id === u.cmpId);
7444
- return O && O.refedHandlers.push({
7449
+ }), N = C.getCommands().find((R) => R.id === u.cmpId);
7450
+ return N && N.refedHandlers.push({
7445
7451
  host: v,
7446
7452
  handler: u.handlerName
7447
7453
  }), F;
@@ -7465,9 +7471,9 @@ function Is(e, t) {
7465
7471
  }
7466
7472
  });
7467
7473
  });
7468
- const O = ["valueChanging", "valueChanged"];
7474
+ const N = ["valueChanging", "valueChanged"];
7469
7475
  u.fields.forEach((R) => {
7470
- O.forEach((L) => {
7476
+ N.forEach((L) => {
7471
7477
  if (R[L]) {
7472
7478
  const Z = F.commands.find((Y) => Y.code === R[L]);
7473
7479
  if (P[Z.code])
@@ -7491,13 +7497,13 @@ function Is(e, t) {
7491
7497
  const u = t == null ? void 0 : t.formSchemaUtils, C = u.getComponentById(c), v = [], F = (R, L) => {
7492
7498
  R && (Object.keys(R).forEach((Z) => {
7493
7499
  const Y = R[Z];
7494
- Y && typeof Y == "object" && Y.type === ma.Variable && a.value.includes(Y.field) && !L.includes(Y.field) && L.push(Y.field);
7500
+ Y && typeof Y == "object" && Y.type === va.Variable && a.value.includes(Y.field) && !L.includes(Y.field) && L.push(Y.field);
7495
7501
  }), R.editor && F(R.editor, L));
7496
7502
  };
7497
7503
  h(C, F, v);
7498
- const P = u.getViewModelIdByComponentId(c), O = u.getViewModelById(P);
7504
+ const P = u.getViewModelIdByComponentId(c), N = u.getViewModelById(P);
7499
7505
  a.value.forEach((R) => {
7500
- v.includes(R) || (O.states = O.states.filter((L) => L.id !== R));
7506
+ v.includes(R) || (N.states = N.states.filter((L) => L.id !== R));
7501
7507
  });
7502
7508
  }
7503
7509
  function M(u) {
@@ -7517,7 +7523,7 @@ function Is(e, t) {
7517
7523
  }
7518
7524
  function B() {
7519
7525
  if (t)
7520
- return () => g(Ke, null, [g(Es, {
7526
+ return () => g(Ke, null, [g(ks, {
7521
7527
  componentId: e.componentInstance.value.belongedComponentId,
7522
7528
  designerHostService: t,
7523
7529
  onSubmit: M,
@@ -7543,8 +7549,8 @@ function Is(e, t) {
7543
7549
  };
7544
7550
  }
7545
7551
  var pt = /* @__PURE__ */ ((e) => (e.Frame = "frame", e.dataGrid = "data-grid", e.listView = "list-view", e.form = "form", e.uploader = "uploader", e.calendar = "calendar", e.page = "page", e.table = "table", e))(pt || {});
7546
- function ks(e, t) {
7547
- const n = new Uo(), { canMove: o, canDelete: i } = n.getTemplateRule(e, t);
7552
+ function Bs(e, t) {
7553
+ const n = new Ho(), { canMove: o, canDelete: i } = n.getTemplateRule(e, t);
7548
7554
  function r() {
7549
7555
  return !1;
7550
7556
  }
@@ -7561,7 +7567,7 @@ function ks(e, t) {
7561
7567
  return " display: inherit;flex-direction: inherit;margin-bottom:10px";
7562
7568
  }
7563
7569
  function f(h) {
7564
- const w = new Ia(h, t), { schema: M } = e;
7570
+ const w = new Ma(h, t), { schema: M } = e;
7565
7571
  return w.getPropertyConfig(M);
7566
7572
  }
7567
7573
  function d() {
@@ -7572,10 +7578,10 @@ function ks(e, t) {
7572
7578
  const k = (S = e.componentInstance) == null ? void 0 : S.value.parent.schema;
7573
7579
  if ((u = k == null ? void 0 : k.toolbar) != null && u.buttons && k.toolbar.buttons.length) {
7574
7580
  k.toolbar.buttons.forEach((F) => {
7575
- const P = F.onClick, O = P && P.split(".");
7576
- if (!O || O.length < 3)
7581
+ const P = F.onClick, N = P && P.split(".");
7582
+ if (!N || N.length < 3)
7577
7583
  return;
7578
- O[O.length - 2] === M && (F.needRemove = !0);
7584
+ N[N.length - 2] === M && (F.needRemove = !0);
7579
7585
  }), k.toolbar.buttons = k.toolbar.buttons.filter((F) => !F.needRemove);
7580
7586
  const v = (C = e.componentInstance) == null ? void 0 : C.value.parent;
7581
7587
  v.parent && v.parent.updateToolbarItems && v.parent.updateToolbarItems();
@@ -7609,7 +7615,7 @@ function ks(e, t) {
7609
7615
  title: "拆分卡片",
7610
7616
  icon: "f-icon fd-i-Family fd_pc-split-card",
7611
7617
  onClick: (M) => {
7612
- Is(e, t).openSplitComponentModal(M);
7618
+ Ms(e, t).openSplitComponentModal(M);
7613
7619
  }
7614
7620
  },
7615
7621
  {
@@ -7617,7 +7623,7 @@ function ks(e, t) {
7617
7623
  title: "添加同级卡片",
7618
7624
  icon: "f-icon f-icon-plus",
7619
7625
  onClick: (M) => {
7620
- Ql(e, t).addSiblingComponent(M);
7626
+ Zl(e, t).addSiblingComponent(M);
7621
7627
  }
7622
7628
  }
7623
7629
  ), w;
@@ -7647,7 +7653,7 @@ function ks(e, t) {
7647
7653
  if (e && t) {
7648
7654
  const { formSchemaUtils: k } = t;
7649
7655
  let B = "", S = "";
7650
- const u = k.getRootViewModelId(), C = k.getComponentByViewModelId(u), v = k.selectNode(C, (P) => P.contents && P.contents.find((O) => O.component === e.schema.id));
7656
+ const u = k.getRootViewModelId(), C = k.getComponentByViewModelId(u), v = k.selectNode(C, (P) => P.contents && P.contents.find((N) => N.component === e.schema.id));
7651
7657
  (v == null ? void 0 : v.type) === ((h = ot["tab-page"]) == null ? void 0 : h.type) && ((w = v == null ? void 0 : v.contents) != null && w.length) && (B = v.title || ""), (v == null ? void 0 : v.type) === ((M = ot.section) == null ? void 0 : M.type) && (v == null ? void 0 : v.showHeader) !== !1 && (B = v.mainTitle || ""), B = B ? `${B} > ` : "", S = B ? v.id : "";
7652
7658
  const F = T();
7653
7659
  k.getControlBasicInfoMap().set(e.schema.id, {
@@ -7669,12 +7675,12 @@ function ks(e, t) {
7669
7675
  setComponentBasicInfoMap: I
7670
7676
  };
7671
7677
  }
7672
- const Ms = /* @__PURE__ */ je({
7678
+ const Vs = /* @__PURE__ */ Le({
7673
7679
  name: "FComponetDesign",
7674
- props: Ut,
7680
+ props: zt,
7675
7681
  emits: ["init", "afterViewInit"],
7676
7682
  setup(e, t) {
7677
- const n = x(), o = Dt("designer-host-service"), i = Dt("design-item-context"), r = ks(i, o), a = Nn(n, i, r), c = J(() => kt({
7683
+ const n = x(), o = jt("designer-host-service"), i = jt("design-item-context"), r = Bs(i, o), a = Nn(n, i, r), c = J(() => kt({
7678
7684
  "drag-container": !0
7679
7685
  }, e == null ? void 0 : e.customClass));
7680
7686
  return et(() => {
@@ -7687,7 +7693,7 @@ const Ms = /* @__PURE__ */ je({
7687
7693
  "data-dragref": `${i.schema.id}-container`
7688
7694
  }, [t.slots.default && t.slots.default()]);
7689
7695
  }
7690
- }), Bs = "https://json-schema.org/draft/2020-12/schema", Vs = "https://farris-design.gitee.io/component.schema.json", Ps = "component-ref", Rs = "A Farris Visual Component", Os = "object", Ns = {
7696
+ }), Ps = "https://json-schema.org/draft/2020-12/schema", Rs = "https://farris-design.gitee.io/component.schema.json", Os = "component-ref", Ns = "A Farris Visual Component", Ds = "object", js = {
7691
7697
  id: {
7692
7698
  description: "The unique identifier for a Section",
7693
7699
  type: "string"
@@ -7702,22 +7708,22 @@ const Ms = /* @__PURE__ */ je({
7702
7708
  type: "string",
7703
7709
  default: ""
7704
7710
  }
7705
- }, Ds = [
7711
+ }, Ls = [
7706
7712
  "id",
7707
7713
  "type",
7708
7714
  "component"
7709
- ], js = {
7710
- $schema: Bs,
7711
- $id: Vs,
7712
- title: Ps,
7713
- description: Rs,
7714
- type: Os,
7715
- properties: Ns,
7716
- required: Ds
7717
- }, Ls = {
7715
+ ], As = {
7716
+ $schema: Ps,
7717
+ $id: Rs,
7718
+ title: Os,
7719
+ description: Ns,
7720
+ type: Ds,
7721
+ properties: js,
7722
+ required: Ls
7723
+ }, $s = {
7718
7724
  id: { type: String },
7719
7725
  component: { type: String, default: "" }
7720
- }, As = gt(Ls, js, Ln, An), Nu = {
7726
+ }, _s = gt($s, As, Ln, An), ju = {
7721
7727
  install(e) {
7722
7728
  e.component(on.name, on);
7723
7729
  },
@@ -7725,15 +7731,15 @@ const Ms = /* @__PURE__ */ je({
7725
7731
  e.component = on, t.component = xn;
7726
7732
  },
7727
7733
  registerDesigner(e, t) {
7728
- e.component = Ms, t.component = xn, t["component-ref"] = As;
7734
+ e.component = Vs, t.component = xn, t["component-ref"] = _s;
7729
7735
  }
7730
7736
  };
7731
7737
  export {
7732
7738
  on as Component,
7733
- Ms as ComponentDesign,
7734
- Ru as componentDesignProps,
7735
- Ut as componentProps,
7736
- Nu as default,
7739
+ Vs as ComponentDesign,
7740
+ Nu as componentDesignProps,
7741
+ zt as componentProps,
7742
+ ju as default,
7737
7743
  xn as propsResolver,
7738
- ks as useDesignerRules
7744
+ Bs as useDesignerRules
7739
7745
  };