@taiga-ui/kit 2.16.2 → 2.19.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 (239) hide show
  1. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  2. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  4. package/bundles/taiga-ui-kit-components-badged-content.umd.js +1 -1
  5. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js +1 -1
  6. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +2 -2
  8. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +1 -1
  10. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +5 -1
  12. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +1 -1
  14. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +3 -0
  16. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +1 -1
  18. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-input-file.umd.js +4 -1
  24. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
  26. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-input-inline.umd.js +1 -1
  28. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +1 -1
  31. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  33. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-input-tag.umd.js +5 -5
  37. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  39. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-progress.umd.js +136 -9
  41. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-progress.umd.min.js +2 -2
  43. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-stepper.umd.js +1 -4
  45. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  47. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-tabs.umd.js +1 -4
  49. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  51. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  53. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  56. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-kit-enums.umd.js +85 -8
  59. package/bundles/taiga-ui-kit-enums.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-enums.umd.min.js +1 -1
  61. package/bundles/taiga-ui-kit-enums.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-kit-pipes-stringify.umd.js +258 -0
  65. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -0
  66. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js +16 -0
  67. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -0
  68. package/bundles/taiga-ui-kit-pipes.umd.js +12 -4
  69. package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
  70. package/bundles/taiga-ui-kit-pipes.umd.min.js +1 -1
  71. package/components/badged-content/taiga-ui-kit-components-badged-content.metadata.json +1 -1
  72. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  73. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  74. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  75. package/components/input-date-range/input-date-range.component.d.ts +1 -1
  76. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  77. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  78. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  79. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  80. package/components/progress/index.d.ts +2 -0
  81. package/components/progress/progress-circle/progress-circle.component.d.ts +15 -0
  82. package/components/progress/progress-segmented/progress-segmented.component.d.ts +10 -0
  83. package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
  84. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  85. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  86. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  87. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  88. package/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.metadata.json +1 -1
  89. package/esm2015/abstract/slider/slider.js +1 -1
  90. package/esm2015/components/badged-content/badged-content.component.js +1 -1
  91. package/esm2015/components/calendar-month/calendar-month.component.js +3 -3
  92. package/esm2015/components/data-list-wrapper/data-list-wrapper.module.js +7 -3
  93. package/esm2015/components/input-date/input-date.component.js +1 -1
  94. package/esm2015/components/input-date-range/input-date-range.component.js +4 -1
  95. package/esm2015/components/input-date-time/input-date-time.component.js +1 -1
  96. package/esm2015/components/input-file/input-file.component.js +5 -2
  97. package/esm2015/components/input-inline/input-inline.module.js +2 -2
  98. package/esm2015/components/input-phone/input-phone.component.js +1 -1
  99. package/esm2015/components/input-phone-international/input-phone-international.component.js +2 -2
  100. package/esm2015/components/input-tag/input-tag.component.js +6 -6
  101. package/esm2015/components/progress/index.js +3 -1
  102. package/esm2015/components/progress/progress-circle/progress-circle.component.js +69 -0
  103. package/esm2015/components/progress/progress-label/progress-label.component.js +3 -3
  104. package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +48 -0
  105. package/esm2015/components/progress/progress.module.js +11 -4
  106. package/esm2015/components/stepper/stepper.component.js +2 -5
  107. package/esm2015/components/tabs/tabs/tabs.component.js +2 -5
  108. package/esm2015/components/text-area/text-area.component.js +1 -1
  109. package/esm2015/components/toggle/toggle.component.js +1 -1
  110. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +1 -1
  111. package/esm2015/enums/borders.js +9 -1
  112. package/esm2015/enums/dropdown-position.js +10 -1
  113. package/esm2015/enums/file-state.js +11 -1
  114. package/esm2015/enums/marker-icon-mode.js +15 -1
  115. package/esm2015/enums/status.js +13 -1
  116. package/esm2015/enums/step-state.js +10 -1
  117. package/esm2015/enums/text-align.js +10 -1
  118. package/esm2015/pipes/index.js +2 -1
  119. package/esm2015/pipes/stringify/index.js +3 -0
  120. package/esm2015/pipes/stringify/stringify.module.js +13 -0
  121. package/esm2015/pipes/stringify/stringify.pipe.js +14 -0
  122. package/esm2015/pipes/stringify/taiga-ui-kit-pipes-stringify.js +5 -0
  123. package/esm2015/pipes/stringify-content/stringify-content.pipe.js +1 -1
  124. package/esm5/abstract/slider/slider.js +1 -1
  125. package/esm5/components/badged-content/badged-content.component.js +1 -1
  126. package/esm5/components/calendar-month/calendar-month.component.js +3 -3
  127. package/esm5/components/data-list-wrapper/data-list-wrapper.module.js +7 -3
  128. package/esm5/components/input-date/input-date.component.js +1 -1
  129. package/esm5/components/input-date-range/input-date-range.component.js +4 -1
  130. package/esm5/components/input-date-time/input-date-time.component.js +1 -1
  131. package/esm5/components/input-file/input-file.component.js +5 -2
  132. package/esm5/components/input-inline/input-inline.module.js +2 -2
  133. package/esm5/components/input-phone/input-phone.component.js +1 -1
  134. package/esm5/components/input-phone-international/input-phone-international.component.js +2 -2
  135. package/esm5/components/input-tag/input-tag.component.js +6 -6
  136. package/esm5/components/progress/index.js +3 -1
  137. package/esm5/components/progress/progress-circle/progress-circle.component.js +78 -0
  138. package/esm5/components/progress/progress-label/progress-label.component.js +3 -3
  139. package/esm5/components/progress/progress-segmented/progress-segmented.component.js +50 -0
  140. package/esm5/components/progress/progress.module.js +11 -4
  141. package/esm5/components/stepper/stepper.component.js +2 -5
  142. package/esm5/components/tabs/tabs/tabs.component.js +2 -5
  143. package/esm5/components/text-area/text-area.component.js +1 -1
  144. package/esm5/components/toggle/toggle.component.js +1 -1
  145. package/esm5/directives/dropdown-context/dropdown-context.directive.js +1 -1
  146. package/esm5/enums/borders.js +9 -1
  147. package/esm5/enums/dropdown-position.js +10 -1
  148. package/esm5/enums/file-state.js +11 -1
  149. package/esm5/enums/marker-icon-mode.js +15 -1
  150. package/esm5/enums/status.js +13 -1
  151. package/esm5/enums/step-state.js +10 -1
  152. package/esm5/enums/text-align.js +10 -1
  153. package/esm5/pipes/index.js +2 -1
  154. package/esm5/pipes/stringify/index.js +3 -0
  155. package/esm5/pipes/stringify/stringify.module.js +16 -0
  156. package/esm5/pipes/stringify/stringify.pipe.js +17 -0
  157. package/esm5/pipes/stringify/taiga-ui-kit-pipes-stringify.js +5 -0
  158. package/esm5/pipes/stringify-content/stringify-content.pipe.js +1 -1
  159. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  160. package/fesm2015/taiga-ui-kit-components-badged-content.js +1 -1
  161. package/fesm2015/taiga-ui-kit-components-calendar-month.js +2 -2
  162. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  163. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +6 -2
  164. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  165. package/fesm2015/taiga-ui-kit-components-input-date-range.js +3 -0
  166. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  167. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  168. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  169. package/fesm2015/taiga-ui-kit-components-input-file.js +4 -1
  170. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  171. package/fesm2015/taiga-ui-kit-components-input-inline.js +1 -1
  172. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  173. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +1 -1
  174. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  175. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  176. package/fesm2015/taiga-ui-kit-components-input-tag.js +5 -5
  177. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  178. package/fesm2015/taiga-ui-kit-components-progress.js +121 -9
  179. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  180. package/fesm2015/taiga-ui-kit-components-stepper.js +1 -4
  181. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  182. package/fesm2015/taiga-ui-kit-components-tabs.js +1 -4
  183. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  184. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  185. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  186. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  187. package/fesm2015/taiga-ui-kit-enums.js +80 -0
  188. package/fesm2015/taiga-ui-kit-enums.js.map +1 -1
  189. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  190. package/fesm2015/taiga-ui-kit-pipes-stringify.js +29 -0
  191. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -0
  192. package/fesm2015/taiga-ui-kit-pipes.js +1 -0
  193. package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
  194. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  195. package/fesm5/taiga-ui-kit-components-badged-content.js +1 -1
  196. package/fesm5/taiga-ui-kit-components-calendar-month.js +2 -2
  197. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  198. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +6 -2
  199. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  200. package/fesm5/taiga-ui-kit-components-input-date-range.js +3 -0
  201. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  202. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  203. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  204. package/fesm5/taiga-ui-kit-components-input-file.js +4 -1
  205. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  206. package/fesm5/taiga-ui-kit-components-input-inline.js +1 -1
  207. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  208. package/fesm5/taiga-ui-kit-components-input-phone-international.js +1 -1
  209. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  210. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  211. package/fesm5/taiga-ui-kit-components-input-tag.js +5 -5
  212. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  213. package/fesm5/taiga-ui-kit-components-progress.js +132 -9
  214. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  215. package/fesm5/taiga-ui-kit-components-stepper.js +1 -4
  216. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  217. package/fesm5/taiga-ui-kit-components-tabs.js +1 -4
  218. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  219. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  220. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  221. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  222. package/fesm5/taiga-ui-kit-enums.js +80 -0
  223. package/fesm5/taiga-ui-kit-enums.js.map +1 -1
  224. package/fesm5/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  225. package/fesm5/taiga-ui-kit-pipes-stringify.js +35 -0
  226. package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -0
  227. package/fesm5/taiga-ui-kit-pipes.js +1 -0
  228. package/fesm5/taiga-ui-kit-pipes.js.map +1 -1
  229. package/package.json +4 -4
  230. package/pipes/index.d.ts +1 -0
  231. package/pipes/stringify/index.d.ts +2 -0
  232. package/pipes/stringify/package.json +13 -0
  233. package/pipes/stringify/stringify.module.d.ts +2 -0
  234. package/pipes/stringify/stringify.pipe.d.ts +5 -0
  235. package/pipes/stringify/taiga-ui-kit-pipes-stringify.d.ts +4 -0
  236. package/pipes/stringify/taiga-ui-kit-pipes-stringify.metadata.json +1 -0
  237. package/pipes/stringify-content/stringify-content.pipe.d.ts +1 -2
  238. package/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.metadata.json +1 -1
  239. package/pipes/taiga-ui-kit-pipes.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-dropdown-context.js","sources":["ng://@taiga-ui/kit/directives/dropdown-context/dropdown-context.directive.ts","ng://@taiga-ui/kit/directives/dropdown-context/dropdown-context.module.ts","ng://@taiga-ui/kit/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ComponentFactoryResolver,\n Directive,\n ElementRef,\n forwardRef,\n HostListener,\n Inject,\n Injector,\n Input,\n} from '@angular/core';\nimport {\n getClosestFocusable,\n getNativeFocused,\n setNativeFocused,\n TuiActiveZoneDirective,\n tuiDefaultProp,\n TuiDestroyService,\n TuiPortalService,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiDropdown, TUI_DROPDOWN_DIRECTIVE, TuiDropdown} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, Observable} from 'rxjs';\nimport {filter, takeUntil} from 'rxjs/operators';\n\n// @dynamic\n@Directive({\n selector: '[tuiDropdownContext]',\n providers: [\n TuiDestroyService,\n TuiActiveZoneDirective,\n {\n provide: TUI_DROPDOWN_DIRECTIVE,\n useExisting: forwardRef(() => TuiDropdownContextDirective),\n },\n ],\n})\nexport class TuiDropdownContextDirective\n extends AbstractTuiDropdown\n implements TuiDropdown\n{\n @Input('tuiDropdownContext')\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n readonly refresh$ = EMPTY;\n readonly context = {\n close: () => this.closeDropdownBox(),\n };\n private lastClickedClientRect: ClientRect = this.getClientRectFromDot(0, 0);\n\n constructor(\n protected readonly elementRef: ElementRef,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(ComponentFactoryResolver)\n componentFactoryResolver: ComponentFactoryResolver,\n @Inject(Injector) injector: Injector,\n @Inject(TuiPortalService) portalService: TuiPortalService,\n readonly activeZone: TuiActiveZoneDirective,\n ) {\n super(componentFactoryResolver, injector, portalService, elementRef, activeZone);\n\n activeZone.tuiActiveZoneChange\n .pipe(\n filter(isActive => !isActive),\n takeUntil(destroy$),\n )\n .subscribe(() => this.closeDropdownBox());\n }\n\n get clientRect(): ClientRect {\n return this.lastClickedClientRect;\n }\n\n get fixed(): boolean {\n return true;\n }\n\n private get dropdownContent(): HTMLElement | null {\n return this.dropdownBoxRef?.instance.contentElementRef?.nativeElement || null;\n }\n\n @HostListener('click')\n onHostClick() {\n this.closeDropdownBox();\n }\n\n @HostListener('contextmenu.prevent', ['$event.clientX', '$event.clientY'])\n onContextMenu(x: number, y: number) {\n this.closeDropdownBox();\n this.openDropdown(x, y);\n }\n\n @HostListener('document:contextmenu', ['$event.target'])\n onAnotherContextOpen(target: HTMLElement) {\n const isAnotherContextOpened = !this.elementRef.nativeElement.contains(target);\n\n if (isAnotherContextOpened) {\n this.closeDropdownBox();\n }\n }\n\n @HostListener('document:keydown.arrowDown', ['$event', 'true'])\n @HostListener('document:keydown.arrowUp', ['$event', 'false'])\n onArrow(event: KeyboardEvent, down: boolean) {\n const activeElement = getNativeFocused(this.documentRef);\n const focusInside = activeElement && this.activeZone.contains(activeElement);\n\n if (!this.dropdownContent || focusInside) {\n return;\n }\n\n event.preventDefault();\n\n const nextEl = this.dropdownContent.nextElementSibling;\n const initial =\n down || !this.checkIsFocusableElement(nextEl) ? this.dropdownContent : nextEl;\n const focusable = getClosestFocusable(initial, !down, this.dropdownContent);\n\n if (focusable === null) {\n return;\n }\n\n setNativeFocused(focusable);\n }\n\n @HostListener('document:keydown.esc', ['$event'])\n onKeyDownEsc(event: KeyboardEvent) {\n if (!this.dropdownContent) {\n return;\n }\n\n event.stopPropagation();\n this.closeDropdownBox();\n }\n\n private openDropdown(x: number, y: number): void {\n this.lastClickedClientRect = this.getClientRectFromDot(x, y);\n this.openDropdownBox();\n }\n\n private getClientRectFromDot(x: number, y: number): ClientRect {\n return {\n top: y,\n bottom: y,\n left: x,\n right: x,\n height: 0,\n width: 0,\n };\n }\n\n private checkIsFocusableElement(element: Element | null): element is HTMLElement {\n return !!element && 'focus' in element && 'blur' in element;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiDropdownBoxModule} from '@taiga-ui/core';\nimport {TuiDropdownContextDirective} from './dropdown-context.directive';\n\n@NgModule({\n imports: [TuiDropdownBoxModule],\n declarations: [TuiDropdownContextDirective],\n exports: [TuiDropdownContextDirective],\n})\nexport class TuiDropdownContextModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAyBA;;IAaY,+CAAmB;IAa3B,qCACuB,UAAsB,EACN,WAAqB,EAC7B,QAA6B,EAExD,wBAAkD,EAChC,QAAkB,EACV,aAA+B,EAChD,UAAkC;QAR/C,YAUI,kBAAM,wBAAwB,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,CAAC,SAQnF;QAjBsB,gBAAU,GAAV,UAAU,CAAY;QACN,iBAAW,GAAX,WAAW,CAAU;QAM/C,gBAAU,GAAV,UAAU,CAAwB;QAhB/C,aAAO,GAAwB,EAAE,CAAC;QAEzB,cAAQ,GAAG,KAAK,CAAC;QACjB,aAAO,GAAG;YACf,KAAK,EAAE,cAAM,OAAA,KAAI,CAAC,gBAAgB,EAAE,GAAA;SACvC,CAAC;QACM,2BAAqB,GAAe,KAAI,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAcxE,UAAU,CAAC,mBAAmB;aACzB,IAAI,CACD,MAAM,CAAC,UAAA,QAAQ,IAAI,OAAA,CAAC,QAAQ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AwB,CAAG;IAAD,+BAAC;CAAxC;;ACTA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-dropdown-context.js","sources":["ng://@taiga-ui/kit/directives/dropdown-context/dropdown-context.directive.ts","ng://@taiga-ui/kit/directives/dropdown-context/dropdown-context.module.ts","ng://@taiga-ui/kit/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ComponentFactoryResolver,\n Directive,\n ElementRef,\n forwardRef,\n HostListener,\n Inject,\n Injector,\n Input,\n} from '@angular/core';\nimport {\n getClosestFocusable,\n getNativeFocused,\n setNativeFocused,\n TuiActiveZoneDirective,\n tuiDefaultProp,\n TuiDestroyService,\n TuiPortalService,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiDropdown, TUI_DROPDOWN_DIRECTIVE, TuiDropdown} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, Observable} from 'rxjs';\nimport {filter, takeUntil} from 'rxjs/operators';\n\n// @dynamic\n@Directive({\n selector: '[tuiDropdownContext]',\n providers: [\n TuiDestroyService,\n TuiActiveZoneDirective,\n {\n provide: TUI_DROPDOWN_DIRECTIVE,\n useExisting: forwardRef(() => TuiDropdownContextDirective),\n },\n ],\n})\nexport class TuiDropdownContextDirective\n extends AbstractTuiDropdown\n implements TuiDropdown {\n @Input('tuiDropdownContext')\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n readonly refresh$ = EMPTY;\n readonly context = {\n close: () => this.closeDropdownBox(),\n };\n private lastClickedClientRect: ClientRect = this.getClientRectFromDot(0, 0);\n\n constructor(\n protected readonly elementRef: ElementRef,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(ComponentFactoryResolver)\n componentFactoryResolver: ComponentFactoryResolver,\n @Inject(Injector) injector: Injector,\n @Inject(TuiPortalService) portalService: TuiPortalService,\n readonly activeZone: TuiActiveZoneDirective,\n ) {\n super(componentFactoryResolver, injector, portalService, elementRef, activeZone);\n\n activeZone.tuiActiveZoneChange\n .pipe(\n filter(isActive => !isActive),\n takeUntil(destroy$),\n )\n .subscribe(() => this.closeDropdownBox());\n }\n\n get clientRect(): ClientRect {\n return this.lastClickedClientRect;\n }\n\n get fixed(): boolean {\n return true;\n }\n\n private get dropdownContent(): HTMLElement | null {\n return this.dropdownBoxRef?.instance.contentElementRef?.nativeElement || null;\n }\n\n @HostListener('click')\n onHostClick() {\n this.closeDropdownBox();\n }\n\n @HostListener('contextmenu.prevent', ['$event.clientX', '$event.clientY'])\n onContextMenu(x: number, y: number) {\n this.closeDropdownBox();\n this.openDropdown(x, y);\n }\n\n @HostListener('document:contextmenu', ['$event.target'])\n onAnotherContextOpen(target: HTMLElement) {\n const isAnotherContextOpened = !this.elementRef.nativeElement.contains(target);\n\n if (isAnotherContextOpened) {\n this.closeDropdownBox();\n }\n }\n\n @HostListener('document:keydown.arrowDown', ['$event', 'true'])\n @HostListener('document:keydown.arrowUp', ['$event', 'false'])\n onArrow(event: KeyboardEvent, down: boolean) {\n const activeElement = getNativeFocused(this.documentRef);\n const focusInside = activeElement && this.activeZone.contains(activeElement);\n\n if (!this.dropdownContent || focusInside) {\n return;\n }\n\n event.preventDefault();\n\n const nextEl = this.dropdownContent.nextElementSibling;\n const initial =\n down || !this.checkIsFocusableElement(nextEl) ? this.dropdownContent : nextEl;\n const focusable = getClosestFocusable(initial, !down, this.dropdownContent);\n\n if (focusable === null) {\n return;\n }\n\n setNativeFocused(focusable);\n }\n\n @HostListener('document:keydown.esc', ['$event'])\n onKeyDownEsc(event: KeyboardEvent) {\n if (!this.dropdownContent) {\n return;\n }\n\n event.stopPropagation();\n this.closeDropdownBox();\n }\n\n private openDropdown(x: number, y: number): void {\n this.lastClickedClientRect = this.getClientRectFromDot(x, y);\n this.openDropdownBox();\n }\n\n private getClientRectFromDot(x: number, y: number): ClientRect {\n return {\n top: y,\n bottom: y,\n left: x,\n right: x,\n height: 0,\n width: 0,\n };\n }\n\n private checkIsFocusableElement(element: Element | null): element is HTMLElement {\n return !!element && 'focus' in element && 'blur' in element;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiDropdownBoxModule} from '@taiga-ui/core';\nimport {TuiDropdownContextDirective} from './dropdown-context.directive';\n\n@NgModule({\n imports: [TuiDropdownBoxModule],\n declarations: [TuiDropdownContextDirective],\n exports: [TuiDropdownContextDirective],\n})\nexport class TuiDropdownContextModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAyBA;;IAaY,+CAAmB;IAY3B,qCACuB,UAAsB,EACN,WAAqB,EAC7B,QAA6B,EAExD,wBAAkD,EAChC,QAAkB,EACV,aAA+B,EAChD,UAAkC;QAR/C,YAUI,kBAAM,wBAAwB,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,CAAC,SAQnF;QAjBsB,gBAAU,GAAV,UAAU,CAAY;QACN,iBAAW,GAAX,WAAW,CAAU;QAM/C,gBAAU,GAAV,UAAU,CAAwB;QAhB/C,aAAO,GAAwB,EAAE,CAAC;QAEzB,cAAQ,GAAG,KAAK,CAAC;QACjB,aAAO,GAAG;YACf,KAAK,EAAE,cAAM,OAAA,KAAI,CAAC,gBAAgB,EAAE,GAAA;SACvC,CAAC;QACM,2BAAqB,GAAe,KAAI,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAcxE,UAAU,CAAC,mBAAmB;aACzB,IAAI,CACD,MAAM,CAAC,UAAA,QAAQ,IAAI,OAAA,CAAC,QAAQ,GAAA,CAAC,EAC7B,SAAS,CAAC,QAAQ,CAAC,CACtB;aACA,SAAS,CAAC,cAAM,OAAA,KAAI,CAAC,gBAAgB,EAAE,GAAA,CAAC,CAAC;;KACjD;oCA/BQ,2BAA2B;IAiCpC,sBAAI,mDAAU;aAAd;YACI,OAAO,IAAI,CA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Borders || (TuiBorders = {}));
