dolfo-angular 1.211.0 → 1.212.0
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.
|
@@ -2160,6 +2160,47 @@ class OverlayManager {
|
|
|
2160
2160
|
};
|
|
2161
2161
|
}
|
|
2162
2162
|
|
|
2163
|
+
class RouteConfig {
|
|
2164
|
+
path;
|
|
2165
|
+
loadComponent;
|
|
2166
|
+
redirectTo;
|
|
2167
|
+
pathMatch = "full";
|
|
2168
|
+
title;
|
|
2169
|
+
canActivate = [];
|
|
2170
|
+
constructor(path, withRouteCheck = true) {
|
|
2171
|
+
this.path = path;
|
|
2172
|
+
if (withRouteCheck)
|
|
2173
|
+
this.canActivate.push(RouteCheckService);
|
|
2174
|
+
}
|
|
2175
|
+
withTitle = (title) => {
|
|
2176
|
+
this.title = title;
|
|
2177
|
+
return this;
|
|
2178
|
+
};
|
|
2179
|
+
loadUrl = (imp) => {
|
|
2180
|
+
this.loadComponent = () => imp.then(t => Object.values(t)[0]);
|
|
2181
|
+
return this;
|
|
2182
|
+
};
|
|
2183
|
+
withRedirect = (url) => {
|
|
2184
|
+
this.redirectTo = url;
|
|
2185
|
+
return this;
|
|
2186
|
+
};
|
|
2187
|
+
addGuard = (guard) => {
|
|
2188
|
+
if (Array.isArray(guard))
|
|
2189
|
+
this.canActivate.push(...guard);
|
|
2190
|
+
else
|
|
2191
|
+
this.canActivate.push(guard);
|
|
2192
|
+
return this;
|
|
2193
|
+
};
|
|
2194
|
+
toRoute = () => ({
|
|
2195
|
+
loadComponent: this.loadComponent,
|
|
2196
|
+
path: this.path,
|
|
2197
|
+
pathMatch: this.pathMatch,
|
|
2198
|
+
title: this.title,
|
|
2199
|
+
redirectTo: this.redirectTo,
|
|
2200
|
+
canActivate: this.canActivate
|
|
2201
|
+
});
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2163
2204
|
class ContextMenuDirective extends Subscriptable {
|
|
2164
2205
|
contextMenuService;
|
|
2165
2206
|
elRef;
|
|
@@ -2547,5 +2588,5 @@ const errorInterceptor = (req, next) => {
|
|
|
2547
2588
|
* Generated bundle index. Do not edit.
|
|
2548
2589
|
*/
|
|
2549
2590
|
|
|
2550
|
-
export { AutocompleteComponent, BaseAppComponent, BaseFormInput, ButtonComponent, CONTEXT_MENU_DESTROY_TOKEN, ColumnAlign, ColumnDataType, ComboboxComponent, ContextMenuComponent, ContextMenuDirective, ContextMenuService, DatepickerComponent, DialogActionType, DialogComponent, DialogContentComponent, DialogFooterComponent, DialogHeaderComponent, DialogLayoutComponent, DialogLayoutModule, DialogService, DialogUtilsService, DirectivesModule, FormComponent, FormModule, Formable, GridComponent, GridConfig, GridModule, ICON_COMPONENT, IconComponent, IconWrapperComponent, InputCheckboxComponent, InputContainerComponent, InputRadioComponent, InputTextComponent, LANGUAGE_TOKEN, LayoutModule, LoaderComponent, MAX_DEVICE_SIZE, MAX_SMALL_DEVICE, NavigateDirective, NotificationComponent, NotificationService, OverlayManager, POPOVER_DESTROY_TOKEN, PopoverComponent, PopoverDirective, PopoverService, ROUTE_CHECK_SERVICE, RouteCheckService, ScrollDragDirective, StorageValues, StoreLists, StoreService, Subscriptable, TOOLTIP_DESTROY_TOKEN, TRANSLATE_STORAGE_KEY, TooltipComponent, TooltipDirective, TooltipService, TranslatePipe, TranslateService, authInterceptor, errorInterceptor, isDeepEqual, passwordValidator, provideDolfoLanguages };
|
|
2591
|
+
export { AutocompleteComponent, BaseAppComponent, BaseFormInput, ButtonComponent, CONTEXT_MENU_DESTROY_TOKEN, ColumnAlign, ColumnDataType, ComboboxComponent, ContextMenuComponent, ContextMenuDirective, ContextMenuService, DatepickerComponent, DialogActionType, DialogComponent, DialogContentComponent, DialogFooterComponent, DialogHeaderComponent, DialogLayoutComponent, DialogLayoutModule, DialogService, DialogUtilsService, DirectivesModule, FormComponent, FormModule, Formable, GridComponent, GridConfig, GridModule, ICON_COMPONENT, IconComponent, IconWrapperComponent, InputCheckboxComponent, InputContainerComponent, InputRadioComponent, InputTextComponent, LANGUAGE_TOKEN, LayoutModule, LoaderComponent, MAX_DEVICE_SIZE, MAX_SMALL_DEVICE, NavigateDirective, NotificationComponent, NotificationService, OverlayManager, POPOVER_DESTROY_TOKEN, PopoverComponent, PopoverDirective, PopoverService, ROUTE_CHECK_SERVICE, RouteCheckService, RouteConfig, ScrollDragDirective, StorageValues, StoreLists, StoreService, Subscriptable, TOOLTIP_DESTROY_TOKEN, TRANSLATE_STORAGE_KEY, TooltipComponent, TooltipDirective, TooltipService, TranslatePipe, TranslateService, authInterceptor, errorInterceptor, isDeepEqual, passwordValidator, provideDolfoLanguages };
|
|
2551
2592
|
//# sourceMappingURL=dolfo-angular.mjs.map
|