index.d.ts 9.2 KB

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