primeng 19.0.0-rc.1 → 19.0.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/accordion/accordion.d.ts +7 -7
- package/autocomplete/autocomplete.d.ts +21 -8
- package/badge/badge.d.ts +1 -3
- package/basecomponent/basecomponent.d.ts +2 -5
- package/blockui/blockui.d.ts +10 -5
- package/breadcrumb/breadcrumb.d.ts +9 -6
- package/button/button.d.ts +10 -4
- package/calendar/calendar.d.ts +29 -15
- package/card/card.d.ts +12 -5
- package/carousel/carousel.d.ts +10 -4
- package/cascadeselect/cascadeselect.d.ts +18 -8
- package/checkbox/checkbox.d.ts +8 -4
- package/chip/chip.d.ts +9 -7
- package/config/themeprovider.d.ts +6 -0
- package/confirmdialog/confirmdialog.d.ts +15 -5
- package/confirmpopup/confirmpopup.d.ts +11 -5
- package/contextmenu/contextmenu.d.ts +10 -6
- package/datepicker/datepicker.d.ts +25 -11
- package/dialog/dialog.d.ts +15 -4
- package/divider/divider.d.ts +1 -1
- package/dock/dock.d.ts +7 -4
- package/drawer/drawer.d.ts +18 -10
- package/dropdown/dropdown.d.ts +4 -3
- package/dynamicdialog/dynamicdialog.d.ts +3 -2
- package/editor/editor.d.ts +7 -3
- package/fesm2022/primeng-accordion.mjs +56 -41
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +153 -92
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +39 -32
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +2 -25
- package/fesm2022/primeng-basecomponent.mjs.map +1 -1
- package/fesm2022/primeng-blockui.mjs +38 -18
- package/fesm2022/primeng-blockui.mjs.map +1 -1
- package/fesm2022/primeng-breadcrumb.mjs +49 -31
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +55 -28
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +199 -136
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-card.mjs +95 -45
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +74 -42
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +99 -61
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +31 -12
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +117 -96
- package/fesm2022/primeng-chip.mjs.map +1 -1
- package/fesm2022/primeng-config.mjs +13 -11
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +104 -60
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +57 -29
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +52 -21
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +199 -158
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +97 -50
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +2 -4
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +29 -10
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +112 -70
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +14 -6
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +25 -21
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +26 -10
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +61 -33
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +138 -87
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +22 -13
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +113 -66
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-imagecompare.mjs +30 -10
- package/fesm2022/primeng-imagecompare.mjs.map +1 -1
- package/fesm2022/primeng-inplace.mjs +51 -26
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +31 -15
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +54 -45
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +30 -11
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +137 -78
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +105 -59
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +26 -26
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +69 -34
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +49 -25
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +12 -3
- package/fesm2022/primeng-messages.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +62 -30
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +246 -155
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +123 -68
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +31 -15
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +26 -6
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +29 -9
- package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +92 -60
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +159 -98
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +55 -32
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +88 -49
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +360 -228
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +23 -7
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +26 -8
- package/fesm2022/primeng-progressbar.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +44 -20
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +47 -37
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +28 -9
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
- package/fesm2022/primeng-scrolltop.mjs +16 -9
- package/fesm2022/primeng-scrolltop.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +198 -119
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +25 -9
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-sidebar.mjs +81 -58
- package/fesm2022/primeng-sidebar.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +54 -29
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +41 -18
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +4 -4
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +33 -19
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +115 -103
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabmenu.mjs +54 -27
- package/fesm2022/primeng-tabmenu.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +27 -19
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-tabview.mjs +106 -54
- package/fesm2022/primeng-tabview.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +68 -44
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +44 -21
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-timeline.mjs +40 -16
- package/fesm2022/primeng-timeline.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +30 -7
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +44 -28
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +28 -9
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
- package/fesm2022/primeng-toolbar.mjs +46 -20
- package/fesm2022/primeng-toolbar.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +32 -69
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +113 -96
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +154 -85
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +31 -14
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +1 -1
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/fieldset/fieldset.d.ts +12 -6
- package/fileupload/fileupload.d.ts +19 -8
- package/galleria/galleria.d.ts +3 -2
- package/image/image.d.ts +18 -7
- package/imagecompare/imagecompare.d.ts +7 -2
- package/inplace/inplace.d.ts +12 -6
- package/inputmask/inputmask.d.ts +8 -4
- package/inputnumber/inputnumber.d.ts +11 -6
- package/inputotp/inputotp.d.ts +7 -2
- package/listbox/listbox.d.ts +17 -4
- package/megamenu/megamenu.d.ts +16 -7
- package/menu/menu.d.ts +6 -6
- package/menubar/menubar.d.ts +13 -6
- package/message/message.d.ts +10 -4
- package/messages/messages.d.ts +4 -3
- package/metergroup/metergroup.d.ts +11 -3
- package/multiselect/multiselect.d.ts +36 -17
- package/orderlist/orderlist.d.ts +23 -11
- package/organizationchart/organizationchart.d.ts +6 -4
- package/overlay/overlay.d.ts +6 -3
- package/overlaypanel/overlaypanel.d.ts +6 -3
- package/package.json +180 -180
- package/paginator/paginator.d.ts +15 -8
- package/panel/panel.d.ts +14 -5
- package/panelmenu/panelmenu.d.ts +8 -4
- package/password/password.d.ts +15 -7
- package/picklist/picklist.d.ts +23 -3
- package/popover/popover.d.ts +7 -4
- package/progressbar/progressbar.d.ts +7 -3
- package/rating/rating.d.ts +11 -5
- package/scroller/scroller.d.ts +9 -4
- package/scrollpanel/scrollpanel.d.ts +7 -3
- package/scrolltop/scrolltop.d.ts +7 -4
- package/select/select.d.ts +31 -13
- package/selectbutton/selectbutton.d.ts +7 -3
- package/sidebar/sidebar.d.ts +9 -2
- package/speeddial/speeddial.d.ts +9 -4
- package/splitbutton/splitbutton.d.ts +9 -5
- package/splitter/splitter.d.ts +4 -4
- package/stepper/stepper.d.ts +8 -3
- package/table/table.d.ts +2 -2
- package/tabmenu/tabmenu.d.ts +12 -7
- package/tabs/tablist.d.ts +6 -2
- package/tabview/tabview.d.ts +16 -7
- package/tag/tag.d.ts +8 -9
- package/tieredmenu/tieredmenu.d.ts +10 -6
- package/timeline/timeline.d.ts +7 -2
- package/toast/toast.d.ts +7 -3
- package/togglebutton/togglebutton.d.ts +8 -3
- package/toggleswitch/toggleswitch.d.ts +6 -2
- package/toolbar/toolbar.d.ts +9 -4
- package/tooltip/tooltip.d.ts +2 -1
- package/tree/tree.d.ts +23 -10
- package/treeselect/treeselect.d.ts +26 -12
- package/treetable/treetable.d.ts +6 -4
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as i2 from '@angular/common';
|
2
2
|
import { CommonModule } from '@angular/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
|
-
import { Injectable, forwardRef, EventEmitter, inject, signal, computed, effect, numberAttribute, booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ViewChild, ContentChild, NgModule } from '@angular/core';
|
4
|
+
import { Injectable, forwardRef, EventEmitter, inject, signal, computed, effect, numberAttribute, booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ViewChild, ContentChild, ContentChildren, NgModule } from '@angular/core';
|
5
5
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
6
6
|
import { resolveFieldData, isNotEmpty, uuid, findLastIndex, equals, focus, isEmpty, findSingle } from '@primeuix/utils';
|
7
7
|
import * as i1 from 'primeng/api';
|
8
|
-
import { TranslationKeys, SharedModule } from 'primeng/api';
|
8
|
+
import { TranslationKeys, PrimeTemplate, SharedModule } from 'primeng/api';
|
9
9
|
import { AutoFocus } from 'primeng/autofocus';
|
10
10
|
import { BaseComponent } from 'primeng/basecomponent';
|
11
11
|
import { Chip } from 'primeng/chip';
|
@@ -485,7 +485,7 @@ function AutoComplete_ng_container_3_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
485
485
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
486
486
|
i0.ɵɵattribute("aria-hidden", true);
|
487
487
|
i0.ɵɵadvance();
|
488
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
488
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.clearIconTemplate || ctx_r2._clearIconTemplate);
|
489
489
|
} }
|
490
490
|
function AutoComplete_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
491
491
|
i0.ɵɵelementContainerStart(0);
|
@@ -494,9 +494,9 @@ function AutoComplete_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
494
494
|
} if (rf & 2) {
|
495
495
|
const ctx_r2 = i0.ɵɵnextContext();
|
496
496
|
i0.ɵɵadvance();
|
497
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
497
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.clearIconTemplate && !ctx_r2._clearIconTemplate);
|
498
498
|
i0.ɵɵadvance();
|
499
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
499
|
+
i0.ɵɵproperty("ngIf", ctx_r2.clearIconTemplate || ctx_r2._clearIconTemplate);
|
500
500
|
} }
|
501
501
|
function AutoComplete_ul_4_li_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
502
502
|
i0.ɵɵelementContainer(0);
|
@@ -526,7 +526,7 @@ function AutoComplete_ul_4_li_2_p_chip_3_Template(rf, ctx) { if (rf & 1) {
|
|
526
526
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
527
527
|
i0.ɵɵproperty("label", ctx_r2.getOptionLabel(option_r9))("removable", true);
|
528
528
|
i0.ɵɵadvance();
|
529
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
529
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.removeIconTemplate && !ctx_r2._removeIconTemplate);
|
530
530
|
} }
|
531
531
|
function AutoComplete_ul_4_li_2_span_4_1_ng_template_0_Template(rf, ctx) { }
|
532
532
|
function AutoComplete_ul_4_li_2_span_4_1_Template(rf, ctx) { if (rf & 1) {
|
@@ -540,7 +540,7 @@ function AutoComplete_ul_4_li_2_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
540
540
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
541
541
|
i0.ɵɵattribute("aria-hidden", true);
|
542
542
|
i0.ɵɵadvance();
|
543
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
543
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.removeIconTemplate || ctx_r2._removeIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction0(3, _c21));
|
544
544
|
} }
|
545
545
|
function AutoComplete_ul_4_li_2_Template(rf, ctx) { if (rf & 1) {
|
546
546
|
i0.ɵɵelementStart(0, "li", 29, 5);
|
@@ -553,11 +553,11 @@ function AutoComplete_ul_4_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
553
553
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c19, ctx_r2.focusedMultipleOptionIndex() === i_r8));
|
554
554
|
i0.ɵɵattribute("id", ctx_r2.id + "_multiple_option_" + i_r8)("aria-label", ctx_r2.getOptionLabel(option_r9))("aria-setsize", ctx_r2.modelValue().length)("aria-posinset", i_r8 + 1)("aria-selected", true);
|
555
555
|
i0.ɵɵadvance(2);
|
556
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
556
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.selectedItemTemplate || ctx_r2._selectedItemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(12, _c20, option_r9));
|
557
557
|
i0.ɵɵadvance();
|
558
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
558
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.selectedItemTemplate && !ctx_r2._selectedItemTemplate);
|
559
559
|
i0.ɵɵadvance();
|
560
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
560
|
+
i0.ɵɵproperty("ngIf", ctx_r2.removeIconTemplate || ctx_r2._removeIconTemplate);
|
561
561
|
} }
|
562
562
|
function AutoComplete_ul_4_Template(rf, ctx) { if (rf & 1) {
|
563
563
|
const _r6 = i0.ɵɵgetCurrentView();
|
@@ -597,7 +597,7 @@ function AutoComplete_ng_container_5_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
597
597
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
598
598
|
i0.ɵɵattribute("aria-hidden", true);
|
599
599
|
i0.ɵɵadvance();
|
600
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
600
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.loadingIconTemplate || ctx_r2._loadingIconTemplate);
|
601
601
|
} }
|
602
602
|
function AutoComplete_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
603
603
|
i0.ɵɵelementContainerStart(0);
|
@@ -606,9 +606,9 @@ function AutoComplete_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
606
606
|
} if (rf & 2) {
|
607
607
|
const ctx_r2 = i0.ɵɵnextContext();
|
608
608
|
i0.ɵɵadvance();
|
609
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
609
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.loadingIconTemplate && !ctx_r2._loadingIconTemplate);
|
610
610
|
i0.ɵɵadvance();
|
611
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
611
|
+
i0.ɵɵproperty("ngIf", ctx_r2.loadingIconTemplate || ctx_r2._loadingIconTemplate);
|
612
612
|
} }
|
613
613
|
function AutoComplete_button_6_span_2_Template(rf, ctx) { if (rf & 1) {
|
614
614
|
i0.ɵɵelement(0, "span", 41);
|
@@ -631,9 +631,9 @@ function AutoComplete_button_6_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
631
631
|
} if (rf & 2) {
|
632
632
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
633
633
|
i0.ɵɵadvance();
|
634
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
634
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.dropdownIconTemplate && !ctx_r2._dropdownIconTemplate);
|
635
635
|
i0.ɵɵadvance();
|
636
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
636
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.dropdownIconTemplate || ctx_r2._dropdownIconTemplate);
|
637
637
|
} }
|
638
638
|
function AutoComplete_button_6_Template(rf, ctx) { if (rf & 1) {
|
639
639
|
const _r10 = i0.ɵɵgetCurrentView();
|
@@ -672,9 +672,8 @@ function AutoComplete_ng_template_9_p_scroller_3_ng_container_4_ng_template_1_Te
|
|
672
672
|
i0.ɵɵtemplate(0, AutoComplete_ng_template_9_p_scroller_3_ng_container_4_ng_template_1_ng_container_0_Template, 1, 0, "ng-container", 30);
|
673
673
|
} if (rf & 2) {
|
674
674
|
const scrollerOptions_r15 = ctx.options;
|
675
|
-
i0.ɵɵnextContext();
|
676
|
-
|
677
|
-
i0.ɵɵproperty("ngTemplateOutlet", loader_r16)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c24, scrollerOptions_r15));
|
675
|
+
const ctx_r2 = i0.ɵɵnextContext(4);
|
676
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.loaderTemplate || ctx_r2._loaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c24, scrollerOptions_r15));
|
678
677
|
} }
|
679
678
|
function AutoComplete_ng_template_9_p_scroller_3_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
680
679
|
i0.ɵɵelementContainerStart(0);
|
@@ -692,7 +691,7 @@ function AutoComplete_ng_template_9_p_scroller_3_Template(rf, ctx) { if (rf & 1)
|
|
692
691
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(8, _c22, ctx_r2.scrollHeight));
|
693
692
|
i0.ɵɵproperty("items", ctx_r2.visibleOptions())("itemSize", ctx_r2.virtualScrollItemSize || ctx_r2._itemSize)("autoSize", true)("lazy", ctx_r2.lazy)("options", ctx_r2.virtualScrollOptions);
|
694
693
|
i0.ɵɵadvance(4);
|
695
|
-
i0.ɵɵproperty("ngIf", ctx_r2.loaderTemplate);
|
694
|
+
i0.ɵɵproperty("ngIf", ctx_r2.loaderTemplate || ctx_r2._loaderTemplate);
|
696
695
|
} }
|
697
696
|
function AutoComplete_ng_template_9_ng_container_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
698
697
|
i0.ɵɵelementContainer(0);
|
@@ -713,10 +712,10 @@ function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_s
|
|
713
712
|
i0.ɵɵtext(1);
|
714
713
|
i0.ɵɵelementEnd();
|
715
714
|
} if (rf & 2) {
|
716
|
-
const
|
715
|
+
const option_r16 = i0.ɵɵnextContext(2).$implicit;
|
717
716
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
718
717
|
i0.ɵɵadvance();
|
719
|
-
i0.ɵɵtextInterpolate(ctx_r2.getOptionGroupLabel(
|
718
|
+
i0.ɵɵtextInterpolate(ctx_r2.getOptionGroupLabel(option_r16.optionGroup));
|
720
719
|
} }
|
721
720
|
function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
722
721
|
i0.ɵɵelementContainer(0);
|
@@ -728,62 +727,62 @@ function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_T
|
|
728
727
|
i0.ɵɵelementEnd();
|
729
728
|
i0.ɵɵelementContainerEnd();
|
730
729
|
} if (rf & 2) {
|
731
|
-
const
|
732
|
-
const
|
733
|
-
const
|
734
|
-
const
|
730
|
+
const ctx_r16 = i0.ɵɵnextContext();
|
731
|
+
const option_r16 = ctx_r16.$implicit;
|
732
|
+
const i_r18 = ctx_r16.index;
|
733
|
+
const scrollerOptions_r19 = i0.ɵɵnextContext().options;
|
735
734
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
736
735
|
i0.ɵɵadvance();
|
737
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c22,
|
738
|
-
i0.ɵɵattribute("id", ctx_r2.id + "_" + ctx_r2.getOptionIndex(
|
736
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c22, scrollerOptions_r19.itemSize + "px"));
|
737
|
+
i0.ɵɵattribute("id", ctx_r2.id + "_" + ctx_r2.getOptionIndex(i_r18, scrollerOptions_r19));
|
739
738
|
i0.ɵɵadvance();
|
740
739
|
i0.ɵɵproperty("ngIf", !ctx_r2.groupTemplate);
|
741
740
|
i0.ɵɵadvance();
|
742
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.groupTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(7, _c20,
|
741
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.groupTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(7, _c20, option_r16.optionGroup));
|
743
742
|
} }
|
744
743
|
function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_span_2_Template(rf, ctx) { if (rf & 1) {
|
745
744
|
i0.ɵɵelementStart(0, "span");
|
746
745
|
i0.ɵɵtext(1);
|
747
746
|
i0.ɵɵelementEnd();
|
748
747
|
} if (rf & 2) {
|
749
|
-
const
|
748
|
+
const option_r16 = i0.ɵɵnextContext(2).$implicit;
|
750
749
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
751
750
|
i0.ɵɵadvance();
|
752
|
-
i0.ɵɵtextInterpolate(ctx_r2.getOptionLabel(
|
751
|
+
i0.ɵɵtextInterpolate(ctx_r2.getOptionLabel(option_r16));
|
753
752
|
} }
|
754
753
|
function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
755
754
|
i0.ɵɵelementContainer(0);
|
756
755
|
} }
|
757
756
|
function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
758
|
-
const
|
757
|
+
const _r20 = i0.ɵɵgetCurrentView();
|
759
758
|
i0.ɵɵelementContainerStart(0);
|
760
759
|
i0.ɵɵelementStart(1, "li", 51);
|
761
|
-
i0.ɵɵlistener("click", function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template_li_click_1_listener($event) { i0.ɵɵrestoreView(
|
760
|
+
i0.ɵɵlistener("click", function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template_li_click_1_listener($event) { i0.ɵɵrestoreView(_r20); const option_r16 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onOptionSelect($event, option_r16)); })("mouseenter", function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template_li_mouseenter_1_listener($event) { i0.ɵɵrestoreView(_r20); const i_r18 = i0.ɵɵnextContext().index; const scrollerOptions_r19 = i0.ɵɵnextContext().options; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onOptionMouseEnter($event, ctx_r2.getOptionIndex(i_r18, scrollerOptions_r19))); });
|
762
761
|
i0.ɵɵtemplate(2, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_span_2_Template, 2, 1, "span", 15)(3, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_ng_container_3_Template, 1, 0, "ng-container", 30);
|
763
762
|
i0.ɵɵelementEnd();
|
764
763
|
i0.ɵɵelementContainerEnd();
|
765
764
|
} if (rf & 2) {
|
766
|
-
const
|
767
|
-
const
|
768
|
-
const
|
769
|
-
const
|
765
|
+
const ctx_r16 = i0.ɵɵnextContext();
|
766
|
+
const option_r16 = ctx_r16.$implicit;
|
767
|
+
const i_r18 = ctx_r16.index;
|
768
|
+
const scrollerOptions_r19 = i0.ɵɵnextContext().options;
|
770
769
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
771
770
|
i0.ɵɵadvance();
|
772
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c22,
|
773
|
-
i0.ɵɵattribute("id", ctx_r2.id + "_" + ctx_r2.getOptionIndex(
|
771
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c22, scrollerOptions_r19.itemSize + "px"))("ngClass", ctx_r2.optionClass(option_r16, i_r18, scrollerOptions_r19));
|
772
|
+
i0.ɵɵattribute("id", ctx_r2.id + "_" + ctx_r2.getOptionIndex(i_r18, scrollerOptions_r19))("aria-label", ctx_r2.getOptionLabel(option_r16))("aria-selected", ctx_r2.isSelected(option_r16))("aria-disabled", ctx_r2.isOptionDisabled(option_r16))("data-p-focused", ctx_r2.focusedOptionIndex() === ctx_r2.getOptionIndex(i_r18, scrollerOptions_r19))("aria-setsize", ctx_r2.ariaSetSize)("aria-posinset", ctx_r2.getAriaPosInset(ctx_r2.getOptionIndex(i_r18, scrollerOptions_r19)));
|
774
773
|
i0.ɵɵadvance();
|
775
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.itemTemplate);
|
774
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.itemTemplate && !ctx_r2._itemTemplate);
|
776
775
|
i0.ɵɵadvance();
|
777
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(14, _c26,
|
776
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTemplate || ctx_r2._itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(14, _c26, option_r16, scrollerOptions_r19.getOptions ? scrollerOptions_r19.getOptions(i_r18) : i_r18));
|
778
777
|
} }
|
779
778
|
function AutoComplete_ng_template_9_ng_template_5_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
780
779
|
i0.ɵɵtemplate(0, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_Template, 4, 9, "ng-container", 15)(1, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template, 4, 17, "ng-container", 15);
|
781
780
|
} if (rf & 2) {
|
782
|
-
const
|
781
|
+
const option_r16 = ctx.$implicit;
|
783
782
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
784
|
-
i0.ɵɵproperty("ngIf", ctx_r2.isOptionGroup(
|
783
|
+
i0.ɵɵproperty("ngIf", ctx_r2.isOptionGroup(option_r16));
|
785
784
|
i0.ɵɵadvance();
|
786
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.isOptionGroup(
|
785
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.isOptionGroup(option_r16));
|
787
786
|
} }
|
788
787
|
function AutoComplete_ng_template_9_ng_template_5_li_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
789
788
|
i0.ɵɵelementContainerStart(0);
|
@@ -802,29 +801,29 @@ function AutoComplete_ng_template_9_ng_template_5_li_3_Template(rf, ctx) { if (r
|
|
802
801
|
i0.ɵɵtemplate(1, AutoComplete_ng_template_9_ng_template_5_li_3_ng_container_1_Template, 2, 1, "ng-container", 53)(2, AutoComplete_ng_template_9_ng_template_5_li_3_ng_container_2_Template, 2, 0, "ng-container", 24);
|
803
802
|
i0.ɵɵelementEnd();
|
804
803
|
} if (rf & 2) {
|
805
|
-
const
|
804
|
+
const scrollerOptions_r19 = i0.ɵɵnextContext().options;
|
806
805
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
807
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c22,
|
806
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c22, scrollerOptions_r19.itemSize + "px"));
|
808
807
|
i0.ɵɵadvance();
|
809
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.emptyTemplate)("ngIfElse", ctx_r2.empty);
|
808
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.emptyTemplate && !ctx_r2._emptyTemplate)("ngIfElse", ctx_r2.empty);
|
810
809
|
i0.ɵɵadvance();
|
811
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.emptyTemplate);
|
810
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.emptyTemplate || ctx_r2._emptyTemplate);
|
812
811
|
} }
|
813
812
|
function AutoComplete_ng_template_9_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
814
813
|
i0.ɵɵelementStart(0, "ul", 47, 11);
|
815
814
|
i0.ɵɵtemplate(2, AutoComplete_ng_template_9_ng_template_5_ng_template_2_Template, 2, 2, "ng-template", 48)(3, AutoComplete_ng_template_9_ng_template_5_li_3_Template, 3, 6, "li", 49);
|
816
815
|
i0.ɵɵelementEnd();
|
817
816
|
} if (rf & 2) {
|
818
|
-
const
|
819
|
-
const
|
817
|
+
const items_r21 = ctx.$implicit;
|
818
|
+
const scrollerOptions_r19 = ctx.options;
|
820
819
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
821
|
-
i0.ɵɵstyleMap(
|
822
|
-
i0.ɵɵproperty("ngClass",
|
820
|
+
i0.ɵɵstyleMap(scrollerOptions_r19.contentStyle);
|
821
|
+
i0.ɵɵproperty("ngClass", scrollerOptions_r19.contentStyleClass);
|
823
822
|
i0.ɵɵattribute("id", ctx_r2.id + "_list")("aria-label", ctx_r2.listLabel);
|
824
823
|
i0.ɵɵadvance(2);
|
825
|
-
i0.ɵɵproperty("ngForOf",
|
824
|
+
i0.ɵɵproperty("ngForOf", items_r21);
|
826
825
|
i0.ɵɵadvance();
|
827
|
-
i0.ɵɵproperty("ngIf", !
|
826
|
+
i0.ɵɵproperty("ngIf", !items_r21 || items_r21 && items_r21.length === 0 && ctx_r2.showEmptyMessage);
|
828
827
|
} }
|
829
828
|
function AutoComplete_ng_template_9_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
830
829
|
i0.ɵɵelementContainer(0);
|
@@ -845,7 +844,7 @@ function AutoComplete_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
845
844
|
i0.ɵɵclassMap(ctx_r2.panelStyleClass);
|
846
845
|
i0.ɵɵproperty("ngClass", ctx_r2.panelClass)("ngStyle", ctx_r2.panelStyle);
|
847
846
|
i0.ɵɵadvance();
|
848
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.headerTemplate);
|
847
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.headerTemplate || ctx_r2._headerTemplate);
|
849
848
|
i0.ɵɵadvance();
|
850
849
|
i0.ɵɵstyleProp("max-height", ctx_r2.virtualScroll ? "auto" : ctx_r2.scrollHeight);
|
851
850
|
i0.ɵɵadvance();
|
@@ -853,7 +852,7 @@ function AutoComplete_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
853
852
|
i0.ɵɵadvance();
|
854
853
|
i0.ɵɵproperty("ngIf", !ctx_r2.virtualScroll);
|
855
854
|
i0.ɵɵadvance(3);
|
856
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.footerTemplate);
|
855
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.footerTemplate || ctx_r2._footerTemplate);
|
857
856
|
i0.ɵɵadvance(2);
|
858
857
|
i0.ɵɵtextInterpolate1(" ", ctx_r2.selectedMessageText, " ");
|
859
858
|
} }
|
@@ -1317,7 +1316,7 @@ class AutoComplete extends BaseComponent {
|
|
1317
1316
|
* Custom selected item template.
|
1318
1317
|
* @group Templates
|
1319
1318
|
*/
|
1320
|
-
|
1319
|
+
selectedItemTemplate;
|
1321
1320
|
/**
|
1322
1321
|
* Custom group item template.
|
1323
1322
|
* @group Templates
|
@@ -1332,22 +1331,22 @@ class AutoComplete extends BaseComponent {
|
|
1332
1331
|
* Custom remove icon template.
|
1333
1332
|
* @group Templates
|
1334
1333
|
*/
|
1335
|
-
|
1334
|
+
removeIconTemplate;
|
1336
1335
|
/**
|
1337
1336
|
* Custom loading icon template.
|
1338
1337
|
* @group Templates
|
1339
1338
|
*/
|
1340
|
-
|
1339
|
+
loadingIconTemplate;
|
1341
1340
|
/**
|
1342
1341
|
* Custom clear icon template.
|
1343
1342
|
* @group Templates
|
1344
1343
|
*/
|
1345
|
-
|
1344
|
+
clearIconTemplate;
|
1346
1345
|
/**
|
1347
1346
|
* Custom dropdown icon template.
|
1348
1347
|
* @group Templates
|
1349
1348
|
*/
|
1350
|
-
|
1349
|
+
dropdownIconTemplate;
|
1351
1350
|
primeng = inject(PrimeNG);
|
1352
1351
|
value;
|
1353
1352
|
_suggestions = signal(null);
|
@@ -1371,6 +1370,17 @@ class AutoComplete extends BaseComponent {
|
|
1371
1370
|
listId;
|
1372
1371
|
searchTimeout;
|
1373
1372
|
dirty = false;
|
1373
|
+
_itemTemplate;
|
1374
|
+
_groupTemplate;
|
1375
|
+
_selectedItemTemplate;
|
1376
|
+
_headerTemplate;
|
1377
|
+
_emptyTemplate;
|
1378
|
+
_footerTemplate;
|
1379
|
+
_loaderTemplate;
|
1380
|
+
_removeIconTemplate;
|
1381
|
+
_loadingIconTemplate;
|
1382
|
+
_clearIconTemplate;
|
1383
|
+
_dropdownIconTemplate;
|
1374
1384
|
modelValue = signal(null);
|
1375
1385
|
focusedMultipleOptionIndex = signal(-1);
|
1376
1386
|
focusedOptionIndex = signal(-1);
|
@@ -1473,6 +1483,52 @@ class AutoComplete extends BaseComponent {
|
|
1473
1483
|
this.id = this.id || uuid('pn_id_');
|
1474
1484
|
this.cd.detectChanges();
|
1475
1485
|
}
|
1486
|
+
templates;
|
1487
|
+
ngAfterContentInit() {
|
1488
|
+
this.templates.forEach((item) => {
|
1489
|
+
switch (item.getType()) {
|
1490
|
+
case 'item':
|
1491
|
+
this._itemTemplate = item.template;
|
1492
|
+
break;
|
1493
|
+
case 'group':
|
1494
|
+
this._groupTemplate = item.template;
|
1495
|
+
break;
|
1496
|
+
case 'selecteditem':
|
1497
|
+
this._selectedItemTemplate = item.template;
|
1498
|
+
break;
|
1499
|
+
case 'selectedItem':
|
1500
|
+
this._selectedItemTemplate = item.template;
|
1501
|
+
break;
|
1502
|
+
case 'header':
|
1503
|
+
this._headerTemplate = item.template;
|
1504
|
+
break;
|
1505
|
+
case 'empty':
|
1506
|
+
this._emptyTemplate = item.template;
|
1507
|
+
break;
|
1508
|
+
case 'footer':
|
1509
|
+
this._footerTemplate = item.template;
|
1510
|
+
break;
|
1511
|
+
case 'loader':
|
1512
|
+
this._loaderTemplate = item.template;
|
1513
|
+
break;
|
1514
|
+
case 'removetokenicon':
|
1515
|
+
this._removeIconTemplate = item.template;
|
1516
|
+
break;
|
1517
|
+
case 'loadingicon':
|
1518
|
+
this._loadingIconTemplate = item.template;
|
1519
|
+
break;
|
1520
|
+
case 'clearicon':
|
1521
|
+
this._clearIconTemplate = item.template;
|
1522
|
+
break;
|
1523
|
+
case 'dropdownicon':
|
1524
|
+
this._dropdownIconTemplate = item.template;
|
1525
|
+
break;
|
1526
|
+
default:
|
1527
|
+
this._itemTemplate = item.template;
|
1528
|
+
break;
|
1529
|
+
}
|
1530
|
+
});
|
1531
|
+
}
|
1476
1532
|
ngAfterViewChecked() {
|
1477
1533
|
//Use timeouts as since Angular 4.2, AfterViewChecked is broken and not called after panel is updated
|
1478
1534
|
if (this.suggestionsUpdated && this.overlayViewChild) {
|
@@ -2076,19 +2132,21 @@ class AutoComplete extends BaseComponent {
|
|
2076
2132
|
i0.ɵɵcontentQuery(dirIndex, _c8, 5);
|
2077
2133
|
i0.ɵɵcontentQuery(dirIndex, _c9, 5);
|
2078
2134
|
i0.ɵɵcontentQuery(dirIndex, _c10, 5);
|
2135
|
+
i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
|
2079
2136
|
} if (rf & 2) {
|
2080
2137
|
let _t;
|
2081
2138
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemTemplate = _t.first);
|
2082
2139
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emptyTemplate = _t.first);
|
2083
2140
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
|
2084
2141
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);
|
2085
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2142
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectedItemTemplate = _t.first);
|
2086
2143
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.groupTemplate = _t.first);
|
2087
2144
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loaderTemplate = _t.first);
|
2088
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2089
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2090
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2091
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2145
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.removeIconTemplate = _t.first);
|
2146
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loadingIconTemplate = _t.first);
|
2147
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.clearIconTemplate = _t.first);
|
2148
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdownIconTemplate = _t.first);
|
2149
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
|
2092
2150
|
} }, viewQuery: function AutoComplete_Query(rf, ctx) { if (rf & 1) {
|
2093
2151
|
i0.ɵɵviewQuery(_c11, 5);
|
2094
2152
|
i0.ɵɵviewQuery(_c12, 5);
|
@@ -2183,9 +2241,9 @@ class AutoComplete extends BaseComponent {
|
|
2183
2241
|
[fluid]="hasFluid()"
|
2184
2242
|
/>
|
2185
2243
|
<ng-container *ngIf="filled && !disabled && showClear && !loading">
|
2186
|
-
<TimesIcon *ngIf="!
|
2187
|
-
<span *ngIf="
|
2188
|
-
<ng-template *ngTemplateOutlet="
|
2244
|
+
<TimesIcon *ngIf="!clearIconTemplate && !_clearIconTemplate" [styleClass]="'p-autocomplete-clear-icon'" (click)="clear()" [attr.aria-hidden]="true" />
|
2245
|
+
<span *ngIf="clearIconTemplate || _clearIconTemplate" class="p-autocomplete-clear-icon" (click)="clear()" [attr.aria-hidden]="true">
|
2246
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
|
2189
2247
|
</span>
|
2190
2248
|
</ng-container>
|
2191
2249
|
|
@@ -2212,9 +2270,9 @@ class AutoComplete extends BaseComponent {
|
|
2212
2270
|
[attr.aria-posinset]="i + 1"
|
2213
2271
|
[attr.aria-selected]="true"
|
2214
2272
|
>
|
2215
|
-
<ng-container *ngTemplateOutlet="
|
2216
|
-
<p-chip styleClass="p-autocomplete-chip" *ngIf="!
|
2217
|
-
<ng-container *ngIf="!
|
2273
|
+
<ng-container *ngTemplateOutlet="selectedItemTemplate || _selectedItemTemplate; context: { $implicit: option }"></ng-container>
|
2274
|
+
<p-chip styleClass="p-autocomplete-chip" *ngIf="!selectedItemTemplate && !_selectedItemTemplate" [label]="getOptionLabel(option)" [removable]="true">
|
2275
|
+
<ng-container *ngIf="!removeIconTemplate && !_removeIconTemplate">
|
2218
2276
|
<ng-template #removeicon>
|
2219
2277
|
<span class="p-autocomplete-chip-icon" (click)="!readonly ? removeOption($event, i) : ''">
|
2220
2278
|
<TimesCircleIcon [styleClass]="'p-autocomplete-chip-icon'" [attr.aria-hidden]="true" />
|
@@ -2222,8 +2280,8 @@ class AutoComplete extends BaseComponent {
|
|
2222
2280
|
</ng-template>
|
2223
2281
|
</ng-container>
|
2224
2282
|
</p-chip>
|
2225
|
-
<span *ngIf="
|
2226
|
-
<ng-template *ngTemplateOutlet="
|
2283
|
+
<span *ngIf="removeIconTemplate || _removeIconTemplate" [attr.aria-hidden]="true">
|
2284
|
+
<ng-template *ngTemplateOutlet="removeIconTemplate || _removeIconTemplate; context: { class: 'p-autocomplete-chip-icon' }"></ng-template>
|
2227
2285
|
</span>
|
2228
2286
|
</li>
|
2229
2287
|
<li class="p-autocomplete-input-chip" role="option">
|
@@ -2262,16 +2320,16 @@ class AutoComplete extends BaseComponent {
|
|
2262
2320
|
</li>
|
2263
2321
|
</ul>
|
2264
2322
|
<ng-container *ngIf="loading">
|
2265
|
-
<SpinnerIcon *ngIf="!
|
2266
|
-
<span *ngIf="
|
2267
|
-
<ng-template *ngTemplateOutlet="
|
2323
|
+
<SpinnerIcon *ngIf="!loadingIconTemplate && !_loadingIconTemplate" [styleClass]="'p-autocomplete-loader'" [spin]="true" [attr.aria-hidden]="true" />
|
2324
|
+
<span *ngIf="loadingIconTemplate || _loadingIconTemplate" class="p-autocomplete-loader pi-spin " [attr.aria-hidden]="true">
|
2325
|
+
<ng-template *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate"></ng-template>
|
2268
2326
|
</span>
|
2269
2327
|
</ng-container>
|
2270
2328
|
<button #ddBtn type="button" [attr.aria-label]="dropdownAriaLabel" class="p-autocomplete-dropdown" [disabled]="disabled" pRipple (click)="handleDropdownClick($event)" *ngIf="dropdown" [attr.tabindex]="tabindex">
|
2271
2329
|
<span *ngIf="dropdownIcon" [ngClass]="dropdownIcon" [attr.aria-hidden]="true"></span>
|
2272
2330
|
<ng-container *ngIf="!dropdownIcon">
|
2273
|
-
<ChevronDownIcon *ngIf="!
|
2274
|
-
<ng-template *ngTemplateOutlet="
|
2331
|
+
<ChevronDownIcon *ngIf="!dropdownIconTemplate && !_dropdownIconTemplate" />
|
2332
|
+
<ng-template *ngTemplateOutlet="dropdownIconTemplate || _dropdownIconTemplate"></ng-template>
|
2275
2333
|
</ng-container>
|
2276
2334
|
</button>
|
2277
2335
|
<p-overlay
|
@@ -2287,7 +2345,7 @@ class AutoComplete extends BaseComponent {
|
|
2287
2345
|
>
|
2288
2346
|
<ng-template #content>
|
2289
2347
|
<div [ngClass]="panelClass" [ngStyle]="panelStyle" [class]="panelStyleClass">
|
2290
|
-
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
|
2348
|
+
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
|
2291
2349
|
<div class="p-autocomplete-list-container" [style.max-height]="virtualScroll ? 'auto' : scrollHeight">
|
2292
2350
|
<p-scroller
|
2293
2351
|
*ngIf="virtualScroll"
|
@@ -2303,9 +2361,9 @@ class AutoComplete extends BaseComponent {
|
|
2303
2361
|
<ng-template #content let-items let-scrollerOptions="options">
|
2304
2362
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
2305
2363
|
</ng-template>
|
2306
|
-
<ng-container *ngIf="loaderTemplate">
|
2364
|
+
<ng-container *ngIf="loaderTemplate || _loaderTemplate">
|
2307
2365
|
<ng-template #loader let-scrollerOptions="options">
|
2308
|
-
<ng-container *ngTemplateOutlet="
|
2366
|
+
<ng-container *ngTemplateOutlet="loaderTemplate || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
|
2309
2367
|
</ng-template>
|
2310
2368
|
</ng-container>
|
2311
2369
|
</p-scroller>
|
@@ -2339,10 +2397,10 @@ class AutoComplete extends BaseComponent {
|
|
2339
2397
|
(click)="onOptionSelect($event, option)"
|
2340
2398
|
(mouseenter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
|
2341
2399
|
>
|
2342
|
-
<span *ngIf="!itemTemplate">{{ getOptionLabel(option) }}</span>
|
2400
|
+
<span *ngIf="!itemTemplate && !_itemTemplate">{{ getOptionLabel(option) }}</span>
|
2343
2401
|
<ng-container
|
2344
2402
|
*ngTemplateOutlet="
|
2345
|
-
itemTemplate;
|
2403
|
+
itemTemplate || _itemTemplate;
|
2346
2404
|
context: {
|
2347
2405
|
$implicit: option,
|
2348
2406
|
index: scrollerOptions.getOptions ? scrollerOptions.getOptions(i) : i
|
@@ -2353,14 +2411,14 @@ class AutoComplete extends BaseComponent {
|
|
2353
2411
|
</ng-container>
|
2354
2412
|
</ng-template>
|
2355
2413
|
<li *ngIf="!items || (items && items.length === 0 && showEmptyMessage)" class="p-autocomplete-empty-message" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2356
|
-
<ng-container *ngIf="!emptyTemplate; else empty">
|
2414
|
+
<ng-container *ngIf="!emptyTemplate && !_emptyTemplate; else empty">
|
2357
2415
|
{{ searchResultMessageText }}
|
2358
2416
|
</ng-container>
|
2359
|
-
<ng-container #empty *ngTemplateOutlet="emptyTemplate"></ng-container>
|
2417
|
+
<ng-container #empty *ngTemplateOutlet="emptyTemplate || _emptyTemplate"></ng-container>
|
2360
2418
|
</li>
|
2361
2419
|
</ul>
|
2362
2420
|
</ng-template>
|
2363
|
-
<ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
|
2421
|
+
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|
2364
2422
|
</div>
|
2365
2423
|
<span role="status" aria-live="polite" class="p-hidden-accessible">
|
2366
2424
|
{{ selectedMessageText }}
|
@@ -2591,7 +2649,7 @@ class AutoComplete extends BaseComponent {
|
|
2591
2649
|
}], footerTemplate: [{
|
2592
2650
|
type: ContentChild,
|
2593
2651
|
args: ['footer']
|
2594
|
-
}],
|
2652
|
+
}], selectedItemTemplate: [{
|
2595
2653
|
type: ContentChild,
|
2596
2654
|
args: ['selecteditem']
|
2597
2655
|
}], groupTemplate: [{
|
@@ -2600,20 +2658,23 @@ class AutoComplete extends BaseComponent {
|
|
2600
2658
|
}], loaderTemplate: [{
|
2601
2659
|
type: ContentChild,
|
2602
2660
|
args: ['loader']
|
2603
|
-
}],
|
2661
|
+
}], removeIconTemplate: [{
|
2604
2662
|
type: ContentChild,
|
2605
2663
|
args: ['removeicon']
|
2606
|
-
}],
|
2664
|
+
}], loadingIconTemplate: [{
|
2607
2665
|
type: ContentChild,
|
2608
2666
|
args: ['loadingicon']
|
2609
|
-
}],
|
2667
|
+
}], clearIconTemplate: [{
|
2610
2668
|
type: ContentChild,
|
2611
2669
|
args: ['clearicon']
|
2612
|
-
}],
|
2670
|
+
}], dropdownIconTemplate: [{
|
2613
2671
|
type: ContentChild,
|
2614
2672
|
args: ['dropdownicon']
|
2673
|
+
}], templates: [{
|
2674
|
+
type: ContentChildren,
|
2675
|
+
args: [PrimeTemplate]
|
2615
2676
|
}] }); })();
|
2616
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AutoComplete, { className: "AutoComplete", filePath: "autocomplete.ts", lineNumber:
|
2677
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AutoComplete, { className: "AutoComplete", filePath: "autocomplete.ts", lineNumber: 290 }); })();
|
2617
2678
|
class AutoCompleteModule {
|
2618
2679
|
static ɵfac = function AutoCompleteModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AutoCompleteModule)(); };
|
2619
2680
|
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AutoCompleteModule });
|