@farris/ui-vue 1.8.3 → 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 (40) 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/component/index.esm.js +880 -874
  6. package/components/component/index.umd.cjs +2 -2
  7. package/components/data-grid/index.esm.js +841 -835
  8. package/components/data-grid/index.umd.cjs +2 -2
  9. package/components/data-view/index.esm.js +14551 -14472
  10. package/components/data-view/index.umd.cjs +27 -27
  11. package/components/designer-canvas/index.esm.js +820 -814
  12. package/components/designer-canvas/index.umd.cjs +1 -1
  13. package/components/mapping-editor/index.esm.js +848 -842
  14. package/components/mapping-editor/index.umd.cjs +2 -2
  15. package/components/popover/index.esm.js +264 -243
  16. package/components/popover/index.umd.cjs +1 -1
  17. package/components/tree-grid/index.esm.js +315 -309
  18. package/components/tree-grid/index.umd.cjs +1 -1
  19. package/designer/data-grid/index.esm.js +8304 -8257
  20. package/designer/data-grid/index.umd.cjs +26 -26
  21. package/designer/farris-designer.all.esm.js +3235 -3223
  22. package/designer/farris-designer.all.umd.cjs +14 -14
  23. package/designer/radio-group/index.esm.js +80 -62
  24. package/designer/radio-group/index.umd.cjs +2 -2
  25. package/designer/tabs/index.esm.js +830 -824
  26. package/designer/tabs/index.umd.cjs +2 -2
  27. package/designer/tree-grid/index.esm.js +348 -342
  28. package/designer/tree-grid/index.umd.cjs +1 -1
  29. package/farris.all.esm.js +18917 -18820
  30. package/farris.all.umd.cjs +39 -39
  31. package/package.json +1 -1
  32. package/types/data-view/components/column-header/column-header.component.d.ts +2 -2
  33. package/types/data-view/composition/column/persist-column-widths.d.ts +15 -0
  34. package/types/data-view/composition/column/use-resize.d.ts +3 -2
  35. package/types/data-view/index.d.ts +1 -0
  36. package/types/popover/src/composition/measure-host.d.ts +10 -5
  37. package/types/popover/src/composition/types.d.ts +2 -2
  38. package/types/popover/src/composition/use-host.d.ts +1 -2
  39. package/types/radio-group/src/property-config/radio-group.property-config.d.ts +21 -0
  40. package/package.zip +0 -0
