@farris/ui-vue 1.7.3 → 1.7.5

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 (392) hide show
  1. package/components/accordion/index.esm.js +312 -61
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +1482 -56
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +752 -8
  6. package/components/binding-selector/index.umd.cjs +1 -1
  7. package/components/button-group/index.esm.js +266 -110
  8. package/components/button-group/index.umd.cjs +1 -1
  9. package/components/calendar/index.esm.js +129 -128
  10. package/components/calendar/index.umd.cjs +2 -2
  11. package/components/code-editor/index.esm.js +237 -169
  12. package/components/code-editor/index.umd.cjs +3 -3
  13. package/components/collection-property-editor/index.esm.js +134 -133
  14. package/components/collection-property-editor/index.umd.cjs +2 -2
  15. package/components/color-picker/index.esm.js +812 -502
  16. package/components/color-picker/index.umd.cjs +1 -1
  17. package/components/combo-list/index.esm.js +323 -291
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +355 -174
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/comment/index.esm.js +134 -133
  22. package/components/comment/index.umd.cjs +2 -2
  23. package/components/common/index.esm.js +1 -1
  24. package/components/common/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +3791 -2760
  26. package/components/component/index.umd.cjs +8 -1
  27. package/components/condition/index.esm.js +2482 -492
  28. package/components/condition/index.umd.cjs +8 -1
  29. package/components/data-view/index.esm.js +1816 -1790
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +1 -1
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.esm.js +2975 -2615
  34. package/components/designer-canvas/index.umd.cjs +1 -1
  35. package/components/drawer/index.esm.js +397 -387
  36. package/components/drawer/index.umd.cjs +2 -2
  37. package/components/dropdown/index.esm.js +373 -124
  38. package/components/dropdown/index.umd.cjs +2 -2
  39. package/components/dynamic-form/index.esm.js +592 -1894
  40. package/components/dynamic-form/index.umd.cjs +1 -1
  41. package/components/dynamic-resolver/index.esm.js +250 -248
  42. package/components/dynamic-resolver/index.umd.cjs +2 -2
  43. package/components/dynamic-view/index.esm.js +427 -466
  44. package/components/dynamic-view/index.umd.cjs +1 -1
  45. package/components/event-parameter/index.esm.js +1 -1
  46. package/components/event-parameter/index.umd.cjs +1 -1
  47. package/components/events-editor/index.esm.js +1890 -1473
  48. package/components/events-editor/index.umd.cjs +3 -3
  49. package/components/expression-editor/index.css +1 -1
  50. package/components/expression-editor/index.esm.js +7371 -2
  51. package/components/expression-editor/index.umd.cjs +427 -1
  52. package/components/fieldset/index.esm.js +1 -1
  53. package/components/fieldset/index.umd.cjs +1 -1
  54. package/components/filter-bar/index.esm.js +2 -3
  55. package/components/filter-bar/index.umd.cjs +2 -2
  56. package/components/filter-condition-editor/index.css +1 -1
  57. package/components/filter-condition-editor/index.esm.js +9044 -425
  58. package/components/filter-condition-editor/index.umd.cjs +427 -1
  59. package/components/html-template/index.esm.js +33 -36
  60. package/components/html-template/index.umd.cjs +1 -1
  61. package/components/image-cropper/index.esm.js +615 -361
  62. package/components/image-cropper/index.umd.cjs +1 -1
  63. package/components/json-editor/index.esm.js +325 -247
  64. package/components/json-editor/index.umd.cjs +1 -1
  65. package/components/language-textbox/index.esm.js +269 -269
  66. package/components/language-textbox/index.umd.cjs +2 -2
  67. package/components/layout/index.esm.js +549 -163
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +837 -39
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.esm.js +427 -646
  72. package/components/list-view/index.umd.cjs +6 -6
  73. package/components/lookup/index.esm.js +3624 -3625
  74. package/components/lookup/index.umd.cjs +1 -1
  75. package/components/menu-lookup/index.esm.js +577 -536
  76. package/components/menu-lookup/index.umd.cjs +6 -6
  77. package/components/nav/index.esm.js +311 -31
  78. package/components/nav/index.umd.cjs +1 -1
  79. package/components/number-range/index.esm.js +1634 -189
  80. package/components/number-range/index.umd.cjs +1 -1
  81. package/components/number-spinner/index.esm.js +82 -82
  82. package/components/number-spinner/index.umd.cjs +1 -1
  83. package/components/order/index.esm.js +1190 -850
  84. package/components/order/index.umd.cjs +6 -6
  85. package/components/page-footer/index.esm.js +331 -48
  86. package/components/page-footer/index.umd.cjs +1 -1
  87. package/components/page-header/index.esm.js +110 -116
  88. package/components/page-header/index.umd.cjs +1 -1
  89. package/components/pagination/index.esm.js +509 -232
  90. package/components/pagination/index.umd.cjs +1 -1
  91. package/components/progress/index.esm.js +353 -148
  92. package/components/progress/index.umd.cjs +3 -3
  93. package/components/property-editor/index.esm.js +157 -153
  94. package/components/property-editor/index.umd.cjs +1 -1
  95. package/components/property-panel/index.esm.js +1825 -871
  96. package/components/property-panel/index.umd.cjs +12 -5
  97. package/components/query-solution/index.css +1 -1
  98. package/components/query-solution/index.esm.js +6075 -3863
  99. package/components/query-solution/index.umd.cjs +13 -6
  100. package/components/response-layout/index.esm.js +1 -1
  101. package/components/response-layout/index.umd.cjs +1 -1
  102. package/components/schema-selector/index.esm.js +2447 -2221
  103. package/components/schema-selector/index.umd.cjs +7 -7
  104. package/components/search-box/index.esm.js +244 -72
  105. package/components/search-box/index.umd.cjs +1 -1
  106. package/components/section/index.esm.js +134 -133
  107. package/components/section/index.umd.cjs +2 -2
  108. package/components/smoke-detector/index.esm.js +179 -8
  109. package/components/smoke-detector/index.umd.cjs +1 -1
  110. package/components/sort-condition-editor/index.css +1 -0
  111. package/components/sort-condition-editor/index.esm.js +9488 -4
  112. package/components/sort-condition-editor/index.umd.cjs +427 -1
  113. package/components/splitter/index.esm.js +1172 -142
  114. package/components/splitter/index.umd.cjs +1 -1
  115. package/components/step/index.esm.js +47 -48
  116. package/components/step/index.umd.cjs +1 -1
  117. package/components/tabs/index.esm.js +490 -419
  118. package/components/tabs/index.umd.cjs +1 -1
  119. package/components/text/index.esm.js +217 -73
  120. package/components/text/index.umd.cjs +1 -1
  121. package/components/textarea/index.esm.js +29 -27
  122. package/components/textarea/index.umd.cjs +2 -2
  123. package/components/transfer/index.esm.js +760 -543
  124. package/components/transfer/index.umd.cjs +5 -5
  125. package/components/tree-grid/index.esm.js +105 -104
  126. package/components/tree-grid/index.umd.cjs +1 -1
  127. package/components/tree-view/index.esm.js +320 -153
  128. package/components/tree-view/index.umd.cjs +1 -1
  129. package/components/uploader/index.esm.js +1125 -634
  130. package/components/uploader/index.umd.cjs +2 -2
  131. package/components/verify-detail/index.esm.js +359 -106
  132. package/components/verify-detail/index.umd.cjs +1 -1
  133. package/components/video/index.esm.js +222 -89
  134. package/components/video/index.umd.cjs +1 -1
  135. package/components/weather/index.esm.js +290 -199
  136. package/components/weather/index.umd.cjs +1 -1
  137. package/designer/data-grid/index.esm.js +5192 -4408
  138. package/designer/data-grid/index.umd.cjs +17 -10
  139. package/designer/drawer/index.esm.js +576 -567
  140. package/designer/drawer/index.umd.cjs +2 -2
  141. package/designer/dynamic-form/index.esm.js +1418 -1154
  142. package/designer/dynamic-form/index.umd.cjs +8 -1
  143. package/designer/farris-designer.all.esm.js +12665 -12117
  144. package/designer/farris-designer.all.umd.cjs +12 -12
  145. package/designer/list-view/index.esm.js +327 -327
  146. package/designer/list-view/index.umd.cjs +3 -3
  147. package/designer/modal/index.esm.js +29 -137
  148. package/designer/modal/index.umd.cjs +1 -1
  149. package/designer/radio-group/index.esm.js +0 -1
  150. package/designer/radio-group/index.umd.cjs +1 -1
  151. package/designer/response-toolbar/index.esm.js +9 -9
  152. package/designer/response-toolbar/index.umd.cjs +1 -1
  153. package/designer/section/index.esm.js +1 -6
  154. package/designer/section/index.umd.cjs +1 -1
  155. package/designer/tabs/index.esm.js +2829 -2540
  156. package/designer/tabs/index.umd.cjs +2 -2
  157. package/designer/tree-grid/index.esm.js +822 -464
  158. package/designer/tree-grid/index.umd.cjs +1 -1
  159. package/farris.all.esm.js +68724 -67244
  160. package/farris.all.umd.cjs +92 -92
  161. package/index.css +1 -1
  162. package/package.json +1 -1
  163. package/types/accordion/src/accordion.props.d.ts +1 -0
  164. package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
  165. package/types/avatar/src/avatar.props.d.ts +1 -0
  166. package/types/binding-selector/index.d.ts +54 -0
  167. package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
  168. package/types/button-group/index.d.ts +0 -15
  169. package/types/button-group/src/button-group.props.d.ts +1 -0
  170. package/types/code-editor/index.d.ts +1 -0
  171. package/types/code-editor/src/code-textbox.component.d.ts +6 -6
  172. package/types/code-editor/src/code-textbox.props.d.ts +2 -0
  173. package/types/color-picker/index.d.ts +15 -0
  174. package/types/color-picker/src/color-picker.props.d.ts +1 -0
  175. package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
  176. package/types/combo-list/src/property-config/combo-list.property-config.d.ts +14 -2
  177. package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
  178. package/types/component/index.d.ts +2 -0
  179. package/types/component/src/component.props.d.ts +8 -0
  180. package/types/components.d.ts +6 -1
  181. package/types/condition/index.d.ts +55 -0
  182. package/types/designer-toolbox/index.d.ts +3 -0
  183. package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
  184. package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
  185. package/types/designer-toolbox/src/types.d.ts +21 -0
  186. package/types/designer.d.ts +13 -0
  187. package/types/dropdown/index.d.ts +6 -27
  188. package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
  189. package/types/dropdown/src/dropdown.props.d.ts +1 -0
  190. package/types/dynamic-form/designer.d.ts +1 -3
  191. package/types/dynamic-form/index.d.ts +3 -9
  192. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
  193. package/types/dynamic-resolver/index.d.ts +0 -3
  194. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
  195. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
  196. package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
  197. package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
  198. package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
  199. package/types/dynamic-view/src/components/maps.d.ts +104 -92
  200. package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
  201. package/types/filter-condition-editor/index.d.ts +9 -0
  202. package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
  203. package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
  204. package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
  205. package/types/flow-canvas/index.d.ts +3 -0
  206. package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → flow-canvas/src/components/flow-node-item.component.d.ts} +1 -1
  207. package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
  208. package/types/flow-canvas/src/composition/types.d.ts +42 -0
  209. package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
  210. package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
  211. package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
  212. package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
  213. package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
  214. package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
  215. package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
  216. package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
  217. package/types/index.d.ts +1 -0
  218. package/types/json-editor/src/json-editor.props.d.ts +1 -0
  219. package/types/layout/index.d.ts +0 -1
  220. package/types/layout/src/components/layout-pane.props.d.ts +1 -0
  221. package/types/layout/src/layout.props.d.ts +1 -0
  222. package/types/list-nav/index.d.ts +5 -24
  223. package/types/list-nav/src/list-nav.props.d.ts +1 -0
  224. package/types/list-view/index.d.ts +0 -1
  225. package/types/list-view/src/composition/use-draggable.d.ts +1 -1
  226. package/types/lookup/index.d.ts +1 -1
  227. package/types/lookup/src/components/popup-container.component.d.ts +3 -3
  228. package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
  229. package/types/modal/designer.d.ts +0 -2
  230. package/types/nav/index.d.ts +20 -24
  231. package/types/nav/src/nav.props.d.ts +1 -0
  232. package/types/number-range/src/number-range.props.d.ts +1 -0
  233. package/types/order/index.d.ts +5 -36
  234. package/types/order/src/designer/order.design.component.d.ts +1 -1
  235. package/types/order/src/order.props.d.ts +1 -0
  236. package/types/page-footer/index.d.ts +2 -0
  237. package/types/page-footer/src/page-footer.props.d.ts +1 -0
  238. package/types/pagination/index.d.ts +0 -15
  239. package/types/pagination/src/pagination.props.d.ts +1 -0
  240. package/types/progress/src/progress.props.d.ts +1 -0
  241. package/types/query-solution/index.d.ts +1 -1
  242. package/types/radio-group/designer.d.ts +1 -2
  243. package/types/search-box/index.d.ts +17 -1
  244. package/types/search-box/src/search-box.props.d.ts +1 -0
  245. package/types/section/designer.d.ts +0 -1
  246. package/types/smoke-detector/index.d.ts +2 -0
  247. package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
  248. package/types/sort-condition-editor/index.d.ts +7 -2
  249. package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
  250. package/types/splitter/index.d.ts +0 -1
  251. package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
  252. package/types/splitter/src/splitter.props.d.ts +1 -0
  253. package/types/tabs/designer.d.ts +0 -1
  254. package/types/tabs/index.d.ts +1 -0
  255. package/types/text/index.d.ts +20 -24
  256. package/types/text/src/text.props.d.ts +1 -0
  257. package/types/transfer/src/transfer.props.d.ts +1 -0
  258. package/types/tree-view/src/tree-view.props.d.ts +1 -0
  259. package/types/uploader/src/uploader.props.d.ts +1 -0
  260. package/types/verify-detail/index.d.ts +5 -58
  261. package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
  262. package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
  263. package/types/video/index.d.ts +20 -24
  264. package/types/video/src/video.props.d.ts +1 -0
  265. package/components/dynamic-form/index.css +0 -1
  266. package/designer/accordion/index.esm.js +0 -257
  267. package/designer/accordion/index.umd.cjs +0 -1
  268. package/designer/avatar/index.esm.js +0 -1460
  269. package/designer/avatar/index.umd.cjs +0 -1
  270. package/designer/binding-selector/index.esm.js +0 -792
  271. package/designer/binding-selector/index.umd.cjs +0 -1
  272. package/designer/button-group/index.esm.js +0 -282
  273. package/designer/button-group/index.umd.cjs +0 -1
  274. package/designer/code-editor/index.esm.js +0 -75
  275. package/designer/code-editor/index.umd.cjs +0 -1
  276. package/designer/color-picker/index.esm.js +0 -1096
  277. package/designer/color-picker/index.umd.cjs +0 -1
  278. package/designer/combo-list/index.esm.js +0 -1095
  279. package/designer/combo-list/index.umd.cjs +0 -1
  280. package/designer/combo-tree/index.esm.js +0 -186
  281. package/designer/combo-tree/index.umd.cjs +0 -1
  282. package/designer/component/index.css +0 -1
  283. package/designer/component/index.esm.js +0 -5002
  284. package/designer/component/index.umd.cjs +0 -1
  285. package/designer/condition/index.esm.js +0 -1899
  286. package/designer/condition/index.umd.cjs +0 -1
  287. package/designer/dropdown/index.esm.js +0 -261
  288. package/designer/dropdown/index.umd.cjs +0 -1
  289. package/designer/expression-editor/index.css +0 -1
  290. package/designer/expression-editor/index.esm.js +0 -7006
  291. package/designer/expression-editor/index.umd.cjs +0 -427
  292. package/designer/filter-condition-editor/index.css +0 -1
  293. package/designer/filter-condition-editor/index.esm.js +0 -4795
  294. package/designer/filter-condition-editor/index.umd.cjs +0 -1
  295. package/designer/html-template/index.esm.js +0 -718
  296. package/designer/html-template/index.umd.cjs +0 -1
  297. package/designer/image-cropper/index.esm.js +0 -765
  298. package/designer/image-cropper/index.umd.cjs +0 -1
  299. package/designer/json-editor/index.esm.js +0 -83
  300. package/designer/json-editor/index.umd.cjs +0 -1
  301. package/designer/language-textbox/index.esm.js +0 -783
  302. package/designer/language-textbox/index.umd.cjs +0 -8
  303. package/designer/layout/index.esm.js +0 -430
  304. package/designer/layout/index.umd.cjs +0 -1
  305. package/designer/list-nav/index.esm.js +0 -802
  306. package/designer/list-nav/index.umd.cjs +0 -1
  307. package/designer/lookup/index.esm.js +0 -2083
  308. package/designer/lookup/index.umd.cjs +0 -1
  309. package/designer/menu-lookup/index.esm.js +0 -46
  310. package/designer/menu-lookup/index.umd.cjs +0 -1
  311. package/designer/nav/index.esm.js +0 -284
  312. package/designer/nav/index.umd.cjs +0 -1
  313. package/designer/number-range/index.esm.js +0 -1616
  314. package/designer/number-range/index.umd.cjs +0 -1
  315. package/designer/order/index.css +0 -1
  316. package/designer/order/index.esm.js +0 -2196
  317. package/designer/order/index.umd.cjs +0 -18
  318. package/designer/page-footer/index.esm.js +0 -290
  319. package/designer/page-footer/index.umd.cjs +0 -1
  320. package/designer/page-header/index.esm.js +0 -1003
  321. package/designer/page-header/index.umd.cjs +0 -1
  322. package/designer/pagination/index.esm.js +0 -591
  323. package/designer/pagination/index.umd.cjs +0 -1
  324. package/designer/progress/index.esm.js +0 -213
  325. package/designer/progress/index.umd.cjs +0 -1
  326. package/designer/search-box/index.esm.js +0 -245
  327. package/designer/search-box/index.umd.cjs +0 -1
  328. package/designer/smoke-detector/index.css +0 -1
  329. package/designer/smoke-detector/index.esm.js +0 -178
  330. package/designer/smoke-detector/index.umd.cjs +0 -1
  331. package/designer/sort-condition-editor/index.esm.js +0 -138
  332. package/designer/sort-condition-editor/index.umd.cjs +0 -1
  333. package/designer/splitter/index.esm.js +0 -1120
  334. package/designer/splitter/index.umd.cjs +0 -1
  335. package/designer/step/index.esm.js +0 -226
  336. package/designer/step/index.umd.cjs +0 -1
  337. package/designer/text/index.esm.js +0 -147
  338. package/designer/text/index.umd.cjs +0 -1
  339. package/designer/transfer/index.esm.js +0 -254
  340. package/designer/transfer/index.umd.cjs +0 -1
  341. package/designer/tree-view/index.esm.js +0 -313
  342. package/designer/tree-view/index.umd.cjs +0 -1
  343. package/designer/uploader/index.esm.js +0 -1190
  344. package/designer/uploader/index.umd.cjs +0 -2
  345. package/designer/verify-detail/index.esm.js +0 -258
  346. package/designer/verify-detail/index.umd.cjs +0 -1
  347. package/designer/video/index.esm.js +0 -136
  348. package/designer/video/index.umd.cjs +0 -1
  349. package/designer/weather/index.css +0 -1
  350. package/designer/weather/index.esm.js +0 -6244
  351. package/designer/weather/index.umd.cjs +0 -14
  352. package/types/accordion/designer.d.ts +0 -44
  353. package/types/avatar/designer.d.ts +0 -29
  354. package/types/button-group/designer.d.ts +0 -29
  355. package/types/code-editor/designer.d.ts +0 -5
  356. package/types/color-picker/designer.d.ts +0 -29
  357. package/types/combo-list/designer.d.ts +0 -29
  358. package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
  359. package/types/combo-tree/designer.d.ts +0 -5
  360. package/types/component/designer.d.ts +0 -35
  361. package/types/condition/designer.d.ts +0 -56
  362. package/types/dropdown/designer.d.ts +0 -6
  363. package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
  364. package/types/expression-editor/designer.d.ts +0 -9
  365. package/types/filter-condition-editor/designer.d.ts +0 -10
  366. package/types/html-template/designer.d.ts +0 -31
  367. package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
  368. package/types/image-cropper/designer.d.ts +0 -4
  369. package/types/json-editor/designer.d.ts +0 -5
  370. package/types/layout/designer.d.ts +0 -32
  371. package/types/list-nav/designer.d.ts +0 -6
  372. package/types/menu-lookup/designer.d.ts +0 -5
  373. package/types/nav/designer.d.ts +0 -6
  374. package/types/number-range/designer.d.ts +0 -29
  375. package/types/order/designer.d.ts +0 -6
  376. package/types/page-footer/designer.d.ts +0 -6
  377. package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
  378. package/types/pagination/designer.d.ts +0 -29
  379. package/types/progress/designer.d.ts +0 -29
  380. package/types/search-box/designer.d.ts +0 -52
  381. package/types/smoke-detector/designer.d.ts +0 -6
  382. package/types/sort-condition-editor/designer.d.ts +0 -9
  383. package/types/splitter/designer.d.ts +0 -32
  384. package/types/step/designer.d.ts +0 -6
  385. package/types/text/designer.d.ts +0 -6
  386. package/types/transfer/designer.d.ts +0 -35
  387. package/types/tree-view/designer.d.ts +0 -29
  388. package/types/uploader/designer.d.ts +0 -141
  389. package/types/verify-detail/designer.d.ts +0 -6
  390. package/types/video/designer.d.ts +0 -6
  391. /package/{designer → components}/condition/index.css +0 -0
  392. /package/{designer → components}/uploader/index.css +0 -0
