@taiga-ui/cdk 4.52.0-canary.ece97e9 → 4.52.0-canary.efbd0d4

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 (266) hide show
  1. package/README.md +1 -1
  2. package/classes/control.d.ts +4 -6
  3. package/constants/used-icons.d.ts +2 -2
  4. package/constants/version.d.ts +1 -1
  5. package/constants/version.js +1 -1
  6. package/date-time/date-fillers.d.ts +5 -5
  7. package/date-time/day-range.d.ts +1 -1
  8. package/date-time/day.d.ts +3 -3
  9. package/date-time/types.d.ts +1 -7
  10. package/directives/active-zone/active-zone.directive.d.ts +0 -2
  11. package/directives/animated/animated.directive.d.ts +1 -3
  12. package/directives/animated/index.d.ts +0 -1
  13. package/directives/auto-focus/autofocus.directive.d.ts +2 -3
  14. package/directives/copy-processor/copy-processor.directive.d.ts +2 -2
  15. package/directives/hovered/hovered.directive.d.ts +1 -2
  16. package/directives/index.d.ts +0 -5
  17. package/directives/media/media.directive.d.ts +8 -12
  18. package/directives/native-validator/native-validator.directive.d.ts +2 -2
  19. package/directives/obscured/obscured.directive.d.ts +4 -4
  20. package/directives/pan/pan.directive.d.ts +1 -2
  21. package/directives/platform/platform.directive.d.ts +2 -2
  22. package/directives/resizer/resizer.directive.d.ts +3 -4
  23. package/directives/swipe/swipe.directive.d.ts +1 -2
  24. package/directives/transitioned/transitioned.directive.d.ts +1 -0
  25. package/directives/value-changes/value-changes.directive.d.ts +2 -2
  26. package/fesm2022/taiga-ui-cdk-classes.mjs +8 -20
  27. package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-cdk-constants.mjs +14 -3
  29. package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-cdk-date-time.mjs +23 -24
  31. package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +12 -17
  33. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-cdk-directives-animated.mjs +23 -72
  35. package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +12 -14
  37. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-cdk-directives-control.mjs +3 -4
  39. package/fesm2022/taiga-ui-cdk-directives-control.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +8 -11
  41. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-cdk-directives-element.mjs +4 -5
  43. package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +5 -8
  45. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +4 -7
  47. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +3 -4
  49. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +11 -14
  51. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-cdk-directives-item.mjs +3 -4
  53. package/fesm2022/taiga-ui-cdk-directives-item.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-cdk-directives-media.mjs +33 -58
  55. package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +9 -11
  57. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +14 -26
  59. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-cdk-directives-pan.mjs +10 -12
  61. package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-cdk-directives-platform.mjs +9 -12
  63. package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +19 -23
  65. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +10 -12
  67. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +8 -15
  69. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-cdk-directives-validator.mjs +4 -5
  71. package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +8 -9
  73. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +5 -5
  75. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +3 -3
  77. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +8 -8
  78. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-cdk-directives.mjs +0 -5
  80. package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-cdk-observables.mjs +2 -24
  82. package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +3 -4
  84. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +3 -4
  86. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +5 -5
  88. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-cdk-pipes.mjs +0 -6
  90. package/fesm2022/taiga-ui-cdk-pipes.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-cdk-portals.mjs +16 -16
  92. package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-cdk-tokens.mjs +14 -47
  94. package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-cdk-utils-browser.mjs +2 -3
  96. package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-cdk-utils-di.mjs +45 -4
  98. package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-cdk-utils-dom.mjs +2 -74
  100. package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-cdk-utils-focus.mjs +22 -38
  102. package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-cdk-utils-math.mjs +1 -12
  104. package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +45 -119
  106. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-cdk-utils.mjs +0 -1
  108. package/fesm2022/taiga-ui-cdk-utils.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-cdk.mjs +0 -1
  110. package/fesm2022/taiga-ui-cdk.mjs.map +1 -1
  111. package/index.d.ts +0 -1
  112. package/observables/index.d.ts +0 -2
  113. package/package.json +19 -69
  114. package/pipes/index.d.ts +0 -6
  115. package/pipes/obfuscate/obfuscate.options.d.ts +1 -1
  116. package/portals/portal.d.ts +1 -2
  117. package/schematics/index.d.ts +1 -0
  118. package/schematics/index.js +1 -0
  119. package/schematics/index.js.map +1 -1
  120. package/schematics/ng-add/constants/versions.d.ts +1 -1
  121. package/schematics/ng-add/steps/add-taiga-modules.js +0 -15
  122. package/schematics/ng-add/steps/add-taiga-modules.js.map +1 -1
  123. package/schematics/ng-update/interfaces/html-comment.d.ts +1 -1
  124. package/schematics/ng-update/interfaces/removable-input.d.ts +1 -1
  125. package/schematics/ng-update/interfaces/replacement-attribute-to-directive.d.ts +1 -1
  126. package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +1 -1
  127. package/schematics/ng-update/interfaces/replacement-attribute.d.ts +1 -1
  128. package/schematics/ng-update/interfaces/replacement-tag.d.ts +1 -1
  129. package/schematics/ng-update/v4/migrate-css-vars/palette.d.ts +4 -4
  130. package/schematics/ng-update/v4/migrate-css-vars/palette.js +4 -4
  131. package/schematics/ng-update/v4/migrate-css-vars/palette.js.map +1 -1
  132. package/schematics/ng-update/v4/steps/migrate-templates.d.ts +2 -2
  133. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +13 -13
  134. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js.map +1 -1
  135. package/schematics/ng-update/v5/index.js +2 -0
  136. package/schematics/ng-update/v5/index.js.map +1 -1
  137. package/schematics/ng-update/v5/steps/constants/attrs-to-replace.d.ts +2 -0
  138. package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js +22 -0
  139. package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js.map +1 -0
  140. package/schematics/ng-update/v5/steps/constants/functions.js +1 -6
  141. package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -1
  142. package/schematics/ng-update/v5/steps/migrate-css-variables.d.ts +3 -0
  143. package/schematics/ng-update/v5/steps/migrate-css-variables.js +30 -0
  144. package/schematics/ng-update/v5/steps/migrate-css-variables.js.map +1 -0
  145. package/schematics/ng-update/v5/steps/migrate-templates.d.ts +2 -2
  146. package/schematics/ng-update/v5/steps/migrate-templates.js +6 -0
  147. package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -1
  148. package/schematics/ng-update/v5/steps/templates/migrate-avatar.d.ts +8 -0
  149. package/schematics/ng-update/v5/steps/templates/migrate-avatar.js +111 -0
  150. package/schematics/ng-update/v5/steps/templates/migrate-avatar.js.map +1 -0
  151. package/schematics/ng-update/v5/steps/templates/migrate-notification.d.ts +8 -0
  152. package/schematics/ng-update/v5/steps/templates/migrate-notification.js +45 -0
  153. package/schematics/ng-update/v5/steps/templates/migrate-notification.js.map +1 -0
  154. package/schematics/utils/run-migration.d.ts +2 -2
  155. package/schematics/utils/run-migration.js +4 -3
  156. package/schematics/utils/run-migration.js.map +1 -1
  157. package/schematics/utils/templates/elements.d.ts +4 -1
  158. package/schematics/utils/templates/elements.js.map +1 -1
  159. package/schematics/utils/templates/ng-component-input-manipulations.d.ts +3 -3
  160. package/tokens/environment.d.ts +0 -13
  161. package/tokens/index.d.ts +0 -2
  162. package/tokens/removed-element.d.ts +0 -3
  163. package/types/index.d.ts +0 -2
  164. package/utils/di/index.d.ts +3 -0
  165. package/utils/dom/index.d.ts +0 -6
  166. package/utils/focus/get-closest-focusable.d.ts +1 -6
  167. package/utils/focus/index.d.ts +4 -6
  168. package/utils/focus/{is-native-keyboard-focusable.d.ts → is-focusable.d.ts} +1 -1
  169. package/utils/index.d.ts +0 -1
  170. package/utils/math/index.d.ts +0 -2
  171. package/utils/miscellaneous/generate-id.d.ts +1 -0
  172. package/utils/miscellaneous/index.d.ts +2 -10
  173. package/utils/miscellaneous/sanitize-text.d.ts +23 -0
  174. package/directives/animated/animated-parent.directive.d.ts +0 -10
  175. package/directives/click-outside/click-outside.directive.d.ts +0 -14
  176. package/directives/click-outside/index.d.ts +0 -1
  177. package/directives/droppable/droppable.directive.d.ts +0 -8
  178. package/directives/droppable/index.d.ts +0 -1
  179. package/directives/let/index.d.ts +0 -2
  180. package/directives/let/let-context.d.ts +0 -11
  181. package/directives/let/let.directive.d.ts +0 -18
  182. package/directives/popover/index.d.ts +0 -1
  183. package/directives/popover/popover.directive.d.ts +0 -14
  184. package/directives/repeat-times/index.d.ts +0 -1
  185. package/directives/repeat-times/repeat-times.directive.d.ts +0 -22
  186. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +0 -39
  187. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +0 -1
  188. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +0 -37
  189. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +0 -1
  190. package/fesm2022/taiga-ui-cdk-directives-let.mjs +0 -53
  191. package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +0 -1
  192. package/fesm2022/taiga-ui-cdk-directives-popover.mjs +0 -32
  193. package/fesm2022/taiga-ui-cdk-directives-popover.mjs.map +0 -1
  194. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +0 -61
  195. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +0 -1
  196. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs +0 -33
  197. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs.map +0 -1
  198. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +0 -25
  199. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +0 -1
  200. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +0 -24
  201. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +0 -1
  202. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +0 -25
  203. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +0 -1
  204. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +0 -26
  205. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +0 -1
  206. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +0 -24
  207. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +0 -1
  208. package/fesm2022/taiga-ui-cdk-services.mjs +0 -151
  209. package/fesm2022/taiga-ui-cdk-services.mjs.map +0 -1
  210. package/fesm2022/taiga-ui-cdk-utils-color.mjs +0 -195
  211. package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +0 -1
  212. package/observables/must-be-present.d.ts +0 -5
  213. package/observables/query-list-observable.d.ts +0 -6
  214. package/pipes/animation/animation.pipe.d.ts +0 -13
  215. package/pipes/animation/index.d.ts +0 -1
  216. package/pipes/is-present/index.d.ts +0 -1
  217. package/pipes/is-present/is-present.pipe.d.ts +0 -7
  218. package/pipes/keys/index.d.ts +0 -1
  219. package/pipes/keys/keys.pipe.d.ts +0 -7
  220. package/pipes/repeat-times/index.d.ts +0 -7
  221. package/pipes/replace/index.d.ts +0 -1
  222. package/pipes/replace/replace.pipe.d.ts +0 -7
  223. package/pipes/to-array/index.d.ts +0 -1
  224. package/pipes/to-array/to-array.pipe.d.ts +0 -7
  225. package/services/id.service.d.ts +0 -8
  226. package/services/index.d.ts +0 -4
  227. package/services/popover.service.d.ts +0 -25
  228. package/services/scroll.service.d.ts +0 -13
  229. package/services/theme-color.service.d.ts +0 -18
  230. package/tokens/base-href.d.ts +0 -2
  231. package/tokens/range.d.ts +0 -5
  232. package/types/safe-html.d.ts +0 -2
  233. package/types/values-of.d.ts +0 -1
  234. package/utils/color/get-gradient-data.d.ts +0 -1
  235. package/utils/color/hex-to-rgb.d.ts +0 -1
  236. package/utils/color/hex-to-rgba.d.ts +0 -3
  237. package/utils/color/hsv-to-rgb.d.ts +0 -4
  238. package/utils/color/index.d.ts +0 -9
  239. package/utils/color/parse-color.d.ts +0 -1
  240. package/utils/color/parse-gradient.d.ts +0 -10
  241. package/utils/color/rgb-to-hex.d.ts +0 -1
  242. package/utils/color/rgb-to-hsv.d.ts +0 -1
  243. package/utils/color/rgba-to-hex.d.ts +0 -2
  244. package/utils/dom/get-element-point.d.ts +0 -2
  245. package/utils/dom/is-current-target.d.ts +0 -1
  246. package/utils/dom/is-inside-iframe.d.ts +0 -4
  247. package/utils/dom/is-node-in.d.ts +0 -8
  248. package/utils/dom/retarget-boundary-crossing.d.ts +0 -1
  249. package/utils/dom/value-binding.d.ts +0 -3
  250. package/utils/focus/blur-native-focused.d.ts +0 -4
  251. package/utils/focus/is-native-mouse-focusable.d.ts +0 -1
  252. package/utils/math/to-integer.d.ts +0 -1
  253. package/utils/math/to-radians.d.ts +0 -4
  254. package/utils/miscellaneous/change-date-separator.d.ts +0 -1
  255. package/utils/miscellaneous/create-token.d.ts +0 -9
  256. package/utils/miscellaneous/flat-length.d.ts +0 -6
  257. package/utils/miscellaneous/get-original-array-from-query-list.d.ts +0 -8
  258. package/utils/miscellaneous/is-falsy.d.ts +0 -1
  259. package/utils/miscellaneous/is-valid-url.d.ts +0 -4
  260. package/utils/miscellaneous/uniq-by.d.ts +0 -1
  261. /package/utils/{miscellaneous → di}/directive-binding.d.ts +0 -0
  262. /package/utils/{miscellaneous → di}/provide-options.d.ts +0 -0
  263. /package/utils/{miscellaneous → di}/provide.d.ts +0 -0
  264. /package/utils/focus/{get-native-focused.d.ts → get-focused.d.ts} +0 -0
  265. /package/utils/focus/{is-native-focused-in.d.ts → is-focused-in.d.ts} +0 -0
  266. /package/utils/focus/{is-native-focused.d.ts → is-focused.d.ts} +0 -0
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.migrateTuiNotification = migrateTuiNotification;
4
+ const elements_1 = require("../../../../utils/templates/elements");
5
+ const template_resource_1 = require("../../../../utils/templates/template-resource");
6
+ const replace_tag_1 = require("../../../utils/templates/replace-tag");
7
+ const NOTIFICATION_ATTRIBUTE = [
8
+ 'tuinotification',
9
+ '[tuinotification]',
10
+ '[(tuinotification)]',
11
+ ];
12
+ function migrateTuiNotification({ resource, recorder, fileSystem, }) {
13
+ const template = (0, template_resource_1.getTemplateFromTemplateResource)(resource, fileSystem);
14
+ const templateOffset = (0, template_resource_1.getTemplateOffset)(resource);
15
+ const notifications = (0, elements_1.findElementsByTagName)(template, 'tui-notification');
16
+ notifications.forEach((element) => {
17
+ const location = element.sourceCodeLocation;
18
+ const startTag = location === null || location === void 0 ? void 0 : location.startTag;
19
+ if (!startTag) {
20
+ return;
21
+ }
22
+ const attrsToAdd = element.attrs.some(({ name }) => NOTIFICATION_ATTRIBUTE.includes(name))
23
+ ? []
24
+ : ['tuiNotification'];
25
+ const raw = template.slice(startTag.startOffset, startTag.endOffset);
26
+ const isSelfClosing = raw.trimEnd().endsWith('/>');
27
+ if (isSelfClosing) {
28
+ const old = template.slice(startTag.startOffset, startTag.endOffset);
29
+ const attrs = element.attrs
30
+ .map((attr) => (NOTIFICATION_ATTRIBUTE.includes(attr.name) ? null : attr))
31
+ .filter(Boolean)
32
+ .map((attr) => { var _a; return `${attr === null || attr === void 0 ? void 0 : attr.name}="${(_a = attr === null || attr === void 0 ? void 0 : attr.value) !== null && _a !== void 0 ? _a : ''}"`; })
33
+ .join(' ');
34
+ const extraAttr = element.attrs.some(({ name }) => NOTIFICATION_ATTRIBUTE.includes(name))
35
+ ? ''
36
+ : ' tuiNotification';
37
+ const newTag = `<div${extraAttr}${attrs ? ` ${attrs}` : ''}></div>`;
38
+ recorder.remove(templateOffset + startTag.startOffset, old.length);
39
+ recorder.insertRight(templateOffset + startTag.startOffset, newTag);
40
+ return;
41
+ }
42
+ (0, replace_tag_1.replaceTag)(recorder, location, 'tui-notification', 'div', templateOffset, attrsToAdd);
43
+ });
44
+ }
45
+ //# sourceMappingURL=migrate-notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrate-notification.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v5/steps/templates/migrate-notification.ts"],"names":[],"mappings":";;AAiBA,wDA8DC;AA5ED,mEAA2E;AAC3E,qFAGuD;AAEvD,sEAAgE;AAEhE,MAAM,sBAAsB,GAAG;IAC3B,iBAAiB;IACjB,mBAAmB;IACnB,qBAAqB;CACxB,CAAC;AAEF,S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AAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;iBACzE,MAAM,CAAC,OAAO,CAAC;iBACf,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,WAAC,OAAA,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,KAAK,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,mCAAI,EAAE,GAAG,CAAA,EAAA,CAAC;iBACrD,IAAI,CAAC,GAAG,CAAC,CAAC;YAEf,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,CAC5C,sBAAsB,CAAC,QAAQ,CAAC,IAAI,CAAC,CACxC;gBACG,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,kBAAkB,CAAC;YAEzB,MAAM,MAAM,GAAG,OAAO,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC;YAEpE,QAAQ,CAAC,MAAM,CAAC,cAAc,GAAG,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;YACnE,QAAQ,CAAC,WAAW,CAAC,cAAc,GAAG,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;YAEpE,OAAO;QACX,CAAC;QAED,IAAA,wBAAU,EACN,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,KAAK,EACL,cAAc,EACd,UAAU,CACb,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -7,8 +7,8 @@ interface Input {
7
7
  }
