@delon/abc 12.4.2 → 13.0.0-beta.1

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 (728) 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} +597 -483
  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/style/index.less +6 -0
  394. package/package.json +274 -14
  395. package/page-header/package.json +5 -6
  396. package/page-header/page-header.component.d.ts +4 -1
  397. package/page-header/page-header.module.d.ts +11 -0
  398. package/page-header/pageHeader.d.ts +1 -0
  399. package/page-header/style/index.less +10 -0
  400. package/page-header/style/rtl.less +3 -0
  401. package/pdf/package.json +5 -6
  402. package/pdf/pdf.component.d.ts +5 -2
  403. package/pdf/pdf.d.ts +1 -0
  404. package/pdf/pdf.module.d.ts +7 -0
  405. package/qr/package.json +5 -6
  406. package/qr/qr.component.d.ts +13 -10
  407. package/qr/qr.d.ts +1 -0
  408. package/qr/qr.module.d.ts +6 -0
  409. package/quick-menu/package.json +5 -6
  410. package/quick-menu/quick-menu.component.d.ts +6 -3
  411. package/quick-menu/quick-menu.module.d.ts +8 -0
  412. package/quick-menu/quickMenu.d.ts +1 -0
  413. package/quick-menu/style/index.less +2 -0
  414. package/result/package.json +5 -6
  415. package/result/result.component.d.ts +6 -3
  416. package/result/result.d.ts +1 -0
  417. package/result/result.module.d.ts +8 -0
  418. package/result/style/index.less +7 -0
  419. package/reuse-tab/package.json +5 -6
  420. package/reuse-tab/reuse-tab-context-menu.component.d.ts +3 -0
  421. package/reuse-tab/reuse-tab-context.component.d.ts +4 -1
  422. package/reuse-tab/reuse-tab-context.directive.d.ts +3 -0
  423. package/reuse-tab/reuse-tab-context.service.d.ts +4 -1
  424. package/reuse-tab/reuse-tab.component.d.ts +13 -10
  425. package/reuse-tab/reuse-tab.module.d.ts +15 -0
  426. package/reuse-tab/reuse-tab.service.d.ts +7 -4
  427. package/reuse-tab/reuseTab.d.ts +1 -0
  428. package/reuse-tab/style/index.less +4 -0
  429. package/se/edit.d.ts +1 -0
  430. package/se/package.json +5 -6
  431. package/se/public_api.d.ts +0 -1
  432. package/se/se-container.component.d.ts +18 -4
  433. package/se/se.component.d.ts +13 -8
  434. package/se/se.module.d.ts +10 -0
  435. package/se/style/index.less +2 -0
  436. package/sg/grid.d.ts +1 -0
  437. package/sg/package.json +5 -6
  438. package/sg/sg-container.component.d.ts +4 -1
  439. package/sg/sg.component.d.ts +4 -1
  440. package/sg/sg.module.d.ts +7 -0
  441. package/st/package.json +5 -6
  442. package/st/st-column-source.d.ts +4 -1
  443. package/st/st-data-source.d.ts +3 -0
  444. package/st/st-export.d.ts +3 -0
  445. package/st/st-filter.component.d.ts +3 -0
  446. package/st/st-row.directive.d.ts +7 -2
  447. package/st/st-widget-host.directive.d.ts +5 -3
  448. package/st/st-widget.d.ts +3 -0
  449. package/st/st.component.d.ts +38 -11
  450. package/st/st.interfaces.d.ts +2 -2
  451. package/st/st.module.d.ts +27 -0
  452. package/st/style/index.less +8 -0
  453. package/st/table.d.ts +1 -3
  454. package/sv/package.json +5 -6
  455. package/sv/public_api.d.ts +0 -1
  456. package/sv/style/index.less +8 -0
  457. package/sv/sv-container.component.d.ts +16 -3
  458. package/sv/sv-value.component.d.ts +3 -0
  459. package/sv/sv.component.d.ts +13 -10
  460. package/sv/sv.module.d.ts +12 -0
  461. package/sv/view.d.ts +1 -0
  462. package/tag-select/package.json +5 -6
  463. package/tag-select/style/index.less +4 -0
  464. package/tag-select/style/rtl.less +3 -0
  465. package/tag-select/tag-select.component.d.ts +3 -0
  466. package/tag-select/tag-select.module.d.ts +8 -0
  467. package/tag-select/tagSelect.d.ts +1 -0
  468. package/xlsx/package.json +5 -6
  469. package/xlsx/xlsx.d.ts +1 -0
  470. package/xlsx/xlsx.directive.d.ts +3 -0
  471. package/xlsx/xlsx.module.d.ts +6 -0
  472. package/xlsx/xlsx.service.d.ts +3 -0
  473. package/zip/package.json +5 -6
  474. package/zip/zip.d.ts +1 -0
  475. package/zip/zip.module.d.ts +5 -0
  476. package/zip/zip.service.d.ts +3 -0
  477. package/abc.metadata.json +0 -1
  478. package/auto-focus/autoFocus.metadata.json +0 -1
  479. package/avatar-list/avatarList.metadata.json +0 -1
  480. package/bundles/abc.umd.js +0 -19
  481. package/bundles/abc.umd.js.map +0 -1
  482. package/bundles/autoFocus.umd.js +0 -394
  483. package/bundles/autoFocus.umd.js.map +0 -1
  484. package/bundles/avatarList.umd.js +0 -465
  485. package/bundles/avatarList.umd.js.map +0 -1
  486. package/bundles/count-down.umd.js +0 -75
  487. package/bundles/count-down.umd.js.map +0 -1
  488. package/bundles/datePicker.umd.js +0 -552
  489. package/bundles/datePicker.umd.js.map +0 -1
  490. package/bundles/downFile.umd.js +0 -474
  491. package/bundles/downFile.umd.js.map +0 -1
  492. package/bundles/edit.umd.js +0 -776
  493. package/bundles/edit.umd.js.map +0 -1
  494. package/bundles/ellipsis.umd.js +0 -578
  495. package/bundles/ellipsis.umd.js.map +0 -1
  496. package/bundles/errorCollect.umd.js +0 -461
  497. package/bundles/errorCollect.umd.js.map +0 -1
  498. package/bundles/exception.umd.js +0 -150
  499. package/bundles/exception.umd.js.map +0 -1
  500. package/bundles/footerToolbar.umd.js +0 -401
  501. package/bundles/footerToolbar.umd.js.map +0 -1
  502. package/bundles/fullContent.umd.js +0 -550
  503. package/bundles/fullContent.umd.js.map +0 -1
  504. package/bundles/globalFooter.umd.js +0 -455
  505. package/bundles/globalFooter.umd.js.map +0 -1
  506. package/bundles/grid.umd.js +0 -470
  507. package/bundles/grid.umd.js.map +0 -1
  508. package/bundles/image.umd.js +0 -482
  509. package/bundles/image.umd.js.map +0 -1
  510. package/bundles/let.umd.js +0 -76
  511. package/bundles/let.umd.js.map +0 -1
  512. package/bundles/loading.umd.js +0 -181
  513. package/bundles/loading.umd.js.map +0 -1
  514. package/bundles/lodop.umd.js +0 -605
  515. package/bundles/lodop.umd.js.map +0 -1
  516. package/bundles/media.umd.js +0 -536
  517. package/bundles/media.umd.js.map +0 -1
  518. package/bundles/noticeIcon.umd.js +0 -468
  519. package/bundles/noticeIcon.umd.js.map +0 -1
  520. package/bundles/onboarding.umd.js +0 -370
  521. package/bundles/onboarding.umd.js.map +0 -1
  522. package/bundles/pageHeader.umd.js +0 -570
  523. package/bundles/pageHeader.umd.js.map +0 -1
  524. package/bundles/pdf.umd.js +0 -863
  525. package/bundles/pdf.umd.js.map +0 -1
  526. package/bundles/qr.umd.js +0 -491
  527. package/bundles/qr.umd.js.map +0 -1
  528. package/bundles/quickMenu.umd.js +0 -442
  529. package/bundles/quickMenu.umd.js.map +0 -1
  530. package/bundles/result.umd.js +0 -100
  531. package/bundles/result.umd.js.map +0 -1
  532. package/bundles/reuseTab.umd.js +0 -1522
  533. package/bundles/reuseTab.umd.js.map +0 -1
  534. package/bundles/table.umd.js +0 -2590
  535. package/bundles/table.umd.js.map +0 -1
  536. package/bundles/tagSelect.umd.js +0 -419
  537. package/bundles/tagSelect.umd.js.map +0 -1
  538. package/bundles/view.umd.js +0 -592
  539. package/bundles/view.umd.js.map +0 -1
  540. package/bundles/xlsx.umd.js +0 -529
  541. package/bundles/xlsx.umd.js.map +0 -1
  542. package/bundles/zip.umd.js +0 -482
  543. package/bundles/zip.umd.js.map +0 -1
  544. package/count-down/count-down.metadata.json +0 -1
  545. package/date-picker/datePicker.metadata.json +0 -1
  546. package/down-file/downFile.metadata.json +0 -1
  547. package/ellipsis/ellipsis.metadata.json +0 -1
  548. package/error-collect/errorCollect.metadata.json +0 -1
  549. package/esm2015/auto-focus/auto-focus.directive.js +0 -42
  550. package/esm2015/auto-focus/auto-focus.module.js +0 -12
  551. package/esm2015/avatar-list/avatar-list-item.component.js +0 -20
  552. package/esm2015/avatar-list/avatar-list.component.js +0 -89
  553. package/esm2015/avatar-list/avatar-list.module.js +0 -17
  554. package/esm2015/count-down/count-down.component.js +0 -36
  555. package/esm2015/count-down/count-down.module.js +0 -15
  556. package/esm2015/date-picker/date-picker.module.js +0 -17
  557. package/esm2015/date-picker/datePicker.js +0 -6
  558. package/esm2015/date-picker/range-shortcut.component.js +0 -26
  559. package/esm2015/date-picker/range.directive.js +0 -171
  560. package/esm2015/down-file/down-file.directive.js +0 -103
  561. package/esm2015/down-file/down-file.module.js +0 -15
  562. package/esm2015/ellipsis/ellipsis.component.js +0 -224
  563. package/esm2015/ellipsis/ellipsis.module.js +0 -16
  564. package/esm2015/error-collect/error-collect.component.js +0 -112
  565. package/esm2015/error-collect/error-collect.module.js +0 -15
  566. package/esm2015/exception/exception.component.js +0 -103
  567. package/esm2015/exception/exception.module.js +0 -18
  568. package/esm2015/footer-toolbar/footer-toolbar.component.js +0 -46
  569. package/esm2015/footer-toolbar/footer-toolbar.module.js +0 -16
  570. package/esm2015/full-content/full-content-toggle.directive.js +0 -23
  571. package/esm2015/full-content/full-content.component.js +0 -135
  572. package/esm2015/full-content/full-content.module.js +0 -15
  573. package/esm2015/full-content/full-content.service.js +0 -21
  574. package/esm2015/global-footer/global-footer-item.component.js +0 -24
  575. package/esm2015/global-footer/global-footer.component.js +0 -77
  576. package/esm2015/global-footer/global-footer.module.js +0 -16
  577. package/esm2015/image/image.directive.js +0 -133
  578. package/esm2015/image/image.module.js +0 -15
  579. package/esm2015/let/let.directive.js +0 -31
  580. package/esm2015/let/let.module.js +0 -12
  581. package/esm2015/loading/loading.component.js +0 -26
  582. package/esm2015/loading/loading.module.js +0 -19
  583. package/esm2015/loading/loading.service.js +0 -92
  584. package/esm2015/lodop/lodop.module.js +0 -7
  585. package/esm2015/lodop/lodop.service.js +0 -219
  586. package/esm2015/lodop/lodop.types.js +0 -2
  587. package/esm2015/media/media.component.js +0 -104
  588. package/esm2015/media/media.module.js +0 -14
  589. package/esm2015/media/media.service.js +0 -53
  590. package/esm2015/notice-icon/notice-icon-tab.component.js +0 -30
  591. package/esm2015/notice-icon/notice-icon.component.js +0 -74
  592. package/esm2015/notice-icon/notice-icon.module.js +0 -35
  593. package/esm2015/onboarding/onboarding.component.js +0 -130
  594. package/esm2015/onboarding/onboarding.module.js +0 -20
  595. package/esm2015/onboarding/onboarding.service.js +0 -178
  596. package/esm2015/page-header/page-header.component.js +0 -216
  597. package/esm2015/page-header/page-header.module.js +0 -19
  598. package/esm2015/pdf/pdf.component.js +0 -433
  599. package/esm2015/pdf/pdf.module.js +0 -15
  600. package/esm2015/qr/qr.component.js +0 -128
  601. package/esm2015/qr/qr.module.js +0 -14
  602. package/esm2015/quick-menu/quick-menu.component.js +0 -90
  603. package/esm2015/quick-menu/quick-menu.module.js +0 -16
  604. package/esm2015/result/result.component.js +0 -62
  605. package/esm2015/result/result.module.js +0 -16
  606. package/esm2015/reuse-tab/reuse-tab-context-menu.component.js +0 -74
  607. package/esm2015/reuse-tab/reuse-tab-context.component.js +0 -32
  608. package/esm2015/reuse-tab/reuse-tab-context.directive.js +0 -33
  609. package/esm2015/reuse-tab/reuse-tab-context.service.js +0 -53
  610. package/esm2015/reuse-tab/reuse-tab.component.js +0 -300
  611. package/esm2015/reuse-tab/reuse-tab.module.js +0 -24
  612. package/esm2015/reuse-tab/reuse-tab.service.js +0 -534
  613. package/esm2015/se/public_api.js +0 -6
  614. package/esm2015/se/se-container.component.js +0 -115
  615. package/esm2015/se/se-title.component.js +0 -40
  616. package/esm2015/se/se.component.js +0 -214
  617. package/esm2015/se/se.module.js +0 -19
  618. package/esm2015/sg/sg-container.component.js +0 -49
  619. package/esm2015/sg/sg.component.js +0 -65
  620. package/esm2015/sg/sg.module.js +0 -15
  621. package/esm2015/st/st-column-source.js +0 -428
  622. package/esm2015/st/st-data-source.js +0 -429
  623. package/esm2015/st/st-export.js +0 -90
  624. package/esm2015/st/st-filter.component.js +0 -149
  625. package/esm2015/st/st-row.directive.js +0 -40
  626. package/esm2015/st/st-td.component.js +0 -232
  627. package/esm2015/st/st-widget-host.directive.js +0 -34
  628. package/esm2015/st/st-widget.js +0 -24
  629. package/esm2015/st/st.component.js +0 -788
  630. package/esm2015/st/st.interfaces.js +0 -2
  631. package/esm2015/st/st.module.js +0 -56
  632. package/esm2015/st/table.js +0 -8
  633. package/esm2015/sv/public_api.js +0 -6
  634. package/esm2015/sv/sv-container.component.js +0 -63
  635. package/esm2015/sv/sv-title.component.js +0 -40
  636. package/esm2015/sv/sv-value.component.js +0 -32
  637. package/esm2015/sv/sv.component.js +0 -105
  638. package/esm2015/sv/sv.module.js +0 -21
  639. package/esm2015/tag-select/tag-select.component.js +0 -70
  640. package/esm2015/tag-select/tag-select.module.js +0 -16
  641. package/esm2015/xlsx/xlsx.directive.js +0 -26
  642. package/esm2015/xlsx/xlsx.module.js +0 -14
  643. package/esm2015/xlsx/xlsx.service.js +0 -129
  644. package/esm2015/zip/zip.module.js +0 -10
  645. package/esm2015/zip/zip.service.js +0 -115
  646. package/exception/exception.metadata.json +0 -1
  647. package/fesm2015/abc.js.map +0 -1
  648. package/fesm2015/autoFocus.js +0 -59
  649. package/fesm2015/autoFocus.js.map +0 -1
  650. package/fesm2015/avatarList.js +0 -128
  651. package/fesm2015/avatarList.js.map +0 -1
  652. package/fesm2015/count-down.js +0 -56
  653. package/fesm2015/count-down.js.map +0 -1
  654. package/fesm2015/datePicker.js.map +0 -1
  655. package/fesm2015/downFile.js +0 -122
  656. package/fesm2015/downFile.js.map +0 -1
  657. package/fesm2015/edit.js +0 -396
  658. package/fesm2015/edit.js.map +0 -1
  659. package/fesm2015/ellipsis.js +0 -244
  660. package/fesm2015/ellipsis.js.map +0 -1
  661. package/fesm2015/errorCollect.js +0 -131
  662. package/fesm2015/errorCollect.js.map +0 -1
  663. package/fesm2015/exception.js +0 -125
  664. package/fesm2015/exception.js.map +0 -1
  665. package/fesm2015/footerToolbar.js +0 -66
  666. package/fesm2015/footerToolbar.js.map +0 -1
  667. package/fesm2015/fullContent.js +0 -191
  668. package/fesm2015/fullContent.js.map +0 -1
  669. package/fesm2015/globalFooter.js +0 -118
  670. package/fesm2015/globalFooter.js.map +0 -1
  671. package/fesm2015/grid.js +0 -129
  672. package/fesm2015/grid.js.map +0 -1
  673. package/fesm2015/image.js +0 -152
  674. package/fesm2015/image.js.map +0 -1
  675. package/fesm2015/let.js +0 -48
  676. package/fesm2015/let.js.map +0 -1
  677. package/fesm2015/loading.js +0 -138
  678. package/fesm2015/loading.js.map +0 -1
  679. package/fesm2015/lodop.js.map +0 -1
  680. package/fesm2015/media.js +0 -174
  681. package/fesm2015/media.js.map +0 -1
  682. package/fesm2015/noticeIcon.js +0 -141
  683. package/fesm2015/noticeIcon.js.map +0 -1
  684. package/fesm2015/onboarding.js +0 -328
  685. package/fesm2015/onboarding.js.map +0 -1
  686. package/fesm2015/pageHeader.js +0 -239
  687. package/fesm2015/pageHeader.js.map +0 -1
  688. package/fesm2015/pdf.js.map +0 -1
  689. package/fesm2015/qr.js +0 -159
  690. package/fesm2015/qr.js.map +0 -1
  691. package/fesm2015/quickMenu.js +0 -111
  692. package/fesm2015/quickMenu.js.map +0 -1
  693. package/fesm2015/result.js +0 -83
  694. package/fesm2015/result.js.map +0 -1
  695. package/fesm2015/reuseTab.js.map +0 -1
  696. package/fesm2015/table.js.map +0 -1
  697. package/fesm2015/tagSelect.js +0 -90
  698. package/fesm2015/tagSelect.js.map +0 -1
  699. package/fesm2015/view.js +0 -256
  700. package/fesm2015/view.js.map +0 -1
  701. package/fesm2015/xlsx.js.map +0 -1
  702. package/fesm2015/zip.js.map +0 -1
  703. package/footer-toolbar/footerToolbar.metadata.json +0 -1
  704. package/full-content/fullContent.metadata.json +0 -1
  705. package/global-footer/globalFooter.metadata.json +0 -1
  706. package/image/image.metadata.json +0 -1
  707. package/let/let.metadata.json +0 -1
  708. package/loading/loading.metadata.json +0 -1
  709. package/lodop/lodop.metadata.json +0 -1
  710. package/media/media.metadata.json +0 -1
  711. package/notice-icon/noticeIcon.metadata.json +0 -1
  712. package/onboarding/onboarding.metadata.json +0 -1
  713. package/page-header/pageHeader.metadata.json +0 -1
  714. package/pdf/pdf.metadata.json +0 -1
  715. package/qr/qr.metadata.json +0 -1
  716. package/quick-menu/quickMenu.metadata.json +0 -1
  717. package/result/result.metadata.json +0 -1
  718. package/reuse-tab/reuseTab.metadata.json +0 -1
  719. package/se/edit.metadata.json +0 -1
  720. package/se/se-title.component.d.ts +0 -10
  721. package/sg/grid.metadata.json +0 -1
  722. package/st/st-td.component.d.ts +0 -27
  723. package/st/table.metadata.json +0 -1
  724. package/sv/sv-title.component.d.ts +0 -10
  725. package/sv/view.metadata.json +0 -1
  726. package/tag-select/tagSelect.metadata.json +0 -1
  727. package/xlsx/xlsx.metadata.json +0 -1
  728. package/zip/zip.metadata.json +0 -1
