@ngrdt/button 0.0.17 → 0.0.19

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.
@@ -1,87 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
- import { RdtButtonBaseInt } from './rdt-button-int';
3
- import { Params, Router } from '@angular/router';
4
- import { Nullable, WindowOpenTargetType, AriaAttributes } from '@ngrdt/utils';
5
- import { Observable } from 'rxjs';
6
- import { RdtButtonNotificationServiceInt } from './rdt-button-notification.service';
7
- import * as i0 from "@angular/core";
8
- export declare abstract class RdtButtonBase<TIcon = string> implements RdtButtonBaseInt<TIcon>, AfterViewInit {
9
- protected readonly elRef: ElementRef<any>;
10
- protected readonly cd: ChangeDetectorRef;
11
- protected readonly router: Router;
12
- protected readonly baseHref: string;
13
- protected readonly renderer: Renderer2;
14
- protected readonly notificationService?: RdtButtonNotificationServiceInt;
15
- protected internalDisabledMap: Record<symbol, boolean>;
16
- protected internalLoadingMap: Record<symbol, boolean>;
17
- protected hrefWithParams: Nullable<string>;
18
- get focusElement(): HTMLElement | null;
19
- get ariaElement(): HTMLElement | null;
20
- get anchorElement(): HTMLElement | null;
21
- set disabled(value: boolean);
22
- get disabled(): boolean;
23
- private _disabled;
24
- set loading(value: boolean);
25
- get loading(): boolean;
26
- private _loading;
27
- propagate: boolean;
28
- set tabIndex(value: Nullable<number>);
29
- get tabIndex(): Nullable<number>;
30
- private _tabIndex;
31
- set href(value: Nullable<string>);
32
- get href(): Nullable<string>;
33
- private _href;
34
- set ngHref(value: Nullable<string>);
35
- get ngHref(): Nullable<string>;
36
- private _ngHref;
37
- set target(value: WindowOpenTargetType);
38
- get target(): WindowOpenTargetType;
39
- private _target;
40
- set stateParams(value: Nullable<Params>);
41
- get stateParams(): Nullable<Params>;
42
- private _stateParams;
43
- set queryParams(value: Nullable<Params>);
44
- get queryParams(): Nullable<Params>;
45
- private _queryParams;
46
- set download(value: Nullable<string>);
47
- get download(): Nullable<string>;
48
- private _download;
49
- set icon(value: Nullable<TIcon>);
50
- get icon(): Nullable<TIcon>;
51
- private _icon;
52
- set label(value: Nullable<string>);
53
- get label(): Nullable<string>;
54
- private _label;
55
- set dataTestId(value: string);
56
- get dataTestId(): string;
57
- private _dataTestId;
58
- set onlineEnabled$(value: Nullable<Observable<boolean>>);
59
- get onlineEnabled$(): Nullable<Observable<boolean>>;
60
- private _onlineEnabled$;
61
- set aria(value: Partial<AriaAttributes>);
62
- get aria(): Partial<AriaAttributes>;
63
- private _aria;
64
- readonly click$: EventEmitter<MouseEvent>;
65
- ngAfterViewInit(): void;
66
- setDisabled(key: symbol, disabled: boolean): void;
67
- setLoading(key: symbol, disabled: boolean): void;
68
- focus(): void;
69
- protected onClicked($event: MouseEvent): void;
70
- private emitAndStopProp;
71
- private onClickPermissionAllowed;
72
- private navigateOrEmit;
73
- private notifyAccessDenied;
74
- private finishOnlineCheck;
75
- private updateDisabledValue;
76
- private updateLoadingValue;
77
- private updateHrefWithQueryParams;
78
- protected updateTabIndexValue(): void;
79
- private updateAriaAttributes;
80
- protected static readonly ONLINE_ENABLED_KEY: unique symbol;
81
- static ɵfac: i0.ɵɵFactoryDeclaration<RdtButtonBase<any>, never>;
82
- static ɵdir: i0.ɵɵDirectiveDeclaration<RdtButtonBase<any>, never, never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "propagate": { "alias": "propagate"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "href": { "alias": "href"; "required": false; }; "ngHref": { "alias": "ngHref"; "required": false; }; "target": { "alias": "target"; "required": false; }; "stateParams": { "alias": "stateParams"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "download": { "alias": "download"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "dataTestId": { "alias": "dataTestId"; "required": false; }; "onlineEnabled$": { "alias": "onlineEnabled$"; "required": false; }; "aria": { "alias": "aria"; "required": false; }; }, { "click$": "click$"; }, never, never, false, never>;
83
- static ngAcceptInputType_disabled: unknown;
84
- static ngAcceptInputType_loading: unknown;
85
- static ngAcceptInputType_propagate: unknown;
86
- static ngAcceptInputType_tabIndex: unknown;
87
- }
@@ -1,7 +0,0 @@
1
- import { InjectionToken, Type } from '@angular/core';
2
- import { RdtButtonBaseInt } from './rdt-button-int';
3
- export declare const RDT_BUTTON_SETTER_KEY: unique symbol;
4
- export declare const RDT_BUTTON_DEFAULT_PROPAGATE = false;
5
- export declare const RDT_BUTTON_DEFAULT_TARGET = "_self";
6
- export declare const RDT_BUTTON_DEFAULT_TAB_INDEX: null;
7
- export declare const RDT_BUTTON_BASE_PROVIDER: InjectionToken<Type<RdtButtonBaseInt<string>>>;
@@ -1,29 +0,0 @@
1
- import { Params } from '@angular/router';
2
- import { AriaAttributes, Nullable, WindowOpenTargetType } from '@ngrdt/utils';
3
- import { Observable } from 'rxjs';
4
- export interface RdtButtonBaseInputsInt<TIcon = string> {
5
- label: Nullable<string>;
6
- disabled: boolean;
7
- loading: boolean;
8
- propagate: boolean;
9
- tabIndex: Nullable<number>;
10
- href: Nullable<string>;
11
- ngHref: Nullable<string>;
12
- target: WindowOpenTargetType;
13
- stateParams: Nullable<Params>;
14
- queryParams: Nullable<Params>;
15
- download: Nullable<string>;
16
- icon: Nullable<TIcon>;
17
- dataTestId: string;
18
- onlineEnabled$: Nullable<Observable<boolean>>;
19
- aria: Partial<AriaAttributes>;
20
- }
21
- export interface RdtButtonBaseInt<TIcon = string> extends RdtButtonBaseInputsInt<TIcon> {
22
- readonly click$: Observable<MouseEvent>;
23
- readonly anchorElement: HTMLElement | null;
24
- readonly focusElement: HTMLElement | null;
25
- readonly ariaElement: HTMLElement | null;
26
- setDisabled(key: symbol, disabled: boolean): void;
27
- setLoading(key: symbol, disabled: boolean): void;
28
- focus(): void;
29
- }
@@ -1,4 +0,0 @@
1
- export interface RdtButtonNotificationServiceInt {
2
- error(message: string): void;
3
- accessDenied(): void;
4
- }
@@ -1,25 +0,0 @@
1
- import { EventEmitter, OnChanges } from '@angular/core';
2
- import { RdtButtonBaseInputsInt, RdtButtonBaseInt } from '../button/rdt-button-int';
3
- import * as i0 from "@angular/core";
4
- export declare class RdtButtonOutletDirective<TButton extends RdtButtonBaseInt, TButtonInputs extends RdtButtonBaseInputsInt = RdtButtonBaseInputsInt> implements OnChanges {
5
- readonly buttonClass: import("@angular/core").Type<RdtButtonBaseInt<string>>;
6
- private readonly _viewContainerRef;
7
- inputs: Partial<TButtonInputs>;
8
- click$: EventEmitter<MouseEvent>;
9
- get instance(): TButton | undefined;
10
- private _componentRef?;
11
- /**
12
- * A helper data structure that allows us to track inputs that were part of the
13
- * ngComponentOutletInputs expression. Tracking inputs is necessary for proper removal of ones
14
- * that are no longer referenced.
15
- */
16
- private _inputsUsed;
17
- constructor();
18
- /** @nodoc */
19
- ngOnChanges(): void;
20
- private onInputsChanged;
21
- /** @nodoc */
22
- private _applyInputStateDiff;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<RdtButtonOutletDirective<any, any>, never>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<RdtButtonOutletDirective<any, any>, "[rdtButtonOutlet]", ["rdtButtonOutlet"], { "inputs": { "alias": "inputs"; "required": false; }; }, { "click$": "click$"; }, never, never, true, never>;
25
- }