@delon/abc 13.0.0-beta.1 → 13.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/README.md +1 -1
  2. package/auto-focus/{autoFocus.d.ts → auto-focus.d.ts} +0 -0
  3. package/auto-focus/package.json +6 -6
  4. package/avatar-list/{avatarList.d.ts → avatar-list.d.ts} +0 -0
  5. package/avatar-list/package.json +6 -6
  6. package/date-picker/{datePicker.d.ts → date-picker.d.ts} +0 -0
  7. package/date-picker/package.json +6 -6
  8. package/down-file/{downFile.d.ts → down-file.d.ts} +0 -0
  9. package/down-file/package.json +6 -6
  10. package/ellipsis/ellipsis.component.d.ts +1 -0
  11. package/error-collect/error-collect.component.d.ts +4 -2
  12. package/error-collect/{errorCollect.d.ts → error-collect.d.ts} +0 -0
  13. package/error-collect/package.json +6 -6
  14. package/esm2020/auto-focus/auto-focus.directive.mjs +3 -3
  15. package/esm2020/auto-focus/auto-focus.mjs +5 -0
  16. package/esm2020/auto-focus/auto-focus.module.mjs +4 -4
  17. package/esm2020/avatar-list/avatar-list-item.component.mjs +3 -3
  18. package/esm2020/avatar-list/avatar-list.component.mjs +3 -3
  19. package/esm2020/avatar-list/avatar-list.mjs +5 -0
  20. package/esm2020/avatar-list/avatar-list.module.mjs +4 -4
  21. package/esm2020/count-down/count-down.component.mjs +3 -3
  22. package/esm2020/count-down/count-down.module.mjs +4 -4
  23. package/esm2020/date-picker/date-picker.mjs +5 -0
  24. package/esm2020/date-picker/date-picker.module.mjs +4 -4
  25. package/esm2020/date-picker/range-shortcut.component.mjs +3 -3
  26. package/esm2020/date-picker/range.directive.mjs +3 -3
  27. package/esm2020/down-file/down-file.directive.mjs +3 -3
  28. package/esm2020/down-file/down-file.mjs +5 -0
  29. package/esm2020/down-file/down-file.module.mjs +4 -4
  30. package/esm2020/ellipsis/ellipsis.component.mjs +8 -5
  31. package/esm2020/ellipsis/ellipsis.module.mjs +4 -4
  32. package/esm2020/error-collect/error-collect.component.mjs +12 -8
  33. package/esm2020/error-collect/error-collect.mjs +5 -0
  34. package/esm2020/error-collect/error-collect.module.mjs +4 -4
  35. package/esm2020/exception/exception.component.mjs +3 -3
  36. package/esm2020/exception/exception.module.mjs +4 -4
  37. package/esm2020/footer-toolbar/footer-toolbar.component.mjs +3 -3
  38. package/esm2020/footer-toolbar/footer-toolbar.mjs +5 -0
  39. package/esm2020/footer-toolbar/footer-toolbar.module.mjs +4 -4
  40. package/esm2020/full-content/full-content-toggle.directive.mjs +3 -3
  41. package/esm2020/full-content/full-content.component.mjs +3 -3
  42. package/esm2020/full-content/full-content.mjs +5 -0
  43. package/esm2020/full-content/full-content.module.mjs +4 -4
  44. package/esm2020/full-content/full-content.service.mjs +3 -3
  45. package/esm2020/global-footer/global-footer-item.component.mjs +3 -3
  46. package/esm2020/global-footer/global-footer.component.mjs +3 -3
  47. package/esm2020/global-footer/global-footer.mjs +5 -0
  48. package/esm2020/global-footer/global-footer.module.mjs +4 -4
  49. package/esm2020/image/image.directive.mjs +3 -3
  50. package/esm2020/image/image.module.mjs +4 -4
  51. package/esm2020/let/let.directive.mjs +3 -3
  52. package/esm2020/let/let.module.mjs +4 -4
  53. package/esm2020/loading/loading.component.mjs +3 -3
  54. package/esm2020/loading/loading.module.mjs +4 -4
  55. package/esm2020/loading/loading.service.mjs +3 -3
  56. package/esm2020/lodop/lodop.module.mjs +4 -4
  57. package/esm2020/lodop/lodop.service.mjs +3 -3
  58. package/esm2020/media/media.component.mjs +3 -3
  59. package/esm2020/media/media.module.mjs +4 -4
  60. package/esm2020/media/media.service.mjs +3 -3
  61. package/esm2020/notice-icon/notice-icon-tab.component.mjs +3 -3
  62. package/esm2020/notice-icon/notice-icon.component.mjs +3 -3
  63. package/esm2020/notice-icon/notice-icon.mjs +5 -0
  64. package/esm2020/notice-icon/notice-icon.module.mjs +4 -4
  65. package/esm2020/onboarding/onboarding.component.mjs +3 -3
  66. package/esm2020/onboarding/onboarding.module.mjs +4 -4
  67. package/esm2020/onboarding/onboarding.service.mjs +3 -3
  68. package/esm2020/page-header/page-header.component.mjs +3 -3
  69. package/esm2020/page-header/page-header.mjs +5 -0
  70. package/esm2020/page-header/page-header.module.mjs +4 -4
  71. package/esm2020/pdf/pdf.component.mjs +3 -3
  72. package/esm2020/pdf/pdf.module.mjs +4 -4
  73. package/esm2020/qr/qr.component.mjs +5 -5
  74. package/esm2020/qr/qr.module.mjs +4 -4
  75. package/esm2020/quick-menu/quick-menu.component.mjs +3 -3
  76. package/esm2020/quick-menu/quick-menu.mjs +5 -0
  77. package/esm2020/quick-menu/quick-menu.module.mjs +4 -4
  78. package/esm2020/result/result.component.mjs +3 -3
  79. package/esm2020/result/result.module.mjs +4 -4
  80. package/esm2020/reuse-tab/reuse-tab-context-menu.component.mjs +3 -3
  81. package/esm2020/reuse-tab/reuse-tab-context.component.mjs +3 -3
  82. package/esm2020/reuse-tab/reuse-tab-context.directive.mjs +3 -3
  83. package/esm2020/reuse-tab/reuse-tab-context.service.mjs +3 -3
  84. package/esm2020/reuse-tab/reuse-tab.component.mjs +3 -3
  85. package/esm2020/reuse-tab/reuse-tab.mjs +5 -0
  86. package/esm2020/reuse-tab/reuse-tab.module.mjs +4 -4
  87. package/esm2020/reuse-tab/reuse-tab.service.mjs +3 -3
  88. package/esm2020/se/se-container.component.mjs +6 -6
  89. package/esm2020/se/se.component.mjs +5 -5
  90. package/esm2020/se/se.mjs +5 -0
  91. package/esm2020/se/se.module.mjs +4 -4
  92. package/esm2020/sg/sg-container.component.mjs +3 -3
  93. package/esm2020/sg/sg.component.mjs +3 -3
  94. package/esm2020/sg/sg.mjs +5 -0
  95. package/esm2020/sg/sg.module.mjs +4 -4
  96. package/esm2020/st/st-column-source.mjs +3 -3
  97. package/esm2020/st/st-data-source.mjs +3 -3
  98. package/esm2020/st/st-export.mjs +3 -3
  99. package/esm2020/st/st-filter.component.mjs +3 -3
  100. package/esm2020/st/st-row.directive.mjs +6 -6
  101. package/esm2020/st/st-widget-host.directive.mjs +3 -3
  102. package/esm2020/st/st-widget.mjs +3 -3
  103. package/esm2020/st/st.component.mjs +6 -6
  104. package/esm2020/st/st.mjs +5 -0
  105. package/esm2020/st/st.module.mjs +4 -4
  106. package/esm2020/sv/sv-container.component.mjs +6 -6
  107. package/esm2020/sv/sv-value.component.mjs +3 -3
  108. package/esm2020/sv/sv.component.mjs +3 -3
  109. package/esm2020/sv/sv.mjs +5 -0
  110. package/esm2020/sv/sv.module.mjs +4 -4
  111. package/esm2020/tag-select/tag-select.component.mjs +3 -3
  112. package/esm2020/tag-select/tag-select.mjs +5 -0
  113. package/esm2020/tag-select/tag-select.module.mjs +4 -4
  114. package/esm2020/xlsx/xlsx.directive.mjs +3 -3
  115. package/esm2020/xlsx/xlsx.module.mjs +4 -4
  116. package/esm2020/xlsx/xlsx.service.mjs +3 -3
  117. package/esm2020/zip/zip.module.mjs +4 -4
  118. package/esm2020/zip/zip.service.mjs +3 -3
  119. package/fesm2015/{autoFocus.mjs → auto-focus.mjs} +8 -8
  120. package/fesm2015/auto-focus.mjs.map +1 -0
  121. package/fesm2015/{avatarList.mjs → avatar-list.mjs} +11 -11
  122. package/fesm2015/avatar-list.mjs.map +1 -0
  123. package/fesm2015/count-down.mjs +7 -7
  124. package/fesm2015/{datePicker.mjs → date-picker.mjs} +11 -11
  125. package/fesm2015/date-picker.mjs.map +1 -0
  126. package/fesm2015/{downFile.mjs → down-file.mjs} +8 -8
  127. package/fesm2015/down-file.mjs.map +1 -0
  128. package/fesm2015/ellipsis.mjs +11 -8
  129. package/fesm2015/ellipsis.mjs.map +1 -1
  130. package/fesm2015/{errorCollect.mjs → error-collect.mjs} +16 -12
  131. package/fesm2015/error-collect.mjs.map +1 -0
  132. package/fesm2015/exception.mjs +7 -7
  133. package/fesm2015/{footerToolbar.mjs → footer-toolbar.mjs} +8 -8
  134. package/fesm2015/footer-toolbar.mjs.map +1 -0
  135. package/fesm2015/{fullContent.mjs → full-content.mjs} +14 -14
  136. package/fesm2015/full-content.mjs.map +1 -0
  137. package/fesm2015/{globalFooter.mjs → global-footer.mjs} +11 -11
  138. package/fesm2015/global-footer.mjs.map +1 -0
  139. package/fesm2015/image.mjs +7 -7
  140. package/fesm2015/let.mjs +7 -7
  141. package/fesm2015/loading.mjs +10 -10
  142. package/fesm2015/lodop.mjs +7 -7
  143. package/fesm2015/media.mjs +10 -10
  144. package/{fesm2020/noticeIcon.mjs → fesm2015/notice-icon.mjs} +11 -11
  145. package/fesm2015/notice-icon.mjs.map +1 -0
  146. package/fesm2015/onboarding.mjs +10 -10
  147. package/fesm2015/{pageHeader.mjs → page-header.mjs} +8 -8
  148. package/fesm2015/page-header.mjs.map +1 -0
  149. package/fesm2015/pdf.mjs +7 -7
  150. package/fesm2015/qr.mjs +8 -8
  151. package/fesm2015/qr.mjs.map +1 -1
  152. package/fesm2015/{quickMenu.mjs → quick-menu.mjs} +8 -8
  153. package/fesm2015/quick-menu.mjs.map +1 -0
  154. package/fesm2015/result.mjs +7 -7
  155. package/fesm2015/{reuseTab.mjs → reuse-tab.mjs} +23 -23
  156. package/fesm2015/reuse-tab.mjs.map +1 -0
  157. package/fesm2015/{edit.mjs → se.mjs} +15 -15
  158. package/fesm2015/se.mjs.map +1 -0
  159. package/fesm2015/{grid.mjs → sg.mjs} +11 -11
  160. package/fesm2015/sg.mjs.map +1 -0
  161. package/fesm2015/{table.mjs → st.mjs} +35 -35
  162. package/fesm2015/st.mjs.map +1 -0
  163. package/fesm2015/{view.mjs → sv.mjs} +17 -17
  164. package/fesm2015/sv.mjs.map +1 -0
  165. package/fesm2015/{tagSelect.mjs → tag-select.mjs} +8 -8
  166. package/fesm2015/tag-select.mjs.map +1 -0
  167. package/fesm2015/xlsx.mjs +10 -10
  168. package/fesm2015/zip.mjs +7 -7
  169. package/fesm2020/{autoFocus.mjs → auto-focus.mjs} +8 -8
  170. package/fesm2020/auto-focus.mjs.map +1 -0
  171. package/fesm2020/{avatarList.mjs → avatar-list.mjs} +11 -11
  172. package/fesm2020/avatar-list.mjs.map +1 -0
  173. package/fesm2020/count-down.mjs +7 -7
  174. package/fesm2020/{datePicker.mjs → date-picker.mjs} +11 -11
  175. package/fesm2020/date-picker.mjs.map +1 -0
  176. package/fesm2020/{downFile.mjs → down-file.mjs} +8 -8
  177. package/fesm2020/down-file.mjs.map +1 -0
  178. package/fesm2020/ellipsis.mjs +11 -8
  179. package/fesm2020/ellipsis.mjs.map +1 -1
  180. package/fesm2020/{errorCollect.mjs → error-collect.mjs} +16 -12
  181. package/fesm2020/error-collect.mjs.map +1 -0
  182. package/fesm2020/exception.mjs +7 -7
  183. package/fesm2020/{footerToolbar.mjs → footer-toolbar.mjs} +8 -8
  184. package/fesm2020/footer-toolbar.mjs.map +1 -0
  185. package/fesm2020/{fullContent.mjs → full-content.mjs} +14 -14
  186. package/fesm2020/full-content.mjs.map +1 -0
  187. package/fesm2020/{globalFooter.mjs → global-footer.mjs} +11 -11
  188. package/fesm2020/global-footer.mjs.map +1 -0
  189. package/fesm2020/image.mjs +7 -7
  190. package/fesm2020/let.mjs +7 -7
  191. package/fesm2020/loading.mjs +10 -10
  192. package/fesm2020/lodop.mjs +7 -7
  193. package/fesm2020/media.mjs +10 -10
  194. package/{fesm2015/noticeIcon.mjs → fesm2020/notice-icon.mjs} +11 -11
  195. package/fesm2020/notice-icon.mjs.map +1 -0
  196. package/fesm2020/onboarding.mjs +10 -10
  197. package/fesm2020/{pageHeader.mjs → page-header.mjs} +8 -8
  198. package/fesm2020/page-header.mjs.map +1 -0
  199. package/fesm2020/pdf.mjs +7 -7
  200. package/fesm2020/qr.mjs +8 -8
  201. package/fesm2020/qr.mjs.map +1 -1
  202. package/fesm2020/{quickMenu.mjs → quick-menu.mjs} +8 -8
  203. package/fesm2020/quick-menu.mjs.map +1 -0
  204. package/fesm2020/result.mjs +7 -7
  205. package/fesm2020/{reuseTab.mjs → reuse-tab.mjs} +23 -23
  206. package/fesm2020/reuse-tab.mjs.map +1 -0
  207. package/fesm2020/{edit.mjs → se.mjs} +15 -15
  208. package/fesm2020/se.mjs.map +1 -0
  209. package/fesm2020/{grid.mjs → sg.mjs} +11 -11
  210. package/fesm2020/sg.mjs.map +1 -0
  211. package/fesm2020/{table.mjs → st.mjs} +35 -35
  212. package/fesm2020/st.mjs.map +1 -0
  213. package/fesm2020/{view.mjs → sv.mjs} +17 -17
  214. package/fesm2020/sv.mjs.map +1 -0
  215. package/fesm2020/{tagSelect.mjs → tag-select.mjs} +8 -8
  216. package/fesm2020/tag-select.mjs.map +1 -0
  217. package/fesm2020/xlsx.mjs +10 -10
  218. package/fesm2020/zip.mjs +7 -7
  219. package/footer-toolbar/{footerToolbar.d.ts → footer-toolbar.d.ts} +0 -0
  220. package/footer-toolbar/package.json +6 -6
  221. package/full-content/{fullContent.d.ts → full-content.d.ts} +0 -0
  222. package/full-content/package.json +6 -6
  223. package/global-footer/{globalFooter.d.ts → global-footer.d.ts} +0 -0
  224. package/global-footer/package.json +6 -6
  225. package/notice-icon/{noticeIcon.d.ts → notice-icon.d.ts} +0 -0
  226. package/notice-icon/package.json +6 -6
  227. package/package.json +106 -106
  228. package/page-header/package.json +6 -6
  229. package/page-header/{pageHeader.d.ts → page-header.d.ts} +0 -0
  230. package/qr/qr.component.d.ts +1 -1
  231. package/quick-menu/package.json +6 -6
  232. package/quick-menu/{quickMenu.d.ts → quick-menu.d.ts} +0 -0
  233. package/reuse-tab/package.json +6 -6
  234. package/reuse-tab/{reuseTab.d.ts → reuse-tab.d.ts} +0 -0
  235. package/se/package.json +6 -6
  236. package/se/{edit.d.ts → se.d.ts} +0 -0
  237. package/se/style/index.less +2 -0
  238. package/sg/package.json +6 -6
  239. package/sg/{grid.d.ts → sg.d.ts} +0 -0
  240. package/st/package.json +6 -6
  241. package/st/{table.d.ts → st.d.ts} +0 -0
  242. package/sv/package.json +6 -6
  243. package/sv/{view.d.ts → sv.d.ts} +0 -0
  244. package/tag-select/package.json +6 -6
  245. package/tag-select/{tagSelect.d.ts → tag-select.d.ts} +0 -0
  246. package/esm2020/auto-focus/autoFocus.mjs +0 -5
  247. package/esm2020/avatar-list/avatarList.mjs +0 -5
  248. package/esm2020/date-picker/datePicker.mjs +0 -5
  249. package/esm2020/down-file/downFile.mjs +0 -5
  250. package/esm2020/error-collect/errorCollect.mjs +0 -5
  251. package/esm2020/footer-toolbar/footerToolbar.mjs +0 -5
  252. package/esm2020/full-content/fullContent.mjs +0 -5
  253. package/esm2020/global-footer/globalFooter.mjs +0 -5
  254. package/esm2020/notice-icon/noticeIcon.mjs +0 -5
  255. package/esm2020/page-header/pageHeader.mjs +0 -5
  256. package/esm2020/quick-menu/quickMenu.mjs +0 -5
  257. package/esm2020/reuse-tab/reuseTab.mjs +0 -5
  258. package/esm2020/se/edit.mjs +0 -5
  259. package/esm2020/sg/grid.mjs +0 -5
  260. package/esm2020/st/table.mjs +0 -5
  261. package/esm2020/sv/view.mjs +0 -5
  262. package/esm2020/tag-select/tagSelect.mjs +0 -5
  263. package/fesm2015/autoFocus.mjs.map +0 -1
  264. package/fesm2015/avatarList.mjs.map +0 -1
  265. package/fesm2015/datePicker.mjs.map +0 -1
  266. package/fesm2015/downFile.mjs.map +0 -1
  267. package/fesm2015/edit.mjs.map +0 -1
  268. package/fesm2015/errorCollect.mjs.map +0 -1
  269. package/fesm2015/footerToolbar.mjs.map +0 -1
  270. package/fesm2015/fullContent.mjs.map +0 -1
  271. package/fesm2015/globalFooter.mjs.map +0 -1
  272. package/fesm2015/grid.mjs.map +0 -1
  273. package/fesm2015/noticeIcon.mjs.map +0 -1
  274. package/fesm2015/pageHeader.mjs.map +0 -1
  275. package/fesm2015/quickMenu.mjs.map +0 -1
  276. package/fesm2015/reuseTab.mjs.map +0 -1
  277. package/fesm2015/table.mjs.map +0 -1
  278. package/fesm2015/tagSelect.mjs.map +0 -1
  279. package/fesm2015/view.mjs.map +0 -1
  280. package/fesm2020/autoFocus.mjs.map +0 -1
  281. package/fesm2020/avatarList.mjs.map +0 -1
  282. package/fesm2020/datePicker.mjs.map +0 -1
  283. package/fesm2020/downFile.mjs.map +0 -1
  284. package/fesm2020/edit.mjs.map +0 -1
  285. package/fesm2020/errorCollect.mjs.map +0 -1
  286. package/fesm2020/footerToolbar.mjs.map +0 -1
  287. package/fesm2020/fullContent.mjs.map +0 -1
  288. package/fesm2020/globalFooter.mjs.map +0 -1
  289. package/fesm2020/grid.mjs.map +0 -1
  290. package/fesm2020/noticeIcon.mjs.map +0 -1
  291. package/fesm2020/pageHeader.mjs.map +0 -1
  292. package/fesm2020/quickMenu.mjs.map +0 -1
  293. package/fesm2020/reuseTab.mjs.map +0 -1
  294. package/fesm2020/table.mjs.map +0 -1
  295. package/fesm2020/tagSelect.mjs.map +0 -1
  296. package/fesm2020/view.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-select.mjs","sources":["../../../../packages/abc/tag-select/tag-select.component.ts","../../../../packages/abc/tag-select/tag-select.component.html","../../../../packages/abc/tag-select/tag-select.module.ts","../../../../packages/abc/tag-select/tag-select.ts"],"sourcesContent":["import { Direction, Directionality } from '@angular/cdk/bidi';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n Output,\n ViewEncapsulation\n} from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { DelonLocaleService, LocaleData } from '@delon/theme';\nimport { BooleanInput, InputBoolean } from '@delon/util/decorator';\n\n@Component({\n selector: 'tag-select',\n exportAs: 'tagSelect',\n templateUrl: './tag-select.component.html',\n host: {\n '[class.tag-select]': 'true',\n '[class.tag-select-rtl]': `dir === 'rtl'`,\n '[class.tag-select-rtl__has-expand]': `dir === 'rtl' && expandable`,\n '[class.tag-select__has-expand]': 'expandable',\n '[class.tag-select__expanded]': 'expand'\n },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class TagSelectComponent implements OnInit, OnDestroy {\n static ngAcceptInputType_expandable: BooleanInput;\n\n private destroy$ = new Subject<void>();\n locale: LocaleData = {};\n expand = false;\n dir: Direction = 'ltr';\n\n /** 是否启用 `展开与收进` */\n @Input() @InputBoolean() expandable = true;\n @Output() readonly change = new EventEmitter<boolean>();\n\n constructor(\n private i18n: DelonLocaleService,\n @Optional() private directionality: Directionality,\n private cdr: ChangeDetectorRef\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 this.i18n.change.pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.locale = this.i18n.getData('tagSelect');\n this.cdr.detectChanges();\n });\n }\n\n trigger(): void {\n this.expand = !this.expand;\n this.change.emit(this.expand);\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n}\n","<ng-content></ng-content>\n<a *ngIf=\"expandable\" class=\"tag-select__trigger\" (click)=\"trigger()\">\n {{ expand ? locale.collapse : locale.expand\n }}<i nz-icon [nzType]=\"expand ? 'up' : 'down'\" class=\"tag-select__trigger-icon\"></i>\n</a>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { DelonLocaleModule } from '@delon/theme';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nimport { TagSelectComponent } from './tag-select.component';\n\nconst COMPONENTS = [TagSelectComponent];\n\n@NgModule({\n imports: [CommonModule, NzIconModule, DelonLocaleModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class TagSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAkCa,kBAAkB;IAY7B,YACU,IAAwB,EACZ,cAA8B,EAC1C,GAAsB;QAFtB,SAAI,GAAJ,IAAI,CAAoB;QACZ,mBAAc,GAAd,cAAc,CAAgB;QAC1C,QAAG,G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,EAAE,eAAe;wBACzC,oCAAoC,EAAE,6BAA6B;wBACnE,gCAAgC,EAAE,YAAY;wBAC9C,8BAA8B,EAAE,QAAQ;qBACzC,uBACoB,KAAK,mBACT,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI;;;8BAgBlC,QAAQ;;yBALc,UAAU;sBAAlC,KAAK;gBACa,MAAM;sBAAxB,MAAM;;;AEpCT,MAAM,UAAU,GAAG,CAAC,kBAAkB,CAAC,CAAC;MAO3B,eAAe;;4GAAf,eAAe;6GAAf,eAAe,iBAPR,kBAAkB,aAG1B,YAAY,EAAE,YAAY,EAAE,iBAAiB,aAHrC,kBAAkB;6GAOzB,eAAe,YAJjB,CAAC,YAAY,EAAE,YAAY,EAAE,iBAAiB,CAAC;2FAI7C,eAAe;kBAL3B,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,iBAAiB,CAAC;oBACxD,YAAY,EAAE,UAAU;oBACxB,OAAO,EAAE,UAAU;iBACpB;;;ACdD;;;;;;"}
