property-names.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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.propertyNames = {
  12. [schematics_1.TargetVersion.V6]: [
  13. {
  14. pr: 'https://github.com/angular/components/pull/10163',
  15. changes: [
  16. { replace: 'change', replaceWith: 'selectionChange', whitelist: { classes: ['MatSelect'] } }, {
  17. replace: 'onOpen',
  18. replaceWith: 'openedChange.pipe(filter(isOpen => isOpen))',
  19. whitelist: { classes: ['MatSelect'] }
  20. },
  21. {
  22. replace: 'onClose',
  23. replaceWith: 'openedChange.pipe(filter(isOpen => !isOpen))',
  24. whitelist: { classes: ['MatSelect'] }
  25. }
  26. ]
  27. },
  28. {
  29. pr: 'https://github.com/angular/components/pull/10218',
  30. changes: [{
  31. replace: 'align',
  32. replaceWith: 'labelPosition',
  33. whitelist: { classes: ['MatRadioGroup', 'MatRadioButton'] }
  34. }]
  35. },
  36. {
  37. pr: 'https://github.com/angular/components/pull/10253',
  38. changes: [{
  39. replace: 'extraClasses',
  40. replaceWith: 'panelClass',
  41. whitelist: { classes: ['MatSnackBarConfig'] }
  42. }]
  43. },
  44. {
  45. pr: 'https://github.com/angular/components/pull/10279',
  46. changes: [
  47. {
  48. replace: 'align',
  49. replaceWith: 'position',
  50. whitelist: { classes: ['MatDrawer', 'MatSidenav'] }
  51. },
  52. {
  53. replace: 'onAlignChanged',
  54. replaceWith: 'onPositionChanged',
  55. whitelist: { classes: ['MatDrawer', 'MatSidenav'] }
  56. },
  57. {
  58. replace: 'onOpen',
  59. replaceWith: 'openedChange.pipe(filter(isOpen => isOpen))',
  60. whitelist: { classes: ['MatDrawer', 'MatSidenav'] }
  61. },
  62. {
  63. replace: 'onClose',
  64. replaceWith: 'openedChange.pipe(filter(isOpen => !isOpen))',
  65. whitelist: { classes: ['MatDrawer', 'MatSidenav'] }
  66. }
  67. ]
  68. },
  69. {
  70. pr: 'https://github.com/angular/components/pull/10293',
  71. changes: [{
  72. replace: 'shouldPlaceholderFloat',
  73. replaceWith: 'shouldLabelFloat',
  74. whitelist: { classes: ['MatFormFieldControl', 'MatSelect'] }
  75. }]
  76. },
  77. {
  78. pr: 'https://github.com/angular/components/pull/10294',
  79. changes: [
  80. { replace: 'dividerColor', replaceWith: 'color', whitelist: { classes: ['MatFormField'] } }, {
  81. replace: 'floatPlaceholder',
  82. replaceWith: 'floatLabel',
  83. whitelist: { classes: ['MatFormField'] }
  84. }
  85. ]
  86. },
  87. {
  88. pr: 'https://github.com/angular/components/pull/10309',
  89. changes: [
  90. {
  91. replace: 'selectChange',
  92. replaceWith: 'selectedTabChange',
  93. whitelist: { classes: ['MatTabGroup'] }
  94. },
  95. {
  96. replace: '_dynamicHeightDeprecated',
  97. replaceWith: 'dynamicHeight',
  98. whitelist: { classes: ['MatTabGroup'] }
  99. }
  100. ]
  101. },
  102. {
  103. pr: 'https://github.com/angular/components/pull/10311',
  104. changes: [
  105. { replace: 'destroy', replaceWith: 'destroyed', whitelist: { classes: ['MatChip'] } },
  106. { replace: 'onRemove', replaceWith: 'removed', whitelist: { classes: ['MatChip'] } }
  107. ]
  108. },
  109. {
  110. pr: 'https://github.com/angular/components/pull/10342',
  111. changes: [{ replace: 'align', replaceWith: 'labelPosition', whitelist: { classes: ['MatCheckbox'] } }]
  112. },
  113. {
  114. pr: 'https://github.com/angular/components/pull/10344',
  115. changes: [{
  116. replace: '_positionDeprecated',
  117. replaceWith: 'position',
  118. whitelist: { classes: ['MatTooltip'] }
  119. }]
  120. },
  121. {
  122. pr: 'https://github.com/angular/components/pull/10373',
  123. changes: [
  124. {
  125. replace: '_thumbLabelDeprecated',
  126. replaceWith: 'thumbLabel',
  127. whitelist: { classes: ['MatSlider'] }
  128. },
  129. {
  130. replace: '_tickIntervalDeprecated',
  131. replaceWith: 'tickInterval',
  132. whitelist: { classes: ['MatSlider'] }
  133. }
  134. ]
  135. },
  136. ]
  137. };
  138. //# sourceMappingURL=property-names.js.map