@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
@@ -0,0 +1,141 @@
1
+ import { __awaiter } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { EventEmitter, Directive, Input, Output, NgModule } from '@angular/core';
4
+ import { finalize } from 'rxjs/operators';
5
+ import { saveAs } from 'file-saver';
6
+ import * as i1 from '@delon/theme';
7
+ import { AlainThemeModule } from '@delon/theme';
8
+ import { CommonModule } from '@angular/common';
9
+
10
+ class DownFileDirective {
11
+ constructor(el, _http) {
12
+ this.el = el;
13
+ this._http = _http;
14
+ this.isFileSaverSupported = true;
15
+ this.httpMethod = 'get';
16
+ this.success = new EventEmitter();
17
+ this.error = new EventEmitter();
18
+ let isFileSaverSupported = false;
19
+ try {
20
+ isFileSaverSupported = !!new Blob();
21
+ }
22
+ catch (_a) { }
23
+ this.isFileSaverSupported = isFileSaverSupported;
24
+ if (!isFileSaverSupported) {
25
+ el.nativeElement.classList.add(`down-file__not-support`);
26
+ }
27
+ }
28
+ getDisposition(data) {
29
+ const arr = (data || '')
30
+ .split(';')
31
+ .filter(i => i.includes('='))
32
+ .map(v => {
33
+ const strArr = v.split('=');
34
+ const utfId = `UTF-8''`;
35
+ let value = strArr[1];
36
+ if (value.startsWith(utfId))
37
+ value = value.substring(utfId.length);
38
+ return { [strArr[0].trim()]: value };
39
+ });
40
+ return arr.reduce((_o, item) => item, {});
41
+ }
42
+ setDisabled(status) {
43
+ const el = this.el.nativeElement;
44
+ el.disabled = status;
45
+ el.classList[status ? 'add' : 'remove'](`down-file__disabled`);
46
+ }
47
+ _click(ev) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ if (!this.isFileSaverSupported || (typeof this.pre === 'function' && !(yield this.pre(ev)))) {
50
+ ev.stopPropagation();
51
+ ev.preventDefault();
52
+ return;
53
+ }
54
+ this.setDisabled(true);
55
+ this._http
56
+ .request(this.httpMethod, this.httpUrl, {
57
+ params: this.httpData || {},
58
+ responseType: 'blob',
59
+ observe: 'response',
60
+ body: this.httpBody
61
+ })
62
+ .pipe(finalize(() => this.setDisabled(false)))
63
+ .subscribe({
64
+ next: (res) => {
65
+ if (res.status !== 200 || res.body.size <= 0) {
66
+ this.error.emit(res);
67
+ return;
68
+ }
69
+ const disposition = this.getDisposition(res.headers.get('content-disposition'));
70
+ let fileName = this.fileName;
71
+ if (typeof fileName === 'function')
72
+ fileName = fileName(res);
73
+ fileName =
74
+ fileName ||
75
+ disposition[`filename*`] ||
76
+ disposition[`filename`] ||
77
+ res.headers.get('filename') ||
78
+ res.headers.get('x-filename');
79
+ saveAs(res.body, decodeURI(fileName));
80
+ this.success.emit(res);
81
+ },
82
+ error: err => this.error.emit(err)
83
+ });
84
+ });
85
+ }
86
+ }
87
+ DownFileDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DownFileDirective, deps: [{ token: i0.ElementRef }, { token: i1._HttpClient }], target: i0.ɵɵFactoryTarget.Directive });
88
+ DownFileDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: DownFileDirective, selector: "[down-file]", inputs: { httpData: ["http-data", "httpData"], httpBody: ["http-body", "httpBody"], httpMethod: ["http-method", "httpMethod"], httpUrl: ["http-url", "httpUrl"], fileName: ["file-name", "fileName"], pre: "pre" }, outputs: { success: "success", error: "error" }, host: { listeners: { "click": "_click($event)" } }, exportAs: ["downFile"], ngImport: i0 });
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DownFileDirective, decorators: [{
90
+ type: Directive,
91
+ args: [{
92
+ selector: '[down-file]',
93
+ exportAs: 'downFile',
94
+ host: {
95
+ '(click)': '_click($event)'
96
+ }
97
+ }]
98
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1._HttpClient }]; }, propDecorators: { httpData: [{
99
+ type: Input,
100
+ args: ['http-data']
101
+ }], httpBody: [{
102
+ type: Input,
103
+ args: ['http-body']
104
+ }], httpMethod: [{
105
+ type: Input,
106
+ args: ['http-method']
107
+ }], httpUrl: [{
108
+ type: Input,
109
+ args: ['http-url']
110
+ }], fileName: [{
111
+ type: Input,
112
+ args: ['file-name']
113
+ }], pre: [{
114
+ type: Input
115
+ }], success: [{
116
+ type: Output
117
+ }], error: [{
118
+ type: Output
119
+ }] } });
120
+
121
+ const DIRECTIVES = [DownFileDirective];
122
+ class DownFileModule {
123
+ }
124
+ DownFileModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DownFileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
125
+ DownFileModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DownFileModule, declarations: [DownFileDirective], imports: [CommonModule, AlainThemeModule], exports: [DownFileDirective] });
126
+ DownFileModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DownFileModule, imports: [[CommonModule, AlainThemeModule]] });
127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DownFileModule, decorators: [{
128
+ type: NgModule,
129
+ args: [{
130
+ imports: [CommonModule, AlainThemeModule],
131
+ declarations: [...DIRECTIVES],
132
+ exports: [...DIRECTIVES]
133
+ }]
134
+ }] });
135
+
136
+ /**
137
+ * Generated bundle index. Do not edit.
138
+ */
139
+
140
+ export { DownFileDirective, DownFileModule };
141
+ //# sourceMappingURL=downFile.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"downFile.mjs","sources":["../../../../packages/abc/down-file/down-file.directive.ts","../../../../packages/abc/down-file/down-file.module.ts","../../../../packages/abc/down-file/downFile.ts"],"sourcesContent":["import { HttpResponse } from '@angular/common/http';\nimport { Directive, ElementRef, EventEmitter, Input, Output } from '@angular/core';\nimport { finalize } from 'rxjs/operators';\n\nimport { saveAs } from 'file-saver';\n\nimport { _HttpClient } from '@delon/theme';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\n@Directive({\n selector: '[down-file]',\n exportAs: 'downFile',\n host: {\n '(click)': '_click($event)'\n }\n})\nexport class DownFileDirective {\n private isFileSaverSupported = true;\n @Input('http-data') httpData: NzSafeAny;\n @Input('http-body') httpBody: NzSafeAny;\n @Input('http-method') httpMethod: string = 'get';\n @Input('http-url') httpUrl!: string;\n @Input('file-name') fileName?: string | ((rep: HttpResponse<Blob>) => string);\n @Input() pre?: (ev: MouseEvent) => Promise<boolean>;\n @Output() readonly success = new EventEmitter<HttpResponse<Blob>>();\n @Output() readonly error = new EventEmitter<NzSafeAny>();\n\n private getDisposition(data: string | null): NzSafeAny {\n const arr: Array<Record<string, string>> = (data || '')\n .split(';')\n .filter(i => i.includes('='))\n .map(v => {\n const strArr = v.split('=');\n const utfId = `UTF-8''`;\n let value = strArr[1];\n if (value.startsWith(utfId)) value = value.substring(utfId.length);\n return { [strArr[0].trim()]: value };\n });\n return arr.reduce((_o, item) => item, {});\n }\n\n constructor(private el: ElementRef<HTMLButtonElement>, private _http: _HttpClient) {\n let isFileSaverSupported = false;\n try {\n isFileSaverSupported = !!new Blob();\n } catch {}\n this.isFileSaverSupported = isFileSaverSupported;\n if (!isFileSaverSupported) {\n el.nativeElement.classList.add(`down-file__not-support`);\n }\n }\n\n private setDisabled(status: boolean): void {\n const el = this.el.nativeElement;\n el.disabled = status;\n el.classList[status ? 'add' : 'remove'](`down-file__disabled`);\n }\n\n async _click(ev: MouseEvent): Promise<void> {\n if (!this.isFileSaverSupported || (typeof this.pre === 'function' && !(await this.pre(ev)))) {\n ev.stopPropagation();\n ev.preventDefault();\n return;\n }\n this.setDisabled(true);\n this._http\n .request(this.httpMethod, this.httpUrl, {\n params: this.httpData || {},\n responseType: 'blob',\n observe: 'response',\n body: this.httpBody\n })\n .pipe(finalize(() => this.setDisabled(false)))\n .subscribe({\n next: (res: HttpResponse<Blob>) => {\n if (res.status !== 200 || res.body!.size <= 0) {\n this.error.emit(res);\n return;\n }\n const disposition = this.getDisposition(res.headers.get('content-disposition'));\n let fileName = this.fileName;\n if (typeof fileName === 'function') fileName = fileName(res);\n fileName =\n fileName ||\n disposition[`filename*`] ||\n disposition[`filename`] ||\n res.headers.get('filename') ||\n res.headers.get('x-filename');\n saveAs(res.body!, decodeURI(fileName as string));\n this.success.emit(res);\n },\n error: err => this.error.emit(err)\n });\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { AlainThemeModule } from '@delon/theme';\n\nimport { DownFileDirective } from './down-file.directive';\n\nconst DIRECTIVES = [DownFileDirective];\n\n@NgModule({\n imports: [CommonModule, AlainThemeModule],\n declarations: [...DIRECTIVES],\n exports: [...DIRECTIVES]\n})\nexport class DownFileModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"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"}
@@ -0,0 +1,443 @@
1
+ import { __decorate } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Host, Optional, TemplateRef, ContentChild, ViewChild, NgModule } from '@angular/core';
4
+ import { BehaviorSubject, Subject } from 'rxjs';
5
+ import { filter, takeUntil } from 'rxjs/operators';
6
+ import { toNumber, InputNumber, InputBoolean } from '@delon/util/decorator';
7
+ import * as i1 from '@delon/util/config';
8
+ import * as i3 from '@angular/common';
9
+ import { CommonModule } from '@angular/common';
10
+ import * as i3$1 from 'ng-zorro-antd/core/outlet';
11
+ import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
12
+ import { RequiredValidator, NgModel, FormControlName } from '@angular/forms';
13
+ import { isEmpty } from '@delon/util/browser';
14
+ import { helpMotion } from 'ng-zorro-antd/core/animation';
15
+ import * as i2 from '@delon/theme';
16
+ import * as i5 from 'ng-zorro-antd/tooltip';
17
+ import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
18
+ import * as i6 from 'ng-zorro-antd/icon';
19
+ import { NzIconModule } from 'ng-zorro-antd/icon';
20
+
21
+ class SEContainerComponent {
22
+ constructor(configSrv) {
23
+ this.errorNotify$ = new BehaviorSubject(null);
24
+ this.noColon = false;
25
+ this.line = false;
26
+ configSrv.attach(this, 'se', {
27
+ size: 'default',
28
+ nzLayout: 'horizontal',
29
+ gutter: 32,
30
+ col: 2,
31
+ labelWidth: 150,
32
+ firstVisual: false,
33
+ ingoreDirty: false
34
+ });
35
+ }
36
+ get gutter() {
37
+ return this.nzLayout === 'horizontal' ? this._gutter : 0;
38
+ }
39
+ set gutter(value) {
40
+ this._gutter = toNumber(value);
41
+ }
42
+ get nzLayout() {
43
+ return this._nzLayout;
44
+ }
45
+ set nzLayout(value) {
46
+ this._nzLayout = value;
47
+ if (value === 'inline') {
48
+ this.size = 'compact';
49
+ }
50
+ }
51
+ set errors(val) {
52
+ this.setErrors(val);
53
+ }
54
+ get margin() {
55
+ return -(this.gutter / 2);
56
+ }
57
+ get errorNotify() {
58
+ return this.errorNotify$.pipe(filter(v => v != null));
59
+ }
60
+ setErrors(errors) {
61
+ for (const error of errors) {
62
+ this.errorNotify$.next(error);
63
+ }
64
+ }
65
+ }
66
+ SEContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SEContainerComponent, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Component });
67
+ SEContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SEContainerComponent, selector: "se-container, [se-container]", inputs: { colInCon: ["se-container", "colInCon"], col: "col", labelWidth: "labelWidth", noColon: "noColon", title: "title", gutter: "gutter", nzLayout: "nzLayout", size: "size", firstVisual: "firstVisual", ingoreDirty: "ingoreDirty", line: "line", errors: "errors" }, host: { properties: { "class.ant-row": "true", "class.se__container": "true", "class.se__horizontal": "nzLayout === 'horizontal'", "class.se__vertical": "nzLayout === 'vertical'", "class.se__inline": "nzLayout === 'inline'", "class.se__compact": "size === 'compact'", "style.margin-left.px": "margin", "style.margin-right.px": "margin" } }, exportAs: ["seContainer"], ngImport: i0, template: `
68
+ <div se-title *ngIf="title">
69
+ <ng-container *nzStringTemplateOutlet="title">{{ title }}</ng-container>
70
+ </div>
71
+ <ng-content></ng-content>
72
+ `, isInline: true, components: [{ type: i0.forwardRef(function () { return SETitleComponent; }), selector: "se-title, [se-title]", exportAs: ["seTitle"] }], directives: [{ type: i0.forwardRef(function () { return i3.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i0.forwardRef(function () { return i3$1.NzStringTemplateOutletDirective; }), selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
73
+ __decorate([
74
+ InputNumber(null)
75
+ ], SEContainerComponent.prototype, "colInCon", void 0);
76
+ __decorate([
77
+ InputNumber(null)
78
+ ], SEContainerComponent.prototype, "col", void 0);
79
+ __decorate([
80
+ InputNumber(null)
81
+ ], SEContainerComponent.prototype, "labelWidth", void 0);
82
+ __decorate([
83
+ InputBoolean()
84
+ ], SEContainerComponent.prototype, "noColon", void 0);
85
+ __decorate([
86
+ InputBoolean()
87
+ ], SEContainerComponent.prototype, "firstVisual", void 0);
88
+ __decorate([
89
+ InputBoolean()
90
+ ], SEContainerComponent.prototype, "ingoreDirty", void 0);
91
+ __decorate([
92
+ InputBoolean()
93
+ ], SEContainerComponent.prototype, "line", void 0);
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SEContainerComponent, decorators: [{
95
+ type: Component,
96
+ args: [{
97
+ selector: 'se-container, [se-container]',
98
+ exportAs: 'seContainer',
99
+ template: `
100
+ <div se-title *ngIf="title">
101
+ <ng-container *nzStringTemplateOutlet="title">{{ title }}</ng-container>
102
+ </div>
103
+ <ng-content></ng-content>
104
+ `,
105
+ host: {
106
+ '[class.ant-row]': `true`,
107
+ '[class.se__container]': `true`,
108
+ '[class.se__horizontal]': `nzLayout === 'horizontal'`,
109
+ '[class.se__vertical]': `nzLayout === 'vertical'`,
110
+ '[class.se__inline]': `nzLayout === 'inline'`,
111
+ '[class.se__compact]': `size === 'compact'`,
112
+ '[style.margin-left.px]': `margin`,
113
+ '[style.margin-right.px]': `margin`
114
+ },
115
+ preserveWhitespaces: false,
116
+ changeDetection: ChangeDetectionStrategy.OnPush,
117
+ encapsulation: ViewEncapsulation.None
118
+ }]
119
+ }], ctorParameters: function () { return [{ type: i1.AlainConfigService }]; }, propDecorators: { colInCon: [{
120
+ type: Input,
121
+ args: ['se-container']
122
+ }], col: [{
123
+ type: Input
124
+ }], labelWidth: [{
125
+ type: Input
126
+ }], noColon: [{
127
+ type: Input
128
+ }], title: [{
129
+ type: Input
130
+ }], gutter: [{
131
+ type: Input
132
+ }], nzLayout: [{
133
+ type: Input
134
+ }], size: [{
135
+ type: Input
136
+ }], firstVisual: [{
137
+ type: Input
138
+ }], ingoreDirty: [{
139
+ type: Input
140
+ }], line: [{
141
+ type: Input
142
+ }], errors: [{
143
+ type: Input
144
+ }] } });
145
+ class SETitleComponent {
146
+ constructor(parent, el, ren) {
147
+ this.parent = parent;
148
+ this.ren = ren;
149
+ if (parent == null) {
150
+ throw new Error(`[se-title] must include 'se-container' component`);
151
+ }
152
+ this.el = el.nativeElement;
153
+ }
154
+ setClass() {
155
+ const { el } = this;
156
+ const gutter = this.parent.gutter;
157
+ this.ren.setStyle(el, 'padding-left', `${gutter / 2}px`);
158
+ this.ren.setStyle(el, 'padding-right', `${gutter / 2}px`);
159
+ }
160
+ ngOnInit() {
161
+ this.setClass();
162
+ }
163
+ }
164
+ SETitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SETitleComponent, deps: [{ token: SEContainerComponent, host: true, optional: true }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
165
+ SETitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SETitleComponent, selector: "se-title, [se-title]", host: { properties: { "class.se__title": "true" } }, exportAs: ["seTitle"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SETitleComponent, decorators: [{
167
+ type: Component,
168
+ args: [{
169
+ selector: 'se-title, [se-title]',
170
+ exportAs: 'seTitle',
171
+ template: '<ng-content></ng-content>',
172
+ host: {
173
+ '[class.se__title]': 'true'
174
+ },
175
+ preserveWhitespaces: false,
176
+ changeDetection: ChangeDetectionStrategy.OnPush,
177
+ encapsulation: ViewEncapsulation.None
178
+ }]
179
+ }], ctorParameters: function () {
180
+ return [{ type: SEContainerComponent, decorators: [{
181
+ type: Host
182
+ }, {
183
+ type: Optional
184
+ }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }];
185
+ } });
186
+
187
+ const prefixCls = `se`;
188
+ let nextUniqueId = 0;
189
+ class SEComponent {
190
+ constructor(el, parent, rep, ren, cdr) {
191
+ this.parent = parent;
192
+ this.rep = rep;
193
+ this.ren = ren;
194
+ this.cdr = cdr;
195
+ this.unsubscribe$ = new Subject();
196
+ this.clsMap = [];
197
+ this.inited = false;
198
+ this.onceFlag = false;
199
+ this.errorData = {};
200
+ this.isBindModel = false;
201
+ this.invalid = false;
202
+ this._labelWidth = null;
203
+ this._noColon = null;
204
+ // #region fields
205
+ this.optional = null;
206
+ this.optionalHelp = null;
207
+ this.required = false;
208
+ this.controlClass = '';
209
+ this.hideLabel = false;
210
+ this._id = `_se-${++nextUniqueId}`;
211
+ this._autoId = true;
212
+ if (parent == null) {
213
+ throw new Error(`[se] must include 'se-container' component`);
214
+ }
215
+ this.el = el.nativeElement;
216
+ parent.errorNotify
217
+ .pipe(takeUntil(this.unsubscribe$), filter(w => this.inited && this.ngControl != null && this.ngControl.name === w.name))
218
+ .subscribe(item => {
219
+ this.error = item.error;
220
+ this.updateStatus(this.ngControl.invalid);
221
+ });
222
+ }
223
+ set error(val) {
224
+ this.errorData = typeof val === 'string' || val instanceof TemplateRef ? { '': val } : val;
225
+ }
226
+ set id(value) {
227
+ this._id = value;
228
+ this._autoId = false;
229
+ }
230
+ // #endregion
231
+ get paddingValue() {
232
+ return this.parent.gutter / 2;
233
+ }
234
+ get showErr() {
235
+ return this.invalid && !!this._error && !this.compact;
236
+ }
237
+ get compact() {
238
+ return this.parent.size === 'compact';
239
+ }
240
+ get ngControl() {
241
+ return this.ngModel || this.formControlName;
242
+ }
243
+ setClass() {
244
+ const { el, ren, clsMap, col, parent, cdr, line, labelWidth, rep, noColon } = this;
245
+ this._noColon = noColon != null ? noColon : parent.noColon;
246
+ this._labelWidth = parent.nzLayout === 'horizontal' ? (labelWidth != null ? labelWidth : parent.labelWidth) : null;
247
+ clsMap.forEach(cls => ren.removeClass(el, cls));
248
+ clsMap.length = 0;
249
+ const repCls = parent.nzLayout === 'horizontal' ? rep.genCls(col != null ? col : parent.colInCon || parent.col) : [];
250
+ clsMap.push(`ant-form-item`, ...repCls, `${prefixCls}__item`);
251
+ if (line || parent.line) {
252
+ clsMap.push(`${prefixCls}__line`);
253
+ }
254
+ clsMap.forEach(cls => ren.addClass(el, cls));
255
+ cdr.detectChanges();
256
+ return this;
257
+ }
258
+ bindModel() {
259
+ var _a, _b;
260
+ if (!this.ngControl || this.isBindModel)
261
+ return;
262
+ this.isBindModel = true;
263
+ this.ngControl
264
+ .statusChanges.pipe(takeUntil(this.unsubscribe$))
265
+ .subscribe(res => this.updateStatus(res === 'INVALID'));
266
+ if (this._autoId) {
267
+ const controlAccessor = this.ngControl.valueAccessor;
268
+ const control = (_a = ((controlAccessor === null || controlAccessor === void 0 ? void 0 : controlAccessor.elementRef) || (controlAccessor === null || controlAccessor === void 0 ? void 0 : controlAccessor._elementRef))) === null || _a === void 0 ? void 0 : _a.nativeElement;
269
+ if (!!control) {
270
+ if (control.id) {
271
+ this._id = control.id;
272
+ }
273
+ else {
274
+ control.id = this._id;
275
+ }
276
+ }
277
+ }
278
+ // auto required
279
+ if (this.required !== true) {
280
+ const rawValidators = (_b = this.ngControl) === null || _b === void 0 ? void 0 : _b._rawValidators;
281
+ this.required = rawValidators.find(w => w instanceof RequiredValidator) != null;
282
+ this.cdr.detectChanges();
283
+ }
284
+ }
285
+ updateStatus(invalid) {
286
+ var _a, _b, _c, _d;
287
+ if (((_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.disabled) || ((_b = this.ngControl) === null || _b === void 0 ? void 0 : _b.isDisabled)) {
288
+ return;
289
+ }
290
+ this.invalid =
291
+ !this.onceFlag && invalid && this.parent.ingoreDirty === false && !((_c = this.ngControl) === null || _c === void 0 ? void 0 : _c.dirty) ? false : invalid;
292
+ const errors = (_d = this.ngControl) === null || _d === void 0 ? void 0 : _d.errors;
293
+ if (errors != null && Object.keys(errors).length > 0) {
294
+ const key = Object.keys(errors)[0] || '';
295
+ const err = this.errorData[key];
296
+ this._error = err != null ? err : this.errorData[''] || '';
297
+ }
298
+ this.cdr.detectChanges();
299
+ }
300
+ checkContent() {
301
+ const el = this.contentElement.nativeElement;
302
+ const cls = `${prefixCls}__item-empty`;
303
+ if (isEmpty(el)) {
304
+ this.ren.addClass(el, cls);
305
+ }
306
+ else {
307
+ this.ren.removeClass(el, cls);
308
+ }
309
+ }
310
+ ngAfterContentInit() {
311
+ this.checkContent();
312
+ }
313
+ ngOnChanges() {
314
+ this.onceFlag = this.parent.firstVisual;
315
+ if (this.inited) {
316
+ this.setClass().bindModel();
317
+ }
318
+ }
319
+ ngAfterViewInit() {
320
+ this.setClass().bindModel();
321
+ this.inited = true;
322
+ if (this.onceFlag) {
323
+ Promise.resolve().then(() => {
324
+ var _a;
325
+ this.updateStatus((_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.invalid);
326
+ this.onceFlag = false;
327
+ });
328
+ }
329
+ }
330
+ ngOnDestroy() {
331
+ const { unsubscribe$ } = this;
332
+ unsubscribe$.next();
333
+ unsubscribe$.complete();
334
+ }
335
+ }
336
+ SEComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SEComponent, deps: [{ token: i0.ElementRef }, { token: SEContainerComponent, host: true, optional: true }, { token: i2.ResponsiveService }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
337
+ SEComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SEComponent, selector: "se", inputs: { 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" }, host: { properties: { "style.padding-left.px": "paddingValue", "style.padding-right.px": "paddingValue", "class.se__hide-label": "hideLabel", "class.ant-form-item-has-error": "invalid", "class.ant-form-item-with-help": "showErr" } }, queries: [{ propertyName: "ngModel", first: true, predicate: NgModel, descendants: true, static: true }, { propertyName: "formControlName", first: true, predicate: FormControlName, descendants: true, static: true }], viewQueries: [{ propertyName: "contentElement", first: true, predicate: ["contentElement"], descendants: true, static: true }], exportAs: ["se"], usesOnChanges: true, ngImport: i0, template: "<div class=\"ant-form-item-label\" [class.se__nolabel]=\"hideLabel || !label\" [style.width.px]=\"_labelWidth\">\n <label\n *ngIf=\"label\"\n [attr.for]=\"_id\"\n class=\"se__label\"\n [ngClass]=\"{ 'ant-form-item-required': required, 'se__no-colon': _noColon }\"\n >\n <span class=\"se__label-text\">\n <ng-container *nzStringTemplateOutlet=\"label\">{{ label }}</ng-container>\n </span>\n <span *ngIf=\"optional || optionalHelp\" class=\"se__label-optional\" [class.se__label-optional-no-text]=\"!optional\">\n <ng-container *nzStringTemplateOutlet=\"optional\">{{ optional }}</ng-container>\n <i\n *ngIf=\"optionalHelp\"\n nz-tooltip\n [nzTooltipTitle]=\"optionalHelp\"\n [nzTooltipColor]=\"optionalHelpColor\"\n nz-icon\n nzType=\"question-circle\"\n ></i>\n </span>\n </label>\n</div>\n<div class=\"ant-form-item-control se__control\">\n <div class=\"ant-form-item-control-input {{ controlClass }}\">\n <div class=\"ant-form-item-control-input-content\" (cdkObserveContent)=\"checkContent()\" #contentElement>\n <ng-content></ng-content>\n </div>\n </div>\n <div class=\"ant-form-item-explain ant-form-item-explain-error\" *ngIf=\"showErr\">\n <div @helpMotion>\n <ng-container *nzStringTemplateOutlet=\"_error\">{{ _error }}</ng-container>\n </div>\n </div>\n <div *ngIf=\"extra && !compact\" class=\"ant-form-item-extra\">\n <ng-container *nzStringTemplateOutlet=\"extra\">{{ extra }}</ng-container>\n </div>\n</div>\n", directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3$1.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { type: i5.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], animations: [helpMotion], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
338
+ __decorate([
339
+ InputNumber(null)
340
+ ], SEComponent.prototype, "col", void 0);
341
+ __decorate([
342
+ InputBoolean()
343
+ ], SEComponent.prototype, "required", void 0);
344
+ __decorate([
345
+ InputBoolean(null)
346
+ ], SEComponent.prototype, "line", void 0);
347
+ __decorate([
348
+ InputNumber(null)
349
+ ], SEComponent.prototype, "labelWidth", void 0);
350
+ __decorate([
351
+ InputBoolean(null)
352
+ ], SEComponent.prototype, "noColon", void 0);
353
+ __decorate([
354
+ InputBoolean()
355
+ ], SEComponent.prototype, "hideLabel", void 0);
356
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SEComponent, decorators: [{
357
+ type: Component,
358
+ args: [{ selector: 'se', exportAs: 'se', host: {
359
+ '[style.padding-left.px]': 'paddingValue',
360
+ '[style.padding-right.px]': 'paddingValue',
361
+ '[class.se__hide-label]': 'hideLabel',
362
+ '[class.ant-form-item-has-error]': 'invalid',
363
+ '[class.ant-form-item-with-help]': 'showErr'
364
+ }, preserveWhitespaces: false, animations: [helpMotion], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ant-form-item-label\" [class.se__nolabel]=\"hideLabel || !label\" [style.width.px]=\"_labelWidth\">\n <label\n *ngIf=\"label\"\n [attr.for]=\"_id\"\n class=\"se__label\"\n [ngClass]=\"{ 'ant-form-item-required': required, 'se__no-colon': _noColon }\"\n >\n <span class=\"se__label-text\">\n <ng-container *nzStringTemplateOutlet=\"label\">{{ label }}</ng-container>\n </span>\n <span *ngIf=\"optional || optionalHelp\" class=\"se__label-optional\" [class.se__label-optional-no-text]=\"!optional\">\n <ng-container *nzStringTemplateOutlet=\"optional\">{{ optional }}</ng-container>\n <i\n *ngIf=\"optionalHelp\"\n nz-tooltip\n [nzTooltipTitle]=\"optionalHelp\"\n [nzTooltipColor]=\"optionalHelpColor\"\n nz-icon\n nzType=\"question-circle\"\n ></i>\n </span>\n </label>\n</div>\n<div class=\"ant-form-item-control se__control\">\n <div class=\"ant-form-item-control-input {{ controlClass }}\">\n <div class=\"ant-form-item-control-input-content\" (cdkObserveContent)=\"checkContent()\" #contentElement>\n <ng-content></ng-content>\n </div>\n </div>\n <div class=\"ant-form-item-explain ant-form-item-explain-error\" *ngIf=\"showErr\">\n <div @helpMotion>\n <ng-container *nzStringTemplateOutlet=\"_error\">{{ _error }}</ng-container>\n </div>\n </div>\n <div *ngIf=\"extra && !compact\" class=\"ant-form-item-extra\">\n <ng-container *nzStringTemplateOutlet=\"extra\">{{ extra }}</ng-container>\n </div>\n</div>\n" }]
365
+ }], ctorParameters: function () {
366
+ return [{ type: i0.ElementRef }, { type: SEContainerComponent, decorators: [{
367
+ type: Optional
368
+ }, {
369
+ type: Host
370
+ }] }, { type: i2.ResponsiveService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }];
371
+ }, propDecorators: { ngModel: [{
372
+ type: ContentChild,
373
+ args: [NgModel, { static: true }]
374
+ }], formControlName: [{
375
+ type: ContentChild,
376
+ args: [FormControlName, { static: true }]
377
+ }], contentElement: [{
378
+ type: ViewChild,
379
+ args: ['contentElement', { static: true }]
380
+ }], optional: [{
381
+ type: Input
382
+ }], optionalHelp: [{
383
+ type: Input
384
+ }], optionalHelpColor: [{
385
+ type: Input
386
+ }], error: [{
387
+ type: Input
388
+ }], extra: [{
389
+ type: Input
390
+ }], label: [{
391
+ type: Input
392
+ }], col: [{
393
+ type: Input
394
+ }], required: [{
395
+ type: Input
396
+ }], controlClass: [{
397
+ type: Input
398
+ }], line: [{
399
+ type: Input
400
+ }], labelWidth: [{
401
+ type: Input
402
+ }], noColon: [{
403
+ type: Input
404
+ }], hideLabel: [{
405
+ type: Input
406
+ }], id: [{
407
+ type: Input
408
+ }] } });
409
+
410
+ const COMPONENTS = [SEContainerComponent, SEComponent, SETitleComponent];
411
+ class SEModule {
412
+ }
413
+ SEModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SEModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
414
+ SEModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SEModule, declarations: [SEContainerComponent, SEComponent, SETitleComponent], imports: [CommonModule, NzToolTipModule, NzIconModule, NzOutletModule], exports: [SEContainerComponent, SEComponent, SETitleComponent] });
415
+ SEModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SEModule, imports: [[CommonModule, NzToolTipModule, NzIconModule, NzOutletModule]] });
416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SEModule, decorators: [{
417
+ type: NgModule,
418
+ args: [{
419
+ imports: [CommonModule, NzToolTipModule, NzIconModule, NzOutletModule],
420
+ declarations: COMPONENTS,
421
+ exports: COMPONENTS
422
+ }]
423
+ }] });
424
+
425
+ // /**
426
+ // * Error collection
427
+ // * - `name`: The value of` ngModel` or `formControlName`
428
+ // * - `error`: Replaced error value
429
+ // */
430
+ // errors: Array<{ name: string; error: SEErrorType }>;
431
+ // /**
432
+ // * Whether force show error, even if the form component has not invalid, Default: `false`
433
+ // * - `false`: Whether to display error by `invalid`
434
+ // * - `true`: Force show display error
435
+ // */
436
+ // force?: boolean;
437
+
438
+ /**
439
+ * Generated bundle index. Do not edit.
440
+ */
441
+
442
+ export { SEComponent, SEContainerComponent, SEModule, SETitleComponent };
443
+ //# sourceMappingURL=edit.mjs.map