@kris701/ez-ui 1.3.18 → 1.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -378,6 +378,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
378
378
 
379
379
  class EzUIDialog {
380
380
  layoutService;
381
+ header;
381
382
  content;
382
383
  size = 'm';
383
384
  title = '';
@@ -393,11 +394,16 @@ class EzUIDialog {
393
394
  this.layoutService = layoutService;
394
395
  }
395
396
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUIDialog, deps: [{ token: EzUILayoutService }], target: i0.ɵɵFactoryTarget.Component });
396
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUIDialog, isStandalone: true, selector: "ezui-dialog", inputs: { size: "size", title: "title", isLoading: "isLoading", showDialog: "showDialog", showSave: "showSave", showDelete: "showDelete" }, outputs: { onSaveItem: "onSaveItem", onDeleteItem: "onDeleteItem" }, queries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: `
397
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUIDialog, isStandalone: true, selector: "ezui-dialog", inputs: { size: "size", title: "title", isLoading: "isLoading", showDialog: "showDialog", showSave: "showSave", showDelete: "showDelete" }, outputs: { onSaveItem: "onSaveItem", onDeleteItem: "onDeleteItem" }, queries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: `
397
398
  <ng-template let-id="id" [tuiDialogOptions]="{size: size, appearance: layoutService.isDesktop() ? 'taiga compact' : 'fullscreen'}" [(tuiDialog)]="showDialog">
398
399
  <header tuiHeader>
399
400
  <hgroup tuiTitle>
401
+ @if(header){
402
+ <ng-container [ngTemplateOutlet]="header"></ng-container>
403
+ }
404
+ @else {
400
405
  <h2 [id]="id">{{title}}</h2>
406
+ }
401
407
  </hgroup>
402
408
  </header>
403
409
 
@@ -432,7 +438,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
432
438
  <ng-template let-id="id" [tuiDialogOptions]="{size: size, appearance: layoutService.isDesktop() ? 'taiga compact' : 'fullscreen'}" [(tuiDialog)]="showDialog">
433
439
  <header tuiHeader>
434
440
  <hgroup tuiTitle>
441
+ @if(header){
442
+ <ng-container [ngTemplateOutlet]="header"></ng-container>
443
+ }
444
+ @else {
435
445
  <h2 [id]="id">{{title}}</h2>
446
+ }
436
447
  </hgroup>
437
448
  </header>
438
449
 
@@ -452,7 +463,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
452
463
  }
453
464
  </ng-template>
454
465
  `, styles: [".dialog-footer{display:flex!important;flex-direction:row!important;gap:5px!important;margin-top:auto!important;margin-block-start:auto!important}\n"] }]
455
- }], ctorParameters: () => [{ type: EzUILayoutService }], propDecorators: { content: [{
466
+ }], ctorParameters: () => [{ type: EzUILayoutService }], propDecorators: { header: [{
467
+ type: ContentChild,
468
+ args: ['header', { static: false }]
469
+ }], content: [{
456
470
  type: ContentChild,
457
471
  args: ['content', { static: false }]
458
472
  }], size: [{