@umbraco-cms/backoffice 1.0.0-next.bf0e5e95 → 1.0.0-next.d01c4274
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/context-api.d.ts +71 -1
- package/custom-elements.json +105 -35
- package/entity-action.d.ts +19 -2
- package/modal.d.ts +38 -2
- package/models.d.ts +6 -1
- package/observable-api.d.ts +17 -2
- package/package.json +1 -1
- package/repository.d.ts +38 -8
- package/vscode-html-custom-data.json +54 -28
- package/workspace.d.ts +10 -3
package/context-api.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { UmbControllerHostElement, UmbControllerInterface } from './controller';
|
|
2
|
+
import { UmbWorkspaceContextInterface } from './workspace';
|
|
3
|
+
import { BaseEntity } from './models';
|
|
2
4
|
|
|
3
5
|
declare class UmbContextToken<T = unknown> {
|
|
4
6
|
protected alias: string;
|
|
@@ -162,4 +164,72 @@ declare class UmbContextProvideEventImplementation extends Event implements UmbC
|
|
|
162
164
|
}
|
|
163
165
|
declare const isUmbContextProvideEventType: (event: Event) => event is UmbContextProvideEventImplementation;
|
|
164
166
|
|
|
165
|
-
|
|
167
|
+
interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWorkspaceContextInterface<EntityType> {
|
|
168
|
+
getEntityKey(): string | undefined;
|
|
169
|
+
getEntityType(): string;
|
|
170
|
+
save(): Promise<void>;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
declare const UMB_ENTITY_WORKSPACE_CONTEXT: UmbContextToken<UmbEntityWorkspaceContextInterface<BaseEntity>>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Change the collection of Contexts into a simplified array of data
|
|
177
|
+
*
|
|
178
|
+
* @param contexts This is a map of the collected contexts from umb-debug
|
|
179
|
+
* @returns An array of simplified context data
|
|
180
|
+
*/
|
|
181
|
+
declare function contextData(contexts: Map<any, any>): Array<DebugContextData>;
|
|
182
|
+
interface DebugContextData {
|
|
183
|
+
/**
|
|
184
|
+
* The alias of the context
|
|
185
|
+
*
|
|
186
|
+
* @type {string}
|
|
187
|
+
* @memberof DebugContextData
|
|
188
|
+
*/
|
|
189
|
+
alias: string;
|
|
190
|
+
/**
|
|
191
|
+
* The type of the context such as object or string
|
|
192
|
+
*
|
|
193
|
+
* @type {("string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function")}
|
|
194
|
+
* @memberof DebugContextData
|
|
195
|
+
*/
|
|
196
|
+
type: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
|
|
197
|
+
/**
|
|
198
|
+
* Data about the context that includes method and property names
|
|
199
|
+
*
|
|
200
|
+
* @type {DebugContextItemData}
|
|
201
|
+
* @memberof DebugContextData
|
|
202
|
+
*/
|
|
203
|
+
data: DebugContextItemData;
|
|
204
|
+
}
|
|
205
|
+
interface DebugContextItemData {
|
|
206
|
+
type: string;
|
|
207
|
+
methods?: Array<unknown>;
|
|
208
|
+
properties?: Array<DebugContextItemPropertyData>;
|
|
209
|
+
value?: unknown;
|
|
210
|
+
}
|
|
211
|
+
interface DebugContextItemPropertyData {
|
|
212
|
+
/**
|
|
213
|
+
* The name of the property
|
|
214
|
+
*
|
|
215
|
+
* @type {string}
|
|
216
|
+
* @memberof DebugContextItemPropertyData
|
|
217
|
+
*/
|
|
218
|
+
key: string;
|
|
219
|
+
/**
|
|
220
|
+
* The type of the property's value such as string or number
|
|
221
|
+
*
|
|
222
|
+
* @type {("string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function")}
|
|
223
|
+
* @memberof DebugContextItemPropertyData
|
|
224
|
+
*/
|
|
225
|
+
type: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
|
|
226
|
+
/**
|
|
227
|
+
* Simple types such as string or number can have their value displayed stored inside the property
|
|
228
|
+
*
|
|
229
|
+
* @type {("string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function")}
|
|
230
|
+
* @memberof DebugContextItemPropertyData
|
|
231
|
+
*/
|
|
232
|
+
value?: unknown;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export { DebugContextData, DebugContextItemData, DebugContextItemPropertyData, UMB_ENTITY_WORKSPACE_CONTEXT, UmbContextCallback, UmbContextConsumer, UmbContextConsumerController, UmbContextDebugRequest, UmbContextProvideEvent, UmbContextProvideEventImplementation, UmbContextProvider, UmbContextProviderController, UmbContextRequestEvent, UmbContextRequestEventImplementation, UmbContextToken, contextData, isUmbContextProvideEventType, isUmbContextRequestEvent, umbContextProvideEventType, umbContextRequestEventType, umbDebugContextEventType };
|
package/custom-elements.json
CHANGED
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
"name": "umb-document-type-workspace-
|
|
111
|
-
"path": "./src/backoffice/documents/document-types/workspace/document-type-workspace-
|
|
110
|
+
"name": "umb-document-type-workspace-editor",
|
|
111
|
+
"path": "./src/backoffice/documents/document-types/workspace/document-type-workspace-editor.element.ts",
|
|
112
112
|
"properties": [
|
|
113
113
|
{
|
|
114
114
|
"name": "styles",
|
|
@@ -129,8 +129,8 @@
|
|
|
129
129
|
]
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
|
-
"name": "umb-workspace-view-
|
|
133
|
-
"path": "./src/backoffice/documents/document-types/workspace/views/design/workspace-view-
|
|
132
|
+
"name": "umb-document-type-workspace-view-design",
|
|
133
|
+
"path": "./src/backoffice/documents/document-types/workspace/views/design/document-type-workspace-view-design.element.ts",
|
|
134
134
|
"properties": [
|
|
135
135
|
{
|
|
136
136
|
"name": "styles",
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
]
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
|
-
"name": "umb-workspace-view-
|
|
144
|
-
"path": "./src/backoffice/documents/document-types/workspace/views/
|
|
143
|
+
"name": "umb-document-type-workspace-view-details",
|
|
144
|
+
"path": "./src/backoffice/documents/document-types/workspace/views/details/document-type-workspace-view-details.element.ts",
|
|
145
145
|
"properties": [
|
|
146
146
|
{
|
|
147
147
|
"name": "styles",
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
]
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"name": "umb-workspace-view-
|
|
155
|
-
"path": "./src/backoffice/documents/document-types/workspace/views/
|
|
154
|
+
"name": "umb-document-type-workspace-view-structure",
|
|
155
|
+
"path": "./src/backoffice/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts",
|
|
156
156
|
"properties": [
|
|
157
157
|
{
|
|
158
158
|
"name": "styles",
|
|
@@ -162,8 +162,8 @@
|
|
|
162
162
|
]
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
|
-
"name": "umb-workspace-view-
|
|
166
|
-
"path": "./src/backoffice/documents/document-types/workspace/views/templates/workspace-view-
|
|
165
|
+
"name": "umb-document-type-workspace-view-templates",
|
|
166
|
+
"path": "./src/backoffice/documents/document-types/workspace/views/templates/document-type-workspace-view-templates.element.ts",
|
|
167
167
|
"properties": [
|
|
168
168
|
{
|
|
169
169
|
"name": "styles",
|
|
@@ -257,8 +257,8 @@
|
|
|
257
257
|
]
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
|
-
"name": "umb-document-workspace-
|
|
261
|
-
"path": "./src/backoffice/documents/documents/workspace/document-workspace-
|
|
260
|
+
"name": "umb-document-workspace-editor",
|
|
261
|
+
"path": "./src/backoffice/documents/documents/workspace/document-workspace-editor.element.ts",
|
|
262
262
|
"properties": [
|
|
263
263
|
{
|
|
264
264
|
"name": "styles",
|
|
@@ -943,6 +943,17 @@
|
|
|
943
943
|
}
|
|
944
944
|
]
|
|
945
945
|
},
|
|
946
|
+
{
|
|
947
|
+
"name": "umb-create-data-type-modal",
|
|
948
|
+
"path": "./src/backoffice/settings/data-types/entity-actions/create/modal/create-data-type-modal.element.ts",
|
|
949
|
+
"properties": [
|
|
950
|
+
{
|
|
951
|
+
"name": "styles",
|
|
952
|
+
"type": "CSSResult[]",
|
|
953
|
+
"default": "[\"UUITextStyles\"]"
|
|
954
|
+
}
|
|
955
|
+
]
|
|
956
|
+
},
|
|
946
957
|
{
|
|
947
958
|
"name": "umb-data-type-workspace-edit-element",
|
|
948
959
|
"path": "./src/backoffice/settings/data-types/workspace/data-type-workspace-edit.element.ts",
|
|
@@ -1845,7 +1856,7 @@
|
|
|
1845
1856
|
"path": "./src/backoffice/shared/components/debug/debug.element.ts",
|
|
1846
1857
|
"attributes": [
|
|
1847
1858
|
{
|
|
1848
|
-
"name": "
|
|
1859
|
+
"name": "visible",
|
|
1849
1860
|
"type": "boolean",
|
|
1850
1861
|
"default": "false"
|
|
1851
1862
|
},
|
|
@@ -1853,11 +1864,6 @@
|
|
|
1853
1864
|
"name": "dialog",
|
|
1854
1865
|
"type": "boolean",
|
|
1855
1866
|
"default": "false"
|
|
1856
|
-
},
|
|
1857
|
-
{
|
|
1858
|
-
"name": "contexts",
|
|
1859
|
-
"type": "Map<any, any>",
|
|
1860
|
-
"default": "\"new Map()\""
|
|
1861
1867
|
}
|
|
1862
1868
|
],
|
|
1863
1869
|
"properties": [
|
|
@@ -1867,8 +1873,8 @@
|
|
|
1867
1873
|
"default": "[\"UUITextStyles\",null]"
|
|
1868
1874
|
},
|
|
1869
1875
|
{
|
|
1870
|
-
"name": "
|
|
1871
|
-
"attribute": "
|
|
1876
|
+
"name": "visible",
|
|
1877
|
+
"attribute": "visible",
|
|
1872
1878
|
"type": "boolean",
|
|
1873
1879
|
"default": "false"
|
|
1874
1880
|
},
|
|
@@ -1879,10 +1885,9 @@
|
|
|
1879
1885
|
"default": "false"
|
|
1880
1886
|
},
|
|
1881
1887
|
{
|
|
1882
|
-
"name": "
|
|
1883
|
-
"
|
|
1884
|
-
"
|
|
1885
|
-
"default": "\"new Map()\""
|
|
1888
|
+
"name": "contextData",
|
|
1889
|
+
"type": "array",
|
|
1890
|
+
"default": "\"Array<DebugContextData>()\""
|
|
1886
1891
|
}
|
|
1887
1892
|
]
|
|
1888
1893
|
},
|
|
@@ -2179,7 +2184,7 @@
|
|
|
2179
2184
|
},
|
|
2180
2185
|
{
|
|
2181
2186
|
"name": "renderMethod",
|
|
2182
|
-
"type": "(extension: InitializedExtension) => HTMLElement | TemplateResult<
|
|
2187
|
+
"type": "(extension: InitializedExtension) => HTMLElement | TemplateResult<1 | 2> | null",
|
|
2183
2188
|
"default": "\"(extension) =>\\n\\t\\textension.component\""
|
|
2184
2189
|
}
|
|
2185
2190
|
],
|
|
@@ -2213,7 +2218,7 @@
|
|
|
2213
2218
|
{
|
|
2214
2219
|
"name": "renderMethod",
|
|
2215
2220
|
"attribute": "renderMethod",
|
|
2216
|
-
"type": "(extension: InitializedExtension) => HTMLElement | TemplateResult<
|
|
2221
|
+
"type": "(extension: InitializedExtension) => HTMLElement | TemplateResult<1 | 2> | null",
|
|
2217
2222
|
"default": "\"(extension) =>\\n\\t\\textension.component\""
|
|
2218
2223
|
}
|
|
2219
2224
|
],
|
|
@@ -2675,9 +2680,6 @@
|
|
|
2675
2680
|
"name": "umb-input-document-type-picker",
|
|
2676
2681
|
"path": "./src/backoffice/shared/components/input-document-type-picker/input-document-type-picker.element.ts",
|
|
2677
2682
|
"attributes": [
|
|
2678
|
-
{
|
|
2679
|
-
"name": "currentDocumentType"
|
|
2680
|
-
},
|
|
2681
2683
|
{
|
|
2682
2684
|
"name": "value",
|
|
2683
2685
|
"type": "string"
|
|
@@ -2693,10 +2695,6 @@
|
|
|
2693
2695
|
"name": "selectedKeys",
|
|
2694
2696
|
"type": "string[]"
|
|
2695
2697
|
},
|
|
2696
|
-
{
|
|
2697
|
-
"name": "currentDocumentType",
|
|
2698
|
-
"attribute": "currentDocumentType"
|
|
2699
|
-
},
|
|
2700
2698
|
{
|
|
2701
2699
|
"name": "formAssociated",
|
|
2702
2700
|
"type": "boolean"
|
|
@@ -3949,14 +3947,69 @@
|
|
|
3949
3947
|
]
|
|
3950
3948
|
},
|
|
3951
3949
|
{
|
|
3952
|
-
"name": "umb-menu-item",
|
|
3953
|
-
"path": "./src/backoffice/shared/components/menu-item/menu-item.element.ts",
|
|
3950
|
+
"name": "umb-menu-item-base",
|
|
3951
|
+
"path": "./src/backoffice/shared/components/menu/menu-item-base/menu-item-base.element.ts",
|
|
3952
|
+
"attributes": [
|
|
3953
|
+
{
|
|
3954
|
+
"name": "entity-type",
|
|
3955
|
+
"type": "string | undefined"
|
|
3956
|
+
},
|
|
3957
|
+
{
|
|
3958
|
+
"name": "icon-name",
|
|
3959
|
+
"type": "string",
|
|
3960
|
+
"default": "\"\""
|
|
3961
|
+
},
|
|
3962
|
+
{
|
|
3963
|
+
"name": "label",
|
|
3964
|
+
"type": "string",
|
|
3965
|
+
"default": "\"\""
|
|
3966
|
+
},
|
|
3967
|
+
{
|
|
3968
|
+
"name": "has-children",
|
|
3969
|
+
"type": "boolean",
|
|
3970
|
+
"default": "false"
|
|
3971
|
+
}
|
|
3972
|
+
],
|
|
3954
3973
|
"properties": [
|
|
3955
3974
|
{
|
|
3956
3975
|
"name": "styles",
|
|
3957
3976
|
"type": "CSSResult[]",
|
|
3958
3977
|
"default": "[\"UUITextStyles\",null]"
|
|
3959
3978
|
},
|
|
3979
|
+
{
|
|
3980
|
+
"name": "entityType",
|
|
3981
|
+
"attribute": "entity-type",
|
|
3982
|
+
"type": "string | undefined"
|
|
3983
|
+
},
|
|
3984
|
+
{
|
|
3985
|
+
"name": "iconName",
|
|
3986
|
+
"attribute": "icon-name",
|
|
3987
|
+
"type": "string",
|
|
3988
|
+
"default": "\"\""
|
|
3989
|
+
},
|
|
3990
|
+
{
|
|
3991
|
+
"name": "label",
|
|
3992
|
+
"attribute": "label",
|
|
3993
|
+
"type": "string",
|
|
3994
|
+
"default": "\"\""
|
|
3995
|
+
},
|
|
3996
|
+
{
|
|
3997
|
+
"name": "hasChildren",
|
|
3998
|
+
"attribute": "has-children",
|
|
3999
|
+
"type": "boolean",
|
|
4000
|
+
"default": "false"
|
|
4001
|
+
}
|
|
4002
|
+
]
|
|
4003
|
+
},
|
|
4004
|
+
{
|
|
4005
|
+
"name": "umb-menu-item",
|
|
4006
|
+
"path": "./src/backoffice/shared/components/menu/menu-item/menu-item.element.ts",
|
|
4007
|
+
"properties": [
|
|
4008
|
+
{
|
|
4009
|
+
"name": "styles",
|
|
4010
|
+
"type": "CSSResult[]",
|
|
4011
|
+
"default": "[\"UUITextStyles\"]"
|
|
4012
|
+
},
|
|
3960
4013
|
{
|
|
3961
4014
|
"name": "manifest"
|
|
3962
4015
|
}
|
|
@@ -5012,6 +5065,23 @@
|
|
|
5012
5065
|
}
|
|
5013
5066
|
]
|
|
5014
5067
|
},
|
|
5068
|
+
{
|
|
5069
|
+
"name": "umb-folder-modal",
|
|
5070
|
+
"path": "./src/backoffice/shared/modals/folder/folder-modal.element.ts",
|
|
5071
|
+
"properties": [
|
|
5072
|
+
{
|
|
5073
|
+
"name": "styles",
|
|
5074
|
+
"type": "CSSResult[]",
|
|
5075
|
+
"default": "[\"UUITextStyles\",null]"
|
|
5076
|
+
},
|
|
5077
|
+
{
|
|
5078
|
+
"name": "modalHandler"
|
|
5079
|
+
},
|
|
5080
|
+
{
|
|
5081
|
+
"name": "data"
|
|
5082
|
+
}
|
|
5083
|
+
]
|
|
5084
|
+
},
|
|
5015
5085
|
{
|
|
5016
5086
|
"name": "umb-icon-picker-modal",
|
|
5017
5087
|
"path": "./src/backoffice/shared/modals/icon-picker/icon-picker-modal.element.ts",
|
package/entity-action.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UmbControllerHostElement } from './controller';
|
|
2
2
|
import { UmbEntityActionBase as UmbEntityActionBase$1 } from './entity-action';
|
|
3
|
+
import { UmbFolderRepository } from './repository';
|
|
3
4
|
|
|
4
5
|
interface UmbAction<RepositoryType = unknown> {
|
|
5
6
|
host: UmbControllerHostElement;
|
|
@@ -17,6 +18,7 @@ interface UmbEntityAction<RepositoryType> extends UmbAction<RepositoryType> {
|
|
|
17
18
|
}
|
|
18
19
|
declare class UmbEntityActionBase<RepositoryType> extends UmbActionBase<RepositoryType> {
|
|
19
20
|
unique: string;
|
|
21
|
+
repositoryAlias: string;
|
|
20
22
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -39,13 +41,28 @@ declare class UmbCopyEntityAction<T extends {
|
|
|
39
41
|
|
|
40
42
|
declare class UmbDeleteEntityAction<T extends {
|
|
41
43
|
delete(unique: string): Promise<void>;
|
|
42
|
-
|
|
44
|
+
requestTreeItems(uniques: Array<string>): any;
|
|
43
45
|
}> extends UmbEntityActionBase$1<T> {
|
|
44
46
|
#private;
|
|
45
47
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
46
48
|
execute(): Promise<void>;
|
|
47
49
|
}
|
|
48
50
|
|
|
51
|
+
declare class UmbDeleteFolderEntityAction<T extends {
|
|
52
|
+
deleteFolder(unique: string): Promise<void>;
|
|
53
|
+
requestTreeItems(uniques: Array<string>): any;
|
|
54
|
+
}> extends UmbEntityActionBase$1<T> {
|
|
55
|
+
#private;
|
|
56
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
57
|
+
execute(): Promise<void>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class UmbFolderUpdateEntityAction<T extends UmbFolderRepository = UmbFolderRepository> extends UmbEntityActionBase$1<T> {
|
|
61
|
+
#private;
|
|
62
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
63
|
+
execute(): Promise<void>;
|
|
64
|
+
}
|
|
65
|
+
|
|
49
66
|
declare class UmbMoveEntityAction<T extends {
|
|
50
67
|
move(): Promise<void>;
|
|
51
68
|
}> extends UmbEntityActionBase$1<T> {
|
|
@@ -69,4 +86,4 @@ declare class UmbTrashEntityAction<T extends {
|
|
|
69
86
|
execute(): Promise<void>;
|
|
70
87
|
}
|
|
71
88
|
|
|
72
|
-
export { UmbAction, UmbActionBase, UmbCopyEntityAction, UmbDeleteEntityAction, UmbEntityAction, UmbEntityActionBase, UmbEntityBulkAction, UmbEntityBulkActionBase, UmbMoveEntityAction, UmbSortChildrenOfEntityAction, UmbTrashEntityAction };
|
|
89
|
+
export { UmbAction, UmbActionBase, UmbCopyEntityAction, UmbDeleteEntityAction, UmbDeleteFolderEntityAction, UmbEntityAction, UmbEntityActionBase, UmbEntityBulkAction, UmbEntityBulkActionBase, UmbFolderUpdateEntityAction, UmbMoveEntityAction, UmbSortChildrenOfEntityAction, UmbTrashEntityAction };
|
package/modal.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { UUIModalDialogElement, UUIModalSidebarElement, UUIModalSidebarSize } fr
|
|
|
7
7
|
import { UmbControllerHostElement, UmbControllerInterface } from './controller';
|
|
8
8
|
import { UmbContextToken } from './context-api';
|
|
9
9
|
import { UmbModalToken as UmbModalToken$1, UmbModalConfig as UmbModalConfig$1, UmbPickerModalData as UmbPickerModalData$1 } from './modal';
|
|
10
|
-
import { LanguageResponseModel } from './backend-api';
|
|
10
|
+
import { LanguageResponseModel, FolderReponseModel } from './backend-api';
|
|
11
11
|
import { UserDetails } from './models';
|
|
12
12
|
|
|
13
13
|
declare class UmbSearchModalElement extends LitElement {
|
|
@@ -526,6 +526,15 @@ interface UmbDocumentPickerModalResult {
|
|
|
526
526
|
}
|
|
527
527
|
declare const UMB_DOCUMENT_PICKER_MODAL: UmbModalToken$1<UmbDocumentPickerModalData, UmbDocumentPickerModalResult>;
|
|
528
528
|
|
|
529
|
+
interface UmbDocumentTypePickerModalData {
|
|
530
|
+
multiple?: boolean;
|
|
531
|
+
selection?: Array<string>;
|
|
532
|
+
}
|
|
533
|
+
interface UmbDocumentTypePickerModalResult {
|
|
534
|
+
selection: Array<string>;
|
|
535
|
+
}
|
|
536
|
+
declare const UMB_DOCUMENT_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDocumentTypePickerModalData, UmbDocumentTypePickerModalResult>;
|
|
537
|
+
|
|
529
538
|
declare enum OEmbedStatus {
|
|
530
539
|
NotSupported = 0,
|
|
531
540
|
Error = 1,
|
|
@@ -664,10 +673,37 @@ interface UmbSectionPickerModalData {
|
|
|
664
673
|
}
|
|
665
674
|
declare const UMB_SECTION_PICKER_MODAL: UmbModalToken$1<UmbSectionPickerModalData, unknown>;
|
|
666
675
|
|
|
676
|
+
interface UmbTemplateModalData {
|
|
677
|
+
key: string;
|
|
678
|
+
language?: 'razor' | 'typescript' | 'javascript' | 'css' | 'markdown' | 'json' | 'html';
|
|
679
|
+
}
|
|
680
|
+
interface UmbTemplateModalResult {
|
|
681
|
+
key: string;
|
|
682
|
+
}
|
|
683
|
+
declare const UMB_TEMPLATE_MODAL: UmbModalToken$1<UmbTemplateModalData, UmbTemplateModalResult>;
|
|
684
|
+
|
|
685
|
+
interface UmbTemplatePickerModalData {
|
|
686
|
+
multiple: boolean;
|
|
687
|
+
selection: string[];
|
|
688
|
+
}
|
|
689
|
+
interface UmbTemplatePickerModalResult {
|
|
690
|
+
selection: string[] | undefined;
|
|
691
|
+
}
|
|
692
|
+
declare const UMB_TEMPLATE_PICKER_MODAL: UmbModalToken$1<UmbTemplatePickerModalData, UmbTemplatePickerModalResult>;
|
|
693
|
+
|
|
667
694
|
declare const UMB_USER_GROUP_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<UserDetails>, unknown>;
|
|
668
695
|
|
|
669
696
|
declare const UMB_USER_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<UserDetails>, unknown>;
|
|
670
697
|
|
|
698
|
+
interface UmbFolderModalData {
|
|
699
|
+
repositoryAlias: string;
|
|
700
|
+
unique?: string;
|
|
701
|
+
}
|
|
702
|
+
interface UmbFolderModalResult {
|
|
703
|
+
folder: FolderReponseModel;
|
|
704
|
+
}
|
|
705
|
+
declare const UMB_FOLDER_MODAL: UmbModalToken$1<UmbFolderModalData, UmbFolderModalResult>;
|
|
706
|
+
|
|
671
707
|
interface UmbPickerModalData<T> {
|
|
672
708
|
multiple: boolean;
|
|
673
709
|
selection: Array<string>;
|
|
@@ -677,4 +713,4 @@ interface UmbPickerModalResult<T> {
|
|
|
677
713
|
selection: Array<string>;
|
|
678
714
|
}
|
|
679
715
|
|
|
680
|
-
export { OEmbedResult, OEmbedStatus, UMB_ALLOWED_DOCUMENT_TYPES_MODAL, UMB_CHANGE_PASSWORD_MODAL, UMB_CONFIRM_MODAL, UMB_CONTEXT_DEBUGGER_MODAL, UMB_CREATE_DICTIONARY_MODAL, UMB_CREATE_USER_MODAL, UMB_CURRENT_USER_MODAL, UMB_DOCUMENT_PICKER_MODAL, UMB_EMBEDDED_MEDIA_MODAL, UMB_EXAMINE_FIELDS_SETTINGS_MODAL, UMB_EXPORT_DICTIONARY_MODAL, UMB_ICON_PICKER_MODAL, UMB_IMPORT_DICTIONARY_MODAL, UMB_INVITE_USER_MODAL, UMB_LANGUAGE_PICKER_MODAL, UMB_LINK_PICKER_MODAL, UMB_MEDIA_PICKER_MODAL, UMB_MODAL_CONTEXT_TOKEN, UMB_PROPERTY_EDITOR_UI_PICKER_MODAL, UMB_PROPERTY_SETTINGS_MODAL, UMB_SEARCH_MODAL, UMB_SECTION_PICKER_MODAL, UMB_USER_GROUP_PICKER_MODAL, UMB_USER_PICKER_MODAL, UmbAllowedDocumentTypesModalData, UmbAllowedDocumentTypesModalResult, UmbChangePasswordModalData, UmbConfirmModalData, UmbConfirmModalResult, UmbContextDebuggerModalData, UmbCreateDictionaryModalData, UmbCreateDictionaryModalResult, UmbCreateDocumentModalResultData, UmbDocumentPickerModalData, UmbDocumentPickerModalResult, UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult, UmbExamineFieldsSettingsModalData, UmbExportDictionaryModalData, UmbExportDictionaryModalResult, UmbIconPickerModalData, UmbIconPickerModalResult, UmbImportDictionaryModalData, UmbImportDictionaryModalResult, UmbLanguagePickerModalData, UmbLanguagePickerModalResult, UmbLinkPickerConfig, UmbLinkPickerLink, UmbLinkPickerModalData, UmbLinkPickerModalResult, UmbMediaPickerModalData, UmbMediaPickerModalResult, UmbModalConfig, UmbModalContext, UmbModalHandler, UmbModalHandlerClass, UmbModalRouteBuilder, UmbModalRouteRegistration, UmbModalRouteRegistrationController, UmbModalToken, UmbModalType, UmbPickerModalData, UmbPickerModalResult, UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult, UmbPropertySettingsModalResult, UmbSectionPickerModalData };
|
|
716
|
+
export { OEmbedResult, OEmbedStatus, UMB_ALLOWED_DOCUMENT_TYPES_MODAL, UMB_CHANGE_PASSWORD_MODAL, UMB_CONFIRM_MODAL, UMB_CONTEXT_DEBUGGER_MODAL, UMB_CREATE_DICTIONARY_MODAL, UMB_CREATE_USER_MODAL, UMB_CURRENT_USER_MODAL, UMB_DOCUMENT_PICKER_MODAL, UMB_DOCUMENT_TYPE_PICKER_MODAL, UMB_EMBEDDED_MEDIA_MODAL, UMB_EXAMINE_FIELDS_SETTINGS_MODAL, UMB_EXPORT_DICTIONARY_MODAL, UMB_FOLDER_MODAL, UMB_ICON_PICKER_MODAL, UMB_IMPORT_DICTIONARY_MODAL, UMB_INVITE_USER_MODAL, UMB_LANGUAGE_PICKER_MODAL, UMB_LINK_PICKER_MODAL, UMB_MEDIA_PICKER_MODAL, UMB_MODAL_CONTEXT_TOKEN, UMB_PROPERTY_EDITOR_UI_PICKER_MODAL, UMB_PROPERTY_SETTINGS_MODAL, UMB_SEARCH_MODAL, UMB_SECTION_PICKER_MODAL, UMB_TEMPLATE_MODAL, UMB_TEMPLATE_PICKER_MODAL, UMB_USER_GROUP_PICKER_MODAL, UMB_USER_PICKER_MODAL, UmbAllowedDocumentTypesModalData, UmbAllowedDocumentTypesModalResult, UmbChangePasswordModalData, UmbConfirmModalData, UmbConfirmModalResult, UmbContextDebuggerModalData, UmbCreateDictionaryModalData, UmbCreateDictionaryModalResult, UmbCreateDocumentModalResultData, UmbDocumentPickerModalData, UmbDocumentPickerModalResult, UmbDocumentTypePickerModalData, UmbDocumentTypePickerModalResult, UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult, UmbExamineFieldsSettingsModalData, UmbExportDictionaryModalData, UmbExportDictionaryModalResult, UmbFolderModalData, UmbFolderModalResult, UmbIconPickerModalData, UmbIconPickerModalResult, UmbImportDictionaryModalData, UmbImportDictionaryModalResult, UmbLanguagePickerModalData, UmbLanguagePickerModalResult, UmbLinkPickerConfig, UmbLinkPickerLink, UmbLinkPickerModalData, UmbLinkPickerModalResult, UmbMediaPickerModalData, UmbMediaPickerModalResult, UmbModalConfig, UmbModalContext, UmbModalHandler, UmbModalHandlerClass, UmbModalRouteBuilder, UmbModalRouteRegistration, UmbModalRouteRegistrationController, UmbModalToken, UmbModalType, UmbPickerModalData, UmbPickerModalResult, UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult, UmbPropertySettingsModalResult, UmbSectionPickerModalData, UmbTemplateModalData, UmbTemplateModalResult, UmbTemplatePickerModalData, UmbTemplatePickerModalResult };
|
package/models.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ interface Entity {
|
|
|
10
10
|
hasChildren: boolean;
|
|
11
11
|
parentKey: string | null;
|
|
12
12
|
}
|
|
13
|
+
/** Tried to find a common base of our entities — used by Entity Workspace Context */
|
|
14
|
+
type BaseEntity = {
|
|
15
|
+
key?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
};
|
|
13
18
|
interface UserEntity extends Entity {
|
|
14
19
|
type: 'user';
|
|
15
20
|
}
|
|
@@ -72,4 +77,4 @@ type UmbPackageWithMigrationStatus = UmbPackage & {
|
|
|
72
77
|
hasPendingMigrations: boolean;
|
|
73
78
|
};
|
|
74
79
|
|
|
75
|
-
export { ClassConstructor, DocumentBlueprintDetails, Entity, HTMLElementConstructor, MediaTypeDetails, MemberDetails, MemberGroupDetails, MemberTypeDetails, PackageManifestResponse, SwatchDetails, UmbPackage, UmbPackageWithMigrationStatus, UserDetails, UserEntity, UserGroupDetails, UserGroupEntity, UserStatus };
|
|
80
|
+
export { BaseEntity, ClassConstructor, DocumentBlueprintDetails, Entity, HTMLElementConstructor, MediaTypeDetails, MemberDetails, MemberGroupDetails, MemberTypeDetails, PackageManifestResponse, SwatchDetails, UmbPackage, UmbPackageWithMigrationStatus, UserDetails, UserEntity, UserGroupDetails, UserGroupEntity, UserStatus };
|
package/observable-api.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ declare class DeepState<T> extends BehaviorSubject<T> {
|
|
|
99
99
|
*/
|
|
100
100
|
declare class ArrayState<T> extends DeepState<T[]> {
|
|
101
101
|
private _getUnique?;
|
|
102
|
-
constructor(initialData: T[],
|
|
102
|
+
constructor(initialData: T[], getUniqueMethod?: (entry: T) => unknown);
|
|
103
103
|
/**
|
|
104
104
|
* @method remove
|
|
105
105
|
* @param {unknown[]} uniques - The unique values to remove.
|
|
@@ -181,6 +181,21 @@ declare class ArrayState<T> extends DeepState<T[]> {
|
|
|
181
181
|
* ]);
|
|
182
182
|
*/
|
|
183
183
|
append(entries: T[]): this;
|
|
184
|
+
/**
|
|
185
|
+
* @method updateOne
|
|
186
|
+
* @param {unknown} unique - Unique value to find entry to update.
|
|
187
|
+
* @param {Partial<T>} entry - new data to be added in this Subject.
|
|
188
|
+
* @return {ArrayState<T>} Reference to it self.
|
|
189
|
+
* @description - Update a item with some new data, requires the ArrayState to be constructed with a getUnique method.
|
|
190
|
+
* @example <caption>Example append some data.</caption>
|
|
191
|
+
* const data = [
|
|
192
|
+
* { key: 1, value: 'foo'},
|
|
193
|
+
* { key: 2, value: 'bar'}
|
|
194
|
+
* ];
|
|
195
|
+
* const myState = new ArrayState(data, (x) => x.key);
|
|
196
|
+
* myState.updateOne(2, {value: 'updated-bar'});
|
|
197
|
+
*/
|
|
198
|
+
updateOne(unique: unknown, entry: Partial<T>): this;
|
|
184
199
|
}
|
|
185
200
|
|
|
186
201
|
/**
|
|
@@ -246,4 +261,4 @@ declare function appendToFrozenArray<T>(data: T[], entry: T, getUniqueMethod?: (
|
|
|
246
261
|
*/
|
|
247
262
|
declare function partialUpdateFrozenArray<T>(data: T[], partialEntry: Partial<T>, findMethod: (entry: T) => boolean): T[];
|
|
248
263
|
|
|
249
|
-
export { ArrayState, BasicState, BooleanState, ClassState, DeepState, NumberState, ObjectState, StringState, UmbObserver, UmbObserverController, appendToFrozenArray, createObservablePart, partialUpdateFrozenArray };
|
|
264
|
+
export { ArrayState, BasicState, BooleanState, ClassState, DeepState, MappingFunction, NumberState, ObjectState, StringState, UmbObserver, UmbObserverController, appendToFrozenArray, createObservablePart, partialUpdateFrozenArray };
|
package/package.json
CHANGED
package/repository.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProblemDetailsModel } from './backend-api';
|
|
1
|
+
import { ProblemDetailsModel, FolderReponseModel, CreateFolderRequestModel, UpdateFolderReponseModel, FolderModelBaseModel } from './backend-api';
|
|
2
2
|
import { DataSourceResponse as DataSourceResponse$1 } from './repository';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
|
|
@@ -7,12 +7,20 @@ interface DataSourceResponse<T = undefined> {
|
|
|
7
7
|
error?: ProblemDetailsModel;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
interface UmbDataSource<
|
|
11
|
-
createScaffold(parentKey: string | null): Promise<DataSourceResponse$1<
|
|
12
|
-
get(
|
|
13
|
-
insert(data:
|
|
14
|
-
update(data:
|
|
15
|
-
delete(
|
|
10
|
+
interface UmbDataSource<CreateRequestType, UpdateRequestType, ResponseType> {
|
|
11
|
+
createScaffold(parentKey: string | null): Promise<DataSourceResponse$1<ResponseType>>;
|
|
12
|
+
get(unique: string): Promise<DataSourceResponse$1<ResponseType>>;
|
|
13
|
+
insert(data: CreateRequestType): Promise<any>;
|
|
14
|
+
update(unique: string, data: UpdateRequestType): Promise<DataSourceResponse$1<ResponseType>>;
|
|
15
|
+
delete(unique: string): Promise<DataSourceResponse$1>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface UmbFolderDataSource {
|
|
19
|
+
createScaffold(parentKey: string | null): Promise<DataSourceResponse<FolderReponseModel>>;
|
|
20
|
+
get(unique: string): Promise<DataSourceResponse<FolderReponseModel>>;
|
|
21
|
+
insert(data: CreateFolderRequestModel): Promise<DataSourceResponse<string>>;
|
|
22
|
+
update(unique: string, data: CreateFolderRequestModel): Promise<DataSourceResponse<UpdateFolderReponseModel>>;
|
|
23
|
+
delete(unique: string): Promise<DataSourceResponse>;
|
|
16
24
|
}
|
|
17
25
|
|
|
18
26
|
interface UmbTreeDataSource<PagedItemsType = any, ItemsType = any> {
|
|
@@ -66,4 +74,26 @@ interface UmbTreeRepository<ItemType = any, PagedItemType = UmbPagedData<ItemTyp
|
|
|
66
74
|
treeItems: (uniques: string[]) => Promise<Observable<ItemType[]>>;
|
|
67
75
|
}
|
|
68
76
|
|
|
69
|
-
|
|
77
|
+
interface UmbFolderRepository {
|
|
78
|
+
createFolderScaffold(parentKey: string | null): Promise<{
|
|
79
|
+
data?: FolderReponseModel;
|
|
80
|
+
error?: ProblemDetailsModel;
|
|
81
|
+
}>;
|
|
82
|
+
createFolder(folderRequest: CreateFolderRequestModel): Promise<{
|
|
83
|
+
data?: string;
|
|
84
|
+
error?: ProblemDetailsModel;
|
|
85
|
+
}>;
|
|
86
|
+
requestFolder(unique: string): Promise<{
|
|
87
|
+
data?: FolderReponseModel;
|
|
88
|
+
error?: ProblemDetailsModel;
|
|
89
|
+
}>;
|
|
90
|
+
updateFolder(unique: string, folder: FolderModelBaseModel): Promise<{
|
|
91
|
+
data?: UpdateFolderReponseModel;
|
|
92
|
+
error?: ProblemDetailsModel;
|
|
93
|
+
}>;
|
|
94
|
+
deleteFolder(key: string): Promise<{
|
|
95
|
+
error?: ProblemDetailsModel;
|
|
96
|
+
}>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export { DataSourceResponse, UmbDataSource, UmbDetailRepository, UmbFolderDataSource, UmbFolderRepository, UmbPagedData, UmbTreeDataSource, UmbTreeRepository };
|
|
@@ -51,33 +51,33 @@
|
|
|
51
51
|
"attributes": []
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
"name": "umb-document-type-workspace-
|
|
55
|
-
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_icon` {`{ color: string; name: string; }`} - \n\n * `
|
|
54
|
+
"name": "umb-document-type-workspace-editor",
|
|
55
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_icon` {`{ color: string; name: string; }`} - \n\n * `_name` {`string | undefined`} - \n\n * `_alias` {`string | undefined`} - \n\n * `_modalContext` - ",
|
|
56
56
|
"attributes": []
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"name": "umb-document-type-workspace",
|
|
60
|
-
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_routes` {`{ path: string; component: () =>
|
|
60
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_routes` {`{ path: string; component: () => UmbDocumentTypeWorkspaceEditorElement; setup: (component: HTMLElement, info: any) => void; }[]`} - ",
|
|
61
61
|
"attributes": []
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
"name": "umb-workspace-view-
|
|
65
|
-
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `
|
|
64
|
+
"name": "umb-document-type-workspace-view-design",
|
|
65
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_workspaceContext` - \n\n * `_tabs` {`any[]`} - ",
|
|
66
66
|
"attributes": []
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
"name": "umb-workspace-view-
|
|
70
|
-
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `
|
|
69
|
+
"name": "umb-document-type-workspace-view-details",
|
|
70
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_workspaceContext` - ",
|
|
71
71
|
"attributes": []
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
"name": "umb-workspace-view-
|
|
75
|
-
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `
|
|
74
|
+
"name": "umb-document-type-workspace-view-structure",
|
|
75
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_workspaceContext` - ",
|
|
76
76
|
"attributes": []
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
"name": "umb-workspace-view-
|
|
80
|
-
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `
|
|
79
|
+
"name": "umb-document-type-workspace-view-templates",
|
|
80
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_workspaceContext` - ",
|
|
81
81
|
"attributes": []
|
|
82
82
|
},
|
|
83
83
|
{
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"attributes": []
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
"name": "umb-document-workspace-
|
|
118
|
+
"name": "umb-document-workspace-editor",
|
|
119
119
|
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `splitViewElement` - \n\n * `_unique` {`string | undefined`} - \n\n * `_routes` {`IRoute<any>[] | undefined`} - \n\n * `_availableVariants` {`any[]`} - \n\n * `_workspaceSplitViews` {`ActiveVariant[]`} - \n\n * `_gotWorkspaceRoute` - ",
|
|
120
120
|
"attributes": []
|
|
121
121
|
},
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"name": "umb-document-info-workspace-view",
|
|
178
|
-
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_historyList` {`HistoryNode[]`} - \n\n * `_total` {`number | undefined`} - \n\n * `_currentPage` {`number`} - \n\n * `_nodeName` {`string`} - \n\n * `_workspaceContext`
|
|
178
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_historyList` {`HistoryNode[]`} - \n\n * `_total` {`number | undefined`} - \n\n * `_currentPage` {`number`} - \n\n * `_nodeName` {`string`} - \n\n * `_workspaceContext` - \n\n * `itemsPerPage` {`number`} - ",
|
|
179
179
|
"attributes": []
|
|
180
180
|
},
|
|
181
181
|
{
|
|
@@ -454,6 +454,11 @@
|
|
|
454
454
|
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_telemetryFormData` - \n\n * `_telemetryLevels` {`any[]`} - \n\n * `_errorMessage` {`string`} - \n\n * `_buttonState` {`UUIButtonState`} - \n\n * `_handleSubmit` - \n\n * `_selectedTelemetryIndex` {`number`} - \n\n * `_selectedTelemetry` - \n\n * `_selectedTelemetryDescription` {`\"We will only send an anonymized site ID to let us know that the site exists.\" | \"We will send an anonymized site ID, Umbraco version, and packages installed.\" | \"We will send:<ul>\\n\\t\\t\\t\\t<li>Anonymized site ID, Umbraco version, and packages installed.</li>\\n\\t\\t\\t\\t<li>Number of: Root nodes, Content nodes, Macros...`} - ",
|
|
455
455
|
"attributes": []
|
|
456
456
|
},
|
|
457
|
+
{
|
|
458
|
+
"name": "umb-create-data-type-modal",
|
|
459
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - ",
|
|
460
|
+
"attributes": []
|
|
461
|
+
},
|
|
457
462
|
{
|
|
458
463
|
"name": "umb-data-type-workspace-edit-element",
|
|
459
464
|
"description": "Attributes:\n\n * `manifest` - \n\n * `location` - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `manifest` - \n\n * `location` - \n\n * `_dataTypeName` {`string`} - ",
|
|
@@ -934,21 +939,17 @@
|
|
|
934
939
|
},
|
|
935
940
|
{
|
|
936
941
|
"name": "umb-debug",
|
|
937
|
-
"description": "Attributes:\n\n * `
|
|
942
|
+
"description": "Attributes:\n\n * `visible` {`boolean`} - \n\n * `dialog` {`boolean`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `visible` {`boolean`} - \n\n * `dialog` {`boolean`} - \n\n * `contextData` {`any[]`} - \n\n * `_debugPaneOpen` {`boolean`} - \n\n * `_modalContext` - ",
|
|
938
943
|
"attributes": [
|
|
939
944
|
{
|
|
940
|
-
"name": "
|
|
941
|
-
"description": "`
|
|
945
|
+
"name": "visible",
|
|
946
|
+
"description": "`visible` {`boolean`} - \n\nProperty: visible\n\nDefault: false",
|
|
942
947
|
"valueSet": "v"
|
|
943
948
|
},
|
|
944
949
|
{
|
|
945
950
|
"name": "dialog",
|
|
946
951
|
"description": "`dialog` {`boolean`} - \n\nProperty: dialog\n\nDefault: false",
|
|
947
952
|
"valueSet": "v"
|
|
948
|
-
},
|
|
949
|
-
{
|
|
950
|
-
"name": "contexts",
|
|
951
|
-
"description": "`contexts` {`Map<any, any>`} - \n\nProperty: contexts\n\nDefault: new Map()"
|
|
952
953
|
}
|
|
953
954
|
]
|
|
954
955
|
},
|
|
@@ -1221,12 +1222,8 @@
|
|
|
1221
1222
|
},
|
|
1222
1223
|
{
|
|
1223
1224
|
"name": "umb-input-document-type-picker",
|
|
1224
|
-
"description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `
|
|
1225
|
+
"description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `value` {`string`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_selectedKeys` {`string[]`} - \n\n * `selectedKeys` {`string[]`} - \n\n * `_items` {`any[] | undefined`} - \n\n * `_modalContext` - \n\n * `_documentTypeStore` - \n\n * `_pickedItemsObserver` - \n\n * `formAssociated` {`boolean`} - \n\n * `value` {`string`} - \n\n * `name` {`string`} - \n\n * `validationMessage` {`string`} - \n\n * `validity` {`ValidityState`} - \n\n * `_value` {`FormDataEntryValue | FormData`} - \n\n * `_internals` - \n\n * `addValidator` - \n\n * `pristine` {`boolean`} - \n\n * `required` {`boolean`} - \n\n * `requiredMessage` {`string`} - \n\n * `error` {`boolean`} - \n\n * `errorMessage` {`string`} - ",
|
|
1225
1226
|
"attributes": [
|
|
1226
|
-
{
|
|
1227
|
-
"name": "currentDocumentType",
|
|
1228
|
-
"description": "`currentDocumentType` - \n\nProperty: currentDocumentType"
|
|
1229
|
-
},
|
|
1230
1227
|
{
|
|
1231
1228
|
"name": "value",
|
|
1232
1229
|
"description": "`value` {`string`} - \n\nProperty: value"
|
|
@@ -1668,9 +1665,33 @@
|
|
|
1668
1665
|
}
|
|
1669
1666
|
]
|
|
1670
1667
|
},
|
|
1668
|
+
{
|
|
1669
|
+
"name": "umb-menu-item-base",
|
|
1670
|
+
"description": "Attributes:\n\n * `entity-type` {`string | undefined`} - \n\n * `icon-name` {`string`} - \n\n * `label` {`string`} - \n\n * `has-children` {`boolean`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_entityType` {`string | undefined`} - \n\n * `entityType` {`string | undefined`} - \n\n * `iconName` {`string`} - \n\n * `label` {`string`} - \n\n * `hasChildren` {`boolean`} - \n\n * `_href` {`string | undefined`} - \n\n * `_hasActions` {`boolean`} - ",
|
|
1671
|
+
"attributes": [
|
|
1672
|
+
{
|
|
1673
|
+
"name": "entity-type",
|
|
1674
|
+
"description": "`entity-type` {`string | undefined`} - \n\nProperty: entityType",
|
|
1675
|
+
"values": []
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"name": "icon-name",
|
|
1679
|
+
"description": "`icon-name` {`string`} - \n\nProperty: iconName\n\nDefault: "
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"name": "label",
|
|
1683
|
+
"description": "`label` {`string`} - \n\nProperty: label\n\nDefault: "
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
"name": "has-children",
|
|
1687
|
+
"description": "`has-children` {`boolean`} - \n\nProperty: hasChildren\n\nDefault: false",
|
|
1688
|
+
"valueSet": "v"
|
|
1689
|
+
}
|
|
1690
|
+
]
|
|
1691
|
+
},
|
|
1671
1692
|
{
|
|
1672
1693
|
"name": "umb-menu-item",
|
|
1673
|
-
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `manifest` -
|
|
1694
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `manifest` - ",
|
|
1674
1695
|
"attributes": []
|
|
1675
1696
|
},
|
|
1676
1697
|
{
|
|
@@ -1956,7 +1977,7 @@
|
|
|
1956
1977
|
},
|
|
1957
1978
|
{
|
|
1958
1979
|
"name": "umb-workspace-action-menu",
|
|
1959
|
-
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_actionMenuIsOpen` {`boolean`} - \n\n * `_workspaceContext`
|
|
1980
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_actionMenuIsOpen` {`boolean`} - \n\n * `_workspaceContext` - \n\n * `_entityKey` {`string | undefined`} - \n\n * `_entityType` {`string | undefined`} - ",
|
|
1960
1981
|
"attributes": []
|
|
1961
1982
|
},
|
|
1962
1983
|
{
|
|
@@ -1966,7 +1987,7 @@
|
|
|
1966
1987
|
},
|
|
1967
1988
|
{
|
|
1968
1989
|
"name": "umb-workspace-view-collection",
|
|
1969
|
-
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `manifest` - \n\n * `_workspaceContext`
|
|
1990
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `manifest` - \n\n * `_workspaceContext` - \n\n * `_collectionContext` - ",
|
|
1970
1991
|
"attributes": []
|
|
1971
1992
|
},
|
|
1972
1993
|
{
|
|
@@ -2082,6 +2103,11 @@
|
|
|
2082
2103
|
}
|
|
2083
2104
|
]
|
|
2084
2105
|
},
|
|
2106
|
+
{
|
|
2107
|
+
"name": "umb-folder-modal",
|
|
2108
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `modalHandler` - \n\n * `_data` - \n\n * `data` - \n\n * `_folder` - \n\n * `_headline` {`string | undefined`} - \n\n * `_isNew` {`boolean`} - \n\n * `_formElement` {`HTMLFormElement | undefined`} - ",
|
|
2109
|
+
"attributes": []
|
|
2110
|
+
},
|
|
2085
2111
|
{
|
|
2086
2112
|
"name": "umb-icon-picker-modal",
|
|
2087
2113
|
"description": "Attributes:\n\n * `iconlist` - \n\n * `iconlistFiltered` {`string[]`} - \n\n * `colorlist` {`string[]`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `iconlist` - \n\n * `iconlistFiltered` {`string[]`} - \n\n * `colorlist` {`string[]`} - \n\n * `_currentColor` {`string | undefined`} - \n\n * `_currentIcon` {`string | undefined`} - ",
|
package/workspace.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UmbControllerHostElement } from './controller';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { UmbWorkspaceContextInterface as UmbWorkspaceContextInterface$1 } from './workspace';
|
|
3
4
|
|
|
4
5
|
interface UmbWorkspaceAction<T = unknown> {
|
|
5
6
|
host: UmbControllerHostElement;
|
|
@@ -12,14 +13,14 @@ declare class UmbWorkspaceActionBase<WorkspaceType> {
|
|
|
12
13
|
constructor(host: UmbControllerHostElement);
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
interface UmbWorkspaceContextInterface<
|
|
16
|
+
interface UmbWorkspaceContextInterface<DataType = unknown> {
|
|
16
17
|
host: UmbControllerHostElement;
|
|
17
18
|
repository: any;
|
|
18
19
|
isNew: Observable<boolean>;
|
|
19
20
|
getIsNew(): boolean;
|
|
20
21
|
setIsNew(value: boolean): void;
|
|
21
22
|
getEntityType(): string;
|
|
22
|
-
getData():
|
|
23
|
+
getData(): DataType | undefined;
|
|
23
24
|
destroy(): void;
|
|
24
25
|
setValidationErrors?(errorMap: any): void;
|
|
25
26
|
}
|
|
@@ -30,4 +31,10 @@ declare class UmbSaveWorkspaceAction extends UmbWorkspaceActionBase<UmbWorkspace
|
|
|
30
31
|
execute(): Promise<void>;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWorkspaceContextInterface$1<EntityType> {
|
|
35
|
+
getEntityKey(): string | undefined;
|
|
36
|
+
getEntityType(): string;
|
|
37
|
+
save(): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { UmbEntityWorkspaceContextInterface, UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContextInterface };
|