@umbraco-cms/backoffice 1.0.0-next.9c008bb2 → 1.0.0-next.a4895498
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/collection.d.ts +9 -3
- package/context-api.d.ts +2 -2
- package/custom-elements.json +91 -93
- package/extensions-registry.d.ts +2 -2
- package/modal.d.ts +11 -12
- package/models.d.ts +3 -75
- package/package.json +1 -1
- package/repository.d.ts +37 -32
- package/section.d.ts +29 -0
- package/store.d.ts +1 -1
- package/tree.d.ts +14 -0
- package/umbraco-package-schema.json +18 -12
- package/vscode-html-custom-data.json +77 -77
- package/workspace.d.ts +18 -1
package/collection.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
|
3
3
|
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
4
4
|
import { UmbObserverController } from '@umbraco-cms/backoffice/observable-api';
|
|
5
5
|
import { UmbCollectionRepository } from '@umbraco-cms/backoffice/repository';
|
|
6
|
-
import {
|
|
6
|
+
import { UmbCollectionFilterModel as UmbCollectionFilterModel$1 } from '@umbraco-cms/backoffice/collection';
|
|
7
7
|
|
|
8
|
-
declare class UmbCollectionContext<ItemType, FilterModelType extends
|
|
8
|
+
declare class UmbCollectionContext<ItemType, FilterModelType extends UmbCollectionFilterModel$1> {
|
|
9
9
|
#private;
|
|
10
10
|
private _host;
|
|
11
11
|
private _entityType;
|
|
@@ -29,4 +29,10 @@ declare class UmbCollectionContext<ItemType, FilterModelType extends UmbFilterMo
|
|
|
29
29
|
}
|
|
30
30
|
declare const UMB_COLLECTION_CONTEXT_TOKEN: UmbContextToken<UmbCollectionContext<any, any>>;
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
interface UmbCollectionFilterModel {
|
|
33
|
+
skip?: number;
|
|
34
|
+
take?: number;
|
|
35
|
+
filter?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { UMB_COLLECTION_CONTEXT_TOKEN, UmbCollectionContext, UmbCollectionFilterModel };
|
package/context-api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UmbControllerHostElement, UmbControllerInterface } from '@umbraco-cms/backoffice/controller';
|
|
2
2
|
import { UmbWorkspaceContextInterface } from '@umbraco-cms/backoffice/workspace';
|
|
3
|
-
import {
|
|
3
|
+
import { UmbEntityBase } from '@umbraco-cms/backoffice/models';
|
|
4
4
|
|
|
5
5
|
declare class UmbContextToken<T = unknown> {
|
|
6
6
|
protected alias: string;
|
|
@@ -170,7 +170,7 @@ interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWo
|
|
|
170
170
|
save(): Promise<void>;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
declare const UMB_ENTITY_WORKSPACE_CONTEXT: UmbContextToken<UmbEntityWorkspaceContextInterface<
|
|
173
|
+
declare const UMB_ENTITY_WORKSPACE_CONTEXT: UmbContextToken<UmbEntityWorkspaceContextInterface<UmbEntityBase>>;
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
176
|
* Change the collection of Contexts into a simplified array of data
|
package/custom-elements.json
CHANGED
|
@@ -858,41 +858,41 @@
|
|
|
858
858
|
]
|
|
859
859
|
},
|
|
860
860
|
{
|
|
861
|
-
"name": "umb-
|
|
862
|
-
"path": "./../../src/backoffice/search/
|
|
861
|
+
"name": "umb-dashboard-examine-management",
|
|
862
|
+
"path": "./../../src/backoffice/search/examine-management-dashboard/dashboard-examine-management.element.ts",
|
|
863
863
|
"properties": [
|
|
864
864
|
{
|
|
865
865
|
"name": "styles",
|
|
866
866
|
"type": "CSSResult[]",
|
|
867
|
-
"default": "[
|
|
867
|
+
"default": "[null]"
|
|
868
868
|
}
|
|
869
869
|
]
|
|
870
870
|
},
|
|
871
871
|
{
|
|
872
|
-
"name": "umb-
|
|
873
|
-
"path": "./../../src/backoffice/search/
|
|
872
|
+
"name": "umb-examine-fields-settings-modal",
|
|
873
|
+
"path": "./../../src/backoffice/search/examine-management-dashboard/views/modal-views/fields-settings.element.ts",
|
|
874
874
|
"properties": [
|
|
875
875
|
{
|
|
876
876
|
"name": "styles",
|
|
877
|
-
"type": "
|
|
877
|
+
"type": "CSSResult[]",
|
|
878
878
|
"default": "[\"UUITextStyles\",null]"
|
|
879
879
|
}
|
|
880
880
|
]
|
|
881
881
|
},
|
|
882
882
|
{
|
|
883
|
-
"name": "umb-
|
|
884
|
-
"path": "./../../src/backoffice/
|
|
883
|
+
"name": "umb-modal-element-fields-viewer",
|
|
884
|
+
"path": "./../../src/backoffice/search/examine-management-dashboard/views/modal-views/fields-viewer.element.ts",
|
|
885
885
|
"properties": [
|
|
886
886
|
{
|
|
887
887
|
"name": "styles",
|
|
888
888
|
"type": "CSSResult[]",
|
|
889
|
-
"default": "[null]"
|
|
889
|
+
"default": "[\"UUITextStyles\",null]"
|
|
890
890
|
}
|
|
891
891
|
]
|
|
892
892
|
},
|
|
893
893
|
{
|
|
894
|
-
"name": "umb-
|
|
895
|
-
"path": "./../../src/backoffice/
|
|
894
|
+
"name": "umb-search-modal",
|
|
895
|
+
"path": "./../../src/backoffice/search/search-modal/search-modal.element.ts",
|
|
896
896
|
"properties": [
|
|
897
897
|
{
|
|
898
898
|
"name": "styles",
|
|
@@ -902,12 +902,12 @@
|
|
|
902
902
|
]
|
|
903
903
|
},
|
|
904
904
|
{
|
|
905
|
-
"name": "umb-
|
|
906
|
-
"path": "./../../src/backoffice/
|
|
905
|
+
"name": "umb-search-header-app",
|
|
906
|
+
"path": "./../../src/backoffice/search/umb-search-header-app.element.ts",
|
|
907
907
|
"properties": [
|
|
908
908
|
{
|
|
909
909
|
"name": "styles",
|
|
910
|
-
"type": "
|
|
910
|
+
"type": "CSSResultGroup",
|
|
911
911
|
"default": "[\"UUITextStyles\",null]"
|
|
912
912
|
}
|
|
913
913
|
]
|
|
@@ -3898,7 +3898,7 @@
|
|
|
3898
3898
|
},
|
|
3899
3899
|
{
|
|
3900
3900
|
"name": "selectedIds",
|
|
3901
|
-
"type": "string[]"
|
|
3901
|
+
"type": "(string | null)[]"
|
|
3902
3902
|
},
|
|
3903
3903
|
{
|
|
3904
3904
|
"name": "defaultId",
|
|
@@ -3937,7 +3937,7 @@
|
|
|
3937
3937
|
{
|
|
3938
3938
|
"name": "selectedIds",
|
|
3939
3939
|
"attribute": "selectedIds",
|
|
3940
|
-
"type": "string[]"
|
|
3940
|
+
"type": "(string | null)[]"
|
|
3941
3941
|
},
|
|
3942
3942
|
{
|
|
3943
3943
|
"name": "defaultId",
|
|
@@ -4187,66 +4187,6 @@
|
|
|
4187
4187
|
}
|
|
4188
4188
|
]
|
|
4189
4189
|
},
|
|
4190
|
-
{
|
|
4191
|
-
"name": "umb-input-user-group",
|
|
4192
|
-
"path": "./../../src/backoffice/shared/components/input-user-group/input-user-group.element.ts",
|
|
4193
|
-
"attributes": [
|
|
4194
|
-
{
|
|
4195
|
-
"name": "value",
|
|
4196
|
-
"type": "string[]",
|
|
4197
|
-
"default": "[]"
|
|
4198
|
-
},
|
|
4199
|
-
{
|
|
4200
|
-
"name": "multiple",
|
|
4201
|
-
"type": "boolean",
|
|
4202
|
-
"default": "true"
|
|
4203
|
-
},
|
|
4204
|
-
{
|
|
4205
|
-
"name": "modalType",
|
|
4206
|
-
"default": "\"sidebar\""
|
|
4207
|
-
},
|
|
4208
|
-
{
|
|
4209
|
-
"name": "modalSize",
|
|
4210
|
-
"type": "UUIModalSidebarSize",
|
|
4211
|
-
"default": "\"small\""
|
|
4212
|
-
}
|
|
4213
|
-
],
|
|
4214
|
-
"properties": [
|
|
4215
|
-
{
|
|
4216
|
-
"name": "styles",
|
|
4217
|
-
"type": "CSSResult[]",
|
|
4218
|
-
"default": "[\"UUITextStyles\",null]"
|
|
4219
|
-
},
|
|
4220
|
-
{
|
|
4221
|
-
"name": "value",
|
|
4222
|
-
"attribute": "value",
|
|
4223
|
-
"type": "string[]",
|
|
4224
|
-
"default": "[]"
|
|
4225
|
-
},
|
|
4226
|
-
{
|
|
4227
|
-
"name": "multiple",
|
|
4228
|
-
"attribute": "multiple",
|
|
4229
|
-
"type": "boolean",
|
|
4230
|
-
"default": "true"
|
|
4231
|
-
},
|
|
4232
|
-
{
|
|
4233
|
-
"name": "modalType",
|
|
4234
|
-
"attribute": "modalType",
|
|
4235
|
-
"default": "\"sidebar\""
|
|
4236
|
-
},
|
|
4237
|
-
{
|
|
4238
|
-
"name": "modalSize",
|
|
4239
|
-
"attribute": "modalSize",
|
|
4240
|
-
"type": "UUIModalSidebarSize",
|
|
4241
|
-
"default": "\"small\""
|
|
4242
|
-
}
|
|
4243
|
-
],
|
|
4244
|
-
"events": [
|
|
4245
|
-
{
|
|
4246
|
-
"name": "change"
|
|
4247
|
-
}
|
|
4248
|
-
]
|
|
4249
|
-
},
|
|
4250
4190
|
{
|
|
4251
4191
|
"name": "umb-menu-item-base",
|
|
4252
4192
|
"path": "./../../src/backoffice/shared/components/menu/menu-item-base/menu-item-base.element.ts",
|
|
@@ -4830,18 +4770,19 @@
|
|
|
4830
4770
|
"attributes": [
|
|
4831
4771
|
{
|
|
4832
4772
|
"name": "alias",
|
|
4833
|
-
"type": "string"
|
|
4773
|
+
"type": "string | undefined"
|
|
4834
4774
|
},
|
|
4835
4775
|
{
|
|
4836
|
-
"name": "selectable"
|
|
4837
|
-
"type": "boolean"
|
|
4776
|
+
"name": "selectable"
|
|
4838
4777
|
},
|
|
4839
4778
|
{
|
|
4840
|
-
"name": "selection"
|
|
4841
|
-
"type": "string[]"
|
|
4779
|
+
"name": "selection"
|
|
4842
4780
|
},
|
|
4843
4781
|
{
|
|
4844
|
-
"name": "multiple"
|
|
4782
|
+
"name": "multiple"
|
|
4783
|
+
},
|
|
4784
|
+
{
|
|
4785
|
+
"name": "hide-tree-root",
|
|
4845
4786
|
"type": "boolean"
|
|
4846
4787
|
}
|
|
4847
4788
|
],
|
|
@@ -4849,27 +4790,24 @@
|
|
|
4849
4790
|
{
|
|
4850
4791
|
"name": "alias",
|
|
4851
4792
|
"attribute": "alias",
|
|
4852
|
-
"type": "string"
|
|
4793
|
+
"type": "string | undefined"
|
|
4853
4794
|
},
|
|
4854
4795
|
{
|
|
4855
4796
|
"name": "selectable",
|
|
4856
|
-
"attribute": "selectable"
|
|
4857
|
-
"type": "boolean"
|
|
4797
|
+
"attribute": "selectable"
|
|
4858
4798
|
},
|
|
4859
4799
|
{
|
|
4860
4800
|
"name": "selection",
|
|
4861
|
-
"attribute": "selection"
|
|
4862
|
-
"type": "string[]"
|
|
4801
|
+
"attribute": "selection"
|
|
4863
4802
|
},
|
|
4864
4803
|
{
|
|
4865
4804
|
"name": "multiple",
|
|
4866
|
-
"attribute": "multiple"
|
|
4867
|
-
|
|
4868
|
-
}
|
|
4869
|
-
],
|
|
4870
|
-
"events": [
|
|
4805
|
+
"attribute": "multiple"
|
|
4806
|
+
},
|
|
4871
4807
|
{
|
|
4872
|
-
"name": "
|
|
4808
|
+
"name": "hideTreeRoot",
|
|
4809
|
+
"attribute": "hide-tree-root",
|
|
4810
|
+
"type": "boolean"
|
|
4873
4811
|
}
|
|
4874
4812
|
]
|
|
4875
4813
|
},
|
|
@@ -7492,6 +7430,66 @@
|
|
|
7492
7430
|
}
|
|
7493
7431
|
]
|
|
7494
7432
|
},
|
|
7433
|
+
{
|
|
7434
|
+
"name": "umb-input-user-group",
|
|
7435
|
+
"path": "./../../src/backoffice/users/user-groups/components/input-user-group/input-user-group.element.ts",
|
|
7436
|
+
"attributes": [
|
|
7437
|
+
{
|
|
7438
|
+
"name": "value",
|
|
7439
|
+
"type": "string[]",
|
|
7440
|
+
"default": "[]"
|
|
7441
|
+
},
|
|
7442
|
+
{
|
|
7443
|
+
"name": "multiple",
|
|
7444
|
+
"type": "boolean",
|
|
7445
|
+
"default": "true"
|
|
7446
|
+
},
|
|
7447
|
+
{
|
|
7448
|
+
"name": "modalType",
|
|
7449
|
+
"default": "\"sidebar\""
|
|
7450
|
+
},
|
|
7451
|
+
{
|
|
7452
|
+
"name": "modalSize",
|
|
7453
|
+
"type": "UUIModalSidebarSize",
|
|
7454
|
+
"default": "\"small\""
|
|
7455
|
+
}
|
|
7456
|
+
],
|
|
7457
|
+
"properties": [
|
|
7458
|
+
{
|
|
7459
|
+
"name": "styles",
|
|
7460
|
+
"type": "CSSResult[]",
|
|
7461
|
+
"default": "[\"UUITextStyles\",null]"
|
|
7462
|
+
},
|
|
7463
|
+
{
|
|
7464
|
+
"name": "value",
|
|
7465
|
+
"attribute": "value",
|
|
7466
|
+
"type": "string[]",
|
|
7467
|
+
"default": "[]"
|
|
7468
|
+
},
|
|
7469
|
+
{
|
|
7470
|
+
"name": "multiple",
|
|
7471
|
+
"attribute": "multiple",
|
|
7472
|
+
"type": "boolean",
|
|
7473
|
+
"default": "true"
|
|
7474
|
+
},
|
|
7475
|
+
{
|
|
7476
|
+
"name": "modalType",
|
|
7477
|
+
"attribute": "modalType",
|
|
7478
|
+
"default": "\"sidebar\""
|
|
7479
|
+
},
|
|
7480
|
+
{
|
|
7481
|
+
"name": "modalSize",
|
|
7482
|
+
"attribute": "modalSize",
|
|
7483
|
+
"type": "UUIModalSidebarSize",
|
|
7484
|
+
"default": "\"small\""
|
|
7485
|
+
}
|
|
7486
|
+
],
|
|
7487
|
+
"events": [
|
|
7488
|
+
{
|
|
7489
|
+
"name": "change"
|
|
7490
|
+
}
|
|
7491
|
+
]
|
|
7492
|
+
},
|
|
7495
7493
|
{
|
|
7496
7494
|
"name": "umb-user-group-picker-modal",
|
|
7497
7495
|
"path": "./../../src/backoffice/users/user-groups/modals/user-group-picker/user-group-picker-modal.element.ts",
|
package/extensions-registry.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ interface MetaEntityAction {
|
|
|
126
126
|
repositoryAlias: string;
|
|
127
127
|
}
|
|
128
128
|
interface ConditionsEntityAction {
|
|
129
|
-
|
|
129
|
+
entityTypes: Array<string>;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
/**
|
|
@@ -383,7 +383,7 @@ interface ManifestTreeItem extends ManifestElement<UmbTreeItemExtensionElement>
|
|
|
383
383
|
conditions: ConditionsTreeItem;
|
|
384
384
|
}
|
|
385
385
|
interface ConditionsTreeItem {
|
|
386
|
-
|
|
386
|
+
entityTypes: Array<string>;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
interface ManifestUserProfileApp extends ManifestElement {
|
package/modal.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
|
9
9
|
import { Params } from '@umbraco-cms/backoffice/router';
|
|
10
10
|
import { UmbModalToken as UmbModalToken$1, UmbModalConfig as UmbModalConfig$1, UmbPickerModalData as UmbPickerModalData$1 } from '@umbraco-cms/backoffice/modal';
|
|
11
11
|
import { LanguageResponseModel, UserResponseModel, FolderReponseModel } from '@umbraco-cms/backoffice/backend-api';
|
|
12
|
-
import { UserDetails } from '@umbraco-cms/backoffice/models';
|
|
13
12
|
|
|
14
13
|
declare class UmbSearchModalElement extends LitElement {
|
|
15
14
|
#private;
|
|
@@ -210,10 +209,10 @@ declare const UMB_CONTEXT_DEBUGGER_MODAL: UmbModalToken$1<UmbContextDebuggerModa
|
|
|
210
209
|
|
|
211
210
|
interface UmbDocumentPickerModalData {
|
|
212
211
|
multiple?: boolean;
|
|
213
|
-
selection?: Array<string>;
|
|
212
|
+
selection?: Array<string | null>;
|
|
214
213
|
}
|
|
215
214
|
interface UmbDocumentPickerModalResult {
|
|
216
|
-
selection: Array<string>;
|
|
215
|
+
selection: Array<string | null>;
|
|
217
216
|
}
|
|
218
217
|
declare const UMB_DOCUMENT_PICKER_MODAL: UmbModalToken$1<UmbDocumentPickerModalData, UmbDocumentPickerModalResult>;
|
|
219
218
|
|
|
@@ -222,7 +221,7 @@ interface UmbDocumentTypePickerModalData {
|
|
|
222
221
|
selection?: Array<string>;
|
|
223
222
|
}
|
|
224
223
|
interface UmbDocumentTypePickerModalResult {
|
|
225
|
-
selection: Array<string>;
|
|
224
|
+
selection: Array<string | null>;
|
|
226
225
|
}
|
|
227
226
|
declare const UMB_DOCUMENT_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDocumentTypePickerModalData, UmbDocumentTypePickerModalResult>;
|
|
228
227
|
|
|
@@ -328,7 +327,7 @@ interface UmbMediaPickerModalData {
|
|
|
328
327
|
selection: Array<string>;
|
|
329
328
|
}
|
|
330
329
|
interface UmbMediaPickerModalResult {
|
|
331
|
-
selection: Array<string>;
|
|
330
|
+
selection: Array<string | null>;
|
|
332
331
|
}
|
|
333
332
|
declare const UMB_MEDIA_PICKER_MODAL: UmbModalToken$1<UmbMediaPickerModalData, UmbMediaPickerModalResult>;
|
|
334
333
|
|
|
@@ -375,14 +374,14 @@ declare const UMB_TEMPLATE_MODAL: UmbModalToken$1<UmbTemplateModalData, UmbTempl
|
|
|
375
374
|
|
|
376
375
|
interface UmbTemplatePickerModalData {
|
|
377
376
|
multiple: boolean;
|
|
378
|
-
selection: string
|
|
377
|
+
selection: Array<string | null>;
|
|
379
378
|
}
|
|
380
379
|
interface UmbTemplatePickerModalResult {
|
|
381
|
-
selection: string
|
|
380
|
+
selection: Array<string | null>;
|
|
382
381
|
}
|
|
383
382
|
declare const UMB_TEMPLATE_PICKER_MODAL: UmbModalToken$1<UmbTemplatePickerModalData, UmbTemplatePickerModalResult>;
|
|
384
383
|
|
|
385
|
-
declare const UMB_USER_GROUP_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<
|
|
384
|
+
declare const UMB_USER_GROUP_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<any>, unknown>;
|
|
386
385
|
|
|
387
386
|
type UmbUserPickerModalData = UmbPickerModalData$1<UserResponseModel>;
|
|
388
387
|
interface UmbUserPickerModalResult {
|
|
@@ -400,21 +399,21 @@ interface UmbFolderModalResult {
|
|
|
400
399
|
declare const UMB_FOLDER_MODAL: UmbModalToken$1<UmbFolderModalData, UmbFolderModalResult>;
|
|
401
400
|
|
|
402
401
|
interface UmbDataTypePickerModalData {
|
|
403
|
-
selection?: Array<string>;
|
|
402
|
+
selection?: Array<string | null>;
|
|
404
403
|
multiple?: boolean;
|
|
405
404
|
}
|
|
406
405
|
interface UmbDataTypePickerModalResult {
|
|
407
|
-
selection: Array<string>;
|
|
406
|
+
selection: Array<string | null>;
|
|
408
407
|
}
|
|
409
408
|
declare const UMB_DATA_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDataTypePickerModalData, UmbDataTypePickerModalResult>;
|
|
410
409
|
|
|
411
410
|
interface UmbPickerModalData<T> {
|
|
412
411
|
multiple: boolean;
|
|
413
|
-
selection: Array<string>;
|
|
412
|
+
selection: Array<string | null>;
|
|
414
413
|
filter?: (item: T) => boolean;
|
|
415
414
|
}
|
|
416
415
|
interface UmbPickerModalResult {
|
|
417
|
-
selection: Array<string>;
|
|
416
|
+
selection: Array<string | null>;
|
|
418
417
|
}
|
|
419
418
|
|
|
420
419
|
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,85 +1,13 @@
|
|
|
1
|
-
import { EntityTreeItemResponseModel, FolderTreeItemResponseModel, PackageManifestResponseModel } from '@umbraco-cms/backoffice/backend-api';
|
|
2
|
-
|
|
3
1
|
type HTMLElementConstructor<T = HTMLElement> = new (...args: any[]) => T;
|
|
4
2
|
type ClassConstructor<T> = new (...args: any[]) => T;
|
|
5
|
-
interface Entity {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
icon: string;
|
|
9
|
-
type: string;
|
|
10
|
-
hasChildren: boolean;
|
|
11
|
-
parentId: string | null;
|
|
12
|
-
}
|
|
13
3
|
/** Tried to find a common base of our entities — used by Entity Workspace Context */
|
|
14
|
-
type
|
|
4
|
+
type UmbEntityBase = {
|
|
15
5
|
id?: string;
|
|
16
6
|
name?: string;
|
|
17
7
|
};
|
|
18
|
-
interface
|
|
19
|
-
type: 'user';
|
|
20
|
-
}
|
|
21
|
-
type UserStatus = 'enabled' | 'inactive' | 'invited' | 'disabled';
|
|
22
|
-
interface UserDetails extends UserEntity {
|
|
23
|
-
email: string;
|
|
24
|
-
status: UserStatus;
|
|
25
|
-
language: string;
|
|
26
|
-
lastLoginDate?: string;
|
|
27
|
-
lastLockoutDate?: string;
|
|
28
|
-
lastPasswordChangeDate?: string;
|
|
29
|
-
updateDate: string;
|
|
30
|
-
createDate: string;
|
|
31
|
-
failedLoginAttempts: number;
|
|
32
|
-
userGroups: Array<string>;
|
|
33
|
-
contentStartNodes: Array<string>;
|
|
34
|
-
mediaStartNodes: Array<string>;
|
|
35
|
-
}
|
|
36
|
-
interface UserGroupEntity extends Entity {
|
|
37
|
-
type: 'user-group';
|
|
38
|
-
}
|
|
39
|
-
interface UserGroupDetails extends UserGroupEntity {
|
|
40
|
-
sections: Array<string>;
|
|
41
|
-
contentStartNode?: string;
|
|
42
|
-
mediaStartNode?: string;
|
|
43
|
-
permissions: Array<string>;
|
|
44
|
-
}
|
|
45
|
-
interface MemberTypeDetails extends EntityTreeItemResponseModel {
|
|
46
|
-
id: string;
|
|
47
|
-
alias: string;
|
|
48
|
-
properties: [];
|
|
49
|
-
}
|
|
50
|
-
interface MediaTypeDetails extends FolderTreeItemResponseModel {
|
|
51
|
-
id: string;
|
|
52
|
-
alias: string;
|
|
53
|
-
properties: [];
|
|
54
|
-
}
|
|
55
|
-
interface MemberGroupDetails extends EntityTreeItemResponseModel {
|
|
56
|
-
id: string;
|
|
57
|
-
}
|
|
58
|
-
interface MemberDetails extends EntityTreeItemResponseModel {
|
|
59
|
-
id: string;
|
|
60
|
-
}
|
|
61
|
-
interface DocumentBlueprintDetails {
|
|
62
|
-
id: string;
|
|
63
|
-
name: string;
|
|
64
|
-
type: 'document-blueprint';
|
|
65
|
-
properties: Array<any>;
|
|
66
|
-
data: Array<any>;
|
|
67
|
-
icon: string;
|
|
68
|
-
documentTypeKey: string;
|
|
69
|
-
}
|
|
70
|
-
interface SwatchDetails {
|
|
8
|
+
interface UmbSwatchDetails {
|
|
71
9
|
label: string;
|
|
72
10
|
value: string;
|
|
73
11
|
}
|
|
74
|
-
type UmbPackage = PackageManifestResponseModel;
|
|
75
|
-
type PackageManifestResponse = UmbPackage[];
|
|
76
|
-
type UmbPackageWithMigrationStatus = UmbPackage & {
|
|
77
|
-
hasPendingMigrations: boolean;
|
|
78
|
-
};
|
|
79
|
-
interface UmbFilterModel {
|
|
80
|
-
skip?: number;
|
|
81
|
-
take?: number;
|
|
82
|
-
filter?: string;
|
|
83
|
-
}
|
|
84
12
|
|
|
85
|
-
export {
|
|
13
|
+
export { ClassConstructor, HTMLElementConstructor, UmbEntityBase, UmbSwatchDetails };
|
package/package.json
CHANGED
package/repository.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ApiError, CancelError, FolderReponseModel, CreateFolderRequestModel, UpdateFolderReponseModel, ProblemDetailsModel, FolderModelBaseModel, ItemResponseModelBaseModel } from '@umbraco-cms/backoffice/backend-api';
|
|
1
|
+
import { ApiError, CancelError, FolderReponseModel, CreateFolderRequestModel, UpdateFolderReponseModel, TreeItemPresentationModel, ProblemDetailsModel, FolderModelBaseModel, ItemResponseModelBaseModel } from '@umbraco-cms/backoffice/backend-api';
|
|
2
2
|
import { DataSourceResponse as DataSourceResponse$1, UmbDataSourceErrorResponse as UmbDataSourceErrorResponse$1 } from '@umbraco-cms/backoffice/repository';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { UmbTreeRootModel, UmbTreeRootEntityModel } from '@umbraco-cms/backoffice/tree';
|
|
4
5
|
|
|
5
6
|
interface DataSourceResponse<T = undefined> extends UmbDataSourceErrorResponse {
|
|
6
7
|
data?: T;
|
|
@@ -25,47 +26,51 @@ interface UmbFolderDataSource {
|
|
|
25
26
|
delete(unique: string): Promise<DataSourceResponse>;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
interface UmbTreeDataSource<PagedItemsType = any, ItemsType = any> {
|
|
29
|
-
getRootItems(): Promise<DataSourceResponse$1<PagedItemsType>>;
|
|
30
|
-
getChildrenOf(parentUnique: string): Promise<DataSourceResponse$1<PagedItemsType>>;
|
|
31
|
-
getItems(unique: Array<string>): Promise<DataSourceResponse$1<Array<ItemsType>>>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface UmbItemDataSource<ItemType> {
|
|
35
|
-
getItems(unique: Array<string>): Promise<DataSourceResponse$1<Array<ItemType>>>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface UmbMoveDataSource {
|
|
39
|
-
move(unique: string, targetUnique: string): Promise<UmbDataSourceErrorResponse$1>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
interface UmbCopyDataSource {
|
|
43
|
-
copy(unique: string, targetUnique: string): Promise<DataSourceResponse$1<string>>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
29
|
interface UmbPagedData<T> {
|
|
47
30
|
total: number;
|
|
48
31
|
items: Array<T>;
|
|
49
32
|
}
|
|
50
|
-
interface UmbTreeRepository<
|
|
33
|
+
interface UmbTreeRepository<TreeItemType extends TreeItemPresentationModel, TreeRootType extends UmbTreeRootModel = UmbTreeRootEntityModel> {
|
|
34
|
+
requestTreeRoot: () => Promise<{
|
|
35
|
+
data?: TreeRootType;
|
|
36
|
+
error?: ProblemDetailsModel;
|
|
37
|
+
}>;
|
|
51
38
|
requestRootTreeItems: () => Promise<{
|
|
52
|
-
data
|
|
53
|
-
error
|
|
54
|
-
asObservable?: () => Observable<
|
|
39
|
+
data?: UmbPagedData<TreeItemType>;
|
|
40
|
+
error?: ProblemDetailsModel;
|
|
41
|
+
asObservable?: () => Observable<TreeItemType[]>;
|
|
55
42
|
}>;
|
|
56
43
|
requestTreeItemsOf: (parentUnique: string | null) => Promise<{
|
|
57
|
-
data
|
|
58
|
-
error
|
|
59
|
-
asObservable?: () => Observable<
|
|
44
|
+
data?: UmbPagedData<TreeItemType>;
|
|
45
|
+
error?: ProblemDetailsModel;
|
|
46
|
+
asObservable?: () => Observable<TreeItemType[]>;
|
|
60
47
|
}>;
|
|
61
48
|
requestItemsLegacy?: (uniques: string[]) => Promise<{
|
|
62
|
-
data
|
|
63
|
-
error
|
|
64
|
-
asObservable?: () => Observable<
|
|
49
|
+
data?: Array<TreeItemType>;
|
|
50
|
+
error?: ProblemDetailsModel;
|
|
51
|
+
asObservable?: () => Observable<any[]>;
|
|
65
52
|
}>;
|
|
66
|
-
rootTreeItems: () => Promise<Observable<
|
|
67
|
-
treeItemsOf: (parentUnique: string | null) => Promise<Observable<
|
|
68
|
-
itemsLegacy?: (uniques: string[]) => Promise<Observable<
|
|
53
|
+
rootTreeItems: () => Promise<Observable<TreeItemType[]>>;
|
|
54
|
+
treeItemsOf: (parentUnique: string | null) => Promise<Observable<TreeItemType[]>>;
|
|
55
|
+
itemsLegacy?: (uniques: string[]) => Promise<Observable<any[]>>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface UmbTreeDataSource<ItemType = any, PagedItemType = UmbPagedData<ItemType>> {
|
|
59
|
+
getRootItems(): Promise<DataSourceResponse<PagedItemType>>;
|
|
60
|
+
getChildrenOf(parentUnique: string | null): Promise<DataSourceResponse<PagedItemType>>;
|
|
61
|
+
getItems(unique: Array<string>): Promise<DataSourceResponse<Array<any>>>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface UmbItemDataSource<ItemType> {
|
|
65
|
+
getItems(unique: Array<string>): Promise<DataSourceResponse$1<Array<ItemType>>>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface UmbMoveDataSource {
|
|
69
|
+
move(unique: string, targetUnique: string | null): Promise<UmbDataSourceErrorResponse$1>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
interface UmbCopyDataSource {
|
|
73
|
+
copy(unique: string, targetUnique: string | null): Promise<DataSourceResponse$1<string>>;
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
interface UmbCollectionDataSource<ItemType = any, PagedItemType = UmbPagedData<ItemType>> {
|
package/section.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
3
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
4
|
+
import { ManifestSection } from '@umbraco-cms/backoffice/extensions-registry';
|
|
5
|
+
|
|
6
|
+
declare class UmbSectionSidebarContext {
|
|
7
|
+
#private;
|
|
8
|
+
contextMenuIsOpen: rxjs.Observable<boolean>;
|
|
9
|
+
entityType: rxjs.Observable<string | undefined>;
|
|
10
|
+
unique: rxjs.Observable<string | null | undefined>;
|
|
11
|
+
headline: rxjs.Observable<string | undefined>;
|
|
12
|
+
constructor(host: UmbControllerHostElement);
|
|
13
|
+
toggleContextMenu(entityType: string, unique: string | null | undefined, headline: string): void;
|
|
14
|
+
openContextMenu(entityType: string, unique: string | null | undefined, headline: string): void;
|
|
15
|
+
closeContextMenu(): void;
|
|
16
|
+
}
|
|
17
|
+
declare const UMB_SECTION_SIDEBAR_CONTEXT_TOKEN: UmbContextToken<UmbSectionSidebarContext>;
|
|
18
|
+
|
|
19
|
+
declare class UmbSectionContext {
|
|
20
|
+
#private;
|
|
21
|
+
readonly alias: rxjs.Observable<string | undefined>;
|
|
22
|
+
readonly pathname: rxjs.Observable<string | undefined>;
|
|
23
|
+
readonly label: rxjs.Observable<string | undefined>;
|
|
24
|
+
constructor(manifest: ManifestSection);
|
|
25
|
+
setManifest(manifest?: ManifestSection): void;
|
|
26
|
+
}
|
|
27
|
+
declare const UMB_SECTION_CONTEXT_TOKEN: UmbContextToken<UmbSectionContext>;
|
|
28
|
+
|
|
29
|
+
export { UMB_SECTION_CONTEXT_TOKEN, UMB_SECTION_SIDEBAR_CONTEXT_TOKEN, UmbSectionContext, UmbSectionSidebarContext };
|
package/store.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ declare class UmbEntityTreeStore extends UmbStoreBase$1<EntityTreeItemResponseMo
|
|
|
97
97
|
* @return {*}
|
|
98
98
|
* @memberof UmbEntityTreeStore
|
|
99
99
|
*/
|
|
100
|
-
items(ids: Array<string>): rxjs.Observable<EntityTreeItemResponseModel[]>;
|
|
100
|
+
items(ids: Array<string | null>): rxjs.Observable<EntityTreeItemResponseModel[]>;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/**
|
package/tree.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface UmbTreeRootModel {
|
|
2
|
+
type: string;
|
|
3
|
+
name: string;
|
|
4
|
+
hasChildren: boolean;
|
|
5
|
+
icon?: string;
|
|
6
|
+
}
|
|
7
|
+
interface UmbTreeRootEntityModel extends UmbTreeRootModel {
|
|
8
|
+
id: string | null;
|
|
9
|
+
}
|
|
10
|
+
interface UmbTreeRootFileSystemModel extends UmbTreeRootModel {
|
|
11
|
+
path: string | null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { UmbTreeRootEntityModel, UmbTreeRootFileSystemModel, UmbTreeRootModel };
|
|
@@ -675,12 +675,15 @@
|
|
|
675
675
|
},
|
|
676
676
|
"ConditionsEntityAction": {
|
|
677
677
|
"properties": {
|
|
678
|
-
"
|
|
679
|
-
"
|
|
678
|
+
"entityTypes": {
|
|
679
|
+
"items": {
|
|
680
|
+
"type": "string"
|
|
681
|
+
},
|
|
682
|
+
"type": "array"
|
|
680
683
|
}
|
|
681
684
|
},
|
|
682
685
|
"required": [
|
|
683
|
-
"
|
|
686
|
+
"entityTypes"
|
|
684
687
|
],
|
|
685
688
|
"type": "object"
|
|
686
689
|
},
|
|
@@ -753,12 +756,15 @@
|
|
|
753
756
|
},
|
|
754
757
|
"ConditionsTreeItem": {
|
|
755
758
|
"properties": {
|
|
756
|
-
"
|
|
757
|
-
"
|
|
759
|
+
"entityTypes": {
|
|
760
|
+
"items": {
|
|
761
|
+
"type": "string"
|
|
762
|
+
},
|
|
763
|
+
"type": "array"
|
|
758
764
|
}
|
|
759
765
|
},
|
|
760
766
|
"required": [
|
|
761
|
-
"
|
|
767
|
+
"entityTypes"
|
|
762
768
|
],
|
|
763
769
|
"type": "object"
|
|
764
770
|
},
|
|
@@ -3235,7 +3241,7 @@
|
|
|
3235
3241
|
},
|
|
3236
3242
|
"FontFaceSet": {
|
|
3237
3243
|
"properties": {
|
|
3238
|
-
"__@toStringTag@
|
|
3244
|
+
"__@toStringTag@555": {
|
|
3239
3245
|
"type": "string"
|
|
3240
3246
|
},
|
|
3241
3247
|
"onloading": {
|
|
@@ -3267,7 +3273,7 @@
|
|
|
3267
3273
|
}
|
|
3268
3274
|
},
|
|
3269
3275
|
"required": [
|
|
3270
|
-
"__@toStringTag@
|
|
3276
|
+
"__@toStringTag@555",
|
|
3271
3277
|
"onloading",
|
|
3272
3278
|
"onloadingdone",
|
|
3273
3279
|
"onloadingerror",
|
|
@@ -18257,23 +18263,23 @@
|
|
|
18257
18263
|
},
|
|
18258
18264
|
"Promise<FontFaceSet>": {
|
|
18259
18265
|
"properties": {
|
|
18260
|
-
"__@toStringTag@
|
|
18266
|
+
"__@toStringTag@555": {
|
|
18261
18267
|
"type": "string"
|
|
18262
18268
|
}
|
|
18263
18269
|
},
|
|
18264
18270
|
"required": [
|
|
18265
|
-
"__@toStringTag@
|
|
18271
|
+
"__@toStringTag@555"
|
|
18266
18272
|
],
|
|
18267
18273
|
"type": "object"
|
|
18268
18274
|
},
|
|
18269
18275
|
"Promise<ServiceWorkerRegistration>": {
|
|
18270
18276
|
"properties": {
|
|
18271
|
-
"__@toStringTag@
|
|
18277
|
+
"__@toStringTag@555": {
|
|
18272
18278
|
"type": "string"
|
|
18273
18279
|
}
|
|
18274
18280
|
},
|
|
18275
18281
|
"required": [
|
|
18276
|
-
"__@toStringTag@
|
|
18282
|
+
"__@toStringTag@555"
|
|
18277
18283
|
],
|
|
18278
18284
|
"type": "object"
|
|
18279
18285
|
},
|
|
@@ -161,12 +161,12 @@
|
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"name": "umb-document-picker-modal",
|
|
164
|
-
"description": "Properties:\n\n * `_selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
164
|
+
"description": "Properties:\n\n * `_selection` {`(string | null)[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
165
165
|
"attributes": []
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
"name": "umb-document-type-picker-modal",
|
|
169
|
-
"description": "Properties:\n\n * `_selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
169
|
+
"description": "Properties:\n\n * `_selection` {`(string | null)[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
170
170
|
"attributes": []
|
|
171
171
|
},
|
|
172
172
|
{
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
"name": "umb-media-picker-modal",
|
|
269
|
-
"description": "Properties:\n\n * `_selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
269
|
+
"description": "Properties:\n\n * `_selection` {`(string | null)[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
270
270
|
"attributes": []
|
|
271
271
|
},
|
|
272
272
|
{
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
"name": "umb-member-group-workspace-edit",
|
|
299
|
-
"description": "Properties:\n\n * `_memberGroup` - \n\n * `styles` {`CSSResult[]`} - ",
|
|
299
|
+
"description": "Properties:\n\n * `_memberGroup` {`MemberGroupDetails | undefined`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
300
300
|
"attributes": []
|
|
301
301
|
},
|
|
302
302
|
{
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
},
|
|
307
307
|
{
|
|
308
308
|
"name": "umb-workspace-view-member-group-info",
|
|
309
|
-
"description": "Properties:\n\n * `_memberGroup` - \n\n * `styles` {`CSSResult[]`} - ",
|
|
309
|
+
"description": "Properties:\n\n * `_memberGroup` {`MemberGroupDetails | undefined`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
310
310
|
"attributes": []
|
|
311
311
|
},
|
|
312
312
|
{
|
|
@@ -402,16 +402,6 @@
|
|
|
402
402
|
}
|
|
403
403
|
]
|
|
404
404
|
},
|
|
405
|
-
{
|
|
406
|
-
"name": "umb-search-modal",
|
|
407
|
-
"description": "Properties:\n\n * `_input` {`HTMLInputElement`} - \n\n * `_search` {`string`} - \n\n * `_groups` {`SearchGroupItem[]`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
408
|
-
"attributes": []
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
"name": "umb-search-header-app",
|
|
412
|
-
"description": "Properties:\n\n * `_modalContext` - \n\n * `styles` - ",
|
|
413
|
-
"attributes": []
|
|
414
|
-
},
|
|
415
405
|
{
|
|
416
406
|
"name": "umb-dashboard-examine-management",
|
|
417
407
|
"description": "Properties:\n\n * `_routes` {`any[]`} - \n\n * `_routerPath` {`string | undefined`} - \n\n * `_activePath` {`string`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
@@ -427,6 +417,16 @@
|
|
|
427
417
|
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - ",
|
|
428
418
|
"attributes": []
|
|
429
419
|
},
|
|
420
|
+
{
|
|
421
|
+
"name": "umb-search-modal",
|
|
422
|
+
"description": "Properties:\n\n * `_input` {`HTMLInputElement`} - \n\n * `_search` {`string`} - \n\n * `_groups` {`SearchGroupItem[]`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
423
|
+
"attributes": []
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "umb-search-header-app",
|
|
427
|
+
"description": "Properties:\n\n * `_modalContext` - \n\n * `styles` - ",
|
|
428
|
+
"attributes": []
|
|
429
|
+
},
|
|
430
430
|
{
|
|
431
431
|
"name": "umb-dashboard-health-check",
|
|
432
432
|
"description": "Properties:\n\n * `_routes` {`any[]`} - \n\n * `_healthCheckDashboardContext` - ",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
},
|
|
546
546
|
{
|
|
547
547
|
"name": "umb-data-type-picker-modal",
|
|
548
|
-
"description": "Properties:\n\n * `modalHandler` - \n\n * `data` - \n\n * `_selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
548
|
+
"description": "Properties:\n\n * `modalHandler` - \n\n * `data` - \n\n * `_selection` {`(string | null)[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
549
549
|
"attributes": []
|
|
550
550
|
},
|
|
551
551
|
{
|
|
@@ -1601,7 +1601,7 @@
|
|
|
1601
1601
|
},
|
|
1602
1602
|
{
|
|
1603
1603
|
"name": "umb-input-template",
|
|
1604
|
-
"description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - \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 * `selectedIds` {`string[]`} - \n\n * `defaultId` {`string`} - \n\nProperties:\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 * `_selectedIds` {`string[]`} - \n\n * `selectedIds` {`string[]`} - \n\n * `_defaultId` {`string`} - \n\n * `defaultId` {`string`} - \n\n * `_modalContext` - \n\n * `_templateRepository` - \n\n * `_pickedTemplates` {`any[]`} - \n\n * `styles` {`CSSResult[]`} - \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`} - ",
|
|
1604
|
+
"description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - \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 * `selectedIds` {`(string | null)[]`} - \n\n * `defaultId` {`string`} - \n\nProperties:\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 * `_selectedIds` {`(string | null)[]`} - \n\n * `selectedIds` {`(string | null)[]`} - \n\n * `_defaultId` {`string`} - \n\n * `defaultId` {`string`} - \n\n * `_modalContext` - \n\n * `_templateRepository` - \n\n * `_pickedTemplates` {`any[]`} - \n\n * `styles` {`CSSResult[]`} - \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`} - ",
|
|
1605
1605
|
"attributes": [
|
|
1606
1606
|
{
|
|
1607
1607
|
"name": "min",
|
|
@@ -1623,7 +1623,7 @@
|
|
|
1623
1623
|
},
|
|
1624
1624
|
{
|
|
1625
1625
|
"name": "selectedIds",
|
|
1626
|
-
"description": "`selectedIds` {`string[]`} - \n\nProperty: selectedIds"
|
|
1626
|
+
"description": "`selectedIds` {`(string | null)[]`} - \n\nProperty: selectedIds"
|
|
1627
1627
|
},
|
|
1628
1628
|
{
|
|
1629
1629
|
"name": "defaultId",
|
|
@@ -1689,47 +1689,6 @@
|
|
|
1689
1689
|
}
|
|
1690
1690
|
]
|
|
1691
1691
|
},
|
|
1692
|
-
{
|
|
1693
|
-
"name": "umb-input-user-group",
|
|
1694
|
-
"description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `value` {`string[]`} - \n\n * `multiple` {`boolean`} - \n\n * `modalType` - \n\n * `modalSize` {`UUIModalSidebarSize`} - \n\nProperties:\n\n * `_userGroups` {`any[]`} - \n\n * `_userGroupStore` - \n\n * `styles` {`CSSResult[]`} - \n\n * `value` {`string[]`} - \n\n * `multiple` {`boolean`} - \n\n * `modalType` - \n\n * `modalSize` {`UUIModalSidebarSize`} - \n\n * `pickerToken` - \n\n * `_modalContext` - ",
|
|
1695
|
-
"attributes": [
|
|
1696
|
-
{
|
|
1697
|
-
"name": "value",
|
|
1698
|
-
"description": "`value` {`string[]`} - \n\nProperty: value\n\nDefault: "
|
|
1699
|
-
},
|
|
1700
|
-
{
|
|
1701
|
-
"name": "multiple",
|
|
1702
|
-
"description": "`multiple` {`boolean`} - \n\nProperty: multiple\n\nDefault: true",
|
|
1703
|
-
"valueSet": "v"
|
|
1704
|
-
},
|
|
1705
|
-
{
|
|
1706
|
-
"name": "modalType",
|
|
1707
|
-
"description": "`modalType` - \n\nProperty: modalType\n\nDefault: sidebar"
|
|
1708
|
-
},
|
|
1709
|
-
{
|
|
1710
|
-
"name": "modalSize",
|
|
1711
|
-
"description": "`modalSize` {`UUIModalSidebarSize`} - \n\nProperty: modalSize\n\nDefault: small",
|
|
1712
|
-
"values": [
|
|
1713
|
-
{
|
|
1714
|
-
"name": "small"
|
|
1715
|
-
},
|
|
1716
|
-
{
|
|
1717
|
-
"name": "large"
|
|
1718
|
-
},
|
|
1719
|
-
{
|
|
1720
|
-
"name": "medium"
|
|
1721
|
-
},
|
|
1722
|
-
{
|
|
1723
|
-
"name": "full"
|
|
1724
|
-
}
|
|
1725
|
-
]
|
|
1726
|
-
},
|
|
1727
|
-
{
|
|
1728
|
-
"name": "onchange",
|
|
1729
|
-
"description": "`change` {`CustomEvent<unknown>`} - "
|
|
1730
|
-
}
|
|
1731
|
-
]
|
|
1732
|
-
},
|
|
1733
1692
|
{
|
|
1734
1693
|
"name": "umb-menu-item-base",
|
|
1735
1694
|
"description": "Attributes:\n\n * `entity-type` {`string | undefined`} - \n\n * `icon-name` {`string`} - \n\n * `label` {`string`} - \n\n * `has-children` {`boolean`} - \n\nProperties:\n\n * `_entityType` {`string | undefined`} - \n\n * `entityType` {`string | undefined`} - \n\n * `iconName` {`string`} - \n\n * `label` {`string`} - \n\n * `hasChildren` {`boolean`} - \n\n * `_href` {`string | undefined`} - \n\n * `_hasActions` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
@@ -1831,7 +1790,7 @@
|
|
|
1831
1790
|
},
|
|
1832
1791
|
{
|
|
1833
1792
|
"name": "umb-section-sidebar-context-menu",
|
|
1834
|
-
"description": "Properties:\n\n * `_isOpen` {`boolean`} - \n\n * `_entityType` {`string | undefined`} - \n\n * `_unique` {`string | undefined`} - \n\n * `_headline` {`string | undefined`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
1793
|
+
"description": "Properties:\n\n * `_isOpen` {`boolean`} - \n\n * `_entityType` {`string | undefined`} - \n\n * `_unique` {`string | null | undefined`} - \n\n * `_headline` {`string | undefined`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
1835
1794
|
"attributes": []
|
|
1836
1795
|
},
|
|
1837
1796
|
{
|
|
@@ -1951,7 +1910,7 @@
|
|
|
1951
1910
|
},
|
|
1952
1911
|
{
|
|
1953
1912
|
"name": "umb-menu-item-tree",
|
|
1954
|
-
"description": "Attributes:\n\n * `manifest` - \n\nProperties:\n\n * `
|
|
1913
|
+
"description": "Attributes:\n\n * `manifest` - \n\nProperties:\n\n * `manifest` - ",
|
|
1955
1914
|
"attributes": [
|
|
1956
1915
|
{
|
|
1957
1916
|
"name": "manifest",
|
|
@@ -1961,29 +1920,29 @@
|
|
|
1961
1920
|
},
|
|
1962
1921
|
{
|
|
1963
1922
|
"name": "umb-tree",
|
|
1964
|
-
"description": "
|
|
1923
|
+
"description": "Attributes:\n\n * `alias` {`string | undefined`} - \n\n * `selectable` - \n\n * `selection` - \n\n * `multiple` - \n\n * `hide-tree-root` {`boolean`} - \n\nProperties:\n\n * `alias` {`string | undefined`} - \n\n * `selectable` - \n\n * `selection` - \n\n * `multiple` - \n\n * `_hideTreeRoot` {`boolean`} - \n\n * `hideTreeRoot` {`boolean`} - \n\n * `_items` {`any[]`} - \n\n * `_treeRoot` - ",
|
|
1965
1924
|
"attributes": [
|
|
1966
1925
|
{
|
|
1967
1926
|
"name": "alias",
|
|
1968
|
-
"description": "`alias` {`string`} - \n\nProperty: alias"
|
|
1927
|
+
"description": "`alias` {`string | undefined`} - \n\nProperty: alias",
|
|
1928
|
+
"values": []
|
|
1969
1929
|
},
|
|
1970
1930
|
{
|
|
1971
1931
|
"name": "selectable",
|
|
1972
|
-
"description": "`selectable`
|
|
1973
|
-
"valueSet": "v"
|
|
1932
|
+
"description": "`selectable` - \n\nProperty: selectable"
|
|
1974
1933
|
},
|
|
1975
1934
|
{
|
|
1976
1935
|
"name": "selection",
|
|
1977
|
-
"description": "`selection`
|
|
1936
|
+
"description": "`selection` - \n\nProperty: selection"
|
|
1978
1937
|
},
|
|
1979
1938
|
{
|
|
1980
1939
|
"name": "multiple",
|
|
1981
|
-
"description": "`multiple`
|
|
1982
|
-
"valueSet": "v"
|
|
1940
|
+
"description": "`multiple` - \n\nProperty: multiple"
|
|
1983
1941
|
},
|
|
1984
1942
|
{
|
|
1985
|
-
"name": "
|
|
1986
|
-
"description": "`
|
|
1943
|
+
"name": "hide-tree-root",
|
|
1944
|
+
"description": "`hide-tree-root` {`boolean`} - \n\nProperty: hideTreeRoot",
|
|
1945
|
+
"valueSet": "v"
|
|
1987
1946
|
}
|
|
1988
1947
|
]
|
|
1989
1948
|
},
|
|
@@ -2200,7 +2159,7 @@
|
|
|
2200
2159
|
},
|
|
2201
2160
|
{
|
|
2202
2161
|
"name": "umb-template-picker-modal",
|
|
2203
|
-
"description": "Properties:\n\n * `_selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
2162
|
+
"description": "Properties:\n\n * `_selection` {`(string | null)[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
2204
2163
|
"attributes": []
|
|
2205
2164
|
},
|
|
2206
2165
|
{
|
|
@@ -2952,7 +2911,7 @@
|
|
|
2952
2911
|
},
|
|
2953
2912
|
{
|
|
2954
2913
|
"name": "umb-current-user-header-app",
|
|
2955
|
-
"description": "Properties:\n\n * `_currentUser` - \n\n * `_currentUserStore` - \n\n * `_modalContext` - \n\n * `styles` - ",
|
|
2914
|
+
"description": "Properties:\n\n * `_currentUser` {`UmbLoggedInUser | undefined`} - \n\n * `_currentUserStore` - \n\n * `_modalContext` - \n\n * `styles` - ",
|
|
2956
2915
|
"attributes": []
|
|
2957
2916
|
},
|
|
2958
2917
|
{
|
|
@@ -2967,7 +2926,7 @@
|
|
|
2967
2926
|
},
|
|
2968
2927
|
{
|
|
2969
2928
|
"name": "umb-current-user-modal",
|
|
2970
|
-
"description": "Properties:\n\n * `modalHandler` - \n\n * `_currentUser` - \n\n * `_currentUserStore` - \n\n * `styles` - ",
|
|
2929
|
+
"description": "Properties:\n\n * `modalHandler` - \n\n * `_currentUser` {`UmbLoggedInUser | undefined`} - \n\n * `_currentUserStore` - \n\n * `styles` - ",
|
|
2971
2930
|
"attributes": []
|
|
2972
2931
|
},
|
|
2973
2932
|
{
|
|
@@ -2987,7 +2946,7 @@
|
|
|
2987
2946
|
},
|
|
2988
2947
|
{
|
|
2989
2948
|
"name": "umb-user-profile-app-profile",
|
|
2990
|
-
"description": "Properties:\n\n * `_currentUser` - \n\n * `_modalContext` - \n\n * `_currentUserStore` - \n\n * `styles` {`CSSResult[]`} - ",
|
|
2949
|
+
"description": "Properties:\n\n * `_currentUser` {`UmbLoggedInUser | undefined`} - \n\n * `_modalContext` - \n\n * `_currentUserStore` - \n\n * `styles` {`CSSResult[]`} - ",
|
|
2991
2950
|
"attributes": []
|
|
2992
2951
|
},
|
|
2993
2952
|
{
|
|
@@ -2995,9 +2954,50 @@
|
|
|
2995
2954
|
"description": "Properties:\n\n * `_themeAlias` {`string | null`} - \n\n * `_themes` {`any[]`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
2996
2955
|
"attributes": []
|
|
2997
2956
|
},
|
|
2957
|
+
{
|
|
2958
|
+
"name": "umb-input-user-group",
|
|
2959
|
+
"description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `value` {`string[]`} - \n\n * `multiple` {`boolean`} - \n\n * `modalType` - \n\n * `modalSize` {`UUIModalSidebarSize`} - \n\nProperties:\n\n * `_userGroups` {`UserGroupEntity[]`} - \n\n * `_userGroupStore` - \n\n * `styles` {`CSSResult[]`} - \n\n * `value` {`string[]`} - \n\n * `multiple` {`boolean`} - \n\n * `modalType` - \n\n * `modalSize` {`UUIModalSidebarSize`} - \n\n * `pickerToken` - \n\n * `_modalContext` - ",
|
|
2960
|
+
"attributes": [
|
|
2961
|
+
{
|
|
2962
|
+
"name": "value",
|
|
2963
|
+
"description": "`value` {`string[]`} - \n\nProperty: value\n\nDefault: "
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
"name": "multiple",
|
|
2967
|
+
"description": "`multiple` {`boolean`} - \n\nProperty: multiple\n\nDefault: true",
|
|
2968
|
+
"valueSet": "v"
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
"name": "modalType",
|
|
2972
|
+
"description": "`modalType` - \n\nProperty: modalType\n\nDefault: sidebar"
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
"name": "modalSize",
|
|
2976
|
+
"description": "`modalSize` {`UUIModalSidebarSize`} - \n\nProperty: modalSize\n\nDefault: small",
|
|
2977
|
+
"values": [
|
|
2978
|
+
{
|
|
2979
|
+
"name": "small"
|
|
2980
|
+
},
|
|
2981
|
+
{
|
|
2982
|
+
"name": "large"
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
"name": "medium"
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
"name": "full"
|
|
2989
|
+
}
|
|
2990
|
+
]
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
"name": "onchange",
|
|
2994
|
+
"description": "`change` {`CustomEvent<unknown>`} - "
|
|
2995
|
+
}
|
|
2996
|
+
]
|
|
2997
|
+
},
|
|
2998
2998
|
{
|
|
2999
2999
|
"name": "umb-user-group-picker-modal",
|
|
3000
|
-
"description": "Properties:\n\n * `_userGroups` {`
|
|
3000
|
+
"description": "Properties:\n\n * `_userGroups` {`UserGroupDetails[]`} - \n\n * `_userGroupStore` - \n\n * `styles` {`CSSResult[]`} - ",
|
|
3001
3001
|
"attributes": []
|
|
3002
3002
|
},
|
|
3003
3003
|
{
|
|
@@ -3022,7 +3022,7 @@
|
|
|
3022
3022
|
},
|
|
3023
3023
|
{
|
|
3024
3024
|
"name": "umb-user-group-workspace-edit",
|
|
3025
|
-
"description": "Properties:\n\n * `defaultPermissions` {`{ name: string; permissions: { name: string; description: string; value: boolean; }[]; }[]`} - \n\n * `_userStore` - \n\n * `_userGroup` - \n\n * `_userKeys` {`string[] | undefined`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
3025
|
+
"description": "Properties:\n\n * `defaultPermissions` {`{ name: string; permissions: { name: string; description: string; value: boolean; }[]; }[]`} - \n\n * `_userStore` - \n\n * `_userGroup` {`UserGroupDetails | undefined`} - \n\n * `_userKeys` {`string[] | undefined`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
3026
3026
|
"attributes": []
|
|
3027
3027
|
},
|
|
3028
3028
|
{
|
|
@@ -3032,7 +3032,7 @@
|
|
|
3032
3032
|
},
|
|
3033
3033
|
{
|
|
3034
3034
|
"name": "umb-workspace-view-user-groups",
|
|
3035
|
-
"description": "Properties:\n\n * `_userGroups` {`
|
|
3035
|
+
"description": "Properties:\n\n * `_userGroups` {`UserGroupDetails[]`} - \n\n * `_tableConfig` {`UmbTableConfig`} - \n\n * `_tableColumns` {`UmbTableColumn[]`} - \n\n * `_tableItems` {`UmbTableItem[]`} - \n\n * `_selection` {`string[]`} - \n\n * `_userGroupStore` - \n\n * `styles` {`CSSResult[]`} - ",
|
|
3036
3036
|
"attributes": []
|
|
3037
3037
|
},
|
|
3038
3038
|
{
|
package/workspace.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
3
|
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
3
4
|
import { UmbWorkspaceContextInterface as UmbWorkspaceContextInterface$1 } from '@umbraco-cms/backoffice/workspace';
|
|
5
|
+
import { UmbEntityBase } from '@umbraco-cms/backoffice/models';
|
|
4
6
|
|
|
5
7
|
interface UmbWorkspaceContextInterface<DataType = unknown> {
|
|
6
8
|
host: UmbControllerHostElement;
|
|
@@ -21,6 +23,21 @@ interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWo
|
|
|
21
23
|
save(): Promise<void>;
|
|
22
24
|
}
|
|
23
25
|
|
|
26
|
+
declare abstract class UmbWorkspaceContext<T, EntityType extends UmbEntityBase> implements UmbEntityWorkspaceContextInterface<EntityType> {
|
|
27
|
+
#private;
|
|
28
|
+
host: UmbControllerHostElement;
|
|
29
|
+
repository: T;
|
|
30
|
+
isNew: rxjs.Observable<boolean | undefined>;
|
|
31
|
+
constructor(host: UmbControllerHostElement, repository: T);
|
|
32
|
+
getIsNew(): boolean | undefined;
|
|
33
|
+
setIsNew(isNew: boolean): void;
|
|
34
|
+
abstract getEntityId(): string | undefined;
|
|
35
|
+
abstract getEntityType(): string;
|
|
36
|
+
abstract getData(): EntityType | undefined;
|
|
37
|
+
abstract save(): Promise<void>;
|
|
38
|
+
abstract destroy(): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
24
41
|
interface UmbWorkspaceAction<WorkspaceType = unknown> {
|
|
25
42
|
host: UmbControllerHostElement;
|
|
26
43
|
workspaceContext?: WorkspaceType;
|
|
@@ -38,4 +55,4 @@ declare class UmbSaveWorkspaceAction extends UmbWorkspaceActionBase<UmbWorkspace
|
|
|
38
55
|
execute(): Promise<void>;
|
|
39
56
|
}
|
|
40
57
|
|
|
41
|
-
export { UmbEntityWorkspaceContextInterface, UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContextInterface };
|
|
58
|
+
export { UmbEntityWorkspaceContextInterface, UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContext, UmbWorkspaceContextInterface };
|