yuang-framework-ui-pc 1.1.42 → 1.1.44

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/es/utils/chart-theme-dark.d.ts +373 -0
  2. package/es/utils/chart-theme-dark.js +397 -0
  3. package/es/utils/chart-theme.d.ts +368 -0
  4. package/es/utils/chart-theme.js +392 -0
  5. package/es/utils/menu-util.d.ts +14 -0
  6. package/es/utils/menu-util.js +78 -0
  7. package/es/utils/message-box.d.ts +25 -0
  8. package/es/utils/message-box.js +98 -0
  9. package/es/utils/message.d.ts +66 -0
  10. package/es/utils/message.js +267 -0
  11. package/es/utils/resolvers.d.ts +18 -0
  12. package/es/utils/resolvers.js +50 -0
  13. package/es/utils/theme-util.d.ts +6 -0
  14. package/es/utils/theme-util.js +42 -0
  15. package/es/utils/validate.d.ts +182 -0
  16. package/es/utils/validate.js +197 -0
  17. package/lib/core.d.ts +3 -0
  18. package/lib/ele-admin-layout/components/layout-tabs.d.ts +5646 -0
  19. package/lib/ele-admin-layout/components/layout-tool.d.ts +2 -0
  20. package/lib/ele-admin-layout/style/index.d.ts +1 -0
  21. package/lib/ele-admin-layout/types.d.ts +54 -0
  22. package/lib/ele-alert/index.d.ts +131 -0
  23. package/lib/ele-alert/props.d.ts +58 -0
  24. package/lib/ele-app/el.d.ts +304 -0
  25. package/lib/ele-app/style/common/index.d.ts +1 -0
  26. package/lib/ele-app/style/overwrite/backtop/index.d.ts +1 -0
  27. package/lib/ele-app/style/overwrite/checkbox/index.d.ts +1 -0
  28. package/lib/ele-app/style/overwrite/date-picker/index.d.ts +1 -0
  29. package/lib/ele-app/style/overwrite/message-box/index.d.ts +1 -0
  30. package/lib/ele-app/style/overwrite/popper/index.d.ts +1 -0
  31. package/lib/ele-app/style/overwrite/select/index.d.ts +1 -0
  32. package/lib/ele-app/style/overwrite/tag/index.d.ts +1 -0
  33. package/lib/ele-app/style/overwrite/tree/index.d.ts +1 -0
  34. package/lib/ele-app/style/scrollbar/index.d.ts +1 -0
  35. package/lib/ele-app/types.d.ts +48 -0
  36. package/lib/ele-avatar-group/props.d.ts +56 -0
  37. package/lib/ele-avatar-group/style/index.d.ts +1 -0
  38. package/lib/ele-avatar-group/types.d.ts +21 -0
  39. package/lib/ele-backtop/props.d.ts +36 -0
  40. package/lib/ele-bar-code/index.d.ts +26 -0
  41. package/lib/ele-bottom-bar/index.d.ts +15 -0
  42. package/lib/ele-bottom-bar/props.d.ts +15 -0
  43. package/lib/ele-breadcrumb/index.d.ts +278 -0
  44. package/lib/ele-breadcrumb/props.d.ts +24 -0
  45. package/lib/ele-breadcrumb/style/index.d.ts +1 -0
  46. package/lib/ele-card/index.d.ts +106 -0
  47. package/lib/ele-card/style/index.d.ts +1 -0
  48. package/lib/ele-check-card/components/card-item.d.ts +37 -0
  49. package/lib/ele-check-card/props.d.ts +49 -0
  50. package/lib/ele-check-card/style/index.d.ts +1 -0
  51. package/lib/ele-check-card/types.d.ts +37 -0
  52. package/lib/ele-config-provider/components/receiver-view.d.ts +71 -0
  53. package/lib/ele-config-provider/props.d.ts +26 -0
  54. package/lib/ele-config-provider/style/index.d.ts +0 -0
  55. package/lib/ele-config-provider/types.d.ts +103 -0
  56. package/lib/ele-copyable/style/index.d.ts +1 -0
  57. package/lib/ele-copyable/types.d.ts +14 -0
  58. package/lib/ele-count-up/style/index.d.ts +0 -0
  59. package/lib/ele-cropper/index.d.ts +2824 -0
  60. package/lib/ele-cropper/props.d.ts +68 -0
  61. package/lib/ele-cropper/style/index.d.ts +1 -0
  62. package/lib/ele-cropper-modal/props.d.ts +58 -0
  63. package/lib/ele-cropper-modal/style/index.d.ts +1 -0
  64. package/lib/ele-dashboard/index.d.ts +14 -0
  65. package/lib/ele-dashboard/style/index.d.ts +1 -0
  66. package/lib/ele-dashboard/types.d.ts +4 -0
  67. package/lib/ele-data-table/props.d.ts +272 -0
  68. package/lib/ele-data-table/style/index.d.ts +1 -0
  69. package/lib/ele-data-table/types.d.ts +253 -0
  70. package/lib/ele-data-table/util.d.ts +172 -0
  71. package/lib/ele-dialog/index.d.ts +1074 -0
  72. package/lib/ele-dialog/style/index.d.ts +1 -0
  73. package/lib/ele-dialog/util.d.ts +52 -0
  74. package/lib/ele-dot/index.d.ts +29 -0
  75. package/lib/ele-dot/props.d.ts +25 -0
  76. package/lib/ele-dot/style/index.d.ts +1 -0
  77. package/lib/ele-drawer/index.d.ts +1170 -0
  78. package/lib/ele-drawer/props.d.ts +184 -0
  79. package/lib/ele-drawer/style/index.d.ts +1 -0
  80. package/lib/ele-dropdown/components/dropdown-menu-item.d.ts +97 -0
  81. package/lib/ele-dropdown/index.d.ts +4846 -0
  82. package/lib/ele-dropdown/types.d.ts +22 -0
  83. package/lib/ele-edit-tag/props.d.ts +55 -0
  84. package/lib/ele-edit-tag/style/index.d.ts +1 -0
  85. package/lib/ele-edit-tag/types.d.ts +9 -0
  86. package/lib/ele-ellipsis/index.d.ts +1660 -0
  87. package/lib/ele-icon-select/types.d.ts +16 -0
  88. package/lib/ele-image-viewer/index.d.ts +635 -0
  89. package/lib/ele-loading/props.d.ts +33 -0
  90. package/lib/ele-loading/types.d.ts +19 -0
  91. package/lib/ele-map-picker/style/index.d.ts +1 -0
  92. package/lib/ele-menus/components/item-title.d.ts +323 -0
  93. package/lib/ele-menus/types.d.ts +107 -0
  94. package/lib/ele-pagination/style/index.d.ts +1 -0
  95. package/lib/ele-pagination/types.d.ts +9 -0
  96. package/lib/ele-printer/index.d.ts +111 -0
  97. package/lib/ele-printer/util.d.ts +25 -0
  98. package/lib/ele-pro-layout/components/pro-iframe.d.ts +39 -0
  99. package/lib/ele-pro-layout/style/index.d.ts +1 -0
  100. package/lib/ele-pro-layout/util.d.ts +88 -0
  101. package/lib/ele-pro-table/components/tool-column.d.ts +3722 -0
  102. package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +39 -0
  103. package/lib/ele-pro-table/style/index.d.ts +1 -0
  104. package/lib/ele-pro-table/types.d.ts +489 -0
  105. package/lib/ele-qr-code/components/canvas-render.d.ts +67 -0
  106. package/lib/ele-qr-code/qrcodegen.d.ts +95 -0
  107. package/lib/ele-qr-code/style/index.d.ts +0 -0
  108. package/lib/ele-qr-code/util.d.ts +27 -0
  109. package/lib/ele-segmented/index.d.ts +485 -0
  110. package/lib/ele-segmented/style/index.d.ts +1 -0
  111. package/lib/ele-split-panel/index.d.ts +192 -0
  112. package/lib/ele-split-panel/props.d.ts +47 -0
  113. package/lib/ele-steps/index.d.ts +638 -0
  114. package/lib/ele-steps/style/index.d.ts +1 -0
  115. package/lib/ele-steps/types.d.ts +14 -0
  116. package/lib/ele-tab-tool/index.d.ts +75 -0
  117. package/lib/ele-tab-tool/props.d.ts +14 -0
  118. package/lib/ele-tab-wrap/components/tab-dropdown.d.ts +5006 -0
  119. package/lib/ele-tab-wrap/props.d.ts +13 -0
  120. package/lib/ele-tab-wrap/style/index.d.ts +0 -0
  121. package/lib/ele-table/index.d.ts +28 -0
  122. package/lib/ele-table/style/index.d.ts +1 -0
  123. package/lib/ele-table-select/props.d.ts +120 -0
  124. package/lib/ele-table-select/style/index.d.ts +1 -0
  125. package/lib/ele-tabs/props.d.ts +88 -0
  126. package/lib/ele-test/index.d.ts +2 -0
  127. package/lib/ele-test/style/index.d.ts +1 -0
  128. package/lib/ele-text/index.d.ts +93 -0
  129. package/lib/ele-text/style/index.d.ts +1 -0
  130. package/lib/ele-text/types.d.ts +35 -0
  131. package/lib/ele-toolbar/index.d.ts +1633 -0
  132. package/lib/ele-tooltip/props.d.ts +187 -0
  133. package/lib/ele-tooltip/style/index.d.ts +1 -0
  134. package/lib/ele-tour/types.d.ts +42 -0
  135. package/lib/ele-tour/util.d.ts +20 -0
  136. package/lib/ele-tree-select/style/index.d.ts +1 -0
  137. package/lib/ele-upload-list/components/list-item.d.ts +902 -0
  138. package/lib/ele-upload-list/props.d.ts +81 -0
  139. package/lib/ele-upload-list/types.d.ts +71 -0
  140. package/lib/ele-virtual-table/components/body-row.d.ts +984 -0
  141. package/lib/ele-virtual-table/components/expand-row.d.ts +19 -0
  142. package/lib/ele-virtual-table/components/footer-row.d.ts +65 -0
  143. package/lib/ele-virtual-table/components/header-cell.d.ts +3929 -0
  144. package/lib/ele-virtual-table/index.d.ts +7882 -0
  145. package/lib/ele-virtual-table/util.d.ts +229 -0
  146. package/lib/ele-watermark/index.d.ts +57 -0
  147. package/lib/ele-watermark/types.d.ts +39 -0
  148. package/lib/ele-xg-player/index.d.ts +22 -0
  149. package/lib/ele-xg-player/style/index.d.ts +1 -0
  150. package/lib/icons/AppstoreAddOutlined.d.ts +2 -0
  151. package/lib/icons/AppstoreOutlined.d.ts +2 -0
  152. package/lib/icons/ArrowLeft.d.ts +2 -0
  153. package/lib/icons/ArrowLeftOutlined.d.ts +2 -0
  154. package/lib/icons/ArrowRight.d.ts +2 -0
  155. package/lib/icons/ArrowRightOutlined.d.ts +2 -0
  156. package/lib/icons/ArrowUp.d.ts +2 -0
  157. package/lib/icons/ArrowUpOutlined.d.ts +2 -0
  158. package/lib/icons/BellOutlined.d.ts +2 -0
  159. package/lib/icons/BookOutlined.d.ts +2 -0
  160. package/lib/icons/CaretDownFilled.d.ts +2 -0
  161. package/lib/icons/CaretUpFilled.d.ts +2 -0
  162. package/lib/icons/CheckOutlined.d.ts +2 -0
  163. package/lib/icons/ClockCircleOutlined.d.ts +2 -0
  164. package/lib/icons/CloudUploadOutlined.d.ts +2 -0
  165. package/lib/icons/ClusterOutlined.d.ts +2 -0
  166. package/lib/icons/CodeOutlined.d.ts +2 -0
  167. package/lib/icons/CompassOutlined.d.ts +2 -0
  168. package/lib/icons/ConnectionOutlined.d.ts +2 -0
  169. package/lib/icons/ControlOutlined.d.ts +2 -0
  170. package/lib/icons/CornerRightFilled.d.ts +2 -0
  171. package/lib/icons/DashboardOutlined.d.ts +2 -0
  172. package/lib/icons/DesktopOutlined.d.ts +2 -0
  173. package/lib/icons/DragOutlined.d.ts +2 -0
  174. package/lib/icons/EditOutlined.d.ts +2 -0
  175. package/lib/icons/EnvironmentOutlined.d.ts +2 -0
  176. package/lib/icons/FileOutlined.d.ts +2 -0
  177. package/lib/icons/FilterFilled.d.ts +2 -0
  178. package/lib/icons/GlobalOutlined.d.ts +2 -0
  179. package/lib/icons/HomeOutlined.d.ts +2 -0
  180. package/lib/icons/LoadingDotOutlined.d.ts +2 -0
  181. package/lib/icons/LoadingOutlined.d.ts +2 -0
  182. package/lib/icons/LockOutlined.d.ts +2 -0
  183. package/lib/icons/LogOutlined.d.ts +2 -0
  184. package/lib/icons/MailOutlined.d.ts +2 -0
  185. package/lib/icons/MenuFoldOutlined.d.ts +2 -0
  186. package/lib/icons/MenuOutlined.d.ts +2 -0
  187. package/lib/icons/MenuUnfoldOutlined.d.ts +2 -0
  188. package/lib/icons/MessageOutlined.d.ts +2 -0
  189. package/lib/icons/MinusCircleOutlined.d.ts +2 -0
  190. package/lib/icons/MoonOutlined.d.ts +2 -0
  191. package/lib/icons/MoreOutlined.d.ts +2 -0
  192. package/lib/icons/PauseFilled.d.ts +2 -0
  193. package/lib/icons/PieChartOutlined.d.ts +2 -0
  194. package/lib/icons/PlusOutlined.d.ts +2 -0
  195. package/lib/icons/ProtectOutlined.d.ts +2 -0
  196. package/lib/icons/QuestionCircleOutlined.d.ts +2 -0
  197. package/lib/icons/ReloadOutlined.d.ts +2 -0
  198. package/lib/icons/SortOutlined.d.ts +2 -0
  199. package/lib/icons/StarFilled.d.ts +2 -0
  200. package/lib/icons/StepForwardFilled.d.ts +2 -0
  201. package/lib/icons/UndoOutlined.d.ts +2 -0
  202. package/lib/icons/UnlockOutlined.d.ts +2 -0
  203. package/lib/icons/VerticalLeftOutlined.d.ts +2 -0
  204. package/lib/icons/WarningOutlined.d.ts +2 -0
  205. package/lib/icons/ZoomOutOutlined.d.ts +2 -0
  206. package/lib/index.d.ts +4 -0
  207. package/lib/installer.d.ts +3 -0
  208. package/lib/lang/en_US.d.ts +4 -0
  209. package/lib/lang/zh_CN.d.ts +4 -0
  210. package/lib/utils/chart-theme-dark.d.ts +373 -0
  211. package/lib/utils/chart-theme.d.ts +368 -0
  212. package/lib/utils/core.cjs +318 -0
  213. package/lib/utils/core.d.ts +168 -0
  214. package/lib/utils/hook.cjs +264 -0
  215. package/lib/utils/hook.d.ts +113 -0
  216. package/lib/utils/menu-util.d.ts +14 -0
  217. package/lib/utils/message-box.d.ts +25 -0
  218. package/lib/utils/message.d.ts +66 -0
  219. package/lib/utils/resolvers.cjs +50 -0
  220. package/lib/utils/resolvers.d.ts +18 -0
  221. package/lib/utils/theme-util.d.ts +6 -0
  222. package/lib/utils/validate.cjs +197 -0
  223. package/lib/utils/validate.d.ts +182 -0
  224. package/lib/yu-framework-slider-captcha-dialog/SliderCaptcha.d.ts +67 -0
  225. package/lib/yu-framework-slider-captcha-dialog/index.d.ts +14 -0
  226. package/package.json +1 -1
