@umbraco-cms/backoffice 1.0.0-next.596cc732 → 1.0.0-next.70dd5ba6

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 CHANGED
@@ -1,4 +1,6 @@
1
- import { UmbControllerHostInterface, UmbControllerInterface } from './controller';
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;
@@ -90,9 +92,9 @@ declare class UmbContextConsumer<HostType extends EventTarget = EventTarget, T =
90
92
  destroy(): void;
91
93
  }
92
94
 
93
- declare class UmbContextConsumerController<T = unknown> extends UmbContextConsumer<UmbControllerHostInterface, T> implements UmbControllerInterface {
95
+ declare class UmbContextConsumerController<T = unknown> extends UmbContextConsumer<UmbControllerHostElement, T> implements UmbControllerInterface {
94
96
  get unique(): undefined;
95
- constructor(host: UmbControllerHostInterface, contextAlias: string | UmbContextToken<T>, callback: UmbContextCallback<T>);
97
+ constructor(host: UmbControllerHostElement, contextAlias: string | UmbContextToken<T>, callback: UmbContextCallback<T>);
96
98
  destroy(): void;
97
99
  }
98
100
 
@@ -136,9 +138,9 @@ declare class UmbContextProvider<HostType extends EventTarget = EventTarget> {
136
138
  destroy(): void;
137
139
  }
138
140
 
139
- declare class UmbContextProviderController<T = unknown> extends UmbContextProvider<UmbControllerHostInterface> implements UmbControllerInterface {
141
+ declare class UmbContextProviderController<T = unknown> extends UmbContextProvider<UmbControllerHostElement> implements UmbControllerInterface {
140
142
  get unique(): string;
141
- constructor(host: UmbControllerHostInterface, contextAlias: string | UmbContextToken<T>, instance: T);
143
+ constructor(host: UmbControllerHostElement, contextAlias: string | UmbContextToken<T>, instance: T);
142
144
  destroy(): void;
143
145
  }
144
146
 
@@ -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
- export { UmbContextCallback, UmbContextConsumer, UmbContextConsumerController, UmbContextDebugRequest, UmbContextProvideEvent, UmbContextProvideEventImplementation, UmbContextProvider, UmbContextProviderController, UmbContextRequestEvent, UmbContextRequestEventImplementation, UmbContextToken, isUmbContextProvideEventType, isUmbContextRequestEvent, umbContextProvideEventType, umbContextRequestEventType, umbDebugContextEventType };
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/controller.d.ts CHANGED
@@ -7,7 +7,7 @@ interface UmbControllerInterface {
7
7
  destroy(): void;
8
8
  }
9
9
 
10
- declare class UmbControllerHostInterface extends HTMLElement {
10
+ declare class UmbControllerHostElement extends HTMLElement {
11
11
  hasController(controller: UmbControllerInterface): boolean;
12
12
  getControllers(filterMethod: (ctrl: UmbControllerInterface) => boolean): UmbControllerInterface[];
13
13
  addController(controller: UmbControllerInterface): void;
@@ -20,7 +20,7 @@ declare class UmbControllerHostInterface extends HTMLElement {
20
20
  * @param {Object} superClass - superclass to be extended.
21
21
  * @mixin
22
22
  */
23
- declare const UmbControllerHostMixin: <T extends HTMLElementConstructor<HTMLElement>>(superClass: T) => HTMLElementConstructor<UmbControllerHostInterface> & T;
23
+ declare const UmbControllerHostMixin: <T extends HTMLElementConstructor<HTMLElement>>(superClass: T) => HTMLElementConstructor<UmbControllerHostElement> & T;
24
24
  declare global {
25
25
  interface HTMLElement {
26
26
  connectedCallback(): void;
@@ -29,13 +29,13 @@ declare global {
29
29
  }
30
30
 
31
31
  declare abstract class UmbController implements UmbControllerInterface {
32
- protected host?: UmbControllerHostInterface;
32
+ protected host?: UmbControllerHostElement;
33
33
  private _alias?;
34
34
  get unique(): string | undefined;
35
- constructor(host: UmbControllerHostInterface, alias?: string);
35
+ constructor(host: UmbControllerHostElement, alias?: string);
36
36
  abstract hostConnected(): void;
37
37
  abstract hostDisconnected(): void;
38
38
  destroy(): void;
39
39
  }
40
40
 
41
- export { UmbController, UmbControllerHostInterface, UmbControllerHostMixin, UmbControllerInterface };
41
+ export { UmbController, UmbControllerHostElement, UmbControllerHostMixin, UmbControllerInterface };
@@ -107,8 +107,8 @@
107
107
  ]
108
108
  },
109
109
  {
110
- "name": "umb-document-type-workspace-edit",
111
- "path": "./src/backoffice/documents/document-types/workspace/document-type-workspace-edit.element.ts",
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-document-type-design",
133
- "path": "./src/backoffice/documents/document-types/workspace/views/design/workspace-view-document-type-design.element.ts",
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-document-type-listview",
144
- "path": "./src/backoffice/documents/document-types/workspace/views/listview/workspace-view-document-type-listview.element.ts",
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-document-type-permissions",
155
- "path": "./src/backoffice/documents/document-types/workspace/views/permissions/workspace-view-document-type-permissions.element.ts",
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-document-type-templates",
166
- "path": "./src/backoffice/documents/document-types/workspace/views/templates/workspace-view-document-type-templates.element.ts",
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-edit",
261
- "path": "./src/backoffice/documents/documents/workspace/document-workspace-edit.element.ts",
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",
@@ -1845,7 +1845,7 @@
1845
1845
  "path": "./src/backoffice/shared/components/debug/debug.element.ts",
1846
1846
  "attributes": [
1847
1847
  {
1848
- "name": "enabled",
1848
+ "name": "visible",
1849
1849
  "type": "boolean",
1850
1850
  "default": "false"
1851
1851
  },
@@ -1853,11 +1853,6 @@
1853
1853
  "name": "dialog",
1854
1854
  "type": "boolean",
1855
1855
  "default": "false"
1856
- },
1857
- {
1858
- "name": "contexts",
1859
- "type": "Map<any, any>",
1860
- "default": "\"new Map()\""
1861
1856
  }
1862
1857
  ],
1863
1858
  "properties": [
@@ -1867,8 +1862,8 @@
1867
1862
  "default": "[\"UUITextStyles\",null]"
1868
1863
  },
1869
1864
  {
1870
- "name": "enabled",
1871
- "attribute": "enabled",
1865
+ "name": "visible",
1866
+ "attribute": "visible",
1872
1867
  "type": "boolean",
1873
1868
  "default": "false"
1874
1869
  },
@@ -1879,10 +1874,9 @@
1879
1874
  "default": "false"
1880
1875
  },
1881
1876
  {
1882
- "name": "contexts",
1883
- "attribute": "contexts",
1884
- "type": "Map<any, any>",
1885
- "default": "\"new Map()\""
1877
+ "name": "contextData",
1878
+ "type": "array",
1879
+ "default": "\"Array<DebugContextData>()\""
1886
1880
  }
1887
1881
  ]
1888
1882
  },
@@ -2179,7 +2173,7 @@
2179
2173
  },
2180
2174
  {
2181
2175
  "name": "renderMethod",
2182
- "type": "(extension: InitializedExtension) => HTMLElement | TemplateResult<2 | 1> | null",
2176
+ "type": "(extension: InitializedExtension) => HTMLElement | TemplateResult<1 | 2> | null",
2183
2177
  "default": "\"(extension) =>\\n\\t\\textension.component\""
2184
2178
  }
2185
2179
  ],
