@agendize/vue-tools 1.1.2 → 1.1.3
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/bloc/Bloc.d.ts +11 -11
- package/dist/bloc/useBlocState.d.ts +3 -3
- package/dist/index.d.ts +10 -10
- package/dist/presentation/component/qr-code/View.vue.d.ts +69 -69
- package/dist/presentation/locales/index.d.ts +3 -3
- package/dist/store/accountStore.d.ts +10 -10
- package/dist/style.css +1 -1
- package/dist/utils/constants.d.ts +4 -4
- package/dist/utils/date.d.ts +1 -1
- package/dist/utils/file.d.ts +9 -9
- package/dist/utils/format.d.ts +4 -4
- package/dist/vue-tools.es.js +12 -11
- package/dist/vue-tools.umd.js +2 -2
- package/package.json +61 -61
|
@@ -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
|
+
}[];
|
package/dist/utils/date.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function dateToString(date: Date, short?: boolean): string;
|
|
1
|
+
export declare function dateToString(date: Date, short?: boolean): string;
|
package/dist/utils/file.d.ts
CHANGED
|
@@ -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 | null>;
|
|
8
|
+
declare function readBlobFromUrl(url: string, callback: (data: string) => void): void;
|
|
9
|
+
export { toBase64, onPictureUpdated, readBlobFromUrl };
|
package/dist/utils/format.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
|
+
export { formatDate, pad, parseToInt };
|
package/dist/vue-tools.es.js
CHANGED
|
@@ -7624,7 +7624,7 @@ Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,
|
|
|
7624
7624
|
}
|
|
7625
7625
|
},
|
|
7626
7626
|
widget: {
|
|
7627
|
-
title: "Faites
|
|
7627
|
+
title: "Faites-vous conna\xEEtre",
|
|
7628
7628
|
link: {
|
|
7629
7629
|
title: "Partager le lien vers le widget",
|
|
7630
7630
|
copy: "Le lien est copi\xE9"
|
|
@@ -7840,7 +7840,7 @@ Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,
|
|
|
7840
7840
|
},
|
|
7841
7841
|
"qr-code-modal": {
|
|
7842
7842
|
title: "Partager votre widget",
|
|
7843
|
-
body: "Vos clients peuvent acc\xE9der au widget de l\u2019\xE9tablissement en scannant le QR code. Votre QR code n\
|
|
7843
|
+
body: "Vos clients peuvent acc\xE9der au widget de l\u2019\xE9tablissement en scannant le QR code. Votre QR code n\u2019expirera pas dans le temps sauf si vous supprimez l\u2019\xE9tablissement."
|
|
7844
7844
|
},
|
|
7845
7845
|
menu: {
|
|
7846
7846
|
burger: {
|
|
@@ -8181,16 +8181,17 @@ Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,
|
|
|
8181
8181
|
},
|
|
8182
8182
|
"staff-details": {
|
|
8183
8183
|
new: "Nouveau collaborateur",
|
|
8184
|
-
title:
|
|
8185
|
-
label: "Titre",
|
|
8186
|
-
placeholder: "@:common.content.none"
|
|
8187
|
-
},
|
|
8184
|
+
"page-title": "@:settings.staff-details.new",
|
|
8188
8185
|
subTitle: "Les collaborateurs sont les personnes en charge des services.",
|
|
8189
8186
|
action: {
|
|
8190
8187
|
back: "@:common.action.back-to-list"
|
|
8191
8188
|
},
|
|
8192
8189
|
clone: "Duplication : {lastName} {firstName}",
|
|
8193
8190
|
"save-success": "Les informations du collaborateur ont bien \xE9t\xE9 enregistr\xE9es",
|
|
8191
|
+
title: {
|
|
8192
|
+
label: "Titre",
|
|
8193
|
+
placeholder: "@:common.content.none"
|
|
8194
|
+
},
|
|
8194
8195
|
titles: {
|
|
8195
8196
|
none: "@:common.content.none",
|
|
8196
8197
|
mr: "Monsieur",
|
|
@@ -8683,7 +8684,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8683
8684
|
};
|
|
8684
8685
|
}
|
|
8685
8686
|
});
|
|
8686
|
-
var View = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
8687
|
+
var View = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6a57471e"]]);
|
|
8687
8688
|
var Ul = Object.defineProperty;
|
|
8688
8689
|
var Hl = (s2, e2, t2) => e2 in s2 ? Ul(s2, e2, { enumerable: true, configurable: true, writable: true, value: t2 }) : s2[e2] = t2;
|
|
8689
8690
|
var o = (s2, e2, t2) => (Hl(s2, typeof e2 != "symbol" ? e2 + "" : e2, t2), t2);
|
|
@@ -19240,11 +19241,11 @@ const useAccountStore = defineStore({
|
|
|
19240
19241
|
});
|
|
19241
19242
|
},
|
|
19242
19243
|
fetchAccount(success, error) {
|
|
19243
|
-
return api.
|
|
19244
|
-
if (response
|
|
19245
|
-
this.account = response
|
|
19244
|
+
return api.getUserInfo().then((response) => {
|
|
19245
|
+
if (response) {
|
|
19246
|
+
this.account = response;
|
|
19246
19247
|
if (success) {
|
|
19247
|
-
success(response
|
|
19248
|
+
success(response);
|
|
19248
19249
|
}
|
|
19249
19250
|
} else {
|
|
19250
19251
|
if (error) {
|