@farris/ui-vue 1.8.0-alpha.0 → 1.8.0-beta.1

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 (193) hide show
  1. package/components/avatar/index.esm.js +138 -1526
  2. package/components/avatar/index.umd.cjs +1 -6
  3. package/components/button/index.css +1 -1
  4. package/components/button/index.esm.js +15951 -15410
  5. package/components/button/index.umd.cjs +27 -27
  6. package/components/calendar/index.esm.js +269 -255
  7. package/components/calendar/index.umd.cjs +3 -3
  8. package/components/collection-property-editor/index.esm.js +243 -229
  9. package/components/collection-property-editor/index.umd.cjs +2 -2
  10. package/components/combo-list/index.esm.js +32 -32
  11. package/components/combo-list/index.umd.cjs +1 -1
  12. package/components/comment/index.esm.js +473 -456
  13. package/components/comment/index.umd.cjs +6 -6
  14. package/components/component/index.css +1 -1
  15. package/components/component/index.esm.js +2503 -2239
  16. package/components/component/index.umd.cjs +2 -2
  17. package/components/condition/index.esm.js +1064 -954
  18. package/components/condition/index.umd.cjs +2 -2
  19. package/components/data-grid/index.esm.js +1 -1
  20. package/components/data-grid/index.umd.cjs +1 -1
  21. package/components/designer-canvas/index.css +1 -1
  22. package/components/designer-canvas/index.esm.js +3894 -3058
  23. package/components/designer-canvas/index.umd.cjs +1 -1
  24. package/components/drawer/index.esm.js +91 -77
  25. package/components/drawer/index.umd.cjs +2 -2
  26. package/components/dynamic-form/index.esm.js +220 -215
  27. package/components/dynamic-form/index.umd.cjs +1 -1
  28. package/components/dynamic-resolver/index.esm.js +145 -131
  29. package/components/dynamic-resolver/index.umd.cjs +2 -2
  30. package/components/dynamic-view/index.esm.js +336 -329
  31. package/components/dynamic-view/index.umd.cjs +1 -1
  32. package/components/events-editor/index.esm.js +1611 -1536
  33. package/components/events-editor/index.umd.cjs +3 -3
  34. package/components/expression-editor/index.esm.js +219 -219
  35. package/components/expression-editor/index.umd.cjs +2 -2
  36. package/components/external-container/index.esm.js +179 -178
  37. package/components/external-container/index.umd.cjs +1 -1
  38. package/components/fieldset/index.esm.js +285 -221
  39. package/components/fieldset/index.umd.cjs +1 -1
  40. package/components/filter-bar/index.css +1 -0
  41. package/components/filter-bar/index.esm.js +1512 -1290
  42. package/components/filter-bar/index.umd.cjs +7 -7
  43. package/components/filter-condition-editor/index.esm.js +851 -831
  44. package/components/filter-condition-editor/index.umd.cjs +3 -3
  45. package/components/flow-canvas/index.esm.js +520 -501
  46. package/components/flow-canvas/index.umd.cjs +8 -8
  47. package/components/image/index.esm.js +101 -79
  48. package/components/image/index.umd.cjs +3 -3
  49. package/components/language-textbox/index.esm.js +330 -251
  50. package/components/language-textbox/index.umd.cjs +2 -2
  51. package/components/list-nav/index.esm.js +399 -313
  52. package/components/list-nav/index.umd.cjs +1 -1
  53. package/components/locale/index.esm.js +3 -0
  54. package/components/locale/index.umd.cjs +1 -1
  55. package/components/lookup/index.esm.js +997 -976
  56. package/components/lookup/index.umd.cjs +2 -2
  57. package/components/mapping-editor/index.esm.js +725 -705
  58. package/components/mapping-editor/index.umd.cjs +1 -1
  59. package/components/message-box/index.esm.js +542 -522
  60. package/components/message-box/index.umd.cjs +1 -1
  61. package/components/nav/index.esm.js +95 -308
  62. package/components/nav/index.umd.cjs +1 -1
  63. package/components/number-range/index.esm.js +115 -107
  64. package/components/number-range/index.umd.cjs +2 -2
  65. package/components/order/index.esm.js +56 -54
  66. package/components/order/index.umd.cjs +1 -1
  67. package/components/page-footer/index.esm.js +135 -123
  68. package/components/page-footer/index.umd.cjs +1 -1
  69. package/components/page-header/index.esm.js +266 -222
  70. package/components/page-header/index.umd.cjs +1 -1
  71. package/components/property-panel/index.esm.js +402 -375
  72. package/components/property-panel/index.umd.cjs +4 -4
  73. package/components/query-solution/index.esm.js +3171 -3061
  74. package/components/query-solution/index.umd.cjs +7 -7
  75. package/components/response-toolbar/index.esm.js +1 -1
  76. package/components/response-toolbar/index.umd.cjs +1 -1
  77. package/components/schema-selector/index.esm.js +1620 -1608
  78. package/components/schema-selector/index.umd.cjs +5 -5
  79. package/components/scroll-navbar/index.esm.js +150 -136
  80. package/components/scroll-navbar/index.umd.cjs +2 -2
  81. package/components/section/index.esm.js +323 -311
  82. package/components/section/index.umd.cjs +2 -2
  83. package/components/sort-condition-editor/index.esm.js +850 -830
  84. package/components/sort-condition-editor/index.umd.cjs +3 -3
  85. package/components/step/index.esm.js +991 -224
  86. package/components/step/index.umd.cjs +1 -1
  87. package/components/tabs/index.esm.js +356 -334
  88. package/components/tabs/index.umd.cjs +1 -1
  89. package/components/wizard/index.esm.js +159 -162
  90. package/components/wizard/index.umd.cjs +1 -1
  91. package/designer/avatar/index.esm.js +1721 -0
  92. package/designer/avatar/index.umd.cjs +6 -0
  93. package/designer/button-edit/index.esm.js +2 -1
  94. package/designer/button-edit/index.umd.cjs +1 -1
  95. package/designer/data-grid/index.esm.js +693 -659
  96. package/designer/data-grid/index.umd.cjs +6 -6
  97. package/designer/data-view/index.esm.js +90 -78
  98. package/designer/data-view/index.umd.cjs +2 -2
  99. package/designer/date-picker/index.esm.js +203 -203
  100. package/designer/date-picker/index.umd.cjs +1 -1
  101. package/designer/drawer/index.esm.js +181 -167
  102. package/designer/drawer/index.umd.cjs +2 -2
  103. package/designer/dynamic-form/index.esm.js +228 -206
  104. package/designer/dynamic-form/index.umd.cjs +2 -2
  105. package/designer/farris-designer.all.esm.js +10014 -9692
  106. package/designer/farris-designer.all.umd.cjs +18 -18
  107. package/designer/index.css +1 -1
  108. package/designer/input-group/index.esm.js +15 -15
  109. package/designer/input-group/index.umd.cjs +1 -1
  110. package/designer/nav/index.esm.js +1719 -0
  111. package/designer/nav/index.umd.cjs +6 -0
  112. package/designer/number-spinner/index.esm.js +8 -7
  113. package/designer/number-spinner/index.umd.cjs +1 -1
  114. package/designer/radio-group/index.esm.js +133 -125
  115. package/designer/radio-group/index.umd.cjs +2 -2
  116. package/designer/response-toolbar/index.esm.js +864 -863
  117. package/designer/response-toolbar/index.umd.cjs +1 -1
  118. package/designer/section/index.esm.js +245 -183
  119. package/designer/section/index.umd.cjs +1 -1
  120. package/designer/tabs/index.css +1 -1
  121. package/designer/tabs/index.esm.js +3667 -2810
  122. package/designer/tabs/index.umd.cjs +2 -2
  123. package/designer/time-picker/index.esm.js +26 -17
  124. package/designer/time-picker/index.umd.cjs +2 -2
  125. package/designer/tree-grid/index.esm.js +69 -37
  126. package/designer/tree-grid/index.umd.cjs +1 -1
  127. package/designer/wizard/index.esm.js +110 -110
  128. package/designer/wizard/index.umd.cjs +3 -3
  129. package/farris.all.esm.js +39993 -39089
  130. package/farris.all.umd.cjs +36 -36
  131. package/index.css +1 -1
  132. package/locales/filter-bar/ui/en.json +1 -0
  133. package/locales/filter-bar/ui/zh-CHS.json +1 -0
  134. package/locales/filter-bar/ui/zh-CHT.json +1 -0
  135. package/locales/ui/en.json +1 -0
  136. package/locales/ui/zh-CHS.json +1 -0
  137. package/locales/ui/zh-CHT.json +1 -0
  138. package/package.json +1 -1
  139. package/types/avatar/designer.d.ts +28 -0
  140. package/types/avatar/index.d.ts +0 -15
  141. package/types/avatar/src/composition/types.d.ts +3 -0
  142. package/types/avatar/src/composition/use-file.d.ts +19 -0
  143. package/types/avatar/src/composition/use-image.d.ts +1 -1
  144. package/types/avatar/src/designer/avatar.design.props.d.ts +24 -0
  145. package/types/avatar/src/property-config/avatar.property-config.d.ts +11 -13
  146. package/types/avatar/src/schema/schema-mapper.d.ts +2 -0
  147. package/types/components.d.ts +3 -0
  148. package/types/condition/index.d.ts +18 -6
  149. package/types/condition/src/condition-fields.component.d.ts +9 -3
  150. package/types/condition/src/condition-fields.design.component.d.ts +9 -3
  151. package/types/condition/src/condition-list.component.d.ts +9 -3
  152. package/types/condition/src/condition.props.d.ts +11 -0
  153. package/types/data-view/designer/property-config/use-appearance.d.ts +17 -10
  154. package/types/data-view/designer/property-config/use-pagination.d.ts +0 -6
  155. package/types/designer-canvas/src/composition/dg-control.d.ts +13 -0
  156. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -0
  157. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +4 -0
  158. package/types/dynamic-resolver/src/converter/tree-auto-check.converter.d.ts +3 -0
  159. package/types/dynamic-view/src/components/maps.d.ts +130 -4
  160. package/types/filter-bar/src/composition/types.d.ts +2 -0
  161. package/types/filter-bar/src/filter-bar.props.d.ts +0 -1
  162. package/types/filter-bar/src/locale/locale.d.ts +2 -1
  163. package/types/filter-bar/src/property-config/filter-bar.property-config.d.ts +0 -1
  164. package/types/language-textbox/index.d.ts +65 -2
  165. package/types/language-textbox/src/designer/language-textbox.design.component.d.ts +36 -0
  166. package/types/language-textbox/src/language-textbox.component.d.ts +38 -1
  167. package/types/language-textbox/src/language-textbox.props.d.ts +20 -0
  168. package/types/lookup/src/components/popup-container.component.d.ts +3 -3
  169. package/types/lookup/src/composition/use-compat.d.ts +28 -0
  170. package/types/lookup/src/composition/use-state.d.ts +1 -0
  171. package/types/message-box/src/message-box.service.d.ts +2 -1
  172. package/types/nav/designer.d.ts +28 -0
  173. package/types/nav/index.d.ts +24 -20
  174. package/types/nav/src/designer/nav.design.props.d.ts +29 -0
  175. package/types/nav/src/designer/use-design-rules.d.ts +3 -0
  176. package/types/nav/src/property-config/nav.property-config.d.ts +9 -0
  177. package/types/nav/src/schema/schema-mapper.d.ts +4 -0
  178. package/types/page-footer/src/designer/use-designer-rules.d.ts +2 -2
  179. package/types/page-header/src/designer/use-designer-rules.d.ts +2 -2
  180. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -0
  181. package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
  182. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -1
  183. package/types/section/src/designer/section.design.props.d.ts +4 -0
  184. package/types/section/src/property-config/section.property-config.d.ts +39 -0
  185. package/types/section/src/schema/toolbar-resolver.d.ts +0 -1
  186. package/types/step/src/designer/use-designer-rules.d.ts +3 -0
  187. package/types/step/src/designer/use-step-creator.d.ts +6 -0
  188. package/types/step/src/property-config/step.property-config.d.ts +15 -0
  189. package/types/step/src/schema/schema-resolver.d.ts +2 -1
  190. package/types/tabs/src/composition/types.d.ts +4 -0
  191. package/types/tabs/src/tabs.props.d.ts +6 -0
  192. package/types/tooltip/index.d.ts +3 -3
  193. package/types/tooltip/src/tooltip.component.d.ts +2 -2
