@taiga-ui/cdk 3.54.0-canary.79fb39d → 3.54.0-canary.c32771f
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/bundles/taiga-ui-cdk-constants.umd.js +2 -2
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +4 -16
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +1 -4
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.js +1 -2
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
- package/constants/used-icons.d.ts +1 -1
- package/esm2015/constants/used-icons.js +3 -3
- package/esm2015/directives/auto-focus/autofocus.options.js +1 -2
- package/esm2015/directives/auto-focus/handlers/ios.handler.js +3 -4
- package/esm2015/directives/focus-trap/focus-trap.directive.js +2 -5
- package/esm2015/directives/media/media.directive.js +2 -3
- package/fesm2015/taiga-ui-cdk-constants.js +2 -2
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +2 -3
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +1 -4
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-media.js +1 -2
- package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-update/v3/steps/migrate-progress.js +6 -8
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +6 -6
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +4 -4
- package/schematics/ng-update/v3-40/index.js +2 -3
- package/schematics/ng-update/v4/steps/utils/replace-substrings.js +2 -2
@@ -24,8 +24,7 @@ exports.updateToV3_40 = updateToV3_40;
|
|
24
24
|
function replaceTextareaTag(options, fileSystem) {
|
25
25
|
!options[`skip-logs`] &&
|
26
26
|
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing <tui-text-area /> to <tui-textarea />`);
|
27
|
-
|
28
|
-
for (const resource of templateResources) {
|
27
|
+
get_component_templates_1.getComponentTemplates(constants_1.ALL_TS_FILES).forEach(resource => {
|
29
28
|
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
30
29
|
const elements = elements_1.findElementsByTagName(template, `tui-text-area`);
|
31
30
|
const path = fileSystem.resolve(template_resource_1.getPathFromTemplateResource(resource));
|
@@ -35,7 +34,7 @@ function replaceTextareaTag(options, fileSystem) {
|
|
35
34
|
replace_tag_1.replaceTag(recorder, sourceCodeLocation, `tui-text-area`, `tui-textarea`);
|
36
35
|
}
|
37
36
|
});
|
38
|
-
}
|
37
|
+
});
|
39
38
|
fileSystem.commitEdits();
|
40
39
|
ng_morph_1.saveActiveProject();
|
41
40
|
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, project_root_1.projectRoot(), constants_1.ALL_FILES));
|
@@ -9,11 +9,11 @@ function replaceSubstring(text, replacement) {
|
|
9
9
|
function replaceSubstrings(text, replacements) {
|
10
10
|
let transformed = text;
|
11
11
|
let acc = 0;
|
12
|
-
|
12
|
+
replacements.forEach(replacement => {
|
13
13
|
replacement.start += acc;
|
14
14
|
transformed = replaceSubstring(transformed, replacement);
|
15
15
|
acc += replacement.to.length - replacement.from.length;
|
16
|
-
}
|
16
|
+
});
|
17
17
|
return transformed;
|
18
18
|
}
|
19
19
|
exports.replaceSubstrings = replaceSubstrings;
|