@farris/ui-vue 1.2.7 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/components/accordion/index.esm.js +136 -136
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +418 -456
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/border-editor/index.esm.js +4 -4
  6. package/components/border-editor/index.umd.cjs +1 -1
  7. package/components/button/index.esm.js +1 -1
  8. package/components/button/index.umd.cjs +1 -1
  9. package/components/button-edit/index.esm.js +363 -436
  10. package/components/button-edit/index.umd.cjs +1 -1
  11. package/components/button-group/index.esm.js +5 -5
  12. package/components/button-group/index.umd.cjs +1 -1
  13. package/components/calendar/index.esm.js +417 -417
  14. package/components/calendar/index.umd.cjs +1 -1
  15. package/components/capsule/index.esm.js +176 -176
  16. package/components/capsule/index.umd.cjs +1 -1
  17. package/components/checkbox/index.esm.js +557 -594
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/color-picker/index.esm.js +119 -119
  20. package/components/color-picker/index.umd.cjs +2 -2
  21. package/components/combo-list/index.esm.js +502 -535
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-tree/index.esm.js +69 -69
  24. package/components/combo-tree/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +387 -275
  26. package/components/component/index.umd.cjs +1 -1
  27. package/components/condition/index.esm.js +1219 -983
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/content-container/index.esm.js +292 -219
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/data-grid/index.css +1 -1
  32. package/components/data-grid/index.esm.js +5718 -5546
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3291 -2930
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2650 -2682
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/dependent-base/style.js +1 -0
  39. package/components/dependent-fluid/style.js +1 -0
  40. package/components/dependent-icon/style.js +1 -0
  41. package/components/dependent-input/style.js +1 -0
  42. package/components/dependent-table/style.js +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +945 -932
  45. package/components/designer-canvas/index.umd.cjs +1 -1
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +175 -133
  48. package/components/designer-outline/index.umd.cjs +1 -1
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -1
  51. package/components/discussion-editor/index.esm.js +1 -1
  52. package/components/discussion-editor/index.umd.cjs +1 -1
  53. package/components/dropdown/index.esm.js +246 -246
  54. package/components/dropdown/index.umd.cjs +2 -2
  55. package/components/dynamic-form/index.esm.js +1319 -1172
  56. package/components/dynamic-form/index.umd.cjs +1 -1
  57. package/components/dynamic-resolver/index.esm.js +119 -82
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-view/index.esm.js +258 -249
  60. package/components/dynamic-view/index.umd.cjs +1 -1
  61. package/components/enum-editor/index.esm.js +3 -3
  62. package/components/enum-editor/index.umd.cjs +1 -1
  63. package/components/events-editor/index.esm.js +569 -514
  64. package/components/events-editor/index.umd.cjs +1 -1
  65. package/components/expression-editor/index.esm.js +104 -104
  66. package/components/expression-editor/index.umd.cjs +1 -1
  67. package/components/external-container/index.css +1 -1
  68. package/components/external-container/index.esm.js +3122 -2686
  69. package/components/external-container/index.umd.cjs +1 -1
  70. package/components/field-selector/index.css +1 -1
  71. package/components/field-selector/index.esm.js +6780 -6608
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/filter-bar/index.css +1 -1
  74. package/components/filter-bar/index.esm.js +1466 -1523
  75. package/components/filter-bar/index.umd.cjs +1 -1
  76. package/components/flow-canvas/index.css +1 -1
  77. package/components/flow-canvas/index.esm.js +1048 -1035
  78. package/components/flow-canvas/index.umd.cjs +1 -1
  79. package/components/image-cropper/index.esm.js +422 -422
  80. package/components/image-cropper/index.umd.cjs +1 -1
  81. package/components/input-group/index.esm.js +674 -716
  82. package/components/input-group/index.umd.cjs +1 -1
  83. package/components/layout/index.esm.js +291 -291
  84. package/components/layout/index.umd.cjs +1 -1
  85. package/components/list-nav/index.esm.js +303 -230
  86. package/components/list-nav/index.umd.cjs +1 -1
  87. package/components/list-view/index.css +1 -1
  88. package/components/list-view/index.esm.js +2486 -2130
  89. package/components/list-view/index.umd.cjs +1 -1
  90. package/components/lookup/index.css +1 -1
  91. package/components/lookup/index.esm.js +7474 -7272
  92. package/components/lookup/index.umd.cjs +1 -1
  93. package/components/mapping-editor/index.css +1 -1
  94. package/components/mapping-editor/index.esm.js +6139 -5949
  95. package/components/mapping-editor/index.umd.cjs +1 -1
  96. package/components/message-box/index.esm.js +1 -1
  97. package/components/message-box/index.umd.cjs +1 -1
  98. package/components/modal/index.esm.js +1 -1
  99. package/components/modal/index.umd.cjs +1 -1
  100. package/components/nav/index.esm.js +432 -371
  101. package/components/nav/index.umd.cjs +3 -3
  102. package/components/number-range/index.esm.js +1124 -0
  103. package/components/number-range/index.umd.cjs +1 -0
  104. package/components/number-range/package.json +8 -0
  105. package/components/number-range/style.js +6 -0
  106. package/components/number-spinner/index.esm.js +1155 -0
  107. package/components/number-spinner/index.umd.cjs +1 -0
  108. package/components/number-spinner/package.json +8 -0
  109. package/components/number-spinner/style.js +4 -0
  110. package/components/order/index.css +1 -1
  111. package/components/order/index.esm.js +1215 -1178
  112. package/components/order/index.umd.cjs +1 -1
  113. package/components/page-footer/index.esm.js +147 -147
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +1240 -1346
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +489 -428
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/progress/index.esm.js +220 -220
  120. package/components/progress/index.umd.cjs +3 -3
  121. package/components/property-editor/index.esm.js +1512 -1540
  122. package/components/property-editor/index.umd.cjs +3 -3
  123. package/components/property-panel/index.css +1 -1
  124. package/components/property-panel/index.esm.js +749 -815
  125. package/components/property-panel/index.umd.cjs +1 -1
  126. package/components/query-solution/index.css +1 -0
  127. package/components/query-solution/index.esm.js +7074 -0
  128. package/components/query-solution/index.umd.cjs +1 -0
  129. package/components/query-solution/package.json +8 -0
  130. package/components/query-solution/style.js +2 -0
  131. package/components/radio-button/index.esm.js +86 -86
  132. package/components/radio-button/index.umd.cjs +1 -1
  133. package/components/radio-group/index.esm.js +442 -479
  134. package/components/radio-group/index.umd.cjs +1 -1
  135. package/components/rate/index.esm.js +213 -208
  136. package/components/rate/index.umd.cjs +1 -1
  137. package/components/response-layout/index.esm.js +116 -116
  138. package/components/response-layout/index.umd.cjs +1 -1
  139. package/components/response-layout-editor/index.esm.js +943 -918
  140. package/components/response-layout-editor/index.umd.cjs +1 -1
  141. package/components/response-toolbar/index.esm.js +1174 -1295
  142. package/components/response-toolbar/index.umd.cjs +1 -1
  143. package/components/schema-selector/index.css +1 -1
  144. package/components/schema-selector/index.esm.js +5383 -5171
  145. package/components/schema-selector/index.umd.cjs +2 -2
  146. package/components/search-box/index.esm.js +201 -201
  147. package/components/search-box/index.umd.cjs +1 -1
  148. package/components/section/index.esm.js +684 -542
  149. package/components/section/index.umd.cjs +1 -1
  150. package/components/smoke-detector/index.esm.js +121 -121
  151. package/components/smoke-detector/index.umd.cjs +1 -1
  152. package/components/spacing-editor/index.esm.js +2 -2
  153. package/components/spacing-editor/index.umd.cjs +1 -1
  154. package/components/splitter/index.esm.js +1158 -382
  155. package/components/splitter/index.umd.cjs +1 -1
  156. package/components/step/index.esm.js +232 -232
  157. package/components/step/index.umd.cjs +1 -1
  158. package/components/switch/index.esm.js +451 -487
  159. package/components/switch/index.umd.cjs +1 -1
  160. package/components/tabs/index.esm.js +2078 -2168
  161. package/components/tabs/index.umd.cjs +1 -1
  162. package/components/tags/index.esm.js +318 -320
  163. package/components/tags/index.umd.cjs +1 -1
  164. package/components/text/index.esm.js +192 -192
  165. package/components/text/index.umd.cjs +1 -1
  166. package/components/textarea/index.esm.js +471 -497
  167. package/components/textarea/index.umd.cjs +1 -1
  168. package/components/time-picker/index.esm.js +1421 -1441
  169. package/components/time-picker/index.umd.cjs +1 -1
  170. package/components/transfer/index.css +1 -1
  171. package/components/transfer/index.esm.js +430 -421
  172. package/components/transfer/index.umd.cjs +1 -1
  173. package/components/tree-grid/index.css +1 -1
  174. package/components/tree-grid/index.esm.js +6806 -6624
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-view/index.esm.js +2793 -2433
  177. package/components/tree-view/index.umd.cjs +1 -1
  178. package/components/uploader/index.esm.js +165 -165
  179. package/components/uploader/index.umd.cjs +2 -2
  180. package/components/verify-detail/index.esm.js +255 -255
  181. package/components/verify-detail/index.umd.cjs +1 -1
  182. package/components/video/index.esm.js +413 -334
  183. package/components/video/index.umd.cjs +1 -1
  184. package/components/weather/index.esm.js +902 -902
  185. package/components/weather/index.umd.cjs +4 -4
  186. package/farris.all.esm.js +54155 -52847
  187. package/farris.all.umd.cjs +9 -9
  188. package/index.css +1 -1
  189. package/package.json +1 -1
  190. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  191. package/types/checkbox/index.d.ts +1 -0
  192. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  193. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  194. package/types/common/entity/entity-schema.d.ts +258 -0
  195. package/types/component/src/component-ref.props.d.ts +4 -0
  196. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  197. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  198. package/types/data-grid/index.d.ts +5 -2
  199. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  200. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  201. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  202. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  203. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  204. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  205. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  206. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  207. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  208. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  209. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  210. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  211. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  212. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  213. package/types/data-view/composition/types.d.ts +19 -7
  214. package/types/data-view/composition/use-edit.d.ts +2 -1
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  216. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  217. package/types/designer-canvas/src/types.d.ts +3 -3
  218. package/types/dynamic-form/index.d.ts +3 -1
  219. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  220. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  221. package/types/dynamic-form/src/types.d.ts +1 -1
  222. package/types/dynamic-resolver/index.d.ts +1 -0
  223. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  224. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  225. package/types/dynamic-resolver/src/types.d.ts +3 -2
  226. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  227. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  228. package/types/modal/src/modal.props.d.ts +1 -4
  229. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  230. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  231. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  232. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  233. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  234. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  235. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  236. package/types/tabs/src/composition/types.d.ts +2 -2
  237. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  238. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  239. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  240. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  241. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  242. package/types/tags/index.d.ts +36 -5
  243. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  244. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  245. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  246. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
