@umbraco-cms/backoffice 1.0.0-next.37dcc47c → 1.0.0-next.386e13e7

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/modal.d.ts CHANGED
@@ -1,20 +1,129 @@
1
1
  import * as rxjs from 'rxjs';
2
- import * as lit_html from 'lit-html';
2
+ import { Observable } from 'rxjs';
3
3
  import * as lit from 'lit';
4
- import { LitElement } from 'lit';
5
- import { UUIModalSidebarElement, UUIModalSidebarSize } from '@umbraco-ui/uui-modal-sidebar';
6
- import { UUIModalDialogElement } from '@umbraco-ui/uui-modal-dialog';
7
- import { UmbControllerHostInterface } from './controller';
8
- import { UmbContextToken } from './context-api';
4
+ import { LitElement, TemplateResult } from 'lit';
5
+ import * as lit_html from 'lit-html';
6
+ import { UUIModalDialogElement, UUIModalSidebarElement, UUIModalSidebarSize } from '@umbraco-ui/uui';
7
+ import { UmbController, UmbControllerHostElement, UmbControllerInterface } from '@umbraco-cms/backoffice/controller-api';
8
+ import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
9
+ import { Params as Params$1 } 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, PropertyTypeResponseModelBaseModel, UserResponseModel, FolderReponseModel, FolderTreeItemResponseModel } from '@umbraco-cms/backoffice/backend-api';
12
+
13
+ interface IRouterSlot<D = any, P = any> extends HTMLElement {
14
+ readonly route: IRoute<D> | null;
15
+ readonly isRoot: boolean;
16
+ readonly fragments: IPathFragments | null;
17
+ readonly params: Params | null;
18
+ readonly match: IRouteMatch<D> | null;
19
+ routes: IRoute<D>[];
20
+ add: ((routes: IRoute<D>[], navigate?: boolean) => void);
21
+ clear: (() => void);
22
+ render: (() => Promise<void>);
23
+ constructAbsolutePath: ((path: PathFragment) => string);
24
+ parent: IRouterSlot<P> | null | undefined;
25
+ queryParentRouterSlot: (() => IRouterSlot<P> | null);
26
+ }
27
+ type IRoutingInfo<D = any, P = any> = {
28
+ slot: IRouterSlot<D, P>;
29
+ match: IRouteMatch<D>;
30
+ };
31
+ type CustomResolver<D = any, P = any> = ((info: IRoutingInfo<D>) => boolean | void | Promise<boolean> | Promise<void>);
32
+ type Guard<D = any, P = any> = ((info: IRoutingInfo<D, P>) => boolean | Promise<boolean>);
33
+ type PageComponent = HTMLElement | undefined;
34
+ type ModuleResolver = Promise<{
35
+ default: any;
36
+ }>;
37
+ type Class<T extends PageComponent = PageComponent> = {
38
+ new (...args: any[]): T;
39
+ };
40
+ type Component = Class | ModuleResolver | PageComponent | (() => Class) | (() => PromiseLike<Class>) | (() => PageComponent) | (() => PromiseLike<PageComponent>) | (() => ModuleResolver) | (() => PromiseLike<ModuleResolver>);
41
+ type Setup<D = any> = ((component: PageComponent, info: IRoutingInfo<D>) => void);
42
+ type PathMatch = "prefix" | "suffix" | "full" | "fuzzy";
43
+ /**
44
+ * The base route interface.
45
+ * D = the data type of the data
46
+ */
47
+ interface IRouteBase<D = any> {
48
+ path: PathFragment;
49
+ data?: D;
50
+ guards?: Guard[];
51
+ pathMatch?: PathMatch;
52
+ }
53
+ /**
54
+ * Route type used for redirection.
55
+ */
56
+ interface IRedirectRoute<D = any> extends IRouteBase<D> {
57
+ redirectTo: string;
58
+ preserveQuery?: boolean;
59
+ }
60
+ /**
61
+ * Route type used to resolve and stamp components.
62
+ */
63
+ interface IComponentRoute<D = any> extends IRouteBase<D> {
64
+ component: Component | PromiseLike<Component>;
65
+ setup?: Setup;
66
+ }
67
+ /**
68
+ * Route type used to take control of how the route should resolve.
69
+ */
70
+ interface IResolverRoute<D = any> extends IRouteBase<D> {
71
+ resolve: CustomResolver;
72
+ }
73
+ type IRoute<D = any> = IRedirectRoute<D> | IComponentRoute<D> | IResolverRoute<D>;
74
+ type PathFragment = string;
75
+ type IPathFragments = {
76
+ consumed: PathFragment;
77
+ rest: PathFragment;
78
+ };
79
+ interface IRouteMatch<D = any> {
80
+ route: IRoute<D>;
81
+ params: Params;
82
+ fragments: IPathFragments;
83
+ match: RegExpMatchArray;
84
+ }
85
+ type PushStateEvent = CustomEvent<null>;
86
+ type ReplaceStateEvent = CustomEvent<null>;
87
+ type ChangeStateEvent = CustomEvent<null>;
88
+ type WillChangeStateEvent = CustomEvent<{
89
+ url?: string | null;
90
+ eventName: GlobalRouterEvent;
91
+ }>;
92
+ type NavigationStartEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
93
+ type NavigationSuccessEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
94
+ type NavigationCancelEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
95
+ type NavigationErrorEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
96
+ type NavigationEndEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
97
+ type Params = {
98
+ [key: string]: string;
99
+ };
100
+ /**
101
+ * History related events.
102
+ */
103
+ type GlobalRouterEvent = "pushstate" | "replacestate" | "popstate" | "changestate" | "willchangestate" | "navigationstart" | "navigationcancel" | "navigationerror" | "navigationsuccess" | "navigationend";
104
+ declare global {
105
+ interface GlobalEventHandlersEventMap {
106
+ "pushstate": PushStateEvent;
107
+ "replacestate": ReplaceStateEvent;
108
+ "popstate": PopStateEvent;
109
+ "changestate": ChangeStateEvent;
110
+ "navigationstart": NavigationStartEvent;
111
+ "navigationend": NavigationEndEvent;
112
+ "navigationsuccess": NavigationSuccessEvent;
113
+ "navigationcancel": NavigationCancelEvent;
114
+ "navigationerror": NavigationErrorEvent;
115
+ "willchangestate": WillChangeStateEvent;
116
+ }
117
+ }
9
118
 
