8104f1b7a7
- Updated app.layout.component.html to include start, center, and end templates for the topbar. - Modified app.layout.component.ts to manage new template references and added isFullPage getter. - Refactored app.topbar.component.html to utilize new templates and improved layout structure. - Enhanced app.topbar.component.ts to accept new input properties for templates. - Updated layout.service.ts to manage full-page state and new topbar slots. - Added new payment bridge services for POS functionality. - Introduced greater validator for form validation. - Improved dialog component to support mobile drawer and responsive design. - Updated styles for better mobile support and layout adjustments. - Added new main menu sidebar for POS with dynamic content.
27 lines
626 B
TypeScript
27 lines
626 B
TypeScript
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
import { Button } from 'primeng/button';
|
|
|
|
@Component({
|
|
selector: 'app-form-footer-actions',
|
|
templateUrl: './form-footer-actions.component.html',
|
|
imports: [Button],
|
|
})
|
|
export class FormFooterActionsComponent {
|
|
@Input() submitLabel = 'تایید';
|
|
@Input() cancelLabel = 'لغو';
|
|
@Input() loading = false;
|
|
@Input() disabled = false;
|
|
@Output() onSubmit = new EventEmitter<void>();
|
|
@Output() onCancel = new EventEmitter<void>();
|
|
|
|
constructor() {}
|
|
|
|
submit() {
|
|
this.onSubmit.emit();
|
|
}
|
|
|
|
cancel() {
|
|
this.onCancel.emit();
|
|
}
|
|
}
|