yuang-framework-ui-pc 1.1.44 → 1.1.45

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 (818) hide show
  1. package/es/components.d.ts +7 -0
  2. package/es/components.js +15 -0
  3. package/es/core-components.d.ts +57 -0
  4. package/es/core-components.js +116 -0
  5. package/es/core-export.d.ts +11 -0
  6. package/es/core-export.js +15 -0
  7. package/es/ele-admin-layout/index.d.ts +10276 -0
  8. package/es/ele-admin-layout/index.js +596 -0
  9. package/es/ele-app/style/overwrite/color-picker/index.scss +42 -0
  10. package/es/ele-app/style/overwrite/date-picker/css-var.scss +16 -0
  11. package/es/ele-app/style/overwrite/select/css-var.scss +8 -0
  12. package/{lib/ele-ellipsis → es/ele-avatar-group}/index.d.ts +218 -136
  13. package/es/ele-avatar-group/index.js +189 -0
  14. package/es/ele-avatar-group/style/index.scss +73 -0
  15. package/es/ele-basic-select/types.d.ts +28 -0
  16. package/es/ele-basic-select/util.d.ts +21 -0
  17. package/{lib/ele-basic-select/util.cjs → es/ele-basic-select/util.js} +10 -10
  18. package/es/ele-breadcrumb/types.d.ts +32 -0
  19. package/es/ele-card/style/css-var.scss +8 -0
  20. package/es/ele-check-card/index.d.ts +495 -0
  21. package/es/ele-check-card/index.js +131 -0
  22. package/es/ele-config-provider/receiver.d.ts +15 -0
  23. package/es/ele-config-provider/receiver.js +26 -0
  24. package/es/ele-copyable/props.d.ts +48 -0
  25. package/es/ele-copyable/props.js +39 -0
  26. package/es/ele-count-up/index.d.ts +37 -0
  27. package/es/ele-count-up/index.js +108 -0
  28. package/es/ele-cropper/components/cropper-preview.d.ts +21 -0
  29. package/es/ele-cropper/components/cropper-preview.js +74 -0
  30. package/es/ele-cropper/components/cropper-tools.d.ts +2710 -0
  31. package/es/ele-cropper/components/cropper-tools.js +218 -0
  32. package/es/ele-dashboard/props.d.ts +17 -0
  33. package/{lib/ele-dashboard/props.cjs → es/ele-dashboard/props.js} +3 -3
  34. package/{lib/ele-data-table/index.cjs → es/ele-data-table/index.js} +100 -99
  35. package/es/ele-dropdown/components/pro-dropdown.d.ts +2912 -0
  36. package/es/ele-dropdown/components/pro-dropdown.js +205 -0
  37. package/es/ele-dropdown/style/index.scss +314 -0
  38. package/es/ele-edit-tag/index.d.ts +2380 -0
  39. package/es/ele-edit-tag/index.js +272 -0
  40. package/es/{ele-avatar-group → ele-ellipsis}/style/index.js +1 -1
  41. package/es/ele-ellipsis/types.d.ts +9 -0
  42. package/es/ele-file-list/components/file-grid-item.d.ts +55 -0
  43. package/es/ele-file-list/components/file-grid-item.js +149 -0
  44. package/es/ele-file-list/components/file-table-item.d.ts +59 -0
  45. package/es/ele-file-list/components/file-table-item.js +183 -0
  46. package/es/ele-file-list/icons.d.ts +18 -0
  47. package/es/ele-file-list/icons.js +130 -0
  48. package/es/ele-file-list/props.d.ts +76 -0
  49. package/es/ele-file-list/props.js +62 -0
  50. package/es/ele-file-list/style/css-var.scss +8 -0
  51. package/es/ele-file-list/types.d.ts +117 -0
  52. package/es/ele-icon-select/components/icon-grid.d.ts +2039 -0
  53. package/es/ele-icon-select/components/icon-grid.js +126 -0
  54. package/{lib/ele-dropdown → es/ele-icon-select}/index.d.ts +2968 -2500
  55. package/es/ele-icon-select/index.js +337 -0
  56. package/es/ele-icon-select/style/index.js +6 -0
  57. package/es/ele-icon-select/style/index.scss +235 -0
  58. package/es/ele-image-viewer/props.d.ts +115 -0
  59. package/es/ele-image-viewer/props.js +35 -0
  60. package/es/ele-loading/style/index.js +2 -0
  61. package/es/ele-map-picker/components/map-view.js +734 -0
  62. package/es/ele-map-picker/props.d.ts +232 -0
  63. package/es/ele-map-picker/props.js +130 -0
  64. package/es/ele-pagination/props.d.ts +123 -0
  65. package/es/ele-pagination/props.js +31 -0
  66. package/es/ele-pagination/style/index.scss +288 -0
  67. package/{lib/ele-toolbar → es/ele-popconfirm}/index.d.ts +915 -126
  68. package/es/ele-popconfirm/index.js +212 -0
  69. package/es/{ele-copyable → ele-popconfirm}/style/index.js +1 -0
  70. package/es/{ele-ellipsis → ele-popover}/index.d.ts +402 -149
  71. package/es/ele-popover/index.js +105 -0
  72. package/{lib/ele-tooltip → es/ele-popover}/props.d.ts +76 -60
  73. package/es/ele-popover/props.js +27 -0
  74. package/es/ele-popover/style/index.js +1 -0
  75. package/es/ele-printer/types.d.ts +46 -0
  76. package/es/ele-pro-table/util.d.ts +285 -0
  77. package/es/ele-pro-table/util.js +729 -0
  78. package/es/ele-segmented/types.d.ts +28 -0
  79. package/es/{ele-dialog → ele-split-panel}/style/index.js +0 -1
  80. package/es/ele-steps/props.d.ts +68 -0
  81. package/es/ele-steps/props.js +14 -0
  82. package/es/ele-steps/style/css-var.scss +8 -0
  83. package/es/ele-steps/style/index.scss +206 -0
  84. package/es/ele-tab-wrap/index.d.ts +8 -0
  85. package/es/ele-tab-wrap/index.js +73 -0
  86. package/es/{ele-segmented → ele-tabs}/style/index.js +1 -0
  87. package/es/ele-toolbar/types.d.ts +19 -0
  88. package/es/ele-tooltip/index.d.ts +1506 -0
  89. package/es/ele-tooltip/index.js +176 -0
  90. package/es/ele-tooltip/style/index.scss +95 -0
  91. package/es/{ele-toolbar → ele-tour}/index.d.ts +516 -119
  92. package/es/ele-tour/index.js +238 -0
  93. package/es/ele-tour/props.d.ts +36 -0
  94. package/es/ele-tour/props.js +30 -0
  95. package/{lib/ele-table-select → es/ele-tree-select}/props.d.ts +14 -31
  96. package/{lib/ele-tree-select/props.cjs → es/ele-tree-select/props.js} +4 -4
  97. package/es/ele-upload-list/index.d.ts +2450 -0
  98. package/es/ele-upload-list/index.js +287 -0
  99. package/es/ele-virtual-table/components/cell-checkbox.d.ts +666 -0
  100. package/es/ele-virtual-table/components/cell-checkbox.js +49 -0
  101. package/es/ele-virtual-table/components/header-row.d.ts +3980 -0
  102. package/es/ele-virtual-table/components/header-row.js +126 -0
  103. package/es/ele-virtual-table/style/index.js +9 -0
  104. package/es/ele-watermark/util.d.ts +31 -0
  105. package/es/ele-watermark/util.js +70 -0
  106. package/es/icons/{DesktopOutlined.js → CalendarOutlined.js} +4 -4
  107. package/es/icons/{MailOutlined.js → CityOutlined.js} +7 -4
  108. package/es/icons/{CheckOutlined.js → CloseOutlined.js} +4 -4
  109. package/es/icons/CompressOutlined.js +31 -0
  110. package/es/icons/{CornerRightFilled.js → CornerLeftFilled.js} +4 -4
  111. package/es/icons/{ArrowRight.js → CpuOutlined.js} +5 -6
  112. package/es/icons/DeleteOutlined.js +30 -0
  113. package/es/icons/{ArrowLeftOutlined.js → FolderAddOutlined.js} +5 -5
  114. package/es/icons/{BookOutlined.js → FormOutlined.js} +5 -4
  115. package/es/icons/FullscreenOutlined.js +29 -0
  116. package/es/icons/HolderOutlined.js +24 -0
  117. package/es/icons/{MenuOutlined.js → LinkOutlined.js} +6 -6
  118. package/es/icons/{BellOutlined.js → LogoutOutlined.js} +5 -4
  119. package/es/icons/{FilterFilled.js → PlayFilled.js} +4 -4
  120. package/es/icons/{ClockCircleOutlined.js → PlusCircleOutlined.js} +5 -6
  121. package/es/icons/SettingOutlined.js +28 -0
  122. package/es/icons/{WarningOutlined.js → SliderArrowStatic.js} +13 -17
  123. package/es/icons/{CompassOutlined.js → StepBackwardFilled.js} +12 -13
  124. package/es/icons/SunOutlined.js +27 -0
  125. package/es/icons/{SortOutlined.js → SwapOutlined.js} +5 -5
  126. package/es/icons/{ReloadOutlined.js → UploadOutlined.js} +5 -4
  127. package/es/icons/{DragOutlined.js → UserOutlined.js} +4 -5
  128. package/es/icons/{ClusterOutlined.js → VerticalAlignMiddleOutlined.js} +7 -6
  129. package/es/icons/{ArrowLeft.js → ZoomInOutlined.js} +6 -7
  130. package/es/icons/index.d.ts +117 -0
  131. package/es/icons/index.js +236 -0
  132. package/es/style/nprogress.scss +85 -0
  133. package/lib/ele-app/style/overwrite/color-picker/index.scss +42 -0
  134. package/lib/ele-app/style/overwrite/notification/css-var.scss +8 -0
  135. package/lib/ele-app/style/overwrite/select/css-var.scss +8 -0
  136. package/{es/ele-avatar-group/props.js → lib/ele-avatar-group/props.cjs} +4 -4
  137. package/lib/ele-avatar-group/style/index.scss +73 -0
  138. package/lib/ele-backtop/style/css-var.scss +8 -0
  139. package/lib/ele-bar-code/index.cjs +66 -0
  140. package/lib/ele-bar-code/props.cjs +14 -0
  141. package/lib/ele-basic-select/props.cjs +78 -0
  142. package/lib/ele-basic-select/style/css-var.scss +9 -0
  143. package/lib/ele-basic-select/style/index.scss +269 -0
  144. package/{es/ele-config-provider/props.js → lib/ele-config-provider/props.cjs} +4 -4
  145. package/lib/ele-config-provider/receiver.cjs +26 -0
  146. package/lib/ele-count-up/props.cjs +22 -0
  147. package/lib/ele-dropdown/components/pro-dropdown.cjs +204 -0
  148. package/lib/ele-dropdown/index.cjs +243 -0
  149. package/lib/ele-file-list/components/file-grid-item.cjs +148 -0
  150. package/lib/ele-file-list/components/file-grid.cjs +134 -0
  151. package/lib/ele-file-list/components/file-sort.cjs +34 -0
  152. package/lib/ele-file-list/components/file-table-item.cjs +182 -0
  153. package/lib/ele-file-list/icons.cjs +130 -0
  154. package/lib/ele-file-list/props.cjs +62 -0
  155. package/lib/ele-file-list/style/css-var.scss +8 -0
  156. package/lib/ele-file-list/style/index.cjs +3 -0
  157. package/lib/ele-file-list/style/index.scss +427 -0
  158. package/lib/ele-icon-select/components/icon-grid.cjs +125 -0
  159. package/lib/{ele-table-select → ele-icon-select}/props.cjs +52 -50
  160. package/lib/ele-icon-select/style/css-var.scss +8 -0
  161. package/lib/ele-icon-select/style/index.cjs +7 -0
  162. package/lib/ele-icon-select/style/index.scss +235 -0
  163. package/lib/ele-image-viewer/index.cjs +87 -0
  164. package/lib/ele-image-viewer/style/css-var.scss +8 -0
  165. package/lib/ele-image-viewer/style/index.cjs +3 -0
  166. package/{es/ele-loading/props.js → lib/ele-loading/props.cjs} +3 -3
  167. package/lib/ele-loading/style/css-var.scss +8 -0
  168. package/lib/ele-map-picker/components/map-view.cjs +733 -0
  169. package/lib/ele-pagination/props.cjs +31 -0
  170. package/lib/ele-pagination/style/css-var.scss +8 -0
  171. package/lib/ele-pagination/style/index.scss +288 -0
  172. package/lib/ele-popconfirm/style/index.scss +41 -0
  173. package/lib/ele-printer/props.cjs +34 -0
  174. package/lib/ele-pro-table/style/index.cjs +21 -0
  175. package/lib/ele-qr-code-svg/index.cjs +126 -0
  176. package/{es/ele-segmented/index.js → lib/ele-segmented/index.cjs} +34 -35
  177. package/lib/ele-segmented/style/css-var.scss +16 -0
  178. package/lib/ele-steps/index.cjs +54 -0
  179. package/lib/ele-tab-wrap/props.cjs +9 -0
  180. package/lib/ele-table/props.cjs +20 -0
  181. package/lib/ele-table/style/index.scss +219 -0
  182. package/lib/ele-test/style/css-var.scss +8 -0
  183. package/{es/ele-test → lib/ele-text}/style/index.scss +1 -1
  184. package/lib/ele-tool/props.cjs +21 -0
  185. package/lib/ele-toolbar/style/index.scss +56 -0
  186. package/lib/ele-tour/props.cjs +30 -0
  187. package/lib/ele-tour/style/index.scss +101 -0
  188. package/lib/ele-tour/util.cjs +43 -0
  189. package/{es/ele-upload-list/props.js → lib/ele-upload-list/props.cjs} +4 -4
  190. package/lib/ele-upload-list/style/css-var.scss +8 -0
  191. package/{es/ele-virtual-table/components/header-cell.js → lib/ele-virtual-table/components/header-cell.cjs} +33 -34
  192. package/lib/icons/AppstoreAddOutlined.cjs +29 -0
  193. package/lib/icons/{CornerLeftFilled.cjs → CaretUpFilled.cjs} +4 -4
  194. package/lib/icons/{ArrowLeftOutlined.cjs → CheckOutlined.cjs} +4 -4
  195. package/lib/icons/{MenuOutlined.cjs → ColumnHeightOutlined.cjs} +9 -6
  196. package/lib/icons/{PlusOutlined.cjs → CornerRightFilled.cjs} +5 -8
  197. package/lib/icons/{IdcardOutlined.cjs → DashboardOutlined.cjs} +7 -7
  198. package/lib/icons/{CheckCircleOutlined.cjs → DatabaseOutlined.cjs} +7 -6
  199. package/lib/icons/{ReloadOutlined.cjs → DeleteOutlined.cjs} +6 -4
  200. package/lib/icons/{FolderOutlined.cjs → DesktopOutlined.cjs} +4 -4
  201. package/lib/icons/{ClockCircleOutlined.cjs → EnvironmentOutlined.cjs} +6 -7
  202. package/lib/icons/{ClusterOutlined.cjs → ExclamationCircleFilled.cjs} +5 -8
  203. package/lib/icons/FilterFilled.cjs +23 -0
  204. package/lib/icons/{CheckCircleFilled.cjs → InfoCircleFilled.cjs} +4 -4
  205. package/lib/icons/{HomeOutlined.cjs → MailOutlined.cjs} +4 -4
  206. package/lib/icons/{DownloadOutlined.cjs → PieChartOutlined.cjs} +5 -6
  207. package/lib/icons/{VerticalLeftOutlined.cjs → PlayFilled.cjs} +5 -7
  208. package/lib/icons/QuestionCircleFilled.cjs +23 -0
  209. package/lib/icons/{CalendarOutlined.cjs → ShoppingOutlined.cjs} +4 -4
  210. package/lib/icons/{ArrowDownOutlined.cjs → SizeSlackOutlined.cjs} +8 -7
  211. package/lib/icons/SliderArrowSlide.cjs +33 -0
  212. package/lib/icons/{UndoOutlined.cjs → SortOutlined.cjs} +5 -4
  213. package/lib/icons/StepForwardFilled.cjs +29 -0
  214. package/lib/icons/{CpuOutlined.cjs → SunOutlined.cjs} +4 -5
  215. package/lib/icons/{DragOutlined.cjs → UserOutlined.cjs} +4 -5
  216. package/lib/icons/{SearchOutlined.cjs → ZoomInOutlined.cjs} +5 -4
  217. package/lib/lang/zh_TW.cjs +84 -0
  218. package/lib/style/nprogress.scss +85 -0
  219. package/lib/style/plus.scss +48 -0
  220. package/lib/style/themes/default.scss +1364 -0
  221. package/lib/style/themes/rounded-css-var.scss +6 -0
  222. package/package.json +1 -1
  223. package/es/ele-admin-layout/components/layout-tabs.d.ts +0 -5646
  224. package/es/ele-admin-layout/components/layout-tabs.js +0 -132
  225. package/es/ele-admin-layout/style/tabs.scss +0 -59
  226. package/es/ele-alert/props.d.ts +0 -58
  227. package/es/ele-alert/props.js +0 -51
  228. package/es/ele-alert/style/index.scss +0 -172
  229. package/es/ele-app/style/overwrite/autocomplete/index.scss +0 -33
  230. package/es/ele-app/style/overwrite/cascader/index.scss +0 -166
  231. package/es/ele-app/style/overwrite/checkbox/css-var.scss +0 -8
  232. package/es/ele-app/style/overwrite/input/index.scss +0 -540
  233. package/es/ele-app/style/overwrite/message-box/index.scss +0 -148
  234. package/es/ele-app/style/overwrite/popper/css-var.scss +0 -14
  235. package/es/ele-app/style/overwrite/select/index.scss +0 -203
  236. package/es/ele-avatar-group/props.d.ts +0 -56
  237. package/es/ele-avatar-group/types.d.ts +0 -21
  238. package/es/ele-bottom-bar/index.d.ts +0 -15
  239. package/es/ele-bottom-bar/index.js +0 -56
  240. package/es/ele-bottom-bar/props.d.ts +0 -15
  241. package/es/ele-bottom-bar/props.js +0 -11
  242. package/es/ele-bottom-bar/style/index.scss +0 -31
  243. package/es/ele-breadcrumb/index.d.ts +0 -278
  244. package/es/ele-breadcrumb/index.js +0 -88
  245. package/es/ele-breadcrumb/style/index.js +0 -3
  246. package/es/ele-breadcrumb/style/index.scss +0 -31
  247. package/es/ele-card/style/index.scss +0 -125
  248. package/es/ele-check-card/components/card-item.d.ts +0 -37
  249. package/es/ele-check-card/components/card-item.js +0 -50
  250. package/es/ele-check-card/props.d.ts +0 -49
  251. package/es/ele-check-card/props.js +0 -43
  252. package/es/ele-check-card/style/css-var.scss +0 -8
  253. package/es/ele-check-card/style/index.js +0 -3
  254. package/es/ele-check-card/style/index.scss +0 -72
  255. package/es/ele-check-card/types.d.ts +0 -37
  256. package/es/ele-config-provider/components/receiver-view.d.ts +0 -71
  257. package/es/ele-config-provider/components/receiver-view.js +0 -38
  258. package/es/ele-config-provider/props.d.ts +0 -26
  259. package/es/ele-config-provider/types.d.ts +0 -103
  260. package/es/ele-cropper/index.d.ts +0 -2824
  261. package/es/ele-cropper/index.js +0 -212
  262. package/es/ele-cropper/props.d.ts +0 -68
  263. package/es/ele-cropper/props.js +0 -61
  264. package/es/ele-cropper/style/index.js +0 -6
  265. package/es/ele-cropper-modal/style/index.js +0 -2
  266. package/es/ele-dashboard/style/index.js +0 -1
  267. package/es/ele-dashboard/types.d.ts +0 -4
  268. package/es/ele-data-table/props.d.ts +0 -272
  269. package/es/ele-data-table/props.js +0 -93
  270. package/es/ele-data-table/style/index.js +0 -4
  271. package/es/ele-data-table/types.d.ts +0 -253
  272. package/es/ele-dialog/index.d.ts +0 -1074
  273. package/es/ele-dialog/index.js +0 -342
  274. package/es/ele-dialog/util.d.ts +0 -52
  275. package/es/ele-dialog/util.js +0 -293
  276. package/es/ele-dot/props.d.ts +0 -25
  277. package/es/ele-dot/props.js +0 -21
  278. package/es/ele-dot/style/index.d.ts +0 -1
  279. package/es/ele-dot/style/index.js +0 -1
  280. package/es/ele-drawer/index.d.ts +0 -1170
  281. package/es/ele-drawer/index.js +0 -202
  282. package/es/ele-drawer/props.d.ts +0 -184
  283. package/es/ele-drawer/props.js +0 -19
  284. package/es/ele-drawer/style/index.d.ts +0 -1
  285. package/es/ele-drawer/style/index.js +0 -3
  286. package/es/ele-drawer/style/index.scss +0 -96
  287. package/es/ele-dropdown/style/css-var.scss +0 -8
  288. package/es/ele-dropdown/types.d.ts +0 -22
  289. package/es/ele-edit-tag/style/index.d.ts +0 -1
  290. package/es/ele-edit-tag/style/index.js +0 -5
  291. package/es/ele-edit-tag/types.d.ts +0 -9
  292. package/es/ele-ellipsis/index.js +0 -113
  293. package/es/ele-icon-select/types.d.ts +0 -16
  294. package/es/ele-image-viewer/style/index.scss +0 -117
  295. package/es/ele-loading/props.d.ts +0 -33
  296. package/es/ele-map-picker/style/index.d.ts +0 -1
  297. package/es/ele-map-picker/style/index.js +0 -8
  298. package/es/ele-map-picker/style/index.scss +0 -296
  299. package/es/ele-menus/components/item-title.d.ts +0 -323
  300. package/es/ele-menus/components/item-title.js +0 -108
  301. package/es/ele-menus/style/css-var.scss +0 -36
  302. package/es/ele-menus/types.d.ts +0 -107
  303. package/es/ele-page/style/css-var.scss +0 -9
  304. package/es/ele-page/style/index.scss +0 -74
  305. package/es/ele-pagination/types.d.ts +0 -9
  306. package/es/ele-printer/index.d.ts +0 -111
  307. package/es/ele-printer/index.js +0 -124
  308. package/es/ele-printer/style/index.scss +0 -66
  309. package/es/ele-printer/util.d.ts +0 -25
  310. package/es/ele-printer/util.js +0 -218
  311. package/es/ele-pro-layout/components/pro-iframe.d.ts +0 -39
  312. package/es/ele-pro-layout/components/pro-iframe.js +0 -124
  313. package/es/ele-pro-layout/style/index.d.ts +0 -1
  314. package/es/ele-pro-layout/style/index.js +0 -2
  315. package/es/ele-pro-layout/style/index.scss +0 -41
  316. package/es/ele-pro-layout/util.d.ts +0 -88
  317. package/es/ele-pro-layout/util.js +0 -171
  318. package/es/ele-pro-table/components/tool-column.d.ts +0 -3722
  319. package/es/ele-pro-table/components/tool-column.js +0 -280
  320. package/es/ele-pro-table/components/tool-print-header-cell.d.ts +0 -39
  321. package/es/ele-pro-table/components/tool-print-header-cell.js +0 -92
  322. package/es/ele-pro-table/style/css-var.scss +0 -8
  323. package/es/ele-pro-table/style/index.scss +0 -326
  324. package/es/ele-pro-table/types.d.ts +0 -489
  325. package/es/ele-qr-code/components/canvas-render.d.ts +0 -67
  326. package/es/ele-qr-code/components/canvas-render.js +0 -147
  327. package/es/ele-segmented/index.d.ts +0 -485
  328. package/es/ele-segmented/style/index.d.ts +0 -1
  329. package/es/ele-split-panel/index.d.ts +0 -192
  330. package/es/ele-split-panel/index.js +0 -206
  331. package/es/ele-split-panel/props.d.ts +0 -47
  332. package/es/ele-split-panel/props.js +0 -41
  333. package/es/ele-split-panel/style/index.scss +0 -360
  334. package/es/ele-steps/style/index.d.ts +0 -1
  335. package/es/ele-steps/style/index.js +0 -3
  336. package/es/ele-steps/types.d.ts +0 -14
  337. package/es/ele-tab-tool/props.d.ts +0 -14
  338. package/es/ele-tab-tool/props.js +0 -11
  339. package/es/ele-tab-wrap/props.d.ts +0 -13
  340. package/es/ele-tab-wrap/props.js +0 -9
  341. package/es/ele-tab-wrap/style/index.d.ts +0 -0
  342. package/es/ele-tab-wrap/style/index.js +0 -1
  343. package/es/ele-table/index.d.ts +0 -28
  344. package/es/ele-table/index.js +0 -33
  345. package/es/ele-table-select/index.js +0 -424
  346. package/es/ele-table-select/style/css-var.scss +0 -8
  347. package/es/ele-test/index.js +0 -18
  348. package/es/ele-text/index.d.ts +0 -93
  349. package/es/ele-text/index.js +0 -60
  350. package/es/ele-text/style/index.d.ts +0 -1
  351. package/es/ele-toolbar/index.js +0 -105
  352. package/es/ele-tooltip/style/css-var.scss +0 -87
  353. package/es/ele-upload-list/props.d.ts +0 -81
  354. package/es/ele-upload-list/style/index.scss +0 -478
  355. package/es/ele-upload-list/types.d.ts +0 -71
  356. package/es/ele-virtual-table/components/expand-row.d.ts +0 -19
  357. package/es/ele-virtual-table/components/expand-row.js +0 -29
  358. package/es/ele-virtual-table/components/footer-row.d.ts +0 -65
  359. package/es/ele-virtual-table/components/footer-row.js +0 -115
  360. package/es/ele-virtual-table/components/header-cell.d.ts +0 -3929
  361. package/es/ele-virtual-table/index.d.ts +0 -7882
  362. package/es/ele-virtual-table/index.js +0 -1151
  363. package/es/ele-virtual-table/style/css-var.scss +0 -101
  364. package/es/ele-virtual-table/util.d.ts +0 -229
  365. package/es/ele-virtual-table/util.js +0 -590
  366. package/es/ele-watermark/index.d.ts +0 -57
  367. package/es/ele-watermark/index.js +0 -203
  368. package/es/icons/AppstoreAddOutlined.js +0 -30
  369. package/es/icons/CloudUploadOutlined.js +0 -29
  370. package/es/icons/FileOutlined.js +0 -30
  371. package/es/icons/GlobalOutlined.js +0 -26
  372. package/es/icons/LogOutlined.js +0 -30
  373. package/es/icons/MessageOutlined.js +0 -45
  374. package/es/icons/PauseFilled.js +0 -27
  375. package/es/icons/PieChartOutlined.js +0 -28
  376. package/es/icons/QuestionCircleOutlined.d.ts +0 -2
  377. package/es/icons/QuestionCircleOutlined.js +0 -35
  378. package/es/icons/ReloadOutlined.d.ts +0 -2
  379. package/es/icons/SortOutlined.d.ts +0 -2
  380. package/es/icons/StarFilled.d.ts +0 -2
  381. package/es/icons/StarFilled.js +0 -24
  382. package/es/icons/UndoOutlined.d.ts +0 -2
  383. package/es/icons/UndoOutlined.js +0 -28
  384. package/es/icons/WarningOutlined.d.ts +0 -2
  385. package/es/index.d.ts +0 -4
  386. package/es/index.js +0 -6
  387. package/es/installer.d.ts +0 -3
  388. package/es/installer.js +0 -11
  389. package/es/style/default.scss +0 -77
  390. package/es/style/index.scss +0 -3
  391. package/es/style/themes/dark-css-var.scss +0 -6
  392. package/es/utils/chart-theme-dark.d.ts +0 -373
  393. package/es/utils/chart-theme-dark.js +0 -397
  394. package/es/utils/chart-theme.d.ts +0 -368
  395. package/es/utils/chart-theme.js +0 -392
  396. package/es/utils/core.d.ts +0 -168
  397. package/es/utils/core.js +0 -318
  398. package/es/utils/message-box.d.ts +0 -25
  399. package/es/utils/message-box.js +0 -98
  400. package/es/utils/message.d.ts +0 -66
  401. package/es/utils/message.js +0 -267
  402. package/es/utils/resolvers.d.ts +0 -18
  403. package/es/utils/resolvers.js +0 -50
  404. package/es/utils/theme-util.d.ts +0 -6
  405. package/es/utils/theme-util.js +0 -42
  406. package/es/utils/validate.d.ts +0 -182
  407. package/es/utils/validate.js +0 -197
  408. package/es/yu-framework-slider-captcha-dialog/SliderCaptcha.d.ts +0 -67
  409. package/es/yu-framework-slider-captcha-dialog/SliderCaptcha.js +0 -284
  410. package/es/yu-framework-slider-captcha-dialog/style/index.scss +0 -300
  411. package/lib/core-components.cjs +0 -115
  412. package/lib/core-installer.cjs +0 -28
  413. package/lib/core.d.ts +0 -3
  414. package/lib/ele-admin-layout/components/layout-tabs.d.ts +0 -5646
  415. package/lib/ele-admin-layout/components/layout-tool.d.ts +0 -2
  416. package/lib/ele-admin-layout/index.cjs +0 -595
  417. package/lib/ele-admin-layout/props.cjs +0 -169
  418. package/lib/ele-admin-layout/style/css-var.scss +0 -14
  419. package/lib/ele-admin-layout/style/header.scss +0 -192
  420. package/lib/ele-admin-layout/style/index.d.ts +0 -1
  421. package/lib/ele-admin-layout/types.d.ts +0 -54
  422. package/lib/ele-alert/index.d.ts +0 -131
  423. package/lib/ele-alert/props.d.ts +0 -58
  424. package/lib/ele-alert/style/css-var.scss +0 -12
  425. package/lib/ele-app/components/message-body.cjs +0 -97
  426. package/lib/ele-app/el.d.ts +0 -304
  427. package/lib/ele-app/index.cjs +0 -12
  428. package/lib/ele-app/style/common/index.d.ts +0 -1
  429. package/lib/ele-app/style/index.scss +0 -4
  430. package/lib/ele-app/style/message/css-var.scss +0 -8
  431. package/lib/ele-app/style/message/index.cjs +0 -3
  432. package/lib/ele-app/style/overwrite/autocomplete/css-var.scss +0 -8
  433. package/lib/ele-app/style/overwrite/backtop/index.d.ts +0 -1
  434. package/lib/ele-app/style/overwrite/cascader/css-var.scss +0 -8
  435. package/lib/ele-app/style/overwrite/cascader/index.scss +0 -166
  436. package/lib/ele-app/style/overwrite/checkbox/index.d.ts +0 -1
  437. package/lib/ele-app/style/overwrite/date-picker/index.d.ts +0 -1
  438. package/lib/ele-app/style/overwrite/descriptions/index.scss +0 -52
  439. package/lib/ele-app/style/overwrite/input/css-var.scss +0 -34
  440. package/lib/ele-app/style/overwrite/message-box/css-var.scss +0 -8
  441. package/lib/ele-app/style/overwrite/message-box/index.d.ts +0 -1
  442. package/lib/ele-app/style/overwrite/message-box/index.scss +0 -148
  443. package/lib/ele-app/style/overwrite/popper/index.d.ts +0 -1
  444. package/lib/ele-app/style/overwrite/radio/index.scss +0 -128
  445. package/lib/ele-app/style/overwrite/select/index.d.ts +0 -1
  446. package/lib/ele-app/style/overwrite/select/index.scss +0 -203
  447. package/lib/ele-app/style/overwrite/tag/index.d.ts +0 -1
  448. package/lib/ele-app/style/overwrite/tree/index.d.ts +0 -1
  449. package/lib/ele-app/style/overwrite/tree/index.scss +0 -106
  450. package/lib/ele-app/style/overwrite/tree-select/index.scss +0 -108
  451. package/lib/ele-app/style/scrollbar/index.d.ts +0 -1
  452. package/lib/ele-app/types.d.ts +0 -48
  453. package/lib/ele-avatar-group/props.d.ts +0 -56
  454. package/lib/ele-avatar-group/style/index.cjs +0 -4
  455. package/lib/ele-avatar-group/style/index.d.ts +0 -1
  456. package/lib/ele-avatar-group/types.d.ts +0 -21
  457. package/lib/ele-backtop/props.d.ts +0 -36
  458. package/lib/ele-backtop/style/index.cjs +0 -3
  459. package/lib/ele-bar-code/index.d.ts +0 -26
  460. package/lib/ele-basic-select/index.cjs +0 -348
  461. package/lib/ele-bottom-bar/index.cjs +0 -55
  462. package/lib/ele-bottom-bar/index.d.ts +0 -15
  463. package/lib/ele-bottom-bar/props.d.ts +0 -15
  464. package/lib/ele-bottom-bar/style/css-var.scss +0 -8
  465. package/lib/ele-breadcrumb/index.d.ts +0 -278
  466. package/lib/ele-breadcrumb/props.d.ts +0 -24
  467. package/lib/ele-breadcrumb/style/index.cjs +0 -4
  468. package/lib/ele-breadcrumb/style/index.d.ts +0 -1
  469. package/lib/ele-breadcrumb/style/index.scss +0 -31
  470. package/lib/ele-card/index.d.ts +0 -106
  471. package/lib/ele-card/props.cjs +0 -36
  472. package/lib/ele-card/style/index.d.ts +0 -1
  473. package/lib/ele-card/style/index.scss +0 -125
  474. package/lib/ele-check-card/components/card-item.d.ts +0 -37
  475. package/lib/ele-check-card/index.cjs +0 -130
  476. package/lib/ele-check-card/props.d.ts +0 -49
  477. package/lib/ele-check-card/style/css-var.scss +0 -8
  478. package/lib/ele-check-card/style/index.cjs +0 -4
  479. package/lib/ele-check-card/style/index.d.ts +0 -1
  480. package/lib/ele-check-card/types.d.ts +0 -37
  481. package/lib/ele-config-provider/components/receiver-view.d.ts +0 -71
  482. package/lib/ele-config-provider/props.d.ts +0 -26
  483. package/lib/ele-config-provider/style/index.d.ts +0 -0
  484. package/lib/ele-config-provider/types.d.ts +0 -103
  485. package/lib/ele-copyable/style/index.d.ts +0 -1
  486. package/lib/ele-copyable/types.d.ts +0 -14
  487. package/lib/ele-count-up/style/index.d.ts +0 -0
  488. package/lib/ele-cropper/index.cjs +0 -211
  489. package/lib/ele-cropper/index.d.ts +0 -2824
  490. package/lib/ele-cropper/props.d.ts +0 -68
  491. package/lib/ele-cropper/style/index.cjs +0 -7
  492. package/lib/ele-cropper/style/index.d.ts +0 -1
  493. package/lib/ele-cropper/style/index.scss +0 -108
  494. package/lib/ele-cropper-modal/index.cjs +0 -93
  495. package/lib/ele-cropper-modal/props.cjs +0 -18
  496. package/lib/ele-cropper-modal/props.d.ts +0 -58
  497. package/lib/ele-cropper-modal/style/index.cjs +0 -3
  498. package/lib/ele-cropper-modal/style/index.d.ts +0 -1
  499. package/lib/ele-dashboard/index.cjs +0 -59
  500. package/lib/ele-dashboard/index.d.ts +0 -14
  501. package/lib/ele-dashboard/style/index.cjs +0 -2
  502. package/lib/ele-dashboard/style/index.d.ts +0 -1
  503. package/lib/ele-dashboard/style/index.scss +0 -79
  504. package/lib/ele-dashboard/types.d.ts +0 -4
  505. package/lib/ele-data-table/props.cjs +0 -93
  506. package/lib/ele-data-table/props.d.ts +0 -272
  507. package/lib/ele-data-table/style/css-var.scss +0 -148
  508. package/lib/ele-data-table/style/index.d.ts +0 -1
  509. package/lib/ele-data-table/types.d.ts +0 -253
  510. package/lib/ele-data-table/util.cjs +0 -395
  511. package/lib/ele-data-table/util.d.ts +0 -172
  512. package/lib/ele-dialog/index.cjs +0 -341
  513. package/lib/ele-dialog/index.d.ts +0 -1074
  514. package/lib/ele-dialog/style/index.d.ts +0 -1
  515. package/lib/ele-dialog/util.d.ts +0 -52
  516. package/lib/ele-dot/index.d.ts +0 -29
  517. package/lib/ele-dot/props.d.ts +0 -25
  518. package/lib/ele-dot/style/index.cjs +0 -2
  519. package/lib/ele-dot/style/index.d.ts +0 -1
  520. package/lib/ele-drawer/index.d.ts +0 -1170
  521. package/lib/ele-drawer/props.d.ts +0 -184
  522. package/lib/ele-drawer/style/css-var.scss +0 -8
  523. package/lib/ele-drawer/style/index.d.ts +0 -1
  524. package/lib/ele-drawer/style/index.scss +0 -96
  525. package/lib/ele-dropdown/components/dropdown-menu-item.cjs +0 -131
  526. package/lib/ele-dropdown/components/dropdown-menu-item.d.ts +0 -97
  527. package/lib/ele-dropdown/types.d.ts +0 -22
  528. package/lib/ele-edit-tag/props.d.ts +0 -55
  529. package/lib/ele-edit-tag/style/index.d.ts +0 -1
  530. package/lib/ele-edit-tag/style/index.scss +0 -123
  531. package/lib/ele-edit-tag/types.d.ts +0 -9
  532. package/lib/ele-ellipsis/props.cjs +0 -18
  533. package/lib/ele-ellipsis/style/index.cjs +0 -4
  534. package/lib/ele-icon-select/types.d.ts +0 -16
  535. package/lib/ele-image-viewer/index.d.ts +0 -635
  536. package/lib/ele-image-viewer/style/index.scss +0 -117
  537. package/lib/ele-loading/index.cjs +0 -65
  538. package/lib/ele-loading/props.d.ts +0 -33
  539. package/lib/ele-loading/types.d.ts +0 -19
  540. package/lib/ele-map-picker/style/index.d.ts +0 -1
  541. package/lib/ele-map-picker/style/index.scss +0 -296
  542. package/lib/ele-menus/components/item-title.cjs +0 -107
  543. package/lib/ele-menus/components/item-title.d.ts +0 -323
  544. package/lib/ele-menus/index.cjs +0 -345
  545. package/lib/ele-menus/props.cjs +0 -51
  546. package/lib/ele-menus/style/css-var.scss +0 -36
  547. package/lib/ele-menus/style/index.scss +0 -844
  548. package/lib/ele-menus/types.d.ts +0 -107
  549. package/lib/ele-page/index.cjs +0 -29
  550. package/lib/ele-page/props.cjs +0 -16
  551. package/lib/ele-page/style/css-var.scss +0 -9
  552. package/lib/ele-pagination/index.cjs +0 -96
  553. package/lib/ele-pagination/style/index.d.ts +0 -1
  554. package/lib/ele-pagination/types.d.ts +0 -9
  555. package/lib/ele-popover/index.cjs +0 -104
  556. package/lib/ele-printer/index.cjs +0 -123
  557. package/lib/ele-printer/index.d.ts +0 -111
  558. package/lib/ele-printer/style/index.scss +0 -66
  559. package/lib/ele-printer/util.cjs +0 -218
  560. package/lib/ele-printer/util.d.ts +0 -25
  561. package/lib/ele-pro-layout/components/pro-iframe.d.ts +0 -39
  562. package/lib/ele-pro-layout/props.cjs +0 -237
  563. package/lib/ele-pro-layout/style/index.cjs +0 -3
  564. package/lib/ele-pro-layout/style/index.d.ts +0 -1
  565. package/lib/ele-pro-layout/util.cjs +0 -171
  566. package/lib/ele-pro-layout/util.d.ts +0 -88
  567. package/lib/ele-pro-table/components/tool-column.cjs +0 -279
  568. package/lib/ele-pro-table/components/tool-column.d.ts +0 -3722
  569. package/lib/ele-pro-table/components/tool-export.cjs +0 -505
  570. package/lib/ele-pro-table/components/tool-print-body-cell.cjs +0 -131
  571. package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +0 -39
  572. package/lib/ele-pro-table/index.cjs +0 -571
  573. package/lib/ele-pro-table/style/index.d.ts +0 -1
  574. package/lib/ele-pro-table/style/index.scss +0 -326
  575. package/lib/ele-pro-table/types.d.ts +0 -489
  576. package/lib/ele-qr-code/components/canvas-render.cjs +0 -146
  577. package/lib/ele-qr-code/components/canvas-render.d.ts +0 -67
  578. package/lib/ele-qr-code/props.cjs +0 -43
  579. package/lib/ele-qr-code/qrcodegen.cjs +0 -1057
  580. package/lib/ele-qr-code/qrcodegen.d.ts +0 -95
  581. package/lib/ele-qr-code/style/index.cjs +0 -1
  582. package/lib/ele-qr-code/style/index.d.ts +0 -0
  583. package/lib/ele-qr-code/util.d.ts +0 -27
  584. package/lib/ele-segmented/index.d.ts +0 -485
  585. package/lib/ele-segmented/props.cjs +0 -25
  586. package/lib/ele-segmented/style/index.d.ts +0 -1
  587. package/lib/ele-split-panel/index.cjs +0 -205
  588. package/lib/ele-split-panel/index.d.ts +0 -192
  589. package/lib/ele-split-panel/props.cjs +0 -41
  590. package/lib/ele-split-panel/props.d.ts +0 -47
  591. package/lib/ele-split-panel/style/index.scss +0 -360
  592. package/lib/ele-steps/index.d.ts +0 -638
  593. package/lib/ele-steps/props.cjs +0 -14
  594. package/lib/ele-steps/style/index.cjs +0 -4
  595. package/lib/ele-steps/style/index.d.ts +0 -1
  596. package/lib/ele-steps/types.d.ts +0 -14
  597. package/lib/ele-tab-tool/index.cjs +0 -64
  598. package/lib/ele-tab-tool/index.d.ts +0 -75
  599. package/lib/ele-tab-tool/props.d.ts +0 -14
  600. package/lib/ele-tab-wrap/components/tab-dropdown.d.ts +0 -5006
  601. package/lib/ele-tab-wrap/props.d.ts +0 -13
  602. package/lib/ele-tab-wrap/style/index.d.ts +0 -0
  603. package/lib/ele-table/index.d.ts +0 -28
  604. package/lib/ele-table/style/index.cjs +0 -2
  605. package/lib/ele-table/style/index.d.ts +0 -1
  606. package/lib/ele-table-select/index.cjs +0 -423
  607. package/lib/ele-table-select/style/index.d.ts +0 -1
  608. package/lib/ele-tabs/props.d.ts +0 -88
  609. package/lib/ele-test/index.d.ts +0 -2
  610. package/lib/ele-test/style/index.cjs +0 -3
  611. package/lib/ele-test/style/index.d.ts +0 -1
  612. package/lib/ele-text/index.d.ts +0 -93
  613. package/lib/ele-text/props.cjs +0 -30
  614. package/lib/ele-text/style/index.d.ts +0 -1
  615. package/lib/ele-text/types.d.ts +0 -35
  616. package/lib/ele-toolbar/style/index.cjs +0 -4
  617. package/lib/ele-tooltip/style/index.d.ts +0 -1
  618. package/lib/ele-tour/style/index.cjs +0 -4
  619. package/lib/ele-tour/types.d.ts +0 -42
  620. package/lib/ele-tour/util.d.ts +0 -20
  621. package/lib/ele-tree-select/index.cjs +0 -459
  622. package/lib/ele-tree-select/style/css-var.scss +0 -8
  623. package/lib/ele-tree-select/style/index.cjs +0 -4
  624. package/lib/ele-tree-select/style/index.d.ts +0 -1
  625. package/lib/ele-upload-list/components/list-item.cjs +0 -232
  626. package/lib/ele-upload-list/components/list-item.d.ts +0 -902
  627. package/lib/ele-upload-list/props.d.ts +0 -81
  628. package/lib/ele-upload-list/types.d.ts +0 -71
  629. package/lib/ele-virtual-table/components/body-row.cjs +0 -210
  630. package/lib/ele-virtual-table/components/body-row.d.ts +0 -984
  631. package/lib/ele-virtual-table/components/expand-row.d.ts +0 -19
  632. package/lib/ele-virtual-table/components/footer-row.d.ts +0 -65
  633. package/lib/ele-virtual-table/components/header-cell.d.ts +0 -3929
  634. package/lib/ele-virtual-table/index.d.ts +0 -7882
  635. package/lib/ele-virtual-table/util.d.ts +0 -229
  636. package/lib/ele-watermark/index.d.ts +0 -57
  637. package/lib/ele-watermark/types.d.ts +0 -39
  638. package/lib/ele-xg-player/index.cjs +0 -61
  639. package/lib/ele-xg-player/index.d.ts +0 -22
  640. package/lib/ele-xg-player/style/index.d.ts +0 -1
  641. package/lib/icons/ApplicationOutlined.cjs +0 -23
  642. package/lib/icons/AppstoreAddOutlined.d.ts +0 -2
  643. package/lib/icons/AppstoreOutlined.d.ts +0 -2
  644. package/lib/icons/ArrowLeft.cjs +0 -28
  645. package/lib/icons/ArrowLeft.d.ts +0 -2
  646. package/lib/icons/ArrowLeftOutlined.d.ts +0 -2
  647. package/lib/icons/ArrowRight.cjs +0 -28
  648. package/lib/icons/ArrowRight.d.ts +0 -2
  649. package/lib/icons/ArrowRightOutlined.d.ts +0 -2
  650. package/lib/icons/ArrowUp.cjs +0 -28
  651. package/lib/icons/ArrowUp.d.ts +0 -2
  652. package/lib/icons/ArrowUpOutlined.d.ts +0 -2
  653. package/lib/icons/BellOutlined.cjs +0 -26
  654. package/lib/icons/BellOutlined.d.ts +0 -2
  655. package/lib/icons/BookOutlined.d.ts +0 -2
  656. package/lib/icons/CaretDownFilled.d.ts +0 -2
  657. package/lib/icons/CaretUpFilled.d.ts +0 -2
  658. package/lib/icons/CheckOutlined.d.ts +0 -2
  659. package/lib/icons/ClockCircleOutlined.d.ts +0 -2
  660. package/lib/icons/CloudUploadOutlined.cjs +0 -28
  661. package/lib/icons/CloudUploadOutlined.d.ts +0 -2
  662. package/lib/icons/ClusterOutlined.d.ts +0 -2
  663. package/lib/icons/CodeOutlined.d.ts +0 -2
  664. package/lib/icons/CompassOutlined.d.ts +0 -2
  665. package/lib/icons/ConnectionOutlined.d.ts +0 -2
  666. package/lib/icons/ControlOutlined.cjs +0 -28
  667. package/lib/icons/ControlOutlined.d.ts +0 -2
  668. package/lib/icons/CopyOutlined.cjs +0 -29
  669. package/lib/icons/CornerRightFilled.d.ts +0 -2
  670. package/lib/icons/DashboardOutlined.d.ts +0 -2
  671. package/lib/icons/DesktopOutlined.d.ts +0 -2
  672. package/lib/icons/DragOutlined.d.ts +0 -2
  673. package/lib/icons/EditOutlined.d.ts +0 -2
  674. package/lib/icons/EnvironmentOutlined.d.ts +0 -2
  675. package/lib/icons/FileOutlined.d.ts +0 -2
  676. package/lib/icons/FilterFilled.d.ts +0 -2
  677. package/lib/icons/FundOutlined.cjs +0 -27
  678. package/lib/icons/GlobalOutlined.d.ts +0 -2
  679. package/lib/icons/HomeOutlined.d.ts +0 -2
  680. package/lib/icons/LoadingDotOutlined.cjs +0 -26
  681. package/lib/icons/LoadingDotOutlined.d.ts +0 -2
  682. package/lib/icons/LoadingOutlined.cjs +0 -26
  683. package/lib/icons/LoadingOutlined.d.ts +0 -2
  684. package/lib/icons/LockOutlined.cjs +0 -28
  685. package/lib/icons/LockOutlined.d.ts +0 -2
  686. package/lib/icons/LogOutlined.d.ts +0 -2
  687. package/lib/icons/LogoutOutlined.cjs +0 -27
  688. package/lib/icons/MailOutlined.d.ts +0 -2
  689. package/lib/icons/MenuFoldOutlined.cjs +0 -25
  690. package/lib/icons/MenuFoldOutlined.d.ts +0 -2
  691. package/lib/icons/MenuOutlined.d.ts +0 -2
  692. package/lib/icons/MenuUnfoldOutlined.cjs +0 -25
  693. package/lib/icons/MenuUnfoldOutlined.d.ts +0 -2
  694. package/lib/icons/MessageOutlined.d.ts +0 -2
  695. package/lib/icons/MinusCircleOutlined.cjs +0 -27
  696. package/lib/icons/MinusCircleOutlined.d.ts +0 -2
  697. package/lib/icons/MobileOutlined.cjs +0 -33
  698. package/lib/icons/MoonOutlined.cjs +0 -26
  699. package/lib/icons/MoonOutlined.d.ts +0 -2
  700. package/lib/icons/MoreOutlined.d.ts +0 -2
  701. package/lib/icons/PauseFilled.d.ts +0 -2
  702. package/lib/icons/PieChartOutlined.d.ts +0 -2
  703. package/lib/icons/PlusCircleOutlined.cjs +0 -27
  704. package/lib/icons/PlusOutlined.d.ts +0 -2
  705. package/lib/icons/ProtectOutlined.d.ts +0 -2
  706. package/lib/icons/QuestionCircleOutlined.cjs +0 -34
  707. package/lib/icons/QuestionCircleOutlined.d.ts +0 -2
  708. package/lib/icons/ReloadOutlined.d.ts +0 -2
  709. package/lib/icons/ResizeOutlined.cjs +0 -26
  710. package/lib/icons/SortOutlined.d.ts +0 -2
  711. package/lib/icons/StarFilled.d.ts +0 -2
  712. package/lib/icons/StepForwardFilled.d.ts +0 -2
  713. package/lib/icons/TimerOutlined.cjs +0 -27
  714. package/lib/icons/UndoOutlined.d.ts +0 -2
  715. package/lib/icons/UnlockOutlined.d.ts +0 -2
  716. package/lib/icons/VerticalLeftOutlined.d.ts +0 -2
  717. package/lib/icons/WarningOutlined.d.ts +0 -2
  718. package/lib/icons/ZoomOutOutlined.d.ts +0 -2
  719. package/lib/icons/index.cjs +0 -236
  720. package/lib/index.cjs +0 -21
  721. package/lib/index.d.ts +0 -4
  722. package/lib/installer.d.ts +0 -3
  723. package/lib/lang/en_US.cjs +0 -84
  724. package/lib/lang/en_US.d.ts +0 -4
  725. package/lib/lang/zh_CN.d.ts +0 -4
  726. package/lib/style/default.scss +0 -77
  727. package/lib/style/index.scss +0 -3
  728. package/lib/style/themes/dark-css-var.scss +0 -6
  729. package/lib/style/themes/theme-util.scss +0 -74
  730. package/lib/style/util.scss +0 -59
  731. package/lib/utils/chart-theme-dark.cjs +0 -397
  732. package/lib/utils/chart-theme-dark.d.ts +0 -373
  733. package/lib/utils/chart-theme.cjs +0 -392
  734. package/lib/utils/chart-theme.d.ts +0 -368
  735. package/lib/utils/core.cjs +0 -318
  736. package/lib/utils/core.d.ts +0 -168
  737. package/lib/utils/hook.cjs +0 -264
  738. package/lib/utils/hook.d.ts +0 -113
  739. package/lib/utils/menu-util.cjs +0 -78
  740. package/lib/utils/menu-util.d.ts +0 -14
  741. package/lib/utils/message-box.cjs +0 -98
  742. package/lib/utils/message-box.d.ts +0 -25
  743. package/lib/utils/message.cjs +0 -267
  744. package/lib/utils/message.d.ts +0 -66
  745. package/lib/utils/resolvers.cjs +0 -50
  746. package/lib/utils/resolvers.d.ts +0 -18
  747. package/lib/utils/theme-util.cjs +0 -42
  748. package/lib/utils/theme-util.d.ts +0 -6
  749. package/lib/utils/validate.d.ts +0 -182
  750. package/lib/yu-framework-attachment-image-upload/index.cjs +0 -163
  751. package/lib/yu-framework-slider-captcha-dialog/SliderCaptcha.cjs +0 -283
  752. package/lib/yu-framework-slider-captcha-dialog/SliderCaptcha.d.ts +0 -67
  753. package/lib/yu-framework-slider-captcha-dialog/index.cjs +0 -63
  754. package/lib/yu-framework-slider-captcha-dialog/index.d.ts +0 -14
  755. /package/es/{ele-app/style/common → ele-alert/style}/index.d.ts +0 -0
  756. /package/es/{ele-app/style/common → ele-alert/style}/index.js +0 -0
  757. /package/{lib → es}/ele-app/style/common/index.scss +0 -0
  758. /package/es/ele-app/style/overwrite/{backtop → autocomplete}/index.d.ts +0 -0
  759. /package/es/ele-app/style/overwrite/{backtop → autocomplete}/index.js +0 -0
  760. /package/{lib → es}/ele-app/style/overwrite/descriptions/css-var.scss +0 -0
  761. /package/es/ele-app/style/overwrite/{popper → input}/index.d.ts +0 -0
  762. /package/es/ele-app/style/overwrite/{popper → input}/index.js +0 -0
  763. /package/{lib → es}/ele-app/style/overwrite/notification/index.scss +0 -0
  764. /package/{lib → es}/ele-app/style/overwrite/tag/index.scss +0 -0
  765. /package/es/ele-app/style/overwrite/{tree → tree-select}/index.d.ts +0 -0
  766. /package/es/ele-app/style/overwrite/{tree → tree-select}/index.js +0 -0
  767. /package/es/{ele-avatar-group → ele-backtop}/style/index.d.ts +0 -0
  768. /package/es/{ele-text → ele-backtop}/style/index.js +0 -0
  769. /package/es/{ele-qr-code → ele-bar-code}/style/index.d.ts +0 -0
  770. /package/es/{ele-qr-code → ele-bar-code}/style/index.js +0 -0
  771. /package/{lib → es}/ele-dialog/style/index.scss +0 -0
  772. /package/es/{ele-breadcrumb → ele-ellipsis}/style/index.d.ts +0 -0
  773. /package/es/{ele-check-card → ele-icon-select}/style/index.d.ts +0 -0
  774. /package/es/{ele-copyable → ele-loading}/style/index.d.ts +0 -0
  775. /package/{lib → es}/ele-loading/style/index.scss +0 -0
  776. /package/es/{ele-cropper-modal → ele-popconfirm}/style/index.d.ts +0 -0
  777. /package/es/{ele-cropper → ele-popover}/style/index.d.ts +0 -0
  778. /package/es/{ele-dashboard → ele-split-panel}/style/index.d.ts +0 -0
  779. /package/es/{ele-data-table → ele-tabs}/style/index.d.ts +0 -0
  780. /package/{lib → es}/ele-tool/style/css-var.scss +0 -0
  781. /package/{lib → es}/ele-tree-select/style/index.scss +0 -0
  782. /package/es/{ele-dialog → ele-virtual-table}/style/index.d.ts +0 -0
  783. /package/es/{ele-test/index.d.ts → icons/CalendarOutlined.d.ts} +0 -0
  784. /package/es/icons/{AppstoreAddOutlined.d.ts → CityOutlined.d.ts} +0 -0
  785. /package/es/icons/{ArrowLeft.d.ts → CloseOutlined.d.ts} +0 -0
  786. /package/es/icons/{ArrowLeftOutlined.d.ts → CompressOutlined.d.ts} +0 -0
  787. /package/es/icons/{ArrowRight.d.ts → CornerLeftFilled.d.ts} +0 -0
  788. /package/es/icons/{BellOutlined.d.ts → CpuOutlined.d.ts} +0 -0
  789. /package/es/icons/{BookOutlined.d.ts → DeleteOutlined.d.ts} +0 -0
  790. /package/es/icons/{CheckOutlined.d.ts → FolderAddOutlined.d.ts} +0 -0
  791. /package/es/icons/{ClockCircleOutlined.d.ts → FormOutlined.d.ts} +0 -0
  792. /package/es/icons/{CloudUploadOutlined.d.ts → FullscreenOutlined.d.ts} +0 -0
  793. /package/es/icons/{ClusterOutlined.d.ts → HolderOutlined.d.ts} +0 -0
  794. /package/es/icons/{CompassOutlined.d.ts → LinkOutlined.d.ts} +0 -0
  795. /package/es/icons/{CornerRightFilled.d.ts → LogoutOutlined.d.ts} +0 -0
  796. /package/es/icons/{DesktopOutlined.d.ts → PlayFilled.d.ts} +0 -0
  797. /package/es/icons/{DragOutlined.d.ts → PlusCircleOutlined.d.ts} +0 -0
  798. /package/es/icons/{FileOutlined.d.ts → SettingOutlined.d.ts} +0 -0
  799. /package/es/icons/{FilterFilled.d.ts → SliderArrowStatic.d.ts} +0 -0
  800. /package/es/icons/{GlobalOutlined.d.ts → StepBackwardFilled.d.ts} +0 -0
  801. /package/es/icons/{LogOutlined.d.ts → SunOutlined.d.ts} +0 -0
  802. /package/es/icons/{MailOutlined.d.ts → SwapOutlined.d.ts} +0 -0
  803. /package/es/icons/{MenuOutlined.d.ts → UploadOutlined.d.ts} +0 -0
  804. /package/es/icons/{MessageOutlined.d.ts → UserOutlined.d.ts} +0 -0
  805. /package/es/icons/{PauseFilled.d.ts → VerticalAlignMiddleOutlined.d.ts} +0 -0
  806. /package/es/icons/{PieChartOutlined.d.ts → ZoomInOutlined.d.ts} +0 -0
  807. /package/{es → lib}/ele-admin-layout/style/sidebar.scss +0 -0
  808. /package/lib/{ele-app/style/common → ele-alert/style}/index.cjs +0 -0
  809. /package/{es → lib}/ele-app/style/message/index.scss +0 -0
  810. /package/lib/ele-app/style/overwrite/{checkbox → autocomplete}/index.cjs +0 -0
  811. /package/lib/ele-app/style/overwrite/{date-picker → cascader}/index.cjs +0 -0
  812. /package/lib/ele-app/style/overwrite/{select → color-picker}/index.cjs +0 -0
  813. /package/{es → lib}/ele-app/style/overwrite/css-var.scss +0 -0
  814. /package/{es → lib}/ele-app/style/overwrite/popper/index.scss +0 -0
  815. /package/{es → lib}/ele-app/style/overwrite/tree/css-var.scss +0 -0
  816. /package/lib/{ele-bottom-bar/style → ele-app/style/overwrite/tree}/index.cjs +0 -0
  817. /package/{es → lib}/ele-data-table/style/index.scss +0 -0
  818. /package/lib/{ele-qr-code-svg → ele-tab-tool}/style/index.cjs +0 -0
