primeng 18.0.0-rc.2 → 18.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/LICENSE.md +1 -1
- package/autocomplete/autocomplete.d.ts +11 -11
- package/config/primeng.d.ts +12 -6
- package/config/provideprimeng.d.ts +1 -12
- package/config/themeprovider.d.ts +10 -4
- package/confirmdialog/confirmdialog.d.ts +1 -0
- package/esm2022/autocomplete/autocomplete.mjs +131 -133
- package/esm2022/autocomplete/style/autocompletestyle.mjs +5 -4
- package/esm2022/calendar/calendar.mjs +2 -2
- package/esm2022/colorpicker/colorpicker.mjs +2 -2
- package/esm2022/config/primeng.mjs +14 -18
- package/esm2022/config/provideprimeng.mjs +11 -3
- package/esm2022/config/themeprovider.mjs +10 -16
- package/esm2022/confirmdialog/confirmdialog.mjs +10 -5
- package/esm2022/contextmenu/contextmenu.mjs +2 -2
- package/esm2022/datepicker/datepicker.mjs +5 -5
- package/esm2022/dialog/dialog.mjs +16 -16
- package/esm2022/drawer/drawer.mjs +4 -4
- package/esm2022/dropdown/dropdown.mjs +1 -1
- package/esm2022/dynamicdialog/dialogservice.mjs +2 -2
- package/esm2022/image/image.mjs +2 -2
- package/esm2022/inputmask/inputmask.mjs +4 -4
- package/esm2022/inputnumber/inputnumber.mjs +4 -4
- package/esm2022/inputotp/inputotp.mjs +4 -4
- package/esm2022/inputtext/inputtext.mjs +11 -10
- package/esm2022/menu/menu.mjs +2 -2
- package/esm2022/multiselect/style/multiselectstyle.mjs +1 -4
- package/esm2022/overlay/style/overlaystyle.mjs +2 -2
- package/esm2022/overlaypanel/overlaypanel.mjs +2 -2
- package/esm2022/password/password.mjs +28 -5
- package/esm2022/picklist/picklist.mjs +132 -108
- package/esm2022/popover/popover.mjs +2 -2
- package/esm2022/ripple/ripple.mjs +5 -2
- package/esm2022/select/select.mjs +5 -4
- package/esm2022/select/style/selectstyle.mjs +2 -5
- package/esm2022/sidebar/sidebar.mjs +2 -2
- package/esm2022/splitter/splitter.mjs +25 -15
- package/esm2022/splitter/style/splitterstyle.mjs +5 -4
- package/esm2022/table/table.mjs +6331 -6484
- package/esm2022/textarea/textarea.mjs +9 -9
- package/esm2022/tieredmenu/tieredmenu.mjs +2 -2
- package/esm2022/tooltip/tooltip.mjs +2 -2
- package/esm2022/tree/style/treestyle.mjs +13 -3
- package/esm2022/tree/tree.mjs +95 -54
- package/esm2022/treeselect/style/treeselectstyle.mjs +1 -4
- package/esm2022/treeselect/treeselect.mjs +2 -2
- package/fesm2022/primeng-autocomplete.mjs +134 -135
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +1 -1
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-colorpicker.mjs +1 -1
- package/fesm2022/primeng-colorpicker.mjs.map +1 -1
- package/fesm2022/primeng-config.mjs +38 -39
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +9 -4
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +1 -1
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +4 -4
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +15 -15
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +3 -3
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +1 -1
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +3 -3
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +3 -3
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +3 -3
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-inputtext.mjs +10 -9
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +1 -1
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +0 -3
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +1 -1
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +1 -1
- package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +27 -4
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +131 -107
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +1 -1
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-ripple.mjs +4 -1
- package/fesm2022/primeng-ripple.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +5 -7
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-sidebar.mjs +1 -1
- package/fesm2022/primeng-sidebar.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +28 -17
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +6333 -6486
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +8 -8
- package/fesm2022/primeng-textarea.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +1 -1
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +1 -1
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +106 -55
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +1 -4
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/inputtext/inputtext.d.ts +2 -2
- package/package.json +256 -256
- package/password/password.d.ts +5 -1
- package/splitter/splitter.d.ts +2 -3
- package/splitter/style/splitterstyle.d.ts +0 -13
- package/table/table.d.ts +928 -1030
- package/textarea/textarea.d.ts +2 -2
- package/tree/style/treestyle.d.ts +1 -1
- package/tree/tree.d.ts +4 -2
@@ -86,9 +86,6 @@ const theme = ({ dt }) => `
|
|
86
86
|
}
|
87
87
|
|
88
88
|
.p-autocomplete-overlay {
|
89
|
-
position: absolute;
|
90
|
-
top: 0;
|
91
|
-
left: 0;
|
92
89
|
background: ${dt('autocomplete.overlay.background')};
|
93
90
|
color: ${dt('autocomplete.overlay.color')};
|
94
91
|
border: 1px solid ${dt('autocomplete.overlay.border.color')};
|
@@ -283,6 +280,10 @@ const theme = ({ dt }) => `
|
|
283
280
|
color: ${dt('autocomplete.dropdown.color')};
|
284
281
|
}
|
285
282
|
|
283
|
+
.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-clear-icon {
|
284
|
+
right: calc(${dt('autocomplete.padding.x')} + ${dt('autocomplete.dropdown.width')});
|
285
|
+
}
|
286
|
+
|
286
287
|
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input,
|
287
288
|
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input-multiple {
|
288
289
|
border-color: ${dt('autocomplete.invalid.border.color')};
|
@@ -451,19 +452,19 @@ const _c25 = () => ({});
|
|
451
452
|
const _c26 = (a0, a1) => ({ $implicit: a0, index: a1 });
|
452
453
|
function AutoComplete_input_2_Template(rf, ctx) { if (rf & 1) {
|
453
454
|
const _r2 = i0.ɵɵgetCurrentView();
|
454
|
-
i0.ɵɵelementStart(0, "input",
|
455
|
+
i0.ɵɵelementStart(0, "input", 19, 3);
|
455
456
|
i0.ɵɵlistener("input", function AutoComplete_input_2_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInput($event)); })("keydown", function AutoComplete_input_2_Template_input_keydown_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onKeyDown($event)); })("change", function AutoComplete_input_2_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputChange($event)); })("focus", function AutoComplete_input_2_Template_input_focus_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputFocus($event)); })("blur", function AutoComplete_input_2_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputBlur($event)); })("paste", function AutoComplete_input_2_Template_input_paste_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputPaste($event)); })("keyup", function AutoComplete_input_2_Template_input_keyup_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputKeyUp($event)); });
|
456
457
|
i0.ɵɵelementEnd();
|
457
458
|
} if (rf & 2) {
|
458
459
|
let tmp_26_0;
|
459
460
|
const ctx_r2 = i0.ɵɵnextContext();
|
460
461
|
i0.ɵɵclassMap(ctx_r2.inputStyleClass);
|
461
|
-
i0.ɵɵproperty("pAutoFocus", ctx_r2.autofocus)("ngClass", "p-autocomplete-input")("ngStyle", ctx_r2.inputStyle)("type", ctx_r2.type)("variant", ctx_r2.variant)("autocomplete", ctx_r2.autocomplete)("required", ctx_r2.required)("name", ctx_r2.name)("
|
462
|
+
i0.ɵɵproperty("pAutoFocus", ctx_r2.autofocus)("ngClass", "p-autocomplete-input")("ngStyle", ctx_r2.inputStyle)("type", ctx_r2.type)("variant", ctx_r2.variant)("autocomplete", ctx_r2.autocomplete)("required", ctx_r2.required)("name", ctx_r2.name)("pSize", ctx_r2.size)("tabindex", !ctx_r2.disabled ? ctx_r2.tabindex : -1)("readonly", ctx_r2.readonly)("disabled", ctx_r2.disabled)("fluid", ctx_r2.hasFluid());
|
462
463
|
i0.ɵɵattribute("value", ctx_r2.inputValue())("id", ctx_r2.inputId)("placeholder", ctx_r2.placeholder)("maxlength", ctx_r2.maxlength)("aria-label", ctx_r2.ariaLabel)("aria-labelledby", ctx_r2.ariaLabelledBy)("aria-required", ctx_r2.required)("aria-expanded", (tmp_26_0 = ctx_r2.overlayVisible) !== null && tmp_26_0 !== undefined ? tmp_26_0 : false)("aria-controls", ctx_r2.overlayVisible ? ctx_r2.id + "_list" : null)("aria-activedescendant", ctx_r2.focused ? ctx_r2.focusedOptionId : undefined);
|
463
464
|
} }
|
464
465
|
function AutoComplete_ng_container_3_TimesIcon_1_Template(rf, ctx) { if (rf & 1) {
|
465
466
|
const _r4 = i0.ɵɵgetCurrentView();
|
466
|
-
i0.ɵɵelementStart(0, "TimesIcon",
|
467
|
+
i0.ɵɵelementStart(0, "TimesIcon", 22);
|
467
468
|
i0.ɵɵlistener("click", function AutoComplete_ng_container_3_TimesIcon_1_Template_TimesIcon_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.clear()); });
|
468
469
|
i0.ɵɵelementEnd();
|
469
470
|
} if (rf & 2) {
|
@@ -476,35 +477,35 @@ function AutoComplete_ng_container_3_span_2_1_Template(rf, ctx) { if (rf & 1) {
|
|
476
477
|
} }
|
477
478
|
function AutoComplete_ng_container_3_span_2_Template(rf, ctx) { if (rf & 1) {
|
478
479
|
const _r5 = i0.ɵɵgetCurrentView();
|
479
|
-
i0.ɵɵelementStart(0, "span",
|
480
|
+
i0.ɵɵelementStart(0, "span", 23);
|
480
481
|
i0.ɵɵlistener("click", function AutoComplete_ng_container_3_span_2_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.clear()); });
|
481
|
-
i0.ɵɵtemplate(1, AutoComplete_ng_container_3_span_2_1_Template, 1, 0, null,
|
482
|
+
i0.ɵɵtemplate(1, AutoComplete_ng_container_3_span_2_1_Template, 1, 0, null, 24);
|
482
483
|
i0.ɵɵelementEnd();
|
483
484
|
} if (rf & 2) {
|
484
485
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
485
486
|
i0.ɵɵattribute("aria-hidden", true);
|
486
487
|
i0.ɵɵadvance();
|
487
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
488
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.cleariconTemplate);
|
488
489
|
} }
|
489
490
|
function AutoComplete_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
490
491
|
i0.ɵɵelementContainerStart(0);
|
491
|
-
i0.ɵɵtemplate(1, AutoComplete_ng_container_3_TimesIcon_1_Template, 1, 2, "TimesIcon",
|
492
|
+
i0.ɵɵtemplate(1, AutoComplete_ng_container_3_TimesIcon_1_Template, 1, 2, "TimesIcon", 20)(2, AutoComplete_ng_container_3_span_2_Template, 2, 2, "span", 21);
|
492
493
|
i0.ɵɵelementContainerEnd();
|
493
494
|
} if (rf & 2) {
|
494
495
|
const ctx_r2 = i0.ɵɵnextContext();
|
495
496
|
i0.ɵɵadvance();
|
496
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
497
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.cleariconTemplate);
|
497
498
|
i0.ɵɵadvance();
|
498
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
499
|
+
i0.ɵɵproperty("ngIf", ctx_r2.cleariconTemplate);
|
499
500
|
} }
|
500
501
|
function AutoComplete_ul_4_li_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
501
502
|
i0.ɵɵelementContainer(0);
|
502
503
|
} }
|
503
504
|
function AutoComplete_ul_4_li_2_p_chip_3_ng_container_1_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
504
505
|
const _r7 = i0.ɵɵgetCurrentView();
|
505
|
-
i0.ɵɵelementStart(0, "span",
|
506
|
+
i0.ɵɵelementStart(0, "span", 33);
|
506
507
|
i0.ɵɵlistener("click", function AutoComplete_ul_4_li_2_p_chip_3_ng_container_1_ng_template_1_Template_span_click_0_listener($event) { i0.ɵɵrestoreView(_r7); const i_r8 = i0.ɵɵnextContext(3).index; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(!ctx_r2.readonly ? ctx_r2.removeOption($event, i_r8) : ""); });
|
507
|
-
i0.ɵɵelement(1, "TimesCircleIcon",
|
508
|
+
i0.ɵɵelement(1, "TimesCircleIcon", 34);
|
508
509
|
i0.ɵɵelementEnd();
|
509
510
|
} if (rf & 2) {
|
510
511
|
i0.ɵɵadvance();
|
@@ -517,15 +518,15 @@ function AutoComplete_ul_4_li_2_p_chip_3_ng_container_1_Template(rf, ctx) { if (
|
|
517
518
|
i0.ɵɵelementContainerEnd();
|
518
519
|
} }
|
519
520
|
function AutoComplete_ul_4_li_2_p_chip_3_Template(rf, ctx) { if (rf & 1) {
|
520
|
-
i0.ɵɵelementStart(0, "p-chip",
|
521
|
-
i0.ɵɵtemplate(1, AutoComplete_ul_4_li_2_p_chip_3_ng_container_1_Template, 3, 0, "ng-container",
|
521
|
+
i0.ɵɵelementStart(0, "p-chip", 32);
|
522
|
+
i0.ɵɵtemplate(1, AutoComplete_ul_4_li_2_p_chip_3_ng_container_1_Template, 3, 0, "ng-container", 15);
|
522
523
|
i0.ɵɵelementEnd();
|
523
524
|
} if (rf & 2) {
|
524
525
|
const option_r9 = i0.ɵɵnextContext().$implicit;
|
525
526
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
526
527
|
i0.ɵɵproperty("label", ctx_r2.getOptionLabel(option_r9))("removable", true);
|
527
528
|
i0.ɵɵadvance();
|
528
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
529
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.removeiconTemplate);
|
529
530
|
} }
|
530
531
|
function AutoComplete_ul_4_li_2_span_4_1_ng_template_0_Template(rf, ctx) { }
|
531
532
|
function AutoComplete_ul_4_li_2_span_4_1_Template(rf, ctx) { if (rf & 1) {
|
@@ -533,17 +534,17 @@ function AutoComplete_ul_4_li_2_span_4_1_Template(rf, ctx) { if (rf & 1) {
|
|
533
534
|
} }
|
534
535
|
function AutoComplete_ul_4_li_2_span_4_Template(rf, ctx) { if (rf & 1) {
|
535
536
|
i0.ɵɵelementStart(0, "span");
|
536
|
-
i0.ɵɵtemplate(1, AutoComplete_ul_4_li_2_span_4_1_Template, 1, 0, null,
|
537
|
+
i0.ɵɵtemplate(1, AutoComplete_ul_4_li_2_span_4_1_Template, 1, 0, null, 30);
|
537
538
|
i0.ɵɵelementEnd();
|
538
539
|
} if (rf & 2) {
|
539
540
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
540
541
|
i0.ɵɵattribute("aria-hidden", true);
|
541
542
|
i0.ɵɵadvance();
|
542
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
543
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.removeiconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction0(3, _c21));
|
543
544
|
} }
|
544
545
|
function AutoComplete_ul_4_li_2_Template(rf, ctx) { if (rf & 1) {
|
545
|
-
i0.ɵɵelementStart(0, "li",
|
546
|
-
i0.ɵɵtemplate(2, AutoComplete_ul_4_li_2_ng_container_2_Template, 1, 0, "ng-container",
|
546
|
+
i0.ɵɵelementStart(0, "li", 29, 5);
|
547
|
+
i0.ɵɵtemplate(2, AutoComplete_ul_4_li_2_ng_container_2_Template, 1, 0, "ng-container", 30)(3, AutoComplete_ul_4_li_2_p_chip_3_Template, 2, 3, "p-chip", 31)(4, AutoComplete_ul_4_li_2_span_4_Template, 2, 4, "span", 15);
|
547
548
|
i0.ɵɵelementEnd();
|
548
549
|
} if (rf & 2) {
|
549
550
|
const option_r9 = ctx.$implicit;
|
@@ -552,18 +553,18 @@ function AutoComplete_ul_4_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
552
553
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c19, ctx_r2.focusedMultipleOptionIndex() === i_r8));
|
553
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);
|
554
555
|
i0.ɵɵadvance(2);
|
555
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
556
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.selecteditemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(12, _c20, option_r9));
|
556
557
|
i0.ɵɵadvance();
|
557
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
558
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.selecteditemTemplate);
|
558
559
|
i0.ɵɵadvance();
|
559
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
560
|
+
i0.ɵɵproperty("ngIf", ctx_r2.removeiconTemplate);
|
560
561
|
} }
|
561
562
|
function AutoComplete_ul_4_Template(rf, ctx) { if (rf & 1) {
|
562
563
|
const _r6 = i0.ɵɵgetCurrentView();
|
563
|
-
i0.ɵɵelementStart(0, "ul",
|
564
|
+
i0.ɵɵelementStart(0, "ul", 25, 4);
|
564
565
|
i0.ɵɵlistener("focus", function AutoComplete_ul_4_Template_ul_focus_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onMultipleContainerFocus($event)); })("blur", function AutoComplete_ul_4_Template_ul_blur_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onMultipleContainerBlur($event)); })("keydown", function AutoComplete_ul_4_Template_ul_keydown_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onMultipleContainerKeyDown($event)); });
|
565
|
-
i0.ɵɵtemplate(2, AutoComplete_ul_4_li_2_Template, 5, 14, "li",
|
566
|
-
i0.ɵɵelementStart(3, "li",
|
566
|
+
i0.ɵɵtemplate(2, AutoComplete_ul_4_li_2_Template, 5, 14, "li", 26);
|
567
|
+
i0.ɵɵelementStart(3, "li", 27)(4, "input", 28, 3);
|
567
568
|
i0.ɵɵlistener("input", function AutoComplete_ul_4_Template_input_input_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInput($event)); })("keydown", function AutoComplete_ul_4_Template_input_keydown_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onKeyDown($event)); })("change", function AutoComplete_ul_4_Template_input_change_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputChange($event)); })("focus", function AutoComplete_ul_4_Template_input_focus_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputFocus($event)); })("blur", function AutoComplete_ul_4_Template_input_blur_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputBlur($event)); })("paste", function AutoComplete_ul_4_Template_input_paste_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputPaste($event)); })("keyup", function AutoComplete_ul_4_Template_input_keyup_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputKeyUp($event)); });
|
568
569
|
i0.ɵɵelementEnd()()();
|
569
570
|
} if (rf & 2) {
|
@@ -579,7 +580,7 @@ function AutoComplete_ul_4_Template(rf, ctx) { if (rf & 1) {
|
|
579
580
|
i0.ɵɵattribute("type", ctx_r2.type)("id", ctx_r2.inputId)("name", ctx_r2.name)("placeholder", !ctx_r2.filled ? ctx_r2.placeholder : null)("maxlength", ctx_r2.maxlength)("aria-label", ctx_r2.ariaLabel)("aria-labelledby", ctx_r2.ariaLabelledBy)("aria-required", ctx_r2.required)("aria-expanded", (tmp_28_0 = ctx_r2.overlayVisible) !== null && tmp_28_0 !== undefined ? tmp_28_0 : false)("aria-controls", ctx_r2.overlayVisible ? ctx_r2.id + "_list" : null)("aria-activedescendant", ctx_r2.focused ? ctx_r2.focusedOptionId : undefined);
|
580
581
|
} }
|
581
582
|
function AutoComplete_ng_container_5_SpinnerIcon_1_Template(rf, ctx) { if (rf & 1) {
|
582
|
-
i0.ɵɵelement(0, "SpinnerIcon",
|
583
|
+
i0.ɵɵelement(0, "SpinnerIcon", 37);
|
583
584
|
} if (rf & 2) {
|
584
585
|
i0.ɵɵproperty("styleClass", "p-autocomplete-loader")("spin", true);
|
585
586
|
i0.ɵɵattribute("aria-hidden", true);
|
@@ -589,28 +590,28 @@ function AutoComplete_ng_container_5_span_2_1_Template(rf, ctx) { if (rf & 1) {
|
|
589
590
|
i0.ɵɵtemplate(0, AutoComplete_ng_container_5_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
|
590
591
|
} }
|
591
592
|
function AutoComplete_ng_container_5_span_2_Template(rf, ctx) { if (rf & 1) {
|
592
|
-
i0.ɵɵelementStart(0, "span",
|
593
|
-
i0.ɵɵtemplate(1, AutoComplete_ng_container_5_span_2_1_Template, 1, 0, null,
|
593
|
+
i0.ɵɵelementStart(0, "span", 38);
|
594
|
+
i0.ɵɵtemplate(1, AutoComplete_ng_container_5_span_2_1_Template, 1, 0, null, 24);
|
594
595
|
i0.ɵɵelementEnd();
|
595
596
|
} if (rf & 2) {
|
596
597
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
597
598
|
i0.ɵɵattribute("aria-hidden", true);
|
598
599
|
i0.ɵɵadvance();
|
599
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
600
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.loadingiconTemplate);
|
600
601
|
} }
|
601
602
|
function AutoComplete_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
602
603
|
i0.ɵɵelementContainerStart(0);
|
603
|
-
i0.ɵɵtemplate(1, AutoComplete_ng_container_5_SpinnerIcon_1_Template, 1, 3, "SpinnerIcon",
|
604
|
+
i0.ɵɵtemplate(1, AutoComplete_ng_container_5_SpinnerIcon_1_Template, 1, 3, "SpinnerIcon", 35)(2, AutoComplete_ng_container_5_span_2_Template, 2, 2, "span", 36);
|
604
605
|
i0.ɵɵelementContainerEnd();
|
605
606
|
} if (rf & 2) {
|
606
607
|
const ctx_r2 = i0.ɵɵnextContext();
|
607
608
|
i0.ɵɵadvance();
|
608
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
609
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.loadingiconTemplate);
|
609
610
|
i0.ɵɵadvance();
|
610
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
611
|
+
i0.ɵɵproperty("ngIf", ctx_r2.loadingiconTemplate);
|
611
612
|
} }
|
612
613
|
function AutoComplete_button_6_span_2_Template(rf, ctx) { if (rf & 1) {
|
613
|
-
i0.ɵɵelement(0, "span",
|
614
|
+
i0.ɵɵelement(0, "span", 41);
|
614
615
|
} if (rf & 2) {
|
615
616
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
616
617
|
i0.ɵɵproperty("ngClass", ctx_r2.dropdownIcon);
|
@@ -625,20 +626,20 @@ function AutoComplete_button_6_ng_container_3_2_Template(rf, ctx) { if (rf & 1)
|
|
625
626
|
} }
|
626
627
|
function AutoComplete_button_6_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
627
628
|
i0.ɵɵelementContainerStart(0);
|
628
|
-
i0.ɵɵtemplate(1, AutoComplete_button_6_ng_container_3_ChevronDownIcon_1_Template, 1, 0, "ChevronDownIcon",
|
629
|
+
i0.ɵɵtemplate(1, AutoComplete_button_6_ng_container_3_ChevronDownIcon_1_Template, 1, 0, "ChevronDownIcon", 15)(2, AutoComplete_button_6_ng_container_3_2_Template, 1, 0, null, 24);
|
629
630
|
i0.ɵɵelementContainerEnd();
|
630
631
|
} if (rf & 2) {
|
631
632
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
632
633
|
i0.ɵɵadvance();
|
633
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
634
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.dropdowniconTemplate);
|
634
635
|
i0.ɵɵadvance();
|
635
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
636
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.dropdowniconTemplate);
|
636
637
|
} }
|
637
638
|
function AutoComplete_button_6_Template(rf, ctx) { if (rf & 1) {
|
638
639
|
const _r10 = i0.ɵɵgetCurrentView();
|
639
|
-
i0.ɵɵelementStart(0, "button",
|
640
|
+
i0.ɵɵelementStart(0, "button", 39, 7);
|
640
641
|
i0.ɵɵlistener("click", function AutoComplete_button_6_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.handleDropdownClick($event)); });
|
641
|
-
i0.ɵɵtemplate(2, AutoComplete_button_6_span_2_Template, 1, 2, "span",
|
642
|
+
i0.ɵɵtemplate(2, AutoComplete_button_6_span_2_Template, 1, 2, "span", 40)(3, AutoComplete_button_6_ng_container_3_Template, 3, 2, "ng-container", 15);
|
642
643
|
i0.ɵɵelementEnd();
|
643
644
|
} if (rf & 2) {
|
644
645
|
const ctx_r2 = i0.ɵɵnextContext();
|
@@ -656,7 +657,7 @@ function AutoComplete_ng_template_9_p_scroller_3_ng_template_2_ng_container_0_Te
|
|
656
657
|
i0.ɵɵelementContainer(0);
|
657
658
|
} }
|
658
659
|
function AutoComplete_ng_template_9_p_scroller_3_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
659
|
-
i0.ɵɵtemplate(0, AutoComplete_ng_template_9_p_scroller_3_ng_template_2_ng_container_0_Template, 1, 0, "ng-container",
|
660
|
+
i0.ɵɵtemplate(0, AutoComplete_ng_template_9_p_scroller_3_ng_template_2_ng_container_0_Template, 1, 0, "ng-container", 30);
|
660
661
|
} if (rf & 2) {
|
661
662
|
const items_r12 = ctx.$implicit;
|
662
663
|
const scrollerOptions_r13 = ctx.options;
|
@@ -668,7 +669,7 @@ function AutoComplete_ng_template_9_p_scroller_3_ng_container_4_ng_template_1_ng
|
|
668
669
|
i0.ɵɵelementContainer(0);
|
669
670
|
} }
|
670
671
|
function AutoComplete_ng_template_9_p_scroller_3_ng_container_4_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
671
|
-
i0.ɵɵtemplate(0, AutoComplete_ng_template_9_p_scroller_3_ng_container_4_ng_template_1_ng_container_0_Template, 1, 0, "ng-container",
|
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);
|
672
673
|
} if (rf & 2) {
|
673
674
|
const scrollerOptions_r15 = ctx.options;
|
674
675
|
i0.ɵɵnextContext();
|
@@ -682,23 +683,23 @@ function AutoComplete_ng_template_9_p_scroller_3_ng_container_4_Template(rf, ctx
|
|
682
683
|
} }
|
683
684
|
function AutoComplete_ng_template_9_p_scroller_3_Template(rf, ctx) { if (rf & 1) {
|
684
685
|
const _r11 = i0.ɵɵgetCurrentView();
|
685
|
-
i0.ɵɵelementStart(0, "p-scroller",
|
686
|
+
i0.ɵɵelementStart(0, "p-scroller", 46, 9);
|
686
687
|
i0.ɵɵlistener("onLazyLoad", function AutoComplete_ng_template_9_p_scroller_3_Template_p_scroller_onLazyLoad_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onLazyLoad.emit($event)); });
|
687
|
-
i0.ɵɵtemplate(2, AutoComplete_ng_template_9_p_scroller_3_ng_template_2_Template, 1, 5, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(4, AutoComplete_ng_template_9_p_scroller_3_ng_container_4_Template, 3, 0, "ng-container",
|
688
|
+
i0.ɵɵtemplate(2, AutoComplete_ng_template_9_p_scroller_3_ng_template_2_Template, 1, 5, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(4, AutoComplete_ng_template_9_p_scroller_3_ng_container_4_Template, 3, 0, "ng-container", 15);
|
688
689
|
i0.ɵɵelementEnd();
|
689
690
|
} if (rf & 2) {
|
690
691
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
691
692
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(8, _c22, ctx_r2.scrollHeight));
|
692
693
|
i0.ɵɵproperty("items", ctx_r2.visibleOptions())("itemSize", ctx_r2.virtualScrollItemSize || ctx_r2._itemSize)("autoSize", true)("lazy", ctx_r2.lazy)("options", ctx_r2.virtualScrollOptions);
|
693
694
|
i0.ɵɵadvance(4);
|
694
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
695
|
+
i0.ɵɵproperty("ngIf", ctx_r2.loaderTemplate);
|
695
696
|
} }
|
696
697
|
function AutoComplete_ng_template_9_ng_container_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
697
698
|
i0.ɵɵelementContainer(0);
|
698
699
|
} }
|
699
700
|
function AutoComplete_ng_template_9_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
700
701
|
i0.ɵɵelementContainerStart(0);
|
701
|
-
i0.ɵɵtemplate(1, AutoComplete_ng_template_9_ng_container_4_ng_container_1_Template, 1, 0, "ng-container",
|
702
|
+
i0.ɵɵtemplate(1, AutoComplete_ng_template_9_ng_container_4_ng_container_1_Template, 1, 0, "ng-container", 30);
|
702
703
|
i0.ɵɵelementContainerEnd();
|
703
704
|
} if (rf & 2) {
|
704
705
|
i0.ɵɵnextContext();
|
@@ -722,8 +723,8 @@ function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_n
|
|
722
723
|
} }
|
723
724
|
function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
724
725
|
i0.ɵɵelementContainerStart(0);
|
725
|
-
i0.ɵɵelementStart(1, "li",
|
726
|
-
i0.ɵɵtemplate(2, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_span_2_Template, 2, 1, "span",
|
726
|
+
i0.ɵɵelementStart(1, "li", 50);
|
727
|
+
i0.ɵɵtemplate(2, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_span_2_Template, 2, 1, "span", 15)(3, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_ng_container_3_Template, 1, 0, "ng-container", 30);
|
727
728
|
i0.ɵɵelementEnd();
|
728
729
|
i0.ɵɵelementContainerEnd();
|
729
730
|
} if (rf & 2) {
|
@@ -756,9 +757,9 @@ function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_n
|
|
756
757
|
function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
757
758
|
const _r21 = i0.ɵɵgetCurrentView();
|
758
759
|
i0.ɵɵelementContainerStart(0);
|
759
|
-
i0.ɵɵelementStart(1, "li",
|
760
|
+
i0.ɵɵelementStart(1, "li", 51);
|
760
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(_r21); const option_r17 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onOptionSelect($event, option_r17)); })("mouseenter", function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template_li_mouseenter_1_listener($event) { i0.ɵɵrestoreView(_r21); const i_r19 = i0.ɵɵnextContext().index; const scrollerOptions_r20 = i0.ɵɵnextContext().options; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onOptionMouseEnter($event, ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20))); });
|
761
|
-
i0.ɵɵtemplate(2, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_span_2_Template, 2, 1, "span",
|
762
|
+
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);
|
762
763
|
i0.ɵɵelementEnd();
|
763
764
|
i0.ɵɵelementContainerEnd();
|
764
765
|
} if (rf & 2) {
|
@@ -771,12 +772,12 @@ function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_T
|
|
771
772
|
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c22, scrollerOptions_r20.itemSize + "px"))("ngClass", ctx_r2.optionClass(option_r17, i_r19, scrollerOptions_r20));
|
772
773
|
i0.ɵɵattribute("id", ctx_r2.id + "_" + ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20))("aria-label", ctx_r2.getOptionLabel(option_r17))("aria-selected", ctx_r2.isSelected(option_r17))("aria-disabled", ctx_r2.isOptionDisabled(option_r17))("data-p-focused", ctx_r2.focusedOptionIndex() === ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20))("aria-setsize", ctx_r2.ariaSetSize)("aria-posinset", ctx_r2.getAriaPosInset(ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20)));
|
773
774
|
i0.ɵɵadvance();
|
774
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
775
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.itemTemplate);
|
775
776
|
i0.ɵɵadvance();
|
776
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
777
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(14, _c26, option_r17, scrollerOptions_r20.getOptions ? scrollerOptions_r20.getOptions(i_r19) : i_r19));
|
777
778
|
} }
|
778
779
|
function AutoComplete_ng_template_9_ng_template_5_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
779
|
-
i0.ɵɵtemplate(0, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_Template, 4, 9, "ng-container",
|
780
|
+
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);
|
780
781
|
} if (rf & 2) {
|
781
782
|
const option_r17 = ctx.$implicit;
|
782
783
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
@@ -784,35 +785,34 @@ function AutoComplete_ng_template_9_ng_template_5_ng_template_2_Template(rf, ctx
|
|
784
785
|
i0.ɵɵadvance();
|
785
786
|
i0.ɵɵproperty("ngIf", !ctx_r2.isOptionGroup(option_r17));
|
786
787
|
} }
|
787
|
-
function
|
788
|
-
i0.ɵɵ
|
788
|
+
function AutoComplete_ng_template_9_ng_template_5_li_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
789
|
+
i0.ɵɵelementContainerStart(0);
|
790
|
+
i0.ɵɵtext(1);
|
791
|
+
i0.ɵɵelementContainerEnd();
|
789
792
|
} if (rf & 2) {
|
790
793
|
const ctx_r2 = i0.ɵɵnextContext(4);
|
794
|
+
i0.ɵɵadvance();
|
791
795
|
i0.ɵɵtextInterpolate1(" ", ctx_r2.searchResultMessageText, " ");
|
792
796
|
} }
|
793
|
-
function
|
794
|
-
i0.ɵɵelementContainer(0);
|
795
|
-
} }
|
796
|
-
function AutoComplete_ng_template_9_ng_template_5_li_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
797
|
-
i0.ɵɵtemplate(0, AutoComplete_ng_template_9_ng_template_5_li_3_Conditional_2_ng_container_0_Template, 1, 0, "ng-container", 23);
|
798
|
-
} if (rf & 2) {
|
799
|
-
const ctx_r2 = i0.ɵɵnextContext(4);
|
800
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.empty);
|
797
|
+
function AutoComplete_ng_template_9_ng_template_5_li_3_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
798
|
+
i0.ɵɵelementContainer(0, null, 12);
|
801
799
|
} }
|
802
800
|
function AutoComplete_ng_template_9_ng_template_5_li_3_Template(rf, ctx) { if (rf & 1) {
|
803
|
-
i0.ɵɵelementStart(0, "li",
|
804
|
-
i0.ɵɵtemplate(1,
|
801
|
+
i0.ɵɵelementStart(0, "li", 52);
|
802
|
+
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);
|
805
803
|
i0.ɵɵelementEnd();
|
806
804
|
} if (rf & 2) {
|
807
805
|
const scrollerOptions_r20 = i0.ɵɵnextContext().options;
|
808
806
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
809
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(
|
807
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c22, scrollerOptions_r20.itemSize + "px"));
|
808
|
+
i0.ɵɵadvance();
|
809
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.emptyTemplate)("ngIfElse", ctx_r2.empty);
|
810
810
|
i0.ɵɵadvance();
|
811
|
-
i0.ɵɵ
|
811
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.emptyTemplate);
|
812
812
|
} }
|
813
813
|
function AutoComplete_ng_template_9_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
814
|
-
i0.ɵɵelementStart(0, "ul",
|
815
|
-
i0.ɵɵtemplate(2, AutoComplete_ng_template_9_ng_template_5_ng_template_2_Template, 2, 2, "ng-template",
|
814
|
+
i0.ɵɵelementStart(0, "ul", 47, 11);
|
815
|
+
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
816
|
i0.ɵɵelementEnd();
|
817
817
|
} if (rf & 2) {
|
818
818
|
const items_r22 = ctx.$implicit;
|
@@ -830,14 +830,14 @@ function AutoComplete_ng_template_9_ng_container_7_Template(rf, ctx) { if (rf &
|
|
830
830
|
i0.ɵɵelementContainer(0);
|
831
831
|
} }
|
832
832
|
function AutoComplete_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
833
|
-
i0.ɵɵelementStart(0, "div",
|
834
|
-
i0.ɵɵtemplate(1, AutoComplete_ng_template_9_ng_container_1_Template, 1, 0, "ng-container",
|
835
|
-
i0.ɵɵelementStart(2, "div",
|
836
|
-
i0.ɵɵtemplate(3, AutoComplete_ng_template_9_p_scroller_3_Template, 5, 10, "p-scroller",
|
833
|
+
i0.ɵɵelementStart(0, "div", 42);
|
834
|
+
i0.ɵɵtemplate(1, AutoComplete_ng_template_9_ng_container_1_Template, 1, 0, "ng-container", 24);
|
835
|
+
i0.ɵɵelementStart(2, "div", 43);
|
836
|
+
i0.ɵɵtemplate(3, AutoComplete_ng_template_9_p_scroller_3_Template, 5, 10, "p-scroller", 44)(4, AutoComplete_ng_template_9_ng_container_4_Template, 2, 6, "ng-container", 15);
|
837
837
|
i0.ɵɵelementEnd();
|
838
|
-
i0.ɵɵtemplate(5, AutoComplete_ng_template_9_ng_template_5_Template, 4, 7, "ng-template", null, 8, i0.ɵɵtemplateRefExtractor)(7, AutoComplete_ng_template_9_ng_container_7_Template, 1, 0, "ng-container",
|
838
|
+
i0.ɵɵtemplate(5, AutoComplete_ng_template_9_ng_template_5_Template, 4, 7, "ng-template", null, 8, i0.ɵɵtemplateRefExtractor)(7, AutoComplete_ng_template_9_ng_container_7_Template, 1, 0, "ng-container", 24);
|
839
839
|
i0.ɵɵelementEnd();
|
840
|
-
i0.ɵɵelementStart(8, "span",
|
840
|
+
i0.ɵɵelementStart(8, "span", 45);
|
841
841
|
i0.ɵɵtext(9);
|
842
842
|
i0.ɵɵelementEnd();
|
843
843
|
} if (rf & 2) {
|
@@ -845,7 +845,7 @@ function AutoComplete_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
845
845
|
i0.ɵɵclassMap(ctx_r2.panelStyleClass);
|
846
846
|
i0.ɵɵproperty("ngClass", ctx_r2.panelClass)("ngStyle", ctx_r2.panelStyle);
|
847
847
|
i0.ɵɵadvance();
|
848
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
848
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.headerTemplate);
|
849
849
|
i0.ɵɵadvance();
|
850
850
|
i0.ɵɵstyleProp("max-height", ctx_r2.virtualScroll ? "auto" : ctx_r2.scrollHeight);
|
851
851
|
i0.ɵɵadvance();
|
@@ -853,7 +853,7 @@ function AutoComplete_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
853
853
|
i0.ɵɵadvance();
|
854
854
|
i0.ɵɵproperty("ngIf", !ctx_r2.virtualScroll);
|
855
855
|
i0.ɵɵadvance(3);
|
856
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
856
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.footerTemplate);
|
857
857
|
i0.ɵɵadvance(2);
|
858
858
|
i0.ɵɵtextInterpolate1(" ", ctx_r2.selectedMessageText, " ");
|
859
859
|
} }
|
@@ -1297,27 +1297,27 @@ class AutoComplete extends BaseComponent {
|
|
1297
1297
|
* Custom item template.
|
1298
1298
|
* @group Templates
|
1299
1299
|
*/
|
1300
|
-
|
1300
|
+
itemTemplate;
|
1301
1301
|
/**
|
1302
1302
|
* Custom empty message template.
|
1303
1303
|
* @group Templates
|
1304
1304
|
*/
|
1305
|
-
|
1305
|
+
emptyTemplate;
|
1306
1306
|
/**
|
1307
1307
|
* Custom header template.
|
1308
1308
|
* @group Templates
|
1309
1309
|
*/
|
1310
|
-
|
1310
|
+
headerTemplate;
|
1311
1311
|
/**
|
1312
1312
|
* Custom footer template.
|
1313
1313
|
* @group Templates
|
1314
1314
|
*/
|
1315
|
-
|
1315
|
+
footerTemplate;
|
1316
1316
|
/**
|
1317
1317
|
* Custom selected item template.
|
1318
1318
|
* @group Templates
|
1319
1319
|
*/
|
1320
|
-
|
1320
|
+
selecteditemTemplate;
|
1321
1321
|
/**
|
1322
1322
|
* Custom group item template.
|
1323
1323
|
* @group Templates
|
@@ -1327,27 +1327,27 @@ class AutoComplete extends BaseComponent {
|
|
1327
1327
|
* Custom loader template.
|
1328
1328
|
* @group Templates
|
1329
1329
|
*/
|
1330
|
-
|
1330
|
+
loaderTemplate;
|
1331
1331
|
/**
|
1332
1332
|
* Custom remove icon template.
|
1333
1333
|
* @group Templates
|
1334
1334
|
*/
|
1335
|
-
|
1335
|
+
removeiconTemplate;
|
1336
1336
|
/**
|
1337
1337
|
* Custom loading icon template.
|
1338
1338
|
* @group Templates
|
1339
1339
|
*/
|
1340
|
-
|
1340
|
+
loadingiconTemplate;
|
1341
1341
|
/**
|
1342
1342
|
* Custom clear icon template.
|
1343
1343
|
* @group Templates
|
1344
1344
|
*/
|
1345
|
-
|
1345
|
+
cleariconTemplate;
|
1346
1346
|
/**
|
1347
1347
|
* Custom dropdown icon template.
|
1348
1348
|
* @group Templates
|
1349
1349
|
*/
|
1350
|
-
|
1350
|
+
dropdowniconTemplate;
|
1351
1351
|
primeng = inject(PrimeNG);
|
1352
1352
|
value;
|
1353
1353
|
_suggestions = signal(null);
|
@@ -1488,7 +1488,7 @@ class AutoComplete extends BaseComponent {
|
|
1488
1488
|
}
|
1489
1489
|
handleSuggestionsChange() {
|
1490
1490
|
if (this.loading) {
|
1491
|
-
this._suggestions()?.length > 0 ? this.show() : !!this.
|
1491
|
+
this._suggestions()?.length > 0 ? this.show() : !!this.emptyTemplate ? this.show() : this.hide();
|
1492
1492
|
const focusedOptionIndex = this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
1493
1493
|
this.focusedOptionIndex.set(focusedOptionIndex);
|
1494
1494
|
this.suggestionsUpdated = true;
|
@@ -2078,17 +2078,17 @@ class AutoComplete extends BaseComponent {
|
|
2078
2078
|
i0.ɵɵcontentQuery(dirIndex, _c10, 5);
|
2079
2079
|
} if (rf & 2) {
|
2080
2080
|
let _t;
|
2081
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2082
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2083
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2084
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2085
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2081
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemTemplate = _t.first);
|
2082
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emptyTemplate = _t.first);
|
2083
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
|
2084
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);
|
2085
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selecteditemTemplate = _t.first);
|
2086
2086
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.groupTemplate = _t.first);
|
2087
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
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.
|
2087
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loaderTemplate = _t.first);
|
2088
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.removeiconTemplate = _t.first);
|
2089
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loadingiconTemplate = _t.first);
|
2090
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.cleariconTemplate = _t.first);
|
2091
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdowniconTemplate = _t.first);
|
2092
2092
|
} }, viewQuery: function AutoComplete_Query(rf, ctx) { if (rf & 1) {
|
2093
2093
|
i0.ɵɵviewQuery(_c11, 5);
|
2094
2094
|
i0.ɵɵviewQuery(_c12, 5);
|
@@ -2108,12 +2108,12 @@ class AutoComplete extends BaseComponent {
|
|
2108
2108
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemsViewChild = _t.first);
|
2109
2109
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.scroller = _t.first);
|
2110
2110
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayViewChild = _t.first);
|
2111
|
-
} }, inputs: { minLength: [2, "minLength", "minLength", numberAttribute], delay: [2, "delay", "delay", numberAttribute], style: "style", panelStyle: "panelStyle", styleClass: "styleClass", panelStyleClass: "panelStyleClass", inputStyle: "inputStyle", inputId: "inputId", inputStyleClass: "inputStyleClass", placeholder: "placeholder", readonly: [2, "readonly", "readonly", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], scrollHeight: "scrollHeight", lazy: [2, "lazy", "lazy", booleanAttribute], virtualScroll: [2, "virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: [2, "virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", maxlength: [2, "maxlength", "maxlength", (value) => numberAttribute(value, null)], name: "name", required: [2, "required", "required", booleanAttribute], size: "size", appendTo: "appendTo", autoHighlight: [2, "autoHighlight", "autoHighlight", booleanAttribute], forceSelection: [2, "forceSelection", "forceSelection", booleanAttribute], type: "type", autoZIndex: [2, "autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: [2, "baseZIndex", "baseZIndex", numberAttribute], ariaLabel: "ariaLabel", dropdownAriaLabel: "dropdownAriaLabel", ariaLabelledBy: "ariaLabelledBy", dropdownIcon: "dropdownIcon", unique: [2, "unique", "unique", booleanAttribute], group: [2, "group", "group", booleanAttribute], completeOnFocus: [2, "completeOnFocus", "completeOnFocus", booleanAttribute], showClear: [2, "showClear", "showClear", booleanAttribute], field: "field", dropdown: [2, "dropdown", "dropdown", booleanAttribute], showEmptyMessage: [2, "showEmptyMessage", "showEmptyMessage", booleanAttribute], dropdownMode: "dropdownMode", multiple: [2, "multiple", "multiple", booleanAttribute], tabindex: [2, "tabindex", "tabindex", numberAttribute], dataKey: "dataKey", emptyMessage: "emptyMessage", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", autofocus: [2, "autofocus", "autofocus", booleanAttribute], autocomplete: "autocomplete", optionGroupChildren: "optionGroupChildren", optionGroupLabel: "optionGroupLabel", overlayOptions: "overlayOptions", suggestions: "suggestions", itemSize: "itemSize", optionLabel: "optionLabel", optionValue: "optionValue", id: "id", searchMessage: "searchMessage", emptySelectionMessage: "emptySelectionMessage", selectionMessage: "selectionMessage", autoOptionFocus: [2, "autoOptionFocus", "autoOptionFocus", booleanAttribute], selectOnFocus: [2, "selectOnFocus", "selectOnFocus", booleanAttribute], searchLocale: [2, "searchLocale", "searchLocale", booleanAttribute], optionDisabled: "optionDisabled", focusOnHover: [2, "focusOnHover", "focusOnHover", booleanAttribute], typeahead: [2, "typeahead", "typeahead", booleanAttribute], variant: "variant", fluid: [2, "fluid", "fluid", booleanAttribute] }, outputs: { completeMethod: "completeMethod", onSelect: "onSelect", onUnselect: "onUnselect", onFocus: "onFocus", onBlur: "onBlur", onDropdownClick: "onDropdownClick", onClear: "onClear", onKeyUp: "onKeyUp", onShow: "onShow", onHide: "onHide", onLazyLoad: "onLazyLoad" }, standalone: true, features: [i0.ɵɵProvidersFeature([AUTOCOMPLETE_VALUE_ACCESSOR, AutoCompleteStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 11, vars: 15, consts: [["container", ""], ["overlay", ""], ["content", ""], ["focusInput", ""], ["multiContainer", ""], ["token", ""], ["removeicon", ""], ["ddBtn", ""], ["buildInItems", ""], ["scroller", ""], ["loader", ""], ["items", ""], [2, "position", "relative", 3, "click", "ngClass", "ngStyle"], ["pInputText", "", "aria-autocomplete", "list", "role", "combobox", 3, "pAutoFocus", "ngClass", "ngStyle", "class", "type", "variant", "autocomplete", "required", "name", "
|
2111
|
+
} }, inputs: { minLength: [2, "minLength", "minLength", numberAttribute], delay: [2, "delay", "delay", numberAttribute], style: "style", panelStyle: "panelStyle", styleClass: "styleClass", panelStyleClass: "panelStyleClass", inputStyle: "inputStyle", inputId: "inputId", inputStyleClass: "inputStyleClass", placeholder: "placeholder", readonly: [2, "readonly", "readonly", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], scrollHeight: "scrollHeight", lazy: [2, "lazy", "lazy", booleanAttribute], virtualScroll: [2, "virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: [2, "virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", maxlength: [2, "maxlength", "maxlength", (value) => numberAttribute(value, null)], name: "name", required: [2, "required", "required", booleanAttribute], size: "size", appendTo: "appendTo", autoHighlight: [2, "autoHighlight", "autoHighlight", booleanAttribute], forceSelection: [2, "forceSelection", "forceSelection", booleanAttribute], type: "type", autoZIndex: [2, "autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: [2, "baseZIndex", "baseZIndex", numberAttribute], ariaLabel: "ariaLabel", dropdownAriaLabel: "dropdownAriaLabel", ariaLabelledBy: "ariaLabelledBy", dropdownIcon: "dropdownIcon", unique: [2, "unique", "unique", booleanAttribute], group: [2, "group", "group", booleanAttribute], completeOnFocus: [2, "completeOnFocus", "completeOnFocus", booleanAttribute], showClear: [2, "showClear", "showClear", booleanAttribute], field: "field", dropdown: [2, "dropdown", "dropdown", booleanAttribute], showEmptyMessage: [2, "showEmptyMessage", "showEmptyMessage", booleanAttribute], dropdownMode: "dropdownMode", multiple: [2, "multiple", "multiple", booleanAttribute], tabindex: [2, "tabindex", "tabindex", numberAttribute], dataKey: "dataKey", emptyMessage: "emptyMessage", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", autofocus: [2, "autofocus", "autofocus", booleanAttribute], autocomplete: "autocomplete", optionGroupChildren: "optionGroupChildren", optionGroupLabel: "optionGroupLabel", overlayOptions: "overlayOptions", suggestions: "suggestions", itemSize: "itemSize", optionLabel: "optionLabel", optionValue: "optionValue", id: "id", searchMessage: "searchMessage", emptySelectionMessage: "emptySelectionMessage", selectionMessage: "selectionMessage", autoOptionFocus: [2, "autoOptionFocus", "autoOptionFocus", booleanAttribute], selectOnFocus: [2, "selectOnFocus", "selectOnFocus", booleanAttribute], searchLocale: [2, "searchLocale", "searchLocale", booleanAttribute], optionDisabled: "optionDisabled", focusOnHover: [2, "focusOnHover", "focusOnHover", booleanAttribute], typeahead: [2, "typeahead", "typeahead", booleanAttribute], variant: "variant", fluid: [2, "fluid", "fluid", booleanAttribute] }, outputs: { completeMethod: "completeMethod", onSelect: "onSelect", onUnselect: "onUnselect", onFocus: "onFocus", onBlur: "onBlur", onDropdownClick: "onDropdownClick", onClear: "onClear", onKeyUp: "onKeyUp", onShow: "onShow", onHide: "onHide", onLazyLoad: "onLazyLoad" }, standalone: true, features: [i0.ɵɵProvidersFeature([AUTOCOMPLETE_VALUE_ACCESSOR, AutoCompleteStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 11, vars: 15, consts: [["container", ""], ["overlay", ""], ["content", ""], ["focusInput", ""], ["multiContainer", ""], ["token", ""], ["removeicon", ""], ["ddBtn", ""], ["buildInItems", ""], ["scroller", ""], ["loader", ""], ["items", ""], ["empty", ""], [2, "position", "relative", 3, "click", "ngClass", "ngStyle"], ["pInputText", "", "aria-autocomplete", "list", "role", "combobox", 3, "pAutoFocus", "ngClass", "ngStyle", "class", "type", "variant", "autocomplete", "required", "name", "pSize", "tabindex", "readonly", "disabled", "fluid", "input", "keydown", "change", "focus", "blur", "paste", "keyup", 4, "ngIf"], [4, "ngIf"], ["role", "listbox", 3, "ngClass", "tabindex", "focus", "blur", "keydown", 4, "ngIf"], ["type", "button", "class", "p-autocomplete-dropdown", "pRipple", "", 3, "disabled", "click", 4, "ngIf"], [3, "visibleChange", "onAnimationStart", "onHide", "visible", "options", "target", "appendTo", "showTransitionOptions", "hideTransitionOptions"], ["pInputText", "", "aria-autocomplete", "list", "role", "combobox", 3, "input", "keydown", "change", "focus", "blur", "paste", "keyup", "pAutoFocus", "ngClass", "ngStyle", "type", "variant", "autocomplete", "required", "name", "pSize", "tabindex", "readonly", "disabled", "fluid"], [3, "styleClass", "click", 4, "ngIf"], ["class", "p-autocomplete-clear-icon", 3, "click", 4, "ngIf"], [3, "click", "styleClass"], [1, "p-autocomplete-clear-icon", 3, "click"], [4, "ngTemplateOutlet"], ["role", "listbox", 3, "focus", "blur", "keydown", "ngClass", "tabindex"], ["role", "option", 3, "ngClass", 4, "ngFor", "ngForOf"], ["role", "option", 1, "p-autocomplete-input-chip"], ["role", "combobox", "aria-autocomplete", "list", 3, "input", "keydown", "change", "focus", "blur", "paste", "keyup", "pAutoFocus", "ngClass", "ngStyle", "autocomplete", "required", "tabindex", "readonly", "disabled"], ["role", "option", 3, "ngClass"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["styleClass", "p-autocomplete-chip", 3, "label", "removable", 4, "ngIf"], ["styleClass", "p-autocomplete-chip", 3, "label", "removable"], [1, "p-autocomplete-chip-icon", 3, "click"], [3, "styleClass"], [3, "styleClass", "spin", 4, "ngIf"], ["class", "p-autocomplete-loader pi-spin ", 4, "ngIf"], [3, "styleClass", "spin"], [1, "p-autocomplete-loader", "pi-spin"], ["type", "button", "pRipple", "", 1, "p-autocomplete-dropdown", 3, "click", "disabled"], [3, "ngClass", 4, "ngIf"], [3, "ngClass"], [3, "ngClass", "ngStyle"], [1, "p-autocomplete-list-container"], [3, "items", "style", "itemSize", "autoSize", "lazy", "options", "onLazyLoad", 4, "ngIf"], ["role", "status", "aria-live", "polite", 1, "p-hidden-accessible"], [3, "onLazyLoad", "items", "itemSize", "autoSize", "lazy", "options"], ["role", "listbox", 1, "p-autocomplete-list", 3, "ngClass"], ["ngFor", "", 3, "ngForOf"], ["class", "p-autocomplete-empty-message", "role", "option", 3, "ngStyle", 4, "ngIf"], ["role", "option", 1, "p-autocomplete-option-group", 3, "ngStyle"], ["pRipple", "", "role", "option", 3, "click", "mouseenter", "ngStyle", "ngClass"], ["role", "option", 1, "p-autocomplete-empty-message", 3, "ngStyle"], [4, "ngIf", "ngIfElse"]], template: function AutoComplete_Template(rf, ctx) { if (rf & 1) {
|
2112
2112
|
const _r1 = i0.ɵɵgetCurrentView();
|
2113
|
-
i0.ɵɵelementStart(0, "div",
|
2113
|
+
i0.ɵɵelementStart(0, "div", 13, 0);
|
2114
2114
|
i0.ɵɵlistener("click", function AutoComplete_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onContainerClick($event)); });
|
2115
|
-
i0.ɵɵtemplate(2, AutoComplete_input_2_Template, 2, 25, "input",
|
2116
|
-
i0.ɵɵelementStart(7, "p-overlay",
|
2115
|
+
i0.ɵɵtemplate(2, AutoComplete_input_2_Template, 2, 25, "input", 14)(3, AutoComplete_ng_container_3_Template, 3, 2, "ng-container", 15)(4, AutoComplete_ul_4_Template, 6, 26, "ul", 16)(5, AutoComplete_ng_container_5_Template, 3, 2, "ng-container", 15)(6, AutoComplete_button_6_Template, 4, 5, "button", 17);
|
2116
|
+
i0.ɵɵelementStart(7, "p-overlay", 18, 1);
|
2117
2117
|
i0.ɵɵtwoWayListener("visibleChange", function AutoComplete_Template_p_overlay_visibleChange_7_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.overlayVisible, $event) || (ctx.overlayVisible = $event); return i0.ɵɵresetView($event); });
|
2118
2118
|
i0.ɵɵlistener("onAnimationStart", function AutoComplete_Template_p_overlay_onAnimationStart_7_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onOverlayAnimationStart($event)); })("onHide", function AutoComplete_Template_p_overlay_onHide_7_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.hide()); });
|
2119
2119
|
i0.ɵɵtemplate(9, AutoComplete_ng_template_9_Template, 10, 11, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
@@ -2162,7 +2162,7 @@ class AutoComplete extends BaseComponent {
|
|
2162
2162
|
aria-autocomplete="list"
|
2163
2163
|
role="combobox"
|
2164
2164
|
[attr.placeholder]="placeholder"
|
2165
|
-
[
|
2165
|
+
[pSize]="size"
|
2166
2166
|
[attr.maxlength]="maxlength"
|
2167
2167
|
[tabindex]="!disabled ? tabindex : -1"
|
2168
2168
|
[readonly]="readonly"
|
@@ -2183,9 +2183,9 @@ class AutoComplete extends BaseComponent {
|
|
2183
2183
|
[fluid]="hasFluid()"
|
2184
2184
|
/>
|
2185
2185
|
<ng-container *ngIf="filled && !disabled && showClear && !loading">
|
2186
|
-
<TimesIcon *ngIf="!
|
2187
|
-
<span *ngIf="
|
2188
|
-
<ng-template *ngTemplateOutlet="
|
2186
|
+
<TimesIcon *ngIf="!cleariconTemplate" [styleClass]="'p-autocomplete-clear-icon'" (click)="clear()" [attr.aria-hidden]="true" />
|
2187
|
+
<span *ngIf="cleariconTemplate" class="p-autocomplete-clear-icon" (click)="clear()" [attr.aria-hidden]="true">
|
2188
|
+
<ng-template *ngTemplateOutlet="cleariconTemplate"></ng-template>
|
2189
2189
|
</span>
|
2190
2190
|
</ng-container>
|
2191
2191
|
|
@@ -2212,9 +2212,9 @@ class AutoComplete extends BaseComponent {
|
|
2212
2212
|
[attr.aria-posinset]="i + 1"
|
2213
2213
|
[attr.aria-selected]="true"
|
2214
2214
|
>
|
2215
|
-
<ng-container *ngTemplateOutlet="
|
2216
|
-
<p-chip styleClass="p-autocomplete-chip" *ngIf="!
|
2217
|
-
<ng-container *ngIf="!
|
2215
|
+
<ng-container *ngTemplateOutlet="selecteditemTemplate; context: { $implicit: option }"></ng-container>
|
2216
|
+
<p-chip styleClass="p-autocomplete-chip" *ngIf="!selecteditemTemplate" [label]="getOptionLabel(option)" [removable]="true">
|
2217
|
+
<ng-container *ngIf="!removeiconTemplate">
|
2218
2218
|
<ng-template #removeicon>
|
2219
2219
|
<span class="p-autocomplete-chip-icon" (click)="!readonly ? removeOption($event, i) : ''">
|
2220
2220
|
<TimesCircleIcon [styleClass]="'p-autocomplete-chip-icon'" [attr.aria-hidden]="true" />
|
@@ -2222,8 +2222,8 @@ class AutoComplete extends BaseComponent {
|
|
2222
2222
|
</ng-template>
|
2223
2223
|
</ng-container>
|
2224
2224
|
</p-chip>
|
2225
|
-
<span *ngIf="
|
2226
|
-
<ng-template *ngTemplateOutlet="
|
2225
|
+
<span *ngIf="removeiconTemplate" [attr.aria-hidden]="true">
|
2226
|
+
<ng-template *ngTemplateOutlet="removeiconTemplate; context: { class: 'p-autocomplete-chip-icon' }"></ng-template>
|
2227
2227
|
</span>
|
2228
2228
|
</li>
|
2229
2229
|
<li class="p-autocomplete-input-chip" role="option">
|
@@ -2262,16 +2262,16 @@ class AutoComplete extends BaseComponent {
|
|
2262
2262
|
</li>
|
2263
2263
|
</ul>
|
2264
2264
|
<ng-container *ngIf="loading">
|
2265
|
-
<SpinnerIcon *ngIf="!
|
2266
|
-
<span *ngIf="
|
2267
|
-
<ng-template *ngTemplateOutlet="
|
2265
|
+
<SpinnerIcon *ngIf="!loadingiconTemplate" [styleClass]="'p-autocomplete-loader'" [spin]="true" [attr.aria-hidden]="true" />
|
2266
|
+
<span *ngIf="loadingiconTemplate" class="p-autocomplete-loader pi-spin " [attr.aria-hidden]="true">
|
2267
|
+
<ng-template *ngTemplateOutlet="loadingiconTemplate"></ng-template>
|
2268
2268
|
</span>
|
2269
2269
|
</ng-container>
|
2270
2270
|
<button #ddBtn type="button" [attr.aria-label]="dropdownAriaLabel" class="p-autocomplete-dropdown" [disabled]="disabled" pRipple (click)="handleDropdownClick($event)" *ngIf="dropdown" [attr.tabindex]="tabindex">
|
2271
2271
|
<span *ngIf="dropdownIcon" [ngClass]="dropdownIcon" [attr.aria-hidden]="true"></span>
|
2272
2272
|
<ng-container *ngIf="!dropdownIcon">
|
2273
|
-
<ChevronDownIcon *ngIf="!
|
2274
|
-
<ng-template *ngTemplateOutlet="
|
2273
|
+
<ChevronDownIcon *ngIf="!dropdowniconTemplate" />
|
2274
|
+
<ng-template *ngTemplateOutlet="dropdowniconTemplate"></ng-template>
|
2275
2275
|
</ng-container>
|
2276
2276
|
</button>
|
2277
2277
|
<p-overlay
|
@@ -2287,7 +2287,7 @@ class AutoComplete extends BaseComponent {
|
|
2287
2287
|
>
|
2288
2288
|
<ng-template #content>
|
2289
2289
|
<div [ngClass]="panelClass" [ngStyle]="panelStyle" [class]="panelStyleClass">
|
2290
|
-
<ng-container *ngTemplateOutlet="
|
2290
|
+
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
|
2291
2291
|
<div class="p-autocomplete-list-container" [style.max-height]="virtualScroll ? 'auto' : scrollHeight">
|
2292
2292
|
<p-scroller
|
2293
2293
|
*ngIf="virtualScroll"
|
@@ -2303,7 +2303,7 @@ class AutoComplete extends BaseComponent {
|
|
2303
2303
|
<ng-template #content let-items let-scrollerOptions="options">
|
2304
2304
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
2305
2305
|
</ng-template>
|
2306
|
-
<ng-container *ngIf="
|
2306
|
+
<ng-container *ngIf="loaderTemplate">
|
2307
2307
|
<ng-template #loader let-scrollerOptions="options">
|
2308
2308
|
<ng-container *ngTemplateOutlet="loader; context: { options: scrollerOptions }"></ng-container>
|
2309
2309
|
</ng-template>
|
@@ -2339,10 +2339,10 @@ class AutoComplete extends BaseComponent {
|
|
2339
2339
|
(click)="onOptionSelect($event, option)"
|
2340
2340
|
(mouseenter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
|
2341
2341
|
>
|
2342
|
-
<span *ngIf="!
|
2342
|
+
<span *ngIf="!itemTemplate">{{ getOptionLabel(option) }}</span>
|
2343
2343
|
<ng-container
|
2344
2344
|
*ngTemplateOutlet="
|
2345
|
-
|
2345
|
+
itemTemplate;
|
2346
2346
|
context: {
|
2347
2347
|
$implicit: option,
|
2348
2348
|
index: scrollerOptions.getOptions ? scrollerOptions.getOptions(i) : i
|
@@ -2353,15 +2353,14 @@ class AutoComplete extends BaseComponent {
|
|
2353
2353
|
</ng-container>
|
2354
2354
|
</ng-template>
|
2355
2355
|
<li *ngIf="!items || (items && items.length === 0 && showEmptyMessage)" class="p-autocomplete-empty-message" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2356
|
-
|
2356
|
+
<ng-container *ngIf="!emptyTemplate; else empty">
|
2357
2357
|
{{ searchResultMessageText }}
|
2358
|
-
|
2359
|
-
|
2360
|
-
}
|
2358
|
+
</ng-container>
|
2359
|
+
<ng-container #empty *ngTemplateOutlet="emptyTemplate"></ng-container>
|
2361
2360
|
</li>
|
2362
2361
|
</ul>
|
2363
2362
|
</ng-template>
|
2364
|
-
<ng-container *ngTemplateOutlet="
|
2363
|
+
<ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
|
2365
2364
|
</div>
|
2366
2365
|
<span role="status" aria-live="polite" class="p-hidden-accessible">
|
2367
2366
|
{{ selectedMessageText }}
|
@@ -2580,37 +2579,37 @@ class AutoComplete extends BaseComponent {
|
|
2580
2579
|
}], overlayViewChild: [{
|
2581
2580
|
type: ViewChild,
|
2582
2581
|
args: ['overlay']
|
2583
|
-
}],
|
2582
|
+
}], itemTemplate: [{
|
2584
2583
|
type: ContentChild,
|
2585
2584
|
args: ['item']
|
2586
|
-
}],
|
2585
|
+
}], emptyTemplate: [{
|
2587
2586
|
type: ContentChild,
|
2588
2587
|
args: ['empty']
|
2589
|
-
}],
|
2588
|
+
}], headerTemplate: [{
|
2590
2589
|
type: ContentChild,
|
2591
2590
|
args: ['header']
|
2592
|
-
}],
|
2591
|
+
}], footerTemplate: [{
|
2593
2592
|
type: ContentChild,
|
2594
2593
|
args: ['footer']
|
2595
|
-
}],
|
2594
|
+
}], selecteditemTemplate: [{
|
2596
2595
|
type: ContentChild,
|
2597
2596
|
args: ['selecteditem']
|
2598
2597
|
}], groupTemplate: [{
|
2599
2598
|
type: ContentChild,
|
2600
2599
|
args: ['group']
|
2601
|
-
}],
|
2600
|
+
}], loaderTemplate: [{
|
2602
2601
|
type: ContentChild,
|
2603
2602
|
args: ['loader']
|
2604
|
-
}],
|
2603
|
+
}], removeiconTemplate: [{
|
2605
2604
|
type: ContentChild,
|
2606
2605
|
args: ['removeicon']
|
2607
|
-
}],
|
2606
|
+
}], loadingiconTemplate: [{
|
2608
2607
|
type: ContentChild,
|
2609
2608
|
args: ['loadingicon']
|
2610
|
-
}],
|
2609
|
+
}], cleariconTemplate: [{
|
2611
2610
|
type: ContentChild,
|
2612
2611
|
args: ['clearicon']
|
2613
|
-
}],
|
2612
|
+
}], dropdowniconTemplate: [{
|
2614
2613
|
type: ContentChild,
|
2615
2614
|
args: ['dropdownicon']
|
2616
2615
|
}] }); })();
|