@agendize/vue-tools 1.1.4 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ export interface ColorDef {
2
+ key: string;
3
+ code: string;
4
+ }
5
+ export declare function generateShadesFromColor(color: string): ColorDef[];
@@ -4,6 +4,6 @@ declare function onPictureUpdated(item: File | undefined, objectDefinition: {
4
4
  pictureAsData: Ref<string | undefined>;
5
5
  filePicture: Ref<File | undefined>;
6
6
  }): void;
7
- declare const toBase64: (file: File) => Promise<string | ArrayBuffer | null>;
7
+ declare const toBase64: (file: File) => Promise<string | ArrayBuffer>;
8
8
  declare function readBlobFromUrl(url: string, callback: (data: string) => void): void;
9
9
  export { toBase64, onPictureUpdated, readBlobFromUrl };
@@ -1,4 +1,10 @@
1
1
  declare function parseToInt(value: string): number;
2
2
  declare function formatDate(date?: Date): string;
3
3
  declare function pad(value: any, size?: number): string;
4
- export { formatDate, pad, parseToInt };
4
+ declare function decodeHtml(html: any): string;
5
+ declare function personToInitials(person?: {
6
+ firstName?: string;
7
+ lastName?: string;
8
+ name?: string;
9
+ }): string;
10
+ export { formatDate, pad, parseToInt, decodeHtml, personToInitials };
@@ -0,0 +1 @@
1
+ export declare function poll<T>(fn: () => Promise<T>, validate: (T: any) => boolean, interval: number, maxAttempts?: number): Promise<unknown>;