10
119
  declare class UmbSearchModalElement extends LitElement {
11
120
  #private;
12
- static styles: lit.CSSResult[];
13
121
  private _input;
14
122
  private _search;
15
123
  private _groups;
16
124
  connectedCallback(): void;
17
125
  render(): lit_html.TemplateResult<1>;
126
+ static styles: lit.CSSResult[];
18
127
  }
19
128
 
20
129
  declare global {
@@ -23,38 +132,36 @@ declare global {
23
132
  }
24
133
  }
25
134
 
26
- declare class UmbModalToken<Data = unknown, Result = unknown> {
135
+ declare class UmbModalToken<ModalDataType extends object = object, ModalResultType = unknown> {
27
136
  protected alias: string;
28
137
  protected defaultConfig?: UmbModalConfig | undefined;
29
- protected _desc?: string | undefined;
138
+ protected defaultData?: ModalDataType | undefined;
30
139
  /**
31
140
  * Get the data type of the token's data.
32
141
  *
33
142
  * @public
34
- * @type {Data}
143
+ * @type {ModalDataType}
35
144
  * @memberOf UmbModalToken
36
145
  * @example `typeof MyModal.TYPE`
37
146
  * @returns undefined
38
147
  */
39
- readonly DATA: Data;
148
+ readonly DATA: ModalDataType;
40
149
  /**
41
150
  * Get the result type of the token
42
151
  *
43
152
  * @public
44
- * @type {Result}
153
+ * @type {ModalResultType}
45
154
  * @memberOf UmbModalToken
46
155
  * @example `typeof MyModal.RESULT`
47
156
  * @returns undefined
48
157
  */
49
- readonly RESULT: Result;
158
+ readonly RESULT: ModalResultType;
50
159
  /**
51
160
  * @param alias Unique identifier for the token,
52
161
  * @param defaultConfig Default configuration for the modal,
53
- * @param _desc Description for the token,
54
- * used only for debugging purposes,
55
- * it should but does not need to be unique
162
+ * @param defaultData Default data for the modal,
56
163
  */
57
- constructor(alias: string, defaultConfig?: UmbModalConfig | undefined, _desc?: string | undefined);
164
+ constructor(alias: string, defaultConfig?: UmbModalConfig | undefined, defaultData?: ModalDataType | undefined);
58
165
  /**
59
166
  * This method must always return the unique alias of the token since that
60
167
  * will be used to look up the token in the injector.
@@ -63,12 +170,13 @@ declare class UmbModalToken<Data = unknown, Result = unknown> {
63
170
  */
64
171
  toString(): string;
65
172
  getDefaultConfig(): UmbModalConfig | undefined;
173
+ getDefaultData(): ModalDataType | undefined;
66
174
  }
67
175
 
68
176
  /**
69
177
  * Type which omits the real submit method, and replaces it with a submit method which accepts an optional argument depending on the generic type.
70
178
  */
71
- type UmbModalHandler<ModalData = unknown, ModalResult = unknown> = Omit<UmbModalHandlerClass<ModalData, ModalResult>, 'submit'> & OptionalSubmitArgumentIfUndefined<ModalResult>;
179
+ type UmbModalHandler<ModalData extends object = object, ModalResult = any> = Omit<UmbModalHandlerClass<ModalData, ModalResult>, 'submit'> & OptionalSubmitArgumentIfUndefined<ModalResult>;
72
180
  type OptionalSubmitArgumentIfUndefined<T> = T extends undefined ? {
73
181
  submit: () => void;
74
182
  } : T extends unknown ? {
@@ -76,20 +184,24 @@ type OptionalSubmitArgumentIfUndefined<T> = T extends undefined ? {
76
184
  } : {
77
185
  submit: (arg: T) => void;
78
186
  };
79
- declare class UmbModalHandlerClass<ModalData, ModalResult> {
187
+ declare class UmbModalHandlerClass<ModalData extends object = object, ModalResult = unknown> extends UmbController {
80
188
  #private;
81
189
  private _submitPromise;
82
190
  private _submitResolver?;
83
191
  private _submitRejecter?;
84
192
  modalElement: UUIModalDialogElement | UUIModalSidebarElement;
85
- readonly innerElement: rxjs.Observable<any>;
193
+ readonly innerElement: rxjs.Observable<HTMLElement | undefined>;
86
194
  key: string;
87
195
  type: UmbModalType;
88
196
  size: UUIModalSidebarSize;
89
- constructor(host: UmbControllerHostInterface, modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig);
197
+ private modalAlias;
198
+ constructor(host: UmbControllerHostElement, router: IRouterSlot | null, modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig);
199
+ hostConnected(): void;
200
+ hostDisconnected(): void;
90
201
  private submit;
91
202
  reject(): void;
92
203
  onSubmit(): Promise<ModalResult>;
204
+ destroy(): void;
93
205
  }
94
206
 
95
207
  type UmbModalType = 'dialog' | 'sidebar';
@@ -100,9 +212,9 @@ interface UmbModalConfig {
100
212
  }
101
213
  declare class UmbModalContext {
102
214
  #private;
103
- host: UmbControllerHostInterface;
104
- readonly modals: rxjs.Observable<UmbModalHandler<any, any>[]>;
105
- constructor(host: UmbControllerHostInterface);
215
+ host: UmbControllerHostElement;
216
+ readonly modals: rxjs.Observable<UmbModalHandler[]>;
217
+ constructor(host: UmbControllerHostElement);
106
218
  search(): UmbModalHandler<any, any>;
107
219
  /**
108
220
  * Opens a modal or sidebar modal
@@ -112,7 +224,7 @@ declare class UmbModalContext {
112
224
  * @return {*} {UmbModalHandler}
113
225
  * @memberof UmbModalContext
114
226
  */
115
- open<ModalData = unknown, ModalResult = unknown>(modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig): UmbModalHandler<ModalData, ModalResult>;
227
+ open<ModalData extends object = object, ModalResult = unknown>(modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig, router?: IRouterSlot | null): UmbModalHandler<ModalData, ModalResult>;
116
228
  /**
117
229
  * Closes a modal or sidebar modal
118
230
  * @private
@@ -123,13 +235,352 @@ declare class UmbModalContext {
123
235
  }
124
236
  declare const UMB_MODAL_CONTEXT_TOKEN: UmbContextToken<UmbModalContext>;
125
237
 
126
- interface UmbPickerModalData<T> {
127
- multiple: boolean;
238
+ type UmbModalRouteBuilder = (params: {
239
+ [key: string]: string | number;
240
+ } | null) => string;
241
+ declare class UmbModalRouteRegistration<UmbModalTokenData extends object = object, UmbModalTokenResult = any> {
242
+ #private;
243
+ constructor(modalAlias: UmbModalToken<UmbModalTokenData, UmbModalTokenResult> | string, path?: string | null, modalConfig?: UmbModalConfig);
244
+ get key(): string;
245
+ get alias(): string | UmbModalToken<UmbModalTokenData, UmbModalTokenResult>;
246
+ generateModalPath(): string;
247
+ get path(): string | null;
248
+ protected _setPath(path: string | null): void;
249
+ get modalConfig(): UmbModalConfig | undefined;
250
+ /**
251
+ * Returns true if the modal is currently active.
252
+ */
253
+ get active(): boolean;
254
+ open(params: {
255
+ [key: string]: string | number;
256
+ }): void;
257
+ /**
258
+ * Returns the modal handler if the modal is currently active. Otherwise its undefined.
259
+ */
260
+ get modalHandler(): UmbModalHandler<UmbModalTokenData, UmbModalTokenResult> | undefined;
261
+ observeRouteBuilder(callback: (urlBuilder: UmbModalRouteBuilder) => void): this;
262
+ _internal_setRouteBuilder(urlBuilder: UmbModalRouteBuilder): void;
263
+ onSetup(callback: (routingInfo: Params$1) => UmbModalTokenData | false): this;
264
+ onSubmit(callback: (data: UmbModalTokenResult) => void): this;
265
+ onReject(callback: () => void): this;
266
+ routeSetup(router: IRouterSlot, modalContext: UmbModalContext, params: Params$1): UmbModalHandler<UmbModalTokenData, UmbModalTokenResult> | null | undefined;
267
+ }
268
+
269
+ declare class UmbModalRouteRegistrationController<D extends object = object, R = any> extends UmbModalRouteRegistration<D, R> implements UmbControllerInterface {
270
+ #private;
271
+ get unique(): undefined;
272
+ /**
273
+ * Creates an instance of UmbModalRouteRegistrationController.
274
+ * @param {EventTarget} host - The host element of the modal, this is used to identify the modal.
275
+ * @param {UmbModalToken} alias - The alias of the modal, this is used to identify the modal.
276
+ * @param {UmbModalConfig} modalConfig - The configuration of the modal.
277
+ * @memberof UmbModalRouteRegistrationController
278
+ */
279
+ constructor(host: UmbControllerHostElement, alias: UmbModalToken$1<D, R> | string, modalConfig?: UmbModalConfig$1);
280
+ /**
281
+ * Appends an additional path to the modal route.
282
+ *
283
+ * This can help specify the URL for this modal, or used to add a parameter to the URL like this: "/modal/my-modal/:index/"
284
+ * A folder name starting with a colon ":" will be interpreted as a parameter. Then this modal can open with any value in that location.
285
+ * When modal is being setup the value of the parameter can be read from the route params. See the example:
286
+ * @param additionalPath
287
+ * @returns UmbModalRouteRegistrationController
288
+ * @memberof UmbContextConsumer
289
+ * @example <caption>Example of adding an additional path to the modal route</caption>
290
+ * const modalRegistration = new UmbModalRouteRegistrationController(this, MY_MODAL_TOKEN)
291
+ * modalRegistration.addAdditionalPath(':index')
292
+ *
293
+ * modalRegistration.onSetup((params) => {
294
+ * const index = params.index;
295
+ * // When entering the url of: "/modal/my-modal/hello-world/"
296
+ * // Then index will be "hello-world"
297
+ * }
298
+ */
299
+ addAdditionalPath(additionalPath: string): this;
300
+ /**
301
+ * Registerer one or more additional paths to the modal route, similar to addAdditionalPath. But without defining the actual path name. This enables this to be asynchronously defined and even changed later.
302
+ * This can be useful if your modal has to be unique for this registration, avoiding collision with other registrations.
303
+ * If you made a modal for editing one of multiple property, then you can add a unique path holding the property id.
304
+ * Making the URL unique to this modal registration: /modal/my-modal/my-unique-value/
305
+ *
306
+ * Notice the modal will only be available when all unique paths have a value.
307
+ * @param {Array<string>} uniquePathNames
308
+ * @returns UmbModalRouteRegistrationController
309
+ * @memberof UmbContextConsumer
310
+ * @example <caption>Example of adding an additional unique path to the modal route</caption>
311
+ * const modalRegistration = new UmbModalRouteRegistrationController(this, MY_MODAL_TOKEN)
312
+ * modalRegistration.addUniquePaths(['myAliasForIdentifyingThisPartOfThePath'])
313
+ *
314
+ * // Later:
315
+ * modalRegistration.setUniquePathValue('myAliasForIdentifyingThisPartOfThePath', 'myValue');
316
+ */
317
+ addUniquePaths(uniquePathNames: Array<string>): this;
318
+ /**
319
+ * Set or change the value of a unique path part.
320
+ * @param {string} identifier
321
+ * @param {value | undefined} value
322
+ * @returns UmbModalRouteRegistrationController
323
+ * @memberof UmbContextConsumer
324
+ * @example <caption>Example of adding an additional unique path to the modal route</caption>
325
+ * const modalRegistration = new UmbModalRouteRegistrationController(this, MY_MODAL_TOKEN)
326
+ * modalRegistration.addUniquePaths(['first-one', 'another-one'])
327
+ *
328
+ * // Later:
329
+ * modalRegistration.setUniquePathValue('first-one', 'myValue');
330
+ */
331
+ setUniquePathValue(identifier: string, value: string | undefined): void;
332
+ hostConnected(): void;
333
+ hostDisconnected(): void;
334
+ destroy(): void;
335
+ }
336
+
337
+ interface UmbAllowedDocumentTypesModalData {
338
+ id: string | null;
339
+ }
340
+ interface UmbAllowedDocumentTypesModalResult {
341
+ documentTypeKey: string;
342
+ }
343
+ declare const UMB_ALLOWED_DOCUMENT_TYPES_MODAL: UmbModalToken$1<UmbAllowedDocumentTypesModalData, UmbAllowedDocumentTypesModalResult>;
344
+
345
+ interface UmbChangePasswordModalData {
346
+ requireOldPassword: boolean;
347
+ }
348
+ declare const UMB_CHANGE_PASSWORD_MODAL: UmbModalToken$1<UmbChangePasswordModalData, unknown>;
349
+
350
+ interface UmbConfirmModalData {
351
+ headline: string;
352
+ content: TemplateResult | string;
353
+ color?: 'positive' | 'danger';
354
+ confirmLabel?: string;
355
+ }
356
+ type UmbConfirmModalResult = undefined;
357
+ declare const UMB_CONFIRM_MODAL: UmbModalToken$1<UmbConfirmModalData, undefined>;
358
+
359
+ interface UmbCreateDictionaryModalData {
360
+ unique: string | null;
361
+ parentName?: Observable<string | undefined>;
362
+ }
363
+ interface UmbCreateDictionaryModalResult {
364
+ name?: string;
365
+ }
366
+ declare const UMB_CREATE_DICTIONARY_MODAL: UmbModalToken$1<UmbCreateDictionaryModalData, UmbCreateDictionaryModalResult>;
367
+
368
+ declare const UMB_CREATE_USER_MODAL: UmbModalToken$1<object, unknown>;
369
+
370
+ declare const UMB_CURRENT_USER_MODAL: UmbModalToken$1<object, unknown>;
371
+
372
+ interface UmbContextDebuggerModalData {
373
+ content: TemplateResult | string;
374
+ }
375
+ declare const UMB_CONTEXT_DEBUGGER_MODAL: UmbModalToken$1<UmbContextDebuggerModalData, unknown>;
376
+
377
+ type UmbDocumentPickerModalData = UmbTreePickerModalData$1<DocumentTreeItemResponseModel>;
378
+ type UmbDocumentPickerModalResult = UmbPickerModalResult$1;
379
+ declare const UMB_DOCUMENT_PICKER_MODAL: UmbModalToken$1<UmbDocumentPickerModalData, UmbPickerModalResult$1>;
380
+
381
+ type UmbDocumentTypePickerModalData = UmbTreePickerModalData$1<EntityTreeItemResponseModel>;
382
+ type UmbDocumentTypePickerModalResult = UmbPickerModalResult$1;
383
+ declare const UMB_DOCUMENT_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDocumentTypePickerModalData, UmbPickerModalResult$1>;
384
+
385
+ declare enum OEmbedStatus {
386
+ NotSupported = 0,
387
+ Error = 1,
388
+ Success = 2
389
+ }
390
+ interface UmbEmbeddedMediaDimensions {
391
+ width?: number;
392
+ height?: number;
393
+ constrain?: boolean;
394
+ }
395
+ interface UmbEmbeddedMediaModalData extends UmbEmbeddedMediaDimensions {
396
+ url?: string;
397
+ }
398
+ interface OEmbedResult extends UmbEmbeddedMediaDimensions {
399
+ oEmbedStatus: OEmbedStatus;
400
+ supportsDimensions: boolean;
401
+ markup?: string;
402
+ }
403
+ type UmbEmbeddedMediaModalResult = {
404
+ selection: OEmbedResult;
405
+ };
406
+ declare const UMB_EMBEDDED_MEDIA_MODAL: UmbModalToken$1<UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult>;
407
+
408
+ type UmbExamineFieldsSettingsModalData = Array<{
409
+ name: string;
410
+ exposed: boolean;
411
+ }>;
412
+ interface UmbCreateDocumentModalResultData {
413
+ fields?: UmbExamineFieldsSettingsModalData;
414
+ }
415
+ declare const UMB_EXAMINE_FIELDS_SETTINGS_MODAL: UmbModalToken$1<UmbExamineFieldsSettingsModalData, UmbCreateDocumentModalResultData>;
416
+
417
+ interface UmbExportDictionaryModalData {
418
+ unique: string | null;
419
+ }
420
+ interface UmbExportDictionaryModalResult {
421
+ includeChildren?: boolean;
422
+ }
423
+ declare const UMB_EXPORT_DICTIONARY_MODAL: UmbModalToken$1<UmbExportDictionaryModalData, UmbExportDictionaryModalResult>;
424
+
425
+ interface UmbIconPickerModalData {
426
+ color: string | undefined;
427
+ icon: string | undefined;
428
+ }
429
+ interface UmbIconPickerModalResult {
430
+ color: string | undefined;
431
+ icon: string | undefined;
432
+ }
433
+ declare const UMB_ICON_PICKER_MODAL: UmbModalToken$1<UmbIconPickerModalData, UmbIconPickerModalResult>;
434
+
435
+ interface UmbImportDictionaryModalData {
436
+ unique: string | null;
437
+ }
438
+ interface UmbImportDictionaryModalResult {
439
+ temporaryFileId?: string;
440
+ parentId?: string;
441
+ }
442
+ declare const UMB_IMPORT_DICTIONARY_MODAL: UmbModalToken$1<UmbImportDictionaryModalData, UmbImportDictionaryModalResult>;
443
+
444
+ declare const UMB_INVITE_USER_MODAL: UmbModalToken$1<object, unknown>;
445
+
446
+ interface UmbLanguagePickerModalData {
447
+ multiple?: boolean;
448
+ selection?: Array<string | null>;
449
+ filter?: (language: LanguageResponseModel) => boolean;
450
+ }
451
+ interface UmbLanguagePickerModalResult {
452
+ selection: Array<string | null>;
453
+ }
454
+ declare const UMB_LANGUAGE_PICKER_MODAL: UmbModalToken$1<UmbLanguagePickerModalData, UmbLanguagePickerModalResult>;
455
+
456
+ interface UmbLinkPickerModalData {
457
+ index: number | null;
458
+ link: UmbLinkPickerLink;
459
+ config: UmbLinkPickerConfig;
460
+ }
461
+ type UmbLinkPickerModalResult = {
462
+ index: number | null;
463
+ link: UmbLinkPickerLink;
464
+ };
465
+ interface UmbLinkPickerLink {
466
+ icon?: string | null;
467
+ name?: string | null;
468
+ published?: boolean | null;
469
+ queryString?: string | null;
470
+ target?: string | null;
471
+ trashed?: boolean | null;
472
+ udi?: string | null;
473
+ url?: string | null;
474
+ }
475
+ interface UmbLinkPickerConfig {
476
+ hideAnchor?: boolean;
477
+ ignoreUserStartNodes?: boolean;
478
+ overlaySize?: UUIModalSidebarSize;
479
+ }
480
+ declare const UMB_LINK_PICKER_MODAL: UmbModalToken$1<UmbLinkPickerModalData, UmbLinkPickerModalResult>;
481
+
482
+ type UmbMediaTreePickerModalData = UmbTreePickerModalData$1<ContentTreeItemResponseModel>;
483
+ type UmbMediaTreePickerModalResult = UmbPickerModalResult$1;
484
+ declare const UMB_MEDIA_TREE_PICKER_MODAL: UmbModalToken$1<UmbMediaTreePickerModalData, UmbPickerModalResult$1>;
485
+
486
+ interface UmbPropertyEditorUIPickerModalData {
487
+ selection?: Array<string>;
488
+ submitLabel?: string;
489
+ }
490
+ type UmbPropertyEditorUIPickerModalResult = {
128
491
  selection: Array<string>;
129
- filter?: (language: T) => boolean;
492
+ };
493
+ declare const UMB_PROPERTY_EDITOR_UI_PICKER_MODAL: UmbModalToken$1<UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult>;
494
+
495
+ type UmbPropertySettingsModalData = PropertyTypeResponseModelBaseModel;
496
+ type UmbPropertySettingsModalResult = PropertyTypeResponseModelBaseModel;
497
+ declare const UMB_PROPERTY_SETTINGS_MODAL: UmbModalToken$1<PropertyTypeResponseModelBaseModel, PropertyTypeResponseModelBaseModel>;
498
+
499
+ declare const UMB_SEARCH_MODAL: UmbModalToken$1<object, unknown>;
500
+
501
+ interface UmbSectionPickerModalData {
502
+ multiple: boolean;
503
+ selection: Array<string | null>;
504
+ }
505
+ interface UmbSectionPickerModalResult {
506
+ selection: Array<string | null>;
507
+ }
508
+ declare const UMB_SECTION_PICKER_MODAL: UmbModalToken$1<UmbSectionPickerModalData, UmbSectionPickerModalResult>;
509
+
510
+ interface UmbTemplateModalData {
511
+ id: string;
512
+ language?: 'razor' | 'typescript' | 'javascript' | 'css' | 'markdown' | 'json' | 'html';
513
+ }
514
+ interface UmbTemplateModalResult {
515
+ id: string;
516
+ }
517
+ declare const UMB_TEMPLATE_MODAL: UmbModalToken$1<UmbTemplateModalData, UmbTemplateModalResult>;
518
+
519
+ type UmbTemplatePickerModalData = UmbTreePickerModalData$1<EntityTreeItemResponseModel>;
520
+ type UmbTemplatePickerModalResult = UmbPickerModalResult$1;
521
+ declare const UMB_TEMPLATE_PICKER_MODAL: UmbModalToken$1<UmbTemplatePickerModalData, UmbPickerModalResult$1>;
522
+
523
+ declare const UMB_USER_GROUP_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<any>, unknown>;
524
+
525
+ type UmbUserPickerModalData = UmbPickerModalData$1<UserResponseModel>;
526
+ interface UmbUserPickerModalResult {
527
+ selection: Array<string | null>;
528
+ }
529
+ declare const UMB_USER_PICKER_MODAL: UmbModalToken$1<UmbUserPickerModalData, UmbUserPickerModalResult>;
530
+
531
+ interface UmbFolderModalData {
532
+ repositoryAlias: string;
533
+ unique?: string;
534
+ }
535
+ interface UmbFolderModalResult {
536
+ folder: FolderReponseModel;
130
537
  }
131
- interface UmbPickerModalResult<T> {
538
+ declare const UMB_FOLDER_MODAL: UmbModalToken$1<UmbFolderModalData, UmbFolderModalResult>;
539
+
540
+ interface UmbPartialViewPickerModalData {
541
+ multiple: boolean;
542
+ selection: string[];
543
+ }
544
+ interface UmbPartialViewPickerModalResult {
545
+ selection: Array<string | null> | undefined;
546
+ }
547
+ declare const UMB_PARTIAL_VIEW_PICKER_MODAL_ALIAS = "Umb.Modal.PartialViewPicker";
548
+ declare const UMB_PARTIAL_VIEW_PICKER_MODAL: UmbModalToken$1<UmbPartialViewPickerModalData, UmbPartialViewPickerModalResult>;
549
+
550
+ interface UmbDictionaryItemPickerModalData {
551
+ multiple: boolean;
552
+ selection: string[];
553
+ }
554
+ interface UmbDictionaryItemPickerModalResult {
555
+ selection: Array<string | null>;
556
+ }
557
+ declare const UMB_DICTIONARY_ITEM_PICKER_MODAL_ALIAS = "Umb.Modal.DictionaryItemPicker";
558
+ declare const UMB_DICTIONARY_ITEM_PICKER_MODAL: UmbModalToken$1<UmbDictionaryItemPickerModalData, UmbDictionaryItemPickerModalResult>;
559
+
560
+ type UmbDataTypePickerModalData = UmbTreePickerModalData$1<FolderTreeItemResponseModel>;
561
+ type UmbDataTypePickerModalResult = UmbPickerModalResult$1;
562
+ declare const UMB_DATA_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDataTypePickerModalData, UmbPickerModalResult$1>;
563
+
564
+ interface UmbDataTypePickerFlowModalData {
565
+ selection?: Array<string>;
566
+ submitLabel?: string;
567
+ }
568
+ type UmbDataTypePickerFlowModalResult = {
132
569
  selection: Array<string>;
570
+ };
571
+ declare const UMB_DATA_TYPE_PICKER_FLOW_MODAL: UmbModalToken$1<UmbDataTypePickerFlowModalData, UmbDataTypePickerFlowModalResult>;
572
+
573
+ interface UmbPickerModalData<ItemType> {
574
+ multiple?: boolean;
575
+ selection?: Array<string | null>;
576
+ filter?: (item: ItemType) => boolean;
577
+ pickableFilter?: (item: ItemType) => boolean;
578
+ }
579
+ interface UmbPickerModalResult {
580
+ selection: Array<string | null>;
581
+ }
582
+ interface UmbTreePickerModalData<TreeItemType> extends UmbPickerModalData<TreeItemType> {
583
+ treeAlias?: string;
133
584
  }
134
585
 
135
- export { UMB_MODAL_CONTEXT_TOKEN, UmbModalConfig, UmbModalContext, UmbModalHandler, UmbModalHandlerClass, UmbModalToken, UmbModalType, UmbPickerModalData, UmbPickerModalResult };
586
+ 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_FLOW_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, UmbDataTypePickerFlowModalData, UmbDataTypePickerFlowModalResult, 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, UmbPropertySettingsModalData, UmbPropertySettingsModalResult, UmbSectionPickerModalData, UmbSectionPickerModalResult, UmbTemplateModalData, UmbTemplateModalResult, UmbTemplatePickerModalData, UmbTemplatePickerModalResult, UmbTreePickerModalData, UmbUserPickerModalData, UmbUserPickerModalResult };