package/fesm2015/xlsx.mjs CHANGED
@@ -112,15 +112,15 @@ class XlsxService {
112
112
  return res;
113
113
  }
114
114
  }
115
- XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxService, deps: [{ token: i1.HttpClient }, { token: i2.LazyService }, { token: i3.AlainConfigService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
116
- XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxService, providedIn: 'root' });
115
+ XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: XlsxService, deps: [{ token: i1.HttpClient }, { token: i2.LazyService }, { token: i3.AlainConfigService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
116
+ XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: XlsxService, providedIn: 'root' });
117
117
  __decorate([
118
118
  ZoneOutside()
119
119
  ], XlsxService.prototype, "read", null);
120
120
  __decorate([
121
121
  ZoneOutside()
122
122
  ], XlsxService.prototype, "export", null);
123
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxService, decorators: [{
123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: XlsxService, decorators: [{
124
124
  type: Injectable,
125
125
  args: [{ providedIn: 'root' }]
126
126
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i2.LazyService }, { type: i3.AlainConfigService }, { type: i0.NgZone }]; }, propDecorators: { read: [], export: [] } });
@@ -133,9 +133,9 @@ class XlsxDirective {
133
133
  this.srv.export(this.data);
134
134
  }
135
135
  }
136
- XlsxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxDirective, deps: [{ token: XlsxService }], target: i0.ɵɵFactoryTarget.Directive });
137
- XlsxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: XlsxDirective, selector: "[xlsx]", inputs: { data: ["xlsx", "data"] }, host: { listeners: { "click": "_click()" } }, exportAs: ["xlsx"], ngImport: i0 });
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxDirective, decorators: [{
136
+ XlsxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: XlsxDirective, deps: [{ token: XlsxService }], target: i0.ɵɵFactoryTarget.Directive });
137
+ XlsxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: XlsxDirective, selector: "[xlsx]", inputs: { data: ["xlsx", "data"] }, host: { listeners: { "click": "_click()" } }, exportAs: ["xlsx"], ngImport: i0 });
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: XlsxDirective, decorators: [{
139
139
  type: Directive,
140
140
  args: [{
141
141
  selector: '[xlsx]',
@@ -152,10 +152,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
152
152
  const COMPONENTS = [XlsxDirective];
153
153
  class XlsxModule {
154
154
  }
155
- XlsxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
156
- XlsxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxModule, declarations: [XlsxDirective], imports: [CommonModule], exports: [XlsxDirective] });
157
- XlsxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxModule, imports: [[CommonModule]] });
158
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: XlsxModule, decorators: [{
155
+ XlsxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: XlsxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
156
+ XlsxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: XlsxModule, declarations: [XlsxDirective], imports: [CommonModule], exports: [XlsxDirective] });
157
+ XlsxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: XlsxModule, imports: [[CommonModule]] });
158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: XlsxModule, decorators: [{
159
159
  type: NgModule,
160
160
  args: [{
161
161
  imports: [CommonModule],
package/fesm2015/zip.mjs CHANGED
@@ -104,22 +104,22 @@ class ZipService {
104
104
  });
105
105
  }
106
106
  }
107
- ZipService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipService, deps: [{ token: i1.HttpClient }, { token: i2.LazyService }, { token: i3.AlainConfigService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
108
- ZipService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipService, providedIn: 'root' });
107
+ ZipService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ZipService, deps: [{ token: i1.HttpClient }, { token: i2.LazyService }, { token: i3.AlainConfigService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
108
+ ZipService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ZipService, providedIn: 'root' });
109
109
  __decorate([
110
110
  ZoneOutside()
111
111
  ], ZipService.prototype, "read", null);
112
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipService, decorators: [{
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ZipService, decorators: [{
113
113
  type: Injectable,
114
114
  args: [{ providedIn: 'root' }]
115
115
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i2.LazyService }, { type: i3.AlainConfigService }, { type: i0.NgZone }]; }, propDecorators: { read: [] } });
116
116
 
