@farris/ui-vue 1.0.0-beta.6 → 1.0.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 (723) hide show
  1. package/accordion/index.esm.js +318 -56
  2. package/accordion/index.umd.js +1 -1
  3. package/accordion/package.json +2 -2
  4. package/avatar/package.json +2 -2
  5. package/button/index.esm.js +64 -58
  6. package/button/index.umd.js +1 -1
  7. package/button/package.json +2 -2
  8. package/button-edit/index.esm.js +1075 -221
  9. package/button-edit/index.umd.js +1 -1
  10. package/button-edit/package.json +2 -2
  11. package/button-edit/style.css +1 -0
  12. package/calculator/index.esm.js +315 -0
  13. package/calculator/index.umd.js +1 -0
  14. package/calculator/package.json +8 -0
  15. package/calculator/style.css +1 -0
  16. package/calendar/index.esm.js +778 -0
  17. package/calendar/index.umd.js +1 -0
  18. package/calendar/package.json +8 -0
  19. package/calendar/style.css +1 -0
  20. package/capsule/index.esm.js +130 -0
  21. package/capsule/index.umd.js +1 -0
  22. package/capsule/package.json +8 -0
  23. package/capsule/style.css +1 -0
  24. package/checkbox/index.esm.js +192 -75
  25. package/checkbox/index.umd.js +1 -1
  26. package/checkbox/package.json +2 -2
  27. package/color-picker/index.esm.js +1551 -0
  28. package/color-picker/index.umd.js +16 -0
  29. package/color-picker/package.json +8 -0
  30. package/color-picker/style.css +1 -0
  31. package/combo-list/index.esm.js +2078 -434
  32. package/combo-list/index.umd.js +1 -1
  33. package/combo-list/package.json +2 -2
  34. package/combo-list/style.css +1 -0
  35. package/component/index.esm.js +176 -0
  36. package/component/index.umd.js +1 -0
  37. package/component/package.json +8 -0
  38. package/condition/index.esm.js +13564 -0
  39. package/condition/index.umd.js +1 -0
  40. package/condition/package.json +8 -0
  41. package/condition/style.css +1 -0
  42. package/content-container/index.esm.js +242 -0
  43. package/content-container/index.umd.js +1 -0
  44. package/content-container/package.json +8 -0
  45. package/data-grid/index.esm.js +13295 -1204
  46. package/data-grid/index.umd.js +1 -1
  47. package/data-grid/package.json +2 -2
  48. package/data-grid/style.css +1 -1
  49. package/date-picker/index.esm.js +2079 -1057
  50. package/date-picker/index.umd.js +1 -1
  51. package/date-picker/package.json +2 -2
  52. package/date-picker/style.css +1 -1
  53. package/designer-canvas/index.esm.js +15234 -0
  54. package/designer-canvas/index.umd.js +1 -0
  55. package/designer-canvas/package.json +8 -0
  56. package/designer-canvas/style.css +1 -0
  57. package/discussion-editor/index.esm.js +3559 -0
  58. package/discussion-editor/index.umd.js +16 -0
  59. package/discussion-editor/package.json +8 -0
  60. package/discussion-editor/style.css +1 -0
  61. package/discussion-list/index.esm.js +111 -0
  62. package/discussion-list/index.umd.js +1 -0
  63. package/discussion-list/package.json +8 -0
  64. package/discussion-list/style.css +1 -0
  65. package/dropdown/index.esm.js +214 -0
  66. package/dropdown/index.umd.js +1 -0
  67. package/dropdown/package.json +8 -0
  68. package/dropdown/style.css +1 -0
  69. package/dynamic-form/index.esm.js +13562 -0
  70. package/dynamic-form/index.umd.js +1 -0
  71. package/dynamic-form/package.json +8 -0
  72. package/dynamic-form/style.css +1 -0
  73. package/dynamic-resolver/index.esm.js +41 -0
  74. package/dynamic-resolver/index.umd.js +1 -0
  75. package/dynamic-resolver/package.json +8 -0
  76. package/dynamic-view/index.esm.js +13602 -0
  77. package/dynamic-view/index.umd.js +1 -0
  78. package/dynamic-view/package.json +8 -0
  79. package/dynamic-view/style.css +1 -0
  80. package/farris.all.esm.js +25017 -5892
  81. package/farris.all.umd.js +24 -1
  82. package/filter-bar/index.esm.js +549 -0
  83. package/filter-bar/index.umd.js +1 -0
  84. package/filter-bar/package.json +8 -0
  85. package/filter-bar/style.css +1 -0
  86. package/image-cropper/index.esm.js +720 -0
  87. package/image-cropper/index.umd.js +1 -0
  88. package/image-cropper/package.json +8 -0
  89. package/image-cropper/style.css +1 -0
  90. package/input-group/index.esm.js +549 -0
  91. package/input-group/index.umd.js +1 -0
  92. package/input-group/package.json +8 -0
  93. package/input-group/style.css +1 -0
  94. package/list-nav/index.esm.js +61 -0
  95. package/list-nav/index.umd.js +1 -0
  96. package/list-nav/package.json +8 -0
  97. package/list-nav/style.css +1 -0
  98. package/list-view/index.esm.js +516 -124
  99. package/list-view/index.umd.js +1 -1
  100. package/list-view/package.json +2 -2
  101. package/list-view/style.css +1 -1
  102. package/loading/index.esm.js +124 -0
  103. package/loading/index.umd.js +8 -0
  104. package/loading/package.json +8 -0
  105. package/loading/style.css +1 -0
  106. package/locale/index.esm.js +1868 -0
  107. package/locale/index.umd.js +1 -0
  108. package/locale/package.json +8 -0
  109. package/message-box/index.esm.js +408 -335
  110. package/message-box/index.umd.js +1 -1
  111. package/message-box/package.json +2 -2
  112. package/message-box/style.css +1 -0
  113. package/modal/index.esm.js +137 -90
  114. package/modal/index.umd.js +1 -1
  115. package/modal/package.json +2 -2
  116. package/modal/style.css +1 -0
  117. package/nav/index.esm.js +456 -0
  118. package/nav/index.umd.js +16 -0
  119. package/nav/package.json +8 -0
  120. package/nav/style.css +1 -0
  121. package/notify/package.json +2 -2
  122. package/order/index.esm.js +2272 -0
  123. package/order/index.umd.js +1 -0
  124. package/order/package.json +8 -0
  125. package/order/style.css +1 -0
  126. package/package.json +3 -1
  127. package/page-footer/index.esm.js +94 -0
  128. package/page-footer/index.umd.js +1 -0
  129. package/page-footer/package.json +8 -0
  130. package/page-header/index.esm.js +230 -0
  131. package/page-header/index.umd.js +1 -0
  132. package/page-header/package.json +8 -0
  133. package/pagination/index.esm.js +147 -141
  134. package/pagination/index.umd.js +1 -1
  135. package/pagination/package.json +2 -2
  136. package/popover/index.esm.js +194 -59
  137. package/popover/index.umd.js +1 -1
  138. package/popover/package.json +2 -2
  139. package/popover/style.css +1 -1
  140. package/propress/index.esm.js +108 -0
  141. package/propress/index.umd.js +1 -0
  142. package/propress/package.json +8 -0
  143. package/propress/style.css +1 -0
  144. package/radio-group/index.esm.js +174 -59
  145. package/radio-group/index.umd.js +1 -1
  146. package/radio-group/package.json +2 -2
  147. package/rate/index.esm.js +168 -0
  148. package/rate/index.umd.js +1 -0
  149. package/rate/package.json +8 -0
  150. package/rate/style.css +1 -0
  151. package/response-toolbar/index.esm.js +433 -0
  152. package/response-toolbar/index.umd.js +1 -0
  153. package/response-toolbar/package.json +8 -0
  154. package/search-box/index.esm.js +208 -0
  155. package/search-box/index.umd.js +1 -0
  156. package/search-box/package.json +8 -0
  157. package/search-box/style.css +1 -0
  158. package/section/index.esm.js +341 -45
  159. package/section/index.umd.js +1 -1
  160. package/section/package.json +2 -2
  161. package/section/style.css +1 -0
  162. package/splitter/index.esm.js +491 -0
  163. package/splitter/index.umd.js +1 -0
  164. package/splitter/package.json +8 -0
  165. package/splitter/style.css +1 -0
  166. package/step/index.esm.js +117 -0
  167. package/step/index.umd.js +1 -0
  168. package/step/package.json +8 -0
  169. package/step/style.css +1 -0
  170. package/style.css +3 -3
  171. package/switch/index.esm.js +156 -40
  172. package/switch/index.umd.js +1 -1
  173. package/switch/package.json +2 -2
  174. package/switch/style.css +1 -0
  175. package/tabs/index.esm.js +1563 -311
  176. package/tabs/index.umd.js +1 -1
  177. package/tabs/package.json +2 -2
  178. package/tabs/style.css +1 -1
  179. package/tags/index.esm.js +287 -0
  180. package/tags/index.umd.js +1 -0
  181. package/tags/package.json +8 -0
  182. package/tags/style.css +1 -0
  183. package/text/package.json +2 -2
  184. package/time-picker/index.esm.js +1465 -0
  185. package/time-picker/index.umd.js +1 -0
  186. package/time-picker/package.json +8 -0
  187. package/time-picker/style.css +1 -0
  188. package/tooltip/package.json +2 -2
  189. package/transfer/index.esm.js +642 -0
  190. package/transfer/index.umd.js +1 -0
  191. package/transfer/package.json +8 -0
  192. package/transfer/style.css +1 -0
  193. package/tree-view/index.esm.js +701 -0
  194. package/tree-view/index.umd.js +1 -0
  195. package/tree-view/package.json +8 -0
  196. package/tree-view/style.css +1 -0
  197. package/types/accordion/index.d.ts +2 -0
  198. package/types/accordion/src/accordion.component.d.ts +2 -68
  199. package/types/accordion/src/accordion.props.d.ts +2 -33
  200. package/types/accordion/src/components/accordion-item.component.d.ts +2 -36
  201. package/types/accordion/src/components/accordion-item.props.d.ts +2 -17
  202. package/types/accordion/src/designer/accordion-item.design.component.d.ts +6 -0
  203. package/types/accordion/src/designer/accordion.design.component.d.ts +6 -0
  204. package/types/accordion/src/schema/schema-mapper.d.ts +2 -0
  205. package/types/button/src/button-group.component.d.ts +1 -1
  206. package/types/button/src/button.component.d.ts +7 -1
  207. package/types/button/src/button.props.d.ts +6 -0
  208. package/types/button-edit/index.d.ts +2 -0
  209. package/types/button-edit/src/button-edit.component.d.ts +2 -137
  210. package/types/button-edit/src/button-edit.props.d.ts +5 -119
  211. package/types/button-edit/src/components/button-group.component.d.ts +3 -0
  212. package/types/button-edit/src/components/popup-container.component.d.ts +4 -0
  213. package/types/button-edit/src/components/text-edit.component.d.ts +4 -0
  214. package/types/button-edit/src/composition/types.d.ts +15 -1
  215. package/types/button-edit/src/composition/use-button.d.ts +2 -2
  216. package/types/button-edit/src/composition/use-clear.d.ts +2 -2
  217. package/types/button-edit/src/composition/use-popup.d.ts +4 -0
  218. package/types/button-edit/src/composition/use-text-box.d.ts +2 -2
  219. package/types/button-edit/src/schema/schema-mapper.d.ts +2 -0
  220. package/types/{data-grid/src/composition/use-fit-column.d.ts → calculator/index.d.ts} +8 -5
  221. package/types/{combo-list/src/components/options.component.d.ts → calculator/src/calculator.component.d.ts} +2 -6
  222. package/types/calculator/src/calculator.props.d.ts +23 -0
  223. package/types/calculator/src/composition/use-calculator.d.ts +26 -0
  224. package/types/calendar/index.d.ts +21 -0
  225. package/types/calendar/src/calendar.props.d.ts +26 -0
  226. package/types/calendar/src/components/day/day-view.props.d.ts +34 -0
  227. package/types/calendar/src/components/header/header.props.d.ts +24 -0
  228. package/types/calendar/src/components/month/month-view.props.d.ts +69 -0
  229. package/types/calendar/src/components/week/week-view.component.d.ts +106 -0
  230. package/types/calendar/src/components/week/week-view.props.d.ts +51 -0
  231. package/types/calendar/src/composition/types.d.ts +57 -0
  232. package/types/calendar/src/composition/use-calendar.d.ts +2 -0
  233. package/types/calendar/src/composition/use-compare.d.ts +2 -0
  234. package/types/calendar/src/composition/use-date.d.ts +2 -0
  235. package/types/calendar/src/composition/use-event.d.ts +30 -0
  236. package/types/calendar/src/composition/use-month.d.ts +2 -0
  237. package/types/calendar/src/types/calendar.d.ts +13 -0
  238. package/types/calendar/src/types/common.d.ts +32 -0
  239. package/types/calendar/src/types/month-view.d.ts +23 -0
  240. package/types/calendar/src/types/month.d.ts +20 -0
  241. package/types/calendar/src/types/schedule.d.ts +35 -0
  242. package/types/capsule/index.d.ts +8 -0
  243. package/types/capsule/src/capsule.props.d.ts +67 -0
  244. package/types/checkbox/index.d.ts +1 -0
  245. package/types/checkbox/src/checkbox-group.component.d.ts +2 -146
  246. package/types/checkbox/src/checkbox-group.props.d.ts +2 -106
  247. package/types/checkbox/src/composition/types.d.ts +3 -3
  248. package/types/checkbox/src/schema/schema-mapper.d.ts +2 -0
  249. package/types/{combo-list/src/composition → color-picker}/index.d.ts +7 -3
  250. package/types/color-picker/src/color-picker.props.d.ts +62 -0
  251. package/types/color-picker/src/composition/class/base-color.class.d.ts +3 -0
  252. package/types/color-picker/src/composition/class/cmyk.class.d.ts +21 -0
  253. package/types/color-picker/src/composition/class/colors-table.class.d.ts +154 -0
  254. package/types/color-picker/src/composition/class/control.class.d.ts +47 -0
  255. package/types/color-picker/src/composition/class/helper.functions.d.ts +4 -0
  256. package/types/color-picker/src/composition/class/hsla.class.d.ts +21 -0
  257. package/types/color-picker/src/composition/class/hsva.class.d.ts +21 -0
  258. package/types/color-picker/src/composition/class/rgba.class.d.ts +21 -0
  259. package/types/{list-view/src/components/list-view-checkbox.component.d.ts → color-picker/src/composition/component/alpha.d.ts} +17 -17
  260. package/types/color-picker/src/composition/component/hue.d.ts +40 -0
  261. package/types/color-picker/src/composition/component/preset.d.ts +43 -0
  262. package/types/color-picker/src/composition/component/props/alpha.props.d.ts +16 -0
  263. package/types/color-picker/src/composition/component/props/hue.props.d.ts +19 -0
  264. package/types/color-picker/src/composition/component/props/preset.props.d.ts +20 -0
  265. package/types/color-picker/src/composition/component/props/sv-panel.props.d.ts +20 -0
  266. package/types/color-picker/src/composition/component/sv-panel.d.ts +43 -0
  267. package/types/combo-list/index.d.ts +2 -2
  268. package/types/combo-list/src/combo-list.props.d.ts +32 -263
  269. package/types/combo-list/src/components/list-container.props.d.ts +54 -0
  270. package/types/combo-list/src/composition/types.d.ts +10 -0
  271. package/types/combo-list/src/composition/use-data-source.d.ts +3 -0
  272. package/types/combo-list/src/designer/combo-list.design.component.d.ts +6 -0
  273. package/types/combo-list/src/schema/schema-mapper.d.ts +2 -0
  274. package/types/component/index.d.ts +26 -0
  275. package/types/component/src/component.props.d.ts +4 -0
  276. package/types/component/src/designer/types.d.ts +10 -0
  277. package/types/component/src/designer/use-designer-rules.d.ts +2 -0
  278. package/types/component/src/schema/schema-mapper.d.ts +2 -0
  279. package/types/{date-picker → condition}/index.d.ts +4 -8
  280. package/types/condition/src/composition/condition-value/checkbox-value.d.ts +13 -0
  281. package/types/condition/src/composition/condition-value/combo-lookup-value.d.ts +19 -0
  282. package/types/condition/src/composition/condition-value/date-picker-value.d.ts +25 -0
  283. package/types/condition/src/composition/condition-value/date-range-value.d.ts +18 -0
  284. package/types/condition/src/composition/condition-value/datetime-picker-value.d.ts +13 -0
  285. package/types/condition/src/composition/condition-value/dropdown-value.d.ts +18 -0
  286. package/types/condition/src/composition/condition-value/input-group-value.d.ts +21 -0
  287. package/types/condition/src/composition/condition-value/lookup-value.d.ts +21 -0
  288. package/types/condition/src/composition/condition-value/month-picker-value.d.ts +15 -0
  289. package/types/condition/src/composition/condition-value/month-range-value.d.ts +18 -0
  290. package/types/condition/src/composition/condition-value/number-range-value.d.ts +21 -0
  291. package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +13 -0
  292. package/types/condition/src/composition/condition-value/radio-group-value.d.ts +13 -0
  293. package/types/condition/src/composition/condition-value/text-value.d.ts +13 -0
  294. package/types/condition/src/composition/condition-value/types.d.ts +9 -0
  295. package/types/condition/src/composition/types.d.ts +41 -0
  296. package/types/condition/src/composition/use-compare.d.ts +40 -0
  297. package/types/condition/src/composition/use-condition-value.d.ts +2 -0
  298. package/types/condition/src/composition/use-condition.d.ts +2 -0
  299. package/types/condition/src/composition/use-field-config.d.ts +4 -0
  300. package/types/condition/src/composition/use-selection.d.ts +4 -0
  301. package/types/condition/src/condition.props.d.ts +58 -0
  302. package/types/condition/src/types.d.ts +144 -0
  303. package/types/{number-spinner/src/composition/use-data.d.ts → content-container/index.d.ts} +11 -4
  304. package/types/content-container/src/content-container.props.d.ts +4 -0
  305. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -0
  306. package/types/content-container/src/schema/schema-mapper.d.ts +2 -0
  307. package/types/data-grid/index.d.ts +3 -0
  308. package/types/data-grid/src/components/data/data-area.component.d.ts +1 -1
  309. package/types/data-grid/src/components/editors/commands.component.d.ts +18 -0
  310. package/types/data-grid/src/components/editors/date-picker.component.d.ts +3 -2
  311. package/types/data-grid/src/components/editors/text-area-editor.component.d.ts +3 -2
  312. package/types/data-grid/src/components/editors/text-editor.component.d.ts +3 -2
  313. package/types/data-grid/src/components/filter/boolean-filter-editor.component.d.ts +2 -0
  314. package/types/data-grid/src/components/filter/column-filter-container.component.d.ts +19 -0
  315. package/types/data-grid/src/components/filter/date-filter-editor.component.d.ts +2 -0
  316. package/types/data-grid/src/components/filter/enum-filter-editor.component.d.ts +3 -0
  317. package/types/data-grid/src/components/filter/list-filter-editor.component.d.ts +2 -0
  318. package/types/data-grid/src/components/filter/numeric-filter-editor.component.d.ts +2 -0
  319. package/types/data-grid/src/components/filter/text-filter-editor.component.d.ts +3 -0
  320. package/types/data-grid/src/components/group-panel/group-panel.component.d.ts +5 -0
  321. package/types/data-grid/src/components/header/data-grid-header-handler.component.d.ts +21 -0
  322. package/types/data-grid/src/components/header/data-grid-header.component.d.ts +2 -2
  323. package/types/data-grid/src/components/pagination/data-grid-pagination.component.d.ts +3 -3
  324. package/types/data-grid/src/components/scrollbar/horizontal-scrollbar.component.d.ts +1 -1
  325. package/types/data-grid/src/components/scrollbar/vertical-scrollbar.component.d.ts +1 -1
  326. package/types/data-grid/src/components/settings/data-grid-settings-icon.component.d.ts +21 -0
  327. package/types/data-grid/src/components/summary/data-grid-summary.component.d.ts +1 -1
  328. package/types/data-grid/src/composition/types.d.ts +137 -11
  329. package/types/data-grid/src/composition/use-column-filter.d.ts +3 -0
  330. package/types/data-grid/src/composition/use-column.d.ts +3 -0
  331. package/types/data-grid/src/composition/use-command-column.d.ts +3 -0
  332. package/types/data-grid/src/composition/use-data-view.d.ts +13 -3
  333. package/types/data-grid/src/composition/use-drag-column.d.ts +4 -0
  334. package/types/data-grid/src/composition/use-filter-history.d.ts +2 -0
  335. package/types/data-grid/src/composition/use-row.d.ts +18 -2
  336. package/types/data-grid/src/composition/use-selection.d.ts +3 -0
  337. package/types/data-grid/src/composition/use-sort.d.ts +3 -0
  338. package/types/data-grid/src/composition/use-virtual-scroll.d.ts +1 -1
  339. package/types/data-grid/src/composition/use-visual-data-bound.d.ts +2 -0
  340. package/types/data-grid/src/composition/use-visual-data-cell.d.ts +3 -0
  341. package/types/data-grid/src/composition/use-visual-data-row.d.ts +3 -0
  342. package/types/data-grid/src/composition/use-visual-data.d.ts +2 -2
  343. package/types/data-grid/src/composition/use-visual-summary-row.d.ts +3 -0
  344. package/types/data-grid/src/data-grid.props.d.ts +23 -161
  345. package/types/data-grid/src/schema/schema-mapper.d.ts +2 -0
  346. package/types/date-picker/src/components/calendar/calendar.component.d.ts +4 -4
  347. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +2 -2
  348. package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +11 -11
  349. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  350. package/types/date-picker/src/components/year/year.component.d.ts +2 -2
  351. package/types/date-picker/src/date-picker.component.d.ts +2 -332
  352. package/types/date-picker/src/date-picker.props.d.ts +2 -151
  353. package/types/date-picker/src/designer/date-picker.design.component.d.ts +6 -0
  354. package/types/date-picker/src/schema/schema-mapper.d.ts +2 -0
  355. package/types/designer-canvas/index.d.ts +8 -0
  356. package/types/designer-canvas/src/components/designer-item.props.d.ts +3 -0
  357. package/types/designer-canvas/src/components/designer-placeholder.props.d.ts +7 -0
  358. package/types/designer-canvas/src/components/maps.d.ts +3 -0
  359. package/types/designer-canvas/src/components/toolbox.props.d.ts +11 -0
  360. package/types/designer-canvas/src/composition/types.d.ts +27 -0
  361. package/types/designer-canvas/src/designer-canvas.props.d.ts +3 -0
  362. package/types/designer-canvas/src/types.d.ts +40 -0
  363. package/types/discussion-editor/discussion-editor.component.d.ts +121 -0
  364. package/types/discussion-editor/discussion-editor.props.d.ts +69 -0
  365. package/types/discussion-editor/index.d.ts +23 -0
  366. package/types/discussion-editor/src/composition/use-discussion-editor.d.ts +15 -0
  367. package/types/discussion-editor/src/types/interface.d.ts +22 -0
  368. package/types/discussion-list/discussion-list.component.d.ts +70 -0
  369. package/types/discussion-list/discussion-list.props.d.ts +52 -0
  370. package/types/discussion-list/index.d.ts +23 -0
  371. package/types/dropdown/index.d.ts +9 -0
  372. package/types/dropdown/src/composition/function/use-dropdown.d.ts +26 -0
  373. package/types/dropdown/src/composition/props/dropdown.item.props.d.ts +46 -0
  374. package/types/dropdown/src/composition/props/dropdown.props.d.ts +99 -0
  375. package/types/dropdown/src/dropdown.component.d.ts +179 -0
  376. package/types/dropdown/src/dropdown.item.component.d.ts +76 -0
  377. package/types/dropdown/src/types.d.ts +46 -0
  378. package/types/dynamic-form/index.d.ts +14 -0
  379. package/types/dynamic-form/src/component/dynamic-form-group/dynamic-form-group.props.d.ts +4 -0
  380. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +15 -0
  381. package/types/dynamic-form/src/composition/types.d.ts +5 -0
  382. package/types/dynamic-form/src/dynamic-form.props.d.ts +3 -0
  383. package/types/dynamic-form/src/schema/schema-mapper.d.ts +2 -0
  384. package/types/dynamic-form/src/types.d.ts +17 -0
  385. package/types/dynamic-resolver/index.d.ts +3 -0
  386. package/types/dynamic-resolver/src/common/appearance-resolver.d.ts +6 -0
  387. package/types/dynamic-resolver/src/props-resolver.d.ts +2 -0
  388. package/types/dynamic-resolver/src/schema-resolver.d.ts +5 -0
  389. package/types/dynamic-resolver/src/types.d.ts +1 -0
  390. package/types/dynamic-view/index.d.ts +8 -0
  391. package/types/dynamic-view/src/components/maps.d.ts +4 -0
  392. package/types/dynamic-view/src/dynamic-view.props.d.ts +15 -0
  393. package/types/filter-bar/index.d.ts +7 -0
  394. package/types/filter-bar/src/components/ellipsis-button.component.d.ts +3 -0
  395. package/types/filter-bar/src/components/filter-item.component.d.ts +5 -0
  396. package/types/filter-bar/src/components/toolbar-component.d.ts +4 -0
  397. package/types/filter-bar/src/composition/types.d.ts +14 -0
  398. package/types/filter-bar/src/composition/use-filter-items.d.ts +4 -0
  399. package/types/filter-bar/src/filter-bar.props.d.ts +53 -0
  400. package/types/filter-bar/src/types.d.ts +9 -0
  401. package/types/image-cropper/index.d.ts +23 -0
  402. package/types/image-cropper/src/composition/type.d.ts +44 -0
  403. package/types/image-cropper/src/composition/use-check-aspect-ratio.d.ts +2 -0
  404. package/types/image-cropper/src/composition/use-image-cropper.d.ts +20 -0
  405. package/types/image-cropper/src/image-cropper.component.d.ts +248 -0
  406. package/types/image-cropper/src/image-cropper.props.d.ts +153 -0
  407. package/types/index.d.ts +5 -0
  408. package/types/input-group/index.d.ts +25 -0
  409. package/types/input-group/src/components/appended-button.component.d.ts +4 -0
  410. package/types/input-group/src/components/text-edit.component.d.ts +4 -0
  411. package/types/input-group/src/composition/types.d.ts +37 -0
  412. package/types/input-group/src/composition/use-appended-button.d.ts +4 -0
  413. package/types/input-group/src/composition/use-clear.d.ts +4 -0
  414. package/types/input-group/src/composition/use-password.d.ts +4 -0
  415. package/types/input-group/src/composition/use-text-box.d.ts +4 -0
  416. package/types/input-group/src/input-group.props.d.ts +4 -0
  417. package/types/input-group/src/schema/schema-mapper.d.ts +2 -0
  418. package/types/list-nav/index.d.ts +23 -0
  419. package/types/list-nav/src/list-nav.component.d.ts +61 -0
  420. package/types/list-nav/src/list-nav.props.d.ts +51 -0
  421. package/types/list-view/src/components/header/content-header.component.d.ts +6 -0
  422. package/types/list-view/src/components/header/search-header.component.d.ts +6 -0
  423. package/types/list-view/src/components/list-view-checkbox.props.d.ts +7 -0
  424. package/types/list-view/src/composition/types.d.ts +40 -0
  425. package/types/list-view/src/composition/use-data-view.d.ts +4 -0
  426. package/types/list-view/src/composition/use-draggable.d.ts +4 -0
  427. package/types/list-view/src/composition/use-hover.d.ts +2 -0
  428. package/types/list-view/src/composition/use-item.d.ts +4 -0
  429. package/types/list-view/src/composition/use-remove.d.ts +4 -0
  430. package/types/list-view/src/composition/use-search.d.ts +5 -0
  431. package/types/list-view/src/composition/use-selection.d.ts +4 -0
  432. package/types/list-view/src/list-view.component.d.ts +157 -14
  433. package/types/list-view/src/list-view.props.d.ts +76 -7
  434. package/types/loading/index.d.ts +23 -0
  435. package/types/loading/src/composition/types.d.ts +19 -0
  436. package/types/{combo-list/src/components/option.component.d.ts → loading/src/loading.component.d.ts} +24 -22
  437. package/types/loading/src/loading.props.d.ts +35 -0
  438. package/types/loading/src/loading.service.d.ts +4 -0
  439. package/types/locale/src/lib/locale.service.d.ts +26 -0
  440. package/types/locale/src/lib/locales/en-us/avatar.d.ts +7 -0
  441. package/types/locale/src/lib/locales/en-us/batch-edit-dialog.d.ts +15 -0
  442. package/types/locale/src/lib/locales/en-us/collapse.d.ts +4 -0
  443. package/types/locale/src/lib/locales/en-us/combo.d.ts +4 -0
  444. package/types/locale/src/lib/locales/en-us/datagrid.d.ts +103 -0
  445. package/types/locale/src/lib/locales/en-us/discussion-group.d.ts +25 -0
  446. package/types/locale/src/lib/locales/en-us/filter-editor.d.ts +50 -0
  447. package/types/locale/src/lib/locales/en-us/filter-panel.d.ts +25 -0
  448. package/types/locale/src/lib/locales/en-us/footer.d.ts +4 -0
  449. package/types/locale/src/lib/locales/en-us/index.d.ts +568 -0
  450. package/types/locale/src/lib/locales/en-us/language-label.d.ts +8 -0
  451. package/types/locale/src/lib/locales/en-us/list-filter.d.ts +6 -0
  452. package/types/locale/src/lib/locales/en-us/list-view.d.ts +3 -0
  453. package/types/locale/src/lib/locales/en-us/loading.d.ts +3 -0
  454. package/types/locale/src/lib/locales/en-us/lookup-config.d.ts +38 -0
  455. package/types/locale/src/lib/locales/en-us/lookup.d.ts +48 -0
  456. package/types/locale/src/lib/locales/en-us/messager.d.ts +28 -0
  457. package/types/locale/src/lib/locales/en-us/multi-select.d.ts +15 -0
  458. package/types/locale/src/lib/locales/en-us/notify.d.ts +3 -0
  459. package/types/locale/src/lib/locales/en-us/numeric.d.ts +7 -0
  460. package/types/locale/src/lib/locales/en-us/page-walker.d.ts +6 -0
  461. package/types/locale/src/lib/locales/en-us/pagination.d.ts +17 -0
  462. package/types/locale/src/lib/locales/en-us/progress-step.d.ts +3 -0
  463. package/types/locale/src/lib/locales/en-us/query-condition.d.ts +33 -0
  464. package/types/locale/src/lib/locales/en-us/query-solution.d.ts +41 -0
  465. package/types/locale/src/lib/locales/en-us/response-toolbar.d.ts +3 -0
  466. package/types/locale/src/lib/locales/en-us/scrollspy.d.ts +3 -0
  467. package/types/locale/src/lib/locales/en-us/section.d.ts +4 -0
  468. package/types/locale/src/lib/locales/en-us/sidebar.d.ts +3 -0
  469. package/types/locale/src/lib/locales/en-us/sort-editor.d.ts +15 -0
  470. package/types/locale/src/lib/locales/en-us/tabs.d.ts +3 -0
  471. package/types/locale/src/lib/locales/en-us/tag.d.ts +4 -0
  472. package/types/locale/src/lib/locales/en-us/text.d.ts +10 -0
  473. package/types/locale/src/lib/locales/en-us/treetable.d.ts +8 -0
  474. package/types/locale/src/lib/locales/en-us/verify-detail.d.ts +5 -0
  475. package/types/locale/src/lib/locales/index.d.ts +1712 -0
  476. package/types/locale/src/lib/locales/zh-CHT/avatar.d.ts +7 -0
  477. package/types/locale/src/lib/locales/zh-CHT/batch-edit-dialog.d.ts +15 -0
  478. package/types/locale/src/lib/locales/zh-CHT/collapse.d.ts +4 -0
  479. package/types/locale/src/lib/locales/zh-CHT/combo.d.ts +4 -0
  480. package/types/locale/src/lib/locales/zh-CHT/datagrid.d.ts +103 -0
  481. package/types/locale/src/lib/locales/zh-CHT/discussion-group.d.ts +25 -0
  482. package/types/locale/src/lib/locales/zh-CHT/filter-editor.d.ts +50 -0
  483. package/types/locale/src/lib/locales/zh-CHT/filter-panel.d.ts +25 -0
  484. package/types/locale/src/lib/locales/zh-CHT/footer.d.ts +4 -0
  485. package/types/locale/src/lib/locales/zh-CHT/index.d.ts +568 -0
  486. package/types/locale/src/lib/locales/zh-CHT/language-label.d.ts +8 -0
  487. package/types/locale/src/lib/locales/zh-CHT/list-filter.d.ts +6 -0
  488. package/types/locale/src/lib/locales/zh-CHT/list-view.d.ts +3 -0
  489. package/types/locale/src/lib/locales/zh-CHT/loading.d.ts +3 -0
  490. package/types/locale/src/lib/locales/zh-CHT/lookup-config.d.ts +38 -0
  491. package/types/locale/src/lib/locales/zh-CHT/lookup.d.ts +48 -0
  492. package/types/locale/src/lib/locales/zh-CHT/messager.d.ts +28 -0
  493. package/types/locale/src/lib/locales/zh-CHT/multi-select.d.ts +15 -0
  494. package/types/locale/src/lib/locales/zh-CHT/notify.d.ts +3 -0
  495. package/types/locale/src/lib/locales/zh-CHT/numeric.d.ts +7 -0
  496. package/types/locale/src/lib/locales/zh-CHT/page-walker.d.ts +6 -0
  497. package/types/locale/src/lib/locales/zh-CHT/pagination.d.ts +17 -0
  498. package/types/locale/src/lib/locales/zh-CHT/progress-step.d.ts +3 -0
  499. package/types/locale/src/lib/locales/zh-CHT/query-condition.d.ts +33 -0
  500. package/types/locale/src/lib/locales/zh-CHT/query-solution.d.ts +41 -0
  501. package/types/locale/src/lib/locales/zh-CHT/response-toolbar.d.ts +3 -0
  502. package/types/locale/src/lib/locales/zh-CHT/scrollspy.d.ts +3 -0
  503. package/types/locale/src/lib/locales/zh-CHT/section.d.ts +4 -0
  504. package/types/locale/src/lib/locales/zh-CHT/sidebar.d.ts +3 -0
  505. package/types/locale/src/lib/locales/zh-CHT/sort-editor.d.ts +15 -0
  506. package/types/locale/src/lib/locales/zh-CHT/tabs.d.ts +3 -0
  507. package/types/locale/src/lib/locales/zh-CHT/tag.d.ts +4 -0
  508. package/types/locale/src/lib/locales/zh-CHT/text.d.ts +10 -0
  509. package/types/locale/src/lib/locales/zh-CHT/treetable.d.ts +8 -0
  510. package/types/locale/src/lib/locales/zh-CHT/verify-detail.d.ts +5 -0
  511. package/types/locale/src/lib/locales/zh-cn/avatar.d.ts +7 -0
  512. package/types/locale/src/lib/locales/zh-cn/batch-edit-dialog.d.ts +15 -0
  513. package/types/locale/src/lib/locales/zh-cn/collapse.d.ts +4 -0
  514. package/types/locale/src/lib/locales/zh-cn/combo.d.ts +4 -0
  515. package/types/locale/src/lib/locales/zh-cn/datagrid.d.ts +105 -0
  516. package/types/locale/src/lib/locales/zh-cn/discussion-group.d.ts +25 -0
  517. package/types/locale/src/lib/locales/zh-cn/filter-editor.d.ts +50 -0
  518. package/types/locale/src/lib/locales/zh-cn/filter-panel.d.ts +25 -0
  519. package/types/locale/src/lib/locales/zh-cn/footer.d.ts +4 -0
  520. package/types/locale/src/lib/locales/zh-cn/index.d.ts +574 -0
  521. package/types/locale/src/lib/locales/zh-cn/language-label.d.ts +8 -0
  522. package/types/locale/src/lib/locales/zh-cn/list-filter.d.ts +6 -0
  523. package/types/locale/src/lib/locales/zh-cn/list-view.d.ts +3 -0
  524. package/types/locale/src/lib/locales/zh-cn/loading.d.ts +3 -0
  525. package/types/locale/src/lib/locales/zh-cn/lookup-config.d.ts +38 -0
  526. package/types/locale/src/lib/locales/zh-cn/lookup.d.ts +48 -0
  527. package/types/locale/src/lib/locales/zh-cn/messager.d.ts +32 -0
  528. package/types/locale/src/lib/locales/zh-cn/multi-select.d.ts +15 -0
  529. package/types/locale/src/lib/locales/zh-cn/notify.d.ts +3 -0
  530. package/types/locale/src/lib/locales/zh-cn/numeric.d.ts +7 -0
  531. package/types/locale/src/lib/locales/zh-cn/page-walker.d.ts +6 -0
  532. package/types/locale/src/lib/locales/zh-cn/pagination.d.ts +17 -0
  533. package/types/locale/src/lib/locales/zh-cn/progress-step.d.ts +3 -0
  534. package/types/locale/src/lib/locales/zh-cn/query-condition.d.ts +33 -0
  535. package/types/locale/src/lib/locales/zh-cn/query-solution.d.ts +41 -0
  536. package/types/locale/src/lib/locales/zh-cn/response-toolbar.d.ts +3 -0
  537. package/types/locale/src/lib/locales/zh-cn/scrollspy.d.ts +3 -0
  538. package/types/locale/src/lib/locales/zh-cn/section.d.ts +4 -0
  539. package/types/locale/src/lib/locales/zh-cn/sidebar.d.ts +3 -0
  540. package/types/locale/src/lib/locales/zh-cn/sort-editor.d.ts +15 -0
  541. package/types/locale/src/lib/locales/zh-cn/tabs.d.ts +3 -0
  542. package/types/locale/src/lib/locales/zh-cn/tag.d.ts +4 -0
  543. package/types/locale/src/lib/locales/zh-cn/text.d.ts +10 -0
  544. package/types/locale/src/lib/locales/zh-cn/treetable.d.ts +8 -0
  545. package/types/locale/src/lib/locales/zh-cn/verify-detail.d.ts +5 -0
  546. package/types/message-box/src/components/footer/footer.component.d.ts +4 -0
  547. package/types/message-box/src/components/message-content/reactive-content.component.d.ts +3 -0
  548. package/types/message-box/src/components/message-content/static-content.component.d.ts +3 -0
  549. package/types/message-box/src/components/message-detail/exception-message.component.d.ts +3 -0
  550. package/types/message-box/src/components/message-detail/static-message.component.d.ts +2 -0
  551. package/types/message-box/src/components/reactive-editor/textarea.component.d.ts +3 -0
  552. package/types/message-box/src/composition/types.d.ts +9 -0
  553. package/types/message-box/src/composition/use-copy.d.ts +1 -17
  554. package/types/message-box/src/composition/use-editor.d.ts +4 -0
  555. package/types/message-box/src/composition/use-feedback.d.ts +2 -0
  556. package/types/message-box/src/message-box.component.d.ts +17 -21
  557. package/types/message-box/src/message-box.props.d.ts +8 -6
  558. package/types/modal/index.d.ts +2 -1
  559. package/types/modal/src/modal.component.d.ts +3 -3
  560. package/types/modal/src/modal.service.d.ts +17 -0
  561. package/types/{data-grid/src/composition/use-edit.d.ts → nav/index.d.ts} +8 -3
  562. package/types/nav/src/composition/types.d.ts +6 -0
  563. package/types/nav/src/nav.component.d.ts +87 -0
  564. package/types/nav/src/nav.props.d.ts +62 -0
  565. package/types/number-range/index.d.ts +1 -0
  566. package/types/number-range/src/components/spinner.component.d.ts +4 -0
  567. package/types/number-range/src/components/text-box.component.d.ts +4 -0
  568. package/types/number-range/src/composition/types.d.ts +31 -29
  569. package/types/number-range/src/composition/use-format.d.ts +4 -0
  570. package/types/number-range/src/composition/use-number.d.ts +4 -0
  571. package/types/number-range/src/composition/use-spinner.d.ts +4 -0
  572. package/types/number-range/src/composition/use-text-box.d.ts +4 -0
  573. package/types/number-range/src/number-range.component.d.ts +2 -245
  574. package/types/number-range/src/number-range.props.d.ts +3 -200
  575. package/types/number-range/src/schema/schema-mapper.d.ts +2 -0
  576. package/types/number-spinner/index.d.ts +2 -0
  577. package/types/number-spinner/src/components/spinner.component.d.ts +4 -0
  578. package/types/number-spinner/src/components/text-box.component.d.ts +4 -0
  579. package/types/number-spinner/src/composition/types.d.ts +33 -28
  580. package/types/number-spinner/src/composition/use-format.d.ts +4 -0
  581. package/types/number-spinner/src/composition/use-number.d.ts +4 -0
  582. package/types/number-spinner/src/composition/use-spinner.d.ts +4 -0
  583. package/types/number-spinner/src/composition/use-text-box.d.ts +4 -0
  584. package/types/number-spinner/src/designer/number-spinner.component.d.ts +6 -0
  585. package/types/number-spinner/src/number-spinner.component.d.ts +2 -200
  586. package/types/number-spinner/src/number-spinner.props.d.ts +3 -165
  587. package/types/number-spinner/src/schema/schema-mapper.d.ts +2 -0
  588. package/types/order/index.d.ts +8 -0
  589. package/types/order/src/order.props.d.ts +44 -0
  590. package/types/overlay/src/overlay.component.d.ts +6 -0
  591. package/types/overlay/src/overlay.props.d.ts +4 -1
  592. package/types/overlay/src/overlay.service.d.ts +16 -0
  593. package/types/page-footer/index.d.ts +8 -0
  594. package/types/page-footer/src/page-footer.props.d.ts +40 -0
  595. package/types/page-header/index.d.ts +10 -0
  596. package/types/page-header/src/page-header.props.d.ts +4 -0
  597. package/types/page-header/src/schema/schema-mapper.d.ts +2 -0
  598. package/types/pagination/src/components/pages/page-list.component.d.ts +1 -1
  599. package/types/pagination/src/pagination.components.d.ts +1 -1
  600. package/types/popover/src/composition/types.d.ts +24 -0
  601. package/types/popover/src/composition/use-host.d.ts +3 -0
  602. package/types/popover/src/composition/use-popup.d.ts +4 -0
  603. package/types/popover/src/composition/use-position.d.ts +4 -0
  604. package/types/popover/src/composition/use-resize.d.ts +4 -0
  605. package/types/popover/src/popover.component.d.ts +78 -0
  606. package/types/popover/src/popover.props.d.ts +37 -1
  607. package/types/propress/index.d.ts +8 -0
  608. package/types/propress/src/progress.props.d.ts +49 -0
  609. package/types/query-solution/index.d.ts +25 -0
  610. package/types/query-solution/src/designer/query-solution.design.component.d.ts +6 -0
  611. package/types/query-solution/src/query-solution.component.d.ts +6 -0
  612. package/types/query-solution/src/query-solution.d.ts +40 -0
  613. package/types/query-solution/src/query-solution.props.d.ts +19 -0
  614. package/types/query-solution/src/schema/preset-resolver.d.ts +5 -0
  615. package/types/query-solution/src/schema/schema-mapper.d.ts +2 -0
  616. package/types/radio-group/index.d.ts +1 -0
  617. package/types/radio-group/src/radio-group.component.d.ts +2 -89
  618. package/types/radio-group/src/radio-group.props.d.ts +2 -70
  619. package/types/radio-group/src/schema/schema-mapper.d.ts +2 -0
  620. package/types/{combo-list/src/composition/use-option.d.ts → rate/index.d.ts} +8 -4
  621. package/types/rate/src/rate.component.d.ts +124 -0
  622. package/types/rate/src/rate.props.d.ts +86 -0
  623. package/types/response-toolbar/index.d.ts +10 -0
  624. package/types/response-toolbar/src/components/dropdown/toolbar-dropdown-menu.component.d.ts +5 -0
  625. package/types/response-toolbar/src/components/dropdown/toolbar-dropdown.component.d.ts +7 -0
  626. package/types/response-toolbar/src/composition/types.d.ts +9 -0
  627. package/types/response-toolbar/src/composition/use-icon.d.ts +2 -0
  628. package/types/response-toolbar/src/composition/use-toolbar-item.d.ts +2 -0
  629. package/types/response-toolbar/src/response-toolbar.props.d.ts +26 -0
  630. package/types/response-toolbar/src/types/response-toolbar-dropdwon-item.d.ts +13 -0
  631. package/types/response-toolbar/src/types/response-toolbar-group.d.ts +19 -0
  632. package/types/response-toolbar/src/types/response-toolbar-item-base.d.ts +36 -0
  633. package/types/response-toolbar/src/types/response-toolbar-item.d.ts +4 -0
  634. package/types/search-box/index.d.ts +24 -0
  635. package/types/search-box/src/components/search-box-container.props.d.ts +21 -0
  636. package/types/search-box/src/schema/schema-mapper.d.ts +2 -0
  637. package/types/search-box/src/search-box.props.d.ts +4 -0
  638. package/types/section/index.d.ts +2 -0
  639. package/types/section/src/schema/schema-mapper.d.ts +2 -0
  640. package/types/section/src/section.component.d.ts +2 -185
  641. package/types/section/src/section.props.d.ts +3 -86
  642. package/types/splitter/index.d.ts +10 -0
  643. package/types/splitter/src/components/splitter-pane.props.d.ts +5 -0
  644. package/types/splitter/src/composition/types.d.ts +23 -0
  645. package/types/splitter/src/composition/use-resize-handle.d.ts +3 -0
  646. package/types/splitter/src/composition/use-resize-pane.d.ts +3 -0
  647. package/types/splitter/src/schema/splitter-pane-schema-mapper.d.ts +2 -0
  648. package/types/splitter/src/schema/splitter-schema-mapper.d.ts +2 -0
  649. package/types/splitter/src/splitter.props.d.ts +5 -0
  650. package/types/step/index.d.ts +8 -0
  651. package/types/step/src/step.props.d.ts +46 -0
  652. package/types/switch/index.d.ts +1 -0
  653. package/types/switch/src/schema/schema-mapper.d.ts +2 -0
  654. package/types/switch/src/switch.component.d.ts +2 -64
  655. package/types/switch/src/switch.props.d.ts +3 -35
  656. package/types/tabs/index.d.ts +2 -0
  657. package/types/tabs/src/components/more-pages-button.component.d.ts +5 -0
  658. package/types/tabs/src/components/tab-header-dropdown-menu.component.d.ts +5 -0
  659. package/types/tabs/src/components/tab-header-item.component.d.ts +4 -0
  660. package/types/tabs/src/components/tab-header.component.d.ts +4 -0
  661. package/types/tabs/src/components/tab-page.component.d.ts +2 -99
  662. package/types/tabs/src/components/tab-page.props.d.ts +3 -47
  663. package/types/tabs/src/composition/types.d.ts +36 -5
  664. package/types/tabs/src/composition/use-dropdown.d.ts +3 -0
  665. package/types/tabs/src/composition/use-nav.d.ts +4 -0
  666. package/types/tabs/src/composition/use-one-page.d.ts +4 -0
  667. package/types/tabs/src/composition/use-tabs.d.ts +3 -2
  668. package/types/tabs/src/schema/schema-mapper.d.ts +2 -0
  669. package/types/tabs/src/tabs.props.d.ts +5 -69
  670. package/types/tags/index.d.ts +8 -0
  671. package/types/tags/src/composition/types.d.ts +13 -0
  672. package/types/tags/src/composition/use-draggable.d.ts +4 -0
  673. package/types/tags/src/tags.props.d.ts +92 -0
  674. package/types/time-picker/index.d.ts +11 -0
  675. package/types/time-picker/src/components/time-holder.d.ts +82 -0
  676. package/types/time-picker/src/components/time.props.d.ts +48 -0
  677. package/types/time-picker/src/components/utils/check.d.ts +1 -0
  678. package/types/time-picker/src/schema/schema-mapper.d.ts +2 -0
  679. package/types/time-picker/src/time-picker.props.d.ts +4 -0
  680. package/types/transfer/index.d.ts +8 -0
  681. package/types/transfer/src/transfer.props.d.ts +71 -0
  682. package/types/tree-view/index.d.ts +8 -0
  683. package/types/tree-view/src/components/data/control-tree-view.component.d.ts +108 -0
  684. package/types/tree-view/src/components/data/tree-area.component.d.ts +8 -0
  685. package/types/tree-view/src/composition/types.d.ts +97 -0
  686. package/types/tree-view/src/composition/use-auto-check-children-and-cascade.d.ts +4 -0
  687. package/types/tree-view/src/composition/use-tree-data-view.d.ts +21 -0
  688. package/types/tree-view/src/composition/use-tree-node-icon.d.ts +4 -0
  689. package/types/tree-view/src/composition/use-tree-node-lines.d.ts +3 -0
  690. package/types/tree-view/src/composition/use-visual-tree-node.d.ts +9 -0
  691. package/types/tree-view/src/control-tree-view.props.d.ts +58 -0
  692. package/types/tree-view/src/tree-view.component.d.ts +97 -0
  693. package/types/tree-view/src/tree-view.props.d.ts +54 -0
  694. package/types/uploader/index.d.ts +25 -0
  695. package/types/uploader/src/components/sub-component.props.d.ts +63 -0
  696. package/types/uploader/src/components/upload-progress.component.d.ts +41 -0
  697. package/types/uploader/src/composition/type.d.ts +135 -0
  698. package/types/uploader/src/service/get-service.d.ts +2 -0
  699. package/types/uploader/src/uploader.props.d.ts +156 -0
  700. package/types/verify-detail/index.d.ts +23 -0
  701. package/types/verify-detail/src/verify-detail.component.d.ts +70 -0
  702. package/types/verify-detail/src/verify-detail.props.d.ts +36 -0
  703. package/uploader/index.esm.js +1972 -0
  704. package/uploader/index.umd.js +17 -0
  705. package/uploader/package.json +8 -0
  706. package/uploader/style.css +1 -0
  707. package/verify-detail/index.esm.js +187 -0
  708. package/verify-detail/index.umd.js +1 -0
  709. package/verify-detail/package.json +8 -0
  710. package/verify-detail/style.css +1 -0
  711. package/types/combo-list/src/combo-list.component.d.ts +0 -232
  712. package/types/combo-list/src/components/panel.component.d.ts +0 -25
  713. package/types/combo-list/src/composition/use-combo-list.d.ts +0 -30
  714. package/types/combo-list/src/composition/use-options.d.ts +0 -2
  715. package/types/combo-list/src/composition/use-panel.d.ts +0 -8
  716. package/types/combo-list/src/const.d.ts +0 -40
  717. package/types/combo-list/src/types.d.ts +0 -186
  718. package/types/data-grid/src/data-grid.component.d.ts +0 -278
  719. package/types/message-box/src/message-box.service.d.ts +0 -20
  720. package/types/number-range/src/composition/use-data.d.ts +0 -19
  721. package/types/number-range/src/composition/use-util.d.ts +0 -19
  722. package/types/number-spinner/src/composition/use-util.d.ts +0 -19
  723. package/types/tabs/src/tabs.component.d.ts +0 -151
