@exhaustive-ui/core 3.0.0-alpha.0 → 3.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
- package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
- package/schematics/migrations/renamed-inputs/migration.js +97 -0
- package/schematics/migrations/styleclass-to-class/migration.js +92 -1
- package/schematics/migrations.json +7 -2
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +175 -0
- package/schematics/utils/styleclass.js +24 -8
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +8 -24
- package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
- package/types/exhaustive-ui-core-api.d.ts +2 -3
- package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
- package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
- package/types/exhaustive-ui-core-avatar.d.ts +18 -25
- package/types/exhaustive-ui-core-badge.d.ts +13 -27
- package/types/exhaustive-ui-core-blockui.d.ts +18 -30
- package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
- package/types/exhaustive-ui-core-button.d.ts +57 -89
- package/types/exhaustive-ui-core-carousel.d.ts +56 -82
- package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
- package/types/exhaustive-ui-core-chart.d.ts +21 -29
- package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
- package/types/exhaustive-ui-core-chip.d.ts +31 -38
- package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
- package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
- package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
- package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
- package/types/exhaustive-ui-core-dataview.d.ts +42 -65
- package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
- package/types/exhaustive-ui-core-dialog.d.ts +73 -123
- package/types/exhaustive-ui-core-dock.d.ts +16 -25
- package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
- package/types/exhaustive-ui-core-drawer.d.ts +32 -64
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
- package/types/exhaustive-ui-core-editor.d.ts +15 -25
- package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
- package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
- package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
- package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
- package/types/exhaustive-ui-core-galleria.d.ts +124 -194
- package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
- package/types/exhaustive-ui-core-image.d.ts +35 -68
- package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
- package/types/exhaustive-ui-core-inplace.d.ts +30 -42
- package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
- package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
- package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
- package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
- package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
- package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
- package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
- package/types/exhaustive-ui-core-knob.d.ts +45 -60
- package/types/exhaustive-ui-core-listbox.d.ts +90 -126
- package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
- package/types/exhaustive-ui-core-menu.d.ts +33 -53
- package/types/exhaustive-ui-core-menubar.d.ts +38 -85
- package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
- package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
- package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
- package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
- package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
- package/types/exhaustive-ui-core-paginator.d.ts +41 -69
- package/types/exhaustive-ui-core-panel.d.ts +18 -45
- package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
- package/types/exhaustive-ui-core-password.d.ts +56 -93
- package/types/exhaustive-ui-core-picklist.d.ts +107 -121
- package/types/exhaustive-ui-core-popover.d.ts +23 -47
- package/types/exhaustive-ui-core-rating.d.ts +18 -26
- package/types/exhaustive-ui-core-scroller.d.ts +90 -120
- package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
- package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
- package/types/exhaustive-ui-core-select.d.ts +137 -188
- package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
- package/types/exhaustive-ui-core-slider.d.ts +52 -67
- package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
- package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
- package/types/exhaustive-ui-core-splitter.d.ts +47 -59
- package/types/exhaustive-ui-core-steps.d.ts +24 -31
- package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
- package/types/exhaustive-ui-core-table.d.ts +349 -453
- package/types/exhaustive-ui-core-terminal.d.ts +10 -22
- package/types/exhaustive-ui-core-textarea.d.ts +7 -10
- package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
- package/types/exhaustive-ui-core-timeline.d.ts +20 -28
- package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
- package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
- package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
- package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
- package/types/exhaustive-ui-core-tree.d.ts +82 -119
- package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
- package/types/exhaustive-ui-core-treetable.d.ts +203 -280
- package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
|
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/breadcrumb';
|
|
|
2
2
|
import * as i2 from '@angular/common';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable,
|
|
5
|
+
import { Injectable, inject, afterEveryRender, input, output, contentChild, contentChildren, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import * as i3 from '@angular/router';
|
|
7
7
|
import { Router, RouterModule, RouterLink, RouterLinkActive } from '@angular/router';
|
|
8
8
|
import { TranslationKeys, PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
|
|
@@ -81,7 +81,6 @@ var BreadcrumbClasses;
|
|
|
81
81
|
BreadcrumbClasses["itemLabel"] = "p-breadcrumb-item-label";
|
|
82
82
|
})(BreadcrumbClasses || (BreadcrumbClasses = {}));
|
|
83
83
|
|
|
84
|
-
const BREADCRUMB_INSTANCE = new InjectionToken('BREADCRUMB_INSTANCE');
|
|
85
84
|
/**
|
|
86
85
|
* Breadcrumb provides contextual information about page hierarchy.
|
|
87
86
|
* @group Components
|
|
@@ -89,31 +88,40 @@ const BREADCRUMB_INSTANCE = new InjectionToken('BREADCRUMB_INSTANCE');
|
|
|
89
88
|
class Breadcrumb extends BaseComponent {
|
|
90
89
|
componentName = 'Breadcrumb';
|
|
91
90
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
91
|
+
constructor() {
|
|
92
|
+
super();
|
|
93
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));
|
|
94
|
+
}
|
|
92
95
|
/**
|
|
93
96
|
* An array of menuitems.
|
|
94
97
|
* @group Props
|
|
95
98
|
*/
|
|
96
|
-
model
|
|
99
|
+
model = input(/* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [undefined, { debugName: "model" }] : /* istanbul ignore next */ []));
|
|
97
101
|
/**
|
|
98
102
|
* Inline style of the component.
|
|
99
103
|
* @group Props
|
|
100
104
|
*/
|
|
101
|
-
style
|
|
105
|
+
style = input(/* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
|
|
102
107
|
/**
|
|
103
108
|
* Style class of the component.
|
|
104
109
|
* @group Props
|
|
105
110
|
*/
|
|
106
|
-
styleClass
|
|
111
|
+
styleClass = input(/* @ts-ignore */
|
|
112
|
+
...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
107
113
|
/**
|
|
108
114
|
* MenuItem configuration for the home icon.
|
|
109
115
|
* @group Props
|
|
110
116
|
*/
|
|
111
|
-
home
|
|
117
|
+
home = input(/* @ts-ignore */
|
|
118
|
+
...(ngDevMode ? [undefined, { debugName: "home" }] : /* istanbul ignore next */ []));
|
|
112
119
|
/**
|
|
113
120
|
* Defines a string that labels the home icon for accessibility. Defaults to the `aria.home` translation when the home item has no visible label.
|
|
114
121
|
* @group Props
|
|
115
122
|
*/
|
|
116
|
-
homeAriaLabel
|
|
123
|
+
homeAriaLabel = input(/* @ts-ignore */
|
|
124
|
+
...(ngDevMode ? [undefined, { debugName: "homeAriaLabel" }] : /* istanbul ignore next */ []));
|
|
117
125
|
/**
|
|
118
126
|
* Fired when an item is selected.
|
|
119
127
|
* @param {BreadcrumbItemClickEvent} event - custom click event.
|
|
@@ -123,11 +131,11 @@ class Breadcrumb extends BaseComponent {
|
|
|
123
131
|
_componentStyle = inject(BreadCrumbStyle);
|
|
124
132
|
router = inject(Router);
|
|
125
133
|
get homeLinkAriaLabel() {
|
|
126
|
-
if (this.homeAriaLabel) {
|
|
127
|
-
return this.homeAriaLabel;
|
|
134
|
+
if (this.homeAriaLabel()) {
|
|
135
|
+
return this.homeAriaLabel();
|
|
128
136
|
}
|
|
129
137
|
// A visible label already names the link, so an aria-label would only override it.
|
|
130
|
-
return this.home?.label ? undefined : this.config.getTranslation(TranslationKeys.ARIA)?.home;
|
|
138
|
+
return this.home()?.label ? undefined : this.config.getTranslation(TranslationKeys.ARIA)?.home;
|
|
131
139
|
}
|
|
132
140
|
onClick(event, item) {
|
|
133
141
|
if (item.disabled) {
|
|
@@ -162,26 +170,14 @@ class Breadcrumb extends BaseComponent {
|
|
|
162
170
|
...(ngDevMode ? [{ debugName: "separatorTemplate" }] : /* istanbul ignore next */ []));
|
|
163
171
|
templates = contentChildren(PrimeTemplate, /* @ts-ignore */
|
|
164
172
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
165
|
-
_separatorTemplate
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
case 'item':
|
|
174
|
-
this._itemTemplate = item.template;
|
|
175
|
-
break;
|
|
176
|
-
default:
|
|
177
|
-
this._itemTemplate = item.template;
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
onAfterViewChecked() {
|
|
183
|
-
this.bindDirectiveInstance.setAttrs(this.ptm('host'));
|
|
184
|
-
}
|
|
173
|
+
_separatorTemplate = computed(() => this.templates()
|
|
174
|
+
.filter((item) => item.getType() === 'separator')
|
|
175
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
176
|
+
...(ngDevMode ? [{ debugName: "_separatorTemplate" }] : /* istanbul ignore next */ []));
|
|
177
|
+
_itemTemplate = computed(() => this.templates()
|
|
178
|
+
.filter((item) => item.getType() !== 'separator')
|
|
179
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
180
|
+
...(ngDevMode ? [{ debugName: "_itemTemplate" }] : /* istanbul ignore next */ []));
|
|
185
181
|
getPTOptions(item, index, key) {
|
|
186
182
|
return this.ptm(key, {
|
|
187
183
|
context: {
|
|
@@ -191,108 +187,109 @@ class Breadcrumb extends BaseComponent {
|
|
|
191
187
|
});
|
|
192
188
|
}
|
|
193
189
|
isCurrentPage(index) {
|
|
194
|
-
|
|
190
|
+
const model = this.model();
|
|
191
|
+
if (!model) {
|
|
195
192
|
return false;
|
|
196
193
|
}
|
|
197
|
-
for (let i =
|
|
198
|
-
if (
|
|
194
|
+
for (let i = model.length - 1; i >= 0; i--) {
|
|
195
|
+
if (model[i]?.visible !== false) {
|
|
199
196
|
return i === index;
|
|
200
197
|
}
|
|
201
198
|
}
|
|
202
199
|
return false;
|
|
203
200
|
}
|
|
204
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Breadcrumb, deps:
|
|
205
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Breadcrumb, isStandalone: true, selector: "p-breadcrumb", inputs: { model: "model", style: "style", styleClass: "styleClass", home: "home",
|
|
206
|
-
<nav [pBind]="ptm('root')" [class]="cn(cx('root'), styleClass)" [style]="style">
|
|
201
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Breadcrumb, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
202
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Breadcrumb, isStandalone: true, selector: "p-breadcrumb", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, home: { classPropertyName: "home", publicName: "home", isSignal: true, isRequired: false, transformFunction: null }, homeAriaLabel: { classPropertyName: "homeAriaLabel", publicName: "homeAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onItemClick: "onItemClick" }, providers: [BreadCrumbStyle, { provide: PARENT_INSTANCE, useExisting: Breadcrumb }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "separatorTemplate", first: true, predicate: ["separator"], descendants: true, isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
203
|
+
<nav [pBind]="ptm('root')" [class]="cn(cx('root'), styleClass())" [style]="style()">
|
|
207
204
|
<ol [class]="cx('list')" [pBind]="ptm('list')">
|
|
208
|
-
@if (home && home
|
|
209
|
-
<li [attr.id]="home.id" [class]="cn(cx('homeItem'), home.styleClass)" [ngStyle]="home.style" pTooltip [tooltipOptions]="home.tooltipOptions" [pBind]="ptm('homeItem')" [unstyled]="unstyled()">
|
|
210
|
-
@if (itemTemplate() || _itemTemplate) {
|
|
211
|
-
<ng-template *ngTemplateOutlet="itemTemplate() || _itemTemplate; context: { $implicit: home }"></ng-template>
|
|
205
|
+
@if (home() && home()?.visible !== false) {
|
|
206
|
+
<li [attr.id]="home().id" [class]="cn(cx('homeItem'), home().styleClass)" [ngStyle]="home().style" pTooltip [tooltipOptions]="home().tooltipOptions" [pBind]="ptm('homeItem')" [unstyled]="unstyled()">
|
|
207
|
+
@if (itemTemplate() || _itemTemplate()) {
|
|
208
|
+
<ng-template *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: home() }"></ng-template>
|
|
212
209
|
} @else {
|
|
213
|
-
@if (!home.routerLink) {
|
|
210
|
+
@if (!home().routerLink) {
|
|
214
211
|
<a
|
|
215
|
-
[href]="home.url ? home.url : null"
|
|
212
|
+
[href]="home().url ? home().url : null"
|
|
216
213
|
[attr.aria-label]="homeLinkAriaLabel"
|
|
217
|
-
[class]="cn(cx('itemLink'), home.linkClass)"
|
|
218
|
-
[ngStyle]="home.linkStyle"
|
|
219
|
-
(click)="onClick($event, home)"
|
|
220
|
-
[target]="home.target"
|
|
221
|
-
[attr.title]="home.title"
|
|
222
|
-
[attr.tabindex]="home.disabled ? null : home.tabindex || '0'"
|
|
223
|
-
[attr.data-automationid]="home.automationId"
|
|
214
|
+
[class]="cn(cx('itemLink'), home().linkClass)"
|
|
215
|
+
[ngStyle]="home().linkStyle"
|
|
216
|
+
(click)="onClick($event, home())"
|
|
217
|
+
[target]="home().target"
|
|
218
|
+
[attr.title]="home().title"
|
|
219
|
+
[attr.tabindex]="home().disabled ? null : home().tabindex || '0'"
|
|
220
|
+
[attr.data-automationid]="home().automationId"
|
|
224
221
|
[pBind]="ptm('itemLink')"
|
|
225
222
|
>
|
|
226
|
-
@if (home.icon) {
|
|
227
|
-
<span [class]="cn(cx('itemIcon'), home.icon, home.iconClass)" [ngStyle]="home.iconStyle" [pBind]="ptm('itemIcon')"></span>
|
|
223
|
+
@if (home().icon) {
|
|
224
|
+
<span [class]="cn(cx('itemIcon'), home().icon, home().iconClass)" [ngStyle]="home().iconStyle" [pBind]="ptm('itemIcon')"></span>
|
|
228
225
|
}
|
|
229
|
-
@if (!home.icon) {
|
|
226
|
+
@if (!home().icon) {
|
|
230
227
|
<svg data-p-icon="home" [class]="cx('itemIcon')" [pBind]="ptm('itemIcon')" />
|
|
231
228
|
}
|
|
232
|
-
@if (home.label) {
|
|
233
|
-
@if (home.escape !== false) {
|
|
234
|
-
<span [class]="cn(cx('itemLabel'), home.labelClass)" [ngStyle]="home.labelStyle" [pBind]="ptm('itemLabel')">{{ home.label }}</span>
|
|
229
|
+
@if (home().label) {
|
|
230
|
+
@if (home().escape !== false) {
|
|
231
|
+
<span [class]="cn(cx('itemLabel'), home().labelClass)" [ngStyle]="home().labelStyle" [pBind]="ptm('itemLabel')">{{ home().label }}</span>
|
|
235
232
|
} @else {
|
|
236
|
-
<span [class]="cn(cx('itemLabel'), home.labelClass)" [ngStyle]="home.labelStyle" [innerHTML]="home.label" [pBind]="ptm('itemLabel')"></span>
|
|
233
|
+
<span [class]="cn(cx('itemLabel'), home().labelClass)" [ngStyle]="home().labelStyle" [innerHTML]="home().label" [pBind]="ptm('itemLabel')"></span>
|
|
237
234
|
}
|
|
238
235
|
}
|
|
239
|
-
@if (home.badge) {
|
|
240
|
-
<p-badge [
|
|
236
|
+
@if (home().badge) {
|
|
237
|
+
<p-badge [class]="home().badgeStyleClass" [value]="home().badge" [pt]="ptm('pcBadge')" [unstyled]="unstyled()" />
|
|
241
238
|
}
|
|
242
239
|
</a>
|
|
243
240
|
}
|
|
244
|
-
@if (home.routerLink) {
|
|
241
|
+
@if (home().routerLink) {
|
|
245
242
|
<a
|
|
246
|
-
[routerLink]="home.routerLink"
|
|
243
|
+
[routerLink]="home().routerLink"
|
|
247
244
|
routerLinkActive="p-menuitem-link-active"
|
|
248
245
|
[attr.aria-label]="homeLinkAriaLabel"
|
|
249
|
-
[queryParams]="home.queryParams"
|
|
250
|
-
[routerLinkActiveOptions]="home.routerLinkActiveOptions || { exact: false }"
|
|
251
|
-
[class]="cn(cx('itemLink'), home.linkClass)"
|
|
252
|
-
[ngStyle]="home.linkStyle"
|
|
253
|
-
(click)="onClick($event, home)"
|
|
254
|
-
[target]="home.target"
|
|
255
|
-
[attr.title]="home.title"
|
|
256
|
-
[attr.tabindex]="home.disabled ? null : home.tabindex || '0'"
|
|
257
|
-
[attr.data-automationid]="home.automationId"
|
|
258
|
-
[fragment]="home.fragment"
|
|
259
|
-
[queryParamsHandling]="home.queryParamsHandling"
|
|
260
|
-
[preserveFragment]="home.preserveFragment"
|
|
261
|
-
[skipLocationChange]="home.skipLocationChange"
|
|
262
|
-
[replaceUrl]="home.replaceUrl"
|
|
263
|
-
[state]="home.state"
|
|
246
|
+
[queryParams]="home().queryParams"
|
|
247
|
+
[routerLinkActiveOptions]="home().routerLinkActiveOptions || { exact: false }"
|
|
248
|
+
[class]="cn(cx('itemLink'), home().linkClass)"
|
|
249
|
+
[ngStyle]="home().linkStyle"
|
|
250
|
+
(click)="onClick($event, home())"
|
|
251
|
+
[target]="home().target"
|
|
252
|
+
[attr.title]="home().title"
|
|
253
|
+
[attr.tabindex]="home().disabled ? null : home().tabindex || '0'"
|
|
254
|
+
[attr.data-automationid]="home().automationId"
|
|
255
|
+
[fragment]="home().fragment"
|
|
256
|
+
[queryParamsHandling]="home().queryParamsHandling"
|
|
257
|
+
[preserveFragment]="home().preserveFragment"
|
|
258
|
+
[skipLocationChange]="home().skipLocationChange"
|
|
259
|
+
[replaceUrl]="home().replaceUrl"
|
|
260
|
+
[state]="home().state"
|
|
264
261
|
[pBind]="ptm('itemLink')"
|
|
265
262
|
>
|
|
266
|
-
@if (home.icon) {
|
|
267
|
-
<span [class]="cn(cx('itemIcon'), home.icon, home.iconClass)" [ngStyle]="home.iconStyle" [pBind]="ptm('itemIcon')"></span>
|
|
263
|
+
@if (home().icon) {
|
|
264
|
+
<span [class]="cn(cx('itemIcon'), home().icon, home().iconClass)" [ngStyle]="home().iconStyle" [pBind]="ptm('itemIcon')"></span>
|
|
268
265
|
}
|
|
269
|
-
@if (!home.icon) {
|
|
266
|
+
@if (!home().icon) {
|
|
270
267
|
<svg data-p-icon="home" [class]="cx('itemIcon')" [pBind]="ptm('itemIcon')" />
|
|
271
268
|
}
|
|
272
|
-
@if (home.label) {
|
|
273
|
-
@if (home.escape !== false) {
|
|
274
|
-
<span [class]="cn(cx('itemLabel'), home.labelClass)" [ngStyle]="home.labelStyle" [pBind]="ptm('itemLabel')">{{ home.label }}</span>
|
|
269
|
+
@if (home().label) {
|
|
270
|
+
@if (home().escape !== false) {
|
|
271
|
+
<span [class]="cn(cx('itemLabel'), home().labelClass)" [ngStyle]="home().labelStyle" [pBind]="ptm('itemLabel')">{{ home().label }}</span>
|
|
275
272
|
} @else {
|
|
276
|
-
<span [class]="cn(cx('itemLabel'), home.labelClass)" [ngStyle]="home.labelStyle" [innerHTML]="home.label" [pBind]="ptm('itemLabel')"></span>
|
|
273
|
+
<span [class]="cn(cx('itemLabel'), home().labelClass)" [ngStyle]="home().labelStyle" [innerHTML]="home().label" [pBind]="ptm('itemLabel')"></span>
|
|
277
274
|
}
|
|
278
275
|
}
|
|
279
|
-
@if (home.badge) {
|
|
280
|
-
<p-badge [
|
|
276
|
+
@if (home().badge) {
|
|
277
|
+
<p-badge [class]="home().badgeStyleClass" [value]="home().badge" [pt]="ptm('pcBadge')" [unstyled]="unstyled()" />
|
|
281
278
|
}
|
|
282
279
|
</a>
|
|
283
280
|
}
|
|
284
281
|
}
|
|
285
282
|
</li>
|
|
286
283
|
}
|
|
287
|
-
@if (model && home) {
|
|
284
|
+
@if (model() && home()) {
|
|
288
285
|
<li [class]="cx('separator')" [pBind]="ptm('separator')" aria-hidden="true">
|
|
289
|
-
@if (!separatorTemplate() && !_separatorTemplate) {
|
|
286
|
+
@if (!separatorTemplate() && !_separatorTemplate()) {
|
|
290
287
|
<svg data-p-icon="chevron-right" [pBind]="ptm('separatorIcon')" />
|
|
291
288
|
}
|
|
292
|
-
<ng-template *ngTemplateOutlet="separatorTemplate() || _separatorTemplate"></ng-template>
|
|
289
|
+
<ng-template *ngTemplateOutlet="separatorTemplate() || _separatorTemplate()"></ng-template>
|
|
293
290
|
</li>
|
|
294
291
|
}
|
|
295
|
-
@for (menuitem of model; track menuitem; let end = $last; let i = $index) {
|
|
292
|
+
@for (menuitem of model(); track menuitem; let end = $last; let i = $index) {
|
|
296
293
|
@if (menuitem.visible !== false) {
|
|
297
294
|
<li
|
|
298
295
|
[class]="cn(cx('item', { menuitem }), menuitem.styleClass)"
|
|
@@ -303,8 +300,8 @@ class Breadcrumb extends BaseComponent {
|
|
|
303
300
|
[pBind]="getPTOptions(menuitem, i, 'item')"
|
|
304
301
|
[pTooltipUnstyled]="unstyled()"
|
|
305
302
|
>
|
|
306
|
-
@if (itemTemplate() || _itemTemplate) {
|
|
307
|
-
<ng-template *ngTemplateOutlet="itemTemplate() || _itemTemplate; context: { $implicit: menuitem }"></ng-template>
|
|
303
|
+
@if (itemTemplate() || _itemTemplate()) {
|
|
304
|
+
<ng-template *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: menuitem }"></ng-template>
|
|
308
305
|
} @else {
|
|
309
306
|
@if (!menuitem?.routerLink) {
|
|
310
307
|
<a
|
|
@@ -319,7 +316,7 @@ class Breadcrumb extends BaseComponent {
|
|
|
319
316
|
[attr.aria-current]="isCurrentPage(i) ? 'page' : undefined"
|
|
320
317
|
[pBind]="getPTOptions(menuitem, i, 'itemLink')"
|
|
321
318
|
>
|
|
322
|
-
@if (!itemTemplate() && !_itemTemplate) {
|
|
319
|
+
@if (!itemTemplate() && !_itemTemplate()) {
|
|
323
320
|
@if (menuitem?.icon) {
|
|
324
321
|
<span [class]="cn(cx('itemIcon'), menuitem?.icon, menuitem?.iconClass)" [ngStyle]="menuitem?.iconStyle" [pBind]="getPTOptions(menuitem, i, 'itemIcon')"></span>
|
|
325
322
|
}
|
|
@@ -331,7 +328,7 @@ class Breadcrumb extends BaseComponent {
|
|
|
331
328
|
}
|
|
332
329
|
}
|
|
333
330
|
@if (menuitem?.badge) {
|
|
334
|
-
<p-badge [
|
|
331
|
+
<p-badge [class]="menuitem?.badgeStyleClass" [value]="menuitem?.badge" [pt]="getPTOptions(menuitem, i, 'pcBadge')" [unstyled]="unstyled()" />
|
|
335
332
|
}
|
|
336
333
|
}
|
|
337
334
|
</a>
|
|
@@ -369,7 +366,7 @@ class Breadcrumb extends BaseComponent {
|
|
|
369
366
|
}
|
|
370
367
|
}
|
|
371
368
|
@if (menuitem?.badge) {
|
|
372
|
-
<p-badge [
|
|
369
|
+
<p-badge [class]="menuitem?.badgeStyleClass" [value]="menuitem?.badge" [pt]="getPTOptions(menuitem, i, 'pcBadge')" [unstyled]="unstyled()" />
|
|
373
370
|
}
|
|
374
371
|
</a>
|
|
375
372
|
}
|
|
@@ -378,114 +375,113 @@ class Breadcrumb extends BaseComponent {
|
|
|
378
375
|
}
|
|
379
376
|
@if (!end && menuitem.visible !== false) {
|
|
380
377
|
<li [class]="cx('separator')" [pBind]="ptm('separator')" aria-hidden="true">
|
|
381
|
-
@if (!separatorTemplate() && !_separatorTemplate) {
|
|
378
|
+
@if (!separatorTemplate() && !_separatorTemplate()) {
|
|
382
379
|
<svg data-p-icon="chevron-right" [pBind]="ptm('separatorIcon')" />
|
|
383
380
|
}
|
|
384
|
-
<ng-template *ngTemplateOutlet="separatorTemplate() || _separatorTemplate"></ng-template>
|
|
381
|
+
<ng-template *ngTemplateOutlet="separatorTemplate() || _separatorTemplate()"></ng-template>
|
|
385
382
|
</li>
|
|
386
383
|
}
|
|
387
384
|
}
|
|
388
385
|
</ol>
|
|
389
386
|
</nav>
|
|
390
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: ChevronRightIcon, selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "component", type: HomeIcon, selector: "[data-p-icon=\"home\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "component", type: Badge, selector: "p-badge", inputs: ["
|
|
387
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: ChevronRightIcon, selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "component", type: HomeIcon, selector: "[data-p-icon=\"home\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "component", type: Badge, selector: "p-badge", inputs: ["badgeSize", "size", "severity", "value", "badgeDisabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
391
388
|
}
|
|
392
389
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Breadcrumb, decorators: [{
|
|
393
390
|
type: Component,
|
|
394
391
|
args: [{
|
|
395
392
|
selector: 'p-breadcrumb',
|
|
396
|
-
standalone: true,
|
|
397
393
|
imports: [CommonModule, RouterModule, RouterLink, RouterLinkActive, TooltipModule, ChevronRightIcon, HomeIcon, SharedModule, Bind, Badge],
|
|
398
394
|
template: `
|
|
399
|
-
<nav [pBind]="ptm('root')" [class]="cn(cx('root'), styleClass)" [style]="style">
|
|
395
|
+
<nav [pBind]="ptm('root')" [class]="cn(cx('root'), styleClass())" [style]="style()">
|
|
400
396
|
<ol [class]="cx('list')" [pBind]="ptm('list')">
|
|
401
|
-
@if (home && home
|
|
402
|
-
<li [attr.id]="home.id" [class]="cn(cx('homeItem'), home.styleClass)" [ngStyle]="home.style" pTooltip [tooltipOptions]="home.tooltipOptions" [pBind]="ptm('homeItem')" [unstyled]="unstyled()">
|
|
403
|
-
@if (itemTemplate() || _itemTemplate) {
|
|
404
|
-
<ng-template *ngTemplateOutlet="itemTemplate() || _itemTemplate; context: { $implicit: home }"></ng-template>
|
|
397
|
+
@if (home() && home()?.visible !== false) {
|
|
398
|
+
<li [attr.id]="home().id" [class]="cn(cx('homeItem'), home().styleClass)" [ngStyle]="home().style" pTooltip [tooltipOptions]="home().tooltipOptions" [pBind]="ptm('homeItem')" [unstyled]="unstyled()">
|
|
399
|
+
@if (itemTemplate() || _itemTemplate()) {
|
|
400
|
+
<ng-template *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: home() }"></ng-template>
|
|
405
401
|
} @else {
|
|
406
|
-
@if (!home.routerLink) {
|
|
402
|
+
@if (!home().routerLink) {
|
|
407
403
|
<a
|
|
408
|
-
[href]="home.url ? home.url : null"
|
|
404
|
+
[href]="home().url ? home().url : null"
|
|
409
405
|
[attr.aria-label]="homeLinkAriaLabel"
|
|
410
|
-
[class]="cn(cx('itemLink'), home.linkClass)"
|
|
411
|
-
[ngStyle]="home.linkStyle"
|
|
412
|
-
(click)="onClick($event, home)"
|
|
413
|
-
[target]="home.target"
|
|
414
|
-
[attr.title]="home.title"
|
|
415
|
-
[attr.tabindex]="home.disabled ? null : home.tabindex || '0'"
|
|
416
|
-
[attr.data-automationid]="home.automationId"
|
|
406
|
+
[class]="cn(cx('itemLink'), home().linkClass)"
|
|
407
|
+
[ngStyle]="home().linkStyle"
|
|
408
|
+
(click)="onClick($event, home())"
|
|
409
|
+
[target]="home().target"
|
|
410
|
+
[attr.title]="home().title"
|
|
411
|
+
[attr.tabindex]="home().disabled ? null : home().tabindex || '0'"
|
|
412
|
+
[attr.data-automationid]="home().automationId"
|
|
417
413
|
[pBind]="ptm('itemLink')"
|
|
418
414
|
>
|
|
419
|
-
@if (home.icon) {
|
|
420
|
-
<span [class]="cn(cx('itemIcon'), home.icon, home.iconClass)" [ngStyle]="home.iconStyle" [pBind]="ptm('itemIcon')"></span>
|
|
415
|
+
@if (home().icon) {
|
|
416
|
+
<span [class]="cn(cx('itemIcon'), home().icon, home().iconClass)" [ngStyle]="home().iconStyle" [pBind]="ptm('itemIcon')"></span>
|
|
421
417
|
}
|
|
422
|
-
@if (!home.icon) {
|
|
418
|
+
@if (!home().icon) {
|
|
423
419
|
<svg data-p-icon="home" [class]="cx('itemIcon')" [pBind]="ptm('itemIcon')" />
|
|
424
420
|
}
|
|
425
|
-
@if (home.label) {
|
|
426
|
-
@if (home.escape !== false) {
|
|
427
|
-
<span [class]="cn(cx('itemLabel'), home.labelClass)" [ngStyle]="home.labelStyle" [pBind]="ptm('itemLabel')">{{ home.label }}</span>
|
|
421
|
+
@if (home().label) {
|
|
422
|
+
@if (home().escape !== false) {
|
|
423
|
+
<span [class]="cn(cx('itemLabel'), home().labelClass)" [ngStyle]="home().labelStyle" [pBind]="ptm('itemLabel')">{{ home().label }}</span>
|
|
428
424
|
} @else {
|
|
429
|
-
<span [class]="cn(cx('itemLabel'), home.labelClass)" [ngStyle]="home.labelStyle" [innerHTML]="home.label" [pBind]="ptm('itemLabel')"></span>
|
|
425
|
+
<span [class]="cn(cx('itemLabel'), home().labelClass)" [ngStyle]="home().labelStyle" [innerHTML]="home().label" [pBind]="ptm('itemLabel')"></span>
|
|
430
426
|
}
|
|
431
427
|
}
|
|
432
|
-
@if (home.badge) {
|
|
433
|
-
<p-badge [
|
|
428
|
+
@if (home().badge) {
|
|
429
|
+
<p-badge [class]="home().badgeStyleClass" [value]="home().badge" [pt]="ptm('pcBadge')" [unstyled]="unstyled()" />
|
|
434
430
|
}
|
|
435
431
|
</a>
|
|
436
432
|
}
|
|
437
|
-
@if (home.routerLink) {
|
|
433
|
+
@if (home().routerLink) {
|
|
438
434
|
<a
|
|
439
|
-
[routerLink]="home.routerLink"
|
|
435
|
+
[routerLink]="home().routerLink"
|
|
440
436
|
routerLinkActive="p-menuitem-link-active"
|
|
441
437
|
[attr.aria-label]="homeLinkAriaLabel"
|
|
442
|
-
[queryParams]="home.queryParams"
|
|
443
|
-
[routerLinkActiveOptions]="home.routerLinkActiveOptions || { exact: false }"
|
|
444
|
-
[class]="cn(cx('itemLink'), home.linkClass)"
|
|
445
|
-
[ngStyle]="home.linkStyle"
|
|
446
|
-
(click)="onClick($event, home)"
|
|
447
|
-
[target]="home.target"
|
|
448
|
-
[attr.title]="home.title"
|
|
449
|
-
[attr.tabindex]="home.disabled ? null : home.tabindex || '0'"
|
|
450
|
-
[attr.data-automationid]="home.automationId"
|
|
451
|
-
[fragment]="home.fragment"
|
|
452
|
-
[queryParamsHandling]="home.queryParamsHandling"
|
|
453
|
-
[preserveFragment]="home.preserveFragment"
|
|
454
|
-
[skipLocationChange]="home.skipLocationChange"
|
|
455
|
-
[replaceUrl]="home.replaceUrl"
|
|
456
|
-
[state]="home.state"
|
|
438
|
+
[queryParams]="home().queryParams"
|
|
439
|
+
[routerLinkActiveOptions]="home().routerLinkActiveOptions || { exact: false }"
|
|
440
|
+
[class]="cn(cx('itemLink'), home().linkClass)"
|
|
441
|
+
[ngStyle]="home().linkStyle"
|
|
442
|
+
(click)="onClick($event, home())"
|
|
443
|
+
[target]="home().target"
|
|
444
|
+
[attr.title]="home().title"
|
|
445
|
+
[attr.tabindex]="home().disabled ? null : home().tabindex || '0'"
|
|
446
|
+
[attr.data-automationid]="home().automationId"
|
|
447
|
+
[fragment]="home().fragment"
|
|
448
|
+
[queryParamsHandling]="home().queryParamsHandling"
|
|
449
|
+
[preserveFragment]="home().preserveFragment"
|
|
450
|
+
[skipLocationChange]="home().skipLocationChange"
|
|
451
|
+
[replaceUrl]="home().replaceUrl"
|
|
452
|
+
[state]="home().state"
|
|
457
453
|
[pBind]="ptm('itemLink')"
|
|
458
454
|
>
|
|
459
|
-
@if (home.icon) {
|
|
460
|
-
<span [class]="cn(cx('itemIcon'), home.icon, home.iconClass)" [ngStyle]="home.iconStyle" [pBind]="ptm('itemIcon')"></span>
|
|
455
|
+
@if (home().icon) {
|
|
456
|
+
<span [class]="cn(cx('itemIcon'), home().icon, home().iconClass)" [ngStyle]="home().iconStyle" [pBind]="ptm('itemIcon')"></span>
|
|
461
457
|
}
|
|
462
|
-
@if (!home.icon) {
|
|
458
|
+
@if (!home().icon) {
|
|
463
459
|
<svg data-p-icon="home" [class]="cx('itemIcon')" [pBind]="ptm('itemIcon')" />
|
|
464
460
|
}
|
|
465
|
-
@if (home.label) {
|
|
466
|
-
@if (home.escape !== false) {
|
|
467
|
-
<span [class]="cn(cx('itemLabel'), home.labelClass)" [ngStyle]="home.labelStyle" [pBind]="ptm('itemLabel')">{{ home.label }}</span>
|
|
461
|
+
@if (home().label) {
|
|
462
|
+
@if (home().escape !== false) {
|
|
463
|
+
<span [class]="cn(cx('itemLabel'), home().labelClass)" [ngStyle]="home().labelStyle" [pBind]="ptm('itemLabel')">{{ home().label }}</span>
|
|
468
464
|
} @else {
|
|
469
|
-
<span [class]="cn(cx('itemLabel'), home.labelClass)" [ngStyle]="home.labelStyle" [innerHTML]="home.label" [pBind]="ptm('itemLabel')"></span>
|
|
465
|
+
<span [class]="cn(cx('itemLabel'), home().labelClass)" [ngStyle]="home().labelStyle" [innerHTML]="home().label" [pBind]="ptm('itemLabel')"></span>
|
|
470
466
|
}
|
|
471
467
|
}
|
|
472
|
-
@if (home.badge) {
|
|
473
|
-
<p-badge [
|
|
468
|
+
@if (home().badge) {
|
|
469
|
+
<p-badge [class]="home().badgeStyleClass" [value]="home().badge" [pt]="ptm('pcBadge')" [unstyled]="unstyled()" />
|
|
474
470
|
}
|
|
475
471
|
</a>
|
|
476
472
|
}
|
|
477
473
|
}
|
|
478
474
|
</li>
|
|
479
475
|
}
|
|
480
|
-
@if (model && home) {
|
|
476
|
+
@if (model() && home()) {
|
|
481
477
|
<li [class]="cx('separator')" [pBind]="ptm('separator')" aria-hidden="true">
|
|
482
|
-
@if (!separatorTemplate() && !_separatorTemplate) {
|
|
478
|
+
@if (!separatorTemplate() && !_separatorTemplate()) {
|
|
483
479
|
<svg data-p-icon="chevron-right" [pBind]="ptm('separatorIcon')" />
|
|
484
480
|
}
|
|
485
|
-
<ng-template *ngTemplateOutlet="separatorTemplate() || _separatorTemplate"></ng-template>
|
|
481
|
+
<ng-template *ngTemplateOutlet="separatorTemplate() || _separatorTemplate()"></ng-template>
|
|
486
482
|
</li>
|
|
487
483
|
}
|
|
488
|
-
@for (menuitem of model; track menuitem; let end = $last; let i = $index) {
|
|
484
|
+
@for (menuitem of model(); track menuitem; let end = $last; let i = $index) {
|
|
489
485
|
@if (menuitem.visible !== false) {
|
|
490
486
|
<li
|
|
491
487
|
[class]="cn(cx('item', { menuitem }), menuitem.styleClass)"
|
|
@@ -496,8 +492,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
496
492
|
[pBind]="getPTOptions(menuitem, i, 'item')"
|
|
497
493
|
[pTooltipUnstyled]="unstyled()"
|
|
498
494
|
>
|
|
499
|
-
@if (itemTemplate() || _itemTemplate) {
|
|
500
|
-
<ng-template *ngTemplateOutlet="itemTemplate() || _itemTemplate; context: { $implicit: menuitem }"></ng-template>
|
|
495
|
+
@if (itemTemplate() || _itemTemplate()) {
|
|
496
|
+
<ng-template *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: menuitem }"></ng-template>
|
|
501
497
|
} @else {
|
|
502
498
|
@if (!menuitem?.routerLink) {
|
|
503
499
|
<a
|
|
@@ -512,7 +508,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
512
508
|
[attr.aria-current]="isCurrentPage(i) ? 'page' : undefined"
|
|
513
509
|
[pBind]="getPTOptions(menuitem, i, 'itemLink')"
|
|
514
510
|
>
|
|
515
|
-
@if (!itemTemplate() && !_itemTemplate) {
|
|
511
|
+
@if (!itemTemplate() && !_itemTemplate()) {
|
|
516
512
|
@if (menuitem?.icon) {
|
|
517
513
|
<span [class]="cn(cx('itemIcon'), menuitem?.icon, menuitem?.iconClass)" [ngStyle]="menuitem?.iconStyle" [pBind]="getPTOptions(menuitem, i, 'itemIcon')"></span>
|
|
518
514
|
}
|
|
@@ -524,7 +520,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
524
520
|
}
|
|
525
521
|
}
|
|
526
522
|
@if (menuitem?.badge) {
|
|
527
|
-
<p-badge [
|
|
523
|
+
<p-badge [class]="menuitem?.badgeStyleClass" [value]="menuitem?.badge" [pt]="getPTOptions(menuitem, i, 'pcBadge')" [unstyled]="unstyled()" />
|
|
528
524
|
}
|
|
529
525
|
}
|
|
530
526
|
</a>
|
|
@@ -562,7 +558,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
562
558
|
}
|
|
563
559
|
}
|
|
564
560
|
@if (menuitem?.badge) {
|
|
565
|
-
<p-badge [
|
|
561
|
+
<p-badge [class]="menuitem?.badgeStyleClass" [value]="menuitem?.badge" [pt]="getPTOptions(menuitem, i, 'pcBadge')" [unstyled]="unstyled()" />
|
|
566
562
|
}
|
|
567
563
|
</a>
|
|
568
564
|
}
|
|
@@ -571,10 +567,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
571
567
|
}
|
|
572
568
|
@if (!end && menuitem.visible !== false) {
|
|
573
569
|
<li [class]="cx('separator')" [pBind]="ptm('separator')" aria-hidden="true">
|
|
574
|
-
@if (!separatorTemplate() && !_separatorTemplate) {
|
|
570
|
+
@if (!separatorTemplate() && !_separatorTemplate()) {
|
|
575
571
|
<svg data-p-icon="chevron-right" [pBind]="ptm('separatorIcon')" />
|
|
576
572
|
}
|
|
577
|
-
<ng-template *ngTemplateOutlet="separatorTemplate() || _separatorTemplate"></ng-template>
|
|
573
|
+
<ng-template *ngTemplateOutlet="separatorTemplate() || _separatorTemplate()"></ng-template>
|
|
578
574
|
</li>
|
|
579
575
|
}
|
|
580
576
|
}
|
|
@@ -583,20 +579,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
583
579
|
`,
|
|
584
580
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
585
581
|
encapsulation: ViewEncapsulation.None,
|
|
586
|
-
providers: [BreadCrumbStyle, { provide:
|
|
582
|
+
providers: [BreadCrumbStyle, { provide: PARENT_INSTANCE, useExisting: Breadcrumb }],
|
|
587
583
|
hostDirectives: [Bind]
|
|
588
584
|
}]
|
|
589
|
-
}], propDecorators: { model: [{
|
|
590
|
-
type: Input
|
|
591
|
-
}], style: [{
|
|
592
|
-
type: Input
|
|
593
|
-
}], styleClass: [{
|
|
594
|
-
type: Input
|
|
595
|
-
}], home: [{
|
|
596
|
-
type: Input
|
|
597
|
-
}], homeAriaLabel: [{
|
|
598
|
-
type: Input
|
|
599
|
-
}], onItemClick: [{ type: i0.Output, args: ["onItemClick"] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], separatorTemplate: [{ type: i0.ContentChild, args: ['separator', { isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
585
|
+
}], ctorParameters: () => [], propDecorators: { model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], home: [{ type: i0.Input, args: [{ isSignal: true, alias: "home", required: false }] }], homeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "homeAriaLabel", required: false }] }], onItemClick: [{ type: i0.Output, args: ["onItemClick"] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], separatorTemplate: [{ type: i0.ContentChild, args: ['separator', { isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
600
586
|
class BreadcrumbModule {
|
|
601
587
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: BreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
602
588
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: BreadcrumbModule, imports: [Breadcrumb, SharedModule], exports: [Breadcrumb, SharedModule] });
|