8
8
  interface Output {
9
9
  component: string;
10
- template?: string;
11
- packageJson?: string;
10
+ template: string;
11
+ packageJson: string;
12
12
  }
13
13
  export declare function runMigration(options: Input): Promise<Output>;
14
14
  export {};
@@ -7,6 +7,7 @@ const testing_1 = require("@angular-devkit/schematics/testing");
7
7
  const ng_morph_1 = require("ng-morph");
8
8
  function runMigration(options) {
9
9
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
+ var _a, _b, _c;
10
11
  const { collection, component = '', template = '', packageJson = '{}', schematicName = 'updateToV5', } = options;
11
12
  const host = new testing_1.UnitTestTree(new schematics_1.HostTree());
12
13
  const runner = new testing_1.SchematicTestRunner('schematics', collection);
@@ -17,9 +18,9 @@ function runMigration(options) {
17
18
  yield runner.runSchematic(schematicName, { 'skip-logs': true }, host);
18
19
  (0, ng_morph_1.saveActiveProject)();
19
20
  return {
20
- component: host.readContent('test/app/test.ts'),
21
- template: host.readContent('test/app/test.html'),
22
- packageJson: host.readContent('package.json'),
21
+ component: (_a = host.readContent('test/app/test.ts')) !== null && _a !== void 0 ? _a : '',
22
+ template: (_b = host.readContent('test/app/test.html')) !== null && _b !== void 0 ? _b : '',
23
+ packageJson: (_c = host.readContent('package.json')) !== null && _c !== void 0 ? _c : '{}',
23
24
  };
24
25
  });
