@umbraco-cms/backoffice 1.0.0-next.ce55cd35 → 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.
@@ -216,7 +216,7 @@
216
216
  "path": "./src/backoffice/documents/document-types/workspace/views/design/document-type-workspace-view-edit-tab.element.ts",
217
217
  "attributes": [
218
218
  {
219
- "name": "ownerTabKey",
219
+ "name": "ownerTabId",
220
220
  "type": "string | undefined"
221
221
  },
222
222
  {
@@ -235,8 +235,8 @@
235
235
  "default": "[\"UUITextStyles\",null]"
236
236
  },
237
237
  {
238
- "name": "ownerTabKey",
239
- "attribute": "ownerTabKey",
238
+ "name": "ownerTabId",
239
+ "attribute": "ownerTabId",
240
240
  "type": "string | undefined"
241
241
  },
242
242
  {
@@ -714,7 +714,7 @@
714
714
  "path": "./src/backoffice/packages/package-builder/workspace/workspace-package-builder.element.ts",
715
715
  "attributes": [
716
716
  {
717
- "name": "entityKey",
717
+ "name": "entityId",
718
718
  "type": "string | undefined"
719
719
  }
720
720
  ],
@@ -725,8 +725,8 @@
725
725
  "default": "[\"UUITextStyles\",null]"
726
726
  },
727
727
  {
728
- "name": "entityKey",
729
- "attribute": "entityKey",
728
+ "name": "entityId",
729
+ "attribute": "entityId",
730
730
  "type": "string | undefined"
731
731
  }
732
732
  ]
@@ -736,7 +736,7 @@
736
736
  "path": "./src/backoffice/packages/package-repo/workspace/workspace-package.element.ts",
737
737
  "attributes": [
738
738
  {
739
- "name": "entityKey",
739
+ "name": "entityId",
740
740
  "type": "string | undefined"
741
741
  }
742
742
  ],
@@ -747,8 +747,8 @@
747
747
  "default": "[\"UUITextStyles\",null]"
748
748
  },
749
749
  {
750
- "name": "entityKey",
751
- "attribute": "entityKey",
750
+ "name": "entityId",
751
+ "attribute": "entityId",
752
752
  "type": "string | undefined"
753
753
  }
754
754
  ]
@@ -1067,13 +1067,27 @@
1067
1067
  ]
1068
1068
  },
1069
1069
  {
1070
- "name": "umb-create-data-type-modal",
1071
- "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
+ ],
1072
1078
  "properties": [
1073
1079
  {
1074
1080
  "name": "styles",
1075
1081
  "type": "CSSResult[]",
1076
1082
  "default": "[\"UUITextStyles\"]"
1083
+ },
1084
+ {
1085
+ "name": "modalHandler"
1086
+ },
1087
+ {
1088
+ "name": "data",
1089
+ "attribute": "data",
1090
+ "type": "UmbDataTypeCreateOptionsModalData | undefined"
1077
1091
  }
1078
1092
  ]
1079
1093
  },
@@ -1288,7 +1302,7 @@
1288
1302
  {
1289
1303
  "name": "levelMap",
1290
1304
  "type": "Record<any, LevelMapStyles>",
1291
- "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)\"}}"
1292
1306
  }
1293
1307
  ]
1294
1308
  },
@@ -1391,7 +1405,7 @@
1391
1405
  {
1392
1406
  "name": "setLogLevelDebounce",
1393
1407
  "type": "DebouncedFunc<() => void>",
1394
- "default": "\"_.debounce(this.#setLogLevel, 300)\""
1408
+ "default": "\"debounce(this.#setLogLevel, 300)\""
1395
1409
  }
1396
1410
  ]
1397
1411
  },
@@ -1507,6 +1521,17 @@
1507
1521
  }
1508
1522
  ]
1509
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
+ },
1510
1535
  {
1511
1536
  "name": "umb-log-viewer-search-input",
1512
1537
  "path": "./src/backoffice/settings/logviewer/workspace/views/search/components/log-viewer-search-input.element.ts",
@@ -1862,7 +1887,7 @@
1862
1887
  ]
1863
1888
  },
