@farris/ui-vue 1.0.0-beta.6 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (723) hide show
  1. package/accordion/index.esm.js +318 -56
  2. package/accordion/index.umd.js +1 -1
  3. package/accordion/package.json +2 -2
  4. package/avatar/package.json +2 -2
  5. package/button/index.esm.js +64 -58
  6. package/button/index.umd.js +1 -1
  7. package/button/package.json +2 -2
  8. package/button-edit/index.esm.js +1075 -221
  9. package/button-edit/index.umd.js +1 -1
  10. package/button-edit/package.json +2 -2
  11. package/button-edit/style.css +1 -0
  12. package/calculator/index.esm.js +315 -0
  13. package/calculator/index.umd.js +1 -0
  14. package/calculator/package.json +8 -0
  15. package/calculator/style.css +1 -0
  16. package/calendar/index.esm.js +778 -0
  17. package/calendar/index.umd.js +1 -0
  18. package/calendar/package.json +8 -0
  19. package/calendar/style.css +1 -0
  20. package/capsule/index.esm.js +130 -0
  21. package/capsule/index.umd.js +1 -0
  22. package/capsule/package.json +8 -0
  23. package/capsule/style.css +1 -0
  24. package/checkbox/index.esm.js +192 -75
  25. package/checkbox/index.umd.js +1 -1
  26. package/checkbox/package.json +2 -2
  27. package/color-picker/index.esm.js +1551 -0
  28. package/color-picker/index.umd.js +16 -0
  29. package/color-picker/package.json +8 -0
  30. package/color-picker/style.css +1 -0
  31. package/combo-list/index.esm.js +2078 -434
  32. package/combo-list/index.umd.js +1 -1
  33. package/combo-list/package.json +2 -2
  34. package/combo-list/style.css +1 -0
  35. package/component/index.esm.js +176 -0
  36. package/component/index.umd.js +1 -0
  37. package/component/package.json +8 -0
  38. package/condition/index.esm.js +13564 -0
  39. package/condition/index.umd.js +1 -0
  40. package/condition/package.json +8 -0
  41. package/condition/style.css +1 -0
  42. package/content-container/index.esm.js +242 -0
  43. package/content-container/index.umd.js +1 -0
  44. package/content-container/package.json +8 -0
  45. package/data-grid/index.esm.js +13295 -1204
  46. package/data-grid/index.umd.js +1 -1
  47. package/data-grid/package.json +2 -2
  48. package/data-grid/style.css +1 -1
  49. package/date-picker/index.esm.js +2079 -1057
  50. package/date-picker/index.umd.js +1 -1
  51. package/date-picker/package.json +2 -2
  52. package/date-picker/style.css +1 -1
  53. package/designer-canvas/index.esm.js +15234 -0
  54. package/designer-canvas/index.umd.js +1 -0
  55. package/designer-canvas/package.json +8 -0
  56. package/designer-canvas/style.css +1 -0
  57. package/discussion-editor/index.esm.js +3559 -0
  58. package/discussion-editor/index.umd.js +16 -0
  59. package/discussion-editor/package.json +8 -0
  60. package/discussion-editor/style.css +1 -0
  61. package/discussion-list/index.esm.js +111 -0
  62. package/discussion-list/index.umd.js +1 -0
  63. package/discussion-list/package.json +8 -0
  64. package/discussion-list/style.css +1 -0
  65. package/dropdown/index.esm.js +214 -0
  66. package/dropdown/index.umd.js +1 -0
  67. package/dropdown/package.json +8 -0
  68. package/dropdown/style.css +1 -0
  69. package/dynamic-form/index.esm.js +13562 -0
  70. package/dynamic-form/index.umd.js +1 -0
  71. package/dynamic-form/package.json +8 -0
  72. package/dynamic-form/style.css +1 -0
  73. package/dynamic-resolver/index.esm.js +41 -0
  74. package/dynamic-resolver/index.umd.js +1 -0
  75. package/dynamic-resolver/package.json +8 -0
  76. package/dynamic-view/index.esm.js +13602 -0
  77. package/dynamic-view/index.umd.js +1 -0
  78. package/dynamic-view/package.json +8 -0
  79. package/dynamic-view/style.css +1 -0
  80. package/farris.all.esm.js +25017 -5892
  81. package/farris.all.umd.js +24 -1
  82. package/filter-bar/index.esm.js +549 -0
  83. package/filter-bar/index.umd.js +1 -0
  84. package/filter-bar/package.json +8 -0
  85. package/filter-bar/style.css +1 -0
  86. package/image-cropper/index.esm.js +720 -0
  87. package/image-cropper/index.umd.js +1 -0
  88. package/image-cropper/package.json +8 -0
  89. package/image-cropper/style.css +1 -0
  90. package/input-group/index.esm.js +549 -0
  91. package/input-group/index.umd.js +1 -0
  92. package/input-group/package.json +8 -0
  93. package/input-group/style.css +1 -0
  94. package/list-nav/index.esm.js +61 -0
  95. package/list-nav/index.umd.js +1 -0
  96. package/list-nav/package.json +8 -0
  97. package/list-nav/style.css +1 -0
  98. package/list-view/index.esm.js +516 -124
  99. package/list-view/index.umd.js +1 -1
  100. package/list-view/package.json +2 -2
  101. package/list-view/style.css +1 -1
  102. package/loading/index.esm.js +124 -0
  103. package/loading/index.umd.js +8 -0
  104. package/loading/package.json +8 -0
  105. package/loading/style.css +1 -0
  106. package/locale/index.esm.js +1868 -0
  107. package/locale/index.umd.js +1 -0
  108. package/locale/package.json +8 -0
  109. package/message-box/index.esm.js +408 -335
  110. package/message-box/index.umd.js +1 -1
  111. package/message-box/package.json +2 -2
  112. package/message-box/style.css +1 -0
  113. package/modal/index.esm.js +137 -90
  114. package/modal/index.umd.js +1 -1
  115. package/modal/package.json +2 -2
  116. package/modal/style.css +1 -0
  117. package/nav/index.esm.js +456 -0
  118. package/nav/index.umd.js +16 -0
  119. package/nav/package.json +8 -0
  120. package/nav/style.css +1 -0
  121. package/notify/package.json +2 -2
  122. package/order/index.esm.js +2272 -0
  123. package/order/index.umd.js +1 -0
  124. package/order/package.json +8 -0
  125. package/order/style.css +1 -0
  126. package/package.json +3 -1
  127. package/page-footer/index.esm.js +94 -0
  128. package/page-footer/index.umd.js +1 -0
  129. package/page-footer/package.json +8 -0
  130. package/page-header/index.esm.js +230 -0
  131. package/page-header/index.umd.js +1 -0
  132. package/page-header/package.json +8 -0
  133. package/pagination/index.esm.js +147 -141
  134. package/pagination/index.umd.js +1 -1
  135. package/pagination/package.json +2 -2
  136. package/popover/index.esm.js +194 -59
  137. package/popover/index.umd.js +1 -1
  138. package/popover/package.json +2 -2
  139. package/popover/style.css +1 -1
  140. package/propress/index.esm.js +108 -0
  141. package/propress/index.umd.js +1 -0
  142. package/propress/package.json +8 -0
  143. package/propress/style.css +1 -0
  144. package/radio-group/index.esm.js +174 -59
  145. package/radio-group/index.umd.js +1 -1
  146. package/radio-group/package.json +2 -2
  147. package/rate/index.esm.js +168 -0
  148. package/rate/index.umd.js +1 -0
  149. package/rate/package.json +8 -0
  150. package/rate/style.css +1 -0
  151. package/response-toolbar/index.esm.js +433 -0
  152. package/response-toolbar/index.umd.js +1 -0
  153. package/response-toolbar/package.json +8 -0
  154. package/search-box/index.esm.js +208 -0
  155. package/search-box/index.umd.js +1 -0
  156. package/search-box/package.json +8 -0
  157. package/search-box/style.css +1 -0
  158. package/section/index.esm.js +341 -45
  159. package/section/index.umd.js +1 -1
  160. package/section/package.json +2 -2
  161. package/section/style.css +1 -0
  162. package/splitter/index.esm.js +491 -0
  163. package/splitter/index.umd.js +1 -0
  164. package/splitter/package.json +8 -0
  165. package/splitter/style.css +1 -0
  166. package/step/index.esm.js +117 -0
  167. package/step/index.umd.js +1 -0
  168. package/step/package.json +8 -0
  169. package/step/style.css +1 -0
  170. package/style.css +3 -3
  171. package/switch/index.esm.js +156 -40
  172. package/switch/index.umd.js +1 -1
  173. package/switch/package.json +2 -2
  174. package/switch/style.css +1 -0
  175. package/tabs/index.esm.js +1563 -311
  176. package/tabs/index.umd.js +1 -1
  177. package/tabs/package.json +2 -2
  178. package/tabs/style.css +1 -1
  179. package/tags/index.esm.js +287 -0
  180. package/tags/index.umd.js +1 -0
  181. package/tags/package.json +8 -0
  182. package/tags/style.css +1 -0
  183. package/text/package.json +2 -2
  184. package/time-picker/index.esm.js +1465 -0
  185. package/time-picker/index.umd.js +1 -0
  186. package/time-picker/package.json +8 -0
  187. package/time-picker/style.css +1 -0
  188. package/tooltip/package.json +2 -2
  189. package/transfer/index.esm.js +642 -0
  190. package/transfer/index.umd.js +1 -0
  191. package/transfer/package.json +8 -0
  192. package/transfer/style.css +1 -0
  193. package/tree-view/index.esm.js +701 -0
  194. package/tree-view/index.umd.js +1 -0
  195. package/tree-view/package.json +8 -0
  196. package/tree-view/style.css +1 -0
  197. package/types/accordion/index.d.ts +2 -0
  198. package/types/accordion/src/accordion.component.d.ts +2 -68
  199. package/types/accordion/src/accordion.props.d.ts +2 -33
  200. package/types/accordion/src/components/accordion-item.component.d.ts +2 -36
  201. package/types/accordion/src/components/accordion-item.props.d.ts +2 -17
  202. package/types/accordion/src/designer/accordion-item.design.component.d.ts +6 -0
  203. package/types/accordion/src/designer/accordion.design.component.d.ts +6 -0
  204. package/types/accordion/src/schema/schema-mapper.d.ts +2 -0
  205. package/types/button/src/button-group.component.d.ts +1 -1
  206. package/types/button/src/button.component.d.ts +7 -1
  207. package/types/button/src/button.props.d.ts +6 -0
  208. package/types/button-edit/index.d.ts +2 -0
  209. package/types/button-edit/src/button-edit.component.d.ts +2 -137
  210. package/types/button-edit/src/button-edit.props.d.ts +5 -119
  211. package/types/button-edit/src/components/button-group.component.d.ts +3 -0
  212. package/types/button-edit/src/components/popup-container.component.d.ts +4 -0
  213. package/types/button-edit/src/components/text-edit.component.d.ts +4 -0
  214. package/types/button-edit/src/composition/types.d.ts +15 -1
  215. package/types/button-edit/src/composition/use-button.d.ts +2 -2
  216. package/types/button-edit/src/composition/use-clear.d.ts +2 -2
  217. package/types/button-edit/src/composition/use-popup.d.ts +4 -0
  218. package/types/button-edit/src/composition/use-text-box.d.ts +2 -2
  219. package/types/button-edit/src/schema/schema-mapper.d.ts +2 -0
  220. package/types/{data-grid/src/composition/use-fit-column.d.ts → calculator/index.d.ts} +8 -5
  221. package/types/{combo-list/src/components/options.component.d.ts → calculator/src/calculator.component.d.ts} +2 -6
  222. package/types/calculator/src/calculator.props.d.ts +23 -0
  223. package/types/calculator/src/composition/use-calculator.d.ts +26 -0
  224. package/types/calendar/index.d.ts +21 -0
  225. package/types/calendar/src/calendar.props.d.ts +26 -0
  226. package/types/calendar/src/components/day/day-view.props.d.ts +34 -0
  227. package/types/calendar/src/components/header/header.props.d.ts +24 -0
  228. package/types/calendar/src/components/month/month-view.props.d.ts +69 -0
  229. package/types/calendar/src/components/week/week-view.component.d.ts +106 -0
  230. package/types/calendar/src/components/week/week-view.props.d.ts +51 -0
  231. package/types/calendar/src/composition/types.d.ts +57 -0
  232. package/types/calendar/src/composition/use-calendar.d.ts +2 -0
  233. package/types/calendar/src/composition/use-compare.d.ts +2 -0
  234. package/types/calendar/src/composition/use-date.d.ts +2 -0
  235. package/types/calendar/src/composition/use-event.d.ts +30 -0
  236. package/types/calendar/src/composition/use-month.d.ts +2 -0
  237. package/types/calendar/src/types/calendar.d.ts +13 -0
  238. package/types/calendar/src/types/common.d.ts +32 -0
  239. package/types/calendar/src/types/month-view.d.ts +23 -0
  240. package/types/calendar/src/types/month.d.ts +20 -0
  241. package/types/calendar/src/types/schedule.d.ts +35 -0
  242. package/types/capsule/index.d.ts +8 -0
  243. package/types/capsule/src/capsule.props.d.ts +67 -0
  244. package/types/checkbox/index.d.ts +1 -0
  245. package/types/checkbox/src/checkbox-group.component.d.ts +2 -146
  246. package/types/checkbox/src/checkbox-group.props.d.ts +2 -106
  247. package/types/checkbox/src/composition/types.d.ts +3 -3
  248. package/types/checkbox/src/schema/schema-mapper.d.ts +2 -0
  249. package/types/{combo-list/src/composition → color-picker}/index.d.ts +7 -3
  250. package/types/color-picker/src/color-picker.props.d.ts +62 -0
  251. package/types/color-picker/src/composition/class/base-color.class.d.ts +3 -0
  252. package/types/color-picker/src/composition/class/cmyk.class.d.ts +21 -0
  253. package/types/color-picker/src/composition/class/colors-table.class.d.ts +154 -0
  254. package/types/color-picker/src/composition/class/control.class.d.ts +47 -0
  255. package/types/color-picker/src/composition/class/helper.functions.d.ts +4 -0
  256. package/types/color-picker/src/composition/class/hsla.class.d.ts +21 -0
  257. package/types/color-picker/src/composition/class/hsva.class.d.ts +21 -0
  258. package/types/color-picker/src/composition/class/rgba.class.d.ts +21 -0
  259. package/types/{list-view/src/components/list-view-checkbox.component.d.ts → color-picker/src/composition/component/alpha.d.ts} +17 -17
  260. package/types/color-picker/src/composition/component/hue.d.ts +40 -0
  261. package/types/color-picker/src/composition/component/preset.d.ts +43 -0
  262. package/types/color-picker/src/composition/component/props/alpha.props.d.ts +16 -0
  263. package/types/color-picker/src/composition/component/props/hue.props.d.ts +19 -0
  264. package/types/color-picker/src/composition/component/props/preset.props.d.ts +20 -0
  265. package/types/color-picker/src/composition/component/props/sv-panel.props.d.ts +20 -0
  266. package/types/color-picker/src/composition/component/sv-panel.d.ts +43 -0
  267. package/types/combo-list/index.d.ts +2 -2
  268. package/types/combo-list/src/combo-list.props.d.ts +32 -263
  269. package/types/combo-list/src/components/list-container.props.d.ts +54 -0
  270. package/types/combo-list/src/composition/types.d.ts +10 -0
  271. package/types/combo-list/src/composition/use-data-source.d.ts +3 -0
  272. package/types/combo-list/src/designer/combo-list.design.component.d.ts +6 -0
  273. package/types/combo-list/src/schema/schema-mapper.d.ts +2 -0
  274. package/types/component/index.d.ts +26 -0
  275. package/types/component/src/component.props.d.ts +4 -0
  276. package/types/component/src/designer/types.d.ts +10 -0
  277. package/types/component/src/designer/use-designer-rules.d.ts +2 -0
  278. package/types/component/src/schema/schema-mapper.d.ts +2 -0
  279. package/types/{date-picker → condition}/index.d.ts +4 -8
  280. package/types/condition/src/composition/condition-value/checkbox-value.d.ts +13 -0
  281. package/types/condition/src/composition/condition-value/combo-lookup-value.d.ts +19 -0
  282. package/types/condition/src/composition/condition-value/date-picker-value.d.ts +25 -0
  283. package/types/condition/src/composition/condition-value/date-range-value.d.ts +18 -0
  284. package/types/condition/src/composition/condition-value/datetime-picker-value.d.ts +13 -0
  285. package/types/condition/src/composition/condition-value/dropdown-value.d.ts +18 -0
  286. package/types/condition/src/composition/condition-value/input-group-value.d.ts +21 -0
  287. package/types/condition/src/composition/condition-value/lookup-value.d.ts +21 -0
  288. package/types/condition/src/composition/condition-value/month-picker-value.d.ts +15 -0
  289. package/types/condition/src/composition/condition-value/month-range-value.d.ts +18 -0
  290. package/types/condition/src/composition/condition-value/number-range-value.d.ts +21 -0
  291. package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +13 -0
  292. package/types/condition/src/composition/condition-value/radio-group-value.d.ts +13 -0
  293. package/types/condition/src/composition/condition-value/text-value.d.ts +13 -0
  294. package/types/condition/src/composition/condition-value/types.d.ts +9 -0
  295. package/types/condition/src/composition/types.d.ts +41 -0
  296. package/types/condition/src/composition/use-compare.d.ts +40 -0
  297. package/types/condition/src/composition/use-condition-value.d.ts +2 -0
  298. package/types/condition/src/composition/use-condition.d.ts +2 -0
  299. package/types/condition/src/composition/use-field-config.d.ts +4 -0
  300. package/types/condition/src/composition/use-selection.d.ts +4 -0
  301. package/types/condition/src/condition.props.d.ts +58 -0
  302. package/types/condition/src/types.d.ts +144 -0
  303. package/types/{number-spinner/src/composition/use-data.d.ts → content-container/index.d.ts} +11 -4
  304. package/types/content-container/src/content-container.props.d.ts +4 -0
  305. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -0
  306. package/types/content-container/src/schema/schema-mapper.d.ts +2 -0
  307. package/types/data-grid/index.d.ts +3 -0
  308. package/types/data-grid/src/components/data/data-area.component.d.ts +1 -1
  309. package/types/data-grid/src/components/editors/commands.component.d.ts +18 -0
  310. package/types/data-grid/src/components/editors/date-picker.component.d.ts +3 -2
  311. package/types/data-grid/src/components/editors/text-area-editor.component.d.ts +3 -2
  312. package/types/data-grid/src/components/editors/text-editor.component.d.ts +3 -2
  313. package/types/data-grid/src/components/filter/boolean-filter-editor.component.d.ts +2 -0
  314. package/types/data-grid/src/components/filter/column-filter-container.component.d.ts +19 -0
  315. package/types/data-grid/src/components/filter/date-filter-editor.component.d.ts +2 -0
  316. package/types/data-grid/src/components/filter/enum-filter-editor.component.d.ts +3 -0
  317. package/types/data-grid/src/components/filter/list-filter-editor.component.d.ts +2 -0
  318. package/types/data-grid/src/components/filter/numeric-filter-editor.component.d.ts +2 -0
  319. package/types/data-grid/src/components/filter/text-filter-editor.component.d.ts +3 -0
  320. package/types/data-grid/src/components/group-panel/group-panel.component.d.ts +5 -0
  321. package/types/data-grid/src/components/header/data-grid-header-handler.component.d.ts +21 -0
  322. package/types/data-grid/src/components/header/data-grid-header.component.d.ts +2 -2
  323. package/types/data-grid/src/components/pagination/data-grid-pagination.component.d.ts +3 -3
  324. package/types/data-grid/src/components/scrollbar/horizontal-scrollbar.component.d.ts +1 -1
  325. package/types/data-grid/src/components/scrollbar/vertical-scrollbar.component.d.ts +1 -1
  326. package/types/data-grid/src/components/settings/data-grid-settings-icon.component.d.ts +21 -0
  327. package/types/data-grid/src/components/summary/data-grid-summary.component.d.ts +1 -1
  328. package/types/data-grid/src/composition/types.d.ts +137 -11
  329. package/types/data-grid/src/composition/use-column-filter.d.ts +3 -0
  330. package/types/data-grid/src/composition/use-column.d.ts +3 -0
  331. package/types/data-grid/src/composition/use-command-column.d.ts +3 -0
  332. package/types/data-grid/src/composition/use-data-view.d.ts +13 -3
  333. package/types/data-grid/src/composition/use-drag-column.d.ts +4 -0
  334. package/types/data-grid/src/composition/use-filter-history.d.ts +2 -0
  335. package/types/data-grid/src/composition/use-row.d.ts +18 -2
  336. package/types/data-grid/src/composition/use-selection.d.ts +3 -0
  337. package/types/data-grid/src/composition/use-sort.d.ts +3 -0
  338. package/types/data-grid/src/composition/use-virtual-scroll.d.ts +1 -1
  339. package/types/data-grid/src/composition/use-visual-data-bound.d.ts +2 -0
  340. package/types/data-grid/src/composition/use-visual-data-cell.d.ts +3 -0
  341. package/types/data-grid/src/composition/use-visual-data-row.d.ts +3 -0
  342. package/types/data-grid/src/composition/use-visual-data.d.ts +2 -2
  343. package/types/data-grid/src/composition/use-visual-summary-row.d.ts +3 -0
  344. package/types/data-grid/src/data-grid.props.d.ts +23 -161
  345. package/types/data-grid/src/schema/schema-mapper.d.ts +2 -0
  346. package/types/date-picker/src/components/calendar/calendar.component.d.ts +4 -4
  347. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +2 -2
  348. package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +11 -11
  349. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  350. package/types/date-picker/src/components/year/year.component.d.ts +2 -2
  351. package/types/date-picker/src/date-picker.component.d.ts +2 -332
  352. package/types/date-picker/src/date-picker.props.d.ts +2 -151
  353. package/types/date-picker/src/designer/date-picker.design.component.d.ts +6 -0
  354. package/types/date-picker/src/schema/schema-mapper.d.ts +2 -0
  355. package/types/designer-canvas/index.d.ts +8 -0
  356. package/types/designer-canvas/src/components/designer-item.props.d.ts +3 -0
  357. package/types/designer-canvas/src/components/designer-placeholder.props.d.ts +7 -0
  358. package/types/designer-canvas/src/components/maps.d.ts +3 -0
  359. package/types/designer-canvas/src/components/toolbox.props.d.ts +11 -0
  360. package/types/designer-canvas/src/composition/types.d.ts +27 -0
  361. package/types/designer-canvas/src/designer-canvas.props.d.ts +3 -0
  362. package/types/designer-canvas/src/types.d.ts +40 -0
  363. package/types/discussion-editor/discussion-editor.component.d.ts +121 -0
  364. package/types/discussion-editor/discussion-editor.props.d.ts +69 -0
  365. package/types/discussion-editor/index.d.ts +23 -0
  366. package/types/discussion-editor/src/composition/use-discussion-editor.d.ts +15 -0
  367. package/types/discussion-editor/src/types/interface.d.ts +22 -0
  368. package/types/discussion-list/discussion-list.component.d.ts +70 -0
  369. package/types/discussion-list/discussion-list.props.d.ts +52 -0
  370. package/types/discussion-list/index.d.ts +23 -0
  371. package/types/dropdown/index.d.ts +9 -0
  372. package/types/dropdown/src/composition/function/use-dropdown.d.ts +26 -0
  373. package/types/dropdown/src/composition/props/dropdown.item.props.d.ts +46 -0
  374. package/types/dropdown/src/composition/props/dropdown.props.d.ts +99 -0
  375. package/types/dropdown/src/dropdown.component.d.ts +179 -0
  376. package/types/dropdown/src/dropdown.item.component.d.ts +76 -0
  377. package/types/dropdown/src/types.d.ts +46 -0
  378. package/types/dynamic-form/index.d.ts +14 -0
  379. package/types/dynamic-form/src/component/dynamic-form-group/dynamic-form-group.props.d.ts +4 -0
  380. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +15 -0
  381. package/types/dynamic-form/src/composition/types.d.ts +5 -0
  382. package/types/dynamic-form/src/dynamic-form.props.d.ts +3 -0
  383. package/types/dynamic-form/src/schema/schema-mapper.d.ts +2 -0
  384. package/types/dynamic-form/src/types.d.ts +17 -0
  385. package/types/dynamic-resolver/index.d.ts +3 -0
  386. package/types/dynamic-resolver/src/common/appearance-resolver.d.ts +6 -0
  387. package/types/dynamic-resolver/src/props-resolver.d.ts +2 -0
  388. package/types/dynamic-resolver/src/schema-resolver.d.ts +5 -0
  389. package/types/dynamic-resolver/src/types.d.ts +1 -0
  390. package/types/dynamic-view/index.d.ts +8 -0
  391. package/types/dynamic-view/src/components/maps.d.ts +4 -0
  392. package/types/dynamic-view/src/dynamic-view.props.d.ts +15 -0
  393. package/types/filter-bar/index.d.ts +7 -0
  394. package/types/filter-bar/src/components/ellipsis-button.component.d.ts +3 -0
  395. package/types/filter-bar/src/components/filter-item.component.d.ts +5 -0
  396. package/types/filter-bar/src/components/toolbar-component.d.ts +4 -0
  397. package/types/filter-bar/src/composition/types.d.ts +14 -0
  398. package/types/filter-bar/src/composition/use-filter-items.d.ts +4 -0
  399. package/types/filter-bar/src/filter-bar.props.d.ts +53 -0
  400. package/types/filter-bar/src/types.d.ts +9 -0
  401. package/types/image-cropper/index.d.ts +23 -0
  402. package/types/image-cropper/src/composition/type.d.ts +44 -0
  403. package/types/image-cropper/src/composition/use-check-aspect-ratio.d.ts +2 -0
  404. package/types/image-cropper/src/composition/use-image-cropper.d.ts +20 -0
  405. package/types/image-cropper/src/image-cropper.component.d.ts +248 -0
  406. package/types/image-cropper/src/image-cropper.props.d.ts +153 -0
  407. package/types/index.d.ts +5 -0
  408. package/types/input-group/index.d.ts +25 -0
  409. package/types/input-group/src/components/appended-button.component.d.ts +4 -0
  410. package/types/input-group/src/components/text-edit.component.d.ts +4 -0
  411. package/types/input-group/src/composition/types.d.ts +37 -0
  412. package/types/input-group/src/composition/use-appended-button.d.ts +4 -0
  413. package/types/input-group/src/composition/use-clear.d.ts +4 -0
  414. package/types/input-group/src/composition/use-password.d.ts +4 -0
  415. package/types/input-group/src/composition/use-text-box.d.ts +4 -0
  416. package/types/input-group/src/input-group.props.d.ts +4 -0
  417. package/types/input-group/src/schema/schema-mapper.d.ts +2 -0
  418. package/types/list-nav/index.d.ts +23 -0
  419. package/types/list-nav/src/list-nav.component.d.ts +61 -0
  420. package/types/list-nav/src/list-nav.props.d.ts +51 -0
  421. package/types/list-view/src/components/header/content-header.component.d.ts +6 -0
  422. package/types/list-view/src/components/header/search-header.component.d.ts +6 -0
  423. package/types/list-view/src/components/list-view-checkbox.props.d.ts +7 -0
  424. package/types/list-view/src/composition/types.d.ts +40 -0
  425. package/types/list-view/src/composition/use-data-view.d.ts +4 -0
  426. package/types/list-view/src/composition/use-draggable.d.ts +4 -0
  427. package/types/list-view/src/composition/use-hover.d.ts +2 -0
  428. package/types/list-view/src/composition/use-item.d.ts +4 -0
  429. package/types/list-view/src/composition/use-remove.d.ts +4 -0
  430. package/types/list-view/src/composition/use-search.d.ts +5 -0
  431. package/types/list-view/src/composition/use-selection.d.ts +4 -0
  432. package/types/list-view/src/list-view.component.d.ts +157 -14
  433. package/types/list-view/src/list-view.props.d.ts +76 -7
  434. package/types/loading/index.d.ts +23 -0
  435. package/types/loading/src/composition/types.d.ts +19 -0
  436. package/types/{combo-list/src/components/option.component.d.ts → loading/src/loading.component.d.ts} +24 -22
  437. package/types/loading/src/loading.props.d.ts +35 -0
  438. package/types/loading/src/loading.service.d.ts +4 -0
  439. package/types/locale/src/lib/locale.service.d.ts +26 -0
  440. package/types/locale/src/lib/locales/en-us/avatar.d.ts +7 -0
  441. package/types/locale/src/lib/locales/en-us/batch-edit-dialog.d.ts +15 -0
  442. package/types/locale/src/lib/locales/en-us/collapse.d.ts +4 -0
  443. package/types/locale/src/lib/locales/en-us/combo.d.ts +4 -0
  444. package/types/locale/src/lib/locales/en-us/datagrid.d.ts +103 -0
  445. package/types/locale/src/lib/locales/en-us/discussion-group.d.ts +25 -0
  446. package/types/locale/src/lib/locales/en-us/filter-editor.d.ts +50 -0
  447. package/types/locale/src/lib/locales/en-us/filter-panel.d.ts +25 -0
  448. package/types/locale/src/lib/locales/en-us/footer.d.ts +4 -0
  449. package/types/locale/src/lib/locales/en-us/index.d.ts +568 -0
  450. package/types/locale/src/lib/locales/en-us/language-label.d.ts +8 -0
  451. package/types/locale/src/lib/locales/en-us/list-filter.d.ts +6 -0
  452. package/types/locale/src/lib/locales/en-us/list-view.d.ts +3 -0
  453. package/types/locale/src/lib/locales/en-us/loading.d.ts +3 -0
  454. package/types/locale/src/lib/locales/en-us/lookup-config.d.ts +38 -0
  455. package/types/locale/src/lib/locales/en-us/lookup.d.ts +48 -0
  456. package/types/locale/src/lib/locales/en-us/messager.d.ts +28 -0
  457. package/types/locale/src/lib/locales/en-us/multi-select.d.ts +15 -0
  458. package/types/locale/src/lib/locales/en-us/notify.d.ts +3 -0
  459. package/types/locale/src/lib/locales/en-us/numeric.d.ts +7 -0
  460. package/types/locale/src/lib/locales/en-us/page-walker.d.ts +6 -0
  461. package/types/locale/src/lib/locales/en-us/pagination.d.ts +17 -0
  462. package/types/locale/src/lib/locales/en-us/progress-step.d.ts +3 -0
  463. package/types/locale/src/lib/locales/en-us/query-condition.d.ts +33 -0
  464. package/types/locale/src/lib/locales/en-us/query-solution.d.ts +41 -0
  465. package/types/locale/src/lib/locales/en-us/response-toolbar.d.ts +3 -0
  466. package/types/locale/src/lib/locales/en-us/scrollspy.d.ts +3 -0
  467. package/types/locale/src/lib/locales/en-us/section.d.ts +4 -0
  468. package/types/locale/src/lib/locales/en-us/sidebar.d.ts +3 -0
  469. package/types/locale/src/lib/locales/en-us/sort-editor.d.ts +15 -0
  470. package/types/locale/src/lib/locales/en-us/tabs.d.ts +3 -0
  471. package/types/locale/src/lib/locales/en-us/tag.d.ts +4 -0
  472. package/types/locale/src/lib/locales/en-us/text.d.ts +10 -0
  473. package/types/locale/src/lib/locales/en-us/treetable.d.ts +8 -0
  474. package/types/locale/src/lib/locales/en-us/verify-detail.d.ts +5 -0
  475. package/types/locale/src/lib/locales/index.d.ts +1712 -0
  476. package/types/locale/src/lib/locales/zh-CHT/avatar.d.ts +7 -0
  477. package/types/locale/src/lib/locales/zh-CHT/batch-edit-dialog.d.ts +15 -0
  478. package/types/locale/src/lib/locales/zh-CHT/collapse.d.ts +4 -0
  479. package/types/locale/src/lib/locales/zh-CHT/combo.d.ts +4 -0
  480. package/types/locale/src/lib/locales/zh-CHT/datagrid.d.ts +103 -0
  481. package/types/locale/src/lib/locales/zh-CHT/discussion-group.d.ts +25 -0
  482. package/types/locale/src/lib/locales/zh-CHT/filter-editor.d.ts +50 -0
  483. package/types/locale/src/lib/locales/zh-CHT/filter-panel.d.ts +25 -0
  484. package/types/locale/src/lib/locales/zh-CHT/footer.d.ts +4 -0
  485. package/types/locale/src/lib/locales/zh-CHT/index.d.ts +568 -0
  486. package/types/locale/src/lib/locales/zh-CHT/language-label.d.ts +8 -0
  487. package/types/locale/src/lib/locales/zh-CHT/list-filter.d.ts +6 -0
  488. package/types/locale/src/lib/locales/zh-CHT/list-view.d.ts +3 -0
  489. package/types/locale/src/lib/locales/zh-CHT/loading.d.ts +3 -0
  490. package/types/locale/src/lib/locales/zh-CHT/lookup-config.d.ts +38 -0
  491. package/types/locale/src/lib/locales/zh-CHT/lookup.d.ts +48 -0
  492. package/types/locale/src/lib/locales/zh-CHT/messager.d.ts +28 -0
  493. package/types/locale/src/lib/locales/zh-CHT/multi-select.d.ts +15 -0
  494. package/types/locale/src/lib/locales/zh-CHT/notify.d.ts +3 -0
  495. package/types/locale/src/lib/locales/zh-CHT/numeric.d.ts +7 -0
  496. package/types/locale/src/lib/locales/zh-CHT/page-walker.d.ts +6 -0
  497. package/types/locale/src/lib/locales/zh-CHT/pagination.d.ts +17 -0
  498. package/types/locale/src/lib/locales/zh-CHT/progress-step.d.ts +3 -0
  499. package/types/locale/src/lib/locales/zh-CHT/query-condition.d.ts +33 -0
  500. package/types/locale/src/lib/locales/zh-CHT/query-solution.d.ts +41 -0
  501. package/types/locale/src/lib/locales/zh-CHT/response-toolbar.d.ts +3 -0
  502. package/types/locale/src/lib/locales/zh-CHT/scrollspy.d.ts +3 -0
  503. package/types/locale/src/lib/locales/zh-CHT/section.d.ts +4 -0
  504. package/types/locale/src/lib/locales/zh-CHT/sidebar.d.ts +3 -0
  505. package/types/locale/src/lib/locales/zh-CHT/sort-editor.d.ts +15 -0
  506. package/types/locale/src/lib/locales/zh-CHT/tabs.d.ts +3 -0
  507. package/types/locale/src/lib/locales/zh-CHT/tag.d.ts +4 -0
  508. package/types/locale/src/lib/locales/zh-CHT/text.d.ts +10 -0
  509. package/types/locale/src/lib/locales/zh-CHT/treetable.d.ts +8 -0
  510. package/types/locale/src/lib/locales/zh-CHT/verify-detail.d.ts +5 -0
  511. package/types/locale/src/lib/locales/zh-cn/avatar.d.ts +7 -0
  512. package/types/locale/src/lib/locales/zh-cn/batch-edit-dialog.d.ts +15 -0
  513. package/types/locale/src/lib/locales/zh-cn/collapse.d.ts +4 -0
  514. package/types/locale/src/lib/locales/zh-cn/combo.d.ts +4 -0
  515. package/types/locale/src/lib/locales/zh-cn/datagrid.d.ts +105 -0
  516. package/types/locale/src/lib/locales/zh-cn/discussion-group.d.ts +25 -0
  517. package/types/locale/src/lib/locales/zh-cn/filter-editor.d.ts +50 -0
  518. package/types/locale/src/lib/locales/zh-cn/filter-panel.d.ts +25 -0
  519. package/types/locale/src/lib/locales/zh-cn/footer.d.ts +4 -0
  520. package/types/locale/src/lib/locales/zh-cn/index.d.ts +574 -0
  521. package/types/locale/src/lib/locales/zh-cn/language-label.d.ts +8 -0
  522. package/types/locale/src/lib/locales/zh-cn/list-filter.d.ts +6 -0
  523. package/types/locale/src/lib/locales/zh-cn/list-view.d.ts +3 -0
  524. package/types/locale/src/lib/locales/zh-cn/loading.d.ts +3 -0
  525. package/types/locale/src/lib/locales/zh-cn/lookup-config.d.ts +38 -0
  526. package/types/locale/src/lib/locales/zh-cn/lookup.d.ts +48 -0
  527. package/types/locale/src/lib/locales/zh-cn/messager.d.ts +32 -0
  528. package/types/locale/src/lib/locales/zh-cn/multi-select.d.ts +15 -0
  529. package/types/locale/src/lib/locales/zh-cn/notify.d.ts +3 -0
  530. package/types/locale/src/lib/locales/zh-cn/numeric.d.ts +7 -0
  531. package/types/locale/src/lib/locales/zh-cn/page-walker.d.ts +6 -0
  532. package/types/locale/src/lib/locales/zh-cn/pagination.d.ts +17 -0
  533. package/types/locale/src/lib/locales/zh-cn/progress-step.d.ts +3 -0
  534. package/types/locale/src/lib/locales/zh-cn/query-condition.d.ts +33 -0
  535. package/types/locale/src/lib/locales/zh-cn/query-solution.d.ts +41 -0
  536. package/types/locale/src/lib/locales/zh-cn/response-toolbar.d.ts +3 -0
  537. package/types/locale/src/lib/locales/zh-cn/scrollspy.d.ts +3 -0
  538. package/types/locale/src/lib/locales/zh-cn/section.d.ts +4 -0
  539. package/types/locale/src/lib/locales/zh-cn/sidebar.d.ts +3 -0
  540. package/types/locale/src/lib/locales/zh-cn/sort-editor.d.ts +15 -0
  541. package/types/locale/src/lib/locales/zh-cn/tabs.d.ts +3 -0
  542. package/types/locale/src/lib/locales/zh-cn/tag.d.ts +4 -0
  543. package/types/locale/src/lib/locales/zh-cn/text.d.ts +10 -0
  544. package/types/locale/src/lib/locales/zh-cn/treetable.d.ts +8 -0
  545. package/types/locale/src/lib/locales/zh-cn/verify-detail.d.ts +5 -0
  546. package/types/message-box/src/components/footer/footer.component.d.ts +4 -0
  547. package/types/message-box/src/components/message-content/reactive-content.component.d.ts +3 -0
  548. package/types/message-box/src/components/message-content/static-content.component.d.ts +3 -0
  549. package/types/message-box/src/components/message-detail/exception-message.component.d.ts +3 -0
  550. package/types/message-box/src/components/message-detail/static-message.component.d.ts +2 -0
  551. package/types/message-box/src/components/reactive-editor/textarea.component.d.ts +3 -0
  552. package/types/message-box/src/composition/types.d.ts +9 -0
  553. package/types/message-box/src/composition/use-copy.d.ts +1 -17
  554. package/types/message-box/src/composition/use-editor.d.ts +4 -0
  555. package/types/message-box/src/composition/use-feedback.d.ts +2 -0
  556. package/types/message-box/src/message-box.component.d.ts +17 -21
  557. package/types/message-box/src/message-box.props.d.ts +8 -6
  558. package/types/modal/index.d.ts +2 -1
  559. package/types/modal/src/modal.component.d.ts +3 -3
  560. package/types/modal/src/modal.service.d.ts +17 -0
  561. package/types/{data-grid/src/composition/use-edit.d.ts → nav/index.d.ts} +8 -3
  562. package/types/nav/src/composition/types.d.ts +6 -0
  563. package/types/nav/src/nav.component.d.ts +87 -0
  564. package/types/nav/src/nav.props.d.ts +62 -0
  565. package/types/number-range/index.d.ts +1 -0
  566. package/types/number-range/src/components/spinner.component.d.ts +4 -0
  567. package/types/number-range/src/components/text-box.component.d.ts +4 -0
  568. package/types/number-range/src/composition/types.d.ts +31 -29
  569. package/types/number-range/src/composition/use-format.d.ts +4 -0
  570. package/types/number-range/src/composition/use-number.d.ts +4 -0
  571. package/types/number-range/src/composition/use-spinner.d.ts +4 -0
  572. package/types/number-range/src/composition/use-text-box.d.ts +4 -0
  573. package/types/number-range/src/number-range.component.d.ts +2 -245
  574. package/types/number-range/src/number-range.props.d.ts +3 -200
  575. package/types/number-range/src/schema/schema-mapper.d.ts +2 -0
  576. package/types/number-spinner/index.d.ts +2 -0
  577. package/types/number-spinner/src/components/spinner.component.d.ts +4 -0
  578. package/types/number-spinner/src/components/text-box.component.d.ts +4 -0
  579. package/types/number-spinner/src/composition/types.d.ts +33 -28
  580. package/types/number-spinner/src/composition/use-format.d.ts +4 -0
  581. package/types/number-spinner/src/composition/use-number.d.ts +4 -0
  582. package/types/number-spinner/src/composition/use-spinner.d.ts +4 -0
  583. package/types/number-spinner/src/composition/use-text-box.d.ts +4 -0
  584. package/types/number-spinner/src/designer/number-spinner.component.d.ts +6 -0
  585. package/types/number-spinner/src/number-spinner.component.d.ts +2 -200
  586. package/types/number-spinner/src/number-spinner.props.d.ts +3 -165
  587. package/types/number-spinner/src/schema/schema-mapper.d.ts +2 -0
  588. package/types/order/index.d.ts +8 -0
  589. package/types/order/src/order.props.d.ts +44 -0
  590. package/types/overlay/src/overlay.component.d.ts +6 -0
  591. package/types/overlay/src/overlay.props.d.ts +4 -1
  592. package/types/overlay/src/overlay.service.d.ts +16 -0
  593. package/types/page-footer/index.d.ts +8 -0
  594. package/types/page-footer/src/page-footer.props.d.ts +40 -0
  595. package/types/page-header/index.d.ts +10 -0
  596. package/types/page-header/src/page-header.props.d.ts +4 -0
  597. package/types/page-header/src/schema/schema-mapper.d.ts +2 -0
  598. package/types/pagination/src/components/pages/page-list.component.d.ts +1 -1
  599. package/types/pagination/src/pagination.components.d.ts +1 -1
  600. package/types/popover/src/composition/types.d.ts +24 -0
  601. package/types/popover/src/composition/use-host.d.ts +3 -0
  602. package/types/popover/src/composition/use-popup.d.ts +4 -0
  603. package/types/popover/src/composition/use-position.d.ts +4 -0
  604. package/types/popover/src/composition/use-resize.d.ts +4 -0
  605. package/types/popover/src/popover.component.d.ts +78 -0
  606. package/types/popover/src/popover.props.d.ts +37 -1
  607. package/types/propress/index.d.ts +8 -0
  608. package/types/propress/src/progress.props.d.ts +49 -0
  609. package/types/query-solution/index.d.ts +25 -0
  610. package/types/query-solution/src/designer/query-solution.design.component.d.ts +6 -0
  611. package/types/query-solution/src/query-solution.component.d.ts +6 -0
  612. package/types/query-solution/src/query-solution.d.ts +40 -0
  613. package/types/query-solution/src/query-solution.props.d.ts +19 -0
  614. package/types/query-solution/src/schema/preset-resolver.d.ts +5 -0
  615. package/types/query-solution/src/schema/schema-mapper.d.ts +2 -0
  616. package/types/radio-group/index.d.ts +1 -0
  617. package/types/radio-group/src/radio-group.component.d.ts +2 -89
  618. package/types/radio-group/src/radio-group.props.d.ts +2 -70
  619. package/types/radio-group/src/schema/schema-mapper.d.ts +2 -0
  620. package/types/{combo-list/src/composition/use-option.d.ts → rate/index.d.ts} +8 -4
  621. package/types/rate/src/rate.component.d.ts +124 -0
  622. package/types/rate/src/rate.props.d.ts +86 -0
  623. package/types/response-toolbar/index.d.ts +10 -0
  624. package/types/response-toolbar/src/components/dropdown/toolbar-dropdown-menu.component.d.ts +5 -0
  625. package/types/response-toolbar/src/components/dropdown/toolbar-dropdown.component.d.ts +7 -0
  626. package/types/response-toolbar/src/composition/types.d.ts +9 -0
  627. package/types/response-toolbar/src/composition/use-icon.d.ts +2 -0
  628. package/types/response-toolbar/src/composition/use-toolbar-item.d.ts +2 -0
  629. package/types/response-toolbar/src/response-toolbar.props.d.ts +26 -0
  630. package/types/response-toolbar/src/types/response-toolbar-dropdwon-item.d.ts +13 -0
  631. package/types/response-toolbar/src/types/response-toolbar-group.d.ts +19 -0
  632. package/types/response-toolbar/src/types/response-toolbar-item-base.d.ts +36 -0
  633. package/types/response-toolbar/src/types/response-toolbar-item.d.ts +4 -0
  634. package/types/search-box/index.d.ts +24 -0
  635. package/types/search-box/src/components/search-box-container.props.d.ts +21 -0
  636. package/types/search-box/src/schema/schema-mapper.d.ts +2 -0
  637. package/types/search-box/src/search-box.props.d.ts +4 -0
  638. package/types/section/index.d.ts +2 -0
  639. package/types/section/src/schema/schema-mapper.d.ts +2 -0
  640. package/types/section/src/section.component.d.ts +2 -185
  641. package/types/section/src/section.props.d.ts +3 -86
  642. package/types/splitter/index.d.ts +10 -0
  643. package/types/splitter/src/components/splitter-pane.props.d.ts +5 -0
  644. package/types/splitter/src/composition/types.d.ts +23 -0
  645. package/types/splitter/src/composition/use-resize-handle.d.ts +3 -0
  646. package/types/splitter/src/composition/use-resize-pane.d.ts +3 -0
  647. package/types/splitter/src/schema/splitter-pane-schema-mapper.d.ts +2 -0
  648. package/types/splitter/src/schema/splitter-schema-mapper.d.ts +2 -0
  649. package/types/splitter/src/splitter.props.d.ts +5 -0
  650. package/types/step/index.d.ts +8 -0
  651. package/types/step/src/step.props.d.ts +46 -0
  652. package/types/switch/index.d.ts +1 -0
  653. package/types/switch/src/schema/schema-mapper.d.ts +2 -0
  654. package/types/switch/src/switch.component.d.ts +2 -64
  655. package/types/switch/src/switch.props.d.ts +3 -35
  656. package/types/tabs/index.d.ts +2 -0
  657. package/types/tabs/src/components/more-pages-button.component.d.ts +5 -0
  658. package/types/tabs/src/components/tab-header-dropdown-menu.component.d.ts +5 -0
  659. package/types/tabs/src/components/tab-header-item.component.d.ts +4 -0
  660. package/types/tabs/src/components/tab-header.component.d.ts +4 -0
  661. package/types/tabs/src/components/tab-page.component.d.ts +2 -99
  662. package/types/tabs/src/components/tab-page.props.d.ts +3 -47
  663. package/types/tabs/src/composition/types.d.ts +36 -5
  664. package/types/tabs/src/composition/use-dropdown.d.ts +3 -0
  665. package/types/tabs/src/composition/use-nav.d.ts +4 -0
  666. package/types/tabs/src/composition/use-one-page.d.ts +4 -0
  667. package/types/tabs/src/composition/use-tabs.d.ts +3 -2
  668. package/types/tabs/src/schema/schema-mapper.d.ts +2 -0
  669. package/types/tabs/src/tabs.props.d.ts +5 -69
  670. package/types/tags/index.d.ts +8 -0
  671. package/types/tags/src/composition/types.d.ts +13 -0
  672. package/types/tags/src/composition/use-draggable.d.ts +4 -0
  673. package/types/tags/src/tags.props.d.ts +92 -0
  674. package/types/time-picker/index.d.ts +11 -0
  675. package/types/time-picker/src/components/time-holder.d.ts +82 -0
  676. package/types/time-picker/src/components/time.props.d.ts +48 -0
  677. package/types/time-picker/src/components/utils/check.d.ts +1 -0
  678. package/types/time-picker/src/schema/schema-mapper.d.ts +2 -0
  679. package/types/time-picker/src/time-picker.props.d.ts +4 -0
  680. package/types/transfer/index.d.ts +8 -0
  681. package/types/transfer/src/transfer.props.d.ts +71 -0
  682. package/types/tree-view/index.d.ts +8 -0
  683. package/types/tree-view/src/components/data/control-tree-view.component.d.ts +108 -0
  684. package/types/tree-view/src/components/data/tree-area.component.d.ts +8 -0
  685. package/types/tree-view/src/composition/types.d.ts +97 -0
  686. package/types/tree-view/src/composition/use-auto-check-children-and-cascade.d.ts +4 -0
  687. package/types/tree-view/src/composition/use-tree-data-view.d.ts +21 -0
  688. package/types/tree-view/src/composition/use-tree-node-icon.d.ts +4 -0
  689. package/types/tree-view/src/composition/use-tree-node-lines.d.ts +3 -0
  690. package/types/tree-view/src/composition/use-visual-tree-node.d.ts +9 -0
  691. package/types/tree-view/src/control-tree-view.props.d.ts +58 -0
  692. package/types/tree-view/src/tree-view.component.d.ts +97 -0
  693. package/types/tree-view/src/tree-view.props.d.ts +54 -0
  694. package/types/uploader/index.d.ts +25 -0
  695. package/types/uploader/src/components/sub-component.props.d.ts +63 -0
  696. package/types/uploader/src/components/upload-progress.component.d.ts +41 -0
  697. package/types/uploader/src/composition/type.d.ts +135 -0
  698. package/types/uploader/src/service/get-service.d.ts +2 -0
  699. package/types/uploader/src/uploader.props.d.ts +156 -0
  700. package/types/verify-detail/index.d.ts +23 -0
  701. package/types/verify-detail/src/verify-detail.component.d.ts +70 -0
  702. package/types/verify-detail/src/verify-detail.props.d.ts +36 -0
  703. package/uploader/index.esm.js +1972 -0
  704. package/uploader/index.umd.js +17 -0
  705. package/uploader/package.json +8 -0
  706. package/uploader/style.css +1 -0
  707. package/verify-detail/index.esm.js +187 -0
  708. package/verify-detail/index.umd.js +1 -0
  709. package/verify-detail/package.json +8 -0
  710. package/verify-detail/style.css +1 -0
  711. package/types/combo-list/src/combo-list.component.d.ts +0 -232
  712. package/types/combo-list/src/components/panel.component.d.ts +0 -25
  713. package/types/combo-list/src/composition/use-combo-list.d.ts +0 -30
  714. package/types/combo-list/src/composition/use-options.d.ts +0 -2
  715. package/types/combo-list/src/composition/use-panel.d.ts +0 -8
  716. package/types/combo-list/src/const.d.ts +0 -40
  717. package/types/combo-list/src/types.d.ts +0 -186
  718. package/types/data-grid/src/data-grid.component.d.ts +0 -278
  719. package/types/message-box/src/message-box.service.d.ts +0 -20
  720. package/types/number-range/src/composition/use-data.d.ts +0 -19
  721. package/types/number-range/src/composition/use-util.d.ts +0 -19
  722. package/types/number-spinner/src/composition/use-util.d.ts +0 -19
  723. package/types/tabs/src/tabs.component.d.ts +0 -151
