mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-25 16:52:17 +00:00
* add custom validator for redirect inputs * change http pattern, i18n * throw out deprecated usergrant functions * remove deprecation service * show docs in app detail * reorder data promises * show redirect desc in app detail * custom validator * grant search filters * rm animations * add validation to app detail * user grant udpate * rm grantid from update req * fix project member guard * fix hasrole directive * show validation errors, i18n * fix router link from org members * navitem padding * mobile layout * policy grid mobile layout * rm unused background * lint * add stylelinter add to pipeline * update stylelint rules * lint unknown rule * disable enable rules * lint * table style lint * table classes * fix stylelinter rule, lint * overflow fix member detail * common detail page * user create, password, project grant detail clnup * move meta styles * lint * password policy indicator * lint * fix org create * common component for complexity view * lint * user grant filter * 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/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]> Co-authored-by: Florian Forster <[email protected]>
156 lines
4.1 KiB
TypeScript
156 lines
4.1 KiB
TypeScript
import {
|
|
animate,
|
|
animateChild,
|
|
AnimationTriggerMetadata,
|
|
group,
|
|
query,
|
|
stagger,
|
|
style,
|
|
transition,
|
|
trigger,
|
|
} from '@angular/animations';
|
|
|
|
export const toolbarAnimation: AnimationTriggerMetadata =
|
|
trigger('toolbar', [
|
|
transition(':enter', [
|
|
style({
|
|
transform: 'translateY(-100%)',
|
|
opacity: 0,
|
|
}),
|
|
animate(
|
|
'.2s ease-out',
|
|
style({
|
|
transform: 'translateY(0%)',
|
|
opacity: 1,
|
|
}),
|
|
),
|
|
]),
|
|
]);
|
|
|
|
export const accountCard: AnimationTriggerMetadata = trigger('accounts', [
|
|
transition(':enter', [
|
|
style({
|
|
transform: 'scale(.9) translateY(-10%)',
|
|
height: '200px',
|
|
opacity: 0,
|
|
}),
|
|
animate(
|
|
'.1s ease-out',
|
|
style({
|
|
transform: 'scale(1) translateY(0%)',
|
|
height: '*',
|
|
opacity: 1,
|
|
}),
|
|
),
|
|
]),
|
|
]);
|
|
|
|
export const navAnimations: Array<AnimationTriggerMetadata> = [
|
|
trigger('navAnimation', [
|
|
transition('* => *', [
|
|
query('@navitem', stagger('50ms', animateChild()), { optional: true }),
|
|
]),
|
|
]),
|
|
trigger('navitem', [
|
|
transition(':enter', [
|
|
style({
|
|
opacity: 0,
|
|
}),
|
|
animate(
|
|
'.0s',
|
|
style({
|
|
opacity: 1,
|
|
}),
|
|
),
|
|
]),
|
|
transition(':leave', [
|
|
style({
|
|
opacity: 1,
|
|
}),
|
|
animate(
|
|
'.0s',
|
|
style({
|
|
opacity: 0,
|
|
}),
|
|
),
|
|
]),
|
|
]),
|
|
];
|
|
|
|
export const routeAnimations: AnimationTriggerMetadata = trigger('routeAnimations', [
|
|
transition('HomePage => AddPage', [
|
|
style({ transform: 'translateX(100%)', opacity: 0.5 }),
|
|
animate('250ms ease-out', style({ transform: 'translateX(0%)', opacity: 1 })),
|
|
]),
|
|
transition('AddPage => HomePage',
|
|
[animate('250ms', style({ transform: 'translateX(100%)', opacity: 0.5 }))],
|
|
),
|
|
transition('HomePage => DetailPage', [
|
|
query(':enter, :leave', style({ position: 'absolute', left: 0, right: 0 }), {
|
|
optional: true,
|
|
}),
|
|
group([
|
|
query(
|
|
':enter',
|
|
[
|
|
style({
|
|
transform: 'translateX(20%)',
|
|
opacity: 0.5,
|
|
}),
|
|
animate(
|
|
'.35s ease-in',
|
|
style({
|
|
transform: 'translateX(0%)',
|
|
opacity: 1,
|
|
}),
|
|
),
|
|
],
|
|
{
|
|
optional: true,
|
|
},
|
|
),
|
|
query(
|
|
':leave',
|
|
[style({ opacity: 1, width: '100%' }), animate('.35s ease-out', style({ opacity: 0 }))],
|
|
{
|
|
optional: true,
|
|
},
|
|
),
|
|
]),
|
|
]),
|
|
transition('DetailPage => HomePage', [
|
|
query(':enter, :leave', style({ position: 'absolute', left: 0, right: 0 }), {
|
|
optional: true,
|
|
}),
|
|
group([
|
|
query(
|
|
':enter',
|
|
[
|
|
style({
|
|
opacity: 0,
|
|
}),
|
|
animate(
|
|
'.35s ease-out',
|
|
style({
|
|
opacity: 1,
|
|
}),
|
|
),
|
|
],
|
|
{
|
|
optional: true,
|
|
},
|
|
),
|
|
query(
|
|
':leave',
|
|
[
|
|
style({ width: '100%', transform: 'translateX(0%)' }),
|
|
animate('.35s ease-in', style({ transform: 'translateX(30%)', opacity: 0 })),
|
|
],
|
|
{
|
|
optional: true,
|
|
},
|
|
),
|
|
]),
|
|
]),
|
|
]);
|