9
+
10
+ /**
11
+ * @deprecated use string values
12
+ */
13
+ var TuiDropdownPosition;
14
+ (function (TuiDropdownPosition) {
15
+ TuiDropdownPosition["Selection"] = "selection";
16
+ TuiDropdownPosition["Word"] = "word";
17
+ TuiDropdownPosition["Tag"] = "tag";
18
+ })(TuiDropdownPosition || (TuiDropdownPosition = {}));
19
+
20
+ /**
21
+ * @internal
22
+ */
23
+ var TuiFileState;
24
+ (function (TuiFileState) {
25
+ TuiFileState["Error"] = "error";
26
+ TuiFileState["Deleted"] = "deleted";
27
+ TuiFileState["Loading"] = "loading";
28
+ TuiFileState["Normal"] = "normal";
29
+ })(TuiFileState || (TuiFileState = {}));
30
+
31
+ /**
32
+ * @deprecated use join type {@link TuiMarkerIconModeT}
33
+ */
34
+ var TuiMarkerIconMode;
35
+ (function (TuiMarkerIconMode) {
36
+ TuiMarkerIconMode["Link"] = "link";
37
+ TuiMarkerIconMode["Primary"] = "primary";
38
+ TuiMarkerIconMode["Warning"] = "warning";
39
+ TuiMarkerIconMode["White"] = "white";
40
+ TuiMarkerIconMode["Secondary"] = "secondary";
41
+ TuiMarkerIconMode["Success"] = "success";
42
+ TuiMarkerIconMode["Error"] = "error";
43
+ TuiMarkerIconMode["OnDark"] = "onDark";
44
+ })(TuiMarkerIconMode || (TuiMarkerIconMode = {}));
45
+
46
+ /**
47
+ * @deprecated use join type {@link TuiStatusT}
48
+ */
49
+ var TuiStatus;
50
+ (function (TuiStatus) {
51
+ TuiStatus["Default"] = "default";
52
+ TuiStatus["Primary"] = "primary";
53
+ TuiStatus["Custom"] = "custom";
54
+ TuiStatus["Success"] = "success";
55
+ TuiStatus["Error"] = "error";
56
+ TuiStatus["Warning"] = "warning";
57
+ })(TuiStatus || (TuiStatus = {}));
58
+
59
+ /**
60
+ * @deprecated use string values
61
+ */
62
+ var TuiStepState;
63
+ (function (TuiStepState) {
64
+ TuiStepState["Normal"] = "normal";
65
+ TuiStepState["Error"] = "error";
66
+ TuiStepState["Pass"] = "pass";
67
+ })(TuiStepState || (TuiStepState = {}));
68
+
69
+ /**
70
+ * @deprecated use string values
71
+ */
72
+ var TuiTextAlign;
73
+ (function (TuiTextAlign) {
74
+ TuiTextAlign["Left"] = "left";
75
+ TuiTextAlign["Center"] = "center";
76
+ TuiTextAlign["Right"] = "right";
77
+ })(TuiTextAlign || (TuiTextAlign = {}));
78
+
1
79
  /**
2
80
  * Generated bundle index. Do not edit.
3
81
  */
