@farris/ui-vue 1.0.0-beta.5 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (736) 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/index.esm.js +28 -1
  5. package/avatar/package.json +2 -2
  6. package/button/index.esm.js +133 -68
  7. package/button/index.umd.js +1 -1
  8. package/button/package.json +2 -2
  9. package/button-edit/index.esm.js +1130 -222
  10. package/button-edit/index.umd.js +1 -1
  11. package/button-edit/package.json +2 -2
  12. package/button-edit/style.css +1 -0
  13. package/calculator/index.esm.js +315 -0
  14. package/calculator/index.umd.js +1 -0
  15. package/calculator/package.json +8 -0
  16. package/calculator/style.css +1 -0
  17. package/calendar/index.esm.js +778 -0
  18. package/calendar/index.umd.js +1 -0
  19. package/calendar/package.json +8 -0
  20. package/calendar/style.css +1 -0
  21. package/capsule/index.esm.js +130 -0
  22. package/capsule/index.umd.js +1 -0
  23. package/capsule/package.json +8 -0
  24. package/capsule/style.css +1 -0
  25. package/checkbox/index.esm.js +217 -63
  26. package/checkbox/index.umd.js +1 -1
  27. package/checkbox/package.json +2 -2
  28. package/color-picker/index.esm.js +1551 -0
  29. package/color-picker/index.umd.js +16 -0
  30. package/color-picker/package.json +8 -0
  31. package/color-picker/style.css +1 -0
  32. package/combo-list/index.esm.js +2136 -374
  33. package/combo-list/index.umd.js +1 -1
  34. package/combo-list/package.json +2 -2
  35. package/combo-list/style.css +1 -0
  36. package/component/index.esm.js +176 -0
  37. package/component/index.umd.js +1 -0
  38. package/component/package.json +8 -0
  39. package/condition/index.esm.js +13562 -0
  40. package/condition/index.umd.js +1 -0
  41. package/condition/package.json +8 -0
  42. package/condition/style.css +1 -0
  43. package/content-container/index.esm.js +242 -0
  44. package/content-container/index.umd.js +1 -0
  45. package/content-container/package.json +8 -0
  46. package/data-grid/index.esm.js +13384 -1203
  47. package/data-grid/index.umd.js +1 -1
  48. package/data-grid/package.json +2 -2
  49. package/data-grid/style.css +1 -1
  50. package/date-picker/index.esm.js +2136 -1057
  51. package/date-picker/index.umd.js +1 -1
  52. package/date-picker/package.json +2 -2
  53. package/date-picker/style.css +1 -1
  54. package/designer-canvas/index.esm.js +15232 -0
  55. package/designer-canvas/index.umd.js +1 -0
  56. package/designer-canvas/package.json +8 -0
  57. package/designer-canvas/style.css +1 -0
  58. package/discussion-editor/index.esm.js +3559 -0
  59. package/discussion-editor/index.umd.js +16 -0
  60. package/discussion-editor/package.json +8 -0
  61. package/discussion-editor/style.css +1 -0
  62. package/discussion-list/index.esm.js +111 -0
  63. package/discussion-list/index.umd.js +1 -0
  64. package/discussion-list/package.json +8 -0
  65. package/discussion-list/style.css +1 -0
  66. package/dropdown/index.esm.js +214 -0
  67. package/dropdown/index.umd.js +1 -0
  68. package/dropdown/package.json +8 -0
  69. package/dropdown/style.css +1 -0
  70. package/dynamic-form/index.esm.js +13560 -0
  71. package/dynamic-form/index.umd.js +1 -0
  72. package/dynamic-form/package.json +8 -0
  73. package/dynamic-form/style.css +1 -0
  74. package/dynamic-resolver/index.esm.js +41 -0
  75. package/dynamic-resolver/index.umd.js +1 -0
  76. package/dynamic-resolver/package.json +8 -0
  77. package/dynamic-view/index.esm.js +13600 -0
  78. package/dynamic-view/index.umd.js +1 -0
  79. package/dynamic-view/package.json +8 -0
  80. package/dynamic-view/style.css +1 -0
  81. package/farris.all.esm.js +25213 -5571
  82. package/farris.all.umd.js +24 -1
  83. package/filter-bar/index.esm.js +549 -0
  84. package/filter-bar/index.umd.js +1 -0
  85. package/filter-bar/package.json +8 -0
  86. package/filter-bar/style.css +1 -0
  87. package/image-cropper/index.esm.js +720 -0
  88. package/image-cropper/index.umd.js +1 -0
  89. package/image-cropper/package.json +8 -0
  90. package/image-cropper/style.css +1 -0
  91. package/input-group/index.esm.js +549 -0
  92. package/input-group/index.umd.js +1 -0
  93. package/input-group/package.json +8 -0
  94. package/input-group/style.css +1 -0
  95. package/list-nav/index.esm.js +61 -0
  96. package/list-nav/index.umd.js +1 -0
  97. package/list-nav/package.json +8 -0
  98. package/list-nav/style.css +1 -0
  99. package/list-view/index.esm.js +516 -124
  100. package/list-view/index.umd.js +1 -1
  101. package/list-view/package.json +2 -2
  102. package/list-view/style.css +1 -1
  103. package/loading/index.esm.js +124 -0
  104. package/loading/index.umd.js +8 -0
  105. package/loading/package.json +8 -0
  106. package/loading/style.css +1 -0
  107. package/locale/index.esm.js +1868 -0
  108. package/locale/index.umd.js +1 -0
  109. package/locale/package.json +8 -0
  110. package/message-box/index.esm.js +420 -347
  111. package/message-box/index.umd.js +1 -1
  112. package/message-box/package.json +2 -2
  113. package/message-box/style.css +1 -0
  114. package/modal/index.esm.js +139 -92
  115. package/modal/index.umd.js +1 -1
  116. package/modal/package.json +2 -2
  117. package/modal/style.css +1 -0
  118. package/nav/index.esm.js +456 -0
  119. package/nav/index.umd.js +16 -0
  120. package/nav/package.json +8 -0
  121. package/nav/style.css +1 -0
  122. package/notify/index.esm.js +2 -2
  123. package/notify/package.json +2 -2
  124. package/order/index.esm.js +2270 -0
  125. package/order/index.umd.js +1 -0
  126. package/order/package.json +8 -0
  127. package/order/style.css +1 -0
  128. package/package.json +8 -5
  129. package/page-footer/index.esm.js +94 -0
  130. package/page-footer/index.umd.js +1 -0
  131. package/page-footer/package.json +8 -0
  132. package/page-header/index.esm.js +230 -0
  133. package/page-header/index.umd.js +1 -0
  134. package/page-header/package.json +8 -0
  135. package/pagination/index.esm.js +147 -141
  136. package/pagination/index.umd.js +1 -1
  137. package/pagination/package.json +2 -2
  138. package/popover/index.esm.js +194 -59
  139. package/popover/index.umd.js +1 -1
  140. package/popover/package.json +2 -2
  141. package/popover/style.css +1 -1
  142. package/propress/index.esm.js +108 -0
  143. package/propress/index.umd.js +1 -0
  144. package/propress/package.json +8 -0
  145. package/propress/style.css +1 -0
  146. package/radio-group/index.esm.js +192 -50
  147. package/radio-group/index.umd.js +1 -1
  148. package/radio-group/package.json +2 -2
  149. package/rate/index.esm.js +168 -0
  150. package/rate/index.umd.js +1 -0
  151. package/rate/package.json +8 -0
  152. package/rate/style.css +1 -0
  153. package/response-toolbar/index.esm.js +433 -0
  154. package/response-toolbar/index.umd.js +1 -0
  155. package/response-toolbar/package.json +8 -0
  156. package/search-box/index.esm.js +208 -0
  157. package/search-box/index.umd.js +1 -0
  158. package/search-box/package.json +8 -0
  159. package/search-box/style.css +1 -0
  160. package/section/index.esm.js +341 -45
  161. package/section/index.umd.js +1 -1
  162. package/section/package.json +2 -2
  163. package/section/style.css +1 -0
  164. package/splitter/index.esm.js +491 -0
  165. package/splitter/index.umd.js +1 -0
  166. package/splitter/package.json +8 -0
  167. package/splitter/style.css +1 -0
  168. package/step/index.esm.js +117 -0
  169. package/step/index.umd.js +1 -0
  170. package/step/package.json +8 -0
  171. package/step/style.css +1 -0
  172. package/style.css +3 -3
  173. package/switch/index.esm.js +159 -40
  174. package/switch/index.umd.js +1 -1
  175. package/switch/package.json +2 -2
  176. package/switch/style.css +1 -0
  177. package/tabs/index.esm.js +1563 -310
  178. package/tabs/index.umd.js +1 -1
  179. package/tabs/package.json +2 -2
  180. package/tabs/style.css +1 -1
  181. package/tags/index.esm.js +287 -0
  182. package/tags/index.umd.js +1 -0
  183. package/tags/package.json +8 -0
  184. package/tags/style.css +1 -0
  185. package/text/index.esm.js +4 -1
  186. package/text/package.json +2 -2
  187. package/time-picker/index.esm.js +1465 -0
  188. package/time-picker/index.umd.js +1 -0
  189. package/time-picker/package.json +8 -0
  190. package/time-picker/style.css +1 -0
  191. package/tooltip/index.esm.js +1 -1
  192. package/tooltip/package.json +2 -2
  193. package/transfer/index.esm.js +642 -0
  194. package/transfer/index.umd.js +1 -0
  195. package/transfer/package.json +8 -0
  196. package/transfer/style.css +1 -0
  197. package/tree-view/index.esm.js +701 -0
  198. package/tree-view/index.umd.js +1 -0
  199. package/tree-view/package.json +8 -0
  200. package/tree-view/style.css +1 -0
  201. package/types/accordion/index.d.ts +2 -0
  202. package/types/accordion/src/accordion.component.d.ts +4 -68
  203. package/types/accordion/src/accordion.props.d.ts +2 -33
  204. package/types/accordion/src/components/accordion-item.component.d.ts +4 -36
  205. package/types/accordion/src/components/accordion-item.props.d.ts +2 -17
  206. package/types/accordion/src/designer/accordion-item.design.component.d.ts +6 -0
  207. package/types/accordion/src/designer/accordion.design.component.d.ts +6 -0
  208. package/types/accordion/src/schema/schema-mapper.d.ts +2 -0
  209. package/types/avatar/src/avatar.component.d.ts +4 -2
  210. package/types/button/index.d.ts +2 -1
  211. package/types/button/src/button-group.component.d.ts +5 -3
  212. package/types/button/src/button.component.d.ts +11 -3
  213. package/types/button/src/button.props.d.ts +6 -0
  214. package/types/button-edit/index.d.ts +2 -0
  215. package/types/button-edit/src/button-edit.component.d.ts +6 -0
  216. package/types/button-edit/src/button-edit.props.d.ts +5 -119
  217. package/types/button-edit/src/components/button-group.component.d.ts +3 -0
  218. package/types/button-edit/src/components/popup-container.component.d.ts +4 -0
  219. package/types/button-edit/src/components/text-edit.component.d.ts +4 -0
  220. package/types/button-edit/src/composition/types.d.ts +15 -1
  221. package/types/button-edit/src/composition/use-button.d.ts +2 -2
  222. package/types/button-edit/src/composition/use-clear.d.ts +2 -2
  223. package/types/button-edit/src/composition/use-popup.d.ts +4 -0
  224. package/types/button-edit/src/composition/use-text-box.d.ts +2 -2
  225. package/types/button-edit/src/schema/schema-mapper.d.ts +2 -0
  226. package/types/{data-grid/src/composition/use-fit-column.d.ts → calculator/index.d.ts} +8 -5
  227. package/types/calculator/src/calculator.component.d.ts +8 -0
  228. package/types/calculator/src/calculator.props.d.ts +23 -0
  229. package/types/calculator/src/composition/use-calculator.d.ts +26 -0
  230. package/types/calendar/index.d.ts +21 -0
  231. package/types/calendar/src/calendar.props.d.ts +26 -0
  232. package/types/calendar/src/components/day/day-view.props.d.ts +34 -0
  233. package/types/calendar/src/components/header/header.props.d.ts +24 -0
  234. package/types/calendar/src/components/month/month-view.props.d.ts +69 -0
  235. package/types/calendar/src/components/week/week-view.component.d.ts +106 -0
  236. package/types/calendar/src/components/week/week-view.props.d.ts +51 -0
  237. package/types/calendar/src/composition/types.d.ts +57 -0
  238. package/types/calendar/src/composition/use-calendar.d.ts +2 -0
  239. package/types/calendar/src/composition/use-compare.d.ts +2 -0
  240. package/types/calendar/src/composition/use-date.d.ts +2 -0
  241. package/types/calendar/src/composition/use-event.d.ts +30 -0
  242. package/types/calendar/src/composition/use-month.d.ts +2 -0
  243. package/types/calendar/src/types/calendar.d.ts +13 -0
  244. package/types/calendar/src/types/common.d.ts +32 -0
  245. package/types/calendar/src/types/month-view.d.ts +23 -0
  246. package/types/calendar/src/types/month.d.ts +20 -0
  247. package/types/calendar/src/types/schedule.d.ts +35 -0
  248. package/types/capsule/index.d.ts +8 -0
  249. package/types/capsule/src/capsule.props.d.ts +67 -0
  250. package/types/checkbox/index.d.ts +1 -0
  251. package/types/checkbox/src/checkbox-group.component.d.ts +4 -146
  252. package/types/checkbox/src/checkbox-group.props.d.ts +2 -106
  253. package/types/checkbox/src/composition/types.d.ts +3 -3
  254. package/types/checkbox/src/schema/schema-mapper.d.ts +2 -0
  255. package/types/{combo-list/src/composition → color-picker}/index.d.ts +7 -3
  256. package/types/color-picker/src/color-picker.props.d.ts +62 -0
  257. package/types/color-picker/src/composition/class/base-color.class.d.ts +3 -0
  258. package/types/color-picker/src/composition/class/cmyk.class.d.ts +21 -0
  259. package/types/color-picker/src/composition/class/colors-table.class.d.ts +154 -0
  260. package/types/color-picker/src/composition/class/control.class.d.ts +47 -0
  261. package/types/color-picker/src/composition/class/helper.functions.d.ts +4 -0
  262. package/types/color-picker/src/composition/class/hsla.class.d.ts +21 -0
  263. package/types/color-picker/src/composition/class/hsva.class.d.ts +21 -0
  264. package/types/color-picker/src/composition/class/rgba.class.d.ts +21 -0
  265. package/types/color-picker/src/composition/component/alpha.d.ts +34 -0
  266. package/types/color-picker/src/composition/component/hue.d.ts +40 -0
  267. package/types/color-picker/src/composition/component/preset.d.ts +43 -0
  268. package/types/color-picker/src/composition/component/props/alpha.props.d.ts +16 -0
  269. package/types/color-picker/src/composition/component/props/hue.props.d.ts +19 -0
  270. package/types/color-picker/src/composition/component/props/preset.props.d.ts +20 -0
  271. package/types/color-picker/src/composition/component/props/sv-panel.props.d.ts +20 -0
  272. package/types/color-picker/src/composition/component/sv-panel.d.ts +43 -0
  273. package/types/combo-list/index.d.ts +2 -2
  274. package/types/combo-list/src/combo-list.props.d.ts +32 -263
  275. package/types/combo-list/src/components/list-container.props.d.ts +54 -0
  276. package/types/combo-list/src/composition/types.d.ts +10 -0
  277. package/types/combo-list/src/composition/use-data-source.d.ts +3 -0
  278. package/types/combo-list/src/designer/combo-list.design.component.d.ts +6 -0
  279. package/types/combo-list/src/schema/schema-mapper.d.ts +2 -0
  280. package/types/component/index.d.ts +26 -0
  281. package/types/component/src/component.props.d.ts +4 -0
  282. package/types/component/src/designer/types.d.ts +10 -0
  283. package/types/component/src/designer/use-designer-rules.d.ts +2 -0
  284. package/types/component/src/schema/schema-mapper.d.ts +2 -0
  285. package/types/{date-picker → condition}/index.d.ts +4 -8
  286. package/types/condition/src/composition/condition-value/checkbox-value.d.ts +13 -0
  287. package/types/condition/src/composition/condition-value/combo-lookup-value.d.ts +19 -0
  288. package/types/condition/src/composition/condition-value/date-picker-value.d.ts +25 -0
  289. package/types/condition/src/composition/condition-value/date-range-value.d.ts +18 -0
  290. package/types/condition/src/composition/condition-value/datetime-picker-value.d.ts +13 -0
  291. package/types/condition/src/composition/condition-value/dropdown-value.d.ts +18 -0
  292. package/types/condition/src/composition/condition-value/input-group-value.d.ts +21 -0
  293. package/types/condition/src/composition/condition-value/lookup-value.d.ts +21 -0
  294. package/types/condition/src/composition/condition-value/month-picker-value.d.ts +15 -0
  295. package/types/condition/src/composition/condition-value/month-range-value.d.ts +18 -0
  296. package/types/condition/src/composition/condition-value/number-range-value.d.ts +21 -0
  297. package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +13 -0
  298. package/types/condition/src/composition/condition-value/radio-group-value.d.ts +13 -0
  299. package/types/condition/src/composition/condition-value/text-value.d.ts +13 -0
  300. package/types/condition/src/composition/condition-value/types.d.ts +9 -0
  301. package/types/condition/src/composition/types.d.ts +41 -0
  302. package/types/condition/src/composition/use-compare.d.ts +40 -0
  303. package/types/condition/src/composition/use-condition-value.d.ts +2 -0
  304. package/types/condition/src/composition/use-condition.d.ts +2 -0
  305. package/types/condition/src/composition/use-field-config.d.ts +4 -0
  306. package/types/condition/src/composition/use-selection.d.ts +4 -0
  307. package/types/condition/src/condition.props.d.ts +58 -0
  308. package/types/condition/src/types.d.ts +144 -0
  309. package/types/{number-spinner/src/composition/use-data.d.ts → content-container/index.d.ts} +11 -4
  310. package/types/content-container/src/content-container.props.d.ts +4 -0
  311. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -0
  312. package/types/content-container/src/schema/schema-mapper.d.ts +2 -0
  313. package/types/data-grid/index.d.ts +3 -0
  314. package/types/data-grid/src/components/data/data-area.component.d.ts +1 -1
  315. package/types/data-grid/src/components/editors/commands.component.d.ts +18 -0
  316. package/types/data-grid/src/components/editors/date-picker.component.d.ts +18 -2
  317. package/types/data-grid/src/components/editors/text-area-editor.component.d.ts +3 -2
  318. package/types/data-grid/src/components/editors/text-editor.component.d.ts +3 -2
  319. package/types/data-grid/src/components/filter/boolean-filter-editor.component.d.ts +2 -0
  320. package/types/data-grid/src/components/filter/column-filter-container.component.d.ts +19 -0
  321. package/types/data-grid/src/components/filter/date-filter-editor.component.d.ts +2 -0
  322. package/types/data-grid/src/components/filter/enum-filter-editor.component.d.ts +3 -0
  323. package/types/data-grid/src/components/filter/list-filter-editor.component.d.ts +2 -0
  324. package/types/data-grid/src/components/filter/numeric-filter-editor.component.d.ts +2 -0
  325. package/types/data-grid/src/components/filter/text-filter-editor.component.d.ts +3 -0
  326. package/types/data-grid/src/components/group-panel/group-panel.component.d.ts +5 -0
  327. package/types/data-grid/src/components/header/data-grid-header-handler.component.d.ts +21 -0
  328. package/types/data-grid/src/components/header/data-grid-header.component.d.ts +2 -2
  329. package/types/data-grid/src/components/pagination/data-grid-pagination.component.d.ts +3 -3
  330. package/types/data-grid/src/components/scrollbar/horizontal-scrollbar.component.d.ts +1 -1
  331. package/types/data-grid/src/components/scrollbar/vertical-scrollbar.component.d.ts +1 -1
  332. package/types/data-grid/src/components/settings/data-grid-settings-icon.component.d.ts +21 -0
  333. package/types/data-grid/src/components/summary/data-grid-summary.component.d.ts +1 -1
  334. package/types/data-grid/src/composition/types.d.ts +137 -11
  335. package/types/data-grid/src/composition/use-column-filter.d.ts +3 -0
  336. package/types/data-grid/src/composition/use-column.d.ts +3 -0
  337. package/types/data-grid/src/composition/use-command-column.d.ts +3 -0
  338. package/types/data-grid/src/composition/use-data-view.d.ts +13 -3
  339. package/types/data-grid/src/composition/use-drag-column.d.ts +4 -0
  340. package/types/data-grid/src/composition/use-filter-history.d.ts +2 -0
  341. package/types/data-grid/src/composition/use-row.d.ts +18 -2
  342. package/types/data-grid/src/composition/use-selection.d.ts +3 -0
  343. package/types/data-grid/src/composition/use-sort.d.ts +3 -0
  344. package/types/data-grid/src/composition/use-virtual-scroll.d.ts +1 -1
  345. package/types/data-grid/src/composition/use-visual-data-bound.d.ts +2 -0
  346. package/types/data-grid/src/composition/use-visual-data-cell.d.ts +3 -0
  347. package/types/data-grid/src/composition/use-visual-data-row.d.ts +3 -0
  348. package/types/data-grid/src/composition/use-visual-data.d.ts +2 -2
  349. package/types/data-grid/src/composition/use-visual-summary-row.d.ts +3 -0
  350. package/types/data-grid/src/data-grid.props.d.ts +23 -161
  351. package/types/data-grid/src/schema/schema-mapper.d.ts +2 -0
  352. package/types/date-picker/src/components/calendar/calendar.component.d.ts +8 -6
  353. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +6 -4
  354. package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +15 -13
  355. package/types/date-picker/src/components/month/month.component.d.ts +7 -5
  356. package/types/date-picker/src/components/year/year.component.d.ts +6 -4
  357. package/types/date-picker/src/date-picker.component.d.ts +6 -0
  358. package/types/date-picker/src/date-picker.props.d.ts +2 -151
  359. package/types/date-picker/src/designer/date-picker.design.component.d.ts +6 -0
  360. package/types/date-picker/src/schema/schema-mapper.d.ts +2 -0
  361. package/types/designer-canvas/index.d.ts +8 -0
  362. package/types/designer-canvas/src/components/designer-item.props.d.ts +3 -0
  363. package/types/designer-canvas/src/components/designer-placeholder.props.d.ts +7 -0
  364. package/types/designer-canvas/src/components/maps.d.ts +3 -0
  365. package/types/designer-canvas/src/components/toolbox.props.d.ts +11 -0
  366. package/types/designer-canvas/src/composition/types.d.ts +27 -0
  367. package/types/designer-canvas/src/designer-canvas.props.d.ts +3 -0
  368. package/types/designer-canvas/src/types.d.ts +40 -0
  369. package/types/discussion-editor/discussion-editor.component.d.ts +121 -0
  370. package/types/discussion-editor/discussion-editor.props.d.ts +69 -0
  371. package/types/discussion-editor/index.d.ts +23 -0
  372. package/types/discussion-editor/src/composition/use-discussion-editor.d.ts +15 -0
  373. package/types/discussion-editor/src/types/interface.d.ts +22 -0
  374. package/types/discussion-list/discussion-list.component.d.ts +70 -0
  375. package/types/discussion-list/discussion-list.props.d.ts +52 -0
  376. package/types/discussion-list/index.d.ts +23 -0
  377. package/types/dropdown/index.d.ts +9 -0
  378. package/types/dropdown/src/composition/function/use-dropdown.d.ts +26 -0
  379. package/types/dropdown/src/composition/props/dropdown.item.props.d.ts +46 -0
  380. package/types/dropdown/src/composition/props/dropdown.props.d.ts +99 -0
  381. package/types/dropdown/src/dropdown.component.d.ts +179 -0
  382. package/types/dropdown/src/dropdown.item.component.d.ts +76 -0
  383. package/types/dropdown/src/types.d.ts +46 -0
  384. package/types/dynamic-form/index.d.ts +14 -0
  385. package/types/dynamic-form/src/component/dynamic-form-group/dynamic-form-group.props.d.ts +4 -0
  386. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +15 -0
  387. package/types/dynamic-form/src/composition/types.d.ts +5 -0
  388. package/types/dynamic-form/src/dynamic-form.props.d.ts +3 -0
  389. package/types/dynamic-form/src/schema/schema-mapper.d.ts +2 -0
  390. package/types/dynamic-form/src/types.d.ts +17 -0
  391. package/types/dynamic-resolver/index.d.ts +3 -0
  392. package/types/dynamic-resolver/src/common/appearance-resolver.d.ts +6 -0
  393. package/types/dynamic-resolver/src/props-resolver.d.ts +2 -0
  394. package/types/dynamic-resolver/src/schema-resolver.d.ts +5 -0
  395. package/types/dynamic-resolver/src/types.d.ts +1 -0
  396. package/types/dynamic-view/index.d.ts +8 -0
  397. package/types/dynamic-view/src/components/maps.d.ts +4 -0
  398. package/types/dynamic-view/src/dynamic-view.props.d.ts +15 -0
  399. package/types/filter-bar/index.d.ts +7 -0
  400. package/types/filter-bar/src/components/ellipsis-button.component.d.ts +3 -0
  401. package/types/filter-bar/src/components/filter-item.component.d.ts +5 -0
  402. package/types/filter-bar/src/components/toolbar-component.d.ts +4 -0
  403. package/types/filter-bar/src/composition/types.d.ts +14 -0
  404. package/types/filter-bar/src/composition/use-filter-items.d.ts +4 -0
  405. package/types/filter-bar/src/filter-bar.props.d.ts +53 -0
  406. package/types/filter-bar/src/types.d.ts +9 -0
  407. package/types/image-cropper/index.d.ts +23 -0
  408. package/types/image-cropper/src/composition/type.d.ts +44 -0
  409. package/types/image-cropper/src/composition/use-check-aspect-ratio.d.ts +2 -0
  410. package/types/image-cropper/src/composition/use-image-cropper.d.ts +20 -0
  411. package/types/image-cropper/src/image-cropper.component.d.ts +248 -0
  412. package/types/image-cropper/src/image-cropper.props.d.ts +153 -0
  413. package/types/index.d.ts +5 -0
  414. package/types/input-group/index.d.ts +25 -0
  415. package/types/input-group/src/components/appended-button.component.d.ts +4 -0
  416. package/types/input-group/src/components/text-edit.component.d.ts +4 -0
  417. package/types/input-group/src/composition/types.d.ts +37 -0
  418. package/types/input-group/src/composition/use-appended-button.d.ts +4 -0
  419. package/types/input-group/src/composition/use-clear.d.ts +4 -0
  420. package/types/input-group/src/composition/use-password.d.ts +4 -0
  421. package/types/input-group/src/composition/use-text-box.d.ts +4 -0
  422. package/types/input-group/src/input-group.props.d.ts +4 -0
  423. package/types/input-group/src/schema/schema-mapper.d.ts +2 -0
  424. package/types/list-nav/index.d.ts +23 -0
  425. package/types/list-nav/src/list-nav.component.d.ts +61 -0
  426. package/types/list-nav/src/list-nav.props.d.ts +51 -0
  427. package/types/list-view/src/components/header/content-header.component.d.ts +6 -0
  428. package/types/list-view/src/components/header/search-header.component.d.ts +6 -0
  429. package/types/list-view/src/components/list-view-checkbox.props.d.ts +7 -0
  430. package/types/list-view/src/composition/types.d.ts +40 -0
  431. package/types/list-view/src/composition/use-data-view.d.ts +4 -0
  432. package/types/list-view/src/composition/use-draggable.d.ts +4 -0
  433. package/types/list-view/src/composition/use-hover.d.ts +2 -0
  434. package/types/list-view/src/composition/use-item.d.ts +4 -0
  435. package/types/list-view/src/composition/use-remove.d.ts +4 -0
  436. package/types/list-view/src/composition/use-search.d.ts +5 -0
  437. package/types/list-view/src/composition/use-selection.d.ts +4 -0
  438. package/types/list-view/src/list-view.component.d.ts +203 -0
  439. package/types/list-view/src/list-view.props.d.ts +76 -7
  440. package/types/loading/index.d.ts +23 -0
  441. package/types/loading/src/composition/types.d.ts +19 -0
  442. package/types/loading/src/loading.component.d.ts +43 -0
  443. package/types/loading/src/loading.props.d.ts +35 -0
  444. package/types/loading/src/loading.service.d.ts +4 -0
  445. package/types/locale/src/lib/locale.service.d.ts +26 -0
  446. package/types/locale/src/lib/locales/en-us/avatar.d.ts +7 -0
  447. package/types/locale/src/lib/locales/en-us/batch-edit-dialog.d.ts +15 -0
  448. package/types/locale/src/lib/locales/en-us/collapse.d.ts +4 -0
  449. package/types/locale/src/lib/locales/en-us/combo.d.ts +4 -0
  450. package/types/locale/src/lib/locales/en-us/datagrid.d.ts +103 -0
  451. package/types/locale/src/lib/locales/en-us/discussion-group.d.ts +25 -0
  452. package/types/locale/src/lib/locales/en-us/filter-editor.d.ts +50 -0
  453. package/types/locale/src/lib/locales/en-us/filter-panel.d.ts +25 -0
  454. package/types/locale/src/lib/locales/en-us/footer.d.ts +4 -0
  455. package/types/locale/src/lib/locales/en-us/index.d.ts +568 -0
  456. package/types/locale/src/lib/locales/en-us/language-label.d.ts +8 -0
  457. package/types/locale/src/lib/locales/en-us/list-filter.d.ts +6 -0
  458. package/types/locale/src/lib/locales/en-us/list-view.d.ts +3 -0
  459. package/types/locale/src/lib/locales/en-us/loading.d.ts +3 -0
  460. package/types/locale/src/lib/locales/en-us/lookup-config.d.ts +38 -0
  461. package/types/locale/src/lib/locales/en-us/lookup.d.ts +48 -0
  462. package/types/locale/src/lib/locales/en-us/messager.d.ts +28 -0
  463. package/types/locale/src/lib/locales/en-us/multi-select.d.ts +15 -0
  464. package/types/locale/src/lib/locales/en-us/notify.d.ts +3 -0
  465. package/types/locale/src/lib/locales/en-us/numeric.d.ts +7 -0
  466. package/types/locale/src/lib/locales/en-us/page-walker.d.ts +6 -0
  467. package/types/locale/src/lib/locales/en-us/pagination.d.ts +17 -0
  468. package/types/locale/src/lib/locales/en-us/progress-step.d.ts +3 -0
  469. package/types/locale/src/lib/locales/en-us/query-condition.d.ts +33 -0
  470. package/types/locale/src/lib/locales/en-us/query-solution.d.ts +41 -0
  471. package/types/locale/src/lib/locales/en-us/response-toolbar.d.ts +3 -0
  472. package/types/locale/src/lib/locales/en-us/scrollspy.d.ts +3 -0
  473. package/types/locale/src/lib/locales/en-us/section.d.ts +4 -0
  474. package/types/locale/src/lib/locales/en-us/sidebar.d.ts +3 -0
  475. package/types/locale/src/lib/locales/en-us/sort-editor.d.ts +15 -0
  476. package/types/locale/src/lib/locales/en-us/tabs.d.ts +3 -0
  477. package/types/locale/src/lib/locales/en-us/tag.d.ts +4 -0
  478. package/types/locale/src/lib/locales/en-us/text.d.ts +10 -0
  479. package/types/locale/src/lib/locales/en-us/treetable.d.ts +8 -0
  480. package/types/locale/src/lib/locales/en-us/verify-detail.d.ts +5 -0
  481. package/types/locale/src/lib/locales/index.d.ts +1712 -0
  482. package/types/locale/src/lib/locales/zh-CHT/avatar.d.ts +7 -0
  483. package/types/locale/src/lib/locales/zh-CHT/batch-edit-dialog.d.ts +15 -0
  484. package/types/locale/src/lib/locales/zh-CHT/collapse.d.ts +4 -0
  485. package/types/locale/src/lib/locales/zh-CHT/combo.d.ts +4 -0
  486. package/types/locale/src/lib/locales/zh-CHT/datagrid.d.ts +103 -0
  487. package/types/locale/src/lib/locales/zh-CHT/discussion-group.d.ts +25 -0
  488. package/types/locale/src/lib/locales/zh-CHT/filter-editor.d.ts +50 -0
  489. package/types/locale/src/lib/locales/zh-CHT/filter-panel.d.ts +25 -0
  490. package/types/locale/src/lib/locales/zh-CHT/footer.d.ts +4 -0
  491. package/types/locale/src/lib/locales/zh-CHT/index.d.ts +568 -0
  492. package/types/locale/src/lib/locales/zh-CHT/language-label.d.ts +8 -0
  493. package/types/locale/src/lib/locales/zh-CHT/list-filter.d.ts +6 -0
  494. package/types/locale/src/lib/locales/zh-CHT/list-view.d.ts +3 -0
  495. package/types/locale/src/lib/locales/zh-CHT/loading.d.ts +3 -0
  496. package/types/locale/src/lib/locales/zh-CHT/lookup-config.d.ts +38 -0
  497. package/types/locale/src/lib/locales/zh-CHT/lookup.d.ts +48 -0
  498. package/types/locale/src/lib/locales/zh-CHT/messager.d.ts +28 -0
  499. package/types/locale/src/lib/locales/zh-CHT/multi-select.d.ts +15 -0
  500. package/types/locale/src/lib/locales/zh-CHT/notify.d.ts +3 -0
  501. package/types/locale/src/lib/locales/zh-CHT/numeric.d.ts +7 -0
  502. package/types/locale/src/lib/locales/zh-CHT/page-walker.d.ts +6 -0
  503. package/types/locale/src/lib/locales/zh-CHT/pagination.d.ts +17 -0
  504. package/types/locale/src/lib/locales/zh-CHT/progress-step.d.ts +3 -0
  505. package/types/locale/src/lib/locales/zh-CHT/query-condition.d.ts +33 -0
  506. package/types/locale/src/lib/locales/zh-CHT/query-solution.d.ts +41 -0
  507. package/types/locale/src/lib/locales/zh-CHT/response-toolbar.d.ts +3 -0
  508. package/types/locale/src/lib/locales/zh-CHT/scrollspy.d.ts +3 -0
  509. package/types/locale/src/lib/locales/zh-CHT/section.d.ts +4 -0
  510. package/types/locale/src/lib/locales/zh-CHT/sidebar.d.ts +3 -0
  511. package/types/locale/src/lib/locales/zh-CHT/sort-editor.d.ts +15 -0
  512. package/types/locale/src/lib/locales/zh-CHT/tabs.d.ts +3 -0
  513. package/types/locale/src/lib/locales/zh-CHT/tag.d.ts +4 -0
  514. package/types/locale/src/lib/locales/zh-CHT/text.d.ts +10 -0
  515. package/types/locale/src/lib/locales/zh-CHT/treetable.d.ts +8 -0
  516. package/types/locale/src/lib/locales/zh-CHT/verify-detail.d.ts +5 -0
  517. package/types/locale/src/lib/locales/zh-cn/avatar.d.ts +7 -0
  518. package/types/locale/src/lib/locales/zh-cn/batch-edit-dialog.d.ts +15 -0
  519. package/types/locale/src/lib/locales/zh-cn/collapse.d.ts +4 -0
  520. package/types/locale/src/lib/locales/zh-cn/combo.d.ts +4 -0
  521. package/types/locale/src/lib/locales/zh-cn/datagrid.d.ts +105 -0
  522. package/types/locale/src/lib/locales/zh-cn/discussion-group.d.ts +25 -0
  523. package/types/locale/src/lib/locales/zh-cn/filter-editor.d.ts +50 -0
  524. package/types/locale/src/lib/locales/zh-cn/filter-panel.d.ts +25 -0
  525. package/types/locale/src/lib/locales/zh-cn/footer.d.ts +4 -0
  526. package/types/locale/src/lib/locales/zh-cn/index.d.ts +574 -0
  527. package/types/locale/src/lib/locales/zh-cn/language-label.d.ts +8 -0
  528. package/types/locale/src/lib/locales/zh-cn/list-filter.d.ts +6 -0
  529. package/types/locale/src/lib/locales/zh-cn/list-view.d.ts +3 -0
  530. package/types/locale/src/lib/locales/zh-cn/loading.d.ts +3 -0
  531. package/types/locale/src/lib/locales/zh-cn/lookup-config.d.ts +38 -0
  532. package/types/locale/src/lib/locales/zh-cn/lookup.d.ts +48 -0
  533. package/types/locale/src/lib/locales/zh-cn/messager.d.ts +32 -0
  534. package/types/locale/src/lib/locales/zh-cn/multi-select.d.ts +15 -0
  535. package/types/locale/src/lib/locales/zh-cn/notify.d.ts +3 -0
  536. package/types/locale/src/lib/locales/zh-cn/numeric.d.ts +7 -0
  537. package/types/locale/src/lib/locales/zh-cn/page-walker.d.ts +6 -0
  538. package/types/locale/src/lib/locales/zh-cn/pagination.d.ts +17 -0
  539. package/types/locale/src/lib/locales/zh-cn/progress-step.d.ts +3 -0
  540. package/types/locale/src/lib/locales/zh-cn/query-condition.d.ts +33 -0
  541. package/types/locale/src/lib/locales/zh-cn/query-solution.d.ts +41 -0
  542. package/types/locale/src/lib/locales/zh-cn/response-toolbar.d.ts +3 -0
  543. package/types/locale/src/lib/locales/zh-cn/scrollspy.d.ts +3 -0
  544. package/types/locale/src/lib/locales/zh-cn/section.d.ts +4 -0
  545. package/types/locale/src/lib/locales/zh-cn/sidebar.d.ts +3 -0
  546. package/types/locale/src/lib/locales/zh-cn/sort-editor.d.ts +15 -0
  547. package/types/locale/src/lib/locales/zh-cn/tabs.d.ts +3 -0
  548. package/types/locale/src/lib/locales/zh-cn/tag.d.ts +4 -0
  549. package/types/locale/src/lib/locales/zh-cn/text.d.ts +10 -0
  550. package/types/locale/src/lib/locales/zh-cn/treetable.d.ts +8 -0
  551. package/types/locale/src/lib/locales/zh-cn/verify-detail.d.ts +5 -0
  552. package/types/message-box/src/components/footer/footer.component.d.ts +4 -0
  553. package/types/message-box/src/components/message-content/reactive-content.component.d.ts +3 -0
  554. package/types/message-box/src/components/message-content/static-content.component.d.ts +3 -0
  555. package/types/message-box/src/components/message-detail/exception-message.component.d.ts +3 -0
  556. package/types/message-box/src/components/message-detail/static-message.component.d.ts +2 -0
  557. package/types/message-box/src/components/reactive-editor/textarea.component.d.ts +3 -0
  558. package/types/message-box/src/composition/types.d.ts +9 -0
  559. package/types/message-box/src/composition/use-copy.d.ts +1 -17
  560. package/types/message-box/src/composition/use-editor.d.ts +4 -0
  561. package/types/message-box/src/composition/use-feedback.d.ts +2 -0
  562. package/types/message-box/src/message-box.component.d.ts +21 -23
  563. package/types/message-box/src/message-box.props.d.ts +8 -6
  564. package/types/modal/index.d.ts +2 -1
  565. package/types/modal/src/modal.component.d.ts +7 -5
  566. package/types/modal/src/modal.service.d.ts +17 -0
  567. package/types/{data-grid/src/composition/use-edit.d.ts → nav/index.d.ts} +8 -3
  568. package/types/nav/src/composition/types.d.ts +6 -0
  569. package/types/nav/src/nav.component.d.ts +87 -0
  570. package/types/nav/src/nav.props.d.ts +62 -0
  571. package/types/notify/src/components/toast.component.d.ts +4 -2
  572. package/types/notify/src/notify.component.d.ts +130 -0
  573. package/types/notify/src/notify.service.d.ts +4 -0
  574. package/types/number-range/index.d.ts +1 -0
  575. package/types/number-range/src/components/spinner.component.d.ts +4 -0
  576. package/types/number-range/src/components/text-box.component.d.ts +4 -0
  577. package/types/number-range/src/composition/types.d.ts +31 -29
  578. package/types/number-range/src/composition/use-format.d.ts +4 -0
  579. package/types/number-range/src/composition/use-number.d.ts +4 -0
  580. package/types/number-range/src/composition/use-spinner.d.ts +4 -0
  581. package/types/number-range/src/composition/use-text-box.d.ts +4 -0
  582. package/types/number-range/src/number-range.component.d.ts +4 -245
  583. package/types/number-range/src/number-range.props.d.ts +3 -200
  584. package/types/number-range/src/schema/schema-mapper.d.ts +2 -0
  585. package/types/number-spinner/index.d.ts +2 -0
  586. package/types/number-spinner/src/components/spinner.component.d.ts +4 -0
  587. package/types/number-spinner/src/components/text-box.component.d.ts +4 -0
  588. package/types/number-spinner/src/composition/types.d.ts +33 -28
  589. package/types/number-spinner/src/composition/use-format.d.ts +4 -0
  590. package/types/number-spinner/src/composition/use-number.d.ts +4 -0
  591. package/types/number-spinner/src/composition/use-spinner.d.ts +4 -0
  592. package/types/number-spinner/src/composition/use-text-box.d.ts +4 -0
  593. package/types/number-spinner/src/designer/number-spinner.component.d.ts +6 -0
  594. package/types/number-spinner/src/number-spinner.component.d.ts +4 -200
  595. package/types/number-spinner/src/number-spinner.props.d.ts +3 -165
  596. package/types/number-spinner/src/schema/schema-mapper.d.ts +2 -0
  597. package/types/order/index.d.ts +8 -0
  598. package/types/order/src/order.props.d.ts +44 -0
  599. package/types/overlay/src/overlay.component.d.ts +10 -2
  600. package/types/overlay/src/overlay.props.d.ts +4 -1
  601. package/types/overlay/src/overlay.service.d.ts +16 -0
  602. package/types/page-footer/index.d.ts +8 -0
  603. package/types/page-footer/src/page-footer.props.d.ts +40 -0
  604. package/types/page-header/index.d.ts +10 -0
  605. package/types/page-header/src/page-header.props.d.ts +4 -0
  606. package/types/page-header/src/schema/schema-mapper.d.ts +2 -0
  607. package/types/pagination/src/components/pages/page-list.component.d.ts +1 -1
  608. package/types/pagination/src/pagination.components.d.ts +5 -3
  609. package/types/popover/src/composition/types.d.ts +24 -0
  610. package/types/popover/src/composition/use-host.d.ts +3 -0
  611. package/types/popover/src/composition/use-popup.d.ts +4 -0
  612. package/types/popover/src/composition/use-position.d.ts +4 -0
  613. package/types/popover/src/composition/use-resize.d.ts +4 -0
  614. package/types/popover/src/popover.component.d.ts +82 -2
  615. package/types/popover/src/popover.props.d.ts +37 -1
  616. package/types/propress/index.d.ts +8 -0
  617. package/types/propress/src/progress.props.d.ts +49 -0
  618. package/types/query-solution/index.d.ts +25 -0
  619. package/types/query-solution/src/designer/query-solution.design.component.d.ts +6 -0
  620. package/types/query-solution/src/query-solution.component.d.ts +6 -0
  621. package/types/query-solution/src/query-solution.d.ts +40 -0
  622. package/types/query-solution/src/query-solution.props.d.ts +19 -0
  623. package/types/query-solution/src/schema/preset-resolver.d.ts +5 -0
  624. package/types/query-solution/src/schema/schema-mapper.d.ts +2 -0
  625. package/types/radio-group/index.d.ts +1 -0
  626. package/types/radio-group/src/radio-group.component.d.ts +4 -89
  627. package/types/radio-group/src/radio-group.props.d.ts +2 -70
  628. package/types/radio-group/src/schema/schema-mapper.d.ts +2 -0
  629. package/types/{combo-list/src/composition/use-option.d.ts → rate/index.d.ts} +8 -4
  630. package/types/rate/src/rate.component.d.ts +124 -0
  631. package/types/rate/src/rate.props.d.ts +86 -0
  632. package/types/response-toolbar/index.d.ts +10 -0
  633. package/types/response-toolbar/src/components/dropdown/toolbar-dropdown-menu.component.d.ts +5 -0
  634. package/types/response-toolbar/src/components/dropdown/toolbar-dropdown.component.d.ts +7 -0
  635. package/types/response-toolbar/src/composition/types.d.ts +9 -0
  636. package/types/response-toolbar/src/composition/use-icon.d.ts +2 -0
  637. package/types/response-toolbar/src/composition/use-toolbar-item.d.ts +2 -0
  638. package/types/response-toolbar/src/response-toolbar.props.d.ts +26 -0
  639. package/types/response-toolbar/src/types/response-toolbar-dropdwon-item.d.ts +13 -0
  640. package/types/response-toolbar/src/types/response-toolbar-group.d.ts +19 -0
  641. package/types/response-toolbar/src/types/response-toolbar-item-base.d.ts +36 -0
  642. package/types/response-toolbar/src/types/response-toolbar-item.d.ts +4 -0
  643. package/types/search-box/index.d.ts +24 -0
  644. package/types/search-box/src/components/search-box-container.props.d.ts +21 -0
  645. package/types/search-box/src/schema/schema-mapper.d.ts +2 -0
  646. package/types/search-box/src/search-box.props.d.ts +4 -0
  647. package/types/section/index.d.ts +2 -0
  648. package/types/section/src/schema/schema-mapper.d.ts +2 -0
  649. package/types/section/src/section.component.d.ts +4 -185
  650. package/types/section/src/section.props.d.ts +3 -86
  651. package/types/splitter/index.d.ts +10 -0
  652. package/types/splitter/src/components/splitter-pane.props.d.ts +5 -0
  653. package/types/splitter/src/composition/types.d.ts +23 -0
  654. package/types/splitter/src/composition/use-resize-handle.d.ts +3 -0
  655. package/types/splitter/src/composition/use-resize-pane.d.ts +3 -0
  656. package/types/splitter/src/schema/splitter-pane-schema-mapper.d.ts +2 -0
  657. package/types/splitter/src/schema/splitter-schema-mapper.d.ts +2 -0
  658. package/types/splitter/src/splitter.props.d.ts +5 -0
  659. package/types/step/index.d.ts +8 -0
  660. package/types/step/src/step.props.d.ts +46 -0
  661. package/types/switch/index.d.ts +1 -0
  662. package/types/switch/src/schema/schema-mapper.d.ts +2 -0
  663. package/types/switch/src/switch.component.d.ts +4 -64
  664. package/types/switch/src/switch.props.d.ts +3 -35
  665. package/types/tabs/index.d.ts +2 -0
  666. package/types/tabs/src/components/more-pages-button.component.d.ts +5 -0
  667. package/types/tabs/src/components/tab-header-dropdown-menu.component.d.ts +5 -0
  668. package/types/tabs/src/components/tab-header-item.component.d.ts +4 -0
  669. package/types/tabs/src/components/tab-header.component.d.ts +4 -0
  670. package/types/tabs/src/components/tab-page.component.d.ts +4 -99
  671. package/types/tabs/src/components/tab-page.props.d.ts +3 -47
  672. package/types/tabs/src/composition/types.d.ts +36 -5
  673. package/types/tabs/src/composition/use-dropdown.d.ts +3 -0
  674. package/types/tabs/src/composition/use-nav.d.ts +4 -0
  675. package/types/tabs/src/composition/use-one-page.d.ts +4 -0
  676. package/types/tabs/src/composition/use-tabs.d.ts +3 -2
  677. package/types/tabs/src/schema/schema-mapper.d.ts +2 -0
  678. package/types/tabs/src/tabs.props.d.ts +5 -69
  679. package/types/tags/index.d.ts +8 -0
  680. package/types/tags/src/composition/types.d.ts +13 -0
  681. package/types/tags/src/composition/use-draggable.d.ts +4 -0
  682. package/types/tags/src/tags.props.d.ts +92 -0
  683. package/types/text/src/text.component.d.ts +4 -2
  684. package/types/time-picker/index.d.ts +11 -0
  685. package/types/time-picker/src/components/time-holder.d.ts +82 -0
  686. package/types/time-picker/src/components/time.props.d.ts +48 -0
  687. package/types/time-picker/src/components/utils/check.d.ts +1 -0
  688. package/types/time-picker/src/schema/schema-mapper.d.ts +2 -0
  689. package/types/time-picker/src/time-picker.props.d.ts +4 -0
  690. package/types/tooltip/src/composition/use-adjust-position.d.ts +15 -0
  691. package/types/tooltip/src/tooltip.component.d.ts +4 -2
  692. package/types/tooltip/src/tooltip.directive.d.ts +5 -0
  693. package/types/transfer/index.d.ts +8 -0
  694. package/types/transfer/src/transfer.props.d.ts +71 -0
  695. package/types/tree-view/index.d.ts +8 -0
  696. package/types/tree-view/src/components/data/control-tree-view.component.d.ts +108 -0
  697. package/types/tree-view/src/components/data/tree-area.component.d.ts +8 -0
  698. package/types/tree-view/src/composition/types.d.ts +97 -0
  699. package/types/tree-view/src/composition/use-auto-check-children-and-cascade.d.ts +4 -0
  700. package/types/tree-view/src/composition/use-tree-data-view.d.ts +21 -0
  701. package/types/tree-view/src/composition/use-tree-node-icon.d.ts +4 -0
  702. package/types/tree-view/src/composition/use-tree-node-lines.d.ts +3 -0
  703. package/types/tree-view/src/composition/use-visual-tree-node.d.ts +9 -0
  704. package/types/tree-view/src/control-tree-view.props.d.ts +58 -0
  705. package/types/tree-view/src/tree-view.component.d.ts +97 -0
  706. package/types/tree-view/src/tree-view.props.d.ts +54 -0
  707. package/types/uploader/index.d.ts +25 -0
  708. package/types/uploader/src/components/sub-component.props.d.ts +63 -0
  709. package/types/uploader/src/components/upload-progress.component.d.ts +41 -0
  710. package/types/uploader/src/composition/type.d.ts +135 -0
  711. package/types/uploader/src/service/get-service.d.ts +2 -0
  712. package/types/uploader/src/uploader.props.d.ts +156 -0
  713. package/types/verify-detail/index.d.ts +23 -0
  714. package/types/verify-detail/src/verify-detail.component.d.ts +70 -0
  715. package/types/verify-detail/src/verify-detail.props.d.ts +36 -0
  716. package/uploader/index.esm.js +1972 -0
  717. package/uploader/index.umd.js +17 -0
  718. package/uploader/package.json +8 -0
  719. package/uploader/style.css +1 -0
  720. package/verify-detail/index.esm.js +187 -0
  721. package/verify-detail/index.umd.js +1 -0
  722. package/verify-detail/package.json +8 -0
  723. package/verify-detail/style.css +1 -0
  724. package/types/combo-list/src/components/option.component.d.ts +0 -39
  725. package/types/combo-list/src/components/options.component.d.ts +0 -10
  726. package/types/combo-list/src/composition/use-combo-list.d.ts +0 -30
  727. package/types/combo-list/src/composition/use-options.d.ts +0 -2
  728. package/types/combo-list/src/composition/use-panel.d.ts +0 -8
  729. package/types/combo-list/src/const.d.ts +0 -40
  730. package/types/combo-list/src/types.d.ts +0 -186
  731. package/types/data-grid/src/data-grid.component.d.ts +0 -278
  732. package/types/list-view/src/components/list-view-checkbox.component.d.ts +0 -32
  733. package/types/number-range/src/composition/use-data.d.ts +0 -19
  734. package/types/number-range/src/composition/use-util.d.ts +0 -19
  735. package/types/number-spinner/src/composition/use-util.d.ts +0 -19
  736. package/types/tabs/src/tabs.component.d.ts +0 -149
