@farris/ui-vue 1.2.7 → 1.2.8

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 (206) hide show
  1. package/components/accordion/index.esm.js +79 -79
  2. package/components/avatar/index.esm.js +393 -440
  3. package/components/border-editor/index.esm.js +4 -4
  4. package/components/button/index.esm.js +1 -1
  5. package/components/button-edit/index.esm.js +353 -444
  6. package/components/button-group/index.esm.js +5 -5
  7. package/components/calendar/index.esm.js +176 -176
  8. package/components/capsule/index.esm.js +93 -93
  9. package/components/checkbox/index.esm.js +496 -542
  10. package/components/color-picker/index.esm.js +1 -1
  11. package/components/combo-list/index.esm.js +437 -483
  12. package/components/combo-tree/index.esm.js +8 -8
  13. package/components/component/index.esm.js +89 -89
  14. package/components/condition/index.esm.js +839 -726
  15. package/components/content-container/index.esm.js +61 -61
  16. package/components/data-grid/index.esm.js +4702 -4972
  17. package/components/data-view/index.esm.js +2999 -2875
  18. package/components/date-picker/index.esm.js +2626 -2672
  19. package/components/dependent-base/style.js +1 -0
  20. package/components/dependent-fluid/style.js +1 -0
  21. package/components/dependent-icon/style.js +1 -0
  22. package/components/dependent-input/style.js +1 -0
  23. package/components/dependent-table/style.js +1 -0
  24. package/components/designer-canvas/index.esm.js +478 -475
  25. package/components/designer-outline/index.esm.js +173 -131
  26. package/components/discussion-editor/index.esm.js +1 -1
  27. package/components/dropdown/index.esm.js +73 -73
  28. package/components/dynamic-form/index.esm.js +934 -976
  29. package/components/dynamic-resolver/index.esm.js +67 -35
  30. package/components/dynamic-view/index.esm.js +258 -249
  31. package/components/enum-editor/index.esm.js +3 -3
  32. package/components/events-editor/index.esm.js +178 -178
  33. package/components/expression-editor/index.esm.js +105 -105
  34. package/components/external-container/index.esm.js +1892 -1775
  35. package/components/field-selector/index.css +1 -1
  36. package/components/field-selector/index.esm.js +5245 -5514
  37. package/components/filter-bar/index.css +1 -1
  38. package/components/filter-bar/index.esm.js +1483 -1556
  39. package/components/flow-canvas/index.esm.js +678 -675
  40. package/components/image-cropper/index.esm.js +266 -266
  41. package/components/input-group/index.esm.js +668 -714
  42. package/components/layout/index.esm.js +148 -148
  43. package/components/list-nav/index.esm.js +109 -109
  44. package/components/list-view/index.esm.js +1679 -1563
  45. package/components/lookup/index.css +1 -1
  46. package/components/lookup/index.esm.js +6596 -6865
  47. package/components/mapping-editor/index.esm.js +5592 -5862
  48. package/components/message-box/index.esm.js +1 -1
  49. package/components/modal/index.esm.js +1 -1
  50. package/components/nav/index.esm.js +86 -86
  51. package/components/number-range/index.esm.js +1120 -0
  52. package/components/number-range/package.json +8 -0
  53. package/components/number-range/style.js +6 -0
  54. package/components/number-spinner/index.esm.js +1146 -0
  55. package/components/number-spinner/package.json +8 -0
  56. package/components/number-spinner/style.js +4 -0
  57. package/components/order/index.esm.js +988 -1034
  58. package/components/page-footer/index.esm.js +106 -106
  59. package/components/page-header/index.esm.js +1088 -1296
  60. package/components/pagination/index.esm.js +252 -252
  61. package/components/progress/index.esm.js +37 -37
  62. package/components/property-editor/index.esm.js +1416 -1462
  63. package/components/property-panel/index.css +1 -1
  64. package/components/property-panel/index.esm.js +757 -830
  65. package/components/query-solution/index.css +1 -0
  66. package/components/query-solution/index.esm.js +6935 -0
  67. package/components/query-solution/package.json +8 -0
  68. package/components/query-solution/style.js +2 -0
  69. package/components/radio-button/index.esm.js +64 -64
  70. package/components/radio-group/index.esm.js +452 -498
  71. package/components/rate/index.esm.js +92 -92
  72. package/components/response-layout/index.esm.js +33 -33
  73. package/components/response-layout-editor/index.esm.js +117 -117
  74. package/components/response-toolbar/index.esm.js +1021 -1238
  75. package/components/schema-selector/index.esm.js +3215 -3308
  76. package/components/search-box/index.esm.js +143 -143
  77. package/components/section/index.esm.js +209 -209
  78. package/components/smoke-detector/index.esm.js +22 -22
  79. package/components/spacing-editor/index.esm.js +2 -2
  80. package/components/splitter/index.esm.js +1097 -394
  81. package/components/step/index.esm.js +153 -153
  82. package/components/switch/index.esm.js +442 -488
  83. package/components/tabs/index.esm.js +1835 -2004
  84. package/components/tags/index.esm.js +215 -215
  85. package/components/text/index.esm.js +53 -53
  86. package/components/textarea/index.esm.js +451 -482
  87. package/components/time-picker/index.esm.js +1345 -1392
  88. package/components/transfer/index.esm.js +135 -135
  89. package/components/tree-grid/index.css +1 -1
  90. package/components/tree-grid/index.esm.js +5761 -6020
  91. package/components/tree-view/index.esm.js +2380 -2253
  92. package/components/uploader/index.esm.js +1 -1
  93. package/components/verify-detail/index.esm.js +232 -232
  94. package/components/video/index.esm.js +136 -136
  95. package/components/weather/index.esm.js +2 -2
  96. package/farris.all.esm.js +31630 -31224
  97. package/farris.all.umd.cjs +9 -9
  98. package/index.css +1 -1
  99. package/package.json +1 -1
  100. package/types/checkbox/index.d.ts +1 -0
  101. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  102. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  103. package/types/data-view/composition/types.d.ts +1 -1
  104. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  105. package/types/designer-canvas/src/types.d.ts +1 -1
  106. package/types/dynamic-form/index.d.ts +1 -0
  107. package/types/dynamic-form/src/types.d.ts +1 -1
  108. package/types/dynamic-resolver/index.d.ts +1 -0
  109. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  110. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  111. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  112. package/types/modal/src/modal.props.d.ts +1 -4
  113. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  114. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  115. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  116. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  117. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  118. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  119. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  120. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  121. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
  122. package/components/accordion/index.umd.cjs +0 -1
  123. package/components/avatar/index.umd.cjs +0 -1
  124. package/components/border-editor/index.umd.cjs +0 -1
  125. package/components/button/index.umd.cjs +0 -1
  126. package/components/button-edit/index.umd.cjs +0 -1
  127. package/components/button-group/index.umd.cjs +0 -1
  128. package/components/calculator/index.umd.cjs +0 -1
  129. package/components/calendar/index.umd.cjs +0 -1
  130. package/components/capsule/index.umd.cjs +0 -1
  131. package/components/checkbox/index.umd.cjs +0 -1
  132. package/components/color-picker/index.umd.cjs +0 -3
  133. package/components/combo-list/index.umd.cjs +0 -1
  134. package/components/combo-tree/index.umd.cjs +0 -1
  135. package/components/common/index.umd.cjs +0 -1
  136. package/components/component/index.umd.cjs +0 -1
  137. package/components/condition/index.umd.cjs +0 -1
  138. package/components/content-container/index.umd.cjs +0 -1
  139. package/components/data-grid/index.umd.cjs +0 -1
  140. package/components/data-view/index.umd.cjs +0 -1
  141. package/components/date-picker/index.umd.cjs +0 -1
  142. package/components/designer-canvas/index.umd.cjs +0 -1
  143. package/components/designer-outline/index.umd.cjs +0 -1
  144. package/components/designer-toolbox/index.umd.cjs +0 -1
  145. package/components/discussion-editor/index.umd.cjs +0 -3
  146. package/components/discussion-list/index.umd.cjs +0 -1
  147. package/components/drawer/index.umd.cjs +0 -1
  148. package/components/dropdown/index.umd.cjs +0 -2
  149. package/components/dynamic-form/index.umd.cjs +0 -1
  150. package/components/dynamic-resolver/index.umd.cjs +0 -1
  151. package/components/dynamic-view/index.umd.cjs +0 -1
  152. package/components/enum-editor/index.umd.cjs +0 -1
  153. package/components/events-editor/index.umd.cjs +0 -1
  154. package/components/expression-editor/index.umd.cjs +0 -1
  155. package/components/external-container/index.umd.cjs +0 -1
  156. package/components/field-selector/index.umd.cjs +0 -1
  157. package/components/filter-bar/index.umd.cjs +0 -1
  158. package/components/flow-canvas/index.umd.cjs +0 -1
  159. package/components/image-cropper/index.umd.cjs +0 -1
  160. package/components/input-group/index.umd.cjs +0 -1
  161. package/components/layout/index.umd.cjs +0 -1
  162. package/components/list-nav/index.umd.cjs +0 -1
  163. package/components/list-view/index.umd.cjs +0 -1
  164. package/components/loading/index.umd.cjs +0 -8
  165. package/components/locale/index.umd.cjs +0 -1
  166. package/components/lookup/index.umd.cjs +0 -1
  167. package/components/mapping-editor/index.umd.cjs +0 -1
  168. package/components/message-box/index.umd.cjs +0 -1
  169. package/components/modal/index.umd.cjs +0 -1
  170. package/components/nav/index.umd.cjs +0 -3
  171. package/components/notify/index.umd.cjs +0 -1
  172. package/components/order/index.umd.cjs +0 -1
  173. package/components/page-footer/index.umd.cjs +0 -1
  174. package/components/page-header/index.umd.cjs +0 -1
  175. package/components/pagination/index.umd.cjs +0 -1
  176. package/components/popover/index.umd.cjs +0 -1
  177. package/components/progress/index.umd.cjs +0 -3
  178. package/components/property-editor/index.umd.cjs +0 -3
  179. package/components/property-panel/index.umd.cjs +0 -1
  180. package/components/radio-button/index.umd.cjs +0 -1
  181. package/components/radio-group/index.umd.cjs +0 -1
  182. package/components/rate/index.umd.cjs +0 -1
  183. package/components/response-layout/index.umd.cjs +0 -1
  184. package/components/response-layout-editor/index.umd.cjs +0 -1
  185. package/components/response-toolbar/index.umd.cjs +0 -1
  186. package/components/schema-selector/index.umd.cjs +0 -8
  187. package/components/search-box/index.umd.cjs +0 -1
  188. package/components/section/index.umd.cjs +0 -1
  189. package/components/smoke-detector/index.umd.cjs +0 -1
  190. package/components/spacing-editor/index.umd.cjs +0 -1
  191. package/components/splitter/index.umd.cjs +0 -1
  192. package/components/step/index.umd.cjs +0 -1
  193. package/components/switch/index.umd.cjs +0 -1
  194. package/components/tabs/index.umd.cjs +0 -1
  195. package/components/tags/index.umd.cjs +0 -1
  196. package/components/text/index.umd.cjs +0 -1
  197. package/components/textarea/index.umd.cjs +0 -1
  198. package/components/time-picker/index.umd.cjs +0 -1
  199. package/components/tooltip/index.umd.cjs +0 -1
  200. package/components/transfer/index.umd.cjs +0 -1
  201. package/components/tree-grid/index.umd.cjs +0 -1
  202. package/components/tree-view/index.umd.cjs +0 -1
  203. package/components/uploader/index.umd.cjs +0 -2
  204. package/components/verify-detail/index.umd.cjs +0 -1
  205. package/components/video/index.umd.cjs +0 -1
  206. package/components/weather/index.umd.cjs +0 -16
