@agendize/vue-tools 1.5.0 → 1.7.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 +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/store/accountStore.d.ts +6 -5
- package/dist/store/accountStore.d.ts.map +1 -1
- package/dist/utils/format.d.ts +4 -2
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/right.d.ts +3 -0
- package/dist/utils/right.d.ts.map +1 -0
- package/dist/vue-tools.es.js +8018 -5716
- 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
3
|
import { onPictureUpdated, readBlobFromUrl, toBase64 } from "./utils/file";
|
|
4
|
-
import { pad, parseToInt, formatDate, decodeHtml, personToInitials } from "./utils/format";
|
|
4
|
+
import { pad, parseToInt, formatDate, decodeHtml, personToInitials, normaliseStringWithoutAccent, isStringIncludeIn } 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";
|
|
@@ -9,12 +9,14 @@ import { createStore, useAccountStore } from "./store/accountStore";
|
|
|
9
9
|
import { createApi, createLogger, useApi, useLogger } from "./store/plugins";
|
|
10
10
|
import { poll } from "./utils/poll";
|
|
11
11
|
import { getDomain } from "./utils/web";
|
|
12
|
+
import { hasGlobalSchedulingRight } from "./utils/right";
|
|
12
13
|
export * from './bloc/Bloc';
|
|
13
14
|
export * from './utils/colorUtils';
|
|
14
|
-
export { useBlocState, dateToString, QRCode, Share, ShareMode, onPictureUpdated, readBlobFromUrl, pad, parseToInt, formatDate, toBase64, decodeHtml, personToInitials };
|
|
15
|
+
export { useBlocState, dateToString, QRCode, Share, ShareMode, onPictureUpdated, readBlobFromUrl, pad, parseToInt, formatDate, toBase64, decodeHtml, personToInitials, normaliseStringWithoutAccent, isStringIncludeIn };
|
|
15
16
|
export { createStore, useAccountStore };
|
|
16
17
|
export { createApi, createLogger, useApi, useLogger };
|
|
17
18
|
export { poll, getDomain };
|
|
19
|
+
export { hasGlobalSchedulingRight };
|
|
18
20
|
export * from './utils/constants';
|
|
19
21
|
export * from './utils/lazy';
|
|
20
22
|
//# 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;AACxE,OAAO,EAAC,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAC,MAAM,gBAAgB,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,EAAC,MAAM,cAAc,CAAA;AACxE,OAAO,EAAC,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAC,4BAA4B,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAA;AACvI,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,EAAC,MAAM,iBAAiB,CAAA;AAC3E,OAAO,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAEzD,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAC,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAC,4BAA4B,EAAE,iBAAiB,EAAC,CAAA;AACpN,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAC,CAAA;AACpD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;AAC1B,OAAO,EAAE,wBAAwB,EAAE,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { AccountEntity, ApiErrors, CalendarApi } from "@agendize/js-calendar-api";
|
|
2
|
-
import
|
|
1
|
+
import { AccountEntity, ApiErrors, CalendarApi, RightObject } from "@agendize/js-calendar-api";
|
|
2
|
+
import { AclAbility } from "@agendize/vue-acl";
|
|
3
3
|
import { RoleType } from "@agendize/vue-acl/src/types/acl";
|
|
4
4
|
export declare type AccountState = {
|
|
5
5
|
account: AccountEntity;
|
|
6
6
|
};
|
|
7
|
-
export declare const createStore: (calendarApi: CalendarApi
|
|
7
|
+
export declare const createStore: (calendarApi: CalendarApi) => import("pinia").Pinia;
|
|
8
8
|
export declare const useAccountStore: import("pinia").StoreDefinition<"account", AccountState, {}, {
|
|
9
9
|
updateAccount(payload: AccountEntity): Promise<void>;
|
|
10
10
|
fetchAccount(crossAccount?: boolean, success?: (account: AccountEntity) => void, error?: (error: ApiErrors) => void): Promise<void>;
|
|
11
11
|
updatePassword(currentPassword: string, newPassword: string): Promise<void>;
|
|
12
|
-
hasAbility(ability:
|
|
13
|
-
|
|
12
|
+
hasAbility(ability: AclAbility, rightObject?: RightObject | string): boolean;
|
|
13
|
+
hasAnyAbility(abilities: AclAbility[], rightObject?: RightObject | string): boolean;
|
|
14
|
+
hasAnyRoles(roles: RoleType[]): boolean;
|
|
14
15
|
}>;
|
|
15
16
|
//# sourceMappingURL=accountStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountStore.d.ts","sourceRoot":"","sources":["../../src/store/accountStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAE,SAAS,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"accountStore.d.ts","sourceRoot":"","sources":["../../src/store/accountStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAY,MAAM,2BAA2B,CAAC;AACxG,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,QAAQ,EAAC,MAAM,iCAAiC,CAAC;AAGzD,oBAAY,YAAY,GAAG;IACvB,OAAO,EAAE,aAAa,CAAA;CACzB,CAAC;AAIF,eAAO,MAAM,WAAW,gBAAiB,WAAW,0BAGnD,CAAA;AAED,eAAO,MAAM,eAAe;2BAOS,aAAa,GAAG,QAAQ,IAAI,CAAC;gCAiB7B,OAAO,sBAAsB,aAAa,KAAK,IAAI,kBAAkB,SAAS,KAAK,IAAI;oCAoB9E,MAAM,eAAe,MAAM,GAAG,QAAQ,IAAI,CAAC;wBAG7D,UAAU,gBAAgB,WAAW,GAAG,MAAM,GAAG,OAAO;6BAInD,UAAU,EAAE,gBAAgB,WAAW,GAAG,MAAM,GAAG,OAAO;uBAKhE,QAAQ,EAAE,GAAG,OAAO;EAK7C,CAAC"}
|
package/dist/utils/format.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
declare function parseToInt(value: string): number;
|
|
2
2
|
declare function formatDate(date?: Date): string;
|
|
3
3
|
declare function pad(value: any, size?: number): string;
|
|
4
|
-
declare function
|
|
4
|
+
declare function isStringIncludeIn(stringToSearchIn?: string, stringToSearch?: string, escapeAccent?: boolean, escapeCase?: boolean): boolean;
|
|
5
|
+
declare function normaliseStringWithoutAccent(label?: string): string;
|
|
6
|
+
declare function decodeHtml(html?: string): string;
|
|
5
7
|
declare function personToInitials(person?: {
|
|
6
8
|
firstName?: string;
|
|
7
9
|
lastName?: string;
|
|
8
10
|
name?: string;
|
|
9
11
|
}): string;
|
|
10
|
-
export { formatDate, pad, parseToInt, decodeHtml, personToInitials };
|
|
12
|
+
export { formatDate, pad, parseToInt, decodeHtml, personToInitials, normaliseStringWithoutAccent, isStringIncludeIn };
|
|
11
13
|
//# 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,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAKvC;AAED,iBAAS,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,GAAE,MAAU,UAIxC;AAED,iBAAS,UAAU,CAAC,IAAI,
|
|
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,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAKvC;AAED,iBAAS,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,GAAE,MAAU,UAIxC;AAED,iBAAS,iBAAiB,CAAE,gBAAgB,CAAC,EAAC,MAAM,EAAC,cAAc,CAAC,EAAE,MAAM,EAAE,YAAY,GAAC,OAAc,EAAE,UAAU,GAAC,OAAa,GAAG,OAAO,CAkB5I;AAED,iBAAS,4BAA4B,CAAC,KAAK,CAAC,EAAC,MAAM,GAAG,MAAM,CAK3D;AAED,iBAAS,UAAU,CAAC,IAAI,CAAC,EAAC,MAAM,GAAE,MAAM,CAOvC;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,OAAO,EAAC,UAAU,EAAE,GAAG,EAAE,UAAU,EAAC,UAAU,EAAC,gBAAgB,EAAC,4BAA4B,EAAC,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"right.d.ts","sourceRoot":"","sources":["../../src/utils/right.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AAKtD,wBAAgB,wBAAwB,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,WAU9D"}
|