@taiga-ui/cdk 3.11.0 → 3.12.0
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.service.d.ts +1 -1
- package/bundles/taiga-ui-cdk-abstract.umd.js +1 -1
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-coercion.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-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js +3 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.js +18 -332
- package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +3 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +3 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +16 -16
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +9 -3
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js +5 -2
- package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
- package/coercion/coerce-boolean-property.d.ts +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/date-time/time.d.ts +1 -1
- package/date-time/year.d.ts +1 -1
- package/directives/auto-focus/autofocus.directive.d.ts +1 -1
- package/directives/checked/checked.directive.d.ts +1 -1
- package/directives/droppable/droppable.directive.d.ts +1 -1
- package/directives/element/element.directive.d.ts +2 -1
- package/directives/for-async/for-async.directive.d.ts +1 -1
- package/directives/overscroll/overscroll.directive.d.ts +1 -1
- package/directives/prevent-default/prevent-default.directive.d.ts +1 -1
- package/esm2015/abstract/dialog.directive.js +3 -3
- package/esm2015/abstract/dialog.service.js +1 -1
- package/esm2015/coercion/coerce-boolean-property.js +1 -1
- package/esm2015/constants/version.js +2 -2
- package/esm2015/date-time/time.js +1 -1
- package/esm2015/date-time/year.js +1 -1
- package/esm2015/directives/auto-focus/autofocus.directive.js +1 -1
- package/esm2015/directives/checked/checked.directive.js +1 -1
- package/esm2015/directives/droppable/droppable.directive.js +5 -3
- package/esm2015/directives/element/element.directive.js +18 -4
- package/esm2015/directives/for-async/for-async.directive.js +1 -1
- package/esm2015/directives/overscroll/overscroll.directive.js +5 -3
- package/esm2015/directives/prevent-default/prevent-default.directive.js +5 -3
- package/esm2015/interfaces/alert-context.js +1 -1
- package/esm2015/interfaces/swipe.js +1 -1
- package/esm2015/interfaces/zoom.js +1 -1
- package/esm2015/observables/control-value.js +15 -0
- package/esm2015/observables/index.js +2 -2
- package/esm2015/observables/must-be-present.js +1 -1
- package/esm2015/services/focus-visible.service.js +5 -3
- package/esm2015/services/obscured.service.js +4 -2
- package/esm2015/services/resize.service.js +5 -3
- package/esm2015/types/autocomplete.js +1 -1
- package/esm2015/types/dialog.js +1 -1
- package/esm2015/types/event-with.js +1 -1
- package/esm2015/types/input-mode.js +1 -1
- package/esm2015/types/input-type.js +1 -1
- package/esm2015/types/overscroll-mode.js +1 -1
- package/esm2015/types/time-mode.js +1 -1
- package/esm2015/utils/dom/element-checks.js +1 -1
- package/esm2015/utils/focus/set-native-mouse-focused.js +1 -1
- package/esm2015/utils/math/to-int.js +1 -1
- package/esm2015/utils/svg/svg-linear-gradient-processor.js +6 -3
- package/fesm2015/taiga-ui-cdk-abstract.js +2 -2
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-coercion.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-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +4 -2
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-element.js +17 -3
- package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js +4 -2
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +4 -2
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +15 -15
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +10 -4
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js +5 -2
- package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
- package/interfaces/alert-context.d.ts +1 -1
- package/interfaces/swipe.d.ts +1 -1
- package/interfaces/zoom.d.ts +1 -1
- package/observables/{replay-control-value-changes.d.ts → control-value.d.ts} +0 -0
- package/observables/index.d.ts +1 -1
- package/observables/must-be-present.d.ts +1 -1
- package/package.json +5 -5
- package/schematics/constants/file-globs.js +2 -2
- package/schematics/constants/taiga-styles.js +4 -4
- package/schematics/ng-add/constants/modules.d.ts +4 -4
- package/schematics/ng-add/constants/modules.js +12 -12
- package/schematics/ng-add/constants/packages.js +1 -1
- package/schematics/ng-add/constants/versions.js +3 -3
- package/schematics/ng-add/index.d.ts +2 -2
- package/schematics/ng-add/index.js +11 -12
- package/schematics/ng-add/schema.d.ts +9 -2
- package/schematics/ng-add/schema.json +1 -1
- package/schematics/ng-add/setup-project.d.ts +2 -2
- package/schematics/ng-add/steps/add-taiga-icons.d.ts +3 -3
- package/schematics/ng-add/steps/add-taiga-icons.js +8 -9
- package/schematics/ng-add/steps/add-taiga-modules.d.ts +2 -2
- package/schematics/ng-add/steps/add-taiga-modules.js +7 -7
- package/schematics/ng-add/steps/add-taiga-styles.d.ts +2 -2
- package/schematics/ng-add/steps/add-taiga-styles.js +3 -4
- package/schematics/ng-add/steps/wrap-with-tui-root.d.ts +2 -2
- package/schematics/ng-add/steps/wrap-with-tui-root.js +14 -14
- package/schematics/ng-update/constants/consts.d.ts +1 -1
- package/schematics/ng-update/constants/consts.js +177 -177
- package/schematics/ng-update/constants/deprecated-functions.js +410 -405
- package/schematics/ng-update/constants/enums.js +123 -123
- package/schematics/ng-update/constants/modules.js +4 -4
- package/schematics/ng-update/constants/services.d.ts +2 -2
- package/schematics/ng-update/constants/services.js +16 -16
- package/schematics/ng-update/constants/templates.d.ts +1 -1
- package/schematics/ng-update/constants/templates.js +276 -276
- package/schematics/ng-update/constants/tui-interactive-selectors.js +50 -50
- package/schematics/ng-update/constants/types.d.ts +1 -1
- package/schematics/ng-update/constants/types.js +87 -87
- package/schematics/ng-update/constants/warnings.js +62 -62
- package/schematics/ng-update/index.d.ts +3 -3
- package/schematics/ng-update/index.js +44 -40
- package/schematics/ng-update/interfaces/asset.d.ts +6 -0
- package/schematics/ng-update/interfaces/asset.js +2 -0
- package/schematics/ng-update/steps/migrate-date-time.d.ts +2 -1
- package/schematics/ng-update/steps/migrate-date-time.js +55 -49
- package/schematics/ng-update/steps/migrate-polymorpheus.d.ts +1 -1
- package/schematics/ng-update/steps/migrate-polymorpheus.js +14 -14
- package/schematics/ng-update/steps/migrate-progress.d.ts +2 -1
- package/schematics/ng-update/steps/migrate-progress.js +16 -12
- package/schematics/ng-update/steps/migrate-sliders/index.d.ts +2 -1
- package/schematics/ng-update/steps/migrate-sliders/index.js +13 -9
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-range.d.ts +2 -1
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-range.js +35 -33
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-slider.d.ts +2 -1
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-slider.js +34 -33
- package/schematics/ng-update/steps/migrate-taiga-proprietary-icons.d.ts +2 -2
- package/schematics/ng-update/steps/migrate-taiga-proprietary-icons.js +29 -27
- package/schematics/ng-update/steps/migrate-templates.d.ts +2 -1
- package/schematics/ng-update/steps/migrate-templates.js +36 -32
- package/schematics/ng-update/steps/migrate-textfield-controller.d.ts +1 -1
- package/schematics/ng-update/steps/migrate-textfield-controller.js +34 -34
- package/schematics/ng-update/steps/miscellaneous.d.ts +2 -1
- package/schematics/ng-update/steps/miscellaneous.js +21 -19
- package/schematics/ng-update/steps/remove-module.d.ts +2 -1
- package/schematics/ng-update/steps/remove-module.js +6 -4
- package/schematics/ng-update/steps/rename-types.d.ts +2 -1
- package/schematics/ng-update/steps/rename-types.js +10 -8
- package/schematics/ng-update/steps/replace-const.d.ts +2 -1
- package/schematics/ng-update/steps/replace-const.js +8 -6
- package/schematics/ng-update/steps/replace-deep-import.d.ts +2 -1
- package/schematics/ng-update/steps/replace-deep-import.js +10 -5
- package/schematics/ng-update/steps/replace-enums.d.ts +2 -1
- package/schematics/ng-update/steps/replace-enums.js +8 -6
- package/schematics/ng-update/steps/replace-functions.d.ts +2 -1
- package/schematics/ng-update/steps/replace-functions.js +17 -15
- package/schematics/ng-update/steps/replace-services.d.ts +2 -1
- package/schematics/ng-update/steps/replace-services.js +13 -11
- package/schematics/ng-update/steps/replace-styles.js +7 -5
- package/schematics/ng-update/steps/show-warnings.js +2 -2
- package/schematics/ng-update/v3-5/steps/migrate-expand-templates.d.ts +2 -1
- package/schematics/ng-update/v3-5/steps/migrate-expand-templates.js +12 -10
- package/schematics/utils/add-import-to-closest-module.js +2 -2
- package/schematics/utils/add-unique-import.js +1 -1
- package/schematics/utils/angular/ng-component.js +1 -1
- package/schematics/utils/angular/ng-module.js +1 -1
- package/schematics/utils/angular-json-manipulations.d.ts +3 -3
- package/schematics/utils/angular-json-manipulations.js +52 -37
- package/schematics/utils/colored-log.js +5 -5
- package/schematics/utils/create-angular-json.d.ts +1 -0
- package/schematics/utils/create-angular-json.js +28 -2
- package/schematics/utils/get-named-import-references.d.ts +1 -1
- package/schematics/utils/get-named-import-references.js +2 -2
- package/schematics/utils/get-project-target-options.d.ts +1 -1
- package/schematics/utils/get-project-target-options.js +1 -1
- package/schematics/utils/get-projects.d.ts +3 -0
- package/schematics/utils/get-projects.js +15 -0
- package/schematics/utils/progress.js +2 -2
- package/schematics/utils/replace-tag.d.ts +1 -1
- package/schematics/utils/replace-tag.js +4 -4
- package/schematics/utils/templates/elements.js +4 -4
- package/schematics/utils/templates/get-component-templates.js +6 -6
- package/schematics/utils/templates/ng-component-input-manipulations.d.ts +4 -4
- package/schematics/utils/templates/ng-component-input-manipulations.js +7 -7
- package/schematics/utils/templates/template-resource.d.ts +1 -1
- package/schematics/utils/templates/template-resource.js +3 -3
- package/services/focus-visible.service.d.ts +1 -1
- package/services/obscured.service.d.ts +2 -2
- package/services/resize.service.d.ts +1 -1
- package/types/autocomplete.d.ts +1 -1
- package/types/dialog.d.ts +2 -2
- package/types/event-with.d.ts +2 -2
- package/types/input-mode.d.ts +1 -1
- package/types/input-type.d.ts +1 -1
- package/types/overscroll-mode.d.ts +1 -1
- package/types/time-mode.d.ts +1 -1
- package/utils/dom/element-checks.d.ts +1 -1
- package/utils/focus/set-native-mouse-focused.d.ts +1 -1
- package/utils/math/to-int.d.ts +1 -1
- package/utils/svg/svg-linear-gradient-processor.d.ts +2 -1
- package/esm2015/observables/replay-control-value-changes.js +0 -15
- package/schematics/ng-update/constants/functions.d.ts +0 -0
- package/schematics/ng-update/constants/functions.js +0 -1
- package/schematics/utils/get-project.d.ts +0 -3
- package/schematics/utils/get-project.js +0 -13
|
@@ -5,31 +5,32 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const ng_morph_1 = require("ng-morph");
|
|
7
7
|
const perf_hooks_1 = require("perf_hooks");
|
|
8
|
+
const constants_1 = require("../constants");
|
|
9
|
+
const taiga_styles_1 = require("../constants/taiga-styles");
|
|
8
10
|
const versions_1 = require("../ng-add/constants/versions");
|
|
9
|
-
const
|
|
11
|
+
const angular_json_manipulations_1 = require("../utils/angular-json-manipulations");
|
|
12
|
+
const colored_log_1 = require("../utils/colored-log");
|
|
13
|
+
const get_execution_time_1 = require("../utils/get-execution-time");
|
|
14
|
+
const migrate_date_time_1 = require("./steps/migrate-date-time");
|
|
15
|
+
const migrate_progress_1 = require("./steps/migrate-progress");
|
|
16
|
+
const migrate_sliders_1 = require("./steps/migrate-sliders");
|
|
17
|
+
const migrate_taiga_proprietary_icons_1 = require("./steps/migrate-taiga-proprietary-icons");
|
|
18
|
+
const migrate_templates_1 = require("./steps/migrate-templates");
|
|
19
|
+
const miscellaneous_1 = require("./steps/miscellaneous");
|
|
20
|
+
const remove_module_1 = require("./steps/remove-module");
|
|
10
21
|
const rename_types_1 = require("./steps/rename-types");
|
|
11
22
|
const replace_const_1 = require("./steps/replace-const");
|
|
12
23
|
const replace_deep_import_1 = require("./steps/replace-deep-import");
|
|
13
|
-
const
|
|
14
|
-
const replace_services_1 = require("./steps/replace-services");
|
|
15
|
-
const migrate_templates_1 = require("./steps/migrate-templates");
|
|
16
|
-
const migrate_sliders_1 = require("./steps/migrate-sliders");
|
|
17
|
-
const remove_module_1 = require("./steps/remove-module");
|
|
18
|
-
const miscellaneous_1 = require("./steps/miscellaneous");
|
|
24
|
+
const replace_enums_1 = require("./steps/replace-enums");
|
|
19
25
|
const replace_functions_1 = require("./steps/replace-functions");
|
|
20
|
-
const
|
|
21
|
-
const colored_log_1 = require("../utils/colored-log");
|
|
22
|
-
const migrate_date_time_1 = require("./steps/migrate-date-time");
|
|
23
|
-
const angular_json_manipulations_1 = require("../utils/angular-json-manipulations");
|
|
24
|
-
const taiga_styles_1 = require("../constants/taiga-styles");
|
|
26
|
+
const replace_services_1 = require("./steps/replace-services");
|
|
25
27
|
const replace_styles_1 = require("./steps/replace-styles");
|
|
26
|
-
const
|
|
27
|
-
const get_execution_time_1 = require("../utils/get-execution-time");
|
|
28
|
-
const migrate_taiga_proprietary_icons_1 = require("./steps/migrate-taiga-proprietary-icons");
|
|
28
|
+
const show_warnings_1 = require("./steps/show-warnings");
|
|
29
29
|
const migrate_expand_templates_1 = require("./v3-5/steps/migrate-expand-templates");
|
|
30
30
|
function updateToV3(options) {
|
|
31
31
|
const t0 = perf_hooks_1.performance.now();
|
|
32
|
-
|
|
32
|
+
!options[`skip-logs`] &&
|
|
33
|
+
colored_log_1.titleLog(`\n\n${colored_log_1.START_SYMBOL} Your packages will be updated to @taiga-ui/*@${versions_1.TAIGA_VERSION}\n`);
|
|
33
34
|
return schematics_1.chain([
|
|
34
35
|
main(options),
|
|
35
36
|
addTaigaStyles(options),
|
|
@@ -37,43 +38,46 @@ function updateToV3(options) {
|
|
|
37
38
|
showNormalizeWarning(),
|
|
38
39
|
() => {
|
|
39
40
|
const executionTime = get_execution_time_1.getExecutionTime(t0, perf_hooks_1.performance.now());
|
|
40
|
-
|
|
41
|
+
!options[`skip-logs`] &&
|
|
42
|
+
colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} We migrated packages to @taiga-ui/*@${versions_1.TAIGA_VERSION} in ${executionTime}. \n`);
|
|
41
43
|
},
|
|
42
44
|
]);
|
|
43
45
|
}
|
|
44
46
|
exports.updateToV3 = updateToV3;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
48
|
+
function updateToV3_5(options) {
|
|
49
|
+
return (tree, _) => {
|
|
47
50
|
const fileSystem = getFileSystem(tree);
|
|
48
|
-
migrate_expand_templates_1.migrateExpandTemplates(fileSystem);
|
|
51
|
+
migrate_expand_templates_1.migrateExpandTemplates(fileSystem, options);
|
|
49
52
|
fileSystem.commitEdits();
|
|
50
53
|
ng_morph_1.saveActiveProject();
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
!options[`skip-logs`] &&
|
|
55
|
+
colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} We migrated packages to @taiga-ui/*@${versions_1.TAIGA_VERSION}\n`);
|
|
56
|
+
};
|
|
53
57
|
}
|
|
54
58
|
exports.updateToV3_5 = updateToV3_5;
|
|
55
59
|
function main(options) {
|
|
56
|
-
return (tree, context) =>
|
|
60
|
+
return (tree, context) => {
|
|
57
61
|
const fileSystem = getFileSystem(tree);
|
|
58
|
-
|
|
59
|
-
replace_enums_1.replaceEnums();
|
|
60
|
-
rename_types_1.renameTypes();
|
|
61
|
-
replace_const_1.replaceConstants();
|
|
62
|
-
replace_services_1.replaceServices();
|
|
62
|
+
replace_deep_import_1.replaceDeepImports(options);
|
|
63
|
+
replace_enums_1.replaceEnums(options);
|
|
64
|
+
rename_types_1.renameTypes(options);
|
|
65
|
+
replace_const_1.replaceConstants(options);
|
|
66
|
+
replace_services_1.replaceServices(options);
|
|
63
67
|
replace_styles_1.replaceStyles();
|
|
64
68
|
show_warnings_1.showWarnings(context);
|
|
65
|
-
migrate_templates_1.migrateTemplates(fileSystem);
|
|
69
|
+
migrate_templates_1.migrateTemplates(fileSystem, options);
|
|
66
70
|
fileSystem.commitEdits();
|
|
67
71
|
ng_morph_1.saveActiveProject();
|
|
68
72
|
const updatedFileSystem = getFileSystem(tree);
|
|
69
|
-
migrate_sliders_1.migrateSliders(updatedFileSystem);
|
|
70
|
-
migrate_progress_1.migrateProgress(updatedFileSystem);
|
|
71
|
-
remove_module_1.removeModules();
|
|
72
|
-
migrate_date_time_1.dateTimeMigrations();
|
|
73
|
-
replace_functions_1.replaceFunctions();
|
|
74
|
-
miscellaneous_1.miscellaneousMigrations();
|
|
73
|
+
migrate_sliders_1.migrateSliders(updatedFileSystem, options);
|
|
74
|
+
migrate_progress_1.migrateProgress(updatedFileSystem, options);
|
|
75
|
+
remove_module_1.removeModules(options);
|
|
76
|
+
migrate_date_time_1.dateTimeMigrations(options);
|
|
77
|
+
replace_functions_1.replaceFunctions(options);
|
|
78
|
+
miscellaneous_1.miscellaneousMigrations(options);
|
|
75
79
|
ng_morph_1.saveActiveProject();
|
|
76
|
-
}
|
|
80
|
+
};
|
|
77
81
|
}
|
|
78
82
|
function addTaigaStyles(options) {
|
|
79
83
|
return (tree, context) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -84,15 +88,15 @@ function addTaigaStyles(options) {
|
|
|
84
88
|
};
|
|
85
89
|
if (yield angular_json_manipulations_1.isInvalidAngularJson(tree)) {
|
|
86
90
|
context.logger.warn(`[WARNING]: Schematics don't support this version of angular.json.\n` +
|
|
87
|
-
`– Add styles ${taigaStyles.join(
|
|
91
|
+
`– Add styles ${taigaStyles.join(`,`)} to angular.json manually.\n` +
|
|
88
92
|
`– Manually replace "${taiga_styles_1.TAIGA_GLOBAL_OLD_STYLE}" with "${taiga_styles_1.TAIGA_GLOBAL_NEW_STYLE}" inside "styles" of angular.json (don't forget to install "@taiga-ui/styles")`);
|
|
89
93
|
return;
|
|
90
94
|
}
|
|
91
|
-
return angular_json_manipulations_1.addStylesToAngularJson(options, context, taigaStyles, existingStyles => !!(existingStyles === null || existingStyles === void 0 ? void 0 : existingStyles.some(s => String(s).includes(
|
|
95
|
+
return angular_json_manipulations_1.addStylesToAngularJson(options, context, taigaStyles, existingStyles => !!(existingStyles === null || existingStyles === void 0 ? void 0 : existingStyles.some(s => String(s).includes(`tinkoff-theme`))), stylesToReplace, tree);
|
|
92
96
|
});
|
|
93
97
|
}
|
|
94
98
|
function getFileSystem(tree) {
|
|
95
|
-
const project = ng_morph_1.createProject(tree,
|
|
99
|
+
const project = ng_morph_1.createProject(tree, `/`, constants_1.ALL_FILES);
|
|
96
100
|
ng_morph_1.setActiveProject(project);
|
|
97
101
|
return project.getFileSystem().fs;
|
|
98
102
|
}
|
|
@@ -100,7 +104,7 @@ function showNormalizeWarning() {
|
|
|
100
104
|
return (tree, context) => {
|
|
101
105
|
var _a;
|
|
102
106
|
try {
|
|
103
|
-
if (
|
|
107
|
+
if ((_a = ng_morph_1.getPackageJsonDependency(tree, `@taiga-ui/styles`)) === null || _a === void 0 ? void 0 : _a.version) {
|
|
104
108
|
context.logger.warn(replace_styles_1.TUI_WARNING_NORMALIZE);
|
|
105
109
|
}
|
|
106
110
|
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { TuiSchema } from '../../ng-add/schema';
|
|
2
|
+
export declare function dateTimeMigrations(options: TuiSchema): void;
|
|
@@ -3,37 +3,40 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.dateTimeMigrations = void 0;
|
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
|
5
5
|
const perf_hooks_1 = require("perf_hooks");
|
|
6
|
-
const get_named_import_references_1 = require("../../utils/get-named-import-references");
|
|
7
|
-
const insert_todo_1 = require("../../utils/insert-todo");
|
|
8
6
|
const colored_log_1 = require("../../utils/colored-log");
|
|
9
7
|
const get_execution_time_1 = require("../../utils/get-execution-time");
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const get_named_import_references_1 = require("../../utils/get-named-import-references");
|
|
9
|
+
const insert_todo_1 = require("../../utils/insert-todo");
|
|
10
|
+
function dateTimeMigrations(options) {
|
|
11
|
+
!options[`skip-logs`] &&
|
|
12
|
+
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} migrating taiga date/time...`);
|
|
12
13
|
let start = perf_hooks_1.performance.now();
|
|
13
14
|
migrateProperty({
|
|
14
|
-
namedImport:
|
|
15
|
-
moduleSpecifier:
|
|
16
|
-
from:
|
|
17
|
-
callback: node => node.replaceWithText(node.getText().replace(
|
|
15
|
+
namedImport: `TuiDay`,
|
|
16
|
+
moduleSpecifier: `@taiga-ui/cdk`,
|
|
17
|
+
from: `formattedDay`,
|
|
18
|
+
callback: node => node.replaceWithText(node.getText().replace(`formattedDay`, `getFormattedDay("DMY", ".")`)),
|
|
18
19
|
});
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
!options[`skip-logs`] &&
|
|
21
|
+
colored_log_1.processLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.PROCESSING_SYMBOL}TuiDay.formattedDay ` +
|
|
22
|
+
`(${get_execution_time_1.getExecutionTime(start, perf_hooks_1.performance.now())})`);
|
|
21
23
|
start = perf_hooks_1.performance.now();
|
|
22
24
|
migrateProperty({
|
|
23
|
-
namedImport:
|
|
24
|
-
moduleSpecifier:
|
|
25
|
-
from:
|
|
25
|
+
namedImport: `TuiDayRange`,
|
|
26
|
+
moduleSpecifier: `@taiga-ui/cdk`,
|
|
27
|
+
from: `formattedDayRange`,
|
|
26
28
|
callback: node => node.replaceWithText(node
|
|
27
29
|
.getText()
|
|
28
|
-
.replace(
|
|
30
|
+
.replace(`formattedDayRange`, `getFormattedDayRange("DMY", ".")`)),
|
|
29
31
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
!options[`skip-logs`] &&
|
|
33
|
+
colored_log_1.processLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.PROCESSING_SYMBOL}TuiDayRange.formattedDayRange ` +
|
|
34
|
+
`(${get_execution_time_1.getExecutionTime(start, perf_hooks_1.performance.now())})`);
|
|
32
35
|
start = perf_hooks_1.performance.now();
|
|
33
36
|
migrateProperty({
|
|
34
|
-
namedImport:
|
|
35
|
-
moduleSpecifier:
|
|
36
|
-
from:
|
|
37
|
+
namedImport: `TuiDayRange`,
|
|
38
|
+
moduleSpecifier: `@taiga-ui/cdk`,
|
|
39
|
+
from: `normalizeParse`,
|
|
37
40
|
callback: node => {
|
|
38
41
|
const parent = node.getParent();
|
|
39
42
|
if (ng_morph_1.Node.isCallExpression(parent)) {
|
|
@@ -41,56 +44,59 @@ function dateTimeMigrations() {
|
|
|
41
44
|
}
|
|
42
45
|
},
|
|
43
46
|
});
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
!options[`skip-logs`] &&
|
|
48
|
+
colored_log_1.processLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.PROCESSING_SYMBOL}TuiDayRange.normalizeParse ` +
|
|
49
|
+
`(${get_execution_time_1.getExecutionTime(start, perf_hooks_1.performance.now())})`);
|
|
46
50
|
[
|
|
47
51
|
{
|
|
48
|
-
namedImport:
|
|
49
|
-
field:
|
|
50
|
-
message:
|
|
52
|
+
namedImport: `TuiMonthRange`,
|
|
53
|
+
field: `formattedMonthRange`,
|
|
54
|
+
message: `formattedMonthRange has been removed in 3.0. Please use TUI_MONTH_FORMATTER from @taiga-ui/kit`,
|
|
51
55
|
},
|
|
52
56
|
{
|
|
53
|
-
namedImport:
|
|
54
|
-
field:
|
|
55
|
-
message:
|
|
57
|
+
namedImport: `TuiMonth`,
|
|
58
|
+
field: `formattedMonth`,
|
|
59
|
+
message: `formattedMonth has been removed in 3.0. Please use TUI_MONTH_FORMATTER from @taiga-ui/kit`,
|
|
56
60
|
},
|
|
57
61
|
{
|
|
58
|
-
namedImport:
|
|
59
|
-
field:
|
|
60
|
-
message:
|
|
62
|
+
namedImport: `TuiDay`,
|
|
63
|
+
field: `getDayFromMonthRowCol`,
|
|
64
|
+
message: `getDayFromMonthRowCol has been removed in 3.0. If you need this utils check out this pipe https://github.com/Tinkoff/taiga-ui/tree/main/projects/core/pipes/calendar-sheet`,
|
|
61
65
|
},
|
|
62
66
|
{
|
|
63
|
-
namedImport:
|
|
64
|
-
field:
|
|
65
|
-
message:
|
|
67
|
+
namedImport: `TuiMonth`,
|
|
68
|
+
field: `monthStartDaysOffset`,
|
|
69
|
+
message: `monthStartDaysOffset has been removed in 3.0. If you need this utils check out this pipe https://github.com/Tinkoff/taiga-ui/tree/main/projects/core/pipes/calendar-sheet`,
|
|
66
70
|
},
|
|
67
71
|
{
|
|
68
|
-
namedImport:
|
|
69
|
-
field:
|
|
70
|
-
message:
|
|
72
|
+
namedImport: `TuiMonth`,
|
|
73
|
+
field: `weeksRowsCount`,
|
|
74
|
+
message: `weeksRowsCount has been removed in 3.0. If you need this utils check out this pipe https://github.com/Tinkoff/taiga-ui/tree/main/projects/core/pipes/calendar-sheet`,
|
|
71
75
|
},
|
|
72
76
|
{
|
|
73
|
-
namedImport:
|
|
74
|
-
field:
|
|
75
|
-
message:
|
|
77
|
+
namedImport: `TuiYear`,
|
|
78
|
+
field: `getYearStartDaysOffset`,
|
|
79
|
+
message: `getYearStartDaysOffset has been removed in 3.0. If you need this utils check out this pipe https://github.com/Tinkoff/taiga-ui/tree/main/projects/core/pipes/calendar-sheet`,
|
|
76
80
|
},
|
|
77
81
|
{
|
|
78
|
-
namedImport:
|
|
79
|
-
field:
|
|
80
|
-
message:
|
|
82
|
+
namedImport: `TuiYear`,
|
|
83
|
+
field: `weeksRowsCount`,
|
|
84
|
+
message: `weeksRowsCount has been removed in 3.0. If you need this utils check out this pipe https://github.com/Tinkoff/taiga-ui/tree/main/projects/core/pipes/calendar-sheet`,
|
|
81
85
|
},
|
|
82
86
|
].forEach(({ namedImport, field, message }) => {
|
|
83
87
|
start = perf_hooks_1.performance.now();
|
|
84
88
|
migrateProperty({
|
|
85
89
|
namedImport,
|
|
86
|
-
moduleSpecifier:
|
|
90
|
+
moduleSpecifier: `@taiga-ui/cdk`,
|
|
87
91
|
from: field,
|
|
88
92
|
callback: node => insertTodoBeforeNode(node, message),
|
|
89
93
|
});
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
!options[`skip-logs`] &&
|
|
95
|
+
colored_log_1.processLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.PROCESSING_SYMBOL}${namedImport}.${field} ` +
|
|
96
|
+
`(${get_execution_time_1.getExecutionTime(start, perf_hooks_1.performance.now())})`);
|
|
92
97
|
});
|
|
93
|
-
|
|
98
|
+
!options[`skip-logs`] &&
|
|
99
|
+
colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} date/time migrated \n`);
|
|
94
100
|
}
|
|
95
101
|
exports.dateTimeMigrations = dateTimeMigrations;
|
|
96
102
|
function migrateProperty({ namedImport, moduleSpecifier, from, callback, }) {
|
|
@@ -165,7 +171,7 @@ function replaceIdentifierReferences(identifier, from, callback) {
|
|
|
165
171
|
if (parent === null || parent === void 0 ? void 0 : parent.wasForgotten()) {
|
|
166
172
|
return;
|
|
167
173
|
}
|
|
168
|
-
if (parent === null || parent === void 0 ? void 0 : parent.getText().startsWith(
|
|
174
|
+
if (parent === null || parent === void 0 ? void 0 : parent.getText().startsWith(`this`)) {
|
|
169
175
|
parent = parent === null || parent === void 0 ? void 0 : parent.getParent();
|
|
170
176
|
}
|
|
171
177
|
if (ng_morph_1.Node.isPropertyAccessExpression(parent)) {
|
|
@@ -183,10 +189,10 @@ function changeNormalizeArgs(node) {
|
|
|
183
189
|
if (args.length > 2) {
|
|
184
190
|
node.removeArgument(2);
|
|
185
191
|
node.removeArgument(1);
|
|
186
|
-
node.addArgument(
|
|
192
|
+
node.addArgument(`"DMY"`);
|
|
187
193
|
}
|
|
188
194
|
else if (args.length === 1) {
|
|
189
|
-
node.addArgument(
|
|
195
|
+
node.addArgument(`"DMY"`);
|
|
190
196
|
}
|
|
191
197
|
}
|
|
192
198
|
function insertTodoBeforeNode(node, message) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TemplateResource } from '../interfaces/template-resourse';
|
|
2
1
|
import { UpdateRecorder } from '@angular-devkit/schematics';
|
|
3
2
|
import { DevkitFileSystem } from 'ng-morph/project/classes/devkit-file-system';
|
|
3
|
+
import { TemplateResource } from '../interfaces/template-resourse';
|
|
4
4
|
export declare function migratePolymorpheus({ resource, fileSystem, recorder, }: {
|
|
5
5
|
resource: TemplateResource;
|
|
6
6
|
recorder: UpdateRecorder;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.migratePolymorpheus = void 0;
|
|
4
|
-
const
|
|
4
|
+
const replace_tag_1 = require("../../utils/replace-tag");
|
|
5
5
|
const elements_1 = require("../../utils/templates/elements");
|
|
6
6
|
const ng_component_input_manipulations_1 = require("../../utils/templates/ng-component-input-manipulations");
|
|
7
|
-
const
|
|
7
|
+
const template_resource_1 = require("../../utils/templates/template-resource");
|
|
8
8
|
function migratePolymorpheus({ resource, fileSystem, recorder, }) {
|
|
9
9
|
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
|
10
10
|
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
|
11
|
-
const elements = elements_1.findElementsWithAttribute(template,
|
|
11
|
+
const elements = elements_1.findElementsWithAttribute(template, `polymorpheus-outlet`);
|
|
12
12
|
elements.forEach(element => {
|
|
13
13
|
var _a, _b;
|
|
14
|
-
const contentVal = (_a = element.attrs.find(attr => attr.name ===
|
|
15
|
-
const contextVal = (_b = element.attrs.find(attr => attr.name ===
|
|
16
|
-
const defaultTemplateEl = elements_1.findElementsByFn(element.childNodes, el => el.tagName ===
|
|
14
|
+
const contentVal = (_a = element.attrs.find(attr => attr.name === `[content]`)) === null || _a === void 0 ? void 0 : _a.value;
|
|
15
|
+
const contextVal = (_b = element.attrs.find(attr => attr.name === `[context]`)) === null || _b === void 0 ? void 0 : _b.value;
|
|
16
|
+
const defaultTemplateEl = elements_1.findElementsByFn(element.childNodes, el => el.tagName === `ng-template`)[0];
|
|
17
17
|
if (!contentVal) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
@@ -42,7 +42,7 @@ exports.migratePolymorpheus = migratePolymorpheus;
|
|
|
42
42
|
function insertPolymorpheus({ element, contentVal, contextVal, recorder, templateOffset, }) {
|
|
43
43
|
var _a, _b;
|
|
44
44
|
const content = `
|
|
45
|
-
<ng-container *polymorpheusOutlet="${contentVal} as text${contextVal ?
|
|
45
|
+
<ng-container *polymorpheusOutlet="${contentVal} as text${contextVal ? `; context: ${contextVal}` : ``}">
|
|
46
46
|
{{ text }}
|
|
47
47
|
</ng-container>`;
|
|
48
48
|
const insertTo = (_b = (_a = element.sourceCodeLocation) === null || _a === void 0 ? void 0 : _a.startTag) === null || _b === void 0 ? void 0 : _b.endOffset;
|
|
@@ -52,9 +52,9 @@ function insertPolymorpheus({ element, contentVal, contextVal, recorder, templat
|
|
|
52
52
|
}
|
|
53
53
|
function removeOldInputs(recorder, template, templateOffset) {
|
|
54
54
|
const offsets = [
|
|
55
|
-
...ng_component_input_manipulations_1.getInputPropertyOffsets(template,
|
|
56
|
-
...ng_component_input_manipulations_1.getInputPropertyOffsets(template,
|
|
57
|
-
...ng_component_input_manipulations_1.getInputPropertyOffsets(template,
|
|
55
|
+
...ng_component_input_manipulations_1.getInputPropertyOffsets(template, `[content]`, [`*`], el => elements_1.hasElementAttribute(el, `polymorpheus-outlet`)),
|
|
56
|
+
...ng_component_input_manipulations_1.getInputPropertyOffsets(template, `[context]`, [`*`], el => elements_1.hasElementAttribute(el, `polymorpheus-outlet`)),
|
|
57
|
+
...ng_component_input_manipulations_1.getInputPropertyOffsets(template, `polymorpheus-outlet`, [`*`], el => elements_1.hasElementAttribute(el, `polymorpheus-outlet`)),
|
|
58
58
|
];
|
|
59
59
|
offsets.forEach(([start, end]) => {
|
|
60
60
|
recorder.remove(start + templateOffset, end - start);
|
|
@@ -62,10 +62,10 @@ function removeOldInputs(recorder, template, templateOffset) {
|
|
|
62
62
|
}
|
|
63
63
|
function insertPolymorpheusWithDefault({ defaultTemplateEl, recorder, templateOffset, contentVal, contextVal, }) {
|
|
64
64
|
var _a;
|
|
65
|
-
const templateVar = defaultTemplateEl.attrs.find(attr => attr.name.startsWith(
|
|
66
|
-
const varName = templateVar === null || templateVar === void 0 ? void 0 : templateVar.name.replace(
|
|
67
|
-
const attr = `*polymorpheusOutlet="${contentVal} as ${varName}${contextVal ?
|
|
68
|
-
replace_tag_1.replaceTag(recorder, defaultTemplateEl.sourceCodeLocation,
|
|
65
|
+
const templateVar = defaultTemplateEl.attrs.find(attr => attr.name.startsWith(`let-`));
|
|
66
|
+
const varName = templateVar === null || templateVar === void 0 ? void 0 : templateVar.name.replace(`let-`, ``);
|
|
67
|
+
const attr = `*polymorpheusOutlet="${contentVal} as ${varName}${contextVal ? `; context: ${contextVal}` : ``}"`;
|
|
68
|
+
replace_tag_1.replaceTag(recorder, defaultTemplateEl.sourceCodeLocation, `ng-template`, `ng-container`, templateOffset, [attr]);
|
|
69
69
|
if (((_a = defaultTemplateEl.sourceCodeLocation) === null || _a === void 0 ? void 0 : _a.attrs) && (templateVar === null || templateVar === void 0 ? void 0 : templateVar.name)) {
|
|
70
70
|
recorder.remove(defaultTemplateEl.sourceCodeLocation.attrs[templateVar.name].startOffset +
|
|
71
71
|
templateOffset, templateVar.name.length);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { DevkitFileSystem } from 'ng-morph';
|
|
2
|
+
import { TuiSchema } from '../../ng-add/schema';
|
|
2
3
|
export declare const DEPRECATED_PROGRESS_PIPES_REG: RegExp;
|
|
3
|
-
export declare function migrateProgress(fileSystem: DevkitFileSystem): void;
|
|
4
|
+
export declare function migrateProgress(fileSystem: DevkitFileSystem, options: TuiSchema): void;
|
|
@@ -2,23 +2,27 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.migrateProgress = exports.DEPRECATED_PROGRESS_PIPES_REG = void 0;
|
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
|
5
|
-
const
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const colored_log_1 = require("../../utils/colored-log");
|
|
6
7
|
const elements_1 = require("../../utils/templates/elements");
|
|
8
|
+
const get_component_templates_1 = require("../../utils/templates/get-component-templates");
|
|
7
9
|
const template_resource_1 = require("../../utils/templates/template-resource");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const PROPERTY_FOR_DEPRECATED_PIPES =
|
|
12
|
-
function migrateProgress(fileSystem) {
|
|
13
|
-
|
|
10
|
+
exports.DEPRECATED_PROGRESS_PIPES_REG =
|
|
11
|
+
// eslint-disable-next-line unicorn/no-unsafe-regex
|
|
12
|
+
/\s*\|\s*tuiProgressColorSegments(Async\s*\|\s*async)?/gi;
|
|
13
|
+
const PROPERTY_FOR_DEPRECATED_PIPES = `[color]`;
|
|
14
|
+
function migrateProgress(fileSystem, options) {
|
|
15
|
+
!options[`skip-logs`] &&
|
|
16
|
+
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} migrating progress bars...`);
|
|
14
17
|
const templateResources = get_component_templates_1.getComponentTemplates(constants_1.ALL_TS_FILES);
|
|
15
18
|
for (const templateResource of templateResources) {
|
|
16
19
|
replaceProgressColorSegmentsPipe(templateResource, fileSystem);
|
|
17
20
|
}
|
|
18
21
|
fileSystem.commitEdits();
|
|
19
22
|
ng_morph_1.saveActiveProject();
|
|
20
|
-
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree,
|
|
21
|
-
|
|
23
|
+
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, `/`, constants_1.ALL_FILES));
|
|
24
|
+
!options[`skip-logs`] &&
|
|
25
|
+
colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} progress bars migrated \n`);
|
|
22
26
|
}
|
|
23
27
|
exports.migrateProgress = migrateProgress;
|
|
24
28
|
function replaceProgressColorSegmentsPipe(templateResource, fileSystem) {
|
|
@@ -29,8 +33,8 @@ function replaceProgressColorSegmentsPipe(templateResource, fileSystem) {
|
|
|
29
33
|
const recorder = fileSystem.edit(path);
|
|
30
34
|
const progressElements = elements_1.findElementsWithAttribute(template, PROPERTY_FOR_DEPRECATED_PIPES).filter(isProgressWithDeprecatedPipe);
|
|
31
35
|
for (const progressEl of progressElements) {
|
|
32
|
-
const oldValue = ((_a = progressEl.attrs.find(attr => attr.name === PROPERTY_FOR_DEPRECATED_PIPES)) === null || _a === void 0 ? void 0 : _a.value) ||
|
|
33
|
-
const newValue = oldValue.replace(exports.DEPRECATED_PROGRESS_PIPES_REG,
|
|
36
|
+
const oldValue = ((_a = progressEl.attrs.find(attr => attr.name === PROPERTY_FOR_DEPRECATED_PIPES)) === null || _a === void 0 ? void 0 : _a.value) || ``;
|
|
37
|
+
const newValue = oldValue.replace(exports.DEPRECATED_PROGRESS_PIPES_REG, ``);
|
|
34
38
|
const attrLocations = (_b = progressEl.sourceCodeLocation) === null || _b === void 0 ? void 0 : _b.attrs;
|
|
35
39
|
if (attrLocations) {
|
|
36
40
|
const { startOffset, endOffset } = attrLocations[PROPERTY_FOR_DEPRECATED_PIPES];
|
|
@@ -40,7 +44,7 @@ function replaceProgressColorSegmentsPipe(templateResource, fileSystem) {
|
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
46
|
function isProgressWithDeprecatedPipe(element) {
|
|
43
|
-
return (element.tagName ===
|
|
47
|
+
return (element.tagName === `progress` &&
|
|
44
48
|
element.attrs.some(attr => attr.name === PROPERTY_FOR_DEPRECATED_PIPES &&
|
|
45
49
|
attr.value.match(exports.DEPRECATED_PROGRESS_PIPES_REG)));
|
|
46
50
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { DevkitFileSystem } from 'ng-morph';
|
|
2
|
-
|
|
2
|
+
import { TuiSchema } from '../../../ng-add/schema';
|
|
3
|
+
export declare function migrateSliders(fileSystem: DevkitFileSystem, options: TuiSchema): void;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.migrateSliders = void 0;
|
|
4
|
-
const migrate_input_slider_1 = require("./migrate-input-slider");
|
|
5
|
-
const migrate_input_range_1 = require("./migrate-input-range");
|
|
6
4
|
const colored_log_1 = require("../../../utils/colored-log");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
const migrate_input_range_1 = require("./migrate-input-range");
|
|
6
|
+
const migrate_input_slider_1 = require("./migrate-input-slider");
|
|
7
|
+
function migrateSliders(fileSystem, options) {
|
|
8
|
+
!options[`skip-logs`] &&
|
|
9
|
+
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} migrating sliders...`);
|
|
10
|
+
!options[`skip-logs`] &&
|
|
11
|
+
colored_log_1.processLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.PROCESSING_SYMBOL}InputSlider...`);
|
|
12
|
+
migrate_input_slider_1.migrateInputSlider(fileSystem, options);
|
|
13
|
+
!options[`skip-logs`] &&
|
|
14
|
+
colored_log_1.processLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.PROCESSING_SYMBOL}InputRange...`);
|
|
15
|
+
migrate_input_range_1.migrateInputRange(fileSystem, options);
|
|
16
|
+
!options[`skip-logs`] &&
|
|
17
|
+
colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} sliders migrated \n`);
|
|
14
18
|
}
|
|
15
19
|
exports.migrateSliders = migrateSliders;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { DevkitFileSystem } from 'ng-morph';
|
|
2
|
-
|
|
2
|
+
import { TuiSchema } from '../../../ng-add/schema';
|
|
3
|
+
export declare function migrateInputRange(fileSystem: DevkitFileSystem, options: TuiSchema): void;
|