82
+
83
+ export { TuiBorders, TuiDropdownPosition, TuiFileState, TuiMarkerIconMode, TuiStatus, TuiStepState, TuiTextAlign };
4
84
  //# sourceMappingURL=taiga-ui-kit-enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-enums.js","sources":["ng://@taiga-ui/kit/enums/taiga-ui-kit-enums.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;"}
1
+ {"version":3,"file":"taiga-ui-kit-enums.js","sources":["ng://@taiga-ui/kit/enums/borders.ts","ng://@taiga-ui/kit/enums/dropdown-position.ts","ng://@taiga-ui/kit/enums/file-state.ts","ng://@taiga-ui/kit/enums/marker-icon-mode.ts","ng://@taiga-ui/kit/enums/status.ts","ng://@taiga-ui/kit/enums/step-state.ts","ng://@taiga-ui/kit/enums/text-align.ts","ng://@taiga-ui/kit/enums/taiga-ui-kit-enums.ts"],"sourcesContent":["/**\n * @deprecated use string values\n */\nexport const enum TuiBorders {\n All = 'all',\n TopBottom = 'top-bottom',\n}\n","/**\n * @deprecated use string values\n */\nexport const enum TuiDropdownPosition {\n Selection = 'selection',\n Word = 'word',\n Tag = 'tag',\n}\n","/**\n * @internal\n */\nexport const enum TuiFileState {\n Error = 'error',\n Deleted = 'deleted',\n Loading = 'loading',\n Normal = 'normal',\n}\n","/**\n * @deprecated use join type {@link TuiMarkerIconModeT}\n */\nexport const enum TuiMarkerIconMode {\n Link = 'link',\n Primary = 'primary',\n Warning = 'warning',\n White = 'white',\n Secondary = 'secondary',\n Success = 'success',\n Error = 'error',\n OnDark = 'onDark',\n}\n","/**\n * @deprecated use join type {@link TuiStatusT}\n */\nexport const enum TuiStatus {\n Default = 'default',\n Primary = 'primary',\n Custom = 'custom',\n Success = 'success',\n Error = 'error',\n Warning = 'warning',\n}\n","/**\n * @deprecated use string values\n */\nexport const enum TuiStepState {\n Normal = 'normal',\n Error = 'error',\n Pass = 'pass',\n}\n","/**\n * @deprecated use string values\n */\nexport const enum TuiTextAlign {\n Left = 'left',\n Center = 'center',\n Right = 'right',\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;IAGkB;AAAlB,WAAkB,UAAU;IACxB,yBAAW,CAAA;IACX,sCAAwB,CAAA;AAC5B,CAAC,EAHiB,UAAU,KAAV,UAAU;;ACH5B;;;IAGkB;AAAlB,WAAkB,mBAAmB;IACjC,8CAAuB,CAAA;IACvB,oCAAa,CAAA;IACb,kCAAW,CAAA;AACf,CAAC,EAJiB,mBAAmB,KAAnB,mBAAmB;;ACHrC;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;AACrB,CAAC,EALiB,YAAY,KAAZ,YAAY;;ACH9B;;;IAGkB;AAAlB,WAAkB,iBAAiB;IAC/B,kCAAa,CAAA;IACb,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,oCAAe,CAAA;IACf,sCAAiB,CAAA;AACrB,CAAC,EATiB,iBAAiB,KAAjB,iBAAiB;;ACHnC;;;IAGkB;AAAlB,WAAkB,SAAS;IACvB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,gCAAmB,CAAA;AACvB,CAAC,EAPiB,SAAS,KAAT,SAAS;;ACH3B;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,6BAAa,CAAA;AACjB,CAAC,EAJiB,YAAY,KAAZ,YAAY;;ACH9B;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,+BAAe,CAAA;AACnB,CAAC,EAJiB,YAAY,KAAZ,YAAY;;ACH9B;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-stringify-content.js","sources":["ng://@taiga-ui/kit/pipes/stringify-content/stringify-content.pipe.ts","ng://@taiga-ui/kit/pipes/stringify-content/stringify-content.module.ts","ng://@taiga-ui/kit/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {TuiValueContentContext} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n@Pipe({\n name: 'tuiStringifyContent',\n})\nexport class TuiStringifyContentPipe implements PipeTransform {\n transform<T>(\n stringify: TuiStringHandler<T>,\n ): PolymorpheusContent<TuiValueContentContext<T>> {\n return ({$implicit}) => stringify($implicit);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiStringifyContentPipe} from './stringify-content.pipe';\n\n@NgModule({\n declarations: [TuiStringifyContentPipe],\n exports: [TuiStringifyContentPipe],\n})\nexport class TuiStringifyContentPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAQA;KAMC;IALG,2CAAS,GAAT,UACI,SAA8B;QAE9B,OAAO,UAAC,EAAW;gBAAV,wBAAS;YAAM,OAAA,SAAS,CAAC,SAAS,CAAC;SAAA,CAAC;KAChD;IALQ,uBAAuB;QAHnC,IAAI,CAAC;YACF,IAAI,EAAE,qBAAqB;SAC9B,CAAC;OACW,uBAAuB,CAMnC;IAAD,8BAAC;CAND;;;ICDA;KAA6C;IAAhC,6BAA6B;QAJzC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,6BAA6B,CAAG;IAAD,oCAAC;CAA7C;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes-stringify-content.js","sources":["ng://@taiga-ui/kit/pipes/stringify-content/stringify-content.pipe.ts","ng://@taiga-ui/kit/pipes/stringify-content/stringify-content.module.ts","ng://@taiga-ui/kit/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {TuiValueContentContext} from '@taiga-ui/core';\n\n@Pipe({\n name: 'tuiStringifyContent',\n})\nexport class TuiStringifyContentPipe implements PipeTransform {\n transform<T>(\n stringify: TuiStringHandler<T>,\n ): TuiStringHandler<TuiValueContentContext<T>> {\n return ({$implicit}) => stringify($implicit);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiStringifyContentPipe} from './stringify-content.pipe';\n\n@NgModule({\n declarations: [TuiStringifyContentPipe],\n exports: [TuiStringifyContentPipe],\n})\nexport class TuiStringifyContentPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAOA;KAMC;IALG,2CAAS,GAAT,UACI,SAA8B;QAE9B,OAAO,UAAC,EAAW;gBAAV,wBAAS;YAAM,OAAA,SAAS,CAAC,SAAS,CAAC;SAAA,CAAC;KAChD;IALQ,uBAAuB;QAHnC,IAAI,CAAC;YACF,IAAI,EAAE,qBAAqB;SAC9B,CAAC;OACW,uBAAuB,CAMnC;IAAD,8BAAC;CAND;;;ICAA;KAA6C;IAAhC,6BAA6B;QAJzC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,6BAA6B,CAAG;IAAD,oCAAC;CAA7C;;ACPA;;;;;;"}
@@ -0,0 +1,35 @@
1
+ import { __decorate } from 'tslib';
2
+ import { Pipe, NgModule } from '@angular/core';
3
+
4
+ var TuiStringifyPipe = /** @class */ (function () {
5
+ function TuiStringifyPipe() {
6
+ }
7
+ TuiStringifyPipe.prototype.transform = function (key) {
8
+ return function (value) { var _a; return String((_a = value[key]) !== null && _a !== void 0 ? _a : ''); };
9
+ };
10
+ TuiStringifyPipe = __decorate([
11
+ Pipe({
12
+ name: 'tuiStringify',
13
+ })
14
+ ], TuiStringifyPipe);
15
+ return TuiStringifyPipe;
16
+ }());
17
+
18
+ var TuiStringifyPipeModule = /** @class */ (function () {
19
+ function TuiStringifyPipeModule() {
20
+ }
21
+ TuiStringifyPipeModule = __decorate([
22
+ NgModule({
23
+ declarations: [TuiStringifyPipe],
24
+ exports: [TuiStringifyPipe],
25
+ })
26
+ ], TuiStringifyPipeModule);
27
+ return TuiStringifyPipeModule;
28
+ }());
29
+
30
+ /**
31
+ * Generated bundle index. Do not edit.
32
+ */
33
+
34
+ export { TuiStringifyPipe, TuiStringifyPipeModule };
35
+ //# sourceMappingURL=taiga-ui-kit-pipes-stringify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-kit-pipes-stringify.js","sources":["ng://@taiga-ui/kit/pipes/stringify/stringify.pipe.ts","ng://@taiga-ui/kit/pipes/stringify/stringify.module.ts","ng://@taiga-ui/kit/pipes/stringify/taiga-ui-kit-pipes-stringify.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\n\n@Pipe({\n name: 'tuiStringify',\n})\nexport class TuiStringifyPipe implements PipeTransform {\n public transform<K extends string>(\n key: K,\n ): TuiStringHandler<Readonly<Record<K, unknown> & Record<any, any>>> {\n return value => String(value[key] ?? '');\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiStringifyPipe} from './stringify.pipe';\n\n@NgModule({\n declarations: [TuiStringifyPipe],\n exports: [TuiStringifyPipe],\n})\nexport class TuiStringifyPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAMA;KAMC;IALU,oCAAS,GAAhB,UACI,GAAM;QAEN,OAAO,UAAA,KAAK,YAAI,OAAA,MAAM,OAAC,KAAK,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC,CAAA,EAAA,CAAC;KAC5C;IALQ,gBAAgB;QAH5B,IAAI,CAAC;YACF,IAAI,EAAE,cAAc;SACvB,CAAC;OACW,gBAAgB,CAM5B;IAAD,uBAAC;CAND;;;ICCA;KAAsC;IAAzB,sBAAsB;QAJlC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC;OACW,sBAAsB,CAAG;IAAD,6BAAC;CAAtC;;ACPA;;;;;;"}
@@ -1,4 +1,5 @@
1
1
  export * from '@taiga-ui/kit/pipes/filter-by-input';
2
+ export * from '@taiga-ui/kit/pipes/stringify';
2
3
  export * from '@taiga-ui/kit/pipes/stringify-content';
3
4
 
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes.js","sources":["ng://@taiga-ui/kit/pipes/taiga-ui-kit-pipes.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes.js","sources":["ng://@taiga-ui/kit/pipes/taiga-ui-kit-pipes.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/kit",
3
- "version": "2.16.2",
3
+ "version": "2.19.0",
4
4
  "description": "Taiga UI Angular main components kit",
5
5
  "keywords": [
6
6
  "angular",
@@ -19,9 +19,9 @@
19
19
  "@angular/router": ">=9.0.0",
20
20
  "@ng-web-apis/common": ">=1.11.0",
21
21
  "@tinkoff/ng-polymorpheus": "3.1.8",
22
- "@taiga-ui/cdk": "2.16.2",
23
- "@taiga-ui/core": "2.16.2",
24
- "@taiga-ui/i18n": "2.16.2",
22
+ "@taiga-ui/cdk": "2.19.0",
23
+ "@taiga-ui/core": "2.19.0",
24
+ "@taiga-ui/i18n": "2.19.0",
25
25
  "rxjs": ">=6.0.0"
26
26
  },
27
27
  "dependencies": {
package/pipes/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from '@taiga-ui/kit/pipes/filter-by-input';
2
+ export * from '@taiga-ui/kit/pipes/stringify';
2
3
  export * from '@taiga-ui/kit/pipes/stringify-content';
@@ -0,0 +1,2 @@
1
+ export * from './stringify.module';
2
+ export * from './stringify.pipe';
@@ -0,0 +1,13 @@
1
+ {
2
+ "main": "../../bundles/taiga-ui-kit-pipes-stringify.umd.js",
3
+ "module": "../../fesm5/taiga-ui-kit-pipes-stringify.js",
4
+ "es2015": "../../fesm2015/taiga-ui-kit-pipes-stringify.js",
5
+ "esm5": "../../esm5/pipes/stringify/taiga-ui-kit-pipes-stringify.js",
6
+ "esm2015": "../../esm2015/pipes/stringify/taiga-ui-kit-pipes-stringify.js",
7
+ "fesm5": "../../fesm5/taiga-ui-kit-pipes-stringify.js",
8
+ "fesm2015": "../../fesm2015/taiga-ui-kit-pipes-stringify.js",
9
+ "typings": "taiga-ui-kit-pipes-stringify.d.ts",
10
+ "metadata": "taiga-ui-kit-pipes-stringify.metadata.json",
11
+ "sideEffects": false,
12
+ "name": "@taiga-ui/kit/pipes/stringify"
13
+ }
@@ -0,0 +1,2 @@
1
+ export declare class TuiStringifyPipeModule {
2
+ }
@@ -0,0 +1,5 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TuiStringHandler } from '@taiga-ui/cdk';
3
+ export declare class TuiStringifyPipe implements PipeTransform {
4
+ transform<K extends string>(key: K): TuiStringHandler<Readonly<Record<K, unknown> & Record<any, any>>>;
5
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
@@ -0,0 +1 @@
1
+ {"__symbolic":"module","version":4,"metadata":{"TuiStringifyPipeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TuiStringifyPipe"}],"exports":[{"__symbolic":"reference","name":"TuiStringifyPipe"}]}]}],"members":{}},"TuiStringifyPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":3,"character":1},"arguments":[{"name":"tuiStringify"}]}],"members":{"transform":[{"__symbolic":"method"}]}}},"origins":{"TuiStringifyPipeModule":"./stringify.module","TuiStringifyPipe":"./stringify.pipe"},"importAs":"@taiga-ui/kit/pipes/stringify"}
@@ -1,7 +1,6 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { TuiStringHandler } from '@taiga-ui/cdk';
3
3
  import { TuiValueContentContext } from '@taiga-ui/core';
