@umbraco-cms/backoffice 1.0.0-next.2a93cc95 → 1.0.0-next.2b5fb899
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 +1023 -282
- package/collection.d.ts +32 -0
- package/content-type.d.ts +127 -0
- package/context-api.d.ts +76 -6
- package/controller.d.ts +7 -6
- package/custom-elements.json +8252 -0
- package/element.d.ts +6 -6
- package/entity-action.d.ts +29 -19
- package/extensions-api.d.ts +14 -13
- package/extensions-registry.d.ts +301 -92
- package/id.d.ts +6 -0
- package/modal.d.ts +304 -19
- package/models.d.ts +31 -9
- package/notification.d.ts +1 -1
- package/observable-api.d.ts +90 -49
- package/package.json +6 -3
- package/picker-input.d.ts +24 -0
- package/repository.d.ts +114 -40
- package/resources.d.ts +25 -16
- package/router.d.ts +368 -0
- package/sorter.d.ts +103 -0
- package/store.d.ts +93 -52
- package/umbraco-package-schema.json +37755 -0
- package/utils.d.ts +1 -9
- package/vscode-html-custom-data.json +3306 -0
- package/workspace.d.ts +45 -20
- package/property-editor.d.ts +0 -8
package/modal.d.ts
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
|
-
import
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
|
-
import { LitElement } from 'lit';
|
|
5
|
-
import
|
|
6
|
-
import { UUIModalDialogElement } from '@umbraco-ui/uui
|
|
7
|
-
import {
|
|
8
|
-
import { UmbContextToken } from '
|
|
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 { 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, UmbPickerModalData as UmbPickerModalData$1 } from '@umbraco-cms/backoffice/modal';
|
|
11
|
+
import { LanguageResponseModel, UserResponseModel, FolderReponseModel } from '@umbraco-cms/backoffice/backend-api';
|
|
12
|
+
import { UserDetails } from '@umbraco-cms/backoffice/models';
|
|
9
13
|
|
|
10
14
|
declare class UmbSearchModalElement extends LitElement {
|
|
11
15
|
#private;
|
|
12
|
-
static styles: lit.CSSResult[];
|
|
13
16
|
private _input;
|
|
14
17
|
private _search;
|
|
15
18
|
private _groups;
|
|
16
19
|
connectedCallback(): void;
|
|
17
20
|
render(): lit_html.TemplateResult<1>;
|
|
21
|
+
static styles: lit.CSSResult[];
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
declare global {
|
|
@@ -23,7 +27,7 @@ declare global {
|
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
|
|
26
|
-
declare class UmbModalToken<Data =
|
|
30
|
+
declare class UmbModalToken<Data extends object = object, Result = unknown> {
|
|
27
31
|
protected alias: string;
|
|
28
32
|
protected defaultConfig?: UmbModalConfig | undefined;
|
|
29
33
|
protected _desc?: string | undefined;
|
|
@@ -68,7 +72,7 @@ declare class UmbModalToken<Data = unknown, Result = unknown> {
|
|
|
68
72
|
/**
|
|
69
73
|
* 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
74
|
*/
|
|
71
|
-
type UmbModalHandler<ModalData =
|
|
75
|
+
type UmbModalHandler<ModalData extends object = object, ModalResult = any> = Omit<UmbModalHandlerClass<ModalData, ModalResult>, 'submit'> & OptionalSubmitArgumentIfUndefined<ModalResult>;
|
|
72
76
|
type OptionalSubmitArgumentIfUndefined<T> = T extends undefined ? {
|
|
73
77
|
submit: () => void;
|
|
74
78
|
} : T extends unknown ? {
|
|
@@ -76,17 +80,17 @@ type OptionalSubmitArgumentIfUndefined<T> = T extends undefined ? {
|
|
|
76
80
|
} : {
|
|
77
81
|
submit: (arg: T) => void;
|
|
78
82
|
};
|
|
79
|
-
declare class UmbModalHandlerClass<ModalData, ModalResult> {
|
|
83
|
+
declare class UmbModalHandlerClass<ModalData extends object = object, ModalResult = unknown> {
|
|
80
84
|
#private;
|
|
81
85
|
private _submitPromise;
|
|
82
86
|
private _submitResolver?;
|
|
83
87
|
private _submitRejecter?;
|
|
84
88
|
modalElement: UUIModalDialogElement | UUIModalSidebarElement;
|
|
85
|
-
readonly innerElement: rxjs.Observable<
|
|
89
|
+
readonly innerElement: rxjs.Observable<HTMLElement | undefined>;
|
|
86
90
|
key: string;
|
|
87
91
|
type: UmbModalType;
|
|
88
92
|
size: UUIModalSidebarSize;
|
|
89
|
-
constructor(host:
|
|
93
|
+
constructor(host: UmbControllerHostElement, modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig);
|
|
90
94
|
private submit;
|
|
91
95
|
reject(): void;
|
|
92
96
|
onSubmit(): Promise<ModalResult>;
|
|
@@ -100,9 +104,9 @@ interface UmbModalConfig {
|
|
|
100
104
|
}
|
|
101
105
|
declare class UmbModalContext {
|
|
102
106
|
#private;
|
|
103
|
-
host:
|
|
104
|
-
readonly modals: rxjs.Observable<UmbModalHandler
|
|
105
|
-
constructor(host:
|
|
107
|
+
host: UmbControllerHostElement;
|
|
108
|
+
readonly modals: rxjs.Observable<UmbModalHandler[]>;
|
|
109
|
+
constructor(host: UmbControllerHostElement);
|
|
106
110
|
search(): UmbModalHandler<any, any>;
|
|
107
111
|
/**
|
|
108
112
|
* Opens a modal or sidebar modal
|
|
@@ -112,7 +116,7 @@ declare class UmbModalContext {
|
|
|
112
116
|
* @return {*} {UmbModalHandler}
|
|
113
117
|
* @memberof UmbModalContext
|
|
114
118
|
*/
|
|
115
|
-
open<ModalData =
|
|
119
|
+
open<ModalData extends object = object, ModalResult = unknown>(modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig): UmbModalHandler<ModalData, ModalResult>;
|
|
116
120
|
/**
|
|
117
121
|
* Closes a modal or sidebar modal
|
|
118
122
|
* @private
|
|
@@ -123,13 +127,294 @@ declare class UmbModalContext {
|
|
|
123
127
|
}
|
|
124
128
|
declare const UMB_MODAL_CONTEXT_TOKEN: UmbContextToken<UmbModalContext>;
|
|
125
129
|
|
|
130
|
+
type UmbModalRouteBuilder = (params: {
|
|
131
|
+
[key: string]: string | number;
|
|
132
|
+
}) => string;
|
|
133
|
+
declare class UmbModalRouteRegistration<UmbModalTokenData extends object = object, UmbModalTokenResult = any> {
|
|
134
|
+
#private;
|
|
135
|
+
constructor(modalAlias: UmbModalToken<UmbModalTokenData, UmbModalTokenResult> | string, path: string, modalConfig?: UmbModalConfig);
|
|
136
|
+
get key(): string;
|
|
137
|
+
get alias(): string | UmbModalToken<UmbModalTokenData, UmbModalTokenResult>;
|
|
138
|
+
get path(): string;
|
|
139
|
+
protected _setPath(path: string): void;
|
|
140
|
+
get modalConfig(): UmbModalConfig | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* Returns true if the modal is currently active.
|
|
143
|
+
*/
|
|
144
|
+
get active(): boolean;
|
|
145
|
+
open(params: {
|
|
146
|
+
[key: string]: string | number;
|
|
147
|
+
}): void;
|
|
148
|
+
/**
|
|
149
|
+
* Returns the modal handler if the modal is currently active. Otherwise its undefined.
|
|
150
|
+
*/
|
|
151
|
+
get modalHandler(): UmbModalHandler<UmbModalTokenData, UmbModalTokenResult> | undefined;
|
|
152
|
+
observeRouteBuilder(callback: (urlBuilder: UmbModalRouteBuilder) => void): this;
|
|
153
|
+
_internal_setRouteBuilder(urlBuilder: UmbModalRouteBuilder): void;
|
|
154
|
+
onSetup(callback: (routingInfo: Params) => UmbModalTokenData | false): this;
|
|
155
|
+
onSubmit(callback: (data: UmbModalTokenResult) => void): this;
|
|
156
|
+
onReject(callback: () => void): this;
|
|
157
|
+
routeSetup(modalContext: UmbModalContext, params: Params): UmbModalHandler<UmbModalTokenData, UmbModalTokenResult> | null;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare class UmbModalRouteRegistrationController<D extends object = object, R = any> extends UmbModalRouteRegistration<D, R> implements UmbControllerInterface {
|
|
161
|
+
#private;
|
|
162
|
+
get unique(): undefined;
|
|
163
|
+
constructor(host: UmbControllerHostElement, alias: UmbModalToken$1<D, R> | string, path: string, uniqueParts?: Map<string, string | undefined> | null, modalConfig?: UmbModalConfig$1);
|
|
164
|
+
setUniqueIdentifier(identifier: string, value: string | undefined): void;
|
|
165
|
+
private _registererModal;
|
|
166
|
+
hostConnected(): void;
|
|
167
|
+
hostDisconnected(): void;
|
|
168
|
+
destroy(): void;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
interface UmbAllowedDocumentTypesModalData {
|
|
172
|
+
id: string | null;
|
|
173
|
+
}
|
|
174
|
+
interface UmbAllowedDocumentTypesModalResult {
|
|
175
|
+
documentTypeKey: string;
|
|
176
|
+
}
|
|
177
|
+
declare const UMB_ALLOWED_DOCUMENT_TYPES_MODAL: UmbModalToken$1<UmbAllowedDocumentTypesModalData, UmbAllowedDocumentTypesModalResult>;
|
|
178
|
+
|
|
179
|
+
interface UmbChangePasswordModalData {
|
|
180
|
+
requireOldPassword: boolean;
|
|
181
|
+
}
|
|
182
|
+
declare const UMB_CHANGE_PASSWORD_MODAL: UmbModalToken$1<UmbChangePasswordModalData, unknown>;
|
|
183
|
+
|
|
184
|
+
interface UmbConfirmModalData {
|
|
185
|
+
headline: string;
|
|
186
|
+
content: TemplateResult | string;
|
|
187
|
+
color?: 'positive' | 'danger';
|
|
188
|
+
confirmLabel?: string;
|
|
189
|
+
}
|
|
190
|
+
type UmbConfirmModalResult = undefined;
|
|
191
|
+
declare const UMB_CONFIRM_MODAL: UmbModalToken$1<UmbConfirmModalData, undefined>;
|
|
192
|
+
|
|
193
|
+
interface UmbCreateDictionaryModalData {
|
|
194
|
+
unique: string | null;
|
|
195
|
+
parentName?: Observable<string | undefined>;
|
|
196
|
+
}
|
|
197
|
+
interface UmbCreateDictionaryModalResult {
|
|
198
|
+
name?: string;
|
|
199
|
+
}
|
|
200
|
+
declare const UMB_CREATE_DICTIONARY_MODAL: UmbModalToken$1<UmbCreateDictionaryModalData, UmbCreateDictionaryModalResult>;
|
|
201
|
+
|
|
202
|
+
declare const UMB_CREATE_USER_MODAL: UmbModalToken$1<object, unknown>;
|
|
203
|
+
|
|
204
|
+
declare const UMB_CURRENT_USER_MODAL: UmbModalToken$1<object, unknown>;
|
|
205
|
+
|
|
206
|
+
interface UmbContextDebuggerModalData {
|
|
207
|
+
content: TemplateResult | string;
|
|
208
|
+
}
|
|
209
|
+
declare const UMB_CONTEXT_DEBUGGER_MODAL: UmbModalToken$1<UmbContextDebuggerModalData, unknown>;
|
|
210
|
+
|
|
211
|
+
interface UmbDocumentPickerModalData {
|
|
212
|
+
multiple?: boolean;
|
|
213
|
+
selection?: Array<string | null>;
|
|
214
|
+
}
|
|
215
|
+
interface UmbDocumentPickerModalResult {
|
|
216
|
+
selection: Array<string | null>;
|
|
217
|
+
}
|
|
218
|
+
declare const UMB_DOCUMENT_PICKER_MODAL: UmbModalToken$1<UmbDocumentPickerModalData, UmbDocumentPickerModalResult>;
|
|
219
|
+
|
|
220
|
+
interface UmbDocumentTypePickerModalData {
|
|
221
|
+
multiple?: boolean;
|
|
222
|
+
selection?: Array<string>;
|
|
223
|
+
}
|
|
224
|
+
interface UmbDocumentTypePickerModalResult {
|
|
225
|
+
selection: Array<string | null>;
|
|
226
|
+
}
|
|
227
|
+
declare const UMB_DOCUMENT_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDocumentTypePickerModalData, UmbDocumentTypePickerModalResult>;
|
|
228
|
+
|
|
229
|
+
declare enum OEmbedStatus {
|
|
230
|
+
NotSupported = 0,
|
|
231
|
+
Error = 1,
|
|
232
|
+
Success = 2
|
|
233
|
+
}
|
|
234
|
+
interface UmbEmbeddedMediaDimensions {
|
|
235
|
+
width?: number;
|
|
236
|
+
height?: number;
|
|
237
|
+
constrain?: boolean;
|
|
238
|
+
}
|
|
239
|
+
interface UmbEmbeddedMediaModalData extends UmbEmbeddedMediaDimensions {
|
|
240
|
+
url?: string;
|
|
241
|
+
}
|
|
242
|
+
interface OEmbedResult extends UmbEmbeddedMediaDimensions {
|
|
243
|
+
oEmbedStatus: OEmbedStatus;
|
|
244
|
+
supportsDimensions: boolean;
|
|
245
|
+
markup?: string;
|
|
246
|
+
}
|
|
247
|
+
type UmbEmbeddedMediaModalResult = {
|
|
248
|
+
selection: OEmbedResult;
|
|
249
|
+
};
|
|
250
|
+
declare const UMB_EMBEDDED_MEDIA_MODAL: UmbModalToken$1<UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult>;
|
|
251
|
+
|
|
252
|
+
type UmbExamineFieldsSettingsModalData = Array<{
|
|
253
|
+
name: string;
|
|
254
|
+
exposed: boolean;
|
|
255
|
+
}>;
|
|
256
|
+
interface UmbCreateDocumentModalResultData {
|
|
257
|
+
fields?: UmbExamineFieldsSettingsModalData;
|
|
258
|
+
}
|
|
259
|
+
declare const UMB_EXAMINE_FIELDS_SETTINGS_MODAL: UmbModalToken$1<UmbExamineFieldsSettingsModalData, UmbCreateDocumentModalResultData>;
|
|
260
|
+
|
|
261
|
+
interface UmbExportDictionaryModalData {
|
|
262
|
+
unique: string | null;
|
|
263
|
+
}
|
|
264
|
+
interface UmbExportDictionaryModalResult {
|
|
265
|
+
includeChildren?: boolean;
|
|
266
|
+
}
|
|
267
|
+
declare const UMB_EXPORT_DICTIONARY_MODAL: UmbModalToken$1<UmbExportDictionaryModalData, UmbExportDictionaryModalResult>;
|
|
268
|
+
|
|
269
|
+
interface UmbIconPickerModalData {
|
|
270
|
+
color: string | undefined;
|
|
271
|
+
icon: string | undefined;
|
|
272
|
+
}
|
|
273
|
+
interface UmbIconPickerModalResult {
|
|
274
|
+
color: string | undefined;
|
|
275
|
+
icon: string | undefined;
|
|
276
|
+
}
|
|
277
|
+
declare const UMB_ICON_PICKER_MODAL: UmbModalToken$1<UmbIconPickerModalData, UmbIconPickerModalResult>;
|
|
278
|
+
|
|
279
|
+
interface UmbImportDictionaryModalData {
|
|
280
|
+
unique: string | null;
|
|
281
|
+
}
|
|
282
|
+
interface UmbImportDictionaryModalResult {
|
|
283
|
+
temporaryFileId?: string;
|
|
284
|
+
parentId?: string;
|
|
285
|
+
}
|
|
286
|
+
declare const UMB_IMPORT_DICTIONARY_MODAL: UmbModalToken$1<UmbImportDictionaryModalData, UmbImportDictionaryModalResult>;
|
|
287
|
+
|
|
288
|
+
declare const UMB_INVITE_USER_MODAL: UmbModalToken$1<object, unknown>;
|
|
289
|
+
|
|
290
|
+
interface UmbLanguagePickerModalData {
|
|
291
|
+
multiple?: boolean;
|
|
292
|
+
selection?: Array<string>;
|
|
293
|
+
filter?: (language: LanguageResponseModel) => boolean;
|
|
294
|
+
}
|
|
295
|
+
interface UmbLanguagePickerModalResult {
|
|
296
|
+
selection: Array<string>;
|
|
297
|
+
}
|
|
298
|
+
declare const UMB_LANGUAGE_PICKER_MODAL: UmbModalToken$1<UmbLanguagePickerModalData, UmbLanguagePickerModalResult>;
|
|
299
|
+
|
|
300
|
+
interface UmbLinkPickerModalData {
|
|
301
|
+
index: number | null;
|
|
302
|
+
link: UmbLinkPickerLink;
|
|
303
|
+
config: UmbLinkPickerConfig;
|
|
304
|
+
}
|
|
305
|
+
type UmbLinkPickerModalResult = {
|
|
306
|
+
index: number | null;
|
|
307
|
+
link: UmbLinkPickerLink;
|
|
308
|
+
};
|
|
309
|
+
interface UmbLinkPickerLink {
|
|
310
|
+
icon?: string | null;
|
|
311
|
+
name?: string | null;
|
|
312
|
+
published?: boolean | null;
|
|
313
|
+
queryString?: string | null;
|
|
314
|
+
target?: string | null;
|
|
315
|
+
trashed?: boolean | null;
|
|
316
|
+
udi?: string | null;
|
|
317
|
+
url?: string | null;
|
|
318
|
+
}
|
|
319
|
+
interface UmbLinkPickerConfig {
|
|
320
|
+
hideAnchor?: boolean;
|
|
321
|
+
ignoreUserStartNodes?: boolean;
|
|
322
|
+
overlaySize?: UUIModalSidebarSize;
|
|
323
|
+
}
|
|
324
|
+
declare const UMB_LINK_PICKER_MODAL: UmbModalToken$1<UmbLinkPickerModalData, UmbLinkPickerModalResult>;
|
|
325
|
+
|
|
326
|
+
interface UmbMediaPickerModalData {
|
|
327
|
+
multiple?: boolean;
|
|
328
|
+
selection: Array<string>;
|
|
329
|
+
}
|
|
330
|
+
interface UmbMediaPickerModalResult {
|
|
331
|
+
selection: Array<string | null>;
|
|
332
|
+
}
|
|
333
|
+
declare const UMB_MEDIA_PICKER_MODAL: UmbModalToken$1<UmbMediaPickerModalData, UmbMediaPickerModalResult>;
|
|
334
|
+
|
|
335
|
+
interface UmbPropertyEditorUIPickerModalData {
|
|
336
|
+
selection?: Array<string>;
|
|
337
|
+
submitLabel?: string;
|
|
338
|
+
}
|
|
339
|
+
type UmbPropertyEditorUIPickerModalResult = {
|
|
340
|
+
selection: Array<string>;
|
|
341
|
+
};
|
|
342
|
+
declare const UMB_PROPERTY_EDITOR_UI_PICKER_MODAL: UmbModalToken$1<UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult>;
|
|
343
|
+
|
|
344
|
+
interface UmbPropertySettingsModalResult {
|
|
345
|
+
label: string;
|
|
346
|
+
alias: string;
|
|
347
|
+
description: string;
|
|
348
|
+
propertyEditorUI?: string;
|
|
349
|
+
labelOnTop: boolean;
|
|
350
|
+
validation: {
|
|
351
|
+
mandatory: boolean;
|
|
352
|
+
mandatoryMessage: string;
|
|
353
|
+
pattern: string;
|
|
354
|
+
patternMessage: string;
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
declare const UMB_PROPERTY_SETTINGS_MODAL: UmbModalToken$1<object, UmbPropertySettingsModalResult>;
|
|
358
|
+
|
|
359
|
+
declare const UMB_SEARCH_MODAL: UmbModalToken$1<object, unknown>;
|
|
360
|
+
|
|
361
|
+
interface UmbSectionPickerModalData {
|
|
362
|
+
multiple: boolean;
|
|
363
|
+
selection: string[];
|
|
364
|
+
}
|
|
365
|
+
declare const UMB_SECTION_PICKER_MODAL: UmbModalToken$1<UmbSectionPickerModalData, unknown>;
|
|
366
|
+
|
|
367
|
+
interface UmbTemplateModalData {
|
|
368
|
+
id: string;
|
|
369
|
+
language?: 'razor' | 'typescript' | 'javascript' | 'css' | 'markdown' | 'json' | 'html';
|
|
370
|
+
}
|
|
371
|
+
interface UmbTemplateModalResult {
|
|
372
|
+
id: string;
|
|
373
|
+
}
|
|
374
|
+
declare const UMB_TEMPLATE_MODAL: UmbModalToken$1<UmbTemplateModalData, UmbTemplateModalResult>;
|
|
375
|
+
|
|
376
|
+
interface UmbTemplatePickerModalData {
|
|
377
|
+
multiple: boolean;
|
|
378
|
+
selection: Array<string | null>;
|
|
379
|
+
}
|
|
380
|
+
interface UmbTemplatePickerModalResult {
|
|
381
|
+
selection: Array<string | null>;
|
|
382
|
+
}
|
|
383
|
+
declare const UMB_TEMPLATE_PICKER_MODAL: UmbModalToken$1<UmbTemplatePickerModalData, UmbTemplatePickerModalResult>;
|
|
384
|
+
|
|
385
|
+
declare const UMB_USER_GROUP_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<UserDetails>, unknown>;
|
|
386
|
+
|
|
387
|
+
type UmbUserPickerModalData = UmbPickerModalData$1<UserResponseModel>;
|
|
388
|
+
interface UmbUserPickerModalResult {
|
|
389
|
+
selection: Array<string>;
|
|
390
|
+
}
|
|
391
|
+
declare const UMB_USER_PICKER_MODAL: UmbModalToken$1<UmbUserPickerModalData, UmbUserPickerModalResult>;
|
|
392
|
+
|
|
393
|
+
interface UmbFolderModalData {
|
|
394
|
+
repositoryAlias: string;
|
|
395
|
+
unique?: string;
|
|
396
|
+
}
|
|
397
|
+
interface UmbFolderModalResult {
|
|
398
|
+
folder: FolderReponseModel;
|
|
399
|
+
}
|
|
400
|
+
declare const UMB_FOLDER_MODAL: UmbModalToken$1<UmbFolderModalData, UmbFolderModalResult>;
|
|
401
|
+
|
|
402
|
+
interface UmbDataTypePickerModalData {
|
|
403
|
+
selection?: Array<string | null>;
|
|
404
|
+
multiple?: boolean;
|
|
405
|
+
}
|
|
406
|
+
interface UmbDataTypePickerModalResult {
|
|
407
|
+
selection: Array<string | null>;
|
|
408
|
+
}
|
|
409
|
+
declare const UMB_DATA_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDataTypePickerModalData, UmbDataTypePickerModalResult>;
|
|
410
|
+
|
|
126
411
|
interface UmbPickerModalData<T> {
|
|
127
412
|
multiple: boolean;
|
|
128
413
|
selection: Array<string>;
|
|
129
|
-
filter?: (
|
|
414
|
+
filter?: (item: T) => boolean;
|
|
130
415
|
}
|
|
131
|
-
interface UmbPickerModalResult
|
|
416
|
+
interface UmbPickerModalResult {
|
|
132
417
|
selection: Array<string>;
|
|
133
418
|
}
|
|
134
419
|
|
|
135
|
-
export { UMB_MODAL_CONTEXT_TOKEN, UmbModalConfig, UmbModalContext, UmbModalHandler, UmbModalHandlerClass, UmbModalToken, UmbModalType, UmbPickerModalData, UmbPickerModalResult };
|
|
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_DOCUMENT_PICKER_MODAL, UMB_DOCUMENT_TYPE_PICKER_MODAL, UMB_EMBEDDED_MEDIA_MODAL, UMB_EXAMINE_FIELDS_SETTINGS_MODAL, UMB_EXPORT_DICTIONARY_MODAL, UMB_FOLDER_MODAL, UMB_ICON_PICKER_MODAL, UMB_IMPORT_DICTIONARY_MODAL, UMB_INVITE_USER_MODAL, UMB_LANGUAGE_PICKER_MODAL, UMB_LINK_PICKER_MODAL, UMB_MEDIA_PICKER_MODAL, UMB_MODAL_CONTEXT_TOKEN, UMB_PROPERTY_EDITOR_UI_PICKER_MODAL, UMB_PROPERTY_SETTINGS_MODAL, UMB_SEARCH_MODAL, UMB_SECTION_PICKER_MODAL, UMB_TEMPLATE_MODAL, UMB_TEMPLATE_PICKER_MODAL, UMB_USER_GROUP_PICKER_MODAL, UMB_USER_PICKER_MODAL, UmbAllowedDocumentTypesModalData, UmbAllowedDocumentTypesModalResult, UmbChangePasswordModalData, UmbConfirmModalData, UmbConfirmModalResult, UmbContextDebuggerModalData, UmbCreateDictionaryModalData, UmbCreateDictionaryModalResult, UmbCreateDocumentModalResultData, UmbDataTypePickerModalData, UmbDataTypePickerModalResult, UmbDocumentPickerModalData, UmbDocumentPickerModalResult, UmbDocumentTypePickerModalData, UmbDocumentTypePickerModalResult, UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult, UmbExamineFieldsSettingsModalData, UmbExportDictionaryModalData, UmbExportDictionaryModalResult, UmbFolderModalData, UmbFolderModalResult, UmbIconPickerModalData, UmbIconPickerModalResult, UmbImportDictionaryModalData, UmbImportDictionaryModalResult, UmbLanguagePickerModalData, UmbLanguagePickerModalResult, UmbLinkPickerConfig, UmbLinkPickerLink, UmbLinkPickerModalData, UmbLinkPickerModalResult, UmbMediaPickerModalData, UmbMediaPickerModalResult, UmbModalConfig, UmbModalContext, UmbModalHandler, UmbModalHandlerClass, UmbModalRouteBuilder, UmbModalRouteRegistration, UmbModalRouteRegistrationController, UmbModalToken, UmbModalType, UmbPickerModalData, UmbPickerModalResult, UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult, UmbPropertySettingsModalResult, UmbSectionPickerModalData, UmbTemplateModalData, UmbTemplateModalResult, UmbTemplatePickerModalData, UmbTemplatePickerModalResult, UmbUserPickerModalData, UmbUserPickerModalResult };
|
package/models.d.ts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { EntityTreeItemResponseModel, FolderTreeItemResponseModel, PackageManifestResponseModel } from '
|
|
1
|
+
import { EntityTreeItemResponseModel, FolderTreeItemResponseModel, PackageManifestResponseModel } from '@umbraco-cms/backoffice/backend-api';
|
|
2
2
|
|
|
3
3
|
type HTMLElementConstructor<T = HTMLElement> = new (...args: any[]) => T;
|
|
4
4
|
type ClassConstructor<T> = new (...args: any[]) => T;
|
|
5
5
|
interface Entity {
|
|
6
|
-
|
|
6
|
+
id: string;
|
|
7
7
|
name: string;
|
|
8
8
|
icon: string;
|
|
9
9
|
type: string;
|
|
10
10
|
hasChildren: boolean;
|
|
11
|
-
|
|
11
|
+
parentId: string | null;
|
|
12
12
|
}
|
|
13
|
+
/** Tried to find a common base of our entities — used by Entity Workspace Context */
|
|
14
|
+
type BaseEntity = {
|
|
15
|
+
id?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
};
|
|
13
18
|
interface UserEntity extends Entity {
|
|
14
19
|
type: 'user';
|
|
15
20
|
}
|
|
@@ -38,23 +43,23 @@ interface UserGroupDetails extends UserGroupEntity {
|
|
|
38
43
|
permissions: Array<string>;
|
|
39
44
|
}
|
|
40
45
|
interface MemberTypeDetails extends EntityTreeItemResponseModel {
|
|
41
|
-
|
|
46
|
+
id: string;
|
|
42
47
|
alias: string;
|
|
43
48
|
properties: [];
|
|
44
49
|
}
|
|
45
50
|
interface MediaTypeDetails extends FolderTreeItemResponseModel {
|
|
46
|
-
|
|
51
|
+
id: string;
|
|
47
52
|
alias: string;
|
|
48
53
|
properties: [];
|
|
49
54
|
}
|
|
50
55
|
interface MemberGroupDetails extends EntityTreeItemResponseModel {
|
|
51
|
-
|
|
56
|
+
id: string;
|
|
52
57
|
}
|
|
53
58
|
interface MemberDetails extends EntityTreeItemResponseModel {
|
|
54
|
-
|
|
59
|
+
id: string;
|
|
55
60
|
}
|
|
56
61
|
interface DocumentBlueprintDetails {
|
|
57
|
-
|
|
62
|
+
id: string;
|
|
58
63
|
name: string;
|
|
59
64
|
type: 'document-blueprint';
|
|
60
65
|
properties: Array<any>;
|
|
@@ -71,5 +76,22 @@ type PackageManifestResponse = UmbPackage[];
|
|
|
71
76
|
type UmbPackageWithMigrationStatus = UmbPackage & {
|
|
72
77
|
hasPendingMigrations: boolean;
|
|
73
78
|
};
|
|
79
|
+
interface UmbFilterModel {
|
|
80
|
+
skip?: number;
|
|
81
|
+
take?: number;
|
|
82
|
+
filter?: string;
|
|
83
|
+
}
|
|
84
|
+
interface UmbTreeRootModel {
|
|
85
|
+
type: string;
|
|
86
|
+
name: string;
|
|
87
|
+
hasChildren: boolean;
|
|
88
|
+
icon?: string;
|
|
89
|
+
}
|
|
90
|
+
interface UmbTreeRootEntityModel extends UmbTreeRootModel {
|
|
91
|
+
id: string | null;
|
|
92
|
+
}
|
|
93
|
+
interface UmbTreeRootFileSystemModel extends UmbTreeRootModel {
|
|
94
|
+
path: string | null;
|
|
95
|
+
}
|
|
74
96
|
|
|
75
|
-
export { ClassConstructor, DocumentBlueprintDetails, Entity, HTMLElementConstructor, MediaTypeDetails, MemberDetails, MemberGroupDetails, MemberTypeDetails, PackageManifestResponse, SwatchDetails, UmbPackage, UmbPackageWithMigrationStatus, UserDetails, UserEntity, UserGroupDetails, UserGroupEntity, UserStatus };
|
|
97
|
+
export { BaseEntity, ClassConstructor, DocumentBlueprintDetails, Entity, HTMLElementConstructor, MediaTypeDetails, MemberDetails, MemberGroupDetails, MemberTypeDetails, PackageManifestResponse, SwatchDetails, UmbFilterModel, UmbPackage, UmbPackageWithMigrationStatus, UmbTreeRootEntityModel, UmbTreeRootFileSystemModel, UmbTreeRootModel, UserDetails, UserEntity, UserGroupDetails, UserGroupEntity, UserStatus };
|
package/notification.d.ts
CHANGED