25
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"run-migration.js","sourceRoot":"","sources":["../../../../projects/cdk/schematics/utils/run-migration.ts"],"names":[],"mappings":";;AAkBA,oCA2BC;;AA7CD,2DAAoD;AACpD,gEAAqF;AACrF,uCAA4E;AAgB5E,SAAsB,YAAY,CAAC,OAAc;;QAC7C,MAAM,EACF,UAAU,EACV,SAAS,GAAG,EAAE,EACd,QAAQ,GAAG,EAAE,EACb,WAAW,GAAG,IAAI,EAClB,aAAa,GAAG,YAAY,GAC/B,GAAG,OAAO,CAAC;QAEZ,MAAM,IAAI,GAAG,IAAI,sBAAY,CAAC,IAAI,qBAAQ,EAAE,CAAC,CAAC;QAC9C,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QAEjE,IAAA,2BAAgB,EAAC,IAAA,wBAAa,EAAC,IAAI,CAAC,CAAC,CAAC;QAEtC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC;QAC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M,CAAC,YAAY,CAAC,aAAa,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC,EAAE,IAAI,CAAC,CAAC;QAEpE,IAAA,4BAAiB,GAAE,CAAC;QAEpB,OAAO;YACH,SAAS,EAAE,MAAA,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,mCAAI,EAAE;YACrD,QAAQ,EAAE,MAAA,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,mCAAI,EAAE;YACtD,WAAW,EAAE,MAAA,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,mCAAI,IAAI;SACxD,CAAC;IACN,CAAC;CAAA"}
@@ -1,4 +1,6 @@
1
- import { type ChildNode, type Element } from 'parse5/dist/tree-adapters/default';
1
+ import { type DefaultTreeAdapterTypes } from 'parse5';
2
+ type Element = DefaultTreeAdapterTypes.Element;
3
+ type ChildNode = DefaultTreeAdapterTypes.ChildNode;
2
4
  export declare function findElementsByFn(nodes: ChildNode[], predicateFn: (el: Element) => boolean): Element[];
