@farris/ui-vue 1.7.0-beta.4 → 1.7.0

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