@linagora/linid-im-front-corelib 0.0.63 → 0.0.64

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.
@@ -12,5 +12,5 @@ import type { TreeNode } from '../types/linidTree';
12
12
  * @returns An object exposing tree conversion helpers.
13
13
  */
14
14
  export declare function useTree(): {
15
- toQTreeNodes: (nodes: TreeNode[]) => QTreeNode[];
15
+ toQTreeNodes: <T>(nodes: TreeNode<T>[]) => QTreeNode[];
16
16
  };
@@ -29,7 +29,7 @@ export type { Page, Pagination, QTableRequestEvent, QuasarPagination, QueryFilte
29
29
  export type { AttributeInputType, LinidApiEndpointConfiguration, LinidAttributeConfiguration, LinidEntityConfiguration, } from './types/linidConfiguration';
30
30
  export type { FederatedModule, ModuleHostConfig, ModuleZoneDefinition, RemoteModule, } from './types/module';
31
31
  export type { ModuleLifecycleHooks, ModuleLifecycleResult, } from './types/moduleLifecycle';
32
- export type { LinidQAvatarProps, LinidQBadgeProps, LinidQBannerProps, LinidQBtnDropdownProps, LinidQBtnProps, LinidQCardActionsProps, LinidQCardProps, LinidQDateProps, LinidQDialogProps, LinidQFileProps, LinidQFormProps, LinidQHeaderProps, LinidQIconProps, LinidQImgProps, LinidQInputProps, LinidQItemLabelProps, LinidQItemProps, LinidQItemSectionProps, LinidQListProps, LinidQMenuProps, LinidQRouteTabProps, LinidQSelectProps, LinidQSpinnerProps, LinidQTableProps, LinidQTabsProps, LinidQToggleProps, LinidQToolbarProps, LinidQToolbarTitleProps, LinidQTreeProps, UiDesign, UiDesignNamespace, UiDesignValue, } from './types/uiDesign';
32
+ export type { LinidQAvatarProps, LinidQBadgeProps, LinidQBannerProps, LinidQBtnDropdownProps, LinidQBtnProps, LinidQCardActionsProps, LinidQCardProps, LinidQDateProps, LinidQDialogProps, LinidQFileProps, LinidQFormProps, LinidQHeaderProps, LinidQIconProps, LinidQImgProps, LinidQInputProps, LinidQItemLabelProps, LinidQItemProps, LinidQItemSectionProps, LinidQListProps, LinidQMenuProps, LinidQRouteTabProps, LinidQSelectProps, LinidQSpinnerProps, LinidQSplitterProps, LinidQTableProps, LinidQTabsProps, LinidQToggleProps, LinidQToolbarProps, LinidQToolbarTitleProps, LinidQTreeProps, UiDesign, UiDesignNamespace, UiDesignValue, } from './types/uiDesign';
33
33
  export type { NavigationMenuItem } from './types/linidUi';
34
34
  export { ModuleLifecyclePhase } from './types/moduleLifecycle';
35
35
  export { BasicRemoteModule } from './lifecycle/skeleton';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Represents a node in the tree structure.
3
3
  */
4
- export type TreeNode = {
4
+ export type TreeNode<T> = {
5
5
  /**
6
6
  * The type of the node.
7
7
  */
@@ -11,13 +11,13 @@ export type TreeNode = {
11
11
  */
12
12
  key: string;
13
13
  /**
14
- * The value associated with the node, which can be a string, number, or an object for complex nodes.
14
+ * The value associated with the node.
15
15
  */
16
- value: string | number | Record<string, unknown>;
16
+ value: T;
17
17
  /**
18
18
  * Child nodes nested under this node.
19
19
  */
20
- nodes: TreeNode[];
20
+ nodes: TreeNode<T>[];
21
21
  /**
22
22
  * Additional actions specific to this node instance, merged with the
23
23
  * default actions defined by the matching `TreeNodeType`.
@@ -1,4 +1,4 @@
1
- import type { NamedColor, QAvatarProps, QBadgeProps, QBannerProps, QBtnDropdownProps, QBtnProps, QCardActionsProps, QCardProps, QDateProps, QDialogProps, QFileProps, QFormProps, QHeaderProps, QIconProps, QImgProps, QInputProps, QItemLabelProps, QItemProps, QItemSectionProps, QListProps, QMenuProps, QRouteTabProps, QSelectProps, QSpinnerProps, QTableProps, QTabsProps, QToggleProps, QToolbarProps, QToolbarTitleProps, QTreeProps, 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, 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
  */
@@ -140,6 +140,10 @@ declare const Q_MENU_PROPS: readonly ["contextMenu", "touchPosition", "persisten
140
140
  * List of QTreeProps keys for type-safe UI design retrieval.
141
141
  */
142
142
  declare const Q_TREE_PROPS: readonly ["tickStrategy", "noSelectionUnset", "defaultExpandAll", "accordion", "noTransition", "noConnectors", "color", "controlColor", "textColor", "selectedColor", "dense", "dark", "duration"];
143
+ /**
144
+ * List of QSplitterProps keys for type-safe UI design retrieval.
145
+ */
146
+ declare const Q_SPLITTER_PROPS: readonly ["horizontal", "limits", "reverse", "unit", "disable", "beforeClass", "afterClass", "separatorClass", "separatorStyle", "dark"];
143
147
  /**
144
148
  * Maps Quasar component names to their respective props keys for UI design retrieval.
145
149
  */
@@ -260,6 +264,10 @@ export type LinidQMenuProps = Pick<QMenuProps, (typeof Q_MENU_PROPS)[number]>;
260
264
  * Subset of QTreeProps props supported in UI design configuration.
261
265
  */
262
266
  export type LinidQTreeProps = Pick<QTreeProps, (typeof Q_TREE_PROPS)[number]>;
267
+ /**
268
+ * Subset of QSplitter props supported in UI design configuration.
269
+ */
270
+ export type LinidQSplitterProps = Pick<QSplitterProps, (typeof Q_SPLITTER_PROPS)[number]>;
263
271
  /**
264
272
  * Union type of all supported Quasar component props subsets.
265
273
  */
@@ -267,5 +275,5 @@ export type LinidQComponentProps = LinidQAvatarProps | LinidQBadgeProps | LinidQ
267
275
  /**
268
276
  * Valid Quasar component names for type-safe UI design retrieval.
269
277
  */
270
- 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-menu' | 'q-route-tab' | 'q-select' | 'q-spinner' | 'q-table' | 'q-tabs' | 'q-toggle' | 'q-toolbar' | 'q-toolbar-title' | 'q-tree';
278
+ 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-menu' | 'q-route-tab' | 'q-select' | 'q-spinner' | 'q-table' | 'q-tabs' | 'q-toggle' | 'q-toolbar' | 'q-toolbar-title' | 'q-tree' | 'q-splitter';
271
279
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linagora/linid-im-front-corelib",
3
- "version": "0.0.63",
3
+ "version": "0.0.64",
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": [
@@ -34,6 +34,11 @@
34
34
  "name": "Christophe Chevalier",
35
35
  "email": "cchevalier@linagora.com",
36
36
  "url": "https://github.com/christophechevalier"
37
+ },
38
+ {
39
+ "name": "Adrien Céré",
40
+ "email": "acere@linagora.com",
41
+ "url": "https://github.com/Hamilcar31"
37
42
  }
38
43
  ],
39
44
  "license": "AGPL-3.0-only",