@umbraco-cms/backoffice 1.0.0-next.d924405b → 1.0.0-next.de0ffca0

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.
@@ -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, 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.d924405b",
3
+ "version": "1.0.0-next.de0ffca0",
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 ADDED
@@ -0,0 +1,130 @@
1
+ import { UmbContextToken } from './context-api';
2
+ import { UmbControllerHostElement } from './controller';
3
+ import { UmbModalRouteRegistration } from './modal';
4
+
5
+ interface UmbRouteLocation {
6
+ name?: string;
7
+ params: {
8
+ [key: string]: string;
9
+ };
10
+ }
11
+
12
+ declare class UmbRouteContext {
13
+ #private;
14
+ private _onGotModals;
15
+ constructor(host: UmbControllerHostElement, _onGotModals: (contextRoutes: any) => void);
16
+ registerModal(registration: UmbModalRouteRegistration): UmbModalRouteRegistration<object, any>;
17
+ unregisterModal(registrationToken: ReturnType<typeof this$1.registerModal>): void;
18
+ _internal_routerGotBasePath(routerBasePath: string): void;
19
+ _internal_modalRouterChanged(activeModalPath: string | undefined): void;
20
+ }
21
+ declare const UMB_ROUTE_CONTEXT_TOKEN: UmbContextToken<UmbRouteContext>;
22
+
23
+ interface IRouterSlot<D = any, P = any> extends HTMLElement {
24
+ readonly route: IRoute<D> | null;
25
+ readonly isRoot: boolean;
26
+ readonly fragments: IPathFragments | null;
27
+ readonly params: Params | null;
28
+ readonly match: IRouteMatch<D> | null;
29
+ routes: IRoute<D>[];
30
+ add: ((routes: IRoute<D>[], navigate?: boolean) => void);
31
+ clear: (() => void);
32
+ render: (() => Promise<void>);
33
+ constructAbsolutePath: ((path: PathFragment) => string);
34
+ parent: IRouterSlot<P> | null | undefined;
35
+ queryParentRouterSlot: (() => IRouterSlot<P> | null);
36
+ }
37
+ type IRoutingInfo<D = any, P = any> = {
38
+ slot: IRouterSlot<D, P>;
39
+ match: IRouteMatch<D>;
40
+ };
41
+ type CustomResolver<D = any, P = any> = ((info: IRoutingInfo<D>) => boolean | void | Promise<boolean> | Promise<void>);
42
+ type Guard<D = any, P = any> = ((info: IRoutingInfo<D, P>) => boolean | Promise<boolean>);
43
+ type PageComponent = HTMLElement;
44
+ type ModuleResolver = Promise<{
45
+ default: any;
46
+ }>;
47
+ type Class<T extends PageComponent = PageComponent> = {
48
+ new (...args: any[]): T;
49
+ };
50
+ type Setup<D = any> = ((component: PageComponent, info: IRoutingInfo<D>) => void);
51
+ type PathMatch = "prefix" | "suffix" | "full" | "fuzzy";
52
+ /**
53
+ * The base route interface.
54
+ * D = the data type of the data
55
+ */
56
+ interface IRouteBase<D = any> {
57
+ path: PathFragment;
58
+ data?: D;
59
+ guards?: Guard[];
60
+ pathMatch?: PathMatch;
61
+ }
62
+ /**
63
+ * Route type used for redirection.
64
+ */
65
+ interface IRedirectRoute<D = any> extends IRouteBase<D> {
66
+ redirectTo: string;
67
+ preserveQuery?: boolean;
68
+ }
69
+ /**
70
+ * Route type used to resolve and stamp components.
71
+ */
72
+ interface IComponentRoute<D = any> extends IRouteBase<D> {
73
+ component: Class | ModuleResolver | PageComponent | (() => Class) | (() => PageComponent) | (() => ModuleResolver);
74
+ setup?: Setup;
75
+ }
76
+ /**
77
+ * Route type used to take control of how the route should resolve.
78
+ */
79
+ interface IResolverRoute<D = any> extends IRouteBase<D> {
80
+ resolve: CustomResolver;
81
+ }
82
+ type IRoute<D = any> = IRedirectRoute<D> | IComponentRoute<D> | IResolverRoute<D>;
83
+ type PathFragment = string;
84
+ type IPathFragments = {
85
+ consumed: PathFragment;
86
+ rest: PathFragment;
87
+ };
88
+ interface IRouteMatch<D = any> {
89
+ route: IRoute<D>;
90
+ params: Params;
91
+ fragments: IPathFragments;
92
+ match: RegExpMatchArray;
93
+ }
94
+ type PushStateEvent = CustomEvent<null>;
95
+ type ReplaceStateEvent = CustomEvent<null>;
96
+ type ChangeStateEvent = CustomEvent<null>;
97
+ type WillChangeStateEvent = CustomEvent<{
98
+ url?: string | null;
99
+ eventName: GlobalRouterEvent;
100
+ }>;
101
+ type NavigationStartEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
102
+ type NavigationSuccessEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
103
+ type NavigationCancelEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
104
+ type NavigationErrorEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
105
+ type NavigationEndEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
106
+ type Params = {
107
+ [key: string]: string;
108
+ };
109
+ /**
110
+ * History related events.
111
+ */
112
+ type GlobalRouterEvent = "pushstate" | "replacestate" | "popstate" | "changestate" | "willchangestate" | "navigationstart" | "navigationcancel" | "navigationerror" | "navigationsuccess" | "navigationend";
113
+ declare global {
114
+ interface GlobalEventHandlersEventMap {
115
+ "pushstate": PushStateEvent;
116
+ "replacestate": ReplaceStateEvent;
117
+ "popstate": PopStateEvent;
118
+ "changestate": ChangeStateEvent;
119
+ "navigationstart": NavigationStartEvent;
120
+ "navigationend": NavigationEndEvent;
121
+ "navigationsuccess": NavigationSuccessEvent;
122
+ "navigationcancel": NavigationCancelEvent;
123
+ "navigationerror": NavigationErrorEvent;
124
+ "willchangestate": WillChangeStateEvent;
125
+ }
126
+ }
127
+
128
+ type UmbRoute = IRoute;
129
+
130
+ export { UMB_ROUTE_CONTEXT_TOKEN, UmbRoute, UmbRouteContext, UmbRouteLocation };
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
  {
@@ -367,7 +367,7 @@
367
367
  },
