@agendize/vue-tools 1.6.0 → 1.8.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 +2 -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 +2 -1
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/vue-tools.es.js +4378 -76605
- package/package.json +10 -10
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, normaliseStringWithoutAccent, isStringIncludeIn } from "./utils/format";
|
|
4
|
+
import { pad, parseToInt, formatDate, decodeHtml, personToInitials, normaliseStringWithoutAccent, isStringIncludeIn, isStringIncludeInList } 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";
|
|
@@ -12,7 +12,7 @@ import { getDomain } from "./utils/web";
|
|
|
12
12
|
import { hasGlobalSchedulingRight } from "./utils/right";
|
|
13
13
|
export * from './bloc/Bloc';
|
|
14
14
|
export * from './utils/colorUtils';
|
|
15
|
-
export { useBlocState, dateToString, QRCode, Share, ShareMode, onPictureUpdated, readBlobFromUrl, pad, parseToInt, formatDate, toBase64, decodeHtml, personToInitials, normaliseStringWithoutAccent, isStringIncludeIn };
|
|
15
|
+
export { useBlocState, dateToString, QRCode, Share, ShareMode, onPictureUpdated, readBlobFromUrl, pad, parseToInt, formatDate, toBase64, decodeHtml, personToInitials, normaliseStringWithoutAccent, isStringIncludeIn, isStringIncludeInList };
|
|
16
16
|
export { createStore, useAccountStore };
|
|
17
17
|
export { createApi, createLogger, useApi, useLogger };
|
|
18
18
|
export { poll, getDomain };
|
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,4BAA4B,EAAC,iBAAiB,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,qBAAqB,EAAC,MAAM,gBAAgB,CAAA;AAC7J,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,EAAE,qBAAqB,EAAC,CAAA;AAC3O,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,6 +1,7 @@
|
|
|
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 isStringIncludeInList(stringsToSearchIn: (string | undefined)[], stringToSearch?: string, escapeAccent?: boolean, escapeCase?: boolean): boolean;
|
|
4
5
|
declare function isStringIncludeIn(stringToSearchIn?: string, stringToSearch?: string, escapeAccent?: boolean, escapeCase?: boolean): boolean;
|
|
5
6
|
declare function normaliseStringWithoutAccent(label?: string): string;
|
|
6
7
|
declare function decodeHtml(html?: string): string;
|
|
@@ -9,5 +10,5 @@ declare function personToInitials(person?: {
|
|
|
9
10
|
lastName?: string;
|
|
10
11
|
name?: string;
|
|
11
12
|
}): string;
|
|
12
|
-
export { formatDate, pad, parseToInt, decodeHtml, personToInitials, normaliseStringWithoutAccent, isStringIncludeIn };
|
|
13
|
+
export { formatDate, pad, parseToInt, decodeHtml, personToInitials, normaliseStringWithoutAccent, isStringIncludeIn, isStringIncludeInList };
|
|
13
14
|
//# 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,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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