@farris/ui-vue 1.2.8 → 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 (283) hide show
  1. package/components/accordion/index.esm.js +180 -180
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +419 -331
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.css +1 -1
  8. package/components/button-edit/index.esm.js +346 -326
  9. package/components/button-edit/index.umd.cjs +1 -0
  10. package/components/button-group/index.umd.cjs +1 -0
  11. package/components/calculator/index.umd.cjs +1 -0
  12. package/components/calendar/index.esm.js +384 -384
  13. package/components/calendar/index.umd.cjs +1 -0
  14. package/components/capsule/index.esm.js +205 -205
  15. package/components/capsule/index.umd.cjs +1 -0
  16. package/components/checkbox/index.esm.js +555 -467
  17. package/components/checkbox/index.umd.cjs +1 -0
  18. package/components/color-picker/index.esm.js +239 -239
  19. package/components/color-picker/index.umd.cjs +3 -0
  20. package/components/combo-list/index.css +1 -0
  21. package/components/combo-list/index.esm.js +1072 -364
  22. package/components/combo-list/index.umd.cjs +1 -0
  23. package/components/combo-tree/index.esm.js +129 -129
  24. package/components/combo-tree/index.umd.cjs +1 -0
  25. package/components/common/index.esm.js +778 -700
  26. package/components/common/index.umd.cjs +1 -0
  27. package/components/component/index.esm.js +582 -327
  28. package/components/component/index.umd.cjs +1 -0
  29. package/components/condition/index.css +1 -0
  30. package/components/condition/index.esm.js +2433 -1134
  31. package/components/condition/index.umd.cjs +1 -0
  32. package/components/content-container/index.esm.js +307 -234
  33. package/components/content-container/index.umd.cjs +1 -0
  34. package/components/data-grid/index.css +1 -1
  35. package/components/data-grid/index.esm.js +6762 -4946
  36. package/components/data-grid/index.umd.cjs +1 -0
  37. package/components/data-view/index.css +1 -0
  38. package/components/data-view/index.esm.js +4977 -3489
  39. package/components/data-view/index.umd.cjs +1 -0
  40. package/components/date-picker/index.css +1 -1
  41. package/components/date-picker/index.esm.js +3525 -2811
  42. package/components/date-picker/index.umd.cjs +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +938 -928
  45. package/components/designer-canvas/index.umd.cjs +1 -0
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +38 -37
  48. package/components/designer-outline/index.umd.cjs +1 -0
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -0
  51. package/components/discussion-editor/index.umd.cjs +3 -0
  52. package/components/discussion-list/index.umd.cjs +1 -0
  53. package/components/drawer/index.umd.cjs +1 -0
  54. package/components/dropdown/index.esm.js +282 -282
  55. package/components/dropdown/index.umd.cjs +2 -0
  56. package/components/dynamic-form/index.css +1 -0
  57. package/components/dynamic-form/index.esm.js +2684 -1039
  58. package/components/dynamic-form/index.umd.cjs +1 -0
  59. package/components/dynamic-resolver/index.esm.js +149 -101
  60. package/components/dynamic-resolver/index.umd.cjs +1 -0
  61. package/components/dynamic-view/index.esm.js +303 -290
  62. package/components/dynamic-view/index.umd.cjs +1 -0
  63. package/components/enum-editor/index.umd.cjs +1 -0
  64. package/components/events-editor/index.esm.js +573 -518
  65. package/components/events-editor/index.umd.cjs +1 -0
  66. package/components/expression-editor/index.esm.js +99 -99
  67. package/components/expression-editor/index.umd.cjs +1 -0
  68. package/components/external-container/index.css +1 -1
  69. package/components/external-container/index.esm.js +3607 -2799
  70. package/components/external-container/index.umd.cjs +1 -0
  71. package/components/field-selector/index.css +1 -1
  72. package/components/field-selector/index.esm.js +5438 -8236
  73. package/components/field-selector/index.umd.cjs +1 -0
  74. package/components/filter-bar/index.css +1 -1
  75. package/components/filter-bar/index.esm.js +1679 -1759
  76. package/components/filter-bar/index.umd.cjs +1 -0
  77. package/components/flow-canvas/index.css +1 -1
  78. package/components/flow-canvas/index.esm.js +1062 -1052
  79. package/components/flow-canvas/index.umd.cjs +1 -0
  80. package/components/image-cropper/index.esm.js +421 -421
  81. package/components/image-cropper/index.umd.cjs +1 -0
  82. package/components/input-group/index.esm.js +677 -593
  83. package/components/input-group/index.umd.cjs +1 -0
  84. package/components/layout/index.esm.js +326 -326
  85. package/components/layout/index.umd.cjs +1 -0
  86. package/components/list-nav/index.esm.js +272 -199
  87. package/components/list-nav/index.umd.cjs +1 -0
  88. package/components/list-view/index.css +1 -1
  89. package/components/list-view/index.esm.js +3739 -2273
  90. package/components/list-view/index.umd.cjs +1 -0
  91. package/components/loading/index.umd.cjs +8 -0
  92. package/components/locale/index.umd.cjs +1 -0
  93. package/components/lookup/index.css +1 -1
  94. package/components/lookup/index.esm.js +11255 -9004
  95. package/components/lookup/index.umd.cjs +1 -0
  96. package/components/mapping-editor/index.css +1 -1
  97. package/components/mapping-editor/index.esm.js +6046 -5314
  98. package/components/mapping-editor/index.umd.cjs +1 -0
  99. package/components/message-box/index.css +1 -1
  100. package/components/message-box/index.esm.js +511 -471
  101. package/components/message-box/index.umd.cjs +1 -0
  102. package/components/modal/index.css +1 -1
  103. package/components/modal/index.esm.js +438 -398
  104. package/components/modal/index.umd.cjs +1 -0
  105. package/components/nav/index.esm.js +588 -444
  106. package/components/nav/index.umd.cjs +3 -0
  107. package/components/notify/index.esm.js +59 -53
  108. package/components/notify/index.umd.cjs +1 -0
  109. package/components/number-range/index.esm.js +568 -485
  110. package/components/number-range/index.umd.cjs +1 -0
  111. package/components/number-spinner/index.esm.js +542 -454
  112. package/components/number-spinner/index.umd.cjs +1 -0
  113. package/components/order/index.css +1 -1
  114. package/components/order/index.esm.js +1967 -1105
  115. package/components/order/index.umd.cjs +1 -0
  116. package/components/page-footer/index.esm.js +160 -160
  117. package/components/page-footer/index.umd.cjs +1 -0
  118. package/components/page-header/index.esm.js +1282 -1151
  119. package/components/page-header/index.umd.cjs +1 -0
  120. package/components/pagination/index.esm.js +705 -555
  121. package/components/pagination/index.umd.cjs +1 -0
  122. package/components/popover/index.esm.js +71 -70
  123. package/components/popover/index.umd.cjs +1 -0
  124. package/components/progress/index.esm.js +270 -270
  125. package/components/progress/index.umd.cjs +3 -0
  126. package/components/property-editor/index.css +1 -1
  127. package/components/property-editor/index.esm.js +2231 -1517
  128. package/components/property-editor/index.umd.cjs +3 -0
  129. package/components/property-panel/index.esm.js +813 -909
  130. package/components/property-panel/index.umd.cjs +1 -0
  131. package/components/query-solution/index.css +1 -1
  132. package/components/query-solution/index.esm.js +3781 -2566
  133. package/components/query-solution/index.umd.cjs +1 -0
  134. package/components/radio-button/index.esm.js +101 -101
  135. package/components/radio-button/index.umd.cjs +1 -0
  136. package/components/radio-group/index.esm.js +538 -450
  137. package/components/radio-group/index.umd.cjs +1 -0
  138. package/components/rate/index.esm.js +238 -233
  139. package/components/rate/index.umd.cjs +1 -0
  140. package/components/response-layout/index.esm.js +155 -155
  141. package/components/response-layout/index.umd.cjs +1 -0
  142. package/components/response-layout-editor/index.css +1 -1
  143. package/components/response-layout-editor/index.esm.js +1243 -1180
  144. package/components/response-layout-editor/index.umd.cjs +1 -0
  145. package/components/response-toolbar/index.esm.js +988 -877
  146. package/components/response-toolbar/index.umd.cjs +1 -0
  147. package/components/schema-selector/index.css +1 -1
  148. package/components/schema-selector/index.esm.js +5413 -4867
  149. package/components/schema-selector/index.umd.cjs +8 -0
  150. package/components/search-box/index.esm.js +199 -199
  151. package/components/search-box/index.umd.cjs +1 -0
  152. package/components/section/index.esm.js +646 -503
  153. package/components/section/index.umd.cjs +1 -0
  154. package/components/smoke-detector/index.esm.js +144 -144
  155. package/components/smoke-detector/index.umd.cjs +1 -0
  156. package/components/spacing-editor/index.umd.cjs +1 -0
  157. package/components/splitter/index.esm.js +464 -391
  158. package/components/splitter/index.umd.cjs +1 -0
  159. package/components/step/index.esm.js +249 -249
  160. package/components/step/index.umd.cjs +1 -0
  161. package/components/switch/index.esm.js +483 -394
  162. package/components/switch/index.umd.cjs +1 -0
  163. package/components/tabs/index.css +1 -1
  164. package/components/tabs/index.esm.js +2366 -2208
  165. package/components/tabs/index.umd.cjs +1 -0
  166. package/components/tags/index.esm.js +397 -399
  167. package/components/tags/index.umd.cjs +1 -0
  168. package/components/text/index.esm.js +394 -394
  169. package/components/text/index.umd.cjs +1 -0
  170. package/components/textarea/index.esm.js +451 -367
  171. package/components/textarea/index.umd.cjs +1 -0
  172. package/components/time-picker/index.css +1 -1
  173. package/components/time-picker/index.esm.js +1252 -1144
  174. package/components/time-picker/index.umd.cjs +1 -0
  175. package/components/tooltip/index.umd.cjs +1 -0
  176. package/components/transfer/index.css +1 -1
  177. package/components/transfer/index.esm.js +510 -499
  178. package/components/transfer/index.umd.cjs +1 -0
  179. package/components/tree-grid/index.css +1 -1
  180. package/components/tree-grid/index.esm.js +5463 -9330
  181. package/components/tree-grid/index.umd.cjs +1 -0
  182. package/components/tree-view/index.css +1 -0
  183. package/components/tree-view/index.esm.js +4058 -2597
  184. package/components/tree-view/index.umd.cjs +1 -0
  185. package/components/uploader/index.esm.js +510 -504
  186. package/components/uploader/index.umd.cjs +2 -0
  187. package/components/verify-detail/index.esm.js +220 -220
  188. package/components/verify-detail/index.umd.cjs +1 -0
  189. package/components/video/index.esm.js +653 -394
  190. package/components/video/index.umd.cjs +1 -0
  191. package/components/weather/index.esm.js +1028 -1028
  192. package/components/weather/index.umd.cjs +16 -0
  193. package/farris.all.esm.js +20407 -18556
  194. package/farris.all.umd.cjs +8 -8
  195. package/index.css +1 -1
  196. package/package.json +1 -1
  197. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  198. package/types/capsule/src/capsule.props.d.ts +2 -2
  199. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  200. package/types/common/entity/entity-schema.d.ts +258 -0
  201. package/types/common/index.d.ts +1 -0
  202. package/types/common/types.d.ts +1 -1
  203. package/types/common/utils/encrypt.d.ts +2 -0
  204. package/types/component/src/component-ref.props.d.ts +4 -0
  205. package/types/component/src/component.props.d.ts +7 -0
  206. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  207. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  208. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  209. package/types/components.d.ts +1 -0
  210. package/types/data-grid/index.d.ts +8 -2
  211. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  212. package/types/data-grid/src/data-grid.component.d.ts +3 -1
  213. package/types/data-grid/src/data-grid.props.d.ts +3 -2
  214. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  215. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  216. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  217. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  218. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  219. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  220. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  221. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  222. package/types/data-view/composition/types.d.ts +36 -7
  223. package/types/data-view/composition/use-edit.d.ts +2 -1
  224. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  225. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  226. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  227. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  228. package/types/designer-canvas/src/types.d.ts +2 -2
  229. package/types/dynamic-form/index.d.ts +2 -1
  230. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  231. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  232. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  233. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  234. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  235. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  236. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  237. package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
  238. package/types/dynamic-form/src/types.d.ts +12 -1
  239. package/types/dynamic-resolver/index.d.ts +1 -0
  240. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  241. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  242. package/types/dynamic-resolver/src/types.d.ts +12 -2
  243. package/types/dynamic-view/index.d.ts +1 -0
  244. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  245. package/types/index.d.ts +2 -0
  246. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  247. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  248. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  249. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  250. package/types/lookup/src/composition/types.d.ts +8 -0
  251. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  252. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  253. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  254. package/types/lookup/src/composition/use-http.d.ts +9 -5
  255. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  256. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  257. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  258. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  259. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  260. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  261. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  262. package/types/modal/src/modal.component.d.ts +3 -0
  263. package/types/modal/src/modal.props.d.ts +4 -0
  264. package/types/page-header/src/page-header.props.d.ts +1 -0
  265. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  266. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  267. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  268. package/types/response-layout-editor/src/type.d.ts +21 -0
  269. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  270. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  271. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  272. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  273. package/types/tabs/src/composition/types.d.ts +2 -2
  274. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  275. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  276. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  277. package/types/tabs/src/tabs.props.d.ts +1 -0
  278. package/types/tags/index.d.ts +36 -5
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/modal/src/composition/use-esc.d.ts +0 -1
  282. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  283. 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 } = n, l = Object.keys(e).reduce((o, g) => (o[g] = e[g].type === "object" && e[g].properties ? Y(e[g]) : ge(e[g].default), o), {});