@@ -1,103 +1,103 @@
1
- import { ref as N, watch as B, createVNode as i, computed as w, defineComponent as K, watchEffect as pe, Fragment as _, createTextVNode as H, nextTick as ue, inject as fe, onMounted as de } from "vue";
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
2
  import { cloneDeep as ge } from "lodash-es";
3
- import { withInstall as be } from "@farris/ui-vue/components/common";
4
- const R = {}, ee = {};
3
+ import { withInstall as be } from "../common/index.esm.js";
4
+ const K = {}, ee = {};
5
5
  function Y(n) {
6
- const { properties: e, title: t } = n, u = Object.keys(e).reduce((a, g) => (a[g] = e[g].type === "object" && e[g].properties ? Y(e[g]) : ge(e[g].default), a), {});
7
- return u.id = `${t}-${Date.now()}`, u;
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;
8
8
  }
9
- function q(n, e = {}) {
10
- const t = R[n];
11
- if (t) {
12
- let u = Y(t);
13
- const a = ee[n];
14
- return u = a ? a({ getSchemaByType: q }, u, e) : u, u;
9
+ 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;
15
15
  }
16
16
  return null;
17
17
  }
18
18
  function ye(n, e) {
19
19
  const t = Y(e);
20
- return Object.keys(n).reduce((u, a) => (u[a] = n[a], u), t), t;
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;
21
21
  }
22
- function me(n, e) {
23
- return Object.keys(n).filter((u) => n[u] != null).reduce((u, a) => {
22
+ function he(n, e) {
23
+ return Object.keys(n).filter((i) => n[i] != null).reduce((i, a) => {
24
24
  if (e.has(a)) {
25
- const g = e.get(a);
26
- if (typeof g == "string")
27
- u[g] = n[a];
25
+ const d = e.get(a);
26
+ if (typeof d == "string")
27
+ i[d] = n[a];
28
28
  else {
29
- const o = g(a, n[a], n);
30
- Object.assign(u, o);
29
+ const o = d(a, n[a], n);
30
+ Object.assign(i, o);
31
31
  }
32
32
  } else
33
- u[a] = n[a];
34
- return u;
33
+ i[a] = n[a];
34
+ return i;
35
35
  }, {});
36
36
  }
37
- function he(n, e, t = /* @__PURE__ */ new Map()) {
38
- const u = ye(n, e);
39
- return me(u, t);
37
+ function me(n, e, t = /* @__PURE__ */ new Map()) {
38
+ const i = ye(n, e);
39
+ return he(i, t);
40
40
  }
41
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);
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];
47
+ if (C === "not")
48
+ return Number(m[f].length) !== Number(l);
49
+ if (C === "moreThan")
50
+ return Number(m[f].length) >= Number(l);
51
+ if (C === "lessThan")
52
+ return Number(m[f].length) <= Number(l);
53
53
  }
54
54
  return !1;
55
55
  }
