@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
@@ -1,4151 +0,0 @@
1
- import { ref as a, computed as j, watch as N, defineComponent as U, createVNode as p, withDirectives as ne, vModelCheckbox as Pe, Fragment as oe, withModifiers as Me, vModelText as Ve, Teleport as ce, createApp as be, onUnmounted as ue, nextTick as J, vShow as Ce, onMounted as de, mergeProps as $e, inject as De } from "vue";
2
- import { cloneDeep as Ae } from "lodash-es";
3
- const we = {}, Se = {};
4
- function pe(e) {
5
- const { properties: t, title: n } = e, c = Object.keys(t).reduce((o, s) => (o[s] = t[s].type === "object" && t[s].properties ? pe(t[s]) : Ae(t[s].default), o), {});
6
- return c.id = `${n}-${Date.now()}`, c;
7
- }
8
- function Q(e, t = {}) {
9
- const n = we[e];
10
- if (n) {
11
- let c = pe(n);
12
- const o = Se[e];
13
- return c = o ? o({ getSchemaByType: Q }, c, t) : c, c;
14
- }
15
- return null;
16
- }
17
- function Le(e, t) {
18
- const n = pe(t);
19
- return Object.keys(e).reduce((c, o) => (c[o] = e[o], c), n), n;
20
- }
21
- function Ee(e, t) {
22
- return Object.keys(e).filter((c) => e[c] != null).reduce((c, o) => {
23
- if (t.has(o)) {
24
- const s = t.get(o);
25
- if (typeof s == "string")
26
- c[s] = e[o];
27
- else {
28
- const u = s(o, e[o], e);
29
- Object.assign(c, u);
30
- }
31
- } else
32
- c[o] = e[o];
33
- return c;
34
- }, {});
35
- }
36
- function Re(e, t, n = /* @__PURE__ */ new Map()) {
37
- const c = Le(e, t);
38
- return Ee(c, n);
39
- }
40
- function He(e = {}) {
41
- function t(i, v, l, r) {
42
- if (typeof l == "number")
43
- return r[i].length === l;
44
- if (typeof l == "object") {
45
- const w = Object.keys(l)[0], d = l[w];
46
- if (w === "not")
47
- return Number(r[i].length) !== Number(d);
48
- if (w === "moreThan")
49
- return Number(r[i].length) >= Number(d);
50
- if (w === "lessThan")
51
- return Number(r[i].length) <= Number(d);
52
- }
53
- return !1;
54
- }
55
- function n(i, v, l, r) {
56
- return r[v] && r[v].propertyValue && String(r[v].propertyValue.value) === String(l);
57
- }
58
- const c = /* @__PURE__ */ new Map([
59
- ["length", t],
60
- ["getProperty", n]
61
- ]);
62
- Object.keys(e).reduce((i, v) => (i.set(v, e[v]), i), c);
63
- function o(i, v) {
64
- const l = i;
65
- return typeof v == "number" ? [{ target: l, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: l, operator: "getProperty", param: i, value: !!v }] : typeof v == "object" ? Object.keys(v).map((r) => {
66
- if (r === "length")
67
- return { target: l, operator: "length", param: null, value: v[r] };
68
- const w = r, d = v[r];
69
- return { target: l, operator: i, param: w, value: d };
70
- }) : [];
71
- }
72
- function s(i) {
73
- return Object.keys(i).reduce((l, r) => {
74
- const w = o(r, i[r]);
75
- return l.push(...w), l;
76
- }, []);
77
- }
78
- function u(i, v) {
79
- if (c.has(i.operator)) {
80
- const l = c.get(i.operator);
81
- return l && l(i.target, i.param, i.value, v) || !1;
82
- }
83
- return !1;
84
- }
85
- function f(i, v) {
86
- return s(i).reduce((w, d) => w && u(d, v), !0);
87
- }
88
- function b(i, v) {
89
- const l = Object.keys(i), r = l.includes("allOf"), w = l.includes("anyOf"), d = r || w, C = (d ? i[d ? r ? "allOf" : "anyOf" : "allOf"] : [i]).map((h) => f(h, v));
90
- return r ? !C.includes(!1) : C.includes(!0);
91
- }
92
- return { parseValueSchema: b };
93
- }
94
- const Ne = {}, _e = {};
95
- He();
96
- function Y(e, t, n = /* @__PURE__ */ new Map(), c = (u, f, b) => f, o = {}, s = (u) => u) {
97
- return we[t.title] = t, Se[t.title] = c, Ne[t.title] = o, _e[t.title] = s, (u = {}) => {
98
- const f = Re(u, t, n), b = Object.keys(e).reduce((i, v) => (i[v] = e[v].default, i), {});
99
- return Object.assign(b, f);
100
- };
101
- }
102
- function Z(e, t) {
103
- return { customClass: t.class };
104
- }
105
- const We = /* @__PURE__ */ new Map([
106
- ["appearance", Z]
107
- ]), qe = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-design.gitee.io/order.schema.json", Ue = "order", Ge = "A Farris Component", Xe = "object", Ke = {
108
- id: {
109
- description: "The unique identifier for a order",
110
- type: "string"
111
- },
112
- type: {
113
- description: "The type string of order component",
114
- type: "string",
115
- default: "order"
116
- },
117
- appearance: {
118
- description: "",
119
- type: "object",
120
- properties: {
121
- class: {
122
- type: "string"
123
- },
124
- style: {
125
- type: "string"
126
- }
127
- },
128
- default: {}
129
- },
130
- binding: {
131
- description: "",
132
- type: "object",
133
- default: {}
134
- },
135
- editable: {
136
- description: "",
137
- type: "boolean",
138
- default: !0
139
- },
140
- enableLinkLabel: {
141
- description: "",
142
- type: "boolean",
143
- default: !1
144
- },
145
- label: {
146
- description: "",
147
- type: "string",
148
- default: ""
149
- },
150
- lableWidth: {
151
- description: "",
152
- type: "number"
153
- },
154
- placeHolder: {
155
- description: "",
156
- type: "string",
157
- default: ""
158
- },
159
- readonly: {
160
- description: "",
161
- type: "boolean",
162
- default: !1
163
- },
164
- required: {
165
- description: "",
166
- type: "boolean",
167
- default: !1
168
- },
169
- tabindex: {
170
- description: "",
171
- type: "number",
172
- default: -1
173
- },
174
- textAlign: {
175
- description: "",
176
- type: "string",
177
- enum: [
178
- "left",
179
- "middle",
180
- "right"
181
- ],
182
- default: "left"
183
- },
184
- visible: {
185
- description: "",
186
- type: "boolean",
187
- default: !0
188
- },
189
- onBlur: {
190
- description: "",
191
- type: "string",
192
- default: ""
193
- },
194
- onClickLinkLabel: {
195
- description: "",
196
- type: "sting",
197
- default: ""
198
- }
199
- }, Je = [
200
- "id",
201
- "type"
202
- ], Qe = {
203
- $schema: qe,
204
- $id: ze,
205
- title: Ue,
206
- description: Ge,
207
- type: Xe,
208
- properties: Ke,
209
- required: Je
210
- };
211
- function Ye(e, t, n) {
212
- return t;
213
- }
214
- const Ze = "order", et = "A Farris Component", tt = "object", nt = {
215
- basic: {
216
- description: "Basic Infomation",
217
- title: "基本信息",
218
- properties: {
219
- id: {
220
- description: "组件标识",
221
- title: "标识",
222
- type: "string",
223
- readonly: !0
224
- },
225
- type: {
226
- description: "组件类型",
227
- title: "控件类型",
228
- type: "select",
229
- editor: {
230
- type: "waiting for modification",
231
- enum: []
232
- }
233
- }
234
- }
235
- },
236
- behavior: {
237
- description: "Basic Infomation",
238
- title: "行为",
239
- properties: {
240
- editable: {
241
- description: "",
242
- title: "允许编辑",
243
- type: "boolean"
244
- },
245
- readonly: {
246
- description: "",
247
- title: "只读",
248
- type: "string"
249
- },
250
- required: {
251
- description: "",
252
- title: "必填",
253
- type: "boolean"
254
- },
255
- visible: {
256
- description: "",
257
- title: "可见",
258
- type: "boolean"
259
- },
260
- placeHolder: {
261
- description: "",
262
- title: "提示文本",
263
- type: "string"
264
- },
265
- tabindex: {
266
- description: "",
267
- title: "tab索引",
268
- type: "number"
269
- },
270
- textAlign: {
271
- description: "",
272
- title: "对齐方式",
273
- type: "enum",
274
- editor: {
275
- type: "combo-select",
276
- textField: "name",
277
- valueField: "value",
278
- data: [
279
- {
280
- value: "left",
281
- name: "左对齐"
282
- },
283
- {
284
- value: "center",
285
- name: "居中对齐"
286
- },
287
- {
288
- value: "right",
289
- name: "右对齐"
290
- }
291
- ]
292
- }
293
- }
294
- }
295
- }
296
- }, ot = {
297
- title: Ze,
298
- description: et,
299
- type: tt,
300
- categories: nt
301
- }, fe = {
302
- dataSource: {
303
- type: Array,
304
- default: [
305
- { id: "1", name: "发票类型" },
306
- { id: "2", name: "发票代码" },
307
- { id: "3", name: "开票日期" },
308
- { id: "4", name: "票价(燃油附加费)" },
309
- { id: "5", name: "税收分类编号" }
310
- ]
311
- },
312
- items: {
313
- type: Array,
314
- default: [
315
- { id: "1", name: "发票类型", order: "asc" },
316
- { id: "2", name: "发票代码", order: "desc" },
317
- { id: "3", name: "开票日期", order: "asc" }
318
- ]
319
- }
320
- }, ye = Y(fe, Qe, We, Ye, ot), at = /* @__PURE__ */ new Map([
321
- ["appearance", Z]
322
- ]);
323
- function lt(e, t, n) {
324
- return t;
325
- }
326
- const it = "https://json-schema.org/draft/2020-12/schema", st = "https://farris-design.gitee.io/list-view.schema.json", rt = "list-view", ct = "A Farris Component", ut = "object", dt = {
327
- id: {
328
- description: "The unique identifier for list-view",
329
- type: "string"
330
- },
331
- type: {
332
- description: "The type string of list-view",
333
- type: "string",
334
- default: "list-view"
335
- },
336
- appearance: {
337
- description: "",
338
- type: "object",
339
- properties: {
340
- class: {
341
- type: "string"
342
- },
343
- style: {
344
- type: "string"
345
- }
346
- },
347
- default: {}
348
- },
349
- binding: {
350
- description: "",
351
- type: "object",
352
- default: {}
353
- },
354
- disable: {
355
- type: "string",
356
- default: !1
357
- },
358
- editable: {
359
- description: "",
360
- type: "boolean",
361
- default: !0
362
- },
363
- placeHolder: {
364
- description: "",
365
- type: "string",
366
- default: ""
367
- },
368
- readonly: {
369
- description: "",
370
- type: "boolean",
371
- default: !1
372
- },
373
- require: {
374
- description: "",
375
- type: "boolean",
376
- default: !1
377
- },
378
- tabindex: {
379
- description: "",
380
- type: "number",
381
- default: -1
382
- },
383
- visible: {
384
- description: "",
385
- type: "boolean",
386
- default: !0
387
- }
388
- }, pt = [
389
- "id",
390
- "type"
391
- ], ft = {
392
- $schema: it,
393
- $id: st,
394
- title: rt,
395
- description: ct,
396
- type: ut,
397
- properties: dt,
398
- required: pt
399
- }, vt = "list-view", mt = "A Farris Component", yt = "object", ht = {
400
- basic: {
401
- description: "Basic Infomation",
402
- title: "基本信息",
403
- properties: {
404
- id: {
405
- description: "组件标识",
406
- title: "标识",
407
- type: "string",
408
- readonly: !0
409
- },
410
- type: {
411
- description: "组件类型",
412
- title: "控件类型",
413
- type: "select",
414
- editor: {
415
- type: "waiting for modification",
416
- enum: []
417
- }
418
- }
419
- }
420
- }
421
- }, gt = {
422
- title: vt,
423
- description: mt,
424
- type: yt,
425
- categories: ht
426
- }, Be = {
427
- data: { type: Array, default: [] },
428
- draggable: { type: Boolean, default: !1 },
429
- multiSelect: { Type: Boolean, default: !1 },
430
- multiSelectMode: { Type: String, default: "OnCheck" },
431
- idField: { Type: String, default: "id" },
432
- valueField: { Type: String, default: "id" },
433
- textField: { Type: String, default: "name" },
434
- titleField: { Type: String, default: "name" },
435
- view: { Type: String, default: "ContentView" },
436
- size: { Type: String, default: "default" },
437
- placeholder: { type: String, default: "" },
438
- header: { Type: String, default: "ContentHeader" },
439
- headerClass: { Type: String, default: "" },
440
- itemClass: { Type: String, default: "" },
441
- selectionValues: { type: Array, default: [] },
442
- keepOrder: { type: Boolean, default: !1 },
443
- disableField: { type: String, default: "disabled" }
444
- };
445
- Y(Be, ft, at, lt, gt);
446
- function bt(e, t, n, c, o) {
447
- const s = a(e.idField), u = a(e.disableField), f = a(e.draggable), b = a(e.itemClass), i = a(e.multiSelect), v = a(e.multiSelectMode);
448
- a(!0);
449
- const { isDragging: l } = n, { activeIndex: r, focusedItemId: w, hoverIndex: d } = c, { clearSelection: y, selectedItems: m, toggleSelectItem: C } = o;
450
- function B(S, V) {
451
- const I = {
452
- "f-list-view-group-item": !0,
453
- "f-list-view-draggable-item": f.value,
454
- "f-un-click": !!S.unClick,
455
- "f-un-select": !!S[u.value],
456
- "f-listview-active": S.__fv_index__ === r.value,
457
- "f-listview-hover": !l.value && V === d.value,
458
- moving: !!S.moving
459
- };
460
- return b.value.split(" ").reduce((z, L) => (z[L] = !0, z), I), I;
461
- }
462
- function h(S, V) {
463
- return S[s.value] || "";
464
- }
465
- const T = j(() => !i.value);
466
- function O(S, V) {
467
- S.unClick || S[u.value] || (T.value && (w.value = S[s.value]), C(S, V));
468
- }
469
- const g = j(() => i.value && v.value === "OnCheckClearByClick"), x = j(() => !i.value || i.value && (v.value === "OnCheckAndClick" || v.value === "OnClick"));
470
- function P(S, V, I) {
471
- if (V.unClick || V[u.value]) {
472
- S.preventDefault(), S.stopPropagation();
473
- return;
474
- }
475
- w.value = V[s.value], r.value = I, g.value && y(), x.value && C(V, I), t.emit("clickItem", { data: m.value, index: I }), t.emit("activeChange", m.value);
476
- }
477
- return {
478
- getKey: h,
479
- listViewItemClass: B,
480
- onCheckItem: O,
481
- onClickItem: P
482
- };
483
- }
484
- function Ct(e, t, n) {
485
- const c = a(e.idField), o = a(e.multiSelect);
486
- a(e.multiSelectMode);
487
- const { getSelectionItems: s } = n, u = a(s(e.selectionValues));
488
- N(() => e.selectionValues, (r) => {
489
- u.value = a(s(r)).value;
490
- });
491
- const f = j(() => !o.value);
492
- function b(r) {
493
- return r[c.value] || "";
494
- }
495
- function i(r) {
496
- return u.value.findIndex((d) => b(d) === b(r));
497
- }
498
- function v() {
499
- u.value.forEach((r) => {
500
- r.checked = !1;
501
- }), u.value = [];
502
- }
503
- function l(r, w) {
504
- f.value && v();
505
- const d = i(r);
506
- d > -1 ? (u.value.splice(d, 1), r.checked = !1) : (u.value.push(r), r.checked = !0), t.emit("selectionChange", u.value);
507
- }
508
- return { clearSelection: v, findIndexInSelectedItems: i, selectedItems: u, toggleSelectItem: l };
509
- }
510
- function wt(e, t) {
511
- function n(s) {
512
- const u = [];
513
- let f = s.nextNode();
514
- for (; f; )
515
- u.push(f), f = s.nextNode();
516
- return u;
517
- }
518
- function c(s, u) {
519
- const f = document.createTreeWalker(s, NodeFilter.SHOW_TEXT);
520
- return n(f).map((l) => ({ textNode: l, text: (l.textContent || "").toLocaleLowerCase() })).map(({ textNode: l, text: r }) => {
521
- const w = [];
522
- let d = 0;
523
- for (; d < r.length; ) {
524
- const y = r.indexOf(u, d);
525
- if (y === -1)
526
- break;
527
- w.push(y), d = y + u.length;
528
- }
529
- return w.map((y) => {
530
- const m = new Range();
531
- return m.setStart(l, y), m.setEnd(l, y + u.length), m;
532
- });
533
- }).flat();
534
- }
535
- function o(s) {
536
- if (!CSS.highlights || (CSS.highlights.clear(), !s || !t))
537
- return;
538
- const u = c(t.value, s.toLocaleLowerCase()), f = new Highlight(...u);
539
- CSS.highlights.set("search-result", f);
540
- }
541
- return { search: o };
542
- }
543
- const St = {
544
- /** 组件唯一标识 */
545
- id: { Type: String, default: "" },
546
- /** 自定义样式 */
547
- customClass: { Type: String, default: "" },
548
- /** 禁用状态 */
549
- disable: { Type: Boolean, default: !1 },
550
- /** 中间状态 */
551
- indeterminate: { Type: Boolean, default: !1 },
552
- /** 选择状态 */
553
- modelValue: { Type: Boolean, default: !1 }
554
- }, ve = /* @__PURE__ */ U({
555
- name: "FCheckBox",
556
- props: St,
557
- emits: ["change", "update:modelValue"],
558
- setup(e, t) {
559
- const n = a(e.id), c = a(e.customClass), o = a(e.disable), s = a(e.modelValue), u = a(e.indeterminate), f = j(() => {
560
- const i = {
561
- "custom-control": !0,
562
- "custom-checkbox": !0
563
- };
564
- return c.value && c.value.split(" ").reduce((v, l) => (v[l] = !0, v), i), i;
565
- });
566
- function b(i) {
567
- i.stopPropagation(), i.preventDefault(), o.value || (s.value = !s.value, t.emit("update:modelValue", s.value), t.emit("change", {
568
- originalEvent: i,
569
- checked: s.value
570
- }));
571
- }
572
- return N(() => e.modelValue, (i) => {
573
- s.value = i;
574
- }), N(() => e.indeterminate, (i) => {
575
- u.value = i;
576
- }), () => p("div", {
577
- class: f.value
578
- }, [ne(p("input", {
579
- id: n.value,
580
- title: n.value,
581
- type: "checkbox",
582
- class: "custom-control-input",
583
- "onUpdate:modelValue": (i) => s.value = i,
584
- indeterminate: u.value
585
- }, null), [[Pe, s.value]]), p("label", {
586
- for: n.value,
587
- class: "custom-control-label",
588
- onClick: b
589
- }, null)]);
590
- }
591
- });
592
- function he(e, t, n, c, o, s, u, f) {
593
- const b = a(e.size), i = a(e.textField), v = a(e.titleField), l = a(e.multiSelect), r = a(e.disableField), {
594
- onMouseenterItem: w,
595
- onMouseoverItem: d,
596
- onMouseoutItem: y
597
- } = o, {
598
- getKey: m,
599
- listViewItemClass: C,
600
- onCheckItem: B,
601
- onClickItem: h
602
- } = s, T = j(() => ({
603
- margin: b.value === "small" ? "0.25rem 0" : "10px 0"
604
- }));
605
- function O(g, x, P) {
606
- return g.checked = u.findIndexInSelectedItems(g) > -1, p("li", {
607
- class: C(g, x),
608
- id: m(g, x),
609
- key: m(g, x),
610
- onClick: (S) => h(S, g, x),
611
- onMouseenter: (S) => w(S, g, x),
612
- onMouseover: (S) => d(S, g, x),
613
- onMouseout: (S) => y(S, g, x)
614
- }, [l.value && p("div", {
615
- class: "f-list-select",
616
- onClick: (S) => S.stopPropagation()
617
- }, [p(ve, {
618
- id: "list-" + m(g, x),
619
- customClass: "listview-checkbox",
620
- disable: g[r.value] || g.unClick,
621
- modelValue: g.checked,
622
- "onUpdate:modelValue": (S) => g.checked = S,
623
- onChange: (S) => B(g, x)
624
- }, null)]), p("div", {
625
- class: "f-list-content"
626
- }, [p("div", {
627
- style: T.value,
628
- title: g[v.value] || g[i.value]
629
- }, [g[i.value]])])]);
630
- }
631
- return {
632
- renderItem: O
633
- };
634
- }
635
- function Bt(e, t, n, c, o, s, u, f) {
636
- const b = a(e.multiSelect), i = a(e.disableField), {
637
- onMouseenterItem: v,
638
- onMouseoverItem: l,
639
- onMouseoutItem: r
640
- } = o, {
641
- getKey: w,
642
- listViewItemClass: d,
643
- onCheckItem: y,
644
- onClickItem: m
645
- } = s;
646
- function C(h, T, O) {
647
- return t.slots.content ? p(oe, null, [t.slots.content && t.slots.content({
648
- item: h,
649
- index: T,
650
- selectedItem: O
651
- })]) : p("div", {
652
- style: "margin: 10px 0;"
653
- }, [h.name]);
654
- }
655
- function B(h, T, O) {
656
- return p("li", {
657
- class: d(h, T),
658
- id: w(h, T),
659
- key: w(h, T),
660
- onClick: (g) => m(g, h, T),
661
- onMouseenter: (g) => v(g, h, T),
662
- onMouseover: (g) => l(g, h, T),
663
- onMouseout: (g) => r(g, h, T)
664
- }, [b.value && p("div", {
665
- class: "f-list-select",
666
- onClick: (g) => g.stopPropagation()
667
- }, [p(ve, {
668
- id: "list-" + w(h, T),
669
- customClass: "listview-checkbox",
670
- disable: h[i.value] || h.unClick,
671
- modelValue: h.checked,
672
- "onUpdate:modelValue": (g) => h.checked = g,
673
- onChange: (g) => y(h, T)
674
- }, null)]), p("div", {
675
- class: "f-list-content"
676
- }, [C(h, T, O)])]);
677
- }
678
- return {
679
- renderItem: B
680
- };
681
- }
682
- function Tt(e, t, n, c, o, s, u, f) {
683
- const b = a(e.multiSelect), i = a(e.disableField), {
684
- onMouseenterItem: v,
685
- onMouseoverItem: l,
686
- onMouseoutItem: r
687
- } = o, {
688
- getKey: w,
689
- listViewItemClass: d,
690
- onCheckItem: y,
691
- onClickItem: m
692
- } = s, {
693
- dragstart: C,
694
- dragenter: B,
695
- dragover: h,
696
- dragend: T
697
- } = c, {
698
- removeItem: O
699
- } = f, g = j(() => ({
700
- margin: b.value ? "10px 0" : "10px 0px 10px 14px"
701
- }));
702
- function x(I) {
703
- return p("div", {
704
- style: g.value
705
- }, [I.name]);
706
- }
707
- function P() {
708
- return t.slots.itemContent ? t.slots.itemContent : x;
709
- }
710
- const S = P();
711
- function V(I, E, z) {
712
- return p("li", {
713
- class: d(I, E),
714
- id: w(I, E),
715
- key: w(I, E),
716
- onClick: (L) => m(L, I, E),
717
- onMouseenter: (L) => v(L, I, E),
718
- onMouseover: (L) => l(L, I, E),
719
- onMouseout: (L) => r(L, I, E),
720
- draggable: "true",
721
- onDragstart: (L) => C(L, I, E),
722
- onDragenter: (L) => B(L, E),
723
- onDragend: (L) => T(L, I),
724
- onDragover: (L) => h(L, E)
725
- }, [b.value && p("div", {
726
- class: "f-list-select",
727
- onClick: (L) => L.stopPropagation()
728
- }, [p(ve, {
729
- id: "list-" + w(I, E),
730
- customClass: "listview-checkbox",
731
- disable: I[i.value] || I.unClick,
732
- modelValue: I.checked,
733
- "onUpdate:modelValue": (L) => I.checked = L,
734
- onChange: (L) => y(I, E)
735
- }, null)]), p("div", {
736
- class: "f-list-content"
737
- }, [S(I)]), p("div", {
738
- class: "f-list-remove",
739
- onClick: (L) => O(E)
740
- }, [p("div", {
741
- class: "f-list-remove-icon"
742
- }, [p("i", {
743
- class: "f-icon f-icon-remove_face"
744
- }, null)])]), p("div", {
745
- class: "f-list-handle"
746
- }, [p("div", null, [p("i", {
747
- class: "f-icon f-icon-drag-vertical"
748
- }, null)])])]);
749
- }
750
- return {
751
- renderItem: V
752
- };
753
- }
754
- function kt(e, t, n) {
755
- function c() {
756
- return t.slots.header && p("div", {
757
- class: "f-list-view-header"
758
- }, [t.slots.header()]);
759
- }
760
- return {
761
- renderHeader: c
762
- };
763
- }
764
- function ge(e, t, n) {
765
- const c = a(e.headerClass), o = a(e.placeholder), s = a(""), u = j(() => !s.value), f = j(() => !!s.value);
766
- function b(r) {
767
- s.value = "";
768
- }
769
- N(s, (r) => {
770
- n.search(r);
771
- });
772
- const i = j(() => {
773
- const r = {
774
- "form-group": !0,
775
- "farris-form-group": !0
776
- };
777
- return c.value && c.value.split(" ").reduce((d, y) => (d[y] = !0, d), r), r;
778
- });
779
- function v(r) {
780
- }
781
- function l() {
782
- return p("div", {
783
- class: "f-list-view-header",
784
- onClick: Me(v, ["prevent", "stop"])
785
- }, [p("div", {
786
- class: i.value
787
- }, [p("div", {
788
- class: "farris-input-wrap"
789
- }, [p("div", {
790
- class: "f-cmp-inputgroup"
791
- }, [p("div", {
792
- class: "input-group f-state-editable"
793
- }, [ne(p("input", {
794
- class: "form-control f-utils-fill text-left",
795
- "onUpdate:modelValue": (r) => s.value = r,
796
- name: "input-group-value",
797
- type: "text",
798
- placeholder: o.value,
799
- autocomplete: "off"
800
- }, null), [[Ve, s.value]]), p("div", {
801
- class: "input-group-append"
802
- }, [f.value && p("span", {
803
- class: "input-group-text input-group-clear",
804
- onClick: (r) => b()
805
- }, [p("i", {
806
- class: "f-icon f-icon-close-circle"
807
- }, null)]), u.value && p("span", {
808
- class: "input-group-text"
809
- }, [p("span", {
810
- class: "f-icon f-icon-search"
811
- }, null)])])])])])])]);
812
- }
813
- return {
814
- renderHeader: l
815
- };
816
- }
817
- function jt(e, t) {
818
- const n = a(e.idField), c = a(e.data), o = a(e.data), s = a(e.keepOrder);
819
- function u() {
820
- const i = c.value.map((v, l) => typeof v != "object" ? { __fv_index__: l, name: v } : (v.__fv_index__ = l, v));
821
- return o.value = i, i;
822
- }
823
- const f = a(u());
824
- N(
825
- () => e.data,
826
- (i) => {
827
- if (s.value) {
828
- const v = i.reduce((d, y) => (d.set(y.id, !0), d), /* @__PURE__ */ new Map()), l = c.value.reduce((d, y) => (d.set(y.id, !0), d), /* @__PURE__ */ new Map()), r = f.value.filter((d) => v.has(d.id)), w = i.filter((d) => !l.has(d.id));
829
- c.value = [...r, ...w];
830
- } else
831
- c.value = i;
832
- f.value = u();
833
- }
834
- );
835
- function b(i) {
836
- return i.map((l) => {
837
- const r = o.value.findIndex((w) => w[n.value] === l);
838
- return r > -1 ? o.value[r] : null;
839
- }).filter((l) => l != null);
840
- }
841
- return {
842
- dataView: f,
843
- getSelectionItems: b
844
- };
845
- }
846
- function Ot(e, t, n, c) {
847
- const o = a(e.idField), { dataView: s } = n, u = a(-1), f = a(!1), { activeIndex: b, focusedItemId: i, hoverIndex: v, resumeHover: l, suspendHover: r } = c;
848
- function w(C, B, h) {
849
- C.stopPropagation(), r(), B && setTimeout(() => {
850
- u.value = h, f.value = !0, B.moving = !0;
851
- });
852
- }
853
- function d(C, B) {
854
- if (C.preventDefault(), u.value !== B) {
855
- const h = s.value[u.value], T = s.value;
856
- T.splice(u.value, 1), T.splice(B, 0, h), u.value = B;
857
- }
858
- }
859
- function y(C, B) {
860
- C.preventDefault(), C.dataTransfer && (C.dataTransfer.dropEffect = "move");
861
- }
862
- function m(C, B) {
863
- B && (B.moving = !1), s.value.forEach((h, T) => {
864
- h.__fv_index__ = T;
865
- }), f.value = !1, l(), v.value = B.__fv_index__, b.value = B.__fv_index__, i.value = B[o.value], t.emit("change", s.value), t.emit("activeChange", B);
866
- }
867
- return {
868
- dragstart: w,
869
- dragenter: d,
870
- dragover: y,
871
- dragend: m,
872
- isDragging: f
873
- };
874
- }
875
- function Ft(e, t, n) {
876
- const { dataView: c } = n;
877
- function o(s) {
878
- if (s > -1 && s < c.value.length) {
879
- const u = c.value.splice(s, 1);
880
- t.emit("removeItem", u[0]);
881
- }
882
- }
883
- return { removeItem: o };
884
- }
885
- function xt() {
886
- const e = a(-1), t = a(""), n = a(-1), c = a(!1);
887
- function o(i, v, l) {
888
- n.value = l;
889
- }
890
- function s(i, v, l) {
891
- c.value || (n.value = l);
892
- }
893
- function u(i, v, l) {
894
- n.value = -1;
895
- }
896
- function f() {
897
- c.value = !0;
898
- }
899
- function b() {
900
- c.value = !1;
901
- }
902
- return {
903
- activeIndex: e,
904
- focusedItemId: t,
905
- hoverIndex: n,
906
- onMouseenterItem: o,
907
- onMouseoverItem: s,
908
- onMouseoutItem: u,
909
- resumeHover: b,
910
- suspendHover: f
911
- };
912
- }
913
- const me = /* @__PURE__ */ U({
914
- name: "FListView",
915
- props: Be,
916
- emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
917
- setup(e, t) {
918
- const n = a(), c = a(e.view), o = a(e.header), s = a(e.multiSelect), u = a(e.view === "CardView"), f = a(!0), b = a({}), i = a("暂无数据"), v = jt(e), {
919
- dataView: l
920
- } = v, r = j(() => {
921
- const W = {
922
- "f-list-view": !0,
923
- "f-list-view-multiple": s.value
924
- };
925
- return e.size !== "default" && (W[`${e.size}-item`] = !0), W;
926
- }), w = j(() => ({
927
- "f-list-view-group": !0,
928
- "d-flex": u.value,
929
- "flex-wrap": u.value
930
- })), d = j(() => !!l.value && l.value.length > 0), y = xt(), m = Ct(e, t, v), C = Ot(e, t, v, y), B = Ft(e, t, v), h = bt(e, t, C, y, m), T = wt(e, n), O = j(() => l.value.length === 0), g = j(() => O.value && !t.slots.empty), x = j(() => !!t.slots.footer || f.value);
931
- function P() {
932
- return c.value === "SingleView" ? he : c.value === "DraggableView" ? Tt : c.value === "ContentView" && t.slots.content ? Bt : he;
933
- }
934
- const S = P(), {
935
- renderItem: V
936
- } = S(e, t, v, C, y, h, m, B);
937
- function I() {
938
- return o.value === "SearchBar" ? ge : o.value === "ContentHeader" ? kt : ge;
939
- }
940
- const E = I(), {
941
- renderHeader: z
942
- } = E(e, t, T);
943
- function L(W) {
944
- T.search(W);
945
- }
946
- t.expose({
947
- search: L
948
- });
949
- function X(W) {
950
- s.value && (W.preventDefault(), W.stopPropagation());
951
- }
952
- return () => p("div", {
953
- class: r.value,
954
- onClick: X
955
- }, [z(), p("div", {
956
- ref: n,
957
- class: "f-list-view-content"
958
- }, [p("ul", {
959
- class: w.value,
960
- style: "list-style: none;"
961
- }, [d.value && l.value.map((W, M) => V(W, M, b)), g.value && p("div", {
962
- class: "f-list-view-emptydata"
963
- }, [p("p", {
964
- class: "f-empty-title"
965
- }, [i.value])]), t.slots.empty && t.slots.empty()])]), x.value && p("div", {
966
- class: "f-list-view-footer"
967
- }, [t.slots.footer && t.slots.footer()])]);
968
- }
969
- }), It = {
970
- /**
971
- * 组件标识
972
- */
973
- id: String,
974
- /**
975
- * 设置按钮类型
976
- */
977
- type: { type: String, default: "primary" },
978
- /**
979
- * 是否禁用
980
- */
981
- disabled: { type: Boolean, default: !1 },
982
- /**
983
- * 按钮尺寸
984
- */
985
- size: { type: String, default: "small" },
986
- /**
987
- * 按钮图标
988
- */
989
- icon: { type: String }
990
- };
991
- function Pt(e, t) {
992
- function n(c) {
993
- c.stopPropagation(), e.disabled || t.emit("click", c);
994
- }
995
- return {
996
- onClickButton: n
997
- };
998
- }
999
- function Mt(e) {
1000
- const t = j(() => {
1001
- const c = {
1002
- "f-icon": !0
1003
- };
1004
- if (e.icon) {
1005
- const o = e.icon.trim().split(" ");
1006
- o && o.length && o.reduce((s, u) => (s[u] = !0, s), c);
1007
- }
1008
- return c;
1009
- }), n = j(() => !!(e.icon && e.icon.trim()));
1010
- return { iconClass: t, shouldShowIcon: n };
1011
- }
1012
- const Te = /* @__PURE__ */ U({
1013
- name: "FButton",
1014
- props: It,
1015
- emits: ["click"],
1016
- setup(e, t) {
1017
- const {
1018
- onClickButton: n
1019
- } = Pt(e, t), {
1020
- iconClass: c,
1021
- shouldShowIcon: o
1022
- } = Mt(e), s = a(e.size), u = a(e.type), f = a(e.disabled), b = j(() => {
1023
- const i = {
1024
- btn: !0,
1025
- "btn-lg": s.value === "large",
1026
- "btn-sm": s.value !== "large"
1027
- };
1028
- return i[`btn-${u.value}`] = !0, i;
1029
- });
1030
- return () => p("button", {
1031
- class: b.value,
1032
- disabled: f.value,
1033
- onClick: (i) => n(i)
1034
- }, [o.value && p("i", {
1035
- class: c.value
1036
- }, null), t.slots.default && t.slots.default()]);
1037
- }
1038
- }), Vt = /* @__PURE__ */ new Map([
1039
- ["appearance", Z]
1040
- ]), $t = "https://json-schema.org/draft/2020-12/schema", Dt = "https://farris-design.gitee.io/combo-list.schema.json", At = "combo-list", Lt = "A Farris Input Component", Et = "object", Rt = {
1041
- id: {
1042
- description: "The unique identifier for a combo list",
1043
- type: "string"
1044
- },
1045
- type: {
1046
- description: "The type string of number combo list component",
1047
- type: "string",
1048
- default: "combo-list"
1049
- },
1050
- appearance: {
1051
- description: "",
1052
- type: "object",
1053
- properties: {
1054
- class: {
1055
- type: "string"
1056
- },
1057
- style: {
1058
- type: "string"
1059
- }
1060
- },
1061
- default: {}
1062
- },
1063
- binding: {
1064
- description: "",
1065
- type: "object",
1066
- default: {}
1067
- },
1068
- editable: {
1069
- description: "",
1070
- type: "boolean",
1071
- default: !0
1072
- },
1073
- enableLinkLabel: {
1074
- description: "",
1075
- type: "boolean",
1076
- default: !1
1077
- },
1078
- label: {
1079
- description: "",
1080
- type: "string",
1081
- default: ""
1082
- },
1083
- lableWidth: {
1084
- description: "",
1085
- type: "number"
1086
- },
1087
- placeHolder: {
1088
- description: "",
1089
- type: "string",
1090
- default: ""
1091
- },
1092
- readonly: {
1093
- description: "",
1094
- type: "boolean",
1095
- default: !1
1096
- },
1097
- required: {
1098
- description: "",
1099
- type: "boolean",
1100
- default: !1
1101
- },
1102
- tabindex: {
1103
- description: "",
1104
- type: "number",
1105
- default: -1
1106
- },
1107
- textAlign: {
1108
- description: "",
1109
- type: "string",
1110
- enum: [
1111
- "left",
1112
- "middle",
1113
- "right"
1114
- ],
1115
- default: "left"
1116
- },
1117
- visible: {
1118
- description: "",
1119
- type: "boolean",
1120
- default: !0
1121
- },
1122
- onBlur: {
1123
- description: "",
1124
- type: "string",
1125
- default: ""
1126
- },
1127
- onClickLinkLabel: {
1128
- description: "",
1129
- type: "sting",
1130
- default: ""
1131
- }
1132
- }, Ht = [
1133
- "id",
1134
- "type"
1135
- ], Nt = {
1136
- $schema: $t,
1137
- $id: Dt,
1138
- title: At,
1139
- description: Lt,
1140
- type: Et,
1141
- properties: Rt,
1142
- required: Ht
1143
- };
1144
- function _t(e, t, n) {
1145
- return t;
1146
- }
1147
- const Wt = "combo-list", qt = "A Farris Component", zt = "object", Ut = {
1148
- basic: {
1149
- description: "Basic Infomation",
1150
- title: "基本信息",
1151
- properties: {
1152
- id: {
1153
- description: "组件标识",
1154
- title: "标识",
1155
- type: "string",
1156
- readonly: !0
1157
- },
1158
- type: {
1159
- description: "组件类型",
1160
- title: "控件类型",
1161
- type: "select",
1162
- editor: {
1163
- type: "waiting for modification",
1164
- enum: []
1165
- }
1166
- }
1167
- }
1168
- },
1169
- behavior: {
1170
- description: "Basic Infomation",
1171
- title: "行为",
1172
- properties: {
1173
- editable: {
1174
- description: "",
1175
- title: "允许编辑",
1176
- type: "boolean"
1177
- },
1178
- readonly: {
1179
- description: "",
1180
- title: "只读",
1181
- type: "string"
1182
- },
1183
- required: {
1184
- description: "",
1185
- title: "必填",
1186
- type: "boolean"
1187
- },
1188
- visible: {
1189
- description: "",
1190
- title: "可见",
1191
- type: "boolean"
1192
- },
1193
- placeHolder: {
1194
- description: "",
1195
- title: "提示文本",
1196
- type: "string"
1197
- },
1198
- tabindex: {
1199
- description: "",
1200
- title: "tab索引",
1201
- type: "number"
1202
- }
1203
- }
1204
- }
1205
- }, Gt = {
1206
- title: Wt,
1207
- description: qt,
1208
- type: zt,
1209
- categories: Ut
1210
- }, ke = {
1211
- /**
1212
- * 组件标识
1213
- */
1214
- id: { type: String },
1215
- /**
1216
- * 下拉数据源
1217
- */
1218
- data: { type: Array, default: [] },
1219
- /**
1220
- * 可选,展示文本
1221
- * 默认为空字符串
1222
- */
1223
- displayText: { type: String, default: "" },
1224
- /**
1225
- * 可选,是否禁用
1226
- * 默认为`false`
1227
- */
1228
- disabled: { default: !1, type: Boolean },
1229
- /**
1230
- * 可选,下拉图标
1231
- * 默认为'<span class="f-icon f-icon-arrow-60-down"></span>'
1232
- */
1233
- dropDownIcon: { type: String, default: '<span class="f-icon f-icon-arrow-60-down"></span>' },
1234
- /**
1235
- * 可选,是否可编辑
1236
- * 默认`false`
1237
- */
1238
- editable: { default: !1, type: Boolean },
1239
- /**
1240
- * 可选,是否启用清空
1241
- * 默认启用
1242
- */
1243
- enableClear: { default: !0, type: Boolean },
1244
- /**
1245
- * 可选,启用搜索
1246
- * 默认为`false`
1247
- */
1248
- enableSearch: { type: Boolean, default: !1 },
1249
- /**
1250
- * 可选,鼠标悬停时是否显示控件值
1251
- * 默认显示
1252
- */
1253
- enableTitle: { default: !0, type: Boolean },
1254
- fitEditor: { default: !1, type: Boolean },
1255
- /**
1256
- * 可选,强制显示占位符
1257
- * 默认`false`
1258
- */
1259
- forcePlaceholder: { default: !1, type: Boolean },
1260
- /**
1261
- * 可选,清空值时隐藏面板
1262
- * 默认`true`
1263
- */
1264
- hidePanelOnClear: { default: !0, type: Boolean },
1265
- /**
1266
- * 可选,数据源id字段
1267
- * 默认为`id`
1268
- */
1269
- idField: { default: "id", type: String },
1270
- /**
1271
- * 可选,字段映射
1272
- */
1273
- mapFields: { type: Object },
1274
- /**
1275
- * 可选,最大高度
1276
- * 默认`350`
1277
- */
1278
- maxHeight: { default: 350, type: Number },
1279
- /**
1280
- * 最大输入长度
1281
- */
1282
- maxLength: { type: Number },
1283
- /**
1284
- * 可选,是否支持多选
1285
- * 默认`false`
1286
- */
1287
- multiSelect: { default: !1, type: Boolean },
1288
- /**
1289
- * 绑定值
1290
- */
1291
- modelValue: {},
1292
- /**
1293
- * 占位符
1294
- */
1295
- placeholder: { type: String },
1296
- /**
1297
- * 可选,下拉面板展示位置
1298
- * 默认为`auto`
1299
- */
1300
- placement: {
1301
- type: String,
1302
- default: "auto"
1303
- /* auto */
1304
- },
1305
- /**
1306
- * 可选,是否只读
1307
- * 默认为`false`
1308
- */
1309
- readonly: { default: !1, type: Boolean },
1310
- /**
1311
- * 远端数据源信息
1312
- */
1313
- remote: { default: null, type: Object },
1314
- /**
1315
- * 可选,是否支持远端过滤
1316
- * 默认`false`
1317
- */
1318
- remoteSearch: { default: !1, type: Boolean },
1319
- /**
1320
- * 可选,分隔符
1321
- * 默认`,`
1322
- */
1323
- separator: { default: ",", type: String },
1324
- /**
1325
- * tabIndex
1326
- */
1327
- tabIndex: { type: Number, default: -1 },
1328
- /**
1329
- * 可选,数据源显示字段
1330
- * 默认为`name`
1331
- */
1332
- textField: { default: "name", type: String },
1333
- /**
1334
- * 可选,数据源的title
1335
- * 默认为`name`
1336
- */
1337
- titleField: { default: "name", type: String },
1338
- /**
1339
- * 可选,数据源值字段
1340
- * 默认为`id`
1341
- */
1342
- valueField: { default: "id", type: String },
1343
- /**
1344
- * 可选,下拉列表值展示方式
1345
- * 支持text | tag,即文本或标签,默认为`ViewType.Text`,即文本方式`text`
1346
- */
1347
- viewType: { default: "text", type: String },
1348
- /**
1349
- * 值变化事件
1350
- */
1351
- change: { type: Function, default: () => {
1352
- } }
1353
- };
1354
- Y(ke, Nt, Vt, _t, Gt);
1355
- const Xt = {
1356
- dataSource: { type: Array, default: [] },
1357
- enableSearch: { type: Boolean, default: !1 },
1358
- idField: { type: String, default: "id" },
1359
- multiSelect: { default: !1, type: Boolean },
1360
- selectedValues: { type: String, default: "" },
1361
- separator: { type: String, default: "," },
1362
- textField: { type: String, default: "name" },
1363
- titleField: { type: String, default: "name" },
1364
- width: { type: Number },
1365
- height: { type: Number },
1366
- valueField: { type: String, default: "id" },
1367
- /** 值变化事件 */
1368
- onSelectionChange: { type: Function, default: () => {
1369
- } }
1370
- }, Kt = /* @__PURE__ */ U({
1371
- name: "FComboListContainer",
1372
- props: Xt,
1373
- emits: ["selectionChange"],
1374
- setup(e, t) {
1375
- const n = a(e.dataSource), c = a([]), o = a(e.separator), s = a(e.width), u = a(e.height), f = a(String(e.selectedValues).split(o.value));
1376
- N(e.dataSource, () => {
1377
- n.value = e.dataSource;
1378
- });
1379
- const b = j(() => e.enableSearch ? "SearchBar" : "ContentHeader"), i = j(() => {
1380
- const l = {};
1381
- return s.value !== void 0 && (l.width = `${s.value}px`), u.value !== void 0 && (l.height = `${u.value}px`), l;
1382
- });
1383
- function v(l) {
1384
- c.value = l.map((r) => Object.assign({}, r)), f.value = l.map((r) => r[e.idField]), t.emit("selectionChange", c.value);
1385
- }
1386
- return N([() => e.selectedValues], ([l]) => {
1387
- f.value = l.split(o.value);
1388
- }), () => p("div", {
1389
- class: "f-combo-list-container pl-3",
1390
- style: i.value
1391
- }, [p(me, {
1392
- size: "small",
1393
- itemClass: "f-combo-list-item",
1394
- header: b.value,
1395
- headerClass: "f-combo-list-search-box",
1396
- data: n.value,
1397
- idField: e.idField,
1398
- textField: e.textField,
1399
- titleField: e.titleField,
1400
- multiSelect: e.multiSelect,
1401
- multiSelectMode: "OnCheckAndClick",
1402
- "selection-values": f.value,
1403
- onSelectionChange: v
1404
- }, null)]);
1405
- }
1406
- }), Jt = /* @__PURE__ */ new Map([
1407
- ["appearance", Z]
1408
- ]);
1409
- function Qt(e, t, n) {
1410
- return t;
1411
- }
1412
- const Yt = "https://json-schema.org/draft/2020-12/schema", Zt = "https://farris-design.gitee.io/button-edit.schema.json", en = "button-edit", tn = "A Farris Input Component", nn = "object", on = {
1413
- id: {
1414
- description: "The unique identifier for a Input Group",
1415
- type: "string"
1416
- },
1417
- type: {
1418
- description: "The type string of Input Group component",
1419
- type: "string",
1420
- default: "button-edit"
1421
- },
1422
- appearance: {
1423
- description: "",
1424
- type: "object",
1425
- properties: {
1426
- class: {
1427
- type: "string"
1428
- },
1429
- style: {
1430
- type: "string"
1431
- }
1432
- },
1433
- default: {}
1434
- },
1435
- binding: {
1436
- description: "",
1437
- type: "object",
1438
- default: {}
1439
- },
1440
- disable: {
1441
- type: "string",
1442
- default: !1
1443
- },
1444
- editable: {
1445
- description: "",
1446
- type: "boolean",
1447
- default: !0
1448
- },
1449
- enableLinkLabel: {
1450
- description: "",
1451
- type: "boolean",
1452
- default: !1
1453
- },
1454
- label: {
1455
- description: "",
1456
- type: "string",
1457
- default: ""
1458
- },
1459
- lableWidth: {
1460
- description: "",
1461
- type: "number"
1462
- },
1463
- placeHolder: {
1464
- description: "",
1465
- type: "string",
1466
- default: ""
1467
- },
1468
- readonly: {
1469
- description: "",
1470
- type: "boolean",
1471
- default: !1
1472
- },
1473
- require: {
1474
- description: "",
1475
- type: "boolean",
1476
- default: !1
1477
- },
1478
- tabindex: {
1479
- description: "",
1480
- type: "number",
1481
- default: -1
1482
- },
1483
- textAlign: {
1484
- description: "",
1485
- type: "string",
1486
- enum: [
1487
- "left",
1488
- "middle",
1489
- "right"
1490
- ],
1491
- default: "left"
1492
- },
1493
- visible: {
1494
- description: "",
1495
- type: "boolean",
1496
- default: !0
1497
- },
1498
- onBlur: {
1499
- description: "",
1500
- type: "string",
1501
- default: ""
1502
- },
1503
- onClickLinkLabel: {
1504
- description: "",
1505
- type: "sting",
1506
- default: ""
1507
- },
1508
- autoComplete: {
1509
- description: "",
1510
- type: "boolean",
1511
- default: !1
1512
- },
1513
- buttonContent: {
1514
- description: "",
1515
- type: "string",
1516
- default: ""
1517
- },
1518
- enableClear: {
1519
- description: "",
1520
- type: "boolean",
1521
- default: !0
1522
- },
1523
- inputType: {
1524
- description: "",
1525
- type: "string",
1526
- enum: [
1527
- "text",
1528
- "tag"
1529
- ],
1530
- default: "text"
1531
- },
1532
- multiSelect: {
1533
- description: "",
1534
- type: "boolean",
1535
- default: !1
1536
- },
1537
- popup: {
1538
- description: "",
1539
- type: "object",
1540
- properties: {
1541
- footerButtons: {
1542
- type: "array",
1543
- default: []
1544
- },
1545
- height: {
1546
- type: "number",
1547
- default: 600
1548
- },
1549
- dataMapping: {
1550
- type: "object"
1551
- },
1552
- contents: {
1553
- type: "array",
1554
- default: []
1555
- },
1556
- showMaxButton: {
1557
- type: "boolean",
1558
- default: !0
1559
- },
1560
- showCloseButton: {
1561
- type: "boolean",
1562
- default: !0
1563
- },
1564
- showFooter: {
1565
- type: "boolean",
1566
- default: !0
1567
- },
1568
- title: {
1569
- type: "string",
1570
- default: ""
1571
- },
1572
- width: {
1573
- type: "number",
1574
- default: 800
1575
- }
1576
- }
1577
- },
1578
- separator: {
1579
- type: "string",
1580
- default: ","
1581
- },
1582
- showButtonWhenDisabled: {
1583
- description: "",
1584
- type: "boolean",
1585
- default: !1
1586
- },
1587
- wrapText: {
1588
- type: "boolean",
1589
- default: !1
1590
- },
1591
- onClear: {
1592
- description: "",
1593
- type: "string",
1594
- default: ""
1595
- }
1596
- }, an = [
1597
- "id",
1598
- "type"
1599
- ], ln = {
1600
- $schema: Yt,
1601
- $id: Zt,
1602
- title: en,
1603
- description: tn,
1604
- type: nn,
1605
- properties: on,
1606
- required: an
1607
- }, sn = "buttonEdit", rn = "A Farris Component", cn = "object", un = {
1608
- basic: {
1609
- description: "Basic Infomation",
1610
- title: "基本信息",
1611
- properties: {
1612
- id: {
1613
- description: "组件标识",
1614
- title: "标识",
1615
- type: "string",
1616
- readonly: !0
1617
- },
1618
- type: {
1619
- description: "组件类型",
1620
- title: "控件类型",
1621
- type: "select",
1622
- editor: {
1623
- type: "waiting for modification",
1624
- enum: []
1625
- }
1626
- }
1627
- }
1628
- },
1629
- behavior: {
1630
- description: "Basic Infomation",
1631
- title: "行为",
1632
- properties: {
1633
- editable: {
1634
- description: "",
1635
- title: "允许编辑",
1636
- type: "boolean"
1637
- },
1638
- readonly: {
1639
- description: "",
1640
- title: "只读",
1641
- type: "string"
1642
- },
1643
- required: {
1644
- description: "",
1645
- title: "必填",
1646
- type: "boolean"
1647
- },
1648
- visible: {
1649
- description: "",
1650
- title: "可见",
1651
- type: "boolean"
1652
- },
1653
- placeHolder: {
1654
- description: "",
1655
- title: "提示文本",
1656
- type: "string"
1657
- },
1658
- tabindex: {
1659
- description: "",
1660
- title: "tab索引",
1661
- type: "number"
1662
- },
1663
- textAlign: {
1664
- description: "",
1665
- title: "对齐方式",
1666
- type: "enum",
1667
- editor: {
1668
- type: "combo-select",
1669
- textField: "name",
1670
- valueField: "value",
1671
- data: [
1672
- {
1673
- value: "left",
1674
- name: "左对齐"
1675
- },
1676
- {
1677
- value: "center",
1678
- name: "居中对齐"
1679
- },
1680
- {
1681
- value: "right",
1682
- name: "右对齐"
1683
- }
1684
- ]
1685
- }
1686
- }
1687
- }
1688
- }
1689
- }, dn = {
1690
- title: sn,
1691
- description: rn,
1692
- type: cn,
1693
- categories: un
1694
- }, je = {
1695
- /**
1696
- * 组件标识
1697
- */
1698
- id: String,
1699
- /**
1700
- * 扩展按钮显示内容,这是一段现在扩展按钮中的html标签
1701
- */
1702
- buttonContent: { type: String, default: '<i class="f-icon f-icon-lookup"></i>' },
1703
- buttonBehavior: { type: String, default: "Popup" },
1704
- /**
1705
- * 启用输入框自动完成功能
1706
- */
1707
- autoComplete: { type: Boolean, default: !1 },
1708
- /**
1709
- * 组件自定义样式
1710
- */
1711
- customClass: { type: String, default: "" },
1712
- /**
1713
- * 禁用组件,既不允许在输入框中录入,也不允许点击扩展按钮。
1714
- */
1715
- disable: { type: Boolean, default: !1 },
1716
- /**
1717
- * 允许在输入框中录入文本。
1718
- */
1719
- editable: { type: Boolean, default: !0 },
1720
- /**
1721
- * 显示清空文本按钮
1722
- */
1723
- enableClear: { type: Boolean, default: !1 },
1724
- /**
1725
- * 组件值
1726
- */
1727
- modelValue: { type: String, default: "" },
1728
- /**
1729
- * 将组件设置为只读,既不允许在输入框中录入,也不允许点击扩展按钮,但是允许复制输入框中的内容。
1730
- */
1731
- readonly: { type: Boolean, default: !1 },
1732
- /**
1733
- * 禁用组件时,是否显示扩展按钮
1734
- */
1735
- showButtonWhenDisabled: { type: Boolean, default: !1 },
1736
- /**
1737
- * 显示输入框的标签
1738
- */
1739
- enableTitle: { type: Boolean, default: !1 },
1740
- /**
1741
- * 输入框类型
1742
- */
1743
- inputType: { type: String, default: "text" },
1744
- /**
1745
- * 显示输入框提示信息
1746
- */
1747
- forcePlaceholder: { type: Boolean, default: !1 },
1748
- /**
1749
- * 输入框提示文本
1750
- */
1751
- placeholder: { type: String, default: "" },
1752
- /**
1753
- * 输入框最小长度
1754
- */
1755
- minLength: Number,
1756
- /**
1757
- * 输入框最大长度
1758
- */
1759
- maxLength: Number,
1760
- /**
1761
- * 输入框Tab键索引
1762
- */
1763
- tabIndex: Number,
1764
- popupHost: { type: Object },
1765
- popupRightBoundary: { type: Object },
1766
- popupOffsetX: { type: Object },
1767
- popupOnInput: { type: Boolean, default: !1 },
1768
- popupOnFocus: { type: Boolean, default: !1 },
1769
- popupMinWidth: { type: Number, default: 160 },
1770
- modalOptions: { type: Object, default: {} },
1771
- wrapText: { type: Boolean, default: !1 },
1772
- /**
1773
- * 可选,是否支持多选
1774
- * 默认`false`
1775
- */
1776
- multiSelect: { type: Boolean, default: !1 },
1777
- /**
1778
- * 可选,分隔符
1779
- * 默认`,`
1780
- */
1781
- separator: { type: String, default: "," },
1782
- /**对齐方式 */
1783
- textAlign: { type: String, default: "left" }
1784
- };
1785
- Y(je, ln, Jt, Qt, dn);
1786
- const pn = {
1787
- popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
1788
- host: { type: Object },
1789
- backgroundColor: { type: String, default: "" }
1790
- }, fn = /* @__PURE__ */ U({
1791
- name: "FOverlay",
1792
- props: pn,
1793
- emits: ["click"],
1794
- setup(e, t) {
1795
- const n = a(e.popupContentPosition), c = a(e.host), o = j(() => ({
1796
- backgroundColor: e.backgroundColor || "",
1797
- pointerEvents: "auto"
1798
- }));
1799
- function s(f) {
1800
- t.emit("click"), f.preventDefault(), f.stopPropagation();
1801
- }
1802
- j(() => {
1803
- const f = c.value;
1804
- if (f) {
1805
- const b = f.getBoundingClientRect(), {
1806
- left: i,
1807
- top: v,
1808
- height: l
1809
- } = b;
1810
- return {
1811
- left: i,
1812
- top: v + l
1813
- };
1814
- }
1815
- return n.value;
1816
- });
1817
- const u = j(() => ({
1818
- // position: 'relative',
1819
- // left: `${position.value.left}px`,
1820
- // top: `${position.value.top}px`
1821
- }));
1822
- return () => p(ce, {
1823
- to: "body"
1824
- }, {
1825
- default: () => {
1826
- var f, b;
1827
- return [p("div", {
1828
- class: "overlay-container",
1829
- onClick: (i) => s(i),
1830
- style: o.value
1831
- }, [p("div", {
1832
- style: u.value
1833
- }, [(b = (f = t.slots).default) == null ? void 0 : b.call(f)])])];
1834
- }
1835
- });
1836
- }
1837
- });
1838
- function vn(e) {
1839
- if (e.content && e.content.render)
1840
- return e.content.render;
1841
- if (e.render && typeof e.render == "function")
1842
- return e.render;
1843
- }
1844
- function mn(e) {
1845
- const t = document.createElement("div");
1846
- t.style.display = "contents";
1847
- let n;
1848
- const c = e.onClickCallback || (() => {
1849
- }), o = () => {
1850
- c(), n && n.unmount();
1851
- };
1852
- return n = be({
1853
- setup() {
1854
- ue(() => {
1855
- document.body.removeChild(t);
1856
- });
1857
- const s = vn(e);
1858
- return () => p(fn, {
1859
- "popup-content-position": e.popupPosition,
1860
- host: e.host,
1861
- onClick: o,
1862
- backgroundColor: e.backgroundColor
1863
- }, {
1864
- default: () => [s && s()]
1865
- });
1866
- }
1867
- }), document.body.appendChild(t), n.mount(t), n;
1868
- }
1869
- class yn {
1870
- static show(t) {
1871
- return mn(t);
1872
- }
1873
- }
1874
- const hn = {
1875
- class: { type: String, default: "" },
1876
- title: { type: String, default: "" },
1877
- width: { type: Number, default: 500 },
1878
- height: { type: Number, default: 320 },
1879
- buttons: {
1880
- type: Array,
1881
- default: []
1882
- },
1883
- modelValue: { type: Boolean, default: !1 },
1884
- showHeader: { type: Boolean, default: !0 },
1885
- showButtons: { type: Boolean, default: !0 },
1886
- fitContent: { type: Boolean, default: !0 }
1887
- }, gn = /* @__PURE__ */ U({
1888
- name: "FModal",
1889
- props: hn,
1890
- emits: ["update:modelValue", "accept", "cancel", "closed"],
1891
- setup(e, t) {
1892
- const n = a(e.width), c = a(e.height), o = a(e.modelValue), s = a(""), u = a(e.class), f = a(e.fitContent), b = a(e.showHeader), i = a(""), v = a(!0), l = a(!1), r = a(!1), w = a(""), d = a(""), y = a(""), m = a(e.showButtons), C = a(e.title);
1893
- function B(A, _) {
1894
- o.value = !1, t.emit("update:modelValue", !1), _ != null && t.emit(_ ? "accept" : "cancel"), t.emit("closed");
1895
- }
1896
- const h = [{
1897
- text: "取消",
1898
- class: "btn btn-light",
1899
- handle: (A) => {
1900
- B(A, !1);
1901
- }
1902
- }, {
1903
- text: "确定",
1904
- class: "btn btn-primary",
1905
- handle: (A) => {
1906
- B(A, !0);
1907
- }
1908
- }], T = a(e.buttons && e.buttons.length ? e.buttons : h), O = j(() => !!i.value), g = j(() => !!m.value && !!T.value);
1909
- a(), a(), N(() => e.modelValue, () => {
1910
- o.value = e.modelValue;
1911
- });
1912
- const x = a(!1), P = j(() => o.value), S = j(() => {
1913
- const A = {
1914
- modal: !0,
1915
- "farris-modal": !0
1916
- };
1917
- return A["f-modal-fitContent"] = f.value, A;
1918
- }), V = j(() => ({
1919
- display: P.value ? "block" : "none !important"
1920
- })), I = j(() => {
1921
- const A = {
1922
- "modal-dialog": !0
1923
- };
1924
- return u.value.split(" ").reduce((H, K) => (H[K] = !0, H), A), A;
1925
- }), E = j(() => ({
1926
- position: "absolute",
1927
- top: "50%",
1928
- left: "50%",
1929
- width: `${n.value}px`,
1930
- height: f.value ? "auto" : `${c.value}px`,
1931
- "margin-left": `${0 - n.value / 2}px`,
1932
- "margin-top": f.value ? "auto" : `${0 - c.value / 2}px`
1933
- })), z = j(() => ({
1934
- "modal-content": !0,
1935
- "modal-content-has-header": b.value
1936
- })), L = j(() => ({
1937
- display: b.value ? "" : "none"
1938
- })), X = j(() => ({
1939
- "f-icon": !0,
1940
- modal_maximize: !0,
1941
- modalrevert: x.value
1942
- })), W = j(() => ({
1943
- height: "10px",
1944
- "z-index": 1,
1945
- display: b.value ? "none" : ""
1946
- })), M = j(() => ({
1947
- "modal-body": !0,
1948
- "f-utils-flex-column": w.value === "iframe"
1949
- }));
1950
- function D() {
1951
- return {};
1952
- }
1953
- const R = j(() => {
1954
- const A = {
1955
- textAlgin: y.value
1956
- }, _ = D();
1957
- return Object.assign(A, _);
1958
- });
1959
- function q(A) {
1960
- }
1961
- return () => p(ce, {
1962
- to: "body"
1963
- }, {
1964
- default: () => {
1965
- var A, _;
1966
- return [p("div", {
1967
- class: S.value,
1968
- style: V.value
1969
- }, [p("div", {
1970
- id: s.value,
1971
- class: I.value,
1972
- style: E.value
1973
- }, [p("div", {
1974
- class: z.value
1975
- }, [p("div", {
1976
- ref: "modalHeaderRef",
1977
- class: "modal-header",
1978
- style: L.value
1979
- }, [p("div", {
1980
- class: "modal-title"
1981
- }, [O.value && p("span", {
1982
- class: i.value,
1983
- style: "margin-right: 8px"
1984
- }, null), p("span", {
1985
- class: "modal-title-label"
1986
- }, [C.value])]), p("div", {
1987
- class: "actions"
1988
- }, [p("ul", null, [r.value && p("li", {
1989
- class: "f-btn-icon f-bare"
1990
- }, [p("span", {
1991
- class: "f-icon modal_minimize"
1992
- }, null)]), l.value && p("li", {
1993
- onClick: q,
1994
- class: "f-btn-icon f-bare"
1995
- }, [p("span", {
1996
- class: X.value
1997
- }, null)]), v.value && p("li", {
1998
- class: "f-btn-icon f-bare",
1999
- onClick: (H) => B(H, !1)
2000
- }, [p("span", {
2001
- class: "f-icon modal_close"
2002
- }, null)])])])]), p("div", {
2003
- ref: "dragableElementRef",
2004
- class: "f-utils-absolute-all",
2005
- style: W.value
2006
- }, null), p("div", {
2007
- class: M.value
2008
- }, [(_ = (A = t.slots).default) == null ? void 0 : _.call(A), w.value === "iframe" && p("iframe", {
2009
- title: s.value,
2010
- class: "f-utils-fill",
2011
- width: "100%",
2012
- frameborder: "0",
2013
- src: d.value
2014
- }, null)]), g.value && p("div", {
2015
- class: "modal-footer",
2016
- style: R.value
2017
- }, [T.value && T.value.map((H) => p("button", {
2018
- type: "button",
2019
- class: H.class + " " + (H.iconClass && "btn-icontext"),
2020
- onClick: (K) => {
2021
- H.handle && H.handle(K);
2022
- }
2023
- }, [!!H.iconClass && p("i", {
2024
- class: H.iconClass
2025
- }, null), H.text]))])])])])];
2026
- }
2027
- });
2028
- }
2029
- });
2030
- function bn(e) {
2031
- if (e.content && e.content.render)
2032
- return e.content.render;
2033
- if (e.render && typeof e.render == "function")
2034
- return e.render;
2035
- }
2036
- function Cn(e) {
2037
- const t = document.createElement("div");
2038
- t.style.display = "contents";
2039
- const n = be({
2040
- setup() {
2041
- ue(() => {
2042
- document.body.removeChild(t);
2043
- });
2044
- const c = a(e.class || ""), o = a(!!e.showButtons), s = a(!!e.showHeader), u = a(!0), f = a(e.title || ""), b = e.acceptCallback || (() => {
2045
- }), i = e.rejectCallback || (() => {
2046
- }), v = bn(e), l = () => {
2047
- u.value = !1, n.unmount();
2048
- };
2049
- return () => p(gn, {
2050
- class: c.value,
2051
- modelValue: u.value,
2052
- "onUpdate:modelValue": (r) => u.value = r,
2053
- title: f.value,
2054
- width: e.width,
2055
- height: e.height,
2056
- buttons: e.buttons,
2057
- "show-header": s.value,
2058
- "show-buttons": o.value,
2059
- onAccept: b,
2060
- onCancel: i,
2061
- fitContent: e.fitContent,
2062
- onClosed: l
2063
- }, {
2064
- default: () => [v && v(n)]
2065
- });
2066
- }
2067
- });
2068
- return document.body.appendChild(t), n.mount(t), n;
2069
- }
2070
- class wn {
2071
- static show(t) {
2072
- const n = Object.assign({
2073
- title: "",
2074
- showButtons: !0,
2075
- showHeader: !0
2076
- }, t);
2077
- return Cn(n);
2078
- }
2079
- }
2080
- function Sn(e, t, n, c) {
2081
- const o = a(e.buttonBehavior), s = a(e.popupOnInput), u = j(() => ({
2082
- "input-group-append": !0,
2083
- "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
2084
- })), f = j(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable);
2085
- async function b(l) {
2086
- if (f.value) {
2087
- const r = !!t.slots.default;
2088
- if (o.value === "Modal") {
2089
- const w = e.modalOptions;
2090
- wn.show({
2091
- ...w,
2092
- render: () => t.slots.default && t.slots.default()
2093
- });
2094
- }
2095
- o.value === "Overlay" && yn.show({
2096
- // host: buttonEditRef.value,
2097
- host: document.body,
2098
- backgroundColor: "rgba(0,0,0,.15)",
2099
- render: () => t.slots.default && t.slots.default()
2100
- }), r && o.value === "Popup" && c.togglePopup(), r && s.value && c.hidePopup(), t.emit("clickButton", { origin: l, value: e.modelValue });
2101
- }
2102
- l.stopPropagation();
2103
- }
2104
- function i(l) {
2105
- t.emit("mouseEnterIcon", l);
2106
- }
2107
- function v(l) {
2108
- t.emit("mouseLeaveIcon", l);
2109
- }
2110
- return {
2111
- buttonGroupClass: u,
2112
- onClickButton: b,
2113
- onMouseEnterButton: i,
2114
- onMouseLeaveButton: v
2115
- };
2116
- }
2117
- function Bn(e, t, n, c, o, s) {
2118
- const u = a(!1), f = j(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: b } = s;
2119
- function i(w) {
2120
- u.value = w;
2121
- }
2122
- N(o, () => {
2123
- i(!!o.value);
2124
- });
2125
- function v(w) {
2126
- const d = !e.readonly && !e.disable && e.editable, y = !e.editable;
2127
- w.stopPropagation(), (d || y) && (b("", !1), i(!u.value), t.emit("clear"));
2128
- }
2129
- function l(w) {
2130
- if (f.value) {
2131
- if (!n.value) {
2132
- i(!1);
2133
- return;
2134
- }
2135
- !e.disable && !e.readonly && i(!0);
2136
- }
2137
- }
2138
- function r(w) {
2139
- f.value && i(!1);
2140
- }
2141
- return {
2142
- enableClearButton: f,
2143
- showClearButton: u,
2144
- onClearValue: v,
2145
- onMouseEnterTextBox: l,
2146
- onMouseLeaveTextBox: r
2147
- };
2148
- }
2149
- function Tn(e, t, n, c, o) {
2150
- const s = a(e.popupOnInput), u = a(e.popupOnFocus), { shouldPopupContent: f } = o, b = j(() => e.enableTitle ? n.value : ""), i = j(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = j(() => e.readonly || !e.editable), l = a(!1), r = j(() => !e.disable && l.value), w = j(() => ({
2151
- "text-left": e.textAlign === "left",
2152
- "text-center": e.textAlign === "center",
2153
- "text-right": e.textAlign === "right",
2154
- "form-control": !0,
2155
- "f-utils-fill": !0
2156
- })), d = j(() => ({
2157
- "input-group": !0,
2158
- "f-state-disable": e.disable,
2159
- "f-state-editable": e.editable && !e.disable && !e.readonly,
2160
- "f-state-readonly": e.readonly && !e.disable,
2161
- "f-state-focus": r.value
2162
- }));
2163
- function y(S, V = !0) {
2164
- n.value !== S && (n.value = S, V && t.emit("change", S), t.emit("update:modelValue", S));
2165
- }
2166
- function m(S) {
2167
- f.value = !1, y(S, !0);
2168
- }
2169
- N(
2170
- () => e.modelValue,
2171
- (S) => {
2172
- n.value = S;
2173
- }
2174
- );
2175
- function C(S) {
2176
- l.value = !1, t.emit("blur", S), S.stopPropagation();
2177
- }
2178
- function B(S) {
2179
- t.emit("click", S);
2180
- }
2181
- function h(S) {
2182
- e.disable || (l.value = !0, v.value || (t.emit("focus", S), u.value && !f.value && o.popup()));
2183
- }
2184
- function T(S) {
2185
- t.emit("input", S.target.value);
2186
- const V = S.target.value;
2187
- c.value = V, n.value !== V && y(V, !1), s.value && !f.value && o.popup();
2188
- }
2189
- function O(S) {
2190
- S.target.tagName !== "INPUT" && S.preventDefault(), S.stopPropagation();
2191
- }
2192
- function g(S) {
2193
- t.emit("keydown", S);
2194
- }
2195
- function x(S) {
2196
- S.key === "Enter" && (s.value || u.value) && o.hidePopup(), t.emit("keyup", S);
2197
- }
2198
- function P(S) {
2199
- const V = S.target.value;
2200
- S.stopPropagation(), y(V);
2201
- }
2202
- return {
2203
- hasFocusedTextBox: r,
2204
- isTextBoxReadonly: v,
2205
- textBoxClass: w,
2206
- textBoxPlaceholder: i,
2207
- textBoxTitle: b,
2208
- inputGroupClass: d,
2209
- changeTextBoxValue: y,
2210
- commitValue: m,
2211
- onBlurTextBox: C,
2212
- onClickTextBox: B,
2213
- onFocusTextBox: h,
2214
- onInput: T,
2215
- onKeyDownTextBox: g,
2216
- onKeyUpTextBox: x,
2217
- onMouseDownTextBox: O,
2218
- onTextBoxValueChange: P
2219
- };
2220
- }
2221
- function kn(e, t, n) {
2222
- const c = a(), o = a(!1);
2223
- function s() {
2224
- const i = c.value;
2225
- i && i.show(n.value);
2226
- }
2227
- async function u() {
2228
- !!t.slots.default && (o.value = !o.value, await J(), s());
2229
- }
2230
- async function f() {
2231
- !!t.slots.default && (o.value = !0, await J(), s());
2232
- }
2233
- function b() {
2234
- o.value = !1;
2235
- }
2236
- return { hidePopup: b, popup: f, shouldPopupContent: o, togglePopup: u, popoverRef: c };
2237
- }
2238
- function jn(e, t, n) {
2239
- const {
2240
- isTextBoxReadonly: c,
2241
- textBoxClass: o,
2242
- textBoxPlaceholder: s,
2243
- textBoxTitle: u,
2244
- onBlurTextBox: f,
2245
- onClickTextBox: b,
2246
- onFocusTextBox: i,
2247
- onInput: v,
2248
- onKeyDownTextBox: l,
2249
- onKeyUpTextBox: r,
2250
- onMouseDownTextBox: w,
2251
- onTextBoxValueChange: d
2252
- } = n;
2253
- return () => p("input", {
2254
- name: "input-group-value",
2255
- autocomplete: e.autoComplete ? "on" : "off",
2256
- class: o.value,
2257
- disabled: e.disable,
2258
- maxlength: e.maxLength,
2259
- minlength: e.minLength,
2260
- placeholder: s.value,
2261
- readonly: c.value,
2262
- tabindex: e.tabIndex,
2263
- title: u.value,
2264
- type: e.inputType,
2265
- value: t.value,
2266
- onBlur: f,
2267
- onChange: d,
2268
- onClick: b,
2269
- onFocus: i,
2270
- onInput: v,
2271
- onKeydown: l,
2272
- onKeyup: r,
2273
- onMousedown: w
2274
- }, null);
2275
- }
2276
- function On(e, t, n) {
2277
- return t;
2278
- }
2279
- const Fn = /* @__PURE__ */ new Map([
2280
- ["appearance", Z]
2281
- ]), xn = "tags", In = "A Farris Component", Pn = "object", Mn = {
2282
- basic: {
2283
- description: "Basic Infomation",
2284
- title: "基本信息",
2285
- properties: {
2286
- id: {
2287
- description: "组件标识",
2288
- title: "标识",
2289
- type: "string",
2290
- readonly: !0
2291
- },
2292
- type: {
2293
- description: "组件类型",
2294
- title: "控件类型",
2295
- type: "select",
2296
- editor: {
2297
- type: "waiting for modification",
2298
- enum: []
2299
- }
2300
- }
2301
- }
2302
- }
2303
- }, Vn = {
2304
- title: xn,
2305
- description: In,
2306
- type: Pn,
2307
- categories: Mn
2308
- }, $n = "https://json-schema.org/draft/2020-12/schema", Dn = "https://farris-design.gitee.io/tags.schema.json", An = "tags", Ln = "A Farris Component", En = "object", Rn = {
2309
- id: {
2310
- description: "The unique identifier for tags",
2311
- type: "string"
2312
- },
2313
- type: {
2314
- description: "The type string of tags",
2315
- type: "string",
2316
- default: "tags"
2317
- },
2318
- appearance: {
2319
- description: "",
2320
- type: "object",
2321
- properties: {
2322
- class: {
2323
- type: "string"
2324
- },
2325
- style: {
2326
- type: "string"
2327
- }
2328
- },
2329
- default: {}
2330
- },
2331
- binding: {
2332
- description: "",
2333
- type: "object",
2334
- default: {}
2335
- },
2336
- disable: {
2337
- type: "string",
2338
- default: !1
2339
- },
2340
- editable: {
2341
- description: "",
2342
- type: "boolean",
2343
- default: !0
2344
- },
2345
- placeHolder: {
2346
- description: "",
2347
- type: "string",
2348
- default: ""
2349
- },
2350
- readonly: {
2351
- description: "",
2352
- type: "boolean",
2353
- default: !1
2354
- },
2355
- require: {
2356
- description: "",
2357
- type: "boolean",
2358
- default: !1
2359
- },
2360
- tabindex: {
2361
- description: "",
2362
- type: "number",
2363
- default: -1
2364
- },
2365
- visible: {
2366
- description: "",
2367
- type: "boolean",
2368
- default: !0
2369
- }
2370
- }, Hn = [
2371
- "id",
2372
- "type"
2373
- ], Nn = {
2374
- $schema: $n,
2375
- $id: Dn,
2376
- title: An,
2377
- description: Ln,
2378
- type: En,
2379
- properties: Rn,
2380
- required: Hn
2381
- }, Oe = {
2382
- activeTag: { type: String, default: "" },
2383
- addButtonText: { type: String, default: "" },
2384
- customClass: { type: String, default: "" },
2385
- customStyle: { type: String, default: "" },
2386
- data: { type: Array, default: [{ name: "示例1" }] },
2387
- enableAddButton: { type: Boolean, default: !1 },
2388
- selectable: { type: Boolean, default: !1 },
2389
- showAddButton: { type: Boolean, default: !1 },
2390
- showClose: { type: Boolean, default: !0 },
2391
- showColor: { type: Boolean, default: !1 },
2392
- tagType: { type: String, default: "" },
2393
- tagStyle: { type: String, default: "" },
2394
- wrapText: { type: Boolean, default: !1 },
2395
- draggable: { type: Boolean, default: !1 },
2396
- disable: { type: Boolean, default: !1 }
2397
- };
2398
- Y(Oe, Nn, Fn, On, Vn);
2399
- function _n(e, t, n, c) {
2400
- const o = a(-1), s = a(!1);
2401
- function u(v, l, r) {
2402
- v.stopPropagation(), l && setTimeout(() => {
2403
- o.value = r, s.value = !0, l.moving = !0;
2404
- });
2405
- }
2406
- function f(v, l) {
2407
- if (v.preventDefault(), o.value !== l) {
2408
- const r = c.value[o.value], w = c.value;
2409
- w.splice(o.value, 1), w.splice(l, 0, r), o.value = l;
2410
- }
2411
- }
2412
- function b(v, l) {
2413
- v.preventDefault(), v.dataTransfer && (v.dataTransfer.dropEffect = "move");
2414
- }
2415
- function i(v, l) {
2416
- l && (l.moving = !1), n.value = c.value.filter((r) => r.type === "Tag").map((r) => r.payload), s.value = !1, t.emit("change", n.value);
2417
- }
2418
- return {
2419
- dragstart: u,
2420
- dragenter: f,
2421
- dragover: b,
2422
- dragend: i,
2423
- isDragging: s
2424
- };
2425
- }
2426
- const Wn = /* @__PURE__ */ U({
2427
- name: "FTags",
2428
- props: Oe,
2429
- emits: ["remove", "selectionChange", "change"],
2430
- setup(e, t) {
2431
- const n = a(e.selectable), c = a(e.customClass), o = a(e.data), s = a(e.tagType), u = a(e.tagStyle), f = a(e.showColor), b = a(e.customStyle), i = a(e.activeTag), v = a(e.showClose), l = a(e.addButtonText), r = a(), w = a(e.wrapText), d = a();
2432
- a(e.disable);
2433
- const y = a(!1);
2434
- function m() {
2435
- const k = o.value.map((F) => ({
2436
- type: "Tag",
2437
- payload: F
2438
- }));
2439
- return e.showAddButton && k.push({
2440
- type: "AddButton"
2441
- }), k;
2442
- }
2443
- const C = a(m());
2444
- function B(k) {
2445
- o.value = k, C.value = m();
2446
- }
2447
- const h = j(() => C.value.findIndex((k) => k.type === "Input")), T = _n(e, t, o, C), {
2448
- dragstart: O,
2449
- dragenter: g,
2450
- dragover: x,
2451
- dragend: P
2452
- } = T;
2453
- N(() => e.data, (k) => B(k)), N(() => e.showAddButton, () => {
2454
- C.value = m();
2455
- }), N(() => e.disable, (k) => {
2456
- C.value = m();
2457
- }), N(() => e.activeTag, (k) => {
2458
- i.value = k;
2459
- }), N(y, (k) => {
2460
- const F = [...C.value];
2461
- k ? F.length > 0 && F[F.length - 1].type != "Input" && (F.splice(F.length - 1, 1), F.splice(F.length, 0, {
2462
- type: "Input"
2463
- }), C.value = F, J(() => {
2464
- d.value && d.value.focus();
2465
- })) : F.length > 0 && F[F.length - 1].type != "AddButton" && (F.splice(F.length - 1, 1), F.splice(F.length, 0, {
2466
- type: "AddButton"
2467
- }), C.value = F);
2468
- });
2469
- const S = j(() => {
2470
- const k = {
2471
- "farris-tags": !0,
2472
- "farris-tags-checkable": n.value,
2473
- "farris-tags-nowrap": !w.value
2474
- };
2475
- return c.value.split(" ").reduce((F, $) => (F[$] = !0, F), k), k;
2476
- });
2477
- function V(k) {
2478
- const F = {
2479
- "farris-tag-item": !0,
2480
- "farris-tag-item-checked": n.value && k.checked,
2481
- "farris-tag-item-checkable": n.value,
2482
- "farris-tag-item-has-color": f.value,
2483
- "farris-tag-item-actived": i.value === k.name
2484
- };
2485
- if (s.value) {
2486
- const $ = `farris-tag-item-${s.value}`;
2487
- F[$] = !0;
2488
- }
2489
- return F;
2490
- }
2491
- const I = j(() => {
2492
- const k = {};
2493
- return b.value && b.value.split(";").reduce((F, $) => {
2494
- const G = $.split(":");
2495
- return F[G[0]] = G[1], F;
2496
- }, k), k;
2497
- });
2498
- function E(k, F) {
2499
- !e.disable && n.value && (!F.hasOwnProperty("selectable") || F.selectable) && (F.checked = !F.checked, i.value = F.checked ? F.name : "", F.checked && o.value.filter(($) => $.name !== F.name).forEach(($) => {
2500
- $.checked = !F.checked;
2501
- }), t.emit("change", o.value), t.emit("selectionChange", F));
2502
- }
2503
- function z(k, F) {
2504
- let $;
2505
- switch (k.key) {
2506
- case "Backspace":
2507
- o.value = o.value.filter((G) => G.name !== F.name), t.emit("change", o.value);
2508
- break;
2509
- case "ArrowLeft":
2510
- $ = Math.max(r.value.scrollLeft + 20, 0), r.value.scrollLeft = $;
2511
- break;
2512
- case "ArrowRight":
2513
- $ = Math.max(r.value.scrollLeft - 20, 0), r.value.scrollLeft = $;
2514
- }
2515
- }
2516
- function L(k, F) {
2517
- const $ = o.value.findIndex((G) => G.name === F.name);
2518
- if ($ > -1) {
2519
- const [G] = o.value.splice($, 1);
2520
- C.value = m(), t.emit("change", o.value), t.emit("remove", {
2521
- tags: o.value,
2522
- remove: G
2523
- });
2524
- }
2525
- k.stopPropagation();
2526
- }
2527
- const X = j(() => ({
2528
- "farris-tag-item": !0,
2529
- "farris-tag-add-button": !0,
2530
- "farris-tag-add-button-disabled": !e.enableAddButton
2531
- }));
2532
- function W(k) {
2533
- k.stopPropagation(), y.value = !0;
2534
- }
2535
- function M() {
2536
- return !e.disable && p("li", {
2537
- class: X.value,
2538
- onClick: (k) => W(k)
2539
- }, [p("span", {
2540
- class: "f-icon f-icon-amplification"
2541
- }, null), l.value && p("span", {
2542
- class: "farris-tag-add-text"
2543
- }, [l.value])]);
2544
- }
2545
- function D(k, F, $) {
2546
- k > -1 && (o.value.splice(k, 0, {
2547
- name: F,
2548
- value: $,
2549
- selectable: n.value
2550
- }), C.value = m(), y.value = !1, t.emit("change", o.value));
2551
- }
2552
- function R(k) {
2553
- if (k && k.value) {
2554
- const F = k.value, $ = h.value;
2555
- D($, F, F), k.innerText = "";
2556
- } else
2557
- y.value = !1;
2558
- }
2559
- function q(k) {
2560
- const F = k.target;
2561
- F && F.value ? R(F) : y.value = !1;
2562
- }
2563
- function A(k) {
2564
- k.key === "Enter" && R(k.target);
2565
- }
2566
- function _() {
2567
- return !e.disable && p("li", {
2568
- class: "farris-tag-input-box"
2569
- }, [p("input", {
2570
- ref: d,
2571
- class: "form-control",
2572
- onKeyup: A,
2573
- onBlur: q
2574
- }, null)]);
2575
- }
2576
- function H(k, F) {
2577
- return p("li", {
2578
- class: V(k),
2579
- style: I.value,
2580
- tabindex: 0,
2581
- id: k.name,
2582
- key: k.name,
2583
- onClick: ($) => E($, k),
2584
- onKeydown: ($) => z($, k),
2585
- draggable: "true",
2586
- onDragstart: ($) => O($, k, F),
2587
- onDragenter: ($) => g($, F),
2588
- onDragend: ($) => P($, k),
2589
- onDragover: ($) => x($, F)
2590
- }, [p("span", {
2591
- title: k.name,
2592
- class: "tag-box"
2593
- }, [k.name]), !e.disable && v.value && p("span", {
2594
- class: "tag-delete"
2595
- }, [p("i", {
2596
- class: "f-icon f-icon-close",
2597
- onClick: ($) => L($, k)
2598
- }, null)])]);
2599
- }
2600
- function K() {
2601
- return C.value.map((k, F) => {
2602
- switch (k.type) {
2603
- case "Tag":
2604
- return H(k.payload, F);
2605
- case "AddButton":
2606
- return M();
2607
- case "Input":
2608
- return _();
2609
- }
2610
- });
2611
- }
2612
- const ae = j(() => ({
2613
- "farris-tags-item-container": !0,
2614
- "farris-tag-item-capsule": u.value === "capsule"
2615
- }));
2616
- function le(k) {
2617
- const F = Math.max(r.value.scrollLeft - k.deltaX, 0);
2618
- r.value.scrollLeft = F;
2619
- }
2620
- function Fe(k) {
2621
- var $;
2622
- k.preventDefault(), k.stopPropagation();
2623
- const F = ($ = k.dataTransfer) == null ? void 0 : $.getData("Text");
2624
- if (F) {
2625
- const G = F.split(":"), Ie = G[0], ee = G[1];
2626
- [...o.value].findIndex((ie) => (console.log(`${ie.value} === ${ee} is ${ie.value === ee}`), ie.value === ee)) > -1 || D(o.value.length, Ie, ee);
2627
- }
2628
- }
2629
- function xe(k) {
2630
- k.preventDefault();
2631
- }
2632
- return () => p("div", {
2633
- class: S.value,
2634
- onDrop: Fe,
2635
- onDragover: xe
2636
- }, [p("ul", {
2637
- ref: r,
2638
- class: ae.value,
2639
- onWheel: (k) => le(k)
2640
- }, [K()])]);
2641
- }
2642
- });
2643
- function qn(e, t, n) {
2644
- const c = a(e.separator), {
2645
- changeTextBoxValue: o
2646
- } = n, s = j(() => t.value ? t.value.split(c.value).map((f) => ({
2647
- name: f,
2648
- selectable: !0
2649
- })) : []);
2650
- function u(f) {
2651
- o(f.map((b) => b.name).join(c.value), !0);
2652
- }
2653
- return () => p(Wn, {
2654
- id: `${e.id}-tag-editor`,
2655
- class: "form-control",
2656
- data: s.value,
2657
- showClose: !0,
2658
- showInput: !0,
2659
- onChange: u
2660
- }, null);
2661
- }
2662
- function zn(e, t, n) {
2663
- const {
2664
- buttonGroupClass: c,
2665
- onClickButton: o,
2666
- onMouseEnterButton: s,
2667
- onMouseLeaveButton: u
2668
- } = t, {
2669
- enableClearButton: f,
2670
- showClearButton: b,
2671
- onClearValue: i
2672
- } = n;
2673
- return () => p("div", {
2674
- id: `${e.id}-button-group`,
2675
- class: c.value
2676
- }, [f.value && ne(p("span", {
2677
- class: "input-group-text input-group-clear",
2678
- onClick: i
2679
- }, [p("i", {
2680
- class: "f-icon modal_close"
2681
- }, null)]), [[Ce, b.value]]), e.buttonContent && p("span", {
2682
- class: "input-group-text input-group-append-button",
2683
- innerHTML: e.buttonContent,
2684
- onClick: o,
2685
- onMouseenter: s,
2686
- onMouseleave: u
2687
- }, null)]);
2688
- }
2689
- const Un = {
2690
- id: { type: String },
2691
- title: { type: String },
2692
- placement: { type: String, default: "bottom" },
2693
- reference: {
2694
- type: Object
2695
- },
2696
- host: {
2697
- type: Object
2698
- },
2699
- leftBoundary: {
2700
- type: Object
2701
- },
2702
- rightBoundary: {
2703
- type: Object
2704
- },
2705
- visible: { type: Boolean, default: !1 },
2706
- class: { type: String },
2707
- offsetX: { type: Object, default: a(0) },
2708
- zIndex: { type: Number, default: -1 },
2709
- keepWidthWithReference: { type: Boolean, default: !1 },
2710
- fitContent: { type: Boolean, default: !1 },
2711
- minWidth: { type: Number, default: -1 }
2712
- };
2713
- function Gn(e) {
2714
- const t = e.host ? e.host : "body", n = j(() => t === "body" ? 0 : t ? t.getBoundingClientRect().top : 0), c = j(() => t === "body" ? 0 : t ? t.getBoundingClientRect().left : 0), o = j(() => t === "body" ? document.body.getBoundingClientRect().width : t ? t.getBoundingClientRect().width - (e.rightBoundary ? e.rightBoundary.getBoundingClientRect().width : 0) : document.body.getBoundingClientRect().width), s = j(() => t === "body" ? document.body.getBoundingClientRect().height : t ? t.getBoundingClientRect().height : document.body.getBoundingClientRect().height);
2715
- return { host: t, hostLeft: c, hostTop: n, hostWidth: o, hostHeight: s };
2716
- }
2717
- function Xn(e, t, n, c) {
2718
- var W;
2719
- const o = a(0), s = a(((W = e.offsetX) == null ? void 0 : W.value) || 0), u = a(e.minWidth), f = a(-1), b = a(-1), i = a(e.placement), v = a(0), l = a(0), r = a(0), w = a(document.documentElement.scrollLeft), d = a(document.documentElement.scrollTop), { hostLeft: y, hostTop: m, hostWidth: C, hostHeight: B } = c;
2720
- N(e.offsetX, (M) => {
2721
- o.value = M - s.value;
2722
- });
2723
- const h = j(() => {
2724
- const M = {
2725
- left: `${l.value}px`,
2726
- top: `${r.value}px`,
2727
- transform: `translateX(${o.value}px)`
2728
- };
2729
- return e.zIndex !== -1 && (M["z-index"] = e.zIndex), u.value !== -1 && (M.width = `${u.value}px`), M;
2730
- }), T = j(() => ({
2731
- left: `${v.value}px`
2732
- }));
2733
- function O(M) {
2734
- if (M && e.keepWidthWithReference) {
2735
- const D = M.getBoundingClientRect();
2736
- u.value = Math.max(e.minWidth, D.width);
2737
- }
2738
- }
2739
- function g(M, D) {
2740
- const R = C.value - M.width - 4;
2741
- return R > 0 ? R : D;
2742
- }
2743
- function x(M, D) {
2744
- const R = B.value - M.height - 4;
2745
- return R > 0 ? R : D;
2746
- }
2747
- function P(M, D, R) {
2748
- const q = v.value, A = D.left - y.value + D.width / 2 + w.value, _ = D.top - m.value - (M.height + R.height) + d.value;
2749
- return { popoverLeft: A, popoverTop: _, arrowLeft: q };
2750
- }
2751
- function S(M, D, R) {
2752
- const q = D.top - m.value + (D.height + R.height) + d.value, A = x(M, q);
2753
- return Math.min(q, A);
2754
- }
2755
- function V(M, D) {
2756
- const R = g(D, M), q = M <= R ? v.value : M - R;
2757
- return { popoverLeft: Math.min(M, R), arrowLeft: q };
2758
- }
2759
- function I(M, D, R) {
2760
- const q = D.left - y.value + D.width / 2 - (R.width / 2 - (M.left - y.value)) + w.value, { arrowLeft: A, popoverLeft: _ } = V(q, M), H = S(M, D, R);
2761
- return { popoverLeft: _, popoverTop: H, arrowLeft: A };
2762
- }
2763
- function E(M, D, R) {
2764
- const q = D.left - y.value + w.value, { arrowLeft: A, popoverLeft: _ } = V(q, M), H = S(M, D, R);
2765
- return { popoverLeft: _, popoverTop: H, arrowLeft: A };
2766
- }
2767
- const z = /* @__PURE__ */ new Map([
2768
- ["top", P],
2769
- ["bottom", I],
2770
- ["bottom-left", E]
2771
- ]);
2772
- function L(M) {
2773
- var _, H;
2774
- const D = M.getBoundingClientRect();
2775
- f.value = D.top, b.value = D.left;
2776
- const R = (_ = t.value) == null ? void 0 : _.getBoundingClientRect(), q = (H = n.value) == null ? void 0 : H.getBoundingClientRect(), A = z.get(i.value);
2777
- if (A) {
2778
- const { arrowLeft: K, popoverLeft: ae, popoverTop: le } = A(q, D, R);
2779
- v.value = K, l.value = ae, r.value = le;
2780
- }
2781
- e.keepWidthWithReference && O(M);
2782
- }
2783
- function X(M) {
2784
- if (M) {
2785
- const D = M.getBoundingClientRect();
2786
- (D.left !== b.value || D.top !== f.value) && L(M);
2787
- }
2788
- }
2789
- return {
2790
- arrowStyle: T,
2791
- popoverStyle: h,
2792
- position: i,
2793
- popoverWidth: u,
2794
- fitToReference: O,
2795
- followToReferencePosition: X,
2796
- locateToReference: L
2797
- };
2798
- }
2799
- function Kn(e, t, n, c, o, s, u) {
2800
- const f = a(e.visible), b = j(() => f.value), { fitToReference: i, locateToReference: v } = u;
2801
- let l;
2802
- function r() {
2803
- f.value = !1, document.body.removeEventListener("click", l), t.emit("hidden");
2804
- }
2805
- l = (d) => {
2806
- if (!o.value.contains(d.target)) {
2807
- const y = o.value.closest(".popover");
2808
- y && y.removeEventListener("click", l), r();
2809
- }
2810
- };
2811
- async function w(d) {
2812
- if (c.value && n.value && d) {
2813
- f.value = !0, o.value = d, s.value && i(d), await J(), v(d), document.body.addEventListener("click", l);
2814
- const y = d.closest(".popover");
2815
- y && y.addEventListener("click", l), t.emit("shown");
2816
- }
2817
- }
2818
- return t.expose({ hide: r, show: w, shown: b }), { showPopover: f, hidePopverOnClickBodyHandler: l };
2819
- }
2820
- function Jn(e, t, n, c, o) {
2821
- const { popoverWidth: s, fitToReference: u, followToReferencePosition: f } = o;
2822
- function b() {
2823
- if (n.value) {
2824
- f(n.value);
2825
- const i = n.value.getBoundingClientRect();
2826
- c.value && i.width !== s.value && u(n.value);
2827
- }
2828
- }
2829
- return { onResize: b };
2830
- }
2831
- const Qn = /* @__PURE__ */ U({
2832
- name: "FPopover",
2833
- props: Un,
2834
- emits: ["shown", "hidden"],
2835
- setup(e, t) {
2836
- const n = a(), c = a(), o = a(e.reference), s = a(e.keepWidthWithReference), u = j(() => !!e.title), f = Gn(e), {
2837
- host: b
2838
- } = f, i = Xn(e, n, c, f), {
2839
- position: v,
2840
- arrowStyle: l,
2841
- popoverStyle: r,
2842
- fitToReference: w,
2843
- locateToReference: d
2844
- } = i, {
2845
- showPopover: y,
2846
- hidePopverOnClickBodyHandler: m
2847
- } = Kn(e, t, n, c, o, s, i), {
2848
- onResize: C
2849
- } = Jn(e, t, o, s, i), B = j(() => {
2850
- const T = `popover in popover-${v.value}`, O = `bs-popover-${v.value}`, g = {
2851
- "popover-fitcontent": e.fitContent
2852
- };
2853
- return g[T] = !0, g[O] = !0, (e.class || "").split(" ").reduce((P, S) => (P[S] = !0, P), g), g;
2854
- }), h = j(() => ({
2855
- "popover-content": !0,
2856
- "popover-body": !0
2857
- }));
2858
- return de(() => {
2859
- e.reference && d(o.value), s.value && w(o.value), window.addEventListener("resize", C);
2860
- }), ue(() => {
2861
- document.body.removeEventListener("click", m), window.removeEventListener("resize", C);
2862
- }), () => p(ce, {
2863
- to: b
2864
- }, {
2865
- default: () => {
2866
- var T;
2867
- return [ne(p("div", {
2868
- ref: c,
2869
- class: B.value,
2870
- style: r.value,
2871
- onClick: (O) => {
2872
- O.stopPropagation();
2873
- }
2874
- }, [p("div", {
2875
- ref: n,
2876
- class: "popover-arrow arrow",
2877
- style: l.value
2878
- }, null), u.value && p("h3", {
2879
- class: "popover-title popover-header"
2880
- }, [e.title]), p("div", {
2881
- class: h.value
2882
- }, [t.slots.default && ((T = t.slots) == null ? void 0 : T.default())])]), [[Ce, y.value]])];
2883
- }
2884
- });
2885
- }
2886
- });
2887
- function Yn(e, t, n) {
2888
- const c = a(e.popupMinWidth), {
2889
- hidePopup: o,
2890
- popoverRef: s
2891
- } = n;
2892
- return () => p(Qn, {
2893
- id: `${e.id}-popover`,
2894
- ref: s,
2895
- visible: !0,
2896
- placement: "bottom-left",
2897
- host: e.popupHost,
2898
- "keep-width-with-reference": !0,
2899
- fitContent: !0,
2900
- "right-boundary": e.popupRightBoundary,
2901
- minWidth: c.value,
2902
- offsetX: e.popupOffsetX,
2903
- onHidden: o
2904
- }, {
2905
- default: () => {
2906
- var u, f;
2907
- return [(f = (u = t.slots).default) == null ? void 0 : f.call(u)];
2908
- }
2909
- });
2910
- }
2911
- const Zn = /* @__PURE__ */ U({
2912
- name: "FButtonEdit",
2913
- props: je,
2914
- emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
2915
- setup(e, t) {
2916
- const n = a(), c = a(e.customClass), o = a(e.modelValue), s = kn(e, t, n), {
2917
- shouldPopupContent: u,
2918
- hidePopup: f,
2919
- togglePopup: b
2920
- } = s, i = Sn(e, t, n, s), v = a(""), l = Tn(e, t, o, v, s), {
2921
- hasFocusedTextBox: r,
2922
- commitValue: w,
2923
- inputGroupClass: d
2924
- } = l, y = Bn(e, t, o, r, v, l), {
2925
- onMouseEnterTextBox: m,
2926
- onMouseLeaveTextBox: C
2927
- } = y, B = j(() => {
2928
- const S = {
2929
- "f-button-edit": !0,
2930
- "f-cmp-inputgroup": !0,
2931
- "f-button-edit-nowrap": !e.wrapText
2932
- };
2933
- return c.value && c.value.split(" ").reduce((V, I) => (V[I] = !0, V), S), S;
2934
- });
2935
- function h() {
2936
- return e.multiSelect && e.inputType === "tag" ? qn(e, o, l) : jn(e, o, l);
2937
- }
2938
- let T = h();
2939
- N([() => e.multiSelect, () => e.inputType], () => {
2940
- T = h();
2941
- });
2942
- const O = zn(e, i, y), g = Yn(e, t, s), x = {
2943
- commitValue: w,
2944
- elementRef: n,
2945
- hidePopup: f,
2946
- shouldPopupContent: u,
2947
- togglePopup: b
2948
- };
2949
- de(() => {
2950
- n.value.componentInstance = x, window.onresize = () => {
2951
- document.body.click();
2952
- };
2953
- });
2954
- function P(S) {
2955
- n.value.contains(S.target) && u.value || document.body.click();
2956
- }
2957
- return t.expose(x), () => p(oe, null, [p("div", $e(t.attrs, {
2958
- ref: n,
2959
- class: B.value,
2960
- id: e.id,
2961
- onMousedown: P
2962
- }), [p("div", {
2963
- id: `${e.id}-input-group`,
2964
- class: d.value,
2965
- onMouseenter: m,
2966
- onMouseleave: C
2967
- }, [T(), O()])]), u.value && g()]);
2968
- }
2969
- });
2970
- function eo(e) {
2971
- const t = a(""), n = a(e.modelValue), c = a(e.data || []), o = a(e.editable);
2972
- function s(l) {
2973
- const r = String(l).split(e.separator).map((d) => [d, !0]), w = new Map(r);
2974
- return c.value.filter((d) => w.has(String(d[e.valueField])));
2975
- }
2976
- function u(l) {
2977
- const r = s(l).map((w) => w[e.textField]).join(e.separator);
2978
- t.value = o.value ? r || l : r;
2979
- }
2980
- function f(l) {
2981
- const r = l.split(e.separator).map((d) => [d, !0]), w = new Map(r);
2982
- return c.value.filter((d) => w.has(d[e.textField]));
2983
- }
2984
- function b(l) {
2985
- const r = {};
2986
- return r[e.idField] = l, r[e.textField] = l, [r];
2987
- }
2988
- function i(l) {
2989
- let r = f(l);
2990
- const w = r && r.length > 0;
2991
- return o.value && !w && (r = b(l)), r;
2992
- }
2993
- function v() {
2994
- const { url: l, method: r = "GET", headers: w = {}, body: d = null } = e.remote;
2995
- fetch(l, { method: r, headers: w, body: d }).then((m) => {
2996
- if (m.status === 200)
2997
- return m.json();
2998
- throw new Error(m.statusText);
2999
- }).then((m) => {
3000
- c.value = m;
3001
- }).catch((m) => {
3002
- console.error(m);
3003
- });
3004
- }
3005
- return e.remote && v(), N(() => e.data, () => {
3006
- c.value = e.data;
3007
- }), N([c], ([l]) => {
3008
- if (e.modelValue) {
3009
- const r = l.find((w) => w[e.valueField] === e.modelValue);
3010
- r && (t.value = r[e.textField]);
3011
- }
3012
- }), N(() => e.modelValue, (l) => {
3013
- n.value = l, u(l);
3014
- }), u(e.modelValue), { dataSource: c, displayText: t, editable: o, modelValue: n, getItemsByDisplayText: f, getItemsByValue: s, getSelectedItemsByDisplayText: i };
3015
- }
3016
- const te = /* @__PURE__ */ U({
3017
- name: "FComboList",
3018
- props: ke,
3019
- emits: ["clear", "update:modelValue", "change"],
3020
- setup(e, t) {
3021
- const n = a(), c = a(e.disabled), o = a(e.enableClear), s = a(e.enableSearch), u = a(e.readonly), {
3022
- dataSource: f,
3023
- displayText: b,
3024
- editable: i,
3025
- modelValue: v,
3026
- getSelectedItemsByDisplayText: l
3027
- } = eo(e), r = j(() => e.multiSelect), w = j(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
3028
- function d() {
3029
- !r.value && n.value && n.value.hidePopup();
3030
- }
3031
- function y(h) {
3032
- b.value = h.map((T) => T[e.textField]).join(e.separator), v.value = h.map((T) => T[e.valueField]).join(e.separator), t.emit("update:modelValue", v.value), t.emit("change", h, v.value), d();
3033
- }
3034
- function m(h) {
3035
- v.value = "", t.emit("update:modelValue", ""), t.emit("clear");
3036
- }
3037
- function C(h) {
3038
- const T = l(h);
3039
- y(T);
3040
- }
3041
- function B() {
3042
- return b.value;
3043
- }
3044
- return t.expose({
3045
- getDisplayText: B
3046
- }), N([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([h, T, O, g, x]) => {
3047
- c.value = h, i.value = T, o.value = O, s.value = g, u.value = x;
3048
- }), () => p(Zn, {
3049
- ref: n,
3050
- id: e.id,
3051
- disable: c.value,
3052
- readonly: u.value,
3053
- forcePlaceholder: e.forcePlaceholder,
3054
- editable: i.value,
3055
- buttonContent: e.dropDownIcon,
3056
- placeholder: e.placeholder,
3057
- enableClear: o.value,
3058
- maxLength: e.maxLength,
3059
- tabIndex: e.tabIndex,
3060
- enableTitle: e.enableTitle,
3061
- multiSelect: e.multiSelect,
3062
- inputType: e.multiSelect ? "tag" : "text",
3063
- modelValue: b.value,
3064
- "onUpdate:modelValue": (h) => b.value = h,
3065
- onClear: m,
3066
- onChange: C
3067
- }, {
3068
- default: () => [p(Kt, {
3069
- idField: e.idField,
3070
- valueField: e.valueField,
3071
- textField: e.textField,
3072
- titleField: e.titleField,
3073
- dataSource: f.value,
3074
- selectedValues: v.value,
3075
- multiSelect: e.multiSelect,
3076
- enableSearch: s.value,
3077
- height: e.maxHeight,
3078
- width: e.fitEditor ? w.value : void 0,
3079
- onSelectionChange: y
3080
- }, null)]
3081
- });
3082
- }
3083
- }), se = /* @__PURE__ */ U({
3084
- name: "FOrder",
3085
- props: fe,
3086
- emits: ["change"],
3087
- setup(e, t) {
3088
- const n = a(e.items), c = a("排序列"), o = a("排序方式"), s = a("添加排序列"), u = [{
3089
- id: "asc",
3090
- name: "升序"
3091
- }, {
3092
- id: "desc",
3093
- name: "降序"
3094
- }], f = a(/* @__PURE__ */ new Map());
3095
- function b() {
3096
- const m = n.value.map((C) => [C.id, !0]);
3097
- f.value = new Map(m);
3098
- }
3099
- b();
3100
- const i = j(() => e.dataSource.map((m) => (m.disabled = f.value.has(m.id), m))), v = j(() => ({
3101
- "f-order": !0
3102
- }));
3103
- function l(m) {
3104
- n.value = n.value.filter((C) => C.id !== m.id), b(), t.emit("change", n.value);
3105
- }
3106
- function r() {
3107
- n.value = [...n.value, {
3108
- id: Date.now().toString(),
3109
- name: "",
3110
- order: "asc"
3111
- }], b(), t.emit("change", n.value);
3112
- }
3113
- function w(m) {
3114
- if (m && m.length === 1) {
3115
- const C = m[0], B = n.value.find((h) => h.id === C.id);
3116
- B && (B.name = C.name);
3117
- }
3118
- b(), t.emit("change", n.value);
3119
- }
3120
- function d(m) {
3121
- if (m && m.length) {
3122
- const C = /* @__PURE__ */ new Map();
3123
- m.reduce((B, h) => (B.set(h.id, h), B), C), n.value = m.map((B) => C.get(B.id)), t.emit("change", n.value);
3124
- }
3125
- }
3126
- function y() {
3127
- return p(me, {
3128
- style: "flex:1",
3129
- data: n.value,
3130
- draggable: !0,
3131
- view: "DraggableView",
3132
- "keep-order": !0,
3133
- itemClass: "f-order-item",
3134
- onRemoveItem: l,
3135
- onChange: d
3136
- }, {
3137
- header: () => p("div", {
3138
- class: "f-order-header"
3139
- }, [p("span", {
3140
- class: "f-order-header-order-field"
3141
- }, [c.value]), p("span", {
3142
- class: "f-order-header-order-type"
3143
- }, [o.value])]),
3144
- itemContent: (m) => p("div", {
3145
- class: "f-order-item-content"
3146
- }, [p(te, {
3147
- class: "f-order-item-content-order-field",
3148
- data: i.value,
3149
- valueField: "id",
3150
- textField: "name",
3151
- idField: "id",
3152
- modelValue: m.id,
3153
- "onUpdate:modelValue": (C) => m.id = C,
3154
- onChange: w,
3155
- onClear: w
3156
- }, null), p(te, {
3157
- class: "f-order-item-content-order-type",
3158
- data: u,
3159
- valueField: "id",
3160
- textField: "name",
3161
- idField: "id",
3162
- modelValue: m.order,
3163
- "onUpdate:modelValue": (C) => m.order = C,
3164
- onChange: w
3165
- }, null)]),
3166
- footer: () => p("div", {
3167
- class: "f-order-footer"
3168
- }, [p(Te, {
3169
- type: "link",
3170
- class: "f-order-add-button",
3171
- onClick: r
3172
- }, {
3173
- default: () => p(oe, null, [p("span", {
3174
- class: "f-order-add-icon"
3175
- }, [p("i", {
3176
- class: "f-icon f-icon-add"
3177
- }, null)]), s.value])
3178
- })])
3179
- });
3180
- }
3181
- return () => p("div", {
3182
- class: v.value
3183
- }, [y()]);
3184
- }
3185
- });
3186
- function to(e, t, n) {
3187
- var O;
3188
- function c() {
3189
- n != null && n.resolveComponentContext && n.resolveComponentContext();
3190
- }
3191
- c();
3192
- const o = n && n.getStyles && n.getStyles() || "", s = n && n.getDesignerClass && n.getDesignerClass() || "", u = a();
3193
- function f() {
3194
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
3195
- }
3196
- function b() {
3197
- return !1;
3198
- }
3199
- function i() {
3200
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
3201
- }
3202
- function v() {
3203
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
3204
- }
3205
- function l(g) {
3206
- if (!g || !g.value)
3207
- return null;
3208
- if (g.value.schema && g.value.schema.type === "component")
3209
- return g.value;
3210
- const x = a(g == null ? void 0 : g.value.parent), P = l(x);
3211
- return P || null;
3212
- }
3213
- function r(g = t) {
3214
- const { componentInstance: x, designerItemElementRef: P } = g;
3215
- return !x || !x.value ? null : x.value.canMove ? P : r(g.parent);
3216
- }
3217
- function w(g) {
3218
- return !!n && n.canAccepts(g);
3219
- }
3220
- function d() {
3221
- return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
3222
- }
3223
- function y() {
3224
- }
3225
- function m(g, x) {
3226
- x && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(x);
3227
- }
3228
- function C(g) {
3229
- const { componentType: x } = g;
3230
- let P = Q(x, g);
3231
- n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(g, P));
3232
- const S = x.toLowerCase().replace("-", "_");
3233
- return P && !P.id && P.type === x && (P.id = `${S}_${Math.random().toString().slice(2, 6)}`), P;
3234
- }
3235
- function B(g, x) {
3236
- const P = String(g.getAttribute("data-controltype")), S = g.getAttribute("data-feature"), V = S ? JSON.parse(S) : {};
3237
- V.parentComponentInstance = u.value;
3238
- let I = Q(P, V);
3239
- n && n.onAcceptNewChildElement && (I = n.onAcceptNewChildElement(g, x, I));
3240
- const E = P.toLowerCase().replace("-", "_");
3241
- return I && !I.id && I.type === P && (I.id = `${E}_${Math.random().toString().slice(2, 6)}`), I;
3242
- }
3243
- function h(g) {
3244
- }
3245
- function T() {
3246
- return n && n.getPropsConfig ? n.getPropsConfig() : [];
3247
- }
3248
- return u.value = {
3249
- canMove: f(),
3250
- canSelectParent: b(),
3251
- canDelete: i(),
3252
- canNested: !v(),
3253
- contents: t == null ? void 0 : t.schema.contents,
3254
- elementRef: e,
3255
- parent: (O = t == null ? void 0 : t.parent) == null ? void 0 : O.componentInstance,
3256
- schema: t == null ? void 0 : t.schema,
3257
- styles: o,
3258
- designerClass: s,
3259
- canAccepts: w,
3260
- getBelongedComponentInstance: l,
3261
- getDraggableDesignItemElement: r,
3262
- getDraggingDisplayText: d,
3263
- getPropConfig: T,
3264
- getDragScopeElement: y,
3265
- onAcceptMovedChildElement: m,
3266
- onAcceptNewChildElement: B,
3267
- onChildElementMovedOut: h,
3268
- addNewChildComponentSchema: C,
3269
- updateDragAndDropRules: c,
3270
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || a(!1),
3271
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || a(!1)
3272
- }, u;
3273
- }
3274
- function no() {
3275
- function e(t) {
3276
- var o, s;
3277
- if (!t)
3278
- return !1;
3279
- const n = ((o = t.targetContainer) == null ? void 0 : o.componentInstance) && t.targetContainer.componentInstance.value;
3280
- if (!n)
3281
- return !1;
3282
- const c = (s = n.schema.appearance) == null ? void 0 : s.class;
3283
- if (t.controlCategory === "input" || t.controlType === "form-group") {
3284
- const u = n.schema.type, f = (u === "response-form" || u === "content-container") && c && c.includes("farris-form");
3285
- if (n.schema.type !== "response-layout-item" && !f)
3286
- return !1;
3287
- }
3288
- return t.controlType !== "field-set";
3289
- }
3290
- return {
3291
- basalDragulaRuleForContainer: e
3292
- };
3293
- }
3294
- const oo = "https://json-schema.org/draft/2020-12/schema", ao = "https://farris-design.gitee.io/dragging-rules.schema.json", lo = "Dragging Rules", io = "The rules of designer canvas", so = "object", ro = {
3295
- "f-page": {
3296
- description: "The root class of page designed by farris.",
3297
- type: "object",
3298
- properties: {
3299
- contents: {
3300
- type: "object",
3301
- properties: {
3302
- "f-page-header": {
3303
- description: "The class of page header designed by farris.",
3304
- type: "string"
3305
- },
3306
- "f-page-main": {
3307
- description: "The class of page body designed by farris.",
3308
- type: "object",
3309
- properties: {
3310
- contents: {
3311
- type: "object",
3312
- properties: {
3313
- "f-struct-like-card": {
3314
- description: "",
3315
- type: "object",
3316
- properties: {
3317
- contents: {
3318
- type: "object",
3319
- properties: {
3320
- "f-struct-form": {
3321
- description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
3322
- type: "object",
3323
- properties: {
3324
- contents: {
3325
- type: "object",
3326
- properties: {
3327
- "f-section-form": {
3328
- description: "The class of section which has wrapped a reponse-form component.",
3329
- type: "object",
3330
- properties: {
3331
- contents: {
3332
- type: "object",
3333
- properties: {
3334
- "f-form-layout": {
3335
- description: "The class of reponse form",
3336
- type: "object",
3337
- properties: {
3338
- rules: {
3339
- type: "object",
3340
- properties: {
3341
- canAccept: {
3342
- type: "boolean",
3343
- const: !0
3344
- },
3345
- fixed: {
3346
- type: "boolean",
3347
- const: !0
3348
- },
3349
- hidePadding: {
3350
- type: "boolean",
3351
- const: !1
3352
- }
3353
- }
3354
- }
3355
- }
3356
- }
3357
- }
3358
- },
3359
- rules: {
3360
- type: "object",
3361
- properties: {
3362
- canAccept: {
3363
- type: "boolean",
3364
- const: !1
3365
- },
3366
- fixed: {
3367
- type: "boolean",
3368
- const: !0
3369
- },
3370
- hidePadding: {
3371
- type: "boolean",
3372
- const: !0
3373
- }
3374
- }
3375
- }
3376
- }
3377
- }
3378
- }
3379
- },
3380
- rules: {
3381
- type: "object",
3382
- properties: {
3383
- canAccept: {
3384
- type: "boolean",
3385
- const: !1
3386
- },
3387
- fixed: {
3388
- type: "boolean",
3389
- const: !1
3390
- },
3391
- hidePadding: {
3392
- type: "boolean",
3393
- const: !0
3394
- }
3395
- }
3396
- }
3397
- }
3398
- },
3399
- "f-struct-wrapper": {
3400
- description: "",
3401
- type: "object",
3402
- properties: {
3403
- contents: {
3404
- type: "object",
3405
- properties: {
3406
- "f-section-tabs": {
3407
- description: "The class of section which has wrapped sub-grid tabs.",
3408
- type: "object",
3409
- properties: {
3410
- contents: {
3411
- type: "object",
3412
- properties: {
3413
- "f-tabs-in-card": {
3414
- description: "The class of tabs which contains sub-grid.",
3415
- type: "object",
3416
- properties: {
3417
- contents: {
3418
- type: "object",
3419
- properties: {
3420
- "f-struct-data-grid-in-card": {
3421
- description: "The class of sub-grid component",
3422
- type: "object",
3423
- properties: {
3424
- contents: {
3425
- type: "object",
3426
- properties: {
3427
- "f-grid-is-sub": {
3428
- description: "The class of sub-grid",
3429
- type: "object",
3430
- properties: {
3431
- rules: {
3432
- type: "object",
3433
- properties: {
3434
- canAccept: {
3435
- type: "boolean",
3436
- const: !0
3437
- },
3438
- fixed: {
3439
- type: "boolean",
3440
- const: !0
3441
- },
3442
- hidePadding: {
3443
- type: "boolean",
3444
- const: !1
3445
- }
3446
- }
3447
- }
3448
- }
3449
- }
3450
- }
3451
- },
3452
- rules: {
3453
- type: "object",
3454
- properties: {
3455
- canAccept: {
3456
- type: "boolean",
3457
- const: !1
3458
- },
3459
- fixed: {
3460
- type: "boolean",
3461
- const: !1
3462
- },
3463
- hidePadding: {
3464
- type: "boolean",
3465
- const: !0
3466
- }
3467
- }
3468
- }
3469
- }
3470
- }
3471
- }
3472
- },
3473
- rules: {
3474
- type: "object",
3475
- properties: {
3476
- canAccept: {
3477
- type: "boolean",
3478
- const: !1
3479
- },
3480
- fixed: {
3481
- type: "boolean",
3482
- const: !0
3483
- },
3484
- hidePadding: {
3485
- type: "boolean",
3486
- const: !0
3487
- }
3488
- }
3489
- }
3490
- }
3491
- }
3492
- }
3493
- },
3494
- rules: {
3495
- type: "object",
3496
- properties: {
3497
- canAccept: {
3498
- type: "boolean",
3499
- const: !1
3500
- },
3501
- fixed: {
3502
- type: "boolean",
3503
- const: !0
3504
- },
3505
- hidePadding: {
3506
- type: "boolean",
3507
- const: !0
3508
- }
3509
- }
3510
- }
3511
- }
3512
- },
3513
- "f-section-in-main": {
3514
- description: "The class of section which has wrapped a reponse-form component.",
3515
- type: "object",
3516
- properties: {
3517
- rules: {
3518
- type: "object",
3519
- properties: {
3520
- canAccept: {
3521
- type: "boolean",
3522
- const: !0
3523
- },
3524
- fixed: {
3525
- type: "boolean",
3526
- const: !0
3527
- },
3528
- hidePadding: {
3529
- type: "boolean",
3530
- const: !1
3531
- }
3532
- }
3533
- }
3534
- }
3535
- }
3536
- }
3537
- },
3538
- rules: {
3539
- type: "object",
3540
- properties: {
3541
- canAccept: {
3542
- type: "boolean",
3543
- const: !1
3544
- },
3545
- fixed: {
3546
- type: "boolean",
3547
- const: !1
3548
- },
3549
- hidePadding: {
3550
- type: "boolean",
3551
- const: !0
3552
- }
3553
- }
3554
- }
3555
- }
3556
- }
3557
- }
3558
- },
3559
- rules: {
3560
- type: "object",
3561
- properties: {
3562
- canAccept: {
3563
- type: "boolean",
3564
- const: !0
3565
- },
3566
- fixed: {
3567
- type: "boolean",
3568
- const: !0
3569
- },
3570
- hidePadding: {
3571
- type: "object",
3572
- const: {
3573
- allOf: [
3574
- {
3575
- sibling: 0,
3576
- parent: {
3577
- "f-page-main": !0
3578
- }
3579
- }
3580
- ]
3581
- }
3582
- }
3583
- }
3584
- }
3585
- }
3586
- },
3587
- "f-struct-data-grid": {
3588
- description: "",
3589
- type: "object",
3590
- properties: {
3591
- rules: {
3592
- type: "object",
3593
- properties: {
3594
- canAccept: {
3595
- type: "object",
3596
- const: !0
3597
- },
3598
- fixed: {
3599
- type: "boolean",
3600
- const: !0
3601
- },
3602
- hidePadding: {
3603
- type: "boolean",
3604
- const: !0
3605
- }
3606
- }
3607
- }
3608
- }
3609
- },
3610
- "f-page-main-content": {
3611
- description: "",
3612
- type: "object",
3613
- properties: {
3614
- contents: {
3615
- type: "object",
3616
- properties: {
3617
- "f-page-content-nav": {
3618
- description: "",
3619
- type: "object",
3620
- properties: {
3621
- contents: {
3622
- type: "object",
3623
- properties: {
3624
- "f-struct-data-grid-in-nav": {
3625
- description: "",
3626
- type: "object",
3627
- properties: {
3628
- contents: {
3629
- type: "object",
3630
- properties: {
3631
- "f-page-content-nav-extend": {
3632
- description: "",
3633
- type: "object"
3634
- },
3635
- "f-section-in-nav": {
3636
- description: "",
3637
- type: "object",
3638
- properties: {
3639
- rules: {
3640
- type: "object",
3641
- properties: {
3642
- canAccept: {
3643
- type: "boolean",
3644
- const: !1
3645
- },
3646
- fixed: {
3647
- type: "boolean",
3648
- const: !0
3649
- },
3650
- hidePadding: {
3651
- type: "boolean",
3652
- const: !1
3653
- }
3654
- }
3655
- }
3656
- }
3657
- }
3658
- }
3659
- },
3660
- rules: {
3661
- type: "object",
3662
- properties: {
3663
- canAccept: {
3664
- type: "boolean",
3665
- const: !0
3666
- },
3667
- fixed: {
3668
- type: "boolean",
3669
- const: !1
3670
- },
3671
- hidePadding: {
3672
- type: "boolean",
3673
- const: !0
3674
- }
3675
- }
3676
- }
3677
- }
3678
- }
3679
- }
3680
- }
3681
- }
3682
- },
3683
- "f-page-content-main": {
3684
- description: "",
3685
- type: "object",
3686
- properties: {}
3687
- }
3688
- }
3689
- }
3690
- }
3691
- },
3692
- "f-page-content": {
3693
- description: "",
3694
- type: "object",
3695
- properties: {
3696
- contents: {
3697
- type: "object",
3698
- properties: {
3699
- "f-page-content-nav": {
3700
- description: "",
3701
- type: "object",
3702
- properties: {
3703
- contents: {
3704
- type: "object",
3705
- properties: {
3706
- "f-list-nav": {
3707
- description: "",
3708
- type: "object"
3709
- },
3710
- "f-list-nav-left": {
3711
- description: "",
3712
- type: "object"
3713
- }
3714
- }
3715
- }
3716
- },
3717
- rules: {
3718
- type: "object",
3719
- properties: {
3720
- canAccept: {
3721
- type: "boolean",
3722
- const: !1
3723
- },
3724
- fixed: {
3725
- type: "boolean",
3726
- const: !0
3727
- },
3728
- hidePadding: {
3729
- type: "boolean",
3730
- const: !0
3731
- }
3732
- }
3733
- }
3734
- },
3735
- "f-page-content-main": {
3736
- description: "",
3737
- type: "object",
3738
- properties: {
3739
- rules: {
3740
- type: "object",
3741
- properties: {
3742
- canAccept: {
3743
- type: "boolean",
3744
- const: !1
3745
- },
3746
- fixed: {
3747
- type: "boolean",
3748
- const: !1
3749
- },
3750
- hidePadding: {
3751
- type: "boolean",
3752
- const: !0
3753
- }
3754
- }
3755
- }
3756
- }
3757
- }
3758
- }
3759
- },
3760
- rules: {
3761
- type: "object",
3762
- properties: {
3763
- canAccept: {
3764
- type: "boolean",
3765
- const: !1
3766
- },
3767
- fixed: {
3768
- type: "boolean",
3769
- const: !0
3770
- },
3771
- hidePadding: {
3772
- type: "boolean",
3773
- const: !0
3774
- }
3775
- }
3776
- }
3777
- }
3778
- }
3779
- }
3780
- },
3781
- rules: {
3782
- type: "object",
3783
- properties: {
3784
- canAccept: {
3785
- type: "object",
3786
- const: {
3787
- anyOf: [
3788
- {
3789
- children: 0
3790
- },
3791
- {
3792
- children: {
3793
- length: {
3794
- not: 1
3795
- },
3796
- "f-struct-like-card": !0
3797
- }
3798
- },
3799
- {
3800
- children: {
3801
- "scroll-spy": !1,
3802
- "f-page-content": !1,
3803
- "f-struct-like-card": !1
3804
- }
3805
- }
3806
- ]
3807
- }
3808
- },
3809
- fixed: {
3810
- type: "boolean",
3811
- const: !0
3812
- },
3813
- hidePadding: {
3814
- type: "boolean",
3815
- const: !0
3816
- }
3817
- }
3818
- }
3819
- }
3820
- },
3821
- "f-page-footer": {
3822
- description: "The class of page footer designed by farris.",
3823
- type: "string"
3824
- }
3825
- }
3826
- },
3827
- rules: {
3828
- type: "object",
3829
- properties: {
3830
- canAccept: {
3831
- type: "boolean",
3832
- const: !1
3833
- },
3834
- fixed: {
3835
- type: "boolean",
3836
- const: !0
3837
- },
3838
- hidePadding: {
3839
- type: "boolean",
3840
- const: !0
3841
- }
3842
- }
3843
- }
3844
- }
3845
- },
3846
- "f-page-is-managelist": {
3847
- description: "The root class of mangement list page.",
3848
- type: "string"
3849
- },
3850
- "f-page-card": {
3851
- description: "",
3852
- type: "object"
3853
- },
3854
- "f-page-is-mainsubcard": {
3855
- description: "",
3856
- type: "object"
3857
- }
3858
- }, co = [], uo = {
3859
- $schema: oo,
3860
- $id: ao,
3861
- title: lo,
3862
- description: io,
3863
- type: so,
3864
- properties: ro,
3865
- required: co
3866
- }, re = /* @__PURE__ */ new Map();
3867
- function po() {
3868
- function e(d, y, m, C) {
3869
- if (typeof m == "number")
3870
- return C[d].length === m;
3871
- if (typeof m == "object") {
3872
- const B = Object.keys(m)[0], h = m[B];
3873
- if (B === "not")
3874
- return Number(C[d].length) !== Number(h);
3875
- if (B === "moreThan")
3876
- return Number(C[d].length) >= Number(h);
3877
- if (B === "lessThan")
3878
- return Number(C[d].length) <= Number(h);
3879
- }
3880
- return !1;
3881
- }
3882
- function t(d, y, m, C) {
3883
- return typeof m == "boolean" ? C.childrenClassList.includes(y) === !!m : !1;
3884
- }
3885
- function n(d, y, m, C) {
3886
- return typeof m == "boolean" ? C.parentClassList.includes(y) === !!m : !1;
3887
- }
3888
- function c(d, y, m, C) {
3889
- return typeof m == "boolean" ? C.parentClassList.includes(y) === !!m : !1;
3890
- }
3891
- const o = /* @__PURE__ */ new Map([
3892
- ["length", e],
3893
- ["hasChildren", t],
3894
- ["hasSibling", c],
3895
- ["hasParent", n]
3896
- ]);
3897
- function s(d, y) {
3898
- const m = d;
3899
- return typeof y == "number" ? [{ target: m, operator: "length", param: null, value: Number(y) }] : typeof y == "object" ? Object.keys(y).map((C) => {
3900
- if (C === "length")
3901
- return { target: m, operator: "length", param: null, value: y[C] };
3902
- const B = C, h = y[C];
3903
- return { target: m, operator: d === "children" ? "hasChildren" : d === "parent" ? "hasParent" : "hasSibling", param: B, value: h };
3904
- }) : [];
3905
- }
3906
- function u(d, y) {
3907
- if (o.has(d.operator)) {
3908
- const m = o.get(d.operator);
3909
- return m && m(d.target, d.param, d.value, y) || !1;
3910
- }
3911
- return !1;
3912
- }
3913
- function f(d, y) {
3914
- return Object.keys(d).reduce((h, T) => {
3915
- const O = s(T, d[T]);
3916
- return h.push(...O), h;
3917
- }, []).reduce((h, T) => h && u(T, y), !0);
3918
- }
3919
- function b(d, y) {
3920
- const m = Object.keys(d), C = m.includes("allOf"), B = m.includes("anyOf"), h = C || B, g = (h ? d[h ? C ? "allOf" : "anyOf" : "allOf"] : [d]).map((P) => f(P, y));
3921
- return C ? !g.includes(!1) : g.includes(!0);
3922
- }
3923
- function i(d, y) {
3924
- const m = d.const;
3925
- return m ? typeof m == "boolean" ? m : typeof m == "object" ? b(m, y) : !1 : !1;
3926
- }
3927
- function v(d) {
3928
- return (y) => {
3929
- const m = { canAccept: !0, fixed: !1, hidePadding: !1 };
3930
- return d && d.properties && Object.keys(d.properties).reduce((C, B) => {
3931
- const h = d.properties[B];
3932
- return C[B] = i(h, y), C;
3933
- }, m), m;
3934
- };
3935
- }
3936
- function l(d, y, m) {
3937
- if (y.type === "object" && y.properties) {
3938
- const { rules: C, contents: B } = y.properties;
3939
- m.set(d, v(C)), B && Object.keys(B.properties).forEach(
3940
- (h) => l(h, B.properties[h], m)
3941
- );
3942
- }
3943
- }
3944
- function r() {
3945
- const { properties: d } = uo;
3946
- Object.keys(d).forEach((y) => {
3947
- l(y, d[y], re);
3948
- });
3949
- }
3950
- function w(d, y) {
3951
- const m = { canAccept: !0, fixed: !1, hidePadding: !0 };
3952
- return re.has(d) ? re.get(d)(y) : m;
3953
- }
3954
- return r(), { getRuleValue: w };
3955
- }
3956
- function fo(e, t) {
3957
- const n = po(), c = a(!1), o = a(!1);
3958
- let s = !0, u = !1, f, b = !1;
3959
- function i(h) {
3960
- return f && f.componentClassList && f.componentClassList.includes("f-form-layout") && f.componentClassList.includes("farris-form") ? h.sourceType === "control" && h.controlCategory === "input" || h.sourceType === "move" && h.controlType === "form-group" : !0;
3961
- }
3962
- function v(h) {
3963
- return !(!no().basalDragulaRuleForContainer(h) || !s || !i(h));
3964
- }
3965
- function l() {
3966
- c.value = !1, o.value = !1;
3967
- const h = e, T = h.appearance && h.appearance.class || "", O = T.split(" "), g = h.contents || [], x = g.length ? g[0] : null, P = x && x.appearance ? x.appearance.class : "", S = P ? P.split(" ") : [], V = g.length ? g.reduce((M, D) => {
3968
- const R = D && D.appearance ? D.appearance.class : "", q = R ? R.split(" ") : [];
3969
- return M.push(...q), M;
3970
- }, []) : [], I = t, E = I && I.appearance && I.appearance.class || "", z = E ? E.split(" ") : [];
3971
- f = {
3972
- componentClass: T,
3973
- componentClassList: O,
3974
- childContents: g,
3975
- firstChildContent: x,
3976
- firstChildClass: P,
3977
- firstChildClassList: S,
3978
- parent: I,
3979
- parentClass: E,
3980
- parentClassList: z,
3981
- children: g,
3982
- childrenClassList: V
3983
- };
3984
- const { canAccept: L, fixed: X, hidePadding: W } = n.getRuleValue(O[0], f);
3985
- return s = L, u = W, b = X, !0;
3986
- }
3987
- function r(h) {
3988
- J();
3989
- }
3990
- function w() {
3991
- return e.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
3992
- }
3993
- function d(h, T) {
3994
- const O = e;
3995
- if ((O.appearance && O.appearance.class || "").split(" ").includes("f-form-layout")) {
3996
- const { label: P } = h, S = Q("form-group");
3997
- return S.editor = T, S.label = P, S;
3998
- }
3999
- return T;
4000
- }
4001
- function y(h, T, O) {
4002
- const g = e;
4003
- if ((g.appearance && g.appearance.class || "").split(" ").includes("f-form-layout")) {
4004
- const S = String(h.innerText), V = Q("form-group");
4005
- return V.editor = O, V.label = S, V;
4006
- }
4007
- return O;
4008
- }
4009
- function m() {
4010
- return !b;
4011
- }
4012
- function C() {
4013
- return !b;
4014
- }
4015
- function B() {
4016
- return u;
4017
- }
4018
- return {
4019
- canAccepts: v,
4020
- checkCanDeleteComponent: C,
4021
- checkCanMoveComponent: m,
4022
- getStyles: w,
4023
- hideNestedPaddingInDesginerView: B,
4024
- onAcceptNewChildElement: y,
4025
- onAcceptMovedChildElement: r,
4026
- resolveComponentContext: l,
4027
- onResolveNewComponentSchema: d,
4028
- triggerBelongedComponentToMoveWhenMoved: c,
4029
- triggerBelongedComponentToDeleteWhenDeleted: o
4030
- };
4031
- }
4032
- const vo = /* @__PURE__ */ U({
4033
- name: "FOrderDesign",
4034
- props: fe,
4035
- emits: ["change"],
4036
- setup(e, t) {
4037
- var T;
4038
- const n = a(e.items), c = a("排序列"), o = a("排序方式"), s = a("添加排序列"), u = [{
4039
- id: "asc",
4040
- name: "升序"
4041
- }, {
4042
- id: "desc",
4043
- name: "降序"
4044
- }], f = a(/* @__PURE__ */ new Map()), b = a(), i = De("design-item-context"), v = fo(i.schema, (T = i.parent) == null ? void 0 : T.schema), l = to(b, i, v);
4045
- de(() => {
4046
- b.value.componentInstance = l;
4047
- }), t.expose(l.value);
4048
- function r() {
4049
- const O = n.value.map((g) => [g.id, !0]);
4050
- f.value = new Map(O);
4051
- }
4052
- r();
4053
- const w = j(() => e.dataSource.map((O) => (O.disabled = f.value.has(O.id), O))), d = j(() => ({
4054
- "f-order": !0
4055
- }));
4056
- function y(O) {
4057
- n.value = n.value.filter((g) => g.id !== O.id), r(), t.emit("change", n.value);
4058
- }
4059
- function m() {
4060
- n.value = [...n.value, {
4061
- id: Date.now().toString(),
4062
- name: "",
4063
- order: "asc"
4064
- }], r(), t.emit("change", n.value);
4065
- }
4066
- function C(O) {
4067
- r(), t.emit("change", n.value);
4068
- }
4069
- function B(O) {
4070
- if (O && O.length) {
4071
- const g = /* @__PURE__ */ new Map();
4072
- O.reduce((x, P) => (x.set(P.id, P), x), g), n.value = O.map((x) => g.get(x.id)), t.emit("change", n.value);
4073
- }
4074
- }
4075
- function h() {
4076
- return p(me, {
4077
- style: "flex:1",
4078
- data: n.value,
4079
- draggable: !0,
4080
- view: "DraggableView",
4081
- "keep-order": !0,
4082
- itemClass: "f-order-item",
4083
- onRemoveItem: y,
4084
- onChange: B
4085
- }, {
4086
- header: () => p("div", {
4087
- class: "f-order-header"
4088
- }, [p("span", {
4089
- class: "f-order-header-order-field"
4090
- }, [c.value]), p("span", {
4091
- class: "f-order-header-order-type"
4092
- }, [o.value])]),
4093
- itemContent: (O) => p("div", {
4094
- class: "f-order-item-content"
4095
- }, [p(te, {
4096
- class: "f-order-item-content-order-field",
4097
- data: w.value,
4098
- valueField: "id",
4099
- textField: "name",
4100
- idField: "id",
4101
- modelValue: O.id,
4102
- "onUpdate:modelValue": (g) => O.id = g,
4103
- onChange: C,
4104
- onClear: C
4105
- }, null), p(te, {
4106
- class: "f-order-item-content-order-type",
4107
- data: u,
4108
- valueField: "id",
4109
- textField: "name",
4110
- idField: "id",
4111
- modelValue: O.order,
4112
- "onUpdate:modelValue": (g) => O.order = g,
4113
- onChange: C
4114
- }, null)]),
4115
- footer: () => p("div", {
4116
- class: "f-order-footer"
4117
- }, [p(Te, {
4118
- type: "link",
4119
- class: "f-order-add-button",
4120
- onClick: m
4121
- }, {
4122
- default: () => p(oe, null, [p("span", {
4123
- class: "f-order-add-icon"
4124
- }, [p("i", {
4125
- class: "f-icon f-icon-add"
4126
- }, null)]), s.value])
4127
- })])
4128
- });
4129
- }
4130
- return () => p("div", {
4131
- ref: b,
4132
- class: d.value
4133
- }, [h()]);
4134
- }
4135
- }), bo = {
4136
- install(e) {
4137
- e.component(se.name, se);
4138
- },
4139
- register(e, t, n) {
4140
- e.order = se, t.order = ye;
4141
- },
4142
- registerDesigner(e, t, n) {
4143
- e.order = vo, t.order = ye;
4144
- }
4145
- };
4146
- export {
4147
- se as FOrder,
4148
- bo as default,
4149
- fe as orderProps,
4150
- ye as propsResolver
4151
- };