@@ -1,28 +1,28 @@
1
- import { defineComponent as C, computed as m, provide as S, createVNode as u, inject as I, ref as g, onMounted as O } from "vue";
2
- import { cloneDeep as E } from "lodash-es";
3
- import { resolveAppearance as R, createPropsResolver as M } from "@farris/ui-vue/components/dynamic-resolver";
4
- import { useDesignerComponent as T } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-component";
5
- const V = {}, B = {};
1
+ import { defineComponent as C, computed as m, provide as E, createVNode as u, inject as I, ref as y, onMounted as O } from "vue";
2
+ import { cloneDeep as R } from "lodash-es";
3
+ import { resolveAppearance as M, createPropsResolver as S } from "../dynamic-resolver/index.esm.js";
4
+ import { useDesignerComponent as T } from "../designer-canvas/index.esm.js";
5
+ const B = {}, V = {};
6
6
  function P(t) {
7
- const { properties: e, title: i } = t, o = Object.keys(e).reduce((s, l) => (s[l] = e[l].type === "object" && e[l].properties ? P(e[l]) : E(e[l].default), s), {});
7
+ const { properties: e, title: i } = t, o = Object.keys(e).reduce((n, l) => (n[l] = e[l].type === "object" && e[l].properties ? P(e[l]) : R(e[l].default), n), {});
8
8
  return o.id = `${i}-${Date.now()}`, o;
9
9
  }
