@delon/abc 13.5.2 → 14.0.0

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 (350) hide show
  1. package/auto-focus/auto-focus.directive.d.ts +1 -1
  2. package/avatar-list/avatar-list-item.component.d.ts +1 -1
  3. package/avatar-list/avatar-list.component.d.ts +1 -1
  4. package/avatar-list/{avatar-list.d.ts → index.d.ts} +0 -0
  5. package/count-down/count-down.component.d.ts +1 -1
  6. package/count-down/{count-down.d.ts → index.d.ts} +0 -0
  7. package/date-picker/{date-picker.d.ts → index.d.ts} +0 -0
  8. package/date-picker/range-shortcut.component.d.ts +1 -1
  9. package/date-picker/range.directive.d.ts +5 -6
  10. package/down-file/down-file.directive.d.ts +1 -1
  11. package/down-file/{down-file.d.ts → index.d.ts} +0 -0
  12. package/ellipsis/ellipsis.component.d.ts +1 -1
  13. package/ellipsis/{ellipsis.d.ts → index.d.ts} +0 -0
  14. package/error-collect/error-collect.component.d.ts +1 -1
  15. package/error-collect/{error-collect.d.ts → index.d.ts} +0 -0
  16. package/esm2020/auto-focus/auto-focus.directive.mjs +4 -4
  17. package/esm2020/auto-focus/auto-focus.module.mjs +5 -5
  18. package/esm2020/avatar-list/avatar-list-item.component.mjs +4 -4
  19. package/esm2020/avatar-list/avatar-list.component.mjs +6 -6
  20. package/esm2020/avatar-list/avatar-list.module.mjs +5 -5
  21. package/esm2020/count-down/count-down.component.mjs +6 -6
  22. package/esm2020/count-down/count-down.module.mjs +5 -5
  23. package/esm2020/date-picker/date-picker.module.mjs +5 -5
  24. package/esm2020/date-picker/range-shortcut.component.mjs +5 -5
  25. package/esm2020/date-picker/range.directive.mjs +8 -10
  26. package/esm2020/down-file/down-file.directive.mjs +4 -4
  27. package/esm2020/down-file/down-file.module.mjs +5 -5
  28. package/esm2020/ellipsis/ellipsis.component.mjs +6 -6
  29. package/esm2020/ellipsis/ellipsis.module.mjs +5 -5
  30. package/esm2020/error-collect/error-collect.component.mjs +5 -5
  31. package/esm2020/error-collect/error-collect.module.mjs +5 -5
  32. package/esm2020/exception/exception.component.mjs +8 -8
  33. package/esm2020/exception/exception.module.mjs +5 -5
  34. package/esm2020/footer-toolbar/footer-toolbar.component.mjs +7 -7
  35. package/esm2020/footer-toolbar/footer-toolbar.module.mjs +5 -5
  36. package/esm2020/full-content/full-content-toggle.directive.mjs +4 -4
  37. package/esm2020/full-content/full-content.component.mjs +4 -4
  38. package/esm2020/full-content/full-content.module.mjs +5 -5
  39. package/esm2020/full-content/full-content.service.mjs +4 -4
  40. package/esm2020/global-footer/global-footer-item.component.mjs +4 -4
  41. package/esm2020/global-footer/global-footer.component.mjs +4 -4
  42. package/esm2020/global-footer/global-footer.module.mjs +5 -5
  43. package/esm2020/let/let.directive.mjs +4 -4
  44. package/esm2020/let/let.module.mjs +5 -5
  45. package/esm2020/loading/loading.component.mjs +7 -7
  46. package/esm2020/loading/loading.module.mjs +5 -5
  47. package/esm2020/loading/loading.service.mjs +8 -5
  48. package/esm2020/lodop/lodop.module.mjs +5 -5
  49. package/esm2020/lodop/lodop.service.mjs +4 -4
  50. package/esm2020/media/media.component.mjs +4 -4
  51. package/esm2020/media/media.module.mjs +5 -5
  52. package/esm2020/media/media.service.mjs +4 -4
  53. package/esm2020/notice-icon/notice-icon-tab.component.mjs +7 -7
  54. package/esm2020/notice-icon/notice-icon.component.mjs +11 -11
  55. package/esm2020/notice-icon/notice-icon.module.mjs +14 -16
  56. package/esm2020/observers/chart-observer-size.mjs +5 -0
  57. package/esm2020/observers/observer-size.mjs +116 -0
  58. package/esm2020/observers/public-api.mjs +2 -0
  59. package/esm2020/onboarding/onboarding.component.mjs +10 -10
  60. package/esm2020/onboarding/onboarding.module.mjs +7 -5
  61. package/esm2020/onboarding/onboarding.service.mjs +8 -7
  62. package/esm2020/page-header/page-header.component.mjs +9 -9
  63. package/esm2020/page-header/page-header.module.mjs +5 -5
  64. package/esm2020/pdf/pdf.component.mjs +17 -14
  65. package/esm2020/pdf/pdf.module.mjs +5 -5
  66. package/esm2020/pdf/pdf.types.mjs +1 -1
  67. package/esm2020/qr/qr.component.mjs +4 -4
  68. package/esm2020/qr/qr.module.mjs +5 -5
  69. package/esm2020/quick-menu/quick-menu.component.mjs +6 -6
  70. package/esm2020/quick-menu/quick-menu.module.mjs +5 -5
  71. package/esm2020/result/result.component.mjs +7 -7
  72. package/esm2020/result/result.module.mjs +5 -5
  73. package/esm2020/reuse-tab/public_api.mjs +2 -1
  74. package/esm2020/reuse-tab/reuse-tab-context-menu.component.mjs +6 -6
  75. package/esm2020/reuse-tab/reuse-tab-context.component.mjs +4 -4
  76. package/esm2020/reuse-tab/reuse-tab-context.directive.mjs +4 -4
  77. package/esm2020/reuse-tab/reuse-tab-context.service.mjs +4 -4
  78. package/esm2020/reuse-tab/reuse-tab.component.mjs +46 -14
  79. package/esm2020/reuse-tab/reuse-tab.interfaces.mjs +1 -1
  80. package/esm2020/reuse-tab/reuse-tab.module.mjs +25 -5
  81. package/esm2020/reuse-tab/reuse-tab.service.mjs +33 -8
  82. package/esm2020/reuse-tab/reuse-tab.state.mjs +16 -0
  83. package/esm2020/se/se-container.component.mjs +8 -8
  84. package/esm2020/se/se.component.mjs +14 -10
  85. package/esm2020/se/se.module.mjs +5 -5
  86. package/esm2020/sg/sg-container.component.mjs +4 -4
  87. package/esm2020/sg/sg.component.mjs +4 -4
  88. package/esm2020/sg/sg.module.mjs +5 -5
  89. package/esm2020/st/st-column-source.mjs +4 -4
  90. package/esm2020/st/st-data-source.mjs +26 -11
  91. package/esm2020/st/st-export.mjs +4 -4
  92. package/esm2020/st/st-filter.component.mjs +13 -13
  93. package/esm2020/st/st-row.directive.mjs +7 -7
  94. package/esm2020/st/st-widget-host.directive.mjs +4 -4
  95. package/esm2020/st/st-widget.mjs +4 -4
  96. package/esm2020/st/st.component.mjs +28 -26
  97. package/esm2020/st/st.config.mjs +2 -1
  98. package/esm2020/st/st.interfaces.mjs +1 -1
  99. package/esm2020/st/st.module.mjs +23 -25
  100. package/esm2020/sv/sv-container.component.mjs +8 -8
  101. package/esm2020/sv/sv-value.component.mjs +5 -5
  102. package/esm2020/sv/sv.component.mjs +7 -7
  103. package/esm2020/sv/sv.module.mjs +5 -5
  104. package/esm2020/tag-select/tag-select.component.mjs +4 -4
  105. package/esm2020/tag-select/tag-select.module.mjs +5 -5
  106. package/esm2020/xlsx/xlsx.directive.mjs +4 -4
  107. package/esm2020/xlsx/xlsx.module.mjs +5 -5
  108. package/esm2020/xlsx/xlsx.service.mjs +4 -4
  109. package/esm2020/zip/zip.module.mjs +5 -5
  110. package/esm2020/zip/zip.service.mjs +14 -12
  111. package/esm2020/zip/zip.types.mjs +1 -1
  112. package/exception/exception.component.d.ts +1 -1
  113. package/exception/{exception.d.ts → index.d.ts} +0 -0
  114. package/fesm2015/auto-focus.mjs +7 -7
  115. package/fesm2015/auto-focus.mjs.map +1 -1
  116. package/fesm2015/avatar-list.mjs +13 -13
  117. package/fesm2015/avatar-list.mjs.map +1 -1
  118. package/fesm2015/chart-observer-size.mjs +124 -0
  119. package/fesm2015/chart-observer-size.mjs.map +1 -0
  120. package/fesm2015/count-down.mjs +10 -10
  121. package/fesm2015/count-down.mjs.map +1 -1
  122. package/fesm2015/date-picker.mjs +15 -17
  123. package/fesm2015/date-picker.mjs.map +1 -1
  124. package/fesm2015/down-file.mjs +7 -7
  125. package/fesm2015/down-file.mjs.map +1 -1
  126. package/fesm2015/ellipsis.mjs +9 -9
  127. package/fesm2015/ellipsis.mjs.map +1 -1
  128. package/fesm2015/error-collect.mjs +8 -8
  129. package/fesm2015/error-collect.mjs.map +1 -1
  130. package/fesm2015/exception.mjs +14 -14
  131. package/fesm2015/exception.mjs.map +1 -1
  132. package/fesm2015/footer-toolbar.mjs +10 -10
  133. package/fesm2015/footer-toolbar.mjs.map +1 -1
  134. package/fesm2015/full-content.mjs +13 -13
  135. package/fesm2015/full-content.mjs.map +1 -1
  136. package/fesm2015/global-footer.mjs +10 -10
  137. package/fesm2015/global-footer.mjs.map +1 -1
  138. package/fesm2015/let.mjs +7 -7
  139. package/fesm2015/let.mjs.map +1 -1
  140. package/fesm2015/loading.mjs +18 -15
  141. package/fesm2015/loading.mjs.map +1 -1
  142. package/fesm2015/lodop.mjs +7 -7
  143. package/fesm2015/lodop.mjs.map +1 -1
  144. package/fesm2015/media.mjs +10 -10
  145. package/fesm2015/media.mjs.map +1 -1
  146. package/fesm2015/notice-icon.mjs +31 -33
  147. package/fesm2015/notice-icon.mjs.map +1 -1
  148. package/fesm2015/onboarding.mjs +23 -21
  149. package/fesm2015/onboarding.mjs.map +1 -1
  150. package/fesm2015/page-header.mjs +14 -14
  151. package/fesm2015/page-header.mjs.map +1 -1
  152. package/fesm2015/pdf.mjs +20 -17
  153. package/fesm2015/pdf.mjs.map +1 -1
  154. package/fesm2015/qr.mjs +7 -7
  155. package/fesm2015/qr.mjs.map +1 -1
  156. package/fesm2015/quick-menu.mjs +10 -10
  157. package/fesm2015/quick-menu.mjs.map +1 -1
  158. package/fesm2015/result.mjs +11 -11
  159. package/fesm2015/result.mjs.map +1 -1
  160. package/fesm2015/reuse-tab.mjs +133 -41
  161. package/fesm2015/reuse-tab.mjs.map +1 -1
  162. package/fesm2015/se.mjs +24 -20
  163. package/fesm2015/se.mjs.map +1 -1
  164. package/fesm2015/sg.mjs +10 -10
  165. package/fesm2015/sg.mjs.map +1 -1
  166. package/fesm2015/st.mjs +112 -96
  167. package/fesm2015/st.mjs.map +1 -1
  168. package/fesm2015/sv.mjs +20 -20
  169. package/fesm2015/sv.mjs.map +1 -1
  170. package/fesm2015/tag-select.mjs +7 -7
  171. package/fesm2015/tag-select.mjs.map +1 -1
  172. package/fesm2015/xlsx.mjs +10 -10
  173. package/fesm2015/xlsx.mjs.map +1 -1
  174. package/fesm2015/zip.mjs +17 -15
  175. package/fesm2015/zip.mjs.map +1 -1
  176. package/fesm2020/auto-focus.mjs +7 -7
  177. package/fesm2020/auto-focus.mjs.map +1 -1
  178. package/fesm2020/avatar-list.mjs +13 -13
  179. package/fesm2020/avatar-list.mjs.map +1 -1
  180. package/fesm2020/chart-observer-size.mjs +123 -0
  181. package/fesm2020/chart-observer-size.mjs.map +1 -0
  182. package/fesm2020/count-down.mjs +10 -10
  183. package/fesm2020/count-down.mjs.map +1 -1
  184. package/fesm2020/date-picker.mjs +15 -17
  185. package/fesm2020/date-picker.mjs.map +1 -1
  186. package/fesm2020/down-file.mjs +7 -7
  187. package/fesm2020/down-file.mjs.map +1 -1
  188. package/fesm2020/ellipsis.mjs +9 -9
  189. package/fesm2020/ellipsis.mjs.map +1 -1
  190. package/fesm2020/error-collect.mjs +8 -8
  191. package/fesm2020/error-collect.mjs.map +1 -1
  192. package/fesm2020/exception.mjs +14 -14
  193. package/fesm2020/exception.mjs.map +1 -1
  194. package/fesm2020/footer-toolbar.mjs +10 -10
  195. package/fesm2020/footer-toolbar.mjs.map +1 -1
  196. package/fesm2020/full-content.mjs +13 -13
  197. package/fesm2020/full-content.mjs.map +1 -1
  198. package/fesm2020/global-footer.mjs +10 -10
  199. package/fesm2020/global-footer.mjs.map +1 -1
  200. package/fesm2020/let.mjs +7 -7
  201. package/fesm2020/let.mjs.map +1 -1
  202. package/fesm2020/loading.mjs +18 -15
  203. package/fesm2020/loading.mjs.map +1 -1
  204. package/fesm2020/lodop.mjs +7 -7
  205. package/fesm2020/lodop.mjs.map +1 -1
  206. package/fesm2020/media.mjs +10 -10
  207. package/fesm2020/media.mjs.map +1 -1
  208. package/fesm2020/notice-icon.mjs +31 -33
  209. package/fesm2020/notice-icon.mjs.map +1 -1
  210. package/fesm2020/onboarding.mjs +23 -21
  211. package/fesm2020/onboarding.mjs.map +1 -1
  212. package/fesm2020/page-header.mjs +14 -14
  213. package/fesm2020/page-header.mjs.map +1 -1
  214. package/fesm2020/pdf.mjs +20 -17
  215. package/fesm2020/pdf.mjs.map +1 -1
  216. package/fesm2020/qr.mjs +7 -7
  217. package/fesm2020/qr.mjs.map +1 -1
  218. package/fesm2020/quick-menu.mjs +10 -10
  219. package/fesm2020/quick-menu.mjs.map +1 -1
  220. package/fesm2020/result.mjs +11 -11
  221. package/fesm2020/result.mjs.map +1 -1
  222. package/fesm2020/reuse-tab.mjs +130 -41
  223. package/fesm2020/reuse-tab.mjs.map +1 -1
  224. package/fesm2020/se.mjs +24 -20
  225. package/fesm2020/se.mjs.map +1 -1
  226. package/fesm2020/sg.mjs +10 -10
  227. package/fesm2020/sg.mjs.map +1 -1
  228. package/fesm2020/st.mjs +112 -96
  229. package/fesm2020/st.mjs.map +1 -1
  230. package/fesm2020/sv.mjs +20 -20
  231. package/fesm2020/sv.mjs.map +1 -1
  232. package/fesm2020/tag-select.mjs +7 -7
  233. package/fesm2020/tag-select.mjs.map +1 -1
  234. package/fesm2020/xlsx.mjs +10 -10
  235. package/fesm2020/xlsx.mjs.map +1 -1
  236. package/fesm2020/zip.mjs +17 -15
  237. package/fesm2020/zip.mjs.map +1 -1
  238. package/footer-toolbar/footer-toolbar.component.d.ts +1 -1
  239. package/footer-toolbar/{footer-toolbar.d.ts → index.d.ts} +0 -0
  240. package/full-content/full-content-toggle.directive.d.ts +1 -1
  241. package/full-content/full-content.component.d.ts +1 -1
  242. package/full-content/{full-content.d.ts → index.d.ts} +0 -0
  243. package/global-footer/global-footer-item.component.d.ts +1 -1
  244. package/global-footer/global-footer.component.d.ts +1 -1
  245. package/global-footer/{global-footer.d.ts → index.d.ts} +0 -0
  246. package/{abc.d.ts → index.d.ts} +0 -0
  247. package/let/let.directive.d.ts +1 -1
  248. package/loading/{loading.d.ts → index.d.ts} +0 -0
  249. package/loading/loading.component.d.ts +1 -1
  250. package/lodop/{lodop.d.ts → index.d.ts} +0 -0
  251. package/media/{media.d.ts → index.d.ts} +0 -0
  252. package/media/media.component.d.ts +1 -1
  253. package/notice-icon/{notice-icon.d.ts → index.d.ts} +0 -0
  254. package/notice-icon/notice-icon-tab.component.d.ts +1 -1
  255. package/notice-icon/notice-icon.component.d.ts +1 -1
  256. package/observers/index.d.ts +5 -0
  257. package/observers/observer-size.d.ts +32 -0
  258. package/observers/public-api.d.ts +1 -0
  259. package/onboarding/{onboarding.d.ts → index.d.ts} +0 -0
  260. package/onboarding/onboarding.component.d.ts +1 -1
  261. package/package.json +49 -49
  262. package/page-header/{page-header.d.ts → index.d.ts} +0 -0
  263. package/page-header/page-header.component.d.ts +1 -1
  264. package/page-header/style/index.less +3 -2
  265. package/pdf/{pdf.d.ts → index.d.ts} +0 -0
  266. package/pdf/pdf.component.d.ts +20 -13
  267. package/pdf/pdf.types.d.ts +2 -1
  268. package/qr/{qr.d.ts → index.d.ts} +0 -0
  269. package/qr/qr.component.d.ts +1 -1
  270. package/quick-menu/{quick-menu.d.ts → index.d.ts} +0 -0
  271. package/quick-menu/quick-menu.component.d.ts +1 -1
  272. package/result/{result.d.ts → index.d.ts} +0 -0
  273. package/result/result.component.d.ts +1 -1
  274. package/reuse-tab/{reuse-tab.d.ts → index.d.ts} +0 -0
  275. package/reuse-tab/public_api.d.ts +1 -0
  276. package/reuse-tab/reuse-tab-context-menu.component.d.ts +1 -1
  277. package/reuse-tab/reuse-tab-context.component.d.ts +1 -1
  278. package/reuse-tab/reuse-tab-context.directive.d.ts +1 -1
  279. package/reuse-tab/reuse-tab.component.d.ts +11 -4
  280. package/reuse-tab/reuse-tab.interfaces.d.ts +10 -3
  281. package/reuse-tab/reuse-tab.service.d.ts +7 -2
  282. package/reuse-tab/reuse-tab.state.d.ts +14 -0
  283. package/se/{se.d.ts → index.d.ts} +0 -0
  284. package/se/se-container.component.d.ts +2 -2
  285. package/se/se.component.d.ts +5 -3
  286. package/sg/{sg.d.ts → index.d.ts} +0 -0
  287. package/sg/sg-container.component.d.ts +1 -1
  288. package/sg/sg.component.d.ts +1 -1
  289. package/st/{st.d.ts → index.d.ts} +0 -0
  290. package/st/st-filter.component.d.ts +1 -1
  291. package/st/st-row.directive.d.ts +1 -1
  292. package/st/st-widget-host.directive.d.ts +1 -1
  293. package/st/st.component.d.ts +2 -2
  294. package/st/st.interfaces.d.ts +14 -1
  295. package/sv/{sv.d.ts → index.d.ts} +0 -0
  296. package/sv/sv-container.component.d.ts +2 -2
  297. package/sv/sv-value.component.d.ts +1 -1
  298. package/sv/sv.component.d.ts +1 -1
  299. package/tag-select/{tag-select.d.ts → index.d.ts} +0 -0
  300. package/tag-select/tag-select.component.d.ts +1 -1
  301. package/xlsx/{xlsx.d.ts → index.d.ts} +0 -0
  302. package/xlsx/xlsx.directive.d.ts +1 -1
  303. package/zip/{zip.d.ts → index.d.ts} +0 -0
  304. package/zip/zip.service.d.ts +5 -5
  305. package/zip/zip.types.d.ts +4 -4
  306. package/auto-focus/auto-focus.d.ts +0 -5
  307. package/auto-focus/package.json +0 -10
  308. package/avatar-list/package.json +0 -10
  309. package/count-down/package.json +0 -10
  310. package/date-picker/package.json +0 -10
  311. package/down-file/package.json +0 -10
  312. package/ellipsis/package.json +0 -10
  313. package/error-collect/package.json +0 -10
  314. package/esm2020/image/image.directive.mjs +0 -145
  315. package/esm2020/image/image.mjs +0 -5
  316. package/esm2020/image/image.module.mjs +0 -20
  317. package/esm2020/image/public_api.mjs +0 -3
  318. package/exception/package.json +0 -10
  319. package/fesm2015/image.mjs +0 -164
  320. package/fesm2015/image.mjs.map +0 -1
  321. package/fesm2020/image.mjs +0 -169
  322. package/fesm2020/image.mjs.map +0 -1
  323. package/footer-toolbar/package.json +0 -10
  324. package/full-content/package.json +0 -10
  325. package/global-footer/package.json +0 -10
  326. package/image/image.d.ts +0 -5
  327. package/image/image.directive.d.ts +0 -40
  328. package/image/image.module.d.ts +0 -9
  329. package/image/package.json +0 -10
  330. package/image/public_api.d.ts +0 -2
  331. package/let/let.d.ts +0 -5
  332. package/let/package.json +0 -10
  333. package/loading/package.json +0 -10
  334. package/lodop/package.json +0 -10
  335. package/media/package.json +0 -10
  336. package/notice-icon/package.json +0 -10
  337. package/onboarding/package.json +0 -10
  338. package/page-header/package.json +0 -10
  339. package/pdf/package.json +0 -10
  340. package/qr/package.json +0 -10
  341. package/quick-menu/package.json +0 -10
  342. package/result/package.json +0 -10
  343. package/reuse-tab/package.json +0 -10
  344. package/se/package.json +0 -10
  345. package/sg/package.json +0 -10
  346. package/st/package.json +0 -10
  347. package/sv/package.json +0 -10
  348. package/tag-select/package.json +0 -10
  349. package/xlsx/package.json +0 -10
  350. package/zip/package.json +0 -10
