@farris/ui-vue 1.2.9 → 1.3.0

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 (236) hide show
  1. package/components/accordion/index.esm.js +63 -63
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +402 -323
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +98 -96
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +66 -66
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +118 -118
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +539 -460
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +135 -135
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1007 -312
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +97 -97
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +778 -700
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +472 -329
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2231 -1055
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +79 -79
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6408 -5034
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4762 -3511
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3442 -2742
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-outline/index.esm.js +14 -13
  40. package/components/designer-outline/index.umd.cjs +1 -1
  41. package/components/dropdown/index.esm.js +73 -73
  42. package/components/dropdown/index.umd.cjs +2 -2
  43. package/components/dynamic-form/index.css +1 -0
  44. package/components/dynamic-form/index.esm.js +2597 -1141
  45. package/components/dynamic-form/index.umd.cjs +1 -1
  46. package/components/dynamic-resolver/index.esm.js +114 -71
  47. package/components/dynamic-resolver/index.umd.cjs +1 -1
  48. package/components/dynamic-view/index.esm.js +303 -290
  49. package/components/dynamic-view/index.umd.cjs +1 -1
  50. package/components/events-editor/index.esm.js +171 -171
  51. package/components/events-editor/index.umd.cjs +1 -1
  52. package/components/expression-editor/index.esm.js +65 -65
  53. package/components/expression-editor/index.umd.cjs +1 -1
  54. package/components/external-container/index.css +1 -1
  55. package/components/external-container/index.esm.js +3075 -2586
  56. package/components/external-container/index.umd.cjs +1 -1
  57. package/components/field-selector/index.css +1 -1
  58. package/components/field-selector/index.esm.js +5272 -8511
  59. package/components/field-selector/index.umd.cjs +1 -1
  60. package/components/filter-bar/index.css +1 -1
  61. package/components/filter-bar/index.esm.js +1726 -1822
  62. package/components/filter-bar/index.umd.cjs +1 -1
  63. package/components/image-cropper/index.esm.js +126 -126
  64. package/components/image-cropper/index.umd.cjs +1 -1
  65. package/components/input-group/index.esm.js +620 -540
  66. package/components/input-group/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +88 -88
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +71 -71
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.css +1 -1
  72. package/components/list-view/index.esm.js +3582 -2356
  73. package/components/list-view/index.umd.cjs +1 -1
  74. package/components/lookup/index.css +1 -1
  75. package/components/lookup/index.esm.js +10752 -8972
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.css +1 -1
  78. package/components/mapping-editor/index.esm.js +5601 -5329
  79. package/components/mapping-editor/index.umd.cjs +1 -1
  80. package/components/message-box/index.css +1 -1
  81. package/components/message-box/index.esm.js +511 -471
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.css +1 -1
  84. package/components/modal/index.esm.js +438 -398
  85. package/components/modal/index.umd.cjs +1 -1
  86. package/components/nav/index.esm.js +535 -452
  87. package/components/nav/index.umd.cjs +2 -2
  88. package/components/notify/index.esm.js +59 -53
  89. package/components/notify/index.umd.cjs +1 -1
  90. package/components/number-range/index.esm.js +556 -477
  91. package/components/number-range/index.umd.cjs +1 -1
  92. package/components/number-spinner/index.esm.js +504 -425
  93. package/components/number-spinner/index.umd.cjs +1 -1
  94. package/components/order/index.css +1 -1
  95. package/components/order/index.esm.js +1833 -1054
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +100 -100
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +899 -870
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +576 -487
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/popover/index.esm.js +71 -70
  104. package/components/popover/index.umd.cjs +1 -1
  105. package/components/progress/index.esm.js +73 -73
  106. package/components/progress/index.umd.cjs +2 -2
  107. package/components/property-editor/index.css +1 -1
  108. package/components/property-editor/index.esm.js +1916 -1220
  109. package/components/property-editor/index.umd.cjs +3 -3
  110. package/components/property-panel/index.esm.js +783 -886
  111. package/components/property-panel/index.umd.cjs +1 -1
  112. package/components/query-solution/index.css +1 -1
  113. package/components/query-solution/index.esm.js +3632 -2556
  114. package/components/query-solution/index.umd.cjs +1 -1
  115. package/components/radio-button/index.esm.js +72 -72
  116. package/components/radio-button/index.umd.cjs +1 -1
  117. package/components/radio-group/index.esm.js +484 -405
  118. package/components/radio-group/index.umd.cjs +1 -1
  119. package/components/rate/index.esm.js +152 -152
  120. package/components/rate/index.umd.cjs +1 -1
  121. package/components/response-layout/index.esm.js +73 -73
  122. package/components/response-layout/index.umd.cjs +1 -1
  123. package/components/response-layout-editor/index.css +1 -1
  124. package/components/response-layout-editor/index.esm.js +1081 -1043
  125. package/components/response-layout-editor/index.umd.cjs +1 -1
  126. package/components/response-toolbar/index.esm.js +753 -738
  127. package/components/response-toolbar/index.umd.cjs +1 -1
  128. package/components/schema-selector/index.css +1 -1
  129. package/components/schema-selector/index.esm.js +4418 -4177
  130. package/components/schema-selector/index.umd.cjs +2 -2
  131. package/components/search-box/index.esm.js +119 -119
  132. package/components/search-box/index.umd.cjs +1 -1
  133. package/components/section/index.esm.js +92 -91
  134. package/components/section/index.umd.cjs +1 -1
  135. package/components/smoke-detector/index.esm.js +59 -59
  136. package/components/smoke-detector/index.umd.cjs +1 -1
  137. package/components/splitter/index.esm.js +103 -103
  138. package/components/splitter/index.umd.cjs +1 -1
  139. package/components/step/index.esm.js +85 -85
  140. package/components/step/index.umd.cjs +1 -1
  141. package/components/switch/index.esm.js +457 -378
  142. package/components/switch/index.umd.cjs +1 -1
  143. package/components/tabs/index.css +1 -1
  144. package/components/tabs/index.esm.js +1696 -1617
  145. package/components/tabs/index.umd.cjs +1 -1
  146. package/components/tags/index.esm.js +53 -53
  147. package/components/tags/index.umd.cjs +1 -1
  148. package/components/text/index.esm.js +268 -268
  149. package/components/text/index.umd.cjs +1 -1
  150. package/components/textarea/index.esm.js +420 -341
  151. package/components/textarea/index.umd.cjs +1 -1
  152. package/components/time-picker/index.css +1 -1
  153. package/components/time-picker/index.esm.js +1062 -981
  154. package/components/time-picker/index.umd.cjs +1 -1
  155. package/components/transfer/index.css +1 -1
  156. package/components/transfer/index.esm.js +381 -379
  157. package/components/transfer/index.umd.cjs +1 -1
  158. package/components/tree-grid/index.css +1 -1
  159. package/components/tree-grid/index.esm.js +5252 -9560
  160. package/components/tree-grid/index.umd.cjs +1 -1
  161. package/components/tree-view/index.css +1 -0
  162. package/components/tree-view/index.esm.js +3920 -2692
  163. package/components/tree-view/index.umd.cjs +1 -1
  164. package/components/uploader/index.esm.js +373 -367
  165. package/components/uploader/index.umd.cjs +2 -2
  166. package/components/verify-detail/index.esm.js +92 -92
  167. package/components/verify-detail/index.umd.cjs +1 -1
  168. package/components/video/index.esm.js +597 -417
  169. package/components/video/index.umd.cjs +1 -1
  170. package/components/weather/index.esm.js +251 -251
  171. package/components/weather/index.umd.cjs +4 -4
  172. package/farris.all.esm.js +17125 -16176
  173. package/farris.all.umd.cjs +8 -8
  174. package/index.css +1 -1
  175. package/package.json +1 -1
  176. package/types/capsule/src/capsule.props.d.ts +2 -2
  177. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  178. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  179. package/types/common/index.d.ts +1 -0
  180. package/types/common/types.d.ts +1 -1
  181. package/types/common/utils/encrypt.d.ts +2 -0
  182. package/types/component/src/component.props.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +1 -1
  184. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  185. package/types/components.d.ts +1 -0
  186. package/types/data-grid/index.d.ts +5 -2
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  189. package/types/data-view/composition/types.d.ts +18 -1
  190. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  191. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  193. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  194. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  195. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  196. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  197. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  198. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  199. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  200. package/types/dynamic-form/src/types.d.ts +12 -1
  201. package/types/dynamic-resolver/index.d.ts +1 -0
  202. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  203. package/types/dynamic-resolver/src/types.d.ts +9 -0
  204. package/types/dynamic-view/index.d.ts +1 -0
  205. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  206. package/types/index.d.ts +2 -0
  207. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  208. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  209. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  210. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  211. package/types/lookup/src/composition/types.d.ts +8 -0
  212. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  213. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  214. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  215. package/types/lookup/src/composition/use-http.d.ts +9 -5
  216. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  217. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  218. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  219. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  220. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  221. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  222. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  223. package/types/modal/src/modal.component.d.ts +3 -0
  224. package/types/modal/src/modal.props.d.ts +4 -0
  225. package/types/page-header/src/page-header.props.d.ts +1 -0
  226. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  227. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  228. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  229. package/types/response-layout-editor/src/type.d.ts +21 -0
  230. package/types/tabs/src/tabs.props.d.ts +1 -0
  231. package/types/tree-grid/index.d.ts +8 -2
  232. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  233. package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
  234. package/types/modal/src/composition/use-esc.d.ts +0 -1
  235. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  236. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,111 +1,114 @@