1864
1889
  {
1865
- "name": "uui-code-block",
1890
+ "name": "umb-code-block",
1866
1891
  "path": "./src/backoffice/shared/components/code-block/code-block.element.ts",
1867
1892
  "description": "A simple styled box for showing code-based error messages.",
1868
1893
  "properties": [
@@ -2748,7 +2773,7 @@
2748
2773
  "default": "\"\""
2749
2774
  },
2750
2775
  {
2751
- "name": "selectedKeys",
2776
+ "name": "selectedIds",
2752
2777
  "type": "string[]"
2753
2778
  },
2754
2779
  {
@@ -2815,7 +2840,7 @@
2815
2840
  "default": "[\"UUITextStyles\",null]"
2816
2841
  },
2817
2842
  {
2818
- "name": "selectedKeys",
2843
+ "name": "selectedIds",
2819
2844
  "type": "string[]"
2820
2845
  },
2821
2846
  {
@@ -3133,7 +3158,7 @@
3133
3158
  "default": "\"\""
3134
3159
  },
3135
3160
  {
3136
- "name": "selectedKeys",
3161
+ "name": "selectedIds",
3137
3162
  "type": "string[]"
3138
3163
  },
3139
3164
  {
@@ -7742,7 +7767,7 @@
7742
7767
  ]
7743
7768
  },
