@farris/ui-vue 1.2.7 → 1.2.9

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 (246) hide show
  1. package/components/accordion/index.esm.js +136 -136
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +418 -456
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/border-editor/index.esm.js +4 -4
  6. package/components/border-editor/index.umd.cjs +1 -1
  7. package/components/button/index.esm.js +1 -1
  8. package/components/button/index.umd.cjs +1 -1
  9. package/components/button-edit/index.esm.js +363 -436
  10. package/components/button-edit/index.umd.cjs +1 -1
  11. package/components/button-group/index.esm.js +5 -5
  12. package/components/button-group/index.umd.cjs +1 -1
  13. package/components/calendar/index.esm.js +417 -417
  14. package/components/calendar/index.umd.cjs +1 -1
  15. package/components/capsule/index.esm.js +176 -176
  16. package/components/capsule/index.umd.cjs +1 -1
  17. package/components/checkbox/index.esm.js +557 -594
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/color-picker/index.esm.js +119 -119
  20. package/components/color-picker/index.umd.cjs +2 -2
  21. package/components/combo-list/index.esm.js +502 -535
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-tree/index.esm.js +69 -69
  24. package/components/combo-tree/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +387 -275
  26. package/components/component/index.umd.cjs +1 -1
  27. package/components/condition/index.esm.js +1219 -983
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/content-container/index.esm.js +292 -219
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/data-grid/index.css +1 -1
  32. package/components/data-grid/index.esm.js +5718 -5546
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3291 -2930
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2650 -2682
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/dependent-base/style.js +1 -0
  39. package/components/dependent-fluid/style.js +1 -0
  40. package/components/dependent-icon/style.js +1 -0
  41. package/components/dependent-input/style.js +1 -0
  42. package/components/dependent-table/style.js +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +945 -932
  45. package/components/designer-canvas/index.umd.cjs +1 -1
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +175 -133
  48. package/components/designer-outline/index.umd.cjs +1 -1
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -1
  51. package/components/discussion-editor/index.esm.js +1 -1
  52. package/components/discussion-editor/index.umd.cjs +1 -1
  53. package/components/dropdown/index.esm.js +246 -246
  54. package/components/dropdown/index.umd.cjs +2 -2
  55. package/components/dynamic-form/index.esm.js +1319 -1172
  56. package/components/dynamic-form/index.umd.cjs +1 -1
  57. package/components/dynamic-resolver/index.esm.js +119 -82
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-view/index.esm.js +258 -249
  60. package/components/dynamic-view/index.umd.cjs +1 -1
  61. package/components/enum-editor/index.esm.js +3 -3
  62. package/components/enum-editor/index.umd.cjs +1 -1
  63. package/components/events-editor/index.esm.js +569 -514
  64. package/components/events-editor/index.umd.cjs +1 -1
  65. package/components/expression-editor/index.esm.js +104 -104
  66. package/components/expression-editor/index.umd.cjs +1 -1
  67. package/components/external-container/index.css +1 -1
  68. package/components/external-container/index.esm.js +3122 -2686
  69. package/components/external-container/index.umd.cjs +1 -1
  70. package/components/field-selector/index.css +1 -1
  71. package/components/field-selector/index.esm.js +6780 -6608
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/filter-bar/index.css +1 -1
  74. package/components/filter-bar/index.esm.js +1466 -1523
  75. package/components/filter-bar/index.umd.cjs +1 -1
  76. package/components/flow-canvas/index.css +1 -1
  77. package/components/flow-canvas/index.esm.js +1048 -1035
  78. package/components/flow-canvas/index.umd.cjs +1 -1
  79. package/components/image-cropper/index.esm.js +422 -422
  80. package/components/image-cropper/index.umd.cjs +1 -1
  81. package/components/input-group/index.esm.js +674 -716
  82. package/components/input-group/index.umd.cjs +1 -1
  83. package/components/layout/index.esm.js +291 -291
  84. package/components/layout/index.umd.cjs +1 -1
  85. package/components/list-nav/index.esm.js +303 -230
  86. package/components/list-nav/index.umd.cjs +1 -1
  87. package/components/list-view/index.css +1 -1
  88. package/components/list-view/index.esm.js +2486 -2130
  89. package/components/list-view/index.umd.cjs +1 -1
  90. package/components/lookup/index.css +1 -1
  91. package/components/lookup/index.esm.js +7474 -7272
  92. package/components/lookup/index.umd.cjs +1 -1
  93. package/components/mapping-editor/index.css +1 -1
  94. package/components/mapping-editor/index.esm.js +6139 -5949
  95. package/components/mapping-editor/index.umd.cjs +1 -1
  96. package/components/message-box/index.esm.js +1 -1
  97. package/components/message-box/index.umd.cjs +1 -1
  98. package/components/modal/index.esm.js +1 -1
  99. package/components/modal/index.umd.cjs +1 -1
  100. package/components/nav/index.esm.js +432 -371
  101. package/components/nav/index.umd.cjs +3 -3
  102. package/components/number-range/index.esm.js +1124 -0
  103. package/components/number-range/index.umd.cjs +1 -0
  104. package/components/number-range/package.json +8 -0
  105. package/components/number-range/style.js +6 -0
  106. package/components/number-spinner/index.esm.js +1155 -0
  107. package/components/number-spinner/index.umd.cjs +1 -0
  108. package/components/number-spinner/package.json +8 -0
  109. package/components/number-spinner/style.js +4 -0
  110. package/components/order/index.css +1 -1
  111. package/components/order/index.esm.js +1215 -1178
  112. package/components/order/index.umd.cjs +1 -1
  113. package/components/page-footer/index.esm.js +147 -147
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +1240 -1346
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +489 -428
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/progress/index.esm.js +220 -220
  120. package/components/progress/index.umd.cjs +3 -3
  121. package/components/property-editor/index.esm.js +1512 -1540
  122. package/components/property-editor/index.umd.cjs +3 -3
  123. package/components/property-panel/index.css +1 -1
  124. package/components/property-panel/index.esm.js +749 -815
  125. package/components/property-panel/index.umd.cjs +1 -1
  126. package/components/query-solution/index.css +1 -0
  127. package/components/query-solution/index.esm.js +7074 -0
  128. package/components/query-solution/index.umd.cjs +1 -0
  129. package/components/query-solution/package.json +8 -0
  130. package/components/query-solution/style.js +2 -0
  131. package/components/radio-button/index.esm.js +86 -86
  132. package/components/radio-button/index.umd.cjs +1 -1
  133. package/components/radio-group/index.esm.js +442 -479
  134. package/components/radio-group/index.umd.cjs +1 -1
  135. package/components/rate/index.esm.js +213 -208
  136. package/components/rate/index.umd.cjs +1 -1
  137. package/components/response-layout/index.esm.js +116 -116
  138. package/components/response-layout/index.umd.cjs +1 -1
  139. package/components/response-layout-editor/index.esm.js +943 -918
  140. package/components/response-layout-editor/index.umd.cjs +1 -1
  141. package/components/response-toolbar/index.esm.js +1174 -1295
  142. package/components/response-toolbar/index.umd.cjs +1 -1
  143. package/components/schema-selector/index.css +1 -1
  144. package/components/schema-selector/index.esm.js +5383 -5171
  145. package/components/schema-selector/index.umd.cjs +2 -2
  146. package/components/search-box/index.esm.js +201 -201
  147. package/components/search-box/index.umd.cjs +1 -1
  148. package/components/section/index.esm.js +684 -542
  149. package/components/section/index.umd.cjs +1 -1
  150. package/components/smoke-detector/index.esm.js +121 -121
  151. package/components/smoke-detector/index.umd.cjs +1 -1
  152. package/components/spacing-editor/index.esm.js +2 -2
  153. package/components/spacing-editor/index.umd.cjs +1 -1
  154. package/components/splitter/index.esm.js +1158 -382
  155. package/components/splitter/index.umd.cjs +1 -1
  156. package/components/step/index.esm.js +232 -232
  157. package/components/step/index.umd.cjs +1 -1
  158. package/components/switch/index.esm.js +451 -487
  159. package/components/switch/index.umd.cjs +1 -1
  160. package/components/tabs/index.esm.js +2078 -2168
  161. package/components/tabs/index.umd.cjs +1 -1
  162. package/components/tags/index.esm.js +318 -320
  163. package/components/tags/index.umd.cjs +1 -1
  164. package/components/text/index.esm.js +192 -192
  165. package/components/text/index.umd.cjs +1 -1
  166. package/components/textarea/index.esm.js +471 -497
  167. package/components/textarea/index.umd.cjs +1 -1
  168. package/components/time-picker/index.esm.js +1421 -1441
  169. package/components/time-picker/index.umd.cjs +1 -1
  170. package/components/transfer/index.css +1 -1
  171. package/components/transfer/index.esm.js +430 -421
  172. package/components/transfer/index.umd.cjs +1 -1
  173. package/components/tree-grid/index.css +1 -1
  174. package/components/tree-grid/index.esm.js +6806 -6624
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-view/index.esm.js +2793 -2433
  177. package/components/tree-view/index.umd.cjs +1 -1
  178. package/components/uploader/index.esm.js +165 -165
  179. package/components/uploader/index.umd.cjs +2 -2
  180. package/components/verify-detail/index.esm.js +255 -255
  181. package/components/verify-detail/index.umd.cjs +1 -1
  182. package/components/video/index.esm.js +413 -334
  183. package/components/video/index.umd.cjs +1 -1
  184. package/components/weather/index.esm.js +902 -902
  185. package/components/weather/index.umd.cjs +4 -4
  186. package/farris.all.esm.js +54155 -52847
  187. package/farris.all.umd.cjs +9 -9
  188. package/index.css +1 -1
  189. package/package.json +1 -1
  190. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  191. package/types/checkbox/index.d.ts +1 -0
  192. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  193. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  194. package/types/common/entity/entity-schema.d.ts +258 -0
  195. package/types/component/src/component-ref.props.d.ts +4 -0
  196. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  197. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  198. package/types/data-grid/index.d.ts +5 -2
  199. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  200. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  201. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  202. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  203. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  204. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  205. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  206. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  207. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  208. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  209. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  210. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  211. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  212. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  213. package/types/data-view/composition/types.d.ts +19 -7
  214. package/types/data-view/composition/use-edit.d.ts +2 -1
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  216. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  217. package/types/designer-canvas/src/types.d.ts +3 -3
  218. package/types/dynamic-form/index.d.ts +3 -1
  219. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  220. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  221. package/types/dynamic-form/src/types.d.ts +1 -1
  222. package/types/dynamic-resolver/index.d.ts +1 -0
  223. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  224. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  225. package/types/dynamic-resolver/src/types.d.ts +3 -2
  226. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  227. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  228. package/types/modal/src/modal.props.d.ts +1 -4
  229. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  230. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  231. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  232. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  233. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  234. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  235. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  236. package/types/tabs/src/composition/types.d.ts +2 -2
  237. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  238. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  239. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  240. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  241. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  242. package/types/tags/index.d.ts +36 -5
  243. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  244. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  245. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  246. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
