@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,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TUI_RATING_WARNING = void 0;
|
|
4
|
-
exports.migrateStyles = migrateStyles;
|
|
5
|
-
/// <reference lib="es2021" />
|
|
6
|
-
const ng_morph_1 = require("ng-morph");
|
|
7
|
-
const constants_1 = require("../../../../constants");
|
|
8
|
-
const migrate_legacy_mixins_1 = require("./migrate-legacy-mixins");
|
|
9
|
-
const migrate_less_scss_constants_1 = require("./migrate-less-scss-constants");
|
|
10
|
-
const migrate_mixins_1 = require("./migrate-mixins");
|
|
11
|
-
const migrate_shadow_mixins_1 = require("./migrate-shadow-mixins");
|
|
12
|
-
const migrate_space_mixins_1 = require("./migrate-space-mixins");
|
|
13
|
-
const migrate_text_mixins_1 = require("./migrate-text-mixins");
|
|
14
|
-
exports.TUI_RATING_WARNING = '// TODO: (Taiga UI migration): use css to customize rating gap and size. See https://taiga-ui.dev/components/rating#basic';
|
|
15
|
-
function migrateStyles() {
|
|
16
|
-
(0, ng_morph_1.getSourceFiles)(constants_1.ALL_STYLE_FILES).forEach((sourceFile) => {
|
|
17
|
-
let fullText = sourceFile.getFullText();
|
|
18
|
-
fullText = fullText
|
|
19
|
-
// eslint-disable-next-line
|
|
20
|
-
.replace(/^(.*--tui-rating-size.*)$/gm, `${exports.TUI_RATING_WARNING}\n$1`)
|
|
21
|
-
// eslint-disable-next-line
|
|
22
|
-
.replace(/^(.*--tui-rating-gap.*)$/gm, `${exports.TUI_RATING_WARNING}\n$1`)
|
|
23
|
-
.replaceAll('--tui-link-icon-size', '--tui-icon-size')
|
|
24
|
-
.replaceAll('@taiga-ui/proprietary-core/styles/tinkoff-fonts', '@taiga-ui/proprietary/styles/tbank-fonts')
|
|
25
|
-
.replaceAll('@taiga-ui/proprietary-core/styles/theme-tinkoff-2023', '@taiga-ui/proprietary/styles/tbank-theme')
|
|
26
|
-
.replaceAll('@taiga-ui/proprietary-core/styles/theme-tinkoff-mobile-2023', '@taiga-ui/proprietary/styles/tbank-theme-mobile.less')
|
|
27
|
-
.replaceAll('@taiga-ui/proprietary-core/styles/theme-tinkoff-mobile', '@taiga-ui/proprietary/styles/tbank-theme-mobile.less')
|
|
28
|
-
.replaceAll('@taiga-ui/proprietary-core/styles/theme-tinkoff', '@taiga-ui/proprietary/styles/tbank-theme');
|
|
29
|
-
const newFileContent = [
|
|
30
|
-
migrate_space_mixins_1.migrateSpaceMixins,
|
|
31
|
-
migrate_text_mixins_1.migrateTextMixins,
|
|
32
|
-
migrate_shadow_mixins_1.migrateShadowMixins,
|
|
33
|
-
migrate_less_scss_constants_1.migrateLessSCSSConstants,
|
|
34
|
-
migrate_mixins_1.migrateMixins,
|
|
35
|
-
migrate_legacy_mixins_1.migrateLegacyMixins,
|
|
36
|
-
].reduce((text, migrate) => migrate(text), fullText);
|
|
37
|
-
sourceFile.replaceWithText(newFileContent);
|
|
38
|
-
});
|
|
39
|
-
(0, ng_morph_1.saveActiveProject)();
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/styles/index.ts"],"names":[],"mappings":";;;AAcA,sCA4CC;AA1DD,8BAA8B;AAC9B,uCAA2D;AAE3D,qDAAsD;AACtD,mEAA4D;AAC5D,+EAAuE;AACvE,qDAA+C;AAC/C,mEAA4D;AAC5D,iEAA0D;AAC1D,+DAAwD;AAE3C,QAAA,kBAAkB,GAC3B,2HAA2H,CAAC;AAEhI,SAAgB,aAAa;IACzB,IAAA,yBAAc,EAAC,2BAAe,CAAC,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;QACnD,IAAI,QAAQ,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;QAExC,QAAQ,GAAG,QAAQ;YACf,2BAA2B;aAC1B,OAAO,CAAC,6BAA6B,EAAE,GAAG,0BAAkB,MAAM,CAAC;YACpE,2BAA2B;aAC1B,OAAO,CAAC,4BAA4B,EAAE,GAAG,0BAAkB,MAAM,CAAC;aAClE,UAAU,CAAC,sBAAsB,EAAE,iBAAiB,CAAC;aACrD,UAAU,CACP,iDAAiD,EACjD,0CAA0C,CAC7C;aACA,UAAU,CACP,sDAAsD,EACtD,0CAA0C,CAC7C;aACA,UAAU,CACP,6DAA6D,EAC7D,sDAAsD,CACzD;aACA,UAAU,CACP,wDAAwD,EACxD,sDAAsD,CACzD;aACA,UAAU,CACP,iDAAiD,EACjD,0CAA0C,CAC7C,CAAC;QAEN,MAAM,cAAc,GAAG;YACnB,yCAAkB;YAClB,uCAAiB;YACjB,2CAAmB;YACnB,sDAAwB;YACxB,8BAAa;YACb,2CAAmB;SACtB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC;QAErD,UAAU,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,IAAA,4BAAiB,GAAE,CAAC;AACxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function migrateLegacyMixins(fileContent: string): string;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateLegacyMixins = migrateLegacyMixins;
|
|
4
|
-
const LEGACY_MIXINS = [
|
|
5
|
-
'clearfix',
|
|
6
|
-
'autofill',
|
|
7
|
-
'clearinput',
|
|
8
|
-
'visually-hidden',
|
|
9
|
-
'webkit-auto-fill-button-hidden',
|
|
10
|
-
'customize-scroll',
|
|
11
|
-
'inset-border',
|
|
12
|
-
'dashed-border',
|
|
13
|
-
'opacity-icon',
|
|
14
|
-
'hoverable-with-shadow',
|
|
15
|
-
'text-overflow-with-fade',
|
|
16
|
-
'contrast-background',
|
|
17
|
-
'blurred-background',
|
|
18
|
-
'textfield-host',
|
|
19
|
-
'textfield-content',
|
|
20
|
-
'textfield-input',
|
|
21
|
-
'textfield-wrapper',
|
|
22
|
-
'textfield-label',
|
|
23
|
-
'input-icon',
|
|
24
|
-
'input-icons',
|
|
25
|
-
'icon-button',
|
|
26
|
-
'textfield',
|
|
27
|
-
];
|
|
28
|
-
function migrateLegacyMixins(fileContent) {
|
|
29
|
-
if (!fileContent.includes('@taiga-ui/core/styles/taiga-ui-local')) {
|
|
30
|
-
return fileContent;
|
|
31
|
-
}
|
|
32
|
-
return LEGACY_MIXINS.some((x) => fileContent.includes(x))
|
|
33
|
-
? `@import '@taiga-ui/legacy/styles/taiga-ui-local';\n${fileContent}`
|
|
34
|
-
: fileContent;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=migrate-legacy-mixins.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-legacy-mixins.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.ts"],"names":[],"mappings":";;AAyBA,kDAQC;AAjCD,MAAM,aAAa,GAAG;IAClB,UAAU;IACV,UAAU;IACV,YAAY;IACZ,iBAAiB;IACjB,gCAAgC;IAChC,kBAAkB;IAClB,cAAc;IACd,eAAe;IACf,cAAc;IACd,uBAAuB;IACvB,yBAAyB;IACzB,qBAAqB;IACrB,oBAAoB;IACpB,gBAAgB;IAChB,mBAAmB;IACnB,iBAAiB;IACjB,mBAAmB;IACnB,iBAAiB;IACjB,YAAY;IACZ,aAAa;IACb,aAAa;IACb,WAAW;CACd,CAAC;AAEF,SAAgB,mBAAmB,CAAC,WAAmB;IACnD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,sCAAsC,CAAC,EAAE,CAAC;QAChE,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QACrD,CAAC,CAAC,sDAAsD,WAAW,EAAE;QACrE,CAAC,CAAC,WAAW,CAAC;AACtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function migrateLessSCSSConstants(fileContent: string): string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateLessSCSSConstants = migrateLessSCSSConstants;
|
|
4
|
-
const MAPPING = { space: '0.25rem' };
|
|
5
|
-
function migrateLessSCSSConstants(fileContent) {
|
|
6
|
-
if (!fileContent.includes('@taiga-ui/core/styles/taiga-ui-local')) {
|
|
7
|
-
return fileContent;
|
|
8
|
-
}
|
|
9
|
-
return fileContent.replaceAll(new RegExp(`[$|@](${Object.keys(MAPPING).join('|')})`, 'g'), (_, variable) => MAPPING[variable]);
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=migrate-less-scss-constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-less-scss-constants.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.ts"],"names":[],"mappings":";;AAEA,4DASC;AAXD,MAAM,OAAO,GAAG,EAAC,KAAK,EAAE,SAAS,EAAC,CAAC;AAEnC,SAAgB,wBAAwB,CAAC,WAAmB;IACxD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,sCAAsC,CAAC,EAAE,CAAC;QAChE,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,OAAO,WAAW,CAAC,UAAU,CACzB,IAAI,MAAM,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,EAC3D,CAAC,CAAC,EAAE,QAA8B,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAC3D,CAAC;AACN,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function migrateMixins(fileContent: string): string;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateMixins = migrateMixins;
|
|
4
|
-
const MAPPING = {
|
|
5
|
-
createStackingContext: ['isolation: isolate'],
|
|
6
|
-
'scroll-behavior': ['scroll-behavior: var(--tui-scroll-behavior)'],
|
|
7
|
-
};
|
|
8
|
-
function migrateMixins(fileContent) {
|
|
9
|
-
if (!fileContent.includes('@taiga-ui/core/styles/taiga-ui-local')) {
|
|
10
|
-
return fileContent;
|
|
11
|
-
}
|
|
12
|
-
return Object.keys(MAPPING).reduce((file, outdatedMixin) => {
|
|
13
|
-
const MIXIN_RE = new RegExp(String.raw `(?:@include\s|\.)(${outdatedMixin})\(\)(\s?!important)?;`, 'g');
|
|
14
|
-
return file.replaceAll(MIXIN_RE, (_, mixinName, important = '') => MAPPING[mixinName]
|
|
15
|
-
.map((newValue) => `${newValue}${important};`)
|
|
16
|
-
.join('\n'));
|
|
17
|
-
}, fileContent);
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=migrate-mixins.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-mixins.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/styles/migrate-mixins.ts"],"names":[],"mappings":";;AAKA,sCAmBC;AAxBD,MAAM,OAAO,GAAG;IACZ,qBAAqB,EAAE,CAAC,oBAAoB,CAAC;IAC7C,iBAAiB,EAAE,CAAC,6CAA6C,CAAC;CACrE,CAAC;AAEF,SAAgB,aAAa,CAAC,WAAmB;IAC7C,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,sCAAsC,CAAC,EAAE,CAAC;QAChE,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,aAAa,EAAE,EAAE;QACvD,MAAM,QAAQ,GAAG,IAAI,MAAM,CACvB,MAAM,CAAC,GAAG,CAAA,qBAAqB,aAAa,wBAAwB,EACpE,GAAG,CACN,CAAC;QAEF,OAAO,IAAI,CAAC,UAAU,CAClB,QAAQ,EACR,CAAC,CAAC,EAAE,SAA+B,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,CACnD,OAAO,CAAC,SAAS,CAAC;aACb,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,QAAQ,GAAG,SAAS,GAAG,CAAC;aAC7C,IAAI,CAAC,IAAI,CAAC,CACtB,CAAC;IACN,CAAC,EAAE,WAAW,CAAC,CAAC;AACpB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function migrateShadowMixins(fileContent: string): string;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateShadowMixins = migrateShadowMixins;
|
|
4
|
-
const MAPPING = {
|
|
5
|
-
'shadow()': 'var(--tui-shadow-small)',
|
|
6
|
-
'shadow(1)': 'var(--tui-shadow-small)',
|
|
7
|
-
'shadow(2)': 'var(--tui-shadow-medium)',
|
|
8
|
-
'shadow(3)': 'var(--tui-shadow-popup)',
|
|
9
|
-
'shadow(4)': 'var(--tui-shadow-medium)',
|
|
10
|
-
'shadow(5)': 'var(--tui-shadow-small-hover)',
|
|
11
|
-
'shadow(6)': 'var(--tui-shadow-small)',
|
|
12
|
-
'shadow(7)': 'var(--tui-shadow-popup)',
|
|
13
|
-
};
|
|
14
|
-
// .shadow(2);
|
|
15
|
-
// @include shadow(2);
|
|
16
|
-
const MIXIN_RE = /(?:@include\s|\.)(shadow\(\d*\))(\s?!important)?;/g;
|
|
17
|
-
function migrateShadowMixins(fileContent) {
|
|
18
|
-
if (!fileContent.includes('@taiga-ui/core/styles/taiga-ui-local')) {
|
|
19
|
-
return fileContent;
|
|
20
|
-
}
|
|
21
|
-
return fileContent.replaceAll(MIXIN_RE, (_, mixin, important = '') => `box-shadow: ${MAPPING[mixin]}${important};`);
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=migrate-shadow-mixins.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-shadow-mixins.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.ts"],"names":[],"mappings":";;AAeA,kDAUC;AAzBD,MAAM,OAAO,GAAG;IACZ,UAAU,EAAE,yBAAyB;IACrC,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,+BAA+B;IAC5C,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,yBAAyB;CACzC,CAAC;AAEF,cAAc;AACd,sBAAsB;AACtB,MAAM,QAAQ,GAAG,oDAAoD,CAAC;AAEtE,SAAgB,mBAAmB,CAAC,WAAmB;IACnD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,sCAAsC,CAAC,EAAE,CAAC;QAChE,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,OAAO,WAAW,CAAC,UAAU,CACzB,QAAQ,EACR,CAAC,CAAC,EAAE,KAA2B,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,CAC/C,eAAe,OAAO,CAAC,KAAK,CAAC,GAAG,SAAS,GAAG,CACnD,CAAC;AACN,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function migrateSpaceMixins(fileContent: string): string;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateSpaceMixins = migrateSpaceMixins;
|
|
4
|
-
const DIRECTION_MAPPING = {
|
|
5
|
-
all: ['margin'],
|
|
6
|
-
top: ['margin-top'],
|
|
7
|
-
bottom: ['margin-bottom'],
|
|
8
|
-
left: ['margin-left'],
|
|
9
|
-
right: ['margin-right'],
|
|
10
|
-
vertical: ['margin-top', 'margin-bottom'],
|
|
11
|
-
horizontal: ['margin-left', 'margin-right'],
|
|
12
|
-
};
|
|
13
|
-
const SPACE = 0.25;
|
|
14
|
-
// .tui-space(top, 4);
|
|
15
|
-
// @include tui-space(top, 4);
|
|
16
|
-
const MIXIN_RE = new RegExp(String.raw `(?:@include\s|\.)tui-space\((?<direction>${Object.keys(DIRECTION_MAPPING).join('|')}),\s?(?<size>-?\d+)\)(\s?!important)?;`, 'g');
|
|
17
|
-
function migrateSpaceMixins(fileContent) {
|
|
18
|
-
return fileContent.replaceAll(MIXIN_RE, (_, direction, size, important = '') => DIRECTION_MAPPING[direction]
|
|
19
|
-
.map((property) => `${property}: ${Number(size) * SPACE}rem${important};`)
|
|
20
|
-
.join('\n'));
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=migrate-space-mixins.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-space-mixins.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/styles/migrate-space-mixins.ts"],"names":[],"mappings":";;AAmBA,gDAQC;AA3BD,MAAM,iBAAiB,GAAG;IACtB,GAAG,EAAE,CAAC,QAAQ,CAAC;IACf,GAAG,EAAE,CAAC,YAAY,CAAC;IACnB,MAAM,EAAE,CAAC,eAAe,CAAC;IACzB,IAAI,EAAE,CAAC,aAAa,CAAC;IACrB,KAAK,EAAE,CAAC,cAAc,CAAC;IACvB,QAAQ,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC;IACzC,UAAU,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC;CAC9C,CAAC;AAEF,MAAM,KAAK,GAAG,IAAI,CAAC;AAEnB,sBAAsB;AACtB,8BAA8B;AAC9B,MAAM,QAAQ,GAAG,IAAI,MAAM,CACvB,MAAM,CAAC,GAAG,CAAA,4CAA4C,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,wCAAwC,EACtI,GAAG,CACN,CAAC;AAEF,SAAgB,kBAAkB,CAAC,WAAmB;IAClD,OAAO,WAAW,CAAC,UAAU,CACzB,QAAQ,EACR,CAAC,CAAC,EAAE,SAAyC,EAAE,IAAY,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,CAC3E,iBAAiB,CAAC,SAAS,CAAC;SACvB,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,QAAQ,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,MAAM,SAAS,GAAG,CAAC;SACzE,IAAI,CAAC,IAAI,CAAC,CACtB,CAAC;AACN,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function migrateTextMixins(fileContent: string): string;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateTextMixins = migrateTextMixins;
|
|
4
|
-
const MAPPING = {
|
|
5
|
-
'text-h1': ['font: var(--tui-typography-heading-h1)'],
|
|
6
|
-
'text-h2': ['font: var(--tui-typography-heading-h2)'],
|
|
7
|
-
'text-h3': ['font: var(--tui-typography-heading-h3)'],
|
|
8
|
-
'text-h4': ['font: var(--tui-typography-heading-h4)'],
|
|
9
|
-
'text-h5': ['font: var(--tui-typography-heading-h5)'],
|
|
10
|
-
'text-h6': ['font: var(--tui-typography-heading-h6)'],
|
|
11
|
-
'text-body-xl-bold': [
|
|
12
|
-
'font: var(--tui-typography-legacy-body-xl)',
|
|
13
|
-
'font-weight: bold',
|
|
14
|
-
],
|
|
15
|
-
'text-body-xl': ['font: var(--tui-typography-legacy-body-xl)'],
|
|
16
|
-
'text-body-xs': ['font: var(--tui-typography-body-xs)'],
|
|
17
|
-
'text-caption-l-bold': [
|
|
18
|
-
'font-size: 0.8125rem',
|
|
19
|
-
'font-weight: bold',
|
|
20
|
-
'font-family: var(--tui-typography-family-text)',
|
|
21
|
-
'letter-spacing: 0.0625rem',
|
|
22
|
-
'text-transform: uppercase',
|
|
23
|
-
],
|
|
24
|
-
'text-caption-l': [
|
|
25
|
-
'font-size: 0.8125rem',
|
|
26
|
-
'font-weight: normal',
|
|
27
|
-
'font-family: var(--tui-typography-family-text)',
|
|
28
|
-
'letter-spacing: 0.0625rem',
|
|
29
|
-
'text-transform: uppercase',
|
|
30
|
-
],
|
|
31
|
-
'text-caption-bold': [
|
|
32
|
-
'font-size: 0.6875rem',
|
|
33
|
-
'font-weight: bold',
|
|
34
|
-
'font-family: var(--tui-typography-family-text)',
|
|
35
|
-
'letter-spacing: 0.0625rem',
|
|
36
|
-
'text-transform: uppercase',
|
|
37
|
-
],
|
|
38
|
-
'text-caption': [
|
|
39
|
-
'font-size: 0.6875rem',
|
|
40
|
-
'font-weight: normal',
|
|
41
|
-
'font-family: var(--tui-typography-family-text)',
|
|
42
|
-
'letter-spacing: 0.0625rem',
|
|
43
|
-
'text-transform: uppercase',
|
|
44
|
-
],
|
|
45
|
-
};
|
|
46
|
-
// .tui-text-h1();
|
|
47
|
-
// @include tui-text-h1();
|
|
48
|
-
const MIXIN_RE = /(?:@include\s|\.)(?!text-overflow\b)(text-[\w-]+)\(([\w,\s-]+)?\)(?:\s?!important)?;/g;
|
|
49
|
-
function migrateTextMixins(fileContent) {
|
|
50
|
-
if (!fileContent.includes('@taiga-ui/core/styles/taiga-ui-local')) {
|
|
51
|
-
return fileContent;
|
|
52
|
-
}
|
|
53
|
-
return fileContent.replaceAll(MIXIN_RE, (originalString, mixinName, important = '') => MAPPING[mixinName]
|
|
54
|
-
? MAPPING[mixinName]
|
|
55
|
-
.map((newValue) => `${newValue}${important};`)
|
|
56
|
-
.join('\n')
|
|
57
|
-
: `${originalString} // TODO: this mixin was deleted. Replace it with inline styles. Find it source code in https://github.com/taiga-family/taiga-ui/blob/v3.x/projects/core/styles/mixins/text.less`);
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=migrate-text-mixins.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-text-mixins.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/styles/migrate-text-mixins.ts"],"names":[],"mappings":";;AAgDA,8CAcC;AA9DD,MAAM,OAAO,GAAG;IACZ,SAAS,EAAE,CAAC,wCAAwC,CAAC;IACrD,SAAS,EAAE,CAAC,wCAAwC,CAAC;IACrD,SAAS,EAAE,CAAC,wCAAwC,CAAC;IACrD,SAAS,EAAE,CAAC,wCAAwC,CAAC;IACrD,SAAS,EAAE,CAAC,wCAAwC,CAAC;IACrD,SAAS,EAAE,CAAC,wCAAwC,CAAC;IACrD,mBAAmB,EAAE;QACjB,4CAA4C;QAC5C,mBAAmB;KACtB;IACD,cAAc,EAAE,CAAC,4CAA4C,CAAC;IAC9D,cAAc,EAAE,CAAC,qCAAqC,CAAC;IACvD,qBAAqB,EAAE;QACnB,sBAAsB;QACtB,mBAAmB;QACnB,gDAAgD;QAChD,2BAA2B;QAC3B,2BAA2B;KAC9B;IACD,gBAAgB,EAAE;QACd,sBAAsB;QACtB,qBAAqB;QACrB,gDAAgD;QAChD,2BAA2B;QAC3B,2BAA2B;KAC9B;IACD,mBAAmB,EAAE;QACjB,sBAAsB;QACtB,mBAAmB;QACnB,gDAAgD;QAChD,2BAA2B;QAC3B,2BAA2B;KAC9B;IACD,cAAc,EAAE;QACZ,sBAAsB;QACtB,qBAAqB;QACrB,gDAAgD;QAChD,2BAA2B;QAC3B,2BAA2B;KAC9B;CACJ,CAAC;AAEF,kBAAkB;AAClB,0BAA0B;AAC1B,MAAM,QAAQ,GACV,uFAAuF,CAAC;AAE5F,SAAgB,iBAAiB,CAAC,WAAmB;IACjD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,sCAAsC,CAAC,EAAE,CAAC;QAChE,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,OAAO,WAAW,CAAC,UAAU,CACzB,QAAQ,EACR,CAAC,cAAsB,EAAE,SAA+B,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,CACxE,OAAO,CAAC,SAAS,CAAC;QACd,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;aACb,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,QAAQ,GAAG,SAAS,GAAG,CAAC;aAC7C,IAAI,CAAC,IAAI,CAAC;QACjB,CAAC,CAAC,GAAG,cAAc,kLAAkL,CAChN,CAAC;AACN,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type UpdateRecorder } from '@angular-devkit/schematics';
|
|
2
|
-
import { type DevkitFileSystem } from 'ng-morph';
|
|
3
|
-
import { type TemplateResource } from '../../../interfaces';
|
|
4
|
-
export declare function dropdownRefComment({ resource, recorder, fileSystem, }: {
|
|
5
|
-
fileSystem: DevkitFileSystem;
|
|
6
|
-
recorder: UpdateRecorder;
|
|
7
|
-
resource: TemplateResource;
|
|
8
|
-
}): void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dropdownRefComment = dropdownRefComment;
|
|
4
|
-
const elements_1 = require("../../../../utils/templates/elements");
|
|
5
|
-
const template_resource_1 = require("../../../../utils/templates/template-resource");
|
|
6
|
-
function dropdownRefComment({ resource, recorder, fileSystem, }) {
|
|
7
|
-
const template = (0, template_resource_1.getTemplateFromTemplateResource)(resource, fileSystem);
|
|
8
|
-
const templateOffset = (0, template_resource_1.getTemplateOffset)(resource);
|
|
9
|
-
(0, elements_1.findElementsByTagName)(template, 'tui-hosted-dropdown', (element) => !!element.attrs.find((attr) => attr.name.startsWith('#'))).forEach(({ sourceCodeLocation, attrs }) => {
|
|
10
|
-
var _a;
|
|
11
|
-
const attr = attrs.find((attr) => attr.name.startsWith('#'));
|
|
12
|
-
recorder.insertLeft(((_a = sourceCodeLocation === null || sourceCodeLocation === void 0 ? void 0 : sourceCodeLocation.startOffset) !== null && _a !== void 0 ? _a : 0) + templateOffset, `<!-- TODO: (Taiga UI migration) use <div ... tuiDropdown ${attr === null || attr === void 0 ? void 0 : attr.name}="tuiDropdown"> and (event)="${attr === null || attr === void 0 ? void 0 : attr.name}.toggle(false)" -->\n`);
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=dropdown-ref-comment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-ref-comment.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.ts"],"names":[],"mappings":";;AAWA,gDAwBC;AA/BD,mEAA2E;AAC3E,qFAGuD;AAGvD,SAAgB,kBAAkB,CAAC,EAC/B,QAAQ,EACR,QAAQ,EACR,UAAU,GAKb;IACG,MAAM,QAAQ,GAAG,IAAA,mDAA+B,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACvE,MAAM,cAAc,GAAG,IAAA,qCAAiB,EAAC,QAAQ,CAAC,CAAC;IAEnD,IAAA,gCAAqB,EACjB,QAAQ,EACR,qBAAqB,EACrB,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAClF,CAAC,OAAO,CAAC,CAAC,EAAC,kBAAkB,EAAE,KAAK,EAAC,EAAE,EAAE;;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;QAE7D,QAAQ,CAAC,UAAU,CACf,CAAC,MAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,WAAW,mCAAI,CAAC,CAAC,GAAG,cAAc,EACvD,4DAA4D,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,gCAAgC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,uBAAuB,CAC1I,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export * from './migrate-active-zone';
|
|
2
|
-
export * from './migrate-avatar';
|
|
3
|
-
export * from './migrate-axes';
|
|
4
|
-
export * from './migrate-badge';
|
|
5
|
-
export * from './migrate-badged-content';
|
|
6
|
-
export * from './migrate-button-appearance';
|
|
7
|
-
export * from './migrate-expandable';
|
|
8
|
-
export * from './migrate-filter-pipe';
|
|
9
|
-
export * from './migrate-focusable';
|
|
10
|
-
export * from './migrate-label';
|
|
11
|
-
export * from './migrate-labeled';
|
|
12
|
-
export * from './migrate-mobile-tabs';
|
|
13
|
-
export * from './migrate-money';
|
|
14
|
-
export * from './migrate-notification';
|
|
15
|
-
export * from './migrate-overscroll';
|
|
16
|
-
export * from './migrate-prevent-default';
|
|
17
|
-
export * from './migrate-progress-segmented';
|
|
18
|
-
export * from './migrate-thumbnail-card';
|
|
19
|
-
export * from './toggles';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./migrate-active-zone"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./migrate-avatar"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./migrate-axes"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./migrate-badge"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./migrate-badged-content"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./migrate-button-appearance"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./migrate-expandable"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./migrate-filter-pipe"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./migrate-focusable"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./migrate-label"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./migrate-labeled"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./migrate-mobile-tabs"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./migrate-money"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./migrate-notification"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./migrate-overscroll"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./migrate-prevent-default"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./migrate-progress-segmented"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./migrate-thumbnail-card"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./toggles"), exports);
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/templates/index.ts"],"names":[],"mappings":";;;AAAA,gEAAsC;AACtC,2DAAiC;AACjC,yDAA+B;AAC/B,0DAAgC;AAChC,mEAAyC;AACzC,sEAA4C;AAC5C,+DAAqC;AACrC,gEAAsC;AACtC,8DAAoC;AACpC,0DAAgC;AAChC,4DAAkC;AAClC,gEAAsC;AACtC,0DAAgC;AAChC,iEAAuC;AACvC,+DAAqC;AACrC,oEAA0C;AAC1C,uEAA6C;AAC7C,mEAAyC;AACzC,oDAA0B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type UpdateRecorder } from '@angular-devkit/schematics';
|
|
2
|
-
import { type DevkitFileSystem } from 'ng-morph';
|
|
3
|
-
import { type TemplateResource } from '../../../interfaces';
|
|
4
|
-
export declare function migrateActiveZoneParent({ resource, recorder, fileSystem, }: {
|
|
5
|
-
fileSystem: DevkitFileSystem;
|
|
6
|
-
recorder: UpdateRecorder;
|
|
7
|
-
resource: TemplateResource;
|
|
8
|
-
}): void;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateActiveZoneParent = migrateActiveZoneParent;
|
|
4
|
-
const elements_1 = require("../../../../utils/templates/elements");
|
|
5
|
-
const inputs_1 = require("../../../../utils/templates/inputs");
|
|
6
|
-
const template_resource_1 = require("../../../../utils/templates/template-resource");
|
|
7
|
-
const remove_attrs_1 = require("../utils/remove-attrs");
|
|
8
|
-
function migrateActiveZoneParent({ resource, recorder, fileSystem, }) {
|
|
9
|
-
const template = (0, template_resource_1.getTemplateFromTemplateResource)(resource, fileSystem);
|
|
10
|
-
const templateOffset = (0, template_resource_1.getTemplateOffset)(resource);
|
|
11
|
-
const elements = (0, elements_1.findElementsByTagName)(template, 'ng-template');
|
|
12
|
-
elements.forEach(({ attrs, sourceCodeLocation, childNodes }) => {
|
|
13
|
-
const zoneAttr = (0, inputs_1.findAttr)(attrs, 'let-activeZone');
|
|
14
|
-
if (!sourceCodeLocation) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
if (zoneAttr) {
|
|
18
|
-
(0, remove_attrs_1.removeAttrs)([zoneAttr], sourceCodeLocation, recorder, templateOffset);
|
|
19
|
-
}
|
|
20
|
-
const children = (0, elements_1.findElementsByFn)(childNodes, (el) => (0, elements_1.hasElementAttribute)(el, 'tuiActiveZoneParent'));
|
|
21
|
-
children.forEach(({ attrs, sourceCodeLocation }) => {
|
|
22
|
-
const parentAttr = (0, inputs_1.findAttr)(attrs, 'tuiActiveZoneParent');
|
|
23
|
-
if (!parentAttr || !sourceCodeLocation) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
if (parentAttr) {
|
|
27
|
-
(0, remove_attrs_1.removeAttrs)([parentAttr], sourceCodeLocation, recorder, templateOffset);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=migrate-active-zone.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-active-zone.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/templates/migrate-active-zone.ts"],"names":[],"mappings":";;AAgBA,0DAyCC;AAtDD,mEAI8C;AAC9C,+DAA4D;AAC5D,qFAGuD;AAEvD,wDAAkD;AAElD,SAAgB,uBAAuB,CAAC,EACpC,QAAQ,EACR,QAAQ,EACR,UAAU,GAKb;IACG,MAAM,QAAQ,GAAG,IAAA,mDAA+B,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACvE,MAAM,cAAc,GAAG,IAAA,qCAAiB,EAAC,QAAQ,CAAC,CAAC;IAEnD,MAAM,QAAQ,GAAG,IAAA,gCAAqB,EAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAEhE,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAC,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAC,EAAE,EAAE;QACzD,MAAM,QAAQ,GAAG,IAAA,iBAAQ,EAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;QAEnD,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACtB,OAAO;QACX,CAAC;QAED,IAAI,QAAQ,EAAE,CAAC;YACX,IAAA,0BAAW,EAAC,CAAC,QAAQ,CAAC,EAAE,kBAAkB,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;QAC1E,CAAC;QAED,MAAM,QAAQ,GAAG,IAAA,2BAAgB,EAAC,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,CACjD,IAAA,8BAAmB,EAAC,EAAE,EAAE,qBAAqB,CAAC,CACjD,CAAC;QAEF,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAC,KAAK,EAAE,kBAAkB,EAAC,EAAE,EAAE;YAC7C,MAAM,UAAU,GAAG,IAAA,iBAAQ,EAAC,KAAK,EAAE,qBAAqB,CAAC,CAAC;YAE1D,IAAI,CAAC,UAAU,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBACrC,OAAO;YACX,CAAC;YAED,IAAI,UAAU,EAAE,CAAC;gBACb,IAAA,0BAAW,EAAC,CAAC,UAAU,CAAC,EAAE,kBAAkB,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;YAC5E,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type UpdateRecorder } from '@angular-devkit/schematics';
|
|
2
|
-
import { type DevkitFileSystem } from 'ng-morph';
|
|
3
|
-
import { type TemplateResource } from '../../../interfaces';
|
|
4
|
-
export declare function migrateAvatar({ resource, recorder, fileSystem, }: {
|
|
5
|
-
fileSystem: DevkitFileSystem;
|
|
6
|
-
recorder: UpdateRecorder;
|
|
7
|
-
resource: TemplateResource;
|
|
8
|
-
}): void;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateAvatar = migrateAvatar;
|
|
4
|
-
const add_import_to_closest_module_1 = require("../../../../utils/add-import-to-closest-module");
|
|
5
|
-
const elements_1 = require("../../../../utils/templates/elements");
|
|
6
|
-
const inputs_1 = require("../../../../utils/templates/inputs");
|
|
7
|
-
const template_resource_1 = require("../../../../utils/templates/template-resource");
|
|
8
|
-
const normalize_attr_value_1 = require("../utils/normalize-attr-value");
|
|
9
|
-
const remove_attrs_1 = require("../utils/remove-attrs");
|
|
10
|
-
const common_1 = require("./toggles/common");
|
|
11
|
-
const sizeMap = {
|
|
12
|
-
xxs: 'xs',
|
|
13
|
-
xs: 's',
|
|
14
|
-
s: 'm',
|
|
15
|
-
m: 'l',
|
|
16
|
-
l: 'xl',
|
|
17
|
-
xl: 'xxl',
|
|
18
|
-
xxl: 'xxl',
|
|
19
|
-
};
|
|
20
|
-
function addModules(componentPath, modules) {
|
|
21
|
-
modules.forEach(({ moduleName, moduleSpecifier }) => {
|
|
22
|
-
(0, add_import_to_closest_module_1.addImportToClosestModule)(componentPath, moduleName, moduleSpecifier);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
function getFallbackValue(textValue, fallbackValue) {
|
|
26
|
-
return textValue ? `(${textValue} | tuiInitials)` : fallbackValue || '';
|
|
27
|
-
}
|
|
28
|
-
function migrateAvatar({ resource, recorder, fileSystem, }) {
|
|
29
|
-
const template = (0, template_resource_1.getTemplateFromTemplateResource)(resource, fileSystem);
|
|
30
|
-
const templateOffset = (0, template_resource_1.getTemplateOffset)(resource);
|
|
31
|
-
const avatarElements = (0, elements_1.findElementsByTagName)(template, 'tui-avatar');
|
|
32
|
-
const markerIconElements = (0, elements_1.findElementsByTagName)(template, 'tui-marker-icon');
|
|
33
|
-
[
|
|
34
|
-
...avatarElements.filter(({ attrs }) => (0, inputs_1.findAttr)(attrs, 'avatarurl') || (0, inputs_1.findAttr)(attrs, 'text')),
|
|
35
|
-
...markerIconElements,
|
|
36
|
-
].forEach(({ attrs, sourceCodeLocation }) => {
|
|
37
|
-
if (!sourceCodeLocation) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
(0, common_1.replaceSizeAttr)(attrs, sourceCodeLocation, recorder, templateOffset, sizeMap);
|
|
41
|
-
});
|
|
42
|
-
avatarElements.forEach(({ attrs, sourceCodeLocation }) => {
|
|
43
|
-
var _a, _b;
|
|
44
|
-
const avatarUrlAttr = (0, inputs_1.findAttr)(attrs, 'avatarurl');
|
|
45
|
-
const fallbackAttr = (0, inputs_1.findAttr)(attrs, 'fallback');
|
|
46
|
-
const textAttr = (0, inputs_1.findAttr)(attrs, 'text');
|
|
47
|
-
const roundedAttr = (0, inputs_1.findAttr)(attrs, 'rounded');
|
|
48
|
-
const autoColorAttr = (0, inputs_1.findAttr)(attrs, 'autoColor');
|
|
49
|
-
if ((!avatarUrlAttr && !textAttr) || !sourceCodeLocation) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
const urlAttrValue = (avatarUrlAttr === null || avatarUrlAttr === void 0 ? void 0 : avatarUrlAttr.value) &&
|
|
53
|
-
(0, normalize_attr_value_1.normalizeAttrValue)(avatarUrlAttr.name, avatarUrlAttr.value);
|
|
54
|
-
const textAttrValue = (textAttr === null || textAttr === void 0 ? void 0 : textAttr.value) && (0, normalize_attr_value_1.normalizeAttrValue)(textAttr.name, textAttr.value);
|
|
55
|
-
const fallbackAttrValue = (fallbackAttr === null || fallbackAttr === void 0 ? void 0 : fallbackAttr.value) &&
|
|
56
|
-
(0, normalize_attr_value_1.normalizeAttrValue)(fallbackAttr.name, fallbackAttr.value);
|
|
57
|
-
const autoColorValue = (autoColorAttr === null || autoColorAttr === void 0 ? void 0 : autoColorAttr.value) &&
|
|
58
|
-
(0, normalize_attr_value_1.normalizeAttrValue)(autoColorAttr.name, autoColorAttr.value);
|
|
59
|
-
const insertTo = ((_b = (_a = sourceCodeLocation.startTag) === null || _a === void 0 ? void 0 : _a.startOffset) !== null && _b !== void 0 ? _b : 0) + '<tui-avatar'.length;
|
|
60
|
-
if (!insertTo) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
const mainSrc = urlAttrValue || (textAttrValue ? `${textAttrValue} | tuiInitials` : '');
|
|
64
|
-
const fallbackValue = urlAttrValue
|
|
65
|
-
? getFallbackValue(textAttrValue, fallbackAttrValue)
|
|
66
|
-
: '';
|
|
67
|
-
const fallbackSrc = urlAttrValue && fallbackValue
|
|
68
|
-
? `| tuiFallbackSrc : ${fallbackValue} | async`
|
|
69
|
-
: '';
|
|
70
|
-
recorder.insertRight(insertTo + templateOffset, ` [src]="${mainSrc}${fallbackSrc ? ` ${fallbackSrc}` : ''}"${roundedAttr ? '' : ' [round]="false"'}${autoColorValue === 'true' ? ` [style.background]="${textAttrValue} | tuiAutoColor"` : ''}`);
|
|
71
|
-
const attrsToRemove = [
|
|
72
|
-
avatarUrlAttr,
|
|
73
|
-
textAttr,
|
|
74
|
-
fallbackAttr,
|
|
75
|
-
autoColorAttr,
|
|
76
|
-
].filter((attr) => attr !== undefined);
|
|
77
|
-
const fallbackModule = !!((avatarUrlAttr && textAttrValue) || fallbackAttr);
|
|
78
|
-
const initialsModule = !!textAttrValue;
|
|
79
|
-
const autoColorModule = !!autoColorValue && autoColorValue === 'true';
|
|
80
|
-
const modules = [
|
|
81
|
-
...(fallbackModule
|
|
82
|
-
? [{ moduleName: 'TuiFallbackSrcPipe', moduleSpecifier: '@taiga-ui/core' }]
|
|
83
|
-
: []),
|
|
84
|
-
...(initialsModule
|
|
85
|
-
? [{ moduleName: 'TuiInitialsPipe', moduleSpecifier: '@taiga-ui/core' }]
|
|
86
|
-
: []),
|
|
87
|
-
...(autoColorModule
|
|
88
|
-
? [{ moduleName: 'TuiAutoColorPipe', moduleSpecifier: '@taiga-ui/core' }]
|
|
89
|
-
: []),
|
|
90
|
-
];
|
|
91
|
-
addModules(resource.componentPath, modules);
|
|
92
|
-
(0, remove_attrs_1.removeAttrs)(attrsToRemove, sourceCodeLocation, recorder, templateOffset);
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=migrate-avatar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-avatar.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/templates/migrate-avatar.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type UpdateRecorder } from '@angular-devkit/schematics';
|
|
2
|
-
import { type DevkitFileSystem } from 'ng-morph';
|
|
3
|
-
import { type TemplateResource } from '../../../interfaces';
|
|
4
|
-
export declare function migrateAxes({ resource, recorder, fileSystem, }: {
|
|
5
|
-
fileSystem: DevkitFileSystem;
|
|
6
|
-
recorder: UpdateRecorder;
|
|
7
|
-
resource: TemplateResource;
|
|
8
|
-
}): void;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateAxes = migrateAxes;
|
|
4
|
-
const elements_1 = require("../../../../utils/templates/elements");
|
|
5
|
-
const template_resource_1 = require("../../../../utils/templates/template-resource");
|
|
6
|
-
const remove_attrs_1 = require("../utils/remove-attrs");
|
|
7
|
-
const AXES_TAG_NAME = 'tui-axes';
|
|
8
|
-
const AXES_NEW_ATTRIBUTE = 'new';
|
|
9
|
-
function migrateAxes({ resource, recorder, fileSystem, }) {
|
|
10
|
-
const template = (0, template_resource_1.getTemplateFromTemplateResource)(resource, fileSystem);
|
|
11
|
-
const templateOffset = (0, template_resource_1.getTemplateOffset)(resource);
|
|
12
|
-
const elements = (0, elements_1.findElementsByTagName)(template, AXES_TAG_NAME);
|
|
13
|
-
elements.forEach(({ attrs, sourceCodeLocation }) => {
|
|
14
|
-
const axesNewAttr = attrs.find((attr) => attr.name === AXES_NEW_ATTRIBUTE);
|
|
15
|
-
if (!sourceCodeLocation) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
if (axesNewAttr) {
|
|
19
|
-
(0, remove_attrs_1.removeAttrs)([axesNewAttr], sourceCodeLocation, recorder, templateOffset);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
recorder.insertLeft(sourceCodeLocation.startOffset + templateOffset, '<!-- TODO: (Taiga UI migration) labels positioning on x axes were updated. Add empty string to axisXLabels array. See https://taiga-ui.dev/charts/axes -->\n');
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=migrate-axes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-axes.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/templates/migrate-axes.ts"],"names":[],"mappings":";;AAcA,kCA8BC;AAzCD,mEAA2E;AAC3E,qFAGuD;AAEvD,wDAAkD;AAElD,MAAM,aAAa,GAAG,UAAU,CAAC;AACjC,MAAM,kBAAkB,GAAG,KAAK,CAAC;AAEjC,SAAgB,WAAW,CAAC,EACxB,QAAQ,EACR,QAAQ,EACR,UAAU,GAKb;IACG,MAAM,QAAQ,GAAG,IAAA,mDAA+B,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACvE,MAAM,cAAc,GAAG,IAAA,qCAAiB,EAAC,QAAQ,CAAC,CAAC;IAEnD,MAAM,QAAQ,GAAG,IAAA,gCAAqB,EAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAEhE,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAC,KAAK,EAAE,kBAAkB,EAAC,EAAE,EAAE;QAC7C,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,kBAAkB,CAAC,CAAC;QAE3E,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACtB,OAAO;QACX,CAAC;QAED,IAAI,WAAW,EAAE,CAAC;YACd,IAAA,0BAAW,EAAC,CAAC,WAAW,CAAC,EAAE,kBAAkB,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;QAC7E,CAAC;aAAM,CAAC;YACJ,QAAQ,CAAC,UAAU,CACf,kBAAkB,CAAC,WAAW,GAAG,cAAc,EAC/C,8JAA8J,CACjK,CAAC;QACN,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type UpdateRecorder } from '@angular-devkit/schematics';
|
|
2
|
-
import { type DevkitFileSystem } from 'ng-morph';
|
|
3
|
-
import { type TemplateResource } from '../../../interfaces';
|
|
4
|
-
export declare function migrateBadge({ resource, recorder, fileSystem, }: {
|
|
5
|
-
fileSystem: DevkitFileSystem;
|
|
6
|
-
recorder: UpdateRecorder;
|
|
7
|
-
resource: TemplateResource;
|
|
8
|
-
}): void;
|