@@ -1,418 +1,2189 @@
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 B, 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 = {
151
+ /**
152
+ * 组件标识
153
+ */
4
154
  id: { type: String },
5
- editable: { default: !1, type: Boolean },
155
+ /**
156
+ * 下拉数据源
157
+ */
158
+ data: { type: Array, default: [] },
159
+ /**
160
+ * 可选,展示文本
161
+ * 默认为空字符串
162
+ */
163
+ displayText: { type: String, default: "" },
164
+ /**
165
+ * 可选,是否禁用
166
+ * 默认为`false`
167
+ */
6
168
  disabled: { default: !1, type: Boolean },
7
- readonly: { default: !1, type: Boolean },
8
- maxLength: { type: Number },
9
- placeholder: { type: String },
10
- forcePlaceholder: { default: !1, type: Boolean },
169
+ /**
170
+ * 可选,下拉图标
171
+ * 默认为'<span class="f-icon f-icon-arrow-60-down"></span>'
172
+ */
173
+ dropDownIcon: { type: String, default: '<span class="f-icon f-icon-arrow-60-down"></span>' },
174
+ /**
175
+ * 可选,是否可编辑
176
+ * 默认`false`
177
+ */
178
+ editable: { default: !1, type: Boolean },
179
+ /**
180
+ * 可选,是否启用清空
181
+ * 默认启用
182
+ */
11
183
  enableClear: { default: !0, type: Boolean },
184
+ /**
185
+ * 可选,启用搜索
186
+ * 默认为`false`
187
+ */
188
+ enableSearch: { type: Boolean, default: !1 },
189
+ /**
190
+ * 可选,鼠标悬停时是否显示控件值
191
+ * 默认显示
192
+ */
12
193
  enableTitle: { default: !0, type: Boolean },
13
- viewType: { default: x.Text, type: String },
14
- mapFields: { type: Object },
15
- data: { type: Array },
194
+ /**
195
+ * 可选,强制显示占位符
196
+ * 默认`false`
197
+ */
198
+ forcePlaceholder: { default: !1, type: Boolean },
199
+ /**
200
+ * 可选,清空值时隐藏面板
201
+ * 默认`true`
202
+ */
203
+ hidePanelOnClear: { default: !0, type: Boolean },
204
+ /**
205
+ * 可选,数据源id字段
206
+ * 默认为`id`
207
+ */
16
208
  idField: { default: "id", type: String },
17
- valueField: { default: "id", type: String },
18
- textField: { default: "label", type: String },
209
+ /**
210
+ * 可选,字段映射
211
+ */
212
+ mapFields: { type: Object },
213
+ /**
214
+ * 可选,最大高度
215
+ * 默认`350`
216
+ */
217
+ maxHeight: { default: 350, type: Number },
218
+ /**
219
+ * 最大输入长度
220
+ */
221
+ maxLength: { type: Number },
222
+ /**
223
+ * 可选,是否支持多选
224
+ * 默认`false`
225
+ */
19
226
  multiSelect: { default: !1, type: Boolean },
227
+ /**
228
+ * 绑定值
229
+ */
230
+ modelValue: { type: String, default: "" },
231
+ /**
232
+ * 占位符
233
+ */
234
+ placeholder: { type: String },
235
+ /**
236
+ * 可选,下拉面板展示位置
237
+ * 默认为`auto`
238
+ */
239
+ placement: {
240
+ type: String,
241
+ default: "auto"
242
+ /* auto */
243
+ },
244
+ /**
245
+ * 可选,是否只读
246
+ * 默认为`false`
247
+ */
248
+ readonly: { default: !1, type: Boolean },
249
+ /**
250
+ * 远端数据源信息
251
+ */
20
252
  remote: { default: null, type: Object },
21
- maxHeight: { default: 350, type: Number },
253
+ /**
254
+ * 可选,是否支持远端过滤
255
+ * 默认`false`
256
+ */
22
257
  remoteSearch: { default: !1, type: Boolean },
23
- hidePanelOnClear: { default: !0, type: Boolean },
258
+ /**
259
+ * 可选,分隔符
260
+ * 默认`,`
261
+ */
24
262
  separator: { default: ",", type: String },
25
- displayText: { type: String, default: "" },
26
- modelValue: { type: [String, Number] },
27
- dropDownIcon: { type: String, default: '<span class="f-icon f-icon-arrow-60-down"></span>' },
263
+ /**
264
+ * tabIndex
265
+ */
28
266
  tabIndex: { type: Number, default: -1 },
267
+ /**
268
+ * 可选,数据源显示字段
269
+ * 默认为`name`
270
+ */
271
+ textField: { default: "name", type: String },
272
+ /**
273
+ * 可选,数据源值字段
274
+ * 默认为`id`
275
+ */
276
+ valueField: { default: "id", type: String },
277
+ /**
278
+ * 可选,下拉列表值展示方式
279
+ * 支持text | tag,即文本或标签,默认为`ViewType.Text`,即文本方式`text`
280
+ */
281
+ viewType: { default: "text", type: String }
282
+ }, ie = ge(ae, Ge, He), Je = {
283
+ dataSource: { type: Array, default: [] },
29
284
  enableSearch: { type: Boolean, default: !1 },
30
- placement: { type: String, default: O.auto }
31
- }, E = {
32
- value: { required: !0, type: [String, Number] },
33
- name: { required: !0, type: [String, Number] },
34
- disabled: { default: !1, type: Boolean },
35
- checked: { default: !1, type: Boolean }
36
- }, L = {
37
- isPanelVisible: { type: Boolean, default: !1 },
38
- position: { type: String, default: O.bottom }
39
- }, ee = {
40
- options: {
41
- type: Array
42
- }
43
- }, z = Symbol("fComboList"), A = Symbol("fComboListPanel");
44
- var j = /* @__PURE__ */ ((e) => (e.clear = "clear", e.update = "update:modelValue", e))(j || {}), H = /* @__PURE__ */ ((e) => (e.panelShow = "panelShow", e.panelHidden = "panelHidden", e))(H || {});
45
- function le(e, n) {
46
- const l = S(""), u = S(e.modelValue), t = S(!1), a = S();
47
- if (R([a], ([i]) => {
48
- if (e.modelValue) {
49
- const d = i.find((s) => s[e.valueField] === e.modelValue);
50
- d && (l.value = d[e.textField]);
51
- }
52
- }), e.remote) {
53
- const { url: i, method: d = "GET", headers: s = {}, body: y = null } = e.remote;
54
- fetch(i, { method: d, headers: s, body: y }).then((v) => {
55
- if (v.status === 200)
56
- return v.json();
57
- throw new Error(v.statusText);
58
- }).then((v) => {
59
- a.value = v;
60
- }).catch((v) => {
61
- console.error(v);
62
- });
63
- } else
64
- a.value = e.data;
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), f = a(e.multiSelectMode);
312
+ a(!0);
313
+ const { isDragging: r } = o, { activeIndex: d, focusedItemId: b, hoverIndex: m } = l, { clearSelection: v, selectedItems: P, toggleSelectItem: F } = n;
314
+ function x(C, j) {
315
+ const V = {
316
+ "f-list-view-group-item": !0,
317
+ "f-list-view-draggable-item": c.value,
318
+ "f-un-click": !!C.unClick,
319
+ "f-un-select": !!C[u.value],
320
+ "f-listview-active": C.__fv_index__ === d.value,
321
+ "f-listview-hover": !r.value && j === m.value,
322
+ moving: !!C.moving
323
+ };
324
+ return h.value.split(" ").reduce((z, D) => (z[D] = !0, z), V), V;
325
+ }
326
+ function y(C, j) {
327
+ return C[i.value] || "";
328
+ }
329
+ const S = B(() => !s.value);
330
+ function I(C, j) {
331
+ C.unClick || C[u.value] || (S.value && (b.value = C[i.value]), F(C, j));
332
+ }
333
+ const k = B(() => s.value && f.value === "OnCheckClearByClick"), E = B(() => !s.value || s.value && (f.value === "OnCheckAndClick" || f.value === "OnClick"));
334
+ function L(C, j, V) {
335
+ if (j.unClick || j[u.value]) {
336
+ C.preventDefault(), C.stopPropagation();
337
+ return;
338
+ }
339
+ b.value = j[i.value], d.value = V, k.value && v(), E.value && F(j, V), t.emit("clickItem", { data: P.value, index: V });
340
+ }
341
+ return {
342
+ getKey: y,
343
+ listViewItemClass: x,
344
+ onCheckItem: I,
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, (d) => {
353
+ u.value = a(i(d)).value;
354
+ });
355
+ const c = B(() => !n.value);
356
+ function h(d) {
357
+ return d[l.value] || "";
358
+ }
359
+ function s(d) {
360
+ return u.value.findIndex((m) => h(m) === h(d));
361
+ }
362
+ function f() {
363
+ u.value.forEach((d) => {
364
+ d.checked = !1;
365
+ }), u.value = [];
366
+ }
367
+ function r(d, b) {
368
+ c.value && f();
369
+ const m = s(d);
370
+ m > -1 ? (u.value.splice(m, 1), d.checked = !1) : (u.value.push(d), d.checked = !0), t.emit("selectionChange", u.value);
371
+ }
372
+ return { clearSelection: f, findIndexInSelectedItems: s, selectedItems: u, toggleSelectItem: r };
373
+ }
374
+ function et(e, t) {
65
375
  function o(i) {
66
- 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((r) => ({ textNode: r, text: (r.textContent || "").toLocaleLowerCase() })).map(({ textNode: r, text: d }) => {
385
+ const b = [];
386
+ let m = 0;
387
+ for (; m < d.length; ) {
388
+ const v = d.indexOf(u, m);
389
+ if (v === -1)
390
+ break;
391
+ b.push(v), m = v + u.length;
392
+ }
393
+ return b.map((v) => {
394
+ const P = new Range();
395
+ return P.setStart(r, v), P.setEnd(r, v + u.length), P;
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), f = a(e.multiSelect), r = a(e.disableField), {
447
+ onMouseenterItem: d,
448
+ onMouseoverItem: b,
449
+ onMouseoutItem: m
450
+ } = n, {
451
+ getKey: v,
452
+ listViewItemClass: P,
453
+ onCheckItem: F,
454
+ onClickItem: x
455
+ } = i, y = B(() => ({
456
+ margin: h.value === "small" ? "0.25rem 0" : "10px 0"
457
+ }));
458
+ function S(I, k, E) {
459
+ return I.checked = u.findIndexInSelectedItems(I) > -1, p("li", {
460
+ class: P(I, k),
461
+ id: v(I, k),
462
+ key: v(I, k),
463
+ onClick: (L) => x(L, I, k),
464
+ onMouseenter: (L) => d(L, I, k),
465
+ onMouseover: (L) => b(L, I, k),
466
+ onMouseout: (L) => m(L, I, k)
467
+ }, [f.value && p("div", {
468
+ class: "f-list-select",
469
+ onClick: (L) => L.stopPropagation()
470
+ }, [p(le, {
471
+ id: "list-" + v(I, k),
472
+ disabled: I[r.value] || I.unClick,
473
+ checked: I.checked,
474
+ onChange: (L) => F(I, k)
475
+ }, null)]), p("div", {
476
+ class: "f-list-content"
477
+ }, [p("div", {
478
+ style: y.value
479
+ }, [I[s.value]])])]);
480
+ }
481
+ return {
482
+ renderItem: S
483
+ };
484
+ }
485
+ function nt(e, t, o, l, n, i, u, c) {
486
+ const h = a(e.multiSelect), s = a(e.disableField), {
487
+ onMouseenterItem: f,
488
+ onMouseoverItem: r,
489
+ onMouseoutItem: d
490
+ } = n, {
491
+ getKey: b,
492
+ listViewItemClass: m,
493
+ onCheckItem: v,
494
+ onClickItem: P
495
+ } = i;
496
+ function F(y, S, I) {
497
+ return t.slots.content ? p(re, null, [t.slots.content && t.slots.content({
498
+ item: y,
499
+ index: S,
500
+ selectedItem: I
501
+ })]) : p("div", {
502
+ style: "margin: 10px 0;"
503
+ }, [y.name]);
504
+ }
505
+ function x(y, S, I) {
506
+ return p("li", {
507
+ class: m(y, S),
508
+ id: b(y, S),
509
+ key: b(y, S),
510
+ onClick: (k) => P(k, y, S),
511
+ onMouseenter: (k) => f(k, y, S),
512
+ onMouseover: (k) => r(k, y, S),
513
+ onMouseout: (k) => d(k, y, S)
514
+ }, [h.value && p("div", {
515
+ class: "f-list-select",
516
+ onClick: (k) => k.stopPropagation()
517
+ }, [p(le, {
518
+ id: "list-" + b(y, S),
519
+ disabled: y[s.value] || y.unClick,
520
+ checked: y.checked,
521
+ onChange: (k) => v(y, S)
522
+ }, null)]), p("div", {
523
+ class: "f-list-content"
524
+ }, [F(y, S, I)])]);
525
+ }
526
+ return {
527
+ renderItem: x
528
+ };
529
+ }
530
+ function ot(e, t, o, l, n, i, u, c) {
531
+ const h = a(e.multiSelect), s = a(e.disableField), {
532
+ onMouseenterItem: f,
533
+ onMouseoverItem: r,
534
+ onMouseoutItem: d
535
+ } = n, {
536
+ getKey: b,
537
+ listViewItemClass: m,
538
+ onCheckItem: v,
539
+ onClickItem: P
540
+ } = i, {
541
+ dragstart: F,
542
+ dragenter: x,
543
+ dragover: y,
544
+ dragend: S
545
+ } = l, {
546
+ removeItem: I
547
+ } = c, k = B(() => ({
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 C = L();
559
+ function j(V, R, z) {
560
+ return p("li", {
561
+ class: m(V, R),
562
+ id: b(V, R),
563
+ key: b(V, R),
564
+ onClick: (D) => P(D, V, R),
565
+ onMouseenter: (D) => f(D, V, R),
566
+ onMouseover: (D) => r(D, V, R),
567
+ onMouseout: (D) => d(D, V, R),
568
+ draggable: "true",
569
+ onDragstart: (D) => F(D, V, R),
570
+ onDragenter: (D) => x(D, R),
571
+ onDragend: (D) => S(D, V),
572
+ onDragover: (D) => y(D, R)
573
+ }, [h.value && p("div", {
574
+ class: "f-list-select",
575
+ onClick: (D) => D.stopPropagation()
576
+ }, [p(le, {
577
+ id: "list-" + b(V, R),
578
+ disabled: V[s.value] || V.unClick,
579
+ checked: V.checked,
580
+ onChange: (D) => v(V, R)
581
+ }, null)]), p("div", {
582
+ class: "f-list-content"
583
+ }, [C(V)]), p("div", {
584
+ class: "f-list-remove",
585
+ onClick: (D) => I(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)])])]);
67
595
  }
68
596
  return {
69
- displayText: l,
70
- modelValue: u,
71
- isPanelVisible: t,
72
- dataSource: a,
73
- onValueChange: o
597
+ renderItem: j
74
598
  };
75
599
  }
76
- function te(e) {
77
- const { isPanelVisible: n, context: l, modelValue: u, props: t } = e, a = (p) => {
78
- n.value !== !1 && (n.value = !1);
79
- }, o = (p) => {
80
- n.value !== !1 && (n.value = !1);
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
81
608
  };
82
- R([n], ([p]) => {
83
- p ? (window.addEventListener("resize", a), window.addEventListener("scroll", o)) : (window.removeEventListener("resize", a), window.removeEventListener("scroll", o));
609
+ }
610
+ function ce(e, t, o) {
611
+ const l = a(e.headerClass), n = a(e.placeholder), i = a(""), u = B(() => !i.value), c = B(() => !!i.value);
612
+ function h(d) {
613
+ i.value = "";
614
+ }
615
+ W(i, (d) => {
616
+ o.search(d);
617
+ });
618
+ const s = B(() => {
619
+ const d = {
620
+ "form-group": !0,
621
+ "farris-form-group": !0
622
+ };
623
+ return l.value && l.value.split(" ").reduce((m, v) => (m[v] = !0, m), d), d;
84
624
  });
85
- function i(p) {
86
- u.value = "", t.hidePanelOnClear && (n.value = !1), l.emit(j.update, ""), l.emit(j.clear);
625
+ function f(d) {
87
626
  }
88
- function d(p) {
89
- n.value = !n.value;
627
+ function r() {
628
+ return p("div", {
629
+ class: "f-list-view-header",
630
+ onClick: Fe(f, ["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": (d) => i.value = d,
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: (d) => 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)])])])])])])]);
90
658
  }
