primeng 18.0.0 → 18.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.d.ts +7 -7
- package/autocomplete/autocomplete.d.ts +21 -8
- package/badge/badge.d.ts +1 -3
- package/basecomponent/basecomponent.d.ts +2 -5
- package/blockui/blockui.d.ts +10 -5
- package/breadcrumb/breadcrumb.d.ts +9 -6
- package/button/button.d.ts +10 -4
- package/calendar/calendar.d.ts +29 -15
- package/card/card.d.ts +12 -5
- package/carousel/carousel.d.ts +10 -4
- package/cascadeselect/cascadeselect.d.ts +18 -8
- package/checkbox/checkbox.d.ts +8 -4
- package/chip/chip.d.ts +9 -7
- package/confirmdialog/confirmdialog.d.ts +14 -5
- package/confirmpopup/confirmpopup.d.ts +11 -5
- package/contextmenu/contextmenu.d.ts +10 -6
- package/datepicker/datepicker.d.ts +113 -33
- 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 +153 -92
- 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 +207 -143
- 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/confirmdialog/confirmdialog.mjs +96 -57
- package/esm2022/confirmpopup/confirmpopup.mjs +57 -29
- package/esm2022/contextmenu/contextmenu.mjs +51 -20
- package/esm2022/datepicker/datepicker.mjs +198 -156
- package/esm2022/dialog/dialog.mjs +98 -52
- package/esm2022/divider/divider.mjs +2 -4
- package/esm2022/dock/dock.mjs +31 -13
- package/esm2022/drawer/drawer.mjs +112 -70
- package/esm2022/dropdown/dropdown.mjs +13 -5
- 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 +113 -66
- package/esm2022/imagecompare/imagecompare.mjs +31 -11
- package/esm2022/inplace/inplace.mjs +49 -24
- package/esm2022/inputmask/inputmask.mjs +30 -14
- package/esm2022/inputmask/style/inputmaskstyle.mjs +2 -2
- package/esm2022/inputnumber/inputnumber.mjs +55 -47
- package/esm2022/inputotp/inputotp.mjs +30 -11
- package/esm2022/listbox/listbox.mjs +137 -78
- package/esm2022/megamenu/megamenu.mjs +105 -59
- package/esm2022/menu/menu.mjs +26 -26
- 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/orderlist/orderlist.mjs +125 -70
- package/esm2022/organizationchart/organizationchart.mjs +30 -14
- package/esm2022/overlay/overlay.mjs +27 -7
- package/esm2022/overlaypanel/overlaypanel.mjs +33 -10
- 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 +88 -49
- package/esm2022/picklist/picklist.mjs +363 -259
- package/esm2022/popover/popover.mjs +29 -12
- package/esm2022/progressbar/progressbar.mjs +27 -9
- package/esm2022/rating/rating.mjs +46 -22
- 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 +198 -119
- package/esm2022/selectbutton/selectbutton.mjs +26 -11
- package/esm2022/sidebar/sidebar.mjs +82 -60
- package/esm2022/speeddial/speeddial.mjs +54 -29
- package/esm2022/splitbutton/splitbutton.mjs +41 -18
- package/esm2022/splitter/splitter.mjs +5 -5
- package/esm2022/stepper/stepper.mjs +27 -13
- package/esm2022/table/table.mjs +107 -96
- 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/tieredmenu/tieredmenu.mjs +44 -21
- 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 +35 -70
- package/esm2022/tree/tree.mjs +114 -97
- package/esm2022/treeselect/treeselect.mjs +156 -89
- 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 +152 -91
- 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 +206 -142
- 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-confirmdialog.mjs +95 -56
- 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 +50 -19
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +197 -155
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +97 -51
- 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 +111 -69
- 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 +20 -16
- 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 +112 -65
- 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 +30 -14
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +54 -46
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +29 -10
- package/fesm2022/primeng-inputotp.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 +25 -25
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +69 -34
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +49 -25
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +12 -3
- package/fesm2022/primeng-messages.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +62 -30
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +246 -155
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +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 +26 -6
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +32 -9
- 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 +87 -48
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +362 -258
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +28 -11
- 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-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 +197 -118
- 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 +81 -59
- 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 +4 -4
- 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 +106 -95
- 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-tieredmenu.mjs +43 -20
- 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 +35 -70
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +114 -97
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +155 -88
- 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/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 +165 -165
- package/paginator/paginator.d.ts +15 -8
- package/panel/panel.d.ts +14 -5
- package/panelmenu/panelmenu.d.ts +8 -4
- package/password/password.d.ts +15 -7
- package/picklist/picklist.d.ts +23 -3
- package/popover/popover.d.ts +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 +4 -4
- package/stepper/stepper.d.ts +8 -3
- package/table/table.d.ts +2 -2
- package/tabmenu/tabmenu.d.ts +12 -7
- package/tabs/tablist.d.ts +6 -2
- package/tabview/tabview.d.ts +16 -7
- package/tag/tag.d.ts +8 -9
- package/tieredmenu/tieredmenu.d.ts +10 -6
- package/timeline/timeline.d.ts +7 -2
- package/toast/toast.d.ts +7 -3
- package/togglebutton/togglebutton.d.ts +8 -3
- package/toggleswitch/toggleswitch.d.ts +6 -2
- package/toolbar/toolbar.d.ts +9 -4
- package/tooltip/tooltip.d.ts +2 -1
- package/tree/tree.d.ts +23 -10
- package/treeselect/treeselect.d.ts +26 -12
- package/treetable/treetable.d.ts +7 -5
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as i1 from '@angular/common';
|
2
2
|
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
|
-
import { Injectable, inject, forwardRef, booleanAttribute, Component, Input, ContentChild, EventEmitter, numberAttribute, ChangeDetectionStrategy, ViewEncapsulation, HostBinding, Output, ViewChild,
|
4
|
+
import { Injectable, inject, forwardRef, booleanAttribute, Component, Input, ContentChild, ContentChildren, EventEmitter, numberAttribute, ChangeDetectionStrategy, ViewEncapsulation, HostBinding, Output, ViewChild, NgModule } from '@angular/core';
|
5
5
|
import { uuid, findSingle, getAttribute, focus, getOuterWidth, getOffset, find, getWidth } from '@primeuix/utils';
|
6
|
-
import { SharedModule } from 'primeng/api';
|
6
|
+
import { PrimeTemplate, SharedModule } from 'primeng/api';
|
7
7
|
import { BaseComponent } from 'primeng/basecomponent';
|
8
8
|
import { TimesIcon, ChevronLeftIcon, ChevronRightIcon } from 'primeng/icons';
|
9
9
|
import { Ripple } from 'primeng/ripple';
|
@@ -235,7 +235,7 @@ function TabPanel_div_0_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
235
235
|
} if (rf & 2) {
|
236
236
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
237
237
|
i0.ɵɵadvance();
|
238
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.contentTemplate);
|
238
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.contentTemplate || ctx_r0._contentTemplate);
|
239
239
|
} }
|
240
240
|
function TabPanel_div_0_Template(rf, ctx) { if (rf & 1) {
|
241
241
|
i0.ɵɵelementStart(0, "div", 1);
|
@@ -247,15 +247,17 @@ function TabPanel_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
247
247
|
i0.ɵɵproperty("hidden", !ctx_r0.selected);
|
248
248
|
i0.ɵɵattribute("id", ctx_r0.tabView.getTabContentId(ctx_r0.id))("aria-hidden", !ctx_r0.selected)("aria-labelledby", ctx_r0.tabView.getTabHeaderActionId(ctx_r0.id))("data-pc-name", "tabpanel");
|
249
249
|
i0.ɵɵadvance(2);
|
250
|
-
i0.ɵɵproperty("ngIf", ctx_r0.contentTemplate && (ctx_r0.cache ? ctx_r0.loaded : ctx_r0.selected));
|
250
|
+
i0.ɵɵproperty("ngIf", (ctx_r0.contentTemplate || ctx_r0._contentTemplate) && (ctx_r0.cache ? ctx_r0.loaded : ctx_r0.selected));
|
251
251
|
} }
|
252
|
-
const _c6 = ["
|
253
|
-
const _c7 = ["
|
254
|
-
const _c8 = ["
|
255
|
-
const _c9 = ["
|
256
|
-
const _c10 = ["
|
257
|
-
const _c11 =
|
258
|
-
const _c12 =
|
252
|
+
const _c6 = ["previousicon"];
|
253
|
+
const _c7 = ["nexticon"];
|
254
|
+
const _c8 = ["navbar"];
|
255
|
+
const _c9 = ["prevBtn"];
|
256
|
+
const _c10 = ["nextBtn"];
|
257
|
+
const _c11 = ["inkbar"];
|
258
|
+
const _c12 = ["elementToObserve"];
|
259
|
+
const _c13 = a0 => ({ "p-tablist-viewport": a0 });
|
260
|
+
const _c14 = (a0, a1) => ({ "p-tab": true, "p-tab-active": a0, "p-disabled": a1 });
|
259
261
|
function TabView_button_2_ChevronLeftIcon_2_Template(rf, ctx) { if (rf & 1) {
|
260
262
|
i0.ɵɵelement(0, "ChevronLeftIcon");
|
261
263
|
} if (rf & 2) {
|
@@ -275,9 +277,9 @@ function TabView_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
275
277
|
const ctx_r2 = i0.ɵɵnextContext();
|
276
278
|
i0.ɵɵattribute("tabindex", ctx_r2.tabindex)("aria-label", ctx_r2.prevButtonAriaLabel);
|
277
279
|
i0.ɵɵadvance(2);
|
278
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.
|
280
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.previousIconTemplate && !ctx_r2._previousIconTemplate);
|
279
281
|
i0.ɵɵadvance();
|
280
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
282
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.previousIconTemplate && ctx_r2._previousIconTemplate);
|
281
283
|
} }
|
282
284
|
function TabView_For_8_Conditional_0_Conditional_1_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
283
285
|
i0.ɵɵelementContainer(0);
|
@@ -286,7 +288,7 @@ function TabView_For_8_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf &
|
|
286
288
|
i0.ɵɵtemplate(0, TabView_For_8_Conditional_0_Conditional_1_ng_container_0_Template, 1, 0, "ng-container", 14);
|
287
289
|
} if (rf & 2) {
|
288
290
|
const tab_r5 = i0.ɵɵnextContext(2).$implicit;
|
289
|
-
i0.ɵɵproperty("ngTemplateOutlet", tab_r5.headerTemplate);
|
291
|
+
i0.ɵɵproperty("ngTemplateOutlet", tab_r5.headerTemplate || tab_r5._headerTemplate);
|
290
292
|
} }
|
291
293
|
function TabView_For_8_Conditional_0_Conditional_2_Conditional_0_0_ng_template_0_Template(rf, ctx) { }
|
292
294
|
function TabView_For_8_Conditional_0_Conditional_2_Conditional_0_0_Template(rf, ctx) { if (rf & 1) {
|
@@ -296,7 +298,7 @@ function TabView_For_8_Conditional_0_Conditional_2_Conditional_0_Template(rf, ct
|
|
296
298
|
i0.ɵɵtemplate(0, TabView_For_8_Conditional_0_Conditional_2_Conditional_0_0_Template, 1, 0, null, 14);
|
297
299
|
} if (rf & 2) {
|
298
300
|
const tab_r5 = i0.ɵɵnextContext(3).$implicit;
|
299
|
-
i0.ɵɵproperty("ngTemplateOutlet", tab_r5.
|
301
|
+
i0.ɵɵproperty("ngTemplateOutlet", tab_r5.leftIconTemplate || tab_r5._leftIconTemplate);
|
300
302
|
} }
|
301
303
|
function TabView_For_8_Conditional_0_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
302
304
|
i0.ɵɵelement(0, "span", 17);
|
@@ -312,7 +314,7 @@ function TabView_For_8_Conditional_0_Conditional_2_Conditional_3_Template(rf, ct
|
|
312
314
|
i0.ɵɵtemplate(0, TabView_For_8_Conditional_0_Conditional_2_Conditional_3_0_Template, 1, 0, null, 14);
|
313
315
|
} if (rf & 2) {
|
314
316
|
const tab_r5 = i0.ɵɵnextContext(3).$implicit;
|
315
|
-
i0.ɵɵproperty("ngTemplateOutlet", tab_r5.rightIconTemplate);
|
317
|
+
i0.ɵɵproperty("ngTemplateOutlet", tab_r5.rightIconTemplate || tab_r5._rightIconTemplate);
|
316
318
|
} }
|
317
319
|
function TabView_For_8_Conditional_0_Conditional_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
318
320
|
i0.ɵɵelement(0, "span", 18);
|
@@ -328,7 +330,7 @@ function TabView_For_8_Conditional_0_Conditional_2_Conditional_5_Conditional_0_T
|
|
328
330
|
i0.ɵɵtemplate(0, TabView_For_8_Conditional_0_Conditional_2_Conditional_5_Conditional_0_0_Template, 1, 0, null, 14);
|
329
331
|
} if (rf & 2) {
|
330
332
|
const tab_r5 = i0.ɵɵnextContext(4).$implicit;
|
331
|
-
i0.ɵɵproperty("ngTemplateOutlet", tab_r5.closeIconTemplate);
|
333
|
+
i0.ɵɵproperty("ngTemplateOutlet", tab_r5.closeIconTemplate || tab_r5._closeIconTemplate);
|
332
334
|
} }
|
333
335
|
function TabView_For_8_Conditional_0_Conditional_2_Conditional_5_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
334
336
|
const _r6 = i0.ɵɵgetCurrentView();
|
@@ -340,7 +342,7 @@ function TabView_For_8_Conditional_0_Conditional_2_Conditional_5_Template(rf, ct
|
|
340
342
|
i0.ɵɵtemplate(0, TabView_For_8_Conditional_0_Conditional_2_Conditional_5_Conditional_0_Template, 1, 1)(1, TabView_For_8_Conditional_0_Conditional_2_Conditional_5_Conditional_1_Template, 1, 0, "TimesIcon");
|
341
343
|
} if (rf & 2) {
|
342
344
|
const tab_r5 = i0.ɵɵnextContext(3).$implicit;
|
343
|
-
i0.ɵɵconditional(tab_r5.closeIconTemplate ? 0 : 1);
|
345
|
+
i0.ɵɵconditional(tab_r5.closeIconTemplate || tab_r5._closeIconTemplate ? 0 : 1);
|
344
346
|
} }
|
345
347
|
function TabView_For_8_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
346
348
|
i0.ɵɵtemplate(0, TabView_For_8_Conditional_0_Conditional_2_Conditional_0_Template, 1, 1)(1, TabView_For_8_Conditional_0_Conditional_2_Conditional_1_Template, 1, 1, "span", 17);
|
@@ -348,11 +350,11 @@ function TabView_For_8_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf &
|
|
348
350
|
i0.ɵɵtemplate(3, TabView_For_8_Conditional_0_Conditional_2_Conditional_3_Template, 1, 1)(4, TabView_For_8_Conditional_0_Conditional_2_Conditional_4_Template, 1, 1, "span", 18)(5, TabView_For_8_Conditional_0_Conditional_2_Conditional_5_Template, 2, 1);
|
349
351
|
} if (rf & 2) {
|
350
352
|
const tab_r5 = i0.ɵɵnextContext(2).$implicit;
|
351
|
-
i0.ɵɵconditional(tab_r5.
|
353
|
+
i0.ɵɵconditional(tab_r5.leftIconTemplate || tab_r5._leftIconTemplate ? 0 : tab_r5.leftIcon && !tab_r5.leftIconTemplate && !tab_r5._leftIconTemplate ? 1 : -1);
|
352
354
|
i0.ɵɵadvance(2);
|
353
355
|
i0.ɵɵtextInterpolate1(" ", tab_r5.header, " ");
|
354
356
|
i0.ɵɵadvance();
|
355
|
-
i0.ɵɵconditional(tab_r5.rightIconTemplate ? 3 : tab_r5.rightIcon && !tab_r5.rightIconTemplate ? 4 : -1);
|
357
|
+
i0.ɵɵconditional(tab_r5.rightIconTemplate || tab_r5._rightIconTemplate ? 3 : tab_r5.rightIcon && !tab_r5.rightIconTemplate && !tab_r5._rightIconTemplate ? 4 : -1);
|
356
358
|
i0.ɵɵadvance(2);
|
357
359
|
i0.ɵɵconditional(tab_r5.closable ? 5 : -1);
|
358
360
|
} }
|
@@ -369,10 +371,10 @@ function TabView_For_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
369
371
|
const ɵ$index_19_r8 = ctx_r6.$index;
|
370
372
|
const ctx_r2 = i0.ɵɵnextContext();
|
371
373
|
i0.ɵɵclassMap(tab_r5.headerStyleClass);
|
372
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(22,
|
374
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(22, _c14, tab_r5.selected, tab_r5.disabled))("ngStyle", tab_r5.headerStyle)("pTooltip", tab_r5.tooltip)("tooltipPosition", tab_r5.tooltipPosition)("positionStyle", tab_r5.tooltipPositionStyle)("tooltipStyleClass", tab_r5.tooltipStyleClass)("disabled", tab_r5.disabled);
|
373
375
|
i0.ɵɵattribute("role", "tab")("id", ctx_r2.getTabHeaderActionId(tab_r5.id))("aria-controls", ctx_r2.getTabContentId(tab_r5.id))("aria-selected", tab_r5.selected)("tabindex", tab_r5.disabled || !tab_r5.selected ? "-1" : ctx_r2.tabindex)("aria-disabled", tab_r5.disabled)("data-pc-index", ɵ$index_19_r8)("data-p-disabled", tab_r5.disabled)("data-pc-section", "headeraction")("data-p-active", tab_r5.selected);
|
374
376
|
i0.ɵɵadvance();
|
375
|
-
i0.ɵɵconditional(tab_r5.headerTemplate ? 1 : 2);
|
377
|
+
i0.ɵɵconditional(tab_r5.headerTemplate || tab_r5._headerTemplate ? 1 : 2);
|
376
378
|
i0.ɵɵadvance(2);
|
377
379
|
i0.ɵɵattribute("aria-hidden", true)("data-pc-section", "inkbar");
|
378
380
|
} }
|
@@ -390,7 +392,7 @@ function TabView_button_9_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
390
392
|
i0.ɵɵtemplate(0, TabView_button_9_Conditional_2_0_Template, 1, 0, null, 14);
|
391
393
|
} if (rf & 2) {
|
392
394
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
393
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.
|
395
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.nextIconTemplate || ctx_r2._nextIconTemplate);
|
394
396
|
} }
|
395
397
|
function TabView_button_9_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
396
398
|
i0.ɵɵelement(0, "ChevronRightIcon");
|
@@ -407,16 +409,13 @@ function TabView_button_9_Template(rf, ctx) { if (rf & 1) {
|
|
407
409
|
const ctx_r2 = i0.ɵɵnextContext();
|
408
410
|
i0.ɵɵattribute("tabindex", ctx_r2.tabindex)("aria-label", ctx_r2.nextButtonAriaLabel);
|
409
411
|
i0.ɵɵadvance(2);
|
410
|
-
i0.ɵɵconditional(ctx_r2.
|
412
|
+
i0.ɵɵconditional(ctx_r2.nextIconTemplate || ctx_r2._nextIconTemplate ? 2 : 3);
|
411
413
|
} }
|
412
414
|
/**
|
413
415
|
* TabPanel is a helper component for TabView component.
|
414
416
|
* @group Components
|
415
417
|
*/
|
416
418
|
class TabPanel extends BaseComponent {
|
417
|
-
ngOnDestroy() {
|
418
|
-
throw new Error('Method not implemented.');
|
419
|
-
}
|
420
419
|
/**
|
421
420
|
* Defines if tab can be removed.
|
422
421
|
* @group Props
|
@@ -549,11 +548,41 @@ class TabPanel extends BaseComponent {
|
|
549
548
|
id = uuid('pn_id_');
|
550
549
|
contentTemplate;
|
551
550
|
headerTemplate;
|
552
|
-
|
551
|
+
leftIconTemplate;
|
553
552
|
rightIconTemplate;
|
554
553
|
closeIconTemplate;
|
554
|
+
templates;
|
555
555
|
tabView = inject(forwardRef(() => TabView));
|
556
556
|
_componentStyle = inject(TabsStyle);
|
557
|
+
_headerTemplate;
|
558
|
+
_contentTemplate;
|
559
|
+
_rightIconTemplate;
|
560
|
+
_leftIconTemplate;
|
561
|
+
_closeIconTemplate;
|
562
|
+
ngAfterContentInit() {
|
563
|
+
this.templates.forEach((item) => {
|
564
|
+
switch (item.getType()) {
|
565
|
+
case 'header':
|
566
|
+
this._headerTemplate = item.template;
|
567
|
+
break;
|
568
|
+
case 'content':
|
569
|
+
this._contentTemplate = item.template;
|
570
|
+
break;
|
571
|
+
case 'righticon':
|
572
|
+
this._rightIconTemplate = item.template;
|
573
|
+
break;
|
574
|
+
case 'lefticon':
|
575
|
+
this._leftIconTemplate = item.template;
|
576
|
+
break;
|
577
|
+
case 'closeicon':
|
578
|
+
this._closeIconTemplate = item.template;
|
579
|
+
break;
|
580
|
+
default:
|
581
|
+
this._contentTemplate = item.template;
|
582
|
+
break;
|
583
|
+
}
|
584
|
+
});
|
585
|
+
}
|
557
586
|
static ɵfac = /*@__PURE__*/ (() => { let ɵTabPanel_BaseFactory; return function TabPanel_Factory(__ngFactoryType__) { return (ɵTabPanel_BaseFactory || (ɵTabPanel_BaseFactory = i0.ɵɵgetInheritedFactory(TabPanel)))(__ngFactoryType__ || TabPanel); }; })();
|
558
587
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabPanel, selectors: [["p-tabPanel"], ["p-tabpanel"]], contentQueries: function TabPanel_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
559
588
|
i0.ɵɵcontentQuery(dirIndex, _c0, 5);
|
@@ -561,13 +590,15 @@ class TabPanel extends BaseComponent {
|
|
561
590
|
i0.ɵɵcontentQuery(dirIndex, _c2, 5);
|
562
591
|
i0.ɵɵcontentQuery(dirIndex, _c3, 5);
|
563
592
|
i0.ɵɵcontentQuery(dirIndex, _c4, 5);
|
593
|
+
i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
|
564
594
|
} if (rf & 2) {
|
565
595
|
let _t;
|
566
596
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentTemplate = _t.first);
|
567
597
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
|
568
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
598
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.leftIconTemplate = _t.first);
|
569
599
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.rightIconTemplate = _t.first);
|
570
600
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.closeIconTemplate = _t.first);
|
601
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
|
571
602
|
} }, inputs: { closable: [2, "closable", "closable", booleanAttribute], headerStyle: "headerStyle", headerStyleClass: "headerStyleClass", cache: [2, "cache", "cache", booleanAttribute], tooltip: "tooltip", tooltipPosition: "tooltipPosition", tooltipPositionStyle: "tooltipPositionStyle", tooltipStyleClass: "tooltipStyleClass", selected: "selected", disabled: "disabled", header: "header", leftIcon: "leftIcon", rightIcon: "rightIcon" }, standalone: true, features: [i0.ɵɵProvidersFeature([TabsStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], ngContentSelectors: _c5, decls: 1, vars: 1, consts: [["class", "p-tabview-panel", "role", "tabpanel", 3, "hidden", 4, "ngIf"], ["role", "tabpanel", 1, "p-tabview-panel", 3, "hidden"], [4, "ngIf"], [4, "ngTemplateOutlet"]], template: function TabPanel_Template(rf, ctx) { if (rf & 1) {
|
572
603
|
i0.ɵɵprojectionDef();
|
573
604
|
i0.ɵɵtemplate(0, TabPanel_div_0_Template, 3, 6, "div", 0);
|
@@ -593,8 +624,8 @@ class TabPanel extends BaseComponent {
|
|
593
624
|
[attr.data-pc-name]="'tabpanel'"
|
594
625
|
>
|
595
626
|
<ng-content></ng-content>
|
596
|
-
<ng-container *ngIf="contentTemplate && (cache ? loaded : selected)">
|
597
|
-
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
|
627
|
+
<ng-container *ngIf="(contentTemplate || _contentTemplate) && (cache ? loaded : selected)">
|
628
|
+
<ng-container *ngTemplateOutlet="contentTemplate || _contentTemplate"></ng-container>
|
598
629
|
</ng-container>
|
599
630
|
</div>
|
600
631
|
`,
|
@@ -634,7 +665,7 @@ class TabPanel extends BaseComponent {
|
|
634
665
|
}], headerTemplate: [{
|
635
666
|
type: ContentChild,
|
636
667
|
args: ['header']
|
637
|
-
}],
|
668
|
+
}], leftIconTemplate: [{
|
638
669
|
type: ContentChild,
|
639
670
|
args: ['lefticon']
|
640
671
|
}], rightIconTemplate: [{
|
@@ -643,6 +674,9 @@ class TabPanel extends BaseComponent {
|
|
643
674
|
}], closeIconTemplate: [{
|
644
675
|
type: ContentChild,
|
645
676
|
args: ['closeicon']
|
677
|
+
}], templates: [{
|
678
|
+
type: ContentChildren,
|
679
|
+
args: [PrimeTemplate]
|
646
680
|
}] }); })();
|
647
681
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabPanel, { className: "TabPanel" }); })();
|
648
682
|
/**
|
@@ -755,14 +789,17 @@ class TabView extends BaseComponent {
|
|
755
789
|
backwardIsDisabled = true;
|
756
790
|
forwardIsDisabled = false;
|
757
791
|
tabChangesSubscription;
|
758
|
-
nexticonTemplate;
|
759
|
-
previousiconTemplate;
|
760
792
|
resizeObserver;
|
761
793
|
container;
|
762
794
|
list;
|
763
795
|
buttonVisible;
|
764
796
|
elementToObserve;
|
797
|
+
previousIconTemplate;
|
798
|
+
nextIconTemplate;
|
799
|
+
_previousIconTemplate;
|
800
|
+
_nextIconTemplate;
|
765
801
|
_componentStyle = inject(TabsStyle);
|
802
|
+
templates;
|
766
803
|
ngOnInit() {
|
767
804
|
super.ngOnInit();
|
768
805
|
console.log('TabView component is deprecated as of v18. Use Tabs component instead.');
|
@@ -776,10 +813,10 @@ class TabView extends BaseComponent {
|
|
776
813
|
this.templates.forEach((item) => {
|
777
814
|
switch (item.getType()) {
|
778
815
|
case 'previousicon':
|
779
|
-
this.
|
816
|
+
this._previousIconTemplate = item.template;
|
780
817
|
break;
|
781
818
|
case 'nexticon':
|
782
|
-
this.
|
819
|
+
this._nextIconTemplate = item.template;
|
783
820
|
break;
|
784
821
|
}
|
785
822
|
});
|
@@ -1067,17 +1104,23 @@ class TabView extends BaseComponent {
|
|
1067
1104
|
}
|
1068
1105
|
static ɵfac = /*@__PURE__*/ (() => { let ɵTabView_BaseFactory; return function TabView_Factory(__ngFactoryType__) { return (ɵTabView_BaseFactory || (ɵTabView_BaseFactory = i0.ɵɵgetInheritedFactory(TabView)))(__ngFactoryType__ || TabView); }; })();
|
1069
1106
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabView, selectors: [["p-tabView"], ["p-tabview"]], contentQueries: function TabView_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
1107
|
+
i0.ɵɵcontentQuery(dirIndex, _c6, 5);
|
1108
|
+
i0.ɵɵcontentQuery(dirIndex, _c7, 5);
|
1070
1109
|
i0.ɵɵcontentQuery(dirIndex, TabPanel, 4);
|
1110
|
+
i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
|
1071
1111
|
} if (rf & 2) {
|
1072
1112
|
let _t;
|
1113
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.previousIconTemplate = _t.first);
|
1114
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.nextIconTemplate = _t.first);
|
1073
1115
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabPanels = _t);
|
1116
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
|
1074
1117
|
} }, viewQuery: function TabView_Query(rf, ctx) { if (rf & 1) {
|
1075
1118
|
i0.ɵɵviewQuery(_c0, 5);
|
1076
|
-
i0.ɵɵviewQuery(_c6, 5);
|
1077
|
-
i0.ɵɵviewQuery(_c7, 5);
|
1078
1119
|
i0.ɵɵviewQuery(_c8, 5);
|
1079
1120
|
i0.ɵɵviewQuery(_c9, 5);
|
1080
1121
|
i0.ɵɵviewQuery(_c10, 5);
|
1122
|
+
i0.ɵɵviewQuery(_c11, 5);
|
1123
|
+
i0.ɵɵviewQuery(_c12, 5);
|
1081
1124
|
} if (rf & 2) {
|
1082
1125
|
let _t;
|
1083
1126
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);
|
@@ -1110,7 +1153,7 @@ class TabView extends BaseComponent {
|
|
1110
1153
|
i0.ɵɵadvance(2);
|
1111
1154
|
i0.ɵɵproperty("ngIf", ctx.scrollable && !ctx.backwardIsDisabled && ctx.autoHideButtons);
|
1112
1155
|
i0.ɵɵadvance();
|
1113
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5,
|
1156
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c13, ctx.scrollable));
|
1114
1157
|
i0.ɵɵattribute("data-pc-section", "navcontent");
|
1115
1158
|
i0.ɵɵadvance(2);
|
1116
1159
|
i0.ɵɵattribute("data-pc-section", "nav");
|
@@ -1125,7 +1168,7 @@ class TabView extends BaseComponent {
|
|
1125
1168
|
args: [{
|
1126
1169
|
selector: 'p-tabView, p-tabview',
|
1127
1170
|
standalone: true,
|
1128
|
-
imports: [CommonModule,
|
1171
|
+
imports: [CommonModule, SharedModule, TooltipModule, Ripple, TimesIcon, ChevronLeftIcon, ChevronRightIcon],
|
1129
1172
|
template: `
|
1130
1173
|
<div #elementToObserve class="p-tablist">
|
1131
1174
|
<button
|
@@ -1138,8 +1181,8 @@ class TabView extends BaseComponent {
|
|
1138
1181
|
type="button"
|
1139
1182
|
pRipple
|
1140
1183
|
>
|
1141
|
-
<ChevronLeftIcon *ngIf="!
|
1142
|
-
<ng-template *ngTemplateOutlet="
|
1184
|
+
<ChevronLeftIcon *ngIf="!previousIconTemplate && !_previousIconTemplate" [attr.aria-hidden]="true" />
|
1185
|
+
<ng-template *ngTemplateOutlet="previousIconTemplate && _previousIconTemplate"></ng-template>
|
1143
1186
|
</button>
|
1144
1187
|
<div #content class="p-tablist-content" [ngClass]="{ 'p-tablist-viewport': scrollable }" (scroll)="onScroll($event)" [attr.data-pc-section]="'navcontent'">
|
1145
1188
|
<div #navbar class="p-tablist-tab-list" role="tablist" [attr.data-pc-section]="'nav'">
|
@@ -1172,23 +1215,23 @@ class TabView extends BaseComponent {
|
|
1172
1215
|
(keydown)="onTabKeyDown($event, tab)"
|
1173
1216
|
pRipple
|
1174
1217
|
>
|
1175
|
-
@if (tab.headerTemplate) {
|
1176
|
-
<ng-container *ngTemplateOutlet="tab.headerTemplate"></ng-container>
|
1218
|
+
@if (tab.headerTemplate || tab._headerTemplate) {
|
1219
|
+
<ng-container *ngTemplateOutlet="tab.headerTemplate || tab._headerTemplate"></ng-container>
|
1177
1220
|
} @else {
|
1178
|
-
@if (tab.
|
1179
|
-
<ng-template *ngTemplateOutlet="tab.
|
1180
|
-
} @else if (tab.leftIcon && !tab.
|
1221
|
+
@if (tab.leftIconTemplate || tab._leftIconTemplate) {
|
1222
|
+
<ng-template *ngTemplateOutlet="tab.leftIconTemplate || tab._leftIconTemplate"></ng-template>
|
1223
|
+
} @else if (tab.leftIcon && !tab.leftIconTemplate && !tab._leftIconTemplate) {
|
1181
1224
|
<span class="p-tabview-left-icon" [ngClass]="tab.leftIcon"></span>
|
1182
1225
|
}
|
1183
1226
|
{{ tab.header }}
|
1184
|
-
@if (tab.rightIconTemplate) {
|
1185
|
-
<ng-template *ngTemplateOutlet="tab.rightIconTemplate"></ng-template>
|
1186
|
-
} @else if (tab.rightIcon && !tab.rightIconTemplate) {
|
1227
|
+
@if (tab.rightIconTemplate || tab._rightIconTemplate) {
|
1228
|
+
<ng-template *ngTemplateOutlet="tab.rightIconTemplate || tab._rightIconTemplate"></ng-template>
|
1229
|
+
} @else if (tab.rightIcon && !tab.rightIconTemplate && !tab._rightIconTemplate) {
|
1187
1230
|
<span class="p-tabview-right-icon" [ngClass]="tab.rightIcon"></span>
|
1188
1231
|
}
|
1189
1232
|
@if (tab.closable) {
|
1190
|
-
@if (tab.closeIconTemplate) {
|
1191
|
-
<ng-template *ngTemplateOutlet="tab.closeIconTemplate"></ng-template>
|
1233
|
+
@if (tab.closeIconTemplate || tab._closeIconTemplate) {
|
1234
|
+
<ng-template *ngTemplateOutlet="tab.closeIconTemplate || tab._closeIconTemplate"></ng-template>
|
1192
1235
|
} @else {
|
1193
1236
|
<TimesIcon (click)="close($event, tab)" />
|
1194
1237
|
}
|
@@ -1201,8 +1244,8 @@ class TabView extends BaseComponent {
|
|
1201
1244
|
</div>
|
1202
1245
|
</div>
|
1203
1246
|
<button *ngIf="scrollable && !forwardIsDisabled && buttonVisible" #nextBtn [attr.tabindex]="tabindex" [attr.aria-label]="nextButtonAriaLabel" class="p-tablist-next-button p-tablist-nav-button" (click)="navForward()" type="button" pRipple>
|
1204
|
-
@if (
|
1205
|
-
<ng-template *ngTemplateOutlet="
|
1247
|
+
@if (nextIconTemplate || _nextIconTemplate) {
|
1248
|
+
<ng-template *ngTemplateOutlet="nextIconTemplate || _nextIconTemplate"></ng-template>
|
1206
1249
|
} @else {
|
1207
1250
|
<ChevronRightIcon [attr.aria-hidden]="true" />
|
1208
1251
|
}
|
@@ -1280,6 +1323,15 @@ class TabView extends BaseComponent {
|
|
1280
1323
|
}], elementToObserve: [{
|
1281
1324
|
type: ViewChild,
|
1282
1325
|
args: ['elementToObserve']
|
1326
|
+
}], previousIconTemplate: [{
|
1327
|
+
type: ContentChild,
|
1328
|
+
args: ['previousicon']
|
1329
|
+
}], nextIconTemplate: [{
|
1330
|
+
type: ContentChild,
|
1331
|
+
args: ['nexticon']
|
1332
|
+
}], templates: [{
|
1333
|
+
type: ContentChildren,
|
1334
|
+
args: [PrimeTemplate]
|
1283
1335
|
}] }); })();
|
1284
1336
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabView, { className: "TabView" }); })();
|
1285
1337
|
class TabViewModule {
|