@pimcore/studio-ui-bundle 0.12.18 → 0.13.20

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.
Files changed (122) hide show
  1. package/dist/build/types/src/core/app/config/services/service-ids.d.ts +7 -0
  2. package/dist/build/types/src/core/bootstrap.d.ts +2 -0
  3. package/dist/build/types/src/core/components/content/content-config-provider.d.ts +21 -0
  4. package/dist/build/types/src/core/components/content/content.d.ts +3 -2
  5. package/dist/build/types/src/core/components/content/content.styles.d.ts +6 -1
  6. package/dist/build/types/src/core/components/content-layout/content-layout.d.ts +1 -0
  7. package/dist/build/types/src/core/components/dropdown/dropdown.stories.d.ts +9 -9
  8. package/dist/build/types/src/core/components/element-tree/element-tree-slice.d.ts +1 -1
  9. package/dist/build/types/src/core/components/element-tree/provider/tree-permission-provider/use-tree-permission.d.ts +1 -1
  10. package/dist/build/types/src/core/components/grid/grid.d.ts +1 -0
  11. package/dist/build/types/src/core/components/icon/default-icon-color-groups.d.ts +12 -0
  12. package/dist/build/types/src/core/components/icon/icon-color-groups-registry.d.ts +32 -0
  13. package/dist/build/types/src/core/components/icon/icon.d.ts +3 -1
  14. package/dist/build/types/src/core/components/iframe/iframe.d.ts +1 -2
  15. package/dist/build/types/src/core/components/iframe-content/iframe-content.d.ts +21 -0
  16. package/dist/build/types/src/core/components/many-to-one-relation/path-target.d.ts +2 -1
  17. package/dist/build/types/src/core/components/menu/menu.styles.d.ts +13 -0
  18. package/dist/build/types/src/core/components/modal/factory/modal-factory.d.ts +32 -0
  19. package/dist/build/types/src/core/components/operational-grid/operational-grid.stories.d.ts +2 -0
  20. package/dist/build/types/src/core/components/pimcore-video/video-provider.d.ts +22 -0
  21. package/dist/build/types/src/core/components/search-input/search-input.d.ts +2 -1
  22. package/dist/build/types/src/core/components/toolstrip/tool-strip.styles.d.ts +1 -0
  23. package/dist/build/types/src/core/components/tree-element/tree-element-item.d.ts +2 -4
  24. package/dist/build/types/src/core/components/tree-element/tree-element.d.ts +24 -9
  25. package/dist/build/types/src/core/modules/about/components/about-dialog/about-dialog-wrapper.d.ts +15 -0
  26. package/dist/build/types/src/core/modules/about/components/about-dialog/context/about-dialog-data-context.d.ts +18 -0
  27. package/dist/build/types/src/core/modules/app/base-layout/main-nav/services/main-nav-registry.d.ts +9 -5
  28. package/dist/build/types/src/core/modules/app/context-menu-registry/context-menu-config.d.ts +1 -0
  29. package/dist/build/types/src/core/modules/app/theme/dynamic-types/definitions/studio-default-light/dynamic-type-theme-studio-default-light.d.ts +40 -0
  30. package/dist/build/types/src/core/modules/app/utils/auto-hide-empty-content/auto-hide-empty-content.d.ts +16 -0
  31. package/dist/build/types/src/core/modules/app/utils/auto-hide-empty-content/auto-hide-empty-content.styles.d.ts +14 -0
  32. package/dist/build/types/src/core/modules/app/utils/auto-hide-empty-content/hooks/use-hide-parent-when-hidden.d.ts +17 -0
  33. package/dist/build/types/src/core/modules/asset/asset-api-slice-enhanced.d.ts +2 -0
  34. package/dist/build/types/src/core/modules/asset/asset-api-slice.gen.d.ts +413 -17
  35. package/dist/build/types/src/core/modules/asset/editor/shared-tab-manager/tabs/custom-metadata/metadata-api-slice-enhanced.d.ts +2 -2
  36. package/dist/build/types/src/core/modules/asset/editor/shared-tab-manager/tabs/custom-metadata/metadata-api-slice.gen.d.ts +2 -2
  37. package/dist/build/types/src/core/modules/asset/editor/types/video/tab-manager/tabs/preview/preview-container.d.ts +0 -7
  38. package/dist/build/types/src/core/modules/asset/listing/listing-container.d.ts +1 -1
  39. package/dist/build/types/src/core/modules/class-definition/class-definition-slice-enhanced.d.ts +1231 -1
  40. package/dist/build/types/src/core/modules/class-definition/class-definition-slice.gen.d.ts +2879 -206
  41. package/dist/build/types/src/core/modules/class-definition/class-definition-widget.d.ts +11 -0
  42. package/dist/build/types/src/core/modules/class-definition/components/class-editor/add-modal.d.ts +11 -0
  43. package/dist/build/types/src/core/modules/class-definition/components/class-editor/use-class-definition-update.d.ts +11 -0
  44. package/dist/build/types/src/core/modules/class-definition/index.d.ts +10 -0
  45. package/dist/build/types/src/core/modules/document/actions/add-page/use-add-document.d.ts +2 -0
  46. package/dist/build/types/src/core/modules/document/document-api-slice-enhanced.d.ts +1 -0
  47. package/dist/build/types/src/core/modules/document/document-api-slice.gen.d.ts +198 -0
  48. package/dist/build/types/src/core/modules/document/document-draft-slice.d.ts +10 -10
  49. package/dist/build/types/src/core/modules/document/document-editor-slice.d.ts +5 -5
  50. package/dist/build/types/src/core/modules/element/dynamic-types/definitions/document/editable/types/dynamic-type-document-editable-wysiwyg.d.ts +0 -1
  51. package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/data-related/components/calculated-value/components/label/label.d.ts +1 -1
  52. package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/data-related/helpers/relations/components/label/label.d.ts +1 -1
  53. package/dist/build/types/src/core/modules/element/dynamic-types/defintinitions/objects/data-related/components/localized-fields/versions/version-object-localized-fields.d.ts +16 -0
  54. package/dist/build/types/src/core/modules/element/editor/detached-tab/missing-context.styles.d.ts +16 -0
  55. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/properties/properties-api-slice-enhanced.d.ts +2 -2
  56. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/properties/properties-api-slice.gen.d.ts +2 -2
  57. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/schedule/schedule-api-slice-enhanced.d.ts +1 -1
  58. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/schedule/schedule-api-slice.gen.d.ts +1 -1
  59. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/tags/tags-api-slice-enhanced.d.ts +2 -2
  60. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/tags/tags-api-slice.gen.d.ts +3 -3
  61. package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/workflow/workflow-api-slice.gen.d.ts +1 -1
  62. package/dist/build/types/src/core/modules/element/element-api-slice.gen.d.ts +3 -151
  63. package/dist/build/types/src/core/modules/execution-engine/execution-engine-api-slice-enhanced.d.ts +1 -1
  64. package/dist/build/types/src/core/modules/execution-engine/execution-engine-api-slice.gen.d.ts +6 -4
  65. package/dist/build/types/src/core/modules/field-definitions/components/editor/area-provider.d.ts +20 -0
  66. package/dist/build/types/src/core/modules/field-definitions/components/editor/custom-layout/custom-layout-modal-provider.d.ts +21 -0
  67. package/dist/build/types/src/core/modules/field-definitions/components/editor/custom-layout/custom-layout-modal-trigger.d.ts +11 -0
  68. package/dist/build/types/src/core/modules/{about/components/about-dialog/about-dialog-container.d.ts → field-definitions/components/editor/custom-layout/custom-layout-modal.d.ts} +1 -1
  69. package/dist/build/types/src/core/modules/field-definitions/components/editor/custom-layout/custom-layout.d.ts +11 -0
  70. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/content/layout-form.d.ts +11 -0
  71. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/content.d.ts +11 -0
  72. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/general-settings-provider.d.ts +22 -0
  73. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/layout-provider.d.ts +42 -0
  74. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/save.d.ts +11 -0
  75. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/sidebar.d.ts +15 -0
  76. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail.d.ts +15 -0
  77. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/provider.d.ts +33 -0
  78. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/sidebar/add-modal.d.ts +10 -0
  79. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/sidebar/modal-holder.d.ts +11 -0
  80. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/sidebar.d.ts +11 -0
  81. package/dist/build/types/src/core/modules/field-definitions/components/editor/items/tabs.d.ts +11 -0
  82. package/dist/build/types/src/core/modules/field-definitions/components/editor/settings-provider.d.ts +26 -0
  83. package/dist/build/types/src/core/modules/field-definitions/components/editor.d.ts +22 -0
  84. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/dynamic-type-field-definition-abstract.d.ts +39 -0
  85. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/dynamic-type-field-definition-registry.d.ts +14 -0
  86. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/_abstracts/data/dynamic-type-field-defintion-data-abstract.d.ts +23 -0
  87. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/_abstracts/data/field-defintion-data-form-fields.d.ts +12 -0
  88. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/_abstracts/layout/dynamic-type-field-defintion-layout-abstract.d.ts +23 -0
  89. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/_abstracts/layout/field-defintion-layout-form-fields.d.ts +12 -0
  90. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/block/dynamic-type-field-definition-block.d.ts +19 -0
  91. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/input/dynamic-type-field-definition-input.d.ts +19 -0
  92. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/input/field-defintion-input-form-fields.d.ts +12 -0
  93. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/panel/dynamic-type-field-definition-panel.d.ts +18 -0
  94. package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/panel/field-definition-panel-form-fields.d.ts +12 -0
  95. package/dist/build/types/src/core/modules/field-definitions/index.d.ts +10 -0
  96. package/dist/build/types/src/core/modules/field-definitions/utils/context-helpers.d.ts +13 -0
  97. package/dist/build/types/src/core/modules/notifications/notifications-slice-enhanced.d.ts +2 -2
  98. package/dist/build/types/src/core/modules/notifications/notifications-slice.gen.d.ts +2 -2
  99. package/dist/build/types/src/core/modules/open-element/{open-element.d.ts → constants.d.ts} +0 -8
  100. package/dist/build/types/src/core/modules/open-element/context/open-element-data-context.d.ts +19 -0
  101. package/dist/build/types/src/core/modules/open-element/open-element-wrapper.d.ts +15 -0
  102. package/dist/build/types/src/core/modules/perspectives/enums/tree-permission.d.ts +5 -7
  103. package/dist/build/types/src/core/modules/perspectives/perspectives-slice.gen.d.ts +1 -151
  104. package/dist/build/types/src/core/modules/reports/dynamic-types/definitions/custom-report-definition-adapters/dynamic-type-custom-report-definition-abstract.d.ts +1 -0
  105. package/dist/build/types/src/core/modules/reports/dynamic-types/definitions/custom-report-definition-adapters/types/dynamic-type-custom-report-definition-sql-adapter.d.ts +1 -0
  106. package/dist/build/types/src/core/modules/reports/reports-editor/components/report-configuration/report-configuration.styles.d.ts +1 -0
  107. package/dist/build/types/src/core/modules/reports/reports-view/components/report-toolbar/report-toolbar.d.ts +2 -1
  108. package/dist/build/types/src/core/modules/widget-editor/services/widget-context-menu-item-registry.d.ts +23 -0
  109. package/dist/build/types/src/core/modules/widget-manager/title/border-title-view.d.ts +3 -1
  110. package/dist/build/types/src/core/modules/widget-manager/title/tab-title-view.d.ts +3 -1
  111. package/dist/build/types/src/core/modules/widget-manager/widget/title/title-view.d.ts +2 -0
  112. package/dist/build/types/src/core/modules/widget-manager/widget/widget-content-title-container.d.ts +4 -1
  113. package/dist/build/types/src/core/modules/widget-manager/widget/widget-view.d.ts +2 -0
  114. package/dist/build/types/src/core/modules/widget-manager/widget-manager-slice.d.ts +2 -0
  115. package/dist/build/types/src/core/modules/wysiwyg/wysiwyg.styles.d.ts +1 -0
  116. package/dist/build/types/src/core/utils/sizing.d.ts +1 -0
  117. package/dist/build/types/src/core/utils/use-element-overflow.d.ts +1 -1
  118. package/dist/build/types/src/sdk/components/index.d.ts +4 -0
  119. package/dist/build/types/src/sdk/main.d.ts +2 -0
  120. package/dist/build/types/src/sdk/modules/data-object/index.d.ts +1 -0
  121. package/dist/build/types/src/sdk/modules/perspectives/index.d.ts +2 -0
  122. package/package.json +1 -1
