@pimcore/data-hub 2026.3.3 → 2026.3.4
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/build/types/modules/graphql/components/tabs/schema-definition-tab/schema-fields-modal/hooks/brick-container-helpers.d.ts +26 -0
- package/dist/build/types/modules/graphql/components/tabs/schema-definition-tab/schema-fields-modal/hooks/class-attributes-tree-helpers.d.ts +2 -5
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export interface ObjectBricksFieldInfo {
|
|
11
|
+
name: string;
|
|
12
|
+
title: string | null;
|
|
13
|
+
allowedTypes: string[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Brick keys which are allowed in more than one objectbricks field of the class.
|
|
17
|
+
* Their columns need the containing field in the attribute to be told apart.
|
|
18
|
+
*/
|
|
19
|
+
export declare const getAmbiguousBrickKeys: (fields: ObjectBricksFieldInfo[]) => Set<string>;
|
|
20
|
+
/**
|
|
21
|
+
* `Brick~field` is the attribute format used so far and resolves to the first objectbricks field allowing
|
|
22
|
+
* the brick. `Brick~field~containerField` selects the field explicitly; it is only needed (and only used)
|
|
23
|
+
* for bricks which are allowed in several fields, so that existing configurations stay valid.
|
|
24
|
+
*/
|
|
25
|
+
export declare const buildBrickAttribute: (brickKey: string, brickFieldName: string, containerName: string, ambiguousBrickKeys: Set<string>) => string;
|
|
26
|
+
export declare const buildBrickColumnTitle: (label: string, brickKey: string, brickFieldName: string, containerName: string, ambiguousBrickKeys: Set<string>) => string;
|
|
@@ -9,11 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { type Layout } from '@pimcore/studio-ui-bundle/api/class-definition';
|
|
11
11
|
import { type TreeNode } from '../types';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
title: string | null;
|
|
15
|
-
allowedTypes: string[];
|
|
16
|
-
}
|
|
12
|
+
import { type ObjectBricksFieldInfo } from './brick-container-helpers';
|
|
13
|
+
export type { ObjectBricksFieldInfo };
|
|
17
14
|
export declare const filterTreeNodesRecursive: (nodes: TreeNode[], searchValue: string) => TreeNode[];
|
|
18
15
|
export declare const collectAllKeys: (nodes: TreeNode[]) => string[];
|
|
19
16
|
/**
|