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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +2076 -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 +13562 -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 +13293 -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 +15232 -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 +13560 -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 +13600 -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 +25009 -5886
  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 +2270 -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 +6 -4
  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(d,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(d=typeof globalThis<"u"?globalThis:d||self,e(d["message-box"]={},d.Vue))})(this,function(d,e){"use strict";const J={type:{Type:String,default:"info"},title:{Type:String,default:""},detail:{Type:String,default:""},okButtonText:{Type:String,default:"确定"},cancelButtonText:{Type:String,default:"取消"},exceptionInfo:{Type:Object,default:{date:"",message:"",detail:""}}};function O(){return new DOMException("The request is not allowed","NotAllowedError")}async function Z(o){if(!navigator.clipboard)throw O();return navigator.clipboard.writeText(o)}async function ee(o){const l=document.createElement("span");l.textContent=o,l.style.whiteSpace="pre",l.style.webkitUserSelect="auto",l.style.userSelect="all",document.body.appendChild(l);const t=window.getSelection(),n=window.document.createRange();t==null||t.removeAllRanges(),n.selectNode(l),t==null||t.addRange(n);let r=!1;try{r=window.document.execCommand("copy")}finally{t==null||t.removeAllRanges(),window.document.body.removeChild(l)}if(!r)throw O()}async function te(o){try{await Z(o)}catch(l){try{await ee(o)}catch(t){throw t||l||O()}}}function oe(o,l){async function t(n){await te(n)}return{onCopy:t}}const B=e.defineComponent({name:"FMessageBox",props:J,emits:["accept","reject","close"],setup(o,l){const t=e.ref(o.type),n=e.ref(o.title),r=e.ref(o.detail),c=e.ref(o.exceptionInfo);e.ref("");const C=e.ref(14),u=e.ref(140);e.ref(""),e.ref("");const h=e.ref(!1),g=e.ref(""),T=e.ref(r.value.length),m=e.ref([]),V=e.ref(o.okButtonText),x=e.ref(o.cancelButtonText),F=e.ref(!0),E=e.ref(!0),$=e.ref(!0),k=e.ref("复制详细信息"),b=e.ref(3),A=e.ref(480),w=e.computed(()=>{const a={"modal-tips":!0,"d-flex":!0,"flex-row":!0},p=`messager-type-${t.value}`;return a[p]=!0,a}),v=e.computed(()=>{const a={};return t.value==="prompt"?a.padding="0.5rem 0.5rem 1rem 1.5rem":t.value==="error"&&(a.padding="0.5rem 1.5rem 1rem 1.5rem"),a}),H=e.computed(()=>{const a={"f-icon":!0},p=`f-icon-${t.value}`;return a[p]=!0,a}),z=e.computed(()=>n.value||c.value&&c.value.message),S=e.computed(()=>r.value),D=e.computed(()=>!!r.value),I=e.computed(()=>!!c.value),R=e.computed(()=>!!c.value&&!!c.value.date),_=e.computed(()=>`发生时间 : ${c.value&&c.value.date||""}`),q=e.computed(()=>!!c.value&&!!c.value.detail),L=e.computed(()=>{const a=`${A.value}px`;return{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":b.value,"max-height":a}}),M=e.computed(()=>c.value&&c.value.detail||""),P=e.computed(()=>!0),f=e.ref(!1),U=e.ref("展开"),W=e.ref("收起"),G=e.computed(()=>{const a={display:"block",color:"#2A87FF"};return a["text-align"]=f.value?"":"right",a});function s(a,p){f.value=!f.value,b.value=f.value?20:3}function y(a){return s()}function i(a){return s()}const N=e.computed(()=>({"font-size":`${C.value}px`,height:"100%"}));function ce(a){if(a.currentTarget){const p=a.currentTarget.value||"";T.value=p.length}}e.computed(()=>h.value&&u.value);const re=e.computed(()=>!(m.value&&m.value.length)&&(V.value||x.value));e.computed(()=>t.value==="prompt"&&F.value);const ie=e.computed(()=>E.value&&x.value),de=e.computed(()=>$.value&&V.value);function ue(a){t.value==="question"&&l.emit("reject"),l.emit("close")}function pe(a){t.value==="question"&&l.emit("accept"),l.emit("close")}const me=e.computed(()=>!!(m.value&&m.value.length)),Q=e.computed(()=>c.value&&c.value.date&&c.value.message&&c.value.detail),{onCopy:fe}=oe(),X=e.ref("复制成功"),j=e.ref(!1);function Y(a){fe(M.value).catch(p=>{X.value="复制失败"}).finally(()=>{j.value=!0,setTimeout(()=>{j.value=!1},700)})}const ye=e.computed(()=>{const a={position:"absolute",left:"50%",top:"50%",width:"100px",height:"40px",background:"#303C53","line-height":"40px","text-align":"center","margin-left":"-30px","margin-top":"-50px","border-radius":"10px","box-shadow":"0px 2px 8px 0px",color:"#fff",transition:"all .3s ease"};return a.opacity=j.value?"0.8":"0",a.display=j.value?"":"none",a});return()=>e.createVNode("div",{class:"farris-messager"},[t.value!=="prompt"&&e.createVNode("section",{class:w.value,style:v.value},[e.createVNode("div",{class:"float-left modal-tips-iconwrap"},[e.createVNode("span",{class:H.value},null)]),e.createVNode("div",{class:"modal-tips-content"},[e.createVNode("p",{class:"toast-msg-title",innerHTML:z.value},null),D.value&&e.createVNode("p",{class:"toast-msg-detail",innerHTML:S.value},null),I.value&&e.createVNode("div",{class:"toast-msg-detail"},[R.value&&e.createVNode("div",null,[_.value]),q.value&&e.createVNode("div",{id:"exception_error_msg",ref:"exceptionMessageRef",style:L.value},[e.createTextVNode("详细信息 : "),e.createVNode("span",{innerHTML:M.value},null)]),P.value&&e.createVNode("span",{style:G.value},[f.value&&e.createVNode("span",{onClick:y,style:"cursor: pointer;"},[W.value]),!f.value&&e.createVNode("span",{onClick:i,style:"cursor: pointer;"},[U.value])])])])]),t.value==="prompt"&&e.createVNode(e.Fragment,null,[e.createVNode("section",{class:w.value,style:v.value},[e.createVNode("div",{class:"flex-fill fixdiv mb-1 mr-3"},[e.createVNode("textarea",{title:"promptMessage",name:"promptMessage",class:"form-control",style:N.value,rows:"4",maxlength:u.value,onInput:a=>ce(a)},[S.value])])]),e.createVNode("span",{class:"textarea-wordcount",title:g.value,style:"position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"},[T.value+" / "+u.value])]),re.value&&e.createVNode("div",{class:"modal-footer"},[Q.value&&e.createVNode("span",{style:"width: 100%;color: #2A87FF;padding-left: 37px;"},[e.createVNode("span",{onClick:Y,style:"cursor: pointer;"},[k.value])]),ie.value&&e.createVNode("button",{type:"button",class:"btn btn-secondary btn-lg",onClick:ue},[x.value]),de.value&&e.createVNode("button",{type:"button",class:"btn btn-primary btn-lg",onClick:pe},[V.value])]),me.value&&e.createVNode("div",{class:"modal-footer"},[Q.value&&e.createVNode("span",{style:"width: 100%;color: #2A87FF;padding-left: 37px;"},[e.createVNode("span",{onClick:Y,style:"cursor: pointer;"},[k.value])]),m.value.length&&m.value.map(a=>e.createVNode("button",{type:"button",onClick:a.handle,class:a.class},[a.iconClass&&e.createVNode("span",{class:a.iconClass},null),a.text]))]),e.createVNode("div",{style:ye.value},[X.value])])}}),ae={class:{type:String,default:""},title:{type:String,default:""},width:{type:Number,default:500},height:{type:Number,default:320},buttons:{type:Array,default:[]},modelValue:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0}},le=e.defineComponent({name:"FModal",props:ae,emits:["update:modelValue"],setup(o,l){const t=e.ref(o.width),n=e.ref(o.height),r=e.ref(o.modelValue),c=e.ref(""),C=e.ref(o.class),u=e.ref(!0),h=e.ref(o.showHeader),g=e.ref(""),T=e.ref(!0),m=e.ref(!1),V=e.ref(!1),x=e.ref(""),F=e.ref(""),E=e.ref(""),$=e.ref(o.showButtons),k=e.ref(o.title);function b(s,y){r.value=!1,l.emit("update:modelValue",!1)}const A=[{text:"取消",class:"btn btn-light",handle:s=>{b()}},{text:"确定",class:"btn btn-primary",handle:s=>{b()}}],w=e.ref(o.buttons&&o.buttons.length?o.buttons:A),v=e.computed(()=>!!g.value),H=e.computed(()=>!!$.value&&!!w.value);e.ref(),e.ref(),e.watch(()=>o.modelValue,()=>{r.value=o.modelValue});const z=e.ref(!1),S=e.computed(()=>r.value),D=e.computed(()=>{const s={modal:!0,"farris-modal":!0};return s["f-modal-fitContent"]=u.value,s}),I=e.computed(()=>({display:S.value?"block":"none !important"})),R=e.computed(()=>{const s={"modal-dialog":!0};return C.value.split(" ").reduce((i,N)=>(i[N]=!0,i),s),s}),_=e.computed(()=>({position:"absolute",top:"50%",left:"50%",width:`${t.value}px`,height:u.value?"auto":`${n.value}px`,"margin-left":`${0-t.value/2}px`,"margin-top":u.value?"auto":`${0-n.value/2}px`})),q=e.computed(()=>({"modal-content":!0,"modal-content-has-header":h.value})),L=e.computed(()=>({display:h.value?"":"none"})),M=e.computed(()=>({"f-icon":!0,modal_maximize:!0,modalrevert:z.value})),P=e.computed(()=>({height:"10px","z-index":1,display:h.value?"none":""})),f=e.computed(()=>({"modal-body":!0,"f-utils-flex-column":x.value==="iframe"}));function U(){return{}}const W=e.computed(()=>{const s={textAlgin:E.value},y=U();return Object.assign(s,y)});function G(s){}return()=>e.createVNode(e.Teleport,{to:"body"},{default:()=>{var s,y;return[e.createVNode("div",{class:D.value,style:I.value},[e.createVNode("div",{id:c.value,class:R.value,style:_.value},[e.createVNode("div",{class:q.value},[e.createVNode("div",{ref:"modalHeaderRef",class:"modal-header",style:L.value},[e.createVNode("div",{class:"modal-title"},[v.value&&e.createVNode("span",{class:g.value,style:"margin-right: 8px"},null),e.createVNode("span",{class:"modal-title-label"},[k.value])]),e.createVNode("div",{class:"actions"},[e.createVNode("ul",null,[V.value&&e.createVNode("li",{class:"f-btn-icon f-bare"},[e.createVNode("span",{class:"f-icon modal_minimize"},null)]),m.value&&e.createVNode("li",{onClick:G,class:"f-btn-icon f-bare"},[e.createVNode("span",{class:M.value},null)]),T.value&&e.createVNode("li",{class:"f-btn-icon f-bare",onClick:i=>b()},[e.createVNode("span",{class:"f-icon modal_close"},null)])])])]),e.createVNode("div",{ref:"dragableElementRef",class:"f-utils-absolute-all",style:P.value},null),e.createVNode("div",{class:f.value},[(y=(s=l.slots).default)==null?void 0:y.call(s),x.value==="iframe"&&e.createVNode("iframe",{title:c.value,class:"f-utils-fill",width:"100%",frameborder:"0",src:F.value},null)]),H.value&&e.createVNode("div",{class:"modal-footer",style:W.value},[w.value&&w.value.map(i=>e.createVNode("button",{type:"button",class:i.class,onClick:N=>{i.handle&&i.handle(N)}},[!!i.iconClass&&e.createVNode("span",{class:i.iconClass},[i.text]),!i.iconClass&&e.createVNode("span",null,[i.text])]))])])])])]}})}});function ne(o,l){const t=document.createElement("div");t.style.display="contents";const n=e.createApp({setup(){e.onUnmounted(()=>{document.body.removeChild(t)});const r=e.ref(!0),c=o.type==="error"||o.type==="prompt",C=o.type==="error"?"错误提示":o.type==="prompt"?o.title:"",u=o.acceptCallback||(()=>{}),h=o.rejectCallback||(()=>{});return()=>e.createVNode(le,{class:"modal-message modal-message-type-info",title:C,modelValue:r.value,"onUpdate:modelValue":g=>r.value=g,"show-header":c,"show-buttons":!1},{default:()=>[e.createVNode(B,e.mergeProps(o,{onAccept:u,onReject:h,onClose:n.unmount}),null)]})}});return document.body.appendChild(t),n.mount(t),n}class K{static show(l){const t=e.reactive({...l});ne(t)}static info(l,t){const n=e.reactive({type:"info",title:l,detail:t,okButtonText:"知道了",cancelButtonText:""});this.show(n)}static warning(l,t){const n=e.reactive({type:"warning",title:l,detail:t,okButtonText:"知道了",cancelButtonText:""});this.show(n)}static success(l,t){const n=e.reactive({type:"success",title:l,detail:t,okButtonText:"关闭",cancelButtonText:""});this.show(n)}static error(l,t,n){const r=e.reactive({type:"error",okButtonText:"关闭",cancelButtonText:"",exceptionInfo:{date:n,message:l,detail:t}});this.show(r)}static prompt(l,t){const n=e.reactive({type:"prompt",title:l,detail:t,okButtonText:"确定",cancelButtonText:"取消"});this.show(n)}static question(l,t,n,r){const c=e.reactive({type:"question",title:l,detail:t,okButtonText:"确定",cancelButtonText:"取消",acceptCallback:n,rejectCallback:r});this.show(c)}}const se={install(o){o.component(B.name,B),o.provide("MessageBoxService",K)}};d.FMessageBox=B,d.MessageBoxService=K,d.default=se,d.messageBoxProps=J,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(x,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(x=typeof globalThis<"u"?globalThis:x||self,e(x["message-box"]={},x.Vue))})(this,function(x,e){"use strict";const j={type:{Type:String,default:"info"},title:{Type:String,default:""},detail:{Type:String,default:""},okButtonText:{Type:String,default:"确定"},cancelButtonText:{Type:String,default:"取消"},exceptionInfo:{Type:Object,default:null},promptEditorType:{Type:String,default:"text-area"}};function k(){return new DOMException("The request is not allowed","NotAllowedError")}async function O(t){if(!navigator.clipboard)throw k();return navigator.clipboard.writeText(t)}async function E(t){const a=document.createElement("span");a.textContent=t,a.style.whiteSpace="pre",a.style.webkitUserSelect="auto",a.style.userSelect="all",document.body.appendChild(a);const o=window.getSelection(),n=window.document.createRange();o==null||o.removeAllRanges(),n.selectNode(a),o==null||o.addRange(n);let s=!1;try{s=window.document.execCommand("copy")}finally{o==null||o.removeAllRanges(),window.document.body.removeChild(a)}if(!s)throw k()}async function F(t){try{await O(t)}catch(a){try{await E(t)}catch(o){throw o||a||k()}}}function R(){async function t(a){await F(a)}return{onCopy:t}}function A(t,a,o,n){const s=e.ref(14),l=e.ref(140),d=e.ref(""),c=e.ref(n.value.length),r=e.computed(()=>n.value),i=e.computed(()=>({"font-size":`${s.value}px`,height:"100%"}));function m(f){if(f.currentTarget){const g=f.currentTarget.value||"";c.value=g.length}}return()=>e.createVNode(e.Fragment,null,[e.createVNode("textarea",{title:"promptMessage",name:"promptMessage",class:"form-control",style:i.value,rows:"4",maxlength:l.value,onInput:f=>m(f)},[r.value]),e.createVNode("span",{class:"textarea-wordcount",title:d.value,style:"position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"},[c.value+" / "+l.value])])}function H(t,a,o,n){const s=A(t,a,o,n),l=new Map([["text-area",s]]);function d(c){return l.get(c)||null}return{getEditorRender:d}}function $(){const t=e.ref(!1),a=e.ref("复制成功");return{feedbackStyle:e.computed(()=>{const n={position:"absolute",left:"50%",top:"50%",width:"100px",height:"40px",background:"#303C53","line-height":"40px","text-align":"center","margin-left":"-30px","margin-top":"-50px","border-radius":"10px","box-shadow":"0px 2px 8px 0px",color:"#fff",transition:"all .3s ease"};return n.opacity=t.value?"0.8":"0",n.display=t.value?"":"none",n}),feedbackMessage:a,toShowFeedback:t}}function D(t,a){const o=a.getEditorRender(t.promptEditorType);return()=>o&&o()}function z(t){const a=e.ref(3),o=e.ref(480),n=e.computed(()=>!!t.value&&!!t.value.date),s=e.computed(()=>`发生时间 : ${t.value&&t.value.date||""}`),l=e.computed(()=>!!t.value&&!!t.value.detail),d=e.computed(()=>{const p=`${o.value}px`;return{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":a.value,"max-height":p}}),c=e.computed(()=>t.value&&t.value.detail||""),r=e.computed(()=>!0),i=e.ref(!1),m=e.ref("展开"),f=e.ref("收起"),g=e.computed(()=>{const p={display:"block",color:"#2A87FF"};return p["text-align"]=i.value?"":"right",p});function h(p,V){i.value=!i.value,a.value=i.value?20:3}function w(p){return h()}function C(p){return h()}return()=>e.createVNode("div",{class:"toast-msg-detail"},[n.value&&e.createVNode("div",null,[s.value]),l.value&&e.createVNode("div",{id:"exception_error_msg",ref:"exceptionMessageRef",style:d.value},[e.createTextVNode("详细信息 : "),e.createVNode("span",{innerHTML:c.value},null)]),r.value&&e.createVNode("span",{style:g.value},[i.value&&e.createVNode("span",{onClick:w,style:"cursor: pointer;"},[f.value]),!i.value&&e.createVNode("span",{onClick:C,style:"cursor: pointer;"},[m.value])])])}function I(t){return()=>e.createVNode("p",{class:"toast-msg-detail",innerHTML:t.value},null)}function _(t,a,o,n){const s=e.ref(t.exceptionInfo),l=e.computed(()=>{const g={"f-icon":!0},h=`f-icon-${a.value}`;return g[h]=!0,g}),d=e.computed(()=>o.value||s.value&&s.value.message),c=e.computed(()=>n.value),r=e.computed(()=>!!n.value),i=e.computed(()=>!!s.value);function m(){return i.value?z(s):r.value?I(c):()=>e.createVNode(e.Fragment,null,null)}const f=m();return()=>e.createVNode(e.Fragment,null,[e.createVNode("div",{class:"float-left modal-tips-iconwrap"},[e.createVNode("span",{class:l.value},null)]),e.createVNode("div",{class:"modal-tips-content"},[e.createVNode("p",{class:"toast-msg-title",innerHTML:d.value},null),f()])])}function q(t,a,o){const{onCopy:n}=a,{toShowFeedback:s}=o,l=e.ref("复制成功"),d=e.ref("复制详细信息"),c=e.ref(t.exceptionInfo),r=e.computed(()=>c.value&&c.value.detail||"");function i(m){n(r.value).catch(f=>{l.value="复制失败"}).finally(()=>{s.value=!0,setTimeout(()=>{s.value=!1},700)})}return()=>e.createVNode("span",{style:"width: 100%;color: #2A87FF;padding-left: 37px;"},[e.createVNode("span",{onClick:i,style:"cursor: pointer;"},[d.value])])}function L(t,a,o,n){const s=e.ref(t.type),l=e.ref([]),d=e.ref(t.exceptionInfo),c=e.ref(t.okButtonText),r=e.ref(t.cancelButtonText),i=e.ref(!0),m=e.ref(!0),f=e.computed(()=>!!(l.value&&l.value.length)),g=e.computed(()=>d.value&&d.value.date&&d.value.message&&d.value.detail),h=e.computed(()=>!(l.value&&l.value.length)&&(c.value||r.value)),w=e.computed(()=>m.value&&c.value),C=e.computed(()=>i.value&&r.value),p=q(t,o,n);function V(b){s.value==="question"&&a.emit("reject"),a.emit("close")}function B(b){s.value==="question"&&a.emit("accept"),a.emit("close")}return()=>e.createVNode("div",{class:"modal-footer"},[g.value&&p(),h.value&&C.value&&e.createVNode("button",{type:"button",class:"btn btn-secondary btn-lg",onClick:V},[r.value]),h.value&&w.value&&e.createVNode("button",{type:"button",class:"btn btn-primary btn-lg",onClick:B},[c.value]),f.value&&l.value.length&&l.value.map(b=>e.createVNode("button",{type:"button",onClick:b.handle,class:b.class},[b.iconClass&&e.createVNode("span",{class:b.iconClass},null),b.text]))])}const N=e.defineComponent({name:"FMessageBox",props:j,emits:["accept","reject","close"],setup(t,a){const o=e.ref(t.type),n=e.ref(t.title),s=e.ref(t.detail),l=e.computed(()=>{const p={"modal-tips":!0,"d-flex":!0,"flex-row":!0},V=`messager-type-${o.value}`;return p[V]=!0,p}),d=e.computed(()=>{const p={};return o.value==="prompt"?p.padding="0.5rem 0.5rem 1rem 1.5rem":o.value==="error"&&(p.padding="0.5rem 1.5rem 1rem 1.5rem"),p}),c=R(),r=H(t,o,n,s),i=$(),{feedbackStyle:m,feedbackMessage:f}=i;function g(){return e.createVNode("div",{style:m.value},[f.value])}function h(){switch(o.value){case"prompt":return D(t,r);default:return _(t,o,n,s)}}const w=h(),C=L(t,a,c,i);return()=>e.createVNode("div",{class:"farris-messager"},[e.createVNode("section",{class:l.value,style:d.value},[w()]),C(),g()])}}),P={class:{type:String,default:""},title:{type:String,default:""},width:{type:Number,default:500},height:{type:Number,default:320},buttons:{type:Array,default:[]},modelValue:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0}},pe="",U=e.defineComponent({name:"FModal",props:P,emits:["update:modelValue","accept","cancel"],setup(t,a){const o=e.ref(t.width),n=e.ref(t.height),s=e.ref(t.modelValue),l=e.ref(""),d=e.ref(t.class),c=e.ref(!0),r=e.ref(t.showHeader),i=e.ref(""),m=e.ref(!0),f=e.ref(!1),g=e.ref(!1),h=e.ref(""),w=e.ref(""),C=e.ref(""),p=e.ref(t.showButtons),V=e.ref(t.title);function B(u,T){s.value=!1,a.emit("update:modelValue",!1),a.emit(T?"accept":"cancel")}const b=[{text:"取消",class:"btn btn-light",handle:u=>{B(u,!1)}},{text:"确定",class:"btn btn-primary",handle:u=>{B(u,!0)}}],M=e.ref(t.buttons&&t.buttons.length?t.buttons:b),W=e.computed(()=>!!i.value),X=e.computed(()=>!!p.value&&!!M.value);e.ref(),e.ref(),e.watch(()=>t.modelValue,()=>{s.value=t.modelValue});const Y=e.ref(!1),Z=e.computed(()=>s.value),ee=e.computed(()=>{const u={modal:!0,"farris-modal":!0};return u["f-modal-fitContent"]=c.value,u}),te=e.computed(()=>({display:Z.value?"block":"none !important"})),oe=e.computed(()=>{const u={"modal-dialog":!0};return d.value.split(" ").reduce((y,S)=>(y[S]=!0,y),u),u}),ae=e.computed(()=>({position:"absolute",top:"50%",left:"50%",width:`${o.value}px`,height:c.value?"auto":`${n.value}px`,"margin-left":`${0-o.value/2}px`,"margin-top":c.value?"auto":`${0-n.value/2}px`})),ne=e.computed(()=>({"modal-content":!0,"modal-content-has-header":r.value})),se=e.computed(()=>({display:r.value?"":"none"})),le=e.computed(()=>({"f-icon":!0,modal_maximize:!0,modalrevert:Y.value})),ce=e.computed(()=>({height:"10px","z-index":1,display:r.value?"none":""})),re=e.computed(()=>({"modal-body":!0,"f-utils-flex-column":h.value==="iframe"}));function ie(){return{}}const de=e.computed(()=>{const u={textAlgin:C.value},T=ie();return Object.assign(u,T)});function ue(u){}return()=>e.createVNode(e.Teleport,{to:"body"},{default:()=>{var u,T;return[e.createVNode("div",{class:ee.value,style:te.value},[e.createVNode("div",{id:l.value,class:oe.value,style:ae.value},[e.createVNode("div",{class:ne.value},[e.createVNode("div",{ref:"modalHeaderRef",class:"modal-header",style:se.value},[e.createVNode("div",{class:"modal-title"},[W.value&&e.createVNode("span",{class:i.value,style:"margin-right: 8px"},null),e.createVNode("span",{class:"modal-title-label"},[V.value])]),e.createVNode("div",{class:"actions"},[e.createVNode("ul",null,[g.value&&e.createVNode("li",{class:"f-btn-icon f-bare"},[e.createVNode("span",{class:"f-icon modal_minimize"},null)]),f.value&&e.createVNode("li",{onClick:ue,class:"f-btn-icon f-bare"},[e.createVNode("span",{class:le.value},null)]),m.value&&e.createVNode("li",{class:"f-btn-icon f-bare",onClick:y=>B(y,!0)},[e.createVNode("span",{class:"f-icon modal_close"},null)])])])]),e.createVNode("div",{ref:"dragableElementRef",class:"f-utils-absolute-all",style:ce.value},null),e.createVNode("div",{class:re.value},[(T=(u=a.slots).default)==null?void 0:T.call(u),h.value==="iframe"&&e.createVNode("iframe",{title:l.value,class:"f-utils-fill",width:"100%",frameborder:"0",src:w.value},null)]),X.value&&e.createVNode("div",{class:"modal-footer",style:de.value},[M.value&&M.value.map(y=>e.createVNode("button",{type:"button",class:y.class,onClick:S=>{y.handle&&y.handle(S)}},[!!y.iconClass&&e.createVNode("span",{class:y.iconClass},[y.text]),!y.iconClass&&e.createVNode("span",null,[y.text])]))])])])])]}})}});function G(t){if(t.content&&t.content.render)return t.content.render;if(t.render&&typeof t.render=="function")return t.render}function J(t){const a=document.createElement("div");a.style.display="contents";const o=e.createApp({setup(){e.onUnmounted(()=>{document.body.removeChild(a)});const n=e.ref(t.class||""),s=e.ref(!!t.showButtons),l=e.ref(!!t.showHeader),d=e.ref(!0),c=e.ref(t.title||""),r=t.acceptCallback||(()=>{}),i=t.rejectCallback||(()=>{}),m=G(t);return()=>e.createVNode(U,{class:n.value,modelValue:d.value,"onUpdate:modelValue":f=>d.value=f,title:c.value,width:t.width,"show-header":l.value,"show-buttons":s.value,onAccept:r,onCancel:i},{default:()=>[m&&m(o)]})}});return document.body.appendChild(a),o.mount(a),o}class K{static show(a){const o=Object.assign({title:"",showButtons:!0,showHeader:!0},a);return J(o)}}class v{static show(a){const o=e.reactive({...a}),n=!1,s=o.type==="error"||o.type==="prompt",l=o.type==="error"?"错误提示":o.type==="prompt"&&o.title||"",d=o.acceptCallback||(()=>{}),c=o.rejectCallback||(()=>{});let r;const i=()=>{r&&r.unmount()};r=K.show({class:"modal-message modal-message-type-info",title:l,showButtons:n,showHeader:s,render:()=>e.createVNode(N,e.mergeProps(o,{onAccept:d,onReject:c,onClose:i}),null)})}static info(a,o){const n=e.reactive({type:"info",title:a,detail:o,okButtonText:"知道了",cancelButtonText:""});this.show(n)}static warning(a,o){const n=e.reactive({type:"warning",title:a,detail:o,okButtonText:"知道了",cancelButtonText:""});this.show(n)}static success(a,o){const n=e.reactive({type:"success",title:a,detail:o,okButtonText:"关闭",cancelButtonText:""});this.show(n)}static error(a,o,n){const s=e.reactive({type:"error",okButtonText:"关闭",cancelButtonText:"",exceptionInfo:{date:n,message:a,detail:o}});this.show(s)}static prompt(a,o){const n=e.reactive({type:"prompt",title:a,detail:o,okButtonText:"确定",cancelButtonText:"取消"});this.show(n)}static question(a,o,n,s){const l=e.reactive({type:"question",title:a,detail:o,okButtonText:"确定",cancelButtonText:"取消",acceptCallback:n,rejectCallback:s});this.show(l)}}const Q={install(t){t.component(N.name,N),t.provide("MessageBoxService",v)}};x.FMessageBox=N,x.MessageBoxService=v,x.default=Q,x.messageBoxProps=j,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "message-box",
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/message-box/index.d.ts"
8
8
  }
@@ -0,0 +1 @@
1
+ .farris-modal{background-color:#00000073}.farris-modal .modal-content{border-radius:18px}
@@ -1,5 +1,5 @@
1
- import { defineComponent as J, ref as t, computed as s, watch as K, createVNode as e, Teleport as L } from "vue";
2
- const Q = {
1
+ import { defineComponent as G, ref as t, computed as n, watch as J, createVNode as l, Teleport as K, createApp as L, onUnmounted as Q } from "vue";
2
+ const W = {
3
3
  class: { type: String, default: "" },
4
4
  title: { type: String, default: "" },
5
5
  width: { type: Number, default: 500 },
@@ -11,155 +11,202 @@ const Q = {
11
11
  modelValue: { type: Boolean, default: !1 },
12
12
  showHeader: { type: Boolean, default: !0 },
13
13
  showButtons: { type: Boolean, default: !0 }
14
- }, p = /* @__PURE__ */ J({
14
+ };
15
+ const j = /* @__PURE__ */ G({
15
16
  name: "FModal",
16
- props: Q,
17
- emits: ["update:modelValue"],
18
- setup(a, v) {
19
- const f = t(a.width), b = t(a.height), c = t(a.modelValue), y = t(""), C = t(a.class), u = t(!0), i = t(a.showHeader), h = t(""), j = t(!0), x = t(!1), O = t(!1), g = t(""), w = t(""), S = t(""), B = t(a.showButtons), V = t(a.title);
20
- function d(l, o) {
21
- c.value = !1, v.emit("update:modelValue", !1);
17
+ props: W,
18
+ emits: ["update:modelValue", "accept", "cancel"],
19
+ setup(e, o) {
20
+ const c = t(e.width), m = t(e.height), d = t(e.modelValue), v = t(""), f = t(e.class), r = t(!0), i = t(e.showHeader), h = t(""), b = t(!0), y = t(!1), O = t(!1), p = t(""), x = t(""), S = t(""), B = t(e.showButtons), M = t(e.title);
21
+ function C(a, u) {
22
+ d.value = !1, o.emit("update:modelValue", !1), o.emit(u ? "accept" : "cancel");
22
23
  }
23
- const $ = [{
24
+ const V = [{
24
25
  text: "取消",
25
26
  class: "btn btn-light",
26
- handle: (l) => {
27
- d();
27
+ handle: (a) => {
28
+ C(a, !1);
28
29
  }
29
30
  }, {
30
31
  text: "确定",
31
32
  class: "btn btn-primary",
32
- handle: (l) => {
33
- d();
33
+ handle: (a) => {
34
+ C(a, !0);
34
35
  }
35
- }], r = t(a.buttons && a.buttons.length ? a.buttons : $), z = s(() => !!h.value), H = s(() => !!B.value && !!r.value);
36
- t(), t(), K(() => a.modelValue, () => {
37
- c.value = a.modelValue;
36
+ }], w = t(e.buttons && e.buttons.length ? e.buttons : V), H = n(() => !!h.value), k = n(() => !!B.value && !!w.value);
37
+ t(), t(), J(() => e.modelValue, () => {
38
+ d.value = e.modelValue;
38
39
  });
39
- const M = t(!1), A = s(() => c.value), F = s(() => {
40
- const l = {
40
+ const z = t(!1), A = n(() => d.value), $ = n(() => {
41
+ const a = {
41
42
  modal: !0,
42
43
  "farris-modal": !0
43
44
  };
44
- return l["f-modal-fitContent"] = u.value, l;
45
- }), k = s(() => ({
45
+ return a["f-modal-fitContent"] = r.value, a;
46
+ }), F = n(() => ({
46
47
  display: A.value ? "block" : "none !important"
47
- })), D = s(() => {
48
- const l = {
48
+ })), I = n(() => {
49
+ const a = {
49
50
  "modal-dialog": !0
50
51
  };
51
- return C.value.split(" ").reduce((n, m) => (n[m] = !0, n), l), l;
52
- }), I = s(() => ({
52
+ return f.value.split(" ").reduce((s, g) => (s[g] = !0, s), a), a;
53
+ }), R = n(() => ({
53
54
  position: "absolute",
54
55
  top: "50%",
55
56
  left: "50%",
56
- width: `${f.value}px`,
57
- height: u.value ? "auto" : `${b.value}px`,
58
- "margin-left": `${0 - f.value / 2}px`,
59
- "margin-top": u.value ? "auto" : `${0 - b.value / 2}px`
60
- })), N = s(() => ({
57
+ width: `${c.value}px`,
58
+ height: r.value ? "auto" : `${m.value}px`,
59
+ "margin-left": `${0 - c.value / 2}px`,
60
+ "margin-top": r.value ? "auto" : `${0 - m.value / 2}px`
61
+ })), D = n(() => ({
61
62
  "modal-content": !0,
62
63
  "modal-content-has-header": i.value
63
- })), _ = s(() => ({
64
+ })), E = n(() => ({
64
65
  display: i.value ? "" : "none"
65
- })), E = s(() => ({
66
+ })), N = n(() => ({
66
67
  "f-icon": !0,
67
68
  modal_maximize: !0,
68
- modalrevert: M.value
69
- })), R = s(() => ({
69
+ modalrevert: z.value
70
+ })), T = n(() => ({
70
71
  height: "10px",
71
72
  "z-index": 1,
72
73
  display: i.value ? "none" : ""
73
- })), T = s(() => ({
74
+ })), _ = n(() => ({
74
75
  "modal-body": !0,
75
- "f-utils-flex-column": g.value === "iframe"
76
+ "f-utils-flex-column": p.value === "iframe"
76
77
  }));
77
- function P() {
78
+ function U() {
78
79
  return {};
79
80
  }
80
- const q = s(() => {
81
- const l = {
81
+ const P = n(() => {
82
+ const a = {
82
83
  textAlgin: S.value
83
- }, o = P();
84
- return Object.assign(l, o);
84
+ }, u = U();
85
+ return Object.assign(a, u);
85
86
  });
86
- function G(l) {
87
+ function q(a) {
87
88
  }
88
- return () => e(L, {
89
+ return () => l(K, {
89
90
  to: "body"
90
91
  }, {
91
92
  default: () => {
92
- var l, o;
93
- return [e("div", {
94
- class: F.value,
95
- style: k.value
96
- }, [e("div", {
97
- id: y.value,
98
- class: D.value,
99
- style: I.value
100
- }, [e("div", {
101
- class: N.value
102
- }, [e("div", {
93
+ var a, u;
94
+ return [l("div", {
95
+ class: $.value,
96
+ style: F.value
97
+ }, [l("div", {
98
+ id: v.value,
99
+ class: I.value,
100
+ style: R.value
101
+ }, [l("div", {
102
+ class: D.value
103
+ }, [l("div", {
103
104
  ref: "modalHeaderRef",
104
105
  class: "modal-header",
105
- style: _.value
106
- }, [e("div", {
106
+ style: E.value
107
+ }, [l("div", {
107
108
  class: "modal-title"
108
- }, [z.value && e("span", {
109
+ }, [H.value && l("span", {
109
110
  class: h.value,
110
111
  style: "margin-right: 8px"
111
- }, null), e("span", {
112
+ }, null), l("span", {
112
113
  class: "modal-title-label"
113
- }, [V.value])]), e("div", {
114
+ }, [M.value])]), l("div", {
114
115
  class: "actions"
115
- }, [e("ul", null, [O.value && e("li", {
116
+ }, [l("ul", null, [O.value && l("li", {
116
117
  class: "f-btn-icon f-bare"
117
- }, [e("span", {
118
+ }, [l("span", {
118
119
  class: "f-icon modal_minimize"
119
- }, null)]), x.value && e("li", {
120
- onClick: G,
120
+ }, null)]), y.value && l("li", {
121
+ onClick: q,
121
122
  class: "f-btn-icon f-bare"
122
- }, [e("span", {
123
- class: E.value
124
- }, null)]), j.value && e("li", {
123
+ }, [l("span", {
124
+ class: N.value
125
+ }, null)]), b.value && l("li", {
125
126
  class: "f-btn-icon f-bare",
126
- onClick: (n) => d()
127
- }, [e("span", {
127
+ onClick: (s) => C(s, !0)
128
+ }, [l("span", {
128
129
  class: "f-icon modal_close"
129
- }, null)])])])]), e("div", {
130
+ }, null)])])])]), l("div", {
130
131
  ref: "dragableElementRef",
131
132
  class: "f-utils-absolute-all",
132
- style: R.value
133
- }, null), e("div", {
134
- class: T.value
135
- }, [(o = (l = v.slots).default) == null ? void 0 : o.call(l), g.value === "iframe" && e("iframe", {
136
- title: y.value,
133
+ style: T.value
134
+ }, null), l("div", {
135
+ class: _.value
136
+ }, [(u = (a = o.slots).default) == null ? void 0 : u.call(a), p.value === "iframe" && l("iframe", {
137
+ title: v.value,
137
138
  class: "f-utils-fill",
138
139
  width: "100%",
139
140
  frameborder: "0",
140
- src: w.value
141
- }, null)]), H.value && e("div", {
141
+ src: x.value
142
+ }, null)]), k.value && l("div", {
142
143
  class: "modal-footer",
143
- style: q.value
144
- }, [r.value && r.value.map((n) => e("button", {
144
+ style: P.value
145
+ }, [w.value && w.value.map((s) => l("button", {
145
146
  type: "button",
146
- class: n.class,
147
- onClick: (m) => {
148
- n.handle && n.handle(m);
147
+ class: s.class,
148
+ onClick: (g) => {
149
+ s.handle && s.handle(g);
149
150
  }
150
- }, [!!n.iconClass && e("span", {
151
- class: n.iconClass
152
- }, [n.text]), !n.iconClass && e("span", null, [n.text])]))])])])])];
151
+ }, [!!s.iconClass && l("span", {
152
+ class: s.iconClass
153
+ }, [s.text]), !s.iconClass && l("span", null, [s.text])]))])])])])];
153
154
  }
154
155
  });
155
156
  }
156
- }), W = {
157
- install(a) {
158
- a.component(p.name, p);
157
+ });
158
+ function X(e) {
159
+ if (e.content && e.content.render)
160
+ return e.content.render;
161
+ if (e.render && typeof e.render == "function")
162
+ return e.render;
163
+ }
164
+ function Y(e) {
165
+ const o = document.createElement("div");
166
+ o.style.display = "contents";
167
+ const c = L({
168
+ setup() {
169
+ Q(() => {
170
+ document.body.removeChild(o);
171
+ });
172
+ const m = t(e.class || ""), d = t(!!e.showButtons), v = t(!!e.showHeader), f = t(!0), r = t(e.title || ""), i = e.acceptCallback || (() => {
173
+ }), h = e.rejectCallback || (() => {
174
+ }), b = X(e);
175
+ return () => l(j, {
176
+ class: m.value,
177
+ modelValue: f.value,
178
+ "onUpdate:modelValue": (y) => f.value = y,
179
+ title: r.value,
180
+ width: e.width,
181
+ "show-header": v.value,
182
+ "show-buttons": d.value,
183
+ onAccept: i,
184
+ onCancel: h
185
+ }, {
186
+ default: () => [b && b(c)]
187
+ });
188
+ }
189
+ });
190
+ return document.body.appendChild(o), c.mount(o), c;
191
+ }
192
+ class Z {
193
+ static show(o) {
194
+ const c = Object.assign({
195
+ title: "",
196
+ showButtons: !0,
197
+ showHeader: !0
198
+ }, o);
199
+ return Y(c);
200
+ }
201
+ }
202
+ const te = {
203
+ install(e) {
204
+ e.component(j.name, j), e.provide("ModalService", Z);
159
205
  }
160
206
  };
161
207
  export {
162
- p as FModal,
163
- W as default,
164
- Q as modalProps
208
+ j as FModal,
209
+ Z as ModalService,
210
+ te as default,
211
+ W as modalProps
165
212
  };
@@ -1 +1 @@
1
- (function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.modal={},o.Vue))})(this,function(o,e){"use strict";const m={class:{type:String,default:""},title:{type:String,default:""},width:{type:Number,default:500},height:{type:Number,default:320},buttons:{type:Array,default:[]},modelValue:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0}},n=e.defineComponent({name:"FModal",props:m,emits:["update:modelValue"],setup(l,b){const y=e.ref(l.width),h=e.ref(l.height),c=e.ref(l.modelValue),p=e.ref(""),C=e.ref(l.class),d=e.ref(!0),r=e.ref(l.showHeader),V=e.ref(""),j=e.ref(!0),O=e.ref(!1),x=e.ref(!1),g=e.ref(""),w=e.ref(""),S=e.ref(""),B=e.ref(l.showButtons),M=e.ref(l.title);function i(t,s){c.value=!1,b.emit("update:modelValue",!1)}const $=[{text:"取消",class:"btn btn-light",handle:t=>{i()}},{text:"确定",class:"btn btn-primary",handle:t=>{i()}}],u=e.ref(l.buttons&&l.buttons.length?l.buttons:$),z=e.computed(()=>!!V.value),F=e.computed(()=>!!B.value&&!!u.value);e.ref(),e.ref(),e.watch(()=>l.modelValue,()=>{c.value=l.modelValue});const H=e.ref(!1),A=e.computed(()=>c.value),T=e.computed(()=>{const t={modal:!0,"farris-modal":!0};return t["f-modal-fitContent"]=d.value,t}),_=e.computed(()=>({display:A.value?"block":"none !important"})),k=e.computed(()=>{const t={"modal-dialog":!0};return C.value.split(" ").reduce((a,f)=>(a[f]=!0,a),t),t}),v=e.computed(()=>({position:"absolute",top:"50%",left:"50%",width:`${y.value}px`,height:d.value?"auto":`${h.value}px`,"margin-left":`${0-y.value/2}px`,"margin-top":d.value?"auto":`${0-h.value/2}px`})),D=e.computed(()=>({"modal-content":!0,"modal-content-has-header":r.value})),I=e.computed(()=>({display:r.value?"":"none"})),P=e.computed(()=>({"f-icon":!0,modal_maximize:!0,modalrevert:H.value})),E=e.computed(()=>({height:"10px","z-index":1,display:r.value?"none":""})),R=e.computed(()=>({"modal-body":!0,"f-utils-flex-column":g.value==="iframe"}));function q(){return{}}const G=e.computed(()=>{const t={textAlgin:S.value},s=q();return Object.assign(t,s)});function J(t){}return()=>e.createVNode(e.Teleport,{to:"body"},{default:()=>{var t,s;return[e.createVNode("div",{class:T.value,style:_.value},[e.createVNode("div",{id:p.value,class:k.value,style:v.value},[e.createVNode("div",{class:D.value},[e.createVNode("div",{ref:"modalHeaderRef",class:"modal-header",style:I.value},[e.createVNode("div",{class:"modal-title"},[z.value&&e.createVNode("span",{class:V.value,style:"margin-right: 8px"},null),e.createVNode("span",{class:"modal-title-label"},[M.value])]),e.createVNode("div",{class:"actions"},[e.createVNode("ul",null,[x.value&&e.createVNode("li",{class:"f-btn-icon f-bare"},[e.createVNode("span",{class:"f-icon modal_minimize"},null)]),O.value&&e.createVNode("li",{onClick:J,class:"f-btn-icon f-bare"},[e.createVNode("span",{class:P.value},null)]),j.value&&e.createVNode("li",{class:"f-btn-icon f-bare",onClick:a=>i()},[e.createVNode("span",{class:"f-icon modal_close"},null)])])])]),e.createVNode("div",{ref:"dragableElementRef",class:"f-utils-absolute-all",style:E.value},null),e.createVNode("div",{class:R.value},[(s=(t=b.slots).default)==null?void 0:s.call(t),g.value==="iframe"&&e.createVNode("iframe",{title:p.value,class:"f-utils-fill",width:"100%",frameborder:"0",src:w.value},null)]),F.value&&e.createVNode("div",{class:"modal-footer",style:G.value},[u.value&&u.value.map(a=>e.createVNode("button",{type:"button",class:a.class,onClick:f=>{a.handle&&a.handle(f)}},[!!a.iconClass&&e.createVNode("span",{class:a.iconClass},[a.text]),!a.iconClass&&e.createVNode("span",null,[a.text])]))])])])])]}})}}),N={install(l){l.component(n.name,n)}};o.FModal=n,o.default=N,o.modalProps=m,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.modal={},o.Vue))})(this,function(o,e){"use strict";const w={class:{type:String,default:""},title:{type:String,default:""},width:{type:Number,default:500},height:{type:Number,default:320},buttons:{type:Array,default:[]},modelValue:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0}},Q="",u=e.defineComponent({name:"FModal",props:w,emits:["update:modelValue","accept","cancel"],setup(t,n){const s=e.ref(t.width),m=e.ref(t.height),d=e.ref(t.modelValue),f=e.ref(""),h=e.ref(t.class),r=e.ref(!0),i=e.ref(t.showHeader),b=e.ref(""),y=e.ref(!0),p=e.ref(!1),M=e.ref(!1),j=e.ref(""),B=e.ref(""),H=e.ref(""),k=e.ref(t.showButtons),z=e.ref(t.title);function V(l,c){d.value=!1,n.emit("update:modelValue",!1),n.emit(c?"accept":"cancel")}const A=[{text:"取消",class:"btn btn-light",handle:l=>{V(l,!1)}},{text:"确定",class:"btn btn-primary",handle:l=>{V(l,!0)}}],C=e.ref(t.buttons&&t.buttons.length?t.buttons:A),v=e.computed(()=>!!b.value),F=e.computed(()=>!!k.value&&!!C.value);e.ref(),e.ref(),e.watch(()=>t.modelValue,()=>{d.value=t.modelValue});const T=e.ref(!1),$=e.computed(()=>d.value),_=e.computed(()=>{const l={modal:!0,"farris-modal":!0};return l["f-modal-fitContent"]=r.value,l}),I=e.computed(()=>({display:$.value?"block":"none !important"})),R=e.computed(()=>{const l={"modal-dialog":!0};return h.value.split(" ").reduce((a,g)=>(a[g]=!0,a),l),l}),D=e.computed(()=>({position:"absolute",top:"50%",left:"50%",width:`${s.value}px`,height:r.value?"auto":`${m.value}px`,"margin-left":`${0-s.value/2}px`,"margin-top":r.value?"auto":`${0-m.value/2}px`})),E=e.computed(()=>({"modal-content":!0,"modal-content-has-header":i.value})),P=e.computed(()=>({display:i.value?"":"none"})),U=e.computed(()=>({"f-icon":!0,modal_maximize:!0,modalrevert:T.value})),q=e.computed(()=>({height:"10px","z-index":1,display:i.value?"none":""})),G=e.computed(()=>({"modal-body":!0,"f-utils-flex-column":j.value==="iframe"}));function J(){return{}}const K=e.computed(()=>{const l={textAlgin:H.value},c=J();return Object.assign(l,c)});function L(l){}return()=>e.createVNode(e.Teleport,{to:"body"},{default:()=>{var l,c;return[e.createVNode("div",{class:_.value,style:I.value},[e.createVNode("div",{id:f.value,class:R.value,style:D.value},[e.createVNode("div",{class:E.value},[e.createVNode("div",{ref:"modalHeaderRef",class:"modal-header",style:P.value},[e.createVNode("div",{class:"modal-title"},[v.value&&e.createVNode("span",{class:b.value,style:"margin-right: 8px"},null),e.createVNode("span",{class:"modal-title-label"},[z.value])]),e.createVNode("div",{class:"actions"},[e.createVNode("ul",null,[M.value&&e.createVNode("li",{class:"f-btn-icon f-bare"},[e.createVNode("span",{class:"f-icon modal_minimize"},null)]),p.value&&e.createVNode("li",{onClick:L,class:"f-btn-icon f-bare"},[e.createVNode("span",{class:U.value},null)]),y.value&&e.createVNode("li",{class:"f-btn-icon f-bare",onClick:a=>V(a,!0)},[e.createVNode("span",{class:"f-icon modal_close"},null)])])])]),e.createVNode("div",{ref:"dragableElementRef",class:"f-utils-absolute-all",style:q.value},null),e.createVNode("div",{class:G.value},[(c=(l=n.slots).default)==null?void 0:c.call(l),j.value==="iframe"&&e.createVNode("iframe",{title:f.value,class:"f-utils-fill",width:"100%",frameborder:"0",src:B.value},null)]),F.value&&e.createVNode("div",{class:"modal-footer",style:K.value},[C.value&&C.value.map(a=>e.createVNode("button",{type:"button",class:a.class,onClick:g=>{a.handle&&a.handle(g)}},[!!a.iconClass&&e.createVNode("span",{class:a.iconClass},[a.text]),!a.iconClass&&e.createVNode("span",null,[a.text])]))])])])])]}})}});function O(t){if(t.content&&t.content.render)return t.content.render;if(t.render&&typeof t.render=="function")return t.render}function S(t){const n=document.createElement("div");n.style.display="contents";const s=e.createApp({setup(){e.onUnmounted(()=>{document.body.removeChild(n)});const m=e.ref(t.class||""),d=e.ref(!!t.showButtons),f=e.ref(!!t.showHeader),h=e.ref(!0),r=e.ref(t.title||""),i=t.acceptCallback||(()=>{}),b=t.rejectCallback||(()=>{}),y=O(t);return()=>e.createVNode(u,{class:m.value,modelValue:h.value,"onUpdate:modelValue":p=>h.value=p,title:r.value,width:t.width,"show-header":f.value,"show-buttons":d.value,onAccept:i,onCancel:b},{default:()=>[y&&y(s)]})}});return document.body.appendChild(n),s.mount(n),s}class N{static show(n){const s=Object.assign({title:"",showButtons:!0,showHeader:!0},n);return S(s)}}const x={install(t){t.component(u.name,u),t.provide("ModalService",N)}};o.FModal=u,o.ModalService=N,o.default=x,o.modalProps=w,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "modal",
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/modal/index.d.ts"
8
8
  }
@@ -0,0 +1 @@
1
+ .farris-modal{background-color:#00000073}.farris-modal .modal-content{border-radius:18px}