@farris/ui-vue 1.6.5-beta.8 → 1.6.6

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 (137) hide show
  1. package/components/avatar/index.esm.js +335 -335
  2. package/components/avatar/index.umd.cjs +1 -1
  3. package/components/button-edit/index.esm.js +6 -6
  4. package/components/button-edit/index.umd.cjs +1 -1
  5. package/components/combo-list/index.esm.js +139 -134
  6. package/components/combo-list/index.umd.cjs +1 -1
  7. package/components/common/index.esm.js +1 -1
  8. package/components/common/index.umd.cjs +1 -1
  9. package/components/component/index.esm.js +300 -300
  10. package/components/component/index.umd.cjs +1 -1
  11. package/components/condition/index.esm.js +7 -6
  12. package/components/condition/index.umd.cjs +1 -1
  13. package/components/content-container/index.esm.js +295 -295
  14. package/components/content-container/index.umd.cjs +1 -1
  15. package/components/data-grid/index.esm.js +99 -99
  16. package/components/data-grid/index.umd.cjs +1 -1
  17. package/components/data-view/index.esm.js +3407 -3338
  18. package/components/data-view/index.umd.cjs +1 -1
  19. package/components/date-picker/index.esm.js +833 -832
  20. package/components/date-picker/index.umd.cjs +1 -1
  21. package/components/designer-canvas/index.esm.js +5 -5
  22. package/components/designer-canvas/index.umd.cjs +1 -1
  23. package/components/dynamic-form/index.esm.js +173 -172
  24. package/components/dynamic-form/index.umd.cjs +1 -1
  25. package/components/events-editor/index.esm.js +637 -637
  26. package/components/events-editor/index.umd.cjs +3 -3
  27. package/components/expression-editor/index.esm.js +737 -732
  28. package/components/expression-editor/index.umd.cjs +4 -4
  29. package/components/filter-bar/index.esm.js +728 -706
  30. package/components/filter-bar/index.umd.cjs +1 -1
  31. package/components/filter-condition-editor/index.esm.js +670 -665
  32. package/components/filter-condition-editor/index.umd.cjs +2 -2
  33. package/components/flow-canvas/index.esm.js +205 -205
  34. package/components/flow-canvas/index.umd.cjs +1 -1
  35. package/components/language-textbox/index.esm.js +77 -76
  36. package/components/language-textbox/index.umd.cjs +1 -1
  37. package/components/list-nav/index.esm.js +4 -2
  38. package/components/list-nav/index.umd.cjs +1 -1
  39. package/components/list-view/index.esm.js +42 -40
  40. package/components/list-view/index.umd.cjs +2 -2
  41. package/components/lookup/index.esm.js +118 -118
  42. package/components/lookup/index.umd.cjs +1 -1
  43. package/components/mapping-editor/index.esm.js +482 -483
  44. package/components/mapping-editor/index.umd.cjs +1 -1
  45. package/components/message-box/index.esm.js +424 -424
  46. package/components/message-box/index.umd.cjs +1 -1
  47. package/components/modal/index.esm.js +276 -276
  48. package/components/modal/index.umd.cjs +1 -1
  49. package/components/number-range/index.esm.js +161 -161
  50. package/components/number-range/index.umd.cjs +1 -1
  51. package/components/number-spinner/index.esm.js +322 -316
  52. package/components/number-spinner/index.umd.cjs +1 -1
  53. package/components/order/index.esm.js +541 -534
  54. package/components/order/index.umd.cjs +2 -2
  55. package/components/page-header/index.esm.js +1 -1
  56. package/components/page-header/index.umd.cjs +1 -1
  57. package/components/popover/index.esm.js +58 -56
  58. package/components/popover/index.umd.cjs +1 -1
  59. package/components/property-panel/index.esm.js +216 -216
  60. package/components/property-panel/index.umd.cjs +2 -2
  61. package/components/query-solution/index.esm.js +489 -467
  62. package/components/query-solution/index.umd.cjs +3 -3
  63. package/components/radio-group/index.esm.js +30 -30
  64. package/components/radio-group/index.umd.cjs +1 -1
  65. package/components/response-layout/index.esm.js +282 -282
  66. package/components/response-layout/index.umd.cjs +1 -1
  67. package/components/response-layout-editor/index.esm.js +875 -873
  68. package/components/response-layout-editor/index.umd.cjs +1 -1
  69. package/components/response-toolbar/index.esm.js +1 -1
  70. package/components/response-toolbar/index.umd.cjs +1 -1
  71. package/components/schema-selector/index.esm.js +504 -496
  72. package/components/schema-selector/index.umd.cjs +6 -6
  73. package/components/search-box/index.esm.js +76 -72
  74. package/components/search-box/index.umd.cjs +1 -1
  75. package/components/section/index.esm.js +212 -212
  76. package/components/section/index.umd.cjs +1 -1
  77. package/components/sort-condition-editor/index.esm.js +382 -377
  78. package/components/sort-condition-editor/index.umd.cjs +2 -2
  79. package/components/tabs/index.esm.js +584 -582
  80. package/components/tabs/index.umd.cjs +2 -2
  81. package/components/textarea/index.esm.js +362 -362
  82. package/components/textarea/index.umd.cjs +2 -2
  83. package/components/time-picker/index.css +1 -0
  84. package/components/time-picker/index.esm.js +9799 -0
  85. package/components/time-picker/index.umd.cjs +1 -0
  86. package/components/time-picker/package.json +8 -0
  87. package/components/time-picker/style.js +6 -0
  88. package/components/transfer/index.esm.js +81 -79
  89. package/components/transfer/index.umd.cjs +2 -2
  90. package/components/tree-grid/index.esm.js +100 -100
  91. package/components/tree-grid/index.umd.cjs +1 -1
  92. package/components/tree-view/index.esm.js +2361 -2279
  93. package/components/tree-view/index.umd.cjs +1 -1
  94. package/components/video/index.esm.js +220 -220
  95. package/components/video/index.umd.cjs +1 -1
  96. package/designer/button-edit/index.css +1 -0
  97. package/designer/button-edit/index.esm.js +4856 -0
  98. package/designer/button-edit/index.umd.cjs +1 -0
  99. package/designer/checkbox/index.esm.js +254 -0
  100. package/designer/checkbox/index.umd.cjs +1 -0
  101. package/designer/checkbox-group/index.esm.js +381 -0
  102. package/designer/checkbox-group/index.umd.cjs +1 -0
  103. package/designer/data-grid/index.css +1 -0
  104. package/designer/data-grid/index.esm.js +15445 -0
  105. package/designer/data-grid/index.umd.cjs +23 -0
  106. package/designer/data-view/index.esm.js +854 -0
  107. package/designer/data-view/index.umd.cjs +38 -0
  108. package/designer/drawer/index.css +1 -0
  109. package/designer/drawer/index.esm.js +525 -0
  110. package/designer/drawer/index.umd.cjs +1 -0
  111. package/designer/farris-designer.all.esm.js +22331 -0
  112. package/designer/farris-designer.all.umd.cjs +34 -0
  113. package/designer/index.css +1 -0
  114. package/designer/input-group/index.esm.js +1099 -0
  115. package/designer/input-group/index.umd.cjs +1 -0
  116. package/designer/list-view/index.css +1 -0
  117. package/designer/list-view/index.esm.js +4685 -0
  118. package/designer/list-view/index.umd.cjs +40 -0
  119. package/designer/radio-group/index.css +1 -0
  120. package/designer/radio-group/index.esm.js +6989 -0
  121. package/designer/radio-group/index.umd.cjs +1 -0
  122. package/designer/tree-grid/index.esm.js +1099 -0
  123. package/designer/tree-grid/index.umd.cjs +1 -0
  124. package/farris.all.esm.js +13299 -13177
  125. package/farris.all.umd.cjs +25 -25
  126. package/locales/data-grid/ui/en.json +4 -3
  127. package/locales/data-grid/ui/zh-CHS.json +2 -1
  128. package/locales/data-grid/ui/zh-CHT.json +2 -1
  129. package/locales/designer/en.json +9 -7
  130. package/locales/designer/zh-CHS.json +4 -2
  131. package/locales/designer/zh-CHT.json +4 -2
  132. package/locales/ui/en.json +9 -7
  133. package/locales/ui/zh-CHS.json +4 -2
  134. package/locales/ui/zh-CHT.json +4 -2
  135. package/package.json +1 -1
  136. package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
  137. package/types/data-view/composition/types.d.ts +10 -4
