@umbraco-cms/backoffice 1.0.0-next.d01c4274 → 1.0.0-next.d46c6b3e

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/context-api.d.ts CHANGED
@@ -165,7 +165,7 @@ declare class UmbContextProvideEventImplementation extends Event implements UmbC
165
165
  declare const isUmbContextProvideEventType: (event: Event) => event is UmbContextProvideEventImplementation;
166
166
 
167
167
  interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWorkspaceContextInterface<EntityType> {
168
- getEntityKey(): string | undefined;
168
+ getEntityId(): string | undefined;
169
169
  getEntityType(): string;
170
170
  save(): Promise<void>;
171
171
  }
package/controller.d.ts CHANGED
@@ -11,6 +11,7 @@ declare class UmbControllerHostElement extends HTMLElement {
11
11
  hasController(controller: UmbControllerInterface): boolean;
12
12
  getControllers(filterMethod: (ctrl: UmbControllerInterface) => boolean): UmbControllerInterface[];
13
13
  addController(controller: UmbControllerInterface): void;
14
+ removeControllerByUnique(unique: UmbControllerInterface['unique']): void;
14
15
  removeController(controller: UmbControllerInterface): void;
15
16
  }
16
17
  /**
@@ -20,7 +21,7 @@ declare class UmbControllerHostElement extends HTMLElement {
20
21
  * @param {Object} superClass - superclass to be extended.
21
22
  * @mixin
22
23
  */
23
- declare const UmbControllerHostMixin: <T extends HTMLElementConstructor<HTMLElement>>(superClass: T) => HTMLElementConstructor<UmbControllerHostElement> & T;
24
+ declare const UmbControllerHostMixin: <T extends HTMLElementConstructor>(superClass: T) => HTMLElementConstructor<UmbControllerHostElement> & T;
24
25
  declare global {
25
26
  interface HTMLElement {
26
27
  connectedCallback(): void;
@@ -139,6 +139,129 @@
139
139
  }
140
140
  ]
141
141
  },
142
+ {
143
+ "name": "umb-document-type-workspace-view-edit-properties",
144
+ "path": "./src/backoffice/documents/document-types/workspace/views/design/document-type-workspace-view-edit-properties.element.ts",
145
+ "attributes": [
146
+ {
147
+ "name": "container-name",
148
+ "type": "string | undefined"
149
+ },
150
+ {
151
+ "name": "container-type",
152
+ "type": "PropertyContainerTypes | undefined"
153
+ }
154
+ ],
155
+ "properties": [
156
+ {
157
+ "name": "containerId",
158
+ "type": "string | undefined"
159
+ },
160
+ {
161
+ "name": "containerName",
162
+ "attribute": "container-name",
163
+ "type": "string | undefined"
164
+ },
165
+ {
166
+ "name": "containerType",
167
+ "attribute": "container-type",
168
+ "type": "PropertyContainerTypes | undefined"
169
+ },
170
+ {
171
+ "name": "styles",
172
+ "type": "CSSResult[]",
173
+ "default": "[\"UUITextStyles\",null]"
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ "name": "document-type-workspace-view-edit-property",
179
+ "path": "./src/backoffice/documents/document-types/workspace/views/design/document-type-workspace-view-edit-property.element.ts",
180
+ "attributes": [
181
+ {
182
+ "name": "property",
183
+ "description": "Property, the data object for the property.",
184
+ "type": "string",
185
+ "default": "\"''\""
186
+ }
187
+ ],
188
+ "properties": [
189
+ {
190
+ "name": "property",
191
+ "attribute": "property",
192
+ "description": "Property, the data object for the property.",
193
+ "type": "string",
194
+ "default": "\"''\""
195
+ },
196
+ {
197
+ "name": "styles",
198
+ "type": "CSSResult[]",
199
+ "default": "[\"UUITextStyles\",null]"
200
+ }
201
+ ],
202
+ "events": [
203
+ {
204
+ "name": "partial-property-update"
205
+ }
206
+ ],
207
+ "slots": [
208
+ {
209
+ "name": "editor",
210
+ "description": "Slot for rendering the Property Editor"
211
+ }
212
+ ]
213
+ },
214
+ {
215
+ "name": "umb-document-type-workspace-view-edit-tab",
216
+ "path": "./src/backoffice/documents/document-types/workspace/views/design/document-type-workspace-view-edit-tab.element.ts",
217
+ "attributes": [
218
+ {
219
+ "name": "ownerTabId",
220
+ "type": "string | undefined"
221
+ },
222
+ {
223
+ "name": "tabName",
224
+ "type": "string | undefined"
225
+ },
226
+ {
227
+ "name": "noTabName",
228
+ "type": "boolean"
229
+ }
230
+ ],
231
+ "properties": [
232
+ {
233
+ "name": "styles",
234
+ "type": "CSSResult[]",
235
+ "default": "[\"UUITextStyles\",null]"
236
+ },
237
+ {
238
+ "name": "ownerTabId",
239
+ "attribute": "ownerTabId",
240
+ "type": "string | undefined"
241
+ },
242
+ {
243
+ "name": "tabName",
244
+ "attribute": "tabName",
245
+ "type": "string | undefined"
246
+ },
247
+ {
248
+ "name": "noTabName",
249
+ "attribute": "noTabName",
250
+ "type": "boolean"
251
+ }
252
+ ]
253
+ },
254
+ {
255
+ "name": "umb-document-type-workspace-view-edit",
256
+ "path": "./src/backoffice/documents/document-types/workspace/views/design/document-type-workspace-view-edit.element.ts",
257
+ "properties": [
258
+ {
259
+ "name": "styles",
260
+ "type": "CSSResult[]",
261
+ "default": "[\"UUITextStyles\",null]"
262
+ }
263
+ ]
264
+ },
142
265
  {
143
266
  "name": "umb-document-type-workspace-view-details",
144
267
  "path": "./src/backoffice/documents/document-types/workspace/views/details/document-type-workspace-view-details.element.ts",
@@ -299,7 +422,7 @@
299
422
  },
300
423
  {
301
424
  "name": "container-type",
302
- "type": "\"Group\" | \"Tab\" | undefined"
425
+ "type": "PropertyContainerTypes | undefined"
303
426
  }
304
427
  ],
305
428
  "properties": [
@@ -316,7 +439,7 @@
316
439
  {
317
440
  "name": "containerType",
318
441
  "attribute": "container-type",
319
- "type": "\"Group\" | \"Tab\" | undefined"
442
+ "type": "PropertyContainerTypes | undefined"
320
443
  }
321
444
  ]
322
445
  },