@@ -1 +1 @@
1
- (function(m,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(m=typeof globalThis<"u"?globalThis:m||self,t(m["button-edit"]={},m.Vue))})(this,function(m,t){"use strict";const w={id:String,buttonContent:{type:String,default:'<i class="f-icon f-icon-lookup"></i>'},autoComplete:{type:Boolean,default:!1},customClass:{type:String,default:""},disable:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},enableClear:{type:Boolean,default:!1},modelValue:{type:String,default:""},readonly:{type:Boolean,default:!1},textAlign:{type:String,default:"left"},showButtonWhenDisabled:{type:Boolean,default:!1},enableTitle:{type:Boolean,default:!1},inputType:{type:String,default:"text"},forcePlaceholder:{type:Boolean,default:!1},placeholder:{type:String,default:""},minLength:Number,maxLength:Number,tabIndex:Number};function P(e,o,l){const f=t.computed(()=>({"input-group-append":!0,"append-force-show":e.showButtonWhenDisabled&&(e.readonly||e.disable)})),u=t.computed(()=>e.showButtonWhenDisabled||(!e.editable||!e.readonly)&&!e.disable);function a(c){u.value&&(l.value=!0,o.emit("clickButton",{origin:c,value:e.modelValue})),c.stopPropagation()}function i(c){o.emit("mouseEnterIcon",c)}function s(c){o.emit("mouseLeaveIcon",c)}function d(){o.emit("mouseOverButton")}return{buttonClass:f,onClickButton:a,onMouseEnterButton:i,onMouseLeaveButton:s,onMouseOverButton:d}}function M(e,o,l,f){const u=t.computed(()=>e.enableTitle?l.value:""),a=t.computed(()=>(e.disable||e.readonly)&&!e.forcePlaceholder?"":e.placeholder),i=t.computed(()=>e.readonly||!e.editable);let s=!1;const d=t.computed(()=>!e.disable&&s),c=t.computed(()=>({"text-left":e.textAlign==="left","text-center":e.textAlign==="center","text-right":e.textAlign==="right","form-control":!0,"f-utils-fill":!0}));function x(n,r=!0){l.value!==n&&(l.value=n,r&&o.emit("change",n),o.emit("update:modelValue",n))}t.watch(()=>e.modelValue,n=>{l.value=n,o.emit("change",n)});function g(n){s=!1,o.emit("blur",n),n.stopPropagation()}function B(n){o.emit("click",n)}function b(n){if(e.disable){s=!0;return}s=!0,i.value||o.emit("focus",n)}function y(n){o.emit("input",n.target.value);const r=n.target.value;f.value=r,l.value!==r&&x(r,!1)}function T(n){n.target.tagName!=="INPUT"&&n.preventDefault(),n.stopPropagation()}function v(n){o.emit("keydown",n)}function k(n){o.emit("keyup",n)}function V(n){const r=n.target.value;x(r)}return{hasFocusedTextBox:d,isTextBoxReadonly:i,textBoxClass:c,textBoxPlaceholder:a,textBoxTitle:u,changeTextBoxValue:x,onBlurTextBox:g,onClickTextBox:B,onFocusTextBox:b,onInput:y,onKeyDownTextBox:v,onKeyUpTextBox:k,onMouseDownTextBox:T,onTextBoxValueChange:V}}function N(e,o,l,f,u){const a=t.ref(!1),i=t.computed(()=>e.enableClear&&!e.readonly&&!e.disable),{changeTextBoxValue:s}=M(e,o,l,u);function d(B){a.value=B}t.watch(u,()=>{f.value?d(!!u.value):d(!1)});function c(B){const b=!e.readonly&&!e.disable&&e.editable,y=!e.editable;B.stopPropagation(),(b||y)&&(s("",!1),d(!a.value),o.emit("clear"))}function x(B){if(i.value){if(!l.value){d(!1);return}(!e.editable||!e.readonly)&&!e.disable&&d(!0)}}function g(B){i.value&&d(!1)}return{enableClearButton:i,showClearButton:a,onClearValue:c,onMouseEnterTextBox:x,onMouseLeaveTextBox:g}}const E={popupContentPosition:{type:Object,default:{left:0,top:0}}},S=t.defineComponent({name:"FOverlay",props:E,emits:["click"],setup(e,o){const l=t.ref(e.popupContentPosition);function f(a){o.emit("click"),a.preventDefault(),a.stopPropagation()}const u=t.computed(()=>({position:"relative",left:`${l.value.left}px`,top:`${l.value.top}px`}));return()=>t.createVNode(t.Teleport,{to:"body"},{default:()=>{var a,i;return[t.createVNode("div",{class:"overlay-container",style:"pointer-events: auto;",onClick:s=>f(s)},[t.createVNode("div",{style:u.value},[(i=(a=o.slots).default)==null?void 0:i.call(a)])])]}})}}),p=t.defineComponent({name:"FButtonEdit",props:w,emits:["updateExtendInfo","clear","change","click","clickButton","blur","focus","mouseEnterIcon","mouseLeaveIcon","keyup","keydown","inputClick","input","update:modelValue"],setup(e,o){const l=t.ref(),f=t.ref(e.modelValue),u=t.ref(!1),{buttonClass:a,onClickButton:i,onMouseEnterButton:s,onMouseLeaveButton:d}=P(e,o,u),c=t.ref(""),{hasFocusedTextBox:x,isTextBoxReadonly:g,textBoxClass:B,textBoxPlaceholder:b,textBoxTitle:y,onBlurTextBox:T,onClickTextBox:v,onFocusTextBox:k,onInput:V,onKeyDownTextBox:n,onKeyUpTextBox:r,onMouseDownTextBox:L,onTextBoxValueChange:O}=M(e,o,f,c),{enableClearButton:D,showClearButton:F,onClearValue:K,onMouseEnterTextBox:j,onMouseLeaveTextBox:A}=N(e,o,f,x,c),R=t.computed(()=>({"input-group":!0,"f-state-disable":e.disable,"f-state-editable":e.editable&&!e.disable&&!e.readonly,"f-state-readonly":e.readonly&&!e.disable,"f-state-focus":x}));function U(){u.value=!1}const W=t.computed(()=>u.value),_=()=>{if(l.value){const C=l.value.getBoundingClientRect(),{left:h,top:G,height:H}=C;return{left:h,top:G+H}}return{left:0,top:0}};function q(C){u.value=!1}return o.expose({commitValue:q}),()=>t.createVNode(t.Fragment,null,[t.createVNode("div",t.mergeProps(o.attrs,{ref:l,class:"f-cmp-inputgroup",id:e.id}),[t.createVNode("div",{class:[e.customClass,R.value],onMouseenter:j,onMouseleave:A},[t.createVNode("input",{name:"input-group-value",autocomplete:""+e.autoComplete,class:B.value,disabled:e.disable,maxlength:e.maxLength,minlength:e.minLength,placeholder:b.value,readonly:g.value,tabindex:e.tabIndex,title:y.value,type:e.inputType,value:f.value,onBlur:T,onChange:O,onClick:v,onFocus:k,onInput:V,onKeydown:n,onKeyup:r,onMousedown:L},null),t.createVNode("div",{class:a.value},[D.value&&t.withDirectives(t.createVNode("span",{class:"input-group-text input-group-clear",onClick:K},[t.createVNode("i",{class:"f-icon modal_close"},null)]),[[t.vShow,F.value]]),e.buttonContent&&t.createVNode("span",{class:"input-group-text input-group-append-button",onClick:i,onMouseenter:s,onMouseleave:d,innerHTML:e.buttonContent},null)])])]),W.value&&t.createVNode(S,{"popup-content-position":_(),onClick:U},{default:()=>{var C,h;return[(h=(C=o.slots).default)==null?void 0:h.call(C)]}})])}}),I={install(e){e.component(p.name,p)}};m.ButtonEdit=p,m.buttonEditProps=w,m.default=I,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(j,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(j=typeof globalThis<"u"?globalThis:j||self,t(j["button-edit"]={},j.Vue))})(this,function(j,t){"use strict";const te={};function K(e){const{properties:n}=e;return Object.keys(n).reduce((i,o)=>(i[o]=n[o].type==="object"&&n[o].properties?K(n[o]):n[o].default,i),{})}function ne(e,n){const l=K(n);return Object.keys(e).reduce((i,o)=>(i[o]=e[o],i),l),l}function oe(e,n){return Object.keys(e).filter(i=>e[i]!=null).reduce((i,o)=>{if(n.has(o)){const r=n.get(o);if(typeof r=="string")i[r]=e[o];else{const d=r(o,e[o]);Object.assign(i,d)}}else i[o]=e[o];return i},{})}function ae(e,n,l=new Map){const i=ne(e,n);return oe(i,l)}function le(e,n,l=new Map){return te[n.title]=n,i=>{const o=ae(i,n,l),r=Object.keys(e).reduce((d,s)=>(d[s]=e[s].default,d),{});return Object.assign(r,o)}}function ie(e,n){return{customClass:n.class}}const se=new Map([["appearance",ie]]),ue={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/button-edit.schema.json",title:"button-edit",description:"A Farris Input Component",type:"object",properties:{id:{description:"The unique identifier for a Input Group",type:"string"},type:{description:"The type string of Input Group component",type:"string",default:"button-edit"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},binding:{description:"",type:"object",default:{}},disable:{type:"string",default:!1},editable:{description:"",type:"boolean",default:!0},enableLinkLabel:{description:"",type:"boolean",default:!1},label:{description:"",type:"string",default:""},lableWidth:{description:"",type:"number"},placeHolder:{description:"",type:"string",default:""},readonly:{description:"",type:"boolean",default:!1},require:{description:"",type:"boolean",default:!1},tabindex:{description:"",type:"number",default:-1},textAlign:{description:"",type:"string",enum:["left","middle","right"],default:"left"},visible:{description:"",type:"boolean",default:!0},onBlur:{description:"",type:"string",default:""},onClickLinkLabel:{description:"",type:"sting",default:""},autoComplete:{description:"",type:"boolean",default:!1},buttonContent:{description:"",type:"string",default:""},enableClear:{description:"",type:"boolean",default:!0},inputType:{description:"",type:"string",enum:["text","tag"],default:"text"},multiSelect:{description:"",type:"boolean",default:!1},popup:{description:"",type:"object",properties:{footerButtons:{type:"array",default:[]},height:{type:"number",default:600},dataMapping:{type:"object"},contents:{type:"array",default:[]},showMaxButton:{type:"boolean",default:!0},showCloseButton:{type:"boolean",default:!0},showFooter:{type:"boolean",default:!0},title:{type:"string",default:""},width:{type:"number",default:800}}},separator:{type:"string",default:","},showButtonWhenDisabled:{description:"",type:"boolean",default:!1},wrapText:{type:"boolean",default:!1},onClear:{description:"",type:"string",default:""}},required:["id","type"]},G={id:String,buttonContent:{type:String,default:'<i class="f-icon f-icon-lookup"></i>'},buttonBehavior:{type:String,default:"Popup"},autoComplete:{type:Boolean,default:!1},customClass:{type:String,default:""},disable:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},enableClear:{type:Boolean,default:!1},modelValue:{type:String,default:""},readonly:{type:Boolean,default:!1},textAlign:{type:String,default:"left"},showButtonWhenDisabled:{type:Boolean,default:!1},enableTitle:{type:Boolean,default:!1},inputType:{type:String,default:"text"},forcePlaceholder:{type:Boolean,default:!1},placeholder:{type:String,default:""},minLength:Number,maxLength:Number,tabIndex:Number,popupHost:{type:Object},popupRightBoundary:{type:Object},popupOffsetX:{type:Object},popupOnInput:{type:Boolean,default:!1},popupOnFocus:{type:Boolean,default:!1},popupMinWidth:{type:Number,default:320},wrapText:{type:Boolean,default:!1},multiSelect:{type:Boolean,default:!1},separator:{type:String,default:","}},U=le(G,ue,se),re={popupContentPosition:{type:Object,default:{left:0,top:0}},host:{type:Object}},ce=t.defineComponent({name:"FOverlay",props:re,emits:["click"],setup(e,n){const l=t.ref(e.popupContentPosition),i=t.ref(e.host);function o(s){n.emit("click"),s.preventDefault(),s.stopPropagation()}const r=t.computed(()=>{const s=i.value;if(s){const y=s.getBoundingClientRect(),{left:f,top:m,height:g}=y;return{left:f,top:m+g}}return l.value}),d=t.computed(()=>({position:"relative",left:`${r.value.left}px`,top:`${r.value.top}px`}));return()=>t.createVNode(t.Teleport,{to:"body"},{default:()=>{var s,y;return[t.createVNode("div",{class:"overlay-container",style:"pointer-events: auto;",onClick:f=>o(f)},[t.createVNode("div",{style:d.value},[(y=(s=n.slots).default)==null?void 0:y.call(s)])])]}})}});function de(e){if(e.content&&e.content.render)return e.content.render;if(e.render&&typeof e.render=="function")return e.render}function fe(e){const n=document.createElement("div");n.style.display="contents";let l;const i=e.onClickCallback||(()=>{}),o=()=>{i(),l&&l.unmount()};return l=t.createApp({setup(){t.onUnmounted(()=>{document.body.removeChild(n)});const r=de(e);return()=>t.createVNode(ce,{"popup-content-position":e.popupPosition,host:e.host,onClick:o},{default:()=>[r&&r()]})}}),document.body.appendChild(n),l.mount(n),l}class pe{static show(n){return fe(n)}}function ge(e,n,l,i){const o=t.ref(e.buttonBehavior),r=t.ref(e.popupOnInput),d=t.computed(()=>({"input-group-append":!0,"append-force-show":e.showButtonWhenDisabled&&(e.readonly||e.disable)})),s=t.computed(()=>e.showButtonWhenDisabled||(!e.editable||!e.readonly)&&!e.disable);async function y(v){if(s.value){const C=!!n.slots.default;o.value==="Overlay"&&pe.show({host:l.value,render:()=>{if(n.slots.default)return n.slots.default()}}),C&&o.value==="Popup"&&i.togglePopup(),C&&r.value&&i.hidePopup(),n.emit("clickButton",{origin:v,value:e.modelValue})}v.stopPropagation()}function f(v){n.emit("mouseEnterIcon",v)}function m(v){n.emit("mouseLeaveIcon",v)}function g(){n.emit("mouseOverButton")}return{buttonClass:d,onClickButton:y,onMouseEnterButton:f,onMouseLeaveButton:m,onMouseOverButton:g}}function me(e,n,l,i,o,r){const d=t.ref(!1),s=t.computed(()=>e.enableClear&&!e.readonly&&!e.disable),{changeTextBoxValue:y}=r;function f(C){d.value=C}t.watch(o,()=>{i.value?f(!!o.value):f(!1)});function m(C){const T=!e.readonly&&!e.disable&&e.editable,b=!e.editable;C.stopPropagation(),(T||b)&&(y("",!1),f(!d.value),n.emit("clear"))}function g(C){if(s.value){if(!l.value){f(!1);return}(!e.editable||!e.readonly)&&!e.disable&&f(!0)}}function v(C){s.value&&f(!1)}return{enableClearButton:s,showClearButton:d,onClearValue:m,onMouseEnterTextBox:g,onMouseLeaveTextBox:v}}function he(e,n,l,i,o){const r=t.ref(e.popupOnInput),d=t.ref(e.popupOnFocus),{shouldPopupContent:s}=o,y=t.computed(()=>e.enableTitle?l.value:""),f=t.computed(()=>(e.disable||e.readonly)&&!e.forcePlaceholder?"":e.placeholder),m=t.computed(()=>e.readonly||!e.editable);let g=!1;const v=t.computed(()=>!e.disable&&g),C=t.computed(()=>({"text-left":e.textAlign==="left","text-center":e.textAlign==="center","text-right":e.textAlign==="right","form-control":!0,"f-utils-fill":!0})),T=t.computed(()=>({"input-group":!0,"f-state-disable":e.disable,"f-state-editable":e.editable&&!e.disable&&!e.readonly,"f-state-readonly":e.readonly&&!e.disable,"f-state-focus":v.value}));function b(p,V=!0){l.value!==p&&(l.value=p,V&&n.emit("change",p),n.emit("update:modelValue",p))}function M(p){s.value=!1,b(p,!0)}t.watch(()=>e.modelValue,p=>{l.value=p,n.emit("change",p)});function P(p){g=!1,n.emit("blur",p),p.stopPropagation()}function I(p){n.emit("click",p)}function w(p){if(e.disable){g=!0;return}g=!0,m.value||(n.emit("focus",p),d.value&&!s.value&&o.popup())}function O(p){n.emit("input",p.target.value);const V=p.target.value;i.value=V,l.value!==V&&b(V,!1),r.value&&!s.value&&o.popup()}function L(p){p.target.tagName!=="INPUT"&&p.preventDefault(),p.stopPropagation()}function R(p){n.emit("keydown",p)}function D(p){p.key==="Enter"&&(r.value||d.value)&&o.hidePopup(),n.emit("keyup",p)}function S(p){const V=p.target.value;p.stopPropagation(),b(V)}return{hasFocusedTextBox:v,isTextBoxReadonly:m,textBoxClass:C,textBoxPlaceholder:f,textBoxTitle:y,inputGroupClass:T,changeTextBoxValue:b,commitValue:M,onBlurTextBox:P,onClickTextBox:I,onFocusTextBox:w,onInput:O,onKeyDownTextBox:R,onKeyUpTextBox:D,onMouseDownTextBox:L,onTextBoxValueChange:S}}function ye(e,n,l){const i=t.ref(),o=t.ref(!1);function r(){const f=i.value;f&&f.show(l.value)}async function d(){!!n.slots.default&&(o.value=!o.value,await t.nextTick(),r())}async function s(){!!n.slots.default&&(o.value=!0,await t.nextTick(),r())}function y(){o.value=!1}return{hidePopup:y,popup:s,shouldPopupContent:o,togglePopup:d,popoverRef:i}}function ve(e,n,l){const{isTextBoxReadonly:i,textBoxClass:o,textBoxPlaceholder:r,textBoxTitle:d,onBlurTextBox:s,onClickTextBox:y,onFocusTextBox:f,onInput:m,onKeyDownTextBox:g,onKeyUpTextBox:v,onMouseDownTextBox:C,onTextBoxValueChange:T}=l;return()=>t.createVNode("input",{name:"input-group-value",autocomplete:e.autoComplete?"on":"off",class:o.value,disabled:e.disable,maxlength:e.maxLength,minlength:e.minLength,placeholder:r.value,readonly:i.value,tabindex:e.tabIndex,title:d.value,type:e.inputType,value:n.value,onBlur:s,onChange:T,onClick:y,onFocus:f,onInput:m,onKeydown:g,onKeyup:v,onMousedown:C},null)}const be={activeTag:{Type:String,default:""},addButtonText:{Type:String,default:""},customClass:{Type:String,default:""},customStyle:{Type:String,default:""},data:{type:Array,default:[]},enableAddButton:{Type:Boolean,default:!1},placeholder:{Type:String,default:""},selectable:{Type:Boolean,default:!1},showAddButton:{Type:Boolean,default:!1},showClose:{Type:Boolean,default:!1},showColor:{Type:Boolean,default:!1},showInput:{Type:Boolean,default:!1},tagType:{Type:String,default:""},tagStyle:{Type:String,default:""},wrapText:{Type:Boolean,default:!1},draggable:{Type:Boolean,default:!1}},Je="";function Be(e,n,l,i){const o=t.ref(-1),r=t.ref(!1);function d(m,g,v){m.stopPropagation(),g&&setTimeout(()=>{o.value=v,r.value=!0,g.moving=!0})}function s(m,g){if(m.preventDefault(),o.value!==g){const v=i.value[o.value],C=i.value;C.splice(o.value,1),C.splice(g,0,v),o.value=g}}function y(m,g){m.preventDefault(),m.dataTransfer&&(m.dataTransfer.dropEffect="move")}function f(m,g){g&&(g.moving=!1),l.value=i.value.filter(v=>v.type==="Tag").map(v=>v.payload),r.value=!1,n.emit("change",l.value)}return{dragstart:d,dragenter:s,dragover:y,dragend:f,isDragging:r}}const Ce=t.defineComponent({name:"FTags",props:be,emits:["remove","selectionChange","change"],setup(e,n){const l=t.ref(e.selectable),i=t.ref(e.customClass),o=t.ref(e.data),r=t.ref(e.tagType),d=t.ref(e.tagStyle),s=t.ref(e.showColor),y=t.ref(e.activeTag),f=t.ref(e.customStyle),m=t.ref(e.showClose),g=t.ref(e.showAddButton),v=t.ref(e.showInput),C=t.ref(e.addButtonText),T=t.ref(e.enableAddButton);t.ref(e.placeholder),t.ref(""),t.ref();const b=t.ref(),M=t.ref(e.wrapText),P=t.ref();function I(){const a=o.value.map(u=>({type:"Tag",payload:u}));return g.value&&a.push({type:"AddButton"}),a}const w=t.ref(I());function O(a){o.value=a,w.value=I()}const L=t.computed(()=>w.value.findIndex(a=>a.type==="Input")),R=Be(e,n,o,w),{dragstart:D,dragenter:S,dragover:p,dragend:V}=R;t.watch(()=>e.data,a=>O(a));const _=t.computed(()=>{const a={"farris-tags":!0,"farris-tags-checkable":l.value,"farris-tags-nowrap":!M.value};return i.value.split(" ").reduce((u,c)=>(u[c]=!0,u),a),a});function H(a){const u={"farris-tag-item":!0,"farris-tag-item-checked":l.value&&a.checked,"farris-tag-item-checkable":l.value,"farris-tag-item-has-color":s.value,"farris-tag-item-actived":y.value===a.name};if(r.value){const c=`farris-tag-item-${r.value}`;u[c]=!0}return u}const J=t.computed(()=>{const a={};return f.value&&f.value.split(";").reduce((u,c)=>{const k=c.split(":");return u[k[0]]=k[1],u},a),a});function z(a,u){l.value&&u.selectable&&(u.checked=!u.checked,y.value=u.checked?u.name:"",u.checked&&o.value.filter(c=>c.name!==u.name).forEach(c=>{c.checked=!u.checked}),n.emit("change",o.value),n.emit("selectionChange",u))}function h(a,u){let c;switch(a.key){case"Backspace":o.value=o.value.filter(k=>k.name!==u.name),n.emit("change",o.value);break;case"ArrowLeft":c=Math.max(b.value.scrollLeft+20,0),b.value.scrollLeft=c;break;case"ArrowRight":c=Math.max(b.value.scrollLeft-20,0),b.value.scrollLeft=c}}function B(a,u){const c=o.value.findIndex(k=>k.name===u.name);if(c>-1){const[k]=o.value.splice(c,1);w.value=I(),n.emit("change",o.value),n.emit("remove",o.value,k,c)}a.stopPropagation()}const x=t.computed(()=>({"farris-tag-item":!0,"farris-tag-add-button":!0,"farris-tag-add-button-disabled":!T.value}));function A(a){}function N(){return t.createVNode("li",{class:x.value,onClick:a=>void 0},[t.createVNode("span",{class:"f-icon f-icon-amplification"},null),t.createVNode("span",{class:"farris-tag-add-text"},[C.value])])}function W(a){if(a&&!a.innerText){const u=L.value;if(u>0){const[c]=o.value.splice(u-1,1);w.value.splice(u-1,1),n.emit("remove",o.value,c,u-1)}}}function X(a,u,c){a>-1&&(o.value.splice(a,0,{name:u,value:c,selectable:l.value}),w.value=I(),n.emit("change",o.value))}function q(a){if(a&&a.innerText){const u=a.innerText,c=L.value;X(c,u,u),a.innerText=""}}function Q(a){const u=a.target;u&&(u.innerText?q(u):n.emit("change",o.value))}function Ve(a){a.key==="Enter"&&q(a.target),a.key==="Backspace"&&(W(a.target),t.nextTick(()=>{P.value&&P.value.focus()}))}function Ne(){return t.createVNode("li",{class:"farris-tag-input-box"},[t.createVNode("div",{ref:P,class:"form-control",contenteditable:"true",onKeyup:Ve,onBlur:Q},null)])}function je(a,u){return t.createVNode("li",{class:H(a),style:J.value,tabindex:0,id:a.name,key:a.name,onClick:c=>z(c,a),onKeydown:c=>h(c,a),draggable:"true",onDragstart:c=>D(c,a,u),onDragenter:c=>S(c,u),onDragend:c=>V(c,a),onDragover:c=>p(c,u)},[t.createVNode("div",{title:a.name,class:"tag-box"},[a.name]),m.value&&t.createVNode("span",{class:"tag-delete"},[t.createVNode("i",{class:"f-icon f-icon-close",onClick:c=>B(c,a)},null)])])}function Me(){return w.value.map((a,u)=>{switch(a.type){case"Tag":return je(a.payload,u);case"AddButton":return N();case"Input":return Ne()}})}const De=t.computed(()=>({"farris-tags-item-container":!0,"farris-tag-item-capsule":d.value==="capsule"}));function Ae(a){const u=Math.max(b.value.scrollLeft-a.deltaX,0);b.value.scrollLeft=u}function We(a){const u=b.value,c=o.value.length-1;if(u){const k=Array.from(u.children).filter(E=>E.className.indexOf("farris-tag-item")>-1).findIndex(E=>{const F=E.getBoundingClientRect(),Y=window.getComputedStyle(E),ee=parseInt(Y["margin-left"],10)+F.width+parseInt(Y["margin-right"],10);return F.left+ee>a});if(k>-1)return k}return c}function Ee(a){if(v.value){const c=We(a.clientX)+1,E=w.value.filter(F=>F.type!=="Input");E.splice(c,0,{type:"Input"}),w.value=E,t.nextTick(()=>{P.value&&P.value.focus()})}}function Fe(a){var c;a.preventDefault(),a.stopPropagation();const u=(c=a.dataTransfer)==null?void 0:c.getData("Text");if(u){const k=u.split(":"),E=k[0],F=k[1];[...o.value].findIndex(Z=>(console.log(`${Z.value} === ${F} is ${Z.value===F}`),Z.value===F))>-1||X(o.value.length,E,F)}}function Xe(a){a.preventDefault()}return()=>t.createVNode("div",{class:_.value,onClick:Ee,onDrop:Fe,onDragover:Xe},[t.createVNode("ul",{ref:b,class:De.value,onWheel:a=>Ae(a)},[Me()])])}});function Te(e,n,l){const i=t.ref(e.separator),{changeTextBoxValue:o}=l,r=t.computed(()=>n.value?n.value.split(i.value).map(s=>({name:s,selectable:!0})):[]);function d(s){o(s.map(y=>y.name).join(i.value),!0)}return()=>t.createVNode(Ce,{class:"form-control",data:r.value,showClose:!0,showInput:!0,onChange:d},null)}function xe(e,n,l){const{buttonClass:i,onClickButton:o,onMouseEnterButton:r,onMouseLeaveButton:d}=n,{enableClearButton:s,showClearButton:y,onClearValue:f}=l;return()=>t.createVNode("div",{class:i.value},[s.value&&t.withDirectives(t.createVNode("span",{class:"input-group-text input-group-clear",onClick:f},[t.createVNode("i",{class:"f-icon modal_close"},null)]),[[t.vShow,y.value]]),e.buttonContent&&t.createVNode("span",{class:"input-group-text input-group-append-button",innerHTML:e.buttonContent,onClick:o,onMouseenter:r,onMouseleave:d},null)])}const we={title:{type:String},placement:{type:String,default:"bottom"},reference:{type:Object},host:{type:Object},leftBoundary:{type:Object},rightBoundary:{type:Object},visible:{type:Boolean,default:!1},class:{type:String},offsetX:{type:Object,default:t.ref(0)},zIndex:{type:Number,default:-1},keepWidthWithReference:{type:Boolean,default:!1},fitContent:{type:Boolean,default:!1},minWidth:{type:Number,default:-1}},Qe="";function ke(e){const n=e.host?e.host:"body",l=t.computed(()=>n==="body"?0:n?n.getBoundingClientRect().top:0),i=t.computed(()=>n==="body"?0:n?n.getBoundingClientRect().left:0),o=t.computed(()=>n==="body"?document.body.getBoundingClientRect().width:n?n.getBoundingClientRect().width-(e.rightBoundary?e.rightBoundary.getBoundingClientRect().width:0):document.body.getBoundingClientRect().width);return{host:n,hostLeft:i,hostTop:l,hostWidth:o}}function Pe(e,n,l,i){var z;const o=t.ref(0),r=t.ref(((z=e.offsetX)==null?void 0:z.value)||0),d=t.ref(-1),s=t.ref(-1),y=t.ref(-1),f=t.ref(e.placement),m=t.ref(0),g=t.ref(0),v=t.ref(0),C=t.ref(document.documentElement.scrollLeft),T=t.ref(document.documentElement.scrollTop),{hostLeft:b,hostTop:M,hostWidth:P}=i;t.watch(e.offsetX,h=>{o.value=h-r.value});const I=t.computed(()=>{const h={left:`${g.value}px`,top:`${v.value}px`,transform:`translateX(${o.value}px)`};return e.zIndex!==-1&&(h["z-index"]=e.zIndex),d.value!==-1&&(h.width=`${d.value}px`),h}),w=t.computed(()=>({left:`${m.value}px`}));function O(h){if(h&&e.keepWidthWithReference){const B=h.getBoundingClientRect();d.value=Math.max(e.minWidth,B.width)}}function L(h,B){const x=P.value-h.width-4;return x>0?x:B}function R(h,B,x){const A=m.value,N=B.left-b.value+B.width/2+C.value,W=B.top-M.value-(h.height+x.height)+T.value;return{popoverLeft:N,popoverTop:W,arrowLeft:A}}function D(h,B,x){return B.top-M.value+(B.height+x.height)+T.value}function S(h,B){const x=L(B,h),A=h<=x?m.value:h-x;return{popoverLeft:Math.min(h,x),arrowLeft:A}}function p(h,B,x){const A=B.left-b.value+B.width/2-(x.width/2-(h.left-b.value))+C.value,{arrowLeft:N,popoverLeft:W}=S(A,h),X=D(h,B,x);return{popoverLeft:W,popoverTop:X,arrowLeft:N}}function V(h,B,x){const A=B.left-b.value+C.value,{arrowLeft:N,popoverLeft:W}=S(A,h),X=D(h,B,x);return{popoverLeft:W,popoverTop:X,arrowLeft:N}}const _=new Map([["top",R],["bottom",p],["bottom-left",V]]);function H(h){var W;const B=h.getBoundingClientRect();s.value=B.top,y.value=B.left;const x=n.value.getBoundingClientRect(),A=(W=l.value)==null?void 0:W.getBoundingClientRect(),N=_.get(f.value);if(N){const{arrowLeft:X,popoverLeft:q,popoverTop:Q}=N(A,B,x);m.value=X,g.value=q,v.value=Q}e.keepWidthWithReference&&O(h)}function J(h){if(h){const B=h.getBoundingClientRect();(B.left!==y.value||B.top!==s.value)&&H(h)}}return{arrowStyle:w,popoverStyle:I,position:f,popoverWidth:d,fitToReference:O,followToReferencePosition:J,locateToReference:H}}function Ie(e,n,l,i,o,r,d){const s=t.ref(e.visible),y=t.computed(()=>s.value),{fitToReference:f,locateToReference:m}=d;let g;function v(){s.value=!1,document.body.removeEventListener("click",g),n.emit("hidden")}g=T=>{if(!o.value.contains(T.target)){const b=o.value.closest(".popover");b&&b.removeEventListener("click",g),v()}};async function C(T){if(i.value&&l.value&&T){s.value=!0,o.value=T,await t.nextTick(),m(T),r.value&&f(T),document.body.addEventListener("click",g);const b=T.closest(".popover");b&&b.addEventListener("click",g),n.emit("shown")}}return n.expose({hide:v,show:C,shown:y}),{showPopover:s,hidePopverOnClickBodyHandler:g}}function Oe(e,n,l,i,o){const{popoverWidth:r,fitToReference:d,followToReferencePosition:s}=o;function y(){if(l.value){s(l.value);const f=l.value.getBoundingClientRect();i.value&&f.width!==r.value&&d(l.value)}}return{onResize:y}}const Re=t.defineComponent({name:"FPopover",props:we,emits:["shown","hidden"],setup(e,n){const l=t.ref(),i=t.ref(),o=t.ref(e.reference),r=t.ref(e.keepWidthWithReference),d=t.computed(()=>!!e.title),s=ke(e),{host:y}=s,f=Pe(e,l,i,s),{position:m,arrowStyle:g,popoverStyle:v,fitToReference:C,locateToReference:T}=f,{showPopover:b,hidePopverOnClickBodyHandler:M}=Ie(e,n,l,i,o,r,f),{onResize:P}=Oe(e,n,o,r,f),I=t.computed(()=>{const O=`popover in popover-${m.value}`,L=`bs-popover-${m.value}`,R={"popover-fitcontent":e.fitContent};return R[O]=!0,R[L]=!0,(e.class||"").split(" ").reduce((S,p)=>(S[p]=!0,S),R),R}),w=t.computed(()=>({"popover-content":!0,"popover-body":!0}));return t.onMounted(()=>{e.reference&&T(o.value),r.value&&C(o.value),window.addEventListener("resize",P)}),t.onUnmounted(()=>{document.body.removeEventListener("click",M),window.removeEventListener("resize",P)}),()=>t.createVNode(t.Teleport,{to:y},{default:()=>{var O;return[t.withDirectives(t.createVNode("div",{ref:i,class:I.value,style:v.value,onClick:L=>{L.stopPropagation()}},[t.createVNode("div",{ref:l,class:"popover-arrow arrow",style:g.value},null),d.value&&t.createVNode("h3",{class:"popover-title popover-header"},[e.title]),t.createVNode("div",{class:w.value},[n.slots.default&&((O=n.slots)==null?void 0:O.default())])]),[[t.vShow,b.value]])]}})}});function Le(e,n,l){const i=t.ref(e.popupMinWidth),{hidePopup:o,popoverRef:r}=l;return()=>t.createVNode(Re,{ref:r,visible:!0,placement:"bottom-left",host:e.popupHost,"keep-width-with-reference":!0,fitContent:!0,"right-boundary":e.popupRightBoundary,minWidth:i.value,offsetX:e.popupOffsetX,onHidden:o},{default:()=>{var d,s;return[(s=(d=n.slots).default)==null?void 0:s.call(d)]}})}const Ye="",$=t.defineComponent({name:"FButtonEdit",props:G,emits:["updateExtendInfo","clear","change","click","clickButton","blur","focus","mouseEnterIcon","mouseLeaveIcon","keyup","keydown","inputClick","input","update:modelValue"],setup(e,n){const l=t.ref(),i=t.ref(e.customClass),o=t.ref(e.modelValue),r=ye(e,n,l),{shouldPopupContent:d,hidePopup:s}=r,y=ge(e,n,l,r),f=t.ref(""),m=he(e,n,o,f,r),{hasFocusedTextBox:g,commitValue:v,inputGroupClass:C}=m,T=me(e,n,o,g,f,m),{onMouseEnterTextBox:b,onMouseLeaveTextBox:M}=T,P=t.computed(()=>{const D={"f-button-edit":!0,"f-cmp-inputgroup":!0,"f-button-edit-nowrap":!e.wrapText};return i.value&&i.value.split(" ").reduce((S,p)=>(S[p]=!0,S),D),D});function I(){return e.multiSelect&&e.inputType==="tag"?Te(e,o,m):ve(e,o,m)}let w=I();t.watch([()=>e.multiSelect,()=>e.inputType],()=>{w=I()});const O=xe(e,y,T),L=Le(e,n,r),R={commitValue:v,elementRef:l,hidePopup:s};return t.onMounted(()=>{l.value.componentInstance=R}),n.expose(R),()=>t.createVNode(t.Fragment,null,[t.createVNode("div",t.mergeProps(n.attrs,{ref:l,class:P.value,id:e.id}),[t.createVNode("div",{class:C.value,onMouseenter:b,onMouseleave:M},[w(),O()])]),d.value&&L()])}}),Se={install(e){e.component($.name,$)},register(e,n){e["button-edit"]=$,n["button-eidt"]=U},registerDesigner(e,n){e["button-edit"]=$,n["button-eidt"]=U}};j.ButtonEdit=$,j.buttonEditProps=G,j.default=Se,j.propsResolver=U,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "button-edit",
3
- "version": "1.0.0-beta.7",
3
+ "version": "1.0.2",
4
4
  "main": "index.umd.js",
5
- "module": "index.es.js",
5
+ "module": "index.esm.js",
6
6
  "style": "style.css",
7
7
  "types": "../types/button-edit/index.d.ts"
8
8
  }
@@ -0,0 +1 @@
1
+ .farris-tags .farris-tags-item-container{margin:0;padding:0}.farris-tags .farris-tags-item-container .farris-tag-item{display:inline-flex!important;padding:0 8px;margin:3px 6px 3px 0;line-height:24px;font-size:13px;color:#2d314e;background:#f6faff;border:1px solid #e6e6e6!important;white-space:nowrap;border-radius:3px;cursor:default;opacity:1;transition:all .3s cubic-bezier(.78,.14,.15,.86);max-width:9rem}.farris-tags .farris-tags-item-container .farris-tag-item a,.farris-tags .farris-tags-item-container .farris-tag-item a:hover{color:#000000d9}.farris-tags .farris-tags-item-container .farris-tag-item>a:first-child:last-child{display:inline-flex;margin:0 -8px;padding:0 8px}.farris-tags .farris-tags-item-container .farris-tag-item .tag-box{text-overflow:ellipsis;overflow:hidden;word-break:break-all;white-space:nowrap;display:inline-flex;max-width:7rem;vertical-align:middle}.farris-tags .farris-tags-item-container .farris-tag-item .tag-delete{display:inline-block;margin-left:6px;color:#0003;cursor:pointer;transition:all .3s cubic-bezier(.78,.14,.15,.86)}.farris-tags .farris-tags-item-container .farris-tag-item .tag-delete:hover{color:#000000d9}.farris-tags .farris-tags-item-container .farris-tag-item>.f-icon{font-size:12px}.farris-tags .farris-tags-item-container .farris-tag-item>.f-icon+span,.farris-tags .farris-tags-item-container .farris-tag-item>span+.f-icon{margin-left:7px}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-success{color:#52c41a;background:#f6ffed;border-color:#b7eb8f}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-info{color:#1890ff;background:#e6f7ff;border-color:#91d5ff}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-error{color:#f5222d;background:#fff1f0;border-color:#ffa39e}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-warning{color:#fa8c16;background:#fff7e6;border-color:#ffd591}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-default{color:#2d314e;background:#f6faff;border:1px solid #e6e6e6}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-checkable:not(.farris-tag-item-checked){cursor:pointer}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-checkable:not(.farris-tag-item-checked):active{color:#59a1ff}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-checkable:not(.farris-tag-item-checked):hover{color:#59a1ff}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-checkdisabled{background-color:transparent;border-color:transparent;cursor:not-allowed;color:#00000073}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-checked{background-color:#fff;border-color:#2a87ff;color:#2a87ff}.farris-tags .farris-tags-item-container .farris-tag-item:last-child{margin-right:0}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-actived,.farris-tags .farris-tags-item-container .farris-tag-item:active{background-color:#2a87ff;color:#fff}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-actived .tag-delete,.farris-tags .farris-tags-item-container .farris-tag-item:active .tag-delete{color:#fff}.farris-tags .farris-tags-item-container .farris-tag-add-button{cursor:pointer;background:#f9f9f9;border:1px dashed #babdc9}.farris-tags .farris-tags-item-container .farris-tag-add-button .farris-tag-add-text{color:#00000073;line-height:24px}.farris-tags .farris-tags-item-container .farris-tag-add-button .f-icon{color:#0003;line-height:24px}.farris-tags .farris-tags-item-container .farris-tag-add-button:hover{background-color:#f9f9f9;border-color:#59a1ff}.farris-tags .farris-tags-item-container .farris-tag-add-button:hover .farris-tag-add-text,.farris-tags .farris-tags-item-container .farris-tag-add-button:hover .f-icon{color:#59a1ff}.farris-tags .farris-tags-item-container .farris-tag-add-button.farris-tag-add-button-disabled{background-color:#f7f7f7;border-color:#dcdcdc;border-style:solid;cursor:not-allowed}.farris-tags .farris-tags-item-container .farris-tag-add-button.farris-tag-add-button-disabled .farris-tag-add-text{color:#00000040}.farris-tags .farris-tags-item-container .farris-tag-add-button.farris-tag-add-button-disabled:hover{background-color:#f7f7f7;border-color:#dcdcdc}.farris-tags .farris-tags-item-container .farris-tag-add-button.farris-tag-add-button-disabled:hover .farris-tag-add-text,.farris-tags .farris-tags-item-container .farris-tag-add-button.farris-tag-add-button-disabled:hover .f-icon{color:#00000040}.farris-tags .farris-tags-item-container .farris-tag-input-box{display:inline-flex!important;padding:0;margin:2px 3px 2px -3px;line-height:22px;font-size:13px}.farris-tags .farris-tags-item-container .farris-tag-input-box .form-control{padding:2px 0;min-width:2px;border:none;background:none;line-height:inherit;text-wrap:nowrap;width:100%!important;height:22px!important}.farris-tags .farris-tags-item-container .farris-tag-input-box .form-control:focus{box-shadow:none}.farris-tags .farris-tags-item-container .farris-tag-input-box .form-control:focus-visible{outline:none}.farris-tags .farris-tags-item-container.farris-tag-item-capsule .farris-tag-item{border-radius:24px}.farris-tags .farris-tags-item-container.farris-tag-item-capsule .farris-tag-item.farris-tag-item-checkable:not(.farris-tag-item-checked){background:#ffffff;border:1px solid #e6e6e6;cursor:pointer}.farris-tags .farris-tags-item-container.farris-tag-item-capsule .farris-tag-item.farris-tag-item-checkable:not(.farris-tag-item-checked):active{color:#59a1ff}.farris-tags .farris-tags-item-container.farris-tag-item-capsule .farris-tag-item.farris-tag-item-checkable:not(.farris-tag-item-checked):hover{color:#59a1ff}.farris-tags .farris-tags-item-container.farris-tag-item-capsule .farris-tag-item.farris-tag-item-checked{background-color:#2a87ff0f;border-color:#2a87ff29;color:#2a87ff}.farris-tags.farris-tags-checkable .farris-tag-item{line-height:22px}.farris-tags.farris-tags-nowrap{overflow:hidden}.farris-tags.farris-tags-nowrap .farris-tags-item-container{display:flex;flex-wrap:nowrap;overflow:hidden}.farris-tags .farris-tags-item-container .farris-tag-item.farris-tag-item-warning{color:#f5a144;border-color:#fad0a1;background:#fef5ec}.bs3.popover-top{margin-bottom:10px}.bs3.popover.top>.arrow{margin-left:-2px}.bs3.popover.top{margin-bottom:10px}.popover.bottom>.arrow{margin-left:-4px}.bs3.bs-popover-left{margin-right:.5rem}.bs3.bs-popover-right .arrow,.bs3.bs-popover-left .arrow{margin:.3rem 0}.arrow-left .arrow{left:calc(50% - 10px)}.bs-popover-bottom-left .arrow{top:calc((.5rem + 1px)*-1)}.bs-popover-bottom-left .arrow:before{top:0;border-bottom-color:#fff6!important}.bs-popover-bottom-left .arrow:before,.bs-popover-bottom-left .arrow:after{border-width:0 .5rem .5rem}.bs-popover-bottom-left .arrow:after{top:1px;border-bottom-color:#fff!important}.popover.popover-fitcontent .popover-body{max-width:initial;padding:initial}.f-button-edit .farris-tags.form-control{padding:0}.f-button-edit .farris-tag-item,.f-button-edit .farris-tag-input-box{line-height:17px!important;margin:2px 6px 2px 0!important}.f-button-edit .farris-tag-input-box .form-control{height:inherit!important;padding:1px 0!important}.f-button-edit-nowrap .input-group{flex-wrap:nowrap!important}.f-button-edit-nowrap .farris-tags{overflow:hidden}.f-button-edit-nowrap .farris-tags-item-container{display:flex;flex-wrap:nowrap;overflow:hidden}
@@ -0,0 +1,315 @@
1
+ import { defineComponent as j, ref as E, computed as z, onBeforeMount as J, onMounted as K, createVNode as c, Fragment as Q, withModifiers as I, createTextVNode as n } from "vue";
2
+ const U = {
3
+ /**
4
+ * 组件标识
5
+ */
6
+ id: String
7
+ };
8
+ function Y() {
9
+ function x(l, t = 12) {
10
+ return +parseFloat(l.toPrecision(t));
11
+ }
12
+ function d(l) {
13
+ const t = l.toString().split(/[eE]/), r = (t[0].split(".")[1] || "").length - +(t[1] || 0);
14
+ return r > 0 ? r : 0;
15
+ }
16
+ function i(l) {
17
+ if (l.toString().indexOf("e") === -1)
18
+ return Number(l.toString().replace(".", ""));
19
+ const t = d(l);
20
+ return t > 0 ? x(l * 10 ** t) : l;
21
+ }
22
+ function h(l) {
23
+ a && (l > Number.MAX_SAFE_INTEGER || l < Number.MIN_SAFE_INTEGER) && console.warn(
24
+ `${l} is beyond boundary when transfer to integer, the results may not be accurate`
25
+ );
26
+ }
27
+ function v(l, t, ...r) {
28
+ if (r.length > 0)
29
+ return v(v(l, t), r[0], ...r.slice(1));
30
+ const f = i(l), C = i(t), M = d(l) + d(t), S = f * C;
31
+ return h(S), S / 10 ** M;
32
+ }
33
+ function m(l, t, ...r) {
34
+ if (r.length > 0)
35
+ return m(m(l, t), r[0], ...r.slice(1));
36
+ const f = 10 ** Math.max(d(l), d(t));
37
+ return (v(l, f) + v(t, f)) / f;
38
+ }
39
+ function b(l, t, ...r) {
40
+ if (r.length > 0)
41
+ return b(b(l, t), r[0], ...r.slice(1));
42
+ const f = 10 ** Math.max(d(l), d(t));
43
+ return (v(l, f) - v(t, f)) / f;
44
+ }
45
+ function p(l, t, ...r) {
46
+ if (r.length > 0)
47
+ return p(p(l, t), r[0], ...r.slice(1));
48
+ const f = i(l), C = i(t);
49
+ return h(f), h(C), v(
50
+ f / C,
51
+ 10 ** (d(t) - d(l))
52
+ );
53
+ }
54
+ function s(l, t) {
55
+ const r = 10 ** t;
56
+ return p(Math.round(v(l, r)), r);
57
+ }
58
+ let a = !1;
59
+ function o(l = !0) {
60
+ a = l;
61
+ }
62
+ return {
63
+ strip: x,
64
+ plus: m,
65
+ minus: b,
66
+ times: v,
67
+ divide: p,
68
+ round: s,
69
+ digitLength: d,
70
+ float2Fixed: i,
71
+ enableBoundaryChecking: o
72
+ };
73
+ }
74
+ const q = /* @__PURE__ */ j({
75
+ name: "FCalculator",
76
+ props: U,
77
+ emits: [],
78
+ setup(x, d) {
79
+ const i = E(), h = E(), v = E(), m = E(), b = E(), p = E();
80
+ let s = "", a = "0", o = [], l = [], t, r;
81
+ const {
82
+ plus: f,
83
+ minus: C,
84
+ times: M,
85
+ divide: S
86
+ } = Y();
87
+ function F() {
88
+ i.value && m.value && b.value && p.value && (i.value.scrollWidth > m.value.offsetWidth ? (b.value.style.display = "block", p.value.style.display = "block") : (b.value.style.display = "none", p.value.style.display = "none"));
89
+ }
90
+ function _(e) {
91
+ i.value && (i.value.innerHTML = e);
92
+ }
93
+ function A(e) {
94
+ h.value && (h.value.innerHTML = e);
95
+ }
96
+ function H() {
97
+ return s.lastIndexOf("+") !== -1 || s.lastIndexOf("-") !== -1 || s.lastIndexOf("×") !== -1 || s.lastIndexOf("÷") !== -1;
98
+ }
99
+ function B(e, u, k) {
100
+ let g = 0;
101
+ switch (e = Number(e), u = Number(u), k) {
102
+ case "+":
103
+ g = f(e, u);
104
+ break;
105
+ case "-":
106
+ g = C(e, u);
107
+ break;
108
+ case "×":
109
+ g = M(e, u);
110
+ break;
111
+ case "÷":
112
+ g = S(e, u);
113
+ break;
114
+ }
115
+ return g;
116
+ }
117
+ function R(e) {
118
+ a.indexOf("0") === 0 && a.indexOf(".") === -1 || t === !0 ? a = e : a += e, t = !1, r = !1;
119
+ }
120
+ function V(e) {
121
+ t === !0 ? a = "0" + e : a.indexOf(".") === -1 && (a += e), t = !1, r = !1;
122
+ }
123
+ function W() {
124
+ a.indexOf("-") === -1 && a !== "0" ? a = "-" + a : a.indexOf("-") > -1 && a !== "0" && (a = a.substring(1));
125
+ }
126
+ function $(e) {
127
+ if (o.length < 2 && (t !== !0 || r === !0) ? (a = parseFloat(a) + "", s = s + " " + a + " " + e, o.push(a), l.push(e), t = !0) : o.length < 2 && H() && (s = s.substring(0, s.length - 1) + "" + e, l.push(e)), o.length === 2) {
128
+ const u = l[l.length - 2];
129
+ if (o[1] === "0" && u === "÷") {
130
+ o = [], a = "除数不能为零", s = "", t = !0;
131
+ return;
132
+ }
133
+ const k = B(o[0], o[1], u);
134
+ o = [], o.push(k), a = k + "", t = !0;
135
+ }
136
+ }
137
+ function D() {
138
+ if (o.length > 0) {
139
+ const e = l.pop();
140
+ if (a === "0" && e === "÷") {
141
+ o = [], a = "除数不能为零", s = "", t = !0, r = !0;
142
+ return;
143
+ }
144
+ const u = B(o[0], a, e);
145
+ o = [], a = u + "", s = "", t = !0, r = !0;
146
+ }
147
+ }
148
+ function G() {
149
+ a = "0";
150
+ }
151
+ function P() {
152
+ a = "0", s = "", t = !0, o = [], l = [];
153
+ }
154
+ function X() {
155
+ a = a.length > 1 ? a.substring(0, a.length - 1) : "0";
156
+ }
157
+ const y = z(() => `fv-calculator-main${Math.floor(Math.random() * 1e3).toString()}`);
158
+ function N(e) {
159
+ i.value && (i.value.scrollLeft += 50);
160
+ }
161
+ function O(e) {
162
+ i.value && (i.value.scrollLeft -= 50);
163
+ }
164
+ function w(e) {
165
+ if (v.value && !v.value.contains(e.target))
166
+ return;
167
+ const u = e.target.innerHTML;
168
+ switch (u) {
169
+ case "0":
170
+ case "1":
171
+ case "2":
172
+ case "3":
173
+ case "4":
174
+ case "5":
175
+ case "6":
176
+ case "7":
177
+ case "8":
178
+ case "9":
179
+ R(u);
180
+ break;
181
+ case ".":
182
+ V(u);
183
+ break;
184
+ case "±":
185
+ W();
186
+ break;
187
+ case "+":
188
+ case "-":
189
+ case "×":
190
+ case "÷":
191
+ $(u);
192
+ break;
193
+ case "=":
194
+ D();
195
+ break;
196
+ case "CE":
197
+ G();
198
+ break;
199
+ case "C":
200
+ P();
201
+ break;
202
+ case "Back":
203
+ X();
204
+ break;
205
+ }
206
+ _(s), A(a);
207
+ }
208
+ return J(() => {
209
+ }), K(() => {
210
+ var e, u, k, g, T, L;
211
+ i.value = (e = document.getElementById(y.value)) == null ? void 0 : e.querySelector("#fv-calculator-pre-step"), h.value = (u = document.getElementById(y.value)) == null ? void 0 : u.querySelector("#fv-calculator-show-input"), v.value = (k = document.getElementById(y.value)) == null ? void 0 : k.querySelector("#fv-calculator-num-symbol"), m.value = (g = document.getElementById(y.value)) == null ? void 0 : g.querySelector(".fv-calculator-pre"), b.value = (T = document.getElementById(y.value)) == null ? void 0 : T.querySelector(".fv-calculator-pre-left"), p.value = (L = document.getElementById(y.value)) == null ? void 0 : L.querySelector(".fv-calculator-pre-right"), F();
212
+ }), () => c(Q, null, [c("div", {
213
+ class: "fv-calculator-standard-main",
214
+ id: y.value,
215
+ onMousedown: I((e) => w(e), ["prevent"]),
216
+ onTouchstart: I((e) => w(e), ["prevent"])
217
+ }, [c("div", {
218
+ class: "fv-calculator-title"
219
+ }, [n("计算器")]), c("div", {
220
+ class: "fv-calculator-result"
221
+ }, [c("div", {
222
+ class: "fv-calculator-type",
223
+ id: "fv-calculator-show-bar"
224
+ }, [n("Standard")]), c("div", {
225
+ class: "fv-calculator-pre"
226
+ }, [c("div", {
227
+ class: "fv-calculator-pre-left",
228
+ style: "display:none;",
229
+ onMousedown: I((e) => O(), ["prevent"]),
230
+ onTouchstart: I((e) => O(), ["prevent"])
231
+ }, [n("<")]), c("div", {
232
+ class: "fv-calculator-pre-content",
233
+ id: "fv-calculator-pre-step"
234
+ }, null), c("div", {
235
+ class: "fv-calculator-pre-right",
236
+ style: "display:none;",
237
+ onMousedown: I((e) => N(), ["prevent"]),
238
+ onTouchstart: I((e) => N(), ["prevent"])
239
+ }, [n(">")])]), c("div", {
240
+ class: "fv-calculator-result-out"
241
+ }, [c("div", {
242
+ class: "fv-calculator-second",
243
+ id: "fv-calculator-show-input"
244
+ }, [n("0")])])]), c("ul", {
245
+ id: "fv-calculator-num-symbol"
246
+ }, [c("li", {
247
+ value: "37",
248
+ class: "fv-calculator-letter"
249
+ }, [n("CE")]), c("li", {
250
+ value: "38",
251
+ class: "fv-calculator-letter"
252
+ }, [n("C")]), c("li", {
253
+ value: "39",
254
+ class: "fv-calculator-letter"
255
+ }, [n("Back")]), c("li", {
256
+ value: "16",
257
+ class: "fv-calculator-operator"
258
+ }, [n("÷")]), c("li", {
259
+ class: "fv-calculator-number",
260
+ value: "7"
261
+ }, [n("7")]), c("li", {
262
+ class: "fv-calculator-number",
263
+ value: "8"
264
+ }, [n("8")]), c("li", {
265
+ class: "fv-calculator-number",
266
+ value: "9"
267
+ }, [n("9")]), c("li", {
268
+ value: "15",
269
+ class: "fv-calculator-operator"
270
+ }, [n("×")]), c("li", {
271
+ class: "fv-calculator-number",
272
+ value: "4"
273
+ }, [n("4")]), c("li", {
274
+ class: "fv-calculator-number",
275
+ value: "5"
276
+ }, [n("5")]), c("li", {
277
+ class: "fv-calculator-number",
278
+ value: "6"
279
+ }, [n("6")]), c("li", {
280
+ value: "14",
281
+ class: "fv-calculator-operator"
282
+ }, [n("-")]), c("li", {
283
+ class: "fv-calculator-number",
284
+ value: "1"
285
+ }, [n("1")]), c("li", {
286
+ class: "fv-calculator-number",
287
+ value: "2"
288
+ }, [n("2")]), c("li", {
289
+ class: "fv-calculator-number",
290
+ value: "3"
291
+ }, [n("3")]), c("li", {
292
+ value: "13",
293
+ class: "fv-calculator-operator"
294
+ }, [n("+")]), c("li", {
295
+ value: "11"
296
+ }, [n("±")]), c("li", {
297
+ class: "fv-calculator-number",
298
+ value: "0"
299
+ }, [n("0")]), c("li", {
300
+ value: "10"
301
+ }, [n(".")]), c("li", {
302
+ value: "12",
303
+ class: "fv-calculator-operator"
304
+ }, [n("=")])])])]);
305
+ }
306
+ }), ee = {
307
+ install(x) {
308
+ x.component(q.name, q);
309
+ }
310
+ };
311
+ export {
312
+ q as calculator,
313
+ U as calculatorProps,
314
+ ee as default
315
+ };
@@ -0,0 +1 @@
1
+ (function(p,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(p=typeof globalThis<"u"?globalThis:p||self,e(p.calculator={},p.Vue))})(this,function(p,e){"use strict";const E={id:String};function q(){function v(a,l=12){return+parseFloat(a.toPrecision(l))}function f(a){const l=a.toString().split(/[eE]/),r=(l[0].split(".")[1]||"").length-+(l[1]||0);return r>0?r:0}function i(a){if(a.toString().indexOf("e")===-1)return Number(a.toString().replace(".",""));const l=f(a);return l>0?v(a*10**l):a}function h(a){c&&(a>Number.MAX_SAFE_INTEGER||a<Number.MIN_SAFE_INTEGER)&&console.warn(`${a} is beyond boundary when transfer to integer, the results may not be accurate`)}function d(a,l,...r){if(r.length>0)return d(d(a,l),r[0],...r.slice(1));const u=i(a),m=i(l),C=f(a)+f(l),T=u*m;return h(T),T/10**C}function g(a,l,...r){if(r.length>0)return g(g(a,l),r[0],...r.slice(1));const u=10**Math.max(f(a),f(l));return(d(a,u)+d(l,u))/u}function V(a,l,...r){if(r.length>0)return V(V(a,l),r[0],...r.slice(1));const u=10**Math.max(f(a),f(l));return(d(a,u)-d(l,u))/u}function N(a,l,...r){if(r.length>0)return N(N(a,l),r[0],...r.slice(1));const u=i(a),m=i(l);return h(u),h(m),d(u/m,10**(f(l)-f(a)))}function s(a,l){const r=10**l;return N(Math.round(d(a,r)),r)}let c=!1;function n(a=!0){c=a}return{strip:v,plus:g,minus:V,times:d,divide:N,round:s,digitLength:f,float2Fixed:i,enableBoundaryChecking:n}}const z="",k=e.defineComponent({name:"FCalculator",props:E,emits:[],setup(v,f){const i=e.ref(),h=e.ref(),d=e.ref(),g=e.ref(),V=e.ref(),N=e.ref();let s="",c="0",n=[],a=[],l,r;const{plus:u,minus:m,times:C,divide:T}=q();function F(){i.value&&g.value&&V.value&&N.value&&(i.value.scrollWidth>g.value.offsetWidth?(V.value.style.display="block",N.value.style.display="block"):(V.value.style.display="none",N.value.style.display="none"))}function _(t){i.value&&(i.value.innerHTML=t)}function A(t){h.value&&(h.value.innerHTML=t)}function P(){return s.lastIndexOf("+")!==-1||s.lastIndexOf("-")!==-1||s.lastIndexOf("×")!==-1||s.lastIndexOf("÷")!==-1}function M(t,o,y){let b=0;switch(t=Number(t),o=Number(o),y){case"+":b=u(t,o);break;case"-":b=m(t,o);break;case"×":b=C(t,o);break;case"÷":b=T(t,o);break}return b}function H(t){c.indexOf("0")===0&&c.indexOf(".")===-1||l===!0?c=t:c+=t,l=!1,r=!1}function R(t){l===!0?c="0"+t:c.indexOf(".")===-1&&(c+=t),l=!1,r=!1}function W(){c.indexOf("-")===-1&&c!=="0"?c="-"+c:c.indexOf("-")>-1&&c!=="0"&&(c=c.substring(1))}function $(t){if(n.length<2&&(l!==!0||r===!0)?(c=parseFloat(c)+"",s=s+" "+c+" "+t,n.push(c),a.push(t),l=!0):n.length<2&&P()&&(s=s.substring(0,s.length-1)+""+t,a.push(t)),n.length===2){const o=a[a.length-2];if(n[1]==="0"&&o==="÷"){n=[],c="除数不能为零",s="",l=!0;return}const y=M(n[0],n[1],o);n=[],n.push(y),c=y+"",l=!0}}function j(){if(n.length>0){const t=a.pop();if(c==="0"&&t==="÷"){n=[],c="除数不能为零",s="",l=!0,r=!0;return}const o=M(n[0],c,t);n=[],c=o+"",s="",l=!0,r=!0}}function D(){c="0"}function G(){c="0",s="",l=!0,n=[],a=[]}function X(){c=c.length>1?c.substring(0,c.length-1):"0"}const x=e.computed(()=>`fv-calculator-main${Math.floor(Math.random()*1e3).toString()}`);function I(t){i.value&&(i.value.scrollLeft+=50)}function S(t){i.value&&(i.value.scrollLeft-=50)}function w(t){if(d.value&&!d.value.contains(t.target))return;const o=t.target.innerHTML;switch(o){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":H(o);break;case".":R(o);break;case"±":W();break;case"+":case"-":case"×":case"÷":$(o);break;case"=":j();break;case"CE":D();break;case"C":G();break;case"Back":X();break}_(s),A(c)}return e.onBeforeMount(()=>{}),e.onMounted(()=>{var t,o,y,b,B,O;i.value=(t=document.getElementById(x.value))==null?void 0:t.querySelector("#fv-calculator-pre-step"),h.value=(o=document.getElementById(x.value))==null?void 0:o.querySelector("#fv-calculator-show-input"),d.value=(y=document.getElementById(x.value))==null?void 0:y.querySelector("#fv-calculator-num-symbol"),g.value=(b=document.getElementById(x.value))==null?void 0:b.querySelector(".fv-calculator-pre"),V.value=(B=document.getElementById(x.value))==null?void 0:B.querySelector(".fv-calculator-pre-left"),N.value=(O=document.getElementById(x.value))==null?void 0:O.querySelector(".fv-calculator-pre-right"),F()}),()=>e.createVNode(e.Fragment,null,[e.createVNode("div",{class:"fv-calculator-standard-main",id:x.value,onMousedown:e.withModifiers(t=>w(t),["prevent"]),onTouchstart:e.withModifiers(t=>w(t),["prevent"])},[e.createVNode("div",{class:"fv-calculator-title"},[e.createTextVNode("计算器")]),e.createVNode("div",{class:"fv-calculator-result"},[e.createVNode("div",{class:"fv-calculator-type",id:"fv-calculator-show-bar"},[e.createTextVNode("Standard")]),e.createVNode("div",{class:"fv-calculator-pre"},[e.createVNode("div",{class:"fv-calculator-pre-left",style:"display:none;",onMousedown:e.withModifiers(t=>S(),["prevent"]),onTouchstart:e.withModifiers(t=>S(),["prevent"])},[e.createTextVNode("<")]),e.createVNode("div",{class:"fv-calculator-pre-content",id:"fv-calculator-pre-step"},null),e.createVNode("div",{class:"fv-calculator-pre-right",style:"display:none;",onMousedown:e.withModifiers(t=>I(),["prevent"]),onTouchstart:e.withModifiers(t=>I(),["prevent"])},[e.createTextVNode(">")])]),e.createVNode("div",{class:"fv-calculator-result-out"},[e.createVNode("div",{class:"fv-calculator-second",id:"fv-calculator-show-input"},[e.createTextVNode("0")])])]),e.createVNode("ul",{id:"fv-calculator-num-symbol"},[e.createVNode("li",{value:"37",class:"fv-calculator-letter"},[e.createTextVNode("CE")]),e.createVNode("li",{value:"38",class:"fv-calculator-letter"},[e.createTextVNode("C")]),e.createVNode("li",{value:"39",class:"fv-calculator-letter"},[e.createTextVNode("Back")]),e.createVNode("li",{value:"16",class:"fv-calculator-operator"},[e.createTextVNode("÷")]),e.createVNode("li",{class:"fv-calculator-number",value:"7"},[e.createTextVNode("7")]),e.createVNode("li",{class:"fv-calculator-number",value:"8"},[e.createTextVNode("8")]),e.createVNode("li",{class:"fv-calculator-number",value:"9"},[e.createTextVNode("9")]),e.createVNode("li",{value:"15",class:"fv-calculator-operator"},[e.createTextVNode("×")]),e.createVNode("li",{class:"fv-calculator-number",value:"4"},[e.createTextVNode("4")]),e.createVNode("li",{class:"fv-calculator-number",value:"5"},[e.createTextVNode("5")]),e.createVNode("li",{class:"fv-calculator-number",value:"6"},[e.createTextVNode("6")]),e.createVNode("li",{value:"14",class:"fv-calculator-operator"},[e.createTextVNode("-")]),e.createVNode("li",{class:"fv-calculator-number",value:"1"},[e.createTextVNode("1")]),e.createVNode("li",{class:"fv-calculator-number",value:"2"},[e.createTextVNode("2")]),e.createVNode("li",{class:"fv-calculator-number",value:"3"},[e.createTextVNode("3")]),e.createVNode("li",{value:"13",class:"fv-calculator-operator"},[e.createTextVNode("+")]),e.createVNode("li",{value:"11"},[e.createTextVNode("±")]),e.createVNode("li",{class:"fv-calculator-number",value:"0"},[e.createTextVNode("0")]),e.createVNode("li",{value:"10"},[e.createTextVNode(".")]),e.createVNode("li",{value:"12",class:"fv-calculator-operator"},[e.createTextVNode("=")])])])])}}),L={install(v){v.component(k.name,k)}};p.calculator=k,p.calculatorProps=E,p.default=L,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "calculator",
3
+ "version": "1.0.2",
4
+ "main": "index.umd.js",
5
+ "module": "index.esm.js",
6
+ "style": "style.css",
7
+ "types": "../types/calculator/index.d.ts"
8
+ }
@@ -0,0 +1 @@
1
+ .fv-calculator-standard-main{background-color:#f1f1f1;margin:0 auto;box-shadow:0 0 15px #4d4d4d}.fv-calculator-standard-main ul{list-style:none;margin:0;padding:0}.fv-calculator-standard-main li{float:left;text-align:center;cursor:pointer}.fv-calculator-standard-main li img{height:14px}.fv-calculator-standard-main .fv-calculator-title{padding:5px 0;height:30px;line-height:30px;font-size:18px;margin-left:10px}.fv-calculator-standard-main .fv-calculator-result{height:140px;text-align:right;width:100%}.fv-calculator-standard-main .fv-calculator-result-out{margin:0 5px;height:48px;overflow:hidden}.fv-calculator-standard-main .fv-calculator-second{font-size:42px;font-weight:700;overflow-y:auto;white-space:nowrap;text-align:right}.fv-calculator-standard-main .fv-calculator-pre{color:#a7a7a7;padding:0 20px;font-size:16px;height:24px;width:100%;overflow:hidden;position:relative;z-index:99}.fv-calculator-standard-main .fv-calculator-pre .fv-calculator-pre-left{width:16px;text-align:center;line-height:20px;height:24px;position:absolute;z-index:101;left:0;top:0;font-weight:600;cursor:pointer;background:#f1f1f1}.fv-calculator-standard-main .fv-calculator-pre .fv-calculator-pre-right{width:16px;text-align:center;line-height:20px;height:24px;position:absolute;z-index:101;right:0;top:0;font-weight:600;cursor:pointer;background:#f1f1f1}.fv-calculator-pre .fv-calculator-pre-content{text-align:right;height:24px;line-height:24px;white-space:nowrap;overflow-y:auto;overflow-x:hidden}.fv-calculator-pre-left:hover,.fv-calculator-pre-right:hover{color:#1853d1;background:#9b9b9b}.fv-calculator-standard-main .fv-calculator-type{height:auto;text-align:left;font-weight:700;margin:10px 0 20px 10px;font-size:22px}.fv-calculator-standard-main .fv-calculator-type-bar{height:90px;width:100px;position:absolute;top:110px;background-color:#e6e6e6}.fv-calculator-standard-main .fv-calculator-type-bar li{float:left;width:100px;text-align:center;line-height:30px}.fv-calculator-standard-main .active{background-color:#cfcfcf}.fv-calculator-standard-main .fv-calculator-number{font-weight:700;border:1px solid #fff!important;background:#fff!important}.fv-calculator-standard-main .fv-calculator-number:hover{border:1px solid #f1f1f1!important;background:#c6c6c6!important}.fv-calculator-standard-main .fv-calculator-operator:hover{border:1px solid #f1f1f1!important;background:#82bceb!important;color:#fff}.fv-calculator-standard-main .fv-calculator-letter{font-size:16px}.fv-calculator-standard-main{width:500px;height:460px}#fv-calculator-num-symbol{height:270px;font-size:20px;display:flex;flex-wrap:wrap;justify-content:center}#fv-calculator-num-symbol li{line-height:48px;width:23%;margin:5px 0 0 5px;background:#dedede;border:1px solid #dedede;list-style-type:none}#fv-calculator-num-symbol li:hover{background:#c6c6c6;border:1px solid #f1f1f1}