@farris/ui-vue 1.1.0 → 1.1.1

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 (1087) hide show
  1. package/farris.all.esm.js +36212 -34520
  2. package/farris.all.umd.cjs +26 -0
  3. package/package.json +2 -3
  4. package/style.css +1 -1
  5. package/accordion/index.esm.js +0 -530
  6. package/accordion/index.umd.js +0 -1
  7. package/accordion/package.json +0 -8
  8. package/avatar/index.esm.js +0 -478
  9. package/avatar/index.umd.js +0 -1
  10. package/avatar/package.json +0 -8
  11. package/border-editor/index.esm.js +0 -5223
  12. package/border-editor/index.umd.js +0 -3
  13. package/border-editor/package.json +0 -8
  14. package/border-editor/style.css +0 -1
  15. package/button/index.esm.js +0 -825
  16. package/button/index.umd.js +0 -1
  17. package/button/package.json +0 -8
  18. package/button-edit/index.esm.js +0 -1807
  19. package/button-edit/index.umd.js +0 -1
  20. package/button-edit/package.json +0 -8
  21. package/calculator/index.esm.js +0 -315
  22. package/calculator/index.umd.js +0 -1
  23. package/calculator/package.json +0 -8
  24. package/calendar/index.esm.js +0 -1110
  25. package/calendar/index.umd.js +0 -1
  26. package/calendar/package.json +0 -8
  27. package/capsule/index.esm.js +0 -518
  28. package/capsule/index.umd.js +0 -1
  29. package/capsule/package.json +0 -8
  30. package/checkbox/index.esm.js +0 -489
  31. package/checkbox/index.umd.js +0 -1
  32. package/checkbox/package.json +0 -8
  33. package/color-picker/index.esm.js +0 -2081
  34. package/color-picker/index.umd.js +0 -3
  35. package/color-picker/package.json +0 -8
  36. package/combo-list/index.esm.js +0 -2931
  37. package/combo-list/index.umd.js +0 -1
  38. package/combo-list/package.json +0 -8
  39. package/combo-tree/index.esm.js +0 -20799
  40. package/combo-tree/index.umd.js +0 -16
  41. package/combo-tree/package.json +0 -8
  42. package/combo-tree/style.css +0 -1
  43. package/common/index.esm.js +0 -1656
  44. package/common/index.umd.js +0 -1
  45. package/common/package.json +0 -8
  46. package/component/index.esm.js +0 -1022
  47. package/component/index.umd.js +0 -1
  48. package/component/package.json +0 -8
  49. package/condition/index.esm.js +0 -43141
  50. package/condition/index.umd.js +0 -19
  51. package/condition/package.json +0 -8
  52. package/condition/style.css +0 -1
  53. package/content-container/index.esm.js +0 -1139
  54. package/content-container/index.umd.js +0 -1
  55. package/content-container/package.json +0 -8
  56. package/data-grid/index.esm.js +0 -43296
  57. package/data-grid/index.umd.js +0 -19
  58. package/data-grid/package.json +0 -8
  59. package/data-grid/style.css +0 -1
  60. package/data-view/index.esm.js +0 -43195
  61. package/data-view/index.umd.js +0 -19
  62. package/data-view/package.json +0 -8
  63. package/data-view/style.css +0 -1
  64. package/date-picker/index.esm.js +0 -4865
  65. package/date-picker/index.umd.js +0 -1
  66. package/date-picker/package.json +0 -8
  67. package/designer/src/composition/dom-entity.d.ts +0 -545
  68. package/discussion-editor/index.esm.js +0 -3788
  69. package/discussion-editor/index.umd.js +0 -3
  70. package/discussion-editor/package.json +0 -8
  71. package/discussion-editor/style.css +0 -1
  72. package/discussion-list/index.esm.js +0 -111
  73. package/discussion-list/index.umd.js +0 -1
  74. package/discussion-list/package.json +0 -8
  75. package/discussion-list/style.css +0 -1
  76. package/dropdown/index.esm.js +0 -645
  77. package/dropdown/index.umd.js +0 -1
  78. package/dropdown/package.json +0 -8
  79. package/dynamic-form/index.esm.js +0 -43136
  80. package/dynamic-form/index.umd.js +0 -19
  81. package/dynamic-form/package.json +0 -8
  82. package/dynamic-form/style.css +0 -1
  83. package/dynamic-resolver/index.esm.js +0 -103
  84. package/dynamic-resolver/index.umd.js +0 -1
  85. package/dynamic-resolver/package.json +0 -8
  86. package/dynamic-view/index.esm.js +0 -43176
  87. package/dynamic-view/index.umd.js +0 -19
  88. package/dynamic-view/package.json +0 -8
  89. package/dynamic-view/style.css +0 -1
  90. package/enum-editor/index.esm.js +0 -2612
  91. package/enum-editor/index.umd.js +0 -1
  92. package/enum-editor/package.json +0 -8
  93. package/events-editor/index.esm.js +0 -1600
  94. package/events-editor/index.umd.js +0 -1
  95. package/events-editor/package.json +0 -8
  96. package/events-editor/style.css +0 -1
  97. package/farris.all.umd.js +0 -26
  98. package/field-selector/index.esm.js +0 -44391
  99. package/field-selector/index.umd.js +0 -19
  100. package/field-selector/package.json +0 -8
  101. package/field-selector/style.css +0 -1
  102. package/filter-bar/index.esm.js +0 -926
  103. package/filter-bar/index.umd.js +0 -1
  104. package/filter-bar/package.json +0 -8
  105. package/image-cropper/index.esm.js +0 -1121
  106. package/image-cropper/index.umd.js +0 -1
  107. package/image-cropper/package.json +0 -8
  108. package/input-group/index.esm.js +0 -831
  109. package/input-group/index.umd.js +0 -1
  110. package/input-group/package.json +0 -8
  111. package/layout/index.esm.js +0 -834
  112. package/layout/index.umd.js +0 -1
  113. package/layout/package.json +0 -8
  114. package/list-nav/index.esm.js +0 -1145
  115. package/list-nav/index.umd.js +0 -1
  116. package/list-nav/package.json +0 -8
  117. package/list-view/index.esm.js +0 -1191
  118. package/list-view/index.umd.js +0 -1
  119. package/list-view/package.json +0 -8
  120. package/loading/index.esm.js +0 -142
  121. package/loading/index.umd.js +0 -8
  122. package/loading/package.json +0 -8
  123. package/locale/index.esm.js +0 -1868
  124. package/locale/index.umd.js +0 -1
  125. package/locale/package.json +0 -8
  126. package/message-box/index.esm.js +0 -578
  127. package/message-box/index.umd.js +0 -1
  128. package/message-box/package.json +0 -8
  129. package/modal/index.esm.js +0 -218
  130. package/modal/index.umd.js +0 -1
  131. package/modal/package.json +0 -8
  132. package/nav/index.esm.js +0 -1728
  133. package/nav/index.umd.js +0 -3
  134. package/nav/package.json +0 -8
  135. package/notify/index.esm.js +0 -258
  136. package/notify/index.umd.js +0 -1
  137. package/notify/package.json +0 -8
  138. package/order/index.esm.js +0 -4151
  139. package/order/index.umd.js +0 -1
  140. package/order/package.json +0 -8
  141. package/page-footer/index.esm.js +0 -1356
  142. package/page-footer/index.umd.js +0 -1
  143. package/page-footer/package.json +0 -8
  144. package/page-header/index.esm.js +0 -2141
  145. package/page-header/index.umd.js +0 -1
  146. package/page-header/package.json +0 -8
  147. package/pagination/index.esm.js +0 -1565
  148. package/pagination/index.umd.js +0 -1
  149. package/pagination/package.json +0 -8
  150. package/popover/index.esm.js +0 -224
  151. package/popover/index.umd.js +0 -1
  152. package/popover/package.json +0 -8
  153. package/progress/index.esm.js +0 -668
  154. package/progress/index.umd.js +0 -3
  155. package/progress/package.json +0 -8
  156. package/property-panel/index.esm.js +0 -43139
  157. package/property-panel/index.umd.js +0 -19
  158. package/property-panel/package.json +0 -8
  159. package/property-panel/style.css +0 -1
  160. package/radio-group/index.esm.js +0 -448
  161. package/radio-group/index.umd.js +0 -1
  162. package/radio-group/package.json +0 -8
  163. package/rate/index.esm.js +0 -612
  164. package/rate/index.umd.js +0 -1
  165. package/rate/package.json +0 -8
  166. package/response-layout/index.esm.js +0 -483
  167. package/response-layout/index.umd.js +0 -1
  168. package/response-layout/package.json +0 -8
  169. package/response-layout-editor/index.esm.js +0 -3780
  170. package/response-layout-editor/index.umd.js +0 -1
  171. package/response-layout-editor/package.json +0 -8
  172. package/response-layout-editor/style.css +0 -1
  173. package/response-toolbar/index.esm.js +0 -1526
  174. package/response-toolbar/index.umd.js +0 -1
  175. package/response-toolbar/package.json +0 -8
  176. package/search-box/index.esm.js +0 -456
  177. package/search-box/index.umd.js +0 -1
  178. package/search-box/package.json +0 -8
  179. package/section/index.esm.js +0 -2201
  180. package/section/index.umd.js +0 -1
  181. package/section/package.json +0 -8
  182. package/smoke-detector/index.esm.js +0 -383
  183. package/smoke-detector/index.umd.js +0 -1
  184. package/smoke-detector/package.json +0 -8
  185. package/smoke-detector/style.css +0 -1
  186. package/spacing-editor/index.esm.js +0 -3484
  187. package/spacing-editor/index.umd.js +0 -1
  188. package/spacing-editor/package.json +0 -8
  189. package/spacing-editor/style.css +0 -1
  190. package/splitter/index.esm.js +0 -842
  191. package/splitter/index.umd.js +0 -1
  192. package/splitter/package.json +0 -8
  193. package/splitter/style.css +0 -1
  194. package/step/index.esm.js +0 -553
  195. package/step/index.umd.js +0 -1
  196. package/step/package.json +0 -8
  197. package/switch/index.esm.js +0 -447
  198. package/switch/index.umd.js +0 -1
  199. package/switch/package.json +0 -8
  200. package/tabs/index.esm.js +0 -4688
  201. package/tabs/index.umd.js +0 -1
  202. package/tabs/package.json +0 -8
  203. package/tags/index.esm.js +0 -810
  204. package/tags/index.umd.js +0 -1
  205. package/tags/package.json +0 -8
  206. package/text/index.esm.js +0 -366
  207. package/text/index.umd.js +0 -1
  208. package/text/package.json +0 -8
  209. package/time-picker/index.esm.js +0 -2147
  210. package/time-picker/index.umd.js +0 -1
  211. package/time-picker/package.json +0 -8
  212. package/tooltip/index.esm.js +0 -260
  213. package/tooltip/index.umd.js +0 -1
  214. package/tooltip/package.json +0 -8
  215. package/transfer/index.esm.js +0 -1180
  216. package/transfer/index.umd.js +0 -1
  217. package/transfer/package.json +0 -8
  218. package/tree-grid/index.esm.js +0 -44354
  219. package/tree-grid/index.umd.js +0 -19
  220. package/tree-grid/package.json +0 -8
  221. package/tree-grid/style.css +0 -1
  222. package/tree-view/index.esm.js +0 -19597
  223. package/tree-view/index.umd.js +0 -16
  224. package/tree-view/package.json +0 -8
  225. package/tree-view/style.css +0 -1
  226. package/types/accordion/index.d.ts +0 -27
  227. package/types/accordion/src/accordion.component.d.ts +0 -6
  228. package/types/accordion/src/accordion.props.d.ts +0 -19
  229. package/types/accordion/src/components/accordion-item.component.d.ts +0 -6
  230. package/types/accordion/src/components/accordion-item.props.d.ts +0 -19
  231. package/types/accordion/src/designer/accordion-item.design.component.d.ts +0 -6
  232. package/types/accordion/src/designer/accordion.design.component.d.ts +0 -6
  233. package/types/accordion/src/schema/schema-mapper.d.ts +0 -2
  234. package/types/accordion/src/schema/schema-resolver.d.ts +0 -2
  235. package/types/avatar/index.d.ts +0 -25
  236. package/types/avatar/src/avatar.component.d.ts +0 -6
  237. package/types/avatar/src/avatar.props.d.ts +0 -19
  238. package/types/avatar/src/composition/types.d.ts +0 -31
  239. package/types/avatar/src/composition/use-image.d.ts +0 -19
  240. package/types/avatar/src/designer/avatar.design.component.d.ts +0 -6
  241. package/types/avatar/src/schema/schema-mapper.d.ts +0 -2
  242. package/types/avatar/src/schema/schema-resolver.d.ts +0 -2
  243. package/types/border-editor/index.d.ts +0 -23
  244. package/types/border-editor/src/border-editor.component.d.ts +0 -6
  245. package/types/border-editor/src/border-editor.props.d.ts +0 -3
  246. package/types/border-editor/src/components/border-editor-basic.component.d.ts +0 -5
  247. package/types/border-editor/src/components/border-editor-radius.component.d.ts +0 -5
  248. package/types/button/index.d.ts +0 -27
  249. package/types/button/src/button-group.component.d.ts +0 -6
  250. package/types/button/src/button-group.props.d.ts +0 -20
  251. package/types/button/src/button.component.d.ts +0 -42
  252. package/types/button/src/button.props.d.ts +0 -53
  253. package/types/button/src/components/button-group-dropdown-menu.component.d.ts +0 -6
  254. package/types/button/src/components/button-group-dropdown.component.d.ts +0 -5
  255. package/types/button/src/composition/types.d.ts +0 -35
  256. package/types/button/src/composition/use-button.d.ts +0 -19
  257. package/types/button/src/composition/use-icon.d.ts +0 -3
  258. package/types/button/src/composition/use-popup.d.ts +0 -19
  259. package/types/button/src/designer/button-group.design.component.d.ts +0 -6
  260. package/types/button/src/schema/schema-mapper.d.ts +0 -2
  261. package/types/button/src/schema/schema-resolver.d.ts +0 -2
  262. package/types/button-edit/index.d.ts +0 -25
  263. package/types/button-edit/src/button-edit.component.d.ts +0 -6
  264. package/types/button-edit/src/button-edit.props.d.ts +0 -21
  265. package/types/button-edit/src/components/button-group.component.d.ts +0 -3
  266. package/types/button-edit/src/components/popup-container.component.d.ts +0 -4
  267. package/types/button-edit/src/components/text-edit.component.d.ts +0 -4
  268. package/types/button-edit/src/composition/types.d.ts +0 -128
  269. package/types/button-edit/src/composition/use-button.d.ts +0 -19
  270. package/types/button-edit/src/composition/use-clear.d.ts +0 -19
  271. package/types/button-edit/src/composition/use-popup.d.ts +0 -4
  272. package/types/button-edit/src/composition/use-text-box.d.ts +0 -19
  273. package/types/button-edit/src/designer/button-edit.design.component.d.ts +0 -6
  274. package/types/button-edit/src/schema/schema-mapper.d.ts +0 -2
  275. package/types/button-edit/src/schema/schema-resolver.d.ts +0 -2
  276. package/types/calculator/index.d.ts +0 -23
  277. package/types/calculator/src/calculator.component.d.ts +0 -8
  278. package/types/calculator/src/calculator.props.d.ts +0 -23
  279. package/types/calculator/src/composition/use-calculator.d.ts +0 -26
  280. package/types/calendar/index.d.ts +0 -23
  281. package/types/calendar/src/calendar.props.d.ts +0 -4
  282. package/types/calendar/src/components/day/day-view.props.d.ts +0 -34
  283. package/types/calendar/src/components/header/header.props.d.ts +0 -24
  284. package/types/calendar/src/components/month/month-view.props.d.ts +0 -69
  285. package/types/calendar/src/components/week/week-view.component.d.ts +0 -106
  286. package/types/calendar/src/components/week/week-view.props.d.ts +0 -51
  287. package/types/calendar/src/composition/types.d.ts +0 -57
  288. package/types/calendar/src/composition/use-calendar.d.ts +0 -2
  289. package/types/calendar/src/composition/use-compare.d.ts +0 -2
  290. package/types/calendar/src/composition/use-date.d.ts +0 -2
  291. package/types/calendar/src/composition/use-event.d.ts +0 -30
  292. package/types/calendar/src/composition/use-month.d.ts +0 -2
  293. package/types/calendar/src/schema/schema-mapper.d.ts +0 -2
  294. package/types/calendar/src/schema/schema-resolver.d.ts +0 -2
  295. package/types/calendar/src/types/calendar.d.ts +0 -13
  296. package/types/calendar/src/types/common.d.ts +0 -32
  297. package/types/calendar/src/types/month-view.d.ts +0 -23
  298. package/types/calendar/src/types/month.d.ts +0 -20
  299. package/types/calendar/src/types/schedule.d.ts +0 -35
  300. package/types/capsule/index.d.ts +0 -10
  301. package/types/capsule/src/capsule.props.d.ts +0 -39
  302. package/types/capsule/src/schema/schema-mapper.d.ts +0 -2
  303. package/types/capsule/src/schema/schema-resolver.d.ts +0 -2
  304. package/types/checkbox/index.d.ts +0 -25
  305. package/types/checkbox/src/checkbox-group.component.d.ts +0 -6
  306. package/types/checkbox/src/checkbox-group.props.d.ts +0 -19
  307. package/types/checkbox/src/checkbox.props.d.ts +0 -44
  308. package/types/checkbox/src/composition/types.d.ts +0 -46
  309. package/types/checkbox/src/composition/use-checkbox-group.d.ts +0 -19
  310. package/types/checkbox/src/designer/checkbox-group.design.component.d.ts +0 -6
  311. package/types/checkbox/src/schema/schema-mapper.d.ts +0 -2
  312. package/types/checkbox/src/schema/schema-resolver.d.ts +0 -2
  313. package/types/color-picker/index.d.ts +0 -24
  314. package/types/color-picker/src/color-picker.component.d.ts +0 -6
  315. package/types/color-picker/src/color-picker.props.d.ts +0 -22
  316. package/types/color-picker/src/composition/class/base-color.class.d.ts +0 -3
  317. package/types/color-picker/src/composition/class/cmyk.class.d.ts +0 -21
  318. package/types/color-picker/src/composition/class/colors-table.class.d.ts +0 -154
  319. package/types/color-picker/src/composition/class/control.class.d.ts +0 -47
  320. package/types/color-picker/src/composition/class/helper.functions.d.ts +0 -4
  321. package/types/color-picker/src/composition/class/hsla.class.d.ts +0 -20
  322. package/types/color-picker/src/composition/class/hsva.class.d.ts +0 -21
  323. package/types/color-picker/src/composition/class/rgba.class.d.ts +0 -21
  324. package/types/color-picker/src/composition/component/alpha.d.ts +0 -34
  325. package/types/color-picker/src/composition/component/hue.d.ts +0 -40
  326. package/types/color-picker/src/composition/component/preset.d.ts +0 -43
  327. package/types/color-picker/src/composition/component/props/alpha.props.d.ts +0 -16
  328. package/types/color-picker/src/composition/component/props/hue.props.d.ts +0 -19
  329. package/types/color-picker/src/composition/component/props/preset.props.d.ts +0 -20
  330. package/types/color-picker/src/composition/component/props/sv-panel.props.d.ts +0 -20
  331. package/types/color-picker/src/composition/component/sv-panel.d.ts +0 -43
  332. package/types/color-picker/src/designer/color-picker.design.component.d.ts +0 -6
  333. package/types/color-picker/src/schema/schema-mapper.d.ts +0 -2
  334. package/types/color-picker/src/schema/schema-resolver.d.ts +0 -2
  335. package/types/combo-list/index.d.ts +0 -25
  336. package/types/combo-list/src/combo-list.props.d.ts +0 -59
  337. package/types/combo-list/src/components/list-container.props.d.ts +0 -65
  338. package/types/combo-list/src/composition/types.d.ts +0 -11
  339. package/types/combo-list/src/composition/use-data-source.d.ts +0 -3
  340. package/types/combo-list/src/designer/combo-list.design.component.d.ts +0 -6
  341. package/types/combo-list/src/schema/schema-mapper.d.ts +0 -2
  342. package/types/combo-list/src/schema/schema-resolver.d.ts +0 -2
  343. package/types/combo-tree/index.d.ts +0 -23
  344. package/types/combo-tree/src/combo-tree.props.d.ts +0 -58
  345. package/types/combo-tree/src/components/tree-container.props.d.ts +0 -60
  346. package/types/combo-tree/src/composition/types.d.ts +0 -11
  347. package/types/combo-tree/src/composition/use-data-source.d.ts +0 -3
  348. package/types/common/date/date-converter.d.ts +0 -9
  349. package/types/common/index.d.ts +0 -5
  350. package/types/common/text-box/composition/use-clear.d.ts +0 -3
  351. package/types/common/text-box/composition/use-text-box.d.ts +0 -18
  352. package/types/common/types.d.ts +0 -50
  353. package/types/component/index.d.ts +0 -26
  354. package/types/component/src/component.props.d.ts +0 -4
  355. package/types/component/src/designer/use-designer-rules.d.ts +0 -3
  356. package/types/component/src/schema/schema-mapper.d.ts +0 -2
  357. package/types/component/src/schema/schema-resolver.d.ts +0 -2
  358. package/types/condition/index.d.ts +0 -28
  359. package/types/condition/src/composition/condition-value/checkbox-value.d.ts +0 -14
  360. package/types/condition/src/composition/condition-value/combo-lookup-value.d.ts +0 -20
  361. package/types/condition/src/composition/condition-value/date-picker-value.d.ts +0 -26
  362. package/types/condition/src/composition/condition-value/date-range-value.d.ts +0 -19
  363. package/types/condition/src/composition/condition-value/datetime-picker-value.d.ts +0 -14
  364. package/types/condition/src/composition/condition-value/dropdown-value.d.ts +0 -19
  365. package/types/condition/src/composition/condition-value/input-group-value.d.ts +0 -22
  366. package/types/condition/src/composition/condition-value/lookup-value.d.ts +0 -22
  367. package/types/condition/src/composition/condition-value/month-picker-value.d.ts +0 -16
  368. package/types/condition/src/composition/condition-value/month-range-value.d.ts +0 -19
  369. package/types/condition/src/composition/condition-value/number-range-value.d.ts +0 -22
  370. package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +0 -14
  371. package/types/condition/src/composition/condition-value/radio-group-value.d.ts +0 -14
  372. package/types/condition/src/composition/condition-value/text-value.d.ts +0 -14
  373. package/types/condition/src/composition/condition-value/types.d.ts +0 -10
  374. package/types/condition/src/composition/types.d.ts +0 -45
  375. package/types/condition/src/composition/use-compare.d.ts +0 -40
  376. package/types/condition/src/composition/use-condition-value.d.ts +0 -2
  377. package/types/condition/src/composition/use-field-config.d.ts +0 -4
  378. package/types/condition/src/composition/use-selection.d.ts +0 -4
  379. package/types/condition/src/composition/use-size.d.ts +0 -4
  380. package/types/condition/src/condition-fields.component.d.ts +0 -96
  381. package/types/condition/src/condition-list.component.d.ts +0 -96
  382. package/types/condition/src/condition.props.d.ts +0 -65
  383. package/types/condition/src/types.d.ts +0 -153
  384. package/types/content-container/index.d.ts +0 -26
  385. package/types/content-container/src/content-container.props.d.ts +0 -4
  386. package/types/content-container/src/designer/use-designer-rules.d.ts +0 -3
  387. package/types/content-container/src/schema/schema-mapper.d.ts +0 -2
  388. package/types/content-container/src/schema/schema-resolver.d.ts +0 -2
  389. package/types/data-grid/index.d.ts +0 -26
  390. package/types/data-grid/src/composition/types.d.ts +0 -301
  391. package/types/data-grid/src/composition/use-column.d.ts +0 -20
  392. package/types/data-grid/src/composition/use-data-view.d.ts +0 -29
  393. package/types/data-grid/src/data-grid.props.d.ts +0 -517
  394. package/types/data-grid/src/designer/use-designer-rules.d.ts +0 -3
  395. package/types/data-grid/src/schema/column-resolver.d.ts +0 -3
  396. package/types/data-grid/src/schema/schema-mapper.d.ts +0 -2
  397. package/types/data-grid/src/schema/schema-resolver.d.ts +0 -2
  398. package/types/data-view/components/column-filter/boolean-filter-editor.component.d.ts +0 -2
  399. package/types/data-view/components/column-filter/column-filter-container.component.d.ts +0 -19
  400. package/types/data-view/components/column-filter/date-filter-editor.component.d.ts +0 -2
  401. package/types/data-view/components/column-filter/enum-filter-editor.component.d.ts +0 -3
  402. package/types/data-view/components/column-filter/list-filter-editor.component.d.ts +0 -2
  403. package/types/data-view/components/column-filter/numeric-filter-editor.component.d.ts +0 -2
  404. package/types/data-view/components/column-filter/text-filter-editor.component.d.ts +0 -3
  405. package/types/data-view/components/column-header/column-header-handler.component.d.ts +0 -20
  406. package/types/data-view/components/column-setting/column-setting-icon.component.d.ts +0 -20
  407. package/types/data-view/components/editors/commands.component.d.ts +0 -17
  408. package/types/data-view/components/editors/date-picker.component.d.ts +0 -17
  409. package/types/data-view/components/editors/text-area-editor.component.d.ts +0 -2
  410. package/types/data-view/components/editors/text-editor.component.d.ts +0 -17
  411. package/types/data-view/components/filter-panel/filter-panel.component.d.ts +0 -4
  412. package/types/data-view/components/group-panel/group-panel.component.d.ts +0 -4
  413. package/types/data-view/components/mask/grid-mask.component.d.ts +0 -3
  414. package/types/data-view/components/pagination/data-grid-pagination.component.d.ts +0 -4
  415. package/types/data-view/components/scrollbar/horizontal-scrollbar.component.d.ts +0 -20
  416. package/types/data-view/components/scrollbar/vertical-scrollbar.component.d.ts +0 -20
  417. package/types/data-view/components/sidebar/data-grid-sidebar.component.d.ts +0 -20
  418. package/types/data-view/components/summary/data-grid-summary.component.d.ts +0 -4
  419. package/types/data-view/composition/appearance/use-cell-position.d.ts +0 -18
  420. package/types/data-view/composition/appearance/use-data-view-conainer-style.d.ts +0 -2
  421. package/types/data-view/composition/appearance/use-hierarchy-style.d.ts +0 -6
  422. package/types/data-view/composition/column/use-column-filter.d.ts +0 -3
  423. package/types/data-view/composition/column/use-column.d.ts +0 -2
  424. package/types/data-view/composition/column/use-command-column.d.ts +0 -2
  425. package/types/data-view/composition/column/use-drag-column.d.ts +0 -3
  426. package/types/data-view/composition/column/use-fit-column.d.ts +0 -18
  427. package/types/data-view/composition/column/use-group-column.d.ts +0 -20
  428. package/types/data-view/composition/column/use-resize.d.ts +0 -18
  429. package/types/data-view/composition/data/use-data-view.d.ts +0 -2
  430. package/types/data-view/composition/data/use-group-data.d.ts +0 -2
  431. package/types/data-view/composition/data/use-hierarchy-data.d.ts +0 -3
  432. package/types/data-view/composition/filter/use-filter-history.d.ts +0 -2
  433. package/types/data-view/composition/filter/use-filter.d.ts +0 -2
  434. package/types/data-view/composition/hierarchy/use-cascade.d.ts +0 -3
  435. package/types/data-view/composition/hierarchy/use-hierarchy.d.ts +0 -2
  436. package/types/data-view/composition/hierarchy/use-select-hierarchy-item.d.ts +0 -4
  437. package/types/data-view/composition/hierarchy/use-toggle-hierarchy-item.d.ts +0 -3
  438. package/types/data-view/composition/hierarchy/use-tree-node-icon.d.ts +0 -4
  439. package/types/data-view/composition/types.d.ts +0 -732
  440. package/types/data-view/composition/use-edit.d.ts +0 -17
  441. package/types/data-view/composition/use-row.d.ts +0 -18
  442. package/types/data-view/composition/use-selection.d.ts +0 -18
  443. package/types/data-view/composition/use-sidebar.d.ts +0 -2
  444. package/types/data-view/composition/use-sort.d.ts +0 -2
  445. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -18
  446. package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +0 -2
  447. package/types/data-view/composition/visualization/use-visual-data-cell.d.ts +0 -2
  448. package/types/data-view/composition/visualization/use-visual-data.d.ts +0 -18
  449. package/types/data-view/composition/visualization/use-visual-group-row.d.ts +0 -2
  450. package/types/data-view/composition/visualization/use-visual-summary-row.d.ts +0 -2
  451. package/types/data-view/index.d.ts +0 -39
  452. package/types/date-picker/index.d.ts +0 -31
  453. package/types/date-picker/src/components/calendar/calendar.component.d.ts +0 -168
  454. package/types/date-picker/src/components/calendar/calendar.props.d.ts +0 -94
  455. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +0 -140
  456. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.props.d.ts +0 -81
  457. package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +0 -6
  458. package/types/date-picker/src/components/date-picker-container/date-picker-container.props.d.ts +0 -20
  459. package/types/date-picker/src/components/month/month.component.d.ts +0 -88
  460. package/types/date-picker/src/components/month/month.props.d.ts +0 -57
  461. package/types/date-picker/src/components/year/year.component.d.ts +0 -88
  462. package/types/date-picker/src/components/year/year.props.d.ts +0 -57
  463. package/types/date-picker/src/composition/types.d.ts +0 -103
  464. package/types/date-picker/src/composition/use-calendar.d.ts +0 -2
  465. package/types/date-picker/src/composition/use-compare.d.ts +0 -2
  466. package/types/date-picker/src/composition/use-date.d.ts +0 -17
  467. package/types/date-picker/src/composition/use-disable-date.d.ts +0 -18
  468. package/types/date-picker/src/composition/use-disable-month.d.ts +0 -2
  469. package/types/date-picker/src/composition/use-event.d.ts +0 -45
  470. package/types/date-picker/src/composition/use-mark.d.ts +0 -2
  471. package/types/date-picker/src/composition/use-month.d.ts +0 -2
  472. package/types/date-picker/src/composition/use-number.d.ts +0 -2
  473. package/types/date-picker/src/composition/use-year.d.ts +0 -2
  474. package/types/date-picker/src/date-picker.component.d.ts +0 -6
  475. package/types/date-picker/src/date-picker.props.d.ts +0 -19
  476. package/types/date-picker/src/designer/date-picker.design.component.d.ts +0 -6
  477. package/types/date-picker/src/schema/schema-mapper.d.ts +0 -2
  478. package/types/date-picker/src/schema/schema-resolver.d.ts +0 -2
  479. package/types/date-picker/src/types/calendar.d.ts +0 -30
  480. package/types/date-picker/src/types/common.d.ts +0 -42
  481. package/types/date-picker/src/types/date-model.d.ts +0 -38
  482. package/types/date-picker/src/types/month.d.ts +0 -48
  483. package/types/date-picker/src/types/year.d.ts +0 -24
  484. package/types/designer-canvas/index.d.ts +0 -8
  485. package/types/designer-canvas/src/components/control-tree-view.component.d.ts +0 -88
  486. package/types/designer-canvas/src/components/maps.d.ts +0 -4
  487. package/types/designer-canvas/src/composition/designer-canvas-changed.d.ts +0 -7
  488. package/types/designer-canvas/src/composition/entity/property-entity.d.ts +0 -167
  489. package/types/designer-canvas/src/composition/function/control-tree-view/change-control-tree-node.d.ts +0 -6
  490. package/types/designer-canvas/src/composition/function/control-tree-view/control-tree-builder.d.ts +0 -8
  491. package/types/designer-canvas/src/composition/function/control-tree-view/control-tree-node-builder.d.ts +0 -9
  492. package/types/designer-canvas/src/composition/function/use-designer-component.d.ts +0 -4
  493. package/types/designer-canvas/src/composition/props/control-tree-view.props.d.ts +0 -49
  494. package/types/designer-canvas/src/composition/props/designer-canvas.props.d.ts +0 -3
  495. package/types/designer-canvas/src/composition/props/designer-inner-item.props.d.ts +0 -3
  496. package/types/designer-canvas/src/composition/props/designer-item.props.d.ts +0 -3
  497. package/types/designer-canvas/src/composition/props/designer-placeholder.props.d.ts +0 -7
  498. package/types/designer-canvas/src/composition/props/toolbox.props.d.ts +0 -11
  499. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  500. package/types/designer-canvas/src/composition/types.d.ts +0 -101
  501. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  502. package/types/designer-canvas/src/types.d.ts +0 -79
  503. package/types/discussion-editor/discussion-editor.component.d.ts +0 -121
  504. package/types/discussion-editor/discussion-editor.props.d.ts +0 -69
  505. package/types/discussion-editor/index.d.ts +0 -23
  506. package/types/discussion-editor/src/composition/use-discussion-editor.d.ts +0 -15
  507. package/types/discussion-editor/src/types/interface.d.ts +0 -22
  508. package/types/discussion-list/discussion-list.component.d.ts +0 -70
  509. package/types/discussion-list/discussion-list.props.d.ts +0 -52
  510. package/types/discussion-list/index.d.ts +0 -23
  511. package/types/dropdown/index.d.ts +0 -11
  512. package/types/dropdown/src/components/dropdown.item.props.d.ts +0 -46
  513. package/types/dropdown/src/composition/use-dropdown.d.ts +0 -26
  514. package/types/dropdown/src/designer/dropdown.design.component.d.ts +0 -21
  515. package/types/dropdown/src/dropdown.component.d.ts +0 -21
  516. package/types/dropdown/src/dropdown.item.component.d.ts +0 -76
  517. package/types/dropdown/src/dropdown.props.d.ts +0 -19
  518. package/types/dropdown/src/schema/schema-mapper.d.ts +0 -2
  519. package/types/dropdown/src/schema/schema-resolver.d.ts +0 -2
  520. package/types/dropdown/src/types/types.d.ts +0 -23
  521. package/types/dynamic-form/index.d.ts +0 -14
  522. package/types/dynamic-form/src/component/dynamic-form-group/dynamic-form-group.component.d.ts +0 -6
  523. package/types/dynamic-form/src/component/dynamic-form-group/dynamic-form-group.props.d.ts +0 -4
  524. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +0 -37
  525. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +0 -18
  526. package/types/dynamic-form/src/composition/types.d.ts +0 -6
  527. package/types/dynamic-form/src/composition/use-type-resolver.d.ts +0 -2
  528. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +0 -3
  529. package/types/dynamic-form/src/response-form.props.d.ts +0 -4
  530. package/types/dynamic-form/src/schema/schema-mapper.d.ts +0 -2
  531. package/types/dynamic-form/src/schema/schema-resolver.d.ts +0 -2
  532. package/types/dynamic-form/src/types.d.ts +0 -17
  533. package/types/dynamic-resolver/index.d.ts +0 -4
  534. package/types/dynamic-resolver/src/common/appearance-resolver.d.ts +0 -6
  535. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +0 -5
  536. package/types/dynamic-resolver/src/converter/buttons.converter.d.ts +0 -3
  537. package/types/dynamic-resolver/src/converter/property-editor.converter.d.ts +0 -3
  538. package/types/dynamic-resolver/src/object-expression.d.ts +0 -66
  539. package/types/dynamic-resolver/src/property-config-resolver.d.ts +0 -9
  540. package/types/dynamic-resolver/src/props-resolver.d.ts +0 -2
  541. package/types/dynamic-resolver/src/schema-resolver.d.ts +0 -7
  542. package/types/dynamic-resolver/src/types.d.ts +0 -11
  543. package/types/dynamic-view/index.d.ts +0 -8
  544. package/types/dynamic-view/src/components/maps.d.ts +0 -4
  545. package/types/dynamic-view/src/dynamic-view.props.d.ts +0 -15
  546. package/types/enum-editor/index.d.ts +0 -23
  547. package/types/enum-editor/src/components/enum-editor-buttons.props.d.ts +0 -13
  548. package/types/enum-editor/src/components/enum-editor-table.props.d.ts +0 -29
  549. package/types/enum-editor/src/composition/types.d.ts +0 -4
  550. package/types/enum-editor/src/composition/use-move-data.d.ts +0 -7
  551. package/types/enum-editor/src/enum-editor.props.d.ts +0 -41
  552. package/types/events-editor/index.d.ts +0 -8
  553. package/types/events-editor/src/components/command-list/command-list.props.d.ts +0 -3
  554. package/types/events-editor/src/components/command-source/command-source.props.d.ts +0 -3
  555. package/types/events-editor/src/components/event-list/event-list.props.d.ts +0 -3
  556. package/types/events-editor/src/components/interaction-button/interaction-button.props.d.ts +0 -3
  557. package/types/events-editor/src/components/interaction-item/interaction-item.props.d.ts +0 -3
  558. package/types/events-editor/src/components/parameter-editor/parameter-editor.props.d.ts +0 -3
  559. package/types/events-editor/src/composition/types.d.ts +0 -37
  560. package/types/events-editor/src/composition/use-events-editor-util.d.ts +0 -5
  561. package/types/events-editor/src/composition/use-events.d.ts +0 -4
  562. package/types/events-editor/src/composition/use-interaction.d.ts +0 -4
  563. package/types/events-editor/src/composition/use-methods.d.ts +0 -4
  564. package/types/events-editor/src/events-editor.props.d.ts +0 -3
  565. package/types/events-editor/src/types.d.ts +0 -179
  566. package/types/field-selector/index.d.ts +0 -23
  567. package/types/field-selector/src/field-selector.props.d.ts +0 -121
  568. package/types/filter-bar/index.d.ts +0 -9
  569. package/types/filter-bar/src/components/ellipsis-button.component.d.ts +0 -3
  570. package/types/filter-bar/src/components/filter-item.component.d.ts +0 -5
  571. package/types/filter-bar/src/components/toolbar-component.d.ts +0 -4
  572. package/types/filter-bar/src/composition/types.d.ts +0 -14
  573. package/types/filter-bar/src/filter-bar.props.d.ts +0 -5
  574. package/types/filter-bar/src/schema/schema-mapper.d.ts +0 -2
  575. package/types/filter-bar/src/schema/schema-resolver.d.ts +0 -2
  576. package/types/filter-bar/src/types.d.ts +0 -12
  577. package/types/image-cropper/index.d.ts +0 -25
  578. package/types/image-cropper/src/composition/type.d.ts +0 -44
  579. package/types/image-cropper/src/composition/use-check-aspect-ratio.d.ts +0 -2
  580. package/types/image-cropper/src/composition/use-image-cropper.d.ts +0 -20
  581. package/types/image-cropper/src/composition/use-image-info.d.ts +0 -38
  582. package/types/image-cropper/src/designer/image-cropper.design.component.d.ts +0 -6
  583. package/types/image-cropper/src/image-cropper.component.d.ts +0 -6
  584. package/types/image-cropper/src/image-cropper.props.d.ts +0 -19
  585. package/types/image-cropper/src/schema/schema-mapper.d.ts +0 -2
  586. package/types/image-cropper/src/schema/schema-resolver.d.ts +0 -2
  587. package/types/index.d.ts +0 -20
  588. package/types/input-group/index.d.ts +0 -25
  589. package/types/input-group/src/components/appended-button.component.d.ts +0 -4
  590. package/types/input-group/src/components/extend.component.d.ts +0 -3
  591. package/types/input-group/src/components/text-edit.component.d.ts +0 -5
  592. package/types/input-group/src/composition/types.d.ts +0 -38
  593. package/types/input-group/src/composition/use-appended-button.d.ts +0 -4
  594. package/types/input-group/src/composition/use-clear.d.ts +0 -4
  595. package/types/input-group/src/composition/use-text-box.d.ts +0 -4
  596. package/types/input-group/src/input-group.component.d.ts +0 -6
  597. package/types/input-group/src/input-group.props.d.ts +0 -4
  598. package/types/input-group/src/schema/schema-mapper.d.ts +0 -2
  599. package/types/input-group/src/schema/schema-resolver.d.ts +0 -2
  600. package/types/layout/index.d.ts +0 -11
  601. package/types/layout/src/components/layout-panel.props.d.ts +0 -5
  602. package/types/layout/src/composition/types.d.ts +0 -23
  603. package/types/layout/src/composition/use-resize-handle.d.ts +0 -3
  604. package/types/layout/src/designer/layout-panel-use-designer-rules.d.ts +0 -3
  605. package/types/layout/src/designer/layout-use-designer-rules.d.ts +0 -3
  606. package/types/layout/src/layout.props.d.ts +0 -4
  607. package/types/layout/src/schema/schema-mapper.d.ts +0 -2
  608. package/types/layout/src/schema/schema-resolver.d.ts +0 -2
  609. package/types/list-nav/index.d.ts +0 -25
  610. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  611. package/types/list-nav/src/designer/list-nav.design.component.d.ts +0 -6
  612. package/types/list-nav/src/list-nav.component.d.ts +0 -6
  613. package/types/list-nav/src/list-nav.props.d.ts +0 -19
  614. package/types/list-nav/src/schema/schema-mapper.d.ts +0 -2
  615. package/types/list-nav/src/schema/schema-resolver.d.ts +0 -2
  616. package/types/list-view/index.d.ts +0 -25
  617. package/types/list-view/src/components/header/content-header.component.d.ts +0 -6
  618. package/types/list-view/src/composition/types.d.ts +0 -40
  619. package/types/list-view/src/composition/use-draggable.d.ts +0 -4
  620. package/types/list-view/src/composition/use-hover.d.ts +0 -2
  621. package/types/list-view/src/composition/use-remove.d.ts +0 -4
  622. package/types/list-view/src/composition/use-search.d.ts +0 -5
  623. package/types/list-view/src/composition/use-selection.d.ts +0 -4
  624. package/types/list-view/src/designer/list-view-table.design.component.d.ts +0 -6
  625. package/types/list-view/src/designer/list-view.design.component.d.ts +0 -6
  626. package/types/list-view/src/list-view-table.component.d.ts +0 -6
  627. package/types/list-view/src/list-view-table.props.d.ts +0 -19
  628. package/types/list-view/src/list-view.component.d.ts +0 -6
  629. package/types/list-view/src/list-view.props.d.ts +0 -23
  630. package/types/list-view/src/schema/schema-mapper.d.ts +0 -2
  631. package/types/list-view/src/schema/schema-resolver.d.ts +0 -2
  632. package/types/loading/index.d.ts +0 -23
  633. package/types/loading/src/composition/types.d.ts +0 -24
  634. package/types/loading/src/loading.component.d.ts +0 -61
  635. package/types/loading/src/loading.props.d.ts +0 -49
  636. package/types/loading/src/loading.service.d.ts +0 -4
  637. package/types/locale/src/lib/locale.service.d.ts +0 -26
  638. package/types/locale/src/lib/locales/en-us/avatar.d.ts +0 -7
  639. package/types/locale/src/lib/locales/en-us/batch-edit-dialog.d.ts +0 -15
  640. package/types/locale/src/lib/locales/en-us/collapse.d.ts +0 -4
  641. package/types/locale/src/lib/locales/en-us/combo.d.ts +0 -4
  642. package/types/locale/src/lib/locales/en-us/datagrid.d.ts +0 -103
  643. package/types/locale/src/lib/locales/en-us/discussion-group.d.ts +0 -25
  644. package/types/locale/src/lib/locales/en-us/filter-editor.d.ts +0 -50
  645. package/types/locale/src/lib/locales/en-us/filter-panel.d.ts +0 -25
  646. package/types/locale/src/lib/locales/en-us/footer.d.ts +0 -4
  647. package/types/locale/src/lib/locales/en-us/index.d.ts +0 -568
  648. package/types/locale/src/lib/locales/en-us/language-label.d.ts +0 -8
  649. package/types/locale/src/lib/locales/en-us/list-filter.d.ts +0 -6
  650. package/types/locale/src/lib/locales/en-us/list-view.d.ts +0 -3
  651. package/types/locale/src/lib/locales/en-us/loading.d.ts +0 -3
  652. package/types/locale/src/lib/locales/en-us/lookup-config.d.ts +0 -38
  653. package/types/locale/src/lib/locales/en-us/lookup.d.ts +0 -48
  654. package/types/locale/src/lib/locales/en-us/messager.d.ts +0 -28
  655. package/types/locale/src/lib/locales/en-us/multi-select.d.ts +0 -15
  656. package/types/locale/src/lib/locales/en-us/notify.d.ts +0 -3
  657. package/types/locale/src/lib/locales/en-us/numeric.d.ts +0 -7
  658. package/types/locale/src/lib/locales/en-us/page-walker.d.ts +0 -6
  659. package/types/locale/src/lib/locales/en-us/pagination.d.ts +0 -17
  660. package/types/locale/src/lib/locales/en-us/progress-step.d.ts +0 -3
  661. package/types/locale/src/lib/locales/en-us/query-condition.d.ts +0 -33
  662. package/types/locale/src/lib/locales/en-us/query-solution.d.ts +0 -41
  663. package/types/locale/src/lib/locales/en-us/response-toolbar.d.ts +0 -3
  664. package/types/locale/src/lib/locales/en-us/scrollspy.d.ts +0 -3
  665. package/types/locale/src/lib/locales/en-us/section.d.ts +0 -4
  666. package/types/locale/src/lib/locales/en-us/sidebar.d.ts +0 -3
  667. package/types/locale/src/lib/locales/en-us/sort-editor.d.ts +0 -15
  668. package/types/locale/src/lib/locales/en-us/tabs.d.ts +0 -3
  669. package/types/locale/src/lib/locales/en-us/tag.d.ts +0 -4
  670. package/types/locale/src/lib/locales/en-us/text.d.ts +0 -10
  671. package/types/locale/src/lib/locales/en-us/treetable.d.ts +0 -8
  672. package/types/locale/src/lib/locales/en-us/verify-detail.d.ts +0 -5
  673. package/types/locale/src/lib/locales/index.d.ts +0 -1712
  674. package/types/locale/src/lib/locales/zh-CHT/avatar.d.ts +0 -7
  675. package/types/locale/src/lib/locales/zh-CHT/batch-edit-dialog.d.ts +0 -15
  676. package/types/locale/src/lib/locales/zh-CHT/collapse.d.ts +0 -4
  677. package/types/locale/src/lib/locales/zh-CHT/combo.d.ts +0 -4
  678. package/types/locale/src/lib/locales/zh-CHT/datagrid.d.ts +0 -103
  679. package/types/locale/src/lib/locales/zh-CHT/discussion-group.d.ts +0 -25
  680. package/types/locale/src/lib/locales/zh-CHT/filter-editor.d.ts +0 -50
  681. package/types/locale/src/lib/locales/zh-CHT/filter-panel.d.ts +0 -25
  682. package/types/locale/src/lib/locales/zh-CHT/footer.d.ts +0 -4
  683. package/types/locale/src/lib/locales/zh-CHT/index.d.ts +0 -568
  684. package/types/locale/src/lib/locales/zh-CHT/language-label.d.ts +0 -8
  685. package/types/locale/src/lib/locales/zh-CHT/list-filter.d.ts +0 -6
  686. package/types/locale/src/lib/locales/zh-CHT/list-view.d.ts +0 -3
  687. package/types/locale/src/lib/locales/zh-CHT/loading.d.ts +0 -3
  688. package/types/locale/src/lib/locales/zh-CHT/lookup-config.d.ts +0 -38
  689. package/types/locale/src/lib/locales/zh-CHT/lookup.d.ts +0 -48
  690. package/types/locale/src/lib/locales/zh-CHT/messager.d.ts +0 -28
  691. package/types/locale/src/lib/locales/zh-CHT/multi-select.d.ts +0 -15
  692. package/types/locale/src/lib/locales/zh-CHT/notify.d.ts +0 -3
  693. package/types/locale/src/lib/locales/zh-CHT/numeric.d.ts +0 -7
  694. package/types/locale/src/lib/locales/zh-CHT/page-walker.d.ts +0 -6
  695. package/types/locale/src/lib/locales/zh-CHT/pagination.d.ts +0 -17
  696. package/types/locale/src/lib/locales/zh-CHT/progress-step.d.ts +0 -3
  697. package/types/locale/src/lib/locales/zh-CHT/query-condition.d.ts +0 -33
  698. package/types/locale/src/lib/locales/zh-CHT/query-solution.d.ts +0 -41
  699. package/types/locale/src/lib/locales/zh-CHT/response-toolbar.d.ts +0 -3
  700. package/types/locale/src/lib/locales/zh-CHT/scrollspy.d.ts +0 -3
  701. package/types/locale/src/lib/locales/zh-CHT/section.d.ts +0 -4
  702. package/types/locale/src/lib/locales/zh-CHT/sidebar.d.ts +0 -3
  703. package/types/locale/src/lib/locales/zh-CHT/sort-editor.d.ts +0 -15
  704. package/types/locale/src/lib/locales/zh-CHT/tabs.d.ts +0 -3
  705. package/types/locale/src/lib/locales/zh-CHT/tag.d.ts +0 -4
  706. package/types/locale/src/lib/locales/zh-CHT/text.d.ts +0 -10
  707. package/types/locale/src/lib/locales/zh-CHT/treetable.d.ts +0 -8
  708. package/types/locale/src/lib/locales/zh-CHT/verify-detail.d.ts +0 -5
  709. package/types/locale/src/lib/locales/zh-cn/avatar.d.ts +0 -7
  710. package/types/locale/src/lib/locales/zh-cn/batch-edit-dialog.d.ts +0 -15
  711. package/types/locale/src/lib/locales/zh-cn/collapse.d.ts +0 -4
  712. package/types/locale/src/lib/locales/zh-cn/combo.d.ts +0 -4
  713. package/types/locale/src/lib/locales/zh-cn/datagrid.d.ts +0 -105
  714. package/types/locale/src/lib/locales/zh-cn/discussion-group.d.ts +0 -25
  715. package/types/locale/src/lib/locales/zh-cn/filter-editor.d.ts +0 -50
  716. package/types/locale/src/lib/locales/zh-cn/filter-panel.d.ts +0 -25
  717. package/types/locale/src/lib/locales/zh-cn/footer.d.ts +0 -4
  718. package/types/locale/src/lib/locales/zh-cn/index.d.ts +0 -574
  719. package/types/locale/src/lib/locales/zh-cn/language-label.d.ts +0 -8
  720. package/types/locale/src/lib/locales/zh-cn/list-filter.d.ts +0 -6
  721. package/types/locale/src/lib/locales/zh-cn/list-view.d.ts +0 -3
  722. package/types/locale/src/lib/locales/zh-cn/loading.d.ts +0 -3
  723. package/types/locale/src/lib/locales/zh-cn/lookup-config.d.ts +0 -38
  724. package/types/locale/src/lib/locales/zh-cn/lookup.d.ts +0 -48
  725. package/types/locale/src/lib/locales/zh-cn/messager.d.ts +0 -32
  726. package/types/locale/src/lib/locales/zh-cn/multi-select.d.ts +0 -15
  727. package/types/locale/src/lib/locales/zh-cn/notify.d.ts +0 -3
  728. package/types/locale/src/lib/locales/zh-cn/numeric.d.ts +0 -7
  729. package/types/locale/src/lib/locales/zh-cn/page-walker.d.ts +0 -6
  730. package/types/locale/src/lib/locales/zh-cn/pagination.d.ts +0 -17
  731. package/types/locale/src/lib/locales/zh-cn/progress-step.d.ts +0 -3
  732. package/types/locale/src/lib/locales/zh-cn/query-condition.d.ts +0 -33
  733. package/types/locale/src/lib/locales/zh-cn/query-solution.d.ts +0 -41
  734. package/types/locale/src/lib/locales/zh-cn/response-toolbar.d.ts +0 -3
  735. package/types/locale/src/lib/locales/zh-cn/scrollspy.d.ts +0 -3
  736. package/types/locale/src/lib/locales/zh-cn/section.d.ts +0 -4
  737. package/types/locale/src/lib/locales/zh-cn/sidebar.d.ts +0 -3
  738. package/types/locale/src/lib/locales/zh-cn/sort-editor.d.ts +0 -15
  739. package/types/locale/src/lib/locales/zh-cn/tabs.d.ts +0 -3
  740. package/types/locale/src/lib/locales/zh-cn/tag.d.ts +0 -4
  741. package/types/locale/src/lib/locales/zh-cn/text.d.ts +0 -10
  742. package/types/locale/src/lib/locales/zh-cn/treetable.d.ts +0 -8
  743. package/types/locale/src/lib/locales/zh-cn/verify-detail.d.ts +0 -5
  744. package/types/message-box/index.d.ts +0 -24
  745. package/types/message-box/src/components/message-content/reactive-content.component.d.ts +0 -3
  746. package/types/message-box/src/components/message-content/static-content.component.d.ts +0 -3
  747. package/types/message-box/src/components/message-detail/static-message.component.d.ts +0 -2
  748. package/types/message-box/src/components/reactive-editor/textarea.component.d.ts +0 -3
  749. package/types/message-box/src/composition/types.d.ts +0 -27
  750. package/types/message-box/src/composition/use-copy.d.ts +0 -2
  751. package/types/message-box/src/composition/use-editor.d.ts +0 -4
  752. package/types/message-box/src/composition/use-feedback.d.ts +0 -2
  753. package/types/message-box/src/message-box.component.d.ts +0 -70
  754. package/types/message-box/src/message-box.props.d.ts +0 -54
  755. package/types/modal/index.d.ts +0 -24
  756. package/types/modal/src/modal.props.d.ts +0 -76
  757. package/types/modal/src/modal.service.d.ts +0 -21
  758. package/types/nav/index.d.ts +0 -25
  759. package/types/nav/src/composition/types.d.ts +0 -6
  760. package/types/nav/src/designer/nav.design.component.d.ts +0 -6
  761. package/types/nav/src/nav.component.d.ts +0 -6
  762. package/types/nav/src/nav.props.d.ts +0 -19
  763. package/types/nav/src/schema/schema-mapper.d.ts +0 -2
  764. package/types/nav/src/schema/schema-resolver.d.ts +0 -2
  765. package/types/notify/index.d.ts +0 -26
  766. package/types/notify/src/components/toast.component.d.ts +0 -32
  767. package/types/notify/src/components/toast.props.d.ts +0 -31
  768. package/types/notify/src/notify.component.d.ts +0 -89
  769. package/types/notify/src/notify.props.d.ts +0 -97
  770. package/types/notify/src/notify.service.d.ts +0 -19
  771. package/types/number-range/index.d.ts +0 -25
  772. package/types/number-range/src/components/spinner.component.d.ts +0 -4
  773. package/types/number-range/src/components/text-box.component.d.ts +0 -4
  774. package/types/number-range/src/composition/types.d.ts +0 -56
  775. package/types/number-range/src/composition/use-format.d.ts +0 -4
  776. package/types/number-range/src/composition/use-number.d.ts +0 -4
  777. package/types/number-range/src/composition/use-spinner.d.ts +0 -4
  778. package/types/number-range/src/composition/use-text-box.d.ts +0 -4
  779. package/types/number-range/src/number-range.component.d.ts +0 -6
  780. package/types/number-range/src/number-range.props.d.ts +0 -19
  781. package/types/number-range/src/schema/schema-mapper.d.ts +0 -2
  782. package/types/number-range/src/schema/schema-resolver.d.ts +0 -2
  783. package/types/number-spinner/index.d.ts +0 -25
  784. package/types/number-spinner/src/components/spinner.component.d.ts +0 -4
  785. package/types/number-spinner/src/components/text-box.component.d.ts +0 -4
  786. package/types/number-spinner/src/composition/types.d.ts +0 -58
  787. package/types/number-spinner/src/composition/use-format.d.ts +0 -4
  788. package/types/number-spinner/src/composition/use-number.d.ts +0 -4
  789. package/types/number-spinner/src/composition/use-spinner.d.ts +0 -4
  790. package/types/number-spinner/src/composition/use-text-box.d.ts +0 -4
  791. package/types/number-spinner/src/designer/number-spinner.component.d.ts +0 -6
  792. package/types/number-spinner/src/number-spinner.component.d.ts +0 -6
  793. package/types/number-spinner/src/number-spinner.props.d.ts +0 -19
  794. package/types/number-spinner/src/schema/schema-mapper.d.ts +0 -2
  795. package/types/number-spinner/src/schema/schema-resolver.d.ts +0 -2
  796. package/types/order/index.d.ts +0 -10
  797. package/types/order/src/order.props.d.ts +0 -10
  798. package/types/order/src/schema/schema-mapper.d.ts +0 -2
  799. package/types/order/src/schema/schema-resolver.d.ts +0 -2
  800. package/types/overlay/src/overlay.props.d.ts +0 -33
  801. package/types/overlay/src/overlay.service.d.ts +0 -17
  802. package/types/page-footer/index.d.ts +0 -10
  803. package/types/page-footer/src/page-footer.props.d.ts +0 -4
  804. package/types/page-footer/src/schema/schema-mapper.d.ts +0 -2
  805. package/types/page-footer/src/schema/schema-resolver.d.ts +0 -2
  806. package/types/page-header/index.d.ts +0 -10
  807. package/types/page-header/src/designer/use-designer-rules.d.ts +0 -3
  808. package/types/page-header/src/page-header.props.d.ts +0 -4
  809. package/types/page-header/src/schema/schema-mapper.d.ts +0 -2
  810. package/types/page-header/src/schema/schema-resolver.d.ts +0 -2
  811. package/types/pagination/index.d.ts +0 -25
  812. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +0 -19
  813. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +0 -20
  814. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +0 -20
  815. package/types/pagination/src/components/pages/page-info.component.d.ts +0 -19
  816. package/types/pagination/src/components/pages/page-list.component.d.ts +0 -19
  817. package/types/pagination/src/components/pages/page-number.component.d.ts +0 -20
  818. package/types/pagination/src/composition/types.d.ts +0 -24
  819. package/types/pagination/src/composition/use-pages.d.ts +0 -18
  820. package/types/pagination/src/designer/pagination.design.components.d.ts +0 -6
  821. package/types/pagination/src/pagination.components.d.ts +0 -6
  822. package/types/pagination/src/pagination.props.d.ts +0 -20
  823. package/types/pagination/src/schema/schema-mapper.d.ts +0 -2
  824. package/types/pagination/src/schema/schema-resolver.d.ts +0 -2
  825. package/types/popover/index.d.ts +0 -24
  826. package/types/popover/src/composition/types.d.ts +0 -25
  827. package/types/popover/src/composition/use-host.d.ts +0 -3
  828. package/types/popover/src/composition/use-popup.d.ts +0 -4
  829. package/types/popover/src/composition/use-position.d.ts +0 -4
  830. package/types/popover/src/composition/use-resize.d.ts +0 -4
  831. package/types/popover/src/popover.component.d.ts +0 -112
  832. package/types/popover/src/popover.directive.d.ts +0 -5
  833. package/types/popover/src/popover.props.d.ts +0 -69
  834. package/types/progress/index.d.ts +0 -10
  835. package/types/progress/src/composition/types.d.ts +0 -65
  836. package/types/progress/src/composition/use-format.d.ts +0 -3
  837. package/types/progress/src/composition/use-gradient.d.ts +0 -3
  838. package/types/progress/src/composition/use-progress-status.d.ts +0 -3
  839. package/types/progress/src/composition/use-progress-type.d.ts +0 -3
  840. package/types/progress/src/composition/use-progress.d.ts +0 -3
  841. package/types/progress/src/composition/use-stroke-width.d.ts +0 -3
  842. package/types/progress/src/composition/use-success-percent.d.ts +0 -3
  843. package/types/progress/src/progress.props.d.ts +0 -13
  844. package/types/progress/src/schema/schema-mapper.d.ts +0 -2
  845. package/types/progress/src/schema/schema-resolver.d.ts +0 -2
  846. package/types/property-panel/index.d.ts +0 -24
  847. package/types/property-panel/src/component/property-panel-item-list.component.d.ts +0 -43
  848. package/types/property-panel/src/component/property-panel-item.component.d.ts +0 -25
  849. package/types/property-panel/src/composition/entity/property-entity.d.ts +0 -165
  850. package/types/property-panel/src/composition/props/property-panel-item-list.props.d.ts +0 -38
  851. package/types/property-panel/src/composition/props/property-panel-item.props.d.ts +0 -27
  852. package/types/property-panel/src/composition/props/property-panel.props.d.ts +0 -100
  853. package/types/property-panel/src/composition/type.d.ts +0 -45
  854. package/types/property-panel/src/property-panel.component.d.ts +0 -156
  855. package/types/query-solution/index.d.ts +0 -25
  856. package/types/query-solution/src/composition/types.d.ts +0 -8
  857. package/types/query-solution/src/composition/use-filter.d.ts +0 -19
  858. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +0 -26
  859. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +0 -19
  860. package/types/query-solution/src/designer/query-solution-config/query-solution-config.component.d.ts +0 -6
  861. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +0 -23
  862. package/types/query-solution/src/designer/query-solution-config/schema/schema-mapper.d.ts +0 -2
  863. package/types/query-solution/src/designer/query-solution-config/schema/schema-resolver.d.ts +0 -2
  864. package/types/query-solution/src/designer/query-solution.design.component.d.ts +0 -6
  865. package/types/query-solution/src/query-solution.component.d.ts +0 -6
  866. package/types/query-solution/src/query-solution.d.ts +0 -40
  867. package/types/query-solution/src/query-solution.props.d.ts +0 -19
  868. package/types/query-solution/src/schema/schema-mapper.d.ts +0 -2
  869. package/types/query-solution/src/schema/schema-resolver.d.ts +0 -2
  870. package/types/query-solution/src/solutions.d.ts +0 -1238
  871. package/types/radio-group/index.d.ts +0 -25
  872. package/types/radio-group/src/composition/change-radio.d.ts +0 -19
  873. package/types/radio-group/src/composition/types.d.ts +0 -42
  874. package/types/radio-group/src/designer/radio-group.design.component.d.ts +0 -6
  875. package/types/radio-group/src/radio-group.component.d.ts +0 -6
  876. package/types/radio-group/src/radio-group.props.d.ts +0 -19
  877. package/types/radio-group/src/schema/schema-mapper.d.ts +0 -2
  878. package/types/radio-group/src/schema/schema-resolver.d.ts +0 -2
  879. package/types/rate/index.d.ts +0 -25
  880. package/types/rate/src/designer/rate.design.component.d.ts +0 -6
  881. package/types/rate/src/rate.component.d.ts +0 -6
  882. package/types/rate/src/rate.props.d.ts +0 -19
  883. package/types/rate/src/schema/schema-mapper.d.ts +0 -2
  884. package/types/rate/src/schema/schema-resolver.d.ts +0 -2
  885. package/types/response-layout/index.d.ts +0 -26
  886. package/types/response-layout/src/component/response-layout-item.props.d.ts +0 -4
  887. package/types/response-layout/src/response-layout.props.d.ts +0 -4
  888. package/types/response-layout/src/schema/schema-mapper.d.ts +0 -2
  889. package/types/response-layout/src/schema/schema-resolver.d.ts +0 -2
  890. package/types/response-layout-editor/index.d.ts +0 -23
  891. package/types/response-layout-editor/src/components/field-list/column-width-editor/column-width-editor.props.d.ts +0 -3
  892. package/types/response-layout-editor/src/components/field-list/field-list.props.d.ts +0 -3
  893. package/types/response-layout-editor/src/components/preview/column-width-view/column-width-view.component.d.ts +0 -6
  894. package/types/response-layout-editor/src/components/preview/column-width-view/column-width-view.props.d.ts +0 -3
  895. package/types/response-layout-editor/src/components/preview/preview.component.d.ts +0 -6
  896. package/types/response-layout-editor/src/components/preview/preview.props.d.ts +0 -3
  897. package/types/response-layout-editor/src/components/screen-resolution-selector/screen-resolution-selector.component.d.ts +0 -6
  898. package/types/response-layout-editor/src/components/screen-resolution-selector/screen-resolution-selector.props.d.ts +0 -3
  899. package/types/response-layout-editor/src/response-layout-editor.component.d.ts +0 -6
  900. package/types/response-layout-editor/src/response-layout-editor.props.d.ts +0 -3
  901. package/types/response-layout-editor/src/type.d.ts +0 -4
  902. package/types/response-toolbar/index.d.ts +0 -13
  903. package/types/response-toolbar/src/components/dropdown/toolbar-dropdown-menu.component.d.ts +0 -6
  904. package/types/response-toolbar/src/components/dropdown/toolbar-dropdown.component.d.ts +0 -7
  905. package/types/response-toolbar/src/composition/types.d.ts +0 -9
  906. package/types/response-toolbar/src/composition/use-icon.d.ts +0 -2
  907. package/types/response-toolbar/src/composition/use-toolbar-item.d.ts +0 -2
  908. package/types/response-toolbar/src/response-toolbar.props.d.ts +0 -5
  909. package/types/response-toolbar/src/schema/schema-mapper.d.ts +0 -2
  910. package/types/response-toolbar/src/schema/schema-resolver.d.ts +0 -2
  911. package/types/response-toolbar/src/types/response-toolbar-dropdwon-item.d.ts +0 -13
  912. package/types/response-toolbar/src/types/response-toolbar-group.d.ts +0 -19
  913. package/types/response-toolbar/src/types/response-toolbar-item-base.d.ts +0 -36
  914. package/types/response-toolbar/src/types/response-toolbar-item.d.ts +0 -4
  915. package/types/search-box/index.d.ts +0 -25
  916. package/types/search-box/src/components/search-box-container.props.d.ts +0 -31
  917. package/types/search-box/src/schema/schema-mapper.d.ts +0 -2
  918. package/types/search-box/src/schema/schema-resolver.d.ts +0 -2
  919. package/types/search-box/src/search-box.props.d.ts +0 -4
  920. package/types/section/index.d.ts +0 -25
  921. package/types/section/src/components/toolbar.component.d.ts +0 -3
  922. package/types/section/src/composition/types.d.ts +0 -18
  923. package/types/section/src/composition/use-max-min.d.ts +0 -3
  924. package/types/section/src/designer/section.design.component.d.ts +0 -6
  925. package/types/section/src/designer/use-designer-rules.d.ts +0 -3
  926. package/types/section/src/schema/accordion-resolver.d.ts +0 -3
  927. package/types/section/src/schema/schema-mapper.d.ts +0 -2
  928. package/types/section/src/schema/schema-resolver.d.ts +0 -2
  929. package/types/section/src/schema/toolbar-resolver.d.ts +0 -7
  930. package/types/section/src/section.component.d.ts +0 -6
  931. package/types/section/src/section.props.d.ts +0 -31
  932. package/types/smoke-detector/index.d.ts +0 -10
  933. package/types/smoke-detector/src/schema/schema-mapper.d.ts +0 -2
  934. package/types/smoke-detector/src/schema/schema-resolver.d.ts +0 -2
  935. package/types/smoke-detector/src/smoke-detector.props.d.ts +0 -4
  936. package/types/spacing-editor/index.d.ts +0 -23
  937. package/types/spacing-editor/src/components/spacing-editor-margin.component.d.ts +0 -5
  938. package/types/spacing-editor/src/components/spacing-editor-padding.component.d.ts +0 -5
  939. package/types/spacing-editor/src/spacing-editor.component.d.ts +0 -6
  940. package/types/spacing-editor/src/spacing-editor.props.d.ts +0 -3
  941. package/types/splitter/index.d.ts +0 -10
  942. package/types/splitter/src/components/splitter-pane.props.d.ts +0 -5
  943. package/types/splitter/src/composition/types.d.ts +0 -23
  944. package/types/splitter/src/composition/use-resize-handle.d.ts +0 -3
  945. package/types/splitter/src/composition/use-resize-pane.d.ts +0 -3
  946. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +0 -3
  947. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +0 -3
  948. package/types/splitter/src/schema/splitter-pane-schema-mapper.d.ts +0 -2
  949. package/types/splitter/src/schema/splitter-schema-mapper.d.ts +0 -2
  950. package/types/splitter/src/schema/splitter-schema-resolver.d.ts +0 -2
  951. package/types/splitter/src/splitter.props.d.ts +0 -5
  952. package/types/step/index.d.ts +0 -10
  953. package/types/step/src/schema/schema-mapper.d.ts +0 -2
  954. package/types/step/src/schema/schema-resolver.d.ts +0 -2
  955. package/types/step/src/step.props.d.ts +0 -11
  956. package/types/switch/index.d.ts +0 -25
  957. package/types/switch/src/designer/switch.design.component.d.ts +0 -6
  958. package/types/switch/src/schema/schema-mapper.d.ts +0 -2
  959. package/types/switch/src/schema/schema-resolver.d.ts +0 -2
  960. package/types/switch/src/switch.component.d.ts +0 -6
  961. package/types/switch/src/switch.props.d.ts +0 -20
  962. package/types/tabs/index.d.ts +0 -27
  963. package/types/tabs/src/components/more-pages-button.component.d.ts +0 -5
  964. package/types/tabs/src/components/tab-header-dropdown-menu.component.d.ts +0 -5
  965. package/types/tabs/src/components/tab-header-item.component.d.ts +0 -4
  966. package/types/tabs/src/components/tab-header.component.d.ts +0 -4
  967. package/types/tabs/src/components/tab-page.props.d.ts +0 -19
  968. package/types/tabs/src/composition/types.d.ts +0 -83
  969. package/types/tabs/src/composition/use-dropdown.d.ts +0 -3
  970. package/types/tabs/src/composition/use-nav.d.ts +0 -4
  971. package/types/tabs/src/composition/use-one-page.d.ts +0 -4
  972. package/types/tabs/src/composition/use-tabs.d.ts +0 -19
  973. package/types/tabs/src/designer/tab-header.design.component.d.ts +0 -6
  974. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +0 -3
  975. package/types/tabs/src/designer/tab-page.design.component.d.ts +0 -6
  976. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +0 -3
  977. package/types/tabs/src/designer/tabs-use-design.d.ts +0 -20
  978. package/types/tabs/src/designer/tabs.design.component.d.ts +0 -6
  979. package/types/tabs/src/schema/schema-mapper.d.ts +0 -2
  980. package/types/tabs/src/schema/schema-resolver.d.ts +0 -2
  981. package/types/tabs/src/schema/tab-page-schema-mapper.d.ts +0 -2
  982. package/types/tabs/src/tabs.component.d.ts +0 -6
  983. package/types/tabs/src/tabs.props.d.ts +0 -22
  984. package/types/tags/index.d.ts +0 -10
  985. package/types/tags/src/composition/types.d.ts +0 -13
  986. package/types/tags/src/composition/use-draggable.d.ts +0 -4
  987. package/types/tags/src/schema/schema-mapper.d.ts +0 -2
  988. package/types/tags/src/schema/schema-resolver.d.ts +0 -2
  989. package/types/tags/src/tags.props.d.ts +0 -15
  990. package/types/text/index.d.ts +0 -25
  991. package/types/text/src/designer/text.design.component.d.ts +0 -6
  992. package/types/text/src/schema/schema-mapper.d.ts +0 -2
  993. package/types/text/src/schema/schema-resolver.d.ts +0 -2
  994. package/types/text/src/text.component.d.ts +0 -6
  995. package/types/text/src/text.props.d.ts +0 -19
  996. package/types/time-picker/index.d.ts +0 -12
  997. package/types/time-picker/src/components/time-holder.d.ts +0 -82
  998. package/types/time-picker/src/components/time.props.d.ts +0 -48
  999. package/types/time-picker/src/components/utils/check.d.ts +0 -1
  1000. package/types/time-picker/src/schema/schema-mapper.d.ts +0 -2
  1001. package/types/time-picker/src/schema/schema-resolver.d.ts +0 -2
  1002. package/types/time-picker/src/time-picker.props.d.ts +0 -4
  1003. package/types/tooltip/index.d.ts +0 -24
  1004. package/types/tooltip/src/composition/types.d.ts +0 -45
  1005. package/types/tooltip/src/composition/use-adjust-placement.d.ts +0 -20
  1006. package/types/tooltip/src/composition/use-adjust-position.d.ts +0 -21
  1007. package/types/tooltip/src/composition/use-calculate-position.d.ts +0 -21
  1008. package/types/tooltip/src/composition/use-relative.d.ts +0 -19
  1009. package/types/tooltip/src/composition/use-tooltip-position.d.ts +0 -22
  1010. package/types/tooltip/src/tooltip.component.d.ts +0 -78
  1011. package/types/tooltip/src/tooltip.directive.d.ts +0 -6
  1012. package/types/tooltip/src/tooltip.props.d.ts +0 -60
  1013. package/types/transfer/index.d.ts +0 -10
  1014. package/types/transfer/src/schema/schema-mapper.d.ts +0 -2
  1015. package/types/transfer/src/schema/schema-resolver.d.ts +0 -2
  1016. package/types/transfer/src/transfer.component.d.ts +0 -6
  1017. package/types/transfer/src/transfer.props.d.ts +0 -4
  1018. package/types/tree-grid/index.d.ts +0 -24
  1019. package/types/tree-grid/src/components/data/data-area.component.d.ts +0 -21
  1020. package/types/tree-grid/src/schema/schema-mapper.d.ts +0 -2
  1021. package/types/tree-grid/src/schema/schema-resolver.d.ts +0 -2
  1022. package/types/tree-grid/src/tree-grid.props.d.ts +0 -431
  1023. package/types/tree-view/index.d.ts +0 -10
  1024. package/types/tree-view/src/components/data/tree-area.component.d.ts +0 -7
  1025. package/types/tree-view/src/schema/schema-mapper.d.ts +0 -2
  1026. package/types/tree-view/src/schema/schema-resolver.d.ts +0 -2
  1027. package/types/tree-view/src/tree-view.component.d.ts +0 -6
  1028. package/types/tree-view/src/tree-view.props.d.ts +0 -4
  1029. package/types/uploader/index.d.ts +0 -27
  1030. package/types/uploader/src/components/file-select.component.d.ts +0 -99
  1031. package/types/uploader/src/components/sub-component.props.d.ts +0 -102
  1032. package/types/uploader/src/components/upload-progress.component.d.ts +0 -41
  1033. package/types/uploader/src/composition/type.d.ts +0 -129
  1034. package/types/uploader/src/composition/use-service.d.ts +0 -5
  1035. package/types/uploader/src/schema/schema-mapper.d.ts +0 -2
  1036. package/types/uploader/src/schema/schema-resolver.d.ts +0 -2
  1037. package/types/uploader/src/uploader.props.d.ts +0 -4
  1038. package/types/verify-detail/index.d.ts +0 -28
  1039. package/types/verify-detail/src/composition/type.d.ts +0 -25
  1040. package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +0 -6
  1041. package/types/verify-detail/src/schema/schema-mapper.d.ts +0 -2
  1042. package/types/verify-detail/src/schema/schema-resolver.d.ts +0 -2
  1043. package/types/verify-detail/src/verify-detail.component.d.ts +0 -6
  1044. package/types/verify-detail/src/verify-detail.props.d.ts +0 -4
  1045. package/types/verify-detail/src/verify-detail.service.d.ts +0 -7
  1046. package/types/video/index.d.ts +0 -25
  1047. package/types/video/src/composition/types.d.ts +0 -38
  1048. package/types/video/src/composition/use-video.d.ts +0 -20
  1049. package/types/video/src/composition/use-viewport.d.ts +0 -20
  1050. package/types/video/src/designer/video.design.component.d.ts +0 -4
  1051. package/types/video/src/schema/schema-mapper.d.ts +0 -2
  1052. package/types/video/src/schema/schema-resolver.d.ts +0 -2
  1053. package/types/video/src/video.component.d.ts +0 -6
  1054. package/types/video/src/video.props.d.ts +0 -19
  1055. package/types/weather/index.d.ts +0 -25
  1056. package/types/weather/src/components/weather-city.component.d.ts +0 -6
  1057. package/types/weather/src/components/weather-detail.component.d.ts +0 -6
  1058. package/types/weather/src/components/weather-home.component.d.ts +0 -6
  1059. package/types/weather/src/components/weather-information.component.d.ts +0 -6
  1060. package/types/weather/src/components/weather-proindex.component.d.ts +0 -6
  1061. package/types/weather/src/components/weather-report.component.d.ts +0 -6
  1062. package/types/weather/src/components/weather-sunset.component.d.ts +0 -6
  1063. package/types/weather/src/composition/types.d.ts +0 -2
  1064. package/types/weather/src/composition/use-weather-charts.d.ts +0 -3
  1065. package/types/weather/src/composition/use-weather-color.d.ts +0 -3
  1066. package/types/weather/src/composition/use-weather-data.d.ts +0 -3
  1067. package/types/weather/src/composition/use-weather-format-number.d.ts +0 -3
  1068. package/types/weather/src/demo-data.d.ts +0 -181
  1069. package/types/weather/src/designer/weather.design.component.d.ts +0 -6
  1070. package/types/weather/src/schema/schema-mapper.d.ts +0 -2
  1071. package/types/weather/src/schema/schema-resolver.d.ts +0 -2
  1072. package/types/weather/src/weather.component.d.ts +0 -6
  1073. package/types/weather/src/weather.props.d.ts +0 -19
  1074. package/uploader/index.esm.js +0 -3187
  1075. package/uploader/index.umd.js +0 -2
  1076. package/uploader/package.json +0 -8
  1077. package/uploader/style.css +0 -1
  1078. package/verify-detail/index.esm.js +0 -648
  1079. package/verify-detail/index.umd.js +0 -1
  1080. package/verify-detail/package.json +0 -8
  1081. package/video/index.esm.js +0 -1178
  1082. package/video/index.umd.js +0 -1
  1083. package/video/package.json +0 -8
  1084. package/weather/index.esm.js +0 -6816
  1085. package/weather/index.umd.js +0 -16
  1086. package/weather/package.json +0 -8
  1087. package/weather/style.css +0 -1
