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
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as i1 from '@angular/common';
|
2
2
|
import { CommonModule } from '@angular/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
|
-
import { Injectable, forwardRef, EventEmitter, booleanAttribute, numberAttribute, Component, Input, Output, inject, signal, computed, effect, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, HostBinding, ContentChild, NgModule } from '@angular/core';
|
4
|
+
import { Injectable, forwardRef, EventEmitter, booleanAttribute, numberAttribute, Component, Input, Output, inject, signal, computed, effect, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, HostBinding, ContentChild, ContentChildren, NgModule } from '@angular/core';
|
5
5
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
6
6
|
import { deepEquals, isNotEmpty, isEmpty, uuid, findSingle, scrollInView, equals, resolveFieldData, focus, unblockBodyScroll, isPrintableCharacter, findLastIndex, getFirstFocusableElement, getLastFocusableElement, getFocusableElements } from '@primeuix/utils';
|
7
7
|
import * as i2 from 'primeng/api';
|
8
|
-
import { SharedModule, TranslationKeys } from 'primeng/api';
|
8
|
+
import { SharedModule, TranslationKeys, PrimeTemplate } from 'primeng/api';
|
9
9
|
import { AutoFocus } from 'primeng/autofocus';
|
10
10
|
import { BaseComponent } from 'primeng/basecomponent';
|
11
11
|
import { IconField } from 'primeng/iconfield';
|
@@ -130,9 +130,6 @@ input.p-select-label {
|
|
130
130
|
}
|
131
131
|
|
132
132
|
.p-select-overlay {
|
133
|
-
position: absolute;
|
134
|
-
top: 0;
|
135
|
-
inset-inline-start: 0;
|
136
133
|
background: ${dt('select.overlay.background')};
|
137
134
|
color: ${dt('select.overlay.color')};
|
138
135
|
border: 1px solid ${dt('select.overlay.border.color')};
|
@@ -249,7 +246,7 @@ const classes = {
|
|
249
246
|
'p-disabled': instance.disabled,
|
250
247
|
'p-variant-filled': instance.variant ? instance.variant === 'filled' : instance.config.inputStyle() === 'filled',
|
251
248
|
'p-focus': instance.focused,
|
252
|
-
'p-inputwrapper-filled': instance.modelValue() !== undefined && instance.modelValue() !== null
|
249
|
+
'p-inputwrapper-filled': instance.modelValue() !== undefined && instance.modelValue() !== null,
|
253
250
|
'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
|
254
251
|
'p-select-open': instance.overlayVisible,
|
255
252
|
'p-select-fluid': instance.fluid,
|
@@ -457,7 +454,7 @@ function Select_span_0_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
457
454
|
i0.ɵɵelementContainer(0, 24);
|
458
455
|
} if (rf & 2) {
|
459
456
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
460
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
457
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.selectedItemTemplate || ctx_r2._selectedItemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, ctx_r2.selectedOption));
|
461
458
|
} }
|
462
459
|
function Select_span_0_ng_template_4_span_0_Template(rf, ctx) { if (rf & 1) {
|
463
460
|
i0.ɵɵelementStart(0, "span");
|
@@ -487,9 +484,9 @@ function Select_span_0_Template(rf, ctx) { if (rf & 1) {
|
|
487
484
|
i0.ɵɵproperty("ngClass", ctx_r2.inputClass)("pTooltip", ctx_r2.tooltip)("tooltipPosition", ctx_r2.tooltipPosition)("positionStyle", ctx_r2.tooltipPositionStyle)("tooltipStyleClass", ctx_r2.tooltipStyleClass)("pAutoFocus", ctx_r2.autofocus);
|
488
485
|
i0.ɵɵattribute("aria-disabled", ctx_r2.disabled)("id", ctx_r2.inputId)("aria-label", ctx_r2.ariaLabel || (ctx_r2.label() === "p-emptylabel" ? undefined : ctx_r2.label()))("aria-labelledby", ctx_r2.ariaLabelledBy)("aria-haspopup", "listbox")("aria-expanded", (tmp_17_0 = ctx_r2.overlayVisible) !== null && tmp_17_0 !== undefined ? tmp_17_0 : false)("aria-controls", ctx_r2.overlayVisible ? ctx_r2.id + "_list" : null)("tabindex", !ctx_r2.disabled ? ctx_r2.tabindex : -1)("aria-activedescendant", ctx_r2.focused ? ctx_r2.focusedOptionId : undefined)("aria-required", ctx_r2.required)("required", ctx_r2.required);
|
489
486
|
i0.ɵɵadvance(2);
|
490
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
487
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.selectedItemTemplate && !ctx_r2._selectedItemTemplate)("ngIfElse", defaultPlaceholder_r4);
|
491
488
|
i0.ɵɵadvance();
|
492
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
489
|
+
i0.ɵɵproperty("ngIf", (ctx_r2.selectedItemTemplate || ctx_r2._selectedItemTemplate) && ctx_r2.selectedOption);
|
493
490
|
} }
|
494
491
|
function Select_input_1_Template(rf, ctx) { if (rf & 1) {
|
495
492
|
const _r5 = i0.ɵɵgetCurrentView();
|
@@ -523,7 +520,7 @@ function Select_ng_container_2_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
523
520
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
524
521
|
i0.ɵɵattribute("data-pc-section", "clearicon");
|
525
522
|
i0.ɵɵadvance();
|
526
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
523
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.clearIconTemplate || ctx_r2._clearIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction0(3, _c26));
|
527
524
|
} }
|
528
525
|
function Select_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
529
526
|
i0.ɵɵelementContainerStart(0);
|
@@ -532,9 +529,9 @@ function Select_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
532
529
|
} if (rf & 2) {
|
533
530
|
const ctx_r2 = i0.ɵɵnextContext();
|
534
531
|
i0.ɵɵadvance();
|
535
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
532
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.clearIconTemplate && !ctx_r2._clearIconTemplate);
|
536
533
|
i0.ɵɵadvance();
|
537
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
534
|
+
i0.ɵɵproperty("ngIf", ctx_r2.clearIconTemplate || ctx_r2._clearIconTemplate);
|
538
535
|
} }
|
539
536
|
function Select_ng_container_4_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
540
537
|
i0.ɵɵelementContainer(0);
|
@@ -546,7 +543,7 @@ function Select_ng_container_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
546
543
|
} if (rf & 2) {
|
547
544
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
548
545
|
i0.ɵɵadvance();
|
549
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
546
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.loadingIconTemplate || ctx_r2._loadingIconTemplate);
|
550
547
|
} }
|
551
548
|
function Select_ng_container_4_ng_container_2_span_1_Template(rf, ctx) { if (rf & 1) {
|
552
549
|
i0.ɵɵelement(0, "span", 32);
|
@@ -577,9 +574,9 @@ function Select_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
577
574
|
} if (rf & 2) {
|
578
575
|
const ctx_r2 = i0.ɵɵnextContext();
|
579
576
|
i0.ɵɵadvance();
|
580
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
577
|
+
i0.ɵɵproperty("ngIf", ctx_r2.loadingIconTemplate || ctx_r2._loadingIconTemplate);
|
581
578
|
i0.ɵɵadvance();
|
582
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
579
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.loadingIconTemplate && !ctx_r2._loadingIconTemplate);
|
583
580
|
} }
|
584
581
|
function Select_ng_template_5_ng_container_0_span_1_Template(rf, ctx) { if (rf & 1) {
|
585
582
|
i0.ɵɵelement(0, "span", 37);
|
@@ -614,15 +611,15 @@ function Select_ng_template_5_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
614
611
|
} if (rf & 2) {
|
615
612
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
616
613
|
i0.ɵɵadvance();
|
617
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
614
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.dropdownIconTemplate || ctx_r2._dropdownIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction0(2, _c27));
|
618
615
|
} }
|
619
616
|
function Select_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
620
617
|
i0.ɵɵtemplate(0, Select_ng_template_5_ng_container_0_Template, 3, 2, "ng-container", 18)(1, Select_ng_template_5_span_1_Template, 2, 3, "span", 34);
|
621
618
|
} if (rf & 2) {
|
622
619
|
const ctx_r2 = i0.ɵɵnextContext();
|
623
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
620
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.dropdownIconTemplate && !ctx_r2._dropdownIconTemplate);
|
624
621
|
i0.ɵɵadvance();
|
625
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
622
|
+
i0.ɵɵproperty("ngIf", ctx_r2.dropdownIconTemplate || ctx_r2._dropdownIconTemplate);
|
626
623
|
} }
|
627
624
|
function Select_ng_template_9_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
628
625
|
i0.ɵɵelementContainer(0);
|
@@ -637,7 +634,7 @@ function Select_ng_template_9_div_4_ng_container_1_Template(rf, ctx) { if (rf &
|
|
637
634
|
} if (rf & 2) {
|
638
635
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
639
636
|
i0.ɵɵadvance();
|
640
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.filterTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c28, ctx_r2.filterOptions));
|
637
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.filterTemplate || ctx_r2._filterTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c28, ctx_r2.filterOptions));
|
641
638
|
} }
|
642
639
|
function Select_ng_template_9_div_4_ng_template_2_SearchIcon_4_Template(rf, ctx) { if (rf & 1) {
|
643
640
|
i0.ɵɵelement(0, "SearchIcon");
|
@@ -653,7 +650,7 @@ function Select_ng_template_9_div_4_ng_template_2_span_5_Template(rf, ctx) { if
|
|
653
650
|
} if (rf & 2) {
|
654
651
|
const ctx_r2 = i0.ɵɵnextContext(4);
|
655
652
|
i0.ɵɵadvance();
|
656
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
653
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.filterIconTemplate || ctx_r2._filterIconTemplate);
|
657
654
|
} }
|
658
655
|
function Select_ng_template_9_div_4_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
659
656
|
const _r10 = i0.ɵɵgetCurrentView();
|
@@ -666,24 +663,24 @@ function Select_ng_template_9_div_4_ng_template_2_Template(rf, ctx) { if (rf & 1
|
|
666
663
|
} if (rf & 2) {
|
667
664
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
668
665
|
i0.ɵɵadvance();
|
669
|
-
i0.ɵɵproperty("value", ctx_r2._filterValue() || "")("variant", ctx_r2.variant);
|
666
|
+
i0.ɵɵproperty("pSize", ctx_r2.size)("value", ctx_r2._filterValue() || "")("variant", ctx_r2.variant);
|
670
667
|
i0.ɵɵattribute("placeholder", ctx_r2.filterPlaceholder)("aria-owns", ctx_r2.id + "_list")("aria-label", ctx_r2.ariaFilterLabel)("aria-activedescendant", ctx_r2.focusedOptionId);
|
671
668
|
i0.ɵɵadvance(3);
|
672
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
669
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.filterIconTemplate && !ctx_r2._filterIconTemplate);
|
673
670
|
i0.ɵɵadvance();
|
674
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
671
|
+
i0.ɵɵproperty("ngIf", ctx_r2.filterIconTemplate || ctx_r2._filterIconTemplate);
|
675
672
|
} }
|
676
673
|
function Select_ng_template_9_div_4_Template(rf, ctx) { if (rf & 1) {
|
677
674
|
const _r9 = i0.ɵɵgetCurrentView();
|
678
675
|
i0.ɵɵelementStart(0, "div", 45);
|
679
676
|
i0.ɵɵlistener("click", function Select_ng_template_9_div_4_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r9); return i0.ɵɵresetView($event.stopPropagation()); });
|
680
|
-
i0.ɵɵtemplate(1, Select_ng_template_9_div_4_ng_container_1_Template, 2, 4, "ng-container", 20)(2, Select_ng_template_9_div_4_ng_template_2_Template, 6,
|
677
|
+
i0.ɵɵtemplate(1, Select_ng_template_9_div_4_ng_container_1_Template, 2, 4, "ng-container", 20)(2, Select_ng_template_9_div_4_ng_template_2_Template, 6, 9, "ng-template", null, 9, i0.ɵɵtemplateRefExtractor);
|
681
678
|
i0.ɵɵelementEnd();
|
682
679
|
} if (rf & 2) {
|
683
680
|
const builtInFilterElement_r11 = i0.ɵɵreference(3);
|
684
681
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
685
682
|
i0.ɵɵadvance();
|
686
|
-
i0.ɵɵproperty("ngIf", ctx_r2.filterTemplate)("ngIfElse", builtInFilterElement_r11);
|
683
|
+
i0.ɵɵproperty("ngIf", ctx_r2.filterTemplate || ctx_r2._filterTemplate)("ngIfElse", builtInFilterElement_r11);
|
687
684
|
} }
|
688
685
|
function Select_ng_template_9_p_scroller_6_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
689
686
|
i0.ɵɵelementContainer(0);
|
@@ -705,7 +702,7 @@ function Select_ng_template_9_p_scroller_6_ng_container_4_ng_template_1_Template
|
|
705
702
|
} if (rf & 2) {
|
706
703
|
const scrollerOptions_r16 = ctx.options;
|
707
704
|
const ctx_r2 = i0.ɵɵnextContext(4);
|
708
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.loaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c28, scrollerOptions_r16));
|
705
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.loaderTemplate || ctx_r2._loaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c28, scrollerOptions_r16));
|
709
706
|
} }
|
710
707
|
function Select_ng_template_9_p_scroller_6_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
711
708
|
i0.ɵɵelementContainerStart(0);
|
@@ -723,7 +720,7 @@ function Select_ng_template_9_p_scroller_6_Template(rf, ctx) { if (rf & 1) {
|
|
723
720
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(8, _c0, ctx_r2.scrollHeight));
|
724
721
|
i0.ɵɵproperty("items", ctx_r2.visibleOptions())("itemSize", ctx_r2.virtualScrollItemSize || ctx_r2._itemSize)("autoSize", true)("lazy", ctx_r2.lazy)("options", ctx_r2.virtualScrollOptions);
|
725
722
|
i0.ɵɵadvance(4);
|
726
|
-
i0.ɵɵproperty("ngIf", ctx_r2.loaderTemplate);
|
723
|
+
i0.ɵɵproperty("ngIf", ctx_r2.loaderTemplate || ctx_r2._loaderTemplate);
|
727
724
|
} }
|
728
725
|
function Select_ng_template_9_ng_container_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
729
726
|
i0.ɵɵelementContainer(0);
|
@@ -768,9 +765,9 @@ function Select_ng_template_9_ng_template_8_ng_template_2_ng_container_0_Templat
|
|
768
765
|
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c0, scrollerOptions_r20.itemSize + "px"));
|
769
766
|
i0.ɵɵattribute("id", ctx_r2.id + "_" + ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20));
|
770
767
|
i0.ɵɵadvance();
|
771
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.groupTemplate);
|
768
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.groupTemplate && !ctx_r2._groupTemplate);
|
772
769
|
i0.ɵɵadvance();
|
773
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.groupTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(7, _c2, option_r17.optionGroup));
|
770
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.groupTemplate || ctx_r2._groupTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(7, _c2, option_r17.optionGroup));
|
774
771
|
} }
|
775
772
|
function Select_ng_template_9_ng_template_8_ng_template_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
776
773
|
const _r21 = i0.ɵɵgetCurrentView();
|
@@ -786,7 +783,7 @@ function Select_ng_template_9_ng_template_8_ng_template_2_ng_container_1_Templat
|
|
786
783
|
const scrollerOptions_r20 = i0.ɵɵnextContext().options;
|
787
784
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
788
785
|
i0.ɵɵadvance();
|
789
|
-
i0.ɵɵproperty("id", ctx_r2.id + "_" + ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20))("option", option_r17)("checkmark", ctx_r2.checkmark)("selected", ctx_r2.isSelected(option_r17))("label", ctx_r2.getOptionLabel(option_r17))("disabled", ctx_r2.isOptionDisabled(option_r17))("template", ctx_r2.itemTemplate)("focused", ctx_r2.focusedOptionIndex() === ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20))("ariaPosInset", ctx_r2.getAriaPosInset(ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20)))("ariaSetSize", ctx_r2.ariaSetSize);
|
786
|
+
i0.ɵɵproperty("id", ctx_r2.id + "_" + ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20))("option", option_r17)("checkmark", ctx_r2.checkmark)("selected", ctx_r2.isSelected(option_r17))("label", ctx_r2.getOptionLabel(option_r17))("disabled", ctx_r2.isOptionDisabled(option_r17))("template", ctx_r2.itemTemplate || ctx_r2._itemTemplate)("focused", ctx_r2.focusedOptionIndex() === ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20))("ariaPosInset", ctx_r2.getAriaPosInset(ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20)))("ariaSetSize", ctx_r2.ariaSetSize);
|
790
787
|
} }
|
791
788
|
function Select_ng_template_9_ng_template_8_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
792
789
|
i0.ɵɵtemplate(0, Select_ng_template_9_ng_template_8_ng_template_2_ng_container_0_Template, 4, 9, "ng-container", 18)(1, Select_ng_template_9_ng_template_8_ng_template_2_ng_container_1_Template, 2, 10, "ng-container", 18);
|
@@ -810,7 +807,7 @@ function Select_ng_template_9_ng_template_8_li_3_Conditional_2_Template(rf, ctx)
|
|
810
807
|
i0.ɵɵtemplate(0, Select_ng_template_9_ng_template_8_li_3_Conditional_2_ng_container_0_Template, 2, 0, "ng-container", 29);
|
811
808
|
} if (rf & 2) {
|
812
809
|
const ctx_r2 = i0.ɵɵnextContext(4);
|
813
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
810
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.emptyFilterTemplate || ctx_r2._emptyFilterTemplate || ctx_r2.emptyTemplate || ctx_r2._emptyTemplate);
|
814
811
|
} }
|
815
812
|
function Select_ng_template_9_ng_template_8_li_3_Template(rf, ctx) { if (rf & 1) {
|
816
813
|
i0.ɵɵelementStart(0, "li", 53);
|
@@ -821,7 +818,7 @@ function Select_ng_template_9_ng_template_8_li_3_Template(rf, ctx) { if (rf & 1)
|
|
821
818
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
822
819
|
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(2, _c0, scrollerOptions_r20.itemSize + "px"));
|
823
820
|
i0.ɵɵadvance();
|
824
|
-
i0.ɵɵconditional(!ctx_r2.
|
821
|
+
i0.ɵɵconditional(!ctx_r2.emptyFilterTemplate && !ctx_r2._emptyFilterTemplate && !ctx_r2.emptyTemplate ? 1 : 2);
|
825
822
|
} }
|
826
823
|
function Select_ng_template_9_ng_template_8_li_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
827
824
|
i0.ɵɵtext(0);
|
@@ -836,7 +833,7 @@ function Select_ng_template_9_ng_template_8_li_4_Conditional_2_Template(rf, ctx)
|
|
836
833
|
i0.ɵɵtemplate(0, Select_ng_template_9_ng_template_8_li_4_Conditional_2_ng_container_0_Template, 2, 0, "ng-container", 29);
|
837
834
|
} if (rf & 2) {
|
838
835
|
const ctx_r2 = i0.ɵɵnextContext(4);
|
839
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.emptyTemplate);
|
836
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.emptyTemplate || ctx_r2._emptyTemplate);
|
840
837
|
} }
|
841
838
|
function Select_ng_template_9_ng_template_8_li_4_Template(rf, ctx) { if (rf & 1) {
|
842
839
|
i0.ɵɵelementStart(0, "li", 53);
|
@@ -847,7 +844,7 @@ function Select_ng_template_9_ng_template_8_li_4_Template(rf, ctx) { if (rf & 1)
|
|
847
844
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
848
845
|
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(2, _c0, scrollerOptions_r20.itemSize + "px"));
|
849
846
|
i0.ɵɵadvance();
|
850
|
-
i0.ɵɵconditional(!ctx_r2.emptyTemplate ? 1 : 2);
|
847
|
+
i0.ɵɵconditional(!ctx_r2.emptyTemplate && !ctx_r2._emptyTemplate ? 1 : 2);
|
851
848
|
} }
|
852
849
|
function Select_ng_template_9_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
853
850
|
i0.ɵɵelementStart(0, "ul", 48, 13);
|
@@ -890,7 +887,7 @@ function Select_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
890
887
|
i0.ɵɵadvance();
|
891
888
|
i0.ɵɵattribute("tabindex", 0)("data-p-hidden-accessible", true)("data-p-hidden-focusable", true);
|
892
889
|
i0.ɵɵadvance(2);
|
893
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.headerTemplate);
|
890
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.headerTemplate || ctx_r2._headerTemplate);
|
894
891
|
i0.ɵɵadvance();
|
895
892
|
i0.ɵɵproperty("ngIf", ctx_r2.filter);
|
896
893
|
i0.ɵɵadvance();
|
@@ -900,7 +897,7 @@ function Select_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
900
897
|
i0.ɵɵadvance();
|
901
898
|
i0.ɵɵproperty("ngIf", !ctx_r2.virtualScroll);
|
902
899
|
i0.ɵɵadvance(3);
|
903
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.footerTemplate);
|
900
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.footerTemplate || ctx_r2._footerTemplate);
|
904
901
|
i0.ɵɵadvance();
|
905
902
|
i0.ɵɵattribute("tabindex", 0)("data-p-hidden-accessible", true)("data-p-hidden-focusable", true);
|
906
903
|
} }
|
@@ -1530,7 +1527,7 @@ class Select extends BaseComponent {
|
|
1530
1527
|
* Custom selected item template.
|
1531
1528
|
* @group Templates
|
1532
1529
|
*/
|
1533
|
-
|
1530
|
+
selectedItemTemplate;
|
1534
1531
|
/**
|
1535
1532
|
* Custom header template.
|
1536
1533
|
* @group Templates
|
@@ -1550,7 +1547,7 @@ class Select extends BaseComponent {
|
|
1550
1547
|
* Custom empty filter template.
|
1551
1548
|
* @group Templates
|
1552
1549
|
*/
|
1553
|
-
|
1550
|
+
emptyFilterTemplate;
|
1554
1551
|
/**
|
1555
1552
|
* Custom empty template.
|
1556
1553
|
* @group Templates
|
@@ -1560,37 +1557,54 @@ class Select extends BaseComponent {
|
|
1560
1557
|
* Custom dropdown icon template.
|
1561
1558
|
* @group Templates
|
1562
1559
|
*/
|
1563
|
-
|
1560
|
+
dropdownIconTemplate;
|
1564
1561
|
/**
|
1565
1562
|
* Custom loading icon template.
|
1566
1563
|
* @group Templates
|
1567
1564
|
*/
|
1568
|
-
|
1565
|
+
loadingIconTemplate;
|
1569
1566
|
/**
|
1570
1567
|
* Custom clear icon template.
|
1571
1568
|
* @group Templates
|
1572
1569
|
*/
|
1573
|
-
|
1570
|
+
clearIconTemplate;
|
1574
1571
|
/**
|
1575
1572
|
* Custom filter icon template.
|
1576
1573
|
* @group Templates
|
1577
1574
|
*/
|
1578
|
-
|
1575
|
+
filterIconTemplate;
|
1579
1576
|
/**
|
1580
1577
|
* Custom on icon template.
|
1581
1578
|
* @group Templates
|
1582
1579
|
*/
|
1583
|
-
|
1580
|
+
onIconTemplate;
|
1584
1581
|
/**
|
1585
1582
|
* Custom off icon template.
|
1586
1583
|
* @group Templates
|
1587
1584
|
*/
|
1588
|
-
|
1585
|
+
offIconTemplate;
|
1589
1586
|
/**
|
1590
1587
|
* Custom cancel icon template.
|
1591
1588
|
* @group Templates
|
1592
1589
|
*/
|
1593
|
-
|
1590
|
+
cancelIconTemplate;
|
1591
|
+
templates;
|
1592
|
+
_itemTemplate;
|
1593
|
+
_selectedItemTemplate;
|
1594
|
+
_headerTemplate;
|
1595
|
+
_filterTemplate;
|
1596
|
+
_footerTemplate;
|
1597
|
+
_emptyFilterTemplate;
|
1598
|
+
_emptyTemplate;
|
1599
|
+
_groupTemplate;
|
1600
|
+
_loaderTemplate;
|
1601
|
+
_dropdownIconTemplate;
|
1602
|
+
_loadingIconTemplate;
|
1603
|
+
_clearIconTemplate;
|
1604
|
+
_filterIconTemplate;
|
1605
|
+
_cancelIconTemplate;
|
1606
|
+
_onIconTemplate;
|
1607
|
+
_offIconTemplate;
|
1594
1608
|
filterOptions;
|
1595
1609
|
_options = signal(null);
|
1596
1610
|
_placeholder = signal(undefined);
|
@@ -1637,7 +1651,7 @@ class Select extends BaseComponent {
|
|
1637
1651
|
return {
|
1638
1652
|
'p-select-label': true,
|
1639
1653
|
'p-placeholder': this.placeholder() && label === this.placeholder(),
|
1640
|
-
'p-select-label-empty': !this.editable && !this.
|
1654
|
+
'p-select-label-empty': !this.editable && !this.selectedItemTemplate && (label === undefined || label === null || label === 'p-emptylabel' || label.length === 0)
|
1641
1655
|
};
|
1642
1656
|
}
|
1643
1657
|
get panelClass() {
|
@@ -1734,6 +1748,63 @@ class Select extends BaseComponent {
|
|
1734
1748
|
};
|
1735
1749
|
}
|
1736
1750
|
}
|
1751
|
+
ngAfterContentInit() {
|
1752
|
+
this.templates.forEach((item) => {
|
1753
|
+
switch (item.getType()) {
|
1754
|
+
case 'item':
|
1755
|
+
this._itemTemplate = item.template;
|
1756
|
+
break;
|
1757
|
+
case 'selectedItem':
|
1758
|
+
this._selectedItemTemplate = item.template;
|
1759
|
+
break;
|
1760
|
+
case 'header':
|
1761
|
+
this._headerTemplate = item.template;
|
1762
|
+
break;
|
1763
|
+
case 'filter':
|
1764
|
+
this._filterTemplate = item.template;
|
1765
|
+
break;
|
1766
|
+
case 'footer':
|
1767
|
+
this._footerTemplate = item.template;
|
1768
|
+
break;
|
1769
|
+
case 'emptyfilter':
|
1770
|
+
this._emptyFilterTemplate = item.template;
|
1771
|
+
break;
|
1772
|
+
case 'empty':
|
1773
|
+
this._emptyTemplate = item.template;
|
1774
|
+
break;
|
1775
|
+
case 'group':
|
1776
|
+
this._groupTemplate = item.template;
|
1777
|
+
break;
|
1778
|
+
case 'loader':
|
1779
|
+
this._loaderTemplate = item.template;
|
1780
|
+
break;
|
1781
|
+
case 'dropdownicon':
|
1782
|
+
this._dropdownIconTemplate = item.template;
|
1783
|
+
break;
|
1784
|
+
case 'loadingicon':
|
1785
|
+
this._loadingIconTemplate = item.template;
|
1786
|
+
break;
|
1787
|
+
case 'clearicon':
|
1788
|
+
this._clearIconTemplate = item.template;
|
1789
|
+
break;
|
1790
|
+
case 'filtericon':
|
1791
|
+
this._filterIconTemplate = item.template;
|
1792
|
+
break;
|
1793
|
+
case 'cancelicon':
|
1794
|
+
this._cancelIconTemplate = item.template;
|
1795
|
+
break;
|
1796
|
+
case 'onicon':
|
1797
|
+
this._onIconTemplate = item.template;
|
1798
|
+
break;
|
1799
|
+
case 'officon':
|
1800
|
+
this._offIconTemplate = item.template;
|
1801
|
+
break;
|
1802
|
+
default:
|
1803
|
+
this._itemTemplate = item.template;
|
1804
|
+
break;
|
1805
|
+
}
|
1806
|
+
});
|
1807
|
+
}
|
1737
1808
|
ngAfterViewChecked() {
|
1738
1809
|
if (this.optionsChanged && this.overlayVisible) {
|
1739
1810
|
this.optionsChanged = false;
|
@@ -2398,40 +2469,42 @@ class Select extends BaseComponent {
|
|
2398
2469
|
}
|
2399
2470
|
static ɵfac = function Select_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Select)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i2.FilterService)); };
|
2400
2471
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Select, selectors: [["p-select"]], contentQueries: function Select_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
2401
|
-
i0.ɵɵcontentQuery(dirIndex, _c3,
|
2402
|
-
i0.ɵɵcontentQuery(dirIndex, _c4,
|
2403
|
-
i0.ɵɵcontentQuery(dirIndex, _c5,
|
2404
|
-
i0.ɵɵcontentQuery(dirIndex, _c6,
|
2405
|
-
i0.ɵɵcontentQuery(dirIndex, _c7,
|
2406
|
-
i0.ɵɵcontentQuery(dirIndex, _c8,
|
2407
|
-
i0.ɵɵcontentQuery(dirIndex, _c9,
|
2408
|
-
i0.ɵɵcontentQuery(dirIndex, _c10,
|
2409
|
-
i0.ɵɵcontentQuery(dirIndex, _c11,
|
2410
|
-
i0.ɵɵcontentQuery(dirIndex, _c12,
|
2411
|
-
i0.ɵɵcontentQuery(dirIndex, _c13,
|
2412
|
-
i0.ɵɵcontentQuery(dirIndex, _c14,
|
2413
|
-
i0.ɵɵcontentQuery(dirIndex, _c15,
|
2414
|
-
i0.ɵɵcontentQuery(dirIndex, _c16,
|
2415
|
-
i0.ɵɵcontentQuery(dirIndex, _c17,
|
2416
|
-
i0.ɵɵcontentQuery(dirIndex, _c18,
|
2472
|
+
i0.ɵɵcontentQuery(dirIndex, _c3, 4);
|
2473
|
+
i0.ɵɵcontentQuery(dirIndex, _c4, 4);
|
2474
|
+
i0.ɵɵcontentQuery(dirIndex, _c5, 4);
|
2475
|
+
i0.ɵɵcontentQuery(dirIndex, _c6, 4);
|
2476
|
+
i0.ɵɵcontentQuery(dirIndex, _c7, 4);
|
2477
|
+
i0.ɵɵcontentQuery(dirIndex, _c8, 4);
|
2478
|
+
i0.ɵɵcontentQuery(dirIndex, _c9, 4);
|
2479
|
+
i0.ɵɵcontentQuery(dirIndex, _c10, 4);
|
2480
|
+
i0.ɵɵcontentQuery(dirIndex, _c11, 4);
|
2481
|
+
i0.ɵɵcontentQuery(dirIndex, _c12, 4);
|
2482
|
+
i0.ɵɵcontentQuery(dirIndex, _c13, 4);
|
2483
|
+
i0.ɵɵcontentQuery(dirIndex, _c14, 4);
|
2484
|
+
i0.ɵɵcontentQuery(dirIndex, _c15, 4);
|
2485
|
+
i0.ɵɵcontentQuery(dirIndex, _c16, 4);
|
2486
|
+
i0.ɵɵcontentQuery(dirIndex, _c17, 4);
|
2487
|
+
i0.ɵɵcontentQuery(dirIndex, _c18, 4);
|
2488
|
+
i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
|
2417
2489
|
} if (rf & 2) {
|
2418
2490
|
let _t;
|
2419
2491
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemTemplate = _t.first);
|
2420
2492
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.groupTemplate = _t.first);
|
2421
2493
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loaderTemplate = _t.first);
|
2422
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2494
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectedItemTemplate = _t.first);
|
2423
2495
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
|
2424
2496
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterTemplate = _t.first);
|
2425
2497
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);
|
2426
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2498
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emptyFilterTemplate = _t.first);
|
2427
2499
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emptyTemplate = _t.first);
|
2428
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2429
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2430
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2431
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2432
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2433
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2434
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
2500
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdownIconTemplate = _t.first);
|
2501
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loadingIconTemplate = _t.first);
|
2502
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.clearIconTemplate = _t.first);
|
2503
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterIconTemplate = _t.first);
|
2504
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.onIconTemplate = _t.first);
|
2505
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.offIconTemplate = _t.first);
|
2506
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.cancelIconTemplate = _t.first);
|
2507
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
|
2435
2508
|
} }, viewQuery: function Select_Query(rf, ctx) { if (rf & 1) {
|
2436
2509
|
i0.ɵɵviewQuery(_c8, 5);
|
2437
2510
|
i0.ɵɵviewQuery(_c19, 5);
|
@@ -2457,7 +2530,7 @@ class Select extends BaseComponent {
|
|
2457
2530
|
i0.ɵɵattribute("id", ctx.id);
|
2458
2531
|
i0.ɵɵstyleMap(ctx.hostStyle);
|
2459
2532
|
i0.ɵɵclassMap(ctx.hostClass);
|
2460
|
-
} }, inputs: { id: "id", scrollHeight: "scrollHeight", filter: [2, "filter", "filter", booleanAttribute], name: "name", style: "style", panelStyle: "panelStyle", styleClass: "styleClass", panelStyleClass: "panelStyleClass", readonly: [2, "readonly", "readonly", booleanAttribute], required: [2, "required", "required", booleanAttribute], editable: [2, "editable", "editable", booleanAttribute], appendTo: "appendTo", tabindex: [2, "tabindex", "tabindex", numberAttribute], placeholder: "placeholder", loadingIcon: "loadingIcon", filterPlaceholder: "filterPlaceholder", filterLocale: "filterLocale", variant: "variant", inputId: "inputId", dataKey: "dataKey", filterBy: "filterBy", filterFields: "filterFields", autofocus: [2, "autofocus", "autofocus", booleanAttribute], resetFilterOnHide: [2, "resetFilterOnHide", "resetFilterOnHide", booleanAttribute], checkmark: [2, "checkmark", "checkmark", booleanAttribute], dropdownIcon: "dropdownIcon", loading: [2, "loading", "loading", booleanAttribute], optionLabel: "optionLabel", optionValue: "optionValue", optionDisabled: "optionDisabled", optionGroupLabel: "optionGroupLabel", optionGroupChildren: "optionGroupChildren", autoDisplayFirst: [2, "autoDisplayFirst", "autoDisplayFirst", booleanAttribute], group: [2, "group", "group", booleanAttribute], showClear: [2, "showClear", "showClear", booleanAttribute], emptyFilterMessage: "emptyFilterMessage", emptyMessage: "emptyMessage", lazy: [2, "lazy", "lazy", booleanAttribute], virtualScroll: [2, "virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: [2, "virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", size: "size", overlayOptions: "overlayOptions", ariaFilterLabel: "ariaFilterLabel", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", filterMatchMode: "filterMatchMode", maxlength: [2, "maxlength", "maxlength", numberAttribute], tooltip: "tooltip", tooltipPosition: "tooltipPosition", tooltipPositionStyle: "tooltipPositionStyle", tooltipStyleClass: "tooltipStyleClass", focusOnHover: [2, "focusOnHover", "focusOnHover", booleanAttribute], selectOnFocus: [2, "selectOnFocus", "selectOnFocus", booleanAttribute], autoOptionFocus: [2, "autoOptionFocus", "autoOptionFocus", booleanAttribute], autofocusFilter: [2, "autofocusFilter", "autofocusFilter", booleanAttribute], fluid: [2, "fluid", "fluid", booleanAttribute], disabled: "disabled", itemSize: "itemSize", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", filterValue: "filterValue", options: "options" }, outputs: { onChange: "onChange", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onClick: "onClick", onShow: "onShow", onHide: "onHide", onClear: "onClear", onLazyLoad: "onLazyLoad" }, standalone: true, features: [i0.ɵɵProvidersFeature([SELECT_VALUE_ACCESSOR, SelectStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 11, vars: 15, consts: [["elseBlock", ""], ["overlay", ""], ["content", ""], ["focusInput", ""], ["defaultPlaceholder", ""], ["editableInput", ""], ["firstHiddenFocusableEl", ""], ["buildInItems", ""], ["lastHiddenFocusableEl", ""], ["builtInFilterElement", ""], ["filter", ""], ["scroller", ""], ["loader", ""], ["items", ""], ["emptyFilter", ""], ["empty", ""], ["role", "combobox", 3, "ngClass", "pTooltip", "tooltipPosition", "positionStyle", "tooltipStyleClass", "pAutoFocus", "focus", "blur", "keydown", 4, "ngIf"], ["type", "text", "aria-haspopup", "listbox", 3, "ngClass", "disabled", "pAutoFocus", "input", "keydown", "focus", "blur", 4, "ngIf"], [4, "ngIf"], ["role", "button", "aria-label", "dropdown trigger", "aria-haspopup", "listbox", 1, "p-select-dropdown"], [4, "ngIf", "ngIfElse"], [3, "visibleChange", "onAnimationStart", "onHide", "visible", "options", "target", "appendTo", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions"], ["role", "combobox", 3, "focus", "blur", "keydown", "ngClass", "pTooltip", "tooltipPosition", "positionStyle", "tooltipStyleClass", "pAutoFocus"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["type", "text", "aria-haspopup", "listbox", 3, "input", "keydown", "focus", "blur", "ngClass", "disabled", "pAutoFocus"], ["class", "p-select-clear-icon", 3, "click", 4, "ngIf"], [1, "p-select-clear-icon", 3, "click"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [4, "ngTemplateOutlet"], ["aria-hidden", "true", 3, "ngClass", 4, "ngIf"], ["aria-hidden", "true", 3, "class", 4, "ngIf"], ["aria-hidden", "true", 3, "ngClass"], ["aria-hidden", "true"], ["class", "p-select-dropdown-icon", 4, "ngIf"], ["class", "p-select-dropdown-icon", 3, "ngClass", 4, "ngIf"], [3, "styleClass", 4, "ngIf"], [1, "p-select-dropdown-icon", 3, "ngClass"], [3, "styleClass"], [1, "p-select-dropdown-icon"], [3, "ngClass", "ngStyle"], ["role", "presentation", 1, "p-hidden-accessible", "p-hidden-focusable", 3, "focus"], ["class", "p-select-header", 3, "click", 4, "ngIf"], [1, "p-select-list-container"], [3, "items", "style", "itemSize", "autoSize", "lazy", "options", "onLazyLoad", 4, "ngIf"], [1, "p-select-header", 3, "click"], ["pInputText", "", "type", "text", "role", "searchbox", "autocomplete", "off", 1, "p-select-filter", 3, "input", "keydown", "blur", "value", "variant"], [3, "onLazyLoad", "items", "itemSize", "autoSize", "lazy", "options"], ["role", "listbox", 1, "p-select-list", 3, "ngClass"], ["ngFor", "", 3, "ngForOf"], ["class", "p-select-empty-message", "role", "option", 3, "ngStyle", 4, "ngIf"], ["role", "option", 1, "p-select-option-group", 3, "ngStyle"], [3, "onClick", "onMouseEnter", "id", "option", "checkmark", "selected", "label", "disabled", "template", "focused", "ariaPosInset", "ariaSetSize"], ["role", "option", 1, "p-select-empty-message", 3, "ngStyle"]], template: function Select_Template(rf, ctx) { if (rf & 1) {
|
2533
|
+
} }, inputs: { id: "id", scrollHeight: "scrollHeight", filter: [2, "filter", "filter", booleanAttribute], name: "name", style: "style", panelStyle: "panelStyle", styleClass: "styleClass", panelStyleClass: "panelStyleClass", readonly: [2, "readonly", "readonly", booleanAttribute], required: [2, "required", "required", booleanAttribute], editable: [2, "editable", "editable", booleanAttribute], appendTo: "appendTo", tabindex: [2, "tabindex", "tabindex", numberAttribute], placeholder: "placeholder", loadingIcon: "loadingIcon", filterPlaceholder: "filterPlaceholder", filterLocale: "filterLocale", variant: "variant", inputId: "inputId", dataKey: "dataKey", filterBy: "filterBy", filterFields: "filterFields", autofocus: [2, "autofocus", "autofocus", booleanAttribute], resetFilterOnHide: [2, "resetFilterOnHide", "resetFilterOnHide", booleanAttribute], checkmark: [2, "checkmark", "checkmark", booleanAttribute], dropdownIcon: "dropdownIcon", loading: [2, "loading", "loading", booleanAttribute], optionLabel: "optionLabel", optionValue: "optionValue", optionDisabled: "optionDisabled", optionGroupLabel: "optionGroupLabel", optionGroupChildren: "optionGroupChildren", autoDisplayFirst: [2, "autoDisplayFirst", "autoDisplayFirst", booleanAttribute], group: [2, "group", "group", booleanAttribute], showClear: [2, "showClear", "showClear", booleanAttribute], emptyFilterMessage: "emptyFilterMessage", emptyMessage: "emptyMessage", lazy: [2, "lazy", "lazy", booleanAttribute], virtualScroll: [2, "virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: [2, "virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", size: "size", overlayOptions: "overlayOptions", ariaFilterLabel: "ariaFilterLabel", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", filterMatchMode: "filterMatchMode", maxlength: [2, "maxlength", "maxlength", numberAttribute], tooltip: "tooltip", tooltipPosition: "tooltipPosition", tooltipPositionStyle: "tooltipPositionStyle", tooltipStyleClass: "tooltipStyleClass", focusOnHover: [2, "focusOnHover", "focusOnHover", booleanAttribute], selectOnFocus: [2, "selectOnFocus", "selectOnFocus", booleanAttribute], autoOptionFocus: [2, "autoOptionFocus", "autoOptionFocus", booleanAttribute], autofocusFilter: [2, "autofocusFilter", "autofocusFilter", booleanAttribute], fluid: [2, "fluid", "fluid", booleanAttribute], disabled: "disabled", itemSize: "itemSize", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", filterValue: "filterValue", options: "options" }, outputs: { onChange: "onChange", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onClick: "onClick", onShow: "onShow", onHide: "onHide", onClear: "onClear", onLazyLoad: "onLazyLoad" }, standalone: true, features: [i0.ɵɵProvidersFeature([SELECT_VALUE_ACCESSOR, SelectStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 11, vars: 15, consts: [["elseBlock", ""], ["overlay", ""], ["content", ""], ["focusInput", ""], ["defaultPlaceholder", ""], ["editableInput", ""], ["firstHiddenFocusableEl", ""], ["buildInItems", ""], ["lastHiddenFocusableEl", ""], ["builtInFilterElement", ""], ["filter", ""], ["scroller", ""], ["loader", ""], ["items", ""], ["emptyFilter", ""], ["empty", ""], ["role", "combobox", 3, "ngClass", "pTooltip", "tooltipPosition", "positionStyle", "tooltipStyleClass", "pAutoFocus", "focus", "blur", "keydown", 4, "ngIf"], ["type", "text", "aria-haspopup", "listbox", 3, "ngClass", "disabled", "pAutoFocus", "input", "keydown", "focus", "blur", 4, "ngIf"], [4, "ngIf"], ["role", "button", "aria-label", "dropdown trigger", "aria-haspopup", "listbox", 1, "p-select-dropdown"], [4, "ngIf", "ngIfElse"], [3, "visibleChange", "onAnimationStart", "onHide", "visible", "options", "target", "appendTo", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions"], ["role", "combobox", 3, "focus", "blur", "keydown", "ngClass", "pTooltip", "tooltipPosition", "positionStyle", "tooltipStyleClass", "pAutoFocus"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["type", "text", "aria-haspopup", "listbox", 3, "input", "keydown", "focus", "blur", "ngClass", "disabled", "pAutoFocus"], ["class", "p-select-clear-icon", 3, "click", 4, "ngIf"], [1, "p-select-clear-icon", 3, "click"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [4, "ngTemplateOutlet"], ["aria-hidden", "true", 3, "ngClass", 4, "ngIf"], ["aria-hidden", "true", 3, "class", 4, "ngIf"], ["aria-hidden", "true", 3, "ngClass"], ["aria-hidden", "true"], ["class", "p-select-dropdown-icon", 4, "ngIf"], ["class", "p-select-dropdown-icon", 3, "ngClass", 4, "ngIf"], [3, "styleClass", 4, "ngIf"], [1, "p-select-dropdown-icon", 3, "ngClass"], [3, "styleClass"], [1, "p-select-dropdown-icon"], [3, "ngClass", "ngStyle"], ["role", "presentation", 1, "p-hidden-accessible", "p-hidden-focusable", 3, "focus"], ["class", "p-select-header", 3, "click", 4, "ngIf"], [1, "p-select-list-container"], [3, "items", "style", "itemSize", "autoSize", "lazy", "options", "onLazyLoad", 4, "ngIf"], [1, "p-select-header", 3, "click"], ["pInputText", "", "type", "text", "role", "searchbox", "autocomplete", "off", 1, "p-select-filter", 3, "input", "keydown", "blur", "pSize", "value", "variant"], [3, "onLazyLoad", "items", "itemSize", "autoSize", "lazy", "options"], ["role", "listbox", 1, "p-select-list", 3, "ngClass"], ["ngFor", "", 3, "ngForOf"], ["class", "p-select-empty-message", "role", "option", 3, "ngStyle", 4, "ngIf"], ["role", "option", 1, "p-select-option-group", 3, "ngStyle"], [3, "onClick", "onMouseEnter", "id", "option", "checkmark", "selected", "label", "disabled", "template", "focused", "ariaPosInset", "ariaSetSize"], ["role", "option", 1, "p-select-empty-message", 3, "ngStyle"]], template: function Select_Template(rf, ctx) { if (rf & 1) {
|
2461
2534
|
const _r1 = i0.ɵɵgetCurrentView();
|
2462
2535
|
i0.ɵɵtemplate(0, Select_span_0_Template, 6, 20, "span", 16)(1, Select_input_1_Template, 2, 8, "input", 17)(2, Select_ng_container_2_Template, 3, 2, "ng-container", 18);
|
2463
2536
|
i0.ɵɵelementStart(3, "div", 19);
|
@@ -2490,7 +2563,7 @@ class Select extends BaseComponent {
|
|
2490
2563
|
args: [{
|
2491
2564
|
selector: 'p-select',
|
2492
2565
|
standalone: true,
|
2493
|
-
imports: [CommonModule, SelectItem, Overlay, Tooltip,
|
2566
|
+
imports: [CommonModule, SelectItem, Overlay, Tooltip, AutoFocus, TimesIcon, ChevronDownIcon, SearchIcon, InputText, IconField, InputIcon, Scroller, SharedModule],
|
2494
2567
|
template: `
|
2495
2568
|
<span
|
2496
2569
|
#focusInput
|
@@ -2517,8 +2590,8 @@ class Select extends BaseComponent {
|
|
2517
2590
|
[attr.aria-required]="required"
|
2518
2591
|
[attr.required]="required"
|
2519
2592
|
>
|
2520
|
-
<ng-container *ngIf="!
|
2521
|
-
<ng-container *ngIf="
|
2593
|
+
<ng-container *ngIf="!selectedItemTemplate && !_selectedItemTemplate; else defaultPlaceholder">{{ label() === 'p-emptylabel' ? ' ' : label() }}</ng-container>
|
2594
|
+
<ng-container *ngIf="(selectedItemTemplate || _selectedItemTemplate) && selectedOption" [ngTemplateOutlet]="selectedItemTemplate || _selectedItemTemplate" [ngTemplateOutletContext]="{ $implicit: selectedOption }"></ng-container>
|
2522
2595
|
<ng-template #defaultPlaceholder>
|
2523
2596
|
<span *ngIf="!selectedOption">{{ label() === 'p-emptylabel' ? ' ' : label() }}</span>
|
2524
2597
|
</ng-template>
|
@@ -2542,30 +2615,30 @@ class Select extends BaseComponent {
|
|
2542
2615
|
(blur)="onInputBlur($event)"
|
2543
2616
|
/>
|
2544
2617
|
<ng-container *ngIf="isVisibleClearIcon">
|
2545
|
-
<TimesIcon class="p-select-clear-icon" (click)="clear($event)" *ngIf="!
|
2546
|
-
<span class="p-select-clear-icon" (click)="clear($event)" *ngIf="
|
2547
|
-
<ng-template *ngTemplateOutlet="
|
2618
|
+
<TimesIcon class="p-select-clear-icon" (click)="clear($event)" *ngIf="!clearIconTemplate && !_clearIconTemplate" [attr.data-pc-section]="'clearicon'" />
|
2619
|
+
<span class="p-select-clear-icon" (click)="clear($event)" *ngIf="clearIconTemplate || _clearIconTemplate" [attr.data-pc-section]="'clearicon'">
|
2620
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate; context: { class: 'p-select-clear-icon' }"></ng-template>
|
2548
2621
|
</span>
|
2549
2622
|
</ng-container>
|
2550
2623
|
|
2551
2624
|
<div class="p-select-dropdown" role="button" aria-label="dropdown trigger" aria-haspopup="listbox" [attr.aria-expanded]="overlayVisible ?? false" [attr.data-pc-section]="'trigger'">
|
2552
2625
|
<ng-container *ngIf="loading; else elseBlock">
|
2553
|
-
<ng-container *ngIf="
|
2554
|
-
<ng-container *ngTemplateOutlet="
|
2626
|
+
<ng-container *ngIf="loadingIconTemplate || _loadingIconTemplate">
|
2627
|
+
<ng-container *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate"></ng-container>
|
2555
2628
|
</ng-container>
|
2556
|
-
<ng-container *ngIf="!
|
2629
|
+
<ng-container *ngIf="!loadingIconTemplate && !_loadingIconTemplate">
|
2557
2630
|
<span *ngIf="loadingIcon" [ngClass]="'p-select-loading-icon pi-spin ' + loadingIcon" aria-hidden="true"></span>
|
2558
2631
|
<span *ngIf="!loadingIcon" [class]="'p-select-loading-icon pi pi-spinner pi-spin'" aria-hidden="true"></span>
|
2559
2632
|
</ng-container>
|
2560
2633
|
</ng-container>
|
2561
2634
|
|
2562
2635
|
<ng-template #elseBlock>
|
2563
|
-
<ng-container *ngIf="!
|
2636
|
+
<ng-container *ngIf="!dropdownIconTemplate && !_dropdownIconTemplate">
|
2564
2637
|
<span class="p-select-dropdown-icon" *ngIf="dropdownIcon" [ngClass]="dropdownIcon"></span>
|
2565
2638
|
<ChevronDownIcon *ngIf="!dropdownIcon" [styleClass]="'p-select-dropdown-icon'" />
|
2566
2639
|
</ng-container>
|
2567
|
-
<span *ngIf="
|
2568
|
-
<ng-template *ngTemplateOutlet="
|
2640
|
+
<span *ngIf="dropdownIconTemplate || _dropdownIconTemplate" class="p-select-dropdown-icon">
|
2641
|
+
<ng-template *ngTemplateOutlet="dropdownIconTemplate || _dropdownIconTemplate; context: { class: 'p-select-dropdown-icon' }"></ng-template>
|
2569
2642
|
</span>
|
2570
2643
|
</ng-template>
|
2571
2644
|
</div>
|
@@ -2595,16 +2668,17 @@ class Select extends BaseComponent {
|
|
2595
2668
|
[attr.data-p-hidden-focusable]="true"
|
2596
2669
|
>
|
2597
2670
|
</span>
|
2598
|
-
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
|
2671
|
+
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
|
2599
2672
|
<div class="p-select-header" *ngIf="filter" (click)="$event.stopPropagation()">
|
2600
|
-
<ng-container *ngIf="filterTemplate; else builtInFilterElement">
|
2601
|
-
<ng-container *ngTemplateOutlet="filterTemplate; context: { options: filterOptions }"></ng-container>
|
2673
|
+
<ng-container *ngIf="filterTemplate || _filterTemplate; else builtInFilterElement">
|
2674
|
+
<ng-container *ngTemplateOutlet="filterTemplate || _filterTemplate; context: { options: filterOptions }"></ng-container>
|
2602
2675
|
</ng-container>
|
2603
2676
|
<ng-template #builtInFilterElement>
|
2604
2677
|
<p-iconfield>
|
2605
2678
|
<input
|
2606
2679
|
#filter
|
2607
2680
|
pInputText
|
2681
|
+
[pSize]="size"
|
2608
2682
|
type="text"
|
2609
2683
|
role="searchbox"
|
2610
2684
|
autocomplete="off"
|
@@ -2620,9 +2694,9 @@ class Select extends BaseComponent {
|
|
2620
2694
|
(blur)="onFilterBlur($event)"
|
2621
2695
|
/>
|
2622
2696
|
<p-inputicon>
|
2623
|
-
<SearchIcon *ngIf="!
|
2624
|
-
<span *ngIf="
|
2625
|
-
<ng-template *ngTemplateOutlet="
|
2697
|
+
<SearchIcon *ngIf="!filterIconTemplate && !_filterIconTemplate" />
|
2698
|
+
<span *ngIf="filterIconTemplate || _filterIconTemplate">
|
2699
|
+
<ng-template *ngTemplateOutlet="filterIconTemplate || _filterIconTemplate"></ng-template>
|
2626
2700
|
</span>
|
2627
2701
|
</p-inputicon>
|
2628
2702
|
</p-iconfield>
|
@@ -2643,9 +2717,9 @@ class Select extends BaseComponent {
|
|
2643
2717
|
<ng-template #content let-items let-scrollerOptions="options">
|
2644
2718
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
2645
2719
|
</ng-template>
|
2646
|
-
<ng-container *ngIf="loaderTemplate">
|
2720
|
+
<ng-container *ngIf="loaderTemplate || _loaderTemplate">
|
2647
2721
|
<ng-template #loader let-scrollerOptions="options">
|
2648
|
-
<ng-container *ngTemplateOutlet="loaderTemplate; context: { options: scrollerOptions }"></ng-container>
|
2722
|
+
<ng-container *ngTemplateOutlet="loaderTemplate || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
|
2649
2723
|
</ng-template>
|
2650
2724
|
</ng-container>
|
2651
2725
|
</p-scroller>
|
@@ -2658,8 +2732,8 @@ class Select extends BaseComponent {
|
|
2658
2732
|
<ng-template ngFor let-option [ngForOf]="items" let-i="index">
|
2659
2733
|
<ng-container *ngIf="isOptionGroup(option)">
|
2660
2734
|
<li class="p-select-option-group" [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2661
|
-
<span *ngIf="!groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
2662
|
-
<ng-container *ngTemplateOutlet="groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
|
2735
|
+
<span *ngIf="!groupTemplate && !_groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
2736
|
+
<ng-container *ngTemplateOutlet="groupTemplate || _groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
|
2663
2737
|
</li>
|
2664
2738
|
</ng-container>
|
2665
2739
|
<ng-container *ngIf="!isOptionGroup(option)">
|
@@ -2670,7 +2744,7 @@ class Select extends BaseComponent {
|
|
2670
2744
|
[selected]="isSelected(option)"
|
2671
2745
|
[label]="getOptionLabel(option)"
|
2672
2746
|
[disabled]="isOptionDisabled(option)"
|
2673
|
-
[template]="itemTemplate"
|
2747
|
+
[template]="itemTemplate || _itemTemplate"
|
2674
2748
|
[focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
|
2675
2749
|
[ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
|
2676
2750
|
[ariaSetSize]="ariaSetSize"
|
@@ -2680,23 +2754,23 @@ class Select extends BaseComponent {
|
|
2680
2754
|
</ng-container>
|
2681
2755
|
</ng-template>
|
2682
2756
|
<li *ngIf="filterValue && isEmpty()" class="p-select-empty-message" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2683
|
-
@if (!
|
2757
|
+
@if (!emptyFilterTemplate && !_emptyFilterTemplate && !emptyTemplate) {
|
2684
2758
|
{{ emptyFilterMessageLabel }}
|
2685
2759
|
} @else {
|
2686
|
-
<ng-container #emptyFilter *ngTemplateOutlet="
|
2760
|
+
<ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate || _emptyFilterTemplate || emptyTemplate || _emptyTemplate"></ng-container>
|
2687
2761
|
}
|
2688
2762
|
</li>
|
2689
2763
|
<li *ngIf="!filterValue && isEmpty()" class="p-select-empty-message" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2690
|
-
@if (!emptyTemplate) {
|
2764
|
+
@if (!emptyTemplate && !_emptyTemplate) {
|
2691
2765
|
{{ emptyMessageLabel }}
|
2692
2766
|
} @else {
|
2693
|
-
<ng-container #empty *ngTemplateOutlet="emptyTemplate"></ng-container>
|
2767
|
+
<ng-container #empty *ngTemplateOutlet="emptyTemplate || _emptyTemplate"></ng-container>
|
2694
2768
|
}
|
2695
2769
|
</li>
|
2696
2770
|
</ul>
|
2697
2771
|
</ng-template>
|
2698
2772
|
</div>
|
2699
|
-
<ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
|
2773
|
+
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|
2700
2774
|
<span
|
2701
2775
|
#lastHiddenFocusableEl
|
2702
2776
|
role="presentation"
|
@@ -2919,52 +2993,55 @@ class Select extends BaseComponent {
|
|
2919
2993
|
args: ['style']
|
2920
2994
|
}], itemTemplate: [{
|
2921
2995
|
type: ContentChild,
|
2922
|
-
args: ['item']
|
2996
|
+
args: ['item', { descendants: false }]
|
2923
2997
|
}], groupTemplate: [{
|
2924
2998
|
type: ContentChild,
|
2925
|
-
args: ['group']
|
2999
|
+
args: ['group', { descendants: false }]
|
2926
3000
|
}], loaderTemplate: [{
|
2927
3001
|
type: ContentChild,
|
2928
|
-
args: ['loader']
|
2929
|
-
}],
|
3002
|
+
args: ['loader', { descendants: false }]
|
3003
|
+
}], selectedItemTemplate: [{
|
2930
3004
|
type: ContentChild,
|
2931
|
-
args: ['selectedItem']
|
3005
|
+
args: ['selectedItem', { descendants: false }]
|
2932
3006
|
}], headerTemplate: [{
|
2933
3007
|
type: ContentChild,
|
2934
|
-
args: ['header']
|
3008
|
+
args: ['header', { descendants: false }]
|
2935
3009
|
}], filterTemplate: [{
|
2936
3010
|
type: ContentChild,
|
2937
|
-
args: ['filter']
|
3011
|
+
args: ['filter', { descendants: false }]
|
2938
3012
|
}], footerTemplate: [{
|
2939
3013
|
type: ContentChild,
|
2940
|
-
args: ['footer']
|
2941
|
-
}],
|
3014
|
+
args: ['footer', { descendants: false }]
|
3015
|
+
}], emptyFilterTemplate: [{
|
2942
3016
|
type: ContentChild,
|
2943
|
-
args: ['emptyfilter']
|
3017
|
+
args: ['emptyfilter', { descendants: false }]
|
2944
3018
|
}], emptyTemplate: [{
|
2945
3019
|
type: ContentChild,
|
2946
|
-
args: ['empty']
|
2947
|
-
}],
|
3020
|
+
args: ['empty', { descendants: false }]
|
3021
|
+
}], dropdownIconTemplate: [{
|
2948
3022
|
type: ContentChild,
|
2949
|
-
args: ['dropdownicon']
|
2950
|
-
}],
|
3023
|
+
args: ['dropdownicon', { descendants: false }]
|
3024
|
+
}], loadingIconTemplate: [{
|
2951
3025
|
type: ContentChild,
|
2952
|
-
args: ['loadingicon']
|
2953
|
-
}],
|
3026
|
+
args: ['loadingicon', { descendants: false }]
|
3027
|
+
}], clearIconTemplate: [{
|
2954
3028
|
type: ContentChild,
|
2955
|
-
args: ['clearicon']
|
2956
|
-
}],
|
3029
|
+
args: ['clearicon', { descendants: false }]
|
3030
|
+
}], filterIconTemplate: [{
|
2957
3031
|
type: ContentChild,
|
2958
|
-
args: ['filtericon']
|
2959
|
-
}],
|
3032
|
+
args: ['filtericon', { descendants: false }]
|
3033
|
+
}], onIconTemplate: [{
|
2960
3034
|
type: ContentChild,
|
2961
|
-
args: ['onicon']
|
2962
|
-
}],
|
3035
|
+
args: ['onicon', { descendants: false }]
|
3036
|
+
}], offIconTemplate: [{
|
2963
3037
|
type: ContentChild,
|
2964
|
-
args: ['officon']
|
2965
|
-
}],
|
3038
|
+
args: ['officon', { descendants: false }]
|
3039
|
+
}], cancelIconTemplate: [{
|
2966
3040
|
type: ContentChild,
|
2967
|
-
args: ['cancelicon']
|
3041
|
+
args: ['cancelicon', { descendants: false }]
|
3042
|
+
}], templates: [{
|
3043
|
+
type: ContentChildren,
|
3044
|
+
args: [PrimeTemplate]
|
2968
3045
|
}] }); })();
|
2969
3046
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Select, { className: "Select" }); })();
|
2970
3047
|
class SelectModule {
|