@taiga-ui/cdk 4.0.0-rc.1 → 4.0.0-rc.10

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 (316) hide show
  1. package/classes/control.d.ts +1 -1
  2. package/classes/index.d.ts +0 -1
  3. package/constants/used-icons.d.ts +1 -1
  4. package/constants/version.d.ts +1 -1
  5. package/constants/version.js +1 -1
  6. package/directives/auto-focus/autofocus.options.d.ts +1 -1
  7. package/directives/for/for.directive.d.ts +3 -3
  8. package/directives/platform/platform.directive.d.ts +1 -1
  9. package/directives/value-changes/value-changes.directive.d.ts +3 -3
  10. package/esm2022/classes/control.mjs +2 -2
  11. package/esm2022/classes/index.mjs +1 -2
  12. package/esm2022/constants/used-icons.mjs +14 -6
  13. package/esm2022/constants/version.mjs +2 -2
  14. package/esm2022/directives/active-zone/active-zone.directive.mjs +2 -2
  15. package/esm2022/directives/auto-focus/autofocus.options.mjs +3 -3
  16. package/esm2022/directives/auto-focus/handlers/ios.handler.mjs +3 -3
  17. package/esm2022/directives/click-outside/click-outside.directive.mjs +2 -2
  18. package/esm2022/directives/copy-processor/copy-processor.directive.mjs +3 -3
  19. package/esm2022/directives/droppable/droppable.directive.mjs +3 -3
  20. package/esm2022/directives/for/for.directive.mjs +6 -6
  21. package/esm2022/directives/high-dpi/high-dpi.directive.mjs +3 -3
  22. package/esm2022/directives/hovered/hovered.service.mjs +2 -2
  23. package/esm2022/directives/obscured/obscured.directive.mjs +2 -2
  24. package/esm2022/directives/obscured/obscured.service.mjs +4 -4
  25. package/esm2022/directives/pan/pan.service.mjs +2 -2
  26. package/esm2022/directives/platform/platform.directive.mjs +6 -6
  27. package/esm2022/directives/swipe/swipe.service.mjs +2 -2
  28. package/esm2022/directives/value-changes/value-changes.directive.mjs +6 -6
  29. package/esm2022/directives/zoom/zoom.service.mjs +4 -4
  30. package/esm2022/observables/control-value.mjs +2 -2
  31. package/esm2022/observables/drag-and-drop-from.mjs +2 -2
  32. package/esm2022/observables/events.mjs +3 -3
  33. package/esm2022/observables/if-map.mjs +2 -2
  34. package/esm2022/observables/must-be-present.mjs +2 -2
  35. package/esm2022/observables/zone.mjs +4 -4
  36. package/esm2022/pipes/filter/filter.pipe.mjs +2 -2
  37. package/esm2022/services/index.mjs +2 -2
  38. package/esm2022/services/popover.service.mjs +3 -3
  39. package/esm2022/services/scroll.service.mjs +5 -5
  40. package/esm2022/services/theme-color.service.mjs +30 -0
  41. package/esm2022/tokens/active-element.mjs +5 -5
  42. package/esm2022/tokens/environment.mjs +15 -7
  43. package/esm2022/tokens/removed-element.mjs +4 -4
  44. package/esm2022/tokens/window-size.mjs +3 -3
  45. package/esm2022/utils/color/get-gradient-data.mjs +6 -0
  46. package/esm2022/utils/color/hex-to-rgb.mjs +2 -2
  47. package/esm2022/utils/color/index.mjs +3 -1
  48. package/esm2022/utils/color/parse-color.mjs +3 -3
  49. package/esm2022/utils/color/parse-gradient.mjs +70 -0
  50. package/esm2022/utils/color/rgb-to-hex.mjs +2 -2
  51. package/esm2022/utils/dom/get-element-obscurers.mjs +2 -2
  52. package/esm2022/utils/dom/get-element-point.mjs +6 -0
  53. package/esm2022/utils/dom/index.mjs +2 -1
  54. package/esm2022/utils/focus/focused-in.mjs +7 -0
  55. package/esm2022/utils/focus/index.mjs +2 -1
  56. package/esm2022/utils/miscellaneous/mark-control-as-touched-and-validate.mjs +3 -3
  57. package/esm2022/utils/miscellaneous/with-styles.mjs +2 -2
  58. package/fesm2022/taiga-ui-cdk-classes.mjs +2 -16
  59. package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-cdk-constants.mjs +14 -6
  61. package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +1 -1
  63. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +4 -4
  65. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +1 -1
  67. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +2 -2
  69. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +2 -2
  71. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-cdk-directives-for.mjs +5 -5
  73. package/fesm2022/taiga-ui-cdk-directives-for.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +2 -2
  75. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +1 -1
  77. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +4 -4
  79. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-cdk-directives-pan.mjs +1 -1
  81. package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-cdk-directives-platform.mjs +5 -5
  83. package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +1 -1
  85. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +5 -5
  87. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +3 -3
  89. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-cdk-observables.mjs +9 -9
  91. package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +1 -1
  93. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-cdk-services.mjs +25 -28
  95. package/fesm2022/taiga-ui-cdk-services.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-cdk-tokens.mjs +22 -15
  97. package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-cdk-utils-color.mjs +80 -5
  99. package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-cdk-utils-dom.mjs +7 -2
  101. package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-cdk-utils-focus.mjs +8 -2
  103. package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +3 -3
  105. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
  106. package/package.json +7 -8
  107. package/schematics/migration.json +3 -3
  108. package/schematics/ng-add/constants/modules.d.ts +0 -1
  109. package/schematics/ng-add/constants/modules.js +1 -11
  110. package/schematics/ng-add/constants/versions.d.ts +0 -1
  111. package/schematics/ng-add/constants/versions.js +1 -2
  112. package/schematics/ng-add/index.js +1 -7
  113. package/schematics/ng-add/schema.d.ts +0 -1
  114. package/schematics/ng-add/schema.json +0 -27
  115. package/schematics/ng-add/steps/add-taiga-icons.js +1 -1
  116. package/schematics/ng-add/steps/add-taiga-modules.js +7 -22
  117. package/schematics/ng-update/interfaces/html-comment.d.ts +3 -2
  118. package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +6 -2
  119. package/schematics/ng-update/interfaces/replacement-identifier.d.ts +4 -10
  120. package/schematics/ng-update/interfaces/replacement-type.d.ts +5 -0
  121. package/schematics/ng-update/steps/icons/replace-imports.js +5 -5
  122. package/schematics/ng-update/steps/index.d.ts +1 -0
  123. package/schematics/ng-update/steps/index.js +1 -0
  124. package/schematics/ng-update/steps/remove-module.js +2 -2
  125. package/schematics/ng-update/steps/rename-types.js +11 -7
  126. package/schematics/ng-update/steps/replace-deep-import.js +2 -2
  127. package/schematics/ng-update/steps/replace-enums.js +2 -2
  128. package/schematics/ng-update/steps/replace-identifier.js +31 -9
  129. package/schematics/ng-update/steps/replace-package-name.d.ts +5 -0
  130. package/schematics/ng-update/steps/replace-package-name.js +18 -0
  131. package/schematics/ng-update/steps/replace-services.js +5 -5
  132. package/schematics/ng-update/steps/show-warnings.js +4 -4
  133. package/schematics/ng-update/utils/replace-text.js +1 -1
  134. package/schematics/ng-update/utils/templates/replace-attr-values.js +41 -12
  135. package/schematics/ng-update/utils/templates/replace-attrs.js +1 -1
  136. package/schematics/ng-update/utils/templates/template-comments.js +11 -3
  137. package/schematics/ng-update/v4/index.js +20 -7
  138. package/schematics/ng-update/v4/migrate-css-vars/palette.d.ts +11 -2
  139. package/schematics/ng-update/v4/migrate-css-vars/palette.js +18 -8
  140. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +10 -2
  141. package/schematics/ng-update/v4/migrate-icons/index.js +9 -7
  142. package/schematics/ng-update/v4/migrate-icons/rename-icons.js +15 -7
  143. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.d.ts +3 -0
  144. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js +79 -0
  145. package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js +5 -4
  146. package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js +51 -2
  147. package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +114 -27
  148. package/schematics/ng-update/v4/steps/constants/enums.js +31 -0
  149. package/schematics/ng-update/v4/steps/constants/html-comments.js +19 -0
  150. package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +1388 -288
  151. package/schematics/ng-update/v4/steps/constants/index.d.ts +1 -0
  152. package/schematics/ng-update/v4/steps/constants/index.js +1 -0
  153. package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +2 -1
  154. package/schematics/ng-update/v4/steps/constants/migration-warnings.js +25 -0
  155. package/schematics/ng-update/v4/steps/constants/modules-to-remove.js +32 -0
  156. package/schematics/ng-update/v4/steps/constants/modules-to-replace.d.ts +13 -0
  157. package/schematics/ng-update/v4/steps/constants/modules-to-replace.js +16 -0
  158. package/schematics/ng-update/v4/steps/constants/services.d.ts +2 -0
  159. package/schematics/ng-update/v4/steps/constants/services.js +15 -0
  160. package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +17 -4
  161. package/schematics/ng-update/v4/steps/constants/types.d.ts +2 -0
  162. package/schematics/ng-update/v4/steps/constants/types.js +49 -0
  163. package/schematics/ng-update/v4/steps/index.d.ts +7 -0
  164. package/schematics/ng-update/v4/steps/index.js +7 -0
  165. package/schematics/ng-update/v4/steps/migrate-alert-service.d.ts +2 -0
  166. package/schematics/ng-update/v4/steps/migrate-alert-service.js +110 -0
  167. package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js +1 -1
  168. package/schematics/ng-update/v4/steps/migrate-destroy-service.js +7 -4
  169. package/schematics/ng-update/v4/steps/migrate-legacy-mask.js +2 -2
  170. package/schematics/ng-update/v4/steps/migrate-month-context.d.ts +2 -0
  171. package/schematics/ng-update/v4/steps/migrate-month-context.js +39 -0
  172. package/schematics/ng-update/v4/steps/migrate-number-format-settings.d.ts +2 -0
  173. package/schematics/ng-update/v4/steps/migrate-number-format-settings.js +64 -0
  174. package/schematics/ng-update/v4/steps/migrate-option-providers.js +6 -3
  175. package/schematics/ng-update/v4/steps/migrate-proprietary.js +3 -3
  176. package/schematics/ng-update/v4/steps/migrate-root.d.ts +3 -0
  177. package/schematics/ng-update/v4/steps/migrate-root.js +61 -0
  178. package/schematics/ng-update/v4/steps/migrate-templates.js +11 -1
  179. package/schematics/ng-update/v4/steps/styles/index.js +38 -0
  180. package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.d.ts +1 -0
  181. package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js +13 -0
  182. package/schematics/ng-update/v4/steps/styles/migrate-scrollbar-behavior.d.ts +1 -0
  183. package/schematics/ng-update/v4/steps/styles/migrate-scrollbar-behavior.js +10 -0
  184. package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.d.ts +1 -0
  185. package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js +23 -0
  186. package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.d.ts +1 -0
  187. package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +20 -0
  188. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.d.ts +1 -0
  189. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +54 -0
  190. package/schematics/ng-update/v4/steps/templates/index.d.ts +6 -0
  191. package/schematics/ng-update/v4/steps/templates/index.js +6 -0
  192. package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +34 -11
  193. package/schematics/ng-update/{v3/steps/migrate-polymorpheus.d.ts → v4/steps/templates/migrate-axes.d.ts} +2 -2
  194. package/schematics/ng-update/v4/steps/templates/migrate-axes.js +26 -0
  195. package/schematics/ng-update/v4/steps/templates/migrate-badge.js +17 -8
  196. package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +1 -1
  197. package/schematics/ng-update/{v3/steps/migrate-textfield-controller.d.ts → v4/steps/templates/migrate-blocked.d.ts} +2 -2
  198. package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +35 -0
  199. package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.d.ts +8 -0
  200. package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js +41 -0
  201. package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +3 -2
  202. package/schematics/ng-update/v4/steps/templates/migrate-focusable.js +7 -4
  203. package/schematics/ng-update/v4/steps/templates/migrate-label.d.ts +8 -0
  204. package/schematics/ng-update/v4/steps/templates/migrate-label.js +39 -0
  205. package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +6 -10
  206. package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.d.ts +8 -0
  207. package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js +45 -0
  208. package/schematics/ng-update/v4/steps/templates/migrate-money.js +1 -1
  209. package/schematics/ng-update/v4/steps/templates/migrate-notification.d.ts +8 -0
  210. package/schematics/ng-update/v4/steps/templates/migrate-notification.js +64 -0
  211. package/schematics/ng-update/v4/steps/templates/migrate-number-precision.d.ts +8 -0
  212. package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js +36 -0
  213. package/schematics/ng-update/v4/steps/templates/migrate-overscroll.d.ts +8 -0
  214. package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +27 -0
  215. package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +2 -1
  216. package/schematics/ng-update/v4/steps/templates/toggles/common.d.ts +1 -1
  217. package/schematics/ng-update/v4/steps/templates/toggles/common.js +4 -3
  218. package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +36 -0
  219. package/schematics/ng-update/{v3/steps/migrate-templates.d.ts → v4/steps/update-packages.d.ts} +1 -1
  220. package/schematics/ng-update/v4/steps/update-packages.js +44 -0
  221. package/schematics/ng-update/v4/steps/utils/remove-attrs.js +1 -1
  222. package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.d.ts +3 -0
  223. package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js +51 -0
  224. package/schematics/ng-update/v4/steps/utils/replace-substrings.js +1 -1
  225. package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js +1 -0
  226. package/schematics/utils/add-unique-import.js +1 -1
  227. package/schematics/utils/angular-json-manipulations.js +4 -4
  228. package/schematics/utils/get-named-import-references.js +8 -6
  229. package/schematics/utils/get-standalone-bootstrap-function.js +2 -2
  230. package/schematics/utils/import-manipulations.js +1 -1
  231. package/schematics/utils/push-to-array-property.js +1 -1
  232. package/schematics/utils/templates/elements.d.ts +5 -0
  233. package/schematics/utils/templates/elements.js +27 -13
  234. package/schematics/utils/templates/get-component-templates.js +1 -1
  235. package/schematics/utils/templates/inputs.js +2 -1
  236. package/schematics/utils/templates/ng-component-input-manipulations.js +5 -5
  237. package/services/index.d.ts +1 -1
  238. package/services/theme-color.service.d.ts +16 -0
  239. package/tokens/environment.d.ts +1 -0
  240. package/utils/color/get-gradient-data.d.ts +1 -0
  241. package/utils/color/index.d.ts +2 -0
  242. package/utils/color/parse-gradient.d.ts +10 -0
  243. package/utils/dom/get-element-point.d.ts +2 -0
  244. package/utils/dom/index.d.ts +1 -0
  245. package/utils/focus/focused-in.d.ts +2 -0
  246. package/utils/focus/index.d.ts +1 -0
  247. package/classes/controller.d.ts +0 -9
  248. package/esm2022/classes/controller.mjs +0 -18
  249. package/esm2022/services/static-request.service.mjs +0 -33
  250. package/schematics/ng-update/v3/constants/breakpoints.d.ts +0 -82
  251. package/schematics/ng-update/v3/constants/breakpoints.js +0 -34
  252. package/schematics/ng-update/v3/constants/constants.d.ts +0 -2
  253. package/schematics/ng-update/v3/constants/constants.js +0 -466
  254. package/schematics/ng-update/v3/constants/deprecated-functions.d.ts +0 -2
  255. package/schematics/ng-update/v3/constants/deprecated-functions.js +0 -680
  256. package/schematics/ng-update/v3/constants/enums.d.ts +0 -2
  257. package/schematics/ng-update/v3/constants/enums.js +0 -284
  258. package/schematics/ng-update/v3/constants/modules.d.ts +0 -2
  259. package/schematics/ng-update/v3/constants/modules.js +0 -9
  260. package/schematics/ng-update/v3/constants/services.d.ts +0 -2
  261. package/schematics/ng-update/v3/constants/services.js +0 -53
  262. package/schematics/ng-update/v3/constants/templates.d.ts +0 -57
  263. package/schematics/ng-update/v3/constants/templates.js +0 -744
  264. package/schematics/ng-update/v3/constants/tui-interactive-selectors.d.ts +0 -1
  265. package/schematics/ng-update/v3/constants/tui-interactive-selectors.js +0 -55
  266. package/schematics/ng-update/v3/constants/types.d.ts +0 -2
  267. package/schematics/ng-update/v3/constants/types.js +0 -156
  268. package/schematics/ng-update/v3/constants/warnings.d.ts +0 -2
  269. package/schematics/ng-update/v3/constants/warnings.js +0 -111
  270. package/schematics/ng-update/v3/index.d.ts +0 -3
  271. package/schematics/ng-update/v3/index.js +0 -105
  272. package/schematics/ng-update/v3/schema.json +0 -13
  273. package/schematics/ng-update/v3/steps/migrate-date-time.d.ts +0 -2
  274. package/schematics/ng-update/v3/steps/migrate-date-time.js +0 -207
  275. package/schematics/ng-update/v3/steps/migrate-polymorpheus.js +0 -78
  276. package/schematics/ng-update/v3/steps/migrate-progress.d.ts +0 -8
  277. package/schematics/ng-update/v3/steps/migrate-progress.js +0 -49
  278. package/schematics/ng-update/v3/steps/migrate-sliders/index.d.ts +0 -3
  279. package/schematics/ng-update/v3/steps/migrate-sliders/index.js +0 -19
  280. package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.d.ts +0 -3
  281. package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +0 -103
  282. package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.d.ts +0 -3
  283. package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +0 -90
  284. package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.d.ts +0 -3
  285. package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.js +0 -70
  286. package/schematics/ng-update/v3/steps/migrate-templates.js +0 -216
  287. package/schematics/ng-update/v3/steps/migrate-textfield-controller.js +0 -98
  288. package/schematics/ng-update/v3/steps/miscellaneous.d.ts +0 -2
  289. package/schematics/ng-update/v3/steps/miscellaneous.js +0 -81
  290. package/schematics/ng-update/v3/steps/replace-functions.d.ts +0 -2
  291. package/schematics/ng-update/v3/steps/replace-functions.js +0 -138
  292. package/schematics/ng-update/v3/steps/replace-styles.d.ts +0 -3
  293. package/schematics/ng-update/v3/steps/replace-styles.js +0 -33
  294. package/schematics/ng-update/v3-30/constants/constants.d.ts +0 -2
  295. package/schematics/ng-update/v3-30/constants/constants.js +0 -8
  296. package/schematics/ng-update/v3-30/constants/icons.d.ts +0 -4
  297. package/schematics/ng-update/v3-30/constants/icons.js +0 -993
  298. package/schematics/ng-update/v3-30/index.d.ts +0 -3
  299. package/schematics/ng-update/v3-30/index.js +0 -33
  300. package/schematics/ng-update/v3-35/constants/constants.d.ts +0 -2
  301. package/schematics/ng-update/v3-35/constants/constants.js +0 -8
  302. package/schematics/ng-update/v3-35/constants/icons.d.ts +0 -4
  303. package/schematics/ng-update/v3-35/constants/icons.js +0 -2537
  304. package/schematics/ng-update/v3-35/index.d.ts +0 -3
  305. package/schematics/ng-update/v3-35/index.js +0 -33
  306. package/schematics/ng-update/v3-36/index.d.ts +0 -3
  307. package/schematics/ng-update/v3-36/index.js +0 -33
  308. package/schematics/ng-update/v3-40/index.d.ts +0 -3
  309. package/schematics/ng-update/v3-40/index.js +0 -62
  310. package/schematics/ng-update/v3-5/index.d.ts +0 -3
  311. package/schematics/ng-update/v3-5/index.js +0 -20
  312. package/schematics/ng-update/v3-5/steps/migrate-expand-templates.d.ts +0 -3
  313. package/schematics/ng-update/v3-5/steps/migrate-expand-templates.js +0 -44
  314. package/schematics/ng-update/v4/steps/migrate-styles.js +0 -20
  315. package/services/static-request.service.d.ts +0 -8
  316. /package/schematics/ng-update/v4/steps/{migrate-styles.d.ts → styles/index.d.ts} +0 -0