@@ -1,40 +1,40 @@
1
- var ke = Object.defineProperty;
2
- var Pe = (r, e, n) => e in r ? ke(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n;
3
- var F = (r, e, n) => Pe(r, typeof e != "symbol" ? e + "" : e, n);
4
- import { computed as z, getCurrentInstance as de, createVNode as w, ref as j, defineComponent as Y, onMounted as H, onUnmounted as ne, watch as Q, inject as $, createTextVNode as ue, provide as Re, onBeforeUnmount as Ee, withModifiers as je } from "vue";
5
- import { cloneDeep as Be } from "lodash-es";
6
- import { useDesignerInnerComponent as fe } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-inner-component";
7
- import { withInstall as Ae } from "@farris/ui-vue/components/common";
1
+ var Pe = Object.defineProperty;
2
+ var Re = (s, e, o) => e in s ? Pe(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
3
+ var B = (s, e, o) => Re(s, typeof e != "symbol" ? e + "" : e, o);
4
+ import { computed as W, getCurrentInstance as ue, createVNode as w, ref as S, defineComponent as X, onMounted as z, onUnmounted as ne, watch as H, inject as L, createTextVNode as fe, provide as Ee, onBeforeUnmount as Se, withModifiers as Me } from "vue";
5
+ import { cloneDeep as ke } from "lodash-es";
6
+ import { getCustomClass as J, withInstall as Ae } from "../common/index.esm.js";
7
+ import { useDesignerInnerComponent as ge } from "../designer-canvas/index.esm.js";
8
8
  class me {
9
9
  constructor(e) {
10
10
  /** 工具栏项标识 */
11
- F(this, "id", "");
11
+ B(this, "id", "");
12
12
  /** 工具栏项自定义样式 */
13
- F(this, "class", "btn-secondary");
13
+ B(this, "class", "btn-secondary");
14
14
  /** 图标 */
15
- F(this, "icon", "");
15
+ B(this, "icon", "");
16
16
  /** 所属分组 */
17
- F(this, "groupId", "");
17
+ B(this, "groupId", "");
18
18
  /** 收藏顺序 */
19
- F(this, "order", -1);
19
+ B(this, "order", -1);
20
20
  /** 是否作为下拉菜单的顶层按钮 */
21
- F(this, "asDropDownTop", !1);
21
+ B(this, "asDropDownTop", !1);
22
22
  /** 文本 */
23
- F(this, "text", "");
23
+ B(this, "text", "");
24
24
  /** 是否可见 */
25
- F(this, "visible", !0);
26
- F(this, "responsed", !1);
25
+ B(this, "visible", !0);
26
+ B(this, "responsed", !1);
27
27
  /** 是否启用提示消息 */
28
- F(this, "tipsEnable", !1);
28
+ B(this, "tipsEnable", !1);
29
29
  /** 提示消息内容 */
30
- F(this, "tipsText", "");
30
+ B(this, "tipsText", "");
31
31
  /** 记录宽度 */
32
- F(this, "width", 0);
33
- F(this, "onClick", () => {
32
+ B(this, "width", 0);
33
+ B(this, "onClick", () => {
34
34
  });
35
- F(this, "options");
35
+ B(this, "options");
36
36
  this.options = e;
37
- const n = [
37
+ const o = [
38
38
  "id",
39
39
  "class",
40
40
  "icon",
@@ -50,13 +50,13 @@ class me {
50
50
  "tipsText",
51
51
  "onClick"
52
52
  ];
53
- Object.keys(e).filter((c) => n.indexOf(c) > -1).forEach((c) => {
54
- this[c] = e[c];
53
+ Object.keys(e).filter((p) => o.indexOf(p) > -1).forEach((p) => {
54
+ this[p] = e[p];
55
55
  });
56
56
  }
57
57
  /** 是否可用 */
58
58
  get enable() {
59
- return Object.keys(this.options).indexOf("enable") > -1 ? this.options.enable : z(() => !0);
59
+ return Object.keys(this.options).indexOf("enable") > -1 ? this.options.enable : W(() => !0);
60
60
  }
61
61
  /** 设置宽度 */
62
62
  setWidth(e) {
@@ -67,49 +67,49 @@ class me {
67
67
  return this.visible ? this.width : !1;
68
68
  }
69
69
  }
70
- class Fe extends me {
70
+ class Be extends me {
71
71
  constructor(e) {
72
72
  super(e);
73
73
  }
74
74
  }
75
- function ge() {
76
- function r(e) {
77
- const n = [];
78
- return e.reduce((c, u) => (u.children && u.children.length > 0 ? c.push(new G(u)) : c.push(new Fe(u)), c), n), n;
75
+ function he() {
76
+ function s(e) {
77
+ const o = [];
78
+ return e.reduce((p, u) => (u.children && u.children.length > 0 ? p.push(new G(u)) : p.push(new Be(u)), p), o), o;
79
79
  }
80
- return { buildResponseToolbarItems: r };
80
+ return { buildResponseToolbarItems: s };
81
81
  }
82
- const { buildResponseToolbarItems: Oe } = ge();
82
+ const { buildResponseToolbarItems: Oe } = he();
83
83
  class G extends me {
84
- constructor(n) {
85
- super(n);
86
- F(this, "placement", "");
84
+ constructor(o) {
85
+ super(o);
86
+ B(this, "placement", "");
87
87
  // 下拉位置
88
88
  /** 下拉class */
89
- F(this, "dropdownClass", "");
89
+ B(this, "dropdownClass", "");
90
90
  /** 下拉菜单class */
91
- F(this, "menuClass", "");
91
+ B(this, "menuClass", "");
92
92
  /** 是否用分开的下拉按钮 */
93
- F(this, "split", !1);
94
- F(this, "children", []);
95
- F(this, "expanded", !1);
96
- const c = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
97
- Object.keys(n).filter((u) => c.indexOf(u) > -1).forEach((u) => {
98
- this[u] = n[u];
99
- }), n.children && n.children.length && (this.children = Oe(n.children));
93
+ B(this, "split", !1);
94
+ B(this, "children", []);
95
+ B(this, "expanded", !1);
96
+ const p = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
97
+ Object.keys(o).filter((u) => p.indexOf(u) > -1).forEach((u) => {
98
+ this[u] = o[u];
99
+ }), o.children && o.children.length && (this.children = Oe(o.children));
100
100
  }
101
101
  }
102
- class Nt {
103
- constructor(e, n) {
104
- F(this, "id");
105
- F(this, "name");
102
+ class Lt {
103
+ constructor(e, o) {
104
+ B(this, "id");
105
+ B(this, "name");
106
106
  /** 记录元素的Id */
107
- F(this, "presetId", []);
107
+ B(this, "presetId", []);
108
108
  /** 记录转变为下拉时元素的位置 */
109
- F(this, "responsedIndex", []);
109
+ B(this, "responsedIndex", []);
110
110
  /** 记录宽度 */
111
- F(this, "width");
112
- this.id = e, this.name = n, this.width = 0;
111
+ B(this, "width");
112
+ this.id = e, this.name = o, this.width = 0;
113
113
  }
114
114
  // 设置宽度
115
115
  setWidth(e) {
@@ -144,104 +144,102 @@ class Nt {
144
144
  return this.presetId.length === this.responsedIndex.length;
145
145
  }
146
146
  }
147
- const oe = {}, ye = {};
148
- function re(r) {
149
- const { properties: e, title: n } = r, c = Object.keys(e).reduce((u, m) => (u[m] = e[m].type === "object" && e[m].properties ? re(e[m]) : Be(e[m].default), u), {});
150
- return c.id = `${n}-${Date.now()}`, c;
147
+ const oe = {}, be = {};
148
+ function se(s) {
149
+ const { properties: e, title: o, ignore: p } = s, u = p && Array.isArray(p), v = Object.keys(e).reduce((h, D) => ((!u || !p.find((I) => I == D)) && (h[D] = e[D].type === "object" && e[D].properties ? se(e[D]) : ke(e[D].default)), h), {});
150
+ return (!u || !p.find((h) => h == "id")) && (v.id = `${o}-${Date.now()}`), v;
151
151
  }
152
- function q(r, e = {}) {
153
- const n = oe[r];
154
- if (n) {
155
- let c = re(n);
156
- const u = ye[r];
157
- return c = u ? u({ getSchemaByType: q }, c, e) : c, c;
152
+ function q(s, e = {}, o) {
153
+ const p = oe[s];
154
+ if (p) {
155
+ let u = se(p);
156
+ const v = be[s];
157
+ return u = v ? v({ getSchemaByType: q }, u, e, o) : u, u;
158
158
  }
159
159
  return null;
160
160
  }
161
- function Le(r, e) {
162
- const n = re(e);
163
- return Object.keys(r).reduce((c, u) => (c[u] = r[u], c), n), n;
161
+ function _e(s, e) {
162
+ const o = se(e);
163
+ return Object.keys(s).reduce((p, u) => (p[u] && typeof p[u] == "object" ? Object.assign(p[u], s[u]) : p[u] = s[u], p), o), o;
164
164
  }
165
- function Ne(r, e) {
166
- return Object.keys(r).filter((c) => r[c] != null).reduce((c, u) => {
165
+ function Ne(s, e) {
166
+ return Object.keys(s).filter((p) => s[p] != null).reduce((p, u) => {
167
167
  if (e.has(u)) {
168
- const m = e.get(u);
169
- if (typeof m == "string")
170
- c[m] = r[u];
168
+ const v = e.get(u);
169
+ if (typeof v == "string")
170
+ p[v] = s[u];
171
171
  else {
172
- const v = m(u, r[u], r);
173
- Object.assign(c, v);
172
+ const h = v(u, s[u], s);
173
+ Object.assign(p, h);
174
174
  }
175
175
  } else
176
- c[u] = r[u];
177
- return c;
176
+ p[u] = s[u];
177
+ return p;
178
178
  }, {});
179
179
  }
180
- function Ve(r, e, n = /* @__PURE__ */ new Map()) {
181
- const c = Le(r, e);
182
- return Ne(c, n);
180
+ function $e(s, e, o = /* @__PURE__ */ new Map()) {
181
+ const p = _e(s, e);
182
+ return Ne(p, o);
183
183
  }
184
- function _e(r = {}) {
185
- function e(g, C, p, a) {
186
- if (typeof p == "number")
187
- return a[g].length === p;
188
- if (typeof p == "object") {
189
- const d = Object.keys(p)[0], s = p[d];
190
- if (d === "not")
191
- return Number(a[g].length) !== Number(s);
192
- if (d === "moreThan")
193
- return Number(a[g].length) >= Number(s);
194
- if (d === "lessThan")
195
- return Number(a[g].length) <= Number(s);
184
+ function Fe(s = {}) {
185
+ function e(g, C, l, i) {
186
+ if (typeof l == "number")
187
+ return i[g].length === l;
188
+ if (typeof l == "object") {
189
+ const f = Object.keys(l)[0], c = l[f];
190
+ if (f === "not")
191
+ return Number(i[g].length) !== Number(c);
192
+ if (f === "moreThan")
193
+ return Number(i[g].length) >= Number(c);
194
+ if (f === "lessThan")
195
+ return Number(i[g].length) <= Number(c);
196
196
  }
197
197
  return !1;
198
198
  }
199
- function n(g, C, p, a) {
200
- return a[g] && a[g].propertyValue && String(a[g].propertyValue.value) === String(p);
199
+ function o(g, C, l, i) {
200
+ return i[g] && i[g].propertyValue && String(i[g].propertyValue.value) === String(l);
201
201
  }
202
- const c = /* @__PURE__ */ new Map([
202
+ const p = /* @__PURE__ */ new Map([
203
203
  ["length", e],
204
- ["getProperty", n]
204
+ ["getProperty", o]
205
205
  ]);
206
- Object.keys(r).reduce((g, C) => (g.set(C, r[C]), g), c);
206
+ Object.keys(s).reduce((g, C) => (g.set(C, s[C]), g), p);
207
207
  function u(g, C) {
208
- const p = g;
209
- return typeof C == "number" ? [{ target: p, operator: "length", param: null, value: Number(C) }] : typeof C == "boolean" ? [{ target: p, operator: "getProperty", param: g, value: !!C }] : typeof C == "object" ? Object.keys(C).map((a) => {
210
- if (a === "length")
211
- return { target: p, operator: "length", param: null, value: C[a] };
212
- const d = a, s = C[a];
213
- return { target: p, operator: "getProperty", param: d, value: s };
208
+ const l = g;
209
+ return typeof C == "number" ? [{ target: l, operator: "length", param: null, value: Number(C) }] : typeof C == "boolean" ? [{ target: l, operator: "getProperty", param: g, value: !!C }] : typeof C == "object" ? Object.keys(C).map((i) => {
210
+ if (i === "length")
211
+ return { target: l, operator: "length", param: null, value: C[i] };
212
+ const f = i, c = C[i];
213
+ return { target: l, operator: "getProperty", param: f, value: c };
214
214
  }) : [];
215
215
  }
216
- function m(g) {
217
- return Object.keys(g).reduce((p, a) => {
218
- const d = u(a, g[a]);
219
- return p.push(...d), p;
216
+ function v(g) {
217
+ return Object.keys(g).reduce((l, i) => {
218
+ const f = u(i, g[i]);
219
+ return l.push(...f), l;
220
220
  }, []);
221
221
  }
222
- function v(g, C) {
223
- if (c.has(g.operator)) {
224
- const p = c.get(g.operator);
225
- return p && p(g.target, g.param, g.value, C) || !1;
222
+ function h(g, C) {
223
+ if (p.has(g.operator)) {
224
+ const l = p.get(g.operator);
225
+ return l && l(g.target, g.param, g.value, C) || !1;
226
226
  }
227
227
  return !1;
228
228
  }
229
- function M(g, C) {
230
- return m(g).reduce((d, s) => d && v(s, C), !0);
229
+ function D(g, C) {
230
+ return v(g).reduce((f, c) => f && h(c, C), !0);
231
231
  }
232
- function S(g, C) {
233
- const p = Object.keys(g), a = p.includes("allOf"), d = p.includes("anyOf"), s = a || d, x = (s ? g[s ? a ? "allOf" : "anyOf" : "allOf"] : [g]).map((P) => M(P, C));
234
- return a ? !x.includes(!1) : x.includes(!0);
232
+ function I(g, C) {
233
+ const l = Object.keys(g), i = l.includes("allOf"), f = l.includes("anyOf"), c = i || f, T = (c ? g[c ? i ? "allOf" : "anyOf" : "allOf"] : [g]).map((P) => D(P, C));
234
+ return i ? !T.includes(!1) : T.includes(!0);
235
235
  }
236
- return { parseValueSchema: S };
236
+ return { parseValueSchema: I };
237
237
  }
238
- const I = {
239
- Button: { type: "Button", name: "按钮", icon: "Button" },
240
- ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
238
+ const re = {
239
+ button: { type: "button", name: "按钮", icon: "Button" },
241
240
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
242
- "response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
241
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
243
242
  "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
244
- DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
245
243
  "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
246
244
  textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
247
245
  lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
@@ -252,115 +250,53 @@ const I = {
252
250
  "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
253
251
  "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
254
252
  "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
255
- /** 暂时没用 */
256
- FlexLayout: { type: "FlexLayout", name: "弹性布局" },
257
- /** 暂时没用 */
258
- FlowLayout: { type: "FlowLayout", name: "流布局" },
259
- ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
260
- ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
253
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
254
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
255
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
261
256
  "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
262
- TreeGridField: { type: "TreeGridField", name: "树表格列" },
263
- FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
264
- Form: { type: "Form", name: "卡片面板", icon: "Form" },
265
- QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
257
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
266
258
  "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
267
259
  "data-grid-column": { type: "data-grid-column", name: "表格列" },
268
- Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
269
- Module: { type: "Module", name: "模块", icon: "Module" },
260
+ module: { type: "Module", name: "模块", icon: "Module" },
270
261
  component: { type: "component", name: "组件", icon: "Component" },
271
- ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
272
- Image: { type: "Image", name: "图像", icon: "Image" },
273
- ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
274
- HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
275
- ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
276
- RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
277
262
  tabs: { type: "tabs", name: "标签页", icon: "Tab" },
278
263
  "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
279
264
  "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
280
- Tag: { type: "Tag", name: "Tag", icon: "Tag" },
281
- Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
282
- HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
283
- ListView: { type: "ListView", name: "列表", icon: "ListView" },
284
- RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
285
- TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
286
- TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
265
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
287
266
  section: { type: "section", name: "分组面板", icon: "Section" },
288
- SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
289
- SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
290
- QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
291
- FormHeader: { type: "FormHeader", name: "翻页" },
292
- Splitter: { type: "Splitter", name: "分栏面板", icon: "Splitter" },
293
- SplitterPane: { type: "SplitterPane", name: "分栏面板项", dependentParentControl: "Splitter" },
294
- WizardDetail: { type: "WizardDetail", name: "向导详情页" },
295
- WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
296
- Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
297
- MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
298
- Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
299
- avatar: { type: "avatar", name: "头像", icon: "Avatar" },
300
- ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
301
- ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
302
- NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
303
- Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
304
- LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
305
- ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
306
- FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
307
- FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
308
- ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
309
- MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
310
- MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
311
- Footer: { type: "Footer", name: "页脚" },
312
- DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
313
- DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
314
- NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
315
- Tags: { type: "Tags", name: "标记组", icon: "Tags" },
316
- Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
267
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
268
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
269
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
270
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
271
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
272
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
317
273
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
318
- ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
319
- ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
320
- PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
321
- Table: { type: "Table", name: "表格", icon: "DataGrid" },
322
- LoopContainer: { type: "LoopContainer", name: "循环容器", icon: "ContentContainer" },
323
- FileUploadPreview: { type: "FileUploadPreview", name: "附件上传预览", icon: "FileUpload" },
324
- DynamicArea: { type: "DynamicArea", name: "动态区域", icon: "ContentContainer" },
325
- DynamicAreaItem: { type: "DynamicAreaItem", name: "动态区域项", icon: "ContentContainer" },
326
- TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
327
- HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
328
- ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
329
- HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
330
- ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
331
- OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
332
- AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
333
- EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
334
- OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
335
- CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
336
- ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
337
- AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
338
- /** 查询类 start */
339
- Charts: { type: "Charts", name: "图表", icon: "Charts" },
340
- QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
341
- SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
342
- QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
343
- QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
344
- /** 查询类 end */
345
- /** 审批类 start */
346
- ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
347
- ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
348
- /** 审批类 end */
349
- }, he = {}, $e = {};
350
- _e();
351
- function be(r, e, n = /* @__PURE__ */ new Map(), c = (v, M, S) => M, u = {}, m = (v) => v) {
352
- return oe[e.title] = e, ye[e.title] = c, he[e.title] = u, $e[e.title] = m, (v = {}) => {
353
- const M = Ve(v, e, n), S = Object.keys(r).reduce((g, C) => (g[C] = r[C].default, g), {});
354
- return Object.assign(S, M);
274
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
275
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
276
+ }, ye = {}, Le = {};
277
+ Fe();
278
+ function ve(s, e, o = /* @__PURE__ */ new Map(), p = (h, D, I) => D, u = {}, v = (h) => h) {
279
+ return oe[e.title] = e, be[e.title] = p, ye[e.title] = u, Le[e.title] = v, (h = {}) => {
280
+ const D = $e(h, e, o), I = Object.keys(s).reduce((g, C) => (g[C] = s[C].default, g), {});
281
+ return Object.assign(I, D);
355
282
  };
356
283
  }
357
- const ve = /* @__PURE__ */ new Map([
358
- ["buttons", "items"]
284
+ function Ve(s, e) {
285
+ return { customClass: e.class, customStyle: e.style };
286
+ }
287
+ const We = /* @__PURE__ */ new Map([
288
+ ["buttons", "items"],
289
+ ["appearance", Ve]
290
+ ]), Ue = /* @__PURE__ */ new Map([
291
+ ["appearance", qe]
359
292
  ]);
360
- function Ce(r, e, n) {
293
+ function qe(s, e) {
294
+ return { class: e.class, style: e.style };
295
+ }
296
+ function Ce(s, e, o) {
361
297
  return e;
362
298
  }
363
- const We = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-design.gitee.io/response-toolbar.schema.json", Ue = "response-toolbar", qe = "A Farris Toolbar Component", He = "object", Ge = {
299
+ const ze = "https://json-schema.org/draft/2020-12/schema", Ge = "https://farris-design.gitee.io/response-toolbar.schema.json", He = "response-toolbar", Je = "A Farris Toolbar Component", Qe = "object", Xe = {
364
300
  id: {
365
301
  description: "The unique identifier for a Response Toolbar",
366
302
  type: "string"
@@ -393,19 +329,19 @@ const We = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-
393
329
  type: "array",
394
330
  default: []
395
331
  }
396
- }, Qe = [
332
+ }, Ye = [
397
333
  "id",
398
334
  "type",
399
335
  "buttons"
400
- ], Xe = {
401
- $schema: We,
402
- $id: ze,
403
- title: Ue,
404
- description: qe,
405
- type: He,
406
- properties: Ge,
407
- required: Qe
408
- }, Ye = "https://json-schema.org/draft/2020-12/schema", Ze = "https://farris-design.gitee.io/response-toolbar-item.schema.json", Ke = "response-toolbar-item", Je = "A Farris Toolbar Item Component", et = "object", tt = {
336
+ ], Ze = {
337
+ $schema: ze,
338
+ $id: Ge,
339
+ title: He,
340
+ description: Je,
341
+ type: Qe,
342
+ properties: Xe,
343
+ required: Ye
344
+ }, Ke = "https://json-schema.org/draft/2020-12/schema", et = "https://farris-design.gitee.io/response-toolbar-item.schema.json", tt = "response-toolbar-item", nt = "A Farris Toolbar Item Component", ot = "object", st = {
409
345
  id: {
410
346
  description: "The unique identifier for a Response Toolbar",
411
347
  type: "string"
@@ -420,7 +356,8 @@ const We = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-
420
356
  type: "object",
421
357
  properties: {
422
358
  class: {
423
- type: "string"
359
+ type: "string",
360
+ default: "btn-primary"
424
361
  },
425
362
  style: {
426
363
  type: "string"
@@ -428,6 +365,11 @@ const We = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-
428
365
  },
429
366
  default: {}
430
367
  },
368
+ alignment: {
369
+ description: "The alignment of Response Toolbar Button.",
370
+ type: "string",
371
+ default: "right"
372
+ },
431
373
  text: {
432
374
  description: "The items of Response Toolbar.",
433
375
  type: "string",
@@ -443,19 +385,19 @@ const We = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-
443
385
  type: "string",
444
386
  default: ""
445
387
  }
446
- }, nt = [
388
+ }, rt = [
447
389
  "id",
448
390
  "type",
449
391
  "text"
450
392
  ], te = {
451
- $schema: Ye,
452
- $id: Ze,
453
- title: Ke,
454
- description: Je,
455
- type: et,
456
- properties: tt,
457
- required: nt
458
- }, ot = "response-toolbar-item", rt = "A Farris Container Component", st = "object", it = {
393
+ $schema: Ke,
394
+ $id: et,
395
+ title: tt,
396
+ description: nt,
397
+ type: ot,
398
+ properties: st,
399
+ required: rt
400
+ }, it = "response-toolbar-item", ct = "A Farris Container Component", at = "object", lt = {
459
401
  basic: {
460
402
  title: "基本信息",
461
403
  description: "Basic Infomation",
@@ -488,12 +430,12 @@ const We = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-
488
430
  }
489
431
  }
490
432
  }
491
- }, le = {
492
- title: ot,
493
- description: rt,
494
- type: st,
495
- categories: it
496
- }, se = {
433
+ }, pe = {
434
+ title: it,
435
+ description: ct,
436
+ type: at,
437
+ categories: lt
438
+ }, ie = {
497
439
  /** 组件自定义样式 */
498
440
  customClass: { type: String, default: "" },
499
441
  alignment: { Type: String, default: "right" },
@@ -503,489 +445,484 @@ const We = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-
503
445
  }
504
446
  };
505
447
  oe[te.title] = te;
506
- he[le.title] = le;
507
- const at = Object.assign({}, se, {
448
+ ye[pe.title] = pe;
449
+ const pt = Object.assign({}, ie, {
508
450
  componentId: { type: String, default: "" }
509
- }), ie = be(
510
- se,
511
- Xe,
512
- ve,
451
+ }), ce = ve(
452
+ ie,
453
+ Ze,
454
+ We,
513
455
  Ce
514
456
  ), we = {
515
457
  id: { type: String, default: "" },
516
458
  items: { type: Object, default: {} },
459
+ class: { type: String, default: "" },
517
460
  text: { type: String, default: "" },
518
461
  disabled: { type: Boolean, default: !1 },
519
462
  icon: { type: String, default: "" },
520
- componentId: { type: String, default: "" }
521
- }, ct = be(
463
+ componentId: { type: String, default: "" },
464
+ alignment: { Type: String, default: "right" }
465
+ }, dt = ve(
522
466
  we,
523
467
  te,
524
- ve,
468
+ Ue,
525
469
  Ce
526
470
  );
527
- function Te() {
528
- function r(n) {
529
- const c = {
471
+ function xe() {
472
+ function s(o) {
473
+ const p = {
530
474
  "f-icon": !0
531
475
  };
532
- if (n.icon) {
533
- const u = n.icon.trim().split(" ");
534
- u && u.length && u.reduce((m, v) => (m[v] = !0, m), c);
476
+ if (o.icon) {
477
+ const u = o.icon.trim().split(" ");
478
+ u && u.length && u.reduce((v, h) => (v[h] = !0, v), p);
535
479
  }
536
- return c;
480
+ return p;
537
481
  }
538
- function e(n) {
539
- return !!(n.icon && n.icon.trim());
482
+ function e(o) {
483
+ return !!(o.icon && o.icon.trim());
540
484
  }
541
- return { iconClass: r, shouldShowIcon: e };
485
+ return { iconClass: s, shouldShowIcon: e };
542
486
  }
543
- function lt(r) {
544
- function e(p) {
545
- const a = {
487
+ function ut(s) {
488
+ function e(l) {
489
+ const i = {
546
490
  "dropdown-menu": !0
547
491
  };
548
- if (p.class) {
549
- const d = p.menuClass.split(" ");
550
- d && d.length && d.reduce((s, y) => (s[y] = !0, s), a);
492
+ if (l.class) {
493
+ const f = l.menuClass.split(" ");
494
+ f && f.length && f.reduce((c, b) => (c[b] = !0, c), i);
551
495
  }
552
- return a;
496
+ return i;
553
497
  }
554
- function n(p) {
555
- const a = {
556
- disabled: !p.enable,
498
+ function o(l) {
499
+ const i = {
500
+ disabled: !l.enable,
557
501
  "dropdown-submenu": !0,
558
502
  "f-rt-dropdown": !0
559
- }, d = p.dropdownClass.split(" ");
560
- return d && d.length && d.reduce((s, y) => (s[y] = !0, s), a), a;
503
+ }, f = l.dropdownClass.split(" ");
504
+ return f && f.length && f.reduce((c, b) => (c[b] = !0, c), i), i;
561
505
  }
562
- function c(p) {
563
- const a = {
564
- disabled: !p.enable,
506
+ function p(l) {
507
+ const i = {
508
+ disabled: !l.enable,
565
509
  "dropdown-item": !0,
566
510
  "f-rt-btn": !0
567
- }, d = p.class.split(" ");
568
- return d && d.length && d.reduce((s, y) => (s[y] = !0, s), a), a;
511
+ }, f = l.class.split(" ");
512
+ return f && f.length && f.reduce((c, b) => (c[b] = !0, c), i), i;
569
513
  }
570
514
  let u;
571
- const m = /* @__PURE__ */ new Map();
572
- function v(p, a, d) {
573
- var y;
574
- ((y = p.target) == null ? void 0 : y.id) === a.id && p.stopPropagation();
575
- const s = d ? d.id : "__top_item__";
576
- if (a.children && a.children.length && (a.expanded = !a.expanded, a.expanded ? m.set(s, a) : m.delete(s)), m.has(s) && m.get(s) !== a) {
577
- const h = m.get(s);
578
- h && (h.expanded = !1);
515
+ const v = /* @__PURE__ */ new Map();
516
+ function h(l, i, f) {
517
+ var b;
518
+ ((b = l.target) == null ? void 0 : b.id) === i.id && l.stopPropagation();
519
+ const c = f ? f.id : "__top_item__";
520
+ if (i.children && i.children.length && (i.expanded = !i.expanded, i.expanded ? v.set(c, i) : v.delete(c)), v.has(c) && v.get(c) !== i) {
521
+ const y = v.get(c);
522
+ y && (y.expanded = !1);
579
523
  }
580
524
  }
581
- function M(p, a) {
582
- document.body.click(), a.enable && a.onClick(p, a.id);
525
+ function D(l, i) {
526
+ document.body.click(), i.enable && i.onClick(l, i.id);
583
527
  }
584
- function S(p) {
585
- return p.children.map((a) => a.children && a.children.length ? w("li", {
586
- class: n(a),
587
- id: a.id,
588
- onClick: (d) => a.enable && v(d, a, p)
528
+ function I(l) {
529
+ return l.children.map((i) => i.children && i.children.length ? w("li", {
530
+ class: o(i),
531
+ id: i.id,
532
+ onClick: (f) => i.enable && h(f, i, l)
589
533
  }, [w("span", {
590
- id: a.id,
591
- class: c(a),
592
- onMouseover: (d) => a.enable && v(d, a, p)
593
- }, [a.text, w("i", {
534
+ id: i.id,
535
+ class: p(i),
536
+ onMouseover: (f) => i.enable && h(f, i, l)
537
+ }, [i.text, w("i", {
594
538
  class: "f-icon f-icon-arrow-chevron-right",
595
539
  style: "display: inline-block;float: right;line-height: 1.25rem;"
596
- }, null)]), u(a, a)]) : w("li", {
597
- class: c(a),
598
- id: a.id,
599
- onClick: (d) => M(d, a),
600
- onMouseover: (d) => a.enable && v(d, a, p)
601
- }, [r.shouldShowIcon(a) && w("i", {
602
- class: r.iconClass(a)
603
- }, null), a.text]));
604
- }
605
- function g(p, a, d) {
606
- const s = {
607
- display: p.expanded ? "block" : "none",
540
+ }, null)]), u(i, i)]) : w("li", {
541
+ class: p(i),
542
+ id: i.id,
543
+ onClick: (f) => D(f, i),
544
+ onMouseover: (f) => i.enable && h(f, i, l)
545
+ }, [s.shouldShowIcon(i) && w("i", {
546
+ class: s.iconClass(i)
547
+ }, null), i.text]));
548
+ }
549
+ function g(l, i, f) {
550
+ const c = {
551
+ display: l.expanded ? "block" : "none",
608
552
  position: "fixed",
609
553
  maxWidth: "300px",
610
554
  width: "auto",
611
555
  minWidth: "120px"
612
- }, y = document.getElementsByTagName("body")[0].getClientRects()[0].width, h = a, x = h == null ? void 0 : h.getClientRects();
613
- if (h && x && x.length) {
556
+ }, b = document.getElementsByTagName("body")[0].getClientRects()[0].width, y = i, T = y == null ? void 0 : y.getClientRects();
557
+ if (y && T && T.length) {
614
558
  const {
615
559
  top: O,
616
560
  width: P,
617
- left: A,
561
+ left: k,
618
562
  right: N,
619
- height: D
620
- } = x[0], b = Math.ceil(D + O);
621
- s.top = `${b}px`, s.left = `${A}px`;
622
- const k = p.id + "_menu", E = a ? a.querySelector("#" + k) : null;
623
- if (E) {
624
- s.display === "block" && (E.style.display = "block");
625
- const l = E.getBoundingClientRect();
626
- if (d) {
627
- s.top = `${O - 6}px`;
628
- const o = Math.ceil(P + A);
629
- s.left = `${o}px`;
563
+ height: j
564
+ } = T[0], m = Math.ceil(j + O);
565
+ c.top = `${m}px`, c.left = `${k}px`;
566
+ const R = l.id + "_menu", A = i ? i.querySelector("#" + R) : null;
567
+ if (A) {
568
+ c.display === "block" && (A.style.display = "block");
569
+ const a = A.getBoundingClientRect();
570
+ if (f) {
571
+ c.top = `${O - 6}px`;
572
+ const n = Math.ceil(P + k);
573
+ c.left = `${n}px`;
630
574
  }
631
- y - A - P < l.width && (s.left = `${(d ? A : N) - l.width}px`);
575
+ b - k - P < a.width && (c.left = `${(f ? k : N) - a.width}px`);
632
576
  }
633
577
  }
634
- return s;
578
+ return c;
635
579
  }
636
- u = function(p, a) {
637
- var h, x;
638
- const d = de(), s = a ? a.id : p.id, y = (x = (h = d == null ? void 0 : d.exposed) == null ? void 0 : h.elementRef.value) == null ? void 0 : x.querySelector("#" + s);
580
+ u = function(l, i) {
581
+ var y, T;
582
+ const f = ue(), c = i ? i.id : l.id, b = (T = (y = f == null ? void 0 : f.exposed) == null ? void 0 : y.elementRef.value) == null ? void 0 : T.querySelector("#" + c);
639
583
  return w("ul", {
640
- class: e(p),
641
- style: g(p, y, a),
642
- id: p.id + "_menu"
643
- }, [S(p)]);
584
+ class: e(l),
585
+ style: g(l, b, i),
586
+ id: l.id + "_menu"
587
+ }, [I(l)]);
644
588
  };
645
589
  function C() {
646
- m.forEach((p) => {
647
- p.expanded = !1;
648
- }), m.clear();
590
+ v.forEach((l) => {
591
+ l.expanded = !1;
592
+ }), v.clear();
649
593
  }
650
594
  return {
651
595
  renderDropdownMenu: u,
652
596
  clearAllDropDownMenu: C
653
597
  };
654
598
  }
655
- function pt(r, e) {
656
- const n = j(r.alignment), {
657
- renderDropdownMenu: c,
599
+ function ft(s, e) {
600
+ const o = S(s.alignment), {
601
+ renderDropdownMenu: p,
658
602
  clearAllDropDownMenu: u
659
- } = lt(e);
660
- function m(C) {
661
- const p = {
603
+ } = ut(e);
604
+ function v(C) {
605
+ const l = {
662
606
  "btn-group": !0,
663
607
  "f-rt-dropdown": !0,
664
- "f-btn-ml": n.value === "right",
665
- "f-btn-mr": n.value === "left"
666
- }, a = C.dropdownClass.split(" ");
667
- return a && a.length && a.reduce((d, s) => (d[s] = !0, d), p), p;
608
+ "f-btn-ml": o.value === "right",
609
+ "f-btn-mr": o.value === "left"
610
+ }, i = C.dropdownClass.split(" ");
611
+ return i && i.length && i.reduce((f, c) => (f[c] = !0, f), l), l;
668
612
  }
669
- function v(C) {
670
- const p = {
613
+ function h(C) {
614
+ const l = {
671
615
  btn: !0,
672
616
  disabled: !C.enable,
673
617
  "f-rt-btn": !0,
674
618
  "btn-icontext": !!(C.icon && C.icon.trim())
675
619
  };
676
620
  if (C.class) {
677
- const a = C.class.split(" ");
678
- a && a.length && a.reduce((d, s) => (d[s] = !0, d), p);
621
+ const i = C.class.split(" ");
622
+ i && i.length && i.reduce((f, c) => (f[c] = !0, f), l);
679
623
  }
680
- return p;
624
+ return l;
681
625
  }
682
- function M(C, p) {
626
+ function D(C, l) {
683
627
  C.stopPropagation();
684
- const a = p.expanded;
685
- document.body.click(), p.expanded = !a;
628
+ const i = l.expanded;
629
+ document.body.click(), l.expanded = !i;
686
630
  }
687
- function S(C) {
631
+ function I(C) {
688
632
  return w("div", {
689
633
  id: C.id,
690
- class: m(C)
634
+ class: v(C)
691
635
  }, [w("div", {
692
- class: v(C),
636
+ class: h(C),
693
637
  style: "display: flex;padding-right: 0.1rem;border-top-right-radius: 6px;border-bottom-right-radius: 6px",
694
- onClick: (p) => C.enable && M(p, C)
638
+ onClick: (l) => C.enable && D(l, C)
695
639
  }, [e.shouldShowIcon(C) && w("i", {
696
640
  class: e.iconClass(C)
697
641
  }, null), w("span", null, [C.text]), w("i", {
698
642
  class: "f-icon f-icon-arrow-chevron-down",
699
643
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
700
- }, null)]), c(C)]);
644
+ }, null)]), p(C)]);
701
645
  }
702
646
  function g() {
703
647
  u();
704
648
  }
705
649
  return {
706
- renderToolbarDropdown: S,
650
+ renderToolbarDropdown: I,
707
651
  clearAllDropDown: g
708
652
  };
709
653
  }
710
654
  const {
711
- buildResponseToolbarItems: pe
712
- } = ge(), X = /* @__PURE__ */ Y({
655
+ buildResponseToolbarItems: de
656
+ } = he(), Q = /* @__PURE__ */ X({
713
657
  name: "FResponseToolbar",
714
- props: se,
658
+ props: ie,
715
659
  emits: ["click"],
716
- setup(r, e) {
717
- const n = j(pe(r.items)), c = j(), u = j(), m = j(), v = j(r.alignment), M = {
660
+ setup(s, e) {
661
+ const o = S(de(s.items)), p = S(), u = S(), v = S(), h = S(s.alignment), D = {
718
662
  id: "__more_buttons__",
719
663
  text: "更多"
720
- }, S = j(new G(M)), g = Te(), C = z(() => S.value.children.length > 0), p = z(() => {
721
- const b = {
722
- "f-toolbar": !0,
723
- "f-response-toolbar": !0,
724
- "position-relative": !0
725
- };
726
- if (r.customClass) {
727
- const k = r.customClass.split(" ");
728
- k && k.length && k.reduce((E, l) => (E[l] = !0, E), b);
729
- }
730
- return b;
731
- }), a = z(() => ({
664
+ }, I = S(new G(D)), g = xe(), C = W(() => I.value.children.length > 0), l = W(() => J({
665
+ "f-toolbar": !0,
666
+ "f-response-toolbar": !0,
667
+ "position-relative": !0
668
+ }, s.customClass)), i = W(() => ({
732
669
  "d-flex": !0,
733
670
  "flex-nowrap": !0,
734
- "justify-content-end": v.value === "right",
735
- "justify-content-start": v.value === "left"
671
+ "justify-content-end": h.value === "right",
672
+ "justify-content-start": h.value === "left"
736
673
  })), {
737
- renderToolbarDropdown: d,
738
- clearAllDropDown: s
739
- } = pt(r, g);
740
- function y() {
741
- n.value.filter((b) => b.children && b.children.length > 0).forEach((b) => {
742
- b.expanded = !1;
743
- }), S.value.expanded = !1, s();
674
+ renderToolbarDropdown: f,
675
+ clearAllDropDown: c
676
+ } = ft(s, g);
677
+ function b() {
678
+ o.value.filter((m) => m.children && m.children.length > 0).forEach((m) => {
679
+ m.expanded = !1;
680
+ }), I.value.expanded = !1, c();
744
681
  }
745
- function h(b) {
746
- const k = {
682
+ function y(m) {
683
+ const R = {
747
684
  btn: !0,
748
685
  "f-rt-btn": !0,
749
- "f-btn-ml": v.value === "right",
750
- "f-btn-mr": v.value === "left",
751
- "btn-icontext": !!(b.icon && b.icon.trim())
686
+ "f-btn-ml": h.value === "right",
687
+ "f-btn-mr": h.value === "left",
688
+ "btn-icontext": !!(m.icon && m.icon.trim())
752
689
  };
753
- if (b.class) {
754
- const E = b.class.split(" ");
755
- E && E.length && E.reduce((l, o) => (l[o] = !0, l), k);
690
+ if (m.class) {
691
+ const A = m.class.split(" ");
692
+ A && A.length && A.reduce((a, n) => (a[n] = !0, a), R);
756
693
  }
757
- return k;
694
+ return R;
758
695
  }
759
- function x(b, k) {
760
- document.body.click(), k.onClick(b, k.id), e.emit("click", b, k.id);
696
+ function T(m, R) {
697
+ document.body.click(), R.onClick(m, R.id), e.emit("click", m, R.id);
761
698
  }
762
- function O(b) {
699
+ function O(m) {
763
700
  return w("button", {
764
701
  type: "button",
765
- class: h(b),
766
- id: b.id,
767
- disabled: !b.enable,
768
- onClick: (k) => x(k, b)
769
- }, [g.shouldShowIcon(b) && w("i", {
770
- class: g.iconClass(b)
771
- }, null), b.text]);
702
+ class: y(m),
703
+ id: m.id,
704
+ disabled: !m.enable,
705
+ onClick: (R) => T(R, m)
706
+ }, [g.shouldShowIcon(m) && w("i", {
707
+ class: g.iconClass(m)
708
+ }, null), m.text]);
772
709
  }
773
- const P = /* @__PURE__ */ new Map(), A = [];
774
- function N(b) {
775
- const k = m.value;
776
- let E = b;
777
- const l = Array.from(k.children), o = l[l.length - 1].id === "__more_buttons__" ? l[l.length - 1] : null;
778
- if (o) {
779
- const T = o.computedStyleMap().get("margin-left"), B = o.computedStyleMap().get("margin-right"), _ = (T ? T.value : 0) + o.getBoundingClientRect().width + (B ? B.value : 0);
780
- E -= _;
710
+ const P = /* @__PURE__ */ new Map(), k = [];
711
+ function N(m) {
712
+ const R = v.value;
713
+ let A = m;
714
+ const a = Array.from(R.children), n = a[a.length - 1].id === "__more_buttons__" ? a[a.length - 1] : null;
715
+ if (n) {
716
+ const x = n.computedStyleMap().get("margin-left"), M = n.computedStyleMap().get("margin-right"), F = (x ? x.value : 0) + n.getBoundingClientRect().width + (M ? M.value : 0);
717
+ A -= F;
781
718
  }
782
- const t = l.filter((T) => T.id !== "__more_buttons__");
783
- for (const T of t) {
784
- const B = T.computedStyleMap().get("margin-left"), _ = T.computedStyleMap().get("margin-right"), L = (B ? B.value : 0) + T.getBoundingClientRect().width + (_ ? _.value : 0);
785
- E < L ? (P.set(T.id, !0), A.push({
786
- id: T.id,
787
- width: L
788
- })) : E -= L;
719
+ const t = a.filter((x) => x.id !== "__more_buttons__");
720
+ for (const x of t) {
721
+ const M = x.computedStyleMap().get("margin-left"), F = x.computedStyleMap().get("margin-right"), _ = (M ? M.value : 0) + x.getBoundingClientRect().width + (F ? F.value : 0);
722
+ A < _ ? (P.set(x.id, !0), k.push({
723
+ id: x.id,
724
+ width: _
725
+ })) : A -= _;
789
726
  }
790
- if (A.length)
791
- for (let T = A.length - 1; T >= 0; T--) {
792
- const B = A[T].width;
793
- if (E >= B)
794
- E -= B, P.delete(A[T].id), A.pop();
727
+ if (k.length)
728
+ for (let x = k.length - 1; x >= 0; x--) {
729
+ const M = k[x].width;
730
+ if (A >= M)
731
+ A -= M, P.delete(k[x].id), k.pop();
795
732
  else
796
733
  break;
797
734
  }
798
- const i = Object.assign({}, S.value);
799
- i.children = [];
800
- const f = new G(i), R = n.value.reduce((T, B) => (P.has(B.id) && f.children.push(B), B.visible = !P.has(B.id), T.push(B), T), []);
801
- S.value = f, n.value = R;
735
+ const r = Object.assign({}, I.value);
736
+ r.children = [];
737
+ const d = new G(r), E = o.value.reduce((x, M) => (P.has(M.id) && d.children.push(M), M.visible = !P.has(M.id), x.push(M), x), []);
738
+ I.value = d, o.value = E;
802
739
  }
803
- const D = new ResizeObserver((b) => {
804
- if (b.length) {
805
- const E = b[0].contentRect.width, o = m.value.getBoundingClientRect().width;
806
- (E < o || A.length) && (N(E), y());
740
+ const j = new ResizeObserver((m) => {
741
+ if (m.length) {
742
+ const A = m[0].contentRect.width, n = v.value.getBoundingClientRect().width;
743
+ (A < n || k.length) && (N(A), b());
807
744
  }
808
745
  });
809
- return H(() => {
810
- const b = u.value;
811
- D.observe(b), document.body.addEventListener("click", y), document.body.addEventListener("wheel", y);
746
+ return z(() => {
747
+ const m = u.value;
748
+ j.observe(m), document.body.addEventListener("click", b), document.body.addEventListener("wheel", b);
812
749
  }), ne(() => {
813
- D.disconnect(), document.body.removeEventListener("click", y), document.body.removeEventListener("wheel", y);
814
- }), Q(() => r.items, () => {
815
- n.value = pe(r.items);
750
+ j.disconnect(), document.body.removeEventListener("click", b), document.body.removeEventListener("wheel", b);
751
+ }), H(() => s.items, () => {
752
+ o.value = de(s.items);
816
753
  }, {
817
754
  deep: !0
818
755
  }), e.expose({
819
- elementRef: c
756
+ elementRef: p
820
757
  }), () => w("div", {
821
- class: p.value,
822
- ref: c
758
+ class: l.value,
759
+ ref: p
823
760
  }, [w("div", {
824
761
  ref: u,
825
- class: a.value
762
+ class: i.value
826
763
  }, [w("div", {
827
- ref: m,
764
+ ref: v,
828
765
  class: "d-inline-block f-response-content",
829
766
  style: "white-space: nowrap;"
830
- }, [n.value.filter((b) => b.visible).map((b) => b.children && b.children.length > 0 ? d(b) : O(b)), C.value && d(S.value)])])]);
767
+ }, [o.value.filter((m) => m.visible).map((m) => m.children && m.children.length > 0 ? f(m) : O(m)), C.value && f(I.value)])])]);
831
768
  }
832
769
  });
833
- function dt(r, e) {
834
- const n = $("design-item-context"), c = $("toolbar-item-handler", () => {
770
+ function gt(s, e) {
771
+ const o = L("design-item-context"), p = L("toolbar-item-handler", () => {
835
772
  });
836
773
  function u() {
837
- c && c();
774
+ p && p();
838
775
  }
839
- function m(o) {
776
+ function v(n) {
840
777
  const t = {
841
778
  "dropdown-menu": !0
842
779
  };
843
- if (o.class) {
844
- const i = o.menuClass.split(" ");
845
- i && i.length && i.reduce((f, R) => (f[R] = !0, f), t);
780
+ if (n.class) {
781
+ const r = n.menuClass.split(" ");
782
+ r && r.length && r.reduce((d, E) => (d[E] = !0, d), t);
846
783
  }
847
784
  return t;
848
785
  }
849
- function v(o) {
786
+ function h(n) {
850
787
  const t = {
851
- disabled: !o.enable,
788
+ disabled: !n.enable,
852
789
  "dropdown-submenu": !0,
853
790
  "f-rt-dropdown": !0
854
- }, i = o.dropdownClass.split(" ");
855
- return i && i.length && i.reduce((f, R) => (f[R] = !0, f), t), t;
791
+ }, r = n.dropdownClass.split(" ");
792
+ return r && r.length && r.reduce((d, E) => (d[E] = !0, d), t), t;
856
793
  }
857
- function M(o) {
794
+ function D(n) {
858
795
  const t = {
859
- disabled: !o.enable,
796
+ disabled: !n.enable,
860
797
  "dropdown-item": !0,
861
798
  "f-rt-btn": !0,
862
799
  "position-relative": !0,
863
800
  "farris-component": !0
864
- }, i = o.class.split(" ");
865
- return i && i.length && i.reduce((f, R) => (f[R] = !0, f), t), t;
801
+ }, r = n.class.split(" ");
802
+ return r && r.length && r.reduce((d, E) => (d[E] = !0, d), t), t;
866
803
  }
867
- let S;
804
+ let I;
868
805
  const g = /* @__PURE__ */ new Map();
869
- function C(o, t, i) {
870
- var R;
871
- ((R = o.target) == null ? void 0 : R.id) === t.id && o.stopPropagation();
872
- const f = i ? i.id : "__top_item__";
873
- if (t.children && t.children.length && (t.expanded = !t.expanded, t.expanded ? g.set(f, t) : g.delete(f)), g.has(f) && g.get(f) !== t) {
874
- const T = g.get(f);
875
- T && (T.expanded = !1);
806
+ function C(n, t, r) {
807
+ var E;
808
+ ((E = n.target) == null ? void 0 : E.id) === t.id && n.stopPropagation();
809
+ const d = r ? r.id : "__top_item__";
810
+ if (t.children && t.children.length && (t.expanded = !t.expanded, t.expanded ? g.set(d, t) : g.delete(d)), g.has(d) && g.get(d) !== t) {
811
+ const x = g.get(d);
812
+ x && (x.expanded = !1);
876
813
  }
877
814
  }
878
- function p(o) {
879
- o && (o.stopPropagation(), o.preventDefault());
815
+ function l(n) {
816
+ n && (n.stopPropagation(), n.preventDefault());
880
817
  }
881
- function a() {
818
+ function i() {
882
819
  Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((t) => t.classList.remove("dgComponentFocused"));
883
- const o = document.getElementsByClassName("dgComponentSelected");
884
- Array.from(o).forEach((t) => t.classList.remove("dgComponentSelected"));
820
+ const n = document.getElementsByClassName("dgComponentSelected");
821
+ Array.from(n).forEach((t) => t.classList.remove("dgComponentSelected"));
885
822
  }
886
- function d(o) {
887
- o.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
823
+ function f(n) {
824
+ n.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
888
825
  }
889
- function s(o) {
826
+ function c(n) {
890
827
  const {
891
828
  buttons: t = []
892
- } = n.schema;
893
- let i = [];
894
- t.forEach((T) => {
895
- i = i.concat(T.children || []);
829
+ } = o.schema;
830
+ let r = [];
831
+ t.forEach((x) => {
832
+ r = r.concat(x.children || []);
896
833
  });
897
- const f = i.findIndex((T) => T.id === o), R = f === -1 ? null : i[f];
834
+ const d = r.findIndex((x) => x.id === n), E = d === -1 ? null : r[d];
898
835
  return {
899
- index: f,
900
- item: R
836
+ index: d,
837
+ item: E
901
838
  };
902
839
  }
903
- function y(o) {
840
+ function b(n) {
904
841
  const {
905
842
  buttons: t = []
906
- } = n.schema, i = t.findIndex((R) => R.id === o), f = i === -1 ? null : t[i];
843
+ } = o.schema, r = t.findIndex((E) => E.id === n), d = r === -1 ? null : t[r];
907
844
  return {
908
- index: i,
909
- item: f
845
+ index: r,
846
+ item: d
910
847
  };
911
848
  }
912
- function h(o) {
913
- var f;
914
- n.schema;
849
+ function y(n) {
850
+ var d;
851
+ o.schema;
915
852
  const {
916
853
  index: t,
917
- item: i
918
- } = s(o);
919
- (f = n == null ? void 0 : n.setupContext) == null || f.emit("selectionChange", i == null ? void 0 : i.type, i);
854
+ item: r
855
+ } = c(n);
856
+ (d = o == null ? void 0 : o.setupContext) == null || d.emit("selectionChange", r == null ? void 0 : r.type, r);
920
857
  }
921
- const x = function(o) {
858
+ const T = function(n) {
922
859
  const {
923
860
  componentType: t
924
- } = o, i = q(t, o), f = t.toLowerCase().replace("-", "_");
925
- return i && !i.id && i.type === t && (i.id = `${f}_${Math.random().toString().slice(2, 6)}`), i;
861
+ } = n, r = q(t, n), d = t.toLowerCase().replace("-", "_");
862
+ return r && !r.id && r.type === t && (r.id = `${d}_${Math.random().toString().slice(2, 6)}`), r;
926
863
  }, O = function() {
927
- const o = {
864
+ const n = {
928
865
  componentType: "response-toolbar-item",
929
866
  parentComponentInstance: e.value,
930
867
  targetPosition: -1
931
868
  };
932
- return x(o);
869
+ return T(n);
933
870
  };
934
- function P(o, t) {
935
- p(o), a(), d(o), h(t.id);
936
- }
937
- function A(o, t, i) {
938
- p(o);
939
- const f = t.id, R = i && i.id, {
940
- buttons: T = []
941
- } = n.schema;
942
- if (!R)
871
+ function P(n, t) {
872
+ l(n), i(), f(n), y(t.id);
873
+ }
874
+ function k(n, t, r) {
875
+ l(n);
876
+ const d = t.id, E = r && r.id, {
877
+ buttons: x = []
878
+ } = o.schema;
879
+ if (!E)
943
880
  return;
944
881
  const {
945
- index: B
946
- } = y(R);
947
- if (B === -1)
882
+ index: M
883
+ } = b(E);
884
+ if (M === -1)
948
885
  return;
949
886
  const {
950
- index: _
951
- } = s(f);
952
- _ !== -1 && (T[B].children.splice(_, 1), u());
953
- }
954
- function N(o, t, i) {
955
- p(o);
956
- const f = i && i.id, {
957
- buttons: R = []
958
- } = n.schema;
959
- if (!f)
887
+ index: F
888
+ } = c(d);
889
+ F !== -1 && (x[M].children.splice(F, 1), u());
890
+ }
891
+ function N(n, t, r) {
892
+ l(n);
893
+ const d = r && r.id, {
894
+ buttons: E = []
895
+ } = o.schema;
896
+ if (!d)
960
897
  return;
961
898
  const {
962
- index: T
963
- } = y(f);
964
- if (T === -1)
899
+ index: x
900
+ } = b(d);
901
+ if (x === -1)
965
902
  return;
966
- const B = O(), _ = Object.assign({}, B, {
903
+ const M = O(), F = Object.assign({}, M, {
967
904
  text: t.text
968
905
  });
969
- R[T].children.push(_), u();
970
- }
971
- function D(o, t, i) {
972
- p(o);
973
- const f = i && i.id, {
974
- buttons: R = []
975
- } = n.schema;
976
- if (!f)
906
+ E[x].children.push(F), u();
907
+ }
908
+ function j(n, t, r) {
909
+ l(n);
910
+ const d = r && r.id, {
911
+ buttons: E = []
912
+ } = o.schema;
913
+ if (!d)
977
914
  return;
978
915
  const {
979
- index: T
980
- } = y(f);
981
- if (T === -1)
916
+ index: x
917
+ } = b(d);
918
+ if (x === -1)
982
919
  return;
983
- const B = O(), _ = Object.assign({}, B, {
920
+ const M = O(), F = Object.assign({}, M, {
984
921
  text: "按钮"
985
922
  });
986
- R[T].children.push(_), u();
923
+ E[x].children.push(F), u();
987
924
  }
988
- function b(o, t) {
925
+ function m(n, t) {
989
926
  return w("div", {
990
927
  class: "component-btn-group"
991
928
  }, [w("div", null, [w("div", {
@@ -994,7 +931,7 @@ function dt(r, e) {
994
931
  title: "删除",
995
932
  ref: "removeButton",
996
933
  style: "position:static;",
997
- onClick: (i) => A(i, o, t)
934
+ onClick: (r) => k(r, n, t)
998
935
  }, [w("i", {
999
936
  class: "f-icon f-icon-yxs_delete"
1000
937
  }, null)]), w("div", {
@@ -1003,7 +940,7 @@ function dt(r, e) {
1003
940
  title: "复制",
1004
941
  ref: "copyButton",
1005
942
  style: "position:static;",
1006
- onClick: (i) => N(i, o, t)
943
+ onClick: (r) => N(r, n, t)
1007
944
  }, [w("i", {
1008
945
  class: "f-icon f-icon-yxs_copy"
1009
946
  }, null)]), w("div", {
@@ -1012,174 +949,174 @@ function dt(r, e) {
1012
949
  title: "新增同级",
1013
950
  ref: "appendSame",
1014
951
  style: "width:85px!important;padding:0 5px;position:static;",
1015
- onClick: (i) => D(i, o, t)
952
+ onClick: (r) => j(r, n, t)
1016
953
  }, [w("i", {
1017
954
  class: "f-icon f-icon-plus-circle text-white mr-1"
1018
955
  }, null), w("span", {
1019
956
  style: "font-size:13px;margin:auto"
1020
- }, [ue("新增同级")])])])]);
957
+ }, [fe("新增同级")])])])]);
1021
958
  }
1022
- function k(o) {
1023
- return o.children.map((t) => t.children && t.children.length ? w("li", {
1024
- class: v(t),
959
+ function R(n) {
960
+ return n.children.map((t) => t.children && t.children.length ? w("li", {
961
+ class: h(t),
1025
962
  id: t.id,
1026
- onClick: (i) => t.enable && C(i, t, o)
963
+ onClick: (r) => t.enable && C(r, t, n)
1027
964
  }, [w("span", {
1028
965
  id: t.id,
1029
- class: M(t),
1030
- onMouseover: (i) => t.enable && C(i, t, o)
966
+ class: D(t),
967
+ onMouseover: (r) => t.enable && C(r, t, n)
1031
968
  }, [t.text, w("i", {
1032
969
  class: "f-icon f-icon-arrow-chevron-right",
1033
970
  style: "display: inline-block;float: right;line-height: 1.25rem;"
1034
- }, null)]), S(t, t)]) : w("li", {
1035
- class: M(t),
971
+ }, null)]), I(t, t)]) : w("li", {
972
+ class: D(t),
1036
973
  id: t.id,
1037
- onClick: (i) => P(i, t)
1038
- }, [b(t, o), r.shouldShowIcon(t) && w("i", {
1039
- class: r.iconClass(t)
974
+ onClick: (r) => P(r, t)
975
+ }, [m(t, n), s.shouldShowIcon(t) && w("i", {
976
+ class: s.iconClass(t)
1040
977
  }, null), t.text]));
1041
978
  }
1042
- function E(o, t, i) {
1043
- const f = {
1044
- display: o.expanded ? "block" : "none",
979
+ function A(n, t, r) {
980
+ const d = {
981
+ display: n.expanded ? "block" : "none",
1045
982
  position: "fixed",
1046
983
  maxWidth: "300px",
1047
984
  width: "auto",
1048
985
  minWidth: "120px"
1049
- }, R = document.getElementsByTagName("body")[0].getClientRects()[0].width, T = t, B = T == null ? void 0 : T.getClientRects();
1050
- if (T && B && B.length) {
986
+ }, E = document.getElementsByTagName("body")[0].getClientRects()[0].width, x = t, M = x == null ? void 0 : x.getClientRects();
987
+ if (x && M && M.length) {
1051
988
  const {
1052
- top: _,
1053
- width: L,
1054
- left: V,
1055
- right: W,
989
+ top: F,
990
+ width: _,
991
+ left: $,
992
+ right: V,
1056
993
  height: U
1057
- } = B[0], Z = Math.ceil(U + _);
1058
- f.top = `${Z}px`, f.left = `${V}px`;
1059
- const Ie = o.id + "_menu", K = t ? t.querySelector("#" + Ie) : null;
1060
- if (K) {
1061
- f.display === "block" && (K.style.display = "block");
1062
- const ce = K.getBoundingClientRect();
1063
- if (i) {
1064
- f.top = `${_ - 6}px`;
1065
- const Me = Math.ceil(L + V);
1066
- f.left = `${Me}px`;
994
+ } = M[0], Y = Math.ceil(U + F);
995
+ d.top = `${Y}px`, d.left = `${$}px`;
996
+ const Ie = n.id + "_menu", Z = t ? t.querySelector("#" + Ie) : null;
997
+ if (Z) {
998
+ d.display === "block" && (Z.style.display = "block");
999
+ const le = Z.getBoundingClientRect();
1000
+ if (r) {
1001
+ d.top = `${F - 6}px`;
1002
+ const De = Math.ceil(_ + $);
1003
+ d.left = `${De}px`;
1067
1004
  }
1068
- R - V - L < ce.width && (f.left = `${(i ? V : W) - ce.width}px`);
1005
+ E - $ - _ < le.width && (d.left = `${(r ? $ : V) - le.width}px`);
1069
1006
  }
1070
1007
  }
1071
- return f;
1008
+ return d;
1072
1009
  }
1073
- S = function(o, t) {
1074
- var T, B;
1075
- const i = de(), f = t ? t.id : o.id, R = (B = (T = i == null ? void 0 : i.exposed) == null ? void 0 : T.elementRef.value) == null ? void 0 : B.querySelector("#" + f);
1010
+ I = function(n, t) {
1011
+ var x, M;
1012
+ const r = ue(), d = t ? t.id : n.id, E = (M = (x = r == null ? void 0 : r.exposed) == null ? void 0 : x.elementRef.value) == null ? void 0 : M.querySelector("#" + d);
1076
1013
  return w("ul", {
1077
- class: m(o),
1078
- style: E(o, R, t),
1079
- id: o.id + "_menu"
1080
- }, [k(o)]);
1014
+ class: v(n),
1015
+ style: A(n, E, t),
1016
+ id: n.id + "_menu"
1017
+ }, [R(n)]);
1081
1018
  };
1082
- function l() {
1083
- g.forEach((o) => {
1084
- o.expanded = !1;
1019
+ function a() {
1020
+ g.forEach((n) => {
1021
+ n.expanded = !1;
1085
1022
  }), g.clear();
1086
1023
  }
1087
1024
  return {
1088
- renderDropdownMenu: S,
1089
- clearAllDropDownMenu: l
1025
+ renderDropdownMenu: I,
1026
+ clearAllDropDownMenu: a
1090
1027
  };
1091
1028
  }
1092
- function ut(r, e, n) {
1093
- const c = j(r.alignment), {
1029
+ function mt(s, e, o) {
1030
+ const p = S(s.alignment), {
1094
1031
  renderDropdownMenu: u,
1095
- clearAllDropDownMenu: m
1096
- } = dt(e, n), v = $("design-item-context"), M = $("toolbar-item-handler", () => {
1032
+ clearAllDropDownMenu: v
1033
+ } = gt(e, o), h = L("design-item-context"), D = L("toolbar-item-handler", () => {
1097
1034
  });
1098
- function S() {
1099
- M && M();
1035
+ function I() {
1036
+ D && D();
1100
1037
  }
1101
- function g(l) {
1102
- const o = {
1038
+ function g(a) {
1039
+ const n = {
1103
1040
  "btn-group": !0,
1104
1041
  "f-rt-dropdown": !0,
1105
- "f-btn-ml": c.value === "right",
1106
- "f-btn-mr": c.value === "left"
1107
- }, t = l.dropdownClass.split(" ");
1108
- return t && t.length && t.reduce((i, f) => (i[f] = !0, i), o), o;
1042
+ "f-btn-ml": p.value === "right",
1043
+ "f-btn-mr": p.value === "left"
1044
+ }, t = a.dropdownClass.split(" ");
1045
+ return t && t.length && t.reduce((r, d) => (r[d] = !0, r), n), n;
1109
1046
  }
1110
- function C(l) {
1111
- const o = {
1047
+ function C(a) {
1048
+ const n = {
1112
1049
  btn: !0,
1113
- disabled: !l.enable,
1050
+ disabled: !a.enable,
1114
1051
  "position-relative": !0,
1115
1052
  "farris-component": !0,
1116
1053
  "f-rt-btn": !0,
1117
- "btn-icontext": !!(l.icon && l.icon.trim())
1054
+ "btn-icontext": !!(a.icon && a.icon.trim())
1118
1055
  };
1119
- if (l.class) {
1120
- const t = l.class.split(" ");
1121
- t && t.length && t.reduce((i, f) => (i[f] = !0, i), o);
1056
+ if (a.class) {
1057
+ const t = a.class.split(" ");
1058
+ t && t.length && t.reduce((r, d) => (r[d] = !0, r), n);
1122
1059
  }
1123
- return o;
1060
+ return n;
1124
1061
  }
1125
- function p(l) {
1126
- l && (l.stopPropagation(), l.preventDefault());
1062
+ function l(a) {
1063
+ a && (a.stopPropagation(), a.preventDefault());
1127
1064
  }
1128
- function a(l, o) {
1129
- p(l);
1130
- const t = o.expanded;
1131
- document.body.click(), o.expanded = !t;
1065
+ function i(a, n) {
1066
+ l(a);
1067
+ const t = n.expanded;
1068
+ document.body.click(), n.expanded = !t;
1132
1069
  }
1133
- const d = function(l) {
1070
+ const f = function(a) {
1134
1071
  const {
1135
- componentType: o
1136
- } = l, t = q(o, l), i = o.toLowerCase().replace("-", "_");
1137
- return t && !t.id && t.type === o && (t.id = `${i}_${Math.random().toString().slice(2, 6)}`), t;
1138
- }, s = function() {
1139
- const l = {
1072
+ componentType: n
1073
+ } = a, t = q(n, a), r = n.toLowerCase().replace("-", "_");
1074
+ return t && !t.id && t.type === n && (t.id = `${r}_${Math.random().toString().slice(2, 6)}`), t;
1075
+ }, c = function() {
1076
+ const a = {
1140
1077
  componentType: "response-toolbar-item",
1141
- parentComponentInstance: n.value,
1078
+ parentComponentInstance: o.value,
1142
1079
  targetPosition: -1
1143
1080
  };
1144
- return d(l);
1081
+ return f(a);
1145
1082
  };
1146
- function y(l) {
1147
- const o = v.schema.buttons || v.schema.contents, t = o == null ? void 0 : o.findIndex((f) => f.id === l), i = t === -1 ? null : o[t];
1083
+ function b(a) {
1084
+ const n = h.schema.buttons || h.schema.contents, t = n == null ? void 0 : n.findIndex((d) => d.id === a), r = t === -1 ? null : n[t];
1148
1085
  return {
1149
1086
  index: t,
1150
- toolbarItem: i
1087
+ toolbarItem: r
1151
1088
  };
1152
1089
  }
1153
- function h(l, o) {
1154
- var B;
1090
+ function y(a, n) {
1091
+ var M;
1155
1092
  const {
1156
1093
  index: t,
1157
- toolbarItem: i
1158
- } = y(o);
1094
+ toolbarItem: r
1095
+ } = b(n);
1159
1096
  if (t === -1)
1160
1097
  return;
1161
- const f = i.text || "按钮", R = s(), T = Object.assign({}, R, {
1162
- text: f
1098
+ const d = r.text || "按钮", E = c(), x = Object.assign({}, E, {
1099
+ text: d
1163
1100
  });
1164
- (B = v.schema.buttons) == null || B.push(T), S();
1101
+ (M = h.schema.buttons) == null || M.push(x), I();
1165
1102
  }
1166
- function x(l, o) {
1103
+ function T(a, n) {
1167
1104
  const {
1168
1105
  index: t,
1169
- toolbarItem: i
1170
- } = y(o);
1106
+ toolbarItem: r
1107
+ } = b(n);
1171
1108
  if (t === -1)
1172
1109
  return;
1173
- const f = i.text || "按钮", R = s(), T = Object.assign({}, R, {
1174
- text: f
1175
- }), B = v.schema.buttons[t].children || [];
1176
- B.push(T), v.schema.buttons[t].children = B, S();
1110
+ const d = r.text || "按钮", E = c(), x = Object.assign({}, E, {
1111
+ text: d
1112
+ }), M = h.schema.buttons[t].children || [];
1113
+ M.push(x), h.schema.buttons[t].children = M, I();
1177
1114
  }
1178
- function O(l, o) {
1179
- const t = v.schema.buttons || v.schema.contents, i = t == null ? void 0 : t.findIndex((f) => f.id === o);
1180
- i !== -1 && (t.splice(i, 1), S());
1115
+ function O(a, n) {
1116
+ const t = h.schema.buttons || h.schema.contents, r = t == null ? void 0 : t.findIndex((d) => d.id === n);
1117
+ r !== -1 && (t.splice(r, 1), I());
1181
1118
  }
1182
- function P(l) {
1119
+ function P(a) {
1183
1120
  return w("div", {
1184
1121
  class: "component-btn-group"
1185
1122
  }, [w("div", null, [w("div", {
@@ -1188,7 +1125,7 @@ function ut(r, e, n) {
1188
1125
  title: "删除",
1189
1126
  ref: "removeButton",
1190
1127
  style: "position:static;",
1191
- onClick: (o) => O(o, l)
1128
+ onClick: (n) => O(n, a)
1192
1129
  }, [w("i", {
1193
1130
  class: "f-icon f-icon-yxs_delete"
1194
1131
  }, null)]), w("div", {
@@ -1197,7 +1134,7 @@ function ut(r, e, n) {
1197
1134
  title: "复制",
1198
1135
  ref: "copyButton",
1199
1136
  style: "position:static;",
1200
- onClick: (o) => h(o, l)
1137
+ onClick: (n) => y(n, a)
1201
1138
  }, [w("i", {
1202
1139
  class: "f-icon f-icon-yxs_copy"
1203
1140
  }, null)]), w("div", {
@@ -1206,76 +1143,76 @@ function ut(r, e, n) {
1206
1143
  title: "新增子级",
1207
1144
  ref: "appendChildButton",
1208
1145
  style: "width:85px!important;padding:0 5px;position:static;",
1209
- onClick: (o) => x(o, l)
1146
+ onClick: (n) => T(n, a)
1210
1147
  }, [w("i", {
1211
1148
  class: "f-icon f-icon-plus-circle text-white mr-1"
1212
1149
  }, null), w("span", {
1213
1150
  style: "font-size:13px;margin:auto"
1214
- }, [ue("新增子级")])])])]);
1151
+ }, [fe("新增子级")])])])]);
1215
1152
  }
1216
- function A() {
1217
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((o) => o.classList.remove("dgComponentFocused"));
1218
- const l = document.getElementsByClassName("dgComponentSelected");
1219
- Array.from(l).forEach((o) => o.classList.remove("dgComponentSelected"));
1153
+ function k() {
1154
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((n) => n.classList.remove("dgComponentFocused"));
1155
+ const a = document.getElementsByClassName("dgComponentSelected");
1156
+ Array.from(a).forEach((n) => n.classList.remove("dgComponentSelected"));
1220
1157
  }
1221
- function N(l) {
1222
- l.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1158
+ function N(a) {
1159
+ a.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1223
1160
  }
1224
- function D(l) {
1225
- var f;
1226
- const o = v.schema.buttons || v.schema.contents, t = o == null ? void 0 : o.findIndex((R) => R.id === l);
1161
+ function j(a) {
1162
+ var d;
1163
+ const n = h.schema.buttons || h.schema.contents, t = n == null ? void 0 : n.findIndex((E) => E.id === a);
1227
1164
  if (t === -1)
1228
1165
  return;
1229
- const i = o[t];
1230
- (f = v == null ? void 0 : v.setupContext) == null || f.emit("selectionChange", "response-toolbar-item", i);
1166
+ const r = n[t];
1167
+ (d = h == null ? void 0 : h.setupContext) == null || d.emit("selectionChange", "response-toolbar-item", r);
1231
1168
  }
1232
- function b(l, o) {
1233
- p(l), A(), N(l), p(l), a(l, o), D(o.id);
1169
+ function m(a, n) {
1170
+ l(a), k(), N(a), l(a), i(a, n), j(n.id);
1234
1171
  }
1235
- function k(l) {
1172
+ function R(a) {
1236
1173
  return w("div", {
1237
- id: l.id,
1238
- class: g(l)
1174
+ id: a.id,
1175
+ class: g(a)
1239
1176
  }, [w("div", {
1240
- class: C(l),
1177
+ class: C(a),
1241
1178
  style: "display: flex;padding-right: 0.1rem;",
1242
- onClick: (o) => l.enable && b(o, l)
1243
- }, [P(l.id), e.shouldShowIcon(l) && w("i", {
1244
- class: e.iconClass(l)
1245
- }, null), w("span", null, [l.text]), w("i", {
1179
+ onClick: (n) => a.enable && m(n, a)
1180
+ }, [P(a.id), e.shouldShowIcon(a) && w("i", {
1181
+ class: e.iconClass(a)
1182
+ }, null), w("span", null, [a.text]), w("i", {
1246
1183
  class: "f-icon f-icon-arrow-chevron-down",
1247
1184
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1248
- }, null)]), u(l)]);
1185
+ }, null)]), u(a)]);
1249
1186
  }
1250
- function E() {
1251
- m();
1187
+ function A() {
1188
+ v();
1252
1189
  }
1253
1190
  return {
1254
- renderToolbarDropdown: k,
1255
- clearAllDropDown: E
1191
+ renderToolbarDropdown: R,
1192
+ clearAllDropDown: A
1256
1193
  };
1257
1194
  }
1258
- function ft() {
1259
- function r(e) {
1260
- var u, m;
1195
+ function ht() {
1196
+ function s(e) {
1197
+ var u, v;
1261
1198
  if (!e)
1262
1199
  return !1;
1263
- const n = ((u = e.targetContainer) == null ? void 0 : u.componentInstance) && e.targetContainer.componentInstance.value;
1264
- if (!n)
1200
+ const o = ((u = e.targetContainer) == null ? void 0 : u.componentInstance) && e.targetContainer.componentInstance.value;
1201
+ if (!o)
1265
1202
  return !1;
1266
- const c = (m = n.schema.appearance) == null ? void 0 : m.class;
1203
+ const p = (v = o.schema.appearance) == null ? void 0 : v.class;
1267
1204
  if (e.controlCategory === "input" || e.controlType === "form-group") {
1268
- const v = n.schema.type, M = (v === "response-form" || v === "content-container") && c && c.includes("farris-form");
1269
- if (n.schema.type !== "response-layout-item" && !M)
1205
+ const h = o.schema.type, D = (h === "response-form" || h === "content-container") && p && p.includes("farris-form");
1206
+ if (o.schema.type !== "response-layout-item" && !D)
1270
1207
  return !1;
1271
1208
  }
1272
1209
  return e.controlType !== "field-set";
1273
1210
  }
1274
1211
  return {
1275
- basalDragulaRuleForContainer: r
1212
+ basalDragulaRuleForContainer: s
1276
1213
  };
1277
1214
  }
1278
- const mt = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-design.gitee.io/dragging-rules.schema.json", yt = "Dragging Rules", ht = "The rules of designer canvas", bt = "object", vt = {
1215
+ const bt = "https://json-schema.org/draft/2020-12/schema", yt = "https://farris-design.gitee.io/dragging-rules.schema.json", vt = "Dragging Rules", Ct = "The rules of designer canvas", wt = "object", xt = {
1279
1216
  "f-page": {
1280
1217
  description: "The root class of page designed by farris.",
1281
1218
  type: "object",
@@ -1694,6 +1631,80 @@ const mt = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-
1694
1631
  "f-list-nav-left": {
1695
1632
  description: "",
1696
1633
  type: "object"
1634
+ },
1635
+ "f-struct-data-grid-in-nav": {
1636
+ description: "",
1637
+ type: "object",
1638
+ properties: {
1639
+ contents: {
1640
+ type: "object",
1641
+ properties: {
1642
+ "f-section-form": {
1643
+ description: "",
1644
+ type: "object",
1645
+ properties: {
1646
+ rules: {
1647
+ type: "object",
1648
+ properties: {
1649
+ canAccept: {
1650
+ type: "boolean",
1651
+ const: !1
1652
+ },
1653
+ fixed: {
1654
+ type: "boolean",
1655
+ const: !0
1656
+ },
1657
+ hidePadding: {
1658
+ type: "boolean",
1659
+ const: !0
1660
+ }
1661
+ }
1662
+ }
1663
+ }
1664
+ },
1665
+ "f-section-grid": {
1666
+ description: "",
1667
+ type: "object",
1668
+ properties: {
1669
+ rules: {
1670
+ type: "object",
1671
+ properties: {
1672
+ canAccept: {
1673
+ type: "boolean",
1674
+ const: !1
1675
+ },
1676
+ fixed: {
1677
+ type: "boolean",
1678
+ const: !0
1679
+ },
1680
+ hidePadding: {
1681
+ type: "boolean",
1682
+ const: !0
1683
+ }
1684
+ }
1685
+ }
1686
+ }
1687
+ }
1688
+ }
1689
+ },
1690
+ rules: {
1691
+ type: "object",
1692
+ properties: {
1693
+ canAccept: {
1694
+ type: "boolean",
1695
+ const: !1
1696
+ },
1697
+ fixed: {
1698
+ type: "boolean",
1699
+ const: !0
1700
+ },
1701
+ hidePadding: {
1702
+ type: "boolean",
1703
+ const: !0
1704
+ }
1705
+ }
1706
+ }
1707
+ }
1697
1708
  }
1698
1709
  }
1699
1710
  }
@@ -1839,209 +1850,142 @@ const mt = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-
1839
1850
  description: "",
1840
1851
  type: "object"
1841
1852
  }
1842
- }, Ct = [], wt = {
1843
- $schema: mt,
1844
- $id: gt,
1845
- title: yt,
1846
- description: ht,
1847
- type: bt,
1848
- properties: vt,
1849
- required: Ct
1850
- }, J = /* @__PURE__ */ new Map();
1851
- function xe() {
1852
- function r(s, y, h, x) {
1853
+ }, Tt = {
1854
+ $schema: bt,
1855
+ $id: yt,
1856
+ title: vt,
1857
+ description: Ct,
1858
+ type: wt,
1859
+ properties: xt
1860
+ }, K = /* @__PURE__ */ new Map();
1861
+ function Te() {
1862
+ function s(c, b, y, T) {
1853
1863
  var O;
1854
- if (typeof h == "number")
1855
- return ((O = x[s]) == null ? void 0 : O.length) === h;
1856
- if (typeof h == "object") {
1857
- const P = Object.keys(h)[0], A = h[P];
1864
+ if (typeof y == "number")
1865
+ return ((O = T[c]) == null ? void 0 : O.length) === y;
1866
+ if (typeof y == "object") {
1867
+ const P = Object.keys(y)[0], k = y[P];
1858
1868
  if (P === "not")
1859
- return Number(x[s].length) !== Number(A);
1869
+ return Number(T[c].length) !== Number(k);
1860
1870
  if (P === "moreThan")
1861
- return Number(x[s].length) >= Number(A);
1871
+ return Number(T[c].length) >= Number(k);
1862
1872
  if (P === "lessThan")
1863
- return Number(x[s].length) <= Number(A);
1873
+ return Number(T[c].length) <= Number(k);
1864
1874
  }
1865
1875
  return !1;
1866
1876
  }
1867
- function e(s, y, h, x) {
1868
- return typeof h == "boolean" ? x.childrenClassList.includes(y) === !!h : !1;
1877
+ function e(c, b, y, T) {
1878
+ return typeof y == "boolean" ? T.childrenClassList.includes(b) === !!y : !1;
1869
1879
  }
1870
- function n(s, y, h, x) {
1871
- return typeof h == "boolean" ? x.parentClassList.includes(y) === !!h : !1;
1880
+ function o(c, b, y, T) {
1881
+ return typeof y == "boolean" ? T.parentClassList.includes(b) === !!y : !1;
1872
1882
  }
1873
- function c(s, y, h, x) {
1874
- return typeof h == "boolean" ? x.parentClassList.includes(y) === !!h : !1;
1883
+ function p(c, b, y, T) {
1884
+ return typeof y == "boolean" ? T.parentClassList.includes(b) === !!y : !1;
1875
1885
  }
1876
1886
  const u = /* @__PURE__ */ new Map([
1877
- ["length", r],
1887
+ ["length", s],
1878
1888
  ["hasChildren", e],
1879
- ["hasSibling", c],
1880
- ["hasParent", n]
1889
+ ["hasSibling", p],
1890
+ ["hasParent", o]
1881
1891
  ]);
1882
- function m(s, y) {
1883
- const h = s;
1884
- return typeof y == "number" ? [{ target: h, operator: "length", param: null, value: Number(y) }] : typeof y == "object" ? Object.keys(y).map((x) => {
1885
- if (x === "length")
1886
- return { target: h, operator: "length", param: null, value: y[x] };
1887
- const O = x, P = y[x];
1888
- return { target: h, operator: s === "children" ? "hasChildren" : s === "parent" ? "hasParent" : "hasSibling", param: O, value: P };
1892
+ function v(c, b) {
1893
+ const y = c;
1894
+ return typeof b == "number" ? [{ target: y, operator: "length", param: null, value: Number(b) }] : typeof b == "object" ? Object.keys(b).map((T) => {
1895
+ if (T === "length")
1896
+ return { target: y, operator: "length", param: null, value: b[T] };
1897
+ const O = T, P = b[T];
1898
+ return { target: y, operator: c === "children" ? "hasChildren" : c === "parent" ? "hasParent" : "hasSibling", param: O, value: P };
1889
1899
  }) : [];
1890
1900
  }
1891
- function v(s, y) {
1892
- if (u.has(s.operator)) {
1893
- const h = u.get(s.operator);
1894
- return h && h(s.target, s.param, s.value, y) || !1;
1901
+ function h(c, b) {
1902
+ if (u.has(c.operator)) {
1903
+ const y = u.get(c.operator);
1904
+ return y && y(c.target, c.param, c.value, b) || !1;
1895
1905
  }
1896
1906
  return !1;
1897
1907
  }
1898
- function M(s, y) {
1899
- return Object.keys(s).reduce((P, A) => {
1900
- const N = m(A, s[A]);
1908
+ function D(c, b) {
1909
+ return Object.keys(c).reduce((P, k) => {
1910
+ const N = v(k, c[k]);
1901
1911
  return P.push(...N), P;
1902
- }, []).reduce((P, A) => P && v(A, y), !0);
1903
- }
1904
- function S(s, y) {
1905
- const h = Object.keys(s), x = h.includes("allOf"), O = h.includes("anyOf"), P = x || O, D = (P ? s[P ? x ? "allOf" : "anyOf" : "allOf"] : [s]).map((k) => M(k, y));
1906
- return x ? !D.includes(!1) : D.includes(!0);
1907
- }
1908
- function g(s, y) {
1909
- const h = s.const;
1910
- return h ? typeof h == "boolean" ? h : typeof h == "object" ? S(h, y) : !1 : !1;
1911
- }
1912
- function C(s) {
1913
- return (y) => {
1914
- const h = { canAccept: !0, fixed: !1, hidePadding: !1 };
1915
- return s && s.properties && Object.keys(s.properties).reduce((x, O) => {
1916
- const P = s.properties[O];
1917
- return x[O] = g(P, y), x;
1918
- }, h), h;
1912
+ }, []).reduce((P, k) => P && h(k, b), !0);
1913
+ }
1914
+ function I(c, b) {
1915
+ const y = Object.keys(c), T = y.includes("allOf"), O = y.includes("anyOf"), P = T || O, j = (P ? c[P ? T ? "allOf" : "anyOf" : "allOf"] : [c]).map((R) => D(R, b));
1916
+ return T ? !j.includes(!1) : j.includes(!0);
1917
+ }
1918
+ function g(c, b) {
1919
+ const y = c.const;
1920
+ return y ? typeof y == "boolean" ? y : typeof y == "object" ? I(y, b) : !1 : !1;
1921
+ }
1922
+ function C(c) {
1923
+ return (b) => {
1924
+ const y = { canAccept: !0, fixed: !1, hidePadding: !1 };
1925
+ return c && c.properties && Object.keys(c.properties).reduce((T, O) => {
1926
+ const P = c.properties[O];
1927
+ return T[O] = g(P, b), T;
1928
+ }, y), y;
1919
1929
  };
1920
1930
  }
1921
- function p(s, y, h) {
1922
- if (y.type === "object" && y.properties) {
1923
- const { rules: x, contents: O } = y.properties;
1924
- h.set(s, C(x)), O && Object.keys(O.properties).forEach(
1925
- (P) => p(P, O.properties[P], h)
1931
+ function l(c, b, y) {
1932
+ if (b.type === "object" && b.properties) {
1933
+ const { rules: T, contents: O } = b.properties;
1934
+ y.set(c, C(T)), O && Object.keys(O.properties).forEach(
1935
+ (P) => l(P, O.properties[P], y)
1926
1936
  );
1927
1937
  }
1928
1938
  }
1929
- function a() {
1930
- const { properties: s } = wt;
1931
- Object.keys(s).forEach((y) => {
1932
- p(y, s[y], J);
1939
+ function i() {
1940
+ const { properties: c } = Tt;
1941
+ Object.keys(c).forEach((b) => {
1942
+ l(b, c[b], K);
1933
1943
  });
1934
1944
  }
1935
- function d(s, y) {
1936
- const h = { canAccept: !0, fixed: !1, hidePadding: !0 };
1937
- return J.has(s) ? J.get(s)(y) : h;
1938
- }
1939
- return a(), { getRuleValue: d };
1940
- }
1941
- class Se {
1942
- static getEditorTypesByMDataType(e) {
1943
- const n = this.fieldControlTypeMapping[e];
1944
- return n || [{ key: "", value: "" }];
1945
+ function f(c, b) {
1946
+ const y = { canAccept: !0, fixed: !1, hidePadding: !0 };
1947
+ return K.has(c) ? K.get(c)(b) : y;
1945
1948
  }
1949
+ return i(), { getRuleValue: f };
1946
1950
  }
1947
- /**
1948
- * <字段类型,可配置的控件类型列表>的映射
1949
- */
1950
- F(Se, "fieldControlTypeMapping", {
1951
- String: [
1952
- { key: I["input-group"].type, value: I["input-group"].name },
1953
- { key: I.lookup.type, value: I.lookup.name },
1954
- { key: I.Image.type, value: I.Image.name },
1955
- { key: I["date-picker"].type, value: I["date-picker"].name },
1956
- { key: I["check-box"].type, value: I["check-box"].name },
1957
- { key: I["radio-group"].type, value: I["radio-group"].name },
1958
- { key: I["combo-list"].type, value: I["combo-list"].name },
1959
- { key: I.textarea.type, value: I.textarea.name }
1960
- // { key: DgControl.Tags.type, value: DgControl.Tags.name },
1961
- ],
1962
- Text: [
1963
- { key: I.textarea.type, value: I.textarea.name },
1964
- { key: I.avatar.type, value: I.avatar.name },
1965
- { key: I.lookup.type, value: I.lookup.name }
1966
- ],
1967
- Decimal: [
1968
- { key: I["number-spinner"].type, value: I["number-spinner"].name }
1969
- ],
1970
- Integer: [
1971
- { key: I["number-spinner"].type, value: I["number-spinner"].name }
1972
- ],
1973
- Number: [
1974
- { key: I["number-spinner"].type, value: I["number-spinner"].name }
1975
- ],
1976
- BigNumber: [
1977
- { key: I["number-spinner"].type, value: I["number-spinner"].name }
1978
- ],
1979
- Date: [
1980
- { key: I["date-picker"].type, value: I["date-picker"].name }
1981
- ],
1982
- DateTime: [
1983
- { key: I["date-picker"].type, value: I["date-picker"].name }
1984
- ],
1985
- Boolean: [
1986
- { key: I.switch.type, value: I.switch.name },
1987
- { key: I["check-box"].type, value: I["check-box"].name }
1988
- ],
1989
- Enum: [
1990
- { key: I["combo-list"].type, value: I["combo-list"].name },
1991
- { key: I["radio-group"].type, value: I["radio-group"].name }
1992
- ],
1993
- Object: [
1994
- { key: I.lookup.type, value: I.lookup.name },
1995
- { key: I["combo-list"].type, value: I["combo-list"].name },
1996
- { key: I["radio-group"].type, value: I["radio-group"].name }
1997
- ],
1998
- EmployeeSelector: [
1999
- { key: I.EmployeeSelector.type, value: I.EmployeeSelector.name }
2000
- ],
2001
- AdminOrganizationSelector: [
2002
- { key: I.AdminOrganizationSelector.type, value: I.AdminOrganizationSelector.name }
2003
- ]
2004
- });
2005
1951
  class ae {
2006
- constructor(e, n) {
2007
- F(this, "componentId");
2008
- F(this, "viewModelId");
2009
- F(this, "eventsEditorUtils");
2010
- F(this, "formSchemaUtils");
2011
- F(this, "formMetadataConverter");
2012
- F(this, "designViewModelUtils");
2013
- F(this, "designViewModelField");
2014
- F(this, "controlCreatorUtils");
2015
- F(this, "designerHostService");
2016
- F(this, "schemaService", null);
2017
- F(this, "metadataService", null);
2018
- F(this, "propertyConfig", {
1952
+ constructor(e, o) {
1953
+ B(this, "componentId");
1954
+ B(this, "viewModelId");
1955
+ B(this, "eventsEditorUtils");
1956
+ B(this, "formSchemaUtils");
1957
+ B(this, "formMetadataConverter");
1958
+ B(this, "designViewModelUtils");
1959
+ B(this, "designViewModelField");
1960
+ B(this, "controlCreatorUtils");
1961
+ B(this, "designerHostService");
1962
+ B(this, "schemaService", null);
1963
+ B(this, "metadataService", null);
1964
+ B(this, "propertyConfig", {
2019
1965
  type: "object",
2020
1966
  categories: {}
2021
1967
  });
2022
- var c;
2023
- this.componentId = e, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((c = this.formSchemaUtils) == null ? void 0 : c.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
1968
+ var p;
1969
+ this.componentId = e, this.designerHostService = o, this.eventsEditorUtils = o.eventsEditorUtils, this.formSchemaUtils = o.formSchemaUtils, this.formMetadataConverter = o.formMetadataConverter, this.viewModelId = ((p = this.formSchemaUtils) == null ? void 0 : p.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = o.designViewModelUtils, this.controlCreatorUtils = o.controlCreatorUtils, this.metadataService = o.metadataService, this.schemaService = o.schemaService;
2024
1970
  }
2025
1971
  getTableInfo() {
2026
1972
  var e;
2027
1973
  return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
2028
1974
  }
2029
1975
  setDesignViewModelField(e) {
2030
- const n = e.binding && e.binding.type === "Form" && e.binding.field;
2031
- if (n) {
1976
+ const o = e.binding && e.binding.type === "Form" && e.binding.field;
1977
+ if (o) {
2032
1978
  if (!this.designViewModelField) {
2033
- const c = this.designViewModelUtils.getDgViewModel(this.viewModelId);
2034
- this.designViewModelField = c.fields.find((u) => u.id === n);
1979
+ const p = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1980
+ this.designViewModelField = p.fields.find((u) => u.id === o);
2035
1981
  }
2036
1982
  e.updateOn = this.designViewModelField.updateOn;
2037
1983
  }
2038
1984
  }
2039
- changeFieldEditorType(e, n) {
1985
+ changeFieldEditorType(e, o) {
2040
1986
  }
2041
1987
  getBasicPropConfig(e) {
2042
- var c, u;
2043
- var n = this;
2044
- return this.setDesignViewModelField(e), {
1988
+ return {
2045
1989
  description: "Basic Information",
2046
1990
  title: "基本信息",
2047
1991
  properties: {
@@ -2054,69 +1998,17 @@ class ae {
2054
1998
  type: {
2055
1999
  description: "组件类型",
2056
2000
  title: "控件类型",
2057
- type: "string",
2058
- refreshPanelAfterChanged: !0,
2059
- $converter: "/converter/change-editor.converter",
2001
+ type: "select",
2060
2002
  editor: {
2061
2003
  type: "combo-list",
2062
- textField: "value",
2063
- valueField: "key",
2064
- data: Se.getEditorTypesByMDataType(((u = (c = n.designViewModelField) == null ? void 0 : c.type) == null ? void 0 : u.name) || ""),
2065
- editable: !1
2004
+ textField: "name",
2005
+ valueField: "value",
2006
+ data: [{ value: e.type, name: re[e.type].name }]
2066
2007
  }
2067
- },
2068
- label: {
2069
- title: "标签",
2070
- type: "string",
2071
- $converter: "/converter/form-group-label.converter"
2072
2008
  }
2073
- },
2074
- setPropertyRelates(m, v) {
2075
- if (m)
2076
- switch (m && m.propertyID) {
2077
- case "type": {
2078
- n.changeControlType(e, m);
2079
- break;
2080
- }
2081
- }
2082
2009
  }
2083
2010
  };
2084
2011
  }
2085
- /**
2086
- * 卡片控件:切换控件类型后事件
2087
- * @param propertyData 控件DOM属性
2088
- * @param newControlType 新控件类型
2089
- */
2090
- changeControlType(e, n) {
2091
- var g, C, p, a, d;
2092
- const c = n.propertyValue, u = this.formSchemaUtils.getComponentById(this.componentId);
2093
- let m = this.getControlParentContainer(e.id, u);
2094
- if (!m)
2095
- return;
2096
- const v = m.contents.findIndex((s) => s.id === e.id), M = m.contents[v];
2097
- let S;
2098
- this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
2099
- editor: {
2100
- $type: c
2101
- },
2102
- name: this.designViewModelField.name,
2103
- require: this.designViewModelField.require,
2104
- readonly: this.designViewModelField.readonly
2105
- }, !1), S = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, c)), Object.assign(S, {
2106
- id: M.id,
2107
- appearance: M.appearance,
2108
- size: M.size,
2109
- label: M.label
2110
- }), Object.assign(S.editor, {
2111
- isTextArea: S.isTextArea && M.isTextArea,
2112
- type: c || "",
2113
- placeHolder: (g = M.editor) == null ? void 0 : g.placeHolder,
2114
- holdPlace: (C = M.editor) == null ? void 0 : C.holdPlace,
2115
- readonly: (p = M.editor) == null ? void 0 : p.readonly,
2116
- require: (a = M.editor) == null ? void 0 : a.require,
2117
- visible: (d = M.editor) == null ? void 0 : d.visible
2118
- }), m.contents.splice(v, 1, S);
2119
- }
2120
2012
  getAppearanceConfig(e = null) {
2121
2013
  return {
2122
2014
  title: "样式",
@@ -2133,40 +2025,14 @@ class ae {
2133
2025
  type: "string",
2134
2026
  description: "组件的样式",
2135
2027
  $converter: "/converter/appearance.converter"
2136
- },
2137
- responseLayout: {
2138
- description: "响应式列宽",
2139
- title: "响应式列宽",
2140
- type: "boolean",
2141
- visible: !1,
2142
- editor: {
2143
- type: "response-layout-editor-setting"
2144
- },
2145
- $converter: "/converter/response-form-layout.converter"
2146
2028
  }
2147
2029
  }
2148
2030
  };
2149
2031
  }
2150
- /**
2151
- * 获取控件:以contents为节点进行定位
2152
- * @param controlId 控件ID
2153
- * @param domJson 容器
2154
- */
2155
- getControlParentContainer(e, n) {
2156
- let c;
2157
- if (!n || !n.contents || n.contents.length === 0)
2158
- return null;
2159
- for (const u of n.contents) {
2160
- if (u.id === e)
2161
- return c = n, n;
2162
- if (c = this.getControlParentContainer(e, u), c)
2163
- return c;
2164
- }
2165
- }
2166
2032
  }
2167
- class Tt extends ae {
2168
- constructor(e, n) {
2169
- super(e, n);
2033
+ class jt extends ae {
2034
+ constructor(e, o) {
2035
+ super(e, o);
2170
2036
  }
2171
2037
  getPropertyConfig(e) {
2172
2038
  return this.getBasicPropConfig(e), this.getBehaviorProperties(e), this.propertyConfig;
@@ -2190,7 +2056,7 @@ class Tt extends ae {
2190
2056
  type: "combo-list",
2191
2057
  textField: "value",
2192
2058
  valueField: "key",
2193
- data: [{ key: "response-toolbar", value: I["response-toolbar"].name }]
2059
+ data: [{ key: "response-toolbar", value: re["response-toolbar"].name }]
2194
2060
  }
2195
2061
  }
2196
2062
  }
@@ -2233,54 +2099,54 @@ class Tt extends ae {
2233
2099
  };
2234
2100
  }
2235
2101
  }
2236
- function xt(r, e, n, c) {
2237
- const u = xe(), m = j(!1), v = j(!1);
2238
- let M = !0, S = !1, g;
2239
- function C(D) {
2240
- return g && g.componentClassList && g.componentClassList.includes("f-form-layout") && g.componentClassList.includes("farris-form") ? D.sourceType === "control" && D.controlCategory === "input" || D.sourceType === "move" && D.controlType === "form-group" : !0;
2241
- }
2242
- function p(D) {
2243
- return !ft().basalDragulaRuleForContainer(D) || !M || !C(D), !1;
2244
- }
2245
- function a() {
2246
- m.value = !1, v.value = !1;
2247
- const D = r, b = D.appearance && D.appearance.class || "", k = b.split(" "), E = D.buttons || [], l = E.length ? E[0] : null, o = l && l.appearance ? l.appearance.class : "", t = o ? o.split(" ") : [], i = E.length ? E.reduce((V, W) => {
2248
- const U = W && W.appearance ? W.appearance.class : "", Z = U ? U.split(" ") : [];
2249
- return V.push(...Z), V;
2250
- }, []) : [], f = n == null ? void 0 : n.schema, R = f && f.appearance && f.appearance.class || "", T = R ? R.split(" ") : [];
2102
+ function It(s, e, o, p) {
2103
+ const u = Te(), v = S(!1), h = S(!1);
2104
+ let D = !0, I = !1, g;
2105
+ function C(j) {
2106
+ return g && g.componentClassList && g.componentClassList.includes("f-form-layout") && g.componentClassList.includes("farris-form") ? j.sourceType === "control" && j.controlCategory === "input" || j.sourceType === "move" && j.controlType === "form-group" : !0;
2107
+ }
2108
+ function l(j) {
2109
+ return !ht().basalDragulaRuleForContainer(j) || !D || !C(j), !1;
2110
+ }
2111
+ function i() {
2112
+ v.value = !1, h.value = !1;
2113
+ const j = s, m = j.appearance && j.appearance.class || "", R = m.split(" "), A = j.buttons || [], a = A.length ? A[0] : null, n = a && a.appearance ? a.appearance.class : "", t = n ? n.split(" ") : [], r = A.length ? A.reduce(($, V) => {
2114
+ const U = V && V.appearance ? V.appearance.class : "", Y = U ? U.split(" ") : [];
2115
+ return $.push(...Y), $;
2116
+ }, []) : [], d = o == null ? void 0 : o.schema, E = d && d.appearance && d.appearance.class || "", x = E ? E.split(" ") : [];
2251
2117
  g = {
2252
- componentClass: b,
2253
- componentClassList: k,
2254
- childContents: E,
2255
- firstChildContent: l,
2256
- firstChildClass: o,
2118
+ componentClass: m,
2119
+ componentClassList: R,
2120
+ childContents: A,
2121
+ firstChildContent: a,
2122
+ firstChildClass: n,
2257
2123
  firstChildClassList: t,
2258
- parent: f,
2259
- parentClass: R,
2260
- parentClassList: T,
2261
- children: E,
2262
- childrenClassList: i
2124
+ parent: d,
2125
+ parentClass: E,
2126
+ parentClassList: x,
2127
+ children: A,
2128
+ childrenClassList: r
2263
2129
  };
2264
- const { canAccept: B, fixed: _, hidePadding: L } = u.getRuleValue(k[0], g);
2265
- return M = B, S = L, !0;
2130
+ const { canAccept: M, fixed: F, hidePadding: _ } = u.getRuleValue(R[0], g);
2131
+ return D = M, I = _, !0;
2266
2132
  }
2267
- function d(D) {
2133
+ function f(j) {
2268
2134
  }
2269
- function s() {
2270
- return r.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
2135
+ function c() {
2136
+ return s.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
2271
2137
  }
2272
- function y(D, b) {
2273
- return b.text = D.label, b;
2138
+ function b(j, m) {
2139
+ return m.text = j.label, m;
2274
2140
  }
2275
- function h(D, b, k) {
2276
- const E = r;
2277
- if ((E.appearance && E.appearance.class || "").split(" ").includes("f-form-layout")) {
2278
- const t = String(D.innerText), i = q("form-group");
2279
- return i.editor = k, i.label = t, i;
2141
+ function y(j, m, R) {
2142
+ const A = s;
2143
+ if ((A.appearance && A.appearance.class || "").split(" ").includes("f-form-layout")) {
2144
+ const t = String(j.innerText), r = q("form-group");
2145
+ return r.editor = R, r.label = t, r;
2280
2146
  }
2281
- return k;
2147
+ return R;
2282
2148
  }
2283
- function x() {
2149
+ function T() {
2284
2150
  return !1;
2285
2151
  }
2286
2152
  function O() {
@@ -2289,29 +2155,29 @@ function xt(r, e, n, c) {
2289
2155
  function P() {
2290
2156
  return !0;
2291
2157
  }
2292
- function A() {
2293
- return S;
2158
+ function k() {
2159
+ return I;
2294
2160
  }
2295
- function N(D) {
2296
- return new Tt(D, e).getPropertyConfig(r);
2161
+ function N(j) {
2162
+ return new jt(j, e).getPropertyConfig(s);
2297
2163
  }
2298
2164
  return {
2299
- canAccepts: p,
2165
+ canAccepts: l,
2300
2166
  checkCanAddComponent: P,
2301
2167
  checkCanDeleteComponent: O,
2302
- checkCanMoveComponent: x,
2303
- getStyles: s,
2304
- hideNestedPaddingInDesginerView: A,
2305
- onAcceptNewChildElement: h,
2306
- onAcceptMovedChildElement: d,
2307
- onResolveNewComponentSchema: y,
2308
- resolveComponentContext: a,
2168
+ checkCanMoveComponent: T,
2169
+ getStyles: c,
2170
+ hideNestedPaddingInDesginerView: k,
2171
+ onAcceptNewChildElement: y,
2172
+ onAcceptMovedChildElement: f,
2173
+ onResolveNewComponentSchema: b,
2174
+ resolveComponentContext: i,
2309
2175
  getPropsConfig: N,
2310
- triggerBelongedComponentToMoveWhenMoved: m,
2311
- triggerBelongedComponentToDeleteWhenDeleted: v
2176
+ triggerBelongedComponentToMoveWhenMoved: v,
2177
+ triggerBelongedComponentToDeleteWhenDeleted: h
2312
2178
  };
2313
2179
  }
2314
- const St = {
2180
+ const Dt = {
2315
2181
  id: { type: String, default: "" },
2316
2182
  componentId: { type: String, default: "" },
2317
2183
  canAdd: { type: Boolean, default: !1 },
@@ -2324,46 +2190,46 @@ const St = {
2324
2190
  * 组件值
2325
2191
  */
2326
2192
  modelValue: { type: Object }
2327
- }, ee = j(0);
2328
- function Dt(r, e) {
2329
- const n = e.getBoundingClientRect(), c = r.getBoundingClientRect(), u = c.top >= n.top, m = c.top <= n.bottom;
2330
- return u && m;
2193
+ }, ee = S(0);
2194
+ function Pt(s, e) {
2195
+ const o = e.getBoundingClientRect(), p = s.getBoundingClientRect(), u = p.top >= o.top, v = p.top <= o.bottom;
2196
+ return u && v;
2331
2197
  }
2332
- function It(r) {
2333
- if (!r)
2198
+ function Rt(s) {
2199
+ if (!s)
2334
2200
  return;
2335
2201
  let e;
2336
- if (r.className.includes("dgComponentSelected") ? e = r : e = r.querySelector(".dgComponentSelected"), !e)
2202
+ if (s.className.includes("dgComponentSelected") ? e = s : e = s.querySelector(".dgComponentSelected"), !e)
2337
2203
  return;
2338
- const n = e.getBoundingClientRect();
2339
- if (n.width === 0 && n.height === 0)
2204
+ const o = e.getBoundingClientRect();
2205
+ if (o.width === 0 && o.height === 0)
2340
2206
  return;
2341
- const c = e.querySelector(".component-btn-group");
2342
- if (c) {
2343
- if (!Dt(e, r)) {
2344
- c.style.display = "none";
2207
+ const p = e.querySelector(".component-btn-group");
2208
+ if (p) {
2209
+ if (!Pt(e, s)) {
2210
+ p.style.display = "none";
2345
2211
  return;
2346
2212
  }
2347
- c.style.display = "";
2348
- const m = c.getBoundingClientRect(), v = c.querySelector("div");
2349
- if (v) {
2350
- const M = v.getBoundingClientRect();
2351
- v.style.top = m.top + "px", v.style.left = m.left - M.width + "px";
2213
+ p.style.display = "";
2214
+ const v = p.getBoundingClientRect(), h = p.querySelector("div");
2215
+ if (h) {
2216
+ const D = h.getBoundingClientRect();
2217
+ h.style.top = v.top + "px", h.style.left = v.left - D.width + "px";
2352
2218
  }
2353
2219
  }
2354
2220
  }
2355
- function Mt(r, e, n) {
2221
+ function Et(s, e, o) {
2356
2222
  var N;
2357
- function c() {
2223
+ function p() {
2358
2224
  }
2359
- const u = "", m = j();
2360
- function v() {
2225
+ const u = "", v = S();
2226
+ function h() {
2361
2227
  return !0;
2362
2228
  }
2363
- function M() {
2229
+ function D() {
2364
2230
  return !1;
2365
2231
  }
2366
- function S() {
2232
+ function I() {
2367
2233
  return !0;
2368
2234
  }
2369
2235
  function g() {
@@ -2372,120 +2238,120 @@ function Mt(r, e, n) {
2372
2238
  function C() {
2373
2239
  return !0;
2374
2240
  }
2375
- function p(D) {
2376
- if (!D || !D.value)
2241
+ function l(j) {
2242
+ if (!j || !j.value)
2377
2243
  return null;
2378
- const b = j(D == null ? void 0 : D.value.parent), k = p(b);
2379
- return k || null;
2244
+ const m = S(j == null ? void 0 : j.value.parent), R = l(m);
2245
+ return R || null;
2380
2246
  }
2381
- function a(D = e) {
2382
- const { componentInstance: b, designerItemElementRef: k } = D;
2383
- return !b || !b.value ? null : b.value.canMove || b.value.canAdd || b.value.canDelete ? k : a(D.parent);
2247
+ function i(j = e) {
2248
+ const { componentInstance: m, designerItemElementRef: R } = j;
2249
+ return !m || !m.value ? null : m.value.canMove || m.value.canAdd || m.value.canDelete ? R : i(j.parent);
2384
2250
  }
2385
- function d(D) {
2386
- return !!n;
2251
+ function f(j) {
2252
+ return !!o;
2387
2253
  }
2388
- function s() {
2254
+ function c() {
2389
2255
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
2390
2256
  }
2391
- function y() {
2257
+ function b() {
2392
2258
  }
2393
- function h(D, b) {
2259
+ function y(j, m) {
2394
2260
  }
2395
- function x(D) {
2396
- const { componentType: b } = D;
2397
- let k = q(b, D);
2398
- const E = b.toLowerCase().replace("-", "_");
2399
- return k && !k.id && k.type === b && (k.id = `${E}_${Math.random().toString().slice(2, 6)}`), k;
2261
+ function T(j) {
2262
+ const { componentType: m } = j;
2263
+ let R = q(m, j);
2264
+ const A = m.toLowerCase().replace("-", "_");
2265
+ return R && !R.id && R.type === m && (R.id = `${A}_${Math.random().toString().slice(2, 6)}`), R;
2400
2266
  }
2401
- function O(D, b) {
2402
- const k = String(D.getAttribute("data-controltype")), E = D.getAttribute("data-feature"), l = E ? JSON.parse(E) : {};
2403
- l.parentComponentInstance = m.value;
2404
- let o = q(k, l);
2405
- const t = k.toLowerCase().replace("-", "_");
2406
- return o && !o.id && o.type === k && (o.id = `${t}_${Math.random().toString().slice(2, 6)}`), o;
2267
+ function O(j, m) {
2268
+ const R = String(j.getAttribute("data-controltype")), A = j.getAttribute("data-feature"), a = A ? JSON.parse(A) : {};
2269
+ a.parentComponentInstance = v.value;
2270
+ let n = q(R, a);
2271
+ const t = R.toLowerCase().replace("-", "_");
2272
+ return n && !n.id && n.type === R && (n.id = `${t}_${Math.random().toString().slice(2, 6)}`), n;
2407
2273
  }
2408
- function P(D) {
2274
+ function P(j) {
2409
2275
  }
2410
- function A(...D) {
2276
+ function k(...j) {
2411
2277
  return [];
2412
2278
  }
2413
- return m.value = {
2414
- canMove: v(),
2415
- canSelectParent: M(),
2279
+ return v.value = {
2280
+ canMove: h(),
2281
+ canSelectParent: D(),
2416
2282
  canAdd: g(),
2417
- canDelete: S(),
2283
+ canDelete: I(),
2418
2284
  canNested: !C(),
2419
2285
  contents: [],
2420
- elementRef: r,
2286
+ elementRef: s,
2421
2287
  parent: (N = e.parent) == null ? void 0 : N.componentInstance,
2422
2288
  schema: e.schema,
2423
2289
  styles: u,
2424
- canAccepts: d,
2425
- getBelongedComponentInstance: p,
2426
- getDraggableDesignItemElement: a,
2427
- getDraggingDisplayText: s,
2428
- getPropConfig: A,
2429
- getDragScopeElement: y,
2430
- onAcceptMovedChildElement: h,
2290
+ canAccepts: f,
2291
+ getBelongedComponentInstance: l,
2292
+ getDraggableDesignItemElement: i,
2293
+ getDraggingDisplayText: c,
2294
+ getPropConfig: k,
2295
+ getDragScopeElement: b,
2296
+ onAcceptMovedChildElement: y,
2431
2297
  onAcceptNewChildElement: O,
2432
2298
  onChildElementMovedOut: P,
2433
- addNewChildComponentSchema: x,
2434
- updateDragAndDropRules: c,
2435
- triggerBelongedComponentToMoveWhenMoved: j(!1),
2436
- triggerBelongedComponentToDeleteWhenDeleted: j(!1)
2437
- }, m;
2299
+ addNewChildComponentSchema: T,
2300
+ updateDragAndDropRules: p,
2301
+ triggerBelongedComponentToMoveWhenMoved: S(!1),
2302
+ triggerBelongedComponentToDeleteWhenDeleted: S(!1)
2303
+ }, v;
2438
2304
  }
2439
- const kt = /* @__PURE__ */ Y({
2305
+ const St = /* @__PURE__ */ X({
2440
2306
  name: "FDesignerInnerItem",
2441
- props: St,
2307
+ props: Dt,
2442
2308
  emits: ["selectionChange", "addComponent", "removeComponent"],
2443
- setup(r, e) {
2444
- const n = j(r.canMove), c = j(r.canAdd), u = j(r.canDelete), m = j(!1), v = j(r.contentKey), M = j(r.childType), S = j(r.childLabel), g = j(r.modelValue), C = j(""), p = j(), a = $("canvas-dragula"), d = j(), s = $("design-item-context"), y = {
2445
- designerItemElementRef: p,
2446
- componentInstance: d,
2309
+ setup(s, e) {
2310
+ const o = S(s.canMove), p = S(s.canAdd), u = S(s.canDelete), v = S(!1), h = S(s.contentKey), D = S(s.childType), I = S(s.childLabel), g = S(s.modelValue), C = S(""), l = S(), i = L("canvas-dragula"), f = S(), c = L("design-item-context"), b = {
2311
+ designerItemElementRef: l,
2312
+ componentInstance: f,
2447
2313
  schema: g.value,
2448
- parent: s,
2314
+ parent: c,
2449
2315
  setupContext: e
2450
2316
  };
2451
- Re("design-item-context", y);
2452
- const h = z(() => ({
2317
+ Ee("design-item-context", b);
2318
+ const y = W(() => ({
2453
2319
  "farris-component": !0,
2454
2320
  // 受position-relative影响,整个容器的高度不能被撑起
2455
- "flex-fill": r.id == "root-component",
2456
- "position-relative": n.value || u.value,
2457
- "farris-nested": m.value,
2458
- "can-move": n.value,
2459
- "d-none": p.value && p.value.classList.contains("d-none")
2460
- })), x = z(() => {
2321
+ "flex-fill": s.id == "root-component",
2322
+ "position-relative": o.value || u.value,
2323
+ "farris-nested": v.value,
2324
+ "can-move": o.value,
2325
+ "d-none": l.value && l.value.classList.contains("d-none")
2326
+ })), T = W(() => {
2461
2327
  const t = {};
2462
- return C.value && C.value.split(";").reduce((i, f) => {
2463
- const [R, T] = f.split(":");
2464
- return R && (i[R] = T), i;
2328
+ return C.value && C.value.split(";").reduce((r, d) => {
2329
+ const [E, x] = d.split(":");
2330
+ return E && (r[E] = x), r;
2465
2331
  }, t), t;
2466
2332
  });
2467
- function O(t, i) {
2468
- if (s && s.schema[v.value]) {
2469
- const f = s.schema[v.value].findIndex((R) => R.id === i.id);
2470
- if (f > -1) {
2471
- const R = s.schema[v.value].length, T = s.schema[v.value][f % R];
2472
- s.designerItemElementRef.value.querySelector(`#${T.id}-design-item`), s.schema[v.value].splice(f, 1), s.componentInstance.value.updateDragAndDropRules(), ee.value++, e.emit("removeComponent");
2333
+ function O(t, r) {
2334
+ if (c && c.schema[h.value]) {
2335
+ const d = c.schema[h.value].findIndex((E) => E.id === r.id);
2336
+ if (d > -1) {
2337
+ const E = c.schema[h.value].length, x = c.schema[h.value][d % E];
2338
+ c.designerItemElementRef.value.querySelector(`#${x.id}-design-item`), c.schema[h.value].splice(d, 1), c.componentInstance.value.updateDragAndDropRules(), ee.value++, e.emit("removeComponent");
2473
2339
  }
2474
2340
  }
2475
2341
  }
2476
2342
  function P(t) {
2477
- if (d.value.addNewChildComponentSchema) {
2478
- const i = {
2479
- componentType: M.value,
2480
- label: S.value,
2481
- parentComponentInstance: d.value,
2343
+ if (f.value.addNewChildComponentSchema) {
2344
+ const r = {
2345
+ componentType: D.value,
2346
+ label: I.value,
2347
+ parentComponentInstance: f.value,
2482
2348
  targetPosition: -1
2483
- }, f = d.value.addNewChildComponentSchema(i);
2484
- g.value[v.value].push(f), e.emit("addComponent");
2349
+ }, d = f.value.addNewChildComponentSchema(r);
2350
+ g.value[h.value].push(d), e.emit("addComponent");
2485
2351
  }
2486
2352
  }
2487
- function A() {
2488
- return c.value && w("div", {
2353
+ function k() {
2354
+ return p.value && w("div", {
2489
2355
  role: "button",
2490
2356
  class: "btn component-settings-button",
2491
2357
  title: "新增",
@@ -2503,13 +2369,13 @@ const kt = /* @__PURE__ */ Y({
2503
2369
  class: "btn component-settings-button",
2504
2370
  title: "删除",
2505
2371
  ref: "removeComponent",
2506
- onClick: je((i) => O(i, t), ["stop"])
2372
+ onClick: Me((r) => O(r, t), ["stop"])
2507
2373
  }, [w("i", {
2508
2374
  class: "f-icon f-icon-yxs_delete"
2509
2375
  }, null)]);
2510
2376
  }
2511
- function D() {
2512
- return n.value && w("div", {
2377
+ function j() {
2378
+ return o.value && w("div", {
2513
2379
  role: "button",
2514
2380
  class: "btn component-settings-button",
2515
2381
  title: "移动",
@@ -2519,61 +2385,61 @@ const kt = /* @__PURE__ */ Y({
2519
2385
  class: "cmp_move f-icon f-icon-yxs_move"
2520
2386
  }, null)]);
2521
2387
  }
2522
- function b(t) {
2388
+ function m(t) {
2523
2389
  return w("div", {
2524
2390
  class: "component-btn-group",
2525
2391
  "data-noattach": "true"
2526
- }, [w("div", null, [A(), D(), N(t)])]);
2392
+ }, [w("div", null, [k(), j(), N(t)])]);
2527
2393
  }
2528
- Q(() => r.modelValue, (t) => {
2529
- g.value = t, y.schema = t;
2394
+ H(() => s.modelValue, (t) => {
2395
+ g.value = t, b.schema = t;
2530
2396
  });
2531
- function k(t) {
2532
- const i = t.target;
2533
- It(i);
2397
+ function R(t) {
2398
+ const r = t.target;
2399
+ Rt(r);
2534
2400
  }
2535
- function E() {
2536
- var t, i;
2537
- (i = (t = g.value) == null ? void 0 : t.contents) != null && i.length && p.value && p.value.addEventListener("scroll", k);
2401
+ function A() {
2402
+ var t, r;
2403
+ (r = (t = g.value) == null ? void 0 : t.contents) != null && r.length && l.value && l.value.addEventListener("scroll", R);
2538
2404
  }
2539
- function l() {
2540
- const t = p.value, i = j(t.children[1]);
2541
- return Mt(i, y).value;
2405
+ function a() {
2406
+ const t = l.value, r = S(t.children[1]);
2407
+ return Et(r, b).value;
2542
2408
  }
2543
- H(() => {
2544
- if (p.value) {
2545
- const t = p.value.querySelector(`[data-dragref='${g.value.id}-container']`);
2546
- d.value = t && t.componentInstance ? t.componentInstance.value : l(), a && t && a.attachComponents(t, g.value), m.value = d.value.canNested !== void 0 ? d.value.canNested : m.value, c.value = d.value.canAdd !== void 0 ? d.value.canAdd : c.value, u.value = d.value.canDelete !== void 0 ? d.value.canDelete : u.value, n.value = d.value.canMove !== void 0 ? d.value.canMove : n.value, C.value = d.value.styles || "", p.value && (p.value.componentInstance = d, p.value.designItemContext = y);
2409
+ z(() => {
2410
+ if (l.value) {
2411
+ const t = l.value.querySelector(`[data-dragref='${g.value.id}-container']`);
2412
+ f.value = t && t.componentInstance ? t.componentInstance.value : a(), i && t && i.attachComponents(t, g.value), v.value = f.value.canNested !== void 0 ? f.value.canNested : v.value, p.value = f.value.canAdd !== void 0 ? f.value.canAdd : p.value, u.value = f.value.canDelete !== void 0 ? f.value.canDelete : u.value, o.value = f.value.canMove !== void 0 ? f.value.canMove : o.value, C.value = f.value.styles || "", l.value && (l.value.componentInstance = f, l.value.designItemContext = b);
2547
2413
  }
2548
- E(), ee.value++;
2549
- }), Ee(() => {
2550
- p.value && p.value.removeEventListener("scroll", k);
2414
+ A(), ee.value++;
2415
+ }), Se(() => {
2416
+ l.value && l.value.removeEventListener("scroll", R);
2551
2417
  });
2552
- function o(t) {
2553
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((f) => f.classList.remove("dgComponentFocused")), t && (t.preventDefault(), t.stopPropagation());
2554
- const i = p.value;
2555
- if (i) {
2556
- const f = document.getElementsByClassName("dgComponentSelected");
2557
- if (!(f && f.length === 1 && f[0] === p.value)) {
2558
- Array.from(f).forEach((B) => B.classList.remove("dgComponentSelected")), i.classList.add("dgComponentFocused"), e.emit("selectionChange", g.value.type, g.value, r.componentId, d.value);
2559
- const T = d.value.getDraggableDesignItemElement(y);
2560
- T && T.value && T.value.classList.add("dgComponentSelected");
2418
+ function n(t) {
2419
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((d) => d.classList.remove("dgComponentFocused")), t && (t.preventDefault(), t.stopPropagation());
2420
+ const r = l.value;
2421
+ if (r) {
2422
+ const d = document.getElementsByClassName("dgComponentSelected");
2423
+ if (!(d && d.length === 1 && d[0] === l.value)) {
2424
+ Array.from(d).forEach((M) => M.classList.remove("dgComponentSelected")), r.classList.add("dgComponentFocused"), e.emit("selectionChange", g.value.type, g.value, s.componentId, f.value);
2425
+ const x = f.value.getDraggableDesignItemElement(b);
2426
+ x && x.value && x.value.classList.add("dgComponentSelected");
2561
2427
  }
2562
2428
  }
2563
2429
  ee.value++;
2564
2430
  }
2565
2431
  return () => w("div", {
2566
- id: `${r.id}-design-item`,
2567
- ref: p,
2568
- class: h.value,
2569
- style: x.value,
2570
- onClick: o
2571
- }, [b(g.value), e.slots.default && e.slots.default()]);
2432
+ id: `${s.id}-design-item`,
2433
+ ref: l,
2434
+ class: y.value,
2435
+ style: T.value,
2436
+ onClick: n
2437
+ }, [m(g.value), e.slots.default && e.slots.default()]);
2572
2438
  }
2573
2439
  });
2574
- class Pt extends ae {
2575
- constructor(e, n) {
2576
- super(e, n);
2440
+ class Mt extends ae {
2441
+ constructor(e, o) {
2442
+ super(e, o);
2577
2443
  }
2578
2444
  getPropertyConfig(e) {
2579
2445
  return this.getBasicPropConfig(e), this.getAppearanceProperties(e), this.getEventPropConfig(e), this.propertyConfig;
@@ -2622,20 +2488,20 @@ class Pt extends ae {
2622
2488
  title: "style样式"
2623
2489
  }
2624
2490
  },
2625
- setPropertyRelates(n, c) {
2491
+ setPropertyRelates(o, p) {
2626
2492
  }
2627
2493
  };
2628
2494
  }
2629
2495
  getEventPropConfig(e) {
2630
- const n = [
2496
+ const o = [
2631
2497
  {
2632
2498
  label: "click",
2633
2499
  name: "点击事件"
2634
2500
  }
2635
2501
  ];
2636
- var c = this;
2637
- const u = c.eventsEditorUtils.formProperties(e, c.viewModelId, n), m = {};
2638
- m[c.viewModelId] = {
2502
+ var p = this;
2503
+ const u = p.eventsEditorUtils.formProperties(e, p.viewModelId, o), v = {};
2504
+ v[p.viewModelId] = {
2639
2505
  type: "events-editor",
2640
2506
  editor: {
2641
2507
  initialData: u
@@ -2643,21 +2509,21 @@ class Pt extends ae {
2643
2509
  }, this.propertyConfig.categories.eventsEditor = {
2644
2510
  title: "事件",
2645
2511
  hideTitle: !0,
2646
- properties: m,
2512
+ properties: v,
2647
2513
  // 这个属性,标记当属性变更得时候触发重新更新属性
2648
2514
  refreshPanelAfterChanged: !0,
2649
2515
  tabId: "commands",
2650
2516
  tabName: "交互",
2651
- setPropertyRelates(v, M) {
2652
- const S = v.propertyValue;
2653
- delete e[c.viewModelId], S && (S.setPropertyRelates = this.setPropertyRelates, c.eventsEditorUtils.saveRelatedParameters(e, c.viewModelId, S.events, S));
2517
+ setPropertyRelates(h, D) {
2518
+ const I = h.propertyValue;
2519
+ delete e[p.viewModelId], I && (I.setPropertyRelates = this.setPropertyRelates, p.eventsEditorUtils.saveRelatedParameters(e, p.viewModelId, I.events, I));
2654
2520
  }
2655
2521
  };
2656
2522
  }
2657
2523
  }
2658
- class Rt extends ae {
2659
- constructor(e, n) {
2660
- super(e, n);
2524
+ class kt extends ae {
2525
+ constructor(e, o) {
2526
+ super(e, o);
2661
2527
  }
2662
2528
  getPropertyConfig(e) {
2663
2529
  return this.getBasicPropConfig(), this.getAppearanceProperties(e), this.getEventPropConfig(e), this.propertyConfig;
@@ -2681,7 +2547,7 @@ class Rt extends ae {
2681
2547
  type: "combo-list",
2682
2548
  textField: "value",
2683
2549
  valueField: "key",
2684
- data: [{ key: "response-toolbar-item", value: I["response-toolbar-item"].name }]
2550
+ data: [{ key: "response-toolbar-item", value: re["response-toolbar-item"].name }]
2685
2551
  }
2686
2552
  },
2687
2553
  text: {
@@ -2699,15 +2565,31 @@ class Rt extends ae {
2699
2565
  };
2700
2566
  }
2701
2567
  getAppearanceProperties(e) {
2568
+ this.propertyConfig.categories.appearance = {
2569
+ title: "样式",
2570
+ description: "Appearance",
2571
+ properties: {
2572
+ class: {
2573
+ title: "class",
2574
+ type: "string",
2575
+ description: ""
2576
+ },
2577
+ style: {
2578
+ title: "style",
2579
+ type: "string",
2580
+ description: ""
2581
+ }
2582
+ }
2583
+ };
2702
2584
  }
2703
2585
  getEventPropConfig(e) {
2704
- const n = [
2586
+ const o = [
2705
2587
  {
2706
2588
  label: "click",
2707
2589
  name: "点击事件"
2708
2590
  }
2709
- ], c = this, u = c.eventsEditorUtils.formProperties(e, c.viewModelId, n), m = {};
2710
- m[c.viewModelId] = {
2591
+ ], p = this, u = p.eventsEditorUtils.formProperties(e, p.viewModelId, o), v = {};
2592
+ v[p.viewModelId] = {
2711
2593
  type: "events-editor",
2712
2594
  editor: {
2713
2595
  initialData: u
@@ -2715,275 +2597,272 @@ class Rt extends ae {
2715
2597
  }, this.propertyConfig.categories.eventsEditor = {
2716
2598
  title: "事件",
2717
2599
  hideTitle: !0,
2718
- properties: m,
2600
+ properties: v,
2719
2601
  // 这个属性,标记当属性变更得时候触发重新更新属性
2720
2602
  refreshPanelAfterChanged: !0,
2721
2603
  tabId: "commands",
2722
2604
  tabName: "交互",
2723
- setPropertyRelates(v, M) {
2724
- const S = v.propertyValue;
2725
- delete e[c.viewModelId], S && (S.setPropertyRelates = this.setPropertyRelates, c.eventsEditorUtils.saveRelatedParameters(e, c.viewModelId, S.events, S));
2605
+ setPropertyRelates(h, D) {
2606
+ const I = h.propertyValue;
2607
+ delete e[p.viewModelId], I && (I.setPropertyRelates = this.setPropertyRelates, p.eventsEditorUtils.saveRelatedParameters(e, p.viewModelId, I.events, I));
2726
2608
  }
2727
2609
  };
2728
2610
  }
2729
2611
  }
2730
- function Et(r, e) {
2731
- xe();
2732
- const n = j(!1), c = j(!1);
2733
- let u = !1, m = !1;
2734
- function v(h) {
2612
+ function At(s, e) {
2613
+ Te();
2614
+ const o = S(!1), p = S(!1);
2615
+ let u = !1, v = !1;
2616
+ function h(y) {
2735
2617
  return !1;
2736
2618
  }
2737
- function M(h) {
2619
+ function D(y) {
2738
2620
  }
2739
- function S() {
2621
+ function I() {
2740
2622
  return "";
2741
2623
  }
2742
- function g(h, x) {
2743
- return x.text = h.label, x;
2624
+ function g(y, T) {
2625
+ return T.text = y.label, T;
2744
2626
  }
2745
- function C(h, x, O) {
2746
- const P = r.schema;
2627
+ function C(y, T, O) {
2628
+ const P = s.schema;
2747
2629
  if ((P.appearance && P.appearance.class || "").split(" ").includes("f-form-layout")) {
2748
- const D = String(h.innerText), b = q("form-group");
2749
- return b.editor = O, b.label = D, b;
2630
+ const j = String(y.innerText), m = q("form-group");
2631
+ return m.editor = O, m.label = j, m;
2750
2632
  }
2751
2633
  return O;
2752
2634
  }
2753
- function p() {
2635
+ function l() {
2754
2636
  return !1;
2755
2637
  }
2756
- function a() {
2757
- return !m;
2638
+ function i() {
2639
+ return !v;
2758
2640
  }
2759
- function d() {
2641
+ function f() {
2760
2642
  return !1;
2761
2643
  }
2762
- function s() {
2644
+ function c() {
2763
2645
  return u;
2764
2646
  }
2765
- function y(h) {
2766
- let x;
2767
- switch (r.schema.type) {
2647
+ function b(y) {
2648
+ let T;
2649
+ switch (s.schema.type) {
2768
2650
  case "tab-toolbar-item":
2769
- x = new Pt(h, e);
2651
+ T = new Mt(y, e);
2770
2652
  break;
2771
2653
  default:
2772
- x = new Rt(h, e);
2654
+ T = new kt(y, e);
2773
2655
  }
2774
- return x.getPropertyConfig(r.schema);
2656
+ return T.getPropertyConfig(s.schema);
2775
2657
  }
2776
2658
  return {
2777
- canAccepts: v,
2778
- checkCanAddComponent: d,
2779
- checkCanDeleteComponent: a,
2780
- checkCanMoveComponent: p,
2781
- getStyles: S,
2782
- hideNestedPaddingInDesginerView: s,
2659
+ canAccepts: h,
2660
+ checkCanAddComponent: f,
2661
+ checkCanDeleteComponent: i,
2662
+ checkCanMoveComponent: l,
2663
+ getStyles: I,
2664
+ hideNestedPaddingInDesginerView: c,
2783
2665
  onAcceptNewChildElement: C,
2784
- onAcceptMovedChildElement: M,
2666
+ onAcceptMovedChildElement: D,
2785
2667
  onResolveNewComponentSchema: g,
2786
- getPropsConfig: y,
2787
- triggerBelongedComponentToMoveWhenMoved: n,
2788
- triggerBelongedComponentToDeleteWhenDeleted: c
2668
+ getPropsConfig: b,
2669
+ triggerBelongedComponentToMoveWhenMoved: o,
2670
+ triggerBelongedComponentToDeleteWhenDeleted: p
2789
2671
  };
2790
2672
  }
2791
- const De = /* @__PURE__ */ Y({
2673
+ const je = /* @__PURE__ */ X({
2792
2674
  name: "FResponseToolbarItemDesign",
2793
2675
  props: we,
2794
2676
  emits: ["Click"],
2795
- setup(r, e) {
2796
- j(), j();
2797
- const n = j(r.alignment), c = {
2677
+ setup(s, e) {
2678
+ S(), S();
2679
+ const o = S(s.alignment), p = {
2798
2680
  id: "__more_buttons__",
2799
2681
  text: "More"
2800
- }, u = j(new G(c));
2801
- z(() => u.value.children.length > 0);
2802
- const m = j(), v = $("designer-host-service"), M = $("design-item-context"), S = Et(M, v), g = fe(m, M, S);
2803
- $("toolbar-item-handler", () => {
2804
- }), H(() => {
2805
- m.value.componentInstance = g;
2682
+ }, u = S(new G(p));
2683
+ W(() => u.value.children.length > 0);
2684
+ const v = S(), h = L("designer-host-service"), D = L("design-item-context"), I = At(D, h), g = ge(v, D, I);
2685
+ L("toolbar-item-handler", () => {
2686
+ }), z(() => {
2687
+ v.value.componentInstance = g;
2806
2688
  }), e.expose(g.value);
2807
2689
  function C() {
2808
- const d = {
2690
+ const f = {
2809
2691
  "f-icon": !0
2810
- };
2811
- if (r.icon) {
2812
- const s = r.icon.trim().split(" ");
2813
- s && s.length && s.reduce((y, h) => (y[h] = !0, y), d);
2814
- }
2815
- return d;
2692
+ }, c = s.icon ? s.icon.trim() : "";
2693
+ return J(f, c);
2816
2694
  }
2817
- function p() {
2818
- return !!(r.icon && r.icon.trim());
2695
+ function l() {
2696
+ return !!(s.icon && s.icon.trim());
2819
2697
  }
2820
- function a() {
2821
- const d = {
2698
+ function i() {
2699
+ const f = {
2822
2700
  btn: !0,
2823
2701
  "f-rt-btn": !0,
2824
- "f-btn-ml": n.value === "right",
2825
- "f-btn-mr": n.value === "left",
2826
- "btn-icontext": !!(r.icon && r.icon.trim())
2702
+ "f-btn-ml": o.value === "right",
2703
+ "f-btn-mr": o.value === "left",
2704
+ "btn-icontext": !!(s.icon && s.icon.trim())
2827
2705
  };
2828
- if (r.class) {
2829
- const s = r.class.split(" ");
2830
- s && s.length && s.reduce((y, h) => (y[h] = !0, y), d);
2831
- }
2832
- return d;
2706
+ return J(f, s.class);
2833
2707
  }
2834
- return H(() => {
2708
+ return z(() => {
2835
2709
  }), ne(() => {
2836
2710
  }), () => w("div", {
2837
- ref: m,
2838
- "data-dragref": `${M.schema.id}-container`,
2711
+ ref: v,
2712
+ "data-dragref": `${D.schema.id}-container`,
2839
2713
  class: "farris-component position-relative",
2840
2714
  style: "display:inline-block!important;"
2841
2715
  }, [w("button", {
2842
2716
  type: "button",
2843
- class: a(),
2844
- id: r.id
2845
- }, [p() && w("i", {
2717
+ class: i(),
2718
+ id: s.id
2719
+ }, [l() && w("i", {
2846
2720
  class: C()
2847
- }, null), r.text])]);
2721
+ }, null), s.text])]);
2848
2722
  }
2849
- }), jt = /* @__PURE__ */ Y({
2723
+ }), Bt = /* @__PURE__ */ X({
2850
2724
  name: "FResponseToolbarDesign",
2851
- props: at,
2725
+ props: pt,
2852
2726
  emits: ["Click"],
2853
- setup(r, e) {
2854
- const n = j(r.items);
2855
- let c = new Array(n.value.length).fill(j());
2856
- const u = j(), m = j(), v = j(r.alignment), M = {
2727
+ setup(s, e) {
2728
+ const o = S(s.items);
2729
+ let p = new Array(o.value.length).fill(S());
2730
+ const u = S(), v = S(), h = S(s.alignment), D = {
2857
2731
  id: "__more_buttons__",
2858
2732
  text: "More"
2859
- }, S = j(new G(M)), g = Te();
2860
- z(() => S.value.children.length > 0);
2861
- const C = j(), p = $("designer-host-service"), a = $("design-item-context"), d = xt(a.schema, p, a), s = fe(C, a, d);
2862
- $("toolbar-item-handler", () => {
2863
- }), H(() => {
2864
- C.value.componentInstance = s;
2865
- }), e.expose(s.value);
2866
- const y = z(() => ({
2733
+ }, I = S(new G(D)), g = xe();
2734
+ W(() => I.value.children.length > 0);
2735
+ const C = S(), l = L("designer-host-service"), i = L("design-item-context"), f = It(i.schema, l, i), c = ge(C, i, f);
2736
+ L("toolbar-item-handler", () => {
2737
+ }), z(() => {
2738
+ C.value.componentInstance = c;
2739
+ }), e.expose(c.value);
2740
+ const b = W(() => J({
2867
2741
  "f-toolbar": !0,
2868
2742
  "f-response-toolbar": !0,
2869
2743
  "position-relative": !0
2870
- })), h = z(() => ({
2744
+ }, s.customClass)), y = W(() => ({
2871
2745
  "d-flex": !0,
2872
2746
  "flex-nowrap": !0,
2873
- "justify-content-end": v.value === "right",
2874
- "justify-content-start": v.value === "left"
2747
+ "justify-content-end": h.value === "right",
2748
+ "justify-content-start": h.value === "left"
2875
2749
  })), {
2876
- renderToolbarDropdown: x,
2750
+ renderToolbarDropdown: T,
2877
2751
  clearAllDropDown: O
2878
- } = ut(r, g, s);
2752
+ } = mt(s, g, c);
2879
2753
  function P() {
2880
- n.value.filter((l) => l.children && l.children.length > 0).forEach((l) => {
2881
- l.expanded = !1;
2882
- }), S.value.expanded = !1, O();
2754
+ o.value.filter((a) => a.children && a.children.length > 0).forEach((a) => {
2755
+ a.expanded = !1;
2756
+ }), I.value.expanded = !1, O();
2883
2757
  }
2884
- const A = /* @__PURE__ */ new Map(), N = [];
2885
- function D(l) {
2886
- const o = m.value;
2887
- let t = l;
2888
- const i = Array.from(o.children), f = i[i.length - 1].id === "__more_buttons__" ? i[i.length - 1] : null;
2889
- if (f) {
2890
- const L = f.computedStyleMap().get("margin-left"), V = f.computedStyleMap().get("margin-right"), W = (L ? L.value : 0) + f.getBoundingClientRect().width + (V ? V.value : 0);
2891
- t -= W;
2758
+ const k = /* @__PURE__ */ new Map(), N = [];
2759
+ function j(a) {
2760
+ const n = v.value;
2761
+ let t = a;
2762
+ const r = Array.from(n.children), d = r[r.length - 1].id === "__more_buttons__" ? r[r.length - 1] : null;
2763
+ if (d) {
2764
+ const _ = d.computedStyleMap().get("margin-left"), $ = d.computedStyleMap().get("margin-right"), V = (_ ? _.value : 0) + d.getBoundingClientRect().width + ($ ? $.value : 0);
2765
+ t -= V;
2892
2766
  }
2893
- const R = i.filter((L) => L.id !== "__more_buttons__");
2894
- for (const L of R) {
2895
- const V = L.computedStyleMap().get("margin-left"), W = L.computedStyleMap().get("margin-right"), U = (V ? V.value : 0) + L.getBoundingClientRect().width + (W ? W.value : 0);
2896
- t < U ? (A.set(L.id, !0), N.push({
2897
- id: L.id,
2767
+ const E = r.filter((_) => _.id !== "__more_buttons__");
2768
+ for (const _ of E) {
2769
+ const $ = _.computedStyleMap().get("margin-left"), V = _.computedStyleMap().get("margin-right"), U = ($ ? $.value : 0) + _.getBoundingClientRect().width + (V ? V.value : 0);
2770
+ t < U ? (k.set(_.id, !0), N.push({
2771
+ id: _.id,
2898
2772
  width: U
2899
2773
  })) : t -= U;
2900
2774
  }
2901
2775
  if (N.length)
2902
- for (let L = N.length - 1; L >= 0; L--) {
2903
- const V = N[L].width;
2904
- if (t >= V)
2905
- t -= V, A.delete(N[L].id), N.pop();
2776
+ for (let _ = N.length - 1; _ >= 0; _--) {
2777
+ const $ = N[_].width;
2778
+ if (t >= $)
2779
+ t -= $, k.delete(N[_].id), N.pop();
2906
2780
  else
2907
2781
  break;
2908
2782
  }
2909
- const T = Object.assign({}, S.value);
2910
- T.children = [];
2911
- const B = new G(T), _ = n.value.reduce((L, V) => (A.has(V.id) && B.children.push(V), V.visible = !A.has(V.id), L.push(V), L), []);
2912
- S.value = B, n.value = _;
2783
+ const x = Object.assign({}, I.value);
2784
+ x.children = [];
2785
+ const M = new G(x), F = o.value.reduce((_, $) => (k.has($.id) && M.children.push($), $.visible = !k.has($.id), _.push($), _), []);
2786
+ I.value = M, o.value = F;
2913
2787
  }
2914
- const b = new ResizeObserver((l) => {
2915
- if (l.length) {
2916
- const t = l[0].contentRect.width, f = m.value.getBoundingClientRect().width;
2917
- (t < f || N.length) && D(t);
2788
+ const m = new ResizeObserver((a) => {
2789
+ if (a.length) {
2790
+ const t = a[0].contentRect.width, d = v.value.getBoundingClientRect().width;
2791
+ (t < d || N.length) && j(t);
2918
2792
  }
2919
2793
  });
2920
- H(() => {
2921
- const l = u.value;
2922
- b.observe(l), document.body.addEventListener("click", P);
2794
+ z(() => {
2795
+ const a = u.value;
2796
+ m.observe(a), document.body.addEventListener("click", P);
2923
2797
  }), ne(() => {
2924
- b.disconnect(), document.body.removeEventListener("click", P);
2925
- }), Q(() => r.items, () => {
2926
- n.value = r.items;
2798
+ m.disconnect(), document.body.removeEventListener("click", P);
2799
+ }), H(() => s.items, () => {
2800
+ o.value = s.items;
2927
2801
  }, {
2928
2802
  deep: !0
2929
- }), Q(n, (l) => {
2930
- c = new Array(n.value.length).fill(j());
2803
+ }), H(o, (a) => {
2804
+ p = new Array(o.value.length).fill(S());
2931
2805
  });
2932
- function k(l, o, t, i) {
2933
- a && a.setupContext && a.setupContext.emit("selectionChange", l, o, t, i);
2806
+ function R(a, n, t, r) {
2807
+ i && i.setupContext && i.setupContext.emit("selectionChange", a, n, t, r);
2934
2808
  }
2935
- function E() {
2936
- const l = m.value.querySelector(".dgComponentFocused.dgComponentSelected");
2937
- l == null || l.classList.remove("dgComponentSelected"), l == null || l.classList.remove("dgComponentFocused");
2809
+ function A() {
2810
+ const a = v.value.querySelector(".dgComponentFocused.dgComponentSelected");
2811
+ a == null || a.classList.remove("dgComponentSelected"), a == null || a.classList.remove("dgComponentFocused");
2938
2812
  }
2939
2813
  return () => w("div", {
2940
2814
  ref: C,
2941
- "data-dragref": `${a.schema.id}-container`,
2942
- class: y.value
2815
+ "data-dragref": `${i.schema.id}-container`,
2816
+ class: b.value
2943
2817
  }, [w("div", {
2944
2818
  ref: u,
2945
- class: h.value
2819
+ class: y.value
2946
2820
  }, [w("div", {
2947
- ref: m,
2821
+ ref: v,
2948
2822
  class: "d-inline-block f-response-content",
2949
2823
  style: "white-space: nowrap;"
2950
- }, [n.value.map((l, o) => w(kt, {
2951
- ref: c[o],
2824
+ }, [o.value.map((a, n) => w(St, {
2825
+ ref: p[n],
2952
2826
  class: "p-0 display-inline-block",
2953
- modelValue: l,
2954
- "onUpdate:modelValue": (t) => l = t,
2827
+ modelValue: a,
2828
+ "onUpdate:modelValue": (t) => a = t,
2955
2829
  canMove: !0,
2956
2830
  childType: "response-toolbar-item",
2957
2831
  childLabel: "按钮",
2958
2832
  contentKey: "buttons",
2959
- componentId: r.componentId,
2960
- id: l.id,
2833
+ componentId: s.componentId,
2834
+ id: a.id,
2961
2835
  style: "padding:0 !important;display:inline-block",
2962
- onSelectionChange: k,
2963
- onRemoveComponent: E
2836
+ onSelectionChange: R,
2837
+ onRemoveComponent: A
2964
2838
  }, {
2965
- default: () => [w(De, {
2966
- id: l.id,
2967
- disable: l.disable,
2968
- text: l.text,
2969
- icon: l.icon,
2970
- componentId: r.componentId
2971
- }, null)]
2839
+ default: () => {
2840
+ var t;
2841
+ return [w(je, {
2842
+ id: a.id,
2843
+ disable: a.disable,
2844
+ text: a.text,
2845
+ icon: a.icon,
2846
+ class: ((t = a.appearance) == null ? void 0 : t.class) || "btn-secondary",
2847
+ alignment: s.alignment || "right",
2848
+ componentId: s.componentId
2849
+ }, null)];
2850
+ }
2972
2851
  }))])])]);
2973
2852
  }
2974
- }), Vt = ie;
2975
- X.register = (r, e, n) => {
2976
- r["response-toolbar"] = X, e["response-toolbar"] = ie;
2853
+ }), Vt = ce;
2854
+ Q.register = (s, e, o) => {
2855
+ s["response-toolbar"] = Q, e["response-toolbar"] = ce;
2977
2856
  };
2978
- X.registerDesigner = (r, e, n) => {
2979
- r["response-toolbar"] = jt, e["response-toolbar"] = ie, r["response-toolbar-item"] = De, e["response-toolbar-item"] = ct;
2857
+ Q.registerDesigner = (s, e, o) => {
2858
+ s["response-toolbar"] = Bt, e["response-toolbar"] = ce, s["response-toolbar-item"] = je, e["response-toolbar-item"] = dt;
2980
2859
  };
2981
- const _t = Ae(X);
2860
+ const Wt = Ae(Q);
2982
2861
  export {
2983
- X as FResponseToolbar,
2862
+ Q as FResponseToolbar,
2984
2863
  G as ResponseToolbarDropDownItem,
2985
- Nt as ResponseToolbarGroup,
2986
- Fe as ResponseToolbarItem,
2987
- _t as default,
2864
+ Lt as ResponseToolbarGroup,
2865
+ Be as ResponseToolbarItem,
2866
+ Wt as default,
2988
2867
  Vt as responseToolbarResolver
2989
2868
  };