package/tabs/index.esm.js DELETED
@@ -1,4688 +0,0 @@
1
- var Ze = Object.defineProperty;
2
- var Qe = (e, t, n) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var z = (e, t, n) => (Qe(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { ref as I, nextTick as ne, computed as M, createVNode as p, defineComponent as ee, watch as oe, onMounted as K, withDirectives as Xe, vModelText as Ye, createTextVNode as pe, Fragment as Ke, getCurrentInstance as Ee, onUnmounted as fe, shallowRef as re, provide as de, inject as X, isVNode as Ae, onBeforeUnmount as et } from "vue";
5
- import { cloneDeep as tt } from "lodash-es";
6
- const ge = {}, ke = {};
7
- function Ce(e) {
8
- const { properties: t, title: n } = e, a = Object.keys(t).reduce((l, d) => (l[d] = t[d].type === "object" && t[d].properties ? Ce(t[d]) : tt(t[d].default), l), {});
9
- return a.id = `${n}-${Date.now()}`, a;
10
- }
11
- function se(e, t = {}) {
12
- const n = ge[e];
13
- if (n) {
14
- let a = Ce(n);
15
- const l = ke[e];
16
- return a = l ? l({ getSchemaByType: se }, a, t) : a, a;
17
- }
18
- return null;
19
- }
20
- function nt(e, t) {
21
- const n = Ce(t);
22
- return Object.keys(e).reduce((a, l) => (a[l] = e[l], a), n), n;
23
- }
24
- function ot(e, t) {
25
- return Object.keys(e).filter((a) => e[a] != null).reduce((a, l) => {
26
- if (t.has(l)) {
27
- const d = t.get(l);
28
- if (typeof d == "string")
29
- a[d] = e[l];
30
- else {
31
- const h = d(l, e[l], e);
32
- Object.assign(a, h);
33
- }
34
- } else
35
- a[l] = e[l];
36
- return a;
37
- }, {});
38
- }
39
- function st(e, t, n = /* @__PURE__ */ new Map()) {
40
- const a = nt(e, t);
41
- return ot(a, n);
42
- }
43
- function at(e = {}) {
44
- function t(T, g, r, u) {
45
- if (typeof r == "number")
46
- return u[T].length === r;
47
- if (typeof r == "object") {
48
- const v = Object.keys(r)[0], m = r[v];
49
- if (v === "not")
50
- return Number(u[T].length) !== Number(m);
51
- if (v === "moreThan")
52
- return Number(u[T].length) >= Number(m);
53
- if (v === "lessThan")
54
- return Number(u[T].length) <= Number(m);
55
- }
56
- return !1;
57
- }
58
- function n(T, g, r, u) {
59
- return u[g] && u[g].propertyValue && String(u[g].propertyValue.value) === String(r);
60
- }
61
- const a = /* @__PURE__ */ new Map([
62
- ["length", t],
63
- ["getProperty", n]
64
- ]);
65
- Object.keys(e).reduce((T, g) => (T.set(g, e[g]), T), a);
66
- function l(T, g) {
67
- const r = T;
68
- return typeof g == "number" ? [{ target: r, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: r, operator: "getProperty", param: T, value: !!g }] : typeof g == "object" ? Object.keys(g).map((u) => {
69
- if (u === "length")
70
- return { target: r, operator: "length", param: null, value: g[u] };
71
- const v = u, m = g[u];
72
- return { target: r, operator: T, param: v, value: m };
73
- }) : [];
74
- }
75
- function d(T) {
76
- return Object.keys(T).reduce((r, u) => {
77
- const v = l(u, T[u]);
78
- return r.push(...v), r;
79
- }, []);
80
- }
81
- function h(T, g) {
82
- if (a.has(T.operator)) {
83
- const r = a.get(T.operator);
84
- return r && r(T.target, T.param, T.value, g) || !1;
85
- }
86
- return !1;
87
- }
88
- function S(T, g) {
89
- return d(T).reduce((v, m) => v && h(m, g), !0);
90
- }
91
- function x(T, g) {
92
- const r = Object.keys(T), u = r.includes("allOf"), v = r.includes("anyOf"), m = u || v, c = (m ? T[m ? u ? "allOf" : "anyOf" : "allOf"] : [T]).map(($) => S($, g));
93
- return u ? !c.includes(!1) : c.includes(!0);
94
- }
95
- return { parseValueSchema: x };
96
- }
97
- const Ne = {}, rt = {};
98
- at();
99
- function ie(e, t, n = /* @__PURE__ */ new Map(), a = (h, S, x) => S, l = {}, d = (h) => h) {
100
- return ge[t.title] = t, ke[t.title] = a, Ne[t.title] = l, rt[t.title] = d, (h = {}) => {
101
- const S = st(h, t, n), x = Object.keys(e).reduce((T, g) => (T[g] = e[g].default, T), {});
102
- return Object.assign(x, S);
103
- };
104
- }
105
- function be(e, t) {
106
- return { customClass: t.class };
107
- }
108
- const lt = /* @__PURE__ */ new Map([
109
- ["appearance", be]
110
- ]);
111
- function it(e, t, n) {
112
- const a = e.getSchemaByType("tab-page");
113
- return t.contents = [a], t;
114
- }
115
- const ct = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-design.gitee.io/tabs.schema.json", dt = "tabs", pt = "A Farris Container Component", ft = "object", bt = {
116
- id: {
117
- description: "The unique identifier for a Tabs",
118
- type: "string"
119
- },
120
- type: {
121
- description: "The type string of Tabs component",
122
- type: "string",
123
- default: "tabs"
124
- },
125
- appearance: {
126
- description: "",
127
- type: "object",
128
- properties: {
129
- class: {
130
- type: "string"
131
- },
132
- style: {
133
- type: "string"
134
- }
135
- },
136
- default: {}
137
- },
138
- contents: {
139
- description: "",
140
- type: "array",
141
- default: []
142
- }
143
- }, mt = [
144
- "id",
145
- "type",
146
- "contents"
147
- ], ht = {
148
- $schema: ct,
149
- $id: ut,
150
- title: dt,
151
- description: pt,
152
- type: ft,
153
- properties: bt,
154
- required: mt
155
- }, vt = "tabs", yt = "A Farris Container Component", gt = "object", Ct = {
156
- basic: {
157
- description: "Basic Infomation",
158
- title: "基本信息",
159
- properties: {
160
- id: {
161
- description: "组件标识",
162
- title: "标识",
163
- type: "string",
164
- readonly: !0
165
- },
166
- type: {
167
- description: "组件类型",
168
- title: "控件类型",
169
- type: "select",
170
- editor: {
171
- type: "Splitter",
172
- enum: []
173
- }
174
- },
175
- title: {
176
- title: "标题",
177
- type: "string",
178
- description: "标题"
179
- }
180
- }
181
- },
182
- appearance: {
183
- description: "",
184
- title: "外观",
185
- properties: {
186
- size: {
187
- description: "",
188
- type: "cascade",
189
- title: "尺寸",
190
- properties: {
191
- width: {
192
- description: "组件的宽度",
193
- title: "宽度(px)",
194
- type: "number",
195
- min: 0,
196
- decimals: 0
197
- },
198
- height: {
199
- description: "组件的高度",
200
- title: "高度(px)",
201
- type: "number",
202
- min: 0,
203
- decimals: 0
204
- }
205
- }
206
- },
207
- titleWidth: {
208
- description: "标题区域宽度占页面比",
209
- type: "number",
210
- title: "标题区域宽度(%)",
211
- min: 0,
212
- decimals: 0,
213
- max: 100
214
- },
215
- autoTitleWidth: {
216
- description: "开启,则显示全部字符;关闭,最多显示7个字符",
217
- type: "select",
218
- title: "标题自适应宽度",
219
- editor: {
220
- type: "combo-list",
221
- data: [
222
- {
223
- value: !0,
224
- name: "是"
225
- },
226
- {
227
- value: !1,
228
- name: "否"
229
- }
230
- ]
231
- },
232
- defaultValue: !1
233
- },
234
- contentFill: {
235
- description: "flex布局下,填充满剩余部分",
236
- type: "select",
237
- title: "填充",
238
- editor: {
239
- type: "combo-list",
240
- data: [
241
- {
242
- value: !0,
243
- name: "是"
244
- },
245
- {
246
- value: !1,
247
- name: "否"
248
- }
249
- ]
250
- },
251
- defaultValue: !1
252
- }
253
- }
254
- },
255
- behavior: {
256
- description: "",
257
- title: "行为",
258
- properties: {
259
- visible: {
260
- description: "运行时组件是否可见",
261
- type: "boolean",
262
- title: "是否可见",
263
- editor: {
264
- type: "combo-list",
265
- data: [
266
- {
267
- value: !0,
268
- name: "是"
269
- },
270
- {
271
- value: !1,
272
- name: "否"
273
- }
274
- ]
275
- }
276
- }
277
- }
278
- }
279
- }, Tt = {
280
- title: vt,
281
- description: yt,
282
- type: gt,
283
- categories: Ct
284
- }, Te = {
285
- tabType: { type: String, default: "default" },
286
- autoTitleWidth: { type: Boolean, default: !1 },
287
- titleLength: { type: Number, default: 7 },
288
- position: { type: String, default: "top" },
289
- showDropdown: { type: Boolean, default: !0 },
290
- scrollStep: { type: Number, default: 10 },
291
- autoResize: { type: Boolean, default: !1 },
292
- selectedTab: { type: String, default: "" },
293
- width: { type: Number },
294
- height: { type: Number },
295
- searchBoxVisible: { type: Boolean, default: !0 },
296
- titleWidth: { type: Number, default: 0 },
297
- customClass: { type: String, default: "" },
298
- activeId: { type: String },
299
- fill: { type: Boolean, default: !1 },
300
- justifyContent: { type: String, default: "left" }
301
- }, De = ie(Te, ht, lt, it, Tt);
302
- function wt(e, t, n) {
303
- const a = I([]), l = I(e.activeId || ""), d = I(!0), h = I([]);
304
- function S(i) {
305
- const f = i.value.findIndex((c) => c.props.show !== !1 && !l.value && !c.props.disabled);
306
- !l.value && f !== -1 && (l.value = i.value[f].props.id);
307
- }
308
- function x(i) {
309
- var c;
310
- if (e.autoTitleWidth)
311
- return;
312
- const f = (c = i.value) == null ? void 0 : c.querySelectorAll(".st-tab-text");
313
- if (f)
314
- for (let w = 0; w < f.length; w++) {
315
- const $ = f[w].parentNode;
316
- f[w].scrollWidth > $.offsetWidth ? f[w].classList.contains("farris-title-text-custom") || f[w].classList.add("farris-title-text-custom") : f[w].classList.remove("farris-title-text-custom");
317
- }
318
- }
319
- const T = (i) => {
320
- i.preventDefault(), i.stopPropagation();
321
- };
322
- function g(i, f, c = !1) {
323
- const w = a.value.findIndex(($) => $.props.id === f);
324
- a.value = a.value.filter(($) => $.props.id !== f), l.value === f && (l.value = "", S(a)), T(i), ne(() => {
325
- x(n), c && (d.value = !0), t.emit("tabRemove", {
326
- removeIndex: w,
327
- removeId: f,
328
- activeId: l.value
329
- });
330
- });
331
- }
332
- function r(i) {
333
- const f = l.value;
334
- l.value = i;
335
- const c = a.value.find((w) => w.props.id === i);
336
- h.value = [], c && c.props.toolbar && c.props.toolbar.contents && c.props.toolbar.contents.length && (h.value = [...c.props.toolbar.contents]), t.emit("tabChange", {
337
- prevId: f,
338
- nextId: l.value
339
- });
340
- }
341
- function u(i) {
342
- r(i);
343
- }
344
- function v(i) {
345
- a.value.findIndex((c) => c.props.id === i.props.id) === -1 && a.value.push(i);
346
- }
347
- function m(i) {
348
- a.value.findIndex((c) => c.props.id === i.props.id) !== -1 && (a.value.forEach((c) => {
349
- c.props.id === i.props.id && (c = i);
350
- }), ne(() => {
351
- x(n);
352
- }));
353
- }
354
- return {
355
- activeId: l,
356
- addTab: v,
357
- changeTitleStyle: x,
358
- removeTab: g,
359
- selectTab: u,
360
- selectTabByTabId: r,
361
- tabPages: a,
362
- updateTab: m,
363
- toolbarItems: h
364
- };
365
- }
366
- function St(e, t, n, a, l) {
367
- const {
368
- activeId: d,
369
- removeTab: h,
370
- selectTab: S
371
- } = l, x = M(() => ({
372
- "st-tab-text": !0,
373
- "farris-title-auto": e.autoTitleWidth
374
- })), T = M(() => ({
375
- "nav-item": !0,
376
- "d-none": t.show !== void 0 ? !t.show : !1,
377
- "f-state-active": t.id === d.value,
378
- "f-state-disable": t.disabled
379
- })), g = M(() => ({
380
- width: `${t.tabWidth}px`
381
- })), r = M(() => ({
382
- "nav-link": !0,
383
- "tabs-text-truncate": !0,
384
- active: t.id === d.value,
385
- disabled: t.disabled
386
- }));
387
- function u(w) {
388
- return p("span", {
389
- class: x.value,
390
- title: w.title
391
- }, [w.title]);
392
- }
393
- function v(w) {
394
- return w.slots.title ? w.slots.title : u;
395
- }
396
- const m = v(n), i = I(t.removeable);
397
- function f() {
398
- return p("span", {
399
- class: "st-drop-close",
400
- onClick: (w) => h(w, t.id)
401
- }, [p("i", {
402
- class: "f-icon f-icon-close"
403
- }, null)]);
404
- }
405
- function c(w) {
406
- S(t.id), e.tabType === "one-page" && a.scrollToByPaggId(t.id);
407
- }
408
- return p("li", {
409
- class: T.value,
410
- style: g.value
411
- }, [p("a", {
412
- class: r.value,
413
- onClick: c
414
- }, [m(t), i.value && f()])]);
415
- }
416
- function xt(e, t, n, a, l) {
417
- const {
418
- shouldShowNavigationButtons: d
419
- } = n, {
420
- tabPages: h
421
- } = l, S = M(() => ({
422
- spacer: !0,
423
- "f-utils-fill": !0,
424
- "spacer-sides-dropdown": d.value
425
- })), x = M(() => ({
426
- width: "100%",
427
- "justify-content": e.justifyContent
428
- })), T = M(() => ({
429
- nav: !0,
430
- "farris-nav-tabs": !0,
431
- "flex-nowrap": !0,
432
- "nav-fill": e.fill || e.tabType === "fill",
433
- "nav-pills": e.tabType === "pills",
434
- "flex-row": e.position === "top" || e.position === "bottom",
435
- "flex-column": e.position === "left" || e.position === "right"
436
- }));
437
- return () => p("div", {
438
- class: S.value,
439
- style: x.value
440
- }, [p("ul", {
441
- class: T.value,
442
- ref: t
443
- }, [h.value.map((g) => St(e, g.props, g, a, l))])]);
444
- }
445
- const jt = "https://json-schema.org/draft/2020-12/schema", Dt = "https://farris-design.gitee.io/capsule.schema.json", Bt = "capsule", Ot = "A Farris Component", $t = "object", It = {
446
- id: {
447
- description: "The unique identifier for a capsule",
448
- type: "string"
449
- },
450
- type: {
451
- description: "The type string of capsule component",
452
- type: "string",
453
- default: "capsule"
454
- },
455
- appearance: {
456
- description: "",
457
- type: "object",
458
- properties: {
459
- class: {
460
- type: "string"
461
- },
462
- style: {
463
- type: "string"
464
- }
465
- },
466
- default: {}
467
- },
468
- binding: {
469
- description: "",
470
- type: "object",
471
- default: {}
472
- },
473
- disable: {
474
- type: "string",
475
- default: !1
476
- },
477
- editable: {
478
- description: "",
479
- type: "boolean",
480
- default: !0
481
- },
482
- placeHolder: {
483
- description: "",
484
- type: "string",
485
- default: ""
486
- },
487
- readonly: {
488
- description: "",
489
- type: "boolean",
490
- default: !1
491
- },
492
- require: {
493
- description: "",
494
- type: "boolean",
495
- default: !1
496
- },
497
- tabindex: {
498
- description: "",
499
- type: "number",
500
- default: -1
501
- },
502
- visible: {
503
- description: "",
504
- type: "boolean",
505
- default: !0
506
- }
507
- }, Mt = [
508
- "id",
509
- "type"
510
- ], Pt = {
511
- $schema: jt,
512
- $id: Dt,
513
- title: Bt,
514
- description: Ot,
515
- type: $t,
516
- properties: It,
517
- required: Mt
518
- }, Et = /* @__PURE__ */ new Map([
519
- ["appearance", be]
520
- ]);
521
- function At(e, t, n) {
522
- return t;
523
- }
524
- const kt = "capsule", Nt = "A Farris Component", Lt = "object", _t = {
525
- basic: {
526
- description: "Basic Infomation",
527
- title: "基本信息",
528
- properties: {
529
- id: {
530
- description: "组件标识",
531
- title: "标识",
532
- type: "string",
533
- readonly: !0
534
- },
535
- type: {
536
- description: "组件类型",
537
- title: "控件类型",
538
- type: "select",
539
- editor: {
540
- type: "waiting for modification",
541
- enum: []
542
- }
543
- }
544
- }
545
- }
546
- }, Ft = {
547
- title: kt,
548
- description: Nt,
549
- type: Lt,
550
- categories: _t
551
- }, Le = {
552
- items: {
553
- Type: Array,
554
- default: [
555
- { name: "升序", value: "asc", icon: "f-icon f-icon-col-ascendingorder" },
556
- { name: "降序", value: "desc", icon: "f-icon f-icon-col-descendingorder" }
557
- ]
558
- },
559
- /**
560
- * 组件值
561
- */
562
- modelValue: { type: String, default: "" },
563
- type: { type: String, default: "primary" }
564
- }, Ht = {
565
- name: { type: String, default: "" },
566
- value: { type: String, default: "" },
567
- isActive: { type: Boolean, default: !1 },
568
- icon: { type: String, default: "" },
569
- index: { type: Number, default: 0 }
570
- };
571
- ie(Le, Pt, Et, At, Ft);
572
- const Rt = /* @__PURE__ */ ee({
573
- name: "FCapsuleItem",
574
- props: Ht,
575
- emits: ["mounted", "active"],
576
- setup(e, t) {
577
- const n = I(), a = I(e.isActive);
578
- oe(() => e.isActive, (h) => {
579
- a.value = h;
580
- });
581
- const l = M(() => ({
582
- "f-capsule-item": !0,
583
- "f-capsule-active-item": a.value
584
- }));
585
- K(() => {
586
- t.emit("mounted", n, e.value);
587
- });
588
- function d(h) {
589
- t.emit("active", h, {
590
- name: e.name,
591
- value: e.value
592
- });
593
- }
594
- return () => p("div", {
595
- ref: n,
596
- class: l.value,
597
- onClick: (h) => d(h)
598
- }, [e.icon && p("i", {
599
- class: e.icon
600
- }, null), e.name]);
601
- }
602
- }), Wt = /* @__PURE__ */ ee({
603
- name: "FCapsule",
604
- props: Le,
605
- emits: ["change", "update:modelValue"],
606
- setup(e, t) {
607
- const n = I(e.items), a = I(), l = 2, d = I(e.modelValue), h = I("none"), S = I(e.type), x = M(() => {
608
- const y = {
609
- "f-capsule-container": !0
610
- };
611
- return S.value && (y[S.value] = !0), y;
612
- }), T = M(() => ({})), g = M(() => ({
613
- "f-capsule": !0
614
- })), r = I(l), u = I(0), v = I(0), m = M(() => ({
615
- left: `${r.value}px`,
616
- width: `${u.value}px`,
617
- transition: h.value
618
- })), i = M(() => ({
619
- width: `${v.value}px`
620
- })), f = /* @__PURE__ */ new Map();
621
- function c(y) {
622
- var D;
623
- if (f.has(y.value)) {
624
- const O = (D = f.get(y.value)) == null ? void 0 : D.value;
625
- if (O) {
626
- const j = O.getBoundingClientRect(), o = a.value.getBoundingClientRect();
627
- r.value = j.left - o.left + l + a.value.scrollLeft, u.value = j.width - 2 * l;
628
- }
629
- }
630
- }
631
- function w(y, D) {
632
- const O = y.value;
633
- d.value = O, t.emit("update:modelValue", O), c(y), D && t.emit("change", O);
634
- }
635
- function $(y) {
636
- const D = n.value.findIndex((O) => O.value === y);
637
- D > -1 && w(n.value[D], !1);
638
- }
639
- oe(() => e.modelValue, (y) => {
640
- d.value = y, $(d.value);
641
- }), oe(() => e.items, async (y) => {
642
- n.value = y, await ne(), $(d.value), v.value = Array.from(f.values()).reduce((D, O) => (D += O.value.clientWidth, D), 0);
643
- }), K(async () => {
644
- $(d.value), await ne(), h.value = "0.1s ease-out all", v.value = Array.from(f.values()).reduce((y, D) => (y += D.value.clientWidth, y), 0);
645
- });
646
- function N(y, D) {
647
- w(D, !0);
648
- }
649
- function k(y, D) {
650
- f.set(D, y);
651
- }
652
- function B(y, D) {
653
- return p(Rt, {
654
- name: y.name,
655
- value: y.value,
656
- isActive: y.value === d.value,
657
- index: D,
658
- onMounted: k,
659
- onActive: N
660
- }, null);
661
- }
662
- return () => p("span", {
663
- ref: a,
664
- class: x.value,
665
- style: T.value
666
- }, [p("span", {
667
- class: "f-capsule-pane"
668
- }, [n.value.map((y, D) => B(y, D))]), p("small", {
669
- class: g.value,
670
- style: m.value
671
- }, null), p("div", {
672
- class: "f-capsule-board",
673
- style: i.value
674
- }, null)]);
675
- }
676
- });
677
- function _e(e, t, n, a, l) {
678
- const d = I(), {
679
- shouldShowNavigationButtons: h
680
- } = n, {
681
- activeId: S,
682
- tabPages: x
683
- } = l, T = M(() => x.value.map((v) => ({
684
- name: v.props.title,
685
- value: v.props.id
686
- }))), g = M(() => ({
687
- spacer: !0,
688
- "f-utils-fill": !0,
689
- "spacer-sides-dropdown": h.value
690
- })), r = M(() => ({
691
- width: "100%",
692
- display: "flex",
693
- "justify-content": e.justifyContent
694
- }));
695
- K(() => {
696
- d.value && (t.value = d.value.$el);
697
- });
698
- function u() {
699
- }
700
- return () => p("div", {
701
- class: g.value,
702
- style: r.value
703
- }, [p(Wt, {
704
- items: T.value,
705
- modelValue: S.value,
706
- "onUpdate:modelValue": (v) => S.value = v,
707
- onChange: u,
708
- ref: d
709
- }, null)]);
710
- }
711
- function Vt(e, t, n, a) {
712
- const {
713
- activeId: l,
714
- removeTab: d,
715
- tabPages: h
716
- } = a, {
717
- selectAndScrollToTab: S
718
- } = n, {
719
- hideDropDown: x,
720
- searchTabText: T
721
- } = t, g = I("auto"), r = M(() => {
722
- var w, $;
723
- let c = [];
724
- return e.searchBoxVisible ? c = (w = h.value) == null ? void 0 : w.filter((N) => N.props.title.includes(T.value)) : c = ($ = h.value) == null ? void 0 : $.slice(), c;
725
- }), u = M(() => ({
726
- "dropdown-menu": !0,
727
- "tabs-pt28": e.searchBoxVisible,
728
- show: !x.value
729
- }));
730
- function v(c) {
731
- return {
732
- "dropdown-item": !0,
733
- "text-truncate": !0,
734
- "px-2": !0,
735
- disabled: c.props.disabled,
736
- active: c.props.id === l.value,
737
- "d-none": c.props.show !== !0
738
- };
739
- }
740
- function m(c) {
741
- c.preventDefault(), c.stopPropagation();
742
- }
743
- const i = () => ({
744
- width: g.value
745
- });
746
- function f() {
747
- return p("div", {
748
- class: u.value
749
- }, [e.searchBoxVisible && p("div", {
750
- onClick: (c) => m(c),
751
- class: "pb-1 tabs-li-absolute"
752
- }, [Xe(p("input", {
753
- title: "search-box",
754
- type: "text",
755
- class: "form-control k-textbox",
756
- "onUpdate:modelValue": (c) => T.value = c
757
- }, null), [[Ye, T.value]]), p("span", {
758
- class: "f-icon f-icon-page-title-query tabs-icon-search"
759
- }, null)]), r.value.length ? p("ul", {
760
- class: "tab-dropdown-menu--items",
761
- style: i()
762
- }, [r.value.map((c) => p("li", {
763
- class: v(c),
764
- onClick: (w) => S(w, c.props)
765
- }, [c.props.removeable && p("span", {
766
- class: "float-right st-drop-close",
767
- onClick: (w) => d(w, c.props.id, !0)
768
- }, [p("i", {
769
- class: "f-icon f-icon-close"
770
- }, null)]), p("a", {
771
- class: "dropdown-title"
772
- }, [c.props.title])]))]) : p("div", {
773
- class: "dropdown-no-data"
774
- }, [pe("没有相关数据")])]);
775
- }
776
- return {
777
- renderDropdownMenu: f
778
- };
779
- }
780
- function Fe(e, t, n, a) {
781
- const {
782
- hideDropDown: l
783
- } = t, {
784
- renderDropdownMenu: d
785
- } = Vt(e, t, n, a), h = I(e.showDropdown);
786
- function S() {
787
- return h.value && p(Ke, null, [p("button", {
788
- title: "toggle-button",
789
- class: "btn dropdown-toggle-split dropdown-toggle",
790
- onClick: () => {
791
- l.value = !1;
792
- }
793
- }, null), d()]);
794
- }
795
- return {
796
- renderMorePagesButtton: S
797
- };
798
- }
799
- function He(e, t, n, a) {
800
- const l = I(!1), { selectTabByTabId: d, tabPages: h } = a, S = 4;
801
- function x() {
802
- var c;
803
- const i = t.value, f = (c = t.value) == null ? void 0 : c.parentElement;
804
- l.value = f && i && f.offsetWidth < i.scrollWidth - S;
805
- }
806
- const T = M(() => ({
807
- btn: !0,
808
- "sc-nav-btn": !0,
809
- "px-1": !0,
810
- "sc-nav-lr": !0,
811
- "d-none": !l.value
812
- })), g = M(() => ({
813
- "btn-group": !0,
814
- "sc-nav-btn": !0,
815
- dropdown: !0,
816
- "d-none": !l.value
817
- })), r = M(() => ({
818
- btn: !0,
819
- "sc-nav-rg": !0,
820
- "d-none": !l.value
821
- }));
822
- function u(i, f) {
823
- if (!t.value)
824
- return;
825
- const c = t.value.scrollLeft, w = t.value.scrollWidth - t.value.offsetWidth;
826
- if (f > 0) {
827
- if (t.value.scrollLeft >= w)
828
- return;
829
- t.value.scrollLeft = c + e.scrollStep + i;
830
- } else if (f < 0) {
831
- if (t.value.scrollLeft <= 0)
832
- return;
833
- t.value.scrollLeft = c - e.scrollStep - i;
834
- }
835
- }
836
- function v(i) {
837
- if (!l.value || !t.value)
838
- return;
839
- const f = e.tabType === "pills" ? ".f-capsule-item" : ".nav-item", c = t.value.querySelectorAll(f), { parentElement: w } = t.value, $ = c[i];
840
- if ($ && w) {
841
- const N = w.getBoundingClientRect().left, k = w.getBoundingClientRect().right, B = $.getBoundingClientRect().left, y = $.getBoundingClientRect().right;
842
- B < N ? u(N - B, -1) : k < y && u(y - k, 1), e.tabType === "one-page" && n.scrollTo(i);
843
- }
844
- }
845
- function m(i, f) {
846
- if (f.disabled)
847
- return;
848
- d(f.id);
849
- const c = h.value.findIndex((w) => w.props.id === f.id);
850
- ne(() => {
851
- v(c);
852
- });
853
- }
854
- return {
855
- previousButtonClass: T,
856
- nextButtonGroupClass: g,
857
- nextButtonClass: r,
858
- scrollTab: u,
859
- selectAndScrollToTab: m,
860
- shouldShowNavigationButtons: l,
861
- updateNavigationLayout: x
862
- };
863
- }
864
- function Re(e, t) {
865
- const { tabPages: n } = t, a = I(""), l = I(!0), d = M(() => e.searchBoxVisible), h = M(() => d.value ? n.value.filter((x) => x.props.title.includes(a.value)) : n.value.slice());
866
- return {
867
- searchTabText: a,
868
- hideDropDown: l,
869
- shouldShowSearchBox: d,
870
- tabsInDropdownMenu: h
871
- };
872
- }
873
- function We(e, t, n) {
874
- const a = ".farris-tab-page", { tabPages: l } = n;
875
- function d(S) {
876
- const x = t.value;
877
- if (x) {
878
- const T = t.value.querySelectorAll(a);
879
- if (T.length > 0) {
880
- const g = T[S], { offsetTop: r } = g, u = r - 32 > 0 ? r - 32 : 0;
881
- x.scrollTop = u;
882
- }
883
- }
884
- }
885
- function h(S) {
886
- const x = l.value.findIndex((T) => T.props.id === S);
887
- x > -1 && d(x);
888
- }
889
- return { scrollTo: d, scrollToByPaggId: h };
890
- }
891
- const qt = /* @__PURE__ */ new Map([
892
- ["buttons", "items"]
893
- ]);
894
- function zt(e, t, n) {
895
- return t;
896
- }
897
- const Gt = "https://json-schema.org/draft/2020-12/schema", Ut = "https://farris-design.gitee.io/response-toolbar.schema.json", Jt = "response-toolbar", Zt = "A Farris Toolbar Component", Qt = "object", Xt = {
898
- id: {
899
- description: "The unique identifier for a Response Toolbar",
900
- type: "string"
901
- },
902
- type: {
903
- description: "The type string of Response Toolbar",
904
- type: "string",
905
- default: "response-toolbar"
906
- },
907
- appearance: {
908
- description: "",
909
- type: "object",
910
- properties: {
911
- class: {
912
- type: "string"
913
- },
914
- style: {
915
- type: "string"
916
- }
917
- },
918
- default: {}
919
- },
920
- alignment: {
921
- description: "The alignment of Response Toolbar Button.",
922
- type: "string",
923
- default: "right"
924
- },
925
- buttons: {
926
- description: "The items of Response Toolbar.",
927
- type: "array",
928
- default: []
929
- }
930
- }, Yt = [
931
- "id",
932
- "type",
933
- "buttons"
934
- ], Kt = {
935
- $schema: Gt,
936
- $id: Ut,
937
- title: Jt,
938
- description: Zt,
939
- type: Qt,
940
- properties: Xt,
941
- required: Yt
942
- }, en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-design.gitee.io/response-toolbar-item.schema.json", nn = "response-toolbar-item", on = "A Farris Toolbar Item Component", sn = "object", an = {
943
- id: {
944
- description: "The unique identifier for a Response Toolbar",
945
- type: "string"
946
- },
947
- type: {
948
- description: "The type string of Response Toolbar",
949
- type: "string",
950
- default: "response-toolbar-item"
951
- },
952
- appearance: {
953
- description: "",
954
- type: "object",
955
- properties: {
956
- class: {
957
- type: "string"
958
- },
959
- style: {
960
- type: "string"
961
- }
962
- },
963
- default: {}
964
- },
965
- text: {
966
- description: "The items of Response Toolbar.",
967
- type: "string",
968
- default: ""
969
- },
970
- icon: {
971
- description: "The icon of response toolbar item.",
972
- type: "string",
973
- default: ""
974
- }
975
- }, rn = [
976
- "id",
977
- "type",
978
- "text"
979
- ], Be = {
980
- $schema: en,
981
- $id: tn,
982
- title: nn,
983
- description: on,
984
- type: sn,
985
- properties: an,
986
- required: rn
987
- }, ln = "response-toolbar", cn = "A Farris Component", un = "object", dn = {
988
- basic: {
989
- description: "Basic Infomation",
990
- title: "基本信息",
991
- properties: {
992
- id: {
993
- description: "组件标识",
994
- title: "标识",
995
- type: "string",
996
- readonly: !0
997
- },
998
- type: {
999
- title: "类型",
1000
- type: "enum",
1001
- description: "The type of a component.",
1002
- editor: {
1003
- type: "combo-list",
1004
- data: []
1005
- }
1006
- }
1007
- }
1008
- },
1009
- behavior: {
1010
- title: "行为",
1011
- description: "",
1012
- properties: {
1013
- alignment: {
1014
- title: "对齐方式",
1015
- description: "The alignment of Response Toolbar Button.",
1016
- type: "enum",
1017
- editor: {
1018
- type: "combo-list",
1019
- textField: "name",
1020
- valueField: "value",
1021
- data: [
1022
- {
1023
- value: "right",
1024
- name: "右对齐"
1025
- },
1026
- {
1027
- value: "left",
1028
- name: "左对齐"
1029
- }
1030
- ]
1031
- }
1032
- },
1033
- buttons: {
1034
- title: "按钮",
1035
- description: "The items of Response Toolbar.",
1036
- type: "array",
1037
- default: [],
1038
- $converter: "/converter/buttons.converter"
1039
- }
1040
- }
1041
- }
1042
- }, pn = {
1043
- title: ln,
1044
- description: cn,
1045
- type: un,
1046
- categories: dn
1047
- }, fn = "response-toolbar-item", bn = "A Farris Container Component", mn = "object", hn = {
1048
- basic: {
1049
- title: "基本信息",
1050
- description: "Basic Infomation",
1051
- properties: {
1052
- id: {
1053
- title: "标识",
1054
- type: "string",
1055
- description: "The identifier of a component.",
1056
- readonly: !0
1057
- },
1058
- type: {
1059
- title: "类型",
1060
- type: "enum",
1061
- description: "The type of a component.",
1062
- editor: {
1063
- type: "combo-list",
1064
- data: []
1065
- }
1066
- },
1067
- text: {
1068
- title: "文本",
1069
- type: "string",
1070
- description: ""
1071
- },
1072
- icon: {
1073
- title: "图标",
1074
- type: "string",
1075
- description: ""
1076
- }
1077
- }
1078
- }
1079
- }, Oe = {
1080
- title: fn,
1081
- description: bn,
1082
- type: mn,
1083
- categories: hn
1084
- }, we = {
1085
- /** 组件自定义样式 */
1086
- customClass: { type: String, default: "" },
1087
- alignment: { Type: String, default: "right" },
1088
- items: {
1089
- Type: Array,
1090
- default: []
1091
- }
1092
- };
1093
- ge[Be.title] = Be;
1094
- Ne[Oe.title] = Oe;
1095
- ie(
1096
- we,
1097
- Kt,
1098
- qt,
1099
- zt,
1100
- pn
1101
- );
1102
- class Ve {
1103
- constructor(t) {
1104
- /** 工具栏项标识 */
1105
- z(this, "id", "");
1106
- /** 工具栏项自定义样式 */
1107
- z(this, "class", "btn-secondary");
1108
- /** 图标 */
1109
- z(this, "icon", "");
1110
- /** 所属分组 */
1111
- z(this, "groupId", "");
1112
- /** 收藏顺序 */
1113
- z(this, "order", -1);
1114
- /** 是否作为下拉菜单的顶层按钮 */
1115
- z(this, "asDropDownTop", !1);
1116
- /** 文本 */
1117
- z(this, "text", "");
1118
- /** 是否可见 */
1119
- z(this, "visible", !0);
1120
- z(this, "responsed", !1);
1121
- /** 是否启用提示消息 */
1122
- z(this, "tipsEnable", !1);
1123
- /** 提示消息内容 */
1124
- z(this, "tipsText", "");
1125
- /** 记录宽度 */
1126
- z(this, "width", 0);
1127
- z(this, "onClick", () => {
1128
- });
1129
- z(this, "options");
1130
- this.options = t;
1131
- const n = [
1132
- "id",
1133
- "class",
1134
- "icon",
1135
- "groupId",
1136
- "order",
1137
- "asDropDownTop",
1138
- "text",
1139
- "isDP",
1140
- "visible",
1141
- "responsed",
1142
- "width",
1143
- "tipsEnable",
1144
- "tipsText",
1145
- "onClick"
1146
- ];
1147
- Object.keys(t).filter((a) => n.indexOf(a) > -1).forEach((a) => {
1148
- this[a] = t[a];
1149
- });
1150
- }
1151
- /** 是否可用 */
1152
- get enable() {
1153
- return Object.keys(this.options).indexOf("enable") > -1 ? this.options.enable : M(() => !0);
1154
- }
1155
- /** 设置宽度 */
1156
- setWidth(t) {
1157
- this.width = parseInt(t, 10);
1158
- }
1159
- /** 获取宽度 */
1160
- getWidth() {
1161
- return this.visible ? this.width : !1;
1162
- }
1163
- }
1164
- class vn extends Ve {
1165
- constructor(t) {
1166
- super(t);
1167
- }
1168
- }
1169
- function Se() {
1170
- function e(t) {
1171
- const n = [];
1172
- return t.reduce((a, l) => (l.children && l.children.length > 0 ? a.push(new le(l)) : a.push(new vn(l)), a), n), n;
1173
- }
1174
- return { buildResponseToolbarItems: e };
1175
- }
1176
- const { buildResponseToolbarItems: yn } = Se();
1177
- class le extends Ve {
1178
- constructor(n) {
1179
- super(n);
1180
- z(this, "placement", "");
1181
- // 下拉位置
1182
- /** 下拉class */
1183
- z(this, "dropdownClass", "");
1184
- /** 下拉菜单class */
1185
- z(this, "menuClass", "");
1186
- /** 是否用分开的下拉按钮 */
1187
- z(this, "split", !1);
1188
- z(this, "children", []);
1189
- z(this, "expanded", !1);
1190
- const a = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
1191
- Object.keys(n).filter((l) => a.indexOf(l) > -1).forEach((l) => {
1192
- this[l] = n[l];
1193
- }), n.children && n.children.length && (this.children = yn(n.children));
1194
- }
1195
- }
1196
- function qe() {
1197
- function e(n) {
1198
- const a = {
1199
- "f-icon": !0
1200
- };
1201
- if (n.icon) {
1202
- const l = n.icon.trim().split(" ");
1203
- l && l.length && l.reduce((d, h) => (d[h] = !0, d), a);
1204
- }
1205
- return a;
1206
- }
1207
- function t(n) {
1208
- return !!(n.icon && n.icon.trim());
1209
- }
1210
- return { iconClass: e, shouldShowIcon: t };
1211
- }
1212
- function gn(e) {
1213
- function t(r) {
1214
- const u = {
1215
- "dropdown-menu": !0
1216
- };
1217
- if (r.class) {
1218
- const v = r.menuClass.split(" ");
1219
- v && v.length && v.reduce((m, i) => (m[i] = !0, m), u);
1220
- }
1221
- return u;
1222
- }
1223
- function n(r) {
1224
- const u = {
1225
- disabled: !r.enable,
1226
- "dropdown-submenu": !0,
1227
- "f-rt-dropdown": !0
1228
- }, v = r.dropdownClass.split(" ");
1229
- return v && v.length && v.reduce((m, i) => (m[i] = !0, m), u), u;
1230
- }
1231
- function a(r) {
1232
- const u = {
1233
- disabled: !r.enable,
1234
- "dropdown-item": !0,
1235
- "f-rt-btn": !0
1236
- }, v = r.class.split(" ");
1237
- return v && v.length && v.reduce((m, i) => (m[i] = !0, m), u), u;
1238
- }
1239
- let l;
1240
- const d = /* @__PURE__ */ new Map();
1241
- function h(r, u, v) {
1242
- var i;
1243
- ((i = r.target) == null ? void 0 : i.id) === u.id && r.stopPropagation();
1244
- const m = v ? v.id : "__top_item__";
1245
- if (u.children && u.children.length && (u.expanded = !u.expanded, u.expanded ? d.set(m, u) : d.delete(m)), d.has(m) && d.get(m) !== u) {
1246
- const f = d.get(m);
1247
- f && (f.expanded = !1);
1248
- }
1249
- }
1250
- function S(r, u) {
1251
- document.body.click(), u.enable && u.onClick(r, u.id);
1252
- }
1253
- function x(r) {
1254
- return r.children.map((u) => u.children && u.children.length ? p("li", {
1255
- class: n(u),
1256
- id: u.id,
1257
- onClick: (v) => u.enable && h(v, u, r)
1258
- }, [p("span", {
1259
- id: u.id,
1260
- class: a(u),
1261
- onMouseover: (v) => u.enable && h(v, u, r)
1262
- }, [u.text, p("i", {
1263
- class: "f-icon f-icon-arrow-chevron-right",
1264
- style: "display: inline-block;float: right;line-height: 1.25rem;"
1265
- }, null)]), l(u, u)]) : p("li", {
1266
- class: a(u),
1267
- id: u.id,
1268
- onClick: (v) => S(v, u),
1269
- onMouseover: (v) => u.enable && h(v, u, r)
1270
- }, [e.shouldShowIcon(u) && p("i", {
1271
- class: e.iconClass(u)
1272
- }, null), u.text]));
1273
- }
1274
- function T(r, u, v) {
1275
- const m = {
1276
- display: r.expanded ? "block" : "none",
1277
- position: "fixed",
1278
- maxWidth: "300px",
1279
- width: "auto",
1280
- minWidth: "120px"
1281
- }, i = document.getElementsByTagName("body")[0].getClientRects()[0].width, f = u, c = f == null ? void 0 : f.getClientRects();
1282
- if (f && c && c.length) {
1283
- const {
1284
- top: w,
1285
- width: $,
1286
- left: N,
1287
- right: k,
1288
- height: B
1289
- } = c[0], y = Math.ceil(B + w);
1290
- m.top = `${y}px`, m.left = `${N}px`;
1291
- const D = r.id + "_menu", O = u ? u.querySelector("#" + D) : null;
1292
- if (O) {
1293
- m.display === "block" && (O.style.display = "block");
1294
- const j = O.getBoundingClientRect();
1295
- if (v) {
1296
- m.top = `${w - 6}px`;
1297
- const o = Math.ceil($ + N);
1298
- m.left = `${o}px`;
1299
- }
1300
- i - N - $ < j.width && (m.left = `${(v ? N : k) - j.width}px`);
1301
- }
1302
- }
1303
- return m;
1304
- }
1305
- l = function(r, u) {
1306
- var f, c;
1307
- const v = Ee(), m = u ? u.id : r.id, i = (c = (f = v == null ? void 0 : v.exposed) == null ? void 0 : f.elementRef.value) == null ? void 0 : c.querySelector("#" + m);
1308
- return p("ul", {
1309
- class: t(r),
1310
- style: T(r, i, u),
1311
- id: r.id + "_menu"
1312
- }, [x(r)]);
1313
- };
1314
- function g() {
1315
- d.forEach((r) => {
1316
- r.expanded = !1;
1317
- }), d.clear();
1318
- }
1319
- return {
1320
- renderDropdownMenu: l,
1321
- clearAllDropDownMenu: g
1322
- };
1323
- }
1324
- function Cn(e, t) {
1325
- const n = I(e.alignment), {
1326
- renderDropdownMenu: a,
1327
- clearAllDropDownMenu: l
1328
- } = gn(t);
1329
- function d(g) {
1330
- const r = {
1331
- "btn-group": !0,
1332
- "f-rt-dropdown": !0,
1333
- "f-btn-ml": n.value === "right",
1334
- "f-btn-mr": n.value === "left"
1335
- }, u = g.dropdownClass.split(" ");
1336
- return u && u.length && u.reduce((v, m) => (v[m] = !0, v), r), r;
1337
- }
1338
- function h(g) {
1339
- const r = {
1340
- btn: !0,
1341
- disabled: !g.enable,
1342
- "f-rt-btn": !0,
1343
- "btn-icontext": !!(g.icon && g.icon.trim())
1344
- };
1345
- if (g.class) {
1346
- const u = g.class.split(" ");
1347
- u && u.length && u.reduce((v, m) => (v[m] = !0, v), r);
1348
- }
1349
- return r;
1350
- }
1351
- function S(g, r) {
1352
- g.stopPropagation();
1353
- const u = r.expanded;
1354
- document.body.click(), r.expanded = !u;
1355
- }
1356
- function x(g) {
1357
- return p("div", {
1358
- id: g.id,
1359
- class: d(g)
1360
- }, [p("div", {
1361
- class: h(g),
1362
- style: "display: flex;padding-right: 0.1rem;",
1363
- onClick: (r) => g.enable && S(r, g)
1364
- }, [t.shouldShowIcon(g) && p("i", {
1365
- class: t.iconClass(g)
1366
- }, null), p("span", null, [g.text]), p("i", {
1367
- class: "f-icon f-icon-arrow-chevron-down",
1368
- style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1369
- }, null)]), a(g)]);
1370
- }
1371
- function T() {
1372
- l();
1373
- }
1374
- return {
1375
- renderToolbarDropdown: x,
1376
- clearAllDropDown: T
1377
- };
1378
- }
1379
- const {
1380
- buildResponseToolbarItems: $e
1381
- } = Se(), ze = /* @__PURE__ */ ee({
1382
- name: "FResponseToolbar",
1383
- props: we,
1384
- emits: [],
1385
- setup(e, t) {
1386
- const n = I($e(e.items)), a = I(), l = I(), d = I(), h = I(e.alignment), S = {
1387
- id: "__more_buttons__",
1388
- text: "更多"
1389
- }, x = I(new le(S)), T = qe(), g = M(() => x.value.children.length > 0), r = M(() => {
1390
- const y = {
1391
- "f-toolbar": !0,
1392
- "f-response-toolbar": !0,
1393
- "position-relative": !0
1394
- };
1395
- if (e.customClass) {
1396
- const D = e.customClass.split(" ");
1397
- D && D.length && D.reduce((O, j) => (O[j] = !0, O), y);
1398
- }
1399
- return y;
1400
- }), u = M(() => ({
1401
- "d-flex": !0,
1402
- "flex-nowrap": !0,
1403
- "justify-content-end": h.value === "right",
1404
- "justify-content-start": h.value === "left"
1405
- })), {
1406
- renderToolbarDropdown: v,
1407
- clearAllDropDown: m
1408
- } = Cn(e, T);
1409
- function i() {
1410
- n.value.filter((y) => y.children && y.children.length > 0).forEach((y) => {
1411
- y.expanded = !1;
1412
- }), x.value.expanded = !1, m();
1413
- }
1414
- function f(y) {
1415
- const D = {
1416
- btn: !0,
1417
- "f-rt-btn": !0,
1418
- "f-btn-ml": h.value === "right",
1419
- "f-btn-mr": h.value === "left",
1420
- "btn-icontext": !!(y.icon && y.icon.trim())
1421
- };
1422
- if (y.class) {
1423
- const O = y.class.split(" ");
1424
- O && O.length && O.reduce((j, o) => (j[o] = !0, j), D);
1425
- }
1426
- return D;
1427
- }
1428
- function c(y, D) {
1429
- document.body.click(), D.onClick(y, D.id);
1430
- }
1431
- function w(y) {
1432
- return p("button", {
1433
- type: "button",
1434
- class: f(y),
1435
- id: y.id,
1436
- disabled: !y.enable,
1437
- onClick: (D) => c(D, y)
1438
- }, [T.shouldShowIcon(y) && p("i", {
1439
- class: T.iconClass(y)
1440
- }, null), y.text]);
1441
- }
1442
- const $ = /* @__PURE__ */ new Map(), N = [];
1443
- function k(y) {
1444
- const D = d.value;
1445
- let O = y;
1446
- const j = Array.from(D.children), o = j[j.length - 1].id === "__more_buttons__" ? j[j.length - 1] : null;
1447
- if (o) {
1448
- const A = o.computedStyleMap().get("margin-left"), H = o.computedStyleMap().get("margin-right"), q = (A ? A.value : 0) + o.getBoundingClientRect().width + (H ? H.value : 0);
1449
- O -= q;
1450
- }
1451
- const b = j.filter((A) => A.id !== "__more_buttons__");
1452
- for (const A of b) {
1453
- const H = A.computedStyleMap().get("margin-left"), q = A.computedStyleMap().get("margin-right"), Y = (H ? H.value : 0) + A.getBoundingClientRect().width + (q ? q.value : 0);
1454
- O < Y ? ($.set(A.id, !0), N.push({
1455
- id: A.id,
1456
- width: Y
1457
- })) : O -= Y;
1458
- }
1459
- if (N.length)
1460
- for (let A = N.length - 1; A >= 0; A--) {
1461
- const H = N[A].width;
1462
- if (O >= H)
1463
- O -= H, $.delete(N[A].id), N.pop();
1464
- else
1465
- break;
1466
- }
1467
- const s = Object.assign({}, x.value);
1468
- s.children = [];
1469
- const C = new le(s), E = n.value.reduce((A, H) => ($.has(H.id) && C.children.push(H), H.visible = !$.has(H.id), A.push(H), A), []);
1470
- x.value = C, n.value = E;
1471
- }
1472
- const B = new ResizeObserver((y) => {
1473
- if (y.length) {
1474
- const O = y[0].contentRect.width, o = d.value.getBoundingClientRect().width;
1475
- (O < o || N.length) && (k(O), i());
1476
- }
1477
- });
1478
- return K(() => {
1479
- const y = l.value;
1480
- B.observe(y), document.body.addEventListener("click", i), document.body.addEventListener("wheel", i);
1481
- }), fe(() => {
1482
- B.disconnect(), document.body.removeEventListener("click", i), document.body.removeEventListener("wheel", i);
1483
- }), oe(() => e.items, () => {
1484
- n.value = $e(e.items);
1485
- }), t.expose({
1486
- elementRef: a
1487
- }), () => p("div", {
1488
- class: r.value,
1489
- ref: a
1490
- }, [p("div", {
1491
- ref: l,
1492
- class: u.value
1493
- }, [p("div", {
1494
- ref: d,
1495
- class: "d-inline-block f-response-content",
1496
- style: "white-space: nowrap;"
1497
- }, [n.value.filter((y) => y.visible).map((y) => y.children && y.children.length > 0 ? v(y) : w(y)), g.value && v(x.value)])])]);
1498
- }
1499
- }), he = /* @__PURE__ */ ee({
1500
- name: "FTabs",
1501
- props: Te,
1502
- emits: ["tabChange", "tabRemove"],
1503
- setup(e, t) {
1504
- const n = I(e.tabType), a = re(), l = I(e.customClass), d = re(), h = re(), S = wt(e, t, d), {
1505
- activeId: x,
1506
- changeTitleStyle: T,
1507
- tabPages: g,
1508
- addTab: r,
1509
- updateTab: u,
1510
- selectTabByTabId: v,
1511
- toolbarItems: m
1512
- } = S, i = We(e, h, S), f = He(e, d, i, S), {
1513
- previousButtonClass: c,
1514
- nextButtonClass: w,
1515
- nextButtonGroupClass: $,
1516
- scrollTab: N,
1517
- updateNavigationLayout: k
1518
- } = f, B = Re(e, S), {
1519
- hideDropDown: y
1520
- } = B, D = xt(e, d, f, i, S), O = D, j = _e(e, d, f, i, S), o = /* @__PURE__ */ new Map([["default", D], ["one-page", O], ["pills", j]]);
1521
- M(() => {
1522
- const _ = g.value.find((R) => R.props.id === x.value);
1523
- return _ == null ? void 0 : _.slots;
1524
- });
1525
- const b = M(() => {
1526
- const _ = g.value.find((W) => W.props.id === x.value);
1527
- return (_ == null ? void 0 : _.props.toolbarPosition) === "inHead";
1528
- }), s = M(() => e.fill || e.tabType === "fill");
1529
- de("tabs", {
1530
- activeId: x,
1531
- addTab: r,
1532
- updateTab: u,
1533
- tabPages: g,
1534
- tabType: n,
1535
- shouldFillParentContaner: s
1536
- });
1537
- const C = M(() => e.tabType === "pills"), E = M(() => ({
1538
- "farris-tabs-header": !0,
1539
- "farris-tabs-inHead": b.value,
1540
- "farris-tabs-inContent": !b.value,
1541
- "farris-tabs-nav-fill": s.value,
1542
- "farris-tabs-nav-pills": C.value
1543
- })), A = M(() => ({
1544
- width: b.value && e.titleWidth ? `${e.titleWidth}%` : ""
1545
- })), H = M(() => {
1546
- const _ = {
1547
- "farris-tabs": !0,
1548
- "f-utils-fill-flex-column": s.value,
1549
- "flex-column": e.position === "top",
1550
- "flex-column-reverse": e.position === "bottom",
1551
- "flex-row": e.position === "left",
1552
- "flex-row-reverse": e.position === "right",
1553
- "one-page": e.tabType === "one-page"
1554
- };
1555
- return l.value && l.value.split(" ").reduce((R, W) => (R[W] = !0, R), _), _;
1556
- });
1557
- K(() => {
1558
- g.value.length && (x.value = e.activeId || g.value[0].props.id, v(x.value)), ne(() => {
1559
- k();
1560
- }), T(d), window.addEventListener("click", (_) => {
1561
- var R;
1562
- y.value || (R = a.value) != null && R.contains(_.target) || (y.value = !0);
1563
- }), window.addEventListener("resize", () => {
1564
- k();
1565
- });
1566
- });
1567
- function q() {
1568
- return p("button", {
1569
- title: "left-arrow-button",
1570
- type: "button",
1571
- class: c.value,
1572
- onClick: () => {
1573
- N(0, -1);
1574
- }
1575
- }, null);
1576
- }
1577
- function Y() {
1578
- return p("button", {
1579
- title: "right-arrow-button",
1580
- type: "button",
1581
- class: w.value,
1582
- onClick: () => {
1583
- N(0, 1);
1584
- }
1585
- }, null);
1586
- }
1587
- const {
1588
- renderMorePagesButtton: Z
1589
- } = Fe(e, B, f, S), Q = (_) => {
1590
- t.emit("Click", _);
1591
- };
1592
- function ae() {
1593
- return m.value.length ? p(ze, {
1594
- items: m.value,
1595
- onClick: Q
1596
- }, null) : null;
1597
- }
1598
- const te = o.get(e.tabType) || o.get("default");
1599
- function P() {
1600
- var _, R, W, V;
1601
- return p("div", {
1602
- class: E.value
1603
- }, [p("div", {
1604
- class: "farris-tabs-header-pre"
1605
- }, [(R = (_ = t.slots).headerPrefix) == null ? void 0 : R.call(_)]), p("div", {
1606
- class: "farris-tabs-title scroll-tabs",
1607
- style: A.value
1608
- }, [q(), te && te(), p("div", {
1609
- class: $.value
1610
- }, [Y(), Z()])]), ae(), p("div", {
1611
- class: "farris-tabs-header-post"
1612
- }, [(V = (W = t.slots).headerSuffix) == null ? void 0 : V.call(W)])]);
1613
- }
1614
- const L = M(() => ({
1615
- "farris-tabs-content": !0,
1616
- "f-utils-fill-flex-column": s.value
1617
- }));
1618
- function F() {
1619
- var _, R;
1620
- return p("div", {
1621
- class: L.value,
1622
- ref: h
1623
- }, [(R = (_ = t.slots).default) == null ? void 0 : R.call(_)]);
1624
- }
1625
- return () => p("div", {
1626
- class: H.value,
1627
- ref: a
1628
- }, [P(), F()]);
1629
- }
1630
- }), Tn = /* @__PURE__ */ new Map([
1631
- ["appearance", be],
1632
- ["toolbar", wn]
1633
- ]);
1634
- function wn(e, t, n) {
1635
- return t && t.contents && t.contents.length && t.contents.forEach((a) => {
1636
- a.title && (a.text = a.title);
1637
- }), { toolbar: t };
1638
- }
1639
- const Sn = "https://json-schema.org/draft/2020-12/schema", xn = "https://farris-design.gitee.io/tab-page.schema.json", jn = "tab-page", Dn = "A Farris Container Component", Bn = "object", On = {
1640
- id: {
1641
- description: "The unique identifier for a tab-page Item",
1642
- type: "string"
1643
- },
1644
- type: {
1645
- description: "The type string of tab-page Item component",
1646
- type: "string",
1647
- default: "tab-page"
1648
- },
1649
- contents: {
1650
- description: "",
1651
- type: "array",
1652
- default: []
1653
- },
1654
- title: {
1655
- description: "",
1656
- type: "string",
1657
- default: "标题"
1658
- },
1659
- toolbar: {
1660
- description: "",
1661
- type: "object"
1662
- }
1663
- }, $n = [
1664
- "id",
1665
- "type",
1666
- "contents"
1667
- ], In = {
1668
- $schema: Sn,
1669
- $id: xn,
1670
- title: jn,
1671
- description: Dn,
1672
- type: Bn,
1673
- properties: On,
1674
- required: $n
1675
- }, Mn = "tab-page", Pn = "A Farris Component", En = "object", An = {
1676
- basic: {
1677
- description: "Basic Infomation",
1678
- title: "基本信息",
1679
- properties: {
1680
- id: {
1681
- description: "工具栏按钮的标识",
1682
- title: "标识",
1683
- type: "string",
1684
- readonly: !0
1685
- },
1686
- title: {
1687
- description: "工具栏按钮的标识",
1688
- title: "标题",
1689
- type: "string"
1690
- }
1691
- }
1692
- },
1693
- appearance: {
1694
- description: "",
1695
- title: "外观",
1696
- properties: {
1697
- appearance: {
1698
- description: "",
1699
- type: "cascade",
1700
- title: "样式",
1701
- properties: {
1702
- class: {
1703
- description: "组件的CSS样式",
1704
- title: "class样式",
1705
- type: "string"
1706
- },
1707
- style: {
1708
- description: "组件的内容样式",
1709
- title: "style样式",
1710
- type: "modal",
1711
- showClearButton: !0
1712
- },
1713
- height: {
1714
- description: "组件的高度",
1715
- title: "高度(px)",
1716
- type: "number",
1717
- min: 0,
1718
- decimals: 0
1719
- }
1720
- }
1721
- },
1722
- size: {
1723
- description: "",
1724
- type: "cascade",
1725
- title: "尺寸",
1726
- properties: {
1727
- width: {
1728
- description: "组件的宽度",
1729
- title: "宽度(px)",
1730
- type: "number",
1731
- min: 0,
1732
- decimals: 0
1733
- },
1734
- height: {
1735
- description: "组件的高度",
1736
- title: "高度(px)",
1737
- type: "number",
1738
- min: 0,
1739
- decimals: 0
1740
- }
1741
- }
1742
- }
1743
- }
1744
- },
1745
- behavior: {
1746
- description: "",
1747
- title: "行为",
1748
- properties: {
1749
- visible: {
1750
- description: "运行时组件是否可见",
1751
- type: "boolean",
1752
- title: "是否可见",
1753
- editor: {
1754
- type: "combo-list",
1755
- data: [
1756
- {
1757
- value: !0,
1758
- name: "是"
1759
- },
1760
- {
1761
- value: !1,
1762
- name: "否"
1763
- }
1764
- ]
1765
- }
1766
- },
1767
- removeable: {
1768
- description: "是否可移除",
1769
- type: "boolean",
1770
- title: "是否可移除",
1771
- editor: {
1772
- type: "combo-list",
1773
- data: [
1774
- {
1775
- value: !0,
1776
- name: "是"
1777
- },
1778
- {
1779
- value: !1,
1780
- name: "否"
1781
- }
1782
- ]
1783
- }
1784
- },
1785
- headerTemplate: {
1786
- description: "标签页模板",
1787
- type: "modal",
1788
- title: "标签页模板",
1789
- editor: {
1790
- type: "code-editor"
1791
- },
1792
- editorParams: {
1793
- language: "html"
1794
- }
1795
- }
1796
- }
1797
- }
1798
- }, kn = {
1799
- title: Mn,
1800
- description: Pn,
1801
- type: En,
1802
- categories: An
1803
- }, xe = {
1804
- tabWidth: { type: Number, default: -1 },
1805
- id: { type: String, default: "" },
1806
- customTitleClass: { type: String, default: "" },
1807
- titleOverflow: { type: Boolean, default: !1 },
1808
- title: { type: String, default: "" },
1809
- selected: { type: Boolean, default: !1 },
1810
- disabled: { type: Boolean, default: !1 },
1811
- removeable: { type: Boolean, default: !1 },
1812
- show: { type: Boolean, default: !0 },
1813
- toolbar: { type: Object, default: {} },
1814
- toolbarPosition: { type: String, default: "inHead" }
1815
- }, Ie = ie(xe, In, Tn, void 0, kn);
1816
- function Nn(e, t, n) {
1817
- return t ? { enableAccordion: n.accordionMode } : { enableAccordion: "" };
1818
- }
1819
- function Ln(e, t) {
1820
- return {
1821
- buttons: t.contents,
1822
- buttonPosition: t.position
1823
- };
1824
- }
1825
- const _n = /* @__PURE__ */ new Map([
1826
- ["appearance", be],
1827
- ["expanded", "expandStatus"],
1828
- ["enableAccordion", Nn],
1829
- ["toolbar", Ln]
1830
- ]);
1831
- function Fn(e, t, n) {
1832
- return t;
1833
- }
1834
- const Hn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/section.schema.json", Wn = "section", Vn = "A Farris Container Component", qn = "object", zn = {
1835
- id: {
1836
- description: "The unique identifier for a Section",
1837
- type: "string"
1838
- },
1839
- type: {
1840
- description: "The type string of Section component",
1841
- type: "string",
1842
- default: "section"
1843
- },
1844
- appearance: {
1845
- description: "",
1846
- type: "object",
1847
- properties: {
1848
- class: {
1849
- type: "string"
1850
- },
1851
- style: {
1852
- type: "string"
1853
- }
1854
- },
1855
- default: {}
1856
- },
1857
- contentClass: {
1858
- description: "",
1859
- type: "string",
1860
- default: ""
1861
- },
1862
- contents: {
1863
- description: "",
1864
- type: "array",
1865
- default: []
1866
- },
1867
- enableAccordion: {
1868
- description: "",
1869
- type: "boolean",
1870
- default: !1
1871
- },
1872
- accordionMode: {
1873
- description: "",
1874
- type: "string",
1875
- default: "default"
1876
- },
1877
- enableMaximize: {
1878
- description: "",
1879
- type: "boolean",
1880
- default: !1
1881
- },
1882
- expanded: {
1883
- description: "",
1884
- type: "boolean",
1885
- default: !0
1886
- },
1887
- fill: {
1888
- description: "",
1889
- type: "boolean",
1890
- default: !1
1891
- },
1892
- headerClass: {
1893
- description: "",
1894
- type: "string",
1895
- default: ""
1896
- },
1897
- size: {
1898
- description: "",
1899
- type: "object",
1900
- properties: {
1901
- width: {
1902
- type: "number"
1903
- },
1904
- height: {
1905
- type: "number"
1906
- }
1907
- },
1908
- default: null
1909
- },
1910
- showHeader: {
1911
- description: "",
1912
- type: "string",
1913
- default: !0
1914
- },
1915
- mainTitle: {
1916
- description: "",
1917
- type: "string",
1918
- default: ""
1919
- },
1920
- subTitle: {
1921
- description: "",
1922
- type: "string",
1923
- default: ""
1924
- },
1925
- headerContentClass: {
1926
- description: "",
1927
- type: "string",
1928
- default: ""
1929
- },
1930
- extendClass: {
1931
- description: "",
1932
- type: "string",
1933
- default: ""
1934
- },
1935
- visible: {
1936
- description: "",
1937
- type: "boolean",
1938
- default: !0
1939
- },
1940
- toolbar: {
1941
- description: "",
1942
- type: "object",
1943
- properties: {
1944
- type: {
1945
- type: "string",
1946
- default: "SectionToolbar"
1947
- },
1948
- position: {
1949
- type: "string",
1950
- default: "inHead"
1951
- },
1952
- contents: {
1953
- type: "array",
1954
- default: []
1955
- }
1956
- },
1957
- default: null
1958
- }
1959
- }, Gn = [
1960
- "id",
1961
- "type",
1962
- "contents"
1963
- ], Un = {
1964
- $schema: Hn,
1965
- $id: Rn,
1966
- title: Wn,
1967
- description: Vn,
1968
- type: qn,
1969
- properties: zn,
1970
- required: Gn
1971
- }, Jn = "section", Zn = "A Farris Container Component", Qn = "object", Xn = {
1972
- basic: {
1973
- title: "基本信息",
1974
- description: "Basic Infomation",
1975
- properties: {
1976
- id: {
1977
- title: "标识",
1978
- type: "string",
1979
- description: "The identifier of a component.",
1980
- readonly: !0
1981
- },
1982
- type: {
1983
- title: "类型",
1984
- type: "enum",
1985
- description: "The type of a component.",
1986
- editor: {
1987
- type: "combo-list",
1988
- data: []
1989
- }
1990
- },
1991
- mainTitle: {
1992
- title: "主标题",
1993
- type: "string",
1994
- description: ""
1995
- },
1996
- subTitle: {
1997
- title: "副标题",
1998
- type: "string",
1999
- description: ""
2000
- }
2001
- }
2002
- },
2003
- appearance: {
2004
- title: "样式",
2005
- description: "Appearance",
2006
- properties: {
2007
- class: {
2008
- title: "class",
2009
- type: "string",
2010
- description: ""
2011
- },
2012
- style: {
2013
- title: "style",
2014
- type: "string",
2015
- description: ""
2016
- }
2017
- }
2018
- },
2019
- behavior: {
2020
- title: "行为",
2021
- description: "",
2022
- properties: {
2023
- visible: {
2024
- title: "可见",
2025
- type: "boolean",
2026
- description: ""
2027
- },
2028
- fill: {
2029
- title: "填充",
2030
- type: "boolean",
2031
- description: "To fill the space of parent container in flex layout."
2032
- },
2033
- showHeader: {
2034
- title: "显示标题区域",
2035
- type: "boolean",
2036
- description: ""
2037
- },
2038
- enableMaximize: {
2039
- title: "显示最大化",
2040
- type: "boolean",
2041
- description: "",
2042
- visible: {
2043
- showHeader: !0
2044
- }
2045
- },
2046
- enableCollapse: {
2047
- title: "显示收折",
2048
- type: "boolean",
2049
- description: "",
2050
- editor: {
2051
- type: "combo-list",
2052
- textField: "name",
2053
- valueField: "value",
2054
- data: [
2055
- {
2056
- value: !0,
2057
- name: "是"
2058
- },
2059
- {
2060
- value: !1,
2061
- name: "否"
2062
- }
2063
- ]
2064
- },
2065
- visible: {
2066
- showHeader: !0
2067
- }
2068
- },
2069
- expanded: {
2070
- title: "展开",
2071
- type: "boolean",
2072
- description: "",
2073
- readonly: {
2074
- enableCollapse: !1
2075
- },
2076
- editor: {
2077
- type: "combo-list",
2078
- textField: "name",
2079
- valueField: "value",
2080
- data: [
2081
- {
2082
- value: !0,
2083
- name: "是"
2084
- },
2085
- {
2086
- value: !1,
2087
- name: "否"
2088
- }
2089
- ]
2090
- },
2091
- visible: {
2092
- showHeader: !0
2093
- }
2094
- },
2095
- enableAccordion: {
2096
- title: "允许收折",
2097
- type: "boolean",
2098
- description: "",
2099
- visible: {
2100
- showHeader: !0
2101
- }
2102
- },
2103
- accordionMode: {
2104
- title: "收折模式",
2105
- type: "enum",
2106
- description: "",
2107
- readonly: {
2108
- enableAccordion: !1
2109
- },
2110
- visible: {
2111
- showHeader: !0
2112
- },
2113
- editor: {
2114
- type: "combo-list",
2115
- data: [
2116
- {
2117
- value: "default",
2118
- name: "默认"
2119
- }
2120
- ]
2121
- }
2122
- }
2123
- }
2124
- },
2125
- toolbar: {
2126
- title: "工具栏",
2127
- description: "",
2128
- properties: {
2129
- buttonSize: {
2130
- title: "按钮尺寸",
2131
- type: "enum",
2132
- description: "",
2133
- editor: {
2134
- type: "combo-list",
2135
- textField: "name",
2136
- valueField: "value",
2137
- data: [
2138
- {
2139
- value: "default",
2140
- name: "标准"
2141
- },
2142
- {
2143
- value: "large",
2144
- name: "大尺寸"
2145
- }
2146
- ]
2147
- }
2148
- },
2149
- popupDirection: {
2150
- title: "弹出方向",
2151
- type: "enum",
2152
- description: "",
2153
- editor: {
2154
- type: "combo-list",
2155
- textField: "name",
2156
- valueField: "value",
2157
- data: [
2158
- {
2159
- value: "default",
2160
- name: "自适应"
2161
- },
2162
- {
2163
- value: "top",
2164
- name: "向上"
2165
- },
2166
- {
2167
- value: "bottom",
2168
- name: "向下"
2169
- }
2170
- ]
2171
- }
2172
- }
2173
- }
2174
- },
2175
- extends: {
2176
- title: "扩展样式",
2177
- description: "",
2178
- properties: {
2179
- headerClass: {
2180
- title: "标题区",
2181
- type: "string",
2182
- description: ""
2183
- },
2184
- titleClass: {
2185
- title: "主标题",
2186
- type: "string",
2187
- description: ""
2188
- },
2189
- contentClass: {
2190
- title: "内容区",
2191
- type: "string",
2192
- description: ""
2193
- },
2194
- toolbarClass: {
2195
- type: "string",
2196
- title: "工具栏",
2197
- description: ""
2198
- }
2199
- }
2200
- }
2201
- }, Yn = {
2202
- title: Jn,
2203
- description: Zn,
2204
- type: Qn,
2205
- categories: Xn
2206
- }, Ge = {
2207
- /** 设置内容区域样式 */
2208
- contentClass: { type: String, default: "" },
2209
- /** 自定义样式 */
2210
- customClass: { type: String, default: "" },
2211
- /** 设置是否启用収折功能。支持:空字符串,不启用収折 | default 默认収折方式 || custom自定义収折方式 */
2212
- enableAccordion: { type: String, default: "" },
2213
- /** 设置初始是否处于展开状态,支持:true 内容区域被展开|false 内容区域被収折 */
2214
- expandStatus: { type: Boolean, default: !0 },
2215
- /** 设置Section的主标题 */
2216
- mainTitle: { type: String, default: "" },
2217
- /** 设置是否显示头部区域 */
2218
- showHeader: { type: Boolean, default: !0 },
2219
- /** 设置Section的副标题 */
2220
- subTitle: { type: String, default: "" },
2221
- /** 展开文本 */
2222
- expandLabel: { type: String, default: "展开" },
2223
- /** 收起文本 */
2224
- collapseLabel: { type: String, default: "收起" },
2225
- /** 头部区域的自定义样式。配置头部自定义模板后,此属性有效。 */
2226
- headerClass: { type: String, default: "" },
2227
- /** 设置是否启用最大化 */
2228
- enableMaximize: { type: Boolean, default: !1 },
2229
- /** 头部扩展区域的自定义样式。配置头部扩展区域模板后,此属性有效。 */
2230
- headerContentClass: { type: String, default: "" },
2231
- /** 扩展区域的自定义样式。配置扩展区域模板后,此属性有效。 */
2232
- extendClass: { type: String, default: "" },
2233
- /** 按钮组 */
2234
- buttons: { type: Array, default: [] },
2235
- /** 按钮组的位置,inHead:头部区域| inContent:内容区域 */
2236
- buttonPosition: { type: String, default: "inHead" },
2237
- /** 设置是否铺满剩余空间,支持:false按照内容自动高度|true 铺满剩余空间 */
2238
- fill: { type: Boolean, default: !1 }
2239
- // 暂未使用该属性
2240
- // clickThrottleTime: { type: Number, default: 350 },
2241
- // context: { type: Object },
2242
- // 暂未使用该属性
2243
- // index: { type: Number },
2244
- // maxStatus: { type: Boolean, default: false },
2245
- // showToolbarMoreButton: { type: Boolean, default: true },
2246
- // 暂未使用该属性
2247
- // toolbarPosition: { type: String, default: '' },
2248
- // toolbarButtons: { type: Array<object>, default: [] },
2249
- // toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
2250
- };
2251
- ie(Ge, Un, _n, Fn, Yn);
2252
- function Kn(e, t, n) {
2253
- let a;
2254
- function l() {
2255
- !e || !t.value || (n.value = !n.value, n.value ? d() : h());
2256
- }
2257
- function d() {
2258
- a = e.value.nextElementSibling;
2259
- const x = document && document.querySelector("body");
2260
- x && (x.appendChild(e.value), e.value.style.zIndex = S());
2261
- }
2262
- function h() {
2263
- a ? t.value.insertBefore(
2264
- e.value,
2265
- a
2266
- ) : t.value.appendChild(e.value), e.value.style.zIndex = null;
2267
- }
2268
- function S(x = 1) {
2269
- const T = [
2270
- "body>.f-datagrid-settings-simple-host",
2271
- "body>div",
2272
- "body>farris-dialog>.farris-modal.show",
2273
- "body>.farris-modal.show",
2274
- "body>farris-filter-panel>.f-filter-panel-wrapper",
2275
- "body .f-sidebar-show>.f-sidebar-main",
2276
- "body>.popover.show",
2277
- "body>filter-row-panel>.f-datagrid-filter-panel",
2278
- "body>.f-section-maximize"
2279
- ], g = Array.from(document.body.querySelectorAll(T.join(","))).filter((u) => u).map((u) => {
2280
- const { display: v, zIndex: m } = window.getComputedStyle(u);
2281
- return v === "none" ? 0 : parseInt(m, 10);
2282
- }).filter((u) => u);
2283
- let r = Math.max(...g);
2284
- return r < 1040 && (r = 1040), r + x;
2285
- }
2286
- return { onClickMaxMinIcon: l };
2287
- }
2288
- function Ue(e, t) {
2289
- const n = I(e.buttons), a = M(() => e.buttonPosition === "inHead" ? "right" : "left"), l = M(() => "f-section-toolbar" + (e.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), d = M(() => {
2290
- e.buttons && e.buttons.length > 0 && e.buttonPosition;
2291
- });
2292
- function h(S) {
2293
- t.emit("Click", S);
2294
- }
2295
- return () => d && p(ze, {
2296
- customClass: l.value,
2297
- items: n.value,
2298
- onClick: h,
2299
- alignment: a.value
2300
- }, null);
2301
- }
2302
- function eo(e, t, n, a, l, d) {
2303
- const h = I(e.mainTitle), S = I(e.subTitle), x = M(() => e.buttonPosition), T = Ue(e, t), {
2304
- onClickMaxMinIcon: g
2305
- } = Kn(a, l, d), r = M(() => !!e.subTitle), u = M(() => e.enableMaximize), v = M(() => e.enableAccordion != ""), m = M(() => {
2306
- const k = {
2307
- "f-section-header": !0
2308
- };
2309
- return t.slots.header && e.headerClass.split(" ").reduce((y, D) => (y[D] = !0, y), k), k;
2310
- });
2311
- function i(k) {
2312
- k.stopPropagation(), e.enableAccordion !== "" && (n.value = !n.value);
2313
- }
2314
- function f() {
2315
- const k = M(() => ({
2316
- btn: !0,
2317
- "f-btn-collapse-expand": !0,
2318
- "f-btn-mx": !0,
2319
- "f-state-expand": n.value
2320
- })), B = M(() => ({
2321
- "f-icon": !0,
2322
- "f-icon-maximize": !d.value,
2323
- "f-icon-minimize": d.value
2324
- }));
2325
- return p("div", {
2326
- class: "f-max-accordion"
2327
- }, [u.value ? p("span", {
2328
- class: B.value,
2329
- onClick: g
2330
- }, null) : "", v.value ? p("button", {
2331
- class: k.value,
2332
- onClick: i
2333
- }, [p("span", null, [n.value ? e.collapseLabel : e.expandLabel])]) : ""]);
2334
- }
2335
- function c() {
2336
- return t.slots.header ? p("div", {
2337
- class: m.value
2338
- }, [t.slots.header()]) : "";
2339
- }
2340
- function w() {
2341
- return p("div", {
2342
- class: "f-title",
2343
- onClick: i
2344
- }, [p("h4", {
2345
- class: "f-title-text"
2346
- }, [h.value]), r.value && p("span", null, [S.value])]);
2347
- }
2348
- function $() {
2349
- const k = M(() => {
2350
- const B = {
2351
- "f-content": !0
2352
- };
2353
- return e.headerContentClass && e.headerContentClass.split(" ").reduce((D, O) => (D[O] = !0, D), B), B;
2354
- });
2355
- return t.slots.headerContent ? p("div", {
2356
- class: k.value
2357
- }, [t.slots.headerContent()]) : "";
2358
- }
2359
- function N() {
2360
- return p("div", {
2361
- class: m.value
2362
- }, [t.slots.headerTitle ? t.slots.headerTitle() : w(), $(), x.value === "inHead" && T(), (u.value || v.value) && f()]);
2363
- }
2364
- return () => e.showHeader && (t.slots.header ? c() : N());
2365
- }
2366
- const Je = /* @__PURE__ */ ee({
2367
- name: "FSection",
2368
- props: Ge,
2369
- emits: [],
2370
- setup(e, t) {
2371
- const n = I();
2372
- let a = I();
2373
- const l = I(e.customClass), d = M(() => e.enableAccordion), h = I(e.expandStatus), S = M(() => e.buttonPosition), x = I(!1), T = eo(e, t, h, n, a, x), g = Ue(e, t), r = M(() => {
2374
- const f = {
2375
- "f-section": !0,
2376
- "f-section-accordion": d.value === "default",
2377
- "f-state-collapse": (d.value === "default" || d.value === "custom") && !h.value,
2378
- "f-section-custom-accordion": d.value === "custom",
2379
- "f-section-fill": e.fill,
2380
- "f-section-maximize": x.value
2381
- };
2382
- return l.value && l.value.split(" ").reduce((c, w) => (c[w] = !0, c), f), f;
2383
- }), u = M(() => {
2384
- const f = e.contentClass.split(" "), c = {
2385
- "f-section-content": !0
2386
- };
2387
- return f.reduce((w, $) => (w[$] = !0, w), c), c;
2388
- }), v = M(() => {
2389
- const f = e.extendClass.split(" "), c = {
2390
- "f-section-extend": !0
2391
- };
2392
- return f.reduce((w, $) => (w[$] = !0, w), c), c;
2393
- });
2394
- function m() {
2395
- return t.slots.extend && p("div", {
2396
- class: v.value
2397
- }, [t.slots.extend()]);
2398
- }
2399
- function i() {
2400
- return p("div", {
2401
- class: u.value
2402
- }, [S.value === "inContent" && g(), t.slots.default && t.slots.default()]);
2403
- }
2404
- return K(() => {
2405
- n && n.value && (a.value = n.value.parentElement);
2406
- }), () => p("div", {
2407
- class: r.value,
2408
- ref: n
2409
- }, [T(), m(), i()]);
2410
- }
2411
- });
2412
- function to(e) {
2413
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ae(e);
2414
- }
2415
- const ve = /* @__PURE__ */ ee({
2416
- name: "FTabPage",
2417
- props: xe,
2418
- emits: [],
2419
- setup(e, t) {
2420
- const n = X("tabs"), a = I(e.show), l = {
2421
- slots: t.slots,
2422
- props: e
2423
- }, d = I((n == null ? void 0 : n.tabType.value) || "default");
2424
- K(() => {
2425
- const v = n == null ? void 0 : n.tabPages.value.findIndex((m) => m.props.id === e.id);
2426
- !v || v === -1 ? n == null || n.addTab(l) : v > -1 && (a.value = !1, console.warn(`已经存在id为${e.id}的页签啦`));
2427
- }), fe(() => {
2428
- });
2429
- const h = M(() => (e == null ? void 0 : e.id) === (n == null ? void 0 : n.activeId.value)), S = M(() => ({
2430
- display: h.value ? "" : "none"
2431
- }));
2432
- oe(() => e, (v) => {
2433
- n == null || n.updateTab({
2434
- props: v,
2435
- slots: t.slots
2436
- });
2437
- }, {
2438
- immediate: !0,
2439
- deep: !0
2440
- });
2441
- function x() {
2442
- var m, i;
2443
- const v = (i = (m = t.slots).default) == null ? void 0 : i.call(m);
2444
- return p(Je, {
2445
- "main-title": e.title,
2446
- class: "farris-tab-page"
2447
- }, to(v) ? v : {
2448
- default: () => [v]
2449
- });
2450
- }
2451
- const T = M(() => ({
2452
- "farris-tab-page": !0,
2453
- "f-utils-fill-flex-column": h.value && (n == null ? void 0 : n.shouldFillParentContaner.value)
2454
- }));
2455
- function g() {
2456
- var m, i;
2457
- const v = (i = (m = t.slots).default) == null ? void 0 : i.call(m);
2458
- return p("div", {
2459
- class: T.value,
2460
- style: S.value
2461
- }, [v]);
2462
- }
2463
- const u = (/* @__PURE__ */ new Map([["default", g], ["one-page", x]])).get(d.value) || g;
2464
- return () => a.value ? u() : null;
2465
- }
2466
- });
2467
- function no(e, t, n, a, l) {
2468
- const {
2469
- activeId: d,
2470
- removeTab: h,
2471
- selectTab: S,
2472
- removeDesignTab: x,
2473
- selectDesignTab: T
2474
- } = l, g = M(() => ({
2475
- "st-tab-text": !0,
2476
- "farris-title-auto": e.autoTitleWidth
2477
- })), r = X("MessageBoxService"), u = M(() => {
2478
- const O = {
2479
- "farris-component": !0,
2480
- "nav-item": !0,
2481
- "d-none": t.show !== void 0 ? !t.show : !1,
2482
- "f-state-active": t.id === d.value,
2483
- "f-state-disable": t.disabled
2484
- };
2485
- return O[`${t.id}-design-item`] = !0, O;
2486
- }), v = M(() => ({
2487
- width: `${t.tabWidth}px`
2488
- })), m = M(() => ({
2489
- "nav-link": !0,
2490
- "tabs-text-truncate": !0,
2491
- active: t.id === d.value,
2492
- disabled: t.disabled
2493
- }));
2494
- function i(O) {
2495
- return p("span", {
2496
- class: g.value,
2497
- title: O.title
2498
- }, [O.title]);
2499
- }
2500
- function f(O) {
2501
- return O.slots.title ? O.slots.title : i;
2502
- }
2503
- const c = f(n), w = I(t.removeable);
2504
- function $() {
2505
- return p("span", {
2506
- class: "st-drop-close",
2507
- onClick: (O) => h(O, t.id)
2508
- }, [p("i", {
2509
- class: "f-icon f-icon-close"
2510
- }, null)]);
2511
- }
2512
- function N(O) {
2513
- S(t.id), e.tabType === "one-page" && a.scrollToByPaggId(t.id);
2514
- }
2515
- function k(O) {
2516
- T(O, t.id);
2517
- }
2518
- function B(O) {
2519
- r && r.question(`确定删除标签页【${n.props.title}】?`, void 0, () => {
2520
- x(O, t.id);
2521
- }, () => {
2522
- });
2523
- }
2524
- function y() {
2525
- return p("div", {
2526
- role: "button",
2527
- class: "btn component-settings-button",
2528
- title: "删除",
2529
- ref: "removeComponent",
2530
- onClick: (O) => B(O)
2531
- }, [p("i", {
2532
- class: "f-icon f-icon-yxs_delete"
2533
- }, null)]);
2534
- }
2535
- function D() {
2536
- return p("div", {
2537
- class: "component-btn-group",
2538
- "data-noattach": "true"
2539
- }, [p("div", null, [y()])]);
2540
- }
2541
- return p("li", {
2542
- onClick: (O) => k(O),
2543
- class: u.value,
2544
- style: v.value,
2545
- id: `${t.id}-design-item`
2546
- }, [D(), p("a", {
2547
- class: m.value,
2548
- onClick: N
2549
- }, [c(t), w.value && $()])]);
2550
- }
2551
- function oo(e, t, n, a, l, d, h) {
2552
- const {
2553
- shouldShowNavigationButtons: S
2554
- } = n, {
2555
- tabPages: x
2556
- } = l, T = M(() => ({
2557
- spacer: !0,
2558
- "f-utils-fill": !0,
2559
- "spacer-sides-dropdown": S.value
2560
- })), g = M(() => ({
2561
- width: "100%",
2562
- "justify-content": e.justifyContent
2563
- })), r = M(() => ({
2564
- nav: !0,
2565
- "farris-nav-tabs": !0,
2566
- "flex-nowrap": !0,
2567
- "nav-fill": e.fill || e.tabType === "fill",
2568
- "nav-pills": e.tabType === "pills",
2569
- "flex-row": e.position === "top" || e.position === "bottom",
2570
- "flex-column": e.position === "left" || e.position === "right"
2571
- })), u = M(() => ({
2572
- overflow: "auto"
2573
- }));
2574
- function v(i) {
2575
- const {
2576
- componentType: f
2577
- } = i;
2578
- let c = se(f, i);
2579
- h && h.onResolveNewComponentSchema && (c = h.onResolveNewComponentSchema(i, c));
2580
- const w = f.toLowerCase().replace("-", "_");
2581
- return c && !c.id && c.type === f && (c.id = `${w}_${Math.random().toString().slice(2, 6)}`), c;
2582
- }
2583
- const m = function(i) {
2584
- var $;
2585
- const f = {
2586
- componentType: "tab-page",
2587
- label: "Tab1",
2588
- parentComponentInstance: d.value,
2589
- targetPosition: -1
2590
- }, c = v(f);
2591
- ($ = d.value.schema.contents) == null || $.push(c);
2592
- const {
2593
- selectTabByTabId: w
2594
- } = l;
2595
- w(c.id);
2596
- };
2597
- return () => p("div", {
2598
- class: T.value,
2599
- style: g.value
2600
- }, [p("ul", {
2601
- class: r.value,
2602
- style: u.value,
2603
- ref: t
2604
- }, [x.value.map((i) => no(e, i.props, i, a, l)), p("li", {
2605
- class: "nav-item"
2606
- }, [p("a", {
2607
- class: "nav-link tabs-text-truncate",
2608
- title: "添加页签",
2609
- onClick: (i) => m()
2610
- }, [p("i", {
2611
- class: "f-icon f-icon-plus",
2612
- style: "font-size: 20px;margin: 0 auto;line-height: 24px;"
2613
- }, null)])])])]);
2614
- }
2615
- function je(e, t, n) {
2616
- var k;
2617
- function a() {
2618
- n != null && n.resolveComponentContext && n.resolveComponentContext();
2619
- }
2620
- a();
2621
- const l = n && n.getStyles && n.getStyles() || "", d = n && n.getDesignerClass && n.getDesignerClass() || "", h = I();
2622
- function S() {
2623
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
2624
- }
2625
- function x() {
2626
- return !1;
2627
- }
2628
- function T() {
2629
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
2630
- }
2631
- function g() {
2632
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
2633
- }
2634
- function r(B) {
2635
- if (!B || !B.value)
2636
- return null;
2637
- if (B.value.schema && B.value.schema.type === "component")
2638
- return B.value;
2639
- const y = I(B == null ? void 0 : B.value.parent), D = r(y);
2640
- return D || null;
2641
- }
2642
- function u(B = t) {
2643
- const { componentInstance: y, designerItemElementRef: D } = B;
2644
- return !y || !y.value ? null : y.value.canMove ? D : u(B.parent);
2645
- }
2646
- function v(B) {
2647
- return !!n && n.canAccepts(B);
2648
- }
2649
- function m() {
2650
- return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
2651
- }
2652
- function i() {
2653
- }
2654
- function f(B, y) {
2655
- y && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(y);
2656
- }
2657
- function c(B) {
2658
- const { componentType: y } = B;
2659
- let D = se(y, B);
2660
- n && n.onResolveNewComponentSchema && (D = n.onResolveNewComponentSchema(B, D));
2661
- const O = y.toLowerCase().replace("-", "_");
2662
- return D && !D.id && D.type === y && (D.id = `${O}_${Math.random().toString().slice(2, 6)}`), D;
2663
- }
2664
- function w(B, y) {
2665
- const D = String(B.getAttribute("data-controltype")), O = B.getAttribute("data-feature"), j = O ? JSON.parse(O) : {};
2666
- j.parentComponentInstance = h.value;
2667
- let o = se(D, j);
2668
- n && n.onAcceptNewChildElement && (o = n.onAcceptNewChildElement(B, y, o));
2669
- const b = D.toLowerCase().replace("-", "_");
2670
- return o && !o.id && o.type === D && (o.id = `${b}_${Math.random().toString().slice(2, 6)}`), o;
2671
- }
2672
- function $(B) {
2673
- }
2674
- function N() {
2675
- return n && n.getPropsConfig ? n.getPropsConfig() : [];
2676
- }
2677
- return h.value = {
2678
- canMove: S(),
2679
- canSelectParent: x(),
2680
- canDelete: T(),
2681
- canNested: !g(),
2682
- contents: t == null ? void 0 : t.schema.contents,
2683
- elementRef: e,
2684
- parent: (k = t == null ? void 0 : t.parent) == null ? void 0 : k.componentInstance,
2685
- schema: t == null ? void 0 : t.schema,
2686
- styles: l,
2687
- designerClass: d,
2688
- canAccepts: v,
2689
- getBelongedComponentInstance: r,
2690
- getDraggableDesignItemElement: u,
2691
- getDraggingDisplayText: m,
2692
- getPropConfig: N,
2693
- getDragScopeElement: i,
2694
- onAcceptMovedChildElement: f,
2695
- onAcceptNewChildElement: w,
2696
- onChildElementMovedOut: $,
2697
- addNewChildComponentSchema: c,
2698
- updateDragAndDropRules: a,
2699
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || I(!1),
2700
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || I(!1)
2701
- }, h;
2702
- }
2703
- const so = "https://json-schema.org/draft/2020-12/schema", ao = "https://farris-design.gitee.io/dragging-rules.schema.json", ro = "Dragging Rules", lo = "The rules of designer canvas", io = "object", co = {
2704
- "f-page": {
2705
- description: "The root class of page designed by farris.",
2706
- type: "object",
2707
- properties: {
2708
- contents: {
2709
- type: "object",
2710
- properties: {
2711
- "f-page-header": {
2712
- description: "The class of page header designed by farris.",
2713
- type: "string"
2714
- },
2715
- "f-page-main": {
2716
- description: "The class of page body designed by farris.",
2717
- type: "object",
2718
- properties: {
2719
- contents: {
2720
- type: "object",
2721
- properties: {
2722
- "f-struct-like-card": {
2723
- description: "",
2724
- type: "object",
2725
- properties: {
2726
- contents: {
2727
- type: "object",
2728
- properties: {
2729
- "f-struct-form": {
2730
- description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
2731
- type: "object",
2732
- properties: {
2733
- contents: {
2734
- type: "object",
2735
- properties: {
2736
- "f-section-form": {
2737
- description: "The class of section which has wrapped a reponse-form component.",
2738
- type: "object",
2739
- properties: {
2740
- contents: {
2741
- type: "object",
2742
- properties: {
2743
- "f-form-layout": {
2744
- description: "The class of reponse form",
2745
- type: "object",
2746
- properties: {
2747
- rules: {
2748
- type: "object",
2749
- properties: {
2750
- canAccept: {
2751
- type: "boolean",
2752
- const: !0
2753
- },
2754
- fixed: {
2755
- type: "boolean",
2756
- const: !0
2757
- },
2758
- hidePadding: {
2759
- type: "boolean",
2760
- const: !1
2761
- }
2762
- }
2763
- }
2764
- }
2765
- }
2766
- }
2767
- },
2768
- rules: {
2769
- type: "object",
2770
- properties: {
2771
- canAccept: {
2772
- type: "boolean",
2773
- const: !1
2774
- },
2775
- fixed: {
2776
- type: "boolean",
2777
- const: !0
2778
- },
2779
- hidePadding: {
2780
- type: "boolean",
2781
- const: !0
2782
- }
2783
- }
2784
- }
2785
- }
2786
- }
2787
- }
2788
- },
2789
- rules: {
2790
- type: "object",
2791
- properties: {
2792
- canAccept: {
2793
- type: "boolean",
2794
- const: !1
2795
- },
2796
- fixed: {
2797
- type: "boolean",
2798
- const: !1
2799
- },
2800
- hidePadding: {
2801
- type: "boolean",
2802
- const: !0
2803
- }
2804
- }
2805
- }
2806
- }
2807
- },
2808
- "f-struct-wrapper": {
2809
- description: "",
2810
- type: "object",
2811
- properties: {
2812
- contents: {
2813
- type: "object",
2814
- properties: {
2815
- "f-section-tabs": {
2816
- description: "The class of section which has wrapped sub-grid tabs.",
2817
- type: "object",
2818
- properties: {
2819
- contents: {
2820
- type: "object",
2821
- properties: {
2822
- "f-tabs-in-card": {
2823
- description: "The class of tabs which contains sub-grid.",
2824
- type: "object",
2825
- properties: {
2826
- contents: {
2827
- type: "object",
2828
- properties: {
2829
- "f-struct-data-grid-in-card": {
2830
- description: "The class of sub-grid component",
2831
- type: "object",
2832
- properties: {
2833
- contents: {
2834
- type: "object",
2835
- properties: {
2836
- "f-grid-is-sub": {
2837
- description: "The class of sub-grid",
2838
- type: "object",
2839
- properties: {
2840
- rules: {
2841
- type: "object",
2842
- properties: {
2843
- canAccept: {
2844
- type: "boolean",
2845
- const: !0
2846
- },
2847
- fixed: {
2848
- type: "boolean",
2849
- const: !0
2850
- },
2851
- hidePadding: {
2852
- type: "boolean",
2853
- const: !1
2854
- }
2855
- }
2856
- }
2857
- }
2858
- }
2859
- }
2860
- },
2861
- rules: {
2862
- type: "object",
2863
- properties: {
2864
- canAccept: {
2865
- type: "boolean",
2866
- const: !1
2867
- },
2868
- fixed: {
2869
- type: "boolean",
2870
- const: !1
2871
- },
2872
- hidePadding: {
2873
- type: "boolean",
2874
- const: !0
2875
- }
2876
- }
2877
- }
2878
- }
2879
- }
2880
- }
2881
- },
2882
- rules: {
2883
- type: "object",
2884
- properties: {
2885
- canAccept: {
2886
- type: "boolean",
2887
- const: !1
2888
- },
2889
- fixed: {
2890
- type: "boolean",
2891
- const: !0
2892
- },
2893
- hidePadding: {
2894
- type: "boolean",
2895
- const: !0
2896
- }
2897
- }
2898
- }
2899
- }
2900
- }
2901
- }
2902
- },
2903
- rules: {
2904
- type: "object",
2905
- properties: {
2906
- canAccept: {
2907
- type: "boolean",
2908
- const: !1
2909
- },
2910
- fixed: {
2911
- type: "boolean",
2912
- const: !0
2913
- },
2914
- hidePadding: {
2915
- type: "boolean",
2916
- const: !0
2917
- }
2918
- }
2919
- }
2920
- }
2921
- },
2922
- "f-section-in-main": {
2923
- description: "The class of section which has wrapped a reponse-form component.",
2924
- type: "object",
2925
- properties: {
2926
- rules: {
2927
- type: "object",
2928
- properties: {
2929
- canAccept: {
2930
- type: "boolean",
2931
- const: !0
2932
- },
2933
- fixed: {
2934
- type: "boolean",
2935
- const: !0
2936
- },
2937
- hidePadding: {
2938
- type: "boolean",
2939
- const: !1
2940
- }
2941
- }
2942
- }
2943
- }
2944
- }
2945
- }
2946
- },
2947
- rules: {
2948
- type: "object",
2949
- properties: {
2950
- canAccept: {
2951
- type: "boolean",
2952
- const: !1
2953
- },
2954
- fixed: {
2955
- type: "boolean",
2956
- const: !1
2957
- },
2958
- hidePadding: {
2959
- type: "boolean",
2960
- const: !0
2961
- }
2962
- }
2963
- }
2964
- }
2965
- }
2966
- }
2967
- },
2968
- rules: {
2969
- type: "object",
2970
- properties: {
2971
- canAccept: {
2972
- type: "boolean",
2973
- const: !0
2974
- },
2975
- fixed: {
2976
- type: "boolean",
2977
- const: !0
2978
- },
2979
- hidePadding: {
2980
- type: "object",
2981
- const: {
2982
- allOf: [
2983
- {
2984
- sibling: 0,
2985
- parent: {
2986
- "f-page-main": !0
2987
- }
2988
- }
2989
- ]
2990
- }
2991
- }
2992
- }
2993
- }
2994
- }
2995
- },
2996
- "f-struct-data-grid": {
2997
- description: "",
2998
- type: "object",
2999
- properties: {
3000
- rules: {
3001
- type: "object",
3002
- properties: {
3003
- canAccept: {
3004
- type: "object",
3005
- const: !0
3006
- },
3007
- fixed: {
3008
- type: "boolean",
3009
- const: !0
3010
- },
3011
- hidePadding: {
3012
- type: "boolean",
3013
- const: !0
3014
- }
3015
- }
3016
- }
3017
- }
3018
- },
3019
- "f-page-main-content": {
3020
- description: "",
3021
- type: "object",
3022
- properties: {
3023
- contents: {
3024
- type: "object",
3025
- properties: {
3026
- "f-page-content-nav": {
3027
- description: "",
3028
- type: "object",
3029
- properties: {
3030
- contents: {
3031
- type: "object",
3032
- properties: {
3033
- "f-struct-data-grid-in-nav": {
3034
- description: "",
3035
- type: "object",
3036
- properties: {
3037
- contents: {
3038
- type: "object",
3039
- properties: {
3040
- "f-page-content-nav-extend": {
3041
- description: "",
3042
- type: "object"
3043
- },
3044
- "f-section-in-nav": {
3045
- description: "",
3046
- type: "object",
3047
- properties: {
3048
- rules: {
3049
- type: "object",
3050
- properties: {
3051
- canAccept: {
3052
- type: "boolean",
3053
- const: !1
3054
- },
3055
- fixed: {
3056
- type: "boolean",
3057
- const: !0
3058
- },
3059
- hidePadding: {
3060
- type: "boolean",
3061
- const: !1
3062
- }
3063
- }
3064
- }
3065
- }
3066
- }
3067
- }
3068
- },
3069
- rules: {
3070
- type: "object",
3071
- properties: {
3072
- canAccept: {
3073
- type: "boolean",
3074
- const: !0
3075
- },
3076
- fixed: {
3077
- type: "boolean",
3078
- const: !1
3079
- },
3080
- hidePadding: {
3081
- type: "boolean",
3082
- const: !0
3083
- }
3084
- }
3085
- }
3086
- }
3087
- }
3088
- }
3089
- }
3090
- }
3091
- },
3092
- "f-page-content-main": {
3093
- description: "",
3094
- type: "object",
3095
- properties: {}
3096
- }
3097
- }
3098
- }
3099
- }
3100
- },
3101
- "f-page-content": {
3102
- description: "",
3103
- type: "object",
3104
- properties: {
3105
- contents: {
3106
- type: "object",
3107
- properties: {
3108
- "f-page-content-nav": {
3109
- description: "",
3110
- type: "object",
3111
- properties: {
3112
- contents: {
3113
- type: "object",
3114
- properties: {
3115
- "f-list-nav": {
3116
- description: "",
3117
- type: "object"
3118
- },
3119
- "f-list-nav-left": {
3120
- description: "",
3121
- type: "object"
3122
- }
3123
- }
3124
- }
3125
- },
3126
- rules: {
3127
- type: "object",
3128
- properties: {
3129
- canAccept: {
3130
- type: "boolean",
3131
- const: !1
3132
- },
3133
- fixed: {
3134
- type: "boolean",
3135
- const: !0
3136
- },
3137
- hidePadding: {
3138
- type: "boolean",
3139
- const: !0
3140
- }
3141
- }
3142
- }
3143
- },
3144
- "f-page-content-main": {
3145
- description: "",
3146
- type: "object",
3147
- properties: {
3148
- rules: {
3149
- type: "object",
3150
- properties: {
3151
- canAccept: {
3152
- type: "boolean",
3153
- const: !1
3154
- },
3155
- fixed: {
3156
- type: "boolean",
3157
- const: !1
3158
- },
3159
- hidePadding: {
3160
- type: "boolean",
3161
- const: !0
3162
- }
3163
- }
3164
- }
3165
- }
3166
- }
3167
- }
3168
- },
3169
- rules: {
3170
- type: "object",
3171
- properties: {
3172
- canAccept: {
3173
- type: "boolean",
3174
- const: !1
3175
- },
3176
- fixed: {
3177
- type: "boolean",
3178
- const: !0
3179
- },
3180
- hidePadding: {
3181
- type: "boolean",
3182
- const: !0
3183
- }
3184
- }
3185
- }
3186
- }
3187
- }
3188
- }
3189
- },
3190
- rules: {
3191
- type: "object",
3192
- properties: {
3193
- canAccept: {
3194
- type: "object",
3195
- const: {
3196
- anyOf: [
3197
- {
3198
- children: 0
3199
- },
3200
- {
3201
- children: {
3202
- length: {
3203
- not: 1
3204
- },
3205
- "f-struct-like-card": !0
3206
- }
3207
- },
3208
- {
3209
- children: {
3210
- "scroll-spy": !1,
3211
- "f-page-content": !1,
3212
- "f-struct-like-card": !1
3213
- }
3214
- }
3215
- ]
3216
- }
3217
- },
3218
- fixed: {
3219
- type: "boolean",
3220
- const: !0
3221
- },
3222
- hidePadding: {
3223
- type: "boolean",
3224
- const: !0
3225
- }
3226
- }
3227
- }
3228
- }
3229
- },
3230
- "f-page-footer": {
3231
- description: "The class of page footer designed by farris.",
3232
- type: "string"
3233
- }
3234
- }
3235
- },
3236
- rules: {
3237
- type: "object",
3238
- properties: {
3239
- canAccept: {
3240
- type: "boolean",
3241
- const: !1
3242
- },
3243
- fixed: {
3244
- type: "boolean",
3245
- const: !0
3246
- },
3247
- hidePadding: {
3248
- type: "boolean",
3249
- const: !0
3250
- }
3251
- }
3252
- }
3253
- }
3254
- },
3255
- "f-page-is-managelist": {
3256
- description: "The root class of mangement list page.",
3257
- type: "string"
3258
- },
3259
- "f-page-card": {
3260
- description: "",
3261
- type: "object"
3262
- },
3263
- "f-page-is-mainsubcard": {
3264
- description: "",
3265
- type: "object"
3266
- }
3267
- }, uo = [], po = {
3268
- $schema: so,
3269
- $id: ao,
3270
- title: ro,
3271
- description: lo,
3272
- type: io,
3273
- properties: co,
3274
- required: uo
3275
- }, ye = /* @__PURE__ */ new Map();
3276
- function fo() {
3277
- function e(m, i, f, c) {
3278
- if (typeof f == "number")
3279
- return c[m].length === f;
3280
- if (typeof f == "object") {
3281
- const w = Object.keys(f)[0], $ = f[w];
3282
- if (w === "not")
3283
- return Number(c[m].length) !== Number($);
3284
- if (w === "moreThan")
3285
- return Number(c[m].length) >= Number($);
3286
- if (w === "lessThan")
3287
- return Number(c[m].length) <= Number($);
3288
- }
3289
- return !1;
3290
- }
3291
- function t(m, i, f, c) {
3292
- return typeof f == "boolean" ? c.childrenClassList.includes(i) === !!f : !1;
3293
- }
3294
- function n(m, i, f, c) {
3295
- return typeof f == "boolean" ? c.parentClassList.includes(i) === !!f : !1;
3296
- }
3297
- function a(m, i, f, c) {
3298
- return typeof f == "boolean" ? c.parentClassList.includes(i) === !!f : !1;
3299
- }
3300
- const l = /* @__PURE__ */ new Map([
3301
- ["length", e],
3302
- ["hasChildren", t],
3303
- ["hasSibling", a],
3304
- ["hasParent", n]
3305
- ]);
3306
- function d(m, i) {
3307
- const f = m;
3308
- return typeof i == "number" ? [{ target: f, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((c) => {
3309
- if (c === "length")
3310
- return { target: f, operator: "length", param: null, value: i[c] };
3311
- const w = c, $ = i[c];
3312
- return { target: f, operator: m === "children" ? "hasChildren" : m === "parent" ? "hasParent" : "hasSibling", param: w, value: $ };
3313
- }) : [];
3314
- }
3315
- function h(m, i) {
3316
- if (l.has(m.operator)) {
3317
- const f = l.get(m.operator);
3318
- return f && f(m.target, m.param, m.value, i) || !1;
3319
- }
3320
- return !1;
3321
- }
3322
- function S(m, i) {
3323
- return Object.keys(m).reduce(($, N) => {
3324
- const k = d(N, m[N]);
3325
- return $.push(...k), $;
3326
- }, []).reduce(($, N) => $ && h(N, i), !0);
3327
- }
3328
- function x(m, i) {
3329
- const f = Object.keys(m), c = f.includes("allOf"), w = f.includes("anyOf"), $ = c || w, B = ($ ? m[$ ? c ? "allOf" : "anyOf" : "allOf"] : [m]).map((D) => S(D, i));
3330
- return c ? !B.includes(!1) : B.includes(!0);
3331
- }
3332
- function T(m, i) {
3333
- const f = m.const;
3334
- return f ? typeof f == "boolean" ? f : typeof f == "object" ? x(f, i) : !1 : !1;
3335
- }
3336
- function g(m) {
3337
- return (i) => {
3338
- const f = { canAccept: !0, fixed: !1, hidePadding: !1 };
3339
- return m && m.properties && Object.keys(m.properties).reduce((c, w) => {
3340
- const $ = m.properties[w];
3341
- return c[w] = T($, i), c;
3342
- }, f), f;
3343
- };
3344
- }
3345
- function r(m, i, f) {
3346
- if (i.type === "object" && i.properties) {
3347
- const { rules: c, contents: w } = i.properties;
3348
- f.set(m, g(c)), w && Object.keys(w.properties).forEach(
3349
- ($) => r($, w.properties[$], f)
3350
- );
3351
- }
3352
- }
3353
- function u() {
3354
- const { properties: m } = po;
3355
- Object.keys(m).forEach((i) => {
3356
- r(i, m[i], ye);
3357
- });
3358
- }
3359
- function v(m, i) {
3360
- const f = { canAccept: !0, fixed: !1, hidePadding: !0 };
3361
- return ye.has(m) ? ye.get(m)(i) : f;
3362
- }
3363
- return u(), { getRuleValue: v };
3364
- }
3365
- function bo(e, t) {
3366
- const n = fo();
3367
- let a = !1, l, d = !1;
3368
- function h(r) {
3369
- return !1;
3370
- }
3371
- function S() {
3372
- return !d;
3373
- }
3374
- function x() {
3375
- return !d;
3376
- }
3377
- function T() {
3378
- return a;
3379
- }
3380
- function g() {
3381
- const r = e, u = r.appearance && r.appearance.class || "", v = u ? u.split(" ") : [], m = t == null ? void 0 : t.schema, i = m && m.appearance && m.appearance.class || "", f = i ? i.split(" ") : [], c = r.contents || [], w = c.length ? c[0] : null, $ = w && w.appearance && w.appearance.class || "", N = $ ? $.split(" ") : [], k = c.length ? c.reduce((o, b) => {
3382
- const s = b && b.appearance ? b.appearance.class : "", C = s ? s.split(" ") : [];
3383
- return o.push(...C), o;
3384
- }, []) : [], B = (t == null ? void 0 : t.parent) && t.parent.schema, y = B && B.appearance && B.appearance.class || "";
3385
- y && y.split(" "), l = {
3386
- componentClass: u,
3387
- componentClassList: v,
3388
- childContents: c,
3389
- firstChildContent: w,
3390
- firstChildClass: $,
3391
- firstChildClassList: N,
3392
- parent,
3393
- parentClass: i,
3394
- parentClassList: f,
3395
- children: c,
3396
- childrenClassList: k
3397
- };
3398
- const { canAccept: D, fixed: O, hidePadding: j } = n.getRuleValue(v[0], l);
3399
- return a = j, d = O, !0;
3400
- }
3401
- return {
3402
- canAccepts: h,
3403
- checkCanDeleteComponent: S,
3404
- checkCanMoveComponent: x,
3405
- hideNestedPaddingInDesginerView: T,
3406
- resolveComponentContext: g
3407
- };
3408
- }
3409
- function mo(e, t, n, a) {
3410
- const l = I([]), d = I(e.activeId || ""), h = I(!0), S = I(), x = I([]);
3411
- function T(s) {
3412
- const C = s.value.findIndex((E) => E.props.show !== !1 && !d.value && !E.props.disabled);
3413
- !d.value && C !== -1 && (d.value = s.value[C].props.id);
3414
- }
3415
- function g(s, C) {
3416
- s.classList.contains(C) || s.classList.add(C);
3417
- }
3418
- function r(s, C) {
3419
- s.classList.remove(C);
3420
- }
3421
- function u(s) {
3422
- const { parentElement: C } = s;
3423
- C && (s.scrollWidth > C.offsetWidth ? g(s, "farris-title-text-custom") : r(s, "farris-title-text-custom"));
3424
- }
3425
- function v(s) {
3426
- var E;
3427
- if (e.autoTitleWidth)
3428
- return;
3429
- const C = (E = s.value) == null ? void 0 : E.querySelectorAll(".st-tab-text");
3430
- C && C.forEach((A) => u(A));
3431
- }
3432
- const m = (s) => {
3433
- s.preventDefault(), s.stopPropagation();
3434
- };
3435
- function i(s) {
3436
- l.value = l.value.filter((C) => C.props.id !== s), d.value === s && (d.value = "", T(l));
3437
- }
3438
- function f(s, C, E = !1) {
3439
- const A = l.value.findIndex((H) => H.props.id === C);
3440
- i(C), m(s), ne(() => {
3441
- v(n), E && (h.value = !0), t.emit("tabRemove", {
3442
- removeIndex: A,
3443
- removeId: C,
3444
- activeId: d.value
3445
- });
3446
- });
3447
- }
3448
- function c() {
3449
- const s = l.value.find((A) => A.props.id === d.value);
3450
- x.value = [], s && s.props.toolbar && s.props.toolbar.buttons && s.props.toolbar.buttons.length && (x.value = [...s.props.toolbar.buttons]);
3451
- const C = a.schema.contents, E = C == null ? void 0 : C.find((A) => A.id === d.value);
3452
- S.value = E == null ? void 0 : E.toolbar;
3453
- }
3454
- function w(s) {
3455
- const C = d.value;
3456
- d.value = s, c(), t.emit("tabChange", {
3457
- prevId: C,
3458
- nextId: d.value
3459
- });
3460
- }
3461
- function $(s) {
3462
- w(s);
3463
- }
3464
- function N(s) {
3465
- l.value.findIndex((E) => E.props.id === s.props.id) === -1 && l.value.push(s);
3466
- }
3467
- function k(s) {
3468
- l.value.findIndex((E) => E.props.id === s.props.id) !== -1 && (l.value.forEach((E) => {
3469
- E.props.id === s.props.id && (E = s);
3470
- }), ne(() => {
3471
- v(n);
3472
- }));
3473
- }
3474
- function B(s) {
3475
- s && (s.stopPropagation(), s.preventDefault());
3476
- }
3477
- function y(s, C) {
3478
- B(s);
3479
- const E = a.schema.contents, A = E == null ? void 0 : E.findIndex((H) => H.id === C);
3480
- A === -1 || A === void 0 || (E == null || E.splice(A, 1), i(C));
3481
- }
3482
- function D() {
3483
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
3484
- (C) => C.classList.remove("dgComponentFocused")
3485
- );
3486
- const s = document.getElementsByClassName("dgComponentSelected");
3487
- Array.from(s).forEach((C) => C.classList.remove("dgComponentSelected"));
3488
- }
3489
- function O(s) {
3490
- s.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
3491
- }
3492
- function j(s) {
3493
- var H;
3494
- const { contents: C = [] } = a.schema, E = C == null ? void 0 : C.findIndex((q) => q.id === s), A = C[E];
3495
- (H = a == null ? void 0 : a.setupContext) == null || H.emit("selectionChange", A.type, A);
3496
- }
3497
- function o(s, C) {
3498
- D(), B(s), O(s), j(C);
3499
- }
3500
- function b(s, C) {
3501
- D(), B(s), O(s);
3502
- }
3503
- return {
3504
- activeId: d,
3505
- addTab: N,
3506
- changeTitleStyle: v,
3507
- removeTab: f,
3508
- selectTab: $,
3509
- selectTabByTabId: w,
3510
- tabPages: l,
3511
- updateTab: k,
3512
- toolbarItems: x,
3513
- removeDesignTab: y,
3514
- selectDesignTab: o,
3515
- selectDesignTabToolbar: b,
3516
- toolbarSchema: S
3517
- };
3518
- }
3519
- function ho(e, t) {
3520
- const n = X("design-item-context"), a = X("toolbar-item-handler", null);
3521
- function l() {
3522
- a && a();
3523
- }
3524
- function d(o) {
3525
- const b = {
3526
- "dropdown-menu": !0
3527
- };
3528
- if (o.class) {
3529
- const s = o.menuClass.split(" ");
3530
- s && s.length && s.reduce((C, E) => (C[E] = !0, C), b);
3531
- }
3532
- return b;
3533
- }
3534
- function h(o) {
3535
- const b = {
3536
- disabled: !o.enable,
3537
- "dropdown-submenu": !0,
3538
- "f-rt-dropdown": !0
3539
- }, s = o.dropdownClass.split(" ");
3540
- return s && s.length && s.reduce((C, E) => (C[E] = !0, C), b), b;
3541
- }
3542
- function S(o) {
3543
- const b = {
3544
- disabled: !o.enable,
3545
- "dropdown-item": !0,
3546
- "f-rt-btn": !0,
3547
- "position-relative": !0,
3548
- "farris-component": !0
3549
- }, s = o.class.split(" ");
3550
- return s && s.length && s.reduce((C, E) => (C[E] = !0, C), b), b;
3551
- }
3552
- let x;
3553
- const T = /* @__PURE__ */ new Map();
3554
- function g(o, b, s) {
3555
- var E;
3556
- ((E = o.target) == null ? void 0 : E.id) === b.id && o.stopPropagation();
3557
- const C = s ? s.id : "__top_item__";
3558
- if (b.children && b.children.length && (b.expanded = !b.expanded, b.expanded ? T.set(C, b) : T.delete(C)), T.has(C) && T.get(C) !== b) {
3559
- const A = T.get(C);
3560
- A && (A.expanded = !1);
3561
- }
3562
- }
3563
- function r(o) {
3564
- o && (o.stopPropagation(), o.preventDefault());
3565
- }
3566
- function u() {
3567
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((b) => b.classList.remove("dgComponentFocused"));
3568
- const o = document.getElementsByClassName("dgComponentSelected");
3569
- Array.from(o).forEach((b) => b.classList.remove("dgComponentSelected"));
3570
- }
3571
- function v(o) {
3572
- o.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
3573
- }
3574
- function m(o) {
3575
- const {
3576
- buttons: b = []
3577
- } = n.schema;
3578
- let s = [];
3579
- b.forEach((A) => {
3580
- s = s.concat(A.children || []);
3581
- });
3582
- const C = s.findIndex((A) => A.id === o), E = C === -1 ? null : s[C];
3583
- return {
3584
- index: C,
3585
- item: E
3586
- };
3587
- }
3588
- function i(o) {
3589
- const {
3590
- buttons: b = []
3591
- } = n.schema, s = b.findIndex((E) => E.id === o), C = s === -1 ? null : b[s];
3592
- return {
3593
- index: s,
3594
- item: C
3595
- };
3596
- }
3597
- function f(o) {
3598
- var C;
3599
- n.schema;
3600
- const {
3601
- index: b,
3602
- item: s
3603
- } = m(o);
3604
- (C = n == null ? void 0 : n.setupContext) == null || C.emit("selectionChange", s == null ? void 0 : s.type, s);
3605
- }
3606
- const c = function(o) {
3607
- const {
3608
- componentType: b
3609
- } = o, s = se(b, o), C = b.toLowerCase().replace("-", "_");
3610
- return s && !s.id && s.type === b && (s.id = `${C}_${Math.random().toString().slice(2, 6)}`), s;
3611
- }, w = function() {
3612
- const o = {
3613
- componentType: "response-toolbar-item",
3614
- parentComponentInstance: t.value,
3615
- targetPosition: -1
3616
- };
3617
- return c(o);
3618
- };
3619
- function $(o, b) {
3620
- r(o), u(), v(o), f(b.id);
3621
- }
3622
- function N(o, b, s) {
3623
- r(o);
3624
- const C = b.id, E = s && s.id, {
3625
- buttons: A = []
3626
- } = n.schema;
3627
- if (!E)
3628
- return;
3629
- const {
3630
- index: H
3631
- } = i(E);
3632
- if (H === -1)
3633
- return;
3634
- const {
3635
- index: q
3636
- } = m(C);
3637
- q !== -1 && (A[H].children.splice(q, 1), l());
3638
- }
3639
- function k(o, b, s) {
3640
- r(o);
3641
- const C = s && s.id, {
3642
- buttons: E = []
3643
- } = n.schema;
3644
- if (!C)
3645
- return;
3646
- const {
3647
- index: A
3648
- } = i(C);
3649
- if (A === -1)
3650
- return;
3651
- const H = w(), q = Object.assign({}, H, {
3652
- text: b.text
3653
- });
3654
- E[A].children.push(q), l();
3655
- }
3656
- function B(o, b, s) {
3657
- r(o);
3658
- const C = s && s.id, {
3659
- buttons: E = []
3660
- } = n.schema;
3661
- if (!C)
3662
- return;
3663
- const {
3664
- index: A
3665
- } = i(C);
3666
- if (A === -1)
3667
- return;
3668
- const H = w(), q = Object.assign({}, H, {
3669
- text: "按钮"
3670
- });
3671
- E[A].children.push(q), l();
3672
- }
3673
- function y(o, b) {
3674
- return p("div", {
3675
- class: "component-btn-group"
3676
- }, [p("div", null, [p("div", {
3677
- role: "button",
3678
- class: "btn component-settings-button",
3679
- title: "删除",
3680
- ref: "removeButton",
3681
- style: "position:static;",
3682
- onClick: (s) => N(s, o, b)
3683
- }, [p("i", {
3684
- class: "f-icon f-icon-yxs_delete"
3685
- }, null)]), p("div", {
3686
- role: "button",
3687
- class: "btn component-settings-button",
3688
- title: "复制",
3689
- ref: "copyButton",
3690
- style: "position:static;",
3691
- onClick: (s) => k(s, o, b)
3692
- }, [p("i", {
3693
- class: "f-icon f-icon-yxs_copy"
3694
- }, null)]), p("div", {
3695
- role: "button",
3696
- class: "btn component-settings-button",
3697
- title: "新增同级",
3698
- ref: "appendSame",
3699
- style: "width:85px!important;padding:0 5px;position:static;",
3700
- onClick: (s) => B(s, o, b)
3701
- }, [p("i", {
3702
- class: "f-icon f-icon-plus-circle text-white mr-1"
3703
- }, null), p("span", {
3704
- style: "font-size:13px;margin:auto"
3705
- }, [pe("新增同级")])])])]);
3706
- }
3707
- function D(o) {
3708
- return o.children.map((b) => b.children && b.children.length ? p("li", {
3709
- class: h(b),
3710
- id: b.id,
3711
- onClick: (s) => b.enable && g(s, b, o)
3712
- }, [p("span", {
3713
- id: b.id,
3714
- class: S(b),
3715
- onMouseover: (s) => b.enable && g(s, b, o)
3716
- }, [b.text, p("i", {
3717
- class: "f-icon f-icon-arrow-chevron-right",
3718
- style: "display: inline-block;float: right;line-height: 1.25rem;"
3719
- }, null)]), x(b, b)]) : p("li", {
3720
- class: S(b),
3721
- id: b.id,
3722
- onClick: (s) => $(s, b)
3723
- }, [y(b, o), e.shouldShowIcon(b) && p("i", {
3724
- class: e.iconClass(b)
3725
- }, null), b.text]));
3726
- }
3727
- function O(o, b, s) {
3728
- const C = {
3729
- display: o.expanded ? "block" : "none",
3730
- position: "fixed",
3731
- maxWidth: "300px",
3732
- width: "auto",
3733
- minWidth: "120px"
3734
- }, E = document.getElementsByTagName("body")[0].getClientRects()[0].width, A = b, H = A == null ? void 0 : A.getClientRects();
3735
- if (A && H && H.length) {
3736
- const {
3737
- top: q,
3738
- width: Y,
3739
- left: Z,
3740
- right: Q,
3741
- height: ae
3742
- } = H[0], te = Math.ceil(ae + q);
3743
- C.top = `${te}px`, C.left = `${Z}px`;
3744
- const P = o.id + "_menu", L = b ? b.querySelector("#" + P) : null;
3745
- if (L) {
3746
- C.display === "block" && (L.style.display = "block");
3747
- const F = L.getBoundingClientRect();
3748
- if (s) {
3749
- C.top = `${q - 6}px`;
3750
- const _ = Math.ceil(Y + Z);
3751
- C.left = `${_}px`;
3752
- }
3753
- E - Z - Y < F.width && (C.left = `${(s ? Z : Q) - F.width}px`);
3754
- }
3755
- }
3756
- return C;
3757
- }
3758
- x = function(o, b) {
3759
- var A, H;
3760
- const s = Ee(), C = b ? b.id : o.id, E = (H = (A = s == null ? void 0 : s.exposed) == null ? void 0 : A.elementRef.value) == null ? void 0 : H.querySelector("#" + C);
3761
- return p("ul", {
3762
- class: d(o),
3763
- style: O(o, E, b),
3764
- id: o.id + "_menu"
3765
- }, [D(o)]);
3766
- };
3767
- function j() {
3768
- T.forEach((o) => {
3769
- o.expanded = !1;
3770
- }), T.clear();
3771
- }
3772
- return {
3773
- renderDropdownMenu: x,
3774
- clearAllDropDownMenu: j
3775
- };
3776
- }
3777
- function vo(e, t, n) {
3778
- const a = I(e.alignment), {
3779
- renderDropdownMenu: l,
3780
- clearAllDropDownMenu: d
3781
- } = ho(t, n), h = X("design-item-context"), S = X("toolbar-item-handler", null);
3782
- function x() {
3783
- S && S();
3784
- }
3785
- function T(j) {
3786
- const o = {
3787
- "btn-group": !0,
3788
- "f-rt-dropdown": !0,
3789
- "f-btn-ml": a.value === "right",
3790
- "f-btn-mr": a.value === "left"
3791
- }, b = j.dropdownClass.split(" ");
3792
- return b && b.length && b.reduce((s, C) => (s[C] = !0, s), o), o;
3793
- }
3794
- function g(j) {
3795
- const o = {
3796
- btn: !0,
3797
- disabled: !j.enable,
3798
- "position-relative": !0,
3799
- "farris-component": !0,
3800
- "f-rt-btn": !0,
3801
- "btn-icontext": !!(j.icon && j.icon.trim())
3802
- };
3803
- if (j.class) {
3804
- const b = j.class.split(" ");
3805
- b && b.length && b.reduce((s, C) => (s[C] = !0, s), o);
3806
- }
3807
- return o;
3808
- }
3809
- function r(j) {
3810
- j && (j.stopPropagation(), j.preventDefault());
3811
- }
3812
- function u(j, o) {
3813
- r(j);
3814
- const b = o.expanded;
3815
- document.body.click(), o.expanded = !b;
3816
- }
3817
- const v = function(j) {
3818
- const {
3819
- componentType: o
3820
- } = j, b = se(o, j), s = o.toLowerCase().replace("-", "_");
3821
- return b && !b.id && b.type === o && (b.id = `${s}_${Math.random().toString().slice(2, 6)}`), b;
3822
- }, m = function() {
3823
- const j = {
3824
- componentType: "response-toolbar-item",
3825
- parentComponentInstance: n.value,
3826
- targetPosition: -1
3827
- };
3828
- return v(j);
3829
- };
3830
- function i(j) {
3831
- const o = h.schema.buttons || h.schema.contents, b = o == null ? void 0 : o.findIndex((C) => C.id === j), s = b === -1 ? null : o[b];
3832
- return {
3833
- index: b,
3834
- toolbarItem: s
3835
- };
3836
- }
3837
- function f(j, o) {
3838
- var H;
3839
- const {
3840
- index: b,
3841
- toolbarItem: s
3842
- } = i(o);
3843
- if (b === -1)
3844
- return;
3845
- const C = s.text || "按钮", E = m(), A = Object.assign({}, E, {
3846
- text: C
3847
- });
3848
- (H = h.schema.buttons) == null || H.push(A), x();
3849
- }
3850
- function c(j, o) {
3851
- const {
3852
- index: b,
3853
- toolbarItem: s
3854
- } = i(o);
3855
- if (b === -1)
3856
- return;
3857
- const C = s.text || "按钮", E = m(), A = Object.assign({}, E, {
3858
- text: C
3859
- }), H = h.schema.buttons[b].children || [];
3860
- H.push(A), h.schema.buttons[b].children = H, x();
3861
- }
3862
- function w(j, o) {
3863
- const b = h.schema.buttons || h.schema.contents, s = b == null ? void 0 : b.findIndex((C) => C.id === o);
3864
- s !== -1 && (b.splice(s, 1), x());
3865
- }
3866
- function $(j) {
3867
- return p("div", {
3868
- class: "component-btn-group"
3869
- }, [p("div", null, [p("div", {
3870
- role: "button",
3871
- class: "btn component-settings-button",
3872
- title: "删除",
3873
- ref: "removeButton",
3874
- style: "position:static;",
3875
- onClick: (o) => w(o, j)
3876
- }, [p("i", {
3877
- class: "f-icon f-icon-yxs_delete"
3878
- }, null)]), p("div", {
3879
- role: "button",
3880
- class: "btn component-settings-button",
3881
- title: "复制",
3882
- ref: "copyButton",
3883
- style: "position:static;",
3884
- onClick: (o) => f(o, j)
3885
- }, [p("i", {
3886
- class: "f-icon f-icon-yxs_copy"
3887
- }, null)]), p("div", {
3888
- role: "button",
3889
- class: "btn component-settings-button",
3890
- title: "新增子级",
3891
- ref: "appendChildButton",
3892
- style: "width:85px!important;padding:0 5px;position:static;",
3893
- onClick: (o) => c(o, j)
3894
- }, [p("i", {
3895
- class: "f-icon f-icon-plus-circle text-white mr-1"
3896
- }, null), p("span", {
3897
- style: "font-size:13px;margin:auto"
3898
- }, [pe("新增子级")])])])]);
3899
- }
3900
- function N() {
3901
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((o) => o.classList.remove("dgComponentFocused"));
3902
- const j = document.getElementsByClassName("dgComponentSelected");
3903
- Array.from(j).forEach((o) => o.classList.remove("dgComponentSelected"));
3904
- }
3905
- function k(j) {
3906
- j.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
3907
- }
3908
- function B(j) {
3909
- var C;
3910
- const o = h.schema.buttons || h.schema.contents, b = o == null ? void 0 : o.findIndex((E) => E.id === j);
3911
- if (b === -1)
3912
- return;
3913
- const s = o[b];
3914
- (C = h == null ? void 0 : h.setupContext) == null || C.emit("selectionChange", "response-toolbar-item", s);
3915
- }
3916
- function y(j, o) {
3917
- r(j), N(), k(j), r(j), u(j, o), B(o.id);
3918
- }
3919
- function D(j) {
3920
- return p("div", {
3921
- id: j.id,
3922
- class: T(j)
3923
- }, [p("div", {
3924
- class: g(j),
3925
- style: "display: flex;padding-right: 0.1rem;",
3926
- onClick: (o) => j.enable && y(o, j)
3927
- }, [$(j.id), t.shouldShowIcon(j) && p("i", {
3928
- class: t.iconClass(j)
3929
- }, null), p("span", null, [j.text]), p("i", {
3930
- class: "f-icon f-icon-arrow-chevron-down",
3931
- style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
3932
- }, null)]), l(j)]);
3933
- }
3934
- function O() {
3935
- d();
3936
- }
3937
- return {
3938
- renderToolbarDropdown: D,
3939
- clearAllDropDown: O
3940
- };
3941
- }
3942
- const {
3943
- buildResponseToolbarItems: Me
3944
- } = Se(), yo = /* @__PURE__ */ ee({
3945
- name: "FResponseToolbarDesign",
3946
- props: we,
3947
- emits: ["Click"],
3948
- setup(e, t) {
3949
- const n = I(Me(e.items)), a = I(), l = I(), d = I(e.alignment), h = {
3950
- id: "__more_buttons__",
3951
- text: "More"
3952
- }, S = I(new le(h)), x = qe(), T = M(() => S.value.children.length > 0), g = I(), r = X("design-item-context"), u = je(g, r), v = X("toolbar-item-handler", null);
3953
- K(() => {
3954
- g.value.componentInstance = u;
3955
- }), t.expose({
3956
- elementRef: g
3957
- });
3958
- function m() {
3959
- v && v();
3960
- }
3961
- const i = M(() => ({
3962
- "f-toolbar": !0,
3963
- "f-response-toolbar": !0,
3964
- "position-relative": !0
3965
- })), f = M(() => ({
3966
- "d-flex": !0,
3967
- "flex-nowrap": !0,
3968
- "justify-content-end": d.value === "right",
3969
- "justify-content-start": d.value === "left"
3970
- })), {
3971
- renderToolbarDropdown: c,
3972
- clearAllDropDown: w
3973
- } = vo(e, x, u);
3974
- function $() {
3975
- n.value.filter((P) => P.children && P.children.length > 0).forEach((P) => {
3976
- P.expanded = !1;
3977
- }), S.value.expanded = !1, w();
3978
- }
3979
- function N(P) {
3980
- const L = {
3981
- "f-icon": !0
3982
- };
3983
- if (P.icon) {
3984
- const F = P.icon.trim().split(" ");
3985
- F && F.length && F.reduce((_, R) => (_[R] = !0, _), L);
3986
- }
3987
- return L;
3988
- }
3989
- function k(P) {
3990
- return !!(P.icon && P.icon.trim());
3991
- }
3992
- function B(P) {
3993
- const L = {
3994
- btn: !0,
3995
- "f-rt-btn": !0,
3996
- "f-btn-ml": d.value === "right",
3997
- "f-btn-mr": d.value === "left",
3998
- "btn-icontext": !!(P.icon && P.icon.trim())
3999
- };
4000
- if (P.class) {
4001
- const F = P.class.split(" ");
4002
- F && F.length && F.reduce((_, R) => (_[R] = !0, _), L);
4003
- }
4004
- return L;
4005
- }
4006
- function y(P) {
4007
- P && (P.stopPropagation(), P.preventDefault());
4008
- }
4009
- function D() {
4010
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((L) => L.classList.remove("dgComponentFocused"));
4011
- const P = document.getElementsByClassName("dgComponentSelected");
4012
- Array.from(P).forEach((L) => L.classList.remove("dgComponentSelected"));
4013
- }
4014
- function O(P) {
4015
- P.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
4016
- }
4017
- function j(P) {
4018
- var R;
4019
- const L = r.schema.buttons || r.schema.contents, F = L == null ? void 0 : L.findIndex((W) => W.id === P);
4020
- if (F === -1)
4021
- return;
4022
- const _ = L[F];
4023
- (R = r == null ? void 0 : r.setupContext) == null || R.emit("selectionChange", "response-toolbar-item", _);
4024
- }
4025
- const o = function(P) {
4026
- const {
4027
- componentType: L
4028
- } = P, F = se(L, P), _ = L.toLowerCase().replace("-", "_");
4029
- return F && !F.id && F.type === L && (F.id = `${_}_${Math.random().toString().slice(2, 6)}`), F;
4030
- }, b = function() {
4031
- const P = {
4032
- componentType: "response-toolbar-item",
4033
- parentComponentInstance: u.value,
4034
- targetPosition: -1
4035
- };
4036
- return o(P);
4037
- };
4038
- function s(P, L) {
4039
- D(), O(P), y(P), j(L);
4040
- }
4041
- function C(P, L) {
4042
- const F = r.schema.buttons || r.schema.contents, _ = F == null ? void 0 : F.findIndex((R) => R.id === L);
4043
- _ !== -1 && (F.splice(_, 1), m());
4044
- }
4045
- function E(P) {
4046
- const L = r.schema.buttons || r.schema.contents, F = L == null ? void 0 : L.findIndex((R) => R.id === P), _ = F === -1 ? null : L[F];
4047
- return {
4048
- index: F,
4049
- toolbarItem: _
4050
- };
4051
- }
4052
- function A(P, L) {
4053
- var U;
4054
- const {
4055
- index: F,
4056
- toolbarItem: _
4057
- } = E(L);
4058
- if (F === -1)
4059
- return;
4060
- const R = _.text || "按钮", W = b(), V = Object.assign({}, W, {
4061
- text: R
4062
- });
4063
- (U = r.schema.buttons) == null || U.push(V), m();
4064
- }
4065
- function H(P, L) {
4066
- const {
4067
- index: F,
4068
- toolbarItem: _
4069
- } = E(L);
4070
- if (F === -1)
4071
- return;
4072
- const R = _.text || "按钮", W = b(), V = Object.assign({}, W, {
4073
- text: R
4074
- }), U = r.schema.buttons[F].items || [];
4075
- U.push(V), r.schema.buttons[F].children = U, m();
4076
- }
4077
- function q(P) {
4078
- return p("div", {
4079
- class: "component-btn-group"
4080
- }, [p("div", null, [p("div", {
4081
- role: "button",
4082
- class: "btn component-settings-button",
4083
- title: "删除",
4084
- ref: "removeButton",
4085
- style: "position:static;",
4086
- onClick: (L) => C(L, P)
4087
- }, [p("i", {
4088
- class: "f-icon f-icon-yxs_delete"
4089
- }, null)]), p("div", {
4090
- role: "button",
4091
- class: "btn component-settings-button",
4092
- title: "复制",
4093
- ref: "copyButton",
4094
- style: "position:static;",
4095
- onClick: (L) => A(L, P)
4096
- }, [p("i", {
4097
- class: "f-icon f-icon-yxs_copy"
4098
- }, null)]), p("div", {
4099
- role: "button",
4100
- class: "btn component-settings-button",
4101
- title: "新增子级",
4102
- ref: "appendChildButton",
4103
- style: "width:85px!important;padding:0 5px;position:static;",
4104
- onClick: (L) => H(L, P)
4105
- }, [p("i", {
4106
- class: "f-icon f-icon-plus-circle text-white mr-1"
4107
- }, null), p("span", {
4108
- style: "font-size:13px;margin:auto"
4109
- }, [pe("新增子级")])])])]);
4110
- }
4111
- function Y(P) {
4112
- return p("div", {
4113
- class: "farris-component position-relative",
4114
- style: "display:inline-block!important;",
4115
- onClick: (L) => s(L, P.id)
4116
- }, [q(P.id), p("button", {
4117
- type: "button",
4118
- class: B(P),
4119
- id: P.id,
4120
- disabled: !P.enable
4121
- }, [k(P) && p("i", {
4122
- class: N(P)
4123
- }, null), P.text])]);
4124
- }
4125
- const Z = /* @__PURE__ */ new Map(), Q = [];
4126
- function ae(P) {
4127
- const L = l.value;
4128
- let F = P;
4129
- const _ = Array.from(L.children), R = _[_.length - 1].id === "__more_buttons__" ? _[_.length - 1] : null;
4130
- if (R) {
4131
- const G = R.computedStyleMap().get("margin-left"), J = R.computedStyleMap().get("margin-right"), ue = (G ? G.value : 0) + R.getBoundingClientRect().width + (J ? J.value : 0);
4132
- F -= ue;
4133
- }
4134
- const W = _.filter((G) => G.id !== "__more_buttons__");
4135
- for (const G of W) {
4136
- const J = G.computedStyleMap().get("margin-left"), ue = G.computedStyleMap().get("margin-right"), me = (J ? J.value : 0) + G.getBoundingClientRect().width + (ue ? ue.value : 0);
4137
- F < me ? (Z.set(G.id, !0), Q.push({
4138
- id: G.id,
4139
- width: me
4140
- })) : F -= me;
4141
- }
4142
- if (Q.length)
4143
- for (let G = Q.length - 1; G >= 0; G--) {
4144
- const J = Q[G].width;
4145
- if (F >= J)
4146
- F -= J, Z.delete(Q[G].id), Q.pop();
4147
- else
4148
- break;
4149
- }
4150
- const V = Object.assign({}, S.value);
4151
- V.children = [];
4152
- const U = new le(V), ce = n.value.reduce((G, J) => (Z.has(J.id) && U.children.push(J), J.visible = !Z.has(J.id), G.push(J), G), []);
4153
- S.value = U, n.value = ce;
4154
- }
4155
- const te = new ResizeObserver((P) => {
4156
- if (P.length) {
4157
- const F = P[0].contentRect.width, R = l.value.getBoundingClientRect().width;
4158
- (F < R || Q.length) && ae(F);
4159
- }
4160
- });
4161
- return K(() => {
4162
- const P = a.value;
4163
- te.observe(P), document.body.addEventListener("click", $);
4164
- }), fe(() => {
4165
- te.disconnect(), document.body.removeEventListener("click", $);
4166
- }), oe(() => e.items, () => {
4167
- n.value = Me(e.items);
4168
- }), () => p("div", {
4169
- ref: g,
4170
- class: i.value
4171
- }, [p("div", {
4172
- ref: a,
4173
- class: f.value
4174
- }, [p("div", {
4175
- ref: l,
4176
- class: "d-inline-block f-response-content",
4177
- style: "white-space: nowrap;"
4178
- }, [n.value.filter((P) => P.visible).map((P) => P.children && P.children.length > 0 ? c(P) : Y(P)), T.value && c(S.value)])])]);
4179
- }
4180
- }), go = {
4181
- id: { type: String, default: "" },
4182
- canAdd: { type: Boolean, default: !1 },
4183
- canDelete: { type: Boolean, default: !1 },
4184
- canMove: { type: Boolean, default: !1 },
4185
- contentKey: { type: String, default: "contents" },
4186
- childLabel: { type: String, default: "" },
4187
- childType: { type: String, default: "" },
4188
- /**
4189
- * 组件值
4190
- */
4191
- modelValue: { type: Object }
4192
- }, Pe = I(0);
4193
- function Co(e, t) {
4194
- const n = t.getBoundingClientRect(), a = e.getBoundingClientRect(), l = a.top >= n.top, d = a.top <= n.bottom;
4195
- return l && d;
4196
- }
4197
- function To(e) {
4198
- if (!e)
4199
- return;
4200
- let t;
4201
- if (e.className.includes("dgComponentSelected") ? t = e : t = e.querySelector(".dgComponentSelected"), !t)
4202
- return;
4203
- const n = t.getBoundingClientRect();
4204
- if (n.width === 0 && n.height === 0)
4205
- return;
4206
- const a = t.querySelector(".component-btn-group");
4207
- if (a) {
4208
- if (!Co(t, e)) {
4209
- a.style.display = "none";
4210
- return;
4211
- }
4212
- a.style.display = "";
4213
- const d = a.getBoundingClientRect(), h = a.querySelector("div");
4214
- if (h) {
4215
- const S = h.getBoundingClientRect();
4216
- h.style.top = d.top + "px", h.style.left = d.left - S.width + "px";
4217
- }
4218
- }
4219
- }
4220
- function wo(e, t, n) {
4221
- var N;
4222
- function a() {
4223
- n != null && n.resolveComponentContext && n.resolveComponentContext();
4224
- }
4225
- a();
4226
- const l = n && n.getStyles && n.getStyles() || "", d = I();
4227
- function h() {
4228
- return n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
4229
- }
4230
- function S() {
4231
- return !1;
4232
- }
4233
- function x() {
4234
- return n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
4235
- }
4236
- function T() {
4237
- return !0;
4238
- }
4239
- function g(k) {
4240
- if (!k || !k.value)
4241
- return null;
4242
- const B = I(k == null ? void 0 : k.value.parent), y = g(B);
4243
- return y || null;
4244
- }
4245
- function r(k = t) {
4246
- const { componentInstance: B, designerItemElementRef: y } = k;
4247
- return !B || !B.value ? null : B.value.canMove ? y : r(k.parent);
4248
- }
4249
- function u(k) {
4250
- return !!n && n.canAccepts(k);
4251
- }
4252
- function v() {
4253
- return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
4254
- }
4255
- function m() {
4256
- }
4257
- function i(k, B) {
4258
- B && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(B);
4259
- }
4260
- function f(k) {
4261
- const { componentType: B } = k;
4262
- let y = se(B, k);
4263
- n && n.onResolveNewComponentSchema && (y = n.onResolveNewComponentSchema(k, y));
4264
- const D = B.toLowerCase().replace("-", "_");
4265
- return y && !y.id && y.type === B && (y.id = `${D}_${Math.random().toString().slice(2, 6)}`), y;
4266
- }
4267
- function c(k, B) {
4268
- const y = String(k.getAttribute("data-controltype")), D = k.getAttribute("data-feature"), O = D ? JSON.parse(D) : {};
4269
- O.parentComponentInstance = d.value;
4270
- let j = se(y, O);
4271
- n && n.onAcceptNewChildElement && (j = n.onAcceptNewChildElement(k, B, j));
4272
- const o = y.toLowerCase().replace("-", "_");
4273
- return j && !j.id && j.type === y && (j.id = `${o}_${Math.random().toString().slice(2, 6)}`), j;
4274
- }
4275
- function w(k) {
4276
- }
4277
- function $() {
4278
- return n && n.getPropsConfig ? n.getPropsConfig() : [];
4279
- }
4280
- return d.value = {
4281
- canMove: h(),
4282
- canSelectParent: S(),
4283
- canDelete: x(),
4284
- canNested: !T(),
4285
- contents: [],
4286
- elementRef: e,
4287
- parent: (N = t.parent) == null ? void 0 : N.componentInstance,
4288
- schema: t.schema,
4289
- styles: l,
4290
- canAccepts: u,
4291
- getBelongedComponentInstance: g,
4292
- getDraggableDesignItemElement: r,
4293
- getDraggingDisplayText: v,
4294
- getPropConfig: $,
4295
- getDragScopeElement: m,
4296
- onAcceptMovedChildElement: i,
4297
- onAcceptNewChildElement: c,
4298
- onChildElementMovedOut: w,
4299
- addNewChildComponentSchema: f,
4300
- updateDragAndDropRules: a,
4301
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || I(!1),
4302
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || I(!1)
4303
- }, d;
4304
- }
4305
- const So = /* @__PURE__ */ ee({
4306
- name: "FDesignerInnerItem",
4307
- props: go,
4308
- emits: ["selectionChange", "addComponent"],
4309
- setup(e, t) {
4310
- const n = I(e.canMove), a = I(e.canAdd), l = I(e.canDelete), d = I(!1), h = I(e.contentKey), S = I(e.childType), x = I(e.childLabel), T = I(e.modelValue), g = I(""), r = I(), u = X("canvas-dragula"), v = I(), m = X("design-item-context"), i = {
4311
- designerItemElementRef: r,
4312
- componentInstance: v,
4313
- schema: T.value,
4314
- parent: m,
4315
- setupContext: t
4316
- };
4317
- de("design-item-context", i);
4318
- const f = M(() => ({
4319
- "farris-component": !0,
4320
- "position-relative": n.value && l.value,
4321
- "farris-nested": d.value,
4322
- "can-move": n.value,
4323
- "d-none": r.value && r.value.classList.contains("d-none")
4324
- })), c = M(() => {
4325
- const o = {};
4326
- return g.value && g.value.split(";").reduce((b, s) => {
4327
- const [C, E] = s.split(":");
4328
- return C && (b[C] = E), b;
4329
- }, o), o;
4330
- });
4331
- function w(o, b) {
4332
- if (m && m.schema[h.value]) {
4333
- const s = m.schema[h.value].findIndex((C) => C.id === b.id);
4334
- m.schema[h.value].splice(s, 1), m.componentInstance.value.updateDragAndDropRules();
4335
- }
4336
- }
4337
- function $(o) {
4338
- if (v.value.addNewChildComponentSchema) {
4339
- const b = {
4340
- componentType: S.value,
4341
- label: x.value,
4342
- parentComponentInstance: v.value,
4343
- targetPosition: -1
4344
- }, s = v.value.addNewChildComponentSchema(b);
4345
- T.value[h.value].push(s), t.emit("addComponent");
4346
- }
4347
- }
4348
- function N() {
4349
- return a.value && p("div", {
4350
- role: "button",
4351
- class: "btn component-settings-button",
4352
- title: "新增",
4353
- ref: "removeComponent",
4354
- onClick: (o) => {
4355
- $();
4356
- }
4357
- }, [p("i", {
4358
- class: "f-icon f-icon-plus-circle"
4359
- }, null)]);
4360
- }
4361
- function k(o) {
4362
- return l.value && p("div", {
4363
- role: "button",
4364
- class: "btn component-settings-button",
4365
- title: "删除",
4366
- ref: "removeComponent",
4367
- onClick: (b) => {
4368
- w(b, o);
4369
- }
4370
- }, [p("i", {
4371
- class: "f-icon f-icon-yxs_delete"
4372
- }, null)]);
4373
- }
4374
- function B(o) {
4375
- return p("div", {
4376
- class: "component-btn-group",
4377
- "data-noattach": "true"
4378
- }, [p("div", null, [N(), k(o)])]);
4379
- }
4380
- oe(() => e.modelValue, (o) => {
4381
- T.value = o, i.schema = o;
4382
- });
4383
- function y(o) {
4384
- const b = o.target;
4385
- To(b);
4386
- }
4387
- function D() {
4388
- var o, b;
4389
- (b = (o = T.value) == null ? void 0 : o.contents) != null && b.length && r.value && r.value.addEventListener("scroll", y);
4390
- }
4391
- function O() {
4392
- const o = r.value, b = I(o.children[1]);
4393
- return wo(b, i).value;
4394
- }
4395
- K(() => {
4396
- if (r.value) {
4397
- const o = r.value.querySelector(`[data-dragref='${T.value.id}-container']`);
4398
- v.value = o && o.componentInstance ? o.componentInstance.value : O(), u && o && u.attachComponents(o, T.value), d.value = v.value.canNested !== void 0 ? v.value.canNested : d.value, n.value = v.value.canMove !== void 0 ? v.value.canMove : n.value, g.value = v.value.styles || "", r.value && (r.value.componentInstance = v, r.value.designItemContext = i);
4399
- }
4400
- D(), Pe.value++;
4401
- }), et(() => {
4402
- r.value && r.value.removeEventListener("scroll", y);
4403
- });
4404
- function j(o) {
4405
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((s) => s.classList.remove("dgComponentFocused")), o && (o.preventDefault(), o.stopPropagation());
4406
- const b = r.value;
4407
- if (b) {
4408
- const s = document.getElementsByClassName("dgComponentSelected");
4409
- if (!(s && s.length === 1 && s[0] === r.value)) {
4410
- Array.from(s).forEach((A) => A.classList.remove("dgComponentSelected")), b.classList.add("dgComponentFocused"), t.emit("selectionChange", T.value.type, T.value);
4411
- const E = v.value.getDraggableDesignItemElement(i);
4412
- E && E.value && E.value.classList.add("dgComponentSelected");
4413
- }
4414
- }
4415
- Pe.value++;
4416
- }
4417
- return () => p("div", {
4418
- id: `${e.id}-design-item`,
4419
- ref: r,
4420
- class: f.value,
4421
- style: c.value,
4422
- onClick: j
4423
- }, [B(T.value), t.slots.default && t.slots.default()]);
4424
- }
4425
- });
4426
- function xo(e, t, n, a) {
4427
- const {
4428
- toolbarItems: l,
4429
- toolbarSchema: d
4430
- } = e, h = (x) => {
4431
- };
4432
- function S(x, T) {
4433
- var g;
4434
- (g = a.setupContext) == null || g.emit("selectionChange", x, T);
4435
- }
4436
- return p("div", {
4437
- class: "farris-tabs-toolbar"
4438
- }, [p("div", {
4439
- class: "farris-tabs-inline-flex"
4440
- }, [p(So, {
4441
- modelValue: d.value,
4442
- "onUpdate:modelValue": (x) => d.value = x,
4443
- canAdd: !0,
4444
- childType: "response-toolbar-item",
4445
- childLabel: "按钮",
4446
- contentKey: "buttons",
4447
- onSelectionChange: S
4448
- }, {
4449
- default: () => [p(yo, {
4450
- items: l.value,
4451
- onClick: h
4452
- }, null)]
4453
- })])]);
4454
- }
4455
- const jo = /* @__PURE__ */ ee({
4456
- name: "FTabsDesign",
4457
- props: Te,
4458
- emits: ["tabChange", "tabRemove"],
4459
- setup(e, t) {
4460
- const n = I(), a = X("design-item-context"), l = bo(a.schema, a.parent), d = je(n, a, l), h = I(e.tabType), S = re(), x = re(), T = mo(e, t, S, a), {
4461
- activeId: g,
4462
- changeTitleStyle: r,
4463
- tabPages: u,
4464
- addTab: v,
4465
- updateTab: m,
4466
- selectTabByTabId: i,
4467
- toolbarItems: f
4468
- } = T, c = We(e, x, T), w = He(e, S, c, T), {
4469
- previousButtonClass: $,
4470
- nextButtonClass: N,
4471
- nextButtonGroupClass: k,
4472
- scrollTab: B,
4473
- updateNavigationLayout: y
4474
- } = w, D = Re(e, T), {
4475
- hideDropDown: O
4476
- } = D, j = oo(e, S, w, c, T, d, l), o = j, b = _e(e, S, w, c, T), s = /* @__PURE__ */ new Map([["default", j], ["one-page", o], ["pills", b]]);
4477
- M(() => {
4478
- const W = u.value.find((V) => V.props.id === g.value);
4479
- return W == null ? void 0 : W.slots;
4480
- });
4481
- const C = M(() => {
4482
- const W = u.value.find((U) => U.props.id === g.value);
4483
- return (W == null ? void 0 : W.props.toolbarPosition) === "inHead";
4484
- });
4485
- de("tabs", {
4486
- activeId: g,
4487
- addTab: v,
4488
- updateTab: m,
4489
- tabPages: u,
4490
- tabType: h
4491
- });
4492
- function E() {
4493
- const W = d.value.schema.contents || [];
4494
- return W.length < 1 ? null : W.find((U) => U.id === g.value);
4495
- }
4496
- function A() {
4497
- var V;
4498
- const W = E();
4499
- f.value = [...(V = W == null ? void 0 : W.toolbar) == null ? void 0 : V.buttons];
4500
- }
4501
- de("toolbar-item-handler", A);
4502
- const H = M(() => e.fill || e.tabType === "fill"), q = M(() => e.tabType === "pills"), Y = M(() => ({
4503
- "farris-tabs-header": !0,
4504
- "farris-tabs-inHead": C.value,
4505
- "farris-tabs-inContent": !C.value,
4506
- "farris-tabs-nav-fill": H.value,
4507
- "farris-tabs-nav-pills": q.value
4508
- })), Z = M(() => ({
4509
- width: C.value && e.titleWidth ? `${e.titleWidth}%` : ""
4510
- })), Q = M(() => ({
4511
- "farris-tabs": !0,
4512
- "flex-column": e.position === "top",
4513
- "flex-column-reverse": e.position === "bottom",
4514
- "flex-row": e.position === "left",
4515
- "flex-row-reverse": e.position === "right",
4516
- "one-page": e.tabType === "one-page"
4517
- }));
4518
- K(() => {
4519
- u.value.length && (g.value = e.activeId || u.value[0].props.id, i(g.value)), ne(() => {
4520
- y();
4521
- }), r(S), window.addEventListener("click", (W) => {
4522
- var V;
4523
- O.value || (V = n.value) != null && V.contains(W.target) || (O.value = !0);
4524
- }), window.addEventListener("resize", () => {
4525
- y();
4526
- }), n.value.componentInstance = d;
4527
- });
4528
- function ae() {
4529
- return p("button", {
4530
- title: "left-arrow-button",
4531
- type: "button",
4532
- class: $.value,
4533
- onClick: () => {
4534
- B(0, -1);
4535
- }
4536
- }, null);
4537
- }
4538
- function te() {
4539
- return p("button", {
4540
- title: "right-arrow-button",
4541
- type: "button",
4542
- class: N.value,
4543
- onClick: () => {
4544
- B(0, 1);
4545
- }
4546
- }, null);
4547
- }
4548
- const {
4549
- renderMorePagesButtton: P
4550
- } = Fe(e, D, w, T);
4551
- function L() {
4552
- return !!f.value.length && xo(T, d, l, a);
4553
- }
4554
- const F = s.get(e.tabType) || s.get("default");
4555
- function _() {
4556
- var W, V, U, ce;
4557
- return p("div", {
4558
- class: Y.value
4559
- }, [p("div", {
4560
- class: "farris-tabs-header-pre"
4561
- }, [(V = (W = t.slots).headerPrefix) == null ? void 0 : V.call(W)]), p("div", {
4562
- class: "farris-tabs-title scroll-tabs",
4563
- style: Z.value
4564
- }, [ae(), F && F(), p("div", {
4565
- class: k.value
4566
- }, [te(), P()])]), L(), p("div", {
4567
- class: "farris-tabs-header-post"
4568
- }, [(ce = (U = t.slots).headerSuffix) == null ? void 0 : ce.call(U)])]);
4569
- }
4570
- function R() {
4571
- var W, V;
4572
- return p("div", {
4573
- class: "farris-tabs-content",
4574
- ref: x
4575
- }, [(V = (W = t.slots).default) == null ? void 0 : V.call(W)]);
4576
- }
4577
- return t.expose(d.value), () => p("div", {
4578
- class: Q.value,
4579
- ref: n
4580
- }, [_(), R()]);
4581
- }
4582
- });
4583
- function Do() {
4584
- function e(t) {
4585
- var l, d;
4586
- if (!t)
4587
- return !1;
4588
- const n = ((l = t.targetContainer) == null ? void 0 : l.componentInstance) && t.targetContainer.componentInstance.value;
4589
- if (!n)
4590
- return !1;
4591
- const a = (d = n.schema.appearance) == null ? void 0 : d.class;
4592
- if (t.controlCategory === "input" || t.controlType === "form-group") {
4593
- const h = n.schema.type, S = (h === "response-form" || h === "content-container") && a && a.includes("farris-form");
4594
- if (n.schema.type !== "response-layout-item" && !S)
4595
- return !1;
4596
- }
4597
- return t.controlType !== "field-set";
4598
- }
4599
- return {
4600
- basalDragulaRuleForContainer: e
4601
- };
4602
- }
4603
- function Bo(e, t) {
4604
- function n(l) {
4605
- return !!Do().basalDragulaRuleForContainer(l);
4606
- }
4607
- function a(l) {
4608
- }
4609
- return { canAccepts: n, onAcceptMovedChildElement: a };
4610
- }
4611
- function Oo(e) {
4612
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ae(e);
4613
- }
4614
- const $o = /* @__PURE__ */ ee({
4615
- name: "FTabPageDesign",
4616
- props: xe,
4617
- emits: [],
4618
- setup(e, t) {
4619
- const n = I(), a = X("design-item-context"), l = Bo(a.schema, a.parent), d = je(n, a, l);
4620
- d.value.canNested = !1, d.value.canDelete = !1, d.value.canMove = !1, t.expose(d.value);
4621
- const h = X("tabs"), S = I(!0), x = {
4622
- slots: t.slots,
4623
- props: e
4624
- }, T = I((h == null ? void 0 : h.tabType.value) || "default");
4625
- function g() {
4626
- e.id === h.activeId.value ? a.designerItemElementRef.value.classList.remove("d-none") : a.designerItemElementRef.value.classList.add("d-none");
4627
- }
4628
- K(() => {
4629
- n.value.componentInstance = d;
4630
- const f = h.tabPages.value.findIndex((c) => c.props.id === e.id);
4631
- !f || f === -1 ? h == null || h.addTab(x) : f > -1 && (S.value = !1, console.warn(`已经存在id为${e.id}的页签啦`)), g();
4632
- }), fe(() => {
4633
- });
4634
- const r = M(() => ({
4635
- display: (e == null ? void 0 : e.id) === (h == null ? void 0 : h.activeId.value) ? "" : "none"
4636
- }));
4637
- oe(() => e, (f) => {
4638
- h == null || h.updateTab({
4639
- props: f,
4640
- slots: t.slots
4641
- });
4642
- }, {
4643
- immediate: !0,
4644
- deep: !0
4645
- }), oe(h.activeId, g);
4646
- function u() {
4647
- var c, w;
4648
- const f = (w = (c = t.slots).default) == null ? void 0 : w.call(c);
4649
- return p(Je, {
4650
- "main-title": e.title,
4651
- class: "farris-tab-page"
4652
- }, Oo(f) ? f : {
4653
- default: () => [f]
4654
- });
4655
- }
4656
- function v() {
4657
- var c, w;
4658
- const f = (w = (c = t.slots).default) == null ? void 0 : w.call(c);
4659
- return p("div", {
4660
- ref: n,
4661
- class: "farris-tab-page drag-container",
4662
- "data-dragref": `${a.schema.id}-container`,
4663
- style: r.value
4664
- }, [f]);
4665
- }
4666
- const i = (/* @__PURE__ */ new Map([["default", v], ["one-page", u]])).get(T.value) || v;
4667
- return () => S.value ? i() : null;
4668
- }
4669
- }), Eo = {
4670
- install(e) {
4671
- e.component(he.name, he), e.component(ve.name, ve);
4672
- },
4673
- register(e, t, n) {
4674
- e.tabs = he, e["tab-page"] = ve, t.tabs = De, t["tab-page"] = Ie;
4675
- },
4676
- registerDesigner(e, t, n) {
4677
- e.tabs = jo, e["tab-page"] = $o, t.tabs = De, t["tab-page"] = Ie;
4678
- }
4679
- };
4680
- export {
4681
- ve as TabPage,
4682
- he as Tabs,
4683
- Eo as default,
4684
- xe as tabPageProps,
4685
- Ie as tabPagePropsResolver,
4686
- Te as tabsProps,
4687
- De as tabsPropsResolver
4688
- };