@exhaustive-ui/core 3.0.0-alpha.1 → 22.0.0-alpha.0
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.
- package/fesm2022/exhaustive-ui-core-api.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +432 -376
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +240 -206
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +79 -71
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +109 -97
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +301 -323
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +943 -793
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +167 -127
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +485 -401
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +303 -259
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +6 -6
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +421 -333
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +426 -346
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +391 -337
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +337 -293
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +315 -325
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +11 -7
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/package.json +11 -11
- package/schematics/migrations.json +5 -5
- package/schematics/utils/versions.json +8 -8
|
@@ -1838,66 +1838,93 @@ class MultiSelect extends BaseEditableHolder {
|
|
|
1838
1838
|
[tooltipStyleClass]="tooltipStyleClass()"
|
|
1839
1839
|
>
|
|
1840
1840
|
<div [pBind]="ptm('label')" [class]="cx('label')" [attr.data-p]="labelDataP()">
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1841
|
+
@if (!selectedItemsTemplate() && !_selectedItemsTemplate()) {
|
|
1842
|
+
@if (display() === 'comma') {
|
|
1843
|
+
<ng-container>{{ label() || 'empty' }}</ng-container>
|
|
1844
|
+
}
|
|
1845
|
+
@if (display() === 'chip') {
|
|
1844
1846
|
@if (chipSelectedItems() && chipSelectedItems().length === maxSelectedLabels()) {
|
|
1845
1847
|
{{ getSelectedItemsLabel() }}
|
|
1846
1848
|
} @else {
|
|
1847
|
-
|
|
1848
|
-
<
|
|
1849
|
-
<
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1849
|
+
@for (item of chipSelectedItems(); track $index; let i = $index) {
|
|
1850
|
+
<div #token [pBind]="ptm('chipItem')" [class]="cx('chipItem')">
|
|
1851
|
+
<p-chip
|
|
1852
|
+
[pt]="ptm('pcChip')"
|
|
1853
|
+
[unstyled]="unstyled()"
|
|
1854
|
+
[class]="cx('pcChip')"
|
|
1855
|
+
[label]="getLabelByValue(item)"
|
|
1856
|
+
[removable]="!$disabled() && !readonly()"
|
|
1857
|
+
(onRemove)="removeOption(item, $event)"
|
|
1858
|
+
[removeIcon]="chipIcon()"
|
|
1859
|
+
>
|
|
1860
|
+
@if (chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate()) {
|
|
1861
|
+
<ng-template #removeicon>
|
|
1862
|
+
@if (!$disabled() && !readonly()) {
|
|
1863
|
+
@if (chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate()) {
|
|
1864
|
+
<span [class]="cx('chipIcon')" (click)="removeOption(item, $event)" [attr.aria-hidden]="true" [pBind]="ptm('chipIcon')">
|
|
1865
|
+
<ng-container
|
|
1866
|
+
*ngTemplateOutlet="chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate(); context: { class: 'p-multiselect-chip-icon' }"
|
|
1867
|
+
></ng-container>
|
|
1868
|
+
</span>
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
</ng-template>
|
|
1872
|
+
}
|
|
1873
|
+
</p-chip>
|
|
1874
|
+
</div>
|
|
1875
|
+
}
|
|
1866
1876
|
}
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1877
|
+
@if (!modelValue() || modelValue().length === 0) {
|
|
1878
|
+
<ng-container>{{ placeholder() || 'empty' }}</ng-container>
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
@if (selectedItemsTemplate() || _selectedItemsTemplate()) {
|
|
1871
1883
|
<ng-container *ngTemplateOutlet="selectedItemsTemplate() || _selectedItemsTemplate(); context: { $implicit: selectedOptions(), removeChip: removeOption.bind(this) }"></ng-container>
|
|
1872
|
-
|
|
1873
|
-
|
|
1884
|
+
@if (!modelValue() || modelValue().length === 0) {
|
|
1885
|
+
<ng-container>{{ placeholder() || 'empty' }}</ng-container>
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1874
1888
|
</div>
|
|
1875
1889
|
</div>
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1890
|
+
@if (isVisibleClearIcon()) {
|
|
1891
|
+
@if (!clearIconTemplate() && !_clearIconTemplate()) {
|
|
1892
|
+
<svg data-p-icon="times" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true" />
|
|
1893
|
+
}
|
|
1894
|
+
@if (clearIconTemplate() || _clearIconTemplate()) {
|
|
1895
|
+
<span [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true">
|
|
1896
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate()"></ng-template>
|
|
1897
|
+
</span>
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1882
1900
|
<div [pBind]="ptm('dropdown')" [class]="cx('dropdown')">
|
|
1883
|
-
|
|
1884
|
-
|
|
1901
|
+
@if (loading()) {
|
|
1902
|
+
@if (loadingIconTemplate() || _loadingIconTemplate()) {
|
|
1885
1903
|
<ng-container *ngTemplateOutlet="loadingIconTemplate() || _loadingIconTemplate()"></ng-container>
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1904
|
+
}
|
|
1905
|
+
@if (!loadingIconTemplate() && !_loadingIconTemplate()) {
|
|
1906
|
+
@if (loadingIcon()) {
|
|
1907
|
+
<span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())" [attr.aria-hidden]="true"></span>
|
|
1908
|
+
}
|
|
1909
|
+
@if (!loadingIcon()) {
|
|
1910
|
+
<span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [attr.aria-hidden]="true"></span>
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
} @else {
|
|
1914
|
+
@if (!dropdownIconTemplate() && !_dropdownIconTemplate()) {
|
|
1915
|
+
@if (dropdownIcon()) {
|
|
1916
|
+
<span [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [ngClass]="dropdownIcon()" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP()"></span>
|
|
1917
|
+
}
|
|
1918
|
+
@if (!dropdownIcon()) {
|
|
1919
|
+
<svg data-p-icon="chevron-down" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP()" />
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
@if (dropdownIconTemplate() || _dropdownIconTemplate()) {
|
|
1923
|
+
<span [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true">
|
|
1924
|
+
<ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { dataP: dropdownIconDataP() }"></ng-template>
|
|
1925
|
+
</span>
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1901
1928
|
</div>
|
|
1902
1929
|
<p-overlay
|
|
1903
1930
|
#overlay
|
|
@@ -1927,111 +1954,122 @@ class MultiSelect extends BaseEditableHolder {
|
|
|
1927
1954
|
>
|
|
1928
1955
|
</span>
|
|
1929
1956
|
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
|
|
1930
|
-
|
|
1931
|
-
<
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
*ngTemplateOutlet="
|
|
1953
|
-
headerCheckboxIconTemplate() || _headerCheckboxIconTemplate();
|
|
1954
|
-
context: {
|
|
1955
|
-
checked: allSelected(),
|
|
1956
|
-
partialSelected: partialSelected(),
|
|
1957
|
-
class: klass
|
|
1957
|
+
@if (showHeader()) {
|
|
1958
|
+
<div [pBind]="ptm('header')" [class]="cx('header')">
|
|
1959
|
+
<ng-content select="p-header"></ng-content>
|
|
1960
|
+
@if (filterTemplate() || _filterTemplate()) {
|
|
1961
|
+
<ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
|
|
1962
|
+
} @else {
|
|
1963
|
+
@if (showToggleAll() && !selectionLimit()) {
|
|
1964
|
+
<p-checkbox
|
|
1965
|
+
[pt]="getHeaderCheckboxPTOptions('pcHeaderCheckbox')"
|
|
1966
|
+
[ngModel]="allSelected()"
|
|
1967
|
+
[ngModelOptions]="{ standalone: true }"
|
|
1968
|
+
[ariaLabel]="toggleAllAriaLabel()"
|
|
1969
|
+
[binary]="true"
|
|
1970
|
+
(onChange)="onToggleAll($event)"
|
|
1971
|
+
[variant]="$variant()"
|
|
1972
|
+
[disabled]="$disabled()"
|
|
1973
|
+
[unstyled]="unstyled()"
|
|
1974
|
+
#headerCheckbox
|
|
1975
|
+
>
|
|
1976
|
+
<ng-template #icon let-klass="class">
|
|
1977
|
+
@if (!headerCheckboxIconTemplate() && !_headerCheckboxIconTemplate() && allSelected()) {
|
|
1978
|
+
<svg data-p-icon="check" [class]="klass" [pBind]="getHeaderCheckboxPTOptions('pcHeaderCheckbox.icon')" />
|
|
1958
1979
|
}
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1980
|
+
<ng-template
|
|
1981
|
+
*ngTemplateOutlet="
|
|
1982
|
+
headerCheckboxIconTemplate() || _headerCheckboxIconTemplate();
|
|
1983
|
+
context: {
|
|
1984
|
+
checked: allSelected(),
|
|
1985
|
+
partialSelected: partialSelected(),
|
|
1986
|
+
class: klass
|
|
1987
|
+
}
|
|
1988
|
+
"
|
|
1989
|
+
></ng-template>
|
|
1990
|
+
</ng-template>
|
|
1991
|
+
</p-checkbox>
|
|
1992
|
+
}
|
|
1963
1993
|
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1994
|
+
@if (filter()) {
|
|
1995
|
+
<p-iconfield [pt]="ptm('pcFilterContainer')" [class]="cx('pcFilterContainer')" [unstyled]="unstyled()">
|
|
1996
|
+
<input
|
|
1997
|
+
#filterInput
|
|
1998
|
+
pInputText
|
|
1999
|
+
[pt]="ptm('pcFilter')"
|
|
2000
|
+
[variant]="$variant()"
|
|
2001
|
+
type="text"
|
|
2002
|
+
[attr.autocomplete]="autocomplete()"
|
|
2003
|
+
role="searchbox"
|
|
2004
|
+
[attr.aria-owns]="_id() + '_list'"
|
|
2005
|
+
[attr.aria-activedescendant]="focusedOptionId()"
|
|
2006
|
+
[value]="_filterValue() || ''"
|
|
2007
|
+
(input)="onFilterInputChange($event)"
|
|
2008
|
+
(keydown)="onFilterKeyDown($event)"
|
|
2009
|
+
(click)="onInputClick($event)"
|
|
2010
|
+
(blur)="onFilterBlur($event)"
|
|
2011
|
+
[class]="cx('pcFilter')"
|
|
2012
|
+
[attr.disabled]="$disabled() ? '' : undefined"
|
|
2013
|
+
[attr.placeholder]="filterPlaceHolder()"
|
|
2014
|
+
[attr.aria-label]="ariaFilterLabel()"
|
|
2015
|
+
[unstyled]="unstyled()"
|
|
2016
|
+
/>
|
|
2017
|
+
<p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
|
|
2018
|
+
@if (!filterIconTemplate() && !_filterIconTemplate()) {
|
|
2019
|
+
<svg data-p-icon="search" [pBind]="ptm('filterIcon')" />
|
|
2020
|
+
}
|
|
2021
|
+
@if (filterIconTemplate() || _filterIconTemplate()) {
|
|
2022
|
+
<span [pBind]="ptm('filterIcon')" class="p-multiselect-filter-icon">
|
|
2023
|
+
<ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
|
|
2024
|
+
</span>
|
|
2025
|
+
}
|
|
2026
|
+
</p-inputicon>
|
|
2027
|
+
</p-iconfield>
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
</div>
|
|
2031
|
+
}
|
|
1995
2032
|
<div [pBind]="ptm('listContainer')" [class]="cx('listContainer')" [style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'">
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
</ng-template>
|
|
2011
|
-
<ng-container *ngIf="loaderTemplate() || _loaderTemplate()">
|
|
2012
|
-
<ng-template #loader let-scrollerOptions="options">
|
|
2013
|
-
<ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
|
|
2033
|
+
@if (virtualScroll()) {
|
|
2034
|
+
<p-scroller
|
|
2035
|
+
#scroller
|
|
2036
|
+
[items]="visibleOptions()"
|
|
2037
|
+
[style]="{ height: scrollHeight() }"
|
|
2038
|
+
[itemSize]="virtualScrollItemSize()"
|
|
2039
|
+
[autoSize]="true"
|
|
2040
|
+
[tabindex]="-1"
|
|
2041
|
+
[lazy]="lazy()"
|
|
2042
|
+
(onLazyLoad)="onLazyLoad.emit($event)"
|
|
2043
|
+
[options]="virtualScrollOptions()"
|
|
2044
|
+
>
|
|
2045
|
+
<ng-template #content let-items let-scrollerOptions="options">
|
|
2046
|
+
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
|
2014
2047
|
</ng-template>
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2048
|
+
@if (loaderTemplate() || _loaderTemplate()) {
|
|
2049
|
+
<ng-template #loader let-scrollerOptions="options">
|
|
2050
|
+
<ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
|
|
2051
|
+
</ng-template>
|
|
2052
|
+
}
|
|
2053
|
+
</p-scroller>
|
|
2054
|
+
}
|
|
2055
|
+
@if (!virtualScroll()) {
|
|
2018
2056
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
|
|
2019
|
-
|
|
2057
|
+
}
|
|
2020
2058
|
|
|
2021
2059
|
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
|
2022
2060
|
<ul #items [pBind]="ptm('list')" [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" aria-multiselectable="true" [attr.aria-label]="listLabel()">
|
|
2023
|
-
|
|
2024
|
-
|
|
2061
|
+
@for (option of items; track $index; let i = $index) {
|
|
2062
|
+
@if (isOptionGroup(option)) {
|
|
2025
2063
|
<li [pBind]="ptm('optionGroup')" [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)" [class]="cx('optionGroup')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
[ngTemplateOutletContext]="{ $implicit: option.optionGroup }"
|
|
2031
|
-
|
|
2064
|
+
@if (!groupTemplate() && !_groupTemplate() && option.optionGroup) {
|
|
2065
|
+
<span>{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
|
2066
|
+
}
|
|
2067
|
+
@if (option.optionGroup && (groupTemplate() || _groupTemplate())) {
|
|
2068
|
+
<ng-container [ngTemplateOutlet]="groupTemplate() || _groupTemplate()" [ngTemplateOutletContext]="{ $implicit: option.optionGroup }"></ng-container>
|
|
2069
|
+
}
|
|
2032
2070
|
</li>
|
|
2033
|
-
|
|
2034
|
-
|
|
2071
|
+
}
|
|
2072
|
+
@if (!isOptionGroup(option)) {
|
|
2035
2073
|
<li
|
|
2036
2074
|
pMultiSelectItem
|
|
2037
2075
|
pRipple
|
|
@@ -2054,30 +2092,36 @@ class MultiSelect extends BaseEditableHolder {
|
|
|
2054
2092
|
[pt]="pt()"
|
|
2055
2093
|
[unstyled]="unstyled()"
|
|
2056
2094
|
></li>
|
|
2057
|
-
</ng-container>
|
|
2058
|
-
</ng-template>
|
|
2059
|
-
|
|
2060
|
-
<li *ngIf="hasFilter() && isEmpty()" [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
|
2061
|
-
@if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate() && !_emptyTemplate()) {
|
|
2062
|
-
{{ emptyFilterMessageLabel() }}
|
|
2063
|
-
} @else {
|
|
2064
|
-
<ng-container *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
2065
|
-
}
|
|
2066
|
-
</li>
|
|
2067
|
-
<li *ngIf="!hasFilter() && isEmpty()" [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
|
2068
|
-
@if (!emptyTemplate() && !_emptyTemplate()) {
|
|
2069
|
-
{{ emptyMessageLabel() }}
|
|
2070
|
-
} @else {
|
|
2071
|
-
<ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
2072
2095
|
}
|
|
2073
|
-
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
@if (hasFilter() && isEmpty()) {
|
|
2099
|
+
<li [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
|
2100
|
+
@if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate() && !_emptyTemplate()) {
|
|
2101
|
+
{{ emptyFilterMessageLabel() }}
|
|
2102
|
+
} @else {
|
|
2103
|
+
<ng-container *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
2104
|
+
}
|
|
2105
|
+
</li>
|
|
2106
|
+
}
|
|
2107
|
+
@if (!hasFilter() && isEmpty()) {
|
|
2108
|
+
<li [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
|
2109
|
+
@if (!emptyTemplate() && !_emptyTemplate()) {
|
|
2110
|
+
{{ emptyMessageLabel() }}
|
|
2111
|
+
} @else {
|
|
2112
|
+
<ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
2113
|
+
}
|
|
2114
|
+
</li>
|
|
2115
|
+
}
|
|
2074
2116
|
</ul>
|
|
2075
2117
|
</ng-template>
|
|
2076
2118
|
</div>
|
|
2077
|
-
|
|
2078
|
-
<
|
|
2079
|
-
|
|
2080
|
-
|
|
2119
|
+
@if (footerFacet() || footerTemplate() || _footerTemplate()) {
|
|
2120
|
+
<div>
|
|
2121
|
+
<ng-content select="p-footer"></ng-content>
|
|
2122
|
+
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
|
|
2123
|
+
</div>
|
|
2124
|
+
}
|
|
2081
2125
|
|
|
2082
2126
|
<span
|
|
2083
2127
|
#lastHiddenFocusableEl
|
|
@@ -2092,7 +2136,7 @@ class MultiSelect extends BaseEditableHolder {
|
|
|
2092
2136
|
</div>
|
|
2093
2137
|
</ng-template>
|
|
2094
2138
|
</p-overlay>
|
|
2095
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.
|
|
2139
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: MultiSelectItem, selector: "li[pMultiSelectItem]", inputs: ["option", "selected", "label", "disabled", "itemSize", "focused", "ariaPosInset", "ariaSetSize", "variant", "template", "itemCheckboxIconTemplate", "highlightOnSelect"], outputs: ["onClick", "onMouseEnter"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["hostName", "visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "listener", "responsive", "options", "appendTo", "inline", "motionOptions", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["hostName", "id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i3.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2096
2140
|
}
|
|
2097
2141
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MultiSelect, decorators: [{
|
|
2098
2142
|
type: Component,
|
|
@@ -2142,66 +2186,93 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
2142
2186
|
[tooltipStyleClass]="tooltipStyleClass()"
|
|
2143
2187
|
>
|
|
2144
2188
|
<div [pBind]="ptm('label')" [class]="cx('label')" [attr.data-p]="labelDataP()">
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2189
|
+
@if (!selectedItemsTemplate() && !_selectedItemsTemplate()) {
|
|
2190
|
+
@if (display() === 'comma') {
|
|
2191
|
+
<ng-container>{{ label() || 'empty' }}</ng-container>
|
|
2192
|
+
}
|
|
2193
|
+
@if (display() === 'chip') {
|
|
2148
2194
|
@if (chipSelectedItems() && chipSelectedItems().length === maxSelectedLabels()) {
|
|
2149
2195
|
{{ getSelectedItemsLabel() }}
|
|
2150
2196
|
} @else {
|
|
2151
|
-
|
|
2152
|
-
<
|
|
2153
|
-
<
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2197
|
+
@for (item of chipSelectedItems(); track $index; let i = $index) {
|
|
2198
|
+
<div #token [pBind]="ptm('chipItem')" [class]="cx('chipItem')">
|
|
2199
|
+
<p-chip
|
|
2200
|
+
[pt]="ptm('pcChip')"
|
|
2201
|
+
[unstyled]="unstyled()"
|
|
2202
|
+
[class]="cx('pcChip')"
|
|
2203
|
+
[label]="getLabelByValue(item)"
|
|
2204
|
+
[removable]="!$disabled() && !readonly()"
|
|
2205
|
+
(onRemove)="removeOption(item, $event)"
|
|
2206
|
+
[removeIcon]="chipIcon()"
|
|
2207
|
+
>
|
|
2208
|
+
@if (chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate()) {
|
|
2209
|
+
<ng-template #removeicon>
|
|
2210
|
+
@if (!$disabled() && !readonly()) {
|
|
2211
|
+
@if (chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate()) {
|
|
2212
|
+
<span [class]="cx('chipIcon')" (click)="removeOption(item, $event)" [attr.aria-hidden]="true" [pBind]="ptm('chipIcon')">
|
|
2213
|
+
<ng-container
|
|
2214
|
+
*ngTemplateOutlet="chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate(); context: { class: 'p-multiselect-chip-icon' }"
|
|
2215
|
+
></ng-container>
|
|
2216
|
+
</span>
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
</ng-template>
|
|
2220
|
+
}
|
|
2221
|
+
</p-chip>
|
|
2222
|
+
</div>
|
|
2223
|
+
}
|
|
2170
2224
|
}
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2225
|
+
@if (!modelValue() || modelValue().length === 0) {
|
|
2226
|
+
<ng-container>{{ placeholder() || 'empty' }}</ng-container>
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
@if (selectedItemsTemplate() || _selectedItemsTemplate()) {
|
|
2175
2231
|
<ng-container *ngTemplateOutlet="selectedItemsTemplate() || _selectedItemsTemplate(); context: { $implicit: selectedOptions(), removeChip: removeOption.bind(this) }"></ng-container>
|
|
2176
|
-
|
|
2177
|
-
|
|
2232
|
+
@if (!modelValue() || modelValue().length === 0) {
|
|
2233
|
+
<ng-container>{{ placeholder() || 'empty' }}</ng-container>
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2178
2236
|
</div>
|
|
2179
2237
|
</div>
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2238
|
+
@if (isVisibleClearIcon()) {
|
|
2239
|
+
@if (!clearIconTemplate() && !_clearIconTemplate()) {
|
|
2240
|
+
<svg data-p-icon="times" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true" />
|
|
2241
|
+
}
|
|
2242
|
+
@if (clearIconTemplate() || _clearIconTemplate()) {
|
|
2243
|
+
<span [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true">
|
|
2244
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate()"></ng-template>
|
|
2245
|
+
</span>
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2186
2248
|
<div [pBind]="ptm('dropdown')" [class]="cx('dropdown')">
|
|
2187
|
-
|
|
2188
|
-
|
|
2249
|
+
@if (loading()) {
|
|
2250
|
+
@if (loadingIconTemplate() || _loadingIconTemplate()) {
|
|
2189
2251
|
<ng-container *ngTemplateOutlet="loadingIconTemplate() || _loadingIconTemplate()"></ng-container>
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2252
|
+
}
|
|
2253
|
+
@if (!loadingIconTemplate() && !_loadingIconTemplate()) {
|
|
2254
|
+
@if (loadingIcon()) {
|
|
2255
|
+
<span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())" [attr.aria-hidden]="true"></span>
|
|
2256
|
+
}
|
|
2257
|
+
@if (!loadingIcon()) {
|
|
2258
|
+
<span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [attr.aria-hidden]="true"></span>
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
} @else {
|
|
2262
|
+
@if (!dropdownIconTemplate() && !_dropdownIconTemplate()) {
|
|
2263
|
+
@if (dropdownIcon()) {
|
|
2264
|
+
<span [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [ngClass]="dropdownIcon()" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP()"></span>
|
|
2265
|
+
}
|
|
2266
|
+
@if (!dropdownIcon()) {
|
|
2267
|
+
<svg data-p-icon="chevron-down" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP()" />
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
@if (dropdownIconTemplate() || _dropdownIconTemplate()) {
|
|
2271
|
+
<span [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true">
|
|
2272
|
+
<ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { dataP: dropdownIconDataP() }"></ng-template>
|
|
2273
|
+
</span>
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2205
2276
|
</div>
|
|
2206
2277
|
<p-overlay
|
|
2207
2278
|
#overlay
|
|
@@ -2231,111 +2302,122 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
2231
2302
|
>
|
|
2232
2303
|
</span>
|
|
2233
2304
|
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
|
|
2234
|
-
|
|
2235
|
-
<
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
*ngTemplateOutlet="
|
|
2257
|
-
headerCheckboxIconTemplate() || _headerCheckboxIconTemplate();
|
|
2258
|
-
context: {
|
|
2259
|
-
checked: allSelected(),
|
|
2260
|
-
partialSelected: partialSelected(),
|
|
2261
|
-
class: klass
|
|
2305
|
+
@if (showHeader()) {
|
|
2306
|
+
<div [pBind]="ptm('header')" [class]="cx('header')">
|
|
2307
|
+
<ng-content select="p-header"></ng-content>
|
|
2308
|
+
@if (filterTemplate() || _filterTemplate()) {
|
|
2309
|
+
<ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
|
|
2310
|
+
} @else {
|
|
2311
|
+
@if (showToggleAll() && !selectionLimit()) {
|
|
2312
|
+
<p-checkbox
|
|
2313
|
+
[pt]="getHeaderCheckboxPTOptions('pcHeaderCheckbox')"
|
|
2314
|
+
[ngModel]="allSelected()"
|
|
2315
|
+
[ngModelOptions]="{ standalone: true }"
|
|
2316
|
+
[ariaLabel]="toggleAllAriaLabel()"
|
|
2317
|
+
[binary]="true"
|
|
2318
|
+
(onChange)="onToggleAll($event)"
|
|
2319
|
+
[variant]="$variant()"
|
|
2320
|
+
[disabled]="$disabled()"
|
|
2321
|
+
[unstyled]="unstyled()"
|
|
2322
|
+
#headerCheckbox
|
|
2323
|
+
>
|
|
2324
|
+
<ng-template #icon let-klass="class">
|
|
2325
|
+
@if (!headerCheckboxIconTemplate() && !_headerCheckboxIconTemplate() && allSelected()) {
|
|
2326
|
+
<svg data-p-icon="check" [class]="klass" [pBind]="getHeaderCheckboxPTOptions('pcHeaderCheckbox.icon')" />
|
|
2262
2327
|
}
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2328
|
+
<ng-template
|
|
2329
|
+
*ngTemplateOutlet="
|
|
2330
|
+
headerCheckboxIconTemplate() || _headerCheckboxIconTemplate();
|
|
2331
|
+
context: {
|
|
2332
|
+
checked: allSelected(),
|
|
2333
|
+
partialSelected: partialSelected(),
|
|
2334
|
+
class: klass
|
|
2335
|
+
}
|
|
2336
|
+
"
|
|
2337
|
+
></ng-template>
|
|
2338
|
+
</ng-template>
|
|
2339
|
+
</p-checkbox>
|
|
2340
|
+
}
|
|
2267
2341
|
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2342
|
+
@if (filter()) {
|
|
2343
|
+
<p-iconfield [pt]="ptm('pcFilterContainer')" [class]="cx('pcFilterContainer')" [unstyled]="unstyled()">
|
|
2344
|
+
<input
|
|
2345
|
+
#filterInput
|
|
2346
|
+
pInputText
|
|
2347
|
+
[pt]="ptm('pcFilter')"
|
|
2348
|
+
[variant]="$variant()"
|
|
2349
|
+
type="text"
|
|
2350
|
+
[attr.autocomplete]="autocomplete()"
|
|
2351
|
+
role="searchbox"
|
|
2352
|
+
[attr.aria-owns]="_id() + '_list'"
|
|
2353
|
+
[attr.aria-activedescendant]="focusedOptionId()"
|
|
2354
|
+
[value]="_filterValue() || ''"
|
|
2355
|
+
(input)="onFilterInputChange($event)"
|
|
2356
|
+
(keydown)="onFilterKeyDown($event)"
|
|
2357
|
+
(click)="onInputClick($event)"
|
|
2358
|
+
(blur)="onFilterBlur($event)"
|
|
2359
|
+
[class]="cx('pcFilter')"
|
|
2360
|
+
[attr.disabled]="$disabled() ? '' : undefined"
|
|
2361
|
+
[attr.placeholder]="filterPlaceHolder()"
|
|
2362
|
+
[attr.aria-label]="ariaFilterLabel()"
|
|
2363
|
+
[unstyled]="unstyled()"
|
|
2364
|
+
/>
|
|
2365
|
+
<p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
|
|
2366
|
+
@if (!filterIconTemplate() && !_filterIconTemplate()) {
|
|
2367
|
+
<svg data-p-icon="search" [pBind]="ptm('filterIcon')" />
|
|
2368
|
+
}
|
|
2369
|
+
@if (filterIconTemplate() || _filterIconTemplate()) {
|
|
2370
|
+
<span [pBind]="ptm('filterIcon')" class="p-multiselect-filter-icon">
|
|
2371
|
+
<ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
|
|
2372
|
+
</span>
|
|
2373
|
+
}
|
|
2374
|
+
</p-inputicon>
|
|
2375
|
+
</p-iconfield>
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
</div>
|
|
2379
|
+
}
|
|
2299
2380
|
<div [pBind]="ptm('listContainer')" [class]="cx('listContainer')" [style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'">
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
</ng-template>
|
|
2315
|
-
<ng-container *ngIf="loaderTemplate() || _loaderTemplate()">
|
|
2316
|
-
<ng-template #loader let-scrollerOptions="options">
|
|
2317
|
-
<ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
|
|
2381
|
+
@if (virtualScroll()) {
|
|
2382
|
+
<p-scroller
|
|
2383
|
+
#scroller
|
|
2384
|
+
[items]="visibleOptions()"
|
|
2385
|
+
[style]="{ height: scrollHeight() }"
|
|
2386
|
+
[itemSize]="virtualScrollItemSize()"
|
|
2387
|
+
[autoSize]="true"
|
|
2388
|
+
[tabindex]="-1"
|
|
2389
|
+
[lazy]="lazy()"
|
|
2390
|
+
(onLazyLoad)="onLazyLoad.emit($event)"
|
|
2391
|
+
[options]="virtualScrollOptions()"
|
|
2392
|
+
>
|
|
2393
|
+
<ng-template #content let-items let-scrollerOptions="options">
|
|
2394
|
+
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
|
2318
2395
|
</ng-template>
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2396
|
+
@if (loaderTemplate() || _loaderTemplate()) {
|
|
2397
|
+
<ng-template #loader let-scrollerOptions="options">
|
|
2398
|
+
<ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
|
|
2399
|
+
</ng-template>
|
|
2400
|
+
}
|
|
2401
|
+
</p-scroller>
|
|
2402
|
+
}
|
|
2403
|
+
@if (!virtualScroll()) {
|
|
2322
2404
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
|
|
2323
|
-
|
|
2405
|
+
}
|
|
2324
2406
|
|
|
2325
2407
|
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
|
2326
2408
|
<ul #items [pBind]="ptm('list')" [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" aria-multiselectable="true" [attr.aria-label]="listLabel()">
|
|
2327
|
-
|
|
2328
|
-
|
|
2409
|
+
@for (option of items; track $index; let i = $index) {
|
|
2410
|
+
@if (isOptionGroup(option)) {
|
|
2329
2411
|
<li [pBind]="ptm('optionGroup')" [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)" [class]="cx('optionGroup')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
[ngTemplateOutletContext]="{ $implicit: option.optionGroup }"
|
|
2335
|
-
|
|
2412
|
+
@if (!groupTemplate() && !_groupTemplate() && option.optionGroup) {
|
|
2413
|
+
<span>{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
|
2414
|
+
}
|
|
2415
|
+
@if (option.optionGroup && (groupTemplate() || _groupTemplate())) {
|
|
2416
|
+
<ng-container [ngTemplateOutlet]="groupTemplate() || _groupTemplate()" [ngTemplateOutletContext]="{ $implicit: option.optionGroup }"></ng-container>
|
|
2417
|
+
}
|
|
2336
2418
|
</li>
|
|
2337
|
-
|
|
2338
|
-
|
|
2419
|
+
}
|
|
2420
|
+
@if (!isOptionGroup(option)) {
|
|
2339
2421
|
<li
|
|
2340
2422
|
pMultiSelectItem
|
|
2341
2423
|
pRipple
|
|
@@ -2358,30 +2440,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
2358
2440
|
[pt]="pt()"
|
|
2359
2441
|
[unstyled]="unstyled()"
|
|
2360
2442
|
></li>
|
|
2361
|
-
</ng-container>
|
|
2362
|
-
</ng-template>
|
|
2363
|
-
|
|
2364
|
-
<li *ngIf="hasFilter() && isEmpty()" [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
|
2365
|
-
@if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate() && !_emptyTemplate()) {
|
|
2366
|
-
{{ emptyFilterMessageLabel() }}
|
|
2367
|
-
} @else {
|
|
2368
|
-
<ng-container *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
2369
|
-
}
|
|
2370
|
-
</li>
|
|
2371
|
-
<li *ngIf="!hasFilter() && isEmpty()" [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
|
2372
|
-
@if (!emptyTemplate() && !_emptyTemplate()) {
|
|
2373
|
-
{{ emptyMessageLabel() }}
|
|
2374
|
-
} @else {
|
|
2375
|
-
<ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
2376
2443
|
}
|
|
2377
|
-
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
@if (hasFilter() && isEmpty()) {
|
|
2447
|
+
<li [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
|
2448
|
+
@if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate() && !_emptyTemplate()) {
|
|
2449
|
+
{{ emptyFilterMessageLabel() }}
|
|
2450
|
+
} @else {
|
|
2451
|
+
<ng-container *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
2452
|
+
}
|
|
2453
|
+
</li>
|
|
2454
|
+
}
|
|
2455
|
+
@if (!hasFilter() && isEmpty()) {
|
|
2456
|
+
<li [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
|
2457
|
+
@if (!emptyTemplate() && !_emptyTemplate()) {
|
|
2458
|
+
{{ emptyMessageLabel() }}
|
|
2459
|
+
} @else {
|
|
2460
|
+
<ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
2461
|
+
}
|
|
2462
|
+
</li>
|
|
2463
|
+
}
|
|
2378
2464
|
</ul>
|
|
2379
2465
|
</ng-template>
|
|
2380
2466
|
</div>
|
|
2381
|
-
|
|
2382
|
-
<
|
|
2383
|
-
|
|
2384
|
-
|
|
2467
|
+
@if (footerFacet() || footerTemplate() || _footerTemplate()) {
|
|
2468
|
+
<div>
|
|
2469
|
+
<ng-content select="p-footer"></ng-content>
|
|
2470
|
+
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
|
|
2471
|
+
</div>
|
|
2472
|
+
}
|
|
2385
2473
|
|
|
2386
2474
|
<span
|
|
2387
2475
|
#lastHiddenFocusableEl
|