mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
- ✨ **Feature**: Added checklist question type for return process - ✨ **Feature**: Implemented checklist question component - 🛠️ **Refactor**: Updated return process service to handle checklist answers - 📚 **Docs**: Added schemas for checklist answers and return details - 🧪 **Test**: Updated tests for new checklist functionality
20 lines
515 B
TypeScript
20 lines
515 B
TypeScript
import { Component, computed, contentChild, input } from '@angular/core';
|
|
import { NgControl } from '@angular/forms';
|
|
|
|
@Component({
|
|
selector: 'ui-textarea',
|
|
templateUrl: './textarea.component.html',
|
|
host: { '[class]': '["ui-textarea", controlEmptyClass()]' },
|
|
})
|
|
export class TextareaComponent {
|
|
label = input<string>();
|
|
|
|
ngControl = contentChild(NgControl);
|
|
|
|
controlEmptyClass = computed(() => {
|
|
return this.ngControl()?.value
|
|
? 'ui-textarea__not-empty'
|
|
: 'ui-textarea__empty';
|
|
});
|
|
}
|