117
117
  class ZipModule {
118
118
  }
119
- ZipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
120
- ZipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipModule, imports: [CommonModule] });
121
- ZipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipModule, imports: [[CommonModule]] });
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ZipModule, decorators: [{
119
+ ZipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ZipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
120
+ ZipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ZipModule, imports: [CommonModule] });
121
+ ZipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ZipModule, imports: [[CommonModule]] });
122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ZipModule, decorators: [{
123
123
  type: NgModule,
124
124
  args: [{
125
125
  imports: [CommonModule]
@@ -27,15 +27,15 @@ class AutoFocusDirective {
27
27
  }
28
28
  }
29
29
  }
30
- AutoFocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AutoFocusDirective, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
31
- AutoFocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: AutoFocusDirective, selector: "[auto-focus], input[autofocus=\"autofocus\"], textarea[autofocus=\"autofocus\"]", inputs: { enabled: "enabled", delay: "delay" }, exportAs: ["autoFocus"], ngImport: i0 });
30
+ AutoFocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AutoFocusDirective, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
31
+ AutoFocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: AutoFocusDirective, selector: "[auto-focus], input[autofocus=\"autofocus\"], textarea[autofocus=\"autofocus\"]", inputs: { enabled: "enabled", delay: "delay" }, exportAs: ["autoFocus"], ngImport: i0 });
32
32
  __decorate([
33
33
  InputBoolean()
34
34
  ], AutoFocusDirective.prototype, "enabled", void 0);
