@taiga-ui/cdk 4.18.0 → 4.19.0-canary.50ca026

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 (32) hide show
  1. package/classes/portals.d.ts +2 -2
  2. package/classes/value-transformer.d.ts +4 -0
  3. package/constants/version.d.ts +1 -1
  4. package/constants/version.js +1 -1
  5. package/date-time/time.d.ts +1 -0
  6. package/esm2022/classes/portals.mjs +2 -4
  7. package/esm2022/classes/value-transformer.mjs +8 -1
  8. package/esm2022/constants/version.mjs +2 -2
  9. package/esm2022/date-time/time.mjs +14 -17
  10. package/esm2022/observables/index.mjs +2 -1
  11. package/esm2022/observables/untracked-scheduler.mjs +11 -0
  12. package/esm2022/utils/focus/focused-in.mjs +4 -3
  13. package/esm2022/utils/math/round.mjs +12 -4
  14. package/fesm2022/taiga-ui-cdk-classes.mjs +8 -4
  15. package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
  16. package/fesm2022/taiga-ui-cdk-constants.mjs +1 -1
  17. package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
  18. package/fesm2022/taiga-ui-cdk-date-time.mjs +12 -15
  19. package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
  20. package/fesm2022/taiga-ui-cdk-observables.mjs +12 -3
  21. package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
  22. package/fesm2022/taiga-ui-cdk-utils-focus.mjs +3 -2
  23. package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-cdk-utils-math.mjs +12 -4
  25. package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
  26. package/observables/index.d.ts +1 -0
  27. package/observables/untracked-scheduler.d.ts +2 -0
  28. package/package.json +1 -1
  29. package/schematics/ng-update/v4/index.js +1 -1
  30. package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +14 -0
  31. package/schematics/ng-update/v4/steps/migrate-providers-from.js +2 -0
  32. package/utils/math/round.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/cdk",
3
- "version": "4.18.0",
3
+ "version": "4.19.0-canary.50ca026",
4
4
  "description": "Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance",
5
5
  "keywords": [
6
6
  "angular",
@@ -25,9 +25,9 @@ const replace_modules_with_providers_1 = require("./steps/utils/replace-modules-
25
25
  function main(options) {
26
26
  return (tree, context) => {
27
27
  const fileSystem = (0, get_file_system_1.getFileSystem)(tree);
28
+ (0, migrate_editor_1.migrateEditor)(fileSystem, options);
28
29
  (0, replace_functions_1.replaceFunctions)(functions_1.REPLACE_FUNCTIONS);
29
30
  (0, migrate_providers_from_1.migrateImportProvidersFrom)(options);
30
- (0, migrate_editor_1.migrateEditor)(fileSystem, options);
31
31
  (0, steps_1.replaceEnums)(options, enums_1.ENUMS_TO_REPLACE);
32
32
  (0, migrate_root_1.migrateRoot)(fileSystem, options);
33
33
  (0, replace_services_1.replaceServices)(options, constants_1.SERVICES_TO_REPLACE);
@@ -32,15 +32,29 @@ exports.TAGS_TO_REPLACE = [
32
32
  to: 'input',
33
33
  addAttributes: ['tuiRadio', 'type="radio"'],
34
34
  },
35
+ {
36
+ from: 'tui-checkbox-block',
37
+ to: 'input',
38
+ addAttributes: ['tuiCheckbox', 'type="checkbox"', 'tuiBlock'],
39
+ filterFn: (el) => el.attrs.some((attr) => attr.name === '[hidecheckbox]'),
40
+ },
35
41
  {
36
42
  from: 'tui-checkbox-block',
37
43
  to: 'input',
38
44
  addAttributes: ['tuiCheckbox', 'type="checkbox"'],
45
+ filterFn: (el) => !el.attrs.some((attr) => attr.name === '[hidecheckbox]'),
46
+ },
47
+ {
48
+ from: 'tui-radio-block',
49
+ to: 'input',
50
+ addAttributes: ['tuiRadio', 'type="radio"', 'tuiBlock'],
51
+ filterFn: (el) => el.attrs.some((attr) => attr.name === '[hideradio]'),
39
52
  },
40
53
  {
41
54
  from: 'tui-radio-block',
42
55
  to: 'input',
43
56
  addAttributes: ['tuiRadio', 'type="radio"'],
57
+ filterFn: (el) => !el.attrs.some((attr) => attr.name === '[hideradio]'),
44
58
  },
45
59
  {
46
60
  from: 'tui-hosted-dropdown',
@@ -12,6 +12,8 @@ function migrateImportProvidersFrom(options) {
12
12
  ...(0, get_named_import_references_1.getNamedImportReferences)('TuiPushModule', '@taiga-ui/kit'),
13
13
  ...(0, get_named_import_references_1.getNamedImportReferences)('TuiPdfViewerModule', '@taiga-ui/kit'),
14
14
  ...(0, get_named_import_references_1.getNamedImportReferences)('TuiPreviewModule', '@taiga-ui/addon-preview'),
15
+ ...(0, get_named_import_references_1.getNamedImportReferences)('TuiEditor', '@taiga-ui/editor'),
16
+ ...(0, get_named_import_references_1.getNamedImportReferences)('TuiEditorSocket', '@taiga-ui/editor'),
15
17
  ];
16
18
  for (const ref of refs) {
17
19
  if (ref.wasForgotten()) {
@@ -2,3 +2,4 @@ export declare function tuiRound(value: number, precision?: number): number;
2
2
  export declare function tuiCeil(value: number, precision?: number): number;
3
3
  export declare function tuiFloor(value: number, precision?: number): number;
4
4
  export declare function tuiTrunc(value: number, precision?: number): number;
5
+ export declare function tuiIsSafeToRound(value: number, precision?: number): boolean;