@@ -19,5 +19,5 @@ export declare class ReuseTabContextMenuComponent implements OnInit {
19
19
  isDisabled(custom: ReuseCustomContextMenu): boolean;
20
20
  closeMenu(event: MouseEvent): void;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabContextMenuComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabContextMenuComponent, "reuse-tab-context-menu", never, { "i18n": "i18n"; "item": "item"; "event": "event"; "customContextMenu": "customContextMenu"; }, { "close": "close"; }, never, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabContextMenuComponent, "reuse-tab-context-menu", never, { "i18n": "i18n"; "item": "item"; "event": "event"; "customContextMenu": "customContextMenu"; }, { "close": "close"; }, never, never, false>;
23
23
  }
@@ -10,5 +10,5 @@ export declare class ReuseTabContextComponent implements OnDestroy {
10
10
  constructor(srv: ReuseTabContextService);
11
11
  ngOnDestroy(): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabContextComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabContextComponent, "reuse-tab-context", never, { "i18n": "i18n"; }, { "change": "change"; }, never, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabContextComponent, "reuse-tab-context", never, { "i18n": "i18n"; }, { "change": "change"; }, never, never, false>;
14
14
  }
@@ -8,5 +8,5 @@ export declare class ReuseTabContextDirective {
8
8
  constructor(srv: ReuseTabContextService);
9
9
  _onContextMenu(event: MouseEvent): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabContextDirective, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<ReuseTabContextDirective, "[reuse-tab-context-menu]", ["reuseTabContextMenu"], { "item": "reuse-tab-context-menu"; "customContextMenu": "customContextMenu"; }, {}, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ReuseTabContextDirective, "[reuse-tab-context-menu]", ["reuseTabContextMenu"], { "item": "reuse-tab-context-menu"; "customContextMenu": "customContextMenu"; }, {}, never, never, false>;
12
12
  }