@@ -0,0 +1,197 @@
1
+ const phoneReg = /^1\d{10}$/;
2
+ const phoneStrongReg = /^1[3|5|7|8|9][0-9]{9}$/;
3
+ const telReg = /^(400|800)([0-9\\-]{7,10})|(([0-9]{4}|[0-9]{3})(-| )?)?([0-9]{7,8})((-| |转)*([0-9]{1,4}))?$/;
4
+ const emailReg = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
5
+ const urlReg = /(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/;
6
+ const identityReg = /(^\d{15}$)|(^\d{17}(x|X|\d)$)/;
7
+ const dateReg = /^(\d{4})[-/](\d{1}|0\d{1}|1[0-2])([-/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/;
8
+ const numberReg = /^[0-9]+\.?[0-9]*$/;
9
+ const integerReg = /^-?\d+$/;
10
+ const positiveIntegerReg = /^[1-9]\d*$/;
11
+ const negativeIntegerReg = /^-[1-9]\d*$/;
12
+ const nonNegativeIntegerReg = /^\d+$/;
13
+ const nonPositiveIntegerReg = /^-[1-9]\d*|0/;
14
+ const chineseReg = /^[\u4E00-\u9FA5]{2,4}$/;
15
+ const portReg = /^([0-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/;
16
+ const ipReg = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;
17
+ const longitudeReg = /^[-|+]?(0?\d{1,2}\.\d{1,5}|1[0-7]?\d{1}\.\d{1,5}|180\.0{1,5})$/;
18
+ const latitudeReg = /^[-|+]?([0-8]?\d{1}\.\d{1,5}|90\.0{1,5})$/;
19
+ function isPhone(value) {
20
+ return phoneReg.test(value);
21
+ }
22
+ function isPhoneStrong(value) {
23
+ return phoneStrongReg.test(value);
24
+ }
25
+ function isTel(value) {
26
+ return telReg.test(value);
27
+ }
28
+ function isEmail(value) {
29
+ return emailReg.test(value);
30
+ }
31
+ function isUrl(value) {
32
+ return urlReg.test(value);
33
+ }
34
+ function isIdentity(value) {
35
+ return identityReg.test(value);
36
+ }
37
+ function isDate(value) {
38
+ return dateReg.test(value);
39
+ }
40
+ function isNumber(value) {
41
+ return numberReg.test(value);
42
+ }
43
+ function isInteger(value) {
44
+ return integerReg.test(value);
45
+ }
46
+ function isPositiveInteger(value) {
47
+ return positiveIntegerReg.test(value);
48
+ }
49
+ function isNegativeInteger(value) {
50
+ return negativeIntegerReg.test(value);
51
+ }
52
+ function isNonNegativeInteger(value) {
53
+ return nonNegativeIntegerReg.test(value);
54
+ }
55
+ function isNonPositiveInteger(value) {
56
+ return nonPositiveIntegerReg.test(value);
57
+ }
58
+ function isChinese(value) {
59
+ return chineseReg.test(value);
60
+ }
61
+ function isPort(value) {
62
+ return portReg.test(value);
63
+ }
64
+ function isIP(value) {
65
+ return ipReg.test(value);
66
+ }
67
+ function isLongitude(value) {
68
+ return longitudeReg.test(value);
69
+ }
70
+ function isLatitude(value) {
71
+ return latitudeReg.test(value);
72
+ }
73
+ function maxMinLength(value, minLength, maxLength) {
74
+ if (value == null) {
75
+ return !minLength;
76
+ }
77
+ if (minLength && value.toString().length < minLength) {
78
+ return false;
79
+ }
80
+ return !(maxLength != null && value.toString().length > maxLength);
81
+ }
82
+ function maxMin(value, min, max) {
83
+ if (value == null) {
84
+ return min == null;
85
+ }
86
+ if (min != null && value < min) {
87
+ return false;
88
+ }
89
+ return !(max != null && value > max);
90
+ }
91
+ function isIdentityStrong(value) {
92
+ if (!isIdentity(value)) {
93
+ return "身份证号码格式错误";
94
+ }
95
+ const ai = value.length === 18 ? value.substring(0, 17) : value.substring(0, 6) + "19" + value.substring(6, 15);
96
+ const year = ai.substring(6, 10);
97
+ const birthday = year + "/" + ai.substring(10, 12) + "/" + ai.substring(12, 14);
98
+ if (!isDate(birthday)) {
99
+ return "身份证号码出生日期无效";
100
+ }
101
+ const now = /* @__PURE__ */ new Date();
102
+ if (now.getFullYear() - Number.parseInt(year) > 150 || now.getTime() - new Date(birthday).getTime() < 0) {
103
+ return "身份证号码出生日期不在有效范围";
104
+ }
105
+ const areaCodes = [
106
+ "11",
107
+ "12",
108
+ "13",
109
+ "14",
110
+ "15",
111
+ "21",
112
+ "22",
113
+ "23",
114
+ "31",
115
+ "32",
116
+ "33",
117
+ "34",
118
+ "35",
119
+ "36",
120
+ "37",
121
+ "41",
122
+ "42",
123
+ "43",
124
+ "44",
125
+ "45",
126
+ "46",
127
+ "50",
128
+ "51",
129
+ "52",
130
+ "53",
131
+ "54",
132
+ "61",
133
+ "62",
134
+ "63",
135
+ "64",
136
+ "65",
137
+ "71",
138
+ "81",
139
+ "82",
140
+ "91"
141
+ ];
142
+ if (areaCodes.indexOf(ai.substring(0, 2)) === -1) {
143
+ return "身份证号码地区编码错误";
144
+ }
145
+ if (value.length === 18) {
146
+ const valCode = ["1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2"];
147
+ const wi = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
148
+ let totalMulAiWi = 0;
149
+ for (let i = 0; i < 17; i++) {
150
+ totalMulAiWi += Number.parseInt(ai.charAt(i)) * wi[i];
151
+ }
152
+ if (value !== ai + valCode[totalMulAiWi % 11]) {
153
+ return "身份证号码最后一位错误";
154
+ }
155
+ }
156
+ }
157
+ export {
158
+ chineseReg,
159
+ dateReg,
160
+ emailReg,
161
+ identityReg,
162
+ integerReg,
163
+ ipReg,
164
+ isChinese,
165
+ isDate,
166
+ isEmail,
167
+ isIP,
168
+ isIdentity,
169
+ isIdentityStrong,
170
+ isInteger,
171
+ isLatitude,
172
+ isLongitude,
173
+ isNegativeInteger,
174
+ isNonNegativeInteger,
175
+ isNonPositiveInteger,
176
+ isNumber,
177
+ isPhone,
178
+ isPhoneStrong,
179
+ isPort,
180
+ isPositiveInteger,
181
+ isTel,
182
+ isUrl,
183
+ latitudeReg,
184
+ longitudeReg,
185
+ maxMin,
186
+ maxMinLength,
187
+ negativeIntegerReg,
188
+ nonNegativeIntegerReg,
189
+ nonPositiveIntegerReg,
190
+ numberReg,
191
+ phoneReg,
192
+ phoneStrongReg,
193
+ portReg,
194
+ positiveIntegerReg,
195
+ telReg,
196
+ urlReg
197
+ };
package/lib/core.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from './core-components';
2
+ export * from './core-export';
3
+ export { installer as default } from './core-installer';