10
10
  function q(t, e) {
11
11
  const i = P(e);
12
- return Object.keys(t).reduce((o, s) => (o[s] = t[s], o), i), i;
12
+ return Object.keys(t).reduce((o, n) => (o[n] && typeof o[n] == "object" ? Object.assign(o[n], t[n]) : o[n] = t[n], o), i), i;
13
13
  }
14
14
  function x(t, e) {
15
- return Object.keys(t).filter((o) => t[o] != null).reduce((o, s) => {
16
- if (e.has(s)) {
17
- const l = e.get(s);
15
+ return Object.keys(t).filter((o) => t[o] != null).reduce((o, n) => {
16
+ if (e.has(n)) {
17
+ const l = e.get(n);
18
18
  if (typeof l == "string")
19
- o[l] = t[s];
19
+ o[l] = t[n];
20
20
  else {
21
- const d = l(s, t[s], t);
21
+ const d = l(n, t[n], t);
22
22
  Object.assign(o, d);
23
23
  }
24
24
  } else
25
- o[s] = t[s];
25
+ o[n] = t[n];
26
26
  return o;
27
27
  }, {});
28
28
  }
@@ -31,69 +31,69 @@ function z(t, e, i = /* @__PURE__ */ new Map()) {
31
31
  return x(o, i);
32
32
  }
33
33
  function H(t = {}) {
34
- function e(n, c, r, a) {
34
+ function e(s, c, r, a) {
35
35
  if (typeof r == "number")
36
- return a[n].length === r;
36
+ return a[s].length === r;
37
37
  if (typeof r == "object") {
38
38
  const p = Object.keys(r)[0], h = r[p];
39
39
  if (p === "not")
40
- return Number(a[n].length) !== Number(h);
40
+ return Number(a[s].length) !== Number(h);
41
41
  if (p === "moreThan")
42
- return Number(a[n].length) >= Number(h);
42
+ return Number(a[s].length) >= Number(h);
43
43
  if (p === "lessThan")
44
- return Number(a[n].length) <= Number(h);
44
+ return Number(a[s].length) <= Number(h);
45
45
  }
46
46
  return !1;
47
47
  }
48
- function i(n, c, r, a) {
49
- return a[n] && a[n].propertyValue && String(a[n].propertyValue.value) === String(r);
48
+ function i(s, c, r, a) {
49
+ return a[s] && a[s].propertyValue && String(a[s].propertyValue.value) === String(r);
50
50
  }
51
51
  const o = /* @__PURE__ */ new Map([
52
52
  ["length", e],
53
53
  ["getProperty", i]
54
54
  ]);
55
- Object.keys(t).reduce((n, c) => (n.set(c, t[c]), n), o);
56
- function s(n, c) {
57
- const r = n;
58
- return typeof c == "number" ? [{ target: r, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: r, operator: "getProperty", param: n, value: !!c }] : typeof c == "object" ? Object.keys(c).map((a) => {
55
+ Object.keys(t).reduce((s, c) => (s.set(c, t[c]), s), o);
56
+ function n(s, c) {
57
+ const r = s;
58
+ return typeof c == "number" ? [{ target: r, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: r, operator: "getProperty", param: s, value: !!c }] : typeof c == "object" ? Object.keys(c).map((a) => {
59
59
  if (a === "length")
60
60
  return { target: r, operator: "length", param: null, value: c[a] };
61
61
  const p = a, h = c[a];
62
62
  return { target: r, operator: "getProperty", param: p, value: h };
63
63
  }) : [];
64
64
  }
65
- function l(n) {
66
- return Object.keys(n).reduce((r, a) => {
67
- const p = s(a, n[a]);
65
+ function l(s) {
66
+ return Object.keys(s).reduce((r, a) => {
67
+ const p = n(a, s[a]);
68
68
  return r.push(...p), r;
69
69
  }, []);
70
70
  }
71
- function d(n, c) {
72
- if (o.has(n.operator)) {
73
- const r = o.get(n.operator);
74
- return r && r(n.target, n.param, n.value, c) || !1;
71
+ function d(s, c) {
72
+ if (o.has(s.operator)) {
73
+ const r = o.get(s.operator);
74
+ return r && r(s.target, s.param, s.value, c) || !1;
75
75
  }
76
76
  return !1;
77
77
  }
78
- function f(n, c) {
79
- return l(n).reduce((p, h) => p && d(h, c), !0);
78
+ function f(s, c) {
79
+ return l(s).reduce((p, h) => p && d(h, c), !0);
80
80
  }
81
- function y(n, c) {
82
- const r = Object.keys(n), a = r.includes("allOf"), p = r.includes("anyOf"), h = a || p, A = (h ? n[h ? a ? "allOf" : "anyOf" : "allOf"] : [n]).map((D) => f(D, c));
81
+ function g(s, c) {
82
+ const r = Object.keys(s), a = r.includes("allOf"), p = r.includes("anyOf"), h = a || p, A = (h ? s[h ? a ? "allOf" : "anyOf" : "allOf"] : [s]).map((D) => f(D, c));
83
83
  return a ? !A.includes(!1) : A.includes(!0);
84
84
  }
85
- return { parseValueSchema: y };
85
+ return { parseValueSchema: g };
86
86
  }
87
87
  const L = {}, G = {};
88
88
  H();
89
- function J(t, e, i = /* @__PURE__ */ new Map(), o = (d, f, y) => f, s = {}, l = (d) => d) {
90
- return V[e.title] = e, B[e.title] = o, L[e.title] = s, G[e.title] = l, (d = {}) => {
91
- const f = z(d, e, i), y = Object.keys(t).reduce((n, c) => (n[c] = t[c].default, n), {});
92
- return Object.assign(y, f);
89
+ function J(t, e, i = /* @__PURE__ */ new Map(), o = (d, f, g) => f, n = {}, l = (d) => d) {
90
+ return B[e.title] = e, V[e.title] = o, L[e.title] = n, G[e.title] = l, (d = {}) => {
91
+ const f = z(d, e, i), g = Object.keys(t).reduce((s, c) => (s[c] = t[c].default, s), {});
92
+ return Object.assign(g, f);
93
93
  };
94
94
  }
95
95
  const F = /* @__PURE__ */ new Map([
96
- ["appearance", R],
96
+ ["appearance", M],
97
97
  ["size", (t, e) => {
98
98
  const i = {};
99
99
  return e.width && (i.width = Number(e.width)), e.height && (i.height = Number(e.height)), i;
@@ -170,7 +170,7 @@ const F = /* @__PURE__ */ new Map([
170
170
  function ee(t, e, i) {
171
171
  return e;
172
172
  }
173
- const te = "accordion", ne = "A Farris Component", oe = "object", se = {
173
+ const te = "accordion", ne = "A Farris Component", se = "object", oe = {
174
174
  basic: {
175
175
  description: "Basic Infomation",
176
176
  title: "基本信息",
@@ -195,15 +195,15 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
195
195
  }, re = {
196
196
  title: te,
197
197
  description: ne,
198
- type: oe,
199
- categories: se
198
+ type: se,
199
+ categories: oe
200
200
  }, j = {
201
201
  customClass: { type: String, default: "" },
202
202
  height: { type: Number },
203
203
  width: { type: Number },
204
204
  enableFold: { type: Boolean, default: !0 },
205
205
  expanded: { type: Boolean, default: !1 }
206
- }, N = J(j, K, F, ee, re), v = /* @__PURE__ */ C({
206
+ }, N = J(j, K, F, ee, re), b = /* @__PURE__ */ C({
207
207
  name: "FAccordion",
208
208
  props: j,
209
209
  emits: [],
@@ -212,15 +212,15 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
212
212
  height: t.height ? `${t.height}px` : "",
213
213
  width: t.width ? `${t.width}px` : ""
214
214
  }));
215
- S("accordionContext", {
215
+ E("accordionContext", {
216
216
  parentProps: t
217
217
  });
218
218
  const o = m(() => {
219
- const s = t.customClass.split(" "), l = {
219
+ const n = t.customClass.split(" "), l = {
220
220
  "farris-panel": !0,
221
221
  accordion: !0
222
222
  };
223
- return s.reduce((d, f) => (d[f] = !0, d), l), l;
223
+ return n.reduce((d, f) => (d[f] = !0, d), l), l;
224
224
  });
225
225
  return () => u("div", {
226
226
  class: o.value,
@@ -282,15 +282,15 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
282
282
  title: { type: String, default: "" },
283
283
  disabled: { type: Boolean, default: !1 },
284
284
  active: { type: Boolean, default: !1 }
285
- }, k = M(w, fe, F), $ = /* @__PURE__ */ C({
285
+ }, k = S(w, fe, F), $ = /* @__PURE__ */ C({
286
286
  name: "FAccordionItem",
287
287
  props: w,
288
288
  emits: [],
289
289
  setup(t, e) {
290
- const i = I("accordionContext"), o = g(t.title), s = g(t.active);
290
+ const i = I("accordionContext"), o = y(t.title), n = y(t.active);
291
291
  function l() {
292
292
  var r;
293
- t.disabled || !((r = i == null ? void 0 : i.parentProps) != null && r.enableFold) || (s.value = !s.value);
293
+ t.disabled || !((r = i == null ? void 0 : i.parentProps) != null && r.enableFold) || (n.value = !n.value);
294
294
  }
295
295
  function d(r) {
296
296
  l();
@@ -299,21 +299,21 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
299
299
  "f-state-disabled": t.disabled,
300
300
  card: !0,
301
301
  "farris-panel-item": !0,
302
- "f-state-selected": s.value
303
- })), y = m(() => !0), n = m(() => ({
302
+ "f-state-selected": n.value
303
+ })), g = m(() => !0), s = m(() => ({
304
304
  "f-icon": !0,
305
- "f-accordion-collapse": !s.value,
306
- "f-accordion-expand": s.value
305
+ "f-accordion-collapse": !n.value,
306
+ "f-accordion-expand": n.value
307
307
  })), c = m(() => {
308
308
  const r = {
309
309
  transition: "height 0.36s ease 0s",
310
- height: s.value ? `${t.height}px` : 0
310
+ height: n.value ? `${t.height}px` : 0
311
311
  };
312
- return s.value || (r.overflow = "hidden"), r;
312
+ return n.value || (r.overflow = "hidden"), r;
313
313
  });
314
314
  return O(() => {
315
315
  var r;
316
- (r = i == null ? void 0 : i.parentProps) != null && r.expanded && (s.value = !0);
316
+ (r = i == null ? void 0 : i.parentProps) != null && r.expanded && (n.value = !0);
317
317
  }), () => u("div", {
318
318
  class: f.value
319
319
  }, [u("div", {
@@ -321,8 +321,8 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
321
321
  onClick: d
322
322
  }, [u("div", {
323
323
  class: "panel-item-title"
324
- }, [y.value && u("span", null, [o.value]), e.slots.head && e.slots.head(), u("span", {
325
- class: n.value
324
+ }, [g.value && u("span", null, [o.value]), e.slots.head && e.slots.head(), u("span", {
325
+ class: s.value
326
326
  }, null)]), u("div", {
327
327
  class: "panel-item-tool"
328
328
  }, [e.slots.toolbar && e.slots.toolbar()]), u("div", {
@@ -342,16 +342,16 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
342
342
  height: t.height ? `${t.height}px` : "",
343
343
  width: t.width ? `${t.width}px` : ""
344
344
  })), o = m(() => {
345
- const f = t.customClass.split(" "), y = {
345
+ const f = t.customClass.split(" "), g = {
346
346
  "farris-panel": !0,
347
347
  accordion: !0
348
348
  };
349
- return f.reduce((n, c) => (n[c] = !0, n), y), y;
350
- }), s = g(), l = I("design-item-context"), d = T(s, l);
349
+ return f.reduce((s, c) => (s[c] = !0, s), g), g;
350
+ }), n = y(), l = I("design-item-context"), d = T(n, l);
351
351
  return O(() => {
352
- s.value.componentInstance = d;
352
+ n.value.componentInstance = d;
353
353
  }), e.expose(d.value), () => u("div", {
354
- ref: s,
354
+ ref: n,
355
355
  class: o.value,
356
356
  style: i.value
357
357
  }, [e.slots.default && e.slots.default()]);
@@ -361,28 +361,28 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
361
361
  props: w,
362
362
  emits: [],
363
363
  setup(t, e) {
364
- const i = g(t.title), o = g(!1), s = g(!1);
364
+ const i = y(t.title), o = y(!1), n = y(!1);
365
365
  function l() {
366
366
  o.value = !o.value;
367
367
  }
368
- function d(b) {
368
+ function d(v) {
369
369
  l();
370
370
  }
371
371
  const f = m(() => ({
372
- "f-state-disable": s.value,
372
+ "f-state-disable": n.value,
373
373
  card: !0,
374
374
  "farris-panel-item": !0,
375
375
  "f-state-selected": o.value
376
- })), y = m(() => !0), n = m(() => !1), c = m(() => ({
376
+ })), g = m(() => !0), s = m(() => !1), c = m(() => ({
377
377
  "f-icon": !0,
378
378
  "f-accordion-collapse": !o.value,
379
379
  "f-accordion-expand": o.value
380
380
  })), r = m(() => {
381
- const b = {
381
+ const v = {
382
382
  transition: "height 0.36s ease 0s",
383
383
  height: o.value ? `${t.height}px` : 0
384
384
  };
385
- return o.value || (b.overflow = "hidden"), b;
385
+ return o.value || (v.overflow = "hidden"), v;
386
386
  });
387
387
  function a() {
388
388
  return !0;
@@ -405,7 +405,7 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
405
405
  onClick: d
406
406
  }, [u("div", {
407
407
  class: "panel-item-title"
408
- }, [y.value && u("span", null, [i.value]), n.value && e.slots.head && e.slots.head(), u("span", {
408
+ }, [g.value && u("span", null, [i.value]), s.value && e.slots.head && e.slots.head(), u("span", {
409
409
  class: c.value
410
410
  }, null)]), u("div", {
411
411
  class: "panel-item-tool"
@@ -418,21 +418,21 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
418
418
  }, [e.slots.default && e.slots.default()])])]);
419
419
  }
420
420
  });
421
- v.install = (t) => {
422
- t.component(v.name, v), t.component($.name, $);
421
+ b.install = (t) => {
422
+ t.component(b.name, b), t.component($.name, $);
423
423
  };
424
- v.register = (t, e, i, o) => {
425
- t.accordion = v, t["accordion-item"] = $, e.accordion = N, e["accordion-item"] = k;
424
+ b.register = (t, e, i, o) => {
425
+ t.accordion = b, t["accordion-item"] = $, e.accordion = N, e["accordion-item"] = k;
426
426
  };
427
- v.registerDesigner = (t, e, i) => {
427
+ b.registerDesigner = (t, e, i) => {
428
428
  t.accordion = me, t["accordion-item"] = he, e.accordion = N, e["accordion-item"] = k;
429
429
  };
430
430
  export {
431
- v as FAccordion,
431
+ b as FAccordion,
432
432
  $ as FAccordionItem,
433
433
  w as accordionItemProps,
434
434
  k as accordionItemPropsResolver,
435
435
  j as accordionProps,
436
436
  N as accordionPropsResolver,
437
- v as default
437
+ b as default
438
438
  };