@@ -1,191 +0,0 @@
1
- import { __decorate } from 'tslib';
2
- import { DOCUMENT, CommonModule } from '@angular/common';
3
- import * as i0 from '@angular/core';
4
- import { Injectable, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, ElementRef, ChangeDetectorRef, Inject, Input, Output, Directive, NgModule } from '@angular/core';
5
- import { ActivationStart, ActivationEnd, Router } from '@angular/router';
6
- import { BehaviorSubject, fromEvent } from 'rxjs';
7
- import { share, debounceTime, filter } from 'rxjs/operators';
8
- import { InputBoolean, InputNumber } from '@delon/util/decorator';
9
-
10
- class FullContentService {
11
- constructor() {
12
- this._change = new BehaviorSubject(null);
13
- }
14
- /** 切换全屏工作区状态 */
15
- toggle() {
16
- this._change.next(true);
17
- }
18
- get change() {
19
- return this._change.pipe(share());
20
- }
21
- }
22
- FullContentService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FullContentService_Factory() { return new FullContentService(); }, token: FullContentService, providedIn: "root" });
23
- FullContentService.decorators = [
24
- { type: Injectable, args: [{ providedIn: 'root' },] }
25
- ];
26
-
27
- const wrapCls = `full-content__body`;
28
- const openedCls = `full-content__opened`;
29
- const hideTitleCls = `full-content__hidden-title`;
30
- class FullContentComponent {
31
- constructor(el, cdr, srv, router, doc) {
32
- this.el = el;
33
- this.cdr = cdr;
34
- this.srv = srv;
35
- this.router = router;
36
- this.doc = doc;
37
- this.inited = false;
38
- this.id = `_full-content-${Math.random().toString(36).substring(2)}`;
39
- this.scroll$ = null;
40
- this._height = 0;
41
- this.hideTitle = true;
42
- this.padding = 24;
43
- this.fullscreenChange = new EventEmitter();
44
- }
45
- updateCls() {
46
- const clss = this.bodyEl.classList;
47
- if (this.fullscreen) {
48
- clss.add(openedCls);
49
- if (this.hideTitle) {
50
- clss.add(hideTitleCls);
51
- }
52
- }
53
- else {
54
- clss.remove(openedCls);
55
- if (this.hideTitle) {
56
- clss.remove(hideTitleCls);
57
- }
58
- }
59
- }
60
- update() {
61
- this.updateCls();
62
- this.updateHeight();
63
- this.fullscreenChange.emit(this.fullscreen);
64
- }
65
- updateHeight() {
66
- this._height =
67
- this.bodyEl.getBoundingClientRect().height - this.el.nativeElement.getBoundingClientRect().top - this.padding;
68
- this.cdr.detectChanges();
69
- }
70
- removeInBody() {
71
- this.bodyEl.classList.remove(wrapCls, openedCls, hideTitleCls);
72
- }
73
- ngOnInit() {
74
- this.inited = true;
75
- this.bodyEl = this.doc.querySelector('body');
76
- this.bodyEl.classList.add(wrapCls);
77
- this.el.nativeElement.id = this.id;
78
- this.updateCls();
79
- // when window resize
80
- this.scroll$ = fromEvent(window, 'resize')
81
- .pipe(debounceTime(200))
82
- .subscribe(() => this.updateHeight());
83
- // when servier changed
84
- this.srv$ = this.srv.change.pipe(filter(res => res !== null)).subscribe(() => this.toggle());
85
- // when router changed
86
- this.route$ = this.router.events
87
- .pipe(filter((e) => e instanceof ActivationStart || e instanceof ActivationEnd), debounceTime(200))
88
- .subscribe(() => {
89
- if (!!this.doc.querySelector(`#${this.id}`)) {
90
- this.bodyEl.classList.add(wrapCls);
91
- this.updateCls();
92
- }
93
- else {
94
- this.removeInBody();
95
- }
96
- });
97
- }
98
- toggle() {
99
- this.fullscreen = !this.fullscreen;
100
- this.update();
101
- this.updateHeight();
102
- }
103
- ngAfterViewInit() {
104
- setTimeout(() => this.updateHeight());
105
- }
106
- ngOnChanges() {
107
- if (this.inited)
108
- this.update();
109
- }
110
- ngOnDestroy() {
111
- this.removeInBody();
112
- this.scroll$.unsubscribe();
113
- this.srv$.unsubscribe();
114
- this.route$.unsubscribe();
115
- }
116
- }
117
- FullContentComponent.decorators = [
118
- { type: Component, args: [{
119
- selector: 'full-content',
120
- exportAs: 'fullContent',
121
- template: ` <ng-content></ng-content> `,
122
- host: {
123
- '[class.full-content]': 'true',
124
- '[style.height.px]': '_height'
125
- },
126
- preserveWhitespaces: false,
127
- changeDetection: ChangeDetectionStrategy.OnPush,
128
- encapsulation: ViewEncapsulation.None
129
- },] }
130
- ];
131
- FullContentComponent.ctorParameters = () => [
132
- { type: ElementRef },
133
- { type: ChangeDetectorRef },
134
- { type: FullContentService },
135
- { type: Router },
136
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
137
- ];
138
- FullContentComponent.propDecorators = {
139
- fullscreen: [{ type: Input }],
140
- hideTitle: [{ type: Input }],
141
- padding: [{ type: Input }],
142
- fullscreenChange: [{ type: Output }]
143
- };
144
- __decorate([
145
- InputBoolean()
146
- ], FullContentComponent.prototype, "fullscreen", void 0);
147
- __decorate([
148
- InputBoolean()
149
- ], FullContentComponent.prototype, "hideTitle", void 0);
150
- __decorate([
151
- InputNumber()
152
- ], FullContentComponent.prototype, "padding", void 0);
153
-
154
- class FullContentToggleDirective {
155
- constructor(parent) {
156
- this.parent = parent;
157
- }
158
- _click() {
159
- this.parent.toggle();
160
- }
161
- }
162
- FullContentToggleDirective.decorators = [
163
- { type: Directive, args: [{
164
- selector: '[full-toggle]',
165
- exportAs: 'fullToggle',
166
- host: {
167
- '(click)': '_click()'
168
- }
169
- },] }
170
- ];
171
- FullContentToggleDirective.ctorParameters = () => [
172
- { type: FullContentComponent }
173
- ];
174
-
175
- const COMPONENTS = [FullContentComponent, FullContentToggleDirective];
176
- class FullContentModule {
177
- }
178
- FullContentModule.decorators = [
179
- { type: NgModule, args: [{
180
- imports: [CommonModule],
181
- declarations: COMPONENTS,
182
- exports: COMPONENTS
183
- },] }
184
- ];
185
-
186
- /**
187
- * Generated bundle index. Do not edit.
188
- */
189
-
190
- export { FullContentComponent, FullContentModule, FullContentService, FullContentToggleDirective };
191
- //# sourceMappingURL=fullContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fullContent.js","sources":["../../../../packages/abc/full-content/full-content.service.ts","../../../../packages/abc/full-content/full-content.component.ts","../../../../packages/abc/full-content/full-content-toggle.directive.ts","../../../../packages/abc/full-content/full-content.module.ts","../../../../packages/abc/full-content/fullContent.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport { share } from 'rxjs/operators';\n\n@Injectable({ providedIn: 'root' })\nexport class FullContentService {\n private _change = new BehaviorSubject<boolean | null>(null);\n\n /** 切换全屏工作区状态 */\n toggle(): void {\n this._change.next(true);\n }\n\n get change(): Observable<boolean | null> {\n return this._change.pipe(share());\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n ViewEncapsulation\n} from '@angular/core';\nimport { ActivationEnd, ActivationStart, Event, Router } from '@angular/router';\nimport { fromEvent, Subscription } from 'rxjs';\nimport { debounceTime, filter } from 'rxjs/operators';\n\nimport { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport { FullContentService } from './full-content.service';\n\nconst wrapCls = `full-content__body`;\nconst openedCls = `full-content__opened`;\nconst hideTitleCls = `full-content__hidden-title`;\n\n@Component({\n selector: 'full-content',\n exportAs: 'fullContent',\n template: ` <ng-content></ng-content> `,\n host: {\n '[class.full-content]': 'true',\n '[style.height.px]': '_height'\n },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class FullContentComponent implements AfterViewInit, OnInit, OnChanges, OnDestroy {\n static ngAcceptInputType_fullscreen: BooleanInput;\n static ngAcceptInputType_hideTitle: BooleanInput;\n static ngAcceptInputType_padding: NumberInput;\n\n private bodyEl: HTMLElement;\n private inited = false;\n private srv$: Subscription;\n private route$: Subscription;\n private id = `_full-content-${Math.random().toString(36).substring(2)}`;\n private scroll$: Subscription | null = null;\n\n _height = 0;\n\n @Input() @InputBoolean() fullscreen: boolean;\n @Input() @InputBoolean() hideTitle = true;\n @Input() @InputNumber() padding = 24;\n @Output() readonly fullscreenChange = new EventEmitter<boolean>();\n\n constructor(\n private el: ElementRef<HTMLElement>,\n private cdr: ChangeDetectorRef,\n private srv: FullContentService,\n private router: Router,\n @Inject(DOCUMENT) private doc: NzSafeAny\n ) {}\n\n private updateCls(): void {\n const clss = this.bodyEl.classList;\n if (this.fullscreen) {\n clss.add(openedCls);\n if (this.hideTitle) {\n clss.add(hideTitleCls);\n }\n } else {\n clss.remove(openedCls);\n if (this.hideTitle) {\n clss.remove(hideTitleCls);\n }\n }\n }\n\n private update(): void {\n this.updateCls();\n this.updateHeight();\n this.fullscreenChange.emit(this.fullscreen);\n }\n\n private updateHeight(): void {\n this._height =\n this.bodyEl.getBoundingClientRect().height - this.el.nativeElement.getBoundingClientRect().top - this.padding;\n this.cdr.detectChanges();\n }\n\n private removeInBody(): void {\n this.bodyEl.classList.remove(wrapCls, openedCls, hideTitleCls);\n }\n\n ngOnInit(): void {\n this.inited = true;\n this.bodyEl = this.doc.querySelector('body');\n this.bodyEl.classList.add(wrapCls);\n this.el.nativeElement.id = this.id;\n\n this.updateCls();\n\n // when window resize\n this.scroll$ = fromEvent(window, 'resize')\n .pipe(debounceTime(200))\n .subscribe(() => this.updateHeight());\n\n // when servier changed\n this.srv$ = this.srv.change.pipe(filter(res => res !== null)).subscribe(() => this.toggle());\n\n // when router changed\n this.route$ = this.router.events\n .pipe(\n filter((e: Event) => e instanceof ActivationStart || e instanceof ActivationEnd),\n debounceTime(200)\n )\n .subscribe(() => {\n if (!!this.doc.querySelector(`#${this.id}`)) {\n this.bodyEl.classList.add(wrapCls);\n this.updateCls();\n } else {\n this.removeInBody();\n }\n });\n }\n\n toggle(): void {\n this.fullscreen = !this.fullscreen;\n this.update();\n this.updateHeight();\n }\n\n ngAfterViewInit(): void {\n setTimeout(() => this.updateHeight());\n }\n\n ngOnChanges(): void {\n if (this.inited) this.update();\n }\n\n ngOnDestroy(): void {\n this.removeInBody();\n this.scroll$!.unsubscribe();\n this.srv$.unsubscribe();\n this.route$.unsubscribe();\n }\n}\n","import { Directive } from '@angular/core';\n\nimport { FullContentComponent } from './full-content.component';\n\n@Directive({\n selector: '[full-toggle]',\n exportAs: 'fullToggle',\n host: {\n '(click)': '_click()'\n }\n})\nexport class FullContentToggleDirective {\n constructor(private parent: FullContentComponent) {}\n\n _click(): void {\n this.parent.toggle();\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { FullContentToggleDirective } from './full-content-toggle.directive';\nimport { FullContentComponent } from './full-content.component';\n\nconst COMPONENTS = [FullContentComponent, FullContentToggleDirective];\n\n@NgModule({\n imports: [CommonModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class FullContentModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;MAKa,kBAAkB;IAD/B;QAEU,YAAO,GAAG,IAAI,eAAe,CAAiB,IAAI,CAAC,CAAC;KAU7D;;IAPC,MAAM;QACJ,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACzB;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;KACnC;;;;YAXF,UAAU,SAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACqBlC,MAAM,OAAO,GAAG,oBAAoB,CAAC;AACrC,MAAM,SAAS,GAAG,sBAAsB,CAAC;AACzC,MAAM,YAAY,GAAG,4BAA4B,CAAC;MAcrC,oBAAoB;IAmB/B,YACU,EAA2B,EAC3B,GAAsB,EACtB,GAAuB,EACvB,MAAc,EACI,GAAc;QAJhC,OAAE,GAAF,EAAE,CAAyB;QAC3B,QAAG,GAAH,GAAG,CAAmB;QACtB,QAAG,GAAH,GAAG,CAAoB;QACvB,WAAM,GAAN,MAAM,CAAQ;QACI,QAAG,GAAH,GAAG,CAAW;QAlBlC,WAAM,GAAG,KAAK,CAAC;QAGf,OAAE,GAAG,iBAAiB,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;QAChE,YAAO,GAAwB,IAAI,CAAC;QAE5C,YAAO,GAAG,CAAC,CAAC;QAGa,cAAS,GAAG,IAAI,CAAC;QAClB,YAAO,GAAG,EAAE,CAAC;QAClB,qBAAgB,GAAG,IAAI,YAAY,EAAW,CAAC;KAQ9D;IAEI,SAAS;QACf,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAA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ewEncapsulation, ViewChild, Input, Inject, Optional, ContentChildren, NgModule } from '@angular/core';
3
- import { DomSanitizer } from '@angular/platform-browser';
4
- import { Router, RouterModule } from '@angular/router';
5
- import { Subject } from 'rxjs';
6
- import { takeUntil } from 'rxjs/operators';
7
- import { WINDOW } from '@delon/util/token';
8
- import { __decorate } from 'tslib';
9
- import { InputBoolean } from '@delon/util/decorator';
10
- import { CommonModule } from '@angular/common';
11
-
12
- class GlobalFooterItemComponent {
13
- }
14
- GlobalFooterItemComponent.decorators = [
15
- { type: Component, args: [{
16
- selector: 'global-footer-item',
17
- exportAs: 'globalFooterItem',
18
- template: ` <ng-template #host><ng-content></ng-content></ng-template> `,
19
- preserveWhitespaces: false,
20
- changeDetection: ChangeDetectionStrategy.OnPush,
21
- encapsulation: ViewEncapsulation.None
22
- },] }
23
- ];
24
- GlobalFooterItemComponent.propDecorators = {
25
- host: [{ type: ViewChild, args: ['host', { static: true },] }],
26
- href: [{ type: Input }],
27
- blankTarget: [{ type: Input }]
28
- };
29
- __decorate([
30
- InputBoolean()
31
- ], GlobalFooterItemComponent.prototype, "blankTarget", void 0);
32
-
33
- class GlobalFooterComponent {
34
- constructor(router, win, dom, directionality) {
35
- this.router = router;
36
- this.win = win;
37
- this.dom = dom;
38
- this.directionality = directionality;
39
- this.destroy$ = new Subject();
40
- this._links = [];
41
- this.dir = 'ltr';
42
- }
43
- set links(val) {
44
- val.forEach(i => (i._title = this.dom.bypassSecurityTrustHtml(i.title)));
45
- this._links = val;
46
- }
47
- get links() {
48
- return this._links;
49
- }
50
- to(item) {
51
- if (!item.href) {
52
- return;
53
- }
54
- if (item.blankTarget) {
55
- this.win.open(item.href);
56
- return;
57
- }
58
- if (/^https?:\/\//.test(item.href)) {
59
- this.win.location.href = item.href;
60
- }
61
- else {
62
- this.router.navigateByUrl(item.href);
63
- }
64
- }
65
- ngOnInit() {
66
- var _a;
67
- this.dir = this.directionality.value;
68
- (_a = this.directionality.change) === null || _a === void 0 ? void 0 : _a.pipe(takeUntil(this.destroy$)).subscribe((direction) => {
69
- this.dir = direction;
70
- });
71
- }
72
- ngOnDestroy() {
73
- this.destroy$.next();
74
- this.destroy$.complete();
75
- }
76
- }
77
- GlobalFooterComponent.decorators = [
78
- { type: Component, args: [{
79
- selector: 'global-footer',
80
- exportAs: 'globalFooter',
81
- template: "<div *ngIf=\"links.length > 0 || items.length > 0\" class=\"global-footer__links\">\n <a *ngFor=\"let i of links\" class=\"global-footer__links-item\" (click)=\"to(i)\" [innerHTML]=\"i._title\"></a>\n <a *ngFor=\"let i of items\" class=\"global-footer__links-item\" (click)=\"to(i)\">\n <ng-container *ngTemplateOutlet=\"i.host\"></ng-container>\n </a>\n</div>\n<div class=\"global-footer__copyright\">\n <ng-content></ng-content>\n</div>\n",
82
- host: {
83
- '[class.global-footer]': 'true',
84
- '[class.global-footer-rtl]': `dir === 'rtl'`
85
- },
86
- preserveWhitespaces: false,
87
- changeDetection: ChangeDetectionStrategy.OnPush,
88
- encapsulation: ViewEncapsulation.None
89
- },] }
90
- ];
91
- GlobalFooterComponent.ctorParameters = () => [
92
- { type: Router },
93
- { type: undefined, decorators: [{ type: Inject, args: [WINDOW,] }] },
94
- { type: DomSanitizer },
95
- { type: Directionality, decorators: [{ type: Optional }] }
96
- ];
97
- GlobalFooterComponent.propDecorators = {
98
- links: [{ type: Input }],
99
- items: [{ type: ContentChildren, args: [GlobalFooterItemComponent,] }]
100
- };
101
-
102
- const COMPONENTS = [GlobalFooterComponent, GlobalFooterItemComponent];
103
- class GlobalFooterModule {
104
- }
105
- GlobalFooterModule.decorators = [
106
- { type: NgModule, args: [{
107
- imports: [CommonModule, RouterModule],
108
- declarations: COMPONENTS,
109
- exports: COMPONENTS
110
- },] }
111
- ];
112
-
113
- /**
114
- * Generated bundle index. Do not edit.
115
- */
116
-
117
- export { GlobalFooterComponent, GlobalFooterItemComponent, GlobalFooterModule };
118
- //# sourceMappingURL=globalFooter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"globalFooter.js","sources":["../../../../packages/abc/global-footer/global-footer-item.component.ts","../../../../packages/abc/global-footer/global-footer.component.ts","../../../../packages/abc/global-footer/global-footer.module.ts","../../../../packages/abc/global-footer/globalFooter.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core';\n\nimport { BooleanInput, InputBoolean } from '@delon/util/decorator';\n\n@Component({\n selector: 'global-footer-item',\n exportAs: 'globalFooterItem',\n template: ` <ng-template #host><ng-content></ng-content></ng-template> `,\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class GlobalFooterItemComponent {\n static ngAcceptInputType_blankTarget: BooleanInput;\n\n @ViewChild('host', { static: true }) host: TemplateRef<void>;\n\n @Input() href: string;\n @Input() @InputBoolean() blankTarget: boolean;\n}\n","import { Direction, Directionality } from '@angular/cdk/bidi';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Inject,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n QueryList,\n ViewEncapsulation\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { Router } from '@angular/router';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { WINDOW } from '@delon/util/token';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport { GlobalFooterItemComponent } from './global-footer-item.component';\nimport { GlobalFooterLink } from './global-footer.types';\n\n@Component({\n selector: 'global-footer',\n exportAs: 'globalFooter',\n templateUrl: './global-footer.component.html',\n host: {\n '[class.global-footer]': 'true',\n '[class.global-footer-rtl]': `dir === 'rtl'`\n },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class GlobalFooterComponent implements OnInit, OnDestroy {\n private destroy$ = new Subject<void>();\n private _links: GlobalFooterLink[] = [];\n\n dir: Direction = 'ltr';\n\n @Input()\n set links(val: GlobalFooterLink[]) {\n val.forEach(i => (i._title = this.dom.bypassSecurityTrustHtml(i.title)));\n this._links = val;\n }\n get links(): GlobalFooterLink[] {\n return this._links;\n }\n\n @ContentChildren(GlobalFooterItemComponent) items!: QueryList<GlobalFooterItemComponent>;\n\n constructor(\n private router: Router,\n @Inject(WINDOW) private win: NzSafeAny,\n private dom: DomSanitizer,\n @Optional() private directionality: Directionality\n ) {}\n\n to(item: GlobalFooterLink | GlobalFooterItemComponent): void {\n if (!item.href) {\n return;\n }\n if (item.blankTarget) {\n this.win.open(item.href);\n return;\n }\n if (/^https?:\\/\\//.test(item.href)) {\n this.win.location.href = item.href;\n } else {\n this.router.navigateByUrl(item.href);\n }\n }\n\n ngOnInit(): void {\n this.dir = this.directionality.value;\n this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe((direction: Direction) => {\n this.dir = direction;\n });\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\nimport { GlobalFooterItemComponent } from './global-footer-item.component';\nimport { GlobalFooterComponent } from './global-footer.component';\n\nconst COMPONENTS = [GlobalFooterComponent, GlobalFooterItemComponent];\n\n@NgModule({\n imports: [CommonModule, RouterModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class GlobalFooterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;MAYa,yBAAyB;;;YARrC,SAAS,SAAC;gBACT,QAAQ,EAAE,oBAAoB;gBAC9B,QAAQ,EAAE,kBAAkB;gBAC5B,QAAQ,EAAE,8DAA8D;gBACxE,mBAAmB,EAAE,KAAK;gBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;aACtC;;;mBAIE,SAAS,SAAC,MAAM,EAAE,EAAE,MAA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Ac,CAAC,MAAM,0CAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAC,SAAoB;YACxF,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC;SACtB,CAAC,CAAC;KACJ;IAED,WAAW;QACT,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACrB,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;KAC1B;;;YA7DF,SAAS,SAAC;gBACT,QAAQ,EAAE,eAAe;gBACzB,QAAQ,EAAE,cAAc;gBACxB,2cAA6C;gBAC7C,IAAI,EAAE;oBACJ,uBAAuB,EAAE,MAAM;oBAC/B,2BAA2B,EAAE,eAAe;iBAC7C;gBACD,mBAAmB,EAAE,KAAK;gBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;aACtC;;;YArBQ,MAAM;4CAyCV,MAAM,SAAC,MAAM;YA1CT,YAAY;YAbD,cAAc,uBAyD7B,QAAQ;;;oBAfV,KAAK;oBASL,eAAe,SAAC,yBAAyB;;;AC5C5C,MAAM,UAAU,GAAG,CAAC,qBAAqB,EAAE,yBAAyB,CAAC,CAAC;MAOzD,kBAAkB;;;YAL9B,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;gBACrC,YAAY,EAAE,UAAU;gBACxB,OAAO,EAAE,UAAU;aACpB;;;ACbD;;;;;;"}
package/fesm2015/grid.js DELETED
@@ -1,129 +0,0 @@
1
- import { __decorate } from 'tslib';
2
- import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ElementRef, Renderer2, Optional, Host, NgModule } from '@angular/core';
3
- import { AlainConfigService } from '@delon/util/config';
4
- import { InputNumber } from '@delon/util/decorator';
5
- import { ResponsiveService } from '@delon/theme';
6
- import { CommonModule } from '@angular/common';
7
-
8
- class SGContainerComponent {
9
- constructor(configSrv) {
10
- configSrv.attach(this, 'sg', {
11
- gutter: 32,
12
- col: 2
13
- });
14
- }
15
- get marginValue() {
16
- return -(this.gutter / 2);
17
- }
18
- }
19
- SGContainerComponent.decorators = [
20
- { type: Component, args: [{
21
- selector: 'sg-container, [sg-container]',
22
- exportAs: 'sgContainer',
23
- template: ` <ng-content></ng-content> `,
24
- host: {
25
- '[style.margin-left.px]': 'marginValue',
26
- '[style.margin-right.px]': 'marginValue',
27
- '[class.ant-row]': 'true',
28
- '[class.sg__wrap]': 'true'
29
- },
30
- preserveWhitespaces: false,
31
- changeDetection: ChangeDetectionStrategy.OnPush,
32
- encapsulation: ViewEncapsulation.None
33
- },] }
34
- ];
35
- SGContainerComponent.ctorParameters = () => [
36
- { type: AlainConfigService }
37
- ];
38
- SGContainerComponent.propDecorators = {
39
- gutter: [{ type: Input }],
40
- colInCon: [{ type: Input, args: ['sg-container',] }],
41
- col: [{ type: Input }]
42
- };
43
- __decorate([
44
- InputNumber()
45
- ], SGContainerComponent.prototype, "gutter", void 0);
46
- __decorate([
47
- InputNumber(null)
48
- ], SGContainerComponent.prototype, "colInCon", void 0);
49
- __decorate([
50
- InputNumber(null)
51
- ], SGContainerComponent.prototype, "col", void 0);
52
-
53
- const prefixCls = `sg`;
54
- class SGComponent {
55
- constructor(el, ren, parent, rep) {
56
- this.ren = ren;
57
- this.parent = parent;
58
- this.rep = rep;
59
- this.clsMap = [];
60
- this.inited = false;
61
- if (parent == null) {
62
- throw new Error(`[sg] must include 'sg-container' component`);
63
- }
64
- this.el = el.nativeElement;
65
- }
66
- get paddingValue() {
67
- return this.parent.gutter / 2;
68
- }
69
- setClass() {
70
- const { el, ren, clsMap, col, parent } = this;
71
- clsMap.forEach(cls => ren.removeClass(el, cls));
72
- clsMap.length = 0;
73
- clsMap.push(...this.rep.genCls(col != null ? col : parent.colInCon || parent.col), `${prefixCls}__item`);
74
- clsMap.forEach(cls => ren.addClass(el, cls));
75
- return this;
76
- }
77
- ngOnChanges() {
78
- if (this.inited)
79
- this.setClass();
80
- }
81
- ngAfterViewInit() {
82
- this.setClass();
83
- this.inited = true;
84
- }
85
- }
86
- SGComponent.decorators = [
87
- { type: Component, args: [{
88
- selector: 'sg',
89
- exportAs: 'sg',
90
- template: ` <ng-content></ng-content> `,
91
- host: {
92
- '[style.padding-left.px]': 'paddingValue',
93
- '[style.padding-right.px]': 'paddingValue'
94
- },
95
- preserveWhitespaces: false,
96
- changeDetection: ChangeDetectionStrategy.OnPush,
97
- encapsulation: ViewEncapsulation.None
98
- },] }
99
- ];
100
- SGComponent.ctorParameters = () => [
101
- { type: ElementRef },
102
- { type: Renderer2 },
103
- { type: SGContainerComponent, decorators: [{ type: Optional }, { type: Host }] },
104
- { type: ResponsiveService }
105
- ];
106
- SGComponent.propDecorators = {
107
- col: [{ type: Input }]
108
- };
109
- __decorate([
110
- InputNumber(null)
111
- ], SGComponent.prototype, "col", void 0);
112
-
113
- const COMPONENTS = [SGContainerComponent, SGComponent];
114
- class SGModule {
115
- }
116
- SGModule.decorators = [
117
- { type: NgModule, args: [{
118
- imports: [CommonModule],
119
- declarations: COMPONENTS,
120
- exports: COMPONENTS
121
- },] }
122
- ];
123
-
124
- /**
125
- * Generated bundle index. Do not edit.
126
- */
127
-
128
- export { SGComponent, SGContainerComponent, SGModule };
129
- //# sourceMappingURL=grid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"grid.js","sources":["../../../../packages/abc/sg/sg-container.component.ts","../../../../packages/abc/sg/sg.component.ts","../../../../packages/abc/sg/sg.module.ts","../../../../packages/abc/sg/grid.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\n\nimport { REP_TYPE } from '@delon/theme';\nimport { AlainConfigService } from '@delon/util/config';\nimport { InputNumber, NumberInput } from '@delon/util/decorator';\n\n@Component({\n selector: 'sg-container, [sg-container]',\n exportAs: 'sgContainer',\n template: ` <ng-content></ng-content> `,\n host: {\n '[style.margin-left.px]': 'marginValue',\n '[style.margin-right.px]': 'marginValue',\n '[class.ant-row]': 'true',\n '[class.sg__wrap]': 'true'\n },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class SGContainerComponent {\n static ngAcceptInputType_gutter: NumberInput;\n static ngAcceptInputType_colInCon: NumberInput;\n static ngAcceptInputType_col: NumberInput;\n\n @Input() @InputNumber() gutter: number;\n @Input('sg-container') @InputNumber(null) colInCon: REP_TYPE;\n @Input() @InputNumber(null) col: REP_TYPE;\n\n get marginValue(): number {\n return -(this.gutter / 2);\n }\n\n constructor(configSrv: AlainConfigService) {\n configSrv.attach(this, 'sg', {\n gutter: 32,\n col: 2\n });\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Host,\n Input,\n OnChanges,\n Optional,\n Renderer2,\n ViewEncapsulation\n} from '@angular/core';\n\nimport { ResponsiveService } from '@delon/theme';\nimport { InputNumber, NumberInput } from '@delon/util/decorator';\n\nimport { SGContainerComponent } from './sg-container.component';\n\nconst prefixCls = `sg`;\n\n@Component({\n selector: 'sg',\n exportAs: 'sg',\n template: ` <ng-content></ng-content> `,\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 SGComponent implements OnChanges, AfterViewInit {\n static ngAcceptInputType_col: NumberInput;\n\n private el: HTMLElement;\n private clsMap: string[] = [];\n private inited = false;\n\n @Input() @InputNumber(null) col: number;\n\n get paddingValue(): number {\n return this.parent.gutter / 2;\n }\n\n constructor(\n el: ElementRef,\n private ren: Renderer2,\n @Optional() @Host() private parent: SGContainerComponent,\n private rep: ResponsiveService\n ) {\n if (parent == null) {\n throw new Error(`[sg] must include 'sg-container' component`);\n }\n this.el = el.nativeElement;\n }\n\n private setClass(): this {\n const { el, ren, clsMap, col, parent } = this;\n clsMap.forEach(cls => ren.removeClass(el, cls));\n clsMap.length = 0;\n clsMap.push(...this.rep.genCls(col != null ? col : parent.colInCon || parent.col), `${prefixCls}__item`);\n clsMap.forEach(cls => ren.addClass(el, cls));\n return this;\n }\n\n ngOnChanges(): void {\n if (this.inited) this.setClass();\n }\n\n ngAfterViewInit(): void {\n this.setClass();\n this.inited = true;\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { SGContainerComponent } from './sg-container.component';\nimport { SGComponent } from './sg.component';\n\nconst COMPONENTS = [SGContainerComponent, SGComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class SGModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MAoBa,oBAAoB;IAa/B,YAAY,SAA6B;QACvC,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE;YAC3B,MAAM,EAAE,EAAE;YACV,GAAG,EAAE,CAAC;SACP,CAAC,CAAC;KACJ;IATD,IAAI,WAAW;QACb,OAAO,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;KAC3B;;;YAzBF,SAAS,SAAC;gBACT,QAAQ,EAAE,8BAA8B;gBACxC,QAAQ,EAAE,aAAa;gBACvB,QAAQ,EAAE,6BAA6B;gBACvC,IAAI,EAAE;oBACJ,wBAAwB,EAAE,aAAa;oBACvC,yBAAyB,EAAE,aAAa;oBACxC,iBAAiB,EAAE,MAAM;oBACzB,kBAAkB,EAAE,MAAM;iBAC3B;gBACD,mBAAmB,EAAE,KAAK;gBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;aACtC;;;YAhBQ,kBAAkB;;;qBAsBxB,KAAK;uBACL,KAAK,SAAC,cAAc;kBACpB,KAAK;;AAFkB;IAAd,WAAW,EAAE;oDAAgB;AACG;IAAlB,WAAW,C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IAED,eAAe;QACb,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;KACpB;;;YArDF,SAAS,SAAC;gBACT,QAAQ,EAAE,IAAI;gBACd,QAAQ,EAAE,IAAI;gBACd,QAAQ,EAAE,6BAA6B;gBACvC,IAAI,EAAE;oBACJ,yBAAyB,EAAE,cAAc;oBACzC,0BAA0B,EAAE,cAAc;iBAC3C;gBACD,mBAAmB,EAAE,KAAK;gBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;aACtC;;;YA3BC,UAAU;YAKV,SAAS;YAOF,oBAAoB,uBAgCxB,QAAQ,YAAI,IAAI;YAnCZ,iBAAiB;;;kBA0BvB,KAAK;;AAAsB;IAAlB,WAAW,CAAC,IAAI,CAAC;wCAAa;;ACjC1C,MAAM,UAAU,GAAG,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC;MAO1C,QAAQ;;;YALpB,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,UAAU;gBACxB,OAAO,EAAE,UAAU;aACpB;;;ACZD;;;;;;"}
package/fesm2015/image.js DELETED
@@ -1,152 +0,0 @@
1
- import { __decorate } from 'tslib';
2
- import { Platform } from '@angular/cdk/platform';
3
- import { Directive, ElementRef, Input, NgModule } from '@angular/core';
4
- import { Subject, of, throwError, Observable } from 'rxjs';
5
- import { takeUntil, take, finalize, filter } from 'rxjs/operators';
6
- import { _HttpClient } from '@delon/theme';
7
- import { AlainConfigService } from '@delon/util/config';
8
- import { InputNumber, InputBoolean } from '@delon/util/decorator';
9
- import { NzModalService, NzModalModule } from 'ng-zorro-antd/modal';
10
- import { CommonModule } from '@angular/common';
11
-
12
- /**
13
- * @deprecated Will be removed in 13.0.0, Pls used [nz-image](https://ng.ant.design/components/image/en) instead, for examples:
14
- */
15
- class ImageDirective {
16
- constructor(el, configSrv, http, platform, modal) {
17
- this.http = http;
18
- this.platform = platform;
19
- this.modal = modal;
20
- this.useHttp = false;
21
- this.inited = false;
22
- this.destroy$ = new Subject();
23
- configSrv.attach(this, 'image', { size: 64, error: `./assets/img/logo.svg` });
24
- this.imgEl = el.nativeElement;
25
- }
26
- ngOnInit() {
27
- this.update();
28
- this.updateError();
29
- this.inited = true;
30
- }
31
- ngOnChanges(changes) {
32
- const { size, imgEl } = this;
33
- imgEl.height = size;
34
- imgEl.width = size;
35
- if (this.inited) {
36
- if (changes.error) {
37
- this.updateError();
38
- }
39
- this.update();
40
- }
41
- }
42
- update() {
43
- this.getSrc(this.src, true)
44
- .pipe(takeUntil(this.destroy$), take(1))
45
- .subscribe(src => (this.imgEl.src = src), () => this.setError());
46
- }
47
- getSrc(data, isSize) {
48
- const { size, useHttp } = this;
49
- if (useHttp) {
50
- return this.getByHttp(data);
51
- }
52
- if (isSize && data.includes('qlogo.cn')) {
53
- const arr = data.split('/');
54
- const imgSize = arr[arr.length - 1];
55
- arr[arr.length - 1] = imgSize === '0' || +imgSize !== size ? size.toString() : imgSize;
56
- data = arr.join('/');
57
- }
58
- return of(data.replace(/^(?:https?:)/i, ''));
59
- }
60
- getByHttp(url) {
61
- if (!this.platform.isBrowser) {
62
- return throwError(`Not supported`);
63
- }
64
- return new Observable((observer) => {
65
- this.http
66
- .get(url, null, { responseType: 'blob' })
67
- .pipe(takeUntil(this.destroy$), take(1), finalize(() => observer.complete()))
68
- .subscribe((blob) => {
69
- const reader = new FileReader();
70
- reader.onloadend = () => observer.next(reader.result);
71
- reader.onerror = () => observer.error(`Can't reader image data by ${url}`);
72
- reader.readAsDataURL(blob);
73
- }, () => observer.error(`Can't access remote url ${url}`));
74
- });
75
- }
76
- updateError() {
77
- const { imgEl, error } = this;
78
- imgEl.onerror = function () {
79
- this.onerror = null;
80
- this.src = error;
81
- };
82
- }
83
- setError() {
84
- const { imgEl, error } = this;
85
- imgEl.src = error;
86
- }
87
- open(ev) {
88
- if (!this.previewSrc) {
89
- return;
90
- }
91
- ev.stopPropagation();
92
- ev.preventDefault();
93
- this.getSrc(this.previewSrc, false)
94
- .pipe(takeUntil(this.destroy$), filter(w => !!w), take(1))
95
- .subscribe(src => {
96
- this.modal.create(Object.assign({ nzTitle: undefined, nzFooter: null, nzContent: `<img class="img-fluid" src="${src}" />` }, this.previewModalOptions));
97
- });
98
- }
99
- ngOnDestroy() {
100
- this.destroy$.next();
101
- this.destroy$.complete();
102
- }
103
- }
104
- ImageDirective.decorators = [
105
- { type: Directive, args: [{
106
- selector: '[_src]',
107
- exportAs: '_src',
108
- host: {
109
- '(click)': 'open($event)',
110
- '[class.point]': `previewSrc`
111
- }
112
- },] }
113
- ];
114
- ImageDirective.ctorParameters = () => [
115
- { type: ElementRef },
116
- { type: AlainConfigService },
117
- { type: _HttpClient },
118
- { type: Platform },
119
- { type: NzModalService }
120
- ];
121
- ImageDirective.propDecorators = {
122
- src: [{ type: Input, args: ['_src',] }],
123
- size: [{ type: Input }],
124
- error: [{ type: Input }],
125
- useHttp: [{ type: Input }],
126
- previewSrc: [{ type: Input }],
127
- previewModalOptions: [{ type: Input }]
128
- };
129
- __decorate([
130
- InputNumber()
131
- ], ImageDirective.prototype, "size", void 0);
132
- __decorate([
133
- InputBoolean()
134
- ], ImageDirective.prototype, "useHttp", void 0);
135
-
136
- const DIRECTIVES = [ImageDirective];
137
- class ImageModule {
138
- }
139
- ImageModule.decorators = [
140
- { type: NgModule, args: [{
141
- imports: [CommonModule, NzModalModule],
142
- declarations: DIRECTIVES,
143
- exports: DIRECTIVES
144
- },] }
145
- ];
146
-
147
- /**
148
- * Generated bundle index. Do not edit.
149
- */
150
-
151
- export { ImageDirective, ImageModule };
152
- //# sourceMappingURL=image.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"image.js","sources":["../../../../packages/abc/image/image.directive.ts","../../../../packages/abc/image/image.module.ts","../../../../packages/abc/image/image.ts"],"sourcesContent":["import { Platform } from '@angular/cdk/platform';\nimport { Directive, ElementRef, Input, OnChanges, OnDestroy, OnInit, SimpleChange, SimpleChanges } from '@angular/core';\nimport { Observable, Observer, of, Subject, throwError } from 'rxjs';\nimport { filter, finalize, take, takeUntil } from 'rxjs/operators';\n\nimport { _HttpClient } from '@delon/theme';\nimport { AlainConfigService } from '@delon/util/config';\nimport { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator';\nimport { ModalOptions, NzModalService } from 'ng-zorro-antd/modal';\n\n/**\n * @deprecated Will be removed in 13.0.0, Pls used [nz-image](https://ng.ant.design/components/image/en) instead, for examples:\n */\n@Directive({\n selector: '[_src]',\n exportAs: '_src',\n host: {\n '(click)': 'open($event)',\n '[class.point]': `previewSrc`\n }\n})\nexport class ImageDirective implements OnChanges, OnInit, OnDestroy {\n static ngAcceptInputType_size: NumberInput;\n static ngAcceptInputType_useHttp: BooleanInput;\n\n @Input('_src') src: string;\n @Input() @InputNumber() size: number;\n @Input() error: string;\n @Input() @InputBoolean() useHttp = false;\n @Input() previewSrc!: string;\n @Input() previewModalOptions!: ModalOptions;\n\n private inited = false;\n private imgEl: HTMLImageElement;\n private destroy$ = new Subject<void>();\n\n constructor(\n el: ElementRef<HTMLImageElement>,\n configSrv: AlainConfigService,\n private http: _HttpClient,\n private platform: Platform,\n private modal: NzModalService\n ) {\n configSrv.attach(this, 'image', { size: 64, error: `./assets/img/logo.svg` });\n this.imgEl = el.nativeElement;\n }\n\n ngOnInit(): void {\n this.update();\n this.updateError();\n this.inited = true;\n }\n\n ngOnChanges(changes: { [P in keyof this]?: SimpleChange } & SimpleChanges): void {\n const { size, imgEl } = this;\n imgEl.height = size;\n imgEl.width = size;\n\n if (this.inited) {\n if (changes.error) {\n this.updateError();\n }\n this.update();\n }\n }\n\n private update(): void {\n this.getSrc(this.src, true)\n .pipe(takeUntil(this.destroy$), take(1))\n .subscribe(\n src => (this.imgEl.src = src),\n () => this.setError()\n );\n }\n\n private getSrc(data: string, isSize: boolean): Observable<string> {\n const { size, useHttp } = this;\n if (useHttp) {\n return this.getByHttp(data);\n }\n if (isSize && data.includes('qlogo.cn')) {\n const arr = data.split('/');\n const imgSize = arr[arr.length - 1];\n arr[arr.length - 1] = imgSize === '0' || +imgSize !== size ? size.toString() : imgSize;\n data = arr.join('/');\n }\n\n return of(data.replace(/^(?:https?:)/i, ''));\n }\n\n private getByHttp(url: string): Observable<string> {\n if (!this.platform.isBrowser) {\n return throwError(`Not supported`);\n }\n\n return new Observable((observer: Observer<string>) => {\n this.http\n .get(url, null, { responseType: 'blob' })\n .pipe(\n takeUntil(this.destroy$),\n take(1),\n finalize(() => observer.complete())\n )\n .subscribe(\n (blob: Blob) => {\n const reader = new FileReader();\n reader.onloadend = () => observer.next(reader.result as string);\n reader.onerror = () => observer.error(`Can't reader image data by ${url}`);\n reader.readAsDataURL(blob);\n },\n () => observer.error(`Can't access remote url ${url}`)\n );\n });\n }\n\n private updateError(): void {\n const { imgEl, error } = this;\n imgEl.onerror = function () {\n this.onerror = null;\n this.src = error;\n };\n }\n\n private setError(): void {\n const { imgEl, error } = this;\n imgEl.src = error;\n }\n\n open(ev: Event): void {\n if (!this.previewSrc) {\n return;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n\n this.getSrc(this.previewSrc, false)\n .pipe(\n takeUntil(this.destroy$),\n filter(w => !!w),\n take(1)\n )\n .subscribe(src => {\n this.modal.create({\n nzTitle: undefined,\n nzFooter: null,\n nzContent: `<img class=\"img-fluid\" src=\"${src}\" />`,\n ...this.previewModalOptions\n });\n });\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzModalModule } from 'ng-zorro-antd/modal';\n\nimport { ImageDirective } from './image.directive';\n\nconst DIRECTIVES = [ImageDirective];\n\n@NgModule({\n imports: [CommonModule, NzModalModule],\n declarations: DIRECTIVES,\n exports: DIRECTIVES\n})\nexport class ImageModule {}\n","/**\n * Generated bundle index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