@@ -2213,7 +2207,7 @@
2213
2207
  {
2214
2208
  "name": "renderMethod",
2215
2209
  "attribute": "renderMethod",
2216
- "type": "(extension: InitializedExtension) => HTMLElement | TemplateResult<2 | 1> | null",
2210
+ "type": "(extension: InitializedExtension) => HTMLElement | TemplateResult<1 | 2> | null",
2217
2211
  "default": "\"(extension) =>\\n\\t\\textension.component\""
2218
2212
  }
2219
2213
  ],
@@ -2675,9 +2669,6 @@
2675
2669
  "name": "umb-input-document-type-picker",
2676
2670
  "path": "./src/backoffice/shared/components/input-document-type-picker/input-document-type-picker.element.ts",
2677
2671
  "attributes": [
2678
- {
2679
- "name": "currentDocumentType"
2680
- },
2681
2672
  {
2682
2673
  "name": "value",
2683
2674
  "type": "string"
@@ -2693,10 +2684,6 @@
2693
2684
  "name": "selectedKeys",
2694
2685
  "type": "string[]"
2695
2686
  },
2696
- {
2697
- "name": "currentDocumentType",
2698
- "attribute": "currentDocumentType"
2699
- },
2700
2687
  {
2701
2688
  "name": "formAssociated",
2702
2689
  "type": "boolean"
@@ -7071,18 +7058,58 @@
7071
7058
  }
7072
7059
  ]
7073
7060
  },
7061
+ {
7062
+ "name": "umb-user-profile-app-external-login-providers",
7063
+ "path": "./src/backoffice/users/current-user/user-profile-apps/user-profile-app-external-login-providers.element.ts",
7064
+ "properties": [
7065
+ {
7066
+ "name": "styles",
7067
+ "type": "CSSResult[]",
7068
+ "default": "[\"UUITextStyles\",null]"
7069
+ }
7070
+ ]
7071
+ },
7072
+ {
7073
+ "name": "umb-user-profile-app-history",
7074
+ "path": "./src/backoffice/users/current-user/user-profile-apps/user-profile-app-history.element.ts",
7075
+ "properties": [
7076
+ {
7077
+ "name": "styles",
7078
+ "type": "CSSResult[]",
7079
+ "default": "[\"UUITextStyles\",null]"
7080
+ }
7081
+ ]
7082
+ },
7074
7083
  {
7075
7084
  "name": "umb-user-dashboard-test",
7076
- "path": "./src/backoffice/users/current-user/user-dashboard-themes.element.ts",
7085
+ "path": "./src/backoffice/users/current-user/user-profile-apps/user-profile-app-history.element.ts",
7077
7086
  "properties": [
7078
7087
  {
7079
7088
  "name": "styles",
7080
7089
  "type": "CSSResult[]",
7081
7090
  "default": "[\"UUITextStyles\",null]"
7082
- },
7091
+ }
7092
+ ]
7093
+ },
7094
+ {
7095
+ "name": "umb-user-profile-app-profile",
7096
+ "path": "./src/backoffice/users/current-user/user-profile-apps/user-profile-app-profile.element.ts",
7097
+ "properties": [
7083
7098
  {
7084
- "name": "options",
7085
- "type": "{ name: any; value: any; selected: boolean; }[]"
7099
+ "name": "styles",
7100
+ "type": "CSSResult[]",
7101
+ "default": "[\"UUITextStyles\",null]"
7102
+ }
7103
+ ]
7104
+ },
7105
+ {
7106
+ "name": "umb-user-profile-app-themes",
7107
+ "path": "./src/backoffice/users/current-user/user-profile-apps/user-profile-app-themes.element.ts",
7108
+ "properties": [
7109
+ {
7110
+ "name": "styles",
7111
+ "type": "CSSResult[]",
7112
+ "default": "[\"UUITextStyles\",null]"
7086
7113
  }
7087
7114
  ]
7088
7115
  },
