@delon/abc 12.4.0 → 13.0.0-beta.2

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 (731) hide show
  1. package/abc.d.ts +1 -0
  2. package/auto-focus/auto-focus.directive.d.ts +7 -2
  3. package/auto-focus/auto-focus.module.d.ts +5 -0
  4. package/auto-focus/autoFocus.d.ts +1 -0
  5. package/auto-focus/package.json +5 -6
  6. package/avatar-list/avatar-list-item.component.d.ts +7 -4
  7. package/avatar-list/avatar-list.component.d.ts +4 -1
  8. package/avatar-list/avatar-list.module.d.ts +9 -0
  9. package/avatar-list/avatarList.d.ts +1 -0
  10. package/avatar-list/package.json +5 -6
  11. package/avatar-list/style/index.less +6 -0
  12. package/count-down/count-down.component.d.ts +4 -1
  13. package/count-down/count-down.d.ts +1 -0
  14. package/count-down/count-down.module.d.ts +7 -0
  15. package/count-down/package.json +5 -6
  16. package/date-picker/date-picker.module.d.ts +9 -0
  17. package/date-picker/datePicker.d.ts +1 -1
  18. package/date-picker/package.json +5 -6
  19. package/date-picker/public_api.d.ts +1 -0
  20. package/date-picker/range-shortcut.component.d.ts +3 -0
  21. package/date-picker/range.directive.d.ts +3 -0
  22. package/down-file/down-file.directive.d.ts +5 -2
  23. package/down-file/down-file.module.d.ts +7 -0
  24. package/down-file/downFile.d.ts +1 -0
  25. package/down-file/package.json +5 -6
  26. package/ellipsis/ellipsis.component.d.ts +5 -2
  27. package/ellipsis/ellipsis.d.ts +1 -0
  28. package/ellipsis/ellipsis.module.d.ts +8 -0
  29. package/ellipsis/package.json +5 -6
  30. package/ellipsis/style/index.less +4 -0
  31. package/error-collect/error-collect.component.d.ts +3 -0
  32. package/error-collect/error-collect.module.d.ts +7 -0
  33. package/error-collect/errorCollect.d.ts +1 -0
  34. package/error-collect/package.json +5 -6
  35. package/error-collect/style/index.less +1 -0
  36. package/{esm2015/abc.js → esm2020/abc.mjs} +0 -0
  37. package/esm2020/auto-focus/auto-focus.directive.mjs +48 -0
  38. package/esm2020/auto-focus/auto-focus.module.mjs +17 -0
  39. package/{esm2015/auto-focus/autoFocus.js → esm2020/auto-focus/autoFocus.mjs} +0 -0
  40. package/{esm2015/auto-focus/index.js → esm2020/auto-focus/index.mjs} +0 -0
  41. package/esm2020/avatar-list/avatar-list-item.component.mjs +26 -0
  42. package/esm2020/avatar-list/avatar-list.component.mjs +89 -0
  43. package/esm2020/avatar-list/avatar-list.module.mjs +22 -0
  44. package/{esm2015/avatar-list/avatarList.js → esm2020/avatar-list/avatarList.mjs} +0 -0
  45. package/{esm2015/avatar-list/public_api.js → esm2020/avatar-list/public_api.mjs} +0 -0
  46. package/esm2020/count-down/count-down.component.mjs +45 -0
  47. package/{esm2015/count-down/count-down.js → esm2020/count-down/count-down.mjs} +0 -0
  48. package/esm2020/count-down/count-down.module.mjs +20 -0
  49. package/{esm2015/count-down/public_api.js → esm2020/count-down/public_api.mjs} +0 -0
  50. package/esm2020/date-picker/date-picker.module.mjs +22 -0
  51. package/esm2020/date-picker/datePicker.mjs +5 -0
  52. package/{esm2015/date-picker/public_api.js → esm2020/date-picker/public_api.mjs} +2 -1
  53. package/esm2020/date-picker/range-shortcut.component.mjs +40 -0
  54. package/esm2020/date-picker/range.directive.mjs +174 -0
  55. package/esm2020/down-file/down-file.directive.mjs +114 -0
  56. package/esm2020/down-file/down-file.module.mjs +20 -0
  57. package/{esm2015/down-file/downFile.js → esm2020/down-file/downFile.mjs} +0 -0
  58. package/{esm2015/down-file/public_api.js → esm2020/down-file/public_api.mjs} +0 -0
  59. package/esm2020/ellipsis/ellipsis.component.mjs +229 -0
  60. package/{esm2015/ellipsis/ellipsis.js → esm2020/ellipsis/ellipsis.mjs} +0 -0
  61. package/esm2020/ellipsis/ellipsis.module.mjs +21 -0
  62. package/{esm2015/ellipsis/public_api.js → esm2020/ellipsis/public_api.mjs} +0 -0
  63. package/esm2020/error-collect/error-collect.component.mjs +118 -0
  64. package/esm2020/error-collect/error-collect.module.mjs +20 -0
  65. package/{esm2015/error-collect/errorCollect.js → esm2020/error-collect/errorCollect.mjs} +0 -0
  66. package/{esm2015/error-collect/public_api.js → esm2020/error-collect/public_api.mjs} +0 -0
  67. package/esm2020/exception/exception.component.mjs +105 -0
  68. package/{esm2015/exception/exception.js → esm2020/exception/exception.mjs} +0 -0
  69. package/esm2020/exception/exception.module.mjs +23 -0
  70. package/{esm2015/exception/public_api.js → esm2020/exception/public_api.mjs} +0 -0
  71. package/esm2020/footer-toolbar/footer-toolbar.component.mjs +44 -0
  72. package/esm2020/footer-toolbar/footer-toolbar.module.mjs +21 -0
  73. package/{esm2015/footer-toolbar/footerToolbar.js → esm2020/footer-toolbar/footerToolbar.mjs} +0 -0
  74. package/{esm2015/footer-toolbar/public_api.js → esm2020/footer-toolbar/public_api.mjs} +0 -0
  75. package/esm2020/full-content/full-content-toggle.directive.mjs +24 -0
  76. package/esm2020/full-content/full-content.component.mjs +138 -0
  77. package/esm2020/full-content/full-content.module.mjs +20 -0
  78. package/esm2020/full-content/full-content.service.mjs +23 -0
  79. package/{esm2015/full-content/fullContent.js → esm2020/full-content/fullContent.mjs} +0 -0
  80. package/{esm2015/full-content/public_api.js → esm2020/full-content/public_api.mjs} +0 -0
  81. package/esm2020/global-footer/global-footer-item.component.mjs +30 -0
  82. package/esm2020/global-footer/global-footer.component.mjs +73 -0
  83. package/esm2020/global-footer/global-footer.module.mjs +21 -0
  84. package/{esm2015/global-footer/global-footer.types.js → esm2020/global-footer/global-footer.types.mjs} +0 -0
  85. package/{esm2015/global-footer/globalFooter.js → esm2020/global-footer/globalFooter.mjs} +0 -0
  86. package/{esm2015/global-footer/public_api.js → esm2020/global-footer/public_api.mjs} +0 -0
  87. package/esm2020/image/image.directive.mjs +146 -0
  88. package/{esm2015/image/image.js → esm2020/image/image.mjs} +0 -0
  89. package/esm2020/image/image.module.mjs +20 -0
  90. package/{esm2015/image/public_api.js → esm2020/image/public_api.mjs} +0 -0
  91. package/{esm2015/let/index.js → esm2020/let/index.mjs} +0 -0
  92. package/esm2020/let/let.directive.mjs +36 -0
  93. package/{esm2015/let/let.js → esm2020/let/let.mjs} +0 -0
  94. package/esm2020/let/let.module.mjs +17 -0
  95. package/esm2020/loading/loading.component.mjs +26 -0
  96. package/{esm2015/loading/loading.js → esm2020/loading/loading.mjs} +0 -0
  97. package/esm2020/loading/loading.module.mjs +24 -0
  98. package/esm2020/loading/loading.service.mjs +88 -0
  99. package/{esm2015/loading/loading.types.js → esm2020/loading/loading.types.mjs} +0 -0
  100. package/{esm2015/loading/public_api.js → esm2020/loading/public_api.mjs} +0 -0
  101. package/{esm2015/lodop/lodop.js → esm2020/lodop/lodop.mjs} +0 -0
  102. package/esm2020/lodop/lodop.module.mjs +12 -0
  103. package/esm2020/lodop/lodop.service.mjs +222 -0
  104. package/esm2020/lodop/lodop.types.mjs +2 -0
  105. package/{esm2015/lodop/public_api.js → esm2020/lodop/public_api.mjs} +0 -0
  106. package/esm2020/media/media.component.mjs +106 -0
  107. package/{esm2015/media/media.js → esm2020/media/media.mjs} +0 -0
  108. package/esm2020/media/media.module.mjs +19 -0
  109. package/esm2020/media/media.service.mjs +46 -0
  110. package/{esm2015/media/plyr.types.js → esm2020/media/plyr.types.mjs} +0 -0
  111. package/{esm2015/media/public_api.js → esm2020/media/public_api.mjs} +0 -0
  112. package/esm2020/notice-icon/notice-icon-tab.component.mjs +34 -0
  113. package/esm2020/notice-icon/notice-icon.component.mjs +80 -0
  114. package/esm2020/notice-icon/notice-icon.module.mjs +60 -0
  115. package/{esm2015/notice-icon/notice-icon.types.js → esm2020/notice-icon/notice-icon.types.mjs} +0 -0
  116. package/{esm2015/notice-icon/noticeIcon.js → esm2020/notice-icon/noticeIcon.mjs} +0 -0
  117. package/{esm2015/notice-icon/public_api.js → esm2020/notice-icon/public_api.mjs} +0 -0
  118. package/esm2020/onboarding/onboarding.component.mjs +134 -0
  119. package/{esm2015/onboarding/onboarding.js → esm2020/onboarding/onboarding.mjs} +0 -0
  120. package/esm2020/onboarding/onboarding.module.mjs +25 -0
  121. package/esm2020/onboarding/onboarding.service.mjs +185 -0
  122. package/{esm2015/onboarding/onboarding.types.js → esm2020/onboarding/onboarding.types.mjs} +0 -0
  123. package/{esm2015/onboarding/public_api.js → esm2020/onboarding/public_api.mjs} +0 -0
  124. package/esm2020/page-header/page-header.component.mjs +247 -0
  125. package/esm2020/page-header/page-header.module.mjs +24 -0
  126. package/{esm2015/page-header/pageHeader.js → esm2020/page-header/pageHeader.mjs} +0 -0
  127. package/{esm2015/page-header/public_api.js → esm2020/page-header/public_api.mjs} +0 -0
  128. package/esm2020/pdf/pdf.component.mjs +460 -0
  129. package/{esm2015/pdf/pdf.config.js → esm2020/pdf/pdf.config.mjs} +2 -2
  130. package/{esm2015/pdf/pdf.js → esm2020/pdf/pdf.mjs} +0 -0
  131. package/esm2020/pdf/pdf.module.mjs +20 -0
  132. package/{esm2015/pdf/pdf.types.js → esm2020/pdf/pdf.types.mjs} +0 -0
  133. package/{esm2015/pdf/public_api.js → esm2020/pdf/public_api.mjs} +0 -0
  134. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  135. package/{esm2015/qr/public_api.js → esm2020/qr/public_api.mjs} +0 -0
  136. package/esm2020/qr/qr.component.mjs +136 -0
  137. package/{esm2015/qr/qr.config.js → esm2020/qr/qr.config.mjs} +2 -2
  138. package/{esm2015/qr/qr.js → esm2020/qr/qr.mjs} +0 -0
  139. package/esm2020/qr/qr.module.mjs +19 -0
  140. package/{esm2015/qr/qr.types.js → esm2020/qr/qr.types.mjs} +0 -0
  141. package/{esm2015/quick-menu/public_api.js → esm2020/quick-menu/public_api.mjs} +0 -0
  142. package/esm2020/quick-menu/quick-menu.component.mjs +89 -0
  143. package/esm2020/quick-menu/quick-menu.module.mjs +21 -0
  144. package/{esm2015/quick-menu/quickMenu.js → esm2020/quick-menu/quickMenu.mjs} +0 -0
  145. package/{esm2015/result/public_api.js → esm2020/result/public_api.mjs} +0 -0
  146. package/esm2020/result/result.component.mjs +61 -0
  147. package/{esm2015/result/result.js → esm2020/result/result.mjs} +0 -0
  148. package/esm2020/result/result.module.mjs +21 -0
  149. package/{esm2015/reuse-tab/lifecycle_hooks.js → esm2020/reuse-tab/lifecycle_hooks.mjs} +0 -0
  150. package/{esm2015/reuse-tab/public_api.js → esm2020/reuse-tab/public_api.mjs} +0 -0
  151. package/esm2020/reuse-tab/reuse-tab-context-menu.component.mjs +76 -0
  152. package/esm2020/reuse-tab/reuse-tab-context.component.mjs +33 -0
  153. package/esm2020/reuse-tab/reuse-tab-context.directive.mjs +35 -0
  154. package/esm2020/reuse-tab/reuse-tab-context.service.mjs +55 -0
  155. package/esm2020/reuse-tab/reuse-tab.component.mjs +318 -0
  156. package/{esm2015/reuse-tab/reuse-tab.interfaces.js → esm2020/reuse-tab/reuse-tab.interfaces.mjs} +0 -0
  157. package/esm2020/reuse-tab/reuse-tab.module.mjs +29 -0
  158. package/esm2020/reuse-tab/reuse-tab.service.mjs +533 -0
  159. package/{esm2015/reuse-tab/reuse-tab.strategy.js → esm2020/reuse-tab/reuse-tab.strategy.mjs} +0 -0
  160. package/{esm2015/reuse-tab/reuseTab.js → esm2020/reuse-tab/reuseTab.mjs} +0 -0
  161. package/{esm2015/se/edit.js → esm2020/se/edit.mjs} +0 -0
  162. package/esm2020/se/public_api.mjs +5 -0
  163. package/esm2020/se/se-container.component.mjs +173 -0
  164. package/esm2020/se/se.component.mjs +233 -0
  165. package/esm2020/se/se.module.mjs +23 -0
  166. package/{esm2015/se/se.types.js → esm2020/se/se.types.mjs} +0 -0
  167. package/{esm2015/sg/grid.js → esm2020/sg/grid.mjs} +0 -0
  168. package/{esm2015/sg/public_api.js → esm2020/sg/public_api.mjs} +0 -0
  169. package/esm2020/sg/sg-container.component.mjs +52 -0
  170. package/esm2020/sg/sg.component.mjs +67 -0
  171. package/esm2020/sg/sg.module.mjs +20 -0
  172. package/{esm2015/st/public_api.js → esm2020/st/public_api.mjs} +0 -0
  173. package/esm2020/st/st-column-source.mjs +470 -0
  174. package/esm2020/st/st-data-source.mjs +448 -0
  175. package/esm2020/st/st-export.mjs +89 -0
  176. package/esm2020/st/st-filter.component.mjs +262 -0
  177. package/esm2020/st/st-row.directive.mjs +45 -0
  178. package/esm2020/st/st-widget-host.directive.mjs +31 -0
  179. package/esm2020/st/st-widget.mjs +26 -0
  180. package/esm2020/st/st.component.mjs +969 -0
  181. package/{esm2015/st/st.config.js → esm2020/st/st.config.mjs} +0 -0
  182. package/esm2020/st/st.interfaces.mjs +2 -0
  183. package/esm2020/st/st.module.mjs +98 -0
  184. package/{esm2015/st/st.types.js → esm2020/st/st.types.mjs} +0 -0
  185. package/esm2020/st/table.mjs +5 -0
  186. package/esm2020/sv/public_api.mjs +5 -0
  187. package/esm2020/sv/sv-container.component.mjs +125 -0
  188. package/esm2020/sv/sv-value.component.mjs +44 -0
  189. package/esm2020/sv/sv.component.mjs +113 -0
  190. package/esm2020/sv/sv.module.mjs +25 -0
  191. package/{esm2015/sv/view.js → esm2020/sv/view.mjs} +0 -0
  192. package/{esm2015/tag-select/public_api.js → esm2020/tag-select/public_api.mjs} +0 -0
  193. package/esm2020/tag-select/tag-select.component.mjs +64 -0
  194. package/esm2020/tag-select/tag-select.module.mjs +21 -0
  195. package/{esm2015/tag-select/tagSelect.js → esm2020/tag-select/tagSelect.mjs} +0 -0
  196. package/{esm2015/xlsx/public_api.js → esm2020/xlsx/public_api.mjs} +0 -0
  197. package/esm2020/xlsx/xlsx.directive.mjs +27 -0
  198. package/{esm2015/xlsx/xlsx.js → esm2020/xlsx/xlsx.mjs} +0 -0
  199. package/esm2020/xlsx/xlsx.module.mjs +19 -0
  200. package/esm2020/xlsx/xlsx.service.mjs +128 -0
  201. package/{esm2015/xlsx/xlsx.types.js → esm2020/xlsx/xlsx.types.mjs} +0 -0
  202. package/{esm2015/zip/public_api.js → esm2020/zip/public_api.mjs} +0 -0
  203. package/{esm2015/zip/zip.js → esm2020/zip/zip.mjs} +0 -0
  204. package/esm2020/zip/zip.module.mjs +15 -0
  205. package/esm2020/zip/zip.service.mjs +114 -0
  206. package/{esm2015/zip/zip.types.js → esm2020/zip/zip.types.mjs} +0 -0
  207. package/exception/exception.component.d.ts +3 -0
  208. package/exception/exception.d.ts +1 -0
  209. package/exception/exception.module.d.ts +10 -0
  210. package/exception/package.json +5 -6
  211. package/exception/style/index.less +9 -0
  212. package/fesm2015/{abc.js → abc.mjs} +1 -1
  213. package/fesm2015/abc.mjs.map +1 -0
  214. package/fesm2015/autoFocus.mjs +69 -0
  215. package/fesm2015/autoFocus.mjs.map +1 -0
  216. package/fesm2015/avatarList.mjs +140 -0
  217. package/fesm2015/avatarList.mjs.map +1 -0
  218. package/fesm2015/count-down.mjs +69 -0
  219. package/fesm2015/count-down.mjs.map +1 -0
  220. package/fesm2015/{datePicker.js → datePicker.mjs} +63 -40
  221. package/fesm2015/datePicker.mjs.map +1 -0
  222. package/fesm2015/downFile.mjs +141 -0
  223. package/fesm2015/downFile.mjs.map +1 -0
  224. package/fesm2015/edit.mjs +443 -0
  225. package/fesm2015/edit.mjs.map +1 -0
  226. package/fesm2015/ellipsis.mjs +255 -0
  227. package/fesm2015/ellipsis.mjs.map +1 -0
  228. package/fesm2015/errorCollect.mjs +144 -0
  229. package/fesm2015/errorCollect.mjs.map +1 -0
  230. package/fesm2015/exception.mjs +135 -0
  231. package/fesm2015/exception.mjs.map +1 -0
  232. package/fesm2015/footerToolbar.mjs +70 -0
  233. package/fesm2015/footerToolbar.mjs.map +1 -0
  234. package/fesm2015/fullContent.mjs +202 -0
  235. package/fesm2015/fullContent.mjs.map +1 -0
  236. package/fesm2015/globalFooter.mjs +127 -0
  237. package/fesm2015/globalFooter.mjs.map +1 -0
  238. package/fesm2015/grid.mjs +139 -0
  239. package/fesm2015/grid.mjs.map +1 -0
  240. package/fesm2015/image.mjs +165 -0
  241. package/fesm2015/image.mjs.map +1 -0
  242. package/fesm2015/let.mjs +59 -0
  243. package/fesm2015/let.mjs.map +1 -0
  244. package/fesm2015/loading.mjs +140 -0
  245. package/fesm2015/loading.mjs.map +1 -0
  246. package/fesm2015/{lodop.js → lodop.mjs} +15 -15
  247. package/fesm2015/lodop.mjs.map +1 -0
  248. package/fesm2015/media.mjs +170 -0
  249. package/fesm2015/media.mjs.map +1 -0
  250. package/fesm2015/noticeIcon.mjs +173 -0
  251. package/fesm2015/noticeIcon.mjs.map +1 -0
  252. package/fesm2015/onboarding.mjs +335 -0
  253. package/fesm2015/onboarding.mjs.map +1 -0
  254. package/fesm2015/pageHeader.mjs +277 -0
  255. package/fesm2015/pageHeader.mjs.map +1 -0
  256. package/fesm2015/{pdf.js → pdf.mjs} +81 -54
  257. package/fesm2015/pdf.mjs.map +1 -0
  258. package/fesm2015/qr.mjs +171 -0
  259. package/fesm2015/qr.mjs.map +1 -0
  260. package/fesm2015/quickMenu.mjs +114 -0
  261. package/fesm2015/quickMenu.mjs.map +1 -0
  262. package/fesm2015/result.mjs +89 -0
  263. package/fesm2015/result.mjs.map +1 -0
  264. package/fesm2015/{reuseTab.js → reuseTab.mjs} +183 -160
  265. package/fesm2015/reuseTab.mjs.map +1 -0
  266. package/fesm2015/{table.js → table.mjs} +610 -492
  267. package/fesm2015/table.mjs.map +1 -0
  268. package/fesm2015/tagSelect.mjs +92 -0
  269. package/fesm2015/tagSelect.mjs.map +1 -0
  270. package/fesm2015/view.mjs +302 -0
  271. package/fesm2015/view.mjs.map +1 -0
  272. package/fesm2015/{xlsx.js → xlsx.mjs} +42 -42
  273. package/fesm2015/xlsx.mjs.map +1 -0
  274. package/fesm2015/{zip.js → zip.mjs} +35 -32
  275. package/fesm2015/zip.mjs.map +1 -0
  276. package/fesm2020/abc.mjs +7 -0
  277. package/fesm2020/abc.mjs.map +1 -0
  278. package/fesm2020/autoFocus.mjs +69 -0
  279. package/fesm2020/autoFocus.mjs.map +1 -0
  280. package/fesm2020/avatarList.mjs +137 -0
  281. package/fesm2020/avatarList.mjs.map +1 -0
  282. package/fesm2020/count-down.mjs +69 -0
  283. package/fesm2020/count-down.mjs.map +1 -0
  284. package/fesm2020/datePicker.mjs +236 -0
  285. package/fesm2020/datePicker.mjs.map +1 -0
  286. package/fesm2020/downFile.mjs +138 -0
  287. package/fesm2020/downFile.mjs.map +1 -0
  288. package/fesm2020/edit.mjs +436 -0
  289. package/fesm2020/edit.mjs.map +1 -0
  290. package/fesm2020/ellipsis.mjs +253 -0
  291. package/fesm2020/ellipsis.mjs.map +1 -0
  292. package/fesm2020/errorCollect.mjs +141 -0
  293. package/fesm2020/errorCollect.mjs.map +1 -0
  294. package/fesm2020/exception.mjs +132 -0
  295. package/fesm2020/exception.mjs.map +1 -0
  296. package/fesm2020/footerToolbar.mjs +68 -0
  297. package/fesm2020/footerToolbar.mjs.map +1 -0
  298. package/fesm2020/fullContent.mjs +199 -0
  299. package/fesm2020/fullContent.mjs.map +1 -0
  300. package/fesm2020/globalFooter.mjs +124 -0
  301. package/fesm2020/globalFooter.mjs.map +1 -0
  302. package/fesm2020/grid.mjs +137 -0
  303. package/fesm2020/grid.mjs.map +1 -0
  304. package/fesm2020/image.mjs +170 -0
  305. package/fesm2020/image.mjs.map +1 -0
  306. package/fesm2020/let.mjs +57 -0
  307. package/fesm2020/let.mjs.map +1 -0
  308. package/fesm2020/loading.mjs +138 -0
  309. package/fesm2020/loading.mjs.map +1 -0
  310. package/fesm2020/lodop.mjs +239 -0
  311. package/fesm2020/lodop.mjs.map +1 -0
  312. package/fesm2020/media.mjs +172 -0
  313. package/fesm2020/media.mjs.map +1 -0
  314. package/fesm2020/noticeIcon.mjs +173 -0
  315. package/fesm2020/noticeIcon.mjs.map +1 -0
  316. package/fesm2020/onboarding.mjs +343 -0
  317. package/fesm2020/onboarding.mjs.map +1 -0
  318. package/fesm2020/pageHeader.mjs +274 -0
  319. package/fesm2020/pageHeader.mjs.map +1 -0
  320. package/fesm2020/pdf.mjs +506 -0
  321. package/fesm2020/pdf.mjs.map +1 -0
  322. package/fesm2020/qr.mjs +171 -0
  323. package/fesm2020/qr.mjs.map +1 -0
  324. package/fesm2020/quickMenu.mjs +114 -0
  325. package/fesm2020/quickMenu.mjs.map +1 -0
  326. package/fesm2020/result.mjs +86 -0
  327. package/fesm2020/result.mjs.map +1 -0
  328. package/fesm2020/reuseTab.mjs +1106 -0
  329. package/fesm2020/reuseTab.mjs.map +1 -0
  330. package/fesm2020/table.mjs +2469 -0
  331. package/fesm2020/table.mjs.map +1 -0
  332. package/fesm2020/tagSelect.mjs +89 -0
  333. package/fesm2020/tagSelect.mjs.map +1 -0
  334. package/fesm2020/view.mjs +298 -0
  335. package/fesm2020/view.mjs.map +1 -0
  336. package/fesm2020/xlsx.mjs +175 -0
  337. package/fesm2020/xlsx.mjs.map +1 -0
  338. package/fesm2020/zip.mjs +134 -0
  339. package/fesm2020/zip.mjs.map +1 -0
  340. package/footer-toolbar/footer-toolbar.component.d.ts +4 -1
  341. package/footer-toolbar/footer-toolbar.module.d.ts +8 -0
  342. package/footer-toolbar/footerToolbar.d.ts +1 -0
  343. package/footer-toolbar/package.json +5 -6
  344. package/footer-toolbar/style/index.less +1 -0
  345. package/full-content/full-content-toggle.directive.d.ts +3 -0
  346. package/full-content/full-content.component.d.ts +6 -3
  347. package/full-content/full-content.module.d.ts +7 -0
  348. package/full-content/full-content.service.d.ts +3 -0
  349. package/full-content/fullContent.d.ts +1 -0
  350. package/full-content/package.json +5 -6
  351. package/full-content/style/index.less +1 -0
  352. package/global-footer/global-footer-item.component.d.ts +5 -2
  353. package/global-footer/global-footer.component.d.ts +3 -0
  354. package/global-footer/global-footer.module.d.ts +8 -0
  355. package/global-footer/globalFooter.d.ts +1 -0
  356. package/global-footer/package.json +5 -6
  357. package/global-footer/style/index.less +5 -0
  358. package/image/image.d.ts +1 -0
  359. package/image/image.directive.d.ts +4 -1
  360. package/image/image.module.d.ts +7 -0
  361. package/image/package.json +5 -6
  362. package/let/let.d.ts +1 -0
  363. package/let/let.directive.d.ts +3 -0
  364. package/let/let.module.d.ts +5 -0
  365. package/let/package.json +5 -6
  366. package/loading/loading.component.d.ts +3 -0
  367. package/loading/loading.d.ts +1 -0
  368. package/loading/loading.module.d.ts +10 -0
  369. package/loading/loading.service.d.ts +4 -1
  370. package/loading/package.json +5 -6
  371. package/loading/style/index.less +3 -0
  372. package/lodop/lodop.d.ts +1 -0
  373. package/lodop/lodop.module.d.ts +4 -0
  374. package/lodop/lodop.service.d.ts +3 -0
  375. package/lodop/lodop.types.d.ts +4 -0
  376. package/lodop/package.json +5 -6
  377. package/media/media.component.d.ts +4 -1
  378. package/media/media.d.ts +1 -0
  379. package/media/media.module.d.ts +6 -0
  380. package/media/media.service.d.ts +3 -0
  381. package/media/package.json +5 -6
  382. package/notice-icon/notice-icon-tab.component.d.ts +3 -0
  383. package/notice-icon/notice-icon.component.d.ts +4 -1
  384. package/notice-icon/notice-icon.module.d.ts +16 -0
  385. package/notice-icon/noticeIcon.d.ts +1 -0
  386. package/notice-icon/package.json +5 -6
  387. package/notice-icon/style/index.less +17 -0
  388. package/onboarding/onboarding.component.d.ts +4 -1
  389. package/onboarding/onboarding.d.ts +1 -0
  390. package/onboarding/onboarding.module.d.ts +11 -0
  391. package/onboarding/onboarding.service.d.ts +3 -0
  392. package/onboarding/package.json +5 -6
  393. package/onboarding/schema.json +1 -1
  394. package/onboarding/style/index.less +6 -0
  395. package/package.json +274 -14
  396. package/page-header/package.json +5 -6
  397. package/page-header/page-header.component.d.ts +4 -1
  398. package/page-header/page-header.module.d.ts +11 -0
  399. package/page-header/pageHeader.d.ts +1 -0
  400. package/page-header/style/index.less +10 -0
  401. package/page-header/style/rtl.less +3 -0
  402. package/pdf/package.json +5 -6
  403. package/pdf/pdf.component.d.ts +5 -2
  404. package/pdf/pdf.d.ts +1 -0
  405. package/pdf/pdf.module.d.ts +7 -0
  406. package/qr/package.json +5 -6
  407. package/qr/qr.component.d.ts +13 -10
  408. package/qr/qr.d.ts +1 -0
  409. package/qr/qr.module.d.ts +6 -0
  410. package/quick-menu/package.json +5 -6
  411. package/quick-menu/quick-menu.component.d.ts +6 -3
  412. package/quick-menu/quick-menu.module.d.ts +8 -0
  413. package/quick-menu/quickMenu.d.ts +1 -0
  414. package/quick-menu/style/index.less +2 -0
  415. package/result/package.json +5 -6
  416. package/result/result.component.d.ts +6 -3
  417. package/result/result.d.ts +1 -0
  418. package/result/result.module.d.ts +8 -0
  419. package/result/style/index.less +7 -0
  420. package/reuse-tab/package.json +5 -6
  421. package/reuse-tab/reuse-tab-context-menu.component.d.ts +3 -0
  422. package/reuse-tab/reuse-tab-context.component.d.ts +4 -1
  423. package/reuse-tab/reuse-tab-context.directive.d.ts +3 -0
  424. package/reuse-tab/reuse-tab-context.service.d.ts +4 -1
  425. package/reuse-tab/reuse-tab.component.d.ts +13 -10
  426. package/reuse-tab/reuse-tab.module.d.ts +15 -0
  427. package/reuse-tab/reuse-tab.service.d.ts +7 -4
  428. package/reuse-tab/reuseTab.d.ts +1 -0
  429. package/reuse-tab/style/index.less +4 -0
  430. package/se/edit.d.ts +1 -0
  431. package/se/package.json +5 -6
  432. package/se/public_api.d.ts +0 -1
  433. package/se/se-container.component.d.ts +18 -4
  434. package/se/se.component.d.ts +13 -8
  435. package/se/se.module.d.ts +10 -0
  436. package/se/style/index.less +2 -0
  437. package/sg/grid.d.ts +1 -0
  438. package/sg/package.json +5 -6
  439. package/sg/sg-container.component.d.ts +4 -1
  440. package/sg/sg.component.d.ts +4 -1
  441. package/sg/sg.module.d.ts +7 -0
  442. package/st/package.json +5 -6
  443. package/st/st-column-source.d.ts +4 -1
  444. package/st/st-data-source.d.ts +3 -0
  445. package/st/st-export.d.ts +3 -0
  446. package/st/st-filter.component.d.ts +3 -0
  447. package/st/st-row.directive.d.ts +7 -2
  448. package/st/st-widget-host.directive.d.ts +5 -3
  449. package/st/st-widget.d.ts +3 -0
  450. package/st/st.component.d.ts +40 -12
  451. package/st/st.interfaces.d.ts +2 -2
  452. package/st/st.module.d.ts +27 -0
  453. package/st/style/index.less +8 -0
  454. package/st/table.d.ts +1 -3
  455. package/sv/package.json +5 -6
  456. package/sv/public_api.d.ts +0 -1
  457. package/sv/style/index.less +8 -0
  458. package/sv/sv-container.component.d.ts +16 -3
  459. package/sv/sv-value.component.d.ts +3 -0
  460. package/sv/sv.component.d.ts +13 -10
  461. package/sv/sv.module.d.ts +12 -0
  462. package/sv/view.d.ts +1 -0
  463. package/tag-select/package.json +5 -6
  464. package/tag-select/style/index.less +4 -0
  465. package/tag-select/style/rtl.less +3 -0
  466. package/tag-select/tag-select.component.d.ts +3 -0
  467. package/tag-select/tag-select.module.d.ts +8 -0
  468. package/tag-select/tagSelect.d.ts +1 -0
  469. package/xlsx/package.json +5 -6
  470. package/xlsx/xlsx.d.ts +1 -0
  471. package/xlsx/xlsx.directive.d.ts +3 -0
  472. package/xlsx/xlsx.module.d.ts +6 -0
  473. package/xlsx/xlsx.service.d.ts +3 -0
  474. package/zip/package.json +5 -6
  475. package/zip/zip.d.ts +1 -0
  476. package/zip/zip.module.d.ts +5 -0
  477. package/zip/zip.service.d.ts +3 -0
  478. package/abc.metadata.json +0 -1
  479. package/auto-focus/autoFocus.metadata.json +0 -1
  480. package/avatar-list/avatarList.metadata.json +0 -1
  481. package/bundles/abc.umd.js +0 -19
  482. package/bundles/abc.umd.js.map +0 -1
  483. package/bundles/autoFocus.umd.js +0 -394
  484. package/bundles/autoFocus.umd.js.map +0 -1
  485. package/bundles/avatarList.umd.js +0 -465
  486. package/bundles/avatarList.umd.js.map +0 -1
  487. package/bundles/count-down.umd.js +0 -75
  488. package/bundles/count-down.umd.js.map +0 -1
  489. package/bundles/datePicker.umd.js +0 -552
  490. package/bundles/datePicker.umd.js.map +0 -1
  491. package/bundles/downFile.umd.js +0 -474
  492. package/bundles/downFile.umd.js.map +0 -1
  493. package/bundles/edit.umd.js +0 -776
  494. package/bundles/edit.umd.js.map +0 -1
  495. package/bundles/ellipsis.umd.js +0 -578
  496. package/bundles/ellipsis.umd.js.map +0 -1
  497. package/bundles/errorCollect.umd.js +0 -461
  498. package/bundles/errorCollect.umd.js.map +0 -1
  499. package/bundles/exception.umd.js +0 -150
  500. package/bundles/exception.umd.js.map +0 -1
  501. package/bundles/footerToolbar.umd.js +0 -401
  502. package/bundles/footerToolbar.umd.js.map +0 -1
  503. package/bundles/fullContent.umd.js +0 -550
  504. package/bundles/fullContent.umd.js.map +0 -1
  505. package/bundles/globalFooter.umd.js +0 -455
  506. package/bundles/globalFooter.umd.js.map +0 -1
  507. package/bundles/grid.umd.js +0 -470
  508. package/bundles/grid.umd.js.map +0 -1
  509. package/bundles/image.umd.js +0 -482
  510. package/bundles/image.umd.js.map +0 -1
  511. package/bundles/let.umd.js +0 -76
  512. package/bundles/let.umd.js.map +0 -1
  513. package/bundles/loading.umd.js +0 -181
  514. package/bundles/loading.umd.js.map +0 -1
  515. package/bundles/lodop.umd.js +0 -605
  516. package/bundles/lodop.umd.js.map +0 -1
  517. package/bundles/media.umd.js +0 -536
  518. package/bundles/media.umd.js.map +0 -1
  519. package/bundles/noticeIcon.umd.js +0 -468
  520. package/bundles/noticeIcon.umd.js.map +0 -1
  521. package/bundles/onboarding.umd.js +0 -370
  522. package/bundles/onboarding.umd.js.map +0 -1
  523. package/bundles/pageHeader.umd.js +0 -570
  524. package/bundles/pageHeader.umd.js.map +0 -1
  525. package/bundles/pdf.umd.js +0 -863
  526. package/bundles/pdf.umd.js.map +0 -1
  527. package/bundles/qr.umd.js +0 -491
  528. package/bundles/qr.umd.js.map +0 -1
  529. package/bundles/quickMenu.umd.js +0 -442
  530. package/bundles/quickMenu.umd.js.map +0 -1
  531. package/bundles/result.umd.js +0 -100
  532. package/bundles/result.umd.js.map +0 -1
  533. package/bundles/reuseTab.umd.js +0 -1522
  534. package/bundles/reuseTab.umd.js.map +0 -1
  535. package/bundles/table.umd.js +0 -2586
  536. package/bundles/table.umd.js.map +0 -1
  537. package/bundles/tagSelect.umd.js +0 -419
  538. package/bundles/tagSelect.umd.js.map +0 -1
  539. package/bundles/view.umd.js +0 -592
  540. package/bundles/view.umd.js.map +0 -1
  541. package/bundles/xlsx.umd.js +0 -529
  542. package/bundles/xlsx.umd.js.map +0 -1
  543. package/bundles/zip.umd.js +0 -482
  544. package/bundles/zip.umd.js.map +0 -1
  545. package/count-down/count-down.metadata.json +0 -1
  546. package/date-picker/datePicker.metadata.json +0 -1
  547. package/down-file/downFile.metadata.json +0 -1
  548. package/ellipsis/ellipsis.metadata.json +0 -1
  549. package/error-collect/errorCollect.metadata.json +0 -1
  550. package/esm2015/auto-focus/auto-focus.directive.js +0 -42
  551. package/esm2015/auto-focus/auto-focus.module.js +0 -12
  552. package/esm2015/avatar-list/avatar-list-item.component.js +0 -20
  553. package/esm2015/avatar-list/avatar-list.component.js +0 -89
  554. package/esm2015/avatar-list/avatar-list.module.js +0 -17
  555. package/esm2015/count-down/count-down.component.js +0 -36
  556. package/esm2015/count-down/count-down.module.js +0 -15
  557. package/esm2015/date-picker/date-picker.module.js +0 -17
  558. package/esm2015/date-picker/datePicker.js +0 -6
  559. package/esm2015/date-picker/range-shortcut.component.js +0 -26
  560. package/esm2015/date-picker/range.directive.js +0 -171
  561. package/esm2015/down-file/down-file.directive.js +0 -103
  562. package/esm2015/down-file/down-file.module.js +0 -15
  563. package/esm2015/ellipsis/ellipsis.component.js +0 -224
  564. package/esm2015/ellipsis/ellipsis.module.js +0 -16
  565. package/esm2015/error-collect/error-collect.component.js +0 -112
  566. package/esm2015/error-collect/error-collect.module.js +0 -15
  567. package/esm2015/exception/exception.component.js +0 -103
  568. package/esm2015/exception/exception.module.js +0 -18
  569. package/esm2015/footer-toolbar/footer-toolbar.component.js +0 -46
  570. package/esm2015/footer-toolbar/footer-toolbar.module.js +0 -16
  571. package/esm2015/full-content/full-content-toggle.directive.js +0 -23
  572. package/esm2015/full-content/full-content.component.js +0 -135
  573. package/esm2015/full-content/full-content.module.js +0 -15
  574. package/esm2015/full-content/full-content.service.js +0 -21
  575. package/esm2015/global-footer/global-footer-item.component.js +0 -24
  576. package/esm2015/global-footer/global-footer.component.js +0 -77
  577. package/esm2015/global-footer/global-footer.module.js +0 -16
  578. package/esm2015/image/image.directive.js +0 -133
  579. package/esm2015/image/image.module.js +0 -15
  580. package/esm2015/let/let.directive.js +0 -31
  581. package/esm2015/let/let.module.js +0 -12
  582. package/esm2015/loading/loading.component.js +0 -26
  583. package/esm2015/loading/loading.module.js +0 -19
  584. package/esm2015/loading/loading.service.js +0 -92
  585. package/esm2015/lodop/lodop.module.js +0 -7
  586. package/esm2015/lodop/lodop.service.js +0 -219
  587. package/esm2015/lodop/lodop.types.js +0 -2
  588. package/esm2015/media/media.component.js +0 -104
  589. package/esm2015/media/media.module.js +0 -14
  590. package/esm2015/media/media.service.js +0 -53
  591. package/esm2015/notice-icon/notice-icon-tab.component.js +0 -30
  592. package/esm2015/notice-icon/notice-icon.component.js +0 -74
  593. package/esm2015/notice-icon/notice-icon.module.js +0 -35
  594. package/esm2015/onboarding/onboarding.component.js +0 -130
  595. package/esm2015/onboarding/onboarding.module.js +0 -20
  596. package/esm2015/onboarding/onboarding.service.js +0 -178
  597. package/esm2015/page-header/page-header.component.js +0 -216
  598. package/esm2015/page-header/page-header.module.js +0 -19
  599. package/esm2015/pdf/pdf.component.js +0 -433
  600. package/esm2015/pdf/pdf.module.js +0 -15
  601. package/esm2015/qr/qr.component.js +0 -128
  602. package/esm2015/qr/qr.module.js +0 -14
  603. package/esm2015/quick-menu/quick-menu.component.js +0 -90
  604. package/esm2015/quick-menu/quick-menu.module.js +0 -16
  605. package/esm2015/result/result.component.js +0 -62
  606. package/esm2015/result/result.module.js +0 -16
  607. package/esm2015/reuse-tab/reuse-tab-context-menu.component.js +0 -74
  608. package/esm2015/reuse-tab/reuse-tab-context.component.js +0 -32
  609. package/esm2015/reuse-tab/reuse-tab-context.directive.js +0 -33
  610. package/esm2015/reuse-tab/reuse-tab-context.service.js +0 -53
  611. package/esm2015/reuse-tab/reuse-tab.component.js +0 -300
  612. package/esm2015/reuse-tab/reuse-tab.module.js +0 -24
  613. package/esm2015/reuse-tab/reuse-tab.service.js +0 -534
  614. package/esm2015/se/public_api.js +0 -6
  615. package/esm2015/se/se-container.component.js +0 -115
  616. package/esm2015/se/se-title.component.js +0 -40
  617. package/esm2015/se/se.component.js +0 -214
  618. package/esm2015/se/se.module.js +0 -19
  619. package/esm2015/sg/sg-container.component.js +0 -49
  620. package/esm2015/sg/sg.component.js +0 -65
  621. package/esm2015/sg/sg.module.js +0 -15
  622. package/esm2015/st/index.js +0 -2
  623. package/esm2015/st/st-column-source.js +0 -428
  624. package/esm2015/st/st-data-source.js +0 -429
  625. package/esm2015/st/st-export.js +0 -90
  626. package/esm2015/st/st-filter.component.js +0 -149
  627. package/esm2015/st/st-row.directive.js +0 -40
  628. package/esm2015/st/st-td.component.js +0 -232
  629. package/esm2015/st/st-widget-host.directive.js +0 -34
  630. package/esm2015/st/st-widget.js +0 -24
  631. package/esm2015/st/st.component.js +0 -784
  632. package/esm2015/st/st.interfaces.js +0 -2
  633. package/esm2015/st/st.module.js +0 -56
  634. package/esm2015/st/table.js +0 -8
  635. package/esm2015/sv/public_api.js +0 -6
  636. package/esm2015/sv/sv-container.component.js +0 -63
  637. package/esm2015/sv/sv-title.component.js +0 -40
  638. package/esm2015/sv/sv-value.component.js +0 -32
  639. package/esm2015/sv/sv.component.js +0 -105
  640. package/esm2015/sv/sv.module.js +0 -21
  641. package/esm2015/tag-select/tag-select.component.js +0 -70
  642. package/esm2015/tag-select/tag-select.module.js +0 -16
  643. package/esm2015/xlsx/xlsx.directive.js +0 -26
  644. package/esm2015/xlsx/xlsx.module.js +0 -14
  645. package/esm2015/xlsx/xlsx.service.js +0 -129
  646. package/esm2015/zip/zip.module.js +0 -10
  647. package/esm2015/zip/zip.service.js +0 -115
  648. package/exception/exception.metadata.json +0 -1
  649. package/fesm2015/abc.js.map +0 -1
  650. package/fesm2015/autoFocus.js +0 -59
  651. package/fesm2015/autoFocus.js.map +0 -1
  652. package/fesm2015/avatarList.js +0 -128
  653. package/fesm2015/avatarList.js.map +0 -1
  654. package/fesm2015/count-down.js +0 -56
  655. package/fesm2015/count-down.js.map +0 -1
  656. package/fesm2015/datePicker.js.map +0 -1
  657. package/fesm2015/downFile.js +0 -122
  658. package/fesm2015/downFile.js.map +0 -1
  659. package/fesm2015/edit.js +0 -396
  660. package/fesm2015/edit.js.map +0 -1
  661. package/fesm2015/ellipsis.js +0 -244
  662. package/fesm2015/ellipsis.js.map +0 -1
  663. package/fesm2015/errorCollect.js +0 -131
  664. package/fesm2015/errorCollect.js.map +0 -1
  665. package/fesm2015/exception.js +0 -125
  666. package/fesm2015/exception.js.map +0 -1
  667. package/fesm2015/footerToolbar.js +0 -66
  668. package/fesm2015/footerToolbar.js.map +0 -1
  669. package/fesm2015/fullContent.js +0 -191
  670. package/fesm2015/fullContent.js.map +0 -1
  671. package/fesm2015/globalFooter.js +0 -118
  672. package/fesm2015/globalFooter.js.map +0 -1
  673. package/fesm2015/grid.js +0 -129
  674. package/fesm2015/grid.js.map +0 -1
  675. package/fesm2015/image.js +0 -152
  676. package/fesm2015/image.js.map +0 -1
  677. package/fesm2015/let.js +0 -48
  678. package/fesm2015/let.js.map +0 -1
  679. package/fesm2015/loading.js +0 -138
  680. package/fesm2015/loading.js.map +0 -1
  681. package/fesm2015/lodop.js.map +0 -1
  682. package/fesm2015/media.js +0 -174
  683. package/fesm2015/media.js.map +0 -1
  684. package/fesm2015/noticeIcon.js +0 -141
  685. package/fesm2015/noticeIcon.js.map +0 -1
  686. package/fesm2015/onboarding.js +0 -328
  687. package/fesm2015/onboarding.js.map +0 -1
  688. package/fesm2015/pageHeader.js +0 -239
  689. package/fesm2015/pageHeader.js.map +0 -1
  690. package/fesm2015/pdf.js.map +0 -1
  691. package/fesm2015/qr.js +0 -159
  692. package/fesm2015/qr.js.map +0 -1
  693. package/fesm2015/quickMenu.js +0 -111
  694. package/fesm2015/quickMenu.js.map +0 -1
  695. package/fesm2015/result.js +0 -83
  696. package/fesm2015/result.js.map +0 -1
  697. package/fesm2015/reuseTab.js.map +0 -1
  698. package/fesm2015/table.js.map +0 -1
  699. package/fesm2015/tagSelect.js +0 -90
  700. package/fesm2015/tagSelect.js.map +0 -1
  701. package/fesm2015/view.js +0 -256
  702. package/fesm2015/view.js.map +0 -1
  703. package/fesm2015/xlsx.js.map +0 -1
  704. package/fesm2015/zip.js.map +0 -1
  705. package/footer-toolbar/footerToolbar.metadata.json +0 -1
  706. package/full-content/fullContent.metadata.json +0 -1
  707. package/global-footer/globalFooter.metadata.json +0 -1
  708. package/image/image.metadata.json +0 -1
  709. package/let/let.metadata.json +0 -1
  710. package/loading/loading.metadata.json +0 -1
  711. package/lodop/lodop.metadata.json +0 -1
  712. package/media/media.metadata.json +0 -1
  713. package/notice-icon/noticeIcon.metadata.json +0 -1
  714. package/onboarding/onboarding.metadata.json +0 -1
  715. package/page-header/pageHeader.metadata.json +0 -1
  716. package/pdf/pdf.metadata.json +0 -1
  717. package/qr/qr.metadata.json +0 -1
  718. package/quick-menu/quickMenu.metadata.json +0 -1
  719. package/result/result.metadata.json +0 -1
  720. package/reuse-tab/reuseTab.metadata.json +0 -1
  721. package/se/edit.metadata.json +0 -1
  722. package/se/se-title.component.d.ts +0 -10
  723. package/sg/grid.metadata.json +0 -1
  724. package/st/index.d.ts +0 -1
  725. package/st/st-td.component.d.ts +0 -27
  726. package/st/table.metadata.json +0 -1
  727. package/sv/sv-title.component.d.ts +0 -10
  728. package/sv/view.metadata.json +0 -1
  729. package/tag-select/tagSelect.metadata.json +0 -1
  730. package/xlsx/xlsx.metadata.json +0 -1
  731. package/zip/zip.metadata.json +0 -1