1
- import { ref as N, watch as B, createVNode as p, computed as w, defineComponent as R, watchEffect as pe, Fragment as _, createTextVNode as H, nextTick as ue, inject as fe, onMounted as de } from "vue";
2
- import { cloneDeep as ge } from "lodash-es";
3
- import { withInstall as be } from "../common/index.esm.js";
4
- const K = {}, ee = {};
1
+ import { ref as k, watch as B, createVNode as f, computed as P, defineComponent as ee, watchEffect as fe, Fragment as W, createTextVNode as U, nextTick as de, inject as ge, onMounted as ye } from "vue";
2
+ import { isPlainObject as K, cloneDeep as me } from "lodash-es";
3
+ import { BaseControlProperty as be } from "../property-panel/index.esm.js/src/composition/entity/base-property";
4
+ import { useResponseLayoutEditorSetting as he } from "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
5
+ import { DgControl as ve } from "../designer-canvas/index.esm.js/src/composition/dg-control";
6
+ import { withInstall as Ce } from "../common/index.esm.js";
7
+ const te = {}, ne = {};
5
8
  function Y(n) {
6
- const { properties: e, title: t, ignore: i } = n, a = i && Array.isArray(i), d = Object.keys(e).reduce((o, s) => ((!a || !i.find((r) => r == s)) && (o[s] = e[s].type === "object" && e[s].properties ? Y(e[s]) : ge(e[s].default)), o), {});
7
- return (!a || !i.find((o) => o == "id")) && (d.id = `${t}-${Date.now()}`), d;
9
+ const { properties: e, title: t, ignore: p } = n, c = p && Array.isArray(p), y = Object.keys(e).reduce((o, a) => ((!c || !p.find((s) => s == a)) && (o[a] = e[a].type === "object" && e[a].properties ? Y(e[a]) : me(e[a].default)), o), {});
10
+ return (!c || !p.find((o) => o == "id")) && (y.id = `${t}-${Date.now()}`), y;
8
11
  }