package/element.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { HTMLElementConstructor } from './models';
3
- import { UmbControllerHostInterface } from './controller';
3
+ import { UmbControllerHostElement } from './controller';
4
4
  import { UmbContextToken, UmbContextProviderController, UmbContextCallback, UmbContextConsumerController } from './context-api';
5
5
  import { UmbObserverController } from './observable-api';
6
6
 
7
7
  interface ResolvedContexts {
8
8
  [key: string]: any;
9
9
  }
10
- declare class UmbElementMixinInterface extends UmbControllerHostInterface {
10
+ declare class UmbElementMixinInterface extends UmbControllerHostElement {
11
11
  observe<T>(source: Observable<T>, callback: (_value: T) => void, unique?: string): UmbObserverController<T>;
12
12
  provideContext<R = unknown>(alias: string | UmbContextToken<R>, instance: R): UmbContextProviderController<R>;
13
13
  consumeContext<R = unknown>(alias: string | UmbContextToken<R>, callback: UmbContextCallback<R>): UmbContextConsumerController<R>;
@@ -1,15 +1,15 @@
1
- import { UmbControllerHostInterface } from './controller';
1
+ import { UmbControllerHostElement } from './controller';
2
2
  import { UmbEntityActionBase as UmbEntityActionBase$1 } from './entity-action';
3
3
 
4
4
  interface UmbAction<RepositoryType = unknown> {
5
- host: UmbControllerHostInterface;
5
+ host: UmbControllerHostElement;
6
6
  repository: RepositoryType;
7
7
  execute(): Promise<void>;
8
8
  }
9
9
  declare class UmbActionBase<RepositoryType> {
10
- host: UmbControllerHostInterface;
10
+ host: UmbControllerHostElement;
11
11
  repository?: RepositoryType;
12
- constructor(host: UmbControllerHostInterface, repositoryAlias: string);
12
+ constructor(host: UmbControllerHostElement, repositoryAlias: string);
13
13
  }
14
14
 
15
15
  interface UmbEntityAction<RepositoryType> extends UmbAction<RepositoryType> {
@@ -17,7 +17,7 @@ interface UmbEntityAction<RepositoryType> extends UmbAction<RepositoryType> {
17
17
  }
18
18
  declare class UmbEntityActionBase<RepositoryType> extends UmbActionBase<RepositoryType> {
19
19
  unique: string;
20
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string);
20
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
21
21
  }
22
22
 
23
23
  interface UmbEntityBulkAction<RepositoryType = unknown> extends UmbAction<RepositoryType> {
@@ -26,14 +26,14 @@ interface UmbEntityBulkAction<RepositoryType = unknown> extends UmbAction<Reposi
26
26
  }
27
27
  declare class UmbEntityBulkActionBase<RepositoryType = unknown> extends UmbActionBase<RepositoryType> {
28
28
  selection: Array<string>;
29
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, selection: Array<string>);
29
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, selection: Array<string>);
30
30
  setSelection(selection: Array<string>): void;
31
31
  }
32
32
 
33
33
  declare class UmbCopyEntityAction<T extends {
34
34
  copy(): Promise<void>;
35
35
  }> extends UmbEntityActionBase$1<T> {
36
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string);
36
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
37
37
  execute(): Promise<void>;
38
38
  }
39
39
 
@@ -42,21 +42,21 @@ declare class UmbDeleteEntityAction<T extends {
42
42
  requestItems(uniques: Array<string>): any;
43
43
  }> extends UmbEntityActionBase$1<T> {
44
44
  #private;
45
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string);
45
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
46
46
  execute(): Promise<void>;
47
47
  }
48
48
 
49
49
  declare class UmbMoveEntityAction<T extends {
50
50
  move(): Promise<void>;
51
51
  }> extends UmbEntityActionBase$1<T> {
52
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string);
52
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
53
53
  execute(): Promise<void>;
54
54
  }
55
55
 
56
56
  declare class UmbSortChildrenOfEntityAction<T extends {
57
57
  sortChildrenOf(): Promise<void>;
58
58
  }> extends UmbEntityActionBase$1<T> {
59
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string);
59
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
60
60
  execute(): Promise<void>;
61
61
  }
62
62
 
@@ -65,7 +65,7 @@ declare class UmbTrashEntityAction<T extends {
65
65
  requestTreeItems(uniques: Array<string>): any;
66
66
  }> extends UmbEntityActionBase$1<T> {
67
67
  #private;
68
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string);
68
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
69
69
  execute(): Promise<void>;
70
70
  }
71
71
 
