primeng 19.0.0-rc.1 → 19.0.1
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 +202 -137
- 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 +198 -156
- 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 +117 -98
- 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 +157 -157
- 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
@@ -2,10 +2,10 @@ import { trigger, transition, style, animate } from '@angular/animations';
|
|
2
2
|
import * as i1 from '@angular/common';
|
3
3
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
4
4
|
import * as i0 from '@angular/core';
|
5
|
-
import { Injectable, inject, signal, booleanAttribute, Directive, Input, HostListener, Pipe, forwardRef, EventEmitter, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Output, ViewChild, ContentChild, NgModule } from '@angular/core';
|
5
|
+
import { Injectable, inject, signal, booleanAttribute, Directive, Input, HostListener, Pipe, forwardRef, EventEmitter, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Output, ViewChild, ContentChild, ContentChildren, NgModule } from '@angular/core';
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
7
7
|
import { addClass, absolutePosition, removeClass, hasClass, isTouchDevice, getOuterWidth, relativePosition } from '@primeuix/utils';
|
8
|
-
import { OverlayService, TranslationKeys, SharedModule } from 'primeng/api';
|
8
|
+
import { OverlayService, TranslationKeys, PrimeTemplate, SharedModule } from 'primeng/api';
|
9
9
|
import { AutoFocus } from 'primeng/autofocus';
|
10
10
|
import { BaseComponent } from 'primeng/basecomponent';
|
11
11
|
import { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';
|
@@ -194,7 +194,7 @@ var PasswordClasses;
|
|
194
194
|
})(PasswordClasses || (PasswordClasses = {}));
|
195
195
|
|
196
196
|
const _c0 = ["content"];
|
197
|
-
const _c1 = ["
|
197
|
+
const _c1 = ["footer"];
|
198
198
|
const _c2 = ["header"];
|
199
199
|
const _c3 = ["clearicon"];
|
200
200
|
const _c4 = ["headericon"];
|
@@ -228,11 +228,11 @@ function Password_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
228
228
|
} if (rf & 2) {
|
229
229
|
const ctx_r3 = i0.ɵɵnextContext();
|
230
230
|
i0.ɵɵadvance();
|
231
|
-
i0.ɵɵproperty("ngIf", !ctx_r3.
|
231
|
+
i0.ɵɵproperty("ngIf", !ctx_r3.clearIconTemplate && !ctx_r3._clearIconTemplate);
|
232
232
|
i0.ɵɵadvance();
|
233
233
|
i0.ɵɵattribute("data-pc-section", "clearIcon");
|
234
234
|
i0.ɵɵadvance();
|
235
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.
|
235
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.clearIconTemplate || ctx_r3._clearIconTemplate);
|
236
236
|
} }
|
237
237
|
function Password_ng_container_6_ng_container_1_EyeSlashIcon_1_Template(rf, ctx) { if (rf & 1) {
|
238
238
|
const _r5 = i0.ɵɵgetCurrentView();
|
@@ -255,7 +255,7 @@ function Password_ng_container_6_ng_container_1_span_2_Template(rf, ctx) { if (r
|
|
255
255
|
} if (rf & 2) {
|
256
256
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
257
257
|
i0.ɵɵadvance();
|
258
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.
|
258
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.hideIconTemplate || ctx_r3._hideIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction0(2, _c7));
|
259
259
|
} }
|
260
260
|
function Password_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
261
261
|
i0.ɵɵelementContainerStart(0);
|
@@ -264,9 +264,9 @@ function Password_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1)
|
|
264
264
|
} if (rf & 2) {
|
265
265
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
266
266
|
i0.ɵɵadvance();
|
267
|
-
i0.ɵɵproperty("ngIf", !ctx_r3.
|
267
|
+
i0.ɵɵproperty("ngIf", !ctx_r3.hideIconTemplate && !ctx_r3._hideIconTemplate);
|
268
268
|
i0.ɵɵadvance();
|
269
|
-
i0.ɵɵproperty("ngIf", ctx_r3.
|
269
|
+
i0.ɵɵproperty("ngIf", ctx_r3.hideIconTemplate || ctx_r3._hideIconTemplate);
|
270
270
|
} }
|
271
271
|
function Password_ng_container_6_ng_container_2_EyeIcon_1_Template(rf, ctx) { if (rf & 1) {
|
272
272
|
const _r7 = i0.ɵɵgetCurrentView();
|
@@ -289,7 +289,7 @@ function Password_ng_container_6_ng_container_2_span_2_Template(rf, ctx) { if (r
|
|
289
289
|
} if (rf & 2) {
|
290
290
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
291
291
|
i0.ɵɵadvance();
|
292
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.
|
292
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.showIconTemplate || ctx_r3._showIconTemplate);
|
293
293
|
} }
|
294
294
|
function Password_ng_container_6_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
295
295
|
i0.ɵɵelementContainerStart(0);
|
@@ -298,9 +298,9 @@ function Password_ng_container_6_ng_container_2_Template(rf, ctx) { if (rf & 1)
|
|
298
298
|
} if (rf & 2) {
|
299
299
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
300
300
|
i0.ɵɵadvance();
|
301
|
-
i0.ɵɵproperty("ngIf", !ctx_r3.
|
301
|
+
i0.ɵɵproperty("ngIf", !ctx_r3.showIconTemplate && !ctx_r3._showIconTemplate);
|
302
302
|
i0.ɵɵadvance();
|
303
|
-
i0.ɵɵproperty("ngIf", ctx_r3.
|
303
|
+
i0.ɵɵproperty("ngIf", ctx_r3.showIconTemplate || ctx_r3._showIconTemplate);
|
304
304
|
} }
|
305
305
|
function Password_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
306
306
|
i0.ɵɵelementContainerStart(0);
|
@@ -326,7 +326,7 @@ function Password_div_7_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
326
326
|
} if (rf & 2) {
|
327
327
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
328
328
|
i0.ɵɵadvance();
|
329
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.contentTemplate);
|
329
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.contentTemplate || ctx_r3._contentTemplate);
|
330
330
|
} }
|
331
331
|
function Password_div_7_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
332
332
|
i0.ɵɵelementStart(0, "div", 17)(1, "div", 18);
|
@@ -363,11 +363,11 @@ function Password_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
363
363
|
i0.ɵɵproperty("@overlayAnimation", i0.ɵɵpureFunction1(9, _c9, i0.ɵɵpureFunction2(6, _c8, ctx_r3.showTransitionOptions, ctx_r3.hideTransitionOptions)));
|
364
364
|
i0.ɵɵattribute("data-pc-section", "panel");
|
365
365
|
i0.ɵɵadvance(2);
|
366
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.headerTemplate);
|
366
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.headerTemplate || ctx_r3._headerTemplate);
|
367
367
|
i0.ɵɵadvance();
|
368
|
-
i0.ɵɵproperty("ngIf", ctx_r3.contentTemplate)("ngIfElse", content_r10);
|
368
|
+
i0.ɵɵproperty("ngIf", ctx_r3.contentTemplate || ctx_r3._contentTemplate)("ngIfElse", content_r10);
|
369
369
|
i0.ɵɵadvance(3);
|
370
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.footerTemplate);
|
370
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.footerTemplate || ctx_r3._footerTemplate);
|
371
371
|
} }
|
372
372
|
/**
|
373
373
|
* Password directive.
|
@@ -863,9 +863,16 @@ class Password extends BaseComponent {
|
|
863
863
|
contentTemplate;
|
864
864
|
footerTemplate;
|
865
865
|
headerTemplate;
|
866
|
-
|
867
|
-
|
868
|
-
|
866
|
+
clearIconTemplate;
|
867
|
+
hideIconTemplate;
|
868
|
+
showIconTemplate;
|
869
|
+
templates;
|
870
|
+
_contentTemplate;
|
871
|
+
_footerTemplate;
|
872
|
+
_headerTemplate;
|
873
|
+
_clearIconTemplate;
|
874
|
+
_hideIconTemplate;
|
875
|
+
_showIconTemplate;
|
869
876
|
overlayVisible = false;
|
870
877
|
meter;
|
871
878
|
infoText;
|
@@ -896,6 +903,33 @@ class Password extends BaseComponent {
|
|
896
903
|
this.updateUI(this.value || '');
|
897
904
|
});
|
898
905
|
}
|
906
|
+
ngAfterContentInit() {
|
907
|
+
this.templates.forEach((item) => {
|
908
|
+
switch (item.getType()) {
|
909
|
+
case 'content':
|
910
|
+
this._contentTemplate = item.template;
|
911
|
+
break;
|
912
|
+
case 'header':
|
913
|
+
this._headerTemplate = item.template;
|
914
|
+
break;
|
915
|
+
case 'footer':
|
916
|
+
this._footerTemplate = item.template;
|
917
|
+
break;
|
918
|
+
case 'clearicon':
|
919
|
+
this._clearIconTemplate = item.template;
|
920
|
+
break;
|
921
|
+
case 'hideicon':
|
922
|
+
this._hideIconTemplate = item.template;
|
923
|
+
break;
|
924
|
+
case 'showicon':
|
925
|
+
this._showIconTemplate = item.template;
|
926
|
+
break;
|
927
|
+
default:
|
928
|
+
this._contentTemplate = item.template;
|
929
|
+
break;
|
930
|
+
}
|
931
|
+
});
|
932
|
+
}
|
899
933
|
onAnimationStart(event) {
|
900
934
|
switch (event.toState) {
|
901
935
|
case 'visible':
|
@@ -1140,20 +1174,22 @@ class Password extends BaseComponent {
|
|
1140
1174
|
}
|
1141
1175
|
static ɵfac = /*@__PURE__*/ (() => { let ɵPassword_BaseFactory; return function Password_Factory(__ngFactoryType__) { return (ɵPassword_BaseFactory || (ɵPassword_BaseFactory = i0.ɵɵgetInheritedFactory(Password)))(__ngFactoryType__ || Password); }; })();
|
1142
1176
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Password, selectors: [["p-password"]], contentQueries: function Password_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
1143
|
-
i0.ɵɵcontentQuery(dirIndex, _c0,
|
1144
|
-
i0.ɵɵcontentQuery(dirIndex, _c1,
|
1145
|
-
i0.ɵɵcontentQuery(dirIndex, _c2,
|
1146
|
-
i0.ɵɵcontentQuery(dirIndex, _c3,
|
1147
|
-
i0.ɵɵcontentQuery(dirIndex, _c4,
|
1148
|
-
i0.ɵɵcontentQuery(dirIndex, _c5,
|
1177
|
+
i0.ɵɵcontentQuery(dirIndex, _c0, 4);
|
1178
|
+
i0.ɵɵcontentQuery(dirIndex, _c1, 4);
|
1179
|
+
i0.ɵɵcontentQuery(dirIndex, _c2, 4);
|
1180
|
+
i0.ɵɵcontentQuery(dirIndex, _c3, 4);
|
1181
|
+
i0.ɵɵcontentQuery(dirIndex, _c4, 4);
|
1182
|
+
i0.ɵɵcontentQuery(dirIndex, _c5, 4);
|
1183
|
+
i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
|
1149
1184
|
} if (rf & 2) {
|
1150
1185
|
let _t;
|
1151
1186
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentTemplate = _t.first);
|
1152
1187
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);
|
1153
1188
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
|
1154
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
1155
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
1156
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
1189
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.clearIconTemplate = _t.first);
|
1190
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.hideIconTemplate = _t.first);
|
1191
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.showIconTemplate = _t.first);
|
1192
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
|
1157
1193
|
} }, viewQuery: function Password_Query(rf, ctx) { if (rf & 1) {
|
1158
1194
|
i0.ɵɵviewQuery(_c6, 5);
|
1159
1195
|
} if (rf & 2) {
|
@@ -1218,23 +1254,23 @@ class Password extends BaseComponent {
|
|
1218
1254
|
[pAutoFocus]="autofocus"
|
1219
1255
|
/>
|
1220
1256
|
<ng-container *ngIf="showClear && value != null">
|
1221
|
-
<TimesIcon *ngIf="!
|
1257
|
+
<TimesIcon *ngIf="!clearIconTemplate && !_clearIconTemplate" class="p-password-clear-icon" (click)="clear()" [attr.data-pc-section]="'clearIcon'" />
|
1222
1258
|
<span (click)="clear()" class="p-password-clear-icon" [attr.data-pc-section]="'clearIcon'">
|
1223
|
-
<ng-template *ngTemplateOutlet="
|
1259
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
|
1224
1260
|
</span>
|
1225
1261
|
</ng-container>
|
1226
1262
|
|
1227
1263
|
<ng-container *ngIf="toggleMask">
|
1228
1264
|
<ng-container *ngIf="unmasked">
|
1229
|
-
<EyeSlashIcon class="p-password-toggle-mask-icon p-password-mask-icon" *ngIf="!
|
1230
|
-
<span *ngIf="
|
1231
|
-
<ng-template *ngTemplateOutlet="
|
1265
|
+
<EyeSlashIcon class="p-password-toggle-mask-icon p-password-mask-icon" *ngIf="!hideIconTemplate && !_hideIconTemplate" (click)="onMaskToggle()" [attr.data-pc-section]="'hideIcon'" />
|
1266
|
+
<span *ngIf="hideIconTemplate || _hideIconTemplate" (click)="onMaskToggle()">
|
1267
|
+
<ng-template *ngTemplateOutlet="hideIconTemplate || _hideIconTemplate; context: { class: 'p-password-toggle-mask-icon p-password-mask-icon' }"></ng-template>
|
1232
1268
|
</span>
|
1233
1269
|
</ng-container>
|
1234
1270
|
<ng-container *ngIf="!unmasked">
|
1235
|
-
<EyeIcon *ngIf="!
|
1236
|
-
<span *ngIf="
|
1237
|
-
<ng-template *ngTemplateOutlet="
|
1271
|
+
<EyeIcon *ngIf="!showIconTemplate && !_showIconTemplate" class="p-password-toggle-mask-icon p-password-mask-icon" (click)="onMaskToggle()" [attr.data-pc-section]="'showIcon'" />
|
1272
|
+
<span *ngIf="showIconTemplate || _showIconTemplate" (click)="onMaskToggle()">
|
1273
|
+
<ng-template *ngTemplateOutlet="showIconTemplate || _showIconTemplate"></ng-template>
|
1238
1274
|
</span>
|
1239
1275
|
</ng-container>
|
1240
1276
|
</ng-container>
|
@@ -1252,9 +1288,9 @@ class Password extends BaseComponent {
|
|
1252
1288
|
(@overlayAnimation.done)="onAnimationEnd($event)"
|
1253
1289
|
[attr.data-pc-section]="'panel'"
|
1254
1290
|
>
|
1255
|
-
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
|
1256
|
-
<ng-container *ngIf="contentTemplate; else content">
|
1257
|
-
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
|
1291
|
+
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
|
1292
|
+
<ng-container *ngIf="contentTemplate || _contentTemplate; else content">
|
1293
|
+
<ng-container *ngTemplateOutlet="contentTemplate || _contentTemplate"></ng-container>
|
1258
1294
|
</ng-container>
|
1259
1295
|
<ng-template #content>
|
1260
1296
|
<div class="p-password-content">
|
@@ -1264,7 +1300,7 @@ class Password extends BaseComponent {
|
|
1264
1300
|
<div class="p-password-meter-text" [attr.data-pc-section]="'info'">{{ infoText }}</div>
|
1265
1301
|
</div>
|
1266
1302
|
</ng-template>
|
1267
|
-
<ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
|
1303
|
+
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|
1268
1304
|
</div>
|
1269
1305
|
</div>
|
1270
1306
|
`,
|
@@ -1347,24 +1383,27 @@ class Password extends BaseComponent {
|
|
1347
1383
|
args: ['input']
|
1348
1384
|
}], contentTemplate: [{
|
1349
1385
|
type: ContentChild,
|
1350
|
-
args: ['content']
|
1386
|
+
args: ['content', { descendants: false }]
|
1351
1387
|
}], footerTemplate: [{
|
1352
1388
|
type: ContentChild,
|
1353
|
-
args: ['
|
1389
|
+
args: ['footer', { descendants: false }]
|
1354
1390
|
}], headerTemplate: [{
|
1355
1391
|
type: ContentChild,
|
1356
|
-
args: ['header']
|
1357
|
-
}],
|
1392
|
+
args: ['header', { descendants: false }]
|
1393
|
+
}], clearIconTemplate: [{
|
1358
1394
|
type: ContentChild,
|
1359
|
-
args: ['clearicon']
|
1360
|
-
}],
|
1395
|
+
args: ['clearicon', { descendants: false }]
|
1396
|
+
}], hideIconTemplate: [{
|
1361
1397
|
type: ContentChild,
|
1362
|
-
args: ['headericon']
|
1363
|
-
}],
|
1398
|
+
args: ['headericon', { descendants: false }]
|
1399
|
+
}], showIconTemplate: [{
|
1364
1400
|
type: ContentChild,
|
1365
|
-
args: ['showicon']
|
1401
|
+
args: ['showicon', { descendants: false }]
|
1402
|
+
}], templates: [{
|
1403
|
+
type: ContentChildren,
|
1404
|
+
args: [PrimeTemplate]
|
1366
1405
|
}] }); })();
|
1367
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Password, { className: "Password", filePath: "password.ts", lineNumber:
|
1406
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Password, { className: "Password", filePath: "password.ts", lineNumber: 486 }); })();
|
1368
1407
|
class PasswordModule {
|
1369
1408
|
static ɵfac = function PasswordModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PasswordModule)(); };
|
1370
1409
|
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PasswordModule });
|