@@ -591,7 +714,7 @@
591
714
  "path": "./src/backoffice/packages/package-builder/workspace/workspace-package-builder.element.ts",
592
715
  "attributes": [
593
716
  {
594
- "name": "entityKey",
717
+ "name": "entityId",
595
718
  "type": "string | undefined"
596
719
  }
597
720
  ],
@@ -602,8 +725,8 @@
602
725
  "default": "[\"UUITextStyles\",null]"
603
726
  },
604
727
  {
605
- "name": "entityKey",
606
- "attribute": "entityKey",
728
+ "name": "entityId",
729
+ "attribute": "entityId",
607
730
  "type": "string | undefined"
608
731
  }
609
732
  ]
@@ -613,7 +736,7 @@
613
736
  "path": "./src/backoffice/packages/package-repo/workspace/workspace-package.element.ts",
614
737
  "attributes": [
615
738
  {
616
- "name": "entityKey",
739
+ "name": "entityId",
617
740
  "type": "string | undefined"
618
741
  }
619
742
  ],
@@ -624,8 +747,8 @@
624
747
  "default": "[\"UUITextStyles\",null]"
625
748
  },
626
749
  {
627
- "name": "entityKey",
628
- "attribute": "entityKey",
750
+ "name": "entityId",
751
+ "attribute": "entityId",
629
752
  "type": "string | undefined"
630
753
  }
631
754
  ]
@@ -944,13 +1067,27 @@
944
1067
  ]
945
1068
  },
946
1069
  {
947
- "name": "umb-create-data-type-modal",
948
- "path": "./src/backoffice/settings/data-types/entity-actions/create/modal/create-data-type-modal.element.ts",
1070
+ "name": "umb-data-type-create-options-modal",
1071
+ "path": "./src/backoffice/settings/data-types/entity-actions/create/modal/data-type-create-options-modal.element.ts",
1072
+ "attributes": [
1073
+ {
1074
+ "name": "data",
1075
+ "type": "UmbDataTypeCreateOptionsModalData | undefined"
1076
+ }
1077
+ ],
949
1078
  "properties": [
950
1079
  {
951
1080
  "name": "styles",
952
1081
  "type": "CSSResult[]",
953
1082
  "default": "[\"UUITextStyles\"]"
1083
+ },
1084
+ {
1085
+ "name": "modalHandler"
1086
+ },
1087
+ {
1088
+ "name": "data",
1089
+ "attribute": "data",
1090
+ "type": "UmbDataTypeCreateOptionsModalData | undefined"
954
1091
  }
955
1092
  ]
956
1093
  },
