@linagora/linid-im-front-corelib 0.0.72 → 0.0.74

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.
@@ -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 pair (`name=value`), ready to use with
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. `city=paris|not_lk_lyon`.
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';
@@ -36,7 +37,7 @@ export type { Page, Pagination, QTableRequestEvent, QuasarPagination, QueryFilte
36
37
  export type { AttributeInputType, LinidApiEndpointConfiguration, LinidAttributeConfiguration, LinidEntityConfiguration, } from './types/linidConfiguration';
37
38
  export type { FederatedModule, ModuleHostConfig, ModuleZoneDefinition, RemoteModule, } from './types/module';
38
39
  export type { ModuleLifecycleHooks, ModuleLifecycleResult, } from './types/moduleLifecycle';
39
- export type { LinidQAvatarProps, LinidQBadgeProps, LinidQBannerProps, LinidQBtnDropdownProps, LinidQBtnProps, LinidQCardActionsProps, LinidQCardProps, LinidQCheckboxProps, LinidQDateProps, LinidQDialogProps, LinidQFileProps, LinidQFormProps, LinidQHeaderProps, LinidQIconProps, LinidQImgProps, LinidQInputProps, LinidQItemLabelProps, LinidQItemProps, LinidQItemSectionProps, LinidQLayoutProps, LinidQListProps, LinidQMenuProps, LinidQRouteTabProps, LinidQSelectProps, LinidQSpinnerProps, LinidQSplitterProps, LinidQTableProps, LinidQTabsProps, LinidQToggleProps, LinidQToolbarProps, LinidQToolbarTitleProps, LinidQTreeProps, UiDesign, UiDesignNamespace, UiDesignValue, } from './types/uiDesign';
40
+ export type { LinidQAvatarProps, LinidQBadgeProps, LinidQBannerProps, LinidQBtnDropdownProps, LinidQBtnProps, LinidQCardActionsProps, LinidQCardProps, LinidQCheckboxProps, LinidQDateProps, LinidQDialogProps, LinidQFileProps, LinidQFormProps, LinidQHeaderProps, LinidQIconProps, LinidQChipProps, LinidQImgProps, LinidQInputProps, LinidQItemLabelProps, LinidQItemProps, LinidQItemSectionProps, LinidQLayoutProps, LinidQListProps, LinidQMenuProps, LinidQRouteTabProps, LinidQSelectProps, LinidQSpinnerProps, LinidQSplitterProps, LinidQTableProps, LinidQTabsProps, LinidQToggleProps, LinidQToolbarProps, LinidQToolbarTitleProps, LinidQTreeProps, UiDesign, UiDesignNamespace, UiDesignValue, } from './types/uiDesign';
40
41
  export type { NavigationMenuItem } from './types/linidUi';
41
42
  export { ModuleLifecyclePhase } from './types/moduleLifecycle';
42
43
  export { BasicRemoteModule } from './lifecycle/skeleton';
@@ -1,4 +1,4 @@
1
- import type { NamedColor, QAvatarProps, QBadgeProps, QBannerProps, QBtnDropdownProps, QBtnProps, QCardActionsProps, QCardProps, QCheckboxProps, QDateProps, QDialogProps, QFileProps, QFormProps, QHeaderProps, QIconProps, QImgProps, QInputProps, QItemLabelProps, QItemProps, QItemSectionProps, QLayoutProps, QListProps, QMenuProps, QRouteTabProps, QSelectProps, QSpinnerProps, QSplitterProps, QTableProps, QTabsProps, QToggleProps, QToolbarProps, QToolbarTitleProps, QTreeProps, VueClassProp, VueStyleObjectProp, VueStyleProp } from 'quasar';
1
+ import type { NamedColor, QAvatarProps, QBadgeProps, QBannerProps, QBtnDropdownProps, QBtnProps, QCardActionsProps, QCardProps, QCheckboxProps, QChipProps, QDateProps, QDialogProps, QFileProps, QFormProps, QHeaderProps, QIconProps, QImgProps, QInputProps, QItemLabelProps, QItemProps, QItemSectionProps, QLayoutProps, QListProps, QMenuProps, QRouteTabProps, QSelectProps, QSpinnerProps, QSplitterProps, QTableProps, QTabsProps, QToggleProps, QToolbarProps, QToolbarTitleProps, QTreeProps, VueClassProp, VueStyleObjectProp, VueStyleProp } from 'quasar';
2
2
  /**
3
3
  * Represents a single primitive value in the UI configuration.
4
4
  */
@@ -72,6 +72,10 @@ declare const Q_CARD_ACTIONS_PROPS: readonly ["align", "vertical"];
72
72
  * List of QIconProps keys for type-safe UI design retrieval.
73
73
  */
74
74
  declare const Q_ICON_PROPS: readonly ["left", "right", "name", "size", "color"];
75
+ /**
76
+ * List of QChipProps keys for type-safe UI design retrieval.
77
+ */
78
+ declare const Q_CHIP_PROPS: readonly ["removeAriaLabel", "icon", "iconRight", "iconRemove", "iconSelected", "dense", "size", "dark", "color", "textColor", "square", "outline", "ripple"];
75
79
  /**
76
80
  * List of QToggleProps keys for type-safe UI design retrieval.
77
81
  */
@@ -208,6 +212,10 @@ export type LinidQCheckboxProps = Pick<QCheckboxProps, (typeof Q_CHECKBOX_PROPS)
208
212
  * Subset of QIcon props supported in UI design configuration.
209
213
  */
210
214
  export type LinidQIconProps = Pick<QIconProps, (typeof Q_ICON_PROPS)[number]>;
215
+ /**
216
+ * Subset of QChip props supported in UI design configuration.
217
+ */
218
+ export type LinidQChipProps = Pick<QChipProps, (typeof Q_CHIP_PROPS)[number]>;
211
219
  /**
212
220
  * Subset of QToggle props supported in UI design configuration.
213
221
  */
@@ -287,9 +295,9 @@ export type LinidQSplitterProps = Pick<QSplitterProps, (typeof Q_SPLITTER_PROPS)
287
295
  /**
288
296
  * Union type of all supported Quasar component props subsets.
289
297
  */
290
- export type LinidQComponentProps = LinidQAvatarProps | LinidQBadgeProps | LinidQBannerProps | LinidQBtnDropdownProps | LinidQBtnProps | LinidQCardActionsProps | LinidQCardProps | LinidQCheckboxProps | LinidQDateProps | LinidQDialogProps | LinidQFileProps | LinidQFormProps | LinidQHeaderProps | LinidQIconProps | LinidQImgProps | LinidQInputProps | LinidQItemLabelProps | LinidQItemProps | LinidQItemSectionProps | LinidQListProps | LinidQMenuProps | LinidQRouteTabProps | LinidQSelectProps | LinidQSpinnerProps | LinidQSplitterProps | LinidQTableProps | LinidQTabsProps | LinidQToggleProps | LinidQToolbarProps | LinidQToolbarTitleProps | LinidQTreeProps;
298
+ export type LinidQComponentProps = LinidQAvatarProps | LinidQBadgeProps | LinidQBannerProps | LinidQBtnDropdownProps | LinidQBtnProps | LinidQCardActionsProps | LinidQCardProps | LinidQCheckboxProps | LinidQDateProps | LinidQDialogProps | LinidQFileProps | LinidQFormProps | LinidQHeaderProps | LinidQIconProps | LinidQChipProps | LinidQImgProps | LinidQInputProps | LinidQItemLabelProps | LinidQItemProps | LinidQItemSectionProps | LinidQListProps | LinidQMenuProps | LinidQRouteTabProps | LinidQSelectProps | LinidQSpinnerProps | LinidQSplitterProps | LinidQTableProps | LinidQTabsProps | LinidQToggleProps | LinidQToolbarProps | LinidQToolbarTitleProps | LinidQTreeProps;
291
299
  /**
292
300
  * Valid Quasar component names for type-safe UI design retrieval.
293
301
  */
294
- export type QComponentName = 'q-avatar' | 'q-badge' | 'q-banner' | 'q-btn' | 'q-btn-dropdown' | 'q-card' | 'q-card-actions' | 'q-checkbox' | 'q-date' | 'q-dialog' | 'q-file' | 'q-form' | 'q-header' | 'q-icon' | 'q-img' | 'q-input' | 'q-item' | 'q-item-label' | 'q-item-section' | 'q-layout' | 'q-list' | 'q-menu' | 'q-route-tab' | 'q-select' | 'q-spinner' | 'q-table' | 'q-tabs' | 'q-toggle' | 'q-toolbar' | 'q-toolbar-title' | 'q-tree' | 'q-splitter';
302
+ export type QComponentName = 'q-avatar' | 'q-badge' | 'q-banner' | 'q-btn' | 'q-btn-dropdown' | 'q-card' | 'q-card-actions' | 'q-checkbox' | 'q-date' | 'q-dialog' | 'q-file' | 'q-form' | 'q-header' | 'q-icon' | 'q-chip' | 'q-img' | 'q-input' | 'q-item' | 'q-item-label' | 'q-item-section' | 'q-layout' | 'q-list' | 'q-menu' | 'q-route-tab' | 'q-select' | 'q-spinner' | 'q-table' | 'q-tabs' | 'q-toggle' | 'q-toolbar' | 'q-toolbar-title' | 'q-tree' | 'q-splitter';
295
303
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linagora/linid-im-front-corelib",
3
- "version": "0.0.72",
3
+ "version": "0.0.74",
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": {