create design system categories components
This commit is contained in:
parent
2d4161ed40
commit
4a8c7d2a4b
85 changed files with 701 additions and 1 deletions
|
@ -0,0 +1,18 @@
|
|||
<div class="translate-texts">
|
||||
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
|
||||
<!-- delete button from_text-->
|
||||
<button class="delete-button button" (click)="emptyText('fromText')">x</button>
|
||||
<textarea name="from_text" id="from_text" cols="30" rows="10"
|
||||
placeholder=""
|
||||
[(ngModel)]="fromText"></textarea>
|
||||
</div>
|
||||
<div class="column">
|
||||
|
||||
<button class="delete-button button" (click)="emptyText('toText')">x</button>
|
||||
<textarea name="to_text" id="to_text" cols="30" rows="10" [(ngModel)]="toText"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,23 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { TranslateTexts } from './translate-texts';
|
||||
|
||||
describe('TranslateTexts', () => {
|
||||
let component: TranslateTexts;
|
||||
let fixture: ComponentFixture<TranslateTexts>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [TranslateTexts]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(TranslateTexts);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
|
@ -0,0 +1,18 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
|
||||
@Component({
|
||||
selector: 'sae-translate-texts',
|
||||
standalone: true,
|
||||
imports: [FormsModule],
|
||||
templateUrl: './translate-texts.html',
|
||||
styleUrl: './translate-texts.css'
|
||||
})
|
||||
export class TranslateTexts {
|
||||
public fromText: string = ''
|
||||
public toText: 'fromText' | 'toText' | '' = ''
|
||||
|
||||
emptyText(someText: 'fromText' | 'toText') {
|
||||
this[someText] = '';
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue