Merge branch 'next/minor' of github.com:Start9Labs/start-os into next/major

This commit is contained in:
Aiden McClelland
2023-11-13 14:59:16 -07:00
1115 changed files with 6871 additions and 1851 deletions

View File

@@ -0,0 +1,19 @@
import { Injectable } from '@angular/core'
import { AbstractTuiValueTransformer, TuiDay } from '@taiga-ui/cdk'
type From = TuiDay | null
type To = string | null
@Injectable()
export class DateTransformerService extends AbstractTuiValueTransformer<
From,
To
> {
fromControlValue(controlValue: To): From {
return controlValue ? TuiDay.jsonParse(controlValue) : null
}
toControlValue(componentValue: From): To {
return componentValue?.toJSON() || null
}
}