@@ -0,0 +1,298 @@
1
+ import { __decorate } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Host, Optional, ViewChild, NgModule } from '@angular/core';
4
+ import { InputNumber, InputBoolean } from '@delon/util/decorator';
5
+ import * as i1 from '@delon/util/config';
6
+ import * as i2 from '@angular/common';
7
+ import { CommonModule } from '@angular/common';
8
+ import * as i3 from 'ng-zorro-antd/core/outlet';
9
+ import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
10
+ import * as i2$1 from 'ng-zorro-antd/tooltip';
11
+ import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
12
+ import { isEmpty } from '@delon/util/browser';
13
+ import * as i2$2 from '@delon/theme';
14
+ import * as i6 from 'ng-zorro-antd/icon';
15
+ import { NzIconModule } from 'ng-zorro-antd/icon';
16
+ import * as i7 from '@angular/cdk/observers';
17
+ import { ObserversModule } from '@angular/cdk/observers';
18
+
19
+ class SVContainerComponent {
20
+ constructor(configSrv) {
21
+ this.noColon = false;
22
+ configSrv.attach(this, 'sv', {
23
+ size: 'large',
24
+ gutter: 32,
25
+ layout: 'horizontal',
26
+ col: 3,
27
+ default: true
28
+ });
29
+ }
30
+ }
31
+ SVContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SVContainerComponent, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Component });
32
+ SVContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SVContainerComponent, selector: "sv-container, [sv-container]", inputs: { title: "title", size: "size", gutter: "gutter", layout: "layout", labelWidth: "labelWidth", col: "col", default: "default", noColon: "noColon" }, host: { properties: { "class.sv__container": "true", "class.sv__horizontal": "layout === 'horizontal'", "class.sv__vertical": "layout === 'vertical'", "class.sv__small": "size === 'small'", "class.sv__large": "size === 'large'", "class.clearfix": "true" } }, exportAs: ["svContainer"], ngImport: i0, template: `
33
+ <div class="ant-row" [ngStyle]="{ 'margin-left.px': -(gutter / 2), 'margin-right.px': -(gutter / 2) }">
34
+ <sv-title *ngIf="title">
35
+ <ng-container *nzStringTemplateOutlet="title">{{ title }}</ng-container>
36
+ </sv-title>
37
+ <ng-content></ng-content>
38
+ </div>
39
+ `, isInline: true, components: [{ type: i0.forwardRef(function () { return SVTitleComponent; }), selector: "sv-title, [sv-title]", exportAs: ["svTitle"] }], directives: [{ type: i0.forwardRef(function () { return i2.NgStyle; }), selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i0.forwardRef(function () { return i2.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i0.forwardRef(function () { return i3.NzStringTemplateOutletDirective; }), selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
40
+ __decorate([
41
+ InputNumber()
42
+ ], SVContainerComponent.prototype, "gutter", void 0);
43
+ __decorate([
44
+ InputNumber()
45
+ ], SVContainerComponent.prototype, "labelWidth", void 0);
46
+ __decorate([
47
+ InputNumber()
48
+ ], SVContainerComponent.prototype, "col", void 0);
49
+ __decorate([
50
+ InputBoolean()
51
+ ], SVContainerComponent.prototype, "default", void 0);
52
+ __decorate([
53
+ InputBoolean()
54
+ ], SVContainerComponent.prototype, "noColon", void 0);
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SVContainerComponent, decorators: [{
56
+ type: Component,
57
+ args: [{
58
+ selector: 'sv-container, [sv-container]',
59
+ exportAs: 'svContainer',
60
+ template: `
61
+ <div class="ant-row" [ngStyle]="{ 'margin-left.px': -(gutter / 2), 'margin-right.px': -(gutter / 2) }">
62
+ <sv-title *ngIf="title">
63
+ <ng-container *nzStringTemplateOutlet="title">{{ title }}</ng-container>
64
+ </sv-title>
65
+ <ng-content></ng-content>
66
+ </div>
67
+ `,
68
+ host: {
69
+ '[class.sv__container]': 'true',
70
+ '[class.sv__horizontal]': `layout === 'horizontal'`,
71
+ '[class.sv__vertical]': `layout === 'vertical'`,
72
+ '[class.sv__small]': `size === 'small'`,
73
+ '[class.sv__large]': `size === 'large'`,
74
+ '[class.clearfix]': `true`
75
+ },
76
+ preserveWhitespaces: false,
77
+ changeDetection: ChangeDetectionStrategy.OnPush,
78
+ encapsulation: ViewEncapsulation.None
79
+ }]
80
+ }], ctorParameters: function () { return [{ type: i1.AlainConfigService }]; }, propDecorators: { title: [{
81
+ type: Input
82
+ }], size: [{
83
+ type: Input
84
+ }], gutter: [{
85
+ type: Input
86
+ }], layout: [{
87
+ type: Input
88
+ }], labelWidth: [{
89
+ type: Input
90
+ }], col: [{
91
+ type: Input
92
+ }], default: [{
93
+ type: Input
94
+ }], noColon: [{
95
+ type: Input
96
+ }] } });
97
+ class SVTitleComponent {
98
+ constructor(el, parent, ren) {
99
+ this.parent = parent;
100
+ this.ren = ren;
101
+ if (parent == null) {
102
+ throw new Error(`[sv-title] must include 'sv-container' component`);
103
+ }
104
+ this.el = el.nativeElement;
105
+ }
106
+ setClass() {
107
+ const { gutter } = this.parent;
108
+ const { el } = this;
109
+ this.ren.setStyle(el, 'padding-left', `${gutter / 2}px`);
110
+ this.ren.setStyle(el, 'padding-right', `${gutter / 2}px`);
111
+ }
112
+ ngOnInit() {
113
+ this.setClass();
114
+ }
115
+ }
116
+ SVTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SVTitleComponent, deps: [{ token: i0.ElementRef }, { token: SVContainerComponent, host: true, optional: true }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
117
+ SVTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SVTitleComponent, selector: "sv-title, [sv-title]", host: { properties: { "class.sv__title": "true" } }, exportAs: ["svTitle"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SVTitleComponent, decorators: [{
119
+ type: Component,
120
+ args: [{
121
+ selector: 'sv-title, [sv-title]',
122
+ exportAs: 'svTitle',
123
+ template: '<ng-content></ng-content>',
124
+ host: {
125
+ '[class.sv__title]': 'true'
126
+ },
127
+ preserveWhitespaces: false,
128
+ changeDetection: ChangeDetectionStrategy.OnPush,
129
+ encapsulation: ViewEncapsulation.None
130
+ }]
131
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SVContainerComponent, decorators: [{
132
+ type: Host
133
+ }, {
134
+ type: Optional
135
+ }] }, { type: i0.Renderer2 }]; } });
136
+
137
+ class SVValueComponent {
138
+ constructor() {
139
+ this.size = 'default';
140
+ }
141
+ }
142
+ SVValueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SVValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
143
+ SVValueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SVValueComponent, selector: "sv-value, [sv-value]", inputs: { prefix: "prefix", unit: "unit", tooltip: "tooltip", size: "size" }, host: { properties: { "class.sv__value": "true", "class.sv__value-small": "size === 'small'", "class.sv__value-large": "size === 'large'" } }, exportAs: ["svValue"], ngImport: i0, template: `
144
+ <em *ngIf="prefix" class="sv__value-prefix" [innerHTML]="prefix"></em>
145
+ <span nz-tooltip [nzTooltipTitle]="tooltip" class="sv__value-text"><ng-content></ng-content></span>
146
+ <em *ngIf="unit" class="sv__value-unit" [innerHTML]="unit"></em>
147
+ `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SVValueComponent, decorators: [{
149
+ type: Component,
150
+ args: [{
151
+ selector: 'sv-value, [sv-value]',
152
+ exportAs: 'svValue',
153
+ template: `
154
+ <em *ngIf="prefix" class="sv__value-prefix" [innerHTML]="prefix"></em>
155
+ <span nz-tooltip [nzTooltipTitle]="tooltip" class="sv__value-text"><ng-content></ng-content></span>
156
+ <em *ngIf="unit" class="sv__value-unit" [innerHTML]="unit"></em>
157
+ `,
158
+ host: {
159
+ '[class.sv__value]': 'true',
160
+ '[class.sv__value-small]': `size === 'small'`,
161
+ '[class.sv__value-large]': `size === 'large'`
162
+ },
163
+ preserveWhitespaces: false,
164
+ changeDetection: ChangeDetectionStrategy.OnPush,
165
+ encapsulation: ViewEncapsulation.None
166
+ }]
167
+ }], propDecorators: { prefix: [{
168
+ type: Input
169
+ }], unit: [{
170
+ type: Input
171
+ }], tooltip: [{
172
+ type: Input
173
+ }], size: [{
174
+ type: Input
175
+ }] } });
176
+
177
+ const prefixCls = `sv`;
178
+ class SVComponent {
179
+ constructor(el, parent, rep, ren) {
180
+ this.parent = parent;
181
+ this.rep = rep;
182
+ this.ren = ren;
183
+ this.clsMap = [];
184
+ this._noColon = false;
185
+ if (parent == null) {
186
+ throw new Error(`[sv] must include 'sv-container' component`);
187
+ }
188
+ this.el = el.nativeElement;
189
+ }
190
+ // #endregion
191
+ get paddingValue() {
192
+ return this.parent && this.parent.gutter / 2;
193
+ }
194
+ get labelWidth() {
195
+ const { labelWidth, layout } = this.parent;
196
+ return layout === 'horizontal' ? labelWidth : null;
197
+ }
198
+ setClass() {
199
+ const { el, ren, col, clsMap, type, rep, noColon, parent } = this;
200
+ this._noColon = noColon != null ? noColon : parent.noColon;
201
+ clsMap.forEach(cls => ren.removeClass(el, cls));
202
+ clsMap.length = 0;
203
+ clsMap.push(...rep.genCls(col != null ? col : this.parent.col));
204
+ clsMap.push(`${prefixCls}__item`);
205
+ if (this.parent.labelWidth)
206
+ clsMap.push(`${prefixCls}__item-fixed`);
207
+ if (type)
208
+ clsMap.push(`${prefixCls}__type-${type}`);
209
+ clsMap.forEach(cls => ren.addClass(el, cls));
210
+ }
211
+ ngAfterViewInit() {
212
+ this.setClass();
213
+ this.checkContent();
214
+ }
215
+ ngOnChanges() {
216
+ this.setClass();
217
+ }
218
+ checkContent() {
219
+ const { conEl } = this;
220
+ const def = this.default;
221
+ if (!(def != null ? def : this.parent.default)) {
222
+ return;
223
+ }
224
+ const el = conEl.nativeElement;
225
+ const cls = `sv__default`;
226
+ if (el.classList.contains(cls)) {
227
+ el.classList.remove(cls);
228
+ }
229
+ if (isEmpty(el)) {
230
+ el.classList.add(cls);
231
+ }
232
+ }
233
+ }
234
+ SVComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SVComponent, deps: [{ token: i0.ElementRef }, { token: SVContainerComponent, host: true, optional: true }, { token: i2$2.ResponsiveService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
235
+ SVComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SVComponent, selector: "sv, [sv]", inputs: { optional: "optional", optionalHelp: "optionalHelp", optionalHelpColor: "optionalHelpColor", label: "label", unit: "unit", col: "col", default: "default", type: "type", noColon: "noColon" }, host: { properties: { "style.padding-left.px": "paddingValue", "style.padding-right.px": "paddingValue" } }, viewQueries: [{ propertyName: "conEl", first: true, predicate: ["conEl"], descendants: true }], exportAs: ["sv"], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"sv__label\"\n [class.sv__label-empty]=\"!label\"\n [class.sv__label-width]=\"labelWidth !== null && labelWidth !== undefined\"\n [class.sv__no-colon]=\"_noColon\"\n [style.width.px]=\"labelWidth\"\n>\n <span class=\"sv__label-text\">\n <ng-container *nzStringTemplateOutlet=\"label\">{{ label }}</ng-container>\n </span>\n <span *ngIf=\"optional || optionalHelp\" class=\"sv__label-optional\" [class.sv__label-optional-no-text]=\"!optional\">\n <ng-container *nzStringTemplateOutlet=\"optional\">{{ optional }}</ng-container>\n <i\n *ngIf=\"optionalHelp\"\n nz-tooltip\n [nzTooltipTitle]=\"optionalHelp\"\n [nzTooltipColor]=\"optionalHelpColor\"\n nz-icon\n nzType=\"question-circle\"\n ></i>\n </span>\n</div>\n<div class=\"sv__detail\">\n <span (cdkObserveContent)=\"checkContent()\" #conEl>\n <ng-content></ng-content>\n </span>\n <ng-container *ngIf=\"!!unit\">\n <span class=\"sv__unit\" *nzStringTemplateOutlet=\"unit\">{{ unit }}</span>\n </ng-container>\n</div>\n", directives: [{ type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i7.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
236
+ __decorate([
237
+ InputNumber(null)
238
+ ], SVComponent.prototype, "col", void 0);
239
+ __decorate([
240
+ InputBoolean(null)
241
+ ], SVComponent.prototype, "default", void 0);
242
+ __decorate([
243
+ InputBoolean(null)
244
+ ], SVComponent.prototype, "noColon", void 0);
245
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SVComponent, decorators: [{
246
+ type: Component,
247
+ args: [{ selector: 'sv, [sv]', exportAs: 'sv', host: {
248
+ '[style.padding-left.px]': 'paddingValue',
249
+ '[style.padding-right.px]': 'paddingValue'
250
+ }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div\n class=\"sv__label\"\n [class.sv__label-empty]=\"!label\"\n [class.sv__label-width]=\"labelWidth !== null && labelWidth !== undefined\"\n [class.sv__no-colon]=\"_noColon\"\n [style.width.px]=\"labelWidth\"\n>\n <span class=\"sv__label-text\">\n <ng-container *nzStringTemplateOutlet=\"label\">{{ label }}</ng-container>\n </span>\n <span *ngIf=\"optional || optionalHelp\" class=\"sv__label-optional\" [class.sv__label-optional-no-text]=\"!optional\">\n <ng-container *nzStringTemplateOutlet=\"optional\">{{ optional }}</ng-container>\n <i\n *ngIf=\"optionalHelp\"\n nz-tooltip\n [nzTooltipTitle]=\"optionalHelp\"\n [nzTooltipColor]=\"optionalHelpColor\"\n nz-icon\n nzType=\"question-circle\"\n ></i>\n </span>\n</div>\n<div class=\"sv__detail\">\n <span (cdkObserveContent)=\"checkContent()\" #conEl>\n <ng-content></ng-content>\n </span>\n <ng-container *ngIf=\"!!unit\">\n <span class=\"sv__unit\" *nzStringTemplateOutlet=\"unit\">{{ unit }}</span>\n </ng-container>\n</div>\n" }]
251
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SVContainerComponent, decorators: [{
252
+ type: Host
253
+ }, {
254
+ type: Optional
255
+ }] }, { type: i2$2.ResponsiveService }, { type: i0.Renderer2 }]; }, propDecorators: { conEl: [{
256
+ type: ViewChild,
257
+ args: ['conEl', { static: false }]
258
+ }], optional: [{
259
+ type: Input
260
+ }], optionalHelp: [{
261
+ type: Input
262
+ }], optionalHelpColor: [{
263
+ type: Input
264
+ }], label: [{
265
+ type: Input
266
+ }], unit: [{
267
+ type: Input
268
+ }], col: [{
269
+ type: Input
270
+ }], default: [{
271
+ type: Input
272
+ }], type: [{
273
+ type: Input
274
+ }], noColon: [{
275
+ type: Input
276
+ }] } });
277
+
278
+ const COMPONENTS = [SVContainerComponent, SVComponent, SVTitleComponent, SVValueComponent];
279
+ class SVModule {
280
+ }
281
+ SVModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SVModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
282
+ SVModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SVModule, declarations: [SVContainerComponent, SVComponent, SVTitleComponent, SVValueComponent], imports: [CommonModule, ObserversModule, NzToolTipModule, NzIconModule, NzOutletModule], exports: [SVContainerComponent, SVComponent, SVTitleComponent, SVValueComponent] });
283
+ SVModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SVModule, imports: [[CommonModule, ObserversModule, NzToolTipModule, NzIconModule, NzOutletModule]] });
284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SVModule, decorators: [{
285
+ type: NgModule,
286
+ args: [{
287
+ imports: [CommonModule, ObserversModule, NzToolTipModule, NzIconModule, NzOutletModule],
288
+ declarations: COMPONENTS,
289
+ exports: COMPONENTS
290
+ }]
291
+ }] });
292
+
293
+ /**
294
+ * Generated bundle index. Do not edit.
295
+ */
296
+
297
+ export { SVComponent, SVContainerComponent, SVModule, SVTitleComponent, SVValueComponent };
298
+ //# sourceMappingURL=view.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view.mjs","sources":["../../../../packages/abc/sv/sv-container.component.ts","../../../../packages/abc/sv/sv-value.component.ts","../../../../packages/abc/sv/sv.component.ts","../../../../packages/abc/sv/sv.component.html","../../../../packages/abc/sv/sv.module.ts","../../../../packages/abc/sv/view.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Host,\n Input,\n OnInit,\n Optional,\n Renderer2,\n TemplateRef,\n ViewEncapsulation\n} from '@angular/core';\n\nimport { AlainConfigService } from '@delon/util/config';\nimport { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator';\n\n@Component({\n selector: 'sv-container, [sv-container]',\n exportAs: 'svContainer',\n template: `\n <div class=\"ant-row\" [ngStyle]=\"{ 'margin-left.px': -(gutter / 2), 'margin-right.px': -(gutter / 2) }\">\n <sv-title *ngIf=\"title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </sv-title>\n <ng-content></ng-content>\n </div>\n `,\n host: {\n '[class.sv__container]': 'true',\n '[class.sv__horizontal]': `layout === 'horizontal'`,\n '[class.sv__vertical]': `layout === 'vertical'`,\n '[class.sv__small]': `size === 'small'`,\n '[class.sv__large]': `size === 'large'`,\n '[class.clearfix]': `true`\n },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class SVContainerComponent {\n static ngAcceptInputType_gutter: NumberInput;\n static ngAcceptInputType_labelWidth: NumberInput;\n static ngAcceptInputType_col: NumberInput;\n static ngAcceptInputType_default: BooleanInput;\n static ngAcceptInputType_noColon: BooleanInput;\n\n @Input() title?: string | TemplateRef<void>;\n @Input() size!: 'small' | 'large';\n /** 列表项间距,单位为 `px` */\n @Input() @InputNumber() gutter!: number;\n @Input() layout!: 'horizontal' | 'vertical';\n @Input() @InputNumber() labelWidth?: number;\n /** 指定信息最多分几列展示,最终一行几列由 col 配置结合响应式规则决定 */\n @Input() @InputNumber() col!: number;\n @Input() @InputBoolean() default!: boolean;\n @Input() @InputBoolean() noColon = false;\n\n constructor(configSrv: AlainConfigService) {\n configSrv.attach(this, 'sv', {\n size: 'large',\n gutter: 32,\n layout: 'horizontal',\n col: 3,\n default: true\n });\n }\n}\n\n@Component({\n selector: 'sv-title, [sv-title]',\n exportAs: 'svTitle',\n template: '<ng-content></ng-content>',\n host: {\n '[class.sv__title]': 'true'\n },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class SVTitleComponent implements OnInit {\n private el: HTMLElement;\n constructor(el: ElementRef, @Host() @Optional() private parent: SVContainerComponent, private ren: Renderer2) {\n if (parent == null) {\n throw new Error(`[sv-title] must include 'sv-container' component`);\n }\n this.el = el.nativeElement;\n }\n\n private setClass(): void {\n const { gutter } = this.parent;\n const { el } = this;\n this.ren.setStyle(el, 'padding-left', `${gutter / 2}px`);\n this.ren.setStyle(el, 'padding-right', `${gutter / 2}px`);\n }\n\n ngOnInit(): void {\n this.setClass();\n }\n}\n","import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\n\nimport type { NzTSType } from 'ng-zorro-antd/core/types';\n\n@Component({\n selector: 'sv-value, [sv-value]',\n exportAs: 'svValue',\n template: `\n <em *ngIf=\"prefix\" class=\"sv__value-prefix\" [innerHTML]=\"prefix\"></em>\n <span nz-tooltip [nzTooltipTitle]=\"tooltip\" class=\"sv__value-text\"><ng-content></ng-content></span>\n <em *ngIf=\"unit\" class=\"sv__value-unit\" [innerHTML]=\"unit\"></em>\n `,\n host: {\n '[class.sv__value]': 'true',\n '[class.sv__value-small]': `size === 'small'`,\n '[class.sv__value-large]': `size === 'large'`\n },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class SVValueComponent {\n @Input() prefix?: string;\n @Input() unit?: string;\n @Input() tooltip?: NzTSType | null;\n @Input() size: 'large' | 'small' | 'default' = 'default';\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Host,\n Input,\n OnChanges,\n Optional,\n Renderer2,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\n\nimport { ResponsiveService } from '@delon/theme';\nimport { isEmpty } from '@delon/util/browser';\nimport { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator';\n\nimport { SVContainerComponent } from './sv-container.component';\n\nconst prefixCls = `sv`;\n\n@Component({\n selector: 'sv, [sv]',\n exportAs: 'sv',\n templateUrl: './sv.component.html',\n host: {\n '[style.padding-left.px]': 'paddingValue',\n '[style.padding-right.px]': 'paddingValue'\n },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class SVComponent implements AfterViewInit, OnChanges {\n static ngAcceptInputType_col: NumberInput;\n static ngAcceptInputType_default: BooleanInput;\n static ngAcceptInputType_noColon: BooleanInput;\n\n @ViewChild('conEl', { static: false })\n private conEl!: ElementRef;\n private el: HTMLElement;\n private clsMap: string[] = [];\n _noColon = false;\n\n // #region fields\n\n @Input() optional?: string | TemplateRef<void> | null;\n @Input() optionalHelp?: string | TemplateRef<void> | null;\n @Input() optionalHelpColor?: string;\n @Input() label?: string | TemplateRef<void> | null;\n @Input() unit?: string | TemplateRef<void> | null;\n @Input() @InputNumber(null) col?: number | null;\n @Input() @InputBoolean(null) default?: boolean | null;\n @Input() type?: 'primary' | 'success' | 'danger' | 'warning';\n @Input() @InputBoolean(null) noColon?: boolean | null;\n\n // #endregion\n\n get paddingValue(): number {\n return this.parent && this.parent.gutter / 2;\n }\n\n get labelWidth(): number | null | undefined {\n const { labelWidth, layout } = this.parent;\n return layout === 'horizontal' ? labelWidth : null;\n }\n\n constructor(\n el: ElementRef,\n @Host() @Optional() public parent: SVContainerComponent,\n private rep: ResponsiveService,\n private ren: Renderer2\n ) {\n if (parent == null) {\n throw new Error(`[sv] must include 'sv-container' component`);\n }\n this.el = el.nativeElement;\n }\n\n private setClass(): void {\n const { el, ren, col, clsMap, type, rep, noColon, parent } = this;\n this._noColon = noColon != null ? noColon : parent.noColon;\n clsMap.forEach(cls => ren.removeClass(el, cls));\n clsMap.length = 0;\n clsMap.push(...rep.genCls(col != null ? col : this.parent.col));\n clsMap.push(`${prefixCls}__item`);\n if (this.parent.labelWidth) clsMap.push(`${prefixCls}__item-fixed`);\n if (type) clsMap.push(`${prefixCls}__type-${type}`);\n clsMap.forEach(cls => ren.addClass(el, cls));\n }\n\n ngAfterViewInit(): void {\n this.setClass();\n this.checkContent();\n }\n\n ngOnChanges(): void {\n this.setClass();\n }\n\n checkContent(): void {\n const { conEl } = this;\n const def = this.default;\n if (!(def != null ? def : this.parent.default)) {\n return;\n }\n const el = conEl.nativeElement as HTMLElement;\n const cls = `sv__default`;\n if (el.classList.contains(cls)) {\n el.classList.remove(cls);\n }\n if (isEmpty(el)) {\n el.classList.add(cls);\n }\n }\n}\n","<div\n class=\"sv__label\"\n [class.sv__label-empty]=\"!label\"\n [class.sv__label-width]=\"labelWidth !== null && labelWidth !== undefined\"\n [class.sv__no-colon]=\"_noColon\"\n [style.width.px]=\"labelWidth\"\n>\n <span class=\"sv__label-text\">\n <ng-container *nzStringTemplateOutlet=\"label\">{{ label }}</ng-container>\n </span>\n <span *ngIf=\"optional || optionalHelp\" class=\"sv__label-optional\" [class.sv__label-optional-no-text]=\"!optional\">\n <ng-container *nzStringTemplateOutlet=\"optional\">{{ optional }}</ng-container>\n <i\n *ngIf=\"optionalHelp\"\n nz-tooltip\n [nzTooltipTitle]=\"optionalHelp\"\n [nzTooltipColor]=\"optionalHelpColor\"\n nz-icon\n nzType=\"question-circle\"\n ></i>\n </span>\n</div>\n<div class=\"sv__detail\">\n <span (cdkObserveContent)=\"checkContent()\" #conEl>\n <ng-content></ng-content>\n </span>\n <ng-container *ngIf=\"!!unit\">\n <span class=\"sv__unit\" *nzStringTemplateOutlet=\"unit\">{{ unit }}</span>\n </ng-container>\n</div>\n","import { ObserversModule } from '@angular/cdk/observers';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzToolTipModule } from 'ng-zorro-antd/tooltip';\n\nimport { SVContainerComponent, SVTitleComponent } from './sv-container.component';\nimport { SVValueComponent } from './sv-value.component';\nimport { SVComponent } from './sv.component';\n\nconst COMPONENTS = [SVContainerComponent, SVComponent, SVTitleComponent, SVValueComponent];\n\n@NgModule({\n imports: [CommonModule, ObserversModule, NzToolTipModule, NzIconModule, NzOutletModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class SVModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAuCa,oBAAoB;IAkB/B,YAAY,SAA6B;QAFhB,YAAO,GAAG,KAAK,CAAC;QAGvC,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE;YAC3B,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,YAAY;YACpB,GAAG,EAAE,CAAC;YACN,OAAO,EAAE,IAAI;SACd,CAAC,CAAC;KACJ;;iHA1BU,oBAAoB;qGAApB,oBAAoB,8fApBrB;;;;;;;GAOT,0EAqDU,gBAAgB;AA9BH;IAAd,WAAW,EAAE;oDAAiB;AAEhB;IAAd,WAAW,EAAE;wDAAqB;AAEpB;IAAd,WAAW,EAAE;iDAAc;AACZ;IAAf,YAAY,EAAE;qDAAmB;AAClB;IAAf,YAAY,EAAE;qDAAiB;2FAhB9B,oBAAoB;kBAvBhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,8BAA8B;oBACxC,QAAQ,EAAE,aAA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9BX,KAAK;sBADZ,SAAS;uBAAC,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;gBAQ5B,QAAQ;sBAAhB,KAAK;gBACG,YAAY;sBAApB,KAAK;gBACG,iBAAiB;sBAAzB,KAAK;gBACG,KAAK;sBAAb,KAAK;gBACG,IAAI;sBAAZ,KAAK;gBACsB,GAAG;sBAA9B,KAAK;gBACuB,OAAO;sBAAnC,KAAK;gBACG,IAAI;sBAAZ,KAAK;gBACuB,OAAO;sBAAnC,KAAK;;;AE5CR,MAAM,UAAU,GAAG,CAAC,oBAAoB,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;MAO9E,QAAQ;;qGAAR,QAAQ;sGAAR,QAAQ,iBAPD,oBAAoB,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,aAG7E,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,aAHpE,oBAAoB,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB;sGAO5E,QAAQ,YAJV,CAAC,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,CAAC;2FAI5E,QAAQ;kBALpB,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,CAAC;oBACvF,YAAY,EAAE,UAAU;oBACxB,OAAO,EAAE,UAAU;iBACpB;;;AClBD;;;;;;"}
@@ -0,0 +1,175 @@
1
+ import { __decorate } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { Injectable, Directive, Input, NgModule } from '@angular/core';
4
+ import isUtf8 from 'isutf8';
5
+ import { ZoneOutside } from '@delon/util/decorator';
6
+ import * as i1 from '@angular/common/http';
7
+ import * as i2 from '@delon/util/other';
8
+ import * as i3 from '@delon/util/config';
9
+ import { CommonModule } from '@angular/common';
10
+
11
+ class XlsxService {
12
+ constructor(http, lazy, configSrv, ngZone) {
13
+ this.http = http;
14
+ this.lazy = lazy;
15
+ this.ngZone = ngZone;
16
+ this.cog = configSrv.merge('xlsx', {
17
+ url: 'https://cdn.jsdelivr.net/npm/xlsx/dist/xlsx.full.min.js',
18
+ modules: [`https://cdn.jsdelivr.net/npm/xlsx/dist/cpexcel.js`]
19
+ });
20
+ }
21
+ init() {
22
+ return typeof XLSX !== 'undefined'
23
+ ? Promise.resolve([])
24
+ : this.lazy.load([this.cog.url].concat(this.cog.modules));
25
+ }
26
+ read(data) {
27
+ const { read, utils: { sheet_to_json } } = XLSX;
28
+ const ret = {};
29
+ const buf = new Uint8Array(data);
30
+ let type = 'array';
31
+ if (!isUtf8(buf)) {
32
+ try {
33
+ data = cptable.utils.decode(936, buf);
34
+ type = 'string';
35
+ }
36
+ catch { }
37
+ }
38
+ const wb = read(data, { type });
39
+ wb.SheetNames.forEach((name) => {
40
+ const sheet = wb.Sheets[name];
41
+ ret[name] = sheet_to_json(sheet, { header: 1 });
42
+ });
43
+ return ret;
44
+ }
45
+ /**
46
+ * 导入Excel并输出JSON,支持 `<input type="file">`、URL 形式
47
+ */
48
+ import(fileOrUrl) {
49
+ return new Promise((resolve, reject) => {
50
+ const r = (data) => this.ngZone.run(() => resolve(this.read(data)));
51
+ this.init()
52
+ .then(() => {
53
+ // from url
54
+ if (typeof fileOrUrl === 'string') {
55
+ this.http.request('GET', fileOrUrl, { responseType: 'arraybuffer' }).subscribe({
56
+ next: (res) => r(new Uint8Array(res)),
57
+ error: (err) => reject(err)
58
+ });
59
+ return;
60
+ }
61
+ // from file
62
+ const reader = new FileReader();
63
+ reader.onload = (e) => r(e.target.result);
64
+ reader.onerror = (e) => reject(e);
65
+ reader.readAsArrayBuffer(fileOrUrl);
66
+ })
67
+ .catch(() => reject(`Unable to load xlsx.js`));
68
+ });
69
+ }
70
+ async export(options) {
71
+ return new Promise((resolve, reject) => {
72
+ this.init()
73
+ .then(() => {
74
+ options = { format: 'xlsx', ...options };
75
+ const { writeFile, utils: { book_new, aoa_to_sheet, book_append_sheet } } = XLSX;
76
+ const wb = book_new();
77
+ if (Array.isArray(options.sheets)) {
78
+ options.sheets.forEach((value, index) => {
79
+ const ws = aoa_to_sheet(value.data);
80
+ book_append_sheet(wb, ws, value.name || `Sheet${index + 1}`);
81
+ });
82
+ }
83
+ else {
84
+ wb.SheetNames = Object.keys(options.sheets);
85
+ wb.Sheets = options.sheets;
86
+ }
87
+ if (options.callback)
88
+ options.callback(wb);
89
+ const filename = options.filename || `export.${options.format}`;
90
+ writeFile(wb, filename, {
91
+ bookType: options.format,
92
+ bookSST: false,
93
+ type: 'array',
94
+ ...options.opts
95
+ });
96
+ resolve({ filename, wb });
97
+ })
98
+ .catch(err => reject(err));
99
+ });
100
+ }
101
+ /**
102
+ * 数据转符号名
103
+ * - `1` => `A`
104
+ * - `27` => `AA`
105
+ * - `703` => `AAA`
106
+ */
107
+ numberToSchema(val) {
108
+ const startCode = 'A'.charCodeAt(0);
109
+ let res = '';
110
+ do {
111
+ --val;
112
+ res = String.fromCharCode(startCode + (val % 26)) + res;
113
+ val = (val / 26) >> 0;
114
+ } while (val > 0);
115
+ return res;
116
+ }
117
+ }
118
+ XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxService, deps: [{ token: i1.HttpClient }, { token: i2.LazyService }, { token: i3.AlainConfigService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
119
+ XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxService, providedIn: 'root' });
120
+ __decorate([
121
+ ZoneOutside()
122
+ ], XlsxService.prototype, "read", null);
123
+ __decorate([
124
+ ZoneOutside()
125
+ ], XlsxService.prototype, "export", null);
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxService, decorators: [{
127
+ type: Injectable,
128
+ args: [{ providedIn: 'root' }]
129
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i2.LazyService }, { type: i3.AlainConfigService }, { type: i0.NgZone }]; }, propDecorators: { read: [], export: [] } });
130
+
131
+ class XlsxDirective {
132
+ constructor(srv) {
133
+ this.srv = srv;
134
+ }
135
+ _click() {
136
+ this.srv.export(this.data);
137
+ }
138
+ }
139
+ XlsxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxDirective, deps: [{ token: XlsxService }], target: i0.ɵɵFactoryTarget.Directive });
140
+ XlsxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: XlsxDirective, selector: "[xlsx]", inputs: { data: ["xlsx", "data"] }, host: { listeners: { "click": "_click()" } }, exportAs: ["xlsx"], ngImport: i0 });
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxDirective, decorators: [{
142
+ type: Directive,
143
+ args: [{
144
+ selector: '[xlsx]',
145
+ exportAs: 'xlsx',
146
+ host: {
147
+ '(click)': '_click()'
148
+ }
149
+ }]
150
+ }], ctorParameters: function () { return [{ type: XlsxService }]; }, propDecorators: { data: [{
151
+ type: Input,
152
+ args: ['xlsx']
153
+ }] } });
154
+
155
+ const COMPONENTS = [XlsxDirective];
156
+ class XlsxModule {
157
+ }
158
+ XlsxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
159
+ XlsxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxModule, declarations: [XlsxDirective], imports: [CommonModule], exports: [XlsxDirective] });
160
+ XlsxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxModule, imports: [[CommonModule]] });
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxModule, decorators: [{
162
+ type: NgModule,
163
+ args: [{
164
+ imports: [CommonModule],
165
+ declarations: COMPONENTS,
166
+ exports: COMPONENTS
167
+ }]
168
+ }] });
169
+
170
+ /**
171
+ * Generated bundle index. Do not edit.
172
+ */
173
+
174
+ export { XlsxDirective, XlsxModule, XlsxService };
175
+ //# sourceMappingURL=xlsx.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xlsx.mjs","sources":["../../../../packages/abc/xlsx/xlsx.service.ts","../../../../packages/abc/xlsx/xlsx.directive.ts","../../../../packages/abc/xlsx/xlsx.module.ts","../../../../packages/abc/xlsx/xlsx.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, NgZone } from '@angular/core';\n\nimport isUtf8 from 'isutf8';\n\nimport { AlainConfigService, AlainXlsxConfig } from '@delon/util/config';\nimport { ZoneOutside } from '@delon/util/decorator';\nimport { LazyResult, LazyService } from '@delon/util/other';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport { XlsxExportOptions, XlsxExportResult, XlsxExportSheet } from './xlsx.types';\n\ndeclare var XLSX: NzSafeAny;\ndeclare var cptable: NzSafeAny;\n\n@Injectable({ providedIn: 'root' })\nexport class XlsxService {\n constructor(\n private http: HttpClient,\n private lazy: LazyService,\n configSrv: AlainConfigService,\n private ngZone: NgZone\n ) {\n this.cog = configSrv.merge('xlsx', {\n url: 'https://cdn.jsdelivr.net/npm/xlsx/dist/xlsx.full.min.js',\n modules: [`https://cdn.jsdelivr.net/npm/xlsx/dist/cpexcel.js`]\n })!;\n }\n private cog: AlainXlsxConfig;\n\n private init(): Promise<LazyResult[]> {\n return typeof XLSX !== 'undefined'\n ? Promise.resolve([])\n : this.lazy.load([this.cog.url!].concat(this.cog.modules!));\n }\n\n @ZoneOutside()\n private read(data: NzSafeAny): { [key: string]: NzSafeAny[][] } {\n const {\n read,\n utils: { sheet_to_json }\n } = XLSX;\n const ret: NzSafeAny = {};\n const buf = new Uint8Array(data);\n let type = 'array';\n if (!isUtf8(buf)) {\n try {\n data = cptable.utils.decode(936, buf);\n type = 'string';\n } catch {}\n }\n const wb = read(data, { type });\n wb.SheetNames.forEach((name: string) => {\n const sheet: NzSafeAny = wb.Sheets[name];\n ret[name] = sheet_to_json(sheet, { header: 1 });\n });\n return ret;\n }\n\n /**\n * 导入Excel并输出JSON,支持 `<input type=\"file\">`、URL 形式\n */\n import(fileOrUrl: File | string): Promise<{ [key: string]: NzSafeAny[][] }> {\n return new Promise<{ [key: string]: NzSafeAny[][] }>((resolve, reject) => {\n const r = (data: NzSafeAny): void => this.ngZone.run(() => resolve(this.read(data)));\n this.init()\n .then(() => {\n // from url\n if (typeof fileOrUrl === 'string') {\n this.http.request('GET', fileOrUrl, { responseType: 'arraybuffer' }).subscribe({\n next: (res: ArrayBuffer) => r(new Uint8Array(res)),\n error: (err: NzSafeAny) => reject(err)\n });\n return;\n }\n // from file\n const reader: FileReader = new FileReader();\n reader.onload = (e: NzSafeAny) => r(e.target.result);\n reader.onerror = (e: NzSafeAny) => reject(e);\n reader.readAsArrayBuffer(fileOrUrl);\n })\n .catch(() => reject(`Unable to load xlsx.js`));\n });\n }\n\n @ZoneOutside()\n async export(options: XlsxExportOptions): Promise<XlsxExportResult> {\n return new Promise<XlsxExportResult>((resolve, reject) => {\n this.init()\n .then(() => {\n options = { format: 'xlsx', ...options };\n const {\n writeFile,\n utils: { book_new, aoa_to_sheet, book_append_sheet }\n } = XLSX;\n const wb: NzSafeAny = book_new();\n if (Array.isArray(options.sheets)) {\n (options.sheets as XlsxExportSheet[]).forEach((value: XlsxExportSheet, index: number) => {\n const ws: NzSafeAny = aoa_to_sheet(value.data);\n book_append_sheet(wb, ws, value.name || `Sheet${index + 1}`);\n });\n } else {\n wb.SheetNames = Object.keys(options.sheets);\n wb.Sheets = options.sheets;\n }\n\n if (options.callback) options.callback(wb);\n\n const filename = options.filename || `export.${options.format}`;\n writeFile(wb, filename, {\n bookType: options.format,\n bookSST: false,\n type: 'array',\n ...options.opts\n });\n\n resolve({ filename, wb });\n })\n .catch(err => reject(err));\n });\n }\n\n /**\n * 数据转符号名\n * - `1` => `A`\n * - `27` => `AA`\n * - `703` => `AAA`\n */\n numberToSchema(val: number): string {\n const startCode = 'A'.charCodeAt(0);\n let res = '';\n\n do {\n --val;\n res = String.fromCharCode(startCode + (val % 26)) + res;\n val = (val / 26) >> 0;\n } while (val > 0);\n\n return res;\n }\n}\n","import { Directive, Input } from '@angular/core';\n\nimport { XlsxService } from './xlsx.service';\nimport { XlsxExportOptions } from './xlsx.types';\n\n@Directive({\n selector: '[xlsx]',\n exportAs: 'xlsx',\n host: {\n '(click)': '_click()'\n }\n})\nexport class XlsxDirective {\n @Input('xlsx') data!: XlsxExportOptions;\n\n constructor(private srv: XlsxService) {}\n\n _click(): void {\n this.srv.export(this.data);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { XlsxDirective } from './xlsx.directive';\n\nconst COMPONENTS = [XlsxDirective];\n\n@NgModule({\n imports: [CommonModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class XlsxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;MAgBa,WAAW;IACtB,YACU,IAAgB,EAChB,IAAiB,EACzB,SAA6B,EACrB,MAAc;QAHd,SAAI,GAAJ,IAAI,CAAY;QAChB,SAAI,GAAJ,IAAI,CAAa;QAEjB,WAAM,GAAN,MAAM,CAAQ;QAEtB,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE;YACjC,GAAG,EAAE,yDAAyD;YAC9D,OAAO,EAAE,CAAC,mDAAmD,CAAC;SAC/D,CAAE,CAAC;KACL;IAGO,IAAI;QACV,OAAO,OAAO,IAAI,KAAK,WAAW;cAC9B,OAAO,CAAC,OAAO,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