@fox-js/foxui 4.0.1-4 → 4.0.1-40

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 (226) hide show
  1. package/dist/index.cjs.js +13 -0
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.esm.js +25891 -0
  4. package/dist/index.umd.js +13 -0
  5. package/dist/locale/index.esm.js +473 -0
  6. package/dist/locale/index.umd.js +3 -0
  7. package/dist/style.css +1 -1
  8. package/dist/style.esm.js +3 -0
  9. package/dist/types/index.d.ts +2133 -119
  10. package/package.json +15 -17
  11. package/dist/foxui.es.js +0 -25264
  12. package/dist/foxui.umd.js +0 -21
  13. package/dist/locale/index.cjs.js +0 -1
  14. package/dist/locale/index.d.ts +0 -396
  15. package/dist/locale/index.js +0 -405
  16. package/dist/style.es.js +0 -2
  17. package/dist/types/api/index.d.ts +0 -9
  18. package/dist/types/components/actionsheet/index.vue.d.ts +0 -13
  19. package/dist/types/components/address/index.vue.d.ts +0 -13
  20. package/dist/types/components/addresslist/components/GeneralShell.vue.d.ts +0 -13
  21. package/dist/types/components/addresslist/components/ItemContents.vue.d.ts +0 -13
  22. package/dist/types/components/addresslist/components/LongPressShell.vue.d.ts +0 -13
  23. package/dist/types/components/addresslist/components/SwipeShell.vue.d.ts +0 -13
  24. package/dist/types/components/addresslist/index.vue.d.ts +0 -13
  25. package/dist/types/components/animate/index.vue.d.ts +0 -13
  26. package/dist/types/components/animate/type.d.ts +0 -2
  27. package/dist/types/components/audio/index.vue.d.ts +0 -13
  28. package/dist/types/components/audiooperate/index.vue.d.ts +0 -13
  29. package/dist/types/components/avatar/index.vue.d.ts +0 -13
  30. package/dist/types/components/avatargroup/index.vue.d.ts +0 -13
  31. package/dist/types/components/backtop/index.vue.d.ts +0 -13
  32. package/dist/types/components/badge/index.vue.d.ts +0 -13
  33. package/dist/types/components/barrage/index.vue.d.ts +0 -13
  34. package/dist/types/components/button/index.vue.d.ts +0 -13
  35. package/dist/types/components/button/type.d.ts +0 -3
  36. package/dist/types/components/calendar/common.d.ts +0 -61
  37. package/dist/types/components/calendar/index.vue.d.ts +0 -13
  38. package/dist/types/components/calendar/pane.vue.d.ts +0 -13
  39. package/dist/types/components/calendar/types.d.ts +0 -13
  40. package/dist/types/components/calendaritem/common.d.ts +0 -201
  41. package/dist/types/components/calendaritem/index.vue.d.ts +0 -13
  42. package/dist/types/components/card/index.vue.d.ts +0 -13
  43. package/dist/types/components/cascader/cascader-pane.vue.d.ts +0 -13
  44. package/dist/types/components/cascader/common.d.ts +0 -98
  45. package/dist/types/components/cascader/helper.d.ts +0 -4
  46. package/dist/types/components/cascader/index.vue.d.ts +0 -13
  47. package/dist/types/components/cascader/tree.d.ts +0 -12
  48. package/dist/types/components/cascader/types.d.ts +0 -26
  49. package/dist/types/components/cascaderitem/index.vue.d.ts +0 -13
  50. package/dist/types/components/cascaderitem/model.d.ts +0 -34
  51. package/dist/types/components/category/index.vue.d.ts +0 -13
  52. package/dist/types/components/categorypane/index.vue.d.ts +0 -13
  53. package/dist/types/components/cell/index.vue.d.ts +0 -13
  54. package/dist/types/components/cellgroup/index.vue.d.ts +0 -13
  55. package/dist/types/components/checkbox/common.d.ts +0 -64
  56. package/dist/types/components/checkbox/index.vue.d.ts +0 -13
  57. package/dist/types/components/checkboxitem/common.d.ts +0 -107
  58. package/dist/types/components/checkboxitem/index.vue.d.ts +0 -13
  59. package/dist/types/components/checkboxitem/model.d.ts +0 -33
  60. package/dist/types/components/circleprogress/index.vue.d.ts +0 -13
  61. package/dist/types/components/col/index.vue.d.ts +0 -13
  62. package/dist/types/components/collapse/index.vue.d.ts +0 -13
  63. package/dist/types/components/collapseitem/index.vue.d.ts +0 -13
  64. package/dist/types/components/comment/components/CmtBottom.vue.d.ts +0 -13
  65. package/dist/types/components/comment/components/CmtHeader.vue.d.ts +0 -13
  66. package/dist/types/components/comment/components/CmtImages.vue.d.ts +0 -13
  67. package/dist/types/components/comment/index.vue.d.ts +0 -13
  68. package/dist/types/components/content/common.d.ts +0 -16
  69. package/dist/types/components/content/index.vue.d.ts +0 -13
  70. package/dist/types/components/countdown/index.vue.d.ts +0 -13
  71. package/dist/types/components/countdown/util.d.ts +0 -2
  72. package/dist/types/components/countup/index.vue.d.ts +0 -13
  73. package/dist/types/components/dateitem/index.vue.d.ts +0 -13
  74. package/dist/types/components/datepicker/common.d.ts +0 -55
  75. package/dist/types/components/datepicker/index.vue.d.ts +0 -13
  76. package/dist/types/components/dialog/index.d.ts +0 -44
  77. package/dist/types/components/dialog/index.vue.d.ts +0 -13
  78. package/dist/types/components/divider/index.vue.d.ts +0 -13
  79. package/dist/types/components/drag/index.vue.d.ts +0 -13
  80. package/dist/types/components/ecard/index.vue.d.ts +0 -13
  81. package/dist/types/components/elevator/index.vue.d.ts +0 -13
  82. package/dist/types/components/ellipsis/index.vue.d.ts +0 -13
  83. package/dist/types/components/ellipsis/type.d.ts +0 -1
  84. package/dist/types/components/empty/index.vue.d.ts +0 -13
  85. package/dist/types/components/fixednav/common.d.ts +0 -51
  86. package/dist/types/components/fixednav/index.vue.d.ts +0 -13
  87. package/dist/types/components/footer/common.d.ts +0 -22
  88. package/dist/types/components/footer/index.vue.d.ts +0 -13
  89. package/dist/types/components/footer/type.d.ts +0 -1
  90. package/dist/types/components/grid/common.d.ts +0 -87
  91. package/dist/types/components/grid/index.vue.d.ts +0 -13
  92. package/dist/types/components/griditem/index.vue.d.ts +0 -13
  93. package/dist/types/components/group/group-props.d.ts +0 -34
  94. package/dist/types/components/group/index.vue.d.ts +0 -13
  95. package/dist/types/components/header/common.d.ts +0 -87
  96. package/dist/types/components/header/index.vue.d.ts +0 -13
  97. package/dist/types/components/header/types.d.ts +0 -9
  98. package/dist/types/components/hinttext/index.d.ts +0 -8
  99. package/dist/types/components/hinttext/index.vue.d.ts +0 -13
  100. package/dist/types/components/icon/index.vue.d.ts +0 -13
  101. package/dist/types/components/image/index.vue.d.ts +0 -13
  102. package/dist/types/components/image/type.d.ts +0 -2
  103. package/dist/types/components/imagepreview/imagePreviewItem.vue.d.ts +0 -13
  104. package/dist/types/components/imagepreview/index.d.ts +0 -20
  105. package/dist/types/components/imagepreview/index.vue.d.ts +0 -13
  106. package/dist/types/components/indicator/index.vue.d.ts +0 -13
  107. package/dist/types/components/infiniteloading/index.vue.d.ts +0 -13
  108. package/dist/types/components/inputitem/index.vue.d.ts +0 -13
  109. package/dist/types/components/inputnumber/index.vue.d.ts +0 -13
  110. package/dist/types/components/item/common.d.ts +0 -121
  111. package/dist/types/components/item/index.vue.d.ts +0 -13
  112. package/dist/types/components/layout/index.vue.d.ts +0 -13
  113. package/dist/types/components/linkitem/common.d.ts +0 -132
  114. package/dist/types/components/linkitem/index.vue.d.ts +0 -13
  115. package/dist/types/components/list/index.vue.d.ts +0 -13
  116. package/dist/types/components/menu/index.vue.d.ts +0 -13
  117. package/dist/types/components/menuitem/index.vue.d.ts +0 -13
  118. package/dist/types/components/menuitem/type.d.ts +0 -4
  119. package/dist/types/components/moneyitem/index.vue.d.ts +0 -13
  120. package/dist/types/components/moneyitem/util.d.ts +0 -15
  121. package/dist/types/components/navbar/index.vue.d.ts +0 -13
  122. package/dist/types/components/noticebar/index.vue.d.ts +0 -13
  123. package/dist/types/components/notify/index.d.ts +0 -12
  124. package/dist/types/components/notify/index.vue.d.ts +0 -13
  125. package/dist/types/components/numberkeyboard/index.vue.d.ts +0 -13
  126. package/dist/types/components/overlay/common.d.ts +0 -30
  127. package/dist/types/components/overlay/index.vue.d.ts +0 -13
  128. package/dist/types/components/page/common.d.ts +0 -78
  129. package/dist/types/components/page/index.vue.d.ts +0 -13
  130. package/dist/types/components/pagination/index.vue.d.ts +0 -13
  131. package/dist/types/components/picker/column.vue.d.ts +0 -13
  132. package/dist/types/components/picker/common-column.d.ts +0 -26
  133. package/dist/types/components/picker/common.d.ts +0 -143
  134. package/dist/types/components/picker/index.vue.d.ts +0 -13
  135. package/dist/types/components/picker/model.d.ts +0 -55
  136. package/dist/types/components/pickeritem/index.vue.d.ts +0 -13
  137. package/dist/types/components/placeholder/index.vue.d.ts +0 -13
  138. package/dist/types/components/popover/index.vue.d.ts +0 -13
  139. package/dist/types/components/popover/type.d.ts +0 -2
  140. package/dist/types/components/popup/common.d.ts +0 -81
  141. package/dist/types/components/popup/index.vue.d.ts +0 -13
  142. package/dist/types/components/popup/use-lock-scroll.d.ts +0 -1
  143. package/dist/types/components/price/index.vue.d.ts +0 -13
  144. package/dist/types/components/price/price-props.d.ts +0 -37
  145. package/dist/types/components/progress/index.vue.d.ts +0 -13
  146. package/dist/types/components/radio/common.d.ts +0 -125
  147. package/dist/types/components/radio/index.vue.d.ts +0 -13
  148. package/dist/types/components/radioitem/common.d.ts +0 -99
  149. package/dist/types/components/radioitem/index.vue.d.ts +0 -13
  150. package/dist/types/components/radioitem/model.d.ts +0 -33
  151. package/dist/types/components/range/index.vue.d.ts +0 -13
  152. package/dist/types/components/rate/index.vue.d.ts +0 -13
  153. package/dist/types/components/row/index.vue.d.ts +0 -13
  154. package/dist/types/components/searchbar/index.vue.d.ts +0 -13
  155. package/dist/types/components/searchbar/type.d.ts +0 -5
  156. package/dist/types/components/shortpassword/index.vue.d.ts +0 -13
  157. package/dist/types/components/sidenavbar/index.vue.d.ts +0 -13
  158. package/dist/types/components/sidenavbaritem/index.vue.d.ts +0 -13
  159. package/dist/types/components/signature/index.vue.d.ts +0 -13
  160. package/dist/types/components/skeleton/common.d.ts +0 -57
  161. package/dist/types/components/skeleton/index.vue.d.ts +0 -13
  162. package/dist/types/components/sku/components/SkuHeader.vue.d.ts +0 -13
  163. package/dist/types/components/sku/components/SkuOperate.vue.d.ts +0 -13
  164. package/dist/types/components/sku/components/SkuSelect.vue.d.ts +0 -13
  165. package/dist/types/components/sku/components/SkuStepper.vue.d.ts +0 -13
  166. package/dist/types/components/sku/index.vue.d.ts +0 -13
  167. package/dist/types/components/step/index.vue.d.ts +0 -13
  168. package/dist/types/components/steps/index.vue.d.ts +0 -13
  169. package/dist/types/components/sticky/index.vue.d.ts +0 -13
  170. package/dist/types/components/subsidenavbar/index.vue.d.ts +0 -13
  171. package/dist/types/components/swipe/index.vue.d.ts +0 -13
  172. package/dist/types/components/swipe/type.d.ts +0 -1
  173. package/dist/types/components/swiper/index.vue.d.ts +0 -13
  174. package/dist/types/components/swiper/use-touch.d.ts +0 -16
  175. package/dist/types/components/swiperitem/index.vue.d.ts +0 -13
  176. package/dist/types/components/switch/common.d.ts +0 -50
  177. package/dist/types/components/switch/index.vue.d.ts +0 -13
  178. package/dist/types/components/switchitem/index.vue.d.ts +0 -13
  179. package/dist/types/components/tabbar/index.vue.d.ts +0 -13
  180. package/dist/types/components/tabbaritem/index.vue.d.ts +0 -13
  181. package/dist/types/components/table/common.d.ts +0 -55
  182. package/dist/types/components/table/index.vue.d.ts +0 -13
  183. package/dist/types/components/table/renderColumn.d.ts +0 -11
  184. package/dist/types/components/table/types.d.ts +0 -17
  185. package/dist/types/components/tabpane/index.vue.d.ts +0 -13
  186. package/dist/types/components/tabs/index.vue.d.ts +0 -13
  187. package/dist/types/components/tabs/type.d.ts +0 -1
  188. package/dist/types/components/tag/index.vue.d.ts +0 -13
  189. package/dist/types/components/tag/type.d.ts +0 -1
  190. package/dist/types/components/textarea/index.vue.d.ts +0 -13
  191. package/dist/types/components/textareaitem/index.vue.d.ts +0 -13
  192. package/dist/types/components/timedetail/index.vue.d.ts +0 -13
  193. package/dist/types/components/timepannel/index.vue.d.ts +0 -13
  194. package/dist/types/components/timeselect/index.vue.d.ts +0 -13
  195. package/dist/types/components/toast/index.d.ts +0 -12
  196. package/dist/types/components/toast/index.vue.d.ts +0 -13
  197. package/dist/types/components/uploader/index.vue.d.ts +0 -13
  198. package/dist/types/components/uploader/type.d.ts +0 -14
  199. package/dist/types/components/uploader/uploader.d.ts +0 -24
  200. package/dist/types/components/video/index.vue.d.ts +0 -13
  201. package/dist/types/components/watermark/index.vue.d.ts +0 -13
  202. package/dist/types/interface.d.ts +0 -27
  203. package/dist/types/main.d.ts +0 -18
  204. package/dist/types/utils/commons.d.ts +0 -16
  205. package/dist/types/utils/create/component.d.ts +0 -18
  206. package/dist/types/utils/create/index.d.ts +0 -1
  207. package/dist/types/utils/date.d.ts +0 -16
  208. package/dist/types/utils/domain/broadcast.d.ts +0 -28
  209. package/dist/types/utils/domain/domain.d.ts +0 -46
  210. package/dist/types/utils/domain/events.d.ts +0 -14
  211. package/dist/types/utils/domain/group.d.ts +0 -17
  212. package/dist/types/utils/domain/index.d.ts +0 -5
  213. package/dist/types/utils/domain/item.d.ts +0 -15
  214. package/dist/types/utils/domain/page.d.ts +0 -49
  215. package/dist/types/utils/domain/validator.d.ts +0 -56
  216. package/dist/types/utils/functions.d.ts +0 -3
  217. package/dist/types/utils/px.d.ts +0 -2
  218. package/dist/types/utils/types.d.ts +0 -9
  219. package/dist/types/utils/unique-id.d.ts +0 -5
  220. package/dist/types/utils/use-expose/index.d.ts +0 -2
  221. package/dist/types/utils/use-rect/index.d.ts +0 -11
  222. package/dist/types/utils/use-relation/index.d.ts +0 -3
  223. package/dist/types/utils/use-relation/useInject.d.ts +0 -14
  224. package/dist/types/utils/use-relation/useProvide.d.ts +0 -8
  225. package/dist/types/utils/use-relation/useRelation.d.ts +0 -1
  226. package/dist/types/utils/use-touch/index.d.ts +0 -18
