@linagora/linid-im-front-corelib 0.0.72 → 0.0.73
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/README.md +6 -1
- package/dist/core-lib.es.js +1020 -992
- package/dist/core-lib.umd.js +19 -19
- package/dist/package.json +2 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/composables/useLinidFilterUrl.d.ts +13 -0
- package/dist/types/src/filters/linidFilter.d.ts +2 -2
- package/dist/types/src/index.d.ts +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RouteLocationNormalizedLoaded, Router } from 'vue-router';
|
|
2
|
+
import { LinidFilter } from '../filters/linidFilter';
|
|
3
|
+
/**
|
|
4
|
+
* Composable that synchronizes a list of LinID filters with the query
|
|
5
|
+
* params of the current URL.
|
|
6
|
+
* @param router - Vue router instance, used to update the URL.
|
|
7
|
+
* @param route - Current normalized route, used to read query params.
|
|
8
|
+
* @returns An object exposing `setFiltersInUrl` and `getFiltersFromUrl`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useLinidFilterUrl(router: Router, route: RouteLocationNormalizedLoaded): {
|
|
11
|
+
setFiltersInUrl: (filters: LinidFilter[], keeps: string[]) => void;
|
|
12
|
+
getFiltersFromUrl: (filters: LinidFilter[]) => LinidFilter[];
|
|
13
|
+
};
|
|
@@ -52,9 +52,9 @@ export declare class LinidFilter<T = Record<string, unknown>> {
|
|
|
52
52
|
*/
|
|
53
53
|
static fromString<T = Record<string, unknown>>(name: string, input: string): LinidFilter<T>;
|
|
54
54
|
/**
|
|
55
|
-
* Reconstructs the filter as an HTTP query parameter
|
|
55
|
+
* Reconstructs the filter as an HTTP query parameter value, ready to use with
|
|
56
56
|
* APIs powered by `spring-query-filter`.
|
|
57
|
-
* @returns The query parameter string representation of the filter, e.g. `
|
|
57
|
+
* @returns The query parameter string representation of the filter, e.g. `paris|not_lk_lyon`.
|
|
58
58
|
*/
|
|
59
59
|
toString(): string;
|
|
60
60
|
}
|
|
@@ -11,6 +11,7 @@ export { useQuasarRules } from './composables/useQuasarRules';
|
|
|
11
11
|
export { useScopedI18n } from './composables/useScopedI18n';
|
|
12
12
|
export { useTree } from './composables/useTree';
|
|
13
13
|
export { useUiDesign } from './composables/useUiDesign';
|
|
14
|
+
export { useLinidFilterUrl } from './composables/useLinidFilterUrl';
|
|
14
15
|
export { useLinidConfigurationStore } from './stores/linidConfigurationStore';
|
|
15
16
|
export { useLinidUiStore } from './stores/linidUiStore';
|
|
16
17
|
export { useLinidUserStore } from './stores/linidUserStore';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linagora/linid-im-front-corelib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.73",
|
|
4
4
|
"description": "Core library of the LinID Identity Manager project. Provides shared types, services, components, and utilities for front-end and plugin, enabling consistent integration across the LinID ecosystem.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"rxjs": "7.8.2",
|
|
56
56
|
"vue": "3.5.30",
|
|
57
57
|
"vue-i18n": "11.3.0",
|
|
58
|
+
"vue-router": "5.0.3",
|
|
58
59
|
"interactjs": "1.10.27"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|