@agendize/vue-tools 0.0.10 → 0.0.12

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,11 @@
1
+ declare type Subscription<S> = (state: S) => void;
2
+ export declare abstract class Bloc<S> {
3
+ private internalState;
4
+ private listeners;
5
+ constructor(initialState: S);
6
+ get state(): S;
7
+ changeState(state: S): void;
8
+ subscribe(listener: Subscription<S>): void;
9
+ unsubscribe(listener: Subscription<S>): void;
10
+ }
11
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Bloc } from "./Bloc";
2
+ import { DeepReadonly, Ref } from "vue";
3
+ export declare function useBlocState<S>(bloc: Bloc<S>): DeepReadonly<Ref<S>>;
@@ -0,0 +1,7 @@
1
+ import { useBlocState } from "./bloc/useBlocState";
2
+ import { dateToString } from "./utils/date";
3
+ import { onPictureUpdated, readBlobFromUrl } from "./utils/file";
4
+ import { pad, parseToInt } from "./utils/format";
5
+ import QRCode from "./presentation/component/qr-code/View.vue";
6
+ export * from './bloc/Bloc';
7
+ export { useBlocState, dateToString, QRCode, onPictureUpdated, readBlobFromUrl, pad, parseToInt };
@@ -0,0 +1,57 @@
1
+ import { Locale } from "@agendize/az-i18n";
2
+ declare const _default: import("vue").DefineComponent<{
3
+ width: {
4
+ type: import("vue").PropType<number>;
5
+ required: true;
6
+ };
7
+ height: {
8
+ type: import("vue").PropType<number>;
9
+ required: true;
10
+ };
11
+ bgColor: {
12
+ type: import("vue").PropType<string>;
13
+ };
14
+ dotsColor: {
15
+ type: import("vue").PropType<string>;
16
+ };
17
+ value: {
18
+ type: import("vue").PropType<string>;
19
+ required: true;
20
+ };
21
+ outlineValue: {
22
+ type: import("vue").PropType<string>;
23
+ required: true;
24
+ };
25
+ locale: {
26
+ type: import("vue").PropType<Locale>;
27
+ required: true;
28
+ };
29
+ }, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
+ width: {
31
+ type: import("vue").PropType<number>;
32
+ required: true;
33
+ };
34
+ height: {
35
+ type: import("vue").PropType<number>;
36
+ required: true;
37
+ };
38
+ bgColor: {
39
+ type: import("vue").PropType<string>;
40
+ };
41
+ dotsColor: {
42
+ type: import("vue").PropType<string>;
43
+ };
44
+ value: {
45
+ type: import("vue").PropType<string>;
46
+ required: true;
47
+ };
48
+ outlineValue: {
49
+ type: import("vue").PropType<string>;
50
+ required: true;
51
+ };
52
+ locale: {
53
+ type: import("vue").PropType<Locale>;
54
+ required: true;
55
+ };
56
+ }>>, {}>;
57
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { Locale } from "@agendize/az-i18n";
2
+ declare const i18n: (locale: Locale) => import("vue-i18n").I18n<Record<Locale, {}>, {}, {}, Locale, false>;
3
+ export default i18n;