@umbraco-cms/backoffice 1.0.0-next.bf0e5e95 → 1.0.0-next.bf36c0fd
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/backend-api.d.ts +1036 -295
- package/collection.d.ts +38 -0
- package/content-type.d.ts +127 -0
- package/context-api.d.ts +72 -2
- package/controller.d.ts +3 -2
- package/custom-elements.json +5226 -4276
- package/element.d.ts +5 -5
- package/entity-action.d.ts +19 -9
- package/extensions-api.d.ts +13 -12
- package/extensions-registry.d.ts +299 -88
- package/id.d.ts +6 -0
- package/modal.d.ts +101 -361
- package/models.d.ts +7 -69
- package/notification.d.ts +1 -1
- package/observable-api.d.ts +89 -48
- package/package.json +1 -1
- package/picker-input.d.ts +25 -0
- package/repository.d.ts +114 -44
- package/resources.d.ts +24 -15
- package/router.d.ts +263 -25
- package/section.d.ts +29 -0
- package/sorter.d.ts +103 -0
- package/store.d.ts +51 -56
- package/tree.d.ts +136 -0
- package/umbraco-package-schema.json +37822 -0
- package/utils.d.ts +28 -8
- package/variant.d.ts +21 -0
- package/vscode-html-custom-data.json +2193 -1884
- package/workspace.d.ts +69 -17
- package/property-editor.d.ts +0 -8
package/modal.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import * as lit_html from 'lit-html';
|
|
4
3
|
import * as lit from 'lit';
|
|
5
4
|
import { LitElement, TemplateResult } from 'lit';
|
|
5
|
+
import * as lit_html from 'lit-html';
|
|
6
6
|
import { UUIModalDialogElement, UUIModalSidebarElement, UUIModalSidebarSize } from '@umbraco-ui/uui';
|
|
7
|
-
import { UmbControllerHostElement, UmbControllerInterface } from '
|
|
8
|
-
import { UmbContextToken } from '
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { UmbControllerHostElement, UmbControllerInterface } from '@umbraco-cms/backoffice/controller';
|
|
8
|
+
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
9
|
+
import { Params } from '@umbraco-cms/backoffice/router';
|
|
10
|
+
import { UmbModalToken as UmbModalToken$1, UmbModalConfig as UmbModalConfig$1, UmbTreePickerModalData as UmbTreePickerModalData$1, UmbPickerModalResult as UmbPickerModalResult$1, UmbPickerModalData as UmbPickerModalData$1 } from '@umbraco-cms/backoffice/modal';
|
|
11
|
+
import { DocumentTreeItemResponseModel, EntityTreeItemResponseModel, LanguageResponseModel, ContentTreeItemResponseModel, UserResponseModel, FolderReponseModel, FolderTreeItemResponseModel } from '@umbraco-cms/backoffice/backend-api';
|
|
12
12
|
|
|
13
13
|
declare class UmbSearchModalElement extends LitElement {
|
|
14
14
|
#private;
|
|
15
|
-
static styles: lit.CSSResult[];
|
|
16
15
|
private _input;
|
|
17
16
|
private _search;
|
|
18
17
|
private _groups;
|
|
19
18
|
connectedCallback(): void;
|
|
20
19
|
render(): lit_html.TemplateResult<1>;
|
|
20
|
+
static styles: lit.CSSResult[];
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
declare global {
|
|
@@ -26,38 +26,36 @@ declare global {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
declare class UmbModalToken<
|
|
29
|
+
declare class UmbModalToken<ModalDataType extends object = object, ModalResultType = unknown> {
|
|
30
30
|
protected alias: string;
|
|
31
31
|
protected defaultConfig?: UmbModalConfig | undefined;
|
|
32
|
-
protected
|
|
32
|
+
protected defaultData?: ModalDataType | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* Get the data type of the token's data.
|
|
35
35
|
*
|
|
36
36
|
* @public
|
|
37
|
-
* @type {
|
|
37
|
+
* @type {ModalDataType}
|
|
38
38
|
* @memberOf UmbModalToken
|
|
39
39
|
* @example `typeof MyModal.TYPE`
|
|
40
40
|
* @returns undefined
|
|
41
41
|
*/
|
|
42
|
-
readonly DATA:
|
|
42
|
+
readonly DATA: ModalDataType;
|
|
43
43
|
/**
|
|
44
44
|
* Get the result type of the token
|
|
45
45
|
*
|
|
46
46
|
* @public
|
|
47
|
-
* @type {
|
|
47
|
+
* @type {ModalResultType}
|
|
48
48
|
* @memberOf UmbModalToken
|
|
49
49
|
* @example `typeof MyModal.RESULT`
|
|
50
50
|
* @returns undefined
|
|
51
51
|
*/
|
|
52
|
-
readonly RESULT:
|
|
52
|
+
readonly RESULT: ModalResultType;
|
|
53
53
|
/**
|
|
54
54
|
* @param alias Unique identifier for the token,
|
|
55
55
|
* @param defaultConfig Default configuration for the modal,
|
|
56
|
-
* @param
|
|
57
|
-
* used only for debugging purposes,
|
|
58
|
-
* it should but does not need to be unique
|
|
56
|
+
* @param defaultData Default data for the modal,
|
|
59
57
|
*/
|
|
60
|
-
constructor(alias: string, defaultConfig?: UmbModalConfig | undefined,
|
|
58
|
+
constructor(alias: string, defaultConfig?: UmbModalConfig | undefined, defaultData?: ModalDataType | undefined);
|
|
61
59
|
/**
|
|
62
60
|
* This method must always return the unique alias of the token since that
|
|
63
61
|
* will be used to look up the token in the injector.
|
|
@@ -66,6 +64,7 @@ declare class UmbModalToken<Data extends object = object, Result = unknown> {
|
|
|
66
64
|
*/
|
|
67
65
|
toString(): string;
|
|
68
66
|
getDefaultConfig(): UmbModalConfig | undefined;
|
|
67
|
+
getDefaultData(): ModalDataType | undefined;
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
/**
|
|
@@ -104,7 +103,7 @@ interface UmbModalConfig {
|
|
|
104
103
|
declare class UmbModalContext {
|
|
105
104
|
#private;
|
|
106
105
|
host: UmbControllerHostElement;
|
|
107
|
-
readonly modals: rxjs.Observable<UmbModalHandler
|
|
106
|
+
readonly modals: rxjs.Observable<UmbModalHandler[]>;
|
|
108
107
|
constructor(host: UmbControllerHostElement);
|
|
109
108
|
search(): UmbModalHandler<any, any>;
|
|
110
109
|
/**
|
|
@@ -126,316 +125,6 @@ declare class UmbModalContext {
|
|
|
126
125
|
}
|
|
127
126
|
declare const UMB_MODAL_CONTEXT_TOKEN: UmbContextToken<UmbModalContext>;
|
|
128
127
|
|
|
129
|
-
interface IRouterSlot<D = any, P = any> extends HTMLElement {
|
|
130
|
-
readonly route: IRoute<D> | null;
|
|
131
|
-
readonly isRoot: boolean;
|
|
132
|
-
readonly fragments: IPathFragments | null;
|
|
133
|
-
readonly params: Params | null;
|
|
134
|
-
readonly match: IRouteMatch<D> | null;
|
|
135
|
-
routes: IRoute<D>[];
|
|
136
|
-
add: ((routes: IRoute<D>[], navigate?: boolean) => void);
|
|
137
|
-
clear: (() => void);
|
|
138
|
-
render: (() => Promise<void>);
|
|
139
|
-
constructAbsolutePath: ((path: PathFragment) => string);
|
|
140
|
-
parent: IRouterSlot<P> | null | undefined;
|
|
141
|
-
queryParentRouterSlot: (() => IRouterSlot<P> | null);
|
|
142
|
-
}
|
|
143
|
-
type IRoutingInfo<D = any, P = any> = {
|
|
144
|
-
slot: IRouterSlot<D, P>;
|
|
145
|
-
match: IRouteMatch<D>;
|
|
146
|
-
};
|
|
147
|
-
type CustomResolver<D = any, P = any> = ((info: IRoutingInfo<D>) => boolean | void | Promise<boolean> | Promise<void>);
|
|
148
|
-
type Guard<D = any, P = any> = ((info: IRoutingInfo<D, P>) => boolean | Promise<boolean>);
|
|
149
|
-
type PageComponent = HTMLElement;
|
|
150
|
-
type ModuleResolver = Promise<{
|
|
151
|
-
default: any;
|
|
152
|
-
}>;
|
|
153
|
-
type Class<T extends PageComponent = PageComponent> = {
|
|
154
|
-
new (...args: any[]): T;
|
|
155
|
-
};
|
|
156
|
-
type Setup<D = any> = ((component: PageComponent, info: IRoutingInfo<D>) => void);
|
|
157
|
-
type PathMatch = "prefix" | "suffix" | "full" | "fuzzy";
|
|
158
|
-
/**
|
|
159
|
-
* The base route interface.
|
|
160
|
-
* D = the data type of the data
|
|
161
|
-
*/
|
|
162
|
-
interface IRouteBase<D = any> {
|
|
163
|
-
path: PathFragment;
|
|
164
|
-
data?: D;
|
|
165
|
-
guards?: Guard[];
|
|
166
|
-
pathMatch?: PathMatch;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Route type used for redirection.
|
|
170
|
-
*/
|
|
171
|
-
interface IRedirectRoute<D = any> extends IRouteBase<D> {
|
|
172
|
-
redirectTo: string;
|
|
173
|
-
preserveQuery?: boolean;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Route type used to resolve and stamp components.
|
|
177
|
-
*/
|
|
178
|
-
interface IComponentRoute<D = any> extends IRouteBase<D> {
|
|
179
|
-
component: Class | ModuleResolver | PageComponent | (() => Class) | (() => PageComponent) | (() => ModuleResolver);
|
|
180
|
-
setup?: Setup;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Route type used to take control of how the route should resolve.
|
|
184
|
-
*/
|
|
185
|
-
interface IResolverRoute<D = any> extends IRouteBase<D> {
|
|
186
|
-
resolve: CustomResolver;
|
|
187
|
-
}
|
|
188
|
-
type IRoute<D = any> = IRedirectRoute<D> | IComponentRoute<D> | IResolverRoute<D>;
|
|
189
|
-
type PathFragment = string;
|
|
190
|
-
type IPathFragments = {
|
|
191
|
-
consumed: PathFragment;
|
|
192
|
-
rest: PathFragment;
|
|
193
|
-
};
|
|
194
|
-
interface IRouteMatch<D = any> {
|
|
195
|
-
route: IRoute<D>;
|
|
196
|
-
params: Params;
|
|
197
|
-
fragments: IPathFragments;
|
|
198
|
-
match: RegExpMatchArray;
|
|
199
|
-
}
|
|
200
|
-
type PushStateEvent = CustomEvent<null>;
|
|
201
|
-
type ReplaceStateEvent = CustomEvent<null>;
|
|
202
|
-
type ChangeStateEvent = CustomEvent<null>;
|
|
203
|
-
type WillChangeStateEvent = CustomEvent<{
|
|
204
|
-
url?: string | null;
|
|
205
|
-
eventName: GlobalRouterEvent;
|
|
206
|
-
}>;
|
|
207
|
-
type NavigationStartEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
|
|
208
|
-
type NavigationSuccessEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
|
|
209
|
-
type NavigationCancelEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
|
|
210
|
-
type NavigationErrorEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
|
|
211
|
-
type NavigationEndEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
|
|
212
|
-
type Params = {
|
|
213
|
-
[key: string]: string;
|
|
214
|
-
};
|
|
215
|
-
/**
|
|
216
|
-
* History related events.
|
|
217
|
-
*/
|
|
218
|
-
type GlobalRouterEvent = "pushstate" | "replacestate" | "popstate" | "changestate" | "willchangestate" | "navigationstart" | "navigationcancel" | "navigationerror" | "navigationsuccess" | "navigationend";
|
|
219
|
-
declare global {
|
|
220
|
-
interface GlobalEventHandlersEventMap {
|
|
221
|
-
"pushstate": PushStateEvent;
|
|
222
|
-
"replacestate": ReplaceStateEvent;
|
|
223
|
-
"popstate": PopStateEvent;
|
|
224
|
-
"changestate": ChangeStateEvent;
|
|
225
|
-
"navigationstart": NavigationStartEvent;
|
|
226
|
-
"navigationend": NavigationEndEvent;
|
|
227
|
-
"navigationsuccess": NavigationSuccessEvent;
|
|
228
|
-
"navigationcancel": NavigationCancelEvent;
|
|
229
|
-
"navigationerror": NavigationErrorEvent;
|
|
230
|
-
"willchangestate": WillChangeStateEvent;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Slot for a node in the router tree.
|
|
236
|
-
* @slot - Default content.
|
|
237
|
-
* @event changestate - Dispatched when the router slot state changes.
|
|
238
|
-
*/
|
|
239
|
-
declare class RouterSlot<D = any, P = any> extends HTMLElement implements IRouterSlot<D, P> {
|
|
240
|
-
/**
|
|
241
|
-
* Listeners on the router.
|
|
242
|
-
*/
|
|
243
|
-
private listeners;
|
|
244
|
-
/**
|
|
245
|
-
* The available routes.
|
|
246
|
-
*/
|
|
247
|
-
private _routes;
|
|
248
|
-
get routes(): IRoute<D>[];
|
|
249
|
-
set routes(routes: IRoute<D>[]);
|
|
250
|
-
/**
|
|
251
|
-
* The parent router.
|
|
252
|
-
* Is REQUIRED if this router is a child.
|
|
253
|
-
* When set, the relevant listeners are added or teared down because they depend on the parent.
|
|
254
|
-
*/
|
|
255
|
-
_parent: IRouterSlot<P> | null | undefined;
|
|
256
|
-
get parent(): IRouterSlot<P> | null | undefined;
|
|
257
|
-
set parent(router: IRouterSlot<P> | null | undefined);
|
|
258
|
-
/**
|
|
259
|
-
* Whether the router is a root router.
|
|
260
|
-
*/
|
|
261
|
-
get isRoot(): boolean;
|
|
262
|
-
/**
|
|
263
|
-
* The current route match.
|
|
264
|
-
*/
|
|
265
|
-
private _routeMatch;
|
|
266
|
-
get match(): IRouteMatch<D> | null;
|
|
267
|
-
/**
|
|
268
|
-
* The current route of the match.
|
|
269
|
-
*/
|
|
270
|
-
get route(): IRoute<D> | null;
|
|
271
|
-
/**
|
|
272
|
-
* The current path fragment of the match
|
|
273
|
-
*/
|
|
274
|
-
get fragments(): IPathFragments | null;
|
|
275
|
-
/**
|
|
276
|
-
* The current params of the match.
|
|
277
|
-
*/
|
|
278
|
-
get params(): Params | null;
|
|
279
|
-
/**
|
|
280
|
-
* Hooks up the element.
|
|
281
|
-
*/
|
|
282
|
-
constructor();
|
|
283
|
-
/**
|
|
284
|
-
* Query the parent router slot when the router slot is connected.
|
|
285
|
-
*/
|
|
286
|
-
connectedCallback(): void;
|
|
287
|
-
/**
|
|
288
|
-
* Tears down the element.
|
|
289
|
-
*/
|
|
290
|
-
disconnectedCallback(): void;
|
|
291
|
-
/**
|
|
292
|
-
* Queries the parent router.
|
|
293
|
-
*/
|
|
294
|
-
queryParentRouterSlot(): IRouterSlot<P> | null;
|
|
295
|
-
/**
|
|
296
|
-
* Returns an absolute path relative to the router slot.
|
|
297
|
-
* @param path
|
|
298
|
-
*/
|
|
299
|
-
constructAbsolutePath(path: PathFragment): string;
|
|
300
|
-
/**
|
|
301
|
-
* Adds routes to the router.
|
|
302
|
-
* Navigates automatically if the router slot is the root and is connected.
|
|
303
|
-
* @param routes
|
|
304
|
-
* @param navigate
|
|
305
|
-
*/
|
|
306
|
-
add(routes: IRoute<D>[], navigate?: boolean): void;
|
|
307
|
-
/**
|
|
308
|
-
* Removes all routes.
|
|
309
|
-
*/
|
|
310
|
-
clear(): void;
|
|
311
|
-
/**
|
|
312
|
-
* Each time the path changes, load the new path.
|
|
313
|
-
*/
|
|
314
|
-
render(): Promise<void>;
|
|
315
|
-
/**
|
|
316
|
-
* Attaches listeners, either globally or on the parent router.
|
|
317
|
-
*/
|
|
318
|
-
protected attachListeners(): void;
|
|
319
|
-
/**
|
|
320
|
-
* Clears the children in the DOM.
|
|
321
|
-
*/
|
|
322
|
-
protected clearChildren(): void;
|
|
323
|
-
/**
|
|
324
|
-
* Detaches the listeners.
|
|
325
|
-
*/
|
|
326
|
-
protected detachListeners(): void;
|
|
327
|
-
/**
|
|
328
|
-
* Notify the listeners.
|
|
329
|
-
*/
|
|
330
|
-
notifyChildRouters(info: any): void;
|
|
331
|
-
/**
|
|
332
|
-
* Loads a new path based on the routes.
|
|
333
|
-
* Returns true if a navigation was made to a new page.
|
|
334
|
-
*/
|
|
335
|
-
protected renderPath(path: string | PathFragment): Promise<boolean>;
|
|
336
|
-
}
|
|
337
|
-
declare global {
|
|
338
|
-
interface HTMLElementTagNameMap {
|
|
339
|
-
"router-slot": RouterSlot;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Router link.
|
|
345
|
-
* @slot - Default content.
|
|
346
|
-
*/
|
|
347
|
-
declare class RouterLink extends HTMLElement {
|
|
348
|
-
private listeners;
|
|
349
|
-
private _context;
|
|
350
|
-
static get observedAttributes(): string[];
|
|
351
|
-
/**
|
|
352
|
-
* The path of the navigation.
|
|
353
|
-
* @attr
|
|
354
|
-
*/
|
|
355
|
-
set path(value: string | PathFragment);
|
|
356
|
-
get path(): string | PathFragment;
|
|
357
|
-
/**
|
|
358
|
-
* Whether the element is disabled or not.
|
|
359
|
-
* @attr
|
|
360
|
-
*/
|
|
361
|
-
get disabled(): boolean;
|
|
362
|
-
set disabled(value: boolean);
|
|
363
|
-
/**
|
|
364
|
-
* Whether the element is active or not.
|
|
365
|
-
* @attr
|
|
366
|
-
*/
|
|
367
|
-
get active(): boolean;
|
|
368
|
-
set active(value: boolean);
|
|
369
|
-
/**
|
|
370
|
-
* Whether the focus should be delegated.
|
|
371
|
-
* @attr
|
|
372
|
-
*/
|
|
373
|
-
get delegateFocus(): boolean;
|
|
374
|
-
set delegateFocus(value: boolean);
|
|
375
|
-
/**
|
|
376
|
-
* Whether the query should be preserved or not.
|
|
377
|
-
* @attr
|
|
378
|
-
*/
|
|
379
|
-
get preserveQuery(): boolean;
|
|
380
|
-
set preserveQuery(value: boolean);
|
|
381
|
-
/**
|
|
382
|
-
* The current router slot context.
|
|
383
|
-
*/
|
|
384
|
-
get context(): IRouterSlot | null;
|
|
385
|
-
set context(value: IRouterSlot | null);
|
|
386
|
-
/**
|
|
387
|
-
* Returns the absolute path.
|
|
388
|
-
*/
|
|
389
|
-
get absolutePath(): string;
|
|
390
|
-
constructor();
|
|
391
|
-
/**
|
|
392
|
-
* Hooks up the element.
|
|
393
|
-
*/
|
|
394
|
-
connectedCallback(): void;
|
|
395
|
-
/**
|
|
396
|
-
* Tear down listeners.
|
|
397
|
-
*/
|
|
398
|
-
disconnectedCallback(): void;
|
|
399
|
-
/**
|
|
400
|
-
* Reacts to attribute changed callback.
|
|
401
|
-
* @param name
|
|
402
|
-
* @param oldValue
|
|
403
|
-
* @param newValue
|
|
404
|
-
*/
|
|
405
|
-
attributeChangedCallback(name: string, oldValue: unknown, newValue: unknown): void;
|
|
406
|
-
private updateTabIndex;
|
|
407
|
-
/**
|
|
408
|
-
* Returns the absolute path constructed relative to the context.
|
|
409
|
-
* If no router parent was found the path property is the absolute one.
|
|
410
|
-
*/
|
|
411
|
-
constructAbsolutePath(path: string): string;
|
|
412
|
-
/**
|
|
413
|
-
* Updates whether the route is active or not.
|
|
414
|
-
*/
|
|
415
|
-
protected updateActive(): void;
|
|
416
|
-
/**
|
|
417
|
-
* Navigates to the specified path.
|
|
418
|
-
*/
|
|
419
|
-
navigate(path: string, e?: Event): void;
|
|
420
|
-
}
|
|
421
|
-
declare global {
|
|
422
|
-
interface HTMLElementTagNameMap {
|
|
423
|
-
"router-link": RouterLink;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
declare global {
|
|
428
|
-
interface History {
|
|
429
|
-
"native": {
|
|
430
|
-
"back": ((distance?: any) => void);
|
|
431
|
-
"forward": ((distance?: any) => void);
|
|
432
|
-
"go": ((delta?: any) => void);
|
|
433
|
-
"pushState": ((data: any, title?: string, url?: string | null) => void);
|
|
434
|
-
"replaceState": ((data: any, title?: string, url?: string | null) => void);
|
|
435
|
-
};
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
128
|
type UmbModalRouteBuilder = (params: {
|
|
440
129
|
[key: string]: string | number;
|
|
441
130
|
}) => string;
|
|
@@ -478,7 +167,7 @@ declare class UmbModalRouteRegistrationController<D extends object = object, R =
|
|
|
478
167
|
}
|
|
479
168
|
|
|
480
169
|
interface UmbAllowedDocumentTypesModalData {
|
|
481
|
-
|
|
170
|
+
id: string | null;
|
|
482
171
|
}
|
|
483
172
|
interface UmbAllowedDocumentTypesModalResult {
|
|
484
173
|
documentTypeKey: string;
|
|
@@ -517,14 +206,13 @@ interface UmbContextDebuggerModalData {
|
|
|
517
206
|
}
|
|
518
207
|
declare const UMB_CONTEXT_DEBUGGER_MODAL: UmbModalToken$1<UmbContextDebuggerModalData, unknown>;
|
|
519
208
|
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
declare const UMB_DOCUMENT_PICKER_MODAL: UmbModalToken$1<UmbDocumentPickerModalData, UmbDocumentPickerModalResult>;
|
|
209
|
+
type UmbDocumentPickerModalData = UmbTreePickerModalData$1<DocumentTreeItemResponseModel>;
|
|
210
|
+
type UmbDocumentPickerModalResult = UmbPickerModalResult$1;
|
|
211
|
+
declare const UMB_DOCUMENT_PICKER_MODAL: UmbModalToken$1<UmbDocumentPickerModalData, UmbPickerModalResult$1>;
|
|
212
|
+
|
|
213
|
+
type UmbDocumentTypePickerModalData = UmbTreePickerModalData$1<EntityTreeItemResponseModel>;
|
|
214
|
+
type UmbDocumentTypePickerModalResult = UmbPickerModalResult$1;
|
|
215
|
+
declare const UMB_DOCUMENT_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDocumentTypePickerModalData, UmbPickerModalResult$1>;
|
|
528
216
|
|
|
529
217
|
declare enum OEmbedStatus {
|
|
530
218
|
NotSupported = 0,
|
|
@@ -567,8 +255,8 @@ interface UmbExportDictionaryModalResult {
|
|
|
567
255
|
declare const UMB_EXPORT_DICTIONARY_MODAL: UmbModalToken$1<UmbExportDictionaryModalData, UmbExportDictionaryModalResult>;
|
|
568
256
|
|
|
569
257
|
interface UmbIconPickerModalData {
|
|
570
|
-
|
|
571
|
-
|
|
258
|
+
color: string | undefined;
|
|
259
|
+
icon: string | undefined;
|
|
572
260
|
}
|
|
573
261
|
interface UmbIconPickerModalResult {
|
|
574
262
|
color: string | undefined;
|
|
@@ -580,8 +268,8 @@ interface UmbImportDictionaryModalData {
|
|
|
580
268
|
unique: string | null;
|
|
581
269
|
}
|
|
582
270
|
interface UmbImportDictionaryModalResult {
|
|
583
|
-
|
|
584
|
-
|
|
271
|
+
temporaryFileId?: string;
|
|
272
|
+
parentId?: string;
|
|
585
273
|
}
|
|
586
274
|
declare const UMB_IMPORT_DICTIONARY_MODAL: UmbModalToken$1<UmbImportDictionaryModalData, UmbImportDictionaryModalResult>;
|
|
587
275
|
|
|
@@ -589,11 +277,11 @@ declare const UMB_INVITE_USER_MODAL: UmbModalToken$1<object, unknown>;
|
|
|
589
277
|
|
|
590
278
|
interface UmbLanguagePickerModalData {
|
|
591
279
|
multiple?: boolean;
|
|
592
|
-
selection?: Array<string>;
|
|
280
|
+
selection?: Array<string | null>;
|
|
593
281
|
filter?: (language: LanguageResponseModel) => boolean;
|
|
594
282
|
}
|
|
595
283
|
interface UmbLanguagePickerModalResult {
|
|
596
|
-
selection: Array<string>;
|
|
284
|
+
selection: Array<string | null>;
|
|
597
285
|
}
|
|
598
286
|
declare const UMB_LANGUAGE_PICKER_MODAL: UmbModalToken$1<UmbLanguagePickerModalData, UmbLanguagePickerModalResult>;
|
|
599
287
|
|
|
@@ -623,14 +311,9 @@ interface UmbLinkPickerConfig {
|
|
|
623
311
|
}
|
|
624
312
|
declare const UMB_LINK_PICKER_MODAL: UmbModalToken$1<UmbLinkPickerModalData, UmbLinkPickerModalResult>;
|
|
625
313
|
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
}
|
|
630
|
-
interface UmbMediaPickerModalResult {
|
|
631
|
-
selection: Array<string>;
|
|
632
|
-
}
|
|
633
|
-
declare const UMB_MEDIA_PICKER_MODAL: UmbModalToken$1<UmbMediaPickerModalData, UmbMediaPickerModalResult>;
|
|
314
|
+
type UmbMediaTreePickerModalData = UmbTreePickerModalData$1<ContentTreeItemResponseModel>;
|
|
315
|
+
type UmbMediaTreePickerModalResult = UmbPickerModalResult$1;
|
|
316
|
+
declare const UMB_MEDIA_TREE_PICKER_MODAL: UmbModalToken$1<UmbMediaTreePickerModalData, UmbPickerModalResult$1>;
|
|
634
317
|
|
|
635
318
|
interface UmbPropertyEditorUIPickerModalData {
|
|
636
319
|
selection?: Array<string>;
|
|
@@ -660,21 +343,78 @@ declare const UMB_SEARCH_MODAL: UmbModalToken$1<object, unknown>;
|
|
|
660
343
|
|
|
661
344
|
interface UmbSectionPickerModalData {
|
|
662
345
|
multiple: boolean;
|
|
663
|
-
selection: string
|
|
346
|
+
selection: Array<string | null>;
|
|
347
|
+
}
|
|
348
|
+
interface UmbSectionPickerModalResult {
|
|
349
|
+
selection: Array<string | null>;
|
|
350
|
+
}
|
|
351
|
+
declare const UMB_SECTION_PICKER_MODAL: UmbModalToken$1<UmbSectionPickerModalData, UmbSectionPickerModalResult>;
|
|
352
|
+
|
|
353
|
+
interface UmbTemplateModalData {
|
|
354
|
+
id: string;
|
|
355
|
+
language?: 'razor' | 'typescript' | 'javascript' | 'css' | 'markdown' | 'json' | 'html';
|
|
664
356
|
}
|
|
665
|
-
|
|
357
|
+
interface UmbTemplateModalResult {
|
|
358
|
+
id: string;
|
|
359
|
+
}
|
|
360
|
+
declare const UMB_TEMPLATE_MODAL: UmbModalToken$1<UmbTemplateModalData, UmbTemplateModalResult>;
|
|
361
|
+
|
|
362
|
+
type UmbTemplatePickerModalData = UmbTreePickerModalData$1<EntityTreeItemResponseModel>;
|
|
363
|
+
type UmbTemplatePickerModalResult = UmbPickerModalResult$1;
|
|
364
|
+
declare const UMB_TEMPLATE_PICKER_MODAL: UmbModalToken$1<UmbTemplatePickerModalData, UmbPickerModalResult$1>;
|
|
666
365
|
|
|
667
|
-
declare const UMB_USER_GROUP_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<
|
|
366
|
+
declare const UMB_USER_GROUP_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<any>, unknown>;
|
|
668
367
|
|
|
669
|
-
|
|
368
|
+
type UmbUserPickerModalData = UmbPickerModalData$1<UserResponseModel>;
|
|
369
|
+
interface UmbUserPickerModalResult {
|
|
370
|
+
selection: Array<string | null>;
|
|
371
|
+
}
|
|
372
|
+
declare const UMB_USER_PICKER_MODAL: UmbModalToken$1<UmbUserPickerModalData, UmbUserPickerModalResult>;
|
|
373
|
+
|
|
374
|
+
interface UmbFolderModalData {
|
|
375
|
+
repositoryAlias: string;
|
|
376
|
+
unique?: string;
|
|
377
|
+
}
|
|
378
|
+
interface UmbFolderModalResult {
|
|
379
|
+
folder: FolderReponseModel;
|
|
380
|
+
}
|
|
381
|
+
declare const UMB_FOLDER_MODAL: UmbModalToken$1<UmbFolderModalData, UmbFolderModalResult>;
|
|
670
382
|
|
|
671
|
-
interface
|
|
383
|
+
interface UmbPartialViewPickerModalData {
|
|
672
384
|
multiple: boolean;
|
|
673
|
-
selection:
|
|
674
|
-
filter?: (language: T) => boolean;
|
|
385
|
+
selection: string[];
|
|
675
386
|
}
|
|
676
|
-
interface
|
|
677
|
-
selection: Array<string
|
|
387
|
+
interface UmbPartialViewPickerModalResult {
|
|
388
|
+
selection: Array<string | null> | undefined;
|
|
389
|
+
}
|
|
390
|
+
declare const UMB_PARTIAL_VIEW_PICKER_MODAL_ALIAS = "Umb.Modal.PartialViewPicker";
|
|
391
|
+
declare const UMB_PARTIAL_VIEW_PICKER_MODAL: UmbModalToken$1<UmbPartialViewPickerModalData, UmbPartialViewPickerModalResult>;
|
|
392
|
+
|
|
393
|
+
interface UmbDictionaryItemPickerModalData {
|
|
394
|
+
multiple: boolean;
|
|
395
|
+
selection: string[];
|
|
396
|
+
}
|
|
397
|
+
interface UmbDictionaryItemPickerModalResult {
|
|
398
|
+
selection: Array<string | null>;
|
|
399
|
+
}
|
|
400
|
+
declare const UMB_DICTIONARY_ITEM_PICKER_MODAL_ALIAS = "Umb.Modal.DictionaryItemPicker";
|
|
401
|
+
declare const UMB_DICTIONARY_ITEM_PICKER_MODAL: UmbModalToken$1<UmbDictionaryItemPickerModalData, UmbDictionaryItemPickerModalResult>;
|
|
402
|
+
|
|
403
|
+
type UmbDataTypePickerModalData = UmbTreePickerModalData$1<FolderTreeItemResponseModel>;
|
|
404
|
+
type UmbDataTypePickerModalResult = UmbPickerModalResult$1;
|
|
405
|
+
declare const UMB_DATA_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDataTypePickerModalData, UmbPickerModalResult$1>;
|
|
406
|
+
|
|
407
|
+
interface UmbPickerModalData<ItemType> {
|
|
408
|
+
multiple?: boolean;
|
|
409
|
+
selection?: Array<string | null>;
|
|
410
|
+
filter?: (item: ItemType) => boolean;
|
|
411
|
+
pickableFilter?: (item: ItemType) => boolean;
|
|
412
|
+
}
|
|
413
|
+
interface UmbPickerModalResult {
|
|
414
|
+
selection: Array<string | null>;
|
|
415
|
+
}
|
|
416
|
+
interface UmbTreePickerModalData<TreeItemType> extends UmbPickerModalData<TreeItemType> {
|
|
417
|
+
treeAlias?: string;
|
|
678
418
|
}
|
|
679
419
|
|
|
680
|
-
export { OEmbedResult, OEmbedStatus, UMB_ALLOWED_DOCUMENT_TYPES_MODAL, UMB_CHANGE_PASSWORD_MODAL, UMB_CONFIRM_MODAL, UMB_CONTEXT_DEBUGGER_MODAL, UMB_CREATE_DICTIONARY_MODAL, UMB_CREATE_USER_MODAL, UMB_CURRENT_USER_MODAL, UMB_DOCUMENT_PICKER_MODAL, UMB_EMBEDDED_MEDIA_MODAL, UMB_EXAMINE_FIELDS_SETTINGS_MODAL, UMB_EXPORT_DICTIONARY_MODAL, UMB_ICON_PICKER_MODAL, UMB_IMPORT_DICTIONARY_MODAL, UMB_INVITE_USER_MODAL, UMB_LANGUAGE_PICKER_MODAL, UMB_LINK_PICKER_MODAL,
|
|
420
|
+
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_DATA_TYPE_PICKER_MODAL, UMB_DICTIONARY_ITEM_PICKER_MODAL, UMB_DICTIONARY_ITEM_PICKER_MODAL_ALIAS, UMB_DOCUMENT_PICKER_MODAL, UMB_DOCUMENT_TYPE_PICKER_MODAL, UMB_EMBEDDED_MEDIA_MODAL, UMB_EXAMINE_FIELDS_SETTINGS_MODAL, UMB_EXPORT_DICTIONARY_MODAL, UMB_FOLDER_MODAL, UMB_ICON_PICKER_MODAL, UMB_IMPORT_DICTIONARY_MODAL, UMB_INVITE_USER_MODAL, UMB_LANGUAGE_PICKER_MODAL, UMB_LINK_PICKER_MODAL, UMB_MEDIA_TREE_PICKER_MODAL, UMB_MODAL_CONTEXT_TOKEN, UMB_PARTIAL_VIEW_PICKER_MODAL, UMB_PARTIAL_VIEW_PICKER_MODAL_ALIAS, 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, UmbDataTypePickerModalData, UmbDataTypePickerModalResult, UmbDictionaryItemPickerModalData, UmbDictionaryItemPickerModalResult, UmbDocumentPickerModalData, UmbDocumentPickerModalResult, UmbDocumentTypePickerModalData, UmbDocumentTypePickerModalResult, UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult, UmbExamineFieldsSettingsModalData, UmbExportDictionaryModalData, UmbExportDictionaryModalResult, UmbFolderModalData, UmbFolderModalResult, UmbIconPickerModalData, UmbIconPickerModalResult, UmbImportDictionaryModalData, UmbImportDictionaryModalResult, UmbLanguagePickerModalData, UmbLanguagePickerModalResult, UmbLinkPickerConfig, UmbLinkPickerLink, UmbLinkPickerModalData, UmbLinkPickerModalResult, UmbMediaTreePickerModalData, UmbMediaTreePickerModalResult, UmbModalConfig, UmbModalContext, UmbModalHandler, UmbModalHandlerClass, UmbModalRouteBuilder, UmbModalRouteRegistration, UmbModalRouteRegistrationController, UmbModalToken, UmbModalType, UmbPartialViewPickerModalData, UmbPartialViewPickerModalResult, UmbPickerModalData, UmbPickerModalResult, UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult, UmbPropertySettingsModalResult, UmbSectionPickerModalData, UmbSectionPickerModalResult, UmbTemplateModalData, UmbTemplateModalResult, UmbTemplatePickerModalData, UmbTemplatePickerModalResult, UmbTreePickerModalData, UmbUserPickerModalData, UmbUserPickerModalResult };
|
package/models.d.ts
CHANGED
|
@@ -1,75 +1,13 @@
|
|
|
1
|
-
import { EntityTreeItemResponseModel, FolderTreeItemResponseModel, PackageManifestResponseModel } from './backend-api';
|
|
2
|
-
|
|
3
1
|
type HTMLElementConstructor<T = HTMLElement> = new (...args: any[]) => T;
|
|
4
2
|
type ClassConstructor<T> = new (...args: any[]) => T;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
parentKey: string | null;
|
|
12
|
-
}
|
|
13
|
-
interface UserEntity extends Entity {
|
|
14
|
-
type: 'user';
|
|
15
|
-
}
|
|
16
|
-
type UserStatus = 'enabled' | 'inactive' | 'invited' | 'disabled';
|
|
17
|
-
interface UserDetails extends UserEntity {
|
|
18
|
-
email: string;
|
|
19
|
-
status: UserStatus;
|
|
20
|
-
language: string;
|
|
21
|
-
lastLoginDate?: string;
|
|
22
|
-
lastLockoutDate?: string;
|
|
23
|
-
lastPasswordChangeDate?: string;
|
|
24
|
-
updateDate: string;
|
|
25
|
-
createDate: string;
|
|
26
|
-
failedLoginAttempts: number;
|
|
27
|
-
userGroups: Array<string>;
|
|
28
|
-
contentStartNodes: Array<string>;
|
|
29
|
-
mediaStartNodes: Array<string>;
|
|
30
|
-
}
|
|
31
|
-
interface UserGroupEntity extends Entity {
|
|
32
|
-
type: 'user-group';
|
|
33
|
-
}
|
|
34
|
-
interface UserGroupDetails extends UserGroupEntity {
|
|
35
|
-
sections: Array<string>;
|
|
36
|
-
contentStartNode?: string;
|
|
37
|
-
mediaStartNode?: string;
|
|
38
|
-
permissions: Array<string>;
|
|
39
|
-
}
|
|
40
|
-
interface MemberTypeDetails extends EntityTreeItemResponseModel {
|
|
41
|
-
key: string;
|
|
42
|
-
alias: string;
|
|
43
|
-
properties: [];
|
|
44
|
-
}
|
|
45
|
-
interface MediaTypeDetails extends FolderTreeItemResponseModel {
|
|
46
|
-
key: string;
|
|
47
|
-
alias: string;
|
|
48
|
-
properties: [];
|
|
49
|
-
}
|
|
50
|
-
interface MemberGroupDetails extends EntityTreeItemResponseModel {
|
|
51
|
-
key: string;
|
|
52
|
-
}
|
|
53
|
-
interface MemberDetails extends EntityTreeItemResponseModel {
|
|
54
|
-
key: string;
|
|
55
|
-
}
|
|
56
|
-
interface DocumentBlueprintDetails {
|
|
57
|
-
key: string;
|
|
58
|
-
name: string;
|
|
59
|
-
type: 'document-blueprint';
|
|
60
|
-
properties: Array<any>;
|
|
61
|
-
data: Array<any>;
|
|
62
|
-
icon: string;
|
|
63
|
-
documentTypeKey: string;
|
|
64
|
-
}
|
|
65
|
-
interface SwatchDetails {
|
|
3
|
+
/** Tried to find a common base of our entities — used by Entity Workspace Context */
|
|
4
|
+
type UmbEntityBase = {
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
};
|
|
8
|
+
interface UmbSwatchDetails {
|
|
66
9
|
label: string;
|
|
67
10
|
value: string;
|
|
68
11
|
}
|
|
69
|
-
type UmbPackage = PackageManifestResponseModel;
|
|
70
|
-
type PackageManifestResponse = UmbPackage[];
|
|
71
|
-
type UmbPackageWithMigrationStatus = UmbPackage & {
|
|
72
|
-
hasPendingMigrations: boolean;
|
|
73
|
-
};
|
|
74
12
|
|
|
75
|
-
export { ClassConstructor,
|
|
13
|
+
export { ClassConstructor, HTMLElementConstructor, UmbEntityBase, UmbSwatchDetails };
|
package/notification.d.ts
CHANGED