@farris/ui-vue 1.2.8 → 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 (215) hide show
  1. package/components/accordion/index.esm.js +129 -129
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +166 -157
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.esm.js +343 -325
  8. package/components/button-edit/index.umd.cjs +1 -0
  9. package/components/button-group/index.umd.cjs +1 -0
  10. package/components/calculator/index.umd.cjs +1 -0
  11. package/components/calendar/index.esm.js +338 -338
  12. package/components/calendar/index.umd.cjs +1 -0
  13. package/components/capsule/index.esm.js +182 -182
  14. package/components/capsule/index.umd.cjs +1 -0
  15. package/components/checkbox/index.esm.js +326 -317
  16. package/components/checkbox/index.umd.cjs +1 -0
  17. package/components/color-picker/index.esm.js +118 -118
  18. package/components/color-picker/index.umd.cjs +3 -0
  19. package/components/combo-list/index.esm.js +338 -325
  20. package/components/combo-list/index.umd.cjs +1 -0
  21. package/components/combo-tree/index.esm.js +62 -62
  22. package/components/combo-tree/index.umd.cjs +1 -0
  23. package/components/common/index.umd.cjs +1 -0
  24. package/components/component/index.esm.js +382 -270
  25. package/components/component/index.umd.cjs +1 -0
  26. package/components/condition/index.esm.js +1018 -895
  27. package/components/condition/index.umd.cjs +1 -0
  28. package/components/content-container/index.esm.js +285 -212
  29. package/components/content-container/index.umd.cjs +1 -0
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +4761 -4319
  32. package/components/data-grid/index.umd.cjs +1 -0
  33. package/components/data-view/index.esm.js +2901 -2664
  34. package/components/data-view/index.umd.cjs +1 -0
  35. package/components/date-picker/index.esm.js +1502 -1488
  36. package/components/date-picker/index.umd.cjs +1 -0
  37. package/components/designer-canvas/index.css +1 -1
  38. package/components/designer-canvas/index.esm.js +938 -928
  39. package/components/designer-canvas/index.umd.cjs +1 -0
  40. package/components/designer-outline/index.css +1 -1
  41. package/components/designer-outline/index.esm.js +27 -27
  42. package/components/designer-outline/index.umd.cjs +1 -0
  43. package/components/designer-toolbox/index.esm.js +36 -12
  44. package/components/designer-toolbox/index.umd.cjs +1 -0
  45. package/components/discussion-editor/index.umd.cjs +3 -0
  46. package/components/discussion-list/index.umd.cjs +1 -0
  47. package/components/drawer/index.umd.cjs +1 -0
  48. package/components/dropdown/index.esm.js +241 -241
  49. package/components/dropdown/index.umd.cjs +2 -0
  50. package/components/dynamic-form/index.esm.js +1074 -885
  51. package/components/dynamic-form/index.umd.cjs +1 -0
  52. package/components/dynamic-resolver/index.esm.js +99 -94
  53. package/components/dynamic-resolver/index.umd.cjs +1 -0
  54. package/components/dynamic-view/index.umd.cjs +1 -0
  55. package/components/enum-editor/index.umd.cjs +1 -0
  56. package/components/events-editor/index.esm.js +577 -522
  57. package/components/events-editor/index.umd.cjs +1 -0
  58. package/components/expression-editor/index.esm.js +70 -70
  59. package/components/expression-editor/index.umd.cjs +1 -0
  60. package/components/external-container/index.css +1 -1
  61. package/components/external-container/index.esm.js +2938 -2619
  62. package/components/external-container/index.umd.cjs +1 -0
  63. package/components/field-selector/index.css +1 -1
  64. package/components/field-selector/index.esm.js +4766 -4325
  65. package/components/field-selector/index.umd.cjs +1 -0
  66. package/components/filter-bar/index.css +1 -1
  67. package/components/filter-bar/index.esm.js +1231 -1215
  68. package/components/filter-bar/index.umd.cjs +1 -0
  69. package/components/flow-canvas/index.css +1 -1
  70. package/components/flow-canvas/index.esm.js +1062 -1052
  71. package/components/flow-canvas/index.umd.cjs +1 -0
  72. package/components/image-cropper/index.esm.js +373 -373
  73. package/components/image-cropper/index.umd.cjs +1 -0
  74. package/components/input-group/index.esm.js +398 -394
  75. package/components/input-group/index.umd.cjs +1 -0
  76. package/components/layout/index.esm.js +268 -268
  77. package/components/layout/index.umd.cjs +1 -0
  78. package/components/list-nav/index.esm.js +234 -161
  79. package/components/list-nav/index.umd.cjs +1 -0
  80. package/components/list-view/index.css +1 -1
  81. package/components/list-view/index.esm.js +2288 -2048
  82. package/components/list-view/index.umd.cjs +1 -0
  83. package/components/loading/index.umd.cjs +8 -0
  84. package/components/locale/index.umd.cjs +1 -0
  85. package/components/lookup/index.css +1 -1
  86. package/components/lookup/index.esm.js +5776 -5305
  87. package/components/lookup/index.umd.cjs +1 -0
  88. package/components/mapping-editor/index.css +1 -1
  89. package/components/mapping-editor/index.esm.js +5496 -5036
  90. package/components/mapping-editor/index.umd.cjs +1 -0
  91. package/components/message-box/index.umd.cjs +1 -0
  92. package/components/modal/index.umd.cjs +1 -0
  93. package/components/nav/index.esm.js +383 -322
  94. package/components/nav/index.umd.cjs +3 -0
  95. package/components/notify/index.umd.cjs +1 -0
  96. package/components/number-range/index.esm.js +273 -269
  97. package/components/number-range/index.umd.cjs +1 -0
  98. package/components/number-spinner/index.esm.js +292 -283
  99. package/components/number-spinner/index.umd.cjs +1 -0
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1008 -925
  102. package/components/order/index.umd.cjs +1 -0
  103. package/components/page-footer/index.esm.js +98 -98
  104. package/components/page-footer/index.umd.cjs +1 -0
  105. package/components/page-header/index.esm.js +949 -847
  106. package/components/page-header/index.umd.cjs +1 -0
  107. package/components/pagination/index.esm.js +464 -403
  108. package/components/pagination/index.umd.cjs +1 -0
  109. package/components/popover/index.umd.cjs +1 -0
  110. package/components/progress/index.esm.js +226 -226
  111. package/components/progress/index.umd.cjs +3 -0
  112. package/components/property-editor/index.esm.js +1110 -1092
  113. package/components/property-editor/index.umd.cjs +3 -0
  114. package/components/property-panel/index.esm.js +520 -513
  115. package/components/property-panel/index.umd.cjs +1 -0
  116. package/components/query-solution/index.css +1 -1
  117. package/components/query-solution/index.esm.js +1714 -1575
  118. package/components/query-solution/index.umd.cjs +1 -0
  119. package/components/radio-button/index.esm.js +67 -67
  120. package/components/radio-button/index.umd.cjs +1 -0
  121. package/components/radio-group/index.esm.js +298 -289
  122. package/components/radio-group/index.umd.cjs +1 -0
  123. package/components/rate/index.esm.js +195 -190
  124. package/components/rate/index.umd.cjs +1 -0
  125. package/components/response-layout/index.esm.js +112 -112
  126. package/components/response-layout/index.umd.cjs +1 -0
  127. package/components/response-layout-editor/index.esm.js +902 -877
  128. package/components/response-layout-editor/index.umd.cjs +1 -0
  129. package/components/response-toolbar/index.esm.js +874 -778
  130. package/components/response-toolbar/index.umd.cjs +1 -0
  131. package/components/schema-selector/index.css +1 -1
  132. package/components/schema-selector/index.esm.js +4594 -4289
  133. package/components/schema-selector/index.umd.cjs +8 -0
  134. package/components/search-box/index.esm.js +126 -126
  135. package/components/search-box/index.umd.cjs +1 -0
  136. package/components/section/index.esm.js +645 -503
  137. package/components/section/index.umd.cjs +1 -0
  138. package/components/smoke-detector/index.esm.js +120 -120
  139. package/components/smoke-detector/index.umd.cjs +1 -0
  140. package/components/spacing-editor/index.umd.cjs +1 -0
  141. package/components/splitter/index.esm.js +421 -348
  142. package/components/splitter/index.umd.cjs +1 -0
  143. package/components/step/index.esm.js +219 -219
  144. package/components/step/index.umd.cjs +1 -0
  145. package/components/switch/index.esm.js +232 -222
  146. package/components/switch/index.umd.cjs +1 -0
  147. package/components/tabs/index.esm.js +1823 -1744
  148. package/components/tabs/index.umd.cjs +1 -0
  149. package/components/tags/index.esm.js +399 -401
  150. package/components/tags/index.umd.cjs +1 -0
  151. package/components/text/index.esm.js +164 -164
  152. package/components/text/index.umd.cjs +1 -0
  153. package/components/textarea/index.esm.js +220 -215
  154. package/components/textarea/index.umd.cjs +1 -0
  155. package/components/time-picker/index.esm.js +693 -666
  156. package/components/time-picker/index.umd.cjs +1 -0
  157. package/components/tooltip/index.umd.cjs +1 -0
  158. package/components/transfer/index.css +1 -1
  159. package/components/transfer/index.esm.js +422 -413
  160. package/components/transfer/index.umd.cjs +1 -0
  161. package/components/tree-grid/index.css +1 -1
  162. package/components/tree-grid/index.esm.js +4799 -4358
  163. package/components/tree-grid/index.umd.cjs +1 -0
  164. package/components/tree-view/index.esm.js +2448 -2215
  165. package/components/tree-view/index.umd.cjs +1 -0
  166. package/components/uploader/index.esm.js +164 -164
  167. package/components/uploader/index.umd.cjs +2 -0
  168. package/components/verify-detail/index.esm.js +143 -143
  169. package/components/verify-detail/index.umd.cjs +1 -0
  170. package/components/video/index.esm.js +410 -331
  171. package/components/video/index.umd.cjs +1 -0
  172. package/components/weather/index.esm.js +901 -901
  173. package/components/weather/index.umd.cjs +16 -0
  174. package/farris.all.esm.js +12305 -11403
  175. package/farris.all.umd.cjs +8 -8
  176. package/index.css +1 -1
  177. package/package.json +1 -1
  178. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  179. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  180. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  181. package/types/common/entity/entity-schema.d.ts +258 -0
  182. package/types/component/src/component-ref.props.d.ts +4 -0
  183. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  184. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  185. package/types/data-grid/index.d.ts +5 -2
  186. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  189. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  190. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  191. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  192. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  193. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  194. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  195. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  196. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  197. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  198. package/types/data-view/composition/types.d.ts +18 -6
  199. package/types/data-view/composition/use-edit.d.ts +2 -1
  200. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  201. package/types/designer-canvas/src/types.d.ts +2 -2
  202. package/types/dynamic-form/index.d.ts +2 -1
  203. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  204. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  205. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  206. package/types/dynamic-resolver/src/types.d.ts +3 -2
  207. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  208. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  209. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  210. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  211. package/types/tabs/src/composition/types.d.ts +2 -2
  212. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  213. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  214. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  215. package/types/tags/index.d.ts +36 -5
@@ -1,38 +1,38 @@
1
1
  var Pe = Object.defineProperty;
2
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 A = (s, e, o) => Re(s, typeof e != "symbol" ? e + "" : e, o);
4
- import { computed as W, getCurrentInstance as de, createVNode as w, ref as S, defineComponent as Q, onMounted as z, onUnmounted as te, watch as H, inject as L, createTextVNode as ue, provide as Ee, onBeforeUnmount as Se, withModifiers as Me } from "vue";
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
5
  import { cloneDeep as ke } from "lodash-es";
6
- import { useDesignerInnerComponent as fe } from "../designer-canvas/index.esm.js";
7
- import { withInstall as Be } from "../common/index.esm.js";
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
- A(this, "id", "");
11
+ B(this, "id", "");
12
12
  /** 工具栏项自定义样式 */
13
- A(this, "class", "btn-secondary");
13
+ B(this, "class", "btn-secondary");
14
14
  /** 图标 */
15
- A(this, "icon", "");
15
+ B(this, "icon", "");
16
16
  /** 所属分组 */
17
- A(this, "groupId", "");
17
+ B(this, "groupId", "");
18
18
  /** 收藏顺序 */
19
- A(this, "order", -1);
19
+ B(this, "order", -1);
20
20
  /** 是否作为下拉菜单的顶层按钮 */
21
- A(this, "asDropDownTop", !1);
21
+ B(this, "asDropDownTop", !1);
22
22
  /** 文本 */
23
- A(this, "text", "");
23
+ B(this, "text", "");
24
24
  /** 是否可见 */
25
- A(this, "visible", !0);
26
- A(this, "responsed", !1);
25
+ B(this, "visible", !0);
26
+ B(this, "responsed", !1);
27
27
  /** 是否启用提示消息 */
28
- A(this, "tipsEnable", !1);
28
+ B(this, "tipsEnable", !1);
29
29
  /** 提示消息内容 */
30
- A(this, "tipsText", "");
30
+ B(this, "tipsText", "");
31
31
  /** 记录宽度 */
