@umbraco-cms/backoffice 1.0.0-next.49f05cfb → 1.0.0-next.4ca219c0

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.
@@ -1,11 +1,10 @@
1
- import { DataTypePropertyPresentationModel, TreeItemPresentationModel } from '@umbraco-cms/backoffice/backend-api';
1
+ import { ManifestElement, ManifestWithConditions, ManifestBase, ManifestClass, ManifestWithLoader, ClassConstructor, ManifestWithView, MetaManifestWithView, ManifestEntryPoint, ManifestKind, UmbExtensionRegistry } from '@umbraco-cms/backoffice/extension-api';
2
+ import { UmbModalHandler } from '@umbraco-cms/backoffice/modal';
3
+ import { UmbDataTypePropertyCollection } from '@umbraco-cms/backoffice/data-type';
4
+ import { TreeItemPresentationModel } from '@umbraco-cms/backoffice/backend-api';
2
5
  import { UmbStoreBase, UmbTreeStore, UmbItemStore } from '@umbraco-cms/backoffice/store';
3
6
  import { InterfaceLook, InterfaceColor } from '@umbraco-ui/uui-base/lib/types/index';
4
- import { ClassConstructor } from '@umbraco-cms/backoffice/models';
5
7
  import { UmbWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
6
- import { UmbModalHandler } from '@umbraco-cms/backoffice/modal';
7
- import { UmbExtensionRegistry } from '@umbraco-cms/backoffice/extensions-api';
8
- import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
9
8
 
10
9
  interface ManifestCollectionView extends ManifestElement, ManifestWithConditions<ConditionsCollectionView> {
11
10
  type: 'collectionView';
@@ -442,131 +441,7 @@ interface ConditionsEditorViewCollection {
442
441
  workspaces: string[];
443
442
  }
444
443
 
445
- type ManifestTypes = ManifestCollectionView | ManifestDashboard | ManifestDashboardCollection | ManifestEntityAction | ManifestEntityBulkAction | ManifestEntrypoint | ManifestExternalLoginProvider | ManifestHeaderApp | ManifestHeaderAppButtonKind | ManifestHealthCheck | ManifestItemStore | ManifestMenu | ManifestMenuItem | ManifestMenuItemTreeKind | ManifestModal | ManifestPackageView | ManifestPropertyAction | ManifestPropertyEditorModel | ManifestPropertyEditorUI | ManifestRepository | ManifestSection | ManifestSectionSidebarApp | ManifestSectionSidebarAppMenuKind | ManifestSectionView | ManifestStore | ManifestTheme | ManifestTree | ManifestTreeItem | ManifestTreeStore | ManifestUserProfileApp | ManifestWorkspace | ManifestWorkspaceAction | ManifestWorkspaceEditorView | ManifestWorkspaceViewCollection | ManifestBase;
446
- type ManifestStandardTypes = ManifestTypes['type'];
447
- type ManifestTypeMap = {
448
- [Manifest in ManifestTypes as Manifest['type']]: Manifest;
449
- };
450
- type SpecificManifestTypeOrManifestBase<T extends keyof ManifestTypeMap | string> = T extends keyof ManifestTypeMap ? ManifestTypeMap[T] : ManifestBase;
451
- interface ManifestBase {
452
- /**
453
- * The type of extension such as dashboard etc...
454
- */
455
- type: string;
456
- /**
457
- * The alias of the extension, ensure it is unique
458
- */
459
- alias: string;
460
- /**
461
- * The kind of the extension, used to group extensions together
462
- *
463
- * @examples ["button"]
464
- */
465
- kind?: unknown;
466
- /**
467
- * The friendly name of the extension
468
- */
469
- name: string;
470
- /**
471
- * Extensions such as dashboards are ordered by weight with lower numbers being first in the list
472
- */
473
- weight?: number;
474
- }
475
- interface ManifestKind {
476
- type: 'kind';
477
- alias: string;
478
- matchType: string;
479
- matchKind: string;
480
- manifest: Partial<ManifestTypes>;
481
- }
482
- interface ManifestWithConditions<ConditionsType> {
483
- /**
484
- * Set the conditions for when the extension should be loaded
485
- */
486
- conditions: ConditionsType;
487
- }
488
- interface ManifestWithLoader<LoaderReturnType> extends ManifestBase {
489
- /**
490
- * @TJS-ignore
491
- */
492
- loader?: () => Promise<LoaderReturnType>;
493
- }
494
- /**
495
- * The type of extension such as dashboard etc...
496
- */
497
- interface ManifestClass<ClassType = unknown> extends ManifestWithLoader<{
498
- default: ClassConstructor<ClassType>;
499
- }> {
500
- readonly CLASS_TYPE?: ClassType;
501
- /**
502
- * The file location of the javascript file to load
503
- * @TJS-required
504
- */
505
- js?: string;
506
- /**
507
- * @TJS-ignore
508
- */
509
- className?: string;
510
- /**
511
- * @TJS-ignore
512
- */
513
- class?: ClassConstructor<ClassType>;
514
- }
515
- interface ManifestClassWithClassConstructor<T = unknown> extends ManifestClass<T> {
516
- class: ClassConstructor<T>;
517
- }
518
- interface ManifestElement<ElementType extends HTMLElement = HTMLElement> extends ManifestWithLoader<{
519
- default: ClassConstructor<ElementType>;
520
- } | Omit<object, 'default'>> {
521
- readonly ELEMENT_TYPE?: ElementType;
522
- /**
523
- * The file location of the javascript file to load
524
- *
525
- * @TJS-require
526
- */
527
- js?: string;
528
- /**
529
- * The HTML web component name to use such as 'my-dashboard'
530
- * Note it is NOT <my-dashboard></my-dashboard> but just the name
531
- */
532
- elementName?: string;
533
- /**
534
- * This contains properties specific to the type of extension
535
- */
536
- meta?: unknown;
537
- }
538
- interface ManifestWithView<ElementType extends HTMLElement = HTMLElement> extends ManifestElement<ElementType> {
539
- meta: MetaManifestWithView;
540
- }
541
- interface MetaManifestWithView {
542
- pathname: string;
543
- label: string;
544
- icon: string;
545
- }
546
- interface ManifestElementWithElementName extends ManifestElement {
547
- /**
548
- * The HTML web component name to use such as 'my-dashboard'
549
- * Note it is NOT <my-dashboard></my-dashboard> but just the name
550
- */
551
- elementName: string;
552
- }
553
- interface ManifestWithMeta extends ManifestBase {
554
- /**
555
- * This contains properties specific to the type of extension
556
- */
557
- meta: unknown;
558
- }
559
- /**
560
- * This type of extension gives full control and will simply load the specified JS file
561
- * You could have custom logic to decide which extensions to load/register by using extensionRegistry
562
- */
563
- interface ManifestEntrypoint extends ManifestBase {
564
- type: 'entryPoint';
565
- /**
566
- * The file location of the javascript file to load in the backoffice
567
- */
568
- js: string;
569
- }
444
+ type ManifestTypes = ManifestCollectionView | ManifestDashboard | ManifestDashboardCollection | ManifestEntityAction | ManifestEntityBulkAction | ManifestEntryPoint | ManifestExternalLoginProvider | ManifestHeaderApp | ManifestHeaderAppButtonKind | ManifestHealthCheck | ManifestItemStore | ManifestMenu | ManifestMenuItem | ManifestMenuItemTreeKind | ManifestModal | ManifestPackageView | ManifestPropertyAction | ManifestPropertyEditorModel | ManifestPropertyEditorUI | ManifestRepository | ManifestSection | ManifestSectionSidebarApp | ManifestSectionSidebarAppMenuKind | ManifestSectionView | ManifestStore | ManifestTheme | ManifestTree | ManifestTreeItem | ManifestTreeStore | ManifestUserProfileApp | ManifestWorkspace | ManifestWorkspaceAction | ManifestWorkspaceEditorView | ManifestWorkspaceViewCollection | ManifestBase;
570
445
 
571
446
  interface UmbDashboardExtensionElement extends HTMLElement {
572
447
  manifest?: ManifestDashboard;
@@ -580,7 +455,7 @@ interface UmbModalExtensionElement<UmbModalData extends object = object, UmbModa
580
455
 
581
456
  interface UmbPropertyEditorExtensionElement extends HTMLElement {
582
457
  value: unknown;
583
- config: DataTypePropertyPresentationModel[];
458
+ config?: UmbDataTypePropertyCollection;
584
459
  }
585
460
 
586
461
  interface UmbSectionExtensionElement extends HTMLElement {
@@ -591,10 +466,8 @@ interface UmbTreeItemExtensionElement extends HTMLElement {
591
466
  item?: TreeItemPresentationModel;
592
467
  }
593
468
 
594
- declare class UmbEntryPointExtensionInitializer {
595
- #private;
596
- constructor(host: UmbControllerHostElement, extensionRegistry: UmbExtensionRegistry);
597
- instantiateEntryPoint(manifest: ManifestEntrypoint): Promise<void>;
598
- }
469
+ type UmbBackofficeManifestKind = ManifestKind<ManifestTypes>;
470
+ type UmbBackofficeExtensionRegistry = UmbExtensionRegistry<ManifestTypes>;
471
+ declare const umbExtensionsRegistry: UmbBackofficeExtensionRegistry;
599
472
 
600
- export { ConditionsCollectionView, ConditionsDashboard, ConditionsDashboardCollection, ConditionsEditorViewCollection, ConditionsEntityAction, ConditionsEntityBulkAction, ConditionsMenuItem, ConditionsPropertyAction, ConditionsSectionSidebarApp, ConditionsSectionView, ConditionsTreeItem, ConditionsWorkspaceAction, ConditionsWorkspaceView, HealthCheck, ManifestBase, ManifestClass, ManifestClassWithClassConstructor, ManifestCollectionView, ManifestDashboard, ManifestDashboardCollection, ManifestElement, ManifestElementWithElementName, ManifestEntityAction, ManifestEntityBulkAction, ManifestEntrypoint, ManifestExternalLoginProvider, ManifestHeaderApp, ManifestHeaderAppButtonKind, ManifestHealthCheck, ManifestItemStore, ManifestKind, ManifestMenu, ManifestMenuItem, ManifestMenuItemTreeKind, ManifestModal, ManifestPackageView, ManifestPropertyAction, ManifestPropertyEditorModel, ManifestPropertyEditorUI, ManifestRepository, ManifestSection, ManifestSectionSidebarApp, ManifestSectionSidebarAppMenuKind, ManifestSectionView, ManifestStandardTypes, ManifestStore, ManifestTheme, ManifestTree, ManifestTreeItem, ManifestTreeStore, ManifestTypeMap, ManifestTypes, ManifestUserProfileApp, ManifestWithConditions, ManifestWithLoader, ManifestWithMeta, ManifestWithView, ManifestWorkspace, ManifestWorkspaceAction, ManifestWorkspaceEditorView, ManifestWorkspaceViewCollection, MetaCollectionView, MetaDashboard, MetaDashboardCollection, MetaEditor, MetaEditorViewCollection, MetaEntityAction, MetaEntityBulkAction, MetaExternalLoginProvider, MetaHeaderApp, MetaHeaderAppButtonKind, MetaHealthCheck, MetaManifestWithView, MetaMenuItem, MetaMenuItemTreeKind, MetaPackageView, MetaPropertyEditorModel, MetaPropertyEditorUI, MetaSection, MetaSectionSidebarAppMenuKind, MetaSectionView, MetaTree, MetaUserProfileApp, MetaWorkspaceAction, PropertyEditorConfig, PropertyEditorConfigDefaultData, PropertyEditorConfigProperty, SpecificManifestTypeOrManifestBase, UmbDashboardExtensionElement, UmbEntryPointExtensionInitializer, UmbExternalLoginProviderExtensionElement, UmbMenuItemExtensionElement, UmbModalExtensionElement, UmbPropertyEditorExtensionElement, UmbSectionExtensionElement, UmbSectionSidebarAppExtensionElement, UmbSectionViewExtensionElement, UmbTreeItemExtensionElement, UmbWorkspaceEditorViewExtensionElement };
473
+ export { ConditionsCollectionView, ConditionsDashboard, ConditionsDashboardCollection, ConditionsEditorViewCollection, ConditionsEntityAction, ConditionsEntityBulkAction, ConditionsMenuItem, ConditionsPropertyAction, ConditionsSectionSidebarApp, ConditionsSectionView, ConditionsTreeItem, ConditionsWorkspaceAction, ConditionsWorkspaceView, HealthCheck, ManifestCollectionView, ManifestDashboard, ManifestDashboardCollection, ManifestEntityAction, ManifestEntityBulkAction, ManifestExternalLoginProvider, ManifestHeaderApp, ManifestHeaderAppButtonKind, ManifestHealthCheck, ManifestItemStore, ManifestMenu, ManifestMenuItem, ManifestMenuItemTreeKind, ManifestModal, ManifestPackageView, ManifestPropertyAction, ManifestPropertyEditorModel, ManifestPropertyEditorUI, ManifestRepository, ManifestSection, ManifestSectionSidebarApp, ManifestSectionSidebarAppMenuKind, ManifestSectionView, ManifestStore, ManifestTheme, ManifestTree, ManifestTreeItem, ManifestTreeStore, ManifestTypes, ManifestUserProfileApp, ManifestWorkspace, ManifestWorkspaceAction, ManifestWorkspaceEditorView, ManifestWorkspaceViewCollection, MetaCollectionView, MetaDashboard, MetaDashboardCollection, MetaEditor, MetaEditorViewCollection, MetaEntityAction, MetaEntityBulkAction, MetaExternalLoginProvider, MetaHeaderApp, MetaHeaderAppButtonKind, MetaHealthCheck, MetaMenuItem, MetaMenuItemTreeKind, MetaPackageView, MetaPropertyEditorModel, MetaPropertyEditorUI, MetaSection, MetaSectionSidebarAppMenuKind, MetaSectionView, MetaTree, MetaUserProfileApp, MetaWorkspaceAction, PropertyEditorConfig, PropertyEditorConfigDefaultData, PropertyEditorConfigProperty, UmbBackofficeExtensionRegistry, UmbBackofficeManifestKind, UmbDashboardExtensionElement, UmbExternalLoginProviderExtensionElement, UmbMenuItemExtensionElement, UmbModalExtensionElement, UmbPropertyEditorExtensionElement, UmbSectionExtensionElement, UmbSectionSidebarAppExtensionElement, UmbSectionViewExtensionElement, UmbTreeItemExtensionElement, UmbWorkspaceEditorViewExtensionElement, umbExtensionsRegistry };
package/modal.d.ts CHANGED
@@ -4,11 +4,117 @@ import * as lit from 'lit';
4
4
  import { LitElement, TemplateResult } from 'lit';
5
5
  import * as lit_html from 'lit-html';
6
6
  import { UUIModalDialogElement, UUIModalSidebarElement, UUIModalSidebarSize } from '@umbraco-ui/uui';
7
- import { UmbControllerHostElement, UmbControllerInterface } from '@umbraco-cms/backoffice/controller';
7
+ import { UmbController, UmbControllerHostElement, UmbControllerInterface } from '@umbraco-cms/backoffice/controller-api';
8
8
  import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
9
- import { Params } from '@umbraco-cms/backoffice/router';
9
+ import { Params as Params$1 } from '@umbraco-cms/backoffice/router';
10
10
  import { UmbModalToken as UmbModalToken$1, UmbModalConfig as UmbModalConfig$1, UmbTreePickerModalData as UmbTreePickerModalData$1, UmbPickerModalResult as UmbPickerModalResult$1, UmbPickerModalData as UmbPickerModalData$1 } from '@umbraco-cms/backoffice/modal';
11
- import { DocumentTreeItemResponseModel, EntityTreeItemResponseModel, LanguageResponseModel, ContentTreeItemResponseModel, UserResponseModel, FolderReponseModel, FolderTreeItemResponseModel } from '@umbraco-cms/backoffice/backend-api';
11
+ import { DocumentTreeItemResponseModel, EntityTreeItemResponseModel, LanguageResponseModel, ContentTreeItemResponseModel, PropertyTypeResponseModelBaseModel, UserResponseModel, FolderReponseModel, FolderTreeItemResponseModel } from '@umbraco-cms/backoffice/backend-api';
12
+
13
+ interface IRouterSlot<D = any, P = any> extends HTMLElement {
14
+ readonly route: IRoute<D> | null;
15
+ readonly isRoot: boolean;
16
+ readonly fragments: IPathFragments | null;
17
+ readonly params: Params | null;
18
+ readonly match: IRouteMatch<D> | null;
19
+ routes: IRoute<D>[];
20
+ add: ((routes: IRoute<D>[], navigate?: boolean) => void);
21
+ clear: (() => void);
22
+ render: (() => Promise<void>);
23
+ constructAbsolutePath: ((path: PathFragment) => string);
24
+ parent: IRouterSlot<P> | null | undefined;
25
+ queryParentRouterSlot: (() => IRouterSlot<P> | null);
26
+ }
27
+ type IRoutingInfo<D = any, P = any> = {
28
+ slot: IRouterSlot<D, P>;
29
+ match: IRouteMatch<D>;
30
+ };
31
+ type CustomResolver<D = any, P = any> = ((info: IRoutingInfo<D>) => boolean | void | Promise<boolean> | Promise<void>);
32
+ type Guard<D = any, P = any> = ((info: IRoutingInfo<D, P>) => boolean | Promise<boolean>);
33
+ type PageComponent = HTMLElement | undefined;
34
+ type ModuleResolver = Promise<{
35
+ default: any;
36
+ }>;
37
+ type Class<T extends PageComponent = PageComponent> = {
38
+ new (...args: any[]): T;
39
+ };
40
+ type Component = Class | ModuleResolver | PageComponent | (() => Class) | (() => PromiseLike<Class>) | (() => PageComponent) | (() => PromiseLike<PageComponent>) | (() => ModuleResolver) | (() => PromiseLike<ModuleResolver>);
41
+ type Setup<D = any> = ((component: PageComponent, info: IRoutingInfo<D>) => void);
42
+ type PathMatch = "prefix" | "suffix" | "full" | "fuzzy";
43
+ /**
44
+ * The base route interface.
45
+ * D = the data type of the data
46
+ */
47
+ interface IRouteBase<D = any> {
48
+ path: PathFragment;
49
+ data?: D;
50
+ guards?: Guard[];
51
+ pathMatch?: PathMatch;
52
+ }
53
+ /**
54
+ * Route type used for redirection.
55
+ */
56
+ interface IRedirectRoute<D = any> extends IRouteBase<D> {
57
+ redirectTo: string;
58
+ preserveQuery?: boolean;
59
+ }
60
+ /**
61
+ * Route type used to resolve and stamp components.
62
+ */
63
+ interface IComponentRoute<D = any> extends IRouteBase<D> {
64
+ component: Component | PromiseLike<Component>;
65
+ setup?: Setup;
66
+ }
67
+ /**
68
+ * Route type used to take control of how the route should resolve.
69
+ */
70
+ interface IResolverRoute<D = any> extends IRouteBase<D> {
71
+ resolve: CustomResolver;
72
+ }
73
+ type IRoute<D = any> = IRedirectRoute<D> | IComponentRoute<D> | IResolverRoute<D>;
74
+ type PathFragment = string;
75
+ type IPathFragments = {
76
+ consumed: PathFragment;
77
+ rest: PathFragment;
78
+ };
79
+ interface IRouteMatch<D = any> {
80
+ route: IRoute<D>;
81
+ params: Params;
82
+ fragments: IPathFragments;
83
+ match: RegExpMatchArray;
84
+ }
85
+ type PushStateEvent = CustomEvent<null>;
86
+ type ReplaceStateEvent = CustomEvent<null>;
87
+ type ChangeStateEvent = CustomEvent<null>;
88
+ type WillChangeStateEvent = CustomEvent<{
89
+ url?: string | null;
90
+ eventName: GlobalRouterEvent;
91
+ }>;
92
+ type NavigationStartEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
93
+ type NavigationSuccessEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
94
+ type NavigationCancelEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
95
+ type NavigationErrorEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
96
+ type NavigationEndEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
97
+ type Params = {
98
+ [key: string]: string;
99
+ };
100
+ /**
101
+ * History related events.
102
+ */
103
+ type GlobalRouterEvent = "pushstate" | "replacestate" | "popstate" | "changestate" | "willchangestate" | "navigationstart" | "navigationcancel" | "navigationerror" | "navigationsuccess" | "navigationend";
104
+ declare global {
105
+ interface GlobalEventHandlersEventMap {
106
+ "pushstate": PushStateEvent;
107
+ "replacestate": ReplaceStateEvent;
108
+ "popstate": PopStateEvent;
109
+ "changestate": ChangeStateEvent;
110
+ "navigationstart": NavigationStartEvent;
111
+ "navigationend": NavigationEndEvent;
112
+ "navigationsuccess": NavigationSuccessEvent;
113
+ "navigationcancel": NavigationCancelEvent;
114
+ "navigationerror": NavigationErrorEvent;
115
+ "willchangestate": WillChangeStateEvent;
116
+ }
117
+ }
12
118
 
13
119
  declare class UmbSearchModalElement extends LitElement {
14
120
  #private;
@@ -78,7 +184,7 @@ type OptionalSubmitArgumentIfUndefined<T> = T extends undefined ? {
78
184
  } : {
79
185
  submit: (arg: T) => void;
80
186
  };
81
- declare class UmbModalHandlerClass<ModalData extends object = object, ModalResult = unknown> {
187
+ declare class UmbModalHandlerClass<ModalData extends object = object, ModalResult = unknown> extends UmbController {
82
188
  #private;
83
189
  private _submitPromise;
84
190
  private _submitResolver?;
@@ -88,10 +194,14 @@ declare class UmbModalHandlerClass<ModalData extends object = object, ModalResul
88
194
  key: string;
89
195
  type: UmbModalType;
90
196
  size: UUIModalSidebarSize;
91
- constructor(host: UmbControllerHostElement, modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig);
197
+ private modalAlias;
198
+ constructor(host: UmbControllerHostElement, router: IRouterSlot | null, modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig);
199
+ hostConnected(): void;
200
+ hostDisconnected(): void;
92
201
  private submit;
93
202
  reject(): void;
94
203
  onSubmit(): Promise<ModalResult>;
204
+ destroy(): void;
95
205
  }
96
206
 
97
207
  type UmbModalType = 'dialog' | 'sidebar';
@@ -114,7 +224,7 @@ declare class UmbModalContext {
114
224
  * @return {*} {UmbModalHandler}
115
225
  * @memberof UmbModalContext
116
226
  */
117
- open<ModalData extends object = object, ModalResult = unknown>(modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig): UmbModalHandler<ModalData, ModalResult>;
227
+ open<ModalData extends object = object, ModalResult = unknown>(modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig, router?: IRouterSlot | null): UmbModalHandler<ModalData, ModalResult>;
118
228
  /**
119
229
  * Closes a modal or sidebar modal
120
230
  * @private
@@ -127,14 +237,15 @@ declare const UMB_MODAL_CONTEXT_TOKEN: UmbContextToken<UmbModalContext>;
127
237
 
128
238
  type UmbModalRouteBuilder = (params: {
129
239
  [key: string]: string | number;
130
- }) => string;
240
+ } | null) => string;
131
241
  declare class UmbModalRouteRegistration<UmbModalTokenData extends object = object, UmbModalTokenResult = any> {
132
242
  #private;
133
- constructor(modalAlias: UmbModalToken<UmbModalTokenData, UmbModalTokenResult> | string, path: string, modalConfig?: UmbModalConfig);
243
+ constructor(modalAlias: UmbModalToken<UmbModalTokenData, UmbModalTokenResult> | string, path?: string | null, modalConfig?: UmbModalConfig);
134
244
  get key(): string;
135
245
  get alias(): string | UmbModalToken<UmbModalTokenData, UmbModalTokenResult>;
136
- get path(): string;
137
- protected _setPath(path: string): void;
246
+ generateModalPath(): string;
247
+ get path(): string | null;
248
+ protected _setPath(path: string | null): void;
138
249
  get modalConfig(): UmbModalConfig | undefined;
139
250
  /**
140
251
  * Returns true if the modal is currently active.
@@ -149,18 +260,75 @@ declare class UmbModalRouteRegistration<UmbModalTokenData extends object = objec
149
260
  get modalHandler(): UmbModalHandler<UmbModalTokenData, UmbModalTokenResult> | undefined;
150
261
  observeRouteBuilder(callback: (urlBuilder: UmbModalRouteBuilder) => void): this;
151
262
  _internal_setRouteBuilder(urlBuilder: UmbModalRouteBuilder): void;
152
- onSetup(callback: (routingInfo: Params) => UmbModalTokenData | false): this;
263
+ onSetup(callback: (routingInfo: Params$1) => UmbModalTokenData | false): this;
153
264
  onSubmit(callback: (data: UmbModalTokenResult) => void): this;
154
265
  onReject(callback: () => void): this;
155
- routeSetup(modalContext: UmbModalContext, params: Params): UmbModalHandler<UmbModalTokenData, UmbModalTokenResult> | null;
266
+ routeSetup(router: IRouterSlot, modalContext: UmbModalContext, params: Params$1): UmbModalHandler<UmbModalTokenData, UmbModalTokenResult> | null | undefined;
156
267
  }
157
268
 
158
269
  declare class UmbModalRouteRegistrationController<D extends object = object, R = any> extends UmbModalRouteRegistration<D, R> implements UmbControllerInterface {
159
270
  #private;
160
271
  get unique(): undefined;
161
- constructor(host: UmbControllerHostElement, alias: UmbModalToken$1<D, R> | string, path: string, uniqueParts?: Map<string, string | undefined> | null, modalConfig?: UmbModalConfig$1);
162
- setUniqueIdentifier(identifier: string, value: string | undefined): void;
163
- private _registererModal;
272
+ /**
273
+ * Creates an instance of UmbModalRouteRegistrationController.
274
+ * @param {EventTarget} host - The host element of the modal, this is used to identify the modal.
275
+ * @param {UmbModalToken} alias - The alias of the modal, this is used to identify the modal.
276
+ * @param {UmbModalConfig} modalConfig - The configuration of the modal.
277
+ * @memberof UmbModalRouteRegistrationController
278
+ */
279
+ constructor(host: UmbControllerHostElement, alias: UmbModalToken$1<D, R> | string, modalConfig?: UmbModalConfig$1);
280
+ /**
281
+ * Appends an additional path to the modal route.
282
+ *
283
+ * This can help specify the URL for this modal, or used to add a parameter to the URL like this: "/modal/my-modal/:index/"
284
+ * A folder name starting with a colon ":" will be interpreted as a parameter. Then this modal can open with any value in that location.
285
+ * When modal is being setup the value of the parameter can be read from the route params. See the example:
286
+ * @param additionalPath
287
+ * @returns UmbModalRouteRegistrationController
288
+ * @memberof UmbContextConsumer
289
+ * @example <caption>Example of adding an additional path to the modal route</caption>
290
+ * const modalRegistration = new UmbModalRouteRegistrationController(this, MY_MODAL_TOKEN)
291
+ * modalRegistration.addAdditionalPath(':index')
292
+ *
293
+ * modalRegistration.onSetup((params) => {
294
+ * const index = params.index;
295
+ * // When entering the url of: "/modal/my-modal/hello-world/"
296
+ * // Then index will be "hello-world"
297
+ * }
298
+ */
299
+ addAdditionalPath(additionalPath: string): this;
300
+ /**
301
+ * Registerer one or more additional paths to the modal route, similar to addAdditionalPath. But without defining the actual path name. This enables this to be asynchronously defined and even changed later.
302
+ * This can be useful if your modal has to be unique for this registration, avoiding collision with other registrations.
303
+ * If you made a modal for editing one of multiple property, then you can add a unique path holding the property id.
304
+ * Making the URL unique to this modal registration: /modal/my-modal/my-unique-value/
305
+ *
306
+ * Notice the modal will only be available when all unique paths have a value.
307
+ * @param {Array<string>} uniquePathNames
308
+ * @returns UmbModalRouteRegistrationController
309
+ * @memberof UmbContextConsumer
310
+ * @example <caption>Example of adding an additional unique path to the modal route</caption>
311
+ * const modalRegistration = new UmbModalRouteRegistrationController(this, MY_MODAL_TOKEN)
312
+ * modalRegistration.addUniquePaths(['myAliasForIdentifyingThisPartOfThePath'])
313
+ *
314
+ * // Later:
315
+ * modalRegistration.setUniquePathValue('myAliasForIdentifyingThisPartOfThePath', 'myValue');
316
+ */
317
+ addUniquePaths(uniquePathNames: Array<string>): this;
318
+ /**
319
+ * Set or change the value of a unique path part.
320
+ * @param {string} identifier
321
+ * @param {value | undefined} value
322
+ * @returns UmbModalRouteRegistrationController
323
+ * @memberof UmbContextConsumer
324
+ * @example <caption>Example of adding an additional unique path to the modal route</caption>
325
+ * const modalRegistration = new UmbModalRouteRegistrationController(this, MY_MODAL_TOKEN)
326
+ * modalRegistration.addUniquePaths(['first-one', 'another-one'])
327
+ *
328
+ * // Later:
329
+ * modalRegistration.setUniquePathValue('first-one', 'myValue');
330
+ */
331
+ setUniquePathValue(identifier: string, value: string | undefined): void;
164
332
  hostConnected(): void;
165
333
  hostDisconnected(): void;
166
334
  destroy(): void;
@@ -324,20 +492,9 @@ type UmbPropertyEditorUIPickerModalResult = {
324
492
  };
325
493
  declare const UMB_PROPERTY_EDITOR_UI_PICKER_MODAL: UmbModalToken$1<UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult>;
326
494
 
327
- interface UmbPropertySettingsModalResult {
328
- label: string;
329
- alias: string;
330
- description: string;
331
- propertyEditorUI?: string;
332
- labelOnTop: boolean;
333
- validation: {
334
- mandatory: boolean;
335
- mandatoryMessage: string;
336
- pattern: string;
337
- patternMessage: string;
338
- };
339
- }
340
- declare const UMB_PROPERTY_SETTINGS_MODAL: UmbModalToken$1<object, UmbPropertySettingsModalResult>;
495
+ type UmbPropertySettingsModalData = PropertyTypeResponseModelBaseModel;
496
+ type UmbPropertySettingsModalResult = PropertyTypeResponseModelBaseModel;
497
+ declare const UMB_PROPERTY_SETTINGS_MODAL: UmbModalToken$1<PropertyTypeResponseModelBaseModel, PropertyTypeResponseModelBaseModel>;
341
498
 
342
499
  declare const UMB_SEARCH_MODAL: UmbModalToken$1<object, unknown>;
343
500
 
@@ -404,6 +561,15 @@ type UmbDataTypePickerModalData = UmbTreePickerModalData$1<FolderTreeItemRespons
404
561
  type UmbDataTypePickerModalResult = UmbPickerModalResult$1;
405
562
  declare const UMB_DATA_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDataTypePickerModalData, UmbPickerModalResult$1>;
406
563
 
564
+ interface UmbDataTypePickerFlowModalData {
565
+ selection?: Array<string>;
566
+ submitLabel?: string;
567
+ }
568
+ type UmbDataTypePickerFlowModalResult = {
569
+ selection: Array<string>;
570
+ };
571
+ declare const UMB_DATA_TYPE_PICKER_FLOW_MODAL: UmbModalToken$1<UmbDataTypePickerFlowModalData, UmbDataTypePickerFlowModalResult>;
572
+
407
573
  interface UmbPickerModalData<ItemType> {
408
574
  multiple?: boolean;
409
575
  selection?: Array<string | null>;
@@ -417,4 +583,4 @@ interface UmbTreePickerModalData<TreeItemType> extends UmbPickerModalData<TreeIt
417
583
  treeAlias?: string;
418
584
  }
419
585
 
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_DICTIONARY_ITEM_PICKER_MODAL, UMB_DICTIONARY_ITEM_PICKER_MODAL_ALIAS, UMB_DOCUMENT_PICKER_MODAL, UMB_DOCUMENT_TYPE_PICKER_MODAL, UMB_EMBEDDED_MEDIA_MODAL, UMB_EXAMINE_FIELDS_SETTINGS_MODAL, UMB_EXPORT_DICTIONARY_MODAL, UMB_FOLDER_MODAL, UMB_ICON_PICKER_MODAL, UMB_IMPORT_DICTIONARY_MODAL, UMB_INVITE_USER_MODAL, UMB_LANGUAGE_PICKER_MODAL, UMB_LINK_PICKER_MODAL, UMB_MEDIA_TREE_PICKER_MODAL, UMB_MODAL_CONTEXT_TOKEN, UMB_PARTIAL_VIEW_PICKER_MODAL, UMB_PARTIAL_VIEW_PICKER_MODAL_ALIAS, UMB_PROPERTY_EDITOR_UI_PICKER_MODAL, UMB_PROPERTY_SETTINGS_MODAL, UMB_SEARCH_MODAL, UMB_SECTION_PICKER_MODAL, UMB_TEMPLATE_MODAL, UMB_TEMPLATE_PICKER_MODAL, UMB_USER_GROUP_PICKER_MODAL, UMB_USER_PICKER_MODAL, UmbAllowedDocumentTypesModalData, UmbAllowedDocumentTypesModalResult, UmbChangePasswordModalData, UmbConfirmModalData, UmbConfirmModalResult, UmbContextDebuggerModalData, UmbCreateDictionaryModalData, UmbCreateDictionaryModalResult, UmbCreateDocumentModalResultData, UmbDataTypePickerModalData, UmbDataTypePickerModalResult, UmbDictionaryItemPickerModalData, UmbDictionaryItemPickerModalResult, UmbDocumentPickerModalData, UmbDocumentPickerModalResult, UmbDocumentTypePickerModalData, UmbDocumentTypePickerModalResult, UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult, UmbExamineFieldsSettingsModalData, UmbExportDictionaryModalData, UmbExportDictionaryModalResult, UmbFolderModalData, UmbFolderModalResult, UmbIconPickerModalData, UmbIconPickerModalResult, UmbImportDictionaryModalData, UmbImportDictionaryModalResult, UmbLanguagePickerModalData, UmbLanguagePickerModalResult, UmbLinkPickerConfig, UmbLinkPickerLink, UmbLinkPickerModalData, UmbLinkPickerModalResult, UmbMediaTreePickerModalData, UmbMediaTreePickerModalResult, UmbModalConfig, UmbModalContext, UmbModalHandler, UmbModalHandlerClass, UmbModalRouteBuilder, UmbModalRouteRegistration, UmbModalRouteRegistrationController, UmbModalToken, UmbModalType, UmbPartialViewPickerModalData, UmbPartialViewPickerModalResult, UmbPickerModalData, UmbPickerModalResult, UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult, UmbPropertySettingsModalResult, UmbSectionPickerModalData, UmbSectionPickerModalResult, UmbTemplateModalData, UmbTemplateModalResult, UmbTemplatePickerModalData, UmbTemplatePickerModalResult, UmbTreePickerModalData, UmbUserPickerModalData, UmbUserPickerModalResult };
586
+ export { OEmbedResult, OEmbedStatus, UMB_ALLOWED_DOCUMENT_TYPES_MODAL, UMB_CHANGE_PASSWORD_MODAL, UMB_CONFIRM_MODAL, UMB_CONTEXT_DEBUGGER_MODAL, UMB_CREATE_DICTIONARY_MODAL, UMB_CREATE_USER_MODAL, UMB_CURRENT_USER_MODAL, UMB_DATA_TYPE_PICKER_FLOW_MODAL, UMB_DATA_TYPE_PICKER_MODAL, UMB_DICTIONARY_ITEM_PICKER_MODAL, UMB_DICTIONARY_ITEM_PICKER_MODAL_ALIAS, UMB_DOCUMENT_PICKER_MODAL, UMB_DOCUMENT_TYPE_PICKER_MODAL, UMB_EMBEDDED_MEDIA_MODAL, UMB_EXAMINE_FIELDS_SETTINGS_MODAL, UMB_EXPORT_DICTIONARY_MODAL, UMB_FOLDER_MODAL, UMB_ICON_PICKER_MODAL, UMB_IMPORT_DICTIONARY_MODAL, UMB_INVITE_USER_MODAL, UMB_LANGUAGE_PICKER_MODAL, UMB_LINK_PICKER_MODAL, UMB_MEDIA_TREE_PICKER_MODAL, UMB_MODAL_CONTEXT_TOKEN, UMB_PARTIAL_VIEW_PICKER_MODAL, UMB_PARTIAL_VIEW_PICKER_MODAL_ALIAS, UMB_PROPERTY_EDITOR_UI_PICKER_MODAL, UMB_PROPERTY_SETTINGS_MODAL, UMB_SEARCH_MODAL, UMB_SECTION_PICKER_MODAL, UMB_TEMPLATE_MODAL, UMB_TEMPLATE_PICKER_MODAL, UMB_USER_GROUP_PICKER_MODAL, UMB_USER_PICKER_MODAL, UmbAllowedDocumentTypesModalData, UmbAllowedDocumentTypesModalResult, UmbChangePasswordModalData, UmbConfirmModalData, UmbConfirmModalResult, UmbContextDebuggerModalData, UmbCreateDictionaryModalData, UmbCreateDictionaryModalResult, UmbCreateDocumentModalResultData, UmbDataTypePickerFlowModalData, UmbDataTypePickerFlowModalResult, UmbDataTypePickerModalData, UmbDataTypePickerModalResult, UmbDictionaryItemPickerModalData, UmbDictionaryItemPickerModalResult, UmbDocumentPickerModalData, UmbDocumentPickerModalResult, UmbDocumentTypePickerModalData, UmbDocumentTypePickerModalResult, UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult, UmbExamineFieldsSettingsModalData, UmbExportDictionaryModalData, UmbExportDictionaryModalResult, UmbFolderModalData, UmbFolderModalResult, UmbIconPickerModalData, UmbIconPickerModalResult, UmbImportDictionaryModalData, UmbImportDictionaryModalResult, UmbLanguagePickerModalData, UmbLanguagePickerModalResult, UmbLinkPickerConfig, UmbLinkPickerLink, UmbLinkPickerModalData, UmbLinkPickerModalResult, UmbMediaTreePickerModalData, UmbMediaTreePickerModalResult, UmbModalConfig, UmbModalContext, UmbModalHandler, UmbModalHandlerClass, UmbModalRouteBuilder, UmbModalRouteRegistration, UmbModalRouteRegistrationController, UmbModalToken, UmbModalType, UmbPartialViewPickerModalData, UmbPartialViewPickerModalResult, UmbPickerModalData, UmbPickerModalResult, UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult, UmbPropertySettingsModalData, UmbPropertySettingsModalResult, UmbSectionPickerModalData, UmbSectionPickerModalResult, UmbTemplateModalData, UmbTemplateModalResult, UmbTemplatePickerModalData, UmbTemplatePickerModalResult, UmbTreePickerModalData, UmbUserPickerModalData, UmbUserPickerModalResult };
package/models.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- type HTMLElementConstructor<T = HTMLElement> = new (...args: any[]) => T;
2
- type ClassConstructor<T> = new (...args: any[]) => T;
3
1
  /** Tried to find a common base of our entities — used by Entity Workspace Context */
4
2
  type UmbEntityBase = {
5
3
  id?: string;
@@ -9,5 +7,11 @@ interface UmbSwatchDetails {
9
7
  label: string;
10
8
  value: string;
11
9
  }
10
+ interface ServertimeOffset {
11
+ /**
12
+ * offset in minutes relative to UTC
13
+ */
14
+ offset: number;
15
+ }
12
16
 
13
- export { ClassConstructor, HTMLElementConstructor, UmbEntityBase, UmbSwatchDetails };
17
+ export { ServertimeOffset, UmbEntityBase, UmbSwatchDetails };
@@ -1,10 +1,11 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { Observable, BehaviorSubject } from 'rxjs';
3
- import { UmbControllerInterface, UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
3
+ import { UmbControllerInterface, UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
4
4
 
5
5
  declare class UmbObserver<T> {
6
6
  #private;
7
7
  constructor(source: Observable<T>, callback: (_value: T) => void);
8
+ asPromise(): Promise<T>;
8
9
  hostConnected(): void;
9
10
  hostDisconnected(): void;
10
11
  destroy(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-cms/backoffice",
3
- "version": "1.0.0-next.49f05cfb",
3
+ "version": "1.0.0-next.4ca219c0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "umbraco",
package/picker-input.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { UmbItemRepository } from '@umbraco-cms/backoffice/repository';
3
- import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
3
+ import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
4
4
  import { UmbModalToken, UmbModalContext, UmbPickerModalData } from '@umbraco-cms/backoffice/modal';
5
5
  import { ItemResponseModelBaseModel } from '@umbraco-cms/backoffice/backend-api';
6
6
 
package/repository.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import { ApiError, CancelError, FolderReponseModel, CreateFolderRequestModel, UpdateFolderReponseModel, TreeItemPresentationModel, ProblemDetailsModel, FolderModelBaseModel, ItemResponseModelBaseModel } from '@umbraco-cms/backoffice/backend-api';
2
- import { DataSourceResponse as DataSourceResponse$1, UmbDataSourceErrorResponse as UmbDataSourceErrorResponse$1 } from '@umbraco-cms/backoffice/repository';
2
+ import { DataSourceResponse as DataSourceResponse$1, UmbDataSourceErrorResponse as UmbDataSourceErrorResponse$1, UmbItemRepository as UmbItemRepository$1 } from '@umbraco-cms/backoffice/repository';
3
+ import * as rxjs from 'rxjs';
3
4
  import { Observable } from 'rxjs';
4
5
  import { UmbTreeRootModel, UmbTreeRootEntityModel } from '@umbraco-cms/backoffice/tree';
6
+ import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
7
+ import { UmbObserverController } from '@umbraco-cms/backoffice/observable-api';
5
8
 
6
9
  interface DataSourceResponse<T = undefined> extends UmbDataSourceErrorResponse {
7
10
  data?: T;
@@ -136,4 +139,18 @@ interface UmbCopyRepository {
136
139
  copy(unique: string, targetUnique: string): Promise<UmbRepositoryResponse<string>>;
137
140
  }
138
141
 
139
- export { DataSourceResponse, UmbCollectionDataSource, UmbCollectionRepository, UmbCopyDataSource, UmbCopyRepository, UmbDataSource, UmbDataSourceErrorResponse, UmbDetailRepository, UmbFolderDataSource, UmbFolderRepository, UmbItemDataSource, UmbItemRepository, UmbMoveDataSource, UmbMoveRepository, UmbPagedData, UmbRepositoryErrorResponse, UmbRepositoryResponse, UmbTreeDataSource, UmbTreeRepository };
142
+ declare class UmbRepositoryItemsManager<ItemType extends ItemResponseModelBaseModel> {
143
+ #private;
144
+ host: UmbControllerHostElement;
145
+ repository?: UmbItemRepository$1<ItemType>;
146
+ init: Promise<unknown>;
147
+ uniques: rxjs.Observable<string[]>;
148
+ items: rxjs.Observable<ItemType[]>;
149
+ itemsObserver?: UmbObserverController<ItemType[]>;
150
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, getUniqueMethod?: (entry: ItemType) => string | undefined);
151
+ getUniques(): string[];
152
+ setUniques(uniques: string[]): void;
153
+ getItems(): ItemType[];
154
+ }
155
+
156
+ export { DataSourceResponse, UmbCollectionDataSource, UmbCollectionRepository, UmbCopyDataSource, UmbCopyRepository, UmbDataSource, UmbDataSourceErrorResponse, UmbDetailRepository, UmbFolderDataSource, UmbFolderRepository, UmbItemDataSource, UmbItemRepository, UmbMoveDataSource, UmbMoveRepository, UmbPagedData, UmbRepositoryErrorResponse, UmbRepositoryItemsManager, UmbRepositoryResponse, UmbTreeDataSource, UmbTreeRepository };
package/resources.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { UmbNotificationOptions } from '@umbraco-cms/backoffice/notification';
2
- import { UmbController, UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
2
+ import { UmbController, UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
3
3
  import { DataSourceResponse as DataSourceResponse$1 } from '@umbraco-cms/backoffice/repository';
4
4
  import { ApiError, CancelError } from '@umbraco-cms/backoffice/backend-api';
5
5
 
package/router.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
2
- import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
2
+ import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
3
3
  import { UmbModalRouteRegistration } from '@umbraco-cms/backoffice/modal';
4
4
 
5
5
  interface IRouterSlot<D = any, P = any> extends HTMLElement {
@@ -352,17 +352,19 @@ declare function ensureAnchorHistory(): void;
352
352
 
353
353
  declare class UmbRouteContext {
354
354
  #private;
355
- private _onGotModals;
356
- constructor(host: UmbControllerHostElement, _onGotModals: (contextRoutes: any) => void);
355
+ constructor(host: UmbControllerHostElement, mainRouter: IRouterSlot, modalRouter: IRouterSlot);
357
356
  registerModal(registration: UmbModalRouteRegistration): UmbModalRouteRegistration<object, any>;
358
357
  unregisterModal(registrationToken: ReturnType<typeof this$1.registerModal>): void;
359
358
  _internal_routerGotBasePath(routerBasePath: string): void;
359
+ _internal_routerGotActiveLocalPath(routerActiveLocalPath: string | undefined): void;
360
360
  _internal_modalRouterChanged(activeModalPath: string | undefined): void;
361
361
  }
362
362
  declare const UMB_ROUTE_CONTEXT_TOKEN: UmbContextToken<UmbRouteContext>;
363
363
 
364
364
  declare function generateRoutePathBuilder(path: string): (params: {
365
365
  [key: string]: string | number;
366
- }) => string;
366
+ } | null) => string;
367
367
 
368
- export { Guard, IComponentRoute, IRedirectRoute, IResolverRoute, IRoutingInfo, PageComponent, Params, Query, UMB_ROUTE_CONTEXT_TOKEN, IRoute as UmbRoute, UmbRouteContext, addListener, attachCallback, basePath, constructAbsolutePath, constructPathWithBasePath, dispatchGlobalRouterEvent, dispatchRouteChangeEvent, ensureAnchorHistory, ensureHistoryEvents, ensureSlash, generateRoutePathBuilder, getFragments, handleRedirect, historyPatches, isPathActive, isRedirectRoute, isResolverRoute, matchRoute, matchRoutes, path, pathWithoutBasePath, query, queryParentRoots, queryParentRouterSlot, queryString, removeListeners, resolvePageComponent, saveNativeFunction, shouldNavigate, slashify, stripSlash, stripStart, toQuery, toQueryString, traverseRouterTree };
368
+ declare const encodeFolderName: (path: string) => string;
369
+
370
+ export { Guard, IComponentRoute, IRedirectRoute, IResolverRoute, IRouterSlot, IRoutingInfo, PageComponent, Params, Query, UMB_ROUTE_CONTEXT_TOKEN, IRoute as UmbRoute, UmbRouteContext, addListener, attachCallback, basePath, constructAbsolutePath, constructPathWithBasePath, dispatchGlobalRouterEvent, dispatchRouteChangeEvent, encodeFolderName, ensureAnchorHistory, ensureHistoryEvents, ensureSlash, generateRoutePathBuilder, getFragments, handleRedirect, historyPatches, isPathActive, isRedirectRoute, isResolverRoute, matchRoute, matchRoutes, path, pathWithoutBasePath, query, queryParentRoots, queryParentRouterSlot, queryString, removeListeners, resolvePageComponent, saveNativeFunction, shouldNavigate, slashify, stripSlash, stripStart, toQuery, toQueryString, traverseRouterTree };
package/section.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as rxjs from 'rxjs';
2
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';
3
+ import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
4
+ import { ManifestSection } from '@umbraco-cms/backoffice/extension-registry';
5
5
 
6
6
  declare class UmbSectionSidebarContext {
7
7
  #private;
package/sorter.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { UmbControllerInterface, UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
1
+ import { UmbControllerInterface, UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
2
2
 
3
3
  type INTERNAL_UmbSorterConfig<T> = {
4
4
  compareElementToModel: (el: HTMLElement, modelEntry: T) => boolean;
package/store.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { Observable } from 'rxjs';
3
- import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
3
+ import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
4
4
  import { UmbArrayState } from '@umbraco-cms/backoffice/observable-api';
5
5
  import { EntityTreeItemResponseModel, FileSystemTreeItemPresentationModel } from '@umbraco-cms/backoffice/backend-api';
6
6
  import { UmbStoreBase as UmbStoreBase$1, UmbTreeStore as UmbTreeStore$1 } from '@umbraco-cms/backoffice/store';