@umbraco-cms/backoffice 14.0.0--preview005-c7e32bb7 → 14.0.0--preview005-88d5dedc
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-cms/packages/block/block/workspace/views/edit/block-workspace-view-edit-properties.element.d.ts +3 -3
- package/dist-cms/packages/core/content-type/content-type-container-structure-helper.class.d.ts +9 -10
- package/dist-cms/packages/core/content-type/content-type-property-structure-helper.class.d.ts +4 -4
- package/dist-cms/packages/core/content-type/content-type-structure-manager.class.d.ts +13 -15
- package/dist-cms/packages/core/content-type/content-type-structure-manager.class.js +0 -2
- package/dist-cms/packages/core/content-type/types.d.ts +10 -2
- package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-properties.element.d.ts +3 -3
- package/dist-cms/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-properties.element.d.ts +3 -3
- package/dist-cms/packages/media/media-types/workspace/views/design/media-type-workspace-view-edit-properties.element.d.ts +3 -3
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UmbBlockWorkspaceElementManagerNames } from '../../block-workspace.context.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { UmbPropertyContainerTypes, UmbPropertyTypeModel } from '../../../../../core/content-type/index.js';
|
|
3
3
|
import { UmbLitElement } from '../../../../../../shared/lit-element/index.js';
|
|
4
4
|
export declare class UmbBlockWorkspaceViewEditPropertiesElement extends UmbLitElement {
|
|
5
5
|
#private;
|
|
@@ -7,8 +7,8 @@ export declare class UmbBlockWorkspaceViewEditPropertiesElement extends UmbLitEl
|
|
|
7
7
|
set managerName(value: UmbBlockWorkspaceElementManagerNames | undefined);
|
|
8
8
|
get containerName(): string | undefined;
|
|
9
9
|
set containerName(value: string | undefined);
|
|
10
|
-
get containerType():
|
|
11
|
-
set containerType(value:
|
|
10
|
+
get containerType(): UmbPropertyContainerTypes | undefined;
|
|
11
|
+
set containerType(value: UmbPropertyContainerTypes | undefined);
|
|
12
12
|
_propertyStructure: Array<UmbPropertyTypeModel>;
|
|
13
13
|
constructor();
|
|
14
14
|
render(): unknown;
|
package/dist-cms/packages/core/content-type/content-type-container-structure-helper.class.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { UmbContentTypeModel } from './types.js';
|
|
3
|
-
import type { PropertyTypeContainerModelBaseModel } from '../../../external/backend-api/index.js';
|
|
1
|
+
import type { UmbContentTypePropertyStructureManager } from './content-type-structure-manager.class.js';
|
|
2
|
+
import type { UmbContentTypeModel, UmbPropertyContainerTypes, UmbPropertyTypeContainerModel } from './types.js';
|
|
4
3
|
import type { UmbControllerHostElement } from '../../../libs/controller-api/index.js';
|
|
5
4
|
export declare class UmbContentTypeContainerStructureHelper<T extends UmbContentTypeModel> {
|
|
6
5
|
#private;
|
|
@@ -15,14 +14,14 @@ export declare class UmbContentTypeContainerStructureHelper<T extends UmbContent
|
|
|
15
14
|
private _ownerName?;
|
|
16
15
|
private _ownerAlikeContainers;
|
|
17
16
|
private _ownerContainers;
|
|
18
|
-
readonly containers: import("rxjs").Observable<
|
|
17
|
+
readonly containers: import("rxjs").Observable<UmbPropertyTypeContainerModel[]>;
|
|
19
18
|
readonly hasProperties: import("rxjs").Observable<boolean>;
|
|
20
19
|
constructor(host: UmbControllerHostElement);
|
|
21
20
|
setStructureManager(structure: UmbContentTypePropertyStructureManager<T>): void;
|
|
22
|
-
setType(value?:
|
|
23
|
-
getType():
|
|
24
|
-
setContainerChildType(value?:
|
|
25
|
-
getContainerChildType():
|
|
21
|
+
setType(value?: UmbPropertyContainerTypes): void;
|
|
22
|
+
getType(): UmbPropertyContainerTypes | undefined;
|
|
23
|
+
setContainerChildType(value?: UmbPropertyContainerTypes): void;
|
|
24
|
+
getContainerChildType(): UmbPropertyContainerTypes | undefined;
|
|
26
25
|
setName(value?: string): void;
|
|
27
26
|
getName(): string | undefined;
|
|
28
27
|
setIsRoot(value: boolean): void;
|
|
@@ -43,9 +42,9 @@ export declare class UmbContentTypeContainerStructureHelper<T extends UmbContent
|
|
|
43
42
|
*/
|
|
44
43
|
isOwnerChildContainer(containerId?: string): boolean | undefined;
|
|
45
44
|
/** Manipulate methods: */
|
|
46
|
-
insertContainer(container:
|
|
45
|
+
insertContainer(container: UmbPropertyTypeContainerModel, sortOrder?: number): Promise<boolean>;
|
|
47
46
|
addContainer(parentContainerId?: string | null, sortOrder?: number): Promise<void>;
|
|
48
47
|
removeContainer(groupId: string): Promise<boolean>;
|
|
49
|
-
partialUpdateContainer(containerId: string, partialUpdate: Partial<
|
|
48
|
+
partialUpdateContainer(containerId: string, partialUpdate: Partial<UmbPropertyTypeContainerModel>): Promise<void>;
|
|
50
49
|
updateContainerName(containerId: string, containerParentId: string | null, name: string): Promise<void>;
|
|
51
50
|
}
|
package/dist-cms/packages/core/content-type/content-type-property-structure-helper.class.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { UmbContentTypeModel, UmbPropertyTypeModel } from './types.js';
|
|
1
|
+
import type { UmbContentTypePropertyStructureManager } from './content-type-structure-manager.class.js';
|
|
2
|
+
import type { UmbContentTypeModel, UmbPropertyContainerTypes, UmbPropertyTypeModel } from './types.js';
|
|
3
3
|
import type { UmbControllerHostElement } from '../../../libs/controller-api/index.js';
|
|
4
4
|
export declare class UmbContentTypePropertyStructureHelper<T extends UmbContentTypeModel> {
|
|
5
5
|
#private;
|
|
@@ -10,8 +10,8 @@ export declare class UmbContentTypePropertyStructureHelper<T extends UmbContentT
|
|
|
10
10
|
constructor(host: UmbControllerHostElement);
|
|
11
11
|
get ownerDocumentTypes(): import("rxjs").Observable<T[]> | undefined;
|
|
12
12
|
setStructureManager(structure: UmbContentTypePropertyStructureManager<T>): void;
|
|
13
|
-
setContainerType(value?:
|
|
14
|
-
getContainerType():
|
|
13
|
+
setContainerType(value?: UmbPropertyContainerTypes): void;
|
|
14
|
+
getContainerType(): UmbPropertyContainerTypes | undefined;
|
|
15
15
|
setContainerName(value?: string): void;
|
|
16
16
|
getContainerName(): string | undefined;
|
|
17
17
|
setIsRoot(value: boolean): void;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import type { UmbContentTypeModel, UmbPropertyTypeModel } from './types.js';
|
|
1
|
+
import type { UmbContentTypeModel, UmbPropertyContainerTypes, UmbPropertyTypeContainerModel, UmbPropertyTypeModel } from './types.js';
|
|
2
2
|
import type { UmbDetailRepository } from '../repository/index.js';
|
|
3
|
-
import type { PropertyTypeContainerModelBaseModel } from '../../../external/backend-api/index.js';
|
|
4
3
|
import type { UmbControllerHost } from '../../../libs/controller-api/index.js';
|
|
5
4
|
import type { MappingFunction } from '../../../libs/observable-api/index.js';
|
|
6
5
|
import { UmbBaseController } from '../../../libs/class-api/index.js';
|
|
7
|
-
export type PropertyContainerTypes = 'Group' | 'Tab';
|
|
8
6
|
export declare class UmbContentTypePropertyStructureManager<T extends UmbContentTypeModel> extends UmbBaseController {
|
|
9
7
|
#private;
|
|
10
8
|
readonly contentTypes: import("rxjs").Observable<T[]>;
|
|
@@ -42,10 +40,10 @@ export declare class UmbContentTypePropertyStructureManager<T extends UmbContent
|
|
|
42
40
|
ownerContentType(): import("rxjs").Observable<T | undefined>;
|
|
43
41
|
getOwnerContentType(): T | undefined;
|
|
44
42
|
updateOwnerContentType(entry: Partial<T>): void;
|
|
45
|
-
createContainer(contentTypeUnique: string | null, parentId?: string | null, type?:
|
|
46
|
-
insertContainer(contentTypeUnique: string | null, container:
|
|
47
|
-
makeContainerNameUniqueForOwnerContentType(newName: string, containerType?:
|
|
48
|
-
updateContainer(contentTypeUnique: string | null, containerId: string, partialUpdate: Partial<
|
|
43
|
+
createContainer(contentTypeUnique: string | null, parentId?: string | null, type?: UmbPropertyContainerTypes, sortOrder?: number): Promise<UmbPropertyTypeContainerModel>;
|
|
44
|
+
insertContainer(contentTypeUnique: string | null, container: UmbPropertyTypeContainerModel): Promise<void>;
|
|
45
|
+
makeContainerNameUniqueForOwnerContentType(newName: string, containerType?: UmbPropertyContainerTypes, parentId?: string | null): string | null;
|
|
46
|
+
updateContainer(contentTypeUnique: string | null, containerId: string, partialUpdate: Partial<UmbPropertyTypeContainerModel>): Promise<void>;
|
|
49
47
|
removeContainer(contentTypeUnique: string | null, containerId?: string | null): Promise<void>;
|
|
50
48
|
createPropertyScaffold(containerId?: string | null, sortOrder?: number): UmbPropertyTypeModel;
|
|
51
49
|
createProperty(contentTypeUnique: string | null, containerId?: string | null, sortOrder?: number): Promise<UmbPropertyTypeModel>;
|
|
@@ -60,14 +58,14 @@ export declare class UmbContentTypePropertyStructureManager<T extends UmbContent
|
|
|
60
58
|
hasPropertyStructuresOf(containerId: string | null): import("rxjs").Observable<boolean>;
|
|
61
59
|
rootPropertyStructures(): import("rxjs").Observable<UmbPropertyTypeModel[]>;
|
|
62
60
|
propertyStructuresOf(containerId: string | null): import("rxjs").Observable<UmbPropertyTypeModel[]>;
|
|
63
|
-
rootContainers(containerType:
|
|
64
|
-
getRootContainers(containerType:
|
|
65
|
-
hasRootContainers(containerType:
|
|
66
|
-
ownerContainersOf(containerType:
|
|
67
|
-
getOwnerContainers(containerType:
|
|
68
|
-
isOwnerContainer(containerId: string):
|
|
69
|
-
containersOfParentKey(parentId: string, containerType:
|
|
70
|
-
containersByNameAndType(name: string, containerType:
|
|
61
|
+
rootContainers(containerType: UmbPropertyContainerTypes): import("rxjs").Observable<UmbPropertyTypeContainerModel[]>;
|
|
62
|
+
getRootContainers(containerType: UmbPropertyContainerTypes): UmbPropertyTypeContainerModel[];
|
|
63
|
+
hasRootContainers(containerType: UmbPropertyContainerTypes): import("rxjs").Observable<boolean>;
|
|
64
|
+
ownerContainersOf(containerType: UmbPropertyContainerTypes): import("rxjs").Observable<UmbPropertyTypeContainerModel[] | undefined>;
|
|
65
|
+
getOwnerContainers(containerType: UmbPropertyContainerTypes, parentId?: string | null): UmbPropertyTypeContainerModel[] | undefined;
|
|
66
|
+
isOwnerContainer(containerId: string): UmbPropertyTypeContainerModel[] | undefined;
|
|
67
|
+
containersOfParentKey(parentId: string, containerType: UmbPropertyContainerTypes): import("rxjs").Observable<UmbPropertyTypeContainerModel[]>;
|
|
68
|
+
containersByNameAndType(name: string, containerType: UmbPropertyContainerTypes): import("rxjs").Observable<UmbPropertyTypeContainerModel[]>;
|
|
71
69
|
private _reset;
|
|
72
70
|
destroy(): void;
|
|
73
71
|
}
|
|
@@ -14,8 +14,6 @@ import { UmbId } from '../id/index.js';
|
|
|
14
14
|
import { UmbArrayState, partialUpdateFrozenArray, appendToFrozenArray, filterFrozenArray, } from '../../../libs/observable-api/index.js';
|
|
15
15
|
import { incrementString } from '../../../shared/utils/index.js';
|
|
16
16
|
import { UmbBaseController } from '../../../libs/class-api/index.js';
|
|
17
|
-
// TODO: get this type from the repository, or use some generic type.
|
|
18
|
-
// TODO: Make this a controller on its own:
|
|
19
17
|
export class UmbContentTypePropertyStructureManager extends UmbBaseController {
|
|
20
18
|
constructor(host, typeRepository) {
|
|
21
19
|
super(host);
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CompositionTypeModel, PropertyTypeModelBaseModel, ReferenceByIdModel } from '../../../external/backend-api/index.js';
|
|
2
|
+
export type UmbPropertyContainerTypes = 'Group' | 'Tab';
|
|
3
|
+
export interface UmbPropertyTypeContainerModel {
|
|
4
|
+
id: string;
|
|
5
|
+
parent?: ReferenceByIdModel | null;
|
|
6
|
+
name?: string | null;
|
|
7
|
+
type: UmbPropertyContainerTypes;
|
|
8
|
+
sortOrder: number;
|
|
9
|
+
}
|
|
2
10
|
export interface UmbContentTypeModel {
|
|
3
11
|
unique: string;
|
|
4
12
|
parentUnique: string | null;
|
|
@@ -11,7 +19,7 @@ export interface UmbContentTypeModel {
|
|
|
11
19
|
variesBySegment: boolean;
|
|
12
20
|
isElement: boolean;
|
|
13
21
|
properties: Array<UmbPropertyTypeModel>;
|
|
14
|
-
containers: Array<
|
|
22
|
+
containers: Array<UmbPropertyTypeContainerModel>;
|
|
15
23
|
allowedContentTypes: Array<UmbContentTypeSortModel>;
|
|
16
24
|
compositions: Array<UmbContentTypeCompositionModel>;
|
|
17
25
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './document-type-workspace-view-edit-property.element.js';
|
|
2
2
|
import type { UmbDocumentTypeDetailModel } from '../../../types.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { UmbPropertyContainerTypes, UmbPropertyTypeModel } from '../../../../../core/content-type/index.js';
|
|
4
4
|
import { UmbContentTypePropertyStructureHelper } from '../../../../../core/content-type/index.js';
|
|
5
5
|
import { UmbLitElement } from '../../../../../../shared/lit-element/index.js';
|
|
6
6
|
export declare class UmbDocumentTypeWorkspaceViewEditPropertiesElement extends UmbLitElement {
|
|
@@ -10,8 +10,8 @@ export declare class UmbDocumentTypeWorkspaceViewEditPropertiesElement extends U
|
|
|
10
10
|
set containerId(value: string | undefined);
|
|
11
11
|
get containerName(): string | undefined;
|
|
12
12
|
set containerName(value: string | undefined);
|
|
13
|
-
get containerType():
|
|
14
|
-
set containerType(value:
|
|
13
|
+
get containerType(): UmbPropertyContainerTypes | undefined;
|
|
14
|
+
set containerType(value: UmbPropertyContainerTypes | undefined);
|
|
15
15
|
_propertyStructureHelper: UmbContentTypePropertyStructureHelper<UmbDocumentTypeDetailModel>;
|
|
16
16
|
_propertyStructure: Array<UmbPropertyTypeModel>;
|
|
17
17
|
_ownerDocumentTypes?: UmbDocumentTypeDetailModel[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UmbPropertyContainerTypes, UmbPropertyTypeModel } from '../../../../../core/content-type/index.js';
|
|
2
2
|
import { UmbContentTypePropertyStructureHelper } from '../../../../../core/content-type/index.js';
|
|
3
3
|
import { UmbLitElement } from '../../../../../../shared/lit-element/index.js';
|
|
4
4
|
export declare class UmbDocumentWorkspaceViewEditPropertiesElement extends UmbLitElement {
|
|
5
5
|
get containerName(): string | undefined;
|
|
6
6
|
set containerName(value: string | undefined);
|
|
7
|
-
get containerType():
|
|
8
|
-
set containerType(value:
|
|
7
|
+
get containerType(): UmbPropertyContainerTypes | undefined;
|
|
8
|
+
set containerType(value: UmbPropertyContainerTypes | undefined);
|
|
9
9
|
_propertyStructureHelper: UmbContentTypePropertyStructureHelper<any>;
|
|
10
10
|
_propertyStructure: Array<UmbPropertyTypeModel>;
|
|
11
11
|
constructor();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './media-type-workspace-view-edit-property.element.js';
|
|
2
2
|
import type { UmbMediaTypeDetailModel } from '../../../types.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { UmbPropertyContainerTypes, UmbPropertyTypeModel } from '../../../../../core/content-type/index.js';
|
|
4
4
|
import { UmbContentTypePropertyStructureHelper } from '../../../../../core/content-type/index.js';
|
|
5
5
|
import { UmbLitElement } from '../../../../../../shared/lit-element/index.js';
|
|
6
6
|
export declare class UmbMediaTypeWorkspaceViewEditPropertiesElement extends UmbLitElement {
|
|
@@ -10,8 +10,8 @@ export declare class UmbMediaTypeWorkspaceViewEditPropertiesElement extends UmbL
|
|
|
10
10
|
set containerId(value: string | undefined);
|
|
11
11
|
get containerName(): string | undefined;
|
|
12
12
|
set containerName(value: string | undefined);
|
|
13
|
-
get containerType():
|
|
14
|
-
set containerType(value:
|
|
13
|
+
get containerType(): UmbPropertyContainerTypes | undefined;
|
|
14
|
+
set containerType(value: UmbPropertyContainerTypes | undefined);
|
|
15
15
|
_propertyStructureHelper: UmbContentTypePropertyStructureHelper<UmbMediaTypeDetailModel>;
|
|
16
16
|
_propertyStructure: Array<UmbPropertyTypeModel>;
|
|
17
17
|
_ownerMediaTypes?: UmbMediaTypeDetailModel[];
|