3
5
  export declare function findElementsInTemplateByFn(html: string, predicateFn: (el: Element) => boolean): Element[];
4
6
  export declare function findElementsByTagName(html: string, tagName: string, filterFn?: (element: Element) => boolean): Element[];
@@ -33,3 +35,4 @@ export declare function findAttributeOnElementWithAttrs(html: string, name: stri
33
35
  export declare function hasElementAttribute(element: Element, attributeName: string): boolean;
34
36
  /** Gets the start offset of the given attribute from a Parse5 element. */
35
37
  export declare function getStartOffsetOfAttribute(element: Element, attributeName: string): number;
38
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"elements.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/utils/templates/elements.ts"],"names":[],"mappings":";;AAGA,4CAuBC;AAED,gEAYC;AAED,sDASC;AAED,wDAEC;AAMD,8DAUC;AAMD,8DAOC;AAOD,wEAkBC;AAMD,sEAaC;AAMD,0EAaC;AAGD,kDAOC;AAGD,8DAOC;AAvKD,mCAAqC;AAGrC,SAAgB,gBAAgB,CAC5B,KAAkB,EAClB,W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AAG,aAAa,CAAC,WAAW,EAAE,CAAC;IAEvD,OAAO,MAAA,OAAO,CAAC,KAAK,0CAAE,IAAI,CACtB,CAAC,IAAI,EAAE,EAAE,CACL,IAAI,CAAC,IAAI,KAAK,kBAAkB,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,kBAAkB,GAAG,CAClF,CAAC;AACN,CAAC;AAED,0EAA0E;AAC1E,SAAgB,yBAAyB,CACrC,OAAgB,EAChB,aAAqB;;IAErB,OAAO,CACH,CAAA,MAAA,MAAA,MAAA,OAAO,CAAC,kBAAkB,0CAAE,KAAK,0CAAG,aAAa,CAAC,WAAW,EAAE,CAAC,0CAAE,WAAW,KAAI,CAAC,CACrF,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"elements.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/utils/templates/elements.ts"],"names":[],"mappings":";;AAMA,4CAuBC;AAED,gEAYC;AAED,sDASC;AAED,wDAEC;AAMD,8DAUC;AAMD,8DAOC;AAOD,wEAkBC;AAMD,sEAaC;AAMD,0EAaC;AAGD,kDAOC;AAGD,8DAOC;AA1KD,mCAAmE;AAMnE,SAAgB,gBAAgB,CAC5B,KAAkB,EAClB,WAAqC;IAErC,MAAM,QAAQ,GAAc,EAAE,CAAC;IAE/B,MAAM,UAAU,GAAG,CAAC,KAAkB,EAAQ,EAAE;QAC5C,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAChB,MAAM,IAAI,GAAG,CAAY,CAAC;YAE1B,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;gBAClB,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAChC,CAAC;YAED,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;gBACpB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,UAAU,CAAC,KAAK,CAAC,CAAC;IAElB,OAAO,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ng-update/interfaces/template-resou
29
29
  export declare function replaceInputProperty({ templateResource, fileSystem, componentSelector, from, to, newValue, filterFn, }: {
30
30
  componentSelector: string[] | string;
31
31
  fileSystem: DevkitFileSystem;
32
- filterFn?: (element: Element) => boolean;
32
+ filterFn?(element: Element): boolean;
33
33
  from: string;
34
34
  newValue?: string;
35
35
  templateResource: TemplateResource;
@@ -59,7 +59,7 @@ export declare function replaceInputPropertyByDirective({ templateResource, file
59
59
  name: string;
60
60
  };
61
61
  fileSystem: DevkitFileSystem;
62
- filterFn?: (element: Element) => boolean;
62
+ filterFn?(element: Element): boolean;
63
63
  inputProperty: string;
64
64
  templateResource: TemplateResource;
65
65
  }): void;
@@ -71,7 +71,7 @@ export declare function replaceInputPropertyByDirective({ templateResource, file
71
71
  export declare function removeInputProperty({ templateResource, fileSystem, componentSelector, inputProperty, filterFn, }: {
72
72
  componentSelector: string;
73
73
  fileSystem: DevkitFileSystem;
74
- filterFn?: (element: Element) => boolean;
74
+ filterFn?(element: Element): boolean;
75
75
  inputProperty: string;
76
76
  templateResource: TemplateResource;
77
77
  }): void;
@@ -10,19 +10,6 @@ export declare const TUI_IS_ANDROID: InjectionToken<boolean>;
10
10
  export declare const TUI_IS_WEBKIT: InjectionToken<boolean>;
11
11
  export declare const TUI_PLATFORM: InjectionToken<"android" | "ios" | "web">;
12
12
  export declare const TUI_IS_TOUCH: InjectionToken<import("@angular/core").Signal<boolean>>;
13
- /**
14
- * @deprecated: use only {@link TUI_IS_E2E}
15
- * Detect if app is running under Cypress
16
- * {@link https://docs.cypress.io/faq/questions/using-cypress-faq#Is-there-any-way-to-detect-if-my-app-is-running-under-Cypress Cypress docs}
17
- * TODO: remove in v5
18
- */
19
- export declare const TUI_IS_CYPRESS: InjectionToken<boolean>;
20
- /**
21
- * @deprecated: use only {@link TUI_IS_E2E}
22
- * Manually provide `true` when running tests in Playwright
23
- * TODO: remove in v5
24
- */
25
- export declare const TUI_IS_PLAYWRIGHT: InjectionToken<boolean>;
26
13
  /**
27
14
  * Detect if app is running under any of test frameworks
28
15
  */
package/tokens/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  export * from './active-element';
2
- export * from './base-href';
3
2
  export * from './environment';
4
3
  export * from './fallback-value';
5
- export * from './range';
6
4
  export * from './removed-element';
7
5
  export * from './window-size';
@@ -1,5 +1,2 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- /**
3
- * Element currently being removed by AnimationEngine
4
- */
5
2
  export declare const TUI_REMOVED_ELEMENT: InjectionToken<import("rxjs").Observable<Element | null>>;
package/types/index.d.ts CHANGED
@@ -4,5 +4,3 @@ export type * from './loose-union';
4
4
  export type * from './mapper';
5
5
  export type * from './matcher';
6
6
  export type * from './rounding';
7
- export type * from './safe-html';
8
- export type * from './values-of';
@@ -1 +1,4 @@
1
1
  export * from './create-options';
2
+ export * from './directive-binding';
3
+ export * from './provide';
4
+ export * from './provide-options';
@@ -6,14 +6,8 @@ export * from './get-clipboard-data-text';
6
6
  export * from './get-document-or-shadow-root';
7
7
  export * from './get-element-obscurers';
8
8
  export * from './get-element-offset';
9
- export * from './get-element-point';
10
9
  export * from './get-selected-text';
11
10
  export * from './inject-element';
12
- export * from './is-current-target';
13
11
  export * from './is-element-editable';
14
- export * from './is-inside-iframe';
15
- export * from './is-node-in';
16
12
  export * from './point-to-client-rect';
17
- export * from './retarget-boundary-crossing';
18
13
  export * from './value';
19
- export * from './value-binding';
@@ -4,11 +4,6 @@ export interface TuiGetClosestFocusableOptions {
4
4
  * current HTML element
5
5
  */
6
6
  initial: Element;
7
- /**
8
- * @description:
9
- * determine if only keyboard focus is of interest
10
- */
11
- keyboard?: boolean;
12
7
  /**
13
8
  * @description:
14
9
  * should it look backwards instead (find item that will be focused with Shift + Tab)
@@ -24,4 +19,4 @@ export interface TuiGetClosestFocusableOptions {
24
19
  * @description:
25
20
  * Finds the closest element that can be focused with a keyboard or mouse in theory
26
21
  */
27
- export declare function tuiGetClosestFocusable({ initial, root, previous, keyboard, }: TuiGetClosestFocusableOptions): HTMLElement | null;
22
+ export declare function tuiGetClosestFocusable({ initial, root, previous, }: TuiGetClosestFocusableOptions): HTMLElement | null;
@@ -1,9 +1,7 @@
1
- export * from './blur-native-focused';
2
1
  export * from './focused-in';
3
2
  export * from './get-closest-focusable';
4
- export * from './get-native-focused';
5
- export * from './is-native-focused';
6
- export * from './is-native-focused-in';
7
- export * from './is-native-keyboard-focusable';
8
- export * from './is-native-mouse-focusable';
3
+ export * from './get-focused';
4
+ export * from './is-focusable';
5
+ export * from './is-focused';
6
+ export * from './is-focused-in';
9
7
  export * from './move-focus';
@@ -4,4 +4,4 @@
4
4
  * be focused, for example element can have display: none applied to it or any other
5
5
  * circumstances could prevent actual focus.
6
6
  */
7
- export declare function tuiIsKeyboardFocusable(element: Element): boolean;
7
+ export declare function tuiIsFocusable(element: Element): boolean;
package/utils/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from '@taiga-ui/cdk/utils/browser';
2
- export * from '@taiga-ui/cdk/utils/color';
3
2
  export * from '@taiga-ui/cdk/utils/di';
4
3
  export * from '@taiga-ui/cdk/utils/dom';
5
4
  export * from '@taiga-ui/cdk/utils/focus';
@@ -6,5 +6,3 @@ export * from './round';
6
6
  export * from './round-with';
7
7
  export * from './sum';
8
8
  export * from './to-int';
9
- export * from './to-integer';
10
- export * from './to-radians';
@@ -0,0 +1 @@
1
+ export declare function tuiGenerateId(): string;
@@ -1,30 +1,22 @@
1
1
  export * from './array-remove';
2
2
  export * from './array-shallow-equals';
3
3
  export * from './array-toggle';
4
- export * from './change-date-separator';
5
4
  export * from './count-filled-controls';
6
- export * from './create-token';
7
5
  export * from './default-sort';
8
- export * from './directive-binding';
9
6
  export * from './distance-between-touches';
10
7
  export * from './ease-in-out-quad';
11
- export * from './flat-length';
12
8
  export * from './font-size-watcher';
13
- export * from './get-original-array-from-query-list';
9
+ export * from './generate-id';
14
10
  export * from './is-control-empty';
15
- export * from './is-falsy';
16
11
  export * from './is-number';
17
12
  export * from './is-object';
18
13
  export * from './is-present';
19
14
  export * from './is-string';
20
- export * from './is-valid-url';
21
15
  export * from './mark-control-as-touched-and-validate';
22
16
  export * from './nullable-same';
23
17
  export * from './obfuscate';
24
- export * from './provide';
25
- export * from './provide-options';
26
18
  export * from './pure';
27
19
  export * from './px';
20
+ export * from './sanitize-text';
28
21
  export * from './set-signal';
29
- export * from './uniq-by';
30
22
  export * from './with-styles';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Sanitizes pasted or dropped text by removing invisible and control characters
3
+ * that can appear in clipboard or drag-and-drop data.
4
+ *
5
+ * Removes:
6
+ * 1. ASCII control characters (0x00–0x1F) — non-printable characters like
7
+ * NULL, BEL, BS, CR, LF, TAB, ESC, etc.
8
+ * 2. Extended control characters (0x7F–0x9F) — C1 control codes from ISO-8859-1,
9
+ * often found in legacy or malformed text encodings.
10
+ * 3. Zero-width and special Unicode characters:
11
+ * - U+200B ZERO WIDTH SPACE
12
+ * - U+200C ZERO WIDTH NON-JOINER
13
+ * - U+200D ZERO WIDTH JOINER
14
+ * - U+FEFF BYTE ORDER MARK (BOM)
15
+ *
16
+ * @param {string} value - The input string from clipboard or drag event.
17
+ * @returns {string} - A cleaned string without control or invisible characters.
18
+ *
19
+ * @example
20
+ * tuiSanitizeText('Hello\u0000World\u200B!');
21
+ * // → "HelloWorld!"
22
+ */
23
+ export declare function tuiSanitizeText(value: string): string;
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./animated.directive";
3
- import * as i2 from "@ng-web-apis/mutation-observer";
4
- export declare class TuiAnimatedParent {
5
- private readonly el;
6
- private readonly renderer;
7
- protected handle(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiAnimatedParent, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiAnimatedParent, "[tuiAnimatedParent]", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i2.WaMutationObserver; inputs: {}; outputs: { "waMutationObserver": "waMutationObserver"; }; }]>;
10
- }
@@ -1,14 +0,0 @@
1
- import { type Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated use {@link TuiActiveZone} instead
5
- */
6
- export declare class TuiClickOutside {
7
- private readonly zone;
8
- private readonly doc;
9
- private readonly el;
10
- readonly tuiClickOutside: Observable<unknown>;
11
- private isOutside;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiClickOutside, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiClickOutside, "[tuiClickOutside]", never, {}, { "tuiClickOutside": "tuiClickOutside"; }, never, never, true, never>;
14
- }
@@ -1 +0,0 @@
1
- export * from './click-outside.directive';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TuiDroppable {
3
- private readonly el;
4
- readonly tuiDroppableDropped: import("rxjs").Observable<DataTransfer>;
5
- readonly tuiDroppableDragOverChange: import("rxjs").Observable<DataTransfer | null>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiDroppable, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDroppable, "[tuiDroppableDropped], [tuiDroppableDragOverChange]", never, {}, { "tuiDroppableDropped": "tuiDroppableDropped"; "tuiDroppableDragOverChange": "tuiDroppableDragOverChange"; }, never, never, true, never>;
8
- }
@@ -1 +0,0 @@
1
- export * from './droppable.directive';
@@ -1,2 +0,0 @@
1
- export * from './let.directive';
2
- export * from './let-context';
@@ -1,11 +0,0 @@
1
- import { type TuiContext } from '@taiga-ui/cdk/types';
2
- import { type TuiLet } from './let.directive';
3
- /**
4
- * @internal
5
- */
6
- export declare class TuiLetContext<T> implements TuiContext<T> {
7
- private readonly internalDirectiveInstance;
8
- constructor(internalDirectiveInstance: TuiLet<T>);
9
- get $implicit(): T;
10
- get tuiLet(): T;
11
- }
@@ -1,18 +0,0 @@
1
- import { TuiLetContext } from './let-context';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated use @let instead
5
- */
6
- export declare class TuiLet<T> {
7
- tuiLet: T;
8
- constructor();
9
- /**
10
- * Asserts the correct type of the context for the template that `TuiLet` will render.
11
- *
12
- * The presence of this method is a signal to the Ivy template type-check compiler that the
13
- * `TuiLet` structural directive renders its template with a specific context type.
14
- */
15
- static ngTemplateContextGuard<T>(_dir: TuiLet<T>, _ctx: unknown): _ctx is TuiLetContext<T>;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiLet<any>, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiLet<any>, "[tuiLet]", never, { "tuiLet": { "alias": "tuiLet"; "required": false; }; }, {}, never, never, true, never>;
18
- }
@@ -1 +0,0 @@
1
- export * from './popover.directive';
@@ -1,14 +0,0 @@
1
- import { type OnChanges } from '@angular/core';
2
- import { type TuiPopover } from '@taiga-ui/cdk/services';
3
- import { PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
4
- import * as i0 from "@angular/core";
5
- export declare abstract class TuiPopoverDirective<T> extends PolymorpheusTemplate<TuiPopover<T, void>> implements OnChanges {
6
- private readonly service;
7
- private readonly open$;
8
- options: Partial<T>;
9
- open: boolean;
10
- readonly openChange: import("rxjs").Observable<boolean>;
11
- ngOnChanges(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiPopoverDirective<any>, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiPopoverDirective<any>, never, never, {}, {}, never, never, true, never>;
14
- }
@@ -1 +0,0 @@
1
- export * from './repeat-times.directive';
@@ -1,22 +0,0 @@
1
- import { type TuiContext } from '@taiga-ui/cdk/types';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiRepeatTimesContext implements TuiContext<number> {
4
- readonly $implicit: number;
5
- constructor($implicit: number);
6
- }
7
- /**
8
- * Directive similar to ngFor but using a number of repetitions rather than an array
9
- *
10
- * {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.
11
- * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores
12
- * {@link TuiRepeatTimesContext.$implicit index} of a template instance.
13
- */
14
- export declare class TuiRepeatTimes {
15
- private readonly vcr;
16
- private readonly template;
17
- set tuiRepeatTimesOf(count: number);
18
- private addContainers;
19
- private removeContainers;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiRepeatTimes, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiRepeatTimes, "[tuiRepeatTimes][tuiRepeatTimesOf]", never, { "tuiRepeatTimesOf": { "alias": "tuiRepeatTimesOf"; "required": false; }; }, {}, never, never, true, never>;
22
- }
@@ -1,39 +0,0 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, NgZone, Output, Directive } from '@angular/core';
4
- import { tuiZoneOptimized } from '@taiga-ui/cdk/observables';
5
- import { tuiInjectElement, tuiGetActualTarget, tuiContainsOrAfter } from '@taiga-ui/cdk/utils';
6
- import { fromEvent, map, filter } from 'rxjs';
7
-
8
- /**
9
- * @deprecated use {@link TuiActiveZone} instead
10
- */
11
- class TuiClickOutside {
12
- constructor() {
13
- this.zone = inject(NgZone);
14
- this.doc = inject(DOCUMENT);
15
- this.el = tuiInjectElement();
16
- this.tuiClickOutside = fromEvent(this.doc, 'mouseup').pipe(map(tuiGetActualTarget), filter((target) => this.isOutside(target)), tuiZoneOptimized(this.zone));
17
- }
18
- isOutside(target) {
19
- return target === this.el || !tuiContainsOrAfter(this.el, target);
20
- }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiClickOutside, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
22
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiClickOutside, isStandalone: true, selector: "[tuiClickOutside]", outputs: { tuiClickOutside: "tuiClickOutside" }, ngImport: i0 }); }
23
- }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiClickOutside, decorators: [{
25
- type: Directive,
26
- args: [{
27
- standalone: true,
28
- selector: '[tuiClickOutside]',
29
- }]
30
- }], propDecorators: { tuiClickOutside: [{
31
- type: Output
32
- }] } });
33
-
34
- /**
35
- * Generated bundle index. Do not edit.
36
- */
37
-
38
- export { TuiClickOutside };
39
- //# sourceMappingURL=taiga-ui-cdk-directives-click-outside.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-click-outside.mjs","sources":["../../../projects/cdk/directives/click-outside/click-outside.directive.ts","../../../projects/cdk/directives/click-outside/taiga-ui-cdk-directives-click-outside.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, NgZone, Output} from '@angular/core';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {\n tuiContainsOrAfter,\n tuiGetActualTarget,\n tuiInjectElement,\n} from '@taiga-ui/cdk/utils';\nimport {filter, fromEvent, map, type Observable} from 'rxjs';\n\n/**\n * @deprecated use {@link TuiActiveZone} instead\n */\n@Directive({\n standalone: true,\n selector: '[tuiClickOutside]',\n})\nexport class TuiClickOutside {\n private readonly zone = inject(NgZone);\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n\n @Output()\n public readonly tuiClickOutside: Observable<unknown> = fromEvent(\n this.doc,\n 'mouseup',\n ).pipe(\n map(tuiGetActualTarget),\n filter((target) => this.isOutside(target)),\n tuiZoneOptimized(this.zone),\n );\n\n private isOutside(target: Node): boolean {\n return target === this.el || !tuiContainsOrAfter(this.el, target);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAUA;;AAEG;MAKU,eAAe,CAAA;AAJ5B,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;AACrB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;QACtB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AAGxB,QAAA,IAAA,CAAA,eAAe,GAAwB,SAAS,CAC5D,IAAI,CAAC,GAAG,EACR,SAAS,CACZ,CAAC,IAAI,CACF,GAAG,CAAC,kBAAkB,CAAC,EACvB,MAAM,CAAC,CAAC,MAAM,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAC1C,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9B;AAKJ;AAHW,IAAA,SAAS,CAAC,MAAY,EAAA;AAC1B,QAAA,OAAO,MAAM,KAAK,IAAI,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC;;+GAhB5D,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,OAAA,EAAA,EAAA,eAAA,EAAA,iBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,mBAAmB;AAChC,iBAAA;8BAOmB,eAAe,EAAA,CAAA;sBAD9B;;;ACtBL;;AAEG;;;;"}
@@ -1,37 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Output, Directive } from '@angular/core';
3
- import { tuiTypedFromEvent, tuiPreventDefault } from '@taiga-ui/cdk/observables';
4
- import { tuiInjectElement } from '@taiga-ui/cdk/utils';
5
- import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
6
- import { map, filter, switchMap, merge, startWith, distinctUntilChanged } from 'rxjs';
7
-
8
- class TuiDroppable {
9
- constructor() {
10
- this.el = tuiInjectElement();
11
- this.tuiDroppableDropped = tuiTypedFromEvent(this.el, 'drop').pipe(tuiPreventDefault(), map((event) => event.dataTransfer), filter(tuiIsPresent));
12
- this.tuiDroppableDragOverChange = tuiTypedFromEvent(this.el, 'dragenter').pipe(switchMap(({ target, dataTransfer }) => merge(tuiTypedFromEvent(this.el, 'dragleave').pipe(filter((event) => event.target === target)), tuiTypedFromEvent(this.el, 'drop')).pipe(map(() => null), startWith(dataTransfer))), distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)));
13
- }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDroppable, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
15
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDroppable, isStandalone: true, selector: "[tuiDroppableDropped], [tuiDroppableDragOverChange]", outputs: { tuiDroppableDropped: "tuiDroppableDropped", tuiDroppableDragOverChange: "tuiDroppableDragOverChange" }, host: { listeners: { "dragover.prevent.zoneless": "0" } }, ngImport: i0 }); }
16
- }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDroppable, decorators: [{
18
- type: Directive,
19
- args: [{
20
- standalone: true,
21
- selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',
22
- host: {
23
- '(dragover.prevent.zoneless)': '0',
24
- },
25
- }]
26
- }], propDecorators: { tuiDroppableDropped: [{
27
- type: Output
28
- }], tuiDroppableDragOverChange: [{
29
- type: Output
30
- }] } });
31
-
32
- /**
33
- * Generated bundle index. Do not edit.
34
- */
35
-
36
- export { TuiDroppable };
37
- //# sourceMappingURL=taiga-ui-cdk-directives-droppable.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-droppable.mjs","sources":["../../../projects/cdk/directives/droppable/droppable.directive.ts","../../../projects/cdk/directives/droppable/taiga-ui-cdk-directives-droppable.ts"],"sourcesContent":["import {Directive, Output} from '@angular/core';\nimport {tuiPreventDefault, tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {distinctUntilChanged, filter, map, merge, startWith, switchMap} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',\n host: {\n '(dragover.prevent.zoneless)': '0',\n },\n})\nexport class TuiDroppable {\n private readonly el = tuiInjectElement();\n\n @Output()\n public readonly tuiDroppableDropped = tuiTypedFromEvent(this.el, 'drop').pipe(\n tuiPreventDefault(),\n map((event) => event.dataTransfer),\n filter(tuiIsPresent),\n );\n\n @Output()\n public readonly tuiDroppableDragOverChange = tuiTypedFromEvent(\n this.el,\n 'dragenter',\n ).pipe(\n switchMap(({target, dataTransfer}) =>\n merge(\n tuiTypedFromEvent(this.el, 'dragleave').pipe(\n filter((event) => event.target === target),\n ),\n tuiTypedFromEvent(this.el, 'drop'),\n ).pipe(\n map(() => null),\n startWith(dataTransfer),\n ),\n ),\n distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAaa,YAAY,CAAA;AAPzB,IAAA,WAAA,GAAA;QAQqB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AAGxB,QAAA,IAAA,CAAA,mBAAmB,GAAG,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,IAAI,CACzE,iBAAiB,EAAE,EACnB,GAAG,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,YAAY,CAAC,EAClC,MAAM,CAAC,YAAY,CAAC,CACvB;QAGe,IAA0B,CAAA,0BAAA,GAAG,iBAAiB,CAC1D,IAAI,CAAC,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;AAEG;;;;"}
@@ -1,53 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ViewContainerRef, TemplateRef, Input, Directive } from '@angular/core';
3
-
4
- /**
5
- * @internal
6
- */
7
- class TuiLetContext {
8
- constructor(internalDirectiveInstance) {
9
- this.internalDirectiveInstance = internalDirectiveInstance;
10
- }
11
- get $implicit() {
12
- return this.internalDirectiveInstance.tuiLet;
13
- }
14
- get tuiLet() {
15
- return this.internalDirectiveInstance.tuiLet;
16
- }
17
- }
18
-
19
- /**
20
- * @deprecated use @let instead
21
- */
22
- class TuiLet {
23
- constructor() {
24
- inject(ViewContainerRef).createEmbeddedView(inject((TemplateRef)), new TuiLetContext(this));
25
- }
26
- /**
27
- * Asserts the correct type of the context for the template that `TuiLet` will render.
28
- *
29
- * The presence of this method is a signal to the Ivy template type-check compiler that the
30
- * `TuiLet` structural directive renders its template with a specific context type.
31
- */
32
- static ngTemplateContextGuard(_dir, _ctx) {
33
- return true;
34
- }
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
36
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiLet, isStandalone: true, selector: "[tuiLet]", inputs: { tuiLet: "tuiLet" }, ngImport: i0 }); }
37
- }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLet, decorators: [{
39
- type: Directive,
40
- args: [{
41
- standalone: true,
42
- selector: '[tuiLet]',
43
- }]
44
- }], ctorParameters: () => [], propDecorators: { tuiLet: [{
45
- type: Input
46
- }] } });
47
-
48
- /**
49
- * Generated bundle index. Do not edit.
50
- */
51
-
52
- export { TuiLet, TuiLetContext };
53
- //# sourceMappingURL=taiga-ui-cdk-directives-let.mjs.map