@ng-doc/ui-kit 22.0.0-beta.1 → 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 +9 -4
- package/fesm2022/ng-doc-ui-kit-components-magnifier-controller.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-magnifier.mjs +39 -18
- 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 +7 -9
- 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/fesm2022/ng-doc-ui-kit-types.mjs +0 -1
- package/fesm2022/ng-doc-ui-kit-types.mjs.map +1 -1
- package/package.json +31 -33
- package/styles/main.css +275 -38
- 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-dropdown-origin.d.ts +0 -2
- 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/types/ng-doc-ui-kit-types.d.ts +2 -2
- 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,8 +1,9 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { AfterViewInit, OnDestroy
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import { NgDocOverlayRef } from '@ng-doc/ui-kit/classes/overlay-ref';
|
|
4
4
|
import { NgDocContent, BaseElement, NgDocOverlayPosition } from '@ng-doc/ui-kit/types';
|
|
5
5
|
|
|
6
|
+
/** Shows its content in a tooltip while the pointer rests on the host. */
|
|
6
7
|
declare class NgDocTooltipDirective implements AfterViewInit, OnDestroy {
|
|
7
8
|
private readonly elementRef;
|
|
8
9
|
private readonly changeDetectorRef;
|
|
@@ -10,36 +11,47 @@ declare class NgDocTooltipDirective implements AfterViewInit, OnDestroy {
|
|
|
10
11
|
private readonly overlayService;
|
|
11
12
|
private readonly ngZone;
|
|
12
13
|
private readonly scrollStrategy;
|
|
13
|
-
content: NgDocContent;
|
|
14
|
-
delay: number;
|
|
15
|
-
displayOrigin?: BaseElement<HTMLElement>;
|
|
16
|
-
pointerOrigin?: BaseElement<HTMLElement>;
|
|
17
|
-
positions: NgDocOverlayPosition | NgDocOverlayPosition[];
|
|
18
|
-
canOpen: boolean;
|
|
19
|
-
panelClass: string | string[];
|
|
20
|
-
minHeight: number | string;
|
|
21
|
-
maxHeight: number | string;
|
|
22
|
-
height: number | string;
|
|
23
|
-
minWidth: number | string;
|
|
24
|
-
maxWidth: number | string;
|
|
25
|
-
width: number | string;
|
|
26
|
-
beforeOpen: EventEmitter<void>;
|
|
27
|
-
afterOpen: EventEmitter<void>;
|
|
28
|
-
beforeClose: EventEmitter<void>;
|
|
29
|
-
afterClose: EventEmitter<void>;
|
|
30
|
-
overlayRef: NgDocOverlayRef | null;
|
|
31
14
|
private readonly destroyRef;
|
|
32
|
-
|
|
15
|
+
/** What the tooltip renders: a string, a template or a component. */
|
|
16
|
+
readonly content: _angular_core.InputSignal<NgDocContent>;
|
|
17
|
+
/** Milliseconds the pointer rests on the host before the tooltip opens. */
|
|
18
|
+
readonly delay: _angular_core.InputSignal<number>;
|
|
19
|
+
/** The element the tooltip points at; the host by default. */
|
|
20
|
+
readonly displayOrigin: _angular_core.InputSignal<BaseElement<HTMLElement> | undefined>;
|
|
21
|
+
/** The element whose hover opens the tooltip; the host by default. Read once, after the view. */
|
|
22
|
+
readonly pointerOrigin: _angular_core.InputSignal<BaseElement<HTMLElement> | undefined>;
|
|
23
|
+
readonly positions: _angular_core.InputSignal<NgDocOverlayPosition | NgDocOverlayPosition[]>;
|
|
24
|
+
/** Whether hovering opens the tooltip. */
|
|
25
|
+
readonly canOpen: _angular_core.InputSignal<boolean>;
|
|
26
|
+
readonly panelClass: _angular_core.InputSignal<string | string[]>;
|
|
27
|
+
readonly minHeight: _angular_core.InputSignal<string | number>;
|
|
28
|
+
readonly maxHeight: _angular_core.InputSignal<string | number>;
|
|
29
|
+
readonly height: _angular_core.InputSignal<string | number>;
|
|
30
|
+
readonly minWidth: _angular_core.InputSignal<string | number>;
|
|
31
|
+
readonly maxWidth: _angular_core.InputSignal<string | number>;
|
|
32
|
+
readonly width: _angular_core.InputSignal<string | number>;
|
|
33
|
+
/** Emits when the tooltip starts opening. */
|
|
34
|
+
readonly beforeOpen: _angular_core.OutputEmitterRef<void>;
|
|
35
|
+
/** Emits when the open animation has finished. */
|
|
36
|
+
readonly afterOpen: _angular_core.OutputEmitterRef<void>;
|
|
37
|
+
/** Emits when the tooltip starts closing. */
|
|
38
|
+
readonly beforeClose: _angular_core.OutputEmitterRef<void>;
|
|
39
|
+
/** Emits when the tooltip has closed. */
|
|
40
|
+
readonly afterClose: _angular_core.OutputEmitterRef<void>;
|
|
41
|
+
overlayRef: NgDocOverlayRef | null;
|
|
42
|
+
private readonly opened$;
|
|
43
|
+
private lastOverlayRef;
|
|
33
44
|
ngAfterViewInit(): void;
|
|
34
45
|
show(): void;
|
|
46
|
+
private open;
|
|
35
47
|
hide(): void;
|
|
36
48
|
get isOpened(): boolean;
|
|
37
49
|
ngOnDestroy(): void;
|
|
38
50
|
private get pointerOriginElement();
|
|
39
51
|
private get displayOriginElement();
|
|
40
52
|
private getPositions;
|
|
41
|
-
static ɵfac:
|
|
42
|
-
static ɵdir:
|
|
53
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgDocTooltipDirective, never>;
|
|
54
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgDocTooltipDirective, "[ngDocTooltip]", ["ngDocTooltip"], { "content": { "alias": "ngDocTooltip"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "displayOrigin": { "alias": "displayOrigin"; "required": false; "isSignal": true; }; "pointerOrigin": { "alias": "pointerOrigin"; "required": false; "isSignal": true; }; "positions": { "alias": "positions"; "required": false; "isSignal": true; }; "canOpen": { "alias": "canOpen"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "beforeOpen": "beforeOpen"; "afterOpen": "afterOpen"; "beforeClose": "beforeClose"; "afterClose": "afterClose"; }, never, never, true, never>;
|
|
43
55
|
}
|
|
44
56
|
|
|
45
57
|
export { NgDocTooltipDirective };
|
|
@@ -6,10 +6,10 @@ export * from '@ng-doc/ui-kit/directives/dropdown-origin';
|
|
|
6
6
|
export * from '@ng-doc/ui-kit/directives/event-switcher';
|
|
7
7
|
export * from '@ng-doc/ui-kit/directives/focus-catcher';
|
|
8
8
|
export * from '@ng-doc/ui-kit/directives/focusable';
|
|
9
|
+
export * from '@ng-doc/ui-kit/directives/fullscreen';
|
|
9
10
|
export * from '@ng-doc/ui-kit/directives/hotkey';
|
|
10
11
|
export * from '@ng-doc/ui-kit/directives/input-number';
|
|
11
12
|
export * from '@ng-doc/ui-kit/directives/input-string';
|
|
12
|
-
export * from '@ng-doc/ui-kit/directives/let';
|
|
13
13
|
export * from '@ng-doc/ui-kit/directives/radio-group';
|
|
14
14
|
export * from '@ng-doc/ui-kit/directives/rotator';
|
|
15
15
|
export * from '@ng-doc/ui-kit/directives/tooltip';
|
|
@@ -2,12 +2,28 @@ import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/c
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Caches `GET` responses of requests that opt in with the `NgDocCacheInterceptor.TOKEN` query
|
|
7
|
+
* parameter. The parameter is removed before the request is sent, and every later request for the
|
|
8
|
+
* same URL shares the first response. A failed request is not cached.
|
|
9
|
+
*
|
|
10
|
+
* It only runs when the application's `HttpClient` uses interceptors from DI
|
|
11
|
+
* (`withInterceptorsFromDi()`). NgDoc's icons no longer depend on it: they are cached by
|
|
12
|
+
* `NgDocIconRegistry`.
|
|
13
|
+
*/
|
|
5
14
|
declare class NgDocCacheInterceptor implements HttpInterceptor {
|
|
15
|
+
/** Name of the query parameter that marks a request as cacheable. */
|
|
6
16
|
static readonly TOKEN: string;
|
|
7
|
-
private cache;
|
|
17
|
+
private readonly cache;
|
|
18
|
+
/**
|
|
19
|
+
* Returns the cached response for opted-in `GET` requests and passes every other request on.
|
|
20
|
+
* @param request - The outgoing request.
|
|
21
|
+
* @param next - The next handler in the chain.
|
|
22
|
+
* @returns The response stream.
|
|
23
|
+
*/
|
|
8
24
|
intercept<T>(request: HttpRequest<T>, next: HttpHandler): Observable<HttpEvent<T>>;
|
|
9
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocCacheInterceptor, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
11
27
|
}
|
|
12
28
|
|
|
13
29
|
export { NgDocCacheInterceptor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OverlayConfig } from '@angular/cdk/overlay';
|
|
2
|
-
import { ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { Signal, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { Constructor } from '@ng-doc/core/types';
|
|
4
4
|
import { NgDocOverlayAnimationEvent, NgDocContent, NgDocOverlayOrigin, NgDocOverlayPosition, ElementAnimation } from '@ng-doc/ui-kit/types';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
@@ -14,10 +14,16 @@ interface NgDocContextWithImplicit<T> {
|
|
|
14
14
|
$implicit: T;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* The component an overlay renders its content in.
|
|
19
|
+
*
|
|
20
|
+
* The overlay service sets `config` and `content` through the component reference's setInput
|
|
21
|
+
* method, so an implementation declares both as signal inputs.
|
|
22
|
+
*/
|
|
17
23
|
interface NgDocOverlayContainer {
|
|
18
24
|
animationEvent: Observable<NgDocOverlayAnimationEvent>;
|
|
19
|
-
config
|
|
20
|
-
content: NgDocContent
|
|
25
|
+
readonly config: Signal<NgDocOverlayConfig | undefined>;
|
|
26
|
+
readonly content: Signal<NgDocContent>;
|
|
21
27
|
isFocused: boolean;
|
|
22
28
|
close(): void;
|
|
23
29
|
markForCheck(): void;
|
|
@@ -40,7 +46,17 @@ interface NgDocOverlayProperties {
|
|
|
40
46
|
maxWidth?: number | string;
|
|
41
47
|
maxHeight?: number | string;
|
|
42
48
|
direction?: Direction | Directionality;
|
|
43
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Closes the overlay when the user navigates. It is passed to the CDK overlay unchanged, so it
|
|
51
|
+
* has the type of `OverlayConfig.disposeOnNavigation` of the installed `@angular/cdk`: `boolean`
|
|
52
|
+
* up to 22.1, and `boolean | 'url-change' | 'pop-state'` from 22.2, where `true` means
|
|
53
|
+
* `'pop-state'` (only the browser's back and forward buttons) and `'url-change'` closes it on any
|
|
54
|
+
* URL change.
|
|
55
|
+
*
|
|
56
|
+
* The type follows the CDK so that `NgDocOverlayConfig`, which extends both this interface and
|
|
57
|
+
* `OverlayConfig`, compiles with every supported CDK version.
|
|
58
|
+
*/
|
|
59
|
+
disposeOnNavigation?: OverlayConfig['disposeOnNavigation'];
|
|
44
60
|
disposeOnRouteNavigation?: boolean;
|
|
45
61
|
}
|
|
46
62
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { NgDocSubscribable } from '@ng-doc/ui-kit/types';
|
|
2
|
-
import { Observable, OperatorFunction
|
|
3
|
-
import { NgZone } from '@angular/core';
|
|
2
|
+
import { Observable, OperatorFunction } from 'rxjs';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* @param subscribable
|
|
@@ -19,21 +18,5 @@ interface ObservableState<T, E = Error> {
|
|
|
19
18
|
*/
|
|
20
19
|
declare function observableState<T, E = Error>(retry?: Observable<unknown>): OperatorFunction<T, ObservableState<T, E>>;
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
*
|
|
24
|
-
* @param ngZone
|
|
25
|
-
*/
|
|
26
|
-
declare function ngDocZoneAttach<T>(ngZone?: NgZone): MonoTypeOperatorFunction<T>;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @param ngZone
|
|
30
|
-
*/
|
|
31
|
-
declare function ngDocZoneDetach<T>(ngZone?: NgZone): MonoTypeOperatorFunction<T>;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @param ngZone
|
|
35
|
-
*/
|
|
36
|
-
declare function ngDocZoneOptimize<T>(ngZone?: NgZone): MonoTypeOperatorFunction<T>;
|
|
37
|
-
|
|
38
|
-
export { fromSubscribe, ngDocZoneAttach, ngDocZoneDetach, ngDocZoneOptimize, observableState };
|
|
21
|
+
export { fromSubscribe, observableState };
|
|
39
22
|
export type { ObservableState, StatedObservable };
|
|
@@ -9,13 +9,22 @@ interface NgDocDialogConfig<D = unknown> extends OverlayConfig {
|
|
|
9
9
|
data?: D;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
/** The `data` of the dialog config, for the dialog content to inject. */
|
|
12
13
|
declare const NG_DOC_DIALOG_DATA: InjectionToken<unknown>;
|
|
14
|
+
/** Opens dialogs: overlays centered in the viewport that block page scrolling. */
|
|
13
15
|
declare class NgDocDialogService {
|
|
14
16
|
protected overlayService: NgDocOverlayService;
|
|
17
|
+
/**
|
|
18
|
+
* Opens a dialog.
|
|
19
|
+
* @param content - What the dialog renders: a string, a template or a component.
|
|
20
|
+
* @param config - Overlay options; `data` is provided to the content as `NG_DOC_DIALOG_DATA`.
|
|
21
|
+
* @returns The handle of the opened dialog.
|
|
22
|
+
*/
|
|
15
23
|
open<R = unknown>(content: NgDocContent, config?: NgDocDialogConfig): NgDocOverlayRef<R>;
|
|
24
|
+
/** @returns A new global position strategy, to position a dialog through its config. */
|
|
16
25
|
positionStrategy(): GlobalPositionStrategy;
|
|
17
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocDialogService, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
19
28
|
}
|
|
20
29
|
|
|
21
30
|
export { NG_DOC_DIALOG_DATA, NgDocDialogService };
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import { NgDocContent } from '@ng-doc/ui-kit/types';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Shows short notifications at the bottom of the viewport. A new notification replaces the
|
|
6
|
+
* current one, and each closes after two seconds.
|
|
7
|
+
*/
|
|
4
8
|
declare class NgDocNotifyService {
|
|
5
9
|
private readonly overlayService;
|
|
6
10
|
private overlayRef?;
|
|
7
11
|
private readonly notify$;
|
|
8
12
|
constructor();
|
|
13
|
+
/**
|
|
14
|
+
* Shows a notification.
|
|
15
|
+
* @param content - Content of the notification.
|
|
16
|
+
*/
|
|
9
17
|
notify(content: NgDocContent): void;
|
|
10
18
|
private openOverlay;
|
|
11
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocNotifyService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
13
21
|
}
|
|
14
22
|
|
|
15
23
|
export { NgDocNotifyService };
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { ScrollStrategy, OverlayRef } from '@angular/cdk/overlay';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* A scroll strategy that closes the overlay when an element that contains its origin scrolls.
|
|
6
|
+
* Tooltips use it.
|
|
7
|
+
*/
|
|
4
8
|
declare class NgDocOverlayStrategy implements ScrollStrategy {
|
|
5
9
|
private documentRef;
|
|
6
10
|
private ngZone;
|
|
7
11
|
private overlayRef;
|
|
8
12
|
private destroy$;
|
|
9
|
-
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
10
|
-
constructor(...args: unknown[]);
|
|
11
13
|
attach(overlayRef: OverlayRef): void;
|
|
12
14
|
enable(): void;
|
|
13
15
|
private get origin();
|
|
14
16
|
disable(): void;
|
|
15
17
|
detach(): void;
|
|
16
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocOverlayStrategy, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export { NgDocOverlayStrategy };
|
|
@@ -5,12 +5,23 @@ import { NgDocOverlayRef } from '@ng-doc/ui-kit/classes';
|
|
|
5
5
|
import { NgDocOverlayConfig } from '@ng-doc/ui-kit/interfaces';
|
|
6
6
|
import { NgDocContent, NgDocOverlayOrigin, NgDocOverlayPosition } from '@ng-doc/ui-kit/types';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Opens NgDoc overlays: a container component inside a CDK overlay.
|
|
10
|
+
*
|
|
11
|
+
* It is provided in the root injector. A component can also list it in its `providers`, so the
|
|
12
|
+
* overlays it opens use that component's injector (the dropdown does).
|
|
13
|
+
*/
|
|
8
14
|
declare class NgDocOverlayService {
|
|
9
15
|
private overlay;
|
|
10
|
-
private ngZone;
|
|
11
16
|
private injector;
|
|
12
17
|
private router;
|
|
13
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Opens an overlay.
|
|
20
|
+
* @param content - What the container renders: a string, a template or a component.
|
|
21
|
+
* @param config - The overlay configuration, including the container component.
|
|
22
|
+
* @param providers - Extra providers for a component content; `NgDocOverlayRef` is always added.
|
|
23
|
+
* @returns The handle of the opened overlay.
|
|
24
|
+
*/
|
|
14
25
|
open<R>(content: NgDocContent, config: NgDocOverlayConfig, providers?: StaticProvider[]): NgDocOverlayRef<R>;
|
|
15
26
|
private attachTooltipContainer;
|
|
16
27
|
private createOverlay;
|
|
@@ -19,7 +30,7 @@ declare class NgDocOverlayService {
|
|
|
19
30
|
scrollStrategy(): ScrollStrategyOptions;
|
|
20
31
|
private createInjector;
|
|
21
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocOverlayService, never>;
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
23
34
|
}
|
|
24
35
|
|
|
25
36
|
export { NgDocOverlayService };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Blocks and unblocks the scrolling of the page, for example while a sidebar covers it.
|
|
5
|
+
*/
|
|
3
6
|
declare class NgDocScrollService {
|
|
4
|
-
private readonly document;
|
|
5
|
-
private readonly viewportRuler;
|
|
6
7
|
private readonly scrollStrategy;
|
|
7
|
-
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
8
|
-
constructor(...args: unknown[]);
|
|
9
8
|
/**
|
|
10
9
|
* Block global scroll
|
|
11
10
|
*/
|
|
@@ -15,7 +14,7 @@ declare class NgDocScrollService {
|
|
|
15
14
|
*/
|
|
16
15
|
unblock(): void;
|
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocScrollService, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
export { NgDocScrollService };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ElementRef,
|
|
2
|
-
import { PolymorpheusTemplate, PolymorpheusHandler
|
|
1
|
+
import { ElementRef, Type, Injector, TemplateRef } from '@angular/core';
|
|
2
|
+
import { PolymorpheusComponent, PolymorpheusTemplate, PolymorpheusHandler } from '@taiga-ui/polymorpheus';
|
|
3
3
|
import { FlexibleConnectedPositionStrategyOrigin, ConnectedPosition } from '@angular/cdk/overlay';
|
|
4
4
|
import { Unsubscribable } from 'rxjs';
|
|
5
5
|
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/**
|
|
3
|
-
* Implements lazy initialization for getter or memoization of a function call similar to pure {@link: Pipe}.
|
|
4
|
-
* Replaces getter with its calculated value upon first call or keeps track of last call arguments and returned
|
|
5
|
-
* value for function, skipping calculation when arguments are strictly the same.
|
|
6
|
-
*
|
|
7
|
-
* @throws error if used not on getter or function
|
|
8
|
-
*
|
|
9
|
-
* CAUTION: `this` is not available inside such functions/getters, they must be pure.
|
|
10
|
-
*/
|
|
11
|
-
function ngDocMakePure(_target, propertyKey, { get, enumerable, value }) {
|
|
12
|
-
if (get) {
|
|
13
|
-
return {
|
|
14
|
-
enumerable,
|
|
15
|
-
get() {
|
|
16
|
-
const value = get.call(this);
|
|
17
|
-
Object.defineProperty(this, propertyKey, { enumerable, value });
|
|
18
|
-
return value;
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
if (typeof value !== 'function') {
|
|
23
|
-
throw new Error('ngDocMakePure can only be used with functions or getters');
|
|
24
|
-
}
|
|
25
|
-
const original = value;
|
|
26
|
-
return {
|
|
27
|
-
enumerable,
|
|
28
|
-
get() {
|
|
29
|
-
let previousArgs = [];
|
|
30
|
-
let previousResult;
|
|
31
|
-
const patched = (...args) => {
|
|
32
|
-
if (previousArgs.length === args.length &&
|
|
33
|
-
args.every((arg, index) => arg === previousArgs[index])) {
|
|
34
|
-
return previousResult;
|
|
35
|
-
}
|
|
36
|
-
previousArgs = args;
|
|
37
|
-
previousResult = original.apply(this, args);
|
|
38
|
-
return previousResult;
|
|
39
|
-
};
|
|
40
|
-
Object.defineProperty(this, propertyKey, {
|
|
41
|
-
value: patched,
|
|
42
|
-
});
|
|
43
|
-
return patched;
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Generated bundle index. Do not edit.
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
export { ngDocMakePure };
|
|
53
|
-
//# sourceMappingURL=ng-doc-ui-kit-decorators.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-decorators.mjs","sources":["../../../../libs/ui-kit/decorators/pure.ts","../../../../libs/ui-kit/decorators/ng-doc-ui-kit-decorators.ts"],"sourcesContent":["/* eslint-disable */\n\n/**\n * Implements lazy initialization for getter or memoization of a function call similar to pure {@link: Pipe}.\n * Replaces getter with its calculated value upon first call or keeps track of last call arguments and returned\n * value for function, skipping calculation when arguments are strictly the same.\n *\n * @throws error if used not on getter or function\n *\n * CAUTION: `this` is not available inside such functions/getters, they must be pure.\n */\nexport function ngDocMakePure<T>(\n\t_target: Object,\n\tpropertyKey: string,\n\t{ get, enumerable, value }: TypedPropertyDescriptor<T>,\n): TypedPropertyDescriptor<T> {\n\tif (get) {\n\t\treturn {\n\t\t\tenumerable,\n\t\t\tget(): T {\n\t\t\t\tconst value = get.call(this);\n\n\t\t\t\tObject.defineProperty(this, propertyKey, { enumerable, value });\n\n\t\t\t\treturn value;\n\t\t\t},\n\t\t};\n\t}\n\n\tif (typeof value !== 'function') {\n\t\tthrow new Error('ngDocMakePure can only be used with functions or getters');\n\t}\n\n\tconst original = value;\n\n\treturn {\n\t\tenumerable,\n\t\tget(): T {\n\t\t\tlet previousArgs: readonly unknown[] = [];\n\t\t\tlet previousResult: any;\n\n\t\t\tconst patched = (...args: unknown[]) => {\n\t\t\t\tif (\n\t\t\t\t\tpreviousArgs.length === args.length &&\n\t\t\t\t\targs.every((arg, index) => arg === previousArgs[index])\n\t\t\t\t) {\n\t\t\t\t\treturn previousResult;\n\t\t\t\t}\n\n\t\t\t\tpreviousArgs = args;\n\t\t\t\tpreviousResult = original.apply(this, args);\n\n\t\t\t\treturn previousResult;\n\t\t\t};\n\n\t\t\tObject.defineProperty(this, propertyKey, {\n\t\t\t\tvalue: patched,\n\t\t\t});\n\n\t\t\treturn patched as any;\n\t\t},\n\t};\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAEA;;;;;;;;AAQG;AACG,SAAU,aAAa,CAC5B,OAAe,EACf,WAAmB,EACnB,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAA8B,EAAA;IAEtD,IAAI,GAAG,EAAE;QACR,OAAO;YACN,UAAU;YACV,GAAG,GAAA;gBACF,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;AAE5B,gBAAA,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;AAE/D,gBAAA,OAAO,KAAK;YACb,CAAC;SACD;IACF;AAEA,IAAA,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE;AAChC,QAAA,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC;IAC5E;IAEA,MAAM,QAAQ,GAAG,KAAK;IAEtB,OAAO;QACN,UAAU;QACV,GAAG,GAAA;YACF,IAAI,YAAY,GAAuB,EAAE;AACzC,YAAA,IAAI,cAAmB;AAEvB,YAAA,MAAM,OAAO,GAAG,CAAC,GAAG,IAAe,KAAI;AACtC,gBAAA,IACC,YAAY,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM;AACnC,oBAAA,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,GAAG,KAAK,YAAY,CAAC,KAAK,CAAC,CAAC,EACtD;AACD,oBAAA,OAAO,cAAc;gBACtB;gBAEA,YAAY,GAAG,IAAI;gBACnB,cAAc,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC;AAE3C,gBAAA,OAAO,cAAc;AACtB,YAAA,CAAC;AAED,YAAA,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,EAAE;AACxC,gBAAA,KAAK,EAAE,OAAO;AACd,aAAA,CAAC;AAEF,YAAA,OAAO,OAAc;QACtB,CAAC;KACD;AACF;;AC9DA;;AAEG;;;;"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ViewContainerRef, TemplateRef, Input, Directive } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
class NgDocLetContext {
|
|
5
|
-
constructor(internalDirectiveInstance) {
|
|
6
|
-
this.internalDirectiveInstance = internalDirectiveInstance;
|
|
7
|
-
}
|
|
8
|
-
get $implicit() {
|
|
9
|
-
return this.internalDirectiveInstance.ngDocLet;
|
|
10
|
-
}
|
|
11
|
-
get ngDocLet() {
|
|
12
|
-
return this.internalDirectiveInstance.ngDocLet;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
class NgDocLetDirective {
|
|
17
|
-
constructor() {
|
|
18
|
-
this.viewContainer = inject(ViewContainerRef);
|
|
19
|
-
this.templateRef = inject(TemplateRef);
|
|
20
|
-
this.viewContainer.createEmbeddedView(this.templateRef, new NgDocLetContext(this));
|
|
21
|
-
}
|
|
22
|
-
static ngTemplateContextGuard(_dir, _ctx) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NgDocLetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
26
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: NgDocLetDirective, isStandalone: true, selector: "[ngDocLet]", inputs: { ngDocLet: "ngDocLet" }, ngImport: i0 }); }
|
|
27
|
-
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NgDocLetDirective, decorators: [{
|
|
29
|
-
type: Directive,
|
|
30
|
-
args: [{
|
|
31
|
-
selector: '[ngDocLet]',
|
|
32
|
-
standalone: true,
|
|
33
|
-
}]
|
|
34
|
-
}], ctorParameters: () => [], propDecorators: { ngDocLet: [{
|
|
35
|
-
type: Input
|
|
36
|
-
}] } });
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Generated bundle index. Do not edit.
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
export { NgDocLetContext, NgDocLetDirective };
|
|
43
|
-
//# sourceMappingURL=ng-doc-ui-kit-directives-let.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-directives-let.mjs","sources":["../../../../libs/ui-kit/directives/let/let-context.ts","../../../../libs/ui-kit/directives/let/let.directive.ts","../../../../libs/ui-kit/directives/let/ng-doc-ui-kit-directives-let.ts"],"sourcesContent":["import { NgDocContextWithImplicit } from '@ng-doc/ui-kit/interfaces';\n\nimport { NgDocLetDirective } from './let.directive';\n\nexport class NgDocLetContext<T> implements NgDocContextWithImplicit<T> {\n\tconstructor(private readonly internalDirectiveInstance: NgDocLetDirective<T>) {}\n\n\tget $implicit(): T {\n\t\treturn this.internalDirectiveInstance.ngDocLet;\n\t}\n\n\tget ngDocLet(): T {\n\t\treturn this.internalDirectiveInstance.ngDocLet;\n\t}\n}\n","import { Directive, inject, Input, TemplateRef, ViewContainerRef } from '@angular/core';\n\nimport { NgDocLetContext } from './let-context';\n\n@Directive({\n selector: '[ngDocLet]',\n standalone: true,\n})\nexport class NgDocLetDirective<T> {\n private readonly viewContainer = inject(ViewContainerRef);\n private readonly templateRef = inject<TemplateRef<NgDocLetContext<T>>>(TemplateRef);\n\n @Input()\n ngDocLet!: T;\n\n /** Inserted by Angular inject() migration for backwards compatibility */\n constructor(...args: unknown[]);\n\n constructor() {\n this.viewContainer.createEmbeddedView(this.templateRef, new NgDocLetContext<T>(this));\n }\n\n static ngTemplateContextGuard<T>(\n _dir: NgDocLetDirective<T>,\n _ctx: unknown,\n ): _ctx is NgDocLetDirective<T> {\n return true;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAIa,eAAe,CAAA;AAC3B,IAAA,WAAA,CAA6B,yBAA+C,EAAA;QAA/C,IAAA,CAAA,yBAAyB,GAAzB,yBAAyB;IAAyB;AAE/E,IAAA,IAAI,SAAS,GAAA;AACZ,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,QAAQ;IAC/C;AAEA,IAAA,IAAI,QAAQ,GAAA;AACX,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,QAAQ;IAC/C;AACA;;MCNY,iBAAiB,CAAA;AAU5B,IAAA,WAAA,GAAA;AATiB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAkC,WAAW,CAAC;AASjF,QAAA,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,eAAe,CAAI,IAAI,CAAC,CAAC;IACvF;AAEA,IAAA,OAAO,sBAAsB,CAC3B,IAA0B,EAC1B,IAAa,EAAA;AAEb,QAAA,OAAO,IAAI;IACb;8GAnBW,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;sBAKE;;;ACZH;;AAEG;;;;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Implements lazy initialization for getter or memoization of a function call similar to pure {@link: Pipe}.
|
|
3
|
-
* Replaces getter with its calculated value upon first call or keeps track of last call arguments and returned
|
|
4
|
-
* value for function, skipping calculation when arguments are strictly the same.
|
|
5
|
-
*
|
|
6
|
-
* @throws error if used not on getter or function
|
|
7
|
-
*
|
|
8
|
-
* CAUTION: `this` is not available inside such functions/getters, they must be pure.
|
|
9
|
-
*/
|
|
10
|
-
declare function ngDocMakePure<T>(_target: Object, propertyKey: string, { get, enumerable, value }: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
|
11
|
-
|
|
12
|
-
export { ngDocMakePure };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { NgDocContextWithImplicit } from '@ng-doc/ui-kit/interfaces';
|
|
3
|
-
|
|
4
|
-
declare class NgDocLetDirective<T> {
|
|
5
|
-
private readonly viewContainer;
|
|
6
|
-
private readonly templateRef;
|
|
7
|
-
ngDocLet: T;
|
|
8
|
-
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
9
|
-
constructor(...args: unknown[]);
|
|
10
|
-
static ngTemplateContextGuard<T>(_dir: NgDocLetDirective<T>, _ctx: unknown): _ctx is NgDocLetDirective<T>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocLetDirective<any>, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocLetDirective<any>, "[ngDocLet]", never, { "ngDocLet": { "alias": "ngDocLet"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare class NgDocLetContext<T> implements NgDocContextWithImplicit<T> {
|
|
16
|
-
private readonly internalDirectiveInstance;
|
|
17
|
-
constructor(internalDirectiveInstance: NgDocLetDirective<T>);
|
|
18
|
-
get $implicit(): T;
|
|
19
|
-
get ngDocLet(): T;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { NgDocLetContext, NgDocLetDirective };
|