@@ -1088,7 +1225,7 @@
1088
1225
  ]
1089
1226
  },
1090
1227
  {
1091
- "name": "umb-language-workspace-thingy",
1228
+ "name": "umb-language-workspace-edit",
1092
1229
  "path": "./src/backoffice/settings/languages/workspace/language/language-workspace-edit.element.ts",
1093
1230
  "properties": [
1094
1231
  {
@@ -1165,7 +1302,7 @@
1165
1302
  {
1166
1303
  "name": "levelMap",
1167
1304
  "type": "Record<any, LevelMapStyles>",
1168
- "default": "{\"Verbose\":{\"look\":\"secondary\"},\"Debug\":{\"look\":\"default\",\"style\":\"background-color: var(--umb-log-viewer-debug-color); color: var(--uui-color-surface)\"},\"Information\":{\"look\":\"primary\",\"color\":\"positive\"},\"Warning\":{\"look\":\"primary\",\"color\":\"warning\"},\"Error\":{\"look\":\"primary\",\"color\":\"danger\"},\"Fatal\":{\"look\":\"primary\"}}"
1305
+ "default": "{\"Verbose\":{\"look\":\"secondary\"},\"Debug\":{\"look\":\"default\",\"style\":\"background-color: var(--umb-log-viewer-debug-color); color: var(--uui-color-surface)\"},\"Information\":{\"look\":\"primary\",\"color\":\"positive\"},\"Warning\":{\"look\":\"primary\",\"color\":\"warning\"},\"Error\":{\"look\":\"primary\",\"color\":\"danger\"},\"Fatal\":{\"look\":\"primary\",\"style\":\"background-color: var(--umb-log-viewer-fatal-color); color: var(--uui-color-surface)\"}}"
1169
1306
  }
1170
1307
  ]
1171
1308
  },
@@ -1268,7 +1405,7 @@
1268
1405
  {
1269
1406
  "name": "setLogLevelDebounce",
1270
1407
  "type": "DebouncedFunc<() => void>",
1271
- "default": "\"_.debounce(this.#setLogLevel, 300)\""
1408
+ "default": "\"debounce(this.#setLogLevel, 300)\""
1272
1409
  }
1273
1410
  ]
1274
1411
  },
@@ -1384,6 +1521,17 @@
1384
1521
  }
1385
1522
  ]
1386
1523
  },
1524
+ {
1525
+ "name": "umb-log-viewer-save-search-modal",
1526
+ "path": "./src/backoffice/settings/logviewer/workspace/views/search/components/log-viewer-search-input-modal.element.ts",
1527
+ "properties": [
1528
+ {
1529
+ "name": "styles",
1530
+ "type": "CSSResult[]",
1531
+ "default": "[\"UUITextStyles\",null]"
1532
+ }
1533
+ ]
1534
+ },
1387
1535
  {
1388
1536
  "name": "umb-log-viewer-search-input",
1389
1537
  "path": "./src/backoffice/settings/logviewer/workspace/views/search/components/log-viewer-search-input.element.ts",
@@ -1739,7 +1887,7 @@
1739
1887
  ]
1740
1888
  },
1741
1889
  {
1742
- "name": "uui-code-block",
1890
+ "name": "umb-code-block",
1743
1891
  "path": "./src/backoffice/shared/components/code-block/code-block.element.ts",
1744
1892
  "description": "A simple styled box for showing code-based error messages.",
1745
1893
  "properties": [
@@ -2625,7 +2773,7 @@
2625
2773
  "default": "\"\""
2626
2774
  },
2627
2775
  {
2628
- "name": "selectedKeys",
2776
+ "name": "selectedIds",
2629
2777
  "type": "string[]"
2630
2778
  },
2631
2779
  {
@@ -2692,7 +2840,7 @@
2692
2840
  "default": "[\"UUITextStyles\",null]"
2693
2841
  },
2694
2842
  {
2695
- "name": "selectedKeys",
2843
+ "name": "selectedIds",
2696
2844
  "type": "string[]"
2697
2845
  },
2698
2846
  {
@@ -3010,7 +3158,7 @@
3010
3158
  "default": "\"\""
3011
3159
  },
3012
3160
  {
3013
- "name": "selectedKeys",
3161
+ "name": "selectedIds",
3014
3162
  "type": "string[]"
3015
3163
  },
3016
3164
  {
@@ -3826,6 +3974,101 @@
3826
3974
  }
3827
3975
  ]
