@ng-doc/ui-kit 22.0.0-beta.2 → 22.0.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.
- package/README.md +20 -29
- package/fesm2022/ng-doc-ui-kit-cdk-combobox-host.mjs +43 -22
- package/fesm2022/ng-doc-ui-kit-cdk-combobox-host.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-classes-base-input.mjs +24 -13
- package/fesm2022/ng-doc-ui-kit-classes-base-input.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-classes-overlay-ref.mjs +62 -22
- package/fesm2022/ng-doc-ui-kit-classes-overlay-ref.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-blockquote.mjs +39 -14
- package/fesm2022/ng-doc-ui-kit-components-blockquote.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-button-icon.mjs +30 -18
- package/fesm2022/ng-doc-ui-kit-components-button-icon.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-button-toggle.mjs +12 -9
- package/fesm2022/ng-doc-ui-kit-components-button-toggle.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-button.mjs +15 -24
- package/fesm2022/ng-doc-ui-kit-components-button.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-checkbox.mjs +13 -13
- package/fesm2022/ng-doc-ui-kit-components-checkbox.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-clear-control.mjs +14 -9
- package/fesm2022/ng-doc-ui-kit-components-clear-control.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-combobox.mjs +30 -26
- package/fesm2022/ng-doc-ui-kit-components-combobox.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-data-list-group.mjs +37 -38
- package/fesm2022/ng-doc-ui-kit-components-data-list-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-data-list.mjs +32 -39
- package/fesm2022/ng-doc-ui-kit-components-data-list.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-dialog-outlet.mjs +23 -20
- package/fesm2022/ng-doc-ui-kit-components-dialog-outlet.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-dot.mjs +20 -16
- package/fesm2022/ng-doc-ui-kit-components-dot.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-dropdown.mjs +120 -125
- package/fesm2022/ng-doc-ui-kit-components-dropdown.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-expander.mjs +17 -17
- package/fesm2022/ng-doc-ui-kit-components-expander.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-floated-border.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-components-floated-border.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-floated-content.mjs +16 -17
- package/fesm2022/ng-doc-ui-kit-components-floated-content.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-focus-control.mjs +20 -12
- package/fesm2022/ng-doc-ui-kit-components-focus-control.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-icon.mjs +175 -54
- package/fesm2022/ng-doc-ui-kit-components-icon.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-input-wrapper.mjs +43 -46
- package/fesm2022/ng-doc-ui-kit-components-input-wrapper.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-label.mjs +14 -16
- package/fesm2022/ng-doc-ui-kit-components-label.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-line.mjs +7 -4
- package/fesm2022/ng-doc-ui-kit-components-line.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-list.mjs +24 -8
- package/fesm2022/ng-doc-ui-kit-components-list.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-magnifier-controller.mjs +7 -3
- package/fesm2022/ng-doc-ui-kit-components-magnifier-controller.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-magnifier.mjs +31 -15
- package/fesm2022/ng-doc-ui-kit-components-magnifier.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-option-group.mjs +22 -27
- package/fesm2022/ng-doc-ui-kit-components-option-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-option.mjs +28 -22
- package/fesm2022/ng-doc-ui-kit-components-option.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-overlay-container.mjs +56 -52
- package/fesm2022/ng-doc-ui-kit-components-overlay-container.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-overlay-pointer.mjs +19 -21
- package/fesm2022/ng-doc-ui-kit-components-overlay-pointer.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-pane.mjs +91 -69
- package/fesm2022/ng-doc-ui-kit-components-pane.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-selection.mjs +173 -76
- package/fesm2022/ng-doc-ui-kit-components-selection.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-sidenav.mjs +23 -22
- package/fesm2022/ng-doc-ui-kit-components-sidenav.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-spinner.mjs +14 -12
- package/fesm2022/ng-doc-ui-kit-components-spinner.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-tab-group.mjs +86 -61
- package/fesm2022/ng-doc-ui-kit-components-tab-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-tab-routes-group.mjs +16 -13
- package/fesm2022/ng-doc-ui-kit-components-tab-routes-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-tag.mjs +23 -24
- package/fesm2022/ng-doc-ui-kit-components-tag.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-text.mjs +37 -52
- package/fesm2022/ng-doc-ui-kit-components-text.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-toggle.mjs +82 -57
- package/fesm2022/ng-doc-ui-kit-components-toggle.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-wrapper.mjs +7 -4
- package/fesm2022/ng-doc-ui-kit-components-wrapper.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-autofocus.mjs +13 -10
- package/fesm2022/ng-doc-ui-kit-directives-autofocus.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-checked-change.mjs +30 -26
- package/fesm2022/ng-doc-ui-kit-directives-checked-change.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-data.mjs +8 -5
- package/fesm2022/ng-doc-ui-kit-directives-data.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-dropdown-handler.mjs +19 -18
- package/fesm2022/ng-doc-ui-kit-directives-dropdown-handler.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-dropdown-origin.mjs +3 -4
- package/fesm2022/ng-doc-ui-kit-directives-dropdown-origin.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-event-switcher.mjs +22 -19
- package/fesm2022/ng-doc-ui-kit-directives-event-switcher.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-focus-catcher.mjs +30 -25
- package/fesm2022/ng-doc-ui-kit-directives-focus-catcher.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-focusable.mjs +13 -16
- package/fesm2022/ng-doc-ui-kit-directives-focusable.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-fullscreen.mjs +90 -0
- package/fesm2022/ng-doc-ui-kit-directives-fullscreen.mjs.map +1 -0
- package/fesm2022/ng-doc-ui-kit-directives-hotkey.mjs +34 -28
- package/fesm2022/ng-doc-ui-kit-directives-hotkey.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-input-number.mjs +10 -12
- package/fesm2022/ng-doc-ui-kit-directives-input-number.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-input-string.mjs +9 -12
- package/fesm2022/ng-doc-ui-kit-directives-input-string.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-radio-group.mjs +7 -4
- package/fesm2022/ng-doc-ui-kit-directives-radio-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-rotator.mjs +16 -22
- package/fesm2022/ng-doc-ui-kit-directives-rotator.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-tooltip.mjs +105 -101
- package/fesm2022/ng-doc-ui-kit-directives-tooltip.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives.mjs +1 -1
- package/fesm2022/ng-doc-ui-kit-interceptors.mjs +24 -21
- package/fesm2022/ng-doc-ui-kit-interceptors.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-observables.mjs +2 -58
- package/fesm2022/ng-doc-ui-kit-observables.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-pipes-as-array.mjs +3 -4
- package/fesm2022/ng-doc-ui-kit-pipes-as-array.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-pipes-bind.mjs +3 -4
- package/fesm2022/ng-doc-ui-kit-pipes-bind.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-pipes-execute.mjs +3 -4
- package/fesm2022/ng-doc-ui-kit-pipes-execute.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-pipes-highlighter.mjs +3 -4
- package/fesm2022/ng-doc-ui-kit-pipes-highlighter.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-dialog.mjs +14 -8
- package/fesm2022/ng-doc-ui-kit-services-dialog.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-notify.mjs +13 -8
- package/fesm2022/ng-doc-ui-kit-services-notify.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-overlay-strategy.mjs +15 -11
- package/fesm2022/ng-doc-ui-kit-services-overlay-strategy.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-overlay.mjs +20 -9
- package/fesm2022/ng-doc-ui-kit-services-overlay.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-scroll.mjs +11 -13
- package/fesm2022/ng-doc-ui-kit-services-scroll.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-tokens.mjs +29 -3
- package/fesm2022/ng-doc-ui-kit-tokens.mjs.map +1 -1
- package/package.json +27 -30
- package/styles/main.css +271 -34
- package/types/ng-doc-ui-kit-cdk-combobox-host.d.ts +16 -8
- package/types/ng-doc-ui-kit-classes-base-input.d.ts +12 -1
- package/types/ng-doc-ui-kit-classes-overlay-ref.d.ts +27 -4
- package/types/ng-doc-ui-kit-components-blockquote.d.ts +22 -5
- package/types/ng-doc-ui-kit-components-button-icon.d.ts +23 -5
- package/types/ng-doc-ui-kit-components-button-toggle.d.ts +5 -1
- package/types/ng-doc-ui-kit-components-button.d.ts +6 -6
- package/types/ng-doc-ui-kit-components-checkbox.d.ts +5 -3
- package/types/ng-doc-ui-kit-components-clear-control.d.ts +7 -0
- package/types/ng-doc-ui-kit-components-combobox.d.ts +19 -9
- package/types/ng-doc-ui-kit-components-data-list-group.d.ts +16 -11
- package/types/ng-doc-ui-kit-components-data-list.d.ts +21 -11
- package/types/ng-doc-ui-kit-components-dialog-outlet.d.ts +11 -6
- package/types/ng-doc-ui-kit-components-dot.d.ts +10 -5
- package/types/ng-doc-ui-kit-components-dropdown.d.ts +39 -27
- package/types/ng-doc-ui-kit-components-expander.d.ts +9 -7
- package/types/ng-doc-ui-kit-components-floated-content.d.ts +8 -6
- package/types/ng-doc-ui-kit-components-focus-control.d.ts +10 -4
- package/types/ng-doc-ui-kit-components-icon.d.ts +49 -14
- package/types/ng-doc-ui-kit-components-input-wrapper.d.ts +31 -17
- package/types/ng-doc-ui-kit-components-label.d.ts +8 -5
- package/types/ng-doc-ui-kit-components-line.d.ts +3 -0
- package/types/ng-doc-ui-kit-components-list.d.ts +14 -3
- package/types/ng-doc-ui-kit-components-magnifier-controller.d.ts +5 -1
- package/types/ng-doc-ui-kit-components-magnifier.d.ts +19 -4
- package/types/ng-doc-ui-kit-components-option-group.d.ts +12 -8
- package/types/ng-doc-ui-kit-components-option.d.ts +9 -2
- package/types/ng-doc-ui-kit-components-overlay-container.d.ts +18 -15
- package/types/ng-doc-ui-kit-components-overlay-pointer.d.ts +10 -6
- package/types/ng-doc-ui-kit-components-pane.d.ts +25 -9
- package/types/ng-doc-ui-kit-components-selection.d.ts +59 -21
- package/types/ng-doc-ui-kit-components-sidenav.d.ts +17 -8
- package/types/ng-doc-ui-kit-components-spinner.d.ts +7 -3
- package/types/ng-doc-ui-kit-components-tab-group.d.ts +43 -22
- package/types/ng-doc-ui-kit-components-tab-routes-group.d.ts +4 -2
- package/types/ng-doc-ui-kit-components-tag.d.ts +13 -6
- package/types/ng-doc-ui-kit-components-text.d.ts +21 -19
- package/types/ng-doc-ui-kit-components-toggle.d.ts +13 -7
- package/types/ng-doc-ui-kit-components-wrapper.d.ts +3 -0
- package/types/ng-doc-ui-kit-directives-autofocus.d.ts +7 -5
- package/types/ng-doc-ui-kit-directives-checked-change.d.ts +15 -11
- package/types/ng-doc-ui-kit-directives-data.d.ts +6 -4
- package/types/ng-doc-ui-kit-directives-dropdown-handler.d.ts +5 -3
- package/types/ng-doc-ui-kit-directives-event-switcher.d.ts +11 -6
- package/types/ng-doc-ui-kit-directives-focus-catcher.d.ts +11 -8
- package/types/ng-doc-ui-kit-directives-focusable.d.ts +6 -3
- package/types/ng-doc-ui-kit-directives-fullscreen.d.ts +39 -0
- package/types/ng-doc-ui-kit-directives-hotkey.d.ts +14 -7
- package/types/ng-doc-ui-kit-directives-input-number.d.ts +3 -2
- package/types/ng-doc-ui-kit-directives-input-string.d.ts +2 -2
- package/types/ng-doc-ui-kit-directives-radio-group.d.ts +4 -0
- package/types/ng-doc-ui-kit-directives-rotator.d.ts +8 -8
- package/types/ng-doc-ui-kit-directives-tooltip.d.ts +35 -23
- package/types/ng-doc-ui-kit-directives.d.ts +1 -1
- package/types/ng-doc-ui-kit-interceptors.d.ts +18 -2
- package/types/ng-doc-ui-kit-interfaces.d.ts +20 -4
- package/types/ng-doc-ui-kit-observables.d.ts +2 -19
- package/types/ng-doc-ui-kit-services-dialog.d.ts +10 -1
- package/types/ng-doc-ui-kit-services-notify.d.ts +9 -1
- package/types/ng-doc-ui-kit-services-overlay-strategy.d.ts +5 -3
- package/types/ng-doc-ui-kit-services-overlay.d.ts +14 -3
- package/types/ng-doc-ui-kit-services-scroll.d.ts +4 -5
- package/fesm2022/ng-doc-ui-kit-decorators.mjs +0 -53
- package/fesm2022/ng-doc-ui-kit-decorators.mjs.map +0 -1
- package/fesm2022/ng-doc-ui-kit-directives-let.mjs +0 -43
- package/fesm2022/ng-doc-ui-kit-directives-let.mjs.map +0 -1
- package/types/ng-doc-ui-kit-decorators.d.ts +0 -12
- package/types/ng-doc-ui-kit-directives-let.d.ts +0 -22
|
@@ -1,27 +1,62 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
3
|
import { NgDocIconSize } from '@ng-doc/ui-kit/types';
|
|
4
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Shows an SVG icon from the UI Kit assets or from the application's custom icons.
|
|
8
|
+
*/
|
|
9
|
+
declare class NgDocIconComponent {
|
|
6
10
|
private readonly elementRef;
|
|
11
|
+
private readonly registry;
|
|
7
12
|
private readonly httpClient;
|
|
8
13
|
private readonly baseUrl;
|
|
14
|
+
private readonly assetsPath;
|
|
15
|
+
private readonly customIconsPath;
|
|
9
16
|
/** Icon name */
|
|
10
|
-
icon: string
|
|
17
|
+
readonly icon: i0.InputSignal<string>;
|
|
11
18
|
/** Custom icon name, if not set, `icon` will be used */
|
|
12
|
-
customIcon: string
|
|
19
|
+
readonly customIcon: i0.InputSignal<string>;
|
|
13
20
|
/** Icon size */
|
|
14
|
-
size: NgDocIconSize
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
private readonly
|
|
21
|
+
readonly size: i0.InputSignalWithTransform<NgDocIconSize, NgDocIconSize | "16" | "24">;
|
|
22
|
+
/** URL of the SVG file that the icon shows. */
|
|
23
|
+
readonly href: Signal<string>;
|
|
24
|
+
private readonly svg;
|
|
18
25
|
constructor();
|
|
19
|
-
ngOnChanges(): void;
|
|
20
|
-
ngOnInit(): void;
|
|
21
|
-
get href(): string;
|
|
22
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocIconComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocIconComponent, "ng-doc-icon", never, { "icon": { "alias": "icon"; "required": false; }; "customIcon": { "alias": "customIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
-
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocIconComponent, "ng-doc-icon", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "customIcon": { "alias": "customIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Loads SVG icons and keeps them for the lifetime of the application.
|
|
32
|
+
*
|
|
33
|
+
* Every URL is requested once and shared by all icons that show it, whether or not the
|
|
34
|
+
* application registers HTTP interceptors. A failed request is logged and remembered: reading the
|
|
35
|
+
* icon again does not send a new request, only `retry()` does. A response that is not SVG markup
|
|
36
|
+
* counts as a failure: dev servers answer a missing file with the application's `index.html`,
|
|
37
|
+
* which must not be rendered as an icon.
|
|
38
|
+
*/
|
|
39
|
+
declare class NgDocIconRegistry {
|
|
40
|
+
private readonly rootHttpClient;
|
|
41
|
+
private readonly icons;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the SVG markup stored at `url`, loading it on the first call.
|
|
44
|
+
* @param url - URL of the SVG file.
|
|
45
|
+
* @param httpClient - Client for the request; defaults to the root `HttpClient`.
|
|
46
|
+
* @returns A signal with the markup: `null` while it loads, `''` when the request failed.
|
|
47
|
+
*/
|
|
48
|
+
get(url: string, httpClient?: HttpClient): Signal<string | null>;
|
|
49
|
+
/**
|
|
50
|
+
* Requests `url` again if its last request failed. Does nothing for an icon that has loaded
|
|
51
|
+
* or is loading.
|
|
52
|
+
* @param url - URL of the SVG file.
|
|
53
|
+
* @param httpClient - Client for the request; defaults to the root `HttpClient`.
|
|
54
|
+
*/
|
|
55
|
+
retry(url: string, httpClient?: HttpClient): void;
|
|
56
|
+
private load;
|
|
57
|
+
private fail;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocIconRegistry, never>;
|
|
59
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
25
60
|
}
|
|
26
61
|
|
|
27
|
-
export { NgDocIconComponent };
|
|
62
|
+
export { NgDocIconComponent, NgDocIconRegistry };
|
|
@@ -1,29 +1,43 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
3
|
import { NgDocBaseInput } from '@ng-doc/ui-kit/classes/base-input';
|
|
4
4
|
import { NgDocInputHost } from '@ng-doc/ui-kit/classes/input-host';
|
|
5
5
|
import { NgDocFocusCatcherDirective } from '@ng-doc/ui-kit/directives/focus-catcher';
|
|
6
6
|
import { NgDocContextWithImplicit } from '@ng-doc/ui-kit/interfaces';
|
|
7
7
|
import { NgDocContent, NgDocTextAlign } from '@ng-doc/ui-kit/types';
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The frame of a text field: it draws the border and the focus state around an `ngDocInputString`
|
|
11
|
+
* or `ngDocInputNumber` input, holds content at its left and right, and can show `blurContent`
|
|
12
|
+
* instead of the text while the field is not being edited.
|
|
13
|
+
*/
|
|
14
|
+
declare class NgDocInputWrapperComponent<T, B = unknown> implements NgDocInputHost<T> {
|
|
15
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
16
|
+
/** Content shown instead of the text while the field is not being edited. */
|
|
17
|
+
readonly blurContent: _angular_core.InputSignal<NgDocContent<NgDocContextWithImplicit<B | null>>>;
|
|
18
|
+
/** The `$implicit` context of `blurContent`. */
|
|
19
|
+
readonly blurContext: _angular_core.InputSignal<B | null>;
|
|
20
|
+
/** Alignment of the text. */
|
|
21
|
+
readonly align: _angular_core.InputSignal<NgDocTextAlign>;
|
|
22
|
+
/** Focus state of the frame. */
|
|
23
|
+
readonly focusCatcher: _angular_core.Signal<NgDocFocusCatcherDirective>;
|
|
24
|
+
private readonly inputQuery;
|
|
25
|
+
/** The input in the frame. */
|
|
26
|
+
get input(): NgDocBaseInput<T> | undefined;
|
|
27
|
+
/** The input in the frame, as its input host exposes it. */
|
|
28
|
+
get inputControl(): NgDocBaseInput<T> | undefined;
|
|
29
|
+
/** Whether the input is disabled. The control keeps it in a signal, so this is reactive. */
|
|
21
30
|
get disabled(): boolean;
|
|
31
|
+
/** Whether the input has a value. */
|
|
22
32
|
inputHasValue(): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether `blurContent` is shown: the field is not focused (focus changes re-render the frame
|
|
35
|
+
* through its `focusin`/`focusout` listeners), or it is read-only.
|
|
36
|
+
*/
|
|
23
37
|
get blurContentIsVisible(): boolean;
|
|
24
|
-
emptyEvent(): void;
|
|
25
|
-
static ɵfac:
|
|
26
|
-
static ɵcmp:
|
|
38
|
+
protected emptyEvent(): void;
|
|
39
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgDocInputWrapperComponent<any, any>, never>;
|
|
40
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgDocInputWrapperComponent<any, any>, "ng-doc-input-wrapper", never, { "blurContent": { "alias": "blurContent"; "required": false; "isSignal": true; }; "blurContext": { "alias": "blurContext"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, ["inputQuery"], ["[ngDocInputWrapperLeft]", "*", "[ngDocInputWrapperRight]"], true, never>;
|
|
27
41
|
}
|
|
28
42
|
|
|
29
43
|
export { NgDocInputWrapperComponent };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
1
2
|
import { NgDocContent, NgDocHorizontalAlign } from '@ng-doc/ui-kit/types';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
3
|
|
|
4
|
+
/** A `label` with a caption above its content. */
|
|
4
5
|
declare class NgDocLabelComponent {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/** The caption: a string or a template. */
|
|
7
|
+
readonly label: _angular_core.InputSignal<NgDocContent>;
|
|
8
|
+
/** Alignment of the caption. */
|
|
9
|
+
readonly align: _angular_core.InputSignal<NgDocHorizontalAlign>;
|
|
10
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgDocLabelComponent, never>;
|
|
11
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgDocLabelComponent, "label[ng-doc-label]", never, { "label": { "alias": "ng-doc-label"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
export { NgDocLabelComponent };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Horizontal divider line.
|
|
5
|
+
*/
|
|
3
6
|
declare class NgDocLineComponent {
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocLineComponent, never>;
|
|
5
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocLineComponent, "ng-doc-line", never, {}, {}, never, never, true, never>;
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import { NgDocListItem } from '@ng-doc/ui-kit/classes/list-item';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Keyboard navigation for the options inside it: arrow keys move the active option and Enter
|
|
6
|
+
* selects it. The keys also work from the list host's origin (for example a combobox input).
|
|
7
|
+
*/
|
|
4
8
|
declare class NgDocListComponent {
|
|
5
|
-
private elementRef;
|
|
6
|
-
private
|
|
7
|
-
private listHost;
|
|
9
|
+
private readonly elementRef;
|
|
10
|
+
private readonly listHost;
|
|
8
11
|
private keyManager;
|
|
9
12
|
private readonly items;
|
|
10
13
|
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Adds an item to the keyboard navigation.
|
|
16
|
+
* @param item - The item to add.
|
|
17
|
+
*/
|
|
11
18
|
registerItem(item: NgDocListItem): void;
|
|
19
|
+
/**
|
|
20
|
+
* Removes an item from the keyboard navigation.
|
|
21
|
+
* @param item - The item to remove.
|
|
22
|
+
*/
|
|
12
23
|
unregisterItem(item: NgDocListItem): void;
|
|
13
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocListComponent, never>;
|
|
14
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocListComponent, "ng-doc-list", never, {}, {}, never, ["*"], true, never>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgDocMagnifierComponent } from '@ng-doc/ui-kit/components/magnifier';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Buttons that pan, zoom and reset an `ng-doc-magnifier`.
|
|
6
|
+
*/
|
|
4
7
|
declare class MagnifierControllerComponent {
|
|
5
|
-
magnifier
|
|
8
|
+
/** The magnifier to control. */
|
|
9
|
+
readonly magnifier: i0.InputSignal<NgDocMagnifierComponent>;
|
|
6
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<MagnifierControllerComponent, never>;
|
|
7
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<MagnifierControllerComponent, "ng-doc-magnifier-controller", never, { "magnifier": { "alias": "magnifier"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
12
|
}
|
|
@@ -1,21 +1,36 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit,
|
|
2
|
+
import { OnInit, Signal, DestroyRef } from '@angular/core';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Lets the user pan its content by dragging and zoom it with the mouse wheel. Use
|
|
6
|
+
* `ng-doc-magnifier-controller` for buttons that do the same.
|
|
7
|
+
*/
|
|
4
8
|
declare class NgDocMagnifierComponent implements OnInit {
|
|
5
9
|
protected readonly x: _angular_core.WritableSignal<number>;
|
|
6
10
|
protected readonly y: _angular_core.WritableSignal<number>;
|
|
7
11
|
protected readonly scale: _angular_core.WritableSignal<number>;
|
|
8
|
-
protected readonly transform:
|
|
12
|
+
protected readonly transform: Signal<string>;
|
|
9
13
|
protected readonly drag: _angular_core.WritableSignal<boolean>;
|
|
10
14
|
protected readonly document: Document;
|
|
11
15
|
protected readonly element: HTMLElement;
|
|
12
|
-
protected readonly ngZone: NgZone;
|
|
13
16
|
protected readonly destroyRef: DestroyRef;
|
|
14
|
-
constructor();
|
|
15
17
|
ngOnInit(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Moves the content horizontally.
|
|
20
|
+
* @param x - Distance in screen pixels.
|
|
21
|
+
*/
|
|
16
22
|
incrementX(x: number): void;
|
|
23
|
+
/**
|
|
24
|
+
* Moves the content vertically.
|
|
25
|
+
* @param y - Distance in screen pixels.
|
|
26
|
+
*/
|
|
17
27
|
incrementY(y: number): void;
|
|
28
|
+
/**
|
|
29
|
+
* Zooms in (positive `diff`) or out (negative `diff`); the scale never goes below 1.
|
|
30
|
+
* @param diff - Zoom step, where 1000 doubles the scale.
|
|
31
|
+
*/
|
|
18
32
|
zoom(diff: number): void;
|
|
33
|
+
/** Resets the position and the scale. */
|
|
19
34
|
reset(): void;
|
|
20
35
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgDocMagnifierComponent, never>;
|
|
21
36
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgDocMagnifierComponent, "ng-doc-magnifier", never, {}, {}, never, ["*"], true, never>;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
3
|
import { NgDocOptionComponent } from '@ng-doc/ui-kit/components/option';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Marks the header content of an option group.
|
|
7
|
+
*/
|
|
5
8
|
declare class NgDocOptionGroupHeaderDirective {
|
|
6
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocOptionGroupHeaderDirective, never>;
|
|
7
10
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocOptionGroupHeaderDirective, "[ngDocOptionGroupHeader]", never, {}, {}, never, never, true, never>;
|
|
8
11
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Group of options with a header. The header is hidden while the group has no options.
|
|
14
|
+
*/
|
|
15
|
+
declare class NgDocOptionGroupComponent<T> {
|
|
16
|
+
/** Options of the group. */
|
|
17
|
+
readonly options: Signal<readonly NgDocOptionComponent<T>[]>;
|
|
18
|
+
/** Whether the header is shown. */
|
|
19
|
+
readonly hasHeader: Signal<boolean>;
|
|
16
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocOptionGroupComponent<any>, never>;
|
|
17
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocOptionGroupComponent<any>, "ng-doc-option-group", never, {}, {}, ["options"], ["[ngDocOptionGroupHeader]", "*"], true, never>;
|
|
18
22
|
}
|
|
@@ -4,14 +4,21 @@ import { NgDocListItem } from '@ng-doc/ui-kit/classes/list-item';
|
|
|
4
4
|
import { NgDocListComponent } from '@ng-doc/ui-kit/components/list';
|
|
5
5
|
import { DIStateControl } from 'di-controls';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Option of a list. Clicking it, or pressing Enter while it is active, checks it in its host
|
|
9
|
+
* control; an option that contains a link follows the link instead.
|
|
10
|
+
*/
|
|
7
11
|
declare class NgDocOptionComponent<T> extends DIStateControl<T> implements NgDocListItem, OnDestroy {
|
|
8
|
-
protected hovered: boolean;
|
|
9
12
|
readonly elementRef: ElementRef<HTMLElement>;
|
|
13
|
+
/** Whether the option is the active item of the list's keyboard navigation. */
|
|
14
|
+
protected readonly hovered: i0.WritableSignal<boolean>;
|
|
10
15
|
protected readonly list: NgDocListComponent | null;
|
|
11
16
|
constructor();
|
|
12
|
-
|
|
17
|
+
/** Selects the option as if the user did: follows its link, or checks it. */
|
|
13
18
|
selectByUser(): void;
|
|
19
|
+
/** Marks the option as the active item. */
|
|
14
20
|
setActiveStyles(): void;
|
|
21
|
+
/** Clears the active-item mark. */
|
|
15
22
|
setInactiveStyles(): void;
|
|
16
23
|
ngOnDestroy(): void;
|
|
17
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocOptionComponent<any>, never>;
|
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, AfterViewInit, OnDestroy, ElementRef } from '@angular/core';
|
|
3
3
|
import { NgDocFocusCatcherDirective } from '@ng-doc/ui-kit/directives/focus-catcher';
|
|
4
4
|
import { NgDocOverlayContainer, NgDocOverlayConfig } from '@ng-doc/ui-kit/interfaces';
|
|
5
|
-
import { NgDocContent, NgDocOverlayRelativePosition,
|
|
5
|
+
import { NgDocContent, NgDocOverlayRelativePosition, NgDocHorizontalAlign, NgDocVerticalAlign, NgDocOverlayAnimationEvent } from '@ng-doc/ui-kit/types';
|
|
6
6
|
import { PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
8
|
|
|
9
|
+
/** The default overlay container: renders the content with the pointer and the open animation. */
|
|
9
10
|
declare class NgDocOverlayContainerComponent implements NgDocOverlayContainer, OnInit, AfterViewInit, OnDestroy {
|
|
10
11
|
private elementRef;
|
|
11
12
|
private documentRef;
|
|
12
13
|
private changeDetectorRef;
|
|
13
|
-
private ngZone;
|
|
14
14
|
private platformId;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
private destroyRef;
|
|
16
|
+
/** What the overlay renders: a string, a template or a component. */
|
|
17
|
+
readonly content: _angular_core.InputSignal<NgDocContent>;
|
|
18
|
+
/** The configuration the overlay was opened with. */
|
|
19
|
+
readonly config: _angular_core.InputSignal<NgDocOverlayConfig | undefined>;
|
|
20
|
+
readonly contentContainer: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
21
|
+
readonly focusCatcher: _angular_core.Signal<NgDocFocusCatcherDirective | undefined>;
|
|
22
|
+
readonly outlet: _angular_core.Signal<PolymorpheusOutlet<any> | undefined>;
|
|
23
|
+
private readonly currentPosition;
|
|
24
|
+
/** The side of the origin the overlay is on, once the position strategy has placed it. */
|
|
25
|
+
protected readonly relativePosition: _angular_core.Signal<NgDocOverlayRelativePosition | null>;
|
|
26
|
+
protected readonly overlayAlign: _angular_core.Signal<NgDocHorizontalAlign | NgDocVerticalAlign | null>;
|
|
27
|
+
protected readonly contactBorder: _angular_core.Signal<boolean>;
|
|
22
28
|
private animationEvent$;
|
|
23
29
|
private isOpened;
|
|
24
|
-
constructor();
|
|
25
30
|
ngOnInit(): void;
|
|
26
31
|
ngAfterViewInit(): void;
|
|
27
|
-
get contactBorder(): boolean;
|
|
28
32
|
get isFocused(): boolean;
|
|
29
33
|
get animationEvent(): Observable<NgDocOverlayAnimationEvent>;
|
|
30
|
-
get overlayAlign(): NgDocHorizontalAlign | NgDocVerticalAlign | null;
|
|
31
34
|
close(): void;
|
|
32
35
|
focus(): void;
|
|
33
36
|
markForCheck(): void;
|
|
34
37
|
private runAnimation;
|
|
35
38
|
ngOnDestroy(): void;
|
|
36
|
-
static ɵfac:
|
|
37
|
-
static ɵcmp:
|
|
39
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgDocOverlayContainerComponent, never>;
|
|
40
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgDocOverlayContainerComponent, "ng-doc-overlay-container", never, { "content": { "alias": "content"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
export { NgDocOverlayContainerComponent };
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
1
2
|
import { NgDocOverlayRelativePosition, NgDocHorizontalAlign, NgDocVerticalAlign } from '@ng-doc/ui-kit/types';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
3
|
|
|
4
|
+
/** Frames overlay content and draws the arrow that points at the origin. */
|
|
4
5
|
declare class NgDocOverlayPointerComponent {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
/** The side of the origin the overlay is on. */
|
|
7
|
+
readonly overlayPosition: _angular_core.InputSignal<NgDocOverlayRelativePosition | null>;
|
|
8
|
+
/** How the overlay is aligned along that side. */
|
|
9
|
+
readonly overlayAlign: _angular_core.InputSignal<NgDocHorizontalAlign | NgDocVerticalAlign | null>;
|
|
10
|
+
/** Draws the arrow. */
|
|
11
|
+
readonly withPointer: _angular_core.InputSignal<boolean>;
|
|
12
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgDocOverlayPointerComponent, never>;
|
|
13
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgDocOverlayPointerComponent, "ng-doc-overlay-pointer", never, { "overlayPosition": { "alias": "overlayPosition"; "required": false; "isSignal": true; }; "overlayAlign": { "alias": "overlayAlign"; "required": false; "isSignal": true; }; "withPointer": { "alias": "withPointer"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
export { NgDocOverlayPointerComponent };
|
|
@@ -1,29 +1,45 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
3
|
|
|
4
|
+
/** Marks the content in front of an `ng-doc-pane` (the right side). */
|
|
4
5
|
declare class NgDocPaneFrontDirective {
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocPaneFrontDirective, never>;
|
|
6
7
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocPaneFrontDirective, "[ngDocPaneFront]", never, {}, {}, never, never, true, never>;
|
|
7
8
|
}
|
|
9
|
+
/** Marks the content behind an `ng-doc-pane` (the left side, revealed by dragging). */
|
|
8
10
|
declare class NgDocPaneBackDirective {
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocPaneBackDirective, never>;
|
|
10
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocPaneBackDirective, "[ngDocPaneBack]", never, {}, {}, never, never, true, never>;
|
|
11
13
|
}
|
|
12
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Two panes side by side with a resizer between them. Drag the resizer, click it or use the
|
|
16
|
+
* arrow keys on it to reveal the back pane; Enter or Space toggles it.
|
|
17
|
+
*/
|
|
18
|
+
declare class NgDocPaneComponent {
|
|
13
19
|
private readonly document;
|
|
14
|
-
private readonly changeDetectorRef;
|
|
15
20
|
private readonly elementRef;
|
|
16
21
|
private readonly ngZone;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
/** Whether the back pane is revealed. */
|
|
23
|
+
readonly expanded: i0.InputSignal<boolean>;
|
|
24
|
+
/** The resizer between the panes. */
|
|
25
|
+
readonly resizer: i0.Signal<ElementRef<HTMLElement>>;
|
|
26
|
+
/** Width of the back pane, as a CSS length. */
|
|
27
|
+
readonly width: i0.WritableSignal<string>;
|
|
28
|
+
/** Share of the pane the back pane takes, in percent, for assistive technology. */
|
|
29
|
+
protected readonly valueNow: i0.WritableSignal<number>;
|
|
30
|
+
/** Whether the resizer is being dragged. */
|
|
31
|
+
protected readonly dragging: i0.WritableSignal<boolean>;
|
|
21
32
|
constructor();
|
|
22
|
-
|
|
33
|
+
/** Reveals the back pane when it is mostly hidden, and hides it otherwise. */
|
|
23
34
|
toggle(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Moves the resizer with the keyboard.
|
|
37
|
+
* @param event - The key press on the resizer.
|
|
38
|
+
*/
|
|
39
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
24
40
|
private addDelta;
|
|
25
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocPaneComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocPaneComponent, "ng-doc-pane", never, { "expanded": { "alias": "expanded"; "required": false; }; }, {}, never, ["[ngDocPaneBack]", "[ngDocPaneFront]"], true, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocPaneComponent, "ng-doc-pane", never, { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, {}, never, ["[ngDocPaneBack]", "[ngDocPaneFront]"], true, never>;
|
|
27
43
|
}
|
|
28
44
|
|
|
29
45
|
export { NgDocPaneBackDirective, NgDocPaneComponent, NgDocPaneFrontDirective };
|
|
@@ -1,41 +1,79 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementRef, Signal } from '@angular/core';
|
|
3
3
|
import { NgDocHorizontalAlign, NgDocVerticalAlign } from '@ng-doc/ui-kit/types';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Highlight that slides to the selected `ngDocSelectionOrigin` of the closest
|
|
7
|
+
* `ngDocSelectionHost`, for example the underline of the active tab or the thumb of a segmented
|
|
8
|
+
* control. It covers the selected element and moves with a transform.
|
|
9
|
+
*
|
|
10
|
+
* The highlight is measured in the browser only. Until it is placed it is hidden and has no
|
|
11
|
+
* `data-ng-doc-placed` attribute, so the selected element can style itself in the server-rendered
|
|
12
|
+
* page, for example with `ng-doc-selection:not([data-ng-doc-placed]) ~ .selected`. The first
|
|
13
|
+
* placement never animates, and nothing animates when the reader prefers reduced motion.
|
|
14
|
+
*/
|
|
15
|
+
declare class NgDocSelectionComponent {
|
|
7
16
|
private readonly elementRef;
|
|
8
17
|
private readonly selectionHost;
|
|
9
|
-
align: NgDocHorizontalAlign | NgDocVerticalAlign;
|
|
10
18
|
private readonly destroyRef;
|
|
19
|
+
private readonly resized;
|
|
20
|
+
private resizeObserver?;
|
|
21
|
+
private observed?;
|
|
22
|
+
private destroyed;
|
|
23
|
+
private placements;
|
|
24
|
+
/**
|
|
25
|
+
* Side of the selected element on which the highlight draws its border, or `null` for no
|
|
26
|
+
* border (a thumb that covers the element, styled by its container).
|
|
27
|
+
*/
|
|
28
|
+
readonly align: i0.InputSignal<NgDocHorizontalAlign | NgDocVerticalAlign | null>;
|
|
11
29
|
constructor();
|
|
12
|
-
|
|
13
|
-
private
|
|
14
|
-
|
|
30
|
+
private observe;
|
|
31
|
+
private place;
|
|
32
|
+
/**
|
|
33
|
+
* Turns the transition on once the first position has been painted. Turning it on in the same
|
|
34
|
+
* frame would animate the highlight from the corner of its container; reading the style to
|
|
35
|
+
* commit the position instead would force a layout for every highlight on the page.
|
|
36
|
+
*/
|
|
37
|
+
private enableTransition;
|
|
15
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocSelectionComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocSelectionComponent, "ng-doc-selection", never, { "align": { "alias": "align"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocSelectionComponent, "ng-doc-selection", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
40
|
}
|
|
18
41
|
|
|
19
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Element that the `ng-doc-selection` of the closest `ngDocSelectionHost` highlights while
|
|
44
|
+
* `ngDocSelectionOrigin` is `true`.
|
|
45
|
+
*/
|
|
46
|
+
declare class NgDocSelectionOriginDirective {
|
|
47
|
+
/** The host element. */
|
|
20
48
|
readonly elementRef: ElementRef<HTMLElement>;
|
|
21
49
|
private readonly selectionHost;
|
|
22
|
-
selected
|
|
23
|
-
|
|
24
|
-
constructor(
|
|
25
|
-
ngOnChanges({ selected }: SimpleChanges): void;
|
|
26
|
-
ngOnDestroy(): void;
|
|
50
|
+
/** Whether the element is selected. */
|
|
51
|
+
readonly selected: i0.InputSignal<boolean>;
|
|
52
|
+
constructor();
|
|
27
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocSelectionOriginDirective, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocSelectionOriginDirective, "[ngDocSelectionOrigin]", never, { "selected": { "alias": "ngDocSelectionOrigin"; "required": false; }; }, {}, never, never, true, never>;
|
|
54
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocSelectionOriginDirective, "[ngDocSelectionOrigin]", never, { "selected": { "alias": "ngDocSelectionOrigin"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
29
55
|
}
|
|
30
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Tracks which of its `ngDocSelectionOrigin` elements is selected, so that an
|
|
59
|
+
* `ng-doc-selection` inside it can highlight that element.
|
|
60
|
+
*/
|
|
31
61
|
declare class NgDocSelectionHostDirective {
|
|
32
|
-
private
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
62
|
+
private readonly selectedElement;
|
|
63
|
+
/** Element of the selected origin, or `undefined` when none is selected. */
|
|
64
|
+
readonly selected: Signal<HTMLElement | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* Updates the selection after an origin changed its state or went away.
|
|
67
|
+
* @param origin - The origin whose state changed.
|
|
68
|
+
* @param selected - Whether the origin is selected now.
|
|
69
|
+
*/
|
|
38
70
|
changeSelected(origin: NgDocSelectionOriginDirective, selected: boolean): void;
|
|
71
|
+
/**
|
|
72
|
+
* Selects an element that cannot carry `ngDocSelectionOrigin`, because Angular does not render
|
|
73
|
+
* it: for example a tab in the HTML of a generated page.
|
|
74
|
+
* @param element - The element to highlight, or `undefined` to highlight none.
|
|
75
|
+
*/
|
|
76
|
+
select(element: HTMLElement | undefined): void;
|
|
39
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocSelectionHostDirective, never>;
|
|
40
78
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocSelectionHostDirective, "[ngDocSelectionHost]", never, {}, {}, never, never, true, never>;
|
|
41
79
|
}
|
|
@@ -1,24 +1,33 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
3
2
|
import { NgDocContent } from '@ng-doc/ui-kit/types';
|
|
4
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Layout with a side panel next to the projected content.
|
|
6
|
+
*
|
|
7
|
+
* At 900px and below the side panel becomes an overlay that slides in from the left; `opened`
|
|
8
|
+
* shows it and `closeEvent` asks the owner to hide it. The panel has the id `ng-doc-sidenav`, so a
|
|
9
|
+
* toggle button can point `aria-controls` at it.
|
|
10
|
+
*/
|
|
5
11
|
declare class NgDocSidenavComponent {
|
|
6
12
|
/**
|
|
7
13
|
* Content of the sidenav.
|
|
8
14
|
*/
|
|
9
|
-
sidebar: NgDocContent
|
|
15
|
+
readonly sidebar: _angular_core.InputSignal<NgDocContent>;
|
|
10
16
|
/**
|
|
11
17
|
* Indicates whether the sidenav is opened or not.
|
|
12
18
|
* This is used to trigger the animation.
|
|
13
19
|
*/
|
|
14
|
-
opened: boolean
|
|
20
|
+
readonly opened: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
15
21
|
/**
|
|
16
22
|
* Indicates whether the sidenav has a backdrop or not.
|
|
17
23
|
*/
|
|
18
|
-
hasBackdrop: boolean
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
readonly hasBackdrop: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
25
|
+
/**
|
|
26
|
+
* Emits when the backdrop is clicked, so the owner can close the sidenav.
|
|
27
|
+
*/
|
|
28
|
+
readonly closeEvent: _angular_core.OutputEmitterRef<void>;
|
|
29
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgDocSidenavComponent, never>;
|
|
30
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgDocSidenavComponent, "ng-doc-sidenav", never, { "sidebar": { "alias": "sidebar"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; }, { "closeEvent": "closeEvent"; }, never, ["*"], true, never>;
|
|
22
31
|
}
|
|
23
32
|
|
|
24
33
|
export { NgDocSidenavComponent };
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { NgDocSize } from '@ng-doc/ui-kit/types';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
2
|
+
import { NgDocSize } from '@ng-doc/ui-kit/types';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Circular loading indicator.
|
|
6
|
+
*/
|
|
4
7
|
declare class NgDocSpinnerComponent {
|
|
5
|
-
size
|
|
8
|
+
/** Spinner size */
|
|
9
|
+
readonly size: i0.InputSignal<NgDocSize>;
|
|
6
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocSpinnerComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocSpinnerComponent, "ng-doc-spinner", never, { "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocSpinnerComponent, "ng-doc-spinner", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
export { NgDocSpinnerComponent };
|