mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 21:52:54 +00:00
* refreshtable component * project grant refresh table * project role refresh, user grant, i18n * lint * auth user mfa table * auth mfa table * rm unused 404 page, add mgmt mfa table * change light accent color * add actions to mfa table * user detail mfa table * clear selection on refresh, bind data length * member table * fix padding mfa table * Update console/src/assets/i18n/en.json Co-authored-by: Florian Forster <[email protected]> * Update console/src/assets/i18n/en.json Co-authored-by: Florian Forster <[email protected]> * z-index, new colors * new senf color * create stepper * app create stepper * i18n * i18n sections, header titles * lint * add pro mode * main contributor component * drop project members shared module * project detail members * org contributors, iam contributors * invert card and background colors in light design * changes card design * lighten meta background * account card radius * fix imports, global user email link * move spinner to refresh-table component * Update console/src/assets/i18n/de.json Co-authored-by: Florian Forster <[email protected]> * Update console/src/assets/i18n/de.json Co-authored-by: Florian Forster <[email protected]> * Update console/src/assets/i18n/de.json Co-authored-by: Florian Forster <[email protected]> * Update console/src/assets/i18n/en.json Co-authored-by: Florian Forster <[email protected]> * Update console/src/assets/i18n/de.json Co-authored-by: Florian Forster <[email protected]> * Update console/src/assets/i18n/de.json Co-authored-by: Florian Forster <[email protected]> * Update console/src/assets/i18n/en.json Co-authored-by: Florian Forster <[email protected]> * Update console/src/assets/i18n/en.json Co-authored-by: Florian Forster <[email protected]> * Update console/src/assets/i18n/en.json Co-authored-by: Florian Forster <[email protected]> * light background on light design * Update console/src/assets/i18n/de.json Co-authored-by: Florian Forster <[email protected]> * Update console/src/assets/i18n/de.json Co-authored-by: Florian Forster <[email protected]> Co-authored-by: Florian Forster <[email protected]>
48 lines
1.5 KiB
TypeScript
48 lines
1.5 KiB
TypeScript
import { animate, animation, keyframes, style, transition, trigger, useAnimation } from '@angular/animations';
|
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
|
|
const rotate = animation([
|
|
animate(
|
|
'{{time}} cubic-bezier(0.785, 0.135, 0.15, 0.86)',
|
|
keyframes([
|
|
style({
|
|
transform: 'rotate(0deg)',
|
|
}),
|
|
style({
|
|
transform: 'rotate(360deg)',
|
|
}),
|
|
]),
|
|
),
|
|
]);
|
|
@Component({
|
|
selector: 'app-refresh-table',
|
|
templateUrl: './refresh-table.component.html',
|
|
styleUrls: ['./refresh-table.component.scss'],
|
|
animations: [
|
|
trigger('rotate', [
|
|
transition('* => *', [useAnimation(rotate, { params: { time: '1s' } })]),
|
|
]),
|
|
],
|
|
})
|
|
export class RefreshTableComponent implements OnInit {
|
|
@Input() public selection: SelectionModel<any> = new SelectionModel<any>(true, []);
|
|
@Input() public dataSize: number = 0;
|
|
@Input() public emitRefreshAfterTimeoutInMs: number = 0;
|
|
@Input() public loading: boolean = false;
|
|
@Output() public refreshed: EventEmitter<void> = new EventEmitter();
|
|
|
|
ngOnInit(): void {
|
|
if (this.emitRefreshAfterTimeoutInMs) {
|
|
setTimeout(() => {
|
|
this.emitRefresh();
|
|
}, this.emitRefreshAfterTimeoutInMs);
|
|
}
|
|
}
|
|
|
|
emitRefresh(): void {
|
|
this.selection.clear();
|
|
return this.refreshed.emit();
|
|
}
|
|
}
|