@@ -10,7 +10,7 @@ const versions_1 = require("../ng-add/constants/versions");
10
10
  const get_project_target_options_1 = require("./get-project-target-options");
11
11
  const get_projects_1 = require("./get-projects");
12
12
  function hasTaigaIcons(assets) {
13
- return !!(assets === null || assets === void 0 ? void 0 : assets.find(asset => {
13
+ return !!(assets === null || assets === void 0 ? void 0 : assets.find((asset) => {
14
14
  var _a;
15
15
  return (0, is_string_1.tuiIsString)(asset)
16
16
  ? asset.includes('taiga-ui')
@@ -33,7 +33,7 @@ function isInvalidAngularJson(tree) {
33
33
  exports.isInvalidAngularJson = isInvalidAngularJson;
34
34
  function addStylesToAngularJson(options, context, taigaStyles, filter, stylesToReplace, tree) {
35
35
  const MANUAL_MIGRATION_TIPS = `Add styles ${taigaStyles.join(',')} to angular.json manually.`;
36
- return (0, workspace_1.updateWorkspace)(workspace => {
36
+ return (0, workspace_1.updateWorkspace)((workspace) => {
37
37
  const projects = (0, get_projects_1.getProjects)(options, workspace);
38
38
  if (!projects.length) {
39
39
  context.logger.warn(`[WARNING]: Target project not found. ${MANUAL_MIGRATION_TIPS}`);
@@ -59,11 +59,11 @@ function addStylesToAngularJson(options, context, taigaStyles, filter, stylesToR
59
59
  targetOptions.styles = taigaStyles;
60
60
  }
61
61
  if (stylesToReplace &&
62
- (styles === null || styles === void 0 ? void 0 : styles.filter(style => style !== stylesToReplace.from))) {
62
+ (styles === null || styles === void 0 ? void 0 : styles.filter((style) => style !== stylesToReplace.from))) {
63
63
  targetOptions.styles = Array.from(new Set([
64
64
  ...taigaStyles,
65
65
  ...stylesToReplace.to,
66
- ...styles.filter(style => style !== stylesToReplace.from),
66
+ ...styles.filter((style) => style !== stylesToReplace.from),
67
67
  ]));
68
68
  }
69
69
  else {
@@ -3,23 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getNamedImportReferences = void 0;
4
4
  const ng_morph_1 = require("ng-morph");
5
5
  const constants_1 = require("../constants");
6
- function getNamedImportReferences(namedImport, moduleSpecifier = '**/**', files = constants_1.ALL_TS_FILES) {
6
+ function getNamedImportReferences(namedImport, moduleSpecifier = ['**/**'], files = constants_1.ALL_TS_FILES) {
7
7
  const importDeclarations = (0, ng_morph_1.getImports)(files, {
8
8
  namedImports: [namedImport],
9
- moduleSpecifier,
9
+ moduleSpecifier: Array.isArray(moduleSpecifier)
10
+ ? moduleSpecifier
11
+ : [moduleSpecifier, `${moduleSpecifier}/**`],
10
12
  });
11
- const namedImports = importDeclarations.map(declaration => {
13
+ const namedImports = importDeclarations.map((declaration) => {
12
14
  var _a;
13
15
  return (_a = declaration
14
16
  .getNamedImports()
15
- .find(specifier => specifier.getName() === namedImport)) === null || _a === void 0 ? void 0 : _a.getNameNode();
17
+ .find((specifier) => specifier.getName() === namedImport)) === null || _a === void 0 ? void 0 : _a.getNameNode();
16
18
  });
17
- return (0, ng_morph_1.arrayFlat)(namedImports.map(specifier => (specifier === null || specifier === void 0 ? void 0 : specifier.findReferencesAsNodes().filter(
19
+ return (0, ng_morph_1.arrayFlat)(namedImports.map((specifier) => (specifier === null || specifier === void 0 ? void 0 : specifier.findReferencesAsNodes().filter(
18
20
  /**
19
21
  * Otherwise, each `findReferencesAsNodes` will return references across THE WHOLE project.
20
22
  * It will cause a lot of duplicates in the result and significantly slow down the process.
21
23
  */
22
- ref => ref.getSourceFile().getFilePath() ===
24
+ (ref) => ref.getSourceFile().getFilePath() ===
23
25
  (specifier === null || specifier === void 0 ? void 0 : specifier.getSourceFile().getFilePath()))) || []));
24
26
  }
25
27
  exports.getNamedImportReferences = getNamedImportReferences;
@@ -5,8 +5,8 @@ const ng_morph_1 = require("ng-morph");
5
5
  const get_named_import_references_1 = require("./get-named-import-references");
6
6
  function getStandaloneBootstrapFunction(path) {
7
7
  const standaloneBootstrapIdentifier = (0, get_named_import_references_1.getNamedImportReferences)('bootstrapApplication', '@angular/platform-browser', path)
8
- .map(ref => ref.getParent())
9
- .find(node => ng_morph_1.Node.isCallExpression(node));
8
+ .map((ref) => ref.getParent())
9
+ .find((node) => ng_morph_1.Node.isCallExpression(node));
10
10
  const standaloneBootstrapFunction = standaloneBootstrapIdentifier;
11
11
  return standaloneBootstrapFunction || null;
12
12
  }
@@ -14,7 +14,7 @@ function renameImport(specifier, to, from) {
14
14
  const namedImport = specifier
15
15
  .getImportDeclaration()
16
16
  .getNamedImports()
17
- .find(specifier => specifier.getName() === from);
17
+ .find((specifier) => specifier.getName() === from);
18
18
  namedImport === null || namedImport === void 0 ? void 0 : namedImport.replaceWithText(to);
19
19
  }
20
20
  exports.renameImport = renameImport;
@@ -18,7 +18,7 @@ function pushToObjectArrayProperty(objectExpression, propertyName, initializer,
18
18
  if (unique &&
19
19
  importsInitializer
20
20
  .getElements()
21
- .some(element => element.getText() === initializer)) {
21
+ .some((element) => element.getText() === initializer)) {
22
22
  return;
23
23
  }
24
24
  if (typeof index === 'number') {
@@ -3,6 +3,11 @@ export declare function findElementsByFn(nodes: ChildNode[], predicateFn: (el: E
3
3
  export declare function findElementsInTemplateByFn(html: string, predicateFn: (el: Element) => boolean): Element[];
4
4
  export declare function findElementsByTagName(html: string, tagName: string, filterFn?: (element: Element) => boolean): Element[];
5
5
  export declare function findElementsByTagNames(html: string, tagNames: string[]): Element[];
6
+ /**
7
+ * Parses a HTML fragment and traverses all AST nodes in order find elements that
8
+ * include the specified directive as attribute or input.
9
+ */
10
+ export declare function findElementsWithDirective(html: string, attributeName: string): Element[];
6
11
  /**
7
12
  * Parses a HTML fragment and traverses all AST nodes in order find elements that
8
13
  * include the specified attribute.
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getStartOffsetOfAttribute = exports.hasElementAttribute = exports.findAttributeOnElementWithAttrs = exports.findAttributeOnElementWithTag = exports.findElementsWithAttributeOnTag = exports.findElementsWithAttribute = exports.findElementsByTagNames = exports.findElementsByTagName = exports.findElementsInTemplateByFn = exports.findElementsByFn = void 0;
3
+ exports.getStartOffsetOfAttribute = exports.hasElementAttribute = exports.findAttributeOnElementWithAttrs = exports.findAttributeOnElementWithTag = exports.findElementsWithAttributeOnTag = exports.findElementsWithAttribute = exports.findElementsWithDirective = exports.findElementsByTagNames = exports.findElementsByTagName = exports.findElementsInTemplateByFn = exports.findElementsByFn = void 0;
4
4
  const parse5_1 = require("parse5");
5
5
  function findElementsByFn(nodes, predicateFn) {
6
6
  const elements = [];
7
7
  const visitNodes = (nodes) => {
8
- nodes.forEach(n => {
8
+ nodes.forEach((n) => {
9
9
  const node = n;
10
10
  if (node.childNodes) {
11
11
  visitNodes(node.childNodes);
@@ -31,19 +31,29 @@ exports.findElementsInTemplateByFn = findElementsInTemplateByFn;
31
31
  function findElementsByTagName(html, tagName,
32
32
  // eslint-disable-next-line no-restricted-syntax
33
33
  filterFn = () => true) {
34
- return findElementsInTemplateByFn(html, el => el.tagName === tagName && filterFn(el));
34
+ return findElementsInTemplateByFn(html, (el) => el.tagName === tagName && filterFn(el));
35
35
  }
36
36
  exports.findElementsByTagName = findElementsByTagName;
37
37
  function findElementsByTagNames(html, tagNames) {
38
- return findElementsInTemplateByFn(html, el => tagNames.includes(el.tagName));
38
+ return findElementsInTemplateByFn(html, (el) => tagNames.includes(el.tagName));
39
39
  }
40
40
  exports.findElementsByTagNames = findElementsByTagNames;
41
+ /**
42
+ * Parses a HTML fragment and traverses all AST nodes in order find elements that
43
+ * include the specified directive as attribute or input.
44
+ */
45
+ function findElementsWithDirective(html, attributeName) {
46
+ const lowercasedAttrName = attributeName.toLowerCase();
47
+ const inputName = `[${lowercasedAttrName}]`;
48
+ return findElementsInTemplateByFn(html, (el) => { var _a; return (_a = el.attrs) === null || _a === void 0 ? void 0 : _a.some(({ name }) => name === lowercasedAttrName || name === inputName); });
49
+ }
50
+ exports.findElementsWithDirective = findElementsWithDirective;
41
51
  /**
42
52
  * Parses a HTML fragment and traverses all AST nodes in order find elements that
43
53
  * include the specified attribute.
44
54
  */
45
55
  function findElementsWithAttribute(html, attributeName) {
46
- return findElementsInTemplateByFn(html, el => { var _a; return (_a = el.attrs) === null || _a === void 0 ? void 0 : _a.some(attr => attr.name === attributeName.toLowerCase()); });
56
+ return findElementsInTemplateByFn(html, (el) => { var _a; return (_a = el.attrs) === null || _a === void 0 ? void 0 : _a.some((attr) => attr.name === attributeName.toLowerCase()); });
47
57
  }
48
58
  exports.findElementsWithAttribute = findElementsWithAttribute;
49
59
  /**
@@ -54,10 +64,13 @@ exports.findElementsWithAttribute = findElementsWithAttribute;
54
64
  function findElementsWithAttributeOnTag(html, attributeNames, tagNames = [],
55
65
  // eslint-disable-next-line no-restricted-syntax
56
66
  filterFn = () => true) {
57
- return findElementsInTemplateByFn(html, el => {
67
+ return findElementsInTemplateByFn(html, (el) => {
58
68
  var _a;
59
- return ((_a = el.attrs) === null || _a === void 0 ? void 0 : _a.some(attr => attributeNames.map(name => name.toLowerCase()).includes(attr.name))) &&
60
- (tagNames.includes(el.tagName) || !tagNames.length) &&
69
+ return (!attributeNames.length ||
70
+ ((_a = el.attrs) === null || _a === void 0 ? void 0 : _a.some((attr) => attributeNames.map((name) => name.toLowerCase()).includes(attr.name)))) &&
71
+ (tagNames.includes(el.tagName) ||
72
+ tagNames.includes('*') ||
73
+ !tagNames.length) &&
61
74
  filterFn(el);
62
75
  });
63
76
  }
@@ -70,9 +83,9 @@ function findAttributeOnElementWithTag(html, name, tagNames,
70
83
  // eslint-disable-next-line no-restricted-syntax
71
84
  filterFn = () => true) {
72
85
  return findElementsWithAttribute(html, name)
73
- .filter(element => (tagNames.includes(element.tagName) || tagNames.includes('*')) &&
86
+ .filter((element) => (tagNames.includes(element.tagName) || tagNames.includes('*')) &&
74
87
  filterFn(element))
75
- .map(element => getStartOffsetOfAttribute(element, name));
88
+ .map((element) => getStartOffsetOfAttribute(element, name));
76
89
  }
77
90
  exports.findAttributeOnElementWithTag = findAttributeOnElementWithTag;
78
91
  /**
@@ -83,15 +96,16 @@ function findAttributeOnElementWithAttrs(html, name, attrs,
83
96
  // eslint-disable-next-line no-restricted-syntax
84
97
  filterFn = () => true) {
85
98
  return findElementsWithAttribute(html, name)
86
- .filter(element => attrs.some(attr => hasElementAttribute(element, attr)) &&
99
+ .filter((element) => attrs.some((attr) => hasElementAttribute(element, attr)) &&
87
100
  filterFn(element))
88
- .map(element => getStartOffsetOfAttribute(element, name));
101
+ .map((element) => getStartOffsetOfAttribute(element, name));
89
102
  }
90
103
  exports.findAttributeOnElementWithAttrs = findAttributeOnElementWithAttrs;
91
104
  /** Shorthand function that checks if the specified element contains the given attribute. */
92
105
  function hasElementAttribute(element, attributeName) {
93
106
  var _a;
94
- return (_a = element.attrs) === null || _a === void 0 ? void 0 : _a.some(attr => attr.name === attributeName.toLowerCase());
107
+ const lowercasedAttrName = attributeName.toLowerCase();
108
+ return (_a = element.attrs) === null || _a === void 0 ? void 0 : _a.some((attr) => attr.name === lowercasedAttrName || attr.name === `[${lowercasedAttrName}]`);
95
109
  }
96
110
  exports.hasElementAttribute = hasElementAttribute;
97
111
  /** Gets the start offset of the given attribute from a Parse5 element. */
@@ -31,7 +31,7 @@ function getFullTemplatePath(templatePath, componentPath) {
31
31
  }
32
32
  function getComponentTemplates(pattern, query) {
33
33
  return (0, ng_morph_1.getClasses)(pattern, query)
34
- .map(declaration => declaration.getDecorator('Component'))
34
+ .map((declaration) => declaration.getDecorator('Component'))
35
35
  .filter((decorator) => !!decorator)
36
36
  .map(decoratorToTemplateResource)
37
37
  .filter((x) => Boolean(x));
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isBinding = exports.findAttr = void 0;
4
4
  function findAttr(attrs, name) {
5
- return attrs.find(attr => attr.name === name || attr.name === `[${name}]`);
5
+ const lowercasedName = name.toLowerCase();
6
+ return attrs.find((attr) => attr.name === lowercasedName || attr.name === `[${lowercasedName}]`);
6
7
  }
7
8
  exports.findAttr = findAttr;
8
9
  function isBinding(attr) {
@@ -39,11 +39,11 @@ function replaceInputProperty({ templateResource, fileSystem, componentSelector,
39
39
  const stringProperties = [
40
40
  ...(0, elements_1.findAttributeOnElementWithTag)(template, from, selector, filterFn),
41
41
  ...(0, elements_1.findAttributeOnElementWithAttrs)(template, from, selector, filterFn),
42
- ].map(offset => templateOffset + offset);
42
+ ].map((offset) => templateOffset + offset);
43
43
  const propertyBindings = [
44
44
  ...(0, elements_1.findAttributeOnElementWithTag)(template, `[${from}]`, selector, filterFn),
45
45
  ...(0, elements_1.findAttributeOnElementWithAttrs)(template, `[${from}]`, selector, filterFn),
46
- ].map(offset => templateOffset + offset);
46
+ ].map((offset) => templateOffset + offset);
47
47
  const propertyValues = newValue
48
48
  ? getInputPropertyValueOffsets(template, from, selector).map(([start, end]) => [
49
49
  templateOffset + start,
@@ -53,11 +53,11 @@ function replaceInputProperty({ templateResource, fileSystem, componentSelector,
53
53
  if (!stringProperties.length && !propertyBindings.length) {
54
54
  return false;
55
55
  }
56
- stringProperties.forEach(offset => {
56
+ stringProperties.forEach((offset) => {
57
57
  recorder.remove(offset, from.length);
58
58
  recorder.insertRight(offset, to);
59
59
  });
60
- propertyBindings.forEach(offset => {
60
+ propertyBindings.forEach((offset) => {
61
61
  recorder.remove(offset, `[${from}]`.length);
62
62
  recorder.insertRight(offset, to.startsWith('[') ? to : `[${to}]`);
63
63
  });
@@ -79,7 +79,7 @@ function getInputPropertyOffsets(html, attrName, tags,
79
79
  // eslint-disable-next-line no-restricted-syntax
80
80
  filterFn = () => true) {
81
81
  return (0, elements_1.findElementsWithAttribute)(html, attrName)
82
- .filter(element => (tags.includes(element.tagName) || tags.includes('*')) &&
82
+ .filter((element) => (tags.includes(element.tagName) || tags.includes('*')) &&
83
83
  filterFn(element))
84
84
  .map((element) => {
85
85
  var _a, _b;
@@ -1,4 +1,4 @@
1
1
  export * from './id.service';
2
2
  export * from './popover.service';
3
3
  export * from './scroll.service';
4
- export * from './static-request.service';
4
+ export * from './theme-color.service';
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare const TUI_THEME_COLOR: import("@angular/core").InjectionToken<string>;
3
+ interface TuiThemeColor {
4
+ get color(): string;
5
+ set color(value: string);
6
+ }
7
+ export declare class TuiThemeColorService implements TuiThemeColor {
8
+ private readonly current;
9
+ private readonly doc;
10
+ private readonly meta;
11
+ get color(): string;
12
+ set color(content: string);
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiThemeColorService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<TuiThemeColorService>;
15
+ }
16
+ export {};
@@ -3,6 +3,7 @@ export declare const TUI_IS_IOS: import("@angular/core").InjectionToken<boolean>
3
3
  export declare const TUI_IS_ANDROID: import("@angular/core").InjectionToken<boolean>;
4
4
  export declare const TUI_IS_WEBKIT: import("@angular/core").InjectionToken<boolean>;
5
5
  export declare const TUI_PLATFORM: import("@angular/core").InjectionToken<"android" | "ios" | "web">;
6
+ export declare const TUI_IS_TOUCH: import("@angular/core").InjectionToken<import("@angular/core").Signal<boolean>>;
6
7
  /**
7
8
  * Detect if app is running under Cypress
8
9
  * {@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}
@@ -0,0 +1 @@
1
+ export declare function tuiGetGradientData(gradient: string): string;
@@ -1,7 +1,9 @@
1
+ export * from './get-gradient-data';
1
2
  export * from './hex-to-rgb';
2
3
  export * from './hex-to-rgba';
3
4
  export * from './hsv-to-rgb';
4
5
  export * from './parse-color';
6
+ export * from './parse-gradient';
5
7
  export * from './rgb-to-hex';
6
8
  export * from './rgb-to-hsv';
7
9
  export * from './rgba-to-hex';
@@ -0,0 +1,10 @@
1
+ export interface TuiParsedGradient {
2
+ readonly side: TuiGradientDirection;
3
+ readonly stops: ReadonlyArray<{
4
+ readonly color: string;
5
+ readonly position: string;
6
+ }>;
7
+ }
8
+ export type TuiGradientDirection = 'to bottom left' | 'to bottom right' | 'to bottom' | 'to left' | 'to right' | 'to top left' | 'to top right' | 'to top';
9
+ export declare function tuiParseGradient(input: string): TuiParsedGradient;
10
+ export declare function tuiToGradient({ stops, side }: TuiParsedGradient): string;
@@ -0,0 +1,2 @@
1
+ import type { TuiPoint } from '@taiga-ui/core/types';
2
+ export declare function tuiGetElementPoint(x: number, y: number, element: HTMLElement): TuiPoint;
@@ -6,6 +6,7 @@ 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';
9
10
  export * from './get-selected-text';
10
11
  export * from './inject-element';
11
12
  export * from './is-current-target';
@@ -0,0 +1,2 @@
1
+ import type { Signal } from '@angular/core';
2
+ export declare function tuiFocusedIn(node: Node): Signal<boolean>;
@@ -1,4 +1,5 @@
1
1
  export * from './blur-native-focused';
2
+ export * from './focused-in';
2
3
  export * from './get-closest-focusable';
3
4
  export * from './get-native-focused';
4
5
  export * from './is-native-focused';
@@ -1,9 +0,0 @@
1
- import type { OnChanges } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare abstract class AbstractTuiController implements OnChanges {
5
- readonly change$: Subject<void>;
6
- ngOnChanges(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTuiController, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractTuiController, never, never, {}, {}, never, never, false, never>;
9
- }
@@ -1,18 +0,0 @@
1
- import { Directive } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- class AbstractTuiController {
5
- constructor() {
6
- this.change$ = new Subject();
7
- }
8
- ngOnChanges() {
9
- this.change$.next();
10
- }
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiController, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
12
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AbstractTuiController, usesOnChanges: true, ngImport: i0 }); }
13
- }
14
- export { AbstractTuiController };
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiController, decorators: [{
16
- type: Directive
17
- }] });
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay9jbGFzc2VzL2NvbnRyb2xsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN4QyxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sTUFBTSxDQUFDOztBQUU3QixNQUNzQixxQkFBcUI7SUFEM0M7UUFFb0IsWUFBTyxHQUFHLElBQUksT0FBTyxFQUFRLENBQUM7S0FLakQ7SUFIVSxXQUFXO1FBQ2QsSUFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUN4QixDQUFDOytHQUxpQixxQkFBcUI7bUdBQXJCLHFCQUFxQjs7U0FBckIscUJBQXFCOzRGQUFyQixxQkFBcUI7a0JBRDFDLFNBQVMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7T25DaGFuZ2VzfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7RGlyZWN0aXZlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7U3ViamVjdH0gZnJvbSAncnhqcyc7XG5cbkBEaXJlY3RpdmUoKVxuZXhwb3J0IGFic3RyYWN0IGNsYXNzIEFic3RyYWN0VHVpQ29udHJvbGxlciBpbXBsZW1lbnRzIE9uQ2hhbmdlcyB7XG4gICAgcHVibGljIHJlYWRvbmx5IGNoYW5nZSQgPSBuZXcgU3ViamVjdDx2b2lkPigpO1xuXG4gICAgcHVibGljIG5nT25DaGFuZ2VzKCk6IHZvaWQge1xuICAgICAgICB0aGlzLmNoYW5nZSQubmV4dCgpO1xuICAgIH1cbn1cbiJdfQ==
@@ -1,33 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { shareReplay, switchMap } from 'rxjs';
3
- import { fromFetch } from 'rxjs/fetch';
4
- import * as i0 from "@angular/core";
5
- class TuiStaticRequestService {
6
- constructor() {
7
- this.cache = new Map();
8
- }
9
- request(url) {
10
- const cache = this.cache.get(url);
11
- if (cache) {
12
- return cache;
13
- }
14
- const piped = fromFetch(url).pipe(switchMap(async (response) => {
15
- if (response.ok) {
16
- return response.text();
17
- }
18
- throw new Error(`Failed to load ${url} (${response.statusText})`);
19
- }), shareReplay({ bufferSize: 1, refCount: false }));
20
- this.cache.set(url, piped);
21
- return piped;
22
- }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiStaticRequestService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
24
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiStaticRequestService, providedIn: 'root' }); }
25
- }
26
- export { TuiStaticRequestService };
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiStaticRequestService, decorators: [{
28
- type: Injectable,
29
- args: [{
30
- providedIn: 'root',
31
- }]
32
- }] });
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdGljLXJlcXVlc3Quc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay9zZXJ2aWNlcy9zdGF0aWMtcmVxdWVzdC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFekMsT0FBTyxFQUFDLFdBQVcsRUFBRSxTQUFTLEVBQUMsTUFBTSxNQUFNLENBQUM7QUFDNUMsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLFlBQVksQ0FBQzs7QUFFckMsTUFHYSx1QkFBdUI7SUFIcEM7UUFJcUIsVUFBSyxHQUFHLElBQUksR0FBRyxFQUE4QixDQUFDO0tBd0JsRTtJQXRCVSxPQUFPLENBQUMsR0FBVztRQUN0QixNQUFNLEtBQUssR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUVsQyxJQUFJLEtBQUssRUFBRTtZQUNQLE9BQU8sS0FBSyxDQUFDO1NBQ2hCO1FBRUQsTUFBTSxLQUFLLEdBQUcsU0FBUyxDQUFDLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FDN0IsU0FBUyxDQUFDLEtBQUssRUFBQyxRQUFRLEVBQUMsRUFBRTtZQUN2QixJQUFJLFFBQVEsQ0FBQyxFQUFFLEVBQUU7Z0JBQ2IsT0FBTyxRQUFRLENBQUMsSUFBSSxFQUFFLENBQUM7YUFDMUI7WUFFRCxNQUFNLElBQUksS0FBSyxDQUFDLGtCQUFrQixHQUFHLEtBQUssUUFBUSxDQUFDLFVBQVUsR0FBRyxDQUFDLENBQUM7UUFDdEUsQ0FBQyxDQUFDLEVBQ0YsV0FBVyxDQUFDLEVBQUMsVUFBVSxFQUFFLENBQUMsRUFBRSxRQUFRLEVBQUUsS0FBSyxFQUFDLENBQUMsQ0FDaEQsQ0FBQztRQUVGLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLEdBQUcsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUUzQixPQUFPLEtBQUssQ0FBQztJQUNqQixDQUFDOytHQXhCUSx1QkFBdUI7bUhBQXZCLHVCQUF1QixjQUZwQixNQUFNOztTQUVULHVCQUF1Qjs0RkFBdkIsdUJBQXVCO2tCQUhuQyxVQUFVO21CQUFDO29CQUNSLFVBQVUsRUFBRSxNQUFNO2lCQUNyQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7SW5qZWN0YWJsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgdHlwZSB7T2JzZXJ2YWJsZX0gZnJvbSAncnhqcyc7XG5pbXBvcnQge3NoYXJlUmVwbGF5LCBzd2l0Y2hNYXB9IGZyb20gJ3J4anMnO1xuaW1wb3J0IHtmcm9tRmV0Y2h9IGZyb20gJ3J4anMvZmV0Y2gnO1xuXG5ASW5qZWN0YWJsZSh7XG4gICAgcHJvdmlkZWRJbjogJ3Jvb3QnLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlTdGF0aWNSZXF1ZXN0U2VydmljZSB7XG4gICAgcHJpdmF0ZSByZWFkb25seSBjYWNoZSA9IG5ldyBNYXA8c3RyaW5nLCBPYnNlcnZhYmxlPHN0cmluZz4+KCk7XG5cbiAgICBwdWJsaWMgcmVxdWVzdCh1cmw6IHN0cmluZyk6IE9ic2VydmFibGU8c3RyaW5nPiB7XG4gICAgICAgIGNvbnN0IGNhY2hlID0gdGhpcy5jYWNoZS5nZXQodXJsKTtcblxuICAgICAgICBpZiAoY2FjaGUpIHtcbiAgICAgICAgICAgIHJldHVybiBjYWNoZTtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IHBpcGVkID0gZnJvbUZldGNoKHVybCkucGlwZShcbiAgICAgICAgICAgIHN3aXRjaE1hcChhc3luYyByZXNwb25zZSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKHJlc3BvbnNlLm9rKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiByZXNwb25zZS50ZXh0KCk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBGYWlsZWQgdG8gbG9hZCAke3VybH0gKCR7cmVzcG9uc2Uuc3RhdHVzVGV4dH0pYCk7XG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIHNoYXJlUmVwbGF5KHtidWZmZXJTaXplOiAxLCByZWZDb3VudDogZmFsc2V9KSxcbiAgICAgICAgKTtcblxuICAgICAgICB0aGlzLmNhY2hlLnNldCh1cmwsIHBpcGVkKTtcblxuICAgICAgICByZXR1cm4gcGlwZWQ7XG4gICAgfVxufVxuIl19
@@ -1,82 +0,0 @@
1
- export declare const DEPRECATED_BREAKPOINTS: readonly [{
2
- readonly from: "@media-retina";
3
- readonly to: "@tui-media-retina";
4
- }, {
5
- readonly from: "@media-retina-mobile";
6
- readonly to: "@tui-media-retina-mobile";
7
- }, {
8
- readonly from: "@media-retina-tablet";
9
- readonly to: "@tui-media-retina-tablet";
10
- }, {
11
- readonly from: "@media-retina-desktop";
12
- readonly to: "@tui-media-retina-desktop";
13
- }, {
14
- readonly from: "@mobile-m";
15
- readonly to: "@tui-mobile";
16
- }, {
17
- readonly from: "@mobile-m-min";
18
- readonly to: "@tui-mobile-min";
19
- }, {
20
- readonly from: "@mobile-m-interval";
21
- readonly to: "@tui-mobile-interval";
22
- }, {
23
- readonly from: "@tablet-lg";
24
- readonly to: "@tui-tablet";
25
- }, {
26
- readonly from: "@tablet-lg-min";
27
- readonly to: "@tui-tablet-min";
28
- }, {
29
- readonly from: "@tablet-lg-interval";
30
- readonly to: "@tui-tablet-interval";
31
- }, {
32
- readonly from: "@desktop-s";
33
- readonly to: "@tui-desktop";
34
- }, {
35
- readonly from: "@desktop-s-min";
36
- readonly to: "@tui-desktop-min";
37
- }, {
38
- readonly from: "@desktop-s-interval";
39
- readonly to: "@tui-desktop-interval";
40
- }, {
41
- readonly from: "@desktop-m-min";
42
- readonly to: "@tui-desktop-lg-min";
43
- }, {
44
- readonly from: "@mobile";
45
- readonly to: "@tui-mobile";
46
- }, {
47
- readonly from: "@mobile-min";
48
- readonly to: "@tui-mobile-min";
49
- }, {
50
- readonly from: "@mobile-interval";
51
- readonly to: "@tui-mobile-interval";
52
- }, {
53
- readonly from: "@tablet-s";
54
- readonly to: "@tui-mobile";
55
- }, {
56
- readonly from: "@tablet-s-min";
57
- readonly to: "@tui-mobile-min";
58
- }, {
59
- readonly from: "@tablet-s-interval";
60
- readonly to: "@tui-mobile-interval";
61
- }, {
62
- readonly from: "@tablet";
63
- readonly to: "@tui-tablet";
64
- }, {
65
- readonly from: "@tablet-min";
66
- readonly to: "@tui-tablet-min";
67
- }, {
68
- readonly from: "@tablet-interval";
69
- readonly to: "@tui-tablet-interval";
70
- }, {
71
- readonly from: "@desktop";
72
- readonly to: "@tui-desktop";
73
- }, {
74
- readonly from: "@desktop-min";
75
- readonly to: "@tui-desktop-min";
76
- }, {
77
- readonly from: "@desktop-interval";
78
- readonly to: "@tui-desktop-interval";
79
- }, {
80
- readonly from: "@desktop-lg-min";
81
- readonly to: "@tui-desktop-lg-min";
82
- }];
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEPRECATED_BREAKPOINTS = void 0;
4
- exports.DEPRECATED_BREAKPOINTS = [
5
- // all previously actual breakpoints
6
- { from: '@media-retina', to: '@tui-media-retina' },
7
- { from: '@media-retina-mobile', to: '@tui-media-retina-mobile' },
8
- { from: '@media-retina-tablet', to: '@tui-media-retina-tablet' },
9
- { from: '@media-retina-desktop', to: '@tui-media-retina-desktop' },
10
- { from: '@mobile-m', to: '@tui-mobile' },
11
- { from: '@mobile-m-min', to: '@tui-mobile-min' },
12
- { from: '@mobile-m-interval', to: '@tui-mobile-interval' },
13
- { from: '@tablet-lg', to: '@tui-tablet' },
14
- { from: '@tablet-lg-min', to: '@tui-tablet-min' },
15
- { from: '@tablet-lg-interval', to: '@tui-tablet-interval' },
16
- { from: '@desktop-s', to: '@tui-desktop' },
17
- { from: '@desktop-s-min', to: '@tui-desktop-min' },
18
- { from: '@desktop-s-interval', to: '@tui-desktop-interval' },
19
- { from: '@desktop-m-min', to: '@tui-desktop-lg-min' },
20
- // legacy breakpoints
21
- { from: '@mobile', to: '@tui-mobile' },
22
- { from: '@mobile-min', to: '@tui-mobile-min' },
23
- { from: '@mobile-interval', to: '@tui-mobile-interval' },
24
- { from: '@tablet-s', to: '@tui-mobile' },
25
- { from: '@tablet-s-min', to: '@tui-mobile-min' },
26
- { from: '@tablet-s-interval', to: '@tui-mobile-interval' },
27
- { from: '@tablet', to: '@tui-tablet' },
28
- { from: '@tablet-min', to: '@tui-tablet-min' },
29
- { from: '@tablet-interval', to: '@tui-tablet-interval' },
30
- { from: '@desktop', to: '@tui-desktop' },
31
- { from: '@desktop-min', to: '@tui-desktop-min' },
32
- { from: '@desktop-interval', to: '@tui-desktop-interval' },
33
- { from: '@desktop-lg-min', to: '@tui-desktop-lg-min' },
34
- ];
@@ -1,2 +0,0 @@
1
- import type { ReplacementIdentifier } from '../../interfaces/replacement-identifier';
2
- export declare const CONSTANTS_TO_REPLACE: ReplacementIdentifier[];