4
- import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
5
4
  export declare class TuiStringifyContentPipe implements PipeTransform {
6
- transform<T>(stringify: TuiStringHandler<T>): PolymorpheusContent<TuiValueContentContext<T>>;
5
+ transform<T>(stringify: TuiStringHandler<T>): TuiStringHandler<TuiValueContentContext<T>>;
7
6
  }
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"TuiStringifyContentPipeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TuiStringifyContentPipe"}],"exports":[{"__symbolic":"reference","name":"TuiStringifyContentPipe"}]}]}],"members":{}},"TuiStringifyContentPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":5,"character":1},"arguments":[{"name":"tuiStringifyContent"}]}],"members":{"transform":[{"__symbolic":"method"}]}}},"origins":{"TuiStringifyContentPipeModule":"./stringify-content.module","TuiStringifyContentPipe":"./stringify-content.pipe"},"importAs":"@taiga-ui/kit/pipes/stringify-content"}
1
+ {"__symbolic":"module","version":4,"metadata":{"TuiStringifyContentPipeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TuiStringifyContentPipe"}],"exports":[{"__symbolic":"reference","name":"TuiStringifyContentPipe"}]}]}],"members":{}},"TuiStringifyContentPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":4,"character":1},"arguments":[{"name":"tuiStringifyContent"}]}],"members":{"transform":[{"__symbolic":"method"}]}}},"origins":{"TuiStringifyContentPipeModule":"./stringify-content.module","TuiStringifyContentPipe":"./stringify-content.pipe"},"importAs":"@taiga-ui/kit/pipes/stringify-content"}
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"exports":[{"from":"@taiga-ui/kit/pipes/filter-by-input"},{"from":"@taiga-ui/kit/pipes/stringify-content"}],"metadata":{},"origins":{},"importAs":"@taiga-ui/kit/pipes"}
1
+ {"__symbolic":"module","version":4,"exports":[{"from":"@taiga-ui/kit/pipes/filter-by-input"},{"from":"@taiga-ui/kit/pipes/stringify"},{"from":"@taiga-ui/kit/pipes/stringify-content"}],"metadata":{},"origins":{},"importAs":"@taiga-ui/kit/pipes"}