56
- function t(f, b, h, m) {
57
- return m[f] && m[f].propertyValue && String(m[f].propertyValue.value) === String(h);
56
+ function t(f, g, v, m) {
57
+ return m[f] && m[f].propertyValue && String(m[f].propertyValue.value) === String(v);
58
58
  }
59
- const u = /* @__PURE__ */ new Map([
59
+ const i = /* @__PURE__ */ new Map([
60
60
  ["length", e],
61
61
  ["getProperty", t]
62
62
  ]);
63
- Object.keys(n).reduce((f, b) => (f.set(b, n[b]), f), u);
64
- function a(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) => {
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) => {
67
67
  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 };
68
+ return { target: v, operator: "length", param: null, value: g[m] };
69
+ const C = m, l = g[m];
70
+ return { target: v, operator: "getProperty", param: C, value: l };
71
71
  }) : [];
72
72
  }
73
- function g(f) {
74
- return Object.keys(f).reduce((h, m) => {
75
- const P = a(m, f[m]);
76
- return h.push(...P), h;
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;
77
77
  }, []);
78
78
  }
79
- function o(f, b) {
80
- if (u.has(f.operator)) {
81
- const h = u.get(f.operator);
82
- return h && h(f.target, f.param, f.value, b) || !1;
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;
83
83
  }
84
84
  return !1;
85
85
  }
86
- function s(f, b) {
87
- return g(f).reduce((P, c) => P && o(c, b), !0);
86
+ function s(f, g) {
87
+ return d(f).reduce((C, l) => C && o(l, g), !0);
88
88
  }
89
- function l(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);
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));
91
+ return m ? !b.includes(!1) : b.includes(!0);
92
92
  }
93
- return { parseValueSchema: l };
93
+ return { parseValueSchema: r };
94
94
  }
95
- const je = {}, Ce = {};
95
+ const je = {}, Pe = {};
96
96
  ve();
97
- function Pe(n, e, t = /* @__PURE__ */ new Map(), u = (o, s, l) => s, a = {}, g = (o) => o) {
98
- return R[e.title] = e, ee[e.title] = u, je[e.title] = a, Ce[e.title] = g, (o = {}) => {
99
- const s = he(o, e, t), l = Object.keys(n).reduce((f, b) => (f[b] = n[b].default, f), {});
100
- return Object.assign(l, s);
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);
101
101
  };
102
102
  }
