@agendize/vue-tools 1.2.0 → 1.3.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/bloc/Bloc.d.ts +11 -11
- package/dist/bloc/useBlocState.d.ts +3 -3
- package/dist/index.d.ts +13 -11
- 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 +14 -14
- package/dist/style.css +1 -1
- package/dist/utils/colorUtils.d.ts +5 -5
- 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 +10 -10
- package/dist/utils/poll.d.ts +1 -0
- package/dist/vue-tools.es.js +10063 -8391
- package/dist/vue-tools.umd.js +19 -19
- package/package.json +66 -66
package/dist/bloc/Bloc.d.ts
CHANGED
|
@@ -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,11 +1,13 @@
|
|
|
1
|
-
import { useBlocState } from "./bloc/useBlocState";
|
|
2
|
-
import { dateToString } from "./utils/date";
|
|
3
|
-
import { onPictureUpdated, readBlobFromUrl, toBase64 } from "./utils/file";
|
|
4
|
-
import { pad, parseToInt, formatDate, decodeHtml, personToInitials } from "./utils/format";
|
|
5
|
-
import QRCode from "./presentation/component/qr-code/View.vue";
|
|
6
|
-
import { createStore, useAccountStore } from "./store/accountStore";
|
|
7
|
-
|
|
8
|
-
export * from './
|
|
9
|
-
export
|
|
10
|
-
export {
|
|
11
|
-
export
|
|
1
|
+
import { useBlocState } from "./bloc/useBlocState";
|
|
2
|
+
import { dateToString } from "./utils/date";
|
|
3
|
+
import { onPictureUpdated, readBlobFromUrl, toBase64 } from "./utils/file";
|
|
4
|
+
import { pad, parseToInt, formatDate, decodeHtml, personToInitials } from "./utils/format";
|
|
5
|
+
import QRCode from "./presentation/component/qr-code/View.vue";
|
|
6
|
+
import { createStore, useAccountStore } from "./store/accountStore";
|
|
7
|
+
import { poll } from "./utils/poll";
|
|
8
|
+
export * from './bloc/Bloc';
|
|
9
|
+
export * from './utils/colorUtils';
|
|
10
|
+
export { useBlocState, dateToString, QRCode, onPictureUpdated, readBlobFromUrl, pad, parseToInt, formatDate, toBase64, decodeHtml, personToInitials };
|
|
11
|
+
export { createStore, useAccountStore };
|
|
12
|
+
export { poll };
|
|
13
|
+
export * from './utils/constants';
|
|
@@ -1,69 +1,69 @@
|
|
|
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
|
-
download: {
|
|
30
|
-
type: import("vue").PropType<boolean>;
|
|
31
|
-
} & {
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
|
-
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
-
width: {
|
|
36
|
-
type: import("vue").PropType<number>;
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
39
|
-
height: {
|
|
40
|
-
type: import("vue").PropType<number>;
|
|
41
|
-
required: true;
|
|
42
|
-
};
|
|
43
|
-
bgColor: {
|
|
44
|
-
type: import("vue").PropType<string>;
|
|
45
|
-
};
|
|
46
|
-
dotsColor: {
|
|
47
|
-
type: import("vue").PropType<string>;
|
|
48
|
-
};
|
|
49
|
-
value: {
|
|
50
|
-
type: import("vue").PropType<string>;
|
|
51
|
-
required: true;
|
|
52
|
-
};
|
|
53
|
-
outlineValue: {
|
|
54
|
-
type: import("vue").PropType<string>;
|
|
55
|
-
required: true;
|
|
56
|
-
};
|
|
57
|
-
locale: {
|
|
58
|
-
type: import("vue").PropType<Locale>;
|
|
59
|
-
required: true;
|
|
60
|
-
};
|
|
61
|
-
download: {
|
|
62
|
-
type: import("vue").PropType<boolean>;
|
|
63
|
-
} & {
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
}>>, {
|
|
67
|
-
download: boolean;
|
|
68
|
-
}>;
|
|
69
|
-
export default _default;
|
|
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
|
+
download: {
|
|
30
|
+
type: import("vue").PropType<boolean>;
|
|
31
|
+
} & {
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
width: {
|
|
36
|
+
type: import("vue").PropType<number>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
height: {
|
|
40
|
+
type: import("vue").PropType<number>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
bgColor: {
|
|
44
|
+
type: import("vue").PropType<string>;
|
|
45
|
+
};
|
|
46
|
+
dotsColor: {
|
|
47
|
+
type: import("vue").PropType<string>;
|
|
48
|
+
};
|
|
49
|
+
value: {
|
|
50
|
+
type: import("vue").PropType<string>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
outlineValue: {
|
|
54
|
+
type: import("vue").PropType<string>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
locale: {
|
|
58
|
+
type: import("vue").PropType<Locale>;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
download: {
|
|
62
|
+
type: import("vue").PropType<boolean>;
|
|
63
|
+
} & {
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
}>>, {
|
|
67
|
+
download: boolean;
|
|
68
|
+
}>;
|
|
69
|
+
export default _default;
|
|
@@ -1,3 +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;
|
|
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;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { AccountEntity, ApiErrors, CalendarApi } from "@agendize/js-calendar-api";
|
|
2
|
-
import type { Ability } from "@agendize/vue-acl";
|
|
3
|
-
import { RoleType } from "@agendize/vue-acl/src/types/acl";
|
|
4
|
-
export declare type AccountState = {
|
|
5
|
-
account: AccountEntity;
|
|
6
|
-
};
|
|
7
|
-
export declare const createStore: (calendarApi: CalendarApi, aclApi: any) => import("pinia").Pinia;
|
|
8
|
-
export declare const useAccountStore: import("pinia").StoreDefinition<"account", AccountState, {}, {
|
|
9
|
-
updateAccount(payload: AccountEntity): Promise<void>;
|
|
10
|
-
fetchAccount(success?: (account: AccountEntity) => void, error?: (error: ApiErrors) => void): Promise<void>;
|
|
11
|
-
updatePassword(currentPassword: string, newPassword: string): Promise<void>;
|
|
12
|
-
hasAbility(ability: Ability, objectId?: string): Promise<boolean>;
|
|
13
|
-
hasAnyRoles(roles: RoleType[]): Promise<boolean>;
|
|
14
|
-
}>;
|
|
1
|
+
import { AccountEntity, ApiErrors, CalendarApi } from "@agendize/js-calendar-api";
|
|
2
|
+
import type { Ability } from "@agendize/vue-acl";
|
|
3
|
+
import { RoleType } from "@agendize/vue-acl/src/types/acl";
|
|
4
|
+
export declare type AccountState = {
|
|
5
|
+
account: AccountEntity;
|
|
6
|
+
};
|
|
7
|
+
export declare const createStore: (calendarApi: CalendarApi, aclApi: any) => import("pinia").Pinia;
|
|
8
|
+
export declare const useAccountStore: import("pinia").StoreDefinition<"account", AccountState, {}, {
|
|
9
|
+
updateAccount(payload: AccountEntity): Promise<void>;
|
|
10
|
+
fetchAccount(crossAccount?: boolean, success?: (account: AccountEntity) => void, error?: (error: ApiErrors) => void): Promise<void>;
|
|
11
|
+
updatePassword(currentPassword: string, newPassword: string): Promise<void>;
|
|
12
|
+
hasAbility(ability: Ability, objectId?: string): Promise<boolean>;
|
|
13
|
+
hasAnyRoles(roles: RoleType[]): Promise<boolean>;
|
|
14
|
+
}>;
|