@@ -5,8 +5,9 @@ import { ActivatedRoute, Router } from '@angular/router';
5
5
  import { AlainI18NService } from '@delon/theme';
6
6
  import { BooleanInput, NumberInput } from '@delon/util/decorator';
7
7
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
8
- import { ReuseContextCloseEvent, ReuseContextI18n, ReuseCustomContextMenu, ReuseItem, ReuseTabMatchMode, ReuseTabRouteParamMatchMode } from './reuse-tab.interfaces';
8
+ import { ReuseCanClose, ReuseContextCloseEvent, ReuseContextI18n, ReuseCustomContextMenu, ReuseItem, ReuseTabMatchMode, ReuseTabRouteParamMatchMode } from './reuse-tab.interfaces';
9
9
  import { ReuseTabService } from './reuse-tab.service';
10
+ import { ReuseTabStorageState } from './reuse-tab.state';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class ReuseTabComponent implements OnInit, OnChanges, OnDestroy {
12
13
  private srv;
@@ -17,12 +18,15 @@ export declare class ReuseTabComponent implements OnInit, OnChanges, OnDestroy {
17
18
  private doc;
18
19
  private platform;
19
20
  private directionality;
21
+ private stateKey;
22
+ private stateSrv;
20
23
  static ngAcceptInputType_debug: BooleanInput;
21
24
  static ngAcceptInputType_max: NumberInput;
22
25
  static ngAcceptInputType_tabMaxWidth: NumberInput;
23
26
  static ngAcceptInputType_allowClose: BooleanInput;
24
27
  static ngAcceptInputType_keepingScroll: BooleanInput;
25
28
  static ngAcceptInputType_disabled: BooleanInput;
29
+ static ngAcceptInputType_storageState: BooleanInput;
26
30
  private tabset;
27
31
  private destroy$;
28
32
  private _keepingScrollContainer?;
@@ -38,6 +42,7 @@ export declare class ReuseTabComponent implements OnInit, OnChanges, OnDestroy {
38
42
  excludes?: RegExp[];
39
43
  allowClose: boolean;
40
44
  keepingScroll: boolean;
45
+ storageState: boolean;
41
46
  set keepingScrollContainer(value: string | Element);
42
47
  customContextMenu: ReuseCustomContextMenu[];
43
48
  tabBarExtraContent?: TemplateRef<void>;
@@ -51,15 +56,17 @@ export declare class ReuseTabComponent implements OnInit, OnChanges, OnDestroy {
51
56
  titleRender?: TemplateRef<{
52
57
  $implicit: ReuseItem;
53
58
  }>;
59
+ canClose?: ReuseCanClose;
54
60
  readonly change: EventEmitter<ReuseItem>;
55
61
  readonly close: EventEmitter<ReuseItem | null>;
56
- constructor(srv: ReuseTabService, cdr: ChangeDetectorRef, router: Router, route: ActivatedRoute, i18nSrv: AlainI18NService, doc: NzSafeAny, platform: Platform, directionality: Directionality);
62
+ constructor(srv: ReuseTabService, cdr: ChangeDetectorRef, router: Router, route: ActivatedRoute, i18nSrv: AlainI18NService, doc: NzSafeAny, platform: Platform, directionality: Directionality, stateKey: string, stateSrv: ReuseTabStorageState);
57
63
  private genTit;
58
64
  private get curUrl();
59
65
  private genCurItem;
60
66
  private genList;
61
67
  private updateTitle;
62
68
  private refresh;
69
+ private saveState;
63
70
  contextMenuChange(res: ReuseContextCloseEvent): void;
64
71
  _to(index: number, cb?: () => void): void;
65
72
  _close(e: Event | null, idx: number, includeNonCloseable: boolean): boolean;
@@ -70,6 +77,6 @@ export declare class ReuseTabComponent implements OnInit, OnChanges, OnDestroy {
70
77
  [P in keyof this]?: SimpleChange;
71
78
  } & SimpleChanges): void;
72
79
  ngOnDestroy(): void;
73
- static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabComponent, [null, null, null, null, { optional: true; }, null, null, { optional: true; }]>;
74
- static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabComponent, "reuse-tab, [reuse-tab]", ["reuseTab"], { "mode": "mode"; "i18n": "i18n"; "debug": "debug"; "max": "max"; "tabMaxWidth": "tabMaxWidth"; "excludes": "excludes"; "allowClose": "allowClose"; "keepingScroll": "keepingScroll"; "keepingScrollContainer": "keepingScrollContainer"; "customContextMenu": "customContextMenu"; "tabBarExtraContent": "tabBarExtraContent"; "tabBarGutter": "tabBarGutter"; "tabBarStyle": "tabBarStyle"; "tabType": "tabType"; "routeParamMatchMode": "routeParamMatchMode"; "disabled": "disabled"; "titleRender": "titleRender"; }, { "change": "change"; "close": "close"; }, never, never>;
80
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabComponent, [null, null, null, null, { optional: true; }, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
81
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabComponent, "reuse-tab, [reuse-tab]", ["reuseTab"], { "mode": "mode"; "i18n": "i18n"; "debug": "debug"; "max": "max"; "tabMaxWidth": "tabMaxWidth"; "excludes": "excludes"; "allowClose": "allowClose"; "keepingScroll": "keepingScroll"; "storageState": "storageState"; "keepingScrollContainer": "keepingScrollContainer"; "customContextMenu": "customContextMenu"; "tabBarExtraContent": "tabBarExtraContent"; "tabBarGutter": "tabBarGutter"; "tabBarStyle": "tabBarStyle"; "tabType": "tabType"; "routeParamMatchMode": "routeParamMatchMode"; "disabled": "disabled"; "titleRender": "titleRender"; "canClose": "canClose"; }, { "change": "change"; "close": "close"; }, never, never, false>;
75
82
  }
@@ -1,4 +1,5 @@
1
1
  import { ActivatedRouteSnapshot } from '@angular/router';
2
+ import { Observable } from 'rxjs';
2
3
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
3
4
  import { ReuseTabContextComponent } from './reuse-tab-context.component';
4
5
  /**
@@ -44,12 +45,12 @@ export interface ReuseTabCached {
44
45
  closable?: boolean;
45
46
  /** 当前滚动条位置 */
46
47
  position?: [number, number] | null;
47
- _snapshot: ActivatedRouteSnapshot;
48
- _handle: ReuseComponentHandle;
48
+ _snapshot?: ActivatedRouteSnapshot;
49
+ _handle?: ReuseComponentHandle;
49
50
  }
50
51
  export interface ReuseTabNotify {
51
52
  /** 事件类型 */
52
- active: 'add' | 'override' | 'title' | 'clear' | 'closable' | 'close' | 'closeRight' | 'move' | 'refresh';
53
+ active: 'add' | 'override' | 'title' | 'clear' | 'closable' | 'close' | 'closeRight' | 'move' | 'refresh' | 'loadState';
53
54
  url?: string;
54
55
  title?: ReuseTitle;
55
56
  item?: ReuseTabCached;
@@ -63,6 +64,8 @@ export interface ReuseItem {
63
64
  index: number;
64
65
  active: boolean;
65
66
  last: boolean;
67
+ /** 当前滚动条位置 */
68
+ position?: [number, number] | null;
66
69
  }
67
70
  export interface ReuseContextEvent {
68
71
  event: MouseEvent;
@@ -101,3 +104,7 @@ export interface ReuseComponentInstance {
101
104
  _onReuseDestroy: () => void;
102
105
  destroy: () => void;
103
106
  }
107
+ export declare type ReuseCanClose = (options: {
108
+ item: ReuseItem;
109
+ includeNonCloseable: boolean;
110
+ }) => Observable<boolean>;
@@ -4,10 +4,13 @@ import { Observable } from 'rxjs';
4
4
  import { MenuService } from '@delon/theme';
5
5
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
6
6
  import { ReuseComponentRef, ReuseHookOnReuseInitType, ReuseHookTypes, ReuseTabCached, ReuseTabMatchMode, ReuseTabNotify, ReuseTabRouteParamMatchMode, ReuseTitle } from './reuse-tab.interfaces';
7
+ import { ReuseTabStorageState } from './reuse-tab.state';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class ReuseTabService implements OnDestroy {
9
10
  private injector;
10
11
  private menuService;
12
+ private stateKey;
13
+ private stateSrv;
11
14
  private _inited;
12
15
  private _max;
13
16
  private _keepingScroll;
@@ -24,6 +27,7 @@ export declare class ReuseTabService implements OnDestroy {
24
27
  mode: ReuseTabMatchMode;
25
28
  /** 排除规则,限 `mode=URL` */
26
29
  excludes: RegExp[];
30
+ storageState: boolean;
27
31
  private get snapshot();
28
32
  /**
29
33
  * Get init status
@@ -148,8 +152,9 @@ export declare class ReuseTabService implements OnDestroy {
148
152
  refresh(data?: NzSafeAny): void;
149
153
  private destroy;
150
154
  private di;
151
- constructor(injector: Injector, menuService: MenuService);
155
+ constructor(injector: Injector, menuService: MenuService, stateKey: string, stateSrv: ReuseTabStorageState);
152
156
  init(): void;
157
+ private loadState;
153
158
  private getMenu;
154
159
  runHook(method: ReuseHookTypes, comp: ReuseComponentRef | number | undefined, type?: ReuseHookOnReuseInitType): void;
155
160
  private hasInValidRoute;
@@ -185,6 +190,6 @@ export declare class ReuseTabService implements OnDestroy {
185
190
  private get ss();
186
191
  private initScroll;
187
192
  ngOnDestroy(): void;
188
- static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabService, never>;
193
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabService, [null, null, { optional: true; }, { optional: true; }]>;
189
194
  static ɵprov: i0.ɵɵInjectableDeclaration<ReuseTabService>;
190
195
  }
@@ -0,0 +1,14 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import type { ReuseItem } from './reuse-tab.interfaces';
3
+ export declare const REUSE_TAB_STORAGE_KEY: InjectionToken<string>;
4
+ export declare const REUSE_TAB_STORAGE_STATE: InjectionToken<ReuseTabStorageState>;
5
+ export interface ReuseTabStorageState {
6
+ get(key: string): ReuseItem[];
7
+ update(key: string, value: ReuseItem[]): boolean;
8
+ remove(key: string): void;
9
+ }
10
+ export declare class ReuseTabLocalStorageState implements ReuseTabStorageState {
11
+ get(key: string): ReuseItem[];
12
+ update(key: string, value: ReuseItem[]): boolean;
13
+ remove(key: string): void;
14
+ }
File without changes
@@ -36,7 +36,7 @@ export declare class SEContainerComponent {
36
36
  constructor(configSrv: AlainConfigService);
37
37
  setErrors(errors: SEErrorRefresh[]): void;
38
38
  static ɵfac: i0.ɵɵFactoryDeclaration<SEContainerComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<SEContainerComponent, "se-container, [se-container]", ["seContainer"], { "colInCon": "se-container"; "col": "col"; "labelWidth": "labelWidth"; "noColon": "noColon"; "title": "title"; "gutter": "gutter"; "nzLayout": "nzLayout"; "size": "size"; "firstVisual": "firstVisual"; "ingoreDirty": "ingoreDirty"; "line": "line"; "errors": "errors"; }, {}, never, ["*"]>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<SEContainerComponent, "se-container, [se-container]", ["seContainer"], { "colInCon": "se-container"; "col": "col"; "labelWidth": "labelWidth"; "noColon": "noColon"; "title": "title"; "gutter": "gutter"; "nzLayout": "nzLayout"; "size": "size"; "firstVisual": "firstVisual"; "ingoreDirty": "ingoreDirty"; "line": "line"; "errors": "errors"; }, {}, never, ["*"], false>;
40
40
  }
41
41
  export declare class SETitleComponent implements OnInit {
42
42
  private parent;
@@ -46,5 +46,5 @@ export declare class SETitleComponent implements OnInit {
46
46
  private setClass;
47
47
  ngOnInit(): void;
48
48
  static ɵfac: i0.ɵɵFactoryDeclaration<SETitleComponent, [{ optional: true; host: true; }, null, null]>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<SETitleComponent, "se-title, [se-title]", ["seTitle"], {}, {}, never, ["*"]>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<SETitleComponent, "se-title, [se-title]", ["seTitle"], {}, {}, never, ["*"], false>;
50
50
  }
@@ -1,11 +1,13 @@
1
1
  import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, Renderer2, TemplateRef } from '@angular/core';
2
2
  import { ResponsiveService } from '@delon/theme';
3
3
  import { BooleanInput, NumberInput } from '@delon/util/decorator';
4
+ import { NzFormStatusService } from 'ng-zorro-antd/core/form';
4
5
  import { SEContainerComponent } from './se-container.component';
5
6
  import { SEErrorType } from './se.types';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class SEComponent implements OnChanges, AfterContentInit, AfterViewInit, OnDestroy {
8
9
  private parent;
10
+ private statusSrv;
9
11
  private rep;
10
12
  private ren;
11
13
  private cdr;
@@ -49,7 +51,7 @@ export declare class SEComponent implements OnChanges, AfterContentInit, AfterVi
49
51
  get showErr(): boolean;
50
52
  get compact(): boolean;
51
53
  private get ngControl();
52
- constructor(el: ElementRef, parent: SEContainerComponent, rep: ResponsiveService, ren: Renderer2, cdr: ChangeDetectorRef);
54
+ constructor(el: ElementRef, parent: SEContainerComponent, statusSrv: NzFormStatusService, rep: ResponsiveService, ren: Renderer2, cdr: ChangeDetectorRef);
53
55
  private setClass;
54
56
  private bindModel;
55
57
  private updateStatus;
@@ -58,6 +60,6 @@ export declare class SEComponent implements OnChanges, AfterContentInit, AfterVi
58
60
  ngOnChanges(): void;
59
61
  ngAfterViewInit(): void;
60
62
  ngOnDestroy(): void;
61
- static ɵfac: i0.ɵɵFactoryDeclaration<SEComponent, [null, { optional: true; host: true; }, null, null, null]>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<SEComponent, "se", ["se"], { "optional": "optional"; "optionalHelp": "optionalHelp"; "optionalHelpColor": "optionalHelpColor"; "error": "error"; "extra": "extra"; "label": "label"; "col": "col"; "required": "required"; "controlClass": "controlClass"; "line": "line"; "labelWidth": "labelWidth"; "noColon": "noColon"; "hideLabel": "hideLabel"; "id": "id"; }, {}, ["ngModel", "formControlName"], ["*"]>;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<SEComponent, [null, { optional: true; host: true; }, null, null, null, null]>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<SEComponent, "se", ["se"], { "optional": "optional"; "optionalHelp": "optionalHelp"; "optionalHelpColor": "optionalHelpColor"; "error": "error"; "extra": "extra"; "label": "label"; "col": "col"; "required": "required"; "controlClass": "controlClass"; "line": "line"; "labelWidth": "labelWidth"; "noColon": "noColon"; "hideLabel": "hideLabel"; "id": "id"; }, {}, ["ngModel", "formControlName"], ["*"], false>;
63
65
  }
File without changes
@@ -12,5 +12,5 @@ export declare class SGContainerComponent {
12
12
  get marginValue(): number;
13
13
  constructor(configSrv: AlainConfigService);
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<SGContainerComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<SGContainerComponent, "sg-container, [sg-container]", ["sgContainer"], { "gutter": "gutter"; "colInCon": "sg-container"; "col": "col"; }, {}, never, ["*"]>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<SGContainerComponent, "sg-container, [sg-container]", ["sgContainer"], { "gutter": "gutter"; "colInCon": "sg-container"; "col": "col"; }, {}, never, ["*"], false>;
16
16
  }
@@ -18,5 +18,5 @@ export declare class SGComponent implements OnChanges, AfterViewInit {
18
18
  ngOnChanges(): void;
19
19
  ngAfterViewInit(): void;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<SGComponent, [null, null, { optional: true; host: true; }, null]>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<SGComponent, "sg", ["sg"], { "col": "col"; }, {}, never, ["*"]>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<SGComponent, "sg", ["sg"], { "col": "col"; }, {}, never, ["*"], false>;
22
22
  }
File without changes
@@ -17,5 +17,5 @@ export declare class STFilterComponent {
17
17
  confirm(): void;
18
18
  reset(): void;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<STFilterComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<STFilterComponent, "st-filter", never, { "col": "col"; "locale": "locale"; "f": "f"; }, { "n": "n"; "handle": "handle"; }, never, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<STFilterComponent, "st-filter", never, { "col": "col"; "locale": "locale"; "f": "f"; }, { "n": "n"; "handle": "handle"; }, never, never, false>;
21
21
  }
@@ -17,5 +17,5 @@ export declare class STRowDirective implements OnInit {
17
17
  constructor(ref: TemplateRef<void>, source: STRowSource);
18
18
  ngOnInit(): void;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<STRowDirective, [null, { host: true; }]>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<STRowDirective, "[st-row]", never, { "id": "st-row"; "type": "type"; }, {}, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<STRowDirective, "[st-row]", never, { "id": "st-row"; "type": "type"; }, {}, never, never, false>;
21
21
  }
@@ -10,5 +10,5 @@ export declare class STWidgetHostDirective implements OnInit {
10
10
  constructor(stWidgetRegistry: STWidgetRegistry, viewContainerRef: ViewContainerRef);
11
11
  ngOnInit(): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<STWidgetHostDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<STWidgetHostDirective, "[st-widget-host]", never, { "record": "record"; "column": "column"; }, {}, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<STWidgetHostDirective, "[st-widget-host]", never, { "record": "record"; "column": "column"; }, {}, never, never, false>;
14
14
  }
@@ -253,7 +253,7 @@ export declare class STComponent implements AfterViewInit, OnChanges, OnDestroy
253
253
  } & SimpleChanges): void;
254
254
  ngOnDestroy(): void;
255
255
  static ɵfac: i0.ɵɵFactoryDeclaration<STComponent, [{ optional: true; }, null, null, null, null, null, null, null, null, null]>;
256
- static ɵcmp: i0.ɵɵComponentDeclaration<STComponent, "st", ["st"], { "req": "req"; "res": "res"; "page": "page"; "data": "data"; "columns": "columns"; "contextmenu": "contextmenu"; "ps": "ps"; "pi": "pi"; "total": "total"; "loading": "loading"; "loadingDelay": "loadingDelay"; "loadingIndicator": "loadingIndicator"; "bordered": "bordered"; "size": "size"; "scroll": "scroll"; "singleSort": "singleSort"; "multiSort": "multiSort"; "rowClassName": "rowClassName"; "clickRowClassName": "clickRowClassName"; "widthMode": "widthMode"; "widthConfig": "widthConfig"; "resizable": "resizable"; "header": "header"; "showHeader": "showHeader"; "footer": "footer"; "bodyHeader": "bodyHeader"; "body": "body"; "expandRowByClick": "expandRowByClick"; "expandAccordion": "expandAccordion"; "expand": "expand"; "noResult": "noResult"; "responsive": "responsive"; "responsiveHideHeaderFooter": "responsiveHideHeaderFooter"; "virtualScroll": "virtualScroll"; "virtualItemSize": "virtualItemSize"; "virtualMaxBufferPx": "virtualMaxBufferPx"; "virtualMinBufferPx": "virtualMinBufferPx"; "customRequest": "customRequest"; "virtualForTrackBy": "virtualForTrackBy"; }, { "error": "error"; "change": "change"; }, never, never>;
256
+ static ɵcmp: i0.ɵɵComponentDeclaration<STComponent, "st", ["st"], { "req": "req"; "res": "res"; "page": "page"; "data": "data"; "columns": "columns"; "contextmenu": "contextmenu"; "ps": "ps"; "pi": "pi"; "total": "total"; "loading": "loading"; "loadingDelay": "loadingDelay"; "loadingIndicator": "loadingIndicator"; "bordered": "bordered"; "size": "size"; "scroll": "scroll"; "singleSort": "singleSort"; "multiSort": "multiSort"; "rowClassName": "rowClassName"; "clickRowClassName": "clickRowClassName"; "widthMode": "widthMode"; "widthConfig": "widthConfig"; "resizable": "resizable"; "header": "header"; "showHeader": "showHeader"; "footer": "footer"; "bodyHeader": "bodyHeader"; "body": "body"; "expandRowByClick": "expandRowByClick"; "expandAccordion": "expandAccordion"; "expand": "expand"; "noResult": "noResult"; "responsive": "responsive"; "responsiveHideHeaderFooter": "responsiveHideHeaderFooter"; "virtualScroll": "virtualScroll"; "virtualItemSize": "virtualItemSize"; "virtualMaxBufferPx": "virtualMaxBufferPx"; "virtualMinBufferPx": "virtualMinBufferPx"; "customRequest": "customRequest"; "virtualForTrackBy": "virtualForTrackBy"; }, { "error": "error"; "change": "change"; }, never, never, false>;
257
257
  }
258
258
  export declare class STTdComponent {
259
259
  private stComp;
@@ -276,5 +276,5 @@ export declare class STTdComponent {
276
276
  _btn(btn: STColumnButton, ev?: Event): void;
277
277
  private btnCallback;
278
278
  static ɵfac: i0.ɵɵFactoryDeclaration<STTdComponent, [{ host: true; }, null, null, null]>;
279
- static ɵcmp: i0.ɵɵComponentDeclaration<STTdComponent, "st-td", never, { "c": "c"; "cIdx": "cIdx"; "data": "data"; "i": "i"; "index": "index"; }, { "n": "n"; }, never, never>;
279
+ static ɵcmp: i0.ɵɵComponentDeclaration<STTdComponent, "st-td", never, { "c": "c"; "cIdx": "cIdx"; "data": "data"; "i": "i"; "index": "index"; }, { "n": "n"; }, never, never, false>;
280
280
  }
@@ -52,6 +52,12 @@ export interface STReq {
52
52
  * - `{ status: 'new' }` => `url?pi=1&ps=10&status=new`
53
53
  */
54
54
  params?: any;
55
+ /**
56
+ * Whether to ignore `null` or `unfind` values in parameters
57
+ *
58
+ * 是否忽略参数中 `null` 或 `undefind` 值
59
+ */
60
+ ignoreParamNull?: Boolean;
55
61
  /** 请求方法,默认:`GET` */
56
62
  method?: string;
57
63
  /** 请求体 `body` */
@@ -100,7 +106,14 @@ export interface STRes<T extends STData = any> {
100
106
  * 重命名返回参数 `total`、`list`
101
107
  * - `{ total: 'Total' }` => Total 会被当作 `total`
102
108
  */
103
- reName?: STResReNameType;
109
+ reName?: STResReNameType | ((result: any, options: {
110
+ pi: number;
111
+ ps: number;
112
+ total: number;
113
+ }) => {
114
+ total: number;
115
+ list: T[];
116
+ });
104
117
  /**
105
118
  * 数据预处理
106
119
  */
File without changes
@@ -20,7 +20,7 @@ export declare class SVContainerComponent {
20
20
  noColon: boolean;
21
21
  constructor(configSrv: AlainConfigService);
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<SVContainerComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<SVContainerComponent, "sv-container, [sv-container]", ["svContainer"], { "title": "title"; "size": "size"; "gutter": "gutter"; "layout": "layout"; "labelWidth": "labelWidth"; "col": "col"; "default": "default"; "noColon": "noColon"; }, {}, never, ["*"]>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<SVContainerComponent, "sv-container, [sv-container]", ["svContainer"], { "title": "title"; "size": "size"; "gutter": "gutter"; "layout": "layout"; "labelWidth": "labelWidth"; "col": "col"; "default": "default"; "noColon": "noColon"; }, {}, never, ["*"], false>;
24
24
  }
25
25
  export declare class SVTitleComponent implements OnInit {
26
26
  private parent;
@@ -30,5 +30,5 @@ export declare class SVTitleComponent implements OnInit {
30
30
  private setClass;
31
31
  ngOnInit(): void;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<SVTitleComponent, [null, { optional: true; host: true; }, null]>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<SVTitleComponent, "sv-title, [sv-title]", ["svTitle"], {}, {}, never, ["*"]>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<SVTitleComponent, "sv-title, [sv-title]", ["svTitle"], {}, {}, never, ["*"], false>;
34
34
  }
@@ -6,5 +6,5 @@ export declare class SVValueComponent {
6
6
  tooltip?: NzTSType | null;
7
7
  size: 'large' | 'small' | 'default';
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<SVValueComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<SVValueComponent, "sv-value, [sv-value]", ["svValue"], { "prefix": "prefix"; "unit": "unit"; "tooltip": "tooltip"; "size": "size"; }, {}, never, ["*"]>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<SVValueComponent, "sv-value, [sv-value]", ["svValue"], { "prefix": "prefix"; "unit": "unit"; "tooltip": "tooltip"; "size": "size"; }, {}, never, ["*"], false>;
10
10
  }
@@ -31,5 +31,5 @@ export declare class SVComponent implements AfterViewInit, OnChanges {
31
31
  ngOnChanges(): void;
32
32
  checkContent(): void;
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<SVComponent, [null, { optional: true; host: true; }, null, null]>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<SVComponent, "sv, [sv]", ["sv"], { "optional": "optional"; "optionalHelp": "optionalHelp"; "optionalHelpColor": "optionalHelpColor"; "label": "label"; "unit": "unit"; "col": "col"; "default": "default"; "type": "type"; "noColon": "noColon"; }, {}, never, ["*"]>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<SVComponent, "sv, [sv]", ["sv"], { "optional": "optional"; "optionalHelp": "optionalHelp"; "optionalHelpColor": "optionalHelpColor"; "label": "label"; "unit": "unit"; "col": "col"; "default": "default"; "type": "type"; "noColon": "noColon"; }, {}, never, ["*"], false>;
35
35
  }
File without changes
@@ -20,5 +20,5 @@ export declare class TagSelectComponent implements OnInit, OnDestroy {
20
20
  trigger(): void;
21
21
  ngOnDestroy(): void;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<TagSelectComponent, [null, { optional: true; }, null]>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<TagSelectComponent, "tag-select", ["tagSelect"], { "expandable": "expandable"; }, { "change": "change"; }, never, ["*"]>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<TagSelectComponent, "tag-select", ["tagSelect"], { "expandable": "expandable"; }, { "change": "change"; }, never, ["*"], false>;
24
24
  }
File without changes
@@ -7,5 +7,5 @@ export declare class XlsxDirective {
7
7
  constructor(srv: XlsxService);
8
8
  _click(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<XlsxDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<XlsxDirective, "[xlsx]", ["xlsx"], { "data": "xlsx"; }, {}, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<XlsxDirective, "[xlsx]", ["xlsx"], { "data": "xlsx"; }, {}, never, never, false>;
11
11
  }
File without changes
@@ -1,8 +1,8 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { NgZone } from '@angular/core';
3
+ import type jsZipType from 'jszip';
3
4
  import { AlainConfigService } from '@delon/util/config';
4
5
  import { LazyService } from '@delon/util/other';
5
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
6
6
  import { ZipSaveOptions } from './zip.types';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class ZipService {
@@ -14,9 +14,9 @@ export declare class ZipService {
14
14
  private init;
15
15
  private check;
16
16
  /** 解压 */
17
- read(fileOrUrl: File | string, options?: NzSafeAny): Promise<NzSafeAny>;
17
+ read(fileOrUrl: File | string, options?: jsZipType.JSZipLoadOptions): Promise<jsZipType>;
18
18
  /** 创建 Zip 实例,用于创建压缩文件 */
19
- create(): Promise<NzSafeAny>;
19
+ create(): Promise<jsZipType | null>;
20
20
  /**
21
21
  * 下载URL资源并写入 zip
22
22
  *
@@ -24,14 +24,14 @@ export declare class ZipService {
24
24
  * @param path Zip 路径,例如: `text.txt`、`txt/hi.txt`
25
25
  * @param url URL 地址
26
26
  */
27
- pushUrl(zip: NzSafeAny, path: string, url: string): Promise<void>;
27
+ pushUrl(zip: jsZipType | null, path: string, url: string): Promise<void>;
28
28
  /**
29
29
  * 保存Zip并执行打开保存对话框
30
30
  *
31
31
  * @param zip zip 对象,务必通过 `create()` 构建
32
32
  * @param options 额外参数,
33
33
  */
34
- save(zip: NzSafeAny, options?: ZipSaveOptions): Promise<void>;
34
+ save(zip: jsZipType | null, options?: ZipSaveOptions): Promise<void>;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<ZipService, never>;
36
36
  static ɵprov: i0.ɵɵInjectableDeclaration<ZipService>;
37
37
  }
@@ -1,10 +1,10 @@
1
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
1
+ import type jsZipType from 'jszip';
2
2
  export interface ZipWriteOptions {
3
3
  /** save file name, default: `download.zip` */
4
4
  filename?: string;
5
- options?: NzSafeAny;
5
+ options?: jsZipType.JSZipGeneratorOptions;
6
6
  /** The optional function called on each internal update with the metadata. */
7
- update?: (metadata: NzSafeAny) => void;
7
+ update?: (percent: number, currentFile: string) => void;
8
8
  /** triggers when saveas */
9
9
  callback?: () => void;
10
10
  }
@@ -16,7 +16,7 @@ export interface ZipSaveOptions {
16
16
  /**
17
17
  * JSZip [generateAsync](https://stuk.github.io/jszip/documentation/api_jszip/generate_async.html) 方法的 `options` 选项
18
18
  */
19
- options?: NzSafeAny;
19
+ options?: jsZipType.JSZipGeneratorOptions;
20
20
  /**
21
21
  * JSZip [generateAsync](https://stuk.github.io/jszip/documentation/api_jszip/generate_async.html) 方法的 `onUpdate` 回调
22
22
  */
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@delon/abc/auto-focus" />
5
- export * from './index';
@@ -1,10 +0,0 @@
1
- {
2
- "module": "../fesm2015/auto-focus.mjs",
3
- "es2020": "../fesm2020/auto-focus.mjs",
4
- "esm2020": "../esm2020/auto-focus/auto-focus.mjs",
5
- "fesm2020": "../fesm2020/auto-focus.mjs",
6
- "fesm2015": "../fesm2015/auto-focus.mjs",
7
- "typings": "auto-focus.d.ts",
8
- "sideEffects": false,
9
- "name": "@delon/abc/auto-focus"
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "module": "../fesm2015/avatar-list.mjs",
3
- "es2020": "../fesm2020/avatar-list.mjs",
4
- "esm2020": "../esm2020/avatar-list/avatar-list.mjs",
5
- "fesm2020": "../fesm2020/avatar-list.mjs",
6
- "fesm2015": "../fesm2015/avatar-list.mjs",
7
- "typings": "avatar-list.d.ts",
8
- "sideEffects": false,
9
- "name": "@delon/abc/avatar-list"
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "module": "../fesm2015/count-down.mjs",
3
- "es2020": "../fesm2020/count-down.mjs",
4
- "esm2020": "../esm2020/count-down/count-down.mjs",
5
- "fesm2020": "../fesm2020/count-down.mjs",
6
- "fesm2015": "../fesm2015/count-down.mjs",
7
- "typings": "count-down.d.ts",
8
- "sideEffects": false,
9
- "name": "@delon/abc/count-down"
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "module": "../fesm2015/date-picker.mjs",
3
- "es2020": "../fesm2020/date-picker.mjs",
4
- "esm2020": "../esm2020/date-picker/date-picker.mjs",
5
- "fesm2020": "../fesm2020/date-picker.mjs",
6
- "fesm2015": "../fesm2015/date-picker.mjs",
7
- "typings": "date-picker.d.ts",
8
- "sideEffects": false,
9
- "name": "@delon/abc/date-picker"
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "module": "../fesm2015/down-file.mjs",
3
- "es2020": "../fesm2020/down-file.mjs",
4
- "esm2020": "../esm2020/down-file/down-file.mjs",
5
- "fesm2020": "../fesm2020/down-file.mjs",
6
- "fesm2015": "../fesm2015/down-file.mjs",
7
- "typings": "down-file.d.ts",
8
- "sideEffects": false,
9
- "name": "@delon/abc/down-file"
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "module": "../fesm2015/ellipsis.mjs",
3
- "es2020": "../fesm2020/ellipsis.mjs",
4
- "esm2020": "../esm2020/ellipsis/ellipsis.mjs",
5
- "fesm2020": "../fesm2020/ellipsis.mjs",
6
- "fesm2015": "../fesm2015/ellipsis.mjs",
7
- "typings": "ellipsis.d.ts",
8
- "sideEffects": false,
9
- "name": "@delon/abc/ellipsis"
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "module": "../fesm2015/error-collect.mjs",
3
- "es2020": "../fesm2020/error-collect.mjs",
4
- "esm2020": "../esm2020/error-collect/error-collect.mjs",
5
- "fesm2020": "../fesm2020/error-collect.mjs",
6
- "fesm2015": "../fesm2015/error-collect.mjs",
7
- "typings": "error-collect.d.ts",
8
- "sideEffects": false,
9
- "name": "@delon/abc/error-collect"
10
- }