7
- return l.id = `${t}-${Date.now()}`, l;
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
- function q(n, e = {}) {
10
- const t = K[n];
11
- if (t) {
12
- let l = Y(t);
13
- const o = ee[n];
14
- return l = o ? o({ getSchemaByType: q }, l, e) : l, l;
12
+ function q(n, e = {}, t) {
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((l, o) => (l[o] && typeof l[o] == "object" ? Object.assign(l[o], n[o]) : l[o] = n[o], l), 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 me(n, e) {
23
- return Object.keys(n).filter((l) => n[l] != null).reduce((l, o) => {
24
- if (e.has(o)) {
25
- const g = e.get(o);
26
- if (typeof g == "string")
27
- l[g] = n[o];
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 a = g(o, n[o], n);
30
- Object.assign(l, a);
32
+ const o = y(c, n[c], n);
33
+ Object.assign(p, o);
31
34
  }
32
35
  } else
33
- l[o] = n[o];
34
- return l;
36
+ p[c] = n[c];
37
+ return p;
35
38
  }, {});
36
39
  }
37
- function he(n, e, t = /* @__PURE__ */ new Map()) {
38
- const l = ye(n, e);
39
- return me(l, 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, b, h, m) {
43
- if (typeof h == "number")
44
- return m[f].length === h;
45
- if (typeof h == "object") {
46
- const P = Object.keys(h)[0], c = h[P];
47
- if (P === "not")
48
- return Number(m[f].length) !== Number(c);
49
- if (P === "moreThan")
50
- return Number(m[f].length) >= Number(c);
51
- if (P === "lessThan")
52
- return Number(m[f].length) <= Number(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];
50
+ if (C === "not")
51
+ return Number(m[r].length) !== Number(l);
52
+ if (C === "moreThan")
53
+ return Number(m[r].length) >= Number(l);
54
+ if (C === "lessThan")
55
+ return Number(m[r].length) <= Number(l);
53
56
  }
54
57
  return !1;
55
58
  }
56
- function t(f, b, h, m) {
57
- return m[f] && m[f].propertyValue && String(m[f].propertyValue.value) === String(h);
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 l = /* @__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, b) => (f.set(b, n[b]), f), l);
64
- function o(f, b) {
65
- const h = f;
66
- return typeof b == "number" ? [{ target: h, operator: "length", param: null, value: Number(b) }] : typeof b == "boolean" ? [{ target: h, operator: "getProperty", param: f, value: !!b }] : typeof b == "object" ? Object.keys(b).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: h, operator: "length", param: null, value: b[m] };
69
- const P = m, c = b[m];
70
- return { target: h, operator: "getProperty", param: P, value: c };
71
+ return { target: d, operator: "length", param: null, value: g[m] };
72
+ const C = m, l = g[m];
73
+ return { target: d, operator: "getProperty", param: C, value: l };
71
74
  }) : [];
72
75
  }
73
- function g(f) {
74
- return Object.keys(f).reduce((h, m) => {
75
- const P = o(m, f[m]);
76
- return h.push(...P), h;
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 a(f, b) {
80
- if (l.has(f.operator)) {
81
- const h = l.get(f.operator);
82
- return h && h(f.target, f.param, f.value, b) || !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, b) {
87
- return g(f).reduce((P, c) => P && a(c, b), !0);
89
+ function a(r, g) {
90
+ return y(r).reduce((C, l) => C && o(l, g), !0);
88
91
  }
89
- function i(f, b) {
90
- const h = Object.keys(f), m = h.includes("allOf"), P = h.includes("anyOf"), c = m || P, y = (c ? f[c ? m ? "allOf" : "anyOf" : "allOf"] : [f]).map((C) => s(C, b));
91
- return m ? !y.includes(!1) : y.includes(!0);
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));
94
+ return m ? !b.includes(!1) : b.includes(!0);
92
95
  }
93
- return { parseValueSchema: i };
96
+ return { parseValueSchema: s };
94
97
  }
95
- const je = {}, Ce = {};
96
- ve();
97
- function Pe(n, e, t = /* @__PURE__ */ new Map(), l = (a, s, i) => s, o = {}, g = (a) => a) {
98
- return K[e.title] = e, ee[e.title] = l, je[e.title] = o, Ce[e.title] = g, (a = {}) => {
99
- const s = he(a, e, t), i = Object.keys(n).reduce((f, b) => (f[b] = n[b].default, f), {});
100
- return Object.assign(i, 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
- ]), Te = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-design.gitee.io/pagination.schema.json", Oe = "pagination", Se = "A Farris Component", Ae = "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: Te,
205
- $id: ke,
206
- title: Oe,
207
- description: Se,
208
- type: Ae,
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 = Pe(Z, De, Ne, Ve, Fe);
336
- function ne(n, e) {
337
- const t = N("跳转至"), l = N(""), o = N(n.value);
338
- B(o, (i, f) => {
339
- i >= 1 && i <= e.value ? n.value = i : o.value = f;
340
- }), B(n, (i) => {
341
- o.value !== i && (o.value = i);
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 g(i) {
344
- o.value = i.target.valueAsNumber;
346
+ function y(s) {
347
+ c.value = s.target.valueAsNumber;
345
348
  }
346
- function a(i) {
347
- i.key === "Enter" && (o.value = i.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: o.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: (i) => g(i),
363
- onKeyup: (i) => a(i)
364
- }, null), l.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 l = 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 o(i) {
378
+ function c(s) {
376
379
  n.value = n.value < t.value ? n.value + 1 : t.value;
377
380
  }
378
- function g(i) {
381
+ function y(s) {
379
382
  n.value = t.value;
380
383
  }
381
- function a() {
382
- return p("li", {
383
- class: l.value
384
- }, [!e.value && p("a", {
384
+ function o() {
385
+ return f("li", {
386
+ class: p.value
387
+ }, [!e.value && f("a", {
385
388
  class: "page-link",
386
389
  tabindex: "0",
387
- onClick: (i) => o()
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: l.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: (i) => g()
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,
413
- renderNextPage: a
415
+ renderLastPage: a,
416
+ renderNextPage: o
414
417
  };
415
418
  }
416
- function ae(n, e) {
417
- const t = N("共"), l = N("条"), o = 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 g() {
425
- return p("li", {
426
- class: o.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
- }, [l.value])])]);
439
+ }, [p.value])])]);
437
440
  }
438
441
  return {
439
- renderPageInfo: g
442
+ renderPageInfo: y
440
443
  };
441
444
  }
442
- function se(n, e, t, l) {
443
- const o = N(!1), g = N("显示"), a = 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": l.value === 0,
448
- show: o.value
449
- })), i = w(() => ({
450
+ "pagelist-disabled": p.value === 0,
451
+ show: c.value
452
+ })), s = P(() => ({
450
453
  "dropdown-menu": !0,
451
- show: o.value
452
- })), f = (r) => ({
454
+ show: c.value
455
+ })), r = (i) => ({
453
456
  "w-100": !0,
454
457
  "dropdown-item": !0,
455
- active: e.value === r
458
+ active: e.value === i
456
459
  });
457
- function b(r) {
458
- o.value = !0;
460
+ function g(i) {
461
+ c.value = !0;
459
462
  }
460
- function h(r) {
461
- o.value = !1;
463
+ function d(i) {
464
+ c.value = !1;
462
465
  }
463
- function m(r, u, y) {
464
- const C = r * u - u + 1;
465
- return Math.ceil(C / y);
466
+ function m(i, u, b) {
467
+ const j = i * u - u + 1;
468
+ return Math.ceil(j / b);
466
469
  }
467
- function P(r, u) {
468
- n.value = m(n.value, e.value, u), e.value = u, o.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
- function c() {
471
- return p("li", {
473
+ function l() {
474
+ return f("li", {
472
475
  class: "pagination-pagelist"
473
- }, [p("div", {
474
- class: s.value,
475
- onMouseenter: (r) => b(),
476
- onMouseleave: (r) => h()
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
- }, [g.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
- }, [a.value]), p("i", {
488
+ }, [o.value]), f("i", {
486
489
  class: "f-icon f-icon-dropdown"
487
- }, null)]), p("div", {
488
- class: i.value,
490
+ }, null)]), f("div", {
491
+ class: s.value,
489
492
  style: "margin-bottom: -1px;"
490
- }, [t.value.map((r) => p("li", {
491
- class: f(r),
492
- onClick: (u) => P(u, r)
493
- }, [p("span", null, [r])]))])])]);
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
- renderPageList: c
499
+ renderPageList: l
497
500
  };
498
501
  }
499
- function re(n, e) {
500
- const t = (a) => ({
502
+ function le(n, e) {
503
+ const t = (o) => ({
501
504
  "page-item": !0,
502
- current: n.value === a.value,
503
- ellipsis: a.label === "..."
504
- }), l = (a) => ({
505
+ current: n.value === o.value,
506
+ ellipsis: o.label === "..."
507
+ }), p = (o) => ({
505
508
  "f-icon": !0,
506
- "f-icon-arrow-seek-left": a.value < n.value,
507
- "f-icon-arrow-seek-right": a.value > n.value
509
+ "f-icon-arrow-seek-left": o.value < n.value,
510
+ "f-icon-arrow-seek-right": o.value > n.value
508
511
  });
509
- function o(a, s) {
510
- n.value = s;
512
+ function c(o, a) {
513
+ n.value = a;
511
514
  }
512
- function g() {
513
- return e.value.map((a) => p("li", {
514
- class: t(a)
515
- }, [n.value !== a.value && p("a", {
515
+ function y() {
516
+ return e.value.map((o) => f("li", {
517
+ class: t(o)
518
+ }, [n.value !== o.value && f("a", {
516
519
  class: "page-link",
517
520
  tabindex: "0",
518
- onClick: (s) => o(s, a.value)
519
- }, [p("span", {
521
+ onClick: (a) => c(a, o.value)
522
+ }, [f("span", {
520
523
  class: "page-link-label"
521
- }, [a.label]), a.label === "..." && p("i", {
522
- class: l(a)
523
- }, null)]), n.value === a.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
- }, [a.label])]));
528
+ }, [o.label])]));
526
529
  }
527
530
  return {
528
- renderPageNumbers: g
531
+ renderPageNumbers: y
529
532
  };
530
533
  }
531
- function ce(n, e, t) {
532
- const l = 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 o(i) {
539
+ function c(s) {
537
540
  n.value = 1;
538
541
  }
539
- function g(i) {
542
+ function y(s) {
540
543
  n.value = n.value > 2 ? n.value - 1 : 1;
541
544
  }
542
- function a() {
543
- return p("li", {
544
- class: l.value
545
- }, [t.value && p("a", {
545
+ function o() {
546
+ return f("li", {
547
+ class: p.value
548
+ }, [t.value && f("a", {
546
549
  tabindex: "0",
547
550
  class: "page-link",
548
- onClick: (i) => o()
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: l.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: (i) => g()
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
- renderFirstPage: a,
574
- renderPreviousPage: s
576
+ renderFirstPage: o,
577
+ renderPreviousPage: a
575
578
  };
576
579
  }
577
- function le(n) {
578
- const e = N([]);
579
- function t(o, g, a, s) {
580
- const i = Math.ceil(a / 2);
581
- return o === a ? s : o === 1 ? o : a < s ? s - i < g ? s - a + o : i < g ? g - i + o : o : o;
582
- }
583
- function l(o, g, a, s) {
584
- const i = [], f = Math.ceil(a / g), b = Math.ceil(s / 2), h = o <= b, m = f - b < o, P = !h && !m, c = s < f;
585
- let r = 1;
586
- for (; r <= f && r <= s; ) {
587
- const u = t(r, o, s, f), y = r === 2 && (P || m), T = r === s - 1 && (P || h), C = c && (y || T) ? "..." : "" + u;
588
- i.push({ label: C, value: u }), r++;
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 = i;
593
+ e.value = s;
591
594
  }
592
- return { pages: e, updatePages: l };
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), l = N(n.mode), o = N(""), g = N(!1), a = N(n.pageSize), s = N(n.currentPage), i = N(n.totalItems), {
600
- pages: f,
601
- updatePages: b
602
- } = le(), h = w(() => s.value === 1), m = w(() => n.pageList), P = w(() => Math.ceil(i.value / a.value)), c = w(() => s.value === P.value), r = w(() => n.showGoButton), u = w(() => s.value > 1), y = w(() => !(g.value && f.value.length <= 1)), T = w(() => !0), C = w(() => n.showPageList), S = w(() => n.showPageNumbers), A = w(() => !0), {
603
- renderFirstPage: j,
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,
604
+ updatePages: g
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,
604
607
  renderPreviousPage: O
605
- } = ce(s, h, u), {
606
- renderLastPage: d,
607
- renderNextPage: v
608
- } = oe(s, c, P), {
609
- renderPageInfo: M
610
- } = ae(o, i), {
611
- renderPageList: k
612
- } = se(s, a, m, i), {
613
- renderPageNumbers: D
614
- } = re(s, f), {
615
- renderGotoButton: x
616
- } = ne(s, P);
617
- b(s.value, a.value, i.value, 7), B(() => n.totalItems, (E) => {
618
- i.value = E;
619
- }), B([s, a, i], () => {
620
- b(s.value, a.value, i.value, 7);
621
- }), B(s, () => {
622
- e.emit("update:currentPage", s.value), e.emit("pageIndexChanged", s.value);
608
+ } = ie(a, d, u), {
609
+ renderLastPage: S,
610
+ renderNextPage: h
611
+ } = ae(a, l, C), {
612
+ renderPageInfo: A
613
+ } = re(c, s), {
614
+ renderPageList: T
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);
623
624
  }), B(a, () => {
624
- e.emit("update:pageSize", a.value), e.emit("pageSizeChanged", a.value);
625
+ e.emit("update:currentPage", a.value), e.emit("pageIndexChanged", {
626
+ pageIndex: a.value,
627
+ pageSize: o.value
628
+ });
629
+ }), B(o, () => {
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
- i.value = E, b(s.value, a.value, i.value, 7);
627
- }), pe(() => {
628
- const E = m.value.includes(a.value);
629
- a.value = E ? a.value : m.value[0];
635
+ s.value = E, g(a.value, o.value, s.value, 7);
636
+ }), fe(() => {
637
+ const E = m.value.includes(o.value);
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": l.value === "default",
636
- "pager-viewmode-simple": l.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": o.value === "center" ? "center" : "start"
648
+ "justify-content": c.value === "center" ? "center" : "start"
640
649
  }));
641
- function V() {
642
- return p(_, null, [T.value && M(), C.value && k(), A.value && j(), A.value && O(), S.value && D(), A.value && v(), A.value && d(), r.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), A.value && j(), A.value && O(), 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(" "), P.value])]), A.value && v(), A.value && d()]);
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
- }, [y.value && p("ul", {
670
+ }, [b.value && f("ul", {
662
671
  role: "navigation",
663
- class: $.value,
664
- style: F.value
665
- }, [l.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 A;
670
- function l() {
677
+ function Ue(n, e, t) {
678
+ var L;
679
+ function p() {
671
680
  t != null && t.resolveComponentContext && t.resolveComponentContext();
672
681
  }
673
- l();
674
- const o = t && t.getStyles && t.getStyles() || "", g = t && t.getDesignerClass && t.getDesignerClass() || "", a = 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 i() {
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
- function b() {
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 h(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 O = N(j == null ? void 0 : j.value.parent), d = h(O);
693
- return d || 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: O, designerItemElementRef: d } = j;
697
- return !O || !O.value ? null : O.value.canMove ? d : 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 P(j) {
700
- return !!t && t.canAccepts(j);
708
+ function C(v) {
709
+ return !!t && t.canAccepts(v);
701
710
  }
702
- function c() {
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 r() {
714
+ function i() {
706
715
  }
707
- function u(j, O) {
716
+ function u(v, O) {
708
717
  O && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(O);
709
718
  }
710
- function y(j) {
711
- const { componentType: O } = j;
712
- let d = q(O, j);
713
- t && t.onResolveNewComponentSchema && (d = t.onResolveNewComponentSchema(j, d));
714
- const v = O.toLowerCase().replace("-", "_");
715
- return d && !d.id && d.type === O && (d.id = `${v}_${Math.random().toString().slice(2, 6)}`), d;
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 T(j, O) {
718
- const d = String(j.getAttribute("data-controltype")), v = j.getAttribute("data-feature"), M = v ? JSON.parse(v) : {};
719
- M.parentComponentInstance = a.value;
720
- let k = q(d, M);
721
- t && t.onAcceptNewChildElement && (k = t.onAcceptNewChildElement(j, O, k));
722
- const D = d.toLowerCase().replace("-", "_");
723
- return k && !k.id && k.type === d && (k.id = `${D}_${Math.random().toString().slice(2, 6)}`), k;
726
+ function w(v, O) {
727
+ const S = String(v.getAttribute("data-controltype")), h = v.getAttribute("data-feature"), A = h ? JSON.parse(h) : {};
728
+ A.parentComponentInstance = o.value;
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 C(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
- return a.value = {
732
- canMove: s(),
733
- canSelectParent: i(),
734
- canDelete: f(),
735
- canNested: !b(),
740
+ return o.value = {
741
+ canMove: a(),
742
+ canSelectParent: s(),
743
+ canDelete: r(),
744
+ canNested: !g(),
736
745
  contents: e == null ? void 0 : e.schema.contents,
737
746
  elementRef: n,
738
- parent: (A = e == null ? void 0 : e.parent) == null ? void 0 : A.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: o,
741
- designerClass: g,
742
- canAccepts: P,
743
- getBelongedComponentInstance: h,
749
+ styles: c,
750
+ designerClass: y,
751
+ canAccepts: C,
752
+ getBelongedComponentInstance: d,
744
753
  getDraggableDesignItemElement: m,
745
- getDraggingDisplayText: c,
746
- getPropConfig: S,
747
- getDragScopeElement: r,
754
+ getDraggingDisplayText: l,
755
+ getPropConfig: N,
756
+ getDragScopeElement: i,
748
757
  onAcceptMovedChildElement: u,
749
- onAcceptNewChildElement: T,
750
- onChildElementMovedOut: C,
751
- addNewChildComponentSchema: y,
752
- updateDragAndDropRules: l,
753
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || N(!1),
754
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || N(!1)
755
- }, a;
758
+ onAcceptNewChildElement: w,
759
+ onChildElementMovedOut: j,
760
+ addNewChildComponentSchema: b,
761
+ updateDragAndDropRules: p,
762
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || k(!1),
763
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || k(!1)
764
+ }, o;
756
765
  }
757
- function We() {
766
+ function _e() {
758
767
  function n(e) {
759
- var o, g;
768
+ var c, y;
760
769
  if (!e)
761
770
  return !1;
762
- const t = ((o = e.targetContainer) == null ? void 0 : o.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 l = (g = t.schema.appearance) == null ? void 0 : g.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 a = t.schema.type, s = (a === "response-form" || a === "content-container") && l && l.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",
@@ -1193,6 +1202,80 @@ const Ge = "https://json-schema.org/draft/2020-12/schema", qe = "https://farris-
1193
1202
  "f-list-nav-left": {
1194
1203
  description: "",
1195
1204
  type: "object"
1205
+ },
1206
+ "f-struct-data-grid-in-nav": {
1207
+ description: "",
1208
+ type: "object",
1209
+ properties: {
1210
+ contents: {
1211
+ type: "object",
1212
+ properties: {
1213
+ "f-section-form": {
1214
+ description: "",
1215
+ type: "object",
1216
+ properties: {
1217
+ rules: {
1218
+ type: "object",
1219
+ properties: {
1220
+ canAccept: {
1221
+ type: "boolean",
1222
+ const: !1
1223
+ },
1224
+ fixed: {
1225
+ type: "boolean",
1226
+ const: !0
1227
+ },
1228
+ hidePadding: {
1229
+ type: "boolean",
1230
+ const: !0
1231
+ }
1232
+ }
1233
+ }
1234
+ }
1235
+ },
1236
+ "f-section-grid": {
1237
+ description: "",
1238
+ type: "object",
1239
+ properties: {
1240
+ rules: {
1241
+ type: "object",
1242
+ properties: {
1243
+ canAccept: {
1244
+ type: "boolean",
1245
+ const: !1
1246
+ },
1247
+ fixed: {
1248
+ type: "boolean",
1249
+ const: !0
1250
+ },
1251
+ hidePadding: {
1252
+ type: "boolean",
1253
+ const: !0
1254
+ }
1255
+ }
1256
+ }
1257
+ }
1258
+ }
1259
+ }
1260
+ },
1261
+ rules: {
1262
+ type: "object",
1263
+ properties: {
1264
+ canAccept: {
1265
+ type: "boolean",
1266
+ const: !1
1267
+ },
1268
+ fixed: {
1269
+ type: "boolean",
1270
+ const: !0
1271
+ },
1272
+ hidePadding: {
1273
+ type: "boolean",
1274
+ const: !0
1275
+ }
1276
+ }
1277
+ }
1278
+ }
1196
1279
  }
1197
1280
  }
1198
1281
  }
@@ -1338,306 +1421,373 @@ const Ge = "https://json-schema.org/draft/2020-12/schema", qe = "https://farris-
1338
1421
  description: "",
1339
1422
  type: "object"
1340
1423
  }
1341
- }, Ue = [], Xe = {
1342
- $schema: Ge,
1343
- $id: qe,
1344
- title: _e,
1345
- description: He,
1346
- type: Je,
1347
- properties: Qe,
1348
- required: Ue
1349
- }, X = /* @__PURE__ */ new Map();
1350
- function Ye() {
1351
- function n(c, r, u, y) {
1352
- var T;
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;
1353
1435
  if (typeof u == "number")
1354
- return ((T = y[c]) == null ? void 0 : T.length) === u;
1436
+ return ((w = b[l]) == null ? void 0 : w.length) === u;
1355
1437
  if (typeof u == "object") {
1356
- const C = Object.keys(u)[0], S = u[C];
1357
- if (C === "not")
1358
- return Number(y[c].length) !== Number(S);
1359
- if (C === "moreThan")
1360
- return Number(y[c].length) >= Number(S);
1361
- if (C === "lessThan")
1362
- return Number(y[c].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);
1363
1445
  }
1364
1446
  return !1;
1365
1447
  }
1366
- function e(c, r, u, y) {
1367
- return typeof u == "boolean" ? y.childrenClassList.includes(r) === !!u : !1;
1448
+ function e(l, i, u, b) {
1449
+ return typeof u == "boolean" ? b.childrenClassList.includes(i) === !!u : !1;
1368
1450
  }
1369
- function t(c, r, u, y) {
1370
- return typeof u == "boolean" ? y.parentClassList.includes(r) === !!u : !1;
1451
+ function t(l, i, u, b) {
1452
+ return typeof u == "boolean" ? b.parentClassList.includes(i) === !!u : !1;
1371
1453
  }
1372
- function l(c, r, u, y) {
1373
- return typeof u == "boolean" ? y.parentClassList.includes(r) === !!u : !1;
1454
+ function p(l, i, u, b) {
1455
+ return typeof u == "boolean" ? b.parentClassList.includes(i) === !!u : !1;
1374
1456
  }
1375
- const o = /* @__PURE__ */ new Map([
1457
+ const c = /* @__PURE__ */ new Map([
1376
1458
  ["length", n],
1377
1459
  ["hasChildren", e],
1378
- ["hasSibling", l],
1460
+ ["hasSibling", p],
1379
1461
  ["hasParent", t]
1380
1462
  ]);
1381
- function g(c, r) {
1382
- const u = c;
1383
- return typeof r == "number" ? [{ target: u, operator: "length", param: null, value: Number(r) }] : typeof r == "object" ? Object.keys(r).map((y) => {
1384
- if (y === "length")
1385
- return { target: u, operator: "length", param: null, value: r[y] };
1386
- const T = y, C = r[y];
1387
- return { target: u, operator: c === "children" ? "hasChildren" : c === "parent" ? "hasParent" : "hasSibling", param: T, value: C };
1463
+ function y(l, i) {
1464
+ const u = l;
1465
+ return typeof i == "number" ? [{ target: u, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((b) => {
1466
+ if (b === "length")
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 };
1388
1470
  }) : [];
1389
1471
  }
1390
- function a(c, r) {
1391
- if (o.has(c.operator)) {
1392
- const u = o.get(c.operator);
1393
- return u && u(c.target, c.param, c.value, r) || !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;
1394
1476
  }
1395
1477
  return !1;
1396
1478
  }
1397
- function s(c, r) {
1398
- return Object.keys(c).reduce((C, S) => {
1399
- const A = g(S, c[S]);
1400
- return C.push(...A), C;
1401
- }, []).reduce((C, S) => C && a(S, r), !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);
1402
1484
  }
1403
- function i(c, r) {
1404
- const u = Object.keys(c), y = u.includes("allOf"), T = u.includes("anyOf"), C = y || T, j = (C ? c[C ? y ? "allOf" : "anyOf" : "allOf"] : [c]).map((d) => s(d, r));
1405
- return y ? !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);
1406
1488
  }
1407
- function f(c, r) {
1408
- const u = c.const;
1409
- return u ? typeof u == "boolean" ? u : typeof u == "object" ? i(u, r) : !1 : !1;
1489
+ function r(l, i) {
1490
+ const u = l.const;
1491
+ return u ? typeof u == "boolean" ? u : typeof u == "object" ? s(u, i) : !1 : !1;
1410
1492
  }
1411
- function b(c) {
1412
- return (r) => {
1493
+ function g(l) {
1494
+ return (i) => {
1413
1495
  const u = { canAccept: !0, fixed: !1, hidePadding: !1 };
1414
- return c && c.properties && Object.keys(c.properties).reduce((y, T) => {
1415
- const C = c.properties[T];
1416
- return y[T] = f(C, r), y;
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;
1417
1499
  }, u), u;
1418
1500
  };
1419
1501
  }
1420
- function h(c, r, u) {
1421
- if (r.type === "object" && r.properties) {
1422
- const { rules: y, contents: T } = r.properties;
1423
- u.set(c, b(y)), T && Object.keys(T.properties).forEach(
1424
- (C) => h(C, T.properties[C], 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)
1425
1507
  );
1426
1508
  }
1427
1509
  }
1428
1510
  function m() {
1429
- const { properties: c } = Xe;
1430
- Object.keys(c).forEach((r) => {
1431
- h(r, c[r], X);
1511
+ const { properties: l } = Re;
1512
+ Object.keys(l).forEach((i) => {
1513
+ d(i, l[i], Q);
1432
1514
  });
1433
1515
  }
1434
- function P(c, r) {
1516
+ function C(l, i) {
1435
1517
  const u = { canAccept: !0, fixed: !1, hidePadding: !0 };
1436
- return X.has(c) ? X.get(c)(r) : u;
1518
+ return Q.has(l) ? Q.get(l)(i) : u;
1519
+ }
1520
+ return m(), { getRuleValue: C };
1521
+ }
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;
1437
1595
  }
1438
- return m(), { getRuleValue: P };
1439
1596
  }
1440
- function Ze(n, e) {
1441
- var O;
1442
- const t = n.schema, l = (O = n.parent) == null ? void 0 : O.schema, o = Ye(), g = N(!1), a = N(!1);
1443
- let s = !0, i = !1, f, b = !1;
1444
- function h(d) {
1445
- return f && f.componentClassList && f.componentClassList.includes("f-form-layout") && f.componentClassList.includes("farris-form") ? d.sourceType === "control" && d.controlCategory === "input" || d.sourceType === "move" && d.controlType === "form-group" : !0;
1446
- }
1447
- function m(d) {
1448
- return !(!We().basalDragulaRuleForContainer(d) || !s || !h(d));
1449
- }
1450
- function P() {
1451
- g.value = !1, a.value = !1;
1452
- const d = t, v = d.appearance && d.appearance.class || "", M = v.split(" "), k = d.contents || [], D = k.length ? k[0] : null, x = D && D.appearance ? D.appearance.class : "", L = x ? x.split(" ") : [], $ = k.length ? k.reduce((W, G) => {
1453
- const I = G && G.appearance ? G.appearance.class : "", ie = I ? I.split(" ") : [];
1454
- return W.push(...ie), W;
1455
- }, []) : [], F = l, V = F && F.appearance && F.appearance.class || "", z = V ? V.split(" ") : [];
1456
- f = {
1457
- componentClass: v,
1458
- componentClassList: M,
1459
- childContents: k,
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;
1603
+ }
1604
+ function m(h) {
1605
+ return !(!_e().basalDragulaRuleForContainer(h) || !a || !d(h));
1606
+ }
1607
+ function C() {
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,
1460
1617
  firstChildContent: D,
1461
- firstChildClass: x,
1462
- firstChildClassList: L,
1463
- parent: F,
1618
+ firstChildClass: F,
1619
+ firstChildClassList: x,
1620
+ parent: $,
1464
1621
  parentClass: V,
1465
- parentClassList: z,
1466
- children: k,
1467
- childrenClassList: $
1622
+ parentClassList: E,
1623
+ children: M,
1624
+ childrenClassList: I
1468
1625
  };
1469
- const { canAccept: E, fixed: Q, hidePadding: U } = o.getRuleValue(M[0], f);
1470
- return s = E, i = U, b = Q, !0;
1626
+ const { canAccept: X, fixed: H, hidePadding: z } = c.getRuleValue(T[0], r);
1627
+ return a = X, s = z, g = H, !0;
1471
1628
  }
1472
- function c(d) {
1473
- ue();
1629
+ function l(h) {
1630
+ de();
1474
1631
  }
1475
- function r() {
1632
+ function i() {
1476
1633
  return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1477
1634
  }
1478
- function u(d, v) {
1479
- const M = t;
1480
- if ((M.appearance && M.appearance.class || "").split(" ").includes("f-form-layout")) {
1481
- const { label: x } = d, L = q("form-group");
1482
- return L.editor = v, L.label = x, y(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;
1483
1640
  }
1484
- return v;
1485
- }
1486
- function y(d) {
1487
- const v = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1488
- if (v && v.schema && v.schema.componentType) {
1489
- const M = v.schema.componentType, k = T(M);
1490
- d.appearance || (d.appearance = {}), d.appearance.class = k;
1641
+ return A;
1642
+ }
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;
1491
1649
  }
1492
1650
  }
1493
- function T(d) {
1494
- let v = "";
1495
- switch (d) {
1496
- case "form-col-1": {
1497
- v = "col-12 col-md-12 col-xl-12 col-el-12";
1651
+ function w(h) {
1652
+ let A = "";
1653
+ switch (h) {
1654
+ case 1: {
1655
+ A = "col-12 col-md-12 col-xl-12 col-el-12";
1498
1656
  break;
1499
1657
  }
1500
- case "form-col-12": {
1501
- v = "col-12 col-md-12 col-xl-12 col-el-12";
1658
+ case 2: {
1659
+ A = "col-12 col-md-6 col-xl-6 col-el-6";
1502
1660
  break;
1503
1661
  }
1504
- case "form-col-2": {
1505
- v = "col-12 col-md-6 col-xl-6 col-el-6";
1662
+ case 3: {
1663
+ A = "col-12 col-md-6 col-xl-4 col-el-4";
1506
1664
  break;
1507
1665
  }
1508
- case "form-col-3": {
1509
- v = "col-12 col-md-6 col-xl-4 col-el-4";
1510
- break;
1511
- }
1512
- case "form-col-4": {
1513
- v = "col-12 col-md-6 col-xl-3 col-el-2";
1514
- break;
1515
- }
1516
- case "form-col-6": {
1517
- v = "col-12 col-md-6 col-xl-6 col-el-6";
1518
- break;
1519
- }
1520
- case "frame": {
1521
- v = "col-12";
1666
+ case 4: {
1667
+ A = "col-12 col-md-6 col-xl-3 col-el-2";
1522
1668
  break;
1523
1669
  }
1524
1670
  }
1525
- return v;
1671
+ return A;
1526
1672
  }
1527
- function C(d, v, M) {
1528
- const k = t;
1529
- if ((k.appearance && k.appearance.class || "").split(" ").includes("f-form-layout")) {
1530
- const L = String(d.innerText), $ = q("form-group");
1531
- return $.editor = M, $.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;
1532
1678
  }
1533
- return M;
1679
+ return T;
1680
+ }
1681
+ function N() {
1682
+ return !g;
1534
1683
  }
1535
- function S() {
1536
- return !b;
1684
+ function L() {
1685
+ return !g;
1537
1686
  }
1538
- function A() {
1539
- return !b;
1687
+ function v() {
1688
+ return s;
1540
1689
  }
1541
- function j() {
1542
- return i;
1690
+ function O(h) {
1691
+ return new tt(h, e).getPropertyConfig(t, n.componentInstance.value);
1543
1692
  }
1544
1693
  return {
1545
1694
  canAccepts: m,
1546
- checkCanDeleteComponent: A,
1547
- checkCanMoveComponent: S,
1548
- getStyles: r,
1549
- hideNestedPaddingInDesginerView: j,
1550
- onAcceptNewChildElement: C,
1551
- onAcceptMovedChildElement: c,
1552
- resolveComponentContext: P,
1695
+ checkCanDeleteComponent: L,
1696
+ checkCanMoveComponent: N,
1697
+ getStyles: i,
1698
+ getPropsConfig: O,
1699
+ hideNestedPaddingInDesginerView: v,
1700
+ onAcceptNewChildElement: j,
1701
+ onAcceptMovedChildElement: l,
1702
+ resolveComponentContext: C,
1553
1703
  onResolveNewComponentSchema: u,
1554
- triggerBelongedComponentToMoveWhenMoved: g,
1555
- triggerBelongedComponentToDeleteWhenDeleted: a
1704
+ triggerBelongedComponentToMoveWhenMoved: y,
1705
+ triggerBelongedComponentToDeleteWhenDeleted: o
1556
1706
  };
1557
1707
  }
1558
- const Ie = /* @__PURE__ */ R({
1708
+ const ot = /* @__PURE__ */ ee({
1559
1709
  name: "FPagination",
1560
1710
  props: Z,
1561
1711
  emits: ["pageIndexChanged", "pageSizeChanged"],
1562
1712
  setup(n, e) {
1563
- var W;
1564
- const t = N(!1), l = N(n.mode), o = N(""), g = N(!1), a = N(n.pageSize), s = N(n.currentPage), i = N(n.totalItems), f = N(), b = fe("design-item-context"), h = Ze(b.schema, (W = b.parent) == null ? void 0 : W.schema), m = ze(f, b, h);
1565
- de(() => {
1566
- 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;
1567
1717
  }), e.expose(m.value);
1568
1718
  const {
1569
- pages: P,
1570
- updatePages: c
1571
- } = le(), r = w(() => s.value === 1), u = w(() => [20, 50, 100]), y = w(() => Math.ceil(i.value / a.value)), T = w(() => s.value === y.value), C = w(() => !0), S = w(() => s.value > 1), A = w(() => !(g.value && P.value.length <= 1)), j = w(() => !0), O = w(() => !0), d = w(() => !0), v = w(() => !0), {
1572
- renderFirstPage: M,
1573
- renderPreviousPage: k
1574
- } = ce(s, r, S), {
1575
- renderLastPage: D,
1576
- renderNextPage: x
1577
- } = oe(s, T, y), {
1578
- renderPageInfo: L
1579
- } = ae(o, i), {
1580
- renderPageList: $
1581
- } = se(s, a, u, i), {
1582
- renderPageNumbers: F
1583
- } = re(s, P), {
1584
- renderGotoButton: V
1585
- } = ne(s, y);
1586
- c(s.value, a.value, i.value, 7), B([s, a], () => {
1587
- c(s.value, a.value, i.value, 7);
1588
- }), B(s, () => {
1589
- e.emit("pageIndexChanged", s.value);
1719
+ pages: C,
1720
+ updatePages: l
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), {
1722
+ renderFirstPage: A,
1723
+ renderPreviousPage: T
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);
1590
1738
  }), B(a, () => {
1591
- e.emit("pageSizeChanged", a.value);
1739
+ e.emit("pageIndexChanged", a.value);
1740
+ }), B(o, () => {
1741
+ e.emit("pageSizeChanged", o.value);
1592
1742
  });
1593
- const z = w(() => ({
1743
+ const V = P(() => ({
1594
1744
  "ngx-pagination": !0,
1595
1745
  pagination: !0,
1596
1746
  responsive: t.value,
1597
- "pager-viewmode-default": l.value === "default",
1598
- "pager-viewmode-simple": l.value === "simple"
1599
- })), E = w(() => ({
1747
+ "pager-viewmode-default": p.value === "default",
1748
+ "pager-viewmode-simple": p.value === "simple"
1749
+ })), E = P(() => ({
1600
1750
  position: "relative",
1601
- "justify-content": o.value === "center" ? "center" : "start"
1751
+ "justify-content": c.value === "center" ? "center" : "start"
1602
1752
  }));
1603
- function Q() {
1604
- return p(_, null, [j.value && L(), O.value && $(), v.value && M(), v.value && k(), d.value && F(), v.value && x(), v.value && D(), C.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 && $()]);
1605
1755
  }
1606
- function U() {
1607
- return p(_, null, [p("li", {
1756
+ function H() {
1757
+ return f(W, null, [f("li", {
1608
1758
  class: "page-item d-flex flex-fill"
1609
- }, null), v.value && M(), v.value && k(), V(), p("li", {
1759
+ }, null), h.value && A(), h.value && T(), $(), f("li", {
1610
1760
  class: "page-item page-separator",
1611
1761
  style: "margin-left: 10px"
1612
- }, [p("span", {
1762
+ }, [f("span", {
1613
1763
  style: "font-size: 15px; font-weight: 200;"
1614
- }, [H(" /")])]), p("li", {
1764
+ }, [U(" /")])]), f("li", {
1615
1765
  class: "page-item page-total",
1616
1766
  style: "margin-left: 5px"
1617
- }, [p("span", {
1767
+ }, [f("span", {
1618
1768
  style: "font-size: 16px; font-weight: 600;"
1619
- }, [H(" "), y.value])]), v.value && x(), v.value && D()]);
1769
+ }, [U(" "), b.value])]), h.value && D(), h.value && M()]);
1620
1770
  }
1621
- return () => p("div", {
1622
- ref: f,
1771
+ return () => f("div", {
1772
+ ref: r,
1623
1773
  class: "pagination-container"
1624
- }, [A.value && p("ul", {
1774
+ }, [L.value && f("ul", {
1625
1775
  role: "navigation",
1626
- class: z.value,
1776
+ class: V.value,
1627
1777
  style: E.value
1628
- }, [l.value === "default" ? Q() : U()])]);
1778
+ }, [p.value === "default" ? X() : H()])]);
1629
1779
  }
1630
1780
  });
1631
- J.register = (n, e, t) => {
1632
- n.pagination = J, e.pagination = te;
1781
+ _.register = (n, e, t) => {
1782
+ n.pagination = _, e.pagination = oe;
1633
1783
  };
1634
- J.registerDesigner = (n, e, t) => {
1635
- n.pagination = Ie, e.pagination = te;
1784
+ _.registerDesigner = (n, e, t) => {
1785
+ n.pagination = ot, e.pagination = oe;
1636
1786
  };
1637
- const tt = be(J);
1787
+ const pt = Ce(_);
1638
1788
  export {
1639
- J as FPagination,
1640
- tt as default,
1789
+ _ as FPagination,
1790
+ pt as default,
1641
1791
  Z as paginationProps,
1642
- te as propsResolver
1792
+ oe as propsResolver
1643
1793
  };