3828
3976
  },
3977
+ {
3978
+ "name": "umb-input-upload-field",
3979
+ "path": "./src/backoffice/shared/components/input-upload-field/input-upload-field.element.ts",
3980
+ "attributes": [
3981
+ {
3982
+ "name": "keys",
3983
+ "type": "Array<String>",
3984
+ "default": "\"[]\""
3985
+ },
3986
+ {
3987
+ "name": "fileExtensions",
3988
+ "type": "Array<String>",
3989
+ "default": "\"undefined\""
3990
+ },
3991
+ {
3992
+ "name": "multiple",
3993
+ "type": "Boolean",
3994
+ "default": "\"false\""
3995
+ }
3996
+ ],
3997
+ "properties": [
3998
+ {
3999
+ "name": "styles",
4000
+ "type": "CSSResult[]",
4001
+ "default": "[\"UUITextStyles\",null]"
4002
+ },
4003
+ {
4004
+ "name": "keys",
4005
+ "attribute": "keys",
4006
+ "type": "Array<String>",
4007
+ "default": "\"[]\""
4008
+ },
4009
+ {
4010
+ "name": "fileExtensions",
4011
+ "attribute": "fileExtensions",
4012
+ "type": "Array<String>",
4013
+ "default": "\"undefined\""
4014
+ },
4015
+ {
4016
+ "name": "multiple",
4017
+ "attribute": "multiple",
4018
+ "type": "Boolean",
4019
+ "default": "\"false\""
4020
+ },
4021
+ {
4022
+ "name": "extensions",
4023
+ "type": "string[] | undefined"
4024
+ },
4025
+ {
4026
+ "name": "formAssociated",
4027
+ "type": "boolean"
4028
+ },
4029
+ {
4030
+ "name": "value",
4031
+ "type": "FormDataEntryValue | FormData"
4032
+ },
4033
+ {
4034
+ "name": "name",
4035
+ "type": "string"
4036
+ },
4037
+ {
4038
+ "name": "validationMessage",
4039
+ "type": "string"
4040
+ },
4041
+ {
4042
+ "name": "validity",
4043
+ "type": "ValidityState"
4044
+ },
4045
+ {
4046
+ "name": "pristine",
4047
+ "type": "boolean"
4048
+ },
4049
+ {
4050
+ "name": "required",
4051
+ "type": "boolean"
4052
+ },
4053
+ {
4054
+ "name": "requiredMessage",
4055
+ "type": "string"
4056
+ },
4057
+ {
4058
+ "name": "error",
4059
+ "type": "boolean"
4060
+ },
4061
+ {
4062
+ "name": "errorMessage",
4063
+ "type": "string"
4064
+ }
4065
+ ],
4066
+ "events": [
4067
+ {
4068
+ "name": "change"
4069
+ }
4070
+ ]
4071
+ },
3829
4072
  {
3830
4073
  "name": "umb-input-user-group",
3831
4074
  "path": "./src/backoffice/shared/components/input-user-group/input-user-group.element.ts",
@@ -4348,7 +4591,7 @@
4348
4591
  "default": "false"
4349
4592
  },
4350
4593
  {
4351
- "name": "key",
4594
+ "name": "id",
4352
4595
  "type": "string"
4353
4596
  },
4354
4597
  {
@@ -4358,11 +4601,6 @@
4358
4601
  }
4359
4602
  ],
4360
4603
  "properties": [
4361
- {
4362
- "name": "styles",
4363
- "type": "CSSResult[]",
4364
- "default": "[\"UUITextStyles\",null]"
4365
- },
4366
4604
  {
4367
4605
  "name": "default",
4368
4606
  "attribute": "default",
@@ -4370,10 +4608,15 @@
4370
4608
  "default": "false"
4371
4609
  },
4372
4610
  {
4373
- "name": "key",
4374
- "attribute": "key",
4611
+ "name": "id",
4612
+ "attribute": "id",
4375
4613
  "type": "string"
4376
4614
  },
4615
+ {
4616
+ "name": "styles",
4617
+ "type": "CSSResult[]",
4618
+ "default": "[\"UUITextStyles\",null]"
4619
+ },
4377
4620
  {
4378
4621
  "name": "formAssociated",
4379
4622
  "type": "boolean"
@@ -4850,6 +5093,10 @@
4850
5093
  "name": "icon",
4851
5094
  "description": "Slot for icon"
4852
5095
  },
5096
+ {
5097
+ "name": "header",
5098
+ "description": "Slot for workspace header"
5099
+ },
4853
5100
  {
4854
5101
  "name": "name",
4855
5102
  "description": "Slot for name"
@@ -4898,11 +5145,6 @@
4898
5145
  }
4899
5146
  ],