35
35
  __decorate([
36
36
  InputNumber()
37
37
  ], AutoFocusDirective.prototype, "delay", void 0);
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AutoFocusDirective, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AutoFocusDirective, decorators: [{
39
39
  type: Directive,
40
40
  args: [{
41
41
  selector: '[auto-focus], input[autofocus="autofocus"], textarea[autofocus="autofocus"]',
@@ -50,10 +50,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
50
50
  const COMPONENTS = [AutoFocusDirective];
51
51
  class AutoFocusModule {
52
52
  }
53
- AutoFocusModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AutoFocusModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
54
- AutoFocusModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AutoFocusModule, declarations: [AutoFocusDirective], exports: [AutoFocusDirective] });
55
- AutoFocusModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AutoFocusModule });
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AutoFocusModule, decorators: [{
53
+ AutoFocusModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AutoFocusModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
54
+ AutoFocusModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AutoFocusModule, declarations: [AutoFocusDirective], exports: [AutoFocusDirective] });
55
+ AutoFocusModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AutoFocusModule });
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AutoFocusModule, decorators: [{
57
57
  type: NgModule,
58
58
  args: [{
59
59
  declarations: COMPONENTS,
@@ -66,4 +66,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
66
66
  */
67
67
 
68
68
  export { AutoFocusDirective, AutoFocusModule };
69
- //# sourceMappingURL=autoFocus.mjs.map
69
+ //# sourceMappingURL=auto-focus.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auto-focus.mjs","sources":["../../../../packages/abc/auto-focus/auto-focus.directive.ts","../../../../packages/abc/auto-focus/auto-focus.module.ts","../../../../packages/abc/auto-focus/auto-focus.ts"],"sourcesContent":["import { AfterViewInit, ChangeDetectorRef, Directive, ElementRef, Input, OnDestroy } from '@angular/core';\n\nimport { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\n@Directive({\n selector: '[auto-focus], input[autofocus=\"autofocus\"], textarea[autofocus=\"autofocus\"]',\n exportAs: 'autoFocus'\n})\nexport class AutoFocusDirective implements AfterViewInit, OnDestroy {\n static ngAcceptInputType_enabled: BooleanInput;\n static ngAcceptInputType_delay: NumberInput;\n\n private _focusoutTimeout: NzSafeAny;\n @Input() @InputBoolean() enabled = true;\n @Input() @InputNumber() delay = 300;\n\n constructor(private el: ElementRef<HTMLElement>, private cdr: ChangeDetectorRef) {}\n\n ngAfterViewInit(): void {\n const el = this.el.nativeElement;\n if (!(el instanceof HTMLElement) || !this.enabled) {\n return;\n }\n this._focusoutTimeout = setTimeout(() => {\n el.focus({ preventScroll: false });\n this.cdr.markForCheck();\n }, this.delay);\n }\n\n ngOnDestroy(): void {\n if (this._focusoutTimeout) {\n clearTimeout(this._focusoutTimeout);\n this._focusoutTimeout = null;\n }\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { AutoFocusDirective } from './auto-focus.directive';\n\nconst COMPONENTS = [AutoFocusDirective];\n\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class AutoFocusModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MASa,kBAAkB;IAQ7B,YAAoB,EAA2B,EAAU,GAAsB;QAA3D,OAAE,GAAF,EAAE,CAAyB;QAAU,QAAG,GAAH,GAAG,CAAmB;QAHtD,YAAO,GAAG,IAAI,CAAC;QAChB,UAAK,GAAG,GAAG,CAAC;KAE+C;IAEnF,eAAe;QACb,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC;QACjC,IAAI,EAAE,EAAE,YAAY,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjD,OAAO;SACR;QACD,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC;YACjC,EAAE,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,CAAC;YACnC,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;SACzB,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;KAChB;IAED,WAAW;QACT,IAAI,IAAI,CAAC,gBAAgB,EAAE;YACzB,YAAY,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;YACpC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;SAC9B;KACF;;+GA1BU,kBAAkB;mGAAlB,kBAAkB;AAKJ;IAAf,YAAY,EAAE;mDAAgB;AAChB;IAAd,WAAW,EAAE;iDAAa;2FANzB,kBAAkB;kBAJ9B,SAAS;mBAAC;oBACT,QAAQ,EAAE,6EAA6E;oBACvF,QAAQ,EAAE,WAAW;iBACtB;iIAM0B,OAAO;sBAA/B,KAAK;gBACkB,KAAK;sBAA5B,KAAK;;;ACXR,MAAM,UAAU,GAAG,CAAC,kBAAkB,CAAC,CAAC;MAM3B,eAAe;;4GAAf,eAAe;6GAAf,eAAe,iBANR,kBAAkB,aAAlB,kBAAkB;6GAMzB,eAAe;2FAAf,eAAe;kBAJ3B,QAAQ;mBAAC;oBACR,YAAY,EAAE,UAAU;oBACxB,OAAO,EAAE,UAAU;iBACpB;;;ACTD;;;;;;"}
@@ -14,9 +14,9 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
14
14
 
15
15
  class AvatarListItemComponent {
16
16
  }
17
- AvatarListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AvatarListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
- AvatarListItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AvatarListItemComponent, selector: "avatar-list-item, [avatar-list-item]", inputs: { src: "src", text: "text", icon: "icon", tips: "tips" }, exportAs: ["avatarListItem"], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AvatarListItemComponent, decorators: [{
17
+ AvatarListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AvatarListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
+ AvatarListItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: AvatarListItemComponent, selector: "avatar-list-item, [avatar-list-item]", inputs: { src: "src", text: "text", icon: "icon", tips: "tips" }, exportAs: ["avatarListItem"], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AvatarListItemComponent, decorators: [{
20
20
  type: Component,
21
21
  args: [{
22
22
  selector: 'avatar-list-item, [avatar-list-item]',
@@ -90,12 +90,12 @@ class AvatarListComponent {
90
90
  this.destroy$.complete();
91
91
  }
92
92
  }
93
- AvatarListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AvatarListComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });
94
- AvatarListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AvatarListComponent, selector: "avatar-list", inputs: { size: "size", maxLength: "maxLength", excessItemsStyle: "excessItemsStyle" }, host: { properties: { "class.avatar-list": "true", "class.avatar-list-rtl": "dir === 'rtl'" } }, queries: [{ propertyName: "_items", predicate: AvatarListItemComponent }], exportAs: ["avatarList"], usesOnChanges: true, ngImport: i0, template: "<ul class=\"avatar-list__wrap\">\n <li *ngFor=\"let i of items\" [ngClass]=\"cls\">\n <nz-avatar\n *ngIf=\"i.tips\"\n nz-tooltip\n [nzTooltipTitle]=\"i.tips\"\n [nzSrc]=\"i.src\"\n [nzText]=\"i.text\"\n [nzIcon]=\"i.icon\"\n [nzSize]=\"avatarSize\"\n ></nz-avatar>\n <nz-avatar *ngIf=\"!i.tips\" [nzSrc]=\"i.src\" [nzText]=\"i.text\" [nzIcon]=\"i.icon\" [nzSize]=\"avatarSize\"></nz-avatar>\n </li>\n <li *ngIf=\"exceedCount > 0\" [ngClass]=\"cls\">\n <nz-avatar\n [nzSize]=\"avatarSize\"\n style=\"cursor: auto\"\n [ngStyle]=\"excessItemsStyle\"\n [nzText]=\"'+' + exceedCount\"\n ></nz-avatar>\n </li>\n</ul>\n", components: [{ type: i2.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
93
+ AvatarListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AvatarListComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });
94
+ AvatarListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: AvatarListComponent, selector: "avatar-list", inputs: { size: "size", maxLength: "maxLength", excessItemsStyle: "excessItemsStyle" }, host: { properties: { "class.avatar-list": "true", "class.avatar-list-rtl": "dir === 'rtl'" } }, queries: [{ propertyName: "_items", predicate: AvatarListItemComponent }], exportAs: ["avatarList"], usesOnChanges: true, ngImport: i0, template: "<ul class=\"avatar-list__wrap\">\n <li *ngFor=\"let i of items\" [ngClass]=\"cls\">\n <nz-avatar\n *ngIf=\"i.tips\"\n nz-tooltip\n [nzTooltipTitle]=\"i.tips\"\n [nzSrc]=\"i.src\"\n [nzText]=\"i.text\"\n [nzIcon]=\"i.icon\"\n [nzSize]=\"avatarSize\"\n ></nz-avatar>\n <nz-avatar *ngIf=\"!i.tips\" [nzSrc]=\"i.src\" [nzText]=\"i.text\" [nzIcon]=\"i.icon\" [nzSize]=\"avatarSize\"></nz-avatar>\n </li>\n <li *ngIf=\"exceedCount > 0\" [ngClass]=\"cls\">\n <nz-avatar\n [nzSize]=\"avatarSize\"\n style=\"cursor: auto\"\n [ngStyle]=\"excessItemsStyle\"\n [nzText]=\"'+' + exceedCount\"\n ></nz-avatar>\n </li>\n</ul>\n", components: [{ type: i2.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
95
95
  __decorate([
96
96
  InputNumber()
97
97
  ], AvatarListComponent.prototype, "maxLength", void 0);
98
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AvatarListComponent, decorators: [{
98
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AvatarListComponent, decorators: [{
99
99
  type: Component,
100
100
  args: [{ selector: 'avatar-list', exportAs: 'avatarList', host: {
101
101
  '[class.avatar-list]': 'true',
@@ -117,10 +117,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
117
117
  const COMPONENTS = [AvatarListComponent, AvatarListItemComponent];
118
118
  class AvatarListModule {
119
119
  }
120
- AvatarListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AvatarListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
121
- AvatarListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AvatarListModule, declarations: [AvatarListComponent, AvatarListItemComponent], imports: [CommonModule, NzAvatarModule, NzToolTipModule], exports: [AvatarListComponent, AvatarListItemComponent] });
122
- AvatarListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AvatarListModule, imports: [[CommonModule, NzAvatarModule, NzToolTipModule]] });
123
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AvatarListModule, decorators: [{
120
+ AvatarListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AvatarListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
121
+ AvatarListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AvatarListModule, declarations: [AvatarListComponent, AvatarListItemComponent], imports: [CommonModule, NzAvatarModule, NzToolTipModule], exports: [AvatarListComponent, AvatarListItemComponent] });
122
+ AvatarListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AvatarListModule, imports: [[CommonModule, NzAvatarModule, NzToolTipModule]] });
123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AvatarListModule, decorators: [{
124
124
  type: NgModule,
125
125
  args: [{
126
126
  imports: [CommonModule, NzAvatarModule, NzToolTipModule],
@@ -134,4 +134,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
134
134
  */
135
135
 
136
136
  export { AvatarListComponent, AvatarListItemComponent, AvatarListModule };
137
- //# sourceMappingURL=avatarList.mjs.map
137
+ //# sourceMappingURL=avatar-list.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar-list.mjs","sources":["../../../../packages/abc/avatar-list/avatar-list-item.component.ts","../../../../packages/abc/avatar-list/avatar-list.component.ts","../../../../packages/abc/avatar-list/avatar-list.component.html","../../../../packages/abc/avatar-list/avatar-list.module.ts","../../../../packages/abc/avatar-list/avatar-list.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'avatar-list-item, [avatar-list-item]',\n exportAs: 'avatarListItem',\n template: `<ng-content></ng-content>`,\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class AvatarListItemComponent {\n @Input() src?: string;\n @Input() text?: string;\n @Input() icon?: string;\n @Input() tips?: string;\n}\n","import { Direction, Directionality } from '@angular/cdk/bidi';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n Input,\n OnChanges,\n OnDestroy,\n Optional,\n QueryList,\n ViewEncapsulation\n} from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { InputNumber, NumberInput } from '@delon/util/decorator';\nimport type { NgStyleInterface, NzSizeLDSType } from 'ng-zorro-antd/core/types';\n\nimport { AvatarListItemComponent } from './avatar-list-item.component';\n\n@Component({\n selector: 'avatar-list',\n exportAs: 'avatarList',\n templateUrl: './avatar-list.component.html',\n host: {\n '[class.avatar-list]': 'true',\n '[class.avatar-list-rtl]': `dir === 'rtl'`\n },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class AvatarListComponent implements AfterViewInit, OnChanges, OnDestroy {\n static ngAcceptInputType_maxLength: NumberInput;\n\n private inited = false;\n @ContentChildren(AvatarListItemComponent, { descendants: false })\n private _items!: QueryList<AvatarListItemComponent>;\n private destroy$ = new Subject<void>();\n\n items: AvatarListItemComponent[] = [];\n exceedCount = 0;\n dir: Direction = 'ltr';\n\n cls = '';\n avatarSize: NzSizeLDSType = 'default';\n @Input()\n set size(value: 'large' | 'small' | 'mini' | 'default') {\n this.cls = `avatar-list__item${value === 'default' ? '' : ` avatar-list__${value}`}`;\n switch (value) {\n case 'large':\n case 'small':\n case 'default':\n this.avatarSize = value;\n break;\n default:\n this.avatarSize = 'small';\n break;\n }\n }\n @Input() @InputNumber() maxLength = 0;\n @Input() excessItemsStyle: NgStyleInterface | null = null;\n\n constructor(private cdr: ChangeDetectorRef, @Optional() private directionality: Directionality) {}\n\n private gen(): void {\n const { _items } = this;\n const maxLength = this.maxLength > 0 ? this.maxLength : _items.length;\n const numOfChildren = _items.length;\n const numToShow = maxLength > 0 && maxLength >= numOfChildren ? numOfChildren : maxLength;\n this.items = _items.toArray().slice(0, numToShow);\n this.exceedCount = numToShow < numOfChildren ? numOfChildren - maxLength : 0;\n this.cdr.detectChanges();\n }\n\n ngAfterViewInit(): void {\n this.dir = this.directionality.value;\n this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe((direction: Direction) => {\n this.dir = direction;\n });\n this.gen();\n this.inited = true;\n }\n\n ngOnChanges(): void {\n if (this.inited) {\n this.gen();\n }\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n}\n","<ul class=\"avatar-list__wrap\">\n <li *ngFor=\"let i of items\" [ngClass]=\"cls\">\n <nz-avatar\n *ngIf=\"i.tips\"\n nz-tooltip\n [nzTooltipTitle]=\"i.tips\"\n [nzSrc]=\"i.src\"\n [nzText]=\"i.text\"\n [nzIcon]=\"i.icon\"\n [nzSize]=\"avatarSize\"\n ></nz-avatar>\n <nz-avatar *ngIf=\"!i.tips\" [nzSrc]=\"i.src\" [nzText]=\"i.text\" [nzIcon]=\"i.icon\" [nzSize]=\"avatarSize\"></nz-avatar>\n </li>\n <li *ngIf=\"exceedCount > 0\" [ngClass]=\"cls\">\n <nz-avatar\n [nzSize]=\"avatarSize\"\n style=\"cursor: auto\"\n [ngStyle]=\"excessItemsStyle\"\n [nzText]=\"'+' + exceedCount\"\n ></nz-avatar>\n </li>\n</ul>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzAvatarModule } from 'ng-zorro-antd/avatar';\nimport { NzToolTipModule } from 'ng-zorro-antd/tooltip';\n\nimport { AvatarListItemComponent } from './avatar-list-item.component';\nimport { AvatarListComponent } from './avatar-list.component';\n\nconst COMPONENTS = [AvatarListComponent, AvatarListItemComponent];\n\n@NgModule({\n imports: [CommonModule, NzAvatarModule, NzToolTipModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class AvatarListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAUa,uBAAuB;;oHAAvB,uBAAuB;wGAAvB,uBAAuB,4KALxB,2BAA2B;2FAK1B,uBAAuB;kB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ACT,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI;;0BAiCQ,QAAQ;4CA1B7C,MAAM;sBADb,eAAe;uBAAC,uBAAuB,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;gBAW5D,IAAI;sBADP,KAAK;gBAckB,SAAS;sBAAhC,KAAK;gBACG,gBAAgB;sBAAxB,KAAK;;;AEtDR,MAAM,UAAU,GAAG,CAAC,mBAAmB,EAAE,uBAAuB,CAAC,CAAC;MAOrD,gBAAgB;;6GAAhB,gBAAgB;8GAAhB,gBAAgB,iBAPT,mBAAmB,EAAE,uBAAuB,aAGpD,YAAY,EAAE,cAAc,EAAE,eAAe,aAHrC,mBAAmB,EAAE,uBAAuB;8GAOnD,gBAAgB,YAJlB,CAAC,YAAY,EAAE,cAAc,EAAE,eAAe,CAAC;2FAI7C,gBAAgB;kBAL5B,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,eAAe,CAAC;oBACxD,YAAY,EAAE,UAAU;oBACxB,OAAO,EAAE,UAAU;iBACpB;;;ACfD;;;;;;"}
@@ -23,9 +23,9 @@ class CountDownComponent {
23
23
  this.event.emit(e);
24
24
  }
25
25
  }
26
- CountDownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CountDownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
27
- CountDownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: CountDownComponent, selector: "count-down", inputs: { config: "config", target: "target" }, outputs: { event: "event" }, viewQueries: [{ propertyName: "instance", first: true, predicate: ["cd"], descendants: true }], exportAs: ["countDown"], ngImport: i0, template: ` <countdown #cd *ngIf="config" [config]="config" (event)="handleEvent($event)"></countdown> `, isInline: true, components: [{ type: i1.CountdownComponent, selector: "countdown", inputs: ["config", "render"], outputs: ["event"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CountDownComponent, decorators: [{
26
+ CountDownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CountDownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
27
+ CountDownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: CountDownComponent, selector: "count-down", inputs: { config: "config", target: "target" }, outputs: { event: "event" }, viewQueries: [{ propertyName: "instance", first: true, predicate: ["cd"], descendants: true }], exportAs: ["countDown"], ngImport: i0, template: ` <countdown #cd *ngIf="config" [config]="config" (event)="handleEvent($event)"></countdown> `, isInline: true, components: [{ type: i1.CountdownComponent, selector: "countdown", inputs: ["config", "render"], outputs: ["event"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CountDownComponent, decorators: [{
29
29
  type: Component,
30
30
  args: [{
31
31
  selector: 'count-down',
@@ -49,10 +49,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
49
49
  const COMPONENTS = [CountDownComponent];
50
50
  class CountDownModule {
51
51
  }
52
- CountDownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CountDownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
53
- CountDownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CountDownModule, declarations: [CountDownComponent], imports: [CommonModule, CountdownModule], exports: [CountDownComponent] });
54
- CountDownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CountDownModule, imports: [[CommonModule, CountdownModule]] });
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CountDownModule, decorators: [{
52
+ CountDownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CountDownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
53
+ CountDownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CountDownModule, declarations: [CountDownComponent], imports: [CommonModule, CountdownModule], exports: [CountDownComponent] });
54
+ CountDownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CountDownModule, imports: [[CommonModule, CountdownModule]] });
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CountDownModule, decorators: [{
56
56
  type: NgModule,
57
57
  args: [{
58
58
  imports: [CommonModule, CountdownModule],
@@ -17,8 +17,8 @@ class RangePickerShortcutTplComponent {
17
17
  }
18
18
  click(_) { }
19
19
  }
20
- RangePickerShortcutTplComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RangePickerShortcutTplComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
- RangePickerShortcutTplComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: RangePickerShortcutTplComponent, selector: "ng-component", viewQueries: [{ propertyName: "tpl", first: true, predicate: ["tpl"], descendants: true, static: true }], ngImport: i0, template: `
20
+ RangePickerShortcutTplComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: RangePickerShortcutTplComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
+ RangePickerShortcutTplComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: RangePickerShortcutTplComponent, selector: "ng-component", viewQueries: [{ propertyName: "tpl", first: true, predicate: ["tpl"], descendants: true, static: true }], ngImport: i0, template: `
22
22
  <ng-template #tpl>
23
23
  <a
24
24
  *ngFor="let i of list; let first = first"
@@ -28,7 +28,7 @@ RangePickerShortcutTplComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
28
28
  ></a>
29
29
  </ng-template>
30
30
  `, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RangePickerShortcutTplComponent, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: RangePickerShortcutTplComponent, decorators: [{
32
32
  type: Component,
33
33
  args: [{
34
34
  selector: '',
@@ -193,9 +193,9 @@ class RangePickerDirective {
193
193
  this.destroy$.complete();
194
194
  }
195
195
  }
196
- RangePickerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RangePickerDirective, deps: [{ token: i1$1.DomSanitizer }, { token: i2.AlainConfigService }, { token: i3.NzRangePickerComponent, host: true, optional: true }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
197
- RangePickerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: RangePickerDirective, selector: "nz-range-picker[extend]", inputs: { shortcut: "shortcut", ngModelEnd: "ngModelEnd" }, outputs: { ngModelEndChange: "ngModelEndChange" }, exportAs: ["extendRangePicker"], ngImport: i0 });
198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RangePickerDirective, decorators: [{
196
+ RangePickerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: RangePickerDirective, deps: [{ token: i1$1.DomSanitizer }, { token: i2.AlainConfigService }, { token: i3.NzRangePickerComponent, host: true, optional: true }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
197
+ RangePickerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: RangePickerDirective, selector: "nz-range-picker[extend]", inputs: { shortcut: "shortcut", ngModelEnd: "ngModelEnd" }, outputs: { ngModelEndChange: "ngModelEndChange" }, exportAs: ["extendRangePicker"], ngImport: i0 });
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: RangePickerDirective, decorators: [{
199
199
  type: Directive,
200
200
  args: [{
201
201
  selector: 'nz-range-picker[extend]',
@@ -216,10 +216,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
216
216
  const COMPONENTS = [RangePickerDirective, RangePickerShortcutTplComponent];
217
217
  class DatePickerModule {
218
218
  }
219
- DatePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
220
- DatePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DatePickerModule, declarations: [RangePickerDirective, RangePickerShortcutTplComponent], imports: [CommonModule, FormsModule, NzDatePickerModule], exports: [RangePickerDirective, RangePickerShortcutTplComponent] });
221
- DatePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DatePickerModule, imports: [[CommonModule, FormsModule, NzDatePickerModule]] });
222
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DatePickerModule, decorators: [{
219
+ DatePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: DatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
220
+ DatePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: DatePickerModule, declarations: [RangePickerDirective, RangePickerShortcutTplComponent], imports: [CommonModule, FormsModule, NzDatePickerModule], exports: [RangePickerDirective, RangePickerShortcutTplComponent] });
221
+ DatePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: DatePickerModule, imports: [[CommonModule, FormsModule, NzDatePickerModule]] });
222
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: DatePickerModule, decorators: [{
223
223
  type: NgModule,
224
224
  args: [{
225
225
  imports: [CommonModule, FormsModule, NzDatePickerModule],
@@ -233,4 +233,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
233
233
  */
234
234
 
235
235
  export { DatePickerModule, RangePickerDirective, RangePickerShortcutTplComponent };
236
- //# sourceMappingURL=datePicker.mjs.map
236
+ //# sourceMappingURL=date-picker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.mjs","sources":["../../../../packages/abc/date-picker/range-shortcut.component.ts","../../../../packages/abc/date-picker/range.directive.ts","../../../../packages/abc/date-picker/date-picker.module.ts","../../../../packages/abc/date-picker/date-picker.ts"],"sourcesContent":["import { Component, TemplateRef, ViewChild } from '@angular/core';\n\nimport { AlainDateRangePickerShortcutItem } from '@delon/util/config';\n\n@Component({\n selector: '',\n template: `\n <ng-template #tpl>\n <a\n *ngFor=\"let i of list; let first = first\"\n (click)=\"click(i)\"\n [innerHTML]=\"i._text\"\n [ngClass]=\"{ 'ml-sm': !first }\"\n ></a>\n </ng-template>\n `\n})\nexport class RangePickerShortcutTplComponent {\n @ViewChild('tpl', { static: true })\n tpl!: TemplateRef<void>;\n\n list: AlainDateRangePickerShortcutItem[] = [];\n\n click(_: AlainDateRangePickerShortcutItem): void {}\n}\n","import {\n AfterViewInit,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n EventEmitter,\n Host,\n Injector,\n Input,\n OnDestroy,\n Optional,\n Output,\n TemplateRef\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { Subject } from 'rxjs';\n\nimport { AlainConfigService, AlainDateRangePickerShortcut, AlainDateRangePickerShortcutItem } from '@delon/util/config';\nimport { fixEndTimeOfRange, getTimeDistance } from '@delon/util/date-time';\nimport { assert, deepMergeKey } from '@delon/util/other';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzDatePickerComponent, NzRangePickerComponent } from 'ng-zorro-antd/date-picker';\nimport { DatePickerService } from 'ng-zorro-antd/date-picker/date-picker.service';\n\nimport { RangePickerShortcutTplComponent } from './range-shortcut.component';\n\n@Directive({\n selector: 'nz-range-picker[extend]',\n exportAs: 'extendRangePicker'\n})\nexport class RangePickerDirective implements OnDestroy, AfterViewInit {\n static ngAcceptInputType_shortcut: AlainDateRangePickerShortcut | string | null;\n\n private defaultShortcuts: AlainDateRangePickerShortcut;\n private _shortcut: AlainDateRangePickerShortcut | null = null;\n private destroy$ = new Subject<void>();\n private shortcutFactory: ComponentRef<RangePickerShortcutTplComponent> | null = null;\n start: Date | null = null;\n end: Date | null = null;\n\n @Input()\n set shortcut(val: AlainDateRangePickerShortcut | null) {\n const item = deepMergeKey(\n { list: [] },\n true,\n this.defaultShortcuts,\n val == null ? {} : val\n ) as AlainDateRangePickerShortcut;\n if (typeof val !== 'object') {\n item.enabled = val !== false;\n }\n (item.list || []).forEach(i => {\n i._text = this.dom.bypassSecurityTrustHtml(i.text);\n });\n this._shortcut = item;\n this.refreshShortcut();\n }\n get shortcut(): AlainDateRangePickerShortcut | null {\n return this._shortcut;\n }\n @Input() ngModelEnd: NzSafeAny;\n @Output() readonly ngModelEndChange = new EventEmitter<NzSafeAny>();\n\n private get dp(): NzDatePickerComponent {\n return this.nativeComp.datePicker;\n }\n\n private get srv(): DatePickerService {\n return this.dp.datePickerService;\n }\n\n constructor(\n private dom: DomSanitizer,\n configSrv: AlainConfigService,\n @Host() @Optional() private nativeComp: NzRangePickerComponent,\n private resolver: ComponentFactoryResolver,\n private injector: Injector\n ) {\n assert(\n !!nativeComp,\n `It should be attached to nz-range-picker component, for example: '<nz-range-picker [(ngModel)]=\"i.start\" extend [(ngModelEnd)]=\"i.end\" shortcut></nz-range-picker>'`\n );\n const cog = configSrv.merge('dataRange', {\n nzFormat: 'yyyy-MM-dd',\n nzAllowClear: true,\n nzAutoFocus: false,\n nzPopupStyle: { position: 'relative' },\n nzShowToday: true,\n shortcuts: {\n enabled: false,\n closed: true,\n list: [\n {\n text: '今天',\n fn: () => getTimeDistance('today')\n },\n {\n text: '昨天',\n fn: () => getTimeDistance('yesterday')\n },\n {\n text: '近3天',\n fn: () => getTimeDistance(-2)\n },\n {\n text: '近7天',\n fn: () => getTimeDistance(-6)\n },\n {\n text: '本周',\n fn: () => getTimeDistance('week')\n },\n {\n text: '本月',\n fn: () => getTimeDistance('month')\n },\n {\n text: '全年',\n fn: () => getTimeDistance('year')\n }\n ]\n }\n })!;\n this.defaultShortcuts = { ...cog.shortcuts } as AlainDateRangePickerShortcut;\n Object.assign(this, cog);\n }\n\n private cd(): void {\n (this.dp as NzSafeAny).cdr.markForCheck();\n }\n\n private overrideNative(): void {\n const dp = this.dp;\n dp.writeValue = (value: Date) => {\n const dates = (value && this.ngModelEnd ? [value, this.ngModelEnd] : []).filter(w => !!w);\n this.srv.setValue(this.srv.makeValue(dates));\n this.start = dates.length > 0 ? dates[0] : null;\n this.end = dates.length > 0 ? dates[1] : null;\n this.cd();\n };\n\n const oldOnChangeFn = dp.onChangeFn;\n dp.onChangeFn = (list: Array<Date | null>) => {\n let start: Date | null = null;\n let end: Date | null = null;\n if (list.length > 0 && list.filter(w => w != null).length === 2) {\n [start, end] = fixEndTimeOfRange([list[0]!, list[1]!]);\n }\n this.start = start;\n this.end = end;\n oldOnChangeFn(start);\n this.ngModelEnd = end;\n this.ngModelEndChange.emit(end);\n };\n }\n\n private refreshShortcut(): void {\n if (!this._shortcut) {\n return;\n }\n const { enabled, list } = this._shortcut;\n let extraFooter: TemplateRef<NzSafeAny> | undefined;\n if (!this.nativeComp || !enabled) {\n extraFooter = undefined;\n } else {\n if (!this.shortcutFactory) {\n const factory = this.resolver.resolveComponentFactory(RangePickerShortcutTplComponent);\n this.shortcutFactory = factory.create(this.injector);\n }\n const { instance } = this.shortcutFactory;\n instance.list = list!;\n instance.click = (item: AlainDateRangePickerShortcutItem) => {\n const res = item.fn([this.start, this.end]);\n this.srv.setValue(this.srv.makeValue(res as Date[]));\n this.dp.onChangeFn(res);\n this.dp.close();\n };\n extraFooter = instance.tpl;\n }\n this.nativeComp.datePicker.extraFooter = extraFooter;\n Promise.resolve().then(() => this.cd());\n }\n\n ngAfterViewInit(): void {\n this.overrideNative();\n this.refreshShortcut();\n }\n\n private destoryShortcut(): void {\n if (this.shortcutFactory != null) {\n this.shortcutFactory.destroy();\n }\n }\n\n ngOnDestroy(): void {\n this.destoryShortcut();\n this.destroy$.next();\n this.destroy$.complete();\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\n\nimport { RangePickerShortcutTplComponent } from './range-shortcut.component';\nimport { RangePickerDirective } from './range.directive';\n\nconst COMPONENTS = [RangePickerDirective, RangePickerShortcutTplComponent];\n\n@NgModule({\n imports: [CommonModule, FormsModule, NzDatePickerModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class DatePickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAiBa,+BAA+B;IAb5C;QAiBE,SAAI,GAAuC,EAAE,CAAC;KAG/C;IADC,KAAK,CAAC,CAAmC,KAAU;;4HANxC,+BAA+B;gHAA/B,+BAA+B,8JAXhC;;;;;;;;;GAST;2FAEU,+BAA+B;kBAb3C,SAAS;mBAAC;oBACT,QAAQ,EAAE,EAAE;oBACZ,QAAQ,EAAE;;;;;;;;;GAST;iBACF;8BAGC,GAAG;sBADF,SAAS;uBAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;MCYvB,oBAAoB;IAyC/B,YACU,GAAiB,EACzB,SAA6B,EACD,UAAkC,EACtD,QAAkC,EAClC,QAAkB;QAJlB,QAAG,GAAH,GAAG,CAAc;QAEG,eAAU,GAAV,UAAU,CAAwB;QACtD,aAAQ,GAAR,QAAQ,CAA0B;QAClC,aAAQ,GAAR,QAAQ,CAAU;QA1CpB,cAAS,GAAwC,IAAI,CAAC;QACtD,aAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;QAC/B,oBAAe,GAAyD,IAAI,CAAC;QACrF,UAAK,GAAgB,IAAI,CAAC;QAC1B,QAAG,GAAgB,IAAI,CAAC;QAuBL,qBAAgB,GAAG,IAAI,YAAY,EAAa,CAAC;QAiBlE,MAAM,CACJ,CAAC,CAAC,UAAU,EACZ,qKAAqK,CACtK,CAAC;QACF,MAAM,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,WAAW,EAAE;YACvC,QAAQ,EAAE,YAAY;YACtB,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE;YACtC,WAAW,EAAE,IAAI;YACjB,SAAS,EAAE;gBACT,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,IAAI;gBACZ,IAAI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E,+BAA+B,aAG7D,YAAY,EAAE,WAAW,EAAE,kBAAkB,aAHrC,oBAAoB,EAAE,+BAA+B;8GAO5D,gBAAgB,YAJlB,CAAC,YAAY,EAAE,WAAW,EAAE,kBAAkB,CAAC;2FAI7C,gBAAgB;kBAL5B,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,kBAAkB,CAAC;oBACxD,YAAY,EAAE,UAAU;oBACxB,OAAO,EAAE,UAAU;iBACpB;;;ACfD;;;;;;"}
@@ -81,9 +81,9 @@ class DownFileDirective {
81
81
  });
82
82
  }
83
83
  }
84
- 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 });
85
- 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 });
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DownFileDirective, decorators: [{
84
+ DownFileDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: DownFileDirective, deps: [{ token: i0.ElementRef }, { token: i1._HttpClient }], target: i0.ɵɵFactoryTarget.Directive });
85
+ DownFileDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", 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 });
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: DownFileDirective, decorators: [{
87
87
  type: Directive,
88
88
  args: [{
89
89
  selector: '[down-file]',
@@ -118,10 +118,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
118
118
  const DIRECTIVES = [DownFileDirective];
119
119
  class DownFileModule {
120
120
  }
121
- DownFileModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DownFileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
122
- DownFileModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DownFileModule, declarations: [DownFileDirective], imports: [CommonModule, AlainThemeModule], exports: [DownFileDirective] });
123
- DownFileModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DownFileModule, imports: [[CommonModule, AlainThemeModule]] });
124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DownFileModule, decorators: [{
121
+ DownFileModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: DownFileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
122
+ DownFileModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: DownFileModule, declarations: [DownFileDirective], imports: [CommonModule, AlainThemeModule], exports: [DownFileDirective] });
123
+ DownFileModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: DownFileModule, imports: [[CommonModule, AlainThemeModule]] });
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: DownFileModule, decorators: [{
125
125
  type: NgModule,
126
126
  args: [{
127
127
  imports: [CommonModule, AlainThemeModule],
@@ -135,4 +135,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
135
135
  */
136
136
 
137
137
  export { DownFileDirective, DownFileModule };
138
- //# sourceMappingURL=downFile.mjs.map
138
+ //# sourceMappingURL=down-file.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"down-file.mjs","sources":["../../../../packages/abc/down-file/down-file.directive.ts","../../../../packages/abc/down-file/down-file.module.ts","../../../../packages/abc/down-file/down-file.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":";;;;;;;;MAgBa,iBAAiB;IAyB5B,YAAoB,EAAiC,EAAU,KAAkB;QAA7D,OAAE,GAAF,EA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mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;oBACzC,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;oBAC7B,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;iBACzB;;;ACbD;;;;;;"}
@@ -33,6 +33,9 @@ class EllipsisComponent {
33
33
  return ((targetCount > 0 ? text.substring(0, targetCount) : '') +
34
34
  (targetCount > 0 && targetCount < text.length ? tail : ''));
35
35
  }
36
+ get win() {
37
+ return this.doc.defaultView || window;
38
+ }
36
39
  getStrFullLength(str) {
37
40
  return str.split('').reduce((pre, cur) => {
38
41
  const charCode = cur.charCodeAt(0);
@@ -134,7 +137,7 @@ class EllipsisComponent {
134
137
  const { shadowOrgEl, shadowTextEl } = this;
135
138
  const orgNode = shadowOrgEl.nativeElement;
136
139
  const lineText = orgNode.innerText || orgNode.textContent;
137
- const lineHeight = parseInt(getComputedStyle(this.getEl('.ellipsis')).lineHeight, 10);
140
+ const lineHeight = parseInt(this.win.getComputedStyle(this.getEl('.ellipsis')).lineHeight, 10);
138
141
  const targetHeight = lines * lineHeight;
139
142
  this.getEl('.ellipsis__handle').style.height = `${targetHeight}px`;
140
143
  if (orgNode.offsetHeight <= targetHeight) {
@@ -189,8 +192,8 @@ class EllipsisComponent {
189
192
  }
190
193
  }
191
194
  }
192
- EllipsisComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EllipsisComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.DomSanitizer }, { token: DOCUMENT }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
193
- EllipsisComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: EllipsisComponent, selector: "ellipsis", inputs: { tooltip: "tooltip", length: "length", lines: "lines", fullWidthRecognition: "fullWidthRecognition", tail: "tail" }, viewQueries: [{ propertyName: "orgEl", first: true, predicate: ["orgEl"], descendants: true }, { propertyName: "shadowOrgEl", first: true, predicate: ["shadowOrgEl"], descendants: true }, { propertyName: "shadowTextEl", first: true, predicate: ["shadowTextEl"], descendants: true }], exportAs: ["ellipsis"], usesOnChanges: true, ngImport: i0, template: "<div (cdkObserveContent)=\"refresh()\" #orgEl style=\"display: none\"><ng-content></ng-content></div>\n<ng-template #tooltipTpl let-con>\n <span\n *ngIf=\"tooltip; else con\"\n nz-tooltip\n [nzTooltipTitle]=\"titleTpl\"\n [nzTooltipOverlayStyle]=\"{ 'overflow-wrap': 'break-word', 'word-wrap': 'break-word' }\"\n >\n <ng-container *ngTemplateOutlet=\"con\"></ng-container>\n <ng-template #titleTpl><div [innerHTML]=\"orgHtml\"></div></ng-template>\n </span>\n</ng-template>\n<ng-container [ngSwitch]=\"type\">\n <span *ngSwitchCase=\"'default'\" [ngClass]=\"cls\"></span>\n <ng-container *ngSwitchCase=\"'length'\">\n <ng-template [ngTemplateOutlet]=\"tooltipTpl\" [ngTemplateOutletContext]=\"{ $implicit: lengthTpl }\"></ng-template>\n <ng-template #lengthTpl>{{ text }}</ng-template>\n </ng-container>\n <ng-container *ngSwitchCase=\"'line-clamp'\">\n <ng-template [ngTemplateOutlet]=\"tooltipTpl\" [ngTemplateOutletContext]=\"{ $implicit: lineClampTpl }\"></ng-template>\n <ng-template #lineClampTpl>\n <div [ngClass]=\"cls\" [ngStyle]=\"{ '-webkit-line-clamp': lines, '-webkit-box-orient': 'vertical' }\"></div>\n </ng-template>\n </ng-container>\n <div *ngSwitchCase=\"'line'\" [ngClass]=\"cls\">\n <div class=\"ellipsis__handle\">\n <ng-template [ngTemplateOutlet]=\"tooltipTpl\" [ngTemplateOutletContext]=\"{ $implicit: lineTpl }\"></ng-template>\n <ng-template #lineTpl>{{ linsWord }}</ng-template>\n <div class=\"ellipsis__shadow\" #shadowOrgEl [innerHTML]=\"orgHtml\"></div>\n <div class=\"ellipsis__shadow\" #shadowTextEl>\n <span>{{ text }}</span>\n </div>\n </div>\n </div>\n</ng-container>\n", directives: [{ type: i2.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
195
+ EllipsisComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: EllipsisComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.DomSanitizer }, { token: DOCUMENT }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
196
+ EllipsisComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: EllipsisComponent, selector: "ellipsis", inputs: { tooltip: "tooltip", length: "length", lines: "lines", fullWidthRecognition: "fullWidthRecognition", tail: "tail" }, viewQueries: [{ propertyName: "orgEl", first: true, predicate: ["orgEl"], descendants: true }, { propertyName: "shadowOrgEl", first: true, predicate: ["shadowOrgEl"], descendants: true }, { propertyName: "shadowTextEl", first: true, predicate: ["shadowTextEl"], descendants: true }], exportAs: ["ellipsis"], usesOnChanges: true, ngImport: i0, template: "<div (cdkObserveContent)=\"refresh()\" #orgEl style=\"display: none\"><ng-content></ng-content></div>\n<ng-template #tooltipTpl let-con>\n <span\n *ngIf=\"tooltip; else con\"\n nz-tooltip\n [nzTooltipTitle]=\"titleTpl\"\n [nzTooltipOverlayStyle]=\"{ 'overflow-wrap': 'break-word', 'word-wrap': 'break-word' }\"\n >\n <ng-container *ngTemplateOutlet=\"con\"></ng-container>\n <ng-template #titleTpl><div [innerHTML]=\"orgHtml\"></div></ng-template>\n </span>\n</ng-template>\n<ng-container [ngSwitch]=\"type\">\n <span *ngSwitchCase=\"'default'\" [ngClass]=\"cls\"></span>\n <ng-container *ngSwitchCase=\"'length'\">\n <ng-template [ngTemplateOutlet]=\"tooltipTpl\" [ngTemplateOutletContext]=\"{ $implicit: lengthTpl }\"></ng-template>\n <ng-template #lengthTpl>{{ text }}</ng-template>\n </ng-container>\n <ng-container *ngSwitchCase=\"'line-clamp'\">\n <ng-template [ngTemplateOutlet]=\"tooltipTpl\" [ngTemplateOutletContext]=\"{ $implicit: lineClampTpl }\"></ng-template>\n <ng-template #lineClampTpl>\n <div [ngClass]=\"cls\" [ngStyle]=\"{ '-webkit-line-clamp': lines, '-webkit-box-orient': 'vertical' }\"></div>\n </ng-template>\n </ng-container>\n <div *ngSwitchCase=\"'line'\" [ngClass]=\"cls\">\n <div class=\"ellipsis__handle\">\n <ng-template [ngTemplateOutlet]=\"tooltipTpl\" [ngTemplateOutletContext]=\"{ $implicit: lineTpl }\"></ng-template>\n <ng-template #lineTpl>{{ linsWord }}</ng-template>\n <div class=\"ellipsis__shadow\" #shadowOrgEl [innerHTML]=\"orgHtml\"></div>\n <div class=\"ellipsis__shadow\" #shadowTextEl>\n <span>{{ text }}</span>\n </div>\n </div>\n </div>\n</ng-container>\n", directives: [{ type: i2.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
194
197
  __decorate([
195
198
  InputBoolean()
196
199
  ], EllipsisComponent.prototype, "tooltip", void 0);
@@ -203,7 +206,7 @@ __decorate([
203
206
  __decorate([
204
207
  InputBoolean()
205
208
  ], EllipsisComponent.prototype, "fullWidthRecognition", void 0);
206
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EllipsisComponent, decorators: [{
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: EllipsisComponent, decorators: [{
207
210
  type: Component,
208
211
  args: [{ selector: 'ellipsis', exportAs: 'ellipsis', preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div (cdkObserveContent)=\"refresh()\" #orgEl style=\"display: none\"><ng-content></ng-content></div>\n<ng-template #tooltipTpl let-con>\n <span\n *ngIf=\"tooltip; else con\"\n nz-tooltip\n [nzTooltipTitle]=\"titleTpl\"\n [nzTooltipOverlayStyle]=\"{ 'overflow-wrap': 'break-word', 'word-wrap': 'break-word' }\"\n >\n <ng-container *ngTemplateOutlet=\"con\"></ng-container>\n <ng-template #titleTpl><div [innerHTML]=\"orgHtml\"></div></ng-template>\n </span>\n</ng-template>\n<ng-container [ngSwitch]=\"type\">\n <span *ngSwitchCase=\"'default'\" [ngClass]=\"cls\"></span>\n <ng-container *ngSwitchCase=\"'length'\">\n <ng-template [ngTemplateOutlet]=\"tooltipTpl\" [ngTemplateOutletContext]=\"{ $implicit: lengthTpl }\"></ng-template>\n <ng-template #lengthTpl>{{ text }}</ng-template>\n </ng-container>\n <ng-container *ngSwitchCase=\"'line-clamp'\">\n <ng-template [ngTemplateOutlet]=\"tooltipTpl\" [ngTemplateOutletContext]=\"{ $implicit: lineClampTpl }\"></ng-template>\n <ng-template #lineClampTpl>\n <div [ngClass]=\"cls\" [ngStyle]=\"{ '-webkit-line-clamp': lines, '-webkit-box-orient': 'vertical' }\"></div>\n </ng-template>\n </ng-container>\n <div *ngSwitchCase=\"'line'\" [ngClass]=\"cls\">\n <div class=\"ellipsis__handle\">\n <ng-template [ngTemplateOutlet]=\"tooltipTpl\" [ngTemplateOutletContext]=\"{ $implicit: lineTpl }\"></ng-template>\n <ng-template #lineTpl>{{ linsWord }}</ng-template>\n <div class=\"ellipsis__shadow\" #shadowOrgEl [innerHTML]=\"orgHtml\"></div>\n <div class=\"ellipsis__shadow\" #shadowTextEl>\n <span>{{ text }}</span>\n </div>\n </div>\n </div>\n</ng-container>\n" }]
209
212
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.DomSanitizer }, { type: undefined, decorators: [{
@@ -233,10 +236,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
233
236
  const COMPONENTS = [EllipsisComponent];
234
237
  class EllipsisModule {
235
238
  }
236
- EllipsisModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EllipsisModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
237
- EllipsisModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EllipsisModule, declarations: [EllipsisComponent], imports: [CommonModule, ObserversModule, NzToolTipModule], exports: [EllipsisComponent] });
238
- EllipsisModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EllipsisModule, imports: [[CommonModule, ObserversModule, NzToolTipModule]] });
239
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EllipsisModule, decorators: [{
239
+ EllipsisModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: EllipsisModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
240
+ EllipsisModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: EllipsisModule, declarations: [EllipsisComponent], imports: [CommonModule, ObserversModule, NzToolTipModule], exports: [EllipsisComponent] });
241
+ EllipsisModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: EllipsisModule, imports: [[CommonModule, ObserversModule, NzToolTipModule]] });
242
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: EllipsisModule, decorators: [{
240
243
  type: NgModule,
241
244
  args: [{
242
245
  imports: [CommonModule, ObserversModule, NzToolTipModule],