@agendize/vue-tools 1.10.0 → 1.12.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.
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/presentation/component/form-builder/View.vue.d.ts +31 -0
- package/dist/presentation/component/form-builder/View.vue.d.ts.map +1 -0
- package/dist/presentation/component/form-builder/viewModel.d.ts +26 -0
- package/dist/presentation/component/form-builder/viewModel.d.ts.map +1 -0
- package/dist/presentation/component/qr-code/View.vue.d.ts +0 -2
- package/dist/presentation/component/qr-code/View.vue.d.ts.map +1 -1
- package/dist/presentation/component/share/View.vue.d.ts.map +1 -1
- package/dist/utils/colorUtils.d.ts +1 -1
- package/dist/utils/colorUtils.d.ts.map +1 -1
- package/dist/utils/date.d.ts +3 -0
- package/dist/utils/date.d.ts.map +1 -1
- package/dist/utils/file.d.ts +2 -1
- package/dist/utils/file.d.ts.map +1 -1
- package/dist/utils/format.d.ts +1 -7
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/lazy.d.ts.map +1 -1
- package/dist/utils/poll.d.ts +1 -1
- package/dist/utils/poll.d.ts.map +1 -1
- package/dist/utils/string.d.ts +9 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/web.d.ts +1 -0
- package/dist/utils/web.d.ts.map +1 -1
- package/dist/vue-tools.es.js +3479 -3273
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useBlocState } from "./bloc/useBlocState";
|
|
2
2
|
import { dateToString } from "./utils/date";
|
|
3
|
-
import { onPictureUpdated, readBlobFromUrl, toBase64 } from "./utils/file";
|
|
4
|
-
import {
|
|
3
|
+
import { onPictureUpdated, readBlobFromUrl, toBase64, downloadFile } from "./utils/file";
|
|
4
|
+
import { parseToInt, personToInitials, getDurationLabel } from "./utils/format";
|
|
5
5
|
import QRCode from "./presentation/component/qr-code/View.vue";
|
|
6
6
|
import Share from "./presentation/component/share/View.vue";
|
|
7
7
|
import { ShareMode } from "./presentation/component/share/viewModel";
|
|
@@ -10,13 +10,18 @@ import { createApi, createLogger, useApi, useLogger, createPublicApi, usePublicA
|
|
|
10
10
|
import { poll } from "./utils/poll";
|
|
11
11
|
import { getDomain } from "./utils/web";
|
|
12
12
|
import { hasGlobalSchedulingRight } from "./utils/right";
|
|
13
|
+
import FormBuilder from "./presentation/component/form-builder/View.vue";
|
|
14
|
+
import { formEntityToFormFields } from "./presentation/component/form-builder/viewModel";
|
|
13
15
|
export * from './bloc/Bloc';
|
|
14
16
|
export * from './utils/colorUtils';
|
|
15
|
-
export { useBlocState, dateToString, QRCode, Share, ShareMode, onPictureUpdated, readBlobFromUrl,
|
|
17
|
+
export { useBlocState, dateToString, FormBuilder, QRCode, Share, ShareMode, onPictureUpdated, readBlobFromUrl, parseToInt, toBase64, downloadFile, personToInitials, getDurationLabel };
|
|
16
18
|
export { createStore, useAccountStore };
|
|
17
19
|
export { createApi, createLogger, useApi, useLogger, createPublicApi, usePublicApi };
|
|
18
|
-
export { poll, getDomain };
|
|
20
|
+
export { poll, getDomain, formEntityToFormFields };
|
|
19
21
|
export { hasGlobalSchedulingRight };
|
|
20
22
|
export * from './utils/constants';
|
|
21
23
|
export * from './utils/lazy';
|
|
24
|
+
export * from './utils/string';
|
|
25
|
+
export * from './utils/web';
|
|
26
|
+
export * from './utils/date';
|
|
22
27
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAC,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAC,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,YAAY,EAAC,MAAM,cAAc,CAAA;AACtF,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,gBAAgB,CAAA;AAC7E,OAAO,MAAM,MAAM,2CAA2C,CAAA;AAC9D,OAAO,KAAK,MAAM,yCAAyC,CAAC;AAC5D,OAAO,EAAC,SAAS,EAAC,MAAM,0CAA0C,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAC,MAAM,iBAAiB,CAAA;AAC1G,OAAO,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,WAAW,MAAM,gDAAgD,CAAA;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAA;AAExF,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAC,CAAA;AACrL,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAC,CAAA;AACnF,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PublicApi, Logger, FormSubmitEntity } from "@agendize/js-public-api";
|
|
2
|
+
interface Props {
|
|
3
|
+
api: PublicApi;
|
|
4
|
+
logger?: Logger;
|
|
5
|
+
formId: string;
|
|
6
|
+
fieldValues?: Map<string, string | string[] | null>;
|
|
7
|
+
cypherParams?: string | string[] | null;
|
|
8
|
+
showError?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_DefinePropsToOptions<Props>, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
updateFormResult: (result: FormSubmitEntity) => void;
|
|
12
|
+
} & {
|
|
13
|
+
onError: (code: string) => void;
|
|
14
|
+
} & {
|
|
15
|
+
goToHome: () => void;
|
|
16
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_DefinePropsToOptions<Props>>> & {
|
|
17
|
+
onOnError?: (code: string) => any;
|
|
18
|
+
onUpdateFormResult?: (result: FormSubmitEntity) => any;
|
|
19
|
+
onGoToHome?: () => any;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
declare type __VLS_DefinePropsToOptions<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=View.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"View.vue.d.ts","sourceRoot":"","sources":["../../../../src/presentation/component/form-builder/View.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,SAAS,EAAE,MAAM,EAAE,gBAAgB,EAA2C,MAAM,yBAAyB,CAAC;AAGtH,UAAU,KAAK;IACb,GAAG,EAAE,SAAS,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,GAAI,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;IACrD,YAAY,CAAC,EAAE,MAAM,GAAI,MAAM,EAAE,GAAG,IAAI,CAAA;IACxC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;;;;;;;;;;;;AA0BD,wBAkFG;AACH,aAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,aAAK,0BAA0B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FieldEntity, PublicApi } from "@agendize/js-public-api";
|
|
2
|
+
import { Ref } from "vue";
|
|
3
|
+
import { FormField } from "@agendize/design-system";
|
|
4
|
+
export declare function FormViewModel(emitter: Function, api: PublicApi, formId: string, fieldValues?: Map<string, string | string[] | null>, cypherParams?: string | string[] | null): FormViewModelType;
|
|
5
|
+
export declare function formEntityToFormFields(fieldEntities: FieldEntity[]): any[];
|
|
6
|
+
interface FormViewModelType {
|
|
7
|
+
welcomeMessage: Ref<string>;
|
|
8
|
+
formName: Ref<string>;
|
|
9
|
+
fields: Ref<FormField[]>;
|
|
10
|
+
dataConsentValue: Ref<boolean>;
|
|
11
|
+
marketingConsentValue: Ref<boolean>;
|
|
12
|
+
dataConsentMessage: Ref<string>;
|
|
13
|
+
marketingConsentMessage: Ref<string>;
|
|
14
|
+
formSubmit: () => void;
|
|
15
|
+
validateForm: (data: {
|
|
16
|
+
isValid: boolean;
|
|
17
|
+
values: {
|
|
18
|
+
id: string;
|
|
19
|
+
isValid: boolean;
|
|
20
|
+
values: any;
|
|
21
|
+
}[];
|
|
22
|
+
}) => void;
|
|
23
|
+
isFieldsValid: Ref<boolean>;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=viewModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewModel.d.ts","sourceRoot":"","sources":["../../../../src/presentation/component/form-builder/viewModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAgC,SAAS,EAA8B,MAAM,yBAAyB,CAAC;AAC1H,OAAO,EAA2B,GAAG,EAAC,MAAM,KAAK,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAElD,wBAAgB,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,GAAG,iBAAiB,CA6HhM;AAwBD,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,WAAW,EAAE,SA0BlE;AAED,UAAU,iBAAiB;IACvB,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACrB,MAAM,EAAE,GAAG,CAAC,SAAS,EAAE,CAAC,CAAA;IACxB,gBAAgB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAC9B,qBAAqB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACnC,kBAAkB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC/B,uBAAuB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACpC,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,YAAY,EAAE,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,OAAO,CAAC;YAAC,MAAM,EAAE,GAAG,CAAA;SAAE,EAAE,CAAA;KAAE,KAAK,IAAI,CAAA;IAC3G,aAAa,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CAC9B"}
|
|
@@ -19,7 +19,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
};
|
|
20
20
|
outlineValue: {
|
|
21
21
|
type: import("vue").PropType<string>;
|
|
22
|
-
required: true;
|
|
23
22
|
};
|
|
24
23
|
download: {
|
|
25
24
|
type: import("vue").PropType<boolean>;
|
|
@@ -50,7 +49,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
49
|
};
|
|
51
50
|
outlineValue: {
|
|
52
51
|
type: import("vue").PropType<string>;
|
|
53
|
-
required: true;
|
|
54
52
|
};
|
|
55
53
|
download: {
|
|
56
54
|
type: import("vue").PropType<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"View.vue.d.ts","sourceRoot":"","sources":["../../../../src/presentation/component/qr-code/View.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"View.vue.d.ts","sourceRoot":"","sources":["../../../../src/presentation/component/qr-code/View.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EA,wBAmDG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"View.vue.d.ts","sourceRoot":"","sources":["../../../../src/presentation/component/share/View.vue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"View.vue.d.ts","sourceRoot":"","sources":["../../../../src/presentation/component/share/View.vue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDtC,wBA8GG"}
|
|
@@ -2,5 +2,5 @@ export interface ColorDef {
|
|
|
2
2
|
key: string;
|
|
3
3
|
code: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function generateShadesFromColor(color: string): ColorDef[];
|
|
5
|
+
export declare function generateShadesFromColor(color: string, base?: string): ColorDef[];
|
|
6
6
|
//# sourceMappingURL=colorUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorUtils.d.ts","sourceRoot":"","sources":["../../src/utils/colorUtils.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACrB,GAAG,EAAC,MAAM,CAAC;IACX,IAAI,EAAC,MAAM,CAAA;CACd;AAED,wBAAgB,uBAAuB,CAAE,KAAK,EAAE,MAAM,GAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"colorUtils.d.ts","sourceRoot":"","sources":["../../src/utils/colorUtils.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACrB,GAAG,EAAC,MAAM,CAAC;IACX,IAAI,EAAC,MAAM,CAAA;CACd;AAED,wBAAgB,uBAAuB,CAAE,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,MAAoB,GAAE,QAAQ,EAAE,CAyB7F"}
|
package/dist/utils/date.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export declare function dateToString(date: Date, short?: boolean): string;
|
|
2
|
+
export declare function formatDate(date?: Date): string;
|
|
3
|
+
export declare function isToday(date: Date): boolean;
|
|
4
|
+
export declare function getWeekNumber(date: Date): number;
|
|
2
5
|
//# sourceMappingURL=date.d.ts.map
|
package/dist/utils/date.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,GAAE,OAAe,GAAG,MAAM,CAcvE"}
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,GAAE,OAAe,GAAG,MAAM,CAcvE;AAED,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAK9C;AAeD,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAG3C;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAIhD"}
|
package/dist/utils/file.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ declare function onPictureUpdated(item: File | undefined, objectDefinition: {
|
|
|
6
6
|
}): void;
|
|
7
7
|
declare const toBase64: (file: File) => Promise<string | ArrayBuffer>;
|
|
8
8
|
declare function readBlobFromUrl(url: string, callback: (data: string) => void): void;
|
|
9
|
-
|
|
9
|
+
declare function downloadFile(filename: string, data: string): void;
|
|
10
|
+
export { toBase64, onPictureUpdated, readBlobFromUrl, downloadFile };
|
|
10
11
|
//# sourceMappingURL=file.d.ts.map
|
package/dist/utils/file.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/utils/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB,iBAAS,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,EACtB,gBAAgB,EAAE;IAAE,UAAU,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAAC,aAAa,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAAC,WAAW,EAAE,GAAG,CAAC,IAAI,GAAG,SAAS,CAAC,CAAA;CAAE,QAc9J;AAED,QAAA,MAAM,QAAQ,SAAU,IAAI,kCAK1B,CAAC;AAEH,iBAAS,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,QAsBrE;AAED,OAAO,EAAC,QAAQ,EAAE,gBAAgB,EAAE,eAAe,EAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/utils/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB,iBAAS,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,EACtB,gBAAgB,EAAE;IAAE,UAAU,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAAC,aAAa,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAAC,WAAW,EAAE,GAAG,CAAC,IAAI,GAAG,SAAS,CAAC,CAAA;CAAE,QAc9J;AAED,QAAA,MAAM,QAAQ,SAAU,IAAI,kCAK1B,CAAC;AAEH,iBAAS,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,QAsBrE;AAED,iBAAS,YAAY,CAAC,QAAQ,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,QAgBjD;AAED,OAAO,EAAC,QAAQ,EAAE,gBAAgB,EAAE,eAAe,EAAC,YAAY,EAAC,CAAA"}
|
package/dist/utils/format.d.ts
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
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 isStringIncludeInList(stringsToSearchIn: (string | undefined)[], stringToSearch?: string, escapeAccent?: boolean, escapeCase?: boolean): boolean;
|
|
5
|
-
declare function isStringIncludeIn(stringToSearchIn?: string, stringToSearch?: string, escapeAccent?: boolean, escapeCase?: boolean): boolean;
|
|
6
|
-
declare function normaliseStringWithoutAccent(label?: string): string;
|
|
7
|
-
declare function decodeHtml(html?: string): string;
|
|
8
2
|
declare function personToInitials(person?: {
|
|
9
3
|
firstName?: string;
|
|
10
4
|
lastName?: string;
|
|
11
5
|
name?: string;
|
|
12
6
|
}): string;
|
|
13
7
|
declare function getDurationLabel(t: any, duration?: number): any;
|
|
14
|
-
export {
|
|
8
|
+
export { parseToInt, personToInitials, getDurationLabel };
|
|
15
9
|
//# sourceMappingURL=format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,UAMhC;AAED,iBAAS,
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,UAMhC;AAED,iBAAS,gBAAgB,CAAC,MAAM,CAAC,EAAG;IAAE,SAAS,CAAC,EAAC,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAC,MAAM,CAAC;IAAC,IAAI,CAAC,EAAC,MAAM,CAAA;CAAC,GAAE,MAAM,CAO/F;AAED,iBAAS,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,MAAM,OA+BlD;AAID,OAAO,EAAC,UAAU,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,CAAA"}
|
package/dist/utils/lazy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/utils/lazy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,SAAS,EAAuB,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/utils/lazy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,SAAS,EAAuB,MAAM,KAAK,CAAC;AAE1E,MAAM,WAAW,YAAY;IAAE,OAAO,EAAE,SAAS,CAAE;IAAC,KAAK,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAC,MAAM,CAAC;IAAC,OAAO,CAAC,EAAC,MAAM,CAAA;CAAC;AAQrG,wBAAgB,+BAA+B,CAAC,EAAE,EAAE,oBAAoB,CAAC,GAAG,CAAC,EAC7B,OAAO,GAAE,YAA6B,OAQrF"}
|
package/dist/utils/poll.d.ts
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* @param maxAttempts Nombre maximum de tentative de polling suite à une erreur de validation
|
|
8
8
|
* @param mustStopPoll Permet de stopper le polling (à la différence de la méthode validate, ici le polling est stoppé avant l'appel à la méthode de polling)
|
|
9
9
|
*/
|
|
10
|
-
export declare function poll<T>(fn: () => Promise<T>, validate: (
|
|
10
|
+
export declare function poll<T>(fn: () => Promise<T>, validate: (arg: T) => boolean, interval: number, maxAttempts?: number, mustStopPoll?: () => boolean): Promise<unknown>;
|
|
11
11
|
//# sourceMappingURL=poll.d.ts.map
|
package/dist/utils/poll.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../src/utils/poll.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAsB,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../src/utils/poll.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAsB,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,OAAO,oBA4BtJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function capitalize(data?: string, suffix?: string): string;
|
|
2
|
+
export declare function isStringIncludeInList(stringsToSearchIn: (string | undefined)[], stringToSearch?: string, escapeAccent?: boolean, escapeCase?: boolean): boolean;
|
|
3
|
+
export declare function isStringIncludeIn(stringToSearchIn?: string, stringToSearch?: string, escapeAccent?: boolean, escapeCase?: boolean): boolean;
|
|
4
|
+
export declare function normaliseStringWithoutAccent(label?: string): string;
|
|
5
|
+
export declare function sortByString(fieldGetter: (o: any) => string, options?: {
|
|
6
|
+
escapeAccent: boolean;
|
|
7
|
+
escapeCase: boolean;
|
|
8
|
+
}): (a: any, b: any) => number;
|
|
9
|
+
//# sourceMappingURL=string.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/utils/string.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED,wBAAgB,qBAAqB,CAAE,iBAAiB,EAAC,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,EAAC,cAAc,CAAC,EAAE,MAAM,EAAE,YAAY,GAAC,OAAc,EAAE,UAAU,GAAC,OAAa,GAAG,OAAO,CAEvK;AAED,wBAAgB,iBAAiB,CAAE,gBAAgB,CAAC,EAAC,MAAM,EAAC,cAAc,CAAC,EAAE,MAAM,EAAE,YAAY,GAAC,OAAc,EAAE,UAAU,GAAC,OAAa,GAAG,OAAO,CAWnJ;AAeD,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAC,MAAM,GAAG,MAAM,CAKlE;AAED,wBAAgB,YAAY,CAAC,WAAW,EAAE,CAAC,CAAC,EAAC,GAAG,KAAK,MAAM,EAAE,OAAO,GAAE;IAAE,YAAY,EAAC,OAAO,CAAE;IAAC,UAAU,EAAC,OAAO,CAAA;CAA4C,GAAK,CAAC,CAAC,EAAC,GAAG,EAAE,CAAC,EAAC,GAAG,KAAK,MAAM,CAMzL"}
|
package/dist/utils/web.d.ts
CHANGED
package/dist/utils/web.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../src/utils/web.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,gBAAgB,GAAE,OAAe,UASvE"}
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../src/utils/web.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,gBAAgB,GAAE,OAAe,UASvE;AAED,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAC,MAAM,GAAE,MAAM,CAO9C"}
|