@taiga-ui/cdk 5.3.0 → 5.4.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/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-date-time.mjs +0 -6
- package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-truncate.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-portals.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-math.mjs +0 -5
- package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +0 -2
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
- package/package.json +2 -2
- 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 -5
- 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-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/v5/steps/migrate-tokens/update-tsconfig.d.ts +0 -11
- package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js +0 -75
- package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js.map +0 -1
- /package/schematics/ng-update/{v4/steps/utils → utils}/remove-attrs.js +0 -0
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateMonthContext = migrateMonthContext;
|
|
4
|
-
const ng_morph_1 = require("ng-morph");
|
|
5
|
-
const add_unique_import_1 = require("../../../utils/add-unique-import");
|
|
6
|
-
const get_named_import_references_1 = require("../../../utils/get-named-import-references");
|
|
7
|
-
const import_manipulations_1 = require("../../../utils/import-manipulations");
|
|
8
|
-
function migrateMonthContext(options) {
|
|
9
|
-
!options['skip-logs'] &&
|
|
10
|
-
(0, ng_morph_1.infoLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.REPLACE_SYMBOL} migrating TuiBooleanHandlerWithContext<TuiMonth, TuiMonthContext> ...`);
|
|
11
|
-
const monthContextRefs = (0, get_named_import_references_1.getNamedImportReferences)('TuiMonthContext', '@taiga-ui/kit');
|
|
12
|
-
monthContextRefs
|
|
13
|
-
.map((n) => n.getFirstAncestorByKind(ng_morph_1.SyntaxKind.TypeReference))
|
|
14
|
-
.forEach((ref) => {
|
|
15
|
-
if (!ref || ref.wasForgotten()) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
const booleanHandlerWithContext = ref.getFirstAncestor((node) => node.isKind(ng_morph_1.SyntaxKind.TypeReference) &&
|
|
19
|
-
!!/TuiBooleanHandlerWithContext<\s*TuiMonth\s*,\s*TuiMonthContext\s*>/.exec(node.getText()));
|
|
20
|
-
if (!booleanHandlerWithContext) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
booleanHandlerWithContext.replaceWithText('TuiBooleanHandler<TuiMonth>');
|
|
24
|
-
(0, add_unique_import_1.addUniqueImport)(booleanHandlerWithContext.getSourceFile().getFilePath(), 'TuiBooleanHandler', '@taiga-ui/cdk');
|
|
25
|
-
});
|
|
26
|
-
[
|
|
27
|
-
...monthContextRefs,
|
|
28
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('TuiBooleanHandlerWithContext', '@taiga-ui/kit'),
|
|
29
|
-
]
|
|
30
|
-
.map((node) => !node.wasForgotten() &&
|
|
31
|
-
node.getFirstAncestorByKind(ng_morph_1.SyntaxKind.ImportSpecifier))
|
|
32
|
-
.filter((x) => !!x)
|
|
33
|
-
.forEach(import_manipulations_1.removeImport);
|
|
34
|
-
!options['skip-logs'] && (0, ng_morph_1.titleLog)(`${ng_morph_1.FINISH_SYMBOL} successfully migrated \n`);
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=migrate-month-context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-month-context.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/migrate-month-context.ts"],"names":[],"mappings":";;AAeA,kDAgDC;AA/DD,uCAQkB;AAGlB,wEAAiE;AACjE,4FAAoF;AACpF,8EAAiE;AAEjE,SAAgB,mBAAmB,CAAC,OAAkB;IAClD,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,kBAAO,EACH,GAAG,2BAAgB,GAAG,yBAAc,wEAAwE,CAC/G,CAAC;IAEN,MAAM,gBAAgB,GAAG,IAAA,sDAAwB,EAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;IAEtF,gBAAgB;SACX,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,sBAAsB,CAAC,qBAAU,CAAC,aAAa,CAAC,CAAC;SAC9D,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC;YAC7B,OAAO;QACX,CAAC;QAED,MAAM,yBAAyB,GAAG,GAAG,CAAC,gBAAgB,CAClD,CAAC,IAAI,EAAE,EAAE,CACL,IAAI,CAAC,MAAM,CAAC,qBAAU,CAAC,aAAa,CAAC;YACrC,CAAC,CAAC,oEAAoE,CAAC,IAAI,CACvE,IAAI,CAAC,OAAO,EAAE,CACjB,CACR,CAAC;QAEF,IAAI,CAAC,yBAAyB,EAAE,CAAC;YAC7B,OAAO;QACX,CAAC;QAED,yBAAyB,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC;QACzE,IAAA,mCAAe,EACX,yBAAyB,CAAC,aAAa,EAAE,CAAC,WAAW,EAAE,EACvD,mBAAmB,EACnB,eAAe,CAClB,CAAC;IACN,CAAC,CAAC,CAAC;IAEP;QACI,GAAG,gBAAgB;QACnB,GAAG,IAAA,sDAAwB,EAAC,8BAA8B,EAAE,eAAe,CAAC;KAC/E;SACI,GAAG,CACA,CAAC,IAAI,EAAE,EAAE,CACL,CAAC,IAAI,CAAC,YAAY,EAAE;QACpB,IAAI,CAAC,sBAAsB,CAAC,qBAAU,CAAC,eAAe,CAAC,CAC9D;SACA,MAAM,CAAC,CAAC,CAAC,EAAwB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;SACxC,OAAO,CAAC,mCAAY,CAAC,CAAC;IAE3B,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,IAAA,mBAAQ,EAAC,GAAG,wBAAa,2BAA2B,CAAC,CAAC;AACnF,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateNumberFormatSettings = migrateNumberFormatSettings;
|
|
4
|
-
const ng_morph_1 = require("ng-morph");
|
|
5
|
-
const get_named_import_references_1 = require("../../../utils/get-named-import-references");
|
|
6
|
-
const OPTIONS_MIGRATIONS = {
|
|
7
|
-
decimalLimit: (property) => property.replaceWithText(property.getText().replace('decimalLimit', 'precision')),
|
|
8
|
-
decimal: (property) => {
|
|
9
|
-
const [, propertyValue] = property.getText().split(/\s?:\s?/);
|
|
10
|
-
property.replaceWithText((propertyValue === null || propertyValue === void 0 ? void 0 : propertyValue.match(/^['"`]never['"`]$/))
|
|
11
|
-
? 'precision: 0'
|
|
12
|
-
: property.getText().replace('decimal', 'decimalMode'));
|
|
13
|
-
},
|
|
14
|
-
zeroPadding: (property) => {
|
|
15
|
-
const [, propertyValue] = property.getText().split(/\s?:\s?/);
|
|
16
|
-
if (propertyValue === 'true') {
|
|
17
|
-
property.replaceWithText('decimalMode: "always"');
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
property.replaceWithText(`// TODO: (Taiga UI migration) "zeroPadding" is deleted. Use "decimalMode" instead https://taiga-ui.dev/pipes/format-number/API \n${property.getText()}`);
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
function migrateNumberFormatSettings(options) {
|
|
25
|
-
!options['skip-logs'] &&
|
|
26
|
-
(0, ng_morph_1.infoLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.REPLACE_SYMBOL} migrating TuiNumberFormatSettings...`);
|
|
27
|
-
const asFunctionArgument = [
|
|
28
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('tuiFormatNumber', '@taiga-ui/core'),
|
|
29
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('tuiNumberFormatProvider', '@taiga-ui/core'),
|
|
30
|
-
].map((n) => {
|
|
31
|
-
var _a;
|
|
32
|
-
return (_a = n
|
|
33
|
-
.getFirstAncestorByKind(ng_morph_1.SyntaxKind.CallExpression)) === null || _a === void 0 ? void 0 : _a.getFirstDescendantByKind(ng_morph_1.SyntaxKind.ObjectLiteralExpression);
|
|
34
|
-
});
|
|
35
|
-
const asStandaloneSettingsObject = (0, get_named_import_references_1.getNamedImportReferences)('TuiNumberFormatSettings', '@taiga-ui/core').map((n) => {
|
|
36
|
-
const type = n.getFirstAncestorByKind(ng_morph_1.SyntaxKind.TypeReference);
|
|
37
|
-
const siblings = [
|
|
38
|
-
...((type === null || type === void 0 ? void 0 : type.getPreviousSiblings()) || []),
|
|
39
|
-
...((type === null || type === void 0 ? void 0 : type.getNextSiblings()) || []),
|
|
40
|
-
];
|
|
41
|
-
return siblings.find(ng_morph_1.Node.isObjectLiteralExpression);
|
|
42
|
-
});
|
|
43
|
-
[...asFunctionArgument, ...asStandaloneSettingsObject]
|
|
44
|
-
.filter(ng_morph_1.Node.isObjectLiteralExpression)
|
|
45
|
-
.forEach((options) => {
|
|
46
|
-
Object.entries(OPTIONS_MIGRATIONS).forEach(([propertyName, migration]) => {
|
|
47
|
-
const property = options.getProperty(propertyName);
|
|
48
|
-
if (!property) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
const isShorthandPropertyAssignment = ng_morph_1.Node.isShorthandPropertyAssignment(property) &&
|
|
52
|
-
!property.hasObjectAssignmentInitializer();
|
|
53
|
-
const previousPropertyText = property.getText();
|
|
54
|
-
migration(property);
|
|
55
|
-
if (isShorthandPropertyAssignment && !property.wasForgotten()) {
|
|
56
|
-
property.replaceWithText(`${property.getText()}: ${previousPropertyText}`);
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
!options['skip-logs'] &&
|
|
61
|
-
(0, ng_morph_1.successLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.SUCCESS_SYMBOL} migration of TuiNumberFormatSettings completes \n`);
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=migrate-number-format-settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-number-format-settings.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/migrate-number-format-settings.ts"],"names":[],"mappings":";;AA0C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BAA8B,EAAE,CAAC;YAC/C,MAAM,oBAAoB,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;YAEhD,SAAS,CAAC,QAAQ,CAAC,CAAC;YAEpB,IAAI,6BAA6B,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC;gBAC5D,QAAQ,CAAC,eAAe,CACpB,GAAG,QAAQ,CAAC,OAAO,EAAE,KAAK,oBAAoB,EAAE,CACnD,CAAC;YACN,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEP,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,qBAAU,EACN,GAAG,2BAAgB,GAAG,yBAAc,oDAAoD,CAC3F,CAAC;AACV,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateOptionProviders = migrateOptionProviders;
|
|
4
|
-
const ng_morph_1 = require("ng-morph");
|
|
5
|
-
const get_named_import_references_1 = require("../../../utils/get-named-import-references");
|
|
6
|
-
const insert_todo_1 = require("../../../utils/insert-todo");
|
|
7
|
-
function migrateOptionProviders(options) {
|
|
8
|
-
!options['skip-logs'] &&
|
|
9
|
-
(0, ng_morph_1.infoLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.REPLACE_SYMBOL} migrating providers...`);
|
|
10
|
-
migrateInputNumberOptions(options);
|
|
11
|
-
!options['skip-logs'] && (0, ng_morph_1.titleLog)(`${ng_morph_1.FINISH_SYMBOL} successfully migrated \n`);
|
|
12
|
-
}
|
|
13
|
-
function migrateInputNumberOptions(options) {
|
|
14
|
-
!options['skip-logs'] &&
|
|
15
|
-
(0, ng_morph_1.infoLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.REPLACE_SYMBOL} tuiInputNumberOptionsProvider`);
|
|
16
|
-
const references = [
|
|
17
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('tuiInputNumberOptionsProvider', '@taiga-ui/kit'),
|
|
18
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('tuiInputNumberOptionsProvider', '@taiga-ui/legacy'),
|
|
19
|
-
];
|
|
20
|
-
references.forEach((ref) => {
|
|
21
|
-
if (ref.wasForgotten()) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const parent = ref.getParent();
|
|
25
|
-
if (!ng_morph_1.Node.isCallExpression(parent)) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
const [value] = parent.getArguments();
|
|
29
|
-
if (ng_morph_1.Node.isObjectLiteralExpression(value)) {
|
|
30
|
-
const precision = value.getProperty('precision');
|
|
31
|
-
const decimal = value.getProperty('decimal');
|
|
32
|
-
[precision, decimal]
|
|
33
|
-
.filter((property) => !!property)
|
|
34
|
-
.forEach((property) => property.remove());
|
|
35
|
-
if (precision || decimal) {
|
|
36
|
-
(0, insert_todo_1.insertTodo)(parent, '"precision" and "decimal" options have been moved to FormatNumberOptions. See https://taiga-ui.dev/components/input-number#options');
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=migrate-option-providers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-option-providers.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/migrate-option-providers.ts"],"names":[],"mappings":";;AAcA,wDAOC;AArBD,uCAQkB;AAGlB,4FAAoF;AACpF,4DAAsD;AAEtD,SAAgB,sBAAsB,CAAC,OAAkB;IACrD,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,kBAAO,EAAC,GAAG,2BAAgB,GAAG,yBAAc,yBAAyB,CAAC,CAAC;IAE3E,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAEnC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,IAAA,mBAAQ,EAAC,GAAG,wBAAa,2BAA2B,CA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@
|
|
|
1
|
-
import { type DevkitFileSystem } from 'ng-morph';
|
|
2
|
-
import { type TuiSchema } from '../../../ng-add/schema';
|
|
3
|
-
export declare function migrateProprietary(fileSystem: DevkitFileSystem, options: TuiSchema): void;
|
|
4
|
-
export declare function removeProprietaryPackages(fileSystem: DevkitFileSystem): void;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateProprietary = migrateProprietary;
|
|
4
|
-
exports.removeProprietaryPackages = removeProprietaryPackages;
|
|
5
|
-
/// <reference lib="es2021" />
|
|
6
|
-
const ng_morph_1 = require("ng-morph");
|
|
7
|
-
const version_1 = require("../../../../constants/version");
|
|
8
|
-
function migrateProprietary(fileSystem, options) {
|
|
9
|
-
try {
|
|
10
|
-
const proprietary = (0, ng_morph_1.getPackageJsonDependency)(fileSystem.tree, '@taiga-ui/proprietary-core') ||
|
|
11
|
-
(0, ng_morph_1.getPackageJsonDependency)(fileSystem.tree, '@taiga-ui/proprietary');
|
|
12
|
-
if (!proprietary) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
!options['skip-logs'] &&
|
|
16
|
-
(0, ng_morph_1.infoLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.REPLACE_SYMBOL} migrating proprietary...`);
|
|
17
|
-
replaceScopePackages();
|
|
18
|
-
replaceProprietaryIconPath();
|
|
19
|
-
removeProprietaryPackages(fileSystem);
|
|
20
|
-
(0, ng_morph_1.addPackageJsonDependency)(fileSystem.tree, {
|
|
21
|
-
name: '@taiga-ui/proprietary',
|
|
22
|
-
version: version_1.TUI_VERSION,
|
|
23
|
-
type: proprietary.type,
|
|
24
|
-
});
|
|
25
|
-
fileSystem.commitEdits();
|
|
26
|
-
(0, ng_morph_1.saveActiveProject)();
|
|
27
|
-
}
|
|
28
|
-
catch (_a) { }
|
|
29
|
-
}
|
|
30
|
-
function replaceScopePackages() {
|
|
31
|
-
var _a;
|
|
32
|
-
(_a = (0, ng_morph_1.getActiveProject)()) === null || _a === void 0 ? void 0 : _a.getSourceFiles('**/**.{ts,less,scss}').forEach((sourceFile) => {
|
|
33
|
-
let fullText = sourceFile.getFullText();
|
|
34
|
-
fullText = fullText
|
|
35
|
-
.replaceAll('@taiga-ui/proprietary-core', '@taiga-ui/proprietary')
|
|
36
|
-
.replaceAll('@taiga-ui/proprietary-banking', '@taiga-ui/proprietary')
|
|
37
|
-
.replaceAll('@taiga-ui/proprietary-navigation', '@taiga-ui/proprietary')
|
|
38
|
-
.replaceAll('@taiga-ui/proprietary-icons', '@taiga-ui/proprietary')
|
|
39
|
-
.replaceAll('@taiga-ui/proprietary-tds-icons', '@taiga-ui/proprietary')
|
|
40
|
-
.replaceAll('@taiga-ui/proprietary-tds-palette', '@taiga-ui/proprietary');
|
|
41
|
-
sourceFile.replaceWithText(fullText);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
function replaceProprietaryIconPath() {
|
|
45
|
-
var _a;
|
|
46
|
-
(_a = (0, ng_morph_1.getActiveProject)()) === null || _a === void 0 ? void 0 : _a.getSourceFiles('**/{angular,project}.json').forEach((sourceFile) => {
|
|
47
|
-
let fullText = sourceFile.getFullText();
|
|
48
|
-
fullText = fullText
|
|
49
|
-
.replaceAll('node_modules/@taiga-ui/proprietary-icons/src', '@taiga-ui/proprietary/design-tokens/icons/src')
|
|
50
|
-
.replaceAll('@taiga-ui/proprietary-icons/src', '@taiga-ui/proprietary/design-tokens/icons/src')
|
|
51
|
-
.replaceAll('node_modules/@taiga-ui/proprietary-tds-icons/src', '@taiga-ui/proprietary/design-tokens/icons/src')
|
|
52
|
-
.replaceAll('@taiga-ui/proprietary-tds-icons/src', '@taiga-ui/proprietary/design-tokens/icons/src');
|
|
53
|
-
sourceFile.replaceWithText(fullText);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
function removeProprietaryPackages(fileSystem) {
|
|
57
|
-
[
|
|
58
|
-
'@taiga-ui/proprietary-core',
|
|
59
|
-
'@taiga-ui/proprietary-navigation',
|
|
60
|
-
'@taiga-ui/proprietary-banking',
|
|
61
|
-
'@taiga-ui/proprietary-icons',
|
|
62
|
-
'@taiga-ui/proprietary-tds-icons',
|
|
63
|
-
'@taiga-ui/proprietary-tds-palette',
|
|
64
|
-
].forEach((name) => (0, ng_morph_1.removePackageJsonDependency)(fileSystem.tree, name));
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=migrate-proprietary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-proprietary.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/migrate-proprietary.ts"],"names":[],"mappings":";;AAgBA,gDA4BC;AAgDD,8DASC;AArGD,8BAA8B;AAC9B,uCAUkB;AAElB,2DAA0D;AAG1D,SAAgB,kBAAkB,CAC9B,UAA4B,EAC5B,OAAkB;IAElB,IAAI,CAAC;QACD,MAAM,WAAW,GACb,IAAA,mCAAwB,EAAC,UAAU,CAAC,IAAI,EAAE,4BAA4B,CAAC;YACvE,IAAA,mCAAwB,EAAC,UAAU,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC;QAEvE,IAAI,CAAC,WAAW,EAAE,CAAC;YACf,OAAO;QACX,CAAC;QAED,CAAC,OAAO,CAAC,WAAW,CAAC;YACjB,IAAA,kBAAO,EAAC,GAAG,2BAAgB,GAAG,yBAAc,2BAA2B,CAAC,CAAC;QAE7E,oBAAoB,EAAE,CAAC;QACvB,0BAA0B,EAAE,CAAC;QAC7B,yBAAyB,CAAC,UAAU,CAAC,CAAC;QACtC,IAAA,mCAAwB,EAAC,UAAU,CAAC,IAAI,EAAE;YACtC,IAAI,EAAE,uBAAuB;YAC7B,OAAO,EAAE,qBAAW;YACpB,IAAI,EAAE,WAAW,CAAC,IAAI;SACzB,CAAC,CAAC;QAEH,UAAU,CAAC,WAAW,EAAE,CAAC;QACzB,IAAA,4BAA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iC;QACjC,mCAAmC;KACtC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,sCAA2B,EAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateImportProvidersFrom = migrateImportProvidersFrom;
|
|
4
|
-
const ng_morph_1 = require("ng-morph");
|
|
5
|
-
const get_named_import_references_1 = require("../../../utils/get-named-import-references");
|
|
6
|
-
function migrateImportProvidersFrom(options) {
|
|
7
|
-
!options['skip-logs'] &&
|
|
8
|
-
(0, ng_morph_1.infoLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.REPLACE_SYMBOL} updating importProvidersFrom`);
|
|
9
|
-
const refs = [
|
|
10
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('TuiDialogModule', '@taiga-ui/core'),
|
|
11
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('TuiAlertModule', '@taiga-ui/core'),
|
|
12
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('TuiPushModule', '@taiga-ui/kit'),
|
|
13
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('TuiPdfViewerModule', '@taiga-ui/kit'),
|
|
14
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('TuiPreviewModule', '@taiga-ui/addon-preview'),
|
|
15
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('TuiEditor', '@taiga-ui/editor'),
|
|
16
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('TuiEditorSocket', '@taiga-ui/editor'),
|
|
17
|
-
];
|
|
18
|
-
for (const ref of refs) {
|
|
19
|
-
if (ref.wasForgotten()) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
const callExpression = ref.getParentWhile(ng_morph_1.Node.isCallExpression);
|
|
23
|
-
if ((callExpression === null || callExpression === void 0 ? void 0 : callExpression.getExpression().getText()) === 'importProvidersFrom') {
|
|
24
|
-
const node = callExpression
|
|
25
|
-
.getArguments()
|
|
26
|
-
.find((arg) => arg.getText() === ref.getText());
|
|
27
|
-
if (node) {
|
|
28
|
-
callExpression.removeArgument(node);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=migrate-providers-from.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-providers-from.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/migrate-providers-from.ts"],"names":[],"mappings":";;AAKA,gEA+BC;AApCD,uCAAyE;AAGzE,4FAAoF;AAEpF,SAAgB,0BAA0B,CAAC,OAAkB;IACzD,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,kBAAO,EAAC,GAAG,2BAAgB,GAAG,yBAAc,+BAA+B,CAAC,CAAC;IAEjF,MAAM,IAAI,GAAG;QACT,GAAG,IAAA,sDAAwB,EAAC,iBAAiB,EAAE,gBAAgB,CAAC;QAChE,GAAG,IAAA,sDAAwB,EAAC,gBAAgB,EAAE,gBAAgB,CAAC;QAC/D,GAAG,IAAA,sDAAwB,EAAC,eAAe,EAAE,eAAe,CAAC;QAC7D,GAAG,IAAA,sDAAwB,EAAC,oBAAoB,EAAE,eAAe,CAAC;QAClE,GAAG,IAAA,sDAAwB,EAAC,kBAAkB,EAAE,yBAAyB,CAAC;QAC1E,GAAG,IAAA,sDAAwB,EAAC,WAAW,EAAE,kBAAkB,CAAC;QAC5D,GAAG,IAAA,sDAAwB,EAAC,iBAAiB,EAAE,kBAAkB,CAAC;KACrE,CAAC;IAEF,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACrB,IAAI,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QAED,MAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC,eAAI,CAAC,gBAAgB,CAAC,CAAC;QAEjE,IAAI,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,aAAa,GAAG,OAAO,EAAE,MAAK,qBAAqB,EAAE,CAAC;YACtE,MAAM,IAAI,GAAG,cAAc;iBACtB,YAAY,EAAE;iBACd,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YAEpD,IAAI,IAAI,EAAE,CAAC;gBACP,cAAc,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YACxC,CAAC;QACL,CAAC;IACL,CAAC;AACL,CAAC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateRoot = migrateRoot;
|
|
4
|
-
const ng_morph_1 = require("ng-morph");
|
|
5
|
-
const add_unique_import_1 = require("../../../utils/add-unique-import");
|
|
6
|
-
const get_named_import_references_1 = require("../../../utils/get-named-import-references");
|
|
7
|
-
const import_manipulations_1 = require("../../../utils/import-manipulations");
|
|
8
|
-
function migrateRoot(fileSystem, options) {
|
|
9
|
-
!options['skip-logs'] &&
|
|
10
|
-
(0, ng_morph_1.infoLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.REPLACE_SYMBOL} updating TuiRoot`);
|
|
11
|
-
const refs = [
|
|
12
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('TuiRootModule', '@taiga-ui/core'),
|
|
13
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('TuiProprietaryRootModule', '@taiga-ui/proprietary-core'),
|
|
14
|
-
...(0, get_named_import_references_1.getNamedImportReferences)('TuiProprietaryRoot2023Module', '@taiga-ui/proprietary-core'),
|
|
15
|
-
];
|
|
16
|
-
for (const ref of refs) {
|
|
17
|
-
if (ref.wasForgotten()) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
const parent = ref.getParent();
|
|
21
|
-
if (ng_morph_1.Node.isImportSpecifier(parent)) {
|
|
22
|
-
(0, import_manipulations_1.removeImport)(parent);
|
|
23
|
-
(0, add_unique_import_1.addUniqueImport)(parent.getSourceFile().getFilePath(), 'TuiRoot', '@taiga-ui/core');
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
replaceRootIdentifier(ref, fileSystem);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function replaceRootIdentifier(ref, fileSystem) {
|
|
31
|
-
const callExpression = ref.getParentWhile(ng_morph_1.Node.isCallExpression);
|
|
32
|
-
if ((callExpression === null || callExpression === void 0 ? void 0 : callExpression.getExpression().getText()) === 'importProvidersFrom') {
|
|
33
|
-
const node = callExpression
|
|
34
|
-
.getArguments()
|
|
35
|
-
.find((arg) => arg.getText() === ref.getText());
|
|
36
|
-
if (node) {
|
|
37
|
-
callExpression.removeArgument(node);
|
|
38
|
-
addProviders({ callExpression, fileSystem });
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
ref.replaceWithText('TuiRoot');
|
|
43
|
-
addProviders({ fileSystem, modulePath: ref.getSourceFile().getFilePath() });
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
function addProviders({ callExpression, fileSystem, modulePath, }) {
|
|
47
|
-
var _a;
|
|
48
|
-
const providersArray = callExpression === null || callExpression === void 0 ? void 0 : callExpression.getParentWhile(ng_morph_1.Node.isArrayLiteralExpression);
|
|
49
|
-
const module = modulePath && ((_a = (0, ng_morph_1.getNgModules)(modulePath)) === null || _a === void 0 ? void 0 : _a[0]);
|
|
50
|
-
if (!providersArray && !modulePath) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
const path = providersArray
|
|
54
|
-
? providersArray.getSourceFile().getFilePath()
|
|
55
|
-
: modulePath || '';
|
|
56
|
-
if (providersArray) {
|
|
57
|
-
providersArray.addElement('provideEventPlugins()');
|
|
58
|
-
}
|
|
59
|
-
else if (module) {
|
|
60
|
-
(0, ng_morph_1.addProviderToNgModule)(module, 'provideEventPlugins()', { unique: true });
|
|
61
|
-
}
|
|
62
|
-
if (providersArray || module) {
|
|
63
|
-
(0, add_unique_import_1.addUniqueImport)(path, 'provideEventPlugins', '@taiga-ui/event-plugins');
|
|
64
|
-
}
|
|
65
|
-
(0, ng_morph_1.getActiveProject)();
|
|
66
|
-
const proprietary = (0, ng_morph_1.getPackageJsonDependency)(fileSystem.tree, '@taiga-ui/proprietary-core') ||
|
|
67
|
-
(0, ng_morph_1.getPackageJsonDependency)(fileSystem.tree, '@taiga-ui/proprietary');
|
|
68
|
-
if (proprietary) {
|
|
69
|
-
if (providersArray) {
|
|
70
|
-
providersArray.addElement('TBANK_PROVIDERS');
|
|
71
|
-
}
|
|
72
|
-
else if (module) {
|
|
73
|
-
(0, ng_morph_1.addProviderToNgModule)(module, 'TBANK_PROVIDERS', { unique: true });
|
|
74
|
-
}
|
|
75
|
-
if (providersArray || module) {
|
|
76
|
-
(0, add_unique_import_1.addUniqueImport)(path, 'TBANK_PROVIDERS', '@taiga-ui/proprietary');
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=migrate-root.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-root.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/migrate-root.ts"],"names":[],"mappings":";;AAiBA,kCAkCC;AAnDD,uCAUkB;AAGlB,wEAAiE;AACjE,4FAAoF;AACpF,8EAAiE;AAEjE,SAAgB,WAAW,CAAC,UAA4B,EAAE,OAAkB;IACxE,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,kBAAO,EAAC,GAAG,2BAAgB,GAAG,yBAAc,mBAAmB,CAAC,CAAC;IAErE,MAAM,IAAI,GAAG;QACT,GAAG,IAAA,sDAAwB,EAAC,eAAe,E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AAI,cAAc,EAAE,CAAC;YACjB,cAAc,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;QACjD,CAAC;aAAM,IAAI,MAAM,EAAE,CAAC;YAChB,IAAA,gCAAqB,EAAC,MAAM,EAAE,iBAAiB,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC,CAAC;QACrE,CAAC;QAED,IAAI,cAAc,IAAI,MAAM,EAAE,CAAC;YAC3B,IAAA,mCAAe,EAAC,IAAI,EAAE,iBAAiB,EAAE,uBAAuB,CAAC,CAAC;QACtE,CAAC;IACL,CAAC;AACL,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type DevkitFileSystem, type UpdateRecorder } from 'ng-morph';
|
|
2
|
-
import { type TuiSchema } from '../../../ng-add/schema';
|
|
3
|
-
import { type TemplateResource } from '../../interfaces/template-resource';
|
|
4
|
-
export declare function getAction<T>({ action, requiredData, }: {
|
|
5
|
-
action({ resource, fileSystem, recorder, data, }: {
|
|
6
|
-
fileSystem: DevkitFileSystem;
|
|
7
|
-
recorder: UpdateRecorder;
|
|
8
|
-
data: T;
|
|
9
|
-
resource: TemplateResource;
|
|
10
|
-
}): void;
|
|
11
|
-
requiredData: T;
|
|
12
|
-
}): ({ resource, fileSystem, recorder, }: {
|
|
13
|
-
fileSystem: DevkitFileSystem;
|
|
14
|
-
recorder: UpdateRecorder;
|
|
15
|
-
resource: TemplateResource;
|
|
16
|
-
}) => void;
|
|
17
|
-
export declare function migrateTemplates(fileSystem: DevkitFileSystem, options: TuiSchema): void;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAction = getAction;
|
|
4
|
-
exports.migrateTemplates = migrateTemplates;
|
|
5
|
-
const ng_morph_1 = require("ng-morph");
|
|
6
|
-
const constants_1 = require("../../../constants");
|
|
7
|
-
const add_import_to_closest_module_1 = require("../../../utils/add-import-to-closest-module");
|
|
8
|
-
const progress_1 = require("../../../utils/progress");
|
|
9
|
-
const get_component_templates_1 = require("../../../utils/templates/get-component-templates");
|
|
10
|
-
const template_resource_1 = require("../../../utils/templates/template-resource");
|
|
11
|
-
const templates_1 = require("../../utils/templates");
|
|
12
|
-
const replace_attrs_by_directives_1 = require("../../utils/templates/replace-attrs-by-directives");
|
|
13
|
-
const constants_2 = require("./constants");
|
|
14
|
-
const templates_2 = require("./templates");
|
|
15
|
-
const dropdown_ref_comment_1 = require("./templates/dropdown-ref-comment");
|
|
16
|
-
const migrate_blocked_1 = require("./templates/migrate-blocked");
|
|
17
|
-
const migrate_number_precision_1 = require("./templates/migrate-number-precision");
|
|
18
|
-
function getAction({ action, requiredData, }) {
|
|
19
|
-
return ({ resource, fileSystem, recorder, }) => action({ resource, fileSystem, recorder, data: requiredData });
|
|
20
|
-
}
|
|
21
|
-
function migrateTemplates(fileSystem, options) {
|
|
22
|
-
!options['skip-logs'] &&
|
|
23
|
-
(0, ng_morph_1.infoLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.REPLACE_SYMBOL} migrating templates...`);
|
|
24
|
-
const componentWithTemplatesPaths = (0, get_component_templates_1.getComponentTemplates)(constants_1.ALL_TS_FILES);
|
|
25
|
-
const actions = [
|
|
26
|
-
getAction({ action: templates_1.addHTMLCommentTags, requiredData: constants_2.HTML_COMMENTS }),
|
|
27
|
-
getAction({
|
|
28
|
-
action: replace_attrs_by_directives_1.replaceAttrsByDirective,
|
|
29
|
-
requiredData: constants_2.ATTRS_TO_DIRECTIVE_REPLACE,
|
|
30
|
-
}),
|
|
31
|
-
getAction({ action: templates_1.replaceTags, requiredData: constants_2.TAGS_TO_REPLACE }),
|
|
32
|
-
getAction({ action: templates_1.replaceAttrs, requiredData: constants_2.ATTRS_TO_REPLACE }),
|
|
33
|
-
getAction({ action: templates_1.replaceAttrValues, requiredData: constants_2.ATTR_WITH_VALUES_TO_REPLACE }),
|
|
34
|
-
getAction({ action: templates_1.removeInputs, requiredData: constants_2.INPUTS_TO_REMOVE }),
|
|
35
|
-
dropdown_ref_comment_1.dropdownRefComment,
|
|
36
|
-
templates_2.migrateAxes,
|
|
37
|
-
templates_2.migrateBadge,
|
|
38
|
-
templates_2.migrateCheckbox,
|
|
39
|
-
templates_2.migrateFocusable,
|
|
40
|
-
templates_2.migrateRadio,
|
|
41
|
-
templates_2.migrateToggle,
|
|
42
|
-
templates_2.migrateAvatar,
|
|
43
|
-
templates_2.migrateExpandable,
|
|
44
|
-
templates_2.migrateBadgedContent,
|
|
45
|
-
templates_2.migratePreventDefault,
|
|
46
|
-
templates_2.migrateMobileTabs,
|
|
47
|
-
templates_2.migrateMoney,
|
|
48
|
-
templates_2.migrateLabeled,
|
|
49
|
-
migrate_blocked_1.migrateBlocked,
|
|
50
|
-
templates_2.migrateProgressSegmented,
|
|
51
|
-
templates_2.migrateThumbnailCard,
|
|
52
|
-
templates_2.migrateOverscroll,
|
|
53
|
-
templates_2.migrateButtonAppearance,
|
|
54
|
-
templates_2.migrateLabel,
|
|
55
|
-
migrate_number_precision_1.migrateNumberPrecision,
|
|
56
|
-
templates_2.migrateNotification,
|
|
57
|
-
templates_2.migrateFilterPipe,
|
|
58
|
-
templates_2.migrateActiveZoneParent,
|
|
59
|
-
];
|
|
60
|
-
const progressLog = (0, progress_1.setupProgressLogger)({ total: componentWithTemplatesPaths.length });
|
|
61
|
-
componentWithTemplatesPaths.forEach((resource) => {
|
|
62
|
-
const path = fileSystem.resolve((0, template_resource_1.getPathFromTemplateResource)(resource));
|
|
63
|
-
const recorder = fileSystem.edit(path);
|
|
64
|
-
actions.forEach((action, actionIndex) => {
|
|
65
|
-
const isLastAction = actionIndex === actions.length - 1;
|
|
66
|
-
!options['skip-logs'] && progressLog(action.name, isLastAction);
|
|
67
|
-
action({ resource, fileSystem, recorder });
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
fileSystem.commitEdits();
|
|
71
|
-
(0, add_import_to_closest_module_1.saveAddedImports)(options);
|
|
72
|
-
!options['skip-logs'] &&
|
|
73
|
-
(0, ng_morph_1.successLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.SUCCESS_SYMBOL} templates migrated \n`);
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=migrate-templates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-templates.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/migrate-templates.ts"],"names":[],"mappings":";;AA4DA,8BA0BC;AAED,4CA8DC;AAtJD,uCAQkB;AAElB,kDAAgD;AAEhD,8FAA6E;AAC7E,sDAA4D;AAC5D,8FAAuF;AACvF,kFAAuF;AAEvF,qDAM+B;AAC/B,mGAA0F;AAC1F,2CAOqB;AACrB,2CAsBqB;AACrB,2EAAoE;AACpE,iEAA2D;AAC3D,mFAA4E;AAE5E,SAAgB,SAAS,CAAI,EACzB,MAAM,EACN,YAAY,GAcf;IACG,OAAO,CAAC,EACJ,QAAQ,EACR,UAAU,EACV,QAAQ,GAKX,EAAE,EAAE,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAC,CAAC,CAAC;AACvE,CAAC;AAED,SAAgB,gBAAgB,CAAC,UAA4B,EAAE,OAAkB;IAC7E,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,kBAAO,EAAC,GAAG,2BAAgB,GAAG,yBAAc,yBAAyB,CAAC,CAAC;IAE3E,MAAM,2BAA2B,GAAG,IAAA,+CAAqB,EAAC,wBAAY,CAAC,CAAC;IAExE,MAAM,OAAO,GAAG;QACZ,SAAS,CAAC,EAAC,MAAM,EAAE,8BAAkB,EAAE,YAAY,EAAE,yBAAa,EAAC,CAAC;QACpE,SAAS,CAAC;YACN,MAAM,EAAE,qDAAuB;YAC/B,YAAY,EAAE,sCAA0B;SAC3C,CAAC;QACF,SAAS,CAAC,EAAC,MAAM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,UAAU,EAAE,QAAQ,EAAC,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,UAAU,CAAC,WAAW,EAAE,CAAC;IAEzB,IAAA,+CAAgB,EAAC,OAAO,CAAC,CAAC;IAE1B,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,qBAAU,EAAC,GAAG,2BAAgB,GAAG,yBAAc,wBAAwB,CAAC,CAAC;AACjF,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.restoreTuiMapper = restoreTuiMapper;
|
|
4
|
-
const ng_morph_1 = require("ng-morph");
|
|
5
|
-
const get_named_import_references_1 = require("../../../utils/get-named-import-references");
|
|
6
|
-
const replace_identifier_1 = require("../../steps/replace-identifier");
|
|
7
|
-
function updateTuiMapper(options) {
|
|
8
|
-
!options['skip-logs'] &&
|
|
9
|
-
(0, ng_morph_1.infoLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.REPLACE_SYMBOL} updating TuiMapper typing to the typed version`);
|
|
10
|
-
const refs = (0, get_named_import_references_1.getNamedImportReferences)('TuiMapper', '@taiga-ui/cdk');
|
|
11
|
-
for (const ref of refs) {
|
|
12
|
-
if (ref.wasForgotten()) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
const parent = ref.getParent();
|
|
16
|
-
if (ng_morph_1.Node.isTypeReference(parent)) {
|
|
17
|
-
const typeArguments = parent.getTypeArguments();
|
|
18
|
-
if ((typeArguments === null || typeArguments === void 0 ? void 0 : typeArguments.length) !== 2) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const [inputType] = typeArguments;
|
|
22
|
-
inputType === null || inputType === void 0 ? void 0 : inputType.replaceWithText(`[${inputType.getText()}, ...any]`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function renameTuiTypedMapper(options) {
|
|
27
|
-
!options['skip-logs'] &&
|
|
28
|
-
(0, ng_morph_1.infoLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.REPLACE_SYMBOL} renaming TuiTypedMapper to TuiMapper`);
|
|
29
|
-
(0, replace_identifier_1.replaceIdentifier)({
|
|
30
|
-
from: { name: 'TuiTypedMapper', moduleSpecifier: '@taiga-ui/cdk' },
|
|
31
|
-
to: { name: 'TuiMapper', moduleSpecifier: '@taiga-ui/cdk' },
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function restoreTuiMapper(options) {
|
|
35
|
-
updateTuiMapper(options);
|
|
36
|
-
renameTuiTypedMapper(options);
|
|
37
|
-
!options['skip-logs'] && (0, ng_morph_1.titleLog)(`${ng_morph_1.FINISH_SYMBOL} successfully migrated \n`);
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=restore-tui-mapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restore-tui-mapper.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/restore-tui-mapper.ts"],"names":[],"mappings":";;AAsDA,4CAKC;AA3DD,uCAOkB;AAGlB,4FAAoF;AACpF,uEAAiE;AAEjE,SAAS,eAAe,CAAC,OAAkB;IACvC,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,kBAAO,EACH,GAAG,2BAAgB,GAAG,yBAAc,iDAAiD,CACxF,CAAC;IAEN,MAAM,IAAI,GAAG,IAAA,sDAAwB,EAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IAEpE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACrB,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,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/B,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,EAAE,CAAC;YAEhD,IAAI,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,MAAK,CAAC,EAAE,CAAC;gBAC9B,OAAO;YACX,CAAC;YAED,MAAM,CAAC,SAAS,CAAC,GAAG,aAAa,CAAC;YAElC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,eAAe,CAAC,IAAI,SAAS,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QACnE,CAAC;IACL,CAAC;AACL,CAAC;AAED,SAAS,oBAAoB,CAAC,OAAkB;IAC5C,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,kBAAO,EACH,GAAG,2BAAgB,GAAG,yBAAc,uCAAuC,CAC9E,CAAC;IAEN,IAAA,sCAAiB,EAAC;QACd,IAAI,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAC;QAChE,EAAE,EAAE,EAAC,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAC;KAC5D,CAAC,CAAC;AACP,CAAC;AAED,SAAgB,gBAAgB,CAAC,OAAkB;IAC/C,eAAe,CAAC,OAAO,CAAC,CAAC;IACzB,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAE9B,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,IAAA,mBAAQ,EAAC,GAAG,wBAAa,2BAA2B,CAAC,CAAC;AACnF,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.restoreTuiMatcher = restoreTuiMatcher;
|
|
4
|
-
const ng_morph_1 = require("ng-morph");
|
|
5
|
-
const get_named_import_references_1 = require("../../../utils/get-named-import-references");
|
|
6
|
-
const replace_identifier_1 = require("../../steps/replace-identifier");
|
|
7
|
-
function updateTuiMatcher(options) {
|
|
8
|
-
!options['skip-logs'] &&
|
|
9
|
-
(0, ng_morph_1.infoLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.REPLACE_SYMBOL} updating TuiMatcher typing to the typed version`);
|
|
10
|
-
const refs = (0, get_named_import_references_1.getNamedImportReferences)('TuiMatcher', '@taiga-ui/cdk');
|
|
11
|
-
for (const ref of refs) {
|
|
12
|
-
if (ref.wasForgotten()) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
const parent = ref.getParent();
|
|
16
|
-
if (ng_morph_1.Node.isTypeReference(parent)) {
|
|
17
|
-
const typeArguments = parent.getTypeArguments();
|
|
18
|
-
if ((typeArguments === null || typeArguments === void 0 ? void 0 : typeArguments.length) !== 1) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const [inputType] = typeArguments;
|
|
22
|
-
inputType === null || inputType === void 0 ? void 0 : inputType.replaceWithText(`[${inputType.getText()}, ...any]`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function renameTuiTypedMatcher(options) {
|
|
27
|
-
!options['skip-logs'] &&
|
|
28
|
-
(0, ng_morph_1.infoLog)(`${ng_morph_1.SMALL_TAB_SYMBOL}${ng_morph_1.REPLACE_SYMBOL} renaming TuiTypedMatcher to TuiMatcher`);
|
|
29
|
-
(0, replace_identifier_1.replaceIdentifier)({
|
|
30
|
-
from: { name: 'TuiTypedMatcher', moduleSpecifier: '@taiga-ui/cdk' },
|
|
31
|
-
to: { name: 'TuiMatcher', moduleSpecifier: '@taiga-ui/cdk' },
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function restoreTuiMatcher(options) {
|
|
35
|
-
updateTuiMatcher(options);
|
|
36
|
-
renameTuiTypedMatcher(options);
|
|
37
|
-
!options['skip-logs'] && (0, ng_morph_1.titleLog)(`${ng_morph_1.FINISH_SYMBOL} successfully migrated \n`);
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=restore-tui-matcher.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restore-tui-matcher.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/restore-tui-matcher.ts"],"names":[],"mappings":";;AAsDA,8CAKC;AA3DD,uCAOkB;AAGlB,4FAAoF;AACpF,uEAAiE;AAEjE,SAAS,gBAAgB,CAAC,OAAkB;IACxC,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,kBAAO,EACH,GAAG,2BAAgB,GAAG,yBAAc,kDAAkD,CACzF,CAAC;IAEN,MAAM,IAAI,GAAG,IAAA,sDAAwB,EAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IAErE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACrB,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,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/B,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,EAAE,CAAC;YAEhD,IAAI,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,MAAK,CAAC,EAAE,CAAC;gBAC9B,OAAO;YACX,CAAC;YAED,MAAM,CAAC,SAAS,CAAC,GAAG,aAAa,CAAC;YAElC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,eAAe,CAAC,IAAI,SAAS,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QACnE,CAAC;IACL,CAAC;AACL,CAAC;AAED,SAAS,qBAAqB,CAAC,OAAkB;IAC7C,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,kBAAO,EACH,GAAG,2BAAgB,GAAG,yBAAc,yCAAyC,CAChF,CAAC;IAEN,IAAA,sCAAiB,EAAC;QACd,IAAI,EAAE,EAAC,IAAI,EAAE,iBAAiB,EAAE,eAAe,EAAE,eAAe,EAA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