@@ -1,14 +1,14 @@
1
- import { defineComponent as A, ref as F, inject as U, onMounted as z, createVNode as T, computed as k, watch as O, withDirectives as J, vModelText as de, resolveDirective as fe, Fragment as q, toRefs as me } from "vue";
2
- import { useDesignerComponent as pe } from "../designer-canvas/index.esm.js";
1
+ import { defineComponent as A, ref as k, inject as U, onMounted as z, computed as F, createVNode as x, watch as L, withDirectives as J, vModelText as de, resolveDirective as fe, Fragment as q, toRefs as pe } from "vue";
2
+ import { useDesignerComponent as me } from "../designer-canvas/index.esm.js";
3
3
  import { InputBaseProperty as ve } from "../property-panel/index.esm.js";
4
4
  import ge from "../button-edit/index.esm.js";
5
5
  import { createPropsResolver as be, getPropsResolverGenerator as ye } from "../dynamic-resolver/index.esm.js";
6
6
  import { isPlainObject as Z, cloneDeep as Y } from "lodash-es";
7
7
  import { FInputGroup as xe } from "../input-group/index.esm.js";
8
8
  import { LocaleService as Q } from "../locale/index.esm.js";
9
- import { useTextBox as Te, useClear as Ce, withInstall as he, isMobilePhone as we } from "../common/index.esm.js";
10
- import { useNumber as Se, useFormat as Be, useSpinner as Fe, useTextBox as ke, getSpinnerRender as Pe, getNumberTextBoxRender as Le } from "../number-spinner/index.esm.js";
11
- class Oe extends ve {
9
+ import { useTextBox as Ce, useClear as Te, withInstall as he, isMobilePhone as Se } from "../common/index.esm.js";
10
+ import { useNumber as we, useFormat as Be, useSpinner as Fe, useTextBox as ke, getSpinnerRender as Pe, getNumberTextBoxRender as Oe } from "../number-spinner/index.esm.js";
11
+ class Le extends ve {
12
12
  constructor(t, n) {
13
13
  super(t, n);
14
14
  }
@@ -32,7 +32,7 @@ class Oe extends ve {
32
32
  function Ee(e, t) {
33
33
  function n(o, c) {
34
34
  const y = e.schema;
35
- return new Oe(o, t).getPropertyConfig(y, c);
35
+ return new Le(o, t).getPropertyConfig(y, c);
36
36
  }
37
37
  return { getPropsConfig: n };
38
38
  }
@@ -42,70 +42,97 @@ const Me = /* @__PURE__ */ A({
42
42
  placeholder: {
43
43
  type: String,
44
44
  default: ""
45
+ },
46
+ expandable: {
47
+ type: Boolean,
48
+ default: !1
49
+ },
50
+ expandMode: {
51
+ type: String,
52
+ default: "text"
53
+ },
54
+ expandContent: {
55
+ type: String,
56
+ default: ""
57
+ },
58
+ expandDisabled: {
59
+ type: Boolean,
60
+ default: !1
45
61
  }
46
62
  },
47
63
  setup(e, t) {
48
- const n = F(), o = U("design-item-context"), c = U("designer-host-service"), y = Ee(o, c), i = pe(n, o, y);
49
- return z(() => {
64
+ const n = k(), o = U("design-item-context"), c = U("designer-host-service"), y = Ee(o, c), i = me(n, o, y);
65
+ z(() => {
50
66
  n.value.componentInstance = i;
51
- }), t.expose(i.value), () => T("div", {
67
+ });
68
+ const T = F(() => ({
69
+ "input-group-append input-append-wrapper": !0,
70
+ "input-append-button": e.expandMode === "button",
71
+ "input-append-text": e.expandMode === "text"
72
+ }));
73
+ return t.expose(i.value), () => x("div", {
52
74
  class: "f-button-edit f-cmp-inputgroup f-button-edit-nowrap",
53
- ref: n
54
- }, [T("div", {
75
+ ref: n,
76
+ style: "pointer-events: none;"
77
+ }, [x("div", {
55
78
  class: "input-group"
56
- }, [T("input", {
79
+ }, [x("input", {
57
80
  autocomplete: "off",
58
81
  class: "text-left form-control f-utils-fill",
59
82
  readonly: "true",
60
83
  type: "text",
61
84
  placeholder: e.placeholder
62
- }, null), T("div", {
85
+ }, null), x("div", {
63
86
  class: "input-group-append"
64
- }, [T("span", {
87
+ }, [x("span", {
65
88
  class: "input-group-text input-group-append-button"
66
- }, [T("i", {
89
+ }, [x("i", {
67
90
  class: "f-icon f-icon-yxs_earth"
68
- }, null)])])])]);
91
+ }, null)])]), e.expandable && x("div", {
92
+ class: T.value
93
+ }, [x("div", {
94
+ class: "input-group-text"
95
+ }, [e.expandContent])])])]);
69
96
  }
70
97
  });
71
98
  function X(e, t) {
72
99
  let n;
73
100
  function o(l) {
74
- const { properties: s, title: m, ignore: r } = l, a = r && Array.isArray(r), f = Object.keys(s).reduce((b, u) => ((!a || !r.find((h) => h === u)) && (b[u] = s[u].type === "object" && s[u].properties ? o(s[u]) : Y(s[u].default)), b), {});
75
- if (m && (!a || !r.find((b) => b === "id"))) {
76
- const b = m.toLowerCase().replace(/-/g, "_");
101
+ const { properties: s, title: p, ignore: r } = l, a = r && Array.isArray(r), f = Object.keys(s).reduce((b, u) => ((!a || !r.find((h) => h === u)) && (b[u] = s[u].type === "object" && s[u].properties ? o(s[u]) : Y(s[u].default)), b), {});
102
+ if (p && (!a || !r.find((b) => b === "id"))) {
103
+ const b = p.toLowerCase().replace(/-/g, "_");
77
104
  f.id = `${b}_${Math.random().toString().slice(2, 6)}`;
78
105
  }
79
106
  return f;
80
107
  }
81
108
  function c(l) {
82
- const { properties: s, title: m, required: r } = l;
109
+ const { properties: s, title: p, required: r } = l;
83
110
  if (r && Array.isArray(r)) {
84
111
  const a = r.reduce((f, b) => (f[b] = s[b].type === "object" && s[b].properties ? o(s[b]) : Y(s[b].default), f), {});
85
- if (m && r.find((f) => f === "id")) {
86
- const f = m.toLowerCase().replace(/-/g, "_");
112
+ if (p && r.find((f) => f === "id")) {
113
+ const f = p.toLowerCase().replace(/-/g, "_");
87
114
  a.id = `${f}_${Math.random().toString().slice(2, 6)}`;
88
115
  }
89
116
  return a;
90
117
  }
91
118
  return {
92
- type: m
119
+ type: p
93
120
  };
94
121
  }
95
- function y(l, s = {}, m) {
122
+ function y(l, s = {}, p) {
96
123
  const r = e[l];
97
124
  if (r) {
98
125
  let a = c(r);
99
126
  const f = t[l];
100
- return a = f ? f({ getSchemaByType: y }, a, s, m) : a, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(a), a;
127
+ return a = f ? f({ getSchemaByType: y }, a, s, p) : a, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(a), a;
101
128
  }
102
129
  return null;
103
130
  }
104
131
  function i(l, s) {
105
- const m = o(s);
106
- return Object.keys(m).reduce((r, a) => (Object.prototype.hasOwnProperty.call(l, a) && (r[a] && Z(r[a]) && Z(l[a] || !l[a]) ? Object.assign(r[a], l[a] || {}) : r[a] = l[a]), r), m), m;
132
+ const p = o(s);
133
+ return Object.keys(p).reduce((r, a) => (Object.prototype.hasOwnProperty.call(l, a) && (r[a] && Z(r[a]) && Z(l[a] || !l[a]) ? Object.assign(r[a], l[a] || {}) : r[a] = l[a]), r), p), p;
107
134
  }
108
- function C(l, s) {
135
+ function T(l, s) {
109
136
  return Object.keys(l).filter((r) => l[r] != null).reduce((r, a) => {
110
137
  if (s.has(a)) {
111
138
  const f = s.get(a);
@@ -120,18 +147,18 @@ function X(e, t) {
120
147
  return r;
121
148
  }, {});
122
149
  }
123
- function w(l, s, m = /* @__PURE__ */ new Map()) {
150
+ function S(l, s, p = /* @__PURE__ */ new Map()) {
124
151
  const r = i(l, s);
125
- return C(r, m);
152
+ return T(r, p);
126
153
  }
127
154
  function d(l) {
128
- var m;
155
+ var p;
129
156
  const s = l.type;
130
157
  if (s) {
131
158
  const r = e[s];
132
159
  if (!r)
133
160
  return l;
134
- const a = i(l, r), f = ((m = l.editor) == null ? void 0 : m.type) || "";
161
+ const a = i(l, r), f = ((p = l.editor) == null ? void 0 : p.type) || "";
135
162
  if (f) {
136
163
  const b = e[f], u = i(l.editor, b);
137
164
  a.editor = u;
@@ -143,20 +170,20 @@ function X(e, t) {
143
170
  function v(l) {
144
171
  n = l;
145
172
  }
146
- return { getSchemaByType: y, resolveSchemaWithDefaultValue: d, resolveSchemaToProps: w, mappingSchemaToProps: C, setDesignerContext: v };
173
+ return { getSchemaByType: y, resolveSchemaWithDefaultValue: d, resolveSchemaToProps: S, mappingSchemaToProps: T, setDesignerContext: v };
147
174
  }
148
- const Ie = {}, Re = {}, { resolveSchemaWithDefaultValue: Ne } = X(Ie, Re);
149
- function je(e = {}) {
175
+ const Ie = {}, De = {}, { resolveSchemaWithDefaultValue: Re } = X(Ie, De);
176
+ function Ne(e = {}) {
150
177
  function t(d, v, l, s) {
151
178
  if (typeof l == "number")
152
179
  return s[d].length === l;
153
180
  if (typeof l == "object") {
154
- const m = Object.keys(l)[0], r = l[m];
155
- if (m === "not")
181
+ const p = Object.keys(l)[0], r = l[p];
182
+ if (p === "not")
156
183
  return Number(s[d].length) !== Number(r);
157
- if (m === "moreThan")
184
+ if (p === "moreThan")
158
185
  return Number(s[d].length) >= Number(r);
159
- if (m === "lessThan")
186
+ if (p === "lessThan")
160
187
  return Number(s[d].length) <= Number(r);
161
188
  }
162
189
  return !1;
@@ -174,14 +201,14 @@ function je(e = {}) {
174
201
  return typeof v == "number" ? [{ target: l, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: l, operator: "getProperty", param: d, value: !!v }] : typeof v == "object" ? Object.keys(v).map((s) => {
175
202
  if (s === "length")
176
203
  return { target: l, operator: "length", param: null, value: v[s] };
177
- const m = s, r = v[s];
178
- return { target: l, operator: "getProperty", param: m, value: r };
204
+ const p = s, r = v[s];
205
+ return { target: l, operator: "getProperty", param: p, value: r };
179
206
  }) : [];
180
207
  }
181
208
  function y(d) {
182
209
  return Object.keys(d).reduce((l, s) => {
183
- const m = c(s, d[s]);
184
- return l.push(...m), l;
210
+ const p = c(s, d[s]);
211
+ return l.push(...p), l;
185
212
  }, []);
186
213
  }
187
214
  function i(d, v) {
@@ -191,16 +218,16 @@ function je(e = {}) {
191
218
  }
192
219
  return !1;
193
220
  }
194
- function C(d, v) {
195
- return y(d).reduce((m, r) => m && i(r, v), !0);
221
+ function T(d, v) {
222
+ return y(d).reduce((p, r) => p && i(r, v), !0);
196
223
  }
197
- function w(d, v) {
198
- const l = Object.keys(d), s = l.includes("allOf"), m = l.includes("anyOf"), r = s || m, b = (r ? d[r ? s ? "allOf" : "anyOf" : "allOf"] : [d]).map((h) => C(h, v));
224
+ function S(d, v) {
225
+ const l = Object.keys(d), s = l.includes("allOf"), p = l.includes("anyOf"), r = s || p, b = (r ? d[r ? s ? "allOf" : "anyOf" : "allOf"] : [d]).map((h) => T(h, v));
199
226
  return s ? !b.includes(!1) : b.includes(!0);
200
227
  }
201
- return { parseValueSchema: w };
228
+ return { parseValueSchema: S };
202
229
  }
203
- const De = {
230
+ const je = {
204
231
  convertTo: (e, t, n, o) => {
205
232
  e.appearance || (e.appearance = {}), e.appearance[t] = n;
206
233
  },
@@ -258,10 +285,12 @@ const De = {
258
285
  drawer: { type: "drawer", name: "抽屉" },
259
286
  "external-container": { type: "external-container", name: "外部容器", icon: "content-container" },
260
287
  "list-nav": { type: "list-nav", name: "列表导航" },
288
+ nav: { type: "nav", name: "标签类导航" },
261
289
  "list-view": { type: "list-view", name: "列表" },
262
290
  "filter-bar": { type: "filter-bar", name: "筛选条" },
263
291
  "language-textbox": { type: "language-textbox", name: "多语输入框" },
264
292
  image: { type: "image", name: "图像" },
293
+ avatar: { type: "avatar", name: "头像" },
265
294
  "discussion-editor": { type: "discussion-editor", name: "评论编辑区" },
266
295
  "discussion-list": { type: "discussion-list", name: "评论列表" },
267
296
  comment: { type: "comment", name: "评论区" },
@@ -269,7 +298,8 @@ const De = {
269
298
  calendar: { type: "calendar", name: "日历", icon: "date-picker" },
270
299
  wizard: { type: "wizard", name: "向导", icon: "wizard" },
271
300
  "wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
272
- "wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" }
301
+ "wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
302
+ step: { type: "step", name: "步骤条", icon: "step" }
273
303
  }, $e = {
274
304
  convertFrom: (e, t, n) => {
275
305
  var c;
@@ -513,10 +543,20 @@ const De = {
513
543
  </span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
514
544
  },
515
545
  convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
546
+ }, lt = {
547
+ convertTo: (e, t, n, o) => {
548
+ e.hierarchy || (e.hierarchy = {
549
+ cascadeOption: {}
550
+ }), e.hierarchy.cascadeOption || (e.hierarchy.cascadeOption = {}), e.hierarchy.cascadeOption[t] = n;
551
+ },
552
+ convertFrom: (e, t, n) => {
553
+ var o, c;
554
+ return !!((c = (o = e.hierarchy) == null ? void 0 : o.cascadeOption) != null && c[t]);
555
+ }
516
556
  };
517
557
  function K(e, t, n) {
518
558
  const o = /* @__PURE__ */ new Map([
519
- ["/converter/appearance.converter", De],
559
+ ["/converter/appearance.converter", je],
520
560
  ["/converter/buttons.converter", ze],
521
561
  ["/converter/property-editor.converter", Ve],
522
562
  ["/converter/items-count.converter", Xe],
@@ -537,7 +577,8 @@ function K(e, t, n) {
537
577
  ["/converter/grid-sort.converter", nt],
538
578
  ["/converter/grid-filter.converter", ot],
539
579
  ["/converter/row-option.converter", rt],
540
- ["/converter/change-formatter-type.converter", at]
580
+ ["/converter/change-formatter-type.converter", at],
581
+ ["/converter/tree-auto-check.converter", lt]
541
582
  ]), c = /* @__PURE__ */ new Map([
542
583
  ["string", { type: "input-group", enableClear: !1 }],
543
584
  ["boolean", {
@@ -562,14 +603,14 @@ function K(e, t, n) {
562
603
  ["array", { type: "button-edit" }],
563
604
  ["number", { type: "number-spinner", placeholder: "" }],
564
605
  ["events-editor", { type: "events-editor", hide: !0 }]
565
- ]), y = je();
606
+ ]), y = Ne();
566
607
  function i(r, a) {
567
608
  return () => y.parseValueSchema(r, a);
568
609
  }
569
- function C(r, a, f) {
610
+ function T(r, a, f) {
570
611
  return r.includes("visible") && a.visible !== void 0 ? typeof a.visible == "boolean" ? () => !!a.visible : a.visible === void 0 ? !0 : i(a.visible, f) : () => !0;
571
612
  }
572
- function w(r, a, f) {
613
+ function S(r, a, f) {
573
614
  return r.includes("readonly") && a.readonly !== void 0 ? typeof a.readonly == "boolean" ? () => !!a.readonly : i(a.readonly, f) : () => !1;
574
615
  }
575
616
  function d(r, a) {
@@ -578,79 +619,79 @@ function K(e, t, n) {
578
619
  }
579
620
  function v(r, a, f, b, u, h = "", P = "") {
580
621
  return Object.keys(r).map((g) => {
581
- const S = F(1), L = g, p = r[g], x = Object.keys(p), R = p.title, E = p.type, j = c.get(E) || { type: "input-group", enableClear: !1 }, N = p.editor ? Object.assign({}, j, p.editor) : Object.assign({}, j), $ = C(x, p, a), V = w(x, p, a);
582
- N.readonly = N.readonly === void 0 ? V() : N.readonly;
583
- const G = p.type === "cascade" ? v(p.properties, a, f, b, u, h, P) : [], H = !0;
584
- let M = d(p, P);
585
- const ae = k({
622
+ const w = k(1), O = g, m = r[g], C = Object.keys(m), D = m.title, E = m.type, N = c.get(E) || { type: "input-group", enableClear: !1 }, R = m.editor ? Object.assign({}, N, m.editor) : Object.assign({}, N), $ = T(C, m, a), V = S(C, m, a);
623
+ R.readonly = R.readonly === void 0 ? V() : R.readonly;
624
+ const G = m.type === "cascade" ? v(m.properties, a, f, b, u, h, P) : [], H = !0;
625
+ let M = d(m, P);
626
+ const ae = F({
586
627
  get() {
587
- if (S.value) {
588
- if (["class", "style"].find((ce) => ce === L) && !M && (M = o.get("/converter/appearance.converter") || null), M && M.convertFrom)
628
+ if (w.value) {
629
+ if (["class", "style"].find((ce) => ce === O) && !M && (M = o.get("/converter/appearance.converter") || null), M && M.convertFrom)
589
630
  return M.convertFrom(f, g, u, h);
590
631
  const I = f[g];
591
- return Object.prototype.hasOwnProperty.call(p, "defaultValue") && (I === void 0 || typeof I == "string" && I === "") ? p.type === "boolean" ? p.defaultValue : p.defaultValue || "" : I;
632
+ return Object.prototype.hasOwnProperty.call(m, "defaultValue") && (I === void 0 || typeof I == "string" && I === "") ? m.type === "boolean" ? m.defaultValue : m.defaultValue || "" : I;
592
633
  }
593
634
  return null;
594
635
  },
595
636
  set(I) {
596
- S.value += 1, M && M.convertTo ? (M.convertTo(b, g, I, u, h), M.convertTo(f, g, I, u, h)) : (b[g] = I, f[g] = I);
637
+ w.value += 1, M && M.convertTo ? (M.convertTo(b, g, I, u, h), M.convertTo(f, g, I, u, h)) : (b[g] = I, f[g] = I);
597
638
  }
598
- }), { refreshPanelAfterChanged: le, description: ie, isExpand: ue, parentPropertyID: se } = p, _ = { propertyID: L, propertyName: R, propertyType: E, propertyValue: ae, editor: N, visible: $, readonly: V, cascadeConfig: G, hideCascadeTitle: H, refreshPanelAfterChanged: le, description: ie, isExpand: ue, parentPropertyID: se };
599
- return a[L] = _, _;
639
+ }), { refreshPanelAfterChanged: le, description: ie, isExpand: ue, parentPropertyID: se } = m, _ = { propertyID: O, propertyName: D, propertyType: E, propertyValue: ae, editor: R, visible: $, readonly: V, cascadeConfig: G, hideCascadeTitle: H, refreshPanelAfterChanged: le, description: ie, isExpand: ue, parentPropertyID: se };
640
+ return a[O] = _, _;
600
641
  });
601
642
  }
602
643
  function l(r, a, f = {}) {
603
644
  const b = {}, u = e[r];
604
645
  return u && u.categories ? Object.keys(u.categories).map((P) => {
605
- const B = u.categories[P], g = B == null ? void 0 : B.title, S = v(B.properties || {}, b, {}, f, a);
606
- return { categoryId: P, categoryName: g, properties: S };
646
+ const B = u.categories[P], g = B == null ? void 0 : B.title, w = v(B.properties || {}, b, {}, f, a);
647
+ return { categoryId: P, categoryName: g, properties: w };
607
648
  }) : [];
608
649
  }
609
650
  function s(r, a, f, b, u = "") {
610
- const h = a.$ref.schema, P = a.$ref.converter, B = f[h], g = B.type, S = n(B), L = {}, p = e[g];
611
- if (p && p.categories) {
612
- const x = p.categories[r], R = x == null ? void 0 : x.title;
613
- P && Object.keys(x.properties).forEach((N) => {
614
- x.properties[N].$converter = P;
651
+ const h = a.$ref.schema, P = a.$ref.converter, B = f[h], g = B.type, w = n(B), O = {}, m = e[g];
652
+ if (m && m.categories) {
653
+ const C = m.categories[r], D = C == null ? void 0 : C.title;
654
+ P && Object.keys(C.properties).forEach((R) => {
655
+ C.properties[R].$converter = P;
615
656
  });
616
- const E = (x == null ? void 0 : x.properties) || {}, j = v(E, L, S, B, b, u);
617
- return { categoryId: r, categoryName: R, properties: j };
657
+ const E = (C == null ? void 0 : C.properties) || {}, N = v(E, O, w, B, b, u);
658
+ return { categoryId: r, categoryName: D, properties: N };
618
659
  }
619
660
  return { categoryId: r, categoryName: "", properties: [] };
620
661
  }
621
- function m(r, a, f, b, u) {
662
+ function p(r, a, f, b, u) {
622
663
  const h = r.type, P = n(r), B = {};
623
664
  let g = u || e[h];
624
665
  if (!(g && Object.keys(g).length > 0) && f && f.getPropConfig && (g = f.getPropConfig(b)), g && g.categories) {
625
- const L = [];
626
- return Object.keys(g.categories).map((p) => {
627
- const x = g.categories[p];
628
- if (x.$ref) {
629
- L.push(s(p, x, r, a, b));
666
+ const O = [];
667
+ return Object.keys(g.categories).map((m) => {
668
+ const C = g.categories[m];
669
+ if (C.$ref) {
670
+ O.push(s(m, C, r, a, b));
630
671
  return;
631
672
  }
632
- const R = x == null ? void 0 : x.title, E = x == null ? void 0 : x.tabId, j = x == null ? void 0 : x.tabName, N = x == null ? void 0 : x.hide, $ = x == null ? void 0 : x.hideTitle, V = v(x.properties || {}, B, P, r, a, b, x.$converter), { setPropertyRelates: G } = x, H = x == null ? void 0 : x.parentPropertyID;
633
- L.push({ categoryId: p, categoryName: R, tabId: E, tabName: j, hide: N, properties: V, hideTitle: $, setPropertyRelates: G, parentPropertyID: H });
634
- }), L;
673
+ const D = C == null ? void 0 : C.title, E = C == null ? void 0 : C.tabId, N = C == null ? void 0 : C.tabName, R = C == null ? void 0 : C.hide, $ = C == null ? void 0 : C.hideTitle, V = v(C.properties || {}, B, P, r, a, b, C.$converter), { setPropertyRelates: G } = C, H = C == null ? void 0 : C.parentPropertyID;
674
+ O.push({ categoryId: m, categoryName: D, tabId: E, tabName: N, hide: R, properties: V, hideTitle: $, setPropertyRelates: G, parentPropertyID: H });
675
+ }), O;
635
676
  }
636
677
  return [];
637
678
  }
638
679
  return {
639
- getPropertyConfigBySchema: m,
680
+ getPropertyConfigBySchema: p,
640
681
  getPropertyConfigByType: l,
641
682
  propertyConverterMap: o
642
683
  };
643
684
  }
644
- const lt = {}, it = {};
645
- K(lt, it, Ne);
646
- const ut = {}, st = {}, { resolveSchemaWithDefaultValue: ct } = X(ut, st), dt = {}, ft = {};
647
- K(dt, ft, ct);
685
+ const it = {}, ut = {};
686
+ K(it, ut, Re);
687
+ const st = {}, ct = {}, { resolveSchemaWithDefaultValue: dt } = X(st, ct), ft = {}, pt = {};
688
+ K(ft, pt, dt);
648
689
  function mt(e, t) {
649
690
  return { customClass: t.class, customStyle: t.style };
650
691
  }
651
692
  const ee = /* @__PURE__ */ new Map([
652
693
  ["appearance", mt]
653
- ]), pt = "https://json-schema.org/draft/2020-12/schema", vt = "https://farris-design.gitee.io/input-group.schema.json", gt = "language-textbox", bt = "A Farris Input Component", yt = "object", xt = {
694
+ ]), vt = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-design.gitee.io/input-group.schema.json", bt = "language-textbox", yt = "A Farris Input Component", xt = "object", Ct = {
654
695
  id: {
655
696
  description: "The unique identifier for a Input Group",
656
697
  type: "string"
@@ -761,23 +802,48 @@ const ee = /* @__PURE__ */ new Map([
761
802
  description: "各语种最大字符数",
762
803
  type: "object",
763
804
  default: null
805
+ },
806
+ expandable: {
807
+ description: "",
808
+ type: "boolean",
809
+ default: !1
810
+ },
811
+ expandMode: {
812
+ description: "",
813
+ type: "string",
814
+ default: "text"
815
+ },
816
+ expandContent: {
817
+ description: "",
818
+ type: "string",
819
+ default: ""
820
+ },
821
+ expandDisabled: {
822
+ description: "",
823
+ type: "boolean",
824
+ default: !1
825
+ },
826
+ onExpandClick: {
827
+ description: "",
828
+ type: "string",
829
+ default: ""
764
830
  }
765
831
  }, Tt = [
766
832
  "type"
767
- ], Ct = [
833
+ ], ht = [
768
834
  "id",
769
835
  "appearance",
770
836
  "binding",
771
837
  "visible"
772
838
  ], te = {
773
- $schema: pt,
774
- $id: vt,
775
- title: gt,
776
- description: bt,
777
- type: yt,
778
- properties: xt,
839
+ $schema: vt,
840
+ $id: gt,
841
+ title: bt,
842
+ description: yt,
843
+ type: xt,
844
+ properties: Ct,
779
845
  required: Tt,
780
- ignore: Ct
846
+ ignore: ht
781
847
  };
782
848
  function ne(e, t, n) {
783
849
  return t;
@@ -794,13 +860,21 @@ const W = {
794
860
  dropDownIcon: { type: String, default: '<span class="f-icon f-icon-yxs_earth"></span>' },
795
861
  tabIndex: { type: Number, default: -1 },
796
862
  enableTitle: { type: Boolean, default: !0 },
797
- maxLength: { type: Number, default: null }
798
- }, Gt = be(W, te, ee, ne), oe = ye(
863
+ maxLength: { type: Number, default: null },
864
+ /** 是否可扩展 */
865
+ expandable: { type: Boolean, default: !1 },
866
+ /** 扩展模式 text | button */
867
+ expandMode: { type: String, default: "text" },
868
+ /** 扩展文本内容 */
869
+ expandContent: { type: String, default: "" },
870
+ /** 扩展按钮是否禁用 */
871
+ expandDisabled: { type: Boolean, default: !1 }
872
+ }, Ht = be(W, te, ee, ne), oe = ye(
799
873
  W,
800
874
  te,
801
875
  ee,
802
876
  ne
803
- ), ht = /* @__PURE__ */ A({
877
+ ), St = /* @__PURE__ */ A({
804
878
  name: "LanguageContents",
805
879
  props: {
806
880
  languages: {
@@ -822,7 +896,7 @@ const W = {
822
896
  },
823
897
  emits: ["update:modelValue"],
824
898
  setup(e, t) {
825
- const n = F(e.languages), o = F(e.modelValue || {}), c = F();
899
+ const n = k(e.languages), o = k(e.modelValue || {}), c = k();
826
900
  return z(() => {
827
901
  setTimeout(() => {
828
902
  var y, i;
@@ -830,29 +904,29 @@ const W = {
830
904
  }, 130);
831
905
  }), () => {
832
906
  var y;
833
- return T("ul", {
907
+ return x("ul", {
834
908
  class: "list-group",
835
909
  style: "background: white;",
836
910
  ref: c
837
- }, [(y = n.value) == null ? void 0 : y.map((i) => T("li", {
911
+ }, [(y = n.value) == null ? void 0 : y.map((i) => x("li", {
838
912
  class: "list-group-item border-0 p-2 px-2"
839
- }, [T("div", {
913
+ }, [x("div", {
840
914
  class: "farris-group-wrap form-inline farris-form-inline"
841
- }, [T("div", {
915
+ }, [x("div", {
842
916
  class: "form-group farris-form-group"
843
- }, [T("label", {
917
+ }, [x("label", {
844
918
  for: "hpinput01",
845
919
  class: "col-form-label"
846
- }, [T("span", {
920
+ }, [x("span", {
847
921
  class: "farris-label-text",
848
922
  title: i.name
849
- }, [i.name])]), T("div", {
923
+ }, [i.name])]), x("div", {
850
924
  class: "farris-input-wrap"
851
- }, [T(xe, {
925
+ }, [x(xe, {
852
926
  id: e.id + "_" + i.code,
853
927
  modelValue: o.value[i.code],
854
- "onUpdate:modelValue": (C) => {
855
- o.value[i.code] = C, t.emit("update:modelValue", o.value);
928
+ "onUpdate:modelValue": (T) => {
929
+ o.value[i.code] = T, t.emit("update:modelValue", o.value);
856
930
  },
857
931
  updateOn: "change",
858
932
  maxLength: e.maxLength
@@ -951,69 +1025,69 @@ const W = {
951
1025
  /** 扩展按钮是否禁用 */
952
1026
  expandDisabled: { type: Boolean, default: !1 }
953
1027
  };
954
- function St(e, t) {
955
- const n = F(e.groupText), o = k(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), c = k(() => e.type === "password" || e.showType === "password" || e.enableClear || !!e.groupText || o.value);
956
- return { appendedButtonClass: k(() => ({
1028
+ function Bt(e, t) {
1029
+ const n = k(e.groupText), o = F(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), c = F(() => e.type === "password" || e.showType === "password" || e.enableClear || !!e.groupText || o.value);
1030
+ return { appendedButtonClass: F(() => ({
957
1031
  "input-group-append": !0,
958
1032
  "append-force-show": o.value
959
1033
  })), appendedContent: n, shouldShowAppendedButton: c };
960
1034
  }
961
- function Bt(e, t, n, o) {
962
- const { appendedContent: c } = o, y = F(e.enableViewPassword), i = k(() => e.type === "password" || e.showType === "password"), C = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', w = '<span class="f-icon f-icon-eye"></span>', d = F(!1);
963
- O(() => [e.readonly, e.disabled], ([s, m]) => {
964
- i.value && (n.value = s || m ? "password" : n.value, c.value = e.readonly || e.disabled ? "" : y.value ? w : "");
1035
+ function Ft(e, t, n, o) {
1036
+ const { appendedContent: c } = o, y = k(e.enableViewPassword), i = F(() => e.type === "password" || e.showType === "password"), T = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', S = '<span class="f-icon f-icon-eye"></span>', d = k(!1);
1037
+ L(() => [e.readonly, e.disabled], ([s, p]) => {
1038
+ i.value && (n.value = s || p ? "password" : n.value, c.value = e.readonly || e.disabled ? "" : y.value ? S : "");
965
1039
  });
966
1040
  function v() {
967
- return d.value = !d.value, n.value = d.value ? "text" : "password", c.value = d.value ? C : w, !1;
1041
+ return d.value = !d.value, n.value = d.value ? "text" : "password", c.value = d.value ? T : S, !1;
968
1042
  }
969
1043
  function l() {
970
- n.value = i.value ? "password" : n.value, i.value && (c.value = e.readonly || e.disabled ? "" : y.value ? w : "");
1044
+ n.value = i.value ? "password" : n.value, i.value && (c.value = e.readonly || e.disabled ? "" : y.value ? S : "");
971
1045
  }
972
1046
  return l(), { isPassword: i, onClickAppendedButton: v };
973
1047
  }
974
- function Ft(e, t) {
975
- const n = Se(e, t), o = Be(e, t, n), c = Fe(e, t, o, n), y = ke(e, t, o, n, c), i = Pe(e, t, c), {
976
- displayValue: C,
977
- modelValue: w,
1048
+ function kt(e, t) {
1049
+ const n = we(e, t), o = Be(e, t, n), c = Fe(e, t, o, n), y = ke(e, t, o, n, c), i = Pe(e, t, c), {
1050
+ displayValue: T,
1051
+ modelValue: S,
978
1052
  getRealValue: d
979
- } = n, v = Le(e, t, y), {
1053
+ } = n, v = Oe(e, t, y), {
980
1054
  format: l
981
1055
  } = o, {
982
1056
  isFocus: s
983
- } = y, m = k(() => !e.disabled && !e.readonly);
1057
+ } = y, p = F(() => !e.disabled && !e.readonly);
984
1058
  return z(() => {
985
1059
  const r = d(e.modelValue);
986
- C.value = l(r);
987
- }), O(() => [e.value], ([r]) => {
1060
+ T.value = l(r);
1061
+ }), L(() => [e.value], ([r]) => {
988
1062
  const a = d(r);
989
- w.value = a, C.value = l(a);
990
- }), O(() => [e.modelValue], ([r]) => {
991
- r !== w.value && (w.value = r, !s.value && (C.value = l(d(r))));
992
- }), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
993
- C.value = l(w.value);
994
- }), () => T("div", {
1063
+ S.value = a, T.value = l(a);
1064
+ }), L(() => [e.modelValue], ([r]) => {
1065
+ r !== S.value && (S.value = r, !s.value && (T.value = l(d(r))));
1066
+ }), L(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1067
+ T.value = l(S.value);
1068
+ }), () => x("div", {
995
1069
  class: "input-group flex-row f-cmp-number-spinner",
996
1070
  style: "border:none;"
997
- }, [v(), m.value && i()]);
1071
+ }, [v(), p.value && i()]);
998
1072
  }
999
- function kt(e) {
1073
+ function Pt(e) {
1000
1074
  return e ? Q.getRealPropertyValue(e, "请输入", "input-group.placeholder") : "";
1001
1075
  }
1002
- function Pt(e, t, n, o) {
1003
- const c = F(), {
1076
+ function Ot(e, t, n, o) {
1077
+ const c = k(), {
1004
1078
  inputGroupClass: y,
1005
1079
  onBlur: i,
1006
- onFocus: C
1080
+ onFocus: T
1007
1081
  } = o, {
1008
- clearButtonClass: w,
1082
+ clearButtonClass: S,
1009
1083
  clearButtonStyle: d
1010
- } = n, v = k(() => e.maxLength ? e.maxLength : e.modelValue ? e.modelValue.length : 0), l = (g) => {
1011
- var S, L;
1012
- g.stopPropagation(), t.emit("update:modelValue", (S = g.target) == null ? void 0 : S.value), t.emit("valueChange", (L = g.target) == null ? void 0 : L.value);
1013
- }, s = k(() => ({
1084
+ } = n, v = F(() => e.maxLength ? e.maxLength : e.modelValue ? e.modelValue.length : 0), l = (g) => {
1085
+ var w, O;
1086
+ g.stopPropagation(), t.emit("update:modelValue", (w = g.target) == null ? void 0 : w.value), t.emit("valueChange", (O = g.target) == null ? void 0 : O.value);
1087
+ }, s = F(() => ({
1014
1088
  "form-control": !0,
1015
1089
  "h-100": e.autoHeight
1016
- })), m = k(() => e.enableClear && !e.readonly && !e.disabled), r = kt(e.placeholder), a = k(() => e.disabled || e.readonly ? "" : r), f = k(() => ({
1090
+ })), p = F(() => e.enableClear && !e.readonly && !e.disabled), r = Pt(e.placeholder), a = F(() => e.disabled || e.readonly ? "" : r), f = F(() => ({
1017
1091
  ...d.value,
1018
1092
  position: "absolute",
1019
1093
  right: "5px",
@@ -1023,7 +1097,7 @@ function Pt(e, t, n, o) {
1023
1097
  "border-radius": "100%",
1024
1098
  width: "16px",
1025
1099
  height: "16px"
1026
- })), b = k(() => {
1100
+ })), b = F(() => {
1027
1101
  const g = {
1028
1102
  resize: "none",
1029
1103
  "padding-right": "15px"
@@ -1036,7 +1110,7 @@ function Pt(e, t, n, o) {
1036
1110
  g.stopPropagation(), c.value.value = "", t.emit("update:modelValue", ""), t.emit("valueChange", "");
1037
1111
  };
1038
1112
  function h() {
1039
- return J(T("textarea", {
1113
+ return J(x("textarea", {
1040
1114
  class: s.value,
1041
1115
  id: e.id,
1042
1116
  "onUpdate:modelValue": (g) => e.modelValue = g,
@@ -1051,23 +1125,23 @@ function Pt(e, t, n, o) {
1051
1125
  autofocus: e.autofocus,
1052
1126
  rows: e.rows,
1053
1127
  onInput: l,
1054
- onFocus: C,
1128
+ onFocus: T,
1055
1129
  onBlur: i,
1056
1130
  style: b.value
1057
1131
  }, null), [[de, e.modelValue]]);
1058
1132
  }
1059
1133
  function P() {
1060
- return e.showCount && T("span", {
1134
+ return e.showCount && x("span", {
1061
1135
  style: "position: absolute;bottom: 0;right: 5px;z-index:999;font-size:12px"
1062
1136
  }, [`${e.modelValue ? e.modelValue.length : 0}/${v.value}`]);
1063
1137
  }
1064
1138
  function B() {
1065
- return m.value && T("span", {
1139
+ return p.value && x("span", {
1066
1140
  id: "clearIcon",
1067
- class: w.value,
1141
+ class: S.value,
1068
1142
  style: f.value,
1069
1143
  onClick: (g) => u(g)
1070
- }, [T("i", {
1144
+ }, [x("i", {
1071
1145
  class: "f-icon modal_close",
1072
1146
  style: "font-size:8px;color:#fff"
1073
1147
  }, null)]);
@@ -1079,12 +1153,12 @@ function Pt(e, t, n, o) {
1079
1153
  };
1080
1154
  }
1081
1155
  function Lt(e, t, n, o) {
1082
- const c = F(), y = F(e.autocomplete), i = F(e.enableTitle), {
1083
- isPassword: C
1084
- } = n, w = F(e.minLength), d = F(e.maxLength), v = F(e.tabIndex), {
1156
+ const c = k(), y = k(e.autocomplete), i = k(e.enableTitle), {
1157
+ isPassword: T
1158
+ } = n, S = k(e.minLength), d = k(e.maxLength), v = k(e.tabIndex), {
1085
1159
  disabled: l,
1086
1160
  displayText: s,
1087
- inputType: m,
1161
+ inputType: p,
1088
1162
  onBlur: r,
1089
1163
  onFocus: a,
1090
1164
  onInput: f,
@@ -1094,30 +1168,30 @@ function Lt(e, t, n, o) {
1094
1168
  onMousedown: P,
1095
1169
  onMouseup: B,
1096
1170
  onTextBoxValueChange: g,
1097
- readonly: S,
1098
- placeholder: L,
1099
- textBoxClass: p,
1100
- textBoxTitle: x
1171
+ readonly: w,
1172
+ placeholder: O,
1173
+ textBoxClass: m,
1174
+ textBoxTitle: C
1101
1175
  } = o;
1102
1176
  return z(() => {
1103
- var R, E;
1104
- e.selectOnCreated && ((R = c.value) == null || R.select()), e.focusOnCreated && ((E = c.value) == null || E.focus({
1177
+ var D, E;
1178
+ e.selectOnCreated && ((D = c.value) == null || D.select()), e.focusOnCreated && ((E = c.value) == null || E.focus({
1105
1179
  preventScroll: !0
1106
1180
  }));
1107
- }), () => T("input", {
1181
+ }), () => x("input", {
1108
1182
  id: e.id + "_textbox",
1109
1183
  ref: c,
1110
1184
  name: "input-group-value",
1111
1185
  autocomplete: y.value,
1112
- class: p.value,
1186
+ class: m.value,
1113
1187
  disabled: l == null ? void 0 : l.value,
1114
1188
  maxlength: d.value,
1115
- minlength: w.value,
1116
- placeholder: L.value,
1117
- readonly: S == null ? void 0 : S.value,
1189
+ minlength: S.value,
1190
+ placeholder: O.value,
1191
+ readonly: w == null ? void 0 : w.value,
1118
1192
  tabindex: v.value,
1119
- title: i.value && !C.value ? x.value : "",
1120
- type: m.value,
1193
+ title: i.value && !T.value ? C.value : "",
1194
+ type: p.value,
1121
1195
  value: s == null ? void 0 : s.value,
1122
1196
  onBlur: r,
1123
1197
  onClick: b,
@@ -1130,90 +1204,90 @@ function Lt(e, t, n, o) {
1130
1204
  onMouseup: B
1131
1205
  }, null);
1132
1206
  }
1133
- function Ot(e, t) {
1134
- const n = F(e.extendInfo), o = k(() => e.useExtendInfo && !!e.extendInfo), c = k(() => ({
1207
+ function Et(e, t) {
1208
+ const n = k(e.extendInfo), o = F(() => e.useExtendInfo && !!e.extendInfo), c = F(() => ({
1135
1209
  content: n.value
1136
1210
  }));
1137
- O(() => e.extendInfo, (i) => {
1211
+ L(() => e.extendInfo, (i) => {
1138
1212
  n.value = i;
1139
1213
  });
1140
1214
  function y() {
1141
1215
  t.emit("updateExtendInfo");
1142
1216
  }
1143
- return () => o.value && J(T("span", {
1217
+ return () => o.value && J(x("span", {
1144
1218
  class: "input-group-before-tips",
1145
1219
  onMouseenter: y
1146
- }, [T("i", {
1220
+ }, [x("i", {
1147
1221
  class: "f-icon f-icon-info-circle"
1148
- }, null), T("b", {
1222
+ }, null), x("b", {
1149
1223
  class: "tips-arrow"
1150
1224
  }, null)]), [[fe("tooltip"), c.value]]);
1151
1225
  }
1152
- function Et(e, t, n, o, c) {
1226
+ function Mt(e, t, n, o, c) {
1153
1227
  const {
1154
1228
  appendedButtonClass: y,
1155
1229
  appendedContent: i
1156
- } = n, C = k(() => !e.readonly && !e.disabled), w = k(() => i.value && !t.slots.groupTextTemplate), d = k(() => !!t.slots.groupTextTemplate), {
1230
+ } = n, T = F(() => !e.readonly && !e.disabled), S = F(() => i.value && !t.slots.groupTextTemplate), d = F(() => !!t.slots.groupTextTemplate), {
1157
1231
  clearButtonClass: v,
1158
1232
  clearButtonStyle: l,
1159
1233
  onClearValue: s,
1160
- shouldShowClearButton: m
1161
- } = o, r = F(0);
1162
- O(i, (p) => {
1234
+ shouldShowClearButton: p
1235
+ } = o, r = k(0);
1236
+ L(i, (m) => {
1163
1237
  r.value++;
1164
1238
  });
1165
1239
  function a() {
1166
- return T("span", {
1240
+ return x("span", {
1167
1241
  id: "clearIcon",
1168
1242
  class: v.value,
1169
1243
  style: l.value,
1170
- onClick: (p) => s(p)
1171
- }, [T("i", {
1244
+ onClick: (m) => s(m)
1245
+ }, [x("i", {
1172
1246
  class: "f-icon modal_close"
1173
1247
  }, null)]);
1174
1248
  }
1175
- function f(p) {
1176
- t.emit("iconMouseEnter", p);
1249
+ function f(m) {
1250
+ t.emit("iconMouseEnter", m);
1177
1251
  }
1178
- function b(p) {
1179
- t.emit("iconMouseLeave", p);
1252
+ function b(m) {
1253
+ t.emit("iconMouseLeave", m);
1180
1254
  }
1181
- function u(p) {
1182
- C.value && t.emit("clickHandle", {
1183
- originalEvent: p
1184
- }), p.stopPropagation();
1255
+ function u(m) {
1256
+ T.value && t.emit("clickHandle", {
1257
+ originalEvent: m
1258
+ }), m.stopPropagation();
1185
1259
  }
1186
1260
  const h = e.type === "password" || e.showType === "password" ? c.onClickAppendedButton : u;
1187
1261
  function P() {
1188
- return T(q, null, [(e.showButtonWhenDisabled || !e.disabled && !e.readonly) && T("span", {
1262
+ return x(q, null, [(e.showButtonWhenDisabled || !e.disabled && !e.readonly) && x("span", {
1189
1263
  class: "input-group-text",
1190
- onMouseenter: (p) => f(p),
1191
- onMouseleave: (p) => b(p),
1264
+ onMouseenter: (m) => f(m),
1265
+ onMouseleave: (m) => b(m),
1192
1266
  innerHTML: i.value,
1193
- onClick: (p) => h(p)
1267
+ onClick: (m) => h(m)
1194
1268
  }, null)]);
1195
1269
  }
1196
1270
  function B() {
1197
1271
  return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
1198
1272
  }
1199
1273
  function g() {
1200
- return w.value ? P() : d.value ? B() : "";
1274
+ return S.value ? P() : d.value ? B() : "";
1201
1275
  }
1202
- const S = k(() => ({
1276
+ const w = F(() => ({
1203
1277
  "input-group-append input-append-wrapper": !0,
1204
1278
  "input-append-button": e.expandMode === "button",
1205
1279
  "input-append-text": e.expandMode === "text",
1206
1280
  "d-none": !!e.expandDisabled
1207
- })), L = () => {
1281
+ })), O = () => {
1208
1282
  t.emit("expandClick");
1209
1283
  };
1210
- return () => T(q, null, [T("div", {
1284
+ return () => x(q, null, [x("div", {
1211
1285
  class: y.value,
1212
1286
  key: "append-button-" + r.value
1213
- }, [m.value && a(), g()]), e.expandable && !e.readonly && T("div", {
1214
- class: S.value,
1215
- onClick: L
1216
- }, [T("div", {
1287
+ }, [p.value && a(), g()]), e.expandable && !e.readonly && x("div", {
1288
+ class: w.value,
1289
+ onClick: O
1290
+ }, [x("div", {
1217
1291
  class: "input-group-text"
1218
1292
  }, [e.expandContent])])]);
1219
1293
  }
@@ -1222,54 +1296,54 @@ const re = /* @__PURE__ */ A({
1222
1296
  props: wt,
1223
1297
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange", "mousedownEvent", "mouseupEvent", "expandClick"],
1224
1298
  setup(e, t) {
1225
- const n = F(), o = F(e.modelValue), c = F(e.modelValue), y = Te(e, t, o, c, n), {
1299
+ const n = k(), o = k(e.modelValue), c = k(e.modelValue), y = Ce(e, t, o, c, n), {
1226
1300
  inputGroupClass: i,
1227
- inputType: C,
1228
- inputGroupStyle: w
1229
- } = y, d = St(e), {
1301
+ inputType: T,
1302
+ inputGroupStyle: S
1303
+ } = y, d = Bt(e), {
1230
1304
  shouldShowAppendedButton: v
1231
- } = d, l = Ce(e, t, y), {
1305
+ } = d, l = Te(e, t, y), {
1232
1306
  onMouseEnter: s,
1233
- onMouseLeave: m
1234
- } = l, r = Bt(e, t, C, d), a = Ft(e, t), {
1307
+ onMouseLeave: p
1308
+ } = l, r = Ft(e, t, T, d), a = kt(e, t), {
1235
1309
  renderTextarea: f,
1236
1310
  renderCount: b,
1237
1311
  renderClear: u
1238
- } = Pt(e, t, l, y), h = Lt(e, t, r, y), P = Et(e, t, d, l, r), B = Ot(e, t), g = k(() => C.value === "number"), S = k(() => C.value === "textarea");
1239
- O(() => [e.value], ([p]) => {
1240
- o.value = p, c.value = p;
1241
- }), O(() => [e.modelValue], ([p]) => {
1242
- o.value = p, c.value = p;
1312
+ } = Ot(e, t, l, y), h = Lt(e, t, r, y), P = Mt(e, t, d, l, r), B = Et(e, t), g = F(() => T.value === "number"), w = F(() => T.value === "textarea");
1313
+ L(() => [e.value], ([m]) => {
1314
+ o.value = m, c.value = m;
1315
+ }), L(() => [e.modelValue], ([m]) => {
1316
+ o.value = m, c.value = m;
1243
1317
  }), z(() => {
1244
1318
  e.value && (o.value = e.value, c.value = e.value);
1245
1319
  });
1246
- const L = () => T("div", {
1320
+ const O = () => x("div", {
1247
1321
  ref: n,
1248
1322
  id: e.id,
1249
1323
  class: i.value,
1250
- style: w.value,
1324
+ style: S.value,
1251
1325
  onMouseenter: s,
1252
- onMouseleave: m
1253
- }, [g.value ? a() : S.value ? f() : T(q, null, [B(), h()]), !S.value && !g.value && v.value && P(), S.value && u(), S.value && b()]);
1254
- return () => L();
1326
+ onMouseleave: p
1327
+ }, [g.value ? a() : w.value ? f() : x(q, null, [B(), h()]), !w.value && !g.value && v.value && P(), w.value && u(), w.value && b()]);
1328
+ return () => O();
1255
1329
  }
1256
1330
  });
1257
1331
  he(re);
1258
- const D = /* @__PURE__ */ A({
1332
+ const j = /* @__PURE__ */ A({
1259
1333
  name: "FLanguageTextbox",
1260
1334
  props: W,
1261
- emits: ["update:modelValue"],
1335
+ emits: ["update:modelValue", "expandClick"],
1262
1336
  setup(e, t) {
1263
1337
  const n = Q.getLocale(), {
1264
1338
  disabled: o,
1265
1339
  readonly: c,
1266
1340
  editable: y,
1267
1341
  modelValue: i
1268
- } = me(e), C = k(() => {
1342
+ } = pe(e), T = F(() => {
1269
1343
  var u;
1270
1344
  return (u = i.value) == null ? void 0 : u[n];
1271
- }), w = F();
1272
- O(() => e.modelValue, (u) => {
1345
+ }), S = k();
1346
+ L(() => e.modelValue, (u) => {
1273
1347
  i.value = u;
1274
1348
  });
1275
1349
  const d = (u) => {
@@ -1277,30 +1351,30 @@ const D = /* @__PURE__ */ A({
1277
1351
  return;
1278
1352
  let h = -1;
1279
1353
  const P = u.find((B, g) => {
1280
- const S = B.code === n;
1281
- return S && (h = g), S;
1354
+ const w = B.code === n;
1355
+ return w && (h = g), w;
1282
1356
  });
1283
1357
  if (P) {
1284
1358
  const B = Object.assign({}, P);
1285
1359
  u.splice(h, 1), u.unshift(B);
1286
1360
  }
1287
1361
  return u;
1288
- }, v = F();
1289
- O(() => e.languages, (u) => {
1362
+ }, v = k();
1363
+ L(() => e.languages, (u) => {
1290
1364
  v.value = d(u) || [];
1291
1365
  });
1292
1366
  function l(u) {
1293
1367
  i.value = i.value || {}, i.value[n] !== u && (i.value[n] = u, t.emit("update:modelValue", i.value));
1294
1368
  }
1295
- const s = k(() => {
1369
+ const s = F(() => {
1296
1370
  var h;
1297
- const u = (h = w.value) == null ? void 0 : h.popoverRef;
1371
+ const u = (h = S.value) == null ? void 0 : h.popoverRef;
1298
1372
  return u && v.value.length > 1 ? u.shown : !1;
1299
1373
  });
1300
1374
  z(() => {
1301
1375
  v.value = d(e.languages) || [];
1302
1376
  });
1303
- const m = (u) => {
1377
+ const p = (u) => {
1304
1378
  i.value = u, t.emit("update:modelValue", i.value);
1305
1379
  }, r = () => {
1306
1380
  var u;
@@ -1314,17 +1388,17 @@ const D = /* @__PURE__ */ A({
1314
1388
  i.value[n] !== h && (i.value[n] = h, t.emit("update:modelValue", i.value));
1315
1389
  }
1316
1390
  function b() {
1317
- return T(re, {
1391
+ return x(re, {
1318
1392
  disable: o.value,
1319
1393
  readonly: c.value,
1320
- modelValue: C.value,
1321
- "onUpdate:modelValue": (u) => C.value = u,
1394
+ modelValue: T.value,
1395
+ "onUpdate:modelValue": (u) => T.value = u,
1322
1396
  onInput: f,
1323
1397
  onClear: a
1324
1398
  }, null);
1325
1399
  }
1326
- return () => we() ? b() : T(ge, {
1327
- ref: w,
1400
+ return () => Se() ? b() : x(ge, {
1401
+ ref: S,
1328
1402
  id: e.id,
1329
1403
  forcePlaceholder: !1,
1330
1404
  disable: o.value,
@@ -1338,38 +1412,43 @@ const D = /* @__PURE__ */ A({
1338
1412
  multiSelect: !1,
1339
1413
  inputType: "text",
1340
1414
  popupOnClick: !0,
1341
- modelValue: C.value,
1342
- "onUpdate:modelValue": (u) => C.value = u,
1415
+ modelValue: T.value,
1416
+ "onUpdate:modelValue": (u) => T.value = u,
1343
1417
  onChange: l,
1344
1418
  placement: "auto",
1345
1419
  popupMinWidth: 365,
1346
1420
  maxLength: e.maxLength,
1347
1421
  beforeOpen: r,
1348
- onClear: a
1422
+ onClear: a,
1423
+ expandable: e.expandable,
1424
+ expandMode: e.expandMode,
1425
+ expandContent: e.expandContent,
1426
+ expandDisabled: e.expandDisabled,
1427
+ onExpandClick: t.emit("expandClick")
1349
1428
  }, {
1350
- default: () => [s.value && T(ht, {
1429
+ default: () => [s.value && x(St, {
1351
1430
  id: e.id,
1352
1431
  languages: v.value,
1353
1432
  modelValue: i.value,
1354
1433
  maxLength: e.maxLength,
1355
- "onUpdate:modelValue": m
1434
+ "onUpdate:modelValue": p
1356
1435
  }, null)]
1357
1436
  });
1358
1437
  }
1359
1438
  });
1360
- D.install = (e) => {
1361
- e.component(D.name, D);
1439
+ j.install = (e) => {
1440
+ e.component(j.name, j);
1362
1441
  };
1363
- D.register = (e, t, n, o, c) => {
1364
- e["language-textbox"] = D, t["language-textbox"] = oe(c);
1442
+ j.register = (e, t, n, o, c) => {
1443
+ e["language-textbox"] = j, t["language-textbox"] = oe(c);
1365
1444
  };
1366
- D.registerDesigner = (e, t, n, o) => {
1445
+ j.registerDesigner = (e, t, n, o) => {
1367
1446
  e["language-textbox"] = Me, t["language-textbox"] = oe(o);
1368
1447
  };
1369
1448
  export {
1370
- D as FLanguageTextbox,
1371
- D as default,
1449
+ j as FLanguageTextbox,
1450
+ j as default,
1372
1451
  W as languageTextBoxProps,
1373
- Gt as propsResolver,
1452
+ Ht as propsResolver,
1374
1453
  oe as propsResolverGenerator
1375
1454
  };