@@ -1,538 +1,2191 @@
1
- import { ref as S, watch as R, defineComponent as N, computed as w, createVNode as f, Teleport as K, inject as q, withModifiers as _, withDirectives as G, vModelCheckbox as J, toRefs as Q, reactive as D, provide as U, resolveComponent as W, Fragment as X, mergeProps as Y } from "vue";
2
- var x = /* @__PURE__ */ ((e) => (e.Text = "text", e.Tag = "tag", e))(x || {}), O = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.auto = "auto", e))(O || {});
3
- const Z = {
1
+ import { ref as a, computed as I, watch as W, defineComponent as G, createVNode as p, withDirectives as Q, vModelCheckbox as Me, Fragment as re, withModifiers as Fe, vModelText as Oe, Teleport as de, createApp as Ve, onUnmounted as fe, nextTick as K, vShow as ve, onMounted as ne, mergeProps as Le, inject as De } from "vue";
2
+ const pe = {};
3
+ function oe(e) {
4
+ const { properties: t } = e;
5
+ return Object.keys(t).reduce((l, n) => (l[n] = t[n].type === "object" && t[n].properties ? oe(t[n]) : t[n].default, l), {});
6
+ }
7
+ function je(e) {
8
+ const t = pe[e];
9
+ return t ? oe(t) : null;
10
+ }
11
+ function Re(e, t) {
12
+ const o = oe(t);
13
+ return Object.keys(e).reduce((l, n) => (l[n] = e[n], l), o), o;
14
+ }
15
+ function Ae(e, t) {
16
+ return Object.keys(e).filter((l) => e[l] != null).reduce((l, n) => {
17
+ if (t.has(n)) {
18
+ const i = t.get(n);
19
+ if (typeof i == "string")
20
+ l[i] = e[n];
21
+ else {
22
+ const u = i(n, e[n]);
23
+ Object.assign(l, u);
24
+ }
25
+ } else
26
+ l[n] = e[n];
27
+ return l;
28
+ }, {});
29
+ }
30
+ function Ee(e, t, o = /* @__PURE__ */ new Map()) {
31
+ const l = Re(e, t);
32
+ return Ae(l, o);
33
+ }
34
+ function ge(e, t, o = /* @__PURE__ */ new Map()) {
35
+ return pe[t.title] = t, (l) => {
36
+ const n = Ee(l, t, o), i = Object.keys(e).reduce((u, c) => (u[c] = e[c].default, u), {});
37
+ return Object.assign(i, n);
38
+ };
39
+ }
40
+ function me(e, t) {
41
+ return { customClass: t.class };
42
+ }
43
+ const He = /* @__PURE__ */ new Map([
44
+ ["appearance", me]
45
+ ]), We = "https://json-schema.org/draft/2020-12/schema", _e = "https://farris-design.gitee.io/combo-list.schema.json", $e = "combo-list", Ne = "A Farris Input Component", ze = "object", Xe = {
46
+ id: {
47
+ description: "The unique identifier for a combo list",
48
+ type: "string"
49
+ },
50
+ type: {
51
+ description: "The type string of number combo list component",
52
+ type: "string",
53
+ default: "combo-list"
54
+ },
55
+ appearance: {
56
+ description: "",
57
+ type: "object",
58
+ properties: {
59
+ class: {
60
+ type: "string"
61
+ },
62
+ style: {
63
+ type: "string"
64
+ }
65
+ },
66
+ default: {}
67
+ },
68
+ binding: {
69
+ description: "",
70
+ type: "object",
71
+ default: {}
72
+ },
73
+ editable: {
74
+ description: "",
75
+ type: "boolean",
76
+ default: !0
77
+ },
78
+ enableLinkLabel: {
79
+ description: "",
80
+ type: "boolean",
81
+ default: !1
82
+ },
83
+ label: {
84
+ description: "",
85
+ type: "string",
86
+ default: ""
87
+ },
88
+ lableWidth: {
89
+ description: "",
90
+ type: "number"
91
+ },
92
+ placeHolder: {
93
+ description: "",
94
+ type: "string",
95
+ default: ""
96
+ },
97
+ readonly: {
98
+ description: "",
99
+ type: "boolean",
100
+ default: !1
101
+ },
102
+ required: {
103
+ description: "",
104
+ type: "boolean",
105
+ default: !1
106
+ },
107
+ tabindex: {
108
+ description: "",
109
+ type: "number",
110
+ default: -1
111
+ },
112
+ textAlign: {
113
+ description: "",
114
+ type: "string",
115
+ enum: [
116
+ "left",
117
+ "middle",
118
+ "right"
119
+ ],
120
+ default: "left"
121
+ },
122
+ visible: {
123
+ description: "",
124
+ type: "boolean",
125
+ default: !0
126
+ },
127
+ onBlur: {
128
+ description: "",
129
+ type: "string",
130
+ default: ""
131
+ },
132
+ onClickLinkLabel: {
133
+ description: "",
134
+ type: "sting",
135
+ default: ""
136
+ }
137
+ }, qe = [
138
+ "id",
139
+ "type"
140
+ ], Ge = {
141
+ $schema: We,
142
+ $id: _e,
143
+ title: $e,
144
+ description: Ne,
145
+ type: ze,
146
+ properties: Xe,
147
+ required: qe
148
+ };
149
+ var Ue = /* @__PURE__ */ ((e) => (e.Text = "text", e.Tag = "tag", e))(Ue || {}), Ke = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.auto = "auto", e))(Ke || {});
150
+ const ae = {
4
151
  /**
5
152
  * 组件标识
6
153
  */
7
154
  id: { type: String },
8
155
  /**
9
- * 可选,是否可编辑
10
- * 默认`false`
156
+ * 下拉数据源
11
157
  */
12
- editable: { default: !1, type: Boolean },
158
+ data: { type: Array, default: [] },
13
159
  /**
14
- * 可选,是否禁用
15
- * 默认为`false`
160
+ * 可选,展示文本
161
+ * 默认为空字符串
16
162
  */
17
- disabled: { default: !1, type: Boolean },
163
+ displayText: { type: String, default: "" },
18
164
  /**
19
- * 可选,是否只读
165
+ * 可选,是否禁用
20
166
  * 默认为`false`
21
167
  */
22
- readonly: { default: !1, type: Boolean },
23
- /**
24
- * 最大输入长度
25
- */
26
- maxLength: { type: Number },
168
+ disabled: { default: !1, type: Boolean },
27
169
  /**
28
- * 占位符
170
+ * 可选,下拉图标
171
+ * 默认为'<span class="f-icon f-icon-arrow-60-down"></span>'
29
172
  */
30
- placeholder: { type: String },
173
+ dropDownIcon: { type: String, default: '<span class="f-icon f-icon-arrow-60-down"></span>' },
31
174
  /**
32
- * 可选,强制显示占位符
175
+ * 可选,是否可编辑
33
176
  * 默认`false`
34
177
  */
35
- forcePlaceholder: { default: !1, type: Boolean },
178
+ editable: { default: !1, type: Boolean },
36
179
  /**
37
180
  * 可选,是否启用清空
38
181
  * 默认启用
39
182
  */
40
183
  enableClear: { default: !0, type: Boolean },
184
+ /**
185
+ * 可选,启用搜索
186
+ * 默认为`false`
187
+ */
188
+ enableSearch: { type: Boolean, default: !1 },
41
189
  /**
42
190
  * 可选,鼠标悬停时是否显示控件值
43
191
  * 默认显示
44
192
  */
45
193
  enableTitle: { default: !0, type: Boolean },
46
194
  /**
47
- * 可选,下拉列表值展示方式
48
- * 支持text | tag,即文本或标签,默认为`ViewType.Text`,即文本方式`text`
49
- */
50
- viewType: { default: x.Text, type: String },
51
- /**
52
- * 可选,字段映射
195
+ * 可选,强制显示占位符
196
+ * 默认`false`
53
197
  */
54
- mapFields: { type: Object },
198
+ forcePlaceholder: { default: !1, type: Boolean },
55
199
  /**
56
- * 下拉数据源
200
+ * 可选,清空值时隐藏面板
201
+ * 默认`true`
57
202
  */
58
- data: { type: Array },
203
+ hidePanelOnClear: { default: !0, type: Boolean },
59
204
  /**
60
205
  * 可选,数据源id字段
61
206
  * 默认为`id`
62
207
  */
63
208
  idField: { default: "id", type: String },
64
209
  /**
65
- * 可选,数据源值字段
66
- * 默认为`id`
67
- */
68
- valueField: { default: "id", type: String },
69
- /**
70
- * 可选,数据源显示字段
71
- * 默认为`label`
72
- */
73
- textField: { default: "label", type: String },
74
- /**
75
- * 可选,是否支持多选
76
- * 默认`false`
77
- */
78
- multiSelect: { default: !1, type: Boolean },
79
- /**
80
- * 远端数据源信息
210
+ * 可选,字段映射
81
211
  */
82
- remote: { default: null, type: Object },
212
+ mapFields: { type: Object },
83
213
  /**
84
214
  * 可选,最大高度
85
215
  * 默认`350`
86
216
  */
87
217
  maxHeight: { default: 350, type: Number },
88
218
  /**
89
- * 可选,是否支持远端过滤
90
- * 默认`false`
91
- */
92
- remoteSearch: { default: !1, type: Boolean },
93
- /**
94
- * 可选,清空值时隐藏面板
95
- * 默认`true`
96
- */
97
- hidePanelOnClear: { default: !0, type: Boolean },
98
- /**
99
- * 可选,分隔符
100
- * 默认`,`
219
+ * 最大输入长度
101
220
  */
102
- separator: { default: ",", type: String },
221
+ maxLength: { type: Number },
103
222
  /**
104
- * 可选,展示文本
105
- * 默认为空字符串
223
+ * 可选,是否支持多选
224
+ * 默认`false`
106
225
  */
107
- displayText: { type: String, default: "" },
226
+ multiSelect: { default: !1, type: Boolean },
108
227
  /**
109
228
  * 绑定值
110
229
  */
111
- modelValue: { type: [String, Number] },
230
+ modelValue: { type: String, default: "" },
112
231
  /**
113
- * 可选,下拉图标
114
- * 默认为'<span class="f-icon f-icon-arrow-60-down"></span>'
232
+ * 占位符
115
233
  */
116
- dropDownIcon: { type: String, default: '<span class="f-icon f-icon-arrow-60-down"></span>' },
234
+ placeholder: { type: String },
117
235
  /**
118
- * tabIndex
236
+ * 可选,下拉面板展示位置
237
+ * 默认为`auto`
119
238
  */
120
- tabIndex: { type: Number, default: -1 },
239
+ placement: {
240
+ type: String,
241
+ default: "auto"
242
+ /* auto */
243
+ },
121
244
  /**
122
- * 可选,启用搜索
245
+ * 可选,是否只读
123
246
  * 默认为`false`
124
247
  */
125
- enableSearch: { type: Boolean, default: !1 },
248
+ readonly: { default: !1, type: Boolean },
126
249
  /**
127
- * 可选,下拉面板展示位置
128
- * 默认为`auto`
250
+ * 远端数据源信息
129
251
  */
130
- placement: { type: String, default: O.auto }
131
- }, E = {
252
+ remote: { default: null, type: Object },
132
253
  /**
133
- * 必须,值
254
+ * 可选,是否支持远端过滤
255
+ * 默认`false`
134
256
  */
135
- value: { required: !0, type: [String, Number] },
257
+ remoteSearch: { default: !1, type: Boolean },
136
258
  /**
137
- * 必须,名称
259
+ * 可选,分隔符
260
+ * 默认`,`
138
261
  */
139
- name: { required: !0, type: [String, Number] },
262
+ separator: { default: ",", type: String },
140
263
  /**
141
- * 可选,是否禁用
142
- * 默认`false`
264
+ * tabIndex
143
265
  */
144
- disabled: { default: !1, type: Boolean },
266
+ tabIndex: { type: Number, default: -1 },
145
267
  /**
146
- * 是否已经勾选
268
+ * 可选,数据源显示字段
269
+ * 默认为`name`
147
270
  */
148
- checked: { default: !1, type: Boolean }
149
- }, L = {
271
+ textField: { default: "name", type: String },
150
272
  /**
151
- * 下拉面板是否可见
273
+ * 可选,数据源值字段
274
+ * 默认为`id`
152
275
  */
153
- isPanelVisible: { type: Boolean, default: !1 },
276
+ valueField: { default: "id", type: String },
154
277
  /**
155
- * 可选,下拉列表展示位置
156
- * 默认为`bottom`
278
+ * 可选,下拉列表值展示方式
279
+ * 支持text | tag,即文本或标签,默认为`ViewType.Text`,即文本方式`text`
157
280
  */
158
- position: { type: String, default: O.bottom }
159
- }, ee = {
160
- options: {
161
- type: Array
281
+ viewType: { default: "text", type: String }
282
+ }, ie = ge(ae, Ge, He), Je = {
283
+ dataSource: { type: Array, default: [] },
284
+ enableSearch: { type: Boolean, default: !1 },
285
+ idField: { type: String, default: "id" },
286
+ multiSelect: { default: !1, type: Boolean },
287
+ selectedValues: { type: String, default: "" },
288
+ separator: { type: String, default: "," },
289
+ textField: { type: String, default: "name" },
290
+ width: { type: Number, default: 300 },
291
+ valueField: { type: String, default: "id" }
292
+ }, Qe = {
293
+ data: { type: Array, default: [] },
294
+ draggable: { type: Boolean, default: !1 },
295
+ multiSelect: { Type: Boolean, default: !1 },
296
+ multiSelectMode: { Type: String, default: "OnCheck" },
297
+ idField: { Type: String, default: "id" },
298
+ valueField: { Type: String, default: "id" },
299
+ textField: { Type: String, default: "name" },
300
+ view: { Type: String, default: "ContentView" },
301
+ size: { Type: String, default: "default" },
302
+ placeholder: { type: String, default: "" },
303
+ header: { Type: String, default: "ContentHeader" },
304
+ headerClass: { Type: String, default: "" },
305
+ itemClass: { Type: String, default: "" },
306
+ selectionValues: { type: Array, default: [] },
307
+ keepOrder: { type: Boolean, default: !1 },
308
+ disableField: { type: String, default: "disabled" }
309
+ };
310
+ function Ye(e, t, o, l, n) {
311
+ const i = a(e.idField), u = a(e.disableField), c = a(e.draggable), h = a(e.itemClass), s = a(e.multiSelect), r = a(e.multiSelectMode);
312
+ a(!0);
313
+ const { isDragging: d } = o, { activeIndex: f, focusedItemId: C, hoverIndex: m } = l, { clearSelection: y, selectedItems: O, toggleSelectItem: P } = n;
314
+ function x(w, j) {
315
+ const V = {
316
+ "f-list-view-group-item": !0,
317
+ "f-list-view-draggable-item": c.value,
318
+ "f-un-click": !!w.unClick,
319
+ "f-un-select": !!w[u.value],
320
+ "f-listview-active": w.__fv_index__ === f.value,
321
+ "f-listview-hover": !d.value && j === m.value,
322
+ moving: !!w.moving
323
+ };
324
+ return h.value.split(" ").reduce((z, D) => (z[D] = !0, z), V), V;
162
325
  }
163
- }, z = Symbol("fComboList"), A = Symbol("fComboListPanel");
164
- var j = /* @__PURE__ */ ((e) => (e.clear = "clear", e.update = "update:modelValue", e))(j || {}), H = /* @__PURE__ */ ((e) => (e.panelShow = "panelShow", e.panelHidden = "panelHidden", e))(H || {});
165
- function le(e, n) {
166
- const l = S(""), u = S(e.modelValue), t = S(!1), a = S();
167
- if (R([a], ([i]) => {
168
- if (e.modelValue) {
169
- const d = i.find((s) => s[e.valueField] === e.modelValue);
170
- d && (l.value = d[e.textField]);
171
- }
172
- }), e.remote) {
173
- const { url: i, method: d = "GET", headers: s = {}, body: y = null } = e.remote;
174
- fetch(i, { method: d, headers: s, body: y }).then((v) => {
175
- if (v.status === 200)
176
- return v.json();
177
- throw new Error(v.statusText);
178
- }).then((v) => {
179
- a.value = v;
180
- }).catch((v) => {
181
- console.error(v);
182
- });
183
- } else
184
- a.value = e.data;
326
+ function v(w, j) {
327
+ return w[i.value] || "";
328
+ }
329
+ const b = I(() => !s.value);
330
+ function B(w, j) {
331
+ w.unClick || w[u.value] || (b.value && (C.value = w[i.value]), P(w, j));
332
+ }
333
+ const k = I(() => s.value && r.value === "OnCheckClearByClick"), E = I(() => !s.value || s.value && (r.value === "OnCheckAndClick" || r.value === "OnClick"));
334
+ function L(w, j, V) {
335
+ if (j.unClick || j[u.value]) {
336
+ w.preventDefault(), w.stopPropagation();
337
+ return;
338
+ }
339
+ C.value = j[i.value], f.value = V, k.value && y(), E.value && P(j, V), t.emit("clickItem", { data: O.value, index: V });
340
+ }
341
+ return {
342
+ getKey: v,
343
+ listViewItemClass: x,
344
+ onCheckItem: B,
345
+ onClickItem: L
346
+ };
347
+ }
348
+ function Ze(e, t, o) {
349
+ const l = a(e.idField), n = a(e.multiSelect);
350
+ a(e.multiSelectMode);
351
+ const { getSelectionItems: i } = o, u = a(i(e.selectionValues));
352
+ W(() => e.selectionValues, (f) => {
353
+ u.value = a(i(f)).value;
354
+ });
355
+ const c = I(() => !n.value);
356
+ function h(f) {
357
+ return f[l.value] || "";
358
+ }
359
+ function s(f) {
360
+ return u.value.findIndex((m) => h(m) === h(f));
361
+ }
362
+ function r() {
363
+ u.value.forEach((f) => {
364
+ f.checked = !1;
365
+ }), u.value = [];
366
+ }
367
+ function d(f, C) {
368
+ c.value && r();
369
+ const m = s(f);
370
+ m > -1 ? (u.value.splice(m, 1), f.checked = !1) : (u.value.push(f), f.checked = !0), t.emit("selectionChange", u.value);
371
+ }
372
+ return { clearSelection: r, findIndexInSelectedItems: s, selectedItems: u, toggleSelectItem: d };
373
+ }
374
+ function et(e, t) {
185
375
  function o(i) {
186
- u.value && (u.value = i.value), l.value = i.name, n.emit("update:modelValue", i.value);
376
+ const u = [];
377
+ let c = i.nextNode();
378
+ for (; c; )
379
+ u.push(c), c = i.nextNode();
380
+ return u;
381
+ }
382
+ function l(i, u) {
383
+ const c = document.createTreeWalker(i, NodeFilter.SHOW_TEXT);
384
+ return o(c).map((d) => ({ textNode: d, text: (d.textContent || "").toLocaleLowerCase() })).map(({ textNode: d, text: f }) => {
385
+ const C = [];
386
+ let m = 0;
387
+ for (; m < f.length; ) {
388
+ const y = f.indexOf(u, m);
389
+ if (y === -1)
390
+ break;
391
+ C.push(y), m = y + u.length;
392
+ }
393
+ return C.map((y) => {
394
+ const O = new Range();
395
+ return O.setStart(d, y), O.setEnd(d, y + u.length), O;
396
+ });
397
+ }).flat();
398
+ }
399
+ function n(i) {
400
+ if (!CSS.highlights || (CSS.highlights.clear(), !i || !t))
401
+ return;
402
+ const u = l(t.value, i.toLocaleLowerCase()), c = new Highlight(...u);
403
+ CSS.highlights.set("search-result", c);
404
+ }
405
+ return { search: n };
406
+ }
407
+ const tt = {
408
+ checked: { Type: Boolean, default: !1 },
409
+ id: { Type: String, default: "" },
410
+ disabled: { Type: Boolean, default: !1 },
411
+ /**
412
+ * 组件值,字符串或者数组
413
+ */
414
+ modelValue: { Type: Boolean, default: !1 }
415
+ }, le = /* @__PURE__ */ G({
416
+ name: "FListViewCheckBox",
417
+ props: tt,
418
+ emits: ["change", "update:modelValue"],
419
+ setup(e, t) {
420
+ const o = a(e.checked), l = a(e.disabled), n = a(e.id);
421
+ function i(u) {
422
+ u.stopPropagation(), u.preventDefault(), l.value || (o.value = !o.value, t.emit("change", {
423
+ originalEvent: u,
424
+ checked: o.value
425
+ }));
426
+ }
427
+ return W(() => e.checked, (u) => {
428
+ o.value = u;
429
+ }), () => p("div", {
430
+ class: "custom-control custom-checkbox custom-control-inline listview-checkbox"
431
+ }, [Q(p("input", {
432
+ id: n.value,
433
+ title: n.value,
434
+ type: "checkbox",
435
+ class: "custom-control-input",
436
+ "onUpdate:modelValue": (u) => o.value = u,
437
+ onChange: (u) => console.log(u)
438
+ }, null), [[Me, o.value]]), p("label", {
439
+ for: n.value,
440
+ class: "custom-control-label",
441
+ onClick: (u) => i(u)
442
+ }, null)]);
443
+ }
444
+ });
445
+ function se(e, t, o, l, n, i, u, c) {
446
+ const h = a(e.size), s = a(e.textField), r = a(e.multiSelect), d = a(e.disableField), {
447
+ onMouseenterItem: f,
448
+ onMouseoverItem: C,
449
+ onMouseoutItem: m
450
+ } = n, {
451
+ getKey: y,
452
+ listViewItemClass: O,
453
+ onCheckItem: P,
454
+ onClickItem: x
455
+ } = i, v = I(() => ({
456
+ margin: h.value === "small" ? "0.25rem 0" : "10px 0"
457
+ }));
458
+ function b(B, k, E) {
459
+ return B.checked = u.findIndexInSelectedItems(B) > -1, p("li", {
460
+ class: O(B, k),
461
+ id: y(B, k),
462
+ key: y(B, k),
463
+ onClick: (L) => x(L, B, k),
464
+ onMouseenter: (L) => f(L, B, k),
465
+ onMouseover: (L) => C(L, B, k),
466
+ onMouseout: (L) => m(L, B, k)
467
+ }, [r.value && p("div", {
468
+ class: "f-list-select",
469
+ onClick: (L) => L.stopPropagation()
470
+ }, [p(le, {
471
+ id: "list-" + y(B, k),
472
+ disabled: B[d.value] || B.unClick,
473
+ checked: B.checked,
474
+ onChange: (L) => P(B, k)
475
+ }, null)]), p("div", {
476
+ class: "f-list-content"
477
+ }, [p("div", {
478
+ style: v.value
479
+ }, [B[s.value]])])]);
187
480
  }
188
481
  return {
189
- displayText: l,
190
- modelValue: u,
191
- isPanelVisible: t,
192
- dataSource: a,
193
- onValueChange: o
482
+ renderItem: b
194
483
  };
195
484
  }
196
- function te(e) {
197
- const { isPanelVisible: n, context: l, modelValue: u, props: t } = e, a = (p) => {
198
- n.value !== !1 && (n.value = !1);
199
- }, o = (p) => {
200
- n.value !== !1 && (n.value = !1);
485
+ function nt(e, t, o, l, n, i, u, c) {
486
+ const h = a(e.multiSelect), s = a(e.disableField), {
487
+ onMouseenterItem: r,
488
+ onMouseoverItem: d,
489
+ onMouseoutItem: f
490
+ } = n, {
491
+ getKey: C,
492
+ listViewItemClass: m,
493
+ onCheckItem: y,
494
+ onClickItem: O
495
+ } = i;
496
+ function P(v, b, B) {
497
+ return t.slots.content ? p(re, null, [t.slots.content && t.slots.content({
498
+ item: v,
499
+ index: b,
500
+ selectedItem: B
501
+ })]) : p("div", {
502
+ style: "margin: 10px 0;"
503
+ }, [v.name]);
504
+ }
505
+ function x(v, b, B) {
506
+ return p("li", {
507
+ class: m(v, b),
508
+ id: C(v, b),
509
+ key: C(v, b),
510
+ onClick: (k) => O(k, v, b),
511
+ onMouseenter: (k) => r(k, v, b),
512
+ onMouseover: (k) => d(k, v, b),
513
+ onMouseout: (k) => f(k, v, b)
514
+ }, [h.value && p("div", {
515
+ class: "f-list-select",
516
+ onClick: (k) => k.stopPropagation()
517
+ }, [p(le, {
518
+ id: "list-" + C(v, b),
519
+ disabled: v[s.value] || v.unClick,
520
+ checked: v.checked,
521
+ onChange: (k) => y(v, b)
522
+ }, null)]), p("div", {
523
+ class: "f-list-content"
524
+ }, [P(v, b, B)])]);
525
+ }
526
+ return {
527
+ renderItem: x
201
528
  };
202
- R([n], ([p]) => {
203
- p ? (window.addEventListener("resize", a), window.addEventListener("scroll", o)) : (window.removeEventListener("resize", a), window.removeEventListener("scroll", o));
529
+ }
530
+ function ot(e, t, o, l, n, i, u, c) {
531
+ const h = a(e.multiSelect), s = a(e.disableField), {
532
+ onMouseenterItem: r,
533
+ onMouseoverItem: d,
534
+ onMouseoutItem: f
535
+ } = n, {
536
+ getKey: C,
537
+ listViewItemClass: m,
538
+ onCheckItem: y,
539
+ onClickItem: O
540
+ } = i, {
541
+ dragstart: P,
542
+ dragenter: x,
543
+ dragover: v,
544
+ dragend: b
545
+ } = l, {
546
+ removeItem: B
547
+ } = c, k = I(() => ({
548
+ margin: h.value ? "10px 0" : "10px 0px 10px 14px"
549
+ }));
550
+ function E(V) {
551
+ return p("div", {
552
+ style: k.value
553
+ }, [V.name]);
554
+ }
555
+ function L() {
556
+ return t.slots.itemContent ? t.slots.itemContent : E;
557
+ }
558
+ const w = L();
559
+ function j(V, R, z) {
560
+ return p("li", {
561
+ class: m(V, R),
562
+ id: C(V, R),
563
+ key: C(V, R),
564
+ onClick: (D) => O(D, V, R),
565
+ onMouseenter: (D) => r(D, V, R),
566
+ onMouseover: (D) => d(D, V, R),
567
+ onMouseout: (D) => f(D, V, R),
568
+ draggable: "true",
569
+ onDragstart: (D) => P(D, V, R),
570
+ onDragenter: (D) => x(D, R),
571
+ onDragend: (D) => b(D, V),
572
+ onDragover: (D) => v(D, R)
573
+ }, [h.value && p("div", {
574
+ class: "f-list-select",
575
+ onClick: (D) => D.stopPropagation()
576
+ }, [p(le, {
577
+ id: "list-" + C(V, R),
578
+ disabled: V[s.value] || V.unClick,
579
+ checked: V.checked,
580
+ onChange: (D) => y(V, R)
581
+ }, null)]), p("div", {
582
+ class: "f-list-content"
583
+ }, [w(V)]), p("div", {
584
+ class: "f-list-remove",
585
+ onClick: (D) => B(R)
586
+ }, [p("div", {
587
+ class: "f-list-remove-icon"
588
+ }, [p("i", {
589
+ class: "f-icon f-icon-remove_face"
590
+ }, null)])]), p("div", {
591
+ class: "f-list-handle"
592
+ }, [p("div", null, [p("i", {
593
+ class: "f-icon f-icon-drag-vertical"
594
+ }, null)])])]);
595
+ }
596
+ return {
597
+ renderItem: j
598
+ };
599
+ }
600
+ function at(e, t, o) {
601
+ function l() {
602
+ return t.slots.header && p("div", {
603
+ class: "f-list-view-header"
604
+ }, [t.slots.header()]);
605
+ }
606
+ return {
607
+ renderHeader: l
608
+ };
609
+ }
610
+ function ce(e, t, o) {
611
+ const l = a(e.headerClass), n = a(e.placeholder), i = a(""), u = I(() => !i.value), c = I(() => !!i.value);
612
+ function h(f) {
613
+ i.value = "";
614
+ }
615
+ W(i, (f) => {
616
+ o.search(f);
617
+ });
618
+ const s = I(() => {
619
+ const f = {
620
+ "form-group": !0,
621
+ "farris-form-group": !0
622
+ };
623
+ return l.value && l.value.split(" ").reduce((m, y) => (m[y] = !0, m), f), f;
204
624
  });
205
- function i(p) {
206
- u.value = "", t.hidePanelOnClear && (n.value = !1), l.emit(j.update, ""), l.emit(j.clear);
625
+ function r(f) {
207
626
  }
208
- function d(p) {
209
- n.value = !n.value;
627
+ function d() {
628
+ return p("div", {
629
+ class: "f-list-view-header",
630
+ onClick: Fe(r, ["prevent", "stop"])
631
+ }, [p("div", {
632
+ class: s.value
633
+ }, [p("div", {
634
+ class: "farris-input-wrap"
635
+ }, [p("div", {
636
+ class: "f-cmp-inputgroup"
637
+ }, [p("div", {
638
+ class: "input-group f-state-editable"
639
+ }, [Q(p("input", {
640
+ class: "form-control f-utils-fill text-left",
641
+ "onUpdate:modelValue": (f) => i.value = f,
642
+ name: "input-group-value",
643
+ type: "text",
644
+ placeholder: n.value,
645
+ autocomplete: "off"
646
+ }, null), [[Oe, i.value]]), p("div", {
647
+ class: "input-group-append"
648
+ }, [c.value && p("span", {
649
+ class: "input-group-text input-group-clear",
650
+ onClick: (f) => h()
651
+ }, [p("i", {
652
+ class: "f-icon f-icon-close-circle"
653
+ }, null)]), u.value && p("span", {
654
+ class: "input-group-text"
655
+ }, [p("span", {
656
+ class: "f-icon f-icon-search"
657
+ }, null)])])])])])])]);
210
658
  }
211
- function s(p) {
212
- n.value = !1;
659
+ return {
660
+ renderHeader: d
661
+ };
662
+ }
663
+ function lt(e, t) {
664
+ const o = a(e.idField), l = a(e.data), n = a(e.data), i = a(e.keepOrder);
665
+ function u() {
666
+ const s = l.value.map((r, d) => typeof r != "object" ? { __fv_index__: d, name: r } : (r.__fv_index__ = d, r));
667
+ return n.value = s, s;
213
668
  }
214
- function y(p) {
215
- t.editable === !1 && (n.value = !0);
669
+ const c = a(u());
670
+ W(
671
+ () => e.data,
672
+ (s) => {
673
+ if (i.value) {
674
+ const r = s.reduce((m, y) => (m.set(y.id, !0), m), /* @__PURE__ */ new Map()), d = l.value.reduce((m, y) => (m.set(y.id, !0), m), /* @__PURE__ */ new Map()), f = c.value.filter((m) => r.has(m.id)), C = s.filter((m) => !d.has(m.id));
675
+ l.value = [...f, ...C];
676
+ } else
677
+ l.value = s;
678
+ c.value = u();
679
+ }
680
+ );
681
+ function h(s) {
682
+ return s.map((d) => {
683
+ const f = n.value.findIndex((C) => C[o.value] === d);
684
+ return f > -1 ? n.value[f] : null;
685
+ }).filter((d) => d != null);
216
686
  }
217
687
  return {
218
- onClear: i,
219
- onClick: y,
220
- onButtonClick: d,
221
- onPanelHidden: s
688
+ dataView: c,
689
+ getSelectionItems: h
222
690
  };
223
691
  }
224
- const ae = {
225
- popupContentPosition: { type: Object, default: { left: 0, top: 0 } }
226
- }, ne = /* @__PURE__ */ N({
692
+ function ut(e, t, o, l) {
693
+ const n = a(e.idField), { dataView: i } = o, u = a(-1), c = a(!1), { activeIndex: h, focusedItemId: s, hoverIndex: r, resumeHover: d, suspendHover: f } = l;
694
+ function C(P, x, v) {
695
+ P.stopPropagation(), f(), x && setTimeout(() => {
696
+ u.value = v, c.value = !0, x.moving = !0;
697
+ });
698
+ }
699
+ function m(P, x) {
700
+ if (P.preventDefault(), u.value !== x) {
701
+ const v = i.value[u.value], b = i.value;
702
+ b.splice(u.value, 1), b.splice(x, 0, v), u.value = x;
703
+ }
704
+ }
705
+ function y(P, x) {
706
+ P.preventDefault(), P.dataTransfer && (P.dataTransfer.dropEffect = "move");
707
+ }
708
+ function O(P, x) {
709
+ x && (x.moving = !1), i.value.forEach((v, b) => {
710
+ v.__fv_index__ = b;
711
+ }), c.value = !1, d(), r.value = x.__fv_index__, h.value = x.__fv_index__, s.value = x[n.value], t.emit("change", i.value);
712
+ }
713
+ return {
714
+ dragstart: C,
715
+ dragenter: m,
716
+ dragover: y,
717
+ dragend: O,
718
+ isDragging: c
719
+ };
720
+ }
721
+ function it(e, t, o) {
722
+ const { dataView: l } = o;
723
+ function n(i) {
724
+ if (i > -1 && i < l.value.length) {
725
+ const u = l.value.splice(i, 1);
726
+ t.emit("removeItem", u[0]);
727
+ }
728
+ }
729
+ return { removeItem: n };
730
+ }
731
+ function st() {
732
+ const e = a(-1), t = a(""), o = a(-1), l = a(!1);
733
+ function n(s, r, d) {
734
+ o.value = d;
735
+ }
736
+ function i(s, r, d) {
737
+ l.value || (o.value = d);
738
+ }
739
+ function u(s, r, d) {
740
+ o.value = -1;
741
+ }
742
+ function c() {
743
+ l.value = !0;
744
+ }
745
+ function h() {
746
+ l.value = !1;
747
+ }
748
+ return {
749
+ activeIndex: e,
750
+ focusedItemId: t,
751
+ hoverIndex: o,
752
+ onMouseenterItem: n,
753
+ onMouseoverItem: i,
754
+ onMouseoutItem: u,
755
+ resumeHover: h,
756
+ suspendHover: c
757
+ };
758
+ }
759
+ const ct = /* @__PURE__ */ G({
760
+ name: "FListView",
761
+ props: Qe,
762
+ emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
763
+ setup(e, t) {
764
+ const o = a(), l = a(e.view), n = a(e.header), i = a(e.multiSelect), u = a(e.view === "CardView"), c = a(!0), h = a({}), s = a("暂无数据");
765
+ a(!0), a(!1), a("id");
766
+ const r = lt(e), {
767
+ dataView: d
768
+ } = r, f = I(() => {
769
+ const M = {
770
+ "f-list-view": !0,
771
+ "f-list-view-multiple": i.value
772
+ };
773
+ return e.size !== "default" && (M[`${e.size}-item`] = !0), M;
774
+ }), C = I(() => ({
775
+ "f-list-view-group": !0,
776
+ "d-flex": u.value,
777
+ "flex-wrap": u.value
778
+ })), m = I(() => !!d.value && d.value.length > 0), y = st(), O = Ze(e, t, r), P = ut(e, t, r, y), x = it(e, t, r), v = Ye(e, t, P, y, O), b = et(e, o), B = I(() => d.value.length === 0), k = I(() => B.value && !t.slots.empty), E = I(() => !!t.slots.footer || c.value);
779
+ function L() {
780
+ return l.value === "SingleView" ? se : l.value === "DraggableView" ? ot : l.value === "ContentView" && t.slots.content ? nt : se;
781
+ }
782
+ const w = L(), {
783
+ renderItem: j
784
+ } = w(e, t, r, P, y, v, O, x);
785
+ function V() {
786
+ return n.value === "SearchBar" ? ce : n.value === "ContentHeader" ? at : ce;
787
+ }
788
+ const R = V(), {
789
+ renderHeader: z
790
+ } = R(e, t, b);
791
+ function D(M) {
792
+ b.search(M);
793
+ }
794
+ t.expose({
795
+ search: D
796
+ });
797
+ function F(M) {
798
+ i.value && (M.preventDefault(), M.stopPropagation());
799
+ }
800
+ return () => p("div", {
801
+ class: f.value,
802
+ onClick: F
803
+ }, [z(), p("div", {
804
+ ref: o,
805
+ class: "f-list-view-content"
806
+ }, [p("ul", {
807
+ class: C.value,
808
+ style: "list-style: none;"
809
+ }, [m.value && d.value.map((M, A) => j(M, A, h)), k.value && p("div", {
810
+ class: "f-list-view-emptydata"
811
+ }, [p("p", {
812
+ class: "f-empty-title"
813
+ }, [s.value])]), t.slots.empty && t.slots.empty()])]), E.value && p("div", {
814
+ class: "f-list-view-footer"
815
+ }, [t.slots.footer && t.slots.footer()])]);
816
+ }
817
+ }), rt = /* @__PURE__ */ G({
818
+ name: "FComboListContainer",
819
+ props: Je,
820
+ emits: ["selectionChange"],
821
+ setup(e, t) {
822
+ const o = a(e.dataSource), l = a([]), n = a(e.separator), i = a(e.selectedValues.split(n.value));
823
+ W(e.dataSource, () => {
824
+ o.value = e.dataSource;
825
+ });
826
+ const u = I(() => e.enableSearch ? "SearchBar" : "ContentHeader");
827
+ function c(h) {
828
+ l.value = h.map((s) => Object.assign({}, s)), i.value = h.map((s) => s[e.idField]), t.emit("selectionChange", l.value);
829
+ }
830
+ return () => p("div", {
831
+ class: "f-combo-list-container"
832
+ }, [p(ct, {
833
+ size: "small",
834
+ itemClass: "f-combo-list-item",
835
+ header: u.value,
836
+ headerClass: "f-combo-list-search-box",
837
+ data: o.value,
838
+ idField: e.idField,
839
+ textField: e.textField,
840
+ multiSelect: e.multiSelect,
841
+ multiSelectMode: "OnCheckAndClick",
842
+ "selection-values": i.value,
843
+ onSelectionChange: c
844
+ }, null)]);
845
+ }
846
+ }), dt = /* @__PURE__ */ new Map([
847
+ ["appearance", me]
848
+ ]), ft = "https://json-schema.org/draft/2020-12/schema", vt = "https://farris-design.gitee.io/button-edit.schema.json", pt = "button-edit", gt = "A Farris Input Component", mt = "object", ht = {
849
+ id: {
850
+ description: "The unique identifier for a Input Group",
851
+ type: "string"
852
+ },
853
+ type: {
854
+ description: "The type string of Input Group component",
855
+ type: "string",
856
+ default: "button-edit"
857
+ },
858
+ appearance: {
859
+ description: "",
860
+ type: "object",
861
+ properties: {
862
+ class: {
863
+ type: "string"
864
+ },
865
+ style: {
866
+ type: "string"
867
+ }
868
+ },
869
+ default: {}
870
+ },
871
+ binding: {
872
+ description: "",
873
+ type: "object",
874
+ default: {}
875
+ },
876
+ disable: {
877
+ type: "string",
878
+ default: !1
879
+ },
880
+ editable: {
881
+ description: "",
882
+ type: "boolean",
883
+ default: !0
884
+ },
885
+ enableLinkLabel: {
886
+ description: "",
887
+ type: "boolean",
888
+ default: !1
889
+ },
890
+ label: {
891
+ description: "",
892
+ type: "string",
893
+ default: ""
894
+ },
895
+ lableWidth: {
896
+ description: "",
897
+ type: "number"
898
+ },
899
+ placeHolder: {
900
+ description: "",
901
+ type: "string",
902
+ default: ""
903
+ },
904
+ readonly: {
905
+ description: "",
906
+ type: "boolean",
907
+ default: !1
908
+ },
909
+ require: {
910
+ description: "",
911
+ type: "boolean",
912
+ default: !1
913
+ },
914
+ tabindex: {
915
+ description: "",
916
+ type: "number",
917
+ default: -1
918
+ },
919
+ textAlign: {
920
+ description: "",
921
+ type: "string",
922
+ enum: [
923
+ "left",
924
+ "middle",
925
+ "right"
926
+ ],
927
+ default: "left"
928
+ },
929
+ visible: {
930
+ description: "",
931
+ type: "boolean",
932
+ default: !0
933
+ },
934
+ onBlur: {
935
+ description: "",
936
+ type: "string",
937
+ default: ""
938
+ },
939
+ onClickLinkLabel: {
940
+ description: "",
941
+ type: "sting",
942
+ default: ""
943
+ },
944
+ autoComplete: {
945
+ description: "",
946
+ type: "boolean",
947
+ default: !1
948
+ },
949
+ buttonContent: {
950
+ description: "",
951
+ type: "string",
952
+ default: ""
953
+ },
954
+ enableClear: {
955
+ description: "",
956
+ type: "boolean",
957
+ default: !0
958
+ },
959
+ inputType: {
960
+ description: "",
961
+ type: "string",
962
+ enum: [
963
+ "text",
964
+ "tag"
965
+ ],
966
+ default: "text"
967
+ },
968
+ multiSelect: {
969
+ description: "",
970
+ type: "boolean",
971
+ default: !1
972
+ },
973
+ popup: {
974
+ description: "",
975
+ type: "object",
976
+ properties: {
977
+ footerButtons: {
978
+ type: "array",
979
+ default: []
980
+ },
981
+ height: {
982
+ type: "number",
983
+ default: 600
984
+ },
985
+ dataMapping: {
986
+ type: "object"
987
+ },
988
+ contents: {
989
+ type: "array",
990
+ default: []
991
+ },
992
+ showMaxButton: {
993
+ type: "boolean",
994
+ default: !0
995
+ },
996
+ showCloseButton: {
997
+ type: "boolean",
998
+ default: !0
999
+ },
1000
+ showFooter: {
1001
+ type: "boolean",
1002
+ default: !0
1003
+ },
1004
+ title: {
1005
+ type: "string",
1006
+ default: ""
1007
+ },
1008
+ width: {
1009
+ type: "number",
1010
+ default: 800
1011
+ }
1012
+ }
1013
+ },
1014
+ separator: {
1015
+ type: "string",
1016
+ default: ","
1017
+ },
1018
+ showButtonWhenDisabled: {
1019
+ description: "",
1020
+ type: "boolean",
1021
+ default: !1
1022
+ },
1023
+ wrapText: {
1024
+ type: "boolean",
1025
+ default: !1
1026
+ },
1027
+ onClear: {
1028
+ description: "",
1029
+ type: "string",
1030
+ default: ""
1031
+ }
1032
+ }, yt = [
1033
+ "id",
1034
+ "type"
1035
+ ], bt = {
1036
+ $schema: ft,
1037
+ $id: vt,
1038
+ title: pt,
1039
+ description: gt,
1040
+ type: mt,
1041
+ properties: ht,
1042
+ required: yt
1043
+ }, he = {
1044
+ /**
1045
+ * 组件标识
1046
+ */
1047
+ id: String,
1048
+ /**
1049
+ * 扩展按钮显示内容,这是一段现在扩展按钮中的html标签
1050
+ */
1051
+ buttonContent: { type: String, default: '<i class="f-icon f-icon-lookup"></i>' },
1052
+ buttonBehavior: { type: String, default: "Popup" },
1053
+ /**
1054
+ * 启用输入框自动完成功能
1055
+ */
1056
+ autoComplete: { type: Boolean, default: !1 },
1057
+ /**
1058
+ * 组件自定义样式
1059
+ */
1060
+ customClass: { type: String, default: "" },
1061
+ /**
1062
+ * 禁用组件,既不允许在输入框中录入,也不允许点击扩展按钮。
1063
+ */
1064
+ disable: { type: Boolean, default: !1 },
1065
+ /**
1066
+ * 允许在输入框中录入文本。
1067
+ */
1068
+ editable: { type: Boolean, default: !0 },
1069
+ /**
1070
+ * 显示清空文本按钮
1071
+ */
1072
+ enableClear: { type: Boolean, default: !1 },
1073
+ /**
1074
+ * 组件值
1075
+ */
1076
+ modelValue: { type: String, default: "" },
1077
+ /**
1078
+ * 将组件设置为只读,既不允许在输入框中录入,也不允许点击扩展按钮,但是允许复制输入框中的内容。
1079
+ */
1080
+ readonly: { type: Boolean, default: !1 },
1081
+ /**
1082
+ * 文本对齐方式
1083
+ */
1084
+ textAlign: { type: String, default: "left" },
1085
+ /**
1086
+ * 禁用组件时,是否显示扩展按钮
1087
+ */
1088
+ showButtonWhenDisabled: { type: Boolean, default: !1 },
1089
+ /**
1090
+ * 显示输入框的标签
1091
+ */
1092
+ enableTitle: { type: Boolean, default: !1 },
1093
+ /**
1094
+ * 输入框类型
1095
+ */
1096
+ inputType: { type: String, default: "text" },
1097
+ /**
1098
+ * 显示输入框提示信息
1099
+ */
1100
+ forcePlaceholder: { type: Boolean, default: !1 },
1101
+ /**
1102
+ * 输入框提示文本
1103
+ */
1104
+ placeholder: { type: String, default: "" },
1105
+ /**
1106
+ * 输入框最小长度
1107
+ */
1108
+ minLength: Number,
1109
+ /**
1110
+ * 输入框最大长度
1111
+ */
1112
+ maxLength: Number,
1113
+ /**
1114
+ * 输入框Tab键索引
1115
+ */
1116
+ tabIndex: Number,
1117
+ popupHost: { type: Object },
1118
+ popupRightBoundary: { type: Object },
1119
+ popupOffsetX: { type: Object },
1120
+ popupOnInput: { type: Boolean, default: !1 },
1121
+ popupOnFocus: { type: Boolean, default: !1 },
1122
+ popupMinWidth: { type: Number, default: 320 },
1123
+ wrapText: { type: Boolean, default: !1 },
1124
+ /**
1125
+ * 可选,是否支持多选
1126
+ * 默认`false`
1127
+ */
1128
+ multiSelect: { type: Boolean, default: !1 },
1129
+ /**
1130
+ * 可选,分隔符
1131
+ * 默认`,`
1132
+ */
1133
+ separator: { type: String, default: "," }
1134
+ };
1135
+ ge(he, bt, dt);
1136
+ const Ct = {
1137
+ popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
1138
+ host: { type: Object }
1139
+ }, wt = /* @__PURE__ */ G({
227
1140
  name: "FOverlay",
228
- props: ae,
1141
+ props: Ct,
229
1142
  emits: ["click"],
230
- setup(e, n) {
231
- const l = S(e.popupContentPosition);
232
- function u(a) {
233
- n.emit("click"), a.preventDefault(), a.stopPropagation();
1143
+ setup(e, t) {
1144
+ const o = a(e.popupContentPosition), l = a(e.host);
1145
+ function n(c) {
1146
+ t.emit("click"), c.preventDefault(), c.stopPropagation();
234
1147
  }
235
- const t = w(() => ({
1148
+ const i = I(() => {
1149
+ const c = l.value;
1150
+ if (c) {
1151
+ const h = c.getBoundingClientRect(), {
1152
+ left: s,
1153
+ top: r,
1154
+ height: d
1155
+ } = h;
1156
+ return {
1157
+ left: s,
1158
+ top: r + d
1159
+ };
1160
+ }
1161
+ return o.value;
1162
+ }), u = I(() => ({
236
1163
  position: "relative",
237
- left: `${l.value.left}px`,
238
- top: `${l.value.top}px`
1164
+ left: `${i.value.left}px`,
1165
+ top: `${i.value.top}px`
239
1166
  }));
240
- return () => f(K, {
1167
+ return () => p(de, {
241
1168
  to: "body"
242
1169
  }, {
243
1170
  default: () => {
244
- var a, o;
245
- return [f("div", {
1171
+ var c, h;
1172
+ return [p("div", {
246
1173
  class: "overlay-container",
247
1174
  style: "pointer-events: auto;",
248
- onClick: (i) => u(i)
249
- }, [f("div", {
250
- style: t.value
251
- }, [(o = (a = n.slots).default) == null ? void 0 : o.call(a)])])];
1175
+ onClick: (s) => n(s)
1176
+ }, [p("div", {
1177
+ style: u.value
1178
+ }, [(h = (c = t.slots).default) == null ? void 0 : h.call(c)])])];
252
1179
  }
253
1180
  });
254
1181
  }
255
1182
  });
256
- function ue() {
257
- const e = q(z, null);
1183
+ function St(e) {
1184
+ if (e.content && e.content.render)
1185
+ return e.content.render;
1186
+ if (e.render && typeof e.render == "function")
1187
+ return e.render;
1188
+ }
1189
+ function Tt(e) {
1190
+ const t = document.createElement("div");
1191
+ t.style.display = "contents";
1192
+ let o;
1193
+ const l = e.onClickCallback || (() => {
1194
+ }), n = () => {
1195
+ l(), o && o.unmount();
1196
+ };
1197
+ return o = Ve({
1198
+ setup() {
1199
+ fe(() => {
1200
+ document.body.removeChild(t);
1201
+ });
1202
+ const i = St(e);
1203
+ return () => p(wt, {
1204
+ "popup-content-position": e.popupPosition,
1205
+ host: e.host,
1206
+ onClick: n
1207
+ }, {
1208
+ default: () => [i && i()]
1209
+ });
1210
+ }
1211
+ }), document.body.appendChild(t), o.mount(t), o;
1212
+ }
1213
+ class Bt {
1214
+ static show(t) {
1215
+ return Tt(t);
1216
+ }
1217
+ }
1218
+ function It(e, t, o, l) {
1219
+ const n = a(e.buttonBehavior), i = a(e.popupOnInput), u = I(() => ({
1220
+ "input-group-append": !0,
1221
+ "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
1222
+ })), c = I(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable);
1223
+ async function h(f) {
1224
+ if (c.value) {
1225
+ const C = !!t.slots.default;
1226
+ n.value === "Overlay" && Bt.show({
1227
+ host: o.value,
1228
+ render: () => {
1229
+ if (t.slots.default)
1230
+ return t.slots.default();
1231
+ }
1232
+ }), C && n.value === "Popup" && l.togglePopup(), C && i.value && l.hidePopup(), t.emit("clickButton", { origin: f, value: e.modelValue });
1233
+ }
1234
+ f.stopPropagation();
1235
+ }
1236
+ function s(f) {
1237
+ t.emit("mouseEnterIcon", f);
1238
+ }
1239
+ function r(f) {
1240
+ t.emit("mouseLeaveIcon", f);
1241
+ }
1242
+ function d() {
1243
+ t.emit("mouseOverButton");
1244
+ }
258
1245
  return {
259
- idField: e == null ? void 0 : e.comboListProps.idField,
260
- valueField: e == null ? void 0 : e.comboListProps.valueField,
261
- textField: e == null ? void 0 : e.comboListProps.textField
1246
+ buttonClass: u,
1247
+ onClickButton: h,
1248
+ onMouseEnterButton: s,
1249
+ onMouseLeaveButton: r,
1250
+ onMouseOverButton: d
262
1251
  };
263
1252
  }
264
- function oe(e, n) {
265
- const l = q(z, null), u = q(A, null), t = S(l == null ? void 0 : l.dataSource), a = (l == null ? void 0 : l.comboListProps.valueField) || "id", o = (l == null ? void 0 : l.comboListProps.textField) || "label", i = (l == null ? void 0 : l.comboListProps.separator) || ",", d = w(() => {
266
- var B;
267
- return l != null && l.modelValue ? e.value !== void 0 && ((B = l == null ? void 0 : l.modelValue) == null ? void 0 : B.toString().split(i).includes(e.value.toString())) : !1;
268
- }), s = w(() => (l == null ? void 0 : l.comboListProps.multiSelect) || !1), y = w(() => e.name || e.value), p = l == null ? void 0 : l.defaultOptionSlot, v = (B) => {
269
- var c, r;
270
- if (!e.disabled && e.value !== void 0)
271
- if (s.value) {
272
- const h = (l == null ? void 0 : l.modelValue) || null, m = (h == null ? void 0 : h.toString().split(i)) || [], b = m == null ? void 0 : m.indexOf(e.value.toString());
273
- b !== -1 ? m.splice(b, 1) : m.push(e.value.toString());
274
- const g = (c = t.value) == null ? void 0 : c.filter((F) => F[a] && m.includes(F[a].toString())), P = g == null ? void 0 : g.map((F) => F[a]).join(i), V = g == null ? void 0 : g.map((F) => F[o]).join(i);
275
- l == null || l.onValueChange({
276
- value: P,
277
- name: V
278
- });
279
- } else
280
- l == null || l.onValueChange({
281
- value: e.value,
282
- name: e.name
283
- }), (r = u == null ? void 0 : u.onPanelItemClick) == null || r.call(u, B);
284
- }, k = w(() => s.value ? d.value : (l == null ? void 0 : l.modelValue) === e.value), C = w(() => ({
285
- active: k.value,
286
- "list-group-item": !0,
287
- "list-group-item-action": !0
288
- })), T = w(() => ({
289
- cursor: e.disabled ? "not-allowed" : "default"
1253
+ function kt(e, t, o, l, n, i) {
1254
+ const u = a(!1), c = I(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: h } = i;
1255
+ function s(C) {
1256
+ u.value = C;
1257
+ }
1258
+ W(n, () => {
1259
+ l.value ? s(!!n.value) : s(!1);
1260
+ });
1261
+ function r(C) {
1262
+ const m = !e.readonly && !e.disable && e.editable, y = !e.editable;
1263
+ C.stopPropagation(), (m || y) && (h("", !1), s(!u.value), t.emit("clear"));
1264
+ }
1265
+ function d(C) {
1266
+ if (c.value) {
1267
+ if (!o.value) {
1268
+ s(!1);
1269
+ return;
1270
+ }
1271
+ (!e.editable || !e.readonly) && !e.disable && s(!0);
1272
+ }
1273
+ }
1274
+ function f(C) {
1275
+ c.value && s(!1);
1276
+ }
1277
+ return {
1278
+ enableClearButton: c,
1279
+ showClearButton: u,
1280
+ onClearValue: r,
1281
+ onMouseEnterTextBox: d,
1282
+ onMouseLeaveTextBox: f
1283
+ };
1284
+ }
1285
+ function xt(e, t, o, l, n) {
1286
+ const i = a(e.popupOnInput), u = a(e.popupOnFocus), { shouldPopupContent: c } = n, h = I(() => e.enableTitle ? o.value : ""), s = I(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), r = I(() => e.readonly || !e.editable);
1287
+ let d = !1;
1288
+ const f = I(() => !e.disable && d), C = I(() => ({
1289
+ "text-left": e.textAlign === "left",
1290
+ "text-center": e.textAlign === "center",
1291
+ "text-right": e.textAlign === "right",
1292
+ "form-control": !0,
1293
+ "f-utils-fill": !0
1294
+ })), m = I(() => ({
1295
+ "input-group": !0,
1296
+ "f-state-disable": e.disable,
1297
+ "f-state-editable": e.editable && !e.disable && !e.readonly,
1298
+ "f-state-readonly": e.readonly && !e.disable,
1299
+ "f-state-focus": f.value
290
1300
  }));
1301
+ function y(w, j = !0) {
1302
+ o.value !== w && (o.value = w, j && t.emit("change", w), t.emit("update:modelValue", w));
1303
+ }
1304
+ function O(w) {
1305
+ c.value = !1, y(w, !0);
1306
+ }
1307
+ W(
1308
+ () => e.modelValue,
1309
+ (w) => {
1310
+ o.value = w, t.emit("change", w);
1311
+ }
1312
+ );
1313
+ function P(w) {
1314
+ d = !1, t.emit("blur", w), w.stopPropagation();
1315
+ }
1316
+ function x(w) {
1317
+ t.emit("click", w);
1318
+ }
1319
+ function v(w) {
1320
+ if (e.disable) {
1321
+ d = !0;
1322
+ return;
1323
+ }
1324
+ d = !0, r.value || (t.emit("focus", w), u.value && !c.value && n.popup());
1325
+ }
1326
+ function b(w) {
1327
+ t.emit("input", w.target.value);
1328
+ const j = w.target.value;
1329
+ l.value = j, o.value !== j && y(j, !1), i.value && !c.value && n.popup();
1330
+ }
1331
+ function B(w) {
1332
+ w.target.tagName !== "INPUT" && w.preventDefault(), w.stopPropagation();
1333
+ }
1334
+ function k(w) {
1335
+ t.emit("keydown", w);
1336
+ }
1337
+ function E(w) {
1338
+ w.key === "Enter" && (i.value || u.value) && n.hidePopup(), t.emit("keyup", w);
1339
+ }
1340
+ function L(w) {
1341
+ const j = w.target.value;
1342
+ w.stopPropagation(), y(j);
1343
+ }
291
1344
  return {
292
- name: y,
293
- optionClass: C,
294
- isChecked: d,
295
- rowStyle: T,
296
- multiSelect: s,
297
- onOptionClick: v,
298
- defaultOptionSlot: p
1345
+ hasFocusedTextBox: f,
1346
+ isTextBoxReadonly: r,
1347
+ textBoxClass: C,
1348
+ textBoxPlaceholder: s,
1349
+ textBoxTitle: h,
1350
+ inputGroupClass: m,
1351
+ changeTextBoxValue: y,
1352
+ commitValue: O,
1353
+ onBlurTextBox: P,
1354
+ onClickTextBox: x,
1355
+ onFocusTextBox: v,
1356
+ onInput: b,
1357
+ onKeyDownTextBox: k,
1358
+ onKeyUpTextBox: E,
1359
+ onMouseDownTextBox: B,
1360
+ onTextBoxValueChange: L
299
1361
  };
300
1362
  }
301
- const ie = /* @__PURE__ */ N({
302
- name: "FOption",
303
- props: E,
304
- emits: [],
305
- setup(e, n) {
306
- const {
307
- name: l,
308
- optionClass: u,
309
- rowStyle: t,
310
- multiSelect: a,
311
- onOptionClick: o,
312
- isChecked: i,
313
- defaultOptionSlot: d
314
- } = oe(e);
315
- return () => f("li", {
316
- style: t.value,
317
- class: u.value,
318
- onClick: _(o, ["prevent", "stop"])
319
- }, [a.value && f("div", {
320
- class: "custom-control custom-checkbox custom-control-inline",
321
- style: "margin:0;padding-right:0;float:none;vertical-align: top;"
322
- }, [G(f("input", {
323
- class: "custom-control-input",
324
- type: "checkbox",
325
- title: "custom-input",
326
- disabled: e.disabled,
327
- "onUpdate:modelValue": (s) => i.value = s
328
- }, null), [[J, i.value]]), f("label", {
329
- class: "custom-control-label"
330
- }, null)]), f("span", {
331
- class: "f-datalist-item-text"
332
- }, [d ? d({
333
- name: l.value
334
- }) : l.value])]);
335
- }
336
- }), re = /* @__PURE__ */ N({
337
- name: "FOptions",
338
- props: ee,
339
- emits: [],
340
- setup(e, n) {
341
- const {
342
- valueField: l = "id",
343
- textField: u = "label"
344
- } = ue();
345
- return () => {
346
- var t;
347
- return f("ul", {
348
- class: "list-group list-group-flush"
349
- }, [(t = e == null ? void 0 : e.options) == null ? void 0 : t.map((a) => f(ie, {
350
- value: a[l],
351
- name: a[u],
352
- disabled: a.disabled
353
- }, null))]);
354
- };
1363
+ function Pt(e, t, o) {
1364
+ const l = a(), n = a(!1);
1365
+ function i() {
1366
+ const s = l.value;
1367
+ s && s.show(o.value);
355
1368
  }
356
- });
357
- function de(e) {
358
- const { isPanelVisible: n, panelRef: l, context: u } = e, t = q(z, null), a = S((t == null ? void 0 : t.comboListProps.maxHeight) || 350), o = (t == null ? void 0 : t.comboListProps.valueField) || "id", i = (t == null ? void 0 : t.comboListProps.textField) || "label", d = (t == null ? void 0 : t.comboListProps.placement) || O.bottom, s = S(t == null ? void 0 : t.dataSource), y = S(t == null ? void 0 : t.dataSource), p = S(""), v = w(() => (t == null ? void 0 : t.comboListProps.enableSearch) || !1), k = w(() => ({
359
- "z-index": 99999,
360
- position: "absolute",
361
- background: "#fff",
362
- border: "solid 1px #ededed"
363
- })), C = w(() => ({
364
- "max-height": v.value ? a.value - 36 + "px" : a.value + "px",
365
- overflow: "auto",
366
- border: "none"
367
- })), T = w(() => ({
368
- comboPanel: !0,
369
- "f-area-hide": !n.value,
370
- "f-area-show": n.value
371
- })), B = (c, r, h = O.bottom) => {
372
- var F;
373
- const m = ((F = c == null ? void 0 : c.getBoundingClientRect()) == null ? void 0 : F.height) || 350, b = r.bottom || 0, g = document.body.offsetHeight, P = (r == null ? void 0 : r.top) || 0, V = (r == null ? void 0 : r.height) || 0;
374
- if (c.style.left = (r == null ? void 0 : r.left) + "px", c.style.width = (r == null ? void 0 : r.width) + "px", h === O.bottom || h === O.auto) {
375
- c.style.top = P + V + "px";
376
- const I = g - b, $ = m <= I ? m : I;
377
- a.value = $;
378
- } else if (h === O.top) {
379
- const I = P, $ = m <= I ? m : I;
380
- c.style.top = P - $ + "px", a.value = $;
1369
+ async function u() {
1370
+ !!t.slots.default && (n.value = !n.value, await K(), i());
1371
+ }
1372
+ async function c() {
1373
+ !!t.slots.default && (n.value = !0, await K(), i());
1374
+ }
1375
+ function h() {
1376
+ n.value = !1;
1377
+ }
1378
+ return { hidePopup: h, popup: c, shouldPopupContent: n, togglePopup: u, popoverRef: l };
1379
+ }
1380
+ function Mt(e, t, o) {
1381
+ const {
1382
+ isTextBoxReadonly: l,
1383
+ textBoxClass: n,
1384
+ textBoxPlaceholder: i,
1385
+ textBoxTitle: u,
1386
+ onBlurTextBox: c,
1387
+ onClickTextBox: h,
1388
+ onFocusTextBox: s,
1389
+ onInput: r,
1390
+ onKeyDownTextBox: d,
1391
+ onKeyUpTextBox: f,
1392
+ onMouseDownTextBox: C,
1393
+ onTextBoxValueChange: m
1394
+ } = o;
1395
+ return () => p("input", {
1396
+ name: "input-group-value",
1397
+ autocomplete: e.autoComplete ? "on" : "off",
1398
+ class: n.value,
1399
+ disabled: e.disable,
1400
+ maxlength: e.maxLength,
1401
+ minlength: e.minLength,
1402
+ placeholder: i.value,
1403
+ readonly: l.value,
1404
+ tabindex: e.tabIndex,
1405
+ title: u.value,
1406
+ type: e.inputType,
1407
+ value: t.value,
1408
+ onBlur: c,
1409
+ onChange: m,
1410
+ onClick: h,
1411
+ onFocus: s,
1412
+ onInput: r,
1413
+ onKeydown: d,
1414
+ onKeyup: f,
1415
+ onMousedown: C
1416
+ }, null);
1417
+ }
1418
+ const Ft = {
1419
+ activeTag: { Type: String, default: "" },
1420
+ addButtonText: { Type: String, default: "" },
1421
+ customClass: { Type: String, default: "" },
1422
+ customStyle: { Type: String, default: "" },
1423
+ data: { type: Array, default: [] },
1424
+ enableAddButton: { Type: Boolean, default: !1 },
1425
+ placeholder: { Type: String, default: "" },
1426
+ selectable: { Type: Boolean, default: !1 },
1427
+ showAddButton: { Type: Boolean, default: !1 },
1428
+ showClose: { Type: Boolean, default: !1 },
1429
+ showColor: { Type: Boolean, default: !1 },
1430
+ showInput: { Type: Boolean, default: !1 },
1431
+ tagType: { Type: String, default: "" },
1432
+ tagStyle: { Type: String, default: "" },
1433
+ wrapText: { Type: Boolean, default: !1 },
1434
+ draggable: { Type: Boolean, default: !1 }
1435
+ };
1436
+ function Ot(e, t, o, l) {
1437
+ const n = a(-1), i = a(!1);
1438
+ function u(r, d, f) {
1439
+ r.stopPropagation(), d && setTimeout(() => {
1440
+ n.value = f, i.value = !0, d.moving = !0;
1441
+ });
1442
+ }
1443
+ function c(r, d) {
1444
+ if (r.preventDefault(), n.value !== d) {
1445
+ const f = l.value[n.value], C = l.value;
1446
+ C.splice(n.value, 1), C.splice(d, 0, f), n.value = d;
381
1447
  }
1448
+ }
1449
+ function h(r, d) {
1450
+ r.preventDefault(), r.dataTransfer && (r.dataTransfer.dropEffect = "move");
1451
+ }
1452
+ function s(r, d) {
1453
+ d && (d.moving = !1), o.value = l.value.filter((f) => f.type === "Tag").map((f) => f.payload), i.value = !1, t.emit("change", o.value);
1454
+ }
1455
+ return {
1456
+ dragstart: u,
1457
+ dragenter: c,
1458
+ dragover: h,
1459
+ dragend: s,
1460
+ isDragging: i
382
1461
  };
383
- return R([l, n], ([c, r]) => {
384
- var h, m;
385
- if (r && c) {
386
- const b = t == null ? void 0 : t.comboListRef, g = (m = (h = b == null ? void 0 : b.$el) == null ? void 0 : h.parentNode) == null ? void 0 : m.querySelector(".input-group");
387
- if (v.value) {
388
- const V = c.querySelector("input");
389
- V && V.focus();
1462
+ }
1463
+ const Vt = /* @__PURE__ */ G({
1464
+ name: "FTags",
1465
+ props: Ft,
1466
+ emits: ["remove", "selectionChange", "change"],
1467
+ setup(e, t) {
1468
+ const o = a(e.selectable), l = a(e.customClass), n = a(e.data), i = a(e.tagType), u = a(e.tagStyle), c = a(e.showColor), h = a(e.activeTag), s = a(e.customStyle), r = a(e.showClose), d = a(e.showAddButton), f = a(e.showInput), C = a(e.addButtonText), m = a(e.enableAddButton);
1469
+ a(e.placeholder), a(""), a();
1470
+ const y = a(), O = a(e.wrapText), P = a();
1471
+ function x() {
1472
+ const g = n.value.map((S) => ({
1473
+ type: "Tag",
1474
+ payload: S
1475
+ }));
1476
+ return d.value && g.push({
1477
+ type: "AddButton"
1478
+ }), g;
1479
+ }
1480
+ const v = a(x());
1481
+ function b(g) {
1482
+ n.value = g, v.value = x();
1483
+ }
1484
+ const B = I(() => v.value.findIndex((g) => g.type === "Input")), k = Ot(e, t, n, v), {
1485
+ dragstart: E,
1486
+ dragenter: L,
1487
+ dragover: w,
1488
+ dragend: j
1489
+ } = k;
1490
+ W(() => e.data, (g) => b(g));
1491
+ const V = I(() => {
1492
+ const g = {
1493
+ "farris-tags": !0,
1494
+ "farris-tags-checkable": o.value,
1495
+ "farris-tags-nowrap": !O.value
1496
+ };
1497
+ return l.value.split(" ").reduce((S, T) => (S[T] = !0, S), g), g;
1498
+ });
1499
+ function R(g) {
1500
+ const S = {
1501
+ "farris-tag-item": !0,
1502
+ "farris-tag-item-checked": o.value && g.checked,
1503
+ "farris-tag-item-checkable": o.value,
1504
+ "farris-tag-item-has-color": c.value,
1505
+ "farris-tag-item-actived": h.value === g.name
1506
+ };
1507
+ if (i.value) {
1508
+ const T = `farris-tag-item-${i.value}`;
1509
+ S[T] = !0;
390
1510
  }
391
- const P = g == null ? void 0 : g.getBoundingClientRect();
392
- B(c, P, d), u.emit(H.panelShow);
393
- }
394
- }), R([p], ([c]) => {
395
- ce(() => {
396
- var r;
397
- if (!c)
398
- return s.value = y.value;
399
- s.value = (r = y == null ? void 0 : y.value) == null ? void 0 : r.filter(
400
- (h) => {
401
- var m, b;
402
- return ((m = h[o]) == null ? void 0 : m.startsWith(c)) || h[o].toString().startsWith(c) || ((b = h[i]) == null ? void 0 : b.startsWith(c));
1511
+ return S;
1512
+ }
1513
+ const z = I(() => {
1514
+ const g = {};
1515
+ return s.value && s.value.split(";").reduce((S, T) => {
1516
+ const H = T.split(":");
1517
+ return S[H[0]] = H[1], S;
1518
+ }, g), g;
1519
+ });
1520
+ function D(g, S) {
1521
+ o.value && S.selectable && (S.checked = !S.checked, h.value = S.checked ? S.name : "", S.checked && n.value.filter((T) => T.name !== S.name).forEach((T) => {
1522
+ T.checked = !S.checked;
1523
+ }), t.emit("change", n.value), t.emit("selectionChange", S));
1524
+ }
1525
+ function F(g, S) {
1526
+ let T;
1527
+ switch (g.key) {
1528
+ case "Backspace":
1529
+ n.value = n.value.filter((H) => H.name !== S.name), t.emit("change", n.value);
1530
+ break;
1531
+ case "ArrowLeft":
1532
+ T = Math.max(y.value.scrollLeft + 20, 0), y.value.scrollLeft = T;
1533
+ break;
1534
+ case "ArrowRight":
1535
+ T = Math.max(y.value.scrollLeft - 20, 0), y.value.scrollLeft = T;
1536
+ }
1537
+ }
1538
+ function M(g, S) {
1539
+ const T = n.value.findIndex((H) => H.name === S.name);
1540
+ if (T > -1) {
1541
+ const [H] = n.value.splice(T, 1);
1542
+ v.value = x(), t.emit("change", n.value), t.emit("remove", n.value, H, T);
1543
+ }
1544
+ g.stopPropagation();
1545
+ }
1546
+ const A = I(() => ({
1547
+ "farris-tag-item": !0,
1548
+ "farris-tag-add-button": !0,
1549
+ "farris-tag-add-button-disabled": !m.value
1550
+ }));
1551
+ function $(g) {
1552
+ }
1553
+ function _() {
1554
+ return p("li", {
1555
+ class: A.value,
1556
+ onClick: (g) => void 0
1557
+ }, [p("span", {
1558
+ class: "f-icon f-icon-amplification"
1559
+ }, null), p("span", {
1560
+ class: "farris-tag-add-text"
1561
+ }, [C.value])]);
1562
+ }
1563
+ function N(g) {
1564
+ if (g && !g.innerText) {
1565
+ const S = B.value;
1566
+ if (S > 0) {
1567
+ const [T] = n.value.splice(S - 1, 1);
1568
+ v.value.splice(S - 1, 1), t.emit("remove", n.value, T, S - 1);
403
1569
  }
404
- );
405
- }, 500)();
406
- }), {
407
- panelStyle: k,
408
- panelClass: T,
409
- cardStyle: C,
410
- enableSearch: v,
411
- keyword: p,
412
- items: s
413
- };
1570
+ }
1571
+ }
1572
+ function U(g, S, T) {
1573
+ g > -1 && (n.value.splice(g, 0, {
1574
+ name: S,
1575
+ value: T,
1576
+ selectable: o.value
1577
+ }), v.value = x(), t.emit("change", n.value));
1578
+ }
1579
+ function J(g) {
1580
+ if (g && g.innerText) {
1581
+ const S = g.innerText, T = B.value;
1582
+ U(T, S, S), g.innerText = "";
1583
+ }
1584
+ }
1585
+ function Y(g) {
1586
+ const S = g.target;
1587
+ S && (S.innerText ? J(S) : t.emit("change", n.value));
1588
+ }
1589
+ function be(g) {
1590
+ g.key === "Enter" && J(g.target), g.key === "Backspace" && (N(g.target), K(() => {
1591
+ P.value && P.value.focus();
1592
+ }));
1593
+ }
1594
+ function Ce() {
1595
+ return p("li", {
1596
+ class: "farris-tag-input-box"
1597
+ }, [p("div", {
1598
+ ref: P,
1599
+ class: "form-control",
1600
+ contenteditable: "true",
1601
+ onKeyup: be,
1602
+ onBlur: Y
1603
+ }, null)]);
1604
+ }
1605
+ function we(g, S) {
1606
+ return p("li", {
1607
+ class: R(g),
1608
+ style: z.value,
1609
+ tabindex: 0,
1610
+ id: g.name,
1611
+ key: g.name,
1612
+ onClick: (T) => D(T, g),
1613
+ onKeydown: (T) => F(T, g),
1614
+ draggable: "true",
1615
+ onDragstart: (T) => E(T, g, S),
1616
+ onDragenter: (T) => L(T, S),
1617
+ onDragend: (T) => j(T, g),
1618
+ onDragover: (T) => w(T, S)
1619
+ }, [p("div", {
1620
+ title: g.name,
1621
+ class: "tag-box"
1622
+ }, [g.name]), r.value && p("span", {
1623
+ class: "tag-delete"
1624
+ }, [p("i", {
1625
+ class: "f-icon f-icon-close",
1626
+ onClick: (T) => M(T, g)
1627
+ }, null)])]);
1628
+ }
1629
+ function Se() {
1630
+ return v.value.map((g, S) => {
1631
+ switch (g.type) {
1632
+ case "Tag":
1633
+ return we(g.payload, S);
1634
+ case "AddButton":
1635
+ return _();
1636
+ case "Input":
1637
+ return Ce();
1638
+ }
1639
+ });
1640
+ }
1641
+ const Te = I(() => ({
1642
+ "farris-tags-item-container": !0,
1643
+ "farris-tag-item-capsule": u.value === "capsule"
1644
+ }));
1645
+ function Be(g) {
1646
+ const S = Math.max(y.value.scrollLeft - g.deltaX, 0);
1647
+ y.value.scrollLeft = S;
1648
+ }
1649
+ function Ie(g) {
1650
+ const S = y.value, T = n.value.length - 1;
1651
+ if (S) {
1652
+ const H = Array.from(S.children).filter((X) => X.className.indexOf("farris-tag-item") > -1).findIndex((X) => {
1653
+ const q = X.getBoundingClientRect(), Z = window.getComputedStyle(X), ue = parseInt(Z["margin-left"], 10) + q.width + parseInt(Z["margin-right"], 10);
1654
+ return q.left + ue > g;
1655
+ });
1656
+ if (H > -1)
1657
+ return H;
1658
+ }
1659
+ return T;
1660
+ }
1661
+ function ke(g) {
1662
+ if (f.value) {
1663
+ const T = Ie(g.clientX) + 1, X = v.value.filter((q) => q.type !== "Input");
1664
+ X.splice(T, 0, {
1665
+ type: "Input"
1666
+ }), v.value = X, K(() => {
1667
+ P.value && P.value.focus();
1668
+ });
1669
+ }
1670
+ }
1671
+ function xe(g) {
1672
+ var T;
1673
+ g.preventDefault(), g.stopPropagation();
1674
+ const S = (T = g.dataTransfer) == null ? void 0 : T.getData("Text");
1675
+ if (S) {
1676
+ const H = S.split(":"), X = H[0], q = H[1];
1677
+ [...n.value].findIndex((ee) => (console.log(`${ee.value} === ${q} is ${ee.value === q}`), ee.value === q)) > -1 || U(n.value.length, X, q);
1678
+ }
1679
+ }
1680
+ function Pe(g) {
1681
+ g.preventDefault();
1682
+ }
1683
+ return () => p("div", {
1684
+ class: V.value,
1685
+ onClick: ke,
1686
+ onDrop: xe,
1687
+ onDragover: Pe
1688
+ }, [p("ul", {
1689
+ ref: y,
1690
+ class: Te.value,
1691
+ onWheel: (g) => Be(g)
1692
+ }, [Se()])]);
1693
+ }
1694
+ });
1695
+ function Lt(e, t, o) {
1696
+ const l = a(e.separator), {
1697
+ changeTextBoxValue: n
1698
+ } = o, i = I(() => t.value ? t.value.split(l.value).map((c) => ({
1699
+ name: c,
1700
+ selectable: !0
1701
+ })) : []);
1702
+ function u(c) {
1703
+ n(c.map((h) => h.name).join(l.value), !0);
1704
+ }
1705
+ return () => p(Vt, {
1706
+ class: "form-control",
1707
+ data: i.value,
1708
+ showClose: !0,
1709
+ showInput: !0,
1710
+ onChange: u
1711
+ }, null);
1712
+ }
1713
+ function Dt(e, t, o) {
1714
+ const {
1715
+ buttonClass: l,
1716
+ onClickButton: n,
1717
+ onMouseEnterButton: i,
1718
+ onMouseLeaveButton: u
1719
+ } = t, {
1720
+ enableClearButton: c,
1721
+ showClearButton: h,
1722
+ onClearValue: s
1723
+ } = o;
1724
+ return () => p("div", {
1725
+ class: l.value
1726
+ }, [c.value && Q(p("span", {
1727
+ class: "input-group-text input-group-clear",
1728
+ onClick: s
1729
+ }, [p("i", {
1730
+ class: "f-icon modal_close"
1731
+ }, null)]), [[ve, h.value]]), e.buttonContent && p("span", {
1732
+ class: "input-group-text input-group-append-button",
1733
+ innerHTML: e.buttonContent,
1734
+ onClick: n,
1735
+ onMouseenter: i,
1736
+ onMouseleave: u
1737
+ }, null)]);
414
1738
  }
415
- function se(e) {
416
- const { context: n } = e;
417
- function l(o) {
418
- n.emit(H.panelHidden);
1739
+ const jt = {
1740
+ title: { type: String },
1741
+ placement: { type: String, default: "bottom" },
1742
+ reference: {
1743
+ type: Object
1744
+ },
1745
+ host: {
1746
+ type: Object
1747
+ },
1748
+ leftBoundary: {
1749
+ type: Object
1750
+ },
1751
+ rightBoundary: {
1752
+ type: Object
1753
+ },
1754
+ visible: { type: Boolean, default: !1 },
1755
+ class: { type: String },
1756
+ offsetX: { type: Object, default: a(0) },
1757
+ zIndex: { type: Number, default: -1 },
1758
+ keepWidthWithReference: { type: Boolean, default: !1 },
1759
+ fitContent: { type: Boolean, default: !1 },
1760
+ minWidth: { type: Number, default: -1 }
1761
+ };
1762
+ function Rt(e) {
1763
+ const t = e.host ? e.host : "body", o = I(() => t === "body" ? 0 : t ? t.getBoundingClientRect().top : 0), l = I(() => t === "body" ? 0 : t ? t.getBoundingClientRect().left : 0), n = I(() => t === "body" ? document.body.getBoundingClientRect().width : t ? t.getBoundingClientRect().width - (e.rightBoundary ? e.rightBoundary.getBoundingClientRect().width : 0) : document.body.getBoundingClientRect().width);
1764
+ return { host: t, hostLeft: l, hostTop: o, hostWidth: n };
1765
+ }
1766
+ function At(e, t, o, l) {
1767
+ var D;
1768
+ const n = a(0), i = a(((D = e.offsetX) == null ? void 0 : D.value) || 0), u = a(-1), c = a(-1), h = a(-1), s = a(e.placement), r = a(0), d = a(0), f = a(0), C = a(document.documentElement.scrollLeft), m = a(document.documentElement.scrollTop), { hostLeft: y, hostTop: O, hostWidth: P } = l;
1769
+ W(e.offsetX, (F) => {
1770
+ n.value = F - i.value;
1771
+ });
1772
+ const x = I(() => {
1773
+ const F = {
1774
+ left: `${d.value}px`,
1775
+ top: `${f.value}px`,
1776
+ transform: `translateX(${n.value}px)`
1777
+ };
1778
+ return e.zIndex !== -1 && (F["z-index"] = e.zIndex), u.value !== -1 && (F.width = `${u.value}px`), F;
1779
+ }), v = I(() => ({
1780
+ left: `${r.value}px`
1781
+ }));
1782
+ function b(F) {
1783
+ if (F && e.keepWidthWithReference) {
1784
+ const M = F.getBoundingClientRect();
1785
+ u.value = Math.max(e.minWidth, M.width);
1786
+ }
1787
+ }
1788
+ function B(F, M) {
1789
+ const A = P.value - F.width - 4;
1790
+ return A > 0 ? A : M;
1791
+ }
1792
+ function k(F, M, A) {
1793
+ const $ = r.value, _ = M.left - y.value + M.width / 2 + C.value, N = M.top - O.value - (F.height + A.height) + m.value;
1794
+ return { popoverLeft: _, popoverTop: N, arrowLeft: $ };
1795
+ }
1796
+ function E(F, M, A) {
1797
+ return M.top - O.value + (M.height + A.height) + m.value;
1798
+ }
1799
+ function L(F, M) {
1800
+ const A = B(M, F), $ = F <= A ? r.value : F - A;
1801
+ return { popoverLeft: Math.min(F, A), arrowLeft: $ };
419
1802
  }
420
- function u(o) {
421
- n.emit(H.panelHidden);
1803
+ function w(F, M, A) {
1804
+ const $ = M.left - y.value + M.width / 2 - (A.width / 2 - (F.left - y.value)) + C.value, { arrowLeft: _, popoverLeft: N } = L($, F), U = E(F, M, A);
1805
+ return { popoverLeft: N, popoverTop: U, arrowLeft: _ };
422
1806
  }
423
- function t(o) {
1807
+ function j(F, M, A) {
1808
+ const $ = M.left - y.value + C.value, { arrowLeft: _, popoverLeft: N } = L($, F), U = E(F, M, A);
1809
+ return { popoverLeft: N, popoverTop: U, arrowLeft: _ };
424
1810
  }
425
- function a(o) {
1811
+ const V = /* @__PURE__ */ new Map([
1812
+ ["top", k],
1813
+ ["bottom", w],
1814
+ ["bottom-left", j]
1815
+ ]);
1816
+ function R(F) {
1817
+ var N;
1818
+ const M = F.getBoundingClientRect();
1819
+ c.value = M.top, h.value = M.left;
1820
+ const A = t.value.getBoundingClientRect(), $ = (N = o.value) == null ? void 0 : N.getBoundingClientRect(), _ = V.get(s.value);
1821
+ if (_) {
1822
+ const { arrowLeft: U, popoverLeft: J, popoverTop: Y } = _($, M, A);
1823
+ r.value = U, d.value = J, f.value = Y;
1824
+ }
1825
+ e.keepWidthWithReference && b(F);
1826
+ }
1827
+ function z(F) {
1828
+ if (F) {
1829
+ const M = F.getBoundingClientRect();
1830
+ (M.left !== h.value || M.top !== c.value) && R(F);
1831
+ }
426
1832
  }
427
1833
  return {
428
- onPanelContainerClick: l,
429
- onPanelItemClick: u,
430
- onSearchClick: t,
431
- onPanelClick: a
1834
+ arrowStyle: v,
1835
+ popoverStyle: x,
1836
+ position: s,
1837
+ popoverWidth: u,
1838
+ fitToReference: b,
1839
+ followToReferencePosition: z,
1840
+ locateToReference: R
432
1841
  };
433
1842
  }
434
- function ce(e, n = 300) {
435
- let l;
436
- return (...u) => {
437
- clearTimeout(l), l = window.setTimeout(() => {
438
- e(u);
439
- }, n);
1843
+ function Et(e, t, o, l, n, i, u) {
1844
+ const c = a(e.visible), h = I(() => c.value), { fitToReference: s, locateToReference: r } = u;
1845
+ let d;
1846
+ function f() {
1847
+ c.value = !1, document.body.removeEventListener("click", d), t.emit("hidden");
1848
+ }
1849
+ d = (m) => {
1850
+ if (!n.value.contains(m.target)) {
1851
+ const y = n.value.closest(".popover");
1852
+ y && y.removeEventListener("click", d), f();
1853
+ }
440
1854
  };
1855
+ async function C(m) {
1856
+ if (l.value && o.value && m) {
1857
+ c.value = !0, n.value = m, await K(), r(m), i.value && s(m), document.body.addEventListener("click", d);
1858
+ const y = m.closest(".popover");
1859
+ y && y.addEventListener("click", d), t.emit("shown");
1860
+ }
1861
+ }
1862
+ return t.expose({ hide: f, show: C, shown: h }), { showPopover: c, hidePopverOnClickBodyHandler: d };
441
1863
  }
442
- const fe = /* @__PURE__ */ N({
443
- name: "FPanel",
444
- props: L,
445
- emits: [H.panelHidden, H.panelShow],
446
- setup(e, n) {
447
- const l = S(), {
448
- isPanelVisible: u
449
- } = Q(e), {
450
- panelStyle: t,
451
- panelClass: a,
452
- cardStyle: o,
453
- enableSearch: i,
454
- keyword: d,
455
- items: s
456
- } = de({
457
- isPanelVisible: u,
458
- props: e,
459
- panelRef: l,
460
- context: n
461
- }), {
462
- onPanelContainerClick: y,
463
- onPanelItemClick: p,
464
- onSearchClick: v,
465
- onPanelClick: k
466
- } = se({
467
- panelRef: l,
468
- isPanelVisible: u,
469
- context: n
470
- }), C = D({
471
- onPanelItemClick: p
472
- });
473
- return U(A, C), () => u.value && f(ne, {
474
- onClick: y
1864
+ function Ht(e, t, o, l, n) {
1865
+ const { popoverWidth: i, fitToReference: u, followToReferencePosition: c } = n;
1866
+ function h() {
1867
+ if (o.value) {
1868
+ c(o.value);
1869
+ const s = o.value.getBoundingClientRect();
1870
+ l.value && s.width !== i.value && u(o.value);
1871
+ }
1872
+ }
1873
+ return { onResize: h };
1874
+ }
1875
+ const Wt = /* @__PURE__ */ G({
1876
+ name: "FPopover",
1877
+ props: jt,
1878
+ emits: ["shown", "hidden"],
1879
+ setup(e, t) {
1880
+ const o = a(), l = a(), n = a(e.reference), i = a(e.keepWidthWithReference), u = I(() => !!e.title), c = Rt(e), {
1881
+ host: h
1882
+ } = c, s = At(e, o, l, c), {
1883
+ position: r,
1884
+ arrowStyle: d,
1885
+ popoverStyle: f,
1886
+ fitToReference: C,
1887
+ locateToReference: m
1888
+ } = s, {
1889
+ showPopover: y,
1890
+ hidePopverOnClickBodyHandler: O
1891
+ } = Et(e, t, o, l, n, i, s), {
1892
+ onResize: P
1893
+ } = Ht(e, t, n, i, s), x = I(() => {
1894
+ const b = `popover in popover-${r.value}`, B = `bs-popover-${r.value}`, k = {
1895
+ "popover-fitcontent": e.fitContent
1896
+ };
1897
+ return k[b] = !0, k[B] = !0, (e.class || "").split(" ").reduce((L, w) => (L[w] = !0, L), k), k;
1898
+ }), v = I(() => ({
1899
+ "popover-content": !0,
1900
+ "popover-body": !0
1901
+ }));
1902
+ return ne(() => {
1903
+ e.reference && m(n.value), i.value && C(n.value), window.addEventListener("resize", P);
1904
+ }), fe(() => {
1905
+ document.body.removeEventListener("click", O), window.removeEventListener("resize", P);
1906
+ }), () => p(de, {
1907
+ to: h
475
1908
  }, {
476
- default: () => [f("div", {
477
- class: a.value,
478
- ref: l,
479
- style: t.value,
480
- onClick: _(k, ["prevent", "stop"])
481
- }, [i.value && f(W("f-button-edit"), {
482
- enableClear: !0,
483
- style: "padding:5px 10px",
484
- buttonContent: "<i class='f-icon f-icon-search'></i>",
485
- modelValue: d.value,
486
- "onUpdate:modelValue": (T) => d.value = T,
487
- onClickButton: v
488
- }, null), f("div", {
489
- style: "position: relative;",
490
- class: "f-datalist"
491
- }, [f("div", {
492
- class: "card",
493
- style: o.value
494
- }, [f(re, {
495
- options: s.value
496
- }, null)])])])]
1909
+ default: () => {
1910
+ var b;
1911
+ return [Q(p("div", {
1912
+ ref: l,
1913
+ class: x.value,
1914
+ style: f.value,
1915
+ onClick: (B) => {
1916
+ B.stopPropagation();
1917
+ }
1918
+ }, [p("div", {
1919
+ ref: o,
1920
+ class: "popover-arrow arrow",
1921
+ style: d.value
1922
+ }, null), u.value && p("h3", {
1923
+ class: "popover-title popover-header"
1924
+ }, [e.title]), p("div", {
1925
+ class: v.value
1926
+ }, [t.slots.default && ((b = t.slots) == null ? void 0 : b.default())])]), [[ve, y.value]])];
1927
+ }
497
1928
  });
498
1929
  }
499
- }), M = /* @__PURE__ */ N({
1930
+ });
1931
+ function _t(e, t, o) {
1932
+ const l = a(e.popupMinWidth), {
1933
+ hidePopup: n,
1934
+ popoverRef: i
1935
+ } = o;
1936
+ return () => p(Wt, {
1937
+ ref: i,
1938
+ visible: !0,
1939
+ placement: "bottom-left",
1940
+ host: e.popupHost,
1941
+ "keep-width-with-reference": !0,
1942
+ fitContent: !0,
1943
+ "right-boundary": e.popupRightBoundary,
1944
+ minWidth: l.value,
1945
+ offsetX: e.popupOffsetX,
1946
+ onHidden: n
1947
+ }, {
1948
+ default: () => {
1949
+ var u, c;
1950
+ return [(c = (u = t.slots).default) == null ? void 0 : c.call(u)];
1951
+ }
1952
+ });
1953
+ }
1954
+ const ye = /* @__PURE__ */ G({
1955
+ name: "FButtonEdit",
1956
+ props: he,
1957
+ emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
1958
+ setup(e, t) {
1959
+ const o = a(), l = a(e.customClass), n = a(e.modelValue), i = Pt(e, t, o), {
1960
+ shouldPopupContent: u,
1961
+ hidePopup: c
1962
+ } = i, h = It(e, t, o, i), s = a(""), r = xt(e, t, n, s, i), {
1963
+ hasFocusedTextBox: d,
1964
+ commitValue: f,
1965
+ inputGroupClass: C
1966
+ } = r, m = kt(e, t, n, d, s, r), {
1967
+ onMouseEnterTextBox: y,
1968
+ onMouseLeaveTextBox: O
1969
+ } = m, P = I(() => {
1970
+ const E = {
1971
+ "f-button-edit": !0,
1972
+ "f-cmp-inputgroup": !0,
1973
+ "f-button-edit-nowrap": !e.wrapText
1974
+ };
1975
+ return l.value && l.value.split(" ").reduce((L, w) => (L[w] = !0, L), E), E;
1976
+ });
1977
+ function x() {
1978
+ return e.multiSelect && e.inputType === "tag" ? Lt(e, n, r) : Mt(e, n, r);
1979
+ }
1980
+ let v = x();
1981
+ W([() => e.multiSelect, () => e.inputType], () => {
1982
+ v = x();
1983
+ });
1984
+ const b = Dt(e, h, m), B = _t(e, t, i), k = {
1985
+ commitValue: f,
1986
+ elementRef: o,
1987
+ hidePopup: c
1988
+ };
1989
+ return ne(() => {
1990
+ o.value.componentInstance = k;
1991
+ }), t.expose(k), () => p(re, null, [p("div", Le(t.attrs, {
1992
+ ref: o,
1993
+ class: P.value,
1994
+ id: e.id
1995
+ }), [p("div", {
1996
+ class: C.value,
1997
+ onMouseenter: y,
1998
+ onMouseleave: O
1999
+ }, [v(), b()])]), u.value && B()]);
2000
+ }
2001
+ });
2002
+ function $t(e) {
2003
+ const t = a(""), o = a(e.modelValue), l = a(e.data || []), n = a(e.editable);
2004
+ function i(s) {
2005
+ const r = s.split(e.separator).map((f) => [f, !0]), d = new Map(r);
2006
+ return l.value.filter((f) => d.has(f[e.valueField]));
2007
+ }
2008
+ function u(s) {
2009
+ const r = i(s).map((d) => d[e.textField]).join(e.separator);
2010
+ t.value = n.value ? r || s : r;
2011
+ }
2012
+ function c(s) {
2013
+ const r = s.split(e.separator).map((f) => [f, !0]), d = new Map(r);
2014
+ return l.value.filter((f) => d.has(f[e.textField]));
2015
+ }
2016
+ function h() {
2017
+ const { url: s, method: r = "GET", headers: d = {}, body: f = null } = e.remote;
2018
+ fetch(s, { method: r, headers: d, body: f }).then((m) => {
2019
+ if (m.status === 200)
2020
+ return m.json();
2021
+ throw new Error(m.statusText);
2022
+ }).then((m) => {
2023
+ l.value = m;
2024
+ }).catch((m) => {
2025
+ console.error(m);
2026
+ });
2027
+ }
2028
+ return e.remote && h(), W(() => e.data, () => {
2029
+ l.value = e.data;
2030
+ }), W([l], ([s]) => {
2031
+ if (e.modelValue) {
2032
+ const r = s.find((d) => d[e.valueField] === e.modelValue);
2033
+ r && (t.value = r[e.textField]);
2034
+ }
2035
+ }), W(() => e.modelValue, (s) => {
2036
+ o.value = s, u(s);
2037
+ }), u(e.modelValue), { dataSource: l, displayText: t, editable: n, modelValue: o, getItemsByDisplayText: c, getItemsByValue: i };
2038
+ }
2039
+ const te = /* @__PURE__ */ G({
500
2040
  name: "FComboList",
501
- props: Z,
502
- emits: [j.clear, j.update],
503
- setup(e, n) {
504
- const l = S(), {
505
- onValueChange: u,
506
- displayText: t,
507
- modelValue: a,
508
- isPanelVisible: o,
509
- dataSource: i
510
- } = le(e, n), {
511
- onClear: d,
512
- onButtonClick: s,
513
- onPanelHidden: y,
514
- onClick: p
515
- } = te({
516
- props: e,
517
- context: n,
518
- isPanelVisible: o,
519
- modelValue: a
520
- }), v = D({
521
- comboListRef: l,
522
- isPanelVisible: o,
523
- comboListProps: e,
524
- onValueChange: u,
525
- modelValue: a,
526
- dataSource: i,
527
- defaultOptionSlot: n.slots.default
2041
+ props: ae,
2042
+ emits: ["clear", "update:modelValue", "change"],
2043
+ setup(e, t) {
2044
+ const o = a(), l = a(e.disabled), n = a(e.enableClear), i = a(e.enableSearch), u = a(e.readonly), {
2045
+ dataSource: c,
2046
+ displayText: h,
2047
+ editable: s,
2048
+ modelValue: r,
2049
+ getItemsByDisplayText: d
2050
+ } = $t(e), f = I(() => e.multiSelect);
2051
+ function C() {
2052
+ !f.value && o.value && o.value.hidePopup();
2053
+ }
2054
+ function m(v) {
2055
+ h.value = v.map((b) => b[e.textField]).join(e.separator), r.value = v.map((b) => b[e.valueField]).join(e.separator), t.emit("update:modelValue", r.value), t.emit("change", v), C();
2056
+ }
2057
+ function y(v) {
2058
+ r.value = "", t.emit("update:modelValue", ""), t.emit("clear");
2059
+ }
2060
+ function O(v) {
2061
+ r.value = v, t.emit("update:modelValue", r.value);
2062
+ const b = {};
2063
+ b[e.idField] = v, b[e.textField] = v, t.emit("change", [b]);
2064
+ }
2065
+ function P(v) {
2066
+ if (s.value) {
2067
+ O(v);
2068
+ return;
2069
+ }
2070
+ const b = d(v);
2071
+ m(b);
2072
+ }
2073
+ function x() {
2074
+ return h.value;
2075
+ }
2076
+ return t.expose({
2077
+ getDisplayText: x
2078
+ }), W([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([v, b, B, k, E]) => {
2079
+ l.value = v, s.value = b, n.value = B, i.value = k, u.value = E;
2080
+ }), () => p(ye, {
2081
+ ref: o,
2082
+ id: e.id,
2083
+ disable: l.value,
2084
+ readonly: u.value,
2085
+ forcePlaceholder: e.forcePlaceholder,
2086
+ editable: s.value,
2087
+ buttonContent: e.dropDownIcon,
2088
+ placeholder: e.placeholder,
2089
+ enableClear: n.value,
2090
+ maxLength: e.maxLength,
2091
+ tabIndex: e.tabIndex,
2092
+ enableTitle: e.enableTitle,
2093
+ multiSelect: e.multiSelect,
2094
+ inputType: e.multiSelect ? "tag" : "text",
2095
+ modelValue: h.value,
2096
+ "onUpdate:modelValue": (v) => h.value = v,
2097
+ onClear: y,
2098
+ onChange: P
2099
+ }, {
2100
+ default: () => [p(rt, {
2101
+ idField: e.idField,
2102
+ valueField: e.valueField,
2103
+ textField: e.textField,
2104
+ dataSource: c.value,
2105
+ selectedValues: r.value,
2106
+ multiSelect: e.multiSelect,
2107
+ enableSearch: i.value,
2108
+ onSelectionChange: m
2109
+ }, null)]
528
2110
  });
529
- return U(z, v), () => f(X, null, [f(W("f-button-edit"), Y({
530
- ref: l,
2111
+ }
2112
+ });
2113
+ function Nt(e, t, o) {
2114
+ var x;
2115
+ const l = o == null ? void 0 : o.checkIsInFixedContextRules(), n = o && o.getStyles && o.getStyles() || "";
2116
+ function i() {
2117
+ return !(t.schema.componentType || l);
2118
+ }
2119
+ function u() {
2120
+ return !1;
2121
+ }
2122
+ function c() {
2123
+ return !(t.schema.componentType || l);
2124
+ }
2125
+ function h() {
2126
+ return !!l;
2127
+ }
2128
+ function s(v) {
2129
+ if (!v)
2130
+ return null;
2131
+ if (v.schema.type === "Component")
2132
+ return v;
2133
+ const b = s(v.parent);
2134
+ return b || null;
2135
+ }
2136
+ function r(v, b, B) {
2137
+ return !!o && o.canAccepts();
2138
+ }
2139
+ function d() {
2140
+ return t.schema.label || t.schema.title || t.schema.name;
2141
+ }
2142
+ function f() {
2143
+ }
2144
+ function C(v, b) {
2145
+ b && (o == null || o.onAcceptMovedChildElement(b));
2146
+ }
2147
+ function m(v, b) {
2148
+ const B = String(v.getAttribute("data-controltype"));
2149
+ return je(B);
2150
+ }
2151
+ function y(v) {
2152
+ return v.contents ? v.contents.length : -1;
2153
+ }
2154
+ function O(v) {
2155
+ }
2156
+ const P = {
2157
+ canMove: i(),
2158
+ canSelectParent: u(),
2159
+ canDelete: c(),
2160
+ canNested: !h(),
2161
+ contents: t.schema.contents,
2162
+ elementRef: e,
2163
+ parent: (x = t.parent) == null ? void 0 : x.componentInstance.value,
2164
+ schema: t.schema,
2165
+ styles: n,
2166
+ canAccepts: r,
2167
+ getBelongedComponentInstance: s,
2168
+ getDraggingDisplayText: d,
2169
+ getDragScopeElement: f,
2170
+ onAcceptMovedChildElement: C,
2171
+ onAcceptNewChildElement: m,
2172
+ onAddNewChildElement: y,
2173
+ onChildElementMovedOut: O,
2174
+ triggerBelongedComponentToMoveWhenMoved: !!o && o.triggerBelongedComponentToMoveWhenMoved
2175
+ };
2176
+ return a(P);
2177
+ }
2178
+ const zt = /* @__PURE__ */ G({
2179
+ name: "FComboListDesign",
2180
+ props: ae,
2181
+ emits: ["clear", "update:modelValue", "change"],
2182
+ setup(e, t) {
2183
+ const o = a(), l = De("design-item-context"), n = Nt(o, l);
2184
+ return ne(() => {
2185
+ o.value.componentInstance = n;
2186
+ }), t.expose(n.value), () => p(ye, {
2187
+ ref: o,
531
2188
  id: e.id,
532
- class: {
533
- active: o
534
- }
535
- }, n.attrs, {
536
2189
  disable: e.disabled,
537
2190
  readonly: e.readonly,
538
2191
  forcePlaceholder: e.forcePlaceholder,
@@ -543,35 +2196,26 @@ const fe = /* @__PURE__ */ N({
543
2196
  maxLength: e.maxLength,
544
2197
  tabIndex: e.tabIndex,
545
2198
  enableTitle: e.enableTitle,
546
- style: "display:block",
547
- modelValue: t.value,
548
- "onUpdate:modelValue": (k) => t.value = k,
549
- onClear: d,
550
- onClick: p,
551
- onClickButton: s
552
- }), null), o.value && f(fe, {
553
- isPanelVisible: o.value,
554
- onPanelHidden: y
555
- }, null)]);
2199
+ multiSelect: e.multiSelect,
2200
+ inputType: e.multiSelect ? "tag" : "text"
2201
+ }, null);
556
2202
  }
557
- }), ve = {
2203
+ }), qt = {
558
2204
  install(e) {
559
- e.component(M.name, M);
2205
+ e.component(te.name, te);
2206
+ },
2207
+ register(e, t) {
2208
+ e["combo-list"] = te, t["combo-list"] = ie;
2209
+ },
2210
+ registerDesigner(e, t) {
2211
+ e["combo-list"] = zt, t["combo-list"] = ie;
560
2212
  }
561
2213
  };
562
2214
  export {
563
- M as FComboList,
564
- O as Placement,
565
- x as ViewType,
566
- Z as comboListProps,
567
- ce as debounce,
568
- ve as default,
569
- E as optionProps,
570
- ee as optionsProps,
571
- L as panelProps,
572
- le as useComboList,
573
- te as useComboListEvent,
574
- oe as useOption,
575
- de as usePanel,
576
- se as usePanelEvent
2215
+ te as FComboList,
2216
+ Ke as Placement,
2217
+ Ue as ViewType,
2218
+ ae as comboListProps,
2219
+ qt as default,
2220
+ ie as propsResolver
577
2221
  };