@@ -29,6 +29,7 @@ export declare const dynamicTypeRegistriesServiceIds: {
29
29
  'DynamicTypes/IconSet/PimcoreDefault': string;
30
30
  'DynamicTypes/IconSet/Twemoji': string;
31
31
  'DynamicTypes/WidgetEditor/WidgetTypeRegistry': string;
32
+ 'DynamicTypes/FieldDefinitionRegistry': string;
32
33
  };
33
34
  export declare const serviceIds: {
34
35
  'DynamicTypes/FieldFilter/DataObjectAdapter': string;
@@ -244,6 +245,9 @@ export declare const serviceIds: {
244
245
  'Element/ProcessorRegistry/IconProcessor': string;
245
246
  'WidgetManager/ProcessorRegistry/PerspectiveProcessor': string;
246
247
  'AppLoader/Registry': string;
248
+ 'DynamicTypes/FieldDefinition/Block': string;
249
+ 'DynamicTypes/FieldDefinition/Input': string;
250
+ 'DynamicTypes/FieldDefinition/Panel': string;
247
251
  'DynamicTypes/FieldFilterRegistry': string;
248
252
  'DynamicTypes/BatchEditRegistry': string;
249
253
  'DynamicTypes/GridCellRegistry': string;
@@ -265,10 +269,12 @@ export declare const serviceIds: {
265
269
  'DynamicTypes/IconSet/PimcoreDefault': string;
266
270
  'DynamicTypes/IconSet/Twemoji': string;
267
271
  'DynamicTypes/WidgetEditor/WidgetTypeRegistry': string;
272
+ 'DynamicTypes/FieldDefinitionRegistry': string;
268
273
  mainNavRegistry: string;
269
274
  perspectivePermissionProviderRegistry: string;
270
275
  widgetManager: string;
271
276
  widgetRestorerRegistry: string;
277
+ elementTreeWidgetPermissionRegistry: string;
272
278
  backgroundProcessor: string;
273
279
  debouncedFormRegistry: string;
274
280
  globalMessageBusProcess: string;
@@ -306,5 +312,6 @@ export declare const serviceIds: {
306
312
  'Document/Editor/Sidebar/HardlinkSidebarManager': string;
307
313
  'Document/Editor/Sidebar/FolderSidebarManager': string;
308
314
  iconLibrary: string;
315
+ iconColorGroupsRegistry: string;
309
316
  'Grid/TypeRegistry': string;
310
317
  };
@@ -45,3 +45,5 @@ import './modules/application-logger';
45
45
  import './modules/user';
46
46
  import './components/icon-selector';
47
47
  import './modules/about';
48
+ import './modules/class-definition';
49
+ import './modules/field-definitions';
@@ -0,0 +1,21 @@
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
+ import React, { type ReactNode } from 'react';
11
+ import { type Sizings } from '../box/box';
12
+ interface ContentConfigProviderProps {
13
+ children: ReactNode;
14
+ gap?: Sizings;
15
+ }
16
+ interface ContentConfigContextValue {
17
+ gap?: Sizings;
18
+ }
19
+ export declare const ContentConfigProvider: ({ children, gap }: ContentConfigProviderProps) => React.JSX.Element;
20
+ export declare const useContentConfig: () => ContentConfigContextValue;
21
+ export {};
@@ -9,7 +9,7 @@
9
9
  */
10
10
  import React, { type ReactNode } from 'react';
11
11
  import { type INoContentProps } from '../no-content/no-content';
12
- import { type BoxProps } from '../box/box';
12
+ import { type BoxProps, type Sizings } from '../box/box';
13
13
  export type OverflowValue = 'visible' | 'hidden' | 'scroll' | 'auto';
14
14
  export interface ContentProps extends Omit<BoxProps, 'children'> {
15
15
  className?: string;
@@ -24,5 +24,6 @@ export interface ContentProps extends Omit<BoxProps, 'children'> {
24
24
  x: OverflowValue;
25
25
  y: OverflowValue;
26
26
  };
27
+ gap?: Sizings;
27
28
  }
28
- export declare const Content: ({ children, padded, padding, overflow, margin, className, loading, none, centered, noneOptions, fullPage, ...props }: ContentProps) => React.JSX.Element;
29
+ export declare const Content: ({ children, padded, padding, overflow, margin, className, loading, none, centered, noneOptions, fullPage, gap: gapProp, ...props }: ContentProps) => React.JSX.Element;
@@ -7,7 +7,12 @@
7
7
  * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
8
8
  * @license Pimcore Open Core License (POCL)
9
9
  */
10
- export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
10
+ import { type Sizings } from '../../utils/sizing';
11
+ interface ContentStylesProps {
12
+ gap: Sizings;
13
+ }
14
+ export declare const useStyles: (props?: ContentStylesProps | undefined) => import("antd-style").ReturnStyles<{
11
15
  content: import("antd-style").SerializedStyles;
12
16
  contentFullPage: import("antd-style").SerializedStyles;
13
17
  }>;
18
+ export {};
@@ -10,6 +10,7 @@
10
10
  import React, { type ReactNode } from 'react';
11
11
  interface ContentToolbarViewProps {
12
12
  children: ReactNode;
13
+ className?: string;
13
14
  renderTopBar?: ReactNode;
14
15
  renderSidebar?: ReactNode;
15
16
  renderToolbar?: ReactNode;
@@ -31,20 +31,20 @@ export declare const _default: {
31
31
  onOpenChange?: ((open: boolean, info: {
32
32
  source: "trigger" | "menu";
33
33
  }) => void) | undefined;
34
- arrow?: (boolean | import("antd/es/dropdown/dropdown").DropdownArrowOptions) | undefined;
35
- trigger?: ("click" | "hover" | "contextMenu")[] | undefined;
36
- destroyPopupOnHide?: boolean | undefined;
34
+ forceRender?: boolean | undefined;
37
35
  align?: import("@rc-component/trigger").AlignType | undefined;
36
+ onVisibleChange?: ((open: boolean) => void) | undefined;
37
+ mouseLeaveDelay?: number | undefined;
38
+ mouseEnterDelay?: number | undefined;
39
+ trigger?: ("click" | "hover" | "contextMenu")[] | undefined;
40
+ placement?: ("bottom" | "top" | "bottomLeft" | "topLeft" | "topCenter" | "topRight" | "bottomCenter" | "bottomRight") | undefined;
38
41
  transitionName?: string | undefined;
39
- placement?: ("bottom" | "top" | "topLeft" | "topCenter" | "topRight" | "bottomLeft" | "bottomCenter" | "bottomRight") | undefined;
40
- overlayClassName?: string | undefined;
41
42
  overlayStyle?: React.CSSProperties | undefined;
42
- forceRender?: boolean | undefined;
43
- mouseEnterDelay?: number | undefined;
44
- mouseLeaveDelay?: number | undefined;
43
+ overlayClassName?: string | undefined;
44
+ arrow?: (boolean | import("antd/es/dropdown/dropdown").DropdownArrowOptions) | undefined;
45
+ destroyPopupOnHide?: boolean | undefined;
45
46
  openClassName?: string | undefined;
46
47
  autoAdjustOverflow?: (boolean | import("antd/es/tooltip").AdjustOverflow) | undefined;
47
- onVisibleChange?: ((open: boolean) => void) | undefined;
48
48
  };
49
49
  };
50
50
  export declare const Simple: {
@@ -171,6 +171,6 @@ export declare const selectNodeState: ((state: Record<string, any>, treeId: stri
171
171
  dependencyRecomputations: () => number;
172
172
  resetDependencyRecomputations: () => void;
173
173
  } & {
174
- memoize: typeof import("reselect").weakMapMemoize;
175
174
  argsMemoize: typeof import("reselect").weakMapMemoize;
175
+ memoize: typeof import("reselect").weakMapMemoize;
176
176
  };
@@ -10,5 +10,5 @@
10
10
  import { type TreePermission } from '../../../../modules/perspectives/enums/tree-permission';
11
11
  import { type ITreePermissionContext } from './tree-permission-provider';
12
12
  export declare const useTreePermission: () => ITreePermissionContext & {
13
- isTreeActionAllowed: (permission: TreePermission) => boolean;
13
+ isTreeActionAllowed: (permission: TreePermission | string | undefined) => boolean;
14
14
  };
@@ -18,6 +18,7 @@ export interface ColumnMetaType {
18
18
  autoWidth?: boolean;
19
19
  type?: string | ((rowData: any) => string);
20
20
  columnKey?: string;
21
+ tooltip?: string | ((rowData: any) => string | null);
21
22
  config?: any | ((rowData: any) => any);
22
23
  callback?: boolean;
23
24
  editCallback?: (row: any, columnId: string, currentValue: string) => Promise<string>;
@@ -0,0 +1,12 @@
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 type ColorToken = string;
11
+ export type IconColorGroups = Record<string, Record<string, ColorToken>>;
12
+ export declare const defaultIconColorGroups: IconColorGroups;
@@ -0,0 +1,32 @@
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
+ import { type ColorToken } from './default-icon-color-groups';
11
+ export type IconColorGroupName = 'element' | 'fieldDefinition' | string;
12
+ export type IconColorGroup = IconColorGroupName | IconColorGroupName[];
13
+ export type IconColorGroupDefinition = Record<string, ColorToken>;
14
+ export interface IconColorGroupsRegistry {
15
+ registerGroup: (groupName: IconColorGroupName, definitions: IconColorGroupDefinition) => void;
16
+ addToGroup: (groupName: IconColorGroupName, iconName: string, colorToken: ColorToken) => void;
17
+ getGroup: (groupName: IconColorGroupName) => IconColorGroupDefinition | undefined;
18
+ hasGroup: (groupName: IconColorGroupName) => boolean;
19
+ getIconColor: (groupName: IconColorGroupName, iconName: string) => ColorToken | undefined;
20
+ getIconColorValue: (groupName: IconColorGroup, iconName: string, token: Record<string, any>) => string | undefined;
21
+ getAllGroups: () => Record<string, IconColorGroupDefinition>;
22
+ }
23
+ export declare class IconColorGroupsRegistryService implements IconColorGroupsRegistry {
24
+ private readonly groups;
25
+ registerGroup(groupName: IconColorGroupName, definitions: IconColorGroupDefinition): void;
26
+ addToGroup(groupName: IconColorGroupName, iconName: string, colorToken: ColorToken): void;
27
+ getGroup(groupName: IconColorGroupName): IconColorGroupDefinition | undefined;
28
+ hasGroup(groupName: IconColorGroupName): boolean;
29
+ getIconColor(groupName: IconColorGroupName, iconName: string): ColorToken | undefined;
30
+ getIconColorValue(groupName: IconColorGroup, iconName: string, token: Record<string, any>): string | undefined;
31
+ getAllGroups(): Record<string, IconColorGroupDefinition>;
32
+ }
@@ -9,6 +9,7 @@
9
9
  */
10
10
  import React from 'react';
11
11
  import { type ElementIcon } from '../../modules/asset/asset-api-slice.gen';
12
+ import { type IconColorGroup } from './icon-color-groups-registry';
12
13
  type SubIconVariant = 'default' | 'green';
13
14
  export interface IconProps extends Omit<ElementIcon, 'type'> {
14
15
  type?: ElementIcon['type'];
@@ -18,6 +19,7 @@ export interface IconProps extends Omit<ElementIcon, 'type'> {
18
19
  subIconVariant?: SubIconVariant;
19
20
  sphere?: boolean;
20
21
  onLoadError?: (hasError: boolean) => void;
22
+ iconColorGroup?: IconColorGroup;
21
23
  }
22
- export declare const Icon: ({ value, type, options, className, subIconName, subIconVariant, sphere, onLoadError, ...props }: IconProps) => React.JSX.Element;
24
+ export declare const Icon: ({ value, type, options, className, subIconName, subIconVariant, sphere, onLoadError, iconColorGroup, ...props }: IconProps) => React.JSX.Element;
23
25
  export {};
@@ -15,7 +15,7 @@ export interface IframeRef {
15
15
  getIframeElement: () => HTMLIFrameElement | null;
16
16
  getElementRef: () => React.RefObject<HTMLIFrameElement>;
17
17
  }
18
- interface IframeProps extends React.HTMLAttributes<HTMLIFrameElement> {
18
+ export interface IframeProps extends React.HTMLAttributes<HTMLIFrameElement> {
19
19
  src: string;
20
20
  title?: string;
21
21
  loadingTip?: string;
@@ -28,4 +28,3 @@ interface IframeProps extends React.HTMLAttributes<HTMLIFrameElement> {
28
28
  preserveScrollOnReload?: boolean;
29
29
  }
30
30
  export declare const Iframe: React.ForwardRefExoticComponent<IframeProps & React.RefAttributes<IframeRef>>;
31
- export {};
@@ -0,0 +1,21 @@
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
+ import React from 'react';
11
+ import { type IframeProps, type IframeRef } from '../iframe/iframe';
12
+ interface IframeContentProps {
13
+ iframe: IframeProps;
14
+ allowReload?: boolean;
15
+ allowOpen?: boolean;
16
+ toolbar?: React.JSX.Element;
17
+ onReload?: (iframe: IframeRef | null) => void;
18
+ onOpen?: (iframe: IframeRef | null) => void;
19
+ }
20
+ export declare const IframeContent: (props: IframeContentProps) => React.JSX.Element;
21
+ export {};
@@ -10,7 +10,7 @@
10
10
  import React from 'react';
11
11
  import { type ManyToOneRelationValueType } from './many-to-one-relation';
12
12
  export interface PathTargetProps {
13
- value: ManyToOneRelationValueType;
13
+ value?: ManyToOneRelationValueType;
14
14
  disabled?: boolean;
15
15
  allowPathTextInput?: boolean;
16
16
  onChange?: (value: ManyToOneRelationValueType) => void;
@@ -18,5 +18,6 @@ export interface PathTargetProps {
18
18
  combinedFieldName?: string;
19
19
  pathFormatterClass?: string;
20
20
  onSearch?: () => void;
21
+ allowElementTagClose?: boolean;
21
22
  }
22
23
  export declare const PathTarget: React.ForwardRefExoticComponent<PathTargetProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,13 @@
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 declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
11
+ menu: import("antd-style").SerializedStyles;
12
+ submenuPopup: import("antd-style").SerializedStyles;
13
+ }>;
@@ -0,0 +1,32 @@
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
+ import { type IModalProps } from '../../../../sdk/components';
11
+ import React, { type ComponentType, createContext } from 'react';
12
+ export interface OptionalModalProps extends Partial<IModalProps> {
13
+ }
14
+ export interface ModalProviderProps extends OptionalModalProps {
15
+ children: React.ReactNode;
16
+ onOpenChange?: (open: boolean) => void;
17
+ }
18
+ export interface IModalContext extends Partial<IModalProps> {
19
+ open: boolean;
20
+ openModal: () => void;
21
+ closeModal: () => void;
22
+ }
23
+ export interface ModalFactoryItem {
24
+ context: ReturnType<typeof createContext<IModalContext | undefined>>;
25
+ Modal: (props: OptionalModalProps) => React.JSX.Element;
26
+ Provider: ComponentType<ModalProviderProps>;
27
+ useModal: () => IModalContext;
28
+ }
29
+ export interface CreateProps {
30
+ defaultProps?: OptionalModalProps;
31
+ }
32
+ export declare const create: (props?: CreateProps) => ModalFactoryItem;
@@ -50,6 +50,7 @@ export declare const ReadOnly: {
50
50
  autoWidth?: boolean;
51
51
  type?: string | ((rowData: any) => string);
52
52
  columnKey?: string;
53
+ tooltip?: string | ((rowData: any) => string | null);
53
54
  config?: any | ((rowData: any) => any);
54
55
  callback?: boolean;
55
56
  editCallback?: (row: any, columnId: string, currentValue: string) => Promise<string>;
@@ -87,6 +88,7 @@ export declare const ReadOnly: {
87
88
  autoWidth?: boolean;
88
89
  type?: string | ((rowData: any) => string);
89
90
  columnKey?: string;
91
+ tooltip?: string | ((rowData: any) => string | null);
90
92
  config?: any | ((rowData: any) => any);
91
93
  callback?: boolean;
92
94
  editCallback?: (row: any, columnId: string, currentValue: string) => Promise<string>;
@@ -0,0 +1,22 @@
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
+ import React from 'react';
11
+ export interface IVideoContext {
12
+ thumbnail: string;
13
+ setThumbnail: React.Dispatch<React.SetStateAction<string>>;
14
+ playerPosition: number;
15
+ setPlayerPosition: React.Dispatch<React.SetStateAction<number>>;
16
+ }
17
+ interface IVideoProviderProps {
18
+ children: React.ReactNode;
19
+ }
20
+ export declare const VideoProvider: ({ children }: IVideoProviderProps) => React.JSX.Element;
21
+ export declare const useVideoContext: () => IVideoContext;
22
+ export {};
@@ -9,6 +9,7 @@
9
9
  */
10
10
  import React, { type CSSProperties } from 'react';
11
11
  import { type SearchProps as AntSearchProps } from 'antd/es/input/Search';
12
+ import { type InputRef } from 'antd';
12
13
  export interface ISearchInputProps extends AntSearchProps {
13
14
  className?: string;
14
15
  withoutAddon?: boolean;
@@ -17,4 +18,4 @@ export interface ISearchInputProps extends AntSearchProps {
17
18
  maxWidth?: CSSProperties['maxWidth'];
18
19
  searchButtonIcon?: string;
19
20
  }
20
- export declare const SearchInput: ({ className, withoutAddon, withPrefix, withClear, maxWidth, searchButtonIcon, ...props }: ISearchInputProps) => React.JSX.Element;
21
+ export declare const SearchInput: React.ForwardRefExoticComponent<ISearchInputProps & React.RefAttributes<InputRef>>;
@@ -11,4 +11,5 @@ export declare const useStyles: (props?: unknown) => import("antd-style").Return
11
11
  'tool-strip': import("antd-style").SerializedStyles;
12
12
  dragger: import("antd-style").SerializedStyles;
13
13
  'draggable-area': import("antd-style").SerializedStyles;
14
+ title: import("antd-style").SerializedStyles;
14
15
  }>;
@@ -8,12 +8,10 @@
8
8
  * @license Pimcore Open Core License (POCL)
9
9
  */
10
10
  import React from 'react';
11
+ import { type TreeAction } from '../../../sdk/components';
11
12
  export interface ITreeElementItemProps {
12
13
  title: string;
13
- actions?: Array<{
14
- key: string;
15
- icon: string;
16
- }>;
14
+ actions?: TreeAction[];
17
15
  onSelected?: () => void;
18
16
  onActionsClick?: (action: string, title: string) => void;
19
17
  }
@@ -9,29 +9,44 @@
9
9
  */
10
10
  import React, { type Key } from 'react';
11
11
  import { type TreeDataNode, type TreeProps } from 'antd';
12
+ export interface TreeAction {
13
+ key: string;
14
+ icon: string;
15
+ actions?: TreeAction[];
16
+ }
12
17
  export interface TreeDataItem extends TreeDataNode {
13
- actions?: Array<{
14
- key: string;
15
- icon: string;
16
- }>;
17
- allowDrop?: boolean;
18
- allowDrag?: boolean;
18
+ actions?: TreeAction[];
19
+ meta?: Record<string, any>;
20
+ allowDrop?: boolean | ((params: {
21
+ dropNode: TreeDataItem;
22
+ dropPosition: number;
23
+ dragNode: TreeDataItem;
24
+ }) => boolean);
25
+ allowDrag?: boolean | ((params: {
26
+ node: TreeDataItem;
27
+ }) => boolean);
19
28
  }
20
- interface ITreeElementProps extends TreeProps {
29
+ type OriginalTitleRender = NonNullable<TreeProps['titleRender']>;
30
+ type ExtendedTitleRender = (node: Parameters<OriginalTitleRender>[0], initialComponent: React.ReactElement) => ReturnType<OriginalTitleRender>;
31
+ export interface ITreeElementProps extends Omit<TreeProps, 'titleRender'> {
21
32
  treeData: TreeDataItem[];
22
33
  className?: string;
23
- onActionsClick?: (key: string, action: string) => void;
34
+ onActionsClick?: (key: string, action: string, node: TreeDataItem) => void;
24
35
  onDragAndDrop?: (params: {
25
36
  node: TreeDataItem;
26
37
  dragNode: TreeDataItem;
27
38
  dropPosition: number;
39
+ dropToGap: boolean;
28
40
  }) => void;
29
- onSelected?: (key: any) => void;
41
+ selectedKeys?: Key[];
42
+ onSelected?: (key: any, node: TreeDataItem) => void;
30
43
  onLoadData?: (node: any) => Promise<any>;
31
44
  onExpand?: (keys: Key[]) => void;
32
45
  withCustomSwitcherIcon?: boolean;
33
46
  isHideRootChecker?: boolean;
47
+ defaultExpandAll?: boolean;
34
48
  hasRoot?: boolean;
49
+ titleRender?: ExtendedTitleRender;
35
50
  }
36
51
  declare const TreeElement: (props: ITreeElementProps) => React.JSX.Element;
37
52
  export { TreeElement };
@@ -0,0 +1,15 @@
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
+ import React from 'react';
11
+ interface IAboutDialogWrapperProps {
12
+ children: React.ReactNode;
13
+ }
14
+ export declare const AboutDialogWrapper: ({ children }: IAboutDialogWrapperProps) => React.JSX.Element;
15
+ export {};
@@ -0,0 +1,18 @@
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
+ import React from 'react';
11
+ interface IAboutDialogContext {
12
+ open: () => void;
13
+ }
14
+ export declare const AboutDialogProvider: ({ children }: {
15
+ children: React.ReactNode;
16
+ }) => React.JSX.Element;
17
+ export declare const useAboutDialogContext: () => IAboutDialogContext;
18
+ export {};
@@ -8,7 +8,6 @@
8
8
  * @license Pimcore Open Core License (POCL)
9
9
  */
10
10
  import { type WidgetManagerTabConfig } from '../../../../../modules/widget-manager/widget-manager-slice';
11
- import type React from 'react';
12
11
  export interface IMainNavItem {
13
12
  path: string;
14
13
  order?: number;
@@ -22,10 +21,15 @@ export interface IMainNavItem {
22
21
  permission?: string;
23
22
  perspectivePermission?: string;
24
23
  perspectivePermissionHide?: string;
25
- onClick?: () => void;
26
- button?: (props: {
27
- closeMainNav: () => void;
28
- }) => React.JSX.Element;
24
+ useCustomMainNavItem?: () => {
25
+ onClick: () => void;
26
+ name?: string;
27
+ icon?: string | {
28
+ type: string;
29
+ value: string;
30
+ };
31
+ translationKey?: string;
32
+ };
29
33
  widgetConfig?: WidgetManagerTabConfig;
30
34
  className?: string;
31
35
  hidden?: () => boolean;
@@ -69,6 +69,7 @@ export declare const contextMenuConfig: {
69
69
  priority: {
70
70
  rename: number;
71
71
  delete: number;
72
+ uploadNewVersion: number;
72
73
  download: number;
73
74
  zipDownload: number;
74
75
  clearImageThumbnail: number;
@@ -62,6 +62,46 @@ export declare const studioDefaultLightThemeConfig: {
62
62
  colorBorderInverse: string;
63
63
  colorDividerInverse: string;
64
64
  colorInactiveInverse: string;
65
+ colorCodingRed1: string;
66
+ colorCodingRed2: string;
67
+ colorCodingRed3: string;
68
+ colorCodingRed4: string;
69
+ colorCodingRed5: string;
70
+ colorCodingRed6: string;
71
+ colorCodingBeige1: string;
72
+ colorCodingBeige2: string;
73
+ colorCodingBeige3: string;
74
+ colorCodingGold1: string;
75
+ colorCodingGold2: string;
76
+ colorCodingGold3: string;
77
+ colorCodingOrange1: string;
78
+ colorCodingOrange2: string;
79
+ colorCodingOrange3: string;
80
+ colorCodingGreen1: string;
81
+ colorCodingGreen2: string;
82
+ colorCodingGreen3: string;
83
+ colorCodingGreen4: string;
84
+ colorCodingGreen5: string;
85
+ colorCodingMint1: string;
86
+ colorCodingMint2: string;
87
+ colorCodingMint3: string;
88
+ colorCodingBlue1: string;
89
+ colorCodingBlue2: string;
90
+ colorCodingBlue3: string;
91
+ colorCodingBlue4: string;
92
+ colorCodingPurple1: string;
93
+ colorCodingPurple2: string;
94
+ colorCodingPurple3: string;
95
+ colorCodingPurple4: string;
96
+ colorCodingViolet1: string;
97
+ colorCodingViolet2: string;
98
+ colorCodingViolet3: string;
99
+ colorCodingViolet4: string;
100
+ colorCodingViolet5: string;
101
+ colorCodingMagenta1: string;
102
+ colorCodingMagenta2: string;
103
+ colorCodingMagenta3: string;
104
+ colorCodingMagenta4: string;
65
105
  fontFamily: string;
66
106
  };
67
107
  components: {
@@ -0,0 +1,16 @@
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
+ import React from 'react';
11
+ export interface AutoHideEmptyContentProps {
12
+ children: React.ReactNode;
13
+ contentSelector: string;
14
+ parentSelector?: string;
15
+ }
16
+ export declare const AutoHideEmptyContent: ({ children, contentSelector, parentSelector }: AutoHideEmptyContentProps) => React.JSX.Element;
@@ -0,0 +1,14 @@
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 declare const useStyles: (props?: {
11
+ contentSelector: string;
12
+ } | undefined) => import("antd-style").ReturnStyles<{
13
+ wrapper: import("antd-style").SerializedStyles;
14
+ }>;
@@ -0,0 +1,17 @@
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
+ interface UseHideParentWhenHiddenOptions {
11
+ parentSelector?: string;
12
+ }
13
+ interface UseHideParentWhenHiddenResult<T extends HTMLElement> {
14
+ ref: React.RefObject<T>;
15
+ }
16
+ export declare function useHideParentWhenHidden<T extends HTMLElement = HTMLDivElement>(options: UseHideParentWhenHiddenOptions): UseHideParentWhenHiddenResult<T>;
17
+ export {};