@taiga-ui/cdk 3.34.0 → 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.
- package/abstract/dialog.directive.d.ts +4 -3
- package/bundles/taiga-ui-cdk-abstract.umd.js +6 -9
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-enums.umd.js +4 -0
- package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +2 -0
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +8 -3
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/esm2015/abstract/dialog.directive.js +8 -7
- package/esm2015/constants/version.js +2 -2
- package/esm2015/enums/day-of-week.js +3 -1
- package/esm2015/enums/month-number.js +3 -1
- package/esm2015/observables/drag-and-drop-from.js +3 -1
- package/esm2015/services/static-request.service.js +7 -2
- package/esm2015/types/index.js +2 -1
- package/esm2015/types/values-of.js +2 -0
- package/esm2015/utils/miscellaneous/uniq-by.js +1 -1
- package/fesm2015/taiga-ui-cdk-abstract.js +5 -4
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-enums.js +4 -0
- package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +2 -0
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +6 -1
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/package.json +5 -5
- package/schematics/migration.json +6 -1
- package/schematics/ng-add/steps/add-taiga-modules.js +9 -1
- package/schematics/ng-update/v3-30/constants/icons.js +1 -1
- package/schematics/ng-update/v3-30/index.js +2 -2
- package/schematics/ng-update/v3-35/constants/constants.d.ts +2 -0
- package/schematics/ng-update/v3-35/constants/constants.js +8 -0
- package/schematics/ng-update/v3-35/constants/icons.d.ts +4 -0
- package/schematics/ng-update/v3-35/constants/icons.js +2357 -0
- package/schematics/ng-update/v3-35/index.d.ts +3 -0
- package/schematics/ng-update/v3-35/index.js +33 -0
- package/types/index.d.ts +1 -0
- package/types/values-of.d.ts +1 -0
- /package/schematics/ng-update/{v3-30/steps → steps/icons}/replace-imports.d.ts +0 -0
- /package/schematics/ng-update/{v3-30/steps → steps/icons}/replace-imports.js +0 -0
- /package/schematics/ng-update/{v3-30/steps → steps/icons}/replace-text.d.ts +0 -0
- /package/schematics/ng-update/{v3-30/steps → steps/icons}/replace-text.js +0 -0
@@ -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
|
+
}
|
package/types/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export declare type TuiValuesOf<T> = T[keyof T];
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|