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