@umbraco-cms/backoffice 1.0.0-next.d924405b → 1.0.0-next.fc037c85
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/custom-elements.json +87 -24
- package/modal.d.ts +578 -12
- package/observable-api.d.ts +1 -1
- package/package.json +1 -1
- package/router.d.ts +130 -0
- package/vscode-html-custom-data.json +50 -21
package/custom-elements.json
CHANGED
|
@@ -3067,6 +3067,14 @@
|
|
|
3067
3067
|
"name": "umb-input-multi-url-picker",
|
|
3068
3068
|
"path": "./src/backoffice/shared/components/input-multi-url-picker/input-multi-url-picker.element.ts",
|
|
3069
3069
|
"attributes": [
|
|
3070
|
+
{
|
|
3071
|
+
"name": "alias",
|
|
3072
|
+
"type": "string | undefined"
|
|
3073
|
+
},
|
|
3074
|
+
{
|
|
3075
|
+
"name": "variantId",
|
|
3076
|
+
"type": "string | UmbVariantId | undefined"
|
|
3077
|
+
},
|
|
3070
3078
|
{
|
|
3071
3079
|
"name": "min",
|
|
3072
3080
|
"description": "This is a minimum amount of selected items in this input.",
|
|
@@ -3111,6 +3119,16 @@
|
|
|
3111
3119
|
"type": "CSSResult[]",
|
|
3112
3120
|
"default": "[\"UUITextStyles\",null]"
|
|
3113
3121
|
},
|
|
3122
|
+
{
|
|
3123
|
+
"name": "alias",
|
|
3124
|
+
"attribute": "alias",
|
|
3125
|
+
"type": "string | undefined"
|
|
3126
|
+
},
|
|
3127
|
+
{
|
|
3128
|
+
"name": "variantId",
|
|
3129
|
+
"attribute": "variantId",
|
|
3130
|
+
"type": "string | UmbVariantId | undefined"
|
|
3131
|
+
},
|
|
3114
3132
|
{
|
|
3115
3133
|
"name": "min",
|
|
3116
3134
|
"attribute": "min",
|
|
@@ -4953,8 +4971,7 @@
|
|
|
4953
4971
|
"path": "./src/backoffice/shared/modals/confirm/confirm-modal.element.ts",
|
|
4954
4972
|
"attributes": [
|
|
4955
4973
|
{
|
|
4956
|
-
"name": "data"
|
|
4957
|
-
"type": "UmbConfirmModalData | undefined"
|
|
4974
|
+
"name": "data"
|
|
4958
4975
|
}
|
|
4959
4976
|
],
|
|
4960
4977
|
"properties": [
|
|
@@ -4968,8 +4985,7 @@
|
|
|
4968
4985
|
},
|
|
4969
4986
|
{
|
|
4970
4987
|
"name": "data",
|
|
4971
|
-
"attribute": "data"
|
|
4972
|
-
"type": "UmbConfirmModalData | undefined"
|
|
4988
|
+
"attribute": "data"
|
|
4973
4989
|
}
|
|
4974
4990
|
]
|
|
4975
4991
|
},
|
|
@@ -4978,8 +4994,7 @@
|
|
|
4978
4994
|
"path": "./src/backoffice/shared/modals/embedded-media/embedded-media-modal.element.ts",
|
|
4979
4995
|
"attributes": [
|
|
4980
4996
|
{
|
|
4981
|
-
"name": "data"
|
|
4982
|
-
"type": "UmbEmbeddedMediaModalData | undefined"
|
|
4997
|
+
"name": "data"
|
|
4983
4998
|
}
|
|
4984
4999
|
],
|
|
4985
5000
|
"properties": [
|
|
@@ -4993,8 +5008,7 @@
|
|
|
4993
5008
|
},
|
|
4994
5009
|
{
|
|
4995
5010
|
"name": "data",
|
|
4996
|
-
"attribute": "data"
|
|
4997
|
-
"type": "UmbEmbeddedMediaModalData | undefined"
|
|
5011
|
+
"attribute": "data"
|
|
4998
5012
|
}
|
|
4999
5013
|
]
|
|
5000
5014
|
},
|
|
@@ -5221,8 +5235,7 @@
|
|
|
5221
5235
|
"path": "./src/backoffice/shared/property-editors/modals/property-editor-ui-picker/property-editor-ui-picker-modal.element.ts",
|
|
5222
5236
|
"attributes": [
|
|
5223
5237
|
{
|
|
5224
|
-
"name": "data"
|
|
5225
|
-
"type": "UmbPropertyEditorUIPickerModalData | undefined"
|
|
5238
|
+
"name": "data"
|
|
5226
5239
|
}
|
|
5227
5240
|
],
|
|
5228
5241
|
"properties": [
|
|
@@ -5233,8 +5246,7 @@
|
|
|
5233
5246
|
},
|
|
5234
5247
|
{
|
|
5235
5248
|
"name": "data",
|
|
5236
|
-
"attribute": "data"
|
|
5237
|
-
"type": "UmbPropertyEditorUIPickerModalData | undefined"
|
|
5249
|
+
"attribute": "data"
|
|
5238
5250
|
},
|
|
5239
5251
|
{
|
|
5240
5252
|
"name": "modalHandler"
|
|
@@ -6032,7 +6044,7 @@
|
|
|
6032
6044
|
"attributes": [
|
|
6033
6045
|
{
|
|
6034
6046
|
"name": "value",
|
|
6035
|
-
"type": "
|
|
6047
|
+
"type": "array",
|
|
6036
6048
|
"default": "[]"
|
|
6037
6049
|
}
|
|
6038
6050
|
],
|
|
@@ -6045,7 +6057,7 @@
|
|
|
6045
6057
|
{
|
|
6046
6058
|
"name": "value",
|
|
6047
6059
|
"attribute": "value",
|
|
6048
|
-
"type": "
|
|
6060
|
+
"type": "array",
|
|
6049
6061
|
"default": "[]"
|
|
6050
6062
|
},
|
|
6051
6063
|
{
|
|
@@ -6953,8 +6965,8 @@
|
|
|
6953
6965
|
]
|
|
6954
6966
|
},
|
|
6955
6967
|
{
|
|
6956
|
-
"name": "umb-export-dictionary-modal
|
|
6957
|
-
"path": "./src/backoffice/translation/dictionary/entity-actions/export/export-dictionary-modal
|
|
6968
|
+
"name": "umb-export-dictionary-modal",
|
|
6969
|
+
"path": "./src/backoffice/translation/dictionary/entity-actions/export/export-dictionary-modal.element.ts",
|
|
6958
6970
|
"properties": [
|
|
6959
6971
|
{
|
|
6960
6972
|
"name": "styles",
|
|
@@ -6964,8 +6976,8 @@
|
|
|
6964
6976
|
]
|
|
6965
6977
|
},
|
|
6966
6978
|
{
|
|
6967
|
-
"name": "umb-import-dictionary-modal
|
|
6968
|
-
"path": "./src/backoffice/translation/dictionary/entity-actions/import/import-dictionary-modal
|
|
6979
|
+
"name": "umb-import-dictionary-modal",
|
|
6980
|
+
"path": "./src/backoffice/translation/dictionary/entity-actions/import/import-dictionary-modal.element.ts",
|
|
6969
6981
|
"properties": [
|
|
6970
6982
|
{
|
|
6971
6983
|
"name": "styles",
|
|
@@ -7027,8 +7039,7 @@
|
|
|
7027
7039
|
"path": "./src/backoffice/users/current-user/modals/change-password/change-password-modal.element.ts",
|
|
7028
7040
|
"attributes": [
|
|
7029
7041
|
{
|
|
7030
|
-
"name": "data"
|
|
7031
|
-
"type": "UmbChangePasswordModalData | undefined"
|
|
7042
|
+
"name": "data"
|
|
7032
7043
|
}
|
|
7033
7044
|
],
|
|
7034
7045
|
"properties": [
|
|
@@ -7042,8 +7053,7 @@
|
|
|
7042
7053
|
},
|
|
7043
7054
|
{
|
|
7044
7055
|
"name": "data",
|
|
7045
|
-
"attribute": "data"
|
|
7046
|
-
"type": "UmbChangePasswordModalData | undefined"
|
|
7056
|
+
"attribute": "data"
|
|
7047
7057
|
}
|
|
7048
7058
|
]
|
|
7049
7059
|
},
|
|
@@ -7452,7 +7462,7 @@
|
|
|
7452
7462
|
"attributes": [
|
|
7453
7463
|
{
|
|
7454
7464
|
"name": "routes",
|
|
7455
|
-
"type": "
|
|
7465
|
+
"type": "any[] | undefined"
|
|
7456
7466
|
}
|
|
7457
7467
|
],
|
|
7458
7468
|
"properties": [
|
|
@@ -7464,7 +7474,60 @@
|
|
|
7464
7474
|
{
|
|
7465
7475
|
"name": "routes",
|
|
7466
7476
|
"attribute": "routes",
|
|
7467
|
-
"type": "
|
|
7477
|
+
"type": "any[] | undefined"
|
|
7478
|
+
},
|
|
7479
|
+
{
|
|
7480
|
+
"name": "absoluteRouterPath",
|
|
7481
|
+
"type": "string | undefined"
|
|
7482
|
+
},
|
|
7483
|
+
{
|
|
7484
|
+
"name": "localActiveViewPath",
|
|
7485
|
+
"type": "string | undefined"
|
|
7486
|
+
},
|
|
7487
|
+
{
|
|
7488
|
+
"name": "absoluteActiveViewPath",
|
|
7489
|
+
"type": "string"
|
|
7490
|
+
}
|
|
7491
|
+
],
|
|
7492
|
+
"events": [
|
|
7493
|
+
{
|
|
7494
|
+
"name": "init",
|
|
7495
|
+
"description": "fires when the router is connected"
|
|
7496
|
+
},
|
|
7497
|
+
{
|
|
7498
|
+
"name": "change",
|
|
7499
|
+
"description": "fires when a path of this router is changed"
|
|
7500
|
+
}
|
|
7501
|
+
]
|
|
7502
|
+
},
|
|
7503
|
+
{
|
|
7504
|
+
"name": "umb-variant-router-slot",
|
|
7505
|
+
"path": "./src/core/router/variant-router-slot.element.ts",
|
|
7506
|
+
"attributes": [
|
|
7507
|
+
{
|
|
7508
|
+
"name": "variantId",
|
|
7509
|
+
"type": "UmbVariantId[]"
|
|
7510
|
+
},
|
|
7511
|
+
{
|
|
7512
|
+
"name": "routes",
|
|
7513
|
+
"type": "any[] | undefined"
|
|
7514
|
+
}
|
|
7515
|
+
],
|
|
7516
|
+
"properties": [
|
|
7517
|
+
{
|
|
7518
|
+
"name": "variantId",
|
|
7519
|
+
"attribute": "variantId",
|
|
7520
|
+
"type": "UmbVariantId[]"
|
|
7521
|
+
},
|
|
7522
|
+
{
|
|
7523
|
+
"name": "styles",
|
|
7524
|
+
"type": "CSSResult[]",
|
|
7525
|
+
"default": "[null]"
|
|
7526
|
+
},
|
|
7527
|
+
{
|
|
7528
|
+
"name": "routes",
|
|
7529
|
+
"attribute": "routes",
|
|
7530
|
+
"type": "any[] | undefined"
|
|
7468
7531
|
},
|
|
7469
7532
|
{
|
|
7470
7533
|
"name": "absoluteRouterPath",
|
package/modal.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import * as lit_html from 'lit-html';
|
|
3
4
|
import * as lit from 'lit';
|
|
4
|
-
import { LitElement } from 'lit';
|
|
5
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
5
6
|
import { UUIModalDialogElement, UUIModalSidebarElement, UUIModalSidebarSize } from '@umbraco-ui/uui';
|
|
6
|
-
import { UmbControllerHostInterface } from './controller';
|
|
7
|
+
import { UmbControllerHostInterface as UmbControllerHostInterface$1 } from './controller';
|
|
7
8
|
import { UmbContextToken } from './context-api';
|
|
9
|
+
import { UmbModalToken as UmbModalToken$1, UmbModalConfig as UmbModalConfig$1, UmbPickerModalData as UmbPickerModalData$1 } from './modal';
|
|
10
|
+
import { LanguageResponseModel } from './backend-api';
|
|
11
|
+
import { UserDetails } from './models';
|
|
8
12
|
|
|
9
13
|
declare class UmbSearchModalElement extends LitElement {
|
|
10
14
|
#private;
|
|
@@ -22,7 +26,7 @@ declare global {
|
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
28
|
|
|
25
|
-
declare class UmbModalToken<Data =
|
|
29
|
+
declare class UmbModalToken<Data extends object = object, Result = unknown> {
|
|
26
30
|
protected alias: string;
|
|
27
31
|
protected defaultConfig?: UmbModalConfig | undefined;
|
|
28
32
|
protected _desc?: string | undefined;
|
|
@@ -67,7 +71,7 @@ declare class UmbModalToken<Data = unknown, Result = unknown> {
|
|
|
67
71
|
/**
|
|
68
72
|
* Type which omits the real submit method, and replaces it with a submit method which accepts an optional argument depending on the generic type.
|
|
69
73
|
*/
|
|
70
|
-
type UmbModalHandler<ModalData =
|
|
74
|
+
type UmbModalHandler<ModalData extends object = object, ModalResult = any> = Omit<UmbModalHandlerClass<ModalData, ModalResult>, 'submit'> & OptionalSubmitArgumentIfUndefined<ModalResult>;
|
|
71
75
|
type OptionalSubmitArgumentIfUndefined<T> = T extends undefined ? {
|
|
72
76
|
submit: () => void;
|
|
73
77
|
} : T extends unknown ? {
|
|
@@ -75,17 +79,17 @@ type OptionalSubmitArgumentIfUndefined<T> = T extends undefined ? {
|
|
|
75
79
|
} : {
|
|
76
80
|
submit: (arg: T) => void;
|
|
77
81
|
};
|
|
78
|
-
declare class UmbModalHandlerClass<ModalData, ModalResult> {
|
|
82
|
+
declare class UmbModalHandlerClass<ModalData extends object = object, ModalResult = unknown> {
|
|
79
83
|
#private;
|
|
80
84
|
private _submitPromise;
|
|
81
85
|
private _submitResolver?;
|
|
82
86
|
private _submitRejecter?;
|
|
83
87
|
modalElement: UUIModalDialogElement | UUIModalSidebarElement;
|
|
84
|
-
readonly innerElement: rxjs.Observable<
|
|
88
|
+
readonly innerElement: rxjs.Observable<HTMLElement | undefined>;
|
|
85
89
|
key: string;
|
|
86
90
|
type: UmbModalType;
|
|
87
91
|
size: UUIModalSidebarSize;
|
|
88
|
-
constructor(host: UmbControllerHostInterface, modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig);
|
|
92
|
+
constructor(host: UmbControllerHostInterface$1, modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig);
|
|
89
93
|
private submit;
|
|
90
94
|
reject(): void;
|
|
91
95
|
onSubmit(): Promise<ModalResult>;
|
|
@@ -99,9 +103,9 @@ interface UmbModalConfig {
|
|
|
99
103
|
}
|
|
100
104
|
declare class UmbModalContext {
|
|
101
105
|
#private;
|
|
102
|
-
host: UmbControllerHostInterface;
|
|
103
|
-
readonly modals: rxjs.Observable<UmbModalHandler<
|
|
104
|
-
constructor(host: UmbControllerHostInterface);
|
|
106
|
+
host: UmbControllerHostInterface$1;
|
|
107
|
+
readonly modals: rxjs.Observable<UmbModalHandler<object, any>[]>;
|
|
108
|
+
constructor(host: UmbControllerHostInterface$1);
|
|
105
109
|
search(): UmbModalHandler<any, any>;
|
|
106
110
|
/**
|
|
107
111
|
* Opens a modal or sidebar modal
|
|
@@ -111,7 +115,7 @@ declare class UmbModalContext {
|
|
|
111
115
|
* @return {*} {UmbModalHandler}
|
|
112
116
|
* @memberof UmbModalContext
|
|
113
117
|
*/
|
|
114
|
-
open<ModalData =
|
|
118
|
+
open<ModalData extends object = object, ModalResult = unknown>(modalAlias: string | UmbModalToken<ModalData, ModalResult>, data?: ModalData, config?: UmbModalConfig): UmbModalHandler<ModalData, ModalResult>;
|
|
115
119
|
/**
|
|
116
120
|
* Closes a modal or sidebar modal
|
|
117
121
|
* @private
|
|
@@ -122,6 +126,568 @@ declare class UmbModalContext {
|
|
|
122
126
|
}
|
|
123
127
|
declare const UMB_MODAL_CONTEXT_TOKEN: UmbContextToken<UmbModalContext>;
|
|
124
128
|
|
|
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
|
+
type UmbModalRouteBuilder = (params: {
|
|
440
|
+
[key: string]: string | number;
|
|
441
|
+
}) => string;
|
|
442
|
+
declare class UmbModalRouteRegistration<UmbModalTokenData extends object = object, UmbModalTokenResult = any> {
|
|
443
|
+
#private;
|
|
444
|
+
constructor(modalAlias: UmbModalToken<UmbModalTokenData, UmbModalTokenResult> | string, path: string, modalConfig?: UmbModalConfig);
|
|
445
|
+
get key(): string;
|
|
446
|
+
get alias(): string | UmbModalToken<UmbModalTokenData, UmbModalTokenResult>;
|
|
447
|
+
get path(): string;
|
|
448
|
+
protected _setPath(path: string): void;
|
|
449
|
+
get modalConfig(): UmbModalConfig | undefined;
|
|
450
|
+
/**
|
|
451
|
+
* Returns true if the modal is currently active.
|
|
452
|
+
*/
|
|
453
|
+
get active(): boolean;
|
|
454
|
+
open(params: {
|
|
455
|
+
[key: string]: string | number;
|
|
456
|
+
}): void;
|
|
457
|
+
/**
|
|
458
|
+
* Returns the modal handler if the modal is currently active. Otherwise its undefined.
|
|
459
|
+
*/
|
|
460
|
+
get modalHandler(): UmbModalHandler<UmbModalTokenData, UmbModalTokenResult> | undefined;
|
|
461
|
+
observeRouteBuilder(callback: (urlBuilder: UmbModalRouteBuilder) => void): this;
|
|
462
|
+
_internal_setRouteBuilder(urlBuilder: UmbModalRouteBuilder): void;
|
|
463
|
+
onSetup(callback: (routingInfo: Params) => UmbModalTokenData | false): this;
|
|
464
|
+
onSubmit(callback: (data: UmbModalTokenResult) => void): this;
|
|
465
|
+
onReject(callback: () => void): this;
|
|
466
|
+
routeSetup(modalContext: UmbModalContext, params: Params): UmbModalHandler<UmbModalTokenData, UmbModalTokenResult> | null;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
interface UmbControllerInterface {
|
|
470
|
+
get unique(): string | undefined;
|
|
471
|
+
hostConnected(): void;
|
|
472
|
+
hostDisconnected(): void;
|
|
473
|
+
destroy(): void;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
declare class UmbControllerHostInterface extends HTMLElement {
|
|
477
|
+
hasController(controller: UmbControllerInterface): boolean;
|
|
478
|
+
getControllers(filterMethod: (ctrl: UmbControllerInterface) => boolean): UmbControllerInterface[];
|
|
479
|
+
addController(controller: UmbControllerInterface): void;
|
|
480
|
+
removeController(controller: UmbControllerInterface): void;
|
|
481
|
+
}
|
|
482
|
+
declare global {
|
|
483
|
+
interface HTMLElement {
|
|
484
|
+
connectedCallback(): void;
|
|
485
|
+
disconnectedCallback(): void;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
declare class UmbModalRouteRegistrationController<D extends object = object, R = any> extends UmbModalRouteRegistration<D, R> implements UmbControllerInterface {
|
|
490
|
+
#private;
|
|
491
|
+
get unique(): undefined;
|
|
492
|
+
constructor(host: UmbControllerHostInterface, alias: UmbModalToken$1<D, R> | string, path: string, uniqueParts?: Map<string, string | undefined> | null, modalConfig?: UmbModalConfig$1);
|
|
493
|
+
setUniqueIdentifier(identifier: string, value: string | undefined): void;
|
|
494
|
+
private _registererModal;
|
|
495
|
+
hostConnected(): void;
|
|
496
|
+
hostDisconnected(): void;
|
|
497
|
+
destroy(): void;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
interface UmbAllowedDocumentTypesModalData {
|
|
501
|
+
key: string | null;
|
|
502
|
+
}
|
|
503
|
+
interface UmbAllowedDocumentTypesModalResult {
|
|
504
|
+
documentTypeKey: string;
|
|
505
|
+
}
|
|
506
|
+
declare const UMB_ALLOWED_DOCUMENT_TYPES_MODAL: UmbModalToken$1<UmbAllowedDocumentTypesModalData, UmbAllowedDocumentTypesModalResult>;
|
|
507
|
+
|
|
508
|
+
interface UmbChangePasswordModalData {
|
|
509
|
+
requireOldPassword: boolean;
|
|
510
|
+
}
|
|
511
|
+
declare const UMB_CHANGE_PASSWORD_MODAL: UmbModalToken$1<UmbChangePasswordModalData, unknown>;
|
|
512
|
+
|
|
513
|
+
interface UmbConfirmModalData {
|
|
514
|
+
headline: string;
|
|
515
|
+
content: TemplateResult | string;
|
|
516
|
+
color?: 'positive' | 'danger';
|
|
517
|
+
confirmLabel?: string;
|
|
518
|
+
}
|
|
519
|
+
type UmbConfirmModalResult = undefined;
|
|
520
|
+
declare const UMB_CONFIRM_MODAL: UmbModalToken$1<UmbConfirmModalData, undefined>;
|
|
521
|
+
|
|
522
|
+
interface UmbCreateDictionaryModalData {
|
|
523
|
+
unique: string | null;
|
|
524
|
+
parentName?: Observable<string | undefined>;
|
|
525
|
+
}
|
|
526
|
+
interface UmbCreateDictionaryModalResult {
|
|
527
|
+
name?: string;
|
|
528
|
+
}
|
|
529
|
+
declare const UMB_CREATE_DICTIONARY_MODAL: UmbModalToken$1<UmbCreateDictionaryModalData, UmbCreateDictionaryModalResult>;
|
|
530
|
+
|
|
531
|
+
declare const UMB_CREATE_USER_MODAL: UmbModalToken$1<object, unknown>;
|
|
532
|
+
|
|
533
|
+
declare const UMB_CURRENT_USER_MODAL: UmbModalToken$1<object, unknown>;
|
|
534
|
+
|
|
535
|
+
interface UmbContextDebuggerModalData {
|
|
536
|
+
content: TemplateResult | string;
|
|
537
|
+
}
|
|
538
|
+
declare const UMB_CONTEXT_DEBUGGER_MODAL: UmbModalToken$1<UmbContextDebuggerModalData, unknown>;
|
|
539
|
+
|
|
540
|
+
interface UmbDocumentPickerModalData {
|
|
541
|
+
multiple?: boolean;
|
|
542
|
+
selection?: Array<string>;
|
|
543
|
+
}
|
|
544
|
+
interface UmbDocumentPickerModalResult {
|
|
545
|
+
selection: Array<string>;
|
|
546
|
+
}
|
|
547
|
+
declare const UMB_DOCUMENT_PICKER_MODAL: UmbModalToken$1<UmbDocumentPickerModalData, UmbDocumentPickerModalResult>;
|
|
548
|
+
|
|
549
|
+
declare enum OEmbedStatus {
|
|
550
|
+
NotSupported = 0,
|
|
551
|
+
Error = 1,
|
|
552
|
+
Success = 2
|
|
553
|
+
}
|
|
554
|
+
interface UmbEmbeddedMediaDimensions {
|
|
555
|
+
width?: number;
|
|
556
|
+
height?: number;
|
|
557
|
+
constrain?: boolean;
|
|
558
|
+
}
|
|
559
|
+
interface UmbEmbeddedMediaModalData extends UmbEmbeddedMediaDimensions {
|
|
560
|
+
url?: string;
|
|
561
|
+
}
|
|
562
|
+
interface OEmbedResult extends UmbEmbeddedMediaDimensions {
|
|
563
|
+
oEmbedStatus: OEmbedStatus;
|
|
564
|
+
supportsDimensions: boolean;
|
|
565
|
+
markup?: string;
|
|
566
|
+
}
|
|
567
|
+
type UmbEmbeddedMediaModalResult = {
|
|
568
|
+
selection: OEmbedResult;
|
|
569
|
+
};
|
|
570
|
+
declare const UMB_EMBEDDED_MEDIA_MODAL: UmbModalToken$1<UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult>;
|
|
571
|
+
|
|
572
|
+
type UmbExamineFieldsSettingsModalData = Array<{
|
|
573
|
+
name: string;
|
|
574
|
+
exposed: boolean;
|
|
575
|
+
}>;
|
|
576
|
+
interface UmbCreateDocumentModalResultData {
|
|
577
|
+
fields?: UmbExamineFieldsSettingsModalData;
|
|
578
|
+
}
|
|
579
|
+
declare const UMB_EXAMINE_FIELDS_SETTINGS_MODAL: UmbModalToken$1<UmbExamineFieldsSettingsModalData, UmbCreateDocumentModalResultData>;
|
|
580
|
+
|
|
581
|
+
interface UmbExportDictionaryModalData {
|
|
582
|
+
unique: string | null;
|
|
583
|
+
}
|
|
584
|
+
interface UmbExportDictionaryModalResult {
|
|
585
|
+
includeChildren?: boolean;
|
|
586
|
+
}
|
|
587
|
+
declare const UMB_EXPORT_DICTIONARY_MODAL: UmbModalToken$1<UmbExportDictionaryModalData, UmbExportDictionaryModalResult>;
|
|
588
|
+
|
|
589
|
+
interface UmbIconPickerModalData {
|
|
590
|
+
multiple: boolean;
|
|
591
|
+
selection: string[];
|
|
592
|
+
}
|
|
593
|
+
interface UmbIconPickerModalResult {
|
|
594
|
+
color: string | undefined;
|
|
595
|
+
icon: string | undefined;
|
|
596
|
+
}
|
|
597
|
+
declare const UMB_ICON_PICKER_MODAL: UmbModalToken$1<UmbIconPickerModalData, UmbIconPickerModalResult>;
|
|
598
|
+
|
|
599
|
+
interface UmbImportDictionaryModalData {
|
|
600
|
+
unique: string | null;
|
|
601
|
+
}
|
|
602
|
+
interface UmbImportDictionaryModalResult {
|
|
603
|
+
fileName?: string;
|
|
604
|
+
parentKey?: string;
|
|
605
|
+
}
|
|
606
|
+
declare const UMB_IMPORT_DICTIONARY_MODAL: UmbModalToken$1<UmbImportDictionaryModalData, UmbImportDictionaryModalResult>;
|
|
607
|
+
|
|
608
|
+
declare const UMB_INVITE_USER_MODAL: UmbModalToken$1<object, unknown>;
|
|
609
|
+
|
|
610
|
+
interface UmbLanguagePickerModalData {
|
|
611
|
+
multiple?: boolean;
|
|
612
|
+
selection?: Array<string>;
|
|
613
|
+
filter?: (language: LanguageResponseModel) => boolean;
|
|
614
|
+
}
|
|
615
|
+
interface UmbLanguagePickerModalResult {
|
|
616
|
+
selection: Array<string>;
|
|
617
|
+
}
|
|
618
|
+
declare const UMB_LANGUAGE_PICKER_MODAL: UmbModalToken$1<UmbLanguagePickerModalData, UmbLanguagePickerModalResult>;
|
|
619
|
+
|
|
620
|
+
interface UmbLinkPickerModalData {
|
|
621
|
+
index: number | null;
|
|
622
|
+
link: UmbLinkPickerLink;
|
|
623
|
+
config: UmbLinkPickerConfig;
|
|
624
|
+
}
|
|
625
|
+
type UmbLinkPickerModalResult = {
|
|
626
|
+
index: number | null;
|
|
627
|
+
link: UmbLinkPickerLink;
|
|
628
|
+
};
|
|
629
|
+
interface UmbLinkPickerLink {
|
|
630
|
+
icon?: string | null;
|
|
631
|
+
name?: string | null;
|
|
632
|
+
published?: boolean | null;
|
|
633
|
+
queryString?: string | null;
|
|
634
|
+
target?: string | null;
|
|
635
|
+
trashed?: boolean | null;
|
|
636
|
+
udi?: string | null;
|
|
637
|
+
url?: string | null;
|
|
638
|
+
}
|
|
639
|
+
interface UmbLinkPickerConfig {
|
|
640
|
+
hideAnchor?: boolean;
|
|
641
|
+
ignoreUserStartNodes?: boolean;
|
|
642
|
+
overlaySize?: UUIModalSidebarSize;
|
|
643
|
+
}
|
|
644
|
+
declare const UMB_LINK_PICKER_MODAL: UmbModalToken$1<UmbLinkPickerModalData, UmbLinkPickerModalResult>;
|
|
645
|
+
|
|
646
|
+
interface UmbMediaPickerModalData {
|
|
647
|
+
multiple?: boolean;
|
|
648
|
+
selection: Array<string>;
|
|
649
|
+
}
|
|
650
|
+
interface UmbMediaPickerModalResult {
|
|
651
|
+
selection: Array<string>;
|
|
652
|
+
}
|
|
653
|
+
declare const UMB_MEDIA_PICKER_MODAL: UmbModalToken$1<UmbMediaPickerModalData, UmbMediaPickerModalResult>;
|
|
654
|
+
|
|
655
|
+
interface UmbPropertyEditorUIPickerModalData {
|
|
656
|
+
selection?: Array<string>;
|
|
657
|
+
submitLabel?: string;
|
|
658
|
+
}
|
|
659
|
+
type UmbPropertyEditorUIPickerModalResult = {
|
|
660
|
+
selection: Array<string>;
|
|
661
|
+
};
|
|
662
|
+
declare const UMB_PROPERTY_EDITOR_UI_PICKER_MODAL: UmbModalToken$1<UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult>;
|
|
663
|
+
|
|
664
|
+
interface UmbPropertySettingsModalResult {
|
|
665
|
+
label: string;
|
|
666
|
+
alias: string;
|
|
667
|
+
description: string;
|
|
668
|
+
propertyEditorUI?: string;
|
|
669
|
+
labelOnTop: boolean;
|
|
670
|
+
validation: {
|
|
671
|
+
mandatory: boolean;
|
|
672
|
+
mandatoryMessage: string;
|
|
673
|
+
pattern: string;
|
|
674
|
+
patternMessage: string;
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
declare const UMB_PROPERTY_SETTINGS_MODAL: UmbModalToken$1<object, UmbPropertySettingsModalResult>;
|
|
678
|
+
|
|
679
|
+
declare const UMB_SEARCH_MODAL: UmbModalToken$1<object, unknown>;
|
|
680
|
+
|
|
681
|
+
interface UmbSectionPickerModalData {
|
|
682
|
+
multiple: boolean;
|
|
683
|
+
selection: string[];
|
|
684
|
+
}
|
|
685
|
+
declare const UMB_SECTION_PICKER_MODAL: UmbModalToken$1<UmbSectionPickerModalData, unknown>;
|
|
686
|
+
|
|
687
|
+
declare const UMB_USER_GROUP_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<UserDetails>, unknown>;
|
|
688
|
+
|
|
689
|
+
declare const UMB_USER_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<UserDetails>, unknown>;
|
|
690
|
+
|
|
125
691
|
interface UmbPickerModalData<T> {
|
|
126
692
|
multiple: boolean;
|
|
127
693
|
selection: Array<string>;
|
|
@@ -131,4 +697,4 @@ interface UmbPickerModalResult<T> {
|
|
|
131
697
|
selection: Array<string>;
|
|
132
698
|
}
|
|
133
699
|
|
|
134
|
-
export { UMB_MODAL_CONTEXT_TOKEN, UmbModalConfig, UmbModalContext, UmbModalHandler, UmbModalHandlerClass, UmbModalToken, UmbModalType, UmbPickerModalData, UmbPickerModalResult };
|
|
700
|
+
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_DOCUMENT_PICKER_MODAL, UMB_EMBEDDED_MEDIA_MODAL, UMB_EXAMINE_FIELDS_SETTINGS_MODAL, UMB_EXPORT_DICTIONARY_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_USER_GROUP_PICKER_MODAL, UMB_USER_PICKER_MODAL, UmbAllowedDocumentTypesModalData, UmbAllowedDocumentTypesModalResult, UmbChangePasswordModalData, UmbConfirmModalData, UmbConfirmModalResult, UmbContextDebuggerModalData, UmbCreateDictionaryModalData, UmbCreateDictionaryModalResult, UmbCreateDocumentModalResultData, UmbDocumentPickerModalData, UmbDocumentPickerModalResult, UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult, UmbExamineFieldsSettingsModalData, UmbExportDictionaryModalData, UmbExportDictionaryModalResult, 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 };
|
package/observable-api.d.ts
CHANGED
|
@@ -246,4 +246,4 @@ declare function appendToFrozenArray<T>(data: T[], entry: T, getUniqueMethod?: (
|
|
|
246
246
|
*/
|
|
247
247
|
declare function partialUpdateFrozenArray<T>(data: T[], partialEntry: Partial<T>, findMethod: (entry: T) => boolean): T[];
|
|
248
248
|
|
|
249
|
-
export { ArrayState, BooleanState, ClassState, DeepState, NumberState, ObjectState, StringState, UmbObserver, UmbObserverController, appendToFrozenArray, createObservablePart, partialUpdateFrozenArray };
|
|
249
|
+
export { ArrayState, BasicState, BooleanState, ClassState, DeepState, NumberState, ObjectState, StringState, UmbObserver, UmbObserverController, appendToFrozenArray, createObservablePart, partialUpdateFrozenArray };
|
package/package.json
CHANGED
package/router.d.ts
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { UmbContextToken } from './context-api';
|
|
2
|
+
import { UmbControllerHostInterface } from './controller';
|
|
3
|
+
import { UmbModalRouteRegistration } from './modal';
|
|
4
|
+
|
|
5
|
+
interface UmbRouteLocation {
|
|
6
|
+
name?: string;
|
|
7
|
+
params: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class UmbRouteContext {
|
|
13
|
+
#private;
|
|
14
|
+
private _onGotModals;
|
|
15
|
+
constructor(host: UmbControllerHostInterface, _onGotModals: (contextRoutes: any) => void);
|
|
16
|
+
registerModal(registration: UmbModalRouteRegistration): UmbModalRouteRegistration<object, any>;
|
|
17
|
+
unregisterModal(registrationToken: ReturnType<typeof this$1.registerModal>): void;
|
|
18
|
+
_internal_routerGotBasePath(routerBasePath: string): void;
|
|
19
|
+
_internal_modalRouterChanged(activeModalPath: string | undefined): void;
|
|
20
|
+
}
|
|
21
|
+
declare const UMB_ROUTE_CONTEXT_TOKEN: UmbContextToken<UmbRouteContext>;
|
|
22
|
+
|
|
23
|
+
interface IRouterSlot<D = any, P = any> extends HTMLElement {
|
|
24
|
+
readonly route: IRoute<D> | null;
|
|
25
|
+
readonly isRoot: boolean;
|
|
26
|
+
readonly fragments: IPathFragments | null;
|
|
27
|
+
readonly params: Params | null;
|
|
28
|
+
readonly match: IRouteMatch<D> | null;
|
|
29
|
+
routes: IRoute<D>[];
|
|
30
|
+
add: ((routes: IRoute<D>[], navigate?: boolean) => void);
|
|
31
|
+
clear: (() => void);
|
|
32
|
+
render: (() => Promise<void>);
|
|
33
|
+
constructAbsolutePath: ((path: PathFragment) => string);
|
|
34
|
+
parent: IRouterSlot<P> | null | undefined;
|
|
35
|
+
queryParentRouterSlot: (() => IRouterSlot<P> | null);
|
|
36
|
+
}
|
|
37
|
+
type IRoutingInfo<D = any, P = any> = {
|
|
38
|
+
slot: IRouterSlot<D, P>;
|
|
39
|
+
match: IRouteMatch<D>;
|
|
40
|
+
};
|
|
41
|
+
type CustomResolver<D = any, P = any> = ((info: IRoutingInfo<D>) => boolean | void | Promise<boolean> | Promise<void>);
|
|
42
|
+
type Guard<D = any, P = any> = ((info: IRoutingInfo<D, P>) => boolean | Promise<boolean>);
|
|
43
|
+
type PageComponent = HTMLElement;
|
|
44
|
+
type ModuleResolver = Promise<{
|
|
45
|
+
default: any;
|
|
46
|
+
}>;
|
|
47
|
+
type Class<T extends PageComponent = PageComponent> = {
|
|
48
|
+
new (...args: any[]): T;
|
|
49
|
+
};
|
|
50
|
+
type Setup<D = any> = ((component: PageComponent, info: IRoutingInfo<D>) => void);
|
|
51
|
+
type PathMatch = "prefix" | "suffix" | "full" | "fuzzy";
|
|
52
|
+
/**
|
|
53
|
+
* The base route interface.
|
|
54
|
+
* D = the data type of the data
|
|
55
|
+
*/
|
|
56
|
+
interface IRouteBase<D = any> {
|
|
57
|
+
path: PathFragment;
|
|
58
|
+
data?: D;
|
|
59
|
+
guards?: Guard[];
|
|
60
|
+
pathMatch?: PathMatch;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Route type used for redirection.
|
|
64
|
+
*/
|
|
65
|
+
interface IRedirectRoute<D = any> extends IRouteBase<D> {
|
|
66
|
+
redirectTo: string;
|
|
67
|
+
preserveQuery?: boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Route type used to resolve and stamp components.
|
|
71
|
+
*/
|
|
72
|
+
interface IComponentRoute<D = any> extends IRouteBase<D> {
|
|
73
|
+
component: Class | ModuleResolver | PageComponent | (() => Class) | (() => PageComponent) | (() => ModuleResolver);
|
|
74
|
+
setup?: Setup;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Route type used to take control of how the route should resolve.
|
|
78
|
+
*/
|
|
79
|
+
interface IResolverRoute<D = any> extends IRouteBase<D> {
|
|
80
|
+
resolve: CustomResolver;
|
|
81
|
+
}
|
|
82
|
+
type IRoute<D = any> = IRedirectRoute<D> | IComponentRoute<D> | IResolverRoute<D>;
|
|
83
|
+
type PathFragment = string;
|
|
84
|
+
type IPathFragments = {
|
|
85
|
+
consumed: PathFragment;
|
|
86
|
+
rest: PathFragment;
|
|
87
|
+
};
|
|
88
|
+
interface IRouteMatch<D = any> {
|
|
89
|
+
route: IRoute<D>;
|
|
90
|
+
params: Params;
|
|
91
|
+
fragments: IPathFragments;
|
|
92
|
+
match: RegExpMatchArray;
|
|
93
|
+
}
|
|
94
|
+
type PushStateEvent = CustomEvent<null>;
|
|
95
|
+
type ReplaceStateEvent = CustomEvent<null>;
|
|
96
|
+
type ChangeStateEvent = CustomEvent<null>;
|
|
97
|
+
type WillChangeStateEvent = CustomEvent<{
|
|
98
|
+
url?: string | null;
|
|
99
|
+
eventName: GlobalRouterEvent;
|
|
100
|
+
}>;
|
|
101
|
+
type NavigationStartEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
|
|
102
|
+
type NavigationSuccessEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
|
|
103
|
+
type NavigationCancelEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
|
|
104
|
+
type NavigationErrorEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
|
|
105
|
+
type NavigationEndEvent<D = any> = CustomEvent<IRoutingInfo<D>>;
|
|
106
|
+
type Params = {
|
|
107
|
+
[key: string]: string;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* History related events.
|
|
111
|
+
*/
|
|
112
|
+
type GlobalRouterEvent = "pushstate" | "replacestate" | "popstate" | "changestate" | "willchangestate" | "navigationstart" | "navigationcancel" | "navigationerror" | "navigationsuccess" | "navigationend";
|
|
113
|
+
declare global {
|
|
114
|
+
interface GlobalEventHandlersEventMap {
|
|
115
|
+
"pushstate": PushStateEvent;
|
|
116
|
+
"replacestate": ReplaceStateEvent;
|
|
117
|
+
"popstate": PopStateEvent;
|
|
118
|
+
"changestate": ChangeStateEvent;
|
|
119
|
+
"navigationstart": NavigationStartEvent;
|
|
120
|
+
"navigationend": NavigationEndEvent;
|
|
121
|
+
"navigationsuccess": NavigationSuccessEvent;
|
|
122
|
+
"navigationcancel": NavigationCancelEvent;
|
|
123
|
+
"navigationerror": NavigationErrorEvent;
|
|
124
|
+
"willchangestate": WillChangeStateEvent;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
type UmbRoute = IRoute;
|
|
129
|
+
|
|
130
|
+
export { UMB_ROUTE_CONTEXT_TOKEN, UmbRoute, UmbRouteContext, UmbRouteLocation };
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
369
|
"name": "umb-examine-fields-settings-modal",
|
|
370
|
-
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_fields`
|
|
370
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_fields` - ",
|
|
371
371
|
"attributes": []
|
|
372
372
|
},
|
|
373
373
|
{
|
|
@@ -1318,8 +1318,18 @@
|
|
|
1318
1318
|
},
|
|
1319
1319
|
{
|
|
1320
1320
|
"name": "umb-input-multi-url-picker",
|
|
1321
|
-
"description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - when the value of the input changes\n\n * `blur` {} - when the input loses focus\n\n * `focus` {} - when the input gains focus\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 * `hide-anchor` {`boolean | undefined`} - \n\n * `ignoreUserStartNodes` {`boolean | undefined`} - \n\n * `overlaySize` {UUIModalSidebarSize} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \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 * `hideAnchor` {`boolean | undefined`} - \n\n * `ignoreUserStartNodes` {`boolean | undefined`} - \n\n * `overlaySize` {UUIModalSidebarSize} - \n\n * `urls` {Array<UmbLinkPickerLink>} - \n\n * `_urls` {`
|
|
1321
|
+
"description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - when the value of the input changes\n\n * `blur` {} - when the input loses focus\n\n * `focus` {} - when the input gains focus\n\nAttributes:\n\n * `alias` {`string | undefined`} - \n\n * `variantId` - \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 * `hide-anchor` {`boolean | undefined`} - \n\n * `ignoreUserStartNodes` {`boolean | undefined`} - \n\n * `overlaySize` {UUIModalSidebarSize} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `alias` {`string | undefined`} - \n\n * `variantId` - \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 * `hideAnchor` {`boolean | undefined`} - \n\n * `ignoreUserStartNodes` {`boolean | undefined`} - \n\n * `overlaySize` {UUIModalSidebarSize} - \n\n * `urls` {Array<UmbLinkPickerLink>} - \n\n * `_urls` {`any[]`} - \n\n * `_modalRoute` - \n\n * `myModalRegistration` - \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`} - ",
|
|
1322
1322
|
"attributes": [
|
|
1323
|
+
{
|
|
1324
|
+
"name": "alias",
|
|
1325
|
+
"description": "`alias` {`string | undefined`} - \n\nProperty: alias",
|
|
1326
|
+
"values": []
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
"name": "variantId",
|
|
1330
|
+
"description": "`variantId` - \n\nProperty: variantId",
|
|
1331
|
+
"values": []
|
|
1332
|
+
},
|
|
1323
1333
|
{
|
|
1324
1334
|
"name": "min",
|
|
1325
1335
|
"description": "`min` {number} - This is a minimum amount of selected items in this input.\n\nProperty: min\n\nDefault: undefined",
|
|
@@ -2054,23 +2064,21 @@
|
|
|
2054
2064
|
},
|
|
2055
2065
|
{
|
|
2056
2066
|
"name": "umb-confirm-modal",
|
|
2057
|
-
"description": "Attributes:\n\n * `data`
|
|
2067
|
+
"description": "Attributes:\n\n * `data` - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `modalHandler` - \n\n * `data` - ",
|
|
2058
2068
|
"attributes": [
|
|
2059
2069
|
{
|
|
2060
2070
|
"name": "data",
|
|
2061
|
-
"description": "`data`
|
|
2062
|
-
"values": []
|
|
2071
|
+
"description": "`data` - \n\nProperty: data"
|
|
2063
2072
|
}
|
|
2064
2073
|
]
|
|
2065
2074
|
},
|
|
2066
2075
|
{
|
|
2067
2076
|
"name": "umb-embedded-media-modal",
|
|
2068
|
-
"description": "Attributes:\n\n * `data`
|
|
2077
|
+
"description": "Attributes:\n\n * `data` - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `modalHandler` - \n\n * `data` - \n\n * `_model` {`UmbEmbeddedMediaModalModel`} - ",
|
|
2069
2078
|
"attributes": [
|
|
2070
2079
|
{
|
|
2071
2080
|
"name": "data",
|
|
2072
|
-
"description": "`data`
|
|
2073
|
-
"values": []
|
|
2081
|
+
"description": "`data` - \n\nProperty: data"
|
|
2074
2082
|
}
|
|
2075
2083
|
]
|
|
2076
2084
|
},
|
|
@@ -2094,7 +2102,7 @@
|
|
|
2094
2102
|
},
|
|
2095
2103
|
{
|
|
2096
2104
|
"name": "umb-link-picker-modal",
|
|
2097
|
-
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_selectedKey` {`string | undefined`} - \n\n * `
|
|
2105
|
+
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_selectedKey` {`string | undefined`} - \n\n * `_index` {`number | null`} - \n\n * `_link` - \n\n * `_layout` - \n\n * `_linkInput` - \n\n * `_linkQueryInput` - \n\n * `_linkTitleInput` - ",
|
|
2098
2106
|
"attributes": []
|
|
2099
2107
|
},
|
|
2100
2108
|
{
|
|
@@ -2182,12 +2190,11 @@
|
|
|
2182
2190
|
},
|
|
2183
2191
|
{
|
|
2184
2192
|
"name": "umb-property-editor-ui-picker-modal",
|
|
2185
|
-
"description": "Attributes:\n\n * `data`
|
|
2193
|
+
"description": "Attributes:\n\n * `data` - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `data` - \n\n * `_groupedPropertyEditorUIs` {`GroupedPropertyEditorUIs`} - \n\n * `_propertyEditorUIs` {`any[]`} - \n\n * `_selection` {`string[]`} - \n\n * `_submitLabel` {`string`} - \n\n * `modalHandler` - ",
|
|
2186
2194
|
"attributes": [
|
|
2187
2195
|
{
|
|
2188
2196
|
"name": "data",
|
|
2189
|
-
"description": "`data`
|
|
2190
|
-
"values": []
|
|
2197
|
+
"description": "`data` - \n\nProperty: data"
|
|
2191
2198
|
}
|
|
2192
2199
|
]
|
|
2193
2200
|
},
|
|
@@ -2492,11 +2499,11 @@
|
|
|
2492
2499
|
},
|
|
2493
2500
|
{
|
|
2494
2501
|
"name": "umb-property-editor-ui-multi-url-picker",
|
|
2495
|
-
"description": "Events:\n\n * `property-value-change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `value` {`
|
|
2502
|
+
"description": "Events:\n\n * `property-value-change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `value` {`any[]`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `value` {`any[]`} - \n\n * `config` {`any[]`} - \n\n * `_overlaySize` {`UUIModalSidebarSize | undefined`} - \n\n * `_hideAnchor` {`boolean | undefined`} - \n\n * `_ignoreUserStartNodes` {`boolean | undefined`} - \n\n * `_maxNumber` {`number | undefined`} - \n\n * `_minNumber` {`number | undefined`} - \n\n * `_alias` {`string | undefined`} - \n\n * `_propertyVariantId` {`string | undefined`} - ",
|
|
2496
2503
|
"attributes": [
|
|
2497
2504
|
{
|
|
2498
2505
|
"name": "value",
|
|
2499
|
-
"description": "`value` {`
|
|
2506
|
+
"description": "`value` {`any[]`} - \n\nProperty: value\n\nDefault: "
|
|
2500
2507
|
},
|
|
2501
2508
|
{
|
|
2502
2509
|
"name": "onproperty-value-change",
|
|
@@ -2823,12 +2830,12 @@
|
|
|
2823
2830
|
"attributes": []
|
|
2824
2831
|
},
|
|
2825
2832
|
{
|
|
2826
|
-
"name": "umb-export-dictionary-modal
|
|
2833
|
+
"name": "umb-export-dictionary-modal",
|
|
2827
2834
|
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_form` {`HTMLFormElement`} - ",
|
|
2828
2835
|
"attributes": []
|
|
2829
2836
|
},
|
|
2830
2837
|
{
|
|
2831
|
-
"name": "umb-import-dictionary-modal
|
|
2838
|
+
"name": "umb-import-dictionary-modal",
|
|
2832
2839
|
"description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_form` {`HTMLFormElement`} - \n\n * `_uploadedDictionary` - \n\n * `_showUploadView` {`boolean`} - \n\n * `_showImportView` {`boolean`} - \n\n * `_showErrorView` {`boolean`} - \n\n * `_selection` {`string[]`} - ",
|
|
2833
2840
|
"attributes": []
|
|
2834
2841
|
},
|
|
@@ -2858,12 +2865,11 @@
|
|
|
2858
2865
|
},
|
|
2859
2866
|
{
|
|
2860
2867
|
"name": "umb-change-password-modal",
|
|
2861
|
-
"description": "Attributes:\n\n * `data`
|
|
2868
|
+
"description": "Attributes:\n\n * `data` - \n\nProperties:\n\n * `styles` - \n\n * `modalHandler` - \n\n * `data` - ",
|
|
2862
2869
|
"attributes": [
|
|
2863
2870
|
{
|
|
2864
2871
|
"name": "data",
|
|
2865
|
-
"description": "`data`
|
|
2866
|
-
"values": []
|
|
2872
|
+
"description": "`data` - \n\nProperty: data"
|
|
2867
2873
|
}
|
|
2868
2874
|
]
|
|
2869
2875
|
},
|
|
@@ -3037,11 +3043,34 @@
|
|
|
3037
3043
|
},
|
|
3038
3044
|
{
|
|
3039
3045
|
"name": "umb-router-slot",
|
|
3040
|
-
"description": "Events:\n\n * `init` - fires when the router is connected\n\n * `change` - fires when a path of this router is changed\n\nAttributes:\n\n * `routes` {`
|
|
3046
|
+
"description": "Events:\n\n * `init` - fires when the router is connected\n\n * `change` - fires when a path of this router is changed\n\nAttributes:\n\n * `routes` {`any[] | undefined`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `routes` {`any[] | undefined`} - \n\n * `_routerPath` {`string | undefined`} - \n\n * `absoluteRouterPath` {`string | undefined`} - \n\n * `_activeLocalPath` {`string | undefined`} - \n\n * `localActiveViewPath` {`string | undefined`} - \n\n * `absoluteActiveViewPath` {`string`} - \n\n * `_onNavigationChanged` - ",
|
|
3041
3047
|
"attributes": [
|
|
3042
3048
|
{
|
|
3043
3049
|
"name": "routes",
|
|
3044
|
-
"description": "`routes` {`
|
|
3050
|
+
"description": "`routes` {`any[] | undefined`} - \n\nProperty: routes",
|
|
3051
|
+
"values": []
|
|
3052
|
+
},
|
|
3053
|
+
{
|
|
3054
|
+
"name": "oninit",
|
|
3055
|
+
"description": "`init` - fires when the router is connected"
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
"name": "onchange",
|
|
3059
|
+
"description": "`change` - fires when a path of this router is changed"
|
|
3060
|
+
}
|
|
3061
|
+
]
|
|
3062
|
+
},
|
|
3063
|
+
{
|
|
3064
|
+
"name": "umb-variant-router-slot",
|
|
3065
|
+
"description": "Events:\n\n * `init` - fires when the router is connected\n\n * `change` - fires when a path of this router is changed\n\nAttributes:\n\n * `variantId` {`UmbVariantId[]`} - \n\n * `routes` {`any[] | undefined`} - \n\nProperties:\n\n * `_routes` {`any[] | undefined`} - \n\n * `variantId` {`UmbVariantId[]`} - \n\n * `styles` {`CSSResult[]`} - \n\n * `routes` {`any[] | undefined`} - \n\n * `_routerPath` {`string | undefined`} - \n\n * `absoluteRouterPath` {`string | undefined`} - \n\n * `_activeLocalPath` {`string | undefined`} - \n\n * `localActiveViewPath` {`string | undefined`} - \n\n * `absoluteActiveViewPath` {`string`} - \n\n * `_onNavigationChanged` - ",
|
|
3066
|
+
"attributes": [
|
|
3067
|
+
{
|
|
3068
|
+
"name": "variantId",
|
|
3069
|
+
"description": "`variantId` {`UmbVariantId[]`} - \n\nProperty: variantId"
|
|
3070
|
+
},
|
|
3071
|
+
{
|
|
3072
|
+
"name": "routes",
|
|
3073
|
+
"description": "`routes` {`any[] | undefined`} - \n\nProperty: routes",
|
|
3045
3074
|
"values": []
|
|
3046
3075
|
},
|
|
3047
3076
|
{
|