07fec02ea1
- Added logo image to assets. - Implemented RTL support styles in rtlSupport.scss for various components including breadcrumb, datatable, and tree node toggle button. chore: configure environment files for production, staging, and development - Created environment.prod.ts for production settings. - Created environment.staging.ts for staging settings. - Created environment.ts for local development settings. feat: define custom theme preset - Added presets.ts to define a custom theme preset using PrimeUIX with specific component styles and semantic colors. chore: set up proxy configuration for local development
37 lines
952 B
TypeScript
37 lines
952 B
TypeScript
import {
|
|
AfterContentInit,
|
|
Component,
|
|
ContentChild,
|
|
ElementRef,
|
|
EventEmitter,
|
|
Input,
|
|
Output,
|
|
} from '@angular/core';
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
import { Button } from 'primeng/button';
|
|
|
|
@Component({
|
|
selector: 'uikit-empty-state',
|
|
standalone: true,
|
|
imports: [CommonModule, Button],
|
|
templateUrl: './uikit-emptystate.component.html',
|
|
})
|
|
export class UikitEmptyStateComponent implements AfterContentInit {
|
|
@ContentChild('cta', { static: false, read: ElementRef })
|
|
ctaContent?: ElementRef;
|
|
hasCtaContent = false;
|
|
|
|
@Input() title: string = 'متاسفانه موردی یافت نشد.';
|
|
@Input() description?: string;
|
|
@Input() icon: string = 'pi pi-database';
|
|
@Input() ctaLabel?: string;
|
|
@Input() showCTA?: boolean = true;
|
|
|
|
@Output() ctaClick = new EventEmitter<void>();
|
|
|
|
ngAfterContentInit() {
|
|
this.hasCtaContent = !!this.ctaContent;
|
|
}
|
|
}
|