-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds a new multi select type. * Updates dependencies. * Changes link on documentation. Co-Authored-by: Bertrand Zuchuat <[email protected]>
- Loading branch information
1 parent
0ede8c8
commit 9ae6721
Showing
15 changed files
with
527 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
projects/rero/ng-core/src/lib/record/editor/type/multi-select/multi-select.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!-- | ||
RERO angular core | ||
Copyright (C) 2021-2024 RERO | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published by | ||
the Free Software Foundation, version 3 of the License. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
--> | ||
|
||
<p-multiSelect | ||
[disabled]="props.disabled" | ||
[display]="props.display" | ||
[filter]="props.filter" | ||
[filterPlaceHolder]="props.filterPlaceHolder" | ||
[group]="isGroup" | ||
[options]="optionsList" | ||
[placeholder]="props.placeholder" | ||
[readonly]="props.readonly" | ||
[resetFilterOnHide]="props.resetFilterOnHide" | ||
[showClear]="props.showClear" | ||
[showHeader]="props.showHeader" | ||
[scrollHeight]="props.scrollHeight" | ||
[styleClass]="props.styleClass" | ||
[class]="invalidClass" | ||
[(ngModel)]="model" | ||
> | ||
@if (isGroup) { | ||
<ng-template let-group pTemplate="group"> | ||
<div class="flex align-items-center"> | ||
<span>{{ group.label }}</span> | ||
</div> | ||
</ng-template> | ||
} | ||
</p-multiSelect> | ||
@if (showError && formControl.errors) { | ||
<div class="p-error mt-2" role="alert"> | ||
<formly-validation-message [field]="field"></formly-validation-message> | ||
</div> | ||
} |
Oops, something went wrong.