91
- function s(p) {
92
- n.value = !1;
659
+ return {
660
+ renderHeader: r
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((f, r) => typeof f != "object" ? { __fv_index__: r, name: f } : (f.__fv_index__ = r, f));
667
+ return n.value = s, s;
93
668
  }
94
- function y(p) {
95
- t.editable === !1 && (n.value = !0);
669
+ const c = a(u());
670
+ W(
671
+ () => e.data,
672
+ (s) => {
673
+ if (i.value) {
674
+ const f = s.reduce((m, v) => (m.set(v.id, !0), m), /* @__PURE__ */ new Map()), r = l.value.reduce((m, v) => (m.set(v.id, !0), m), /* @__PURE__ */ new Map()), d = c.value.filter((m) => f.has(m.id)), b = s.filter((m) => !r.has(m.id));
675
+ l.value = [...d, ...b];
676
+ } else
677
+ l.value = s;
678
+ c.value = u();
679
+ }
680
+ );
681
+ function h(s) {
682
+ return s.map((r) => {
683
+ const d = n.value.findIndex((b) => b[o.value] === r);
684
+ return d > -1 ? n.value[d] : null;
685
+ }).filter((r) => r != null);
96
686
  }
97
687
  return {
98
- onClear: i,
99
- onClick: y,
100
- onButtonClick: d,
101
- onPanelHidden: s
688
+ dataView: c,
689
+ getSelectionItems: h
102
690
  };
103
691
  }
104
- const ae = {
105
- popupContentPosition: { type: Object, default: { left: 0, top: 0 } }
106
- }, ne = 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: f, resumeHover: r, suspendHover: d } = l;
694
+ function b(F, x, y) {
695
+ F.stopPropagation(), d(), x && setTimeout(() => {
696
+ u.value = y, c.value = !0, x.moving = !0;
697
+ });
698
+ }
699
+ function m(F, x) {
700
+ if (F.preventDefault(), u.value !== x) {
701
+ const y = i.value[u.value], S = i.value;
702
+ S.splice(u.value, 1), S.splice(x, 0, y), u.value = x;
703
+ }
704
+ }
705
+ function v(F, x) {
706
+ F.preventDefault(), F.dataTransfer && (F.dataTransfer.dropEffect = "move");
707
+ }
708
+ function P(F, x) {
709
+ x && (x.moving = !1), i.value.forEach((y, S) => {
710
+ y.__fv_index__ = S;
711
+ }), c.value = !1, r(), f.value = x.__fv_index__, h.value = x.__fv_index__, s.value = x[n.value], t.emit("change", i.value);
712
+ }
713
+ return {
714
+ dragstart: b,
715
+ dragenter: m,
716
+ dragover: v,
717
+ dragend: P,
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, f, r) {
734
+ o.value = r;
735
+ }
736
+ function i(s, f, r) {
737
+ l.value || (o.value = r);
738
+ }
739
+ function u(s, f, r) {
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 f = lt(e), {
767
+ dataView: r
768
+ } = f, d = B(() => {
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
+ }), b = B(() => ({
775
+ "f-list-view-group": !0,
776
+ "d-flex": u.value,
777
+ "flex-wrap": u.value
778
+ })), m = B(() => !!r.value && r.value.length > 0), v = st(), P = Ze(e, t, f), F = ut(e, t, f, v), x = it(e, t, f), y = Ye(e, t, F, v, P), S = et(e, o), I = B(() => r.value.length === 0), k = B(() => I.value && !t.slots.empty), E = B(() => !!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 C = L(), {
783
+ renderItem: j
784
+ } = C(e, t, f, F, v, y, P, 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, S);
791
+ function D(M) {
792
+ S.search(M);
793
+ }
794
+ t.expose({
795
+ search: D
796
+ });
797
+ function O(M) {
798
+ i.value && (M.preventDefault(), M.stopPropagation());
799
+ }
800
+ return () => p("div", {
801
+ class: d.value,
802
+ onClick: O
803
+ }, [z(), p("div", {
804
+ ref: o,
805
+ class: "f-list-view-content"
806
+ }, [p("ul", {
807
+ class: b.value,
808
+ style: "list-style: none;"
809
+ }, [m.value && r.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 = B(() => 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({
107
1140
  name: "FOverlay",
108
- props: ae,
1141
+ props: Ct,
109
1142
  emits: ["click"],
110
- setup(e, n) {
111
- const l = S(e.popupContentPosition);
112
- function u(a) {
113
- 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();
114
1147
  }
115
- const t = w(() => ({
1148
+ const i = B(() => {
1149
+ const c = l.value;
1150
+ if (c) {
1151
+ const h = c.getBoundingClientRect(), {
1152
+ left: s,
1153
+ top: f,
1154
+ height: r
1155
+ } = h;
1156
+ return {
1157
+ left: s,
1158
+ top: f + r
1159
+ };
1160
+ }
1161
+ return o.value;
1162
+ }), u = B(() => ({
116
1163
  position: "relative",
117
- left: `${l.value.left}px`,
118
- top: `${l.value.top}px`
1164
+ left: `${i.value.left}px`,
1165
+ top: `${i.value.top}px`
119
1166
  }));
120
- return () => f(K, {
1167
+ return () => p(de, {
121
1168
  to: "body"
122
1169
  }, {
123
1170
  default: () => {
124
- var a, o;
125
- return [f("div", {
1171
+ var c, h;
1172
+ return [p("div", {
126
1173
  class: "overlay-container",
127
1174
  style: "pointer-events: auto;",
128
- onClick: (i) => u(i)
129
- }, [f("div", {
130
- style: t.value
131
- }, [(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)])])];
132
1179
  }
133
1180
  });
134
1181
  }
135
1182
  });
136
- function ue() {
137
- 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 = B(() => ({
1220
+ "input-group-append": !0,
1221
+ "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
1222
+ })), c = B(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable);
1223
+ async function h(d) {
1224
+ if (c.value) {
1225
+ const b = !!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
+ }), b && n.value === "Popup" && l.togglePopup(), b && i.value && l.hidePopup(), t.emit("clickButton", { origin: d, value: e.modelValue });
1233
+ }
1234
+ d.stopPropagation();
1235
+ }
1236
+ function s(d) {
1237
+ t.emit("mouseEnterIcon", d);
1238
+ }
1239
+ function f(d) {
1240
+ t.emit("mouseLeaveIcon", d);
1241
+ }
1242
+ function r() {
1243
+ t.emit("mouseOverButton");
1244
+ }
138
1245
  return {
139
- idField: e == null ? void 0 : e.comboListProps.idField,
140
- valueField: e == null ? void 0 : e.comboListProps.valueField,
141
- textField: e == null ? void 0 : e.comboListProps.textField
1246
+ buttonClass: u,
1247
+ onClickButton: h,
1248
+ onMouseEnterButton: s,
1249
+ onMouseLeaveButton: f,
1250
+ onMouseOverButton: r
142
1251
  };
143
1252
  }
144
- function oe(e, n) {
145
- 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(() => {
146
- var B;
147
- 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;
148
- }), 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) => {
149
- var c, r;
150
- if (!e.disabled && e.value !== void 0)
151
- if (s.value) {
152
- 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());
153
- b !== -1 ? m.splice(b, 1) : m.push(e.value.toString());
154
- 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);
155
- l == null || l.onValueChange({
156
- value: P,
157
- name: V
158
- });
159
- } else
160
- l == null || l.onValueChange({
161
- value: e.value,
162
- name: e.name
163
- }), (r = u == null ? void 0 : u.onPanelItemClick) == null || r.call(u, B);
164
- }, k = w(() => s.value ? d.value : (l == null ? void 0 : l.modelValue) === e.value), C = w(() => ({
165
- active: k.value,
166
- "list-group-item": !0,
167
- "list-group-item-action": !0
168
- })), T = w(() => ({
169
- cursor: e.disabled ? "not-allowed" : "default"
1253
+ function kt(e, t, o, l, n, i) {
1254
+ const u = a(!1), c = B(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: h } = i;
1255
+ function s(b) {
1256
+ u.value = b;
1257
+ }
1258
+ W(n, () => {
1259
+ l.value ? s(!!n.value) : s(!1);
1260
+ });
1261
+ function f(b) {
1262
+ const m = !e.readonly && !e.disable && e.editable, v = !e.editable;
1263
+ b.stopPropagation(), (m || v) && (h("", !1), s(!u.value), t.emit("clear"));
1264
+ }
1265
+ function r(b) {
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 d(b) {
1275
+ c.value && s(!1);
1276
+ }
1277
+ return {
1278
+ enableClearButton: c,
1279
+ showClearButton: u,
1280
+ onClearValue: f,
1281
+ onMouseEnterTextBox: r,
1282
+ onMouseLeaveTextBox: d
1283
+ };
1284
+ }
1285
+ function xt(e, t, o, l, n) {
1286
+ const i = a(e.popupOnInput), u = a(e.popupOnFocus), { shouldPopupContent: c } = n, h = B(() => e.enableTitle ? o.value : ""), s = B(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), f = B(() => e.readonly || !e.editable);
1287
+ let r = !1;
1288
+ const d = B(() => !e.disable && r), b = B(() => ({
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 = B(() => ({
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": d.value
170
1300
  }));
1301
+ function v(C, j = !0) {
1302
+ o.value !== C && (o.value = C, j && t.emit("change", C), t.emit("update:modelValue", C));
1303
+ }
1304
+ function P(C) {
1305
+ c.value = !1, v(C, !0);
1306
+ }
1307
+ W(
1308
+ () => e.modelValue,
1309
+ (C) => {
1310
+ o.value = C, t.emit("change", C);
1311
+ }
1312
+ );
1313
+ function F(C) {
1314
+ r = !1, t.emit("blur", C), C.stopPropagation();
1315
+ }
1316
+ function x(C) {
1317
+ t.emit("click", C);
1318
+ }
1319
+ function y(C) {
1320
+ if (e.disable) {
1321
+ r = !0;
1322
+ return;
1323
+ }
1324
+ r = !0, f.value || (t.emit("focus", C), u.value && !c.value && n.popup());
1325
+ }
1326
+ function S(C) {
1327
+ t.emit("input", C.target.value);
1328
+ const j = C.target.value;
1329
+ l.value = j, o.value !== j && v(j, !1), i.value && !c.value && n.popup();
1330
+ }
1331
+ function I(C) {
1332
+ C.target.tagName !== "INPUT" && C.preventDefault(), C.stopPropagation();
1333
+ }
1334
+ function k(C) {
1335
+ t.emit("keydown", C);
1336
+ }
1337
+ function E(C) {
1338
+ C.key === "Enter" && (i.value || u.value) && n.hidePopup(), t.emit("keyup", C);
1339
+ }
1340
+ function L(C) {
1341
+ const j = C.target.value;
1342
+ C.stopPropagation(), v(j);
1343
+ }
171
1344
  return {
172
- name: y,
173
- optionClass: C,
174
- isChecked: d,
175
- rowStyle: T,
176
- multiSelect: s,
177
- onOptionClick: v,
178
- defaultOptionSlot: p
1345
+ hasFocusedTextBox: d,
1346
+ isTextBoxReadonly: f,
1347
+ textBoxClass: b,
1348
+ textBoxPlaceholder: s,
1349
+ textBoxTitle: h,
1350
+ inputGroupClass: m,
1351
+ changeTextBoxValue: v,
1352
+ commitValue: P,
1353
+ onBlurTextBox: F,
1354
+ onClickTextBox: x,
1355
+ onFocusTextBox: y,
1356
+ onInput: S,
1357
+ onKeyDownTextBox: k,
1358
+ onKeyUpTextBox: E,
1359
+ onMouseDownTextBox: I,
1360
+ onTextBoxValueChange: L
179
1361
  };
180
1362
  }
181
- const ie = N({
182
- name: "FOption",
183
- props: E,
184
- emits: [],
185
- setup(e, n) {
186
- const {
187
- name: l,
188
- optionClass: u,
189
- rowStyle: t,
190
- multiSelect: a,
191
- onOptionClick: o,
192
- isChecked: i,
193
- defaultOptionSlot: d
194
- } = oe(e);
195
- return () => f("li", {
196
- style: t.value,
197
- class: u.value,
198
- onClick: _(o, ["prevent", "stop"])
199
- }, [a.value && f("div", {
200
- class: "custom-control custom-checkbox custom-control-inline",
201
- style: "margin:0;padding-right:0;float:none;vertical-align: top;"
202
- }, [G(f("input", {
203
- class: "custom-control-input",
204
- type: "checkbox",
205
- title: "custom-input",
206
- disabled: e.disabled,
207
- "onUpdate:modelValue": (s) => i.value = s
208
- }, null), [[J, i.value]]), f("label", {
209
- class: "custom-control-label"
210
- }, null)]), f("span", {
211
- class: "f-datalist-item-text"
212
- }, [d ? d({
213
- name: l.value
214
- }) : l.value])]);
215
- }
216
- }), re = N({
217
- name: "FOptions",
218
- props: ee,
219
- emits: [],
220
- setup(e, n) {
221
- const {
222
- valueField: l = "id",
223
- textField: u = "label"
224
- } = ue();
225
- return () => {
226
- var t;
227
- return f("ul", {
228
- class: "list-group list-group-flush"
229
- }, [(t = e == null ? void 0 : e.options) == null ? void 0 : t.map((a) => f(ie, {
230
- value: a[l],
231
- name: a[u],
232
- disabled: a.disabled
233
- }, null))]);
234
- };
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);
235
1368
  }
236
- });
237
- function de(e) {
238
- 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(() => ({
239
- "z-index": 99999,
240
- position: "absolute",
241
- background: "#fff",
242
- border: "solid 1px #ededed"
243
- })), C = w(() => ({
244
- "max-height": v.value ? a.value - 36 + "px" : a.value + "px",
245
- overflow: "auto",
246
- border: "none"
247
- })), T = w(() => ({
248
- comboPanel: !0,
249
- "f-area-hide": !n.value,
250
- "f-area-show": n.value
251
- })), B = (c, r, h = O.bottom) => {
252
- var F;
253
- 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;
254
- 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) {
255
- c.style.top = P + V + "px";
256
- const I = g - b, $ = m <= I ? m : I;
257
- a.value = $;
258
- } else if (h === O.top) {
259
- const I = P, $ = m <= I ? m : I;
260
- 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: f,
1390
+ onKeyDownTextBox: r,
1391
+ onKeyUpTextBox: d,
1392
+ onMouseDownTextBox: b,
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: f,
1413
+ onKeydown: r,
1414
+ onKeyup: d,
1415
+ onMousedown: b
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(f, r, d) {
1439
+ f.stopPropagation(), r && setTimeout(() => {
1440
+ n.value = d, i.value = !0, r.moving = !0;
1441
+ });
1442
+ }
1443
+ function c(f, r) {
1444
+ if (f.preventDefault(), n.value !== r) {
1445
+ const d = l.value[n.value], b = l.value;
1446
+ b.splice(n.value, 1), b.splice(r, 0, d), n.value = r;
261
1447
  }
1448
+ }
1449
+ function h(f, r) {
1450
+ f.preventDefault(), f.dataTransfer && (f.dataTransfer.dropEffect = "move");
1451
+ }
1452
+ function s(f, r) {
1453
+ r && (r.moving = !1), o.value = l.value.filter((d) => d.type === "Tag").map((d) => d.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
262
1461
  };
263
- return R([l, n], ([c, r]) => {
264
- var h, m;
265
- if (r && c) {
266
- 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");
267
- if (v.value) {
268
- const V = c.querySelector("input");
269
- 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), f = a(e.showClose), r = a(e.showAddButton), d = a(e.showInput), b = a(e.addButtonText), m = a(e.enableAddButton);
1469
+ a(e.placeholder), a(""), a();
1470
+ const v = a(), P = a(e.wrapText), F = a();
1471
+ function x() {
1472
+ const g = n.value.map((w) => ({
1473
+ type: "Tag",
1474
+ payload: w
1475
+ }));
1476
+ return r.value && g.push({
1477
+ type: "AddButton"
1478
+ }), g;
1479
+ }
1480
+ const y = a(x());
1481
+ function S(g) {
1482
+ n.value = g, y.value = x();
1483
+ }
1484
+ const I = B(() => y.value.findIndex((g) => g.type === "Input")), k = Ot(e, t, n, y), {
1485
+ dragstart: E,
1486
+ dragenter: L,
1487
+ dragover: C,
1488
+ dragend: j
1489
+ } = k;
1490
+ W(() => e.data, (g) => S(g));
1491
+ const V = B(() => {
1492
+ const g = {
1493
+ "farris-tags": !0,
1494
+ "farris-tags-checkable": o.value,
1495
+ "farris-tags-nowrap": !P.value
1496
+ };
1497
+ return l.value.split(" ").reduce((w, T) => (w[T] = !0, w), g), g;
1498
+ });
1499
+ function R(g) {
1500
+ const w = {
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
+ w[T] = !0;
1510
+ }
1511
+ return w;
1512
+ }
1513
+ const z = B(() => {
1514
+ const g = {};
1515
+ return s.value && s.value.split(";").reduce((w, T) => {
1516
+ const H = T.split(":");
1517
+ return w[H[0]] = H[1], w;
1518
+ }, g), g;
1519
+ });
1520
+ function D(g, w) {
1521
+ o.value && w.selectable && (w.checked = !w.checked, h.value = w.checked ? w.name : "", w.checked && n.value.filter((T) => T.name !== w.name).forEach((T) => {
1522
+ T.checked = !w.checked;
1523
+ }), t.emit("change", n.value), t.emit("selectionChange", w));
1524
+ }
1525
+ function O(g, w) {
1526
+ let T;
1527
+ switch (g.key) {
1528
+ case "Backspace":
1529
+ n.value = n.value.filter((H) => H.name !== w.name), t.emit("change", n.value);
1530
+ break;
1531
+ case "ArrowLeft":
1532
+ T = Math.max(v.value.scrollLeft + 20, 0), v.value.scrollLeft = T;
1533
+ break;
1534
+ case "ArrowRight":
1535
+ T = Math.max(v.value.scrollLeft - 20, 0), v.value.scrollLeft = T;
270
1536
  }
271
- const P = g == null ? void 0 : g.getBoundingClientRect();
272
- B(c, P, d), u.emit(H.panelShow);
273
- }
274
- }), R([p], ([c]) => {
275
- ce(() => {
276
- var r;
277
- if (!c)
278
- return s.value = y.value;
279
- s.value = (r = y == null ? void 0 : y.value) == null ? void 0 : r.filter(
280
- (h) => {
281
- var m, b;
282
- return ((m = h[o]) == null ? void 0 : m.startsWith(c)) || h[o].toString().startsWith(c) || ((b = h[i]) == null ? void 0 : b.startsWith(c));
1537
+ }
1538
+ function M(g, w) {
1539
+ const T = n.value.findIndex((H) => H.name === w.name);
1540
+ if (T > -1) {
1541
+ const [H] = n.value.splice(T, 1);
1542
+ y.value = x(), t.emit("change", n.value), t.emit("remove", n.value, H, T);
1543
+ }
1544
+ g.stopPropagation();
1545
+ }
1546
+ const A = B(() => ({
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
+ }, [b.value])]);
1562
+ }
1563
+ function N(g) {
1564
+ if (g && !g.innerText) {
1565
+ const w = I.value;
1566
+ if (w > 0) {
1567
+ const [T] = n.value.splice(w - 1, 1);
1568
+ y.value.splice(w - 1, 1), t.emit("remove", n.value, T, w - 1);
283
1569
  }
284
- );
285
- }, 500)();
286
- }), {
287
- panelStyle: k,
288
- panelClass: T,
289
- cardStyle: C,
290
- enableSearch: v,
291
- keyword: p,
292
- items: s
293
- };
1570
+ }
1571
+ }
1572
+ function U(g, w, T) {
1573
+ g > -1 && (n.value.splice(g, 0, {
1574
+ name: w,
1575
+ value: T,
1576
+ selectable: o.value
1577
+ }), y.value = x(), t.emit("change", n.value));
1578
+ }
1579
+ function J(g) {
1580
+ if (g && g.innerText) {
1581
+ const w = g.innerText, T = I.value;
1582
+ U(T, w, w), g.innerText = "";
1583
+ }
1584
+ }
1585
+ function Y(g) {
1586
+ const w = g.target;
1587
+ w && (w.innerText ? J(w) : 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
+ F.value && F.value.focus();
1592
+ }));
1593
+ }
1594
+ function Ce() {
1595
+ return p("li", {
1596
+ class: "farris-tag-input-box"
1597
+ }, [p("div", {
1598
+ ref: F,
1599
+ class: "form-control",
1600
+ contenteditable: "true",
1601
+ onKeyup: be,
1602
+ onBlur: Y
1603
+ }, null)]);
1604
+ }
1605
+ function we(g, w) {
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) => O(T, g),
1614
+ draggable: "true",
1615
+ onDragstart: (T) => E(T, g, w),
1616
+ onDragenter: (T) => L(T, w),
1617
+ onDragend: (T) => j(T, g),
1618
+ onDragover: (T) => C(T, w)
1619
+ }, [p("div", {
1620
+ title: g.name,
1621
+ class: "tag-box"
1622
+ }, [g.name]), f.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 y.value.map((g, w) => {
1631
+ switch (g.type) {
1632
+ case "Tag":
1633
+ return we(g.payload, w);
1634
+ case "AddButton":
1635
+ return _();
1636
+ case "Input":
1637
+ return Ce();
1638
+ }
1639
+ });
1640
+ }
1641
+ const Te = B(() => ({
1642
+ "farris-tags-item-container": !0,
1643
+ "farris-tag-item-capsule": u.value === "capsule"
1644
+ }));
1645
+ function Be(g) {
1646
+ const w = Math.max(v.value.scrollLeft - g.deltaX, 0);
1647
+ v.value.scrollLeft = w;
1648
+ }
1649
+ function Ie(g) {
1650
+ const w = v.value, T = n.value.length - 1;
1651
+ if (w) {
1652
+ const H = Array.from(w.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 (d.value) {
1663
+ const T = Ie(g.clientX) + 1, X = y.value.filter((q) => q.type !== "Input");
1664
+ X.splice(T, 0, {
1665
+ type: "Input"
1666
+ }), y.value = X, K(() => {
1667
+ F.value && F.value.focus();
1668
+ });
1669
+ }
1670
+ }
1671
+ function xe(g) {
1672
+ var T;
1673
+ g.preventDefault(), g.stopPropagation();
1674
+ const w = (T = g.dataTransfer) == null ? void 0 : T.getData("Text");
1675
+ if (w) {
1676
+ const H = w.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: v,
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 = B(() => 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);
294
1712
  }
295
- function se(e) {
296
- const { context: n } = e;
297
- function l(o) {
298
- n.emit(H.panelHidden);
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)]);
1738
+ }
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 = B(() => t === "body" ? 0 : t ? t.getBoundingClientRect().top : 0), l = B(() => t === "body" ? 0 : t ? t.getBoundingClientRect().left : 0), n = B(() => 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), f = a(0), r = a(0), d = a(0), b = a(document.documentElement.scrollLeft), m = a(document.documentElement.scrollTop), { hostLeft: v, hostTop: P, hostWidth: F } = l;
1769
+ W(e.offsetX, (O) => {
1770
+ n.value = O - i.value;
1771
+ });
1772
+ const x = B(() => {
1773
+ const O = {
1774
+ left: `${r.value}px`,
1775
+ top: `${d.value}px`,
1776
+ transform: `translateX(${n.value}px)`
1777
+ };
1778
+ return e.zIndex !== -1 && (O["z-index"] = e.zIndex), u.value !== -1 && (O.width = `${u.value}px`), O;
1779
+ }), y = B(() => ({
1780
+ left: `${f.value}px`
1781
+ }));
1782
+ function S(O) {
1783
+ if (O && e.keepWidthWithReference) {
1784
+ const M = O.getBoundingClientRect();
1785
+ u.value = Math.max(e.minWidth, M.width);
1786
+ }
1787
+ }
1788
+ function I(O, M) {
1789
+ const A = F.value - O.width - 4;
1790
+ return A > 0 ? A : M;
1791
+ }
1792
+ function k(O, M, A) {
1793
+ const $ = f.value, _ = M.left - v.value + M.width / 2 + b.value, N = M.top - P.value - (O.height + A.height) + m.value;
1794
+ return { popoverLeft: _, popoverTop: N, arrowLeft: $ };
1795
+ }
1796
+ function E(O, M, A) {
1797
+ return M.top - P.value + (M.height + A.height) + m.value;
1798
+ }
1799
+ function L(O, M) {
1800
+ const A = I(M, O), $ = O <= A ? f.value : O - A;
1801
+ return { popoverLeft: Math.min(O, A), arrowLeft: $ };
299
1802
  }
300
- function u(o) {
301
- n.emit(H.panelHidden);
1803
+ function C(O, M, A) {
1804
+ const $ = M.left - v.value + M.width / 2 - (A.width / 2 - (O.left - v.value)) + b.value, { arrowLeft: _, popoverLeft: N } = L($, O), U = E(O, M, A);
1805
+ return { popoverLeft: N, popoverTop: U, arrowLeft: _ };
302
1806
  }
303
- function t(o) {
1807
+ function j(O, M, A) {
1808
+ const $ = M.left - v.value + b.value, { arrowLeft: _, popoverLeft: N } = L($, O), U = E(O, M, A);
1809
+ return { popoverLeft: N, popoverTop: U, arrowLeft: _ };
304
1810
  }
305
- function a(o) {
1811
+ const V = /* @__PURE__ */ new Map([
1812
+ ["top", k],
1813
+ ["bottom", C],
1814
+ ["bottom-left", j]
1815
+ ]);
1816
+ function R(O) {
1817
+ var N;
1818
+ const M = O.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
+ f.value = U, r.value = J, d.value = Y;
1824
+ }
1825
+ e.keepWidthWithReference && S(O);
1826
+ }
1827
+ function z(O) {
1828
+ if (O) {
1829
+ const M = O.getBoundingClientRect();
1830
+ (M.left !== h.value || M.top !== c.value) && R(O);
1831
+ }
306
1832
  }
307
1833
  return {
308
- onPanelContainerClick: l,
309
- onPanelItemClick: u,
310
- onSearchClick: t,
311
- onPanelClick: a
1834
+ arrowStyle: y,
1835
+ popoverStyle: x,
1836
+ position: s,
1837
+ popoverWidth: u,
1838
+ fitToReference: S,
1839
+ followToReferencePosition: z,
1840
+ locateToReference: R
312
1841
  };
313
1842
  }
314
- function ce(e, n = 300) {
315
- let l;
316
- return (...u) => {
317
- clearTimeout(l), l = window.setTimeout(() => {
318
- e(u);
319
- }, n);
1843
+ function Et(e, t, o, l, n, i, u) {
1844
+ const c = a(e.visible), h = B(() => c.value), { fitToReference: s, locateToReference: f } = u;
1845
+ let r;
1846
+ function d() {
1847
+ c.value = !1, document.body.removeEventListener("click", r), t.emit("hidden");
1848
+ }
1849
+ r = (m) => {
1850
+ if (!n.value.contains(m.target)) {
1851
+ const v = n.value.closest(".popover");
1852
+ v && v.removeEventListener("click", r), d();
1853
+ }
320
1854
  };
1855
+ async function b(m) {
1856
+ if (l.value && o.value && m) {
1857
+ c.value = !0, n.value = m, await K(), f(m), i.value && s(m), document.body.addEventListener("click", r);
1858
+ const v = m.closest(".popover");
1859
+ v && v.addEventListener("click", r), t.emit("shown");
1860
+ }
1861
+ }
1862
+ return t.expose({ hide: d, show: b, shown: h }), { showPopover: c, hidePopverOnClickBodyHandler: r };
321
1863
  }
322
- const fe = N({
323
- name: "FPanel",
324
- props: L,
325
- emits: [H.panelHidden, H.panelShow],
326
- setup(e, n) {
327
- const l = S(), {
328
- isPanelVisible: u
329
- } = Q(e), {
330
- panelStyle: t,
331
- panelClass: a,
332
- cardStyle: o,
333
- enableSearch: i,
334
- keyword: d,
335
- items: s
336
- } = de({
337
- isPanelVisible: u,
338
- props: e,
339
- panelRef: l,
340
- context: n
341
- }), {
342
- onPanelContainerClick: y,
343
- onPanelItemClick: p,
344
- onSearchClick: v,
345
- onPanelClick: k
346
- } = se({
347
- panelRef: l,
348
- isPanelVisible: u,
349
- context: n
350
- }), C = D({
351
- onPanelItemClick: p
352
- });
353
- return U(A, C), () => u.value && f(ne, {
354
- 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 = B(() => !!e.title), c = Rt(e), {
1881
+ host: h
1882
+ } = c, s = At(e, o, l, c), {
1883
+ position: f,
1884
+ arrowStyle: r,
1885
+ popoverStyle: d,
1886
+ fitToReference: b,
1887
+ locateToReference: m
1888
+ } = s, {
1889
+ showPopover: v,
1890
+ hidePopverOnClickBodyHandler: P
1891
+ } = Et(e, t, o, l, n, i, s), {
1892
+ onResize: F
1893
+ } = Ht(e, t, n, i, s), x = B(() => {
1894
+ const S = `popover in popover-${f.value}`, I = `bs-popover-${f.value}`, k = {
1895
+ "popover-fitcontent": e.fitContent
1896
+ };
1897
+ return k[S] = !0, k[I] = !0, (e.class || "").split(" ").reduce((L, C) => (L[C] = !0, L), k), k;
1898
+ }), y = B(() => ({
1899
+ "popover-content": !0,
1900
+ "popover-body": !0
1901
+ }));
1902
+ return ne(() => {
1903
+ e.reference && m(n.value), i.value && b(n.value), window.addEventListener("resize", F);
1904
+ }), fe(() => {
1905
+ document.body.removeEventListener("click", P), window.removeEventListener("resize", F);
1906
+ }), () => p(de, {
1907
+ to: h
355
1908
  }, {
356
- default: () => [f("div", {
357
- class: a.value,
358
- ref: l,
359
- style: t.value,
360
- onClick: _(k, ["prevent", "stop"])
361
- }, [i.value && f(W("f-button-edit"), {
362
- enableClear: !0,
363
- style: "padding:5px 10px",
364
- buttonContent: "<i class='f-icon f-icon-search'></i>",
365
- modelValue: d.value,
366
- "onUpdate:modelValue": (T) => d.value = T,
367
- onClickButton: v
368
- }, null), f("div", {
369
- style: "position: relative;",
370
- class: "f-datalist"
371
- }, [f("div", {
372
- class: "card",
373
- style: o.value
374
- }, [f(re, {
375
- options: s.value
376
- }, null)])])])]
1909
+ default: () => {
1910
+ var S;
1911
+ return [Q(p("div", {
1912
+ ref: l,
1913
+ class: x.value,
1914
+ style: d.value,
1915
+ onClick: (I) => {
1916
+ I.stopPropagation();
1917
+ }
1918
+ }, [p("div", {
1919
+ ref: o,
1920
+ class: "popover-arrow arrow",
1921
+ style: r.value
1922
+ }, null), u.value && p("h3", {
1923
+ class: "popover-title popover-header"
1924
+ }, [e.title]), p("div", {
1925
+ class: y.value
1926
+ }, [t.slots.default && ((S = t.slots) == null ? void 0 : S.default())])]), [[ve, v.value]])];
1927
+ }
377
1928
  });
378
1929
  }
379
- }), M = 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(""), f = xt(e, t, n, s, i), {
1963
+ hasFocusedTextBox: r,
1964
+ commitValue: d,
1965
+ inputGroupClass: b
1966
+ } = f, m = kt(e, t, n, r, s, f), {
1967
+ onMouseEnterTextBox: v,
1968
+ onMouseLeaveTextBox: P
1969
+ } = m, F = B(() => {
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, C) => (L[C] = !0, L), E), E;
1976
+ });
1977
+ function x() {
1978
+ return e.multiSelect && e.inputType === "tag" ? Lt(e, n, f) : Mt(e, n, f);
1979
+ }
1980
+ let y = x();
1981
+ W([() => e.multiSelect, () => e.inputType], () => {
1982
+ y = x();
1983
+ });
1984
+ const S = Dt(e, h, m), I = _t(e, t, i), k = {
1985
+ commitValue: d,
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: F.value,
1994
+ id: e.id
1995
+ }), [p("div", {
1996
+ class: b.value,
1997
+ onMouseenter: v,
1998
+ onMouseleave: P
1999
+ }, [y(), S()])]), u.value && I()]);
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 f = s.split(e.separator).map((d) => [d, !0]), r = new Map(f);
2006
+ return l.value.filter((d) => r.has(d[e.valueField]));
2007
+ }
2008
+ function u(s) {
2009
+ const f = i(s).map((r) => r[e.textField]).join(e.separator);
2010
+ t.value = n.value ? f || s : f;
2011
+ }
2012
+ function c(s) {
2013
+ const f = s.split(e.separator).map((d) => [d, !0]), r = new Map(f);
2014
+ return l.value.filter((d) => r.has(d[e.textField]));
2015
+ }
2016
+ function h() {
2017
+ const { url: s, method: f = "GET", headers: r = {}, body: d = null } = e.remote;
2018
+ fetch(s, { method: f, headers: r, body: d }).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 f = s.find((r) => r[e.valueField] === e.modelValue);
2033
+ f && (t.value = f[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({
380
2040
  name: "FComboList",
381
- props: Z,
382
- emits: [j.clear, j.update],
383
- setup(e, n) {
384
- const l = S(), {
385
- onValueChange: u,
386
- displayText: t,
387
- modelValue: a,
388
- isPanelVisible: o,
389
- dataSource: i
390
- } = le(e, n), {
391
- onClear: d,
392
- onButtonClick: s,
393
- onPanelHidden: y,
394
- onClick: p
395
- } = te({
396
- props: e,
397
- context: n,
398
- isPanelVisible: o,
399
- modelValue: a
400
- }), v = D({
401
- comboListRef: l,
402
- isPanelVisible: o,
403
- comboListProps: e,
404
- onValueChange: u,
405
- modelValue: a,
406
- dataSource: i,
407
- defaultOptionSlot: n.slots.default
2041
+ props: ae,
2042
+ emits: ["clear", "update:modelValue", "change"],
2043
+ setup(e, t) {
2044
+ const o = a(), {
2045
+ dataSource: l,
2046
+ displayText: n,
2047
+ editable: i,
2048
+ modelValue: u,
2049
+ getItemsByDisplayText: c
2050
+ } = $t(e), h = B(() => e.multiSelect);
2051
+ function s() {
2052
+ !h.value && o.value && o.value.hidePopup();
2053
+ }
2054
+ function f(v) {
2055
+ n.value = v.map((P) => P[e.textField]).join(e.separator), u.value = v.map((P) => P[e.valueField]).join(e.separator), t.emit("update:modelValue", u.value), t.emit("change", v), s();
2056
+ }
2057
+ function r(v) {
2058
+ u.value = "", t.emit("update:modelValue", ""), t.emit("clear");
2059
+ }
2060
+ function d(v) {
2061
+ u.value = v, t.emit("update:modelValue", u.value);
2062
+ const P = {};
2063
+ P[e.idField] = v, P[e.textField] = v, t.emit("change", [P]);
2064
+ }
2065
+ function b(v) {
2066
+ if (i.value) {
2067
+ d(v);
2068
+ return;
2069
+ }
2070
+ const P = c(v);
2071
+ f(P);
2072
+ }
2073
+ function m() {
2074
+ return n.value;
2075
+ }
2076
+ return t.expose({
2077
+ getDisplayText: m
2078
+ }), () => p(ye, {
2079
+ ref: o,
2080
+ id: e.id,
2081
+ disable: e.disabled,
2082
+ readonly: e.readonly,
2083
+ forcePlaceholder: e.forcePlaceholder,
2084
+ editable: i.value,
2085
+ buttonContent: e.dropDownIcon,
2086
+ placeholder: e.placeholder,
2087
+ enableClear: e.enableClear,
2088
+ maxLength: e.maxLength,
2089
+ tabIndex: e.tabIndex,
2090
+ enableTitle: e.enableTitle,
2091
+ multiSelect: e.multiSelect,
2092
+ inputType: e.multiSelect ? "tag" : "text",
2093
+ modelValue: n.value,
2094
+ "onUpdate:modelValue": (v) => n.value = v,
2095
+ onClear: r,
2096
+ onChange: b
2097
+ }, {
2098
+ default: () => [p(rt, {
2099
+ idField: e.idField,
2100
+ valueField: e.valueField,
2101
+ textField: e.textField,
2102
+ dataSource: l.value,
2103
+ selectedValues: u.value,
2104
+ multiSelect: e.multiSelect,
2105
+ enableSearch: e.enableSearch,
2106
+ onSelectionChange: f
2107
+ }, null)]
408
2108
  });
409
- return U(z, v), () => f(X, null, [f(W("f-button-edit"), Y({
410
- ref: l,
2109
+ }
2110
+ });
2111
+ function Nt(e, t, o) {
2112
+ var x;
2113
+ const l = o == null ? void 0 : o.checkIsInFixedContextRules(), n = o && o.getStyles && o.getStyles() || "";
2114
+ function i() {
2115
+ return !(t.schema.componentType || l);
2116
+ }
2117
+ function u() {
2118
+ return !1;
2119
+ }
2120
+ function c() {
2121
+ return !(t.schema.componentType || l);
2122
+ }
2123
+ function h() {
2124
+ return !!l;
2125
+ }
2126
+ function s(y) {
2127
+ if (!y)
2128
+ return null;
2129
+ if (y.schema.type === "Component")
2130
+ return y;
2131
+ const S = s(y.parent);
2132
+ return S || null;
2133
+ }
2134
+ function f(y, S, I) {
2135
+ return !!o && o.canAccepts();
2136
+ }
2137
+ function r() {
2138
+ return t.schema.label || t.schema.title || t.schema.name;
2139
+ }
2140
+ function d() {
2141
+ }
2142
+ function b(y, S) {
2143
+ S && (o == null || o.onAcceptMovedChildElement(S));
2144
+ }
2145
+ function m(y, S) {
2146
+ const I = String(y.getAttribute("data-controltype"));
2147
+ return je(I);
2148
+ }
2149
+ function v(y) {
2150
+ return y.contents ? y.contents.length : -1;
2151
+ }
2152
+ function P(y) {
2153
+ }
2154
+ const F = {
2155
+ canMove: i(),
2156
+ canSelectParent: u(),
2157
+ canDelete: c(),
2158
+ canNested: !h(),
2159
+ contents: t.schema.contents,
2160
+ elementRef: e,
2161
+ parent: (x = t.parent) == null ? void 0 : x.componentInstance.value,
2162
+ schema: t.schema,
2163
+ styles: n,
2164
+ canAccepts: f,
2165
+ getBelongedComponentInstance: s,
2166
+ getDraggingDisplayText: r,
2167
+ getDragScopeElement: d,
2168
+ onAcceptMovedChildElement: b,
2169
+ onAcceptNewChildElement: m,
2170
+ onAddNewChildElement: v,
2171
+ onChildElementMovedOut: P,
2172
+ triggerBelongedComponentToMoveWhenMoved: !!o && o.triggerBelongedComponentToMoveWhenMoved
2173
+ };
2174
+ return a(F);
2175
+ }
2176
+ const zt = /* @__PURE__ */ G({
2177
+ name: "FComboListDesign",
2178
+ props: ae,
2179
+ emits: ["clear", "update:modelValue", "change"],
2180
+ setup(e, t) {
2181
+ const o = a(), l = De("design-item-context"), n = Nt(o, l);
2182
+ return ne(() => {
2183
+ o.value.componentInstance = n;
2184
+ }), t.expose(n.value), () => p(ye, {
2185
+ ref: o,
411
2186
  id: e.id,
412
- class: {
413
- active: o
414
- }
415
- }, n.attrs, {
416
2187
  disable: e.disabled,
417
2188
  readonly: e.readonly,
418
2189
  forcePlaceholder: e.forcePlaceholder,
@@ -423,35 +2194,26 @@ const fe = N({
423
2194
  maxLength: e.maxLength,
424
2195
  tabIndex: e.tabIndex,
425
2196
  enableTitle: e.enableTitle,
426
- style: "display:block",
427
- modelValue: t.value,
428
- "onUpdate:modelValue": (k) => t.value = k,
429
- onClear: d,
430
- onClick: p,
431
- onClickButton: s
432
- }), null), o.value && f(fe, {
433
- isPanelVisible: o.value,
434
- onPanelHidden: y
435
- }, null)]);
2197
+ multiSelect: e.multiSelect,
2198
+ inputType: e.multiSelect ? "tag" : "text"
2199
+ }, null);
436
2200
  }
437
- }), ve = {
2201
+ }), qt = {
438
2202
  install(e) {
439
- e.component(M.name, M);
2203
+ e.component(te.name, te);
2204
+ },
2205
+ register(e, t) {
2206
+ e["combo-list"] = te, t["combo-list"] = ie;
2207
+ },
2208
+ registerDesigner(e, t) {
2209
+ e["combo-list"] = zt, t["combo-list"] = ie;
440
2210
  }
441
2211
  };
442
2212
  export {
443
- M as FComboList,
444
- O as Placement,
445
- x as ViewType,
446
- Z as comboListProps,
447
- ce as debounce,
448
- ve as default,
449
- E as optionProps,
450
- ee as optionsProps,
451
- L as panelProps,
452
- le as useComboList,
453
- te as useComboListEvent,
454
- oe as useOption,
455
- de as usePanel,
456
- se as usePanelEvent
2213
+ te as FComboList,
2214
+ Ke as Placement,
2215
+ Ue as ViewType,
2216
+ ae as comboListProps,
2217
+ qt as default,
2218
+ ie as propsResolver
457
2219
  };