368
368
  {
369
369
  "name": "umb-examine-fields-settings-modal",
370
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_fields` {`UmbExamineFieldsSettingsModalData | undefined`} - ",
370
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_fields` - ",
371
371
  "attributes": []
372
372
  },
373
373
  {
@@ -1221,12 +1221,8 @@
1221
1221
  },
1222
1222
  {
1223
1223
  "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`} - ",
1224
+ "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
1225
  "attributes": [
1226
- {
1227
- "name": "currentDocumentType",
1228
- "description": "`currentDocumentType` - \n\nProperty: currentDocumentType"
1229
- },
1230
1226
  {
1231
1227
  "name": "value",
1232
1228
  "description": "`value` {`string`} - \n\nProperty: value"
@@ -1318,8 +1314,18 @@
1318
1314
  },
1319
1315
  {
1320
1316
  "name": "umb-input-multi-url-picker",
1321
- "description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - when the value of the input changes\n\n * `blur` {} - when the input loses focus\n\n * `focus` {} - when the input gains focus\n\nAttributes:\n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `min-message` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `hide-anchor` {`boolean | undefined`} - \n\n * `ignoreUserStartNodes` {`boolean | undefined`} - \n\n * `overlaySize` {UUIModalSidebarSize} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `minMessage` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `hideAnchor` {`boolean | undefined`} - \n\n * `ignoreUserStartNodes` {`boolean | undefined`} - \n\n * `overlaySize` {UUIModalSidebarSize} - \n\n * `urls` {Array<UmbLinkPickerLink>} - \n\n * `_urls` {`UmbLinkPickerLink[]`} - \n\n * `_modalContext` - \n\n * `formAssociated` {`boolean`} - \n\n * `value` {`FormDataEntryValue | FormData`} - \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`} - ",
1317
+ "description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - when the value of the input changes\n\n * `blur` {} - when the input loses focus\n\n * `focus` {} - when the input gains focus\n\nAttributes:\n\n * `alias` {`string | undefined`} - \n\n * `variantId` - \n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `min-message` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `hide-anchor` {`boolean | undefined`} - \n\n * `ignoreUserStartNodes` {`boolean | undefined`} - \n\n * `overlaySize` {UUIModalSidebarSize} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `alias` {`string | undefined`} - \n\n * `variantId` - \n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `minMessage` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `hideAnchor` {`boolean | undefined`} - \n\n * `ignoreUserStartNodes` {`boolean | undefined`} - \n\n * `overlaySize` {UUIModalSidebarSize} - \n\n * `urls` {Array<UmbLinkPickerLink>} - \n\n * `_urls` {`any[]`} - \n\n * `_modalRoute` - \n\n * `myModalRegistration` - \n\n * `formAssociated` {`boolean`} - \n\n * `value` {`FormDataEntryValue | FormData`} - \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`} - ",
1322
1318
  "attributes": [
1319
+ {
1320
+ "name": "alias",
1321
+ "description": "`alias` {`string | undefined`} - \n\nProperty: alias",
1322
+ "values": []
1323
+ },
1324
+ {
1325
+ "name": "variantId",
1326
+ "description": "`variantId` - \n\nProperty: variantId",
1327
+ "values": []
1328
+ },
1323
1329
  {
1324
1330
  "name": "min",
1325
1331
  "description": "`min` {number} - This is a minimum amount of selected items in this input.\n\nProperty: min\n\nDefault: undefined",
@@ -1946,7 +1952,7 @@
1946
1952
  },
1947
1953
  {
1948
1954
  "name": "umb-workspace-action-menu",
1949
- "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`} - ",
1955
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_actionMenuIsOpen` {`boolean`} - \n\n * `_workspaceContext` - \n\n * `_entityKey` {`string | undefined`} - \n\n * `_entityType` {`string | undefined`} - ",
1950
1956
  "attributes": []
1951
1957
  },
1952
1958
  {
@@ -1956,7 +1962,7 @@
1956
1962
  },
1957
1963
  {
1958
1964
  "name": "umb-workspace-view-collection",
1959
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `manifest` - \n\n * `_workspaceContext` {`UmbEntityWorkspaceContextInterface<unknown> | undefined`} - \n\n * `_collectionContext` - ",
1965
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `manifest` - \n\n * `_workspaceContext` - \n\n * `_collectionContext` - ",
1960
1966
  "attributes": []
1961
1967
  },
1962
1968
  {
@@ -2054,23 +2060,21 @@
2054
2060
  },
2055
2061
  {
2056
2062
  "name": "umb-confirm-modal",
2057
- "description": "Attributes:\n\n * `data` {`UmbConfirmModalData | undefined`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `modalHandler` - \n\n * `data` {`UmbConfirmModalData | undefined`} - ",
2063
+ "description": "Attributes:\n\n * `data` - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `modalHandler` - \n\n * `data` - ",
2058
2064
  "attributes": [
2059
2065
  {
2060
2066
  "name": "data",
2061
- "description": "`data` {`UmbConfirmModalData | undefined`} - \n\nProperty: data",
2062
- "values": []
2067
+ "description": "`data` - \n\nProperty: data"
2063
2068
  }
2064
2069
  ]
2065
2070
  },
2066
2071
  {
2067
2072
  "name": "umb-embedded-media-modal",
2068
- "description": "Attributes:\n\n * `data` {`UmbEmbeddedMediaModalData | undefined`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `modalHandler` - \n\n * `data` {`UmbEmbeddedMediaModalData | undefined`} - \n\n * `_model` {`UmbEmbeddedMediaModalModel`} - ",
2073
+ "description": "Attributes:\n\n * `data` - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `modalHandler` - \n\n * `data` - \n\n * `_model` {`UmbEmbeddedMediaModalModel`} - ",
2069
2074
  "attributes": [
2070
2075
  {
2071
2076
  "name": "data",
2072
- "description": "`data` {`UmbEmbeddedMediaModalData | undefined`} - \n\nProperty: data",
2073
- "values": []
2077
+ "description": "`data` - \n\nProperty: data"
2074
2078
  }
2075
2079
  ]
2076
2080
  },
@@ -2094,7 +2098,7 @@
2094
2098
  },
2095
2099
  {
2096
2100
  "name": "umb-link-picker-modal",
2097
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_selectedKey` {`string | undefined`} - \n\n * `_link` {`UmbLinkPickerLink`} - \n\n * `_layout` {`UmbLinkPickerConfig`} - \n\n * `_linkInput` - \n\n * `_linkQueryInput` - \n\n * `_linkTitleInput` - ",
2101
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_selectedKey` {`string | undefined`} - \n\n * `_index` {`number | null`} - \n\n * `_link` - \n\n * `_layout` - \n\n * `_linkInput` - \n\n * `_linkQueryInput` - \n\n * `_linkTitleInput` - ",
2098
2102
  "attributes": []
2099
2103
  },
2100
2104
  {
@@ -2182,12 +2186,11 @@
2182
2186
  },
2183
2187
  {
2184
2188
  "name": "umb-property-editor-ui-picker-modal",
2185
- "description": "Attributes:\n\n * `data` {`UmbPropertyEditorUIPickerModalData | undefined`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `data` {`UmbPropertyEditorUIPickerModalData | undefined`} - \n\n * `_groupedPropertyEditorUIs` {`GroupedPropertyEditorUIs`} - \n\n * `_propertyEditorUIs` {`any[]`} - \n\n * `_selection` {`string[]`} - \n\n * `_submitLabel` {`string`} - \n\n * `modalHandler` - ",
2189
+ "description": "Attributes:\n\n * `data` - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `data` - \n\n * `_groupedPropertyEditorUIs` {`GroupedPropertyEditorUIs`} - \n\n * `_propertyEditorUIs` {`any[]`} - \n\n * `_selection` {`string[]`} - \n\n * `_submitLabel` {`string`} - \n\n * `modalHandler` - ",
2186
2190
  "attributes": [
2187
2191
  {
2188
2192
  "name": "data",
2189
- "description": "`data` {`UmbPropertyEditorUIPickerModalData | undefined`} - \n\nProperty: data",
2190
- "values": []
2193
+ "description": "`data` - \n\nProperty: data"
2191
2194
  }
2192
2195
  ]
2193
2196
  },
@@ -2492,11 +2495,11 @@
2492
2495
  },
2493
2496
  {
2494
2497
  "name": "umb-property-editor-ui-multi-url-picker",
2495
- "description": "Events:\n\n * `property-value-change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `value` {`UmbLinkPickerLink[]`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `value` {`UmbLinkPickerLink[]`} - \n\n * `config` {`any[]`} - \n\n * `_overlaySize` {`UUIModalSidebarSize | undefined`} - \n\n * `_hideAnchor` {`boolean | undefined`} - \n\n * `_ignoreUserStartNodes` {`boolean | undefined`} - \n\n * `_maxNumber` {`number | undefined`} - \n\n * `_minNumber` {`number | undefined`} - ",
2498
+ "description": "Events:\n\n * `property-value-change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `value` {`any[]`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `value` {`any[]`} - \n\n * `config` {`any[]`} - \n\n * `_overlaySize` {`UUIModalSidebarSize | undefined`} - \n\n * `_hideAnchor` {`boolean | undefined`} - \n\n * `_ignoreUserStartNodes` {`boolean | undefined`} - \n\n * `_maxNumber` {`number | undefined`} - \n\n * `_minNumber` {`number | undefined`} - \n\n * `_alias` {`string | undefined`} - \n\n * `_propertyVariantId` {`string | undefined`} - ",
2496
2499
  "attributes": [
2497
2500
  {
2498
2501
  "name": "value",
2499
- "description": "`value` {`UmbLinkPickerLink[]`} - \n\nProperty: value\n\nDefault: "
2502
+ "description": "`value` {`any[]`} - \n\nProperty: value\n\nDefault: "
2500
2503
  },
2501
2504
  {
2502
2505
  "name": "onproperty-value-change",
@@ -2823,12 +2826,12 @@
2823
2826
  "attributes": []
2824
2827
  },
2825
2828
  {
2826
- "name": "umb-export-dictionary-modal-layout",
2829
+ "name": "umb-export-dictionary-modal",
2827
2830
  "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_form` {`HTMLFormElement`} - ",
2828
2831
  "attributes": []
2829
2832
  },
2830
2833
  {
2831
- "name": "umb-import-dictionary-modal-layout",
2834
+ "name": "umb-import-dictionary-modal",
2832
2835
  "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_form` {`HTMLFormElement`} - \n\n * `_uploadedDictionary` - \n\n * `_showUploadView` {`boolean`} - \n\n * `_showImportView` {`boolean`} - \n\n * `_showErrorView` {`boolean`} - \n\n * `_selection` {`string[]`} - ",
2833
2836
  "attributes": []
2834
2837
  },
@@ -2858,23 +2861,42 @@
2858
2861
  },
2859
2862
  {
2860
2863
  "name": "umb-change-password-modal",
2861
- "description": "Attributes:\n\n * `data` {`UmbChangePasswordModalData | undefined`} - \n\nProperties:\n\n * `styles` - \n\n * `modalHandler` - \n\n * `data` {`UmbChangePasswordModalData | undefined`} - ",
2864
+ "description": "Attributes:\n\n * `data` - \n\nProperties:\n\n * `styles` - \n\n * `modalHandler` - \n\n * `data` - ",
2862
2865
  "attributes": [
2863
2866
  {
2864
2867
  "name": "data",
2865
- "description": "`data` {`UmbChangePasswordModalData | undefined`} - \n\nProperty: data",
2866
- "values": []
2868
+ "description": "`data` - \n\nProperty: data"
2867
2869
  }
2868
2870
  ]
2869
2871
  },
2870
2872
  {
2871
2873
  "name": "umb-current-user-modal",
2872
- "description": "Properties:\n\n * `styles` - \n\n * `modalHandler` - \n\n * `_currentUser` - \n\n * `_history` {`UmbCurrentUserHistoryItem[]`} - \n\n * `_modalContext` - \n\n * `_currentUserStore` - \n\n * `_currentUserHistoryStore` - ",
2874
+ "description": "Properties:\n\n * `styles` - \n\n * `modalHandler` - \n\n * `_currentUser` - \n\n * `_currentUserStore` - ",
2875
+ "attributes": []
2876
+ },
2877
+ {
2878
+ "name": "umb-user-profile-app-external-login-providers",
2879
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - ",
2880
+ "attributes": []
2881
+ },
2882
+ {
2883
+ "name": "umb-user-profile-app-history",
2884
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_history` {`UmbCurrentUserHistoryItem[]`} - ",
2873
2885
  "attributes": []
2874
2886
  },
2875
2887
  {
2876
2888
  "name": "umb-user-dashboard-test",
2877
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_themeAlias` {`string | null`} - \n\n * `_themes` {`any[]`} - \n\n * `options` {`{ name: any; value: any; selected: boolean; }[]`} - ",
2889
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_history` {`UmbCurrentUserHistoryItem[]`} - ",
2890
+ "attributes": []
2891
+ },
2892
+ {
2893
+ "name": "umb-user-profile-app-profile",
2894
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_currentUser` - \n\n * `_modalContext` - \n\n * `_currentUserStore` - ",
2895
+ "attributes": []
2896
+ },
2897
+ {
2898
+ "name": "umb-user-profile-app-themes",
2899
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_themeAlias` {`string | null`} - \n\n * `_themes` {`any[]`} - ",
2878
2900
  "attributes": []
2879
2901
  },
2880
2902
  {
@@ -3037,11 +3059,34 @@
3037
3059
  },
3038
3060
  {
3039
3061
  "name": "umb-router-slot",
3040
- "description": "Events:\n\n * `init` - fires when the router is connected\n\n * `change` - fires when a path of this router is changed\n\nAttributes:\n\n * `routes` {`IRoute<any>[] | undefined`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `routes` {`IRoute<any>[] | undefined`} - \n\n * `_routerPath` {`string | undefined`} - \n\n * `absoluteRouterPath` {`string | undefined`} - \n\n * `_activeLocalPath` {`string | undefined`} - \n\n * `localActiveViewPath` {`string | undefined`} - \n\n * `absoluteActiveViewPath` {`string`} - \n\n * `_onChangeState` - \n\n * `_onNavigationChanged` - ",
3062
+ "description": "Events:\n\n * `init` - fires when the router is connected\n\n * `change` - fires when a path of this router is changed\n\nAttributes:\n\n * `routes` {`any[] | undefined`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `routes` {`any[] | undefined`} - \n\n * `_routerPath` {`string | undefined`} - \n\n * `absoluteRouterPath` {`string | undefined`} - \n\n * `_activeLocalPath` {`string | undefined`} - \n\n * `localActiveViewPath` {`string | undefined`} - \n\n * `absoluteActiveViewPath` {`string`} - \n\n * `_onNavigationChanged` - ",
3063
+ "attributes": [
3064
+ {
3065
+ "name": "routes",
3066
+ "description": "`routes` {`any[] | undefined`} - \n\nProperty: routes",
3067
+ "values": []
3068
+ },
3069
+ {
3070
+ "name": "oninit",
3071
+ "description": "`init` - fires when the router is connected"
3072
+ },
3073
+ {
3074
+ "name": "onchange",
3075
+ "description": "`change` - fires when a path of this router is changed"
3076
+ }
3077
+ ]
3078
+ },
3079
+ {
3080
+ "name": "umb-variant-router-slot",
3081
+ "description": "Events:\n\n * `init` - fires when the router is connected\n\n * `change` - fires when a path of this router is changed\n\nAttributes:\n\n * `variantId` {`UmbVariantId[]`} - \n\n * `routes` {`any[] | undefined`} - \n\nProperties:\n\n * `_routes` {`any[] | undefined`} - \n\n * `variantId` {`UmbVariantId[]`} - \n\n * `styles` {`CSSResult[]`} - \n\n * `routes` {`any[] | undefined`} - \n\n * `_routerPath` {`string | undefined`} - \n\n * `absoluteRouterPath` {`string | undefined`} - \n\n * `_activeLocalPath` {`string | undefined`} - \n\n * `localActiveViewPath` {`string | undefined`} - \n\n * `absoluteActiveViewPath` {`string`} - \n\n * `_onNavigationChanged` - ",
3041
3082
  "attributes": [
3083
+ {
3084
+ "name": "variantId",
3085
+ "description": "`variantId` {`UmbVariantId[]`} - \n\nProperty: variantId"
3086
+ },
3042
3087
  {
3043
3088
  "name": "routes",
3044
- "description": "`routes` {`IRoute<any>[] | undefined`} - \n\nProperty: routes",
3089
+ "description": "`routes` {`any[] | undefined`} - \n\nProperty: routes",
3045
3090
  "values": []
3046
3091
  },
3047
3092
  {
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 };