@@ -1,118 +1,118 @@
1
- var Do = Object.defineProperty;
2
- var jo = (e, t, n) => t in e ? Do(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var be = (e, t, n) => jo(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { getCustomClass as Nt, withInstall as xn, EVENT_PROPERTY_TAB_IDS as Fn, FormSchemaEntityField$Type as mn, FormSchemaEntityFieldTypeName as pn, useThirdComponent as In, isMobilePhone as Jt, getMaxZIndex as vn } from "../../components/common/index.esm.js";
5
- import $o, { tabsProps as En, tabPageProps as Pn, FTabPage as Ao } from "../../components/tabs/index.esm.js";
6
- import nn, { schemaResolver as Ho, commonToolbarItemDesignProps as _o } from "../response-toolbar/index.esm.js";
7
- import { inject as Xe, computed as D, ref as T, watch as Ce, nextTick as ke, createVNode as h, onMounted as Ke, defineComponent as je, Fragment as Tt, reactive as Zt, createApp as Mn, onUnmounted as rt, Transition as Rn, mergeProps as Lt, createTextVNode as kn, withDirectives as Kt, resolveDirective as en, onBeforeMount as zo, watchEffect as Uo, Teleport as qo, shallowRef as Bn, render as Gt, h as Wo, cloneVNode as Go, provide as gn, isVNode as Yo } from "vue";
8
- import { DgControl as kt, canvasChanged as on, refreshCanvas as Xo, useDesignerComponent as an, UseTemplateDragAndDropRules as On, setPositionForSelectedElement as Qo, setPositionOfButtonGroup as Jo, FDesignerInnerItem as Zo, useDragulaCommonRule as Ko } from "../../components/designer-canvas/index.esm.js";
9
- import { resolveAppearance as Dt, createPropsResolver as Qe, createTabsEventHandlerResolver as ei, schemaResolverMap as ti, propertyEffectMap as ni, propertyConfigSchemaMap as oi, schemaMap as ii, getPropsResolverGenerator as ai } from "../../components/dynamic-resolver/index.esm.js";
10
- import { responseToolbarProps as ri } from "../../components/response-toolbar/index.esm.js";
11
- import { isPlainObject as hn, cloneDeep as Bt, debounce as si, isUndefined as Ye, mergeWith as li, merge as ci } from "lodash-es";
12
- import ui from "../../components/capsule/index.esm.js";
13
- import { LocaleService as Le } from "../../components/locale/index.esm.js";
1
+ var $o = Object.defineProperty;
2
+ var Ao = (e, t, n) => t in e ? $o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var be = (e, t, n) => Ao(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { getCustomClass as Lt, withInstall as xn, EVENT_PROPERTY_TAB_IDS as Fn, FormSchemaEntityField$Type as mn, FormSchemaEntityFieldTypeName as pn, useThirdComponent as In, isMobilePhone as Jt, getMaxZIndex as vn } from "../../components/common/index.esm.js";
5
+ import Ho, { tabsProps as En, tabPageProps as Pn, FTabPage as _o } from "../../components/tabs/index.esm.js";
6
+ import nn, { schemaResolver as zo, commonToolbarItemDesignProps as Uo } from "../response-toolbar/index.esm.js";
7
+ import { inject as Xe, computed as D, ref as T, watch as Ce, nextTick as ke, createVNode as h, onMounted as Ke, defineComponent as $e, Fragment as Tt, reactive as Zt, createApp as Mn, onUnmounted as rt, Transition as Rn, mergeProps as Dt, createTextVNode as kn, withDirectives as Kt, resolveDirective as en, onBeforeMount as qo, watchEffect as Wo, Teleport as Go, shallowRef as Bn, render as Gt, h as Yo, cloneVNode as Xo, provide as gn, isVNode as Qo } from "vue";
8
+ import { DgControl as Bt, canvasChanged as on, refreshCanvas as Jo, useDesignerComponent as an, UseTemplateDragAndDropRules as On, setPositionForSelectedElement as Zo, setPositionOfButtonGroup as Ko, FDesignerInnerItem as ei, useDragulaCommonRule as ti } from "../../components/designer-canvas/index.esm.js";
9
+ import { resolveAppearance as jt, createPropsResolver as Qe, createTabsEventHandlerResolver as ni, schemaResolverMap as oi, propertyEffectMap as ii, propertyConfigSchemaMap as ai, schemaMap as ri, getPropsResolverGenerator as si } from "../../components/dynamic-resolver/index.esm.js";
10
+ import { responseToolbarProps as li } from "../../components/response-toolbar/index.esm.js";
11
+ import { isPlainObject as hn, cloneDeep as Ot, debounce as ci, isUndefined as Ye, mergeWith as ui, merge as di } from "lodash-es";
12
+ import fi from "../../components/capsule/index.esm.js";
13
+ import { LocaleService as De } from "../../components/locale/index.esm.js";
14
14
  import "bignumber.js";
15
- import { useResizeObserver as di } from "@vueuse/core";
16
- import { getHierarchyRow as fi, useIdentify as mi, useGroupData as pi, useFilter as vi, useHierarchy as gi, useLoading as hi, useDataView as yi, useSelection as bi, useSelectHierarchyItem as Ci, usePagination as wi, useDataViewContainerStyle as Ti, useCommandColumn as Si, useSettingColumn as xi, useColumn as Fi, useSort as Ii, useGroupColumn as Ei, useRow as Pi, useEdit as Mi, useVisualDataBound as Ri, useVisualDataCell as ki, useVisualDataRow as Bi, useVisualData as Oi, useCellPosition as Vi, useSidebar as Ni, useVirtualScroll as Li, useFitColumn as Di, useFilterHistory as ji, useColumnFilter as $i, useDragColumn as Ai, getColumnHeader as Hi, getSidebar as _i, getDisableMask as zi, getHorizontalScrollbar as Ui, getVerticalScrollbar as qi, getEmpty as Wi, getPagination as Gi, getSummary as Yi, ColumnSettingSolution as Xi, refreshScrollAfterDataSourceLoad as Qi, COMMAND_COLUMN_DATA_TYPE as Yt, SETTING_COLUMN_DATA_TYPE as Xt } from "../../components/data-view/index.esm.js";
17
- import { resolveField as Ji } from "../../components/common/index.esm.js/utils/resolve-field";
18
- import Zi from "../../components/input-group/index.esm.js";
15
+ import { useResizeObserver as mi } from "@vueuse/core";
16
+ import { getHierarchyRow as pi, useIdentify as vi, useGroupData as gi, useFilter as hi, useHierarchy as yi, useLoading as bi, useDataView as Ci, useSelection as wi, useSelectHierarchyItem as Ti, usePagination as Si, useDataViewContainerStyle as xi, useCommandColumn as Fi, useSettingColumn as Ii, useColumn as Ei, useSort as Pi, useGroupColumn as Mi, useRow as Ri, useEdit as ki, useVisualDataBound as Bi, useVisualDataCell as Oi, useVisualDataRow as Vi, useVisualData as Ni, useCellPosition as Li, useSidebar as Di, useVirtualScroll as ji, useFitColumn as $i, useFilterHistory as Ai, useColumnFilter as Hi, useDragColumn as _i, getColumnHeader as zi, getSidebar as Ui, getDisableMask as qi, getHorizontalScrollbar as Wi, getVerticalScrollbar as Gi, getEmpty as Yi, getPagination as Xi, getSummary as Qi, ColumnSettingSolution as Ji, refreshScrollAfterDataSourceLoad as Zi, COMMAND_COLUMN_DATA_TYPE as Yt, SETTING_COLUMN_DATA_TYPE as Xt } from "../../components/data-view/index.esm.js";
17
+ import { resolveField as Ki } from "../../components/common/index.esm.js/utils/resolve-field";
18
+ import ea from "../../components/input-group/index.esm.js";
19
19
  import bt from "../../components/button/index.esm.js";
20
- import { loadRegister as Ki, useComponentManager as ea, useEntityState as ta, useDynamicViewUtils as na, componentMap as Qt, resolverMap as oa, componentPropsConverter as ia } from "../../components/dynamic-view/index.esm.js";
20
+ import { loadRegister as ta, useComponentManager as na, useEntityState as oa, useDynamicViewUtils as ia, componentMap as Qt, resolverMap as aa, componentPropsConverter as ra } from "../../components/dynamic-view/index.esm.js";
21
21
  import Vn from "../../components/section/index.esm.js";
22
- import aa from "../../components/accordion/index.esm.js";
23
- import ra from "../avatar/index.esm.js";
24
- import sa from "../approval-logs/index.esm.js";
25
- import la from "../button-edit/index.esm.js";
26
- import ca from "../../components/button-group/index.esm.js";
27
- import ua from "../../components/calendar/index.esm.js";
28
- import da from "../capsule/index.esm.js";
22
+ import sa from "../../components/accordion/index.esm.js";
23
+ import la from "../avatar/index.esm.js";
24
+ import ca from "../approval-logs/index.esm.js";
25
+ import ua from "../button-edit/index.esm.js";
26
+ import da from "../../components/button-group/index.esm.js";
27
+ import fa from "../../components/calendar/index.esm.js";
28
+ import ma from "../capsule/index.esm.js";
29
29
  import yn from "../checkbox/index.esm.js";
30
30
  import bn from "../checkbox-group/index.esm.js";
31
- import fa from "../../components/combo-list/index.esm.js";
32
- import ma from "../../components/combo-tree/index.esm.js";
33
- import pa from "../../components/component/index.esm.js";
34
- import va from "../../components/color-picker/index.esm.js";
35
- import ga from "../../components/content-container/index.esm.js";
36
- import ha from "../../components/table/index.esm.js";
37
- import ya from "../date-picker/index.esm.js";
38
- import ba from "../data-grid/index.esm.js";
39
- import Ca from "../../components/dropdown/index.esm.js";
40
- import wa from "../dynamic-form/index.esm.js";
41
- import Ta from "../../components/events-editor/index.esm.js";
42
- import Sa from "../../components/filter-bar/index.esm.js";
43
- import xa from "../../components/field-selector/index.esm.js";
44
- import Fa from "../../components/binding-selector/index.esm.js";
45
- import Ia from "../../components/image-cropper/index.esm.js";
46
- import Ea from "../input-group/index.esm.js";
47
- import Pa from "../../components/layout/index.esm.js";
48
- import Ma from "../../components/list-nav/index.esm.js";
49
- import Ra from "../list-view/index.esm.js";
50
- import ka from "../../components/lookup/index.esm.js";
51
- import Ba from "../../components/mapping-editor/index.esm.js";
52
- import Oa from "../nav/index.esm.js";
53
- import Va from "../../components/number-range/index.esm.js";
54
- import Na from "../number-spinner/index.esm.js";
55
- import La from "../../components/order/index.esm.js";
56
- import Da from "../../components/page-header/index.esm.js";
57
- import ja from "../../components/page-footer/index.esm.js";
58
- import $a from "../../components/pagination/index.esm.js";
59
- import Aa from "../../components/progress/index.esm.js";
60
- import Ha from "../../components/query-solution/index.esm.js";
61
- import _a from "../radio-group/index.esm.js";
62
- import za from "../rate/index.esm.js";
63
- import Ua from "../../components/response-layout/index.esm.js";
64
- import qa from "../response-layout-editor/index.esm.js";
65
- import Wa from "../../components/search-box/index.esm.js";
66
- import Ga from "../section/index.esm.js";
67
- import Ya from "../../components/smoke-detector/index.esm.js";
68
- import Xa from "../../components/splitter/index.esm.js";
69
- import Qa from "../../components/step/index.esm.js";
70
- import Ja from "../switch/index.esm.js";
71
- import Za from "../tabs/index.esm.js";
72
- import Ka from "../tags/index.esm.js";
73
- import er from "../../components/text/index.esm.js";
74
- import tr from "../time-picker/index.esm.js";
75
- import nr from "../../components/transfer/index.esm.js";
76
- import or from "../../components/tree-view/index.esm.js";
77
- import ir from "../../components/uploader/index.esm.js";
78
- import ar from "../../components/verify-detail/index.esm.js";
79
- import rr from "../../components/video/index.esm.js";
80
- import sr from "../textarea/index.esm.js";
81
- import lr from "../../components/schema-selector/index.esm.js";
82
- import cr from "../tree-grid/index.esm.js";
83
- import ur from "../../components/event-parameter/index.esm.js";
84
- import dr from "../../components/filter-condition-editor/index.esm.js";
85
- import fr from "../../components/fieldset/index.esm.js";
86
- import mr from "../../components/sort-condition-editor/index.esm.js";
87
- import pr from "../../components/menu-lookup/index.esm.js";
88
- import vr from "../drawer/index.esm.js";
89
- import gr from "../../components/json-editor/index.esm.js";
90
- import hr from "../../components/property-editor/index.esm.js";
91
- import yr from "../../components/expression-editor/index.esm.js";
92
- import br from "../../components/code-editor/index.esm.js";
93
- import Cr from "../../components/html-template/index.esm.js";
94
- import wr from "../../components/collection-property-editor/index.esm.js";
95
- import Tr from "../modal/index.esm.js";
96
- import Sr from "../../components/external-container/index.esm.js";
97
- import xr from "../../components/language-textbox/index.esm.js";
98
- import Fr from "../../components/image/index.esm.js";
99
- import Ir from "../../components/comment/index.esm.js";
100
- import Er from "../wizard/index.esm.js";
101
- import Pr from "../../components/tooltip/index.esm.js";
31
+ import pa from "../../components/combo-list/index.esm.js";
32
+ import va from "../../components/combo-tree/index.esm.js";
33
+ import ga from "../../components/component/index.esm.js";
34
+ import ha from "../../components/color-picker/index.esm.js";
35
+ import ya from "../../components/content-container/index.esm.js";
36
+ import ba from "../../components/table/index.esm.js";
37
+ import Ca from "../date-picker/index.esm.js";
38
+ import wa from "../data-grid/index.esm.js";
39
+ import Ta from "../../components/dropdown/index.esm.js";
40
+ import Sa from "../dynamic-form/index.esm.js";
41
+ import xa from "../../components/events-editor/index.esm.js";
42
+ import Fa from "../../components/filter-bar/index.esm.js";
43
+ import Ia from "../../components/field-selector/index.esm.js";
44
+ import Ea from "../../components/binding-selector/index.esm.js";
45
+ import Pa from "../../components/image-cropper/index.esm.js";
46
+ import Ma from "../input-group/index.esm.js";
47
+ import Ra from "../../components/layout/index.esm.js";
48
+ import ka from "../../components/list-nav/index.esm.js";
49
+ import Ba from "../list-view/index.esm.js";
50
+ import Oa from "../../components/lookup/index.esm.js";
51
+ import Va from "../../components/mapping-editor/index.esm.js";
52
+ import Na from "../nav/index.esm.js";
53
+ import La from "../../components/number-range/index.esm.js";
54
+ import Da from "../number-spinner/index.esm.js";
55
+ import ja from "../../components/order/index.esm.js";
56
+ import $a from "../../components/page-header/index.esm.js";
57
+ import Aa from "../../components/page-footer/index.esm.js";
58
+ import Ha from "../../components/pagination/index.esm.js";
59
+ import _a from "../../components/progress/index.esm.js";
60
+ import za from "../../components/query-solution/index.esm.js";
61
+ import Ua from "../radio-group/index.esm.js";
62
+ import qa from "../rate/index.esm.js";
63
+ import Wa from "../../components/response-layout/index.esm.js";
64
+ import Ga from "../response-layout-editor/index.esm.js";
65
+ import Ya from "../../components/search-box/index.esm.js";
66
+ import Xa from "../section/index.esm.js";
67
+ import Qa from "../../components/smoke-detector/index.esm.js";
68
+ import Ja from "../../components/splitter/index.esm.js";
69
+ import Za from "../../components/step/index.esm.js";
70
+ import Ka from "../switch/index.esm.js";
71
+ import er from "../tabs/index.esm.js";
72
+ import tr from "../tags/index.esm.js";
73
+ import nr from "../../components/text/index.esm.js";
74
+ import or from "../time-picker/index.esm.js";
75
+ import ir from "../../components/transfer/index.esm.js";
76
+ import ar from "../../components/tree-view/index.esm.js";
77
+ import rr from "../../components/uploader/index.esm.js";
78
+ import sr from "../../components/verify-detail/index.esm.js";
79
+ import lr from "../../components/video/index.esm.js";
80
+ import cr from "../textarea/index.esm.js";
81
+ import ur from "../../components/schema-selector/index.esm.js";
82
+ import dr from "../tree-grid/index.esm.js";
83
+ import fr from "../../components/event-parameter/index.esm.js";
84
+ import mr from "../../components/filter-condition-editor/index.esm.js";
85
+ import pr from "../../components/fieldset/index.esm.js";
86
+ import vr from "../../components/sort-condition-editor/index.esm.js";
87
+ import gr from "../../components/menu-lookup/index.esm.js";
88
+ import hr from "../drawer/index.esm.js";
89
+ import yr from "../../components/json-editor/index.esm.js";
90
+ import br from "../../components/property-editor/index.esm.js";
91
+ import Cr from "../../components/expression-editor/index.esm.js";
92
+ import wr from "../../components/code-editor/index.esm.js";
93
+ import Tr from "../../components/html-template/index.esm.js";
94
+ import Sr from "../../components/collection-property-editor/index.esm.js";
95
+ import xr from "../modal/index.esm.js";
96
+ import Fr from "../../components/external-container/index.esm.js";
97
+ import Ir from "../../components/language-textbox/index.esm.js";
98
+ import Er from "../../components/image/index.esm.js";
99
+ import Pr from "../../components/comment/index.esm.js";
100
+ import Mr from "../wizard/index.esm.js";
101
+ import Rr from "../../components/tooltip/index.esm.js";
102
102
  import { BaseControlProperty as Nn } from "../../components/property-panel/index.esm.js";
103
103
  import "../../components/notify/index.esm.js";
104
104
  import "../../components/collection-property-editor/index.esm.js/src/use-button-items.designer";
105
105
  const St = /* @__PURE__ */ new Map([
106
- ["appearance", Dt]
106
+ ["appearance", jt]
107
107
  ]);
108
- function Mr(e, t) {
108
+ function kr(e, t) {
109
109
  var a, r;
110
110
  if (!(t != null && t.schema))
111
111
  return;
112
112
  const n = ((r = (a = t.schema) == null ? void 0 : a.appearance) == null ? void 0 : r.class) || "", o = t.elementRef, i = window.getComputedStyle(o);
113
113
  i && i.display === "flex" && !n.includes("f-page-child-fill") && (e.appearance.class += " d-block");
114
114
  }
115
- function Rr(e, t) {
115
+ function Br(e, t) {
116
116
  var d;
117
117
  const n = Math.random().toString().slice(2, 6), o = t.parentComponentInstance, i = e.getSchemaByType("tab-page");
118
118
  i.id = `tab-page-${n}`, i.title = "标题", i.toolbar = { id: `tab-page-toolbar-${n}`, buttons: [] };
@@ -145,18 +145,18 @@ function Rr(e, t) {
145
145
  });
146
146
  const l = o.schema, c = ((d = l.appearance) == null ? void 0 : d.class) || "";
147
147
  switch (l && l.type) {
148
- case kt["splitter-pane"].type: {
148
+ case Bt["splitter-pane"].type: {
149
149
  r.appearance.class = "f-section-tabs f-section-in-main", a.appearance.class = "f-component-tabs", c.includes("f-page-child-fill") && (s.appearance.class += " f-struct-wrapper-child", r.fill = !0, a.fill = !0);
150
150
  break;
151
151
  }
152
- case kt["content-container"].type:
152
+ case Bt["content-container"].type:
153
153
  l.isLikeCardContainer && c.includes("f-struct-like-card-child-fill") && (s.appearance.class += " f-struct-wrapper-child", r.fill = !0, a.fill = !0);
154
154
  }
155
- return Mr(s, o), s;
155
+ return kr(s, o), s;
156
156
  }
157
157
  function Ln(e, t, n) {
158
158
  if (n.parentComponentInstance)
159
- return Rr(e, n);
159
+ return Br(e, n);
160
160
  {
161
161
  const i = e.getSchemaByType("tab-page");
162
162
  return t.contents = [i], t;
@@ -165,7 +165,7 @@ function Ln(e, t, n) {
165
165
  function Dn(e, t, n) {
166
166
  return t;
167
167
  }
168
- const kr = "https://json-schema.org/draft/2020-12/schema", Br = "https://farris-design.gitee.io/tabs.schema.json", Or = "tabs", Vr = "A Farris Container Component", Nr = "object", Lr = {
168
+ const Or = "https://json-schema.org/draft/2020-12/schema", Vr = "https://farris-design.gitee.io/tabs.schema.json", Nr = "tabs", Lr = "A Farris Container Component", Dr = "object", jr = {
169
169
  id: {
170
170
  description: "The unique identifier for a Tabs",
171
171
  type: "string"
@@ -227,24 +227,24 @@ const kr = "https://json-schema.org/draft/2020-12/schema", Br = "https://farris-
227
227
  type: "string",
228
228
  default: ""
229
229
  }
230
- }, Dr = [
230
+ }, $r = [
231
231
  "id",
232
232
  "type",
233
233
  "contents"
234
- ], jr = {
234
+ ], Ar = {
235
235
  onTabChange: "切换标签页事件",
236
236
  onTabRemove: "移除标签页事件",
237
237
  beforeTabSelect: "标签页选中前事件"
238
238
  }, jn = {
239
- $schema: kr,
240
- $id: Br,
241
- title: Or,
242
- description: Vr,
243
- type: Nr,
244
- properties: Lr,
245
- required: Dr,
246
- events: jr
247
- }, $r = "https://json-schema.org/draft/2020-12/schema", Ar = "https://farris-design.gitee.io/tab-toolbar.schema.json", Hr = "tab-toolbar", _r = "A Farris Toolbar Component", zr = "object", Ur = {
239
+ $schema: Or,
240
+ $id: Vr,
241
+ title: Nr,
242
+ description: Lr,
243
+ type: Dr,
244
+ properties: jr,
245
+ required: $r,
246
+ events: Ar
247
+ }, Hr = "https://json-schema.org/draft/2020-12/schema", _r = "https://farris-design.gitee.io/tab-toolbar.schema.json", zr = "tab-toolbar", Ur = "A Farris Toolbar Component", qr = "object", Wr = {
248
248
  id: {
249
249
  description: "The unique identifier for a Tab Toolbar",
250
250
  type: "string"
@@ -283,30 +283,30 @@ const kr = "https://json-schema.org/draft/2020-12/schema", Br = "https://farris-
283
283
  type: "boolean",
284
284
  default: !0
285
285
  }
286
- }, qr = [
286
+ }, Gr = [
287
287
  "id",
288
288
  "type",
289
289
  "buttons"
290
- ], Wr = {
290
+ ], Yr = {
291
291
  onClick: "点击事件"
292
- }, Gr = {
293
- $schema: $r,
294
- $id: Ar,
295
- title: Hr,
296
- description: _r,
297
- type: zr,
298
- properties: Ur,
299
- required: qr,
300
- events: Wr
301
- }, Yr = Qe(En, jn, St, Ln), $n = Object.assign({}, En, {
292
+ }, Xr = {
293
+ $schema: Hr,
294
+ $id: _r,
295
+ title: zr,
296
+ description: Ur,
297
+ type: qr,
298
+ properties: Wr,
299
+ required: Gr,
300
+ events: Yr
301
+ }, Qr = Qe(En, jn, St, Ln), $n = Object.assign({}, En, {
302
302
  componentId: { type: String, default: "" }
303
- }), Xr = Qe($n, jn, St, Ln), Qr = ei(), Jr = Qe(
304
- ri,
305
- Gr,
303
+ }), Jr = Qe($n, jn, St, Ln), Zr = ni(), Kr = Qe(
304
+ li,
305
+ Xr,
306
306
  St,
307
- Ho
307
+ zo
308
308
  );
309
- function Zr(e, t, n, o, i, a) {
309
+ function es(e, t, n, o, i, a) {
310
310
  const r = Xe("external-container-id"), {
311
311
  activeId: s,
312
312
  selectTab: l,
@@ -428,10 +428,10 @@ function Zr(e, t, n, o, i, a) {
428
428
  pageId: `${t.id}-design-item`
429
429
  }, [O(), X()]);
430
430
  }
431
- function Kr(e, t) {
431
+ function ts(e, t) {
432
432
  let n;
433
433
  function o(u) {
434
- const { properties: f, title: p, ignore: g } = u, y = g && Array.isArray(g), E = Object.keys(f).reduce((P, v) => ((!y || !g.find((S) => S === v)) && (P[v] = f[v].type === "object" && f[v].properties ? o(f[v]) : Bt(f[v].default)), P), {});
434
+ const { properties: f, title: p, ignore: g } = u, y = g && Array.isArray(g), E = Object.keys(f).reduce((P, v) => ((!y || !g.find((S) => S === v)) && (P[v] = f[v].type === "object" && f[v].properties ? o(f[v]) : Ot(f[v].default)), P), {});
435
435
  if (p && (!y || !g.find((P) => P === "id"))) {
436
436
  const P = p.toLowerCase().replace(/-/g, "_");
437
437
  E.id = `${P}_${Math.random().toString().slice(2, 6)}`;
@@ -441,7 +441,7 @@ function Kr(e, t) {
441
441
  function i(u) {
442
442
  const { properties: f, title: p, required: g } = u;
443
443
  if (g && Array.isArray(g)) {
444
- const y = g.reduce((E, P) => (E[P] = f[P].type === "object" && f[P].properties ? o(f[P]) : Bt(f[P].default), E), {});
444
+ const y = g.reduce((E, P) => (E[P] = f[P].type === "object" && f[P].properties ? o(f[P]) : Ot(f[P].default), E), {});
445
445
  if (p && g.find((E) => E === "id")) {
446
446
  const E = p.toLowerCase().replace(/-/g, "_");
447
447
  y.id = `${E}_${Math.random().toString().slice(2, 6)}`;
@@ -505,8 +505,8 @@ function Kr(e, t) {
505
505
  }
506
506
  return { getSchemaByType: a, resolveSchemaWithDefaultValue: c, resolveSchemaToProps: l, mappingSchemaToProps: s, setDesignerContext: d };
507
507
  }
508
- const es = {}, ts = {}, { getSchemaByType: An } = Kr(es, ts);
509
- function ns(e, t, n, o, i, a, r) {
508
+ const ns = {}, os = {}, { getSchemaByType: An } = ts(ns, os);
509
+ function is(e, t, n, o, i, a, r) {
510
510
  const {
511
511
  tabPages: s,
512
512
  selectTab: l,
@@ -546,7 +546,7 @@ function ns(e, t, n, o, i, a, r) {
546
546
  class: p.value,
547
547
  style: g.value,
548
548
  ref: t
549
- }, [s.value.map((E) => Zr(e, E.props, E, o, i, a)), d ? null : h("li", {
549
+ }, [s.value.map((E) => es(e, E.props, E, o, i, a)), d ? null : h("li", {
550
550
  class: "nav-item no-drag add-nav-item"
551
551
  }, [h("a", {
552
552
  class: "nav-link tabs-text-truncate",
@@ -557,7 +557,7 @@ function ns(e, t, n, o, i, a, r) {
557
557
  style: "font-size: 20px;margin: 0 auto;line-height: 24px;"
558
558
  }, null)])])])]);
559
559
  }
560
- function os(e, t, n, o, i) {
560
+ function as(e, t, n, o, i) {
561
561
  const a = T(), {
562
562
  shouldShowNavigationButtons: r
563
563
  } = n, {
@@ -591,7 +591,7 @@ function os(e, t, n, o, i) {
591
591
  }), () => h("div", {
592
592
  class: f.value,
593
593
  style: p.value
594
- }, [h(ui, {
594
+ }, [h(fi, {
595
595
  items: u.value,
596
596
  modelValue: d.value,
597
597
  "onUpdate:modelValue": (y) => d.value = y,
@@ -599,7 +599,7 @@ function os(e, t, n, o, i) {
599
599
  ref: a
600
600
  }, null)]);
601
601
  }
602
- function is(e, t, n, o) {
602
+ function rs(e, t, n, o) {
603
603
  const i = T(!1), { selectTab: a, tabPages: r, needUpdateNavigationLayout: s, activeId: l } = o, c = 4, d = D(() => ({
604
604
  btn: !0,
605
605
  "sc-nav-btn": !0,
@@ -670,7 +670,7 @@ function is(e, t, n, o) {
670
670
  scrollToSelectedTab: P
671
671
  };
672
672
  }
673
- function as(e, t) {
673
+ function ss(e, t) {
674
674
  const { tabPages: n } = t, o = T(""), i = T(!0), a = D(() => e.searchBoxVisible), r = D(() => a.value ? n.value.filter((l) => l.props.title.includes(o.value)) : n.value.slice());
675
675
  return Ce(i, (s) => {
676
676
  s || (o.value = "");
@@ -681,7 +681,7 @@ function as(e, t) {
681
681
  tabsInDropdownMenu: r
682
682
  };
683
683
  }
684
- function rs(e, t, n) {
684
+ function ls(e, t, n) {
685
685
  const o = ".farris-tab-page", { tabPages: i } = n;
686
686
  let a = -1;
687
687
  function r() {
@@ -709,10 +709,10 @@ function rs(e, t, n) {
709
709
  }
710
710
  T(0);
711
711
  var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
712
- function ss(e) {
712
+ function cs(e) {
713
713
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
714
714
  }
715
- function Et(e) {
715
+ function Pt(e) {
716
716
  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.');
717
717
  }
718
718
  var Hn = { exports: {} };
@@ -725,7 +725,7 @@ var Hn = { exports: {} };
725
725
  function r(c, d) {
726
726
  if (!i[c]) {
727
727
  if (!o[c]) {
728
- var u = typeof Et == "function" && Et;
728
+ var u = typeof Pt == "function" && Pt;
729
729
  if (!d && u) return u(c, !0);
730
730
  if (s) return s(c, !0);
731
731
  var f = new Error("Cannot find module '" + c + "'");
@@ -739,7 +739,7 @@ var Hn = { exports: {} };
739
739
  }
740
740
  return i[c].exports;
741
741
  }
742
- for (var s = typeof Et == "function" && Et, l = 0; l < a.length; l++) r(a[l]);
742
+ for (var s = typeof Pt == "function" && Pt, l = 0; l < a.length; l++) r(a[l]);
743
743
  return r;
744
744
  }
745
745
  return n;
@@ -768,7 +768,7 @@ var Hn = { exports: {} };
768
768
  function u(O, X) {
769
769
  var N = arguments.length;
770
770
  N === 1 && Array.isArray(O) === !1 && (X = O, O = []);
771
- var J, Z, ie, se, q, G, ee, Y, oe, Ie = null, we, ae, Re = !1, Ve = 0, ge, K = X || {};
771
+ var J, Z, ie, le, q, G, ee, Y, oe, Ie = null, we, re, Re = !1, Ve = 0, ve, K = X || {};
772
772
  K.moves === void 0 && (K.moves = v), K.accepts === void 0 && (K.accepts = v), K.invalid === void 0 && (K.invalid = nt), K.containers === void 0 && (K.containers = O || []), K.isContainer === void 0 && (K.isContainer = P), 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 = c.body);
773
773
  var C = r({
774
774
  containers: K.containers,
@@ -776,11 +776,11 @@ var Hn = { exports: {} };
776
776
  end: st,
777
777
  cancel: et,
778
778
  remove: ct,
779
- destroy: re,
779
+ destroy: se,
780
780
  canMove: Ee,
781
781
  dragging: !1
782
782
  });
783
- return K.removeOnSpill === !0 && C.on("over", xe).on("out", $e), w(), C;
783
+ return K.removeOnSpill === !0 && C.on("over", xe).on("out", Ae), w(), C;
784
784
  function m(I) {
785
785
  return C.containers.indexOf(I) !== -1 || K.isContainer(I);
786
786
  }
@@ -790,44 +790,44 @@ var Hn = { exports: {} };
790
790
  }
791
791
  function x(I) {
792
792
  var W = I ? "remove" : "add";
793
- g(d, W, "mousemove", ve);
793
+ g(d, W, "mousemove", pe);
794
794
  }
795
795
  function L(I) {
796
796
  var W = I ? "remove" : "add";
797
- s[W](d, "selectstart", me), s[W](d, "click", me);
797
+ s[W](d, "selectstart", fe), s[W](d, "click", fe);
798
798
  }
799
- function re() {
799
+ function se() {
800
800
  w(!0), We({});
801
801
  }
802
- function me(I) {
802
+ function fe(I) {
803
803
  we && I.preventDefault();
804
804
  }
805
805
  function Te(I) {
806
- se = I.clientX, q = I.clientY;
806
+ le = I.clientX, q = I.clientY;
807
807
  var W = y(I) !== 1 || I.metaKey || I.ctrlKey;
808
808
  if (!W) {
809
- var Q = I.target, te = he(Q);
809
+ var Q = I.target, te = ge(Q);
810
810
  te && (we = te, x(), I.type === "mousedown" && ($(Q) ? Q.focus() : I.preventDefault()));
811
811
  }
812
812
  }
813
- function ve(I) {
813
+ function pe(I) {
814
814
  if (we) {
815
815
  if (y(I) === 0) {
816
816
  We({});
817
817
  return;
818
818
  }
819
- if (!(I.clientX !== void 0 && Math.abs(I.clientX - se) <= (K.slideFactorX || 0) && I.clientY !== void 0 && Math.abs(I.clientY - q) <= (K.slideFactorY || 0))) {
819
+ if (!(I.clientX !== void 0 && Math.abs(I.clientX - le) <= (K.slideFactorX || 0) && I.clientY !== void 0 && Math.abs(I.clientY - q) <= (K.slideFactorY || 0))) {
820
820
  if (K.ignoreInputTextSelection) {
821
821
  var W = V("clientX", I) || 0, Q = V("clientY", I) || 0, te = c.elementFromPoint(W, Q);
822
822
  if ($(te))
823
823
  return;
824
824
  }
825
- var fe = we;
826
- x(!0), L(), st(), Fe(fe), l.add(Y || ie, "gu-transit"), it(), ft(), Ve = 0, ne(I);
825
+ var he = we;
826
+ x(!0), L(), st(), Fe(he), l.add(Y || ie, "gu-transit"), it(), ft(), Ve = 0, ne(I);
827
827
  }
828
828
  }
829
829
  }
830
- function he(I) {
830
+ function ge(I) {
831
831
  if (!(C.dragging && J) && !m(I)) {
832
832
  for (var W = I; R(I) && m(R(I)) === !1; )
833
833
  if (K.invalid(I, W) || (I = R(I), !I))
@@ -844,10 +844,10 @@ var Hn = { exports: {} };
844
844
  }
845
845
  }
846
846
  function Ee(I) {
847
- return !!he(I);
847
+ return !!ge(I);
848
848
  }
849
849
  function Pe(I) {
850
- var W = he(I);
850
+ var W = ge(I);
851
851
  W && Fe(W);
852
852
  }
853
853
  function Fe(I) {
@@ -867,7 +867,7 @@ var Hn = { exports: {} };
867
867
  }
868
868
  function We(I) {
869
869
  if (lt(), !!C.dragging) {
870
- var W = Y || ie, Q = V("clientX", I) || 0, te = V("clientY", I) || 0, fe = E(J, Q, te), ye = B(fe, Q, te);
870
+ var W = Y || ie, Q = V("clientX", I) || 0, te = V("clientY", I) || 0, he = E(J, Q, te), ye = B(he, Q, te);
871
871
  ye && (Y && K.copySortSource || !Y || ye !== Z) ? Je(W, ye) : K.removeOnSpill ? ct() : et();
872
872
  }
873
873
  }
@@ -883,8 +883,8 @@ var Hn = { exports: {} };
883
883
  }
884
884
  function et(I) {
885
885
  if (C.dragging) {
886
- var W = arguments.length > 0 ? I : K.revertOnSpill, Q = Y || ie, te = R(Q), fe = Me(te);
887
- fe === !1 && W && (Y ? te && te.removeChild(Y) : Z.insertBefore(Q, G)), fe || W ? C.emit("cancel", Q, Z, Z) : C.emit("drop", Q, te, Z, ee), ot();
886
+ var W = arguments.length > 0 ? I : K.revertOnSpill, Q = Y || ie, te = R(Q), he = Me(te);
887
+ he === !1 && W && (Y ? te && te.removeChild(Y) : Z.insertBefore(Q, G)), he || W ? C.emit("cancel", Q, Z, Z) : C.emit("drop", Q, te, Z, ee), ot();
888
888
  }
889
889
  }
890
890
  function ot() {
@@ -896,15 +896,15 @@ var Hn = { exports: {} };
896
896
  return W !== void 0 ? Q = W : J ? Q = ee : Q = b(Y || ie), I === Z && Q === G;
897
897
  }
898
898
  function B(I, W, Q) {
899
- for (var te = I; te && !fe(); )
899
+ for (var te = I; te && !he(); )
900
900
  te = R(te);
901
901
  return te;
902
- function fe() {
902
+ function he() {
903
903
  var ye = m(te);
904
904
  if (ye === !1)
905
905
  return !1;
906
- var Ue = Ft(te, I), De = It(te, Ue, W, Q), He = Me(te, De);
907
- return He ? !0 : K.accepts(ie, te, Z, De);
906
+ var Ne = Ft(te, I), je = Et(te, Ne, W, Q), _e = Me(te, je);
907
+ return _e ? !0 : K.accepts(ie, te, Z, je);
908
908
  }
909
909
  }
910
910
  function ne(I) {
@@ -913,30 +913,30 @@ var Hn = { exports: {} };
913
913
  I.preventDefault();
914
914
  var W = V("clientX", I) || 0, Q = V("clientY", I) || 0;
915
915
  J.style.left = W - 2 + "px", J.style.top = Q - 2 + "px";
916
- var te = Y || ie, fe = E(J, W, Q), ye = B(fe, W, Q), Ue = ye !== null && ye !== Ie;
917
- (Ue || ye === null) && (Ae(), Ie = ye, Ge()), zt(fe, Q);
918
- var De = R(te);
916
+ var te = Y || ie, he = E(J, W, Q), ye = B(he, W, Q), Ne = ye !== null && ye !== Ie;
917
+ (Ne || ye === null) && (He(), Ie = ye, ze()), It(he, Q);
918
+ var je = R(te);
919
919
  if (ye === Z && Y && !K.copySortSource) {
920
- De && De.removeChild(te);
920
+ je && je.removeChild(te);
921
921
  return;
922
922
  }
923
- var He, _e = Ft(ye, fe);
924
- if (Re = $t(_e, ye), _e !== null)
925
- He = It(ye, _e, W, Q);
923
+ var _e, Ge = Ft(ye, he);
924
+ if (Re = At(Ge, ye), Ge !== null)
925
+ _e = Et(ye, Ge, W, Q);
926
926
  else if (K.revertOnSpill === !0 && !Y)
927
- He = G, ye = Z;
927
+ _e = G, ye = Z;
928
928
  else {
929
- Y && De && De.removeChild(te), Y && ae && (ae.style.display = "none");
929
+ Y && je && je.removeChild(te), Y && re && (re.style.display = "none");
930
930
  return;
931
931
  }
932
- ae.style.display = "block", Se(He, te, Ue), He ? Ht(_e, He) : _t(ye);
933
- function Oe(Ne) {
934
- C.emit(Ne, te, Ie, Z);
932
+ re.style.display = "block", Se(_e, te, Ne), _e ? _t(Ge, _e) : zt(ye);
933
+ function Oe(Le) {
934
+ C.emit(Le, te, Ie, Z);
935
935
  }
936
- function Ge() {
937
- Ue && Oe("over");
936
+ function ze() {
937
+ Ne && Oe("over");
938
938
  }
939
- function Ae() {
939
+ function He() {
940
940
  Ie && Oe("out");
941
941
  }
942
942
  }
@@ -946,120 +946,120 @@ var Hn = { exports: {} };
946
946
  function xe(I) {
947
947
  l.rm(I, "gu-hide");
948
948
  }
949
- function $e(I) {
949
+ function Ae(I) {
950
950
  C.dragging && l.add(I, "gu-hide");
951
951
  }
952
952
  function ft() {
953
953
  J || (J = document.createElement("div"), J.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", J.innerHTML = K.getMirrorText && K.getMirrorText(ie) || "控件", l.add(J, "gu-mirror"), K.mirrorContainer.appendChild(J), g(d, "add", "mousemove", ne), l.add(K.mirrorContainer, "gu-unselectable"), C.emit("cloned", J, ie, "mirror"));
954
954
  }
955
955
  function it() {
956
- if (ae = document.createElement("div"), l.add(ae, "gu-insertion"), ie) {
956
+ if (re = document.createElement("div"), l.add(re, "gu-insertion"), ie) {
957
957
  var I = ie.getBoundingClientRect();
958
- ae.style.left = I.left + "px", ae.style.top = I.top + "px";
958
+ re.style.left = I.left + "px", re.style.top = I.top + "px";
959
959
  }
960
- Re = !1, K.mirrorContainer.appendChild(ae);
960
+ Re = !1, K.mirrorContainer.appendChild(re);
961
961
  }
962
962
  function ut() {
963
963
  J && (l.rm(K.mirrorContainer, "gu-unselectable"), g(d, "remove", "mousemove", ne), R(J).removeChild(J), J = null);
964
964
  }
965
965
  function xt() {
966
- ae && (R(ae).removeChild(ae), ae = null);
966
+ re && (R(re).removeChild(re), re = null);
967
967
  }
968
968
  function Ft(I, W) {
969
969
  for (var Q = W; Q !== I && R(Q) !== I; )
970
970
  Q = R(Q);
971
971
  return Q === d ? null : Q;
972
972
  }
973
- function $t(I, W) {
973
+ function At(I, W) {
974
974
  if (!W)
975
975
  return Re;
976
976
  var Q = I || W && W.lastElementChild;
977
977
  if (!Q)
978
978
  return !0;
979
- var te = getComputedStyle(I), fe = /^inline/.test(te.getPropertyValue("display")) || /^(left|right)$/.test(te.getPropertyValue("float"));
980
- if (fe)
979
+ var te = getComputedStyle(I), he = /^inline/.test(te.getPropertyValue("display")) || /^(left|right)$/.test(te.getPropertyValue("float"));
980
+ if (he)
981
981
  return !0;
982
982
  if (W) {
983
- var ye = getComputedStyle(W), Ue = ye.getPropertyValue("display");
984
- if (/flex$/.test(Ue)) {
985
- var De = ye.getPropertyValue("flex-direction") || "row";
986
- if (De === "row" || De === "row-reverse")
987
- return !At(W);
983
+ var ye = getComputedStyle(W), Ne = ye.getPropertyValue("display");
984
+ if (/flex$/.test(Ne)) {
985
+ var je = ye.getPropertyValue("flex-direction") || "row";
986
+ if (je === "row" || je === "row-reverse")
987
+ return !Ht(W);
988
988
  }
989
989
  return !1;
990
990
  }
991
991
  return !0;
992
992
  }
993
- function At(I) {
993
+ function Ht(I) {
994
994
  if (!I.children || !I.children.length)
995
995
  return !1;
996
996
  for (const W of Array.from(I.children)) {
997
- const te = (W.className && W.className.split(" ") || []).filter((fe) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(fe));
997
+ const te = (W.className && W.className.split(" ") || []).filter((he) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(he));
998
998
  if (!te.length)
999
999
  return !1;
1000
- for (const fe of te) {
1001
- const ye = fe.slice(fe.lastIndexOf("-") + 1);
1000
+ for (const he of te) {
1001
+ const ye = he.slice(he.lastIndexOf("-") + 1);
1002
1002
  if (parseInt(ye, 10) !== 12)
1003
1003
  return !1;
1004
1004
  }
1005
1005
  }
1006
1006
  return !0;
1007
1007
  }
1008
- function Ht(I, W) {
1008
+ function _t(I, W) {
1009
1009
  const Q = W.getBoundingClientRect();
1010
- if (ae.style.left = Q.left + "px", ae.style.top = Q.top + "px", Re) {
1011
- if (ae.style.height = Q.height + "px", ae.style.width = "4px", I) {
1010
+ if (re.style.left = Q.left + "px", re.style.top = Q.top + "px", Re) {
1011
+ if (re.style.height = Q.height + "px", re.style.width = "4px", I) {
1012
1012
  const te = I.getBoundingClientRect();
1013
- te.top !== Q.top && (ae.style.left = te.right + "px", ae.style.top = te.top + "px", ae.style.height = te.height + "px");
1013
+ te.top !== Q.top && (re.style.left = te.right + "px", re.style.top = te.top + "px", re.style.height = te.height + "px");
1014
1014
  }
1015
- } else if (ae.style.height = "4px", ae.style.width = Q.width + "px", ge) {
1016
- const te = ge.getBoundingClientRect();
1017
- Q.top < te.top && (ae.style.display = "none");
1015
+ } else if (re.style.height = "4px", re.style.width = Q.width + "px", ve) {
1016
+ const te = ve.getBoundingClientRect();
1017
+ Q.top < te.top && (re.style.display = "none");
1018
1018
  }
1019
- W === ie && ie && (ae.style.display = "none");
1019
+ W === ie && ie && (re.style.display = "none");
1020
1020
  }
1021
- function _t(I) {
1021
+ function zt(I) {
1022
1022
  ee = null;
1023
1023
  var W = I.lastElementChild;
1024
1024
  if (W) {
1025
1025
  var Q = W.getBoundingClientRect();
1026
- Re ? (ae.style.left = Q.right + "px", ae.style.top = Q.top + "px", ae.style.height = Q.height + "px", ae.style.width = "4px") : (ae.style.left = Q.left + "px", ae.style.top = Q.bottom + "px", ae.style.height = "4px", ae.style.width = Q.width + "px"), W === ie && ie && (ae.style.display = "none");
1026
+ Re ? (re.style.left = Q.right + "px", re.style.top = Q.top + "px", re.style.height = Q.height + "px", re.style.width = "4px") : (re.style.left = Q.left + "px", re.style.top = Q.bottom + "px", re.style.height = "4px", re.style.width = Q.width + "px"), W === ie && ie && (re.style.display = "none");
1027
1027
  } else
1028
- ae.style.display = "none";
1028
+ re.style.display = "none";
1029
1029
  }
1030
- function zt(I, W) {
1031
- if (!K.mirrorContainer.contains(I) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ge = f(I), !ge || !ge.contains(I)))
1030
+ function It(I, W) {
1031
+ if (!K.mirrorContainer.contains(I) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ve = f(I), !ve || !ve.contains(I)))
1032
1032
  return;
1033
- const Q = document.querySelector(".dgComponentSelected"), te = ge.getBoundingClientRect();
1034
- if (W - 30 < te.top && ge.scrollTop > 0) {
1035
- let fe = ge.scrollTop < 10 ? ge.scrollTop : 10;
1036
- ge.scrollBy(0, -1 * fe), Q && ge.contains(Q) && (Ve = Ve + -1 * fe);
1033
+ const Q = document.querySelector(".dgComponentSelected"), te = ve.getBoundingClientRect();
1034
+ if (W - 30 < te.top && ve.scrollTop > 0) {
1035
+ let he = ve.scrollTop < 10 ? ve.scrollTop : 10;
1036
+ ve.scrollBy(0, -1 * he), Q && ve.contains(Q) && (Ve = Ve + -1 * he);
1037
1037
  }
1038
- if (W + 30 > te.bottom && ge.scrollTop < ge.scrollHeight - ge.clientHeight) {
1039
- const fe = ge.scrollHeight - ge.clientHeight - ge.scrollTop;
1040
- let ye = fe < 10 ? fe : 10;
1041
- ge.scrollBy(0, ye), Q && ge.contains(Q) && (Ve = Ve + ye);
1038
+ if (W + 30 > te.bottom && ve.scrollTop < ve.scrollHeight - ve.clientHeight) {
1039
+ const he = ve.scrollHeight - ve.clientHeight - ve.scrollTop;
1040
+ let ye = he < 10 ? he : 10;
1041
+ ve.scrollBy(0, ye), Q && ve.contains(Q) && (Ve = Ve + ye);
1042
1042
  }
1043
1043
  }
1044
- function It(I, W, Q, te) {
1045
- var fe = K.direction === "horizontal", ye = K.direction === "mixed", Ue = W !== I ? He() : De();
1046
- return Ue;
1047
- function De() {
1048
- var Oe = I.children.length, Ge, Ae, Ne;
1049
- for (Ge = 0; Ge < Oe; Ge++)
1050
- if (Ae = I.children[Ge], Ne = Ae.getBoundingClientRect(), fe && Ne.left + Ne.width / 2 > Q || !ye && !fe && Ne.top + Ne.height / 2 > te || ye && Ne.left + Ne.width > Q && Ne.top + Ne.height > te)
1051
- return Ae;
1044
+ function Et(I, W, Q, te) {
1045
+ var he = K.direction === "horizontal", ye = K.direction === "mixed", Ne = W !== I ? _e() : je();
1046
+ return Ne;
1047
+ function je() {
1048
+ var Oe = I.children.length, ze, He, Le;
1049
+ for (ze = 0; ze < Oe; ze++)
1050
+ if (He = I.children[ze], Le = He.getBoundingClientRect(), he && Le.left + Le.width / 2 > Q || !ye && !he && Le.top + Le.height / 2 > te || ye && Le.left + Le.width > Q && Le.top + Le.height > te)
1051
+ return He;
1052
1052
  return null;
1053
1053
  }
1054
- function He() {
1054
+ function _e() {
1055
1055
  var Oe = W.getBoundingClientRect();
1056
1056
  if (ye) {
1057
- var Ge = te - Oe.top, Ae = Q - Oe.left, Ne = Oe.bottom - te, mt = Oe.right - Q, pt = Math.min(Ae, mt, Ge, Ne), vt;
1058
- return Re ? vt = mt < Ae : vt = Ne === pt || mt === pt || Ae === pt, _e(vt);
1057
+ var ze = te - Oe.top, He = Q - Oe.left, Le = Oe.bottom - te, mt = Oe.right - Q, pt = Math.min(He, mt, ze, Le), vt;
1058
+ return Re ? vt = mt < He : vt = Le === pt || mt === pt || He === pt, Ge(vt);
1059
1059
  }
1060
- return _e(fe ? Q > Oe.left + S(Oe) / 2 : te > Oe.top + M(Oe) / 2);
1060
+ return Ge(he ? Q > Oe.left + S(Oe) / 2 : te > Oe.top + M(Oe) / 2);
1061
1061
  }
1062
- function _e(Oe) {
1062
+ function Ge(Oe) {
1063
1063
  return Oe ? b(W) : W;
1064
1064
  }
1065
1065
  }
@@ -1095,12 +1095,12 @@ var Hn = { exports: {} };
1095
1095
  mouseup: "pointerup",
1096
1096
  mousedown: "pointerdown",
1097
1097
  mousemove: "pointermove"
1098
- }, se = {
1098
+ }, le = {
1099
1099
  mouseup: "MSPointerUp",
1100
1100
  mousedown: "MSPointerDown",
1101
1101
  mousemove: "MSPointerMove"
1102
1102
  };
1103
- a.navigator.pointerEnabled ? s[X](O, ie[N], J) : a.navigator.msPointerEnabled ? s[X](O, se[N], J) : (s[X](O, Z[N], J), s[X](O, N, J));
1103
+ a.navigator.pointerEnabled ? s[X](O, ie[N], J) : a.navigator.msPointerEnabled ? s[X](O, le[N], J) : (s[X](O, Z[N], J), s[X](O, N, J));
1104
1104
  }
1105
1105
  function y(O) {
1106
1106
  if (O.touches !== void 0)
@@ -1457,8 +1457,8 @@ var Hn = { exports: {} };
1457
1457
  }, {}, [2])(2);
1458
1458
  });
1459
1459
  })(Hn);
1460
- var ls = Hn.exports;
1461
- const Cn = /* @__PURE__ */ ss(ls), cs = {
1460
+ var us = Hn.exports;
1461
+ const Cn = /* @__PURE__ */ cs(us), ds = {
1462
1462
  showCloseButton: { type: Boolean, default: !0 },
1463
1463
  position: { type: String, default: "top-center" },
1464
1464
  timeout: { type: Number, default: 3e3 },
@@ -1471,13 +1471,13 @@ const Cn = /* @__PURE__ */ ss(ls), cs = {
1471
1471
  animate: { type: String, default: "fadeIn" },
1472
1472
  options: { type: Object },
1473
1473
  safeHtml: { type: Boolean, default: !0 }
1474
- }, us = {
1474
+ }, fs = {
1475
1475
  showCloseButton: { type: Boolean, default: !0 },
1476
1476
  animate: { type: String, default: "fadeIn" },
1477
1477
  options: { type: Object }
1478
- }, tn = /* @__PURE__ */ je({
1478
+ }, tn = /* @__PURE__ */ $e({
1479
1479
  name: "Toast",
1480
- props: us,
1480
+ props: fs,
1481
1481
  emits: ["close", "click"],
1482
1482
  setup: (e, t) => {
1483
1483
  const n = T(e.animate), o = "fadeOut", i = D(() => e.options), a = T(!1), r = D(() => i.value.title && i.value.message), s = D(() => !i.value.title && i.value.message), l = D(() => {
@@ -1492,7 +1492,7 @@ const Cn = /* @__PURE__ */ ss(ls), cs = {
1492
1492
  "f-icon": !0
1493
1493
  };
1494
1494
  return R[M] = !0, R;
1495
- }), d = D(() => i.value.title || i.value.message), u = D(() => e.showCloseButton), f = D(() => !!i.value.buttons || !!t.slots.default), p = D(() => Le.getLocale() === "en" ? {
1495
+ }), d = D(() => i.value.title || i.value.message), u = D(() => e.showCloseButton), f = D(() => !!i.value.buttons || !!t.slots.default), p = D(() => De.getLocale() === "en" ? {
1496
1496
  wordBreak: "keep-all",
1497
1497
  overflowWrap: "break-word"
1498
1498
  } : {});
@@ -1522,7 +1522,7 @@ const Cn = /* @__PURE__ */ ss(ls), cs = {
1522
1522
  class: l.value,
1523
1523
  style: "min-height:44px"
1524
1524
  }, [u.value && h("button", {
1525
- title: Le.getLocaleValue("messageBox.close"),
1525
+ title: De.getLocaleValue("messageBox.close"),
1526
1526
  class: "toast-close f-btn-icon f-bare",
1527
1527
  onClick: g
1528
1528
  }, [h("span", {
@@ -1556,8 +1556,8 @@ const Cn = /* @__PURE__ */ ss(ls), cs = {
1556
1556
  innerHTML: i.value.message
1557
1557
  }, null))])])]);
1558
1558
  }
1559
- }), ds = ["moz", "ms", "webkit"];
1560
- function fs() {
1559
+ }), ms = ["moz", "ms", "webkit"];
1560
+ function ps() {
1561
1561
  let e = 0;
1562
1562
  return (t) => {
1563
1563
  const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), i = setTimeout(() => {
@@ -1566,15 +1566,15 @@ function fs() {
1566
1566
  return e = n + o, i;
1567
1567
  };
1568
1568
  }
1569
- function ms() {
1569
+ function vs() {
1570
1570
  if (typeof window > "u")
1571
1571
  return () => 0;
1572
1572
  if (window.requestAnimationFrame)
1573
1573
  return window.requestAnimationFrame.bind(window);
1574
- const e = ds.filter((t) => `${t}RequestAnimationFrame` in window)[0];
1575
- return e ? window[`${e}RequestAnimationFrame`] : fs();
1574
+ const e = ms.filter((t) => `${t}RequestAnimationFrame` in window)[0];
1575
+ return e ? window[`${e}RequestAnimationFrame`] : ps();
1576
1576
  }
1577
- ms();
1577
+ vs();
1578
1578
  T("");
1579
1579
  function _n() {
1580
1580
  if (typeof window > "u" || typeof navigator > "u")
@@ -1609,14 +1609,14 @@ function _n() {
1609
1609
  const o = "ontouchstart" in window || navigator.maxTouchPoints > 0, i = screen.width, a = screen.height, r = Math.min(i, a);
1610
1610
  return !!(o && r <= 768);
1611
1611
  }
1612
- function ps() {
1612
+ function gs() {
1613
1613
  const e = _n();
1614
1614
  return e && document.body.classList.add("f-mobile"), e;
1615
1615
  }
1616
- typeof document < "u" && ps();
1617
- const Pt = /* @__PURE__ */ je({
1616
+ typeof document < "u" && gs();
1617
+ const Mt = /* @__PURE__ */ $e({
1618
1618
  name: "Notify",
1619
- props: cs,
1619
+ props: ds,
1620
1620
  emits: ["close", "empty"],
1621
1621
  setup(e, t) {
1622
1622
  var y;
@@ -1669,7 +1669,7 @@ const Pt = /* @__PURE__ */ je({
1669
1669
  };
1670
1670
  }
1671
1671
  });
1672
- class vs {
1672
+ class hs {
1673
1673
  constructor() {
1674
1674
  be(this, "notifyRefs", []);
1675
1675
  be(this, "globalConfig", Zt({}));
@@ -1715,7 +1715,7 @@ class vs {
1715
1715
  name: "fade",
1716
1716
  appear: !0
1717
1717
  }, {
1718
- default: () => [h(Pt, Lt({
1718
+ default: () => [h(Mt, Dt({
1719
1719
  ref: s
1720
1720
  }, i, {
1721
1721
  onClose: l
@@ -1723,7 +1723,7 @@ class vs {
1723
1723
  });
1724
1724
  }
1725
1725
  });
1726
- return r.provide("NotifyService", this), document.body.appendChild(a), r.use(Le.i18n), r.mount(a), r;
1726
+ return r.provide("NotifyService", this), document.body.appendChild(a), r.use(De.i18n), r.mount(a), r;
1727
1727
  }
1728
1728
  getNotifyInstances(t) {
1729
1729
  return this.notifyRefs.filter((n) => n.value.notifyPosition === t);
@@ -1788,14 +1788,14 @@ class vs {
1788
1788
  }), this.notifyRefs.length = 0;
1789
1789
  }
1790
1790
  }
1791
- const gs = Symbol("NOTIFY_SERVICE_TOKEN");
1792
- Pt.install = (e) => {
1793
- e.component(Pt.name, Pt), e.component(tn.name, tn);
1794
- const t = new vs();
1795
- e.provide(gs, t), e.provide("FNotifyService", t);
1791
+ const ys = Symbol("NOTIFY_SERVICE_TOKEN");
1792
+ Mt.install = (e) => {
1793
+ e.component(Mt.name, Mt), e.component(tn.name, tn);
1794
+ const t = new hs();
1795
+ e.provide(ys, t), e.provide("FNotifyService", t);
1796
1796
  };
1797
- `${Le.getLocaleValue("datagrid.loadingMessage")}`;
1798
- const hs = {
1797
+ `${De.getLocaleValue("datagrid.loadingMessage")}`;
1798
+ const bs = {
1799
1799
  /**
1800
1800
  * 自定义样式
1801
1801
  */
@@ -2068,12 +2068,12 @@ const hs = {
2068
2068
  * 编辑单元格时默认获得焦点
2069
2069
  */
2070
2070
  focusOnEditingCell: { type: Boolean, default: !0 }
2071
- }, ys = "enum", bs = "boolean";
2072
- function Cs(e) {
2071
+ }, Cs = "enum", ws = "boolean";
2072
+ function Ts(e) {
2073
2073
  const { formatter: t } = e;
2074
2074
  return !t || typeof t == "function" ? null : t;
2075
2075
  }
2076
- function ws(e, t) {
2076
+ function Ss(e, t) {
2077
2077
  const n = t.options || t, { data: o } = n;
2078
2078
  if (!o || !o.length)
2079
2079
  return "";
@@ -2088,17 +2088,17 @@ function ws(e, t) {
2088
2088
  const r = o.find((s) => s[i] === e);
2089
2089
  return (r == null ? void 0 : r[a]) ?? (e == null ? "" : String(e));
2090
2090
  }
2091
- function Ts(e, t) {
2091
+ function xs(e, t) {
2092
2092
  if (e == null)
2093
2093
  return "";
2094
2094
  const n = t.options || t, o = e ? n == null ? void 0 : n.trueText : n == null ? void 0 : n.falseText;
2095
2095
  return o == null ? "" : String(o);
2096
2096
  }
2097
- function Ss(e, t) {
2098
- const n = Ji(t, e.field), o = Cs(e), i = o == null ? void 0 : o.type;
2099
- return i === ys ? ws(n, o) : i === bs || e.dataType === "boolean" ? Ts(n, o || {}) : n == null ? "" : String(n);
2097
+ function Fs(e, t) {
2098
+ const n = Ki(t, e.field), o = Ts(e), i = o == null ? void 0 : o.type;
2099
+ return i === Cs ? Ss(n, o) : i === ws || e.dataType === "boolean" ? xs(n, o || {}) : n == null ? "" : String(n);
2100
2100
  }
2101
- function xs(e, t, n, o, i, a, r, s, l, c, d, u, f, p, g, y, E, P, v) {
2101
+ function Is(e, t, n, o, i, a, r, s, l, c, d, u, f, p, g, y, E, P, v) {
2102
2102
  const {
2103
2103
  calculateCellPositionInRow: S
2104
2104
  } = a, {
@@ -2111,9 +2111,9 @@ function xs(e, t, n, o, i, a, r, s, l, c, d, u, f, p, g, y, E, P, v) {
2111
2111
  rightFixedGridDataStyle: j
2112
2112
  } = p, {
2113
2113
  renderDataRow: V
2114
- } = fi(e, t, M, E, s, l, c, d, u, f, p, g, y, P, v), O = [V];
2115
- function X(se, q) {
2116
- const G = S(se);
2114
+ } = pi(e, t, M, E, s, l, c, d, u, f, p, g, y, P, v), O = [V];
2115
+ function X(le, q) {
2116
+ const G = S(le);
2117
2117
  return E.value.filter((ee) => ee.visible !== !1).map((ee, Y) => O[ee.type](ee, G, q, Y));
2118
2118
  }
2119
2119
  function N() {
@@ -2123,7 +2123,7 @@ function xs(e, t, n, o, i, a, r, s, l, c, d, u, f, p, g, y, E, P, v) {
2123
2123
  }, [h("div", {
2124
2124
  class: "fv-grid-data",
2125
2125
  style: b.value
2126
- }, [X(M.value.leftColumns.filter((se) => se.visible), "left")])]);
2126
+ }, [X(M.value.leftColumns.filter((le) => le.visible), "left")])]);
2127
2127
  }
2128
2128
  function J() {
2129
2129
  return h("div", {
@@ -2132,7 +2132,7 @@ function xs(e, t, n, o, i, a, r, s, l, c, d, u, f, p, g, y, E, P, v) {
2132
2132
  }, [h("div", {
2133
2133
  class: "fv-grid-data",
2134
2134
  style: F.value
2135
- }, [X(M.value.primaryColumns.filter((se) => se.visible), "primary")])]);
2135
+ }, [X(M.value.primaryColumns.filter((le) => le.visible), "primary")])]);
2136
2136
  }
2137
2137
  function Z() {
2138
2138
  return h("div", {
@@ -2141,154 +2141,159 @@ function xs(e, t, n, o, i, a, r, s, l, c, d, u, f, p, g, y, E, P, v) {
2141
2141
  }, [h("div", {
2142
2142
  class: "fv-grid-data",
2143
2143
  style: j.value
2144
- }, [X(M.value.rightColumns.filter((se) => se.visible), "right")])]);
2144
+ }, [X(M.value.rightColumns.filter((le) => le.visible), "right")])]);
2145
2145
  }
2146
2146
  function ie() {
2147
- const se = [];
2148
- return R.value && se.push(N()), se.push(J()), $.value && se.push(Z()), se;
2147
+ const le = [];
2148
+ return R.value && le.push(N()), le.push(J()), $.value && le.push(Z()), le;
2149
2149
  }
2150
2150
  return {
2151
2151
  renderDataArea: ie
2152
2152
  };
2153
2153
  }
2154
- const Fs = /* @__PURE__ */ je({
2154
+ const Es = /* @__PURE__ */ $e({
2155
2155
  name: "FTreeGrid",
2156
- props: hs,
2156
+ props: bs,
2157
2157
  emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "selectItem", "filterChanged", "unSelectAll", "selectAll", "sortChanged", "selectionUpdate", "beginEditCell", "endEditCell"],
2158
2158
  setup(e, t) {
2159
2159
  var dn, fn;
2160
2160
  const n = T(!1), o = T(!1), i = 0, a = T(((dn = e.rowOption) == null ? void 0 : dn.height) || 28);
2161
2161
  let r = [], s = [];
2162
- const l = T(20), c = T(e.columns), d = mi(e), {
2162
+ const l = T(20), c = T(e.columns), d = vi(e), {
2163
2163
  idField: u
2164
- } = d, f = T(), p = T(), g = T(), y = T(), E = T(), P = T([]), v = T(!1), S = T(((fn = e.rowOption) == null ? void 0 : fn.wrapContent) || !1), M = pi(e, d), R = vi(e, t), $ = gi(e), {
2164
+ } = d, f = T(), p = T(), g = T(), y = T(), E = T(), P = T([]), v = T(!1), S = T(((fn = e.rowOption) == null ? void 0 : fn.wrapContent) || !1), M = gi(e, d), R = hi(e, t), $ = yi(e), {
2165
2165
  collapseField: F
2166
2166
  } = $, {
2167
2167
  showLoading: b,
2168
2168
  renderLoading: j
2169
- } = hi(e, f), V = yi(e, /* @__PURE__ */ new Map(), R, $, d), {
2169
+ } = bi(e, f), V = Ci(e, /* @__PURE__ */ new Map(), R, $, d), {
2170
2170
  dataView: O
2171
- } = V, X = bi(e, V, d, P, t), {
2171
+ } = V, X = wi(e, V, d, P, t), {
2172
2172
  showSelection: N,
2173
2173
  selectedValues: J
2174
- } = X, Z = Ci(e, P, V, d, X, t), ie = D(() => e.disabled), se = D(() => e.virtualized ? Math.min(V.dataView.value.length, l.value) : V.dataView.value.length), q = wi(e, V), {
2174
+ } = X, Z = Ti(e, P, V, d, X, t), ie = D(() => e.disabled), le = D(() => e.virtualized ? Math.min(V.dataView.value.length, l.value) : V.dataView.value.length), q = Si(e, V), {
2175
2175
  shouldRenderPagination: G
2176
2176
  } = q, {
2177
2177
  containerStyleObject: ee
2178
- } = Ti(e, P), Y = T(""), oe = T([]), Ie = D(() => e.searchable || !1), we = T(0), ae = D(() => oe.value.length ? `${we.value + 1}/${oe.value.length}` : ""), Re = D(() => Le.getRealPropertyValue(e.searchPlaceholder, "", "datagrid.search.placeholder")), Ve = D(() => Le.getLocaleValue("datagrid.search.search")), ge = D(() => Le.getLocaleValue("datagrid.search.prev")), K = D(() => Le.getLocaleValue("datagrid.search.next")), C = D(() => Le.getLocaleValue("datagrid.search.clear")), m = Si(e), {
2178
+ } = xi(e, P), Y = T(""), oe = T([]), Ie = D(() => e.searchable || !1), we = T(0), re = D(() => oe.value.length ? `${we.value + 1}/${oe.value.length}` : ""), Re = D(() => De.getRealPropertyValue(e.searchPlaceholder, "", "datagrid.search.placeholder")), Ve = D(() => De.getLocaleValue("datagrid.search.search")), ve = D(() => De.getLocaleValue("datagrid.search.prev")), K = D(() => De.getLocaleValue("datagrid.search.next")), C = D(() => De.getLocaleValue("datagrid.search.clear")), m = Fi(e), {
2179
2179
  applyCommands: w
2180
2180
  } = m;
2181
2181
  w(c);
2182
2182
  const {
2183
2183
  applyColumnSetting: x,
2184
2184
  removeColumnSetting: L
2185
- } = xi(e);
2185
+ } = Ii(e);
2186
2186
  e.showSetting && x(c);
2187
- const re = Fi(e, t), me = Ii(e), {
2187
+ const se = Ei(e, t), fe = Pi(e), {
2188
2188
  applyColumnSorter: Te,
2189
- columnContext: ve,
2190
- updateColumnRenderContext: he
2191
- } = re;
2192
- Te(V, me);
2193
- const Ee = Ei(e, ve), Pe = Pi(e, t, X, d), Fe = Mi(e, t, d, Pe, P), nt = Ri(e, V, a), st = ki(e, Fe, nt), lt = Bi(e, V, Fe, $, d, nt, st, a), We = Oi(e, c, V, se, i, lt), {
2189
+ columnContext: pe,
2190
+ updateColumnRenderContext: ge
2191
+ } = se;
2192
+ Te(V, fe);
2193
+ const Ee = Mi(e, pe), Pe = Ri(e, t, X, d), Fe = ki(e, t, d, Pe, P), nt = Bi(e, V, a), st = Oi(e, Fe, nt), lt = Vi(e, V, Fe, $, d, nt, st, a), We = Ni(e, c, V, le, i, lt), {
2194
2194
  getVisualData: Je
2195
- } = We, ct = Vi(e, ve, a, n), et = Ni(e, X), {
2195
+ } = We, ct = Li(e, pe, a, n), et = Di(e, X), {
2196
2196
  sidebarWidth: ot
2197
- } = et, Me = Li(e, V, P, ve, We, se, i, ot, a, n), {
2197
+ } = et, Me = ji(e, V, P, pe, We, le, i, ot, a, n), {
2198
2198
  onWheel: B,
2199
2199
  dataGridWidth: ne,
2200
2200
  viewPortHeight: Se,
2201
2201
  viewPortWidth: xe,
2202
- resetScroll: $e,
2202
+ resetScroll: Ae,
2203
2203
  updateVisibleRowsOnLatestVisibleScope: ft
2204
- } = Me, it = Di(e, ve, p, xe, Ee), {
2204
+ } = Me, it = $i(e, pe, p, xe, Ee), {
2205
2205
  calculateColumnsSize: ut
2206
- } = it, xt = ji(), Ft = $i(p, E, V, xt, Me), $t = Ai(e, t, re, V, Ee, M, Me), At = D(() => {
2206
+ } = it, xt = Ai(), Ft = Hi(p, E, V, xt, Me), At = _i(e, t, se, V, Ee, M, Me), Ht = D(() => {
2207
2207
  const k = {
2208
2208
  "fv-grid": !0,
2209
2209
  "fv-grid-bordered": e.showBorder,
2210
2210
  "fv-grid-horizontal-bordered": e.showHorizontalLines,
2211
2211
  "fv-datagrid-strip": e.showStripe
2212
2212
  };
2213
- return Nt(k, e.customClass);
2214
- }), Ht = D(() => ({
2213
+ return Lt(k, e.customClass);
2214
+ }), _t = D(() => ({
2215
2215
  "fv-grid-content": !0,
2216
2216
  "fv-grid-content-hover": v.value,
2217
2217
  "fv-grid-wrap-content": S.value,
2218
2218
  "fv-grid-scrollbar-visible": Me.shouldShowVirticalScrollbar.value && v.value
2219
2219
  })), {
2220
- renderDataArea: _t
2221
- } = xs(e, t, g, y, E, ct, re, V, Fe, $, Pe, X, Z, Me, We, nt, P, a, n), {
2222
- renderGridHeader: zt,
2223
- renderGridColumnResizeOverlay: It,
2224
- shouldShowHeader: Ut
2225
- } = Hi(e, t, p, y, E, re, V, $t, Ft, R, xt, it, Ee, X, et, me, Me, xe, P, o), {
2226
- renderDataGridSidebar: I
2227
- } = _i(e, Pe, X, et, Me), {
2228
- renderDisableMask: W
2229
- } = zi(), {
2230
- renderHorizontalScrollbar: Q
2231
- } = Ui(e, p, Me), {
2232
- renderVerticalScrollbar: te
2233
- } = qi(e, p, Me);
2234
- let fe = null;
2235
- function ye() {
2236
- var k, z, le;
2220
+ renderDataArea: zt
2221
+ } = Is(e, t, g, y, E, ct, se, V, Fe, $, Pe, X, Z, Me, We, nt, P, a, n), It = T(null);
2222
+ function Et(k, _) {
2223
+ var ae, ce;
2224
+ e.enableColumnSettingSolution && ((ce = (ae = It.value) == null ? void 0 : ae.persistColumnWidths) == null || ce.call(ae, _));
2225
+ }
2226
+ const {
2227
+ renderGridHeader: Ut,
2228
+ renderGridColumnResizeOverlay: I,
2229
+ shouldShowHeader: W
2230
+ } = zi(e, t, p, y, E, se, V, At, Ft, R, xt, it, Ee, X, et, fe, Me, xe, P, o, Et), {
2231
+ renderDataGridSidebar: Q
2232
+ } = Ui(e, Pe, X, et, Me), {
2233
+ renderDisableMask: te
2234
+ } = qi(), {
2235
+ renderHorizontalScrollbar: he
2236
+ } = Wi(e, p, Me), {
2237
+ renderVerticalScrollbar: ye
2238
+ } = Gi(e, p, Me);
2239
+ let Ne = null;
2240
+ function je() {
2241
+ var k, _, ae;
2237
2242
  if (p.value && p.value.clientHeight > 0 && ((k = p.value) == null ? void 0 : k.clientWidth) > 0) {
2238
- const de = Math.ceil(p.value.clientHeight / a.value);
2239
- de > l.value && (l.value = de, ft()), Se.value = ((z = g.value) == null ? void 0 : z.clientHeight) || 0, ne.value = ((le = p.value) == null ? void 0 : le.clientWidth) || 0, g.value && (xe.value = g.value.clientWidth);
2243
+ const ce = Math.ceil(p.value.clientHeight / a.value);
2244
+ ce > l.value && (l.value = ce, ft()), Se.value = ((_ = g.value) == null ? void 0 : _.clientHeight) || 0, ne.value = ((ae = p.value) == null ? void 0 : ae.clientWidth) || 0, g.value && (xe.value = g.value.clientWidth);
2240
2245
  }
2241
2246
  p.value && (p.value.clientHeight > 0 || p.value.clientWidth > 0) && ut();
2242
2247
  }
2243
- function Ue() {
2244
- fe !== null && cancelAnimationFrame(fe), fe = requestAnimationFrame(() => {
2245
- fe = null, ye();
2248
+ function _e() {
2249
+ Ne !== null && cancelAnimationFrame(Ne), Ne = requestAnimationFrame(() => {
2250
+ Ne = null, je();
2246
2251
  });
2247
2252
  }
2248
2253
  Ke(() => {
2249
- p.value && (l.value = Math.max(Math.ceil(p.value.clientHeight / a.value), l.value), P.value = Je(0, se.value + i - 1), di(p.value, Ue), ut(), ke(() => {
2254
+ p.value && (l.value = Math.max(Math.ceil(p.value.clientHeight / a.value), l.value), P.value = Je(0, le.value + i - 1), mi(p.value, _e), ut(), ke(() => {
2250
2255
  p.value && (ne.value = p.value.clientWidth), g.value && (xe.value = g.value.clientWidth, Se.value = g.value.clientHeight);
2251
2256
  })), b.value && j();
2252
2257
  }), rt(() => {
2253
- fe !== null && cancelAnimationFrame(fe);
2258
+ Ne !== null && cancelAnimationFrame(Ne);
2254
2259
  });
2255
- function De(k) {
2256
- V.collapseTo(k), V.reOrderVisibleIndex(), $e();
2260
+ function Ge(k) {
2261
+ V.collapseTo(k), V.reOrderVisibleIndex(), Ae();
2257
2262
  }
2258
- function He(k) {
2259
- V.expandTo(k), V.reOrderVisibleIndex(), $e();
2263
+ function Oe(k) {
2264
+ V.expandTo(k), V.reOrderVisibleIndex(), Ae();
2260
2265
  }
2261
- function _e() {
2266
+ function ze() {
2262
2267
  const k = X.getSelectionRow();
2263
2268
  return k ? k.dataIndex - 1 : -1;
2264
2269
  }
2265
- function Oe(k) {
2266
- const z = k !== void 0 ? k : _e(), le = V.insertNewDataItem(z === -1 ? 0 : z);
2267
- return P.value = Je(0, se.value + i - 1), le;
2270
+ function He(k) {
2271
+ const _ = k !== void 0 ? k : ze(), ae = V.insertNewDataItem(_ === -1 ? 0 : _);
2272
+ return P.value = Je(0, le.value + i - 1), ae;
2268
2273
  }
2269
- function Ge() {
2270
- const k = _e();
2271
- V.insertNewChildDataItem(k), P.value = Je(0, se.value + i - 1);
2274
+ function Le() {
2275
+ const k = ze();
2276
+ V.insertNewChildDataItem(k), P.value = Je(0, le.value + i - 1);
2272
2277
  }
2273
- function Ae(k, z) {
2274
- const le = P.value.find((ue) => ue.raw[u.value] === z), de = le ? le.dataIndex - 1 : -1;
2275
- V.insertNewChildDataItems(k, de);
2278
+ function mt(k, _) {
2279
+ const ae = P.value.find((de) => de.raw[u.value] === _), ce = ae ? ae.dataIndex - 1 : -1;
2280
+ V.insertNewChildDataItems(k, ce);
2276
2281
  }
2277
- function Ne() {
2278
- const k = _e(), z = Z.getNextSelectableHierarchyItemId(k);
2279
- V.removeHierarchyDataItem(k), P.value = Je(0, se.value + i - 1), z && Z.selectItemById(z);
2282
+ function pt() {
2283
+ const k = ze(), _ = Z.getNextSelectableHierarchyItemId(k);
2284
+ V.removeHierarchyDataItem(k), P.value = Je(0, le.value + i - 1), _ && Z.selectItemById(_);
2280
2285
  }
2281
- function mt(k) {
2286
+ function vt(k) {
2282
2287
  Fe.onEditingRow(k);
2283
2288
  }
2284
- function pt(k) {
2289
+ function to(k) {
2285
2290
  Fe.acceptEditingRow(k);
2286
2291
  }
2287
- function vt(k) {
2292
+ function no(k) {
2288
2293
  Fe.cancelEditingRow(k);
2289
2294
  }
2290
2295
  function gt(k) {
2291
- k && (c.value = k, w(c), e.showSetting && x(c), he(c.value), Te(V, me), ut());
2296
+ k && (c.value = k, w(c), e.showSetting && x(c), ge(c.value), Te(V, fe), ut());
2292
2297
  }
2293
2298
  Ce(() => e.columns, (k) => {
2294
2299
  if (e.showSetting && e.enableColumnSettingSolution) {
@@ -2297,13 +2302,13 @@ const Fs = /* @__PURE__ */ je({
2297
2302
  }
2298
2303
  gt(k);
2299
2304
  });
2300
- function to(k, z) {
2305
+ function oo(k, _) {
2301
2306
  if (k) {
2302
- const le = !!(z != null && z.keepScrollTop || z != null && z.keepScrollPosition), de = le ? Me.offsetY.value : 0;
2303
- V.load(k), V.reOrderVisibleIndex(), Qi({
2304
- keepScroll: le,
2305
- savedOffsetY: de,
2306
- resetScroll: $e,
2307
+ const ae = !!(_ != null && _.keepScrollTop || _ != null && _.keepScrollPosition), ce = ae ? Me.offsetY.value : 0;
2308
+ V.load(k), V.reOrderVisibleIndex(), Zi({
2309
+ keepScroll: ae,
2310
+ savedOffsetY: ce,
2311
+ resetScroll: Ae,
2307
2312
  scrollTo: Me.scrollTo
2308
2313
  });
2309
2314
  }
@@ -2311,190 +2316,190 @@ const Fs = /* @__PURE__ */ je({
2311
2316
  function qt(k) {
2312
2317
  Pe.activeRowById(k);
2313
2318
  }
2314
- function no(k, z = {
2319
+ function io(k, _ = {
2315
2320
  isCurrent: !0
2316
2321
  }) {
2317
- z != null && z.isCurrent && qt(k), Z.selectItemById(k);
2322
+ _ != null && _.isCurrent && qt(k), Z.selectItemById(k);
2318
2323
  }
2319
- function oo(k) {
2320
- const z = P.value.find((le) => le.raw[d.idField.value] === k);
2321
- z && Pe.clickRowItem(z);
2324
+ function ao(k) {
2325
+ const _ = P.value.find((ae) => ae.raw[d.idField.value] === k);
2326
+ _ && Pe.clickRowItem(_);
2322
2327
  }
2323
- function io(k) {
2328
+ function ro(k) {
2324
2329
  Z.selectItemByIds(k);
2325
2330
  }
2326
- function ao() {
2331
+ function so() {
2327
2332
  return X.getSelectedItems();
2328
2333
  }
2329
2334
  function sn() {
2330
2335
  X.clearSelection();
2331
2336
  }
2332
- function ro() {
2337
+ function lo() {
2333
2338
  X.emptyCurrentRowId();
2334
2339
  }
2335
- const so = D(() => !P.value || !P.value.length), {
2336
- renderEmpty: lo
2337
- } = Wi(e, t);
2338
- function co() {
2340
+ const co = D(() => !P.value || !P.value.length), {
2341
+ renderEmpty: uo
2342
+ } = Yi(e, t);
2343
+ function fo() {
2339
2344
  return X.getSelectionRow();
2340
2345
  }
2341
- function uo(k, z = {
2346
+ function mo(k, _ = {
2342
2347
  clearCurrent: !0
2343
2348
  }) {
2344
- z != null && z.clearCurrent && qt(""), Z.unSelectItemByIds(k);
2349
+ _ != null && _.clearCurrent && qt(""), Z.unSelectItemByIds(k);
2345
2350
  }
2346
- function fo() {
2351
+ function po() {
2347
2352
  return X.currentSelectedDataId.value;
2348
2353
  }
2349
- function mo(k, z, le) {
2350
- const de = O.value.find((ue) => ue[u.value] === k);
2351
- if (de) {
2352
- if (Object.keys(de).forEach((pe) => {
2353
- Object.prototype.hasOwnProperty.call(z, pe) && (de[pe] = z[pe]);
2354
- }), le) {
2354
+ function vo(k, _, ae) {
2355
+ const ce = O.value.find((de) => de[u.value] === k);
2356
+ if (ce) {
2357
+ if (Object.keys(ce).forEach((me) => {
2358
+ Object.prototype.hasOwnProperty.call(_, me) && (ce[me] = _[me]);
2359
+ }), ae) {
2355
2360
  const {
2356
- collapseField: pe,
2357
- disabledField: ze,
2361
+ collapseField: me,
2362
+ disabledField: Ue,
2358
2363
  checkedField: Ze,
2359
2364
  visibleField: qe,
2360
2365
  hasChildren: yt
2361
- } = le;
2362
- pe && !Ye(z[pe]) && (de.__fv_collapse__ = z[pe]), Ze && !Ye(z[Ze]) && (de.__fv_checked__ = z[Ze]), ze && !Ye(z[ze]) && (de.__fv_disabled__ = z[ze]), qe && !Ye(z[qe]) && (de.__fv_visible__ = z[qe]), Ye(yt) || (de.__fv_hasChildren__ = yt);
2366
+ } = ae;
2367
+ me && !Ye(_[me]) && (ce.__fv_collapse__ = _[me]), Ze && !Ye(_[Ze]) && (ce.__fv_checked__ = _[Ze]), Ue && !Ye(_[Ue]) && (ce.__fv_disabled__ = _[Ue]), qe && !Ye(_[qe]) && (ce.__fv_visible__ = _[qe]), Ye(yt) || (ce.__fv_hasChildren__ = yt);
2363
2368
  }
2364
- const ue = P.value.find((pe) => pe.raw[u.value] === k), ce = P.value.findIndex((pe) => pe.raw[u.value] === k);
2365
- if (ue) {
2366
- if (ue.raw = de, Object.keys(ue.data).forEach((pe) => {
2367
- ue.data[pe].updateData(de);
2368
- }), le) {
2369
+ const de = P.value.find((me) => me.raw[u.value] === k), ue = P.value.findIndex((me) => me.raw[u.value] === k);
2370
+ if (de) {
2371
+ if (de.raw = ce, Object.keys(de.data).forEach((me) => {
2372
+ de.data[me].updateData(ce);
2373
+ }), ae) {
2369
2374
  const {
2370
- collapseField: pe,
2371
- disabledField: ze,
2375
+ collapseField: me,
2376
+ disabledField: Ue,
2372
2377
  checkedField: Ze,
2373
2378
  visibleField: qe,
2374
2379
  hasChildren: yt
2375
- } = le;
2376
- pe && !Ye(z[pe]) && (ue.collapse = z[pe]), Ze && !Ye(z[Ze]) && (ue.checked = z[Ze]), ze && !Ye(z[ze]) && (ue.disabled = z[ze]), qe && !Ye(z[qe]) && (ue.visible = z[qe]), Ye(yt) || (ue.raw.__fv_hasChildren__ = yt);
2380
+ } = ae;
2381
+ me && !Ye(_[me]) && (de.collapse = _[me]), Ze && !Ye(_[Ze]) && (de.checked = _[Ze]), Ue && !Ye(_[Ue]) && (de.disabled = _[Ue]), qe && !Ye(_[qe]) && (de.visible = _[qe]), Ye(yt) || (de.raw.__fv_hasChildren__ = yt);
2377
2382
  }
2378
- P.value = [...P.value.slice(0, ce), ue, ...P.value.slice(ce + 1)], V.updateSummary();
2383
+ P.value = [...P.value.slice(0, ue), de, ...P.value.slice(ue + 1)], V.updateSummary();
2379
2384
  }
2380
2385
  }
2381
2386
  }
2382
- function po(k) {
2387
+ function go(k) {
2383
2388
  return Object.prototype.hasOwnProperty.call(k, "raw") ? V.hasRealChildren(k.raw) : V.hasRealChildren(k);
2384
2389
  }
2385
- function vo(k) {
2386
- const z = V.dataView.value.find((le) => le[u.value] === k);
2387
- return z ? z[F.value] : "";
2390
+ function ho(k) {
2391
+ const _ = V.dataView.value.find((ae) => ae[u.value] === k);
2392
+ return _ ? _[F.value] : "";
2388
2393
  }
2389
- function go() {
2394
+ function yo() {
2390
2395
  return F.value;
2391
2396
  }
2392
- Ce(() => e.showSetting, (k, z) => {
2393
- k !== z && (k ? x(c) : L(c), gt(c.value));
2397
+ Ce(() => e.showSetting, (k, _) => {
2398
+ k !== _ && (k ? x(c) : L(c), gt(c.value));
2394
2399
  });
2395
- function ho(k) {
2396
- return P.value.filter((z) => k.includes(z.raw[e.idField]));
2400
+ function bo(k) {
2401
+ return P.value.filter((_) => k.includes(_.raw[e.idField]));
2397
2402
  }
2398
2403
  function ln(k) {
2399
- const z = d.idField.value, le = P.value.find((de) => de.raw[z] === k);
2400
- le && Pe.changeRow(le);
2404
+ const _ = d.idField.value, ae = P.value.find((ce) => ce.raw[_] === k);
2405
+ ae && Pe.changeRow(ae);
2401
2406
  }
2402
- function yo() {
2407
+ function Co() {
2403
2408
  X.keepSelectingOnPaging.value || sn(), V.updateVisibleDataSummary(P.value);
2404
2409
  }
2405
- function bo() {
2410
+ function wo() {
2406
2411
  Fe.endEditCell();
2407
2412
  }
2408
- function Co(k) {
2413
+ function To(k) {
2409
2414
  X.updateSelectedValues(k);
2410
2415
  }
2411
- function wo(k) {
2416
+ function So(k) {
2412
2417
  X.removeSelectedValues(k);
2413
2418
  }
2414
- const To = 100;
2415
- function So(k, z) {
2416
- const le = z[k].__fv_layer__ || 0;
2417
- let de = k + 1;
2418
- for (; de < z.length && (z[de].__fv_layer__ || 0) > le; )
2419
- de++;
2420
- return de - 1;
2421
- }
2422
- function xo(k) {
2423
- const z = V.dataView.value, le = $.collapseField.value, de = k.__fv_index__, ue = k.__fv_layer__ || 0;
2424
- if (typeof de != "number" || k.__fv_visible__ === !1 || k[le])
2419
+ const xo = 100;
2420
+ function Fo(k, _) {
2421
+ const ae = _[k].__fv_layer__ || 0;
2422
+ let ce = k + 1;
2423
+ for (; ce < _.length && (_[ce].__fv_layer__ || 0) > ae; )
2424
+ ce++;
2425
+ return ce - 1;
2426
+ }
2427
+ function Io(k) {
2428
+ const _ = V.dataView.value, ae = $.collapseField.value, ce = k.__fv_index__, de = k.__fv_layer__ || 0;
2429
+ if (typeof ce != "number" || k.__fv_visible__ === !1 || k[ae])
2425
2430
  return;
2426
- let ce = de + 1;
2427
- for (; ce < z.length; ) {
2428
- const pe = z[ce];
2429
- if ((pe.__fv_layer__ || 0) <= ue)
2431
+ let ue = ce + 1;
2432
+ for (; ue < _.length; ) {
2433
+ const me = _[ue];
2434
+ if ((me.__fv_layer__ || 0) <= de)
2430
2435
  break;
2431
- if (pe.__fv_visible__ = !0, pe[le]) {
2432
- ce = So(ce, z) + 1;
2436
+ if (me.__fv_visible__ = !0, me[ae]) {
2437
+ ue = Fo(ue, _) + 1;
2433
2438
  continue;
2434
2439
  }
2435
- ce++;
2440
+ ue++;
2436
2441
  }
2437
2442
  }
2438
- function Fo(k) {
2439
- let z = k;
2440
- const le = [];
2441
- let de = 0;
2442
- for (; z && z[$.parentIdField.value] && de < To; ) {
2443
- de++;
2444
- const ue = V.rawView.value.find((ce) => ce[d.idField.value] === z[$.parentIdField.value]);
2445
- if (ue)
2446
- ue[$.collapseField.value] && le.push(ue), z = ue;
2443
+ function Eo(k) {
2444
+ let _ = k;
2445
+ const ae = [];
2446
+ let ce = 0;
2447
+ for (; _ && _[$.parentIdField.value] && ce < xo; ) {
2448
+ ce++;
2449
+ const de = V.rawView.value.find((ue) => ue[d.idField.value] === _[$.parentIdField.value]);
2450
+ if (de)
2451
+ de[$.collapseField.value] && ae.push(de), _ = de;
2447
2452
  else
2448
2453
  break;
2449
2454
  }
2450
- le.reverse().forEach((ue) => {
2451
- ue[$.collapseField.value] = !1, V.toggleChildrenVisibiltyByCollapseStatus(ue), xo(ue);
2455
+ ae.reverse().forEach((de) => {
2456
+ de[$.collapseField.value] = !1, V.toggleChildrenVisibiltyByCollapseStatus(de), Io(de);
2452
2457
  });
2453
2458
  }
2454
- function Io(k, z) {
2455
- if (k.length !== z.length)
2459
+ function Po(k, _) {
2460
+ if (k.length !== _.length)
2456
2461
  return !1;
2457
- const le = k.map((ue) => ue[d.idField.value]).sort(), de = z.map((ue) => ue[d.idField.value]).sort();
2458
- return le.every((ue, ce) => ue === de[ce]);
2462
+ const ae = k.map((de) => de[d.idField.value]).sort(), ce = _.map((de) => de[d.idField.value]).sort();
2463
+ return ae.every((de, ue) => de === ce[ue]);
2459
2464
  }
2460
2465
  function Wt() {
2461
2466
  const k = oe.value[we.value];
2462
- k && (Fo(k), ke(() => {
2467
+ k && (Eo(k), ke(() => {
2463
2468
  V.reOrderVisibleIndex();
2464
- const z = k[d.idField.value], le = k.__fv_visible_index__;
2465
- le !== void 0 && le !== "" && le >= 0 ? (Me.scrollToRowByIndex(le), ke(() => {
2466
- ln(z);
2467
- })) : console.warn("搜索结果的节点不在当前可见范围内,无法定位", z);
2469
+ const _ = k[d.idField.value], ae = k.__fv_visible_index__;
2470
+ ae !== void 0 && ae !== "" && ae >= 0 ? (Me.scrollToRowByIndex(ae), ke(() => {
2471
+ ln(_);
2472
+ })) : console.warn("搜索结果的节点不在当前可见范围内,无法定位", _);
2468
2473
  }));
2469
2474
  }
2470
2475
  function cn() {
2471
2476
  !Y.value.trim() || !oe.value.length || (we.value = (we.value + 1) % oe.value.length, Wt());
2472
2477
  }
2473
- function Eo() {
2478
+ function Mo() {
2474
2479
  if (!Y.value.trim()) {
2475
2480
  oe.value = [], we.value = 0;
2476
2481
  return;
2477
2482
  }
2478
- const k = [], z = Y.value.toLowerCase().trim();
2479
- V.rawView.value.forEach((de) => {
2480
- let ue = !1;
2481
- e.customSearch ? ue = e.customSearch(z, de, e.columns) : e.columns.forEach((ce) => {
2482
- if (!ue && ce.field) {
2483
- const pe = Ss(ce, de);
2484
- pe && pe.toLowerCase().includes(z) && (ue = !0);
2483
+ const k = [], _ = Y.value.toLowerCase().trim();
2484
+ V.rawView.value.forEach((ce) => {
2485
+ let de = !1;
2486
+ e.customSearch ? de = e.customSearch(_, ce, e.columns) : e.columns.forEach((ue) => {
2487
+ if (!de && ue.field) {
2488
+ const me = Fs(ue, ce);
2489
+ me && me.toLowerCase().includes(_) && (de = !0);
2485
2490
  }
2486
- }), ue && k.push(de);
2491
+ }), de && k.push(ce);
2487
2492
  });
2488
- const le = !Io(k, oe.value);
2489
- k.length > 0 ? le ? (oe.value = k, we.value = 0, Wt()) : cn() : (oe.value = [], we.value = 0);
2493
+ const ae = !Po(k, oe.value);
2494
+ k.length > 0 ? ae ? (oe.value = k, we.value = 0, Wt()) : cn() : (oe.value = [], we.value = 0);
2490
2495
  }
2491
- function Po() {
2496
+ function Ro() {
2492
2497
  if (!Y.value.trim() || !oe.value.length)
2493
2498
  return;
2494
2499
  const k = oe.value.length;
2495
2500
  we.value = (we.value - 1 + k) % k, Wt();
2496
2501
  }
2497
- const ht = si(Eo, 300);
2502
+ const ht = ci(Mo, 300);
2498
2503
  function un() {
2499
2504
  ht.cancel(), Y.value = "", oe.value = [], we.value = 0;
2500
2505
  }
@@ -2503,82 +2508,82 @@ const Fs = /* @__PURE__ */ je({
2503
2508
  }), rt(() => {
2504
2509
  ht.cancel();
2505
2510
  });
2506
- function Mo(k) {
2511
+ function ko(k) {
2507
2512
  if (k.key === "Enter") {
2508
2513
  if (!Y.value.trim())
2509
2514
  return;
2510
2515
  ht();
2511
2516
  }
2512
2517
  }
2513
- function Ro() {
2518
+ function Bo() {
2514
2519
  Y.value.trim() && ht();
2515
2520
  }
2516
2521
  t.expose({
2517
2522
  activeRowById: qt,
2518
- addNewDataItem: Oe,
2519
- addNewChildDataItem: Ge,
2520
- addChildrenToNode: Ae,
2521
- collapseTo: De,
2522
- expandTo: He,
2523
- removeDataItem: Ne,
2524
- editDataItem: mt,
2525
- acceptDataItem: pt,
2526
- cancelDataItem: vt,
2523
+ addNewDataItem: He,
2524
+ addNewChildDataItem: Le,
2525
+ addChildrenToNode: mt,
2526
+ collapseTo: Ge,
2527
+ expandTo: Oe,
2528
+ removeDataItem: pt,
2529
+ editDataItem: vt,
2530
+ acceptDataItem: to,
2531
+ cancelDataItem: no,
2527
2532
  updateColumns: gt,
2528
- updateDataSource: to,
2529
- selectItemById: no,
2530
- selectItemByIds: io,
2531
- getSelectedItems: ao,
2533
+ updateDataSource: oo,
2534
+ selectItemById: io,
2535
+ selectItemByIds: ro,
2536
+ getSelectedItems: so,
2532
2537
  clearSelection: sn,
2533
- getSelectionRow: co,
2534
- clickRowItemById: oo,
2535
- unSelectItemByIds: uo,
2536
- getCurrentRowId: fo,
2537
- reassignRowData: mo,
2538
- hasChildren: po,
2539
- getCollapseField: go,
2540
- getCollapseStatusById: vo,
2541
- getVisibleDataByIds: ho,
2538
+ getSelectionRow: fo,
2539
+ clickRowItemById: ao,
2540
+ unSelectItemByIds: mo,
2541
+ getCurrentRowId: po,
2542
+ reassignRowData: vo,
2543
+ hasChildren: go,
2544
+ getCollapseField: yo,
2545
+ getCollapseStatusById: ho,
2546
+ getVisibleDataByIds: bo,
2542
2547
  selectRowById: ln,
2543
- updateDerivedData: yo,
2544
- emptyCurrentRowId: ro,
2548
+ updateDerivedData: Co,
2549
+ emptyCurrentRowId: lo,
2545
2550
  calculateColumnsSize: ut,
2546
- endEditCell: bo,
2547
- updateSelectedValues: Co,
2548
- removeSelectedValues: wo
2551
+ endEditCell: wo,
2552
+ updateSelectedValues: To,
2553
+ removeSelectedValues: So
2549
2554
  });
2550
- const ko = D(() => {
2555
+ const Oo = D(() => {
2551
2556
  const k = {};
2552
2557
  return Me.shouldShowHorizontalScrollbar.value && v.value && (k.paddingBottom = "10px"), Me.shouldShowVirticalScrollbar.value && v.value, k;
2553
- }), Bo = D(() => ({
2558
+ }), Vo = D(() => ({
2554
2559
  ...ee.value,
2555
2560
  borderRadius: "5px"
2556
2561
  })), {
2557
- renderDataGridPagination: tc
2558
- } = Gi(e, t, V, Me, q, X), Oo = D(() => ({
2562
+ renderDataGridPagination: oc
2563
+ } = Xi(e, t, V, Me, q, X), No = D(() => ({
2559
2564
  "d-flex": !0,
2560
2565
  "justify-content-between": G.value && N.value,
2561
2566
  "justify-content-end": G.value && !N.value,
2562
2567
  "position-relative": !0
2563
- })), Vo = D(() => ({
2568
+ })), Lo = D(() => ({
2564
2569
  "d-flex": !0,
2565
2570
  "align-items-center": !0
2566
2571
  }));
2567
- function No(k) {
2568
- const z = k.map((ce) => ce.id), le = [...c.value, ...r, ...s];
2569
- le.filter((ce) => ce.dataType !== Yt && ce.dataType !== Xt).forEach((ce) => {
2570
- const pe = k.find((ze) => ze.id === ce.id);
2571
- pe && (ce.width = pe.actualWidth || ce.width || 120, pe.actualWidth !== void 0 && (ce.actualWidth = pe.actualWidth), ce.title = pe.title, ce.halign = pe.halign, ce.align = pe.align, ce.fixed = pe.fixed);
2572
- }), s = le.filter((ce) => ce.dataType === Yt || ce.dataType === Xt);
2573
- const de = le.filter((ce) => ce.dataType !== Yt && ce.dataType !== Xt), ue = de.filter((ce) => z.includes(ce.id));
2574
- r = de.filter((ce) => !z.includes(ce.id)), ue.sort((ce, pe) => {
2575
- const ze = k.findIndex((qe) => qe.id === ce.id), Ze = k.findIndex((qe) => qe.id === pe.id);
2576
- return ze - Ze;
2577
- }), gt(ue);
2572
+ function Do(k) {
2573
+ const _ = k.map((ue) => ue.id), ae = [...c.value, ...r, ...s];
2574
+ ae.filter((ue) => ue.dataType !== Yt && ue.dataType !== Xt).forEach((ue) => {
2575
+ const me = k.find((Ue) => Ue.id === ue.id);
2576
+ me && (ue.width = me.actualWidth || ue.width || 120, me.actualWidth !== void 0 && (ue.actualWidth = me.actualWidth), ue.title = me.title, ue.halign = me.halign, ue.align = me.align, ue.fixed = me.fixed);
2577
+ }), s = ae.filter((ue) => ue.dataType === Yt || ue.dataType === Xt);
2578
+ const ce = ae.filter((ue) => ue.dataType !== Yt && ue.dataType !== Xt), de = ce.filter((ue) => _.includes(ue.id));
2579
+ r = ce.filter((ue) => !_.includes(ue.id)), de.sort((ue, me) => {
2580
+ const Ue = k.findIndex((qe) => qe.id === ue.id), Ze = k.findIndex((qe) => qe.id === me.id);
2581
+ return Ue - Ze;
2582
+ }), gt(de);
2578
2583
  }
2579
2584
  const {
2580
- renderDataGridSummary: Lo
2581
- } = Yi(e, V, re);
2585
+ renderDataGridSummary: jo
2586
+ } = Qi(e, V, se);
2582
2587
  return () => e.visible && h(Tt, null, [Ie.value && h("div", {
2583
2588
  class: "fv-grid-search",
2584
2589
  style: {
@@ -2592,17 +2597,17 @@ const Fs = /* @__PURE__ */ je({
2592
2597
  display: "flex",
2593
2598
  alignItems: "center"
2594
2599
  }
2595
- }, [h(Zi, {
2600
+ }, [h(ea, {
2596
2601
  value: Y.value,
2597
2602
  onInput: (k) => Y.value = k,
2598
2603
  "onUpdate:value": (k) => Y.value = k || "",
2599
2604
  onClear: un,
2600
- onKeydown: Mo,
2605
+ onKeydown: ko,
2601
2606
  placeholder: Re.value,
2602
2607
  style: {
2603
2608
  flex: 1
2604
2609
  }
2605
- }, null), ae.value && h("span", {
2610
+ }, null), re.value && h("span", {
2606
2611
  class: "fv-grid-search-count",
2607
2612
  style: {
2608
2613
  marginLeft: "8px",
@@ -2610,11 +2615,11 @@ const Fs = /* @__PURE__ */ je({
2610
2615
  color: "#888",
2611
2616
  whiteSpace: "nowrap"
2612
2617
  }
2613
- }, [ae.value]), h(bt, {
2618
+ }, [re.value]), h(bt, {
2614
2619
  type: "link",
2615
- title: ge.value,
2620
+ title: ve.value,
2616
2621
  disabled: !oe.value.length,
2617
- onClick: Po,
2622
+ onClick: Ro,
2618
2623
  style: {
2619
2624
  cursor: "pointer",
2620
2625
  marginLeft: "4px"
@@ -2639,7 +2644,7 @@ const Fs = /* @__PURE__ */ je({
2639
2644
  }), h(bt, {
2640
2645
  type: "link",
2641
2646
  title: Ve.value,
2642
- onClick: Ro,
2647
+ onClick: Bo,
2643
2648
  style: {
2644
2649
  cursor: "pointer",
2645
2650
  marginLeft: "4px"
@@ -2662,12 +2667,12 @@ const Fs = /* @__PURE__ */ je({
2662
2667
  }, null)]
2663
2668
  })])]), h("div", {
2664
2669
  ref: f,
2665
- class: At.value,
2666
- style: Bo.value,
2670
+ class: Ht.value,
2671
+ style: Vo.value,
2667
2672
  onWheel: B
2668
- }, [p.value && Ut.value && zt(), h("div", {
2673
+ }, [p.value && W.value && Ut(), h("div", {
2669
2674
  ref: p,
2670
- class: Ht.value,
2675
+ class: _t.value,
2671
2676
  onMouseover: () => v.value = !0,
2672
2677
  onMouseleave: () => v.value = !1,
2673
2678
  onTouchstart: (k) => {
@@ -2676,25 +2681,26 @@ const Fs = /* @__PURE__ */ je({
2676
2681
  onTouchend: (k) => {
2677
2682
  v.value = !1;
2678
2683
  },
2679
- style: ko.value
2680
- }, [p.value && I(P), p.value && _t(), p.value && so.value && lo(), p.value && Q(), p.value && te()]), p.value && Lo(), N.value && h("div", {
2681
- class: Oo.value
2684
+ style: Oo.value
2685
+ }, [p.value && Q(P), p.value && zt(), p.value && co.value && uo(), p.value && he(), p.value && ye()]), p.value && jo(), N.value && h("div", {
2686
+ class: No.value
2682
2687
  }, [N.value && h("div", {
2683
- class: Vo.value
2684
- }, [h("div", null, ["已选:" + J.value.length, kn(" 条")])])]), It(), ie.value && W()]), e.enableColumnSettingSolution && h(Xi, {
2688
+ class: Lo.value
2689
+ }, [h("div", null, ["已选:" + J.value.length, kn(" 条")])])]), I(), ie.value && te()]), e.enableColumnSettingSolution && h(Ji, {
2690
+ ref: It,
2685
2691
  columns: [...c.value, ...r],
2686
2692
  componentId: e.id,
2687
2693
  modelValue: o.value,
2688
2694
  "onUpdate:modelValue": (k) => o.value = k,
2689
- onChangeColumnSetting: No
2695
+ onChangeColumnSetting: Do
2690
2696
  }, null)]);
2691
2697
  }
2692
2698
  });
2693
- xn(Fs);
2694
- const Is = /* @__PURE__ */ new Map([
2695
- ["appearance", Dt]
2699
+ xn(Es);
2700
+ const Ps = /* @__PURE__ */ new Map([
2701
+ ["appearance", jt]
2696
2702
  ]);
2697
- function Es(e, t) {
2703
+ function Ms(e, t) {
2698
2704
  const {
2699
2705
  formSchemaUtils: n,
2700
2706
  designViewModelUtils: o
@@ -2722,7 +2728,7 @@ function Es(e, t) {
2722
2728
  }
2723
2729
  return { createComponent: r };
2724
2730
  }
2725
- function Ps(e, t, n, o) {
2731
+ function Rs(e, t, n, o) {
2726
2732
  var a, r, s, l, c, d;
2727
2733
  const i = n.parentComponentInstance;
2728
2734
  if (i && o) {
@@ -2734,12 +2740,12 @@ function Ps(e, t, n, o) {
2734
2740
  parentComponentInstance: i,
2735
2741
  bindTo: ((l = n.bindingSourceContext) == null ? void 0 : l.bindTo) || "",
2736
2742
  dataSource: (d = (c = n.bindingSourceContext) == null ? void 0 : c.bindingEntity) == null ? void 0 : d.label
2737
- }, { createComponent: p } = Es(e, o);
2743
+ }, { createComponent: p } = Ms(e, o);
2738
2744
  return p(f);
2739
2745
  } else
2740
2746
  return t;
2741
2747
  }
2742
- const Ms = "https://json-schema.org/draft/2020-12/schema", Rs = "https://farris-design.gitee.io/step.schema.json", ks = "step", Bs = "A Farris Component", Os = "object", Vs = {
2748
+ const ks = "https://json-schema.org/draft/2020-12/schema", Bs = "https://farris-design.gitee.io/step.schema.json", Os = "step", Vs = "A Farris Component", Ns = "object", Ls = {
2743
2749
  id: {
2744
2750
  description: "The unique identifier for step",
2745
2751
  type: "string"
@@ -2817,17 +2823,17 @@ const Ms = "https://json-schema.org/draft/2020-12/schema", Rs = "https://farris-
2817
2823
  description: "步骤条模板",
2818
2824
  type: "string"
2819
2825
  }
2820
- }, Ns = [
2826
+ }, Ds = [
2821
2827
  "id",
2822
2828
  "type"
2823
- ], Ls = {
2824
- $schema: Ms,
2825
- $id: Rs,
2826
- title: ks,
2827
- description: Bs,
2828
- type: Os,
2829
- properties: Vs,
2830
- required: Ns
2829
+ ], js = {
2830
+ $schema: ks,
2831
+ $id: Bs,
2832
+ title: Os,
2833
+ description: Vs,
2834
+ type: Ns,
2835
+ properties: Ls,
2836
+ required: Ds
2831
2837
  }, rn = {
2832
2838
  /**
2833
2839
  * 步骤条方向
@@ -2881,7 +2887,7 @@ const Ms = "https://json-schema.org/draft/2020-12/schema", Rs = "https://farris-
2881
2887
  } },
2882
2888
  customClass: { type: String, default: "" },
2883
2889
  stepTemplate: { type: Object }
2884
- }, zn = Qe(rn, Ls, Is, Ps), dt = /* @__PURE__ */ je({
2890
+ }, zn = Qe(rn, js, Ps, Rs), dt = /* @__PURE__ */ $e({
2885
2891
  name: "FStep",
2886
2892
  props: rn,
2887
2893
  emits: ["click"],
@@ -3001,7 +3007,7 @@ const Ms = "https://json-schema.org/draft/2020-12/schema", Rs = "https://farris-
3001
3007
  Ce(() => e.activeIndex, (v) => {
3002
3008
  e.activeIndex > -1 && e.activeIndex <= e.steps.length && (o.value = v);
3003
3009
  });
3004
- const P = D(() => Nt({
3010
+ const P = D(() => Lt({
3005
3011
  "f-progress-step": !0
3006
3012
  }, e.customClass));
3007
3013
  return () => h("div", {
@@ -3011,13 +3017,13 @@ const Ms = "https://json-schema.org/draft/2020-12/schema", Rs = "https://farris-
3011
3017
  style: a.value
3012
3018
  }, [E()])]);
3013
3019
  }
3014
- }), Mt = {
3020
+ }), Rt = {
3015
3021
  tabs: { name: "标签页" },
3016
3022
  "tab-page": { type: "tab-page" },
3017
3023
  section: { type: "section" },
3018
3024
  "list-view": { name: "列表" }
3019
3025
  };
3020
- function Ds(e) {
3026
+ function $s(e) {
3021
3027
  const { formSchemaUtils: t, formStateMachineUtils: n } = e;
3022
3028
  function o(l, c = "") {
3023
3029
  return {
@@ -3045,7 +3051,7 @@ function Ds(e) {
3045
3051
  }
3046
3052
  return { getVariables: a, getControlName: r, getStateMachines: s };
3047
3053
  }
3048
- class js {
3054
+ class As {
3049
3055
  constructor(t) {
3050
3056
  be(this, "sessionVariables", [
3051
3057
  {
@@ -3313,7 +3319,7 @@ class js {
3313
3319
  };
3314
3320
  }
3315
3321
  }
3316
- class $s {
3322
+ class Hs {
3317
3323
  constructor(t, n) {
3318
3324
  be(this, "componentId");
3319
3325
  be(this, "viewModelId");
@@ -3336,7 +3342,7 @@ class $s {
3336
3342
  });
3337
3343
  be(this, "expressionProperty");
3338
3344
  var o;
3339
- 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 js(this.formSchemaUtils);
3345
+ 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 As(this.formSchemaUtils);
3340
3346
  }
3341
3347
  /**
3342
3348
  * 是否在响应式表单中
@@ -3385,7 +3391,7 @@ class $s {
3385
3391
  valueField: "value",
3386
3392
  idField: "value",
3387
3393
  editable: !1,
3388
- data: [{ value: t.type, name: kt[t.type] && kt[t.type].name }]
3394
+ data: [{ value: t.type, name: Bt[t.type] && Bt[t.type].name }]
3389
3395
  }
3390
3396
  }
3391
3397
  }
@@ -3441,7 +3447,7 @@ class $s {
3441
3447
  * @returns
3442
3448
  */
3443
3449
  getPropertyEditorParams(t, n = [], o = "visible", i = {}, a = {}, r = "") {
3444
- const { getVariables: s, getControlName: l, getStateMachines: c } = Ds(this.designerHostService), d = this.getRealTargetType(t), u = n && n.length > 0 ? n : ["Const", "Variable", "StateMachine", "Expression"], f = {
3450
+ const { getVariables: s, getControlName: l, getStateMachines: c } = $s(this.designerHostService), d = this.getRealTargetType(t), u = n && n.length > 0 ? n : ["Const", "Variable", "StateMachine", "Expression"], f = {
3445
3451
  type: "property-editor",
3446
3452
  propertyTypes: u
3447
3453
  };
@@ -3535,8 +3541,8 @@ class $s {
3535
3541
  const o = n && n.parent && n.parent.schema;
3536
3542
  if (!o)
3537
3543
  return;
3538
- const i = o.contents.findIndex((r) => r.id === t), a = Bt(o.contents[i]);
3539
- o.contents.splice(i, 1), o.contents.splice(i, 0, a), Xo();
3544
+ const i = o.contents.findIndex((r) => r.id === t), a = Ot(o.contents[i]);
3545
+ o.contents.splice(i, 1), o.contents.splice(i, 0, a), Jo();
3540
3546
  }
3541
3547
  /**
3542
3548
  * 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
@@ -3615,7 +3621,7 @@ class $s {
3615
3621
  }, n;
3616
3622
  }
3617
3623
  }
3618
- class As extends $s {
3624
+ class _s extends Hs {
3619
3625
  constructor(t, n) {
3620
3626
  super(t, n);
3621
3627
  }
@@ -3777,7 +3783,7 @@ class As extends $s {
3777
3783
  };
3778
3784
  }
3779
3785
  }
3780
- function Hs(e, t) {
3786
+ function zs(e, t) {
3781
3787
  const n = e.schema;
3782
3788
  function o() {
3783
3789
  return "";
@@ -3795,7 +3801,7 @@ function Hs(e, t) {
3795
3801
  return !0;
3796
3802
  }
3797
3803
  function l(d) {
3798
- return new As(d, t).getPropertyConfig(n);
3804
+ return new _s(d, t).getPropertyConfig(n);
3799
3805
  }
3800
3806
  function c() {
3801
3807
  var d, u, f, p;
@@ -3805,9 +3811,9 @@ function Hs(e, t) {
3805
3811
  const { formSchemaUtils: P } = t;
3806
3812
  if (g) {
3807
3813
  const S = P.getRootViewModelId(), M = P.getComponentByViewModelId(S), R = P.selectNode(M, ($) => $.contents && $.contents.find((F) => F.component === g));
3808
- (R == null ? void 0 : R.type) === ((u = Mt["tab-page"]) == null ? void 0 : u.type) && ((f = R == null ? void 0 : R.contents) != null && f.length) && (y = R.title || ""), (R == null ? void 0 : R.type) === ((p = Mt.section) == null ? void 0 : p.type) && (R == null ? void 0 : R.showHeader) !== !1 && (y = R.mainTitle || ""), y = y ? `${y} > ` : "", E = y ? R.id : "";
3814
+ (R == null ? void 0 : R.type) === ((u = Rt["tab-page"]) == null ? void 0 : u.type) && ((f = R == null ? void 0 : R.contents) != null && f.length) && (y = R.title || ""), (R == null ? void 0 : R.type) === ((p = Rt.section) == null ? void 0 : p.type) && (R == null ? void 0 : R.showHeader) !== !1 && (y = R.mainTitle || ""), y = y ? `${y} > ` : "", E = y ? R.id : "";
3809
3815
  }
3810
- const v = Mt["list-view"].name;
3816
+ const v = Rt["list-view"].name;
3811
3817
  t == null || t.formSchemaUtils.getControlBasicInfoMap().set(e.schema.id, {
3812
3818
  componentTitle: v,
3813
3819
  parentPathName: `${y}${v}`,
@@ -3827,12 +3833,12 @@ function Hs(e, t) {
3827
3833
  getDesignerClass: o
3828
3834
  };
3829
3835
  }
3830
- const _s = /* @__PURE__ */ je({
3836
+ const Us = /* @__PURE__ */ $e({
3831
3837
  name: "FStepDesign",
3832
3838
  props: rn,
3833
3839
  emits: [],
3834
3840
  setup(e, t) {
3835
- const n = T(0), o = T(0), i = T(), a = Xe("designer-host-service"), r = Xe("design-item-context"), s = Hs(r, a), l = an(i, r, s), c = [{
3841
+ const n = T(0), o = T(0), i = T(), a = Xe("designer-host-service"), r = Xe("design-item-context"), s = zs(r, a), l = an(i, r, s), c = [{
3836
3842
  id: "firstStep",
3837
3843
  title: "步骤一",
3838
3844
  description: "步骤一"
@@ -3951,7 +3957,7 @@ const _s = /* @__PURE__ */ je({
3951
3957
  }, [$()])]);
3952
3958
  }
3953
3959
  });
3954
- function zs() {
3960
+ function qs() {
3955
3961
  function e(t, n) {
3956
3962
  const o = {};
3957
3963
  return o.beforeClickStep = (i) => n.call("beforeClickStep", t, [i, t]), o;
@@ -3960,18 +3966,18 @@ function zs() {
3960
3966
  resolve: e
3961
3967
  };
3962
3968
  }
3963
- const Us = zs();
3969
+ const Ws = qs();
3964
3970
  dt.install = (e) => {
3965
3971
  e.component(dt.name, dt);
3966
3972
  };
3967
3973
  dt.register = (e, t, n, o) => {
3968
- e.step = dt, t.step = zn, o.step = { callbackResolver: Us };
3974
+ e.step = dt, t.step = zn, o.step = { callbackResolver: Ws };
3969
3975
  };
3970
3976
  dt.registerDesigner = (e, t, n) => {
3971
- e.step = _s, t.step = zn;
3977
+ e.step = Us, t.step = zn;
3972
3978
  };
3973
- const qs = "root-viewmodel";
3974
- class Ws {
3979
+ const Gs = "root-viewmodel";
3980
+ class Ys {
3975
3981
  constructor(t, n) {
3976
3982
  be(this, "formSchemaUtils");
3977
3983
  be(this, "controlCreatorUtils");
@@ -4037,7 +4043,7 @@ class Ws {
4037
4043
  const { selectedFields: a } = t;
4038
4044
  a == null || a.forEach((c) => {
4039
4045
  if (c.$type === mn.SimpleField) {
4040
- const d = Bt(c), u = this.resolveControlClassByFormColumns(t), f = this.controlCreatorUtils.setFormFieldProperty(d, "", u);
4046
+ const d = Ot(c), u = this.resolveControlClassByFormColumns(t), f = this.controlCreatorUtils.setFormFieldProperty(d, "", u);
4041
4047
  f && i.push(f);
4042
4048
  }
4043
4049
  });
@@ -4079,7 +4085,7 @@ class Ws {
4079
4085
  code: `${t.componentId}-component-viewmodel`,
4080
4086
  name: t.componentName,
4081
4087
  bindTo: t.bindTo,
4082
- parent: qs,
4088
+ parent: Gs,
4083
4089
  fields: this.assembleViewModelFields(t),
4084
4090
  commands: [],
4085
4091
  states: [],
@@ -4122,11 +4128,11 @@ function Un(e, t, n, o) {
4122
4128
  bindTo: ((c = n.bindingSourceContext) == null ? void 0 : c.bindTo) || "/",
4123
4129
  selectedFields: (d = n.bindingSourceContext) == null ? void 0 : d.bindingEntityFields
4124
4130
  };
4125
- return new Ws(e, o).createComponent(p);
4131
+ return new Ys(e, o).createComponent(p);
4126
4132
  } else
4127
4133
  return t;
4128
4134
  }
4129
- const Gs = "https://json-schema.org/draft/2020-12/schema", Ys = "https://farris-design.gitee.io/response-form.schema.json", Xs = "response-form", Qs = "A Farris Data Collection Component", Js = "object", Zs = {
4135
+ const Xs = "https://json-schema.org/draft/2020-12/schema", Qs = "https://farris-design.gitee.io/response-form.schema.json", Js = "response-form", Zs = "A Farris Data Collection Component", Ks = "object", el = {
4130
4136
  id: {
4131
4137
  description: "The unique identifier for a form group",
4132
4138
  type: "string"
@@ -4182,21 +4188,21 @@ const Gs = "https://json-schema.org/draft/2020-12/schema", Ys = "https://farris-
4182
4188
  description: "",
4183
4189
  type: "object"
4184
4190
  }
4185
- }, Ks = [
4191
+ }, tl = [
4186
4192
  "id",
4187
4193
  "type",
4188
4194
  "contents"
4189
- ], el = {
4190
- $schema: Gs,
4191
- $id: Ys,
4192
- title: Xs,
4193
- description: Qs,
4194
- type: Js,
4195
- properties: Zs,
4196
- required: Ks
4195
+ ], nl = {
4196
+ $schema: Xs,
4197
+ $id: Qs,
4198
+ title: Js,
4199
+ description: Zs,
4200
+ type: Ks,
4201
+ properties: el,
4202
+ required: tl
4197
4203
  }, qn = /* @__PURE__ */ new Map([
4198
- ["appearance", Dt]
4199
- ]), tl = "https://json-schema.org/draft/2020-12/schema", nl = "https://farris-design.gitee.io/dynamic-form.schema.json", ol = "dynamic-form", il = "A Farris Data Collection Component", al = "object", rl = {
4204
+ ["appearance", jt]
4205
+ ]), ol = "https://json-schema.org/draft/2020-12/schema", il = "https://farris-design.gitee.io/dynamic-form.schema.json", al = "dynamic-form", rl = "A Farris Data Collection Component", sl = "object", ll = {
4200
4206
  id: {
4201
4207
  description: "The unique identifier for a form group",
4202
4208
  type: "string"
@@ -4305,27 +4311,27 @@ const Gs = "https://json-schema.org/draft/2020-12/schema", Ys = "https://farris-
4305
4311
  description: "",
4306
4312
  type: "string"
4307
4313
  }
4308
- }, sl = [
4314
+ }, cl = [
4309
4315
  "id",
4310
4316
  "type",
4311
4317
  "contents"
4312
- ], ll = {
4318
+ ], ul = {
4313
4319
  onClick: "点击事件",
4314
4320
  onChange: "ֵ值变化事件",
4315
4321
  event: "内部控件事件",
4316
4322
  callback: "内部控件属性回调事件"
4317
- }, cl = {
4318
- $schema: tl,
4319
- $id: nl,
4320
- title: ol,
4321
- description: il,
4322
- type: al,
4323
- properties: rl,
4324
- required: sl,
4325
- events: ll
4323
+ }, dl = {
4324
+ $schema: ol,
4325
+ $id: il,
4326
+ title: al,
4327
+ description: rl,
4328
+ type: sl,
4329
+ properties: ll,
4330
+ required: cl,
4331
+ events: ul
4326
4332
  };
4327
- var Ct = /* @__PURE__ */ ((e) => (e.Header = "header", e.Footer = "footer", e))(Ct || {}), Ot = /* @__PURE__ */ ((e) => (e.QUICK = "quick", e.FULL = "full", e))(Ot || {});
4328
- const jt = {
4333
+ var Ct = /* @__PURE__ */ ((e) => (e.Header = "header", e.Footer = "footer", e))(Ct || {}), Vt = /* @__PURE__ */ ((e) => (e.QUICK = "quick", e.FULL = "full", e))(Vt || {});
4334
+ const $t = {
4329
4335
  customClass: { type: String, default: "" },
4330
4336
  customStyle: { type: String, defaut: "" },
4331
4337
  /** 控制是否可见 */
@@ -4338,7 +4344,7 @@ const jt = {
4338
4344
  formData: { type: Object, default: null },
4339
4345
  /** 为动态字段指定样式*/
4340
4346
  layout: { type: String, default: "col-12 col-md-6 col-xl-3 col-el-2" }
4341
- }, ul = Object.assign({}, jt, {
4347
+ }, fl = Object.assign({}, $t, {
4342
4348
  // 是否渲染form层级
4343
4349
  canRenderForm: { type: Boolean, default: !0 },
4344
4350
  /**
@@ -4367,7 +4373,7 @@ const jt = {
4367
4373
  collapseLabel: { type: String, default: "收起" },
4368
4374
  enableAccordion: { type: Boolean, default: !0 },
4369
4375
  /** 模式 **/
4370
- mode: { type: String, default: Ot.QUICK },
4376
+ mode: { type: String, default: Vt.QUICK },
4371
4377
  /** 工具栏 */
4372
4378
  toolbar: { type: [Array, Function], default: [] },
4373
4379
  /** 设置头部的样式 */
@@ -4377,9 +4383,9 @@ const jt = {
4377
4383
  /** 更多按钮样式 */
4378
4384
  moreButtonClass: { type: String, default: "btn-link" }
4379
4385
  });
4380
- Qe(jt, el, qn, Un);
4381
- Qe(jt, cl, qn, Un);
4382
- function dl(e, t) {
4386
+ Qe($t, nl, qn, Un);
4387
+ Qe($t, dl, qn, Un);
4388
+ function ml(e, t) {
4383
4389
  function n(r) {
4384
4390
  return e.value && e.value[r];
4385
4391
  }
@@ -4399,29 +4405,29 @@ function dl(e, t) {
4399
4405
  onValueChange: i
4400
4406
  };
4401
4407
  }
4402
- const Rt = /* @__PURE__ */ je({
4408
+ const kt = /* @__PURE__ */ $e({
4403
4409
  name: "FDynamicForm",
4404
- props: ul,
4410
+ props: fl,
4405
4411
  emits: ["update:modelValue", "change", "event", "click"],
4406
4412
  setup(e, t) {
4407
4413
  const n = T(e.fields), o = /* @__PURE__ */ new Map(), i = T(e.callback);
4408
- Ki();
4409
- const a = ea(), r = T(e.formData || {}), s = dl(r, t);
4410
- ta(n.value).setup();
4414
+ ta();
4415
+ const a = na(), r = T(e.formData || {}), s = ml(r, t);
4416
+ oa(n.value).setup();
4411
4417
  const c = /* @__PURE__ */ new Map(), d = T(e.canRenderForm);
4412
4418
  let u = [], f = [], p = [];
4413
- const g = e.mode === Ot.FULL ? "contents" : "fields", {
4419
+ const g = e.mode === Vt.FULL ? "contents" : "fields", {
4414
4420
  mergeArray: y,
4415
4421
  resolveCallbacks: E,
4416
4422
  resolveEvents: P
4417
- } = na(), v = D(() => {
4418
- const C = Le.getLocale(), m = e.fields && e.fields.length > 0;
4423
+ } = ia(), v = D(() => {
4424
+ const C = De.getLocale(), m = e.fields && e.fields.length > 0;
4419
4425
  let w = {
4420
4426
  "f-form-layout": m,
4421
4427
  "farris-form": m,
4422
4428
  "f-dynamic-form": !(e.showHeader || e.showFooter)
4423
4429
  };
4424
- return w = Nt(w, e.customClass), e.adaptForLanguage && C && (w["farris-form-controls-inline"] = C !== "en"), w;
4430
+ return w = Lt(w, e.customClass), e.adaptForLanguage && C && (w["farris-form-controls-inline"] = C !== "en"), w;
4425
4431
  });
4426
4432
  function S() {
4427
4433
  function C(m, w) {
@@ -4432,8 +4438,8 @@ const Rt = /* @__PURE__ */ je({
4432
4438
  } = m.binding || {};
4433
4439
  return {
4434
4440
  modelValue: w.getValue(x),
4435
- "onUpdate:modelValue": (re) => {
4436
- w.setValue(x, L || x, re);
4441
+ "onUpdate:modelValue": (se) => {
4442
+ w.setValue(x, L || x, se);
4437
4443
  }
4438
4444
  };
4439
4445
  }
@@ -4460,20 +4466,20 @@ const Rt = /* @__PURE__ */ je({
4460
4466
  }
4461
4467
  function b(C) {
4462
4468
  const m = $(C);
4463
- let w = {}, x = "", L = {}, re = {};
4464
- if (e.mode === Ot.FULL) {
4469
+ let w = {}, x = "", L = {}, se = {};
4470
+ if (e.mode === Vt.FULL) {
4465
4471
  L = {
4466
4472
  ...P(C, t, m)
4467
- }, re = {
4473
+ }, se = {
4468
4474
  ...E(C, i, m)
4469
4475
  };
4470
- const ve = ia[m];
4471
- w = ve ? ve(C) : {}, x = F(w);
4476
+ const pe = ra[m];
4477
+ w = pe ? pe(C) : {}, x = F(w);
4472
4478
  } else {
4473
4479
  x = F(C);
4474
4480
  const {
4475
- fields: ve,
4476
- customClass: he,
4481
+ fields: pe,
4482
+ customClass: ge,
4477
4483
  ...Ee
4478
4484
  } = C;
4479
4485
  w = Ee;
@@ -4486,35 +4492,35 @@ const Rt = /* @__PURE__ */ je({
4486
4492
  ...M(C)
4487
4493
  },
4488
4494
  key: C.id,
4489
- ref: (ve) => {
4490
- if (ve && C.id && !a.has(C.id)) {
4491
- a.register(C.id, ve);
4492
- const he = {
4495
+ ref: (pe) => {
4496
+ if (pe && C.id && !a.has(C.id)) {
4497
+ a.register(C.id, pe);
4498
+ const ge = {
4493
4499
  token: C.id,
4494
4500
  name: "component:ready",
4495
4501
  type: $(C),
4496
- payloads: [T(ve)],
4502
+ payloads: [T(pe)],
4497
4503
  schema: C
4498
4504
  };
4499
- t.emit("event", he);
4505
+ t.emit("event", ge);
4500
4506
  }
4501
4507
  },
4502
- onVnodeUnmounted: (ve) => {
4508
+ onVnodeUnmounted: (pe) => {
4503
4509
  if (C.id && a.has(C.id)) {
4504
4510
  a.remove(C.id);
4505
- const he = {
4511
+ const ge = {
4506
4512
  token: C.id,
4507
4513
  name: "component:unmounted",
4508
4514
  type: $(C),
4509
- payloads: [ve],
4515
+ payloads: [pe],
4510
4516
  schema: C
4511
4517
  };
4512
- t.emit("event", he);
4518
+ t.emit("event", ge);
4513
4519
  }
4514
4520
  }
4515
4521
  },
4516
4522
  eventProps: L,
4517
- callbackProps: re
4523
+ callbackProps: se
4518
4524
  };
4519
4525
  }
4520
4526
  function j(C, m) {
@@ -4525,15 +4531,15 @@ const Rt = /* @__PURE__ */ je({
4525
4531
  const w = $(C), x = Qt[w];
4526
4532
  if (C.id && o.set(C.id, C), !x)
4527
4533
  return null;
4528
- const L = () => C[g] ? C[g].map((ve) => V(ve)) : null, re = (ve, he, Ee) => {
4534
+ const L = () => C[g] ? C[g].map((pe) => V(pe)) : null, se = (pe, ge, Ee) => {
4529
4535
  let Pe;
4530
- return Ee && Ee.length > 0 ? Pe = h(ve, {
4531
- ...he
4532
- }, Ee) : Pe = h(ve, {
4533
- ...he
4536
+ return Ee && Ee.length > 0 ? Pe = h(pe, {
4537
+ ...ge
4538
+ }, Ee) : Pe = h(pe, {
4539
+ ...ge
4534
4540
  }, null), Pe;
4535
- }, me = ((Te = c.get(C.id)) == null ? void 0 : Te.props) || {};
4536
- return C[g] && C[g].length > 0 ? re(x, me, [L()]) : C.slots ? re(x, me, [...Object.values(R(C.slots))]) : re(x, me);
4541
+ }, fe = ((Te = c.get(C.id)) == null ? void 0 : Te.props) || {};
4542
+ return C[g] && C[g].length > 0 ? se(x, fe, [L()]) : C.slots ? se(x, fe, [...Object.values(R(C.slots))]) : se(x, fe);
4537
4543
  }
4538
4544
  function O(C) {
4539
4545
  const m = $(C);
@@ -4542,17 +4548,17 @@ const Rt = /* @__PURE__ */ je({
4542
4548
  const {
4543
4549
  props: x,
4544
4550
  eventProps: L,
4545
- callbackProps: re
4546
- } = b(C), me = oa[m], Te = me ? me.editorResolver : null, {
4547
- componentEventProps: ve,
4548
- editorEventProps: he
4551
+ callbackProps: se
4552
+ } = b(C), fe = aa[m], Te = fe ? fe.editorResolver : null, {
4553
+ componentEventProps: pe,
4554
+ editorEventProps: ge
4549
4555
  } = L, {
4550
4556
  componentCallbackProps: Ee,
4551
4557
  editorCallbackProps: Pe
4552
- } = re;
4553
- if (ve && Object.keys(ve).length > 0 && Object.assign(x, ve), Ee && Object.keys(Ee).length > 0 && Object.assign(x, Ee), Te && he && Object.keys(he).length > 0) {
4558
+ } = se;
4559
+ if (pe && Object.keys(pe).length > 0 && Object.assign(x, pe), Ee && Object.keys(Ee).length > 0 && Object.assign(x, Ee), Te && ge && Object.keys(ge).length > 0) {
4554
4560
  const Fe = Te.resolve(C);
4555
- Object.assign(Fe, he);
4561
+ Object.assign(Fe, ge);
4556
4562
  }
4557
4563
  if (Te && Pe && Object.keys(Pe).length > 0) {
4558
4564
  const Fe = Te.resolve(C);
@@ -4560,7 +4566,7 @@ const Rt = /* @__PURE__ */ je({
4560
4566
  }
4561
4567
  if (x && Object.keys(x).length > 0) {
4562
4568
  const Fe = c.get(C.id);
4563
- Fe ? ci(Fe == null ? void 0 : Fe.props, x) : c.set(C.id, Zt({
4569
+ Fe ? di(Fe == null ? void 0 : Fe.props, x) : c.set(C.id, Zt({
4564
4570
  props: x
4565
4571
  }));
4566
4572
  }
@@ -4608,7 +4614,7 @@ const Rt = /* @__PURE__ */ je({
4608
4614
  function ie(C) {
4609
4615
  C.$forceUpdate && C.$forceUpdate();
4610
4616
  }
4611
- function se(C) {
4617
+ function le(C) {
4612
4618
  return s.getValue(C);
4613
4619
  }
4614
4620
  function q() {
@@ -4625,14 +4631,14 @@ const Rt = /* @__PURE__ */ je({
4625
4631
  }
4626
4632
  function Y(C, m) {
4627
4633
  const w = c.get(C);
4628
- li(w == null ? void 0 : w.props, m, y);
4634
+ ui(w == null ? void 0 : w.props, m, y);
4629
4635
  }
4630
4636
  t.expose({
4631
4637
  componentManager: a,
4632
4638
  rerender: ie,
4633
4639
  getProps: ee,
4634
4640
  setProps: Y,
4635
- getControlValue: se,
4641
+ getControlValue: le,
4636
4642
  setControlValue: G,
4637
4643
  getValues: q
4638
4644
  });
@@ -4665,8 +4671,8 @@ const Rt = /* @__PURE__ */ je({
4665
4671
  headerContentClass: m
4666
4672
  };
4667
4673
  }
4668
- const ae = D(() => typeof e.toolbar == "function" ? e.toolbar() : e.toolbar), Re = D(() => e.headerStyle ? typeof e.headerStyle == "function" ? e.headerStyle() : e.headerStyle : ""), Ve = D(() => e.footerStyle ? typeof e.footerStyle == "function" ? e.footerStyle() : e.footerStyle : "");
4669
- function ge(C, m) {
4674
+ const re = D(() => typeof e.toolbar == "function" ? e.toolbar() : e.toolbar), Re = D(() => e.headerStyle ? typeof e.headerStyle == "function" ? e.headerStyle() : e.headerStyle : ""), Ve = D(() => e.footerStyle ? typeof e.footerStyle == "function" ? e.footerStyle() : e.footerStyle : "");
4675
+ function ve(C, m) {
4670
4676
  t.emit("click", C, m);
4671
4677
  }
4672
4678
  function K() {
@@ -4682,14 +4688,14 @@ const Rt = /* @__PURE__ */ je({
4682
4688
  enableAccordion: e.enableAccordion ? "default" : "",
4683
4689
  headerContentClass: w,
4684
4690
  footerClass: m,
4685
- buttons: ae.value,
4691
+ buttons: re.value,
4686
4692
  headerStyle: Re.value,
4687
4693
  footerStyle: Ve.value,
4688
4694
  headerTitleRenderFunction: e.showHeader && e.headerTitleRenderFunction ? () => e.headerTitleRenderFunction() : null,
4689
4695
  headerContentRenderFunction: e.showHeader && e.headerContentRenderFunction ? () => e.headerContentRenderFunction() : null,
4690
4696
  footerRenderFunction: e.showFooter && e.footerRenderFunction ? () => e.footerRenderFunction() : null,
4691
4697
  buttonsClass: "col-auto",
4692
- onClick: ge,
4698
+ onClick: ve,
4693
4699
  moreButtonClass: e.moreButtonClass
4694
4700
  }, {
4695
4701
  default: () => Ie(p),
@@ -4698,20 +4704,20 @@ const Rt = /* @__PURE__ */ je({
4698
4704
  }
4699
4705
  return () => e.visible ? e.showHeader || e.showFooter ? K() : d.value && Ie(n.value) || !d.value && oe(n.value) : null;
4700
4706
  }
4701
- }), wn = /* @__PURE__ */ je({
4707
+ }), wn = /* @__PURE__ */ $e({
4702
4708
  name: "FResponseForm",
4703
- props: jt,
4709
+ props: $t,
4704
4710
  emits: [],
4705
4711
  setup(e, t) {
4706
4712
  var u;
4707
4713
  const n = T(), o = T(), i = D(() => {
4708
- const f = Le.getLocale(), p = e.fields && e.fields.length > 0;
4714
+ const f = De.getLocale(), p = e.fields && e.fields.length > 0;
4709
4715
  let g = {
4710
4716
  "drag-container": !0,
4711
4717
  "f-form-layout": p,
4712
4718
  "farris-form": p
4713
4719
  };
4714
- return g = Nt(g, e.customClass), e.adaptForLanguage && f && (g["farris-form-controls-inline"] = f !== "en"), g;
4720
+ return g = Lt(g, e.customClass), e.adaptForLanguage && f && (g["farris-form-controls-inline"] = f !== "en"), g;
4715
4721
  }), a = (u = o.value) == null ? void 0 : u.componentManager;
4716
4722
  function r(f) {
4717
4723
  o.value.render(f);
@@ -4739,7 +4745,7 @@ const Rt = /* @__PURE__ */ je({
4739
4745
  ref: n,
4740
4746
  class: i.value,
4741
4747
  style: e.customStyle
4742
- }, [t.slots.default && t.slots.default(), e.fields && e.fields.length > 0 && h(Rt, {
4748
+ }, [t.slots.default && t.slots.default(), e.fields && e.fields.length > 0 && h(kt, {
4743
4749
  ref: o,
4744
4750
  fields: e.fields,
4745
4751
  canRenderForm: !1,
@@ -4747,7 +4753,7 @@ const Rt = /* @__PURE__ */ je({
4747
4753
  layout: e.layout
4748
4754
  }, null)]), [[en("area-response")]]);
4749
4755
  }
4750
- }), fl = {
4756
+ }), pl = {
4751
4757
  id: { type: String, default: "" },
4752
4758
  customClass: { type: String, default: "" },
4753
4759
  customStyle: { type: String, default: "" },
@@ -4771,7 +4777,7 @@ const Rt = /* @__PURE__ */ je({
4771
4777
  enableTips: { type: Boolean, default: !1 },
4772
4778
  tipsContent: { type: [Object, String], default: "" },
4773
4779
  linkLabel: { type: String, default: !1 }
4774
- }, ml = {
4780
+ }, vl = {
4775
4781
  id: { type: String },
4776
4782
  required: { type: Boolean, default: !1 },
4777
4783
  text: { type: String, default: "" },
@@ -4783,9 +4789,9 @@ const Rt = /* @__PURE__ */ je({
4783
4789
  */
4784
4790
  showType: { type: String, default: "visible" },
4785
4791
  isLink: { type: Boolean, default: !1 }
4786
- }, pl = /* @__PURE__ */ je({
4792
+ }, gl = /* @__PURE__ */ $e({
4787
4793
  name: "FDynamicFormLabel",
4788
- props: ml,
4794
+ props: vl,
4789
4795
  emits: ["clickLabel"],
4790
4796
  setup(e, t) {
4791
4797
  T(e.title || e.text);
@@ -4822,24 +4828,24 @@ const Rt = /* @__PURE__ */ je({
4822
4828
  class: "farris-label-info text-danger"
4823
4829
  }, [kn("*")]), e.showType === "visible" && o.value])]);
4824
4830
  }
4825
- }), { globalStorageKey: vl } = In(), A = {}, H = {}, _ = {}, U = {};
4826
- async function gl() {
4831
+ }), { globalStorageKey: hl } = In(), A = {}, H = {}, z = {}, U = {};
4832
+ async function yl() {
4827
4833
  {
4828
4834
  const e = {
4829
- schemaMap: ii,
4830
- propertyConfigSchemaMap: oi,
4831
- propertyEffectMap: ni,
4832
- schemaResolverMap: ti
4835
+ schemaMap: ri,
4836
+ propertyConfigSchemaMap: ai,
4837
+ propertyEffectMap: ii,
4838
+ schemaResolverMap: oi
4833
4839
  };
4834
- ra.register(A, H, _, U), aa.register(A, H, _, U), sa.register(A, H, _, U, e), la.register(A, H, _, U), ca.register(A, H, _, U), bt.register(A, H, _, U), ua.register(A, H, _, U, e), da.register(A, H, _, U), yn.register(A, H, _, U, e), bn.register(A, H, _, U, e), yn.register(A, H, _, U, e), bn.register(A, H, _, U, e), fa.register(A, H, _, U, e), ma.register(A, H, _, U, e), pa.register(A, H, _, U), ga.register(A, H, _, U, e), ha.register(A, H, _, U, e), va.register(A, H, _, U, e), ya.register(A, H, _, U, e), ba.register(A, H, _, U, e), Ca.register(A, H, _, U), wa.register(A, H, _, U, e), Ta.register(A, H, _, U), yr.register(A, H, _, U), Sa.register(A, H, _, U, e), xa.register(A, H, _, U), dr.register(A, H, _, U), Ia.register(A, H, _, U, e), Ea.register(A, H, _, U, e), Pa.register(A, H, _, U, e), Ra.register(A, H, _, U, e), Ma.register(A, H, _, U), ka.register(A, H, _, U, e), Ba.register(A, H, _, U), Oa.register(A, H, _, U, e), Va.register(A, H, _, U, e), Na.register(A, H, _, U, e), La.register(A, H, _, U), Da.register(A, H, _, U, e), ja.register(A, H, _, U), $a.register(A, H, _, U, e), Aa.register(A, H, _, U, e), Ha.register(A, H, _, U, e), _a.register(A, H, _, U, e), za.register(A, H, _, U, e), Ua.register(A, H, _, U, e), qa.register(A, H, _, U), nn.register(A, H, _, U, e), lr.register(A, H, _), Wa.register(A, H, _, U, e), Ga.register(A, H, _, U, e), Ya.register(A, H, _, U), Xa.register(A, H, _, U, e), Qa.register(A, H, _, U, e), Ja.register(A, H, _, U, e), mr.register(A, H, _, U), Za.register(A, H, _, U, e), Ka.register(A, H, _, U, e), er.register(A, H, _, U), tr.register(A, H, _, U, e), nr.register(A, H, _, U, e), or.register(A, H, _, U, e), ar.register(A, H, _, U), ir.register(A, H, _, U, e), rr.register(A, H, _, U), sr.register(A, H, _, U, e), cr.register(A, H, _, U, e), Fa.register(A, H, _, U, e), ur.register(A, H, _, U, e), fr.register(A, H, _, U, e), pr.register(A, H, _, U, e), vr.register(A, H, _, U, e), gr.register(A, H, _, U, e), hr.register(A, H, _, U, e), br.register(A, H, _, U), Cr.register(A, H, _, U, e), wr.register(A, H, _, U), Tr.register(A, H, _, U), Sr.register(A, H, _, U), xr.register(A, H, _, U, e), Fr.register(A, H, _, U, e), Ir.register(A, H, _, U, e), Er.register(A, H, _, U, e);
4835
- const t = window[vl];
4840
+ la.register(A, H, z, U), sa.register(A, H, z, U), ca.register(A, H, z, U, e), ua.register(A, H, z, U), da.register(A, H, z, U), bt.register(A, H, z, U), fa.register(A, H, z, U, e), ma.register(A, H, z, U), yn.register(A, H, z, U, e), bn.register(A, H, z, U, e), yn.register(A, H, z, U, e), bn.register(A, H, z, U, e), pa.register(A, H, z, U, e), va.register(A, H, z, U, e), ga.register(A, H, z, U), ya.register(A, H, z, U, e), ba.register(A, H, z, U, e), ha.register(A, H, z, U, e), Ca.register(A, H, z, U, e), wa.register(A, H, z, U, e), Ta.register(A, H, z, U), Sa.register(A, H, z, U, e), xa.register(A, H, z, U), Cr.register(A, H, z, U), Fa.register(A, H, z, U, e), Ia.register(A, H, z, U), mr.register(A, H, z, U), Pa.register(A, H, z, U, e), Ma.register(A, H, z, U, e), Ra.register(A, H, z, U, e), Ba.register(A, H, z, U, e), ka.register(A, H, z, U), Oa.register(A, H, z, U, e), Va.register(A, H, z, U), Na.register(A, H, z, U, e), La.register(A, H, z, U, e), Da.register(A, H, z, U, e), ja.register(A, H, z, U), $a.register(A, H, z, U, e), Aa.register(A, H, z, U), Ha.register(A, H, z, U, e), _a.register(A, H, z, U, e), za.register(A, H, z, U, e), Ua.register(A, H, z, U, e), qa.register(A, H, z, U, e), Wa.register(A, H, z, U, e), Ga.register(A, H, z, U), nn.register(A, H, z, U, e), ur.register(A, H, z), Ya.register(A, H, z, U, e), Xa.register(A, H, z, U, e), Qa.register(A, H, z, U), Ja.register(A, H, z, U, e), Za.register(A, H, z, U, e), Ka.register(A, H, z, U, e), vr.register(A, H, z, U), er.register(A, H, z, U, e), tr.register(A, H, z, U, e), nr.register(A, H, z, U), or.register(A, H, z, U, e), ir.register(A, H, z, U, e), ar.register(A, H, z, U, e), sr.register(A, H, z, U), rr.register(A, H, z, U, e), lr.register(A, H, z, U), cr.register(A, H, z, U, e), dr.register(A, H, z, U, e), Ea.register(A, H, z, U, e), fr.register(A, H, z, U, e), pr.register(A, H, z, U, e), gr.register(A, H, z, U, e), hr.register(A, H, z, U, e), yr.register(A, H, z, U, e), br.register(A, H, z, U, e), wr.register(A, H, z, U), Tr.register(A, H, z, U, e), Sr.register(A, H, z, U), xr.register(A, H, z, U), Fr.register(A, H, z, U), Ir.register(A, H, z, U, e), Er.register(A, H, z, U, e), Pr.register(A, H, z, U, e), Mr.register(A, H, z, U, e);
4841
+ const t = window[hl];
4836
4842
  if (t)
4837
4843
  for (const n in t)
4838
- t[n].createPropsResolver = Qe, t[n].register(A, H, _);
4844
+ t[n].createPropsResolver = Qe, t[n].register(A, H, z);
4839
4845
  }
4840
4846
  }
4841
4847
  function Wn() {
4842
- gl();
4848
+ yl();
4843
4849
  function e(r) {
4844
4850
  const s = A[r];
4845
4851
  if (!s)
@@ -4949,7 +4955,7 @@ function Wn() {
4949
4955
  }
4950
4956
  return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o, getMousedownFunctionName: i, getMouseupFunctionName: a };
4951
4957
  }
4952
- const hl = {
4958
+ const bl = {
4953
4959
  /**
4954
4960
  * 显示的错误信息
4955
4961
  */
@@ -4957,9 +4963,9 @@ const hl = {
4957
4963
  type: Object,
4958
4964
  default: null
4959
4965
  }
4960
- }, yl = /* @__PURE__ */ je({
4966
+ }, Cl = /* @__PURE__ */ $e({
4961
4967
  name: "FValidationMessage",
4962
- props: hl,
4968
+ props: bl,
4963
4969
  emits: [],
4964
4970
  setup(e, t) {
4965
4971
  const n = T(e.errors);
@@ -4985,9 +4991,9 @@ const hl = {
4985
4991
  class: "f-feedback-message"
4986
4992
  }, [i.value])]);
4987
4993
  }
4988
- }), Tn = /* @__PURE__ */ je({
4994
+ }), Tn = /* @__PURE__ */ $e({
4989
4995
  name: "FDynamicFormGroup",
4990
- props: fl,
4996
+ props: pl,
4991
4997
  emits: ["change", "update:modelValue", "clickLabel"],
4992
4998
  setup(e, t) {
4993
4999
  var X;
@@ -5032,8 +5038,8 @@ const hl = {
5032
5038
  };
5033
5039
  }
5034
5040
  const j = D(() => {
5035
- const N = i.value.type || "input-group", J = P(N), Z = E(N, i.value), ie = v(N), se = S(i.value.type);
5036
- return se && (Z[se] = F(Z[se])), ie && (Z[ie] = b(Z[ie])), (Z.id == null || Z.id === "") && (Z.id = n.value), N === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (Z.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (Z.onEndValueChange = i.value.onEndValueChange)) : N === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? (Z["onUpdate:idValue"] = i.value["onUpdate:idValue"], Z.id = n.value) : N === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? Z.onSelectionChange = i.value.onSelectionChange : N === "property-editor" && (Z.onBeforeOpenVariables = i.value.onBeforeOpenVariables), (N === "lookup" || N === "combo-list" || N === "date-picker") && (Z.title = a.value), () => h(J, Lt({
5041
+ const N = i.value.type || "input-group", J = P(N), Z = E(N, i.value), ie = v(N), le = S(i.value.type);
5042
+ return le && (Z[le] = F(Z[le])), ie && (Z[ie] = b(Z[ie])), (Z.id == null || Z.id === "") && (Z.id = n.value), N === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (Z.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (Z.onEndValueChange = i.value.onEndValueChange)) : N === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? (Z["onUpdate:idValue"] = i.value["onUpdate:idValue"], Z.id = n.value) : N === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? Z.onSelectionChange = i.value.onSelectionChange : N === "property-editor" && (Z.onBeforeOpenVariables = i.value.onBeforeOpenVariables), (N === "lookup" || N === "combo-list" || N === "date-picker") && (Z.title = a.value), () => h(J, Dt({
5037
5043
  ref: u
5038
5044
  }, Z, {
5039
5045
  modelValue: r.value,
@@ -5041,14 +5047,14 @@ const hl = {
5041
5047
  }), t.slots);
5042
5048
  });
5043
5049
  function V() {
5044
- return h(yl, {
5050
+ return h(Cl, {
5045
5051
  id: `${n.value}-validation-message`,
5046
5052
  errors: f.value
5047
5053
  }, null);
5048
5054
  }
5049
- Ce([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([N, J, Z, ie, se, q, G, ee, Y, oe]) => {
5055
+ Ce([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([N, J, Z, ie, le, q, G, ee, Y, oe]) => {
5050
5056
  var Ie;
5051
- n.value = N, o.value = J, i.value = Z, a.value = ie, r.value = se, s.value = q, l.value = ((Ie = i.value) == null ? void 0 : Ie.required) || G, c.value = ee, d.value = Y, f.value = oe;
5057
+ n.value = N, o.value = J, i.value = Z, a.value = ie, r.value = le, s.value = q, l.value = ((Ie = i.value) == null ? void 0 : Ie.required) || G, c.value = ee, d.value = Y, f.value = oe;
5052
5058
  });
5053
5059
  function O(N) {
5054
5060
  t.emit("clickLabel", N);
@@ -5064,7 +5070,7 @@ const hl = {
5064
5070
  style: R.value
5065
5071
  }, [h("div", {
5066
5072
  class: M.value
5067
- }, [t.slots.label ? t.slots.label() : h(pl, {
5073
+ }, [t.slots.label ? t.slots.label() : h(gl, {
5068
5074
  id: `${n.value}-lable`,
5069
5075
  showType: y.value,
5070
5076
  required: l.value,
@@ -5074,7 +5080,7 @@ const hl = {
5074
5080
  onClickLabel: O
5075
5081
  }, null), h("div", {
5076
5082
  class: "farris-input-wrap"
5077
- }, [t.slots.content ? t.slots.content() : j.value(), V()]), !!e.enableTips && h(Pr, null, {
5083
+ }, [t.slots.content ? t.slots.content() : j.value(), V()]), !!e.enableTips && h(Rr, null, {
5078
5084
  default: () => [h("span", {
5079
5085
  class: "farris-label-tips ml-1"
5080
5086
  }, [h("i", {
@@ -5083,7 +5089,7 @@ const hl = {
5083
5089
  contentTemplate: e.tipsContent
5084
5090
  })])])]);
5085
5091
  }
5086
- }), bl = {
5092
+ }), wl = {
5087
5093
  id: { type: String, default: "" },
5088
5094
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
5089
5095
  editor: { type: Object, default: {} },
@@ -5097,9 +5103,9 @@ const hl = {
5097
5103
  * 作为内嵌编辑器被创建后默认选中文本
5098
5104
  */
5099
5105
  selectOnCreated: { type: Boolean, default: !1 }
5100
- }, Sn = /* @__PURE__ */ je({
5106
+ }, Sn = /* @__PURE__ */ $e({
5101
5107
  name: "FDynamicFormInput",
5102
- props: bl,
5108
+ props: wl,
5103
5109
  emits: ["change", "update:modelValue", "mousedown", "mouseup"],
5104
5110
  setup(e, t) {
5105
5111
  const n = T(e.id), o = T(e.editor), i = T(e.modelValue), {
@@ -5144,7 +5150,7 @@ const hl = {
5144
5150
  const $ = l(o.value.type);
5145
5151
  S[$] = f;
5146
5152
  const F = c(o.value.type);
5147
- return S[F] = p, S.id = n.value, () => h(v, Lt(S, {
5153
+ return S[F] = p, S.id = n.value, () => h(v, Dt(S, {
5148
5154
  modelValue: i.value,
5149
5155
  "onUpdate:modelValue": (b) => i.value = b
5150
5156
  }), null);
@@ -5154,10 +5160,10 @@ const hl = {
5154
5160
  }), () => P.value();
5155
5161
  }
5156
5162
  });
5157
- Rt.install = (e) => {
5158
- e.component(wn.name, wn).component(Sn.name, Sn).component(Rt.name, Rt).component(Tn.name, Tn);
5163
+ kt.install = (e) => {
5164
+ e.component(wn.name, wn).component(Sn.name, Sn).component(kt.name, kt).component(Tn.name, Tn);
5159
5165
  };
5160
- const { globalStorageKey: Qu } = In(), Cl = {
5166
+ const { globalStorageKey: Zu } = In(), Tl = {
5161
5167
  /**
5162
5168
  * 允许点击蒙层关闭对话框
5163
5169
  * @default false
@@ -5375,7 +5381,7 @@ class at {
5375
5381
  return this.width = t.width, this.height = t.height, this;
5376
5382
  }
5377
5383
  }
5378
- function wl(e, t) {
5384
+ function Sl(e, t) {
5379
5385
  const n = T(), o = T(), i = T(), a = T(), r = T(), s = T(), l = T(), c = T(), d = T(), u = T(), f = T(), p = T(e.resizeable), g = T(), y = T(e.draggable), E = T(!1);
5380
5386
  function P() {
5381
5387
  const q = o.value || document.body, G = window.getComputedStyle(q);
@@ -5549,7 +5555,7 @@ function wl(e, t) {
5549
5555
  window.removeEventListener("resize", q);
5550
5556
  };
5551
5557
  }
5552
- const se = ie();
5558
+ const le = ie();
5553
5559
  return {
5554
5560
  renderResizeBar: X,
5555
5561
  boundingElement: o,
@@ -5558,11 +5564,11 @@ function wl(e, t) {
5558
5564
  restore: J,
5559
5565
  allowDrag: y,
5560
5566
  isMaximized: E,
5561
- unWindowResizeHandle: se,
5567
+ unWindowResizeHandle: le,
5562
5568
  moveToCenter: Z
5563
5569
  };
5564
5570
  }
5565
- function Tl(e, t, n) {
5571
+ function xl(e, t, n) {
5566
5572
  const o = T(), i = T(e.draggable), a = T(e.lockAxis), r = T(), s = T(), l = T(!1), c = T(new Be(0, 0)), d = T(new Be(0, 0)), u = T(new Be(0, 0)), f = T(new Be(0, 0));
5567
5573
  Ce(() => n.value, (F) => {
5568
5574
  r.value.style.cursor = F ? "move" : "default";
@@ -5658,7 +5664,7 @@ function Gn(e, t) {
5658
5664
  };
5659
5665
  }
5660
5666
  }
5661
- function Sl(e, t) {
5667
+ function Fl(e, t) {
5662
5668
  const n = T(e.enableEsc);
5663
5669
  let o = null;
5664
5670
  return n.value ? (o = Gn("Escape", (i) => {
@@ -5667,7 +5673,7 @@ function Sl(e, t) {
5667
5673
  remove: o
5668
5674
  }) : null;
5669
5675
  }
5670
- function xl(e, t) {
5676
+ function Il(e, t) {
5671
5677
  const n = T(e.enableEnter);
5672
5678
  let o = null;
5673
5679
  return n.value ? (o = Gn("Enter", (i) => {
@@ -5676,13 +5682,13 @@ function xl(e, t) {
5676
5682
  remove: o
5677
5683
  }) : null;
5678
5684
  }
5679
- const wt = /* @__PURE__ */ je({
5685
+ const wt = /* @__PURE__ */ $e({
5680
5686
  name: "FModal",
5681
- props: Cl,
5687
+ props: Tl,
5682
5688
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove", "buttonClick"],
5683
5689
  setup(e, t) {
5684
5690
  const n = T(e.width || 300), o = T(e.height || 200), i = T(e.modelValue), a = T(""), r = T(e.class), s = T(e.fitContent), l = T(e.showHeader), c = T(""), d = T(e.showCloseButton), u = T(e.showMaxButton), f = T(!1), p = T(e.dialogType), g = T(e.src), y = T(""), E = T(e.showButtons), P = T(e.title), v = T(e.containment || null), S = T();
5685
- P.value === "错误提示" && (P.value = Le.getLocaleValue("messageBox.errorTitle"));
5691
+ P.value === "错误提示" && (P.value = De.getLocaleValue("messageBox.errorTitle"));
5686
5692
  const M = T(!1);
5687
5693
  function R() {
5688
5694
  const B = document.querySelectorAll(".farris-modal").length;
@@ -5701,14 +5707,14 @@ const wt = /* @__PURE__ */ je({
5701
5707
  }
5702
5708
  const F = [{
5703
5709
  name: "cancel",
5704
- text: Le.getLocaleValue("messageBox.cancel") || "取消",
5710
+ text: De.getLocaleValue("messageBox.cancel") || "取消",
5705
5711
  class: "btn btn-secondary",
5706
5712
  handle: (B) => {
5707
5713
  $(B, !1);
5708
5714
  }
5709
5715
  }, {
5710
5716
  name: "accept",
5711
- text: Le.getLocaleValue("messageBox.ok") || "确定",
5717
+ text: De.getLocaleValue("messageBox.ok") || "确定",
5712
5718
  class: "btn btn-primary",
5713
5719
  handle: (B) => {
5714
5720
  $(B, !0);
@@ -5717,14 +5723,14 @@ const wt = /* @__PURE__ */ je({
5717
5723
  renderResizeBar: J,
5718
5724
  maximize: Z,
5719
5725
  restore: ie,
5720
- boundingElement: se,
5726
+ boundingElement: le,
5721
5727
  resizedEventParam: q,
5722
5728
  allowDrag: G,
5723
5729
  unWindowResizeHandle: ee,
5724
5730
  moveToCenter: Y
5725
- } = wl(e), {
5731
+ } = Sl(e), {
5726
5732
  registerDraggle: oe
5727
- } = Tl(e, t, G);
5733
+ } = xl(e, t, G);
5728
5734
  function Ie() {
5729
5735
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
5730
5736
  }
@@ -5732,7 +5738,7 @@ const wt = /* @__PURE__ */ je({
5732
5738
  B !== ne && (P.value = B);
5733
5739
  }), Ce(() => e.modelValue, (B, ne) => {
5734
5740
  B !== ne && (i.value = B, i.value && e.draggable && ke(() => {
5735
- X.value && !v.value && (v.value = X.value.parentElement, se.value = v.value, oe(O.value, X.value, se.value), Y());
5741
+ X.value && !v.value && (v.value = X.value.parentElement, le.value = v.value, oe(O.value, X.value, le.value), Y());
5736
5742
  }), B || (v.value && (v.value = null), R())), i.value ? M.value = Ie() : (N.value = !1, G.value = e.draggable);
5737
5743
  }), Ce(() => e.showHeader, (B, ne) => {
5738
5744
  B !== ne && (l.value = B);
@@ -5750,7 +5756,7 @@ const wt = /* @__PURE__ */ je({
5750
5756
  }), Ce(() => e.class, (B, ne) => {
5751
5757
  r.value = B;
5752
5758
  });
5753
- const we = D(() => (i.value && document.body.classList.add("modal-open"), i.value)), ae = D(() => {
5759
+ const we = D(() => (i.value && document.body.classList.add("modal-open"), i.value)), re = D(() => {
5754
5760
  var Se;
5755
5761
  const B = {
5756
5762
  modal: !0,
@@ -5760,14 +5766,14 @@ const wt = /* @__PURE__ */ je({
5760
5766
  };
5761
5767
  B["f-modal-fitContent"] = !!s.value, B.show = !!we.value;
5762
5768
  const ne = (Se = e.maskClass) == null ? void 0 : Se.split(" ");
5763
- return ne == null || ne.reduce((xe, $e) => (xe[$e] = !0, xe), B), B;
5769
+ return ne == null || ne.reduce((xe, Ae) => (xe[Ae] = !0, xe), B), B;
5764
5770
  }), Re = D(() => {
5765
5771
  var Se;
5766
5772
  const B = {
5767
5773
  "modal-dialog": !0
5768
5774
  }, ne = (Se = r.value) == null ? void 0 : Se.split(" ");
5769
- return ne == null || ne.reduce((xe, $e) => (xe[$e] = !0, xe), B), B;
5770
- }), Ve = () => Jt() && !e.isMessager || !!e.fullscreen, ge = D(() => {
5775
+ return ne == null || ne.reduce((xe, Ae) => (xe[Ae] = !0, xe), B), B;
5776
+ }), Ve = () => Jt() && !e.isMessager || !!e.fullscreen, ve = D(() => {
5771
5777
  const B = document.documentElement.clientWidth, ne = document.documentElement.clientHeight;
5772
5778
  if (N.value)
5773
5779
  return {
@@ -5778,9 +5784,9 @@ const wt = /* @__PURE__ */ je({
5778
5784
  height: "100vh",
5779
5785
  margin: "0"
5780
5786
  };
5781
- const Se = Math.min(n.value, B), xe = e.position === "right" ? "100%" : s.value ? "auto" : `${Math.min(o.value, ne - 10)}px`, $e = `${(window.innerHeight - (xe === "100%" || xe === "auto" ? 0 : parseInt(xe))) / 2}px`, ft = e.position === "right" ? `${window.innerWidth - Se}px` : `${(window.innerWidth - Se) / 2}px`, it = {
5787
+ const Se = Math.min(n.value, B), xe = e.position === "right" ? "100%" : s.value ? "auto" : `${Math.min(o.value, ne - 10)}px`, Ae = `${(window.innerHeight - (xe === "100%" || xe === "auto" ? 0 : parseInt(xe))) / 2}px`, ft = e.position === "right" ? `${window.innerWidth - Se}px` : `${(window.innerWidth - Se) / 2}px`, it = {
5782
5788
  position: "absolute",
5783
- top: $e,
5789
+ top: Ae,
5784
5790
  left: ft,
5785
5791
  width: Jt() ? "auto" : `${Se}px`,
5786
5792
  height: xe
@@ -5810,15 +5816,15 @@ const wt = /* @__PURE__ */ je({
5810
5816
  "f-utils-flex-column": p.value === "iframe",
5811
5817
  "f-utils-fill": !0
5812
5818
  }));
5813
- function re() {
5819
+ function se() {
5814
5820
  return {
5815
5821
  height: `${e.footerHeight || 60}px`
5816
5822
  };
5817
5823
  }
5818
- const me = D(() => {
5824
+ const fe = D(() => {
5819
5825
  const B = {
5820
5826
  textAlgin: y.value
5821
- }, ne = re();
5827
+ }, ne = se();
5822
5828
  return Object.assign(B, ne);
5823
5829
  });
5824
5830
  function Te(B) {
@@ -5828,25 +5834,25 @@ const wt = /* @__PURE__ */ je({
5828
5834
  }
5829
5835
  Z(), N.value = !0;
5830
5836
  }
5831
- async function ve(B, ne) {
5837
+ async function pe(B, ne) {
5832
5838
  B.handle ? await B.handle(ne, B) && t.emit("closed", ne) : t.emit("buttonClick", {
5833
5839
  button: B,
5834
5840
  $event: ne
5835
5841
  });
5836
5842
  }
5837
- function he(B) {
5843
+ function ge(B) {
5838
5844
  B.width && (n.value = B.width), B.height && (o.value = B.height), B.buttons && (b.value = B.buttons), B.title && (P.value = B.title);
5839
5845
  }
5840
5846
  let Ee = null, Pe = null;
5841
- zo(() => {
5847
+ qo(() => {
5842
5848
  M.value = Ie();
5843
5849
  }), Ke(() => {
5844
- X.value && !v.value && (v.value = X.value.parentElement, se.value = v.value, oe(O.value, X.value, se.value)), we.value && document.body.classList.add("modal-open"), Ee = Sl(e, t), Pe = xl(e, t);
5850
+ X.value && !v.value && (v.value = X.value.parentElement, le.value = v.value, oe(O.value, X.value, le.value)), we.value && document.body.classList.add("modal-open"), Ee = Fl(e, t), Pe = Il(e, t);
5845
5851
  }), rt(() => {
5846
5852
  ee && ee(), Ee && Ee.remove(), Pe && Pe.remove();
5847
5853
  }), t.expose({
5848
5854
  modalElementRef: X,
5849
- updateModalOptions: he,
5855
+ updateModalOptions: ge,
5850
5856
  close: $,
5851
5857
  maxDialog: Te,
5852
5858
  isMaximized: N,
@@ -5893,7 +5899,7 @@ const wt = /* @__PURE__ */ je({
5893
5899
  function lt() {
5894
5900
  return h("div", {
5895
5901
  class: "modal-footer",
5896
- style: me.value
5902
+ style: fe.value
5897
5903
  }, [b.value && h("div", {
5898
5904
  class: "buttons",
5899
5905
  onWheel: st
@@ -5906,8 +5912,8 @@ const wt = /* @__PURE__ */ je({
5906
5912
  type: "button",
5907
5913
  disabled: ne.value,
5908
5914
  class: Se + (B.iconClass ? " btn-icontext" : "") + (B.visible === !1 ? "d-none" : ""),
5909
- onClick: ($e) => {
5910
- ve(B, $e);
5915
+ onClick: (Ae) => {
5916
+ pe(B, Ae);
5911
5917
  }
5912
5918
  }, [!!B.iconClass && h("i", {
5913
5919
  class: B.iconClass
@@ -5953,7 +5959,7 @@ const wt = /* @__PURE__ */ je({
5953
5959
  return h("div", {
5954
5960
  id: a.value,
5955
5961
  class: Re.value,
5956
- style: ge.value,
5962
+ style: ve.value,
5957
5963
  ref: X
5958
5964
  }, [e.showFloatingClose && Fe(), h("div", {
5959
5965
  class: m.value
@@ -5970,9 +5976,9 @@ const wt = /* @__PURE__ */ je({
5970
5976
  function Me(B) {
5971
5977
  return B || "body";
5972
5978
  }
5973
- return Uo(() => {
5979
+ return Wo(() => {
5974
5980
  we.value && (K.value = vn() || 1050);
5975
- }), () => h(qo, {
5981
+ }), () => h(Go, {
5976
5982
  to: Me(e.host)
5977
5983
  }, {
5978
5984
  default: () => [we.value && h(Rn, {
@@ -5981,7 +5987,7 @@ const wt = /* @__PURE__ */ je({
5981
5987
  }, {
5982
5988
  default: () => [h("div", {
5983
5989
  ref: S,
5984
- class: ae.value,
5990
+ class: re.value,
5985
5991
  style: C.value,
5986
5992
  onClick: et
5987
5993
  }, [ot()])]
@@ -5995,7 +6001,7 @@ function Yn(e) {
5995
6001
  if (e.render && typeof e.render == "function")
5996
6002
  return e.render;
5997
6003
  }
5998
- function Fl(e) {
6004
+ function El(e) {
5999
6005
  const t = document.createElement("div");
6000
6006
  t.style.display = "contents";
6001
6007
  const n = Mn({
@@ -6039,9 +6045,9 @@ function Fl(e) {
6039
6045
  });
6040
6046
  }
6041
6047
  });
6042
- return document.body.appendChild(t), n.use(Le.i18n), n.mount(t), n;
6048
+ return document.body.appendChild(t), n.use(De.i18n), n.mount(t), n;
6043
6049
  }
6044
- class Il {
6050
+ class Pl {
6045
6051
  // private activeModalInstance = computed(() => {
6046
6052
  // return this.modalRefs[this.activeModalIndex.value];
6047
6053
  // });
@@ -6075,7 +6081,7 @@ class Il {
6075
6081
  showButtons: !0,
6076
6082
  showHeader: !0
6077
6083
  }, t);
6078
- return Fl(n);
6084
+ return El(n);
6079
6085
  }
6080
6086
  close(t) {
6081
6087
  var n, o;
@@ -6118,7 +6124,7 @@ class Il {
6118
6124
  height: P
6119
6125
  } = o.value, v = this.adaptToWindow(E || 500, P || 320);
6120
6126
  Object.assign(o.value, v);
6121
- const S = T(), M = () => h(wt, Lt({
6127
+ const S = T(), M = () => h(wt, Dt({
6122
6128
  ref: S,
6123
6129
  modelValue: i.value,
6124
6130
  "onUpdate:modelValue": (b) => i.value = b
@@ -6135,7 +6141,7 @@ class Il {
6135
6141
  default: () => [f && f(this.app)]
6136
6142
  });
6137
6143
  u = ((b) => {
6138
- const j = Wo(M, b);
6144
+ const j = Yo(M, b);
6139
6145
  return j.appContext = this.appContext, Gt(j, n), j;
6140
6146
  })({
6141
6147
  ...o.value
@@ -6147,7 +6153,7 @@ class Il {
6147
6153
  o.value = {
6148
6154
  ...o.value,
6149
6155
  ...b
6150
- }, u && Gt(Go(u, {
6156
+ }, u && Gt(Xo(u, {
6151
6157
  ...o
6152
6158
  }), n);
6153
6159
  };
@@ -6168,14 +6174,14 @@ class Il {
6168
6174
  };
6169
6175
  }
6170
6176
  }
6171
- const El = Symbol("FModalService");
6177
+ const Ml = Symbol("FModalService");
6172
6178
  wt.install = (e) => {
6173
6179
  e.component(wt.name, wt);
6174
- const t = new Il(e);
6175
- e.provide(El, t), e.provide("FModalService", t);
6180
+ const t = new Pl(e);
6181
+ e.provide(Ml, t), e.provide("FModalService", t);
6176
6182
  };
6177
6183
  T(0);
6178
- class Pl extends Nn {
6184
+ class Rl extends Nn {
6179
6185
  constructor(t, n) {
6180
6186
  super(t, n);
6181
6187
  }
@@ -6300,7 +6306,7 @@ class Pl extends Nn {
6300
6306
  };
6301
6307
  }
6302
6308
  }
6303
- class Ml extends Nn {
6309
+ class kl extends Nn {
6304
6310
  constructor(t, n) {
6305
6311
  super(t, n);
6306
6312
  }
@@ -6427,7 +6433,7 @@ class Ml extends Nn {
6427
6433
  };
6428
6434
  }
6429
6435
  }
6430
- function Rl(e, t) {
6436
+ function Bl(e, t) {
6431
6437
  const n = e.schema, o = new On(), { canMove: i, canAccept: a, canDelete: r } = o.getTemplateRule(e, t);
6432
6438
  function s(y) {
6433
6439
  return y.componentType === "list-view" ? !0 : a;
@@ -6447,8 +6453,8 @@ function Rl(e, t) {
6447
6453
  E || (E = e.designerItemElementRef.value.querySelector(".farris-nav-tabs .f-state-active"));
6448
6454
  const P = (E == null ? void 0 : E.id) || (E == null ? void 0 : E.getAttribute("pageid")) || "";
6449
6455
  if (P === `${n.id}-design-item`)
6450
- return new Ml(y, t).getPropertyConfig(n);
6451
- const v = new Pl(y, t), S = (M = n.contents) == null ? void 0 : M.find((R) => P === `${R.id}-design-item`);
6456
+ return new kl(y, t).getPropertyConfig(n);
6457
+ const v = new Rl(y, t), S = (M = n.contents) == null ? void 0 : M.find((R) => P === `${R.id}-design-item`);
6452
6458
  return v.getPropertyConfig(S || n);
6453
6459
  }
6454
6460
  function f() {
@@ -6466,7 +6472,7 @@ function Rl(e, t) {
6466
6472
  function g() {
6467
6473
  var y;
6468
6474
  if (e && t) {
6469
- const { formSchemaUtils: E } = t, P = Mt.tabs.name;
6475
+ const { formSchemaUtils: E } = t, P = Rt.tabs.name;
6470
6476
  E.getControlBasicInfoMap().set(e.schema.id, {
6471
6477
  componentTitle: P,
6472
6478
  parentPathName: P
@@ -6488,7 +6494,7 @@ function Rl(e, t) {
6488
6494
  setComponentBasicInfoMap: g
6489
6495
  };
6490
6496
  }
6491
- function kl(e, t, n, o, i, a) {
6497
+ function Ol(e, t, n, o, i, a) {
6492
6498
  const r = T([]), s = T(e.activeId || ""), l = T(!0), c = T(), d = T([]), u = T(!0), f = T(0), p = D(() => {
6493
6499
  const m = r.value.find((x) => x.props.id === s.value);
6494
6500
  return (m == null ? void 0 : m.props.toolbarPosition) === "inHead";
@@ -6557,7 +6563,7 @@ function kl(e, t, n, o, i, a) {
6557
6563
  r.value = r.value.filter((w) => w.props.id !== m), s.value === m && (s.value = "", E(r));
6558
6564
  }
6559
6565
  function O(m, w, x = !1) {
6560
- const L = r.value.findIndex((re) => re.props.id === w);
6566
+ const L = r.value.findIndex((se) => se.props.id === w);
6561
6567
  V(w), j(m), ke(() => {
6562
6568
  f.value++, b(n), x && (l.value = !0), t.emit("tabRemove", {
6563
6569
  removeIndex: L,
@@ -6587,32 +6593,32 @@ function kl(e, t, n, o, i, a) {
6587
6593
  function ie(m) {
6588
6594
  m && (m.stopPropagation(), m.preventDefault());
6589
6595
  }
6590
- function se(m) {
6596
+ function le(m) {
6591
6597
  var L;
6592
- const w = o.designerItemElementRef.value.querySelectorAll(".farris-component-tab-page"), x = Array.from(w).find((re) => re.id === `${m}-design-item`);
6598
+ const w = o.designerItemElementRef.value.querySelectorAll(".farris-component-tab-page"), x = Array.from(w).find((se) => se.id === `${m}-design-item`);
6593
6599
  (L = x == null ? void 0 : x.componentInstance) != null && L.value.onRemoveComponent && x.componentInstance.value.onRemoveComponent(a);
6594
6600
  }
6595
6601
  function q(m) {
6596
- var me, Te;
6602
+ var fe, Te;
6597
6603
  const w = a.formSchemaUtils.getExpressions();
6598
6604
  if (!w || !w.length)
6599
6605
  return;
6600
- const x = o.schema.contents, L = x == null ? void 0 : x.find((ve) => ve.id === m);
6601
- if (!L || !((Te = (me = L.toolbar) == null ? void 0 : me.buttons) != null && Te.length))
6606
+ const x = o.schema.contents, L = x == null ? void 0 : x.find((pe) => pe.id === m);
6607
+ if (!L || !((Te = (fe = L.toolbar) == null ? void 0 : fe.buttons) != null && Te.length))
6602
6608
  return;
6603
- const re = (ve) => {
6604
- ve.forEach((he) => {
6605
- const Ee = w.findIndex((Pe) => Pe.target === he.id);
6606
- Ee > -1 && w.splice(Ee, 1), he.children && he.children.length && re(he.children);
6609
+ const se = (pe) => {
6610
+ pe.forEach((ge) => {
6611
+ const Ee = w.findIndex((Pe) => Pe.target === ge.id);
6612
+ Ee > -1 && w.splice(Ee, 1), ge.children && ge.children.length && se(ge.children);
6607
6613
  });
6608
6614
  };
6609
- re(L.toolbar.buttons);
6615
+ se(L.toolbar.buttons);
6610
6616
  }
6611
6617
  function G(m, w) {
6612
- var re, me;
6618
+ var se, fe;
6613
6619
  ie(m);
6614
6620
  const x = o.schema.contents, L = x == null ? void 0 : x.findIndex((Te) => Te.id === w);
6615
- !x || L === -1 || L === void 0 || (re = a == null ? void 0 : a.designerContext) != null && re.checkCanDeleteControl && !a.designerContext.checkCanDeleteControl(x[L]) || (q(w), se(w), x == null || x.splice(L, 1), V(w), P(), (me = o == null ? void 0 : o.setupContext) == null || me.emit("selectionChange"), on.value++);
6621
+ !x || L === -1 || L === void 0 || (se = a == null ? void 0 : a.designerContext) != null && se.checkCanDeleteControl && !a.designerContext.checkCanDeleteControl(x[L]) || (q(w), le(w), x == null || x.splice(L, 1), V(w), P(), (fe = o == null ? void 0 : o.setupContext) == null || fe.emit("selectionChange"), on.value++);
6616
6622
  }
6617
6623
  function ee() {
6618
6624
  Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
@@ -6625,21 +6631,21 @@ function kl(e, t, n, o, i, a) {
6625
6631
  m.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
6626
6632
  }
6627
6633
  function oe(m, w) {
6628
- var me;
6629
- const { contents: x = [] } = o.schema, L = x == null ? void 0 : x.findIndex((Te) => Te.id === m), re = x[L];
6630
- (me = o == null ? void 0 : o.setupContext) == null || me.emit("selectionChange", re.type, re, e.componentId, w);
6634
+ var fe;
6635
+ const { contents: x = [] } = o.schema, L = x == null ? void 0 : x.findIndex((Te) => Te.id === m), se = x[L];
6636
+ (fe = o == null ? void 0 : o.setupContext) == null || fe.emit("selectionChange", se.type, se, e.componentId, w);
6631
6637
  }
6632
6638
  function Ie(m, w) {
6633
- const x = w.getBoundingClientRect(), L = m.getBoundingClientRect(), re = L.left + L.width <= x.left + x.width, me = L.left + L.width >= x.left;
6634
- return re && me;
6639
+ const x = w.getBoundingClientRect(), L = m.getBoundingClientRect(), se = L.left + L.width <= x.left + x.width, fe = L.left + L.width >= x.left;
6640
+ return se && fe;
6635
6641
  }
6636
6642
  function we(m, w) {
6637
6643
  if (m || (m = g.value.querySelector(".farris-tabs-header").querySelector(".dgComponentSelected")), w || (w = g.value.querySelector(".farris-nav-tabs")), m && w) {
6638
6644
  const x = m.querySelector(".component-btn-group");
6639
- Ie(m, w) ? Qo(m) : x && (x.style.display = "none");
6645
+ Ie(m, w) ? Zo(m) : x && (x.style.display = "none");
6640
6646
  }
6641
6647
  }
6642
- function ae() {
6648
+ function re() {
6643
6649
  n && n.value && n.value.addEventListener("scroll", (m) => {
6644
6650
  const w = m.target.querySelector(".dgComponentSelected");
6645
6651
  we(w, m.target);
@@ -6648,38 +6654,38 @@ function kl(e, t, n, o, i, a) {
6648
6654
  function Re(m) {
6649
6655
  if (m && m.parentElement) {
6650
6656
  let w = m.getBoundingClientRect(), x = m.parentElement.getBoundingClientRect();
6651
- (w.left < x.left || w.right > x.right) && (n.value.scrollLeft = 0, w = m.getBoundingClientRect(), x = m.parentElement.getBoundingClientRect(), n.value.scrollLeft = w.left - x.left), Jo(m);
6657
+ (w.left < x.left || w.right > x.right) && (n.value.scrollLeft = 0, w = m.getBoundingClientRect(), x = m.parentElement.getBoundingClientRect(), n.value.scrollLeft = w.left - x.left), Ko(m);
6652
6658
  }
6653
6659
  }
6654
6660
  function Ve(m, w, x) {
6655
- var me, Te, ve;
6661
+ var fe, Te, pe;
6656
6662
  ee(), ie(m), Y(m), oe(w, x);
6657
6663
  const L = m.currentTarget;
6658
6664
  Re(L);
6659
- const re = (Te = (me = x.schema) == null ? void 0 : me.contents) == null ? void 0 : Te.find((he) => he.id === w);
6660
- if (re && (!re.toolbar || ((ve = re.toolbar.buttons) == null ? void 0 : ve.length) === 0)) {
6661
- const he = m.currentTarget;
6665
+ const se = (Te = (fe = x.schema) == null ? void 0 : fe.contents) == null ? void 0 : Te.find((ge) => ge.id === w);
6666
+ if (se && (!se.toolbar || ((pe = se.toolbar.buttons) == null ? void 0 : pe.length) === 0)) {
6667
+ const ge = m.currentTarget;
6662
6668
  ke(() => {
6663
- ee(), he == null || he.classList.add("dgComponentFocused", "dgComponentSelected"), Re(he);
6669
+ ee(), ge == null || ge.classList.add("dgComponentFocused", "dgComponentSelected"), Re(ge);
6664
6670
  });
6665
6671
  }
6666
6672
  }
6667
- function ge(m) {
6673
+ function ve(m) {
6668
6674
  var L;
6669
- const w = o.designerItemElementRef.value.querySelectorAll(".farris-component-tab-page"), x = Array.from(w).find((re) => re.id === `#${m}-design-item`);
6675
+ const w = o.designerItemElementRef.value.querySelectorAll(".farris-component-tab-page"), x = Array.from(w).find((se) => se.id === `#${m}-design-item`);
6670
6676
  (L = x == null ? void 0 : x.componentInstance) != null && L.value.onRemoveComponent && x.componentInstance.value.setComponentBasicInfoMap();
6671
6677
  }
6672
6678
  function K(m, w) {
6673
6679
  ie(m);
6674
- const x = o.schema.contents, L = x == null ? void 0 : x.find((me) => me.id === w);
6680
+ const x = o.schema.contents, L = x == null ? void 0 : x.find((fe) => fe.id === w);
6675
6681
  if (!L)
6676
6682
  return;
6677
6683
  (!L.toolbar || !L.toolbar.buttons) && (L.toolbar = { id: `${L.id}_toolbar`, buttons: [] }), L.toolbar.id || (L.toolbar.id = `${L.id}_toolbar`);
6678
- const re = An("tab-toolbar-item");
6679
- re.id = `tab_toolbar_item_${Math.random().toString().slice(2, 6)}`, L.toolbar.buttons.push(re), d.value = [...L.toolbar.buttons], c.value = L.toolbar, ge(L.id), ke(() => {
6684
+ const se = An("tab-toolbar-item");
6685
+ se.id = `tab_toolbar_item_${Math.random().toString().slice(2, 6)}`, L.toolbar.buttons.push(se), d.value = [...L.toolbar.buttons], c.value = L.toolbar, ve(L.id), ke(() => {
6680
6686
  if (n && n.value) {
6681
- const me = n.value.querySelector(".f-state-active");
6682
- me && Re(me);
6687
+ const fe = n.value.querySelector(".f-state-active");
6688
+ fe && Re(fe);
6683
6689
  }
6684
6690
  });
6685
6691
  }
@@ -6699,7 +6705,7 @@ function kl(e, t, n, o, i, a) {
6699
6705
  toolbarSchema: c,
6700
6706
  changeToolbarItems: P,
6701
6707
  addTabPageToolbar: K,
6702
- listenTabNavElementScroll: ae,
6708
+ listenTabNavElementScroll: re,
6703
6709
  setHorizontalScrollbarPosition: Re,
6704
6710
  needUpdateNavigationLayout: f,
6705
6711
  checkActiveIdAndSelect: M,
@@ -6710,10 +6716,10 @@ function kl(e, t, n, o, i, a) {
6710
6716
  setTabsRef: y,
6711
6717
  setScrollToSelectedTabFunction: C,
6712
6718
  toolbarVisible: u,
6713
- updateComponentBasicInfoMap: ge
6719
+ updateComponentBasicInfoMap: ve
6714
6720
  };
6715
6721
  }
6716
- function Bl(e, t, n, o, i) {
6722
+ function Vl(e, t, n, o, i) {
6717
6723
  var f;
6718
6724
  const {
6719
6725
  toolbarItems: a,
@@ -6734,7 +6740,7 @@ function Bl(e, t, n, o, i) {
6734
6740
  }, [h("div", {
6735
6741
  class: "farris-tabs-inline-flex w-100",
6736
6742
  style: "flex:1"
6737
- }, [h(Zo, {
6743
+ }, [h(ei, {
6738
6744
  modelValue: r.value,
6739
6745
  "onUpdate:modelValue": (p) => r.value = p,
6740
6746
  class: "w-100 position-relative",
@@ -6755,7 +6761,7 @@ function Bl(e, t, n, o, i) {
6755
6761
  }, null)]
6756
6762
  })])]);
6757
6763
  }
6758
- function Ol(e, t) {
6764
+ function Nl(e, t) {
6759
6765
  let n;
6760
6766
  function o(s) {
6761
6767
  var d;
@@ -6813,12 +6819,12 @@ function Ol(e, t) {
6813
6819
  initHeaderDragula: r
6814
6820
  };
6815
6821
  }
6816
- const Vt = /* @__PURE__ */ je({
6822
+ const Nt = /* @__PURE__ */ $e({
6817
6823
  name: "FTabsDesign",
6818
6824
  props: $n,
6819
6825
  emits: ["tabChange", "tabRemove"],
6820
6826
  setup(e, t) {
6821
- const n = T(), o = Xe("designer-host-service"), i = Xe("design-item-context"), a = Rl(i, o), r = an(n, i, a), s = T(e.tabType), l = Bn(), {
6827
+ const n = T(), o = Xe("designer-host-service"), i = Xe("design-item-context"), a = Bl(i, o), r = an(n, i, a), s = T(e.tabType), l = Bn(), {
6822
6828
  designerContext: c
6823
6829
  } = o, d = D(() => c && c.terminalRef.value === "Mobile"), u = {
6824
6830
  updateToolbarItems: function() {
@@ -6826,7 +6832,7 @@ const Vt = /* @__PURE__ */ je({
6826
6832
  // 与工具栏交互数据
6827
6833
  changeSelectedId: (m) => {
6828
6834
  }
6829
- }, f = kl(e, t, l, i, u, o), {
6835
+ }, f = Ol(e, t, l, i, u, o), {
6830
6836
  activeId: p,
6831
6837
  changeTitleStyle: g,
6832
6838
  tabPages: y,
@@ -6842,11 +6848,11 @@ const Vt = /* @__PURE__ */ je({
6842
6848
  updateComponentBasicInfoMap: j
6843
6849
  } = f;
6844
6850
  S(n);
6845
- const V = rs(e, n, f), O = is(e, l, V, f), {
6851
+ const V = ls(e, n, f), O = rs(e, l, V, f), {
6846
6852
  updateNavigationLayout: X
6847
- } = O, N = as(e, f), {
6853
+ } = O, N = ss(e, f), {
6848
6854
  hideDropDown: J
6849
- } = N, Z = ns(e, l, O, V, f, r), ie = Z, se = os(e, l, O, V, f), q = /* @__PURE__ */ new Map([["default", Z], ["one-page", ie], ["pills", se]]);
6855
+ } = N, Z = is(e, l, O, V, f, r), ie = Z, le = as(e, l, O, V, f), q = /* @__PURE__ */ new Map([["default", Z], ["one-page", ie], ["pills", le]]);
6850
6856
  D(() => {
6851
6857
  const m = y.value.find((w) => w.props.id === p.value);
6852
6858
  return m == null ? void 0 : m.slots;
@@ -6890,9 +6896,9 @@ const Vt = /* @__PURE__ */ je({
6890
6896
  "one-page": e.tabType === "one-page",
6891
6897
  "f-tabs-content-fill": Y.value
6892
6898
  })), {
6893
- initHeaderDragula: ae,
6899
+ initHeaderDragula: re,
6894
6900
  dragulaInstance: Re
6895
- } = Ol(i, y);
6901
+ } = Nl(i, y);
6896
6902
  Ke(() => {
6897
6903
  y.value.length && M(e.activeId || y.value[0].props.id), ke(() => {
6898
6904
  X();
@@ -6903,14 +6909,14 @@ const Vt = /* @__PURE__ */ je({
6903
6909
  X();
6904
6910
  }), R(), n.value.componentInstance = r;
6905
6911
  const m = Xe("external-container-id");
6906
- e.tabType === "default" && !m && ae(l.value, l.value);
6912
+ e.tabType === "default" && !m && re(l.value, l.value);
6907
6913
  }), rt(() => {
6908
6914
  Re && Re.destroy && Re.destroy();
6909
6915
  });
6910
6916
  function Ve() {
6911
- return !!v.value.length && Bl(f, r, a, i, e.componentId);
6917
+ return !!v.value.length && Vl(f, r, a, i, e.componentId);
6912
6918
  }
6913
- const ge = q.get(e.tabType) || q.get("default");
6919
+ const ve = q.get(e.tabType) || q.get("default");
6914
6920
  function K() {
6915
6921
  var m, w, x, L;
6916
6922
  return h("div", {
@@ -6920,7 +6926,7 @@ const Vt = /* @__PURE__ */ je({
6920
6926
  }, [(w = (m = t.slots).headerPrefix) == null ? void 0 : w.call(m)]), h("div", {
6921
6927
  class: "farris-tabs-title scroll-tabs",
6922
6928
  style: Ie.value
6923
- }, [ge && ge()]), Ve(), h("div", {
6929
+ }, [ve && ve()]), Ve(), h("div", {
6924
6930
  class: "farris-tabs-header-post"
6925
6931
  }, [(L = (x = t.slots).headerSuffix) == null ? void 0 : L.call(x)])]);
6926
6932
  }
@@ -6941,15 +6947,15 @@ const Vt = /* @__PURE__ */ je({
6941
6947
  }, [K(), C()]);
6942
6948
  }
6943
6949
  });
6944
- function Vl(e, t, n) {
6950
+ function Ll(e, t, n) {
6945
6951
  return t && t.contents && t.contents.length && (t.contents.forEach((o) => {
6946
6952
  o.title && (o.text = o.title);
6947
6953
  }), t.buttons = t.contents, delete t.contents), t && Object.prototype.hasOwnProperty.call(t, "visible") ? { toolbar: t, toolbarVisible: t.visible } : { toolbar: t };
6948
6954
  }
6949
6955
  const Xn = /* @__PURE__ */ new Map([
6950
- ["appearance", Dt],
6951
- ["toolbar", Vl]
6952
- ]), Nl = "https://json-schema.org/draft/2020-12/schema", Ll = "https://farris-design.gitee.io/tab-page.schema.json", Dl = "tab-page", jl = "A Farris Container Component", $l = "object", Al = {
6956
+ ["appearance", jt],
6957
+ ["toolbar", Ll]
6958
+ ]), Dl = "https://json-schema.org/draft/2020-12/schema", jl = "https://farris-design.gitee.io/tab-page.schema.json", $l = "tab-page", Al = "A Farris Container Component", Hl = "object", _l = {
6953
6959
  id: {
6954
6960
  description: "The unique identifier for a tab-page Item",
6955
6961
  type: "string"
@@ -7022,18 +7028,18 @@ const Xn = /* @__PURE__ */ new Map([
7022
7028
  type: "function",
7023
7029
  default: null
7024
7030
  }
7025
- }, Hl = [
7031
+ }, zl = [
7026
7032
  "id",
7027
7033
  "type",
7028
7034
  "contents"
7029
7035
  ], Qn = {
7030
- $schema: Nl,
7031
- $id: Ll,
7032
- title: Dl,
7033
- description: jl,
7034
- type: $l,
7035
- properties: Al,
7036
- required: Hl
7036
+ $schema: Dl,
7037
+ $id: jl,
7038
+ title: $l,
7039
+ description: Al,
7040
+ type: Hl,
7041
+ properties: _l,
7042
+ required: zl
7037
7043
  }, Jn = Qe(Pn, Qn, Xn), Zn = Object.assign(
7038
7044
  {},
7039
7045
  Pn,
@@ -7042,10 +7048,10 @@ const Xn = /* @__PURE__ */ new Map([
7042
7048
  }
7043
7049
  );
7044
7050
  Qe(Zn, Qn, Xn);
7045
- function _l(e, t) {
7051
+ function Ul(e, t) {
7046
7052
  const n = new On(), { canAccept: o } = n.getTemplateRule(e, t);
7047
7053
  function i(l) {
7048
- if (!Ko().basalDragulaRuleForContainer(l, t))
7054
+ if (!ti().basalDragulaRuleForContainer(l, t))
7049
7055
  return !1;
7050
7056
  const { schema: d } = e;
7051
7057
  return d.contents && d.contents.length > 0 ? !1 : o;
@@ -7080,15 +7086,15 @@ function _l(e, t) {
7080
7086
  }
7081
7087
  return { canAccepts: i, getDraggableDesignItemElement: a, onRemoveComponent: r, setComponentBasicInfoMap: s };
7082
7088
  }
7083
- function zl(e) {
7084
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Yo(e);
7089
+ function ql(e) {
7090
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Qo(e);
7085
7091
  }
7086
- const Ul = /* @__PURE__ */ je({
7092
+ const Wl = /* @__PURE__ */ $e({
7087
7093
  name: "FTabPageDesign",
7088
7094
  props: Zn,
7089
7095
  emits: [],
7090
7096
  setup(e, t) {
7091
- const n = T(), o = Xe("design-item-context"), i = Xe("designer-host-service"), a = _l(o, i), r = an(n, o, a);
7097
+ const n = T(), o = Xe("design-item-context"), i = Xe("designer-host-service"), a = Ul(o, i), r = an(n, o, a);
7092
7098
  r.value.canNested = !1, r.value.canDelete = !1, r.value.canMove = !1, t.expose(r.value);
7093
7099
  const s = Xe("tabs"), l = T(!0), c = {
7094
7100
  slots: t.slots,
@@ -7118,7 +7124,7 @@ const Ul = /* @__PURE__ */ je({
7118
7124
  return h(Vn, {
7119
7125
  "main-title": e.title,
7120
7126
  class: "farris-tab-page"
7121
- }, zl(v) ? v : {
7127
+ }, ql(v) ? v : {
7122
7128
  default: () => [v]
7123
7129
  });
7124
7130
  }
@@ -7141,7 +7147,7 @@ const Ul = /* @__PURE__ */ je({
7141
7147
  const P = (/* @__PURE__ */ new Map([["default", y], ["one-page", p]])).get(d.value) || y;
7142
7148
  return () => l.value ? P() : null;
7143
7149
  }
7144
- }), ql = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-design.gitee.io/tab-toolbar-item.schema.json", Gl = "tab-toolbar-item", Yl = "A Farris Toolbar Item Component", Xl = "object", Ql = {
7150
+ }), Gl = "https://json-schema.org/draft/2020-12/schema", Yl = "https://farris-design.gitee.io/tab-toolbar-item.schema.json", Xl = "tab-toolbar-item", Ql = "A Farris Toolbar Item Component", Jl = "object", Zl = {
7145
7151
  id: {
7146
7152
  description: "The unique identifier for a Response Toolbar",
7147
7153
  type: "string"
@@ -7206,29 +7212,29 @@ const Ul = /* @__PURE__ */ je({
7206
7212
  type: "boolean",
7207
7213
  default: !1
7208
7214
  }
7209
- }, Jl = [
7215
+ }, Kl = [
7210
7216
  "id",
7211
7217
  "type",
7212
7218
  "text"
7213
- ], Zl = {
7219
+ ], ec = {
7214
7220
  onClick: "点击事件"
7215
7221
  }, Kn = {
7216
- $schema: ql,
7217
- $id: Wl,
7218
- title: Gl,
7219
- description: Yl,
7220
- type: Xl,
7221
- properties: Ql,
7222
- required: Jl,
7223
- events: Zl
7224
- }, eo = Object.assign({}, _o), Kl = Qe(eo, Kn, St, Dn);
7225
- ai(
7222
+ $schema: Gl,
7223
+ $id: Yl,
7224
+ title: Xl,
7225
+ description: Ql,
7226
+ type: Jl,
7227
+ properties: Zl,
7228
+ required: Kl,
7229
+ events: ec
7230
+ }, eo = Object.assign({}, Uo), tc = Qe(eo, Kn, St, Dn);
7231
+ si(
7226
7232
  eo,
7227
7233
  Kn,
7228
7234
  St,
7229
7235
  Dn
7230
7236
  );
7231
- function ec() {
7237
+ function nc() {
7232
7238
  function e(t, n, o) {
7233
7239
  const i = {};
7234
7240
  return i.beforeTabSelect = (a) => n.call("beforeTabSelect", t, [a, t], o), i;
@@ -7237,14 +7243,14 @@ function ec() {
7237
7243
  resolve: e
7238
7244
  };
7239
7245
  }
7240
- Vt.register = (e, t, n, o) => {
7241
- e.tabs = $o, e["tab-page"] = Ao, t.tabs = Yr, t["tab-page"] = Jn, o.tabs = { eventHandlerResolver: Qr, callbackResolver: ec() };
7246
+ Nt.register = (e, t, n, o) => {
7247
+ e.tabs = Ho, e["tab-page"] = _o, t.tabs = Qr, t["tab-page"] = Jn, o.tabs = { eventHandlerResolver: Zr, callbackResolver: nc() };
7242
7248
  };
7243
- Vt.registerDesigner = (e, t, n) => {
7244
- e.tabs = Vt, e["tab-page"] = Ul, t.tabs = Xr, t["tab-page"] = Jn, t["tab-toolbar-item"] = Kl, e["tab-toolbar"] = nn, t["tab-toolbar"] = Jr;
7249
+ Nt.registerDesigner = (e, t, n) => {
7250
+ e.tabs = Nt, e["tab-page"] = Wl, t.tabs = Jr, t["tab-page"] = Jn, t["tab-toolbar-item"] = tc, e["tab-toolbar"] = nn, t["tab-toolbar"] = Kr;
7245
7251
  };
7246
- const Ju = xn(Vt);
7252
+ const Ku = xn(Nt);
7247
7253
  export {
7248
- Vt as FTabsDesign,
7249
- Ju as default
7254
+ Nt as FTabsDesign,
7255
+ Ku as default
7250
7256
  };