@@ -1,119 +1,2133 @@
1
- import { FoxUIApp } from './main';
2
- import Page from './components/page/index.vue';
3
- import Header from './components/header/index.vue';
4
- import Footer from './components/footer/index.vue';
5
- import Content from './components/content/index.vue';
6
- import Group from './components/group/index.vue';
7
- import Item from './components/item/index.vue';
8
- import Placeholder from './components/placeholder/index.vue';
9
- import InputItem from './components/inputitem/index.vue';
10
- import MoneyItem from './components/moneyitem/index.vue';
11
- import TextareaItem from './components/textareaitem/index.vue';
12
- import Textarea from './components/textarea/index.vue';
13
- import PickerItem from './components/pickeritem/index.vue';
14
- import CascaderItem from './components/cascaderitem/index.vue';
15
- import DateItem from './components/dateitem/index.vue';
16
- import CalendarItem from './components/calendaritem/index.vue';
17
- import Radio from './components/radio/index.vue';
18
- import RadioItem from './components/radioitem/index.vue';
19
- import Checkbox from './components/checkbox/index.vue';
20
- import CheckboxItem from './components/checkboxitem/index.vue';
21
- import SwitchItem from './components/switchitem/index.vue';
22
- import hinttext from './components/hinttext/index.vue';
23
- import LinkItem from './components/linkitem/index.vue';
24
- import Button from './components/button/index.vue';
25
- import Cell from './components/cell/index.vue';
26
- import CellGroup from './components/cellgroup/index.vue';
27
- import Icon from './components/icon/index.vue';
28
- import OverLay from './components/overlay/index.vue';
29
- import Popup from './components/popup/index.vue';
30
- import Image from './components/image/index.vue';
31
- import Layout from './components/layout/index.vue';
32
- import Col from './components/col/index.vue';
33
- import Row from './components/row/index.vue';
34
- import Sticky from './components/sticky/index.vue';
35
- import Divider from './components/divider/index.vue';
36
- import Grid from './components/grid/index.vue';
37
- import GridItem from './components/griditem/index.vue';
38
- import Navbar from './components/navbar/index.vue';
39
- import FixedNav from './components/fixednav/index.vue';
40
- import Menu from './components/menu/index.vue';
41
- import MenuItem from './components/menuitem/index.vue';
42
- import Tabbar from './components/tabbar/index.vue';
43
- import TabbarItem from './components/tabbaritem/index.vue';
44
- import Elevator from './components/elevator/index.vue';
45
- import Pagination from './components/pagination/index.vue';
46
- import Tabs from './components/tabs/index.vue';
47
- import TabPane from './components/tabpane/index.vue';
48
- import Indicator from './components/indicator/index.vue';
49
- import SideNavBar from './components/sidenavbar/index.vue';
50
- import SideNavBarItem from './components/sidenavbaritem/index.vue';
51
- import SubSideNavBar from './components/subsidenavbar/index.vue';
52
- import Range from './components/range/index.vue';
53
- import SearchBar from './components/searchbar/index.vue';
54
- import Cascader from './components/cascader/index.vue';
55
- import Calendar from './components/calendar/index.vue';
56
- import DatePicker from './components/datepicker/index.vue';
57
- import InputNumber from './components/inputnumber/index.vue';
58
- import Rate from './components/rate/index.vue';
59
- import Picker from './components/picker/index.vue';
60
- import ShortPassword from './components/shortpassword/index.vue';
61
- import Uploader from './components/uploader/index.vue';
62
- import NumberKeyboard from './components/numberkeyboard/index.vue';
63
- import Swipe from './components/swipe/index.vue';
64
- import ActionSheet from './components/actionsheet/index.vue';
65
- import BackTop from './components/backtop/index.vue';
66
- import Drag from './components/drag/index.vue';
67
- import Dialog from './components/dialog/index';
68
- import InfiniteLoading from './components/infiniteloading/index.vue';
69
- import Notify from './components/notify/index';
70
- import Switch from './components/switch/index.vue';
71
- import Toast from './components/toast/index';
72
- import Audio from './components/audio/index.vue';
73
- import AudioOperate from './components/audiooperate/index.vue';
74
- import Avatar from './components/avatar/index.vue';
75
- import AvatarGroup from './components/avatargroup/index.vue';
76
- import List from './components/list/index.vue';
77
- import Progress from './components/progress/index.vue';
78
- import CircleProgress from './components/circleprogress/index.vue';
79
- import NoticeBar from './components/noticebar/index.vue';
80
- import Empty from './components/empty/index.vue';
81
- import Video from './components/video/index.vue';
82
- import Steps from './components/steps/index.vue';
83
- import Step from './components/step/index.vue';
84
- import Swiper from './components/swiper/index.vue';
85
- import SwiperItem from './components/swiperitem/index.vue';
86
- import Price from './components/price/index.vue';
87
- import ImagePreview from './components/imagepreview/index';
88
- import CountUp from './components/countup/index.vue';
89
- import CountDown from './components/countdown/index.vue';
90
- import Badge from './components/badge/index.vue';
91
- import Tag from './components/tag/index.vue';
92
- import Popover from './components/popover/index.vue';
93
- import Skeleton from './components/skeleton/index.vue';
94
- import Collapse from './components/collapse/index.vue';
95
- import CollapseItem from './components/collapseitem/index.vue';
96
- import Table from './components/table/index.vue';
97
- import Ellipsis from './components/ellipsis/index.vue';
98
- import Animate from './components/animate/index.vue';
99
- import WaterMark from './components/watermark/index.vue';
100
- import Address from './components/address/index.vue';
101
- import Barrage from './components/barrage/index.vue';
102
- import Signature from './components/signature/index.vue';
103
- import TimeSelect from './components/timeselect/index.vue';
104
- import TimePannel from './components/timepannel/index.vue';
105
- import TimeDetail from './components/timedetail/index.vue';
106
- import Sku from './components/sku/index.vue';
107
- import Card from './components/card/index.vue';
108
- import Ecard from './components/ecard/index.vue';
109
- import AddressList from './components/addresslist/index.vue';
110
- import Category from './components/category/index.vue';
111
- import CategoryPane from './components/categorypane/index.vue';
112
- import Comment from './components/comment/index.vue';
113
- export * from './utils/commons';
114
- export * from './utils/functions';
115
- export * from './utils/date';
116
- export * from './utils/unique-id';
117
- export { Page, Header, Footer, Content, Group, Item, Placeholder, InputItem, MoneyItem, TextareaItem, Textarea, PickerItem, CascaderItem, DateItem, CalendarItem, Radio, RadioItem, Checkbox, CheckboxItem, SwitchItem, hinttext, LinkItem, Button, Cell, CellGroup, Icon, OverLay, Popup, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SideNavBarItem, SubSideNavBar, Range, SearchBar, Cascader, Calendar, DatePicker, InputNumber, Rate, Picker, ShortPassword, Uploader, NumberKeyboard, Swipe, ActionSheet, BackTop, Drag, Dialog, InfiniteLoading, Notify, Switch, Toast, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, NoticeBar, Empty, Video, Steps, Step, Swiper, SwiperItem, Price, ImagePreview, CountUp, CountDown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Ellipsis, Animate, WaterMark, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment };
118
- declare const _default: FoxUIApp;
119
- export default _default;
1
+ import { App } from 'vue';
2
+ import { compareTo } from '@fox-js/big-decimal';
3
+ import { ComponentInternalInstance } from 'vue';
4
+ import { ComponentPublicInstance } from 'vue';
5
+ import { CSSProperties } from 'vue';
6
+ import { divide } from '@fox-js/big-decimal';
7
+ import { ExecuteValidator } from '@fox-js/validator';
8
+ import { FoxComponentPublicInstance } from './types';
9
+ import { FoxUI } from './interface';
10
+ import { FoxUIOptions } from './interface';
11
+ import { HintTextTooltip } from './types';
12
+ import { multiply } from '@fox-js/big-decimal';
13
+ import { negate } from '@fox-js/big-decimal';
14
+ import { numberFormat } from '@fox-js/big-decimal';
15
+ import { Ref } from 'vue';
16
+ import { Rule } from '@fox-js/validator';
17
+ import { ScopeGetter } from './api';
18
+ import { unNumberFormat } from '@fox-js/big-decimal';
19
+ import { UnwrapNestedRefs } from 'vue';
20
+ import { UnwrapRef } from 'vue';
21
+ import { ValidateMessages } from '@fox-js/validator';
22
+ import { ValidateResult } from '@fox-js/validator';
23
+ import { VNode } from 'vue';
24
+
25
+ /**
26
+ * 是否接受value过滤器
27
+ */
28
+ export declare interface AcceptFilter {
29
+ (value: any): boolean;
30
+ }
31
+
32
+ /**
33
+ * 广播类
34
+ */
35
+ export declare class Broadcast {
36
+ /**
37
+ * parent
38
+ */
39
+ private parent;
40
+ /**
41
+ * children
42
+ */
43
+ private children;
44
+ /**
45
+ * 回调函数注册表
46
+ */
47
+ private callbacks;
48
+ /**
49
+ * vue proxy
50
+ */
51
+ private proxy;
52
+ /**
53
+ * 名称
54
+ */
55
+ private name?;
56
+ /**
57
+ * 构造函数
58
+ * @param parent
59
+ * @param proxy
60
+ * @param name
61
+ */
62
+ constructor(parent: Broadcast | null, proxy: FoxComponentPublicInstance, name?: string);
63
+ /**
64
+ * 加入孩子节点
65
+ * @param child
66
+ */
67
+ private addChild;
68
+ /**
69
+ * 移除孩子节点
70
+ * @param child
71
+ */
72
+ private removeChild;
73
+ /**
74
+ * 销毁
75
+ */
76
+ destroy(): void;
77
+ /**
78
+ * 发生消息
79
+ * @param matched
80
+ * @param action
81
+ * @param args
82
+ */
83
+ emit(matched: Matched, action: string, ...args: any[]): Results;
84
+ /**
85
+ * 发生消息(只发给孩子节点)
86
+ * @param matched
87
+ * @param action
88
+ * @param args
89
+ */
90
+ emitToChildren(matched: Matched, action: string, ...args: any[]): Results;
91
+ /**
92
+ * 注册回调函数
93
+ * @param action
94
+ * @param callback
95
+ * @returns
96
+ */
97
+ on(action: string, callback: BroadcastCallback): void;
98
+ }
99
+
100
+ /**
101
+ * broadcast callback
102
+ */
103
+ export declare interface BroadcastCallback {
104
+ (...args: any[]): Result;
105
+ }
106
+
107
+ export declare const BroadcastKey: unique symbol;
108
+
109
+ export declare function cancelRaf(id: number): void;
110
+
111
+ /**
112
+ * clamp
113
+ * @param num
114
+ * @param min
115
+ * @param max
116
+ * @returns
117
+ */
118
+ export declare const clamp: (num: number, min: number, max: number) => number;
119
+
120
+ /**
121
+ * 清理非数字
122
+ */
123
+ export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
124
+
125
+ /**
126
+ * 克隆对象
127
+ * @param target
128
+ * @param source
129
+ * @param plain
130
+ *
131
+ * @returns
132
+ */
133
+ export declare function clone(target: any, source: any, plain?: boolean): any;
134
+
135
+ export { compareTo }
136
+
137
+ /**
138
+ * 内容
139
+ */
140
+ declare type Content_2 = string | GroupContent[] | string[] | VNode | {
141
+ (): VNode;
142
+ };
143
+
144
+ /**
145
+ * 创建broadcast
146
+ *
147
+ * @param proxy
148
+ * @param parent
149
+ * @param name
150
+ * @param callbacks
151
+ * @returns
152
+ */
153
+ export declare function createBroadcast(proxy: FoxComponentPublicInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
154
+
155
+ /**
156
+ * 创建校验schema
157
+ * @param proxy
158
+ * @param parent
159
+ * @param descriptor
160
+ * @returns
161
+ */
162
+ export declare function createValidateSchema(proxy: FoxComponentPublicInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
163
+
164
+ /**
165
+ * data items key
166
+ */
167
+ export declare const DataItemsKey: unique symbol;
168
+
169
+ export declare const DateUtils: {
170
+ /**
171
+ * 格式化
172
+ * @param date
173
+ * @param template
174
+ * @returns
175
+ */
176
+ format(date: Date, template: string): string;
177
+ /**
178
+ * 解析
179
+ * @param str
180
+ * @param template
181
+ */
182
+ parser(str: string, template: string): Date;
183
+ /**
184
+ * 是否为闫年
185
+ * @return {Boolse} true|false
186
+ */
187
+ isLeapYear(y: number): boolean;
188
+ /**
189
+ * 返回星期数
190
+ * @return {String}
191
+ */
192
+ getWhatDay(year: number, month: number, day: number): string;
193
+ /**
194
+ * 返回星期数
195
+ * @return {Number}
196
+ */
197
+ getMonthPreDay(year: number, month: number): number;
198
+ /**
199
+ * 返回月份天数
200
+ * @return {Number}
201
+ */
202
+ getMonthDays(year: string, month: string): number;
203
+ /**
204
+ * 补齐数字位数
205
+ * @return {string}
206
+ */
207
+ getNumTwoBit(n: number): string;
208
+ /**
209
+ * 日期对象转成字符串
210
+ * @return {string}
211
+ */
212
+ date2Str: (date: Date, split?: string) => string;
213
+ /**
214
+ * 返回日期格式字符串
215
+ * @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
216
+ * @param {Date} 起点日期
217
+ * @return {string} '2014-12-31'
218
+ */
219
+ getDay(i: number, startDate?: Date): string;
220
+ /**
221
+ * 时间比较
222
+ * @return
223
+ */
224
+ compareDate(date1: string | Date, date2: string | Date): boolean;
225
+ /**
226
+ * 时间是否相等
227
+ * @return
228
+ */
229
+ isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
230
+ /**
231
+ * get month week
232
+ * @param year
233
+ * @param month
234
+ * @param date
235
+ * @param firstDayOfWeek
236
+ * @returns
237
+ */
238
+ getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
239
+ /**
240
+ * get year week
241
+ * @param year
242
+ * @param month
243
+ * @param date
244
+ * @param firstDayOfWeek
245
+ * @returns
246
+ */
247
+ getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
248
+ /**
249
+ * get week date
250
+ */
251
+ getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
252
+ /**
253
+ * format result date
254
+ */
255
+ formatResultDate: (date: string) => string[];
256
+ /**
257
+ * 判断日期是否在范围内
258
+ * @param date
259
+ * @param startDate
260
+ * @param span 允许负数
261
+ */
262
+ inScope4Day(date: Date, startDate: Date, span: number): boolean;
263
+ /**
264
+ * 判断日期是否在范围内
265
+ * @param date
266
+ * @param startDate
267
+ * @param span
268
+ */
269
+ inScope4Month(date: Date, startDate: Date, span: number): boolean;
270
+ };
271
+
272
+ /**
273
+ * 防抖函数(执行时间范围内的最后一次)
274
+ * @param func 函数
275
+ * @param delay 防止抖动毫秒数
276
+ * @returns
277
+ */
278
+ export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
279
+
280
+ /**
281
+ * 防抖Ref
282
+ * @param value
283
+ * @param delay
284
+ */
285
+ export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
286
+
287
+ /**
288
+ * 获取小数长度
289
+ * @param value
290
+ */
291
+ export declare function decimalLength(value: string | number): number;
292
+
293
+ declare const _default: FoxUIApp;
294
+ export default _default;
295
+
296
+ declare const _default_10: any;
297
+ export { _default_10 as FoxInputItem }
298
+ export { _default_10 as InputItem }
299
+
300
+ declare const _default_100: any;
301
+ export { _default_100 as FoxSwiperItem }
302
+ export { _default_100 as SwiperItem }
303
+
304
+ declare const _default_101: any;
305
+ export { _default_101 as FoxPrice }
306
+ export { _default_101 as Price }
307
+
308
+ declare const _default_102: any;
309
+ export { _default_102 as CountUp }
310
+ export { _default_102 as FoxCountUp }
311
+
312
+ declare const _default_103: any;
313
+ export { _default_103 as CountDown }
314
+ export { _default_103 as FoxCountDown }
315
+
316
+ declare const _default_104: any;
317
+ export { _default_104 as Badge }
318
+ export { _default_104 as FoxBadge }
319
+
320
+ declare const _default_105: any;
321
+ export { _default_105 as FoxTag }
322
+ export { _default_105 as Tag }
323
+
324
+ declare const _default_106: any;
325
+ export { _default_106 as FoxPopover }
326
+ export { _default_106 as Popover }
327
+
328
+ declare const _default_107: any;
329
+ export { _default_107 as FoxSkeleton }
330
+ export { _default_107 as Skeleton }
331
+
332
+ declare const _default_108: any;
333
+ export { _default_108 as Collapse }
334
+ export { _default_108 as FoxCollapse }
335
+
336
+ declare const _default_109: any;
337
+ export { _default_109 as CollapseItem }
338
+ export { _default_109 as FoxCollapseItem }
339
+
340
+ declare const _default_11: any;
341
+ export { _default_11 as FoxMoneyItem }
342
+ export { _default_11 as MoneyItem }
343
+
344
+ declare const _default_110: any;
345
+ export { _default_110 as FoxTable }
346
+ export { _default_110 as Table }
347
+
348
+ declare const _default_111: any;
349
+ export { _default_111 as Ellipsis }
350
+ export { _default_111 as FoxEllipsis }
351
+
352
+ declare const _default_112: any;
353
+ export { _default_112 as Animate }
354
+ export { _default_112 as FoxAnimate }
355
+
356
+ declare const _default_113: any;
357
+ export { _default_113 as FoxWaterMark }
358
+ export { _default_113 as WaterMark }
359
+
360
+ declare const _default_114: any;
361
+ export { _default_114 as FoxTrendArrow }
362
+ export { _default_114 as TrendArrow }
363
+
364
+ declare const _default_115: any;
365
+ export { _default_115 as FoxTour }
366
+ export { _default_115 as Tour }
367
+
368
+ declare const _default_116: any;
369
+ export { _default_116 as Address }
370
+ export { _default_116 as FoxAddress }
371
+
372
+ declare const _default_117: any;
373
+ export { _default_117 as Barrage }
374
+ export { _default_117 as FoxBarrage }
375
+
376
+ declare const _default_118: any;
377
+ export { _default_118 as FoxSignature }
378
+ export { _default_118 as Signature }
379
+
380
+ declare const _default_119: any;
381
+ export { _default_119 as FoxTimeSelect }
382
+ export { _default_119 as TimeSelect }
383
+
384
+ declare const _default_12: any;
385
+ export { _default_12 as FoxTextareaItem }
386
+ export { _default_12 as TextareaItem }
387
+
388
+ declare const _default_120: any;
389
+ export { _default_120 as FoxTimePannel }
390
+ export { _default_120 as TimePannel }
391
+
392
+ declare const _default_121: any;
393
+ export { _default_121 as FoxTimeDetail }
394
+ export { _default_121 as TimeDetail }
395
+
396
+ declare const _default_122: any;
397
+ export { _default_122 as FoxSku }
398
+ export { _default_122 as Sku }
399
+
400
+ declare const _default_123: any;
401
+ export { _default_123 as Card }
402
+ export { _default_123 as FoxCard }
403
+
404
+ declare const _default_124: any;
405
+ export { _default_124 as Ecard }
406
+ export { _default_124 as FoxEcard }
407
+
408
+ declare const _default_125: any;
409
+ export { _default_125 as AddressList }
410
+ export { _default_125 as FoxAddressList }
411
+
412
+ declare const _default_126: any;
413
+ export { _default_126 as Category }
414
+ export { _default_126 as FoxCategory }
415
+
416
+ declare const _default_127: any;
417
+ export { _default_127 as CategoryPane }
418
+ export { _default_127 as FoxCategoryPane }
419
+
420
+ declare const _default_128: any;
421
+ export { _default_128 as Comment }
422
+ export { _default_128 as FoxComment }
423
+
424
+ declare const _default_13: any;
425
+ export { _default_13 as FoxTextarea }
426
+ export { _default_13 as Textarea }
427
+
428
+ declare const _default_14: any;
429
+ export { _default_14 as FoxPickerItem }
430
+ export { _default_14 as PickerItem }
431
+
432
+ declare const _default_15: any;
433
+ export { _default_15 as CascaderItem }
434
+ export { _default_15 as FoxCascaderItem }
435
+
436
+ declare const _default_16: any;
437
+ export { _default_16 as DateItem }
438
+ export { _default_16 as FoxDateItem }
439
+
440
+ declare const _default_17: any;
441
+ export { _default_17 as CalendarItem }
442
+ export { _default_17 as FoxCalendarItem }
443
+
444
+ declare const _default_18: any;
445
+ export { _default_18 as FoxRadio }
446
+ export { _default_18 as Radio }
447
+
448
+ declare const _default_19: any;
449
+ export { _default_19 as FoxRadioGroup }
450
+ export { _default_19 as RadioGroup }
451
+
452
+ declare const _default_2: any;
453
+ export { _default_2 as FoxPage }
454
+ export { _default_2 as Page }
455
+
456
+ declare const _default_20: any;
457
+ export { _default_20 as FoxRadioItem }
458
+ export { _default_20 as RadioItem }
459
+
460
+ declare const _default_21: any;
461
+ export { _default_21 as Checkbox }
462
+ export { _default_21 as FoxCheckbox }
463
+
464
+ declare const _default_22: any;
465
+ export { _default_22 as CheckboxGroup }
466
+ export { _default_22 as FoxCheckboxGroup }
467
+
468
+ declare const _default_23: any;
469
+ export { _default_23 as CheckboxItem }
470
+ export { _default_23 as FoxCheckboxItem }
471
+
472
+ declare const _default_24: any;
473
+ export { _default_24 as FoxSwitchItem }
474
+ export { _default_24 as SwitchItem }
475
+
476
+ declare const _default_25: any;
477
+ export { _default_25 as FoxLinkItem }
478
+ export { _default_25 as LinkItem }
479
+
480
+ declare const _default_26: any;
481
+ export { _default_26 as FoxRateItem }
482
+ export { _default_26 as RateItem }
483
+
484
+ declare const _default_27: any;
485
+ export { _default_27 as ActionsheetPane }
486
+ export { _default_27 as FoxActionsheetPane }
487
+
488
+ declare const _default_28: any;
489
+ export { _default_28 as ActionsheetItem }
490
+ export { _default_28 as FoxActionsheetItem }
491
+
492
+ declare const _default_29: any;
493
+ export { _default_29 as FoxInputnumberItem }
494
+ export { _default_29 as InputnumberItem }
495
+
496
+ declare const _default_3: any;
497
+ export { _default_3 as FoxHeaderBar }
498
+ export { _default_3 as HeaderBar }
499
+
500
+ declare const _default_30: any;
501
+ export { _default_30 as FoxTabsBar }
502
+ export { _default_30 as TabsBar }
503
+
504
+ declare const _default_31: any;
505
+ export { _default_31 as FoxTabsContainer }
506
+ export { _default_31 as TabsContainer }
507
+
508
+ declare const _default_32: any;
509
+ export { _default_32 as FoxTabsPane }
510
+ export { _default_32 as TabsPane }
511
+
512
+ declare const _default_33: any;
513
+ export { _default_33 as FoxStepsBar }
514
+ export { _default_33 as StepsBar }
515
+
516
+ declare const _default_34: any;
517
+ export { _default_34 as FloatingButton }
518
+ export { _default_34 as FoxFloatingButton }
519
+
520
+ declare const _default_35: any;
521
+ export { _default_35 as FoxMoreButton }
522
+ export { _default_35 as MoreButton }
523
+
524
+ declare const _default_36: any;
525
+ export { _default_36 as FoxPopupWrapper }
526
+ export { _default_36 as PopupWrapper }
527
+
528
+ declare const _default_37: any;
529
+ export { _default_37 as Dropdown }
530
+ export { _default_37 as FoxDropdown }
531
+
532
+ declare const _default_38: any;
533
+ export { _default_38 as FoxText }
534
+ export { _default_38 as Text }
535
+
536
+ declare const _default_39: any;
537
+ export { _default_39 as FoxMapping }
538
+ export { _default_39 as Mapping }
539
+
540
+ declare const _default_4: any;
541
+ export { _default_4 as FooterBar }
542
+ export { _default_4 as FoxFooterBar }
543
+
544
+ declare const _default_40: any;
545
+ export { _default_40 as DomainProvider }
546
+ export { _default_40 as FoxDomainProvider }
547
+
548
+ declare const _default_41: any;
549
+ export { _default_41 as FoxRollingProvider }
550
+ export { _default_41 as RollingProvider }
551
+
552
+ declare const _default_42: any;
553
+ export { _default_42 as Button }
554
+ export { _default_42 as FoxButton }
555
+
556
+ declare const _default_43: any;
557
+ export { _default_43 as Cell }
558
+ export { _default_43 as FoxCell }
559
+
560
+ declare const _default_44: any;
561
+ export { _default_44 as CellGroup }
562
+ export { _default_44 as FoxCellGroup }
563
+
564
+ declare const _default_45: any;
565
+ export { _default_45 as FoxOverLay }
566
+ export { _default_45 as OverLay }
567
+
568
+ declare const _default_46: any;
569
+ export { _default_46 as FoxPopup }
570
+ export { _default_46 as Popup }
571
+
572
+ declare const _default_47: any;
573
+ export { _default_47 as FoxImage }
574
+ export { _default_47 as Image }
575
+
576
+ declare const _default_48: any;
577
+ export { _default_48 as FoxLayout }
578
+ export { _default_48 as Layout }
579
+
580
+ declare const _default_49: any;
581
+ export { _default_49 as Col }
582
+ export { _default_49 as FoxCol }
583
+
584
+ declare const _default_5: any;
585
+ export { _default_5 as Content }
586
+ export { _default_5 as FoxContent }
587
+
588
+ declare const _default_50: any;
589
+ export { _default_50 as FoxRow }
590
+ export { _default_50 as Row }
591
+
592
+ declare const _default_51: any;
593
+ export { _default_51 as FoxSticky }
594
+ export { _default_51 as Sticky }
595
+
596
+ declare const _default_52: any;
597
+ export { _default_52 as Divider }
598
+ export { _default_52 as FoxDivider }
599
+
600
+ declare const _default_53: any;
601
+ export { _default_53 as FoxGrid }
602
+ export { _default_53 as Grid }
603
+
604
+ declare const _default_54: any;
605
+ export { _default_54 as FoxGridItem }
606
+ export { _default_54 as GridItem }
607
+
608
+ declare const _default_55: any;
609
+ export { _default_55 as FoxNavbar }
610
+ export { _default_55 as Navbar }
611
+
612
+ declare const _default_56: any;
613
+ export { _default_56 as FixedNav }
614
+ export { _default_56 as FoxFixedNav }
615
+
616
+ declare const _default_57: any;
617
+ export { _default_57 as FoxMenu }
618
+ export { _default_57 as Menu }
619
+
620
+ declare const _default_58: any;
621
+ export { _default_58 as FoxMenuItem }
622
+ export { _default_58 as MenuItem }
623
+
624
+ declare const _default_59: any;
625
+ export { _default_59 as FoxTabbar }
626
+ export { _default_59 as Tabbar }
627
+
628
+ declare const _default_6: any;
629
+ export { _default_6 as FoxGroup }
630
+ export { _default_6 as Group }
631
+
632
+ declare const _default_60: any;
633
+ export { _default_60 as FoxTabbarItem }
634
+ export { _default_60 as TabbarItem }
635
+
636
+ declare const _default_61: any;
637
+ export { _default_61 as Elevator }
638
+ export { _default_61 as FoxElevator }
639
+
640
+ declare const _default_62: any;
641
+ export { _default_62 as FoxPagination }
642
+ export { _default_62 as Pagination }
643
+
644
+ declare const _default_63: any;
645
+ export { _default_63 as FoxTabs }
646
+ export { _default_63 as Tabs }
647
+
648
+ declare const _default_64: any;
649
+ export { _default_64 as FoxTabPane }
650
+ export { _default_64 as TabPane }
651
+
652
+ declare const _default_65: any;
653
+ export { _default_65 as FoxIndicator }
654
+ export { _default_65 as Indicator }
655
+
656
+ declare const _default_66: any;
657
+ export { _default_66 as FoxSideNavBar }
658
+ export { _default_66 as SideNavBar }
659
+
660
+ declare const _default_67: any;
661
+ export { _default_67 as FoxSideNavBarItem }
662
+ export { _default_67 as SideNavBarItem }
663
+
664
+ declare const _default_68: any;
665
+ export { _default_68 as FoxSubSideNavBar }
666
+ export { _default_68 as SubSideNavBar }
667
+
668
+ declare const _default_69: any;
669
+ export { _default_69 as FoxRange }
670
+ export { _default_69 as Range }
671
+
672
+ declare const _default_7: any;
673
+ export { _default_7 as FoxItem }
674
+ export { _default_7 as Item }
675
+
676
+ declare const _default_70: any;
677
+ export { _default_70 as FoxSearchBar }
678
+ export { _default_70 as SearchBar }
679
+
680
+ declare const _default_71: any;
681
+ export { _default_71 as Cascader }
682
+ export { _default_71 as FoxCascader }
683
+
684
+ declare const _default_72: any;
685
+ export { _default_72 as Calendar }
686
+ export { _default_72 as FoxCalendar }
687
+
688
+ declare const _default_73: any;
689
+ export { _default_73 as DatePicker }
690
+ export { _default_73 as FoxDatePicker }
691
+
692
+ declare const _default_74: any;
693
+ export { _default_74 as FoxInputNumber }
694
+ export { _default_74 as InputNumber }
695
+
696
+ declare const _default_75: any;
697
+ export { _default_75 as FoxRate }
698
+ export { _default_75 as Rate }
699
+
700
+ declare const _default_76: any;
701
+ export { _default_76 as FoxPicker }
702
+ export { _default_76 as Picker }
703
+
704
+ declare const _default_77: any;
705
+ export { _default_77 as FoxShortPassword }
706
+ export { _default_77 as ShortPassword }
707
+
708
+ declare const _default_78: any;
709
+ export { _default_78 as FoxUploader }
710
+ export { _default_78 as Uploader }
711
+
712
+ declare const _default_79: any;
713
+ export { _default_79 as FoxNumberKeyboard }
714
+ export { _default_79 as NumberKeyboard }
715
+
716
+ declare const _default_8: any;
717
+ export { _default_8 as FoxRowItem }
718
+ export { _default_8 as RowItem }
719
+
720
+ declare const _default_80: any;
721
+ export { _default_80 as FoxSwipe }
722
+ export { _default_80 as Swipe }
723
+
724
+ declare const _default_81: any;
725
+ export { _default_81 as ActionSheet }
726
+ export { _default_81 as FoxActionSheet }
727
+
728
+ declare const _default_82: any;
729
+ export { _default_82 as BackTop }
730
+ export { _default_82 as FoxBackTop }
731
+
732
+ declare const _default_83: any;
733
+ export { _default_83 as Drag }
734
+ export { _default_83 as FoxDrag }
735
+
736
+ declare const _default_84: any;
737
+ export { _default_84 as FoxInfiniteLoading }
738
+ export { _default_84 as InfiniteLoading }
739
+
740
+ declare const _default_85: any;
741
+ export { _default_85 as FoxPullRefresh }
742
+ export { _default_85 as PullRefresh }
743
+
744
+ declare const _default_86: any;
745
+ export { _default_86 as FoxSwitch }
746
+ export { _default_86 as Switch }
747
+
748
+ declare const _default_87: any;
749
+ export { _default_87 as Audio }
750
+ export { _default_87 as FoxAudio }
751
+
752
+ declare const _default_88: any;
753
+ export { _default_88 as AudioOperate }
754
+ export { _default_88 as FoxAudioOperate }
755
+
756
+ declare const _default_89: any;
757
+ export { _default_89 as Avatar }
758
+ export { _default_89 as FoxAvatar }
759
+
760
+ declare const _default_9: any;
761
+ export { _default_9 as FoxSlotItem }
762
+ export { _default_9 as SlotItem }
763
+
764
+ declare const _default_90: any;
765
+ export { _default_90 as AvatarGroup }
766
+ export { _default_90 as FoxAvatarGroup }
767
+
768
+ declare const _default_91: any;
769
+ export { _default_91 as FoxList }
770
+ export { _default_91 as List }
771
+
772
+ declare const _default_92: any;
773
+ export { _default_92 as FoxProgress }
774
+ export { _default_92 as Progress }
775
+
776
+ declare const _default_93: any;
777
+ export { _default_93 as CircleProgress }
778
+ export { _default_93 as FoxCircleProgress }
779
+
780
+ declare const _default_94: any;
781
+ export { _default_94 as FoxNoticeBar }
782
+ export { _default_94 as NoticeBar }
783
+
784
+ declare const _default_95: any;
785
+ export { _default_95 as Empty }
786
+ export { _default_95 as FoxEmpty }
787
+
788
+ declare const _default_96: any;
789
+ export { _default_96 as FoxVideo }
790
+ export { _default_96 as Video }
791
+
792
+ declare const _default_97: any;
793
+ export { _default_97 as FoxSteps }
794
+ export { _default_97 as Steps }
795
+
796
+ declare const _default_98: any;
797
+ export { _default_98 as FoxStep }
798
+ export { _default_98 as Step }
799
+
800
+ declare const _default_99: any;
801
+ export { _default_99 as FoxSwiper }
802
+ export { _default_99 as Swiper }
803
+
804
+ /**
805
+ * anyNode
806
+ * @param name
807
+ * @param callbacks
808
+ * @returns
809
+ */
810
+ export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
811
+
812
+ /**
813
+ * 安装config domain
814
+ * @param name 名称
815
+ * @param props 属性
816
+ * @param ignores 忽略的属性
817
+ * @returns
818
+ */
819
+ export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
820
+
821
+ /**
822
+ * 定义domain data item
823
+ * @returns
824
+ */
825
+ export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
826
+ broadcast: Broadcast;
827
+ validateSchema: ValidateSchema;
828
+ };
829
+
830
+ /**
831
+ * 安装domain
832
+ * @param name 名称
833
+ * @param props 属性
834
+ * @param ignores 忽略的属性
835
+ * @param exposes 暴露的方法
836
+ * @returns
837
+ */
838
+ export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
839
+
840
+ /**
841
+ * 定义domain item
842
+ * @returns
843
+ */
844
+ export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
845
+
846
+ /**
847
+ * 创建page state
848
+ *
849
+ * @param domain
850
+ * @param overrideProps
851
+ */
852
+ export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
853
+
854
+ /**
855
+ * 删除公共校验器
856
+ * @param type
857
+ */
858
+ export declare function deleteGlobalValidator(type: string): void;
859
+
860
+ /**
861
+ * 组件描述
862
+ */
863
+ export declare interface Descriptor {
864
+ componentName: string;
865
+ fieldName?: string;
866
+ valueName?: string;
867
+ valueType?: ValueType;
868
+ validate?: boolean;
869
+ readonly?: boolean;
870
+ disabled?: boolean;
871
+ pureDataValidate?: boolean;
872
+ validateHandler?: ValidateHandler;
873
+ validateCheckEvents?: string[];
874
+ validateResetEvents?: string[];
875
+ }
876
+
877
+ declare const _Dialog: {
878
+ (options: DialogOptions): DialogFunction;
879
+ install(app: any): void;
880
+ };
881
+ export { _Dialog as Dialog }
882
+ export { _Dialog as FoxDialog }
883
+
884
+ declare class DialogFunction {
885
+ private options;
886
+ /**
887
+ * 构造函数
888
+ * @param _options
889
+ */
890
+ constructor(_options: DialogOptions);
891
+ }
892
+
893
+ /**
894
+ * 默认配置
895
+ */
896
+ declare class DialogOptions {
897
+ title?: string;
898
+ content?: string | VNode;
899
+ cancelText?: string;
900
+ confirmText?: string;
901
+ textAlign?: string;
902
+ customClass?: string;
903
+ overlayStyle?: CSSProperties;
904
+ overlayClass?: string;
905
+ popStyle?: CSSProperties;
906
+ popClass?: string;
907
+ teleport?: string | HTMLElement;
908
+ id?: string | number;
909
+ footerDirection?: string;
910
+ onUpdate?: Function;
911
+ onConfirm?: Function;
912
+ onCancel?: Function;
913
+ onOpened?: Function;
914
+ onClosed?: Function;
915
+ beforeClose?: Function;
916
+ visible?: boolean;
917
+ noFooter?: boolean;
918
+ noConfirmBtn?: boolean;
919
+ noCancelBtn?: boolean;
920
+ confrimBtnDisabled?: boolean;
921
+ closeOnPopstate?: boolean;
922
+ lockScroll?: boolean;
923
+ }
924
+
925
+ declare type Direction = '' | 'vertical' | 'horizontal';
926
+
927
+ /**
928
+ * 禁用属性
929
+ * @param source
930
+ */
931
+ export declare function disabledProperty(source: Ref): Ref;
932
+
933
+ export { divide }
934
+
935
+ /**
936
+ * Domain
937
+ */
938
+ export declare class Domain {
939
+ /**
940
+ * 父亲domain
941
+ */
942
+ private _parent;
943
+ get parent(): Domain | null;
944
+ set parent(val: Domain | null);
945
+ /**
946
+ * 名称
947
+ */
948
+ private _name;
949
+ get name(): string | null;
950
+ /**
951
+ * 广播器
952
+ */
953
+ private _broadcast;
954
+ get broadcast(): Broadcast | null;
955
+ set broadcast(val: Broadcast | null);
956
+ /**
957
+ * 校验器
958
+ */
959
+ private _validateSchema;
960
+ get validateSchema(): ValidateSchema | null;
961
+ set validateSchema(val: ValidateSchema | null);
962
+ /**
963
+ * 属性集合
964
+ */
965
+ private _props;
966
+ /**
967
+ * 构造函数
968
+ * @param name
969
+ */
970
+ constructor(name?: string | null);
971
+ /**
972
+ * 销毁
973
+ */
974
+ destroy(): void;
975
+ /**
976
+ * 合并属性
977
+ * @param props
978
+ */
979
+ merge(props: Record<string | number, any>, ignores?: any[]): void;
980
+ /**
981
+ * 判断是否有属性
982
+ */
983
+ has(key: string | number): boolean;
984
+ /**
985
+ * 删除属性
986
+ * @param key
987
+ */
988
+ delete(key: string | number): void;
989
+ /**
990
+ * 设置属性
991
+ * @param key
992
+ * @param value
993
+ */
994
+ set(key: string | number, value: any): void;
995
+ /**
996
+ * 获取属性
997
+ *
998
+ * @param key
999
+ * @param defaultValue
1000
+ */
1001
+ get(key: string | number, defaultValue?: any): any;
1002
+ /**
1003
+ * 获取属性
1004
+ *
1005
+ * @param key
1006
+ * @param defaultValue
1007
+ */
1008
+ getForParent(key: string | number, defaultValue?: any): any;
1009
+ /**
1010
+ * 获取self属性
1011
+ * @param key
1012
+ * @returns
1013
+ */
1014
+ getForSelf(key: string | number): any;
1015
+ /**
1016
+ * 从继承关系中获取属性集合
1017
+ * @param key
1018
+ */
1019
+ getAll(key: string | number): any[];
1020
+ }
1021
+
1022
+ /**
1023
+ * domain item
1024
+ */
1025
+ export declare interface DomainItem {
1026
+ broadcast: Broadcast;
1027
+ validateSchema: ValidateSchema;
1028
+ emitEvent: {
1029
+ (type: string, ...args: any[]): void;
1030
+ };
1031
+ onEvent: {
1032
+ (type: string, listener: EventListener_2): void;
1033
+ };
1034
+ offEvent: {
1035
+ (type: string, listener: EventListener_2): void;
1036
+ };
1037
+ }
1038
+
1039
+ /**
1040
+ * domain key
1041
+ */
1042
+ export declare const DomainKey: unique symbol;
1043
+
1044
+ /**
1045
+ * event listener
1046
+ */
1047
+ declare interface EventListener_2 {
1048
+ (...args: any[]): void;
1049
+ }
1050
+
1051
+ /**
1052
+ * 根据排除模版,抽取属性
1053
+ * @param src
1054
+ * @param excludeTemplates
1055
+ * @returns
1056
+ */
1057
+ export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
1058
+
1059
+ /**
1060
+ * 继承(是否深度拷贝,dest,src1,src2,src3...)
1061
+ *
1062
+ * @returns
1063
+ */
1064
+ export declare function extend(...args: any[]): any;
1065
+
1066
+ /**
1067
+ * float data
1068
+ * @param format
1069
+ * @param dataOp
1070
+ * @param mapOps
1071
+ * @returns
1072
+ */
1073
+ export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
1074
+
1075
+ /**
1076
+ * Fox UI App
1077
+ */
1078
+ declare class FoxUIApp implements FoxUI {
1079
+ /**
1080
+ * packages
1081
+ */
1082
+ private packages;
1083
+ /**
1084
+ * version
1085
+ */
1086
+ private _version;
1087
+ get version(): string;
1088
+ /**
1089
+ * 构造函数
1090
+ * @param packages
1091
+ * @param version
1092
+ */
1093
+ constructor(packages: any[], version: string);
1094
+ /**
1095
+ * 安装
1096
+ * @param app
1097
+ * @param options
1098
+ */
1099
+ install(app: App, options: FoxUIOptions): any;
1100
+ /**
1101
+ * 初始化page Layout
1102
+ *
1103
+ * @param options
1104
+ * @param rootDomain
1105
+ */
1106
+ initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1107
+ /**
1108
+ * 设置scope getter
1109
+ * @param getter
1110
+ */
1111
+ setScopeGetter(getter: ScopeGetter): void;
1112
+ /**
1113
+ * 设置API
1114
+ * @param name
1115
+ * @param api
1116
+ * @param scope
1117
+ */
1118
+ setAPI(name: string, api: any, scope?: string): void;
1119
+ /**
1120
+ * 获取API
1121
+ * @param proxy
1122
+ * @param name
1123
+ * @param scope
1124
+ */
1125
+ getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
1126
+ /**
1127
+ * 批量增加api
1128
+ * @param apis
1129
+ * @param scope
1130
+ */
1131
+ batchSetAPI(apis: Record<string, any>, scope?: string): void;
1132
+ /**
1133
+ * 清空scope apis
1134
+ * @param scope
1135
+ */
1136
+ clearScopeAPI(scope: string): void;
1137
+ /**
1138
+ * 获取root domain
1139
+ */
1140
+ getRootDomain(): Domain;
1141
+ }
1142
+
1143
+ /**
1144
+ * 通用函数接口
1145
+ */
1146
+ export declare interface GenericFunction {
1147
+ (...args: any[]): any;
1148
+ }
1149
+
1150
+ /**
1151
+ * 获取公共校验检查事件
1152
+ */
1153
+ export declare function getGlobalValidateCheckEvents(): string[];
1154
+
1155
+ /**
1156
+ * 获取公共校验重置事件
1157
+ */
1158
+ export declare function getGlobalValidateResetEvents(): string[];
1159
+
1160
+ /**
1161
+ * 获取page content区域高度(pageHeight - headerHeight - footerHeight - padding )
1162
+ * @param domain
1163
+ * @param state
1164
+ * @returns
1165
+ */
1166
+ export declare function getPageContentAreaHeight(domain: Domain, state?: PageState): number;
1167
+
1168
+ /**
1169
+ * 获取page content区域宽度(pageWidth - padding )
1170
+ * @param domain
1171
+ * @param state
1172
+ * @returns
1173
+ */
1174
+ export declare function getPageContentAreaWidth(domain: Domain, state?: PageState): number;
1175
+
1176
+ /**
1177
+ * 获取page footer区域高度(footerHeight + SafeAreaBottom )
1178
+ * @param domain
1179
+ * @param state
1180
+ * @returns
1181
+ */
1182
+ export declare function getPageFooterAreaHeight(domain: Domain, state?: PageState): number;
1183
+
1184
+ /**
1185
+ * 获取page header区域高度(headerHeight + SafeAreaTop )
1186
+ * @param domain
1187
+ * @param state
1188
+ * @returns
1189
+ */
1190
+ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageState): number;
1191
+
1192
+ /**
1193
+ * 获取root domain
1194
+ * @returns
1195
+ */
1196
+ export declare function getRootDomain(): Domain;
1197
+
1198
+ /**
1199
+ * Group Content
1200
+ */
1201
+ declare type GroupContent = {
1202
+ title: string;
1203
+ content: Array<string> | string;
1204
+ };
1205
+
1206
+ /**
1207
+ * 是否支持symbol
1208
+ */
1209
+ export declare const hasSymbol: boolean;
1210
+
1211
+ /**
1212
+ * hint text function
1213
+ */
1214
+ declare const HintTextFunction: HintTextTooltip;
1215
+ export { HintTextFunction as FoxHintText }
1216
+ export { HintTextFunction as HintText }
1217
+
1218
+ declare interface ImageInterface {
1219
+ src: string;
1220
+ }
1221
+
1222
+ declare class ImagePreviewApp {
1223
+ options: ImagePreviewOptions;
1224
+ constructor(_options: ImagePreviewOptions);
1225
+ }
1226
+
1227
+ declare const ImagePreviewFunction: {
1228
+ (options: ImagePreviewOptions): ImagePreviewApp;
1229
+ install(app: any): void;
1230
+ };
1231
+ export { ImagePreviewFunction as FoxImagePreview }
1232
+ export { ImagePreviewFunction as ImagePreview }
1233
+
1234
+ declare class ImagePreviewOptions {
1235
+ show: boolean;
1236
+ images: ImageInterface[];
1237
+ videos?: [];
1238
+ contentClose?: boolean;
1239
+ initNo?: number;
1240
+ paginationVisible?: boolean;
1241
+ paginationColor?: string;
1242
+ autoplay?: number | string;
1243
+ isWrapTeleport?: boolean;
1244
+ showIndex?: boolean;
1245
+ closeable?: boolean;
1246
+ closeIconPosition?: string;
1247
+ beforeClose?: Interceptor;
1248
+ maxZoom?: number;
1249
+ minZoom?: number;
1250
+ isLoop?: boolean;
1251
+ onClose?(): void;
1252
+ onChange?(index: number): void;
1253
+ teleport?: string | HTMLElement;
1254
+ }
1255
+
1256
+ /**
1257
+ * 根据包含模版,抽取属性
1258
+ * @param src
1259
+ * @param includeTemplates
1260
+ * @returns
1261
+ */
1262
+ export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
1263
+
1264
+ /**
1265
+ * 获取对应元素的在数组中第一个匹配的索引
1266
+ * @param x
1267
+ * @param arr
1268
+ * @returns
1269
+ */
1270
+ export declare function indexOf(x: unknown, arr: unknown[]): number;
1271
+
1272
+ /**
1273
+ * 安装校验规则
1274
+ * @param proxy
1275
+ */
1276
+ export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1277
+
1278
+ /**
1279
+ * 获取整数长度
1280
+ * @param value
1281
+ */
1282
+ export declare function integerLength(value: string | number): number;
1283
+
1284
+ declare type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
1285
+
1286
+ /**
1287
+ * 是否数组
1288
+ */
1289
+ export declare const isArray: (arg: any) => arg is any[];
1290
+
1291
+ /**
1292
+ * 是否为类数组
1293
+ * @param obj
1294
+ * @returns {boolean}
1295
+ */
1296
+ export declare function isArrayLike(obj: any): boolean;
1297
+
1298
+ /**
1299
+ * 是否为浏览器环境
1300
+ */
1301
+ export declare const isBrowser: boolean;
1302
+
1303
+ /**
1304
+ * 是否为Date
1305
+ * @param val
1306
+ * @returns
1307
+ */
1308
+ export declare const isDate: (val: unknown) => val is Date;
1309
+
1310
+ /**
1311
+ * 是否空字符串
1312
+ * @param v
1313
+ * @returns
1314
+ */
1315
+ export declare const isEmptyString: (v: unknown) => boolean;
1316
+
1317
+ /**
1318
+ * 判断两个对象是否一致
1319
+ * @param x
1320
+ * @param y
1321
+ * @return
1322
+ */
1323
+ export declare function isEqual(x: any, y: any): boolean;
1324
+
1325
+ /**
1326
+ * 是否为es module
1327
+ * @param obj
1328
+ * @returns
1329
+ */
1330
+ export declare function isESModule(obj: any): obj is Object;
1331
+
1332
+ /**
1333
+ * 是否为函数
1334
+ * @param val
1335
+ * @returns
1336
+ */
1337
+ export declare const isFunction: (val: unknown) => val is Function;
1338
+
1339
+ /**
1340
+ * 是否是隐藏element
1341
+ * @param el
1342
+ */
1343
+ export declare function isHidden(el: any): boolean;
1344
+
1345
+ /**
1346
+ * 是否为内嵌页面
1347
+ * 内嵌页面为内嵌在容器内,如dialog,不需要设置content的高度
1348
+ * @param domain
1349
+ * @param proxy
1350
+ * @returns
1351
+ */
1352
+ export declare function isInnerPage(domain: Domain, proxy: any): boolean;
1353
+
1354
+ /**
1355
+ * 是否为Map
1356
+ * @param val
1357
+ * @returns
1358
+ */
1359
+ export declare const isMap: (val: unknown) => val is Map<any, any>;
1360
+
1361
+ /**
1362
+ * 是否null/undefined对象
1363
+ */
1364
+ export declare function isNil(v: unknown): v is null | undefined;
1365
+
1366
+ /**
1367
+ * 是否为数字字符串
1368
+ * @param value
1369
+ * @returns
1370
+ */
1371
+ export declare function isNumberString(value: string): boolean;
1372
+
1373
+ /**
1374
+ * 是否为object
1375
+ */
1376
+ export declare const isObject: (val: unknown) => val is Record<any, any>;
1377
+
1378
+ /**
1379
+ * 是否为plain对象
1380
+ * @param val
1381
+ * @returns
1382
+ */
1383
+ export declare const isPlainObject: (val: unknown) => val is object;
1384
+
1385
+ /**
1386
+ * 是否为promise
1387
+ * @param val
1388
+ * @returns
1389
+ */
1390
+ export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
1391
+
1392
+ /**
1393
+ * 判断是否为正则表达式
1394
+ * @param v
1395
+ * @returns
1396
+ */
1397
+ export declare function isRegExp(v: unknown): v is RegExp;
1398
+
1399
+ /**
1400
+ * 是否为Set
1401
+ * @param val
1402
+ * @returns
1403
+ */
1404
+ export declare const isSet: (val: unknown) => val is Set<any>;
1405
+
1406
+ /**
1407
+ * 是否为字符串
1408
+ * @param val
1409
+ * @returns
1410
+ */
1411
+ export declare const isString: (val: unknown) => val is string;
1412
+
1413
+ /**
1414
+ * 是否子页面
1415
+ * @param domain
1416
+ */
1417
+ export declare function isSubPage(domain: Domain): boolean;
1418
+
1419
+ /**
1420
+ * 是否为symbol
1421
+ * @param val
1422
+ * @returns
1423
+ */
1424
+ export declare const isSymbol: (val: unknown) => val is symbol;
1425
+
1426
+ /**
1427
+ * 是否为支持触摸
1428
+ * @returns
1429
+ */
1430
+ export declare function isTouch(): boolean;
1431
+
1432
+ /**
1433
+ * 是否是window对象
1434
+ * @param obj
1435
+ */
1436
+ export declare function isWindow(obj: any): boolean;
1437
+
1438
+ /**
1439
+ * 获取对应元素的在数组中最后一个匹配的索引
1440
+ * @param x
1441
+ * @param arr
1442
+ * @returns
1443
+ */
1444
+ export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
1445
+
1446
+ /**
1447
+ * 创建数组
1448
+ * @param arr
1449
+ * @param results
1450
+ * @return
1451
+ */
1452
+ export declare function makeArray(arr: any, results?: any[]): any[];
1453
+
1454
+ /**
1455
+ * 匹配条件
1456
+ */
1457
+ export declare interface Matched {
1458
+ name?: string | RegExp | {
1459
+ (name: string): boolean;
1460
+ };
1461
+ maxLevel?: number;
1462
+ level?: number;
1463
+ }
1464
+
1465
+ /**
1466
+ * 合并数组
1467
+ * @param first
1468
+ * @param second
1469
+ * @return
1470
+ */
1471
+ export declare function merge(first: any[], second: any[]): any[];
1472
+
1473
+ /**
1474
+ * MessageBox动作
1475
+ */
1476
+ declare type MessageBoxAction = 'confirm' | 'cancel' | 'close';
1477
+
1478
+ /**
1479
+ * MesageBox Function
1480
+ */
1481
+ declare const MessageBoxFunction: {
1482
+ /**
1483
+ * show
1484
+ * @param message
1485
+ * @param title
1486
+ * @param options
1487
+ */
1488
+ show: (openType: OpenType, message: Content_2 | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
1489
+ /**
1490
+ * alert
1491
+ * @param messge
1492
+ * @param title
1493
+ * @param options
1494
+ */
1495
+ alert: (message: string | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
1496
+ /**
1497
+ * confirm
1498
+ * @param messge
1499
+ * @param title
1500
+ * @param options
1501
+ */
1502
+ confirm: (message: string | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
1503
+ /**
1504
+ * 安装
1505
+ * @param app
1506
+ */
1507
+ install(app: any): void;
1508
+ };
1509
+ export { MessageBoxFunction as FoxMessageBox }
1510
+ export { MessageBoxFunction as MessageBox }
1511
+
1512
+ /**
1513
+ * Message Box返回值
1514
+ */
1515
+ declare type MessageResult = {
1516
+ action: MessageBoxAction;
1517
+ };
1518
+
1519
+ export { multiply }
1520
+
1521
+ export { negate }
1522
+
1523
+ /**
1524
+ * 下一个事件周期中执行函数
1525
+ * @param fn
1526
+ * @param args
1527
+ */
1528
+ export declare function nextTick(fn: {
1529
+ (...args: any[]): void;
1530
+ }, ...args: any[]): void;
1531
+
1532
+ declare const NotifyFunction: {
1533
+ text(msg: string, obj?: {}): any;
1534
+ primary(msg: string, obj?: {}): any;
1535
+ success(msg: string, obj?: {}): any;
1536
+ danger(msg: string, obj?: {}): any;
1537
+ warn(msg: string, obj?: {}): any;
1538
+ hide(): void;
1539
+ install(app: any): void;
1540
+ };
1541
+ export { NotifyFunction as FoxNotify }
1542
+ export { NotifyFunction as Notify }
1543
+
1544
+ export { numberFormat }
1545
+
1546
+ /**
1547
+ * 对象类型
1548
+ */
1549
+ export declare const objectToString: () => string;
1550
+
1551
+ /**
1552
+ * 只执行一次函数
1553
+ * @param func
1554
+ * @returns
1555
+ */
1556
+ export declare function once(func: GenericFunction): GenericFunction;
1557
+
1558
+ /**
1559
+ * 打开类型
1560
+ */
1561
+ declare type OpenType = 'alert' | 'confirm' | '';
1562
+
1563
+ declare type Options = {
1564
+ teleport?: string | HTMLElement;
1565
+ zIndex?: number | string;
1566
+ [propName: string]: any;
1567
+ };
1568
+
1569
+ /**
1570
+ * padding
1571
+ */
1572
+ export declare interface Padding {
1573
+ left: number | null;
1574
+ top: number | null;
1575
+ right: number | null;
1576
+ bottom: number | null;
1577
+ }
1578
+
1579
+ /**
1580
+ * pad zero
1581
+ */
1582
+ export declare const padZero: (num: number | string, length?: number) => string;
1583
+
1584
+ /**
1585
+ * page layout
1586
+ */
1587
+ export declare interface PageLayout {
1588
+ width: number | string;
1589
+ height: number | string;
1590
+ headerHeight?: number | string;
1591
+ footerHeight?: number | string;
1592
+ headerPadding?: Padding;
1593
+ footerPadding?: Padding;
1594
+ contentPadding?: Padding;
1595
+ }
1596
+
1597
+ export declare interface PageState {
1598
+ width: number;
1599
+ height: number;
1600
+ headerHeight: number;
1601
+ headerPadding: Padding;
1602
+ headerAllHeight?: number;
1603
+ footerHeight: number;
1604
+ footerPadding: Padding;
1605
+ footerAllHeight?: number;
1606
+ contentHeight: number | string | null;
1607
+ contentPadding: Padding;
1608
+ contentInnerHeight?: number;
1609
+ contentInnerWidth?: number;
1610
+ safeAreaTop: number;
1611
+ safeAreaBottom: number;
1612
+ safeAreaLeft: number;
1613
+ safeAreaRight: number;
1614
+ headerMounted?: boolean;
1615
+ footerMounted?: boolean;
1616
+ }
1617
+
1618
+ /**
1619
+ * 坐标
1620
+ */
1621
+ export declare interface Point {
1622
+ x: number;
1623
+ y: number;
1624
+ }
1625
+
1626
+ /**
1627
+ * prevent default
1628
+ * @param event
1629
+ * @param isStopPropagation
1630
+ */
1631
+ export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
1632
+
1633
+ /**
1634
+ * 优先策略
1635
+ */
1636
+ export declare enum PriorityPolicy {
1637
+ Parent = 0,
1638
+ Near = 1
1639
+ }
1640
+
1641
+ /**
1642
+ * 属性
1643
+ * @param source
1644
+ * @param name
1645
+ * @param policy
1646
+ * @param filter
1647
+ */
1648
+ export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
1649
+
1650
+ export declare const raf: any;
1651
+
1652
+ /**
1653
+ * 只读属性
1654
+ * @param source
1655
+ */
1656
+ export declare function readonlyProperty(source: Ref): Ref;
1657
+
1658
+ export declare interface Rect {
1659
+ top: number;
1660
+ left: number;
1661
+ right: number;
1662
+ bottom: number;
1663
+ width: number;
1664
+ height: number;
1665
+ }
1666
+
1667
+ /**
1668
+ * 结果类型
1669
+ */
1670
+ export declare type Result = Promise<any> | any;
1671
+
1672
+ /**
1673
+ * 结果集合
1674
+ */
1675
+ export declare type Results = Result[];
1676
+
1677
+ /**
1678
+ * 安全区域
1679
+ */
1680
+ export declare interface SafeAreaInset {
1681
+ left: number | string;
1682
+ top: number | string;
1683
+ right: number | string;
1684
+ bottom: number | string;
1685
+ }
1686
+
1687
+ /**
1688
+ * 设置公共校验检查事件
1689
+ * @param events
1690
+ */
1691
+ export declare function setGlobalValidateCheckEvents(events: string[]): void;
1692
+
1693
+ /**
1694
+ * 设置公共的校验处理器
1695
+ * @param validateHandler
1696
+ */
1697
+ export declare function setGlobalValidateHandler(validateHandler: ValidateHandler): void;
1698
+
1699
+ /**
1700
+ * 设置公共校验提示信息
1701
+ */
1702
+ export declare function setGlobalValidateMessages(messages: ValidateMessages): void;
1703
+
1704
+ /**
1705
+ * 设置公共校验重置事件
1706
+ * @param events
1707
+ */
1708
+ export declare function setGlobalValidateResetEvents(events: string[]): void;
1709
+
1710
+ /**
1711
+ * 设置公共校验器
1712
+ * @param type
1713
+ * @param validator
1714
+ */
1715
+ export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
1716
+
1717
+ /**
1718
+ * size
1719
+ */
1720
+ declare interface Size {
1721
+ width: number;
1722
+ height: number;
1723
+ }
1724
+
1725
+ /**
1726
+ * 节流函数(执行时间范围内的第一次)
1727
+ * @param func 函数
1728
+ * @param delay 延迟执行毫秒数
1729
+ * @returns
1730
+ */
1731
+ export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
1732
+
1733
+ declare const ToastFunction: {
1734
+ text(msg: string, opts?: {}): any;
1735
+ success(msg: string, opts?: {}): any;
1736
+ fail(msg: string, opts?: {}): any;
1737
+ warn(msg: string, opts?: {}): any;
1738
+ loading(msg: string, opts?: {}): any;
1739
+ hide(id?: string): void;
1740
+ install(app: any): void;
1741
+ };
1742
+ export { ToastFunction as FoxToast }
1743
+ export { ToastFunction as Toast }
1744
+
1745
+ /**
1746
+ * 转换为boolean值
1747
+ * @param val
1748
+ * @returns
1749
+ */
1750
+ export declare function toBoolean(val: unknown): boolean;
1751
+
1752
+ /**
1753
+ * 转换为number值
1754
+ * @param val
1755
+ * @returns
1756
+ */
1757
+ export declare function toNumber(val: unknown): number;
1758
+
1759
+ /**
1760
+ * 转换为number rect
1761
+ */
1762
+ export declare function toPadding(rect: any): Padding;
1763
+
1764
+ /**
1765
+ * 转换为px number数值
1766
+ * @param value
1767
+ * @param size
1768
+ */
1769
+ export declare function toPx(value: number | string, size?: number): number;
1770
+
1771
+ /**
1772
+ * to px desc
1773
+ * @param value
1774
+ * @returns
1775
+ */
1776
+ export declare const toPxDesc: (value: string | number) => string;
1777
+
1778
+ export declare const toTypeString: (value: unknown) => string;
1779
+
1780
+ /**
1781
+ * to model value
1782
+ * @param props
1783
+ * @param format
1784
+ * @returns
1785
+ */
1786
+ export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
1787
+
1788
+ /**
1789
+ * 尝试执行多次函数
1790
+ * @param func 执行函数
1791
+ * @param milliseconds 执行间隔
1792
+ * @param maxLimit 最大尝试次数
1793
+ * @param step 间隔增加步长
1794
+ * @param immediately 是否立刻执行
1795
+ */
1796
+ export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
1797
+
1798
+ /**
1799
+ * 尝试多次函数
1800
+ * 返回true,代表执行完成,不在需要重试
1801
+ */
1802
+ export declare interface TryTimesFunction {
1803
+ (): boolean;
1804
+ }
1805
+
1806
+ /**
1807
+ * 判断类型
1808
+ * @param obj
1809
+ * @returns any
1810
+ */
1811
+ export declare function typeOf(obj: any): string;
1812
+
1813
+ export declare class UniqueID {
1814
+ /**
1815
+ * seed id
1816
+ */
1817
+ private seed;
1818
+ /**
1819
+ * 种子
1820
+ * @param seed
1821
+ */
1822
+ constructor(seed?: number);
1823
+ /**
1824
+ * 获取唯一ID
1825
+ * @returns
1826
+ */
1827
+ get(): number;
1828
+ }
1829
+
1830
+ export { unNumberFormat }
1831
+
1832
+ /**
1833
+ * 更新 page state
1834
+ * @param state
1835
+ * @param pageLayout
1836
+ * @param overrideProps
1837
+ * @param root
1838
+ * @param rootWidth
1839
+ * @param rootHeight
1840
+ * @param headerBarHeight
1841
+ * @param footerBarHeight
1842
+ */
1843
+ export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
1844
+
1845
+ /**
1846
+ * 使用broadcast
1847
+ * @param proxy
1848
+ * @returns
1849
+ */
1850
+ export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
1851
+
1852
+ /**
1853
+ * 获取当前domain
1854
+ * @returns
1855
+ */
1856
+ export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
1857
+
1858
+ /**
1859
+ * use expose
1860
+ * @param apis
1861
+ */
1862
+ export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
1863
+
1864
+ /**
1865
+ * 获取内部可用size
1866
+ * @param elementRef
1867
+ * @returns
1868
+ */
1869
+ export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
1870
+
1871
+ /**
1872
+ * 获取page state
1873
+ * @param domain
1874
+ * @returns
1875
+ */
1876
+ export declare function usePageState(domain: Domain): PageState | null;
1877
+
1878
+ /**
1879
+ * 获取element 位置
1880
+ * @param elementRef
1881
+ * @returns
1882
+ */
1883
+ export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
1884
+
1885
+ /**
1886
+ * 获取非响应式touch对象
1887
+ * @returns
1888
+ */
1889
+ export declare function useRawTouch(): {
1890
+ move: EventListener;
1891
+ start: EventListener;
1892
+ reset: () => void;
1893
+ isVertical: () => boolean;
1894
+ isHorizontal: () => boolean;
1895
+ state: {
1896
+ startX: number;
1897
+ startY: number;
1898
+ startTime: number;
1899
+ duration: number;
1900
+ moveX: number;
1901
+ moveY: number;
1902
+ deltaX: number;
1903
+ deltaY: number;
1904
+ offsetX: number;
1905
+ offsetY: number;
1906
+ direction: Direction;
1907
+ };
1908
+ };
1909
+
1910
+ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
1911
+
1912
+ /**
1913
+ * 获取size
1914
+ * @param elementRef
1915
+ * @returns
1916
+ */
1917
+ export declare function useSize(elementRef: Element | Ref<Element>): Size;
1918
+
1919
+ /**
1920
+ * 获取响应式touch对象
1921
+ * @returns
1922
+ */
1923
+ export declare function useTouch(): {
1924
+ move: EventListener;
1925
+ start: EventListener;
1926
+ reset: () => void;
1927
+ startX: any;
1928
+ startY: any;
1929
+ startTime: any;
1930
+ duration: any;
1931
+ moveX: any;
1932
+ moveY: any;
1933
+ deltaX: any;
1934
+ deltaY: any;
1935
+ offsetX: any;
1936
+ offsetY: any;
1937
+ direction: any;
1938
+ isVertical: () => boolean;
1939
+ isHorizontal: () => boolean;
1940
+ };
1941
+
1942
+ /**
1943
+ * 校验条件
1944
+ */
1945
+ export declare interface ValidateCondition {
1946
+ deep?: boolean;
1947
+ include?: string[];
1948
+ exclude?: string[];
1949
+ ignoreHidden?: boolean;
1950
+ ignoreDisabled?: boolean;
1951
+ ignoreReadonly?: boolean;
1952
+ }
1953
+
1954
+ /**
1955
+ * 校验器handler
1956
+ */
1957
+ export declare interface ValidateHandler {
1958
+ /**
1959
+ * 错误处理
1960
+ * @param errorMsg
1961
+ * @param proxy
1962
+ *
1963
+ */
1964
+ error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
1965
+ /**
1966
+ * 重置处理
1967
+ * @param proxy
1968
+ *
1969
+ */
1970
+ reset?(proxy: FoxComponentPublicInstance): void;
1971
+ /**
1972
+ * 成功处理
1973
+ * @param proxy
1974
+ *
1975
+ */
1976
+ success?(proxy: FoxComponentPublicInstance): void;
1977
+ /**
1978
+ * 规则装饰处理
1979
+ * @param newRule
1980
+ * @param oldRule
1981
+ * @param proxy
1982
+ *
1983
+ */
1984
+ decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
1985
+ /**
1986
+ * 获取value
1987
+ * @param proxy
1988
+ *
1989
+ */
1990
+ getValue?(proxy: FoxComponentPublicInstance): any;
1991
+ }
1992
+
1993
+ /**
1994
+ * 校验器schema
1995
+ */
1996
+ export declare class ValidateSchema {
1997
+ /**
1998
+ * parent
1999
+ */
2000
+ private parent;
2001
+ /**
2002
+ * 校验器
2003
+ */
2004
+ private validators;
2005
+ /**
2006
+ * 属性rule
2007
+ */
2008
+ private attrRules;
2009
+ /**
2010
+ * rule
2011
+ */
2012
+ private rules;
2013
+ /**
2014
+ * 描述
2015
+ */
2016
+ private descriptor;
2017
+ /**
2018
+ * 实例
2019
+ */
2020
+ private proxy;
2021
+ /**
2022
+ * effect scope
2023
+ */
2024
+ private scope;
2025
+ /**
2026
+ * 构造函数
2027
+ * @param parent
2028
+ * @param descriptor
2029
+ * @param proxy
2030
+ */
2031
+ constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
2032
+ /**
2033
+ * 初始化
2034
+ */
2035
+ private init;
2036
+ /**
2037
+ * 销毁
2038
+ */
2039
+ destroy(): void;
2040
+ /**
2041
+ * 执行validate handler函数
2042
+ * @param name
2043
+ * @param args
2044
+ */
2045
+ private execHandler;
2046
+ /**
2047
+ * 调用装饰处理函数
2048
+ */
2049
+ private decorate;
2050
+ /**
2051
+ * 调用成功处理函数
2052
+ */
2053
+ private success;
2054
+ /**
2055
+ * 调用错误处理函数
2056
+ * @returns
2057
+ */
2058
+ private error;
2059
+ /**
2060
+ * 调用错误处理函数
2061
+ * @returns
2062
+ */
2063
+ private getValue;
2064
+ /**
2065
+ * 设置校验器
2066
+ * @param type
2067
+ * @param validator
2068
+ * @param global
2069
+ *
2070
+ * @returns
2071
+ */
2072
+ setValidator(type: string, validator: ExecuteValidator, global?: boolean): void;
2073
+ /**
2074
+ * 获取validator(只获取私有的validator)
2075
+ * @param type
2076
+ */
2077
+ getValidator(type: string): ExecuteValidator | null;
2078
+ /**
2079
+ * 删除校验器
2080
+ * @param type
2081
+ * @param global
2082
+ */
2083
+ deleteValidator(type: string, global?: boolean): void;
2084
+ /**
2085
+ * 判断校验器是否存在
2086
+ * @param type
2087
+ * @param global
2088
+ * @returns
2089
+ */
2090
+ hasValidator(type: string, global?: boolean): boolean;
2091
+ /**
2092
+ * 设置rule
2093
+ * @param rule
2094
+ */
2095
+ setRule(rule: Rule | null): void;
2096
+ /**
2097
+ * 清空校验错误信息
2098
+ * @params deep
2099
+ * @returns
2100
+ */
2101
+ clear(): void;
2102
+ /**
2103
+ * 执行校验
2104
+ * @returns
2105
+ */
2106
+ validate(): Promise<ValidateResult>;
2107
+ }
2108
+
2109
+ /**
2110
+ * validate schema key
2111
+ */
2112
+ export declare const ValidateSchemaKey: unique symbol;
2113
+
2114
+ /**
2115
+ * value 格式话
2116
+ */
2117
+ export declare interface ValueFormat<T, K> {
2118
+ (value: T): K;
2119
+ }
2120
+
2121
+ /**
2122
+ * 获取value长度
2123
+ * @param val
2124
+ * @returns
2125
+ */
2126
+ export declare function valueLength(val: unknown): number;
2127
+
2128
+ /**
2129
+ * value 类型
2130
+ */
2131
+ export declare type ValueType = 'string' | 'number' | 'date';
2132
+
2133
+ export { }