9
12
  function q(n, e = {}, t) {
10
- const i = K[n];
11
- if (i) {
12
- let a = Y(i);
13
- const d = ee[n];
14
- return a = d ? d({ getSchemaByType: q }, a, e, t) : a, a;
13
+ const p = te[n];
14
+ if (p) {
15
+ let c = Y(p);
16
+ const y = ne[n];
17
+ return c = y ? y({ getSchemaByType: q }, c, e, t) : c, c;
15
18
  }
16
19
  return null;
17
20
  }
18
- function ye(n, e) {
21
+ function je(n, e) {
19
22
  const t = Y(e);
20
- return Object.keys(n).reduce((i, a) => (i[a] && typeof i[a] == "object" ? Object.assign(i[a], n[a]) : i[a] = n[a], i), t), t;
23
+ return Object.keys(n).reduce((p, c) => (p[c] && K(p[c]) && K(n[c]) ? Object.assign(p[c], n[c]) : p[c] = n[c], p), t), t;
21
24
  }
22
- function he(n, e) {
23
- return Object.keys(n).filter((i) => n[i] != null).reduce((i, a) => {
24
- if (e.has(a)) {
25
- const d = e.get(a);
26
- if (typeof d == "string")
27
- i[d] = n[a];
25
+ function Pe(n, e) {
26
+ return Object.keys(n).filter((p) => n[p] != null).reduce((p, c) => {
27
+ if (e.has(c)) {
28
+ const y = e.get(c);
29
+ if (typeof y == "string")
30
+ p[y] = n[c];
28
31
  else {
29
- const o = d(a, n[a], n);
30
- Object.assign(i, o);
32
+ const o = y(c, n[c], n);
33
+ Object.assign(p, o);
31
34
  }
32
35
  } else
33
- i[a] = n[a];
34
- return i;
36
+ p[c] = n[c];
37
+ return p;
35
38
  }, {});
36
39
  }
37
- function me(n, e, t = /* @__PURE__ */ new Map()) {
38
- const i = ye(n, e);
39
- return he(i, t);
40
+ function we(n, e, t = /* @__PURE__ */ new Map()) {
41
+ const p = je(n, e);
42
+ return Pe(p, t);
40
43
  }
41
- function ve(n = {}) {
42
- function e(f, g, v, m) {
43
- if (typeof v == "number")
44
- return m[f].length === v;
45
- if (typeof v == "object") {
46
- const C = Object.keys(v)[0], l = v[C];
44
+ function Ne(n = {}) {
45
+ function e(r, g, d, m) {
46
+ if (typeof d == "number")
47
+ return m[r].length === d;
48
+ if (typeof d == "object") {
49
+ const C = Object.keys(d)[0], l = d[C];
47
50
  if (C === "not")
48
- return Number(m[f].length) !== Number(l);
51
+ return Number(m[r].length) !== Number(l);
49
52
  if (C === "moreThan")
50
- return Number(m[f].length) >= Number(l);
53
+ return Number(m[r].length) >= Number(l);
51
54
  if (C === "lessThan")
52
- return Number(m[f].length) <= Number(l);
55
+ return Number(m[r].length) <= Number(l);
53
56
  }
54
57
  return !1;
55
58
  }
56
- function t(f, g, v, m) {
57
- return m[f] && m[f].propertyValue && String(m[f].propertyValue.value) === String(v);
59
+ function t(r, g, d, m) {
60
+ return m[r] && m[r].propertyValue && String(m[r].propertyValue.value) === String(d);
58
61
  }
59
- const i = /* @__PURE__ */ new Map([
62
+ const p = /* @__PURE__ */ new Map([
60
63
  ["length", e],
61
64
  ["getProperty", t]
62
65
  ]);
63
- Object.keys(n).reduce((f, g) => (f.set(g, n[g]), f), i);
64
- function a(f, g) {
65
- const v = f;
66
- return typeof g == "number" ? [{ target: v, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: v, operator: "getProperty", param: f, value: !!g }] : typeof g == "object" ? Object.keys(g).map((m) => {
66
+ Object.keys(n).reduce((r, g) => (r.set(g, n[g]), r), p);
67
+ function c(r, g) {
68
+ const d = r;
69
+ return typeof g == "number" ? [{ target: d, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: d, operator: "getProperty", param: r, value: !!g }] : typeof g == "object" ? Object.keys(g).map((m) => {
67
70
  if (m === "length")
68
- return { target: v, operator: "length", param: null, value: g[m] };
71
+ return { target: d, operator: "length", param: null, value: g[m] };
69
72
  const C = m, l = g[m];
70
- return { target: v, operator: "getProperty", param: C, value: l };
73
+ return { target: d, operator: "getProperty", param: C, value: l };
71
74
  }) : [];
72
75
  }
73
- function d(f) {
74
- return Object.keys(f).reduce((v, m) => {
75
- const C = a(m, f[m]);
76
- return v.push(...C), v;
76
+ function y(r) {
77
+ return Object.keys(r).reduce((d, m) => {
78
+ const C = c(m, r[m]);
79
+ return d.push(...C), d;
77
80
  }, []);
78
81
  }
79
- function o(f, g) {
80
- if (i.has(f.operator)) {
81
- const v = i.get(f.operator);
82
- return v && v(f.target, f.param, f.value, g) || !1;
82
+ function o(r, g) {
83
+ if (p.has(r.operator)) {
84
+ const d = p.get(r.operator);
85
+ return d && d(r.target, r.param, r.value, g) || !1;
83
86
  }
84
87
  return !1;
85
88
  }
86
- function s(f, g) {
87
- return d(f).reduce((C, l) => C && o(l, g), !0);
89
+ function a(r, g) {
90
+ return y(r).reduce((C, l) => C && o(l, g), !0);
88
91
  }
89
- function r(f, g) {
90
- const v = Object.keys(f), m = v.includes("allOf"), C = v.includes("anyOf"), l = m || C, b = (l ? f[l ? m ? "allOf" : "anyOf" : "allOf"] : [f]).map((P) => s(P, g));
92
+ function s(r, g) {
93
+ const d = Object.keys(r), m = d.includes("allOf"), C = d.includes("anyOf"), l = m || C, b = (l ? r[l ? m ? "allOf" : "anyOf" : "allOf"] : [r]).map((j) => a(j, g));
91
94
  return m ? !b.includes(!1) : b.includes(!0);
92
95
  }
93
- return { parseValueSchema: r };
96
+ return { parseValueSchema: s };
94
97
  }
95
- const je = {}, Pe = {};
96
- ve();
97
- function Ce(n, e, t = /* @__PURE__ */ new Map(), i = (o, s, r) => s, a = {}, d = (o) => o) {
98
- return K[e.title] = e, ee[e.title] = i, je[e.title] = a, Pe[e.title] = d, (o = {}) => {
99
- const s = me(o, e, t), r = Object.keys(n).reduce((f, g) => (f[g] = n[g].default, f), {});
100
- return Object.assign(r, s);
98
+ const ke = {}, Ae = {};
99
+ Ne();
100
+ function Le(n, e, t = /* @__PURE__ */ new Map(), p = (o, a, s) => a, c = {}, y = (o) => o) {
101
+ return te[e.title] = e, ne[e.title] = p, ke[e.title] = c, Ae[e.title] = y, (o = {}) => {
102
+ const a = we(o, e, t), s = Object.keys(n).reduce((r, g) => (r[g] = n[g].default, r), {});
103
+ return Object.assign(s, a);
101
104
  };
102
105
  }
103
- function we(n, e) {
106
+ function Te(n, e) {
104
107
  return { customClass: e.class, customStyle: e.style };
105
108
  }
106
- const Ne = /* @__PURE__ */ new Map([
107
- ["appearance", we]
108
- ]), Oe = "https://json-schema.org/draft/2020-12/schema", Te = "https://farris-design.gitee.io/pagination.schema.json", ke = "pagination", Ae = "A Farris Component", Se = "object", Me = {
109
+ const Se = /* @__PURE__ */ new Map([
110
+ ["appearance", Te]
111
+ ]), Me = "https://json-schema.org/draft/2020-12/schema", Oe = "https://farris-design.gitee.io/pagination.schema.json", xe = "pagination", De = "A Farris Component", Ee = "object", Be = {
109
112
  id: {
110
113
  description: "The unique identifier for a pagination",
111
114
  type: "string"
@@ -197,18 +200,18 @@ const Ne = /* @__PURE__ */ new Map([
197
200
  type: "sting",
198
201
  default: ""
199
202
  }
200
- }, Le = [
203
+ }, Fe = [
201
204
  "id",
202
205
  "type"
203
- ], De = {
204
- $schema: Oe,
205
- $id: Te,
206
- title: ke,
207
- description: Ae,
208
- type: Se,
209
- properties: Me,
210
- required: Le
211
- }, xe = "pagination", Ee = "A Farris Component", Be = "object", $e = {
206
+ ], Ie = {
207
+ $schema: Me,
208
+ $id: Oe,
209
+ title: xe,
210
+ description: De,
211
+ type: Ee,
212
+ properties: Be,
213
+ required: Fe
214
+ }, $e = "pagination", Ve = "A Farris Component", qe = "object", ze = {
212
215
  basic: {
213
216
  description: "Basic Infomation",
214
217
  title: "基本信息",
@@ -290,13 +293,13 @@ const Ne = /* @__PURE__ */ new Map([
290
293
  }
291
294
  }
292
295
  }
293
- }, Fe = {
294
- title: xe,
295
- description: Ee,
296
- type: Be,
297
- categories: $e
296
+ }, Ge = {
297
+ title: $e,
298
+ description: Ve,
299
+ type: qe,
300
+ categories: ze
298
301
  };
299
- function Ve(n, e, t) {
302
+ function We(n, e, t) {
300
303
  return e;
301
304
  }
302
305
  const Z = {
@@ -332,440 +335,446 @@ const Z = {
332
335
  * 自定义每页数量
333
336
  */
334
337
  pageList: { type: Array, default: [20, 50, 100] }
335
- }, te = Ce(Z, De, Ne, Ve, Fe);
336
- function ne(n, e) {
337
- const t = N("跳转至"), i = N(""), a = N(n.value);
338
- B(a, (r, f) => {
339
- r >= 1 && r <= e.value ? n.value = r : a.value = f;
340
- }), B(n, (r) => {
341
- a.value !== r && (a.value = r);
338
+ }, oe = Le(Z, Ie, Se, We, Ge);
339
+ function se(n, e) {
340
+ const t = k("跳转至"), p = k(""), c = k(n.value);
341
+ B(c, (s, r) => {
342
+ s >= 1 && s <= e.value ? n.value = s : c.value = r;
343
+ }), B(n, (s) => {
344
+ c.value !== s && (c.value = s);
342
345
  });
343
- function d(r) {
344
- a.value = r.target.valueAsNumber;
346
+ function y(s) {
347
+ c.value = s.target.valueAsNumber;
345
348
  }
346
- function o(r) {
347
- r.key === "Enter" && (a.value = r.target.valueAsNumber);
349
+ function o(s) {
350
+ s.key === "Enter" && (c.value = s.target.valueAsNumber);
348
351
  }
349
- function s() {
350
- return p("li", {
352
+ function a() {
353
+ return f("li", {
351
354
  class: "page-goto-input d-flex flex-row",
352
355
  style: "padding-left: 10px; white-space: nowrap;"
353
- }, [p("span", {
356
+ }, [f("span", {
354
357
  class: "pg-message-text"
355
- }, [t.value]), p("input", {
358
+ }, [t.value]), f("input", {
356
359
  type: "number",
357
360
  class: "form-control farris-gotopagenumber",
358
- value: a.value,
361
+ value: c.value,
359
362
  min: "1",
360
363
  max: e.value,
361
364
  style: "display: inline-block;margin-left:3px;",
362
- onBlur: (r) => d(r),
363
- onKeyup: (r) => o(r)
364
- }, null), i.value]);
365
+ onBlur: (s) => y(s),
366
+ onKeyup: (s) => o(s)
367
+ }, null), p.value]);
365
368
  }
366
369
  return {
367
- renderGotoButton: s
370
+ renderGotoButton: a
368
371
  };
369
372
  }
370
- function oe(n, e, t) {
371
- const i = w(() => ({
373
+ function ae(n, e, t) {
374
+ const p = P(() => ({
372
375
  "page-item": !0,
373
376
  disabled: e.value
374
377
  }));
375
- function a(r) {
378
+ function c(s) {
376
379
  n.value = n.value < t.value ? n.value + 1 : t.value;
377
380
  }
378
- function d(r) {
381
+ function y(s) {
379
382
  n.value = t.value;
380
383
  }
381
384
  function o() {
382
- return p("li", {
383
- class: i.value
384
- }, [!e.value && p("a", {
385
+ return f("li", {
386
+ class: p.value
387
+ }, [!e.value && f("a", {
385
388
  class: "page-link",
386
389
  tabindex: "0",
387
- onClick: (r) => a()
388
- }, [p("span", {
390
+ onClick: (s) => c()
391
+ }, [f("span", {
389
392
  class: "f-icon f-page-next"
390
- }, null)]), e.value && p("span", {
393
+ }, null)]), e.value && f("span", {
391
394
  class: "page-link"
392
- }, [p("span", {
395
+ }, [f("span", {
393
396
  class: "f-icon f-page-next"
394
397
  }, null)])]);
395
398
  }
396
- function s() {
397
- return p("li", {
398
- class: i.value
399
- }, [!e.value && p("a", {
399
+ function a() {
400
+ return f("li", {
401
+ class: p.value
402
+ }, [!e.value && f("a", {
400
403
  class: "page-link",
401
404
  tabindex: "0",
402
- onClick: (r) => d()
403
- }, [p("span", {
405
+ onClick: (s) => y()
406
+ }, [f("span", {
404
407
  class: "f-icon f-page-last"
405
- }, null)]), e.value && p("span", {
408
+ }, null)]), e.value && f("span", {
406
409
  class: "page-link"
407
- }, [p("span", {
410
+ }, [f("span", {
408
411
  class: "f-icon f-page-last"
409
412
  }, null)])]);
410
413
  }
411
414
  return {
412
- renderLastPage: s,
415
+ renderLastPage: a,
413
416
  renderNextPage: o
414
417
  };
415
418
  }
416
- function ae(n, e) {
417
- const t = N("共"), i = N("条"), a = w(() => ({
419
+ function re(n, e) {
420
+ const t = k("共"), p = k("条"), c = P(() => ({
418
421
  "pagination-message": !0,
419
422
  "text-truncate": !0,
420
423
  "d-flex": !0,
421
424
  "ml-auto": n.value === "right",
422
425
  "flex-fill": n.value === "right"
423
426
  }));
424
- function d() {
425
- return p("li", {
426
- class: a.value
427
- }, [p("div", {
427
+ function y() {
428
+ return f("li", {
429
+ class: c.value
430
+ }, [f("div", {
428
431
  class: "text-truncate",
429
432
  style: "line-height: 26px"
430
- }, [p("span", {
433
+ }, [f("span", {
431
434
  class: "pg-message-text"
432
- }, [t.value]), p("b", {
435
+ }, [t.value]), f("b", {
433
436
  class: "pg-message-total"
434
- }, [e.value]), p("span", {
437
+ }, [e.value]), f("span", {
435
438
  class: "pg-message-text"
436
- }, [i.value])])]);
439
+ }, [p.value])])]);
437
440
  }
438
441
  return {
439
- renderPageInfo: d
442
+ renderPageInfo: y
440
443
  };
441
444
  }
442
- function se(n, e, t, i) {
443
- const a = N(!1), d = N("显示"), o = N("条"), s = w(() => ({
445
+ function ce(n, e, t, p) {
446
+ const c = k(!1), y = k("显示"), o = k("条"), a = P(() => ({
444
447
  dropup: !0,
445
448
  "dropdown-right": !0,
446
449
  "pg-pagelist": !0,
447
- "pagelist-disabled": i.value === 0,
448
- show: a.value
449
- })), r = w(() => ({
450
+ "pagelist-disabled": p.value === 0,
451
+ show: c.value
452
+ })), s = P(() => ({
450
453
  "dropdown-menu": !0,
451
- show: a.value
452
- })), f = (c) => ({
454
+ show: c.value
455
+ })), r = (i) => ({
453
456
  "w-100": !0,
454
457
  "dropdown-item": !0,
455
- active: e.value === c
458
+ active: e.value === i
456
459
  });
457
- function g(c) {
458
- a.value = !0;
460
+ function g(i) {
461
+ c.value = !0;
459
462
  }
460
- function v(c) {
461
- a.value = !1;
463
+ function d(i) {
464
+ c.value = !1;
462
465
  }
463
- function m(c, u, b) {
464
- const P = c * u - u + 1;
465
- return Math.ceil(P / b);
466
+ function m(i, u, b) {
467
+ const j = i * u - u + 1;
468
+ return Math.ceil(j / b);
466
469
  }
467
- function C(c, u) {
468
- n.value = m(n.value, e.value, u), e.value = u, a.value = !1;
470
+ function C(i, u) {
471
+ n.value = m(n.value, e.value, u), e.value = u, c.value = !1;
469
472
  }
470
473
  function l() {
471
- return p("li", {
474
+ return f("li", {
472
475
  class: "pagination-pagelist"
473
- }, [p("div", {
474
- class: s.value,
475
- onMouseenter: (c) => g(),
476
- onMouseleave: (c) => v()
477
- }, [p("div", {
476
+ }, [f("div", {
477
+ class: a.value,
478
+ onMouseenter: (i) => g(),
479
+ onMouseleave: (i) => d()
480
+ }, [f("div", {
478
481
  class: "pg-pagelist-info"
479
- }, [p("span", {
482
+ }, [f("span", {
480
483
  class: "pagelist-text"
481
- }, [d.value]), p("b", {
484
+ }, [y.value]), f("b", {
482
485
  class: "cur-pagesize"
483
- }, [e.value]), p("span", {
486
+ }, [e.value]), f("span", {
484
487
  class: "pagelist-text"
485
- }, [o.value]), p("i", {
488
+ }, [o.value]), f("i", {
486
489
  class: "f-icon f-icon-dropdown"
487
- }, null)]), p("div", {
488
- class: r.value,
490
+ }, null)]), f("div", {
491
+ class: s.value,
489
492
  style: "margin-bottom: -1px;"
490
- }, [t.value.map((c) => p("li", {
491
- class: f(c),
492
- onClick: (u) => C(u, c)
493
- }, [p("span", null, [c])]))])])]);
493
+ }, [t.value.map((i) => f("li", {
494
+ class: r(i),
495
+ onClick: (u) => C(u, i)
496
+ }, [f("span", null, [i])]))])])]);
494
497
  }
495
498
  return {
496
499
  renderPageList: l
497
500
  };
498
501
  }
499
- function re(n, e) {
502
+ function le(n, e) {
500
503
  const t = (o) => ({
501
504
  "page-item": !0,
502
505
  current: n.value === o.value,
503
506
  ellipsis: o.label === "..."
504
- }), i = (o) => ({
507
+ }), p = (o) => ({
505
508
  "f-icon": !0,
506
509
  "f-icon-arrow-seek-left": o.value < n.value,
507
510
  "f-icon-arrow-seek-right": o.value > n.value
508
511
  });
509
- function a(o, s) {
510
- n.value = s;
512
+ function c(o, a) {
513
+ n.value = a;
511
514
  }
512
- function d() {
513
- return e.value.map((o) => p("li", {
515
+ function y() {
516
+ return e.value.map((o) => f("li", {
514
517
  class: t(o)
515
- }, [n.value !== o.value && p("a", {
518
+ }, [n.value !== o.value && f("a", {
516
519
  class: "page-link",
517
520
  tabindex: "0",
518
- onClick: (s) => a(s, o.value)
519
- }, [p("span", {
521
+ onClick: (a) => c(a, o.value)
522
+ }, [f("span", {
520
523
  class: "page-link-label"
521
- }, [o.label]), o.label === "..." && p("i", {
522
- class: i(o)
523
- }, null)]), n.value === o.value && p("span", {
524
+ }, [o.label]), o.label === "..." && f("i", {
525
+ class: p(o)
526
+ }, null)]), n.value === o.value && f("span", {
524
527
  class: "page-link"
525
528
  }, [o.label])]));
526
529
  }
527
530
  return {
528
- renderPageNumbers: d
531
+ renderPageNumbers: y
529
532
  };
530
533
  }
531
- function ce(n, e, t) {
532
- const i = w(() => ({
534
+ function ie(n, e, t) {
535
+ const p = P(() => ({
533
536
  "page-item": !0,
534
537
  disabled: e.value
535
538
  }));
536
- function a(r) {
539
+ function c(s) {
537
540
  n.value = 1;
538
541
  }
539
- function d(r) {
542
+ function y(s) {
540
543
  n.value = n.value > 2 ? n.value - 1 : 1;
541
544
  }
542
545
  function o() {
543
- return p("li", {
544
- class: i.value
545
- }, [t.value && p("a", {
546
+ return f("li", {
547
+ class: p.value
548
+ }, [t.value && f("a", {
546
549
  tabindex: "0",
547
550
  class: "page-link",
548
- onClick: (r) => a()
549
- }, [p("span", {
551
+ onClick: (s) => c()
552
+ }, [f("span", {
550
553
  class: "f-icon f-page-first"
551
- }, null)]), e.value && p("span", {
554
+ }, null)]), e.value && f("span", {
552
555
  class: "page-link"
553
- }, [p("span", {
556
+ }, [f("span", {
554
557
  class: "f-icon f-page-first"
555
558
  }, null)])]);
556
559
  }
557
- function s() {
558
- return p("li", {
559
- class: i.value
560
- }, [t.value && p("a", {
560
+ function a() {
561
+ return f("li", {
562
+ class: p.value
563
+ }, [t.value && f("a", {
561
564
  tabindex: "0",
562
565
  class: "page-link",
563
- onClick: (r) => d()
564
- }, [p("span", {
566
+ onClick: (s) => y()
567
+ }, [f("span", {
565
568
  class: "f-icon f-page-pre"
566
- }, null)]), e.value && p("span", {
569
+ }, null)]), e.value && f("span", {
567
570
  class: "page-link"
568
- }, [p("span", {
571
+ }, [f("span", {
569
572
  class: "f-icon f-page-pre"
570
573
  }, null)])]);
571
574
  }
572
575
  return {
573
576
  renderFirstPage: o,
574
- renderPreviousPage: s
577
+ renderPreviousPage: a
575
578
  };
576
579
  }
577
- function le(n) {
578
- const e = N([]);
579
- function t(a, d, o, s) {
580
- const r = Math.ceil(o / 2);
581
- return a === o ? s : a === 1 ? a : o < s ? s - r < d ? s - o + a : r < d ? d - r + a : a : a;
582
- }
583
- function i(a, d, o, s) {
584
- const r = [], f = Math.ceil(o / d), g = Math.ceil(s / 2), v = a <= g, m = f - g < a, C = !v && !m, l = s < f;
585
- let c = 1;
586
- for (; c <= f && c <= s; ) {
587
- const u = t(c, a, s, f), b = c === 2 && (C || m), O = c === s - 1 && (C || v), P = l && (b || O) ? "..." : "" + u;
588
- r.push({ label: P, value: u }), c++;
580
+ function pe(n) {
581
+ const e = k([]);
582
+ function t(c, y, o, a) {
583
+ const s = Math.ceil(o / 2);
584
+ return c === o ? a : c === 1 ? c : o < a ? a - s < y ? a - o + c : s < y ? y - s + c : c : c;
585
+ }
586
+ function p(c, y, o, a) {
587
+ const s = [], r = Math.ceil(o / y), g = Math.ceil(a / 2), d = c <= g, m = r - g < c, C = !d && !m, l = a < r;
588
+ let i = 1;
589
+ for (; i <= r && i <= a; ) {
590
+ const u = t(i, c, a, r), b = i === 2 && (C || m), w = i === a - 1 && (C || d), j = l && (b || w) ? "..." : "" + u;
591
+ s.push({ label: j, value: u }), i++;
589
592
  }
590
- e.value = r;
593
+ e.value = s;
591
594
  }
592
- return { pages: e, updatePages: i };
595
+ return { pages: e, updatePages: p };
593
596
  }
594
- const J = /* @__PURE__ */ R({
597
+ const _ = /* @__PURE__ */ ee({
595
598
  name: "FPagination",
596
599
  props: Z,
597
600
  emits: ["pageIndexChanged", "pageSizeChanged", "update:currentPage", "update:pageSize"],
598
601
  setup(n, e) {
599
- const t = N(!1), i = N(n.mode), a = N(""), d = N(!1), o = N(n.pageSize), s = N(n.currentPage), r = N(n.totalItems), {
600
- pages: f,
602
+ const t = k(!1), p = k(n.mode), c = k(""), y = k(!1), o = k(n.pageSize), a = k(n.currentPage), s = k(n.totalItems), {
603
+ pages: r,
601
604
  updatePages: g
602
- } = le(), v = w(() => s.value === 1), m = w(() => n.pageList), C = w(() => Math.ceil(r.value / o.value)), l = w(() => s.value === C.value), c = w(() => n.showGoButton), u = w(() => s.value > 1), b = w(() => !(d.value && f.value.length <= 1)), O = w(() => !0), P = w(() => n.showPageList), S = w(() => n.showPageNumbers), M = w(() => !0), {
603
- renderFirstPage: j,
604
- renderPreviousPage: k
605
- } = ce(s, v, u), {
606
- renderLastPage: y,
605
+ } = pe(), d = P(() => a.value === 1), m = P(() => n.pageList), C = P(() => Math.ceil(s.value / o.value)), l = P(() => a.value === C.value), i = P(() => n.showGoButton), u = P(() => a.value > 1), b = P(() => !(y.value && r.value.length <= 1)), w = P(() => !0), j = P(() => n.showPageList), N = P(() => n.showPageNumbers), L = P(() => !0), {
606
+ renderFirstPage: v,
607
+ renderPreviousPage: O
608
+ } = ie(a, d, u), {
609
+ renderLastPage: S,
607
610
  renderNextPage: h
608
- } = oe(s, l, C), {
611
+ } = ae(a, l, C), {
609
612
  renderPageInfo: A
610
- } = ae(a, r), {
613
+ } = re(c, s), {
611
614
  renderPageList: T
612
- } = se(s, o, m, r), {
613
- renderPageNumbers: D
614
- } = re(s, f), {
615
- renderGotoButton: x
616
- } = ne(s, C);
617
- g(s.value, o.value, r.value, 7), B(() => n.totalItems, (E) => {
618
- r.value = E;
619
- }), B([s, o, r], () => {
620
- g(s.value, o.value, r.value, 7);
621
- }), B(s, () => {
622
- e.emit("update:currentPage", s.value), e.emit("pageIndexChanged", s.value);
615
+ } = ce(a, o, m, s), {
616
+ renderPageNumbers: M
617
+ } = le(a, r), {
618
+ renderGotoButton: D
619
+ } = se(a, C);
620
+ g(a.value, o.value, s.value, 7), B(() => n.totalItems, (E) => {
621
+ s.value = E;
622
+ }), B([a, o, s], () => {
623
+ g(a.value, o.value, s.value, 7);
624
+ }), B(a, () => {
625
+ e.emit("update:currentPage", a.value), e.emit("pageIndexChanged", {
626
+ pageIndex: a.value,
627
+ pageSize: o.value
628
+ });
623
629
  }), B(o, () => {
624
- e.emit("update:pageSize", o.value), e.emit("pageSizeChanged", o.value);
630
+ e.emit("update:pageSize", o.value), e.emit("pageSizeChanged", {
631
+ pageIndex: a.value,
632
+ pageSize: o.value
633
+ });
625
634
  }), B(() => n.totalItems, (E) => {
626
- r.value = E, g(s.value, o.value, r.value, 7);
627
- }), pe(() => {
635
+ s.value = E, g(a.value, o.value, s.value, 7);
636
+ }), fe(() => {
628
637
  const E = m.value.includes(o.value);
629
638
  o.value = E ? o.value : m.value[0];
630
639
  })();
631
- const $ = w(() => ({
640
+ const x = P(() => ({
632
641
  "ngx-pagination": !0,
633
642
  pagination: !0,
634
643
  responsive: t.value,
635
- "pager-viewmode-default": i.value === "default",
636
- "pager-viewmode-simple": i.value === "simple"
637
- })), F = w(() => ({
644
+ "pager-viewmode-default": p.value === "default",
645
+ "pager-viewmode-simple": p.value === "simple"
646
+ })), I = P(() => ({
638
647
  position: "relative",
639
- "justify-content": a.value === "center" ? "center" : "start"
648
+ "justify-content": c.value === "center" ? "center" : "start"
640
649
  }));
641
- function V() {
642
- return p(_, null, [O.value && A(), P.value && T(), M.value && j(), M.value && k(), S.value && D(), M.value && h(), M.value && y(), c.value && x()]);
650
+ function $() {
651
+ return f(W, null, [w.value && A(), j.value && T(), L.value && v(), L.value && O(), N.value && M(), L.value && h(), L.value && S(), i.value && D()]);
643
652
  }
644
- function z() {
645
- return p(_, null, [p("li", {
653
+ function V() {
654
+ return f(W, null, [f("li", {
646
655
  class: "page-item d-flex flex-fill"
647
- }, null), M.value && j(), M.value && k(), x(), p("li", {
656
+ }, null), L.value && v(), L.value && O(), D(), f("li", {
648
657
  class: "page-item page-separator",
649
658
  style: "margin-left: 10px"
650
- }, [p("span", {
659
+ }, [f("span", {
651
660
  style: "font-size: 15px; font-weight: 200;"
652
- }, [H(" /")])]), p("li", {
661
+ }, [U(" /")])]), f("li", {
653
662
  class: "page-item page-total",
654
663
  style: "margin-left: 5px"
655
- }, [p("span", {
664
+ }, [f("span", {
656
665
  style: "font-size: 16px; font-weight: 600;"
657
- }, [H(" "), C.value])]), M.value && h(), M.value && y()]);
666
+ }, [U(" "), C.value])]), L.value && h(), L.value && S()]);
658
667
  }
659
- return () => p("div", {
668
+ return () => f("div", {
660
669
  class: "pagination-container"
661
- }, [b.value && p("ul", {
670
+ }, [b.value && f("ul", {
662
671
  role: "navigation",
663
- class: $.value,
664
- style: F.value
665
- }, [i.value === "default" ? V() : z()])]);
672
+ class: x.value,
673
+ style: I.value
674
+ }, [p.value === "default" ? $() : V()])]);
666
675
  }
667
676
  });
668
- function ze(n, e, t) {
669
- var M;
670
- function i() {
677
+ function Ue(n, e, t) {
678
+ var L;
679
+ function p() {
671
680
  t != null && t.resolveComponentContext && t.resolveComponentContext();
672
681
  }
673
- i();
674
- const a = t && t.getStyles && t.getStyles() || "", d = t && t.getDesignerClass && t.getDesignerClass() || "", o = N();
675
- function s() {
682
+ p();
683
+ const c = t && t.getStyles && t.getStyles() || "", y = t && t.getDesignerClass && t.getDesignerClass() || "", o = k();
684
+ function a() {
676
685
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
677
686
  }
678
- function r() {
687
+ function s() {
679
688
  return !1;
680
689
  }
681
- function f() {
690
+ function r() {
682
691
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
683
692
  }
684
693
  function g() {
685
694
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
686
695
  }
687
- function v(j) {
688
- if (!j || !j.value)
696
+ function d(v) {
697
+ if (!v || !v.value)
689
698
  return null;
690
- if (j.value.schema && j.value.schema.type === "component")
691
- return j.value;
692
- const k = N(j == null ? void 0 : j.value.parent), y = v(k);
693
- return y || null;
699
+ if (v.value.schema && v.value.schema.type === "component")
700
+ return v.value;
701
+ const O = k(v == null ? void 0 : v.value.parent), S = d(O);
702
+ return S || null;
694
703
  }
695
- function m(j = e) {
696
- const { componentInstance: k, designerItemElementRef: y } = j;
697
- return !k || !k.value ? null : k.value.canMove ? y : m(j.parent);
704
+ function m(v = e) {
705
+ const { componentInstance: O, designerItemElementRef: S } = v;
706
+ return !O || !O.value ? null : O.value.canMove ? S : m(v.parent);
698
707
  }
699
- function C(j) {
700
- return !!t && t.canAccepts(j);
708
+ function C(v) {
709
+ return !!t && t.canAccepts(v);
701
710
  }
702
711
  function l() {
703
712
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
704
713
  }
705
- function c() {
714
+ function i() {
706
715
  }
707
- function u(j, k) {
708
- k && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(k);
716
+ function u(v, O) {
717
+ O && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(O);
709
718
  }
710
- function b(j, k) {
711
- const { componentType: y } = j;
712
- let h = q(y, j, k);
713
- t && t.onResolveNewComponentSchema && (h = t.onResolveNewComponentSchema(j, h));
714
- const A = y.toLowerCase().replace("-", "_");
715
- return h && !h.id && h.type === y && (h.id = `${A}_${Math.random().toString().slice(2, 6)}`), h;
719
+ function b(v, O) {
720
+ const { componentType: S } = v;
721
+ let h = q(S, v, O);
722
+ t && t.onResolveNewComponentSchema && (h = t.onResolveNewComponentSchema(v, h));
723
+ const A = S.toLowerCase().replace("-", "_");
724
+ return h && !h.id && h.type === S && (h.id = `${A}_${Math.random().toString().slice(2, 6)}`), h;
716
725
  }
717
- function O(j, k) {
718
- const y = String(j.getAttribute("data-controltype")), h = j.getAttribute("data-feature"), A = h ? JSON.parse(h) : {};
726
+ function w(v, O) {
727
+ const S = String(v.getAttribute("data-controltype")), h = v.getAttribute("data-feature"), A = h ? JSON.parse(h) : {};
719
728
  A.parentComponentInstance = o.value;
720
- let T = q(y, A);
721
- t && t.onAcceptNewChildElement && (T = t.onAcceptNewChildElement(j, k, T));
722
- const D = y.toLowerCase().replace("-", "_");
723
- return T && !T.id && T.type === y && (T.id = `${D}_${Math.random().toString().slice(2, 6)}`), T;
729
+ let T = q(S, A);
730
+ t && t.onAcceptNewChildElement && (T = t.onAcceptNewChildElement(v, O, T));
731
+ const M = S.toLowerCase().replace("-", "_");
732
+ return T && !T.id && T.type === S && (T.id = `${M}_${Math.random().toString().slice(2, 6)}`), T;
724
733
  }
725
- function P(j) {
734
+ function j(v) {
726
735
  }
727
- function S(...j) {
736
+ function N(...v) {
728
737
  if (t && t.getPropsConfig)
729
- return t.getPropsConfig(...j);
738
+ return t.getPropsConfig(...v);
730
739
  }
731
740
  return o.value = {
732
- canMove: s(),
733
- canSelectParent: r(),
734
- canDelete: f(),
741
+ canMove: a(),
742
+ canSelectParent: s(),
743
+ canDelete: r(),
735
744
  canNested: !g(),
736
745
  contents: e == null ? void 0 : e.schema.contents,
737
746
  elementRef: n,
738
- parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
747
+ parent: (L = e == null ? void 0 : e.parent) == null ? void 0 : L.componentInstance,
739
748
  schema: e == null ? void 0 : e.schema,
740
- styles: a,
741
- designerClass: d,
749
+ styles: c,
750
+ designerClass: y,
742
751
  canAccepts: C,
743
- getBelongedComponentInstance: v,
752
+ getBelongedComponentInstance: d,
744
753
  getDraggableDesignItemElement: m,
745
754
  getDraggingDisplayText: l,
746
- getPropConfig: S,
747
- getDragScopeElement: c,
755
+ getPropConfig: N,
756
+ getDragScopeElement: i,
748
757
  onAcceptMovedChildElement: u,
749
- onAcceptNewChildElement: O,
750
- onChildElementMovedOut: P,
758
+ onAcceptNewChildElement: w,
759
+ onChildElementMovedOut: j,
751
760
  addNewChildComponentSchema: b,
752
- updateDragAndDropRules: i,
753
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || N(!1),
754
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || N(!1)
761
+ updateDragAndDropRules: p,
762
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || k(!1),
763
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || k(!1)
755
764
  }, o;
756
765
  }
757
- function We() {
766
+ function _e() {
758
767
  function n(e) {
759
- var a, d;
768
+ var c, y;
760
769
  if (!e)
761
770
  return !1;
762
- const t = ((a = e.targetContainer) == null ? void 0 : a.componentInstance) && e.targetContainer.componentInstance.value;
771
+ const t = ((c = e.targetContainer) == null ? void 0 : c.componentInstance) && e.targetContainer.componentInstance.value;
763
772
  if (!t)
764
773
  return !1;
765
- const i = (d = t.schema.appearance) == null ? void 0 : d.class;
774
+ const p = (y = t.schema.appearance) == null ? void 0 : y.class;
766
775
  if (e.controlCategory === "input" || e.controlType === "form-group") {
767
- const o = t.schema.type, s = (o === "response-form" || o === "content-container") && i && i.includes("farris-form");
768
- if (t.schema.type !== "response-layout-item" && !s)
776
+ const o = t.schema.type, a = (o === "response-form" || o === "content-container") && p && p.includes("farris-form");
777
+ if (t.schema.type !== "response-layout-item" && !a)
769
778
  return !1;
770
779
  }
771
780
  return e.controlType !== "field-set";
@@ -774,7 +783,7 @@ function We() {
774
783
  basalDragulaRuleForContainer: n
775
784
  };
776
785
  }
777
- const Ge = "https://json-schema.org/draft/2020-12/schema", qe = "https://farris-design.gitee.io/dragging-rules.schema.json", _e = "Dragging Rules", He = "The rules of designer canvas", Je = "object", Qe = {
786
+ const Xe = "https://json-schema.org/draft/2020-12/schema", He = "https://farris-design.gitee.io/dragging-rules.schema.json", Je = "Dragging Rules", Qe = "The rules of designer canvas", Ye = "object", Ze = {
778
787
  "f-page": {
779
788
  description: "The root class of page designed by farris.",
780
789
  type: "object",
@@ -1412,293 +1421,373 @@ const Ge = "https://json-schema.org/draft/2020-12/schema", qe = "https://farris-
1412
1421
  description: "",
1413
1422
  type: "object"
1414
1423
  }
1415
- }, Ue = {
1416
- $schema: Ge,
1417
- $id: qe,
1418
- title: _e,
1419
- description: He,
1420
- type: Je,
1421
- properties: Qe
1422
- }, X = /* @__PURE__ */ new Map();
1423
- function Xe() {
1424
- function n(l, c, u, b) {
1425
- var O;
1424
+ }, Re = {
1425
+ $schema: Xe,
1426
+ $id: He,
1427
+ title: Je,
1428
+ description: Qe,
1429
+ type: Ye,
1430
+ properties: Ze
1431
+ }, Q = /* @__PURE__ */ new Map();
1432
+ function Ke() {
1433
+ function n(l, i, u, b) {
1434
+ var w;
1426
1435
  if (typeof u == "number")
1427
- return ((O = b[l]) == null ? void 0 : O.length) === u;
1436
+ return ((w = b[l]) == null ? void 0 : w.length) === u;
1428
1437
  if (typeof u == "object") {
1429
- const P = Object.keys(u)[0], S = u[P];
1430
- if (P === "not")
1431
- return Number(b[l].length) !== Number(S);
1432
- if (P === "moreThan")
1433
- return Number(b[l].length) >= Number(S);
1434
- if (P === "lessThan")
1435
- return Number(b[l].length) <= Number(S);
1438
+ const j = Object.keys(u)[0], N = u[j];
1439
+ if (j === "not")
1440
+ return Number(b[l].length) !== Number(N);
1441
+ if (j === "moreThan")
1442
+ return Number(b[l].length) >= Number(N);
1443
+ if (j === "lessThan")
1444
+ return Number(b[l].length) <= Number(N);
1436
1445
  }
1437
1446
  return !1;
1438
1447
  }
1439
- function e(l, c, u, b) {
1440
- return typeof u == "boolean" ? b.childrenClassList.includes(c) === !!u : !1;
1448
+ function e(l, i, u, b) {
1449
+ return typeof u == "boolean" ? b.childrenClassList.includes(i) === !!u : !1;
1441
1450
  }
1442
- function t(l, c, u, b) {
1443
- return typeof u == "boolean" ? b.parentClassList.includes(c) === !!u : !1;
1451
+ function t(l, i, u, b) {
1452
+ return typeof u == "boolean" ? b.parentClassList.includes(i) === !!u : !1;
1444
1453
  }
1445
- function i(l, c, u, b) {
1446
- return typeof u == "boolean" ? b.parentClassList.includes(c) === !!u : !1;
1454
+ function p(l, i, u, b) {
1455
+ return typeof u == "boolean" ? b.parentClassList.includes(i) === !!u : !1;
1447
1456
  }
1448
- const a = /* @__PURE__ */ new Map([
1457
+ const c = /* @__PURE__ */ new Map([
1449
1458
  ["length", n],
1450
1459
  ["hasChildren", e],
1451
- ["hasSibling", i],
1460
+ ["hasSibling", p],
1452
1461
  ["hasParent", t]
1453
1462
  ]);
1454
- function d(l, c) {
1463
+ function y(l, i) {
1455
1464
  const u = l;
1456
- return typeof c == "number" ? [{ target: u, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((b) => {
1465
+ return typeof i == "number" ? [{ target: u, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((b) => {
1457
1466
  if (b === "length")
1458
- return { target: u, operator: "length", param: null, value: c[b] };
1459
- const O = b, P = c[b];
1460
- return { target: u, operator: l === "children" ? "hasChildren" : l === "parent" ? "hasParent" : "hasSibling", param: O, value: P };
1467
+ return { target: u, operator: "length", param: null, value: i[b] };
1468
+ const w = b, j = i[b];
1469
+ return { target: u, operator: l === "children" ? "hasChildren" : l === "parent" ? "hasParent" : "hasSibling", param: w, value: j };
1461
1470
  }) : [];
1462
1471
  }
1463
- function o(l, c) {
1464
- if (a.has(l.operator)) {
1465
- const u = a.get(l.operator);
1466
- return u && u(l.target, l.param, l.value, c) || !1;
1472
+ function o(l, i) {
1473
+ if (c.has(l.operator)) {
1474
+ const u = c.get(l.operator);
1475
+ return u && u(l.target, l.param, l.value, i) || !1;
1467
1476
  }
1468
1477
  return !1;
1469
1478
  }
1470
- function s(l, c) {
1471
- return Object.keys(l).reduce((P, S) => {
1472
- const M = d(S, l[S]);
1473
- return P.push(...M), P;
1474
- }, []).reduce((P, S) => P && o(S, c), !0);
1479
+ function a(l, i) {
1480
+ return Object.keys(l).reduce((j, N) => {
1481
+ const L = y(N, l[N]);
1482
+ return j.push(...L), j;
1483
+ }, []).reduce((j, N) => j && o(N, i), !0);
1475
1484
  }
1476
- function r(l, c) {
1477
- const u = Object.keys(l), b = u.includes("allOf"), O = u.includes("anyOf"), P = b || O, j = (P ? l[P ? b ? "allOf" : "anyOf" : "allOf"] : [l]).map((y) => s(y, c));
1478
- return b ? !j.includes(!1) : j.includes(!0);
1485
+ function s(l, i) {
1486
+ const u = Object.keys(l), b = u.includes("allOf"), w = u.includes("anyOf"), j = b || w, v = (j ? l[j ? b ? "allOf" : "anyOf" : "allOf"] : [l]).map((S) => a(S, i));
1487
+ return b ? !v.includes(!1) : v.includes(!0);
1479
1488
  }
1480
- function f(l, c) {
1489
+ function r(l, i) {
1481
1490
  const u = l.const;
1482
- return u ? typeof u == "boolean" ? u : typeof u == "object" ? r(u, c) : !1 : !1;
1491
+ return u ? typeof u == "boolean" ? u : typeof u == "object" ? s(u, i) : !1 : !1;
1483
1492
  }
1484
1493
  function g(l) {
1485
- return (c) => {
1494
+ return (i) => {
1486
1495
  const u = { canAccept: !0, fixed: !1, hidePadding: !1 };
1487
- return l && l.properties && Object.keys(l.properties).reduce((b, O) => {
1488
- const P = l.properties[O];
1489
- return b[O] = f(P, c), b;
1496
+ return l && l.properties && Object.keys(l.properties).reduce((b, w) => {
1497
+ const j = l.properties[w];
1498
+ return b[w] = r(j, i), b;
1490
1499
  }, u), u;
1491
1500
  };
1492
1501
  }
1493
- function v(l, c, u) {
1494
- if (c.type === "object" && c.properties) {
1495
- const { rules: b, contents: O } = c.properties;
1496
- u.set(l, g(b)), O && Object.keys(O.properties).forEach(
1497
- (P) => v(P, O.properties[P], u)
1502
+ function d(l, i, u) {
1503
+ if (i.type === "object" && i.properties) {
1504
+ const { rules: b, contents: w } = i.properties;
1505
+ u.set(l, g(b)), w && Object.keys(w.properties).forEach(
1506
+ (j) => d(j, w.properties[j], u)
1498
1507
  );
1499
1508
  }
1500
1509
  }
1501
1510
  function m() {
1502
- const { properties: l } = Ue;
1503
- Object.keys(l).forEach((c) => {
1504
- v(c, l[c], X);
1511
+ const { properties: l } = Re;
1512
+ Object.keys(l).forEach((i) => {
1513
+ d(i, l[i], Q);
1505
1514
  });
1506
1515
  }
1507
- function C(l, c) {
1516
+ function C(l, i) {
1508
1517
  const u = { canAccept: !0, fixed: !1, hidePadding: !0 };
1509
- return X.has(l) ? X.get(l)(c) : u;
1518
+ return Q.has(l) ? Q.get(l)(i) : u;
1510
1519
  }
1511
1520
  return m(), { getRuleValue: C };
1512
1521
  }
1513
- function Ye(n, e) {
1514
- var k;
1515
- const t = n.schema, i = (k = n.parent) == null ? void 0 : k.schema, a = Xe(), d = N(!1), o = N(!1);
1516
- let s = !0, r = !1, f, g = !1;
1517
- function v(y) {
1518
- return f && f.componentClassList && f.componentClassList.includes("f-form-layout") && f.componentClassList.includes("farris-form") ? y.sourceType === "control" && y.controlCategory === "input" || y.sourceType === "move" && y.controlType === "form-group" : !0;
1522
+ function et(n, e) {
1523
+ function t(s, r = null) {
1524
+ if (r) return r;
1525
+ const g = n.getComponentById(e);
1526
+ return n.selectNode(g, (d) => d.id === s);
1527
+ }
1528
+ function p(s) {
1529
+ const r = n.getComponentById(s);
1530
+ return !(!r || !r.componentType || !r.componentType.startsWith("form"));
1531
+ }
1532
+ function c(s) {
1533
+ const r = t(s.id), g = he(n), d = [];
1534
+ g.getResonseFormLayoutConfig(r, d, 1);
1535
+ const m = d.map((N) => N.columnInSM), C = d.map((N) => N.columnInMD), l = d.map((N) => N.columnInLG), i = d.map((N) => N.columnInEL), u = y(m) ? m[0] : 0, b = y(C) ? C[0] : 0, w = y(l) ? l[0] : 0, j = y(i) ? i[0] : 0;
1536
+ return {
1537
+ uniqueColClassInSM: u,
1538
+ uniqueColClassInMD: b,
1539
+ uniqueColClassInLG: w,
1540
+ uniqueColClassInEL: j
1541
+ };
1542
+ }
1543
+ function y(s) {
1544
+ const r = new Set(s);
1545
+ return Array.from(r).length === 1;
1546
+ }
1547
+ function o(s, r, g) {
1548
+ s = t(g, s), s.contents.forEach((d) => {
1549
+ if (d.type === ve.fieldset.type) {
1550
+ o(d, r, d.id);
1551
+ return;
1552
+ }
1553
+ d.appearance || (d.appearance = {});
1554
+ const m = d.appearance.class;
1555
+ d.appearance.class = a(m, r);
1556
+ });
1557
+ }
1558
+ function a(s, r) {
1559
+ let g, d, m, C, l = [];
1560
+ if (s) {
1561
+ const N = s.split(" "), L = N.filter((v) => v.startsWith("col-"));
1562
+ g = L.find((v) => /^col-([1-9]|10|11|12)$/.test(v)), d = L.find((v) => /^col-md-([1-9]|10|11|12)$/.test(v)), m = L.find((v) => /^col-xl-([1-9]|10|11|12)$/.test(v)), C = L.find((v) => /^col-el-([1-9]|10|11|12)$/.test(v)), l = N.filter((v) => !v.startsWith("col-"));
1563
+ }
1564
+ const i = r.uniqueColClassInSM ? "col-" + r.uniqueColClassInSM : g, u = r.uniqueColClassInMD ? "col-md-" + r.uniqueColClassInMD : d, b = r.uniqueColClassInLG ? "col-xl-" + r.uniqueColClassInLG : m, w = r.uniqueColClassInEL ? "col-el-" + r.uniqueColClassInEL : C;
1565
+ return [i, u, b, w].concat(l).join(" ");
1566
+ }
1567
+ return { checkIsInFormComponent: p, assembleUnifiedLayoutContext: c, changeFormControlsByUnifiedLayoutConfig: o };
1568
+ }
1569
+ class tt extends be {
1570
+ constructor(e, t) {
1571
+ super(e, t);
1572
+ }
1573
+ getPropertyConfig(e, t) {
1574
+ var p = this;
1575
+ this.propertyConfig.categories.basic = this.getBasicPropConfig(e);
1576
+ const { checkIsInFormComponent: c, assembleUnifiedLayoutContext: y, changeFormControlsByUnifiedLayoutConfig: o } = et(this.formSchemaUtils, this.componentId), a = this.getAppearanceConfig(e);
1577
+ return a.properties.unifiedLayout = {
1578
+ title: "统一布局配置",
1579
+ description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
1580
+ visible: c(this.componentId),
1581
+ refreshPanelAfterChanged: !0,
1582
+ editor: {
1583
+ type: "response-form-layout-setting",
1584
+ initialState: y(e)
1585
+ }
1586
+ }, a.setPropertyRelates = function(s, r) {
1587
+ if (s)
1588
+ switch (s && s.propertyID) {
1589
+ case "unifiedLayout": {
1590
+ o(null, s.propertyValue, e.id), p.updateElementByParentContainer(e.id, t);
1591
+ break;
1592
+ }
1593
+ }
1594
+ }, this.propertyConfig.categories.appearance = a, this.propertyConfig;
1595
+ }
1596
+ }
1597
+ function nt(n, e) {
1598
+ var S;
1599
+ const t = n.schema, p = (S = n.parent) == null ? void 0 : S.schema, c = Ke(), y = k(!1), o = k(!1);
1600
+ let a = !0, s = !1, r, g = !1;
1601
+ function d(h) {
1602
+ return r && r.componentClassList && r.componentClassList.includes("f-form-layout") && r.componentClassList.includes("farris-form") ? h.sourceType === "control" && h.controlCategory === "input" || h.sourceType === "move" && h.controlType === "form-group" : !0;
1519
1603
  }
1520
- function m(y) {
1521
- return !(!We().basalDragulaRuleForContainer(y) || !s || !v(y));
1604
+ function m(h) {
1605
+ return !(!_e().basalDragulaRuleForContainer(h) || !a || !d(h));
1522
1606
  }
1523
1607
  function C() {
1524
- d.value = !1, o.value = !1;
1525
- const y = t, h = y.appearance && y.appearance.class || "", A = h.split(" "), T = y.contents || [], D = T.length ? T[0] : null, x = D && D.appearance ? D.appearance.class : "", L = x ? x.split(" ") : [], $ = T.length ? T.reduce((W, G) => {
1526
- const I = G && G.appearance ? G.appearance.class : "", ie = I ? I.split(" ") : [];
1527
- return W.push(...ie), W;
1528
- }, []) : [], F = i, V = F && F.appearance && F.appearance.class || "", z = V ? V.split(" ") : [];
1529
- f = {
1530
- componentClass: h,
1531
- componentClassList: A,
1532
- childContents: T,
1608
+ y.value = !1, o.value = !1;
1609
+ const h = t, A = h.appearance && h.appearance.class || "", T = A.split(" "), M = h.contents || [], D = M.length ? M[0] : null, F = D && D.appearance ? D.appearance.class : "", x = F ? F.split(" ") : [], I = M.length ? M.reduce((G, J) => {
1610
+ const R = J && J.appearance ? J.appearance.class : "", ue = R ? R.split(" ") : [];
1611
+ return G.push(...ue), G;
1612
+ }, []) : [], $ = p, V = $ && $.appearance && $.appearance.class || "", E = V ? V.split(" ") : [];
1613
+ r = {
1614
+ componentClass: A,
1615
+ componentClassList: T,
1616
+ childContents: M,
1533
1617
  firstChildContent: D,
1534
- firstChildClass: x,
1535
- firstChildClassList: L,
1536
- parent: F,
1618
+ firstChildClass: F,
1619
+ firstChildClassList: x,
1620
+ parent: $,
1537
1621
  parentClass: V,
1538
- parentClassList: z,
1539
- children: T,
1540
- childrenClassList: $
1622
+ parentClassList: E,
1623
+ children: M,
1624
+ childrenClassList: I
1541
1625
  };
1542
- const { canAccept: E, fixed: Q, hidePadding: U } = a.getRuleValue(A[0], f);
1543
- return s = E, r = U, g = Q, !0;
1626
+ const { canAccept: X, fixed: H, hidePadding: z } = c.getRuleValue(T[0], r);
1627
+ return a = X, s = z, g = H, !0;
1544
1628
  }
1545
- function l(y) {
1546
- ue();
1629
+ function l(h) {
1630
+ de();
1547
1631
  }
1548
- function c() {
1632
+ function i() {
1549
1633
  return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1550
1634
  }
1551
- function u(y, h) {
1552
- const A = t;
1553
- if ((A.appearance && A.appearance.class || "").split(" ").includes("f-form-layout")) {
1554
- const { label: x } = y, L = q("form-group");
1555
- return L.editor = h, L.label = x, b(L), delete L.editor.id, delete L.editor.binding, delete L.editor.appearance, delete L.editor.visible, L;
1635
+ function u(h, A) {
1636
+ const T = t;
1637
+ if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
1638
+ const { label: F } = h, x = q("form-group");
1639
+ return x.editor = A, x.label = F, b(x), delete x.editor.id, delete x.editor.binding, delete x.editor.appearance, delete x.editor.visible, x;
1556
1640
  }
1557
- return h;
1641
+ return A;
1558
1642
  }
1559
- function b(y) {
1560
- const h = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1561
- if (h && h.schema && h.schema.componentType) {
1562
- const A = h.schema.formColumns, T = O(A);
1563
- y.appearance || (y.appearance = {}), y.appearance.class = T;
1643
+ function b(h) {
1644
+ const A = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1645
+ if (A && A.schema && A.schema.componentType) {
1646
+ const T = A.schema.formColumns;
1647
+ let M = w(T);
1648
+ M = e.formSchemaUtils.getControlClassByFormUnifiedLayout(M, "", n.schema), h.appearance || (h.appearance = {}), h.appearance.class = M;
1564
1649
  }
1565
1650
  }
1566
- function O(y) {
1567
- let h = "";
1568
- switch (y) {
1651
+ function w(h) {
1652
+ let A = "";
1653
+ switch (h) {
1569
1654
  case 1: {
1570
- h = "col-12 col-md-12 col-xl-12 col-el-12";
1655
+ A = "col-12 col-md-12 col-xl-12 col-el-12";
1571
1656
  break;
1572
1657
  }
1573
1658
  case 2: {
1574
- h = "col-12 col-md-6 col-xl-6 col-el-6";
1659
+ A = "col-12 col-md-6 col-xl-6 col-el-6";
1575
1660
  break;
1576
1661
  }
1577
1662
  case 3: {
1578
- h = "col-12 col-md-6 col-xl-4 col-el-4";
1663
+ A = "col-12 col-md-6 col-xl-4 col-el-4";
1579
1664
  break;
1580
1665
  }
1581
1666
  case 4: {
1582
- h = "col-12 col-md-6 col-xl-3 col-el-2";
1667
+ A = "col-12 col-md-6 col-xl-3 col-el-2";
1583
1668
  break;
1584
1669
  }
1585
1670
  }
1586
- return h;
1671
+ return A;
1587
1672
  }
1588
- function P(y, h, A) {
1589
- const T = t;
1590
- if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
1591
- const L = String(y.innerText), $ = q("form-group");
1592
- return $.editor = A, $.label = L, $;
1673
+ function j(h, A, T) {
1674
+ const M = t;
1675
+ if ((M.appearance && M.appearance.class || "").split(" ").includes("f-form-layout")) {
1676
+ const x = String(h.innerText), I = q("form-group");
1677
+ return I.editor = T, I.label = x, I;
1593
1678
  }
1594
- return A;
1679
+ return T;
1595
1680
  }
1596
- function S() {
1681
+ function N() {
1597
1682
  return !g;
1598
1683
  }
1599
- function M() {
1684
+ function L() {
1600
1685
  return !g;
1601
1686
  }
1602
- function j() {
1603
- return r;
1687
+ function v() {
1688
+ return s;
1689
+ }
1690
+ function O(h) {
1691
+ return new tt(h, e).getPropertyConfig(t, n.componentInstance.value);
1604
1692
  }
1605
1693
  return {
1606
1694
  canAccepts: m,
1607
- checkCanDeleteComponent: M,
1608
- checkCanMoveComponent: S,
1609
- getStyles: c,
1610
- hideNestedPaddingInDesginerView: j,
1611
- onAcceptNewChildElement: P,
1695
+ checkCanDeleteComponent: L,
1696
+ checkCanMoveComponent: N,
1697
+ getStyles: i,
1698
+ getPropsConfig: O,
1699
+ hideNestedPaddingInDesginerView: v,
1700
+ onAcceptNewChildElement: j,
1612
1701
  onAcceptMovedChildElement: l,
1613
1702
  resolveComponentContext: C,
1614
1703
  onResolveNewComponentSchema: u,
1615
- triggerBelongedComponentToMoveWhenMoved: d,
1704
+ triggerBelongedComponentToMoveWhenMoved: y,
1616
1705
  triggerBelongedComponentToDeleteWhenDeleted: o
1617
1706
  };
1618
1707
  }
1619
- const Ze = /* @__PURE__ */ R({
1708
+ const ot = /* @__PURE__ */ ee({
1620
1709
  name: "FPagination",
1621
1710
  props: Z,
1622
1711
  emits: ["pageIndexChanged", "pageSizeChanged"],
1623
1712
  setup(n, e) {
1624
- var W;
1625
- const t = N(!1), i = N(n.mode), a = N(""), d = N(!1), o = N(n.pageSize), s = N(n.currentPage), r = N(n.totalItems), f = N(), g = fe("design-item-context"), v = Ye(g.schema, (W = g.parent) == null ? void 0 : W.schema), m = ze(f, g, v);
1626
- de(() => {
1627
- f.value.componentInstance = m;
1713
+ var z;
1714
+ const t = k(!1), p = k(n.mode), c = k(""), y = k(!1), o = k(n.pageSize), a = k(n.currentPage), s = k(n.totalItems), r = k(), g = ge("design-item-context"), d = nt(g.schema, (z = g.parent) == null ? void 0 : z.schema), m = Ue(r, g, d);
1715
+ ye(() => {
1716
+ r.value.componentInstance = m;
1628
1717
  }), e.expose(m.value);
1629
1718
  const {
1630
1719
  pages: C,
1631
1720
  updatePages: l
1632
- } = le(), c = w(() => s.value === 1), u = w(() => [20, 50, 100]), b = w(() => Math.ceil(r.value / o.value)), O = w(() => s.value === b.value), P = w(() => !0), S = w(() => s.value > 1), M = w(() => !(d.value && C.value.length <= 1)), j = w(() => !0), k = w(() => !0), y = w(() => !0), h = w(() => !0), {
1721
+ } = pe(), i = P(() => a.value === 1), u = P(() => [20, 50, 100]), b = P(() => Math.ceil(s.value / o.value)), w = P(() => a.value === b.value), j = P(() => !0), N = P(() => a.value > 1), L = P(() => !(y.value && C.value.length <= 1)), v = P(() => !0), O = P(() => !0), S = P(() => !0), h = P(() => !0), {
1633
1722
  renderFirstPage: A,
1634
1723
  renderPreviousPage: T
1635
- } = ce(s, c, S), {
1636
- renderLastPage: D,
1637
- renderNextPage: x
1638
- } = oe(s, O, b), {
1639
- renderPageInfo: L
1640
- } = ae(a, r), {
1641
- renderPageList: $
1642
- } = se(s, o, u, r), {
1643
- renderPageNumbers: F
1644
- } = re(s, C), {
1645
- renderGotoButton: V
1646
- } = ne(s, b);
1647
- l(s.value, o.value, r.value, 7), B([s, o], () => {
1648
- l(s.value, o.value, r.value, 7);
1649
- }), B(s, () => {
1650
- e.emit("pageIndexChanged", s.value);
1724
+ } = ie(a, i, N), {
1725
+ renderLastPage: M,
1726
+ renderNextPage: D
1727
+ } = ae(a, w, b), {
1728
+ renderPageInfo: F
1729
+ } = re(c, s), {
1730
+ renderPageList: x
1731
+ } = ce(a, o, u, s), {
1732
+ renderPageNumbers: I
1733
+ } = le(a, C), {
1734
+ renderGotoButton: $
1735
+ } = se(a, b);
1736
+ l(a.value, o.value, s.value, 7), B([a, o], () => {
1737
+ l(a.value, o.value, s.value, 7);
1738
+ }), B(a, () => {
1739
+ e.emit("pageIndexChanged", a.value);
1651
1740
  }), B(o, () => {
1652
1741
  e.emit("pageSizeChanged", o.value);
1653
1742
  });
1654
- const z = w(() => ({
1743
+ const V = P(() => ({
1655
1744
  "ngx-pagination": !0,
1656
1745
  pagination: !0,
1657
1746
  responsive: t.value,
1658
- "pager-viewmode-default": i.value === "default",
1659
- "pager-viewmode-simple": i.value === "simple"
1660
- })), E = w(() => ({
1747
+ "pager-viewmode-default": p.value === "default",
1748
+ "pager-viewmode-simple": p.value === "simple"
1749
+ })), E = P(() => ({
1661
1750
  position: "relative",
1662
- "justify-content": a.value === "center" ? "center" : "start"
1751
+ "justify-content": c.value === "center" ? "center" : "start"
1663
1752
  }));
1664
- function Q() {
1665
- return p(_, null, [j.value && L(), k.value && $(), h.value && A(), h.value && T(), y.value && F(), h.value && x(), h.value && D(), P.value && V()]);
1753
+ function X() {
1754
+ return f(W, null, [v.value && F(), O.value && x(), h.value && A(), h.value && T(), S.value && I(), h.value && D(), h.value && M(), j.value && $()]);
1666
1755
  }
1667
- function U() {
1668
- return p(_, null, [p("li", {
1756
+ function H() {
1757
+ return f(W, null, [f("li", {
1669
1758
  class: "page-item d-flex flex-fill"
1670
- }, null), h.value && A(), h.value && T(), V(), p("li", {
1759
+ }, null), h.value && A(), h.value && T(), $(), f("li", {
1671
1760
  class: "page-item page-separator",
1672
1761
  style: "margin-left: 10px"
1673
- }, [p("span", {
1762
+ }, [f("span", {
1674
1763
  style: "font-size: 15px; font-weight: 200;"
1675
- }, [H(" /")])]), p("li", {
1764
+ }, [U(" /")])]), f("li", {
1676
1765
  class: "page-item page-total",
1677
1766
  style: "margin-left: 5px"
1678
- }, [p("span", {
1767
+ }, [f("span", {
1679
1768
  style: "font-size: 16px; font-weight: 600;"
1680
- }, [H(" "), b.value])]), h.value && x(), h.value && D()]);
1769
+ }, [U(" "), b.value])]), h.value && D(), h.value && M()]);
1681
1770
  }
1682
- return () => p("div", {
1683
- ref: f,
1771
+ return () => f("div", {
1772
+ ref: r,
1684
1773
  class: "pagination-container"
1685
- }, [M.value && p("ul", {
1774
+ }, [L.value && f("ul", {
1686
1775
  role: "navigation",
1687
- class: z.value,
1776
+ class: V.value,
1688
1777
  style: E.value
1689
- }, [i.value === "default" ? Q() : U()])]);
1778
+ }, [p.value === "default" ? X() : H()])]);
1690
1779
  }
1691
1780
  });
1692
- J.register = (n, e, t) => {
1693
- n.pagination = J, e.pagination = te;
1781
+ _.register = (n, e, t) => {
1782
+ n.pagination = _, e.pagination = oe;
1694
1783
  };
1695
- J.registerDesigner = (n, e, t) => {
1696
- n.pagination = Ze, e.pagination = te;
1784
+ _.registerDesigner = (n, e, t) => {
1785
+ n.pagination = ot, e.pagination = oe;
1697
1786
  };
1698
- const et = be(J);
1787
+ const pt = Ce(_);
1699
1788
  export {
1700
- J as FPagination,
1701
- et as default,
1789
+ _ as FPagination,
1790
+ pt as default,
1702
1791
  Z as paginationProps,
1703
- te as propsResolver
1792
+ oe as propsResolver
1704
1793
  };