index.d.ts 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. import * as i0 from '@angular/core';
  2. import * as i2 from '@angular/material/core';
  3. import * as i3 from '@angular/common';
  4. import { InjectionToken } from '@angular/core';
  5. declare namespace i1 {
  6. export {
  7. MatCardAppearance,
  8. MatCardConfig,
  9. MAT_CARD_CONFIG,
  10. MatCard,
  11. MatCardTitle,
  12. MatCardTitleGroup,
  13. MatCardContent,
  14. MatCardSubtitle,
  15. MatCardActions,
  16. MatCardHeader,
  17. MatCardFooter,
  18. MatCardImage,
  19. MatCardSmImage,
  20. MatCardMdImage,
  21. MatCardLgImage,
  22. MatCardXlImage,
  23. MatCardAvatar
  24. }
  25. }
  26. /** Injection token that can be used to provide the default options the card module. */
  27. export declare const MAT_CARD_CONFIG: InjectionToken<MatCardConfig>;
  28. /**
  29. * Material Design card component. Cards contain content and actions about a single subject.
  30. * See https://material.io/design/components/cards.html
  31. *
  32. * MatCard provides no behaviors, instead serving as a purely visual treatment.
  33. */
  34. export declare class MatCard {
  35. appearance: MatCardAppearance;
  36. constructor(config?: MatCardConfig);
  37. static ɵfac: i0.ɵɵFactoryDeclaration<MatCard, [{ optional: true; }]>;
  38. static ɵcmp: i0.ɵɵComponentDeclaration<MatCard, "mat-card", ["matCard"], { "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, ["*"], false, never>;
  39. }
  40. /**
  41. * Bottom area of a card that contains action buttons, intended for use within `<mat-card>`.
  42. * This component is an optional convenience for use with other convenience elements, such as
  43. * `<mat-card-content>`; any custom action block element may be used in its place.
  44. *
  45. * MatCardActions provides no behaviors, instead serving as a purely visual treatment.
  46. */
  47. export declare class MatCardActions {
  48. /** Position of the actions inside the card. */
  49. align: 'start' | 'end';
  50. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardActions, never>;
  51. static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardActions, "mat-card-actions", ["matCardActions"], { "align": { "alias": "align"; "required": false; }; }, {}, never, never, false, never>;
  52. }
  53. export declare type MatCardAppearance = 'outlined' | 'raised';
  54. /**
  55. * Avatar image content for a card, intended for use within `<mat-card>`. Can be applied to
  56. * any media element, such as `<img>` or `<picture>`.
  57. *
  58. * This component is an optional convenience for use with other convenience elements, such as
  59. * `<mat-card-title>`; any custom media element may be used in its place.
  60. *
  61. * MatCardAvatar provides no behaviors, instead serving as a purely visual treatment.
  62. */
  63. export declare class MatCardAvatar {
  64. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardAvatar, never>;
  65. static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardAvatar, "[mat-card-avatar], [matCardAvatar]", never, {}, {}, never, never, false, never>;
  66. }
  67. /** Object that can be used to configure the default options for the card module. */
  68. export declare interface MatCardConfig {
  69. /** Default appearance for cards. */
  70. appearance?: MatCardAppearance;
  71. }
  72. /**
  73. * Content of a card, intended for use within `<mat-card>`. This component is an optional
  74. * convenience for use with other convenience elements, such as `<mat-card-title>`; any custom
  75. * content block element may be used in its place.
  76. *
  77. * MatCardContent provides no behaviors, instead serving as a purely visual treatment.
  78. */
  79. export declare class MatCardContent {
  80. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardContent, never>;
  81. static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardContent, "mat-card-content", never, {}, {}, never, never, false, never>;
  82. }
  83. /**
  84. * Footer area a card, intended for use within `<mat-card>`.
  85. * This component is an optional convenience for use with other convenience elements, such as
  86. * `<mat-card-content>`; any custom footer block element may be used in its place.
  87. *
  88. * MatCardFooter provides no behaviors, instead serving as a purely visual treatment.
  89. */
  90. export declare class MatCardFooter {
  91. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardFooter, never>;
  92. static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardFooter, "mat-card-footer", never, {}, {}, never, never, false, never>;
  93. }
  94. /**
  95. * Header region of a card, intended for use within `<mat-card>`. This header captures
  96. * a card title, subtitle, and avatar. This component is an optional convenience for use with
  97. * other convenience elements, such as `<mat-card-footer>`; any custom header block element may be
  98. * used in its place.
  99. *
  100. * MatCardHeader provides no behaviors, instead serving as a purely visual treatment.
  101. */
  102. export declare class MatCardHeader {
  103. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardHeader, never>;
  104. static ɵcmp: i0.ɵɵComponentDeclaration<MatCardHeader, "mat-card-header", never, {}, {}, never, ["[mat-card-avatar], [matCardAvatar]", "mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "*"], false, never>;
  105. }
  106. /**
  107. * Primary image content for a card, intended for use within `<mat-card>`. Can be applied to
  108. * any media element, such as `<img>` or `<picture>`.
  109. *
  110. * This component is an optional convenience for use with other convenience elements, such as
  111. * `<mat-card-content>`; any custom media element may be used in its place.
  112. *
  113. * MatCardImage provides no behaviors, instead serving as a purely visual treatment.
  114. */
  115. export declare class MatCardImage {
  116. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardImage, never>;
  117. static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardImage, "[mat-card-image], [matCardImage]", never, {}, {}, never, never, false, never>;
  118. }
  119. /** Same as `MatCardImage`, but large. */
  120. export declare class MatCardLgImage {
  121. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardLgImage, never>;
  122. static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardLgImage, "[mat-card-lg-image], [matCardImageLarge]", never, {}, {}, never, never, false, never>;
  123. }
  124. /** Same as `MatCardImage`, but medium. */
  125. export declare class MatCardMdImage {
  126. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardMdImage, never>;
  127. static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardMdImage, "[mat-card-md-image], [matCardImageMedium]", never, {}, {}, never, never, false, never>;
  128. }
  129. export declare class MatCardModule {
  130. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardModule, never>;
  131. static ɵmod: i0.ɵɵNgModuleDeclaration<MatCardModule, [typeof i1.MatCard, typeof i1.MatCardActions, typeof i1.MatCardAvatar, typeof i1.MatCardContent, typeof i1.MatCardFooter, typeof i1.MatCardHeader, typeof i1.MatCardImage, typeof i1.MatCardLgImage, typeof i1.MatCardMdImage, typeof i1.MatCardSmImage, typeof i1.MatCardSubtitle, typeof i1.MatCardTitle, typeof i1.MatCardTitleGroup, typeof i1.MatCardXlImage], [typeof i2.MatCommonModule, typeof i3.CommonModule], [typeof i1.MatCard, typeof i1.MatCardActions, typeof i1.MatCardAvatar, typeof i1.MatCardContent, typeof i1.MatCardFooter, typeof i1.MatCardHeader, typeof i1.MatCardImage, typeof i1.MatCardLgImage, typeof i1.MatCardMdImage, typeof i1.MatCardSmImage, typeof i1.MatCardSubtitle, typeof i1.MatCardTitle, typeof i1.MatCardTitleGroup, typeof i1.MatCardXlImage, typeof i2.MatCommonModule]>;
  132. static ɵinj: i0.ɵɵInjectorDeclaration<MatCardModule>;
  133. }
  134. /** Same as `MatCardImage`, but small. */
  135. export declare class MatCardSmImage {
  136. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardSmImage, never>;
  137. static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSmImage, "[mat-card-sm-image], [matCardImageSmall]", never, {}, {}, never, never, false, never>;
  138. }
  139. /**
  140. * Sub-title of a card, intended for use within `<mat-card>` beneath a `<mat-card-title>`. This
  141. * component is an optional convenience for use with other convenience elements, such as
  142. * `<mat-card-title>`.
  143. *
  144. * MatCardSubtitle provides no behaviors, instead serving as a purely visual treatment.
  145. */
  146. export declare class MatCardSubtitle {
  147. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardSubtitle, never>;
  148. static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSubtitle, "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]", never, {}, {}, never, never, false, never>;
  149. }
  150. /**
  151. * Title of a card, intended for use within `<mat-card>`. This component is an optional
  152. * convenience for one variety of card title; any custom title element may be used in its place.
  153. *
  154. * MatCardTitle provides no behaviors, instead serving as a purely visual treatment.
  155. */
  156. export declare class MatCardTitle {
  157. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardTitle, never>;
  158. static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardTitle, "mat-card-title, [mat-card-title], [matCardTitle]", never, {}, {}, never, never, false, never>;
  159. }
  160. /**
  161. * Container intended to be used within the `<mat-card>` component. Can contain exactly one
  162. * `<mat-card-title>`, one `<mat-card-subtitle>` and one content image of any size
  163. * (e.g. `<img matCardLgImage>`).
  164. */
  165. export declare class MatCardTitleGroup {
  166. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardTitleGroup, never>;
  167. static ɵcmp: i0.ɵɵComponentDeclaration<MatCardTitleGroup, "mat-card-title-group", never, {}, {}, never, ["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]", "*"], false, never>;
  168. }
  169. /** Same as `MatCardImage`, but extra-large. */
  170. export declare class MatCardXlImage {
  171. static ɵfac: i0.ɵɵFactoryDeclaration<MatCardXlImage, never>;
  172. static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardXlImage, "[mat-card-xl-image], [matCardImageXLarge]", never, {}, {}, never, never, false, never>;
  173. }
  174. export { }