@taiga-ui/cdk 3.34.0-dev.main-f9dbe75 → 3.35.0-dev.main-cea3565

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 (38) hide show
  1. package/abstract/dialog.directive.d.ts +4 -3
  2. package/bundles/taiga-ui-cdk-abstract.umd.js +6 -9
  3. package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
  4. package/bundles/taiga-ui-cdk-constants.umd.js +1 -1
  5. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  6. package/bundles/taiga-ui-cdk-enums.umd.js +4 -0
  7. package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
  8. package/bundles/taiga-ui-cdk-observables.umd.js +2 -0
  9. package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
  10. package/constants/version.d.ts +1 -1
  11. package/constants/version.js +1 -1
  12. package/esm2015/abstract/dialog.directive.js +8 -7
  13. package/esm2015/constants/version.js +2 -2
  14. package/esm2015/enums/day-of-week.js +3 -1
  15. package/esm2015/enums/month-number.js +3 -1
  16. package/esm2015/observables/drag-and-drop-from.js +3 -1
  17. package/fesm2015/taiga-ui-cdk-abstract.js +5 -4
  18. package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
  19. package/fesm2015/taiga-ui-cdk-constants.js +1 -1
  20. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  21. package/fesm2015/taiga-ui-cdk-enums.js +4 -0
  22. package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
  23. package/fesm2015/taiga-ui-cdk-observables.js +2 -0
  24. package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
  25. package/package.json +1 -1
  26. package/schematics/migration.json +6 -1
  27. package/schematics/ng-update/v3-30/constants/icons.js +1 -1
  28. package/schematics/ng-update/v3-30/index.js +2 -2
  29. package/schematics/ng-update/v3-35/constants/constants.d.ts +2 -0
  30. package/schematics/ng-update/v3-35/constants/constants.js +8 -0
  31. package/schematics/ng-update/v3-35/constants/icons.d.ts +4 -0
  32. package/schematics/ng-update/v3-35/constants/icons.js +2357 -0
  33. package/schematics/ng-update/v3-35/index.d.ts +3 -0
  34. package/schematics/ng-update/v3-35/index.js +33 -0
  35. /package/schematics/ng-update/{v3-30/steps → steps/icons}/replace-imports.d.ts +0 -0
  36. /package/schematics/ng-update/{v3-30/steps → steps/icons}/replace-imports.js +0 -0
  37. /package/schematics/ng-update/{v3-30/steps → steps/icons}/replace-text.d.ts +0 -0
  38. /package/schematics/ng-update/{v3-30/steps → steps/icons}/replace-text.js +0 -0
@@ -0,0 +1,3 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { TuiSchema } from '../../ng-add/schema';
3
+ export declare function updateToV3_35(options: TuiSchema): Rule;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateToV3_35 = void 0;
4
+ const ng_morph_1 = require("ng-morph");
5
+ const colored_log_1 = require("../../utils/colored-log");
6
+ const replace_imports_1 = require("../steps/icons/replace-imports");
7
+ const replace_text_1 = require("../steps/icons/replace-text");
8
+ const get_file_system_1 = require("../utils/get-file-system");
9
+ const constants_1 = require("./constants/constants");
10
+ const icons_1 = require("./constants/icons");
11
+ // eslint-disable-next-line @typescript-eslint/naming-convention
12
+ function updateToV3_35(options) {
13
+ return (tree, _) => {
14
+ if (!hasProprietaryIcons(tree)) {
15
+ !options[`skip-logs`] &&
16
+ colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} No migrations required\n`);
17
+ return;
18
+ }
19
+ const fileSystem = get_file_system_1.getFileSystem(tree);
20
+ replace_imports_1.replaceImports(constants_1.ICONS_TS, options);
21
+ !options[`skip-logs`] &&
22
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing strings...`);
23
+ replace_text_1.replaceText(icons_1.ICONS);
24
+ fileSystem.commitEdits();
25
+ ng_morph_1.saveActiveProject();
26
+ !options[`skip-logs`] &&
27
+ colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} Icons successfully migrated \n`);
28
+ };
29
+ }
30
+ exports.updateToV3_35 = updateToV3_35;
31
+ function hasProprietaryIcons(tree) {
32
+ return !!ng_morph_1.getPackageJsonDependency(tree, `@taiga-ui/proprietary-icons`);
33
+ }