@@ -1,10 +1,11 @@
1
- import { ref as x, computed as T, watch as D, nextTick as L, reactive as pe, createVNode as u, withDirectives as Z, resolveDirective as he, onMounted as U, vModelText as me, Fragment as ye, defineComponent as ee, shallowRef as N, provide as Te, inject as ge, onUnmounted as we, isVNode as Ce } from "vue";
1
+ import { ref as B, computed as y, watch as M, nextTick as L, reactive as pe, createVNode as u, withDirectives as Z, resolveDirective as he, onMounted as U, vModelText as me, Fragment as ge, defineComponent as ee, shallowRef as E, provide as ye, inject as Te, onUnmounted as Ce, isVNode as we } from "vue";
2
2
  import { getCustomClass as Se, isMobilePhone as te } from "../common/index.esm.js";
3
- import xe from "../capsule/index.esm.js";
4
- import { LocaleService as q } from "../locale/index.esm.js";
3
+ import Be from "../capsule/index.esm.js";
4
+ import { LocaleService as $ } from "../locale/index.esm.js";
5
5
  import Ie from "../response-toolbar/index.esm.js";
6
6
  import Q from "../section/index.esm.js";
7
- const Be = {
7
+ import { BaseControlProperty as xe } from "../property-panel/index.esm.js";
8
+ const Oe = {
8
9
  /** 标签页头部区域的展示类型 */
9
10
  tabType: { type: String, default: "default" },
10
11
  /** 标题自适应宽度 */
@@ -27,196 +28,196 @@ const Be = {
27
28
  /** 控制是否可见 */
28
29
  visible: { type: Boolean, default: !0 }
29
30
  };
30
- function Oe(e, l, s) {
31
- const c = x([]), n = x(e.activeId || "");
32
- let b = "";
33
- const m = x(!0), v = x([]), p = x(!0), r = x(0), h = T(() => {
34
- const o = c.value.find((a) => a.props.id === n.value);
35
- return (o == null ? void 0 : o.props.toolbarPosition) === "inHead";
31
+ function je(e, t, n) {
32
+ const i = B([]), o = B(e.activeId || "");
33
+ let f = "";
34
+ const h = B(!0), v = B([]), d = B(!0), c = B(0), m = y(() => {
35
+ const s = i.value.find((a) => a.props.id === o.value);
36
+ return (s == null ? void 0 : s.props.toolbarPosition) === "inHead";
36
37
  });
37
- function S(o, t = !0) {
38
- const a = o.findIndex((y) => y.props.show !== !1 && !y.props.disabled);
38
+ function S(s, l = !0) {
39
+ const a = s.findIndex((g) => g.props.show !== !1 && !g.props.disabled);
39
40
  if (v.value = [], a !== -1) {
40
- if (n.value = o[a].props.id, !t)
41
+ if (o.value = s[a].props.id, !l)
41
42
  return;
42
- const y = o[a];
43
- y && y.props.toolbar && y.props.toolbar.buttons && y.props.toolbar.buttons.length && (v.value = [...y.props.toolbar.buttons], p.value = y.props.toolbarVisible);
43
+ const g = s[a];
44
+ g && g.props.toolbar && g.props.toolbar.buttons && g.props.toolbar.buttons.length && (v.value = [...g.props.toolbar.buttons], d.value = g.props.toolbarVisible);
44
45
  }
45
46
  }
46
- function w(o) {
47
- n.value = o;
48
- const t = c.value.find((a) => a.props.id === o);
49
- v.value = [], t && t.props.toolbar && t.props.toolbar.buttons && t.props.toolbar.buttons.length && (v.value = [...t.props.toolbar.buttons], p.value = t.props.toolbarVisible), l.emit("update:activeId", o), l.emit("tabChange", {
50
- prevId: b,
51
- nextId: n.value
47
+ function C(s) {
48
+ o.value = s;
49
+ const l = i.value.find((a) => a.props.id === s);
50
+ v.value = [], l && l.props.toolbar && l.props.toolbar.buttons && l.props.toolbar.buttons.length && (v.value = [...l.props.toolbar.buttons], d.value = l.props.toolbarVisible), t.emit("update:activeId", s), t.emit("tabChange", {
51
+ prevId: f,
52
+ nextId: o.value
52
53
  });
53
54
  }
54
- function I(o) {
55
- let t = -1;
56
- if (!n.value) {
57
- if (t = o.findIndex((a) => n.value === a.props.id && a.props.show !== !1 && !a.props.disabled), t > -1)
55
+ function I(s) {
56
+ let l = -1;
57
+ if (!o.value) {
58
+ if (l = s.findIndex((a) => o.value === a.props.id && a.props.show !== !1 && !a.props.disabled), l > -1)
58
59
  return;
59
- b = n.value;
60
+ f = o.value;
60
61
  }
61
- S(o, !1), w(n.value);
62
+ S(s, !1), C(o.value);
62
63
  }
63
- function O(o) {
64
- let t = !1;
65
- if (o) {
66
- const a = c.value.find((y) => y.props.id === o);
67
- t = !a || a.props.show === !1 || a.props.disabled === !0;
64
+ function O(s) {
65
+ let l = !1;
66
+ if (s) {
67
+ const a = i.value.find((g) => g.props.id === s);
68
+ l = !a || a.props.show === !1 || a.props.disabled === !0;
68
69
  }
69
- t ? I(c.value) : (n.value !== o && (b = n.value, n.value = o), w(n.value));
70
+ l ? I(i.value) : (o.value !== s && (f = o.value, o.value = s), C(o.value));
70
71
  }
71
- D(() => e.activeId, (o, t) => {
72
- o !== t && e.activeId !== n.value && O(o);
72
+ M(() => e.activeId, (s, l) => {
73
+ s !== l && e.activeId !== o.value && O(s);
73
74
  });
74
- function d(o) {
75
+ function b(s) {
75
76
  var a;
76
77
  if (e.autoTitleWidth)
77
78
  return;
78
- const t = (a = o.value) == null ? void 0 : a.querySelectorAll(".st-tab-text");
79
- if (!(!t || e.tabType === "pill"))
80
- for (let y = 0; y < t.length; y++) {
81
- const V = t[y].parentNode;
82
- t[y].scrollWidth > V.offsetWidth ? t[y].classList.contains("farris-title-text-custom") || t[y].classList.add("farris-title-text-custom") : t[y].classList.remove("farris-title-text-custom");
79
+ const l = (a = s.value) == null ? void 0 : a.querySelectorAll(".st-tab-text");
80
+ if (!(!l || e.tabType === "pill"))
81
+ for (let g = 0; g < l.length; g++) {
82
+ const R = l[g].parentNode;
83
+ l[g].scrollWidth > R.offsetWidth ? l[g].classList.contains("farris-title-text-custom") || l[g].classList.add("farris-title-text-custom") : l[g].classList.remove("farris-title-text-custom");
83
84
  }
84
85
  }
85
- const f = (o) => {
86
- o.preventDefault(), o.stopPropagation();
86
+ const p = (s) => {
87
+ s.preventDefault(), s.stopPropagation();
87
88
  };
88
- function g(o, t, a = !1) {
89
- const y = c.value.findIndex((V) => V.props.id === t);
90
- c.value = c.value.filter((V) => V.props.id !== t), n.value === t && (b = t, n.value = "", S(c.value)), f(o), L(() => {
91
- r.value++, d(s), a && (m.value = !0), l.emit("tabRemove", {
92
- removeIndex: y,
93
- removeId: t,
94
- activeId: n.value
89
+ function T(s, l, a = !1) {
90
+ const g = i.value.findIndex((R) => R.props.id === l);
91
+ i.value = i.value.filter((R) => R.props.id !== l), o.value === l && (f = l, o.value = "", S(i.value)), p(s), L(() => {
92
+ c.value++, b(n), a && (h.value = !0), t.emit("tabRemove", {
93
+ removeIndex: g,
94
+ removeId: l,
95
+ activeId: o.value
95
96
  });
96
97
  });
97
98
  }
98
- function i(o, t = !0) {
99
- n.value === o && (n.value = "", b = o, O("")), L(() => {
100
- r.value++, t && (m.value = !0);
99
+ function r(s, l = !0) {
100
+ o.value === s && (o.value = "", f = s, O("")), L(() => {
101
+ c.value++, l && (h.value = !0);
101
102
  });
102
103
  }
103
- let B;
104
- function j(o) {
105
- B = o;
104
+ let x;
105
+ function j(s) {
106
+ x = s;
106
107
  }
107
- function H(o) {
108
- n.value !== o && (b = n.value, w(o), B && B());
108
+ function H(s) {
109
+ o.value !== s && (f = o.value, C(s), x && x());
109
110
  }
110
- function M(o) {
111
- c.value.findIndex((a) => a.props.id === o.props.id) === -1 && c.value.push(o), r.value++;
111
+ function V(s) {
112
+ i.value.findIndex((a) => a.props.id === s.props.id) === -1 && i.value.push(s), c.value++;
112
113
  }
113
- function R(o) {
114
- c.value.findIndex((a) => a.props.id === o.props.id) !== -1 && (c.value.forEach((a) => {
115
- a.props.id === o.props.id && (a = o);
116
- }), o.props.id === n.value && h.value, L(() => {
117
- r.value++, d(s);
114
+ function k(s) {
115
+ i.value.findIndex((a) => a.props.id === s.props.id) !== -1 && (i.value.forEach((a) => {
116
+ a.props.id === s.props.id && (a = s);
117
+ }), s.props.id === o.value && m.value, L(() => {
118
+ c.value++, b(n);
118
119
  }));
119
120
  }
120
121
  return {
121
- activeId: n,
122
- addTab: M,
123
- changeTitleStyle: d,
124
- removeTab: g,
122
+ activeId: o,
123
+ addTab: V,
124
+ changeTitleStyle: b,
125
+ removeTab: T,
125
126
  selectTab: H,
126
- tabPages: c,
127
- updateTab: R,
127
+ tabPages: i,
128
+ updateTab: k,
128
129
  toolbarItems: v,
129
- needUpdateNavigationLayout: r,
130
+ needUpdateNavigationLayout: c,
130
131
  checkActiveIdAndSelect: O,
131
- toggleShowTab: i,
132
- hasInHeadClass: h,
132
+ toggleShowTab: r,
133
+ hasInHeadClass: m,
133
134
  setScrollToSelectedTabFunction: j,
134
- toolbarVisible: p
135
+ toolbarVisible: d
135
136
  };
136
137
  }
137
- function je(e, l, s, c, n) {
138
+ function He(e, t, n, i, o) {
138
139
  const {
139
- activeId: b,
140
- removeTab: m,
140
+ activeId: f,
141
+ removeTab: h,
141
142
  selectTab: v
142
- } = n, p = T(() => {
143
- const i = {
143
+ } = o, d = y(() => {
144
+ const r = {
144
145
  "st-tab-text": !0,
145
146
  "text-truncate": e.tabType === "pill" && !e.autoTitleWidth,
146
147
  "farris-title-auto": e.autoTitleWidth
147
148
  };
148
- return Se(i, l.customTitleClass);
149
- }), r = T(() => ({
149
+ return Se(r, t.customTitleClass);
150
+ }), c = y(() => ({
150
151
  "nav-item": !0,
151
- "d-none": l.show !== void 0 ? !l.show : !1,
152
- "f-state-active": l.id === b.value,
153
- "f-state-disabled": l.disabled
154
- })), h = T(() => ({
155
- width: `${l.tabWidth}px`
156
- })), S = T(() => ({
152
+ "d-none": t.show !== void 0 ? !t.show : !1,
153
+ "f-state-active": t.id === f.value,
154
+ "f-state-disabled": t.disabled
155
+ })), m = y(() => ({
156
+ width: `${t.tabWidth}px`
157
+ })), S = y(() => ({
157
158
  "nav-link": !0,
158
159
  "tabs-text-truncate": !0,
159
- active: l.id === b.value,
160
- disabled: l.disabled
161
- })), w = pe({
162
- content: l.title,
160
+ active: t.id === f.value,
161
+ disabled: t.disabled
162
+ })), C = pe({
163
+ content: t.title,
163
164
  overflowShown: !0
164
165
  });
165
166
  function I() {
166
167
  return e.tabType !== "pill" && !e.autoTitleWidth ? Z(u("span", {
167
- class: p.value,
168
- "data-tabid": l.id
169
- }, [l.title]), [[he("tooltip"), w]]) : u("span", {
170
- class: p.value,
171
- "data-tabid": l.id,
172
- title: l.title
173
- }, [l.title]);
174
- }
175
- const O = x(l.removeable);
176
- function d() {
168
+ class: d.value,
169
+ "data-tabid": t.id
170
+ }, [t.title]), [[he("tooltip"), C]]) : u("span", {
171
+ class: d.value,
172
+ "data-tabid": t.id,
173
+ title: t.title
174
+ }, [t.title]);
175
+ }
176
+ const O = B(t.removeable);
177
+ function b() {
177
178
  return O.value ? u("span", {
178
179
  class: "st-drop-close",
179
- onClick: (i) => m(i, l.id)
180
+ onClick: (r) => h(r, t.id)
180
181
  }, [u("i", {
181
182
  class: "f-icon f-icon-close"
182
183
  }, null)]) : "";
183
184
  }
184
- function f(i) {
185
- v(l.id), e.tabType === "one-page" && c.scrollToByPaggId(l.id);
185
+ function p(r) {
186
+ v(t.id), e.tabType === "one-page" && i.scrollToByPaggId(t.id);
186
187
  }
187
- function g() {
188
- return s.slots.title ? u("a", {
188
+ function T() {
189
+ return n.slots.title ? u("a", {
189
190
  class: S.value,
190
- onClick: f,
191
- id: `${l.id}-design-item`
192
- }, [s.slots.title(s), d()]) : l.titleRenderFunction ? u("a", {
191
+ onClick: p,
192
+ id: `${t.id}-design-item`
193
+ }, [n.slots.title(n), b()]) : t.titleRenderFunction ? u("a", {
193
194
  class: S.value,
194
- onClick: f,
195
- id: `${l.id}-design-item`
196
- }, [l.titleRenderFunction(), d()]) : u("a", {
195
+ onClick: p,
196
+ id: `${t.id}-design-item`
197
+ }, [t.titleRenderFunction(), b()]) : u("a", {
197
198
  class: S.value,
198
- onClick: f,
199
- id: `${l.id}-design-item`
200
- }, [I(), d()]);
199
+ onClick: p,
200
+ id: `${t.id}-design-item`
201
+ }, [I(), b()]);
201
202
  }
202
203
  return u("li", {
203
- class: r.value,
204
- style: h.value
205
- }, [g()]);
204
+ class: c.value,
205
+ style: m.value
206
+ }, [T()]);
206
207
  }
207
- function He(e, l, s, c, n) {
208
+ function Pe(e, t, n, i, o) {
208
209
  const {
209
- shouldShowNavigationButtons: b
210
- } = s, {
211
- tabPages: m
212
- } = n, v = T(() => ({
210
+ shouldShowNavigationButtons: f
211
+ } = n, {
212
+ tabPages: h
213
+ } = o, v = y(() => ({
213
214
  spacer: !0,
214
215
  "f-utils-fill": !0,
215
- "spacer-sides-dropdown": b.value
216
- })), p = T(() => ({
216
+ "spacer-sides-dropdown": f.value
217
+ })), d = y(() => ({
217
218
  width: "100%",
218
219
  "justify-content": e.justifyContent
219
- })), r = T(() => ({
220
+ })), c = y(() => ({
220
221
  nav: !0,
221
222
  "farris-nav-tabs": !0,
222
223
  "flex-nowrap": !0,
@@ -227,345 +228,345 @@ function He(e, l, s, c, n) {
227
228
  }));
228
229
  return () => u("div", {
229
230
  class: v.value,
230
- style: p.value
231
+ style: d.value
231
232
  }, [u("ul", {
232
- class: r.value,
233
- ref: l
234
- }, [m.value.map((h) => je(e, h.props, h, c, n))])]);
233
+ class: c.value,
234
+ ref: t
235
+ }, [h.value.map((m) => He(e, m.props, m, i, o))])]);
235
236
  }
236
- function ke(e, l, s, c, n) {
237
- const b = x(), {
238
- shouldShowNavigationButtons: m
239
- } = s, {
237
+ function ke(e, t, n, i, o) {
238
+ const f = B(), {
239
+ shouldShowNavigationButtons: h
240
+ } = n, {
240
241
  activeId: v,
241
- tabPages: p,
242
- selectTab: r
243
- } = n, h = x(v.value), S = T(() => p.value.map((d) => ({
244
- name: d.props.title,
245
- value: d.props.id,
246
- show: d.props.show,
247
- disabled: d.props.disabled
248
- }))), w = T(() => ({
242
+ tabPages: d,
243
+ selectTab: c
244
+ } = o, m = B(v.value), S = y(() => d.value.map((b) => ({
245
+ name: b.props.title,
246
+ value: b.props.id,
247
+ show: b.props.show,
248
+ disabled: b.props.disabled
249
+ }))), C = y(() => ({
249
250
  spacer: !0,
250
251
  "f-utils-fill": !0,
251
- "spacer-sides-dropdown": m.value
252
- })), I = T(() => ({
252
+ "spacer-sides-dropdown": h.value
253
+ })), I = y(() => ({
253
254
  width: "100%",
254
255
  display: "flex",
255
256
  "justify-content": e.justifyContent
256
257
  }));
257
258
  U(() => {
258
- b.value && (l.value = b.value.$el);
259
+ f.value && (t.value = f.value.$el);
259
260
  });
260
- function O(d) {
261
- r(d);
261
+ function O(b) {
262
+ c(b);
262
263
  }
263
- return D(() => v.value, (d) => {
264
- d !== h.value && (h.value = d);
264
+ return M(() => v.value, (b) => {
265
+ b !== m.value && (m.value = b);
265
266
  }, {
266
267
  immediate: !0
267
268
  }), () => u("div", {
268
- class: w.value,
269
+ class: C.value,
269
270
  style: I.value
270
- }, [u(xe, {
271
+ }, [u(Be, {
271
272
  items: S.value,
272
- modelValue: h.value,
273
- "onUpdate:modelValue": (d) => h.value = d,
273
+ modelValue: m.value,
274
+ "onUpdate:modelValue": (b) => m.value = b,
274
275
  onChange: O,
275
- ref: b
276
+ ref: f
276
277
  }, null)]);
277
278
  }
278
- function Re(e, l, s, c) {
279
- const n = x(), {
280
- activeId: b,
281
- removeTab: m,
279
+ function Re(e, t, n, i) {
280
+ const o = B(), {
281
+ activeId: f,
282
+ removeTab: h,
282
283
  tabPages: v,
283
- selectTab: p
284
- } = c, {
285
- hideDropDown: r,
286
- searchTabText: h
287
- } = l, S = 600;
288
- let w = null;
289
- const I = T(() => {
290
- var a, y;
291
- let t = [];
292
- return e.searchBoxVisible ? t = (a = v.value) == null ? void 0 : a.filter((V) => V.props.title.includes(h.value)) : t = (y = v.value) == null ? void 0 : y.slice(), t;
293
- }), O = T(() => ({
284
+ selectTab: d
285
+ } = i, {
286
+ hideDropDown: c,
287
+ searchTabText: m
288
+ } = t, S = 600;
289
+ let C = null;
290
+ const I = y(() => {
291
+ var a, g;
292
+ let l = [];
293
+ return e.searchBoxVisible ? l = (a = v.value) == null ? void 0 : a.filter((R) => R.props.title.includes(m.value)) : l = (g = v.value) == null ? void 0 : g.slice(), l;
294
+ }), O = y(() => ({
294
295
  "dropdown-menu": !0,
295
296
  "tabs-pt28": e.searchBoxVisible,
296
297
  // 未看到样式定义
297
- show: !r.value,
298
- "d-none": r.value
298
+ show: !c.value,
299
+ "d-none": c.value
299
300
  }));
300
- let d;
301
- function f(t) {
302
- d = t;
303
- }
304
- D(r, (t) => {
305
- if (d.value)
306
- if (t)
307
- n.value.style.width = null;
301
+ let b;
302
+ function p(l) {
303
+ b = l;
304
+ }
305
+ M(c, (l) => {
306
+ if (b.value)
307
+ if (l)
308
+ o.value.style.width = null;
308
309
  else {
309
- const a = d.value.querySelector(".farris-tabs-header"), y = d.value.clientHeight - a.clientHeight - 20, W = a.querySelector(".farris-tabs-title").clientWidth - 20;
310
- n.value.style.maxWidth = W + "px", n.value.style.maxHeight = y + "px", L(() => {
310
+ const a = b.value.querySelector(".farris-tabs-header"), g = b.value.clientHeight - a.clientHeight - 20, W = a.querySelector(".farris-tabs-title").clientWidth - 20;
311
+ o.value.style.maxWidth = W + "px", o.value.style.maxHeight = g + "px", L(() => {
311
312
  const {
312
- width: F
313
- } = n.value.getClientRects()[0];
314
- n.value.style.width = F ? F + "px" : null;
313
+ width: D
314
+ } = o.value.getClientRects()[0];
315
+ o.value.style.width = D ? D + "px" : null;
315
316
  });
316
317
  }
317
318
  });
318
- function g(t) {
319
+ function T(l) {
319
320
  return {
320
321
  "dropdown-item": !0,
321
322
  "text-truncate": !0,
322
323
  "px-2": !0,
323
- disabled: t.props.disabled,
324
- active: t.props.id === b.value,
325
- "d-none": t.props.show !== !0
324
+ disabled: l.props.disabled,
325
+ active: l.props.id === f.value,
326
+ "d-none": l.props.show !== !0
326
327
  };
327
328
  }
328
- function i(t) {
329
- t.preventDefault(), t.stopPropagation();
329
+ function r(l) {
330
+ l.preventDefault(), l.stopPropagation();
330
331
  }
331
- function B() {
332
- w && clearTimeout(w);
332
+ function x() {
333
+ C && clearTimeout(C);
333
334
  }
334
335
  function j() {
335
- r.value || (w = setTimeout(() => {
336
- r.value = !0;
336
+ c.value || (C = setTimeout(() => {
337
+ c.value = !0;
337
338
  }, S));
338
339
  }
339
- function H(t, a) {
340
- t.stopPropagation(), a.disabled || p(a.id), r.value = !0;
340
+ function H(l, a) {
341
+ l.stopPropagation(), a.disabled || d(a.id), c.value = !0;
341
342
  }
342
- function M(t, a) {
343
- t.stopPropagation(), m(t, a, !0);
343
+ function V(l, a) {
344
+ l.stopPropagation(), h(l, a, !0);
344
345
  }
345
- function R(t) {
346
- return t.slots.title ? u("a", {
346
+ function k(l) {
347
+ return l.slots.title ? u("a", {
347
348
  class: "dropdown-title",
348
- id: `${t.props.id}-dropdown-item`
349
- }, [t.slots.title(t)]) : t.props.titleRenderFunction ? u("a", {
349
+ id: `${l.props.id}-dropdown-item`
350
+ }, [l.slots.title(l)]) : l.props.titleRenderFunction ? u("a", {
350
351
  class: "dropdown-title",
351
- id: `${t.props.id}-dropdown-item`
352
- }, [t.props.titleRenderFunction()]) : u("a", {
352
+ id: `${l.props.id}-dropdown-item`
353
+ }, [l.props.titleRenderFunction()]) : u("a", {
353
354
  class: "dropdown-title",
354
- id: `${t.props.id}-dropdown-item`
355
- }, [t.props.title]);
355
+ id: `${l.props.id}-dropdown-item`
356
+ }, [l.props.title]);
356
357
  }
357
- function o() {
358
+ function s() {
358
359
  return u("div", {
359
- ref: n,
360
+ ref: o,
360
361
  class: O.value,
361
- onMouseenter: () => B(),
362
+ onMouseenter: () => x(),
362
363
  onMouseleave: () => j()
363
364
  }, [e.searchBoxVisible && u("div", {
364
- onClick: (t) => i(t),
365
+ onClick: (l) => r(l),
365
366
  class: "pb-1 tabs-li-absolute"
366
367
  }, [Z(u("input", {
367
368
  type: "text",
368
369
  class: "form-control",
369
- "onUpdate:modelValue": (t) => h.value = t
370
- }, null), [[me, h.value]]), u("span", {
370
+ "onUpdate:modelValue": (l) => m.value = l
371
+ }, null), [[me, m.value]]), u("span", {
371
372
  class: "f-icon f-icon-page-title-query tabs-icon-search"
372
373
  }, null)]), I.value.length ? u("ul", {
373
374
  class: "tab-dropdown-menu--items flex-fill"
374
- }, [I.value.map((t) => u("li", {
375
- class: g(t),
376
- onClick: (a) => H(a, t.props)
377
- }, [t.props.removeable && t.props.disabled !== !0 && u("span", {
375
+ }, [I.value.map((l) => u("li", {
376
+ class: T(l),
377
+ onClick: (a) => H(a, l.props)
378
+ }, [l.props.removeable && l.props.disabled !== !0 && u("span", {
378
379
  class: "float-right st-drop-close",
379
- onClick: (a) => M(a, t.props.id)
380
+ onClick: (a) => V(a, l.props.id)
380
381
  }, [u("i", {
381
382
  class: "f-icon f-icon-close"
382
- }, null)]), R(t)]))]) : u("div", {
383
+ }, null)]), k(l)]))]) : u("div", {
383
384
  class: "dropdown-no-data"
384
- }, [q.getLocaleValue("tabs.noData")])]);
385
+ }, [$.getLocaleValue("tabs.noData")])]);
385
386
  }
386
387
  return {
387
- renderDropdownMenu: o,
388
- setTabsRef: f
388
+ renderDropdownMenu: s,
389
+ setTabsRef: p
389
390
  };
390
391
  }
391
- function Ve(e, l, s, c) {
392
+ function Me(e, t, n, i) {
392
393
  const {
393
- hideDropDown: n
394
- } = l, {
395
- renderDropdownMenu: b,
396
- setTabsRef: m
397
- } = Re(e, l, s, c), v = x(e.showDropdown);
398
- function p() {
399
- return v.value && u(ye, null, [u("button", {
394
+ hideDropDown: o
395
+ } = t, {
396
+ renderDropdownMenu: f,
397
+ setTabsRef: h
398
+ } = Re(e, t, n, i), v = B(e.showDropdown);
399
+ function d() {
400
+ return v.value && u(ge, null, [u("button", {
400
401
  class: "btn dropdown-toggle-split dropdown-toggle",
401
402
  onClick: () => {
402
- n.value = !1;
403
+ o.value = !1;
403
404
  }
404
- }, null), b()]);
405
+ }, null), f()]);
405
406
  }
406
407
  return {
407
- renderMorePagesButtton: p,
408
- setTabsRef: m
408
+ renderMorePagesButtton: d,
409
+ setTabsRef: h
409
410
  };
410
411
  }
411
- function De(e, l, s, c) {
412
- const n = x(!1), { selectTab: b, tabPages: m, needUpdateNavigationLayout: v, activeId: p } = c, r = 4, h = T(() => ({
412
+ function Ve(e, t, n, i) {
413
+ const o = B(!1), { selectTab: f, tabPages: h, needUpdateNavigationLayout: v, activeId: d } = i, c = 4, m = y(() => ({
413
414
  btn: !0,
414
415
  "sc-nav-btn": !0,
415
416
  "px-1": !0,
416
417
  "sc-nav-lr": !0,
417
- "d-none": !n.value
418
- })), S = T(() => ({
418
+ "d-none": !o.value
419
+ })), S = y(() => ({
419
420
  "btn-group": !0,
420
421
  "sc-nav-btn": !0,
421
422
  dropdown: !0,
422
- "d-none": !n.value
423
- })), w = T(() => ({
423
+ "d-none": !o.value
424
+ })), C = y(() => ({
424
425
  btn: !0,
425
426
  "sc-nav-rg": !0,
426
- "d-none": !n.value
427
+ "d-none": !o.value
427
428
  }));
428
- function I(i, B) {
429
- if (!l.value)
429
+ function I(r, x) {
430
+ if (!t.value)
430
431
  return;
431
- const j = l.value.scrollLeft, H = l.value.scrollWidth - l.value.offsetWidth;
432
- if (B > 0) {
433
- if (l.value.scrollLeft >= H)
432
+ const j = t.value.scrollLeft, H = t.value.scrollWidth - t.value.offsetWidth;
433
+ if (x > 0) {
434
+ if (t.value.scrollLeft >= H)
434
435
  return;
435
- l.value.scrollLeft = j + e.scrollStep + i;
436
- } else if (B < 0) {
437
- if (l.value.scrollLeft <= 0)
436
+ t.value.scrollLeft = j + e.scrollStep + r;
437
+ } else if (x < 0) {
438
+ if (t.value.scrollLeft <= 0)
438
439
  return;
439
- l.value.scrollLeft = j - e.scrollStep - i;
440
+ t.value.scrollLeft = j - e.scrollStep - r;
440
441
  }
441
442
  }
442
- function O(i = -1) {
443
- if (!n.value || !l.value)
443
+ function O(r = -1) {
444
+ if (!o.value || !t.value)
444
445
  return;
445
- i < 0 && (i = m.value.findIndex((R) => R.props.id === p.value));
446
- const B = e.tabType === "pills" ? ".f-capsule-item" : ".nav-item", j = l.value.querySelectorAll(B), { parentElement: H } = l.value, M = j[i];
447
- if (M && H) {
448
- const R = H.getBoundingClientRect().left, o = H.getBoundingClientRect().right, t = M.getBoundingClientRect().left, a = M.getBoundingClientRect().right;
449
- t < R ? I(R - t, -1) : o < a && I(a - o, 1), e.tabType === "one-page" && s.scrollTo(i);
446
+ r < 0 && (r = h.value.findIndex((k) => k.props.id === d.value));
447
+ const x = e.tabType === "pills" ? ".f-capsule-item" : ".nav-item", j = t.value.querySelectorAll(x), { parentElement: H } = t.value, V = j[r];
448
+ if (V && H) {
449
+ const k = H.getBoundingClientRect().left, s = H.getBoundingClientRect().right, l = V.getBoundingClientRect().left, a = V.getBoundingClientRect().right;
450
+ l < k ? I(k - l, -1) : s < a && I(a - s, 1), e.tabType === "one-page" && n.scrollTo(r);
450
451
  }
451
452
  }
452
- function d() {
453
+ function b() {
453
454
  var j;
454
- if (!l.value)
455
+ if (!t.value)
455
456
  return;
456
- const i = l.value, B = (j = l.value) == null ? void 0 : j.parentElement;
457
- n.value = B && i && B.offsetWidth < i.scrollWidth - r, n.value && L(() => {
457
+ const r = t.value, x = (j = t.value) == null ? void 0 : j.parentElement;
458
+ o.value = x && r && x.offsetWidth < r.scrollWidth - c, o.value && L(() => {
458
459
  O();
459
460
  });
460
461
  }
461
- function f(i) {
462
- i.disabled || b(i.id);
462
+ function p(r) {
463
+ r.disabled || f(r.id);
463
464
  }
464
- function g() {
465
+ function T() {
465
466
  ["default", "one-page"].indexOf(e.tabType) > -1 && L(() => {
466
467
  O();
467
468
  });
468
469
  }
469
- return D(v, () => {
470
- d();
470
+ return M(v, () => {
471
+ b();
471
472
  }), {
472
- previousButtonClass: h,
473
+ previousButtonClass: m,
473
474
  nextButtonGroupClass: S,
474
- nextButtonClass: w,
475
+ nextButtonClass: C,
475
476
  scrollTab: I,
476
- selectAndScrollToTab: f,
477
- shouldShowNavigationButtons: n,
478
- updateNavigationLayout: d,
479
- scrollToSelectedTab: g
477
+ selectAndScrollToTab: p,
478
+ shouldShowNavigationButtons: o,
479
+ updateNavigationLayout: b,
480
+ scrollToSelectedTab: T
480
481
  };
481
482
  }
482
- function Me(e, l) {
483
- const { tabPages: s } = l, c = x(""), n = x(!0), b = T(() => e.searchBoxVisible), m = T(() => b.value ? s.value.filter((p) => p.props.title.includes(c.value)) : s.value.slice());
484
- return D(n, (v) => {
485
- v || (c.value = "");
483
+ function Le(e, t) {
484
+ const { tabPages: n } = t, i = B(""), o = B(!0), f = y(() => e.searchBoxVisible), h = y(() => f.value ? n.value.filter((d) => d.props.title.includes(i.value)) : n.value.slice());
485
+ return M(o, (v) => {
486
+ v || (i.value = "");
486
487
  }), {
487
- searchTabText: c,
488
- hideDropDown: n,
489
- shouldShowSearchBox: b,
490
- tabsInDropdownMenu: m
488
+ searchTabText: i,
489
+ hideDropDown: o,
490
+ shouldShowSearchBox: f,
491
+ tabsInDropdownMenu: h
491
492
  };
492
493
  }
493
- function Le(e, l, s) {
494
- const c = ".farris-tab-page", { tabPages: n } = s;
495
- function b(v) {
496
- const p = l.value;
497
- if (p) {
498
- const r = l.value.querySelectorAll(c);
499
- if (r.length > 0) {
500
- const h = r[v], { offsetTop: S } = h, w = S - 32 > 0 ? S - 32 : 0;
501
- p.scrollTop = w;
494
+ function We(e, t, n) {
495
+ const i = ".farris-tab-page", { tabPages: o } = n;
496
+ function f(v) {
497
+ const d = t.value;
498
+ if (d) {
499
+ const c = t.value.querySelectorAll(i);
500
+ if (c.length > 0) {
501
+ const m = c[v], { offsetTop: S } = m, C = S - 32 > 0 ? S - 32 : 0;
502
+ d.scrollTop = C;
502
503
  }
503
504
  }
504
505
  }
505
- function m(v) {
506
- const p = n.value.findIndex((r) => r.props.id === v);
507
- p > -1 && b(p);
506
+ function h(v) {
507
+ const d = o.value.findIndex((c) => c.props.id === v);
508
+ d > -1 && f(d);
508
509
  }
509
- return { scrollTo: b, scrollToByPaggId: m };
510
+ return { scrollTo: f, scrollToByPaggId: h };
510
511
  }
511
- const $ = /* @__PURE__ */ ee({
512
+ const N = /* @__PURE__ */ ee({
512
513
  name: "FTabs",
513
- props: Be,
514
+ props: Oe,
514
515
  emits: ["tabChange", "tabRemove", "update:activeId", "Click"],
515
- setup(e, l) {
516
- const s = x(e.tabType), c = N(), n = te(), b = x(e.customClass), m = N(), v = N(), p = x(), r = Oe(e, l, m), {
517
- activeId: h,
516
+ setup(e, t) {
517
+ const n = B(e.tabType), i = E(), o = te(), f = B(e.customClass), h = E(), v = E(), d = B(), c = je(e, t, h), {
518
+ activeId: m,
518
519
  changeTitleStyle: S,
519
- tabPages: w,
520
+ tabPages: C,
520
521
  addTab: I,
521
522
  updateTab: O,
522
- toolbarItems: d,
523
- checkActiveIdAndSelect: f,
524
- toggleShowTab: g,
525
- hasInHeadClass: i,
526
- toolbarVisible: B
527
- } = r, j = Le(e, v, r), H = De(e, m, j, r), {
528
- previousButtonClass: M,
529
- nextButtonClass: R,
530
- nextButtonGroupClass: o,
531
- scrollTab: t,
523
+ toolbarItems: b,
524
+ checkActiveIdAndSelect: p,
525
+ toggleShowTab: T,
526
+ hasInHeadClass: r,
527
+ toolbarVisible: x
528
+ } = c, j = We(e, v, c), H = Ve(e, h, j, c), {
529
+ previousButtonClass: V,
530
+ nextButtonClass: k,
531
+ nextButtonGroupClass: s,
532
+ scrollTab: l,
532
533
  updateNavigationLayout: a,
533
- scrollToSelectedTab: y
534
+ scrollToSelectedTab: g
534
535
  } = H;
535
- r.setScrollToSelectedTabFunction(y);
536
- const V = Me(e, r), W = He(e, m, H, j, r), F = W, le = ke(e, m, H, j, r), E = /* @__PURE__ */ new Map([["default", W], ["one-page", F], ["pills", le]]);
537
- T(() => {
538
- const C = w.value.find((k) => k.props.id === h.value);
539
- return C == null ? void 0 : C.slots;
536
+ c.setScrollToSelectedTabFunction(g);
537
+ const R = Le(e, c), W = Pe(e, h, H, j, c), D = W, le = ke(e, h, H, j, c), q = /* @__PURE__ */ new Map([["default", W], ["one-page", D], ["pills", le]]);
538
+ y(() => {
539
+ const w = C.value.find((P) => P.props.id === m.value);
540
+ return w == null ? void 0 : w.slots;
540
541
  });
541
- const A = T(() => e.fill), z = (C, k) => {
542
- l.emit("Click", C, k, h.value);
542
+ const A = y(() => e.fill), z = (w, P) => {
543
+ t.emit("Click", w, P, m.value);
543
544
  };
544
- Te("tabs", {
545
- activeId: h,
545
+ ye("tabs", {
546
+ activeId: m,
546
547
  addTab: I,
547
548
  updateTab: O,
548
- tabPages: w,
549
- tabType: s,
549
+ tabPages: C,
550
+ tabType: n,
550
551
  shouldFillParentContaner: A,
551
- toggleShowTab: g,
552
- toolbarVisible: B,
552
+ toggleShowTab: T,
553
+ toolbarVisible: x,
553
554
  clickToolbarItemHandler: z
554
555
  });
555
556
  let G = !1;
556
- const ne = T(() => ({
557
+ const ne = y(() => ({
557
558
  "farris-tabs-header": !0,
558
- "farris-tabs-inHead": i.value,
559
- "farris-tabs-inContent": !i.value,
559
+ "farris-tabs-inHead": r.value,
560
+ "farris-tabs-inContent": !r.value,
560
561
  "farris-tabs-nav-fill": e.tabType === "fill",
561
562
  "farris-tabs-nav-pills": e.tabType === "pills"
562
- })), oe = T(() => {
563
- const C = {
564
- width: i.value && e.titleWidth ? `${e.titleWidth}%` : ""
563
+ })), oe = y(() => {
564
+ const w = {
565
+ width: r.value && e.titleWidth ? `${e.titleWidth}%` : ""
565
566
  };
566
- return C.width && (C.flex = "unset"), C;
567
- }), ae = T(() => {
568
- const C = {
567
+ return w.width && (w.flex = "unset"), w;
568
+ }), se = y(() => {
569
+ const w = {
569
570
  "farris-tabs": !0,
570
571
  "f-tabs-content-fill": A.value,
571
572
  "flex-column": e.position === "top",
@@ -574,99 +575,99 @@ const $ = /* @__PURE__ */ ee({
574
575
  "flex-row-reverse": e.position === "right",
575
576
  "one-page": e.tabType === "one-page"
576
577
  };
577
- return b.value && b.value.split(" ").reduce((k, P) => (k[P] = !0, k), C), C;
578
- }), se = new ResizeObserver((C) => {
579
- C.length && a();
578
+ return f.value && f.value.split(" ").reduce((P, F) => (P[F] = !0, P), w), w;
579
+ }), ae = new ResizeObserver((w) => {
580
+ w.length && a();
580
581
  });
581
582
  function _() {
582
- p.value && !G && (se.observe(p.value), G = !0);
583
+ d.value && !G && (ae.observe(d.value), G = !0);
583
584
  }
584
- D(() => e.visible, (C) => {
585
+ M(() => e.visible, (w) => {
585
586
  L(() => {
586
- w.value.length && f(e.activeId || w.value[0].props.id), a(), S(m), _();
587
+ C.value.length && p(e.activeId || C.value[0].props.id), a(), S(h), _();
587
588
  });
588
- }), D(() => e.autoTitleWidth, (C) => {
589
+ }), M(() => e.autoTitleWidth, (w) => {
589
590
  L(() => {
590
- a(), S(m);
591
+ a(), S(h);
591
592
  });
592
593
  }), U(() => {
593
- e.visible && (w.value.length && f(e.activeId || w.value[0].props.id), L(() => {
594
- a(), S(m);
594
+ e.visible && (C.value.length && p(e.activeId || C.value[0].props.id), L(() => {
595
+ a(), S(h);
595
596
  }), _());
596
597
  });
597
598
  function ie() {
598
599
  return u("button", {
599
- title: q.getLocaleValue("tabs.leftButton"),
600
+ title: $.getLocaleValue("tabs.leftButton"),
600
601
  type: "button",
601
- class: M.value,
602
+ class: V.value,
602
603
  onClick: () => {
603
- t(0, -1);
604
+ l(0, -1);
604
605
  }
605
606
  }, null);
606
607
  }
607
- function ue() {
608
+ function re() {
608
609
  return u("button", {
609
- title: q.getLocaleValue("tabs.rightButton"),
610
+ title: $.getLocaleValue("tabs.rightButton"),
610
611
  type: "button",
611
- class: R.value,
612
+ class: k.value,
612
613
  onClick: () => {
613
- t(0, 1);
614
+ l(0, 1);
614
615
  }
615
616
  }, null);
616
617
  }
617
618
  const {
618
- renderMorePagesButtton: re,
619
+ renderMorePagesButtton: ue,
619
620
  setTabsRef: ce
620
- } = Ve(e, V, H, r);
621
- ce(c);
621
+ } = Me(e, R, H, c);
622
+ ce(i);
622
623
  function de() {
623
- return d.value.length ? u("div", {
624
+ return b.value.length ? u("div", {
624
625
  class: {
625
626
  "farris-tabs-toolbar": !0,
626
- "d-none": !B.value
627
+ "d-none": !x.value
627
628
  }
628
629
  }, [u(Ie, {
629
630
  class: "f-utils-fill",
630
- alignment: i.value ? "right" : "left",
631
- items: d.value,
632
- visible: B.value,
631
+ alignment: r.value ? "right" : "left",
632
+ items: b.value,
633
+ visible: x.value,
633
634
  onClick: z
634
635
  }, null)]) : null;
635
636
  }
636
- const J = E.get(e.tabType) || E.get("default");
637
+ const J = q.get(e.tabType) || q.get("default");
637
638
  function fe() {
638
- var C, k, P, K;
639
- return !n && u("div", {
639
+ var w, P, F, K;
640
+ return !o && u("div", {
640
641
  class: ne.value
641
642
  }, [u("div", {
642
643
  class: "farris-tabs-header-pre"
643
- }, [(k = (C = l.slots).headerPrefix) == null ? void 0 : k.call(C)]), u("div", {
644
+ }, [(P = (w = t.slots).headerPrefix) == null ? void 0 : P.call(w)]), u("div", {
644
645
  class: "farris-tabs-title scroll-tabs",
645
646
  style: oe.value,
646
- ref: p
647
+ ref: d
647
648
  }, [ie(), J && J(), u("div", {
648
- class: o.value
649
- }, [ue(), re()])]), de(), u("div", {
649
+ class: s.value
650
+ }, [re(), ue()])]), de(), u("div", {
650
651
  class: "farris-tabs-header-post"
651
- }, [(K = (P = l.slots).headerSuffix) == null ? void 0 : K.call(P)])]);
652
+ }, [(K = (F = t.slots).headerSuffix) == null ? void 0 : K.call(F)])]);
652
653
  }
653
- const ve = T(() => ({
654
+ const ve = y(() => ({
654
655
  "farris-tabs-content": !0,
655
656
  "f-utils-fill-flex-column": A.value
656
657
  }));
657
658
  function be() {
658
- var C, k;
659
+ var w, P;
659
660
  return u("div", {
660
661
  class: ve.value,
661
662
  ref: v
662
- }, [(k = (C = l.slots).default) == null ? void 0 : k.call(C)]);
663
+ }, [(P = (w = t.slots).default) == null ? void 0 : P.call(w)]);
663
664
  }
664
665
  return () => e.visible ? u("div", {
665
- class: ae.value,
666
- ref: c
666
+ class: se.value,
667
+ ref: i
667
668
  }, [fe(), be()]) : null;
668
669
  }
669
- }), We = {
670
+ }), De = {
670
671
  tabWidth: { type: Number },
671
672
  id: { type: String, default: "" },
672
673
  customTitleClass: { type: String, default: "" },
@@ -690,93 +691,163 @@ const $ = /* @__PURE__ */ ee({
690
691
  titleRenderFunction: { type: Function }
691
692
  };
692
693
  function X(e) {
693
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
694
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !we(e);
694
695
  }
695
696
  const Y = /* @__PURE__ */ ee({
696
697
  name: "FTabPage",
697
- props: We,
698
+ props: De,
698
699
  emits: [],
699
- setup(e, l) {
700
- const s = ge("tabs"), c = te(), n = x(e.show), b = {
701
- slots: l.slots,
700
+ setup(e, t) {
701
+ const n = Te("tabs"), i = te(), o = B(e.show), f = {
702
+ slots: t.slots,
702
703
  props: e
703
- }, m = x((s == null ? void 0 : s.tabType.value) || "default");
704
+ }, h = B((n == null ? void 0 : n.tabType.value) || "default");
704
705
  U(() => {
705
- const f = s == null ? void 0 : s.tabPages.value.findIndex((g) => g.props.id === e.id);
706
- (!f || f === -1) && (s == null || s.addTab(b));
707
- }), we(() => {
706
+ const p = n == null ? void 0 : n.tabPages.value.findIndex((T) => T.props.id === e.id);
707
+ (!p || p === -1) && (n == null || n.addTab(f));
708
+ }), Ce(() => {
708
709
  });
709
- const v = T(() => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.activeId.value)), p = T(() => ({
710
+ const v = y(() => (e == null ? void 0 : e.id) === (n == null ? void 0 : n.activeId.value)), d = y(() => ({
710
711
  display: v.value ? "" : "none"
711
712
  }));
712
- D(() => e, (f) => {
713
- s == null || s.updateTab({
714
- props: f,
715
- slots: l.slots
713
+ M(() => e, (p) => {
714
+ n == null || n.updateTab({
715
+ props: p,
716
+ slots: t.slots
716
717
  });
717
718
  }, {
718
719
  immediate: !0,
719
720
  deep: !0
720
- }), D(() => e.show, (f) => {
721
- s == null || s.toggleShowTab(e.id);
722
- }), D(() => e.toolbarVisible, (f) => {
723
- v.value && s && (s.toolbarVisible.value = f);
721
+ }), M(() => e.show, (p) => {
722
+ n == null || n.toggleShowTab(e.id);
723
+ }), M(() => e.toolbarVisible, (p) => {
724
+ v.value && n && (n.toolbarVisible.value = p);
724
725
  });
725
- function r() {
726
- var g, i;
727
- const f = (i = (g = l.slots).default) == null ? void 0 : i.call(g);
726
+ function c() {
727
+ var T, r;
728
+ const p = (r = (T = t.slots).default) == null ? void 0 : r.call(T);
728
729
  return u(Q, {
729
730
  "main-title": e.title,
730
- class: ["farris-tab-page", n.value ? "" : "f-tab-d-none"]
731
- }, X(f) ? f : {
732
- default: () => [f]
731
+ class: ["farris-tab-page", o.value ? "" : "f-tab-d-none"]
732
+ }, X(p) ? p : {
733
+ default: () => [p]
733
734
  });
734
735
  }
735
- function h(f, g) {
736
- s && (s.activeId.value = e.id, s.clickToolbarItemHandler && s.clickToolbarItemHandler(f, g));
736
+ function m(p, T) {
737
+ n && (n.activeId.value = e.id, n.clickToolbarItemHandler && n.clickToolbarItemHandler(p, T));
737
738
  }
738
739
  function S() {
739
- var g, i;
740
- const f = (i = (g = l.slots).default) == null ? void 0 : i.call(g);
740
+ var T, r;
741
+ const p = (r = (T = t.slots).default) == null ? void 0 : r.call(T);
741
742
  return u(Q, {
742
743
  customClass: "section-in-tab is-mobile",
743
- onClick: h,
744
+ onClick: m,
744
745
  visible: e.show,
745
746
  "main-title": e.title,
746
747
  buttons: e.toolbar.buttons,
747
748
  "button-position": e.toolbar.position || e.toolbarPosition,
748
749
  "buttons-visible": e.toolbarVisible
749
- }, X(f) ? f : {
750
- default: () => [f]
750
+ }, X(p) ? p : {
751
+ default: () => [p]
751
752
  });
752
753
  }
753
- const w = T(() => {
754
- var g;
754
+ const C = y(() => {
755
+ var T;
755
756
  return {
756
757
  "farris-tab-page": !0,
757
- "f-tab-d-none": !n.value,
758
- "f-tab-active": v.value && s && ((g = s.shouldFillParentContaner) == null ? void 0 : g.value)
758
+ "f-tab-d-none": !o.value,
759
+ "f-tab-active": v.value && n && ((T = n.shouldFillParentContaner) == null ? void 0 : T.value)
759
760
  };
760
761
  });
761
762
  function I() {
762
- var g, i;
763
- const f = (i = (g = l.slots).default) == null ? void 0 : i.call(g);
763
+ var T, r;
764
+ const p = (r = (T = t.slots).default) == null ? void 0 : r.call(T);
764
765
  return u("div", {
765
- class: w.value,
766
- style: p.value
767
- }, [f]);
766
+ class: C.value,
767
+ style: d.value
768
+ }, [p]);
768
769
  }
769
- const d = c ? S : (/* @__PURE__ */ new Map([["default", I], ["one-page", r], ["mobile", S]])).get(m.value) || I;
770
- return () => d();
770
+ const b = i ? S : (/* @__PURE__ */ new Map([["default", I], ["one-page", c], ["mobile", S]])).get(h.value) || I;
771
+ return () => b();
771
772
  }
772
773
  });
773
- $.install = (e) => {
774
- e.component($.name, $), e.component(Y.name, Y);
774
+ class ze extends xe {
775
+ constructor(t, n) {
776
+ super(t, n);
777
+ }
778
+ getPropertyConfig(t, n = !1) {
779
+ return this.propertyConfig.categories.basic = this.getBasicPropConfig(t), this.propertyConfig.categories.basic.properties.text = {
780
+ title: "文本",
781
+ type: "string",
782
+ description: "",
783
+ refreshPanelAfterChanged: !0
784
+ }, this.getAppearanceProperties(t, n), this.getbBehaviorConfig(t), this.getEventPropConfig(t), this.propertyConfig;
785
+ }
786
+ getAppearanceProperties(t, n = !1) {
787
+ this.propertyConfig.categories.appearance = {
788
+ title: "外观",
789
+ properties: {
790
+ class: {
791
+ description: "组件的CSS样式",
792
+ title: "class样式",
793
+ visible: !n
794
+ },
795
+ icon: {
796
+ title: "图标",
797
+ type: "string",
798
+ description: ""
799
+ },
800
+ split: {
801
+ title: "下拉按钮分离",
802
+ type: "boolean",
803
+ description: "启用下拉按钮分离,可以单独点击按钮。单独点击下拉按钮展开下拉面板",
804
+ visible: !!(t.children && t.children.length > 0)
805
+ }
806
+ }
807
+ };
808
+ }
809
+ getbBehaviorConfig(t) {
810
+ const n = this.getPropertyEditorParams(t, ["Const", "Variable", "StateMachine", "Expression"], "disabled");
811
+ this.propertyConfig.categories.behavior = this.getBehaviorConfig(t, "", {
812
+ disabled: {
813
+ title: "禁用",
814
+ type: "boolean",
815
+ description: "按钮禁用状态",
816
+ refreshPanelAfterChanged: !0,
817
+ editor: n
818
+ }
819
+ });
820
+ }
821
+ getEventPropConfig(t) {
822
+ const n = [
823
+ {
824
+ label: "onClick",
825
+ name: "点击事件"
826
+ }
827
+ ], i = this, o = i.eventsEditorUtils.formProperties(t, i.viewModelId, n), f = i.createBaseEventProperty(o);
828
+ this.propertyConfig.categories.eventsEditor = {
829
+ title: "事件",
830
+ hideTitle: !0,
831
+ properties: f,
832
+ // 这个属性,标记当属性变更得时候触发重新更新属性
833
+ refreshPanelAfterChanged: !0,
834
+ tabId: "commands",
835
+ tabName: "交互",
836
+ setPropertyRelates(h, v) {
837
+ const d = h.propertyValue;
838
+ delete t[i.viewModelId], d && (d.setPropertyRelates = this.setPropertyRelates, i.eventsEditorUtils.saveRelatedParameters(t, i.viewModelId, d.events, d));
839
+ }
840
+ };
841
+ }
842
+ }
843
+ N.install = (e) => {
844
+ e.component(N.name, N), e.component(Y.name, Y);
775
845
  };
776
846
  export {
777
847
  Y as FTabPage,
778
- $ as FTabs,
779
- $ as default,
780
- We as tabPageProps,
781
- Be as tabsProps
848
+ N as FTabs,
849
+ ze as TabToolbarItemProperty,
850
+ N as default,
851
+ De as tabPageProps,
852
+ Oe as tabsProps
782
853
  };