103
103
  function we(n, e) {
@@ -105,7 +105,7 @@ function we(n, e) {
105
105
  }
106
106
  const Ne = /* @__PURE__ */ new Map([
107
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 = {
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
109
  id: {
110
110
  description: "The unique identifier for a pagination",
111
111
  type: "string"
@@ -201,11 +201,11 @@ const Ne = /* @__PURE__ */ new Map([
201
201
  "id",
202
202
  "type"
203
203
  ], De = {
204
- $schema: Te,
205
- $id: ke,
206
- title: Oe,
207
- description: Se,
208
- type: Ae,
204
+ $schema: Oe,
205
+ $id: Te,
206
+ title: ke,
207
+ description: Ae,
208
+ type: Se,
209
209
  properties: Me,
210
210
  required: Le
211
211
  }, xe = "pagination", Ee = "A Farris Component", Be = "object", $e = {
@@ -332,79 +332,79 @@ const Z = {
332
332
  * 自定义每页数量
333
333
  */
334
334
  pageList: { type: Array, default: [20, 50, 100] }
335
- }, te = Pe(Z, De, Ne, Ve, Fe);
335
+ }, te = Ce(Z, De, Ne, Ve, Fe);
336
336
  function ne(n, e) {
337
- const t = N("跳转至"), u = N(""), a = N(n.value);
338
- B(a, (l, f) => {
339
- l >= 1 && l <= e.value ? n.value = l : a.value = f;
340
- }), B(n, (l) => {
341
- a.value !== l && (a.value = l);
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);
342
342
  });
343
- function g(l) {
344
- a.value = l.target.valueAsNumber;
343
+ function d(r) {
344
+ a.value = r.target.valueAsNumber;
345
345
  }
346
- function o(l) {
347
- l.key === "Enter" && (a.value = l.target.valueAsNumber);
346
+ function o(r) {
347
+ r.key === "Enter" && (a.value = r.target.valueAsNumber);
348
348
  }
349
349
  function s() {
350
- return i("li", {
350
+ return p("li", {
351
351
  class: "page-goto-input d-flex flex-row",
352
352
  style: "padding-left: 10px; white-space: nowrap;"
353
- }, [i("span", {
353
+ }, [p("span", {
354
354
  class: "pg-message-text"
355
- }, [t.value]), i("input", {
355
+ }, [t.value]), p("input", {
356
356
  type: "number",
357
357
  class: "form-control farris-gotopagenumber",
358
358
  value: a.value,
359
359
  min: "1",
360
360
  max: e.value,
361
361
  style: "display: inline-block;margin-left:3px;",
362
- onBlur: (l) => g(l),
363
- onKeyup: (l) => o(l)
364
- }, null), u.value]);
362
+ onBlur: (r) => d(r),
363
+ onKeyup: (r) => o(r)
364
+ }, null), i.value]);
365
365
  }
366
366
  return {
367
367
  renderGotoButton: s
368
368
  };
369
369
  }
370
370
  function oe(n, e, t) {
371
- const u = w(() => ({
371
+ const i = w(() => ({
372
372
  "page-item": !0,
373
373
  disabled: e.value
374
374
  }));
375
- function a(l) {
375
+ function a(r) {
376
376
  n.value = n.value < t.value ? n.value + 1 : t.value;
377
377
  }
378
- function g(l) {
378
+ function d(r) {
379
379
  n.value = t.value;
380
380
  }
381
381
  function o() {
382
- return i("li", {
383
- class: u.value
384
- }, [!e.value && i("a", {
382
+ return p("li", {
383
+ class: i.value
384
+ }, [!e.value && p("a", {
385
385
  class: "page-link",
386
386
  tabindex: "0",
387
- onClick: (l) => a()
388
- }, [i("span", {
387
+ onClick: (r) => a()
388
+ }, [p("span", {
389
389
  class: "f-icon f-page-next"
390
- }, null)]), e.value && i("span", {
390
+ }, null)]), e.value && p("span", {
391
391
  class: "page-link"
392
- }, [i("span", {
392
+ }, [p("span", {
393
393
  class: "f-icon f-page-next"
394
394
  }, null)])]);
395
395
  }
396
396
  function s() {
397
- return i("li", {
398
- class: u.value
399
- }, [!e.value && i("a", {
397
+ return p("li", {
398
+ class: i.value
399
+ }, [!e.value && p("a", {
400
400
  class: "page-link",
401
401
  tabindex: "0",
402
- onClick: (l) => g()
403
- }, [i("span", {
402
+ onClick: (r) => d()
403
+ }, [p("span", {
404
404
  class: "f-icon f-page-last"
405
- }, null)]), e.value && i("span", {
405
+ }, null)]), e.value && p("span", {
406
406
  class: "page-link"
407
- }, [i("span", {
407
+ }, [p("span", {
408
408
  class: "f-icon f-page-last"
409
409
  }, null)])]);
410
410
  }
@@ -414,86 +414,86 @@ function oe(n, e, t) {
414
414
  };
415
415
  }
416
416
  function ae(n, e) {
417
- const t = N("共"), u = N("条"), a = w(() => ({
417
+ const t = N("共"), i = N("条"), a = w(() => ({
418
418
  "pagination-message": !0,
419
419
  "text-truncate": !0,
420
420
  "d-flex": !0,
421
421
  "ml-auto": n.value === "right",
422
422
  "flex-fill": n.value === "right"
423
423
  }));
424
- function g() {
425
- return i("li", {
424
+ function d() {
425
+ return p("li", {
426
426
  class: a.value
427
- }, [i("div", {
427
+ }, [p("div", {
428
428
  class: "text-truncate",
429
429
  style: "line-height: 26px"
430
- }, [i("span", {
430
+ }, [p("span", {
431
431
  class: "pg-message-text"
432
- }, [t.value]), i("b", {
432
+ }, [t.value]), p("b", {
433
433
  class: "pg-message-total"
434
- }, [e.value]), i("span", {
434
+ }, [e.value]), p("span", {
435
435
  class: "pg-message-text"
436
- }, [u.value])])]);
436
+ }, [i.value])])]);
437
437
  }
438
438
  return {
439
- renderPageInfo: g
439
+ renderPageInfo: d
440
440
  };
441
441
  }
442
- function se(n, e, t, u) {
443
- const a = N(!1), g = N("显示"), o = N("条"), s = w(() => ({
442
+ function se(n, e, t, i) {
443
+ const a = N(!1), d = N("显示"), o = N("条"), s = w(() => ({
444
444
  dropup: !0,
445
445
  "dropdown-right": !0,
446
446
  "pg-pagelist": !0,
447
- "pagelist-disabled": u.value === 0,
447
+ "pagelist-disabled": i.value === 0,
448
448
  show: a.value
449
- })), l = w(() => ({
449
+ })), r = w(() => ({
450
450
  "dropdown-menu": !0,
451
451
  show: a.value
452
- })), f = (r) => ({
452
+ })), f = (c) => ({
453
453
  "w-100": !0,
454
454
  "dropdown-item": !0,
455
- active: e.value === r
455
+ active: e.value === c
456
456
  });
457
- function b(r) {
457
+ function g(c) {
458
458
  a.value = !0;
459
459
  }
460
- function h(r) {
460
+ function v(c) {
461
461
  a.value = !1;
462
462
  }
463
- function m(r, p, y) {
464
- const C = r * p - p + 1;
465
- return Math.ceil(C / y);
463
+ function m(c, u, b) {
464
+ const P = c * u - u + 1;
465
+ return Math.ceil(P / b);
466
466
  }
467
- function P(r, p) {
468
- n.value = m(n.value, e.value, p), e.value = p, a.value = !1;
467
+ function C(c, u) {
468
+ n.value = m(n.value, e.value, u), e.value = u, a.value = !1;
469
469
  }
470
- function c() {
471
- return i("li", {
470
+ function l() {
471
+ return p("li", {
472
472
  class: "pagination-pagelist"
473
- }, [i("div", {
473
+ }, [p("div", {
474
474
  class: s.value,
475
- onMouseenter: (r) => b(),
476
- onMouseleave: (r) => h()
477
- }, [i("div", {
475
+ onMouseenter: (c) => g(),
476
+ onMouseleave: (c) => v()
477
+ }, [p("div", {
478
478
  class: "pg-pagelist-info"
479
- }, [i("span", {
479
+ }, [p("span", {
480
480
  class: "pagelist-text"
481
- }, [g.value]), i("b", {
481
+ }, [d.value]), p("b", {
482
482
  class: "cur-pagesize"
483
- }, [e.value]), i("span", {
483
+ }, [e.value]), p("span", {
484
484
  class: "pagelist-text"
485
- }, [o.value]), i("i", {
485
+ }, [o.value]), p("i", {
486
486
  class: "f-icon f-icon-dropdown"
487
- }, null)]), i("div", {
488
- class: l.value,
487
+ }, null)]), p("div", {
488
+ class: r.value,
489
489
  style: "margin-bottom: -1px;"
490
- }, [t.value.map((r) => i("li", {
491
- class: f(r),
492
- onClick: (p) => P(p, r)
493
- }, [i("span", null, [r])]))])])]);
490
+ }, [t.value.map((c) => p("li", {
491
+ class: f(c),
492
+ onClick: (u) => C(u, c)
493
+ }, [p("span", null, [c])]))])])]);
494
494
  }
495
495
  return {
496
- renderPageList: c
496
+ renderPageList: l
497
497
  };
498
498
  }
499
499
  function re(n, e) {
@@ -501,7 +501,7 @@ function re(n, e) {
501
501
  "page-item": !0,
502
502
  current: n.value === o.value,
503
503
  ellipsis: o.label === "..."
504
- }), u = (o) => ({
504
+ }), i = (o) => ({
505
505
  "f-icon": !0,
506
506
  "f-icon-arrow-seek-left": o.value < n.value,
507
507
  "f-icon-arrow-seek-right": o.value > n.value
@@ -509,63 +509,63 @@ function re(n, e) {
509
509
  function a(o, s) {
510
510
  n.value = s;
511
511
  }
512
- function g() {
513
- return e.value.map((o) => i("li", {
512
+ function d() {
513
+ return e.value.map((o) => p("li", {
514
514
  class: t(o)
515
- }, [n.value !== o.value && i("a", {
515
+ }, [n.value !== o.value && p("a", {
516
516
  class: "page-link",
517
517
  tabindex: "0",
518
518
  onClick: (s) => a(s, o.value)
519
- }, [i("span", {
519
+ }, [p("span", {
520
520
  class: "page-link-label"
521
- }, [o.label]), o.label === "..." && i("i", {
522
- class: u(o)
523
- }, null)]), n.value === o.value && i("span", {
521
+ }, [o.label]), o.label === "..." && p("i", {
522
+ class: i(o)
523
+ }, null)]), n.value === o.value && p("span", {
524
524
  class: "page-link"
525
525
  }, [o.label])]));
526
526
  }
527
527
  return {
528
- renderPageNumbers: g
528
+ renderPageNumbers: d
529
529
  };
530
530
  }
531
531
  function ce(n, e, t) {
532
- const u = w(() => ({
532
+ const i = w(() => ({
533
533
  "page-item": !0,
534
534
  disabled: e.value
535
535
  }));
536
- function a(l) {
536
+ function a(r) {
537
537
  n.value = 1;
538
538
  }
539
- function g(l) {
539
+ function d(r) {
540
540
  n.value = n.value > 2 ? n.value - 1 : 1;
541
541
  }
542
542
  function o() {
543
- return i("li", {
544
- class: u.value
545
- }, [t.value && i("a", {
543
+ return p("li", {
544
+ class: i.value
545
+ }, [t.value && p("a", {
546
546
  tabindex: "0",
547
547
  class: "page-link",
548
- onClick: (l) => a()
549
- }, [i("span", {
548
+ onClick: (r) => a()
549
+ }, [p("span", {
550
550
  class: "f-icon f-page-first"
551
- }, null)]), e.value && i("span", {
551
+ }, null)]), e.value && p("span", {
552
552
  class: "page-link"
553
- }, [i("span", {
553
+ }, [p("span", {
554
554
  class: "f-icon f-page-first"
555
555
  }, null)])]);
556
556
  }
557
557
  function s() {
558
- return i("li", {
559
- class: u.value
560
- }, [t.value && i("a", {
558
+ return p("li", {
559
+ class: i.value
560
+ }, [t.value && p("a", {
561
561
  tabindex: "0",
562
562
  class: "page-link",
563
- onClick: (l) => g()
564
- }, [i("span", {
563
+ onClick: (r) => d()
564
+ }, [p("span", {
565
565
  class: "f-icon f-page-pre"
566
- }, null)]), e.value && i("span", {
566
+ }, null)]), e.value && p("span", {
567
567
  class: "page-link"
568
- }, [i("span", {
568
+ }, [p("span", {
569
569
  class: "f-icon f-page-pre"
570
570
  }, null)])]);
571
571
  }
@@ -576,54 +576,54 @@ function ce(n, e, t) {
576
576
  }
577
577
  function le(n) {
578
578
  const e = N([]);
579
- function t(a, g, o, s) {
580
- const l = Math.ceil(o / 2);
581
- return a === o ? s : a === 1 ? a : o < s ? s - l < g ? s - o + a : l < g ? g - l + a : a : a;
582
- }
583
- function u(a, g, o, s) {
584
- const l = [], f = Math.ceil(o / g), b = Math.ceil(s / 2), h = a <= b, m = f - b < a, P = !h && !m, c = s < f;
585
- let r = 1;
586
- for (; r <= f && r <= s; ) {
587
- const p = t(r, a, s, f), y = r === 2 && (P || m), T = r === s - 1 && (P || h), C = c && (y || T) ? "..." : "" + p;
588
- l.push({ label: C, value: p }), r++;
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++;
589
589
  }
590
- e.value = l;
590
+ e.value = r;
591
591
  }
592
- return { pages: e, updatePages: u };
592
+ return { pages: e, updatePages: i };
593
593
  }
594
- const J = /* @__PURE__ */ K({
594
+ const J = /* @__PURE__ */ R({
595
595
  name: "FPagination",
596
596
  props: Z,
597
597
  emits: ["pageIndexChanged", "pageSizeChanged", "update:currentPage", "update:pageSize"],
598
598
  setup(n, e) {
599
- const t = N(!1), u = N(n.mode), a = N(""), g = N(!1), o = N(n.pageSize), s = N(n.currentPage), l = N(n.totalItems), {
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
600
  pages: f,
601
- updatePages: b
602
- } = le(), h = w(() => s.value === 1), m = w(() => n.pageList), P = w(() => Math.ceil(l.value / o.value)), c = w(() => s.value === P.value), r = w(() => n.showGoButton), p = 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), {
601
+ 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
603
  renderFirstPage: j,
604
- renderPreviousPage: O
605
- } = ce(s, h, p), {
606
- renderLastPage: d,
607
- renderNextPage: v
608
- } = oe(s, c, P), {
609
- renderPageInfo: M
610
- } = ae(a, l), {
611
- renderPageList: k
612
- } = se(s, o, m, l), {
604
+ renderPreviousPage: k
605
+ } = ce(s, v, u), {
606
+ renderLastPage: y,
607
+ renderNextPage: h
608
+ } = oe(s, l, C), {
609
+ renderPageInfo: A
610
+ } = ae(a, r), {
611
+ renderPageList: T
612
+ } = se(s, o, m, r), {
613
613
  renderPageNumbers: D
614
614
  } = re(s, f), {
615
615
  renderGotoButton: x
616
- } = ne(s, P);
617
- b(s.value, o.value, l.value, 7), B(() => n.totalItems, (E) => {
618
- l.value = E;
619
- }), B([s, o, l], () => {
620
- b(s.value, o.value, l.value, 7);
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
621
  }), B(s, () => {
622
622
  e.emit("update:currentPage", s.value), e.emit("pageIndexChanged", s.value);
623
623
  }), B(o, () => {
624
624
  e.emit("update:pageSize", o.value), e.emit("pageSizeChanged", o.value);
625
625
  }), B(() => n.totalItems, (E) => {
626
- l.value = E, b(s.value, o.value, l.value, 7);
626
+ r.value = E, g(s.value, o.value, r.value, 7);
627
627
  }), pe(() => {
628
628
  const E = m.value.includes(o.value);
629
629
  o.value = E ? o.value : m.value[0];
@@ -632,97 +632,97 @@ const J = /* @__PURE__ */ K({
632
632
  "ngx-pagination": !0,
633
633
  pagination: !0,
634
634
  responsive: t.value,
635
- "pager-viewmode-default": u.value === "default",
636
- "pager-viewmode-simple": u.value === "simple"
635
+ "pager-viewmode-default": i.value === "default",
636
+ "pager-viewmode-simple": i.value === "simple"
637
637
  })), F = w(() => ({
638
638
  position: "relative",
639
639
  "justify-content": a.value === "center" ? "center" : "start"
640
640
  }));
641
641
  function V() {
642
- return i(_, 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()]);
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()]);
643
643
  }
644
644
  function z() {
645
- return i(_, null, [i("li", {
645
+ return p(_, null, [p("li", {
646
646
  class: "page-item d-flex flex-fill"
647
- }, null), A.value && j(), A.value && O(), x(), i("li", {
647
+ }, null), M.value && j(), M.value && k(), x(), p("li", {
648
648
  class: "page-item page-separator",
649
649
  style: "margin-left: 10px"
650
- }, [i("span", {
650
+ }, [p("span", {
651
651
  style: "font-size: 15px; font-weight: 200;"
652
- }, [H(" /")])]), i("li", {
652
+ }, [H(" /")])]), p("li", {
653
653
  class: "page-item page-total",
654
654
  style: "margin-left: 5px"
655
- }, [i("span", {
655
+ }, [p("span", {
656
656
  style: "font-size: 16px; font-weight: 600;"
657
- }, [H(" "), P.value])]), A.value && v(), A.value && d()]);
657
+ }, [H(" "), C.value])]), M.value && h(), M.value && y()]);
658
658
  }
659
- return () => i("div", {
659
+ return () => p("div", {
660
660
  class: "pagination-container"
661
- }, [y.value && i("ul", {
661
+ }, [b.value && p("ul", {
662
662
  role: "navigation",
663
663
  class: $.value,
664
664
  style: F.value
665
- }, [u.value === "default" ? V() : z()])]);
665
+ }, [i.value === "default" ? V() : z()])]);
666
666
  }
667
667
  });
668
668
  function ze(n, e, t) {
669
- var A;
670
- function u() {
669
+ var M;
670
+ function i() {
671
671
  t != null && t.resolveComponentContext && t.resolveComponentContext();
672
672
  }
673
- u();
674
- const a = t && t.getStyles && t.getStyles() || "", g = t && t.getDesignerClass && t.getDesignerClass() || "", o = N();
673
+ i();
674
+ const a = t && t.getStyles && t.getStyles() || "", d = t && t.getDesignerClass && t.getDesignerClass() || "", o = N();
675
675
  function s() {
676
676
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
677
677
  }
678
- function l() {
678
+ function r() {
679
679
  return !1;
680
680
  }
681
681
  function f() {
682
682
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
683
683
  }
684
- function b() {
684
+ function g() {
685
685
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
686
686
  }
687
- function h(j) {
687
+ function v(j) {
688
688
  if (!j || !j.value)
689
689
  return null;
690
690
  if (j.value.schema && j.value.schema.type === "component")
691
691
  return j.value;
692
- const O = N(j == null ? void 0 : j.value.parent), d = h(O);
693
- return d || null;
692
+ const k = N(j == null ? void 0 : j.value.parent), y = v(k);
693
+ return y || null;
694
694
  }
695
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);
696
+ const { componentInstance: k, designerItemElementRef: y } = j;
697
+ return !k || !k.value ? null : k.value.canMove ? y : m(j.parent);
698
698
  }
699
- function P(j) {
699
+ function C(j) {
700
700
  return !!t && t.canAccepts(j);
701
701
  }
702
- function c() {
702
+ function l() {
703
703
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
704
704
  }
705
- function r() {
705
+ function c() {
706
706
  }
707
- function p(j, O) {
708
- O && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(O);
707
+ function u(j, k) {
708
+ k && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(k);
709
709
  }
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;
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;
716
716
  }
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 = o.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;
717
+ function O(j, k) {
718
+ const y = String(j.getAttribute("data-controltype")), h = j.getAttribute("data-feature"), A = h ? JSON.parse(h) : {};
719
+ 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;
724
724
  }
725
- function C(j) {
725
+ function P(j) {
726
726
  }
727
727
  function S(...j) {
728
728
  if (t && t.getPropsConfig)
@@ -730,41 +730,41 @@ function ze(n, e, t) {
730
730
  }
731
731
  return o.value = {
732
732
  canMove: s(),
733
- canSelectParent: l(),
733
+ canSelectParent: r(),
734
734
  canDelete: f(),
735
- canNested: !b(),
735
+ canNested: !g(),
736
736
  contents: e == null ? void 0 : e.schema.contents,
737
737
  elementRef: n,
738
- parent: (A = e == null ? void 0 : e.parent) == null ? void 0 : A.componentInstance,
738
+ parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
739
739
  schema: e == null ? void 0 : e.schema,
740
740
  styles: a,
741
- designerClass: g,
742
- canAccepts: P,
743
- getBelongedComponentInstance: h,
741
+ designerClass: d,
742
+ canAccepts: C,
743
+ getBelongedComponentInstance: v,
744
744
  getDraggableDesignItemElement: m,
745
- getDraggingDisplayText: c,
745
+ getDraggingDisplayText: l,
746
746
  getPropConfig: S,
747
- getDragScopeElement: r,
748
- onAcceptMovedChildElement: p,
749
- onAcceptNewChildElement: T,
750
- onChildElementMovedOut: C,
751
- addNewChildComponentSchema: y,
752
- updateDragAndDropRules: u,
747
+ getDragScopeElement: c,
748
+ onAcceptMovedChildElement: u,
749
+ onAcceptNewChildElement: O,
750
+ onChildElementMovedOut: P,
751
+ addNewChildComponentSchema: b,
752
+ updateDragAndDropRules: i,
753
753
  triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || N(!1),
754
754
  triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || N(!1)
755
755
  }, o;
756
756
  }
757
757
  function We() {
758
758
  function n(e) {
759
- var a, g;
759
+ var a, d;
760
760
  if (!e)
761
761
  return !1;
762
762
  const t = ((a = e.targetContainer) == null ? void 0 : a.componentInstance) && e.targetContainer.componentInstance.value;
763
763
  if (!t)
764
764
  return !1;
765
- const u = (g = t.schema.appearance) == null ? void 0 : g.class;
765
+ const i = (d = t.schema.appearance) == null ? void 0 : d.class;
766
766
  if (e.controlCategory === "input" || e.controlType === "form-group") {
767
- const o = t.schema.type, s = (o === "response-form" || o === "content-container") && u && u.includes("farris-form");
767
+ const o = t.schema.type, s = (o === "response-form" || o === "content-container") && i && i.includes("farris-form");
768
768
  if (t.schema.type !== "response-layout-item" && !s)
769
769
  return !1;
770
770
  }
@@ -1193,6 +1193,80 @@ const Ge = "https://json-schema.org/draft/2020-12/schema", qe = "https://farris-
1193
1193
  "f-list-nav-left": {
1194
1194
  description: "",
1195
1195
  type: "object"
1196
+ },
1197
+ "f-struct-data-grid-in-nav": {
1198
+ description: "",
1199
+ type: "object",
1200
+ properties: {
1201
+ contents: {
1202
+ type: "object",
1203
+ properties: {
1204
+ "f-section-form": {
1205
+ description: "",
1206
+ type: "object",
1207
+ properties: {
1208
+ rules: {
1209
+ type: "object",
1210
+ properties: {
1211
+ canAccept: {
1212
+ type: "boolean",
1213
+ const: !1
1214
+ },
1215
+ fixed: {
1216
+ type: "boolean",
1217
+ const: !0
1218
+ },
1219
+ hidePadding: {
1220
+ type: "boolean",
1221
+ const: !0
1222
+ }
1223
+ }
1224
+ }
1225
+ }
1226
+ },
1227
+ "f-section-grid": {
1228
+ description: "",
1229
+ type: "object",
1230
+ properties: {
1231
+ rules: {
1232
+ type: "object",
1233
+ properties: {
1234
+ canAccept: {
1235
+ type: "boolean",
1236
+ const: !1
1237
+ },
1238
+ fixed: {
1239
+ type: "boolean",
1240
+ const: !0
1241
+ },
1242
+ hidePadding: {
1243
+ type: "boolean",
1244
+ const: !0
1245
+ }
1246
+ }
1247
+ }
1248
+ }
1249
+ }
1250
+ }
1251
+ },
1252
+ rules: {
1253
+ type: "object",
1254
+ properties: {
1255
+ canAccept: {
1256
+ type: "boolean",
1257
+ const: !1
1258
+ },
1259
+ fixed: {
1260
+ type: "boolean",
1261
+ const: !0
1262
+ },
1263
+ hidePadding: {
1264
+ type: "boolean",
1265
+ const: !0
1266
+ }
1267
+ }
1268
+ }
1269
+ }
1196
1270
  }
1197
1271
  }
1198
1272
  }
@@ -1338,253 +1412,240 @@ const Ge = "https://json-schema.org/draft/2020-12/schema", qe = "https://farris-
1338
1412
  description: "",
1339
1413
  type: "object"
1340
1414
  }
1341
- }, Ue = [], Xe = {
1415
+ }, Ue = {
1342
1416
  $schema: Ge,
1343
1417
  $id: qe,
1344
1418
  title: _e,
1345
1419
  description: He,
1346
1420
  type: Je,
1347
- properties: Qe,
1348
- required: Ue
1421
+ properties: Qe
1349
1422
  }, X = /* @__PURE__ */ new Map();
1350
- function Ye() {
1351
- function n(c, r, p, y) {
1352
- var T;
1353
- if (typeof p == "number")
1354
- return ((T = y[c]) == null ? void 0 : T.length) === p;
1355
- if (typeof p == "object") {
1356
- const C = Object.keys(p)[0], S = p[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);
1423
+ function Xe() {
1424
+ function n(l, c, u, b) {
1425
+ var O;
1426
+ if (typeof u == "number")
1427
+ return ((O = b[l]) == null ? void 0 : O.length) === u;
1428
+ 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);
1363
1436
  }
1364
1437
  return !1;
1365
1438
  }
1366
- function e(c, r, p, y) {
1367
- return typeof p == "boolean" ? y.childrenClassList.includes(r) === !!p : !1;
1439
+ function e(l, c, u, b) {
1440
+ return typeof u == "boolean" ? b.childrenClassList.includes(c) === !!u : !1;
1368
1441
  }
1369
- function t(c, r, p, y) {
1370
- return typeof p == "boolean" ? y.parentClassList.includes(r) === !!p : !1;
1442
+ function t(l, c, u, b) {
1443
+ return typeof u == "boolean" ? b.parentClassList.includes(c) === !!u : !1;
1371
1444
  }
1372
- function u(c, r, p, y) {
1373
- return typeof p == "boolean" ? y.parentClassList.includes(r) === !!p : !1;
1445
+ function i(l, c, u, b) {
1446
+ return typeof u == "boolean" ? b.parentClassList.includes(c) === !!u : !1;
1374
1447
  }
1375
1448
  const a = /* @__PURE__ */ new Map([
1376
1449
  ["length", n],
1377
1450
  ["hasChildren", e],
1378
- ["hasSibling", u],
1451
+ ["hasSibling", i],
1379
1452
  ["hasParent", t]
1380
1453
  ]);
1381
- function g(c, r) {
1382
- const p = c;
1383
- return typeof r == "number" ? [{ target: p, operator: "length", param: null, value: Number(r) }] : typeof r == "object" ? Object.keys(r).map((y) => {
1384
- if (y === "length")
1385
- return { target: p, operator: "length", param: null, value: r[y] };
1386
- const T = y, C = r[y];
1387
- return { target: p, operator: c === "children" ? "hasChildren" : c === "parent" ? "hasParent" : "hasSibling", param: T, value: C };
1454
+ function d(l, c) {
1455
+ 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) => {
1457
+ 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 };
1388
1461
  }) : [];
1389
1462
  }
1390
- function o(c, r) {
1391
- if (a.has(c.operator)) {
1392
- const p = a.get(c.operator);
1393
- return p && p(c.target, c.param, c.value, r) || !1;
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;
1394
1467
  }
1395
1468
  return !1;
1396
1469
  }
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 && o(S, r), !0);
1402
- }
1403
- function l(c, r) {
1404
- const p = Object.keys(c), y = p.includes("allOf"), T = p.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);
1406
- }
1407
- function f(c, r) {
1408
- const p = c.const;
1409
- return p ? typeof p == "boolean" ? p : typeof p == "object" ? l(p, r) : !1 : !1;
1410
- }
1411
- function b(c) {
1412
- return (r) => {
1413
- const p = { 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;
1417
- }, p), p;
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);
1475
+ }
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);
1479
+ }
1480
+ function f(l, c) {
1481
+ const u = l.const;
1482
+ return u ? typeof u == "boolean" ? u : typeof u == "object" ? r(u, c) : !1 : !1;
1483
+ }
1484
+ function g(l) {
1485
+ return (c) => {
1486
+ 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;
1490
+ }, u), u;
1418
1491
  };
1419
1492
  }
1420
- function h(c, r, p) {
1421
- if (r.type === "object" && r.properties) {
1422
- const { rules: y, contents: T } = r.properties;
1423
- p.set(c, b(y)), T && Object.keys(T.properties).forEach(
1424
- (C) => h(C, T.properties[C], p)
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)
1425
1498
  );
1426
1499
  }
1427
1500
  }
1428
1501
  function m() {
1429
- const { properties: c } = Xe;
1430
- Object.keys(c).forEach((r) => {
1431
- h(r, c[r], X);
1502
+ const { properties: l } = Ue;
1503
+ Object.keys(l).forEach((c) => {
1504
+ v(c, l[c], X);
1432
1505
  });
1433
1506
  }
1434
- function P(c, r) {
1435
- const p = { canAccept: !0, fixed: !1, hidePadding: !0 };
1436
- return X.has(c) ? X.get(c)(r) : p;
1507
+ function C(l, c) {
1508
+ const u = { canAccept: !0, fixed: !1, hidePadding: !0 };
1509
+ return X.has(l) ? X.get(l)(c) : u;
1437
1510
  }
1438
- return m(), { getRuleValue: P };
1511
+ return m(), { getRuleValue: C };
1439
1512
  }
1440
- function Ze(n, e) {
1441
- var O;
1442
- const t = n.schema, u = (O = n.parent) == null ? void 0 : O.schema, a = Ye(), g = N(!1), o = N(!1);
1443
- let s = !0, l = !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, o.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) => {
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;
1519
+ }
1520
+ function m(y) {
1521
+ return !(!We().basalDragulaRuleForContainer(y) || !s || !v(y));
1522
+ }
1523
+ 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) => {
1453
1526
  const I = G && G.appearance ? G.appearance.class : "", ie = I ? I.split(" ") : [];
1454
1527
  return W.push(...ie), W;
1455
- }, []) : [], F = u, V = F && F.appearance && F.appearance.class || "", z = V ? V.split(" ") : [];
1528
+ }, []) : [], F = i, V = F && F.appearance && F.appearance.class || "", z = V ? V.split(" ") : [];
1456
1529
  f = {
1457
- componentClass: v,
1458
- componentClassList: M,
1459
- childContents: k,
1530
+ componentClass: h,
1531
+ componentClassList: A,
1532
+ childContents: T,
1460
1533
  firstChildContent: D,
1461
1534
  firstChildClass: x,
1462
1535
  firstChildClassList: L,
1463
1536
  parent: F,
1464
1537
  parentClass: V,
1465
1538
  parentClassList: z,
1466
- children: k,
1539
+ children: T,
1467
1540
  childrenClassList: $
1468
1541
  };
1469
- const { canAccept: E, fixed: Q, hidePadding: U } = a.getRuleValue(M[0], f);
1470
- return s = E, l = U, b = Q, !0;
1542
+ const { canAccept: E, fixed: Q, hidePadding: U } = a.getRuleValue(A[0], f);
1543
+ return s = E, r = U, g = Q, !0;
1471
1544
  }
1472
- function c(d) {
1545
+ function l(y) {
1473
1546
  ue();
1474
1547
  }
1475
- function r() {
1548
+ function c() {
1476
1549
  return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1477
1550
  }
1478
- function p(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;
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;
1483
1556
  }
1484
- return v;
1557
+ return h;
1485
1558
  }
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;
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;
1491
1564
  }
1492
1565
  }
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";
1566
+ function O(y) {
1567
+ let h = "";
1568
+ switch (y) {
1569
+ case 1: {
1570
+ h = "col-12 col-md-12 col-xl-12 col-el-12";
1498
1571
  break;
1499
1572
  }
1500
- case "form-col-12": {
1501
- v = "col-12 col-md-12 col-xl-12 col-el-12";
1573
+ case 2: {
1574
+ h = "col-12 col-md-6 col-xl-6 col-el-6";
1502
1575
  break;
1503
1576
  }
1504
- case "form-col-2": {
1505
- v = "col-12 col-md-6 col-xl-6 col-el-6";
1577
+ case 3: {
1578
+ h = "col-12 col-md-6 col-xl-4 col-el-4";
1506
1579
  break;
1507
1580
  }
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";
1581
+ case 4: {
1582
+ h = "col-12 col-md-6 col-xl-3 col-el-2";
1522
1583
  break;
1523
1584
  }
1524
1585
  }
1525
- return v;
1586
+ return h;
1526
1587
  }
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, $;
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, $;
1532
1593
  }
1533
- return M;
1594
+ return A;
1534
1595
  }
1535
1596
  function S() {
1536
- return !b;
1597
+ return !g;
1537
1598
  }
1538
- function A() {
1539
- return !b;
1599
+ function M() {
1600
+ return !g;
1540
1601
  }
1541
1602
  function j() {
1542
- return l;
1603
+ return r;
1543
1604
  }
1544
1605
  return {
1545
1606
  canAccepts: m,
1546
- checkCanDeleteComponent: A,
1607
+ checkCanDeleteComponent: M,
1547
1608
  checkCanMoveComponent: S,
1548
- getStyles: r,
1609
+ getStyles: c,
1549
1610
  hideNestedPaddingInDesginerView: j,
1550
- onAcceptNewChildElement: C,
1551
- onAcceptMovedChildElement: c,
1552
- resolveComponentContext: P,
1553
- onResolveNewComponentSchema: p,
1554
- triggerBelongedComponentToMoveWhenMoved: g,
1611
+ onAcceptNewChildElement: P,
1612
+ onAcceptMovedChildElement: l,
1613
+ resolveComponentContext: C,
1614
+ onResolveNewComponentSchema: u,
1615
+ triggerBelongedComponentToMoveWhenMoved: d,
1555
1616
  triggerBelongedComponentToDeleteWhenDeleted: o
1556
1617
  };
1557
1618
  }
1558
- const Ie = /* @__PURE__ */ K({
1619
+ const Ze = /* @__PURE__ */ R({
1559
1620
  name: "FPagination",
1560
1621
  props: Z,
1561
1622
  emits: ["pageIndexChanged", "pageSizeChanged"],
1562
1623
  setup(n, e) {
1563
1624
  var W;
1564
- const t = N(!1), u = N(n.mode), a = N(""), g = N(!1), o = N(n.pageSize), s = N(n.currentPage), l = 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);
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);
1565
1626
  de(() => {
1566
1627
  f.value.componentInstance = m;
1567
1628
  }), e.expose(m.value);
1568
1629
  const {
1569
- pages: P,
1570
- updatePages: c
1571
- } = le(), r = w(() => s.value === 1), p = w(() => [20, 50, 100]), y = w(() => Math.ceil(l.value / o.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), {
1630
+ pages: C,
1631
+ 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), {
1633
+ renderFirstPage: A,
1634
+ renderPreviousPage: T
1635
+ } = ce(s, c, S), {
1575
1636
  renderLastPage: D,
1576
1637
  renderNextPage: x
1577
- } = oe(s, T, y), {
1638
+ } = oe(s, O, b), {
1578
1639
  renderPageInfo: L
1579
- } = ae(a, l), {
1640
+ } = ae(a, r), {
1580
1641
  renderPageList: $
1581
- } = se(s, o, p, l), {
1642
+ } = se(s, o, u, r), {
1582
1643
  renderPageNumbers: F
1583
- } = re(s, P), {
1644
+ } = re(s, C), {
1584
1645
  renderGotoButton: V
1585
- } = ne(s, y);
1586
- c(s.value, o.value, l.value, 7), B([s, o], () => {
1587
- c(s.value, o.value, l.value, 7);
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);
1588
1649
  }), B(s, () => {
1589
1650
  e.emit("pageIndexChanged", s.value);
1590
1651
  }), B(o, () => {
@@ -1594,50 +1655,50 @@ const Ie = /* @__PURE__ */ K({
1594
1655
  "ngx-pagination": !0,
1595
1656
  pagination: !0,
1596
1657
  responsive: t.value,
1597
- "pager-viewmode-default": u.value === "default",
1598
- "pager-viewmode-simple": u.value === "simple"
1658
+ "pager-viewmode-default": i.value === "default",
1659
+ "pager-viewmode-simple": i.value === "simple"
1599
1660
  })), E = w(() => ({
1600
1661
  position: "relative",
1601
1662
  "justify-content": a.value === "center" ? "center" : "start"
1602
1663
  }));
1603
1664
  function Q() {
1604
- return i(_, null, [j.value && L(), O.value && $(), v.value && M(), v.value && k(), d.value && F(), v.value && x(), v.value && D(), C.value && V()]);
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()]);
1605
1666
  }
1606
1667
  function U() {
1607
- return i(_, null, [i("li", {
1668
+ return p(_, null, [p("li", {
1608
1669
  class: "page-item d-flex flex-fill"
1609
- }, null), v.value && M(), v.value && k(), V(), i("li", {
1670
+ }, null), h.value && A(), h.value && T(), V(), p("li", {
1610
1671
  class: "page-item page-separator",
1611
1672
  style: "margin-left: 10px"
1612
- }, [i("span", {
1673
+ }, [p("span", {
1613
1674
  style: "font-size: 15px; font-weight: 200;"
1614
- }, [H(" /")])]), i("li", {
1675
+ }, [H(" /")])]), p("li", {
1615
1676
  class: "page-item page-total",
1616
1677
  style: "margin-left: 5px"
1617
- }, [i("span", {
1678
+ }, [p("span", {
1618
1679
  style: "font-size: 16px; font-weight: 600;"
1619
- }, [H(" "), y.value])]), v.value && x(), v.value && D()]);
1680
+ }, [H(" "), b.value])]), h.value && x(), h.value && D()]);
1620
1681
  }
1621
- return () => i("div", {
1682
+ return () => p("div", {
1622
1683
  ref: f,
1623
1684
  class: "pagination-container"
1624
- }, [A.value && i("ul", {
1685
+ }, [M.value && p("ul", {
1625
1686
  role: "navigation",
1626
1687
  class: z.value,
1627
1688
  style: E.value
1628
- }, [u.value === "default" ? Q() : U()])]);
1689
+ }, [i.value === "default" ? Q() : U()])]);
1629
1690
  }
1630
1691
  });
1631
1692
  J.register = (n, e, t) => {
1632
1693
  n.pagination = J, e.pagination = te;
1633
1694
  };
1634
1695
  J.registerDesigner = (n, e, t) => {
1635
- n.pagination = Ie, e.pagination = te;
1696
+ n.pagination = Ze, e.pagination = te;
1636
1697
  };
1637
- const tt = be(J);
1698
+ const et = be(J);
1638
1699
  export {
1639
1700
  J as FPagination,
1640
- tt as default,
1701
+ et as default,
1641
1702
  Z as paginationProps,
1642
1703
  te as propsResolver
1643
1704
  };