@agendize/vue-tools 1.1.4 → 1.2.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[];
@@ -1,4 +1,4 @@
1
- export declare const languages: {
2
- label: string;
3
- value: string;
4
- }[];
1
+ export declare const languages: {
2
+ label: string;
3
+ value: string;
4
+ }[];
@@ -1 +1 @@
1
- export declare function dateToString(date: Date, short?: boolean): string;
1
+ export declare function dateToString(date: Date, short?: boolean): string;
@@ -1,9 +1,9 @@
1
- import { Ref } from "vue";
2
- declare function onPictureUpdated(item: File | undefined, objectDefinition: {
3
- urlPicture: Ref<string | undefined>;
4
- pictureAsData: Ref<string | undefined>;
5
- filePicture: Ref<File | undefined>;
6
- }): void;
7
- declare const toBase64: (file: File) => Promise<string | ArrayBuffer | null>;
8
- declare function readBlobFromUrl(url: string, callback: (data: string) => void): void;
9
- export { toBase64, onPictureUpdated, readBlobFromUrl };
1
+ import { Ref } from "vue";
2
+ declare function onPictureUpdated(item: File | undefined, objectDefinition: {
3
+ urlPicture: Ref<string | undefined>;
4
+ pictureAsData: Ref<string | undefined>;
5
+ filePicture: Ref<File | undefined>;
6
+ }): void;
7
+ declare const toBase64: (file: File) => Promise<string | ArrayBuffer>;
8
+ declare function readBlobFromUrl(url: string, callback: (data: string) => void): void;
9
+ export { toBase64, onPictureUpdated, readBlobFromUrl };
@@ -1,4 +1,10 @@
1
- declare function parseToInt(value: string): number;
2
- declare function formatDate(date?: Date): string;
3
- declare function pad(value: any, size?: number): string;
4
- export { formatDate, pad, parseToInt };
1
+ declare function parseToInt(value: string): number;
2
+ declare function formatDate(date?: Date): string;
3
+ declare function pad(value: any, size?: number): string;
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 };