@taiga-ui/cdk 5.3.0-canary.737cb93 → 5.3.0-canary.e895e55
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/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-truncate.mjs +3 -3
- package/package.json +17 -17
- package/schematics/migration.json +1 -21
- package/schematics/ng-add/constants/versions.d.ts +1 -1
- package/schematics/ng-add/index.js +6 -1
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-update/steps/icons/replace-imports.js +2 -1
- package/schematics/ng-update/steps/icons/replace-imports.js.map +1 -1
- package/schematics/ng-update/steps/remove-duplicates.js +3 -2
- package/schematics/ng-update/steps/remove-duplicates.js.map +1 -1
- package/schematics/ng-update/steps/rename-types.js +3 -2
- package/schematics/ng-update/steps/rename-types.js.map +1 -1
- package/schematics/ng-update/steps/replace-deep-import.js +3 -2
- package/schematics/ng-update/steps/replace-deep-import.js.map +1 -1
- package/schematics/ng-update/steps/replace-enums.js +8 -4
- package/schematics/ng-update/steps/replace-enums.js.map +1 -1
- package/schematics/ng-update/steps/replace-identifier.js +3 -2
- package/schematics/ng-update/steps/replace-identifier.js.map +1 -1
- package/schematics/ng-update/steps/replace-services.js +4 -3
- package/schematics/ng-update/steps/replace-services.js.map +1 -1
- package/schematics/ng-update/{v4/steps/utils → utils}/remove-attrs.d.ts +4 -1
- package/schematics/ng-update/utils/remove-attrs.js.map +1 -0
- package/schematics/ng-update/utils/templates/replace-tag.d.ts +3 -1
- package/schematics/ng-update/utils/templates/replace-tag.js.map +1 -1
- package/schematics/ng-update/v5/index.js +6 -3
- package/schematics/ng-update/v5/index.js.map +1 -1
- package/schematics/ng-update/v5/steps/constants/attr-with-values-to-replace.js +9 -0
- package/schematics/ng-update/v5/steps/constants/attr-with-values-to-replace.js.map +1 -1
- package/schematics/ng-update/v5/steps/constants/inputs-to-remove.js +0 -5
- package/schematics/ng-update/v5/steps/constants/inputs-to-remove.js.map +1 -1
- package/schematics/ng-update/v5/steps/migrate-breakpoint-service.js +14 -8
- package/schematics/ng-update/v5/steps/migrate-breakpoint-service.js.map +1 -1
- package/schematics/ng-update/v5/steps/migrate-css-variables.js +3 -2
- package/schematics/ng-update/v5/steps/migrate-css-variables.js.map +1 -1
- package/schematics/ng-update/v5/steps/migrate-doc-i18n-tokens.js +3 -2
- package/schematics/ng-update/v5/steps/migrate-doc-i18n-tokens.js.map +1 -1
- package/schematics/ng-update/v5/steps/migrate-i18n-language-signal.js +2 -1
- package/schematics/ng-update/v5/steps/migrate-i18n-language-signal.js.map +1 -1
- package/schematics/ng-update/v5/steps/migrate-templates.js +3 -5
- package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -1
- package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js +6 -5
- package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js.map +1 -1
- package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js +7 -7
- package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js.map +1 -1
- package/schematics/ng-update/v5/steps/migrate-tui-let.js +2 -1
- package/schematics/ng-update/v5/steps/migrate-tui-let.js.map +1 -1
- package/schematics/ng-update/v5/steps/templates/migrate-avatar.js +1 -1
- package/schematics/ng-update/v5/steps/templates/migrate-avatar.js.map +1 -1
- package/schematics/utils/add-import-to-closest-module.js +4 -3
- package/schematics/utils/add-import-to-closest-module.js.map +1 -1
- package/schematics/utils/colored-log.d.ts +11 -0
- package/schematics/utils/colored-log.js +30 -0
- package/schematics/utils/colored-log.js.map +1 -0
- package/schematics/utils/detect-package-manager.d.ts +3 -0
- package/schematics/utils/detect-package-manager.js +16 -0
- package/schematics/utils/detect-package-manager.js.map +1 -0
- package/schematics/utils/get-named-import-references.d.ts +2 -2
- package/schematics/utils/get-named-import-references.js +12 -7
- package/schematics/utils/get-named-import-references.js.map +1 -1
- package/schematics/utils/progress.js +3 -3
- package/schematics/utils/progress.js.map +1 -1
- package/schematics/utils/remove-module.js +3 -2
- package/schematics/utils/remove-module.js.map +1 -1
- package/schematics/utils/templates/inputs.d.ts +3 -1
- package/schematics/utils/templates/inputs.js.map +1 -1
- package/schematics/ng-update/v4/index.d.ts +0 -3
- package/schematics/ng-update/v4/index.js +0 -72
- package/schematics/ng-update/v4/index.js.map +0 -1
- package/schematics/ng-update/v4/migrate-addon-doc/index.d.ts +0 -3
- package/schematics/ng-update/v4/migrate-addon-doc/index.js +0 -51
- package/schematics/ng-update/v4/migrate-addon-doc/index.js.map +0 -1
- package/schematics/ng-update/v4/migrate-addon-doc/replace-symbols.d.ts +0 -2
- package/schematics/ng-update/v4/migrate-addon-doc/replace-symbols.js +0 -144
- package/schematics/ng-update/v4/migrate-addon-doc/replace-symbols.js.map +0 -1
- package/schematics/ng-update/v4/migrate-css-vars/index.d.ts +0 -3
- package/schematics/ng-update/v4/migrate-css-vars/index.js +0 -22
- package/schematics/ng-update/v4/migrate-css-vars/index.js.map +0 -1
- package/schematics/ng-update/v4/migrate-css-vars/palette.d.ts +0 -98
- package/schematics/ng-update/v4/migrate-css-vars/palette.js +0 -131
- package/schematics/ng-update/v4/migrate-css-vars/palette.js.map +0 -1
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.d.ts +0 -1
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +0 -48
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js.map +0 -1
- package/schematics/ng-update/v4/migrate-icons/index.d.ts +0 -3
- package/schematics/ng-update/v4/migrate-icons/index.js +0 -62
- package/schematics/ng-update/v4/migrate-icons/index.js.map +0 -1
- package/schematics/ng-update/v4/migrate-icons/rename-icons.d.ts +0 -1
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js +0 -67
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js.map +0 -1
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.d.ts +0 -2
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js +0 -80
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js.map +0 -1
- package/schematics/ng-update/v4/schema.json +0 -7
- package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.d.ts +0 -2
- package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js +0 -74
- package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.d.ts +0 -2
- package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js +0 -67
- package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.d.ts +0 -2
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +0 -306
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/enums.d.ts +0 -2
- package/schematics/ng-update/v4/steps/constants/enums.js +0 -268
- package/schematics/ng-update/v4/steps/constants/enums.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/html-comments.d.ts +0 -2
- package/schematics/ng-update/v4/steps/constants/html-comments.js +0 -84
- package/schematics/ng-update/v4/steps/constants/html-comments.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.d.ts +0 -2
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +0 -2637
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/index.d.ts +0 -10
- package/schematics/ng-update/v4/steps/constants/index.js +0 -14
- package/schematics/ng-update/v4/steps/constants/index.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.d.ts +0 -2
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +0 -23
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/migration-warnings.d.ts +0 -2
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js +0 -197
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/modules-to-remove.d.ts +0 -2
- package/schematics/ng-update/v4/steps/constants/modules-to-remove.js +0 -58
- package/schematics/ng-update/v4/steps/constants/modules-to-remove.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/modules-to-replace.d.ts +0 -13
- package/schematics/ng-update/v4/steps/constants/modules-to-replace.js +0 -17
- package/schematics/ng-update/v4/steps/constants/modules-to-replace.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/services.d.ts +0 -2
- package/schematics/ng-update/v4/steps/constants/services.js +0 -16
- package/schematics/ng-update/v4/steps/constants/services.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.d.ts +0 -2
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +0 -77
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js.map +0 -1
- package/schematics/ng-update/v4/steps/constants/types.d.ts +0 -2
- package/schematics/ng-update/v4/steps/constants/types.js +0 -47
- package/schematics/ng-update/v4/steps/constants/types.js.map +0 -1
- package/schematics/ng-update/v4/steps/drop-universal-mock.d.ts +0 -2
- package/schematics/ng-update/v4/steps/drop-universal-mock.js +0 -19
- package/schematics/ng-update/v4/steps/drop-universal-mock.js.map +0 -1
- package/schematics/ng-update/v4/steps/index.d.ts +0 -13
- package/schematics/ng-update/v4/steps/index.js +0 -17
- package/schematics/ng-update/v4/steps/index.js.map +0 -1
- package/schematics/ng-update/v4/steps/migrate-alert-service.d.ts +0 -2
- package/schematics/ng-update/v4/steps/migrate-alert-service.js +0 -107
- package/schematics/ng-update/v4/steps/migrate-alert-service.js.map +0 -1
- package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.d.ts +0 -2
- package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js +0 -23
- package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js.map +0 -1
- package/schematics/ng-update/v4/steps/migrate-destroy-service.d.ts +0 -2
- package/schematics/ng-update/v4/steps/migrate-destroy-service.js +0 -129
- package/schematics/ng-update/v4/steps/migrate-destroy-service.js.map +0 -1
- package/schematics/ng-update/v4/steps/migrate-editor.d.ts +0 -4
- package/schematics/ng-update/v4/steps/migrate-editor.js +0 -114
- package/schematics/ng-update/v4/steps/migrate-editor.js.map +0 -1
- package/schematics/ng-update/v4/steps/migrate-legacy-mask.d.ts +0 -2
- package/schematics/ng-update/v4/steps/migrate-legacy-mask.js +0 -53
- package/schematics/ng-update/v4/steps/migrate-legacy-mask.js.map +0 -1
- package/schematics/ng-update/v4/steps/migrate-month-context.d.ts +0 -2
- package/schematics/ng-update/v4/steps/migrate-month-context.js +0 -36
- package/schematics/ng-update/v4/steps/migrate-month-context.js.map +0 -1
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.d.ts +0 -2
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.js +0 -63
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.js.map +0 -1
- package/schematics/ng-update/v4/steps/migrate-option-providers.d.ts +0 -2
- package/schematics/ng-update/v4/steps/migrate-option-providers.js +0 -41
- package/schematics/ng-update/v4/steps/migrate-option-providers.js.map +0 -1
- package/schematics/ng-update/v4/steps/migrate-proprietary.d.ts +0 -4
- package/schematics/ng-update/v4/steps/migrate-proprietary.js +0 -66
- package/schematics/ng-update/v4/steps/migrate-proprietary.js.map +0 -1
- package/schematics/ng-update/v4/steps/migrate-providers-from.d.ts +0 -2
- package/schematics/ng-update/v4/steps/migrate-providers-from.js +0 -33
- package/schematics/ng-update/v4/steps/migrate-providers-from.js.map +0 -1
- package/schematics/ng-update/v4/steps/migrate-root.d.ts +0 -3
- package/schematics/ng-update/v4/steps/migrate-root.js +0 -80
- package/schematics/ng-update/v4/steps/migrate-root.js.map +0 -1
- package/schematics/ng-update/v4/steps/migrate-templates.d.ts +0 -17
- package/schematics/ng-update/v4/steps/migrate-templates.js +0 -75
- package/schematics/ng-update/v4/steps/migrate-templates.js.map +0 -1
- package/schematics/ng-update/v4/steps/restore-tui-mapper.d.ts +0 -2
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +0 -39
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +0 -1
- package/schematics/ng-update/v4/steps/restore-tui-matcher.d.ts +0 -2
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +0 -39
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js.map +0 -1
- package/schematics/ng-update/v4/steps/styles/index.d.ts +0 -2
- package/schematics/ng-update/v4/steps/styles/index.js +0 -41
- package/schematics/ng-update/v4/steps/styles/index.js.map +0 -1
- package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.d.ts +0 -1
- package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js +0 -36
- package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js.map +0 -1
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.d.ts +0 -1
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js +0 -11
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js.map +0 -1
- package/schematics/ng-update/v4/steps/styles/migrate-mixins.d.ts +0 -1
- package/schematics/ng-update/v4/steps/styles/migrate-mixins.js +0 -19
- package/schematics/ng-update/v4/steps/styles/migrate-mixins.js.map +0 -1
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.d.ts +0 -1
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js +0 -23
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js.map +0 -1
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.d.ts +0 -1
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +0 -22
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js.map +0 -1
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.d.ts +0 -1
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +0 -59
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js +0 -15
- package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/index.d.ts +0 -19
- package/schematics/ng-update/v4/steps/templates/index.js +0 -23
- package/schematics/ng-update/v4/steps/templates/index.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-active-zone.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js +0 -32
- package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +0 -95
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-axes.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-axes.js +0 -26
- package/schematics/ng-update/v4/steps/templates/migrate-axes.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-badge.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js +0 -78
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +0 -118
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +0 -42
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js +0 -41
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +0 -33
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js +0 -24
- package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.js +0 -53
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-label.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-label.js +0 -49
- package/schematics/ng-update/v4/steps/templates/migrate-label.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +0 -50
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js +0 -45
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-money.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-money.js +0 -64
- package/schematics/ng-update/v4/steps/templates/migrate-money.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-notification.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-notification.js +0 -64
- package/schematics/ng-update/v4/steps/templates/migrate-notification.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js +0 -35
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +0 -31
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js +0 -27
- package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js +0 -25
- package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +0 -47
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/toggles/common.d.ts +0 -10
- package/schematics/ng-update/v4/steps/templates/toggles/common.js +0 -50
- package/schematics/ng-update/v4/steps/templates/toggles/common.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/toggles/index.d.ts +0 -3
- package/schematics/ng-update/v4/steps/templates/toggles/index.js +0 -7
- package/schematics/ng-update/v4/steps/templates/toggles/index.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +0 -61
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js +0 -25
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js.map +0 -1
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.d.ts +0 -8
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js +0 -25
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js.map +0 -1
- package/schematics/ng-update/v4/steps/update-packages.d.ts +0 -5
- package/schematics/ng-update/v4/steps/update-packages.js +0 -54
- package/schematics/ng-update/v4/steps/update-packages.js.map +0 -1
- package/schematics/ng-update/v4/steps/utils/clean-object.d.ts +0 -4
- package/schematics/ng-update/v4/steps/utils/clean-object.js +0 -11
- package/schematics/ng-update/v4/steps/utils/clean-object.js.map +0 -1
- package/schematics/ng-update/v4/steps/utils/normalize-attr-value.d.ts +0 -1
- package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js +0 -7
- package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js.map +0 -1
- package/schematics/ng-update/v4/steps/utils/remove-attrs.js.map +0 -1
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.d.ts +0 -3
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js +0 -51
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js.map +0 -1
- package/schematics/ng-update/v4/steps/utils/replace-substrings.d.ts +0 -6
- package/schematics/ng-update/v4/steps/utils/replace-substrings.js +0 -17
- package/schematics/ng-update/v4/steps/utils/replace-substrings.js.map +0 -1
- package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.d.ts +0 -1
- package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js +0 -22
- package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js.map +0 -1
- /package/schematics/ng-update/{v4/steps/utils → utils}/remove-attrs.js +0 -0
package/constants/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TUI_VERSION = "5.3.0-canary.
|
|
1
|
+
export declare const TUI_VERSION = "5.3.0-canary.e895e55";
|
package/constants/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-constants.mjs","sources":["../../../projects/cdk/constants/empty.ts","../../../projects/cdk/constants/handlers.ts","../../../projects/cdk/constants/matchers.ts","../../../projects/cdk/constants/regexp.ts","../../../projects/cdk/constants/svg-node-filter.ts","../../../projects/cdk/constants/unicode-chars.ts","../../../projects/cdk/constants/used-icons.ts","../../../projects/cdk/constants/version.ts","../../../projects/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["const rect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n} as const;\n\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\nexport const EMPTY_CLIENT_RECT: DOMRect = {\n ...rect,\n toJSON: () => rect,\n};\n","import {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\n/**\n * Handler that always returns `false`.\n */\nexport const TUI_FALSE_HANDLER = (): false => false;\n\n/**\n * Handler that always returns `true`.\n */\nexport const TUI_TRUE_HANDLER = (): true => true;\nexport const TUI_STRINGIFY: PolymorpheusContent = ({$implicit}) => String($implicit);\n","import {type TuiHandler, type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = String,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = String,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\n","export const svgNodeFilter = {\n acceptNode(node: Node): number {\n return 'ownerSVGElement' in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT;\n },\n};\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = '\\u00A0';\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = '\\u2013';\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = '\\u2014';\n\n/**\n * {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_LAQUO = '\\u00AB';\n\n/**\n * {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_RAQUO = '\\u00BB';\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = '\\u002D';\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `−`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = '\\u2212';\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = '\\u002B';\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = '\\u2022';\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = '\\u2026';\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = '\\u00A4';\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = '\\u200B';\n","/**\n * @description:\n * AUTOGENERATED\n *\n * Array of icons used in ./projects\n */\nexport const TUI_USED_ICONS = [\n '@img.amex',\n '@img.diners-club',\n '@img.discover',\n '@img.humo',\n '@img.jcb',\n '@img.maestro',\n '@img.mastercard',\n '@img.ru-pay',\n '@img.union-pay',\n '@img.uzcard',\n '@img.verve',\n '@tui.arrow-left',\n '@tui.arrow-right',\n '@tui.calendar',\n '@tui.check',\n '@tui.chevron-down',\n '@tui.chevron-left',\n '@tui.chevron-right',\n '@tui.chevron-up',\n '@tui.chevrons-up-down',\n '@tui.circle-alert',\n '@tui.circle-check',\n '@tui.circle-help',\n '@tui.circle-x',\n '@tui.clock',\n '@tui.code',\n '@tui.copy',\n '@tui.electron',\n '@tui.ellipsis',\n '@tui.expand',\n '@tui.eye',\n '@tui.eye-off',\n '@tui.file',\n '@tui.filter',\n '@tui.grip-vertical',\n '@tui.heart',\n '@tui.heart-filled',\n '@tui.info',\n '@tui.layout-grid',\n '@tui.link',\n '@tui.menu',\n '@tui.minimize',\n '@tui.minus',\n '@tui.mir',\n '@tui.plus',\n '@tui.rotate-ccw-square',\n '@tui.search',\n '@tui.shrink',\n '@tui.star',\n '@tui.trash',\n '@tui.visa',\n '@tui.x',\n] as const;\n","export const TUI_VERSION = '5.3.0-canary.
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-constants.mjs","sources":["../../../projects/cdk/constants/empty.ts","../../../projects/cdk/constants/handlers.ts","../../../projects/cdk/constants/matchers.ts","../../../projects/cdk/constants/regexp.ts","../../../projects/cdk/constants/svg-node-filter.ts","../../../projects/cdk/constants/unicode-chars.ts","../../../projects/cdk/constants/used-icons.ts","../../../projects/cdk/constants/version.ts","../../../projects/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["const rect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n} as const;\n\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\nexport const EMPTY_CLIENT_RECT: DOMRect = {\n ...rect,\n toJSON: () => rect,\n};\n","import {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\n/**\n * Handler that always returns `false`.\n */\nexport const TUI_FALSE_HANDLER = (): false => false;\n\n/**\n * Handler that always returns `true`.\n */\nexport const TUI_TRUE_HANDLER = (): true => true;\nexport const TUI_STRINGIFY: PolymorpheusContent = ({$implicit}) => String($implicit);\n","import {type TuiHandler, type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = String,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = String,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\n","export const svgNodeFilter = {\n acceptNode(node: Node): number {\n return 'ownerSVGElement' in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT;\n },\n};\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = '\\u00A0';\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = '\\u2013';\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = '\\u2014';\n\n/**\n * {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_LAQUO = '\\u00AB';\n\n/**\n * {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_RAQUO = '\\u00BB';\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = '\\u002D';\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `−`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = '\\u2212';\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = '\\u002B';\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = '\\u2022';\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = '\\u2026';\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = '\\u00A4';\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = '\\u200B';\n","/**\n * @description:\n * AUTOGENERATED\n *\n * Array of icons used in ./projects\n */\nexport const TUI_USED_ICONS = [\n '@img.amex',\n '@img.diners-club',\n '@img.discover',\n '@img.humo',\n '@img.jcb',\n '@img.maestro',\n '@img.mastercard',\n '@img.ru-pay',\n '@img.union-pay',\n '@img.uzcard',\n '@img.verve',\n '@tui.arrow-left',\n '@tui.arrow-right',\n '@tui.calendar',\n '@tui.check',\n '@tui.chevron-down',\n '@tui.chevron-left',\n '@tui.chevron-right',\n '@tui.chevron-up',\n '@tui.chevrons-up-down',\n '@tui.circle-alert',\n '@tui.circle-check',\n '@tui.circle-help',\n '@tui.circle-x',\n '@tui.clock',\n '@tui.code',\n '@tui.copy',\n '@tui.electron',\n '@tui.ellipsis',\n '@tui.expand',\n '@tui.eye',\n '@tui.eye-off',\n '@tui.file',\n '@tui.filter',\n '@tui.grip-vertical',\n '@tui.heart',\n '@tui.heart-filled',\n '@tui.info',\n '@tui.layout-grid',\n '@tui.link',\n '@tui.menu',\n '@tui.minimize',\n '@tui.minus',\n '@tui.mir',\n '@tui.plus',\n '@tui.rotate-ccw-square',\n '@tui.search',\n '@tui.shrink',\n '@tui.star',\n '@tui.trash',\n '@tui.visa',\n '@tui.x',\n] as const;\n","export const TUI_VERSION = '5.3.0-canary.e895e55';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG;AACT,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,GAAG,EAAE,CAAC;AACN,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,CAAC,EAAE,CAAC;AACJ,IAAA,CAAC,EAAE,CAAC;CACE;MAEG,cAAc,GAA6B,MAAK,EAAE;AACxD,MAAM,iBAAiB,GAAY;AACtC,IAAA,GAAG,IAAI;AACP,IAAA,MAAM,EAAE,MAAM,IAAI;;;ACZtB;;AAEG;MACU,iBAAiB,GAAG,MAAa;AAE9C;;AAEG;MACU,gBAAgB,GAAG,MAAY;AACrC,MAAM,aAAa,GAAwB,CAAC,EAAC,SAAS,EAAC,KAAK,MAAM,CAAC,SAAS;;ACTnF,SAAS,SAAS,CAAC,KAAc,EAAE,KAAc,EAAA;IAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM;AACzF;AAEA;;;;;AAKG;AACI,MAAM,mBAAmB,GAAG,CAC/B,IAAO,EACP,MAAc,EACd,SAAA,GAAmC,MAAM,KAC/B,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE;AAEzE;;;;;AAKG;AACI,MAAM,kBAAkB,GAAG,CAC9B,IAAO,EACP,MAAc,EACd,SAAA,GAAmC,MAAM,KAC/B,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,WAAW;AAElE;;;;;;AAMG;MACU,4BAA4B,GAAgC,C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d,WAAW;IACX,aAAa;IACb,oBAAoB;IACpB,YAAY;IACZ,mBAAmB;IACnB,WAAW;IACX,kBAAkB;IAClB,WAAW;IACX,WAAW;IACX,eAAe;IACf,YAAY;IACZ,UAAU;IACV,WAAW;IACX,wBAAwB;IACxB,aAAa;IACb,aAAa;IACb,WAAW;IACX,YAAY;IACZ,WAAW;IACX,QAAQ;;;AC1DL,MAAM,WAAW,GAAG;;ACA3B;;AAEG;;;;"}
|
|
@@ -106,11 +106,11 @@ function truncate(text, left, right) {
|
|
|
106
106
|
|
|
107
107
|
class Styles {
|
|
108
108
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
109
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: Styles, isStandalone: true, selector: "ng-component", exportAs: ["tui-truncate-5.3.0-canary.
|
|
109
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: Styles, isStandalone: true, selector: "ng-component", exportAs: ["tui-truncate-5.3.0-canary.e895e55"], ngImport: i0, template: '', isInline: true, styles: ["[tuiTruncate]:where(*[data-tui-version=\"5.3.0-canary.e895e55\"]){display:-webkit-box;letter-spacing:-1rem;-webkit-text-fill-color:transparent;-webkit-box-orient:block-axis;-webkit-line-clamp:1;overflow:hidden}[tuiTruncate]:where(*[data-tui-version=\"5.3.0-canary.e895e55\"])[data-lines=\"1\"]:before{white-space:nowrap}[tuiTruncate]:where(*[data-tui-version=\"5.3.0-canary.e895e55\"]):before{content:attr(data-text);inline-size:100%;letter-spacing:normal;-webkit-text-fill-color:currentColor;white-space:normal;overflow-wrap:anywhere}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
110
110
|
}
|
|
111
111
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: Styles, decorators: [{
|
|
112
112
|
type: Component,
|
|
113
|
-
args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: `tui-truncate-${TUI_VERSION}`, styles: ["[tuiTruncate]:where(*[data-tui-version=\"5.3.0-canary.
|
|
113
|
+
args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: `tui-truncate-${TUI_VERSION}`, styles: ["[tuiTruncate]:where(*[data-tui-version=\"5.3.0-canary.e895e55\"]){display:-webkit-box;letter-spacing:-1rem;-webkit-text-fill-color:transparent;-webkit-box-orient:block-axis;-webkit-line-clamp:1;overflow:hidden}[tuiTruncate]:where(*[data-tui-version=\"5.3.0-canary.e895e55\"])[data-lines=\"1\"]:before{white-space:nowrap}[tuiTruncate]:where(*[data-tui-version=\"5.3.0-canary.e895e55\"]):before{content:attr(data-text);inline-size:100%;letter-spacing:normal;-webkit-text-fill-color:currentColor;white-space:normal;overflow-wrap:anywhere}\n"] }]
|
|
114
114
|
}] });
|
|
115
115
|
class TuiTruncate {
|
|
116
116
|
constructor() {
|
|
@@ -129,7 +129,7 @@ class TuiTruncate {
|
|
|
129
129
|
return this.el.innerText.trim();
|
|
130
130
|
}
|
|
131
131
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TuiTruncate, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
132
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.20", type: TuiTruncate, isStandalone: true, selector: "[tuiTruncate]", inputs: { lines: { classPropertyName: "lines", publicName: "tuiTruncate", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiTruncate": "", "data-tui-version": "5.3.0-canary.
|
|
132
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.20", type: TuiTruncate, isStandalone: true, selector: "[tuiTruncate]", inputs: { lines: { classPropertyName: "lines", publicName: "tuiTruncate", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiTruncate": "", "data-tui-version": "5.3.0-canary.e895e55" }, properties: { "attr.data-lines": "lines()", "attr.data-text": "truncated()", "style.-webkit-line-clamp": "lines()" } }, providers: [
|
|
133
133
|
TuiTruncateService,
|
|
134
134
|
WaResizeObserverService,
|
|
135
135
|
WaMutationObserverService,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/cdk",
|
|
3
|
-
"version": "5.3.0-canary.
|
|
3
|
+
"version": "5.3.0-canary.e895e55",
|
|
4
4
|
"description": "Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -60,34 +60,34 @@
|
|
|
60
60
|
"types": "./observables/index.d.ts",
|
|
61
61
|
"default": "./fesm2022/taiga-ui-cdk-observables.mjs"
|
|
62
62
|
},
|
|
63
|
-
"./pipes": {
|
|
64
|
-
"types": "./pipes/index.d.ts",
|
|
65
|
-
"default": "./fesm2022/taiga-ui-cdk-pipes.mjs"
|
|
66
|
-
},
|
|
67
63
|
"./portals": {
|
|
68
64
|
"types": "./portals/index.d.ts",
|
|
69
65
|
"default": "./fesm2022/taiga-ui-cdk-portals.mjs"
|
|
70
66
|
},
|
|
71
|
-
"./
|
|
72
|
-
"types": "./
|
|
73
|
-
"default": "./fesm2022/taiga-ui-cdk-
|
|
67
|
+
"./pipes": {
|
|
68
|
+
"types": "./pipes/index.d.ts",
|
|
69
|
+
"default": "./fesm2022/taiga-ui-cdk-pipes.mjs"
|
|
74
70
|
},
|
|
75
71
|
"./types": {
|
|
76
72
|
"types": "./types/index.d.ts",
|
|
77
73
|
"default": "./fesm2022/taiga-ui-cdk-types.mjs"
|
|
78
74
|
},
|
|
75
|
+
"./tokens": {
|
|
76
|
+
"types": "./tokens/index.d.ts",
|
|
77
|
+
"default": "./fesm2022/taiga-ui-cdk-tokens.mjs"
|
|
78
|
+
},
|
|
79
79
|
"./utils": {
|
|
80
80
|
"types": "./utils/index.d.ts",
|
|
81
81
|
"default": "./fesm2022/taiga-ui-cdk-utils.mjs"
|
|
82
82
|
},
|
|
83
|
-
"./directives/active-zone": {
|
|
84
|
-
"types": "./directives/active-zone/index.d.ts",
|
|
85
|
-
"default": "./fesm2022/taiga-ui-cdk-directives-active-zone.mjs"
|
|
86
|
-
},
|
|
87
83
|
"./directives/animated": {
|
|
88
84
|
"types": "./directives/animated/index.d.ts",
|
|
89
85
|
"default": "./fesm2022/taiga-ui-cdk-directives-animated.mjs"
|
|
90
86
|
},
|
|
87
|
+
"./directives/active-zone": {
|
|
88
|
+
"types": "./directives/active-zone/index.d.ts",
|
|
89
|
+
"default": "./fesm2022/taiga-ui-cdk-directives-active-zone.mjs"
|
|
90
|
+
},
|
|
91
91
|
"./directives/auto-focus": {
|
|
92
92
|
"types": "./directives/auto-focus/index.d.ts",
|
|
93
93
|
"default": "./fesm2022/taiga-ui-cdk-directives-auto-focus.mjs"
|
|
@@ -168,6 +168,10 @@
|
|
|
168
168
|
"types": "./directives/value-changes/index.d.ts",
|
|
169
169
|
"default": "./fesm2022/taiga-ui-cdk-directives-value-changes.mjs"
|
|
170
170
|
},
|
|
171
|
+
"./directives/vcr": {
|
|
172
|
+
"types": "./directives/vcr/index.d.ts",
|
|
173
|
+
"default": "./fesm2022/taiga-ui-cdk-directives-vcr.mjs"
|
|
174
|
+
},
|
|
171
175
|
"./directives/visual-viewport": {
|
|
172
176
|
"types": "./directives/visual-viewport/index.d.ts",
|
|
173
177
|
"default": "./fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs"
|
|
@@ -192,10 +196,6 @@
|
|
|
192
196
|
"types": "./pipes/obfuscate/index.d.ts",
|
|
193
197
|
"default": "./fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs"
|
|
194
198
|
},
|
|
195
|
-
"./directives/vcr": {
|
|
196
|
-
"types": "./directives/vcr/index.d.ts",
|
|
197
|
-
"default": "./fesm2022/taiga-ui-cdk-directives-vcr.mjs"
|
|
198
|
-
},
|
|
199
199
|
"./utils/di": {
|
|
200
200
|
"types": "./utils/di/index.d.ts",
|
|
201
201
|
"default": "./fesm2022/taiga-ui-cdk-utils-di.mjs"
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"@angular-devkit/core": ">=19.0.0",
|
|
240
240
|
"@angular-devkit/schematics": ">=19.0.0",
|
|
241
241
|
"@schematics/angular": ">=19.0.0",
|
|
242
|
-
"ng-morph": "^
|
|
242
|
+
"ng-morph": "^5.0.0",
|
|
243
243
|
"parse5": "^7.3.0"
|
|
244
244
|
},
|
|
245
245
|
"ng-update": {
|
|
@@ -1,29 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
3
|
"schematics": {
|
|
4
|
-
"migrateCssVarsV4": {
|
|
5
|
-
"description": "Migrate Taiga UI css variables",
|
|
6
|
-
"version": "4.0.0",
|
|
7
|
-
"factory": "./ng-update/v4/migrate-css-vars/index#migrateCssVars"
|
|
8
|
-
},
|
|
9
|
-
"migrateIconsV4": {
|
|
10
|
-
"description": "Migrate Taiga UI icons to a new format",
|
|
11
|
-
"version": "4.0.0",
|
|
12
|
-
"factory": "./ng-update/v4/migrate-icons/index#migrateIcons"
|
|
13
|
-
},
|
|
14
|
-
"migrateAddonDocV4": {
|
|
15
|
-
"description": "Migrate Taiga UI addon doc",
|
|
16
|
-
"version": "4.0.0",
|
|
17
|
-
"factory": "./ng-update/v4/migrate-addon-doc/index#migrateAddonDoc"
|
|
18
|
-
},
|
|
19
|
-
"updateToV4": {
|
|
20
|
-
"description": "Updates Taiga UI packages to v4",
|
|
21
|
-
"version": "4.0.0",
|
|
22
|
-
"factory": "./ng-update/v4/index#updateToV4"
|
|
23
|
-
},
|
|
24
4
|
"updateToV5": {
|
|
25
5
|
"description": "Updates Taiga UI packages to v5",
|
|
26
|
-
"version": "5.0.0
|
|
6
|
+
"version": "5.0.0",
|
|
27
7
|
"factory": "./ng-update/v5/index#updateToV5"
|
|
28
8
|
}
|
|
29
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TAIGA_VERSION = "^5.3.0-canary.
|
|
1
|
+
export declare const TAIGA_VERSION = "^5.3.0-canary.e895e55";
|
|
@@ -3,10 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ngAdd = ngAdd;
|
|
4
4
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
5
5
|
const ng_morph_1 = require("ng-morph");
|
|
6
|
+
const detect_package_manager_1 = require("../utils/detect-package-manager");
|
|
6
7
|
const packages_1 = require("./constants/packages");
|
|
7
8
|
const versions_1 = require("./constants/versions");
|
|
8
9
|
function addDependencies(tree, options) {
|
|
9
|
-
const packages = [
|
|
10
|
+
const packages = [
|
|
11
|
+
...packages_1.MAIN_PACKAGES,
|
|
12
|
+
...options.addons,
|
|
13
|
+
...((0, detect_package_manager_1.detectPackageManager)(tree) === 'pnpm' ? ['styles'] : []),
|
|
14
|
+
];
|
|
10
15
|
packages.forEach((pack) => {
|
|
11
16
|
(0, ng_morph_1.addPackageJsonDependency)(tree, {
|
|
12
17
|
name: `@taiga-ui/${pack}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/cdk/schematics/ng-add/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/cdk/schematics/ng-add/index.ts"],"names":[],"mappings":";;AAgEA,sBAUC;AAzED,4DAA0F;AAC1F,uCAKkB;AAElB,4EAAqE;AACrE,mDAAmD;AACnD,mDAAmD;AAGnD,SAAS,eAAe,CAAC,IAAU,EAAE,OAAkB;IACnD,MAA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AAU,CAAC,0CAAE,OAAO,EAAE,CAAC;YACtD,IAAA,sCAA2B,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAClD,CAAC;IACL,CAAC;IAAC,WAAM,CAAC;QACL,OAAO;IACX,CAAC;AACL,CAAC;AAED,SAAgB,KAAK,CAAC,OAAkB;IACpC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAQ,EAAE;QACnD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,yCAAyC,wBAAa,EAAE,CAAC,CAAC;QAE9E,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE/B,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,EAAE;YAC1C,OAAO,CAAC,OAAO,CAAC,IAAI,wBAAgB,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;SACzE,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.replaceImports = replaceImports;
|
|
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
|
5
5
|
const constants_1 = require("../../../constants");
|
|
6
6
|
const add_unique_import_1 = require("../../../utils/add-unique-import");
|
|
7
|
+
const colored_log_1 = require("../../../utils/colored-log");
|
|
7
8
|
const import_manipulations_1 = require("../../../utils/import-manipulations");
|
|
8
9
|
const progress_1 = require("../../../utils/progress");
|
|
9
10
|
function replaceImports(replaceable, options) {
|
|
@@ -27,6 +28,6 @@ function replaceImports(replaceable, options) {
|
|
|
27
28
|
!options['skip-logs'] && progressLog('replacing imports...', true);
|
|
28
29
|
});
|
|
29
30
|
!options['skip-logs'] &&
|
|
30
|
-
(0,
|
|
31
|
+
(0, colored_log_1.successLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} imports replaced \n`);
|
|
31
32
|
}
|
|
32
33
|
//# sourceMappingURL=replace-imports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-imports.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/steps/icons/replace-imports.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"replace-imports.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/steps/icons/replace-imports.ts"],"names":[],"mappings":";;AAUA,wCAuCC;AAjDD,uCAA0C;AAE1C,kDAAgD;AAEhD,wEAAiE;AACjE,4DAAwF;AACxF,8EAAiE;AACjE,sDAA4D;AAG5D,SAAgB,cAAc,CAC1B,WAAoC,EACpC,OAAkB;IAElB,MAAM,UAAU,GAAG,IAAA,qBAAU,EAAC,wBAAY,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,IAAA,8BAAmB,EAAC,EAAC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAC,CAAC,CAAC;IAErE,WAAW,CAAC,OAAO,CAAC,CAAC,EAAC,IAAI,EAAE,EAAE,EAAC,EAAE,EAAE;QAC/B,MAAM,kBAAkB,GAAG,UAAU,CAAC,MAAM,CACxC,CAAC,WAAW,EAAE,EAAE,CACZ,CAAC,WAAW,CAAC,YAAY,EAAE;YAC3B,WAAW,CAAC,uBAAuB,EAAE,KAAK,IAAI,CAAC,eAAe;YAC9D,WAAW;iBACN,eAAe,EAAE;iBACjB,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,CAClE,CAAC;QAEF,MAAM,YAAY,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CACxD,WAAW;aACN,eAAe,EAAE;aACjB,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,CAC9D,CAAC;QAEF,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;YACjC,IAAI,eAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,EAAE,CAAC;gBACrE,IAAA,mCAAY,EAAC,WAAW,CAAC,CAAC;gBAC1B,IAAA,mCAAe,EACX,WAAW,CAAC,aAAa,EAAE,CAAC,WAAW,EAAE,EACzC,EAAE,CAAC,WAAW,IAAI,EAAE,CAAC,IAAI,EACzB,EAAE,CAAC,eAAe,CACrB,CAAC;YACN,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;IAEH,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,wBAAU,EAAC,GAAG,8BAAgB,GAAG,4BAAc,sBAAsB,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.removeDuplicates = removeDuplicates;
|
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
|
+
const colored_log_1 = require("../../utils/colored-log");
|
|
6
7
|
function removeDuplicates(options) {
|
|
7
8
|
!options['skip-logs'] &&
|
|
8
|
-
(0,
|
|
9
|
+
(0, colored_log_1.infoLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} removing duplicates...`);
|
|
9
10
|
const classes = (0, ng_morph_1.getClasses)(constants_1.ALL_TS_FILES);
|
|
10
11
|
const modules = (0, ng_morph_1.getDecorators)(classes, { name: 'NgModule' });
|
|
11
12
|
const components = (0, ng_morph_1.getDecorators)(classes, { name: 'Component' });
|
|
@@ -35,6 +36,6 @@ function removeDuplicates(options) {
|
|
|
35
36
|
indexToRemove.forEach((index, i) => importsInitializer.removeElement(index - i));
|
|
36
37
|
});
|
|
37
38
|
!options['skip-logs'] &&
|
|
38
|
-
(0,
|
|
39
|
+
(0, colored_log_1.successLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} duplicates removed \n`);
|
|
39
40
|
}
|
|
40
41
|
//# sourceMappingURL=remove-duplicates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-duplicates.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/steps/remove-duplicates.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"remove-duplicates.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/steps/remove-duplicates.ts"],"names":[],"mappings":";;AAYA,4CA2CC;AAvDD,uCAAyD;AAEzD,+CAA6C;AAE7C,yDAMiC;AAEjC,SAAgB,gBAAgB,CAAC,OAAkB;IAC/C,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,qBAAO,EAAC,GAAG,8BAAgB,GAAG,4BAAc,yBAAyB,CAAC,CAAC;IAE3E,MAAM,OAAO,GAAG,IAAA,qBAAU,EAAC,wBAAY,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG,IAAA,wBAAa,EAAC,OAAO,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC,CAAC;IAC3D,MAAM,UAAU,GAAG,IAAA,wBAAa,EAAC,OAAO,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,CAAC,CAAC;IAE/D,CAAC,GAAG,OAAO,EAAE,GAAG,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;QAC9C,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,YAAY,EAAE,CAAC;QAE5C,IAAI,CAAC,QAAQ,IAAI,CAAC,eAAI,CAAC,yBAAyB,CAAC,QAAQ,CAAC,EAAE,CAAC;YACzD,OAAO;QACX,CAAC;QAED,MAAM,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QAEjD,IAAI,CAAC,eAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC;YACvC,OAAO;QACX,CAAC;QAED,MAAM,kBAAkB,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;QAErD,IAAI,CAAC,kBAAkB,IAAI,CAAC,eAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,CAAC;YAC5E,OAAO;QACX,CAAC;QAED,MAAM,aAAa,GAAa,EAAE,CAAC;QACnC,MAAM,eAAe,GAAG,IAAI,GAAG,EAAE,CAAC;QAElC,kBAAkB,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE;YACnD,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;gBACpC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC9B,CAAC;iBAAM,CAAC;gBACJ,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;YACtC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,aAAa,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,aAAa,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;IACrF,CAAC,CAAC,CAAC;IAEH,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,wBAAU,EAAC,GAAG,8BAAgB,GAAG,4BAAc,wBAAwB,CAAC,CAAC;AACjF,CAAC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.renameTypes = renameTypes;
|
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
|
5
5
|
const add_unique_import_1 = require("../../utils/add-unique-import");
|
|
6
|
+
const colored_log_1 = require("../../utils/colored-log");
|
|
6
7
|
const get_named_import_references_1 = require("../../utils/get-named-import-references");
|
|
7
8
|
const import_manipulations_1 = require("../../utils/import-manipulations");
|
|
8
9
|
function renameType({ from, to, moduleSpecifier, preserveGenerics = false, removeImport = false, newImports = [], }) {
|
|
@@ -44,9 +45,9 @@ function addGeneric(typeName, generics) {
|
|
|
44
45
|
}
|
|
45
46
|
function renameTypes(options, types) {
|
|
46
47
|
!options['skip-logs'] &&
|
|
47
|
-
(0,
|
|
48
|
+
(0, colored_log_1.infoLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} renaming types...`);
|
|
48
49
|
types.forEach(renameType);
|
|
49
50
|
!options['skip-logs'] &&
|
|
50
|
-
(0,
|
|
51
|
+
(0, colored_log_1.successLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} types renamed \n`);
|
|
51
52
|
}
|
|
52
53
|
//# sourceMappingURL=rename-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rename-types.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/steps/rename-types.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"rename-types.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/steps/rename-types.ts"],"names":[],"mappings":";;AAgFA,kCAQC;AAxFD,uCAAgE;AAIhE,qEAA8D;AAC9D,yDAMiC;AACjC,yFAAiF;AACjF,2EAA4E;AAG5E,SAAS,UAAU,CAAC,EAChB,IAAI,EACJ,EAAE,EACF,eAAe,EACf,gBAAgB,GAAG,KAAK,EACxB,YAAY,GAAG,KAAK,EACpB,UAAU,GAAG,EAAE,GACD;IACd,MAAM,UAAU,GAAG,IAAA,sDAAwB,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAEnE,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,IAAI,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QAED,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,EAAE,CAAC;QAE/B,IAAI,eAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EA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EAAE,CAAC,CAAC;AACzC,CAAC;AAED,SAAS,UAAU,CAAC,QAAgB,EAAE,QAAoB;IACtD,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;IAC5D,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAEtE,OAAO,GAAG,QAAQ,GAAG,WAAW,EAAE,CAAC;AACvC,CAAC;AAED,SAAgB,WAAW,CAAC,OAAkB,EAAE,KAAiC;IAC7E,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,qBAAO,EAAC,GAAG,8BAAgB,GAAG,4BAAc,oBAAoB,CAAC,CAAC;IAEtE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAE1B,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,wBAAU,EAAC,GAAG,8BAAgB,GAAG,4BAAc,mBAAmB,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -3,19 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.replaceDeepImports = replaceDeepImports;
|
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
|
+
const colored_log_1 = require("../../utils/colored-log");
|
|
6
7
|
const DEEP_REGEX = /(@taiga-ui\/\w+)\/.*/;
|
|
7
8
|
function replaceDeepImports(options) {
|
|
8
9
|
if (options['skip-deep-imports']) {
|
|
9
10
|
return;
|
|
10
11
|
}
|
|
11
12
|
!options['skip-logs'] &&
|
|
12
|
-
(0,
|
|
13
|
+
(0, colored_log_1.infoLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing deep imports...`);
|
|
13
14
|
const deepImports = (0, ng_morph_1.getImports)(constants_1.ALL_TS_FILES).filter((imp) => DEEP_REGEX.test(imp.getModuleSpecifier().getLiteralValue()));
|
|
14
15
|
(0, ng_morph_1.editImports)(deepImports, (deepImport) => {
|
|
15
16
|
const specifier = deepImport.moduleSpecifier.replace(DEEP_REGEX, '$1');
|
|
16
17
|
return { moduleSpecifier: specifier };
|
|
17
18
|
});
|
|
18
19
|
!options['skip-logs'] &&
|
|
19
|
-
(0,
|
|
20
|
+
(0, colored_log_1.successLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} deep imports replaced \n`);
|
|
20
21
|
}
|
|
21
22
|
//# sourceMappingURL=replace-deep-import.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-deep-import.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/steps/replace-deep-import.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"replace-deep-import.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/steps/replace-deep-import.ts"],"names":[],"mappings":";;AAcA,gDAoBC;AAlCD,uCAAiD;AAEjD,+CAA6C;AAE7C,yDAMiC;AAEjC,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAE1C,SAAgB,kBAAkB,CAAC,OAAkB;IACjD,IAAI,OAAO,CAAC,mBAAmB,CAAC,EAAE,CAAC;QAC/B,OAAO;IACX,CAAC;IAED,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,qBAAO,EAAC,GAAG,8BAAgB,GAAG,4BAAc,4BAA4B,CAAC,CAAC;IAE9E,MAAM,WAAW,GAAG,IAAA,qBAAU,EAAC,wBAAY,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CACxD,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,CAAC,eAAe,EAAE,CAAC,CAC9D,CAAC;IAEF,IAAA,sBAAW,EAAC,WAAW,EAAE,CAAC,UAAU,EAAE,EAAE;QACpC,MAAM,SAAS,GAAG,UAAU,CAAC,eAAe,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QAEvE,OAAO,EAAC,eAAe,EAAE,SAAS,EAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,wBAAU,EAAC,GAAG,8BAAgB,GAAG,4BAAc,2BAA2B,CAAC,CAAC;AACpF,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.replaceEnums = replaceEnums;
|
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
|
5
|
+
const colored_log_1 = require("../../utils/colored-log");
|
|
5
6
|
const get_named_import_references_1 = require("../../utils/get-named-import-references");
|
|
6
7
|
const import_manipulations_1 = require("../../utils/import-manipulations");
|
|
7
8
|
function replaceEnumWithString(enumName, replaceValues, keepAsType = true) {
|
|
@@ -31,16 +32,19 @@ function replaceEnumWithString(enumName, replaceValues, keepAsType = true) {
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
function containTypeRef(node) {
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
const nameNode = node.getNameNode();
|
|
36
|
+
if (!ng_morph_1.Node.isIdentifier(nameNode)) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
return nameNode
|
|
36
40
|
.findReferencesAsNodes()
|
|
37
41
|
.some((ref) => ng_morph_1.Node.isTypeReference(ref.getParent()));
|
|
38
42
|
}
|
|
39
43
|
function replaceEnums(options, enums) {
|
|
40
44
|
!options['skip-logs'] &&
|
|
41
|
-
(0,
|
|
45
|
+
(0, colored_log_1.infoLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing enums imports...`);
|
|
42
46
|
enums.forEach(({ name, replaceValues, keepAsType }) => replaceEnumWithString(name, replaceValues, keepAsType));
|
|
43
47
|
!options['skip-logs'] &&
|
|
44
|
-
(0,
|
|
48
|
+
(0, colored_log_1.successLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} enums replaced \n`);
|
|
45
49
|
}
|
|
46
50
|
//# sourceMappingURL=replace-enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-enums.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/steps/replace-enums.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"replace-enums.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/steps/replace-enums.ts"],"names":[],"mappings":";;AAgEA,oCAUC;AA1ED,uCAA8E;AAG9E,yDAMiC;AACjC,yFAAiF;AACjF,2EAA8D;AAG9D,SAAS,qBAAqB,CAC1B,QAAgB,EAChB,aAAqC,EACrC,UAAU,GAAG,IAAI;;IAEjB,MAAM,UAAU,GAAG,IAAA,sDAAwB,EAAC,QAAQ,CAAC,CAAC;IAEtD,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAC3B,IAAI,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC;YACrB,SAAS;QACb,CAAC;QAED,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,EAAE,CAAC;QAE/B,IAAI,eAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;YAC7E,IAAA,mCAAY,EAAC,MAAM,CAAC,CAAC;YACrB,SAAS;QACb,CAAC;QAED,IAAI,eAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YAC9C,MAAM,WAAW,GAAG,MAAM,CAAC,SAAS,EAAyB,CAAC;YAE9D,MAAA,WAAW,CAAC,UAAU,2DAAI,CAAC;YAC3B,SAAS;QACb,CAA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entifiers;
|
|
|
4
4
|
exports.replaceIdentifier = replaceIdentifier;
|
|
5
5
|
const ng_morph_1 = require("ng-morph");
|
|
6
6
|
const add_unique_import_1 = require("../../utils/add-unique-import");
|
|
7
|
+
const colored_log_1 = require("../../utils/colored-log");
|
|
7
8
|
const get_named_import_references_1 = require("../../utils/get-named-import-references");
|
|
8
9
|
const import_manipulations_1 = require("../../utils/import-manipulations");
|
|
9
10
|
const progress_1 = require("../../utils/progress");
|
|
10
11
|
function replaceIdentifiers(options, constants) {
|
|
11
12
|
!options['skip-logs'] &&
|
|
12
|
-
(0,
|
|
13
|
+
(0, colored_log_1.infoLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing identifiers...`);
|
|
13
14
|
const progressLog = (0, progress_1.setupProgressLogger)({ total: constants.length });
|
|
14
15
|
constants.forEach(({ from, to }) => {
|
|
15
16
|
toArray(from).forEach((x) => replaceIdentifier({ from: x, to }));
|
|
@@ -19,7 +20,7 @@ function replaceIdentifiers(options, constants) {
|
|
|
19
20
|
.join(', '));
|
|
20
21
|
});
|
|
21
22
|
!options['skip-logs'] &&
|
|
22
|
-
(0,
|
|
23
|
+
(0, colored_log_1.successLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} identifiers replaced \n`);
|
|
23
24
|
}
|
|
24
25
|
function replaceIdentifier({ from, to }) {
|
|
25
26
|
const references = toArray(from)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-identifier.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/steps/replace-identifier.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"replace-identifier.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/steps/replace-identifier.ts"],"names":[],"mappings":";;AAgBA,gDAsBC;AAED,8CA2BC;AAnED,uCAAkC;AAGlC,qEAA8D;AAC9D,yDAMiC;AACjC,yFAAiF;AACjF,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EAAE,CAAC;YACjB,OAAO,GAAG,IAAI,IAAI,CAAC;QACvB,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;SACD,IAAI,CAAC,IAAI,CAAC,CAAC;AACpB,CAAC;AAED,SAAS,OAAO,CAAI,CAAU;IAC1B,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.replaceServices = replaceServices;
|
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
|
5
5
|
const add_unique_import_1 = require("../../utils/add-unique-import");
|
|
6
|
+
const colored_log_1 = require("../../utils/colored-log");
|
|
6
7
|
const get_named_import_references_1 = require("../../utils/get-named-import-references");
|
|
7
8
|
const import_manipulations_1 = require("../../utils/import-manipulations");
|
|
8
9
|
function replaceService({ from, to, replaceMethods }, options) {
|
|
9
10
|
!options['skip-logs'] &&
|
|
10
|
-
(0,
|
|
11
|
+
(0, colored_log_1.processLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.PROCESSING_SYMBOL}replacing ${from.name}...`);
|
|
11
12
|
const references = (0, get_named_import_references_1.getNamedImportReferences)(from.name, from.moduleSpecifier);
|
|
12
13
|
references.forEach((ref) => {
|
|
13
14
|
if (ref.wasForgotten()) {
|
|
@@ -51,9 +52,9 @@ function replaceProperty(node, properties) {
|
|
|
51
52
|
}
|
|
52
53
|
function replaceServices(options, services) {
|
|
53
54
|
!options['skip-logs'] &&
|
|
54
|
-
(0,
|
|
55
|
+
(0, colored_log_1.infoLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing services...`);
|
|
55
56
|
services.forEach((service) => replaceService(service, options));
|
|
56
57
|
!options['skip-logs'] &&
|
|
57
|
-
(0,
|
|
58
|
+
(0, colored_log_1.successLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} services replaced \n`);
|
|
58
59
|
}
|
|
59
60
|
//# sourceMappingURL=replace-services.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-services.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/steps/replace-services.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"replace-services.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/steps/replace-services.ts"],"names":[],"mappings":";;AAoGA,0CAWC;AA/GD,uCAKkB;AAGlB,qEAA8D;AAC9D,yDAQiC;AACjC,yFAAiF;AACjF,2EAA8D;AAG9D,SAAS,cAAc,CACnB,EAAC,IAAI,EAAE,EAAE,EAAE,cAAc,EAAqB,EAC9C,OAAkB;IAElB,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,wBAAU,EACN,GAAG,8BAAgB,GAAG,8BAAgB,GAAG,+BAAiB,aAAa,IAAI,CAAC,IAAI,KAAK,CACxF,CAAC;IAEN,MAAM,UAAU,GAAG,IAAA,sDAAwB,EAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IAE7E,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,IAAI,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QAED,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,EAAE,CAAC;QAE/B,IAAI,eAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC;YACjC,IAAA,mCAAY,EAAC,MAAM,CAAC,CAAC;YACrB,IAAA,mCAAe,EACX,MAAM,CAAC,aAAa,EAAE,CAAC,WAAW,EAAE,EACpC,EAAE,CAAC,WAAW,IAAI,EAAE,CAAC,IAAI,EACzB,EAAE,CAAC,eAAe,CACrB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AAC,UAAU,EAAE,EAAE;QAC/B,MAAM,QAAQ,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAC7B,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,UAAU,CAAC,OAAO,EAAE,CACvD,CAAC;QAEF,IAAI,QAAQ,EAAE,CAAC;YACX,UAAU,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC5C,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAgB,eAAe,CAC3B,OAAkB,EAClB,QAAuC;IAEvC,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,qBAAO,EAAC,GAAG,8BAAgB,GAAG,4BAAc,wBAAwB,CAAC,CAAC;IAE1E,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAEhE,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,wBAAU,EAAC,GAAG,8BAAgB,GAAG,4BAAc,uBAAuB,CAAC,CAAC;AAChF,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { type UpdateRecorder } from '@angular-devkit/schematics';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Token } from 'parse5';
|
|
3
|
+
type Attribute = Token.Attribute;
|
|
4
|
+
type ElementLocation = Token.ElementLocation;
|
|
3
5
|
export declare function removeAttrs(attrs: Attribute[], sourceCodeLocation: ElementLocation, recorder: UpdateRecorder, templateOffset: number): void;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-attrs.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/utils/remove-attrs.ts"],"names":[],"mappings":";;AAOA,kCAkBC;AAlBD,SAAgB,WAAW,CACvB,KAAkB,EAClB,kBAAmC,EACnC,QAAwB,EACxB,cAAsB;IAEtB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;;QACnB,MAAM,UAAU,GAAG,MAAA,kBAAkB,CAAC,KAAK,0CAAG,IAAI,CAAC,IAAI,CAAC,CAAC;QAEzD,IAAI,UAAU,EAAE,CAAC;YACb,MAAM,EAAC,WAAW,EAAE,SAAS,EAAC,GAAG,UAAU,CAAC;YAE5C,QAAQ,CAAC,MAAM,CACX,cAAc,GAAG,WAAW,GAAG,CAAC,EAChC,SAAS,GAAG,WAAW,GAAG,CAAC,CAC9B,CAAC;QACN,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { type UpdateRecorder } from '@angular-devkit/schematics';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Token } from 'parse5';
|
|
3
|
+
type ElementLocation = Token.ElementLocation;
|
|
3
4
|
export declare function replaceTag(recorder: UpdateRecorder, sourceCodeLocation: ElementLocation | null | undefined, from: string, to: string, template: string, templateOffset?: number, addAttributes?: string[]): void;
|
|
5
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-tag.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/utils/templates/replace-tag.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"replace-tag.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/utils/templates/replace-tag.ts"],"names":[],"mappings":";;AAWA,gCA2CC;AAjDD,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,cAAc,GAAG,CAAC,CAAC;AAEzB,MAAM,4BAA4B,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAE7E,oEAAoE;AACpE,SAAgB,UAAU,CACtB,QAAwB,EACxB,kBAAsD,EACtD,IAAY,EACZ,EAAU,EACV,QAAgB,EAChB,cAAc,GAAG,CA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aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE3D,QAAQ,CAAC,WAAW,CAChB,CAAC,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,CAAC,CAAC,GAAG,cAAc,GAAG,gBAAgB,EACzD,UAAU,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAC1C,CAAC;AACN,CAAC"}
|
|
@@ -6,6 +6,8 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
6
6
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
7
7
|
const ng_morph_1 = require("ng-morph");
|
|
8
8
|
const versions_1 = require("../../ng-add/constants/versions");
|
|
9
|
+
const add_import_to_closest_module_1 = require("../../utils/add-import-to-closest-module");
|
|
10
|
+
const colored_log_1 = require("../../utils/colored-log");
|
|
9
11
|
const format_migration_stats_1 = require("../../utils/format-migration-stats");
|
|
10
12
|
const get_execution_time_1 = require("../../utils/get-execution-time");
|
|
11
13
|
const run_steps_1 = require("../../utils/run-steps");
|
|
@@ -112,6 +114,7 @@ function main(options, timings) {
|
|
|
112
114
|
step: () => (0, steps_1.showWarnings)(context, migration_warnings_1.MIGRATION_WARNINGS),
|
|
113
115
|
},
|
|
114
116
|
], timings);
|
|
117
|
+
(0, add_import_to_closest_module_1.saveAddedImports)(options);
|
|
115
118
|
fileSystem.commitEdits();
|
|
116
119
|
(0, ng_morph_1.saveActiveProject)();
|
|
117
120
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
@@ -121,7 +124,7 @@ function updateToV5(options) {
|
|
|
121
124
|
const t0 = node_perf_hooks_1.performance.now();
|
|
122
125
|
const timings = [];
|
|
123
126
|
!options['skip-logs'] &&
|
|
124
|
-
(0,
|
|
127
|
+
(0, colored_log_1.titleLog)(`\n\n${colored_log_1.START_SYMBOL} Your packages will be updated to @taiga-ui/*@${versions_1.TAIGA_VERSION}\n`);
|
|
125
128
|
return (0, schematics_1.chain)([
|
|
126
129
|
main(options, timings),
|
|
127
130
|
() => {
|
|
@@ -130,8 +133,8 @@ function updateToV5(options) {
|
|
|
130
133
|
if (options['skip-logs']) {
|
|
131
134
|
return;
|
|
132
135
|
}
|
|
133
|
-
(0,
|
|
134
|
-
(0,
|
|
136
|
+
(0, colored_log_1.titleLog)(`${colored_log_1.FINISH_SYMBOL} We migrated packages to @taiga-ui/*@${versions_1.TAIGA_VERSION} in ${executionTime}. \n`);
|
|
137
|
+
(0, colored_log_1.titleLog)(`${(0, format_migration_stats_1.formatMigrationStats)(timings, finishedAt - t0)}\n`);
|
|
135
138
|
},
|
|
136
139
|
]);
|
|
137
140
|
}
|