Skip to content

Commit

Permalink
fix: picklist templates
Browse files Browse the repository at this point in the history
  • Loading branch information
DaSchTour committed Jan 16, 2025
1 parent dd543a8 commit 7e6fbe0
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions packages/primeng/src/picklist/picklist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ import { PickListStyle } from './style/pickliststyle';
<ng-template *ngTemplateOutlet="moveBottomIconTemplate || _moveBottomIconTemplate"></ng-template>
</button>
</div>
<div class="p-picklist-list-container p-picklist-source-list-container" [attr.data-pc-section]="'sourceWrapper'" [attr.data-pc-group-section]="'listWrapper'">
<p-header class="p-picklist-list-container p-picklist-source-list-container" [attr.data-pc-section]="'sourceWrapper'" [attr.data-pc-group-section]="'listWrapper'">
<p-listbox
#sourcelist
[multiple]="true"
Expand Down Expand Up @@ -151,14 +151,21 @@ import { PickListStyle } from './style/pickliststyle';
<ng-container *ngIf="sourceFilterIconTemplate || _sourceFilterIconTemplate">
<ng-container *ngTemplateOutlet="sourceFilterIconTemplate || _sourceFilterIconTemplate"></ng-container>
</ng-container>
<div class="p-picklist-title" *ngIf="!sourceHeaderTemplate && !_sourceHeaderTemplate">{{ sourceHeader }}</div>
<p-header class="p-picklist-title" *ngIf="!sourceHeaderTemplate && !_sourceHeaderTemplate">{{ sourceHeader }}</p-header>
<ng-container *ngIf="itemTemplate || _itemTemplate">
<ng-template #item let-item let-index="index" let-selected="selected">
<ng-container *ngTemplateOutlet="itemTemplate || _itemTemplate; context: { $implicit: item, index: index, selected: selected }"></ng-container>
</ng-template>
</ng-container>
<ng-container *ngIf="emptyFilterMessageSourceTemplate || _emptyFilterMessageSourceTemplate || emptyMessageSourceTemplate || _emptyMessageSourceTemplate">
<ng-container *ngTemplateOutlet="emptyFilterMessageSourceTemplate || _emptyFilterMessageSourceTemplate || emptyMessageSourceTemplate || _emptyMessageSourceTemplate"></ng-container>
<ng-container *ngIf="emptyMessageSourceTemplate || _emptyMessageSourceTemplate">
<ng-template #empty>
<ng-container *ngTemplateOutlet="emptyMessageSourceTemplate || _emptyMessageSourceTemplate"></ng-container>
</ng-template>
</ng-container>
<ng-container *ngIf="emptyFilterMessageSourceTemplate || _emptyFilterMessageSourceTemplate">
<ng-template #emptyfilter>
<ng-container *ngTemplateOutlet="emptyFilterMessageSourceTemplate || _emptyFilterMessageSourceTemplate"></ng-container>
</ng-template>
</ng-container>
</p-listbox>
</div>
Expand Down Expand Up @@ -271,14 +278,21 @@ import { PickListStyle } from './style/pickliststyle';
<ng-container *ngIf="targetFilterIconTemplate || _targetFilterIconTemplate">
<ng-container *ngTemplateOutlet="targetFilterIconTemplate || _targetFilterIconTemplate"></ng-container>
</ng-container>
<div class="p-picklist-title" *ngIf="!targetHeaderTemplate && !_targetHeaderTemplate">{{ targetHeader }}</div>
<p-header class="p-picklist-title" *ngIf="!targetHeaderTemplate && !_targetHeaderTemplate">{{ targetHeader }}</p-header>
<ng-container *ngIf="itemTemplate || _itemTemplate">
<ng-template #item let-item let-index="index" let-selected="selected">
<ng-container *ngTemplateOutlet="itemTemplate || _itemTemplate; context: { $implicit: item, index: index, selected: selected }"></ng-container>
</ng-template>
</ng-container>
<ng-container *ngIf="emptyFilterMessageTargetTemplate || _emptyFilterMessageTargetTemplate || emptyMessageTargetTemplate || _emptyMessageTargetTemplate">
<ng-container *ngTemplateOutlet="emptyFilterMessageTargetTemplate || _emptyFilterMessageTargetTemplate || emptyMessageTargetTemplate || _emptyMessageTargetTemplate"></ng-container>
<ng-container *ngIf="emptyMessageTargetTemplate || _emptyMessageTargetTemplate">
<ng-template #empty>
<ng-container *ngTemplateOutlet="emptyMessageTargetTemplate || _emptyMessageTargetTemplate"></ng-container>
</ng-template>
</ng-container>
<ng-container *ngIf="emptyFilterMessageTargetTemplate || _emptyFilterMessageTargetTemplate">
<ng-template #emptyfilter>
<ng-container *ngTemplateOutlet="emptyFilterMessageTargetTemplate || _emptyFilterMessageTargetTemplate"></ng-container>
</ng-template>
</ng-container>
</p-listbox>
</div>
Expand Down

0 comments on commit 7e6fbe0

Please sign in to comment.