ng-zorro-antd-divider.mjs 5.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import * as i0 from '@angular/core';
  2. import { booleanAttribute, Input, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
  3. import * as i1 from 'ng-zorro-antd/core/outlet';
  4. import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
  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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  8. */
  9. class NzDividerComponent {
  10. nzText;
  11. nzType = 'horizontal';
  12. nzOrientation = 'center';
  13. nzVariant = 'solid';
  14. nzDashed = false;
  15. nzPlain = false;
  16. static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzDividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
  17. static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.2", type: NzDividerComponent, isStandalone: true, selector: "nz-divider", inputs: { nzText: "nzText", nzType: "nzType", nzOrientation: "nzOrientation", nzVariant: "nzVariant", nzDashed: ["nzDashed", "nzDashed", booleanAttribute], nzPlain: ["nzPlain", "nzPlain", booleanAttribute] }, host: { properties: { "class.ant-divider-horizontal": "nzType === 'horizontal'", "class.ant-divider-vertical": "nzType === 'vertical'", "class.ant-divider-with-text": "nzText", "class.ant-divider-plain": "nzPlain", "class.ant-divider-with-text-left": "nzText && nzOrientation === 'left'", "class.ant-divider-with-text-right": "nzText && nzOrientation === 'right'", "class.ant-divider-with-text-center": "nzText && nzOrientation === 'center'", "class.ant-divider-dashed": "nzDashed || nzVariant === 'dashed'", "class.ant-divider-dotted": "nzVariant === 'dotted'" }, classAttribute: "ant-divider" }, exportAs: ["nzDivider"], ngImport: i0, template: `
  18. @if (nzText) {
  19. <span class="ant-divider-inner-text">
  20. <ng-container *nzStringTemplateOutlet="nzText">{{ nzText }}</ng-container>
  21. </span>
  22. }
  23. `, isInline: true, dependencies: [{ kind: "ngmodule", type: NzOutletModule }, { kind: "directive", type: i1.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
  24. }
  25. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzDividerComponent, decorators: [{
  26. type: Component,
  27. args: [{
  28. selector: 'nz-divider',
  29. exportAs: 'nzDivider',
  30. preserveWhitespaces: false,
  31. encapsulation: ViewEncapsulation.None,
  32. changeDetection: ChangeDetectionStrategy.OnPush,
  33. template: `
  34. @if (nzText) {
  35. <span class="ant-divider-inner-text">
  36. <ng-container *nzStringTemplateOutlet="nzText">{{ nzText }}</ng-container>
  37. </span>
  38. }
  39. `,
  40. host: {
  41. class: 'ant-divider',
  42. '[class.ant-divider-horizontal]': `nzType === 'horizontal'`,
  43. '[class.ant-divider-vertical]': `nzType === 'vertical'`,
  44. '[class.ant-divider-with-text]': `nzText`,
  45. '[class.ant-divider-plain]': `nzPlain`,
  46. '[class.ant-divider-with-text-left]': `nzText && nzOrientation === 'left'`,
  47. '[class.ant-divider-with-text-right]': `nzText && nzOrientation === 'right'`,
  48. '[class.ant-divider-with-text-center]': `nzText && nzOrientation === 'center'`,
  49. '[class.ant-divider-dashed]': `nzDashed || nzVariant === 'dashed'`,
  50. '[class.ant-divider-dotted]': `nzVariant === 'dotted'`
  51. },
  52. imports: [NzOutletModule]
  53. }]
  54. }], propDecorators: { nzText: [{
  55. type: Input
  56. }], nzType: [{
  57. type: Input
  58. }], nzOrientation: [{
  59. type: Input
  60. }], nzVariant: [{
  61. type: Input
  62. }], nzDashed: [{
  63. type: Input,
  64. args: [{ transform: booleanAttribute }]
  65. }], nzPlain: [{
  66. type: Input,
  67. args: [{ transform: booleanAttribute }]
  68. }] } });
  69. /**
  70. * Use of this source code is governed by an MIT-style license that can be
  71. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  72. */
  73. class NzDividerModule {
  74. static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzDividerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
  75. static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: NzDividerModule, imports: [NzDividerComponent], exports: [NzDividerComponent] });
  76. static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzDividerModule, imports: [NzDividerComponent] });
  77. }
  78. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzDividerModule, decorators: [{
  79. type: NgModule,
  80. args: [{
  81. imports: [NzDividerComponent],
  82. exports: [NzDividerComponent]
  83. }]
  84. }] });
  85. /**
  86. * Use of this source code is governed by an MIT-style license that can be
  87. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  88. */
  89. /**
  90. * Generated bundle index. Do not edit.
  91. */
  92. export { NzDividerComponent, NzDividerModule };
  93. //# sourceMappingURL=ng-zorro-antd-divider.mjs.map