Пример:
const router = inject(Router);
router.events
.pipe(
deepSearchForRouteData<MyRouteData>((data) => !!data && Object.hasOwn(data, 'config')),
map((data) => data?.config),| import { | |
| BehaviorSubject, | |
| combineLatest, | |
| defaultIfEmpty, | |
| filter, | |
| iif, | |
| map, | |
| Observable, | |
| observeOn, | |
| of, |
| /* eslint-disable @typescript-eslint/triple-slash-reference */ | |
| /// <reference path="./types/input-keysym.d.ts" /> | |
| /// <reference path="./types/input-utl.d.ts" /> | |
| /// <reference path="./types/util-browser.d.ts" /> | |
| /// <reference path="./types/rfb.d.ts" /> | |
| import * as NovncBrowserUtils from '@novnc/novnc/core/util/browser'; | |
| import * as NovncInputUtils from '@novnc/novnc/core/input/util'; | |
| import NovncKeysym from '@novnc/novnc/core/input/keysym'; | |
| import NovncClient from '@novnc/novnc/core/rfb'; |
| declare module '@novnc/novnc/core/input/keysym' { | |
| export default { | |
| XK_VoidSymbol: 0xffffff, /* Void symbol */ | |
| XK_BackSpace: 0xff08, /* Back space, back char */ | |
| XK_Tab: 0xff09, | |
| XK_Linefeed: 0xff0a, /* Linefeed, LF */ | |
| XK_Clear: 0xff0b, | |
| XK_Return: 0xff0d, /* Return, enter */ | |
| XK_Pause: 0xff13, /* Pause, hold */ |
| #NoEnv | |
| #SingleInstance force | |
| SetWinDelay, -1 | |
| DetectHiddenWindows, on | |
| Menu, Tray, NoStandard | |
| ; Menu, Tray, Icon, wt-tilda.ico | |
| Menu, Tray, Add, Exit, Exit |
| ; Config | |
| #Persistent | |
| #SingleInstance force | |
| ; 200 wheel events per second rate | |
| #HotkeyInterval 1000 | |
| #MaxHotkeysPerInterval 200 | |
| DeactivateMenuItem := "Deactivate (Win + Shift + W)" | |
| EnableHScrollMenuItem := "Enable HScroll (Win + Shift + H)" |
| class Observable { | |
| protected listeners: Map< any, Function > = new Map(); | |
| constructor() {} | |
| public subscribe(listener: any, next: Function) { | |
| this.listeners.set(listener, next); | |
| } |
Directive: dnd-draggable
Inputs:
dragEnabled: booleandragData: any - The data that has to be dragged. It can be any JS object.