css-selectors.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. "use strict";
  2. /**
  3. * @license
  4. * Copyright Google LLC All Rights Reserved.
  5. *
  6. * Use of this source code is governed by an MIT-style license that can be
  7. * found in the LICENSE file at https://angular.io/license
  8. */
  9. Object.defineProperty(exports, "__esModule", { value: true });
  10. const schematics_1 = require("@angular/cdk/schematics");
  11. exports.cssSelectors = {
  12. [schematics_1.TargetVersion.V6]: [
  13. {
  14. pr: 'https://github.com/angular/components/pull/10296',
  15. changes: [
  16. { replace: '.mat-form-field-placeholder', replaceWith: '.mat-form-field-label' },
  17. { replace: '.mat-input-container', replaceWith: '.mat-form-field' },
  18. { replace: '.mat-input-flex', replaceWith: '.mat-form-field-flex' },
  19. { replace: '.mat-input-hint-spacer', replaceWith: '.mat-form-field-hint-spacer' },
  20. { replace: '.mat-input-hint-wrapper', replaceWith: '.mat-form-field-hint-wrapper' },
  21. { replace: '.mat-input-infix', replaceWith: '.mat-form-field-infix' },
  22. { replace: '.mat-input-invalid', replaceWith: '.mat-form-field-invalid' },
  23. { replace: '.mat-input-placeholder', replaceWith: '.mat-form-field-label' },
  24. { replace: '.mat-input-placeholder-wrapper', replaceWith: '.mat-form-field-label-wrapper' },
  25. { replace: '.mat-input-prefix', replaceWith: '.mat-form-field-prefix' },
  26. { replace: '.mat-input-ripple', replaceWith: '.mat-form-field-ripple' },
  27. { replace: '.mat-input-subscript-wrapper', replaceWith: '.mat-form-field-subscript-wrapper' },
  28. { replace: '.mat-input-suffix', replaceWith: '.mat-form-field-suffix' },
  29. { replace: '.mat-input-underline', replaceWith: '.mat-form-field-underline' },
  30. { replace: '.mat-input-wrapper', replaceWith: '.mat-form-field-wrapper' }
  31. ]
  32. },
  33. // TODO(devversion): this shouldn't be here because it's not a CSS selector. Move into misc
  34. // rule.
  35. {
  36. pr: 'https://github.com/angular/components/pull/10430',
  37. changes: [{
  38. replace: '$mat-font-family',
  39. replaceWith: 'Roboto, \'Helvetica Neue\', sans-serif',
  40. whitelist: { stylesheet: true }
  41. }]
  42. }
  43. ]
  44. };
  45. //# sourceMappingURL=css-selectors.js.map