@agendize/vue-tools 0.0.2 → 0.0.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.
@@ -1,11 +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 {};
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 {};
@@ -1,3 +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>>;
1
+ import { Bloc } from "./Bloc";
2
+ import { DeepReadonly, Ref } from "vue";
3
+ export declare function useBlocState<S>(bloc: Bloc<S>): DeepReadonly<Ref<S>>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { useBlocState } from "./bloc/useBlocState";
2
- import { dateToString } from "./utils/date";
3
- export * from './bloc/Bloc';
4
- export { useBlocState, dateToString };
1
+ import { useBlocState } from "./bloc/useBlocState";
2
+ import { dateToString } from "./utils/date";
3
+ import QRCode from "./presentation/component/qr-code/View.vue";
4
+ export * from './bloc/Bloc';
5
+ export { useBlocState, dateToString, QRCode };
@@ -0,0 +1,48 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ clazz: {
3
+ type: import("vue").PropType<string>;
4
+ required: true;
5
+ };
6
+ width: {
7
+ type: import("vue").PropType<number>;
8
+ required: true;
9
+ };
10
+ height: {
11
+ type: import("vue").PropType<number>;
12
+ required: true;
13
+ };
14
+ bgColor: {
15
+ type: import("vue").PropType<string>;
16
+ };
17
+ dotsColor: {
18
+ type: import("vue").PropType<string>;
19
+ };
20
+ value: {
21
+ type: import("vue").PropType<string>;
22
+ required: true;
23
+ };
24
+ }, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ clazz: {
26
+ type: import("vue").PropType<string>;
27
+ required: true;
28
+ };
29
+ width: {
30
+ type: import("vue").PropType<number>;
31
+ required: true;
32
+ };
33
+ height: {
34
+ type: import("vue").PropType<number>;
35
+ required: true;
36
+ };
37
+ bgColor: {
38
+ type: import("vue").PropType<string>;
39
+ };
40
+ dotsColor: {
41
+ type: import("vue").PropType<string>;
42
+ };
43
+ value: {
44
+ type: import("vue").PropType<string>;
45
+ required: true;
46
+ };
47
+ }>>, {}>;
48
+ export default _default;
@@ -1 +1 @@
1
- export declare function dateToString(date: Date, short?: boolean): string;
1
+ export declare function dateToString(date: Date, short?: boolean): string;