@linagora/linid-im-front-corelib 0.0.54 → 0.0.56

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.
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * Composable for field validation. It exposes various validation methods
3
3
  * that can be used to validate form fields.
4
- * @param instanceId The unique identifier of the module instance.
5
- * @param fieldName The name of the field to validate.
4
+ * @param i18nScope - I18n scope for localizing the validators.
6
5
  * @returns An object containing validation methods.
7
6
  */
8
- export declare function useFieldValidation(instanceId: string, fieldName: string): {
9
- validateFromApi: (value: unknown) => Promise<true | string>;
7
+ export declare function useFieldValidation(i18nScope: string): {
8
+ validateFromApi: (instanceId: string, fieldName: string, value: unknown) => Promise<true | string>;
10
9
  required: (value: unknown) => true | string;
10
+ email: (value: unknown) => true | string;
11
11
  minLength: (value: string | null | undefined, minValue: number) => true | string;
12
12
  maxLength: (value: string | null | undefined, maxValue: number) => true | string;
13
13
  min: (value: number, minValue: number) => true | string;
@@ -5,8 +5,9 @@
5
5
  * @returns An object containing validation methods formatted for Quasar.
6
6
  */
7
7
  export declare function useQuasarFieldValidation(instanceId: string, fieldName: string): {
8
- validateFromApi: (value: unknown) => Promise<true | string>;
8
+ validateFromApi: (value: string) => Promise<string | true>;
9
9
  required: (value: unknown) => true | string;
10
+ email: (value: unknown) => true | string;
10
11
  min: (minValue: number) => (value: string | number) => string | true;
11
12
  max: (maxValue: number) => (value: string | number) => string | true;
12
13
  minLength: (minValue: number) => (value: string) => string | true;
@@ -28,7 +28,7 @@ export type { Page, Pagination, QTableRequestEvent, QuasarPagination, QueryFilte
28
28
  export type { AttributeInputType, LinidApiEndpointConfiguration, LinidAttributeConfiguration, LinidEntityConfiguration, } from './types/linidConfiguration';
29
29
  export type { FederatedModule, ModuleHostConfig, ModuleZoneDefinition, RemoteModule, } from './types/module';
30
30
  export type { ModuleLifecycleHooks, ModuleLifecycleResult, } from './types/moduleLifecycle';
31
- export type { LinidQAvatarProps, LinidQBadgeProps, LinidQBtnDropdownProps, LinidQBtnProps, LinidQCardActionsProps, LinidQCardProps, LinidQDateProps, LinidQDialogProps, LinidQFileProps, LinidQFormProps, LinidQHeaderProps, LinidQIconProps, LinidQImgProps, LinidQInputProps, LinidQItemLabelProps, LinidQItemProps, LinidQItemSectionProps, LinidQListProps, LinidQRouteTabProps, LinidQSelectProps, LinidQSpinnerProps, LinidQTableProps, LinidQTabsProps, LinidQToggleProps, LinidQToolbarProps, LinidQToolbarTitleProps, UiDesign, UiDesignNamespace, UiDesignValue, } from './types/uiDesign';
31
+ export type { LinidQAvatarProps, LinidQBadgeProps, LinidQBannerProps, LinidQBtnDropdownProps, LinidQBtnProps, LinidQCardActionsProps, LinidQCardProps, LinidQDateProps, LinidQDialogProps, LinidQFileProps, LinidQFormProps, LinidQHeaderProps, LinidQIconProps, LinidQImgProps, LinidQInputProps, LinidQItemLabelProps, LinidQItemProps, LinidQItemSectionProps, LinidQListProps, LinidQRouteTabProps, LinidQSelectProps, LinidQSpinnerProps, LinidQTableProps, LinidQTabsProps, LinidQToggleProps, LinidQToolbarProps, LinidQToolbarTitleProps, UiDesign, UiDesignNamespace, UiDesignValue, } from './types/uiDesign';
32
32
  export type { NavigationMenuItem } from './types/linidUi';
33
33
  export { ModuleLifecyclePhase } from './types/moduleLifecycle';
34
34
  export { BasicRemoteModule } from './lifecycle/skeleton';
@@ -1,4 +1,4 @@
1
- import type { NamedColor, QAvatarProps, QBadgeProps, QBtnDropdownProps, QBtnProps, QCardActionsProps, QCardProps, QDateProps, QDialogProps, QFileProps, QFormProps, QHeaderProps, QIconProps, QImgProps, QInputProps, QItemLabelProps, QItemProps, QItemSectionProps, QListProps, QRouteTabProps, QSelectProps, QSpinnerProps, QTableProps, QTabsProps, QToggleProps, QToolbarProps, QToolbarTitleProps, VueClassProp, VueStyleObjectProp, VueStyleProp } from 'quasar';
1
+ import type { NamedColor, QAvatarProps, QBadgeProps, QBannerProps, QBtnDropdownProps, QBtnProps, QCardActionsProps, QCardProps, QDateProps, QDialogProps, QFileProps, QFormProps, QHeaderProps, QIconProps, QImgProps, QInputProps, QItemLabelProps, QItemProps, QItemSectionProps, QListProps, QRouteTabProps, QSelectProps, QSpinnerProps, QTableProps, QTabsProps, QToggleProps, QToolbarProps, QToolbarTitleProps, VueClassProp, VueStyleObjectProp, VueStyleProp } from 'quasar';
2
2
  /**
3
3
  * Represents a single primitive value in the UI configuration.
4
4
  */
@@ -128,6 +128,10 @@ declare const Q_FORM_PROPS: readonly ["autofocus", "noErrorFocus", "noResetFocus
128
128
  * List of QItemLabelProps keys for type-safe UI design retrieval.
129
129
  */
130
130
  declare const Q_ITEM_LABEL_PROPS: readonly ["lines", "overline", "caption", "header"];
131
+ /**
132
+ * List of QBannerProps keys for type-safe UI design retrieval.
133
+ */
134
+ declare const Q_BANNER_PROPS: readonly ["inlineActions", "dense", "rounded", "dark"];
131
135
  /**
132
136
  * Maps Quasar component names to their respective props keys for UI design retrieval.
133
137
  */
@@ -236,12 +240,16 @@ export type LinidQItemSectionProps = Pick<QItemSectionProps, (typeof Q_ITEM_SECT
236
240
  * Subset of QItemLabelProps props supported in UI design configuration.
237
241
  */
238
242
  export type LinidQItemLabelProps = Pick<QItemLabelProps, (typeof Q_ITEM_LABEL_PROPS)[number]>;
243
+ /**
244
+ * Subset of QBannerProps props supported in UI design configuration.
245
+ */
246
+ export type LinidQBannerProps = Pick<QBannerProps, (typeof Q_BANNER_PROPS)[number]>;
239
247
  /**
240
248
  * Union type of all supported Quasar component props subsets.
241
249
  */
242
- export type LinidQComponentProps = LinidQAvatarProps | LinidQBadgeProps | LinidQBtnDropdownProps | LinidQBtnProps | LinidQCardActionsProps | LinidQCardProps | LinidQDateProps | LinidQDialogProps | LinidQFileProps | LinidQFormProps | LinidQHeaderProps | LinidQIconProps | LinidQImgProps | LinidQInputProps | LinidQItemLabelProps | LinidQItemProps | LinidQItemSectionProps | LinidQListProps | LinidQRouteTabProps | LinidQSelectProps | LinidQSpinnerProps | LinidQTableProps | LinidQTabsProps | LinidQToggleProps | LinidQToolbarProps | LinidQToolbarTitleProps;
250
+ export type LinidQComponentProps = LinidQAvatarProps | LinidQBadgeProps | LinidQBtnDropdownProps | LinidQBtnProps | LinidQCardActionsProps | LinidQCardProps | LinidQDateProps | LinidQDialogProps | LinidQFileProps | LinidQFormProps | LinidQHeaderProps | LinidQIconProps | LinidQImgProps | LinidQInputProps | LinidQItemLabelProps | LinidQItemProps | LinidQItemSectionProps | LinidQListProps | LinidQRouteTabProps | LinidQSelectProps | LinidQSpinnerProps | LinidQTableProps | LinidQTabsProps | LinidQToggleProps | LinidQToolbarProps | LinidQToolbarTitleProps | LinidQBannerProps;
243
251
  /**
244
252
  * Valid Quasar component names for type-safe UI design retrieval.
245
253
  */
246
- export type QComponentName = 'q-avatar' | 'q-badge' | 'q-btn' | 'q-btn-dropdown' | 'q-card' | 'q-card-actions' | '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-list' | 'q-route-tab' | 'q-select' | 'q-spinner' | 'q-table' | 'q-tabs' | 'q-toggle' | 'q-toolbar' | 'q-toolbar-title';
254
+ export type QComponentName = 'q-avatar' | 'q-badge' | 'q-banner' | 'q-btn' | 'q-btn-dropdown' | 'q-card' | 'q-card-actions' | '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-list' | 'q-route-tab' | 'q-select' | 'q-spinner' | 'q-table' | 'q-tabs' | 'q-toggle' | 'q-toolbar' | 'q-toolbar-title';
247
255
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linagora/linid-im-front-corelib",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
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": [