primeng 19.0.0-rc.1 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.d.ts +7 -7
- package/autocomplete/autocomplete.d.ts +21 -8
- package/badge/badge.d.ts +1 -3
- package/basecomponent/basecomponent.d.ts +2 -5
- package/blockui/blockui.d.ts +10 -5
- package/breadcrumb/breadcrumb.d.ts +9 -6
- package/button/button.d.ts +10 -4
- package/calendar/calendar.d.ts +29 -15
- package/card/card.d.ts +12 -5
- package/carousel/carousel.d.ts +10 -4
- package/cascadeselect/cascadeselect.d.ts +18 -8
- package/checkbox/checkbox.d.ts +8 -4
- package/chip/chip.d.ts +9 -7
- package/config/themeprovider.d.ts +6 -0
- package/confirmdialog/confirmdialog.d.ts +15 -5
- package/confirmpopup/confirmpopup.d.ts +11 -5
- package/contextmenu/contextmenu.d.ts +10 -6
- package/datepicker/datepicker.d.ts +25 -11
- package/dialog/dialog.d.ts +15 -4
- package/divider/divider.d.ts +1 -1
- package/dock/dock.d.ts +7 -4
- package/drawer/drawer.d.ts +18 -10
- package/dropdown/dropdown.d.ts +4 -3
- package/dynamicdialog/dynamicdialog.d.ts +3 -2
- package/editor/editor.d.ts +7 -3
- package/fesm2022/primeng-accordion.mjs +56 -41
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +153 -92
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +39 -32
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +2 -25
- package/fesm2022/primeng-basecomponent.mjs.map +1 -1
- package/fesm2022/primeng-blockui.mjs +38 -18
- package/fesm2022/primeng-blockui.mjs.map +1 -1
- package/fesm2022/primeng-breadcrumb.mjs +49 -31
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +55 -28
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +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 +74 -42
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +99 -61
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +31 -12
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +117 -96
- package/fesm2022/primeng-chip.mjs.map +1 -1
- package/fesm2022/primeng-config.mjs +13 -11
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +104 -60
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +57 -29
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +52 -21
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +199 -158
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +97 -50
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +2 -4
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +29 -10
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +112 -70
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +14 -6
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +25 -21
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +26 -10
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +61 -33
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +138 -87
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +22 -13
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +113 -66
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-imagecompare.mjs +30 -10
- package/fesm2022/primeng-imagecompare.mjs.map +1 -1
- package/fesm2022/primeng-inplace.mjs +51 -26
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +31 -15
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +54 -45
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +30 -11
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +137 -78
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +105 -59
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +26 -26
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +69 -34
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +49 -25
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +12 -3
- package/fesm2022/primeng-messages.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +62 -30
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +246 -155
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +123 -68
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +31 -15
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +26 -6
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +29 -9
- package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +92 -60
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +159 -98
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +55 -32
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +88 -49
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +360 -228
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +23 -7
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +26 -8
- package/fesm2022/primeng-progressbar.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +44 -20
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +47 -37
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +28 -9
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
- package/fesm2022/primeng-scrolltop.mjs +16 -9
- package/fesm2022/primeng-scrolltop.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +198 -119
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +25 -9
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-sidebar.mjs +81 -58
- package/fesm2022/primeng-sidebar.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +54 -29
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +41 -18
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +4 -4
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +33 -19
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +115 -103
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabmenu.mjs +54 -27
- package/fesm2022/primeng-tabmenu.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +27 -19
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-tabview.mjs +106 -54
- package/fesm2022/primeng-tabview.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +68 -44
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +44 -21
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-timeline.mjs +40 -16
- package/fesm2022/primeng-timeline.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +30 -7
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +44 -28
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +28 -9
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
- package/fesm2022/primeng-toolbar.mjs +46 -20
- package/fesm2022/primeng-toolbar.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +32 -69
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +113 -96
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +154 -85
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +31 -14
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +1 -1
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/fieldset/fieldset.d.ts +12 -6
- package/fileupload/fileupload.d.ts +19 -8
- package/galleria/galleria.d.ts +3 -2
- package/image/image.d.ts +18 -7
- package/imagecompare/imagecompare.d.ts +7 -2
- package/inplace/inplace.d.ts +12 -6
- package/inputmask/inputmask.d.ts +8 -4
- package/inputnumber/inputnumber.d.ts +11 -6
- package/inputotp/inputotp.d.ts +7 -2
- package/listbox/listbox.d.ts +17 -4
- package/megamenu/megamenu.d.ts +16 -7
- package/menu/menu.d.ts +6 -6
- package/menubar/menubar.d.ts +13 -6
- package/message/message.d.ts +10 -4
- package/messages/messages.d.ts +4 -3
- package/metergroup/metergroup.d.ts +11 -3
- package/multiselect/multiselect.d.ts +36 -17
- package/orderlist/orderlist.d.ts +23 -11
- package/organizationchart/organizationchart.d.ts +6 -4
- package/overlay/overlay.d.ts +6 -3
- package/overlaypanel/overlaypanel.d.ts +6 -3
- package/package.json +180 -180
- package/paginator/paginator.d.ts +15 -8
- package/panel/panel.d.ts +14 -5
- package/panelmenu/panelmenu.d.ts +8 -4
- package/password/password.d.ts +15 -7
- package/picklist/picklist.d.ts +23 -3
- package/popover/popover.d.ts +7 -4
- package/progressbar/progressbar.d.ts +7 -3
- package/rating/rating.d.ts +11 -5
- package/scroller/scroller.d.ts +9 -4
- package/scrollpanel/scrollpanel.d.ts +7 -3
- package/scrolltop/scrolltop.d.ts +7 -4
- package/select/select.d.ts +31 -13
- package/selectbutton/selectbutton.d.ts +7 -3
- package/sidebar/sidebar.d.ts +9 -2
- package/speeddial/speeddial.d.ts +9 -4
- package/splitbutton/splitbutton.d.ts +9 -5
- package/splitter/splitter.d.ts +4 -4
- package/stepper/stepper.d.ts +8 -3
- package/table/table.d.ts +2 -2
- package/tabmenu/tabmenu.d.ts +12 -7
- package/tabs/tablist.d.ts +6 -2
- package/tabview/tabview.d.ts +16 -7
- package/tag/tag.d.ts +8 -9
- package/tieredmenu/tieredmenu.d.ts +10 -6
- package/timeline/timeline.d.ts +7 -2
- package/toast/toast.d.ts +7 -3
- package/togglebutton/togglebutton.d.ts +8 -3
- package/toggleswitch/toggleswitch.d.ts +6 -2
- package/toolbar/toolbar.d.ts +9 -4
- package/tooltip/tooltip.d.ts +2 -1
- package/tree/tree.d.ts +23 -10
- package/treeselect/treeselect.d.ts +26 -12
- package/treetable/treetable.d.ts +6 -4
@@ -1,9 +1,9 @@
|
|
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, signal, inject, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ContentChild, NgModule } from '@angular/core';
|
4
|
+
import { Injectable, signal, inject, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ContentChild, ContentChildren, NgModule } from '@angular/core';
|
5
5
|
import { equals } from '@primeuix/utils';
|
6
|
-
import { Header, Footer, SharedModule } from 'primeng/api';
|
6
|
+
import { Header, Footer, PrimeTemplate, SharedModule } from 'primeng/api';
|
7
7
|
import { BaseComponent } from 'primeng/basecomponent';
|
8
8
|
import { BaseStyle } from 'primeng/base';
|
9
9
|
|
@@ -122,37 +122,53 @@ function Card_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
122
122
|
} if (rf & 2) {
|
123
123
|
const ctx_r0 = i0.ɵɵnextContext();
|
124
124
|
i0.ɵɵadvance(2);
|
125
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.headerTemplate);
|
125
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.headerTemplate || ctx_r0._headerTemplate);
|
126
|
+
} }
|
127
|
+
function Card_div_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
128
|
+
i0.ɵɵelementContainerStart(0);
|
129
|
+
i0.ɵɵtext(1);
|
130
|
+
i0.ɵɵelementContainerEnd();
|
131
|
+
} if (rf & 2) {
|
132
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
133
|
+
i0.ɵɵadvance();
|
134
|
+
i0.ɵɵtextInterpolate(ctx_r0.header);
|
126
135
|
} }
|
127
136
|
function Card_div_3_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
128
137
|
i0.ɵɵelementContainer(0);
|
129
138
|
} }
|
130
139
|
function Card_div_3_Template(rf, ctx) { if (rf & 1) {
|
131
140
|
i0.ɵɵelementStart(0, "div", 9);
|
132
|
-
i0.ɵɵ
|
133
|
-
i0.ɵɵtemplate(2, Card_div_3_ng_container_2_Template, 1, 0, "ng-container", 6);
|
141
|
+
i0.ɵɵtemplate(1, Card_div_3_ng_container_1_Template, 2, 1, "ng-container", 10)(2, Card_div_3_ng_container_2_Template, 1, 0, "ng-container", 6);
|
134
142
|
i0.ɵɵelementEnd();
|
135
143
|
} if (rf & 2) {
|
136
144
|
const ctx_r0 = i0.ɵɵnextContext();
|
137
145
|
i0.ɵɵadvance();
|
138
|
-
i0.ɵɵ
|
146
|
+
i0.ɵɵproperty("ngIf", ctx_r0.header && !ctx_r0._titleTemplate && !ctx_r0.titleTemplate);
|
147
|
+
i0.ɵɵadvance();
|
148
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.titleTemplate || ctx_r0._titleTemplate);
|
149
|
+
} }
|
150
|
+
function Card_div_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
151
|
+
i0.ɵɵelementContainerStart(0);
|
152
|
+
i0.ɵɵtext(1);
|
153
|
+
i0.ɵɵelementContainerEnd();
|
154
|
+
} if (rf & 2) {
|
155
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
139
156
|
i0.ɵɵadvance();
|
140
|
-
i0.ɵɵ
|
157
|
+
i0.ɵɵtextInterpolate(ctx_r0.subheader);
|
141
158
|
} }
|
142
159
|
function Card_div_4_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
143
160
|
i0.ɵɵelementContainer(0);
|
144
161
|
} }
|
145
162
|
function Card_div_4_Template(rf, ctx) { if (rf & 1) {
|
146
|
-
i0.ɵɵelementStart(0, "div",
|
147
|
-
i0.ɵɵ
|
148
|
-
i0.ɵɵtemplate(2, Card_div_4_ng_container_2_Template, 1, 0, "ng-container", 6);
|
163
|
+
i0.ɵɵelementStart(0, "div", 11);
|
164
|
+
i0.ɵɵtemplate(1, Card_div_4_ng_container_1_Template, 2, 1, "ng-container", 10)(2, Card_div_4_ng_container_2_Template, 1, 0, "ng-container", 6);
|
149
165
|
i0.ɵɵelementEnd();
|
150
166
|
} if (rf & 2) {
|
151
167
|
const ctx_r0 = i0.ɵɵnextContext();
|
152
168
|
i0.ɵɵadvance();
|
153
|
-
i0.ɵɵ
|
169
|
+
i0.ɵɵproperty("ngIf", ctx_r0.subheader && !ctx_r0._subtitleTemplate && ctx_r0.subtitleTemplate);
|
154
170
|
i0.ɵɵadvance();
|
155
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.subtitleTemplate);
|
171
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.subtitleTemplate || ctx_r0._subtitleTemplate);
|
156
172
|
} }
|
157
173
|
function Card_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
158
174
|
i0.ɵɵelementContainer(0);
|
@@ -161,14 +177,14 @@ function Card_div_8_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
161
177
|
i0.ɵɵelementContainer(0);
|
162
178
|
} }
|
163
179
|
function Card_div_8_Template(rf, ctx) { if (rf & 1) {
|
164
|
-
i0.ɵɵelementStart(0, "div",
|
180
|
+
i0.ɵɵelementStart(0, "div", 12);
|
165
181
|
i0.ɵɵprojection(1, 2);
|
166
182
|
i0.ɵɵtemplate(2, Card_div_8_ng_container_2_Template, 1, 0, "ng-container", 6);
|
167
183
|
i0.ɵɵelementEnd();
|
168
184
|
} if (rf & 2) {
|
169
185
|
const ctx_r0 = i0.ɵɵnextContext();
|
170
186
|
i0.ɵɵadvance(2);
|
171
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.footerTemplate);
|
187
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.footerTemplate || ctx_r0._footerTemplate);
|
172
188
|
} }
|
173
189
|
/**
|
174
190
|
* Card is a flexible container component.
|
@@ -179,7 +195,7 @@ class Card extends BaseComponent {
|
|
179
195
|
* Header of the card.
|
180
196
|
* @group Props
|
181
197
|
*/
|
182
|
-
|
198
|
+
header;
|
183
199
|
/**
|
184
200
|
* Subheader of the card.
|
185
201
|
* @group Props
|
@@ -206,20 +222,51 @@ class Card extends BaseComponent {
|
|
206
222
|
subtitleTemplate;
|
207
223
|
contentTemplate;
|
208
224
|
footerTemplate;
|
225
|
+
_headerTemplate;
|
226
|
+
_titleTemplate;
|
227
|
+
_subtitleTemplate;
|
228
|
+
_contentTemplate;
|
229
|
+
_footerTemplate;
|
209
230
|
_style = signal(null);
|
210
231
|
_componentStyle = inject(CardStyle);
|
211
232
|
getBlockableElement() {
|
212
233
|
return this.el.nativeElement.children[0];
|
213
234
|
}
|
235
|
+
templates;
|
236
|
+
ngAfterContentInit() {
|
237
|
+
this.templates.forEach((item) => {
|
238
|
+
switch (item.getType()) {
|
239
|
+
case 'header':
|
240
|
+
this._headerTemplate = item.template;
|
241
|
+
break;
|
242
|
+
case 'title':
|
243
|
+
this._titleTemplate = item.template;
|
244
|
+
break;
|
245
|
+
case 'subtitle':
|
246
|
+
this._subtitleTemplate = item.template;
|
247
|
+
break;
|
248
|
+
case 'content':
|
249
|
+
this._contentTemplate = item.template;
|
250
|
+
break;
|
251
|
+
case 'footer':
|
252
|
+
this._footerTemplate = item.template;
|
253
|
+
break;
|
254
|
+
default:
|
255
|
+
this._contentTemplate = item.template;
|
256
|
+
break;
|
257
|
+
}
|
258
|
+
});
|
259
|
+
}
|
214
260
|
static ɵfac = /*@__PURE__*/ (() => { let ɵCard_BaseFactory; return function Card_Factory(__ngFactoryType__) { return (ɵCard_BaseFactory || (ɵCard_BaseFactory = i0.ɵɵgetInheritedFactory(Card)))(__ngFactoryType__ || Card); }; })();
|
215
261
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Card, selectors: [["p-card"]], contentQueries: function Card_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
216
262
|
i0.ɵɵcontentQuery(dirIndex, Header, 5);
|
217
263
|
i0.ɵɵcontentQuery(dirIndex, Footer, 5);
|
218
|
-
i0.ɵɵcontentQuery(dirIndex, _c0,
|
219
|
-
i0.ɵɵcontentQuery(dirIndex, _c1,
|
220
|
-
i0.ɵɵcontentQuery(dirIndex, _c2,
|
221
|
-
i0.ɵɵcontentQuery(dirIndex, _c3,
|
222
|
-
i0.ɵɵcontentQuery(dirIndex, _c4,
|
264
|
+
i0.ɵɵcontentQuery(dirIndex, _c0, 4);
|
265
|
+
i0.ɵɵcontentQuery(dirIndex, _c1, 4);
|
266
|
+
i0.ɵɵcontentQuery(dirIndex, _c2, 4);
|
267
|
+
i0.ɵɵcontentQuery(dirIndex, _c3, 4);
|
268
|
+
i0.ɵɵcontentQuery(dirIndex, _c4, 4);
|
269
|
+
i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
|
223
270
|
} if (rf & 2) {
|
224
271
|
let _t;
|
225
272
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerFacet = _t.first);
|
@@ -229,7 +276,8 @@ class Card extends BaseComponent {
|
|
229
276
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.subtitleTemplate = _t.first);
|
230
277
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentTemplate = _t.first);
|
231
278
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);
|
232
|
-
|
279
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
|
280
|
+
} }, inputs: { header: "header", subheader: "subheader", style: "style", styleClass: "styleClass" }, features: [i0.ɵɵProvidersFeature([CardStyle]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c6, decls: 9, vars: 10, consts: [[3, "ngClass", "ngStyle"], ["class", "p-card-header", 4, "ngIf"], [1, "p-card-body"], ["class", "p-card-title", 4, "ngIf"], ["class", "p-card-subtitle", 4, "ngIf"], [1, "p-card-content"], [4, "ngTemplateOutlet"], ["class", "p-card-footer", 4, "ngIf"], [1, "p-card-header"], [1, "p-card-title"], [4, "ngIf"], [1, "p-card-subtitle"], [1, "p-card-footer"]], template: function Card_Template(rf, ctx) { if (rf & 1) {
|
233
281
|
i0.ɵɵprojectionDef(_c5);
|
234
282
|
i0.ɵɵelementStart(0, "div", 0);
|
235
283
|
i0.ɵɵtemplate(1, Card_div_1_Template, 3, 1, "div", 1);
|
@@ -246,15 +294,15 @@ class Card extends BaseComponent {
|
|
246
294
|
i0.ɵɵproperty("ngClass", "p-card p-component")("ngStyle", ctx._style());
|
247
295
|
i0.ɵɵattribute("data-pc-name", "card");
|
248
296
|
i0.ɵɵadvance();
|
249
|
-
i0.ɵɵproperty("ngIf", ctx.headerFacet || ctx.headerTemplate);
|
297
|
+
i0.ɵɵproperty("ngIf", ctx.headerFacet || ctx.headerTemplate || ctx._headerTemplate);
|
250
298
|
i0.ɵɵadvance(2);
|
251
|
-
i0.ɵɵproperty("ngIf", ctx.
|
299
|
+
i0.ɵɵproperty("ngIf", ctx.header || ctx.titleTemplate || ctx._titleTemplate);
|
252
300
|
i0.ɵɵadvance();
|
253
|
-
i0.ɵɵproperty("ngIf", ctx.subheader || ctx.subtitleTemplate);
|
301
|
+
i0.ɵɵproperty("ngIf", ctx.subheader || ctx.subtitleTemplate || ctx._subtitleTemplate);
|
254
302
|
i0.ɵɵadvance(3);
|
255
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx.contentTemplate);
|
303
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx.contentTemplate || ctx._contentTemplate);
|
256
304
|
i0.ɵɵadvance();
|
257
|
-
i0.ɵɵproperty("ngIf", ctx.footerFacet || ctx.footerTemplate);
|
305
|
+
i0.ɵɵproperty("ngIf", ctx.footerFacet || ctx.footerTemplate || ctx._footerTemplate);
|
258
306
|
} }, dependencies: [CommonModule, i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, SharedModule], encapsulation: 2, changeDetection: 0 });
|
259
307
|
}
|
260
308
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Card, [{
|
@@ -265,26 +313,26 @@ class Card extends BaseComponent {
|
|
265
313
|
imports: [CommonModule, SharedModule],
|
266
314
|
template: `
|
267
315
|
<div [ngClass]="'p-card p-component'" [ngStyle]="_style()" [class]="styleClass" [attr.data-pc-name]="'card'">
|
268
|
-
<div class="p-card-header" *ngIf="headerFacet || headerTemplate">
|
316
|
+
<div class="p-card-header" *ngIf="headerFacet || headerTemplate || _headerTemplate">
|
269
317
|
<ng-content select="p-header"></ng-content>
|
270
|
-
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
|
318
|
+
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
|
271
319
|
</div>
|
272
320
|
<div class="p-card-body">
|
273
|
-
<div class="p-card-title" *ngIf="
|
274
|
-
{{
|
275
|
-
<ng-container *ngTemplateOutlet="titleTemplate"></ng-container>
|
321
|
+
<div class="p-card-title" *ngIf="header || titleTemplate || _titleTemplate">
|
322
|
+
<ng-container *ngIf="header && !_titleTemplate && !titleTemplate">{{ header }}</ng-container>
|
323
|
+
<ng-container *ngTemplateOutlet="titleTemplate || _titleTemplate"></ng-container>
|
276
324
|
</div>
|
277
|
-
<div class="p-card-subtitle" *ngIf="subheader || subtitleTemplate">
|
278
|
-
{{ subheader }}
|
279
|
-
<ng-container *ngTemplateOutlet="subtitleTemplate"></ng-container>
|
325
|
+
<div class="p-card-subtitle" *ngIf="subheader || subtitleTemplate || _subtitleTemplate">
|
326
|
+
<ng-container *ngIf="subheader && !_subtitleTemplate && subtitleTemplate">{{ subheader }}</ng-container>
|
327
|
+
<ng-container *ngTemplateOutlet="subtitleTemplate || _subtitleTemplate"></ng-container>
|
280
328
|
</div>
|
281
329
|
<div class="p-card-content">
|
282
330
|
<ng-content></ng-content>
|
283
|
-
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
|
331
|
+
<ng-container *ngTemplateOutlet="contentTemplate || _contentTemplate"></ng-container>
|
284
332
|
</div>
|
285
|
-
<div class="p-card-footer" *ngIf="footerFacet || footerTemplate">
|
333
|
+
<div class="p-card-footer" *ngIf="footerFacet || footerTemplate || _footerTemplate">
|
286
334
|
<ng-content select="p-footer"></ng-content>
|
287
|
-
<ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
|
335
|
+
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|
288
336
|
</div>
|
289
337
|
</div>
|
290
338
|
</div>
|
@@ -293,9 +341,8 @@ class Card extends BaseComponent {
|
|
293
341
|
encapsulation: ViewEncapsulation.None,
|
294
342
|
providers: [CardStyle]
|
295
343
|
}]
|
296
|
-
}], null, {
|
297
|
-
type: Input
|
298
|
-
args: ['header']
|
344
|
+
}], null, { header: [{
|
345
|
+
type: Input
|
299
346
|
}], subheader: [{
|
300
347
|
type: Input
|
301
348
|
}], style: [{
|
@@ -310,19 +357,22 @@ class Card extends BaseComponent {
|
|
310
357
|
args: [Footer]
|
311
358
|
}], headerTemplate: [{
|
312
359
|
type: ContentChild,
|
313
|
-
args: ['header']
|
360
|
+
args: ['header', { descendants: false }]
|
314
361
|
}], titleTemplate: [{
|
315
362
|
type: ContentChild,
|
316
|
-
args: ['title']
|
363
|
+
args: ['title', { descendants: false }]
|
317
364
|
}], subtitleTemplate: [{
|
318
365
|
type: ContentChild,
|
319
|
-
args: ['subtitle']
|
366
|
+
args: ['subtitle', { descendants: false }]
|
320
367
|
}], contentTemplate: [{
|
321
368
|
type: ContentChild,
|
322
|
-
args: ['content']
|
369
|
+
args: ['content', { descendants: false }]
|
323
370
|
}], footerTemplate: [{
|
324
371
|
type: ContentChild,
|
325
|
-
args: ['footer']
|
372
|
+
args: ['footer', { descendants: false }]
|
373
|
+
}], templates: [{
|
374
|
+
type: ContentChildren,
|
375
|
+
args: [PrimeTemplate]
|
326
376
|
}] }); })();
|
327
377
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Card, { className: "Card", filePath: "card.ts", lineNumber: 46 }); })();
|
328
378
|
class CardModule {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"primeng-card.mjs","sources":["../../src/card/style/cardstyle.ts","../../src/card/card.ts","../../src/card/primeng-card.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from 'primeng/base';\n\nconst theme = ({ dt }) => `\n.p-card {\n background: ${dt('card.background')};\n color: ${dt('card.color')};\n box-shadow: ${dt('card.shadow')};\n border-radius: ${dt('card.border.radius')};\n display: flex;\n flex-direction: column;\n}\n\n.p-card-caption {\n display: flex;\n flex-direction: column;\n gap: ${dt('card.caption.gap')};\n}\n\n.p-card-body {\n padding: ${dt('card.body.padding')};\n display: flex;\n flex-direction: column;\n gap: ${dt('card.body.gap')};\n}\n\n.p-card-title {\n font-size: ${dt('card.title.font.size')};\n font-weight: ${dt('card.title.font.weight')};\n}\n\n.p-card-subtitle {\n color: ${dt('card.subtitle.color')};\n}\n`;\n\nconst classes = {\n root: 'p-card p-component',\n header: 'p-card-header',\n body: 'p-card-body',\n caption: 'p-card-caption',\n title: 'p-card-title',\n subtitle: 'p-card-subtitle',\n content: 'p-card-content',\n footer: 'p-card-footer'\n};\n\n@Injectable()\nexport class CardStyle extends BaseStyle {\n name = 'card';\n\n theme = theme;\n\n classes = classes;\n}\n\n/**\n *\n * Card is a flexible container component.\n *\n * [Live Demo](https://www.primeng.org/card/)\n *\n * @module cardstyle\n *\n */\nexport enum CardClasses {\n /**\n * Class name of the root element\n */\n root = 'p-card',\n /**\n * Class name of the header element\n */\n header = 'p-card-header',\n /**\n * Class name of the body element\n */\n body = 'p-card-body',\n /**\n * Class name of the caption element\n */\n caption = 'p-card-caption',\n /**\n * Class name of the title element\n */\n title = 'p-card-title',\n /**\n * Class name of the subtitle element\n */\n subtitle = 'p-card-subtitle',\n /**\n * Class name of the content element\n */\n content = 'p-card-content',\n /**\n * Class name of the footer element\n */\n footer = 'p-card-footer'\n}\n\nexport interface CardStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ContentChild, inject, Input, NgModule, signal, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { equals } from '@primeuix/utils';\nimport { BlockableUI, Footer, Header, SharedModule } from 'primeng/api';\nimport { BaseComponent } from 'primeng/basecomponent';\nimport { CardStyle } from './style/cardstyle';\n\n/**\n * Card is a flexible container component.\n * @group Components\n */\n@Component({\n selector: 'p-card',\n standalone: true,\n imports: [CommonModule, SharedModule],\n template: `\n <div [ngClass]=\"'p-card p-component'\" [ngStyle]=\"_style()\" [class]=\"styleClass\" [attr.data-pc-name]=\"'card'\">\n <div class=\"p-card-header\" *ngIf=\"headerFacet || headerTemplate\">\n <ng-content select=\"p-header\"></ng-content>\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </div>\n <div class=\"p-card-body\">\n <div class=\"p-card-title\" *ngIf=\"_header || titleTemplate\">\n {{ _header }}\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </div>\n <div class=\"p-card-subtitle\" *ngIf=\"subheader || subtitleTemplate\">\n {{ subheader }}\n <ng-container *ngTemplateOutlet=\"subtitleTemplate\"></ng-container>\n </div>\n <div class=\"p-card-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div class=\"p-card-footer\" *ngIf=\"footerFacet || footerTemplate\">\n <ng-content select=\"p-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [CardStyle]\n})\nexport class Card extends BaseComponent implements BlockableUI {\n /**\n * Header of the card.\n * @group Props\n */\n @Input('header') _header: string | undefined;\n /**\n * Subheader of the card.\n * @group Props\n */\n @Input() subheader: string | undefined;\n /**\n * Inline style of the element.\n * @group Props\n */\n @Input() set style(value: { [klass: string]: any } | null | undefined) {\n if (!equals(this._style(), value)) {\n this._style.set(value);\n }\n }\n /**\n * Class of the element.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n\n @ContentChild(Header) headerFacet: TemplateRef<any> | undefined;\n\n @ContentChild(Footer) footerFacet: TemplateRef<any> | undefined;\n\n @ContentChild('header') headerTemplate: TemplateRef<any> | undefined;\n\n @ContentChild('title') titleTemplate: TemplateRef<any> | undefined;\n\n @ContentChild('subtitle') subtitleTemplate: TemplateRef<any> | undefined;\n\n @ContentChild('content') contentTemplate: TemplateRef<any> | undefined;\n\n @ContentChild('footer') footerTemplate: TemplateRef<any> | undefined;\n\n _style = signal<{ [klass: string]: any } | null | undefined>(null);\n\n _componentStyle = inject(CardStyle);\n\n getBlockableElement(): HTMLElement {\n return this.el.nativeElement.children[0];\n }\n}\n\n@NgModule({\n imports: [Card, SharedModule],\n exports: [Card, SharedModule]\n})\nexport class CardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAGA,MAAM,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK;;kBAER,EAAE,CAAC,iBAAiB,CAAC,CAAA;aAC1B,EAAE,CAAC,YAAY,CAAC,CAAA;kBACX,EAAE,CAAC,aAAa,CAAC,CAAA;qBACd,EAAE,CAAC,oBAAoB,CAAC,CAAA;;;;;;;;WAQlC,EAAE,CAAC,kBAAkB,CAAC,CAAA;;;;eAIlB,EAAE,CAAC,mBAAmB,CAAC,CAAA;;;WAG3B,EAAE,CAAC,eAAe,CAAC,CAAA;;;;iBAIb,EAAE,CAAC,sBAAsB,CAAC,CAAA;mBACxB,EAAE,CAAC,wBAAwB,CAAC,CAAA;;;;aAIlC,EAAE,CAAC,qBAAqB,CAAC,CAAA;;CAErC;AAED,MAAM,OAAO,GAAG;AACZ,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AA,EAAA,GAAA;;AChGhC;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"primeng-card.mjs","sources":["../../src/card/style/cardstyle.ts","../../src/card/card.ts","../../src/card/primeng-card.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from 'primeng/base';\n\nconst theme = ({ dt }) => `\n.p-card {\n background: ${dt('card.background')};\n color: ${dt('card.color')};\n box-shadow: ${dt('card.shadow')};\n border-radius: ${dt('card.border.radius')};\n display: flex;\n flex-direction: column;\n}\n\n.p-card-caption {\n display: flex;\n flex-direction: column;\n gap: ${dt('card.caption.gap')};\n}\n\n.p-card-body {\n padding: ${dt('card.body.padding')};\n display: flex;\n flex-direction: column;\n gap: ${dt('card.body.gap')};\n}\n\n.p-card-title {\n font-size: ${dt('card.title.font.size')};\n font-weight: ${dt('card.title.font.weight')};\n}\n\n.p-card-subtitle {\n color: ${dt('card.subtitle.color')};\n}\n`;\n\nconst classes = {\n root: 'p-card p-component',\n header: 'p-card-header',\n body: 'p-card-body',\n caption: 'p-card-caption',\n title: 'p-card-title',\n subtitle: 'p-card-subtitle',\n content: 'p-card-content',\n footer: 'p-card-footer'\n};\n\n@Injectable()\nexport class CardStyle extends BaseStyle {\n name = 'card';\n\n theme = theme;\n\n classes = classes;\n}\n\n/**\n *\n * Card is a flexible container component.\n *\n * [Live Demo](https://www.primeng.org/card/)\n *\n * @module cardstyle\n *\n */\nexport enum CardClasses {\n /**\n * Class name of the root element\n */\n root = 'p-card',\n /**\n * Class name of the header element\n */\n header = 'p-card-header',\n /**\n * Class name of the body element\n */\n body = 'p-card-body',\n /**\n * Class name of the caption element\n */\n caption = 'p-card-caption',\n /**\n * Class name of the title element\n */\n title = 'p-card-title',\n /**\n * Class name of the subtitle element\n */\n subtitle = 'p-card-subtitle',\n /**\n * Class name of the content element\n */\n content = 'p-card-content',\n /**\n * Class name of the footer element\n */\n footer = 'p-card-footer'\n}\n\nexport interface CardStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, ContentChildren, inject, Input, NgModule, QueryList, signal, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { equals } from '@primeuix/utils';\nimport { BlockableUI, Footer, Header, PrimeTemplate, SharedModule } from 'primeng/api';\nimport { BaseComponent } from 'primeng/basecomponent';\nimport { CardStyle } from './style/cardstyle';\n\n/**\n * Card is a flexible container component.\n * @group Components\n */\n@Component({\n selector: 'p-card',\n standalone: true,\n imports: [CommonModule, SharedModule],\n template: `\n <div [ngClass]=\"'p-card p-component'\" [ngStyle]=\"_style()\" [class]=\"styleClass\" [attr.data-pc-name]=\"'card'\">\n <div class=\"p-card-header\" *ngIf=\"headerFacet || headerTemplate || _headerTemplate\">\n <ng-content select=\"p-header\"></ng-content>\n <ng-container *ngTemplateOutlet=\"headerTemplate || _headerTemplate\"></ng-container>\n </div>\n <div class=\"p-card-body\">\n <div class=\"p-card-title\" *ngIf=\"header || titleTemplate || _titleTemplate\">\n <ng-container *ngIf=\"header && !_titleTemplate && !titleTemplate\">{{ header }}</ng-container>\n <ng-container *ngTemplateOutlet=\"titleTemplate || _titleTemplate\"></ng-container>\n </div>\n <div class=\"p-card-subtitle\" *ngIf=\"subheader || subtitleTemplate || _subtitleTemplate\">\n <ng-container *ngIf=\"subheader && !_subtitleTemplate && subtitleTemplate\">{{ subheader }}</ng-container>\n <ng-container *ngTemplateOutlet=\"subtitleTemplate || _subtitleTemplate\"></ng-container>\n </div>\n <div class=\"p-card-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate || _contentTemplate\"></ng-container>\n </div>\n <div class=\"p-card-footer\" *ngIf=\"footerFacet || footerTemplate || _footerTemplate\">\n <ng-content select=\"p-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate || _footerTemplate\"></ng-container>\n </div>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [CardStyle]\n})\nexport class Card extends BaseComponent implements AfterContentInit, BlockableUI {\n /**\n * Header of the card.\n * @group Props\n */\n @Input() header: string | undefined;\n /**\n * Subheader of the card.\n * @group Props\n */\n @Input() subheader: string | undefined;\n /**\n * Inline style of the element.\n * @group Props\n */\n @Input() set style(value: { [klass: string]: any } | null | undefined) {\n if (!equals(this._style(), value)) {\n this._style.set(value);\n }\n }\n /**\n * Class of the element.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n\n @ContentChild(Header) headerFacet: TemplateRef<any> | undefined;\n\n @ContentChild(Footer) footerFacet: TemplateRef<any> | undefined;\n\n @ContentChild('header', { descendants: false }) headerTemplate: TemplateRef<any> | undefined;\n\n @ContentChild('title', { descendants: false }) titleTemplate: TemplateRef<any> | undefined;\n\n @ContentChild('subtitle', { descendants: false }) subtitleTemplate: TemplateRef<any> | undefined;\n\n @ContentChild('content', { descendants: false }) contentTemplate: TemplateRef<any> | undefined;\n\n @ContentChild('footer', { descendants: false }) footerTemplate: TemplateRef<any> | undefined;\n\n _headerTemplate: TemplateRef<any> | undefined;\n\n _titleTemplate: TemplateRef<any> | undefined;\n\n _subtitleTemplate: TemplateRef<any> | undefined;\n\n _contentTemplate: TemplateRef<any> | undefined;\n\n _footerTemplate: TemplateRef<any> | undefined;\n\n _style = signal<{ [klass: string]: any } | null | undefined>(null);\n\n _componentStyle = inject(CardStyle);\n\n getBlockableElement(): HTMLElement {\n return this.el.nativeElement.children[0];\n }\n\n @ContentChildren(PrimeTemplate) templates: QueryList<PrimeTemplate> | undefined;\n\n ngAfterContentInit() {\n (this.templates as QueryList<PrimeTemplate>).forEach((item) => {\n switch (item.getType()) {\n case 'header':\n this._headerTemplate = item.template;\n break;\n\n case 'title':\n this._titleTemplate = item.template;\n break;\n\n case 'subtitle':\n this._subtitleTemplate = item.template;\n break;\n\n case 'content':\n this._contentTemplate = item.template;\n break;\n\n case 'footer':\n this._footerTemplate = item.template;\n break;\n\n default:\n this._contentTemplate = item.template;\n break;\n }\n });\n }\n}\n\n@NgModule({\n imports: [Card, SharedModule],\n exports: [Card, SharedModule]\n})\nexport class CardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAGA,MAAM,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK;;kBAER,EAAE,CAAC,iBAAiB,CAAC,CAAA;aAC1B,EAAE,CAAC,YAAY,CAAC,CAAA;kBACX,EAAE,CAAC,aAAa,CAAC,CAAA;qBACd,EAAE,CAAC,oBAAoB,CAAC,CAAA;;;;;;;;WAQlC,EAAE,CAAC,kBAAkB,CAAC,CAAA;;;;eAIlB,EAAE,CAAC,mBAAmB,CAAC,CAAA;;;WAG3B,EAAE,CAAC,eAAe,CAAC,CAAA;;;;iBAIb,EAAE,CAAC,sBAAsB,CAAC,CAAA;mBACxB,EAAE,CAAC,wBAAwB,CAAC,CAAA;;;;aAIlC,EAAE,CAAC,qBAAqB,CAAC,CAAA;;CAErC;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,oBAAoB;AAC1B,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,KAAK,EAAE,cAAc;AACrB,IAAA,QAAQ,EAAE,iBAAiB;AAC3B,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,MAAM,EAAE;CACX;AAGK,MAAO,SAAU,SAAQ,SAAS,CAAA;IACpC,IAAI,GAAG,MAAM;IAEb,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;AALR,IAAA,OAAA,IAAA,iBAAA,CAAA,MAAA,EAAA,IAAA,sBAAA,CAAA,CAAA,OAAA,SAAA,iBAAA,CAAA,iBAAA,EAAA,EAAA,OAAA,CAAA,sBAAA,KAAA,sBAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,SAAS,yBAAT,SAAS,CAAA,CAAA,EAAA,CA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|
|
1
1
|
import * as i1 from '@angular/common';
|
2
2
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
|
-
import { Injectable, EventEmitter, inject, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ViewChild, ContentChild, NgModule } from '@angular/core';
|
4
|
+
import { Injectable, EventEmitter, inject, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ViewChild, ContentChild, ContentChildren, NgModule } from '@angular/core';
|
5
5
|
import { uuid, setAttribute, find, getAttribute, findSingle } from '@primeuix/utils';
|
6
|
-
import { Header, Footer, SharedModule } from 'primeng/api';
|
6
|
+
import { Header, Footer, PrimeTemplate, SharedModule } from 'primeng/api';
|
7
7
|
import { BaseComponent } from 'primeng/basecomponent';
|
8
8
|
import { Button } from 'primeng/button';
|
9
9
|
import { ChevronRightIcon, ChevronLeftIcon, ChevronDownIcon, ChevronUpIcon } from 'primeng/icons';
|
@@ -303,15 +303,15 @@ function Carousel_p_button_4_ng_template_1_span_1_Template(rf, ctx) { if (rf & 1
|
|
303
303
|
} if (rf & 2) {
|
304
304
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
305
305
|
i0.ɵɵadvance();
|
306
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
306
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.previousIconTemplate || ctx_r1._previousIconTemplate);
|
307
307
|
} }
|
308
308
|
function Carousel_p_button_4_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
309
309
|
i0.ɵɵtemplate(0, Carousel_p_button_4_ng_template_1_ng_container_0_Template, 3, 2, "ng-container", 17)(1, Carousel_p_button_4_ng_template_1_span_1_Template, 2, 1, "span", 18);
|
310
310
|
} if (rf & 2) {
|
311
311
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
312
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
312
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.previousIconTemplate && !ctx_r1._previousIconTemplate && !(ctx_r1.prevButtonProps == null ? null : ctx_r1.prevButtonProps.icon));
|
313
313
|
i0.ɵɵadvance();
|
314
|
-
i0.ɵɵproperty("ngIf", ctx_r1.
|
314
|
+
i0.ɵɵproperty("ngIf", (ctx_r1.previousIconTemplate || ctx_r1._previousIconTemplate) && !(ctx_r1.prevButtonProps == null ? null : ctx_r1.prevButtonProps.icon));
|
315
315
|
} }
|
316
316
|
function Carousel_p_button_4_Template(rf, ctx) { if (rf & 1) {
|
317
317
|
const _r3 = i0.ɵɵgetCurrentView();
|
@@ -338,7 +338,7 @@ function Carousel_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
338
338
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(6, _c12, ctx_r1.totalShiftedItems * -1 === ctx_r1.value.length, 0 === index_r5, ctx_r1.clonedItemsForStarting.length - 1 === index_r5));
|
339
339
|
i0.ɵɵattribute("aria-hidden", !(ctx_r1.totalShiftedItems * -1 === ctx_r1.value.length))("aria-label", ctx_r1.ariaSlideNumber(index_r5))("aria-roledescription", ctx_r1.ariaSlideLabel());
|
340
340
|
i0.ɵɵadvance();
|
341
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(10, _c13, item_r4));
|
341
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemTemplate || ctx_r1._itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(10, _c13, item_r4));
|
342
342
|
} }
|
343
343
|
function Carousel_div_9_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
344
344
|
i0.ɵɵelementContainer(0);
|
@@ -354,7 +354,7 @@ function Carousel_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
354
354
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(6, _c14, ctx_r1.firstIndex() <= index_r7 && ctx_r1.lastIndex() >= index_r7, ctx_r1.firstIndex() === index_r7, ctx_r1.lastIndex() === index_r7));
|
355
355
|
i0.ɵɵattribute("aria-hidden", !(ctx_r1.totalShiftedItems * -1 === ctx_r1.value.length))("aria-label", ctx_r1.ariaSlideNumber(index_r7))("aria-roledescription", ctx_r1.ariaSlideLabel());
|
356
356
|
i0.ɵɵadvance();
|
357
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(10, _c13, item_r6));
|
357
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemTemplate || ctx_r1._itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(10, _c13, item_r6));
|
358
358
|
} }
|
359
359
|
function Carousel_div_10_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
360
360
|
i0.ɵɵelementContainer(0);
|
@@ -369,7 +369,7 @@ function Carousel_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
369
369
|
const ctx_r1 = i0.ɵɵnextContext();
|
370
370
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(3, _c12, ctx_r1.totalShiftedItems * -1 === ctx_r1.numVisible, 0 === index_r9, ctx_r1.clonedItemsForFinishing.length - 1 === index_r9));
|
371
371
|
i0.ɵɵadvance();
|
372
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(7, _c13, item_r8));
|
372
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemTemplate || ctx_r1._itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(7, _c13, item_r8));
|
373
373
|
} }
|
374
374
|
function Carousel_p_button_11_ng_container_1_ChevronRightIcon_1_Template(rf, ctx) { if (rf & 1) {
|
375
375
|
i0.ɵɵelement(0, "ChevronRightIcon", 20);
|
@@ -403,7 +403,7 @@ function Carousel_p_button_11_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
403
403
|
} if (rf & 2) {
|
404
404
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
405
405
|
i0.ɵɵadvance();
|
406
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
406
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.nextIconTemplate || ctx_r1._nextIconTemplate);
|
407
407
|
} }
|
408
408
|
function Carousel_p_button_11_Template(rf, ctx) { if (rf & 1) {
|
409
409
|
const _r10 = i0.ɵɵgetCurrentView();
|
@@ -416,9 +416,9 @@ function Carousel_p_button_11_Template(rf, ctx) { if (rf & 1) {
|
|
416
416
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c15, ctx_r1.isForwardNavDisabled()))("disabled", ctx_r1.isForwardNavDisabled())("buttonProps", ctx_r1.nextButtonProps)("text", true);
|
417
417
|
i0.ɵɵattribute("aria-label", ctx_r1.ariaNextButtonLabel());
|
418
418
|
i0.ɵɵadvance();
|
419
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
419
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.nextIconTemplate && !ctx_r1._nextIconTemplate && !(ctx_r1.nextButtonProps == null ? null : ctx_r1.nextButtonProps.icon));
|
420
420
|
i0.ɵɵadvance();
|
421
|
-
i0.ɵɵproperty("ngIf", ctx_r1.
|
421
|
+
i0.ɵɵproperty("ngIf", ctx_r1.nextIconTemplate || ctx_r1._nextIconTemplate && !(ctx_r1.nextButtonProps == null ? null : ctx_r1.nextButtonProps.icon));
|
422
422
|
} }
|
423
423
|
function Carousel_ul_12_li_2_Template(rf, ctx) { if (rf & 1) {
|
424
424
|
const _r12 = i0.ɵɵgetCurrentView();
|
@@ -459,7 +459,7 @@ function Carousel_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
459
459
|
} if (rf & 2) {
|
460
460
|
const ctx_r1 = i0.ɵɵnextContext();
|
461
461
|
i0.ɵɵadvance(2);
|
462
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.footerTemplate);
|
462
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.footerTemplate || ctx_r1._footerTemplate);
|
463
463
|
} }
|
464
464
|
/**
|
465
465
|
* Carousel is a content slider featuring various customization options.
|
@@ -661,12 +661,17 @@ class Carousel extends BaseComponent {
|
|
661
661
|
* Template for the previous button icon.
|
662
662
|
* @group Templates
|
663
663
|
*/
|
664
|
-
|
664
|
+
previousIconTemplate;
|
665
665
|
/**
|
666
666
|
* Template for the next button icon.
|
667
667
|
* @group Templates
|
668
668
|
*/
|
669
|
-
|
669
|
+
nextIconTemplate;
|
670
|
+
_itemTemplate;
|
671
|
+
_headerTemplate;
|
672
|
+
_footerTemplate;
|
673
|
+
_previousIconTemplate;
|
674
|
+
_nextIconTemplate;
|
670
675
|
window;
|
671
676
|
_componentStyle = inject(CarouselStyle);
|
672
677
|
constructor(el, zone) {
|
@@ -703,8 +708,8 @@ class Carousel extends BaseComponent {
|
|
703
708
|
}
|
704
709
|
this.cd.markForCheck();
|
705
710
|
}
|
711
|
+
templates;
|
706
712
|
ngAfterContentInit() {
|
707
|
-
super.ngAfterContentInit();
|
708
713
|
this.id = uuid('pn_id_');
|
709
714
|
if (isPlatformBrowser(this.platformId)) {
|
710
715
|
this.allowAutoplay = !!this.autoplayInterval;
|
@@ -721,6 +726,28 @@ class Carousel extends BaseComponent {
|
|
721
726
|
this.bindDocumentListeners();
|
722
727
|
}
|
723
728
|
}
|
729
|
+
this.templates?.forEach((item) => {
|
730
|
+
switch (item.getType()) {
|
731
|
+
case 'item':
|
732
|
+
this._itemTemplate = item.template;
|
733
|
+
break;
|
734
|
+
case 'header':
|
735
|
+
this._headerTemplate = item.template;
|
736
|
+
break;
|
737
|
+
case 'footer':
|
738
|
+
this._footerTemplate = item.template;
|
739
|
+
break;
|
740
|
+
case 'previousicon':
|
741
|
+
this._previousIconTemplate = item.template;
|
742
|
+
break;
|
743
|
+
case 'nexticon':
|
744
|
+
this._nextIconTemplate = item.template;
|
745
|
+
break;
|
746
|
+
default:
|
747
|
+
this._itemTemplate = item.template;
|
748
|
+
break;
|
749
|
+
}
|
750
|
+
});
|
724
751
|
this.cd.detectChanges();
|
725
752
|
}
|
726
753
|
ngAfterContentChecked() {
|
@@ -1132,11 +1159,12 @@ class Carousel extends BaseComponent {
|
|
1132
1159
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Carousel, selectors: [["p-carousel"]], contentQueries: function Carousel_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
1133
1160
|
i0.ɵɵcontentQuery(dirIndex, Header, 5);
|
1134
1161
|
i0.ɵɵcontentQuery(dirIndex, Footer, 5);
|
1135
|
-
i0.ɵɵcontentQuery(dirIndex, _c0,
|
1136
|
-
i0.ɵɵcontentQuery(dirIndex, _c1,
|
1137
|
-
i0.ɵɵcontentQuery(dirIndex, _c2,
|
1138
|
-
i0.ɵɵcontentQuery(dirIndex, _c3,
|
1139
|
-
i0.ɵɵcontentQuery(dirIndex, _c4,
|
1162
|
+
i0.ɵɵcontentQuery(dirIndex, _c0, 4);
|
1163
|
+
i0.ɵɵcontentQuery(dirIndex, _c1, 4);
|
1164
|
+
i0.ɵɵcontentQuery(dirIndex, _c2, 4);
|
1165
|
+
i0.ɵɵcontentQuery(dirIndex, _c3, 4);
|
1166
|
+
i0.ɵɵcontentQuery(dirIndex, _c4, 4);
|
1167
|
+
i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
|
1140
1168
|
} if (rf & 2) {
|
1141
1169
|
let _t;
|
1142
1170
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerFacet = _t.first);
|
@@ -1144,8 +1172,9 @@ class Carousel extends BaseComponent {
|
|
1144
1172
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemTemplate = _t.first);
|
1145
1173
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
|
1146
1174
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);
|
1147
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
1148
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
1175
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.previousIconTemplate = _t.first);
|
1176
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.nextIconTemplate = _t.first);
|
1177
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
|
1149
1178
|
} }, viewQuery: function Carousel_Query(rf, ctx) { if (rf & 1) {
|
1150
1179
|
i0.ɵɵviewQuery(_c5, 5);
|
1151
1180
|
i0.ɵɵviewQuery(_c6, 5);
|
@@ -1198,7 +1227,7 @@ class Carousel extends BaseComponent {
|
|
1198
1227
|
i0.ɵɵadvance();
|
1199
1228
|
i0.ɵɵproperty("ngIf", ctx.showIndicators);
|
1200
1229
|
i0.ɵɵadvance();
|
1201
|
-
i0.ɵɵproperty("ngIf", ctx.footerFacet || ctx.footerTemplate);
|
1230
|
+
i0.ɵɵproperty("ngIf", ctx.footerFacet || ctx.footerTemplate || ctx._footerTemplate);
|
1202
1231
|
} }, dependencies: [CommonModule, i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, Ripple, ChevronRightIcon, ChevronLeftIcon, ChevronDownIcon, ChevronUpIcon, Button, SharedModule], encapsulation: 2, changeDetection: 0 });
|
1203
1232
|
}
|
1204
1233
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Carousel, [{
|
@@ -1225,12 +1254,12 @@ class Carousel extends BaseComponent {
|
|
1225
1254
|
[buttonProps]="prevButtonProps"
|
1226
1255
|
>
|
1227
1256
|
<ng-template #icon>
|
1228
|
-
<ng-container *ngIf="!
|
1257
|
+
<ng-container *ngIf="!previousIconTemplate && !_previousIconTemplate && !prevButtonProps?.icon">
|
1229
1258
|
<ChevronLeftIcon *ngIf="!isVertical()" [styleClass]="'carousel-prev-icon'" />
|
1230
1259
|
<ChevronUpIcon *ngIf="isVertical()" [styleClass]="'carousel-prev-icon'" />
|
1231
1260
|
</ng-container>
|
1232
|
-
<span *ngIf="
|
1233
|
-
<ng-template *ngTemplateOutlet="
|
1261
|
+
<span *ngIf="(previousIconTemplate || _previousIconTemplate) && !prevButtonProps?.icon" class="p-carousel-prev-icon">
|
1262
|
+
<ng-template *ngTemplateOutlet="previousIconTemplate || _previousIconTemplate"></ng-template>
|
1234
1263
|
</span>
|
1235
1264
|
</ng-template>
|
1236
1265
|
</p-button>
|
@@ -1248,7 +1277,7 @@ class Carousel extends BaseComponent {
|
|
1248
1277
|
[attr.aria-label]="ariaSlideNumber(index)"
|
1249
1278
|
[attr.aria-roledescription]="ariaSlideLabel()"
|
1250
1279
|
>
|
1251
|
-
<ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: item }"></ng-container>
|
1280
|
+
<ng-container *ngTemplateOutlet="itemTemplate || _itemTemplate; context: { $implicit: item }"></ng-container>
|
1252
1281
|
</div>
|
1253
1282
|
<div
|
1254
1283
|
*ngFor="let item of value; let index = index"
|
@@ -1262,7 +1291,7 @@ class Carousel extends BaseComponent {
|
|
1262
1291
|
[attr.aria-label]="ariaSlideNumber(index)"
|
1263
1292
|
[attr.aria-roledescription]="ariaSlideLabel()"
|
1264
1293
|
>
|
1265
|
-
<ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: item }"></ng-container>
|
1294
|
+
<ng-container *ngTemplateOutlet="itemTemplate || _itemTemplate; context: { $implicit: item }"></ng-container>
|
1266
1295
|
</div>
|
1267
1296
|
<div
|
1268
1297
|
*ngFor="let item of clonedItemsForFinishing; let index = index"
|
@@ -1273,7 +1302,7 @@ class Carousel extends BaseComponent {
|
|
1273
1302
|
'p-carousel-item-end': clonedItemsForFinishing.length - 1 === index
|
1274
1303
|
}"
|
1275
1304
|
>
|
1276
|
-
<ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: item }"></ng-container>
|
1305
|
+
<ng-container *ngTemplateOutlet="itemTemplate || _itemTemplate; context: { $implicit: item }"></ng-container>
|
1277
1306
|
</div>
|
1278
1307
|
</div>
|
1279
1308
|
</div>
|
@@ -1288,12 +1317,12 @@ class Carousel extends BaseComponent {
|
|
1288
1317
|
[buttonProps]="nextButtonProps"
|
1289
1318
|
[text]="true"
|
1290
1319
|
>
|
1291
|
-
<ng-container *ngIf="!
|
1320
|
+
<ng-container *ngIf="!nextIconTemplate && !_nextIconTemplate && !nextButtonProps?.icon">
|
1292
1321
|
<ChevronRightIcon *ngIf="!isVertical()" [styleClass]="'carousel-prev-icon'" />
|
1293
1322
|
<ChevronDownIcon *ngIf="isVertical()" [styleClass]="'carousel-prev-icon'" />
|
1294
1323
|
</ng-container>
|
1295
|
-
<span *ngIf="
|
1296
|
-
<ng-template *ngTemplateOutlet="
|
1324
|
+
<span *ngIf="nextIconTemplate || (_nextIconTemplate && !nextButtonProps?.icon)" class="p-carousel-prev-icon">
|
1325
|
+
<ng-template *ngTemplateOutlet="nextIconTemplate || _nextIconTemplate"></ng-template>
|
1297
1326
|
</span>
|
1298
1327
|
</p-button>
|
1299
1328
|
</div>
|
@@ -1312,9 +1341,9 @@ class Carousel extends BaseComponent {
|
|
1312
1341
|
</li>
|
1313
1342
|
</ul>
|
1314
1343
|
</div>
|
1315
|
-
<div class="p-carousel-footer" *ngIf="footerFacet || footerTemplate">
|
1344
|
+
<div class="p-carousel-footer" *ngIf="footerFacet || footerTemplate || _footerTemplate">
|
1316
1345
|
<ng-content select="p-footer"></ng-content>
|
1317
|
-
<ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
|
1346
|
+
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|
1318
1347
|
</div>
|
1319
1348
|
</div>
|
1320
1349
|
`,
|
@@ -1382,21 +1411,24 @@ class Carousel extends BaseComponent {
|
|
1382
1411
|
args: [Footer]
|
1383
1412
|
}], itemTemplate: [{
|
1384
1413
|
type: ContentChild,
|
1385
|
-
args: ['item']
|
1414
|
+
args: ['item', { descendants: false }]
|
1386
1415
|
}], headerTemplate: [{
|
1387
1416
|
type: ContentChild,
|
1388
|
-
args: ['header']
|
1417
|
+
args: ['header', { descendants: false }]
|
1389
1418
|
}], footerTemplate: [{
|
1390
1419
|
type: ContentChild,
|
1391
|
-
args: ['footer']
|
1392
|
-
}],
|
1420
|
+
args: ['footer', { descendants: false }]
|
1421
|
+
}], previousIconTemplate: [{
|
1393
1422
|
type: ContentChild,
|
1394
|
-
args: ['previousicon']
|
1395
|
-
}],
|
1423
|
+
args: ['previousicon', { descendants: false }]
|
1424
|
+
}], nextIconTemplate: [{
|
1396
1425
|
type: ContentChild,
|
1397
|
-
args: ['nexticon']
|
1426
|
+
args: ['nexticon', { descendants: false }]
|
1427
|
+
}], templates: [{
|
1428
|
+
type: ContentChildren,
|
1429
|
+
args: [PrimeTemplate]
|
1398
1430
|
}] }); })();
|
1399
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Carousel, { className: "Carousel", filePath: "carousel.ts", lineNumber:
|
1431
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Carousel, { className: "Carousel", filePath: "carousel.ts", lineNumber: 155 }); })();
|
1400
1432
|
class CarouselModule {
|
1401
1433
|
static ɵfac = function CarouselModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CarouselModule)(); };
|
1402
1434
|
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CarouselModule });
|