@taiga-ui/cdk 3.41.1 → 3.42.1-canary.b789cd2

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 (212) hide show
  1. package/bundles/taiga-ui-cdk-components-alert-host.umd.js +1 -1
  2. package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
  3. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +6 -8
  4. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
  5. package/bundles/taiga-ui-cdk-constants.umd.js +1 -1
  6. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  7. package/bundles/taiga-ui-cdk-date-time.umd.js +17 -10
  8. package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
  9. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +3 -3
  10. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
  11. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +6 -6
  12. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
  13. package/bundles/taiga-ui-cdk-directives-focused.umd.js +2 -2
  14. package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
  15. package/bundles/taiga-ui-cdk-directives-hovered.umd.js +3 -3
  16. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  17. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +3 -3
  18. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
  19. package/bundles/taiga-ui-cdk-directives-platform.umd.js +89 -0
  20. package/bundles/taiga-ui-cdk-directives-platform.umd.js.map +1 -0
  21. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +3 -3
  22. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
  23. package/bundles/taiga-ui-cdk-directives.umd.js +10 -4
  24. package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
  25. package/bundles/taiga-ui-cdk-observables.umd.js +8 -8
  26. package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
  27. package/bundles/taiga-ui-cdk-services.umd.js +6 -5
  28. package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
  29. package/bundles/taiga-ui-cdk-tokens.umd.js +42 -12
  30. package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
  31. package/bundles/taiga-ui-cdk-utils-color.umd.js +380 -0
  32. package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -1
  33. package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
  34. package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
  35. package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
  36. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +16 -10
  37. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
  38. package/bundles/taiga-ui-cdk-utils.umd.js +4 -10
  39. package/bundles/taiga-ui-cdk-utils.umd.js.map +1 -1
  40. package/components/dialog-host/dialog-host.component.d.ts +2 -2
  41. package/constants/version.d.ts +1 -1
  42. package/constants/version.js +1 -1
  43. package/{utils/calendar → date-time}/date-clamp.d.ts +1 -1
  44. package/date-time/date-format.d.ts +1 -2
  45. package/date-time/date-separator.d.ts +1 -2
  46. package/date-time/index.d.ts +1 -0
  47. package/directives/active-zone/active-zone.directive.d.ts +2 -2
  48. package/directives/auto-focus/autofocus.options.d.ts +1 -1
  49. package/directives/auto-focus/handlers/ios.handler.d.ts +2 -2
  50. package/directives/focused/focused.directive.d.ts +1 -1
  51. package/directives/hovered/hovered.service.d.ts +2 -2
  52. package/directives/index.d.ts +1 -0
  53. package/directives/overscroll/overscroll.directive.d.ts +1 -1
  54. package/directives/platform/index.d.ts +2 -0
  55. package/directives/platform/package.json +10 -0
  56. package/directives/platform/platform.directive.d.ts +7 -0
  57. package/directives/platform/platform.module.d.ts +7 -0
  58. package/{utils/calendar/taiga-ui-cdk-utils-calendar.d.ts → directives/platform/taiga-ui-cdk-directives-platform.d.ts} +1 -1
  59. package/directives/prevent-default/prevent-default.directive.d.ts +2 -2
  60. package/esm2015/components/alert-host/alert-host.component.js +2 -2
  61. package/esm2015/components/dialog-host/dialog-host.component.js +5 -6
  62. package/esm2015/constants/version.js +2 -2
  63. package/esm2015/date-time/date-clamp.js +10 -0
  64. package/esm2015/date-time/date-format.js +3 -5
  65. package/esm2015/date-time/date-separator.js +3 -5
  66. package/esm2015/date-time/day-range.js +1 -1
  67. package/esm2015/date-time/day.js +1 -1
  68. package/esm2015/date-time/index.js +2 -1
  69. package/esm2015/date-time/month-range.js +1 -1
  70. package/esm2015/date-time/month.js +1 -1
  71. package/esm2015/directives/active-zone/active-zone.directive.js +4 -4
  72. package/esm2015/directives/auto-focus/autofocus.options.js +5 -5
  73. package/esm2015/directives/auto-focus/handlers/ios.handler.js +4 -4
  74. package/esm2015/directives/focused/focused.directive.js +3 -3
  75. package/esm2015/directives/hovered/hovered.service.js +4 -4
  76. package/esm2015/directives/index.js +2 -1
  77. package/esm2015/directives/overscroll/overscroll.directive.js +4 -4
  78. package/esm2015/directives/platform/index.js +3 -0
  79. package/esm2015/directives/platform/platform.directive.js +32 -0
  80. package/esm2015/directives/platform/platform.module.js +16 -0
  81. package/esm2015/directives/platform/taiga-ui-cdk-directives-platform.js +5 -0
  82. package/esm2015/directives/prevent-default/prevent-default.directive.js +4 -4
  83. package/esm2015/interfaces/aria-dialog-context.js +1 -1
  84. package/esm2015/interfaces/control-value-transformer.js +1 -1
  85. package/esm2015/interfaces/focusable-element-accessor.js +1 -1
  86. package/esm2015/interfaces/time-like.js +1 -1
  87. package/esm2015/observables/drag-and-drop-from.js +1 -1
  88. package/esm2015/observables/zone-free.js +9 -9
  89. package/esm2015/services/obscured.service.js +3 -3
  90. package/esm2015/services/resize.service.js +5 -4
  91. package/esm2015/tokens/alerts.js +3 -5
  92. package/esm2015/tokens/dialogs.js +3 -5
  93. package/esm2015/tokens/ensure-base-href.js +6 -1
  94. package/esm2015/tokens/index.js +4 -1
  95. package/esm2015/tokens/is-e2e.js +10 -0
  96. package/esm2015/tokens/is-playwright.js +9 -0
  97. package/esm2015/tokens/platform.js +16 -0
  98. package/esm2015/tokens/swipe-options.js +5 -4
  99. package/esm2015/tokens/zoom-options.js +4 -6
  100. package/esm2015/types/index.js +2 -1
  101. package/esm2015/types/platform.js +2 -0
  102. package/esm2015/utils/color/hex-to-rgba.js +31 -0
  103. package/esm2015/utils/color/index.js +3 -1
  104. package/esm2015/utils/color/rgba-to-hex.js +26 -0
  105. package/esm2015/utils/dom/get-element-offset.js +1 -1
  106. package/esm2015/utils/focus/get-closest-focusable.js +1 -1
  107. package/esm2015/utils/index.js +1 -2
  108. package/esm2015/utils/math/round-with.js +1 -1
  109. package/esm2015/utils/miscellaneous/create-options.js +2 -1
  110. package/esm2015/utils/miscellaneous/create-token.js +7 -0
  111. package/esm2015/utils/miscellaneous/default-sort.js +5 -8
  112. package/esm2015/utils/miscellaneous/index.js +2 -1
  113. package/fesm2015/taiga-ui-cdk-components-alert-host.js +1 -1
  114. package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
  115. package/fesm2015/taiga-ui-cdk-components-dialog-host.js +4 -5
  116. package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  117. package/fesm2015/taiga-ui-cdk-constants.js +1 -1
  118. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  119. package/fesm2015/taiga-ui-cdk-date-time.js +14 -8
  120. package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
  121. package/fesm2015/taiga-ui-cdk-directives-active-zone.js +3 -3
  122. package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  123. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +7 -7
  124. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  125. package/fesm2015/taiga-ui-cdk-directives-focused.js +2 -2
  126. package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
  127. package/fesm2015/taiga-ui-cdk-directives-hovered.js +3 -3
  128. package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
  129. package/fesm2015/taiga-ui-cdk-directives-overscroll.js +3 -3
  130. package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
  131. package/fesm2015/taiga-ui-cdk-directives-platform.js +52 -0
  132. package/fesm2015/taiga-ui-cdk-directives-platform.js.map +1 -0
  133. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +3 -3
  134. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  135. package/fesm2015/taiga-ui-cdk-directives.js +1 -0
  136. package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
  137. package/fesm2015/taiga-ui-cdk-observables.js +8 -8
  138. package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
  139. package/fesm2015/taiga-ui-cdk-services.js +6 -5
  140. package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
  141. package/fesm2015/taiga-ui-cdk-tokens.js +41 -15
  142. package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
  143. package/fesm2015/taiga-ui-cdk-utils-color.js +58 -1
  144. package/fesm2015/taiga-ui-cdk-utils-color.js.map +1 -1
  145. package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
  146. package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
  147. package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
  148. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +12 -8
  149. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  150. package/fesm2015/taiga-ui-cdk-utils.js +0 -1
  151. package/fesm2015/taiga-ui-cdk-utils.js.map +1 -1
  152. package/interfaces/aria-dialog-context.d.ts +1 -1
  153. package/interfaces/control-value-transformer.d.ts +1 -1
  154. package/interfaces/focusable-element-accessor.d.ts +1 -1
  155. package/interfaces/time-like.d.ts +1 -1
  156. package/observables/zone-free.d.ts +3 -3
  157. package/package.json +2 -2
  158. package/schematics/ng-add/schema.d.ts +3 -3
  159. package/schematics/ng-update/interfaces/asset.d.ts +1 -1
  160. package/schematics/ng-update/interfaces/migration-warning.d.ts +2 -2
  161. package/schematics/ng-update/interfaces/removed-module.d.ts +1 -1
  162. package/schematics/ng-update/interfaces/replaceable-attribute.d.ts +2 -2
  163. package/schematics/ng-update/interfaces/replacement-const.d.ts +2 -2
  164. package/schematics/ng-update/interfaces/replacement-enum.d.ts +1 -1
  165. package/schematics/ng-update/interfaces/template-resource.d.ts +2 -2
  166. package/schematics/ng-update/interfaces/type-to-rename.d.ts +1 -1
  167. package/schematics/ng-update/utils/templates/replace-attr-values.d.ts +2 -2
  168. package/schematics/ng-update/v3/index.js +3 -1
  169. package/schematics/ng-update/v3/interfaces/attribute-to-directive.d.ts +3 -3
  170. package/schematics/ng-update/v3/interfaces/replaceable-tag.d.ts +1 -1
  171. package/schematics/ng-update/v3/steps/migrate-polymorpheus.d.ts +2 -2
  172. package/schematics/ng-update/v3/steps/migrate-templates.js +2 -1
  173. package/schematics/ng-update/v3/steps/migrate-textfield-controller.d.ts +2 -2
  174. package/schematics/ng-update/v3/steps/replace-styles.js +1 -1
  175. package/schematics/ng-update/v3-35/constants/icons.js +26 -2
  176. package/schematics/ng-update/v4/index.js +16 -9
  177. package/schematics/ng-update/v4/steps/replace-thumbnail-card.d.ts +3 -0
  178. package/schematics/ng-update/v4/steps/replace-thumbnail-card.js +58 -0
  179. package/schematics/utils/progress.d.ts +1 -1
  180. package/schematics/utils/push-to-array-property.d.ts +1 -1
  181. package/schematics/utils/templates/ng-component-input-manipulations.d.ts +11 -11
  182. package/services/obscured.service.d.ts +1 -1
  183. package/services/resize.service.d.ts +1 -1
  184. package/tokens/alerts.d.ts +2 -2
  185. package/tokens/dialogs.d.ts +2 -2
  186. package/tokens/index.d.ts +3 -0
  187. package/tokens/is-e2e.d.ts +5 -0
  188. package/tokens/is-playwright.d.ts +5 -0
  189. package/tokens/platform.d.ts +3 -0
  190. package/tokens/swipe-options.d.ts +1 -2
  191. package/tokens/zoom-options.d.ts +1 -2
  192. package/types/index.d.ts +1 -0
  193. package/types/platform.d.ts +1 -0
  194. package/utils/color/hex-to-rgba.d.ts +3 -0
  195. package/utils/color/index.d.ts +2 -0
  196. package/utils/color/rgba-to-hex.d.ts +2 -0
  197. package/utils/dom/get-element-offset.d.ts +1 -1
  198. package/utils/focus/get-closest-focusable.d.ts +4 -4
  199. package/utils/index.d.ts +0 -1
  200. package/utils/math/round-with.d.ts +2 -2
  201. package/utils/miscellaneous/create-options.d.ts +1 -0
  202. package/utils/miscellaneous/create-token.d.ts +2 -0
  203. package/utils/miscellaneous/index.d.ts +1 -0
  204. package/bundles/taiga-ui-cdk-utils-calendar.umd.js +0 -26
  205. package/bundles/taiga-ui-cdk-utils-calendar.umd.js.map +0 -1
  206. package/esm2015/utils/calendar/date-clamp.js +0 -10
  207. package/esm2015/utils/calendar/index.js +0 -2
  208. package/esm2015/utils/calendar/taiga-ui-cdk-utils-calendar.js +0 -5
  209. package/fesm2015/taiga-ui-cdk-utils-calendar.js +0 -16
  210. package/fesm2015/taiga-ui-cdk-utils-calendar.js.map +0 -1
  211. package/utils/calendar/index.d.ts +0 -1
  212. package/utils/calendar/package.json +0 -10