@@ -0,0 +1,1099 @@
1
+ import { useTextBoxDesign as ne, useClear as oe, withInstall as re } from "../../components/common/index.esm.js";
2
+ import { createPropsResolver as ie } from "../../components/dynamic-resolver/index.esm.js";
3
+ import ae, { inputGroupProps as se } from "../../components/input-group/index.esm.js";
4
+ import { ref as A, computed as E, watch as le, createVNode as N, defineComponent as ue, inject as Z, onMounted as ce } from "vue";
5
+ import { useDesignerComponent as de } from "../../components/designer-canvas/index.esm.js";
6
+ import { InputBaseProperty as pe } from "../../components/property-panel/index.esm.js";
7
+ import { cloneDeep as H, isPlainObject as L } from "lodash-es";
8
+ const fe = {
9
+ id: { Type: String, default: "" },
10
+ /** 是否自动完成 */
11
+ autocomplete: { Type: String, default: "off" },
12
+ /** 自定义CLASS */
13
+ customClass: { Type: String, default: "" },
14
+ /** 禁用 */
15
+ disabled: { Type: Boolean, default: !1 },
16
+ /** 允许编辑 */
17
+ editable: { Type: Boolean, default: !0 },
18
+ /** 启用清除按钮 */
19
+ enableClear: { Type: Boolean, default: !0 },
20
+ /** 启用提示文本 */
21
+ enableTitle: { Type: Boolean, default: !0 },
22
+ /** 启用密码 */
23
+ enableViewPassword: { Type: Boolean, default: !0 },
24
+ /** 始终显示占位符文本 */
25
+ forcePlaceholder: { Type: Boolean, default: !1 },
26
+ /** 扩展按钮 */
27
+ groupText: { Type: String, default: "" },
28
+ /** 密码模式 */
29
+ type: { Type: String, default: "text" },
30
+ /** 最大值 */
31
+ max: { type: [Number, String] },
32
+ /** 最小值 */
33
+ min: { type: [Number, String] },
34
+ /** 最大长度 */
35
+ maxLength: { Type: Number || void 0, default: void 0 },
36
+ /** 最小长度 */
37
+ minLength: { Type: Number || void 0, default: void 0 },
38
+ /** 组件值 */
39
+ modelValue: { Type: String || Boolean, default: "" },
40
+ /** 隐藏边线 */
41
+ showBorder: { Type: Boolean, default: !0 },
42
+ /** 步长 */
43
+ step: { Type: Number, default: 1 },
44
+ /** 启用提示信息 */
45
+ placeholder: { Type: String, default: "" },
46
+ precision: { Type: Number, default: 0 },
47
+ /** 只读 */
48
+ readonly: { Type: Boolean, default: !1 },
49
+ /** 当组件禁用或只读时显示后边的按钮 */
50
+ showButtonWhenDisabled: { Type: Boolean, default: !1 },
51
+ /** tab索引 */
52
+ tabIndex: { Type: Number, default: 0 },
53
+ /** 文本在输入框中的对齐方式 */
54
+ textAlign: { Type: String, default: "left" },
55
+ /** 是否启用前置扩展信息;在输入框前面 显示 ① 图标鼠标滑过后显示 */
56
+ useExtendInfo: { Type: Boolean, default: !1 },
57
+ /** 前置扩展信息 */
58
+ extendInfo: { Type: String, default: "" },
59
+ /** 输入值 */
60
+ value: { Type: String, default: "" },
61
+ /** 是否撑开高度 */
62
+ autoHeight: { type: Boolean, default: !1 },
63
+ /** 自动聚焦 */
64
+ autofocus: { type: Boolean, default: !1 },
65
+ /** 文本区域可见的行数 */
66
+ rows: { type: Number, default: 2 },
67
+ /** 展示输入文本数量 */
68
+ showCount: { type: Boolean, default: !1 },
69
+ showZero: { type: Boolean, default: !1 },
70
+ /**
71
+ * 作为内嵌编辑器被创建后默认获得焦点
72
+ */
73
+ focusOnCreated: { type: Boolean, default: !1 },
74
+ /**
75
+ * 作为内嵌编辑器被创建后默认选中文本
76
+ */
77
+ selectOnCreated: { type: Boolean, default: !1 },
78
+ /**
79
+ * modelValue 更新时机, 默认 blur; 可选值:blur | input
80
+ * - blur: 离开焦点时更新
81
+ * - change: 输入时更新
82
+ */
83
+ updateOn: { type: String, default: "blur" },
84
+ formatValidation: { type: Object, default: {} },
85
+ /**
86
+ * 是否启用快捷键
87
+ */
88
+ keyboard: { type: Boolean, default: !0 }
89
+ };
90
+ function me(e, t) {
91
+ const n = A(e.groupText), r = E(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), p = E(() => e.type === "password" || e.enableClear || !!e.groupText || r.value);
92
+ return { appendedButtonClass: E(() => ({
93
+ "input-group-append": !0,
94
+ "append-force-show": r.value
95
+ })), appendedContent: n, shouldShowAppendedButton: p };
96
+ }
97
+ function ge(e, t, n, r) {
98
+ const { appendedContent: p } = r, b = A(e.enableViewPassword), C = E(() => e.type === "password"), P = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', S = '<span class="f-icon f-icon-eye"></span>', c = A(!1);
99
+ le(() => [e.readonly, e.disabled], ([s, d]) => {
100
+ C.value && (n.value = s || d ? "password" : n.value, p.value = s || d ? S : p.value);
101
+ });
102
+ function m() {
103
+ return c.value = !c.value, n.value = c.value ? "text" : "password", p.value = c.value ? P : S, !1;
104
+ }
105
+ function a() {
106
+ n.value = C.value ? "password" : "text", p.value = C.value ? b.value ? S : "" : p.value;
107
+ }
108
+ return a(), { isPassword: C, onClickAppendedButton: m };
109
+ }
110
+ function ve(e, t, n, r, p) {
111
+ const {
112
+ appendedButtonClass: b,
113
+ appendedContent: C
114
+ } = n, P = E(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), S = E(() => C.value && !t.slots.groupTextTemplate), c = E(() => !!t.slots.groupTextTemplate), {
115
+ clearButtonClass: m,
116
+ clearButtonStyle: a,
117
+ onClearValue: s,
118
+ shouldShowClearButton: d
119
+ } = r;
120
+ function o() {
121
+ return N("span", {
122
+ id: "clearIcon",
123
+ class: m.value,
124
+ style: a.value,
125
+ onClick: (v) => s(v)
126
+ }, [N("i", {
127
+ class: "f-icon modal_close"
128
+ }, null)]);
129
+ }
130
+ function i(v) {
131
+ t.emit("iconMouseEnter", v);
132
+ }
133
+ function l(v) {
134
+ t.emit("iconMouseLeave", v);
135
+ }
136
+ function f(v) {
137
+ P.value && t.emit("clickHandle", {
138
+ originalEvent: v
139
+ }), v.stopPropagation();
140
+ }
141
+ const g = e.type === "password" ? p.onClickAppendedButton : f;
142
+ function T() {
143
+ return N("span", {
144
+ class: "input-group-text",
145
+ onMouseenter: (v) => i(v),
146
+ onMouseleave: (v) => l(v),
147
+ innerHTML: C.value,
148
+ onClick: (v) => g(v)
149
+ }, null);
150
+ }
151
+ function h() {
152
+ return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
153
+ }
154
+ function w() {
155
+ return S.value ? T : c.value ? h : "";
156
+ }
157
+ const y = w();
158
+ return () => N("div", {
159
+ class: b.value
160
+ }, [d.value && o(), y && y()]);
161
+ }
162
+ const q = [
163
+ { key: "none", value: "无" },
164
+ { key: "cellNumber", value: "手机号" },
165
+ { key: "tel", value: "座机号/传真号" },
166
+ { key: "telOrCell", value: "手机号/座机号/传真号" },
167
+ { key: "postCode", value: "邮编" },
168
+ { key: "email", value: "电子邮箱" },
169
+ { key: "idCode", value: "身份证号" },
170
+ { key: "carCode", value: "车牌号" },
171
+ { key: "subjectCode", value: "10位数字会计科目代码" },
172
+ { key: "custom", value: "自定义" }
173
+ ];
174
+ function be(e) {
175
+ switch (e) {
176
+ case "none":
177
+ return "";
178
+ case "cellNumber":
179
+ return "^1[0-9]{10}$";
180
+ case "tel":
181
+ return "^(0[0-9]{2,3}\\-)?([2-9][0-9]{6,7})+(\\-[0-9]{1,4})?$";
182
+ case "telOrCell":
183
+ return "^(0[0-9]{2,3}\\-)?([2-9][0-9]{6,7})+(\\-[0-9]{1,4})?$|^1[0-9]{10}$";
184
+ case "postCode":
185
+ return "^[1-9]\\d{5}(?!\\d)$";
186
+ case "workCode":
187
+ return "^\\d{8}$";
188
+ case "email":
189
+ return "^[A-Za-z\\d]+([-_.][A-Za-z\\d]+)*@([A-Za-z\\d]+[-.])+[A-Za-z]{2,5}$";
190
+ case "idCode":
191
+ return "^[1-9]\\d{5}[1-9]\\d{3}((0[1-9])|(1[0-2]))(0[1-9]|([1|2][0-9])|3[0-1])((\\d{4})|\\d{3}X)$";
192
+ case "carCode":
193
+ return "^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][·\\s]?[A-HJ-NP-Z0-9]{4,5}[挂学警港澳]?|粤[Z港澳][·\\s]?[港澳][0-9A-HJ-NP-Z]{4}|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][A-Z][·\\s]?([DF][0-9A-HJ-NP-Z][0-9]{4}|[0-9]{5}[DF])[挂港澳]?|[使领][0-9]{3}[·\\s]?[0-9]{3}|临[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][A-Z][·\\s]?[0-9A-Z]{4,5}|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][A-Z]?[·\\s]?警[0-9A-Z]{4}|[军海空][A-Z][·\\s]?[0-9]{4,5}|WJ(?:[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼]|\\d{2})[·\\s]?[0-9A-Z]{4,5})$";
194
+ case "carCodeNew":
195
+ return "^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF])|([DF][A-HJ-NP-Z0-9][0-9]{4}))$";
196
+ case "subjectCode":
197
+ return "^\\d{10}$";
198
+ }
199
+ return "";
200
+ }
201
+ function ye(e) {
202
+ var t;
203
+ return "请输入正确的" + ((t = q.find((n) => n.key === e)) == null ? void 0 : t.value);
204
+ }
205
+ const Ce = {
206
+ convertTo: (e, t, n, r) => {
207
+ e.editor.formatValidation || (e.editor.formatValidation = { type: "none" }), e.editor.formatValidation.type = n, e.editor.formatValidation.expression = be(n), e.editor.formatValidation.message = ye(n);
208
+ },
209
+ convertFrom: (e, t, n) => e.editor.formatValidation ? t === "type" ? e.editor.formatValidation[t] || "none" : e.editor.formatValidation[t] : "none"
210
+ }, z = {
211
+ convertTo: (e, t, n, r) => {
212
+ e.editor.formatValidation || (e.editor.formatValidation = { type: "none" }), e.editor.formatValidation[t] = n;
213
+ },
214
+ convertFrom: (e, t, n) => e.editor.formatValidation ? e.editor.formatValidation[t] : e.editor[t]
215
+ };
216
+ class Te extends pe {
217
+ constructor(t, n) {
218
+ super(t, n);
219
+ }
220
+ getPropertyConfig(t, n) {
221
+ return super.getPropertyConfig(t, n), this.propertyConfig.categories.formatValidation = this.getFormatValidation(t), this.propertyConfig;
222
+ }
223
+ getEditorProperties(t) {
224
+ var r, p;
225
+ let n;
226
+ if (((r = t == null ? void 0 : t.binding) == null ? void 0 : r.type) === "Form") {
227
+ const b = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
228
+ (p = b == null ? void 0 : b.schemaField) != null && p.type && (n = b.schemaField.type.length);
229
+ }
230
+ return this.getComponentConfig(t, {}, {
231
+ maxLength: {
232
+ description: "文本字数最大长度",
233
+ title: "最大长度",
234
+ type: "number",
235
+ editor: {
236
+ nullable: !0,
237
+ min: 0,
238
+ useThousands: !1,
239
+ max: n,
240
+ needValid: !0
241
+ }
242
+ },
243
+ enableViewPassword: {
244
+ description: "",
245
+ title: "启用密码",
246
+ visible: !1,
247
+ type: "boolean"
248
+ }
249
+ });
250
+ }
251
+ getFormatValidation(t) {
252
+ var r, p, b;
253
+ const n = {
254
+ title: "输入格式校验",
255
+ description: "输入格式校验",
256
+ properties: {
257
+ type: {
258
+ title: "输入类型",
259
+ type: "enum",
260
+ description: "输入类型",
261
+ defaultValue: "",
262
+ editor: {
263
+ type: "combo-list",
264
+ textField: "value",
265
+ valueField: "key",
266
+ idField: "key",
267
+ editable: !1,
268
+ data: q
269
+ },
270
+ refreshPanelAfterChanged: !0,
271
+ $converter: Ce,
272
+ parentPropertyID: "formatValidation"
273
+ }
274
+ }
275
+ };
276
+ return (r = t.editor.formatValidation) != null && r.type && ((p = t.editor.formatValidation) == null ? void 0 : p.type) !== "none" && (n.properties.message = {
277
+ title: "输入错误提示",
278
+ type: "string",
279
+ description: "输入错误提示",
280
+ $converter: z,
281
+ parentPropertyID: "formatValidation"
282
+ }), ((b = t.editor.formatValidation) == null ? void 0 : b.type) === "custom" && (n.properties.expression = {
283
+ title: "匹配正则",
284
+ type: "string",
285
+ description: "匹配正则",
286
+ $converter: z,
287
+ parentPropertyID: "formatValidation"
288
+ }), n;
289
+ }
290
+ }
291
+ function Se(e, t) {
292
+ const n = e.schema;
293
+ function r(p, b) {
294
+ return new Te(p, t).getPropertyConfig(n, b);
295
+ }
296
+ return { getPropsConfig: r };
297
+ }
298
+ const V = /* @__PURE__ */ ue({
299
+ name: "FInputGroupDesign",
300
+ props: fe,
301
+ emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
302
+ setup(e, t) {
303
+ const n = A(e.modelValue), r = A(e.modelValue), p = ne(e, t, n, r), {
304
+ inputGroupClass: b,
305
+ inputType: C,
306
+ inputGroupStyle: P
307
+ } = p, S = me(e), {
308
+ shouldShowAppendedButton: c
309
+ } = S, m = oe(e, t, p), {
310
+ onMouseEnter: a,
311
+ onMouseLeave: s
312
+ } = m, d = ge(e, t, C, S), o = A(), i = Z("designer-host-service"), l = Z("design-item-context"), f = Se(l, i), g = de(o, l, f);
313
+ ce(() => {
314
+ o.value.componentInstance = g;
315
+ }), t.expose(g.value);
316
+ const T = ve(e, t, S, m, d), h = A();
317
+ return () => N("div", {
318
+ id: "inputGroup",
319
+ ref: o,
320
+ class: b.value,
321
+ style: P.value,
322
+ onMouseenter: a,
323
+ onMouseleave: s
324
+ }, [N("input", {
325
+ ref: h,
326
+ class: "form-control",
327
+ readonly: !0,
328
+ placeholder: e.placeholder
329
+ }, null), c.value && T()]);
330
+ }
331
+ });
332
+ function W(e, t) {
333
+ let n;
334
+ function r(a) {
335
+ const { properties: s, title: d, ignore: o } = a, i = o && Array.isArray(o), l = Object.keys(s).reduce((f, g) => ((!i || !o.find((T) => T === g)) && (f[g] = s[g].type === "object" && s[g].properties ? r(s[g]) : H(s[g].default)), f), {});
336
+ if (d && (!i || !o.find((f) => f === "id"))) {
337
+ const f = d.toLowerCase().replace(/-/g, "_");
338
+ l.id = `${f}_${Math.random().toString().slice(2, 6)}`;
339
+ }
340
+ return l;
341
+ }
342
+ function p(a) {
343
+ const { properties: s, title: d, required: o } = a;
344
+ if (o && Array.isArray(o)) {
345
+ const i = o.reduce((l, f) => (l[f] = s[f].type === "object" && s[f].properties ? r(s[f]) : H(s[f].default), l), {});
346
+ if (d && o.find((l) => l === "id")) {
347
+ const l = d.toLowerCase().replace(/-/g, "_");
348
+ i.id = `${l}_${Math.random().toString().slice(2, 6)}`;
349
+ }
350
+ return i;
351
+ }
352
+ return {
353
+ type: d
354
+ };
355
+ }
356
+ function b(a, s = {}, d) {
357
+ const o = e[a];
358
+ if (o) {
359
+ let i = p(o);
360
+ const l = t[a];
361
+ return i = l ? l({ getSchemaByType: b }, i, s, d) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
362
+ }
363
+ return null;
364
+ }
365
+ function C(a, s) {
366
+ const d = r(s);
367
+ return Object.keys(d).reduce((o, i) => (Object.prototype.hasOwnProperty.call(a, i) && (o[i] && L(o[i]) && L(a[i] || !a[i]) ? Object.assign(o[i], a[i] || {}) : o[i] = a[i]), o), d), d;
368
+ }
369
+ function P(a, s) {
370
+ return Object.keys(a).filter((o) => a[o] != null).reduce((o, i) => {
371
+ if (s.has(i)) {
372
+ const l = s.get(i);
373
+ if (typeof l == "string")
374
+ o[l] = a[i];
375
+ else {
376
+ const f = l(i, a[i], a);
377
+ Object.assign(o, f);
378
+ }
379
+ } else
380
+ o[i] = a[i];
381
+ return o;
382
+ }, {});
383
+ }
384
+ function S(a, s, d = /* @__PURE__ */ new Map()) {
385
+ const o = C(a, s);
386
+ return P(o, d);
387
+ }
388
+ function c(a) {
389
+ var d;
390
+ const s = a.type;
391
+ if (s) {
392
+ const o = e[s];
393
+ if (!o)
394
+ return a;
395
+ const i = C(a, o), l = ((d = a.editor) == null ? void 0 : d.type) || "";
396
+ if (l) {
397
+ const f = e[l], g = C(a.editor, f);
398
+ i.editor = g;
399
+ }
400
+ return i;
401
+ }
402
+ return a;
403
+ }
404
+ function m(a) {
405
+ n = a;
406
+ }
407
+ return { getSchemaByType: b, resolveSchemaWithDefaultValue: c, resolveSchemaToProps: S, mappingSchemaToProps: P, setDesignerContext: m };
408
+ }
409
+ const he = {}, we = {}, { getSchemaByType: Tt, resolveSchemaWithDefaultValue: Fe, resolveSchemaToProps: St, mappingSchemaToProps: ht, setDesignerContext: wt } = W(he, we);
410
+ function Pe(e = {}) {
411
+ function t(c, m, a, s) {
412
+ if (typeof a == "number")
413
+ return s[c].length === a;
414
+ if (typeof a == "object") {
415
+ const d = Object.keys(a)[0], o = a[d];
416
+ if (d === "not")
417
+ return Number(s[c].length) !== Number(o);
418
+ if (d === "moreThan")
419
+ return Number(s[c].length) >= Number(o);
420
+ if (d === "lessThan")
421
+ return Number(s[c].length) <= Number(o);
422
+ }
423
+ return !1;
424
+ }
425
+ function n(c, m, a, s) {
426
+ return s[c] && s[c].propertyValue && String(s[c].propertyValue.value) === String(a);
427
+ }
428
+ const r = /* @__PURE__ */ new Map([
429
+ ["length", t],
430
+ ["getProperty", n]
431
+ ]);
432
+ Object.keys(e).reduce((c, m) => (c.set(m, e[m]), c), r);
433
+ function p(c, m) {
434
+ const a = c;
435
+ return typeof m == "number" ? [{ target: a, operator: "length", param: null, value: Number(m) }] : typeof m == "boolean" ? [{ target: a, operator: "getProperty", param: c, value: !!m }] : typeof m == "object" ? Object.keys(m).map((s) => {
436
+ if (s === "length")
437
+ return { target: a, operator: "length", param: null, value: m[s] };
438
+ const d = s, o = m[s];
439
+ return { target: a, operator: "getProperty", param: d, value: o };
440
+ }) : [];
441
+ }
442
+ function b(c) {
443
+ return Object.keys(c).reduce((a, s) => {
444
+ const d = p(s, c[s]);
445
+ return a.push(...d), a;
446
+ }, []);
447
+ }
448
+ function C(c, m) {
449
+ if (r.has(c.operator)) {
450
+ const a = r.get(c.operator);
451
+ return a && a(c.target, c.param, c.value, m) || !1;
452
+ }
453
+ return !1;
454
+ }
455
+ function P(c, m) {
456
+ return b(c).reduce((d, o) => d && C(o, m), !0);
457
+ }
458
+ function S(c, m) {
459
+ const a = Object.keys(c), s = a.includes("allOf"), d = a.includes("anyOf"), o = s || d, f = (o ? c[o ? s ? "allOf" : "anyOf" : "allOf"] : [c]).map((T) => P(T, m));
460
+ return s ? !f.includes(!1) : f.includes(!0);
461
+ }
462
+ return { parseValueSchema: S };
463
+ }
464
+ const xe = {
465
+ convertTo: (e, t, n, r) => {
466
+ e.appearance || (e.appearance = {}), e.appearance[t] = n;
467
+ },
468
+ convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
469
+ }, Be = {
470
+ convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
471
+ }, ke = {
472
+ convertTo: (e, t, n, r) => {
473
+ e.editor && (e.editor[t] = n);
474
+ },
475
+ convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
476
+ }, Oe = {
477
+ button: { type: "button", name: "按钮" },
478
+ "response-toolbar": { type: "response-toolbar", name: "工具栏" },
479
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
480
+ "content-container": { type: "content-container", name: "容器" },
481
+ "input-group": { type: "input-group", name: "文本" },
482
+ textarea: { type: "textarea", name: "多行文本" },
483
+ lookup: { type: "lookup", name: "帮助" },
484
+ "number-spinner": { type: "number-spinner", name: "数值" },
485
+ "date-picker": { type: "date-picker", name: "日期" },
486
+ switch: { type: "switch", name: "开关" },
487
+ "radio-group": { type: "radio-group", name: "单选组" },
488
+ "check-box": { type: "check-box", name: "复选框" },
489
+ "check-group": { type: "check-group", name: "复选框组" },
490
+ "combo-list": { type: "combo-list", name: "下拉列表" },
491
+ "response-form": { type: "response-form", name: "卡片面板" },
492
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "response-layout-3" },
493
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "response-layout-1" },
494
+ "tree-grid": { type: "tree-grid", name: "树表格" },
495
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
496
+ "data-grid": { type: "data-grid", name: "表格" },
497
+ "data-grid-column": { type: "data-grid-column", name: "表格列" },
498
+ module: { type: "Module", name: "模块" },
499
+ component: { type: "component", name: "组件" },
500
+ tabs: { type: "tabs", name: "标签页" },
501
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
502
+ "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮" },
503
+ "html-template": { type: "html-template", name: "模板容器" },
504
+ "time-picker": { type: "time-picker", name: "时间选择" },
505
+ section: { type: "section", name: "分组面板" },
506
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
507
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
508
+ splitter: { type: "splitter", name: "分栏面板" },
509
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
510
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
511
+ uploader: { type: "uploader", name: "附件上传" },
512
+ "page-header": { type: "page-header", name: "页头" },
513
+ "page-footer": { type: "page-footer", name: "页脚" },
514
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏" },
515
+ fieldset: { type: "fieldset", name: "分组" },
516
+ "query-solution": { type: "query-solution", name: "筛选方案" },
517
+ drawer: { type: "drawer", name: "抽屉" },
518
+ "external-container": { type: "external-container", name: "外部容器", icon: "content-container" },
519
+ "list-nav": { type: "list-nav", name: "列表导航" },
520
+ "list-view": { type: "list-view", name: "列表" },
521
+ "filter-bar": { type: "filter-bar", name: "筛选条" },
522
+ "language-textbox": { type: "language-textbox", name: "多语输入框" }
523
+ }, Ae = {
524
+ convertFrom: (e, t, n) => {
525
+ var p;
526
+ const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
527
+ return ((p = Oe[r]) == null ? void 0 : p.name) || r;
528
+ }
529
+ }, Ee = {
530
+ convertTo: (e, t, n, r) => {
531
+ e[t] = e[t];
532
+ },
533
+ convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
534
+ }, Me = {
535
+ convertTo: (e, t, n, r) => {
536
+ (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
537
+ [t]: n
538
+ });
539
+ },
540
+ convertFrom: (e, t, n) => {
541
+ if (e.formatter) {
542
+ if (t === "trueText")
543
+ return e.formatter.trueText;
544
+ if (t === "falseText")
545
+ return e.formatter.falseText;
546
+ if (t === "prefix")
547
+ return e.formatter.prefix;
548
+ if (t === "suffix")
549
+ return e.formatter.suffix;
550
+ if (t === "precision")
551
+ return e.formatter.precision;
552
+ if (t === "decimal")
553
+ return e.formatter.decimal;
554
+ if (t === "thousand")
555
+ return e.formatter.thousand;
556
+ if (t === "dateFormat")
557
+ return e.formatter.dateFormat || "yyyy-MM-dd";
558
+ if (t === "customFormat")
559
+ return e.formatter.customFormat;
560
+ if (t === "type")
561
+ return e.formatter.type || "none";
562
+ }
563
+ return "none";
564
+ }
565
+ }, $e = {
566
+ convertTo: (e, t, n, r) => {
567
+ e.command ? e.command[t] = n : e.command = {
568
+ [t]: n
569
+ }, t === "enable" && n && (e.command.commands || (e.command.commands = [
570
+ {
571
+ text: "编辑",
572
+ type: "primary",
573
+ command: "edit"
574
+ },
575
+ {
576
+ text: "删除",
577
+ type: "danger",
578
+ command: "remove"
579
+ }
580
+ ]));
581
+ },
582
+ convertFrom: (e, t, n) => e.command && t === "enable" ? e.command.enable : ""
583
+ }, Ne = {
584
+ convertTo: (e, t, n, r) => {
585
+ e.column ? e.column[t] = n : e.column = {
586
+ [t]: n
587
+ }, t === "fitColumns" && n && (e.column.fitMode || (e.column.fitMode = "average"));
588
+ },
589
+ convertFrom: (e, t, n) => {
590
+ if (e.column) {
591
+ if (t === "fitColumns")
592
+ return e.column.fitColumns;
593
+ if (t === "fitMode")
594
+ return e.column.fitMode;
595
+ }
596
+ return "";
597
+ }
598
+ }, je = {
599
+ convertTo: (e, t, n, r) => {
600
+ e.summary ? e.summary[t] = n : e.summary = {
601
+ [t]: n
602
+ }, t === "enable" && n && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
603
+ enable: n,
604
+ groupFields: []
605
+ });
606
+ },
607
+ convertFrom: (e, t, n) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
608
+ }, De = {
609
+ convertTo: (e, t, n, r) => {
610
+ e.group ? e.group[t] = n : e.group = {
611
+ [t]: n
612
+ }, t === "enable" && n && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
613
+ enable: n,
614
+ groupFields: [],
615
+ showSummary: !1
616
+ });
617
+ },
618
+ convertFrom: (e, t, n) => {
619
+ if (e.group) {
620
+ if (t === "enable")
621
+ return e.group.enable;
622
+ if (t === "showSummary")
623
+ return e.group.showSummary;
624
+ }
625
+ }
626
+ }, Ve = {
627
+ convertFrom: (e, t) => e.binding ? e.binding.path : "",
628
+ convertTo: (e, t, n) => {
629
+ if (n && n.length > 0) {
630
+ const r = n[0];
631
+ e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = r.bindingField, e.binding.field = r.id, e.binding.fullPath = r.path, e.path = r.bindingPath;
632
+ }
633
+ }
634
+ }, Ie = {
635
+ convertTo: (e, t, n, r) => {
636
+ e.pagination || (e.pagination = {}), e.pagination[t] = n;
637
+ },
638
+ convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
639
+ }, Re = {
640
+ convertTo: (e, t, n, r) => {
641
+ e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
642
+ },
643
+ convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
644
+ }, Ge = {
645
+ convertTo: (e, t, n, r) => {
646
+ e.selection || (e.selection = {}), e.selection[t] = n;
647
+ },
648
+ convertFrom: (e, t, n) => {
649
+ var r, p;
650
+ return t === "showCheckbox" ? (r = e.selection) != null && r.multiSelect ? !0 : (p = e.selection) == null ? void 0 : p.showCheckbox : e.selection ? e.selection[t] : e[t];
651
+ }
652
+ }, Ze = {
653
+ convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
654
+ }, He = {
655
+ convertFrom: (e, t) => e[t] || "",
656
+ convertTo: (e, t, n) => {
657
+ e[t] = n;
658
+ }
659
+ }, Le = {
660
+ convertTo: (e, t, n, r) => {
661
+ e.size || (e.size = {}), e.size[t] = n;
662
+ },
663
+ convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
664
+ }, ze = {
665
+ convertFrom: (e, t, n) => {
666
+ var r, p;
667
+ return (r = e.formatter) != null && r.data && t === "formatterEnumData" && !e.formatterEnumData ? (p = e.formatter) == null ? void 0 : p.data : e.formatterEnumData;
668
+ }
669
+ }, qe = {
670
+ convertTo: (e, t, n, r) => {
671
+ e.sort || (e.sort = {}), e.sort[t] = n;
672
+ },
673
+ convertFrom: (e, t, n) => {
674
+ var r, p;
675
+ if (t === "mode")
676
+ return ((r = e.sort) == null ? void 0 : r.mode) || "client";
677
+ if (t === "multiSort")
678
+ return !!((p = e.sort) != null && p.multiSort);
679
+ }
680
+ }, We = {
681
+ convertTo: (e, t, n, r) => {
682
+ e.filter || (e.filter = {}), e.filter[t] = n;
683
+ },
684
+ convertFrom: (e, t, n) => {
685
+ var r;
686
+ if (t === "mode")
687
+ return ((r = e.filter) == null ? void 0 : r.mode) || "client";
688
+ }
689
+ }, _e = {
690
+ convertTo: (e, t, n, r) => {
691
+ e.rowOption ? e.rowOption[t] = n : e.rowOption = {
692
+ [t]: n
693
+ };
694
+ },
695
+ convertFrom: (e, t, n) => {
696
+ if (e.rowOption) {
697
+ if (t === "customRowStyle")
698
+ return e.rowOption.customRowStyle;
699
+ if (t === "customCellStyle")
700
+ return e.rowOption.customCellStyle;
701
+ }
702
+ return "";
703
+ }
704
+ };
705
+ function _(e, t, n) {
706
+ const r = /* @__PURE__ */ new Map([
707
+ ["/converter/appearance.converter", xe],
708
+ ["/converter/buttons.converter", Be],
709
+ ["/converter/property-editor.converter", ke],
710
+ ["/converter/items-count.converter", Ze],
711
+ ["/converter/type.converter", Ae],
712
+ ["/converter/change-editor.converter", Ee],
713
+ ["/converter/change-formatter.converter", Me],
714
+ ["/converter/column-command.converter", $e],
715
+ ["/converter/column-option.converter", Ne],
716
+ ["/converter/summary.converter", je],
717
+ ["/converter/group.converter", De],
718
+ ["/converter/form-group-label.converter", He],
719
+ ["/converter/field-selector.converter", Ve],
720
+ ["/converter/pagination.converter", Ie],
721
+ ["/converter/row-number.converter", Re],
722
+ ["/converter/grid-selection.converter", Ge],
723
+ ["/converter/size.converter", Le],
724
+ ["/converter/change-formatter-enum.converter", ze],
725
+ ["/converter/grid-sort.converter", qe],
726
+ ["/converter/grid-filter.converter", We],
727
+ ["/converter/row-option.converter", _e]
728
+ ]), p = /* @__PURE__ */ new Map([
729
+ ["string", { type: "input-group", enableClear: !1 }],
730
+ ["boolean", {
731
+ type: "combo-list",
732
+ textField: "name",
733
+ valueField: "value",
734
+ idField: "value",
735
+ enableClear: !1,
736
+ editable: !1,
737
+ data: [
738
+ {
739
+ value: !0,
740
+ name: "是"
741
+ },
742
+ {
743
+ value: !1,
744
+ name: "否"
745
+ }
746
+ ]
747
+ }],
748
+ ["enum", { type: "combo-list", maxHeight: 128, enableClear: !1, editable: !1 }],
749
+ ["array", { type: "button-edit" }],
750
+ ["number", { type: "number-spinner", placeholder: "" }],
751
+ ["events-editor", { type: "events-editor", hide: !0 }]
752
+ ]), b = Pe();
753
+ function C(o, i) {
754
+ return () => b.parseValueSchema(o, i);
755
+ }
756
+ function P(o, i, l) {
757
+ return o.includes("visible") && i.visible !== void 0 ? typeof i.visible == "boolean" ? () => !!i.visible : i.visible === void 0 ? !0 : C(i.visible, l) : () => !0;
758
+ }
759
+ function S(o, i, l) {
760
+ return o.includes("readonly") && i.readonly !== void 0 ? typeof i.readonly == "boolean" ? () => !!i.readonly : C(i.readonly, l) : () => !1;
761
+ }
762
+ function c(o, i) {
763
+ const l = o.$converter || i;
764
+ return typeof l == "string" && l && r.has(l) ? r.get(l) || null : l || null;
765
+ }
766
+ function m(o, i, l, f, g, T = "", h = "") {
767
+ return Object.keys(o).map((y) => {
768
+ const v = A(1), x = y, u = o[y], F = Object.keys(u), j = u.title, M = u.type, $ = p.get(M) || { type: "input-group", enableClear: !1 }, O = u.editor ? Object.assign({}, $, u.editor) : Object.assign({}, $), I = P(F, u, i), D = S(F, u, i);
769
+ O.readonly = O.readonly === void 0 ? D() : O.readonly;
770
+ const R = u.type === "cascade" ? m(u.properties, i, l, f, g, T, h) : [], U = !0;
771
+ let B = c(u, h);
772
+ const X = E({
773
+ get() {
774
+ if (v.value) {
775
+ if (["class", "style"].find((te) => te === x) && !B && (B = r.get("/converter/appearance.converter") || null), B && B.convertFrom)
776
+ return B.convertFrom(l, y, g, T);
777
+ const k = l[y];
778
+ return Object.prototype.hasOwnProperty.call(u, "defaultValue") && (k === void 0 || typeof k == "string" && k === "") ? u.type === "boolean" ? u.defaultValue : u.defaultValue || "" : k;
779
+ }
780
+ return null;
781
+ },
782
+ set(k) {
783
+ v.value += 1, B && B.convertTo ? (B.convertTo(f, y, k, g, T), B.convertTo(l, y, k, g, T)) : (f[y] = k, l[y] = k);
784
+ }
785
+ }), { refreshPanelAfterChanged: Q, description: Y, isExpand: K, parentPropertyID: ee } = u, G = { propertyID: x, propertyName: j, propertyType: M, propertyValue: X, editor: O, visible: I, readonly: D, cascadeConfig: R, hideCascadeTitle: U, refreshPanelAfterChanged: Q, description: Y, isExpand: K, parentPropertyID: ee };
786
+ return i[x] = G, G;
787
+ });
788
+ }
789
+ function a(o, i, l = {}) {
790
+ const f = {}, g = e[o];
791
+ return g && g.categories ? Object.keys(g.categories).map((h) => {
792
+ const w = g.categories[h], y = w == null ? void 0 : w.title, v = m(w.properties || {}, f, {}, l, i);
793
+ return { categoryId: h, categoryName: y, properties: v };
794
+ }) : [];
795
+ }
796
+ function s(o, i, l, f, g = "") {
797
+ const T = i.$ref.schema, h = i.$ref.converter, w = l[T], y = w.type, v = n(w), x = {}, u = e[y];
798
+ if (u && u.categories) {
799
+ const F = u.categories[o], j = F == null ? void 0 : F.title;
800
+ h && Object.keys(F.properties).forEach((O) => {
801
+ F.properties[O].$converter = h;
802
+ });
803
+ const M = (F == null ? void 0 : F.properties) || {}, $ = m(M, x, v, w, f, g);
804
+ return { categoryId: o, categoryName: j, properties: $ };
805
+ }
806
+ return { categoryId: o, categoryName: "", properties: [] };
807
+ }
808
+ function d(o, i, l, f, g) {
809
+ const T = o.type, h = n(o), w = {};
810
+ let y = g || e[T];
811
+ if (y && Object.keys(y).length === 0 && l && l.getPropConfig && (y = l.getPropConfig(f)), y && y.categories) {
812
+ const v = [];
813
+ return Object.keys(y.categories).map((x) => {
814
+ const u = y.categories[x];
815
+ if (u.$ref) {
816
+ v.push(s(x, u, o, i, f));
817
+ return;
818
+ }
819
+ const F = u == null ? void 0 : u.title, j = u == null ? void 0 : u.tabId, M = u == null ? void 0 : u.tabName, $ = u == null ? void 0 : u.hide, O = u == null ? void 0 : u.hideTitle, I = m(u.properties || {}, w, h, o, i, f, u.$converter), { setPropertyRelates: D } = u, R = u == null ? void 0 : u.parentPropertyID;
820
+ v.push({ categoryId: x, categoryName: F, tabId: j, tabName: M, hide: $, properties: I, hideTitle: O, setPropertyRelates: D, parentPropertyID: R });
821
+ }), v;
822
+ }
823
+ return [];
824
+ }
825
+ return {
826
+ getPropertyConfigBySchema: d,
827
+ getPropertyConfigByType: a,
828
+ propertyConverterMap: r
829
+ };
830
+ }
831
+ const Je = {}, Ue = {};
832
+ _(Je, Ue, Fe);
833
+ const Xe = {}, Qe = {}, { getSchemaByType: Ft, resolveSchemaWithDefaultValue: Ye, resolveSchemaToProps: Pt, mappingSchemaToProps: xt, setDesignerContext: Bt } = W(Xe, Qe), Ke = {}, et = {};
834
+ _(Ke, et, Ye);
835
+ function tt(e, t) {
836
+ return { customClass: t.class, customStyle: t.style };
837
+ }
838
+ const nt = /* @__PURE__ */ new Map([
839
+ ["appearance", tt]
840
+ ]);
841
+ function ot(e, t, n) {
842
+ return t;
843
+ }
844
+ const rt = "https://json-schema.org/draft/2020-12/schema", it = "https://farris-design.gitee.io/input-group.schema.json", at = "input-group", st = "A Farris Input Component", lt = "object", ut = {
845
+ id: {
846
+ description: "The unique identifier for a Input Group",
847
+ type: "string"
848
+ },
849
+ type: {
850
+ description: "The type string of Input Group component",
851
+ type: "string",
852
+ default: "input-group"
853
+ },
854
+ appearance: {
855
+ description: "",
856
+ type: "object",
857
+ properties: {
858
+ class: {
859
+ type: "string"
860
+ },
861
+ style: {
862
+ type: "string"
863
+ }
864
+ },
865
+ default: {}
866
+ },
867
+ binding: {
868
+ description: "",
869
+ type: "object",
870
+ default: {}
871
+ },
872
+ formatValidation: {
873
+ description: "",
874
+ type: "object",
875
+ default: {}
876
+ },
877
+ editable: {
878
+ description: "",
879
+ type: "boolean",
880
+ default: !0
881
+ },
882
+ enableLinkLabel: {
883
+ description: "",
884
+ type: "boolean",
885
+ default: !1
886
+ },
887
+ label: {
888
+ description: "",
889
+ type: "string",
890
+ default: ""
891
+ },
892
+ labelWidth: {
893
+ description: "",
894
+ type: "number"
895
+ },
896
+ placeholder: {
897
+ description: "",
898
+ type: "string",
899
+ default: ""
900
+ },
901
+ readonly: {
902
+ description: "",
903
+ type: "boolean",
904
+ default: !1
905
+ },
906
+ disabled: {
907
+ description: "",
908
+ type: "boolean",
909
+ default: !1
910
+ },
911
+ required: {
912
+ description: "",
913
+ type: "boolean",
914
+ default: !1
915
+ },
916
+ tabIndex: {
917
+ description: "",
918
+ type: "number",
919
+ default: -1
920
+ },
921
+ maxLength: {
922
+ description: "",
923
+ type: "number",
924
+ default: ""
925
+ },
926
+ textAlign: {
927
+ description: "",
928
+ type: "enum",
929
+ enum: [
930
+ "left",
931
+ "middle",
932
+ "right"
933
+ ],
934
+ default: "left"
935
+ },
936
+ visible: {
937
+ description: "",
938
+ type: "boolean",
939
+ default: !0
940
+ },
941
+ onBlur: {
942
+ description: "",
943
+ type: "string",
944
+ default: ""
945
+ },
946
+ onClickLinkLabel: {
947
+ description: "",
948
+ type: "sting",
949
+ default: ""
950
+ },
951
+ addonDisabled: {
952
+ description: "",
953
+ type: "boolean",
954
+ default: !1
955
+ },
956
+ addonContent: {
957
+ description: "",
958
+ type: "string",
959
+ default: ""
960
+ },
961
+ autoHeight: {
962
+ description: "",
963
+ type: "boolean",
964
+ default: !1
965
+ },
966
+ enableAddon: {
967
+ description: "",
968
+ type: "boolean",
969
+ default: !1
970
+ },
971
+ addonType: {
972
+ description: "",
973
+ type: "string",
974
+ enum: [
975
+ "button",
976
+ "static"
977
+ ],
978
+ default: "button"
979
+ },
980
+ enableClear: {
981
+ description: "",
982
+ type: "boolean",
983
+ default: !0
984
+ },
985
+ enableViewPassword: {
986
+ description: "",
987
+ type: "boolean",
988
+ default: !1
989
+ },
990
+ inputType: {
991
+ description: "",
992
+ type: "string",
993
+ enum: [
994
+ "input",
995
+ "password",
996
+ "text"
997
+ ],
998
+ default: "input"
999
+ },
1000
+ maxHeight: {
1001
+ description: "",
1002
+ type: "number",
1003
+ default: 500
1004
+ },
1005
+ popUp: {
1006
+ description: "",
1007
+ type: "object",
1008
+ properties: {
1009
+ footerButtons: {
1010
+ type: "array",
1011
+ default: []
1012
+ },
1013
+ height: {
1014
+ type: "number",
1015
+ default: 600
1016
+ },
1017
+ dataMapping: {
1018
+ type: "object"
1019
+ },
1020
+ contents: {
1021
+ type: "array",
1022
+ default: []
1023
+ },
1024
+ showMaxButton: {
1025
+ type: "boolean",
1026
+ default: !0
1027
+ },
1028
+ showCloseButton: {
1029
+ type: "boolean",
1030
+ default: !0
1031
+ },
1032
+ showFooter: {
1033
+ type: "boolean",
1034
+ default: !0
1035
+ },
1036
+ title: {
1037
+ type: "string",
1038
+ default: ""
1039
+ },
1040
+ width: {
1041
+ type: "number",
1042
+ default: 800
1043
+ }
1044
+ }
1045
+ },
1046
+ groupText: {
1047
+ description: "",
1048
+ type: "string",
1049
+ default: ""
1050
+ },
1051
+ onClickHandle: {
1052
+ description: "",
1053
+ type: "string",
1054
+ default: ""
1055
+ },
1056
+ showButtonWhenDisabled: {
1057
+ description: "",
1058
+ type: "boolean",
1059
+ default: !1
1060
+ },
1061
+ onClear: {
1062
+ description: "",
1063
+ type: "string",
1064
+ default: ""
1065
+ },
1066
+ updateOn: {
1067
+ description: "",
1068
+ type: "string",
1069
+ default: "blur"
1070
+ }
1071
+ }, ct = [
1072
+ "type"
1073
+ ], dt = [
1074
+ "id",
1075
+ "appearance",
1076
+ "binding",
1077
+ "visible"
1078
+ ], pt = {
1079
+ $schema: rt,
1080
+ $id: it,
1081
+ title: at,
1082
+ description: st,
1083
+ type: lt,
1084
+ properties: ut,
1085
+ required: ct,
1086
+ ignore: dt
1087
+ }, J = ie(se, pt, nt, ot);
1088
+ V.register = (e, t, n, r) => {
1089
+ e["input-group"] = ae, t["input-group"] = J;
1090
+ };
1091
+ V.registerDesigner = (e, t, n) => {
1092
+ e["input-group"] = V, t["input-group"] = J;
1093
+ };
1094
+ const kt = re(V);
1095
+ export {
1096
+ V as FInputGroupDesgin,
1097
+ kt as default,
1098
+ J as propsResolver
1099
+ };