@@ -1,1057 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- var qrcodegen;
6
- ((qrcodegen2) => {
7
- const _QrCode = class _QrCode {
8
- /*-- Constructor (low level) and fields --*/
9
- // Creates a new QR Code with the given version number,
10
- // error correction level, data codeword bytes, and mask number.
11
- // This is a low-level API that most users should not use directly.
12
- // A mid-level API is the encodeSegments() function.
13
- constructor(version, errorCorrectionLevel, dataCodewords, msk) {
14
- /*-- Fields --*/
15
- // The width and height of this QR Code, measured in modules, between
16
- // 21 and 177 (inclusive). This is equal to version * 4 + 17.
17
- __publicField(this, "size");
18
- // The index of the mask pattern used in this QR Code, which is between 0 and 7 (inclusive).
19
- // Even if a QR Code is created with automatic masking requested (mask = -1),
20
- // the resulting object still has a mask value between 0 and 7.
21
- __publicField(this, "mask");
22
- // The modules of this QR Code (false = light, true = dark).
23
- // Immutable after constructor finishes. Accessed through getModule().
24
- __publicField(this, "modules", []);
25
- // Indicates function modules that are not subjected to masking. Discarded when constructor finishes.
26
- __publicField(this, "isFunction", []);
27
- this.version = version;
28
- this.errorCorrectionLevel = errorCorrectionLevel;
29
- if (version < _QrCode.MIN_VERSION || version > _QrCode.MAX_VERSION)
30
- throw "Version value out of range";
31
- if (msk < -1 || msk > 7) throw "Mask value out of range";
32
- this.size = version * 4 + 17;
33
- let row = [];
34
- for (let i = 0; i < this.size; i++) row.push(false);
35
- for (let i = 0; i < this.size; i++) {
36
- this.modules.push(row.slice());
37
- this.isFunction.push(row.slice());
38
- }
39
- this.drawFunctionPatterns();
40
- const allCodewords = this.addEccAndInterleave(dataCodewords);
41
- this.drawCodewords(allCodewords);
42
- if (msk == -1) {
43
- let minPenalty = 1e9;
44
- for (let i = 0; i < 8; i++) {
45
- this.applyMask(i);
46
- this.drawFormatBits(i);
47
- const penalty = this.getPenaltyScore();
48
- if (penalty < minPenalty) {
49
- msk = i;
50
- minPenalty = penalty;
51
- }
52
- this.applyMask(i);
53
- }
54
- }
55
- assert(0 <= msk && msk <= 7);
56
- this.mask = msk;
57
- this.applyMask(msk);
58
- this.drawFormatBits(msk);
59
- this.isFunction = [];
60
- }
61
- /*-- Static factory functions (high level) --*/
62
- // Returns a QR Code representing the given Unicode text string at the given error correction level.
63
- // As a conservative upper bound, this function is guaranteed to succeed for strings that have 738 or fewer
64
- // Unicode code points (not UTF-16 code units) if the low error correction level is used. The smallest possible
65
- // QR Code version is automatically chosen for the output. The ECC level of the result may be higher than the
66
- // ecl argument if it can be done without increasing the version.
67
- static encodeText(text, ecl) {
68
- const segs = qrcodegen2.QrSegment.makeSegments(text);
69
- return _QrCode.encodeSegments(segs, ecl);
70
- }
71
- // Returns a QR Code representing the given binary data at the given error correction level.
72
- // This function always encodes using the binary segment mode, not any text mode. The maximum number of
73
- // bytes allowed is 2953. The smallest possible QR Code version is automatically chosen for the output.
74
- // The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version.
75
- static encodeBinary(data, ecl) {
76
- const seg = qrcodegen2.QrSegment.makeBytes(data);
77
- return _QrCode.encodeSegments([seg], ecl);
78
- }
79
- /*-- Static factory functions (mid level) --*/
80
- // Returns a QR Code representing the given segments with the given encoding parameters.
81
- // The smallest possible QR Code version within the given range is automatically
82
- // chosen for the output. Iff boostEcl is true, then the ECC level of the result
83
- // may be higher than the ecl argument if it can be done without increasing the
84
- // version. The mask number is either between 0 to 7 (inclusive) to force that
85
- // mask, or -1 to automatically choose an appropriate mask (which may be slow).
86
- // This function allows the user to create a custom sequence of segments that switches
87
- // between modes (such as alphanumeric and byte) to encode text in less space.
88
- // This is a mid-level API; the high-level API is encodeText() and encodeBinary().
89
- static encodeSegments(segs, ecl, minVersion = 1, maxVersion = 40, mask = -1, boostEcl = true) {
90
- if (!(_QrCode.MIN_VERSION <= minVersion && minVersion <= maxVersion && maxVersion <= _QrCode.MAX_VERSION) || mask < -1 || mask > 7)
91
- throw "Invalid value";
92
- let version;
93
- let dataUsedBits;
94
- for (version = minVersion; ; version++) {
95
- const dataCapacityBits2 = _QrCode.getNumDataCodewords(version, ecl) * 8;
96
- const usedBits = QrSegment.getTotalBits(segs, version);
97
- if (usedBits <= dataCapacityBits2) {
98
- dataUsedBits = usedBits;
99
- break;
100
- }
101
- if (version >= maxVersion)
102
- throw "Data too long";
103
- }
104
- for (const newEcl of [
105
- _QrCode.Ecc.MEDIUM,
106
- _QrCode.Ecc.QUARTILE,
107
- _QrCode.Ecc.HIGH
108
- ]) {
109
- if (boostEcl && dataUsedBits <= _QrCode.getNumDataCodewords(version, newEcl) * 8)
110
- ecl = newEcl;
111
- }
112
- let bb = [];
113
- for (const seg of segs) {
114
- appendBits(seg.mode.modeBits, 4, bb);
115
- appendBits(seg.numChars, seg.mode.numCharCountBits(version), bb);
116
- for (const b of seg.getData()) bb.push(b);
117
- }
118
- assert(bb.length == dataUsedBits);
119
- const dataCapacityBits = _QrCode.getNumDataCodewords(version, ecl) * 8;
120
- assert(bb.length <= dataCapacityBits);
121
- appendBits(0, Math.min(4, dataCapacityBits - bb.length), bb);
122
- appendBits(0, (8 - bb.length % 8) % 8, bb);
123
- assert(bb.length % 8 == 0);
124
- for (let padByte = 236; bb.length < dataCapacityBits; padByte ^= 236 ^ 17)
125
- appendBits(padByte, 8, bb);
126
- let dataCodewords = [];
127
- while (dataCodewords.length * 8 < bb.length) dataCodewords.push(0);
128
- bb.forEach(
129
- (b, i) => dataCodewords[i >>> 3] |= b << 7 - (i & 7)
130
- );
131
- return new _QrCode(version, ecl, dataCodewords, mask);
132
- }
133
- /*-- Accessor methods --*/
134
- // Returns the color of the module (pixel) at the given coordinates, which is false
135
- // for light or true for dark. The top left corner has the coordinates (x=0, y=0).
136
- // If the given coordinates are out of bounds, then false (light) is returned.
137
- getModule(x, y) {
138
- return 0 <= x && x < this.size && 0 <= y && y < this.size && this.modules[y][x];
139
- }
140
- // Modified to expose modules for easy access
141
- getModules() {
142
- return this.modules;
143
- }
144
- /*-- Private helper methods for constructor: Drawing function modules --*/
145
- // Reads this object's version field, and draws and marks all function modules.
146
- drawFunctionPatterns() {
147
- for (let i = 0; i < this.size; i++) {
148
- this.setFunctionModule(6, i, i % 2 == 0);
149
- this.setFunctionModule(i, 6, i % 2 == 0);
150
- }
151
- this.drawFinderPattern(3, 3);
152
- this.drawFinderPattern(this.size - 4, 3);
153
- this.drawFinderPattern(3, this.size - 4);
154
- const alignPatPos = this.getAlignmentPatternPositions();
155
- const numAlign = alignPatPos.length;
156
- for (let i = 0; i < numAlign; i++) {
157
- for (let j = 0; j < numAlign; j++) {
158
- if (!(i == 0 && j == 0 || i == 0 && j == numAlign - 1 || i == numAlign - 1 && j == 0))
159
- this.drawAlignmentPattern(alignPatPos[i], alignPatPos[j]);
160
- }
161
- }
162
- this.drawFormatBits(0);
163
- this.drawVersion();
164
- }
165
- // Draws two copies of the format bits (with its own error correction code)
166
- // based on the given mask and this object's error correction level field.
167
- drawFormatBits(mask) {
168
- const data = this.errorCorrectionLevel.formatBits << 3 | mask;
169
- let rem = data;
170
- for (let i = 0; i < 10; i++) rem = rem << 1 ^ (rem >>> 9) * 1335;
171
- const bits = (data << 10 | rem) ^ 21522;
172
- assert(bits >>> 15 == 0);
173
- for (let i = 0; i <= 5; i++)
174
- this.setFunctionModule(8, i, getBit(bits, i));
175
- this.setFunctionModule(8, 7, getBit(bits, 6));
176
- this.setFunctionModule(8, 8, getBit(bits, 7));
177
- this.setFunctionModule(7, 8, getBit(bits, 8));
178
- for (let i = 9; i < 15; i++)
179
- this.setFunctionModule(14 - i, 8, getBit(bits, i));
180
- for (let i = 0; i < 8; i++)
181
- this.setFunctionModule(this.size - 1 - i, 8, getBit(bits, i));
182
- for (let i = 8; i < 15; i++)
183
- this.setFunctionModule(8, this.size - 15 + i, getBit(bits, i));
184
- this.setFunctionModule(8, this.size - 8, true);
185
- }
186
- // Draws two copies of the version bits (with its own error correction code),
187
- // based on this object's version field, iff 7 <= version <= 40.
188
- drawVersion() {
189
- if (this.version < 7) return;
190
- let rem = this.version;
191
- for (let i = 0; i < 12; i++) rem = rem << 1 ^ (rem >>> 11) * 7973;
192
- const bits = this.version << 12 | rem;
193
- assert(bits >>> 18 == 0);
194
- for (let i = 0; i < 18; i++) {
195
- const color = getBit(bits, i);
196
- const a = this.size - 11 + i % 3;
197
- const b = Math.floor(i / 3);
198
- this.setFunctionModule(a, b, color);
199
- this.setFunctionModule(b, a, color);
200
- }
201
- }
202
- // Draws a 9*9 finder pattern including the border separator,
203
- // with the center module at (x, y). Modules can be out of bounds.
204
- drawFinderPattern(x, y) {
205
- for (let dy = -4; dy <= 4; dy++) {
206
- for (let dx = -4; dx <= 4; dx++) {
207
- const dist = Math.max(Math.abs(dx), Math.abs(dy));
208
- const xx = x + dx;
209
- const yy = y + dy;
210
- if (0 <= xx && xx < this.size && 0 <= yy && yy < this.size)
211
- this.setFunctionModule(xx, yy, dist != 2 && dist != 4);
212
- }
213
- }
214
- }
215
- // Draws a 5*5 alignment pattern, with the center module
216
- // at (x, y). All modules must be in bounds.
217
- drawAlignmentPattern(x, y) {
218
- for (let dy = -2; dy <= 2; dy++) {
219
- for (let dx = -2; dx <= 2; dx++)
220
- this.setFunctionModule(
221
- x + dx,
222
- y + dy,
223
- Math.max(Math.abs(dx), Math.abs(dy)) != 1
224
- );
225
- }
226
- }
227
- // Sets the color of a module and marks it as a function module.
228
- // Only used by the constructor. Coordinates must be in bounds.
229
- setFunctionModule(x, y, isDark) {
230
- this.modules[y][x] = isDark;
231
- this.isFunction[y][x] = true;
232
- }
233
- /*-- Private helper methods for constructor: Codewords and masking --*/
234
- // Returns a new byte string representing the given data with the appropriate error correction
235
- // codewords appended to it, based on this object's version and error correction level.
236
- addEccAndInterleave(data) {
237
- const ver = this.version;
238
- const ecl = this.errorCorrectionLevel;
239
- if (data.length != _QrCode.getNumDataCodewords(ver, ecl))
240
- throw "Invalid argument";
241
- const numBlocks = _QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];
242
- const blockEccLen = _QrCode.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver];
243
- const rawCodewords = Math.floor(
244
- _QrCode.getNumRawDataModules(ver) / 8
245
- );
246
- const numShortBlocks = numBlocks - rawCodewords % numBlocks;
247
- const shortBlockLen = Math.floor(rawCodewords / numBlocks);
248
- let blocks = [];
249
- const rsDiv = _QrCode.reedSolomonComputeDivisor(blockEccLen);
250
- for (let i = 0, k = 0; i < numBlocks; i++) {
251
- let dat = data.slice(
252
- k,
253
- k + shortBlockLen - blockEccLen + (i < numShortBlocks ? 0 : 1)
254
- );
255
- k += dat.length;
256
- const ecc = _QrCode.reedSolomonComputeRemainder(dat, rsDiv);
257
- if (i < numShortBlocks) dat.push(0);
258
- blocks.push(dat.concat(ecc));
259
- }
260
- let result = [];
261
- for (let i = 0; i < blocks[0].length; i++) {
262
- blocks.forEach((block, j) => {
263
- if (i != shortBlockLen - blockEccLen || j >= numShortBlocks)
264
- result.push(block[i]);
265
- });
266
- }
267
- assert(result.length == rawCodewords);
268
- return result;
269
- }
270
- // Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
271
- // data area of this QR Code. Function modules need to be marked off before this is called.
272
- drawCodewords(data) {
273
- if (data.length != Math.floor(_QrCode.getNumRawDataModules(this.version) / 8))
274
- throw "Invalid argument";
275
- let i = 0;
276
- for (let right = this.size - 1; right >= 1; right -= 2) {
277
- if (right == 6) right = 5;
278
- for (let vert = 0; vert < this.size; vert++) {
279
- for (let j = 0; j < 2; j++) {
280
- const x = right - j;
281
- const upward = (right + 1 & 2) == 0;
282
- const y = upward ? this.size - 1 - vert : vert;
283
- if (!this.isFunction[y][x] && i < data.length * 8) {
284
- this.modules[y][x] = getBit(data[i >>> 3], 7 - (i & 7));
285
- i++;
286
- }
287
- }
288
- }
289
- }
290
- assert(i == data.length * 8);
291
- }
292
- // XORs the codeword modules in this QR Code with the given mask pattern.
293
- // The function modules must be marked and the codeword bits must be drawn
294
- // before masking. Due to the arithmetic of XOR, calling applyMask() with
295
- // the same mask value a second time will undo the mask. A final well-formed
296
- // QR Code needs exactly one (not zero, two, etc.) mask applied.
297
- applyMask(mask) {
298
- if (mask < 0 || mask > 7) throw "Mask value out of range";
299
- for (let y = 0; y < this.size; y++) {
300
- for (let x = 0; x < this.size; x++) {
301
- let invert;
302
- switch (mask) {
303
- case 0:
304
- invert = (x + y) % 2 == 0;
305
- break;
306
- case 1:
307
- invert = y % 2 == 0;
308
- break;
309
- case 2:
310
- invert = x % 3 == 0;
311
- break;
312
- case 3:
313
- invert = (x + y) % 3 == 0;
314
- break;
315
- case 4:
316
- invert = (Math.floor(x / 3) + Math.floor(y / 2)) % 2 == 0;
317
- break;
318
- case 5:
319
- invert = x * y % 2 + x * y % 3 == 0;
320
- break;
321
- case 6:
322
- invert = (x * y % 2 + x * y % 3) % 2 == 0;
323
- break;
324
- case 7:
325
- invert = ((x + y) % 2 + x * y % 3) % 2 == 0;
326
- break;
327
- default:
328
- throw "Unreachable";
329
- }
330
- if (!this.isFunction[y][x] && invert)
331
- this.modules[y][x] = !this.modules[y][x];
332
- }
333
- }
334
- }
335
- // Calculates and returns the penalty score based on state of this QR Code's current modules.
336
- // This is used by the automatic mask choice algorithm to find the mask pattern that yields the lowest score.
337
- getPenaltyScore() {
338
- let result = 0;
339
- for (let y = 0; y < this.size; y++) {
340
- let runColor = false;
341
- let runX = 0;
342
- let runHistory = [0, 0, 0, 0, 0, 0, 0];
343
- for (let x = 0; x < this.size; x++) {
344
- if (this.modules[y][x] == runColor) {
345
- runX++;
346
- if (runX == 5) result += _QrCode.PENALTY_N1;
347
- else if (runX > 5) result++;
348
- } else {
349
- this.finderPenaltyAddHistory(runX, runHistory);
350
- if (!runColor)
351
- result += this.finderPenaltyCountPatterns(runHistory) * _QrCode.PENALTY_N3;
352
- runColor = this.modules[y][x];
353
- runX = 1;
354
- }
355
- }
356
- result += this.finderPenaltyTerminateAndCount(runColor, runX, runHistory) * _QrCode.PENALTY_N3;
357
- }
358
- for (let x = 0; x < this.size; x++) {
359
- let runColor = false;
360
- let runY = 0;
361
- let runHistory = [0, 0, 0, 0, 0, 0, 0];
362
- for (let y = 0; y < this.size; y++) {
363
- if (this.modules[y][x] == runColor) {
364
- runY++;
365
- if (runY == 5) result += _QrCode.PENALTY_N1;
366
- else if (runY > 5) result++;
367
- } else {
368
- this.finderPenaltyAddHistory(runY, runHistory);
369
- if (!runColor)
370
- result += this.finderPenaltyCountPatterns(runHistory) * _QrCode.PENALTY_N3;
371
- runColor = this.modules[y][x];
372
- runY = 1;
373
- }
374
- }
375
- result += this.finderPenaltyTerminateAndCount(runColor, runY, runHistory) * _QrCode.PENALTY_N3;
376
- }
377
- for (let y = 0; y < this.size - 1; y++) {
378
- for (let x = 0; x < this.size - 1; x++) {
379
- const color = this.modules[y][x];
380
- if (color == this.modules[y][x + 1] && color == this.modules[y + 1][x] && color == this.modules[y + 1][x + 1])
381
- result += _QrCode.PENALTY_N2;
382
- }
383
- }
384
- let dark = 0;
385
- for (const row of this.modules)
386
- dark = row.reduce((sum, color) => sum + (color ? 1 : 0), dark);
387
- const total = this.size * this.size;
388
- const k = Math.ceil(Math.abs(dark * 20 - total * 10) / total) - 1;
389
- assert(0 <= k && k <= 9);
390
- result += k * _QrCode.PENALTY_N4;
391
- assert(0 <= result && result <= 2568888);
392
- return result;
393
- }
394
- /*-- Private helper functions --*/
395
- // Returns an ascending list of positions of alignment patterns for this version number.
396
- // Each position is in the range [0,177), and are used on both the x and y axes.
397
- // This could be implemented as lookup table of 40 variable-length lists of integers.
398
- getAlignmentPatternPositions() {
399
- if (this.version == 1) return [];
400
- else {
401
- const numAlign = Math.floor(this.version / 7) + 2;
402
- const step = this.version == 32 ? 26 : Math.ceil((this.version * 4 + 4) / (numAlign * 2 - 2)) * 2;
403
- let result = [6];
404
- for (let pos = this.size - 7; result.length < numAlign; pos -= step)
405
- result.splice(1, 0, pos);
406
- return result;
407
- }
408
- }
409
- // Returns the number of data bits that can be stored in a QR Code of the given version number, after
410
- // all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8.
411
- // The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
412
- static getNumRawDataModules(ver) {
413
- if (ver < _QrCode.MIN_VERSION || ver > _QrCode.MAX_VERSION)
414
- throw "Version number out of range";
415
- let result = (16 * ver + 128) * ver + 64;
416
- if (ver >= 2) {
417
- const numAlign = Math.floor(ver / 7) + 2;
418
- result -= (25 * numAlign - 10) * numAlign - 55;
419
- if (ver >= 7) result -= 36;
420
- }
421
- assert(208 <= result && result <= 29648);
422
- return result;
423
- }
424
- // Returns the number of 8-bit data (i.e. not error correction) codewords contained in any
425
- // QR Code of the given version number and error correction level, with remainder bits discarded.
426
- // This stateless pure function could be implemented as a (40*4)-cell lookup table.
427
- static getNumDataCodewords(ver, ecl) {
428
- return Math.floor(_QrCode.getNumRawDataModules(ver) / 8) - _QrCode.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver] * _QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];
429
- }
430
- // Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be
431
- // implemented as a lookup table over all possible parameter values, instead of as an algorithm.
432
- static reedSolomonComputeDivisor(degree) {
433
- if (degree < 1 || degree > 255) throw "Degree out of range";
434
- let result = [];
435
- for (let i = 0; i < degree - 1; i++) result.push(0);
436
- result.push(1);
437
- let root = 1;
438
- for (let i = 0; i < degree; i++) {
439
- for (let j = 0; j < result.length; j++) {
440
- result[j] = _QrCode.reedSolomonMultiply(result[j], root);
441
- if (j + 1 < result.length) result[j] ^= result[j + 1];
442
- }
443
- root = _QrCode.reedSolomonMultiply(root, 2);
444
- }
445
- return result;
446
- }
447
- // Returns the Reed-Solomon error correction codeword for the given data and divisor polynomials.
448
- static reedSolomonComputeRemainder(data, divisor) {
449
- let result = divisor.map((_) => 0);
450
- for (const b of data) {
451
- const factor = b ^ result.shift();
452
- result.push(0);
453
- divisor.forEach(
454
- (coef, i) => result[i] ^= _QrCode.reedSolomonMultiply(coef, factor)
455
- );
456
- }
457
- return result;
458
- }
459
- // Returns the product of the two given field elements modulo GF(2^8/0x11D). The arguments and result
460
- // are unsigned 8-bit integers. This could be implemented as a lookup table of 256*256 entries of uint8.
461
- static reedSolomonMultiply(x, y) {
462
- if (x >>> 8 != 0 || y >>> 8 != 0) throw "Byte out of range";
463
- let z = 0;
464
- for (let i = 7; i >= 0; i--) {
465
- z = z << 1 ^ (z >>> 7) * 285;
466
- z ^= (y >>> i & 1) * x;
467
- }
468
- assert(z >>> 8 == 0);
469
- return z;
470
- }
471
- // Can only be called immediately after a light run is added, and
472
- // returns either 0, 1, or 2. A helper function for getPenaltyScore().
473
- finderPenaltyCountPatterns(runHistory) {
474
- const n = runHistory[1];
475
- assert(n <= this.size * 3);
476
- const core = n > 0 && runHistory[2] == n && runHistory[3] == n * 3 && runHistory[4] == n && runHistory[5] == n;
477
- return (core && runHistory[0] >= n * 4 && runHistory[6] >= n ? 1 : 0) + (core && runHistory[6] >= n * 4 && runHistory[0] >= n ? 1 : 0);
478
- }
479
- // Must be called at the end of a line (row or column) of modules. A helper function for getPenaltyScore().
480
- finderPenaltyTerminateAndCount(currentRunColor, currentRunLength, runHistory) {
481
- if (currentRunColor) {
482
- this.finderPenaltyAddHistory(currentRunLength, runHistory);
483
- currentRunLength = 0;
484
- }
485
- currentRunLength += this.size;
486
- this.finderPenaltyAddHistory(currentRunLength, runHistory);
487
- return this.finderPenaltyCountPatterns(runHistory);
488
- }
489
- // Pushes the given value to the front and drops the last value. A helper function for getPenaltyScore().
490
- finderPenaltyAddHistory(currentRunLength, runHistory) {
491
- if (runHistory[0] == 0) currentRunLength += this.size;
492
- runHistory.pop();
493
- runHistory.unshift(currentRunLength);
494
- }
495
- };
496
- /*-- Constants and tables --*/
497
- // The minimum version number supported in the QR Code Model 2 standard.
498
- __publicField(_QrCode, "MIN_VERSION", 1);
499
- // The maximum version number supported in the QR Code Model 2 standard.
500
- __publicField(_QrCode, "MAX_VERSION", 40);
501
- // For use in getPenaltyScore(), when evaluating which mask is best.
502
- __publicField(_QrCode, "PENALTY_N1", 3);
503
- __publicField(_QrCode, "PENALTY_N2", 3);
504
- __publicField(_QrCode, "PENALTY_N3", 40);
505
- __publicField(_QrCode, "PENALTY_N4", 10);
506
- __publicField(_QrCode, "ECC_CODEWORDS_PER_BLOCK", [
507
- // Version: (note that index 0 is for padding, and is set to an illegal value)
508
- //0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level
509
- [
510
- -1,
511
- 7,
512
- 10,
513
- 15,
514
- 20,
515
- 26,
516
- 18,
517
- 20,
518
- 24,
519
- 30,
520
- 18,
521
- 20,
522
- 24,
523
- 26,
524
- 30,
525
- 22,
526
- 24,
527
- 28,
528
- 30,
529
- 28,
530
- 28,
531
- 28,
532
- 28,
533
- 30,
534
- 30,
535
- 26,
536
- 28,
537
- 30,
538
- 30,
539
- 30,
540
- 30,
541
- 30,
542
- 30,
543
- 30,
544
- 30,
545
- 30,
546
- 30,
547
- 30,
548
- 30,
549
- 30,
550
- 30
551
- ],
552
- // Low
553
- [
554
- -1,
555
- 10,
556
- 16,
557
- 26,
558
- 18,
559
- 24,
560
- 16,
561
- 18,
562
- 22,
563
- 22,
564
- 26,
565
- 30,
566
- 22,
567
- 22,
568
- 24,
569
- 24,
570
- 28,
571
- 28,
572
- 26,
573
- 26,
574
- 26,
575
- 26,
576
- 28,
577
- 28,
578
- 28,
579
- 28,
580
- 28,
581
- 28,
582
- 28,
583
- 28,
584
- 28,
585
- 28,
586
- 28,
587
- 28,
588
- 28,
589
- 28,
590
- 28,
591
- 28,
592
- 28,
593
- 28,
594
- 28
595
- ],
596
- // Medium
597
- [
598
- -1,
599
- 13,
600
- 22,
601
- 18,
602
- 26,
603
- 18,
604
- 24,
605
- 18,
606
- 22,
607
- 20,
608
- 24,
609
- 28,
610
- 26,
611
- 24,
612
- 20,
613
- 30,
614
- 24,
615
- 28,
616
- 28,
617
- 26,
618
- 30,
619
- 28,
620
- 30,
621
- 30,
622
- 30,
623
- 30,
624
- 28,
625
- 30,
626
- 30,
627
- 30,
628
- 30,
629
- 30,
630
- 30,
631
- 30,
632
- 30,
633
- 30,
634
- 30,
635
- 30,
636
- 30,
637
- 30,
638
- 30
639
- ],
640
- // Quartile
641
- [
642
- -1,
643
- 17,
644
- 28,
645
- 22,
646
- 16,
647
- 22,
648
- 28,
649
- 26,
650
- 26,
651
- 24,
652
- 28,
653
- 24,
654
- 28,
655
- 22,
656
- 24,
657
- 24,
658
- 30,
659
- 28,
660
- 28,
661
- 26,
662
- 28,
663
- 30,
664
- 24,
665
- 30,
666
- 30,
667
- 30,
668
- 30,
669
- 30,
670
- 30,
671
- 30,
672
- 30,
673
- 30,
674
- 30,
675
- 30,
676
- 30,
677
- 30,
678
- 30,
679
- 30,
680
- 30,
681
- 30,
682
- 30
683
- ]
684
- // High
685
- ]);
686
- __publicField(_QrCode, "NUM_ERROR_CORRECTION_BLOCKS", [
687
- // Version: (note that index 0 is for padding, and is set to an illegal value)
688
- //0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level
689
- [
690
- -1,
691
- 1,
692
- 1,
693
- 1,
694
- 1,
695
- 1,
696
- 2,
697
- 2,
698
- 2,
699
- 2,
700
- 4,
701
- 4,
702
- 4,
703
- 4,
704
- 4,
705
- 6,
706
- 6,
707
- 6,
708
- 6,
709
- 7,
710
- 8,
711
- 8,
712
- 9,
713
- 9,
714
- 10,
715
- 12,
716
- 12,
717
- 12,
718
- 13,
719
- 14,
720
- 15,
721
- 16,
722
- 17,
723
- 18,
724
- 19,
725
- 19,
726
- 20,
727
- 21,
728
- 22,
729
- 24,
730
- 25
731
- ],
732
- // Low
733
- [
734
- -1,
735
- 1,
736
- 1,
737
- 1,
738
- 2,
739
- 2,
740
- 4,
741
- 4,
742
- 4,
743
- 5,
744
- 5,
745
- 5,
746
- 8,
747
- 9,
748
- 9,
749
- 10,
750
- 10,
751
- 11,
752
- 13,
753
- 14,
754
- 16,
755
- 17,
756
- 17,
757
- 18,
758
- 20,
759
- 21,
760
- 23,
761
- 25,
762
- 26,
763
- 28,
764
- 29,
765
- 31,
766
- 33,
767
- 35,
768
- 37,
769
- 38,
770
- 40,
771
- 43,
772
- 45,
773
- 47,
774
- 49
775
- ],
776
- // Medium
777
- [
778
- -1,
779
- 1,
780
- 1,
781
- 2,
782
- 2,
783
- 4,
784
- 4,
785
- 6,
786
- 6,
787
- 8,
788
- 8,
789
- 8,
790
- 10,
791
- 12,
792
- 16,
793
- 12,
794
- 17,
795
- 16,
796
- 18,
797
- 21,
798
- 20,
799
- 23,
800
- 23,
801
- 25,
802
- 27,
803
- 29,
804
- 34,
805
- 34,
806
- 35,
807
- 38,
808
- 40,
809
- 43,
810
- 45,
811
- 48,
812
- 51,
813
- 53,
814
- 56,
815
- 59,
816
- 62,
817
- 65,
818
- 68
819
- ],
820
- // Quartile
821
- [
822
- -1,
823
- 1,
824
- 1,
825
- 2,
826
- 4,
827
- 4,
828
- 4,
829
- 5,
830
- 6,
831
- 8,
832
- 8,
833
- 11,
834
- 11,
835
- 16,
836
- 16,
837
- 18,
838
- 16,
839
- 19,
840
- 21,
841
- 25,
842
- 25,
843
- 25,
844
- 34,
845
- 30,
846
- 32,
847
- 35,
848
- 37,
849
- 40,
850
- 42,
851
- 45,
852
- 48,
853
- 51,
854
- 54,
855
- 57,
856
- 60,
857
- 63,
858
- 66,
859
- 70,
860
- 74,
861
- 77,
862
- 81
863
- ]
864
- // High
865
- ]);
866
- let QrCode = _QrCode;
867
- qrcodegen2.QrCode = QrCode;
868
- function appendBits(val, len, bb) {
869
- if (len < 0 || len > 31 || val >>> len != 0) throw "Value out of range";
870
- for (let i = len - 1; i >= 0; i--)
871
- bb.push(val >>> i & 1);
872
- }
873
- function getBit(x, i) {
874
- return (x >>> i & 1) != 0;
875
- }
876
- function assert(cond) {
877
- if (!cond) throw "Assertion error";
878
- }
879
- const _QrSegment = class _QrSegment {
880
- /*-- Constructor (low level) and fields --*/
881
- // Creates a new QR Code segment with the given attributes and data.
882
- // The character count (numChars) must agree with the mode and the bit buffer length,
883
- // but the constraint isn't checked. The given bit buffer is cloned and stored.
884
- constructor(mode, numChars, bitData) {
885
- this.mode = mode;
886
- this.numChars = numChars;
887
- this.bitData = bitData;
888
- if (numChars < 0) throw "Invalid argument";
889
- this.bitData = bitData.slice();
890
- }
891
- /*-- Static factory functions (mid level) --*/
892
- // Returns a segment representing the given binary data encoded in
893
- // byte mode. All input byte arrays are acceptable. Any text string
894
- // can be converted to UTF-8 bytes and encoded as a byte mode segment.
895
- static makeBytes(data) {
896
- let bb = [];
897
- for (const b of data) appendBits(b, 8, bb);
898
- return new _QrSegment(_QrSegment.Mode.BYTE, data.length, bb);
899
- }
900
- // Returns a segment representing the given string of decimal digits encoded in numeric mode.
901
- static makeNumeric(digits) {
902
- if (!_QrSegment.isNumeric(digits))
903
- throw "String contains non-numeric characters";
904
- let bb = [];
905
- for (let i = 0; i < digits.length; ) {
906
- const n = Math.min(digits.length - i, 3);
907
- appendBits(Number.parseInt(digits.substr(i, n), 10), n * 3 + 1, bb);
908
- i += n;
909
- }
910
- return new _QrSegment(_QrSegment.Mode.NUMERIC, digits.length, bb);
911
- }
912
- // Returns a segment representing the given text string encoded in alphanumeric mode.
913
- // The characters allowed are: 0 to 9, A to Z (uppercase only), space,
914
- // dollar, percent, asterisk, plus, hyphen, period, slash, colon.
915
- static makeAlphanumeric(text) {
916
- if (!_QrSegment.isAlphanumeric(text))
917
- throw "String contains unencodable characters in alphanumeric mode";
918
- let bb = [];
919
- let i;
920
- for (i = 0; i + 2 <= text.length; i += 2) {
921
- let temp = _QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)) * 45;
922
- temp += _QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i + 1));
923
- appendBits(temp, 11, bb);
924
- }
925
- if (i < text.length)
926
- appendBits(
927
- _QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)),
928
- 6,
929
- bb
930
- );
931
- return new _QrSegment(_QrSegment.Mode.ALPHANUMERIC, text.length, bb);
932
- }
933
- // Returns a new mutable list of zero or more segments to represent the given Unicode text string.
934
- // The result may use various segment modes and switch modes to optimize the length of the bit stream.
935
- static makeSegments(text) {
936
- if (text == "") return [];
937
- else if (_QrSegment.isNumeric(text)) return [_QrSegment.makeNumeric(text)];
938
- else if (_QrSegment.isAlphanumeric(text))
939
- return [_QrSegment.makeAlphanumeric(text)];
940
- else return [_QrSegment.makeBytes(_QrSegment.toUtf8ByteArray(text))];
941
- }
942
- // Returns a segment representing an Extended Channel Interpretation
943
- // (ECI) designator with the given assignment value.
944
- static makeEci(assignVal) {
945
- let bb = [];
946
- if (assignVal < 0) throw "ECI assignment value out of range";
947
- else if (assignVal < 1 << 7) appendBits(assignVal, 8, bb);
948
- else if (assignVal < 1 << 14) {
949
- appendBits(2, 2, bb);
950
- appendBits(assignVal, 14, bb);
951
- } else if (assignVal < 1e6) {
952
- appendBits(6, 3, bb);
953
- appendBits(assignVal, 21, bb);
954
- } else throw "ECI assignment value out of range";
955
- return new _QrSegment(_QrSegment.Mode.ECI, 0, bb);
956
- }
957
- // Tests whether the given string can be encoded as a segment in numeric mode.
958
- // A string is encodable iff each character is in the range 0 to 9.
959
- static isNumeric(text) {
960
- return _QrSegment.NUMERIC_REGEX.test(text);
961
- }
962
- // Tests whether the given string can be encoded as a segment in alphanumeric mode.
963
- // A string is encodable iff each character is in the following set: 0 to 9, A to Z
964
- // (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
965
- static isAlphanumeric(text) {
966
- return _QrSegment.ALPHANUMERIC_REGEX.test(text);
967
- }
968
- /*-- Methods --*/
969
- // Returns a new copy of the data bits of this segment.
970
- getData() {
971
- return this.bitData.slice();
972
- }
973
- // (Package-private) Calculates and returns the number of bits needed to encode the given segments at
974
- // the given version. The result is infinity if a segment has too many characters to fit its length field.
975
- static getTotalBits(segs, version) {
976
- let result = 0;
977
- for (const seg of segs) {
978
- const ccbits = seg.mode.numCharCountBits(version);
979
- if (seg.numChars >= 1 << ccbits) return Infinity;
980
- result += 4 + ccbits + seg.bitData.length;
981
- }
982
- return result;
983
- }
984
- // Returns a new array of bytes representing the given string encoded in UTF-8.
985
- static toUtf8ByteArray(str) {
986
- str = encodeURI(str);
987
- let result = [];
988
- for (let i = 0; i < str.length; i++) {
989
- if (str.charAt(i) != "%") result.push(str.charCodeAt(i));
990
- else {
991
- result.push(Number.parseInt(str.substr(i + 1, 2), 16));
992
- i += 2;
993
- }
994
- }
995
- return result;
996
- }
997
- };
998
- /*-- Constants --*/
999
- // Describes precisely all strings that are encodable in numeric mode.
1000
- __publicField(_QrSegment, "NUMERIC_REGEX", /^[0-9]*$/);
1001
- // Describes precisely all strings that are encodable in alphanumeric mode.
1002
- __publicField(_QrSegment, "ALPHANUMERIC_REGEX", /^[A-Z0-9 $%*+.\/:-]*$/);
1003
- // The set of all legal characters in alphanumeric mode,
1004
- // where each character value maps to the index in the string.
1005
- __publicField(_QrSegment, "ALPHANUMERIC_CHARSET", "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");
1006
- let QrSegment = _QrSegment;
1007
- qrcodegen2.QrSegment = QrSegment;
1008
- })(qrcodegen || (qrcodegen = {}));
1009
- ((qrcodegen2) => {
1010
- ((QrCode2) => {
1011
- const _Ecc = class _Ecc {
1012
- // The QR Code can tolerate about 30% erroneous codewords
1013
- /*-- Constructor and fields --*/
1014
- constructor(ordinal, formatBits) {
1015
- this.ordinal = ordinal;
1016
- this.formatBits = formatBits;
1017
- }
1018
- };
1019
- /*-- Constants --*/
1020
- __publicField(_Ecc, "LOW", new _Ecc(0, 1));
1021
- // The QR Code can tolerate about 7% erroneous codewords
1022
- __publicField(_Ecc, "MEDIUM", new _Ecc(1, 0));
1023
- // The QR Code can tolerate about 15% erroneous codewords
1024
- __publicField(_Ecc, "QUARTILE", new _Ecc(2, 3));
1025
- // The QR Code can tolerate about 25% erroneous codewords
1026
- __publicField(_Ecc, "HIGH", new _Ecc(3, 2));
1027
- let Ecc = _Ecc;
1028
- QrCode2.Ecc = Ecc;
1029
- })(qrcodegen2.QrCode || (qrcodegen2.QrCode = {}));
1030
- })(qrcodegen || (qrcodegen = {}));
1031
- ((qrcodegen2) => {
1032
- ((QrSegment2) => {
1033
- const _Mode = class _Mode {
1034
- /*-- Constructor and fields --*/
1035
- constructor(modeBits, numBitsCharCount) {
1036
- this.modeBits = modeBits;
1037
- this.numBitsCharCount = numBitsCharCount;
1038
- }
1039
- /*-- Method --*/
1040
- // (Package-private) Returns the bit width of the character count field for a segment in
1041
- // this mode in a QR Code at the given version number. The result is in the range [0, 16].
1042
- numCharCountBits(ver) {
1043
- return this.numBitsCharCount[Math.floor((ver + 7) / 17)];
1044
- }
1045
- };
1046
- /*-- Constants --*/
1047
- __publicField(_Mode, "NUMERIC", new _Mode(1, [10, 12, 14]));
1048
- __publicField(_Mode, "ALPHANUMERIC", new _Mode(2, [9, 11, 13]));
1049
- __publicField(_Mode, "BYTE", new _Mode(4, [8, 16, 16]));
1050
- __publicField(_Mode, "KANJI", new _Mode(8, [8, 10, 12]));
1051
- __publicField(_Mode, "ECI", new _Mode(7, [0, 0, 0]));
1052
- let Mode = _Mode;
1053
- QrSegment2.Mode = Mode;
1054
- })(qrcodegen2.QrSegment || (qrcodegen2.QrSegment = {}));
1055
- })(qrcodegen || (qrcodegen = {}));
1056
- const qrcodegen$1 = qrcodegen;
1057
- module.exports = qrcodegen$1;