@@ -6,6 +6,26 @@ exports.ICONS = [
6
6
  to: `tuiIconTdsGridMediumPragmatic`,
7
7
  from: `tuiIconAddProductLarge`,
8
8
  },
9
+ {
10
+ to: `tuiIconTdsTexMediumPragmatic`,
11
+ from: `tuiIconTeXLarge`,
12
+ },
13
+ {
14
+ to: `tuiIconTdsWysiwygSpoilerMediumPragmatic`,
15
+ from: `tuiIconSpoilerLarge`,
16
+ },
17
+ {
18
+ to: `tuiIconTdsWysiwygSpoilerRemoveMediumPragmatic`,
19
+ from: `tuiIconSpoilerDeleteLarge`,
20
+ },
21
+ {
22
+ to: `tuiIconTdsLinkOffMediumPragmatic`,
23
+ from: `tuiIconUnlinkLarge`,
24
+ },
25
+ {
26
+ to: `tuiIconTdsWysiwygHighlighterMediumPragmatic`,
27
+ from: `tuiIconHiliteLarge`,
28
+ },
9
29
  {
10
30
  to: `tuiIconTdsWysiwygTableAddRowMediumPragmatic`,
11
31
  from: `tuiIconAddRowLarge`,
@@ -1655,11 +1675,11 @@ exports.ICONS = [
1655
1675
  from: `tuiIconReceiptLargeOutline`,
1656
1676
  },
1657
1677
  {
1658
- to: `tuiIconTdsArrowRewindSmallPragmatic`,
1678
+ to: `tuiIconTdsArrowRepeatSmallPragmatic`,
1659
1679
  from: `tuiIconRedo`,
1660
1680
  },
1661
1681
  {
1662
- to: `tuiIconTdsArrowRewindMediumPragmatic`,
1682
+ to: `tuiIconTdsArrowRepeatMediumPragmatic`,
1663
1683
  from: `tuiIconRedoLarge`,
1664
1684
  },
1665
1685
  {
@@ -1986,6 +2006,10 @@ exports.ICONS = [
1986
2006
  to: `tuiIconTdsArrowRewindSmallPragmatic`,
1987
2007
  from: `tuiIconUndo`,
1988
2008
  },
2009
+ {
2010
+ to: `tuiIconTdsWysiwygFontBoldMediumPragmatic`,
2011
+ from: `tuiIconBoldLarge`,
2012
+ },
1989
2013
  {
1990
2014
  to: `tuiIconTdsArrowRewindMediumPragmatic`,
1991
2015
  from: `tuiIconUndoLarge`,
@@ -1,17 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateToV4 = void 0;
4
- const ng_morph_1 = require("ng-morph");
4
+ // eslint-disable-next-line @typescript-eslint/naming-convention
5
+ const schematics_1 = require("@angular-devkit/schematics");
6
+ const perf_hooks_1 = require("perf_hooks");
5
7
  const versions_1 = require("../../ng-add/constants/versions");
6
8
  const colored_log_1 = require("../../utils/colored-log");
7
- const get_file_system_1 = require("../utils/get-file-system");
9
+ const get_execution_time_1 = require("../../utils/get-execution-time");
10
+ const replace_thumbnail_card_1 = require("./steps/replace-thumbnail-card");
8
11
  function updateToV4(options) {
9
- return (tree, _) => {
10
- const fileSystem = get_file_system_1.getFileSystem(tree);
11
- fileSystem.commitEdits();
12
- ng_morph_1.saveActiveProject();
13
- !options[`skip-logs`] &&
14
- colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} We migrated packages to @taiga-ui/*@${versions_1.TAIGA_VERSION}\n`);
15
- };
12
+ const t0 = perf_hooks_1.performance.now();
13
+ !options[`skip-logs`] &&
14
+ colored_log_1.titleLog(`\n\n${colored_log_1.START_SYMBOL} Your packages will be updated to @taiga-ui/*@${versions_1.TAIGA_VERSION}\n`);
15
+ return schematics_1.chain([
16
+ replace_thumbnail_card_1.replaceThumbnailCard(options),
17
+ () => {
18
+ const executionTime = get_execution_time_1.getExecutionTime(t0, perf_hooks_1.performance.now());
19
+ !options[`skip-logs`] &&
20
+ colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} We migrated packages to @taiga-ui/*@${versions_1.TAIGA_VERSION} in ${executionTime}. \n`);
21
+ },
22
+ ]);
16
23
  }
17
24
  exports.updateToV4 = updateToV4;
@@ -0,0 +1,3 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { TuiSchema } from '../../../ng-add/schema';
3
+ export declare function replaceThumbnailCard(options: TuiSchema): Rule;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.replaceThumbnailCard = void 0;
4
+ const ng_morph_1 = require("ng-morph");
5
+ const constants_1 = require("../../../constants");
6
+ const colored_log_1 = require("../../../utils/colored-log");
7
+ const project_root_1 = require("../../../utils/project-root");
8
+ const replace_tag_1 = require("../../../utils/replace-tag");
9
+ const elements_1 = require("../../../utils/templates/elements");
10
+ const get_component_templates_1 = require("../../../utils/templates/get-component-templates");
11
+ const template_resource_1 = require("../../../utils/templates/template-resource");
12
+ const get_file_system_1 = require("../../utils/get-file-system");
13
+ const replace_text_1 = require("../../utils/replace-text");
14
+ function replaceThumbnailCard(options) {
15
+ return (tree, _) => {
16
+ const fileSystem = get_file_system_1.getFileSystem(tree);
17
+ replaceCardTag(options, fileSystem);
18
+ replaceReferenceTypes(options, fileSystem);
19
+ !options[`skip-logs`] && colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} successfully migrated \n`);
20
+ };
21
+ }
22
+ exports.replaceThumbnailCard = replaceThumbnailCard;
23
+ function replaceCardTag(options, fileSystem) {
24
+ !options[`skip-logs`] &&
25
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing <tui-card /> to <tui-thumbnail-card />`);
26
+ const templateResources = get_component_templates_1.getComponentTemplates(constants_1.ALL_TS_FILES);
27
+ for (const resource of templateResources) {
28
+ const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
29
+ const elements = elements_1.findElementsByTagName(template, `tui-card`);
30
+ const path = fileSystem.resolve(template_resource_1.getPathFromTemplateResource(resource));
31
+ const recorder = fileSystem.edit(path);
32
+ elements.forEach(({ sourceCodeLocation }) => {
33
+ if (sourceCodeLocation) {
34
+ replace_tag_1.replaceTag(recorder, sourceCodeLocation, `tui-card`, `tui-thumbnail-card`);
35
+ }
36
+ });
37
+ }
38
+ fileSystem.commitEdits();
39
+ ng_morph_1.saveActiveProject();
40
+ ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, project_root_1.projectRoot(), constants_1.ALL_FILES));
41
+ }
42
+ function replaceReferenceTypes(options, fileSystem) {
43
+ !options[`skip-logs`] &&
44
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing TuiCard(Module|Component) to TuiThumbnailCard(Module|Component)`);
45
+ replace_text_1.replaceText([
46
+ {
47
+ from: `TuiCardModule`,
48
+ to: `TuiThumbnailCardModule`,
49
+ },
50
+ {
51
+ from: `TuiCardComponent`,
52
+ to: `TuiThumbnailCardComponent`,
53
+ },
54
+ ]);
55
+ fileSystem.commitEdits();
56
+ ng_morph_1.saveActiveProject();
57
+ ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, project_root_1.projectRoot(), constants_1.ALL_FILES));
58
+ }
@@ -1,5 +1,5 @@
1
1
  export declare function setupProgressLogger({ total, prefix, tabs, }: {
2
- total: number;
3
2
  prefix?: string;
4
3
  tabs?: number;
4
+ total: number;
5
5
  }): (message: string, incrementIndex?: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  import { ObjectLiteralExpression } from 'ng-morph';
2
2
  export declare function pushToObjectArrayProperty(objectExpression: ObjectLiteralExpression, propertyName: string, initializer: string, { unique, forceToArray, }?: {
3
- unique?: boolean;
4
3
  forceToArray?: boolean;
4
+ unique?: boolean;
5
5
  }): void;
@@ -27,13 +27,13 @@ import { TemplateResource } from '../../ng-update/interfaces/template-resource';
27
27
  * @return true if something was changed
28
28
  */
29
29
  export declare function replaceInputProperty({ templateResource, fileSystem, componentSelector, from, to, newValue, filterFn, }: {
30
- templateResource: TemplateResource;
31
- fileSystem: DevkitFileSystem;
32
30
  componentSelector: string[] | string;
31
+ fileSystem: DevkitFileSystem;
32
+ filterFn?: (element: Element) => boolean;
33
33
  from: string;
34
- to: string;
35
34
  newValue?: string;
36
- filterFn?: (element: Element) => boolean;
35
+ templateResource: TemplateResource;
36
+ to: string;
37
37
  }): boolean;
38
38
  /**
39
39
  * @example
@@ -52,16 +52,16 @@ export declare function getInputPropertyOffsets(html: string, attrName: string,
52
52
  */
53
53
  export declare function getInputPropertyValueOffsets(template: string, attrName: string, tags: string[]): Array<[number, number]>;
54
54
  export declare function replaceInputPropertyByDirective({ templateResource, fileSystem, componentSelector, inputProperty, directive, directiveModule, filterFn, }: {
55
- templateResource: TemplateResource;
56
- fileSystem: DevkitFileSystem;
57
55
  componentSelector: string[] | string;
58
- inputProperty: string;
59
56
  directive: string;
60
57
  directiveModule?: {
61
- name: string;
62
58
  moduleSpecifier: string;
59
+ name: string;
63
60
  };
61
+ fileSystem: DevkitFileSystem;
64
62
  filterFn?: (element: Element) => boolean;
63
+ inputProperty: string;
64
+ templateResource: TemplateResource;
65
65
  }): void;
66
66
  /**
67
67
  * After removing property from the tag (which uses multi lines inside template) it can leave redundant space.
@@ -69,9 +69,9 @@ export declare function replaceInputPropertyByDirective({ templateResource, file
69
69
  * TODO: Find a way to fix it
70
70
  */
71
71
  export declare function removeInputProperty({ templateResource, fileSystem, componentSelector, inputProperty, filterFn, }: {
72
- templateResource: TemplateResource;
73
- fileSystem: DevkitFileSystem;
74
72
  componentSelector: string;
75
- inputProperty: string;
73
+ fileSystem: DevkitFileSystem;
76
74
  filterFn?: (element: Element) => boolean;
75
+ inputProperty: string;
76
+ templateResource: TemplateResource;
77
77
  }): void;
@@ -9,7 +9,7 @@ import * as i0 from "@angular/core";
9
9
  */
10
10
  export declare class TuiObscuredService extends Observable<readonly Element[] | null> {
11
11
  private readonly obscured$;
12
- constructor(parentsScroll$: TuiParentsScrollService, { nativeElement }: ElementRef<Element>, ngZone: NgZone, win: Window, destroy$: Observable<void>, animationFrame$: Observable<number>);
12
+ constructor(parentsScroll$: TuiParentsScrollService, { nativeElement }: ElementRef<Element>, zone: NgZone, win: Window, destroy$: Observable<void>, animationFrame$: Observable<number>);
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiObscuredService, [{ self: true; }, null, null, null, { self: true; }, null]>;
14
14
  static ɵprov: i0.ɵɵInjectableDeclaration<TuiObscuredService>;
15
15
  }
@@ -3,7 +3,7 @@ import { ResizeObserverService } from '@ng-web-apis/resize-observer';
3
3
  import { Observable } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class TuiResizeService extends ResizeObserverService {
6
- constructor(el: ElementRef<HTMLElement>, ngZone: NgZone, destroy$: Observable<void>, support: boolean, box: ResizeObserverBoxOptions, animationFrame$: Observable<number>);
6
+ constructor(el: ElementRef<HTMLElement>, zone: NgZone, destroy$: Observable<void>, support: boolean, box: ResizeObserverBoxOptions, animationFrame$: Observable<number>);
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiResizeService, [null, null, { self: true; }, null, null, null]>;
8
8
  static ɵprov: i0.ɵɵInjectableDeclaration<TuiResizeService>;
9
9
  }
@@ -1,8 +1,8 @@
1
- import { InjectionToken, Provider, Type } from '@angular/core';
1
+ import { Provider, Type } from '@angular/core';
2
2
  import { TuiAriaDialogContext } from '@taiga-ui/cdk/interfaces';
3
3
  import { Observable } from 'rxjs';
4
4
  /**
5
5
  * A stream of alerts
6
6
  */
7
- export declare const TUI_ALERTS: InjectionToken<readonly Observable<readonly TuiAriaDialogContext[]>[]>;
7
+ export declare const TUI_ALERTS: import("@angular/core").InjectionToken<readonly Observable<readonly TuiAriaDialogContext[]>[]>;
8
8
  export declare function tuiAsAlerts(useExisting: Type<Observable<readonly TuiAriaDialogContext[]>>): Provider;
@@ -1,8 +1,8 @@
1
- import { InjectionToken, Provider, Type } from '@angular/core';
1
+ import { Provider, Type } from '@angular/core';
2
2
  import { TuiAriaDialogContext } from '@taiga-ui/cdk/interfaces';
3
3
  import { Observable } from 'rxjs';
4
4
  /**
5
5
  * A stream of dialogs
6
6
  */
7
- export declare const TUI_DIALOGS: InjectionToken<readonly Observable<readonly TuiAriaDialogContext[]>[]>;
7
+ export declare const TUI_DIALOGS: import("@angular/core").InjectionToken<readonly Observable<readonly TuiAriaDialogContext[]>[]>;
8
8
  export declare function tuiAsDialog(useExisting: Type<Observable<readonly TuiAriaDialogContext[]>>): Provider;
package/tokens/index.d.ts CHANGED
@@ -8,11 +8,14 @@ export * from './is-android';
8
8
  export * from './is-apple';
9
9
  export * from './is-chromium';
10
10
  export * from './is-cypress';
11
+ export * from './is-e2e';
11
12
  export * from './is-firefox';
12
13
  export * from './is-ios';
13
14
  export * from './is-mobile';
15
+ export * from './is-playwright';
14
16
  export * from './is-stackblitz';
15
17
  export * from './is-webkit';
18
+ export * from './platform';
16
19
  export * from './range';
17
20
  export * from './removed-element';
18
21
  export * from './swipe-options';
@@ -0,0 +1,5 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * Detect if app is running under any of test frameworks
4
+ */
5
+ export declare const TUI_IS_E2E: InjectionToken<boolean>;
@@ -0,0 +1,5 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * Detect if app is running under Playwright
4
+ */
5
+ export declare const TUI_IS_PLAYWRIGHT: InjectionToken<boolean>;
@@ -0,0 +1,3 @@
1
+ import { TuiPlatform } from '@taiga-ui/cdk/types';
2
+ export declare const TUI_PLATFORM: import("@angular/core").InjectionToken<TuiPlatform>;
3
+ export declare function tuiPlatformFactory(): TuiPlatform;
@@ -1,6 +1,5 @@
1
- import { InjectionToken } from '@angular/core';
2
1
  import { TuiSwipeOptions } from '@taiga-ui/cdk/interfaces';
3
2
  /**
4
3
  * Swipe options
5
4
  */
6
- export declare const TUI_SWIPE_OPTIONS: InjectionToken<TuiSwipeOptions>;
5
+ export declare const TUI_SWIPE_OPTIONS: import("@angular/core").InjectionToken<TuiSwipeOptions>;
@@ -1,6 +1,5 @@
1
- import { InjectionToken } from '@angular/core';
2
1
  import { TuiZoomOptions } from '@taiga-ui/cdk/interfaces';
3
2
  /**
4
3
  * Zoom options
5
4
  */
6
- export declare const TUI_ZOOM_OPTIONS: InjectionToken<TuiZoomOptions>;
5
+ export declare const TUI_ZOOM_OPTIONS: import("@angular/core").InjectionToken<TuiZoomOptions>;
package/types/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export * from './input-type';
10
10
  export * from './mapper';
11
11
  export * from './matcher';
12
12
  export * from './overscroll-mode';
13
+ export * from './platform';
13
14
  export * from './rounding';
14
15
  export * from './time-mode';
15
16
  export * from './values-of';
@@ -0,0 +1 @@
1
+ export declare type TuiPlatform = 'android' | 'ios' | 'web';
@@ -0,0 +1,3 @@
1
+ export declare function tuiHexToRGBA(hex: string, alpha?: number): string;
2
+ export declare function tuiIsValidHex(hex: string): boolean;
3
+ export declare function tuiParseHex(hex: string, alpha?: number): [number, number, number, number];
@@ -1,5 +1,7 @@
1
1
  export * from './hex-to-rgb';
2
+ export * from './hex-to-rgba';
2
3
  export * from './hsv-to-rgb';
3
4
  export * from './parse-color';
4
5
  export * from './rgb-to-hex';
5
6
  export * from './rgb-to-hsv';
7
+ export * from './rgba-to-hex';
@@ -0,0 +1,2 @@
1
+ export declare function tuiRgbaToHex(color: string): string;
2
+ export declare function tuiIsValidRgba(rgba: string): boolean;
@@ -6,6 +6,6 @@
6
6
  * @return object with offsetTop and offsetLeft number properties
7
7
  */
8
8
  export declare function tuiGetElementOffset(host: Element, element: HTMLElement): {
9
- offsetTop: number;
10
9
  offsetLeft: number;
10
+ offsetTop: number;
11
11
  };
@@ -6,9 +6,9 @@ export interface TuiGetClosestFocusableOptions {
6
6
  initial: Element;
7
7
  /**
8
8
  * @description:
9
- * top Node limiting the search area
9
+ * determine if only keyboard focus is of interest
10
10
  */
11
- root: Node;
11
+ keyboard?: boolean;
12
12
  /**
13
13
  * @description:
14
14
  * should it look backwards instead (find item that will be focused with Shift + Tab)
@@ -16,9 +16,9 @@ export interface TuiGetClosestFocusableOptions {
16
16
  previous?: boolean;
17
17
  /**
18
18
  * @description:
19
- * determine if only keyboard focus is of interest
19
+ * top Node limiting the search area
20
20
  */
21
- keyboard?: boolean;
21
+ root: Node;
22
22
  }
23
23
  /**
24
24
  * @description:
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/calendar';
3
2
  export * from '@taiga-ui/cdk/utils/color';
4
3
  export * from '@taiga-ui/cdk/utils/dom';
5
4
  export * from '@taiga-ui/cdk/utils/focus';
@@ -1,6 +1,6 @@
1
1
  import { TuiRounding } from '@taiga-ui/cdk/types';
2
2
  export declare function tuiRoundWith({ value, precision, method, }: {
3
- value: number;
4
- precision: number;
5
3
  method: TuiRounding;
4
+ precision: number;
5
+ value: number;
6
6
  }): number;
@@ -1,2 +1,3 @@
1
1
  import { InjectionToken } from '@angular/core';
2
+ /** @deprecated use {@link tuiCreateToken} instead */
2
3
  export declare function tuiCreateOptions<T>(defaults: T): InjectionToken<T>;
@@ -0,0 +1,2 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare function tuiCreateToken<T>(defaults: T): InjectionToken<T>;
@@ -3,6 +3,7 @@ export * from './array-shallow-equals';
3
3
  export * from './array-toggle';
4
4
  export * from './clean-object';
5
5
  export * from './create-options';
6
+ export * from './create-token';
6
7
  export * from './default-sort';
7
8
  export * from './distance-between-touches';
8
9
  export * from './ease-in-out-quad';
@@ -1,26 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/cdk/utils/calendar', ['exports'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].cdk = global["taiga-ui"].cdk || {}, global["taiga-ui"].cdk.utils = global["taiga-ui"].cdk.utils || {}, global["taiga-ui"].cdk.utils.calendar = {})));
5
- })(this, (function (exports) { 'use strict';
6
-
7
- function tuiDateClamp(date, min, max) {
8
- if (max && max < date) {
9
- return max;
10
- }
11
- if (min && min > date) {
12
- return min;
13
- }
14
- return date;
15
- }
16
-
17
- /**
18
- * Generated bundle index. Do not edit.
19
- */
20
-
21
- exports.tuiDateClamp = tuiDateClamp;
22
-
23
- Object.defineProperty(exports, '__esModule', { value: true });
24
-
25
- }));
26
- //# sourceMappingURL=taiga-ui-cdk-utils-calendar.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-utils-calendar.umd.js","sources":["../../../projects/cdk/utils/calendar/date-clamp.ts","../../../projects/cdk/utils/calendar/taiga-ui-cdk-utils-calendar.ts"],"sourcesContent":["import {TuiYear} from '@taiga-ui/cdk/date-time';\n\nexport function tuiDateClamp<T extends TuiYear>(date: T, min?: T, max?: T): T {\n if (max && max < date) {\n return max;\n }\n\n if (min && min > date) {\n return min;\n }\n\n return date;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;aAEgB,YAAY,CAAoB,IAAO,EAAE,GAAO,EAAE,GAAO,EAAA;IACrE,IAAA,IAAI,GAAG,IAAI,GAAG,GAAG,IAAI,EAAE;IACnB,QAAA,OAAO,GAAG,CAAC;IACd,KAAA;IAED,IAAA,IAAI,GAAG,IAAI,GAAG,GAAG,IAAI,EAAE;IACnB,QAAA,OAAO,GAAG,CAAC;IACd,KAAA;IAED,IAAA,OAAO,IAAI,CAAC;IAChB;;ICZA;;IAEG;;;;;;;;;;"}
@@ -1,10 +0,0 @@
1
- export function tuiDateClamp(date, min, max) {
2
- if (max && max < date) {
3
- return max;
4
- }
5
- if (min && min > date) {
6
- return min;
7
- }
8
- return date;
9
- }
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1jbGFtcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay91dGlscy9jYWxlbmRhci9kYXRlLWNsYW1wLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sVUFBVSxZQUFZLENBQW9CLElBQU8sRUFBRSxHQUFPLEVBQUUsR0FBTztJQUNyRSxJQUFJLEdBQUcsSUFBSSxHQUFHLEdBQUcsSUFBSSxFQUFFO1FBQ25CLE9BQU8sR0FBRyxDQUFDO0tBQ2Q7SUFFRCxJQUFJLEdBQUcsSUFBSSxHQUFHLEdBQUcsSUFBSSxFQUFFO1FBQ25CLE9BQU8sR0FBRyxDQUFDO0tBQ2Q7SUFFRCxPQUFPLElBQUksQ0FBQztBQUNoQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtUdWlZZWFyfSBmcm9tICdAdGFpZ2EtdWkvY2RrL2RhdGUtdGltZSc7XG5cbmV4cG9ydCBmdW5jdGlvbiB0dWlEYXRlQ2xhbXA8VCBleHRlbmRzIFR1aVllYXI+KGRhdGU6IFQsIG1pbj86IFQsIG1heD86IFQpOiBUIHtcbiAgICBpZiAobWF4ICYmIG1heCA8IGRhdGUpIHtcbiAgICAgICAgcmV0dXJuIG1heDtcbiAgICB9XG5cbiAgICBpZiAobWluICYmIG1pbiA+IGRhdGUpIHtcbiAgICAgICAgcmV0dXJuIG1pbjtcbiAgICB9XG5cbiAgICByZXR1cm4gZGF0ZTtcbn1cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export * from './date-clamp';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvdXRpbHMvY2FsZW5kYXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2RhdGUtY2xhbXAnO1xuIl19
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktY2RrLXV0aWxzLWNhbGVuZGFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2RrL3V0aWxzL2NhbGVuZGFyL3RhaWdhLXVpLWNkay11dGlscy1jYWxlbmRhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
@@ -1,16 +0,0 @@
1
- function tuiDateClamp(date, min, max) {
2
- if (max && max < date) {
3
- return max;
4
- }
5
- if (min && min > date) {
6
- return min;
7
- }
8
- return date;
9
- }
10
-
11
- /**
12
- * Generated bundle index. Do not edit.
13
- */
14
-
15
- export { tuiDateClamp };
16
- //# sourceMappingURL=taiga-ui-cdk-utils-calendar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-utils-calendar.js","sources":["../../../projects/cdk/utils/calendar/date-clamp.ts","../../../projects/cdk/utils/calendar/taiga-ui-cdk-utils-calendar.ts"],"sourcesContent":["import {TuiYear} from '@taiga-ui/cdk/date-time';\n\nexport function tuiDateClamp<T extends TuiYear>(date: T, min?: T, max?: T): T {\n if (max && max < date) {\n return max;\n }\n\n if (min && min > date) {\n return min;\n }\n\n return date;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"SAEgB,YAAY,CAAoB,IAAO,EAAE,GAAO,EAAE,GAAO,EAAA;AACrE,IAAA,IAAI,GAAG,IAAI,GAAG,GAAG,IAAI,EAAE;AACnB,QAAA,OAAO,GAAG,CAAC;AACd,KAAA;AAED,IAAA,IAAI,GAAG,IAAI,GAAG,GAAG,IAAI,EAAE;AACnB,QAAA,OAAO,GAAG,CAAC;AACd,KAAA;AAED,IAAA,OAAO,IAAI,CAAC;AAChB;;ACZA;;AAEG;;;;"}
@@ -1 +0,0 @@
1
- export * from './date-clamp';
@@ -1,10 +0,0 @@
1
- {
2
- "main": "../../bundles/taiga-ui-cdk-utils-calendar.umd.js",
3
- "module": "../../fesm2015/taiga-ui-cdk-utils-calendar.js",
4
- "es2015": "../../fesm2015/taiga-ui-cdk-utils-calendar.js",
5
- "esm2015": "../../esm2015/utils/calendar/taiga-ui-cdk-utils-calendar.js",
6
- "fesm2015": "../../fesm2015/taiga-ui-cdk-utils-calendar.js",
7
- "typings": "taiga-ui-cdk-utils-calendar.d.ts",
8
- "sideEffects": false,
9
- "name": "@taiga-ui/cdk/utils/calendar"
10
- }