7744
7769
  {
7745
- "name": "story-modal-context-example",
7770
+ "name": "umb-story-modal-context-example",
7746
7771
  "path": "./src/core/modal/stories/story-modal-service-example.element.ts",
7747
7772
  "attributes": [
7748
7773
  {
@@ -7789,7 +7814,7 @@
7789
7814
  ]
7790
7815
  },
7791
7816
  {
7792
- "name": "story-notification-default-example",
7817
+ "name": "umb-story-notification-default-example",
7793
7818
  "path": "./src/core/notification/stories/story-notification-default-example.element.ts"
7794
7819
  },
7795
7820
  {
@@ -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;
package/modal.d.ts CHANGED
@@ -6,6 +6,7 @@ import { LitElement, TemplateResult } from 'lit';
6
6
  import { UUIModalDialogElement, UUIModalSidebarElement, UUIModalSidebarSize } from '@umbraco-ui/uui';
7
7
  import { UmbControllerHostElement, UmbControllerInterface } from './controller';
8
8
  import { UmbContextToken } from './context-api';
9
+ import { Params } from './router';
9
10
  import { UmbModalToken as UmbModalToken$1, UmbModalConfig as UmbModalConfig$1, UmbPickerModalData as UmbPickerModalData$1 } from './modal';
10
11
  import { LanguageResponseModel, FolderReponseModel } from './backend-api';
11
12
  import { UserDetails } from './models';
@@ -126,316 +127,6 @@ declare class UmbModalContext {
126
127
  }
127
128
  declare const UMB_MODAL_CONTEXT_TOKEN: UmbContextToken<UmbModalContext>;
128
129
 
129
- interface IRouterSlot<D = any, P = any> extends HTMLElement {
130
- readonly route: IRoute<D> | null;
131
- readonly isRoot: boolean;
132
- readonly fragments: IPathFragments | null;
133
- readonly params: Params | null;
134
- readonly match: IRouteMatch<D> | null;
135
- routes: IRoute<D>[];
136
- add: ((routes: IRoute<D>[], navigate?: boolean) => void);
137
- clear: (() => void);
138
- render: (() => Promise<void>);
139
- constructAbsolutePath: ((path: PathFragment) => string);
140
- parent: IRouterSlot<P> | null | undefined;
141
- queryParentRouterSlot: (() => IRouterSlot<P> | null);
142
- }
143
- type IRoutingInfo<D = any, P = any> = {
144
- slot: IRouterSlot<D, P>;
145
- match: IRouteMatch<D>;
146
- };
147
- type CustomResolver<D = any, P = any> = ((info: IRoutingInfo<D>) => boolean | void | Promise<boolean> | Promise<void>);
148
- type Guard<D = any, P = any> = ((info: IRoutingInfo<D, P>) => boolean | Promise<boolean>);
149
- type PageComponent = HTMLElement;
150
- type ModuleResolver = Promise<{
151
- default: any;
152
- }>;
153
- type Class<T extends PageComponent = PageComponent> = {
154
- new (...args: any[]): T;
155
- };
156
- type Setup<D = any> = ((component: PageComponent, info: IRoutingInfo<D>) => void);
157
- type PathMatch = "prefix" | "suffix" | "full" | "fuzzy";
158
- /**
159
- * The base route interface.
160
- * D = the data type of the data
161
- */
162
- interface IRouteBase<D = any> {
163
- path: PathFragment;
164
- data?: D;
165
- guards?: Guard[];
166
- pathMatch?: PathMatch;
167
- }
168
- /**
169
- * Route type used for redirection.
170
- */
171
- interface IRedirectRoute<D = any> extends IRouteBase<D> {
172
- redirectTo: string;
173
- preserveQuery?: boolean;
174
- }
175
- /**
176
- * Route type used to resolve and stamp components.
177
- */
178
- interface IComponentRoute<D = any> extends IRouteBase<D> {
179
- component: Class | ModuleResolver | PageComponent | (() => Class) | (() => PageComponent) | (() => ModuleResolver);
180
- setup?: Setup;
181
- }
182
- /**
183
- * Route type used to take control of how the route should resolve.
184
- */
185
- interface IResolverRoute<D = any> extends IRouteBase<D> {
186
- resolve: CustomResolver;
187
- }
188
- type IRoute<D = any> = IRedirectRoute<D> | IComponentRoute<D> | IResolverRoute<D>;
189
- type PathFragment = string;
190
- type IPathFragments = {
191
- consumed: PathFragment;
192
- rest: PathFragment;
193
- };
194
- interface IRouteMatch<D = any> {
195
- route: IRoute<D>;
196
- params: Params;
197
- fragments: IPathFragments;
198
- match: RegExpMatchArray;
199
- }
200
- type PushStateEvent = CustomEvent<null>;
201
- type ReplaceStateEvent = CustomEvent<null>;
202
- type ChangeStateEvent = CustomEvent<null>;
203
- type WillChangeStateEvent = CustomEvent<{
204
- url?: string | null;
205
- eventName: GlobalRouterEvent;
206
- }>;
207
- type NavigationStartEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
208
- type NavigationSuccessEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
209
- type NavigationCancelEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
210
- type NavigationErrorEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
211
- type NavigationEndEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
212
- type Params = {
213
- [key: string]: string;
214
- };
215
- /**
216
- * History related events.
217
- */
218
- type GlobalRouterEvent = "pushstate" | "replacestate" | "popstate" | "changestate" | "willchangestate" | "navigationstart" | "navigationcancel" | "navigationerror" | "navigationsuccess" | "navigationend";
219
- declare global {
220
- interface GlobalEventHandlersEventMap {
221
- "pushstate": PushStateEvent;
222
- "replacestate": ReplaceStateEvent;
223
- "popstate": PopStateEvent;
224
- "changestate": ChangeStateEvent;
225
- "navigationstart": NavigationStartEvent;
226
- "navigationend": NavigationEndEvent;
227
- "navigationsuccess": NavigationSuccessEvent;
228
- "navigationcancel": NavigationCancelEvent;
229
- "navigationerror": NavigationErrorEvent;
230
- "willchangestate": WillChangeStateEvent;
231
- }
232
- }
233
-
234
- /**
235
- * Slot for a node in the router tree.
236
- * @slot - Default content.
237
- * @event changestate - Dispatched when the router slot state changes.
238
- */
239
- declare class RouterSlot<D = any, P = any> extends HTMLElement implements IRouterSlot<D, P> {
240
- /**
241
- * Listeners on the router.
242
- */
243
- private listeners;
244
- /**
245
- * The available routes.
246
- */
247
- private _routes;
248
- get routes(): IRoute<D>[];
249
- set routes(routes: IRoute<D>[]);
250
- /**
251
- * The parent router.
252
- * Is REQUIRED if this router is a child.
253
- * When set, the relevant listeners are added or teared down because they depend on the parent.
254
- */
255
- _parent: IRouterSlot<P> | null | undefined;
256
- get parent(): IRouterSlot<P> | null | undefined;
257
- set parent(router: IRouterSlot<P> | null | undefined);
258
- /**
259
- * Whether the router is a root router.
260
- */
261
- get isRoot(): boolean;
262
- /**
263
- * The current route match.
264
- */
265
- private _routeMatch;
266
- get match(): IRouteMatch<D> | null;
267
- /**
268
- * The current route of the match.
269
- */
270
- get route(): IRoute<D> | null;
271
- /**
272
- * The current path fragment of the match
273
- */
274
- get fragments(): IPathFragments | null;
275
- /**
276
- * The current params of the match.
277
- */
278
- get params(): Params | null;
279
- /**
280
- * Hooks up the element.
281
- */
282
- constructor();
283
- /**
284
- * Query the parent router slot when the router slot is connected.
285
- */
286
- connectedCallback(): void;
287
- /**
288
- * Tears down the element.
289
- */
290
- disconnectedCallback(): void;
291
- /**
292
- * Queries the parent router.
293
- */
294
- queryParentRouterSlot(): IRouterSlot<P> | null;
295
- /**
296
- * Returns an absolute path relative to the router slot.
297
- * @param path
298
- */
299
- constructAbsolutePath(path: PathFragment): string;
300
- /**
301
- * Adds routes to the router.
302
- * Navigates automatically if the router slot is the root and is connected.
303
- * @param routes
304
- * @param navigate
305
- */
306
- add(routes: IRoute<D>[], navigate?: boolean): void;
307
- /**
308
- * Removes all routes.
309
- */
310
- clear(): void;
311
- /**
312
- * Each time the path changes, load the new path.
313
- */
314
- render(): Promise<void>;
315
- /**
316
- * Attaches listeners, either globally or on the parent router.
317
- */
318
- protected attachListeners(): void;
319
- /**
320
- * Clears the children in the DOM.
321
- */
322
- protected clearChildren(): void;
323
- /**
324
- * Detaches the listeners.
325
- */
326
- protected detachListeners(): void;
327
- /**
328
- * Notify the listeners.
329
- */
330
- notifyChildRouters(info: any): void;
331
- /**
332
- * Loads a new path based on the routes.
333
- * Returns true if a navigation was made to a new page.
334
- */
335
- protected renderPath(path: string | PathFragment): Promise<boolean>;
336
- }
337
- declare global {
338
- interface HTMLElementTagNameMap {
339
- "router-slot": RouterSlot;
340
- }
341
- }
342
-
343
- /**
344
- * Router link.
345
- * @slot - Default content.
346
- */
347
- declare class RouterLink extends HTMLElement {
348
- private listeners;
349
- private _context;
350
- static get observedAttributes(): string[];
351
- /**
352
- * The path of the navigation.
353
- * @attr
354
- */
355
- set path(value: string | PathFragment);
356
- get path(): string | PathFragment;
357
- /**
358
- * Whether the element is disabled or not.
359
- * @attr
360
- */
361
- get disabled(): boolean;
362
- set disabled(value: boolean);
363
- /**
364
- * Whether the element is active or not.
365
- * @attr
366
- */
367
- get active(): boolean;
368
- set active(value: boolean);
369
- /**
370
- * Whether the focus should be delegated.
371
- * @attr
372
- */
373
- get delegateFocus(): boolean;
374
- set delegateFocus(value: boolean);
375
- /**
376
- * Whether the query should be preserved or not.
377
- * @attr
378
- */
379
- get preserveQuery(): boolean;
380
- set preserveQuery(value: boolean);
381
- /**
382
- * The current router slot context.
383
- */
384
- get context(): IRouterSlot | null;
385
- set context(value: IRouterSlot | null);
386
- /**
387
- * Returns the absolute path.
388
- */
389
- get absolutePath(): string;
390
- constructor();
391
- /**
392
- * Hooks up the element.
393
- */
394
- connectedCallback(): void;
395
- /**
396
- * Tear down listeners.
397
- */
398
- disconnectedCallback(): void;
399
- /**
400
- * Reacts to attribute changed callback.
401
- * @param name
402
- * @param oldValue
403
- * @param newValue
404
- */
405
- attributeChangedCallback(name: string, oldValue: unknown, newValue: unknown): void;
406
- private updateTabIndex;
407
- /**
408
- * Returns the absolute path constructed relative to the context.
409
- * If no router parent was found the path property is the absolute one.
410
- */
411
- constructAbsolutePath(path: string): string;
412
- /**
413
- * Updates whether the route is active or not.
414
- */
415
- protected updateActive(): void;
416
- /**
417
- * Navigates to the specified path.
418
- */
419
- navigate(path: string, e?: Event): void;
420
- }
421
- declare global {
422
- interface HTMLElementTagNameMap {
423
- "router-link": RouterLink;
424
- }
425
- }
426
-
427
- declare global {
428
- interface History {
429
- "native": {
430
- "back": ((distance?: any) => void);
431
- "forward": ((distance?: any) => void);
432
- "go": ((delta?: any) => void);
433
- "pushState": ((data: any, title?: string, url?: string | null) => void);
434
- "replaceState": ((data: any, title?: string, url?: string | null) => void);
435
- };
436
- }
437
- }
438
-
439
130
  type UmbModalRouteBuilder = (params: {
440
131
  [key: string]: string | number;
441
132
  }) => string;