primeng 18.0.0-rc.2 → 18.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/LICENSE.md +1 -1
- package/accordion/accordion.d.ts +7 -7
- package/autocomplete/autocomplete.d.ts +26 -13
- 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/primeng.d.ts +12 -6
- package/config/provideprimeng.d.ts +1 -12
- package/config/themeprovider.d.ts +10 -4
- 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 +1 -0
- package/editor/editor.d.ts +7 -3
- package/esm2022/accordion/accordion.mjs +58 -43
- package/esm2022/autocomplete/autocomplete.mjs +227 -168
- package/esm2022/autocomplete/style/autocompletestyle.mjs +5 -4
- package/esm2022/badge/badge.mjs +39 -32
- package/esm2022/basecomponent/basecomponent.mjs +3 -26
- package/esm2022/blockui/blockui.mjs +38 -18
- package/esm2022/breadcrumb/breadcrumb.mjs +50 -32
- package/esm2022/button/button.mjs +55 -28
- package/esm2022/calendar/calendar.mjs +200 -137
- package/esm2022/card/card.mjs +96 -46
- package/esm2022/carousel/carousel.mjs +74 -42
- package/esm2022/cascadeselect/cascadeselect.mjs +100 -62
- package/esm2022/checkbox/checkbox.mjs +32 -14
- package/esm2022/chip/chip.mjs +117 -96
- 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 +105 -61
- package/esm2022/confirmpopup/confirmpopup.mjs +57 -29
- package/esm2022/contextmenu/contextmenu.mjs +52 -21
- package/esm2022/datepicker/datepicker.mjs +200 -159
- package/esm2022/dialog/dialog.mjs +113 -67
- package/esm2022/divider/divider.mjs +2 -4
- package/esm2022/dock/dock.mjs +31 -13
- package/esm2022/drawer/drawer.mjs +115 -73
- package/esm2022/dropdown/dropdown.mjs +13 -5
- package/esm2022/dynamicdialog/dialogservice.mjs +2 -2
- package/esm2022/dynamicdialog/dynamicdialog-config.mjs +13 -13
- package/esm2022/dynamicdialog/dynamicdialog.mjs +9 -5
- package/esm2022/editor/editor.mjs +27 -11
- package/esm2022/fieldset/fieldset.mjs +61 -33
- package/esm2022/fileupload/fileupload.mjs +139 -89
- package/esm2022/galleria/galleria.mjs +18 -9
- package/esm2022/image/image.mjs +114 -67
- package/esm2022/imagecompare/imagecompare.mjs +31 -11
- package/esm2022/inplace/inplace.mjs +49 -24
- package/esm2022/inputmask/inputmask.mjs +33 -17
- package/esm2022/inputmask/style/inputmaskstyle.mjs +2 -2
- package/esm2022/inputnumber/inputnumber.mjs +58 -50
- package/esm2022/inputotp/inputotp.mjs +33 -14
- package/esm2022/inputtext/inputtext.mjs +11 -10
- package/esm2022/listbox/listbox.mjs +137 -78
- package/esm2022/megamenu/megamenu.mjs +105 -59
- package/esm2022/menu/menu.mjs +27 -27
- package/esm2022/menubar/menubar.mjs +70 -35
- package/esm2022/message/message.mjs +50 -26
- package/esm2022/messages/messages.mjs +13 -4
- package/esm2022/metergroup/metergroup.mjs +63 -31
- package/esm2022/multiselect/multiselect.mjs +247 -156
- package/esm2022/multiselect/style/multiselectstyle.mjs +1 -4
- package/esm2022/orderlist/orderlist.mjs +125 -70
- package/esm2022/organizationchart/organizationchart.mjs +30 -14
- package/esm2022/overlay/overlay.mjs +27 -7
- package/esm2022/overlay/style/overlaystyle.mjs +2 -2
- package/esm2022/overlaypanel/overlaypanel.mjs +34 -11
- package/esm2022/paginator/paginator.mjs +92 -60
- package/esm2022/panel/panel.mjs +160 -100
- package/esm2022/panelmenu/panelmenu.mjs +55 -32
- package/esm2022/password/password.mjs +114 -52
- package/esm2022/picklist/picklist.mjs +397 -269
- package/esm2022/popover/popover.mjs +30 -13
- package/esm2022/progressbar/progressbar.mjs +27 -9
- package/esm2022/rating/rating.mjs +46 -22
- package/esm2022/ripple/ripple.mjs +5 -2
- package/esm2022/scroller/scroller.mjs +47 -37
- package/esm2022/scrollpanel/scrollpanel.mjs +28 -9
- package/esm2022/scrolltop/scrolltop.mjs +17 -10
- package/esm2022/select/select.mjs +202 -122
- package/esm2022/select/style/selectstyle.mjs +2 -5
- package/esm2022/selectbutton/selectbutton.mjs +26 -11
- package/esm2022/sidebar/sidebar.mjs +83 -61
- package/esm2022/speeddial/speeddial.mjs +54 -29
- package/esm2022/splitbutton/splitbutton.mjs +41 -18
- package/esm2022/splitter/splitter.mjs +29 -19
- package/esm2022/splitter/style/splitterstyle.mjs +5 -4
- package/esm2022/stepper/stepper.mjs +27 -13
- package/esm2022/table/table.mjs +6368 -6510
- package/esm2022/tabmenu/tabmenu.mjs +54 -27
- package/esm2022/tabs/tablist.mjs +28 -20
- package/esm2022/tabview/tabview.mjs +106 -54
- package/esm2022/tag/tag.mjs +68 -44
- package/esm2022/textarea/textarea.mjs +9 -9
- package/esm2022/tieredmenu/tieredmenu.mjs +45 -22
- package/esm2022/timeline/timeline.mjs +41 -17
- package/esm2022/toast/toast.mjs +31 -9
- package/esm2022/togglebutton/togglebutton.mjs +45 -30
- package/esm2022/toggleswitch/toggleswitch.mjs +28 -9
- package/esm2022/toolbar/toolbar.mjs +47 -21
- package/esm2022/tooltip/tooltip.mjs +36 -71
- package/esm2022/tree/style/treestyle.mjs +13 -3
- package/esm2022/tree/tree.mjs +193 -137
- package/esm2022/treeselect/style/treeselectstyle.mjs +1 -4
- package/esm2022/treeselect/treeselect.mjs +157 -90
- package/esm2022/treetable/treetable.mjs +31 -12
- package/esm2022/usestyle/usestyle.mjs +2 -2
- package/fesm2022/primeng-accordion.mjs +57 -42
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +230 -170
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +38 -31
- 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 +37 -17
- 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 +54 -27
- 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 +73 -41
- 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 -13
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +116 -95
- package/fesm2022/primeng-chip.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 +104 -60
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +56 -28
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +51 -20
- 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 +112 -66
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +1 -3
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +30 -12
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +114 -72
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +12 -4
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +21 -17
- 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 +60 -32
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +138 -88
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +17 -8
- 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 +48 -23
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +33 -17
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +57 -49
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +32 -13
- 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-listbox.mjs +136 -77
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +104 -58
- 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 -158
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +124 -69
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +29 -13
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +27 -7
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +33 -10
- package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +91 -59
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +159 -99
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +54 -31
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +113 -51
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +396 -268
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +29 -12
- 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 +45 -21
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-ripple.mjs +4 -1
- package/fesm2022/primeng-ripple.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +46 -36
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +27 -8
- 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 +202 -125
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +25 -10
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-sidebar.mjs +82 -60
- package/fesm2022/primeng-sidebar.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +53 -28
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +40 -17
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +32 -21
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +26 -12
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +6370 -6512
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabmenu.mjs +53 -26
- 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 +67 -43
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +8 -8
- package/fesm2022/primeng-textarea.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 -8
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +44 -29
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +27 -8
- 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 +36 -71
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +204 -138
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +156 -92
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +30 -11
- 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/inputtext/inputtext.d.ts +2 -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 +233 -233
- 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 +20 -8
- package/picklist/picklist.d.ts +23 -3
- package/popover/popover.d.ts +8 -5
- 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 +6 -7
- package/splitter/style/splitterstyle.d.ts +0 -13
- package/stepper/stepper.d.ts +8 -3
- package/table/table.d.ts +928 -1030
- 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/textarea/textarea.d.ts +2 -2
- 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/style/treestyle.d.ts +1 -1
- package/tree/tree.d.ts +25 -10
- package/treeselect/treeselect.d.ts +26 -12
- package/treetable/treetable.d.ts +7 -5
@@ -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, 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,16 +363,19 @@ 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.
|
374
374
|
* @group Components
|
375
375
|
*/
|
376
|
+
// strengthClass(meter: any) {
|
377
|
+
// return `p-password-meter-label p-password-meter${meter?.strength ? `-${meter.strength}` : ''}`;
|
378
|
+
// }
|
376
379
|
class PasswordDirective extends BaseComponent {
|
377
380
|
zone;
|
378
381
|
/**
|
@@ -464,6 +467,7 @@ class PasswordDirective extends BaseComponent {
|
|
464
467
|
this.renderer.appendChild(this.content, this.info);
|
465
468
|
this.renderer.setStyle(this.panel, 'minWidth', `${this.el.nativeElement.offsetWidth}px`);
|
466
469
|
this.renderer.appendChild(document.body, this.panel);
|
470
|
+
this.updateMeter();
|
467
471
|
}
|
468
472
|
}
|
469
473
|
showOverlay() {
|
@@ -502,6 +506,7 @@ class PasswordDirective extends BaseComponent {
|
|
502
506
|
onBlur() {
|
503
507
|
this.hideOverlay();
|
504
508
|
}
|
509
|
+
labelSignal = signal('');
|
505
510
|
onKeyup(e) {
|
506
511
|
if (this.feedback) {
|
507
512
|
let value = e.target.value, label = null, meterPos = null;
|
@@ -523,6 +528,8 @@ class PasswordDirective extends BaseComponent {
|
|
523
528
|
label = this.strongLabel;
|
524
529
|
meterPos = '0px -30px';
|
525
530
|
}
|
531
|
+
this.labelSignal.set(label);
|
532
|
+
this.updateMeter();
|
526
533
|
}
|
527
534
|
if (!this.panel || !hasClass(this.panel, 'p-connected-overlay-visible')) {
|
528
535
|
this.showOverlay();
|
@@ -531,6 +538,22 @@ class PasswordDirective extends BaseComponent {
|
|
531
538
|
this.info.textContent = label;
|
532
539
|
}
|
533
540
|
}
|
541
|
+
updateMeter() {
|
542
|
+
if (this.labelSignal()) {
|
543
|
+
const label = this.labelSignal();
|
544
|
+
const strengthClass = this.strengthClass(label.toLowerCase());
|
545
|
+
const width = this.getWidth(label.toLowerCase());
|
546
|
+
this.renderer.addClass(this.meter, strengthClass);
|
547
|
+
this.renderer.setStyle(this.meter, 'width', width);
|
548
|
+
this.info.textContent = label;
|
549
|
+
}
|
550
|
+
}
|
551
|
+
getWidth(label) {
|
552
|
+
return label === 'weak' ? '33.33%' : label === 'medium' ? '66.66%' : label === 'strong' ? '100%' : '';
|
553
|
+
}
|
554
|
+
strengthClass(label) {
|
555
|
+
return `p-password-meter${label ? `-${label}` : ''}`;
|
556
|
+
}
|
534
557
|
testStrength(str) {
|
535
558
|
let grade = 0;
|
536
559
|
let val;
|
@@ -840,9 +863,16 @@ class Password extends BaseComponent {
|
|
840
863
|
contentTemplate;
|
841
864
|
footerTemplate;
|
842
865
|
headerTemplate;
|
843
|
-
|
844
|
-
|
845
|
-
|
866
|
+
clearIconTemplate;
|
867
|
+
hideIconTemplate;
|
868
|
+
showIconTemplate;
|
869
|
+
templates;
|
870
|
+
_contentTemplate;
|
871
|
+
_footerTemplate;
|
872
|
+
_headerTemplate;
|
873
|
+
_clearIconTemplate;
|
874
|
+
_hideIconTemplate;
|
875
|
+
_showIconTemplate;
|
846
876
|
overlayVisible = false;
|
847
877
|
meter;
|
848
878
|
infoText;
|
@@ -873,6 +903,33 @@ class Password extends BaseComponent {
|
|
873
903
|
this.updateUI(this.value || '');
|
874
904
|
});
|
875
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
|
+
}
|
876
933
|
onAnimationStart(event) {
|
877
934
|
switch (event.toState) {
|
878
935
|
case 'visible':
|
@@ -1117,26 +1174,28 @@ class Password extends BaseComponent {
|
|
1117
1174
|
}
|
1118
1175
|
static ɵfac = /*@__PURE__*/ (() => { let ɵPassword_BaseFactory; return function Password_Factory(__ngFactoryType__) { return (ɵPassword_BaseFactory || (ɵPassword_BaseFactory = i0.ɵɵgetInheritedFactory(Password)))(__ngFactoryType__ || Password); }; })();
|
1119
1176
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Password, selectors: [["p-password"]], contentQueries: function Password_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
1120
|
-
i0.ɵɵcontentQuery(dirIndex, _c0,
|
1121
|
-
i0.ɵɵcontentQuery(dirIndex, _c1,
|
1122
|
-
i0.ɵɵcontentQuery(dirIndex, _c2,
|
1123
|
-
i0.ɵɵcontentQuery(dirIndex, _c3,
|
1124
|
-
i0.ɵɵcontentQuery(dirIndex, _c4,
|
1125
|
-
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);
|
1126
1184
|
} if (rf & 2) {
|
1127
1185
|
let _t;
|
1128
1186
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentTemplate = _t.first);
|
1129
1187
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);
|
1130
1188
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
|
1131
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
1132
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
1133
|
-
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);
|
1134
1193
|
} }, viewQuery: function Password_Query(rf, ctx) { if (rf & 1) {
|
1135
1194
|
i0.ɵɵviewQuery(_c6, 5);
|
1136
1195
|
} if (rf & 2) {
|
1137
1196
|
let _t;
|
1138
1197
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.input = _t.first);
|
1139
|
-
} }, inputs: { ariaLabel: "ariaLabel", fluid: [2, "fluid", "fluid", booleanAttribute], ariaLabelledBy: "ariaLabelledBy", label: "label", disabled: [2, "disabled", "disabled", booleanAttribute], promptLabel: "promptLabel", mediumRegex: "mediumRegex", strongRegex: "strongRegex", weakLabel: "weakLabel", mediumLabel: "mediumLabel", maxLength: [2, "maxLength", "maxLength", numberAttribute], strongLabel: "strongLabel", inputId: "inputId", feedback: [2, "feedback", "feedback", booleanAttribute], appendTo: "appendTo", toggleMask: [2, "toggleMask", "toggleMask", booleanAttribute], size: "size", inputStyleClass: "inputStyleClass", styleClass: "styleClass", style: "style", inputStyle: "inputStyle", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", autocomplete: "autocomplete", placeholder: "placeholder", showClear: [2, "showClear", "showClear", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], variant: "variant" }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onClear: "onClear" }, standalone: true, features: [i0.ɵɵProvidersFeature([Password_VALUE_ACCESSOR, PasswordStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 8, vars: 33, consts: [["input", ""], ["overlay", ""], ["content", ""], [3, "ngClass", "ngStyle"], ["pInputText", "", 3, "input", "focus", "blur", "keyup", "disabled", "
|
1198
|
+
} }, inputs: { ariaLabel: "ariaLabel", fluid: [2, "fluid", "fluid", booleanAttribute], ariaLabelledBy: "ariaLabelledBy", label: "label", disabled: [2, "disabled", "disabled", booleanAttribute], promptLabel: "promptLabel", mediumRegex: "mediumRegex", strongRegex: "strongRegex", weakLabel: "weakLabel", mediumLabel: "mediumLabel", maxLength: [2, "maxLength", "maxLength", numberAttribute], strongLabel: "strongLabel", inputId: "inputId", feedback: [2, "feedback", "feedback", booleanAttribute], appendTo: "appendTo", toggleMask: [2, "toggleMask", "toggleMask", booleanAttribute], size: "size", inputStyleClass: "inputStyleClass", styleClass: "styleClass", style: "style", inputStyle: "inputStyle", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", autocomplete: "autocomplete", placeholder: "placeholder", showClear: [2, "showClear", "showClear", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], variant: "variant" }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onClear: "onClear" }, standalone: true, features: [i0.ɵɵProvidersFeature([Password_VALUE_ACCESSOR, PasswordStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 8, vars: 33, consts: [["input", ""], ["overlay", ""], ["content", ""], [3, "ngClass", "ngStyle"], ["pInputText", "", 3, "input", "focus", "blur", "keyup", "disabled", "pSize", "ngClass", "ngStyle", "value", "variant", "pAutoFocus"], [4, "ngIf"], ["class", "p-password-overlay p-component", 3, "click", 4, "ngIf"], ["class", "p-password-clear-icon", 3, "click", 4, "ngIf"], [1, "p-password-clear-icon", 3, "click"], [4, "ngTemplateOutlet"], ["class", "p-password-toggle-mask-icon p-password-mask-icon", 3, "click", 4, "ngIf"], [3, "click", 4, "ngIf"], [1, "p-password-toggle-mask-icon", "p-password-mask-icon", 3, "click"], [3, "click"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "p-password-overlay", "p-component", 3, "click"], [4, "ngIf", "ngIfElse"], [1, "p-password-content"], [1, "p-password-meter"], [1, "p-password-meter-text"]], template: function Password_Template(rf, ctx) { if (rf & 1) {
|
1140
1199
|
const _r1 = i0.ɵɵgetCurrentView();
|
1141
1200
|
i0.ɵɵelementStart(0, "div", 3)(1, "input", 4, 0);
|
1142
1201
|
i0.ɵɵpipe(3, "mapper");
|
@@ -1151,7 +1210,7 @@ class Password extends BaseComponent {
|
|
1151
1210
|
i0.ɵɵattribute("data-pc-name", "password")("data-pc-section", "root");
|
1152
1211
|
i0.ɵɵadvance();
|
1153
1212
|
i0.ɵɵclassMap(ctx.inputStyleClass);
|
1154
|
-
i0.ɵɵproperty("disabled", ctx.disabled)("
|
1213
|
+
i0.ɵɵproperty("disabled", ctx.disabled)("pSize", ctx.size)("ngClass", i0.ɵɵpipeBind2(3, 27, ctx.disabled, ctx.inputFieldClass))("ngStyle", ctx.inputStyle)("value", ctx.value)("variant", ctx.variant)("pAutoFocus", ctx.autofocus);
|
1155
1214
|
i0.ɵɵattribute("label", ctx.label)("aria-label", ctx.ariaLabel)("aria-labelledBy", ctx.ariaLabelledBy)("id", ctx.inputId)("type", i0.ɵɵpipeBind2(4, 30, ctx.unmasked, ctx.inputType))("placeholder", ctx.placeholder)("autocomplete", ctx.autocomplete)("maxlength", ctx.maxLength)("data-pc-section", "input");
|
1156
1215
|
i0.ɵɵadvance(4);
|
1157
1216
|
i0.ɵɵproperty("ngIf", ctx.showClear && ctx.value != null);
|
@@ -1177,7 +1236,7 @@ class Password extends BaseComponent {
|
|
1177
1236
|
[attr.id]="inputId"
|
1178
1237
|
pInputText
|
1179
1238
|
[disabled]="disabled"
|
1180
|
-
[
|
1239
|
+
[pSize]="size"
|
1181
1240
|
[ngClass]="disabled | mapper: inputFieldClass"
|
1182
1241
|
[ngStyle]="inputStyle"
|
1183
1242
|
[class]="inputStyleClass"
|
@@ -1195,23 +1254,23 @@ class Password extends BaseComponent {
|
|
1195
1254
|
[pAutoFocus]="autofocus"
|
1196
1255
|
/>
|
1197
1256
|
<ng-container *ngIf="showClear && value != null">
|
1198
|
-
<TimesIcon *ngIf="!
|
1257
|
+
<TimesIcon *ngIf="!clearIconTemplate && !_clearIconTemplate" class="p-password-clear-icon" (click)="clear()" [attr.data-pc-section]="'clearIcon'" />
|
1199
1258
|
<span (click)="clear()" class="p-password-clear-icon" [attr.data-pc-section]="'clearIcon'">
|
1200
|
-
<ng-template *ngTemplateOutlet="
|
1259
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
|
1201
1260
|
</span>
|
1202
1261
|
</ng-container>
|
1203
1262
|
|
1204
1263
|
<ng-container *ngIf="toggleMask">
|
1205
1264
|
<ng-container *ngIf="unmasked">
|
1206
|
-
<EyeSlashIcon class="p-password-toggle-mask-icon p-password-mask-icon" *ngIf="!
|
1207
|
-
<span *ngIf="
|
1208
|
-
<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>
|
1209
1268
|
</span>
|
1210
1269
|
</ng-container>
|
1211
1270
|
<ng-container *ngIf="!unmasked">
|
1212
|
-
<EyeIcon *ngIf="!
|
1213
|
-
<span *ngIf="
|
1214
|
-
<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>
|
1215
1274
|
</span>
|
1216
1275
|
</ng-container>
|
1217
1276
|
</ng-container>
|
@@ -1229,9 +1288,9 @@ class Password extends BaseComponent {
|
|
1229
1288
|
(@overlayAnimation.done)="onAnimationEnd($event)"
|
1230
1289
|
[attr.data-pc-section]="'panel'"
|
1231
1290
|
>
|
1232
|
-
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
|
1233
|
-
<ng-container *ngIf="contentTemplate; else content">
|
1234
|
-
<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>
|
1235
1294
|
</ng-container>
|
1236
1295
|
<ng-template #content>
|
1237
1296
|
<div class="p-password-content">
|
@@ -1241,7 +1300,7 @@ class Password extends BaseComponent {
|
|
1241
1300
|
<div class="p-password-meter-text" [attr.data-pc-section]="'info'">{{ infoText }}</div>
|
1242
1301
|
</div>
|
1243
1302
|
</ng-template>
|
1244
|
-
<ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
|
1303
|
+
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|
1245
1304
|
</div>
|
1246
1305
|
</div>
|
1247
1306
|
`,
|
@@ -1324,22 +1383,25 @@ class Password extends BaseComponent {
|
|
1324
1383
|
args: ['input']
|
1325
1384
|
}], contentTemplate: [{
|
1326
1385
|
type: ContentChild,
|
1327
|
-
args: ['content']
|
1386
|
+
args: ['content', { descendants: false }]
|
1328
1387
|
}], footerTemplate: [{
|
1329
1388
|
type: ContentChild,
|
1330
|
-
args: ['
|
1389
|
+
args: ['footer', { descendants: false }]
|
1331
1390
|
}], headerTemplate: [{
|
1332
1391
|
type: ContentChild,
|
1333
|
-
args: ['header']
|
1334
|
-
}],
|
1392
|
+
args: ['header', { descendants: false }]
|
1393
|
+
}], clearIconTemplate: [{
|
1335
1394
|
type: ContentChild,
|
1336
|
-
args: ['clearicon']
|
1337
|
-
}],
|
1395
|
+
args: ['clearicon', { descendants: false }]
|
1396
|
+
}], hideIconTemplate: [{
|
1338
1397
|
type: ContentChild,
|
1339
|
-
args: ['headericon']
|
1340
|
-
}],
|
1398
|
+
args: ['headericon', { descendants: false }]
|
1399
|
+
}], showIconTemplate: [{
|
1341
1400
|
type: ContentChild,
|
1342
|
-
args: ['showicon']
|
1401
|
+
args: ['showicon', { descendants: false }]
|
1402
|
+
}], templates: [{
|
1403
|
+
type: ContentChildren,
|
1404
|
+
args: [PrimeTemplate]
|
1343
1405
|
}] }); })();
|
1344
1406
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Password, { className: "Password" }); })();
|
1345
1407
|
class PasswordModule {
|