32
- A(this, "width", 0);
33
- A(this, "onClick", () => {
32
+ B(this, "width", 0);
33
+ B(this, "onClick", () => {
34
34
  });
35
- A(this, "options");
35
+ B(this, "options");
36
36
  this.options = e;
37
37
  const o = [
38
38
  "id",
@@ -67,48 +67,48 @@ class me {
67
67
  return this.visible ? this.width : !1;
68
68
  }
69
69
  }
70
- class Ae extends me {
70
+ class Be extends me {
71
71
  constructor(e) {
72
72
  super(e);
73
73
  }
74
74
  }
75
- function ge() {
75
+ function he() {
76
76
  function s(e) {
77
77
  const o = [];
78
- return e.reduce((p, f) => (f.children && f.children.length > 0 ? p.push(new G(f)) : p.push(new Ae(f)), p), o), 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
80
  return { buildResponseToolbarItems: s };
81
81
  }
82
- const { buildResponseToolbarItems: Oe } = ge();
82
+ const { buildResponseToolbarItems: Oe } = he();
83
83
  class G extends me {
84
84
  constructor(o) {
85
85
  super(o);
86
- A(this, "placement", "");
86
+ B(this, "placement", "");
87
87
  // 下拉位置
88
88
  /** 下拉class */
89
- A(this, "dropdownClass", "");
89
+ B(this, "dropdownClass", "");
90
90
  /** 下拉菜单class */
91
- A(this, "menuClass", "");
91
+ B(this, "menuClass", "");
92
92
  /** 是否用分开的下拉按钮 */
93
- A(this, "split", !1);
94
- A(this, "children", []);
95
- A(this, "expanded", !1);
93
+ B(this, "split", !1);
94
+ B(this, "children", []);
95
+ B(this, "expanded", !1);
96
96
  const p = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
97
- Object.keys(o).filter((f) => p.indexOf(f) > -1).forEach((f) => {
98
- this[f] = o[f];
97
+ Object.keys(o).filter((u) => p.indexOf(u) > -1).forEach((u) => {
98
+ this[u] = o[u];
99
99
  }), o.children && o.children.length && (this.children = Oe(o.children));
100
100
  }
101
101
  }
102
- class Nt {
102
+ class Lt {
103
103
  constructor(e, o) {
104
- A(this, "id");
105
- A(this, "name");
104
+ B(this, "id");
105
+ B(this, "name");
106
106
  /** 记录元素的Id */
107
- A(this, "presetId", []);
107
+ B(this, "presetId", []);
108
108
  /** 记录转变为下拉时元素的位置 */
109
- A(this, "responsedIndex", []);
109
+ B(this, "responsedIndex", []);
110
110
  /** 记录宽度 */
111
- A(this, "width");
111
+ B(this, "width");
112
112
  this.id = e, this.name = o, this.width = 0;
113
113
  }
114
114
  // 设置宽度
@@ -144,36 +144,36 @@ class Nt {
144
144
  return this.presetId.length === this.responsedIndex.length;
145
145
  }
146
146
  }
147
- const ne = {}, he = {};
148
- function oe(s) {
149
- const { properties: e, title: o } = s, p = Object.keys(e).reduce((f, y) => (f[y] = e[y].type === "object" && e[y].properties ? oe(e[y]) : ke(e[y].default), f), {});
150
- return p.id = `${o}-${Date.now()}`, p;
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(s, e = {}) {
153
- const o = ne[s];
154
- if (o) {
155
- let p = oe(o);
156
- const f = he[s];
157
- return p = f ? f({ getSchemaByType: q }, p, e) : p, p;
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
161
  function _e(s, e) {
162
- const o = oe(e);
163
- return Object.keys(s).reduce((p, f) => (p[f] && typeof p[f] == "object" ? Object.assign(p[f], s[f]) : p[f] = s[f], p), o), o;
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
165
  function Ne(s, e) {
166
- return Object.keys(s).filter((p) => s[p] != null).reduce((p, f) => {
167
- if (e.has(f)) {
168
- const y = e.get(f);
169
- if (typeof y == "string")
170
- p[y] = s[f];
166
+ return Object.keys(s).filter((p) => s[p] != null).reduce((p, u) => {
167
+ if (e.has(u)) {
168
+ const v = e.get(u);
169
+ if (typeof v == "string")
170
+ p[v] = s[u];
171
171
  else {
172
- const C = y(f, s[f], s);
173
- Object.assign(p, C);
172
+ const h = v(u, s[u], s);
173
+ Object.assign(p, h);
174
174
  }
175
175
  } else
176
- p[f] = s[f];
176
+ p[u] = s[u];
177
177
  return p;
178
178
  }, {});
179
179
  }
@@ -182,60 +182,60 @@ function $e(s, e, o = /* @__PURE__ */ new Map()) {
182
182
  return Ne(p, o);
183
183
  }
184
184
  function Fe(s = {}) {
185
- function e(g, v, l, c) {
185
+ function e(g, C, l, i) {
186
186
  if (typeof l == "number")
187
- return c[g].length === l;
187
+ return i[g].length === l;
188
188
  if (typeof l == "object") {
189
- const d = Object.keys(l)[0], i = l[d];
190
- if (d === "not")
191
- return Number(c[g].length) !== Number(i);
192
- if (d === "moreThan")
193
- return Number(c[g].length) >= Number(i);
194
- if (d === "lessThan")
195
- return Number(c[g].length) <= Number(i);
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 o(g, v, l, c) {
200
- return c[g] && c[g].propertyValue && String(c[g].propertyValue.value) === String(l);
199
+ function o(g, C, l, i) {
200
+ return i[g] && i[g].propertyValue && String(i[g].propertyValue.value) === String(l);
201
201
  }
202
202
  const p = /* @__PURE__ */ new Map([
203
203
  ["length", e],
204
204
  ["getProperty", o]
205
205
  ]);
206
- Object.keys(s).reduce((g, v) => (g.set(v, s[v]), g), p);
207
- function f(g, v) {
206
+ Object.keys(s).reduce((g, C) => (g.set(C, s[C]), g), p);
207
+ function u(g, C) {
208
208
  const l = g;
209
- return typeof v == "number" ? [{ target: l, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: l, operator: "getProperty", param: g, value: !!v }] : typeof v == "object" ? Object.keys(v).map((c) => {
210
- if (c === "length")
211
- return { target: l, operator: "length", param: null, value: v[c] };
212
- const d = c, i = v[c];
213
- return { target: l, operator: "getProperty", param: d, value: i };
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 y(g) {
217
- return Object.keys(g).reduce((l, c) => {
218
- const d = f(c, g[c]);
219
- return l.push(...d), l;
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 C(g, v) {
222
+ function h(g, C) {
223
223
  if (p.has(g.operator)) {
224
224
  const l = p.get(g.operator);
225
- return l && l(g.target, g.param, g.value, v) || !1;
225
+ return l && l(g.target, g.param, g.value, C) || !1;
226
226
  }
227
227
  return !1;
228
228
  }
229
- function k(g, v) {
230
- return y(g).reduce((d, i) => d && C(i, v), !0);
229
+ function D(g, C) {
230
+ return v(g).reduce((f, c) => f && h(c, C), !0);
231
231
  }
232
- function D(g, v) {
233
- const l = Object.keys(g), c = l.includes("allOf"), d = l.includes("anyOf"), i = c || d, T = (i ? g[i ? c ? "allOf" : "anyOf" : "allOf"] : [g]).map((P) => k(P, v));
234
- return c ? !T.includes(!1) : T.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: D };
236
+ return { parseValueSchema: I };
237
237
  }
238
- const se = {
238
+ const re = {
239
239
  button: { type: "button", name: "按钮", icon: "Button" },
240
240
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
241
241
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -273,21 +273,30 @@ const se = {
273
273
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
274
274
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
275
275
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
276
- }, be = {}, Le = {};
276
+ }, ye = {}, Le = {};
277
277
  Fe();
278
- function ye(s, e, o = /* @__PURE__ */ new Map(), p = (C, k, D) => k, f = {}, y = (C) => C) {
279
- return ne[e.title] = e, he[e.title] = p, be[e.title] = f, Le[e.title] = y, (C = {}) => {
280
- const k = $e(C, e, o), D = Object.keys(s).reduce((g, v) => (g[v] = s[v].default, g), {});
281
- return Object.assign(D, k);
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);
282
282
  };
283
283
  }
284
- const ve = /* @__PURE__ */ new Map([
285
- ["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]
286
292
  ]);
293
+ function qe(s, e) {
294
+ return { class: e.class, style: e.style };
295
+ }
287
296
  function Ce(s, e, o) {
288
297
  return e;
289
298
  }
290
- const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-design.gitee.io/response-toolbar.schema.json", Ue = "response-toolbar", qe = "A Farris Toolbar Component", ze = "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 = {
291
300
  id: {
292
301
  description: "The unique identifier for a Response Toolbar",
293
302
  type: "string"
@@ -320,19 +329,19 @@ const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
320
329
  type: "array",
321
330
  default: []
322
331
  }
323
- }, He = [
332
+ }, Ye = [
324
333
  "id",
325
334
  "type",
326
335
  "buttons"
327
- ], Je = {
328
- $schema: Ve,
329
- $id: We,
330
- title: Ue,
331
- description: qe,
332
- type: ze,
333
- properties: Ge,
334
- required: He
335
- }, Qe = "https://json-schema.org/draft/2020-12/schema", Xe = "https://farris-design.gitee.io/response-toolbar-item.schema.json", Ye = "response-toolbar-item", Ze = "A Farris Toolbar Item Component", Ke = "object", et = {
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 = {
336
345
  id: {
337
346
  description: "The unique identifier for a Response Toolbar",
338
347
  type: "string"
@@ -347,7 +356,8 @@ const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
347
356
  type: "object",
348
357
  properties: {
349
358
  class: {
350
- type: "string"
359
+ type: "string",
360
+ default: "btn-primary"
351
361
  },
352
362
  style: {
353
363
  type: "string"
@@ -355,6 +365,11 @@ const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
355
365
  },
356
366
  default: {}
357
367
  },
368
+ alignment: {
369
+ description: "The alignment of Response Toolbar Button.",
370
+ type: "string",
371
+ default: "right"
372
+ },
358
373
  text: {
359
374
  description: "The items of Response Toolbar.",
360
375
  type: "string",
@@ -370,19 +385,19 @@ const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
370
385
  type: "string",
371
386
  default: ""
372
387
  }
373
- }, tt = [
388
+ }, rt = [
374
389
  "id",
375
390
  "type",
376
391
  "text"
377
- ], ee = {
378
- $schema: Qe,
379
- $id: Xe,
380
- title: Ye,
381
- description: Ze,
382
- type: Ke,
383
- properties: et,
384
- required: tt
385
- }, nt = "response-toolbar-item", ot = "A Farris Container Component", st = "object", rt = {
392
+ ], te = {
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 = {
386
401
  basic: {
387
402
  title: "基本信息",
388
403
  description: "Basic Infomation",
@@ -415,12 +430,12 @@ const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
415
430
  }
416
431
  }
417
432
  }
418
- }, le = {
419
- title: nt,
420
- description: ot,
421
- type: st,
422
- categories: rt
423
- }, re = {
433
+ }, pe = {
434
+ title: it,
435
+ description: ct,
436
+ type: at,
437
+ categories: lt
438
+ }, ie = {
424
439
  /** 组件自定义样式 */
425
440
  customClass: { type: String, default: "" },
426
441
  alignment: { Type: String, default: "right" },
@@ -429,26 +444,28 @@ const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
429
444
  default: []
430
445
  }
431
446
  };
432
- ne[ee.title] = ee;
433
- be[le.title] = le;
434
- const it = Object.assign({}, re, {
447
+ oe[te.title] = te;
448
+ ye[pe.title] = pe;
449
+ const pt = Object.assign({}, ie, {
435
450
  componentId: { type: String, default: "" }
436
- }), ie = ye(
437
- re,
438
- Je,
439
- ve,
451
+ }), ce = ve(
452
+ ie,
453
+ Ze,
454
+ We,
440
455
  Ce
441
456
  ), we = {
442
457
  id: { type: String, default: "" },
443
458
  items: { type: Object, default: {} },
459
+ class: { type: String, default: "" },
444
460
  text: { type: String, default: "" },
445
461
  disabled: { type: Boolean, default: !1 },
446
462
  icon: { type: String, default: "" },
447
- componentId: { type: String, default: "" }
448
- }, ct = ye(
463
+ componentId: { type: String, default: "" },
464
+ alignment: { Type: String, default: "right" }
465
+ }, dt = ve(
449
466
  we,
450
- ee,
451
- ve,
467
+ te,
468
+ Ue,
452
469
  Ce
453
470
  );
454
471
  function xe() {
@@ -457,8 +474,8 @@ function xe() {
457
474
  "f-icon": !0
458
475
  };
459
476
  if (o.icon) {
460
- const f = o.icon.trim().split(" ");
461
- f && f.length && f.reduce((y, C) => (y[C] = !0, y), p);
477
+ const u = o.icon.trim().split(" ");
478
+ u && u.length && u.reduce((v, h) => (v[h] = !0, v), p);
462
479
  }
463
480
  return p;
464
481
  }
@@ -467,279 +484,272 @@ function xe() {
467
484
  }
468
485
  return { iconClass: s, shouldShowIcon: e };
469
486
  }
470
- function at(s) {
487
+ function ut(s) {
471
488
  function e(l) {
472
- const c = {
489
+ const i = {
473
490
  "dropdown-menu": !0
474
491
  };
475
492
  if (l.class) {
476
- const d = l.menuClass.split(" ");
477
- d && d.length && d.reduce((i, m) => (i[m] = !0, i), c);
493
+ const f = l.menuClass.split(" ");
494
+ f && f.length && f.reduce((c, b) => (c[b] = !0, c), i);
478
495
  }
479
- return c;
496
+ return i;
480
497
  }
481
498
  function o(l) {
482
- const c = {
499
+ const i = {
483
500
  disabled: !l.enable,
484
501
  "dropdown-submenu": !0,
485
502
  "f-rt-dropdown": !0
486
- }, d = l.dropdownClass.split(" ");
487
- return d && d.length && d.reduce((i, m) => (i[m] = !0, i), c), c;
503
+ }, f = l.dropdownClass.split(" ");
504
+ return f && f.length && f.reduce((c, b) => (c[b] = !0, c), i), i;
488
505
  }
489
506
  function p(l) {
490
- const c = {
507
+ const i = {
491
508
  disabled: !l.enable,
492
509
  "dropdown-item": !0,
493
510
  "f-rt-btn": !0
494
- }, d = l.class.split(" ");
495
- return d && d.length && d.reduce((i, m) => (i[m] = !0, i), c), c;
496
- }
497
- let f;
498
- const y = /* @__PURE__ */ new Map();
499
- function C(l, c, d) {
500
- var m;
501
- ((m = l.target) == null ? void 0 : m.id) === c.id && l.stopPropagation();
502
- const i = d ? d.id : "__top_item__";
503
- if (c.children && c.children.length && (c.expanded = !c.expanded, c.expanded ? y.set(i, c) : y.delete(i)), y.has(i) && y.get(i) !== c) {
504
- const h = y.get(i);
505
- h && (h.expanded = !1);
511
+ }, f = l.class.split(" ");
512
+ return f && f.length && f.reduce((c, b) => (c[b] = !0, c), i), i;
513
+ }
514
+ let u;
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);
506
523
  }
507
524
  }
508
- function k(l, c) {
509
- document.body.click(), c.enable && c.onClick(l, c.id);
525
+ function D(l, i) {
526
+ document.body.click(), i.enable && i.onClick(l, i.id);
510
527
  }
511
- function D(l) {
512
- return l.children.map((c) => c.children && c.children.length ? w("li", {
513
- class: o(c),
514
- id: c.id,
515
- onClick: (d) => c.enable && C(d, c, l)
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)
516
533
  }, [w("span", {
517
- id: c.id,
518
- class: p(c),
519
- onMouseover: (d) => c.enable && C(d, c, l)
520
- }, [c.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", {
521
538
  class: "f-icon f-icon-arrow-chevron-right",
522
539
  style: "display: inline-block;float: right;line-height: 1.25rem;"
523
- }, null)]), f(c, c)]) : w("li", {
524
- class: p(c),
525
- id: c.id,
526
- onClick: (d) => k(d, c),
527
- onMouseover: (d) => c.enable && C(d, c, l)
528
- }, [s.shouldShowIcon(c) && w("i", {
529
- class: s.iconClass(c)
530
- }, null), c.text]));
531
- }
532
- function g(l, c, d) {
533
- const i = {
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 = {
534
551
  display: l.expanded ? "block" : "none",
535
552
  position: "fixed",
536
553
  maxWidth: "300px",
537
554
  width: "auto",
538
555
  minWidth: "120px"
539
- }, m = document.getElementsByTagName("body")[0].getClientRects()[0].width, h = c, T = h == null ? void 0 : h.getClientRects();
540
- if (h && T && T.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) {
541
558
  const {
542
559
  top: O,
543
560
  width: P,
544
- left: B,
561
+ left: k,
545
562
  right: N,
546
563
  height: j
547
- } = T[0], b = Math.ceil(j + O);
548
- i.top = `${b}px`, i.left = `${B}px`;
549
- const I = l.id + "_menu", E = c ? c.querySelector("#" + I) : null;
550
- if (E) {
551
- i.display === "block" && (E.style.display = "block");
552
- const a = E.getBoundingClientRect();
553
- if (d) {
554
- i.top = `${O - 6}px`;
555
- const n = Math.ceil(P + B);
556
- i.left = `${n}px`;
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`;
557
574
  }
558
- m - B - P < a.width && (i.left = `${(d ? B : N) - a.width}px`);
575
+ b - k - P < a.width && (c.left = `${(f ? k : N) - a.width}px`);
559
576
  }
560
577
  }
561
- return i;
578
+ return c;
562
579
  }
563
- f = function(l, c) {
564
- var h, T;
565
- const d = de(), i = c ? c.id : l.id, m = (T = (h = d == null ? void 0 : d.exposed) == null ? void 0 : h.elementRef.value) == null ? void 0 : T.querySelector("#" + i);
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);
566
583
  return w("ul", {
567
584
  class: e(l),
568
- style: g(l, m, c),
585
+ style: g(l, b, i),
569
586
  id: l.id + "_menu"
570
- }, [D(l)]);
587
+ }, [I(l)]);
571
588
  };
572
- function v() {
573
- y.forEach((l) => {
589
+ function C() {
590
+ v.forEach((l) => {
574
591
  l.expanded = !1;
575
- }), y.clear();
592
+ }), v.clear();
576
593
  }
577
594
  return {
578
- renderDropdownMenu: f,
579
- clearAllDropDownMenu: v
595
+ renderDropdownMenu: u,
596
+ clearAllDropDownMenu: C
580
597
  };
581
598
  }
582
- function lt(s, e) {
599
+ function ft(s, e) {
583
600
  const o = S(s.alignment), {
584
601
  renderDropdownMenu: p,
585
- clearAllDropDownMenu: f
586
- } = at(e);
587
- function y(v) {
602
+ clearAllDropDownMenu: u
603
+ } = ut(e);
604
+ function v(C) {
588
605
  const l = {
589
606
  "btn-group": !0,
590
607
  "f-rt-dropdown": !0,
591
608
  "f-btn-ml": o.value === "right",
592
609
  "f-btn-mr": o.value === "left"
593
- }, c = v.dropdownClass.split(" ");
594
- return c && c.length && c.reduce((d, i) => (d[i] = !0, d), l), l;
610
+ }, i = C.dropdownClass.split(" ");
611
+ return i && i.length && i.reduce((f, c) => (f[c] = !0, f), l), l;
595
612
  }
596
- function C(v) {
613
+ function h(C) {
597
614
  const l = {
598
615
  btn: !0,
599
- disabled: !v.enable,
616
+ disabled: !C.enable,
600
617
  "f-rt-btn": !0,
601
- "btn-icontext": !!(v.icon && v.icon.trim())
618
+ "btn-icontext": !!(C.icon && C.icon.trim())
602
619
  };
603
- if (v.class) {
604
- const c = v.class.split(" ");
605
- c && c.length && c.reduce((d, i) => (d[i] = !0, d), l);
620
+ if (C.class) {
621
+ const i = C.class.split(" ");
622
+ i && i.length && i.reduce((f, c) => (f[c] = !0, f), l);
606
623
  }
607
624
  return l;
608
625
  }
609
- function k(v, l) {
610
- v.stopPropagation();
611
- const c = l.expanded;
612
- document.body.click(), l.expanded = !c;
626
+ function D(C, l) {
627
+ C.stopPropagation();
628
+ const i = l.expanded;
629
+ document.body.click(), l.expanded = !i;
613
630
  }
614
- function D(v) {
631
+ function I(C) {
615
632
  return w("div", {
616
- id: v.id,
617
- class: y(v)
633
+ id: C.id,
634
+ class: v(C)
618
635
  }, [w("div", {
619
- class: C(v),
636
+ class: h(C),
620
637
  style: "display: flex;padding-right: 0.1rem;border-top-right-radius: 6px;border-bottom-right-radius: 6px",
621
- onClick: (l) => v.enable && k(l, v)
622
- }, [e.shouldShowIcon(v) && w("i", {
623
- class: e.iconClass(v)
624
- }, null), w("span", null, [v.text]), w("i", {
638
+ onClick: (l) => C.enable && D(l, C)
639
+ }, [e.shouldShowIcon(C) && w("i", {
640
+ class: e.iconClass(C)
641
+ }, null), w("span", null, [C.text]), w("i", {
625
642
  class: "f-icon f-icon-arrow-chevron-down",
626
643
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
627
- }, null)]), p(v)]);
644
+ }, null)]), p(C)]);
628
645
  }
629
646
  function g() {
630
- f();
647
+ u();
631
648
  }
632
649
  return {
633
- renderToolbarDropdown: D,
650
+ renderToolbarDropdown: I,
634
651
  clearAllDropDown: g
635
652
  };
636
653
  }
637
654
  const {
638
- buildResponseToolbarItems: pe
639
- } = ge(), J = /* @__PURE__ */ Q({
655
+ buildResponseToolbarItems: de
656
+ } = he(), Q = /* @__PURE__ */ X({
640
657
  name: "FResponseToolbar",
641
- props: re,
658
+ props: ie,
642
659
  emits: ["click"],
643
660
  setup(s, e) {
644
- const o = S(pe(s.items)), p = S(), f = S(), y = S(), C = S(s.alignment), k = {
661
+ const o = S(de(s.items)), p = S(), u = S(), v = S(), h = S(s.alignment), D = {
645
662
  id: "__more_buttons__",
646
663
  text: "更多"
647
- }, D = S(new G(k)), g = xe(), v = W(() => D.value.children.length > 0), l = W(() => {
648
- const b = {
649
- "f-toolbar": !0,
650
- "f-response-toolbar": !0,
651
- "position-relative": !0
652
- };
653
- if (s.customClass) {
654
- const I = s.customClass.split(" ");
655
- I && I.length && I.reduce((E, a) => (E[a] = !0, E), b);
656
- }
657
- return b;
658
- }), c = W(() => ({
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(() => ({
659
669
  "d-flex": !0,
660
670
  "flex-nowrap": !0,
661
- "justify-content-end": C.value === "right",
662
- "justify-content-start": C.value === "left"
671
+ "justify-content-end": h.value === "right",
672
+ "justify-content-start": h.value === "left"
663
673
  })), {
664
- renderToolbarDropdown: d,
665
- clearAllDropDown: i
666
- } = lt(s, g);
667
- function m() {
668
- o.value.filter((b) => b.children && b.children.length > 0).forEach((b) => {
669
- b.expanded = !1;
670
- }), D.value.expanded = !1, i();
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();
671
681
  }
672
- function h(b) {
673
- const I = {
682
+ function y(m) {
683
+ const R = {
674
684
  btn: !0,
675
685
  "f-rt-btn": !0,
676
- "f-btn-ml": C.value === "right",
677
- "f-btn-mr": C.value === "left",
678
- "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())
679
689
  };
680
- if (b.class) {
681
- const E = b.class.split(" ");
682
- E && E.length && E.reduce((a, n) => (a[n] = !0, a), I);
690
+ if (m.class) {
691
+ const A = m.class.split(" ");
692
+ A && A.length && A.reduce((a, n) => (a[n] = !0, a), R);
683
693
  }
684
- return I;
694
+ return R;
685
695
  }
686
- function T(b, I) {
687
- document.body.click(), I.onClick(b, I.id), e.emit("click", b, I.id);
696
+ function T(m, R) {
697
+ document.body.click(), R.onClick(m, R.id), e.emit("click", m, R.id);
688
698
  }
689
- function O(b) {
699
+ function O(m) {
690
700
  return w("button", {
691
701
  type: "button",
692
- class: h(b),
693
- id: b.id,
694
- disabled: !b.enable,
695
- onClick: (I) => T(I, b)
696
- }, [g.shouldShowIcon(b) && w("i", {
697
- class: g.iconClass(b)
698
- }, 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]);
699
709
  }
700
- const P = /* @__PURE__ */ new Map(), B = [];
701
- function N(b) {
702
- const I = y.value;
703
- let E = b;
704
- const a = Array.from(I.children), n = a[a.length - 1].id === "__more_buttons__" ? a[a.length - 1] : null;
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;
705
715
  if (n) {
706
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);
707
- E -= F;
717
+ A -= F;
708
718
  }
709
719
  const t = a.filter((x) => x.id !== "__more_buttons__");
710
720
  for (const x of t) {
711
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);
712
- E < _ ? (P.set(x.id, !0), B.push({
722
+ A < _ ? (P.set(x.id, !0), k.push({
713
723
  id: x.id,
714
724
  width: _
715
- })) : E -= _;
725
+ })) : A -= _;
716
726
  }
717
- if (B.length)
718
- for (let x = B.length - 1; x >= 0; x--) {
719
- const M = B[x].width;
720
- if (E >= M)
721
- E -= M, P.delete(B[x].id), B.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();
722
732
  else
723
733
  break;
724
734
  }
725
- const r = Object.assign({}, D.value);
735
+ const r = Object.assign({}, I.value);
726
736
  r.children = [];
727
- const u = new G(r), R = o.value.reduce((x, M) => (P.has(M.id) && u.children.push(M), M.visible = !P.has(M.id), x.push(M), x), []);
728
- D.value = u, o.value = R;
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;
729
739
  }
730
- const j = new ResizeObserver((b) => {
731
- if (b.length) {
732
- const E = b[0].contentRect.width, n = y.value.getBoundingClientRect().width;
733
- (E < n || B.length) && (N(E), m());
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());
734
744
  }
735
745
  });
736
746
  return z(() => {
737
- const b = f.value;
738
- j.observe(b), document.body.addEventListener("click", m), document.body.addEventListener("wheel", m);
739
- }), te(() => {
740
- j.disconnect(), document.body.removeEventListener("click", m), document.body.removeEventListener("wheel", m);
747
+ const m = u.value;
748
+ j.observe(m), document.body.addEventListener("click", b), document.body.addEventListener("wheel", b);
749
+ }), ne(() => {
750
+ j.disconnect(), document.body.removeEventListener("click", b), document.body.removeEventListener("wheel", b);
741
751
  }), H(() => s.items, () => {
742
- o.value = pe(s.items);
752
+ o.value = de(s.items);
743
753
  }, {
744
754
  deep: !0
745
755
  }), e.expose({
@@ -748,40 +758,40 @@ const {
748
758
  class: l.value,
749
759
  ref: p
750
760
  }, [w("div", {
751
- ref: f,
752
- class: c.value
761
+ ref: u,
762
+ class: i.value
753
763
  }, [w("div", {
754
- ref: y,
764
+ ref: v,
755
765
  class: "d-inline-block f-response-content",
756
766
  style: "white-space: nowrap;"
757
- }, [o.value.filter((b) => b.visible).map((b) => b.children && b.children.length > 0 ? d(b) : O(b)), v.value && d(D.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)])])]);
758
768
  }
759
769
  });
760
- function pt(s, e) {
770
+ function gt(s, e) {
761
771
  const o = L("design-item-context"), p = L("toolbar-item-handler", () => {
762
772
  });
763
- function f() {
773
+ function u() {
764
774
  p && p();
765
775
  }
766
- function y(n) {
776
+ function v(n) {
767
777
  const t = {
768
778
  "dropdown-menu": !0
769
779
  };
770
780
  if (n.class) {
771
781
  const r = n.menuClass.split(" ");
772
- r && r.length && r.reduce((u, R) => (u[R] = !0, u), t);
782
+ r && r.length && r.reduce((d, E) => (d[E] = !0, d), t);
773
783
  }
774
784
  return t;
775
785
  }
776
- function C(n) {
786
+ function h(n) {
777
787
  const t = {
778
788
  disabled: !n.enable,
779
789
  "dropdown-submenu": !0,
780
790
  "f-rt-dropdown": !0
781
791
  }, r = n.dropdownClass.split(" ");
782
- return r && r.length && r.reduce((u, R) => (u[R] = !0, u), t), t;
792
+ return r && r.length && r.reduce((d, E) => (d[E] = !0, d), t), t;
783
793
  }
784
- function k(n) {
794
+ function D(n) {
785
795
  const t = {
786
796
  disabled: !n.enable,
787
797
  "dropdown-item": !0,
@@ -789,31 +799,31 @@ function pt(s, e) {
789
799
  "position-relative": !0,
790
800
  "farris-component": !0
791
801
  }, r = n.class.split(" ");
792
- return r && r.length && r.reduce((u, R) => (u[R] = !0, u), t), t;
802
+ return r && r.length && r.reduce((d, E) => (d[E] = !0, d), t), t;
793
803
  }
794
- let D;
804
+ let I;
795
805
  const g = /* @__PURE__ */ new Map();
796
- function v(n, t, r) {
797
- var R;
798
- ((R = n.target) == null ? void 0 : R.id) === t.id && n.stopPropagation();
799
- const u = r ? r.id : "__top_item__";
800
- if (t.children && t.children.length && (t.expanded = !t.expanded, t.expanded ? g.set(u, t) : g.delete(u)), g.has(u) && g.get(u) !== t) {
801
- const x = g.get(u);
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);
802
812
  x && (x.expanded = !1);
803
813
  }
804
814
  }
805
815
  function l(n) {
806
816
  n && (n.stopPropagation(), n.preventDefault());
807
817
  }
808
- function c() {
818
+ function i() {
809
819
  Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((t) => t.classList.remove("dgComponentFocused"));
810
820
  const n = document.getElementsByClassName("dgComponentSelected");
811
821
  Array.from(n).forEach((t) => t.classList.remove("dgComponentSelected"));
812
822
  }
813
- function d(n) {
823
+ function f(n) {
814
824
  n.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
815
825
  }
816
- function i(n) {
826
+ function c(n) {
817
827
  const {
818
828
  buttons: t = []
819
829
  } = o.schema;
@@ -821,35 +831,35 @@ function pt(s, e) {
821
831
  t.forEach((x) => {
822
832
  r = r.concat(x.children || []);
823
833
  });
824
- const u = r.findIndex((x) => x.id === n), R = u === -1 ? null : r[u];
834
+ const d = r.findIndex((x) => x.id === n), E = d === -1 ? null : r[d];
825
835
  return {
826
- index: u,
827
- item: R
836
+ index: d,
837
+ item: E
828
838
  };
829
839
  }
830
- function m(n) {
840
+ function b(n) {
831
841
  const {
832
842
  buttons: t = []
833
- } = o.schema, r = t.findIndex((R) => R.id === n), u = r === -1 ? null : t[r];
843
+ } = o.schema, r = t.findIndex((E) => E.id === n), d = r === -1 ? null : t[r];
834
844
  return {
835
845
  index: r,
836
- item: u
846
+ item: d
837
847
  };
838
848
  }
839
- function h(n) {
840
- var u;
849
+ function y(n) {
850
+ var d;
841
851
  o.schema;
842
852
  const {
843
853
  index: t,
844
854
  item: r
845
- } = i(n);
846
- (u = o == null ? void 0 : o.setupContext) == null || u.emit("selectionChange", r == null ? void 0 : r.type, r);
855
+ } = c(n);
856
+ (d = o == null ? void 0 : o.setupContext) == null || d.emit("selectionChange", r == null ? void 0 : r.type, r);
847
857
  }
848
858
  const T = function(n) {
849
859
  const {
850
860
  componentType: t
851
- } = n, r = q(t, n), u = t.toLowerCase().replace("-", "_");
852
- return r && !r.id && r.type === t && (r.id = `${u}_${Math.random().toString().slice(2, 6)}`), r;
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;
853
863
  }, O = function() {
854
864
  const n = {
855
865
  componentType: "response-toolbar-item",
@@ -859,60 +869,60 @@ function pt(s, e) {
859
869
  return T(n);
860
870
  };
861
871
  function P(n, t) {
862
- l(n), c(), d(n), h(t.id);
872
+ l(n), i(), f(n), y(t.id);
863
873
  }
864
- function B(n, t, r) {
874
+ function k(n, t, r) {
865
875
  l(n);
866
- const u = t.id, R = r && r.id, {
876
+ const d = t.id, E = r && r.id, {
867
877
  buttons: x = []
868
878
  } = o.schema;
869
- if (!R)
879
+ if (!E)
870
880
  return;
871
881
  const {
872
882
  index: M
873
- } = m(R);
883
+ } = b(E);
874
884
  if (M === -1)
875
885
  return;
876
886
  const {
877
887
  index: F
878
- } = i(u);
879
- F !== -1 && (x[M].children.splice(F, 1), f());
888
+ } = c(d);
889
+ F !== -1 && (x[M].children.splice(F, 1), u());
880
890
  }
881
891
  function N(n, t, r) {
882
892
  l(n);
883
- const u = r && r.id, {
884
- buttons: R = []
893
+ const d = r && r.id, {
894
+ buttons: E = []
885
895
  } = o.schema;
886
- if (!u)
896
+ if (!d)
887
897
  return;
888
898
  const {
889
899
  index: x
890
- } = m(u);
900
+ } = b(d);
891
901
  if (x === -1)
892
902
  return;
893
903
  const M = O(), F = Object.assign({}, M, {
894
904
  text: t.text
895
905
  });
896
- R[x].children.push(F), f();
906
+ E[x].children.push(F), u();
897
907
  }
898
908
  function j(n, t, r) {
899
909
  l(n);
900
- const u = r && r.id, {
901
- buttons: R = []
910
+ const d = r && r.id, {
911
+ buttons: E = []
902
912
  } = o.schema;
903
- if (!u)
913
+ if (!d)
904
914
  return;
905
915
  const {
906
916
  index: x
907
- } = m(u);
917
+ } = b(d);
908
918
  if (x === -1)
909
919
  return;
910
920
  const M = O(), F = Object.assign({}, M, {
911
921
  text: "按钮"
912
922
  });
913
- R[x].children.push(F), f();
923
+ E[x].children.push(F), u();
914
924
  }
915
- function b(n, t) {
925
+ function m(n, t) {
916
926
  return w("div", {
917
927
  class: "component-btn-group"
918
928
  }, [w("div", null, [w("div", {
@@ -921,7 +931,7 @@ function pt(s, e) {
921
931
  title: "删除",
922
932
  ref: "removeButton",
923
933
  style: "position:static;",
924
- onClick: (r) => B(r, n, t)
934
+ onClick: (r) => k(r, n, t)
925
935
  }, [w("i", {
926
936
  class: "f-icon f-icon-yxs_delete"
927
937
  }, null)]), w("div", {
@@ -944,36 +954,36 @@ function pt(s, e) {
944
954
  class: "f-icon f-icon-plus-circle text-white mr-1"
945
955
  }, null), w("span", {
946
956
  style: "font-size:13px;margin:auto"
947
- }, [ue("新增同级")])])])]);
957
+ }, [fe("新增同级")])])])]);
948
958
  }
949
- function I(n) {
959
+ function R(n) {
950
960
  return n.children.map((t) => t.children && t.children.length ? w("li", {
951
- class: C(t),
961
+ class: h(t),
952
962
  id: t.id,
953
- onClick: (r) => t.enable && v(r, t, n)
963
+ onClick: (r) => t.enable && C(r, t, n)
954
964
  }, [w("span", {
955
965
  id: t.id,
956
- class: k(t),
957
- onMouseover: (r) => t.enable && v(r, t, n)
966
+ class: D(t),
967
+ onMouseover: (r) => t.enable && C(r, t, n)
958
968
  }, [t.text, w("i", {
959
969
  class: "f-icon f-icon-arrow-chevron-right",
960
970
  style: "display: inline-block;float: right;line-height: 1.25rem;"
961
- }, null)]), D(t, t)]) : w("li", {
962
- class: k(t),
971
+ }, null)]), I(t, t)]) : w("li", {
972
+ class: D(t),
963
973
  id: t.id,
964
974
  onClick: (r) => P(r, t)
965
- }, [b(t, n), s.shouldShowIcon(t) && w("i", {
975
+ }, [m(t, n), s.shouldShowIcon(t) && w("i", {
966
976
  class: s.iconClass(t)
967
977
  }, null), t.text]));
968
978
  }
969
- function E(n, t, r) {
970
- const u = {
979
+ function A(n, t, r) {
980
+ const d = {
971
981
  display: n.expanded ? "block" : "none",
972
982
  position: "fixed",
973
983
  maxWidth: "300px",
974
984
  width: "auto",
975
985
  minWidth: "120px"
976
- }, R = document.getElementsByTagName("body")[0].getClientRects()[0].width, x = t, M = x == null ? void 0 : x.getClientRects();
986
+ }, E = document.getElementsByTagName("body")[0].getClientRects()[0].width, x = t, M = x == null ? void 0 : x.getClientRects();
977
987
  if (x && M && M.length) {
978
988
  const {
979
989
  top: F,
@@ -981,30 +991,30 @@ function pt(s, e) {
981
991
  left: $,
982
992
  right: V,
983
993
  height: U
984
- } = M[0], X = Math.ceil(U + F);
985
- u.top = `${X}px`, u.left = `${$}px`;
986
- const De = n.id + "_menu", Y = t ? t.querySelector("#" + De) : null;
987
- if (Y) {
988
- u.display === "block" && (Y.style.display = "block");
989
- const ae = Y.getBoundingClientRect();
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();
990
1000
  if (r) {
991
- u.top = `${F - 6}px`;
992
- const Ie = Math.ceil(_ + $);
993
- u.left = `${Ie}px`;
1001
+ d.top = `${F - 6}px`;
1002
+ const De = Math.ceil(_ + $);
1003
+ d.left = `${De}px`;
994
1004
  }
995
- R - $ - _ < ae.width && (u.left = `${(r ? $ : V) - ae.width}px`);
1005
+ E - $ - _ < le.width && (d.left = `${(r ? $ : V) - le.width}px`);
996
1006
  }
997
1007
  }
998
- return u;
1008
+ return d;
999
1009
  }
1000
- D = function(n, t) {
1010
+ I = function(n, t) {
1001
1011
  var x, M;
1002
- const r = de(), u = t ? t.id : n.id, R = (M = (x = r == null ? void 0 : r.exposed) == null ? void 0 : x.elementRef.value) == null ? void 0 : M.querySelector("#" + u);
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);
1003
1013
  return w("ul", {
1004
- class: y(n),
1005
- style: E(n, R, t),
1014
+ class: v(n),
1015
+ style: A(n, E, t),
1006
1016
  id: n.id + "_menu"
1007
- }, [I(n)]);
1017
+ }, [R(n)]);
1008
1018
  };
1009
1019
  function a() {
1010
1020
  g.forEach((n) => {
@@ -1012,18 +1022,18 @@ function pt(s, e) {
1012
1022
  }), g.clear();
1013
1023
  }
1014
1024
  return {
1015
- renderDropdownMenu: D,
1025
+ renderDropdownMenu: I,
1016
1026
  clearAllDropDownMenu: a
1017
1027
  };
1018
1028
  }
1019
- function dt(s, e, o) {
1029
+ function mt(s, e, o) {
1020
1030
  const p = S(s.alignment), {
1021
- renderDropdownMenu: f,
1022
- clearAllDropDownMenu: y
1023
- } = pt(e, o), C = L("design-item-context"), k = L("toolbar-item-handler", () => {
1031
+ renderDropdownMenu: u,
1032
+ clearAllDropDownMenu: v
1033
+ } = gt(e, o), h = L("design-item-context"), D = L("toolbar-item-handler", () => {
1024
1034
  });
1025
- function D() {
1026
- k && k();
1035
+ function I() {
1036
+ D && D();
1027
1037
  }
1028
1038
  function g(a) {
1029
1039
  const n = {
@@ -1032,9 +1042,9 @@ function dt(s, e, o) {
1032
1042
  "f-btn-ml": p.value === "right",
1033
1043
  "f-btn-mr": p.value === "left"
1034
1044
  }, t = a.dropdownClass.split(" ");
1035
- return t && t.length && t.reduce((r, u) => (r[u] = !0, r), n), n;
1045
+ return t && t.length && t.reduce((r, d) => (r[d] = !0, r), n), n;
1036
1046
  }
1037
- function v(a) {
1047
+ function C(a) {
1038
1048
  const n = {
1039
1049
  btn: !0,
1040
1050
  disabled: !a.enable,
@@ -1045,66 +1055,66 @@ function dt(s, e, o) {
1045
1055
  };
1046
1056
  if (a.class) {
1047
1057
  const t = a.class.split(" ");
1048
- t && t.length && t.reduce((r, u) => (r[u] = !0, r), n);
1058
+ t && t.length && t.reduce((r, d) => (r[d] = !0, r), n);
1049
1059
  }
1050
1060
  return n;
1051
1061
  }
1052
1062
  function l(a) {
1053
1063
  a && (a.stopPropagation(), a.preventDefault());
1054
1064
  }
1055
- function c(a, n) {
1065
+ function i(a, n) {
1056
1066
  l(a);
1057
1067
  const t = n.expanded;
1058
1068
  document.body.click(), n.expanded = !t;
1059
1069
  }
1060
- const d = function(a) {
1070
+ const f = function(a) {
1061
1071
  const {
1062
1072
  componentType: n
1063
1073
  } = a, t = q(n, a), r = n.toLowerCase().replace("-", "_");
1064
1074
  return t && !t.id && t.type === n && (t.id = `${r}_${Math.random().toString().slice(2, 6)}`), t;
1065
- }, i = function() {
1075
+ }, c = function() {
1066
1076
  const a = {
1067
1077
  componentType: "response-toolbar-item",
1068
1078
  parentComponentInstance: o.value,
1069
1079
  targetPosition: -1
1070
1080
  };
1071
- return d(a);
1081
+ return f(a);
1072
1082
  };
1073
- function m(a) {
1074
- const n = C.schema.buttons || C.schema.contents, t = n == null ? void 0 : n.findIndex((u) => u.id === a), r = t === -1 ? null : n[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];
1075
1085
  return {
1076
1086
  index: t,
1077
1087
  toolbarItem: r
1078
1088
  };
1079
1089
  }
1080
- function h(a, n) {
1090
+ function y(a, n) {
1081
1091
  var M;
1082
1092
  const {
1083
1093
  index: t,
1084
1094
  toolbarItem: r
1085
- } = m(n);
1095
+ } = b(n);
1086
1096
  if (t === -1)
1087
1097
  return;
1088
- const u = r.text || "按钮", R = i(), x = Object.assign({}, R, {
1089
- text: u
1098
+ const d = r.text || "按钮", E = c(), x = Object.assign({}, E, {
1099
+ text: d
1090
1100
  });
1091
- (M = C.schema.buttons) == null || M.push(x), D();
1101
+ (M = h.schema.buttons) == null || M.push(x), I();
1092
1102
  }
1093
1103
  function T(a, n) {
1094
1104
  const {
1095
1105
  index: t,
1096
1106
  toolbarItem: r
1097
- } = m(n);
1107
+ } = b(n);
1098
1108
  if (t === -1)
1099
1109
  return;
1100
- const u = r.text || "按钮", R = i(), x = Object.assign({}, R, {
1101
- text: u
1102
- }), M = C.schema.buttons[t].children || [];
1103
- M.push(x), C.schema.buttons[t].children = M, D();
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();
1104
1114
  }
1105
1115
  function O(a, n) {
1106
- const t = C.schema.buttons || C.schema.contents, r = t == null ? void 0 : t.findIndex((u) => u.id === n);
1107
- r !== -1 && (t.splice(r, 1), D());
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());
1108
1118
  }
1109
1119
  function P(a) {
1110
1120
  return w("div", {
@@ -1124,7 +1134,7 @@ function dt(s, e, o) {
1124
1134
  title: "复制",
1125
1135
  ref: "copyButton",
1126
1136
  style: "position:static;",
1127
- onClick: (n) => h(n, a)
1137
+ onClick: (n) => y(n, a)
1128
1138
  }, [w("i", {
1129
1139
  class: "f-icon f-icon-yxs_copy"
1130
1140
  }, null)]), w("div", {
@@ -1138,9 +1148,9 @@ function dt(s, e, o) {
1138
1148
  class: "f-icon f-icon-plus-circle text-white mr-1"
1139
1149
  }, null), w("span", {
1140
1150
  style: "font-size:13px;margin:auto"
1141
- }, [ue("新增子级")])])])]);
1151
+ }, [fe("新增子级")])])])]);
1142
1152
  }
1143
- function B() {
1153
+ function k() {
1144
1154
  Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((n) => n.classList.remove("dgComponentFocused"));
1145
1155
  const a = document.getElementsByClassName("dgComponentSelected");
1146
1156
  Array.from(a).forEach((n) => n.classList.remove("dgComponentSelected"));
@@ -1149,51 +1159,51 @@ function dt(s, e, o) {
1149
1159
  a.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1150
1160
  }
1151
1161
  function j(a) {
1152
- var u;
1153
- const n = C.schema.buttons || C.schema.contents, t = n == null ? void 0 : n.findIndex((R) => R.id === a);
1162
+ var d;
1163
+ const n = h.schema.buttons || h.schema.contents, t = n == null ? void 0 : n.findIndex((E) => E.id === a);
1154
1164
  if (t === -1)
1155
1165
  return;
1156
1166
  const r = n[t];
1157
- (u = C == null ? void 0 : C.setupContext) == null || u.emit("selectionChange", "response-toolbar-item", r);
1167
+ (d = h == null ? void 0 : h.setupContext) == null || d.emit("selectionChange", "response-toolbar-item", r);
1158
1168
  }
1159
- function b(a, n) {
1160
- l(a), B(), N(a), l(a), c(a, n), j(n.id);
1169
+ function m(a, n) {
1170
+ l(a), k(), N(a), l(a), i(a, n), j(n.id);
1161
1171
  }
1162
- function I(a) {
1172
+ function R(a) {
1163
1173
  return w("div", {
1164
1174
  id: a.id,
1165
1175
  class: g(a)
1166
1176
  }, [w("div", {
1167
- class: v(a),
1177
+ class: C(a),
1168
1178
  style: "display: flex;padding-right: 0.1rem;",
1169
- onClick: (n) => a.enable && b(n, a)
1179
+ onClick: (n) => a.enable && m(n, a)
1170
1180
  }, [P(a.id), e.shouldShowIcon(a) && w("i", {
1171
1181
  class: e.iconClass(a)
1172
1182
  }, null), w("span", null, [a.text]), w("i", {
1173
1183
  class: "f-icon f-icon-arrow-chevron-down",
1174
1184
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1175
- }, null)]), f(a)]);
1185
+ }, null)]), u(a)]);
1176
1186
  }
1177
- function E() {
1178
- y();
1187
+ function A() {
1188
+ v();
1179
1189
  }
1180
1190
  return {
1181
- renderToolbarDropdown: I,
1182
- clearAllDropDown: E
1191
+ renderToolbarDropdown: R,
1192
+ clearAllDropDown: A
1183
1193
  };
1184
1194
  }
1185
- function ut() {
1195
+ function ht() {
1186
1196
  function s(e) {
1187
- var f, y;
1197
+ var u, v;
1188
1198
  if (!e)
1189
1199
  return !1;
1190
- const o = ((f = e.targetContainer) == null ? void 0 : f.componentInstance) && e.targetContainer.componentInstance.value;
1200
+ const o = ((u = e.targetContainer) == null ? void 0 : u.componentInstance) && e.targetContainer.componentInstance.value;
1191
1201
  if (!o)
1192
1202
  return !1;
1193
- const p = (y = o.schema.appearance) == null ? void 0 : y.class;
1203
+ const p = (v = o.schema.appearance) == null ? void 0 : v.class;
1194
1204
  if (e.controlCategory === "input" || e.controlType === "form-group") {
1195
- const C = o.schema.type, k = (C === "response-form" || C === "content-container") && p && p.includes("farris-form");
1196
- if (o.schema.type !== "response-layout-item" && !k)
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)
1197
1207
  return !1;
1198
1208
  }
1199
1209
  return e.controlType !== "field-set";
@@ -1202,7 +1212,7 @@ function ut() {
1202
1212
  basalDragulaRuleForContainer: s
1203
1213
  };
1204
1214
  }
1205
- const ft = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-design.gitee.io/dragging-rules.schema.json", gt = "Dragging Rules", ht = "The rules of designer canvas", bt = "object", yt = {
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 = {
1206
1216
  "f-page": {
1207
1217
  description: "The root class of page designed by farris.",
1208
1218
  type: "object",
@@ -1621,6 +1631,80 @@ const ft = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
1621
1631
  "f-list-nav-left": {
1622
1632
  description: "",
1623
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
+ }
1624
1708
  }
1625
1709
  }
1626
1710
  }
@@ -1766,119 +1850,118 @@ const ft = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
1766
1850
  description: "",
1767
1851
  type: "object"
1768
1852
  }
1769
- }, vt = [], Ct = {
1770
- $schema: ft,
1771
- $id: mt,
1772
- title: gt,
1773
- description: ht,
1774
- type: bt,
1775
- properties: yt,
1776
- required: vt
1777
- }, Z = /* @__PURE__ */ new Map();
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();
1778
1861
  function Te() {
1779
- function s(i, m, h, T) {
1862
+ function s(c, b, y, T) {
1780
1863
  var O;
1781
- if (typeof h == "number")
1782
- return ((O = T[i]) == null ? void 0 : O.length) === h;
1783
- if (typeof h == "object") {
1784
- const P = Object.keys(h)[0], B = 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];
1785
1868
  if (P === "not")
1786
- return Number(T[i].length) !== Number(B);
1869
+ return Number(T[c].length) !== Number(k);
1787
1870
  if (P === "moreThan")
1788
- return Number(T[i].length) >= Number(B);
1871
+ return Number(T[c].length) >= Number(k);
1789
1872
  if (P === "lessThan")
1790
- return Number(T[i].length) <= Number(B);
1873
+ return Number(T[c].length) <= Number(k);
1791
1874
  }
1792
1875
  return !1;
1793
1876
  }
1794
- function e(i, m, h, T) {
1795
- return typeof h == "boolean" ? T.childrenClassList.includes(m) === !!h : !1;
1877
+ function e(c, b, y, T) {
1878
+ return typeof y == "boolean" ? T.childrenClassList.includes(b) === !!y : !1;
1796
1879
  }
1797
- function o(i, m, h, T) {
1798
- return typeof h == "boolean" ? T.parentClassList.includes(m) === !!h : !1;
1880
+ function o(c, b, y, T) {
1881
+ return typeof y == "boolean" ? T.parentClassList.includes(b) === !!y : !1;
1799
1882
  }
1800
- function p(i, m, h, T) {
1801
- return typeof h == "boolean" ? T.parentClassList.includes(m) === !!h : !1;
1883
+ function p(c, b, y, T) {
1884
+ return typeof y == "boolean" ? T.parentClassList.includes(b) === !!y : !1;
1802
1885
  }
1803
- const f = /* @__PURE__ */ new Map([
1886
+ const u = /* @__PURE__ */ new Map([
1804
1887
  ["length", s],
1805
1888
  ["hasChildren", e],
1806
1889
  ["hasSibling", p],
1807
1890
  ["hasParent", o]
1808
1891
  ]);
1809
- function y(i, m) {
1810
- const h = i;
1811
- return typeof m == "number" ? [{ target: h, operator: "length", param: null, value: Number(m) }] : typeof m == "object" ? Object.keys(m).map((T) => {
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) => {
1812
1895
  if (T === "length")
1813
- return { target: h, operator: "length", param: null, value: m[T] };
1814
- const O = T, P = m[T];
1815
- return { target: h, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: O, value: P };
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 };
1816
1899
  }) : [];
1817
1900
  }
1818
- function C(i, m) {
1819
- if (f.has(i.operator)) {
1820
- const h = f.get(i.operator);
1821
- return h && h(i.target, i.param, i.value, m) || !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;
1822
1905
  }
1823
1906
  return !1;
1824
1907
  }
1825
- function k(i, m) {
1826
- return Object.keys(i).reduce((P, B) => {
1827
- const N = y(B, i[B]);
1908
+ function D(c, b) {
1909
+ return Object.keys(c).reduce((P, k) => {
1910
+ const N = v(k, c[k]);
1828
1911
  return P.push(...N), P;
1829
- }, []).reduce((P, B) => P && C(B, m), !0);
1912
+ }, []).reduce((P, k) => P && h(k, b), !0);
1830
1913
  }
1831
- function D(i, m) {
1832
- const h = Object.keys(i), T = h.includes("allOf"), O = h.includes("anyOf"), P = T || O, j = (P ? i[P ? T ? "allOf" : "anyOf" : "allOf"] : [i]).map((I) => k(I, m));
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));
1833
1916
  return T ? !j.includes(!1) : j.includes(!0);
1834
1917
  }
1835
- function g(i, m) {
1836
- const h = i.const;
1837
- return h ? typeof h == "boolean" ? h : typeof h == "object" ? D(h, m) : !1 : !1;
1838
- }
1839
- function v(i) {
1840
- return (m) => {
1841
- const h = { canAccept: !0, fixed: !1, hidePadding: !1 };
1842
- return i && i.properties && Object.keys(i.properties).reduce((T, O) => {
1843
- const P = i.properties[O];
1844
- return T[O] = g(P, m), T;
1845
- }, h), h;
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;
1846
1929
  };
1847
1930
  }
1848
- function l(i, m, h) {
1849
- if (m.type === "object" && m.properties) {
1850
- const { rules: T, contents: O } = m.properties;
1851
- h.set(i, v(T)), O && Object.keys(O.properties).forEach(
1852
- (P) => l(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)
1853
1936
  );
1854
1937
  }
1855
1938
  }
1856
- function c() {
1857
- const { properties: i } = Ct;
1858
- Object.keys(i).forEach((m) => {
1859
- l(m, i[m], Z);
1939
+ function i() {
1940
+ const { properties: c } = Tt;
1941
+ Object.keys(c).forEach((b) => {
1942
+ l(b, c[b], K);
1860
1943
  });
1861
1944
  }
1862
- function d(i, m) {
1863
- const h = { canAccept: !0, fixed: !1, hidePadding: !0 };
1864
- return Z.has(i) ? Z.get(i)(m) : h;
1945
+ function f(c, b) {
1946
+ const y = { canAccept: !0, fixed: !1, hidePadding: !0 };
1947
+ return K.has(c) ? K.get(c)(b) : y;
1865
1948
  }
1866
- return c(), { getRuleValue: d };
1949
+ return i(), { getRuleValue: f };
1867
1950
  }
1868
- class ce {
1951
+ class ae {
1869
1952
  constructor(e, o) {
1870
- A(this, "componentId");
1871
- A(this, "viewModelId");
1872
- A(this, "eventsEditorUtils");
1873
- A(this, "formSchemaUtils");
1874
- A(this, "formMetadataConverter");
1875
- A(this, "designViewModelUtils");
1876
- A(this, "designViewModelField");
1877
- A(this, "controlCreatorUtils");
1878
- A(this, "designerHostService");
1879
- A(this, "schemaService", null);
1880
- A(this, "metadataService", null);
1881
- A(this, "propertyConfig", {
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", {
1882
1965
  type: "object",
1883
1966
  categories: {}
1884
1967
  });
@@ -1894,7 +1977,7 @@ class ce {
1894
1977
  if (o) {
1895
1978
  if (!this.designViewModelField) {
1896
1979
  const p = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1897
- this.designViewModelField = p.fields.find((f) => f.id === o);
1980
+ this.designViewModelField = p.fields.find((u) => u.id === o);
1898
1981
  }
1899
1982
  e.updateOn = this.designViewModelField.updateOn;
1900
1983
  }
@@ -1920,7 +2003,7 @@ class ce {
1920
2003
  type: "combo-list",
1921
2004
  textField: "name",
1922
2005
  valueField: "value",
1923
- data: [{ value: e.type, name: se[e.type].name }]
2006
+ data: [{ value: e.type, name: re[e.type].name }]
1924
2007
  }
1925
2008
  }
1926
2009
  }
@@ -1947,7 +2030,7 @@ class ce {
1947
2030
  };
1948
2031
  }
1949
2032
  }
1950
- class wt extends ce {
2033
+ class jt extends ae {
1951
2034
  constructor(e, o) {
1952
2035
  super(e, o);
1953
2036
  }
@@ -1973,7 +2056,7 @@ class wt extends ce {
1973
2056
  type: "combo-list",
1974
2057
  textField: "value",
1975
2058
  valueField: "key",
1976
- data: [{ key: "response-toolbar", value: se["response-toolbar"].name }]
2059
+ data: [{ key: "response-toolbar", value: re["response-toolbar"].name }]
1977
2060
  }
1978
2061
  }
1979
2062
  }
@@ -2016,52 +2099,52 @@ class wt extends ce {
2016
2099
  };
2017
2100
  }
2018
2101
  }
2019
- function xt(s, e, o, p) {
2020
- const f = Te(), y = S(!1), C = S(!1);
2021
- let k = !0, D = !1, g;
2022
- function v(j) {
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) {
2023
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;
2024
2107
  }
2025
2108
  function l(j) {
2026
- return !ut().basalDragulaRuleForContainer(j) || !k || !v(j), !1;
2109
+ return !ht().basalDragulaRuleForContainer(j) || !D || !C(j), !1;
2027
2110
  }
2028
- function c() {
2029
- y.value = !1, C.value = !1;
2030
- const j = s, b = j.appearance && j.appearance.class || "", I = b.split(" "), E = j.buttons || [], a = E.length ? E[0] : null, n = a && a.appearance ? a.appearance.class : "", t = n ? n.split(" ") : [], r = E.length ? E.reduce(($, V) => {
2031
- const U = V && V.appearance ? V.appearance.class : "", X = U ? U.split(" ") : [];
2032
- return $.push(...X), $;
2033
- }, []) : [], u = o == null ? void 0 : o.schema, R = u && u.appearance && u.appearance.class || "", x = R ? R.split(" ") : [];
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(" ") : [];
2034
2117
  g = {
2035
- componentClass: b,
2036
- componentClassList: I,
2037
- childContents: E,
2118
+ componentClass: m,
2119
+ componentClassList: R,
2120
+ childContents: A,
2038
2121
  firstChildContent: a,
2039
2122
  firstChildClass: n,
2040
2123
  firstChildClassList: t,
2041
- parent: u,
2042
- parentClass: R,
2124
+ parent: d,
2125
+ parentClass: E,
2043
2126
  parentClassList: x,
2044
- children: E,
2127
+ children: A,
2045
2128
  childrenClassList: r
2046
2129
  };
2047
- const { canAccept: M, fixed: F, hidePadding: _ } = f.getRuleValue(I[0], g);
2048
- return k = M, D = _, !0;
2130
+ const { canAccept: M, fixed: F, hidePadding: _ } = u.getRuleValue(R[0], g);
2131
+ return D = M, I = _, !0;
2049
2132
  }
2050
- function d(j) {
2133
+ function f(j) {
2051
2134
  }
2052
- function i() {
2135
+ function c() {
2053
2136
  return s.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
2054
2137
  }
2055
- function m(j, b) {
2056
- return b.text = j.label, b;
2138
+ function b(j, m) {
2139
+ return m.text = j.label, m;
2057
2140
  }
2058
- function h(j, b, I) {
2059
- const E = s;
2060
- if ((E.appearance && E.appearance.class || "").split(" ").includes("f-form-layout")) {
2141
+ function y(j, m, R) {
2142
+ const A = s;
2143
+ if ((A.appearance && A.appearance.class || "").split(" ").includes("f-form-layout")) {
2061
2144
  const t = String(j.innerText), r = q("form-group");
2062
- return r.editor = I, r.label = t, r;
2145
+ return r.editor = R, r.label = t, r;
2063
2146
  }
2064
- return I;
2147
+ return R;
2065
2148
  }
2066
2149
  function T() {
2067
2150
  return !1;
@@ -2072,29 +2155,29 @@ function xt(s, e, o, p) {
2072
2155
  function P() {
2073
2156
  return !0;
2074
2157
  }
2075
- function B() {
2076
- return D;
2158
+ function k() {
2159
+ return I;
2077
2160
  }
2078
2161
  function N(j) {
2079
- return new wt(j, e).getPropertyConfig(s);
2162
+ return new jt(j, e).getPropertyConfig(s);
2080
2163
  }
2081
2164
  return {
2082
2165
  canAccepts: l,
2083
2166
  checkCanAddComponent: P,
2084
2167
  checkCanDeleteComponent: O,
2085
2168
  checkCanMoveComponent: T,
2086
- getStyles: i,
2087
- hideNestedPaddingInDesginerView: B,
2088
- onAcceptNewChildElement: h,
2089
- onAcceptMovedChildElement: d,
2090
- onResolveNewComponentSchema: m,
2091
- resolveComponentContext: c,
2169
+ getStyles: c,
2170
+ hideNestedPaddingInDesginerView: k,
2171
+ onAcceptNewChildElement: y,
2172
+ onAcceptMovedChildElement: f,
2173
+ onResolveNewComponentSchema: b,
2174
+ resolveComponentContext: i,
2092
2175
  getPropsConfig: N,
2093
- triggerBelongedComponentToMoveWhenMoved: y,
2094
- triggerBelongedComponentToDeleteWhenDeleted: C
2176
+ triggerBelongedComponentToMoveWhenMoved: v,
2177
+ triggerBelongedComponentToDeleteWhenDeleted: h
2095
2178
  };
2096
2179
  }
2097
- const Tt = {
2180
+ const Dt = {
2098
2181
  id: { type: String, default: "" },
2099
2182
  componentId: { type: String, default: "" },
2100
2183
  canAdd: { type: Boolean, default: !1 },
@@ -2107,12 +2190,12 @@ const Tt = {
2107
2190
  * 组件值
2108
2191
  */
2109
2192
  modelValue: { type: Object }
2110
- }, K = S(0);
2111
- function jt(s, e) {
2112
- const o = e.getBoundingClientRect(), p = s.getBoundingClientRect(), f = p.top >= o.top, y = p.top <= o.bottom;
2113
- return f && y;
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;
2114
2197
  }
2115
- function Dt(s) {
2198
+ function Rt(s) {
2116
2199
  if (!s)
2117
2200
  return;
2118
2201
  let e;
@@ -2123,151 +2206,151 @@ function Dt(s) {
2123
2206
  return;
2124
2207
  const p = e.querySelector(".component-btn-group");
2125
2208
  if (p) {
2126
- if (!jt(e, s)) {
2209
+ if (!Pt(e, s)) {
2127
2210
  p.style.display = "none";
2128
2211
  return;
2129
2212
  }
2130
2213
  p.style.display = "";
2131
- const y = p.getBoundingClientRect(), C = p.querySelector("div");
2132
- if (C) {
2133
- const k = C.getBoundingClientRect();
2134
- C.style.top = y.top + "px", C.style.left = y.left - k.width + "px";
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";
2135
2218
  }
2136
2219
  }
2137
2220
  }
2138
- function It(s, e, o) {
2221
+ function Et(s, e, o) {
2139
2222
  var N;
2140
2223
  function p() {
2141
2224
  }
2142
- const f = "", y = S();
2143
- function C() {
2225
+ const u = "", v = S();
2226
+ function h() {
2144
2227
  return !0;
2145
2228
  }
2146
- function k() {
2229
+ function D() {
2147
2230
  return !1;
2148
2231
  }
2149
- function D() {
2232
+ function I() {
2150
2233
  return !0;
2151
2234
  }
2152
2235
  function g() {
2153
2236
  return !0;
2154
2237
  }
2155
- function v() {
2238
+ function C() {
2156
2239
  return !0;
2157
2240
  }
2158
2241
  function l(j) {
2159
2242
  if (!j || !j.value)
2160
2243
  return null;
2161
- const b = S(j == null ? void 0 : j.value.parent), I = l(b);
2162
- return I || null;
2244
+ const m = S(j == null ? void 0 : j.value.parent), R = l(m);
2245
+ return R || null;
2163
2246
  }
2164
- function c(j = e) {
2165
- const { componentInstance: b, designerItemElementRef: I } = j;
2166
- return !b || !b.value ? null : b.value.canMove || b.value.canAdd || b.value.canDelete ? I : c(j.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);
2167
2250
  }
2168
- function d(j) {
2251
+ function f(j) {
2169
2252
  return !!o;
2170
2253
  }
2171
- function i() {
2254
+ function c() {
2172
2255
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
2173
2256
  }
2174
- function m() {
2257
+ function b() {
2175
2258
  }
2176
- function h(j, b) {
2259
+ function y(j, m) {
2177
2260
  }
2178
2261
  function T(j) {
2179
- const { componentType: b } = j;
2180
- let I = q(b, j);
2181
- const E = b.toLowerCase().replace("-", "_");
2182
- return I && !I.id && I.type === b && (I.id = `${E}_${Math.random().toString().slice(2, 6)}`), I;
2183
- }
2184
- function O(j, b) {
2185
- const I = String(j.getAttribute("data-controltype")), E = j.getAttribute("data-feature"), a = E ? JSON.parse(E) : {};
2186
- a.parentComponentInstance = y.value;
2187
- let n = q(I, a);
2188
- const t = I.toLowerCase().replace("-", "_");
2189
- return n && !n.id && n.type === I && (n.id = `${t}_${Math.random().toString().slice(2, 6)}`), n;
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;
2266
+ }
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;
2190
2273
  }
2191
2274
  function P(j) {
2192
2275
  }
2193
- function B(...j) {
2276
+ function k(...j) {
2194
2277
  return [];
2195
2278
  }
2196
- return y.value = {
2197
- canMove: C(),
2198
- canSelectParent: k(),
2279
+ return v.value = {
2280
+ canMove: h(),
2281
+ canSelectParent: D(),
2199
2282
  canAdd: g(),
2200
- canDelete: D(),
2201
- canNested: !v(),
2283
+ canDelete: I(),
2284
+ canNested: !C(),
2202
2285
  contents: [],
2203
2286
  elementRef: s,
2204
2287
  parent: (N = e.parent) == null ? void 0 : N.componentInstance,
2205
2288
  schema: e.schema,
2206
- styles: f,
2207
- canAccepts: d,
2289
+ styles: u,
2290
+ canAccepts: f,
2208
2291
  getBelongedComponentInstance: l,
2209
- getDraggableDesignItemElement: c,
2210
- getDraggingDisplayText: i,
2211
- getPropConfig: B,
2212
- getDragScopeElement: m,
2213
- onAcceptMovedChildElement: h,
2292
+ getDraggableDesignItemElement: i,
2293
+ getDraggingDisplayText: c,
2294
+ getPropConfig: k,
2295
+ getDragScopeElement: b,
2296
+ onAcceptMovedChildElement: y,
2214
2297
  onAcceptNewChildElement: O,
2215
2298
  onChildElementMovedOut: P,
2216
2299
  addNewChildComponentSchema: T,
2217
2300
  updateDragAndDropRules: p,
2218
2301
  triggerBelongedComponentToMoveWhenMoved: S(!1),
2219
2302
  triggerBelongedComponentToDeleteWhenDeleted: S(!1)
2220
- }, y;
2303
+ }, v;
2221
2304
  }
2222
- const Pt = /* @__PURE__ */ Q({
2305
+ const St = /* @__PURE__ */ X({
2223
2306
  name: "FDesignerInnerItem",
2224
- props: Tt,
2307
+ props: Dt,
2225
2308
  emits: ["selectionChange", "addComponent", "removeComponent"],
2226
2309
  setup(s, e) {
2227
- const o = S(s.canMove), p = S(s.canAdd), f = S(s.canDelete), y = S(!1), C = S(s.contentKey), k = S(s.childType), D = S(s.childLabel), g = S(s.modelValue), v = S(""), l = S(), c = L("canvas-dragula"), d = S(), i = L("design-item-context"), m = {
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 = {
2228
2311
  designerItemElementRef: l,
2229
- componentInstance: d,
2312
+ componentInstance: f,
2230
2313
  schema: g.value,
2231
- parent: i,
2314
+ parent: c,
2232
2315
  setupContext: e
2233
2316
  };
2234
- Ee("design-item-context", m);
2235
- const h = W(() => ({
2317
+ Ee("design-item-context", b);
2318
+ const y = W(() => ({
2236
2319
  "farris-component": !0,
2237
2320
  // 受position-relative影响,整个容器的高度不能被撑起
2238
2321
  "flex-fill": s.id == "root-component",
2239
- "position-relative": o.value || f.value,
2240
- "farris-nested": y.value,
2322
+ "position-relative": o.value || u.value,
2323
+ "farris-nested": v.value,
2241
2324
  "can-move": o.value,
2242
2325
  "d-none": l.value && l.value.classList.contains("d-none")
2243
2326
  })), T = W(() => {
2244
2327
  const t = {};
2245
- return v.value && v.value.split(";").reduce((r, u) => {
2246
- const [R, x] = u.split(":");
2247
- return R && (r[R] = x), r;
2328
+ return C.value && C.value.split(";").reduce((r, d) => {
2329
+ const [E, x] = d.split(":");
2330
+ return E && (r[E] = x), r;
2248
2331
  }, t), t;
2249
2332
  });
2250
2333
  function O(t, r) {
2251
- if (i && i.schema[C.value]) {
2252
- const u = i.schema[C.value].findIndex((R) => R.id === r.id);
2253
- if (u > -1) {
2254
- const R = i.schema[C.value].length, x = i.schema[C.value][u % R];
2255
- i.designerItemElementRef.value.querySelector(`#${x.id}-design-item`), i.schema[C.value].splice(u, 1), i.componentInstance.value.updateDragAndDropRules(), K.value++, e.emit("removeComponent");
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");
2256
2339
  }
2257
2340
  }
2258
2341
  }
2259
2342
  function P(t) {
2260
- if (d.value.addNewChildComponentSchema) {
2343
+ if (f.value.addNewChildComponentSchema) {
2261
2344
  const r = {
2262
- componentType: k.value,
2263
- label: D.value,
2264
- parentComponentInstance: d.value,
2345
+ componentType: D.value,
2346
+ label: I.value,
2347
+ parentComponentInstance: f.value,
2265
2348
  targetPosition: -1
2266
- }, u = d.value.addNewChildComponentSchema(r);
2267
- g.value[C.value].push(u), e.emit("addComponent");
2349
+ }, d = f.value.addNewChildComponentSchema(r);
2350
+ g.value[h.value].push(d), e.emit("addComponent");
2268
2351
  }
2269
2352
  }
2270
- function B() {
2353
+ function k() {
2271
2354
  return p.value && w("div", {
2272
2355
  role: "button",
2273
2356
  class: "btn component-settings-button",
@@ -2281,7 +2364,7 @@ const Pt = /* @__PURE__ */ Q({
2281
2364
  }, null)]);
2282
2365
  }
2283
2366
  function N(t) {
2284
- return f.value && w("div", {
2367
+ return u.value && w("div", {
2285
2368
  role: "button",
2286
2369
  class: "btn component-settings-button",
2287
2370
  title: "删除",
@@ -2302,59 +2385,59 @@ const Pt = /* @__PURE__ */ Q({
2302
2385
  class: "cmp_move f-icon f-icon-yxs_move"
2303
2386
  }, null)]);
2304
2387
  }
2305
- function b(t) {
2388
+ function m(t) {
2306
2389
  return w("div", {
2307
2390
  class: "component-btn-group",
2308
2391
  "data-noattach": "true"
2309
- }, [w("div", null, [B(), j(), N(t)])]);
2392
+ }, [w("div", null, [k(), j(), N(t)])]);
2310
2393
  }
2311
2394
  H(() => s.modelValue, (t) => {
2312
- g.value = t, m.schema = t;
2395
+ g.value = t, b.schema = t;
2313
2396
  });
2314
- function I(t) {
2397
+ function R(t) {
2315
2398
  const r = t.target;
2316
- Dt(r);
2399
+ Rt(r);
2317
2400
  }
2318
- function E() {
2401
+ function A() {
2319
2402
  var t, r;
2320
- (r = (t = g.value) == null ? void 0 : t.contents) != null && r.length && l.value && l.value.addEventListener("scroll", I);
2403
+ (r = (t = g.value) == null ? void 0 : t.contents) != null && r.length && l.value && l.value.addEventListener("scroll", R);
2321
2404
  }
2322
2405
  function a() {
2323
2406
  const t = l.value, r = S(t.children[1]);
2324
- return It(r, m).value;
2407
+ return Et(r, b).value;
2325
2408
  }
2326
2409
  z(() => {
2327
2410
  if (l.value) {
2328
2411
  const t = l.value.querySelector(`[data-dragref='${g.value.id}-container']`);
2329
- d.value = t && t.componentInstance ? t.componentInstance.value : a(), c && t && c.attachComponents(t, g.value), y.value = d.value.canNested !== void 0 ? d.value.canNested : y.value, p.value = d.value.canAdd !== void 0 ? d.value.canAdd : p.value, f.value = d.value.canDelete !== void 0 ? d.value.canDelete : f.value, o.value = d.value.canMove !== void 0 ? d.value.canMove : o.value, v.value = d.value.styles || "", l.value && (l.value.componentInstance = d, l.value.designItemContext = m);
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);
2330
2413
  }
2331
- E(), K.value++;
2414
+ A(), ee.value++;
2332
2415
  }), Se(() => {
2333
- l.value && l.value.removeEventListener("scroll", I);
2416
+ l.value && l.value.removeEventListener("scroll", R);
2334
2417
  });
2335
2418
  function n(t) {
2336
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((u) => u.classList.remove("dgComponentFocused")), t && (t.preventDefault(), t.stopPropagation());
2419
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((d) => d.classList.remove("dgComponentFocused")), t && (t.preventDefault(), t.stopPropagation());
2337
2420
  const r = l.value;
2338
2421
  if (r) {
2339
- const u = document.getElementsByClassName("dgComponentSelected");
2340
- if (!(u && u.length === 1 && u[0] === l.value)) {
2341
- Array.from(u).forEach((M) => M.classList.remove("dgComponentSelected")), r.classList.add("dgComponentFocused"), e.emit("selectionChange", g.value.type, g.value, s.componentId, d.value);
2342
- const x = d.value.getDraggableDesignItemElement(m);
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);
2343
2426
  x && x.value && x.value.classList.add("dgComponentSelected");
2344
2427
  }
2345
2428
  }
2346
- K.value++;
2429
+ ee.value++;
2347
2430
  }
2348
2431
  return () => w("div", {
2349
2432
  id: `${s.id}-design-item`,
2350
2433
  ref: l,
2351
- class: h.value,
2434
+ class: y.value,
2352
2435
  style: T.value,
2353
2436
  onClick: n
2354
- }, [b(g.value), e.slots.default && e.slots.default()]);
2437
+ }, [m(g.value), e.slots.default && e.slots.default()]);
2355
2438
  }
2356
2439
  });
2357
- class Rt extends ce {
2440
+ class Mt extends ae {
2358
2441
  constructor(e, o) {
2359
2442
  super(e, o);
2360
2443
  }
@@ -2417,28 +2500,28 @@ class Rt extends ce {
2417
2500
  }
2418
2501
  ];
2419
2502
  var p = this;
2420
- const f = p.eventsEditorUtils.formProperties(e, p.viewModelId, o), y = {};
2421
- y[p.viewModelId] = {
2503
+ const u = p.eventsEditorUtils.formProperties(e, p.viewModelId, o), v = {};
2504
+ v[p.viewModelId] = {
2422
2505
  type: "events-editor",
2423
2506
  editor: {
2424
- initialData: f
2507
+ initialData: u
2425
2508
  }
2426
2509
  }, this.propertyConfig.categories.eventsEditor = {
2427
2510
  title: "事件",
2428
2511
  hideTitle: !0,
2429
- properties: y,
2512
+ properties: v,
2430
2513
  // 这个属性,标记当属性变更得时候触发重新更新属性
2431
2514
  refreshPanelAfterChanged: !0,
2432
2515
  tabId: "commands",
2433
2516
  tabName: "交互",
2434
- setPropertyRelates(C, k) {
2435
- const D = C.propertyValue;
2436
- delete e[p.viewModelId], D && (D.setPropertyRelates = this.setPropertyRelates, p.eventsEditorUtils.saveRelatedParameters(e, p.viewModelId, D.events, D));
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));
2437
2520
  }
2438
2521
  };
2439
2522
  }
2440
2523
  }
2441
- class Et extends ce {
2524
+ class kt extends ae {
2442
2525
  constructor(e, o) {
2443
2526
  super(e, o);
2444
2527
  }
@@ -2464,7 +2547,7 @@ class Et extends ce {
2464
2547
  type: "combo-list",
2465
2548
  textField: "value",
2466
2549
  valueField: "key",
2467
- data: [{ key: "response-toolbar-item", value: se["response-toolbar-item"].name }]
2550
+ data: [{ key: "response-toolbar-item", value: re["response-toolbar-item"].name }]
2468
2551
  }
2469
2552
  },
2470
2553
  text: {
@@ -2482,6 +2565,22 @@ class Et extends ce {
2482
2565
  };
2483
2566
  }
2484
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
+ };
2485
2584
  }
2486
2585
  getEventPropConfig(e) {
2487
2586
  const o = [
@@ -2489,89 +2588,89 @@ class Et extends ce {
2489
2588
  label: "click",
2490
2589
  name: "点击事件"
2491
2590
  }
2492
- ], p = this, f = p.eventsEditorUtils.formProperties(e, p.viewModelId, o), y = {};
2493
- y[p.viewModelId] = {
2591
+ ], p = this, u = p.eventsEditorUtils.formProperties(e, p.viewModelId, o), v = {};
2592
+ v[p.viewModelId] = {
2494
2593
  type: "events-editor",
2495
2594
  editor: {
2496
- initialData: f
2595
+ initialData: u
2497
2596
  }
2498
2597
  }, this.propertyConfig.categories.eventsEditor = {
2499
2598
  title: "事件",
2500
2599
  hideTitle: !0,
2501
- properties: y,
2600
+ properties: v,
2502
2601
  // 这个属性,标记当属性变更得时候触发重新更新属性
2503
2602
  refreshPanelAfterChanged: !0,
2504
2603
  tabId: "commands",
2505
2604
  tabName: "交互",
2506
- setPropertyRelates(C, k) {
2507
- const D = C.propertyValue;
2508
- delete e[p.viewModelId], D && (D.setPropertyRelates = this.setPropertyRelates, p.eventsEditorUtils.saveRelatedParameters(e, p.viewModelId, D.events, D));
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));
2509
2608
  }
2510
2609
  };
2511
2610
  }
2512
2611
  }
2513
- function St(s, e) {
2612
+ function At(s, e) {
2514
2613
  Te();
2515
2614
  const o = S(!1), p = S(!1);
2516
- let f = !1, y = !1;
2517
- function C(h) {
2615
+ let u = !1, v = !1;
2616
+ function h(y) {
2518
2617
  return !1;
2519
2618
  }
2520
- function k(h) {
2619
+ function D(y) {
2521
2620
  }
2522
- function D() {
2621
+ function I() {
2523
2622
  return "";
2524
2623
  }
2525
- function g(h, T) {
2526
- return T.text = h.label, T;
2624
+ function g(y, T) {
2625
+ return T.text = y.label, T;
2527
2626
  }
2528
- function v(h, T, O) {
2627
+ function C(y, T, O) {
2529
2628
  const P = s.schema;
2530
2629
  if ((P.appearance && P.appearance.class || "").split(" ").includes("f-form-layout")) {
2531
- const j = String(h.innerText), b = q("form-group");
2532
- return b.editor = O, b.label = j, b;
2630
+ const j = String(y.innerText), m = q("form-group");
2631
+ return m.editor = O, m.label = j, m;
2533
2632
  }
2534
2633
  return O;
2535
2634
  }
2536
2635
  function l() {
2537
2636
  return !1;
2538
2637
  }
2539
- function c() {
2540
- return !y;
2638
+ function i() {
2639
+ return !v;
2541
2640
  }
2542
- function d() {
2641
+ function f() {
2543
2642
  return !1;
2544
2643
  }
2545
- function i() {
2546
- return f;
2644
+ function c() {
2645
+ return u;
2547
2646
  }
2548
- function m(h) {
2647
+ function b(y) {
2549
2648
  let T;
2550
2649
  switch (s.schema.type) {
2551
2650
  case "tab-toolbar-item":
2552
- T = new Rt(h, e);
2651
+ T = new Mt(y, e);
2553
2652
  break;
2554
2653
  default:
2555
- T = new Et(h, e);
2654
+ T = new kt(y, e);
2556
2655
  }
2557
2656
  return T.getPropertyConfig(s.schema);
2558
2657
  }
2559
2658
  return {
2560
- canAccepts: C,
2561
- checkCanAddComponent: d,
2562
- checkCanDeleteComponent: c,
2659
+ canAccepts: h,
2660
+ checkCanAddComponent: f,
2661
+ checkCanDeleteComponent: i,
2563
2662
  checkCanMoveComponent: l,
2564
- getStyles: D,
2565
- hideNestedPaddingInDesginerView: i,
2566
- onAcceptNewChildElement: v,
2567
- onAcceptMovedChildElement: k,
2663
+ getStyles: I,
2664
+ hideNestedPaddingInDesginerView: c,
2665
+ onAcceptNewChildElement: C,
2666
+ onAcceptMovedChildElement: D,
2568
2667
  onResolveNewComponentSchema: g,
2569
- getPropsConfig: m,
2668
+ getPropsConfig: b,
2570
2669
  triggerBelongedComponentToMoveWhenMoved: o,
2571
2670
  triggerBelongedComponentToDeleteWhenDeleted: p
2572
2671
  };
2573
2672
  }
2574
- const je = /* @__PURE__ */ Q({
2673
+ const je = /* @__PURE__ */ X({
2575
2674
  name: "FResponseToolbarItemDesign",
2576
2675
  props: we,
2577
2676
  emits: ["Click"],
@@ -2580,103 +2679,95 @@ const je = /* @__PURE__ */ Q({
2580
2679
  const o = S(s.alignment), p = {
2581
2680
  id: "__more_buttons__",
2582
2681
  text: "More"
2583
- }, f = S(new G(p));
2584
- W(() => f.value.children.length > 0);
2585
- const y = S(), C = L("designer-host-service"), k = L("design-item-context"), D = St(k, C), g = fe(y, k, D);
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);
2586
2685
  L("toolbar-item-handler", () => {
2587
2686
  }), z(() => {
2588
- y.value.componentInstance = g;
2687
+ v.value.componentInstance = g;
2589
2688
  }), e.expose(g.value);
2590
- function v() {
2591
- const d = {
2689
+ function C() {
2690
+ const f = {
2592
2691
  "f-icon": !0
2593
- };
2594
- if (s.icon) {
2595
- const i = s.icon.trim().split(" ");
2596
- i && i.length && i.reduce((m, h) => (m[h] = !0, m), d);
2597
- }
2598
- return d;
2692
+ }, c = s.icon ? s.icon.trim() : "";
2693
+ return J(f, c);
2599
2694
  }
2600
2695
  function l() {
2601
2696
  return !!(s.icon && s.icon.trim());
2602
2697
  }
2603
- function c() {
2604
- const d = {
2698
+ function i() {
2699
+ const f = {
2605
2700
  btn: !0,
2606
2701
  "f-rt-btn": !0,
2607
2702
  "f-btn-ml": o.value === "right",
2608
2703
  "f-btn-mr": o.value === "left",
2609
2704
  "btn-icontext": !!(s.icon && s.icon.trim())
2610
2705
  };
2611
- if (s.class) {
2612
- const i = s.class.split(" ");
2613
- i && i.length && i.reduce((m, h) => (m[h] = !0, m), d);
2614
- }
2615
- return d;
2706
+ return J(f, s.class);
2616
2707
  }
2617
2708
  return z(() => {
2618
- }), te(() => {
2709
+ }), ne(() => {
2619
2710
  }), () => w("div", {
2620
- ref: y,
2621
- "data-dragref": `${k.schema.id}-container`,
2711
+ ref: v,
2712
+ "data-dragref": `${D.schema.id}-container`,
2622
2713
  class: "farris-component position-relative",
2623
2714
  style: "display:inline-block!important;"
2624
2715
  }, [w("button", {
2625
2716
  type: "button",
2626
- class: c(),
2717
+ class: i(),
2627
2718
  id: s.id
2628
2719
  }, [l() && w("i", {
2629
- class: v()
2720
+ class: C()
2630
2721
  }, null), s.text])]);
2631
2722
  }
2632
- }), Mt = /* @__PURE__ */ Q({
2723
+ }), Bt = /* @__PURE__ */ X({
2633
2724
  name: "FResponseToolbarDesign",
2634
- props: it,
2725
+ props: pt,
2635
2726
  emits: ["Click"],
2636
2727
  setup(s, e) {
2637
2728
  const o = S(s.items);
2638
2729
  let p = new Array(o.value.length).fill(S());
2639
- const f = S(), y = S(), C = S(s.alignment), k = {
2730
+ const u = S(), v = S(), h = S(s.alignment), D = {
2640
2731
  id: "__more_buttons__",
2641
2732
  text: "More"
2642
- }, D = S(new G(k)), g = xe();
2643
- W(() => D.value.children.length > 0);
2644
- const v = S(), l = L("designer-host-service"), c = L("design-item-context"), d = xt(c.schema, l, c), i = fe(v, c, d);
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);
2645
2736
  L("toolbar-item-handler", () => {
2646
2737
  }), z(() => {
2647
- v.value.componentInstance = i;
2648
- }), e.expose(i.value);
2649
- const m = W(() => ({
2738
+ C.value.componentInstance = c;
2739
+ }), e.expose(c.value);
2740
+ const b = W(() => J({
2650
2741
  "f-toolbar": !0,
2651
2742
  "f-response-toolbar": !0,
2652
2743
  "position-relative": !0
2653
- })), h = W(() => ({
2744
+ }, s.customClass)), y = W(() => ({
2654
2745
  "d-flex": !0,
2655
2746
  "flex-nowrap": !0,
2656
- "justify-content-end": C.value === "right",
2657
- "justify-content-start": C.value === "left"
2747
+ "justify-content-end": h.value === "right",
2748
+ "justify-content-start": h.value === "left"
2658
2749
  })), {
2659
2750
  renderToolbarDropdown: T,
2660
2751
  clearAllDropDown: O
2661
- } = dt(s, g, i);
2752
+ } = mt(s, g, c);
2662
2753
  function P() {
2663
2754
  o.value.filter((a) => a.children && a.children.length > 0).forEach((a) => {
2664
2755
  a.expanded = !1;
2665
- }), D.value.expanded = !1, O();
2756
+ }), I.value.expanded = !1, O();
2666
2757
  }
2667
- const B = /* @__PURE__ */ new Map(), N = [];
2758
+ const k = /* @__PURE__ */ new Map(), N = [];
2668
2759
  function j(a) {
2669
- const n = y.value;
2760
+ const n = v.value;
2670
2761
  let t = a;
2671
- const r = Array.from(n.children), u = r[r.length - 1].id === "__more_buttons__" ? r[r.length - 1] : null;
2672
- if (u) {
2673
- const _ = u.computedStyleMap().get("margin-left"), $ = u.computedStyleMap().get("margin-right"), V = (_ ? _.value : 0) + u.getBoundingClientRect().width + ($ ? $.value : 0);
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);
2674
2765
  t -= V;
2675
2766
  }
2676
- const R = r.filter((_) => _.id !== "__more_buttons__");
2677
- for (const _ of R) {
2767
+ const E = r.filter((_) => _.id !== "__more_buttons__");
2768
+ for (const _ of E) {
2678
2769
  const $ = _.computedStyleMap().get("margin-left"), V = _.computedStyleMap().get("margin-right"), U = ($ ? $.value : 0) + _.getBoundingClientRect().width + (V ? V.value : 0);
2679
- t < U ? (B.set(_.id, !0), N.push({
2770
+ t < U ? (k.set(_.id, !0), N.push({
2680
2771
  id: _.id,
2681
2772
  width: U
2682
2773
  })) : t -= U;
@@ -2685,26 +2776,26 @@ const je = /* @__PURE__ */ Q({
2685
2776
  for (let _ = N.length - 1; _ >= 0; _--) {
2686
2777
  const $ = N[_].width;
2687
2778
  if (t >= $)
2688
- t -= $, B.delete(N[_].id), N.pop();
2779
+ t -= $, k.delete(N[_].id), N.pop();
2689
2780
  else
2690
2781
  break;
2691
2782
  }
2692
- const x = Object.assign({}, D.value);
2783
+ const x = Object.assign({}, I.value);
2693
2784
  x.children = [];
2694
- const M = new G(x), F = o.value.reduce((_, $) => (B.has($.id) && M.children.push($), $.visible = !B.has($.id), _.push($), _), []);
2695
- D.value = M, o.value = F;
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;
2696
2787
  }
2697
- const b = new ResizeObserver((a) => {
2788
+ const m = new ResizeObserver((a) => {
2698
2789
  if (a.length) {
2699
- const t = a[0].contentRect.width, u = y.value.getBoundingClientRect().width;
2700
- (t < u || N.length) && j(t);
2790
+ const t = a[0].contentRect.width, d = v.value.getBoundingClientRect().width;
2791
+ (t < d || N.length) && j(t);
2701
2792
  }
2702
2793
  });
2703
2794
  z(() => {
2704
- const a = f.value;
2705
- b.observe(a), document.body.addEventListener("click", P);
2706
- }), te(() => {
2707
- b.disconnect(), document.body.removeEventListener("click", P);
2795
+ const a = u.value;
2796
+ m.observe(a), document.body.addEventListener("click", P);
2797
+ }), ne(() => {
2798
+ m.disconnect(), document.body.removeEventListener("click", P);
2708
2799
  }), H(() => s.items, () => {
2709
2800
  o.value = s.items;
2710
2801
  }, {
@@ -2712,25 +2803,25 @@ const je = /* @__PURE__ */ Q({
2712
2803
  }), H(o, (a) => {
2713
2804
  p = new Array(o.value.length).fill(S());
2714
2805
  });
2715
- function I(a, n, t, r) {
2716
- c && c.setupContext && c.setupContext.emit("selectionChange", a, n, t, r);
2806
+ function R(a, n, t, r) {
2807
+ i && i.setupContext && i.setupContext.emit("selectionChange", a, n, t, r);
2717
2808
  }
2718
- function E() {
2719
- const a = y.value.querySelector(".dgComponentFocused.dgComponentSelected");
2809
+ function A() {
2810
+ const a = v.value.querySelector(".dgComponentFocused.dgComponentSelected");
2720
2811
  a == null || a.classList.remove("dgComponentSelected"), a == null || a.classList.remove("dgComponentFocused");
2721
2812
  }
2722
2813
  return () => w("div", {
2723
- ref: v,
2724
- "data-dragref": `${c.schema.id}-container`,
2725
- class: m.value
2814
+ ref: C,
2815
+ "data-dragref": `${i.schema.id}-container`,
2816
+ class: b.value
2726
2817
  }, [w("div", {
2727
- ref: f,
2728
- class: h.value
2818
+ ref: u,
2819
+ class: y.value
2729
2820
  }, [w("div", {
2730
- ref: y,
2821
+ ref: v,
2731
2822
  class: "d-inline-block f-response-content",
2732
2823
  style: "white-space: nowrap;"
2733
- }, [o.value.map((a, n) => w(Pt, {
2824
+ }, [o.value.map((a, n) => w(St, {
2734
2825
  ref: p[n],
2735
2826
  class: "p-0 display-inline-block",
2736
2827
  modelValue: a,
@@ -2742,31 +2833,36 @@ const je = /* @__PURE__ */ Q({
2742
2833
  componentId: s.componentId,
2743
2834
  id: a.id,
2744
2835
  style: "padding:0 !important;display:inline-block",
2745
- onSelectionChange: I,
2746
- onRemoveComponent: E
2836
+ onSelectionChange: R,
2837
+ onRemoveComponent: A
2747
2838
  }, {
2748
- default: () => [w(je, {
2749
- id: a.id,
2750
- disable: a.disable,
2751
- text: a.text,
2752
- icon: a.icon,
2753
- componentId: s.componentId
2754
- }, 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
+ }
2755
2851
  }))])])]);
2756
2852
  }
2757
- }), $t = ie;
2758
- J.register = (s, e, o) => {
2759
- s["response-toolbar"] = J, e["response-toolbar"] = ie;
2853
+ }), Vt = ce;
2854
+ Q.register = (s, e, o) => {
2855
+ s["response-toolbar"] = Q, e["response-toolbar"] = ce;
2760
2856
  };
2761
- J.registerDesigner = (s, e, o) => {
2762
- s["response-toolbar"] = Mt, e["response-toolbar"] = ie, s["response-toolbar-item"] = je, 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;
2763
2859
  };
2764
- const Ft = Be(J);
2860
+ const Wt = Ae(Q);
2765
2861
  export {
2766
- J as FResponseToolbar,
2862
+ Q as FResponseToolbar,
2767
2863
  G as ResponseToolbarDropDownItem,
2768
- Nt as ResponseToolbarGroup,
2769
- Ae as ResponseToolbarItem,
2770
- Ft as default,
2771
- $t as responseToolbarResolver
2864
+ Lt as ResponseToolbarGroup,
2865
+ Be as ResponseToolbarItem,
2866
+ Wt as default,
2867
+ Vt as responseToolbarResolver
2772
2868
  };