4900
5147
  "properties": [
4901
- {
4902
- "name": "styles",
4903
- "type": "CSSResult[]",
4904
- "default": "[\"UUITextStyles\",null]"
4905
- },
4906
5148
  {
4907
5149
  "name": "alias",
4908
5150
  "attribute": "alias",
@@ -4930,6 +5172,11 @@
4930
5172
  "description": "Description: render a description underneath the label.",
4931
5173
  "type": "string",
4932
5174
  "default": "\"''\""
5175
+ },
5176
+ {
5177
+ "name": "styles",
5178
+ "type": "CSSResult[]",
5179
+ "default": "[\"UUITextStyles\",null]"
4933
5180
  }
4934
5181
  ],
4935
5182
  "slots": [
@@ -6902,8 +7149,12 @@
6902
7149
  },
6903
7150
  {
6904
7151
  "name": "config",
6905
- "type": "never[]",
6906
- "default": "[]"
7152
+ "type": "array"
7153
+ }
7154
+ ],
7155
+ "events": [
7156
+ {
7157
+ "name": "property-value-change"
6907
7158
  }
6908
7159
  ]
6909
7160
  },
@@ -7516,7 +7767,7 @@
7516
7767
  ]
7517
7768
  },
7518
7769
  {
7519
- "name": "story-modal-context-example",
7770
+ "name": "umb-story-modal-context-example",
7520
7771
  "path": "./src/core/modal/stories/story-modal-service-example.element.ts",
7521
7772
  "attributes": [
7522
7773
  {
@@ -7563,7 +7814,7 @@
7563
7814
  ]
7564
7815
  },
7565
7816
  {
7566
- "name": "story-notification-default-example",
7817
+ "name": "umb-story-notification-default-example",
7567
7818
  "path": "./src/core/notification/stories/story-notification-default-example.element.ts"
7568
7819
  },
7569
7820
  {
package/element.d.ts CHANGED
@@ -13,6 +13,6 @@ declare class UmbElementMixinInterface extends UmbControllerHostElement {
13
13
  consumeContext<R = unknown>(alias: string | UmbContextToken<R>, callback: UmbContextCallback<R>): UmbContextConsumerController<R>;
14
14
  consumeAllContexts(contextAliases: string[], callback: (_instances: ResolvedContexts) => void): void;
15
15
  }
16
- declare const UmbElementMixin: <T extends HTMLElementConstructor<HTMLElement>>(superClass: T) => HTMLElementConstructor<UmbElementMixinInterface> & T;
16
+ declare const UmbElementMixin: <T extends HTMLElementConstructor>(superClass: T) => HTMLElementConstructor<UmbElementMixinInterface> & T;
17
17
 
18
18
  export { UmbElementMixin, UmbElementMixinInterface };
@@ -1,6 +1,7 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { ManifestTypes, ManifestKind, ManifestTypeMap, ManifestBase, SpecificManifestTypeOrManifestBase, ManifestElement, ManifestElementWithElementName, ManifestClass } from './extensions-registry';
3
3
  import { UmbContextToken } from './context-api';
4
+ import { PageComponent } from './router';
4
5
  import { UmbControllerHostElement } from './controller';
5
6
 
6
7
  declare class UmbExtensionRegistry {
@@ -22,7 +23,7 @@ declare class UmbExtensionRegistry {
22
23
  }
23
24
  declare const UMB_EXTENSION_REGISTRY_TOKEN: UmbContextToken<UmbExtensionRegistry>;
24
25
 
25
- declare function createExtensionElement(manifest: ManifestElement): Promise<HTMLElement | undefined>;
26
+ declare function createExtensionElement(manifest: ManifestElement): Promise<PageComponent>;
26
27
 
27
28
  declare function hasDefaultExport<ConstructorType>(object: unknown): object is {
28
29
  default: ConstructorType;