@taiga-ui/cdk 4.0.0-rc.7 → 4.0.0-rc.9
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/constants/used-icons.d.ts +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/esm2022/constants/used-icons.mjs +9 -1
- package/esm2022/constants/version.mjs +2 -2
- package/esm2022/services/index.mjs +2 -2
- package/esm2022/services/theme-color.service.mjs +30 -0
- package/fesm2022/taiga-ui-cdk-constants.mjs +9 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-services.mjs +19 -22
- package/fesm2022/taiga-ui-cdk-services.mjs.map +1 -1
- package/package.json +5 -6
- package/schematics/ng-update/interfaces/html-comment.d.ts +3 -2
- package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +6 -2
- package/schematics/ng-update/interfaces/replacement-identifier.d.ts +4 -11
- package/schematics/ng-update/steps/replace-identifier.js +16 -12
- package/schematics/ng-update/utils/templates/replace-attr-values.js +39 -10
- package/schematics/ng-update/utils/templates/template-comments.js +7 -1
- package/schematics/ng-update/v4/index.js +3 -0
- package/schematics/ng-update/v4/migrate-icons/index.js +2 -2
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.d.ts +2 -1
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js +19 -6
- package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js +42 -2
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +34 -3
- package/schematics/ng-update/v4/steps/constants/html-comments.js +9 -0
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +243 -220
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +1 -0
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js +20 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-remove.js +8 -0
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +3 -2
- package/schematics/ng-update/v4/steps/constants/types.js +29 -0
- package/schematics/ng-update/v4/steps/index.d.ts +4 -1
- package/schematics/ng-update/v4/steps/index.js +4 -1
- package/schematics/ng-update/v4/steps/migrate-alert-service.d.ts +2 -0
- package/schematics/ng-update/v4/steps/migrate-alert-service.js +110 -0
- package/schematics/ng-update/v4/steps/migrate-month-context.d.ts +2 -0
- package/schematics/ng-update/v4/steps/migrate-month-context.js +39 -0
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.d.ts +2 -0
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.js +64 -0
- package/schematics/ng-update/v4/steps/migrate-templates.js +5 -0
- package/schematics/ng-update/v4/steps/{migrate-styles.js → styles/index.js} +13 -1
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.d.ts +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js +13 -0
- package/schematics/ng-update/v4/steps/styles/migrate-scrollbar-behavior.d.ts +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-scrollbar-behavior.js +10 -0
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.d.ts +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js +23 -0
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.d.ts +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +20 -0
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.d.ts +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +54 -0
- package/schematics/ng-update/v4/steps/templates/index.d.ts +3 -0
- package/schematics/ng-update/v4/steps/templates/index.js +3 -0
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +10 -5
- package/schematics/ng-update/{v3/steps/migrate-polymorpheus.d.ts → v4/steps/templates/migrate-axes.d.ts} +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-axes.js +26 -0
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js +7 -6
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +2 -1
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +3 -2
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.js +7 -4
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +1 -1
- package/schematics/ng-update/{v3/steps/migrate-textfield-controller.d.ts → v4/steps/templates/migrate-mobile-tabs.d.ts} +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js +45 -0
- package/schematics/ng-update/v4/steps/templates/migrate-notification.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-notification.js +64 -0
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js +36 -0
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +4 -6
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +2 -1
- package/schematics/ng-update/v4/steps/templates/toggles/common.js +3 -2
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +2 -1
- package/schematics/ng-update/v4/steps/update-packages.js +13 -4
- package/schematics/utils/templates/elements.js +2 -1
- package/schematics/utils/templates/inputs.js +2 -1
- package/services/index.d.ts +1 -1
- package/services/theme-color.service.d.ts +16 -0
- package/esm2022/services/static-request.service.mjs +0 -33
- package/schematics/ng-update/v3/constants/breakpoints.d.ts +0 -82
- package/schematics/ng-update/v3/constants/breakpoints.js +0 -34
- package/schematics/ng-update/v3/constants/constants.d.ts +0 -2
- package/schematics/ng-update/v3/constants/constants.js +0 -466
- package/schematics/ng-update/v3/constants/deprecated-functions.d.ts +0 -2
- package/schematics/ng-update/v3/constants/deprecated-functions.js +0 -680
- package/schematics/ng-update/v3/constants/enums.d.ts +0 -2
- package/schematics/ng-update/v3/constants/enums.js +0 -284
- package/schematics/ng-update/v3/constants/modules.d.ts +0 -2
- package/schematics/ng-update/v3/constants/modules.js +0 -9
- package/schematics/ng-update/v3/constants/services.d.ts +0 -2
- package/schematics/ng-update/v3/constants/services.js +0 -53
- package/schematics/ng-update/v3/constants/templates.d.ts +0 -57
- package/schematics/ng-update/v3/constants/templates.js +0 -744
- package/schematics/ng-update/v3/constants/tui-interactive-selectors.d.ts +0 -1
- package/schematics/ng-update/v3/constants/tui-interactive-selectors.js +0 -55
- package/schematics/ng-update/v3/constants/types.d.ts +0 -2
- package/schematics/ng-update/v3/constants/types.js +0 -156
- package/schematics/ng-update/v3/constants/warnings.d.ts +0 -2
- package/schematics/ng-update/v3/constants/warnings.js +0 -111
- package/schematics/ng-update/v3/index.d.ts +0 -3
- package/schematics/ng-update/v3/index.js +0 -105
- package/schematics/ng-update/v3/schema.json +0 -13
- package/schematics/ng-update/v3/steps/migrate-date-time.d.ts +0 -2
- package/schematics/ng-update/v3/steps/migrate-date-time.js +0 -207
- package/schematics/ng-update/v3/steps/migrate-polymorpheus.js +0 -78
- package/schematics/ng-update/v3/steps/migrate-progress.d.ts +0 -8
- package/schematics/ng-update/v3/steps/migrate-progress.js +0 -49
- package/schematics/ng-update/v3/steps/migrate-sliders/index.d.ts +0 -3
- package/schematics/ng-update/v3/steps/migrate-sliders/index.js +0 -19
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.d.ts +0 -3
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +0 -103
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.d.ts +0 -3
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +0 -90
- package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.d.ts +0 -3
- package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.js +0 -70
- package/schematics/ng-update/v3/steps/migrate-templates.d.ts +0 -4
- package/schematics/ng-update/v3/steps/migrate-templates.js +0 -216
- package/schematics/ng-update/v3/steps/migrate-textfield-controller.js +0 -98
- package/schematics/ng-update/v3/steps/miscellaneous.d.ts +0 -2
- package/schematics/ng-update/v3/steps/miscellaneous.js +0 -81
- package/schematics/ng-update/v3/steps/replace-functions.d.ts +0 -2
- package/schematics/ng-update/v3/steps/replace-functions.js +0 -138
- package/schematics/ng-update/v3/steps/replace-styles.d.ts +0 -3
- package/schematics/ng-update/v3/steps/replace-styles.js +0 -33
- package/schematics/ng-update/v3-30/constants/constants.d.ts +0 -2
- package/schematics/ng-update/v3-30/constants/constants.js +0 -8
- package/schematics/ng-update/v3-30/constants/icons.d.ts +0 -4
- package/schematics/ng-update/v3-30/constants/icons.js +0 -993
- package/schematics/ng-update/v3-30/index.d.ts +0 -3
- package/schematics/ng-update/v3-30/index.js +0 -33
- package/schematics/ng-update/v3-35/constants/constants.d.ts +0 -2
- package/schematics/ng-update/v3-35/constants/constants.js +0 -8
- package/schematics/ng-update/v3-35/constants/icons.d.ts +0 -4
- package/schematics/ng-update/v3-35/constants/icons.js +0 -2537
- package/schematics/ng-update/v3-35/index.d.ts +0 -3
- package/schematics/ng-update/v3-35/index.js +0 -33
- package/schematics/ng-update/v3-36/index.d.ts +0 -3
- package/schematics/ng-update/v3-36/index.js +0 -23
- package/schematics/ng-update/v3-40/index.d.ts +0 -3
- package/schematics/ng-update/v3-40/index.js +0 -62
- package/schematics/ng-update/v3-5/index.d.ts +0 -3
- package/schematics/ng-update/v3-5/index.js +0 -20
- package/schematics/ng-update/v3-5/steps/migrate-expand-templates.d.ts +0 -3
- package/schematics/ng-update/v3-5/steps/migrate-expand-templates.js +0 -44
- package/services/static-request.service.d.ts +0 -8
- /package/schematics/ng-update/v4/steps/{migrate-styles.d.ts → styles/index.d.ts} +0 -0
@@ -1,33 +0,0 @@
|
|
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 get_file_system_1 = require("../utils/get-file-system");
|
8
|
-
const replace_text_1 = require("../utils/replace-text");
|
9
|
-
const constants_1 = require("./constants/constants");
|
10
|
-
const icons_1 = require("./constants/icons");
|
11
|
-
function hasProprietaryIcons(tree) {
|
12
|
-
return !!(0, ng_morph_1.getPackageJsonDependency)(tree, '@taiga-ui/proprietary-icons');
|
13
|
-
}
|
14
|
-
// TODO: drop in v4.x
|
15
|
-
function updateToV3_35(options) {
|
16
|
-
return (tree, _) => {
|
17
|
-
if (!hasProprietaryIcons(tree)) {
|
18
|
-
!options['skip-logs'] &&
|
19
|
-
(0, colored_log_1.titleLog)(`${colored_log_1.FINISH_SYMBOL} No migrations required\n`);
|
20
|
-
return;
|
21
|
-
}
|
22
|
-
const fileSystem = (0, get_file_system_1.getFileSystem)(tree);
|
23
|
-
(0, replace_imports_1.replaceImports)(constants_1.ICONS_TS, options);
|
24
|
-
!options['skip-logs'] &&
|
25
|
-
(0, colored_log_1.infoLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing strings...`);
|
26
|
-
(0, replace_text_1.replaceText)(icons_1.ICONS.map(({ from, to }) => ({ from: new RegExp(`\\b${from}\\b`, 'g'), to })));
|
27
|
-
fileSystem.commitEdits();
|
28
|
-
(0, ng_morph_1.saveActiveProject)();
|
29
|
-
!options['skip-logs'] &&
|
30
|
-
(0, colored_log_1.titleLog)(`${colored_log_1.FINISH_SYMBOL} Icons successfully migrated \n`);
|
31
|
-
};
|
32
|
-
}
|
33
|
-
exports.updateToV3_35 = updateToV3_35;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updateToV3_36 = void 0;
|
4
|
-
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
5
|
-
const colored_log_1 = require("../../utils/colored-log");
|
6
|
-
const steps_1 = require("../steps");
|
7
|
-
const OLD_PACKAGE = '@taiga-ui/addon-editor';
|
8
|
-
const NEW_PACKAGE = '@taiga-ui/editor';
|
9
|
-
const NEW_PACKAGE_VERSION = '^2.0.0';
|
10
|
-
// TODO: drop in v4.x
|
11
|
-
function updateToV3_36(options) {
|
12
|
-
return (tree, context) => {
|
13
|
-
!options['skip-logs'] &&
|
14
|
-
(0, colored_log_1.infoLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing imports for ${OLD_PACKAGE}...`);
|
15
|
-
(0, steps_1.replacePackageName)(OLD_PACKAGE, {
|
16
|
-
name: NEW_PACKAGE,
|
17
|
-
version: NEW_PACKAGE_VERSION,
|
18
|
-
}, tree);
|
19
|
-
context.addTask(new tasks_1.NodePackageInstallTask());
|
20
|
-
!options['skip-logs'] && (0, colored_log_1.titleLog)(`${colored_log_1.FINISH_SYMBOL} successfully migrated \n`);
|
21
|
-
};
|
22
|
-
}
|
23
|
-
exports.updateToV3_36 = updateToV3_36;
|
@@ -1,62 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updateToV3_40 = 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 elements_1 = require("../../utils/templates/elements");
|
9
|
-
const get_component_templates_1 = require("../../utils/templates/get-component-templates");
|
10
|
-
const template_resource_1 = require("../../utils/templates/template-resource");
|
11
|
-
const get_file_system_1 = require("../utils/get-file-system");
|
12
|
-
const replace_text_1 = require("../utils/replace-text");
|
13
|
-
const replace_tag_1 = require("../utils/templates/replace-tag");
|
14
|
-
function replaceTextareaTag(options, fileSystem) {
|
15
|
-
!options['skip-logs'] &&
|
16
|
-
(0, colored_log_1.infoLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing <tui-text-area /> to <tui-textarea />`);
|
17
|
-
(0, get_component_templates_1.getComponentTemplates)(constants_1.ALL_TS_FILES).forEach((resource) => {
|
18
|
-
const template = (0, template_resource_1.getTemplateFromTemplateResource)(resource, fileSystem);
|
19
|
-
const elements = (0, elements_1.findElementsByTagName)(template, 'tui-text-area');
|
20
|
-
const path = fileSystem.resolve((0, template_resource_1.getPathFromTemplateResource)(resource));
|
21
|
-
const recorder = fileSystem.edit(path);
|
22
|
-
elements.forEach(({ sourceCodeLocation }) => {
|
23
|
-
if (sourceCodeLocation) {
|
24
|
-
(0, replace_tag_1.replaceTag)(recorder, sourceCodeLocation, 'tui-text-area', 'tui-textarea');
|
25
|
-
}
|
26
|
-
});
|
27
|
-
});
|
28
|
-
fileSystem.commitEdits();
|
29
|
-
(0, ng_morph_1.saveActiveProject)();
|
30
|
-
(0, ng_morph_1.setActiveProject)((0, ng_morph_1.createProject)(fileSystem.tree, (0, project_root_1.projectRoot)(), constants_1.ALL_FILES));
|
31
|
-
}
|
32
|
-
function replaceTextareaReferenceTypes(options, fileSystem) {
|
33
|
-
!options['skip-logs'] &&
|
34
|
-
(0, colored_log_1.infoLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing TuiTextArea(Module|Directive|Component) to TuiTextarea(Module|Directive|Component)`);
|
35
|
-
(0, replace_text_1.replaceText)([
|
36
|
-
{
|
37
|
-
from: 'TuiTextAreaModule',
|
38
|
-
to: 'TuiTextareaModule',
|
39
|
-
},
|
40
|
-
{
|
41
|
-
from: 'TuiTextAreaDirective',
|
42
|
-
to: 'TuiTextareaDirective',
|
43
|
-
},
|
44
|
-
{
|
45
|
-
from: 'TuiTextAreaComponent',
|
46
|
-
to: 'TuiTextareaComponent',
|
47
|
-
},
|
48
|
-
]);
|
49
|
-
fileSystem.commitEdits();
|
50
|
-
(0, ng_morph_1.saveActiveProject)();
|
51
|
-
(0, ng_morph_1.setActiveProject)((0, ng_morph_1.createProject)(fileSystem.tree, (0, project_root_1.projectRoot)(), constants_1.ALL_FILES));
|
52
|
-
}
|
53
|
-
// TODO: drop in v4.x
|
54
|
-
function updateToV3_40(options) {
|
55
|
-
return (tree, _) => {
|
56
|
-
const fileSystem = (0, get_file_system_1.getFileSystem)(tree);
|
57
|
-
replaceTextareaTag(options, fileSystem);
|
58
|
-
replaceTextareaReferenceTypes(options, fileSystem);
|
59
|
-
!options['skip-logs'] && (0, colored_log_1.titleLog)(`${colored_log_1.FINISH_SYMBOL} successfully migrated \n`);
|
60
|
-
};
|
61
|
-
}
|
62
|
-
exports.updateToV3_40 = updateToV3_40;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updateToV3_5 = void 0;
|
4
|
-
const ng_morph_1 = require("ng-morph");
|
5
|
-
const versions_1 = require("../../ng-add/constants/versions");
|
6
|
-
const colored_log_1 = require("../../utils/colored-log");
|
7
|
-
const get_file_system_1 = require("../utils/get-file-system");
|
8
|
-
const migrate_expand_templates_1 = require("./steps/migrate-expand-templates");
|
9
|
-
// TODO: drop in v4.x
|
10
|
-
function updateToV3_5(options) {
|
11
|
-
return (tree, _) => {
|
12
|
-
const fileSystem = (0, get_file_system_1.getFileSystem)(tree);
|
13
|
-
(0, migrate_expand_templates_1.migrateExpandTemplates)(fileSystem, options);
|
14
|
-
fileSystem.commitEdits();
|
15
|
-
(0, ng_morph_1.saveActiveProject)();
|
16
|
-
!options['skip-logs'] &&
|
17
|
-
(0, colored_log_1.titleLog)(`${colored_log_1.FINISH_SYMBOL} We migrated packages to @taiga-ui/*@${versions_1.TAIGA_VERSION}\n`);
|
18
|
-
};
|
19
|
-
}
|
20
|
-
exports.updateToV3_5 = updateToV3_5;
|
@@ -1,44 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.migrateExpandTemplates = void 0;
|
4
|
-
const constants_1 = require("../../../constants");
|
5
|
-
const colored_log_1 = require("../../../utils/colored-log");
|
6
|
-
const progress_1 = require("../../../utils/progress");
|
7
|
-
const elements_1 = require("../../../utils/templates/elements");
|
8
|
-
const get_component_templates_1 = require("../../../utils/templates/get-component-templates");
|
9
|
-
const template_resource_1 = require("../../../utils/templates/template-resource");
|
10
|
-
function migrateExpand({ resource, recorder, fileSystem, }) {
|
11
|
-
const template = (0, template_resource_1.getTemplateFromTemplateResource)(resource, fileSystem);
|
12
|
-
const templateOffset = (0, template_resource_1.getTemplateOffset)(resource);
|
13
|
-
const elements = (0, elements_1.findElementsByTagName)(template, 'tui-expand');
|
14
|
-
elements.forEach((element) => {
|
15
|
-
var _a, _b, _c;
|
16
|
-
const templateElement = (0, elements_1.findElementsByFn)(element.childNodes, (el) => el.tagName === 'ng-template')[0];
|
17
|
-
if (!templateElement) {
|
18
|
-
return;
|
19
|
-
}
|
20
|
-
const tuiExpandAttr = templateElement.attrs.find((attr) => attr.name === 'tuiexpandcontent');
|
21
|
-
const insertTo = (_c = (_b = (_a = templateElement === null || templateElement === void 0 ? void 0 : templateElement.sourceCodeLocation) === null || _a === void 0 ? void 0 : _a.startTag) === null || _b === void 0 ? void 0 : _b.endOffset) !== null && _c !== void 0 ? _c : 0;
|
22
|
-
if (!insertTo || tuiExpandAttr) {
|
23
|
-
return;
|
24
|
-
}
|
25
|
-
recorder.insertRight(insertTo + templateOffset - 1, ' tuiExpandContent');
|
26
|
-
});
|
27
|
-
}
|
28
|
-
function migrateExpandTemplates(fileSystem, options) {
|
29
|
-
!options['skip-logs'] &&
|
30
|
-
(0, colored_log_1.infoLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} migrating templates...`);
|
31
|
-
const componentWithTemplatesPaths = (0, get_component_templates_1.getComponentTemplates)(constants_1.ALL_TS_FILES);
|
32
|
-
const progressLog = (0, progress_1.setupProgressLogger)({
|
33
|
-
total: componentWithTemplatesPaths.length,
|
34
|
-
});
|
35
|
-
componentWithTemplatesPaths.forEach((resource) => {
|
36
|
-
const path = fileSystem.resolve((0, template_resource_1.getPathFromTemplateResource)(resource));
|
37
|
-
const recorder = fileSystem.edit(path);
|
38
|
-
!options['skip-logs'] && progressLog('expand migration', true);
|
39
|
-
migrateExpand({ resource, fileSystem, recorder });
|
40
|
-
});
|
41
|
-
!options['skip-logs'] &&
|
42
|
-
(0, colored_log_1.successLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} templates migrated \n`);
|
43
|
-
}
|
44
|
-
exports.migrateExpandTemplates = migrateExpandTemplates;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import type { Observable } from 'rxjs';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class TuiStaticRequestService {
|
4
|
-
private readonly cache;
|
5
|
-
request(url: string): Observable<string>;
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiStaticRequestService, never>;
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TuiStaticRequestService>;
|
8
|
-
}
|
File without changes
|