| undefined;
+ /**
+ * template of the content
+ * @group Templates
+ */
+ @ContentChild('content') contentTemplate: TemplateRef
| undefined;
@ViewChild('mask') mask: ElementRef | undefined;
@@ -91,8 +94,6 @@ export class BlockUI extends BaseComponent implements AfterViewInit, OnDestroy {
animationEndListener: VoidFunction | null | undefined;
- contentTemplate: TemplateRef | undefined;
-
_componentStyle = inject(BlockUiStyle);
constructor() {
@@ -108,20 +109,6 @@ export class BlockUI extends BaseComponent implements AfterViewInit, OnDestroy {
}
}
- ngAfterContentInit() {
- (this.templates as QueryList).forEach((item) => {
- switch (item.getType()) {
- case 'content':
- this.contentTemplate = item.template;
- break;
-
- default:
- this.contentTemplate = item.template;
- break;
- }
- });
- }
-
block() {
if (isPlatformBrowser(this.platformId)) {
this._blocked = true;
@@ -175,8 +162,7 @@ export class BlockUI extends BaseComponent implements AfterViewInit, OnDestroy {
}
@NgModule({
- imports: [CommonModule],
+ imports: [BlockUI],
exports: [BlockUI],
- declarations: [BlockUI],
})
export class BlockUIModule {}
diff --git a/src/app/components/blockui/public_api.ts b/src/app/components/blockui/public_api.ts
index 7ac2afa28d8..8ca468a8eb0 100644
--- a/src/app/components/blockui/public_api.ts
+++ b/src/app/components/blockui/public_api.ts
@@ -1,2 +1,3 @@
export * from './blockui';
export * from './blockui.interface';
+export * from './style/blockuistyle';
diff --git a/src/app/components/breadcrumb/breadcrumb.ts b/src/app/components/breadcrumb/breadcrumb.ts
index c0e73c09736..f88fa36a4a4 100755
--- a/src/app/components/breadcrumb/breadcrumb.ts
+++ b/src/app/components/breadcrumb/breadcrumb.ts
@@ -3,6 +3,7 @@ import {
AfterContentInit,
ChangeDetectionStrategy,
Component,
+ ContentChild,
ContentChildren,
EventEmitter,
inject,
@@ -11,7 +12,7 @@ import {
Output,
QueryList,
TemplateRef,
- ViewEncapsulation,
+ ViewEncapsulation
} from '@angular/core';
import { Router, RouterModule } from '@angular/router';
import { MenuItem, PrimeTemplate, SharedModule } from 'primeng/api';
@@ -21,12 +22,15 @@ import { TooltipModule } from 'primeng/tooltip';
import { BreadcrumbItemClickEvent } from './breadcrumb.interface';
import { BreadCrumbStyle } from './style/breadcrumbstyle';
import { BaseComponent } from 'primeng/basecomponent';
+
/**
* Breadcrumb provides contextual information about page hierarchy.
* @group Components
*/
@Component({
selector: 'p-breadcrumb',
+ standalone: true,
+ imports: [CommonModule, RouterModule, TooltipModule, ChevronRightIcon, HomeIcon],
template: `