@@ -1,7 +1,7 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { ManifestTypes, ManifestKind, ManifestTypeMap, ManifestBase, SpecificManifestTypeOrManifestBase, ManifestElement, ManifestElementWithElementName, ManifestClass } from './extensions-registry';
3
3
  import { UmbContextToken } from './context-api';
4
- import { UmbControllerHostInterface } from './controller';
4
+ import { UmbControllerHostElement } from './controller';
5
5
 
6
6
  declare class UmbExtensionRegistry {
7
7
  private _extensions;
@@ -28,7 +28,7 @@ declare function hasDefaultExport<ConstructorType>(object: unknown): object is {
28
28
  default: ConstructorType;
29
29
  };
30
30
 
31
- type UmbEntrypointOnInit = (host: UmbControllerHostInterface, extensionRegistry: UmbExtensionRegistry) => void;
31
+ type UmbEntrypointOnInit = (host: UmbControllerHostElement, extensionRegistry: UmbExtensionRegistry) => void;
32
32
  /**
33
33
  * Interface containing supported life-cycle functions for ESModule entrypoints
34
34
  */
@@ -3,7 +3,7 @@ import { UmbWorkspaceAction } from './workspace';
3
3
  import { ClassConstructor } from './models';
4
4
  import { UmbStoreBase, UmbTreeStore } from './store';
5
5
  import { UmbExtensionRegistry } from './extensions-api';
6
- import { UmbControllerHostInterface } from './controller';
6
+ import { UmbControllerHostElement } from './controller';
7
7
 
8
8
  interface ManifestCollectionView extends ManifestElement, ManifestWithConditions<ConditionsCollectionView> {
9
9
  type: 'collectionView';
@@ -253,11 +253,11 @@ interface ConditionsTreeItem {
253
253
  entityType: string;
254
254
  }
255
255
 
256
- interface ManifestUserDashboard extends ManifestElement {
257
- type: 'userDashboard';
258
- meta: MetaUserDashboard;
256
+ interface ManifestUserProfileApp extends ManifestElement {
257
+ type: 'userProfileApp';
258
+ meta: MetaUserProfileApp;
259
259
  }
260
- interface MetaUserDashboard {
260
+ interface MetaUserProfileApp {
261
261
  label: string;
262
262
  pathname: string;
263
263
  }
@@ -330,7 +330,7 @@ interface ManifestTreeStore extends ManifestClass<UmbTreeStore> {
330
330
  type: 'treeStore';
331
331
  }
332
332
 
333
- type ManifestTypes = ManifestCollectionView | ManifestDashboard | ManifestDashboardCollection | ManifestEntityAction | ManifestEntityBulkAction | ManifestEntrypoint | ManifestExternalLoginProvider | ManifestHeaderApp | ManifestHeaderAppButtonKind | ManifestHealthCheck | ManifestPackageView | ManifestPropertyAction | ManifestPropertyEditorModel | ManifestPropertyEditorUI | ManifestRepository | ManifestSection | ManifestSectionSidebarApp | ManifestSectionSidebarAppMenuKind | ManifestSectionView | ManifestMenu | ManifestMenuItem | ManifestMenuItemTreeKind | ManifestTheme | ManifestTree | ManifestTreeItem | ManifestUserDashboard | ManifestWorkspace | ManifestWorkspaceAction | ManifestWorkspaceView | ManifestWorkspaceViewCollection | ManifestModal | ManifestStore | ManifestTreeStore | ManifestBase;
333
+ type ManifestTypes = ManifestCollectionView | ManifestDashboard | ManifestDashboardCollection | ManifestEntityAction | ManifestEntityBulkAction | ManifestEntrypoint | ManifestExternalLoginProvider | ManifestHeaderApp | ManifestHeaderAppButtonKind | ManifestHealthCheck | ManifestPackageView | ManifestPropertyAction | ManifestPropertyEditorModel | ManifestPropertyEditorUI | ManifestRepository | ManifestSection | ManifestSectionSidebarApp | ManifestSectionSidebarAppMenuKind | ManifestSectionView | ManifestMenu | ManifestMenuItem | ManifestMenuItemTreeKind | ManifestTheme | ManifestTree | ManifestTreeItem | ManifestUserProfileApp | ManifestWorkspace | ManifestWorkspaceAction | ManifestWorkspaceView | ManifestWorkspaceViewCollection | ManifestModal | ManifestStore | ManifestTreeStore | ManifestBase;
334
334
  type ManifestStandardTypes = ManifestTypes['type'];
335
335
  type ManifestTypeMap = {
336
336
  [Manifest in ManifestTypes as Manifest['type']]: Manifest;
@@ -390,8 +390,8 @@ interface ManifestEntrypoint extends ManifestBase {
390
390
 
391
391
  declare class UmbEntryPointExtensionInitializer {
392
392
  #private;
393
- constructor(rootHost: UmbControllerHostInterface, extensionRegistry: UmbExtensionRegistry);
393
+ constructor(rootHost: UmbControllerHostElement, extensionRegistry: UmbExtensionRegistry);
394
394
  instantiateEntryPoint(manifest: ManifestEntrypoint): void;
395
395
  }
396
396
 
397
- export { ConditionsCollectionView, ConditionsDashboard, ConditionsDashboardCollection, ConditionsEditorViewCollection, ConditionsEntityAction, ConditionsEntityBulkAction, ConditionsMenuItem, ConditionsPropertyAction, ConditionsSectionSidebarApp, ConditionsSectionView, ConditionsTreeItem, ConditionsWorkspaceAction, ConditionsWorkspaceView, HealthCheck, ManifestBase, ManifestClass, ManifestClassWithClassConstructor, ManifestCollectionView, ManifestDashboard, ManifestDashboardCollection, ManifestElement, ManifestElementWithElementName, ManifestEntityAction, ManifestEntityBulkAction, ManifestEntrypoint, ManifestExternalLoginProvider, ManifestHeaderApp, ManifestHeaderAppButtonKind, ManifestHealthCheck, ManifestKind, ManifestMenu, ManifestMenuItem, ManifestMenuItemTreeKind, ManifestModal, ManifestPackageView, ManifestPropertyAction, ManifestPropertyEditorModel, ManifestPropertyEditorUI, ManifestRepository, ManifestSection, ManifestSectionSidebarApp, ManifestSectionSidebarAppMenuKind, ManifestSectionView, ManifestStandardTypes, ManifestStore, ManifestTheme, ManifestTree, ManifestTreeItem, ManifestTreeStore, ManifestTypeMap, ManifestTypes, ManifestUserDashboard, ManifestWithConditions, ManifestWithLoader, ManifestWithMeta, ManifestWithView, ManifestWorkspace, ManifestWorkspaceAction, ManifestWorkspaceView, ManifestWorkspaceViewCollection, MetaCollectionView, MetaDashboard, MetaDashboardCollection, MetaEditor, MetaEditorViewCollection, MetaEntityAction, MetaEntityBulkAction, MetaExternalLoginProvider, MetaHeaderApp, MetaHeaderAppButtonKind, MetaHealthCheck, MetaManifestWithView, MetaMenuItem, MetaMenuItemTreeKind, MetaPackageView, MetaPropertyEditorModel, MetaPropertyEditorUI, MetaSection, MetaSectionSidebarAppMenuKind, MetaSectionView, MetaTree, MetaUserDashboard, MetaWorkspaceAction, MetaWorkspaceView, PropertyEditorConfig, PropertyEditorConfigDefaultData, PropertyEditorConfigProperty, SpecificManifestTypeOrManifestBase, UmbEntryPointExtensionInitializer };
397
+ export { ConditionsCollectionView, ConditionsDashboard, ConditionsDashboardCollection, ConditionsEditorViewCollection, ConditionsEntityAction, ConditionsEntityBulkAction, ConditionsMenuItem, ConditionsPropertyAction, ConditionsSectionSidebarApp, ConditionsSectionView, ConditionsTreeItem, ConditionsWorkspaceAction, ConditionsWorkspaceView, HealthCheck, ManifestBase, ManifestClass, ManifestClassWithClassConstructor, ManifestCollectionView, ManifestDashboard, ManifestDashboardCollection, ManifestElement, ManifestElementWithElementName, ManifestEntityAction, ManifestEntityBulkAction, ManifestEntrypoint, ManifestExternalLoginProvider, ManifestHeaderApp, ManifestHeaderAppButtonKind, ManifestHealthCheck, ManifestKind, ManifestMenu, ManifestMenuItem, ManifestMenuItemTreeKind, ManifestModal, ManifestPackageView, ManifestPropertyAction, ManifestPropertyEditorModel, ManifestPropertyEditorUI, ManifestRepository, ManifestSection, ManifestSectionSidebarApp, ManifestSectionSidebarAppMenuKind, ManifestSectionView, ManifestStandardTypes, ManifestStore, ManifestTheme, ManifestTree, ManifestTreeItem, ManifestTreeStore, ManifestTypeMap, ManifestTypes, ManifestUserProfileApp, ManifestWithConditions, ManifestWithLoader, ManifestWithMeta, ManifestWithView, ManifestWorkspace, ManifestWorkspaceAction, ManifestWorkspaceView, ManifestWorkspaceViewCollection, MetaCollectionView, MetaDashboard, MetaDashboardCollection, MetaEditor, MetaEditorViewCollection, MetaEntityAction, MetaEntityBulkAction, MetaExternalLoginProvider, MetaHeaderApp, MetaHeaderAppButtonKind, MetaHealthCheck, MetaManifestWithView, MetaMenuItem, MetaMenuItemTreeKind, MetaPackageView, MetaPropertyEditorModel, MetaPropertyEditorUI, MetaSection, MetaSectionSidebarAppMenuKind, MetaSectionView, MetaTree, MetaUserProfileApp, MetaWorkspaceAction, MetaWorkspaceView, PropertyEditorConfig, PropertyEditorConfigDefaultData, PropertyEditorConfigProperty, SpecificManifestTypeOrManifestBase, UmbEntryPointExtensionInitializer };
package/modal.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as lit_html from 'lit-html';
4
4
  import * as lit from 'lit';
5
5
  import { LitElement, TemplateResult } from 'lit';
6
6
  import { UUIModalDialogElement, UUIModalSidebarElement, UUIModalSidebarSize } from '@umbraco-ui/uui';
7
- import { UmbControllerHostInterface as UmbControllerHostInterface$1 } from './controller';
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
10
  import { LanguageResponseModel } from './backend-api';
@@ -89,7 +89,7 @@ declare class UmbModalHandlerClass<ModalData extends object = object, ModalResul
89
89
  key: string;
90
90
  type: UmbModalType;
91
91
  size: UUIModalSidebarSize;
92
- constructor(host: UmbControllerHostInterface$1, modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig);
92
+ constructor(host: UmbControllerHostElement, modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig);
93
93
  private submit;
94
94
  reject(): void;
95
95
  onSubmit(): Promise<ModalResult>;
@@ -103,9 +103,9 @@ interface UmbModalConfig {
103
103
  }
104
104
  declare class UmbModalContext {
105
105
  #private;
106
- host: UmbControllerHostInterface$1;
106
+ host: UmbControllerHostElement;
107
107
  readonly modals: rxjs.Observable<UmbModalHandler<object, any>[]>;
108
- constructor(host: UmbControllerHostInterface$1);
108
+ constructor(host: UmbControllerHostElement);
109
109
  search(): UmbModalHandler<any, any>;
110
110
  /**
111
111
  * Opens a modal or sidebar modal
@@ -466,30 +466,10 @@ declare class UmbModalRouteRegistration<UmbModalTokenData extends object = objec
466
466
  routeSetup(modalContext: UmbModalContext, params: Params): UmbModalHandler<UmbModalTokenData, UmbModalTokenResult> | null;
467
467
  }
468
468
 
469
- interface UmbControllerInterface {
470
- get unique(): string | undefined;
471
- hostConnected(): void;
472
- hostDisconnected(): void;
473
- destroy(): void;
474
- }
475
-
476
- declare class UmbControllerHostInterface extends HTMLElement {
477
- hasController(controller: UmbControllerInterface): boolean;
478
- getControllers(filterMethod: (ctrl: UmbControllerInterface) => boolean): UmbControllerInterface[];
479
- addController(controller: UmbControllerInterface): void;
480
- removeController(controller: UmbControllerInterface): void;
481
- }
482
- declare global {
483
- interface HTMLElement {
484
- connectedCallback(): void;
485
- disconnectedCallback(): void;
486
- }
487
- }
488
-
489
469
  declare class UmbModalRouteRegistrationController<D extends object = object, R = any> extends UmbModalRouteRegistration<D, R> implements UmbControllerInterface {
490
470
  #private;
491
471
  get unique(): undefined;
492
- constructor(host: UmbControllerHostInterface, alias: UmbModalToken$1<D, R> | string, path: string, uniqueParts?: Map<string, string | undefined> | null, modalConfig?: UmbModalConfig$1);
472
+ constructor(host: UmbControllerHostElement, alias: UmbModalToken$1<D, R> | string, path: string, uniqueParts?: Map<string, string | undefined> | null, modalConfig?: UmbModalConfig$1);
493
473
  setUniqueIdentifier(identifier: string, value: string | undefined): void;
494
474
  private _registererModal;
495
475
  hostConnected(): void;
@@ -546,6 +526,15 @@ interface UmbDocumentPickerModalResult {
546
526
  }
547
527
  declare const UMB_DOCUMENT_PICKER_MODAL: UmbModalToken$1<UmbDocumentPickerModalData, UmbDocumentPickerModalResult>;
548
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
+
549
538
  declare enum OEmbedStatus {
550
539
  NotSupported = 0,
551
540
  Error = 1,
@@ -684,6 +673,24 @@ interface UmbSectionPickerModalData {
684
673
  }
685
674
  declare const UMB_SECTION_PICKER_MODAL: UmbModalToken$1<UmbSectionPickerModalData, unknown>;
686
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
+
687
694
  declare const UMB_USER_GROUP_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<UserDetails>, unknown>;
688
695
 
689
696
  declare const UMB_USER_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<UserDetails>, unknown>;
@@ -697,4 +704,4 @@ interface UmbPickerModalResult<T> {
697
704
  selection: Array<string>;
698
705
  }
699
706
 
700
- 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 };
707
+ 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_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, 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 };
@@ -1,6 +1,6 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { Observable, BehaviorSubject } from 'rxjs';
3
- import { UmbControllerInterface, UmbControllerHostInterface } from './controller';
3
+ import { UmbControllerInterface, UmbControllerHostElement } from './controller';
4
4
 
5
5
  declare class UmbObserver<T> {
6
6
  #private;
@@ -13,7 +13,7 @@ declare class UmbObserver<T> {
13
13
  declare class UmbObserverController<T = unknown> extends UmbObserver<T> implements UmbControllerInterface {
14
14
  _alias?: string;
15
15
  get unique(): string | undefined;
16
- constructor(host: UmbControllerHostInterface, source: Observable<T>, callback: (_value: T) => void, alias?: string);
16
+ constructor(host: UmbControllerHostElement, source: Observable<T>, callback: (_value: T) => void, alias?: string);
17
17
  }
18
18
 
19
19
  /**
@@ -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[], _getUnique?: ((entry: T) => unknown) | undefined);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-cms/backoffice",
3
- "version": "1.0.0-next.596cc732",
3
+ "version": "1.0.0-next.70dd5ba6",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "umbraco",
package/resources.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { UmbNotificationOptions } from './notification';
2
2
  import { ProblemDetailsModel } from './backend-api';
3
- import { UmbController, UmbControllerHostInterface } from './controller';
3
+ import { UmbController, UmbControllerHostElement } from './controller';
4
4
  import { DataSourceResponse as DataSourceResponse$1 } from './repository';
5
5
 
6
6
  declare class UmbResourceController extends UmbController {
7
7
  #private;
8
- constructor(host: UmbControllerHostInterface, promise: Promise<any>, alias?: string);
8
+ constructor(host: UmbControllerHostElement, promise: Promise<any>, alias?: string);
9
9
  hostConnected(): void;
10
10
  hostDisconnected(): void;
11
11
  /**
@@ -45,6 +45,6 @@ interface DataSourceResponse<T = undefined> {
45
45
 
46
46
  declare function tryExecute<T>(promise: Promise<T>): Promise<DataSourceResponse<T>>;
47
47
 
48
- declare function tryExecuteAndNotify<T>(host: UmbControllerHostInterface, resource: Promise<T>, options?: UmbNotificationOptions<any>): Promise<DataSourceResponse<T>>;
48
+ declare function tryExecuteAndNotify<T>(host: UmbControllerHostElement, resource: Promise<T>, options?: UmbNotificationOptions<any>): Promise<DataSourceResponse<T>>;
49
49
 
50
50
  export { UmbResourceController, tryExecute, tryExecuteAndNotify };
package/router.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { UmbContextToken } from './context-api';
2
- import { UmbControllerHostInterface } from './controller';
2
+ import { UmbControllerHostElement } from './controller';
3
3
  import { UmbModalRouteRegistration } from './modal';
4
4
 
5
5
  interface UmbRouteLocation {
@@ -12,7 +12,7 @@ interface UmbRouteLocation {
12
12
  declare class UmbRouteContext {
13
13
  #private;
14
14
  private _onGotModals;
15
- constructor(host: UmbControllerHostInterface, _onGotModals: (contextRoutes: any) => void);
15
+ constructor(host: UmbControllerHostElement, _onGotModals: (contextRoutes: any) => void);
16
16
  registerModal(registration: UmbModalRouteRegistration): UmbModalRouteRegistration<object, any>;
17
17
  unregisterModal(registrationToken: ReturnType<typeof this$1.registerModal>): void;
18
18
  _internal_routerGotBasePath(routerBasePath: string): void;
package/store.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { Observable } from 'rxjs';
3
- import { UmbControllerHostInterface } from './controller';
3
+ import { UmbControllerHostElement } from './controller';
4
4
  import { EntityTreeItemResponseModel, FileSystemTreeItemPresentationModel } from './backend-api';
5
5
  import { UmbStoreBase as UmbStoreBase$1, UmbTreeStore as UmbTreeStore$1 } from './store';
6
6
 
@@ -39,9 +39,9 @@ interface UmbContentStore<T> extends UmbEntityDetailStore<T> {
39
39
  }
40
40
 
41
41
  declare class UmbStoreBase {
42
- protected _host: UmbControllerHostInterface;
42
+ protected _host: UmbControllerHostElement;
43
43
  readonly storeAlias: string;
44
- constructor(_host: UmbControllerHostInterface, storeAlias: string);
44
+ constructor(_host: UmbControllerHostElement, storeAlias: string);
45
45
  }
46
46
 
47
47
  /**
@@ -51,33 +51,33 @@
51
51
  "attributes": []
52
52
  },
53
53
  {
54
- "name": "umb-document-type-workspace-edit",
55
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_icon` {`{ color: string; name: string; }`} - \n\n * `_documentType` - \n\n * `_modalContext` - ",
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: () => UmbDocumentTypeWorkspaceEditElement; setup: (component: HTMLElement, info: any) => void; }[]`} - ",
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-document-type-design",
65
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_documentType` - \n\n * `_workspaceContext` - \n\n * `_tabs` {`any[]`} - ",
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-document-type-listview",
70
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_documentType` - \n\n * `_workspaceContext` - ",
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-document-type-permissions",
75
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_documentType` - \n\n * `_workspaceContext` - ",
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-document-type-templates",
80
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_documentType` - \n\n * `_workspaceContext` - ",
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-edit",
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` {`UmbEntityWorkspaceContextInterface<any> | undefined`} - \n\n * `itemsPerPage` {`number`} - ",
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
  {
@@ -934,21 +934,17 @@
934
934
  },
935
935
  {
936
936
  "name": "umb-debug",
937
- "description": "Attributes:\n\n * `enabled` {`boolean`} - \n\n * `dialog` {`boolean`} - \n\n * `contexts` {`Map<any, any>`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `enabled` {`boolean`} - \n\n * `dialog` {`boolean`} - \n\n * `contexts` {`Map<any, any>`} - \n\n * `_debugPaneOpen` {`boolean`} - \n\n * `_modalContext` - ",
937
+ "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
938
  "attributes": [
939
939
  {
940
- "name": "enabled",
941
- "description": "`enabled` {`boolean`} - \n\nProperty: enabled\n\nDefault: false",
940
+ "name": "visible",
941
+ "description": "`visible` {`boolean`} - \n\nProperty: visible\n\nDefault: false",
942
942
  "valueSet": "v"
943
943
  },
944
944
  {
945
945
  "name": "dialog",
946
946
  "description": "`dialog` {`boolean`} - \n\nProperty: dialog\n\nDefault: false",
947
947
  "valueSet": "v"
948
- },
949
- {
950
- "name": "contexts",
951
- "description": "`contexts` {`Map<any, any>`} - \n\nProperty: contexts\n\nDefault: new Map()"
952
948
  }
953
949
  ]
954
950
  },
@@ -1221,12 +1217,8 @@
1221
1217
  },
1222
1218
  {
1223
1219
  "name": "umb-input-document-type-picker",
1224
- "description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `currentDocumentType` - \n\n * `value` {`string`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_selectedKeys` {`string[]`} - \n\n * `selectedKeys` {`string[]`} - \n\n * `currentDocumentType` - \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`} - ",
1220
+ "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
1221
  "attributes": [
1226
- {
1227
- "name": "currentDocumentType",
1228
- "description": "`currentDocumentType` - \n\nProperty: currentDocumentType"
1229
- },
1230
1222
  {
1231
1223
  "name": "value",
1232
1224
  "description": "`value` {`string`} - \n\nProperty: value"
@@ -1956,7 +1948,7 @@
1956
1948
  },
1957
1949
  {
1958
1950
  "name": "umb-workspace-action-menu",
1959
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_actionMenuIsOpen` {`boolean`} - \n\n * `_workspaceContext` {`UmbEntityWorkspaceContextInterface<unknown> | undefined`} - \n\n * `_entityKey` {`string | undefined`} - \n\n * `_entityType` {`string | undefined`} - ",
1951
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_actionMenuIsOpen` {`boolean`} - \n\n * `_workspaceContext` - \n\n * `_entityKey` {`string | undefined`} - \n\n * `_entityType` {`string | undefined`} - ",
1960
1952
  "attributes": []
1961
1953
  },
1962
1954
  {
@@ -1966,7 +1958,7 @@
1966
1958
  },
1967
1959
  {
1968
1960
  "name": "umb-workspace-view-collection",
1969
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `manifest` - \n\n * `_workspaceContext` {`UmbEntityWorkspaceContextInterface<unknown> | undefined`} - \n\n * `_collectionContext` - ",
1961
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `manifest` - \n\n * `_workspaceContext` - \n\n * `_collectionContext` - ",
1970
1962
  "attributes": []
1971
1963
  },
1972
1964
  {
@@ -2875,12 +2867,32 @@
2875
2867
  },
2876
2868
  {
2877
2869
  "name": "umb-current-user-modal",
2878
- "description": "Properties:\n\n * `styles` - \n\n * `modalHandler` - \n\n * `_currentUser` - \n\n * `_history` {`UmbCurrentUserHistoryItem[]`} - \n\n * `_modalContext` - \n\n * `_currentUserStore` - \n\n * `_currentUserHistoryStore` - ",
2870
+ "description": "Properties:\n\n * `styles` - \n\n * `modalHandler` - \n\n * `_currentUser` - \n\n * `_currentUserStore` - ",
2871
+ "attributes": []
2872
+ },
2873
+ {
2874
+ "name": "umb-user-profile-app-external-login-providers",
2875
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - ",
2876
+ "attributes": []
2877
+ },
2878
+ {
2879
+ "name": "umb-user-profile-app-history",
2880
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_history` {`UmbCurrentUserHistoryItem[]`} - ",
2879
2881
  "attributes": []
2880
2882
  },
2881
2883
  {
2882
2884
  "name": "umb-user-dashboard-test",
2883
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_themeAlias` {`string | null`} - \n\n * `_themes` {`any[]`} - \n\n * `options` {`{ name: any; value: any; selected: boolean; }[]`} - ",
2885
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_history` {`UmbCurrentUserHistoryItem[]`} - ",
2886
+ "attributes": []
2887
+ },
2888
+ {
2889
+ "name": "umb-user-profile-app-profile",
2890
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_currentUser` - \n\n * `_modalContext` - \n\n * `_currentUserStore` - ",
2891
+ "attributes": []
2892
+ },
2893
+ {
2894
+ "name": "umb-user-profile-app-themes",
2895
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_themeAlias` {`string | null`} - \n\n * `_themes` {`any[]`} - ",
2884
2896
  "attributes": []
2885
2897
  },
2886
2898
  {
package/workspace.d.ts CHANGED
@@ -1,33 +1,40 @@
1
- import { UmbControllerHostInterface } from './controller';
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
- host: UmbControllerHostInterface;
6
+ host: UmbControllerHostElement;
6
7
  workspaceContext?: T;
7
8
  execute(): Promise<void>;
8
9
  }
9
10
  declare class UmbWorkspaceActionBase<WorkspaceType> {
10
- host: UmbControllerHostInterface;
11
+ host: UmbControllerHostElement;
11
12
  workspaceContext?: WorkspaceType;
12
- constructor(host: UmbControllerHostInterface);
13
+ constructor(host: UmbControllerHostElement);
13
14
  }
14
15
 
15
- interface UmbWorkspaceContextInterface<T = unknown> {
16
- host: UmbControllerHostInterface;
16
+ interface UmbWorkspaceContextInterface<DataType = unknown> {
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(): T;
23
+ getData(): DataType | undefined;
23
24
  destroy(): void;
24
25
  setValidationErrors?(errorMap: any): void;
25
26
  }
26
27
 
27
28
  declare class UmbSaveWorkspaceAction extends UmbWorkspaceActionBase<UmbWorkspaceContextInterface> {
28
29
  #private;
29
- constructor(host: UmbControllerHostInterface);
30
+ constructor(host: UmbControllerHostElement);
30
31
  execute(): Promise<void>;
31
32
  }
32
33
 
33
- export { UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContextInterface };
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 };