@fox-js/foxui 4.0.1-5 → 4.0.1-50

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 +25949 -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 +2153 -119
  10. package/package.json +15 -17
  11. package/dist/foxui.es.js +0 -25337
  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 -67
  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.d.ts +0 -175
  133. package/dist/types/components/picker/index.vue.d.ts +0 -13
  134. package/dist/types/components/picker/model.d.ts +0 -25
  135. package/dist/types/components/picker/types.d.ts +0 -20
  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 -6
  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 -20
@@ -1,119 +1,2153 @@
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
+ * 定义simple item
856
+ * @returns
857
+ */
858
+ export declare function defineSimpleItem(): {
859
+ emitEvent: (type: string, ...args: any[]) => void;
860
+ onEvent: (type: string, listener: EventListener_2) => void;
861
+ offEvent: (type: string, listener: EventListener_2) => void;
862
+ };
863
+
864
+ /**
865
+ * 删除公共校验器
866
+ * @param type
867
+ */
868
+ export declare function deleteGlobalValidator(type: string): void;
869
+
870
+ /**
871
+ * 组件描述
872
+ */
873
+ export declare interface Descriptor {
874
+ componentName: string;
875
+ fieldName?: string;
876
+ valueName?: string;
877
+ valueType?: ValueType;
878
+ validate?: boolean;
879
+ readonly?: boolean;
880
+ disabled?: boolean;
881
+ pureDataValidate?: boolean;
882
+ validateHandler?: ValidateHandler;
883
+ validateCheckEvents?: string[];
884
+ validateResetEvents?: string[];
885
+ }
886
+
887
+ declare const _Dialog: {
888
+ (options: DialogOptions): DialogFunction;
889
+ install(app: any): void;
890
+ };
891
+ export { _Dialog as Dialog }
892
+ export { _Dialog as FoxDialog }
893
+
894
+ declare class DialogFunction {
895
+ private options;
896
+ /**
897
+ * 构造函数
898
+ * @param _options
899
+ */
900
+ constructor(_options: DialogOptions);
901
+ }
902
+
903
+ /**
904
+ * 默认配置
905
+ */
906
+ declare class DialogOptions {
907
+ title?: string;
908
+ content?: string | VNode;
909
+ cancelText?: string;
910
+ confirmText?: string;
911
+ textAlign?: string;
912
+ customClass?: string;
913
+ overlayStyle?: CSSProperties;
914
+ overlayClass?: string;
915
+ popStyle?: CSSProperties;
916
+ popClass?: string;
917
+ teleport?: string | HTMLElement;
918
+ id?: string | number;
919
+ footerDirection?: string;
920
+ onUpdate?: Function;
921
+ onConfirm?: Function;
922
+ onCancel?: Function;
923
+ onOpened?: Function;
924
+ onClosed?: Function;
925
+ beforeClose?: Function;
926
+ visible?: boolean;
927
+ noFooter?: boolean;
928
+ noConfirmBtn?: boolean;
929
+ noCancelBtn?: boolean;
930
+ confrimBtnDisabled?: boolean;
931
+ closeOnPopstate?: boolean;
932
+ lockScroll?: boolean;
933
+ }
934
+
935
+ declare type Direction = '' | 'vertical' | 'horizontal';
936
+
937
+ /**
938
+ * 禁用属性
939
+ * @param source
940
+ */
941
+ export declare function disabledProperty(source: Ref): Ref;
942
+
943
+ export { divide }
944
+
945
+ /**
946
+ * Domain
947
+ */
948
+ export declare class Domain {
949
+ /**
950
+ * 父亲domain
951
+ */
952
+ private _parent;
953
+ get parent(): Domain | null;
954
+ set parent(val: Domain | null);
955
+ /**
956
+ * 名称
957
+ */
958
+ private _name;
959
+ get name(): string | null;
960
+ /**
961
+ * 广播器
962
+ */
963
+ private _broadcast;
964
+ get broadcast(): Broadcast | null;
965
+ set broadcast(val: Broadcast | null);
966
+ /**
967
+ * 校验器
968
+ */
969
+ private _validateSchema;
970
+ get validateSchema(): ValidateSchema | null;
971
+ set validateSchema(val: ValidateSchema | null);
972
+ /**
973
+ * 属性集合
974
+ */
975
+ private _props;
976
+ /**
977
+ * 构造函数
978
+ * @param name
979
+ */
980
+ constructor(name?: string | null);
981
+ /**
982
+ * 销毁
983
+ */
984
+ destroy(): void;
985
+ /**
986
+ * 合并属性
987
+ * @param props
988
+ */
989
+ merge(props: Record<string | number, any>, ignores?: any[]): void;
990
+ /**
991
+ * 判断是否有属性
992
+ */
993
+ has(key: string | number): boolean;
994
+ /**
995
+ * 删除属性
996
+ * @param key
997
+ */
998
+ delete(key: string | number): void;
999
+ /**
1000
+ * 设置属性
1001
+ * @param key
1002
+ * @param value
1003
+ */
1004
+ set(key: string | number, value: any): void;
1005
+ /**
1006
+ * 获取属性
1007
+ *
1008
+ * @param key
1009
+ * @param defaultValue
1010
+ */
1011
+ get(key: string | number, defaultValue?: any): any;
1012
+ /**
1013
+ * 获取属性
1014
+ *
1015
+ * @param key
1016
+ * @param defaultValue
1017
+ */
1018
+ getForParent(key: string | number, defaultValue?: any): any;
1019
+ /**
1020
+ * 获取self属性
1021
+ * @param key
1022
+ * @returns
1023
+ */
1024
+ getForSelf(key: string | number): any;
1025
+ /**
1026
+ * 从继承关系中获取属性集合
1027
+ * @param key
1028
+ */
1029
+ getAll(key: string | number): any[];
1030
+ }
1031
+
1032
+ /**
1033
+ * domain item
1034
+ */
1035
+ export declare interface DomainItem {
1036
+ broadcast: Broadcast;
1037
+ validateSchema: ValidateSchema;
1038
+ emitEvent: {
1039
+ (type: string, ...args: any[]): void;
1040
+ };
1041
+ onEvent: {
1042
+ (type: string, listener: EventListener_2): void;
1043
+ };
1044
+ offEvent: {
1045
+ (type: string, listener: EventListener_2): void;
1046
+ };
1047
+ }
1048
+
1049
+ /**
1050
+ * domain key
1051
+ */
1052
+ export declare const DomainKey: unique symbol;
1053
+
1054
+ /**
1055
+ * event listener
1056
+ */
1057
+ declare interface EventListener_2 {
1058
+ (...args: any[]): void;
1059
+ }
1060
+
1061
+ /**
1062
+ * 根据排除模版,抽取属性
1063
+ * @param src
1064
+ * @param excludeTemplates
1065
+ * @returns
1066
+ */
1067
+ export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
1068
+
1069
+ /**
1070
+ * 继承(是否深度拷贝,dest,src1,src2,src3...)
1071
+ *
1072
+ * @returns
1073
+ */
1074
+ export declare function extend(...args: any[]): any;
1075
+
1076
+ /**
1077
+ * float data
1078
+ * @param format
1079
+ * @param dataOp
1080
+ * @param mapOps
1081
+ * @returns
1082
+ */
1083
+ export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
1084
+
1085
+ /**
1086
+ * Fox UI App
1087
+ */
1088
+ declare class FoxUIApp implements FoxUI {
1089
+ /**
1090
+ * packages
1091
+ */
1092
+ private packages;
1093
+ /**
1094
+ * version
1095
+ */
1096
+ private _version;
1097
+ get version(): string;
1098
+ /**
1099
+ * 构造函数
1100
+ * @param packages
1101
+ * @param version
1102
+ */
1103
+ constructor(packages: any[], version: string);
1104
+ /**
1105
+ * 安装
1106
+ * @param app
1107
+ * @param options
1108
+ */
1109
+ install(app: App, options: FoxUIOptions): any;
1110
+ /**
1111
+ * 初始化page Layout
1112
+ *
1113
+ * @param options
1114
+ * @param rootDomain
1115
+ */
1116
+ initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1117
+ /**
1118
+ * 设置scope getter
1119
+ * @param getter
1120
+ */
1121
+ setScopeGetter(getter: ScopeGetter): void;
1122
+ /**
1123
+ * 设置API
1124
+ * @param name
1125
+ * @param api
1126
+ * @param scope
1127
+ */
1128
+ setAPI(name: string, api: any, scope?: string): void;
1129
+ /**
1130
+ * 获取API
1131
+ * @param proxy
1132
+ * @param name
1133
+ * @param scope
1134
+ */
1135
+ getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
1136
+ /**
1137
+ * 批量增加api
1138
+ * @param apis
1139
+ * @param scope
1140
+ */
1141
+ batchSetAPI(apis: Record<string, any>, scope?: string): void;
1142
+ /**
1143
+ * 清空scope apis
1144
+ * @param scope
1145
+ */
1146
+ clearScopeAPI(scope: string): void;
1147
+ /**
1148
+ * 获取root domain
1149
+ */
1150
+ getRootDomain(): Domain;
1151
+ }
1152
+
1153
+ /**
1154
+ * 通用函数接口
1155
+ */
1156
+ export declare interface GenericFunction {
1157
+ (...args: any[]): any;
1158
+ }
1159
+
1160
+ /**
1161
+ * 获取公共校验检查事件
1162
+ */
1163
+ export declare function getGlobalValidateCheckEvents(): string[];
1164
+
1165
+ /**
1166
+ * 获取公共校验重置事件
1167
+ */
1168
+ export declare function getGlobalValidateResetEvents(): string[];
1169
+
1170
+ /**
1171
+ * 获取page content区域高度(pageHeight - headerHeight - footerHeight - padding )
1172
+ * @param domain
1173
+ * @param state
1174
+ * @returns
1175
+ */
1176
+ export declare function getPageContentAreaHeight(domain: Domain, state?: PageState): number;
1177
+
1178
+ /**
1179
+ * 获取page content区域宽度(pageWidth - padding )
1180
+ * @param domain
1181
+ * @param state
1182
+ * @returns
1183
+ */
1184
+ export declare function getPageContentAreaWidth(domain: Domain, state?: PageState): number;
1185
+
1186
+ /**
1187
+ * 获取page footer区域高度(footerHeight + SafeAreaBottom )
1188
+ * @param domain
1189
+ * @param state
1190
+ * @returns
1191
+ */
1192
+ export declare function getPageFooterAreaHeight(domain: Domain, state?: PageState): number;
1193
+
1194
+ /**
1195
+ * 获取page header区域高度(headerHeight + SafeAreaTop )
1196
+ * @param domain
1197
+ * @param state
1198
+ * @returns
1199
+ */
1200
+ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageState): number;
1201
+
1202
+ /**
1203
+ * 获取root domain
1204
+ * @returns
1205
+ */
1206
+ export declare function getRootDomain(): Domain;
1207
+
1208
+ /**
1209
+ * Group Content
1210
+ */
1211
+ declare type GroupContent = {
1212
+ title: string;
1213
+ content: Array<string> | string;
1214
+ };
1215
+
1216
+ /**
1217
+ * 是否支持symbol
1218
+ */
1219
+ export declare const hasSymbol: boolean;
1220
+
1221
+ /**
1222
+ * hint text function
1223
+ */
1224
+ declare const HintTextFunction: HintTextTooltip;
1225
+ export { HintTextFunction as FoxHintText }
1226
+ export { HintTextFunction as HintText }
1227
+
1228
+ declare interface ImageInterface {
1229
+ src: string;
1230
+ }
1231
+
1232
+ declare class ImagePreviewApp {
1233
+ options: ImagePreviewOptions;
1234
+ constructor(_options: ImagePreviewOptions);
1235
+ }
1236
+
1237
+ declare const ImagePreviewFunction: {
1238
+ (options: ImagePreviewOptions): ImagePreviewApp;
1239
+ install(app: any): void;
1240
+ };
1241
+ export { ImagePreviewFunction as FoxImagePreview }
1242
+ export { ImagePreviewFunction as ImagePreview }
1243
+
1244
+ declare class ImagePreviewOptions {
1245
+ show: boolean;
1246
+ images: ImageInterface[];
1247
+ videos?: [];
1248
+ contentClose?: boolean;
1249
+ initNo?: number;
1250
+ paginationVisible?: boolean;
1251
+ paginationColor?: string;
1252
+ autoplay?: number | string;
1253
+ isWrapTeleport?: boolean;
1254
+ showIndex?: boolean;
1255
+ closeable?: boolean;
1256
+ closeIconPosition?: string;
1257
+ beforeClose?: Interceptor;
1258
+ maxZoom?: number;
1259
+ minZoom?: number;
1260
+ isLoop?: boolean;
1261
+ onClose?(): void;
1262
+ onChange?(index: number): void;
1263
+ teleport?: string | HTMLElement;
1264
+ }
1265
+
1266
+ /**
1267
+ * 根据包含模版,抽取属性
1268
+ * @param src
1269
+ * @param includeTemplates
1270
+ * @returns
1271
+ */
1272
+ export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
1273
+
1274
+ /**
1275
+ * 获取对应元素的在数组中第一个匹配的索引
1276
+ * @param x
1277
+ * @param arr
1278
+ * @returns
1279
+ */
1280
+ export declare function indexOf(x: unknown, arr: unknown[]): number;
1281
+
1282
+ /**
1283
+ * 安装校验规则
1284
+ * @param proxy
1285
+ */
1286
+ export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1287
+
1288
+ /**
1289
+ * 获取整数长度
1290
+ * @param value
1291
+ */
1292
+ export declare function integerLength(value: string | number): number;
1293
+
1294
+ declare type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
1295
+
1296
+ /**
1297
+ * 是否数组
1298
+ */
1299
+ export declare const isArray: (arg: any) => arg is any[];
1300
+
1301
+ /**
1302
+ * 是否为类数组
1303
+ * @param obj
1304
+ * @returns {boolean}
1305
+ */
1306
+ export declare function isArrayLike(obj: any): boolean;
1307
+
1308
+ /**
1309
+ * 是否为浏览器环境
1310
+ */
1311
+ export declare const isBrowser: boolean;
1312
+
1313
+ /**
1314
+ * 是否为Date
1315
+ * @param val
1316
+ * @returns
1317
+ */
1318
+ export declare const isDate: (val: unknown) => val is Date;
1319
+
1320
+ /**
1321
+ * 是否空字符串
1322
+ * @param v
1323
+ * @returns
1324
+ */
1325
+ export declare const isEmptyString: (v: unknown) => boolean;
1326
+
1327
+ /**
1328
+ * 判断两个对象是否一致
1329
+ * @param x
1330
+ * @param y
1331
+ * @return
1332
+ */
1333
+ export declare function isEqual(x: any, y: any): boolean;
1334
+
1335
+ /**
1336
+ * 是否为es module
1337
+ * @param obj
1338
+ * @returns
1339
+ */
1340
+ export declare function isESModule(obj: any): obj is Object;
1341
+
1342
+ /**
1343
+ * 是否为函数
1344
+ * @param val
1345
+ * @returns
1346
+ */
1347
+ export declare const isFunction: (val: unknown) => val is Function;
1348
+
1349
+ /**
1350
+ * 是否是隐藏element
1351
+ * @param el
1352
+ */
1353
+ export declare function isHidden(el: any): boolean;
1354
+
1355
+ /**
1356
+ * 是否为内嵌页面
1357
+ * 内嵌页面为内嵌在容器内,如dialog,不需要设置content的高度
1358
+ * @param domain
1359
+ * @param proxy
1360
+ * @returns
1361
+ */
1362
+ export declare function isInnerPage(domain: Domain, proxy: any): boolean;
1363
+
1364
+ /**
1365
+ * 是否为Map
1366
+ * @param val
1367
+ * @returns
1368
+ */
1369
+ export declare const isMap: (val: unknown) => val is Map<any, any>;
1370
+
1371
+ /**
1372
+ * 是否null/undefined对象
1373
+ */
1374
+ export declare function isNil(v: unknown): v is null | undefined;
1375
+
1376
+ /**
1377
+ * 是否为数字字符串
1378
+ * @param value
1379
+ * @returns
1380
+ */
1381
+ export declare function isNumberString(value: string): boolean;
1382
+
1383
+ /**
1384
+ * 是否为object
1385
+ */
1386
+ export declare const isObject: (val: unknown) => val is Record<any, any>;
1387
+
1388
+ /**
1389
+ * 是否为plain对象
1390
+ * @param val
1391
+ * @returns
1392
+ */
1393
+ export declare const isPlainObject: (val: unknown) => val is object;
1394
+
1395
+ /**
1396
+ * 是否为promise
1397
+ * @param val
1398
+ * @returns
1399
+ */
1400
+ export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
1401
+
1402
+ /**
1403
+ * 判断是否为正则表达式
1404
+ * @param v
1405
+ * @returns
1406
+ */
1407
+ export declare function isRegExp(v: unknown): v is RegExp;
1408
+
1409
+ /**
1410
+ * 是否为Set
1411
+ * @param val
1412
+ * @returns
1413
+ */
1414
+ export declare const isSet: (val: unknown) => val is Set<any>;
1415
+
1416
+ /**
1417
+ * 是否为字符串
1418
+ * @param val
1419
+ * @returns
1420
+ */
1421
+ export declare const isString: (val: unknown) => val is string;
1422
+
1423
+ /**
1424
+ * 是否子页面
1425
+ * @param domain
1426
+ */
1427
+ export declare function isSubPage(domain: Domain): boolean;
1428
+
1429
+ /**
1430
+ * 是否为symbol
1431
+ * @param val
1432
+ * @returns
1433
+ */
1434
+ export declare const isSymbol: (val: unknown) => val is symbol;
1435
+
1436
+ /**
1437
+ * 是否为支持触摸
1438
+ * @returns
1439
+ */
1440
+ export declare function isTouch(): boolean;
1441
+
1442
+ /**
1443
+ * 是否是window对象
1444
+ * @param obj
1445
+ */
1446
+ export declare function isWindow(obj: any): boolean;
1447
+
1448
+ /**
1449
+ * 获取对应元素的在数组中最后一个匹配的索引
1450
+ * @param x
1451
+ * @param arr
1452
+ * @returns
1453
+ */
1454
+ export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
1455
+
1456
+ /**
1457
+ * 创建数组
1458
+ * @param arr
1459
+ * @param results
1460
+ * @return
1461
+ */
1462
+ export declare function makeArray(arr: any, results?: any[]): any[];
1463
+
1464
+ /**
1465
+ * 匹配条件
1466
+ */
1467
+ export declare interface Matched {
1468
+ name?: string | RegExp | {
1469
+ (name: string): boolean;
1470
+ };
1471
+ maxLevel?: number;
1472
+ level?: number;
1473
+ }
1474
+
1475
+ /**
1476
+ * 合并数组
1477
+ * @param first
1478
+ * @param second
1479
+ * @return
1480
+ */
1481
+ export declare function merge(first: any[], second: any[]): any[];
1482
+
1483
+ /**
1484
+ * MessageBox动作
1485
+ */
1486
+ declare type MessageBoxAction = 'confirm' | 'cancel' | 'close';
1487
+
1488
+ /**
1489
+ * MesageBox Function
1490
+ */
1491
+ declare const MessageBoxFunction: {
1492
+ /**
1493
+ * show
1494
+ * @param message
1495
+ * @param title
1496
+ * @param options
1497
+ */
1498
+ show: (openType: OpenType, message: Content_2 | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
1499
+ /**
1500
+ * alert
1501
+ * @param messge
1502
+ * @param title
1503
+ * @param options
1504
+ */
1505
+ alert: (message: string | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
1506
+ /**
1507
+ * confirm
1508
+ * @param messge
1509
+ * @param title
1510
+ * @param options
1511
+ */
1512
+ confirm: (message: string | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
1513
+ /**
1514
+ * 安装
1515
+ * @param app
1516
+ */
1517
+ install(app: any): void;
1518
+ };
1519
+ export { MessageBoxFunction as FoxMessageBox }
1520
+ export { MessageBoxFunction as MessageBox }
1521
+
1522
+ /**
1523
+ * Message Box返回值
1524
+ */
1525
+ declare type MessageResult = {
1526
+ action: MessageBoxAction;
1527
+ };
1528
+
1529
+ export { multiply }
1530
+
1531
+ export { negate }
1532
+
1533
+ /**
1534
+ * 下一个事件周期中执行函数
1535
+ * @param fn
1536
+ * @param args
1537
+ */
1538
+ export declare function nextTick(fn: {
1539
+ (...args: any[]): void;
1540
+ }, ...args: any[]): void;
1541
+
1542
+ declare const NotifyFunction: {
1543
+ text(msg: string, obj?: {}): any;
1544
+ primary(msg: string, obj?: {}): any;
1545
+ success(msg: string, obj?: {}): any;
1546
+ danger(msg: string, obj?: {}): any;
1547
+ warn(msg: string, obj?: {}): any;
1548
+ hide(): void;
1549
+ install(app: any): void;
1550
+ };
1551
+ export { NotifyFunction as FoxNotify }
1552
+ export { NotifyFunction as Notify }
1553
+
1554
+ export { numberFormat }
1555
+
1556
+ /**
1557
+ * 对象类型
1558
+ */
1559
+ export declare const objectToString: () => string;
1560
+
1561
+ /**
1562
+ * 只执行一次函数
1563
+ * @param func
1564
+ * @returns
1565
+ */
1566
+ export declare function once(func: GenericFunction): GenericFunction;
1567
+
1568
+ /**
1569
+ * 打开类型
1570
+ */
1571
+ declare type OpenType = 'alert' | 'confirm' | '';
1572
+
1573
+ declare type Options = {
1574
+ teleport?: string | HTMLElement;
1575
+ zIndex?: number | string;
1576
+ [propName: string]: any;
1577
+ };
1578
+
1579
+ /**
1580
+ * 覆盖更新公共的校验处理器
1581
+ * @param validateHandler
1582
+ */
1583
+ export declare function overrideGlobalValidateHandler(validateHandler: Partial<ValidateHandler>): void;
1584
+
1585
+ /**
1586
+ * padding
1587
+ */
1588
+ export declare interface Padding {
1589
+ left: number | null;
1590
+ top: number | null;
1591
+ right: number | null;
1592
+ bottom: number | null;
1593
+ }
1594
+
1595
+ /**
1596
+ * pad zero
1597
+ */
1598
+ export declare const padZero: (num: number | string, length?: number) => string;
1599
+
1600
+ /**
1601
+ * page layout
1602
+ */
1603
+ export declare interface PageLayout {
1604
+ width: number | string;
1605
+ height: number | string;
1606
+ headerHeight?: number | string;
1607
+ footerHeight?: number | string;
1608
+ headerPadding?: Padding;
1609
+ footerPadding?: Padding;
1610
+ contentPadding?: Padding;
1611
+ }
1612
+
1613
+ export declare interface PageState {
1614
+ width: number;
1615
+ height: number;
1616
+ headerHeight: number;
1617
+ headerPadding: Padding;
1618
+ headerAllHeight?: number;
1619
+ footerHeight: number;
1620
+ footerPadding: Padding;
1621
+ footerAllHeight?: number;
1622
+ contentHeight: number | string | null;
1623
+ contentPadding: Padding;
1624
+ contentInnerHeight?: number;
1625
+ contentInnerWidth?: number;
1626
+ safeAreaTop: number;
1627
+ safeAreaBottom: number;
1628
+ safeAreaLeft: number;
1629
+ safeAreaRight: number;
1630
+ headerMounted?: boolean;
1631
+ footerMounted?: boolean;
1632
+ }
1633
+
1634
+ /**
1635
+ * 坐标
1636
+ */
1637
+ export declare interface Point {
1638
+ x: number;
1639
+ y: number;
1640
+ }
1641
+
1642
+ /**
1643
+ * prevent default
1644
+ * @param event
1645
+ * @param isStopPropagation
1646
+ */
1647
+ export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
1648
+
1649
+ /**
1650
+ * 优先策略
1651
+ */
1652
+ export declare enum PriorityPolicy {
1653
+ Parent = 0,
1654
+ Near = 1
1655
+ }
1656
+
1657
+ /**
1658
+ * 属性
1659
+ * @param source
1660
+ * @param name
1661
+ * @param policy
1662
+ * @param filter
1663
+ */
1664
+ export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
1665
+
1666
+ export declare const raf: any;
1667
+
1668
+ /**
1669
+ * 只读属性
1670
+ * @param source
1671
+ */
1672
+ export declare function readonlyProperty(source: Ref): Ref;
1673
+
1674
+ export declare interface Rect {
1675
+ top: number;
1676
+ left: number;
1677
+ right: number;
1678
+ bottom: number;
1679
+ width: number;
1680
+ height: number;
1681
+ }
1682
+
1683
+ /**
1684
+ * 结果类型
1685
+ */
1686
+ export declare type Result = Promise<any> | any;
1687
+
1688
+ /**
1689
+ * 结果集合
1690
+ */
1691
+ export declare type Results = Result[];
1692
+
1693
+ /**
1694
+ * 安全区域
1695
+ */
1696
+ export declare interface SafeAreaInset {
1697
+ left: number | string;
1698
+ top: number | string;
1699
+ right: number | string;
1700
+ bottom: number | string;
1701
+ }
1702
+
1703
+ /**
1704
+ * 设置公共校验检查事件
1705
+ * @param events
1706
+ */
1707
+ export declare function setGlobalValidateCheckEvents(events: string[]): void;
1708
+
1709
+ /**
1710
+ * 设置公共的校验处理器
1711
+ * @param validateHandler
1712
+ */
1713
+ export declare function setGlobalValidateHandler(validateHandler: ValidateHandler): void;
1714
+
1715
+ /**
1716
+ * 设置公共校验提示信息
1717
+ */
1718
+ export declare function setGlobalValidateMessages(messages: ValidateMessages): void;
1719
+
1720
+ /**
1721
+ * 设置公共校验重置事件
1722
+ * @param events
1723
+ */
1724
+ export declare function setGlobalValidateResetEvents(events: string[]): void;
1725
+
1726
+ /**
1727
+ * 设置公共校验器
1728
+ * @param type
1729
+ * @param validator
1730
+ */
1731
+ export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
1732
+
1733
+ /**
1734
+ * size
1735
+ */
1736
+ declare interface Size {
1737
+ width: number;
1738
+ height: number;
1739
+ }
1740
+
1741
+ /**
1742
+ * 节流函数(执行时间范围内的第一次)
1743
+ * @param func 函数
1744
+ * @param delay 延迟执行毫秒数
1745
+ * @returns
1746
+ */
1747
+ export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
1748
+
1749
+ declare const ToastFunction: {
1750
+ text(msg: string, opts?: {}): any;
1751
+ success(msg: string, opts?: {}): any;
1752
+ fail(msg: string, opts?: {}): any;
1753
+ warn(msg: string, opts?: {}): any;
1754
+ loading(msg: string, opts?: {}): any;
1755
+ hide(id?: string): void;
1756
+ install(app: any): void;
1757
+ };
1758
+ export { ToastFunction as FoxToast }
1759
+ export { ToastFunction as Toast }
1760
+
1761
+ /**
1762
+ * 转换为boolean值
1763
+ * @param val
1764
+ * @returns
1765
+ */
1766
+ export declare function toBoolean(val: unknown): boolean;
1767
+
1768
+ /**
1769
+ * 转换为number值
1770
+ * @param val
1771
+ * @returns
1772
+ */
1773
+ export declare function toNumber(val: unknown): number;
1774
+
1775
+ /**
1776
+ * 转换为number rect
1777
+ */
1778
+ export declare function toPadding(rect: any): Padding;
1779
+
1780
+ /**
1781
+ * 转换为px number数值
1782
+ * @param value
1783
+ * @param size
1784
+ */
1785
+ export declare function toPx(value: number | string, size?: number): number;
1786
+
1787
+ /**
1788
+ * to px desc
1789
+ * @param value
1790
+ * @returns
1791
+ */
1792
+ export declare const toPxDesc: (value: string | number) => string;
1793
+
1794
+ export declare const toTypeString: (value: unknown) => string;
1795
+
1796
+ /**
1797
+ * to model value
1798
+ * @param props
1799
+ * @param name
1800
+ * @param format
1801
+ * @param emitEvent
1802
+ * @returns
1803
+ */
1804
+ export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any> | null, emitEvent?: {
1805
+ (type: string, ...args: any[]): void;
1806
+ }): Ref;
1807
+
1808
+ /**
1809
+ * 尝试执行多次函数
1810
+ * @param func 执行函数
1811
+ * @param milliseconds 执行间隔
1812
+ * @param maxLimit 最大尝试次数
1813
+ * @param step 间隔增加步长
1814
+ * @param immediately 是否立刻执行
1815
+ */
1816
+ export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
1817
+
1818
+ /**
1819
+ * 尝试多次函数
1820
+ * 返回true,代表执行完成,不在需要重试
1821
+ */
1822
+ export declare interface TryTimesFunction {
1823
+ (): boolean;
1824
+ }
1825
+
1826
+ /**
1827
+ * 判断类型
1828
+ * @param obj
1829
+ * @returns any
1830
+ */
1831
+ export declare function typeOf(obj: any): string;
1832
+
1833
+ export declare class UniqueID {
1834
+ /**
1835
+ * seed id
1836
+ */
1837
+ private seed;
1838
+ /**
1839
+ * 种子
1840
+ * @param seed
1841
+ */
1842
+ constructor(seed?: number);
1843
+ /**
1844
+ * 获取唯一ID
1845
+ * @returns
1846
+ */
1847
+ get(): number;
1848
+ }
1849
+
1850
+ export { unNumberFormat }
1851
+
1852
+ /**
1853
+ * 更新 page state
1854
+ * @param state
1855
+ * @param pageLayout
1856
+ * @param overrideProps
1857
+ * @param root
1858
+ * @param rootWidth
1859
+ * @param rootHeight
1860
+ * @param headerBarHeight
1861
+ * @param footerBarHeight
1862
+ */
1863
+ export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
1864
+
1865
+ /**
1866
+ * 使用broadcast
1867
+ * @param proxy
1868
+ * @returns
1869
+ */
1870
+ export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
1871
+
1872
+ /**
1873
+ * 获取当前domain
1874
+ * @returns
1875
+ */
1876
+ export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
1877
+
1878
+ /**
1879
+ * use expose
1880
+ * @param apis
1881
+ */
1882
+ export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
1883
+
1884
+ /**
1885
+ * 获取内部可用size
1886
+ * @param elementRef
1887
+ * @returns
1888
+ */
1889
+ export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
1890
+
1891
+ /**
1892
+ * 获取page state
1893
+ * @param domain
1894
+ * @returns
1895
+ */
1896
+ export declare function usePageState(domain: Domain): PageState | null;
1897
+
1898
+ /**
1899
+ * 获取element 位置
1900
+ * @param elementRef
1901
+ * @returns
1902
+ */
1903
+ export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
1904
+
1905
+ /**
1906
+ * 获取非响应式touch对象
1907
+ * @returns
1908
+ */
1909
+ export declare function useRawTouch(): {
1910
+ move: EventListener;
1911
+ start: EventListener;
1912
+ reset: () => void;
1913
+ isVertical: () => boolean;
1914
+ isHorizontal: () => boolean;
1915
+ state: {
1916
+ startX: number;
1917
+ startY: number;
1918
+ startTime: number;
1919
+ duration: number;
1920
+ moveX: number;
1921
+ moveY: number;
1922
+ deltaX: number;
1923
+ deltaY: number;
1924
+ offsetX: number;
1925
+ offsetY: number;
1926
+ direction: Direction;
1927
+ };
1928
+ };
1929
+
1930
+ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
1931
+
1932
+ /**
1933
+ * 获取size
1934
+ * @param elementRef
1935
+ * @returns
1936
+ */
1937
+ export declare function useSize(elementRef: Element | Ref<Element>): Size;
1938
+
1939
+ /**
1940
+ * 获取响应式touch对象
1941
+ * @returns
1942
+ */
1943
+ export declare function useTouch(): {
1944
+ move: EventListener;
1945
+ start: EventListener;
1946
+ reset: () => void;
1947
+ startX: any;
1948
+ startY: any;
1949
+ startTime: any;
1950
+ duration: any;
1951
+ moveX: any;
1952
+ moveY: any;
1953
+ deltaX: any;
1954
+ deltaY: any;
1955
+ offsetX: any;
1956
+ offsetY: any;
1957
+ direction: any;
1958
+ isVertical: () => boolean;
1959
+ isHorizontal: () => boolean;
1960
+ };
1961
+
1962
+ /**
1963
+ * 校验条件
1964
+ */
1965
+ export declare interface ValidateCondition {
1966
+ deep?: boolean;
1967
+ include?: string[];
1968
+ exclude?: string[];
1969
+ ignoreHidden?: boolean;
1970
+ ignoreDisabled?: boolean;
1971
+ ignoreReadonly?: boolean;
1972
+ }
1973
+
1974
+ /**
1975
+ * 校验器handler
1976
+ */
1977
+ export declare interface ValidateHandler {
1978
+ /**
1979
+ * 错误处理
1980
+ * @param errorMsg
1981
+ * @param proxy
1982
+ *
1983
+ */
1984
+ error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
1985
+ /**
1986
+ * 重置处理
1987
+ * @param proxy
1988
+ *
1989
+ */
1990
+ reset?(proxy: FoxComponentPublicInstance): void;
1991
+ /**
1992
+ * 成功处理
1993
+ * @param proxy
1994
+ *
1995
+ */
1996
+ success?(proxy: FoxComponentPublicInstance): void;
1997
+ /**
1998
+ * 规则装饰处理
1999
+ * @param newRule
2000
+ * @param oldRule
2001
+ * @param proxy
2002
+ *
2003
+ */
2004
+ decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
2005
+ /**
2006
+ * 获取value
2007
+ * @param proxy
2008
+ *
2009
+ */
2010
+ getValue?(proxy: FoxComponentPublicInstance): any;
2011
+ }
2012
+
2013
+ /**
2014
+ * 校验器schema
2015
+ */
2016
+ export declare class ValidateSchema {
2017
+ /**
2018
+ * parent
2019
+ */
2020
+ private parent;
2021
+ /**
2022
+ * 校验器
2023
+ */
2024
+ private validators;
2025
+ /**
2026
+ * 属性rule
2027
+ */
2028
+ private attrRules;
2029
+ /**
2030
+ * rule
2031
+ */
2032
+ private rules;
2033
+ /**
2034
+ * 描述
2035
+ */
2036
+ private descriptor;
2037
+ /**
2038
+ * 实例
2039
+ */
2040
+ private proxy;
2041
+ /**
2042
+ * effect scope
2043
+ */
2044
+ private scope;
2045
+ /**
2046
+ * 构造函数
2047
+ * @param parent
2048
+ * @param descriptor
2049
+ * @param proxy
2050
+ */
2051
+ constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
2052
+ /**
2053
+ * 初始化
2054
+ */
2055
+ private init;
2056
+ /**
2057
+ * 销毁
2058
+ */
2059
+ destroy(): void;
2060
+ /**
2061
+ * 执行validate handler函数
2062
+ * @param name
2063
+ * @param args
2064
+ */
2065
+ private execHandler;
2066
+ /**
2067
+ * 调用装饰处理函数
2068
+ */
2069
+ private decorate;
2070
+ /**
2071
+ * 调用成功处理函数
2072
+ */
2073
+ private success;
2074
+ /**
2075
+ * 调用错误处理函数
2076
+ * @returns
2077
+ */
2078
+ private error;
2079
+ /**
2080
+ * 调用错误处理函数
2081
+ * @returns
2082
+ */
2083
+ private getValue;
2084
+ /**
2085
+ * 设置校验器
2086
+ * @param type
2087
+ * @param validator
2088
+ * @param global
2089
+ *
2090
+ * @returns
2091
+ */
2092
+ setValidator(type: string, validator: ExecuteValidator, global?: boolean): void;
2093
+ /**
2094
+ * 获取validator(只获取私有的validator)
2095
+ * @param type
2096
+ */
2097
+ getValidator(type: string): ExecuteValidator | null;
2098
+ /**
2099
+ * 删除校验器
2100
+ * @param type
2101
+ * @param global
2102
+ */
2103
+ deleteValidator(type: string, global?: boolean): void;
2104
+ /**
2105
+ * 判断校验器是否存在
2106
+ * @param type
2107
+ * @param global
2108
+ * @returns
2109
+ */
2110
+ hasValidator(type: string, global?: boolean): boolean;
2111
+ /**
2112
+ * 设置rule
2113
+ * @param rule
2114
+ */
2115
+ setRule(rule: Rule | null): void;
2116
+ /**
2117
+ * 清空校验错误信息
2118
+ * @params deep
2119
+ * @returns
2120
+ */
2121
+ clear(): void;
2122
+ /**
2123
+ * 执行校验
2124
+ * @returns
2125
+ */
2126
+ validate(): Promise<ValidateResult>;
2127
+ }
2128
+
2129
+ /**
2130
+ * validate schema key
2131
+ */
2132
+ export declare const ValidateSchemaKey: unique symbol;
2133
+
2134
+ /**
2135
+ * value 格式话
2136
+ */
2137
+ export declare interface ValueFormat<T, K> {
2138
+ (value: T): K;
2139
+ }
2140
+
2141
+ /**
2142
+ * 获取value长度
2143
+ * @param val
2144
+ * @returns
2145
+ */
2146
+ export declare function valueLength(val: unknown): number;
2147
+
2148
+ /**
2149
+ * value 类型
2150
+ */
2151
+ export declare type ValueType = 'string' | 'number' | 'date';
2152
+
2153
+ export { }